@hhgtech/hhg-components 1.27.128 → 1.27.130
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 +11 -11
- package/build/cache.js +1 -1
- package/build/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/text/index.d.ts +1 -1
- package/build/components/mantine/text/index.d.ts +8 -6
- package/build/components/mantine/text/index.styles.d.ts +1 -0
- package/build/components/mantine/theme/other.d.ts +2 -0
- package/build/components/mantine/theme/text.d.ts +11 -4
- package/build/components/molecules/sidemenu/menuLink.d.ts +3 -2
- package/build/components/molecules/tabs/index.d.ts +3 -3
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-3a8a1593.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +24 -24
- package/build/esm/cache.js +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/text/index.d.ts +1 -1
- package/build/esm/components/mantine/text/index.d.ts +8 -6
- package/build/esm/components/mantine/text/index.styles.d.ts +1 -0
- package/build/esm/components/mantine/theme/other.d.ts +2 -0
- package/build/esm/components/mantine/theme/text.d.ts +11 -4
- package/build/esm/components/molecules/sidemenu/menuLink.d.ts +3 -2
- package/build/esm/components/molecules/tabs/index.d.ts +3 -3
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-748a9fba.js → core-06db0585.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-4ed68b47.js +1 -0
- package/build/esm/{getSocialList-cd0564ce.js → getSocialList-cd3a2ced.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-9d5475ae.js → index-113c16c6.js} +1 -1
- package/build/esm/index-23015f09.js +118 -0
- package/build/esm/{index-2387e156.js → index-3125f5cd.js} +1 -1
- package/build/esm/index-3e15dfbf.js +3685 -0
- package/build/esm/index-4c339096.js +1 -0
- package/build/esm/{index-7a40118a.js → index-53fae0e2.js} +1 -1
- package/build/esm/index-7ef353c0.js +177 -0
- package/build/esm/index-7f4de3eb.js +1 -0
- package/build/esm/index-82a6e485.js +1 -0
- package/build/esm/{index-cc17ede9.js → index-8779076b.js} +175 -175
- package/build/esm/index-93776443.js +1 -0
- package/build/esm/index-99fdcb27.js +1 -0
- package/build/esm/{index-c18b4d7f.js → index-9bdaddbd.js} +1 -1
- package/build/esm/{index-ac659d4d.js → index-ab43f3ff.js} +1 -1
- package/build/esm/{index-e9411f80.js → index-c5ec6dfd.js} +1 -1
- package/build/esm/{index-88f0478f.js → index-cef48d8f.js} +1 -1
- package/build/esm/index-d3e36517.js +1 -0
- package/build/esm/{index-cf9388af.js → index-d67ab04d.js} +3 -3
- package/build/esm/{index-a53b22e9.js → index-d961a636.js} +1 -1
- package/build/esm/{index-918a3d98.js → index-dedb9bed.js} +1 -1
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-60482e50.js → index.styled-8353402f.js} +85 -85
- package/build/esm/{index.styled-040927d4.js → index.styled-e7a1cc83.js} +1 -1
- package/build/esm/{index.styles-a4ace3a6.js → index.styles-de258037.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/onboardingV2.js +80 -28
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-95fe5316.js → routing-b313375c.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/types-53e4a974.js +1 -0
- package/build/esm/{types-67d37cc2.js → types-97eac638.js} +84 -84
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-acbc9c9d.js → useCategory-78a5222f.js} +1 -1
- package/build/esm/useHealthToolCache-0b46e3c8.js +1 -0
- package/build/esm/useRafState-463c7a43.js +1 -0
- package/build/esm/useTranslations-7e2f2abb.js +1 -0
- package/build/esm/{utils-ccc4a5e9.js → utils-b25800a5.js} +2 -2
- package/build/esm/{utils-3009cefc.js → utils-f32dfc88.js} +1 -1
- package/build/esm/vaccination.js +49 -49
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-42471778.js +1 -0
- package/build/{getSocialList-37581c7d.js → getSocialList-73692040.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/index-0428d198.js +1 -0
- package/build/index-1e6ce30a.js +118 -0
- package/build/index-1f57c875.js +1 -0
- package/build/{index-cc10cf61.js → index-63a40442.js} +1 -1
- package/build/index-648ef343.js +3685 -0
- package/build/{index-0a4911a1.js → index-672a9331.js} +115 -115
- package/build/{index-71be9200.js → index-88e14c78.js} +1 -1
- package/build/index-8ae2b095.js +177 -0
- package/build/{index-f997de2b.js → index-8d70cce5.js} +1 -1
- package/build/{index-ea955702.js → index-934f2e26.js} +1 -1
- package/build/{index-728a4402.js → index-cb3a94e5.js} +1 -1
- package/build/{index-edcc06eb.js → index-cc40d6cf.js} +1 -1
- package/build/{index-ee44c94e.js → index-ce4347c1.js} +1 -1
- package/build/{index-2467e265.js → index-cfbe3496.js} +1 -1
- package/build/{index-274793c5.js → index-d96e610e.js} +3 -3
- package/build/{index-10f7317e.js → index-dc6e9874.js} +1 -1
- package/build/index-e221992c.js +1 -0
- package/build/index-ea202756.js +1 -0
- package/build/{index-e93927bc.js → index-ef5f13e4.js} +1 -1
- package/build/{index-3d1655e0.js → index-ff958d0a.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-a46b79b0.js → index.styled-9e246d79.js} +94 -94
- package/build/{index.styled-c6298749.js → index.styled-dfcd5ec0.js} +1 -1
- package/build/{index.styles-d2621c65.js → index.styles-d669a4be.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +82 -30
- package/build/pwg.js +3 -3
- package/build/{routing-53fc64a4.js → routing-369c288c.js} +1 -1
- package/build/together.js +1 -1
- package/build/types-40433f07.js +1 -0
- package/build/{types-32621a06.js → types-6b44da86.js} +63 -63
- package/build/types.js +1 -1
- package/build/{useCategory-6e0a71ba.js → useCategory-9c04f14b.js} +1 -1
- package/build/useHealthToolCache-14e3234d.js +1 -0
- package/build/useRafState-826f52fa.js +1 -0
- package/build/useTranslations-44459aae.js +1 -0
- package/build/{utils-98636ed9.js → utils-504da264.js} +1 -1
- package/build/{utils-0ba15ed3.js → utils-f394299a.js} +1 -1
- package/build/vaccination.js +35 -35
- package/package.json +1 -4
- package/build/components/onboarding/context.d.ts +0 -7
- package/build/components/onboarding/dynamicForm/index.d.ts +0 -9
- package/build/components/onboarding/dynamicForm/index.styled.d.ts +0 -1
- package/build/components/onboarding/generateSchema.d.ts +0 -40
- package/build/components/onboarding/index.d.ts +0 -20
- package/build/components/onboarding/onboardingForm/default.d.ts +0 -13
- package/build/components/onboarding/onboardingForm/index.d.ts +0 -19
- package/build/components/onboarding/onboardingForm/index.styled.d.ts +0 -2
- package/build/components/onboarding/onboardingForm/similac.d.ts +0 -22
- package/build/components/onboarding/onboardingModal/index.d.ts +0 -37
- package/build/components/onboarding/onboardingModal/index.styled.d.ts +0 -7
- package/build/components/onboarding/otpForm/index.d.ts +0 -14
- package/build/components/onboarding/otpForm/index.styled.d.ts +0 -2
- package/build/components/onboarding/personalInfoForm/index.d.ts +0 -16
- package/build/components/onboarding/personalInfoForm/index.styled.d.ts +0 -1
- package/build/components/onboarding/updatePassword/index.d.ts +0 -11
- package/build/components/onboarding/utils.d.ts +0 -12
- package/build/core-83f792ed.js +0 -1
- package/build/esm/components/onboarding/context.d.ts +0 -7
- package/build/esm/components/onboarding/dynamicForm/index.d.ts +0 -9
- package/build/esm/components/onboarding/dynamicForm/index.styled.d.ts +0 -1
- package/build/esm/components/onboarding/generateSchema.d.ts +0 -40
- package/build/esm/components/onboarding/index.d.ts +0 -20
- package/build/esm/components/onboarding/onboardingForm/default.d.ts +0 -13
- package/build/esm/components/onboarding/onboardingForm/index.d.ts +0 -19
- package/build/esm/components/onboarding/onboardingForm/index.styled.d.ts +0 -2
- package/build/esm/components/onboarding/onboardingForm/similac.d.ts +0 -22
- package/build/esm/components/onboarding/onboardingModal/index.d.ts +0 -37
- package/build/esm/components/onboarding/onboardingModal/index.styled.d.ts +0 -7
- package/build/esm/components/onboarding/otpForm/index.d.ts +0 -14
- package/build/esm/components/onboarding/otpForm/index.styled.d.ts +0 -2
- package/build/esm/components/onboarding/personalInfoForm/index.d.ts +0 -16
- package/build/esm/components/onboarding/personalInfoForm/index.styled.d.ts +0 -1
- package/build/esm/components/onboarding/updatePassword/index.d.ts +0 -11
- package/build/esm/components/onboarding/utils.d.ts +0 -12
- package/build/esm/getDynamicHealthTool-903967f9.js +0 -1
- package/build/esm/index-13d1762f.js +0 -1
- package/build/esm/index-53595062.js +0 -177
- package/build/esm/index-8bbbd170.js +0 -3685
- package/build/esm/index-8ca46c54.js +0 -1
- package/build/esm/index-98e8de72.js +0 -7
- package/build/esm/index-9fd3d0fd.js +0 -53
- package/build/esm/index-bb930226.js +0 -112
- package/build/esm/index-bc47f5c6.js +0 -1
- package/build/esm/index-c515f74e.js +0 -1
- package/build/esm/index-d653a832.js +0 -1
- package/build/esm/index-f189fc19.js +0 -1
- package/build/esm/index.styled-63979fbe.js +0 -130
- package/build/esm/onboarding.js +0 -1
- package/build/esm/types-291f6733.js +0 -1
- package/build/esm/useHealthToolCache-df31304e.js +0 -1
- package/build/esm/useRafState-bc3ac5aa.js +0 -1
- package/build/esm/useTranslations-05837a9e.js +0 -1
- package/build/esm/useUniqueId-1038f9f9.js +0 -1
- package/build/getDynamicHealthTool-a14277e0.js +0 -1
- package/build/index-0e327af2.js +0 -3685
- package/build/index-2230d12c.js +0 -1
- package/build/index-3047af35.js +0 -7
- package/build/index-475c1821.js +0 -53
- package/build/index-70f6c589.js +0 -112
- package/build/index-740296dd.js +0 -1
- package/build/index-8fb9f088.js +0 -1
- package/build/index-ef6168ac.js +0 -1
- package/build/index-f7c7879e.js +0 -177
- package/build/index.styled-b3aa0666.js +0 -130
- package/build/onboarding.js +0 -1
- package/build/types-30ee95b9.js +0 -1
- package/build/useHealthToolCache-7bf3a7a8.js +0 -1
- package/build/useRafState-12d4ce4d.js +0 -1
- package/build/useTranslations-7420f9ed.js +0 -1
- package/build/useUniqueId-5793761d.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-57cc23fd.js → BMI_BOYS.percentile.monthly-897f278c.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-632d0534.js → BMI_BOYS.percentile.weekly-7f6bd811.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0c76bf5c.js → BMI_BOYS.percentile.yearly-b9832cd8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-a0fdb7b1.js → BMI_BOYS.zscore.monthly-71254f0d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-a106353a.js → BMI_BOYS.zscore.weekly-366b3627.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-912d1268.js → BMI_BOYS.zscore.yearly-a48c7800.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-d2e097dc.js → BMI_GIRLS.percentile.monthly-1a16de31.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-7bef746a.js → BMI_GIRLS.percentile.weekly-9b40eca7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-c1e1433e.js → BMI_GIRLS.percentile.yearly-34ad269f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-13eb28ae.js → BMI_GIRLS.zscore.monthly-313ba852.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-a1f51b61.js → BMI_GIRLS.zscore.weekly-ac9f5a60.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-4aedf41f.js → BMI_GIRLS.zscore.yearly-f53a6cf4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-65481a0c.js → HEAD CIRCUM_BOYS.percentile.monthly-a1b6b283.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-a306e056.js → HEAD CIRCUM_BOYS.percentile.weekly-852e115c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-03fc0b41.js → HEAD CIRCUM_BOYS.percentile.yearly-471656e5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d72461de.js → HEAD CIRCUM_BOYS.zscore.monthly-203552d8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-e25f3797.js → HEAD CIRCUM_BOYS.zscore.weekly-f3ec63ec.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-bcae45ff.js → HEAD CIRCUM_BOYS.zscore.yearly-c2af5f65.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bc1046a2.js → HEAD CIRCUM_GIRLS.percentile.monthly-4638011d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-32beb7ff.js → HEAD CIRCUM_GIRLS.percentile.weekly-9e06626f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-ca795d61.js → HEAD CIRCUM_GIRLS.percentile.yearly-1bc0df00.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-b0916200.js → HEAD CIRCUM_GIRLS.zscore.monthly-abd48e38.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-c0181a50.js → HEAD CIRCUM_GIRLS.zscore.weekly-509a7979.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-fbfbd4e1.js → HEAD CIRCUM_GIRLS.zscore.yearly-b2d43e8f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-c816c818.js → HEIGHT_BOYS.percentile.monthly-72273058.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-c2af85a4.js → HEIGHT_BOYS.percentile.weekly-4a584c93.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-b3b6d7bc.js → HEIGHT_BOYS.percentile.yearly-c4722678.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-0b4b3054.js → HEIGHT_BOYS.zscore.monthly-a979c615.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-c8e7c322.js → HEIGHT_BOYS.zscore.weekly-eefcb6b8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-1b149d72.js → HEIGHT_BOYS.zscore.yearly-452a19ff.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-d1e489b5.js → HEIGHT_GIRLS.percentile.monthly-34b1ebfe.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-6c53d632.js → HEIGHT_GIRLS.percentile.weekly-00b49948.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-1697e8f9.js → HEIGHT_GIRLS.percentile.yearly-829164bb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-faffebfc.js → HEIGHT_GIRLS.zscore.monthly-2e06e91f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-ebab3da8.js → HEIGHT_GIRLS.zscore.weekly-d06bce03.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-1739a385.js → HEIGHT_GIRLS.zscore.yearly-46825394.js} +0 -0
- /package/build/{Onboarding-2c294647.js → Onboarding-440d9998.js} +0 -0
- /package/build/{Visible-b13b1c4c.js → Visible-5bccecfb.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-2f2d3368.js → WEIGHT_BOYS.percentile.monthly-3041d86f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-1a9894f6.js → WEIGHT_BOYS.percentile.weekly-0d4738a5.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-7688ee4f.js → WEIGHT_BOYS.percentile.yearly-f6eecd03.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-1236dd8a.js → WEIGHT_BOYS.zscore.monthly-46da990e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-bc0f86f8.js → WEIGHT_BOYS.zscore.weekly-bb88e2ba.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-a1d6f4be.js → WEIGHT_BOYS.zscore.yearly-910b69ef.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-c2261aa9.js → WEIGHT_GIRLS.percentile.monthly-fb032d13.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-ed8b09e1.js → WEIGHT_GIRLS.percentile.weekly-31973ae9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e0c0218a.js → WEIGHT_GIRLS.percentile.yearly-f95d4ded.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-5fc066d3.js → WEIGHT_GIRLS.zscore.monthly-c9ee18ae.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-112e12e0.js → WEIGHT_GIRLS.zscore.weekly-b4a0ff47.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-80b1fbad.js → WEIGHT_GIRLS.zscore.yearly-3bf54dd7.js} +0 -0
- /package/build/{constants-8b4bb24f.js → constants-0310cee5.js} +0 -0
- /package/build/{cookieHelper-ad36b15e.js → cookieHelper-d56ccd07.js} +0 -0
- /package/build/{dataTransform-f59194a9.js → dataTransform-4b91260a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-aa1786b0.js → BMI_BOYS.percentile.monthly-a70745e8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-a6a19e6d.js → BMI_BOYS.percentile.weekly-8cefffca.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-b2039f17.js → BMI_BOYS.percentile.yearly-d64a9109.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-b0b1d328.js → BMI_BOYS.zscore.monthly-aabb7001.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-bf78fc24.js → BMI_BOYS.zscore.weekly-89828435.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-4c2c7d6d.js → BMI_BOYS.zscore.yearly-d82dceb1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-419c9aa9.js → BMI_GIRLS.percentile.monthly-b164d27c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-946c9cbe.js → BMI_GIRLS.percentile.weekly-a3945a7e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-4a0da388.js → BMI_GIRLS.percentile.yearly-cdb086c7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-d97cb39b.js → BMI_GIRLS.zscore.monthly-8f85ced5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-c1b68adf.js → BMI_GIRLS.zscore.weekly-3e09aa3c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-a6871f52.js → BMI_GIRLS.zscore.yearly-f9d6607f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-11f66995.js → HEAD CIRCUM_BOYS.percentile.monthly-163ba6ad.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2d46f323.js → HEAD CIRCUM_BOYS.percentile.weekly-8f37e5d8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-85bf421c.js → HEAD CIRCUM_BOYS.percentile.yearly-f8c1d357.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-20d70e7e.js → HEAD CIRCUM_BOYS.zscore.monthly-7acc5199.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-ee2caf94.js → HEAD CIRCUM_BOYS.zscore.weekly-8fe0f985.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-204edc92.js → HEAD CIRCUM_BOYS.zscore.yearly-9c574ae7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3e30f44a.js → HEAD CIRCUM_GIRLS.percentile.monthly-4306cefb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2c4785c6.js → HEAD CIRCUM_GIRLS.percentile.weekly-2a3b4b35.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a5a1ede0.js → HEAD CIRCUM_GIRLS.percentile.yearly-72678f2a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-ead918d2.js → HEAD CIRCUM_GIRLS.zscore.monthly-443d6452.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-71c16457.js → HEAD CIRCUM_GIRLS.zscore.weekly-092629c7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-011b25a5.js → HEAD CIRCUM_GIRLS.zscore.yearly-9c7cd82a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-8bb0c1c9.js → HEIGHT_BOYS.percentile.monthly-720a7323.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-b42f641e.js → HEIGHT_BOYS.percentile.weekly-15dc9917.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-a64ad1ab.js → HEIGHT_BOYS.percentile.yearly-011c97ff.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c599622f.js → HEIGHT_BOYS.zscore.monthly-4679a250.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-0be27c84.js → HEIGHT_BOYS.zscore.weekly-9c74a9a1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3e179aa0.js → HEIGHT_BOYS.zscore.yearly-63622ee4.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-760eb830.js → HEIGHT_GIRLS.percentile.monthly-89d55866.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-fdc1d9a9.js → HEIGHT_GIRLS.percentile.weekly-a874b8dc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-620a4348.js → HEIGHT_GIRLS.percentile.yearly-e2501347.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-d834d9bd.js → HEIGHT_GIRLS.zscore.monthly-623481e1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-a6b93a18.js → HEIGHT_GIRLS.zscore.weekly-628f10ee.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-2c84faf3.js → HEIGHT_GIRLS.zscore.yearly-ee86713f.js} +0 -0
- /package/build/esm/{Onboarding-8b28384b.js → Onboarding-c84a93ba.js} +0 -0
- /package/build/esm/{Visible-2734edb1.js → Visible-044e9287.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-f720d1ea.js → WEIGHT_BOYS.percentile.monthly-b96f255f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-d6c016bd.js → WEIGHT_BOYS.percentile.weekly-9352237e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-7e061999.js → WEIGHT_BOYS.percentile.yearly-5446ef23.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e95f3fcc.js → WEIGHT_BOYS.zscore.monthly-a340c664.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6a0c59f7.js → WEIGHT_BOYS.zscore.weekly-c2511627.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-aed9a96b.js → WEIGHT_BOYS.zscore.yearly-984b7a4b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-82dd66db.js → WEIGHT_GIRLS.percentile.monthly-1d83fefa.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-8463cb34.js → WEIGHT_GIRLS.percentile.weekly-12517bb4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-792742b2.js → WEIGHT_GIRLS.percentile.yearly-bbe9bf0b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-55e03c4d.js → WEIGHT_GIRLS.zscore.monthly-092abc6a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-fcc2e366.js → WEIGHT_GIRLS.zscore.weekly-d0dafd7c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-4057e6c0.js → WEIGHT_GIRLS.zscore.yearly-3bd26bfc.js} +0 -0
- /package/build/esm/{constants-91b49401.js → constants-dae7c1c8.js} +0 -0
- /package/build/esm/{cookieHelper-ffc88d6d.js → cookieHelper-edcbdeb1.js} +0 -0
- /package/build/esm/{dataTransform-ce680a45.js → dataTransform-3379c89c.js} +0 -0
- /package/build/esm/{index-94388ed1.js → index-26b521b9.js} +0 -0
- /package/build/esm/{index-c58a569a.js → index-51c5b62a.js} +0 -0
- /package/build/esm/{index-cbbf7691.js → index-d74d7179.js} +0 -0
- /package/build/esm/{isProduction-f4dbc2d4.js → isProduction-8ab3b171.js} +0 -0
- /package/build/esm/{localizeNumberFormat-adf5537b.js → localizeNumberFormat-191c98c6.js} +0 -0
- /package/build/esm/{normalizeLink-7e0037b8.js → normalizeLink-0a3c8308.js} +0 -0
- /package/build/esm/{number-9efd2432.js → number-d849995c.js} +0 -0
- /package/build/esm/{paths-0d7f7cf7.js → paths-df5829fa.js} +0 -0
- /package/build/esm/{screenSizeContext-b15d4040.js → screenSizeContext-42725df5.js} +0 -0
- /package/build/esm/{theme-ef15bf8f.js → theme-2a81e1fd.js} +0 -0
- /package/build/esm/{translationsContext-cbd16a7a.js → translationsContext-1e559565.js} +0 -0
- /package/build/esm/{tslib.es6-ffda1476.js → tslib.es6-f3d6585c.js} +0 -0
- /package/build/esm/{types-04c6da41.js → types-8526ae41.js} +0 -0
- /package/build/esm/{useIsInit-723ea6f5.js → useIsInit-cbfef75f.js} +0 -0
- /package/build/esm/{useOutsideClick-e7e62f33.js → useOutsideClick-b22fab31.js} +0 -0
- /package/build/esm/{useScrollbarSize-0e377e6b.js → useScrollbarSize-f5256b2c.js} +0 -0
- /package/build/{index-8da7283b.js → index-230ebca1.js} +0 -0
- /package/build/{index-d0cbf725.js → index-9235d416.js} +0 -0
- /package/build/{index-1bc33e43.js → index-a2762b5a.js} +0 -0
- /package/build/{isProduction-5aae4b14.js → isProduction-b1949416.js} +0 -0
- /package/build/{localizeNumberFormat-7e560d31.js → localizeNumberFormat-e1f2130a.js} +0 -0
- /package/build/{normalizeLink-6f77aba7.js → normalizeLink-c43d8cb8.js} +0 -0
- /package/build/{number-febb1faa.js → number-68b5b673.js} +0 -0
- /package/build/{paths-14eca773.js → paths-5f020b3e.js} +0 -0
- /package/build/{screenSizeContext-c251c3ca.js → screenSizeContext-68c366bd.js} +0 -0
- /package/build/{theme-9702e4a2.js → theme-0d8cf7a8.js} +0 -0
- /package/build/{translationsContext-7f595667.js → translationsContext-a24a8c3b.js} +0 -0
- /package/build/{tslib.es6-bf581e84.js → tslib.es6-0640690d.js} +0 -0
- /package/build/{types-f42385e6.js → types-50d4e328.js} +0 -0
- /package/build/{useIsInit-2c40d9b5.js → useIsInit-696fdb76.js} +0 -0
- /package/build/{useOutsideClick-27ecfa40.js → useOutsideClick-12d05c5c.js} +0 -0
- /package/build/{useScrollbarSize-01e15c99.js → useScrollbarSize-fce4df23.js} +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
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,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PhoneProps } from "../../mantine/phone";
|
|
3
|
-
import { OnboardingFormField } from './similac';
|
|
4
|
-
export type OnboardingFormProps = {
|
|
5
|
-
onClose(): void;
|
|
6
|
-
onSubmit(phone: string | OnboardingFormField): void;
|
|
7
|
-
canSkip?: boolean;
|
|
8
|
-
defaultCountry?: PhoneProps['defaultCountry'];
|
|
9
|
-
customFormTexts?: {
|
|
10
|
-
heading?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
};
|
|
13
|
-
withSimilac?: boolean;
|
|
14
|
-
customTerms?: React.ReactNode;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Use OnboardingV2 instead
|
|
18
|
-
*/
|
|
19
|
-
export declare const OnboardingForm: ({ withSimilac, ...rest }: OnboardingFormProps) => React.JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
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>;
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
customTerms?: React.ReactNode;
|
|
20
|
-
defaultValues?: Partial<OnboardingFormField>;
|
|
21
|
-
};
|
|
22
|
-
export declare const SimilacOnboardingForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, customTerms, defaultValues, ...rest }: OnboardingFormProps) => React.JSX.Element;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { OnboardingProps } from "../../ui/onboarding";
|
|
3
|
-
import { Banner, OnboardingStep, PersonalInfo } from "../../../interfaces/types";
|
|
4
|
-
import { OnboardingFormProps } from '../onboardingForm';
|
|
5
|
-
export type ResultScreen = OnboardingProps;
|
|
6
|
-
export type OnboardingModalProps = {
|
|
7
|
-
banner?: Banner;
|
|
8
|
-
canSkip?: boolean;
|
|
9
|
-
createPassError?: string;
|
|
10
|
-
createPassLoading?: boolean;
|
|
11
|
-
customFormTexts?: {
|
|
12
|
-
onboarding?: OnboardingFormProps['customFormTexts'];
|
|
13
|
-
};
|
|
14
|
-
emailLoading?: boolean;
|
|
15
|
-
flow?: OnboardingStep[];
|
|
16
|
-
initialData?: any;
|
|
17
|
-
onClose?: () => void;
|
|
18
|
-
onCreatePassByEmail?(password: string): void;
|
|
19
|
-
onOtpSubmit?(otp: string): void | Promise<string | undefined | void>;
|
|
20
|
-
onPersonalInfoSubmit?(values: PersonalInfo): void | Promise<string | undefined | void>;
|
|
21
|
-
onPhoneSubmit?(phone: string): void;
|
|
22
|
-
onResendCode?(phone: string): void;
|
|
23
|
-
otpError?: string;
|
|
24
|
-
otpLoading?: boolean;
|
|
25
|
-
personalInfoError?: string;
|
|
26
|
-
resultScreenProps?: ResultScreen;
|
|
27
|
-
siteType?: 'helloSites' | 'marryBaby';
|
|
28
|
-
step?: OnboardingStep;
|
|
29
|
-
withSimilac?: boolean;
|
|
30
|
-
similacFormProps?: {
|
|
31
|
-
onFormSubmit?: (values: any) => void;
|
|
32
|
-
defaultValues?: any;
|
|
33
|
-
customTerms?: ReactNode;
|
|
34
|
-
};
|
|
35
|
-
} & HTMLAttributes<HTMLDivElement>;
|
|
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;
|
|
37
|
-
export { OnboardingModal };
|
|
@@ -1,7 +0,0 @@
|
|
|
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>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type OtpFormProps = {
|
|
3
|
-
onSubmit(otp: string | number): void;
|
|
4
|
-
phone?: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
onResendCode(phone: string): void;
|
|
7
|
-
otpError?: string;
|
|
8
|
-
onClose(): void;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
canSkip?: boolean;
|
|
11
|
-
onBack?(): void;
|
|
12
|
-
outOfEdit?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const OtpForm: ({ onSubmit: _onSubmit, phone, email, onResendCode, otpError, onClose, loading, onBack, canSkip: canSkipInit, outOfEdit, }: OtpFormProps) => React.JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
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>;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledFormInner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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 UpdatePassword: ({ onClose, onSubmit, canSkip, errorMessage, loading, }: UpdatePasswordFormProps) => React.JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
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/core-83f792ed.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-bf581e84.js"),e=require("./isProduction-5aae4b14.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,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type OnboardingContextProps = {
|
|
3
|
-
siteType: 'helloSites' | 'marryBaby';
|
|
4
|
-
isMarryBaby: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const OnboardingContext: import("react").Context<OnboardingContextProps>;
|
|
7
|
-
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>;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledDynamicForm: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
}, "">;
|
|
9
|
-
export declare const similacOnboardingSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
10
|
-
phone: string;
|
|
11
|
-
name: string;
|
|
12
|
-
email: string;
|
|
13
|
-
address: {};
|
|
14
|
-
term: boolean;
|
|
15
|
-
}, yup.AnyObject, {
|
|
16
|
-
phone: "";
|
|
17
|
-
name: undefined;
|
|
18
|
-
email: "";
|
|
19
|
-
address: undefined;
|
|
20
|
-
term: undefined;
|
|
21
|
-
}, "">;
|
|
22
|
-
export declare const otpSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
23
|
-
otp: string;
|
|
24
|
-
}, yup.AnyObject, {
|
|
25
|
-
otp: "";
|
|
26
|
-
}, "">;
|
|
27
|
-
export declare const onboardingEmailSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
28
|
-
email: string;
|
|
29
|
-
name: string;
|
|
30
|
-
}, yup.AnyObject, {
|
|
31
|
-
email: "";
|
|
32
|
-
name: undefined;
|
|
33
|
-
}, "">;
|
|
34
|
-
export declare const onboardingUpdatePasswordSchema: (t: UseTranslationsReturn<LocaleType>['t']) => yup.ObjectSchema<{
|
|
35
|
-
password: string;
|
|
36
|
-
confirmPassword: string;
|
|
37
|
-
}, yup.AnyObject, {
|
|
38
|
-
password: "";
|
|
39
|
-
confirmPassword: "";
|
|
40
|
-
}, "">;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Use OnboardingV2 instead
|
|
3
|
-
*/
|
|
4
|
-
export { OnboardingModal } from './onboardingModal';
|
|
5
|
-
export type { OnboardingModalProps } from './onboardingModal';
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use OnboardingV2 instead
|
|
8
|
-
*/
|
|
9
|
-
export { OnboardingForm } from './onboardingForm';
|
|
10
|
-
export type { OnboardingFormProps } from './onboardingForm';
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use OnboardingV2 instead
|
|
13
|
-
*/
|
|
14
|
-
export { OtpForm } from './otpForm';
|
|
15
|
-
export type { PersonalInfo } from "../../interfaces/types";
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Use OnboardingV2 instead
|
|
18
|
-
*/
|
|
19
|
-
export { OnboardingStep } from "../../interfaces/types";
|
|
20
|
-
export { MAPPED_LOCALE } from './utils';
|
|
@@ -1,13 +0,0 @@
|
|
|
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,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PhoneProps } from "../../mantine/phone";
|
|
3
|
-
import { OnboardingFormField } from './similac';
|
|
4
|
-
export type OnboardingFormProps = {
|
|
5
|
-
onClose(): void;
|
|
6
|
-
onSubmit(phone: string | OnboardingFormField): void;
|
|
7
|
-
canSkip?: boolean;
|
|
8
|
-
defaultCountry?: PhoneProps['defaultCountry'];
|
|
9
|
-
customFormTexts?: {
|
|
10
|
-
heading?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
};
|
|
13
|
-
withSimilac?: boolean;
|
|
14
|
-
customTerms?: React.ReactNode;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Use OnboardingV2 instead
|
|
18
|
-
*/
|
|
19
|
-
export declare const OnboardingForm: ({ withSimilac, ...rest }: OnboardingFormProps) => React.JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
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>;
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
customTerms?: React.ReactNode;
|
|
20
|
-
defaultValues?: Partial<OnboardingFormField>;
|
|
21
|
-
};
|
|
22
|
-
export declare const SimilacOnboardingForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, customTerms, defaultValues, ...rest }: OnboardingFormProps) => React.JSX.Element;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { OnboardingProps } from "../../ui/onboarding";
|
|
3
|
-
import { Banner, OnboardingStep, PersonalInfo } from "../../../interfaces/types";
|
|
4
|
-
import { OnboardingFormProps } from '../onboardingForm';
|
|
5
|
-
export type ResultScreen = OnboardingProps;
|
|
6
|
-
export type OnboardingModalProps = {
|
|
7
|
-
banner?: Banner;
|
|
8
|
-
canSkip?: boolean;
|
|
9
|
-
createPassError?: string;
|
|
10
|
-
createPassLoading?: boolean;
|
|
11
|
-
customFormTexts?: {
|
|
12
|
-
onboarding?: OnboardingFormProps['customFormTexts'];
|
|
13
|
-
};
|
|
14
|
-
emailLoading?: boolean;
|
|
15
|
-
flow?: OnboardingStep[];
|
|
16
|
-
initialData?: any;
|
|
17
|
-
onClose?: () => void;
|
|
18
|
-
onCreatePassByEmail?(password: string): void;
|
|
19
|
-
onOtpSubmit?(otp: string): void | Promise<string | undefined | void>;
|
|
20
|
-
onPersonalInfoSubmit?(values: PersonalInfo): void | Promise<string | undefined | void>;
|
|
21
|
-
onPhoneSubmit?(phone: string): void;
|
|
22
|
-
onResendCode?(phone: string): void;
|
|
23
|
-
otpError?: string;
|
|
24
|
-
otpLoading?: boolean;
|
|
25
|
-
personalInfoError?: string;
|
|
26
|
-
resultScreenProps?: ResultScreen;
|
|
27
|
-
siteType?: 'helloSites' | 'marryBaby';
|
|
28
|
-
step?: OnboardingStep;
|
|
29
|
-
withSimilac?: boolean;
|
|
30
|
-
similacFormProps?: {
|
|
31
|
-
onFormSubmit?: (values: any) => void;
|
|
32
|
-
defaultValues?: any;
|
|
33
|
-
customTerms?: ReactNode;
|
|
34
|
-
};
|
|
35
|
-
} & HTMLAttributes<HTMLDivElement>;
|
|
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;
|
|
37
|
-
export { OnboardingModal };
|
|
@@ -1,7 +0,0 @@
|
|
|
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>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type OtpFormProps = {
|
|
3
|
-
onSubmit(otp: string | number): void;
|
|
4
|
-
phone?: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
onResendCode(phone: string): void;
|
|
7
|
-
otpError?: string;
|
|
8
|
-
onClose(): void;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
canSkip?: boolean;
|
|
11
|
-
onBack?(): void;
|
|
12
|
-
outOfEdit?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const OtpForm: ({ onSubmit: _onSubmit, phone, email, onResendCode, otpError, onClose, loading, onBack, canSkip: canSkipInit, outOfEdit, }: OtpFormProps) => React.JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
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>;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledFormInner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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 UpdatePassword: ({ onClose, onSubmit, canSkip, errorMessage, loading, }: UpdatePasswordFormProps) => React.JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-ffda1476.js";import{g as o}from"./core-748a9fba.js";import{n as i}from"./normalizeLink-7e0037b8.js";import{c as l}from"./routing-95fe5316.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const a="tl-PH"===o?"lang=fil":"";let s=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));s=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return s}catch(t){console.error(t)}})),a=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{a,n as f,e as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-ffda1476.js";import t from"react";import{Modal as s,CloseButton as l}from"@mantine/core";import{CommonGAssets as a}from"./gAssets.js";import{j as o,T as n}from"./index-bb930226.js";const r=r=>{var{title:i,styles:m}=r,c=e(r,["title","styles"]);const{classes:d}=o(void 0,{name:"Modal",styles:m});return t.createElement(t.Fragment,null,t.createElement(s,Object.assign({centered:!0,classNames:d},c,{withCloseButton:!1,title:c.withCloseButton&&t.createElement(t.Fragment,null,t.createElement(n,{size:"s2",weight:"semiBold",as:"span"},i),t.createElement(l,Object.assign({},c.closeButtonProps,{onClick:()=>{var e;return null===(e=c.onClose)||void 0===e?void 0:e.call(c)},sx:{":focus":{outline:0}}}),t.createElement("img",{loading:"lazy",className:"mantine-Modal-close",src:a.getAssetPath("CloseModal.svg"),style:{width:"16px"}})))})))};export{r as M};
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as l}from"@mantine/core";import{t as n,M as i}from"./screenSizeContext-b15d4040.js";import{a4 as r,a5 as d,a6 as s,a7 as c,a8 as m,a9 as p,y as h}from"./index.styles-a4ace3a6.js";import{T as u}from"./index-c515f74e.js";import{u as g}from"./useScrollbarSize-0e377e6b.js";import{createPortal as y}from"react-dom";import b from"styled-components";import{u as v}from"./useTranslations-05837a9e.js";import{G as f}from"./Onboarding-8b28384b.js";import{I as x}from"./index-8ca46c54.js";import{M as C,a as w}from"./index-ac659d4d.js";import{t as E}from"./theme-ef15bf8f.js";const k=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),B=({children:o,title:i,onClose:r,open:m=!1,placement:p="left",destroyOnClose:h=!1,isPropagationEvent:g=!0,className:y})=>{const b=t();a((()=>(n(m),()=>n(!1))),[m]);const v=()=>{b.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!m&&h?null:e.createElement(l,null,e.createElement(d,{className:y,open:m},e.createElement(k,{open:m,onClickOutside:v}),e.createElement(s,{open:m,placement:p,ref:b,hasTitle:Boolean(i)},e.createElement("div",{className:"title"},i&&e.createElement(u,{size:"s2",type:"semiBold"},i),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:v},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),e.createElement(c,{onClick:e=>{g&&e.stopPropagation()}},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:v}):null)))))},_=({value:t,options:a,className:l,direction:n="horizontal",onChange:i,isDisabled:r,siteType:d})=>{const[s,c]=o(t),h="marryBaby"===d;return e.createElement(m,{className:l,"data-direction":n},a.map(((a,o)=>e.createElement(p,{"data-selected":(t||s)===a.value,"data-is-mb":h,"data-disabled":r,key:o,onClick:()=>{var e;e=a.value,r||(c(e),i&&i(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(C,{type:"subtitle-2",color:(t||s)===a.value?E.mbColors.dark:E.mbColors.midGray},a.label):e.createElement(u,{type:"bold",color:(t||s)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))))))},$="hhgcomp-modal-modal",j=h(b.div`
|
|
2
|
-
position: relative;
|
|
3
|
-
z-index: 200;
|
|
4
|
-
background-color: ${e=>e.theme.colors.white};
|
|
5
|
-
border-radius: ${e=>e.theme.borderRadius};
|
|
6
|
-
box-shadow: 0px 4px 8px ${e=>e.theme.colors.gray200};
|
|
7
|
-
&[data-site-type='marryBaby'] {
|
|
8
|
-
border-radius: 16px;
|
|
9
|
-
.hhg-modal__content {
|
|
10
|
-
position: relative;
|
|
11
|
-
z-index: 111;
|
|
12
|
-
height: 100%;
|
|
13
|
-
|
|
14
|
-
padding: 24px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
.hhg-modal__content {
|
|
18
|
-
position: relative;
|
|
19
|
-
z-index: 111;
|
|
20
|
-
height: 100%;
|
|
21
|
-
padding: 16px;
|
|
22
|
-
}
|
|
23
|
-
.hhg-modal__video {
|
|
24
|
-
position: relative;
|
|
25
|
-
z-index: 111;
|
|
26
|
-
height: 100%;
|
|
27
|
-
background-color: none;
|
|
28
|
-
box-shadow: none;
|
|
29
|
-
}
|
|
30
|
-
`,$),N=b.div`
|
|
31
|
-
position: fixed;
|
|
32
|
-
top: 0;
|
|
33
|
-
left: 0;
|
|
34
|
-
z-index: 201;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: 100%;
|
|
40
|
-
overflow-x: hidden;
|
|
41
|
-
overflow-y: auto;
|
|
42
|
-
outline: 0;
|
|
43
|
-
visibility: hidden;
|
|
44
|
-
background-color: rgba(38, 38, 38, 0.3);
|
|
45
|
-
|
|
46
|
-
.hhg-modal__close {
|
|
47
|
-
position: absolute;
|
|
48
|
-
top: 16px;
|
|
49
|
-
right: 16px;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
img {
|
|
52
|
-
width: 100%;
|
|
53
|
-
height: 100%;
|
|
54
|
-
border-radius: 50%;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
&[data-type='video'] {
|
|
58
|
-
z-index: 1001;
|
|
59
|
-
}
|
|
60
|
-
&[data-open='true'] {
|
|
61
|
-
visibility: visible;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.slideTop {
|
|
65
|
-
.${$} {
|
|
66
|
-
transform: translate(0, -100vh);
|
|
67
|
-
transition: all 0.5s ease;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&[data-open='true'] {
|
|
71
|
-
.${$} {
|
|
72
|
-
transform: translate(0);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&.scaleUp {
|
|
78
|
-
.${$} {
|
|
79
|
-
transform: scale(0.9);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&[data-open='true'] {
|
|
83
|
-
.${$} {
|
|
84
|
-
transition: all 0.3s ease-out;
|
|
85
|
-
transform: scale(1);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&[data-type='tail'] {
|
|
91
|
-
justify-content: flex-end;
|
|
92
|
-
.${$} {
|
|
93
|
-
width: 420px;
|
|
94
|
-
height: 100%;
|
|
95
|
-
border-radius: 0;
|
|
96
|
-
overflow: hidden auto;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
&[data-type='form'] {
|
|
100
|
-
.${$} {
|
|
101
|
-
width: 496px;
|
|
102
|
-
height: 548px;
|
|
103
|
-
max-height: 100%;
|
|
104
|
-
overflow-y: auto;
|
|
105
|
-
${i.mbDown} {
|
|
106
|
-
width: 340px;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
&[data-type='video'] {
|
|
111
|
-
.${$} {
|
|
112
|
-
height: 100%;
|
|
113
|
-
max-height: 539px;
|
|
114
|
-
${i.mbDown} {
|
|
115
|
-
height: 192px;
|
|
116
|
-
width: 100%;
|
|
117
|
-
height: 100%;
|
|
118
|
-
border-radius: ${e=>e.theme.borderRadius};
|
|
119
|
-
max-height: 192px;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
&[data-type='confirm'] {
|
|
124
|
-
.${$} {
|
|
125
|
-
width: 100%;
|
|
126
|
-
max-width: 407px;
|
|
127
|
-
${i.mbDown} {
|
|
128
|
-
width: calc(100% - 32px);
|
|
129
|
-
max-width: calc(100% - 32px);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
`,L=b.div`
|
|
134
|
-
position: fixed;
|
|
135
|
-
top: 0;
|
|
136
|
-
left: 0;
|
|
137
|
-
width: 100vw;
|
|
138
|
-
height: 100vh;
|
|
139
|
-
align-items: center;
|
|
140
|
-
|
|
141
|
-
&[data-open='false'] {
|
|
142
|
-
display: none;
|
|
143
|
-
}
|
|
144
|
-
&[data-type='video'] {
|
|
145
|
-
background-color: ${e=>e.theme.colors.secondaryDark};
|
|
146
|
-
}
|
|
147
|
-
`,T="hhg-modals",z=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},G=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},D=({type:l="lead",closeIcon:n,isOpen:i=!0,onClose:r,children:d,className:s="",animationType:c="slideTop",isStaticBackdrop:m=!1,siteType:p})=>{const[h,u]=o(!1),b=t(null),{width:v}=g();if(!b.current&&h&&(b.current=document.createElement("div")),a((()=>(u(!0),()=>{u(!1),z(),G()})),[]),a((()=>{if(h){const e=(()=>{let e=document.getElementById(T);return e||(e=document.createElement("div"),e.setAttribute("id",T),document.body.append(e)),e})();return e.appendChild(b.current),()=>{e.removeChild(b.current)}}}),[h]),a((()=>{i?document.body.classList.add("hhc-modal-show"):z()}),[i]),a((()=>{i?(document.body.style.overflow="hidden",document.body.style.paddingRight=v+"px",document.body.classList.add("hhc-disabled-scroll")):G()}),[i,v]),!h)return null;const f=["hhg-modal__wrapper",s,c].filter((e=>e)).join(" ");return y(e.createElement(N,{className:f,"data-open":i,"data-type":l},!m&&e.createElement(L,{"data-open":i,onClick:r,"data-type":l}),!m&&"video"===l&&!!n&&e.createElement("div",{className:"hhg-modal__close",onClick:r},n),e.createElement(j,{className:"hhg-modal","data-open":i,"data-site-type":p},e.createElement("div",{className:"video"===l?"hhg-modal__video":"hhg-modal__content"},!!n&&"video"!==l&&e.createElement("div",{className:"hhg-modal__close",onClick:r},n),d))),b.current)},M=b.div`
|
|
148
|
-
& > :not(:last-child) {
|
|
149
|
-
margin-bottom: 8px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.gender-selector {
|
|
153
|
-
& > :not(:last-child) {
|
|
154
|
-
margin-right: 16px;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
& > div {
|
|
158
|
-
width: calc(50% - 8px);
|
|
159
|
-
|
|
160
|
-
${i.mbUp} {
|
|
161
|
-
justify-self: left;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
`,O=b(_)`
|
|
166
|
-
& > div > div {
|
|
167
|
-
display: flex;
|
|
168
|
-
flex-direction: row;
|
|
169
|
-
justify-content: center;
|
|
170
|
-
align-content: center;
|
|
171
|
-
gap: 8px;
|
|
172
|
-
padding-block: 5px;
|
|
173
|
-
}
|
|
174
|
-
.radio-group-item-heading {
|
|
175
|
-
margin-top: 0;
|
|
176
|
-
}
|
|
177
|
-
`,S=({value:t,onChange:a,siteType:o})=>{const{t:l}=v(),n="marryBaby"==o;return e.createElement(M,{"data-is-marryBaby":n},n?e.createElement(w,{type:"h4",color:E.mbColors.dark},l("babyVaccineTool.selectGender")):e.createElement(u,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},l("babyVaccineTool.selectGender")),e.createElement(O,{siteType:o,options:[{value:f.Boy,label:l("gender.male"),content:n?e.createElement(x.BabyBoyMB,null):e.createElement(x.GenderChooseBoy,null)},{value:f.Girl,label:l("gender.female"),content:n?e.createElement(x.BabyGirlMB,null):e.createElement(x.GenderChooseGirl,null)}],value:t,onChange:a,className:"gender-selector"}))};export{S as B,B as D,D as M,_ as R};
|