@hhgtech/hhg-components 1.26.86 → 1.26.88
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/onboarding/onboardingModal/index.d.ts +6 -4
- package/build/components/onboardingV2/context.d.ts +24 -0
- package/build/components/onboardingV2/dynamicForm/context.d.ts +2 -0
- package/build/components/onboardingV2/dynamicForm/index.d.ts +9 -0
- package/build/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -0
- package/build/components/onboardingV2/index.d.ts +28 -0
- package/build/components/onboardingV2/index.styled.d.ts +7 -0
- package/build/components/onboardingV2/modal.d.ts +11 -0
- package/build/components/onboardingV2/onboardingForm/index.d.ts +13 -0
- package/build/components/onboardingV2/onboardingForm/index.styled.d.ts +2 -0
- package/build/components/onboardingV2/onboardingForm/schema.d.ts +8 -0
- package/build/components/onboardingV2/onboardingUI/index.d.ts +9 -0
- package/build/components/onboardingV2/onboardingUI/index.styled.d.ts +4 -0
- package/build/components/onboardingV2/otpForm/email.d.ts +11 -0
- package/build/components/onboardingV2/otpForm/index.styled.d.ts +2 -0
- package/build/components/onboardingV2/otpForm/phone.d.ts +11 -0
- package/build/components/onboardingV2/otpForm/schema.d.ts +8 -0
- package/build/components/onboardingV2/personalInfoForm/index.d.ts +16 -0
- package/build/components/onboardingV2/personalInfoForm/index.styled.d.ts +1 -0
- package/build/components/onboardingV2/personalInfoForm/schema.d.ts +10 -0
- package/build/components/onboardingV2/provider.d.ts +7 -0
- package/build/components/onboardingV2/resultScreen/index.d.ts +6 -0
- package/build/components/onboardingV2/similacForm/index.d.ts +22 -0
- package/build/components/onboardingV2/similacForm/index.styled.d.ts +2 -0
- package/build/components/onboardingV2/similacForm/schema.d.ts +16 -0
- package/build/components/onboardingV2/stepRenderer.d.ts +9 -0
- package/build/components/onboardingV2/types.d.ts +16 -0
- package/build/components/onboardingV2/updatePasswordForm/index.d.ts +11 -0
- package/build/components/onboardingV2/updatePasswordForm/schema.d.ts +10 -0
- package/build/components/onboardingV2/utils.d.ts +12 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-1faf05ae.js → core-4a4a89d2.js} +1 -1
- package/build/{dataTransform-b9b65791.js → dataTransform-854602d8.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +9 -9
- 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-39e1f003.js +1 -0
- package/build/esm/{dataTransform-c74b03fe.js → dataTransform-3ef34ecd.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-6b1ab292.js → fixedBottomAdBlock-29c0a015.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-f74c6520.js +1 -0
- package/build/esm/{getSocialList-96b621e1.js → getSocialList-5ca08847.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-62ff5d28.js → index-0d939c59.js} +1 -1
- package/build/esm/{index-294ea679.js → index-19d95088.js} +1 -1
- package/build/esm/{index-7b26957d.js → index-1a8d81f7.js} +1 -1
- package/build/esm/{index-a6e80d02.js → index-1f7f2b16.js} +1 -1
- package/build/esm/{index-784e4559.js → index-1fdd06c6.js} +1 -1
- package/build/esm/{index-9675c168.js → index-28b69041.js} +1 -1
- package/build/esm/{index-cc117db3.js → index-33ee05f6.js} +1 -1
- package/build/esm/{index-8c4eb3db.js → index-3c22fb6d.js} +1 -1
- package/build/esm/{index-c25fdc69.js → index-4ce3260a.js} +1 -1
- package/build/esm/{index-8266ffbf.js → index-58618be1.js} +1 -1
- package/build/esm/{index-94319791.js → index-72fcf7f4.js} +1 -1
- package/build/esm/{index-70d94ff3.js → index-7a5fa8ec.js} +1 -1
- package/build/esm/{index-86ad6065.js → index-8bbcbe9a.js} +1 -1
- package/build/esm/index-8f17ebd2.js +1 -0
- package/build/esm/{index-c1fbd670.js → index-ad391f28.js} +1 -1
- package/build/esm/{index-9ed95017.js → index-b1f9dd21.js} +6 -6
- package/build/esm/{index-e4114de0.js → index-b4be9793.js} +1 -1
- package/build/esm/index-ca31dca5.js +1 -0
- package/build/esm/index-ca516f81.js +1 -0
- package/build/esm/index-d3a1eecc.js +1 -0
- package/build/esm/{index-19018972.js → index-d76fda24.js} +1 -1
- package/build/esm/{index-0fc33054.js → index-d9a1c2ea.js} +1 -1
- package/build/esm/{index-aa3bab07.js → index-e0a232f9.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-410d36de.js → index.styled-3300951d.js} +5 -5
- package/build/esm/index.styled-89ba51f8.js +130 -0
- package/build/esm/{index.styled-e2e7b38d.js → index.styled-bd519b6d.js} +1 -1
- package/build/esm/{index.styled-7d50c075.js → index.styled-c37ee419.js} +1 -1
- package/build/esm/{index.styles-9fe6b030.js → index.styles-cf638671.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 +199 -0
- package/build/esm/pwg.js +3 -3
- package/build/esm/{routing-2b65bad3.js → routing-067953bb.js} +1 -1
- package/build/esm/{screenSizeContext-872a90cd.js → screenSizeContext-69258cef.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-539b8a4e.js → translationsProvider-9b0dbe6d.js} +1 -1
- package/build/esm/{types-8f2d7e1f.js → types-39ba890f.js} +1 -1
- package/build/esm/{types-70d94580.js → types-568cafd5.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useHealthToolCache-9e912c7b.js → useHealthToolCache-6e726037.js} +1 -1
- package/build/esm/{useRafState-5dcc7218.js → useRafState-168f840e.js} +1 -1
- package/build/esm/{useTranslations-4ed68193.js → useTranslations-890d36d7.js} +1 -1
- package/build/esm/utils-a34a6060.js +53 -0
- package/build/esm/vaccination.js +5 -5
- package/build/{fixedBottomAdBlock-fcdd88f9.js → fixedBottomAdBlock-7e577d45.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-d55fad98.js → getDynamicHealthTool-f8c610b0.js} +1 -1
- package/build/{getSocialList-e53d632a.js → getSocialList-aabd3687.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-7c3dd99b.js → index-01e45c92.js} +1 -1
- package/build/{index-fe609e35.js → index-239dd038.js} +1 -1
- package/build/{index-ca37ce18.js → index-25329496.js} +11 -11
- package/build/{index-f837892e.js → index-301a02a8.js} +1 -1
- package/build/{index-e1296151.js → index-3219a599.js} +1 -1
- package/build/{index-87f55bfd.js → index-39057331.js} +1 -1
- package/build/index-512de792.js +1 -0
- package/build/{index-fc36c0f9.js → index-567e0483.js} +1 -1
- package/build/{index-44240643.js → index-5bf11dd0.js} +1 -1
- package/build/index-76aea1b6.js +1 -0
- package/build/{index-eac5206c.js → index-77c61d26.js} +1 -1
- package/build/{index-c39b7f16.js → index-78e527ef.js} +1 -1
- package/build/{index-7ddf8501.js → index-791ea1f2.js} +1 -1
- package/build/{index-0c391d79.js → index-982c714d.js} +1 -1
- package/build/{index-3a582492.js → index-9c6fbfa9.js} +6 -6
- package/build/{index-56ec6ee1.js → index-b0bc6f73.js} +1 -1
- package/build/{index-0a7003f4.js → index-c334941a.js} +1 -1
- package/build/{index-63da9637.js → index-c5f7d059.js} +1 -1
- package/build/{index-540b5501.js → index-c93dd239.js} +1 -1
- package/build/{index-82d3c511.js → index-cd2d367f.js} +2 -2
- package/build/{index-2ed2c448.js → index-f10eeb57.js} +4 -4
- package/build/{index-43946382.js → index-f9108980.js} +1 -1
- package/build/{index-80832e7e.js → index-fb028fac.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-ecea664a.js → index.styled-3475d74d.js} +5 -5
- package/build/index.styled-99620ce7.js +130 -0
- package/build/{index.styled-114f9ffd.js → index.styled-c22f0395.js} +1 -1
- package/build/{index.styled-e4efd920.js → index.styled-feb42919.js} +1 -1
- package/build/{index.styles-7d8dea42.js → index.styles-bfb7d66b.js} +11 -11
- 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 +199 -0
- package/build/pwg.js +2 -2
- package/build/{routing-c325f198.js → routing-2dfe9f60.js} +1 -1
- package/build/screenSizeContext-0ba2d98a.js +81 -0
- package/build/together.js +1 -1
- package/build/{translationsProvider-497b6a7d.js → translationsProvider-28100e23.js} +1 -1
- package/build/{types-5f54ce61.js → types-55ae0b8e.js} +37 -37
- package/build/{types-86389e77.js → types-b7f436d9.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useHealthToolCache-dcae64cd.js → useHealthToolCache-c5725d87.js} +1 -1
- package/build/{useRafState-666aad1f.js → useRafState-ee7aa0a4.js} +1 -1
- package/build/{useTranslations-12dcd921.js → useTranslations-cdeb5b0b.js} +1 -1
- package/build/utils-43bb560e.js +53 -0
- package/build/vaccination.js +1 -1
- package/package.json +4 -1
- package/build/esm/core-95ce0d14.js +0 -1
- package/build/esm/getDynamicHealthTool-fa5f7215.js +0 -1
- package/build/esm/index-1ad70fa7.js +0 -1
- package/build/esm/index-31b18319.js +0 -1
- package/build/esm/index-6522af1b.js +0 -1
- package/build/esm/index.styled-914b4cb3.js +0 -182
- package/build/index-b1cab5db.js +0 -1
- package/build/index.styled-483939e8.js +0 -182
- package/build/screenSizeContext-9966e6e1.js +0 -81
- /package/build/{BMI_BOYS.percentile.monthly-3e800de9.js → BMI_BOYS.percentile.monthly-6b5bac69.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-983801e3.js → BMI_BOYS.percentile.weekly-f8d8ccdf.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-3e814176.js → BMI_BOYS.percentile.yearly-1ce30061.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-7968b6a9.js → BMI_BOYS.zscore.monthly-22a3f395.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-16df3e96.js → BMI_BOYS.zscore.weekly-0f254750.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-6bce259b.js → BMI_BOYS.zscore.yearly-f466ea8b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-c378fbc6.js → BMI_GIRLS.percentile.monthly-596c5ee4.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-9c54a3da.js → BMI_GIRLS.percentile.weekly-ed7abc04.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-52dc3478.js → BMI_GIRLS.percentile.yearly-840ed608.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-b4a143d2.js → BMI_GIRLS.zscore.monthly-98e4f08d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-2fcaac27.js → BMI_GIRLS.zscore.weekly-2f4e99dd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-36d7ad0e.js → BMI_GIRLS.zscore.yearly-a29667e2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-1b688d4f.js → HEAD CIRCUM_BOYS.percentile.monthly-4a141574.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-57c52629.js → HEAD CIRCUM_BOYS.percentile.weekly-455e35b3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e85dbdb3.js → HEAD CIRCUM_BOYS.percentile.yearly-78cb3fbf.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f2913c26.js → HEAD CIRCUM_BOYS.zscore.monthly-539766ab.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b34acafd.js → HEAD CIRCUM_BOYS.zscore.weekly-c1d83649.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-97239e4f.js → HEAD CIRCUM_BOYS.zscore.yearly-4b2b28b6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-dc2027fb.js → HEAD CIRCUM_GIRLS.percentile.monthly-2242510b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1f84e35c.js → HEAD CIRCUM_GIRLS.percentile.weekly-ee0bd268.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-42f82c36.js → HEAD CIRCUM_GIRLS.percentile.yearly-4fbfd5cf.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-3b57d417.js → HEAD CIRCUM_GIRLS.zscore.monthly-f15aafb4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-a95563d9.js → HEAD CIRCUM_GIRLS.zscore.weekly-e6f72951.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0bf4c13e.js → HEAD CIRCUM_GIRLS.zscore.yearly-e46305d7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-c7b7d47d.js → HEIGHT_BOYS.percentile.monthly-18bef648.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-5b836672.js → HEIGHT_BOYS.percentile.weekly-a34fd6c0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-1579ef91.js → HEIGHT_BOYS.percentile.yearly-a04a1d4f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-a009060c.js → HEIGHT_BOYS.zscore.monthly-a80f3782.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-4be838bf.js → HEIGHT_BOYS.zscore.weekly-2f19df1e.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-7195891a.js → HEIGHT_BOYS.zscore.yearly-aed98ac2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-9d72ffe6.js → HEIGHT_GIRLS.percentile.monthly-ed3322fe.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-7af98b53.js → HEIGHT_GIRLS.percentile.weekly-7aa5d123.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-40bbe50f.js → HEIGHT_GIRLS.percentile.yearly-8553b1f7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-29b2411f.js → HEIGHT_GIRLS.zscore.monthly-d63d259b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-54bb2687.js → HEIGHT_GIRLS.zscore.weekly-0511f40d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-b5fccb3c.js → HEIGHT_GIRLS.zscore.yearly-aed51ad7.js} +0 -0
- /package/build/{Onboarding-1e31ced6.js → Onboarding-34164c77.js} +0 -0
- /package/build/{Visible-fda656ed.js → Visible-62f7ed09.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-a82820f5.js → WEIGHT_BOYS.percentile.monthly-26619a46.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-ec370e56.js → WEIGHT_BOYS.percentile.weekly-5b442549.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-9dfd25e4.js → WEIGHT_BOYS.percentile.yearly-7f3606be.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-6b2373a3.js → WEIGHT_BOYS.zscore.monthly-da3bb39d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-c0a2f92e.js → WEIGHT_BOYS.zscore.weekly-9ae6b2c0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-d318796d.js → WEIGHT_BOYS.zscore.yearly-edf7bc3c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5ed21184.js → WEIGHT_GIRLS.percentile.monthly-9cabddd9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-19b30338.js → WEIGHT_GIRLS.percentile.weekly-8e8df371.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-d87bb77f.js → WEIGHT_GIRLS.percentile.yearly-b80134c7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-0367b784.js → WEIGHT_GIRLS.zscore.monthly-732e3fdd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-f52a6cfc.js → WEIGHT_GIRLS.zscore.weekly-1b184efd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-de66747f.js → WEIGHT_GIRLS.zscore.yearly-ca10d4f8.js} +0 -0
- /package/build/{constants-ea88f218.js → constants-cd8b0260.js} +0 -0
- /package/build/{cookieHelper-7eaa1be7.js → cookieHelper-4d24040d.js} +0 -0
- /package/build/{dataTransform-e81181b3.js → dataTransform-1f6dface.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-3a4d4982.js → BMI_BOYS.percentile.monthly-c309f979.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-6aa029e1.js → BMI_BOYS.percentile.weekly-6f70c670.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8abe5710.js → BMI_BOYS.percentile.yearly-6fb74cba.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-1987f8ac.js → BMI_BOYS.zscore.monthly-2db996ea.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-54e3dd86.js → BMI_BOYS.zscore.weekly-ebb74a9c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-365f73ed.js → BMI_BOYS.zscore.yearly-0fd4af15.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-70eb0eb2.js → BMI_GIRLS.percentile.monthly-1e38f00c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-d1c26eb9.js → BMI_GIRLS.percentile.weekly-ebc0c46b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-eea1bedb.js → BMI_GIRLS.percentile.yearly-24f811be.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-abb50212.js → BMI_GIRLS.zscore.monthly-b5a0dc80.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-de1a9f94.js → BMI_GIRLS.zscore.weekly-cbb30229.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-59e86e72.js → BMI_GIRLS.zscore.yearly-6ecff128.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-fd35df50.js → HEAD CIRCUM_BOYS.percentile.monthly-88e9f601.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-fb2b0978.js → HEAD CIRCUM_BOYS.percentile.weekly-353d8956.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7c830625.js → HEAD CIRCUM_BOYS.percentile.yearly-736f0806.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-5a23e560.js → HEAD CIRCUM_BOYS.zscore.monthly-c826b4c7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-9da94747.js → HEAD CIRCUM_BOYS.zscore.weekly-6f82336d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-af67bf23.js → HEAD CIRCUM_BOYS.zscore.yearly-1db39268.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-88cbc214.js → HEAD CIRCUM_GIRLS.percentile.monthly-4c5f8949.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-b1c7fff2.js → HEAD CIRCUM_GIRLS.percentile.weekly-7179cb23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-b2b27b26.js → HEAD CIRCUM_GIRLS.percentile.yearly-d3757f9b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-330cb5eb.js → HEAD CIRCUM_GIRLS.zscore.monthly-206c861c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-64222c16.js → HEAD CIRCUM_GIRLS.zscore.weekly-c20086b4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b38f8982.js → HEAD CIRCUM_GIRLS.zscore.yearly-6c8d954f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-f3fd0f71.js → HEIGHT_BOYS.percentile.monthly-28205d85.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-28a05eb5.js → HEIGHT_BOYS.percentile.weekly-f77acec7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-62d15d0f.js → HEIGHT_BOYS.percentile.yearly-723caaed.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-11842a87.js → HEIGHT_BOYS.zscore.monthly-1b83bd71.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e84b359c.js → HEIGHT_BOYS.zscore.weekly-15d50556.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-cd73e7dc.js → HEIGHT_BOYS.zscore.yearly-16b2ff44.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8bdc4e09.js → HEIGHT_GIRLS.percentile.monthly-d3ff8d08.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-8ef59120.js → HEIGHT_GIRLS.percentile.weekly-611306a8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-33a3e08d.js → HEIGHT_GIRLS.percentile.yearly-0d9da589.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-6b1bf35d.js → HEIGHT_GIRLS.zscore.monthly-abd65e32.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b1db65a2.js → HEIGHT_GIRLS.zscore.weekly-e55d4e7b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d2450188.js → HEIGHT_GIRLS.zscore.yearly-ea068b8c.js} +0 -0
- /package/build/esm/{Onboarding-2b7ad80e.js → Onboarding-1020b6be.js} +0 -0
- /package/build/esm/{Visible-f20d101d.js → Visible-2a320dca.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-580ba6f4.js → WEIGHT_BOYS.percentile.monthly-2b13573c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-c79c71cd.js → WEIGHT_BOYS.percentile.weekly-0c574535.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-34eedec7.js → WEIGHT_BOYS.percentile.yearly-81377e7e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-683292fe.js → WEIGHT_BOYS.zscore.monthly-ddd90aaf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-a8f4af32.js → WEIGHT_BOYS.zscore.weekly-31a8c6f9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f95c45b9.js → WEIGHT_BOYS.zscore.yearly-059779f9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-7e075f65.js → WEIGHT_GIRLS.percentile.monthly-a7533fac.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-1d2f46e8.js → WEIGHT_GIRLS.percentile.weekly-b9d79200.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-ff75a46a.js → WEIGHT_GIRLS.percentile.yearly-577831e1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-d70bc2e2.js → WEIGHT_GIRLS.zscore.monthly-c9e8f39b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-629b6971.js → WEIGHT_GIRLS.zscore.weekly-f557ebc6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-876bce3b.js → WEIGHT_GIRLS.zscore.yearly-3513a6c4.js} +0 -0
- /package/build/esm/{constants-5ae02387.js → constants-75605cae.js} +0 -0
- /package/build/esm/{cookieHelper-8e38f3a5.js → cookieHelper-6f39b327.js} +0 -0
- /package/build/esm/{dataTransform-e92e5e9f.js → dataTransform-a0677ea4.js} +0 -0
- /package/build/esm/{index-e6671899.js → index-b38d72c8.js} +0 -0
- /package/build/esm/{index-af50f221.js → index-cbe36535.js} +0 -0
- /package/build/esm/{isProduction-afd19026.js → isProduction-75bd8a6b.js} +0 -0
- /package/build/esm/{localizeNumberFormat-f2a312a2.js → localizeNumberFormat-ca81eb1c.js} +0 -0
- /package/build/esm/{normalizeLink-6ad80ddd.js → normalizeLink-b651220a.js} +0 -0
- /package/build/esm/{theme-c6b57927.js → theme-c62a0734.js} +0 -0
- /package/build/esm/{translationsContext-29c1c216.js → translationsContext-91b235a0.js} +0 -0
- /package/build/esm/{tslib.es6-94ab99d0.js → tslib.es6-53aa91c2.js} +0 -0
- /package/build/esm/{types-31d39376.js → types-9a8e1e68.js} +0 -0
- /package/build/esm/{useIsInit-811841d5.js → useIsInit-32ae9715.js} +0 -0
- /package/build/esm/{useOutsideClick-ac887347.js → useOutsideClick-e3ba701d.js} +0 -0
- /package/build/esm/{useScrollbarSize-7d8b977c.js → useScrollbarSize-4c71caee.js} +0 -0
- /package/build/esm/{useUniqueId-d6c5d8d6.js → useUniqueId-090b1136.js} +0 -0
- /package/build/esm/{utils-8a54c470.js → utils-457c92d4.js} +0 -0
- /package/build/{index-b315803c.js → index-1929b6db.js} +0 -0
- /package/build/{index-8f38526d.js → index-f57d6994.js} +0 -0
- /package/build/{isProduction-2d07a408.js → isProduction-8c85ac26.js} +0 -0
- /package/build/{localizeNumberFormat-48e4b947.js → localizeNumberFormat-e7106673.js} +0 -0
- /package/build/{normalizeLink-94c9963a.js → normalizeLink-f5603cd9.js} +0 -0
- /package/build/{theme-7166587e.js → theme-55651bb9.js} +0 -0
- /package/build/{translationsContext-2dea5a81.js → translationsContext-27aa04b6.js} +0 -0
- /package/build/{tslib.es6-06ca7969.js → tslib.es6-c8a89bf1.js} +0 -0
- /package/build/{types-271f5bce.js → types-6351e121.js} +0 -0
- /package/build/{useIsInit-d52c9232.js → useIsInit-55abae9d.js} +0 -0
- /package/build/{useOutsideClick-c740b47c.js → useOutsideClick-5d33589f.js} +0 -0
- /package/build/{useScrollbarSize-8dc20e34.js → useScrollbarSize-9a90f25f.js} +0 -0
- /package/build/{useUniqueId-7dbf4fb6.js → useUniqueId-47bb5b2a.js} +0 -0
- /package/build/{utils-2d60bdd3.js → utils-6ce1d7e7.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-25329496.js"),t=require("react"),r=require("./Onboarding-34164c77.js"),a=require("./theme-55651bb9.js"),l=require("./index-b0bc6f73.js"),o=require("styled-components"),n=require("./index-c334941a.js"),i=require("./index.styles-bfb7d66b.js"),d=require("./index-39057331.js"),s=require("./screenSizeContext-0ba2d98a.js"),c=require("dayjs"),u=require("./useTranslations-cdeb5b0b.js");require("lodash/debounce"),require("./isProduction-8c85ac26.js"),require("./index-3219a599.js");var C=require("./localizeNumberFormat-e7106673.js"),h=require("./utils-6ce1d7e7.js");require("./gAssets.js"),require("@mantine/core"),require("./index-f10eeb57.js"),require("./index-cd2d367f.js");var m=require("./index-f57d6994.js"),f=require("./useOutsideClick-5d33589f.js"),y=require("./tslib.es6-c8a89bf1.js"),p=require("./index-791ea1f2.js"),b=require("recharts"),g=require("lodash/chunk");function w(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-47bb5b2a.js"),require("./index.styled-feb42919.js"),require("lodash/throttle"),require("./translationsContext-27aa04b6.js"),require("string-format"),require("date-fns/locale"),require("./index-c93dd239.js"),require("./useScrollbarSize-9a90f25f.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-5b442549.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-26619a46.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-7f3606be.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-a34fd6c0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-18bef648.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-a04a1d4f.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-455e35b3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-4a141574.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-78cb3fbf.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-f8d8ccdf.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-6b5bac69.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-1ce30061.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-8e8df371.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-9cabddd9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-b80134c7.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-7aa5d123.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-ed3322fe.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-8553b1f7.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-ee0bd268.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-2242510b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-4fbfd5cf.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-ed7abc04.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-596c5ee4.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-840ed608.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-9ae6b2c0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-da3bb39d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-edf7bc3c.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-2f19df1e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-a80f3782.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-aed98ac2.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-c1d83649.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-539766ab.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-4b2b28b6.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-0f254750.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-22a3f395.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-f466ea8b.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-1b184efd.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-732e3fdd.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-ca10d4f8.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-0511f40d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-d63d259b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-aed51ad7.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-e6f72951.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-f15aafb4.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-e46305d7.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-2f4e99dd.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-98e4f08d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a29667e2.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-4a4a89d2.js");require("./tslib.es6-c8a89bf1.js"),require("./isProduction-8c85ac26.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-55ae0b8e.js"),r=require("./constants-cd8b0260.js");require("./tslib.es6-c8a89bf1.js"),require("react"),require("./index-3219a599.js"),require("date-fns/locale"),require("./Onboarding-34164c77.js"),require("./isProduction-8c85ac26.js"),require("./cookieHelper-4d24040d.js"),require("./useTranslations-cdeb5b0b.js"),require("./translationsContext-27aa04b6.js"),require("string-format"),require("lodash/debounce"),require("./index-c93dd239.js"),require("@mantine/core"),require("./index-f10eeb57.js"),require("./utils-6ce1d7e7.js"),require("styled-components"),require("./index-b0bc6f73.js"),require("./theme-55651bb9.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-5d33589f.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -27,9 +27,11 @@ export type OnboardingModalProps = {
|
|
|
27
27
|
siteType?: 'helloSites' | 'marryBaby';
|
|
28
28
|
step?: OnboardingStep;
|
|
29
29
|
withSimilac?: boolean;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
similacFormProps?: {
|
|
31
|
+
onFormSubmit?: (values: any) => void;
|
|
32
|
+
defaultValues?: any;
|
|
33
|
+
customTerms?: ReactNode;
|
|
34
|
+
};
|
|
33
35
|
} & HTMLAttributes<HTMLDivElement>;
|
|
34
|
-
declare const OnboardingModal: ({ banner, canSkip, createPassError, createPassLoading, customFormTexts, emailLoading, flow, initialData, onClose, onCreatePassByEmail: _onCreatePassByEmail, onOtpSubmit: _onOtpSubmit, onPersonalInfoSubmit: _onPersonalInfoSubmit, onPhoneSubmit: _onPhoneSubmit,
|
|
36
|
+
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, similacFormProps, ...rest }: OnboardingModalProps) => React.JSX.Element;
|
|
35
37
|
export { OnboardingModal };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
export type SharedDataType = {
|
|
3
|
+
full_name?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
phone?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
otp?: string;
|
|
8
|
+
retryPhoneCount?: number;
|
|
9
|
+
retryEmailCount?: number;
|
|
10
|
+
dob?: string;
|
|
11
|
+
gender?: string;
|
|
12
|
+
};
|
|
13
|
+
export type OnboardingContextType = {
|
|
14
|
+
currentStep: number;
|
|
15
|
+
setCurrentStep: (step: number) => void;
|
|
16
|
+
nextStep: () => void;
|
|
17
|
+
prevStep: () => void;
|
|
18
|
+
setMaxStep: (maxStep: number) => void;
|
|
19
|
+
siteType?: 'helloSites' | 'marryBaby';
|
|
20
|
+
isMarryBaby: boolean;
|
|
21
|
+
sharedData?: SharedDataType;
|
|
22
|
+
setSharedData?: Dispatch<SetStateAction<SharedDataType>>;
|
|
23
|
+
};
|
|
24
|
+
export declare const OnboardingContext: import("react").Context<OnboardingContextType>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FormProvider: import("react").FC<import("@mantine/form/lib/FormProvider/FormProvider").FormProviderProps<import("@mantine/form").UseFormReturnType<any, (values: any) => any>>>, useFormContext: () => import("@mantine/form").UseFormReturnType<any, (values: any) => any>, useForm: import("@mantine/form/lib/types").UseForm<any, (values: any) => any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PhoneProps } from "../../mantine/phone";
|
|
3
|
+
export type DynamicFormProps = {
|
|
4
|
+
defaultCountry?: PhoneProps['defaultCountry'];
|
|
5
|
+
inputOrder?: Array<'phone' | 'full_name' | 'email' | 'gender' | 'dob' | 'otp' | 'password' | 'confirm_password' | 'term' | 'address'>;
|
|
6
|
+
withSimilac?: boolean;
|
|
7
|
+
customTerms?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const DynamicForm: <T = any>({ inputOrder, withSimilac, customTerms, }: DynamicFormProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledDynamicForm: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type { PersonalInfo } from "../../interfaces/types";
|
|
3
|
+
export type { OnboardingModalProps } from './modal';
|
|
4
|
+
export type { OnboardingFormProps } from './onboardingForm';
|
|
5
|
+
export { MAPPED_LOCALE } from './utils';
|
|
6
|
+
export type { EmailOtpFormProps } from './otpForm/email';
|
|
7
|
+
export type { PhoneOtpFormProps } from './otpForm/phone';
|
|
8
|
+
export type { PersonalInfoFormProps } from './personalInfoForm';
|
|
9
|
+
export type { Props as OnboardingProviderProps } from './provider';
|
|
10
|
+
export type { Props as ResultScreenProps } from './resultScreen';
|
|
11
|
+
export type { SimilacOnboardingFormProps } from './similacForm';
|
|
12
|
+
export type { UpdatePasswordFormProps } from './updatePasswordForm';
|
|
13
|
+
export declare const Onboarding: {
|
|
14
|
+
Provider: ({ children, siteType, setSharedData: _setSharedData, }: import("./provider").Props) => import("react").JSX.Element;
|
|
15
|
+
Modal: ({ children, withSimilac, banner, ...rest }: import("./modal").OnboardingModalProps) => import("react").JSX.Element;
|
|
16
|
+
Form: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, }: import("./onboardingForm").OnboardingFormProps) => import("react").JSX.Element;
|
|
17
|
+
OtpForm: {
|
|
18
|
+
Email: ({ onSubmit: _onSubmit, email: emailProp, onResendCode, otpError, onClose, loading, canSkip: canSkipInit, }: import("./otpForm/email").EmailOtpFormProps) => import("react").JSX.Element;
|
|
19
|
+
Phone: ({ onSubmit: _onSubmit, phone: phoneProp, onResendCode, otpError, onClose, loading, canSkip: canSkipInit, }: import("./otpForm/phone").PhoneOtpFormProps) => import("react").JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
PersonalInfoForm: ({ onClose, onSubmit, canSkip, loading, errorMessage, initialData, }: import("./personalInfoForm").PersonalInfoFormProps) => import("react").JSX.Element;
|
|
22
|
+
ResultScreen: ({ onClose, ...rest }: import("./resultScreen").Props) => import("react").JSX.Element;
|
|
23
|
+
SimilacForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, customTerms, defaultValues, ...rest }: import("./similacForm").SimilacOnboardingFormProps) => import("react").JSX.Element;
|
|
24
|
+
UpdatePasswordForm: ({ onClose, onSubmit, canSkip, errorMessage, loading, }: import("./updatePasswordForm").UpdatePasswordFormProps) => import("react").JSX.Element;
|
|
25
|
+
StepRenderer: ({ children, }: {
|
|
26
|
+
children: import("react").ReactNode;
|
|
27
|
+
}) => import("react").JSX.Element;
|
|
28
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const StyledOnboardingModal: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const StyledBannerCol: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const StyledBannerInner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const StyledIntro: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const StyledBannerImg: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type OnboardingModalProps = {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
banner?: {
|
|
5
|
+
heading?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
imgSrc?: string;
|
|
8
|
+
};
|
|
9
|
+
withSimilac?: boolean;
|
|
10
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
export declare const OnboardingModal: ({ children, withSimilac, banner, ...rest }: OnboardingModalProps) => React.JSX.Element;
|
|
@@ -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;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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,8 @@
|
|
|
1
|
+
import { LocaleType } from 'interfaces/types';
|
|
2
|
+
import { UseTranslationsReturn } from "../../../hooks";
|
|
3
|
+
import * as yup from 'yup';
|
|
4
|
+
export declare const onboardingSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
5
|
+
phone: string;
|
|
6
|
+
}, yup.AnyObject, {
|
|
7
|
+
phone: "";
|
|
8
|
+
}, "">;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ContainerProps } from '@mantine/core';
|
|
3
|
+
export type OnboardingUIProps = {
|
|
4
|
+
heading: string;
|
|
5
|
+
description: React.ReactNode;
|
|
6
|
+
imgSrc?: string;
|
|
7
|
+
hiddenLogo?: boolean;
|
|
8
|
+
} & ContainerProps;
|
|
9
|
+
export declare const OnboardingUI: ({ heading, description, children, className, imgSrc, hiddenLogo, ...rest }: OnboardingUIProps) => React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledFormInner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledOnboarding: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@mantine/core").ContainerProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
4
|
+
export declare const StyledThumb: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type EmailOtpFormProps = {
|
|
3
|
+
onSubmit?(otp: string): void | Promise<string | undefined | void>;
|
|
4
|
+
email?: string;
|
|
5
|
+
onResendCode(email: string): void;
|
|
6
|
+
otpError?: string;
|
|
7
|
+
onClose(): void;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
canSkip?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const EmailOtpForm: ({ onSubmit: _onSubmit, email: emailProp, onResendCode, otpError, onClose, loading, canSkip: canSkipInit, }: EmailOtpFormProps) => React.JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type PhoneOtpFormProps = {
|
|
3
|
+
onSubmit?(otp: string): void | Promise<string | undefined | void>;
|
|
4
|
+
phone?: string;
|
|
5
|
+
onResendCode(phone: string): void;
|
|
6
|
+
otpError?: string;
|
|
7
|
+
onClose(): void;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
canSkip?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const PhoneOtpForm: ({ onSubmit: _onSubmit, phone: phoneProp, onResendCode, otpError, onClose, loading, canSkip: canSkipInit, }: PhoneOtpFormProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LocaleType } from 'interfaces/types';
|
|
2
|
+
import { UseTranslationsReturn } from "../../../hooks";
|
|
3
|
+
import * as yup from 'yup';
|
|
4
|
+
export declare const otpSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
5
|
+
otp: string;
|
|
6
|
+
}, yup.AnyObject, {
|
|
7
|
+
otp: "";
|
|
8
|
+
}, "">;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PersonalInfo } from "../../../interfaces/types";
|
|
3
|
+
export type PersonalInfoFormProps = {
|
|
4
|
+
onClose(): void;
|
|
5
|
+
onSubmit({ email, birthday, gender, name, }: {
|
|
6
|
+
email?: string;
|
|
7
|
+
birthday?: string;
|
|
8
|
+
gender?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
}): void;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
canSkip?: boolean;
|
|
13
|
+
errorMessage?: string;
|
|
14
|
+
initialData?: PersonalInfo;
|
|
15
|
+
};
|
|
16
|
+
export declare const PersonalInfoForm: ({ onClose, onSubmit, canSkip, loading, errorMessage, initialData, }: PersonalInfoFormProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledFormInner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LocaleType } from 'interfaces/types';
|
|
2
|
+
import { UseTranslationsReturn } from "../../../hooks";
|
|
3
|
+
import * as yup from 'yup';
|
|
4
|
+
export declare const onboardingEmailSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
5
|
+
email: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}, yup.AnyObject, {
|
|
8
|
+
email: "";
|
|
9
|
+
name: undefined;
|
|
10
|
+
}, "">;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export type Props = {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
siteType?: 'helloSites' | 'marryBaby';
|
|
5
|
+
setSharedData?: (data: any) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const OnboardingProvider: ({ children, siteType, setSharedData: _setSharedData, }: Props) => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 SimilacOnboardingFormProps = {
|
|
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
|
+
customTerms?: React.ReactNode;
|
|
20
|
+
defaultValues?: Partial<OnboardingFormField>;
|
|
21
|
+
};
|
|
22
|
+
export declare const SimilacOnboardingForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, customTerms, defaultValues, ...rest }: SimilacOnboardingFormProps) => React.JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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,16 @@
|
|
|
1
|
+
import { LocaleType } from 'interfaces/types';
|
|
2
|
+
import { UseTranslationsReturn } from "../../../hooks";
|
|
3
|
+
import * as yup from 'yup';
|
|
4
|
+
export declare const similacOnboardingSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
5
|
+
phone: string;
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
address: {};
|
|
9
|
+
term: boolean;
|
|
10
|
+
}, yup.AnyObject, {
|
|
11
|
+
phone: "";
|
|
12
|
+
name: undefined;
|
|
13
|
+
email: "";
|
|
14
|
+
address: undefined;
|
|
15
|
+
term: undefined;
|
|
16
|
+
}, "">;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export type OnboardingItemShareProps = {
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
stepIndex: number;
|
|
5
|
+
alwaysRender?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const OnboardingStepRenderer: ({ children, }: {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum OnboardingStepType {
|
|
2
|
+
Phone = 0,
|
|
3
|
+
OTP = 1,
|
|
4
|
+
OTPEmail = 2,
|
|
5
|
+
PersonalInfo = 3,
|
|
6
|
+
UpdatePassword = 4,
|
|
7
|
+
Result = 5,
|
|
8
|
+
DynamicForm = 6
|
|
9
|
+
}
|
|
10
|
+
export type BaseOnboardingStep = {
|
|
11
|
+
type: OnboardingStepType;
|
|
12
|
+
};
|
|
13
|
+
export type OnboardingStep = BaseOnboardingStep & {
|
|
14
|
+
type: OnboardingStepType.Phone;
|
|
15
|
+
};
|
|
16
|
+
export type AllOnboardingSteps = OnboardingStep;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PhoneProps } from "../../mantine";
|
|
3
|
+
export type UpdatePasswordFormProps = {
|
|
4
|
+
onClose(): void;
|
|
5
|
+
onSubmit(phone: string): void;
|
|
6
|
+
canSkip?: boolean;
|
|
7
|
+
defaultCountry?: PhoneProps['defaultCountry'];
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const UpdatePasswordForm: ({ onClose, onSubmit, canSkip, errorMessage, loading, }: UpdatePasswordFormProps) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LocaleType } from 'interfaces/types';
|
|
2
|
+
import { UseTranslationsReturn } from "../../../hooks";
|
|
3
|
+
import * as yup from 'yup';
|
|
4
|
+
export declare const onboardingUpdatePasswordSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
5
|
+
password: string;
|
|
6
|
+
confirmPassword: string;
|
|
7
|
+
}, yup.AnyObject, {
|
|
8
|
+
password: "";
|
|
9
|
+
confirmPassword: "";
|
|
10
|
+
}, "">;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const MAPPED_LOCALE: {
|
|
2
|
+
"vi-VN": string;
|
|
3
|
+
"km-KH": string;
|
|
4
|
+
"id-ID": string;
|
|
5
|
+
"ms-MY": string;
|
|
6
|
+
"en-PH": string;
|
|
7
|
+
"tl-PH": string;
|
|
8
|
+
"zh-TW": string;
|
|
9
|
+
"th-TH": string;
|
|
10
|
+
"my-MM": string;
|
|
11
|
+
};
|
|
12
|
+
export declare const hiddenEmailChar: (str?: string) => string;
|
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-7e577d45.js"),r=require("./index-301a02a8.js"),o=require("./index-c334941a.js"),t=require("./index-01e45c92.js"),i=require("./index.styles-bfb7d66b.js"),a=require("./index-c93dd239.js"),s=require("./index-f10eeb57.js"),d=require("./index-77c61d26.js"),n=require("./index-239dd038.js"),u=require("./index-b0bc6f73.js"),p=require("./index-cd2d367f.js"),x=require("./index-25329496.js"),l=require("./index-791ea1f2.js"),c=require("./index-f57d6994.js"),q=require("./dataTransform-854602d8.js"),b=require("./index-982c714d.js"),g=require("./footer.js");require("react"),require("./utils-6ce1d7e7.js"),require("./useUniqueId-47bb5b2a.js"),require("./gAssets.js"),require("./index-3219a599.js"),require("date-fns/locale"),require("./Onboarding-34164c77.js"),require("./isProduction-8c85ac26.js"),require("./theme-55651bb9.js"),require("./tslib.es6-c8a89bf1.js"),require("@mantine/core"),require("@mantine/dates"),require("./index-9c6fbfa9.js"),require("dayjs"),require("styled-components"),require("@mantine/carousel"),require("./screenSizeContext-0ba2d98a.js"),require("lodash/throttle"),require("@mantine/hooks"),require("./index.styled-feb42919.js"),require("./translationsContext-27aa04b6.js"),require("string-format"),require("./index-78e527ef.js"),require("keen-slider/react"),require("./useTranslations-cdeb5b0b.js"),require("date-fns"),require("./types-6351e121.js"),require("./index.styled-c22f0395.js"),require("./cookieHelper-4d24040d.js"),require("slugify"),require("./routing-2dfe9f60.js"),require("dayjs/plugin/relativeTime"),require("./index-39057331.js"),require("./index-f9108980.js"),require("react-hook-form"),require("./useHealthToolCache-c5725d87.js"),require("./getDynamicHealthTool-f8c610b0.js"),require("./core-4a4a89d2.js"),require("./normalizeLink-f5603cd9.js"),require("./useOutsideClick-5d33589f.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-aabd3687.js"),require("uuid"),require("./constants-cd8b0260.js"),require("./index-76aea1b6.js"),require("lodash/debounce"),require("./useIsInit-55abae9d.js"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-9a90f25f.js"),require("react-dom"),require("./index.styled-3475d74d.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=b.PillCarousel,exports.Footer=g.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-34164c77.js");var O=require("./index-3219a599.js"),e=require("./isProduction-8c85ac26.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-c8a89bf1.js"),e=require("./isProduction-8c85ac26.js");const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},r=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}};exports.getCachedItem=i,exports.getDataWithCache=(e,a,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(a){const t=yield a();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-114f9ffd.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-c22f0395.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;
|