@hhgtech/hhg-components 1.26.31-beta-1 → 1.26.32
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/atoms/authorBadge/index.styles.d.ts +2 -4
- package/build/components/atoms/customReferenceDot/index.d.ts +1 -1
- package/build/components/mantine/anchor/index.styles.d.ts +2 -4
- package/build/components/mantine/button/index.styles.d.ts +2 -4
- package/build/components/mantine/datepicker/index.d.ts +8 -4
- package/build/components/mantine/datepicker/index.styled.d.ts +3 -0
- package/build/components/mantine/datepicker/range.d.ts +5 -0
- package/build/components/mantine/index.d.ts +1 -1
- package/build/components/mantine/input/number.d.ts +2 -2
- package/build/components/mantine/otp/index.d.ts +2 -2
- package/build/components/mantine/phone/index.d.ts +1 -1
- package/build/components/mantine/tabs/index.styles.d.ts +2 -4
- package/build/components/mantine/text/index.styles.d.ts +2 -4
- package/build/components/mantine/theme/input.d.ts +3 -4
- package/build/components/mantine/theme/other.d.ts +2 -2
- package/build/components/mantine/theme/text.d.ts +38 -38
- package/build/components/molecules/tabs/index.styles.d.ts +2 -8
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-e1d079c2.js +1 -0
- package/build/{dataTransform-4d0598f4.js → dataTransform-28101413.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +6 -6
- 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-8f9d07eb.js → core-8caadfc5.js} +1 -1
- package/build/esm/{dataTransform-50f587be.js → dataTransform-274126e8.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-90551b77.js +1 -0
- package/build/esm/{getSocialList-83fa84f9.js → getSocialList-466fa13f.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-7d2774c7.js → index-12de6c42.js} +1 -1
- package/build/esm/{index-bfe2af39.js → index-2dcd7658.js} +1 -1
- package/build/esm/{index-5a2a78b2.js → index-49d42994.js} +1 -1
- package/build/esm/{index-fa1e8c9d.js → index-587a7c6c.js} +1 -1
- package/build/esm/{index-e57969b0.js → index-5faf1733.js} +6 -6
- package/build/esm/{index-83a19ebc.js → index-6e4970c6.js} +1 -1
- package/build/esm/{index-659e184c.js → index-7b7ecc63.js} +1 -1
- package/build/esm/index-7c08fc24.js +151 -0
- package/build/esm/index-96906ea3.js +1 -0
- package/build/esm/index-9e21a856.js +1 -0
- package/build/esm/{index-51dbfafb.js → index-a7593bb9.js} +1 -1
- package/build/esm/{index-a39dfefc.js → index-aa91b2e8.js} +1 -1
- package/build/esm/index-ad7df466.js +1 -0
- package/build/esm/{index-3ffd661b.js → index-c1c4ea8a.js} +1 -1
- package/build/esm/{index-08ac209a.js → index-c8894e53.js} +1 -1
- package/build/esm/index-d67f0f84.js +1 -0
- package/build/esm/index-dfa681bc.js +1 -0
- package/build/esm/{index-bb41aca9.js → index-e00f38c9.js} +1 -1
- package/build/esm/index-e0b5236e.js +1 -0
- package/build/esm/{index-e3d59630.js → index-e1c04a61.js} +1 -1
- package/build/esm/{index-32af65aa.js → index-f279f9cc.js} +1 -1
- package/build/esm/index-f9a3ccf7.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-fa7c7275.js → index.styled-1b7062fa.js} +1 -1
- package/build/esm/{index.styled-651d52e0.js → index.styled-30b4b2d2.js} +6 -6
- package/build/esm/{index.styled-6fc0617c.js → index.styled-7d3abcab.js} +1 -1
- package/build/esm/{index.styled-6d9187ba.js → index.styled-c8b3bbda.js} +1 -1
- package/build/esm/{index.styled-471848bd.js → index.styled-e1458854.js} +173 -173
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-6352ac9e.js → routing-5659c7c1.js} +1 -1
- package/build/esm/{screenSizeContext-4c6d6d1f.js → screenSizeContext-ef383a81.js} +2 -2
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-e5e44899.js → translationsProvider-c6ae6aba.js} +1 -1
- package/build/esm/{types-ccf0d886.js → types-a8957b61.js} +1 -1
- package/build/esm/{types-26b4f697.js → types-b47cfb90.js} +77 -77
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-33638761.js +1 -0
- package/build/esm/{useRafState-c766bd51.js → useRafState-8ad5ff5d.js} +1 -1
- package/build/esm/useTranslations-09fd59a7.js +1 -0
- package/build/esm/{utils-8a6376e7.js → utils-737d26dc.js} +16 -16
- package/build/esm/vaccination.js +12 -12
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-10160478.js → getDynamicHealthTool-f5800966.js} +1 -1
- package/build/{getSocialList-131b7401.js → getSocialList-a32f7622.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-b8f38dbf.js → index-023543bd.js} +1 -1
- package/build/index-05a92235.js +1 -0
- package/build/index-18e5870d.js +1 -0
- package/build/{index-ef89cbe1.js → index-20ec378a.js} +1 -1
- package/build/{index-6163bc47.js → index-2479abce.js} +1 -1
- package/build/{index-1f304a77.js → index-28df8c27.js} +1 -1
- package/build/{index-98644317.js → index-34d6ee2c.js} +1 -1
- package/build/{index-fd76aa1a.js → index-41ec0350.js} +1 -1
- package/build/index-5140044f.js +1 -0
- package/build/{index-e23a2a3b.js → index-6783d880.js} +1 -1
- package/build/{index-3372427f.js → index-76781aaa.js} +1 -1
- package/build/{index-5f4e710f.js → index-8515331b.js} +1 -1
- package/build/index-922aa090.js +1 -0
- package/build/{index-18063dc1.js → index-a1f24ac5.js} +1 -1
- package/build/{index-b21efa01.js → index-a2796700.js} +1 -1
- package/build/index-a2bee1ad.js +1 -0
- package/build/{index-067deec8.js → index-b24d30a4.js} +1 -1
- package/build/{index-a3f70c0c.js → index-bcc60c35.js} +1 -1
- package/build/{index-3b37ee3b.js → index-d3826236.js} +1 -1
- package/build/{index-7682924b.js → index-db12a261.js} +1 -1
- package/build/index-dfb7b798.js +151 -0
- package/build/{index-a71723b0.js → index-ff37193f.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-d00c2031.js → index.styled-06bff8be.js} +2 -2
- package/build/{index.styled-6696cd4b.js → index.styled-360b806d.js} +1 -1
- package/build/{index.styled-f83131a8.js → index.styled-6da69873.js} +1 -1
- package/build/{index.styled-67575fa7.js → index.styled-6e88c577.js} +1 -1
- package/build/index.styled-722fa7a1.js +50 -0
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +4 -4
- package/build/{routing-e868841f.js → routing-11b59429.js} +1 -1
- package/build/{screenSizeContext-39aa4f57.js → screenSizeContext-2a70b050.js} +3 -3
- package/build/together/components/atoms/tagTopic/index.d.ts +2 -6
- package/build/together/components/molecules/cardAuthor/index.styles.d.ts +2 -5
- package/build/together/components/molecules/postContent/index.styles.d.ts +2 -4
- package/build/together.js +1 -1
- package/build/{translationsProvider-786aff99.js → translationsProvider-f706d7ce.js} +1 -1
- package/build/{types-1f262d8f.js → types-181bd739.js} +37 -37
- package/build/{types-d88361fa.js → types-1c02a2e5.js} +7 -7
- package/build/types.js +1 -1
- package/build/{useHealthToolCache-1b449cd1.js → useHealthToolCache-e8385f9f.js} +1 -1
- package/build/{useRafState-f789a894.js → useRafState-2246427c.js} +1 -1
- package/build/useTranslations-b15251a8.js +1 -0
- package/build/utils-0eff6749.js +166 -0
- package/build/vaccination.js +49 -49
- package/package.json +15 -10
- package/build/core-344c9485.js +0 -1
- package/build/esm/getDynamicHealthTool-c616d70b.js +0 -1
- package/build/esm/index-05b13dbd.js +0 -1
- package/build/esm/index-0ff28bd7.js +0 -1
- package/build/esm/index-10948b1c.js +0 -1
- package/build/esm/index-11e50f7e.js +0 -1
- package/build/esm/index-20ab6816.js +0 -1
- package/build/esm/index-4ffad2df.js +0 -1
- package/build/esm/index-5c513c32.js +0 -134
- package/build/esm/index-893eb71f.js +0 -1
- package/build/esm/index-b199876c.js +0 -1
- package/build/esm/useHealthToolCache-a15a8055.js +0 -1
- package/build/esm/useTranslations-afa388d2.js +0 -1
- package/build/index-0b8f497e.js +0 -1
- package/build/index-3db7e24b.js +0 -1
- package/build/index-4f6e6407.js +0 -1
- package/build/index-517b3b4e.js +0 -1
- package/build/index-66419f52.js +0 -1
- package/build/index-bb89a955.js +0 -134
- package/build/index-df910c6a.js +0 -1
- package/build/index.styled-51ea6d47.js +0 -50
- package/build/useTranslations-a470d131.js +0 -1
- package/build/utils-10e3773a.js +0 -166
- /package/build/{BMI_BOYS.percentile.monthly-1a5314e1.js → BMI_BOYS.percentile.monthly-1d7af41b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-af7a24e8.js → BMI_BOYS.percentile.weekly-b069d62a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-88ceb2ce.js → BMI_BOYS.percentile.yearly-8ff4bb62.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b531fdfe.js → BMI_BOYS.zscore.monthly-78a9cc6f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-eea70164.js → BMI_BOYS.zscore.weekly-1d2397cb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-f78acd8d.js → BMI_BOYS.zscore.yearly-70f2ff71.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-7c897be4.js → BMI_GIRLS.percentile.monthly-5c551722.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-3df92431.js → BMI_GIRLS.percentile.weekly-777ee642.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-013ed507.js → BMI_GIRLS.percentile.yearly-1932ad70.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-730e1ba7.js → BMI_GIRLS.zscore.monthly-0ae0242b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-45623657.js → BMI_GIRLS.zscore.weekly-1b3d59ee.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-a486b2d4.js → BMI_GIRLS.zscore.yearly-acfef8b9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-3ad2a214.js → HEAD CIRCUM_BOYS.percentile.monthly-dc8dd3a0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-47f71218.js → HEAD CIRCUM_BOYS.percentile.weekly-757ffdef.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2963c2d9.js → HEAD CIRCUM_BOYS.percentile.yearly-dc3039e6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-7041146d.js → HEAD CIRCUM_BOYS.zscore.monthly-f9b9537a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9e37e206.js → HEAD CIRCUM_BOYS.zscore.weekly-8e0b9e55.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c021b893.js → HEAD CIRCUM_BOYS.zscore.yearly-5ebba785.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-91e9e6ca.js → HEAD CIRCUM_GIRLS.percentile.monthly-7b3a69d4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-ff9c409c.js → HEAD CIRCUM_GIRLS.percentile.weekly-6468172c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-7634cbf7.js → HEAD CIRCUM_GIRLS.percentile.yearly-8b529237.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-b47bea28.js → HEAD CIRCUM_GIRLS.zscore.monthly-7e4b2c79.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b2648893.js → HEAD CIRCUM_GIRLS.zscore.weekly-c93c76b4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d23d710a.js → HEAD CIRCUM_GIRLS.zscore.yearly-09ac4a34.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-92dac455.js → HEIGHT_BOYS.percentile.monthly-f4df1d4f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-6e296ca2.js → HEIGHT_BOYS.percentile.weekly-98c3c7ae.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-dbea703a.js → HEIGHT_BOYS.percentile.yearly-0af9a6c7.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-672a012a.js → HEIGHT_BOYS.zscore.monthly-74469225.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-8a7830f6.js → HEIGHT_BOYS.zscore.weekly-5aedeb27.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-19a82732.js → HEIGHT_BOYS.zscore.yearly-a4d18a96.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-142d19db.js → HEIGHT_GIRLS.percentile.monthly-f1271059.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-ddd6543a.js → HEIGHT_GIRLS.percentile.weekly-8edfbaee.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-596841c2.js → HEIGHT_GIRLS.percentile.yearly-1e0afe8c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-21f298dc.js → HEIGHT_GIRLS.zscore.monthly-6f2fc7a4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-9b9876bf.js → HEIGHT_GIRLS.zscore.weekly-53b292b4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-b316b7c0.js → HEIGHT_GIRLS.zscore.yearly-9e3857fe.js} +0 -0
- /package/build/{Onboarding-3ec9d2f7.js → Onboarding-5e427213.js} +0 -0
- /package/build/{Visible-b982210c.js → Visible-a814efb4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-e64fd54c.js → WEIGHT_BOYS.percentile.monthly-2fdd897c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-fe154e87.js → WEIGHT_BOYS.percentile.weekly-3a3c029a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-a106aa59.js → WEIGHT_BOYS.percentile.yearly-ab37985a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-a1cbb9f1.js → WEIGHT_BOYS.zscore.monthly-57efda55.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-87c444ac.js → WEIGHT_BOYS.zscore.weekly-94193753.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-ab10a4cf.js → WEIGHT_BOYS.zscore.yearly-87105032.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-994f01d1.js → WEIGHT_GIRLS.percentile.monthly-1fa364b8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-8b686574.js → WEIGHT_GIRLS.percentile.weekly-6ae3377b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-a00491b9.js → WEIGHT_GIRLS.percentile.yearly-c593b312.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-2190091f.js → WEIGHT_GIRLS.zscore.monthly-fecd4f64.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-da2cc125.js → WEIGHT_GIRLS.zscore.weekly-1643fd19.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-28da872c.js → WEIGHT_GIRLS.zscore.yearly-5da211cc.js} +0 -0
- /package/build/{constants-69aa64d4.js → constants-668cc2e5.js} +0 -0
- /package/build/{cookieHelper-5364e217.js → cookieHelper-4f45dbb8.js} +0 -0
- /package/build/{dataTransform-3fe22d09.js → dataTransform-a7507c47.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-c871e1b9.js → BMI_BOYS.percentile.monthly-3e304387.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-d4101249.js → BMI_BOYS.percentile.weekly-dba58733.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-a39287ba.js → BMI_BOYS.percentile.yearly-7d2a5262.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-76829614.js → BMI_BOYS.zscore.monthly-cf9a9acf.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-0bdcff1d.js → BMI_BOYS.zscore.weekly-27bc7023.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8d133769.js → BMI_BOYS.zscore.yearly-8a1848c9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-69979970.js → BMI_GIRLS.percentile.monthly-3ae14efa.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-7092a059.js → BMI_GIRLS.percentile.weekly-23889eb5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-d0524e35.js → BMI_GIRLS.percentile.yearly-7d6220a0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-493f39a0.js → BMI_GIRLS.zscore.monthly-4b4186ab.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-d48cc7fd.js → BMI_GIRLS.zscore.weekly-4f0e900e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-5ad6aff0.js → BMI_GIRLS.zscore.yearly-7a6a3589.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f1d16b5f.js → HEAD CIRCUM_BOYS.percentile.monthly-b706ec38.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f8b9f07e.js → HEAD CIRCUM_BOYS.percentile.weekly-94c67b1b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-b791e642.js → HEAD CIRCUM_BOYS.percentile.yearly-61b346e7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-0e00727e.js → HEAD CIRCUM_BOYS.zscore.monthly-395c7855.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-ae159fab.js → HEAD CIRCUM_BOYS.zscore.weekly-26104ed6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-d27414eb.js → HEAD CIRCUM_BOYS.zscore.yearly-5a12ea42.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-85eb92ab.js → HEAD CIRCUM_GIRLS.percentile.monthly-8ecca100.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-706ace38.js → HEAD CIRCUM_GIRLS.percentile.weekly-63eb4486.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-4716c7b1.js → HEAD CIRCUM_GIRLS.percentile.yearly-c0036f0f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-9d7df6f9.js → HEAD CIRCUM_GIRLS.zscore.monthly-361f637a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-9e1add83.js → HEAD CIRCUM_GIRLS.zscore.weekly-c6d6a792.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c57b31d9.js → HEAD CIRCUM_GIRLS.zscore.yearly-12fd93f6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-54999367.js → HEIGHT_BOYS.percentile.monthly-2bede227.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5a517fac.js → HEIGHT_BOYS.percentile.weekly-050f52eb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-fdbe56c5.js → HEIGHT_BOYS.percentile.yearly-3b87b132.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a64d162c.js → HEIGHT_BOYS.zscore.monthly-40bef220.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-79699a87.js → HEIGHT_BOYS.zscore.weekly-9aa468e7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d4ad0827.js → HEIGHT_BOYS.zscore.yearly-794b66c2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-95e14e45.js → HEIGHT_GIRLS.percentile.monthly-ea31290f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-563f1af7.js → HEIGHT_GIRLS.percentile.weekly-2aac8847.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-b268184c.js → HEIGHT_GIRLS.percentile.yearly-8e278f70.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-7b56da51.js → HEIGHT_GIRLS.zscore.monthly-42417d68.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-aed242c7.js → HEIGHT_GIRLS.zscore.weekly-76528e2a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-be83a73d.js → HEIGHT_GIRLS.zscore.yearly-8262a23a.js} +0 -0
- /package/build/esm/{Onboarding-11fd8869.js → Onboarding-4f0cddc4.js} +0 -0
- /package/build/esm/{Visible-8982a9dc.js → Visible-cfbdbafa.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-e1373d04.js → WEIGHT_BOYS.percentile.monthly-496c2978.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-80d4b165.js → WEIGHT_BOYS.percentile.weekly-a45d8435.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-ac39cad2.js → WEIGHT_BOYS.percentile.yearly-fcc0e1d7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-7aadf68b.js → WEIGHT_BOYS.zscore.monthly-3c064878.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-40079eb7.js → WEIGHT_BOYS.zscore.weekly-6b1ac607.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bd84f7b6.js → WEIGHT_BOYS.zscore.yearly-24ec3606.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-7407826c.js → WEIGHT_GIRLS.percentile.monthly-9a5d79de.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f0326502.js → WEIGHT_GIRLS.percentile.weekly-0c8157ed.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-06ad6128.js → WEIGHT_GIRLS.percentile.yearly-b04ad579.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-65ff377f.js → WEIGHT_GIRLS.zscore.monthly-3982ade2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-bb5008ac.js → WEIGHT_GIRLS.zscore.weekly-a93fe176.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-16e5e9cc.js → WEIGHT_GIRLS.zscore.yearly-ad2557ae.js} +0 -0
- /package/build/esm/{constants-e90fa4b7.js → constants-62f03257.js} +0 -0
- /package/build/esm/{cookieHelper-69ee6923.js → cookieHelper-d915d8aa.js} +0 -0
- /package/build/esm/{dataTransform-0b571dc5.js → dataTransform-bec9ab4f.js} +0 -0
- /package/build/esm/{index-8453479c.js → index-065a85d6.js} +0 -0
- /package/build/esm/{index-535dc360.js → index-5e9f341a.js} +0 -0
- /package/build/esm/{isProduction-d38eca77.js → isProduction-4ca4ba88.js} +0 -0
- /package/build/esm/{localizeNumberFormat-f7a67730.js → localizeNumberFormat-1d89a8f3.js} +0 -0
- /package/build/esm/{normalizeLink-28121061.js → normalizeLink-5db3e984.js} +0 -0
- /package/build/esm/{theme-f0640131.js → theme-5660ea9e.js} +0 -0
- /package/build/esm/{translationsContext-8ca8b2d1.js → translationsContext-ea31a482.js} +0 -0
- /package/build/esm/{tslib.es6-2fdfbc37.js → tslib.es6-5ea1161d.js} +0 -0
- /package/build/esm/{types-24c0b532.js → types-db61e319.js} +0 -0
- /package/build/esm/{useIsInit-49442467.js → useIsInit-a958fa22.js} +0 -0
- /package/build/esm/{useOutsideClick-828fea7c.js → useOutsideClick-904bbdea.js} +0 -0
- /package/build/esm/{useScrollbarSize-0d6948cc.js → useScrollbarSize-e44804a5.js} +0 -0
- /package/build/esm/{useUniqueId-1a50ecaa.js → useUniqueId-77ec7ac6.js} +0 -0
- /package/build/esm/{utils-eaba6eeb.js → utils-53d109b3.js} +0 -0
- /package/build/{index-709ff87c.js → index-026bb445.js} +0 -0
- /package/build/{index-1d1cc93b.js → index-cd53c242.js} +0 -0
- /package/build/{isProduction-06097bf2.js → isProduction-5377bba0.js} +0 -0
- /package/build/{localizeNumberFormat-c4022492.js → localizeNumberFormat-6d3a030b.js} +0 -0
- /package/build/{normalizeLink-3468fc47.js → normalizeLink-f0f43c19.js} +0 -0
- /package/build/{theme-06faec28.js → theme-3d7b7e57.js} +0 -0
- /package/build/{translationsContext-25a56cac.js → translationsContext-3005d851.js} +0 -0
- /package/build/{tslib.es6-9954a4bc.js → tslib.es6-ff6d8bab.js} +0 -0
- /package/build/{types-3012ac1e.js → types-4a2937e6.js} +0 -0
- /package/build/{useIsInit-5bfd1664.js → useIsInit-771c7f0e.js} +0 -0
- /package/build/{useOutsideClick-d975d422.js → useOutsideClick-0e005c18.js} +0 -0
- /package/build/{useScrollbarSize-a39af0dd.js → useScrollbarSize-e9659238.js} +0 -0
- /package/build/{useUniqueId-6e970c87.js → useUniqueId-3c96cf52.js} +0 -0
- /package/build/{utils-5d36d97e.js → utils-a25ea61c.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-023543bd.js"),t=require("react"),r=require("./Onboarding-5e427213.js"),a=require("./theme-3d7b7e57.js"),l=require("./index-2479abce.js"),o=require("styled-components"),n=require("./index-bcc60c35.js"),i=require("./index-28df8c27.js"),s=require("./index-6783d880.js"),d=require("./screenSizeContext-2a70b050.js"),c=require("dayjs"),u=require("./useTranslations-b15251a8.js");require("lodash/debounce"),require("./isProduction-5377bba0.js"),require("./index-d3826236.js");var C=require("./localizeNumberFormat-6d3a030b.js"),h=require("./index.styled-6e88c577.js"),m=require("./utils-a25ea61c.js");require("./gAssets.js"),require("@mantine/core"),require("./index-ff37193f.js"),require("./index-8515331b.js");var f=require("./index-cd53c242.js");require("./index-dfb7b798.js"),require("./index-76781aaa.js"),require("@mantine/hooks");var y=require("./useOutsideClick-0e005c18.js"),p=require("./tslib.es6-ff6d8bab.js"),b=require("./index-41ec0350.js"),g=require("recharts"),w=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-3c96cf52.js"),require("./index.styled-360b806d.js"),require("lodash/throttle"),require("./translationsContext-3005d851.js"),require("string-format"),require("@mantine/dates"),require("@mantine/carousel"),require("./index-b24d30a4.js"),require("./useScrollbarSize-e9659238.js"),require("react-dom");var E=x(t),v=x(o),B=x(c),L=x(w);const G=v.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
|
-
`,Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-
|
|
279
|
+
`,Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-3a3c029a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-2fdd897c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-ab37985a.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-98c3c7ae.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-f4df1d4f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-0af9a6c7.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-757ffdef.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-dc8dd3a0.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-dc3039e6.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-b069d62a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-1d7af41b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-8ff4bb62.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-6ae3377b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-1fa364b8.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-c593b312.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-8edfbaee.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-f1271059.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-1e0afe8c.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-6468172c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-7b3a69d4.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-8b529237.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-777ee642.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-5c551722.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-1932ad70.js")}))}}},F={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-94193753.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-57efda55.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-87105032.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-5aedeb27.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-74469225.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-a4d18a96.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-8e0b9e55.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-f9b9537a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-5ebba785.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-1d2397cb.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-78a9cc6f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-70f2ff71.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-1643fd19.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-fecd4f64.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-5da211cc.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-53b292b4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-6f2fc7a4.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-9e3857fe.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-c93c76b4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-7e4b2c79.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-09ac4a34.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-1b3d59ee.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-0ae0242b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-acfef8b9.js")}))}}},$=(e,t,a,l)=>l===r.LOCALE.Indonesia?F[e][t][a]():Y[e][t][a](),U=(e,t)=>{const[r,a]=L.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"}},K=(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)),X=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),J=(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},Q=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ee=v.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-e1d079c2.js");require("./tslib.es6-ff6d8bab.js"),require("./isProduction-5377bba0.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-181bd739.js"),r=require("./constants-668cc2e5.js");require("./tslib.es6-ff6d8bab.js"),require("react"),require("./index-d3826236.js"),require("./Onboarding-5e427213.js"),require("./isProduction-5377bba0.js"),require("./cookieHelper-4f45dbb8.js"),require("./useTranslations-b15251a8.js"),require("./translationsContext-3005d851.js"),require("string-format"),require("lodash/debounce"),require("./index-b24d30a4.js"),require("@mantine/core"),require("./index-ff37193f.js"),require("./utils-a25ea61c.js"),require("styled-components"),require("./index-2479abce.js"),require("./theme-3d7b7e57.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-0e005c18.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<
|
|
2
|
-
classes:
|
|
3
|
-
root: string;
|
|
4
|
-
};
|
|
1
|
+
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<"root">) => {
|
|
2
|
+
classes: Record<"root", string>;
|
|
5
3
|
cx: (...args: any) => string;
|
|
6
4
|
theme: import("@mantine/core").MantineTheme;
|
|
7
5
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ReferenceDotProps } from 'recharts';
|
|
3
|
-
export declare const CustomReferenceDot: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const CustomReferenceDot: React.ForwardRefExoticComponent<Pick<ReferenceDotProps, "string" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "style" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPath" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filter" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "mask" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "path" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "key" | "isFront" | "alwaysShow" | "ifOverflow" | "yAxisId" | "xAxisId" | "shape" | "label" | "xAxis" | "yAxis" | "clipPathId"> & React.RefAttributes<SVGCircleElement>>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export interface StylesParams {
|
|
2
2
|
color?: string;
|
|
3
3
|
}
|
|
4
|
-
declare const _default: (params: StylesParams, options?: import("@mantine/core").UseStylesOptions<
|
|
5
|
-
classes:
|
|
6
|
-
root: string;
|
|
7
|
-
};
|
|
4
|
+
declare const _default: (params: StylesParams, options?: import("@mantine/core").UseStylesOptions<"root">) => {
|
|
5
|
+
classes: Record<"root", string>;
|
|
8
6
|
cx: (...args: any) => string;
|
|
9
7
|
theme: import("@mantine/core").MantineTheme;
|
|
10
8
|
};
|
|
@@ -7,10 +7,8 @@ export interface ButtonStyles {
|
|
|
7
7
|
isError?: boolean;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: (params: ButtonStyles, options?: import("@mantine/core").UseStylesOptions<
|
|
11
|
-
classes:
|
|
12
|
-
rootCustom: string;
|
|
13
|
-
};
|
|
10
|
+
declare const _default: (params: ButtonStyles, options?: import("@mantine/core").UseStylesOptions<"rootCustom">) => {
|
|
11
|
+
classes: Record<"rootCustom", string>;
|
|
14
12
|
cx: (...args: any) => string;
|
|
15
13
|
theme: import("@mantine/core").MantineTheme;
|
|
16
14
|
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DatePickerProps as MantineDatePickerProps } from '@mantine/dates';
|
|
3
|
+
import { DateRangePicker } from './range';
|
|
3
4
|
export type SharedType = {
|
|
4
5
|
isRange?: boolean;
|
|
5
6
|
isMB?: boolean;
|
|
6
|
-
fullWidth?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export type DatePickerProps
|
|
9
|
-
|
|
8
|
+
export type DatePickerProps = SharedType & MantineDatePickerProps;
|
|
9
|
+
export interface CompoundedComponent extends React.ForwardRefExoticComponent<DatePickerProps> {
|
|
10
|
+
Range: typeof DateRangePicker;
|
|
11
|
+
}
|
|
12
|
+
declare const DatePicker: CompoundedComponent;
|
|
10
13
|
export { DatePicker };
|
|
14
|
+
export * from './range';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledDatePicker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@mantine/dates").DatePickerProps & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
|
|
3
|
+
export declare const StyledDateRangePicker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@mantine/dates").DateRangePickerProps & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DateRangePickerProps as MantineDateRangePickerProps } from '@mantine/dates';
|
|
3
|
+
import { SharedType } from '.';
|
|
4
|
+
export type DateRangePickerProps = SharedType & MantineDateRangePickerProps;
|
|
5
|
+
export declare const DateRangePicker: (props: DateRangePickerProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { SelectProps } from './select';
|
|
2
2
|
export { Select } from './select';
|
|
3
|
-
export type { DatePickerProps } from './datepicker';
|
|
3
|
+
export type { DatePickerProps, DateRangePickerProps } from './datepicker';
|
|
4
4
|
export { DatePicker } from './datepicker';
|
|
5
5
|
export { Breadcrumbs } from './breadcrumbs';
|
|
6
6
|
export type { BreadcrumbsProps } from './breadcrumbs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NumberInputProps as MantineNumberInputProps } from '@mantine/core';
|
|
3
3
|
export type NumberInputProps = Omit<MantineNumberInputProps, 'onChange' | 'value'> & {
|
|
4
|
-
value?: number
|
|
5
|
-
onChange?(value
|
|
4
|
+
value?: number;
|
|
5
|
+
onChange?(value: number): void;
|
|
6
6
|
};
|
|
7
7
|
declare const NumberInput: ({ value: _value, onChange: _onChange, ...props }: NumberInputProps) => React.JSX.Element;
|
|
8
8
|
export { NumberInput };
|
|
@@ -9,10 +9,10 @@ export type OTPProps = Omit<OTPInputProps, 'value' | 'onChange'> & {
|
|
|
9
9
|
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
10
10
|
type?: 'password' | 'text' | 'number';
|
|
11
11
|
};
|
|
12
|
-
export declare const OTP: React.ForwardRefExoticComponent<
|
|
12
|
+
export declare const OTP: React.ForwardRefExoticComponent<Pick<Omit<OTPInputProps, "value" | "onChange"> & {
|
|
13
13
|
valueLength?: number;
|
|
14
14
|
value?: string | number;
|
|
15
15
|
onChange?: (value: string | number) => void;
|
|
16
16
|
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
17
17
|
type?: 'password' | 'text' | 'number';
|
|
18
|
-
}, "
|
|
18
|
+
}, "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "key" | "color" | "hidden" | "placeholder" | "readOnly" | "required" | "size" | "src" | "step" | "type" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "error" | "valueLength"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -11,4 +11,4 @@ export type PhoneProps = Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputEle
|
|
|
11
11
|
value?: string;
|
|
12
12
|
onChange?: (v: string) => void;
|
|
13
13
|
};
|
|
14
|
-
export declare const Phone: React.ForwardRefExoticComponent<
|
|
14
|
+
export declare const Phone: React.ForwardRefExoticComponent<Pick<PhoneProps, "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "onChange" | "key" | "placeholder" | "readOnly" | "required" | "size" | "src" | "step" | "type" | "value" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "isError" | "countries" | "defaultCountry" | "countryCallingCodeEditable"> & React.RefAttributes<React.Ref<unknown>>>;
|
|
@@ -2,10 +2,8 @@ export interface StylesParams {
|
|
|
2
2
|
size?: string;
|
|
3
3
|
weight?: string;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<
|
|
6
|
-
classes:
|
|
7
|
-
root: string;
|
|
8
|
-
};
|
|
5
|
+
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<"root">) => {
|
|
6
|
+
classes: Record<"root", string>;
|
|
9
7
|
cx: (...args: any) => string;
|
|
10
8
|
theme: import("@mantine/core").MantineTheme;
|
|
11
9
|
};
|
|
@@ -2,10 +2,8 @@ export interface StylesParams {
|
|
|
2
2
|
size?: string;
|
|
3
3
|
weight?: string;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: (params: StylesParams, options?: import("@mantine/core").UseStylesOptions<
|
|
6
|
-
classes:
|
|
7
|
-
root: string;
|
|
8
|
-
};
|
|
5
|
+
declare const _default: (params: StylesParams, options?: import("@mantine/core").UseStylesOptions<"root">) => {
|
|
6
|
+
classes: Record<"root", string>;
|
|
9
7
|
cx: (...args: any) => string;
|
|
10
8
|
theme: import("@mantine/core").MantineTheme;
|
|
11
9
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputStylesParams } from '@mantine/core';
|
|
1
2
|
import { LOCALE } from "../../../interfaces/types";
|
|
2
3
|
export declare const GlobalInputStyle: (locale: LOCALE) => {
|
|
3
4
|
InputWrapper: {
|
|
@@ -29,9 +30,7 @@ export declare const GlobalInputStyle: (locale: LOCALE) => {
|
|
|
29
30
|
};
|
|
30
31
|
};
|
|
31
32
|
Input: {
|
|
32
|
-
styles: (_theme: any,
|
|
33
|
-
size: any;
|
|
34
|
-
}) => {
|
|
33
|
+
styles: (_theme: any, params: InputStylesParams) => {
|
|
35
34
|
input: {
|
|
36
35
|
border: string;
|
|
37
36
|
transition: string;
|
|
@@ -48,7 +47,7 @@ export declare const GlobalInputStyle: (locale: LOCALE) => {
|
|
|
48
47
|
boxShadow: string;
|
|
49
48
|
};
|
|
50
49
|
};
|
|
51
|
-
|
|
50
|
+
invalid: {
|
|
52
51
|
border: string;
|
|
53
52
|
color: string;
|
|
54
53
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextSize } from '.';
|
|
2
2
|
export declare const OTHER_THEME_CONFIG: {
|
|
3
|
-
fontSize?: Record<TextSize, Array<
|
|
4
|
-
lineHeight?: Record<TextSize, Array<
|
|
3
|
+
fontSize?: Record<TextSize, Array<number>>;
|
|
4
|
+
lineHeight?: Record<TextSize, Array<number>>;
|
|
5
5
|
letterSpacing?: Partial<Record<TextSize, Array<number>>>;
|
|
6
6
|
fontWeight?: Record<'regular' | 'semiBold' | 'bold', number>;
|
|
7
7
|
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
export declare const GlobalTextStyle: {
|
|
2
2
|
fontSize: {
|
|
3
|
-
base:
|
|
4
|
-
lg:
|
|
5
|
-
md:
|
|
6
|
-
sm:
|
|
7
|
-
xs:
|
|
8
|
-
s1:
|
|
9
|
-
s2:
|
|
10
|
-
s3:
|
|
11
|
-
s4:
|
|
12
|
-
s5:
|
|
13
|
-
p1:
|
|
14
|
-
p2:
|
|
15
|
-
p3:
|
|
16
|
-
p4:
|
|
17
|
-
c1:
|
|
18
|
-
c2:
|
|
19
|
-
n1:
|
|
20
|
-
label1:
|
|
21
|
-
label2:
|
|
3
|
+
base: number[];
|
|
4
|
+
lg: number[];
|
|
5
|
+
md: number[];
|
|
6
|
+
sm: number[];
|
|
7
|
+
xs: number[];
|
|
8
|
+
s1: number[];
|
|
9
|
+
s2: number[];
|
|
10
|
+
s3: number[];
|
|
11
|
+
s4: number[];
|
|
12
|
+
s5: number[];
|
|
13
|
+
p1: number[];
|
|
14
|
+
p2: number[];
|
|
15
|
+
p3: number[];
|
|
16
|
+
p4: number[];
|
|
17
|
+
c1: number[];
|
|
18
|
+
c2: number[];
|
|
19
|
+
n1: number[];
|
|
20
|
+
label1: number[];
|
|
21
|
+
label2: number[];
|
|
22
22
|
};
|
|
23
23
|
lineHeight: {
|
|
24
|
-
base:
|
|
25
|
-
lg:
|
|
26
|
-
md:
|
|
27
|
-
sm:
|
|
28
|
-
xs:
|
|
29
|
-
s1:
|
|
30
|
-
s2:
|
|
31
|
-
s3:
|
|
32
|
-
s4:
|
|
33
|
-
s5:
|
|
34
|
-
p1:
|
|
35
|
-
p2:
|
|
36
|
-
p3:
|
|
37
|
-
p4:
|
|
38
|
-
c1:
|
|
39
|
-
c2:
|
|
40
|
-
n1:
|
|
41
|
-
label1:
|
|
42
|
-
label2:
|
|
24
|
+
base: number[];
|
|
25
|
+
lg: number[];
|
|
26
|
+
md: number[];
|
|
27
|
+
sm: number[];
|
|
28
|
+
xs: number[];
|
|
29
|
+
s1: number[];
|
|
30
|
+
s2: number[];
|
|
31
|
+
s3: number[];
|
|
32
|
+
s4: number[];
|
|
33
|
+
s5: number[];
|
|
34
|
+
p1: number[];
|
|
35
|
+
p2: number[];
|
|
36
|
+
p3: number[];
|
|
37
|
+
p4: number[];
|
|
38
|
+
c1: number[];
|
|
39
|
+
c2: number[];
|
|
40
|
+
n1: number[];
|
|
41
|
+
label1: number[];
|
|
42
|
+
label2: number[];
|
|
43
43
|
};
|
|
44
44
|
letterSpacing: {
|
|
45
45
|
lg: number[];
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<
|
|
2
|
-
classes:
|
|
3
|
-
root: string;
|
|
4
|
-
item: string;
|
|
5
|
-
itemInner: string;
|
|
6
|
-
label: string;
|
|
7
|
-
icon: string;
|
|
8
|
-
};
|
|
1
|
+
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<"root" | "item" | "itemInner" | "label" | "icon">) => {
|
|
2
|
+
classes: Record<"root" | "item" | "itemInner" | "label" | "icon", string>;
|
|
9
3
|
cx: (...args: any) => string;
|
|
10
4
|
theme: import("@mantine/core").MantineTheme;
|
|
11
5
|
};
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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-5140044f.js"),r=require("./index-18e5870d.js"),o=require("./index-bcc60c35.js"),t=require("./index-922aa090.js"),i=require("./index.styled-6e88c577.js"),a=require("./index-b24d30a4.js"),s=require("./index-ff37193f.js"),n=require("./index-a1f24ac5.js"),d=require("./index.styled-06bff8be.js"),u=require("./index-2479abce.js"),p=require("./index-8515331b.js"),x=require("./index-28df8c27.js"),l=require("./index-023543bd.js"),c=require("./index-41ec0350.js"),q=require("./index-cd53c242.js"),g=require("./dataTransform-28101413.js"),b=require("./index-db12a261.js"),C=require("./footer.js");require("react"),require("./utils-a25ea61c.js"),require("./useUniqueId-3c96cf52.js"),require("./gAssets.js"),require("./index-d3826236.js"),require("./Onboarding-5e427213.js"),require("./isProduction-5377bba0.js"),require("./theme-3d7b7e57.js"),require("./tslib.es6-ff6d8bab.js"),require("lodash/throttle"),require("keen-slider/react"),require("dayjs"),require("./screenSizeContext-2a70b050.js"),require("styled-components"),require("./useTranslations-b15251a8.js"),require("./translationsContext-3005d851.js"),require("string-format"),require("date-fns"),require("@mantine/core"),require("./index.styled-360b806d.js"),require("./index-dfb7b798.js"),require("@mantine/dates"),require("@mantine/carousel"),require("@mantine/hooks"),require("./index-76781aaa.js"),require("./types-4a2937e6.js"),require("./index.styled-6da69873.js"),require("./cookieHelper-4f45dbb8.js"),require("slugify"),require("./routing-11b59429.js"),require("dayjs/plugin/relativeTime"),require("./index-6783d880.js"),require("./index-20ec378a.js"),require("react-hook-form"),require("./useHealthToolCache-e8385f9f.js"),require("./getDynamicHealthTool-f5800966.js"),require("./core-e1d079c2.js"),require("./normalizeLink-f0f43c19.js"),require("./useOutsideClick-0e005c18.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-a32f7622.js"),require("./constants-668cc2e5.js"),require("./useIsInit-771c7f0e.js"),require("lodash/debounce"),require("./index-05a92235.js"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-e9659238.js"),require("react-dom"),require("./index.styled-722fa7a1.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.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.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.Tabs=t.Tabs,exports.Heading=i.Heading,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=n.Logo,exports.DatePicker=d.DatePicker,exports.DoctorInfo=d.DoctorInfo,exports.Dropdown=d.Dropdown,exports.MobileBottomNavigation=d.MobileBottomNavigation,exports.MobileBottomNavigationIcon=d.MobileBottomNavigationIcon,exports.Radio=d.Radio,exports.RadioGroup=d.RadioGroup,exports.SurveyQuestionCard=d.SurveyQuestionCard,exports.ToolsBannerCard=d.ToolsBannerCard,exports.Text=u.Text,exports.Container=p.Container,exports.LogoIcon=p.LogoIcon,exports.Icon=x.Icon,exports.Drawer=l.Drawer,exports.RadioImageGroup=l.RadioImageGroup,exports.Modal=c.Modal,exports.NewBabyProfileRadio=c.NewBabyProfileRadio,exports.CustomReferenceDot=q.CustomReferenceDot,exports.Popup=g.Popup,exports.PillCarousel=b.PillCarousel,exports.Footer=C.Footer;
|
package/build/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./Onboarding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./Onboarding-5e427213.js");var e=require("./index-d3826236.js"),O=require("./isProduction-5377bba0.js");exports.CARE_BOOKING_LOCALES=e.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=e.CARE_LOCALES,exports.FAVICONS=e.FAVICONS,exports.ISO_FORMAT=e.ISO_FORMAT,exports.LOCALE_SPECS=e.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return e.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=e.STATIC_PAGES,exports.TOGETHER_LOCALES=e.TOGETHER_LOCALES,exports.UP_BASEPATH=e.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=e.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=e.domainLocales,exports.siteHost=e.siteHost,exports.siteOptions=e.siteOptions,exports.isProduction=O.isProduction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./tslib.es6-ff6d8bab.js"),e=require("./isProduction-5377bba0.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-f83131a8.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-6da69873.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;
|