@hhgtech/hhg-components 1.28.34 → 1.28.36
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 +30 -14
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/alert/index.d.ts +1 -2
- package/build/components/atoms/avatar/index.d.ts +1 -2
- package/build/components/atoms/divider/index.d.ts +1 -2
- package/build/components/atoms/fileDropdown/index.d.ts +1 -2
- package/build/components/atoms/heading/index.d.ts +1 -2
- package/build/components/atoms/marryBabyText/index.d.ts +1 -2
- package/build/components/atoms/marryBabyText/index.styled.d.ts +4 -2
- package/build/components/atoms/pagination/index.d.ts +1 -2
- package/build/components/mantine/slider/index.styled.d.ts +7 -1
- package/build/components/mantine/text/index.styled.d.ts +1 -9
- package/build/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
- package/build/components/molecules/categoryCard/index.d.ts +1 -2
- package/build/components/molecules/dropdown/index.d.ts +1 -2
- package/build/components/molecules/dropdown/index.styled.d.ts +1 -1
- package/build/components/molecules/floatButtonGroup/index.d.ts +1 -2
- package/build/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
- package/build/components/molecules/tabs/index.d.ts +1 -2
- package/build/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
- package/build/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
- package/build/components.js +1 -1
- package/build/{constants-40d8e654.js → constants-437bb4bf.js} +23 -23
- package/build/{constants-e39882d7.js → constants-80dd2233.js} +1 -1
- package/build/constants.js +1 -1
- package/build/core-80e9cff8.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +45 -29
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/alert/index.d.ts +1 -2
- package/build/esm/components/atoms/avatar/index.d.ts +1 -2
- package/build/esm/components/atoms/divider/index.d.ts +1 -2
- package/build/esm/components/atoms/fileDropdown/index.d.ts +1 -2
- package/build/esm/components/atoms/heading/index.d.ts +1 -2
- package/build/esm/components/atoms/marryBabyText/index.d.ts +1 -2
- package/build/esm/components/atoms/marryBabyText/index.styled.d.ts +4 -2
- package/build/esm/components/atoms/pagination/index.d.ts +1 -2
- package/build/esm/components/mantine/slider/index.styled.d.ts +7 -1
- package/build/esm/components/mantine/text/index.styled.d.ts +1 -9
- package/build/esm/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
- package/build/esm/components/molecules/categoryCard/index.d.ts +1 -2
- package/build/esm/components/molecules/dropdown/index.d.ts +1 -2
- package/build/esm/components/molecules/dropdown/index.styled.d.ts +1 -1
- package/build/esm/components/molecules/floatButtonGroup/index.d.ts +1 -2
- package/build/esm/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
- package/build/esm/components/molecules/tabs/index.d.ts +1 -2
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
- package/build/esm/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-eaf6c51c.js → constants-4c45be75.js} +1 -1
- package/build/esm/{constants-9cbd1b11.js → constants-c3b0c92c.js} +25 -25
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-887f9a5d.js → core-5b21c19e.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-2e9a5548.js +1 -0
- package/build/esm/{getSocialList-48723f32.js → getSocialList-3e7a32e3.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/index-020361fe.js +177 -0
- package/build/esm/{index-7e96cd7e.js → index-15c00b1c.js} +1 -1
- package/build/esm/{index-905a68a4.js → index-17537d5b.js} +1 -1
- package/build/esm/index-1782f56e.js +1 -0
- package/build/esm/{index-ca22339d.js → index-17d273a3.js} +5 -5
- package/build/esm/index-1b2689ee.js +1 -0
- package/build/esm/{index-2f08d8b2.js → index-2eac1ec8.js} +1 -1
- package/build/esm/{index-c8b8773c.js → index-4eb2530b.js} +1 -1
- package/build/esm/{index-76f80354.js → index-6536dd4e.js} +11 -11
- package/build/esm/{index-301f2dee.js → index-6c2d86ad.js} +1 -1
- package/build/esm/{index-3182f4c8.js → index-72cd7c00.js} +358 -361
- package/build/esm/{index-456e07e9.js → index-9d393a92.js} +1 -1
- package/build/esm/{index-5856050d.js → index-9d86c3a8.js} +1 -1
- package/build/esm/index-a1e1a441.js +1 -0
- package/build/esm/{index-a0ed112f.js → index-a60bd3f2.js} +1 -1
- package/build/esm/index-a903d8ce.js +1 -0
- package/build/esm/{index-0bc6ed09.js → index-c22300e9.js} +1 -1
- package/build/esm/{index-40c22fc9.js → index-c9c584ed.js} +1 -1
- package/build/esm/{index-dcd77e56.js → index-e7f889b2.js} +1 -1
- package/build/esm/{index-67f13f4c.js → index-f0206e98.js} +1 -1
- package/build/esm/{index-cca1a97c.js → index-f64ac5b4.js} +1 -1
- package/build/esm/{index-b7b39aa3.js → index-f75306ca.js} +1 -1
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-f34b713c.js → index.styled-551f3c76.js} +5 -5
- package/build/esm/{index.styled-d8252a1f.js → index.styled-57535894.js} +178 -197
- package/build/esm/{index.styled-80c60a9e.js → index.styled-5c99d64b.js} +233 -235
- package/build/esm/{index.styled-a3e34614.js → index.styled-780df456.js} +1 -1
- package/build/esm/{index.styles-5d09f3e9.js → index.styles-874b1834.js} +146 -160
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-7acb688f.js → routing-a8a2d2fd.js} +1 -1
- package/build/esm/screenSizeContext-dff03e2b.js +81 -0
- package/build/esm/subot.js +129 -132
- package/build/esm/together/components/atoms/notificationBar/index.d.ts +1 -1
- package/build/esm/together/components/molecules/submitReportForm/index.d.ts +1 -2
- package/build/esm/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-41075c37.js → types-07a8f7f9.js} +1 -1
- package/build/esm/{types-87783fd3.js → types-9b65a599.js} +15 -15
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-dfd51998.js → useCategory-8582dedd.js} +1 -1
- package/build/esm/useHealthToolCache-5b104f1e.js +1 -0
- package/build/esm/{usePlacesAutocomplete-c740d776.js → usePlacesAutocomplete-3f0cff61.js} +1 -1
- package/build/esm/{useRafState-2ebb1185.js → useRafState-27d2b972.js} +1 -1
- package/build/esm/{useTranslations-1416cdcc.js → useTranslations-14b7fcc5.js} +1 -1
- package/build/esm/{utils-563dbd48.js → utils-0b2c5aec.js} +1 -1
- package/build/esm/{utils-0e7436d5.js → utils-cca2af3a.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-c1365649.js → getDynamicHealthTool-fad842aa.js} +1 -1
- package/build/{getSocialList-34d66f28.js → getSocialList-72284d55.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-992d38d2.js → index-18823495.js} +1 -1
- package/build/index-18bee338.js +1 -0
- package/build/{index-c7f012bf.js → index-24290a1e.js} +1 -1
- package/build/{index-e43cc32d.js → index-28f61b63.js} +1 -1
- package/build/{index-d1eeaaef.js → index-3e31d08a.js} +1 -1
- package/build/index-3ec29f74.js +1 -0
- package/build/{index-0c939a95.js → index-411b2c54.js} +7 -7
- package/build/{index-d1fd4d52.js → index-461460ac.js} +1 -1
- package/build/{index-17dfa7a9.js → index-4af92d15.js} +1 -1
- package/build/{index-854f1e36.js → index-536d19f8.js} +5 -5
- package/build/{index-ccefd6eb.js → index-66d800b3.js} +9 -9
- package/build/{index-a0f049ef.js → index-67f50ae5.js} +1 -1
- package/build/{index-99f21fc5.js → index-7e3aeed4.js} +1 -1
- package/build/{index-1b728b12.js → index-81ec6599.js} +1 -1
- package/build/{index-dad777d8.js → index-88ff79b6.js} +1 -1
- package/build/{index-acfb0ce9.js → index-95d71ef9.js} +1 -1
- package/build/{index-45b4b3e9.js → index-a14ac95c.js} +1 -1
- package/build/{index-16272593.js → index-a527fd86.js} +1 -1
- package/build/{index-c85ab594.js → index-c9dc742a.js} +359 -362
- package/build/{index-f137af39.js → index-cc31ada4.js} +1 -1
- package/build/{index-5846d58b.js → index-edb98431.js} +1 -1
- package/build/{index-b15a75d9.js → index-f62932f3.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-245eaa42.js → index.styled-228e96a3.js} +5 -5
- package/build/{index.styled-c3edb2b9.js → index.styled-2ce77f4d.js} +232 -234
- package/build/{index.styled-f695d1b6.js → index.styled-6d41d939.js} +118 -137
- package/build/{index.styled-086a71a8.js → index.styled-86cd31ca.js} +5 -5
- package/build/{index.styles-bc0acea0.js → index.styles-b3f7ae61.js} +146 -160
- 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/onboardingV2.js +5 -5
- package/build/pwg.js +1 -1
- package/build/{routing-a3a546b6.js → routing-0dd231c5.js} +1 -1
- package/build/screenSizeContext-0e841cc0.js +81 -0
- package/build/subot.js +91 -94
- package/build/together/components/atoms/notificationBar/index.d.ts +1 -1
- package/build/together/components/molecules/submitReportForm/index.d.ts +1 -2
- package/build/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
- package/build/together.js +1 -1
- package/build/{types-a3e9e643.js → types-439160fd.js} +15 -15
- package/build/{types-f6913792.js → types-b4747009.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-78ec9de7.js → useCategory-718ae913.js} +1 -1
- package/build/useHealthToolCache-40a88025.js +1 -0
- package/build/{usePlacesAutocomplete-c93a598a.js → usePlacesAutocomplete-54de454b.js} +1 -1
- package/build/{useRafState-2d73039f.js → useRafState-c9f6527a.js} +1 -1
- package/build/{useTranslations-eb6e3a4e.js → useTranslations-a1b68e91.js} +1 -1
- package/build/utils-50bb77a6.js +1 -0
- package/build/{utils-86177cc2.js → utils-7528478f.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-1e09b2f5.js +0 -1
- package/build/esm/getDynamicHealthTool-f08feeaf.js +0 -1
- package/build/esm/index-02bce746.js +0 -1
- package/build/esm/index-0e19b1ab.js +0 -1
- package/build/esm/index-68163270.js +0 -1
- package/build/esm/index-79f993e1.js +0 -177
- package/build/esm/index-f851ab1f.js +0 -1
- package/build/esm/screenSizeContext-268f62ee.js +0 -81
- package/build/esm/useHealthToolCache-94b80796.js +0 -1
- package/build/index-6fd6134a.js +0 -1
- package/build/index-caefb49b.js +0 -1
- package/build/screenSizeContext-d1f3171e.js +0 -81
- package/build/useHealthToolCache-b53abfff.js +0 -1
- package/build/utils-b5dfd4e1.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-f2d6dfe0.js → BMI_BOYS.percentile.monthly-bd7c4653.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-af266ffa.js → BMI_BOYS.percentile.weekly-aa0676d7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-3197405f.js → BMI_BOYS.percentile.yearly-710bf0bc.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-d5f610e1.js → BMI_BOYS.zscore.monthly-265d16b8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-6f8488f2.js → BMI_BOYS.zscore.weekly-20e34020.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-91349a66.js → BMI_BOYS.zscore.yearly-67395b04.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-c7e89fd9.js → BMI_GIRLS.percentile.monthly-e5a6f286.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8e6b805d.js → BMI_GIRLS.percentile.weekly-0d918cc9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1705eb83.js → BMI_GIRLS.percentile.yearly-9ab58003.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-10ce2285.js → BMI_GIRLS.zscore.monthly-980c6ad8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-509ac723.js → BMI_GIRLS.zscore.weekly-2886baca.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-30bfdb96.js → BMI_GIRLS.zscore.yearly-e3123e93.js} +0 -0
- /package/build/{ChevronDown-26ca1544.js → ChevronDown-7d583eac.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4d09785a.js → HEAD CIRCUM_BOYS.percentile.monthly-5489c654.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f2a3683b.js → HEAD CIRCUM_BOYS.percentile.weekly-72af67ec.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-325de807.js → HEAD CIRCUM_BOYS.percentile.yearly-4689f174.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-c3653189.js → HEAD CIRCUM_BOYS.zscore.monthly-218db6e2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-64715859.js → HEAD CIRCUM_BOYS.zscore.weekly-d4b77ee2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8d5d4104.js → HEAD CIRCUM_BOYS.zscore.yearly-ba3d997e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-91394406.js → HEAD CIRCUM_GIRLS.percentile.monthly-120ece3e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-dfecd4bb.js → HEAD CIRCUM_GIRLS.percentile.weekly-591bb09a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-60f7fc20.js → HEAD CIRCUM_GIRLS.percentile.yearly-2a19d75a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0adfc823.js → HEAD CIRCUM_GIRLS.zscore.monthly-47aa0b49.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2ca5ea36.js → HEAD CIRCUM_GIRLS.zscore.weekly-7faf2731.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-eabc2711.js → HEAD CIRCUM_GIRLS.zscore.yearly-0a9527cb.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-c30c7db8.js → HEIGHT_BOYS.percentile.monthly-975cab78.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-1b7c68af.js → HEIGHT_BOYS.percentile.weekly-45fbff53.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-7654ea26.js → HEIGHT_BOYS.percentile.yearly-2a158d1f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-100631d7.js → HEIGHT_BOYS.zscore.monthly-8dc3c9d2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-3fb8192a.js → HEIGHT_BOYS.zscore.weekly-6156e4e0.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-cfc53fb4.js → HEIGHT_BOYS.zscore.yearly-f76c1f5e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-36a38507.js → HEIGHT_GIRLS.percentile.monthly-b45e867e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d7cc3e36.js → HEIGHT_GIRLS.percentile.weekly-46b92e1b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-6e9eb89d.js → HEIGHT_GIRLS.percentile.yearly-9abaef8d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-9ef69581.js → HEIGHT_GIRLS.zscore.monthly-eb201a4a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-a5a438a7.js → HEIGHT_GIRLS.zscore.weekly-1c1b80f3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-aa9b3de3.js → HEIGHT_GIRLS.zscore.yearly-19fe9d55.js} +0 -0
- /package/build/{Subot-5e3788b9.js → Subot-6a20c386.js} +0 -0
- /package/build/{Visible-c561d877.js → Visible-96ce1462.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-7b0b5579.js → WEIGHT_BOYS.percentile.monthly-48925e68.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-650a1141.js → WEIGHT_BOYS.percentile.weekly-9675b472.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-ef733c0a.js → WEIGHT_BOYS.percentile.yearly-5ae74491.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-baa0cef6.js → WEIGHT_BOYS.zscore.monthly-fda03047.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e7080454.js → WEIGHT_BOYS.zscore.weekly-2ab9f08c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-c51dfe8a.js → WEIGHT_BOYS.zscore.yearly-b68de4e1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-78b66e11.js → WEIGHT_GIRLS.percentile.monthly-1c82f3e1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-5df91708.js → WEIGHT_GIRLS.percentile.weekly-0628410e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-a7ad83a0.js → WEIGHT_GIRLS.percentile.yearly-bac2752a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-37aeb739.js → WEIGHT_GIRLS.zscore.monthly-444c0637.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-cdb5a619.js → WEIGHT_GIRLS.zscore.weekly-e943b0eb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-10f7b113.js → WEIGHT_GIRLS.zscore.yearly-cd96850c.js} +0 -0
- /package/build/{cookieHelper-faead274.js → cookieHelper-90494d05.js} +0 -0
- /package/build/{dataTransform-4e01afe7.js → dataTransform-6263c35e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-237c26c1.js → BMI_BOYS.percentile.monthly-2f0ebcbf.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-5e217121.js → BMI_BOYS.percentile.weekly-923b3d30.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-b7c24b07.js → BMI_BOYS.percentile.yearly-7d39033d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-caee541a.js → BMI_BOYS.zscore.monthly-21915d60.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-248bd6a3.js → BMI_BOYS.zscore.weekly-afaad99e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-c4c5bebc.js → BMI_BOYS.zscore.yearly-2d48176b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-7cf5b7a8.js → BMI_GIRLS.percentile.monthly-67f03f38.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-2c920355.js → BMI_GIRLS.percentile.weekly-a2c33686.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2913ce0d.js → BMI_GIRLS.percentile.yearly-7a98dd42.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-a9ca6049.js → BMI_GIRLS.zscore.monthly-599baf2d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-7686cd52.js → BMI_GIRLS.zscore.weekly-c258aef0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-0fe95249.js → BMI_GIRLS.zscore.yearly-e8ce4dc8.js} +0 -0
- /package/build/esm/{ChevronDown-2b150c99.js → ChevronDown-198d9cc6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9ab3e376.js → HEAD CIRCUM_BOYS.percentile.monthly-bc41ab37.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-b419210c.js → HEAD CIRCUM_BOYS.percentile.weekly-bd73d642.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-47c58312.js → HEAD CIRCUM_BOYS.percentile.yearly-044a1a1a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-573a0db9.js → HEAD CIRCUM_BOYS.zscore.monthly-61bf74c0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6d69c852.js → HEAD CIRCUM_BOYS.zscore.weekly-28e9f5ed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-22f44323.js → HEAD CIRCUM_BOYS.zscore.yearly-2a0e1789.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-484fc054.js → HEAD CIRCUM_GIRLS.percentile.monthly-13f948b3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-ce9ad0ad.js → HEAD CIRCUM_GIRLS.percentile.weekly-88cc5320.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5ba8609b.js → HEAD CIRCUM_GIRLS.percentile.yearly-7f0f400b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-09f228c4.js → HEAD CIRCUM_GIRLS.zscore.monthly-d78908a1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0d16214e.js → HEAD CIRCUM_GIRLS.zscore.weekly-f3207f83.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-69196152.js → HEAD CIRCUM_GIRLS.zscore.yearly-0628d6d8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-73475699.js → HEIGHT_BOYS.percentile.monthly-182bed39.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-aaa9c5d2.js → HEIGHT_BOYS.percentile.weekly-44f52c09.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-19ed1ac7.js → HEIGHT_BOYS.percentile.yearly-bb541601.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-6af8892b.js → HEIGHT_BOYS.zscore.monthly-a9a9dd47.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-344ab143.js → HEIGHT_BOYS.zscore.weekly-9fc7b902.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-eb3a4e83.js → HEIGHT_BOYS.zscore.yearly-88da8bc2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8b6c42e4.js → HEIGHT_GIRLS.percentile.monthly-fb5f6f0d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-74469212.js → HEIGHT_GIRLS.percentile.weekly-4baca659.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3f9ee629.js → HEIGHT_GIRLS.percentile.yearly-fc7e1fc1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c6a7dc2d.js → HEIGHT_GIRLS.zscore.monthly-b439db85.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e27c7b61.js → HEIGHT_GIRLS.zscore.weekly-8681e64a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-72d00068.js → HEIGHT_GIRLS.zscore.yearly-28b1d0bb.js} +0 -0
- /package/build/esm/{Subot-0c4dab43.js → Subot-e272425a.js} +0 -0
- /package/build/esm/{Visible-c68224a8.js → Visible-e7a4b560.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-38ddd06a.js → WEIGHT_BOYS.percentile.monthly-d6835449.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a0349b82.js → WEIGHT_BOYS.percentile.weekly-bc54a47c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4aa28c2a.js → WEIGHT_BOYS.percentile.yearly-69b5c0cf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-285f7f43.js → WEIGHT_BOYS.zscore.monthly-fae0c31f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7fdcfb45.js → WEIGHT_BOYS.zscore.weekly-58bfd560.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-67512a08.js → WEIGHT_BOYS.zscore.yearly-4e428e24.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-687fcbb9.js → WEIGHT_GIRLS.percentile.monthly-5136f490.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9c8ebcfb.js → WEIGHT_GIRLS.percentile.weekly-bd8ea375.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bb43d716.js → WEIGHT_GIRLS.percentile.yearly-40e16990.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-6ea1cc38.js → WEIGHT_GIRLS.zscore.monthly-bc34aead.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-589c96d0.js → WEIGHT_GIRLS.zscore.weekly-c5ab12a0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-293c72b6.js → WEIGHT_GIRLS.zscore.yearly-41608a14.js} +0 -0
- /package/build/esm/{cookieHelper-f205b169.js → cookieHelper-28df9366.js} +0 -0
- /package/build/esm/{dataTransform-4b79e9fc.js → dataTransform-3cf63532.js} +0 -0
- /package/build/esm/{index-bb150c0d.js → index-10c5feed.js} +0 -0
- /package/build/esm/{index-ebc484da.js → index-9d4a84ac.js} +0 -0
- /package/build/esm/{index-bc96f01d.js → index-ac4a532b.js} +0 -0
- /package/build/esm/{isProduction-095ab64f.js → isProduction-b5290208.js} +0 -0
- /package/build/esm/{localizeNumberFormat-6ec4b13f.js → localizeNumberFormat-a5628e95.js} +0 -0
- /package/build/esm/{normalizeLink-730f7beb.js → normalizeLink-03495796.js} +0 -0
- /package/build/esm/{number-6d1e5da0.js → number-97247dba.js} +0 -0
- /package/build/esm/{paths-d8c26a48.js → paths-fcede6b6.js} +0 -0
- /package/build/esm/{theme-c91f8447.js → theme-ccf55e31.js} +0 -0
- /package/build/esm/{translationsContext-8d25a828.js → translationsContext-7856306b.js} +0 -0
- /package/build/esm/{tslib.es6-89288f42.js → tslib.es6-842a2bb8.js} +0 -0
- /package/build/esm/{types-4b3c5426.js → types-3f42ad37.js} +0 -0
- /package/build/esm/{useIsInit-6890e3ae.js → useIsInit-7d05716a.js} +0 -0
- /package/build/esm/{useOutsideClick-fcf2d8f9.js → useOutsideClick-9d03d01d.js} +0 -0
- /package/build/esm/{useScrollbarSize-53042c16.js → useScrollbarSize-1c748ec0.js} +0 -0
- /package/build/{index-65b4e1df.js → index-22f2dd43.js} +0 -0
- /package/build/{index-dd93f3f7.js → index-a6882810.js} +0 -0
- /package/build/{index-87fb4741.js → index-b3a56944.js} +0 -0
- /package/build/{isProduction-a6dab3b8.js → isProduction-975fbda1.js} +0 -0
- /package/build/{localizeNumberFormat-68c605b4.js → localizeNumberFormat-f603a6d8.js} +0 -0
- /package/build/{normalizeLink-b08e7017.js → normalizeLink-b260b165.js} +0 -0
- /package/build/{number-824f5e2e.js → number-3f6eba85.js} +0 -0
- /package/build/{paths-cb533948.js → paths-9ce571a8.js} +0 -0
- /package/build/{theme-9886c9e0.js → theme-cf605758.js} +0 -0
- /package/build/{translationsContext-510e154b.js → translationsContext-b4e24bbe.js} +0 -0
- /package/build/{tslib.es6-5d58d708.js → tslib.es6-8187fb3c.js} +0 -0
- /package/build/{types-16b33149.js → types-16f153bc.js} +0 -0
- /package/build/{useIsInit-10070617.js → useIsInit-df1db68e.js} +0 -0
- /package/build/{useOutsideClick-d814cc9a.js → useOutsideClick-eeca1a83.js} +0 -0
- /package/build/{useScrollbarSize-efc94491.js → useScrollbarSize-7a77a7be.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle as r,useMemo as n,forwardRef as l,createContext as s}from"react";import{I as d,T as c}from"./index-
|
|
1
|
+
import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle as r,useMemo as n,forwardRef as l,createContext as s}from"react";import{I as d,T as c}from"./index-e7f889b2.js";import{u as p}from"./useTranslations-14b7fcc5.js";import"lodash/debounce";import"./isProduction-b5290208.js";import"./index-f75306ca.js";import"./useCategory-8582dedd.js";import{createStyles as m,Stack as g,Group as h,getStylesRef as u,useMantineTheme as b,Flex as x,rem as f,Box as y}from"@mantine/core";import v from"dayjs";import{M as w}from"./screenSizeContext-dff03e2b.js";import k,{keyframes as E,css as $}from"styled-components";import{t as D}from"./theme-ccf55e31.js";import{G as C,L as z}from"./Subot-e272425a.js";import{CommonGAssets as B}from"./gAssets.js";import{L as P}from"./index-9d393a92.js";import{B as N}from"./index-4eb2530b.js";import{H as j,T as S,Q as I,a6 as T,P as M,x as A}from"./index.styles-874b1834.js";import{I as O}from"./index-c22300e9.js";import{_}from"./tslib.es6-842a2bb8.js";import{R as L,B as U}from"./index-17d273a3.js";import"@mantine/dates";import"./translationsContext-7856306b.js";import"string-format";import"@mantine/hooks";import{yupResolver as F}from"@hookform/resolvers/yup";import{useForm as H,Controller as R}from"react-hook-form";import{B as G,D as W}from"./index-020361fe.js";import{L as V}from"./constants-c3b0c92c.js";import{D as q}from"./index.styled-57535894.js";import{format as Y,addDays as Z}from"date-fns";import"./utils-cca2af3a.js";import{S as X}from"./index-2eac1ec8.js";import{M as J}from"./index-c9c584ed.js";import"./index-ac4a532b.js";import{D as K}from"./types-3f42ad37.js";import Q from"react-day-picker/DayPickerInput";var ee="tliWyii";const te=({className:t,theme:a,hideText:i})=>{const{t:o}=p();return e.createElement("div",{className:`${ee} ${t}`},e.createElement(d.Spinner,{isMarryBaby:"marryBaby"===a}),!i&&o("loading"))},ae=t((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),ie=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),oe=t((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:i})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":i,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var re=m(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ne=k.a`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 125px;
|
|
4
4
|
|
|
@@ -7,9 +7,9 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
padding: 8px;
|
|
9
9
|
|
|
10
|
-
border: 1px solid ${
|
|
10
|
+
border: 1px solid ${D.colors.neutral100};
|
|
11
11
|
background-color: white;
|
|
12
|
-
border-radius: ${
|
|
12
|
+
border-radius: ${D.borderRadius};
|
|
13
13
|
box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
text-decoration: none;
|
|
@@ -32,7 +32,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
32
32
|
* {
|
|
33
33
|
pointer-events: none;
|
|
34
34
|
}
|
|
35
|
-
`,le=
|
|
35
|
+
`,le=k.div`
|
|
36
36
|
display: flex;
|
|
37
37
|
|
|
38
38
|
&[data-type='vertical'] {
|
|
@@ -56,7 +56,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`,se={"vi-VN":["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],"id-ID":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"ms-MY":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"km-KH":["មករា","ខែកុម្ភៈ","មីនា","ខែមេសា","ឧសភា","មិថុនា","ខែកក្កដា","សីហា","ខែកញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],"en-PH":["January","February","March","April","May","June","July","August","September","October","November","December"],"th-TH":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","อาจ","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"my-MM":["ဇန်နဝါရီလ","ဖေဖော်ဝါရီလ","မတ်လ","ပြီလ","မေလ","ဇွန","ဇူလိုင်လ","သြဂုတ်လ","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"],"zh-TW":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"hi-IN":["जनवरी","फ़रवरी","जुलूस","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},de=
|
|
59
|
+
`,se={"vi-VN":["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],"id-ID":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"ms-MY":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"km-KH":["មករា","ខែកុម្ភៈ","មីនា","ខែមេសា","ឧសភា","មិថុនា","ខែកក្កដា","សីហា","ខែកញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],"en-PH":["January","February","March","April","May","June","July","August","September","October","November","December"],"th-TH":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","อาจ","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"my-MM":["ဇန်နဝါရီလ","ဖေဖော်ဝါရီလ","မတ်လ","ပြီလ","မေလ","ဇွန","ဇူလိုင်လ","သြဂုတ်လ","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"],"zh-TW":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"hi-IN":["जनवरी","फ़रवरी","जुलूस","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},de=k.div`
|
|
60
60
|
.pickerContainer {
|
|
61
61
|
position: relative;
|
|
62
62
|
padding-top: 0;
|
|
@@ -97,7 +97,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
97
97
|
.pickerOverlay {
|
|
98
98
|
margin-top: 6px;
|
|
99
99
|
background: white;
|
|
100
|
-
border-radius: ${
|
|
100
|
+
border-radius: ${D.borderRadius};
|
|
101
101
|
box-shadow: 0px 6px 12px rgba(67, 86, 100, 0.2);
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -119,7 +119,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
119
119
|
|
|
120
120
|
.svg {
|
|
121
121
|
cursor: pointer;
|
|
122
|
-
stroke: ${
|
|
122
|
+
stroke: ${D.colors.gray800};
|
|
123
123
|
}
|
|
124
124
|
.react-datepicker__day {
|
|
125
125
|
width: 40px;
|
|
@@ -135,7 +135,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.react-datepicker__day {
|
|
138
|
-
font-weight: ${
|
|
138
|
+
font-weight: ${D.sizes.fwBold};
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.react-datepicker__day--selected,
|
|
@@ -146,7 +146,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
146
146
|
height: 30px;
|
|
147
147
|
margin: 4px;
|
|
148
148
|
margin-bottom: -2px;
|
|
149
|
-
background: ${
|
|
149
|
+
background: ${D.colors.primaryBase};
|
|
150
150
|
border-radius: 50%;
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -163,12 +163,12 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
163
163
|
stroke: #262626;
|
|
164
164
|
}
|
|
165
165
|
select {
|
|
166
|
-
background: ${
|
|
166
|
+
background: ${D.colors.neutral100};
|
|
167
167
|
text-align: center;
|
|
168
168
|
&:not(:last-child) {
|
|
169
169
|
padding: 8px 10px;
|
|
170
170
|
margin-right: 15px;
|
|
171
|
-
border-radius: ${
|
|
171
|
+
border-radius: ${D.borderRadius};
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -377,9 +377,9 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
377
377
|
) {
|
|
378
378
|
position: relative;
|
|
379
379
|
|
|
380
|
-
background-color: ${
|
|
380
|
+
background-color: ${D.colors.primaryBase};
|
|
381
381
|
color: #f0f8ff;
|
|
382
|
-
font-weight: ${
|
|
382
|
+
font-weight: ${D.sizes.fwBold};
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
|
|
@@ -413,7 +413,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
413
413
|
background: white;
|
|
414
414
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
|
|
415
415
|
}
|
|
416
|
-
`,ce=
|
|
416
|
+
`,ce=k.form`
|
|
417
417
|
display: flex;
|
|
418
418
|
width: 100%;
|
|
419
419
|
|
|
@@ -427,15 +427,15 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
427
427
|
& * {
|
|
428
428
|
height: 46px;
|
|
429
429
|
padding: 10px 10px;
|
|
430
|
-
background: ${
|
|
431
|
-
border-radius: ${
|
|
430
|
+
background: ${D.colors.neutral100};
|
|
431
|
+
border-radius: ${D.borderRadius};
|
|
432
432
|
}
|
|
433
|
-
`,pe=({alignRight:t=!0,placeholder:r,displayDateFormat:n,onChange:l,customInput:s,pickedDate:d,className:c,isStatic:p,disabledDays:m,modifiers:
|
|
433
|
+
`,pe=({alignRight:t=!0,placeholder:r,displayDateFormat:n,onChange:l,customInput:s,pickedDate:d,className:c,isStatic:p,disabledDays:m,modifiers:g,UnHideOnClickOutside:h,initialMonth:u,locale:b="en-PH"})=>{const x=a(!1),f=Y,[y,v]=i(u||new Date),w=a(null),k=a(null),E=se[b],$=e=>{h||w.current&&w.current.contains(e.target)||k.current&&k.current.hideDayPicker()},D=(new Date).getFullYear(),C=new Date(D-150,0),z=new Date(D+1,0),B=({date:t,onChange:a,monthLabels:i})=>{const o=[];for(let e=z.getFullYear();e>=C.getFullYear();e-=1)o.push(e);const r=function(e){const{year:t,month:i}=e.target.form;a(new Date(t.value,i.value))};return e.createElement("div",{className:"DayPicker-Caption"},e.createElement(ce,null,e.createElement("select",{name:"month",onChange:r,value:t.getMonth()},i.map(((t,a)=>e.createElement("option",{key:t,value:a},t)))),e.createElement("select",{name:"year",onChange:r,value:t.getFullYear()},o.map((t=>e.createElement("option",{key:t,value:t},t))))))};return o((()=>(document.addEventListener("mousedown",$,{passive:!0}),()=>{document.removeEventListener("mousedown",$,!1)})),[]),e.createElement(de,{className:c,"data-align-right":t,ref:w,"data-is-static":p||void 0},e.createElement(Q,{ref:k,inputProps:{readOnly:!0},keepFocus:!1,classNames:{container:"pickerContainer",overlayWrapper:"pickerOverlayWrapper",overlay:"pickerOverlay"},component:s&&e.forwardRef(((t,a)=>e.createElement(s,Object.assign({},t)))),onDayPickerHide:()=>{x.current=!1},onDayPickerShow:()=>{x.current=!0},dayPickerProps:{month:y,className:"picker",selectedDays:d,canChangeMonth:!0,enableOutsideDaysClick:!p,firstDayOfWeek:1,captionElement:({date:t,localeUtils:a})=>{const i=null==a?void 0:a.getMonths();return e.createElement(B,{date:t,monthLabels:E||i,onChange:v})},disabledDays:m||void 0,modifiers:g},format:n||"yyyy-MM-dd",formatDate:(e,t)=>f(e,t),hideOnDayClick:!p,placeholder:r||"",onDayChange:e=>{var t;t=e,k.current&&!p&&k.current.hideDayPicker(),l&&l(t)},showOverlay:p}))},me=k.div`
|
|
434
434
|
display: flex;
|
|
435
435
|
align-items: center;
|
|
436
|
-
--font-weight-lg: ${
|
|
437
|
-
--font-weight-md: ${
|
|
438
|
-
--font-weight-sm: ${
|
|
436
|
+
--font-weight-lg: ${D.sizes.fwBold};
|
|
437
|
+
--font-weight-md: ${D.sizes.fwRegular};
|
|
438
|
+
--font-weight-sm: ${D.sizes.fwRegular};
|
|
439
439
|
|
|
440
440
|
&[data-icon-position='left'] {
|
|
441
441
|
& > *:first-child {
|
|
@@ -455,7 +455,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
${
|
|
458
|
+
${w.mbDown} {
|
|
459
459
|
&[data-size='lg'] {
|
|
460
460
|
font-size: 16px;
|
|
461
461
|
line-height: 24px;
|
|
@@ -472,7 +472,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
472
472
|
font-weight: var(----font-weight-sm);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
`,
|
|
475
|
+
`,ge=k.div`
|
|
476
476
|
position: relative;
|
|
477
477
|
width: 100%;
|
|
478
478
|
|
|
@@ -483,13 +483,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
483
483
|
outline: none;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
`,
|
|
486
|
+
`,he=k.div`
|
|
487
487
|
position: absolute;
|
|
488
488
|
top: 19px;
|
|
489
489
|
width: 24px;
|
|
490
490
|
height: 24px;
|
|
491
|
-
color: ${
|
|
492
|
-
border: 2px solid ${
|
|
491
|
+
color: ${D.colors.white};
|
|
492
|
+
border: 2px solid ${D.colors.white};
|
|
493
493
|
border-radius: 50%;
|
|
494
494
|
transform: translateY(-50%) translateX(-50%);
|
|
495
495
|
display: flex;
|
|
@@ -497,16 +497,16 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
497
497
|
justify-content: center;
|
|
498
498
|
cursor: pointer;
|
|
499
499
|
|
|
500
|
-
background-color: ${
|
|
501
|
-
color: ${
|
|
502
|
-
border: 1px solid ${
|
|
500
|
+
background-color: ${D.colors.white};
|
|
501
|
+
color: ${D.colors.gray300};
|
|
502
|
+
border: 1px solid ${D.colors.gray300};
|
|
503
503
|
|
|
504
504
|
&[data-is-active='true'] {
|
|
505
|
-
background-color: ${
|
|
506
|
-
color: ${
|
|
505
|
+
background-color: ${D.colors.primaryBase};
|
|
506
|
+
color: ${D.colors.white};
|
|
507
507
|
border: none;
|
|
508
508
|
}
|
|
509
|
-
`,ue=
|
|
509
|
+
`,ue=k.div`
|
|
510
510
|
display: flex;
|
|
511
511
|
width: 100%;
|
|
512
512
|
height: 36px;
|
|
@@ -516,41 +516,41 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
&[data-track-type='detail'][data-step-passed='true'] > div {
|
|
519
|
-
border: 1px solid ${
|
|
519
|
+
border: 1px solid ${D.colors.primaryBase};
|
|
520
520
|
height: 0px;
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
&[data-track-type='detail'] > div {
|
|
524
|
-
border: 1px solid ${
|
|
524
|
+
border: 1px solid ${D.colors.gray200};
|
|
525
525
|
height: 0px;
|
|
526
526
|
}
|
|
527
|
-
`,be=
|
|
527
|
+
`,be=k.div`
|
|
528
528
|
width: 100%;
|
|
529
529
|
height: 5px;
|
|
530
530
|
align-self: center;
|
|
531
531
|
border-radius: 4px;
|
|
532
|
-
background-color: ${
|
|
533
|
-
`,xe=
|
|
532
|
+
background-color: ${D.colors.gray200};
|
|
533
|
+
`,xe=k.div`
|
|
534
534
|
position: absolute;
|
|
535
535
|
top: 32px;
|
|
536
536
|
min-width: 100px;
|
|
537
537
|
text-align: center;
|
|
538
|
-
color: ${
|
|
539
|
-
font-size: ${
|
|
540
|
-
font-weight: ${
|
|
538
|
+
color: ${D.colors.gray500};
|
|
539
|
+
font-size: ${D.sizes.fsCaption2};
|
|
540
|
+
font-weight: ${D.sizes.fwBold};
|
|
541
541
|
|
|
542
542
|
&[data-step-passed='true'] {
|
|
543
|
-
color: ${
|
|
543
|
+
color: ${D.colors.gray800};
|
|
544
544
|
}
|
|
545
|
-
`,fe=
|
|
545
|
+
`,fe=k.div`
|
|
546
546
|
display: flex;
|
|
547
547
|
align-items: center;
|
|
548
|
-
`,ye=
|
|
548
|
+
`,ye=k.div`
|
|
549
549
|
display: flex;
|
|
550
550
|
align-items: center;
|
|
551
|
-
font-size: ${
|
|
552
|
-
font-weight: ${
|
|
553
|
-
color: ${
|
|
551
|
+
font-size: ${D.sizes.fsCaption2};
|
|
552
|
+
font-weight: ${D.sizes.fwBold};
|
|
553
|
+
color: ${D.colors.gray500};
|
|
554
554
|
cursor: pointer;
|
|
555
555
|
|
|
556
556
|
& > svg {
|
|
@@ -560,13 +560,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
& > svg > path {
|
|
563
|
-
stroke: ${
|
|
563
|
+
stroke: ${D.colors.gray500};
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
&[data-selected='true'] {
|
|
567
|
-
color: ${
|
|
567
|
+
color: ${D.colors.primaryBase};
|
|
568
568
|
}
|
|
569
|
-
`,ve=
|
|
569
|
+
`,ve=k.div`
|
|
570
570
|
position: absolute;
|
|
571
571
|
left: 0;
|
|
572
572
|
top: 19px;
|
|
@@ -578,11 +578,11 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
578
578
|
align-items: center;
|
|
579
579
|
|
|
580
580
|
padding: 8px;
|
|
581
|
-
background-color: ${
|
|
582
|
-
`,we=
|
|
581
|
+
background-color: ${D.colors.white};
|
|
582
|
+
`,we=k.div`
|
|
583
583
|
min-width: 24px;
|
|
584
584
|
height: 24px;
|
|
585
|
-
border: 2px solid ${
|
|
585
|
+
border: 2px solid ${D.colors.white};
|
|
586
586
|
border-radius: 50%;
|
|
587
587
|
margin-right: 8px;
|
|
588
588
|
display: flex;
|
|
@@ -590,16 +590,16 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
590
590
|
justify-content: center;
|
|
591
591
|
cursor: pointer;
|
|
592
592
|
|
|
593
|
-
background-color: ${
|
|
594
|
-
color: ${
|
|
595
|
-
border: 1px solid ${
|
|
593
|
+
background-color: ${D.colors.white};
|
|
594
|
+
color: ${D.colors.gray300};
|
|
595
|
+
border: 1px solid ${D.colors.gray300};
|
|
596
596
|
|
|
597
597
|
&[data-is-active='true'] {
|
|
598
598
|
border: none;
|
|
599
|
-
background-color: ${
|
|
600
|
-
color: ${
|
|
599
|
+
background-color: ${D.colors.primaryBase};
|
|
600
|
+
color: ${D.colors.white};
|
|
601
601
|
}
|
|
602
|
-
`,ke=
|
|
602
|
+
`,ke=k.div`
|
|
603
603
|
display: flex;
|
|
604
604
|
align-items: center;
|
|
605
605
|
justify-content: center;
|
|
@@ -610,39 +610,39 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
610
610
|
margin-right: 8px;
|
|
611
611
|
|
|
612
612
|
& > path {
|
|
613
|
-
stroke: ${
|
|
613
|
+
stroke: ${D.colors.gray500};
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
`,Ee=
|
|
617
|
-
color: ${
|
|
618
|
-
font-size: ${
|
|
619
|
-
font-weight: ${
|
|
616
|
+
`,Ee=k.div`
|
|
617
|
+
color: ${D.colors.gray400};
|
|
618
|
+
font-size: ${D.sizes.fsCaption2};
|
|
619
|
+
font-weight: ${D.sizes.fwBold};
|
|
620
620
|
margin-right: 8px;
|
|
621
621
|
flex: 0 0 auto;
|
|
622
622
|
|
|
623
623
|
&[data-step-passed='true'] {
|
|
624
|
-
color: ${
|
|
624
|
+
color: ${D.colors.gray800};
|
|
625
625
|
}
|
|
626
|
-
`,$e=
|
|
626
|
+
`,$e=k.div`
|
|
627
627
|
position: absolute;
|
|
628
628
|
top: 32px;
|
|
629
|
-
font-weight: ${
|
|
630
|
-
color: ${
|
|
629
|
+
font-weight: ${D.sizes.fwRegular};
|
|
630
|
+
color: ${D.colors.gray400};
|
|
631
631
|
padding-right: 16px;
|
|
632
|
-
`,De=e.forwardRef((({id:t,value:a,options:o,className:n,isDisabled:l,size:s="small",direction:d="vertical",onChange:c,dataEventCategory:p,dataEventAction:m,dataEventLabel:u},b)=>{const[x,f]=i(a);r(b,(()=>({reset(){f(a)}})));const y="small"===s?"md":"lg",v="vertical"===d?h
|
|
632
|
+
`,De=e.forwardRef((({id:t,value:a,options:o,className:n,isDisabled:l,size:s="small",direction:d="vertical",onChange:c,dataEventCategory:p,dataEventAction:m,dataEventLabel:u},b)=>{const[x,f]=i(a);r(b,(()=>({reset(){f(a)}})));const y="small"===s?"md":"lg",v="vertical"===d?g:h;return e.createElement(L.Group,{name:t,className:n,size:y,value:String(x),defaultValue:a,onChange:e=>{f(e),null==c||c(e)}},e.createElement(v,{spacing:"xl"},o.map((t=>e.createElement(L,{key:t.value,value:t.value,label:t.label,disabled:l,"data-event-category":p,"data-event-action":m,"data-event-label":u})))))})),Ce=k.div`
|
|
633
633
|
--menu-width: 240px;
|
|
634
634
|
--menu-spacing: 28px 16px;
|
|
635
635
|
width: var(--menu-width);
|
|
636
636
|
height: 100vh;
|
|
637
637
|
padding: var(--menu-spacing);
|
|
638
|
-
background-color: ${
|
|
638
|
+
background-color: ${D.colors.neutral50};
|
|
639
639
|
transition: ease-in-out 0.5s;
|
|
640
640
|
|
|
641
641
|
&[data-is-collapsed] {
|
|
642
642
|
--menu-width: 64px;
|
|
643
643
|
--menu-spacing: 28px 8px;
|
|
644
644
|
}
|
|
645
|
-
`,ze=({isCollapsed:t,className:a,style:i,children:o})=>e.createElement(Ce,{style:i,className:a,"data-is-collapsed":t||void 0},o),Be=
|
|
645
|
+
`,ze=({isCollapsed:t,className:a,style:i,children:o})=>e.createElement(Ce,{style:i,className:a,"data-is-collapsed":t||void 0},o),Be=k.div`
|
|
646
646
|
display: flex;
|
|
647
647
|
align-items: baseline;
|
|
648
648
|
justify-content: space-between;
|
|
@@ -650,12 +650,12 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
650
650
|
svg {
|
|
651
651
|
transition: 0.4s ease-in-out;
|
|
652
652
|
}
|
|
653
|
-
`,Pe=
|
|
653
|
+
`,Pe=k.div`
|
|
654
654
|
cursor: pointer;
|
|
655
655
|
&[data-is-collapsed] {
|
|
656
656
|
transform: rotate(180deg);
|
|
657
657
|
}
|
|
658
|
-
`,Ne=({isCollapsed:t,defaultLogo:a,onBackClick:i,customIcon:o})=>e.createElement(Be,null,e.createElement(
|
|
658
|
+
`,Ne=({isCollapsed:t,defaultLogo:a,onBackClick:i,customIcon:o})=>e.createElement(Be,null,e.createElement(P,{type:t?"logomark":a||"hellocare",customSize:{width:t?"24px":"77px",height:"24px"}}),e.createElement(Pe,{"data-is-collapsed":t||void 0,onClick:i},o||e.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 20 20",width:"20px",height:"20px"},e.createElement("path",{d:"M10 .75A9.25 9.25 0 1019.25 10 9.25 9.25 0 0010 .75z",fill:"none",stroke:"#d2d6dc",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),e.createElement("path",{d:"M11.44 6.53L8 10l3.48 3.47",fill:"none",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})))),je=k.figure`
|
|
659
659
|
display: flex;
|
|
660
660
|
|
|
661
661
|
> img,
|
|
@@ -673,7 +673,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
673
673
|
margin-top: 2px;
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
`,Se=({name:t,description:a,image:i,isDescriptionHidden:o})=>e.createElement(je,null,i,!o&&e.createElement("figcaption",null,e.createElement(c,{size:"p4",weight:"bold"},t),e.createElement(c,{size:"p4"},a))),Ie=
|
|
676
|
+
`,Se=({name:t,description:a,image:i,isDescriptionHidden:o})=>e.createElement(je,null,i,!o&&e.createElement("figcaption",null,e.createElement(c,{size:"p4",weight:"bold"},t),e.createElement(c,{size:"p4"},a))),Ie=k.div`
|
|
677
677
|
display: flex;
|
|
678
678
|
align-items: center;
|
|
679
679
|
margin-top: 24px;
|
|
@@ -689,7 +689,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
689
689
|
max-height: 2rem;
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
|
-
`,Te=({isCollapsed:t,userName:a,role:i,avatar:o})=>e.createElement(Ie,{"data-is-collapsed":t||void 0},e.createElement(Se,{image:o,name:a,description:i,isDescriptionHidden:t})),Me=
|
|
692
|
+
`,Te=({isCollapsed:t,userName:a,role:i,avatar:o})=>e.createElement(Ie,{"data-is-collapsed":t||void 0},e.createElement(Se,{image:o,name:a,description:i,isDescriptionHidden:t})),Me=k.div`
|
|
693
693
|
display: flex;
|
|
694
694
|
align-items: center;
|
|
695
695
|
padding: 9px 21px;
|
|
@@ -705,7 +705,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
&[data-is-link-active] {
|
|
708
|
-
background: ${
|
|
708
|
+
background: ${D.colors.primaryBase};
|
|
709
709
|
}
|
|
710
710
|
|
|
711
711
|
&[data-is-link-collapsed] {
|
|
@@ -713,7 +713,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
713
713
|
margin-right: -14px;
|
|
714
714
|
margin-left: -14px;
|
|
715
715
|
}
|
|
716
|
-
`,Ae=({icon:t,isActive:a,children:i,isCollapsed:o,activeIcon:r,onLinkClick:n,textSize:l="base",textType:s="bold",textColorActive:d="#fff",textColor:p="#595959"})=>e.createElement(Me,{"data-is-link-active":a||void 0,onClick:n,"data-is-link-collapsed":o||void 0},a&&r?r:t,!o&&e.createElement(c,{size:l,weight:s,color:a?d:p},i)),Oe=
|
|
716
|
+
`,Ae=({icon:t,isActive:a,children:i,isCollapsed:o,activeIcon:r,onLinkClick:n,textSize:l="base",textType:s="bold",textColorActive:d="#fff",textColor:p="#595959"})=>e.createElement(Me,{"data-is-link-active":a||void 0,onClick:n,"data-is-link-collapsed":o||void 0},a&&r?r:t,!o&&e.createElement(c,{size:l,weight:s,color:a?d:p},i)),Oe=k.div`
|
|
717
717
|
position: relative;
|
|
718
718
|
width: 100%;
|
|
719
719
|
> .container {
|
|
@@ -768,7 +768,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
768
768
|
.line {
|
|
769
769
|
width: 50%;
|
|
770
770
|
height: 2px;
|
|
771
|
-
background-color: ${
|
|
771
|
+
background-color: ${D.colors.gray600};
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
}
|
|
@@ -777,7 +777,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
777
777
|
|
|
778
778
|
.bullet-nav {
|
|
779
779
|
position: absolute;
|
|
780
|
-
z-index: ${
|
|
780
|
+
z-index: ${D.zIndexes.belowHeader};
|
|
781
781
|
bottom: -30px;
|
|
782
782
|
left: 50%;
|
|
783
783
|
display: flex;
|
|
@@ -797,10 +797,10 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
797
797
|
transition: all 0.3s;
|
|
798
798
|
&.active {
|
|
799
799
|
&[data-scheme='hellosites'] {
|
|
800
|
-
background-color: ${
|
|
800
|
+
background-color: ${D.colors.primary600};
|
|
801
801
|
}
|
|
802
802
|
&[data-scheme='marrybaby'] {
|
|
803
|
-
background-color: ${
|
|
803
|
+
background-color: ${D.mbColors.pink};
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
}
|
|
@@ -840,7 +840,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
840
840
|
border-radius: 4px;
|
|
841
841
|
}
|
|
842
842
|
.image-block.active {
|
|
843
|
-
border-color: ${
|
|
843
|
+
border-color: ${D.colors.primaryBase};
|
|
844
844
|
}
|
|
845
845
|
img {
|
|
846
846
|
height: 40px;
|
|
@@ -848,28 +848,28 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
848
848
|
max-width: 100%;
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
`,_e=
|
|
852
|
-
border-radius: ${
|
|
851
|
+
`,_e=k.div`
|
|
852
|
+
border-radius: ${D.borderRadius};
|
|
853
853
|
${e=>e["data-is-in-card"]&&`\n padding: 12px; \n background-color: ${e["data-card-color"]};`}
|
|
854
|
-
`,Le=
|
|
854
|
+
`,Le=k.div`
|
|
855
855
|
width: 13px;
|
|
856
856
|
height: 13px;
|
|
857
857
|
margin-right: 10px;
|
|
858
858
|
background-color: ${e=>e["data-color"]};
|
|
859
859
|
border-radius: 50%;
|
|
860
|
-
`,Ue=
|
|
860
|
+
`,Ue=k.div`
|
|
861
861
|
display: flex;
|
|
862
862
|
align-items: center;
|
|
863
|
-
color: ${
|
|
864
|
-
font-size: ${
|
|
865
|
-
font-weight: ${
|
|
866
|
-
`,Fe=
|
|
863
|
+
color: ${D.colors.gray800};
|
|
864
|
+
font-size: ${D.sizes.fsParagraph4};
|
|
865
|
+
font-weight: ${D.sizes.fwRegular};
|
|
866
|
+
`,Fe=k.div`
|
|
867
867
|
display: flex;
|
|
868
868
|
align-items: center;
|
|
869
869
|
margin-top: 4px;
|
|
870
|
-
color: ${
|
|
871
|
-
font-size: ${
|
|
872
|
-
font-weight: ${
|
|
870
|
+
color: ${D.colors.gray800};
|
|
871
|
+
font-size: ${D.sizes.fsHeading2};
|
|
872
|
+
font-weight: ${D.sizes.fwSemiBold};
|
|
873
873
|
|
|
874
874
|
& > svg {
|
|
875
875
|
width: 24px;
|
|
@@ -879,15 +879,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
879
879
|
|
|
880
880
|
&[data-size='small'] {
|
|
881
881
|
margin-left: 23px;
|
|
882
|
-
font-size: ${
|
|
883
|
-
font-weight: ${
|
|
882
|
+
font-size: ${D.sizes.fsParagraph4};
|
|
883
|
+
font-weight: ${D.sizes.fwBold};
|
|
884
884
|
}
|
|
885
|
-
`,He=
|
|
886
|
-
--horizontal-spacing: ${e=>e.theme.horizontalPadding||"19px"};
|
|
887
|
-
--vertical-spacing: ${e=>e.theme.verticalPadding||"26px"};
|
|
885
|
+
`,He=k.table`
|
|
888
886
|
width: 100%;
|
|
889
887
|
position: relative;
|
|
890
|
-
`,Re=({children:t,className:a,style:i,horizontalPadding:o,verticalPadding:r})=>e.createElement(He,{className:a,style:
|
|
888
|
+
`,Re=({children:t,className:a,style:i,horizontalPadding:o,verticalPadding:r})=>e.createElement(He,{className:a,style:Object.assign({"--horizontal-spacing":o||"19px","--vertical-spacing":r||"26px"},i)},t),Ge=k.td`
|
|
891
889
|
padding: var(--vertical-spacing) var(--horizontal-spacing);
|
|
892
890
|
vertical-align: middle;
|
|
893
891
|
|
|
@@ -900,53 +898,52 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
900
898
|
&[data-text-align='center'] {
|
|
901
899
|
text-align: center;
|
|
902
900
|
}
|
|
903
|
-
`,We=({children:t,className:a,style:i,textAlign:o,isTableHead:r})=>e.createElement(Ge,{className:a,style:i,"data-text-align":o||"left",as:r?"th":"td"},t),Ve=
|
|
904
|
-
border-bottom: 1px solid ${
|
|
901
|
+
`,We=({children:t,className:a,style:i,textAlign:o,isTableHead:r})=>e.createElement(Ge,{className:a,style:i,"data-text-align":o||"left",as:r?"th":"td"},t),Ve=k.tr`
|
|
902
|
+
border-bottom: 1px solid ${D.colors.gray100};
|
|
905
903
|
|
|
906
904
|
&[data-is-active='true'] {
|
|
907
|
-
background-color: ${
|
|
905
|
+
background-color: ${D.colors.gray200};
|
|
908
906
|
}
|
|
909
|
-
`,qe=({children:t,className:a,style:i,isActive:o,onRowClicked:r,rowId:n})=>e.createElement(Ve,{className:a,"data-is-active":o,style:i,onClick:()=>{r&&r(n)}},t),Ye=
|
|
907
|
+
`,qe=({children:t,className:a,style:i,isActive:o,onRowClicked:r,rowId:n})=>e.createElement(Ve,{className:a,"data-is-active":o,style:i,onClick:()=>{r&&r(n)}},t),Ye=k.thead`
|
|
910
908
|
th {
|
|
911
909
|
padding: var(--vertical-spacing) var(--horizontal-spacing);
|
|
912
910
|
text-align: left;
|
|
913
911
|
|
|
914
|
-
color: ${
|
|
915
|
-
font-weight: ${
|
|
912
|
+
color: ${D.colors.gray500};
|
|
913
|
+
font-weight: ${D.sizes.fwBold};
|
|
916
914
|
}
|
|
917
915
|
&[data-is-sticky] {
|
|
918
916
|
th {
|
|
919
917
|
position: sticky;
|
|
920
918
|
top: 0;
|
|
921
919
|
background: white;
|
|
922
|
-
border-bottom: 2px solid
|
|
923
|
-
${e=>e.theme.colors.gray200};
|
|
920
|
+
border-bottom: 2px solid ${D.colors.gray200};
|
|
924
921
|
}
|
|
925
922
|
}
|
|
926
|
-
`,Ze=({isSticky:t,children:a,className:i,style:o})=>e.createElement(Ye,{className:i,"data-is-sticky":t||void 0,style:o},e.createElement(qe,null,a)),Xe=
|
|
923
|
+
`,Ze=({isSticky:t,children:a,className:i,style:o})=>e.createElement(Ye,{className:i,"data-is-sticky":t||void 0,style:o},e.createElement(qe,null,a)),Xe=k.tbody`
|
|
927
924
|
position: relative;
|
|
928
925
|
&[data-is-striped] {
|
|
929
926
|
> tr:nth-child(odd) {
|
|
930
|
-
background-color: ${
|
|
927
|
+
background-color: ${D.colors.neutral50};
|
|
931
928
|
}
|
|
932
929
|
}
|
|
933
930
|
&[data-is-hoverable] {
|
|
934
931
|
> tr:hover {
|
|
935
|
-
background-color: ${
|
|
932
|
+
background-color: ${D.colors.neutral100};
|
|
936
933
|
}
|
|
937
934
|
}
|
|
938
|
-
`,Je=({children:t,className:a,style:i,isHoverable:o,isStriped:r})=>e.createElement(Xe,{className:a,style:i,"data-is-striped":r||void 0,"data-is-hoverable":o||void 0},t);var Ke=m((e=>{const t=u("itemLabel");return{root:{display:"inline-flex",maxWidth:"100%",borderBottom:`1px solid ${e.colors.neutral[1]}`,"-webkit-overflow-scrolling":"touch",overflowX:"auto",overflowY:"hidden","-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"},columnGap:e.spacing.lg},item:{display:"flex",alignItems:"center",paddingBottom:"4px","&:hover":{cursor:"pointer"},"&.active":{color:e.fn.primaryColor(),borderBottom:`3px solid ${e.fn.primaryColor()}`,bottom:"-1px",position:"relative",[`& .${t}`]:{}},"&[data-event-category] > *":{pointerEvents:"none"}},itemInner:{display:"flex",alignItems:"center"},label:{ref:t},icon:{marginRight:e.spacing.xs}}}));const Qe=
|
|
935
|
+
`,Je=({children:t,className:a,style:i,isHoverable:o,isStriped:r})=>e.createElement(Xe,{className:a,style:i,"data-is-striped":r||void 0,"data-is-hoverable":o||void 0},t);var Ke=m((e=>{const t=u("itemLabel");return{root:{display:"inline-flex",maxWidth:"100%",borderBottom:`1px solid ${e.colors.neutral[1]}`,"-webkit-overflow-scrolling":"touch",overflowX:"auto",overflowY:"hidden","-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"},columnGap:e.spacing.lg},item:{display:"flex",alignItems:"center",paddingBottom:"4px","&:hover":{cursor:"pointer"},"&.active":{color:e.fn.primaryColor(),borderBottom:`3px solid ${e.fn.primaryColor()}`,bottom:"-1px",position:"relative",[`& .${t}`]:{}},"&[data-event-category] > *":{pointerEvents:"none"}},itemInner:{display:"flex",alignItems:"center"},label:{ref:t},icon:{marginRight:e.spacing.xs}}}));const Qe=k.div`
|
|
939
936
|
padding: 1rem;
|
|
940
|
-
background: ${
|
|
937
|
+
background: ${D.colors.neutral100};
|
|
941
938
|
.survey-inner-wrapper {
|
|
942
939
|
padding: 1.25rem 1rem 1.5rem;
|
|
943
|
-
background: ${
|
|
944
|
-
border-radius: ${
|
|
940
|
+
background: ${D.colors.white};
|
|
941
|
+
border-radius: ${D.borderRadius};
|
|
945
942
|
.survey-header {
|
|
946
943
|
border-bottom: 1px solid #dbdfe5;
|
|
947
944
|
margin-bottom: 12px;
|
|
948
945
|
.survey-header-text {
|
|
949
|
-
color: ${
|
|
946
|
+
color: ${D.colors.gray500};
|
|
950
947
|
}
|
|
951
948
|
}
|
|
952
949
|
|
|
@@ -1012,7 +1009,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1012
1009
|
}
|
|
1013
1010
|
}
|
|
1014
1011
|
}
|
|
1015
|
-
`,et=
|
|
1012
|
+
`,et=k.div`
|
|
1016
1013
|
position: relative;
|
|
1017
1014
|
display: flex;
|
|
1018
1015
|
align-items: center;
|
|
@@ -1023,7 +1020,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1023
1020
|
width: 20px;
|
|
1024
1021
|
height: 20px;
|
|
1025
1022
|
flex-shrink: 0;
|
|
1026
|
-
border: solid 1px ${
|
|
1023
|
+
border: solid 1px ${D.colors.gray500};
|
|
1027
1024
|
margin-right: 8px;
|
|
1028
1025
|
border-radius: 100%;
|
|
1029
1026
|
cursor: inherit;
|
|
@@ -1031,16 +1028,15 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1031
1028
|
|
|
1032
1029
|
&:hover,
|
|
1033
1030
|
&:active {
|
|
1034
|
-
border-color: ${
|
|
1035
|
-
box-shadow: 0 0 2px 2px
|
|
1036
|
-
${e=>e.theme.colors.primary600};
|
|
1031
|
+
border-color: ${D.colors.primaryBase};
|
|
1032
|
+
box-shadow: 0 0 2px 2px ${D.colors.primary600};
|
|
1037
1033
|
}
|
|
1038
1034
|
|
|
1039
1035
|
&:checked {
|
|
1040
1036
|
display: flex;
|
|
1041
1037
|
align-items: center;
|
|
1042
1038
|
justify-content: center;
|
|
1043
|
-
border-color: ${
|
|
1039
|
+
border-color: ${D.colors.primaryBase};
|
|
1044
1040
|
&:after {
|
|
1045
1041
|
position: absolute;
|
|
1046
1042
|
top: 50%;
|
|
@@ -1050,7 +1046,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1050
1046
|
//left: 3px;
|
|
1051
1047
|
//position: absolute;
|
|
1052
1048
|
//top: 4px;
|
|
1053
|
-
background-color: ${
|
|
1049
|
+
background-color: ${D.colors.primaryBase};
|
|
1054
1050
|
border-radius: 50%;
|
|
1055
1051
|
content: '';
|
|
1056
1052
|
transform: translate(-50%, -50%);
|
|
@@ -1061,17 +1057,17 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1061
1057
|
label {
|
|
1062
1058
|
width: calc(100% - 24px);
|
|
1063
1059
|
cursor: inherit;
|
|
1064
|
-
font-weight: ${
|
|
1060
|
+
font-weight: ${D.sizes.fwRegular};
|
|
1065
1061
|
}
|
|
1066
1062
|
|
|
1067
1063
|
&[data-disabled='true'] {
|
|
1068
|
-
color: ${
|
|
1064
|
+
color: ${D.colors.gray300};
|
|
1069
1065
|
cursor: not-allowed;
|
|
1070
1066
|
input {
|
|
1071
|
-
border-color: ${
|
|
1067
|
+
border-color: ${D.colors.gray300};
|
|
1072
1068
|
|
|
1073
1069
|
&:hover {
|
|
1074
|
-
border-color: ${
|
|
1070
|
+
border-color: ${D.colors.gray300};
|
|
1075
1071
|
box-shadow: none;
|
|
1076
1072
|
}
|
|
1077
1073
|
}
|
|
@@ -1080,7 +1076,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1080
1076
|
padding: 16px 20px;
|
|
1081
1077
|
border: 0.5px solid transparent;
|
|
1082
1078
|
background: #fafafa;
|
|
1083
|
-
border-radius: ${
|
|
1079
|
+
border-radius: ${D.borderRadius};
|
|
1084
1080
|
&[data-checked='true'] {
|
|
1085
1081
|
border: 0.5px solid #2d87f3;
|
|
1086
1082
|
background: #f7f9fc;
|
|
@@ -1092,7 +1088,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1092
1088
|
&[type='checkbox'] {
|
|
1093
1089
|
&:checked {
|
|
1094
1090
|
border: 0;
|
|
1095
|
-
background: ${
|
|
1091
|
+
background: ${D.colors.primaryBase}
|
|
1096
1092
|
url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z' fill='%232D87F3' stroke='%232D87F3' stroke-width='2'/%3E%3Cpath d='M15.5714 8L9.67857 14L7 11.2727' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
|
|
1097
1093
|
no-repeat center center;
|
|
1098
1094
|
&:after {
|
|
@@ -1121,12 +1117,12 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1121
1117
|
left: 0;
|
|
1122
1118
|
width: 100%;
|
|
1123
1119
|
height: 100%;
|
|
1124
|
-
border-radius: ${
|
|
1120
|
+
border-radius: ${D.borderRadius};
|
|
1125
1121
|
object-fit: cover;
|
|
1126
1122
|
}
|
|
1127
1123
|
}
|
|
1128
1124
|
}
|
|
1129
|
-
`,tt=
|
|
1125
|
+
`,tt=k.div`
|
|
1130
1126
|
position: relative;
|
|
1131
1127
|
width: 100%;
|
|
1132
1128
|
padding-top: min(400px, 100%);
|
|
@@ -1156,7 +1152,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1156
1152
|
}
|
|
1157
1153
|
}
|
|
1158
1154
|
}
|
|
1159
|
-
`,at=
|
|
1155
|
+
`,at=k.div`
|
|
1160
1156
|
.survey-question-text-wrapper {
|
|
1161
1157
|
margin-bottom: 24px;
|
|
1162
1158
|
.survey-question-title {
|
|
@@ -1164,13 +1160,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1164
1160
|
}
|
|
1165
1161
|
.survey-question-subtitle,
|
|
1166
1162
|
.survey-question-description {
|
|
1167
|
-
color: ${
|
|
1163
|
+
color: ${D.colors.gray500};
|
|
1168
1164
|
}
|
|
1169
1165
|
}
|
|
1170
1166
|
.survey-question-image {
|
|
1171
1167
|
width: 100%;
|
|
1172
1168
|
margin-bottom: 12px;
|
|
1173
|
-
border-radius: ${
|
|
1169
|
+
border-radius: ${D.borderRadius};
|
|
1174
1170
|
}
|
|
1175
1171
|
|
|
1176
1172
|
.survey-question-answer-wrapper {
|
|
@@ -1206,22 +1202,24 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1206
1202
|
}
|
|
1207
1203
|
}
|
|
1208
1204
|
}
|
|
1209
|
-
`,it=({size:t="small",label:a,name:i,checked:o,value:r,className:n,isDisabled:l=!1,onChange:s,hasImage:d,inputType:c,image:p})=>e.createElement(et,{"data-disabled":l,className:n,"data-size":t,"data-checked":o,onClick:()=>{s(r)},"data-has-image":d},d&&e.createElement("div",{className:"choice-image-wrapper"},p&&e.createElement("img",{src:p,loading:"lazy"})),e.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${i}-${r}`},a),e.createElement("input",{type:c,checked:o,name:i,id:`${i}-${r}`,value:r,readOnly:!0})),ot=({question:t,description:a,onOptionsChange:r,onTextOptionsChange:n,style:l,className:s})=>{const{type:d,title:p,subtitle:m,image:
|
|
1205
|
+
`,it=({size:t="small",label:a,name:i,checked:o,value:r,className:n,isDisabled:l=!1,onChange:s,hasImage:d,inputType:c,image:p})=>e.createElement(et,{"data-disabled":l,className:n,"data-size":t,"data-checked":o,onClick:()=>{s(r)},"data-has-image":d},d&&e.createElement("div",{className:"choice-image-wrapper"},p&&e.createElement("img",{src:p,loading:"lazy"})),e.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${i}-${r}`},a),e.createElement("input",{type:c,checked:o,name:i,id:`${i}-${r}`,value:r,readOnly:!0})),ot=({question:t,description:a,onOptionsChange:r,onTextOptionsChange:n,style:l,className:s})=>{const{type:d,title:p,subtitle:m,image:g,textOptions:h,options:u,name:b,is_multi_select:x}=t,f=!!(null==u?void 0:u.some((e=>e.image))),[y,v]=i([]),[w,k]=i((()=>(null==h?void 0:h.slice())||[]));return o((()=>{r&&r(y.slice())}),[!!r,y]),o((()=>{n&&n(w)}),[!!n,w]),e.createElement(at,{className:s,style:l},e.createElement("div",{className:"survey-question-text-wrapper"},p&&e.createElement(j,{"data-nosubtitle":!m,className:"survey-question-title",tag:"h4"},p),m&&e.createElement(c,{className:"survey-question-subtitle",size:"p2"},m),a&&e.createElement(c,{className:"survey-question-description",size:"p2"},a)),g&&e.createElement("img",{src:g,className:"survey-question-image",loading:"lazy"}),e.createElement("div",{className:"survey-question-answer-wrapper"},"radio"===d&&e.createElement("div",{"data-has-image":f,className:"survey-question-options-wrapper"},u.map((t=>{var a;return e.createElement(it,{inputType:"radio",label:t.label,name:b,key:`${b}-${t.value}`,checked:(null===(a=y[0])||void 0===a?void 0:a.value)===t.value,value:t.value,onChange:e=>{v([u.find((t=>t.value===e))])},className:"survey-question-option-item",image:t.image,hasImage:f})}))),"checkbox"===d&&e.createElement("div",{"data-has-image":f,className:"survey-question-options-wrapper"},u.map((t=>e.createElement(it,{inputType:"checkbox",label:t.label,name:b,key:`${b}-${t.value}`,checked:!!y.find((e=>e.value===t.value)),value:t.value,onChange:()=>{const e=y.findIndex((e=>e.value===t.value));v(e>=0?t=>(t.splice(e,1),t.slice()):x?e=>e.concat(t).slice():[t])},className:"survey-question-option-item survey-option-radio",image:t.image,hasImage:f})))),"textbox"===d&&w.map(((t,a)=>t.isTextArea?e.createElement(S,{key:a,placeholder:t.placeholder,height:"150px",value:t.value,onChange:e=>k((t=>(t[a].value=e,t.slice())))}):e.createElement(O,{key:a,value:t.value,name:t.name,size:"md",className:"survey-contact-input",label:t.label,placeholder:t.placeholder,onChange:e=>{k((t=>(t[a].value=e,t.slice())))},type:t.type})))))};var rt;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}(rt||(rt={}));const nt=({className:t,headerText:o,style:r,question:n,termAndPolicyText:l,prevText:s,nextText:d,isContactForm:p,isDisableNext:m,isDisablePrev:g,onPrevClick:h,onNextClick:u,isSubmitButton:b,isButtonCenter:x,progress:f,descriptionText:y})=>{var v,w,k;const[E,$]=i([]),{is_multi_select:D,multi_select_option:C,from:z,to:B}=n,P=null==n?void 0:n.type,j="checkbox"===P&&(null===(v=n.options)||void 0===v?void 0:v.length)&&(!E||0===E.length||D&&C===rt.RANGE&&(E.length<z||E.length>B)||D&&C===rt.EXACT_NUMBER&&E.length!==z)||"radio"===P&&(null===(w=n.options)||void 0===w?void 0:w.length)&&(!E||0===E.length)||"textbox"===P&&(null===(k=n.textOptions)||void 0===k?void 0:k.length)&&(E.length<n.textOptions.length||E.some((e=>!e.value))),S="number"==typeof f?f>1?1:f<0?0:Number(f.toFixed(2)):-1,I=a(null),T=()=>"textbox"!==P||I.current.reportValidity();return e.createElement(Qe,{className:t,style:r},e.createElement("div",{className:"survey-inner-wrapper"},o&&e.createElement("div",{className:"survey-header"},e.createElement(c,{className:"survey-header-text",size:"c2"},o)),e.createElement("form",{ref:I,onSubmit:e=>e.preventDefault()},e.createElement(ot,{question:n,description:y,onOptionsChange:e=>{$(e)},onTextOptionsChange:e=>{$(e)}})),p&&d&&e.createElement(N,{className:"survey-contact-submit",size:"lg",isDisabled:m||j,onClick:()=>T()&&u&&u(E)},d),l&&e.createElement("div",{className:"term-policy-container"},l),"number"==typeof f&&e.createElement("div",{className:"survey-progress-wrapper"},e.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${S})`}})),(s||d)&&e.createElement("div",{"data-center":x,className:"survey-button-wrapper"},s&&e.createElement(N,{className:"survey-prev-button",size:"lg",color:g?"primary":"secondary",isDisabled:g,icon:e.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e.createElement("path",{d:"M2.44677 4.99999L5.31252 2.13424C5.62302 1.82374 5.62302 1.31974 5.31252 1.00924C5.00202 0.698742 4.49802 0.698742 4.18752 1.00924L0.727018 4.46974C0.433768 4.76299 0.433768 5.23774 0.727018 5.53024L4.18752 8.99074C4.49802 9.30124 5.00202 9.30124 5.31252 8.99074C5.62302 8.68024 5.62302 8.17624 5.31252 7.86574L2.44677 4.99999Z",fill:g?"#fff":"#2D87F3"})),onClick:h},s),!p&&d&&e.createElement(N,{onClick:()=>T()&&u&&u(E),className:"survey-next-button",size:"lg",isDisabled:m||j},d," ",b?void 0:e.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e.createElement("path",{d:"M3.80322 5.19994L0.937465 2.33419C0.626965 2.02369 0.626965 1.51969 0.937465 1.20919C1.24796 0.898693 1.75196 0.898693 2.06246 1.20919L5.52297 4.66969C5.81622 4.96294 5.81622 5.43769 5.52297 5.73019L2.06246 9.19069C1.75196 9.50119 1.24796 9.50119 0.937465 9.19069C0.626965 8.88019 0.626965 8.37619 0.937465 8.06569L3.80322 5.19994Z",fill:"#ffffff"}))))))},lt=200,st=k.div``,dt=k.div`
|
|
1210
1206
|
width: 100vw;
|
|
1211
1207
|
height: 100vh;
|
|
1212
1208
|
position: fixed;
|
|
1213
1209
|
bottom: 0;
|
|
1214
1210
|
right: 0;
|
|
1215
|
-
background-color: ${
|
|
1211
|
+
background-color: ${D.colors.white};
|
|
1216
1212
|
opacity: 0.83;
|
|
1217
1213
|
transition: display ${lt}ms linear;
|
|
1218
1214
|
|
|
1219
1215
|
[data-floatmenu-open='true'] & {
|
|
1220
|
-
animation: showBackgroundPanel ${lt}ms linear 0s normal
|
|
1216
|
+
animation: showBackgroundPanel ${lt}ms linear 0s normal
|
|
1217
|
+
forwards;
|
|
1221
1218
|
}
|
|
1222
1219
|
|
|
1223
1220
|
[data-floatmenu-open='false'] & {
|
|
1224
|
-
animation: hideBackgroundPanel ${lt}ms linear 0s normal
|
|
1221
|
+
animation: hideBackgroundPanel ${lt}ms linear 0s normal
|
|
1222
|
+
forwards;
|
|
1225
1223
|
}
|
|
1226
1224
|
|
|
1227
1225
|
@keyframes showBackgroundPanel {
|
|
@@ -1250,11 +1248,11 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1250
1248
|
height: 0;
|
|
1251
1249
|
}
|
|
1252
1250
|
}
|
|
1253
|
-
`,ct=
|
|
1251
|
+
`,ct=k.div`
|
|
1254
1252
|
position: fixed;
|
|
1255
1253
|
right: 16px;
|
|
1256
1254
|
bottom: 40px;
|
|
1257
|
-
`,pt=
|
|
1255
|
+
`,pt=k.div`
|
|
1258
1256
|
display: flex;
|
|
1259
1257
|
flex-direction: column;
|
|
1260
1258
|
gap: 16px;
|
|
@@ -1277,7 +1275,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1277
1275
|
bottom: 46px;
|
|
1278
1276
|
right: 36px;
|
|
1279
1277
|
}
|
|
1280
|
-
`,mt=
|
|
1278
|
+
`,mt=k.div`
|
|
1281
1279
|
border-radius: 50%;
|
|
1282
1280
|
width: 56px;
|
|
1283
1281
|
height: 56px;
|
|
@@ -1287,9 +1285,9 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1287
1285
|
transition: all 0.1s linear;
|
|
1288
1286
|
-webkit-tap-highlight-color: transparent;
|
|
1289
1287
|
[data-site-type='hb'] & {
|
|
1290
|
-
background-color: ${
|
|
1288
|
+
background-color: ${D.colors.primaryBase};
|
|
1291
1289
|
&:hover {
|
|
1292
|
-
background-color: ${
|
|
1290
|
+
background-color: ${D.colors.primaryHover};
|
|
1293
1291
|
}
|
|
1294
1292
|
}
|
|
1295
1293
|
[data-site-type='mb'] & {
|
|
@@ -1303,7 +1301,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1303
1301
|
content: '';
|
|
1304
1302
|
width: 2px;
|
|
1305
1303
|
height: 20px;
|
|
1306
|
-
background-color: ${
|
|
1304
|
+
background-color: ${D.colors.white};
|
|
1307
1305
|
border-radius: 2px;
|
|
1308
1306
|
position: absolute;
|
|
1309
1307
|
top: 50%;
|
|
@@ -1315,7 +1313,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1315
1313
|
content: '';
|
|
1316
1314
|
width: 20px;
|
|
1317
1315
|
height: 2px;
|
|
1318
|
-
background-color: ${
|
|
1316
|
+
background-color: ${D.colors.white};
|
|
1319
1317
|
border-radius: 2px;
|
|
1320
1318
|
position: absolute;
|
|
1321
1319
|
top: 50%;
|
|
@@ -1366,7 +1364,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1366
1364
|
transform: translate(-50%, -50%) rotateZ(0deg);
|
|
1367
1365
|
}
|
|
1368
1366
|
}
|
|
1369
|
-
`,
|
|
1367
|
+
`,gt=k.div`
|
|
1370
1368
|
display: flex;
|
|
1371
1369
|
gap: 8px;
|
|
1372
1370
|
align-items: center;
|
|
@@ -1432,7 +1430,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1432
1430
|
opacity: 0;
|
|
1433
1431
|
}
|
|
1434
1432
|
}
|
|
1435
|
-
`,
|
|
1433
|
+
`,ht=k.div`
|
|
1436
1434
|
font-size: 14px;
|
|
1437
1435
|
|
|
1438
1436
|
// zoom
|
|
@@ -1459,15 +1457,16 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1459
1457
|
[data-animation-type='slide'][data-floatmenu-open='false'] & {
|
|
1460
1458
|
opacity: 0;
|
|
1461
1459
|
}
|
|
1462
|
-
`,ut=
|
|
1460
|
+
`,ut=k.div`
|
|
1463
1461
|
border-radius: 50%;
|
|
1464
|
-
box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 8px rgba(0, 0, 0, 0.04),
|
|
1462
|
+
box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 8px rgba(0, 0, 0, 0.04),
|
|
1463
|
+
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
1465
1464
|
width: 48px;
|
|
1466
1465
|
height: 48px;
|
|
1467
1466
|
display: flex;
|
|
1468
1467
|
align-items: center;
|
|
1469
1468
|
justify-content: center;
|
|
1470
|
-
background-color: ${
|
|
1469
|
+
background-color: ${D.colors.white};
|
|
1471
1470
|
|
|
1472
1471
|
// zoom
|
|
1473
1472
|
[data-animation-type='zoom'] & {
|
|
@@ -1487,21 +1486,21 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1487
1486
|
height: 24px;
|
|
1488
1487
|
object-fit: contain;
|
|
1489
1488
|
}
|
|
1490
|
-
`,bt=
|
|
1489
|
+
`,bt=k.div`
|
|
1491
1490
|
padding: 16px;
|
|
1492
1491
|
width: 375px;
|
|
1493
1492
|
word-wrap: break-word;
|
|
1494
1493
|
word-break: break-word;
|
|
1495
|
-
${
|
|
1494
|
+
${w.mbDown} {
|
|
1496
1495
|
width: 100%;
|
|
1497
1496
|
}
|
|
1498
1497
|
&[data-theme='helloSites'] {
|
|
1499
|
-
background: ${
|
|
1498
|
+
background: ${D.colors.secondaryBase};
|
|
1500
1499
|
box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.1);
|
|
1501
1500
|
}
|
|
1502
1501
|
&[data-theme='marryBaby'] {
|
|
1503
1502
|
border: none;
|
|
1504
|
-
background: ${
|
|
1503
|
+
background: ${D.mbColors.pink};
|
|
1505
1504
|
border-radius: 12px 12px 0 0;
|
|
1506
1505
|
}
|
|
1507
1506
|
&[data-is-open='false'] {
|
|
@@ -1512,15 +1511,15 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1512
1511
|
z-index: 1000;
|
|
1513
1512
|
bottom: 0;
|
|
1514
1513
|
right: 0;
|
|
1515
|
-
${
|
|
1514
|
+
${w.mbDown} {
|
|
1516
1515
|
left: 0;
|
|
1517
1516
|
right: unset;
|
|
1518
1517
|
}
|
|
1519
1518
|
}
|
|
1520
|
-
`,xt=
|
|
1519
|
+
`,xt=k.p`
|
|
1521
1520
|
position: relative;
|
|
1522
1521
|
padding-left: 24px;
|
|
1523
|
-
color: ${
|
|
1522
|
+
color: ${D.colors.white};
|
|
1524
1523
|
font-size: 14px;
|
|
1525
1524
|
font-weight: 600;
|
|
1526
1525
|
line-height: 22px;
|
|
@@ -1536,39 +1535,39 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1536
1535
|
content: url("data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.00001 1.33331C4.32001 1.33331 1.33334 4.31998 1.33334 7.99998C1.33334 11.68 4.32001 14.6666 8.00001 14.6666C11.68 14.6666 14.6667 11.68 14.6667 7.99998C14.6667 4.31998 11.68 1.33331 8.00001 1.33331ZM8.00001 11.3333C7.63334 11.3333 7.33334 11.0333 7.33334 10.6666V7.99998C7.33334 7.63331 7.63334 7.33331 8.00001 7.33331C8.36668 7.33331 8.66668 7.63331 8.66668 7.99998V10.6666C8.66668 11.0333 8.36668 11.3333 8.00001 11.3333ZM7.33334 5.99998H8.66668V4.66665H7.33334V5.99998Z' fill='white'/%3e%3c/svg%3e");
|
|
1537
1536
|
}
|
|
1538
1537
|
}
|
|
1539
|
-
`,ft=
|
|
1538
|
+
`,ft=k.p`
|
|
1540
1539
|
margin-top: 2px;
|
|
1541
|
-
color: ${
|
|
1540
|
+
color: ${D.colors.white};
|
|
1542
1541
|
font-size: 12px;
|
|
1543
1542
|
font-weight: 400;
|
|
1544
1543
|
line-height: 18px;
|
|
1545
1544
|
a {
|
|
1546
|
-
color: ${
|
|
1545
|
+
color: ${D.colors.white};
|
|
1547
1546
|
text-decoration: none;
|
|
1548
1547
|
text-decoration-line: underline;
|
|
1549
1548
|
}
|
|
1550
|
-
`,yt=
|
|
1549
|
+
`,yt=k.div`
|
|
1551
1550
|
display: flex;
|
|
1552
1551
|
align-items: center;
|
|
1553
1552
|
margin-top: 8px;
|
|
1554
1553
|
gap: 16px;
|
|
1555
|
-
`,vt=
|
|
1554
|
+
`,vt=k.div`
|
|
1556
1555
|
padding: 7px 28px;
|
|
1557
|
-
background: ${
|
|
1558
|
-
border-radius: ${
|
|
1559
|
-
color: ${
|
|
1556
|
+
background: ${D.colors.white};
|
|
1557
|
+
border-radius: ${D.borderRadius};
|
|
1558
|
+
color: ${D.colors.secondaryBase};
|
|
1560
1559
|
cursor: pointer;
|
|
1561
1560
|
font-size: 12px;
|
|
1562
1561
|
font-weight: 600;
|
|
1563
1562
|
line-height: 18px;
|
|
1564
|
-
`,wt=
|
|
1565
|
-
color: ${
|
|
1563
|
+
`,wt=k.a`
|
|
1564
|
+
color: ${D.colors.white};
|
|
1566
1565
|
font-size: 12px;
|
|
1567
1566
|
font-weight: 600;
|
|
1568
1567
|
line-height: 22px;
|
|
1569
1568
|
text-decoration: none;
|
|
1570
1569
|
text-decoration-line: underline;
|
|
1571
|
-
`,kt=
|
|
1570
|
+
`,kt=E`
|
|
1572
1571
|
from {
|
|
1573
1572
|
transform: translateY(100%);
|
|
1574
1573
|
visibility: visible;
|
|
@@ -1577,7 +1576,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1577
1576
|
to {
|
|
1578
1577
|
transform: translateY(0);
|
|
1579
1578
|
}
|
|
1580
|
-
`,Et=
|
|
1579
|
+
`,Et=E`
|
|
1581
1580
|
from {
|
|
1582
1581
|
transform: translate(0, 0);
|
|
1583
1582
|
}
|
|
@@ -1586,7 +1585,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1586
1585
|
visibility: hidden;
|
|
1587
1586
|
transform: translate(0, 100%);
|
|
1588
1587
|
}
|
|
1589
|
-
`,$t=
|
|
1588
|
+
`,$t=k.div`
|
|
1590
1589
|
cursor: pointer;
|
|
1591
1590
|
display: flex;
|
|
1592
1591
|
flex-direction: column;
|
|
@@ -1598,13 +1597,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1598
1597
|
font-weight: 500;
|
|
1599
1598
|
font-size: 10px;
|
|
1600
1599
|
line-height: 16px;
|
|
1601
|
-
color: ${
|
|
1600
|
+
color: ${D.colors.gray600};
|
|
1602
1601
|
overflow: hidden;
|
|
1603
1602
|
text-overflow: ellipsis;
|
|
1604
1603
|
white-space: nowrap;
|
|
1605
1604
|
width: 60px;
|
|
1606
1605
|
text-align: center;
|
|
1607
|
-
${
|
|
1606
|
+
${w.mbDown} {
|
|
1608
1607
|
max-width: 60px;
|
|
1609
1608
|
}
|
|
1610
1609
|
}
|
|
@@ -1635,7 +1634,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1635
1634
|
min-width: 152px;
|
|
1636
1635
|
height: 32px;
|
|
1637
1636
|
/* Neutral/Neutral-50 */
|
|
1638
|
-
background: ${
|
|
1637
|
+
background: ${D.colors.primary50};
|
|
1639
1638
|
border-radius: 20px;
|
|
1640
1639
|
flex-grow: 1;
|
|
1641
1640
|
.mobile-navigation-icon {
|
|
@@ -1646,20 +1645,20 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1646
1645
|
}
|
|
1647
1646
|
.mobile-navigation-label {
|
|
1648
1647
|
max-width: max-content;
|
|
1649
|
-
color: ${
|
|
1648
|
+
color: ${D.colors.primaryBase};
|
|
1650
1649
|
}
|
|
1651
1650
|
}
|
|
1652
1651
|
|
|
1653
1652
|
&[data-is-active='true'] {
|
|
1654
1653
|
.mobile-navigation-label {
|
|
1655
|
-
color: ${
|
|
1654
|
+
color: ${D.colors.primaryBase};
|
|
1656
1655
|
}
|
|
1657
1656
|
}
|
|
1658
1657
|
|
|
1659
1658
|
&[data-is-disabled='true'] {
|
|
1660
1659
|
opacity: 0.2;
|
|
1661
1660
|
}
|
|
1662
|
-
`,Dt=
|
|
1661
|
+
`,Dt=k.div`
|
|
1663
1662
|
z-index: 100;
|
|
1664
1663
|
position: fixed;
|
|
1665
1664
|
bottom: 0;
|
|
@@ -1672,7 +1671,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1672
1671
|
height: 100%;
|
|
1673
1672
|
align-items: center;
|
|
1674
1673
|
justify-content: space-evenly;
|
|
1675
|
-
background-color: ${
|
|
1674
|
+
background-color: ${D.colors.white};
|
|
1676
1675
|
@supports (padding-bottom: env(safe-area-inset-bottom)) {
|
|
1677
1676
|
min-height: calc(56px + env(safe-area-inset-bottom));
|
|
1678
1677
|
max-height: calc(56px + env(safe-area-inset-bottom));
|
|
@@ -1700,13 +1699,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1700
1699
|
flex: 0;
|
|
1701
1700
|
}
|
|
1702
1701
|
}
|
|
1703
|
-
`,Ct=
|
|
1702
|
+
`,Ct=k.span`
|
|
1704
1703
|
position: absolute;
|
|
1705
1704
|
left: 100%;
|
|
1706
1705
|
transform: translate(-10px, calc(-50% + 3px));
|
|
1707
|
-
background-color: ${
|
|
1706
|
+
background-color: ${D.colors.green800};
|
|
1708
1707
|
border-radius: 32px;
|
|
1709
|
-
border: 2px solid ${
|
|
1708
|
+
border: 2px solid ${D.colors.white};
|
|
1710
1709
|
padding: 1px 4px;
|
|
1711
1710
|
display: flex;
|
|
1712
1711
|
flex-direction: column;
|
|
@@ -1718,18 +1717,18 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1718
1717
|
left: 0;
|
|
1719
1718
|
transform: translate(22px, -50%);
|
|
1720
1719
|
}
|
|
1721
|
-
`;
|
|
1720
|
+
`;k.div`
|
|
1722
1721
|
position: absolute;
|
|
1723
1722
|
top: 0;
|
|
1724
1723
|
left: 0;
|
|
1725
1724
|
height: 3px;
|
|
1726
|
-
background-color: ${
|
|
1725
|
+
background-color: ${D.colors.primaryBase};
|
|
1727
1726
|
transition: width 150ms linear;
|
|
1728
|
-
`,
|
|
1727
|
+
`,k.div`
|
|
1729
1728
|
a {
|
|
1730
1729
|
text-decoration: none;
|
|
1731
1730
|
}
|
|
1732
|
-
`;const zt=t=>{var{badgeAmount:a,disabled:i=!1,hasBadge:o=!1,icon:r,isActive:n=!1,isSpecial:l=!1,label:s}=t,d=
|
|
1731
|
+
`;const zt=t=>{var{badgeAmount:a,disabled:i=!1,hasBadge:o=!1,icon:r,isActive:n=!1,isSpecial:l=!1,label:s}=t,d=_(t,["badgeAmount","disabled","hasBadge","icon","isActive","isSpecial","label"]);return e.createElement($t,Object.assign({"data-is-special":l,"data-is-active":n,"data-is-disabled":i},d),e.createElement("div",{className:"mobile-navigation-icon","data-no-label":!Boolean(s)},o&&e.createElement(Ct,{"data-no-label":!Boolean(s)},e.createElement(c,{size:"s5",weight:"semiBold",color:l?D.colors.primaryBase:D.colors.white},a)),r),s&&e.createElement("span",{className:"mobile-navigation-label"},s))},Bt=t=>{var{children:a,on:i="",isCollapsed:o=!1,template:r="homepage"}=t,n=_(t,["children","on","isCollapsed","template"]);return e.createElement(Dt,Object.assign({on:i,"data-is-collapsed":o,"data-template":r},n),a)};Bt.Icon=zt;const Pt="hhgcomp-toolbanner-wrapper",Nt=I(k.div`
|
|
1733
1732
|
position: relative;
|
|
1734
1733
|
width: 100%;
|
|
1735
1734
|
height: 100%;
|
|
@@ -1745,9 +1744,9 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1745
1744
|
border-top-right-radius: 16px;
|
|
1746
1745
|
}
|
|
1747
1746
|
}
|
|
1748
|
-
`,Pt),jt=
|
|
1747
|
+
`,Pt),jt=k.div`
|
|
1749
1748
|
width: 100%;
|
|
1750
|
-
${
|
|
1749
|
+
${w.mbDown} {
|
|
1751
1750
|
padding-bottom: 24px;
|
|
1752
1751
|
}
|
|
1753
1752
|
|
|
@@ -1760,18 +1759,18 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1760
1759
|
a {
|
|
1761
1760
|
text-decoration: underline;
|
|
1762
1761
|
}
|
|
1763
|
-
${
|
|
1762
|
+
${w.mbDown} {
|
|
1764
1763
|
padding-bottom: 0;
|
|
1765
1764
|
}
|
|
1766
1765
|
}
|
|
1767
1766
|
|
|
1768
|
-
${
|
|
1767
|
+
${w.tdDown} {
|
|
1769
1768
|
height: auto;
|
|
1770
1769
|
.${Pt} {
|
|
1771
1770
|
.${"hhgcomp-toolbanner-inner"} {
|
|
1772
1771
|
display: flex;
|
|
1773
1772
|
align-items: center;
|
|
1774
|
-
${
|
|
1773
|
+
${w.mbDown} {
|
|
1775
1774
|
justify-content: space-between;
|
|
1776
1775
|
}
|
|
1777
1776
|
.${"hhgcomp-toolbanner-iconcontainer"} {
|
|
@@ -1784,14 +1783,14 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1784
1783
|
min-height: 0;
|
|
1785
1784
|
align-self: flex-end;
|
|
1786
1785
|
margin-bottom: -20px;
|
|
1787
|
-
${
|
|
1786
|
+
${w.mbDown} {
|
|
1788
1787
|
right: unset;
|
|
1789
1788
|
}
|
|
1790
1789
|
}
|
|
1791
1790
|
}
|
|
1792
1791
|
}
|
|
1793
1792
|
}
|
|
1794
|
-
`,St=
|
|
1793
|
+
`,St=k.div`
|
|
1795
1794
|
display: flex;
|
|
1796
1795
|
flex-direction: row;
|
|
1797
1796
|
align-items: center;
|
|
@@ -1799,10 +1798,10 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1799
1798
|
gap: 16px;
|
|
1800
1799
|
width: 100%;
|
|
1801
1800
|
/* background-color: ; */
|
|
1802
|
-
${
|
|
1801
|
+
${w.mbDown} {
|
|
1803
1802
|
padding: 16px 0;
|
|
1804
1803
|
}
|
|
1805
|
-
`,It=
|
|
1804
|
+
`,It=k.div`
|
|
1806
1805
|
background: #ffffff;
|
|
1807
1806
|
border-radius: 16px;
|
|
1808
1807
|
width: 48px;
|
|
@@ -1817,14 +1816,14 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1817
1816
|
max-height: 24px;
|
|
1818
1817
|
transform: translate(-50%, -50%);
|
|
1819
1818
|
}
|
|
1820
|
-
`,Tt=
|
|
1819
|
+
`,Tt=k.div`
|
|
1821
1820
|
display: flex;
|
|
1822
1821
|
align-items: flex-start;
|
|
1823
1822
|
flex-direction: column;
|
|
1824
1823
|
justify-content: space-between;
|
|
1825
1824
|
gap: 0;
|
|
1826
1825
|
width: 100%;
|
|
1827
|
-
`,Mt=
|
|
1826
|
+
`,Mt=k.div`
|
|
1828
1827
|
display: flex;
|
|
1829
1828
|
align-items: flex-start;
|
|
1830
1829
|
font-weight: 400;
|
|
@@ -1849,41 +1848,41 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1849
1848
|
height: 14px;
|
|
1850
1849
|
}
|
|
1851
1850
|
}
|
|
1852
|
-
`,At=({className:t,heading:a,color:i="blue",isMobile:o,bannerUrl:r,bannerUrlLarge:n,bannerColor:l,medicalReview:s={link:"#",reviewer:"",date:""},icon:d,style:m,siteType:
|
|
1853
|
-
border-color: ${
|
|
1854
|
-
background-color: ${
|
|
1851
|
+
`,At=({className:t,heading:a,color:i="blue",isMobile:o,bannerUrl:r,bannerUrlLarge:n,bannerColor:l,medicalReview:s={link:"#",reviewer:"",date:""},icon:d,style:m,siteType:g,isEmbeded:h})=>{var u,v;const{t:w}=p(),k=b(),E=o?r:n||r,$={pink:[8,6]},D=k.colors[i]||k.colors.blue,C=(null==s?void 0:s.reviewer)?e.createElement(c,{size:"label2",color:"#fff",as:"div",className:"embedded-review",sx:{a:{textUnderlineOffset:"2px",color:"#fff",textDecoration:"underline"}}},e.createElement("div",{dangerouslySetInnerHTML:{__html:w("toolPage.toolReviewer",{expert_name:`<a href="${s.link}">${s.reviewer.trim()}</a>`,date:s.date})}})):null;return e.createElement(jt,{"data-is-mobile":o,style:m,"data-site":g},e.createElement(Nt,{className:t,"data-banner-url":E,"data-is-mobile":o,"data-site":g,"data-banner-color":l,"data-is-embedded":h,bgColor:`linear-gradient(71deg, ${null==D?void 0:D[(null===(u=$[i])||void 0===u?void 0:u[0])||7]} -4.07%, ${null==D?void 0:D[(null===(v=$[i])||void 0===v?void 0:v[1])||4]} 90.13%)}`},"marryBaby"===g&&h?e.createElement(St,null,e.createElement(It,null,d),e.createElement(Tt,null,e.createElement(j,{color:"white",tag:"h5",as:"h2"},a),s&&e.createElement(Mt,{"data-is-mobile":o},C))):e.createElement(x,{gap:f(24),align:"center",justify:"space-between",sx:{padding:`${f(13)} ${f(20)}`,gap:f(24)}},e.createElement(y,null,e.createElement(j,{tag:"h5",as:"h2",color:"#fff"},a),s&&e.createElement(c,{size:"n1",as:"div"},C)),e.createElement(x,{justify:"center",align:"center",sx:e=>{var t,a;return{width:f(64),height:f(64),borderRadius:"50%",background:(null===(a=null===(t=e.colors)||void 0===t?void 0:t[i])||void 0===a?void 0:a[0])||e.colors.blue[0],flexShrink:0,img:{maxWidth:f(48),maxHeight:f(48)},[e.fn.smallerThan("sm")]:{width:f(56),height:f(56),img:{maxWidth:f(40),maxHeight:f(40)}}}}},d))))},Ot=k(q)`
|
|
1852
|
+
border-color: ${D.mbColors.lightGray};
|
|
1853
|
+
background-color: ${D.colors.white};
|
|
1855
1854
|
border-radius: 16px;
|
|
1856
1855
|
transition: all 0.2s ease;
|
|
1857
1856
|
&:hover {
|
|
1858
|
-
border-color: ${
|
|
1857
|
+
border-color: ${D.mbColors.pink};
|
|
1859
1858
|
box-shadow: none;
|
|
1860
1859
|
}
|
|
1861
1860
|
|
|
1862
1861
|
& > ul {
|
|
1863
|
-
z-index: ${
|
|
1862
|
+
z-index: ${T.menuSearchPopup};
|
|
1864
1863
|
max-height: 300px;
|
|
1865
1864
|
overflow-y: auto;
|
|
1866
1865
|
}
|
|
1867
1866
|
|
|
1868
|
-
${e=>e.groupedWithLabel
|
|
1867
|
+
${e=>e.groupedWithLabel&&$`
|
|
1869
1868
|
& > div:first-child {
|
|
1870
|
-
color: ${
|
|
1869
|
+
color: ${D.mbColors.midGray};
|
|
1871
1870
|
font-size: 12px;
|
|
1872
1871
|
}
|
|
1873
1872
|
`}
|
|
1874
1873
|
|
|
1875
1874
|
&[data-dropdown-open='true'] {
|
|
1876
|
-
border-color: ${
|
|
1875
|
+
border-color: ${D.mbColors.pink};
|
|
1877
1876
|
}
|
|
1878
|
-
`;
|
|
1877
|
+
`;k(M)`
|
|
1879
1878
|
& input {
|
|
1880
|
-
border-color: ${
|
|
1881
|
-
background-color: ${
|
|
1879
|
+
border-color: ${D.mbColors.lightGray};
|
|
1880
|
+
background-color: ${D.colors.white};
|
|
1882
1881
|
border-radius: 16px;
|
|
1883
1882
|
transition: all 0.2s ease;
|
|
1884
1883
|
&:focus,
|
|
1885
1884
|
&:hover {
|
|
1886
|
-
border-color: ${
|
|
1885
|
+
border-color: ${D.mbColors.pink};
|
|
1887
1886
|
box-shadow: none;
|
|
1888
1887
|
}
|
|
1889
1888
|
}
|
|
@@ -1891,14 +1890,14 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1891
1890
|
& .displayIcon {
|
|
1892
1891
|
pointer-events: none;
|
|
1893
1892
|
}
|
|
1894
|
-
`;const _t=
|
|
1893
|
+
`;const _t=k(O)`
|
|
1895
1894
|
& label {
|
|
1896
1895
|
position: absolute;
|
|
1897
1896
|
z-index: 1;
|
|
1898
1897
|
top: 16px;
|
|
1899
1898
|
|
|
1900
1899
|
left: 16px;
|
|
1901
|
-
color: ${
|
|
1900
|
+
color: ${D.mbColors.midGray};
|
|
1902
1901
|
pointer-events: none;
|
|
1903
1902
|
transition: all 0.2s ease;
|
|
1904
1903
|
white-space: nowrap;
|
|
@@ -1910,47 +1909,47 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1910
1909
|
font-size: 12px;
|
|
1911
1910
|
}
|
|
1912
1911
|
|
|
1913
|
-
${
|
|
1912
|
+
${w.tdDown} {
|
|
1914
1913
|
max-width: 220px;
|
|
1915
1914
|
}
|
|
1916
1915
|
}
|
|
1917
1916
|
& input {
|
|
1918
1917
|
::placeholder {
|
|
1919
|
-
color: ${
|
|
1918
|
+
color: ${D.mbColors.gray};
|
|
1920
1919
|
font-size: 14px;
|
|
1921
1920
|
}
|
|
1922
1921
|
|
|
1923
1922
|
::-webkit-input-placeholder {
|
|
1924
1923
|
/* Chrome/Opera/Safari */
|
|
1925
|
-
color: ${
|
|
1924
|
+
color: ${D.mbColors.gray};
|
|
1926
1925
|
font-size: 14px;
|
|
1927
1926
|
}
|
|
1928
1927
|
::-moz-placeholder {
|
|
1929
1928
|
/* Firefox 19+ */
|
|
1930
|
-
color: ${
|
|
1929
|
+
color: ${D.mbColors.gray};
|
|
1931
1930
|
font-size: 14px;
|
|
1932
1931
|
}
|
|
1933
1932
|
:-ms-input-placeholder {
|
|
1934
1933
|
/* IE 10+ */
|
|
1935
|
-
color: ${
|
|
1934
|
+
color: ${D.mbColors.gray};
|
|
1936
1935
|
font-size: 14px;
|
|
1937
1936
|
}
|
|
1938
1937
|
:-moz-placeholder {
|
|
1939
1938
|
/* Firefox 18- */
|
|
1940
|
-
color: ${
|
|
1939
|
+
color: ${D.mbColors.gray};
|
|
1941
1940
|
font-size: 14px;
|
|
1942
1941
|
}
|
|
1943
1942
|
height: ${e=>"sm"===e.size?48:72}px;
|
|
1944
1943
|
padding-top: 27px;
|
|
1945
|
-
border-color: ${
|
|
1946
|
-
background-color: ${
|
|
1944
|
+
border-color: ${D.mbColors.lightGray};
|
|
1945
|
+
background-color: ${D.colors.white};
|
|
1947
1946
|
border-radius: 16px;
|
|
1948
1947
|
transition: all 0.2s ease;
|
|
1949
1948
|
padding-top: ${e=>e.value?"38px":"27px"};
|
|
1950
1949
|
|
|
1951
1950
|
&:focus,
|
|
1952
1951
|
&:hover {
|
|
1953
|
-
border-color: ${
|
|
1952
|
+
border-color: ${D.mbColors.pink};
|
|
1954
1953
|
box-shadow: none;
|
|
1955
1954
|
}
|
|
1956
1955
|
}
|
|
@@ -1968,25 +1967,25 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1968
1967
|
padding-right: 46px;
|
|
1969
1968
|
}
|
|
1970
1969
|
}
|
|
1971
|
-
`,Lt=
|
|
1970
|
+
`,Lt=k.div`
|
|
1972
1971
|
width: 100%;
|
|
1973
|
-
`,Ut=
|
|
1972
|
+
`,Ut=k.div`
|
|
1974
1973
|
#due-date-dropdown {
|
|
1975
1974
|
z-index: 9;
|
|
1976
1975
|
width: 100%;
|
|
1977
1976
|
min-width: unset;
|
|
1978
1977
|
max-width: unset;
|
|
1979
1978
|
|
|
1980
|
-
${
|
|
1979
|
+
${w.mbDown} {
|
|
1981
1980
|
font-size: 14px;
|
|
1982
1981
|
}
|
|
1983
|
-
${
|
|
1982
|
+
${w.tdUp} {
|
|
1984
1983
|
font-size: 16px;
|
|
1985
1984
|
&[data-is-side='true'] {
|
|
1986
1985
|
font-size: 14px;
|
|
1987
1986
|
}
|
|
1988
1987
|
}
|
|
1989
|
-
color: ${
|
|
1988
|
+
color: ${D.colors.gray800};
|
|
1990
1989
|
> div {
|
|
1991
1990
|
white-space: nowrap;
|
|
1992
1991
|
overflow: hidden;
|
|
@@ -1996,12 +1995,12 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
1996
1995
|
display: flex;
|
|
1997
1996
|
width: 100%;
|
|
1998
1997
|
justify-content: space-between;
|
|
1999
|
-
`,Ft=
|
|
1998
|
+
`,Ft=k(Lt)`
|
|
2000
1999
|
.due-date-input {
|
|
2001
2000
|
width: 100%;
|
|
2002
2001
|
min-width: unset;
|
|
2003
2002
|
max-width: unset;
|
|
2004
|
-
color: ${
|
|
2003
|
+
color: ${D.colors.gray800};
|
|
2005
2004
|
}
|
|
2006
2005
|
.due-date-calculate-button {
|
|
2007
2006
|
margin-right: auto;
|
|
@@ -2009,46 +2008,45 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2009
2008
|
}
|
|
2010
2009
|
input {
|
|
2011
2010
|
&[data-is-side='true'] {
|
|
2012
|
-
${
|
|
2011
|
+
${w.tdUp} {
|
|
2013
2012
|
font-size: 14px;
|
|
2014
2013
|
}
|
|
2015
2014
|
}
|
|
2016
|
-
${
|
|
2015
|
+
${w.mbDown} {
|
|
2017
2016
|
font-size: 14px;
|
|
2018
2017
|
}
|
|
2019
|
-
${
|
|
2018
|
+
${w.tdUp} {
|
|
2020
2019
|
font-size: 16px;
|
|
2021
2020
|
}
|
|
2022
2021
|
}
|
|
2023
|
-
`;
|
|
2022
|
+
`;k.div`
|
|
2024
2023
|
display: flex;
|
|
2025
2024
|
align-items: right;
|
|
2026
2025
|
|
|
2027
2026
|
& > p {
|
|
2028
2027
|
display: inline-block;
|
|
2029
|
-
border-bottom: solid 1px
|
|
2030
|
-
${e=>e.theme.colors.primaryBase};
|
|
2028
|
+
border-bottom: solid 1px ${D.colors.primaryBase};
|
|
2031
2029
|
margin-bottom: 24px;
|
|
2032
2030
|
margin-left: auto;
|
|
2033
|
-
color: ${
|
|
2031
|
+
color: ${D.colors.primaryBase};
|
|
2034
2032
|
cursor: pointer;
|
|
2035
2033
|
font-size: 11px;
|
|
2036
2034
|
line-height: 16px;
|
|
2037
2035
|
text-align: right;
|
|
2038
2036
|
}
|
|
2039
|
-
`;var Ht;
|
|
2037
|
+
`;var Ht;k(k.img`
|
|
2040
2038
|
img& {
|
|
2041
2039
|
width: 16px;
|
|
2042
2040
|
height: 16px;
|
|
2043
2041
|
}
|
|
2044
2042
|
`)`
|
|
2045
2043
|
margin-right: 4px;
|
|
2046
|
-
`,function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF"}(Ht||(Ht={}));const Rt="yyyy-MM-dd",Gt=(e,t)=>{const a=t-21+272,i=new Date(e);return i.setDate(i.getDate()+a),{startDate:e,dueDate:i,otherInfo:{method:Ht.lastPeriod+1,first_day:Y(e,Rt),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}},Wt=e=>{const t=new Date(e);return t.setDate(t.getDate()+265),{startDate:e,dueDate:t,otherInfo:{method:Ht.conception+1,conception_date:Y(e,Rt),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}},Vt=(e,t)=>{const a=new Date(e);return a.setDate(a.getDate()+265-t),{startDate:e,dueDate:a,otherInfo:{method:Ht.IVF+1,ivf_transfer_date:Y(e,Rt),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}},qt=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,Yt=
|
|
2044
|
+
`,function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF"}(Ht||(Ht={}));const Rt="yyyy-MM-dd",Gt=(e,t)=>{const a=t-21+272,i=new Date(e);return i.setDate(i.getDate()+a),{startDate:e,dueDate:i,otherInfo:{method:Ht.lastPeriod+1,first_day:Y(e,Rt),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}},Wt=e=>{const t=new Date(e);return t.setDate(t.getDate()+265),{startDate:e,dueDate:t,otherInfo:{method:Ht.conception+1,conception_date:Y(e,Rt),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}},Vt=(e,t)=>{const a=new Date(e);return a.setDate(a.getDate()+265-t),{startDate:e,dueDate:a,otherInfo:{method:Ht.IVF+1,ivf_transfer_date:Y(e,Rt),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}},qt=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,Yt=k.div`
|
|
2047
2045
|
&[data-is-side='true'] {
|
|
2048
2046
|
width: 100%;
|
|
2049
2047
|
margin-bottom: 0;
|
|
2050
2048
|
}
|
|
2051
|
-
${
|
|
2049
|
+
${w.mbDown} {
|
|
2052
2050
|
width: 100%;
|
|
2053
2051
|
margin-bottom: 0;
|
|
2054
2052
|
}
|
|
@@ -2067,13 +2065,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2067
2065
|
& > div {
|
|
2068
2066
|
width: calc(50% - 8px);
|
|
2069
2067
|
|
|
2070
|
-
${
|
|
2068
|
+
${w.mbUp} {
|
|
2071
2069
|
max-width: 186px;
|
|
2072
2070
|
justify-self: left;
|
|
2073
2071
|
}
|
|
2074
2072
|
}
|
|
2075
2073
|
}
|
|
2076
|
-
`,Zt=
|
|
2074
|
+
`,Zt=k.div`
|
|
2077
2075
|
margin-bottom: 20px;
|
|
2078
2076
|
width: 100%;
|
|
2079
2077
|
|
|
@@ -2085,18 +2083,18 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2085
2083
|
width: calc(50% - 8px);
|
|
2086
2084
|
}
|
|
2087
2085
|
}
|
|
2088
|
-
`,Xt=
|
|
2086
|
+
`,Xt=k.div`
|
|
2089
2087
|
width: 100%;
|
|
2090
2088
|
display: flex;
|
|
2091
2089
|
justify-content: center;
|
|
2092
|
-
${
|
|
2090
|
+
${w.mbUp} {
|
|
2093
2091
|
padding: 0 16px;
|
|
2094
2092
|
&[data-is-side='true'] {
|
|
2095
2093
|
margin-top: 24px;
|
|
2096
2094
|
}
|
|
2097
2095
|
}
|
|
2098
2096
|
|
|
2099
|
-
${
|
|
2097
|
+
${w.mbDown} {
|
|
2100
2098
|
margin-top: 24px;
|
|
2101
2099
|
&[data-site='marryBaby'] {
|
|
2102
2100
|
margin-top: 12px;
|
|
@@ -2109,11 +2107,11 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2109
2107
|
button {
|
|
2110
2108
|
width: 100%;
|
|
2111
2109
|
margin: auto;
|
|
2112
|
-
${
|
|
2110
|
+
${w.mbUp} {
|
|
2113
2111
|
max-width: 200px;
|
|
2114
2112
|
}
|
|
2115
2113
|
}
|
|
2116
|
-
`,Jt=
|
|
2114
|
+
`,Jt=k.div`
|
|
2117
2115
|
width: 100%;
|
|
2118
2116
|
display: flex;
|
|
2119
2117
|
flex-wrap: wrap;
|
|
@@ -2123,13 +2121,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2123
2121
|
flex-direction: column;
|
|
2124
2122
|
}
|
|
2125
2123
|
|
|
2126
|
-
${
|
|
2124
|
+
${w.mbDown} {
|
|
2127
2125
|
flex-direction: column;
|
|
2128
2126
|
.input-section {
|
|
2129
2127
|
width: 100%;
|
|
2130
2128
|
}
|
|
2131
2129
|
}
|
|
2132
|
-
`,Kt=
|
|
2130
|
+
`,Kt=k.div`
|
|
2133
2131
|
position: relative;
|
|
2134
2132
|
width: calc(50% - 8px);
|
|
2135
2133
|
|
|
@@ -2138,7 +2136,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2138
2136
|
margin-bottom: 9px;
|
|
2139
2137
|
}
|
|
2140
2138
|
}
|
|
2141
|
-
${
|
|
2139
|
+
${w.mbDown} {
|
|
2142
2140
|
.label {
|
|
2143
2141
|
margin-bottom: 9px;
|
|
2144
2142
|
}
|
|
@@ -2149,18 +2147,18 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2149
2147
|
width: 100%;
|
|
2150
2148
|
min-width: unset;
|
|
2151
2149
|
max-width: unset;
|
|
2152
|
-
color: ${
|
|
2150
|
+
color: ${D.colors.gray800};
|
|
2153
2151
|
& > ul {
|
|
2154
2152
|
z-index: 1;
|
|
2155
2153
|
max-height: 300px;
|
|
2156
2154
|
overflow-y: scroll;
|
|
2157
2155
|
}
|
|
2158
2156
|
}
|
|
2159
|
-
`,Qt=
|
|
2157
|
+
`,Qt=k.div`
|
|
2160
2158
|
margin-bottom: 24px;
|
|
2161
2159
|
width: 100%;
|
|
2162
2160
|
|
|
2163
|
-
${
|
|
2161
|
+
${w.mbUp} {
|
|
2164
2162
|
padding: 0 16px;
|
|
2165
2163
|
}
|
|
2166
2164
|
.card {
|
|
@@ -2180,13 +2178,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2180
2178
|
}
|
|
2181
2179
|
|
|
2182
2180
|
& > div {
|
|
2183
|
-
${
|
|
2181
|
+
${w.mbUp} {
|
|
2184
2182
|
width: calc(18% - 4px);
|
|
2185
2183
|
max-width: 186px;
|
|
2186
2184
|
justify-self: left;
|
|
2187
2185
|
}
|
|
2188
2186
|
|
|
2189
|
-
${
|
|
2187
|
+
${w.mbDown} {
|
|
2190
2188
|
width: calc(31% - 8px);
|
|
2191
2189
|
max-width: 109px;
|
|
2192
2190
|
justify-self: left;
|
|
@@ -2206,27 +2204,27 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2206
2204
|
padding-top: 8px;
|
|
2207
2205
|
padding-bottom: 16px;
|
|
2208
2206
|
}
|
|
2209
|
-
`,ea="hhgcomp-embedtoolcard-content",ta=
|
|
2207
|
+
`,ea="hhgcomp-embedtoolcard-content",ta=I(k.form`
|
|
2210
2208
|
margin: auto;
|
|
2211
|
-
${
|
|
2209
|
+
${w.mbUp} {
|
|
2212
2210
|
width: 100%;
|
|
2213
2211
|
padding: 20px;
|
|
2214
2212
|
display: flex;
|
|
2215
2213
|
justify-content: space-between;
|
|
2216
2214
|
flex-wrap: wrap;
|
|
2217
2215
|
}
|
|
2218
|
-
${
|
|
2216
|
+
${w.mbDown} {
|
|
2219
2217
|
padding: 16px;
|
|
2220
2218
|
}
|
|
2221
2219
|
.due-date-calculate-button {
|
|
2222
2220
|
width: 100%;
|
|
2223
2221
|
margin: 12px auto 0;
|
|
2224
|
-
${
|
|
2222
|
+
${w.mbUp} {
|
|
2225
2223
|
max-width: 200px;
|
|
2226
2224
|
}
|
|
2227
2225
|
}
|
|
2228
2226
|
&[data-is-side='true'] {
|
|
2229
|
-
${
|
|
2227
|
+
${w.mbUp} {
|
|
2230
2228
|
padding: 24px 40px 0px 40px;
|
|
2231
2229
|
}
|
|
2232
2230
|
}
|
|
@@ -2239,17 +2237,17 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2239
2237
|
.input-form {
|
|
2240
2238
|
display: flex;
|
|
2241
2239
|
|
|
2242
|
-
${
|
|
2240
|
+
${w.mbUp} {
|
|
2243
2241
|
margin-bottom: 24px;
|
|
2244
2242
|
width: calc(50% - 8px);
|
|
2245
2243
|
}
|
|
2246
2244
|
&[data-is-side='true'] {
|
|
2247
|
-
${
|
|
2245
|
+
${w.mbUp} {
|
|
2248
2246
|
margin-bottom: 8px;
|
|
2249
2247
|
width: 100%;
|
|
2250
2248
|
}
|
|
2251
2249
|
}
|
|
2252
|
-
${
|
|
2250
|
+
${w.mbDown} {
|
|
2253
2251
|
margin-bottom: 8px;
|
|
2254
2252
|
}
|
|
2255
2253
|
.label-text {
|
|
@@ -2264,15 +2262,15 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2264
2262
|
display: flex;
|
|
2265
2263
|
width: calc(50% - 8px);
|
|
2266
2264
|
|
|
2267
|
-
${
|
|
2265
|
+
${w.mbUp} {
|
|
2268
2266
|
margin-bottom: 24px;
|
|
2269
2267
|
}
|
|
2270
2268
|
&[data-is-side='true'] {
|
|
2271
|
-
${
|
|
2269
|
+
${w.mbUp} {
|
|
2272
2270
|
margin-bottom: 8px;
|
|
2273
2271
|
}
|
|
2274
2272
|
}
|
|
2275
|
-
${
|
|
2273
|
+
${w.mbDown} {
|
|
2276
2274
|
margin-bottom: 8px;
|
|
2277
2275
|
width: 100%;
|
|
2278
2276
|
}
|
|
@@ -2286,29 +2284,29 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2286
2284
|
}
|
|
2287
2285
|
.day-slider {
|
|
2288
2286
|
width: 100%;
|
|
2289
|
-
${
|
|
2287
|
+
${w.mbUp} {
|
|
2290
2288
|
width: calc(50% - 8px);
|
|
2291
2289
|
&[data-is-side='true'] {
|
|
2292
2290
|
width: 100%;
|
|
2293
2291
|
}
|
|
2294
2292
|
}
|
|
2295
2293
|
}
|
|
2296
|
-
`,ea),aa=
|
|
2294
|
+
`,ea),aa=k.div`
|
|
2297
2295
|
padding: 0;
|
|
2298
2296
|
background-color: white;
|
|
2299
2297
|
border: 1px solid #e4e8ec;
|
|
2300
2298
|
border-radius: 4px;
|
|
2301
2299
|
|
|
2302
2300
|
&[data-site='marryBaby'] {
|
|
2303
|
-
background-color: ${
|
|
2301
|
+
background-color: ${D.mbColors.green};
|
|
2304
2302
|
border-radius: 16px;
|
|
2305
2303
|
}
|
|
2306
2304
|
.due-date-cal {
|
|
2307
2305
|
.${ea} {
|
|
2308
|
-
${
|
|
2306
|
+
${w.mbUp} {
|
|
2309
2307
|
padding: 24px;
|
|
2310
2308
|
}
|
|
2311
|
-
${
|
|
2309
|
+
${w.mbDown} {
|
|
2312
2310
|
padding: 16px;
|
|
2313
2311
|
}
|
|
2314
2312
|
}
|
|
@@ -2336,17 +2334,17 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2336
2334
|
}
|
|
2337
2335
|
.input-form {
|
|
2338
2336
|
display: flex;
|
|
2339
|
-
${
|
|
2337
|
+
${w.mbUp} {
|
|
2340
2338
|
width: calc(50% - 8px);
|
|
2341
2339
|
margin-bottom: 24px;
|
|
2342
2340
|
}
|
|
2343
2341
|
&[data-is-side='true'] {
|
|
2344
|
-
${
|
|
2342
|
+
${w.mbUp} {
|
|
2345
2343
|
margin-bottom: 12px;
|
|
2346
2344
|
width: 100%;
|
|
2347
2345
|
}
|
|
2348
2346
|
}
|
|
2349
|
-
${
|
|
2347
|
+
${w.mbDown} {
|
|
2350
2348
|
margin-bottom: 8px;
|
|
2351
2349
|
}
|
|
2352
2350
|
}
|
|
@@ -2389,7 +2387,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2389
2387
|
}
|
|
2390
2388
|
.input-form {
|
|
2391
2389
|
display: flex;
|
|
2392
|
-
${
|
|
2390
|
+
${w.mbUp} {
|
|
2393
2391
|
width: calc(50% - 8px);
|
|
2394
2392
|
margin-bottom: 24px;
|
|
2395
2393
|
&[data-is-side='true'] {
|
|
@@ -2397,7 +2395,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2397
2395
|
width: 100%;
|
|
2398
2396
|
}
|
|
2399
2397
|
}
|
|
2400
|
-
${
|
|
2398
|
+
${w.mbDown} {
|
|
2401
2399
|
margin-bottom: 8px;
|
|
2402
2400
|
}
|
|
2403
2401
|
}
|
|
@@ -2408,7 +2406,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2408
2406
|
flex-wrap: wrap;
|
|
2409
2407
|
justify-content: space-between;
|
|
2410
2408
|
}
|
|
2411
|
-
${
|
|
2409
|
+
${w.mbDown} {
|
|
2412
2410
|
display: flex;
|
|
2413
2411
|
flex-wrap: wrap;
|
|
2414
2412
|
justify-content: space-between;
|
|
@@ -2417,22 +2415,22 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2417
2415
|
.hide-asking-mobile {
|
|
2418
2416
|
gap: 10px;
|
|
2419
2417
|
&[data-is-side='true'] {
|
|
2420
|
-
${
|
|
2418
|
+
${w.mbUp} {
|
|
2421
2419
|
display: none;
|
|
2422
2420
|
}
|
|
2423
2421
|
}
|
|
2424
|
-
${
|
|
2422
|
+
${w.mbDown} {
|
|
2425
2423
|
display: none;
|
|
2426
2424
|
}
|
|
2427
2425
|
}
|
|
2428
2426
|
.hide-asking-desk {
|
|
2429
2427
|
gap: 10px;
|
|
2430
2428
|
&[data-is-side='true'] {
|
|
2431
|
-
${
|
|
2429
|
+
${w.mbUp} {
|
|
2432
2430
|
display: unset;
|
|
2433
2431
|
}
|
|
2434
2432
|
}
|
|
2435
|
-
${
|
|
2433
|
+
${w.mbUp} {
|
|
2436
2434
|
display: none;
|
|
2437
2435
|
}
|
|
2438
2436
|
}
|
|
@@ -2445,20 +2443,20 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2445
2443
|
background-size: contain;
|
|
2446
2444
|
content: '';
|
|
2447
2445
|
}
|
|
2448
|
-
`,ia=
|
|
2446
|
+
`,ia=k(De)`
|
|
2449
2447
|
&[data-direction='horizontal'] div[data-type='circle'] {
|
|
2450
2448
|
margin-right: 8px;
|
|
2451
2449
|
}
|
|
2452
2450
|
label {
|
|
2453
2451
|
font-size: 14px;
|
|
2454
2452
|
}
|
|
2455
|
-
`,oa=
|
|
2453
|
+
`,oa=k(U)`
|
|
2456
2454
|
margin: 0 auto 24px;
|
|
2457
|
-
${
|
|
2455
|
+
${w.mbUp} {
|
|
2458
2456
|
max-width: 200px;
|
|
2459
2457
|
margin: 24px auto;
|
|
2460
2458
|
}
|
|
2461
|
-
`,ra=
|
|
2459
|
+
`,ra=k(M)`
|
|
2462
2460
|
&.bmi--input {
|
|
2463
2461
|
+ .bmi--input {
|
|
2464
2462
|
margin-top: 24px;
|
|
@@ -2480,7 +2478,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2480
2478
|
width: 100%;
|
|
2481
2479
|
gap: 16px;
|
|
2482
2480
|
> div {
|
|
2483
|
-
${
|
|
2481
|
+
${w.mbDown} {
|
|
2484
2482
|
width: calc(50% - 8px);
|
|
2485
2483
|
}
|
|
2486
2484
|
width: calc(33% - 8px);
|
|
@@ -2496,7 +2494,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2496
2494
|
}
|
|
2497
2495
|
.bmi-side-embed {
|
|
2498
2496
|
> div {
|
|
2499
|
-
${
|
|
2497
|
+
${w.mbUp} {
|
|
2500
2498
|
width: calc(50% - 8px);
|
|
2501
2499
|
}
|
|
2502
2500
|
}
|
|
@@ -2506,7 +2504,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2506
2504
|
}
|
|
2507
2505
|
}
|
|
2508
2506
|
|
|
2509
|
-
${
|
|
2507
|
+
${w.mbDown} {
|
|
2510
2508
|
&.bmi--input {
|
|
2511
2509
|
.bmi--input-radio_gender {
|
|
2512
2510
|
> div {
|
|
@@ -2518,9 +2516,9 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2518
2516
|
}
|
|
2519
2517
|
}
|
|
2520
2518
|
}
|
|
2521
|
-
`,na=
|
|
2519
|
+
`,na=k.div`
|
|
2522
2520
|
width: 100%;
|
|
2523
|
-
`,la=
|
|
2521
|
+
`,la=k.div`
|
|
2524
2522
|
margin-bottom: 1rem;
|
|
2525
2523
|
display: flex;
|
|
2526
2524
|
flex-direction: column;
|
|
@@ -2541,8 +2539,8 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2541
2539
|
font-size: 12px;
|
|
2542
2540
|
}
|
|
2543
2541
|
}
|
|
2544
|
-
`,sa=
|
|
2545
|
-
${
|
|
2542
|
+
`,sa=k.div`
|
|
2543
|
+
${w.mbUp} {
|
|
2546
2544
|
display: flex;
|
|
2547
2545
|
width: 100%;
|
|
2548
2546
|
align-items: flex-start;
|
|
@@ -2552,43 +2550,43 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2552
2550
|
width: 100%;
|
|
2553
2551
|
}
|
|
2554
2552
|
&[data-is-side='true'] {
|
|
2555
|
-
${
|
|
2553
|
+
${w.mbUp} {
|
|
2556
2554
|
display: flex;
|
|
2557
2555
|
flex-direction: column;
|
|
2558
2556
|
gap: 0px;
|
|
2559
2557
|
}
|
|
2560
2558
|
}
|
|
2561
2559
|
}
|
|
2562
|
-
${
|
|
2560
|
+
${w.mbDown} {
|
|
2563
2561
|
display: flex;
|
|
2564
2562
|
flex-direction: column;
|
|
2565
2563
|
gap: 0px;
|
|
2566
2564
|
}
|
|
2567
|
-
`,da=
|
|
2565
|
+
`,da=k.div`
|
|
2568
2566
|
padding-block: 40px;
|
|
2569
2567
|
|
|
2570
2568
|
&[data-theme='marryBaby'] {
|
|
2571
2569
|
padding-block: 0;
|
|
2572
2570
|
padding-top: 12px;
|
|
2573
2571
|
}
|
|
2574
|
-
`,ca=
|
|
2572
|
+
`,ca=k.form`
|
|
2575
2573
|
display: flex;
|
|
2576
2574
|
flex-direction: column;
|
|
2577
2575
|
gap: 16px;
|
|
2578
|
-
`,pa=
|
|
2576
|
+
`,pa=k.div`
|
|
2579
2577
|
display: flex;
|
|
2580
2578
|
flex-direction: column;
|
|
2581
2579
|
gap: 6px;
|
|
2582
2580
|
margin-top: auto;
|
|
2583
2581
|
|
|
2584
2582
|
.error-input input {
|
|
2585
|
-
border: 1px solid ${
|
|
2583
|
+
border: 1px solid ${D.colors.red700};
|
|
2586
2584
|
}
|
|
2587
|
-
`,ma=
|
|
2585
|
+
`,ma=k(V)`
|
|
2588
2586
|
display: inline-flex;
|
|
2589
2587
|
padding-bottom: 6px;
|
|
2590
2588
|
gap: 4px;
|
|
2591
|
-
`,
|
|
2589
|
+
`,ga=k.div`
|
|
2592
2590
|
display: flex;
|
|
2593
2591
|
width: 100%;
|
|
2594
2592
|
align-items: center;
|
|
@@ -2597,26 +2595,26 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2597
2595
|
> div {
|
|
2598
2596
|
width: 100%;
|
|
2599
2597
|
}
|
|
2600
|
-
`,
|
|
2598
|
+
`,ha=(e=0,t=0)=>{try{if(e&&t){const a=Number(t)/Math.pow(Number(e)/100,2);return Number(((e,t=2)=>Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e))(a))}return 0}catch(e){}return 0},ua=k.div`
|
|
2601
2599
|
padding: 36px;
|
|
2602
2600
|
padding-top: 0;
|
|
2603
2601
|
background-color: white;
|
|
2604
|
-
${
|
|
2602
|
+
${w.mbDown} {
|
|
2605
2603
|
padding: 16px;
|
|
2606
2604
|
padding-top: 0;
|
|
2607
2605
|
}
|
|
2608
2606
|
&[data-theme='marryBaby'] {
|
|
2609
|
-
background-color: ${
|
|
2607
|
+
background-color: ${D.mbColors.green};
|
|
2610
2608
|
padding: 24px;
|
|
2611
2609
|
border-bottom-right-radius: 16px;
|
|
2612
2610
|
border-bottom-left-radius: 16px;
|
|
2613
|
-
${
|
|
2611
|
+
${w.mbDown} {
|
|
2614
2612
|
padding: 16px;
|
|
2615
2613
|
}
|
|
2616
2614
|
}
|
|
2617
|
-
`,ba=
|
|
2615
|
+
`,ba=k((({onSubmit:t,onError:a,schema:i,siteType:r})=>{const{t:l}=p(),s="mb"===b().other.template,{control:m,setValue:g,watch:h,handleSubmit:u,formState:{isSubmitted:x}}=H({resolver:F(i),mode:"onSubmit",defaultValues:{name:"",gender:C.Boy,measurementDate:new Date}}),f=h("weight"),y=h("height"),w=h("head"),k=n((()=>x&&!f&&!y&&!w),[x,f,y,w]);o((()=>{const e=ha(y,f);g("bmi",String(e)||"0")}),[f,y]);const E=n((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(da,{"data-theme":r},e.createElement(ca,{onSubmit:u(t,a)},e.createElement(R,{control:m,name:"gender",render:({field:{onChange:t,value:a}})=>e.createElement(G,{onChange:t,value:a,siteType:r})}),"marryBaby"===r?e.createElement(e.Fragment,null,e.createElement(R,{control:m,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(_t,{label:l("babyGrowth.input.birthday"),name:"birthday",size:"md",value:String(a),CustomInput:e.createElement(pe,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:o=>e.createElement(O,Object.assign({onChange:t,className:(null==i?void 0:i.message)?"error-input":"",name:"birthday",size:"md"},o,{value:a&&v(a).format(A)}))}),actionIcon:e.createElement(d.CalendarMB,{size:32})}))}),e.createElement(ga,null,e.createElement(R,{control:m,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(_t,{label:`${l("babyGrowth.height")} ${l("babyGrowth.cm")}`,name:"height",size:"md",value:String(a),CustomInput:e.createElement(O,{className:k||(null==i?void 0:i.message)?"error-input":"",name:"height",size:"md",placeholder:"Nhập thông tin",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),e.createElement(R,{control:m,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(_t,{label:`${l("babyGrowth.weight")} ${l("babyGrowth.kg")}`,name:"weight",size:"md",value:String(a),CustomInput:e.createElement(O,{className:k||(null==i?void 0:i.message)?"error-input":"",name:"weight",size:"md",placeholder:"Nhập thông tin",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))})),e.createElement(ga,null,e.createElement(R,{control:m,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(_t,{label:`${l("babyGrowth.headCircumference")} ${l("babyGrowth.cm")}`,name:"head",size:"md",value:String(a),CustomInput:e.createElement(O,{className:k||(null==i?void 0:i.message)?"error-input":"",name:"head",size:"md",value:String(a),onChange:t,type:"number",placeholder:"Nhập thông tin",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),e.createElement(R,{control:m,name:"bmi",render:({field:{value:t}})=>e.createElement(pa,null,e.createElement(_t,{label:`${l("babyGrowth.input.bmi")} ${l("babyGrowth.kg.m2")}`,name:"date",size:"md",value:String(t),CustomInput:e.createElement(O,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0,style:{color:"#9495A0"}})}))})),e.createElement(R,{control:m,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(_t,{label:l("babyGrowth.input.measurementDate"),name:"date",size:"md",value:qt(a),CustomInput:e.createElement(pe,{placeholder:a&&v(a).format(A),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:o=>e.createElement(O,Object.assign({className:(null==i?void 0:i.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&v(a).format(A),onChange:t},o,{value:a&&v(a).format(A)}))}),actionIcon:e.createElement(d.CalendarMB,{size:32})}))}),e.createElement(U,{size:"lg",type:"submit",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":E},l("babyGrowth.input.submit"))):e.createElement(e.Fragment,null,e.createElement(R,{control:m,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(ma,{size:"label1",htmlFor:"birthday"},e.createElement(c,{as:"label",size:"s4",weight:"semiBold"},l("babyGrowth.input.birthday"))),e.createElement(pe,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:o=>e.createElement(O,Object.assign({onChange:t,className:(null==i?void 0:i.message)?"error-input":"",name:"birthday",size:"md",actionIcon:e.createElement(d.Calendar,null)},o,{value:a&&v(a).format(A)}))}))}),e.createElement(ga,null,e.createElement(R,{control:m,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(ma,{size:"label1",htmlFor:"height"},e.createElement(c,{size:"s4",weight:"semiBold"},l("babyGrowth.height")),e.createElement(c,{as:"span",size:"n1",color:D.colors.gray400},l("babyGrowth.cm"))),e.createElement(O,{className:k||(null==i?void 0:i.message)?"error-input":"",name:"height",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),e.createElement(R,{control:m,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(ma,{size:"label1",htmlFor:"weight"},e.createElement(c,{size:"s4",weight:"semiBold"},l("babyGrowth.weight")),e.createElement(c,{as:"span",size:"n1",color:D.colors.gray400},l("babyGrowth.kg"))),e.createElement(O,{className:k||(null==i?void 0:i.message)?"error-input":"",name:"weight",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))})),e.createElement(ga,null,e.createElement(R,{control:m,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(ma,{size:"label1",htmlFor:"head"},e.createElement(c,{size:"s4",weight:"semiBold"},l("babyGrowth.headCircumference")),e.createElement(c,{as:"span",size:"n1",color:D.colors.gray400},l("babyGrowth.cm"))),e.createElement(O,{className:k||(null==i?void 0:i.message)?"error-input":"",name:"head",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),e.createElement(R,{control:m,name:"bmi",render:({field:{value:t}})=>e.createElement(pa,null,e.createElement(ma,{size:"label1",htmlFor:"bmi"},e.createElement(c,{size:"s4",weight:"semiBold"},l("babyGrowth.input.bmi")),e.createElement(c,{as:"span",size:"n1",color:D.colors.gray400},l("babyGrowth.kg.m2"))),e.createElement(O,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0}))})),e.createElement(R,{control:m,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:i}})=>e.createElement(pa,null,e.createElement(ma,{size:"label1",htmlFor:"measurementDate"},e.createElement(c,{as:"label",size:"s4",weight:"semiBold"},l("babyGrowth.input.measurementDate"))),e.createElement(pe,{placeholder:a&&v(a).format(A),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:o=>e.createElement(O,Object.assign({className:(null==i?void 0:i.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&v(a).format(A),onChange:t,actionIcon:e.createElement(d.Calendar,null)},o,{value:a&&v(a).format(A)}))}))}),e.createElement(U,{size:"lg",type:"submit",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":E},l("babyGrowth.input.submit"))))))}))`
|
|
2618
2616
|
padding-block: 0;
|
|
2619
|
-
`;
|
|
2617
|
+
`;k(At)`
|
|
2620
2618
|
padding-inline: 20px;
|
|
2621
2619
|
|
|
2622
2620
|
img.embedded-icon {
|
|
@@ -2625,7 +2623,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2625
2623
|
align-self: center;
|
|
2626
2624
|
}
|
|
2627
2625
|
|
|
2628
|
-
${
|
|
2626
|
+
${w.mbDown} {
|
|
2629
2627
|
padding-inline: 0;
|
|
2630
2628
|
img.embedded-icon {
|
|
2631
2629
|
width: 125px;
|
|
@@ -2638,7 +2636,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2638
2636
|
max-width: 200px;
|
|
2639
2637
|
}
|
|
2640
2638
|
}
|
|
2641
|
-
`;var xa=m(((e,t)=>{const{isMarryBaby:a,isSide:i,direction:o}=t;return{root:Object.assign(Object.assign(Object.assign(Object.assign({position:"relative",display:"flex"},"auto"===o?{flexDirection:"row"}:{flexDirection:"column"===o?"column-reverse":"row"}),{gap:"8px",padding:"16px",borderRadius:a?"16px":"8px"}),!a&&{backgroundImage:`url(${
|
|
2639
|
+
`;var xa=m(((e,t)=>{const{isMarryBaby:a,isSide:i,direction:o}=t;return{root:Object.assign(Object.assign(Object.assign(Object.assign({position:"relative",display:"flex"},"auto"===o?{flexDirection:"row"}:{flexDirection:"column"===o?"column-reverse":"row"}),{gap:"8px",padding:"16px",borderRadius:a?"16px":"8px"}),!a&&{backgroundImage:`url(${B.getAssetPath("bgPattern/baby-poop.svg")})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center"}),{backgroundColor:a?e.colors.toneGreen.toString():e.colors[e.primaryColor][0],[e.fn.smallerThan("sm")]:Object.assign({},"auto"===o?{flexDirection:"column-reverse"}:{}),[e.fn.smallerThan("md")]:{borderRadius:a?"12px":"8px"},[e.fn.largerThan("md")]:{padding:"32px",gap:"20px"}}),inner:{display:"flex",gap:"16px",flexDirection:"column",flex:1},content:{display:"flex",flexDirection:"column",gap:"16px"},reviewText:{display:"flex",gap:"4px",a:{color:e.colors.gray[6],fontWeight:"bold","&:not(:hover)":{textDecoration:"none"}}},reviewTextIcon:{flexShrink:0,width:"16px",height:"16px",[e.fn.largerThan("sm")]:{marginTop:"2px"}},thumbnail:Object.assign(Object.assign({img:{objectFit:"contain",objectPosition:"bottom",width:"100%",height:"100%"}},"column"===o?{width:"80%",alignSelf:"center"}:"row"===o?{width:"40%"}:{}),{[e.fn.smallerThan("sm")]:Object.assign({},"auto"===o?{width:"80%",alignSelf:"center"}:{}),[e.fn.largerThan("sm")]:Object.assign({},"auto"===o?{width:"40%"}:{})}),action:{display:"flex",justifyContent:a?"center":"flex-start"},btn:{minWidth:a?"auto":"143px",width:i||a?"100%":"auto",[e.fn.smallerThan("md")]:{width:"100%"}},sponsorLogo:Object.assign(Object.assign({position:"absolute",top:0,height:40,objectFit:"contain",objectPosition:"top"},"column"===o?{left:"16px",height:40}:"row"===o?{height:50,right:"40px"}:{left:"16px",height:40}),{[e.fn.largerThan("sm")]:Object.assign({},"auto"===o?{height:50,right:"40px",left:"unset"}:{})})}}));const fa=k.div`
|
|
2642
2640
|
display: flex;
|
|
2643
2641
|
width: 100%;
|
|
2644
2642
|
|
|
@@ -2649,12 +2647,12 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2649
2647
|
&[data-direction='horizontal'] {
|
|
2650
2648
|
flex-wrap: wrap;
|
|
2651
2649
|
}
|
|
2652
|
-
`,ya=
|
|
2650
|
+
`,ya=k.div`
|
|
2653
2651
|
display: flex;
|
|
2654
2652
|
|
|
2655
2653
|
padding: 8px;
|
|
2656
2654
|
|
|
2657
|
-
border-radius: ${
|
|
2655
|
+
border-radius: ${D.borderRadius};
|
|
2658
2656
|
cursor: pointer;
|
|
2659
2657
|
|
|
2660
2658
|
& > div {
|
|
@@ -2695,13 +2693,13 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2695
2693
|
height: 36px;
|
|
2696
2694
|
object-fit: contain;
|
|
2697
2695
|
}
|
|
2698
|
-
`,va=
|
|
2696
|
+
`,va=k(U)`
|
|
2699
2697
|
margin: 0 auto 24px;
|
|
2700
2698
|
width: 100%;
|
|
2701
|
-
${
|
|
2699
|
+
${w.mbUp} {
|
|
2702
2700
|
max-width: 200px;
|
|
2703
2701
|
}
|
|
2704
|
-
`,wa=
|
|
2702
|
+
`,wa=k.div``,ka=k.div`
|
|
2705
2703
|
display: flex;
|
|
2706
2704
|
flex-direction: column;
|
|
2707
2705
|
gap: 16px;
|
|
@@ -2723,8 +2721,8 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2723
2721
|
font-size: 12px;
|
|
2724
2722
|
}
|
|
2725
2723
|
}
|
|
2726
|
-
`,Ea=
|
|
2727
|
-
${
|
|
2724
|
+
`,Ea=k.div`
|
|
2725
|
+
${w.mbUp} {
|
|
2728
2726
|
display: flex;
|
|
2729
2727
|
width: 100%;
|
|
2730
2728
|
align-items: flex-start;
|
|
@@ -2736,26 +2734,26 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2736
2734
|
}
|
|
2737
2735
|
}
|
|
2738
2736
|
|
|
2739
|
-
${
|
|
2737
|
+
${w.mbDown} {
|
|
2740
2738
|
display: flex;
|
|
2741
2739
|
flex-direction: column;
|
|
2742
2740
|
gap: 16px;
|
|
2743
2741
|
margin-bottom: 8px;
|
|
2744
2742
|
}
|
|
2745
2743
|
&[data-is-side='true'] {
|
|
2746
|
-
${
|
|
2744
|
+
${w.mbUp} {
|
|
2747
2745
|
display: flex;
|
|
2748
2746
|
flex-direction: column-reverse;
|
|
2749
2747
|
gap: 0px;
|
|
2750
2748
|
}
|
|
2751
2749
|
}
|
|
2752
|
-
`,$a=
|
|
2750
|
+
`,$a=k(U)`
|
|
2753
2751
|
margin: 0 auto 24px;
|
|
2754
|
-
${
|
|
2752
|
+
${w.mbUp} {
|
|
2755
2753
|
max-width: 200px;
|
|
2756
2754
|
margin: 24px auto;
|
|
2757
2755
|
}
|
|
2758
|
-
`,Da=
|
|
2756
|
+
`,Da=k.div``,Ca=k.div`
|
|
2759
2757
|
margin-bottom: 1rem;
|
|
2760
2758
|
display: flex;
|
|
2761
2759
|
flex-direction: column;
|
|
@@ -2782,8 +2780,8 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2782
2780
|
font-size: 12px;
|
|
2783
2781
|
}
|
|
2784
2782
|
}
|
|
2785
|
-
`,za=
|
|
2786
|
-
${
|
|
2783
|
+
`,za=k.div`
|
|
2784
|
+
${w.mbUp} {
|
|
2787
2785
|
display: flex;
|
|
2788
2786
|
width: 100%;
|
|
2789
2787
|
align-items: flex-start;
|
|
@@ -2793,23 +2791,23 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2793
2791
|
width: 100%;
|
|
2794
2792
|
}
|
|
2795
2793
|
&[data-is-side='true'] {
|
|
2796
|
-
${
|
|
2794
|
+
${w.mbUp} {
|
|
2797
2795
|
display: flex;
|
|
2798
2796
|
flex-direction: column;
|
|
2799
2797
|
gap: 0px;
|
|
2800
2798
|
}
|
|
2801
2799
|
}
|
|
2802
2800
|
}
|
|
2803
|
-
${
|
|
2801
|
+
${w.mbDown} {
|
|
2804
2802
|
display: flex;
|
|
2805
2803
|
flex-direction: column;
|
|
2806
2804
|
gap: 0px;
|
|
2807
2805
|
}
|
|
2808
|
-
`,Ba=({locale:t,onSubmit:a,isSide:o,siteType:r})=>{const{t:l}=p(),[s,m]=i(new Date),[h
|
|
2806
|
+
`,Ba=({locale:t,onSubmit:a,isSide:o,siteType:r})=>{const{t:l}=p(),[s,m]=i(new Date),[g,h]=i(28),[u,b]=i(7),x={cycle:g,periodDateStart:s,periodLength:u},f=n((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(Ft,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?e.createElement(_t,{label:l("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:qt(s),CustomInput:e.createElement(pe,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:s,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:Z(new Date,-45),after:new Date},customInput:t=>e.createElement(O,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:s&&v(s).format(A)}))}),actionIcon:e.createElement(d.CalendarMB,{size:32})}):e.createElement(O,{label:e.createElement(c,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},l("dueDatePage.lastPeriod.lastPeriodLabel")),value:qt(s),size:"md",name:"date",className:"due-date-input",CustomInput:e.createElement(pe,{customInput:t=>e.createElement("input",Object.assign({},t,{type:"date",className:"due-date-input",value:qt(s)})),locale:t,pickedDate:s,displayDateFormat:K,onChange:e=>{m(e)},disabledDays:{before:Z(new Date,-45),after:new Date},placeholder:"Chọn ngày"})})),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===r?"marryBaby":"","data-is-side":o},"marryBaby"===r?e.createElement(J,{type:"bodytext-3",color:D.mbColors.midGray},l("ovulationPage.cycleLength")):e.createElement(c,{size:"s4",weight:"semiBold",color:"#595959"},l("ovulationPage.cycleLength")+" ",e.createElement("span",{style:{minHeight:"36px"}},l("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&e.createElement(c,{size:"s3",weight:"semiBold",color:D.colors.gray600},g),e.createElement(X,{containerStyle:{flex:1},min:21,max:45,step:1,value:g,onChange:h,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,label:"marryBaby"!==r?void 0:null}))),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===r?"marryBaby":"","data-is-side":o},"marryBaby"===r?e.createElement(J,{type:"bodytext-3",color:D.mbColors.midGray},l("ovulationPage.periodDuration")):e.createElement(c,{size:"s4",weight:"semiBold",color:"#595959"},l("ovulationPage.periodDuration")+" ",e.createElement(c,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},l("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&e.createElement(c,{size:"s3",weight:"semiBold",color:D.colors.gray600},u),e.createElement(X,{containerStyle:{flex:1},min:1,max:15,step:1,value:u,onChange:b,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,label:"marryBaby"!==r?void 0:null}))),e.createElement("div",{style:{width:"100%",display:"flex"}},e.createElement(U,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:f,onClick:()=>{localStorage.setItem("ovulationInfo",JSON.stringify(x)),a&&a({startDate:s,cycle:g,periodLength:u})},role:"button"},l("dueDatePage.lastPeriod.calculate"))))};var Pa;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(Pa||(Pa={}));const Na=({locale:t,onSubmitOvulation:a,isSide:o,siteType:r})=>{const{t:n}=p(),[l,s]=i(Pa.trackPeriod),d=[{label:n("ovulationPage.trackPeriod"),value:Pa.trackPeriod},{label:n("ovulationPage.conceive"),value:Pa.conceive},{label:n("ovulationPage.avoidPregnancy"),value:Pa.avoidPregnancy}];return e.createElement(Jt,null,e.createElement(Lt,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?e.createElement(Ot,{groupedWithLabel:n("dueDatePage.calculationMethod"),options:d,placeholder:n("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:d[l],onChange:e=>{s(e.value)}}):e.createElement(e.Fragment,null,e.createElement(c,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},n("ovulationPage.objectives")),e.createElement(Ut,{"data-is-side":o},e.createElement(q,{options:d,placeholder:n("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:d[l],onChange:e=>{s(e.value)}})))),e.createElement(Ba,{siteType:r,locale:t,onSubmit:({startDate:e,cycle:t,periodLength:i})=>{a&&a({method:l,periodDateStart:e,cycle:t,periodLength:i})},isSide:o}))},ja=k.div`
|
|
2809
2807
|
flex: 1;
|
|
2810
|
-
`,Sa=
|
|
2808
|
+
`,Sa=k.div`
|
|
2811
2809
|
padding: 0 10px;
|
|
2812
|
-
`,Ia=
|
|
2810
|
+
`,Ia=k.div`
|
|
2813
2811
|
display: flex;
|
|
2814
2812
|
height: 80px;
|
|
2815
2813
|
align-items: center;
|
|
@@ -2821,29 +2819,29 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2821
2819
|
margin-left: 5px;
|
|
2822
2820
|
}
|
|
2823
2821
|
}
|
|
2824
|
-
${
|
|
2822
|
+
${w.mbDown} {
|
|
2825
2823
|
height: 70px;
|
|
2826
2824
|
}
|
|
2827
|
-
`,Ta=
|
|
2825
|
+
`,Ta=k.div`
|
|
2828
2826
|
display: grid;
|
|
2829
2827
|
grid-template-columns: repeat(7, 1fr);
|
|
2830
2828
|
row-gap: 2px;
|
|
2831
|
-
`,Ma=
|
|
2829
|
+
`,Ma=k(Ta)`
|
|
2832
2830
|
margin-bottom: 8px;
|
|
2833
|
-
`;
|
|
2831
|
+
`;k.div`
|
|
2834
2832
|
height: 40px;
|
|
2835
2833
|
width: 40px;
|
|
2836
2834
|
display: flex;
|
|
2837
2835
|
align-items: center;
|
|
2838
2836
|
justify-content: center;
|
|
2839
|
-
`;const Aa=
|
|
2837
|
+
`;const Aa=k.div`
|
|
2840
2838
|
font-size: 14px;
|
|
2841
2839
|
display: flex;
|
|
2842
2840
|
justify-content: center;
|
|
2843
2841
|
align-items: center;
|
|
2844
|
-
color: 1px solid ${
|
|
2842
|
+
color: 1px solid ${D.colors.gray800};
|
|
2845
2843
|
font-weight: 300;
|
|
2846
|
-
`,Oa=
|
|
2844
|
+
`,Oa=k.div`
|
|
2847
2845
|
width: 18px;
|
|
2848
2846
|
position: relative;
|
|
2849
2847
|
&::before {
|
|
@@ -2853,33 +2851,33 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2853
2851
|
width: 1px;
|
|
2854
2852
|
left: 50%;
|
|
2855
2853
|
right: 50%;
|
|
2856
|
-
background: ${
|
|
2854
|
+
background: ${D.colors.neutral100};
|
|
2857
2855
|
}
|
|
2858
|
-
`,_a=
|
|
2856
|
+
`,_a=k.div`
|
|
2859
2857
|
margin: 0 auto;
|
|
2860
|
-
`,La=
|
|
2858
|
+
`,La=k.div`
|
|
2861
2859
|
position: relative;
|
|
2862
|
-
`,Ua=
|
|
2860
|
+
`,Ua=Ta,Fa=k.div`
|
|
2863
2861
|
position: relative;
|
|
2864
2862
|
display: flex;
|
|
2865
2863
|
justify-content: center;
|
|
2866
2864
|
align-items: center;
|
|
2867
2865
|
height: 34px;
|
|
2868
|
-
${
|
|
2866
|
+
${w.mbUp} {
|
|
2869
2867
|
height: 38px;
|
|
2870
2868
|
}
|
|
2871
2869
|
&[data-is-disabled='true'] {
|
|
2872
2870
|
opacity: 0.3;
|
|
2873
2871
|
}
|
|
2874
2872
|
&[data-in-range='true']:not([data-is-from='true'][data-is-to='true']) {
|
|
2875
|
-
background-color: ${
|
|
2873
|
+
background-color: ${D.colors.gray100};
|
|
2876
2874
|
}
|
|
2877
2875
|
&:before {
|
|
2878
2876
|
position: absolute;
|
|
2879
2877
|
top: 0;
|
|
2880
2878
|
bottom: 0;
|
|
2881
2879
|
right: 0;
|
|
2882
|
-
background-color: ${
|
|
2880
|
+
background-color: ${D.colors.gray100};
|
|
2883
2881
|
}
|
|
2884
2882
|
&[data-is-from='true'][data-in-range='true'][data-is-to='false'] {
|
|
2885
2883
|
background-color: transparent;
|
|
@@ -2899,14 +2897,14 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2899
2897
|
right: 50%;
|
|
2900
2898
|
}
|
|
2901
2899
|
}
|
|
2902
|
-
`,Ha=
|
|
2900
|
+
`,Ha=k.div`
|
|
2903
2901
|
position: relative;
|
|
2904
2902
|
font-weight: 600;
|
|
2905
|
-
${
|
|
2903
|
+
${w.mbDown} {
|
|
2906
2904
|
width: 32px;
|
|
2907
2905
|
height: 32px;
|
|
2908
2906
|
}
|
|
2909
|
-
${
|
|
2907
|
+
${w.mbUp} {
|
|
2910
2908
|
width: 36px;
|
|
2911
2909
|
height: 36px;
|
|
2912
2910
|
}
|
|
@@ -2918,25 +2916,25 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2918
2916
|
cursor: not-allowed;
|
|
2919
2917
|
}
|
|
2920
2918
|
line-height: 1;
|
|
2921
|
-
color: 1px solid ${
|
|
2919
|
+
color: 1px solid ${D.colors.gray800};
|
|
2922
2920
|
[data-is-selected='true'] &,
|
|
2923
2921
|
[data-is-today='true'] &,
|
|
2924
2922
|
[data-is-selected='false']:hover & {
|
|
2925
2923
|
border-radius: 32px;
|
|
2926
2924
|
}
|
|
2927
2925
|
[data-is-selected='true'] & {
|
|
2928
|
-
background-color: ${
|
|
2926
|
+
background-color: ${D.colors.primaryBase};
|
|
2929
2927
|
color: white;
|
|
2930
2928
|
}
|
|
2931
2929
|
[data-is-selected='false']:hover & {
|
|
2932
|
-
background-color: ${
|
|
2930
|
+
background-color: ${D.colors.primary50};
|
|
2933
2931
|
}
|
|
2934
2932
|
[data-is-today='true'][data-is-selected='false'] & {
|
|
2935
2933
|
background-color: transparent;
|
|
2936
2934
|
border-radius: 32px;
|
|
2937
|
-
border: 1px solid ${
|
|
2935
|
+
border: 1px solid ${D.colors.primaryBase};
|
|
2938
2936
|
}
|
|
2939
|
-
`,Ra=
|
|
2937
|
+
`,Ra=k.div`
|
|
2940
2938
|
display: block;
|
|
2941
2939
|
position: relative;
|
|
2942
2940
|
width: 270px;
|
|
@@ -2944,29 +2942,29 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2944
2942
|
pointer-events: none;
|
|
2945
2943
|
caret-color: transparent;
|
|
2946
2944
|
}
|
|
2947
|
-
${
|
|
2945
|
+
${w.mbDown} {
|
|
2948
2946
|
width: 100%;
|
|
2949
2947
|
}
|
|
2950
|
-
`,Ga=
|
|
2948
|
+
`,Ga=k.div`
|
|
2951
2949
|
display: flex;
|
|
2952
2950
|
position: absolute;
|
|
2953
2951
|
top: 46px;
|
|
2954
2952
|
left: 0;
|
|
2955
2953
|
width: 684px;
|
|
2956
|
-
border: 1px solid ${
|
|
2954
|
+
border: 1px solid ${D.colors.gray200};
|
|
2957
2955
|
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
|
|
2958
2956
|
drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
|
|
2959
2957
|
drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
|
|
2960
|
-
border-radius: ${
|
|
2958
|
+
border-radius: ${D.borderRadius};
|
|
2961
2959
|
background-color: white;
|
|
2962
2960
|
z-index: 100;
|
|
2963
2961
|
padding-bottom: 16px;
|
|
2964
2962
|
align-items: stretch;
|
|
2965
2963
|
user-select: none;
|
|
2966
|
-
${
|
|
2964
|
+
${w.mbDown} {
|
|
2967
2965
|
width: 100%;
|
|
2968
2966
|
}
|
|
2969
|
-
`,Wa=
|
|
2967
|
+
`,Wa=k.div`
|
|
2970
2968
|
display: flex;
|
|
2971
2969
|
gap: 20px;
|
|
2972
2970
|
width: 100%;
|
|
@@ -2987,7 +2985,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2987
2985
|
padding: 8px;
|
|
2988
2986
|
|
|
2989
2987
|
&:hover {
|
|
2990
|
-
background-color: ${
|
|
2988
|
+
background-color: ${D.colors.neutral50};
|
|
2991
2989
|
}
|
|
2992
2990
|
|
|
2993
2991
|
svg {
|
|
@@ -2997,7 +2995,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
2997
2995
|
}
|
|
2998
2996
|
}
|
|
2999
2997
|
}
|
|
3000
|
-
`,Va=
|
|
2998
|
+
`,Va=k(W)`
|
|
3001
2999
|
padding-bottom: 24px;
|
|
3002
3000
|
.share-container {
|
|
3003
3001
|
display: flex;
|
|
@@ -3019,7 +3017,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
3019
3017
|
button {
|
|
3020
3018
|
padding: 10px;
|
|
3021
3019
|
&:hover {
|
|
3022
|
-
background-color: ${
|
|
3020
|
+
background-color: ${D.colors.neutral50};
|
|
3023
3021
|
}
|
|
3024
3022
|
}
|
|
3025
3023
|
svg {
|
|
@@ -3031,7 +3029,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
3031
3029
|
height: 32px;
|
|
3032
3030
|
}
|
|
3033
3031
|
}
|
|
3034
|
-
`,qa=
|
|
3032
|
+
`,qa=k.div`
|
|
3035
3033
|
position: fixed;
|
|
3036
3034
|
z-index: 48;
|
|
3037
3035
|
bottom: 0;
|
|
@@ -3064,7 +3062,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
3064
3062
|
opacity: 1;
|
|
3065
3063
|
pointer-events: auto;
|
|
3066
3064
|
}
|
|
3067
|
-
`,Ya=
|
|
3065
|
+
`,Ya=k.div`
|
|
3068
3066
|
display: flex;
|
|
3069
3067
|
justify-content: center;
|
|
3070
3068
|
align-items: center;
|
|
@@ -3075,8 +3073,8 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
3075
3073
|
margin-inline: auto;
|
|
3076
3074
|
/* margin: 1rem auto; */
|
|
3077
3075
|
&[data-no-wrapper='false'] {
|
|
3078
|
-
border: 1px solid ${
|
|
3079
|
-
background: ${
|
|
3076
|
+
border: 1px solid ${D.colors.neutral50};
|
|
3077
|
+
background: ${D.colors.neutral50};
|
|
3080
3078
|
}
|
|
3081
3079
|
&[data-no-wrapper='true'] {
|
|
3082
3080
|
line-height: 0;
|
|
@@ -3086,8 +3084,7 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
3086
3084
|
background: none;
|
|
3087
3085
|
border: none;
|
|
3088
3086
|
}
|
|
3089
|
-
`,Za=
|
|
3090
|
-
/* background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}}; */
|
|
3087
|
+
`,Za=k.div`
|
|
3091
3088
|
width: 100%;
|
|
3092
3089
|
padding: 0 5px 1.5px;
|
|
3093
3090
|
display: flex;
|
|
@@ -3102,17 +3099,17 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
3102
3099
|
max-height: 12px;
|
|
3103
3100
|
}
|
|
3104
3101
|
&[data-header-bottom='true'] {
|
|
3105
|
-
background: ${
|
|
3102
|
+
background: ${D.colors.neutral50};
|
|
3106
3103
|
}
|
|
3107
3104
|
span {
|
|
3108
3105
|
font-size: 10px;
|
|
3109
3106
|
line-height: 12px;
|
|
3110
|
-
color: ${
|
|
3107
|
+
color: ${D.colors.gray400};
|
|
3111
3108
|
font-weight: 400;
|
|
3112
3109
|
}
|
|
3113
|
-
`,Xa=
|
|
3110
|
+
`,Xa=k.div`
|
|
3114
3111
|
background-color: white;
|
|
3115
|
-
background-image: url(${
|
|
3112
|
+
background-image: url(${B.getAssetPath("close-blue.svg")});
|
|
3116
3113
|
background-repeat: no-repeat;
|
|
3117
3114
|
background-size: 10px;
|
|
3118
3115
|
background-position: center;
|
|
@@ -3122,4 +3119,4 @@ import e,{memo as t,useRef as a,useState as i,useEffect as o,useImperativeHandle
|
|
|
3122
3119
|
top: 1px;
|
|
3123
3120
|
right: 1px;
|
|
3124
3121
|
cursor: pointer;
|
|
3125
|
-
`,Ja={},Ka=e=>{if(Ja[e]){window.googletag=window.googletag||{cmd:[]};const{googletag:t}=window;t.cmd.push((function(){t.destroySlots([Ja[e]]),delete Ja[e]}))}},Qa=["TopBanner","MidBanner1","MidBanner2","EndBanner","Sticky"],ei=t(l((function({className:t,adUnitPath:r,size:n,divId:l,pos:s,sizeMapping:d,contentId:c,isHidden:m,hideIfHasSubot:
|
|
3122
|
+
`,Ja={},Ka=e=>{if(Ja[e]){window.googletag=window.googletag||{cmd:[]};const{googletag:t}=window;t.cmd.push((function(){t.destroySlots([Ja[e]]),delete Ja[e]}))}},Qa=["TopBanner","MidBanner1","MidBanner2","EndBanner","Sticky"],ei=t(l((function({className:t,adUnitPath:r,size:n,divId:l,pos:s,sizeMapping:d,contentId:c,isHidden:m,hideIfHasSubot:g,isSticky:h,refreshInterval:u,customTargetings:b,style:x,adDefaultSize:f,noWrapper:v,showCloseBtn:w,onCloseAd:k,headerBottom:E,wrapperProps:$,locale:D,isMarryBaby:C},P){const N=u||(D===z.Vietnam&&s.some((e=>Qa.includes(e)))?30:void 0),{t:j}=p(),S=a(null),I=a(null),T=a(N);T.current=N;const[M,A]=i(!1),O=()=>{T.current&&(null!==I.current&&clearInterval(I.current),I.current=window.setInterval((()=>{window.googletag=window.googletag||{cmd:[]};const{googletag:e}=window;e.cmd.push((function(){Ja[l]&&e.pubads().refresh([Ja[l]])}))}),1e3*T.current))};if(o((()=>()=>{Ka(l),I.current&&clearInterval(I.current)}),[]),o((()=>{O()}),[N]),o((()=>{m||(({contentId:e,adUnitPath:t,size:a,divId:i,pos:o,sizeMapping:r,hideIfHasSubot:n,customTargetings:l,onSuccess:s})=>{if(!i||!document.getElementById(i))return console.error("divId is required");Ka(i),window.googletag=window.googletag||{cmd:[]};const{googletag:d}=window;d.cmd.push((function(){const c=document.querySelector('meta[name="content_id"]'),p="string"==typeof e?e:null==c?void 0:c.content,m=d.defineSlot(t,a,i);if(m){try{l&&Object.keys(l).forEach((e=>{e&&(null==m||m.setTargeting(e,l[e]))}))}catch(e){console.error(e)}Ja[i]=m,m.setTargeting("Pos",o),m.addService(d.pubads()),p&&m.setTargeting("Content_ID",p),r&&m.defineSizeMapping(r),n&&document.getElementById("subot--container")&&m.setTargeting("chatbot",!0),d.display(i),null==s||s()}}))})({contentId:c,adUnitPath:r,size:n,divId:l,pos:s,sizeMapping:d,hideIfHasSubot:g,customTargetings:b,onSuccess:O})}),[m]),M)return null;const _=e.createElement("div",{style:{position:"relative",width:"fit-content",height:"fit-content",overflow:"hidden",maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{ref:P,id:l}),w&&e.createElement(Xa,{onClick:()=>{null==k||k(),A(!0)}}));if(h)return _;const L=f?f[0]:n?Array.isArray(n[0])?n[0][0]:n[0]:void 0,U=f?f[1]:n?Array.isArray(n[0])?n[0][1]:n[1]:void 0;return e.createElement(y,Object.assign({},$,{className:t}),e.createElement(Ya,{ref:S,className:t,style:x,"data-no-wrapper":!!v,"data-header-bottom":!!E},v?_:e.createElement(e.Fragment,null,e.createElement(Za,{"data-header-bottom":!!E},e.createElement("img",{src:C?B.getAssetPath("adsIcon-mb.svg"):B.getAssetPath("adsIcon.svg"),alt:"",loading:"lazy"}),e.createElement("span",null,j("adBanner.title"))),e.createElement("div",{style:{minWidth:L||"100%",minHeight:U||"100%",position:"relative"}},_))))})),((e,t)=>e.adUnitPath===t.adUnitPath&&e.divId===t.divId&&e.className===t.className)),ti=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:B.getAssetPath("newsletter-prefer/newsletter-health.svg"),checked:!1,id:1},{title:"Educational Medical Hello Bacsi Content",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:B.getAssetPath("newsletter-prefer/newsletter-education.svg"),checked:!1,id:2},{title:"Hello Health Community Feed",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:B.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];var ai;!function(e){e.DUE_DATE="due-date-calculator",e.BMI="bmi",e.BMR="bmr",e.OVULATION="ovulation",e.IFRAME="IFRAME",e.PWG="pregnancy-weight-gain",e.THR="heart-rate",e.BABY_VACCINE="vaccination-tool",e.BABY_GROWTH="baby-growth-tracking",e.BABY_POOP="baby-poop-checking"}(ai||(ai={}));const ii={DUE_DATE:ai.DUE_DATE,BMI:ai.BMI,BMR:ai.BMR,OVULATION:ai.OVULATION,IFRAME:ai.IFRAME,PWG:ai.PWG,THR:ai.THR,BABY_VACCINE:ai.BABY_VACCINE,BABY_GROWTH:ai.BABY_GROWTH,BABY_POOP:ai.BABY_POOP},oi={[ii.DUE_DATE]:B.getAssetPath("health-tools/due-date-icon.svg")};var ri,ni,li,si;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(ri||(ri={})),function(e){e.Option="option"}(ni||(ni={})),function(e){e.Button="button",e.Checkbox="checkbox"}(li||(li={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(si||(si={}));const di={pregnancy:ri.Pregnant,parenting:ri.Parenting},ci={[ri.Pregnant]:"pregnant",[ri.Parenting]:"parent"},pi=s({});var mi=m((e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:f(32),padding:`${f(6)} ${f(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}})));const gi=s({}),hi=l((function(t,a){var{label:i}=t,o=_(t,["label"]);return e.createElement("div",Object.assign({ref:a},o),e.createElement(h,{noWrap:!0},e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72615 14.8099 11.1702 14.2653 12.3086 13.3547L15.2376 16.2837C15.5264 16.5725 15.9946 16.5725 16.2833 16.2837C16.5721 15.9949 16.5721 15.5267 16.2833 15.238L13.3544 12.3091C14.2652 11.1705 14.8099 9.72634 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"#8C8C8C"})),e.createElement(c,{size:"p3"},i)))})),ui=l((function(t,a){var{label:i}=t,o=_(t,["label"]);return e.createElement("div",Object.assign({ref:a},o),e.createElement(c,{size:"p3"},i))}));var bi="fVk18fq",xi="v8TCvUb",fi="mx7T4V3";const yi={myHealth:D.mbColors.toneYellow,myCommunity:D.mbColors.toneBlue,mySaved:D.mbColors.toneGreen},vi={helloSites:{myBooking:()=>B.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>B.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>B.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>B.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>B.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>B.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>B.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>B.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>B.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},wi=({type:t,themeName:a,className:i,onClick:o=(()=>{})})=>{const{t:r}=p(),l=n((()=>{var e,i;return(null===(i=null===(e=vi[a])||void 0===e?void 0:e[t])||void 0===i?void 0:i.call(e))||""}),[t,a]),s=n((()=>"marryBaby"!==a?"transparent":yi[t]),[t,a]);return e.createElement("div",{onClick:function(){o(t)},className:`${bi} ${i}`},e.createElement("div",{className:fi,style:{backgroundColor:s,backgroundImage:`url("${l}")`}}),e.createElement("h3",{className:xi},r(`userProfile.nav.card.${t}`)))};export{ht as $,ei as A,ie as B,_e as C,pe as D,Ue as E,Le as F,Fe as G,Re as H,We as I,Ze as J,qe as K,te as L,Bt as M,Je as N,Ke as O,Qe as P,tt as Q,De as R,nt as S,At as T,oe as U,st as V,dt as W,ct as X,pt as Y,gt as Z,lt as _,Se as a,ri as a$,ut as a0,mt as a1,bt as a2,xt as a3,ft as a4,yt as a5,vt as a6,wt as a7,Ft as a8,_t as a9,va as aA,Da as aB,Ca as aC,za as aD,$a as aE,Zt as aF,Na as aG,Yt as aH,ia as aI,Kt as aJ,Xt as aK,Oa as aL,ja as aM,Ia as aN,Sa as aO,Ma as aP,Aa as aQ,La as aR,_a as aS,Ua as aT,Fa as aU,Ha as aV,Ra as aW,Ga as aX,Wa as aY,Va as aZ,qa as a_,qt as aa,Wt as ab,Rt as ac,Vt as ad,Gt as ae,Ht as af,Jt as ag,Lt as ah,Ot as ai,Ut as aj,aa as ak,ta as al,na as am,la as an,sa as ao,ra as ap,oa as aq,ua as ar,ba as as,xa as at,fa as au,ya as av,wa as aw,Ea as ax,ka as ay,Qt as az,zt as b,si as b0,li as b1,ii as b2,pi as b3,mi as b4,oi as b5,gi as b6,hi as b7,ui as b8,ti as b9,wi as ba,di as c,ci as d,ae as e,ne as f,le as g,me as h,ge as i,fe as j,ye as k,ue as l,be as m,he as n,xe as o,ve as p,ke as q,we as r,Ee as s,$e as t,re as u,ze as v,Ne as w,Te as x,Ae as y,Oe as z};
|