@hhgtech/hhg-components 1.27.98 → 1.27.100
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/_topic-85eb47a3.js +6897 -0
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components/molecules/premiumNewsletterBanner/bannerWithOption.d.ts +10 -0
- package/build/components/molecules/premiumNewsletterBanner/context.d.ts +19 -0
- package/build/components/molecules/premiumNewsletterBanner/index.d.ts +10 -0
- package/build/components/molecules/premiumNewsletterBanner/testingBanner.d.ts +3 -0
- package/build/components/molecules/premiumNewsletterBanner/toolBanner.d.ts +10 -0
- package/build/components/molecules/premiumNewsletterModal/context.d.ts +36 -0
- package/build/components/molecules/premiumNewsletterModal/index.d.ts +17 -0
- package/build/components/molecules/premiumNewsletterModal/layout.d.ts +9 -0
- package/build/components/molecules/premiumNewsletterModal/mainForm.d.ts +2 -0
- package/build/components/molecules/premiumNewsletterModal/moreTopics.d.ts +2 -0
- package/build/components/molecules/premiumNewsletterModal/result.d.ts +2 -0
- package/build/components/molecules/premiumTopicSelect/_normalTopic.d.ts +10 -0
- package/build/components/molecules/premiumTopicSelect/_suggestedTopic.d.ts +3 -0
- package/build/components/molecules/premiumTopicSelect/_topic.d.ts +3 -0
- package/build/components/molecules/premiumTopicSelect/_topicSlide.d.ts +10 -0
- package/build/components/molecules/premiumTopicSelect/historySection.d.ts +8 -0
- package/build/components/molecules/premiumTopicSelect/index.d.ts +13 -0
- package/build/components/molecules/premiumTopicSelect/recentlyViewedSection.d.ts +13 -0
- package/build/components/molecules/premiumTopicSelect/topicSection.d.ts +27 -0
- package/build/components/molecules/premiumTopicSelect/trendingCarousel.d.ts +15 -0
- package/build/components/molecules/sideBannerModal/index.d.ts +23 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-7fb000f5.js → core-4b493e03.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/_topic-3c8b00cd.js +6897 -0
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/molecules/index.d.ts +2 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/bannerWithOption.d.ts +10 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/context.d.ts +19 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/index.d.ts +10 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/testingBanner.d.ts +3 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/toolBanner.d.ts +10 -0
- package/build/esm/components/molecules/premiumNewsletterModal/context.d.ts +36 -0
- package/build/esm/components/molecules/premiumNewsletterModal/index.d.ts +17 -0
- package/build/esm/components/molecules/premiumNewsletterModal/layout.d.ts +9 -0
- package/build/esm/components/molecules/premiumNewsletterModal/mainForm.d.ts +2 -0
- package/build/esm/components/molecules/premiumNewsletterModal/moreTopics.d.ts +2 -0
- package/build/esm/components/molecules/premiumNewsletterModal/result.d.ts +2 -0
- package/build/esm/components/molecules/premiumTopicSelect/_normalTopic.d.ts +10 -0
- package/build/esm/components/molecules/premiumTopicSelect/_suggestedTopic.d.ts +3 -0
- package/build/esm/components/molecules/premiumTopicSelect/_topic.d.ts +3 -0
- package/build/esm/components/molecules/premiumTopicSelect/_topicSlide.d.ts +10 -0
- package/build/esm/components/molecules/premiumTopicSelect/historySection.d.ts +8 -0
- package/build/esm/components/molecules/premiumTopicSelect/index.d.ts +13 -0
- package/build/esm/components/molecules/premiumTopicSelect/recentlyViewedSection.d.ts +13 -0
- package/build/esm/components/molecules/premiumTopicSelect/topicSection.d.ts +27 -0
- package/build/esm/components/molecules/premiumTopicSelect/trendingCarousel.d.ts +15 -0
- package/build/esm/components/molecules/sideBannerModal/index.d.ts +23 -0
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-187952aa.js → core-b3ff9323.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-4b3518ba.js → getDynamicHealthTool-740f8286.js} +1 -1
- package/build/esm/{getSocialList-05e5f819.js → getSocialList-2fee5eb9.js} +1 -1
- package/build/esm/hooks/index.d.ts +1 -0
- package/build/esm/hooks/useCategory.d.ts +14 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +1 -1
- package/build/esm/i18n-values/hi-IN.js +1 -1
- package/build/esm/i18n-values/id-ID.js +1 -1
- package/build/esm/i18n-values/km-KH.js +1 -1
- package/build/esm/i18n-values/ms-MY.js +1 -1
- package/build/esm/i18n-values/my-MM.js +1 -1
- package/build/esm/i18n-values/th-TH.js +1 -1
- package/build/esm/i18n-values/tl-PH.js +1 -1
- package/build/esm/i18n-values/vi-VN.js +1 -1
- package/build/esm/i18n-values/vi-VN_MB.js +1 -1
- package/build/esm/i18n-values/zh-TW.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/index-18f04b9d.js +1 -0
- package/build/esm/{index-210a893e.js → index-1c25b111.js} +1 -1
- package/build/esm/index-23395043.js +1 -0
- package/build/esm/index-2bd58cd7.js +1 -0
- package/build/esm/index-45255259.js +1 -0
- package/build/esm/{index-35490a0a.js → index-60eebf29.js} +2 -2
- package/build/esm/{index-0556b3df.js → index-6432d105.js} +1 -1
- package/build/esm/{index-2344d3ad.js → index-64476d47.js} +1 -1
- package/build/esm/{index-71da6f92.js → index-6939c347.js} +1 -1
- package/build/esm/{index-3ed43f67.js → index-6d8e5fee.js} +1 -1
- package/build/esm/{index-30c165ba.js → index-6e08cf9f.js} +2 -2
- package/build/esm/index-7dc8181f.js +1 -0
- package/build/esm/index-a9d6da81.js +1 -0
- package/build/esm/{index-c3121b12.js → index-ac620748.js} +4 -4
- package/build/esm/{index-c9cc7be1.js → index-aeaf6744.js} +1 -1
- package/build/esm/index-b19487ac.js +1 -0
- package/build/esm/{index-bfb5a151.js → index-b40f4650.js} +1 -1
- package/build/esm/{index-3b17ef20.js → index-bba2064d.js} +1 -1
- package/build/esm/{index-39cce1ad.js → index-c102c888.js} +1 -1
- package/build/esm/{index-cbaed28e.js → index-de0f11d0.js} +1 -1
- package/build/esm/{index-f339366f.js → index-fe9fbcb7.js} +1 -1
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-6f51ff04.js → index.styled-14919112.js} +238 -238
- package/build/esm/{index.styled-5ef76fb6.js → index.styled-1cfefd06.js} +6 -6
- package/build/esm/{index.styled-59da24b1.js → index.styled-ec9d7f0f.js} +4 -4
- package/build/esm/{index.styles-6a17b45b.js → index.styles-f5109225.js} +13 -13
- package/build/esm/interfaces/constants/index.d.ts +1 -0
- package/build/esm/interfaces/healthTools.d.ts +27 -0
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +6 -6
- package/build/esm/premiumNewsletter/api/paths.d.ts +9 -0
- package/build/esm/premiumNewsletter/interfaces/constants.d.ts +2 -0
- package/build/esm/premiumNewsletter/interfaces/types.d.ts +30 -0
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-3f588609.js → routing-c7d4a753.js} +1 -1
- package/build/esm/sso/api/paths.d.ts +3 -0
- package/build/esm/together/api/paths.d.ts +4 -0
- package/build/esm/together/api/utils.d.ts +6 -0
- package/build/esm/together/togetherComponentGlobalContext.d.ts +2 -0
- package/build/esm/together.js +1 -1
- package/build/esm/types-4f75a8fe.js +1 -0
- package/build/esm/{types-18f79c15.js → types-67cc7b63.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useCategory-4aae0a0e.js +1 -0
- package/build/esm/useHealthToolCache-1eb22787.js +1 -0
- package/build/esm/{useRafState-cff05e58.js → useRafState-ecb8c1cb.js} +1 -1
- package/build/esm/{useTranslations-9882b03a.js → useTranslations-70cc0e7b.js} +1 -1
- package/build/esm/{utils-dc56aa2f.js → utils-c8ee4d36.js} +1 -1
- package/build/esm/vaccination.js +5 -5
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-782fd9d5.js → getDynamicHealthTool-9981e996.js} +1 -1
- package/build/{getSocialList-54e928ea.js → getSocialList-bfd3e963.js} +1 -1
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/useCategory.d.ts +14 -0
- package/build/hooks.js +1 -1
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -1
- package/build/i18n-values/hi-IN.js +1 -1
- package/build/i18n-values/id-ID.js +1 -1
- package/build/i18n-values/km-KH.js +1 -1
- package/build/i18n-values/ms-MY.js +1 -1
- package/build/i18n-values/my-MM.js +1 -1
- package/build/i18n-values/th-TH.js +1 -1
- package/build/i18n-values/tl-PH.js +1 -1
- package/build/i18n-values/vi-VN.js +1 -1
- package/build/i18n-values/vi-VN_MB.js +1 -1
- package/build/i18n-values/zh-TW.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-93b92b6f.js → index-026201cb.js} +1 -1
- package/build/{index-af436848.js → index-0c3ddef2.js} +1 -1
- package/build/{index-fd895747.js → index-10889e19.js} +1 -1
- package/build/index-21cb0e5d.js +1 -0
- package/build/{index-6319021b.js → index-2fa687bb.js} +1 -1
- package/build/{index-63b49748.js → index-30466ad1.js} +1 -1
- package/build/index-330331c5.js +1 -0
- package/build/{index-de5b72ee.js → index-60ff214d.js} +1 -1
- package/build/{index-911ffc15.js → index-6f257992.js} +1 -1
- package/build/{index-0479d15b.js → index-71750112.js} +1 -1
- package/build/{index-246df4a6.js → index-8e7937bc.js} +1 -1
- package/build/{index-93bcb3e5.js → index-966ea174.js} +1 -1
- package/build/index-a04c80fb.js +1 -0
- package/build/index-beee7fe4.js +1 -0
- package/build/{index-0d269680.js → index-c5ef57ab.js} +1 -1
- package/build/index-db8afcf3.js +1 -0
- package/build/{index-3e50bee9.js → index-dc31e62e.js} +1 -1
- package/build/{index-ec1b532a.js → index-e0206a1f.js} +1 -1
- package/build/{index-145299d0.js → index-e05c21ba.js} +1 -1
- package/build/{index-34ed10b7.js → index-edbc3a4b.js} +1 -1
- package/build/{index-31779e81.js → index-f9dbec80.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/index.styled-116c92bf.js +50 -0
- package/build/{index.styled-fb8f60da.js → index.styled-5abc4ce4.js} +3 -3
- package/build/{index.styled-0309afe3.js → index.styled-714d53d6.js} +238 -238
- package/build/{index.styles-a552ab61.js → index.styles-239bc737.js} +22 -22
- package/build/interfaces/constants/index.d.ts +1 -0
- package/build/interfaces/healthTools.d.ts +27 -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/onboardingV2.js +1 -1
- package/build/premiumNewsletter/api/paths.d.ts +9 -0
- package/build/premiumNewsletter/interfaces/constants.d.ts +2 -0
- package/build/premiumNewsletter/interfaces/types.d.ts +30 -0
- package/build/pwg.js +1 -1
- package/build/{routing-499baa6c.js → routing-18737646.js} +1 -1
- package/build/sso/api/paths.d.ts +3 -0
- package/build/together/api/paths.d.ts +4 -0
- package/build/together/api/utils.d.ts +6 -0
- package/build/together/togetherComponentGlobalContext.d.ts +2 -0
- package/build/together.js +1 -1
- package/build/{types-dd38e3cb.js → types-74ee04b1.js} +1 -1
- package/build/types-a7209ea3.js +1 -0
- package/build/types.js +1 -1
- package/build/useCategory-64f119c0.js +1 -0
- package/build/useHealthToolCache-60f2f6c3.js +1 -0
- package/build/{useRafState-f6f6f8d3.js → useRafState-646d5d41.js} +1 -1
- package/build/{useTranslations-c236ab74.js → useTranslations-1633509e.js} +1 -1
- package/build/utils-b4b1b040.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/dataTransform-24bedead.js +0 -1
- package/build/esm/dataTransform-e8d64748.js +0 -1
- package/build/esm/fixedBottomAdBlock-83b64030.js +0 -1
- package/build/esm/index-07225642.js +0 -1
- package/build/esm/index-12373cc2.js +0 -1
- package/build/esm/index-3411ef1e.js +0 -3820
- package/build/esm/index-4c9963db.js +0 -1
- package/build/esm/index-590e02cc.js +0 -1
- package/build/esm/index-d38342fe.js +0 -1
- package/build/esm/index-ff1cf893.js +0 -1
- package/build/esm/types-0ec3c0cc.js +0 -3078
- package/build/esm/useHealthToolCache-954db9f5.js +0 -1
- package/build/fixedBottomAdBlock-9a91ff71.js +0 -1
- package/build/index-0847f1e2.js +0 -1
- package/build/index-23aaf78a.js +0 -1
- package/build/index-3be097bd.js +0 -1
- package/build/index-49507d09.js +0 -3820
- package/build/index-5a831a3a.js +0 -1
- package/build/index.styled-4a0688a2.js +0 -50
- package/build/types-6e6d01ea.js +0 -3078
- package/build/useHealthToolCache-f00d0cc8.js +0 -1
- package/build/utils-a550efa1.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-b29b7d25.js → BMI_BOYS.percentile.monthly-858f6d37.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-305e75a2.js → BMI_BOYS.percentile.weekly-125061c6.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-81e652c5.js → BMI_BOYS.percentile.yearly-919baad9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-eda3bbad.js → BMI_BOYS.zscore.monthly-575b6e2e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-76c0a736.js → BMI_BOYS.zscore.weekly-19ea6b68.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-b38a7013.js → BMI_BOYS.zscore.yearly-5e86af03.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-524fac60.js → BMI_GIRLS.percentile.monthly-6d6db9a1.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-b4937b23.js → BMI_GIRLS.percentile.weekly-ca1e0233.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-2931b160.js → BMI_GIRLS.percentile.yearly-5352a020.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-08095452.js → BMI_GIRLS.zscore.monthly-50181fab.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-6add00a5.js → BMI_GIRLS.zscore.weekly-98290f6a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-4ffbc1ea.js → BMI_GIRLS.zscore.yearly-1ef94ea0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-94f9d4e1.js → HEAD CIRCUM_BOYS.percentile.monthly-d512ef90.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-55fa6aaf.js → HEAD CIRCUM_BOYS.percentile.weekly-73f2b47d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-1afc66c7.js → HEAD CIRCUM_BOYS.percentile.yearly-db53fa0b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-dec5b6fb.js → HEAD CIRCUM_BOYS.zscore.monthly-7ef3cf58.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-0e94e407.js → HEAD CIRCUM_BOYS.zscore.weekly-b0a06638.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-809379e9.js → HEAD CIRCUM_BOYS.zscore.yearly-5e5b4858.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-5f97e918.js → HEAD CIRCUM_GIRLS.percentile.monthly-42092742.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-c003a12e.js → HEAD CIRCUM_GIRLS.percentile.weekly-f9504468.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-6925a91b.js → HEAD CIRCUM_GIRLS.percentile.yearly-92c8673b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-e828c97e.js → HEAD CIRCUM_GIRLS.zscore.monthly-099bd985.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-df2219b7.js → HEAD CIRCUM_GIRLS.zscore.weekly-f2d8ca11.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d9f871f0.js → HEAD CIRCUM_GIRLS.zscore.yearly-c3f67df7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-5b221fa5.js → HEIGHT_BOYS.percentile.monthly-1cca6d81.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-ec2f3579.js → HEIGHT_BOYS.percentile.weekly-9bd9e838.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-1c73bf05.js → HEIGHT_BOYS.percentile.yearly-80315844.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-d4ea6134.js → HEIGHT_BOYS.zscore.monthly-066fe2ca.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-928a3714.js → HEIGHT_BOYS.zscore.weekly-9383701d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-07b624f0.js → HEIGHT_BOYS.zscore.yearly-e24fcbcb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-82357f73.js → HEIGHT_GIRLS.percentile.monthly-a506bc88.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-145738ed.js → HEIGHT_GIRLS.percentile.weekly-2597c7b8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-26912a21.js → HEIGHT_GIRLS.percentile.yearly-6e052405.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-0ae26540.js → HEIGHT_GIRLS.zscore.monthly-5ddb7d14.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-ce673a65.js → HEIGHT_GIRLS.zscore.weekly-ce0d0fe3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-41fd5ca1.js → HEIGHT_GIRLS.zscore.yearly-b21caf8b.js} +0 -0
- /package/build/{Onboarding-ba71adc3.js → Onboarding-8b688795.js} +0 -0
- /package/build/{Visible-354ba861.js → Visible-d458cb8d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-505120ee.js → WEIGHT_BOYS.percentile.monthly-4a056813.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-3565b0fe.js → WEIGHT_BOYS.percentile.weekly-de7ed4c2.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-35450c1a.js → WEIGHT_BOYS.percentile.yearly-aa0a6ce5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-6c3a51bd.js → WEIGHT_BOYS.zscore.monthly-aecbff70.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-627d184d.js → WEIGHT_BOYS.zscore.weekly-dff3af93.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-86ea502b.js → WEIGHT_BOYS.zscore.yearly-8f351502.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-9e45cb97.js → WEIGHT_GIRLS.percentile.monthly-73a413ff.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-70f01638.js → WEIGHT_GIRLS.percentile.weekly-83405a2f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-ea6d829c.js → WEIGHT_GIRLS.percentile.yearly-84df283a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-895f6903.js → WEIGHT_GIRLS.zscore.monthly-adeda32a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-4314562e.js → WEIGHT_GIRLS.zscore.weekly-cc6b8f53.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-cedaf71a.js → WEIGHT_GIRLS.zscore.yearly-763b2460.js} +0 -0
- /package/build/{constants-1506b462.js → constants-ec04e1d8.js} +0 -0
- /package/build/{cookieHelper-203db1c2.js → cookieHelper-0ed75f1d.js} +0 -0
- /package/build/{dataTransform-d21c13a7.js → dataTransform-d26017a5.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-f6ec5d22.js → BMI_BOYS.percentile.monthly-aebac668.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-6ab2141c.js → BMI_BOYS.percentile.weekly-0d2209bd.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-4ea5c0ef.js → BMI_BOYS.percentile.yearly-f3b59e49.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-11d4d7a0.js → BMI_BOYS.zscore.monthly-f9eda61a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-74a9b9dd.js → BMI_BOYS.zscore.weekly-afb13df2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-7f895cc8.js → BMI_BOYS.zscore.yearly-75285746.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-6ac9c53a.js → BMI_GIRLS.percentile.monthly-137e19a8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-4578e686.js → BMI_GIRLS.percentile.weekly-f6671068.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-c02b901c.js → BMI_GIRLS.percentile.yearly-54ce8bba.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-33620eb8.js → BMI_GIRLS.zscore.monthly-8067a149.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-7de9ce2e.js → BMI_GIRLS.zscore.weekly-0fb5527d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-189ebddf.js → BMI_GIRLS.zscore.yearly-fc9db9a6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c9939d53.js → HEAD CIRCUM_BOYS.percentile.monthly-e49c0d46.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c01450ec.js → HEAD CIRCUM_BOYS.percentile.weekly-3f6cd41c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-63e161ca.js → HEAD CIRCUM_BOYS.percentile.yearly-163e4b1f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ef0f25f1.js → HEAD CIRCUM_BOYS.zscore.monthly-34aad5ea.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-e9967927.js → HEAD CIRCUM_BOYS.zscore.weekly-ec1069f4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1c9f2bd1.js → HEAD CIRCUM_BOYS.zscore.yearly-c53fc697.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-5a0d2846.js → HEAD CIRCUM_GIRLS.percentile.monthly-6c7d41f9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-0e08eee3.js → HEAD CIRCUM_GIRLS.percentile.weekly-30e3a1eb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-8c2c00f0.js → HEAD CIRCUM_GIRLS.percentile.yearly-97db17f9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-29ef0b07.js → HEAD CIRCUM_GIRLS.zscore.monthly-6a7215ea.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-248696b8.js → HEAD CIRCUM_GIRLS.zscore.weekly-1fa7d6e7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b91b431f.js → HEAD CIRCUM_GIRLS.zscore.yearly-31ebcace.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1b553b9e.js → HEIGHT_BOYS.percentile.monthly-e66e6c94.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-8b209bc6.js → HEIGHT_BOYS.percentile.weekly-312480fa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-cfa159e3.js → HEIGHT_BOYS.percentile.yearly-84a7aa05.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-8c083cd1.js → HEIGHT_BOYS.zscore.monthly-16696f84.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-4652d599.js → HEIGHT_BOYS.zscore.weekly-c1b5134e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-4afbfbe2.js → HEIGHT_BOYS.zscore.yearly-11f4ae0a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1934b785.js → HEIGHT_GIRLS.percentile.monthly-016f2409.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-eb1c046d.js → HEIGHT_GIRLS.percentile.weekly-b0818283.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-49116442.js → HEIGHT_GIRLS.percentile.yearly-f6b60016.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-530eaaea.js → HEIGHT_GIRLS.zscore.monthly-cd9ddb99.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-6d36ad4b.js → HEIGHT_GIRLS.zscore.weekly-0317a6c2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-9f6bf4c5.js → HEIGHT_GIRLS.zscore.yearly-0b01afcb.js} +0 -0
- /package/build/esm/{Onboarding-281862b8.js → Onboarding-7f98ca07.js} +0 -0
- /package/build/esm/{Visible-79002b2e.js → Visible-5eb47fff.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-ce064184.js → WEIGHT_BOYS.percentile.monthly-95d0f940.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-e313ef04.js → WEIGHT_BOYS.percentile.weekly-f898222e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-f72c9207.js → WEIGHT_BOYS.percentile.yearly-37118b4c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-73375ec8.js → WEIGHT_BOYS.zscore.monthly-ed197ad1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-3f1c9e1a.js → WEIGHT_BOYS.zscore.weekly-87d4691b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-baa65e16.js → WEIGHT_BOYS.zscore.yearly-72dd6538.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-51f563ac.js → WEIGHT_GIRLS.percentile.monthly-9a04833d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-18abae85.js → WEIGHT_GIRLS.percentile.weekly-4ec62068.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8d9957c8.js → WEIGHT_GIRLS.percentile.yearly-0e9c9558.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b4eab87f.js → WEIGHT_GIRLS.zscore.monthly-bbae7357.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-50dbc44f.js → WEIGHT_GIRLS.zscore.weekly-afcb61a0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d21a7799.js → WEIGHT_GIRLS.zscore.yearly-be893d88.js} +0 -0
- /package/build/esm/{constants-015643bc.js → constants-600924e8.js} +0 -0
- /package/build/esm/{cookieHelper-329ff362.js → cookieHelper-c48bb2db.js} +0 -0
- /package/build/esm/{dataTransform-cc7e9e82.js → dataTransform-414084ad.js} +0 -0
- /package/build/esm/{index-73927836.js → index-d2269f82.js} +0 -0
- /package/build/esm/{isProduction-cd379466.js → isProduction-ad816e81.js} +0 -0
- /package/build/esm/{localizeNumberFormat-2f80cedc.js → localizeNumberFormat-a8d990f4.js} +0 -0
- /package/build/esm/{normalizeLink-6e8953be.js → normalizeLink-d153f646.js} +0 -0
- /package/build/esm/{number-6cd7cd8e.js → number-468a8849.js} +0 -0
- /package/build/esm/{paths-54287a83.js → paths-587a7d5e.js} +0 -0
- /package/build/esm/{screenSizeContext-b0b4af70.js → screenSizeContext-8b09c781.js} +0 -0
- /package/build/esm/{theme-054cfe5e.js → theme-e98b6227.js} +0 -0
- /package/build/esm/{translationsContext-b47c4665.js → translationsContext-d75c061a.js} +0 -0
- /package/build/esm/{tslib.es6-d74bc98c.js → tslib.es6-b45bedfa.js} +0 -0
- /package/build/esm/{types-cb822d75.js → types-6d68d1f1.js} +0 -0
- /package/build/esm/{useIsInit-eac04318.js → useIsInit-328c9270.js} +0 -0
- /package/build/esm/{useOutsideClick-e85b99fd.js → useOutsideClick-30f35c6b.js} +0 -0
- /package/build/esm/{useScrollbarSize-76c280fd.js → useScrollbarSize-b23a8302.js} +0 -0
- /package/build/esm/{useUniqueId-2fd9d44b.js → useUniqueId-13e05354.js} +0 -0
- /package/build/{index-d7610fbd.js → index-0eb73a31.js} +0 -0
- /package/build/{isProduction-0b37ac3b.js → isProduction-474fde4f.js} +0 -0
- /package/build/{localizeNumberFormat-5afc54fc.js → localizeNumberFormat-9f242231.js} +0 -0
- /package/build/{normalizeLink-102f5871.js → normalizeLink-c8a9e184.js} +0 -0
- /package/build/{number-799bbd0f.js → number-32190a48.js} +0 -0
- /package/build/{paths-a8f7657b.js → paths-106ae8e3.js} +0 -0
- /package/build/{screenSizeContext-6a5a4c05.js → screenSizeContext-e754edb4.js} +0 -0
- /package/build/{theme-e648ff92.js → theme-ed754c1e.js} +0 -0
- /package/build/{translationsContext-6717baca.js → translationsContext-827be1e4.js} +0 -0
- /package/build/{tslib.es6-705eff5c.js → tslib.es6-091a047c.js} +0 -0
- /package/build/{types-e93fdd24.js → types-50affd6c.js} +0 -0
- /package/build/{useIsInit-e2c5804b.js → useIsInit-c7b78923.js} +0 -0
- /package/build/{useOutsideClick-05b182eb.js → useOutsideClick-77184041.js} +0 -0
- /package/build/{useScrollbarSize-06f015e4.js → useScrollbarSize-942ddc15.js} +0 -0
- /package/build/{useUniqueId-c0ab995a.js → useUniqueId-4df45c62.js} +0 -0
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as e}from"./index-
|
|
1
|
+
import{D as e}from"./index-1c25b111.js";export{B as BabyGrowthGender}from"./index-1c25b111.js";import t,{useMemo as r,useRef as l,useState as o,useEffect as a}from"react";import{L as i,G as n,B as c,a as s}from"./Onboarding-7f98ca07.js";import{t as d}from"./theme-e98b6227.js";import{T as m}from"./index-bba2064d.js";import C from"styled-components";import{B as p}from"./index-c102c888.js";import{I as h}from"./index-6e08cf9f.js";import{M as y}from"./index-45255259.js";import{h as g,n as u}from"./screenSizeContext-8b09c781.js";import b from"dayjs";import{u as f}from"./useTranslations-70cc0e7b.js";import"lodash/debounce";import"./isProduction-ad816e81.js";import"./index-6432d105.js";import"./useCategory-4aae0a0e.js";import{a as E,l as x}from"./localizeNumberFormat-a8d990f4.js";import{H as w}from"./index.styles-f5109225.js";import{_ as v,a as L}from"./tslib.es6-b45bedfa.js";import{C as M}from"./index-ac620748.js";import"./gAssets.js";import"@mantine/core";import"@mantine/dates";import"@mantine/hooks";import{a as k}from"./useOutsideClick-30f35c6b.js";import{M as H}from"./index-aeaf6744.js";import{I}from"./index-b40f4650.js";import{ResponsiveContainer as j,LineChart as S,CartesianGrid as G,Tooltip as R,XAxis as z,YAxis as Z,Line as _,ReferenceDot as N}from"recharts";import V from"lodash/chunk";import"./useUniqueId-13e05354.js";import"lodash/throttle";import"./translationsContext-d75c061a.js";import"string-format";import"date-fns/locale";import"react-keyed-flatten-children";import"@mantine/carousel";import"./cookieHelper-c48bb2db.js";import"slugify";import"./useScrollbarSize-b23a8302.js";import"react-dom";const T=C.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -381,7 +381,7 @@ import{D as e}from"./index-210a893e.js";export{B as BabyGrowthGender}from"./inde
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`,he=({isActive:e,onChange:r,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=f(),n="marryBaby"===a;return t.createElement(pe,{onClick:()=>r("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?t.createElement("div",{className:"title"},t.createElement(y,{type:"bodytext-1",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"},e&&t.createElement(h.CheckActiveMB,{size:26}))):t.createElement("div",{className:"title"},t.createElement(m,{size:"p2",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"})),t.createElement(I,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ye=e=>{var r,l,{babyProfiles:a,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:C,open:h,isMobile:g,isMyProfile:u=!1,buttonGroup:b,newBabyValue:E,onNewBabyValueChange:x,siteType:w,buttonText:L,headerText:M}=e,k=v(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>u?t.createElement(t.Fragment,null,t.createElement(p,{theme:w,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),t.createElement(p,{theme:w,size:"lg",color:"primary",onClick:()=>{null==e||e(),u?null==C||C(H):null==s||s(H),n()}},j(u?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):t.createElement(p,{theme:w,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},L||j("chooseBaby.button")),[H,I]=o(String(i)||String(null===(r=a[0])||void 0===r?void 0:r.id)),{t:j}=f();return g?t.createElement(de,Object.assign({title:M||"Baby profiles",onClose:n,open:h,placement:"bottom"},k),(({internalClose:e})=>{var r;return t.createElement("div",{className:"add-profile-container"},t.createElement("div",{className:"profile-container"},null===(r=a||[])||void 0===r?void 0:r.map((e=>t.createElement(J,{siteType:w,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!u&&t.createElement(he,{siteType:w,value:E,onInputChange:x,isActive:"new"===H,onChange:I})),t.createElement("div",{className:"button-group"},b||B(e)))})):t.createElement(me,{type:"confirm",isOpen:h,onClose:n,siteType:w},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},"marryBaby"===w?t.createElement(y,{type:"subtitle-1",color:d.mbColors.dark},j("chooseBaby.title")):t.createElement(m,{size:"s2",type:"semiBold"},M||j("chooseBaby.title")),t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},t.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),t.createElement("div",{className:"profile-container"},null===(l=a||[])||void 0===l?void 0:l.map((e=>t.createElement(J,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:w}))),!u&&t.createElement(he,{value:E,onInputChange:x,isActive:"new"===H,onChange:I,siteType:w})),t.createElement("div",{className:"button-group"},b||B()))},ge={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-e313ef04.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-ce064184.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-f72c9207.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-8b209bc6.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-1b553b9e.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-cfa159e3.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-c01450ec.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-c9939d53.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-63e161ca.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-6ab2141c.js"),[s.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-f6ec5d22.js"),[s.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-4ea5c0ef.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-18abae85.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-51f563ac.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-8d9957c8.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-eb1c046d.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-1934b785.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-49116442.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-0e08eee3.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-5a0d2846.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-8c2c00f0.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-4578e686.js"),[s.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-6ac9c53a.js"),[s.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-c02b901c.js")}}},ue={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-3f1c9e1a.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-73375ec8.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-baa65e16.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-4652d599.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-8c083cd1.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-4afbfbe2.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-e9967927.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-ef0f25f1.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-1c9f2bd1.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-74a9b9dd.js"),[s.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-11d4d7a0.js"),[s.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-7f895cc8.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-50dbc44f.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-b4eab87f.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-d21a7799.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-6d36ad4b.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-530eaaea.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-9f6bf4c5.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-248696b8.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-29ef0b07.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-b91b431f.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-7de9ce2e.js"),[s.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-33620eb8.js"),[s.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-189ebddf.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},fe=(e,t,r,l)=>l===i.Indonesia?ue[e][t][r]():ge[e][t][r](),Ee=(e,t)=>{const[r,l]=V(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},xe=(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)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ve=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Me=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",d.colors.primary50),m.setAttribute("fill",d.colors.primary50),m.setAttribute("x",a),m.setAttribute("y",i),m.setAttribute("height",n),m.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(m)}else t.appendChild(r[e]);console.log(t)}},ke=C.div`
|
|
384
|
+
`,he=({isActive:e,onChange:r,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=f(),n="marryBaby"===a;return t.createElement(pe,{onClick:()=>r("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?t.createElement("div",{className:"title"},t.createElement(y,{type:"bodytext-1",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"},e&&t.createElement(h.CheckActiveMB,{size:26}))):t.createElement("div",{className:"title"},t.createElement(m,{size:"p2",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"})),t.createElement(I,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ye=e=>{var r,l,{babyProfiles:a,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:C,open:h,isMobile:g,isMyProfile:u=!1,buttonGroup:b,newBabyValue:E,onNewBabyValueChange:x,siteType:w,buttonText:L,headerText:M}=e,k=v(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>u?t.createElement(t.Fragment,null,t.createElement(p,{theme:w,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),t.createElement(p,{theme:w,size:"lg",color:"primary",onClick:()=>{null==e||e(),u?null==C||C(H):null==s||s(H),n()}},j(u?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):t.createElement(p,{theme:w,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},L||j("chooseBaby.button")),[H,I]=o(String(i)||String(null===(r=a[0])||void 0===r?void 0:r.id)),{t:j}=f();return g?t.createElement(de,Object.assign({title:M||"Baby profiles",onClose:n,open:h,placement:"bottom"},k),(({internalClose:e})=>{var r;return t.createElement("div",{className:"add-profile-container"},t.createElement("div",{className:"profile-container"},null===(r=a||[])||void 0===r?void 0:r.map((e=>t.createElement(J,{siteType:w,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!u&&t.createElement(he,{siteType:w,value:E,onInputChange:x,isActive:"new"===H,onChange:I})),t.createElement("div",{className:"button-group"},b||B(e)))})):t.createElement(me,{type:"confirm",isOpen:h,onClose:n,siteType:w},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},"marryBaby"===w?t.createElement(y,{type:"subtitle-1",color:d.mbColors.dark},j("chooseBaby.title")):t.createElement(m,{size:"s2",type:"semiBold"},M||j("chooseBaby.title")),t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},t.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),t.createElement("div",{className:"profile-container"},null===(l=a||[])||void 0===l?void 0:l.map((e=>t.createElement(J,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:w}))),!u&&t.createElement(he,{value:E,onInputChange:x,isActive:"new"===H,onChange:I,siteType:w})),t.createElement("div",{className:"button-group"},b||B()))},ge={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-f898222e.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-95d0f940.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-37118b4c.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-312480fa.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-e66e6c94.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-84a7aa05.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-3f6cd41c.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-e49c0d46.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-163e4b1f.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-0d2209bd.js"),[s.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-aebac668.js"),[s.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-f3b59e49.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-4ec62068.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-9a04833d.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-0e9c9558.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-b0818283.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-016f2409.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-f6b60016.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-30e3a1eb.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-6c7d41f9.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-97db17f9.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-f6671068.js"),[s.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-137e19a8.js"),[s.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-54ce8bba.js")}}},ue={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-87d4691b.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-ed197ad1.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-72dd6538.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-c1b5134e.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-16696f84.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-11f4ae0a.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-ec1069f4.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-34aad5ea.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-c53fc697.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-afb13df2.js"),[s.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-f9eda61a.js"),[s.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-75285746.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-afcb61a0.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-bbae7357.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-be893d88.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-0317a6c2.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-cd9ddb99.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-0b01afcb.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-1fa7d6e7.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-6a7215ea.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-31ebcace.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-0fb5527d.js"),[s.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-8067a149.js"),[s.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-fc9db9a6.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},fe=(e,t,r,l)=>l===i.Indonesia?ue[e][t][r]():ge[e][t][r](),Ee=(e,t)=>{const[r,l]=V(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},xe=(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)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ve=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Me=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",d.colors.primary50),m.setAttribute("fill",d.colors.primary50),m.setAttribute("x",a),m.setAttribute("y",i),m.setAttribute("height",n),m.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(m)}else t.appendChild(r[e]);console.log(t)}},ke=C.div`
|
|
385
385
|
position: relative;
|
|
386
386
|
.custom-chart-label {
|
|
387
387
|
display: flex;
|
package/build/esm/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-
|
|
1
|
+
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-b3ff9323.js";import"./tslib.es6-b45bedfa.js";import"./isProduction-ad816e81.js";
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-67cc7b63.js";export{c as CareConstants}from"./constants-600924e8.js";import"./tslib.es6-b45bedfa.js";import"react";import"./useTranslations-70cc0e7b.js";import"./translationsContext-d75c061a.js";import"string-format";import"lodash/debounce";import"./index-b40f4650.js";import"@mantine/core";import"./index-6e08cf9f.js";import"./screenSizeContext-8b09c781.js";import"styled-components";import"lodash/throttle";import"./theme-e98b6227.js";import"dayjs";import"./index-6432d105.js";import"date-fns/locale";import"./Onboarding-7f98ca07.js";import"./isProduction-ad816e81.js";import"./gAssets.js";import"./useUniqueId-13e05354.js";import"./index-bba2064d.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-30f35c6b.js";import"./paths-587a7d5e.js";import"./cookieHelper-c48bb2db.js";
|
|
@@ -58,3 +58,5 @@ export { FixedBottomAdBlock } from './adBlock/fixedBottomAdBlock';
|
|
|
58
58
|
export type { Props as FixedBottomAdBlockProps } from './adBlock/fixedBottomAdBlock';
|
|
59
59
|
export { AddressInput } from './addressInput';
|
|
60
60
|
export type { AddressInputProps } from './addressInput';
|
|
61
|
+
export { PremiumNewsletterBanner } from './premiumNewsletterBanner';
|
|
62
|
+
export type { Props as PremiumNewsletterBannerProps } from './premiumNewsletterBanner';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
heading: string;
|
|
4
|
+
description: string;
|
|
5
|
+
banner: string;
|
|
6
|
+
onYes: () => void;
|
|
7
|
+
onNo: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const BannerWithOptions: ({ heading, description, banner, onYes, onNo, }: Props) => React.JSX.Element;
|
|
10
|
+
export { BannerWithOptions };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AcquisitionInfo } from '../premiumNewsletterModal/context';
|
|
3
|
+
export type BannerState = 'hide' | 'showTool';
|
|
4
|
+
export type PremiumNewsletterBannerContextType = {
|
|
5
|
+
type: string;
|
|
6
|
+
acquisitionInfo: AcquisitionInfo;
|
|
7
|
+
categoryIds?: Array<string | number>;
|
|
8
|
+
isMobile?: boolean;
|
|
9
|
+
isLoggedIn?: boolean;
|
|
10
|
+
currentUrl?: string;
|
|
11
|
+
subcribeHealthStatus?: {
|
|
12
|
+
pregnant: number;
|
|
13
|
+
pregnant_article: number;
|
|
14
|
+
} | null;
|
|
15
|
+
pregnantArticleId?: number;
|
|
16
|
+
state?: BannerState;
|
|
17
|
+
onChange?: (state?: BannerState) => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const PremiumNewsletterBannerContext: import("react").Context<PremiumNewsletterBannerContextType>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ContainerProps } from '@mantine/core';
|
|
3
|
+
import { PremiumNewsletterBannerContextType } from './context';
|
|
4
|
+
export type Props = {
|
|
5
|
+
isMarketing?: boolean;
|
|
6
|
+
isABTestingType?: boolean;
|
|
7
|
+
isPremiumBanner?: boolean;
|
|
8
|
+
setShouldAcquisitionModalOpen?: () => void;
|
|
9
|
+
} & Omit<PremiumNewsletterBannerContextType, 'acquisitionInfo' | 'isLoggedIn'> & ContainerProps;
|
|
10
|
+
export declare const PremiumNewsletterBanner: ({ type, pregnantArticleId, categoryIds, isMarketing, isABTestingType, isPremiumBanner, currentUrl, isMobile, subcribeHealthStatus, setShouldAcquisitionModalOpen, state, onChange, ...rest }: Props) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
heading: string;
|
|
4
|
+
description: string;
|
|
5
|
+
thumbnail: string;
|
|
6
|
+
btnLabel: string;
|
|
7
|
+
btnLink: string;
|
|
8
|
+
};
|
|
9
|
+
declare const ToolBanner: ({ heading, description, thumbnail, btnLabel, btnLink, }: Props) => React.JSX.Element;
|
|
10
|
+
export { ToolBanner };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { NewsletterTopic, PreferContent } from "../../../premiumNewsletter/interfaces/types";
|
|
3
|
+
import { UserInfo } from "../../../together";
|
|
4
|
+
export type AcquisitionInfo = {
|
|
5
|
+
userInfo: UserInfo;
|
|
6
|
+
healthTopics: Array<NewsletterTopic>;
|
|
7
|
+
preferredTopics: Array<PreferContent>;
|
|
8
|
+
};
|
|
9
|
+
export type HealthToolPNValue = {
|
|
10
|
+
name: string;
|
|
11
|
+
fitnessTopics: string[];
|
|
12
|
+
};
|
|
13
|
+
export type PremiumNewsletterModalContextType = {
|
|
14
|
+
currentUrl: string;
|
|
15
|
+
isMobile: boolean;
|
|
16
|
+
isLoggedIn: boolean;
|
|
17
|
+
opened: boolean;
|
|
18
|
+
close: () => void;
|
|
19
|
+
nextStep: () => void;
|
|
20
|
+
prevStep: () => void;
|
|
21
|
+
lastStep: () => void;
|
|
22
|
+
selectCategory: NewsletterTopic[];
|
|
23
|
+
setSelectCategory: Dispatch<SetStateAction<NewsletterTopic[]>>;
|
|
24
|
+
categoryLibs: NewsletterTopic[];
|
|
25
|
+
setCategoryLibs: Dispatch<SetStateAction<NewsletterTopic[]>>;
|
|
26
|
+
pnSuggestCategory: NewsletterTopic[];
|
|
27
|
+
formValues: HealthToolPNValue;
|
|
28
|
+
setFormValues: Dispatch<SetStateAction<HealthToolPNValue>>;
|
|
29
|
+
maxSelectCategory: number;
|
|
30
|
+
submitLoading: boolean;
|
|
31
|
+
finishLabelOnResult?: string;
|
|
32
|
+
disclaimerText?: string;
|
|
33
|
+
onSubmit: (v?: string) => void;
|
|
34
|
+
onRegisterSuccess: () => void;
|
|
35
|
+
};
|
|
36
|
+
export declare const PremiumNewsletterModalContext: import("react").Context<PremiumNewsletterModalContextType>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NewsletterTopic } from "../../../premiumNewsletter/interfaces/types";
|
|
3
|
+
import { AcquisitionInfo } from './context';
|
|
4
|
+
type PremiumNewsletterModalProps = {
|
|
5
|
+
isMobile: boolean;
|
|
6
|
+
isLoggedIn: boolean;
|
|
7
|
+
currentUrl: string;
|
|
8
|
+
acquisitionInfo: AcquisitionInfo;
|
|
9
|
+
pnSuggestCategory: NewsletterTopic[];
|
|
10
|
+
finishLabelOnResult?: string;
|
|
11
|
+
disclaimerText?: string;
|
|
12
|
+
opened: boolean;
|
|
13
|
+
close: () => void;
|
|
14
|
+
onRegisterSuccess: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const PremiumNewsletterModal: ({ isMobile, isLoggedIn, pnSuggestCategory, acquisitionInfo, currentUrl, opened, close, finishLabelOnResult, onRegisterSuccess, disclaimerText, }: PremiumNewsletterModalProps) => React.JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ScrollAreaProps } from '@mantine/core';
|
|
3
|
+
type LayoutProps = {
|
|
4
|
+
heading: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
stickyActions?: ReactNode;
|
|
7
|
+
} & ScrollAreaProps;
|
|
8
|
+
export declare const Layout: ({ heading, children, stickyActions, ...scrollAreaProps }: LayoutProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DataTrackingTypeHTMLElement } from "../../../interfaces/types";
|
|
3
|
+
type _NormalTopicProps = {
|
|
4
|
+
value: string;
|
|
5
|
+
name: string;
|
|
6
|
+
isBlock?: boolean;
|
|
7
|
+
isMobile?: boolean;
|
|
8
|
+
} & DataTrackingTypeHTMLElement;
|
|
9
|
+
export declare const _NormalTopic: ({ value, name, isMobile, ...rest }: _NormalTopicProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
import { NewsletterTopic } from "../../../premiumNewsletter/interfaces/types";
|
|
4
|
+
type _TopicSlideProps = {
|
|
5
|
+
topic: NewsletterTopic;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
onClick(topic: NewsletterTopic, status?: boolean): void;
|
|
8
|
+
} & Omit<BoxProps, 'onClick'>;
|
|
9
|
+
export declare const _TopicSlide: ({ topic, active, onClick, ...rest }: _TopicSlideProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NewsletterTopic } from "../../../premiumNewsletter/interfaces/types";
|
|
3
|
+
type HistorySectionProps = {
|
|
4
|
+
history: Array<NewsletterTopic>;
|
|
5
|
+
onDelete?(id: NewsletterTopic): void;
|
|
6
|
+
};
|
|
7
|
+
export declare const HistorySection: ({ history, onDelete }: HistorySectionProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
import { TextProps } from "../../mantine";
|
|
4
|
+
import { NewsletterTopic } from "../../../premiumNewsletter/interfaces/types";
|
|
5
|
+
type PremiumTopicSelectProps = {
|
|
6
|
+
isLoggedIn: boolean;
|
|
7
|
+
maxSelect?: number;
|
|
8
|
+
values?: string[];
|
|
9
|
+
labelProps?: TextProps;
|
|
10
|
+
onChange: (v: NewsletterTopic[]) => void;
|
|
11
|
+
} & BoxProps;
|
|
12
|
+
export declare const PremiumTopicSelect: ({ isLoggedIn, maxSelect, values: _values, labelProps, onChange, ...rest }: PremiumTopicSelectProps) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextProps } from "../../mantine";
|
|
3
|
+
import { NewsletterTopic } from "../../../premiumNewsletter/interfaces/types";
|
|
4
|
+
type RecentlyViewedSectionProps = {
|
|
5
|
+
topics: NewsletterTopic[];
|
|
6
|
+
selectedTopics: NewsletterTopic[];
|
|
7
|
+
onTopicChange(topic: NewsletterTopic[]): void;
|
|
8
|
+
isBlock?: boolean;
|
|
9
|
+
labelProps?: TextProps;
|
|
10
|
+
maxSelect?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const RecentlyViewedSection: ({ topics, onTopicChange, isBlock, selectedTopics, labelProps, maxSelect, }: RecentlyViewedSectionProps) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ChipGroupProps } from '@mantine/core';
|
|
3
|
+
import { TextProps } from "../../mantine";
|
|
4
|
+
import { DataTrackingTypeHTMLElement } from "../../../interfaces/types";
|
|
5
|
+
import { NewsletterTopic } from "../../../premiumNewsletter/interfaces/types";
|
|
6
|
+
type CustomTopic = {
|
|
7
|
+
component: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
type TopicGroup = {
|
|
10
|
+
label?: string;
|
|
11
|
+
topics: (CustomTopic | NewsletterTopic)[];
|
|
12
|
+
tracking?: DataTrackingTypeHTMLElement;
|
|
13
|
+
};
|
|
14
|
+
type TopicSectionProps = {
|
|
15
|
+
topicsGroup: TopicGroup[];
|
|
16
|
+
onTopicChange?: (topic: NewsletterTopic[]) => void;
|
|
17
|
+
label?: string;
|
|
18
|
+
isBlock?: boolean;
|
|
19
|
+
selectedTopics: NewsletterTopic[];
|
|
20
|
+
inputProps?: ChipGroupProps;
|
|
21
|
+
maxSelect?: number;
|
|
22
|
+
labelProps?: TextProps;
|
|
23
|
+
hasScroll?: boolean;
|
|
24
|
+
readonly?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export declare const TopicSection: ({ topicsGroup, onTopicChange, isBlock, selectedTopics, inputProps, labelProps, maxSelect, hasScroll, readonly, }: TopicSectionProps) => React.JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextProps } from "../../mantine";
|
|
3
|
+
import { NewsletterTopic } from "../../../premiumNewsletter/interfaces/types";
|
|
4
|
+
import { PushNotificationPayloadType } from "../../../together";
|
|
5
|
+
type TrendingCarouselProps = {
|
|
6
|
+
topics: NewsletterTopic[];
|
|
7
|
+
selectedTopics: NewsletterTopic[];
|
|
8
|
+
onTopicChange(topic: NewsletterTopic[]): void;
|
|
9
|
+
isBlock?: boolean;
|
|
10
|
+
labelProps?: TextProps;
|
|
11
|
+
maxSelect?: number;
|
|
12
|
+
pushNotifications?: (payload: PushNotificationPayloadType) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const TrendingCarousel: ({ topics, selectedTopics, onTopicChange, isBlock, labelProps, pushNotifications, maxSelect, }: TrendingCarouselProps) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps, ModalProps } from "../../mantine";
|
|
3
|
+
export type Props = {
|
|
4
|
+
isMobile: boolean;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
desktopBanner?: string;
|
|
7
|
+
modalRatio: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
mobileBanner?: string;
|
|
12
|
+
mobileBannerRatio?: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
desktopBannerRatio?: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
closeProps?: ButtonProps;
|
|
21
|
+
};
|
|
22
|
+
declare const SideBannerModal: ({ isMobile, children, desktopBanner, mobileBanner, modalRatio, mobileBannerRatio, desktopBannerRatio, closeProps, ...modalProps }: Props & ModalProps) => React.JSX.Element;
|
|
23
|
+
export default SideBannerModal;
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Alert,d as ArticleCard,e as ArticleCardV2,q as BMICardEmbed,u as BMRCardEmbed,r as BabyGrowthCardEmbed,s as BabyPoopEmbed,B as Badge,a as BorderHeading,x as Breadcrumbs,f as CategoryCard,C as Checkbox,g as CheckboxGroup,o as CookieAcceptConfirm,w as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,E as FixedBottomAdBlock,n as FloatButtonGroup,c as GenderOptionControl,G as Grid,I as IconText,O as OvulationCardEmbed,v as PWGCardEmbed,P as Pagination,h as ProgressBar,R as RateStars,S as ScrollList,p as SeoHead,y as ShareContainer,z as ShareDrawer,i as SideMenu,j as StatisticCard,m as SurveyThankyouCard,t as THRCardEmbed,k as Table,l as Tabs,T as Tag,b as Toggle}from"./
|
|
1
|
+
export{A as Alert,d as ArticleCard,e as ArticleCardV2,q as BMICardEmbed,u as BMRCardEmbed,r as BabyGrowthCardEmbed,s as BabyPoopEmbed,B as Badge,a as BorderHeading,x as Breadcrumbs,f as CategoryCard,C as Checkbox,g as CheckboxGroup,o as CookieAcceptConfirm,w as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,E as FixedBottomAdBlock,n as FloatButtonGroup,c as GenderOptionControl,G as Grid,I as IconText,O as OvulationCardEmbed,v as PWGCardEmbed,P as Pagination,H as PremiumNewsletterBanner,h as ProgressBar,R as RateStars,S as ScrollList,p as SeoHead,y as ShareContainer,z as ShareDrawer,i as SideMenu,j as StatisticCard,m as SurveyThankyouCard,t as THRCardEmbed,k as Table,l as Tabs,T as Tag,b as Toggle}from"./index-a9d6da81.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-7dc8181f.js";export{B as Button}from"./index-c102c888.js";export{B as BtnChoice,D as Divider}from"./index-18f04b9d.js";export{F as Flag,H as Heading,L as LogoIcon,P as PureInput,S as StepRenderer,b as StepRendererContext,T as TextArea,a as TextDivider}from"./index.styles-f5109225.js";export{I as Input}from"./index-b40f4650.js";export{C as Container,I as Icon,L as Label}from"./index-6e08cf9f.js";export{L as Logo}from"./index-23395043.js";export{e as AdBlock,A as AuthorBadge,B as BookingBtn,D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./_topic-3c8b00cd.js";export{T as Text}from"./index-bba2064d.js";export{D as Drawer,R as RadioImageGroup}from"./index-1c25b111.js";export{C as CustomReferenceDot,I as ImageWrap}from"./index-ac620748.js";export{P as Popup}from"./index.styled-14919112.js";export{M as Modal}from"./index-aeaf6744.js";export{P as PillCarousel}from"./index-de0f11d0.js";export{A as AddressInput}from"./index-b19487ac.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-8b09c781.js";import"styled-components";import"lodash/throttle";import"./useUniqueId-13e05354.js";import"./gAssets.js";import"./index-6432d105.js";import"date-fns/locale";import"./Onboarding-7f98ca07.js";import"./isProduction-ad816e81.js";import"./theme-e98b6227.js";import"./tslib.es6-b45bedfa.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"./translationsContext-d75c061a.js";import"string-format";import"@mantine/hooks";import"./useTranslations-70cc0e7b.js";import"date-fns";import"lodash/debounce";import"./useCategory-4aae0a0e.js";import"./types-6d68d1f1.js";import"./index-45255259.js";import"./index-6939c347.js";import"react-hook-form";import"./useHealthToolCache-1eb22787.js";import"./getDynamicHealthTool-740f8286.js";import"./core-b3ff9323.js";import"./normalizeLink-d153f646.js";import"./routing-c7d4a753.js";import"./useOutsideClick-30f35c6b.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-2fee5eb9.js";import"uuid";import"react-contenteditable";import"react-dom";import"react-day-picker/DayPickerInput";import"./index.styled-1cfefd06.js";import"./utils-c8ee4d36.js";import"./index-64476d47.js";import"js-cookie";import"@mantine/form";import"lodash/flatten";import"lodash/uniqBy";import"./cookieHelper-c48bb2db.js";import"./constants-600924e8.js";import"./index-2bd58cd7.js";import"./useIsInit-328c9270.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";import"./number-468a8849.js";import"dayjs/plugin/relativeTime";import"./paths-587a7d5e.js";import"./useScrollbarSize-b23a8302.js";
|
package/build/esm/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"date-fns/locale";import"./Onboarding-
|
|
1
|
+
import"date-fns/locale";import"./Onboarding-7f98ca07.js";export{B as BEARER_TOKEN_COOKIE,a as CARE_BOOKING_LOCALES,C as CARE_LOCALES,b as CDN_ADDRESS,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,G as GA_TOKEN_COOKIE,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,c as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,e as siteHost,s as siteOptions}from"./index-6432d105.js";export{i as isProduction}from"./isProduction-ad816e81.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-b45bedfa.js";import{i as e}from"./isProduction-ad816e81.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
|