@hhgtech/hhg-components 1.26.79 → 1.26.80
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 +5 -0
- package/build/components/molecules/addressInput/useAddress.d.ts +12 -0
- package/build/components/molecules/addressInput/utils.d.ts +2 -0
- package/build/components/onboarding/dynamicForm/index.d.ts +3 -13
- package/build/components/onboarding/generateSchema.d.ts +11 -0
- package/build/components/onboarding/index.d.ts +2 -1
- package/build/components/onboarding/onboardingForm/default.d.ts +13 -0
- package/build/components/onboarding/onboardingForm/index.d.ts +4 -14
- package/build/components/onboarding/onboardingForm/index.styled.d.ts +1 -1
- package/build/components/onboarding/onboardingForm/similac.d.ts +20 -0
- package/build/components/onboarding/onboardingModal/index.d.ts +4 -4
- package/build/components/onboarding/otpForm/index.styled.d.ts +1 -1
- package/build/components/ui/onboarding/index.d.ts +2 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-4f3f19e0.js → core-0d383f5c.js} +1 -1
- package/build/{dataTransform-b4d0ed89.js → dataTransform-73461585.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +7 -7
- 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-c4d502e6.js → core-cf52ae48.js} +1 -1
- package/build/esm/{dataTransform-a1a00fbe.js → dataTransform-1bb7bf8b.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-802f06a5.js → fixedBottomAdBlock-813ecf4f.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-819bdd86.js → getDynamicHealthTool-fe66dd59.js} +1 -1
- package/build/esm/{getSocialList-f779ca64.js → getSocialList-f074f405.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-0738ad70.js +1 -0
- package/build/esm/{index-420c37d7.js → index-23f5c980.js} +1 -1
- package/build/esm/{index-f060186e.js → index-308c4f77.js} +1 -1
- package/build/esm/{index-3d2af476.js → index-34f46f2b.js} +1 -1
- package/build/esm/{index-17f4023b.js → index-3c0f88cd.js} +2 -2
- package/build/esm/{index-4c4dff52.js → index-65845405.js} +1 -1
- package/build/esm/{index-881c07e0.js → index-66252244.js} +1 -1
- package/build/esm/{index-8f01b953.js → index-68817c09.js} +1 -1
- package/build/esm/{index-84a7f4a1.js → index-7796d899.js} +1 -1
- package/build/esm/{index-094b7121.js → index-7e002114.js} +1 -1
- package/build/esm/index-9b6bb7ec.js +1 -0
- package/build/esm/{index-c11d06d8.js → index-9c5c8ba2.js} +1 -1
- package/build/esm/{index-23b58046.js → index-9de52c93.js} +1 -1
- package/build/esm/{index-997ce88f.js → index-a25f72c3.js} +1 -1
- package/build/esm/{index-3399e2bc.js → index-b0e0e6b6.js} +1 -1
- package/build/esm/{index-14836320.js → index-b3ffea30.js} +1 -1
- package/build/esm/{index-2a36957b.js → index-c4dfd7f5.js} +1 -1
- package/build/esm/index-ce22ba3c.js +1 -0
- package/build/esm/{index-45eb06e5.js → index-e9dfa3d7.js} +6 -6
- package/build/esm/{index-5b6e9a69.js → index-f3408246.js} +1 -1
- package/build/esm/{index-92d7b448.js → index-f4fefa76.js} +1 -1
- package/build/esm/{index-7be22852.js → index-f917acc3.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-25b60b2e.js +50 -0
- package/build/esm/{index.styled-0c6c9b0f.js → index.styled-463e9edb.js} +1 -1
- package/build/esm/index.styled-b581726b.js +175 -0
- package/build/esm/{index.styled-fab7579e.js → index.styled-cef62603.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/pwg.js +5 -5
- package/build/esm/{routing-ab183b0a.js → routing-b2f24574.js} +1 -1
- package/build/esm/{screenSizeContext-7a0af3e0.js → screenSizeContext-2619250c.js} +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsContext-f8d91131.js → translationsContext-26e13ab7.js} +1 -1
- package/build/esm/translationsProvider-88384373.js +1 -0
- package/build/esm/{types-8500d581.js → types-5a281f0e.js} +1 -1
- package/build/esm/{types-915c1818.js → types-ecbc4b08.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-106a19ef.js +1 -0
- package/build/esm/{useRafState-123964c2.js → useRafState-08447cd8.js} +1 -1
- package/build/esm/useTranslations-a0acdac6.js +1 -0
- package/build/esm/vaccination.js +1 -1
- package/build/{fixedBottomAdBlock-d2ea803e.js → fixedBottomAdBlock-a7c65119.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-393c1766.js → getDynamicHealthTool-774a81ad.js} +1 -1
- package/build/{getSocialList-9f8fc1ff.js → getSocialList-3dff1241.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-e3843753.js → index-03a9c9d8.js} +1 -1
- package/build/{index-c6561dc3.js → index-0a06dfeb.js} +1 -1
- package/build/{index-c774f32d.js → index-0fb992ee.js} +1 -1
- package/build/{index-9392cac3.js → index-2531bacf.js} +1 -1
- package/build/{index-327a3d5e.js → index-3147c5a2.js} +1 -1
- package/build/{index-409c1ad5.js → index-3c9ee780.js} +1 -1
- package/build/{index-a135010b.js → index-5e26262f.js} +1 -1
- package/build/{index-a9574a10.js → index-69fae73a.js} +1 -1
- package/build/{index-b8c7f959.js → index-6d7cdd7f.js} +1 -1
- package/build/{index-6121bb68.js → index-76959864.js} +1 -1
- package/build/{index-94c2d1f1.js → index-8a36824a.js} +1 -1
- package/build/{index-1d920817.js → index-8a38dad3.js} +1 -1
- package/build/{index-944125d7.js → index-99be6033.js} +1 -1
- package/build/index-a0c085f9.js +1 -0
- package/build/{index-9bb902d6.js → index-a24f6f4b.js} +1 -1
- package/build/{index-6a1ea6ee.js → index-aa84d420.js} +1 -1
- package/build/{index-477d6689.js → index-b299ac6a.js} +1 -1
- package/build/{index-69266f60.js → index-c104b595.js} +8 -8
- package/build/{index-67e7f738.js → index-c8b2a460.js} +1 -1
- package/build/{index-3681ea2e.js → index-dfbcf878.js} +1 -1
- package/build/{index-951c8458.js → index-f6eac812.js} +1 -1
- package/build/{index-0b7cf98b.js → index-f8fbc1fc.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-10ec00a4.js → index.styled-76d383dd.js} +1 -1
- package/build/{index.styled-59e1462e.js → index.styled-97a9f067.js} +1 -1
- package/build/index.styled-b6fd07b1.js +175 -0
- package/build/{index.styled-4f7e809f.js → index.styled-dc0e969f.js} +3 -3
- package/build/interfaces/constants/index.d.ts +1 -0
- package/build/interfaces/types/Address.d.ts +4 -0
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-2d13aed9.js → routing-9049390f.js} +1 -1
- package/build/{screenSizeContext-137d9f4a.js → screenSizeContext-fada5eec.js} +10 -10
- package/build/together.js +1 -1
- package/build/{translationsContext-a7c29424.js → translationsContext-3304a3c8.js} +1 -1
- package/build/translationsProvider-26b84e4e.js +1 -0
- package/build/{types-4bd69356.js → types-bd9643ef.js} +1 -1
- package/build/{types-83b2ee93.js → types-d873bc48.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useHealthToolCache-134b91fb.js → useHealthToolCache-c1d1177f.js} +1 -1
- package/build/{useRafState-a6cf4f08.js → useRafState-5adb2387.js} +1 -1
- package/build/{useTranslations-6c8cff2b.js → useTranslations-bfe34f5e.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/esm/index-0357b1f3.js +0 -1
- package/build/esm/index-d9458bad.js +0 -1
- package/build/esm/index-ecfeafe8.js +0 -1
- package/build/esm/index.styled-94318e25.js +0 -50
- package/build/esm/translationsProvider-72988132.js +0 -1
- package/build/esm/useHealthToolCache-6a612c7d.js +0 -1
- package/build/esm/useTranslations-0f250e50.js +0 -1
- package/build/esm/utils-fae42306.js +0 -166
- package/build/index-bdc53078.js +0 -1
- package/build/translationsProvider-5f94700a.js +0 -1
- package/build/utils-13ef0218.js +0 -166
- /package/build/{BMI_BOYS.percentile.monthly-e4dce77d.js → BMI_BOYS.percentile.monthly-f5d9b19f.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-1a4bf990.js → BMI_BOYS.percentile.weekly-1a19db1e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-c875657f.js → BMI_BOYS.percentile.yearly-fdbb6520.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-0ef55a3b.js → BMI_BOYS.zscore.monthly-e255803d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-eff51c36.js → BMI_BOYS.zscore.weekly-20fc83f8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-0468379f.js → BMI_BOYS.zscore.yearly-07be8d15.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-9f54c16e.js → BMI_GIRLS.percentile.monthly-680c5ff0.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-99eae3b8.js → BMI_GIRLS.percentile.weekly-975e3806.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-33ef612c.js → BMI_GIRLS.percentile.yearly-0f3d3fb5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-32c38793.js → BMI_GIRLS.zscore.monthly-563d8d96.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-04579972.js → BMI_GIRLS.zscore.weekly-fe0921e9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-bafd006a.js → BMI_GIRLS.zscore.yearly-7145e13d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-e0ad6361.js → HEAD CIRCUM_BOYS.percentile.monthly-70905011.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-21e2b1cb.js → HEAD CIRCUM_BOYS.percentile.weekly-e25e629d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-74786baf.js → HEAD CIRCUM_BOYS.percentile.yearly-ac641a3d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-48d949d2.js → HEAD CIRCUM_BOYS.zscore.monthly-ec7ef638.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-185e3e92.js → HEAD CIRCUM_BOYS.zscore.weekly-3bae77cd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-40e4f7ce.js → HEAD CIRCUM_BOYS.zscore.yearly-5b8fda4f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b146e332.js → HEAD CIRCUM_GIRLS.percentile.monthly-37e5f40a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-436da616.js → HEAD CIRCUM_GIRLS.percentile.weekly-acaa3c59.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-1f8113dd.js → HEAD CIRCUM_GIRLS.percentile.yearly-402a268d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-9490e10e.js → HEAD CIRCUM_GIRLS.zscore.monthly-4de18cfb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-9d252be2.js → HEAD CIRCUM_GIRLS.zscore.weekly-ff6a8b38.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0ca69814.js → HEAD CIRCUM_GIRLS.zscore.yearly-9ece13f3.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-1b48249a.js → HEIGHT_BOYS.percentile.monthly-41d58a15.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-2a324460.js → HEIGHT_BOYS.percentile.weekly-eb9312b3.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-e208f145.js → HEIGHT_BOYS.percentile.yearly-7bfe10f7.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-2c5b3c26.js → HEIGHT_BOYS.zscore.monthly-ef82b1b1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-b9e76a64.js → HEIGHT_BOYS.zscore.weekly-a57c6bf8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-b9fe5af5.js → HEIGHT_BOYS.zscore.yearly-248fb52d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-e25d1e66.js → HEIGHT_GIRLS.percentile.monthly-2e37cad3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-aff351f7.js → HEIGHT_GIRLS.percentile.weekly-1ad6b937.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-762a0b47.js → HEIGHT_GIRLS.percentile.yearly-e49a42e3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-43c78958.js → HEIGHT_GIRLS.zscore.monthly-c2e22d64.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-a5bc898e.js → HEIGHT_GIRLS.zscore.weekly-e3e3b9ab.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-5d415b1c.js → HEIGHT_GIRLS.zscore.yearly-db9c8eff.js} +0 -0
- /package/build/{Onboarding-6e87ab37.js → Onboarding-fc4f3b76.js} +0 -0
- /package/build/{Visible-d1eeb137.js → Visible-3f691684.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-c1c345e7.js → WEIGHT_BOYS.percentile.monthly-1bdfe744.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-2d6a2e22.js → WEIGHT_BOYS.percentile.weekly-220d30b9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-9924892b.js → WEIGHT_BOYS.percentile.yearly-f9f89460.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-77376079.js → WEIGHT_BOYS.zscore.monthly-ca48a0be.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-33ea6ec5.js → WEIGHT_BOYS.zscore.weekly-31c254bb.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-0fe59c0b.js → WEIGHT_BOYS.zscore.yearly-9de33e52.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-f0520590.js → WEIGHT_GIRLS.percentile.monthly-2b2f6145.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-09379059.js → WEIGHT_GIRLS.percentile.weekly-4b8a529d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-2a73ec92.js → WEIGHT_GIRLS.percentile.yearly-f9b558fa.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-95768333.js → WEIGHT_GIRLS.zscore.monthly-5de2012d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-ef941585.js → WEIGHT_GIRLS.zscore.weekly-95d74bb7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-addff160.js → WEIGHT_GIRLS.zscore.yearly-28728f9a.js} +0 -0
- /package/build/{constants-9c5d22a1.js → constants-6a8f9932.js} +0 -0
- /package/build/{cookieHelper-3034db10.js → cookieHelper-d1876296.js} +0 -0
- /package/build/{dataTransform-25f407aa.js → dataTransform-576a39bc.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-f86cfd4d.js → BMI_BOYS.percentile.monthly-75a09140.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-db7c3667.js → BMI_BOYS.percentile.weekly-9fed059a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-cbe266ff.js → BMI_BOYS.percentile.yearly-d29ac675.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-7e3f89fb.js → BMI_BOYS.zscore.monthly-135fe1b9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f2bdb26b.js → BMI_BOYS.zscore.weekly-7ad8abb1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d7c8f86d.js → BMI_BOYS.zscore.yearly-5f9389c6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-1fc41d66.js → BMI_GIRLS.percentile.monthly-f65e1957.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-d226524b.js → BMI_GIRLS.percentile.weekly-152a951d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-4ff1d7c9.js → BMI_GIRLS.percentile.yearly-09bf4573.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-269802a6.js → BMI_GIRLS.zscore.monthly-d6fc5992.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-a90c17a4.js → BMI_GIRLS.zscore.weekly-f82f4768.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-f9b74303.js → BMI_GIRLS.zscore.yearly-5a034d51.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-fac0e666.js → HEAD CIRCUM_BOYS.percentile.monthly-d83deab1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-20166f29.js → HEAD CIRCUM_BOYS.percentile.weekly-c3f21c25.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c6c29b59.js → HEAD CIRCUM_BOYS.percentile.yearly-c129e645.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ea581226.js → HEAD CIRCUM_BOYS.zscore.monthly-2c24c1de.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b54d876a.js → HEAD CIRCUM_BOYS.zscore.weekly-bedad859.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b30fcd66.js → HEAD CIRCUM_BOYS.zscore.yearly-21ddf9fc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-dea5a76b.js → HEAD CIRCUM_GIRLS.percentile.monthly-302fee72.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2e61a142.js → HEAD CIRCUM_GIRLS.percentile.weekly-696287ed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-0b164b6b.js → HEAD CIRCUM_GIRLS.percentile.yearly-4c10dce1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7d9976b4.js → HEAD CIRCUM_GIRLS.zscore.monthly-9403113b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-aa6b3500.js → HEAD CIRCUM_GIRLS.zscore.weekly-6274ed23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-495c5e4d.js → HEAD CIRCUM_GIRLS.zscore.yearly-e1a980e3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ba6277d5.js → HEIGHT_BOYS.percentile.monthly-76e17ae9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-77e4dce6.js → HEIGHT_BOYS.percentile.weekly-6b7b83b1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-febce971.js → HEIGHT_BOYS.percentile.yearly-24592edb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-57cf61cd.js → HEIGHT_BOYS.zscore.monthly-f8a72d4d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-4a749edb.js → HEIGHT_BOYS.zscore.weekly-430612e7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-787f7bba.js → HEIGHT_BOYS.zscore.yearly-eec66e8b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-df87b5f3.js → HEIGHT_GIRLS.percentile.monthly-a0db0c4b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c9ba254c.js → HEIGHT_GIRLS.percentile.weekly-75bd4846.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-a9cc83dd.js → HEIGHT_GIRLS.percentile.yearly-0ea3695c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-96a010ab.js → HEIGHT_GIRLS.zscore.monthly-ba3eb5d8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-160f4d31.js → HEIGHT_GIRLS.zscore.weekly-a03b81a0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-88e3e656.js → HEIGHT_GIRLS.zscore.yearly-35b77d81.js} +0 -0
- /package/build/esm/{Onboarding-9d71759b.js → Onboarding-269b18bf.js} +0 -0
- /package/build/esm/{Visible-8bc5f325.js → Visible-dd595eb0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-77f2dd48.js → WEIGHT_BOYS.percentile.monthly-d38c03fd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-bd0eeb7f.js → WEIGHT_BOYS.percentile.weekly-7a3ab35a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-bff74972.js → WEIGHT_BOYS.percentile.yearly-3a072431.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-3a5cb6a8.js → WEIGHT_BOYS.zscore.monthly-be552426.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-4943a6aa.js → WEIGHT_BOYS.zscore.weekly-fa1055ce.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-875256ca.js → WEIGHT_BOYS.zscore.yearly-cae2d86d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-24ec4def.js → WEIGHT_GIRLS.percentile.monthly-834157ef.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-0de9d76a.js → WEIGHT_GIRLS.percentile.weekly-2a28e29b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-afc9bc76.js → WEIGHT_GIRLS.percentile.yearly-604860a7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9ea6fee7.js → WEIGHT_GIRLS.zscore.monthly-1ae66b55.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ab6f6249.js → WEIGHT_GIRLS.zscore.weekly-200187b4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-00a022c3.js → WEIGHT_GIRLS.zscore.yearly-aea18f07.js} +0 -0
- /package/build/esm/{constants-e8d53b26.js → constants-1220fa2e.js} +0 -0
- /package/build/esm/{cookieHelper-b6b0cc7b.js → cookieHelper-d376de95.js} +0 -0
- /package/build/esm/{dataTransform-77a3a20a.js → dataTransform-a7f7507b.js} +0 -0
- /package/build/esm/{index-ef946880.js → index-85d0c071.js} +0 -0
- /package/build/esm/{isProduction-fb31bf7f.js → isProduction-ba31f9bc.js} +0 -0
- /package/build/esm/{localizeNumberFormat-81a88e07.js → localizeNumberFormat-a36b2553.js} +0 -0
- /package/build/esm/{normalizeLink-dc441884.js → normalizeLink-a68d6af5.js} +0 -0
- /package/build/esm/{theme-8c2038f6.js → theme-f3e4c5fe.js} +0 -0
- /package/build/esm/{tslib.es6-4aeb965c.js → tslib.es6-e0dc322b.js} +0 -0
- /package/build/esm/{types-d2bb5fb1.js → types-b372b8dd.js} +0 -0
- /package/build/esm/{useIsInit-741b820c.js → useIsInit-48540f39.js} +0 -0
- /package/build/esm/{useOutsideClick-7d35c7ed.js → useOutsideClick-ec29699a.js} +0 -0
- /package/build/esm/{useScrollbarSize-1ae895b6.js → useScrollbarSize-09bb636a.js} +0 -0
- /package/build/esm/{useUniqueId-98aaed9a.js → useUniqueId-77568898.js} +0 -0
- /package/build/esm/{utils-8887c330.js → utils-89666a5f.js} +0 -0
- /package/build/{index-31ba8e77.js → index-1816ac3b.js} +0 -0
- /package/build/{isProduction-13dc718e.js → isProduction-d0867b60.js} +0 -0
- /package/build/{localizeNumberFormat-d4472c3d.js → localizeNumberFormat-2f8632fb.js} +0 -0
- /package/build/{normalizeLink-e4964b77.js → normalizeLink-82bf3115.js} +0 -0
- /package/build/{theme-92505805.js → theme-3b950221.js} +0 -0
- /package/build/{tslib.es6-a55b754c.js → tslib.es6-466a7233.js} +0 -0
- /package/build/{types-ffbb3286.js → types-8855d132.js} +0 -0
- /package/build/{useIsInit-4f0bbe47.js → useIsInit-b47011c2.js} +0 -0
- /package/build/{useOutsideClick-4c685332.js → useOutsideClick-28c9cb83.js} +0 -0
- /package/build/{useScrollbarSize-4543c446.js → useScrollbarSize-867d8cdb.js} +0 -0
- /package/build/{useUniqueId-ca7c3237.js → useUniqueId-bcfbb457.js} +0 -0
- /package/build/{utils-d3057a4a.js → utils-5413e4dd.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-76959864.js"),t=require("react"),r=require("./Onboarding-fc4f3b76.js"),a=require("./theme-3b950221.js"),l=require("./index-5e26262f.js"),o=require("styled-components"),n=require("./index-0a06dfeb.js"),i=require("./index-c104b595.js"),s=require("./index-f6eac812.js"),d=require("./screenSizeContext-fada5eec.js"),c=require("dayjs"),u=require("./useTranslations-bfe34f5e.js");require("lodash/debounce"),require("./isProduction-d0867b60.js"),require("./index-8a38dad3.js");var C=require("./localizeNumberFormat-2f8632fb.js"),h=require("./utils-5413e4dd.js");require("./gAssets.js"),require("@mantine/core"),require("./index-69fae73a.js"),require("./index-99be6033.js");var m=require("./index-c8b2a460.js");require("@mantine/dates"),require("@mantine/hooks");var f=require("./useOutsideClick-28c9cb83.js"),y=require("./tslib.es6-466a7233.js"),p=require("./index-2531bacf.js"),b=require("recharts"),g=require("lodash/chunk");function w(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-bcfbb457.js"),require("./index.styled-97a9f067.js"),require("./translationsContext-3304a3c8.js"),require("string-format"),require("@mantine/carousel"),require("lodash/throttle"),require("date-fns/locale"),require("./index-f8fbc1fc.js"),require("./useScrollbarSize-867d8cdb.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-220d30b9.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-1bdfe744.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-f9f89460.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-eb9312b3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-41d58a15.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-7bfe10f7.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-e25e629d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-70905011.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-ac641a3d.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-1a19db1e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-f5d9b19f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-fdbb6520.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-4b8a529d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-2b2f6145.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-f9b558fa.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-1ad6b937.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-2e37cad3.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-e49a42e3.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-acaa3c59.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-37e5f40a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-402a268d.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-975e3806.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-680c5ff0.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-0f3d3fb5.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-31c254bb.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-ca48a0be.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-9de33e52.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-a57c6bf8.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-ef82b1b1.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-248fb52d.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-3bae77cd.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-ec7ef638.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-5b8fda4f.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-20fc83f8.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-e255803d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-07be8d15.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-95d74bb7.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-5de2012d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-28728f9a.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-e3e3b9ab.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-c2e22d64.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-db9c8eff.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-ff6a8b38.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-4de18cfb.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-9ece13f3.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-fe0921e9.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-563d8d96.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-7145e13d.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-0d383f5c.js");require("./tslib.es6-466a7233.js"),require("./isProduction-d0867b60.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-d873bc48.js"),r=require("./constants-6a8f9932.js");require("./tslib.es6-466a7233.js"),require("react"),require("./index-8a38dad3.js"),require("date-fns/locale"),require("./Onboarding-fc4f3b76.js"),require("./isProduction-d0867b60.js"),require("./cookieHelper-d1876296.js"),require("./useTranslations-bfe34f5e.js"),require("./translationsContext-3304a3c8.js"),require("string-format"),require("lodash/debounce"),require("./index-f8fbc1fc.js"),require("@mantine/core"),require("./index-69fae73a.js"),require("./utils-5413e4dd.js"),require("styled-components"),require("./index-5e26262f.js"),require("./theme-3b950221.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-28c9cb83.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const useAddress: () => {
|
|
2
|
+
provinces: string[];
|
|
3
|
+
districts: string[];
|
|
4
|
+
wards: string[];
|
|
5
|
+
selectedProvince: string;
|
|
6
|
+
selectedDistrict: string;
|
|
7
|
+
selectedWard: string;
|
|
8
|
+
handleProvinceChange: (_selectedProvince: string) => void;
|
|
9
|
+
handleDistrictChange: (_selectedDistrict: string) => void;
|
|
10
|
+
handleWardChange: (_selectedWard: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export default useAddress;
|
|
@@ -2,17 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { PhoneProps } from "../../mantine/phone";
|
|
3
3
|
export type DynamicFormProps = {
|
|
4
4
|
defaultCountry?: PhoneProps['defaultCountry'];
|
|
5
|
-
inputOrder?: Array<'phone' | 'full_name' | 'email' | 'gender' | 'dob' | 'otp' | 'password' | 'confirm_password'>;
|
|
5
|
+
inputOrder?: Array<'phone' | 'full_name' | 'email' | 'gender' | 'dob' | 'otp' | 'password' | 'confirm_password' | 'term' | 'address'>;
|
|
6
|
+
withSimilac?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export declare const
|
|
8
|
-
"vi-VN": string;
|
|
9
|
-
"km-KH": string;
|
|
10
|
-
"id-ID": string;
|
|
11
|
-
"ms-MY": string;
|
|
12
|
-
"en-PH": string;
|
|
13
|
-
"tl-PH": string;
|
|
14
|
-
"zh-TW": string;
|
|
15
|
-
"th-TH": string;
|
|
16
|
-
"my-MM": string;
|
|
17
|
-
};
|
|
18
|
-
export declare const DynamicForm: <T = any>({ inputOrder, }: DynamicFormProps) => React.JSX.Element;
|
|
8
|
+
export declare const DynamicForm: <T = any>({ inputOrder, withSimilac, }: DynamicFormProps) => React.JSX.Element;
|
|
@@ -6,6 +6,17 @@ export declare const onboardingSchema: (t: UseTranslationsReturn<LocaleType>['t'
|
|
|
6
6
|
}, yup.AnyObject, {
|
|
7
7
|
phone: "";
|
|
8
8
|
}, "">;
|
|
9
|
+
export declare const similacOnboardingSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
10
|
+
phone: string;
|
|
11
|
+
name: string;
|
|
12
|
+
email: string;
|
|
13
|
+
address: {};
|
|
14
|
+
}, yup.AnyObject, {
|
|
15
|
+
phone: "";
|
|
16
|
+
name: undefined;
|
|
17
|
+
email: "";
|
|
18
|
+
address: undefined;
|
|
19
|
+
}, "">;
|
|
9
20
|
export declare const otpSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
10
21
|
otp: string;
|
|
11
22
|
}, yup.AnyObject, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { OnboardingModal } from './onboardingModal';
|
|
2
2
|
export type { OnboardingModalProps } from './onboardingModal';
|
|
3
|
-
export { OnboardingForm
|
|
3
|
+
export { OnboardingForm } from './onboardingForm';
|
|
4
4
|
export type { OnboardingFormProps } from './onboardingForm';
|
|
5
5
|
export { OtpForm } from './otpForm';
|
|
6
6
|
export type { PersonalInfo } from "../../interfaces/types";
|
|
7
7
|
export { OnboardingStep } from "../../interfaces/types";
|
|
8
|
+
export { MAPPED_LOCALE } from './utils';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PhoneProps } from "../../mantine/phone";
|
|
3
|
+
export type OnboardingFormProps = {
|
|
4
|
+
onClose(): void;
|
|
5
|
+
onSubmit(phone: string): void;
|
|
6
|
+
canSkip?: boolean;
|
|
7
|
+
defaultCountry?: PhoneProps['defaultCountry'];
|
|
8
|
+
customFormTexts?: {
|
|
9
|
+
heading?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const DefaultOnboardingForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, }: OnboardingFormProps) => React.JSX.Element;
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PhoneProps } from "../../mantine/phone";
|
|
3
|
+
import { OnboardingFormField } from './similac';
|
|
3
4
|
export type OnboardingFormProps = {
|
|
4
5
|
onClose(): void;
|
|
5
|
-
onSubmit(phone: string): void;
|
|
6
|
+
onSubmit(phone: string | OnboardingFormField): void;
|
|
6
7
|
canSkip?: boolean;
|
|
7
8
|
defaultCountry?: PhoneProps['defaultCountry'];
|
|
8
9
|
customFormTexts?: {
|
|
9
10
|
heading?: string;
|
|
10
11
|
description?: string;
|
|
11
12
|
};
|
|
13
|
+
withSimilac?: boolean;
|
|
12
14
|
};
|
|
13
|
-
export declare const
|
|
14
|
-
"vi-VN": string;
|
|
15
|
-
"km-KH": string;
|
|
16
|
-
"id-ID": string;
|
|
17
|
-
"ms-MY": string;
|
|
18
|
-
"en-PH": string;
|
|
19
|
-
"tl-PH": string;
|
|
20
|
-
"zh-TW": string;
|
|
21
|
-
"th-TH": string;
|
|
22
|
-
"my-MM": string;
|
|
23
|
-
"hi-IN": string;
|
|
24
|
-
};
|
|
25
|
-
export declare const OnboardingForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, }: OnboardingFormProps) => React.JSX.Element;
|
|
15
|
+
export declare const OnboardingForm: ({ withSimilac, ...rest }: OnboardingFormProps) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledOnboardingForm: import("styled-components").StyledComponent<({ heading, description, children, className, imgSrc, ...rest }: import("../../ui/onboarding").OnboardingProps) => import("react").JSX.Element, any, {}, never>;
|
|
2
|
+
export declare const StyledOnboardingForm: import("styled-components").StyledComponent<({ heading, description, children, className, imgSrc, hiddenLogo, ...rest }: import("../../ui/onboarding").OnboardingProps) => import("react").JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PhoneProps } from "../../mantine/phone";
|
|
3
|
+
export type OnboardingFormField = {
|
|
4
|
+
fullName: string;
|
|
5
|
+
phone: string;
|
|
6
|
+
email: string;
|
|
7
|
+
address: any;
|
|
8
|
+
term: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type OnboardingFormProps = {
|
|
11
|
+
onClose(): void;
|
|
12
|
+
onSubmit(data: OnboardingFormField): void;
|
|
13
|
+
canSkip?: boolean;
|
|
14
|
+
defaultCountry?: PhoneProps['defaultCountry'];
|
|
15
|
+
customFormTexts?: {
|
|
16
|
+
heading?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const SimilacOnboardingForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, ...rest }: OnboardingFormProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import { OnboardingProps } from "../../ui/onboarding";
|
|
3
3
|
import { Banner, OnboardingStep, PersonalInfo } from "../../../interfaces/types";
|
|
4
4
|
import { OnboardingFormProps } from '../onboardingForm';
|
|
@@ -26,7 +26,7 @@ export type OnboardingModalProps = {
|
|
|
26
26
|
resultScreenProps?: ResultScreen;
|
|
27
27
|
siteType?: 'helloSites' | 'marryBaby';
|
|
28
28
|
step?: OnboardingStep;
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
declare const OnboardingModal: ({ banner, canSkip, createPassError, createPassLoading, customFormTexts, emailLoading, flow, initialData, onClose, onCreatePassByEmail: _onCreatePassByEmail, onOtpSubmit: _onOtpSubmit, onPersonalInfoSubmit: _onPersonalInfoSubmit, onPhoneSubmit: _onPhoneSubmit, onResendCode, otpError, otpLoading, personalInfoError, resultScreenProps, siteType, step: _step, ...rest }: OnboardingModalProps) => React.JSX.Element;
|
|
29
|
+
withSimilac?: boolean;
|
|
30
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
31
|
+
declare const OnboardingModal: ({ banner, canSkip, createPassError, createPassLoading, customFormTexts, emailLoading, flow, initialData, onClose, onCreatePassByEmail: _onCreatePassByEmail, onOtpSubmit: _onOtpSubmit, onPersonalInfoSubmit: _onPersonalInfoSubmit, onPhoneSubmit: _onPhoneSubmit, onResendCode, otpError, otpLoading, personalInfoError, resultScreenProps, siteType, step: _step, withSimilac, ...rest }: OnboardingModalProps) => React.JSX.Element;
|
|
32
32
|
export { OnboardingModal };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledOtpForm: import("styled-components").StyledComponent<({ heading, description, children, className, imgSrc, ...rest }: import("../../ui/onboarding").OnboardingProps) => import("react").JSX.Element, any, {}, never>;
|
|
2
|
+
export declare const StyledOtpForm: import("styled-components").StyledComponent<({ heading, description, children, className, imgSrc, hiddenLogo, ...rest }: import("../../ui/onboarding").OnboardingProps) => import("react").JSX.Element, any, {}, never>;
|
|
@@ -4,5 +4,6 @@ export type OnboardingProps = {
|
|
|
4
4
|
heading: string;
|
|
5
5
|
description: React.ReactNode;
|
|
6
6
|
imgSrc?: string;
|
|
7
|
+
hiddenLogo?: boolean;
|
|
7
8
|
} & ContainerProps;
|
|
8
|
-
export declare const Onboarding: ({ heading, description, children, className, imgSrc, ...rest }: OnboardingProps) => React.JSX.Element;
|
|
9
|
+
export declare const Onboarding: ({ heading, description, children, className, imgSrc, hiddenLogo, ...rest }: OnboardingProps) => React.JSX.Element;
|
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-a7c65119.js"),r=require("./index-dfbcf878.js"),o=require("./index-0a06dfeb.js"),t=require("./index-aa84d420.js"),a=require("./index-c104b595.js"),i=require("./index-f8fbc1fc.js"),s=require("./index-69fae73a.js"),d=require("./index-8a36824a.js"),n=require("./index-03a9c9d8.js"),u=require("./index-5e26262f.js"),p=require("./index-99be6033.js"),x=require("./index-76959864.js"),l=require("./index-2531bacf.js"),c=require("./index-c8b2a460.js"),q=require("./dataTransform-73461585.js"),g=require("./index-a24f6f4b.js"),b=require("./footer.js");require("react"),require("./utils-5413e4dd.js"),require("./useUniqueId-bcfbb457.js"),require("./gAssets.js"),require("./index-8a38dad3.js"),require("date-fns/locale"),require("./Onboarding-fc4f3b76.js"),require("./isProduction-d0867b60.js"),require("./theme-3b950221.js"),require("./tslib.es6-466a7233.js"),require("lodash/throttle"),require("keen-slider/react"),require("@mantine/core"),require("@mantine/dates"),require("dayjs"),require("./screenSizeContext-fada5eec.js"),require("styled-components"),require("./translationsContext-3304a3c8.js"),require("string-format"),require("@mantine/hooks"),require("./useTranslations-bfe34f5e.js"),require("date-fns"),require("./index.styled-97a9f067.js"),require("./types-8855d132.js"),require("./index.styled-76d383dd.js"),require("./cookieHelper-d1876296.js"),require("slugify"),require("./routing-9049390f.js"),require("dayjs/plugin/relativeTime"),require("./index-f6eac812.js"),require("./index-b299ac6a.js"),require("react-hook-form"),require("./useHealthToolCache-c1d1177f.js"),require("./getDynamicHealthTool-774a81ad.js"),require("./core-0d383f5c.js"),require("./normalizeLink-82bf3115.js"),require("./useOutsideClick-28c9cb83.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-3dff1241.js"),require("uuid"),require("./constants-6a8f9932.js"),require("./index-a0c085f9.js"),require("lodash/debounce"),require("./useIsInit-b47011c2.js"),require("@mantine/carousel"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-867d8cdb.js"),require("react-dom"),require("./index.styled-dc0e969f.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=a.Heading,exports.Icon=a.Icon,exports.Menu=a.Menu,exports.PureInput=a.PureInput,exports.TextArea=a.TextArea,exports.TextDivider=a.TextDivider,exports.Input=i.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.Footer=b.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-fc4f3b76.js");var O=require("./index-8a38dad3.js"),e=require("./isProduction-d0867b60.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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-
|
|
1
|
+
"use strict";var t=require("./tslib.es6-466a7233.js"),e=require("./isProduction-d0867b60.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-10ec00a4.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,U;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===(U=e.mentioned)||void 0===U?void 0:U.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||""}:{}},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-76d383dd.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,U;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===(U=e.mentioned)||void 0===U?void 0:U.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||""}:{}},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;
|