@hhgtech/hhg-components 1.27.26 → 1.27.28
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.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-b2f2763f.js +1 -0
- package/build/dataTransform-6f8603ca.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/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 +53 -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 +12 -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 +11 -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 +56 -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 +24 -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 +43 -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 +24 -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-984c4736.js +1 -0
- package/build/esm/dataTransform-184ab4c2.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-e5f4e038.js +1 -0
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-87f06b05.js +1 -0
- package/build/esm/getSocialList-2cd20b1e.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/my-MM.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-017fcff0.js +3831 -0
- package/build/esm/index-28ef67ba.js +1 -0
- package/build/esm/index-2ae479cb.js +1 -0
- package/build/esm/index-2b5c7551.js +1 -0
- package/build/esm/index-313abbe7.js +1249 -0
- package/build/esm/index-345735b2.js +1 -0
- package/build/esm/index-3a275e6e.js +1 -0
- package/build/esm/index-4962ee5f.js +1 -0
- package/build/esm/index-4ab84ac4.js +1 -0
- package/build/esm/index-4d7073b2.js +113 -0
- package/build/esm/index-523b1b14.js +1 -0
- package/build/esm/index-5f2099c0.js +177 -0
- package/build/esm/index-652e4433.js +93 -0
- package/build/esm/index-721531e5.js +1 -0
- package/build/esm/index-80254186.js +1 -0
- package/build/esm/index-8e5ea93d.js +1 -0
- package/build/esm/index-c0b0f973.js +1 -0
- package/build/esm/index-ce34240e.js +1 -0
- package/build/esm/index-d54980b1.js +1 -0
- package/build/esm/index-d61e91ec.js +1 -0
- package/build/esm/index-dc00bc5f.js +53 -0
- package/build/esm/index-de62b22b.js +1 -0
- package/build/esm/index-e2ac57b5.js +1 -0
- package/build/esm/index-f86c8643.js +112 -0
- package/build/esm/index-f963f3c7.js +1 -0
- package/build/esm/index.d.ts +8 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-739f456f.js +50 -0
- package/build/esm/index.styled-743f922f.js +69 -0
- package/build/esm/index.styled-9f109ae2.js +130 -0
- package/build/esm/index.styled-e1a4a33c.js +1874 -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 +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/routing-d95608ce.js +1 -0
- package/build/esm/screenSizeContext-daa144e8.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-a6ba9985.js +3078 -0
- package/build/esm/types-b8801232.js +339 -0
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-c0ff7dd7.js +1 -0
- package/build/esm/useRafState-d0bb9704.js +1 -0
- package/build/esm/useTranslations-27ed0471.js +1 -0
- package/build/esm/utils-f6a98198.js +1 -0
- package/build/esm/vaccination.js +5 -5
- package/build/fixedBottomAdBlock-b27917d3.js +1 -0
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-c9bdc022.js +1 -0
- package/build/getSocialList-15467d1f.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/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-195ff04d.js +1 -0
- package/build/index-1aab065c.js +1 -0
- package/build/index-2c5da73d.js +3831 -0
- package/build/index-3dcf1cc5.js +1 -0
- package/build/index-3f9f042b.js +112 -0
- package/build/index-4f4f12e2.js +1 -0
- package/build/index-5f4e003c.js +1 -0
- package/build/index-64027e80.js +1 -0
- package/build/index-73977093.js +177 -0
- package/build/index-747fafa8.js +1 -0
- package/build/index-7bb52fd2.js +1 -0
- package/build/index-844c3af5.js +1 -0
- package/build/index-8572a1e3.js +93 -0
- package/build/index-873c7d5c.js +1249 -0
- package/build/index-947a97a6.js +1 -0
- package/build/index-97beea5c.js +1 -0
- package/build/index-985ca96c.js +1 -0
- package/build/index-aa465abf.js +113 -0
- package/build/index-afddf6c8.js +1 -0
- package/build/index-b92cd1db.js +1 -0
- package/build/index-c3b4347a.js +1 -0
- package/build/index-c4bda44d.js +1 -0
- package/build/index-eeb7cc40.js +1 -0
- package/build/index-f639d15c.js +53 -0
- package/build/index-f9f1f3ff.js +1 -0
- package/build/index.d.ts +0 -1
- package/build/index.js +1 -1
- package/build/index.styled-41cc3c31.js +1874 -0
- package/build/index.styled-8e8974bb.js +50 -0
- package/build/index.styled-b466d89c.js +130 -0
- package/build/index.styled-e5b26ff8.js +69 -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 +1 -1
- package/build/pwg.js +2 -2
- package/build/routing-cf65d7db.js +1 -0
- package/build/screenSizeContext-f496f721.js +81 -0
- package/build/together.js +1 -1
- package/build/types-59df836a.js +339 -0
- package/build/types-cde2c8cd.js +3078 -0
- package/build/types.js +1 -1
- package/build/useHealthToolCache-d0f2f403.js +1 -0
- package/build/useRafState-fc503f32.js +1 -0
- package/build/useTranslations-cb70f9dd.js +1 -0
- package/build/utils-f304a6e7.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +4 -1
- package/build/core-514ec4a7.js +0 -1
- package/build/dataTransform-eb330120.js +0 -1
- package/build/en-PH-f60a149c.js +0 -1
- package/build/esm/core-e4f57e35.js +0 -1
- package/build/esm/dataTransform-b9da23ca.js +0 -1
- package/build/esm/fixedBottomAdBlock-2a4932de.js +0 -1
- package/build/esm/getDynamicHealthTool-18b93419.js +0 -1
- package/build/esm/getSocialList-bd514f47.js +0 -1
- package/build/esm/index-160252d8.js +0 -1249
- package/build/esm/index-1ac1f27a.js +0 -1
- package/build/esm/index-1af47116.js +0 -1
- package/build/esm/index-2a018e5b.js +0 -93
- package/build/esm/index-3ccbd1bd.js +0 -3831
- package/build/esm/index-45de18e6.js +0 -177
- package/build/esm/index-49112b56.js +0 -1
- package/build/esm/index-4a21e929.js +0 -1
- package/build/esm/index-4d96360f.js +0 -1
- package/build/esm/index-5cffade4.js +0 -1
- package/build/esm/index-5d552272.js +0 -1
- package/build/esm/index-5febb98d.js +0 -1
- package/build/esm/index-648fe106.js +0 -1
- package/build/esm/index-71ee0764.js +0 -1
- package/build/esm/index-7ca5216b.js +0 -1
- package/build/esm/index-7e41aae7.js +0 -1
- package/build/esm/index-9294494f.js +0 -1
- package/build/esm/index-aa5a01c2.js +0 -112
- package/build/esm/index-b3248018.js +0 -53
- package/build/esm/index-b76dd880.js +0 -1
- package/build/esm/index-be7836ad.js +0 -1
- package/build/esm/index-e4a4ed0b.js +0 -113
- package/build/esm/index-e68fec6b.js +0 -1
- package/build/esm/index-ed34ae99.js +0 -1
- package/build/esm/index-f02da627.js +0 -1
- package/build/esm/index.styled-0ee6b01f.js +0 -1874
- package/build/esm/index.styled-6d6028e3.js +0 -130
- package/build/esm/index.styled-874c6052.js +0 -50
- package/build/esm/index.styled-91925a69.js +0 -69
- package/build/esm/routing-429a94e7.js +0 -1
- package/build/esm/screenSizeContext-5d74b785.js +0 -81
- package/build/esm/translationsProvider-1138c4b0.js +0 -1
- package/build/esm/types-73fec0e1.js +0 -3078
- package/build/esm/types-864ab48f.js +0 -339
- package/build/esm/useHealthToolCache-ac597aca.js +0 -1
- package/build/esm/useRafState-e6de7b90.js +0 -1
- package/build/esm/useTranslations-62e1a4a6.js +0 -1
- package/build/esm/utils-4aabd5e7.js +0 -1
- package/build/fixedBottomAdBlock-570669d4.js +0 -1
- package/build/getDynamicHealthTool-a2896842.js +0 -1
- package/build/getSocialList-b7a6c239.js +0 -1
- package/build/hi-IN-fac0107a.js +0 -1
- package/build/i18n/translations.d.ts +0 -11
- package/build/id-ID-91d550b1.js +0 -1
- package/build/index-025b2885.js +0 -1
- package/build/index-145b7451.js +0 -1
- package/build/index-2f5601af.js +0 -3831
- package/build/index-3c881f50.js +0 -1
- package/build/index-638e5071.js +0 -1
- package/build/index-65fa3985.js +0 -1
- package/build/index-6b0d5d66.js +0 -1
- package/build/index-7205f458.js +0 -1
- package/build/index-720f8201.js +0 -1
- package/build/index-80ac851d.js +0 -1
- package/build/index-8a698999.js +0 -1
- package/build/index-8ca25fa8.js +0 -1
- package/build/index-9511a61a.js +0 -1249
- package/build/index-a5d0558f.js +0 -177
- package/build/index-ae70746e.js +0 -1
- package/build/index-b0cc4c3d.js +0 -1
- package/build/index-ba268a44.js +0 -93
- package/build/index-c6ef0fba.js +0 -1
- package/build/index-c863fc66.js +0 -1
- package/build/index-d02a0c7a.js +0 -53
- package/build/index-d6a4346c.js +0 -112
- package/build/index-e1648205.js +0 -1
- package/build/index-edec9cf8.js +0 -1
- package/build/index-f2ac0908.js +0 -113
- package/build/index-f5d9d238.js +0 -1
- package/build/index.styled-1a707986.js +0 -130
- package/build/index.styled-2090a9a3.js +0 -1874
- package/build/index.styled-262e5e6c.js +0 -50
- package/build/index.styled-cfe1c301.js +0 -69
- package/build/km-KH-382d977a.js +0 -1
- package/build/ms-MY-e325a393.js +0 -1
- package/build/routing-723395b5.js +0 -1
- package/build/screenSizeContext-4a548556.js +0 -81
- package/build/th-TH-e559e884.js +0 -1
- package/build/tl-PH-a0c2f4be.js +0 -1
- package/build/translationsProvider-9a5f7d30.js +0 -1
- package/build/types-675a0dca.js +0 -3078
- package/build/types-91061bd8.js +0 -339
- package/build/useHealthToolCache-2572257e.js +0 -1
- package/build/useRafState-4f050da2.js +0 -1
- package/build/useTranslations-2134a139.js +0 -1
- package/build/utils-e1462abe.js +0 -1
- package/build/vi-VN-42a0740b.js +0 -1
- package/build/vi-VN_MB-012ecbb5.js +0 -1
- package/build/zh-TW-1a1c78ea.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-408b454e.js → BMI_BOYS.percentile.monthly-fdb0d5d6.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-f1a5408c.js → BMI_BOYS.percentile.weekly-43622fa1.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-20f2343f.js → BMI_BOYS.percentile.yearly-de8966a6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-8f45c258.js → BMI_BOYS.zscore.monthly-04cb87b3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-27b78f60.js → BMI_BOYS.zscore.weekly-941c8cf2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-e2313273.js → BMI_BOYS.zscore.yearly-c662f505.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-df4fed94.js → BMI_GIRLS.percentile.monthly-76e38ae2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-60cd5e82.js → BMI_GIRLS.percentile.weekly-3f3df583.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-db4f5dd0.js → BMI_GIRLS.percentile.yearly-25e4cbcd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-815f2e66.js → BMI_GIRLS.zscore.monthly-373fca25.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-ed498f2b.js → BMI_GIRLS.zscore.weekly-9e8f77d7.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-d128b226.js → BMI_GIRLS.zscore.yearly-434c7d51.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-8509f62a.js → HEAD CIRCUM_BOYS.percentile.monthly-e7756c44.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-b2ab2b82.js → HEAD CIRCUM_BOYS.percentile.weekly-21da7c37.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2a37c4fa.js → HEAD CIRCUM_BOYS.percentile.yearly-f305f4ff.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-15240762.js → HEAD CIRCUM_BOYS.zscore.monthly-08a00287.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d2dd3fae.js → HEAD CIRCUM_BOYS.zscore.weekly-b7c46afd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-df9df4de.js → HEAD CIRCUM_BOYS.zscore.yearly-aae999c5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-df692b52.js → HEAD CIRCUM_GIRLS.percentile.monthly-812528ae.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-7173a335.js → HEAD CIRCUM_GIRLS.percentile.weekly-73b6bced.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-28195260.js → HEAD CIRCUM_GIRLS.percentile.yearly-c7340f31.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-65785778.js → HEAD CIRCUM_GIRLS.zscore.monthly-a5e9643e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e8d6dc4c.js → HEAD CIRCUM_GIRLS.zscore.weekly-4c14fc9a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-41565f9e.js → HEAD CIRCUM_GIRLS.zscore.yearly-bff84c10.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-607d89cf.js → HEIGHT_BOYS.percentile.monthly-25f2851c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-03fd7aa9.js → HEIGHT_BOYS.percentile.weekly-66c674a0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-67272c6b.js → HEIGHT_BOYS.percentile.yearly-01f6b463.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-6fbcdc4d.js → HEIGHT_BOYS.zscore.monthly-b908884a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-5a516666.js → HEIGHT_BOYS.zscore.weekly-bbcb3cc4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-93683b1a.js → HEIGHT_BOYS.zscore.yearly-666543e5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-c680ce16.js → HEIGHT_GIRLS.percentile.monthly-17fa3898.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-1b3cfa8c.js → HEIGHT_GIRLS.percentile.weekly-d4342135.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-16ba3bce.js → HEIGHT_GIRLS.percentile.yearly-e4fd4b76.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-e59aca64.js → HEIGHT_GIRLS.zscore.monthly-0fe3add4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-d3ddccd5.js → HEIGHT_GIRLS.zscore.weekly-ccd4d699.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-e365e16b.js → HEIGHT_GIRLS.zscore.yearly-6927b237.js} +0 -0
- /package/build/{Onboarding-e9b1bd74.js → Onboarding-3ad3c9cb.js} +0 -0
- /package/build/{Visible-2975d3cc.js → Visible-ed86f410.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-dd536749.js → WEIGHT_BOYS.percentile.monthly-1659aed3.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-8f2dfe1d.js → WEIGHT_BOYS.percentile.weekly-647f9286.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-e4f169b2.js → WEIGHT_BOYS.percentile.yearly-46440b65.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-3b9d8e12.js → WEIGHT_BOYS.zscore.monthly-bd881e35.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-21e8ab53.js → WEIGHT_BOYS.zscore.weekly-3fd0466d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-14adaa4c.js → WEIGHT_BOYS.zscore.yearly-30a0fbbe.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-8c9feb91.js → WEIGHT_GIRLS.percentile.monthly-0347ccdb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-bae12ad3.js → WEIGHT_GIRLS.percentile.weekly-372715ee.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-69bddc9e.js → WEIGHT_GIRLS.percentile.yearly-51c15d34.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-62bc84b6.js → WEIGHT_GIRLS.zscore.monthly-f44e564e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-78d94ec6.js → WEIGHT_GIRLS.zscore.weekly-d660f089.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-2ab51478.js → WEIGHT_GIRLS.zscore.yearly-8282a654.js} +0 -0
- /package/build/{constants-e5a87ea9.js → constants-dfaf77dd.js} +0 -0
- /package/build/{cookieHelper-283a02b1.js → cookieHelper-6a8008f6.js} +0 -0
- /package/build/{dataTransform-46b81281.js → dataTransform-e9f91459.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-37cd9117.js → BMI_BOYS.percentile.monthly-281985c6.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-5e325bce.js → BMI_BOYS.percentile.weekly-294baedb.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-113ef720.js → BMI_BOYS.percentile.yearly-ca58d1cc.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-ecc4d68f.js → BMI_BOYS.zscore.monthly-a74e717a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-0adcc30c.js → BMI_BOYS.zscore.weekly-bba5dd16.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d71593a6.js → BMI_BOYS.zscore.yearly-7efc3e59.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-79552762.js → BMI_GIRLS.percentile.monthly-5c0da953.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-f7076322.js → BMI_GIRLS.percentile.weekly-83079b24.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-4e7db001.js → BMI_GIRLS.percentile.yearly-71f63850.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-f806704c.js → BMI_GIRLS.zscore.monthly-69f2c539.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-48a773fb.js → BMI_GIRLS.zscore.weekly-9a97ada5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-03358b99.js → BMI_GIRLS.zscore.yearly-a029f4e4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-406b2a68.js → HEAD CIRCUM_BOYS.percentile.monthly-b318b1f9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-558ccd96.js → HEAD CIRCUM_BOYS.percentile.weekly-bb3d93bc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-3c694e3a.js → HEAD CIRCUM_BOYS.percentile.yearly-0a400cab.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-e2dfbbc2.js → HEAD CIRCUM_BOYS.zscore.monthly-ca858403.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-0f4ffc31.js → HEAD CIRCUM_BOYS.zscore.weekly-e4c94e13.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-45e18c32.js → HEAD CIRCUM_BOYS.zscore.yearly-ecfb3428.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-c61e1e60.js → HEAD CIRCUM_GIRLS.percentile.monthly-2ca9295f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-80077fbd.js → HEAD CIRCUM_GIRLS.percentile.weekly-850c5bbe.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5cd40fcf.js → HEAD CIRCUM_GIRLS.percentile.yearly-007f0f23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8704df7d.js → HEAD CIRCUM_GIRLS.zscore.monthly-c4bcd1be.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e3307c3e.js → HEAD CIRCUM_GIRLS.zscore.weekly-e510a08f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-8c3aa695.js → HEAD CIRCUM_GIRLS.zscore.yearly-1e6c11c0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-32fc1116.js → HEIGHT_BOYS.percentile.monthly-33864d0e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f7886940.js → HEIGHT_BOYS.percentile.weekly-78d7c6a0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-7feb4234.js → HEIGHT_BOYS.percentile.yearly-d9a9726a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-d6c9ff63.js → HEIGHT_BOYS.zscore.monthly-c32d0020.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-4f88d09a.js → HEIGHT_BOYS.zscore.weekly-8a4914c2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f10d96b9.js → HEIGHT_BOYS.zscore.yearly-6b14a840.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e8779b55.js → HEIGHT_GIRLS.percentile.monthly-1c16b3af.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5248631a.js → HEIGHT_GIRLS.percentile.weekly-d8ae084e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ee4a4b7d.js → HEIGHT_GIRLS.percentile.yearly-cf8d61c8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-1e3ea3a4.js → HEIGHT_GIRLS.zscore.monthly-e6bdb3d0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-26a82693.js → HEIGHT_GIRLS.zscore.weekly-2de1be18.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-180fb58a.js → HEIGHT_GIRLS.zscore.yearly-b46187cb.js} +0 -0
- /package/build/esm/{Onboarding-47f0ed32.js → Onboarding-3a098961.js} +0 -0
- /package/build/esm/{Visible-25232b43.js → Visible-48f42ae6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-488c645a.js → WEIGHT_BOYS.percentile.monthly-b69a4d3e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-7ad65f24.js → WEIGHT_BOYS.percentile.weekly-0faad24c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-985443fd.js → WEIGHT_BOYS.percentile.yearly-a531b22a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-d3ed375e.js → WEIGHT_BOYS.zscore.monthly-a70dfa59.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-ca781909.js → WEIGHT_BOYS.zscore.weekly-bc0a7397.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-12b41d45.js → WEIGHT_BOYS.zscore.yearly-4a0c0338.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-33515f65.js → WEIGHT_GIRLS.percentile.monthly-a4b24d07.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-29785c9d.js → WEIGHT_GIRLS.percentile.weekly-4b6a9d19.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-59a36732.js → WEIGHT_GIRLS.percentile.yearly-6c10ff85.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-99db3a42.js → WEIGHT_GIRLS.zscore.monthly-e7cc197b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-bf885582.js → WEIGHT_GIRLS.zscore.weekly-1d95dc1a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-46fbf2d5.js → WEIGHT_GIRLS.zscore.yearly-86cc4c83.js} +0 -0
- /package/build/esm/{constants-c2cc8386.js → constants-893a39ff.js} +0 -0
- /package/build/esm/{cookieHelper-bec3cfaa.js → cookieHelper-d3775f87.js} +0 -0
- /package/build/esm/{dataTransform-be2c590b.js → dataTransform-3d5ed2ab.js} +0 -0
- /package/build/esm/{en-PH-b9711db4.js → i18n-values/en-PH.js} +0 -0
- /package/build/esm/{hi-IN-4f45c353.js → i18n-values/hi-IN.js} +0 -0
- /package/build/esm/{id-ID-eb9f9702.js → i18n-values/id-ID.js} +0 -0
- /package/build/esm/{km-KH-5bd68521.js → i18n-values/km-KH.js} +0 -0
- /package/build/esm/{ms-MY-5cdb826a.js → i18n-values/ms-MY.js} +0 -0
- /package/build/esm/{th-TH-a39d3b38.js → i18n-values/th-TH.js} +0 -0
- /package/build/esm/{tl-PH-439f7fc9.js → i18n-values/tl-PH.js} +0 -0
- /package/build/esm/{vi-VN-48847f0c.js → i18n-values/vi-VN.js} +0 -0
- /package/build/esm/{vi-VN_MB-4407d98a.js → i18n-values/vi-VN_MB.js} +0 -0
- /package/build/esm/{zh-TW-1cf8e724.js → i18n-values/zh-TW.js} +0 -0
- /package/build/esm/{index-3f7d903d.js → index-22d66f3a.js} +0 -0
- /package/build/esm/{index-ee0953ff.js → index-bbb37de8.js} +0 -0
- /package/build/esm/{isProduction-aefac4c1.js → isProduction-9fdedd97.js} +0 -0
- /package/build/esm/{localizeNumberFormat-7f021996.js → localizeNumberFormat-c9565869.js} +0 -0
- /package/build/esm/{normalizeLink-c0575b9c.js → normalizeLink-e75d8f3b.js} +0 -0
- /package/build/esm/{theme-de7535c2.js → theme-658bcd7b.js} +0 -0
- /package/build/esm/{translationsContext-cee296b2.js → translationsContext-4e922048.js} +0 -0
- /package/build/esm/{tslib.es6-01f620c8.js → tslib.es6-2f773aeb.js} +0 -0
- /package/build/esm/{types-a125d5db.js → types-f09dabf2.js} +0 -0
- /package/build/esm/{useIsInit-db1bcdff.js → useIsInit-2c1fe29c.js} +0 -0
- /package/build/esm/{useOutsideClick-fdb78365.js → useOutsideClick-480b6515.js} +0 -0
- /package/build/esm/{useScrollbarSize-357ac3a1.js → useScrollbarSize-efb18b24.js} +0 -0
- /package/build/esm/{useUniqueId-9d98366e.js → useUniqueId-36e2cd8f.js} +0 -0
- /package/build/esm/{utils-b2336bb5.js → utils-934fc187.js} +0 -0
- /package/build/{index-5aa4382a.js → index-18caa50b.js} +0 -0
- /package/build/{index-61cc14ec.js → index-508517da.js} +0 -0
- /package/build/{isProduction-8913c226.js → isProduction-5a688ca0.js} +0 -0
- /package/build/{localizeNumberFormat-d5aa5e79.js → localizeNumberFormat-fdc361f8.js} +0 -0
- /package/build/{normalizeLink-46f8b786.js → normalizeLink-96abe957.js} +0 -0
- /package/build/{theme-e3dc5e67.js → theme-f4d3e318.js} +0 -0
- /package/build/{translationsContext-b79c958c.js → translationsContext-5205b47d.js} +0 -0
- /package/build/{tslib.es6-ea3181ce.js → tslib.es6-2277e49b.js} +0 -0
- /package/build/{types-70a9d21d.js → types-1db8e1a1.js} +0 -0
- /package/build/{useIsInit-ec8e9bee.js → useIsInit-3d607db2.js} +0 -0
- /package/build/{useOutsideClick-d67e082b.js → useOutsideClick-5b39fb98.js} +0 -0
- /package/build/{useScrollbarSize-3f6344cb.js → useScrollbarSize-1f532e9c.js} +0 -0
- /package/build/{useUniqueId-33dccf23.js → useUniqueId-fc07e386.js} +0 -0
- /package/build/{utils-4cfce198.js → utils-ca50b14e.js} +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-2277e49b.js"),t=require("react"),r=require("./Onboarding-3ad3c9cb.js"),n=require("./gAssets.js"),a=require("./theme-f4d3e318.js"),i=require("styled-components"),o=require("./index.styled-e5b26ff8.js"),l=require("./index-7bb52fd2.js"),s=require("./index-97beea5c.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=d(t),u=d(i);const p=u.default.div`
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
width: ${e=>e.size}px;
|
|
5
|
+
height: ${e=>e.size}px;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
|
|
10
|
+
border: 1px solid #e4e8ec;
|
|
11
|
+
background-color: ${e=>e.backgroundColor||a.theme.colors.white};
|
|
12
|
+
border-radius: ${e=>e.borderRadius||"50%"};
|
|
13
|
+
& > * {
|
|
14
|
+
width: ${e=>e.iconSize}px;
|
|
15
|
+
height: ${e=>e.iconSize}px;
|
|
16
|
+
}
|
|
17
|
+
`,b=u.default.div`
|
|
18
|
+
display: inline-block;
|
|
19
|
+
height: 108px;
|
|
20
|
+
background-color: ${e=>e.theme.colors.white};
|
|
21
|
+
border-radius: 60px;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
&.selected-week-pill {
|
|
24
|
+
background-color: ${e=>e.theme.colors.pink100};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& > div:first-child {
|
|
28
|
+
margin: 4px 4px 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
& > p {
|
|
32
|
+
margin-top: 8px;
|
|
33
|
+
text-align: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
& > * {
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
`,x=[r.LOCALE.Myanmar,r.LOCALE.Taiwan],g=u.default((r=>{var{icon:i,name:s,className:d,locale:u="en-PH",dataEventCategory:g,dataEventAction:m,dataEventLabel:f,onSelect:h}=r,v=e.__rest(r,["icon","name","className","locale","dataEventCategory","dataEventAction","dataEventLabel","onSelect"]);const y=t.useMemo((()=>null==d?void 0:d.includes("selected-week-pill")),[d]);return c.default.createElement(b,Object.assign({onClick:h,className:d?"week-pill".concat(" non-pointer-event-child ",d):"week-pill non-pointer-event-child","data-event-category":g,"data-event-action":m,"data-event-label":f},v),c.default.createElement(p,{size:64,iconSize:40,backgroundColor:a.theme.colors.white},c.default.createElement(o.ImageWrap,{src:i||n.CommonGAssets.getAssetPath("week_default.png"),alt:`week ${s}`})),y?c.default.createElement(l.Text,Object.assign({type:"semiBold",size:"n1",color:a.theme.colors.gray800},x.includes(u)&&{style:{fontSize:"10px"}}),s):c.default.createElement(l.Text,Object.assign({size:"n1",color:a.theme.colors.gray600},x.includes(u)&&{style:{fontSize:"10px"}}),s))}))`
|
|
40
|
+
box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.08);
|
|
41
|
+
`,m=u.default(s.CentralCarousel.Slide)`
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
> div * {
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
`,f=u.default(s.CentralCarousel)`
|
|
47
|
+
.centerred-pill-wrapper {
|
|
48
|
+
padding: 16px 0;
|
|
49
|
+
}
|
|
50
|
+
`;exports.StyledCarousel=f,exports.StyledPill=g,exports.StyledSlide=m;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";require("dayjs"),require("./screenSizeContext-f496f721.js"),require("react");var e=require("styled-components"),t=require("./theme-f4d3e318.js");require("./index-5f4e003c.js");var r=require("./utils-ca50b14e.js");require("./isProduction-5a688ca0.js"),require("./Onboarding-3ad3c9cb.js"),require("./gAssets.js");var i=require("./index-f639d15c.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(e);const a=n.default.div`
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
z-index: 1000;
|
|
5
|
+
background: white;
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
`,d=n.default.div`
|
|
8
|
+
height: 100%;
|
|
9
|
+
${r.MediaQueries.lgPcUp} {
|
|
10
|
+
display: table;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: calc(100% - 25px);
|
|
13
|
+
}
|
|
14
|
+
`,p=n.default.div`
|
|
15
|
+
padding: 16px;
|
|
16
|
+
${r.MediaQueries.mbUp} {
|
|
17
|
+
padding: 48px 24px 24px;
|
|
18
|
+
}
|
|
19
|
+
[data-similac='true'][data-has-banner='true'] {
|
|
20
|
+
${r.MediaQueries.mbDown} {
|
|
21
|
+
background: white;
|
|
22
|
+
border-top-left-radius: 1rem;
|
|
23
|
+
border-top-right-radius: 1rem;
|
|
24
|
+
margin-top: -1rem;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`,u=n.default.div`
|
|
28
|
+
width: 640px;
|
|
29
|
+
padding: 16px 16px 0 16px;
|
|
30
|
+
display: none;
|
|
31
|
+
|
|
32
|
+
${r.MediaQueries.mbUp} {
|
|
33
|
+
width: 640px;
|
|
34
|
+
display: table-cell;
|
|
35
|
+
}
|
|
36
|
+
`,s=n.default.div`
|
|
37
|
+
background-color: ${t.theme.colors.primary50};
|
|
38
|
+
border-radius: 12px;
|
|
39
|
+
height: 100%;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
|
|
44
|
+
&[data-is-marry-baby='true'] {
|
|
45
|
+
background-color: ${t.theme.mbColors.tonePink};
|
|
46
|
+
}
|
|
47
|
+
`,m=n.default.div`
|
|
48
|
+
margin-top: 40px;
|
|
49
|
+
padding: 24px 40px;
|
|
50
|
+
`,x=n.default.img`
|
|
51
|
+
width: 100%;
|
|
52
|
+
display: block;
|
|
53
|
+
&.similac {
|
|
54
|
+
min-width: 1px;
|
|
55
|
+
object-fit: contain;
|
|
56
|
+
|
|
57
|
+
${r.MediaQueries.mbUp} {
|
|
58
|
+
position: sticky;
|
|
59
|
+
top: 0;
|
|
60
|
+
height: 100vh;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`,l=n.default(i.Onboarding)`
|
|
64
|
+
.phone-input {
|
|
65
|
+
width: 100%;
|
|
66
|
+
margin-bottom: 32px;
|
|
67
|
+
${r.MediaQueries.mbDown} {
|
|
68
|
+
margin-bottom: 16px;
|
|
69
|
+
}
|
|
70
|
+
.PhoneInput {
|
|
71
|
+
margin-bottom: 16px;
|
|
72
|
+
}
|
|
73
|
+
.PhoneInputCountry {
|
|
74
|
+
border-radius: 4px 0 0 4px;
|
|
75
|
+
}
|
|
76
|
+
.PhoneInputInput {
|
|
77
|
+
border-radius: 0 4px 4px 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`,b=n.default.div`
|
|
81
|
+
.phone-input {
|
|
82
|
+
width: 100%;
|
|
83
|
+
margin-bottom: 32px;
|
|
84
|
+
${r.MediaQueries.mbDown} {
|
|
85
|
+
margin-bottom: 16px;
|
|
86
|
+
}
|
|
87
|
+
.PhoneInput {
|
|
88
|
+
margin-bottom: 16px;
|
|
89
|
+
}
|
|
90
|
+
.PhoneInputCountry {
|
|
91
|
+
border-radius: 4px 0 0 4px;
|
|
92
|
+
}
|
|
93
|
+
.PhoneInputInput {
|
|
94
|
+
border-radius: 0 4px 4px 0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
`,c=n.default(i.Onboarding)`
|
|
98
|
+
.otp-input {
|
|
99
|
+
margin-bottom: 36px;
|
|
100
|
+
${r.MediaQueries.mbDown} {
|
|
101
|
+
margin-bottom: 20px;
|
|
102
|
+
}
|
|
103
|
+
.otpContainer {
|
|
104
|
+
margin-bottom: 16px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
.resend {
|
|
108
|
+
display: flex;
|
|
109
|
+
gap: 6px;
|
|
110
|
+
margin-bottom: 32px;
|
|
111
|
+
${r.MediaQueries.mbDown} {
|
|
112
|
+
margin-bottom: 16px;
|
|
113
|
+
}
|
|
114
|
+
a {
|
|
115
|
+
text-decoration: underline;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
.phone-description {
|
|
120
|
+
margin-left: 2px;
|
|
121
|
+
margin-top: 2px;
|
|
122
|
+
}
|
|
123
|
+
.otp-description-edit-icon {
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
vertical-align: bottom;
|
|
126
|
+
/* height: 100%; */
|
|
127
|
+
margin-bottom: 3px;
|
|
128
|
+
margin-left: 3px;
|
|
129
|
+
}
|
|
130
|
+
`;exports.StyledBannerCol=u,exports.StyledBannerImg=x,exports.StyledBannerInner=s,exports.StyledContainer=d,exports.StyledContent=p,exports.StyledDynamicForm=b,exports.StyledIntro=m,exports.StyledOnboardingForm=l,exports.StyledOnboardingModal=a,exports.StyledOtpForm=c;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";var t=require("./tslib.es6-2277e49b.js"),e=require("react"),i=require("styled-components");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=a(e),p=a(i);const o=p.default((e=>{var{type:i}=e,a=t.__rest(e,["type"]);return n.default.createElement(i,a)}))`
|
|
2
|
+
color: var(--text-color, ${t=>t.theme.mbColors.dark});
|
|
3
|
+
font-family: Krub;
|
|
4
|
+
font-weight: 600;
|
|
5
|
+
letter-spacing: -0.2px;
|
|
6
|
+
|
|
7
|
+
&[data-type='headline-1'] {
|
|
8
|
+
font-size: 40px;
|
|
9
|
+
line-height: 60px;
|
|
10
|
+
}
|
|
11
|
+
&[data-type='headline-2'] {
|
|
12
|
+
font-size: 32px;
|
|
13
|
+
line-height: 48px;
|
|
14
|
+
}
|
|
15
|
+
&[data-type='headline-3'] {
|
|
16
|
+
font-size: 24px;
|
|
17
|
+
line-height: 40px;
|
|
18
|
+
}
|
|
19
|
+
&[data-type='headline-4'] {
|
|
20
|
+
font-size: 18px;
|
|
21
|
+
line-height: 32px;
|
|
22
|
+
}
|
|
23
|
+
`,r=p.default.p`
|
|
24
|
+
color: var(--text-color, ${t=>t.theme.mbColors.dark});
|
|
25
|
+
letter-spacing: -0.2px;
|
|
26
|
+
|
|
27
|
+
&[data-type='subtitle-1'] {
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
line-height: 26px;
|
|
31
|
+
}
|
|
32
|
+
&[data-type='subtitle-2'] {
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
line-height: 24px;
|
|
36
|
+
}
|
|
37
|
+
&[data-type='subtitle-3'] {
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
font-weight: 500;
|
|
40
|
+
line-height: 20px;
|
|
41
|
+
}
|
|
42
|
+
&[data-type='bodytext-1'] {
|
|
43
|
+
font-size: 16px;
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
line-height: 28px;
|
|
46
|
+
}
|
|
47
|
+
&[data-type='bodytext-2'] {
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
line-height: 24px;
|
|
51
|
+
}
|
|
52
|
+
&[data-type='bodytext-3'] {
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
line-height: 20px;
|
|
56
|
+
}
|
|
57
|
+
&[data-type='caption-1'] {
|
|
58
|
+
font-size: 10px;
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
letter-spacing: -0.1px;
|
|
61
|
+
line-height: 14px;
|
|
62
|
+
}
|
|
63
|
+
&[data-type='caption-2'] {
|
|
64
|
+
font-size: 10px;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
letter-spacing: -0.1px;
|
|
67
|
+
line-height: 14px;
|
|
68
|
+
}
|
|
69
|
+
`;exports.ImageWrap=i=>{var{alt:a,backupSrc:p,src:o}=i,r=t.__rest(i,["alt","backupSrc","src"]);const[l,s]=e.useState(!1);return n.default.createElement("img",Object.assign({loading:"lazy",alt:a,onError:()=>!l&&s(!0),src:l?p:o||p},r))},exports.StyledHeading=o,exports.StyledText=r;
|
package/build/lead.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-ea3181ce.js"),t=require("react"),a=require("lodash/debounce"),l=require("uuid"),n=require("./index-9511a61a.js"),o=require("./index-e1648205.js"),i=require("./gAssets.js"),r=require("@mantine/core");require("./index-f2ac0908.js"),require("./index-ba268a44.js");var d=require("./utils-4cfce198.js"),s=require("./theme-e3dc5e67.js");require("./index.styled-cfe1c301.js");var u=require("./translationsContext-b79c958c.js");require("string-format"),require("./index-5aa4382a.js"),require("./index-2f5601af.js"),require("innertext"),require("@mantine/hooks"),require("@mantine/dates"),require("./index-638e5071.js"),require("./Onboarding-e9b1bd74.js");var c=require("./index-d6a4346c.js"),m=require("dayjs");require("./screenSizeContext-4a548556.js"),require("styled-components"),require("./isProduction-8913c226.js"),require("./index-c6ef0fba.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("./index.styled-2090a9a3.js");var p=require("react-dom");require("./index-a5d0558f.js"),require("lodash/throttle"),require("./types-70a9d21d.js"),require("react-hook-form"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-262e5e6c.js");var h=require("./utils-e1462abe.js"),g=require("./index-65fa3985.js"),f=require("./index-80ac851d.js");require("./index-d02a0c7a.js"),require("./index.styled-1a707986.js");var v=require("@mantine/form");require("yup");var b=require("./useTranslations-2134a139.js"),y=require("./index-b0cc4c3d.js"),k=require("./cookieHelper-283a02b1.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function E(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("./useUniqueId-33dccf23.js"),require("react-keyed-flatten-children"),require("date-fns/locale"),require("./index-720f8201.js"),require("./index-145b7451.js"),require("@hookform/resolvers/yup"),require("./index-ae70746e.js"),require("./index-edec9cf8.js"),require("@mantine/carousel"),require("slugify"),require("./routing-723395b5.js"),require("dayjs/plugin/relativeTime");var w=_(t),C=_(a),S=_(m);const x=1,N=2;let T="https://dev.leadgen.hellobacsi.com/";const O=1,P=2;let j="";T.includes("localhost")&&(T="https://dev.leadgen.hellobacsi.com/"),location.hostname.includes("marrybaby.vn")&&(j="pink");let B="https://"+location.hostname+location.pathname+location.search;B=B.toLowerCase(),sessionStorage.getItem("insider_object")&&(window.insider_object=JSON.parse(sessionStorage.getItem("insider_object")));const q={"vi-VN":{popupLang:"vi",countryCode:"vn",countryCodeNumber:84},"id-ID":{popupLang:"id",countryCode:"id",countryCodeNumber:62},"th-TH":{popupLang:"th",countryCode:"th",countryCodeNumber:66},"ms-MY":{popupLang:"ms",countryCode:"my",countryCodeNumber:60},"zh-TW":{popupLang:"zh",countryCode:"tw",countryCodeNumber:886},"km-KH":{popupLang:"km",countryCode:"kh",countryCodeNumber:855},"my-MM":{popupLang:"my",countryCode:"mm",countryCodeNumber:95},"hi-IN":{popupLang:"hi",countryCode:"in",countryCodeNumber:91}},L=q[document.documentElement.lang]||q["vi-VN"];const $={1:"Asia/Ho_Chi_Minh",10:"Asia/Ho_Chi_Minh",11:"Asia/Ho_Chi_Minh",12:"Asia/Ho_Chi_Minh",2:"Asia/Jakarta",3:"Asia/Bangkok",4:"Asia/Phnom_Penh",5:"Asia/Kuala_Lumpur",6:"Asia/Taipei",7:"Asia/Yangon",8:"Asia/Kolkata",9:"Asia/Manila"};var I={"validator.required":"This field is required.","validator.remote":"Please fix this field.","validator.email":"Please enter a valid email address.","validator.phone":"Please input correct phone number.","validator.url":"Please enter a valid URL.","validator.date":"Please enter a valid date.","validator.dateISO":"Please enter a valid date (ISO).","validator.number":"Please enter a valid number.","validator.digits":"Please enter only digits.","validator.creditcard":"Please enter a valid credit card number.","validator.equalTo":"Please enter the same value again.","validator.accept":"Please enter a value with a valid extension.","validator.maxlength":"jQuery.validator.format('Please enter no more than {0} characters.","validator.minlength":"jQuery.validator.format('Please enter at least {0} characters.","validator.rangelength":"jQuery.validator.format('Please enter a value between {0} and {1} characters long.","validator.range":"jQuery.validator.format('Please enter a value between {0} and {1}.","validator.max":"jQuery.validator.format('Please enter a value less than or equal to {0}.","validator.min":"jQuery.validator.format('Please enter a value greater than or equal to {0}.","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"};const A={"en-PH":I,"vi-VN":{"validator.required":"Vui lòng điền mục này","validator.email":"Vui lòng điền email có thật.","validator.number":"Vui lòng điền số có thật","validator.digits":"Vui lòng chỉ điền số","validator.maxlength":"Vui lòng điền dưới {0} số","validator.minlength":"Vui lòng điền hơn {0} số","validator.remote":"Hãy sửa cho đúng.","validator.url":"Hãy nhập URL.","validator.date":"Hãy nhập ngày.","validator.dateISO":"Hãy nhập ngày (ISO).","validator.creditcard":"Hãy nhập số thẻ tín dụng.","validator.equalTo":"Hãy nhập thêm lần nữa.","validator.extension":"Phần mở rộng không đúng.","validator.rangelength":"Hãy nhập từ {0} đến {1} kí tự.","validator.range":"Hãy nhập từ {0} đến {1}.","validator.max":"Hãy nhập từ {0} trở xuống.","validator.min":"Hãy nhập từ {0} trở lên.","validator.phone":"Nhập đúng định dạng số điện thoại","validator.emailUsed":"Email này đã được sử dụng cho chiến dịch.","validator.phoneUsed":"Số điện thoại này đã được sử dụng cho chiến dịch.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"hi-IN":{"validator.required":"इस क्षेत्र की आवश्यकता है।","validator.email":"कृपया एक मान्य ईमेल पता दर्ज करें","validator.number":"कृपया एक वैध संख्या दर्ज करें","validator.digits":"कृपया केवल अंक दर्ज करें","validator.maxlength":"कृपया {0} अक्षर से अधिक दर्ज न करें","validator.minlength":"कृपया कम से कम {0} अक्षर दर्ज करें","validator.phone":"कृपया एक वैध संख्या दर्ज करें","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"id-ID":{"validator.required":"Kolom ini wajib diisi","validator.email":"Tolong daftarkan email yang valid","validator.number":"Tolong daftarkan nomor telepon yang valid","validator.digits":"Tolong masukkan angka saja","validator.maxlength":"Jangan memasukkan lebih dari {0} karakter","validator.minlength":"Tolong ketik sedikitnya {0} karakter","validator.phone":"Tolong daftarkan nomor telepon yang valid","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"ms-MY":{"validator.required":"Bahagian ini wajib diisi.","validator.email":"Sila masukkan alamat emel yang sah.","validator.number":"Sila masukkan no telefon yang sah.","validator.digits":"Sila masukkan nombor digit sahaja.","validator.maxlength":"Sila masukkan tidak lebih dari {0} aksara","validator.minlength":"Sila masukkan sekurang-kurangnya {0} aksara","validator.phone":"Sila masukkan no telefon yang sah.","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"my-MM":{"validator.required":"ဒီနေရာမှာ ဖြည့်ဖို့ လိုအပ်ပါတယ်","validator.email":"မှန်ကန်သော အီးမေးလ်လိပ်စာထည့်သွင်းပါ","validator.number":"မှန်ကန်သော ဖုန်းနံပါတ်ထည့်သွင်းပါ","validator.digits":"နံပါတ်များသာဖြည့်ပါ","validator.maxlength":"ကျေးဇူးပြု၍ {0} ထပ်မပိုသော ဂဏန်းများသာဖြည့်ပါ","validator.minlength":"ကျေးဇူးပြု၍ အနည်းဆုံး {0} ဂဏန်းဖြည့်ပါ","validator.phone":"မှန်ကန်သော ဖုန်းနံပါတ်ထည့်သွင်းပါ","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"km-KH":{"validator.required":"ព័ត៌មានចាំបាច់ដែលត្រូវបំពេញ","validator.email":"សូមវាយអាសយដ្ឋានអ៊ីម៉ែលឲ្យបានត្រឹមត្រូវ","validator.number":"សូមវាយបញ្ចូលលេខឲ្យបានត្រឹមត្រូវ","validator.digits":"វាយបញ្ចូលបានតែលេខប៉ុណ្ណោះ","validator.maxlength":"សូមវាយបញ្ចូលកុំឲ្យលើស {0} តួអក្សរ","validator.minlength":"សូមវាយបញ្ចូលតិចបំផុត {0} តួអក្ស","validator.phone":"សូមវាយបញ្ចូលលេខឲ្យបានត្រឹមត្រូវ","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"zh-TW":{"validator.required":"此為必填欄位","validator.email":"請填入有效的 email 地址","validator.number":"請填入有效的電話號碼","validator.digits":"此欄位僅能輸入數字","validator.maxlength":"請輸入少於 {0} 位數","validator.minlength":"請輸入至少 {0} 位數","validator.phone":"請填入有效的電話號碼","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"th-TH":{"validator.required":"ต้องระบุข้อมูลในช่องนี้","validator.email":"กรุณาใส่อีเมล์ที่ถูกต้อง","validator.number":"กรุณาใส่ตัวเลขที่ถูกต้อง","validator.digits":"กรุณาส่เฉพาะตัวเลข","validator.maxlength":"กรุณาใส่ตัวเลขมากกว่า {0} หลัก","validator.minlength":"กรุณาใส่ตัวเลขอย่างน้อย {0} หลัก","validator.phone":"กรุณาใส่ตัวเลขที่ถูกต้อง","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"tl-PH":I},R=e=>{const t=A[e];return t||A["en-PH"]},D=t.createContext({}),U=e=>{const[a,l]=t.useState(16),[n,o]=t.useState(9),[i,r]=t.useState(!1);return t.useEffect((()=>{if(r(!1),e){const t=new Image;t.addEventListener("load",(()=>{l(t.naturalWidth),o(t.naturalHeight),r(!0)})),t.addEventListener("error",(()=>{l(16),o(9),r(!0)})),t.src=e}else l(16),o(9),r(!0)}),[e]),{loaded:i,width:a,height:n}},M=({onClose:e,containerClassName:t,svgClassName:a})=>w.default.createElement("button",{onClick:e,className:`le-newbuilder-close-button js-modal__close ${t||""}`},w.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a},w.default.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"white"}),w.default.createElement("path",{d:"M16 17.05L10.925 22.125C10.7917 22.2584 10.621 22.329 10.413 22.337C10.2044 22.3457 10.025 22.275 9.87502 22.125C9.72502 21.975 9.65002 21.8 9.65002 21.6C9.65002 21.4 9.72502 21.225 9.87502 21.075L14.95 16L9.87502 10.925C9.74169 10.7917 9.67102 10.6207 9.66302 10.412C9.65436 10.204 9.72502 10.025 9.87502 9.87502C10.025 9.72502 10.2 9.65002 10.4 9.65002C10.6 9.65002 10.775 9.72502 10.925 9.87502L16 14.95L21.075 9.87502C21.2084 9.74169 21.3794 9.67069 21.588 9.66202C21.796 9.65402 21.975 9.72502 22.125 9.87502C22.275 10.025 22.35 10.2 22.35 10.4C22.35 10.6 22.275 10.775 22.125 10.925L17.05 16L22.125 21.075C22.2584 21.2084 22.329 21.379 22.337 21.587C22.3457 21.7957 22.275 21.975 22.125 22.125C21.975 22.275 21.8 22.35 21.6 22.35C21.4 22.35 21.225 22.275 21.075 22.125L16 17.05Z",fill:"#595959"}))),H=({popupId:e,url:t,newTab:a,imageDestkop:l,imageMobile:n,onClose:o,onOtherSubmit:i})=>{const{width:r,height:d,loaded:s}=U(n),{width:u,height:c,loaded:m}=U(l);return s&&m?w.default.createElement("div",{id:e,className:"lead-modal-wrapper","data-popup-url":location.pathname,"data-popup-type":"center_tab"},w.default.createElement("div",{className:"le-center-tab-popup"},w.default.createElement("div",{style:{position:"relative"}},w.default.createElement("a",{className:"js-popup-other-submit",href:t,target:a?"blank":"_parent",onClick:i},w.default.createElement("img",{className:"le-only-mobile",src:n,style:{aspectRatio:`${r}/${d}`}}),w.default.createElement("img",{className:"le-only-desktop",src:l,style:{aspectRatio:`${u}/${c}`}})),w.default.createElement(M,{onClose:o,containerClassName:"close-button-top-right"})))):null},F=({popupId:e,url:t,title:a,urlText:l,titleAlign:n,subtitle:o,subtitleAlign:i,newTab:r,imageDesktop:d,imageMobile:s,onClose:u,onOtherSubmit:c})=>{const{width:m,height:p,loaded:h}=U(s),{width:g,height:f,loaded:v}=U(d);return h&&v?w.default.createElement("div",{id:e,className:"lead-modal-wrapper lead-floating-wrapper","data-popup-url":location.pathname,"data-popup-type":"floating"},w.default.createElement("aside",{className:"le-only-desktop"},w.default.createElement("div",{className:"le-floating-desktop"},w.default.createElement("div",{className:"le-floating-desktop-wrap",style:{position:"relative",background:"#fff"}},d?w.default.createElement("div",null,w.default.createElement("img",{style:{maxWidth:120,borderTopLeftRadius:5,borderBottomLeftRadius:5,aspectRatio:`${g}/${f}`},src:d})):null,w.default.createElement("div",{style:{padding:20}},w.default.createElement("div",{className:`le-floating-desktop-title le-text-align-${n}`},a),w.default.createElement("div",{className:`le-floating-desktop-desc le-text-align-${i}`},o)),w.default.createElement("a",{target:r?"blank":"_parent",style:{marginLeft:35,textDecoration:"none"},href:t},w.default.createElement("button",{className:"le-joinbow-floating-btn js-popup-other-submit",onClick:c},l)),w.default.createElement(M,{onClose:u,containerClassName:"close-button-top-right"})))),w.default.createElement("aside",{className:"le-only-mobile"},w.default.createElement("div",{className:"le-floating-mobile"},w.default.createElement("div",{className:"le-floating-mobile-wrap",style:{position:"relative",background:"#fff"}},w.default.createElement("aside",{style:{display:"flex",justifyContent:"space-between"}},w.default.createElement("div",null,w.default.createElement("div",{className:`le-floating-mobile-title le-text-align-${n}`},a),w.default.createElement("div",{className:`le-floating-mobile-desc le-text-align-${i}`},o)),s?w.default.createElement("div",null,w.default.createElement("img",{style:{marginLeft:15,marginTop:4,maxWidth:100,aspectRatio:`${m}/${p}`},src:s})):null),w.default.createElement("div",{style:{textAlign:"center",marginTop:10}},w.default.createElement("a",{target:r?"blank":"_parent",href:t,style:{textDecoration:"none"}},w.default.createElement("button",{className:"le-joinbow-floating-btn js-popup-other-submit",onClick:c},l))),w.default.createElement(M,{onClose:u,containerClassName:"close-button-top-right"}))))):null},W="undefined"==typeof window,V={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},Y=(a="",l="",n="",o=500)=>{const[i,r]=t.useState([]),[d,s]=t.useState(!1);return t.useEffect((()=>{let t;return a?t=window.setTimeout((()=>e.__awaiter(void 0,void 0,void 0,(function*(){var t;if(a)try{s(!0);const o=yield((t="",a="",l="vi")=>e.__awaiter(void 0,void 0,void 0,(function*(){return new Promise(((e,n)=>{if(!t)return n("Need valid text input");if(W)return n("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:t},a?{componentRestrictions:{country:a}}:{}),{language:V[l]}),e)}catch(e){n(e)}}))})))(a,l,n);r(!(t=o)||t.length<1?[]:t.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{s(!1)}else r([])}))),o):i.length&&r([]),()=>{window.clearTimeout(t)}}),[a,o,l]),{isLoading:d,predictions:i}};const z=new class{constructor(){this.apiLeadUrl="https://dev.leadgen.hellobacsi.com/",this.apiSubotUrl="https://staging-service-subot.hellohealthgroup.com/"}},J={call(t){var{url:a,data:l}=t,n=e.__rest(t,["url","data"]);return n.body=JSON.stringify(l),n.headers={"Content-Type":"application/json"},fetch(`${z.apiLeadUrl}${a}`,n).then((e=>e.json())).catch((()=>({})))}},G={call(t){var{url:a,data:l}=t,n=e.__rest(t,["url","data"]);return n.body=JSON.stringify(l),n.headers={"Content-Type":"application/json"},fetch(`${z.apiSubotUrl}${a}`,n).then((e=>e.json())).catch((()=>({})))}},K=({bot_id:e,email:t,phone:a})=>{let l=a;return l&&l.startsWith("0")&&(l=l.substring(1)),G.call({url:"frontend/api/subot-campaign/check",method:"post",data:{bot_id:e,email:t,phone:l}})},Q=({campaign_id:e,email:t,phone:a})=>{let l=a;return l&&l.startsWith("0")&&(l=l.substring(1)),J.call({url:"api/subot-campaign/check",method:"post",data:{campaign_id:e,email:t,phone:l}})},X=({phone:e})=>J.call({url:"api/sms/otp",method:"post",data:{phone_number:e.replace("+","")}}),Z=({phone:e,otp:t})=>J.call({url:"api/sms/verify",method:"post",data:{otp_code:t,phone_number:e.replace("+","")}}),ee={email:{},phone:{}},te=(t,a,l)=>e.__awaiter(void 0,void 0,void 0,(function*(){const n="email"in l?"email":"phone",o="email"in l?l.email:l.phone,i="email"in l?"validator.emailUsed":"validator.phoneUsed";if(ee[n][o]){if(ee[n][o].value)return i;if(!ee[n][o].value&&ee[n][o].expire>Date.now())return""}const r=yield((t,a,l)=>e.__awaiter(void 0,void 0,void 0,(function*(){const e="email"in l?"email":"phone",n="email"in l?l.email:l.phone,o="email"in l?"validator.emailUsed":"validator.phoneUsed",i=yield Q({campaign_id:[t],[e]:n});return"SubmitLeadWithBotId_ERR_001"===i._errorCode||"SubmitLeadWithBotId_ERR_002"===i._errorCode||a.length&&"CheckSuBotLeadTool_ERR_001"===(yield K({bot_id:a,[e]:n}))._errorCode?o:void 0})))(t,a,l);return ee[n][o]=r?{value:!0}:{value:!1,expire:Date.now()+6e4},r})),[ae,le,ne]=v.createFormContext(),oe=["places"],ie=({name:e,placeholder:a,locale:l})=>{var n;const o=le(),[i,r]=t.useState(""),[d,s]=t.useState(""),{predictions:u}=Y(i,"","tl-PH"===l?"en":null===(n=null==l?void 0:l.split("-"))||void 0===n?void 0:n[0]),[c,m]=t.useState(null),[p,h]=t.useState(!1),g=t.useRef(Math.random().toString(36).substring(7)),v=t.useMemo((()=>{const e=u.map((e=>({value:e.description,label:e.description}))),t=e.find((e=>e.value===d));return!d||t?e:[{value:d,label:d}].concat(e)}),[u,d]);return t.useEffect((()=>{var e,t,a;(null===(a=null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.places)||void 0===a?void 0:a.AutocompleteService)?h(!0):Promise.resolve().then((function(){return E(require("@react-google-maps/api"))})).then((e=>{m((()=>e.LoadScript)),setTimeout((()=>{h(!0)}),200)}))}),[]),p?w.default.createElement(w.default.Fragment,null,c&&w.default.createElement(c,{googleMapsApiKey:"AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",libraries:oe,loadingElement:w.default.createElement(w.default.Fragment,null)}),w.default.createElement("div",{style:{display:"none"},"data-extra":!0,"data-name":e,"data-control":"text"}),w.default.createElement(f.Select,Object.assign({className:"lead-modal__form-control",label:a,placeholder:a,withAsterisk:!0,name:e,data:v,searchValue:i,onSearchChange:e=>{r(e)},filter:()=>!0,clearable:!0,searchable:!0,onChange:e=>s(e||""),icon:w.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M9.99999 9.79167C10.4028 9.79167 10.7467 9.64944 11.0317 9.365C11.3161 9.08 11.4583 8.73611 11.4583 8.33333C11.4583 7.93056 11.3161 7.58667 11.0317 7.30167C10.7467 7.01722 10.4028 6.875 9.99999 6.875C9.59721 6.875 9.25332 7.01722 8.96832 7.30167C8.68388 7.58667 8.54166 7.93056 8.54166 8.33333C8.54166 8.73611 8.68388 9.08 8.96832 9.365C9.25332 9.64944 9.59721 9.79167 9.99999 9.79167ZM9.99999 17.875C9.90277 17.875 9.80555 17.8611 9.70832 17.8333C9.6111 17.8056 9.52082 17.7569 9.43749 17.6875C7.46527 15.8958 5.98971 14.2361 5.01082 12.7083C4.03138 11.1806 3.54166 9.77778 3.54166 8.5C3.54166 6.48611 4.1911 4.87833 5.48999 3.67667C6.78832 2.47556 8.29166 1.875 9.99999 1.875C11.7083 1.875 13.2119 2.47556 14.5108 3.67667C15.8092 4.87833 16.4583 6.48611 16.4583 8.5C16.4583 9.77778 15.9689 11.1806 14.99 12.7083C14.0105 14.2361 12.5347 15.8958 10.5625 17.6875C10.4792 17.7569 10.3889 17.8056 10.2917 17.8333C10.1944 17.8611 10.0972 17.875 9.99999 17.875Z",fill:"#8C8C8C"})),autoComplete:"no-auto-complete-"+g.current,rightSection:w.default.createElement(w.default.Fragment,null)},o.getInputProps(e)))):w.default.createElement("div",{style:{height:73}})},re=({children:e,align:t})=>w.default.createElement("p",{className:`lead-modal__description ${"le-text-align-"+(t||"")} ${j}`},e),de=({children:e,align:t})=>w.default.createElement("h2",{className:`lead-modal__title ${"le-text-align-"+(t||"")} ${j}`},e),se=({listBlockAdded:e,popupId:t,locale:a,onClose:l,onOtherSubmit:n})=>{const i=le();return w.default.createElement(w.default.Fragment,null,e.map(((e,r)=>{const{name:d="",data:s={}}=e||{},{placeholder:u,value:m,align:p,listQuestion:v,isSendMailChimp:b=!1,newtab:y,url:k}=s;switch(d){case"TitleBlock":return w.default.createElement(de,{key:r,align:p},m);case"SubtitleBlock":return w.default.createElement(re,{key:r,align:p},m);case"TextBlock":return w.default.createElement(c.Input,Object.assign({key:r,withAsterisk:!0,spellCheck:!1,type:"text",placeholder:u,className:"lead-modal__form-control",label:u,"data-control":"text",name:m},i.getInputProps(m)));case"NumberBlock":return w.default.createElement(c.NumberInput,Object.assign({key:r,withAsterisk:!0,spellCheck:!1,type:"number",placeholder:u,className:"lead-modal__form-control",label:u,"data-control":"number",name:m},i.getInputProps(m)));case"EmailBlock":return w.default.createElement(c.Input,Object.assign({key:r,withAsterisk:!0,spellCheck:!1,placeholder:u,className:"lead-modal__form-control",label:u,"data-control":"email",name:m},i.getInputProps(m)));case"PhoneOtpBlock":case"PhoneBlock":{const e=t+"-"+m+"-"+r;return w.default.createElement(c.Input.Wrapper,Object.assign({size:"md",withAsterisk:!0,key:r,label:u,className:"lead-modal__form-control",labelProps:{htmlFor:e}},i.getInputProps(m)),w.default.createElement(c.Phone,{name:m,spellCheck:!1,type:"tel",placeholder:u,onChange:e=>{i.setFieldValue(m,e)},id:e,defaultCountry:a&&h.MAPPED_LOCALE[a]||"VN","data-control":"tel"}))}case"LocationBlock":return w.default.createElement(ie,{key:r,name:m,placeholder:u,locale:a});case"DateBlock":return w.default.createElement(g.DatePicker,Object.assign({withAsterisk:!0,key:r,type:"default",name:m,placeholder:u,className:"lead-modal__form-control",label:u,"data-control":"date"},i.getInputProps(m)));case"LinkButtonBlock":return w.default.createElement("div",{key:r},w.default.createElement("a",{target:y?"blank":"parrent",href:k,style:{textDecoration:"none"}},w.default.createElement(o.Button,{type:"button",size:"md",className:`lead-modal__btn ${j}`,onClick:()=>{null==l||l(),null==n||n()}},m)));case"CheckboxBlock":return w.default.createElement(w.default.Fragment,null,b&&w.default.createElement("div",{style:{display:"none"},"data-name":m+"-mailchimp"}),w.default.createElement(c.Checkbox.Group,Object.assign({withAsterisk:!0,className:"lead-modal__form-control",key:r,label:u,size:"md",sx:{display:"flex",flexDirection:"column",gap:8}},i.getInputProps(m)),v.map(((e,t)=>w.default.createElement(c.Checkbox,{name:m,key:t,value:e.value,label:e.placeholder,"data-control":"checkbox"})))));case"RadioBlock":return w.default.createElement(w.default.Fragment,null,b&&w.default.createElement(c.Input,{type:"hidden",name:m+"-mailchimp",value:b}),w.default.createElement(c.Radio.Group,Object.assign({withAsterisk:!0,className:"lead-modal__form-control",key:r,label:u,size:"md"},i.getInputProps(m)),v.map(((e,t)=>w.default.createElement(c.Radio,{name:m,key:t,value:e.value,label:e.placeholder,"data-control":"radio"})))));case"DropdownBlock":return w.default.createElement(w.default.Fragment,null,w.default.createElement("div",{style:{display:"none"},"data-extra":!0,"data-name":m,"data-control":"dropdown"}),w.default.createElement(f.Select,Object.assign({key:r,className:"lead-modal__form-control",label:u,withAsterisk:!0,name:m,data:v.map((e=>({value:e.value,label:e.placeholder})))},i.getInputProps(m))))}return null})))},ue=({phone:a,onSuccess:l,autoSendWhenOpen:i})=>{const{t:r}=b.useTranslations(),[d,u]=t.useState(""),[m,p]=t.useState(!1),[h,g]=t.useState(0),f=t.useRef(null),[v,k]=t.useState(),[_,C]=t.useState(""),S=t.useRef();t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e;if(!S.current){const e=yield Promise.resolve().then((function(){return E(require("react-phone-number-input"))}));S.current=e.formatPhoneNumberIntl}C((null===(e=S.current)||void 0===e?void 0:e.call(S,a))||a)}))}),[a]);const x=()=>e.__awaiter(void 0,void 0,void 0,(function*(){var e;if(!a)return;const t=yield X({phone:a}),n=null===(e=null==t?void 0:t._messages)||void 0===e?void 0:e[0];"Send sms successfully"===n?(g(60),setTimeout((()=>{f.current&&(f.current.focus(),f.current.scrollIntoView({block:"center"}))}),100)):"This phone number was verified"===n?l():k(n||"something Wrong")}));return t.useEffect((()=>{setTimeout((()=>{h>0&&g((e=>e-1))}),1e3)}),[h]),t.useEffect((()=>{i&&!h&&x()}),[]),w.default.createElement(w.default.Fragment,null,w.default.createElement("form",{onSubmit:t=>{t.preventDefault(),e.__awaiter(void 0,void 0,void 0,(function*(){if(!a||!d)return;const e=yield Z({phone:a,otp:d}),t=null==e?void 0:e._messages[0];"Verify successfully"===t||"This phone number was verified"===t?l():k(t||"something Wrong")}))},className:"lead-phone-otp-form"},w.default.createElement(n.Heading,{tag:"h3",fontWeight:"bold",style:{marginBottom:4}},r("lead.otp.title")),w.default.createElement(y.Text,{size:"p1",color:s.theme.colors.gray600},r("lead.otp.desc",{phone:_})),w.default.createElement(c.Input,{ref:f,name:"_"+name+"-otp",spellCheck:!1,type:"number",placeholder:"Enter OTP",className:"lead-modal__form-control",label:"Phone OTP","data-control":"otp",withAsterisk:!0,pattern:"[0-9]*",value:d,onChange:e=>{p(!0),u(e),k(m&&!e?"OTP is required":void 0)},error:m?v:void 0}),w.default.createElement(o.Button,{size:"md",color:"primary",className:`lead-modal__btn ${j}`,disabled:!d},r("lead.otp.verify")),w.default.createElement(o.Button,{type:"button",size:"md",color:"transparent",className:`lead-modal__btn lead-phone-otp-button ${j}`,onClick:()=>{x()},disabled:!!h},r("lead.otp.resend",{timer:h?` (${h}s)`:""}))))},ce=({title:e,titleAlign:t,subtitle:a,subtitleAlign:l,link:n,linkNewTab:o,linkText:i,image:r})=>{const{width:d,height:s,loaded:u}=U(r);return u?w.default.createElement("div",{className:"lead-modal__thank-you"},w.default.createElement("div",{style:{width:"100%"}},w.default.createElement("img",{src:r,style:{maxHeight:162,objectFit:"cover",aspectRatio:`${d}/${s}`}}),e&&w.default.createElement("h1",{className:`le-thankyou-title le-text-align-${t}`},e),a&&w.default.createElement("p",{className:`le-thankyou-subtitle le-text-align-${l}`},a),i&&w.default.createElement("div",null,w.default.createElement("a",{href:n,target:o?"_blank":"parrent",rel:"noreferrer"},w.default.createElement("button",{className:`lead-modal__btn ${j}`},i))))):null},me=({content:e,inlinePosition:a})=>{const l=t.useMemo((()=>{if(!a)return null;const e=document.querySelectorAll(`[data-url="${location.pathname}"] .body-content`),t=Array.from(e).reduce(((e,t)=>[...e,...Array.from(t.children)]),[]);if(null==t?void 0:t.length){const e=t.filter((e=>"P"===e.nodeName)),l=t.filter((e=>"H2"===e.nodeName));let n=null;switch(a){case"1th":n=e[0];break;case"2th":n=e[1];break;case"3th":n=e[2];break;case"4th":n=e[3];break;case"5th":n=e[4];break;case"6th":n=e[5];break;case"7th":n=e[6];break;case"8th":n=e[7];break;case"9th":n=e[8];break;case"10th":n=e[9];break;case"11th":n=e[10];break;case"12th":n=e[11];break;case"lastP":n=e[e.length-1];break;case"1thH2":n=l[0];break;case"2thH2":n=l[1];break;case"3thH2":n=l[2];break;case"4thH2":n=l[3];break;case"5thH2":n=l[4];break;case"6thH2":n=l[5];break;case"7thH2":n=l[6];break;case"8thH2":n=l[7];break;case"9thH2":n=l[8];break;case"10thH2":n=l[9];break;case"lastH2":n=l[l.length-1]}if(n){if(n.parentElement.querySelector(".inline-lead-wrapper"))return n.parentElement.querySelector(".inline-lead-wrapper");{const e=document.createElement("div");return e.classList.add("inline-lead-wrapper"),n.nextElementSibling?n.parentElement.insertBefore(e,n.nextElementSibling):n.parentElement.appendChild(e),e}}}}),[a]);return a&&l?p.createPortal(e,l):null},pe=({content:e})=>{const a=t.useMemo((()=>{const e=Array.from(document.querySelectorAll(".hc2-sidebar-with-ads,.page-main-col .right-col.f-right,.hhg-lead-sidebar"));return e.forEach((e=>{if(e.querySelector(".sidebar-lead-modal-wrapper"))return;const t=document.createElement("div");t.classList.add("sidebar-lead-modal-wrapper"),e.prepend(t)})),e.map((e=>e.querySelector(".sidebar-lead-modal-wrapper")))}),[]);return w.default.createElement(w.default.Fragment,null,a.map((t=>p.createPortal(e,d.getWrapperDomWithSelector(t,"sidebar-lead-modal-wrapper")))))},he=({popupId:e,extraFields:a,onClose:l,onOtherSubmit:n,imageMobile:r,imageDesktop:d,imageOverlayMobile:s,imageOverlayDesktop:u,imageBackground:c,currentLayout:m,title:p,onSubmit:h,showThankyou:g,campaignId:f,campaign_subot_id:v,locale:y})=>{var k,_,E;const C=JSON.parse(a.listBlockAdded),S=JSON.parse(a.actionBlocks),x=JSON.parse(a.textBlocks),N=S.submitBlock.data.url,T=S.submitBlock.data.text,O=S.submitBlock.data.text2,P=S.submitBlock.data.value,B=location.pathname,q=m.includes("Inline")||"Sidebar"===m,$="Slider"===m,[I,A]=t.useState(!0),[R,D]=t.useState(""),H=t.useRef(),F=()=>{R?D(""):null==l||l()};if(window.innerWidth<769&&["Fullscreen","Slider"].includes(m))return console.log("😎 Not show fullscreen, slider on mobile "),null;t.useEffect((()=>{(m.includes("LightBox")||"Fullscreen"==m)&&document.body.classList.add("noscroll"),window.intlTelInputUtils||require("intl-tel-input/build/js/utils"),ee.email={},ee.phone={}}),[]);const W=t.useRef(!1),V=t.useRef(!1),{form:Y,validateObj:z}=(({listBlockAdded:e=[],validatingPhoneRef:a,validatingEmailRef:l,campaignId:n,campaign_subot_id:o=[]})=>{const{t:i}=b.useTranslations(),r=t.useMemo((()=>{const t=["TextBlock","NumberBlock","EmailBlock","PhoneBlock","DateBlock","CheckboxBlock","RadioBlock","DropdownBlock","PhoneOtpBlock","LocationBlock"],r=(e,t)=>a=>{if(s.current.isTouched(e))return void 0===a||""===a||Array.isArray(a)&&0===a.length?i("validator.required"):null==t?void 0:t(a)};return e.filter((e=>t.includes(e.name))).reduce(((e,t)=>"NumberBlock"===t.name?Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value,(e=>{if(isNaN(Number(e)))return i("validator.number")}))}):"EmailBlock"===t.name?Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value,(e=>{if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return i("validator.email");l.current=!0,setTimeout((()=>{s.current.setFieldError(t.data.value,"Validating..."),te(n,o,{email:e}).then((e=>{e?s.current.setFieldError(t.data.value,i(e)):s.current.clearFieldError(t.data.value),l.current=!1})).catch((e=>{console.error(e),s.current.setFieldError(t.data.value,e.message||"Something went wrong"),l.current=!1}))}),200)}))}):"PhoneBlock"===t.name||"PhoneOtpBlock"===t.name?Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value,(e=>{if(window.intlTelInputUtils&&!window.intlTelInputUtils.isValidNumber(String(e),L.countryCode))return i("validator.phone");a.current=!0,setTimeout((()=>{s.current.setFieldError(t.data.value,"Validating..."),te(n,o,{phone:e}).then((e=>{e?s.current.setFieldError(t.data.value,i(e)):s.current.clearFieldError(t.data.value),a.current=!1})).catch((e=>{console.error(e),s.current.setFieldError(t.data.value,e.message||"Something went wrong"),a.current=!1}))}),200)}))}):"DateBlock"===t.name?Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value,(e=>{if(isNaN(Date.parse(e)))return i("validator.date")}))}):Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value)})),{})}),[e.map((e=>e.name)).join(",")]),d=ne({validateInputOnChange:!0,clearInputErrorOnChange:!0,validate:r}),s=t.useRef(d);return s.current=d,{form:d,validateObj:r}})({listBlockAdded:C,validatingPhoneRef:W,validatingEmailRef:V,campaignId:f,campaign_subot_id:v}),{width:J,height:G,loaded:K}=U(c),{width:Q,height:X,loaded:Z}=U(r),{width:le,height:oe,loaded:ie}=U(d),re=Z&&ie&&("Fullscreen"!=m||K),de=w.default.createElement(w.default.Fragment,null,w.default.createElement("style",{dangerouslySetInnerHTML:{__html:`\n .le-newbuilder-overlay {\n background-repeat: no-repeat;\n background-size: cover;\n }\n ${s?`\n .le-newbuilder-overlay {\n background: url(${s}) ;\n }`:""}\n ${u?`\n @media screen and (min-width:768px) {\n .le-newbuilder-overlay {\n background: url(${u}) ;\n }\n }`:""}`}}),w.default.createElement("div",{id:e,"data-popup-url":B,"data-popup-type":"lightbox-inline",className:`lead-modal lead-modal-wrapper modal--animate-scale ${q?"le-buider-inline":""} ${$?"le-buider-slider":""}`},"Fullscreen"==m?w.default.createElement("img",{className:"le-only-desktop le-fullscreen-img",draggable:!1,src:c||"",style:{aspectRatio:`${J}/${G}`}}):null,w.default.createElement("div",{className:`lead-modal__wrapper le-newbuilder-wrap-${m}`},w.default.createElement("div",{className:`lead-modal__content le-newbuilder-${m}`},g?w.default.createElement(ce,{title:g.title,titleAlign:g.titleAlign,subtitle:g.subtitle,subtitleAlign:g.subtitleAlign,link:g.link,linkNewTab:g.linkNewTab,linkText:g.linkText,image:g.image}):w.default.createElement(w.default.Fragment,null,w.default.createElement("header",{className:"lead-modal__header"},R?w.default.createElement("img",{src:i.CommonGAssets.getAssetPath("lead-otp-thumb.png"),draggable:"false",alt:"",style:{width:"100%"}}):w.default.createElement(w.default.Fragment,null,["LightBoxA","InlineA","Sidebar","Slider"].includes(m)?r?w.default.createElement("img",{draggable:"false",className:"lead-modal__image lead-modal-image-cover",src:r,style:{aspectRatio:`${Q}/${X}`},alt:""}):null:w.default.createElement(w.default.Fragment,null,d?w.default.createElement("img",{draggable:"false",className:"le-only-desktop lead-modal__image lead-modal-image-cover",style:{height:"100%",objectFit:"cover",aspectRatio:`${le}/${oe}`},src:d,alt:""}):null,r?w.default.createElement("img",{draggable:"false",className:"le-only-mobile lead-modal__image lead-modal-image-cover",src:r,alt:"",style:{aspectRatio:`${Q}/${X}`}}):null))),R&&w.default.createElement(ue,{phone:R,autoSendWhenOpen:!0,onSuccess:()=>{null==h||h(H.current,Y.values)}}),w.default.createElement("div",{"data-hidden":!!R,className:"lead-modal__body le-newbuilder-overlay"},w.default.createElement(ae,{form:Y},w.default.createElement("form",{ref:H,className:`lead-modal__form ${e}`,onSubmit:e=>{e.preventDefault(),Y.setTouched(Object.keys(z).reduce(((e,t)=>(e[t]=!0,e)),{})),V.current||W.current||setTimeout((()=>{Y.onSubmit((e=>{var t,a,l;if(!Object.keys(Y.errors).length){if(C.findIndex((e=>"PhoneOtpBlock"===e.name))>-1){const n=null===(a=null===(t=C.find((e=>"PhoneOtpBlock"===e.name)))||void 0===t?void 0:t.data)||void 0===a?void 0:a.value;if(null===(l=e[n])||void 0===l?void 0:l.startsWith("+84"))return void D(e[n])}null==h||h(H.current,e)}}))(e)}),100)}},w.default.createElement("div",{style:{marginBottom:20}},w.default.createElement("h2",{className:`lead-modal__title ${"le-text-align-"+(null===(k=x.titleBlock.data)||void 0===k?void 0:k.align)} ${j}`},p),w.default.createElement("p",{className:`lead-modal__description ${"le-text-align-"+(null===(_=x.titleBlock.data)||void 0===_?void 0:_.align)} ${j}`},x.subtitleBlock.data.value)),w.default.createElement("div",{className:"lead-modal__form-control-wrapper"},w.default.createElement(se,{listBlockAdded:C,popupId:e,locale:y,onClose:F,onOtherSubmit:n})),(null===(E=null==S?void 0:S.submitBlock)||void 0===E?void 0:E.isHide)?null:w.default.createElement(w.default.Fragment,null,w.default.createElement("div",{className:`lead-modal__checkbox-wrapper ${j}`},w.default.createElement("div",{className:"lead-modal__checkbox"},w.default.createElement("input",{id:"lead-term-checkbox",className:`lead-modal__checkbox__input ${j}`,type:"checkbox","aria-label":"Checkbox label",checked:I,onChange:e=>A(e.currentTarget.checked)}),w.default.createElement("div",{className:"lead-modal__checkbox__control","aria-hidden":"true"})),w.default.createElement("label",{htmlFor:"checkbox",className:"lead-modal__checkbox__label"},T," ",w.default.createElement("span",{style:{fontWeight:"bold"}},w.default.createElement("a",{target:"blank",href:N||"https://hellobacsi.com/chinh-sach",rel:"noopener noreferrer",style:{textDecoration:"none"}},O)))),w.default.createElement(o.Button,{size:"md",id:"lead-submit",type:"submit",className:`lead-modal__btn ${j}`,disabled:!I},P))))))),!m.includes("Inline")&&w.default.createElement(M,{onClose:F,containerClassName:"close-button-top-right"}))));return re?m.includes("LightBox")||"Fullscreen"==m||"Slider"==m?de:"Sidebar"==m?w.default.createElement(pe,{content:de}):m.includes("Inline")?w.default.createElement(me,{content:de,inlinePosition:a.popupInlinePosition}):null:null},ge=({popupId:e,link:t,linkText:a,linkNewTab:l,onClose:n,imageMobile:o,imageDesktop:i,currentLayout:r,onOtherSubmit:d})=>{const s=location.pathname,{width:u,height:c,loaded:m}=U(o),{width:p,height:h,loaded:g}=U(i);return m&&g?w.default.createElement("div",{id:e,className:"lead-modal-wrapper","data-popup-url":s,"data-popup-type":"skin_ab"},"SkinA"==r?w.default.createElement("aside",{className:"le-only-desktop"},w.default.createElement("div",{className:"le-skin-a-desktop"},w.default.createElement("div",{style:{position:"relative"}},w.default.createElement("img",{src:i,style:{aspectRatio:`${p}/${h}`}}),w.default.createElement("a",{style:{position:"absolute",top:"75%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",width:"calc(100% - 15px)"},href:t,target:l?"blank":"_parent"},w.default.createElement("button",{onClick:d,className:"le-joinbow-btn js-popup-other-submit"},a)),w.default.createElement(M,{onClose:n,containerClassName:"close-button-top-right"})))):"SkinB"==r?w.default.createElement("aside",{className:"le-only-desktop"},w.default.createElement("div",{className:""},w.default.createElement("div",{style:{position:"relative",zIndex:1e4}},w.default.createElement("img",{src:i,style:{width:"100%",aspectRatio:`${p}/${h}`}}),w.default.createElement("a",{style:{position:"absolute",top:"75%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",width:"100%"},href:t,target:l?"blank":"_parent"},w.default.createElement("button",{onClick:d,className:"le-joinbow-btn-mobile js-popup-other-submit"},a)),w.default.createElement(M,{containerClassName:"close-button-top-right",onClose:n})))):null,w.default.createElement("aside",{className:"le-only-mobile"},w.default.createElement("div",{className:"le-skin-mobile"},w.default.createElement("div",{style:{position:"relative"}},w.default.createElement("img",{src:o,style:{width:"100%",aspectRatio:`${u}/${c}`}}),w.default.createElement("a",{style:{position:"absolute",top:"82%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",maxWidth:"calc(100% - 15px)"},href:t,target:l?"blank":"_parent"},w.default.createElement("button",{onClick:d,className:"le-joinbow-btn-mobile js-popup-other-submit"},a)),w.default.createElement(M,{containerClassName:"close-button-top-right",svgClassName:"le-mobile-btn",onClose:n}))))):null},fe=({popupId:e,url:t,newTab:a,image:l,onClose:n,onOtherSubmit:o})=>{const{width:i,height:r,loaded:d}=U(l);return d?w.default.createElement("div",{id:e,className:"lead-modal-wrapper","data-popup-url":location.pathname,"data-popup-type":"tab"},w.default.createElement("div",{className:"le-tab-popup"},w.default.createElement("div",{style:{position:"relative"}},w.default.createElement("a",{href:t,target:a?"blank":"_parent",onClick:o},w.default.createElement("img",{className:"js-popup-other-submit",src:l,style:{aspectRatio:`${i}/${r}`}})),w.default.createElement(M,{onClose:n,containerClassName:"close-button-top-right"})))):null},ve=[],be=[],ye=[];const ke=(e="UTC")=>{const t=new Date;return new Date(t.toLocaleString("en-US",{timeZone:e}))},_e=e=>{try{const[t,a]=e.split(" "),[l,n,o]=t.split("-").map(Number),[i,r,d]=a.split(":").map(Number);return new Date(l,n-1,o,i,r,d)}catch(e){return null}};const Ee=e=>1===e.formatted_status?function(e){var t;if(1===e.forever)return!0;const a=e.started_at,l=e.ended_at,n=_e(a),o=_e(l);if(!n||!o)return!0;const i=(null===(t=e.site)||void 0===t?void 0:t.id)||1;return!(ke($[i]).getTime()>o.getTime()&&(ye.push(e),1))}(e):0===e.formatted_status&&(ve.push(e),(e=>{var t;const a=(null===(t=e.site)||void 0===t?void 0:t.id)||1,l=e.started_at,n=e.ended_at,o=_e(l),i=_e(n);if(!o||!i)return!1;const r=ke($[a]).getTime();return r<=i.getTime()&&r>=o.getTime()&&(be.push(e),!0)})(e));let we=null;function Ce({leadApi:e,leadSiteId:t,leadDomain:a,onShowPopup:n,DEBUG_URL:o}){const i=o||("https://"+location.hostname+location.pathname+location.search).toLowerCase();fetch(e+"api/campaign/"+t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:i,ga_client_id:k.getCookie("_ga")||null})}).then((e=>e.json())).then((e=>{var t,o,r,d,s;if(Se("List campagin: ",e),B="https://"+location.hostname+location.pathname+location.search,1==e._status){const u=(null===(o=null===(t=e._data)||void 0===t?void 0:t.campaigns)||void 0===o?void 0:o.filter(Ee))||[];k.getCookie("hhg-id")||(k.setCookie("hhg-id",l.v1(),{domain:"."+a,path:"/"}),Se("😍 Set HHG ID cookie"));let c=[];c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)?u.filter((e=>e.device_types.some((e=>e.id==O)))):u.filter((e=>e.device_types.some((e=>e.id==P)))),Se("👓 campaignsDevice",c),Se("--listCampaignScheduled",ve),Se("--listCampaignScheduledToActivated",be),Se("--listCampaignActiveButExpired",ye);let m=c.map(((e,t)=>e.targets.filter((e=>e.type==x)).map((e=>Object.assign(Object.assign({},e),{campaignIndex:t}))))).flat(1);m=m.filter((e=>{const t=new URL(String(e.target).toLowerCase());if("exact_match"==e.option)return Boolean(i===t.href);if("start_with"==e.option){if(i.includes(String(e.target))){return!e.sub_target.filter((e=>"excluding"==e.option)).map((e=>e.value)).includes(i.split("?")[0])}return!1}}));const p=Array.from(document.getElementsByTagName("META")).filter((e=>"article:tag"==e.getAttribute("property"))).map((e=>e.content));let h=[],g=[];p&&p.length&&(h=c.map(((e,t)=>e.targets.filter((e=>e.type==N)).map((e=>Object.assign(Object.assign({},e),{campaignIndex:t}))))).flat(1),g=h.filter((e=>p.includes(e.target))));const f=[...m,...g],v=document.cookie.split("; ").map((e=>e.split("=")[0])),b=v.filter((e=>e.includes("lead_submited")));Se("--listCampaignCodeSubmited",b);const y=v.filter((e=>e.includes("lead_closed")));Se("--listCampaignCodeClosed",y);const _=[...b,...y],E=(e=>{const t=[...e];for(let e=t.length-1;e>0;e--){const a=Math.floor(Math.random()*(e+1)),l=t[e];t[e]=t[a],t[a]=l}return t})(f.filter((e=>!_.some((t=>t.includes(c[e.campaignIndex].code))))));if(Se("--listCampaignValid : ",E),E&&E.length){const e=c[E[0].campaignIndex];Se("CAMPAIGN_SHOW",e);const{rules:t}=e,a=Number(null===(r=t.find((e=>"time"==e.rule)))||void 0===r?void 0:r.value);Se("timeoutRule",a);const l=Number(null===(d=t.find((e=>"scroll"==e.rule)))||void 0===d?void 0:d.value);Se("scrollRule",l);const o=Number(null===(s=t.find((e=>"exclude_sponsored"==e.rule)))||void 0===s?void 0:s.value);Se("excludeSponsored",o);const i=Boolean(document.querySelector(".hhg-disclaimer-text"));if(Se("💎 LEAD current page isSponsored",i),i&&o)return;let u="TIME";if(Number.isInteger(a)&&(u="TIME",Se("✨ SHOW AWESOME POPUP AFTER: ",a," seconds"),we&&clearTimeout(we),we=setTimeout((()=>{null==n||n(e,u)}),1e3*a)),Number.isInteger(l)){u="SCROLL",Se("✨ SHOW AWESOME AFTER: SCROLL",l," %");const t=document.querySelector(`[data-url="${location.pathname}"]`)||document.querySelector("body"),a=t.getBoundingClientRect().top,o=t.offsetHeight;Se("👓 Element check scroll: ",t);const i=function(){const t=window.pageYOffset||document.documentElement.scrollTop;let r=0;t>=a&&(r=Math.round((t-a)/(o-innerHeight)*100)),Se("---Scroll",r,l),r>=l&&(window.removeEventListener("scroll",i),null==n||n(e,u))};window.addEventListener("scroll",i,{passive:!0})}}else Se("🚧 No lead campaigns on current URL, tags")}})).catch((e=>{Se("Lead error: ",e)}))}const Se=(...e)=>{("production"!==process.env.NODE_ENV||process.env.NEXT_PUBLIC_DEPLOY_ENV&&"production"!==process.env.NEXT_PUBLIC_DEPLOY_ENV||"undefined"!=typeof localStorage&&"true"===localStorage.getItem("hhg_debug"))&&console.log(...e)};const xe=({campaign:e,action:a,onSubmit:n,onClose:o,showThankyou:i,locale:r})=>{var d,s;const{apiUrl:u,siteDomain:c}=t.useContext(D);t.useEffect((()=>{const e=k.getCookie("_ga")||null;fetch(`${u}api/campaign/${g}/impression`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:a,url:location.href.toLowerCase(),title_article:document.title,cookie_id:k.getCookie("hhg-id"),ga_client_id:e})})}),[]);const{extra_fields:m,image:p,image_desktop:h,code:g,image_background:f,image_overlay_mobile:v,image_overlay_desktop:b}=e||{},{currentLayout:y}=m,_=m.imageBlocks?JSON.parse(m.imageBlocks):{},E=JSON.parse(m.actionBlocks),C=JSON.parse(m.textBlocks);let S=(null===(s=null===(d=null==C?void 0:C.titleBlock)||void 0===d?void 0:d.data)||void 0===s?void 0:s.value)||"";const x={1:{},2:{},3:{}},N=t.useRef("lead-modal-"+l.v1()),T=function(e="Xin chao {{category_2}} extra"){if(e.includes("{{category_")){const t=11,a=e.search("{{category_");return+e.charAt(t+a)}return null}(S);if(T){Se("⚡️ Has categoryLevel",T);const e=Array.from(document.getElementsByTagName("META")),t=e.find((e=>e.name===`content_category_${T}`)),a=e.find((e=>e.name===`content_category_en_${T}`));if(!t||!a)return Se("⚡️ No META TAG for categoryLevel, not show popup",T),null;x[T]={value:t.content,value_en:a.content},S=S.replace(`{{category_${T}}}`,t.content),Se("⚡️ Set categoryData ",T)}else Se("⚡️ No categoryLevel",T);const O=()=>{var t,a,l,n;if(Se("👌 Other submit click"),document.body.classList.remove("noscroll"),y.includes("Skin")){const e=document.querySelector("#masthead");e&&(e.style.top="0px !important;")}const i=Number(null!==(a=null===(t=e.rules.find((e=>"days_to_show_again"==e.rule)))||void 0===t?void 0:t.value)&&void 0!==a?a:7),r=Number(null!==(n=null===(l=e.rules.find((e=>"show_again_after_submit"==e.rule)))||void 0===l?void 0:l.value)&&void 0!==n?n:0);0===r&&(Se("⛔ Popup never show again!"),k.setCookie(`lead_submited_${g}`,`target_${m.popupVersion}`,{domain:"."+c,path:"/"})),1==r&&(Se(`⌛ Popup will show again after ${i} days!`),k.setCookie(`lead_submited_${g}`,`target_${m.popupVersion}`,{domain:"."+c,days:i,path:"/"}));const d=k.getCookie("_ga")||null,s={url:location.href.toLowerCase(),title_article:document.title,meta:[],cookie_id:k.getCookie("hhg-id"),ga_client_id:d};T&&(s.category=x[T].value_en),fetch(`${u}api/campaign/${g}/lead`,{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).then((e=>e.json())).then((e=>{"error"===e.status&&Se(e)})).catch((e=>{Se("Error:",e)})),null==o||o()};return"CenterTab"===y?w.default.createElement(H,{popupId:N.current,url:_.imageMobile.data.url,newTab:_.imageMobile.data.newtab,imageMobile:p,imageDestkop:h,onClose:o,onOtherSubmit:O}):"Tab"===y?w.default.createElement(fe,{popupId:N.current,url:_.imageMobile.data.url,newTab:_.imageMobile.data.newtab,image:p,onClose:o,onOtherSubmit:O}):"Floating"===y?w.default.createElement(F,{popupId:N.current,title:S,titleAlign:C.titleBlock.data.align,subtitle:C.subtitleBlock.data.value,subtitleAlign:C.subtitleBlock.data.align,url:E.linkButtonBlock.data.url,urlText:E.linkButtonBlock.data.value,newTab:E.linkButtonBlock.data.newtab,imageMobile:p,imageDesktop:h,onClose:o,onOtherSubmit:O}):y.includes("LightBox")||y.includes("Inline")||"Fullscreen"==y||"Sidebar"==y||"Slider"==y?w.default.createElement(he,{popupId:N.current,extraFields:m,onClose:o,onOtherSubmit:O,imageMobile:p,imageDesktop:h,imageBackground:f,currentLayout:y,title:S,onSubmit:(e,t)=>n(e,t,T,x),key:y,imageOverlayDesktop:b,imageOverlayMobile:v,showThankyou:i,campaignId:e.id,campaign_subot_id:e.bot_id||[],locale:r}):y.includes("Skin")?w.default.createElement(ge,{popupId:N.current,link:E.linkButtonBlock.data.url,linkNewTab:!!E.linkButtonBlock.data.newtab,linkText:E.linkButtonBlock.data.value,onClose:o,onOtherSubmit:O,imageMobile:p,imageDesktop:h,currentLayout:y}):null};exports.LeadGen=({apiUrl:a,siteDomain:l,siteId:n,locale:o,apiSubotUrl:i,DEBUG_URL:s})=>{var c;const m=t.useRef(),p=t.useRef(Date.now()),{apiUrl:h}=t.useMemo((()=>{let e=a;return e.includes("localhost")&&(e="https://dev.leadgen.hellobacsi.com/"),{apiUrl:e}}),[a,l,n]),[g,f]=t.useState(null),[v,b]=t.useState(""),[y,_]=t.useState(null);t.useEffect((()=>{z.apiLeadUrl=h,z.apiSubotUrl=i}),[h,i]);const E=(e,t)=>{f(e),b(t)},x=()=>{var e,t;if(!g)return;Se(`👋👋👋 CLOSE POPUP ${g.code} 👋👋👋`);const a=Number(null===(e=g.rules.find((e=>"show_again_after_exit"==e.rule)))||void 0===e?void 0:e.value),n=Number(null===(t=g.rules.find((e=>"days_to_show_again"==e.rule)))||void 0===t?void 0:t.value);0==a&&(n?k.setCookie(`lead_closed_${g.code}`,`target_${null==g?void 0:g.extra_fields.popupVersion}`,{domain:"."+l,days:n,path:"/"}):k.setCookie(`lead_closed_${g.code}`,`target_${null==g?void 0:g.extra_fields.popupVersion}`,{domain:"."+l,path:"/"})),document.body.classList.remove("noscroll"),fetch(`${h}api/campaign/${g.code}/popup_exit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"CLICK",url:location.href.toLowerCase(),title_article:document.title,cookie_id:k.getCookie("hhg-id"),duration:Math.ceil((Date.now()-p.current)/1e3)})}),f(null),_(null)};t.useEffect((()=>{if(window.next){const e=C.default((e=>{Se("--🌻 routeChangeComplete",e,Date.now());const t=location.pathname;x(),document.querySelectorAll(`[data-popup-url="${t}"]`).length?Se("🔥 This URL page has show popup!"):(Se("--Process checkShowPopup"),Ce({leadApi:h,leadDomain:l,leadSiteId:n,onShowPopup:E,DEBUG_URL:s})),m.current&&window.removeEventListener("scroll",m.current)}),500);window.next.router.events.on("routeChangeComplete",e)}Ce({leadApi:h,leadDomain:l,leadSiteId:n,onShowPopup:E,DEBUG_URL:s})}),[]);const N=(t,a,n,o)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,i,r,d,s,u,c,m,p,f,v;if(!a)return;Se("submitHandler",n,o);const b=Object.keys(a).map((e=>({name:e,value:String(a[e])}))),y=k.getCookie("_ga")||null;window.intlTelInputUtils||(yield require("intl-tel-input/build/js/utils"));const E={url:location.href.toLowerCase(),title_article:document.title,meta:b.map((e=>{var a,l;const n=(null===(a=t.querySelector(`*[name="${e.name}"]`))||void 0===a?void 0:a.getAttribute("data-control"))||(null===(l=t.querySelector(`*[data-extra][data-name="${e.name}"]`))||void 0===l?void 0:l.getAttribute("data-control"))||"text",o="tel"===n?window.intlTelInputUtils.formatNumber(String(e.value),null==L?void 0:L.countryCodeNumber,2).replace(/\s+/g,""):"date"===n?S.default(e.value).format("YYYY-MM-DD"):e.value;return{key:e.name,value:o,control:n,is_sent_mailchimp:t.querySelector(`div[data-name="${e.name}-mailchimp"]`)?"true":"false"}})),cookie_id:k.getCookie("hhg-id"),ga_client_id:y};n&&o[n].value_en&&(E.category=o[n].value_en);const w=Number((null===(i=null===(e=g.rules)||void 0===e?void 0:e.find((e=>"days_to_show_again"===e.rule)))||void 0===i?void 0:i.value)||7),C=Number((null===(d=null===(r=g.rules)||void 0===r?void 0:r.find((e=>"show_again_after_submit"===e.rule)))||void 0===d?void 0:d.value)||0);if(0==C&&(Se("⛔ Popup never show again!"),k.setCookie(`lead_submited_${g.code}`,`target_${null==g?void 0:g.extra_fields.targetType}`,{domain:"."+l,path:"/"})),1==C&&(Se(`⌛ Popup will show again after ${w} days!`),k.setCookie(`lead_submited_${g.code}`,`target_${null==g?void 0:g.extra_fields.targetType}`,{domain:"."+l,days:w,path:"/"})),fetch(`${h}api/campaign/${g.code}/lead`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)}),"notshow"==(null==g?void 0:g.extra_fields.popupShowThankYou))return x(),void document.body.classList.remove("noscroll");let N=!0;const T=g.thank_you_image||`${h}admin/img/thanksyou.png`;let O,P,j=(null==g?void 0:g.extra_fields.popupThankyouTitle)||"Thank you.",B=(null==g?void 0:g.extra_fields.popupThankyouDesc)||"We appreciate your time!",q="",$="",I="";if("2.1"==(null==g?void 0:g.extra_fields.popupVersion)){const e=g.extra_fields,t=JSON.parse(e.listBlockThankyou),a=t.find((e=>"TitleBlock"==e.name)),l=t.find((e=>"SubtitleBlock"==e.name)),n=t.find((e=>"LinkButtonBlock"==e.name));j=(null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.value)||"",q=(null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.align)||"",B=(null===(c=null==l?void 0:l.data)||void 0===c?void 0:c.value)||"",$=(null===(m=null==l?void 0:l.data)||void 0===m?void 0:m.align)||"",O=(null===(p=null==n?void 0:n.data)||void 0===p?void 0:p.value)||"",P=(null===(f=null==n?void 0:n.data)||void 0===f?void 0:f.newtab)||!1,I=(null===(v=null==n?void 0:n.data)||void 0===v?void 0:v.url)||"";const o=g.extra_fields.currentLayout;["SkinA","SkinB","Floating","Tab","CenterTab"].includes(o)&&(N=!1)}_(N?{title:j,titleAlign:q,subtitle:B,subtitleAlign:$,link:I,linkNewTab:P,linkText:O,image:T}:null),sessionStorage.getItem("insider_object")?window.insider_object=JSON.parse(sessionStorage.getItem("insider_object")):window.insider_object={user:{email:"",phone_number:"",gdpr_optin:!0,sms_optin:!0,email_optin:!0}},b.map((e=>{const t=e.name,a=e.value;"tel"==t?window.insider_object.user.phone_number=a:"email"==t&&(window.insider_object.user.email=a)})),sessionStorage.setItem("insider_object",JSON.stringify(window.insider_object))}));return t.useEffect((()=>{g&&(p.current=Date.now())}),[g]),w.default.createElement(D.Provider,{value:{apiUrl:h,siteDomain:l,siteId:n,locale:o}},w.default.createElement(u.TranslationsContext.Provider,{value:{locale:o,values:R(o)}},w.default.createElement(r.Portal,{target:d.getPopupWrapperDom()},w.default.createElement(r.Box,{sx:{position:"fixed",zIndex:600}},w.default.createElement(r.Transition,{mounted:Boolean("2.1"===(null===(c=null==g?void 0:g.extra_fields)||void 0===c?void 0:c.popupVersion)),transition:"fade",duration:600,timingFunction:"ease"},(e=>{var t;return w.default.createElement(r.Box,{style:e},"2.1"===(null===(t=null==g?void 0:g.extra_fields)||void 0===t?void 0:t.popupVersion)&&w.default.createElement(w.default.Fragment,null,!!g.extra_fields.currentLayout&&!g.extra_fields.currentLayout.includes("Inline")&&!g.extra_fields.currentLayout.includes("Sidebar")&&w.default.createElement(r.Overlay,{color:"#000",opacity:.5,center:!0,zIndex:400,pos:"fixed",onClick:()=>x()}),w.default.createElement(xe,{campaign:g,action:v,onSubmit:N,onClose:x,showThankyou:y,locale:o})))}))))))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-2277e49b.js"),t=require("react"),a=require("lodash/debounce"),l=require("uuid"),n=require("./index-873c7d5c.js"),o=require("./index-afddf6c8.js"),i=require("./gAssets.js"),r=require("@mantine/core");require("./index-aa465abf.js"),require("./index-8572a1e3.js");var d=require("./utils-ca50b14e.js"),s=require("./theme-f4d3e318.js");require("./index.styled-e5b26ff8.js");var u=require("./translationsContext-5205b47d.js");require("string-format"),require("./index-18caa50b.js"),require("./index-2c5da73d.js"),require("innertext"),require("@mantine/hooks"),require("@mantine/dates"),require("./index-5f4e003c.js"),require("./Onboarding-3ad3c9cb.js");var c=require("./index-3f9f042b.js"),m=require("dayjs");require("./screenSizeContext-f496f721.js"),require("styled-components"),require("./isProduction-5a688ca0.js"),require("./index-97beea5c.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("./index.styled-41cc3c31.js");var p=require("react-dom");require("./index-73977093.js"),require("lodash/throttle"),require("./types-1db8e1a1.js"),require("react-hook-form"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-8e8974bb.js");var h=require("./utils-f304a6e7.js"),g=require("./index-64027e80.js"),f=require("./index-195ff04d.js");require("./index-f639d15c.js"),require("./index.styled-b466d89c.js");var v=require("@mantine/form");require("yup");var b=require("./useTranslations-cb70f9dd.js"),y=require("./index-7bb52fd2.js"),k=require("./cookieHelper-6a8008f6.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function E(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("./useUniqueId-fc07e386.js"),require("react-keyed-flatten-children"),require("date-fns/locale"),require("./index-f9f1f3ff.js"),require("./index-947a97a6.js"),require("@hookform/resolvers/yup"),require("./index-4f4f12e2.js"),require("./index-3dcf1cc5.js"),require("@mantine/carousel"),require("slugify"),require("./routing-cf65d7db.js"),require("dayjs/plugin/relativeTime");var w=_(t),C=_(a),S=_(m);const x=1,N=2;let T="https://dev.leadgen.hellobacsi.com/";const O=1,P=2;let j="";T.includes("localhost")&&(T="https://dev.leadgen.hellobacsi.com/"),location.hostname.includes("marrybaby.vn")&&(j="pink");let B="https://"+location.hostname+location.pathname+location.search;B=B.toLowerCase(),sessionStorage.getItem("insider_object")&&(window.insider_object=JSON.parse(sessionStorage.getItem("insider_object")));const q={"vi-VN":{popupLang:"vi",countryCode:"vn",countryCodeNumber:84},"id-ID":{popupLang:"id",countryCode:"id",countryCodeNumber:62},"th-TH":{popupLang:"th",countryCode:"th",countryCodeNumber:66},"ms-MY":{popupLang:"ms",countryCode:"my",countryCodeNumber:60},"zh-TW":{popupLang:"zh",countryCode:"tw",countryCodeNumber:886},"km-KH":{popupLang:"km",countryCode:"kh",countryCodeNumber:855},"my-MM":{popupLang:"my",countryCode:"mm",countryCodeNumber:95},"hi-IN":{popupLang:"hi",countryCode:"in",countryCodeNumber:91}},L=q[document.documentElement.lang]||q["vi-VN"];const $={1:"Asia/Ho_Chi_Minh",10:"Asia/Ho_Chi_Minh",11:"Asia/Ho_Chi_Minh",12:"Asia/Ho_Chi_Minh",2:"Asia/Jakarta",3:"Asia/Bangkok",4:"Asia/Phnom_Penh",5:"Asia/Kuala_Lumpur",6:"Asia/Taipei",7:"Asia/Yangon",8:"Asia/Kolkata",9:"Asia/Manila"};var I={"validator.required":"This field is required.","validator.remote":"Please fix this field.","validator.email":"Please enter a valid email address.","validator.phone":"Please input correct phone number.","validator.url":"Please enter a valid URL.","validator.date":"Please enter a valid date.","validator.dateISO":"Please enter a valid date (ISO).","validator.number":"Please enter a valid number.","validator.digits":"Please enter only digits.","validator.creditcard":"Please enter a valid credit card number.","validator.equalTo":"Please enter the same value again.","validator.accept":"Please enter a value with a valid extension.","validator.maxlength":"jQuery.validator.format('Please enter no more than {0} characters.","validator.minlength":"jQuery.validator.format('Please enter at least {0} characters.","validator.rangelength":"jQuery.validator.format('Please enter a value between {0} and {1} characters long.","validator.range":"jQuery.validator.format('Please enter a value between {0} and {1}.","validator.max":"jQuery.validator.format('Please enter a value less than or equal to {0}.","validator.min":"jQuery.validator.format('Please enter a value greater than or equal to {0}.","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"};const A={"en-PH":I,"vi-VN":{"validator.required":"Vui lòng điền mục này","validator.email":"Vui lòng điền email có thật.","validator.number":"Vui lòng điền số có thật","validator.digits":"Vui lòng chỉ điền số","validator.maxlength":"Vui lòng điền dưới {0} số","validator.minlength":"Vui lòng điền hơn {0} số","validator.remote":"Hãy sửa cho đúng.","validator.url":"Hãy nhập URL.","validator.date":"Hãy nhập ngày.","validator.dateISO":"Hãy nhập ngày (ISO).","validator.creditcard":"Hãy nhập số thẻ tín dụng.","validator.equalTo":"Hãy nhập thêm lần nữa.","validator.extension":"Phần mở rộng không đúng.","validator.rangelength":"Hãy nhập từ {0} đến {1} kí tự.","validator.range":"Hãy nhập từ {0} đến {1}.","validator.max":"Hãy nhập từ {0} trở xuống.","validator.min":"Hãy nhập từ {0} trở lên.","validator.phone":"Nhập đúng định dạng số điện thoại","validator.emailUsed":"Email này đã được sử dụng cho chiến dịch.","validator.phoneUsed":"Số điện thoại này đã được sử dụng cho chiến dịch.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"hi-IN":{"validator.required":"इस क्षेत्र की आवश्यकता है।","validator.email":"कृपया एक मान्य ईमेल पता दर्ज करें","validator.number":"कृपया एक वैध संख्या दर्ज करें","validator.digits":"कृपया केवल अंक दर्ज करें","validator.maxlength":"कृपया {0} अक्षर से अधिक दर्ज न करें","validator.minlength":"कृपया कम से कम {0} अक्षर दर्ज करें","validator.phone":"कृपया एक वैध संख्या दर्ज करें","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"id-ID":{"validator.required":"Kolom ini wajib diisi","validator.email":"Tolong daftarkan email yang valid","validator.number":"Tolong daftarkan nomor telepon yang valid","validator.digits":"Tolong masukkan angka saja","validator.maxlength":"Jangan memasukkan lebih dari {0} karakter","validator.minlength":"Tolong ketik sedikitnya {0} karakter","validator.phone":"Tolong daftarkan nomor telepon yang valid","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"ms-MY":{"validator.required":"Bahagian ini wajib diisi.","validator.email":"Sila masukkan alamat emel yang sah.","validator.number":"Sila masukkan no telefon yang sah.","validator.digits":"Sila masukkan nombor digit sahaja.","validator.maxlength":"Sila masukkan tidak lebih dari {0} aksara","validator.minlength":"Sila masukkan sekurang-kurangnya {0} aksara","validator.phone":"Sila masukkan no telefon yang sah.","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"my-MM":{"validator.required":"ဒီနေရာမှာ ဖြည့်ဖို့ လိုအပ်ပါတယ်","validator.email":"မှန်ကန်သော အီးမေးလ်လိပ်စာထည့်သွင်းပါ","validator.number":"မှန်ကန်သော ဖုန်းနံပါတ်ထည့်သွင်းပါ","validator.digits":"နံပါတ်များသာဖြည့်ပါ","validator.maxlength":"ကျေးဇူးပြု၍ {0} ထပ်မပိုသော ဂဏန်းများသာဖြည့်ပါ","validator.minlength":"ကျေးဇူးပြု၍ အနည်းဆုံး {0} ဂဏန်းဖြည့်ပါ","validator.phone":"မှန်ကန်သော ဖုန်းနံပါတ်ထည့်သွင်းပါ","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"km-KH":{"validator.required":"ព័ត៌មានចាំបាច់ដែលត្រូវបំពេញ","validator.email":"សូមវាយអាសយដ្ឋានអ៊ីម៉ែលឲ្យបានត្រឹមត្រូវ","validator.number":"សូមវាយបញ្ចូលលេខឲ្យបានត្រឹមត្រូវ","validator.digits":"វាយបញ្ចូលបានតែលេខប៉ុណ្ណោះ","validator.maxlength":"សូមវាយបញ្ចូលកុំឲ្យលើស {0} តួអក្សរ","validator.minlength":"សូមវាយបញ្ចូលតិចបំផុត {0} តួអក្ស","validator.phone":"សូមវាយបញ្ចូលលេខឲ្យបានត្រឹមត្រូវ","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"zh-TW":{"validator.required":"此為必填欄位","validator.email":"請填入有效的 email 地址","validator.number":"請填入有效的電話號碼","validator.digits":"此欄位僅能輸入數字","validator.maxlength":"請輸入少於 {0} 位數","validator.minlength":"請輸入至少 {0} 位數","validator.phone":"請填入有效的電話號碼","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"th-TH":{"validator.required":"ต้องระบุข้อมูลในช่องนี้","validator.email":"กรุณาใส่อีเมล์ที่ถูกต้อง","validator.number":"กรุณาใส่ตัวเลขที่ถูกต้อง","validator.digits":"กรุณาส่เฉพาะตัวเลข","validator.maxlength":"กรุณาใส่ตัวเลขมากกว่า {0} หลัก","validator.minlength":"กรุณาใส่ตัวเลขอย่างน้อย {0} หลัก","validator.phone":"กรุณาใส่ตัวเลขที่ถูกต้อง","validator.emailUsed":"Email already in use for this campaign.","validator.phoneUsed":"Your phone number already in use for this campaign.","lead.otp.title":"Enter OTP","lead.otp.desc":"We have sent an OTP to your mobile number {phone}","lead.otp.verify":"Verify","lead.otp.resend":"Resend OTP{timer}"},"tl-PH":I},R=e=>{const t=A[e];return t||A["en-PH"]},D=t.createContext({}),U=e=>{const[a,l]=t.useState(16),[n,o]=t.useState(9),[i,r]=t.useState(!1);return t.useEffect((()=>{if(r(!1),e){const t=new Image;t.addEventListener("load",(()=>{l(t.naturalWidth),o(t.naturalHeight),r(!0)})),t.addEventListener("error",(()=>{l(16),o(9),r(!0)})),t.src=e}else l(16),o(9),r(!0)}),[e]),{loaded:i,width:a,height:n}},M=({onClose:e,containerClassName:t,svgClassName:a})=>w.default.createElement("button",{onClick:e,className:`le-newbuilder-close-button js-modal__close ${t||""}`},w.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a},w.default.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"white"}),w.default.createElement("path",{d:"M16 17.05L10.925 22.125C10.7917 22.2584 10.621 22.329 10.413 22.337C10.2044 22.3457 10.025 22.275 9.87502 22.125C9.72502 21.975 9.65002 21.8 9.65002 21.6C9.65002 21.4 9.72502 21.225 9.87502 21.075L14.95 16L9.87502 10.925C9.74169 10.7917 9.67102 10.6207 9.66302 10.412C9.65436 10.204 9.72502 10.025 9.87502 9.87502C10.025 9.72502 10.2 9.65002 10.4 9.65002C10.6 9.65002 10.775 9.72502 10.925 9.87502L16 14.95L21.075 9.87502C21.2084 9.74169 21.3794 9.67069 21.588 9.66202C21.796 9.65402 21.975 9.72502 22.125 9.87502C22.275 10.025 22.35 10.2 22.35 10.4C22.35 10.6 22.275 10.775 22.125 10.925L17.05 16L22.125 21.075C22.2584 21.2084 22.329 21.379 22.337 21.587C22.3457 21.7957 22.275 21.975 22.125 22.125C21.975 22.275 21.8 22.35 21.6 22.35C21.4 22.35 21.225 22.275 21.075 22.125L16 17.05Z",fill:"#595959"}))),H=({popupId:e,url:t,newTab:a,imageDestkop:l,imageMobile:n,onClose:o,onOtherSubmit:i})=>{const{width:r,height:d,loaded:s}=U(n),{width:u,height:c,loaded:m}=U(l);return s&&m?w.default.createElement("div",{id:e,className:"lead-modal-wrapper","data-popup-url":location.pathname,"data-popup-type":"center_tab"},w.default.createElement("div",{className:"le-center-tab-popup"},w.default.createElement("div",{style:{position:"relative"}},w.default.createElement("a",{className:"js-popup-other-submit",href:t,target:a?"blank":"_parent",onClick:i},w.default.createElement("img",{className:"le-only-mobile",src:n,style:{aspectRatio:`${r}/${d}`}}),w.default.createElement("img",{className:"le-only-desktop",src:l,style:{aspectRatio:`${u}/${c}`}})),w.default.createElement(M,{onClose:o,containerClassName:"close-button-top-right"})))):null},F=({popupId:e,url:t,title:a,urlText:l,titleAlign:n,subtitle:o,subtitleAlign:i,newTab:r,imageDesktop:d,imageMobile:s,onClose:u,onOtherSubmit:c})=>{const{width:m,height:p,loaded:h}=U(s),{width:g,height:f,loaded:v}=U(d);return h&&v?w.default.createElement("div",{id:e,className:"lead-modal-wrapper lead-floating-wrapper","data-popup-url":location.pathname,"data-popup-type":"floating"},w.default.createElement("aside",{className:"le-only-desktop"},w.default.createElement("div",{className:"le-floating-desktop"},w.default.createElement("div",{className:"le-floating-desktop-wrap",style:{position:"relative",background:"#fff"}},d?w.default.createElement("div",null,w.default.createElement("img",{style:{maxWidth:120,borderTopLeftRadius:5,borderBottomLeftRadius:5,aspectRatio:`${g}/${f}`},src:d})):null,w.default.createElement("div",{style:{padding:20}},w.default.createElement("div",{className:`le-floating-desktop-title le-text-align-${n}`},a),w.default.createElement("div",{className:`le-floating-desktop-desc le-text-align-${i}`},o)),w.default.createElement("a",{target:r?"blank":"_parent",style:{marginLeft:35,textDecoration:"none"},href:t},w.default.createElement("button",{className:"le-joinbow-floating-btn js-popup-other-submit",onClick:c},l)),w.default.createElement(M,{onClose:u,containerClassName:"close-button-top-right"})))),w.default.createElement("aside",{className:"le-only-mobile"},w.default.createElement("div",{className:"le-floating-mobile"},w.default.createElement("div",{className:"le-floating-mobile-wrap",style:{position:"relative",background:"#fff"}},w.default.createElement("aside",{style:{display:"flex",justifyContent:"space-between"}},w.default.createElement("div",null,w.default.createElement("div",{className:`le-floating-mobile-title le-text-align-${n}`},a),w.default.createElement("div",{className:`le-floating-mobile-desc le-text-align-${i}`},o)),s?w.default.createElement("div",null,w.default.createElement("img",{style:{marginLeft:15,marginTop:4,maxWidth:100,aspectRatio:`${m}/${p}`},src:s})):null),w.default.createElement("div",{style:{textAlign:"center",marginTop:10}},w.default.createElement("a",{target:r?"blank":"_parent",href:t,style:{textDecoration:"none"}},w.default.createElement("button",{className:"le-joinbow-floating-btn js-popup-other-submit",onClick:c},l))),w.default.createElement(M,{onClose:u,containerClassName:"close-button-top-right"}))))):null},W="undefined"==typeof window,V={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},Y=(a="",l="",n="",o=500)=>{const[i,r]=t.useState([]),[d,s]=t.useState(!1);return t.useEffect((()=>{let t;return a?t=window.setTimeout((()=>e.__awaiter(void 0,void 0,void 0,(function*(){var t;if(a)try{s(!0);const o=yield((t="",a="",l="vi")=>e.__awaiter(void 0,void 0,void 0,(function*(){return new Promise(((e,n)=>{if(!t)return n("Need valid text input");if(W)return n("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:t},a?{componentRestrictions:{country:a}}:{}),{language:V[l]}),e)}catch(e){n(e)}}))})))(a,l,n);r(!(t=o)||t.length<1?[]:t.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{s(!1)}else r([])}))),o):i.length&&r([]),()=>{window.clearTimeout(t)}}),[a,o,l]),{isLoading:d,predictions:i}};const z=new class{constructor(){this.apiLeadUrl="https://dev.leadgen.hellobacsi.com/",this.apiSubotUrl="https://staging-service-subot.hellohealthgroup.com/"}},J={call(t){var{url:a,data:l}=t,n=e.__rest(t,["url","data"]);return n.body=JSON.stringify(l),n.headers={"Content-Type":"application/json"},fetch(`${z.apiLeadUrl}${a}`,n).then((e=>e.json())).catch((()=>({})))}},G={call(t){var{url:a,data:l}=t,n=e.__rest(t,["url","data"]);return n.body=JSON.stringify(l),n.headers={"Content-Type":"application/json"},fetch(`${z.apiSubotUrl}${a}`,n).then((e=>e.json())).catch((()=>({})))}},K=({bot_id:e,email:t,phone:a})=>{let l=a;return l&&l.startsWith("0")&&(l=l.substring(1)),G.call({url:"frontend/api/subot-campaign/check",method:"post",data:{bot_id:e,email:t,phone:l}})},Q=({campaign_id:e,email:t,phone:a})=>{let l=a;return l&&l.startsWith("0")&&(l=l.substring(1)),J.call({url:"api/subot-campaign/check",method:"post",data:{campaign_id:e,email:t,phone:l}})},X=({phone:e})=>J.call({url:"api/sms/otp",method:"post",data:{phone_number:e.replace("+","")}}),Z=({phone:e,otp:t})=>J.call({url:"api/sms/verify",method:"post",data:{otp_code:t,phone_number:e.replace("+","")}}),ee={email:{},phone:{}},te=(t,a,l)=>e.__awaiter(void 0,void 0,void 0,(function*(){const n="email"in l?"email":"phone",o="email"in l?l.email:l.phone,i="email"in l?"validator.emailUsed":"validator.phoneUsed";if(ee[n][o]){if(ee[n][o].value)return i;if(!ee[n][o].value&&ee[n][o].expire>Date.now())return""}const r=yield((t,a,l)=>e.__awaiter(void 0,void 0,void 0,(function*(){const e="email"in l?"email":"phone",n="email"in l?l.email:l.phone,o="email"in l?"validator.emailUsed":"validator.phoneUsed",i=yield Q({campaign_id:[t],[e]:n});return"SubmitLeadWithBotId_ERR_001"===i._errorCode||"SubmitLeadWithBotId_ERR_002"===i._errorCode||a.length&&"CheckSuBotLeadTool_ERR_001"===(yield K({bot_id:a,[e]:n}))._errorCode?o:void 0})))(t,a,l);return ee[n][o]=r?{value:!0}:{value:!1,expire:Date.now()+6e4},r})),[ae,le,ne]=v.createFormContext(),oe=["places"],ie=({name:e,placeholder:a,locale:l})=>{var n;const o=le(),[i,r]=t.useState(""),[d,s]=t.useState(""),{predictions:u}=Y(i,"","tl-PH"===l?"en":null===(n=null==l?void 0:l.split("-"))||void 0===n?void 0:n[0]),[c,m]=t.useState(null),[p,h]=t.useState(!1),g=t.useRef(Math.random().toString(36).substring(7)),v=t.useMemo((()=>{const e=u.map((e=>({value:e.description,label:e.description}))),t=e.find((e=>e.value===d));return!d||t?e:[{value:d,label:d}].concat(e)}),[u,d]);return t.useEffect((()=>{var e,t,a;(null===(a=null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.places)||void 0===a?void 0:a.AutocompleteService)?h(!0):Promise.resolve().then((function(){return E(require("@react-google-maps/api"))})).then((e=>{m((()=>e.LoadScript)),setTimeout((()=>{h(!0)}),200)}))}),[]),p?w.default.createElement(w.default.Fragment,null,c&&w.default.createElement(c,{googleMapsApiKey:"AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",libraries:oe,loadingElement:w.default.createElement(w.default.Fragment,null)}),w.default.createElement("div",{style:{display:"none"},"data-extra":!0,"data-name":e,"data-control":"text"}),w.default.createElement(f.Select,Object.assign({className:"lead-modal__form-control",label:a,placeholder:a,withAsterisk:!0,name:e,data:v,searchValue:i,onSearchChange:e=>{r(e)},filter:()=>!0,clearable:!0,searchable:!0,onChange:e=>s(e||""),icon:w.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M9.99999 9.79167C10.4028 9.79167 10.7467 9.64944 11.0317 9.365C11.3161 9.08 11.4583 8.73611 11.4583 8.33333C11.4583 7.93056 11.3161 7.58667 11.0317 7.30167C10.7467 7.01722 10.4028 6.875 9.99999 6.875C9.59721 6.875 9.25332 7.01722 8.96832 7.30167C8.68388 7.58667 8.54166 7.93056 8.54166 8.33333C8.54166 8.73611 8.68388 9.08 8.96832 9.365C9.25332 9.64944 9.59721 9.79167 9.99999 9.79167ZM9.99999 17.875C9.90277 17.875 9.80555 17.8611 9.70832 17.8333C9.6111 17.8056 9.52082 17.7569 9.43749 17.6875C7.46527 15.8958 5.98971 14.2361 5.01082 12.7083C4.03138 11.1806 3.54166 9.77778 3.54166 8.5C3.54166 6.48611 4.1911 4.87833 5.48999 3.67667C6.78832 2.47556 8.29166 1.875 9.99999 1.875C11.7083 1.875 13.2119 2.47556 14.5108 3.67667C15.8092 4.87833 16.4583 6.48611 16.4583 8.5C16.4583 9.77778 15.9689 11.1806 14.99 12.7083C14.0105 14.2361 12.5347 15.8958 10.5625 17.6875C10.4792 17.7569 10.3889 17.8056 10.2917 17.8333C10.1944 17.8611 10.0972 17.875 9.99999 17.875Z",fill:"#8C8C8C"})),autoComplete:"no-auto-complete-"+g.current,rightSection:w.default.createElement(w.default.Fragment,null)},o.getInputProps(e)))):w.default.createElement("div",{style:{height:73}})},re=({children:e,align:t})=>w.default.createElement("p",{className:`lead-modal__description ${"le-text-align-"+(t||"")} ${j}`},e),de=({children:e,align:t})=>w.default.createElement("h2",{className:`lead-modal__title ${"le-text-align-"+(t||"")} ${j}`},e),se=({listBlockAdded:e,popupId:t,locale:a,onClose:l,onOtherSubmit:n})=>{const i=le();return w.default.createElement(w.default.Fragment,null,e.map(((e,r)=>{const{name:d="",data:s={}}=e||{},{placeholder:u,value:m,align:p,listQuestion:v,isSendMailChimp:b=!1,newtab:y,url:k}=s;switch(d){case"TitleBlock":return w.default.createElement(de,{key:r,align:p},m);case"SubtitleBlock":return w.default.createElement(re,{key:r,align:p},m);case"TextBlock":return w.default.createElement(c.Input,Object.assign({key:r,withAsterisk:!0,spellCheck:!1,type:"text",placeholder:u,className:"lead-modal__form-control",label:u,"data-control":"text",name:m},i.getInputProps(m)));case"NumberBlock":return w.default.createElement(c.NumberInput,Object.assign({key:r,withAsterisk:!0,spellCheck:!1,type:"number",placeholder:u,className:"lead-modal__form-control",label:u,"data-control":"number",name:m},i.getInputProps(m)));case"EmailBlock":return w.default.createElement(c.Input,Object.assign({key:r,withAsterisk:!0,spellCheck:!1,placeholder:u,className:"lead-modal__form-control",label:u,"data-control":"email",name:m},i.getInputProps(m)));case"PhoneOtpBlock":case"PhoneBlock":{const e=t+"-"+m+"-"+r;return w.default.createElement(c.Input.Wrapper,Object.assign({size:"md",withAsterisk:!0,key:r,label:u,className:"lead-modal__form-control",labelProps:{htmlFor:e}},i.getInputProps(m)),w.default.createElement(c.Phone,{name:m,spellCheck:!1,type:"tel",placeholder:u,onChange:e=>{i.setFieldValue(m,e)},id:e,defaultCountry:a&&h.MAPPED_LOCALE[a]||"VN","data-control":"tel"}))}case"LocationBlock":return w.default.createElement(ie,{key:r,name:m,placeholder:u,locale:a});case"DateBlock":return w.default.createElement(g.DatePicker,Object.assign({withAsterisk:!0,key:r,type:"default",name:m,placeholder:u,className:"lead-modal__form-control",label:u,"data-control":"date"},i.getInputProps(m)));case"LinkButtonBlock":return w.default.createElement("div",{key:r},w.default.createElement("a",{target:y?"blank":"parrent",href:k,style:{textDecoration:"none"}},w.default.createElement(o.Button,{type:"button",size:"md",className:`lead-modal__btn ${j}`,onClick:()=>{null==l||l(),null==n||n()}},m)));case"CheckboxBlock":return w.default.createElement(w.default.Fragment,null,b&&w.default.createElement("div",{style:{display:"none"},"data-name":m+"-mailchimp"}),w.default.createElement(c.Checkbox.Group,Object.assign({withAsterisk:!0,className:"lead-modal__form-control",key:r,label:u,size:"md",sx:{display:"flex",flexDirection:"column",gap:8}},i.getInputProps(m)),v.map(((e,t)=>w.default.createElement(c.Checkbox,{name:m,key:t,value:e.value,label:e.placeholder,"data-control":"checkbox"})))));case"RadioBlock":return w.default.createElement(w.default.Fragment,null,b&&w.default.createElement(c.Input,{type:"hidden",name:m+"-mailchimp",value:b}),w.default.createElement(c.Radio.Group,Object.assign({withAsterisk:!0,className:"lead-modal__form-control",key:r,label:u,size:"md"},i.getInputProps(m)),v.map(((e,t)=>w.default.createElement(c.Radio,{name:m,key:t,value:e.value,label:e.placeholder,"data-control":"radio"})))));case"DropdownBlock":return w.default.createElement(w.default.Fragment,null,w.default.createElement("div",{style:{display:"none"},"data-extra":!0,"data-name":m,"data-control":"dropdown"}),w.default.createElement(f.Select,Object.assign({key:r,className:"lead-modal__form-control",label:u,withAsterisk:!0,name:m,data:v.map((e=>({value:e.value,label:e.placeholder})))},i.getInputProps(m))))}return null})))},ue=({phone:a,onSuccess:l,autoSendWhenOpen:i})=>{const{t:r}=b.useTranslations(),[d,u]=t.useState(""),[m,p]=t.useState(!1),[h,g]=t.useState(0),f=t.useRef(null),[v,k]=t.useState(),[_,C]=t.useState(""),S=t.useRef();t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e;if(!S.current){const e=yield Promise.resolve().then((function(){return E(require("react-phone-number-input"))}));S.current=e.formatPhoneNumberIntl}C((null===(e=S.current)||void 0===e?void 0:e.call(S,a))||a)}))}),[a]);const x=()=>e.__awaiter(void 0,void 0,void 0,(function*(){var e;if(!a)return;const t=yield X({phone:a}),n=null===(e=null==t?void 0:t._messages)||void 0===e?void 0:e[0];"Send sms successfully"===n?(g(60),setTimeout((()=>{f.current&&(f.current.focus(),f.current.scrollIntoView({block:"center"}))}),100)):"This phone number was verified"===n?l():k(n||"something Wrong")}));return t.useEffect((()=>{setTimeout((()=>{h>0&&g((e=>e-1))}),1e3)}),[h]),t.useEffect((()=>{i&&!h&&x()}),[]),w.default.createElement(w.default.Fragment,null,w.default.createElement("form",{onSubmit:t=>{t.preventDefault(),e.__awaiter(void 0,void 0,void 0,(function*(){if(!a||!d)return;const e=yield Z({phone:a,otp:d}),t=null==e?void 0:e._messages[0];"Verify successfully"===t||"This phone number was verified"===t?l():k(t||"something Wrong")}))},className:"lead-phone-otp-form"},w.default.createElement(n.Heading,{tag:"h3",fontWeight:"bold",style:{marginBottom:4}},r("lead.otp.title")),w.default.createElement(y.Text,{size:"p1",color:s.theme.colors.gray600},r("lead.otp.desc",{phone:_})),w.default.createElement(c.Input,{ref:f,name:"_"+name+"-otp",spellCheck:!1,type:"number",placeholder:"Enter OTP",className:"lead-modal__form-control",label:"Phone OTP","data-control":"otp",withAsterisk:!0,pattern:"[0-9]*",value:d,onChange:e=>{p(!0),u(e),k(m&&!e?"OTP is required":void 0)},error:m?v:void 0}),w.default.createElement(o.Button,{size:"md",color:"primary",className:`lead-modal__btn ${j}`,disabled:!d},r("lead.otp.verify")),w.default.createElement(o.Button,{type:"button",size:"md",color:"transparent",className:`lead-modal__btn lead-phone-otp-button ${j}`,onClick:()=>{x()},disabled:!!h},r("lead.otp.resend",{timer:h?` (${h}s)`:""}))))},ce=({title:e,titleAlign:t,subtitle:a,subtitleAlign:l,link:n,linkNewTab:o,linkText:i,image:r})=>{const{width:d,height:s,loaded:u}=U(r);return u?w.default.createElement("div",{className:"lead-modal__thank-you"},w.default.createElement("div",{style:{width:"100%"}},w.default.createElement("img",{src:r,style:{maxHeight:162,objectFit:"cover",aspectRatio:`${d}/${s}`}}),e&&w.default.createElement("h1",{className:`le-thankyou-title le-text-align-${t}`},e),a&&w.default.createElement("p",{className:`le-thankyou-subtitle le-text-align-${l}`},a),i&&w.default.createElement("div",null,w.default.createElement("a",{href:n,target:o?"_blank":"parrent",rel:"noreferrer"},w.default.createElement("button",{className:`lead-modal__btn ${j}`},i))))):null},me=({content:e,inlinePosition:a})=>{const l=t.useMemo((()=>{if(!a)return null;const e=document.querySelectorAll(`[data-url="${location.pathname}"] .body-content`),t=Array.from(e).reduce(((e,t)=>[...e,...Array.from(t.children)]),[]);if(null==t?void 0:t.length){const e=t.filter((e=>"P"===e.nodeName)),l=t.filter((e=>"H2"===e.nodeName));let n=null;switch(a){case"1th":n=e[0];break;case"2th":n=e[1];break;case"3th":n=e[2];break;case"4th":n=e[3];break;case"5th":n=e[4];break;case"6th":n=e[5];break;case"7th":n=e[6];break;case"8th":n=e[7];break;case"9th":n=e[8];break;case"10th":n=e[9];break;case"11th":n=e[10];break;case"12th":n=e[11];break;case"lastP":n=e[e.length-1];break;case"1thH2":n=l[0];break;case"2thH2":n=l[1];break;case"3thH2":n=l[2];break;case"4thH2":n=l[3];break;case"5thH2":n=l[4];break;case"6thH2":n=l[5];break;case"7thH2":n=l[6];break;case"8thH2":n=l[7];break;case"9thH2":n=l[8];break;case"10thH2":n=l[9];break;case"lastH2":n=l[l.length-1]}if(n){if(n.parentElement.querySelector(".inline-lead-wrapper"))return n.parentElement.querySelector(".inline-lead-wrapper");{const e=document.createElement("div");return e.classList.add("inline-lead-wrapper"),n.nextElementSibling?n.parentElement.insertBefore(e,n.nextElementSibling):n.parentElement.appendChild(e),e}}}}),[a]);return a&&l?p.createPortal(e,l):null},pe=({content:e})=>{const a=t.useMemo((()=>{const e=Array.from(document.querySelectorAll(".hc2-sidebar-with-ads,.page-main-col .right-col.f-right,.hhg-lead-sidebar"));return e.forEach((e=>{if(e.querySelector(".sidebar-lead-modal-wrapper"))return;const t=document.createElement("div");t.classList.add("sidebar-lead-modal-wrapper"),e.prepend(t)})),e.map((e=>e.querySelector(".sidebar-lead-modal-wrapper")))}),[]);return w.default.createElement(w.default.Fragment,null,a.map((t=>p.createPortal(e,d.getWrapperDomWithSelector(t,"sidebar-lead-modal-wrapper")))))},he=({popupId:e,extraFields:a,onClose:l,onOtherSubmit:n,imageMobile:r,imageDesktop:d,imageOverlayMobile:s,imageOverlayDesktop:u,imageBackground:c,currentLayout:m,title:p,onSubmit:h,showThankyou:g,campaignId:f,campaign_subot_id:v,locale:y})=>{var k,_,E;const C=JSON.parse(a.listBlockAdded),S=JSON.parse(a.actionBlocks),x=JSON.parse(a.textBlocks),N=S.submitBlock.data.url,T=S.submitBlock.data.text,O=S.submitBlock.data.text2,P=S.submitBlock.data.value,B=location.pathname,q=m.includes("Inline")||"Sidebar"===m,$="Slider"===m,[I,A]=t.useState(!0),[R,D]=t.useState(""),H=t.useRef(),F=()=>{R?D(""):null==l||l()};if(window.innerWidth<769&&["Fullscreen","Slider"].includes(m))return console.log("😎 Not show fullscreen, slider on mobile "),null;t.useEffect((()=>{(m.includes("LightBox")||"Fullscreen"==m)&&document.body.classList.add("noscroll"),window.intlTelInputUtils||require("intl-tel-input/build/js/utils"),ee.email={},ee.phone={}}),[]);const W=t.useRef(!1),V=t.useRef(!1),{form:Y,validateObj:z}=(({listBlockAdded:e=[],validatingPhoneRef:a,validatingEmailRef:l,campaignId:n,campaign_subot_id:o=[]})=>{const{t:i}=b.useTranslations(),r=t.useMemo((()=>{const t=["TextBlock","NumberBlock","EmailBlock","PhoneBlock","DateBlock","CheckboxBlock","RadioBlock","DropdownBlock","PhoneOtpBlock","LocationBlock"],r=(e,t)=>a=>{if(s.current.isTouched(e))return void 0===a||""===a||Array.isArray(a)&&0===a.length?i("validator.required"):null==t?void 0:t(a)};return e.filter((e=>t.includes(e.name))).reduce(((e,t)=>"NumberBlock"===t.name?Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value,(e=>{if(isNaN(Number(e)))return i("validator.number")}))}):"EmailBlock"===t.name?Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value,(e=>{if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return i("validator.email");l.current=!0,setTimeout((()=>{s.current.setFieldError(t.data.value,"Validating..."),te(n,o,{email:e}).then((e=>{e?s.current.setFieldError(t.data.value,i(e)):s.current.clearFieldError(t.data.value),l.current=!1})).catch((e=>{console.error(e),s.current.setFieldError(t.data.value,e.message||"Something went wrong"),l.current=!1}))}),200)}))}):"PhoneBlock"===t.name||"PhoneOtpBlock"===t.name?Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value,(e=>{if(window.intlTelInputUtils&&!window.intlTelInputUtils.isValidNumber(String(e),L.countryCode))return i("validator.phone");a.current=!0,setTimeout((()=>{s.current.setFieldError(t.data.value,"Validating..."),te(n,o,{phone:e}).then((e=>{e?s.current.setFieldError(t.data.value,i(e)):s.current.clearFieldError(t.data.value),a.current=!1})).catch((e=>{console.error(e),s.current.setFieldError(t.data.value,e.message||"Something went wrong"),a.current=!1}))}),200)}))}):"DateBlock"===t.name?Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value,(e=>{if(isNaN(Date.parse(e)))return i("validator.date")}))}):Object.assign(Object.assign({},e),{[t.data.value]:r(t.data.value)})),{})}),[e.map((e=>e.name)).join(",")]),d=ne({validateInputOnChange:!0,clearInputErrorOnChange:!0,validate:r}),s=t.useRef(d);return s.current=d,{form:d,validateObj:r}})({listBlockAdded:C,validatingPhoneRef:W,validatingEmailRef:V,campaignId:f,campaign_subot_id:v}),{width:J,height:G,loaded:K}=U(c),{width:Q,height:X,loaded:Z}=U(r),{width:le,height:oe,loaded:ie}=U(d),re=Z&&ie&&("Fullscreen"!=m||K),de=w.default.createElement(w.default.Fragment,null,w.default.createElement("style",{dangerouslySetInnerHTML:{__html:`\n .le-newbuilder-overlay {\n background-repeat: no-repeat;\n background-size: cover;\n }\n ${s?`\n .le-newbuilder-overlay {\n background: url(${s}) ;\n }`:""}\n ${u?`\n @media screen and (min-width:768px) {\n .le-newbuilder-overlay {\n background: url(${u}) ;\n }\n }`:""}`}}),w.default.createElement("div",{id:e,"data-popup-url":B,"data-popup-type":"lightbox-inline",className:`lead-modal lead-modal-wrapper modal--animate-scale ${q?"le-buider-inline":""} ${$?"le-buider-slider":""}`},"Fullscreen"==m?w.default.createElement("img",{className:"le-only-desktop le-fullscreen-img",draggable:!1,src:c||"",style:{aspectRatio:`${J}/${G}`}}):null,w.default.createElement("div",{className:`lead-modal__wrapper le-newbuilder-wrap-${m}`},w.default.createElement("div",{className:`lead-modal__content le-newbuilder-${m}`},g?w.default.createElement(ce,{title:g.title,titleAlign:g.titleAlign,subtitle:g.subtitle,subtitleAlign:g.subtitleAlign,link:g.link,linkNewTab:g.linkNewTab,linkText:g.linkText,image:g.image}):w.default.createElement(w.default.Fragment,null,w.default.createElement("header",{className:"lead-modal__header"},R?w.default.createElement("img",{src:i.CommonGAssets.getAssetPath("lead-otp-thumb.png"),draggable:"false",alt:"",style:{width:"100%"}}):w.default.createElement(w.default.Fragment,null,["LightBoxA","InlineA","Sidebar","Slider"].includes(m)?r?w.default.createElement("img",{draggable:"false",className:"lead-modal__image lead-modal-image-cover",src:r,style:{aspectRatio:`${Q}/${X}`},alt:""}):null:w.default.createElement(w.default.Fragment,null,d?w.default.createElement("img",{draggable:"false",className:"le-only-desktop lead-modal__image lead-modal-image-cover",style:{height:"100%",objectFit:"cover",aspectRatio:`${le}/${oe}`},src:d,alt:""}):null,r?w.default.createElement("img",{draggable:"false",className:"le-only-mobile lead-modal__image lead-modal-image-cover",src:r,alt:"",style:{aspectRatio:`${Q}/${X}`}}):null))),R&&w.default.createElement(ue,{phone:R,autoSendWhenOpen:!0,onSuccess:()=>{null==h||h(H.current,Y.values)}}),w.default.createElement("div",{"data-hidden":!!R,className:"lead-modal__body le-newbuilder-overlay"},w.default.createElement(ae,{form:Y},w.default.createElement("form",{ref:H,className:`lead-modal__form ${e}`,onSubmit:e=>{e.preventDefault(),Y.setTouched(Object.keys(z).reduce(((e,t)=>(e[t]=!0,e)),{})),V.current||W.current||setTimeout((()=>{Y.onSubmit((e=>{var t,a,l;if(!Object.keys(Y.errors).length){if(C.findIndex((e=>"PhoneOtpBlock"===e.name))>-1){const n=null===(a=null===(t=C.find((e=>"PhoneOtpBlock"===e.name)))||void 0===t?void 0:t.data)||void 0===a?void 0:a.value;if(null===(l=e[n])||void 0===l?void 0:l.startsWith("+84"))return void D(e[n])}null==h||h(H.current,e)}}))(e)}),100)}},w.default.createElement("div",{style:{marginBottom:20}},w.default.createElement("h2",{className:`lead-modal__title ${"le-text-align-"+(null===(k=x.titleBlock.data)||void 0===k?void 0:k.align)} ${j}`},p),w.default.createElement("p",{className:`lead-modal__description ${"le-text-align-"+(null===(_=x.titleBlock.data)||void 0===_?void 0:_.align)} ${j}`},x.subtitleBlock.data.value)),w.default.createElement("div",{className:"lead-modal__form-control-wrapper"},w.default.createElement(se,{listBlockAdded:C,popupId:e,locale:y,onClose:F,onOtherSubmit:n})),(null===(E=null==S?void 0:S.submitBlock)||void 0===E?void 0:E.isHide)?null:w.default.createElement(w.default.Fragment,null,w.default.createElement("div",{className:`lead-modal__checkbox-wrapper ${j}`},w.default.createElement("div",{className:"lead-modal__checkbox"},w.default.createElement("input",{id:"lead-term-checkbox",className:`lead-modal__checkbox__input ${j}`,type:"checkbox","aria-label":"Checkbox label",checked:I,onChange:e=>A(e.currentTarget.checked)}),w.default.createElement("div",{className:"lead-modal__checkbox__control","aria-hidden":"true"})),w.default.createElement("label",{htmlFor:"checkbox",className:"lead-modal__checkbox__label"},T," ",w.default.createElement("span",{style:{fontWeight:"bold"}},w.default.createElement("a",{target:"blank",href:N||"https://hellobacsi.com/chinh-sach",rel:"noopener noreferrer",style:{textDecoration:"none"}},O)))),w.default.createElement(o.Button,{size:"md",id:"lead-submit",type:"submit",className:`lead-modal__btn ${j}`,disabled:!I},P))))))),!m.includes("Inline")&&w.default.createElement(M,{onClose:F,containerClassName:"close-button-top-right"}))));return re?m.includes("LightBox")||"Fullscreen"==m||"Slider"==m?de:"Sidebar"==m?w.default.createElement(pe,{content:de}):m.includes("Inline")?w.default.createElement(me,{content:de,inlinePosition:a.popupInlinePosition}):null:null},ge=({popupId:e,link:t,linkText:a,linkNewTab:l,onClose:n,imageMobile:o,imageDesktop:i,currentLayout:r,onOtherSubmit:d})=>{const s=location.pathname,{width:u,height:c,loaded:m}=U(o),{width:p,height:h,loaded:g}=U(i);return m&&g?w.default.createElement("div",{id:e,className:"lead-modal-wrapper","data-popup-url":s,"data-popup-type":"skin_ab"},"SkinA"==r?w.default.createElement("aside",{className:"le-only-desktop"},w.default.createElement("div",{className:"le-skin-a-desktop"},w.default.createElement("div",{style:{position:"relative"}},w.default.createElement("img",{src:i,style:{aspectRatio:`${p}/${h}`}}),w.default.createElement("a",{style:{position:"absolute",top:"75%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",width:"calc(100% - 15px)"},href:t,target:l?"blank":"_parent"},w.default.createElement("button",{onClick:d,className:"le-joinbow-btn js-popup-other-submit"},a)),w.default.createElement(M,{onClose:n,containerClassName:"close-button-top-right"})))):"SkinB"==r?w.default.createElement("aside",{className:"le-only-desktop"},w.default.createElement("div",{className:""},w.default.createElement("div",{style:{position:"relative",zIndex:1e4}},w.default.createElement("img",{src:i,style:{width:"100%",aspectRatio:`${p}/${h}`}}),w.default.createElement("a",{style:{position:"absolute",top:"75%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",width:"100%"},href:t,target:l?"blank":"_parent"},w.default.createElement("button",{onClick:d,className:"le-joinbow-btn-mobile js-popup-other-submit"},a)),w.default.createElement(M,{containerClassName:"close-button-top-right",onClose:n})))):null,w.default.createElement("aside",{className:"le-only-mobile"},w.default.createElement("div",{className:"le-skin-mobile"},w.default.createElement("div",{style:{position:"relative"}},w.default.createElement("img",{src:o,style:{width:"100%",aspectRatio:`${u}/${c}`}}),w.default.createElement("a",{style:{position:"absolute",top:"82%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",maxWidth:"calc(100% - 15px)"},href:t,target:l?"blank":"_parent"},w.default.createElement("button",{onClick:d,className:"le-joinbow-btn-mobile js-popup-other-submit"},a)),w.default.createElement(M,{containerClassName:"close-button-top-right",svgClassName:"le-mobile-btn",onClose:n}))))):null},fe=({popupId:e,url:t,newTab:a,image:l,onClose:n,onOtherSubmit:o})=>{const{width:i,height:r,loaded:d}=U(l);return d?w.default.createElement("div",{id:e,className:"lead-modal-wrapper","data-popup-url":location.pathname,"data-popup-type":"tab"},w.default.createElement("div",{className:"le-tab-popup"},w.default.createElement("div",{style:{position:"relative"}},w.default.createElement("a",{href:t,target:a?"blank":"_parent",onClick:o},w.default.createElement("img",{className:"js-popup-other-submit",src:l,style:{aspectRatio:`${i}/${r}`}})),w.default.createElement(M,{onClose:n,containerClassName:"close-button-top-right"})))):null},ve=[],be=[],ye=[];const ke=(e="UTC")=>{const t=new Date;return new Date(t.toLocaleString("en-US",{timeZone:e}))},_e=e=>{try{const[t,a]=e.split(" "),[l,n,o]=t.split("-").map(Number),[i,r,d]=a.split(":").map(Number);return new Date(l,n-1,o,i,r,d)}catch(e){return null}};const Ee=e=>1===e.formatted_status?function(e){var t;if(1===e.forever)return!0;const a=e.started_at,l=e.ended_at,n=_e(a),o=_e(l);if(!n||!o)return!0;const i=(null===(t=e.site)||void 0===t?void 0:t.id)||1;return!(ke($[i]).getTime()>o.getTime()&&(ye.push(e),1))}(e):0===e.formatted_status&&(ve.push(e),(e=>{var t;const a=(null===(t=e.site)||void 0===t?void 0:t.id)||1,l=e.started_at,n=e.ended_at,o=_e(l),i=_e(n);if(!o||!i)return!1;const r=ke($[a]).getTime();return r<=i.getTime()&&r>=o.getTime()&&(be.push(e),!0)})(e));let we=null;function Ce({leadApi:e,leadSiteId:t,leadDomain:a,onShowPopup:n,DEBUG_URL:o}){const i=o||("https://"+location.hostname+location.pathname+location.search).toLowerCase();fetch(e+"api/campaign/"+t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:i,ga_client_id:k.getCookie("_ga")||null})}).then((e=>e.json())).then((e=>{var t,o,r,d,s;if(Se("List campagin: ",e),B="https://"+location.hostname+location.pathname+location.search,1==e._status){const u=(null===(o=null===(t=e._data)||void 0===t?void 0:t.campaigns)||void 0===o?void 0:o.filter(Ee))||[];k.getCookie("hhg-id")||(k.setCookie("hhg-id",l.v1(),{domain:"."+a,path:"/"}),Se("😍 Set HHG ID cookie"));let c=[];c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)?u.filter((e=>e.device_types.some((e=>e.id==O)))):u.filter((e=>e.device_types.some((e=>e.id==P)))),Se("👓 campaignsDevice",c),Se("--listCampaignScheduled",ve),Se("--listCampaignScheduledToActivated",be),Se("--listCampaignActiveButExpired",ye);let m=c.map(((e,t)=>e.targets.filter((e=>e.type==x)).map((e=>Object.assign(Object.assign({},e),{campaignIndex:t}))))).flat(1);m=m.filter((e=>{const t=new URL(String(e.target).toLowerCase());if("exact_match"==e.option)return Boolean(i===t.href);if("start_with"==e.option){if(i.includes(String(e.target))){return!e.sub_target.filter((e=>"excluding"==e.option)).map((e=>e.value)).includes(i.split("?")[0])}return!1}}));const p=Array.from(document.getElementsByTagName("META")).filter((e=>"article:tag"==e.getAttribute("property"))).map((e=>e.content));let h=[],g=[];p&&p.length&&(h=c.map(((e,t)=>e.targets.filter((e=>e.type==N)).map((e=>Object.assign(Object.assign({},e),{campaignIndex:t}))))).flat(1),g=h.filter((e=>p.includes(e.target))));const f=[...m,...g],v=document.cookie.split("; ").map((e=>e.split("=")[0])),b=v.filter((e=>e.includes("lead_submited")));Se("--listCampaignCodeSubmited",b);const y=v.filter((e=>e.includes("lead_closed")));Se("--listCampaignCodeClosed",y);const _=[...b,...y],E=(e=>{const t=[...e];for(let e=t.length-1;e>0;e--){const a=Math.floor(Math.random()*(e+1)),l=t[e];t[e]=t[a],t[a]=l}return t})(f.filter((e=>!_.some((t=>t.includes(c[e.campaignIndex].code))))));if(Se("--listCampaignValid : ",E),E&&E.length){const e=c[E[0].campaignIndex];Se("CAMPAIGN_SHOW",e);const{rules:t}=e,a=Number(null===(r=t.find((e=>"time"==e.rule)))||void 0===r?void 0:r.value);Se("timeoutRule",a);const l=Number(null===(d=t.find((e=>"scroll"==e.rule)))||void 0===d?void 0:d.value);Se("scrollRule",l);const o=Number(null===(s=t.find((e=>"exclude_sponsored"==e.rule)))||void 0===s?void 0:s.value);Se("excludeSponsored",o);const i=Boolean(document.querySelector(".hhg-disclaimer-text"));if(Se("💎 LEAD current page isSponsored",i),i&&o)return;let u="TIME";if(Number.isInteger(a)&&(u="TIME",Se("✨ SHOW AWESOME POPUP AFTER: ",a," seconds"),we&&clearTimeout(we),we=setTimeout((()=>{null==n||n(e,u)}),1e3*a)),Number.isInteger(l)){u="SCROLL",Se("✨ SHOW AWESOME AFTER: SCROLL",l," %");const t=document.querySelector(`[data-url="${location.pathname}"]`)||document.querySelector("body"),a=t.getBoundingClientRect().top,o=t.offsetHeight;Se("👓 Element check scroll: ",t);const i=function(){const t=window.pageYOffset||document.documentElement.scrollTop;let r=0;t>=a&&(r=Math.round((t-a)/(o-innerHeight)*100)),Se("---Scroll",r,l),r>=l&&(window.removeEventListener("scroll",i),null==n||n(e,u))};window.addEventListener("scroll",i,{passive:!0})}}else Se("🚧 No lead campaigns on current URL, tags")}})).catch((e=>{Se("Lead error: ",e)}))}const Se=(...e)=>{("production"!==process.env.NODE_ENV||process.env.NEXT_PUBLIC_DEPLOY_ENV&&"production"!==process.env.NEXT_PUBLIC_DEPLOY_ENV||"undefined"!=typeof localStorage&&"true"===localStorage.getItem("hhg_debug"))&&console.log(...e)};const xe=({campaign:e,action:a,onSubmit:n,onClose:o,showThankyou:i,locale:r})=>{var d,s;const{apiUrl:u,siteDomain:c}=t.useContext(D);t.useEffect((()=>{const e=k.getCookie("_ga")||null;fetch(`${u}api/campaign/${g}/impression`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:a,url:location.href.toLowerCase(),title_article:document.title,cookie_id:k.getCookie("hhg-id"),ga_client_id:e})})}),[]);const{extra_fields:m,image:p,image_desktop:h,code:g,image_background:f,image_overlay_mobile:v,image_overlay_desktop:b}=e||{},{currentLayout:y}=m,_=m.imageBlocks?JSON.parse(m.imageBlocks):{},E=JSON.parse(m.actionBlocks),C=JSON.parse(m.textBlocks);let S=(null===(s=null===(d=null==C?void 0:C.titleBlock)||void 0===d?void 0:d.data)||void 0===s?void 0:s.value)||"";const x={1:{},2:{},3:{}},N=t.useRef("lead-modal-"+l.v1()),T=function(e="Xin chao {{category_2}} extra"){if(e.includes("{{category_")){const t=11,a=e.search("{{category_");return+e.charAt(t+a)}return null}(S);if(T){Se("⚡️ Has categoryLevel",T);const e=Array.from(document.getElementsByTagName("META")),t=e.find((e=>e.name===`content_category_${T}`)),a=e.find((e=>e.name===`content_category_en_${T}`));if(!t||!a)return Se("⚡️ No META TAG for categoryLevel, not show popup",T),null;x[T]={value:t.content,value_en:a.content},S=S.replace(`{{category_${T}}}`,t.content),Se("⚡️ Set categoryData ",T)}else Se("⚡️ No categoryLevel",T);const O=()=>{var t,a,l,n;if(Se("👌 Other submit click"),document.body.classList.remove("noscroll"),y.includes("Skin")){const e=document.querySelector("#masthead");e&&(e.style.top="0px !important;")}const i=Number(null!==(a=null===(t=e.rules.find((e=>"days_to_show_again"==e.rule)))||void 0===t?void 0:t.value)&&void 0!==a?a:7),r=Number(null!==(n=null===(l=e.rules.find((e=>"show_again_after_submit"==e.rule)))||void 0===l?void 0:l.value)&&void 0!==n?n:0);0===r&&(Se("⛔ Popup never show again!"),k.setCookie(`lead_submited_${g}`,`target_${m.popupVersion}`,{domain:"."+c,path:"/"})),1==r&&(Se(`⌛ Popup will show again after ${i} days!`),k.setCookie(`lead_submited_${g}`,`target_${m.popupVersion}`,{domain:"."+c,days:i,path:"/"}));const d=k.getCookie("_ga")||null,s={url:location.href.toLowerCase(),title_article:document.title,meta:[],cookie_id:k.getCookie("hhg-id"),ga_client_id:d};T&&(s.category=x[T].value_en),fetch(`${u}api/campaign/${g}/lead`,{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).then((e=>e.json())).then((e=>{"error"===e.status&&Se(e)})).catch((e=>{Se("Error:",e)})),null==o||o()};return"CenterTab"===y?w.default.createElement(H,{popupId:N.current,url:_.imageMobile.data.url,newTab:_.imageMobile.data.newtab,imageMobile:p,imageDestkop:h,onClose:o,onOtherSubmit:O}):"Tab"===y?w.default.createElement(fe,{popupId:N.current,url:_.imageMobile.data.url,newTab:_.imageMobile.data.newtab,image:p,onClose:o,onOtherSubmit:O}):"Floating"===y?w.default.createElement(F,{popupId:N.current,title:S,titleAlign:C.titleBlock.data.align,subtitle:C.subtitleBlock.data.value,subtitleAlign:C.subtitleBlock.data.align,url:E.linkButtonBlock.data.url,urlText:E.linkButtonBlock.data.value,newTab:E.linkButtonBlock.data.newtab,imageMobile:p,imageDesktop:h,onClose:o,onOtherSubmit:O}):y.includes("LightBox")||y.includes("Inline")||"Fullscreen"==y||"Sidebar"==y||"Slider"==y?w.default.createElement(he,{popupId:N.current,extraFields:m,onClose:o,onOtherSubmit:O,imageMobile:p,imageDesktop:h,imageBackground:f,currentLayout:y,title:S,onSubmit:(e,t)=>n(e,t,T,x),key:y,imageOverlayDesktop:b,imageOverlayMobile:v,showThankyou:i,campaignId:e.id,campaign_subot_id:e.bot_id||[],locale:r}):y.includes("Skin")?w.default.createElement(ge,{popupId:N.current,link:E.linkButtonBlock.data.url,linkNewTab:!!E.linkButtonBlock.data.newtab,linkText:E.linkButtonBlock.data.value,onClose:o,onOtherSubmit:O,imageMobile:p,imageDesktop:h,currentLayout:y}):null};exports.LeadGen=({apiUrl:a,siteDomain:l,siteId:n,locale:o,apiSubotUrl:i,DEBUG_URL:s})=>{var c;const m=t.useRef(),p=t.useRef(Date.now()),{apiUrl:h}=t.useMemo((()=>{let e=a;return e.includes("localhost")&&(e="https://dev.leadgen.hellobacsi.com/"),{apiUrl:e}}),[a,l,n]),[g,f]=t.useState(null),[v,b]=t.useState(""),[y,_]=t.useState(null);t.useEffect((()=>{z.apiLeadUrl=h,z.apiSubotUrl=i}),[h,i]);const E=(e,t)=>{f(e),b(t)},x=()=>{var e,t;if(!g)return;Se(`👋👋👋 CLOSE POPUP ${g.code} 👋👋👋`);const a=Number(null===(e=g.rules.find((e=>"show_again_after_exit"==e.rule)))||void 0===e?void 0:e.value),n=Number(null===(t=g.rules.find((e=>"days_to_show_again"==e.rule)))||void 0===t?void 0:t.value);0==a&&(n?k.setCookie(`lead_closed_${g.code}`,`target_${null==g?void 0:g.extra_fields.popupVersion}`,{domain:"."+l,days:n,path:"/"}):k.setCookie(`lead_closed_${g.code}`,`target_${null==g?void 0:g.extra_fields.popupVersion}`,{domain:"."+l,path:"/"})),document.body.classList.remove("noscroll"),fetch(`${h}api/campaign/${g.code}/popup_exit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"CLICK",url:location.href.toLowerCase(),title_article:document.title,cookie_id:k.getCookie("hhg-id"),duration:Math.ceil((Date.now()-p.current)/1e3)})}),f(null),_(null)};t.useEffect((()=>{if(window.next){const e=C.default((e=>{Se("--🌻 routeChangeComplete",e,Date.now());const t=location.pathname;x(),document.querySelectorAll(`[data-popup-url="${t}"]`).length?Se("🔥 This URL page has show popup!"):(Se("--Process checkShowPopup"),Ce({leadApi:h,leadDomain:l,leadSiteId:n,onShowPopup:E,DEBUG_URL:s})),m.current&&window.removeEventListener("scroll",m.current)}),500);window.next.router.events.on("routeChangeComplete",e)}Ce({leadApi:h,leadDomain:l,leadSiteId:n,onShowPopup:E,DEBUG_URL:s})}),[]);const N=(t,a,n,o)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,i,r,d,s,u,c,m,p,f,v;if(!a)return;Se("submitHandler",n,o);const b=Object.keys(a).map((e=>({name:e,value:String(a[e])}))),y=k.getCookie("_ga")||null;window.intlTelInputUtils||(yield require("intl-tel-input/build/js/utils"));const E={url:location.href.toLowerCase(),title_article:document.title,meta:b.map((e=>{var a,l;const n=(null===(a=t.querySelector(`*[name="${e.name}"]`))||void 0===a?void 0:a.getAttribute("data-control"))||(null===(l=t.querySelector(`*[data-extra][data-name="${e.name}"]`))||void 0===l?void 0:l.getAttribute("data-control"))||"text",o="tel"===n?window.intlTelInputUtils.formatNumber(String(e.value),null==L?void 0:L.countryCodeNumber,2).replace(/\s+/g,""):"date"===n?S.default(e.value).format("YYYY-MM-DD"):e.value;return{key:e.name,value:o,control:n,is_sent_mailchimp:t.querySelector(`div[data-name="${e.name}-mailchimp"]`)?"true":"false"}})),cookie_id:k.getCookie("hhg-id"),ga_client_id:y};n&&o[n].value_en&&(E.category=o[n].value_en);const w=Number((null===(i=null===(e=g.rules)||void 0===e?void 0:e.find((e=>"days_to_show_again"===e.rule)))||void 0===i?void 0:i.value)||7),C=Number((null===(d=null===(r=g.rules)||void 0===r?void 0:r.find((e=>"show_again_after_submit"===e.rule)))||void 0===d?void 0:d.value)||0);if(0==C&&(Se("⛔ Popup never show again!"),k.setCookie(`lead_submited_${g.code}`,`target_${null==g?void 0:g.extra_fields.targetType}`,{domain:"."+l,path:"/"})),1==C&&(Se(`⌛ Popup will show again after ${w} days!`),k.setCookie(`lead_submited_${g.code}`,`target_${null==g?void 0:g.extra_fields.targetType}`,{domain:"."+l,days:w,path:"/"})),fetch(`${h}api/campaign/${g.code}/lead`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)}),"notshow"==(null==g?void 0:g.extra_fields.popupShowThankYou))return x(),void document.body.classList.remove("noscroll");let N=!0;const T=g.thank_you_image||`${h}admin/img/thanksyou.png`;let O,P,j=(null==g?void 0:g.extra_fields.popupThankyouTitle)||"Thank you.",B=(null==g?void 0:g.extra_fields.popupThankyouDesc)||"We appreciate your time!",q="",$="",I="";if("2.1"==(null==g?void 0:g.extra_fields.popupVersion)){const e=g.extra_fields,t=JSON.parse(e.listBlockThankyou),a=t.find((e=>"TitleBlock"==e.name)),l=t.find((e=>"SubtitleBlock"==e.name)),n=t.find((e=>"LinkButtonBlock"==e.name));j=(null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.value)||"",q=(null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.align)||"",B=(null===(c=null==l?void 0:l.data)||void 0===c?void 0:c.value)||"",$=(null===(m=null==l?void 0:l.data)||void 0===m?void 0:m.align)||"",O=(null===(p=null==n?void 0:n.data)||void 0===p?void 0:p.value)||"",P=(null===(f=null==n?void 0:n.data)||void 0===f?void 0:f.newtab)||!1,I=(null===(v=null==n?void 0:n.data)||void 0===v?void 0:v.url)||"";const o=g.extra_fields.currentLayout;["SkinA","SkinB","Floating","Tab","CenterTab"].includes(o)&&(N=!1)}_(N?{title:j,titleAlign:q,subtitle:B,subtitleAlign:$,link:I,linkNewTab:P,linkText:O,image:T}:null),sessionStorage.getItem("insider_object")?window.insider_object=JSON.parse(sessionStorage.getItem("insider_object")):window.insider_object={user:{email:"",phone_number:"",gdpr_optin:!0,sms_optin:!0,email_optin:!0}},b.map((e=>{const t=e.name,a=e.value;"tel"==t?window.insider_object.user.phone_number=a:"email"==t&&(window.insider_object.user.email=a)})),sessionStorage.setItem("insider_object",JSON.stringify(window.insider_object))}));return t.useEffect((()=>{g&&(p.current=Date.now())}),[g]),w.default.createElement(D.Provider,{value:{apiUrl:h,siteDomain:l,siteId:n,locale:o}},w.default.createElement(u.TranslationsContext.Provider,{value:{locale:o,values:R(o)}},w.default.createElement(r.Portal,{target:d.getPopupWrapperDom()},w.default.createElement(r.Box,{sx:{position:"fixed",zIndex:600}},w.default.createElement(r.Transition,{mounted:Boolean("2.1"===(null===(c=null==g?void 0:g.extra_fields)||void 0===c?void 0:c.popupVersion)),transition:"fade",duration:600,timingFunction:"ease"},(e=>{var t;return w.default.createElement(r.Box,{style:e},"2.1"===(null===(t=null==g?void 0:g.extra_fields)||void 0===t?void 0:t.popupVersion)&&w.default.createElement(w.default.Fragment,null,!!g.extra_fields.currentLayout&&!g.extra_fields.currentLayout.includes("Inline")&&!g.extra_fields.currentLayout.includes("Sidebar")&&w.default.createElement(r.Overlay,{color:"#000",opacity:.5,center:!0,zIndex:400,pos:"fixed",onClick:()=>x()}),w.default.createElement(xe,{campaign:g,action:v,onSubmit:N,onClose:x,showThankyou:y,locale:o})))}))))))};
|
package/build/mantine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-195ff04d.js"),t=require("./index-64027e80.js"),r=require("./index-3f9f042b.js"),s=require("./index-c3b4347a.js"),a=require("react"),o=require("./index-b92cd1db.js"),i=require("./tslib.es6-2277e49b.js"),n=require("@mantine/core"),l=require("./theme-f4d3e318.js"),c=require("./index-7bb52fd2.js"),d=require("./useTranslations-cb70f9dd.js"),u=require("./index-97beea5c.js"),x=require("./index-3dcf1cc5.js"),p=require("./index-508517da.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("@mantine/hooks"),require("./gAssets.js"),require("./index-5f4e003c.js"),require("date-fns/locale"),require("./Onboarding-3ad3c9cb.js"),require("./isProduction-5a688ca0.js"),require("@mantine/dates"),require("dayjs"),require("./utils-ca50b14e.js"),require("styled-components"),require("@mantine/carousel"),require("./screenSizeContext-f496f721.js"),require("lodash/throttle"),require("./index-873c7d5c.js"),require("./index-aa465abf.js"),require("./index-8572a1e3.js"),require("./index.styled-e5b26ff8.js"),require("./useUniqueId-fc07e386.js"),require("react-keyed-flatten-children"),require("./translationsContext-5205b47d.js"),require("string-format"),require("./index-18caa50b.js"),require("./index-afddf6c8.js");var f=m(a);var b="MON6sfi",h="pS-tJD7",g="s3tJ9-5",j="fNsZr1b",q="uuxV74v",v="YohjTDU";exports.Select=e.Select,exports.DatePicker=t.DatePicker,exports.Accordion=r.Accordion,exports.Anchor=r.Anchor,exports.AspectRatio=r.AspectRatio,exports.Avatar=r.Avatar,exports.Breadcrumbs=r.Breadcrumbs,exports.Button=r.Button,exports.Carousel=r.Carousel,exports.Checkbox=r.Checkbox,exports.Input=r.Input,exports.MAPPED_LOCALE=r.MAPPED_LOCALE,exports.OTHER_THEME_CONFIG=r.OTHER_THEME_CONFIG,exports.OTP=r.OTP,exports.Phone=r.Phone,exports.Popover=r.Popover,exports.Radio=r.Radio,exports.Tabs=r.Tabs,exports.Text=r.Text,exports.emotionCache=r.emotionCache,exports.getHeadingStyles=r.getHeadingStyles,exports.getMantineThemeOverride=r.getMantineThemeOverride,exports.themeColors=r.themeColors,exports.useMantineLocale=r.useMantineLocale,exports.Indicator=s.Indicator,exports.Modal=o.Modal,exports.CentralCarousel=u.CentralCarousel,exports.Slider=x.Slider,exports.Switch=p.Switch,exports.Badge=e=>{var{color:t=l.theme.colors.primaryBase,styles:r}=e,s=i.__rest(e,["color","styles"]);return f.default.createElement(n.Badge,Object.assign({variant:"filled",color:t,styles:Object.assign({root:{borderRadius:"2px",background:t,textTransform:"unset"}},r)},s))},exports.LoadingOverlay=e=>(function(e=!1){f.default.useEffect((()=>{if(e){const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}}),[e])}(e.visible),f.default.createElement(n.LoadingOverlay,Object.assign({loaderProps:{color:l.theme.colors.primaryBase}},e))),exports.MantineProvider=e=>{var{children:t,locale:s,template:a="hb"}=e,o=i.__rest(e,["children","locale","template"]);return r.useMantineLocale(s),f.default.createElement(n.MantineProvider,Object.assign({theme:r.getMantineThemeOverride(s,a)},o),t)},exports.Result=function(e){const{icon:t,title:r,description:s,button:a,buttonProps:o,style:l,className:c}=e,d=o||{},{size:u="lg",variant:x="outline"}=d,p=i.__rest(d,["size","variant"]),m=t;return f.default.createElement("div",{className:n.clsx("result",b,c),style:l},m&&f.default.createElement("div",{className:n.clsx("resultIconContainer",h)},f.default.createElement(m,{className:n.clsx("resultIcon",g)})),f.default.createElement(n.Title,{order:3,size:"h3",className:n.clsx("resultTitle",j)},r),f.default.createElement(n.Text,{className:n.clsx("resultDescription",q)},s),a&&f.default.createElement(n.Button,Object.assign({},p,{size:u,variant:x,className:n.clsx("resultButton",v,p.className)}),a))},exports.Spoiler=e=>{var{children:t,line:r,lineHeight:s,trackingAttributes:o,maxHeight:u,customExpandFn:x}=e,p=i.__rest(e,["children","line","lineHeight","trackingAttributes","maxHeight","customExpandFn"]);const{t:m}=d.useTranslations(),b=a.useMemo((()=>u||(r&&s?r*s:(console.error("[HHG-Comp]:[Spoiler] Please provide maxHeight, or line with lineHeight"),0))),[]);t||console.error("[HHG-Comp]:[Spoiler] Please provide children");const h=a.useMemo((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return f.default.createElement(n.Spoiler,Object.assign({showLabel:f.default.createElement(c.Text,Object.assign({size:"p3",color:l.theme.colors.primaryBase},h,{onClick:x}),m("articlePage.readMore")),hideLabel:f.default.createElement(c.Text,Object.assign({size:"p3",color:l.theme.colors.primaryBase},h),m("articlePage.showLess"))},p,{maxHeight:b}),t)},exports.TextArea=e=>f.default.createElement(r.StyledTextArea,Object.assign({minRows:2,maxRows:4},e));
|
package/build/misc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./localizeNumberFormat-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./localizeNumberFormat-fdc361f8.js"),r=require("./screenSizeContext-f496f721.js"),t=require("./cookieHelper-6a8008f6.js");require("react"),require("styled-components");var o=require("./theme-f4d3e318.js"),i=require("./dataTransform-e9f91459.js"),s=require("./routing-cf65d7db.js"),a=require("./utils-ca50b14e.js"),l=require("./getDynamicHealthTool-c9bdc022.js"),p=require("./getSocialList-15467d1f.js");require("dayjs"),require("lodash/throttle"),require("./index-5f4e003c.js"),require("date-fns/locale"),require("./Onboarding-3ad3c9cb.js"),require("./isProduction-5a688ca0.js"),require("./tslib.es6-2277e49b.js"),require("./core-b2f2763f.js"),require("./normalizeLink-96abe957.js"),require("./gAssets.js"),exports.ageGenerate=e.ageGenerate,exports.convertLocalizedStringToNumber=e.convertLocalizedStringToNumber,exports.localizeNumberFormat=e.localizeNumberFormat,exports.ScreenSizeContext=r.ScreenSizeContext,exports.ScreenSizeContextProvider=r.ScreenSizeContextProvider,exports.fadeIn=r.fadeIn,exports.getWindowSizeGroups=r.getWindowSizeGroups,exports.slideInDown=r.slideInDown,exports.slideInLeft=r.slideInLeft,exports.slideInRight=r.slideInRight,exports.slideInUp=r.slideInUp,exports.slideOutDown=r.slideOutDown,exports.slideOutLeft=r.slideOutLeft,exports.slideOutRight=r.slideOutRight,exports.slideOutUp=r.slideOutUp,exports.deleteCookie=t.deleteCookie,exports.getCookie=t.getCookie,exports.setCookie=t.setCookie,exports.MBTheme=o.MBTheme,exports.theme=o.theme,exports.abbreviateNumber=i.abbreviateNumber,exports.formatPill=i.formatPill,exports.getCareApiDomain=s.getCareApiDomain,exports.getCurrentBaseUrl=s.getCurrentBaseUrl,exports.getCurrentSsoUrl=s.getCurrentSsoUrl,exports.getDiscoverApiDomain=s.getDiscoverApiDomain,exports.getTogetherApiDomain=s.getTogetherApiDomain,exports.Breakpoints=a.Breakpoints,exports.MediaQueries=a.MediaQueries,exports.formatUrlWithPageParam=a.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=a.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=a.getPopupWrapperDom,exports.getWrapperDomWithSelector=a.getWrapperDomWithSelector,exports.makeParams=a.makeParams,exports.safeEncodeURI=a.safeEncodeURI,exports.startCase=a.startCase,exports.toggleNoScroll=a.toggleNoScroll,exports.formatHealthTool=l.formatHealthTool,exports.getDynamicHealthTool=l.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=l.getDynamicHealthToolWithCache,exports.getSocialList=p.getSocialList;
|