@hhgtech/hhg-components 1.27.5 → 1.27.8
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 +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/addressInput/index.d.ts +10 -3
- package/build/components/molecules/addressInput/useAddress.d.ts +3 -1
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components/onboardingV2/dynamicForm/index.d.ts +17 -3
- package/build/components/onboardingV2/dynamicForm/index.styled.d.ts +8 -1
- package/build/components/onboardingV2/frisoForm/index.d.ts +40 -0
- package/build/components/onboardingV2/frisoForm/schema.d.ts +18 -0
- package/build/components/onboardingV2/index.d.ts +15 -0
- package/build/components/ui/onboarding/index.d.ts +2 -2
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-4ea11b34.js +1 -0
- package/build/{dataTransform-6b4bf9e4.js → dataTransform-a5cecbfc.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-bd447c84.js → core-78606f7d.js} +1 -1
- package/build/esm/{dataTransform-435a7022.js → dataTransform-4637bcc8.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-99a1a6bf.js → fixedBottomAdBlock-4b427cee.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-94f72671.js → getDynamicHealthTool-7d519f57.js} +1 -1
- package/build/esm/{getSocialList-4ba8568a.js → getSocialList-e494052d.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-0e695887.js +53 -0
- package/build/esm/index-11d5b36f.js +1 -0
- package/build/esm/{index-0cd164e1.js → index-15b69315.js} +1 -1
- package/build/esm/index-2164c855.js +1 -0
- package/build/esm/{index-3af98ef3.js → index-324c2f9f.js} +1 -1
- package/build/esm/{index-48b655c5.js → index-4acbe094.js} +1 -1
- package/build/esm/{index-b6a331c0.js → index-53f65974.js} +1 -1
- package/build/esm/{index-9605b109.js → index-5c381ee8.js} +1 -1
- package/build/esm/{index-00f1fd60.js → index-6badbcfa.js} +1 -1
- package/build/esm/{index-c1784a80.js → index-70333bc4.js} +1 -1
- package/build/esm/{index-1d1eb5c5.js → index-8eb9e7e1.js} +1 -1
- package/build/esm/{index-0db0780e.js → index-934b3d2b.js} +2 -2
- package/build/esm/{index-19515200.js → index-94c6feaa.js} +1 -1
- package/build/esm/{index-a2a4b7fc.js → index-c87995f6.js} +1 -1
- package/build/esm/{index-633523dc.js → index-cc5c0ae8.js} +1 -1
- package/build/esm/index-cfa0b301.js +1 -0
- package/build/esm/{index-57268b9a.js → index-d3ee850e.js} +1 -1
- package/build/esm/{index-56cfa77c.js → index-ebc7ffbe.js} +1 -1
- package/build/esm/{index-5fdbe422.js → index-f30dcec3.js} +1 -1
- package/build/esm/{index-ef921efc.js → index-f7a00c66.js} +1 -1
- package/build/esm/index-fa4c85a3.js +1 -0
- package/build/esm/{index-8c2e6756.js → index-fcbd3a0f.js} +1 -1
- package/build/esm/{index-d4c4f2b2.js → index-fd6d09c8.js} +1 -1
- package/build/esm/{index-d1e5d971.js → index-fe04e7c4.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-b8250e6b.js → index.styled-49538ecf.js} +5 -5
- package/build/esm/{index.styled-4cd4a8ad.js → index.styled-6bef8d3f.js} +1 -1
- package/build/esm/{index.styled-ef881fbb.js → index.styled-70c6853f.js} +4 -4
- package/build/esm/{index.styled-0274a50e.js → index.styled-9b51651f.js} +1 -1
- package/build/esm/{index.styles-2bc9fb6e.js → index.styles-5bc22dbb.js} +1 -1
- 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/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +45 -45
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-5f01e767.js → routing-a7948360.js} +1 -1
- package/build/esm/{screenSizeContext-ba3888f7.js → screenSizeContext-2f91731d.js} +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-e4482af4.js → translationsProvider-662c8bcc.js} +1 -1
- package/build/esm/{types-c238f04e.js → types-15d09950.js} +1 -1
- package/build/esm/{types-6ba9a98e.js → types-8c8c2dbe.js} +38 -38
- package/build/esm/types.js +1 -1
- package/build/esm/{useHealthToolCache-a83b9bad.js → useHealthToolCache-644fe5e8.js} +1 -1
- package/build/esm/{useRafState-d09e3666.js → useRafState-1f06dc1c.js} +1 -1
- package/build/esm/useTranslations-a26ff035.js +1 -0
- package/build/esm/utils-a2be301d.js +1 -0
- package/build/esm/vaccination.js +1 -1
- package/build/{fixedBottomAdBlock-7ba6c056.js → fixedBottomAdBlock-865d2b76.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-e7cdbe5b.js +1 -0
- package/build/{getSocialList-5fee6b8e.js → getSocialList-6f6a4505.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-1e117abc.js → index-07ce1858.js} +1 -1
- package/build/{index-7284f369.js → index-107fb8c0.js} +1 -1
- package/build/index-174de5be.js +53 -0
- package/build/{index-7ae21e6b.js → index-1cdd790d.js} +1 -1
- package/build/index-1e595fa8.js +1 -0
- package/build/{index-9c7d02b5.js → index-2fe2d038.js} +1 -1
- package/build/{index-7fc2826f.js → index-3448f5f5.js} +1 -1
- package/build/{index-94f356c3.js → index-4a0a3748.js} +1 -1
- package/build/{index-2231de4a.js → index-4c364a9a.js} +1 -1
- package/build/{index-107da92f.js → index-5c7a3006.js} +1 -1
- package/build/{index-81fb5785.js → index-6338af74.js} +1 -1
- package/build/index-63f95fb0.js +1 -0
- package/build/{index-de0c6755.js → index-8099d366.js} +1 -1
- package/build/index-85288467.js +1 -0
- package/build/{index-96cccab6.js → index-8e32e888.js} +1 -1
- package/build/{index-96998aab.js → index-8f12771a.js} +1 -1
- package/build/{index-73e61fab.js → index-9753d36d.js} +1 -1
- package/build/{index-7f65bef0.js → index-9d289822.js} +1 -1
- package/build/{index-7e1f166f.js → index-a645c8d5.js} +1 -1
- package/build/{index-1ad59d4c.js → index-a735a3ee.js} +1 -1
- package/build/{index-35953830.js → index-d4e56d53.js} +1 -1
- package/build/{index-a4739c9a.js → index-e3c67c86.js} +1 -1
- package/build/{index-a7f1ecf1.js → index-f30b7fae.js} +1 -1
- package/build/{index-928082f0.js → index-fe97da99.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-2dfd6dbd.js → index.styled-7171d007.js} +5 -5
- package/build/{index.styled-5b431d0a.js → index.styled-86bb8b1d.js} +1 -1
- package/build/{index.styled-d1ecdec7.js → index.styled-9199e40a.js} +1 -1
- package/build/{index.styled-e0d14247.js → index.styled-d13603fc.js} +5 -5
- package/build/{index.styles-ea75ee5a.js → index.styles-61850100.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +45 -45
- package/build/pwg.js +4 -4
- package/build/{routing-1739a4b7.js → routing-582206bc.js} +1 -1
- package/build/screenSizeContext-4d129b5e.js +81 -0
- package/build/together.js +1 -1
- package/build/{translationsProvider-e3a97e07.js → translationsProvider-ffd3fa4f.js} +1 -1
- package/build/{types-b15c151b.js → types-2ac0882e.js} +37 -37
- package/build/{types-0aa64c36.js → types-f77bc24e.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-be63f21b.js +1 -0
- package/build/{useRafState-0da298f3.js → useRafState-59db6b37.js} +1 -1
- package/build/{useTranslations-5a0eec59.js → useTranslations-1b094e14.js} +1 -1
- package/build/utils-01248207.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-ceda9779.js +0 -1
- package/build/esm/index-12fe3ea8.js +0 -1
- package/build/esm/index-5454693d.js +0 -1
- package/build/esm/index-69665daa.js +0 -1
- package/build/esm/index-d8c565a3.js +0 -1
- package/build/esm/useTranslations-1e04d328.js +0 -1
- package/build/esm/utils-d715526e.js +0 -53
- package/build/getDynamicHealthTool-4b92709e.js +0 -1
- package/build/index-78154fc5.js +0 -1
- package/build/index-80ae2201.js +0 -1
- package/build/index-87edc93e.js +0 -1
- package/build/screenSizeContext-e7bf25b0.js +0 -81
- package/build/useHealthToolCache-b320f4a4.js +0 -1
- package/build/utils-323ad992.js +0 -53
- /package/build/{BMI_BOYS.percentile.monthly-0cdcd55d.js → BMI_BOYS.percentile.monthly-55699c07.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-1e73fe0d.js → BMI_BOYS.percentile.weekly-3c425deb.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-7a0919c3.js → BMI_BOYS.percentile.yearly-2a0fb6bc.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b82db8e4.js → BMI_BOYS.zscore.monthly-ca2631c5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-9046faf0.js → BMI_BOYS.zscore.weekly-269520ac.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-c3e40656.js → BMI_BOYS.zscore.yearly-57832563.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-298133dc.js → BMI_GIRLS.percentile.monthly-542c8a4e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-6faa359b.js → BMI_GIRLS.percentile.weekly-5ee0d2df.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-575b4945.js → BMI_GIRLS.percentile.yearly-7f35cf4e.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-e853f209.js → BMI_GIRLS.zscore.monthly-5bab0f2b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-9baa4430.js → BMI_GIRLS.zscore.weekly-9dd35947.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-9a57b74c.js → BMI_GIRLS.zscore.yearly-60415b18.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-28ee44a7.js → HEAD CIRCUM_BOYS.percentile.monthly-af29b470.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-71fa159a.js → HEAD CIRCUM_BOYS.percentile.weekly-3648ccf5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-0e404cd4.js → HEAD CIRCUM_BOYS.percentile.yearly-859a47bb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-83f2adfd.js → HEAD CIRCUM_BOYS.zscore.monthly-6970eefa.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-8ec7cbb9.js → HEAD CIRCUM_BOYS.zscore.weekly-d27d50bc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-894b632a.js → HEAD CIRCUM_BOYS.zscore.yearly-bbdb149e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d44b183f.js → HEAD CIRCUM_GIRLS.percentile.monthly-eaa8bf74.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-8308e5a4.js → HEAD CIRCUM_GIRLS.percentile.weekly-9919f312.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-5a1d78fd.js → HEAD CIRCUM_GIRLS.percentile.yearly-b5d0a371.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f6e1e907.js → HEAD CIRCUM_GIRLS.zscore.monthly-8c78993f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e08e7c36.js → HEAD CIRCUM_GIRLS.zscore.weekly-b451c03c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-62bf8df9.js → HEAD CIRCUM_GIRLS.zscore.yearly-e4b4f38a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-85153617.js → HEIGHT_BOYS.percentile.monthly-14be5b2f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-31905c48.js → HEIGHT_BOYS.percentile.weekly-beefdd7b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-616e5eab.js → HEIGHT_BOYS.percentile.yearly-83da2560.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-e9335ac3.js → HEIGHT_BOYS.zscore.monthly-2a4803c4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-8379a561.js → HEIGHT_BOYS.zscore.weekly-f9c013e8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-1ac9c278.js → HEIGHT_BOYS.zscore.yearly-e64c298e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-2fe86f27.js → HEIGHT_GIRLS.percentile.monthly-c3e646d9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-3454e9f7.js → HEIGHT_GIRLS.percentile.weekly-2bde4ad5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-b9693399.js → HEIGHT_GIRLS.percentile.yearly-5c314ceb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-3f67b7e3.js → HEIGHT_GIRLS.zscore.monthly-289256df.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-26e4564b.js → HEIGHT_GIRLS.zscore.weekly-839a52a1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-8931368b.js → HEIGHT_GIRLS.zscore.yearly-1f18528a.js} +0 -0
- /package/build/{Onboarding-0315b680.js → Onboarding-c7422226.js} +0 -0
- /package/build/{Visible-18fa95e4.js → Visible-b9167ff4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-197b09f4.js → WEIGHT_BOYS.percentile.monthly-65c685f7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-33d657a5.js → WEIGHT_BOYS.percentile.weekly-c284d744.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-fc3fa1e5.js → WEIGHT_BOYS.percentile.yearly-3e3aac32.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-bbcf27d4.js → WEIGHT_BOYS.zscore.monthly-0aaf3f2b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-bf6df44b.js → WEIGHT_BOYS.zscore.weekly-ed109250.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-0eeb52bc.js → WEIGHT_BOYS.zscore.yearly-d609638e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-f09def6e.js → WEIGHT_GIRLS.percentile.monthly-7e505631.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-b9df6069.js → WEIGHT_GIRLS.percentile.weekly-a53d47bd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-f89af3d2.js → WEIGHT_GIRLS.percentile.yearly-c331c8d4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-05a06349.js → WEIGHT_GIRLS.zscore.monthly-368fa702.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-19ae5430.js → WEIGHT_GIRLS.zscore.weekly-fece8b90.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-852eb31b.js → WEIGHT_GIRLS.zscore.yearly-76fd70b3.js} +0 -0
- /package/build/{constants-c4ba925d.js → constants-e3ec8c5c.js} +0 -0
- /package/build/{cookieHelper-c52b4f02.js → cookieHelper-2a0cdb21.js} +0 -0
- /package/build/{dataTransform-3d356416.js → dataTransform-371069eb.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-516fe081.js → BMI_BOYS.percentile.monthly-d2346508.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b7c3c14f.js → BMI_BOYS.percentile.weekly-48176aeb.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-22e8e557.js → BMI_BOYS.percentile.yearly-c340bb05.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-abce8678.js → BMI_BOYS.zscore.monthly-1bc52590.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-3fd2f430.js → BMI_BOYS.zscore.weekly-60351410.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-3ef999a1.js → BMI_BOYS.zscore.yearly-b63e5fb2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-5ce8365b.js → BMI_GIRLS.percentile.monthly-d02cbac7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-a792fddc.js → BMI_GIRLS.percentile.weekly-308766cf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-05faea10.js → BMI_GIRLS.percentile.yearly-97c13398.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-a3c6d40a.js → BMI_GIRLS.zscore.monthly-c06da7f9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-df67b6e1.js → BMI_GIRLS.zscore.weekly-3643538b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-2dbcaffb.js → BMI_GIRLS.zscore.yearly-23ab0c22.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-26babd48.js → HEAD CIRCUM_BOYS.percentile.monthly-9bcb1aec.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c2e148ac.js → HEAD CIRCUM_BOYS.percentile.weekly-313fb722.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-1e6b944a.js → HEAD CIRCUM_BOYS.percentile.yearly-d41c3d4c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4c66c510.js → HEAD CIRCUM_BOYS.zscore.monthly-a73b856b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-1ee17e2b.js → HEAD CIRCUM_BOYS.zscore.weekly-e1337b1e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1ec15102.js → HEAD CIRCUM_BOYS.zscore.yearly-ffe0156e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-9d09e9c1.js → HEAD CIRCUM_GIRLS.percentile.monthly-5aedbdc8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-45036519.js → HEAD CIRCUM_GIRLS.percentile.weekly-30f936f3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-390155aa.js → HEAD CIRCUM_GIRLS.percentile.yearly-85d6a876.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-b5b5bfc3.js → HEAD CIRCUM_GIRLS.zscore.monthly-fd96137d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-99a39b2e.js → HEAD CIRCUM_GIRLS.zscore.weekly-0d5c7dcc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-8b097151.js → HEAD CIRCUM_GIRLS.zscore.yearly-a4de5e94.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ea4ea59d.js → HEIGHT_BOYS.percentile.monthly-268a700b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-599d9cd0.js → HEIGHT_BOYS.percentile.weekly-7408ab26.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-7952be57.js → HEIGHT_BOYS.percentile.yearly-11af85db.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-1d014bb8.js → HEIGHT_BOYS.zscore.monthly-a64f5836.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-9983791b.js → HEIGHT_BOYS.zscore.weekly-de2475e8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-b1dd5523.js → HEIGHT_BOYS.zscore.yearly-b78de7ad.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-2ed4c8a9.js → HEIGHT_GIRLS.percentile.monthly-ce73fd59.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-ccbf4b1c.js → HEIGHT_GIRLS.percentile.weekly-3bc49ddd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-bfc31d44.js → HEIGHT_GIRLS.percentile.yearly-d5a13ccc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-f81db124.js → HEIGHT_GIRLS.zscore.monthly-757e2141.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-1c3dfdea.js → HEIGHT_GIRLS.zscore.weekly-1dd7dc25.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-11e523d5.js → HEIGHT_GIRLS.zscore.yearly-aee0e7a2.js} +0 -0
- /package/build/esm/{Onboarding-755c2feb.js → Onboarding-422ffd8b.js} +0 -0
- /package/build/esm/{Visible-3622eec2.js → Visible-5483817d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-9f0cbf25.js → WEIGHT_BOYS.percentile.monthly-99992129.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b56e8b13.js → WEIGHT_BOYS.percentile.weekly-e649c97d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-ae64c933.js → WEIGHT_BOYS.percentile.yearly-de8cc4c7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-46a16095.js → WEIGHT_BOYS.zscore.monthly-d158d8b8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8c9a8aee.js → WEIGHT_BOYS.zscore.weekly-75bb0023.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-7e29fe25.js → WEIGHT_BOYS.zscore.yearly-090a1a9e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-cc858c26.js → WEIGHT_GIRLS.percentile.monthly-3962d10b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-1ba39e21.js → WEIGHT_GIRLS.percentile.weekly-f1dc7c90.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-394fd55b.js → WEIGHT_GIRLS.percentile.yearly-278f0a74.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-a1216ea1.js → WEIGHT_GIRLS.zscore.monthly-a273c965.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-dccf23fd.js → WEIGHT_GIRLS.zscore.weekly-b9afabb8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-b4ade809.js → WEIGHT_GIRLS.zscore.yearly-ce483f24.js} +0 -0
- /package/build/esm/{constants-6cb9e818.js → constants-ea7cfb49.js} +0 -0
- /package/build/esm/{cookieHelper-5fb229f9.js → cookieHelper-757810ef.js} +0 -0
- /package/build/esm/{dataTransform-352ad216.js → dataTransform-746fc5fc.js} +0 -0
- /package/build/esm/{index-eb55dd2d.js → index-4aee8303.js} +0 -0
- /package/build/esm/{index-f965ac14.js → index-7f371a6c.js} +0 -0
- /package/build/esm/{isProduction-f95e4d71.js → isProduction-45de93f9.js} +0 -0
- /package/build/esm/{localizeNumberFormat-cb16e16f.js → localizeNumberFormat-8d946c86.js} +0 -0
- /package/build/esm/{normalizeLink-35e5b62c.js → normalizeLink-87051124.js} +0 -0
- /package/build/esm/{theme-441c696d.js → theme-573f02f1.js} +0 -0
- /package/build/esm/{translationsContext-52e1e6ba.js → translationsContext-b0b69691.js} +0 -0
- /package/build/esm/{tslib.es6-5c12945c.js → tslib.es6-807bdc1f.js} +0 -0
- /package/build/esm/{types-4d6fed26.js → types-fa5c32a3.js} +0 -0
- /package/build/esm/{useIsInit-86db9f64.js → useIsInit-99f852b6.js} +0 -0
- /package/build/esm/{useOutsideClick-22aaae10.js → useOutsideClick-398aa4a2.js} +0 -0
- /package/build/esm/{useScrollbarSize-75136c90.js → useScrollbarSize-fad911de.js} +0 -0
- /package/build/esm/{useUniqueId-61ed928d.js → useUniqueId-ad1c6138.js} +0 -0
- /package/build/esm/{utils-5d714bfc.js → utils-75021f40.js} +0 -0
- /package/build/{index-23c34d25.js → index-bbd84a10.js} +0 -0
- /package/build/{index-e3edbaba.js → index-e9ef85ec.js} +0 -0
- /package/build/{isProduction-b259ce8f.js → isProduction-7730b567.js} +0 -0
- /package/build/{localizeNumberFormat-3f6d503d.js → localizeNumberFormat-bdcfe4c2.js} +0 -0
- /package/build/{normalizeLink-8acd5064.js → normalizeLink-5ee3f408.js} +0 -0
- /package/build/{theme-b5e0e4f3.js → theme-5da51ca6.js} +0 -0
- /package/build/{translationsContext-dd0c1137.js → translationsContext-cd7c4d05.js} +0 -0
- /package/build/{tslib.es6-21a9bda0.js → tslib.es6-f1c64250.js} +0 -0
- /package/build/{types-9cac6df3.js → types-bde49970.js} +0 -0
- /package/build/{useIsInit-0c23f61b.js → useIsInit-c2fb2c7d.js} +0 -0
- /package/build/{useOutsideClick-bb31c407.js → useOutsideClick-72349103.js} +0 -0
- /package/build/{useScrollbarSize-797b3791.js → useScrollbarSize-86ad7c80.js} +0 -0
- /package/build/{useUniqueId-29af59c4.js → useUniqueId-8c760038.js} +0 -0
- /package/build/{utils-feac693f.js → utils-a41f803f.js} +0 -0
package/build/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-2fe2d038.js"),t=require("react"),r=require("./Onboarding-c7422226.js"),a=require("./theme-5da51ca6.js"),l=require("./index-9753d36d.js"),o=require("styled-components"),n=require("./index-9d289822.js"),i=require("./index.styles-61850100.js"),s=require("./index-1cdd790d.js"),d=require("./screenSizeContext-4d129b5e.js"),c=require("dayjs"),u=require("./useTranslations-1b094e14.js");require("lodash/debounce"),require("./isProduction-7730b567.js"),require("./index-d4e56d53.js");var C=require("./localizeNumberFormat-bdcfe4c2.js"),h=require("./utils-a41f803f.js");require("./gAssets.js"),require("@mantine/core"),require("./index-107fb8c0.js"),require("./index-3448f5f5.js");var m=require("./index-e9ef85ec.js"),f=require("./useOutsideClick-72349103.js"),y=require("./tslib.es6-f1c64250.js"),p=require("./index-4a0a3748.js"),b=require("recharts"),g=require("lodash/chunk");function w(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-8c760038.js"),require("./index.styled-9199e40a.js"),require("lodash/throttle"),require("./translationsContext-cd7c4d05.js"),require("string-format"),require("date-fns/locale"),require("./index-8e32e888.js"),require("./useScrollbarSize-86ad7c80.js"),require("react-dom");var x=w(t),E=w(o),v=w(c),B=w(g);const L=E.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
width: 100%;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
`,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-
|
|
279
|
+
`,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-c284d744.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-65c685f7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-3e3aac32.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-beefdd7b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-14be5b2f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-83da2560.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-3648ccf5.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-af29b470.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-859a47bb.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-3c425deb.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-55699c07.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-2a0fb6bc.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-a53d47bd.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-7e505631.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-c331c8d4.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-2bde4ad5.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-c3e646d9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-5c314ceb.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-9919f312.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-eaa8bf74.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-b5d0a371.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-5ee0d2df.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-542c8a4e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-7f35cf4e.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-ed109250.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-0aaf3f2b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-d609638e.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-f9c013e8.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-2a4803c4.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-e64c298e.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-d27d50bc.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-6970eefa.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-bbdb149e.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-269520ac.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-ca2631c5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-57832563.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-fece8b90.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-368fa702.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-76fd70b3.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-839a52a1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-289256df.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-1f18528a.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-b451c03c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-8c78993f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-e4b4f38a.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-9dd35947.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-5bab0f2b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-60415b18.js")}))}}},F=(e,t,a,l)=>l===r.LOCALE.Indonesia?Y[e][t][a]():W[e][t][a](),$=(e,t)=>{const[r,a]=B.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},U=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),K=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),X=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},J=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Q=E.default.div`
|
|
280
280
|
position: relative;
|
|
281
281
|
.custom-chart-label {
|
|
282
282
|
display: flex;
|
package/build/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-4ea11b34.js");require("./tslib.es6-f1c64250.js"),require("./isProduction-7730b567.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
|
package/build/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-2ac0882e.js"),r=require("./constants-e3ec8c5c.js");require("./tslib.es6-f1c64250.js"),require("react"),require("./index-d4e56d53.js"),require("date-fns/locale"),require("./Onboarding-c7422226.js"),require("./isProduction-7730b567.js"),require("./cookieHelper-2a0cdb21.js"),require("./useTranslations-1b094e14.js"),require("./translationsContext-cd7c4d05.js"),require("string-format"),require("lodash/debounce"),require("./index-8e32e888.js"),require("@mantine/core"),require("./index-107fb8c0.js"),require("./utils-a41f803f.js"),require("styled-components"),require("./index-9753d36d.js"),require("./theme-5da51ca6.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-72349103.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InputWrapperProps } from '@mantine/core';
|
|
3
|
-
type AddressInputProps =
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type AddressInputProps = {
|
|
4
|
+
provinces?: string[];
|
|
5
|
+
placeholder?: {
|
|
6
|
+
province?: string;
|
|
7
|
+
district?: string;
|
|
8
|
+
ward?: string;
|
|
9
|
+
address?: string;
|
|
10
|
+
};
|
|
11
|
+
} & Omit<InputWrapperProps, 'children'>;
|
|
12
|
+
export declare const AddressInput: ({ error, provinces: provincesInit, placeholder, ...props }: AddressInputProps) => React.JSX.Element;
|
|
@@ -55,3 +55,5 @@ export { AdBlock } from './adBlock';
|
|
|
55
55
|
export type { AdUnitItem, Props as AdBlockProps } from './adBlock';
|
|
56
56
|
export { FixedBottomAdBlock } from './adBlock/fixedBottomAdBlock';
|
|
57
57
|
export type { Props as FixedBottomAdBlockProps } from './adBlock/fixedBottomAdBlock';
|
|
58
|
+
export { AddressInput } from './addressInput';
|
|
59
|
+
export type { AddressInputProps } from './addressInput';
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
import { Input } from "../../mantine";
|
|
2
4
|
import { PhoneProps } from "../../mantine/phone";
|
|
5
|
+
import { AddressInputProps } from "../../molecules/addressInput";
|
|
6
|
+
type InputType = 'phone' | 'full_name' | 'email' | 'gender' | 'dob' | 'otp' | 'password' | 'confirm_password' | 'term' | 'address';
|
|
7
|
+
type ElementCommonProps = {
|
|
8
|
+
label?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
type?: InputType;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
type FullNameProps = ElementCommonProps & typeof Input;
|
|
14
|
+
type AddressProps = ElementCommonProps & AddressInputProps;
|
|
15
|
+
export type DynamicInputOrderProps = Array<InputType | ElementCommonProps | FullNameProps | AddressProps>;
|
|
3
16
|
export type DynamicFormProps = {
|
|
4
17
|
defaultCountry?: PhoneProps['defaultCountry'];
|
|
5
|
-
inputOrder?:
|
|
18
|
+
inputOrder?: DynamicInputOrderProps;
|
|
6
19
|
withSimilac?: boolean;
|
|
7
20
|
customTerms?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export declare const DynamicForm: <T = any>({ inputOrder, withSimilac, customTerms, }: DynamicFormProps) => React.JSX.Element;
|
|
21
|
+
} & BoxProps;
|
|
22
|
+
export declare const DynamicForm: <T = any>({ inputOrder, withSimilac, customTerms, ...rest }: DynamicFormProps) => React.JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledDynamicForm: import("styled-components").StyledComponent<(<C = "div">(props: import("@mantine/utils").PolymorphicComponentProps<C, import("@mantine/core").BoxProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(import("@mantine/core").BoxProps & {
|
|
3
|
+
component?: any;
|
|
4
|
+
} & Omit<Pick<any, string | number | symbol>, "component" | keyof import("@mantine/core").BoxProps> & {
|
|
5
|
+
ref?: any;
|
|
6
|
+
}) | (import("@mantine/core").BoxProps & {
|
|
7
|
+
component: import("react").ElementType<any>;
|
|
8
|
+
})>, never> & Record<string, never>, any, {}, never>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
import { PhoneProps } from "../../mantine/phone";
|
|
4
|
+
import { DynamicInputOrderProps } from '../dynamicForm';
|
|
5
|
+
import { OnboardingItemShareProps } from '../stepRenderer';
|
|
6
|
+
export type FrisoFormHandleProps = {
|
|
7
|
+
submitForm: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type FrisoFormProps = {
|
|
10
|
+
inputOrder: DynamicInputOrderProps;
|
|
11
|
+
onClose(): void;
|
|
12
|
+
onSubmit(data: any): void;
|
|
13
|
+
canSkip?: boolean;
|
|
14
|
+
defaultCountry?: PhoneProps['defaultCountry'];
|
|
15
|
+
defaultValues?: any;
|
|
16
|
+
customTerms?: React.ReactNode;
|
|
17
|
+
customFormTexts?: {
|
|
18
|
+
heading?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
};
|
|
21
|
+
validateSchema?: any;
|
|
22
|
+
} & Partial<OnboardingItemShareProps> & BoxProps;
|
|
23
|
+
export type FrisoFormRefProps = {
|
|
24
|
+
submitForm: () => void;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: React.ForwardRefExoticComponent<{
|
|
27
|
+
inputOrder: DynamicInputOrderProps;
|
|
28
|
+
onClose(): void;
|
|
29
|
+
onSubmit(data: any): void;
|
|
30
|
+
canSkip?: boolean;
|
|
31
|
+
defaultCountry?: import("libphonenumber-js/types").CountryCode;
|
|
32
|
+
defaultValues?: any;
|
|
33
|
+
customTerms?: React.ReactNode;
|
|
34
|
+
customFormTexts?: {
|
|
35
|
+
heading?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
};
|
|
38
|
+
validateSchema?: any;
|
|
39
|
+
} & Partial<OnboardingItemShareProps> & BoxProps & React.RefAttributes<FrisoFormRefProps>>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LocaleType } from 'interfaces/types';
|
|
2
|
+
import { UseTranslationsReturn } from "../../../hooks";
|
|
3
|
+
import * as yup from 'yup';
|
|
4
|
+
export declare const frisoOnboardingSchema: (t: UseTranslationsReturn<LocaleType>['t'], optionalTerm?: boolean) => yup.ObjectSchema<{
|
|
5
|
+
phone: string;
|
|
6
|
+
first_name: string;
|
|
7
|
+
last_name: string;
|
|
8
|
+
email: string;
|
|
9
|
+
address: {};
|
|
10
|
+
term: boolean;
|
|
11
|
+
}, yup.AnyObject, {
|
|
12
|
+
phone: "";
|
|
13
|
+
first_name: undefined;
|
|
14
|
+
last_name: undefined;
|
|
15
|
+
email: "";
|
|
16
|
+
address: undefined;
|
|
17
|
+
term: undefined;
|
|
18
|
+
}, "">;
|
|
@@ -11,6 +11,7 @@ export type { Props as OnboardingProviderProps } from './provider';
|
|
|
11
11
|
export type { Props as ResultScreenProps } from './resultScreen';
|
|
12
12
|
export type { SimilacOnboardingFormProps } from './similacForm';
|
|
13
13
|
export type { UpdatePasswordFormProps } from './updatePasswordForm';
|
|
14
|
+
export type { FrisoFormHandleProps, FrisoFormProps } from './frisoForm';
|
|
14
15
|
export declare const Onboarding: {
|
|
15
16
|
Provider: ({ children, siteType, setSharedData: _setSharedData, }: import("./provider").Props) => import("react").JSX.Element;
|
|
16
17
|
Modal: ({ children, withSimilac, banner, withPortal, ...rest }: import("./modal").OnboardingModalProps) => import("react").JSX.Element;
|
|
@@ -22,6 +23,20 @@ export declare const Onboarding: {
|
|
|
22
23
|
PersonalInfoForm: ({ onClose, onSubmit, canSkip, loading, errorMessage, initialData, }: import("./personalInfoForm").PersonalInfoFormProps) => import("react").JSX.Element;
|
|
23
24
|
ResultScreen: ({ onClose, ...rest }: import("./resultScreen").Props) => import("react").JSX.Element;
|
|
24
25
|
SimilacForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, customTerms, defaultValues, isActive, ...rest }: import("./similacForm").SimilacOnboardingFormProps) => import("react").JSX.Element;
|
|
26
|
+
FrisoForm: import("react").ForwardRefExoticComponent<{
|
|
27
|
+
inputOrder: import("./dynamicForm").DynamicInputOrderProps;
|
|
28
|
+
onClose(): void;
|
|
29
|
+
onSubmit(data: any): void;
|
|
30
|
+
canSkip?: boolean;
|
|
31
|
+
defaultCountry?: import("libphonenumber-js/types").CountryCode;
|
|
32
|
+
defaultValues?: any;
|
|
33
|
+
customTerms?: import("react").ReactNode;
|
|
34
|
+
customFormTexts?: {
|
|
35
|
+
heading?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
};
|
|
38
|
+
validateSchema?: any;
|
|
39
|
+
} & Partial<import("./stepRenderer").OnboardingItemShareProps> & import("@mantine/core").BoxProps & import("react").RefAttributes<import("./frisoForm").FrisoFormRefProps>>;
|
|
25
40
|
UpdatePasswordForm: ({ onClose, onSubmit, canSkip, errorMessage, loading, }: import("./updatePasswordForm").UpdatePasswordFormProps) => import("react").JSX.Element;
|
|
26
41
|
StepRenderer: ({ children, onStepChange }: import("./stepRenderer").Props) => import("react").JSX.Element;
|
|
27
42
|
ThankYou: ({ onClose, thanksPageInfo, isActive, ...rest }: import("./thankyou").ThankYouProps) => import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ContainerProps } from '@mantine/core';
|
|
3
3
|
export type OnboardingProps = {
|
|
4
|
-
heading
|
|
5
|
-
description
|
|
4
|
+
heading?: string;
|
|
5
|
+
description?: React.ReactNode;
|
|
6
6
|
imgSrc?: string;
|
|
7
7
|
hiddenLogo?: boolean;
|
|
8
8
|
} & ContainerProps;
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./fixedBottomAdBlock-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./fixedBottomAdBlock-865d2b76.js"),r=require("./index-fe97da99.js"),o=require("./index-9d289822.js"),t=require("./index-f30b7fae.js"),i=require("./index.styles-61850100.js"),a=require("./index-8e32e888.js"),s=require("./index-107fb8c0.js"),d=require("./index-5c7a3006.js"),n=require("./index-8099d366.js"),u=require("./index-9753d36d.js"),p=require("./index-3448f5f5.js"),x=require("./index-2fe2d038.js"),l=require("./index-4a0a3748.js"),c=require("./index-e9ef85ec.js"),q=require("./dataTransform-a5cecbfc.js"),g=require("./index-4c364a9a.js"),b=require("./index-1e595fa8.js"),C=require("./footer.js");require("react"),require("./utils-a41f803f.js"),require("./useUniqueId-8c760038.js"),require("./gAssets.js"),require("./index-d4e56d53.js"),require("date-fns/locale"),require("./Onboarding-c7422226.js"),require("./isProduction-7730b567.js"),require("./theme-5da51ca6.js"),require("./tslib.es6-f1c64250.js"),require("@mantine/core"),require("@mantine/dates"),require("./index-a645c8d5.js"),require("dayjs"),require("styled-components"),require("@mantine/carousel"),require("./screenSizeContext-4d129b5e.js"),require("lodash/throttle"),require("@mantine/hooks"),require("./index.styled-9199e40a.js"),require("./translationsContext-cd7c4d05.js"),require("string-format"),require("./index-a735a3ee.js"),require("keen-slider/react"),require("./useTranslations-1b094e14.js"),require("date-fns"),require("./types-bde49970.js"),require("./index.styled-86bb8b1d.js"),require("./cookieHelper-2a0cdb21.js"),require("slugify"),require("./routing-582206bc.js"),require("dayjs/plugin/relativeTime"),require("./index-1cdd790d.js"),require("./index-e3c67c86.js"),require("react-hook-form"),require("./useHealthToolCache-be63f21b.js"),require("./getDynamicHealthTool-e7cdbe5b.js"),require("./core-4ea11b34.js"),require("./normalizeLink-5ee3f408.js"),require("./useOutsideClick-72349103.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-6f6a4505.js"),require("uuid"),require("./constants-e3ec8c5c.js"),require("./index-63f95fb0.js"),require("lodash/debounce"),require("./useIsInit-c2fb2c7d.js"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-86ad7c80.js"),require("react-dom"),require("./index.styled-7171d007.js"),require("./index-85288467.js"),require("./utils-01248207.js"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.Carousel=e.Carousel,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.Avatar=r.Avatar,exports.Flag=r.Flag,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.AuthorBadge=t.AuthorBadge,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.ImageWithHandler=t.ImageWithHandler,exports.Heading=i.Heading,exports.Icon=i.Icon,exports.Menu=i.Menu,exports.PureInput=i.PureInput,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Label=s.Label,exports.Logo=d.Logo,exports.AdBlock=n.AdBlock,exports.DatePicker=n.DatePicker,exports.DoctorInfo=n.DoctorInfo,exports.Dropdown=n.Dropdown,exports.MobileBottomNavigation=n.MobileBottomNavigation,exports.MobileBottomNavigationIcon=n.MobileBottomNavigationIcon,exports.Radio=n.Radio,exports.RadioGroup=n.RadioGroup,exports.SurveyQuestionCard=n.SurveyQuestionCard,exports.ToolsBannerCard=n.ToolsBannerCard,exports.Text=u.Text,exports.Container=p.Container,exports.LogoIcon=p.LogoIcon,exports.Drawer=x.Drawer,exports.RadioImageGroup=x.RadioImageGroup,exports.Modal=l.Modal,exports.NewBabyProfileRadio=l.NewBabyProfileRadio,exports.CustomReferenceDot=c.CustomReferenceDot,exports.Popup=q.Popup,exports.PillCarousel=g.PillCarousel,exports.AddressInput=b.AddressInput,exports.Footer=C.Footer;
|
package/build/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-c7422226.js");var O=require("./index-d4e56d53.js"),e=require("./isProduction-7730b567.js");exports.BEARER_TOKEN_COOKIE=O.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=O.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=O.CARE_LOCALES,exports.CDN_ADDRESS=O.CDN_ADDRESS,exports.DATE_FNS_LOCALE=O.DATE_FNS_LOCALE,exports.ECOM_LOCALES=O.ECOM_LOCALES,exports.FAVICONS=O.FAVICONS,exports.ISO_FORMAT=O.ISO_FORMAT,exports.LOCALE_SPECS=O.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return O.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=O.STATIC_PAGES,exports.TOGETHER_LOCALES=O.TOGETHER_LOCALES,exports.UP_BASEPATH=O.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=O.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=O.domainLocales,exports.siteHost=O.siteHost,exports.siteOptions=O.siteOptions,exports.isProduction=e.isProduction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./tslib.es6-f1c64250.js"),e=require("./isProduction-7730b567.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react"),i=require("./index.styled-5b431d0a.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e);const l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>{var i,o,t,r;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:a(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:a(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:a(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:a(null===(r=null==e?void 0:e.reviewed)||void 0===r?void 0:r.fact_check)}):null,category:s(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(s),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},a=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},u=e=>({postTitle:e.post_title,permalink:e.permalink}),s=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>s(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?u(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,r,a,d,u,s,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(a=e.user)||void 0===a?void 0:a.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,r,a,d,u,s,m,v,c,p,_,g,y,w,h,b,k,I,C,x,S,T,P,A,B,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(r=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(a=e.user)||void 0===a?void 0:a.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.partner_id):"",doctorId:(null===(A=e.mentioned)||void 0===A?void 0:A.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:r,formatUserProfile:a,formatBMIResult:e=>{var i,o,t,l,n,r,a,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(a=null==e?void 0:e.illustrator)&&void 0!==a?a:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:d,formatReviewedCategory:u,formatCategory:s,formatCategoryApi:e=>e?{categoryInfo:s(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(r),subCategories:(e.data.sub_categories||[]).map(s)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?a(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?a(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=({type:e="lead",closeIcon:o,isOpen:l=!0,onClose:n,children:r,className:a="",enableAnimation:d=!0})=>t.default.createElement(t.default.Fragment,null,t.default.createElement(i.StyledPopup$2,{"data-open":l,"data-type":e,"data-animation":d},t.default.createElement("div",{className:`${a||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),r)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=r,exports.formatCategory=s,exports.formatComment=f,exports.formatCommunity=c,exports.formatOvulationInfo=y,exports.formatPost=g,exports.formatTopic=p,exports.formatUserProfileUrl=w;
|
|
1
|
+
"use strict";var e=require("react"),i=require("./index.styled-86bb8b1d.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e);const l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>{var i,o,t,r;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:a(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:a(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:a(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:a(null===(r=null==e?void 0:e.reviewed)||void 0===r?void 0:r.fact_check)}):null,category:s(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(s),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},a=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},u=e=>({postTitle:e.post_title,permalink:e.permalink}),s=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>s(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?u(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,r,a,d,u,s,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(a=e.user)||void 0===a?void 0:a.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,r,a,d,u,s,m,v,c,p,_,g,y,w,h,b,k,I,C,x,S,T,P,A,B,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(r=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(a=e.user)||void 0===a?void 0:a.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.partner_id):"",doctorId:(null===(A=e.mentioned)||void 0===A?void 0:A.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:r,formatUserProfile:a,formatBMIResult:e=>{var i,o,t,l,n,r,a,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(a=null==e?void 0:e.illustrator)&&void 0!==a?a:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:d,formatReviewedCategory:u,formatCategory:s,formatCategoryApi:e=>e?{categoryInfo:s(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(r),subCategories:(e.data.sub_categories||[]).map(s)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?a(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?a(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=({type:e="lead",closeIcon:o,isOpen:l=!0,onClose:n,children:r,className:a="",enableAnimation:d=!0})=>t.default.createElement(t.default.Fragment,null,t.default.createElement(i.StyledPopup$2,{"data-open":l,"data-type":e,"data-animation":d},t.default.createElement("div",{className:`${a||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),r)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=r,exports.formatCategory=s,exports.formatComment=f,exports.formatCommunity=c,exports.formatOvulationInfo=y,exports.formatPost=g,exports.formatTopic=p,exports.formatUserProfileUrl=w;
|