@hhgtech/hhg-components 1.29.81 → 1.29.83
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/LastPeriod-79a8acbe.js +29 -0
- package/build/Locale-0b86b849.js +15 -0
- package/build/{WhatsApp-82018096.js → WhatsApp-19ca0437.js} +1 -1
- package/build/adapters.js +22 -17
- package/build/atoms.js +59 -51
- package/build/babyGrowth.js +169 -162
- package/build/cache.js +3 -3
- package/build/care.js +22 -17
- package/build/components.js +146 -117
- package/build/{constants-3a475a22.js → constants-79d3ff1b.js} +4 -4
- package/build/constants-e85d7085.js +18 -0
- package/build/constants.js +17 -13
- package/build/constantsDomainLocales.js +34 -0
- package/build/{isProduction-aa963bf9.js → constantsIsProduction.js} +2 -0
- package/build/constantsRiskScreener.js +21 -0
- package/build/constantsSite.js +134 -0
- package/build/{core-9e44ee99.js → core-9f7c0442.js} +4 -4
- package/build/dataTransform-1e0514ef.js +13 -0
- package/build/{dataTransform-6b4d7a4e.js → dataTransform-265f1b67.js} +1 -106
- package/build/ecom.js +10 -6
- package/build/embeddedHeathToolCards_babyGrowth.js +64 -0
- package/build/embeddedHeathToolCards_babyPoop.js +57 -0
- package/build/embeddedHeathToolCards_babyVaccine.js +64 -0
- package/build/embeddedHeathToolCards_bmi_bmi.js +70 -0
- package/build/embeddedHeathToolCards_bmrBmr.js +70 -0
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +65 -0
- package/build/embeddedHeathToolCards_helpers.js +11 -0
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +64 -0
- package/build/embeddedHeathToolCards_pwg_pwg.js +70 -0
- package/build/embeddedHeathToolCards_targetHeartRate.js +73 -0
- package/build/esm/LastPeriod-62287ef2.js +23 -0
- package/build/esm/Locale-c6a90240.js +15 -0
- package/build/esm/{WhatsApp-7d3732e2.js → WhatsApp-2e6d1d02.js} +1 -1
- package/build/esm/adapters.js +22 -17
- package/build/esm/atoms.js +53 -45
- package/build/esm/babyGrowth.js +87 -81
- package/build/esm/cache.js +3 -3
- package/build/esm/care.js +22 -17
- package/build/esm/components.js +106 -77
- package/build/esm/constants-a5d70cf5.js +16 -0
- package/build/esm/{constants-ebf80e5f.js → constants-e930bc7b.js} +2 -2
- package/build/esm/constants.js +7 -3
- package/build/esm/constantsDomainLocales.js +29 -0
- package/build/esm/{isProduction-5684a28c.js → constantsIsProduction.js} +1 -1
- package/build/esm/constantsRiskScreener.js +17 -0
- package/build/esm/constantsSite.js +129 -0
- package/build/esm/{core-c72e0ff5.js → core-36290fcb.js} +2 -2
- package/build/esm/dataTransform-14587328.js +11 -0
- package/build/esm/{dataTransform-3e8e25ba.js → dataTransform-8852461c.js} +2 -101
- package/build/esm/ecom.js +9 -5
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +56 -0
- package/build/esm/embeddedHeathToolCards_babyPoop.js +49 -0
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +56 -0
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +62 -0
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +62 -0
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +57 -0
- package/build/esm/embeddedHeathToolCards_helpers.js +7 -0
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +56 -0
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +62 -0
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +65 -0
- package/build/esm/{fixedBottomAdBlock-13ed4a34.js → fixedBottomAdBlock-26b94f6b.js} +35 -410
- package/build/esm/footer.js +23 -18
- package/build/esm/gAssets.js +4 -5
- package/build/esm/healthToolsCardWrapper.js +33 -0
- package/build/esm/healthToolsForm.js +39 -25
- package/build/esm/hooks.js +21 -17
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-cdac57da.js → index-03050142.js} +1 -1
- package/build/esm/{index-21eac858.js → index-03d7200e.js} +12 -10
- package/build/esm/index-21524e86.js +249 -0
- package/build/esm/{index-16514f4d.js → index-288b564e.js} +3 -3
- package/build/esm/index-3060c2dc.js +174 -0
- package/build/esm/index-3288f45c.js +490 -0
- package/build/esm/{index-42ad7763.js → index-343e5b65.js} +2 -2
- package/build/esm/{index-76d20d3f.js → index-345e507e.js} +3 -3
- package/build/esm/{index-e3787b20.js → index-38ced379.js} +3 -15
- package/build/esm/{index-bef3c9bd.js → index-39aa0c9f.js} +9 -168
- package/build/esm/index-39f24b49.js +1351 -0
- package/build/esm/{index-f27edf45.js → index-3e2f70fe.js} +11 -11
- package/build/esm/{index-d218b94e.js → index-3e3904ec.js} +2 -2
- package/build/esm/{index-8952ceac.js → index-40b6555d.js} +4 -4
- package/build/esm/{index-703205e3.js → index-41a809d7.js} +3 -3
- package/build/esm/index-4d06fffe.js +25 -0
- package/build/esm/{index-e104ad21.js → index-506563f6.js} +8 -8
- package/build/esm/{index-c1af3a8e.js → index-5369d2e2.js} +15 -13
- package/build/esm/index-6125d991.js +370 -0
- package/build/esm/index-64dff9b0.js +233 -0
- package/build/esm/index-6dd92895.js +791 -0
- package/build/esm/{index-e26514ee.js → index-7720a710.js} +4 -4
- package/build/esm/{index-c200bff6.js → index-7a1552e9.js} +2 -2
- package/build/esm/index-7c678785.js +259 -0
- package/build/esm/{index-780a08de.js → index-88c06a7e.js} +2 -2
- package/build/esm/{index-cb4afb33.js → index-90d58b18.js} +7 -6
- package/build/esm/{index-598ab51b.js → index-96a5f239.js} +6 -5
- package/build/esm/index-9a8df805.js +147 -0
- package/build/esm/{index-9f1899f2.js → index-9aee96f2.js} +5 -4
- package/build/esm/index-a1658f07.js +60 -0
- package/build/esm/{constants-6bdb97a8.js → index-a1d2c38b.js} +6 -21
- package/build/esm/{index-7e756cb8.js → index-a51336b9.js} +11 -11
- package/build/esm/{index-29d04985.js → index-a57a5338.js} +2 -2
- package/build/esm/{index-996f7caf.js → index-a7f10a58.js} +4 -4
- package/build/esm/index-b123bf27.js +18 -0
- package/build/esm/{index-7cbe2a10.js → index-b1e1f9b4.js} +13 -12
- package/build/esm/{index-b1bb27aa.js → index-b2ea5cc7.js} +11 -45
- package/build/esm/{index-376bee14.js → index-b5019321.js} +7 -7
- package/build/esm/{index-78255d6c.js → index-b9c4dfcb.js} +2 -2
- package/build/esm/{index-d6201fa4.js → index-bb53d99f.js} +2 -2
- package/build/esm/{index-2b9213cf.js → index-bdc3bd61.js} +1 -1
- package/build/esm/{index-88ad2ca3.js → index-c41ef517.js} +23 -19
- package/build/esm/{index-2774583d.js → index-d462b2bd.js} +35 -31
- package/build/esm/{index-cf6beac8.js → index-d5bcc5cc.js} +1 -1
- package/build/esm/{index-38f50764.js → index-d9555b0b.js} +17 -260
- package/build/esm/{index-1ecbcf21.js → index-e0f8a206.js} +6 -5
- package/build/esm/{types-2580132c.js → index-e6b9c7d8.js} +563 -3517
- package/build/esm/index-e9d85fda.js +91 -0
- package/build/esm/{index-73301602.js → index-f0184ea4.js} +2 -2
- package/build/esm/{index-69248434.js → index-f1025cea.js} +3 -3
- package/build/esm/index-f3903d13.js +101 -0
- package/build/esm/{index-1da2ca0b.js → index-f93799fc.js} +2 -2
- package/build/esm/{index-87a2ea8c.js → index-fa83ce20.js} +2 -2
- package/build/esm/index-fb8f8203.js +140 -0
- package/build/esm/index.js +119 -82
- package/build/esm/interfaces/constants/domainLocales.d.ts +25 -0
- package/build/esm/interfaces/constants/index.d.ts +1 -25
- package/build/esm/labelSorting-e7fa8826.js +47 -0
- package/build/esm/lead.js +26 -21
- package/build/esm/{logoIcon-d93bc56e.js → logoIcon-b0ce60d0.js} +2 -2
- package/build/esm/mantine.js +28 -23
- package/build/esm/misc.js +27 -21
- package/build/esm/{cookieHelper-73ce3871.js → miscCookieHelper.js} +1 -1
- package/build/esm/{defaultClassWrapper-31caf23b.js → miscDefaultClassWrapper.js} +1 -1
- package/build/esm/{getDynamicHealthTool-7681e43a.js → miscGetDynamicHealthTool.js} +13 -5
- package/build/esm/{getSocialList-e8142513.js → miscGetSocialList.js} +16 -6
- package/build/esm/{dataTransform-6c032113.js → miscScreenSizeContext.js} +2 -12
- package/build/esm/{theme-f18c2351.js → miscTheme.js} +1 -1
- package/build/esm/molecules.js +84 -57
- package/build/esm/navigation.js +44 -37
- package/build/esm/onboardingV2.js +30 -25
- package/build/esm/organisms.js +48 -41
- package/build/esm/other-9b439f19.js +102 -0
- package/build/esm/pwg.js +25 -20
- package/build/esm/{routing-bebdc8b7.js → routing-f2e46f96.js} +3 -2
- package/build/esm/subot.js +35 -29
- package/build/esm/surveyOrPremiumBanner.js +34 -28
- package/build/esm/surveyQuestionCard.js +11 -10
- package/build/esm/{surveyThankyouCard-bf6080eb.js → surveyThankyouCard-9d482ef8.js} +6 -6
- package/build/esm/together/togetherComponentGlobalContext.d.ts +1 -2
- package/build/esm/together.js +58 -42
- package/build/esm/togetherApiPaths.js +165 -0
- package/build/esm/togetherApiUtils.js +10 -0
- package/build/esm/togetherAtoms.js +47 -0
- package/build/esm/togetherComponentGlobalContext.js +10 -0
- package/build/esm/togetherMolecules.js +60 -0
- package/build/esm/togetherOrganisms.js +64 -0
- package/build/esm/treePopoverMenu-890070aa.js +334 -0
- package/build/esm/types-7d3a4df2.js +5 -0
- package/build/esm/{types-be952df2.js → types-e21a244d.js} +14 -13
- package/build/esm/types.js +2 -1
- package/build/esm/{useCategory-8f109eb7.js → useCategory-45ce6ea8.js} +6 -5
- package/build/esm/{useHealthToolCache-d97dfa00.js → useHealthToolCache-fe7dc697.js} +2 -2
- package/build/esm/{useMantineLocale-4fb67342.js → useMantineLocale-faa72172.js} +5 -3
- package/build/esm/{usePlacesAutocomplete-fe2e4cbe.js → usePlacesAutocomplete-81624098.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +58 -0
- package/build/esm/{useTranslations-fbf6a6ab.js → useTranslations-ba901edf.js} +1 -1
- package/build/{utils-524bda7c.js → esm/utils-40533779.js} +1 -114
- package/build/esm/{utils-d5a0b58f.js → utils-c730ad5d.js} +16 -163
- package/build/esm/{utils-cef111b6.js → utils-dbc80293.js} +2 -1
- package/build/esm/vaccination.js +23 -18
- package/build/{fixedBottomAdBlock-0d4379d1.js → fixedBottomAdBlock-026650fb.js} +155 -540
- package/build/footer.js +23 -18
- package/build/gAssets.js +4 -5
- package/build/healthToolsCardWrapper.js +41 -0
- package/build/healthToolsForm.js +45 -31
- package/build/hooks.js +21 -17
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-d34cd464.js → index-036fe55d.js} +4 -4
- package/build/index-03da3dbb.js +1364 -0
- package/build/{index-7da7b531.js → index-1950777d.js} +7 -7
- package/build/index-1fe1ec7e.js +180 -0
- package/build/{index-264eeddd.js → index-251187e5.js} +2 -2
- package/build/{index-dba2e361.js → index-2ce6cc83.js} +2 -2
- package/build/{index-aa818139.js → index-3129e975.js} +6 -6
- package/build/{index-c2900d8c.js → index-323d2766.js} +2 -2
- package/build/{index-6c27b627.js → index-325d93fc.js} +120 -116
- package/build/{index-7c1dc717.js → index-34b1babf.js} +19 -18
- package/build/{index-06fa8444.js → index-385f27fb.js} +4 -4
- package/build/index-3db01ab3.js +146 -0
- package/build/{index-bef2bc73.js → index-48ef94cb.js} +11 -11
- package/build/{index-ee964d3c.js → index-4b98362e.js} +6 -6
- package/build/index-4c18e4ba.js +97 -0
- package/build/{index-77a2b9ee.js → index-4ef9be86.js} +9 -9
- package/build/index-5fdde636.js +256 -0
- package/build/{index-a86ea1b6.js → index-617bff8c.js} +33 -197
- package/build/{index-fe7345fa.js → index-66e789cf.js} +4 -4
- package/build/index-6b23104e.js +108 -0
- package/build/{index-3dcb9bc6.js → index-6bcde89a.js} +6 -6
- package/build/{index-dd1392e3.js → index-6daafc7b.js} +12 -12
- package/build/{index-1efa7d84.js → index-6e7aede8.js} +5 -5
- package/build/index-6e85bdbb.js +239 -0
- package/build/{index-d5b4089d.js → index-70a7d73e.js} +12 -49
- package/build/{index-f6575703.js → index-72b989a7.js} +3 -3
- package/build/index-72e5dba6.js +153 -0
- package/build/{constants-dd16fb4d.js → index-769ecf0d.js} +8 -24
- package/build/index-7b98097c.js +25 -0
- package/build/{index-838b0f95.js → index-7e89d856.js} +18 -17
- package/build/{index-73cde644.js → index-7efbe5e3.js} +9 -9
- package/build/{index-a7de42d1.js → index-8cb3f562.js} +1 -1
- package/build/{index-c225ef22.js → index-92a816de.js} +25 -24
- package/build/{index-b773bc3d.js → index-99ddd1a4.js} +6 -5
- package/build/{index-6acb08c0.js → index-a0659d79.js} +14 -14
- package/build/{index-def9867a.js → index-a8c1c011.js} +11 -11
- package/build/index-aef8a50c.js +267 -0
- package/build/{index-247a9eb2.js → index-b76dcc89.js} +81 -77
- package/build/index-b99e7941.js +32 -0
- package/build/index-bd0008c0.js +805 -0
- package/build/{index-dcbd8bf3.js → index-bd37f7ea.js} +9 -9
- package/build/index-be727078.js +66 -0
- package/build/{index-f28c47ce.js → index-cb1c7190.js} +11 -11
- package/build/{index-f1f4fbb9.js → index-cb4ea8c9.js} +26 -24
- package/build/index-d71aec74.js +377 -0
- package/build/{index-df5cd44b.js → index-d91f52cc.js} +3 -15
- package/build/{index-f10efb61.js → index-db6d4daf.js} +33 -33
- package/build/{index-05f106c2.js → index-df9447b3.js} +41 -39
- package/build/index-e239d386.js +499 -0
- package/build/{index-4af08ec2.js → index-eddf350b.js} +2 -2
- package/build/{index-6bc3f8c3.js → index-eeb7220e.js} +8 -7
- package/build/{types-6c5643a2.js → index-f5956cd0.js} +749 -3709
- package/build/index-fbfa2310.js +320 -0
- package/build/{index-cb0544e5.js → index-fe74a1a3.js} +59 -59
- package/build/index.js +228 -191
- package/build/interfaces/constants/domainLocales.d.ts +25 -0
- package/build/interfaces/constants/index.d.ts +1 -25
- package/build/labelSorting-1905fd49.js +53 -0
- package/build/lead.js +43 -38
- package/build/{logoIcon-ee9a5501.js → logoIcon-d9adf505.js} +2 -2
- package/build/mantine.js +28 -23
- package/build/misc.js +39 -33
- package/build/{cookieHelper-17491ce8.js → miscCookieHelper.js} +2 -0
- package/build/{defaultClassWrapper-e87ca8ef.js → miscDefaultClassWrapper.js} +2 -0
- package/build/{getDynamicHealthTool-2a92e1a5.js → miscGetDynamicHealthTool.js} +14 -4
- package/build/{getSocialList-97e7bcc1.js → miscGetSocialList.js} +46 -34
- package/build/{dataTransform-c1701cbd.js → miscScreenSizeContext.js} +3 -12
- package/build/{theme-e4f7f487.js → miscTheme.js} +2 -0
- package/build/molecules.js +106 -79
- package/build/navigation.js +44 -37
- package/build/onboardingV2.js +40 -35
- package/build/organisms.js +48 -41
- package/build/other-0edcc417.js +104 -0
- package/build/pwg.js +60 -55
- package/build/{routing-f6d54205.js → routing-54391665.js} +10 -9
- package/build/subot.js +175 -169
- package/build/surveyOrPremiumBanner.js +34 -28
- package/build/surveyQuestionCard.js +11 -10
- package/build/{surveyThankyouCard-ead6b355.js → surveyThankyouCard-c7e94445.js} +25 -25
- package/build/together/togetherComponentGlobalContext.d.ts +1 -2
- package/build/together.js +106 -90
- package/build/togetherApiPaths.js +173 -0
- package/build/togetherApiUtils.js +40 -0
- package/build/togetherAtoms.js +61 -0
- package/build/togetherComponentGlobalContext.js +24 -0
- package/build/togetherMolecules.js +93 -0
- package/build/togetherOrganisms.js +78 -0
- package/build/treePopoverMenu-dbb4b61e.js +345 -0
- package/build/types-87a48532.js +7 -0
- package/build/{types-4ba4268f.js → types-ce7323a0.js} +88 -87
- package/build/types.js +6 -5
- package/build/{useCategory-e2c91f59.js → useCategory-04ea2a70.js} +18 -17
- package/build/{useHealthToolCache-2a53367b.js → useHealthToolCache-9d59f009.js} +4 -4
- package/build/{useMantineLocale-a4f0c61d.js → useMantineLocale-f9195d27.js} +26 -24
- package/build/{usePlacesAutocomplete-c76d0caf.js → usePlacesAutocomplete-8360abe0.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +68 -0
- package/build/{useTranslations-200168a3.js → useTranslations-80687df4.js} +1 -1
- package/build/{utils-af695515.js → utils-4849ab04.js} +11 -10
- package/build/{esm/utils-f8761b9d.js → utils-928b4701.js} +11 -101
- package/build/{utils-95d9832e.js → utils-e4d5701e.js} +26 -172
- package/build/vaccination.js +72 -67
- package/package.json +1 -1
- package/build/esm/index-6ac73f00.js +0 -1114
- package/build/index-058b3c0f.js +0 -1127
- package/build/index-3d0d22b3.js +0 -565
- /package/build/{BMI_BOYS.percentile.monthly-71fb1c9f.js → BMI_BOYS.percentile.monthly-5ba0659a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-b2b344a7.js → BMI_BOYS.percentile.weekly-879f7a42.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-031ddade.js → BMI_BOYS.percentile.yearly-e4c37a27.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-bb1f9962.js → BMI_BOYS.zscore.monthly-fa3d3237.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-d6198d53.js → BMI_BOYS.zscore.weekly-71226efa.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-48255337.js → BMI_BOYS.zscore.yearly-92a2f05e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-e3e284ee.js → BMI_GIRLS.percentile.monthly-cd39f35d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-9f2d3977.js → BMI_GIRLS.percentile.weekly-5cb19fda.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-c79f34ce.js → BMI_GIRLS.percentile.yearly-b80f3d32.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-11092df0.js → BMI_GIRLS.zscore.monthly-89248182.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-5c375d2b.js → BMI_GIRLS.zscore.weekly-609c3c1f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-adbba8e3.js → BMI_GIRLS.zscore.yearly-f4587218.js} +0 -0
- /package/build/{ChevronDown-f7e25d61.js → ChevronDown-dfb97861.js} +0 -0
- /package/build/{Close-36b0da99.js → Close-6296f986.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-163b99ad.js → HEAD CIRCUM_BOYS.percentile.monthly-a7e17d51.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c9882014.js → HEAD CIRCUM_BOYS.percentile.weekly-688e7e30.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-9d2bc91e.js → HEAD CIRCUM_BOYS.percentile.yearly-5e1b6296.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1d2a215c.js → HEAD CIRCUM_BOYS.zscore.monthly-e66bc7d4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-1f139c91.js → HEAD CIRCUM_BOYS.zscore.weekly-f1221399.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-ba15501b.js → HEAD CIRCUM_BOYS.zscore.yearly-c3dea838.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-a546201a.js → HEAD CIRCUM_GIRLS.percentile.monthly-df5b45d4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-66cd5a7e.js → HEAD CIRCUM_GIRLS.percentile.weekly-6c4e803a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-9db3c653.js → HEAD CIRCUM_GIRLS.percentile.yearly-05ac380c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0405e2cb.js → HEAD CIRCUM_GIRLS.zscore.monthly-8418b138.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b2cc3ad2.js → HEAD CIRCUM_GIRLS.zscore.weekly-02c9e21d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3115f993.js → HEAD CIRCUM_GIRLS.zscore.yearly-656652b6.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-35138a98.js → HEIGHT_BOYS.percentile.monthly-9b3ca406.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-0216c35b.js → HEIGHT_BOYS.percentile.weekly-add16dbe.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-f698e45d.js → HEIGHT_BOYS.percentile.yearly-a338c8a8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-01195728.js → HEIGHT_BOYS.zscore.monthly-7caebf2d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-993e9cf2.js → HEIGHT_BOYS.zscore.weekly-5962317e.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-fee3ed69.js → HEIGHT_BOYS.zscore.yearly-b1576fab.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-27b2474a.js → HEIGHT_GIRLS.percentile.monthly-937209f6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-77bff236.js → HEIGHT_GIRLS.percentile.weekly-c571a906.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-6200a720.js → HEIGHT_GIRLS.percentile.yearly-e78281ec.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-94978e64.js → HEIGHT_GIRLS.zscore.monthly-e5212600.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-7951beb1.js → HEIGHT_GIRLS.zscore.weekly-3c269af1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-c2eca714.js → HEIGHT_GIRLS.zscore.yearly-449bc93d.js} +0 -0
- /package/build/{Visible-eee51ba6.js → Visible-16859c31.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-6a6f901b.js → WEIGHT_BOYS.percentile.monthly-85da0f0a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-737fb867.js → WEIGHT_BOYS.percentile.weekly-9229beac.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-7772b5e5.js → WEIGHT_BOYS.percentile.yearly-e8a3c476.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-8db2e7d6.js → WEIGHT_BOYS.zscore.monthly-20bef361.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-ddd37c1a.js → WEIGHT_BOYS.zscore.weekly-0ec853d0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-332a8f7b.js → WEIGHT_BOYS.zscore.yearly-fccc526c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-3edad688.js → WEIGHT_GIRLS.percentile.monthly-e7c89bed.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-f113a82a.js → WEIGHT_GIRLS.percentile.weekly-2510046f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-95afbeaf.js → WEIGHT_GIRLS.percentile.yearly-5046e02b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-d27c4bd4.js → WEIGHT_GIRLS.zscore.monthly-e6077126.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-2b113519.js → WEIGHT_GIRLS.zscore.weekly-1a145215.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-c82b04db.js → WEIGHT_GIRLS.zscore.yearly-31e42fc2.js} +0 -0
- /package/build/{animation-e1375a3b.js → animation-f64d3491.js} +0 -0
- /package/build/{cart-67147d06.js → cart-1cbf9c06.js} +0 -0
- /package/build/{constants-513a9a41.js → constants-1953275e.js} +0 -0
- /package/build/{constants-936f45e9.js → constants-2aeb65f2.js} +0 -0
- /package/build/{doctor-17b525f8.js → doctor-10ee1543.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-7c9d4923.js → BMI_BOYS.percentile.monthly-44bf9bca.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-c410294a.js → BMI_BOYS.percentile.weekly-14f8edd2.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-695a4fe2.js → BMI_BOYS.percentile.yearly-609a4150.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-9fb9f281.js → BMI_BOYS.zscore.monthly-5f7b2488.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-d2109e4b.js → BMI_BOYS.zscore.weekly-79b9ae06.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-bfa5361b.js → BMI_BOYS.zscore.yearly-08133388.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-f5f60596.js → BMI_GIRLS.percentile.monthly-20e00636.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-26e4e864.js → BMI_GIRLS.percentile.weekly-033dda0b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-5a2b297d.js → BMI_GIRLS.percentile.yearly-d66fbb80.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-4e80bed5.js → BMI_GIRLS.zscore.monthly-fec8e639.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-03b79f0b.js → BMI_GIRLS.zscore.weekly-7cd36dc2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-822ed949.js → BMI_GIRLS.zscore.yearly-9729495b.js} +0 -0
- /package/build/esm/{ChevronDown-74267eb8.js → ChevronDown-b58f1e76.js} +0 -0
- /package/build/esm/{Close-372aa467.js → Close-0390b2a2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-21b04c4c.js → HEAD CIRCUM_BOYS.percentile.monthly-6aa62326.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-049a9d97.js → HEAD CIRCUM_BOYS.percentile.weekly-dccbec56.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-a4bbbaba.js → HEAD CIRCUM_BOYS.percentile.yearly-153e0846.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-7cb348c6.js → HEAD CIRCUM_BOYS.zscore.monthly-3fe46c5e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-678a1a52.js → HEAD CIRCUM_BOYS.zscore.weekly-81fa76e0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-db81b17e.js → HEAD CIRCUM_BOYS.zscore.yearly-a5955c3a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-cee33cd5.js → HEAD CIRCUM_GIRLS.percentile.monthly-16afd7d8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2cec19c3.js → HEAD CIRCUM_GIRLS.percentile.weekly-b0258df8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5949e664.js → HEAD CIRCUM_GIRLS.percentile.yearly-fbe848aa.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7c2bffab.js → HEAD CIRCUM_GIRLS.zscore.monthly-7cb222f7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-356dd00a.js → HEAD CIRCUM_GIRLS.zscore.weekly-786f37d5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-e7b62215.js → HEAD CIRCUM_GIRLS.zscore.yearly-546970dc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-359c4335.js → HEIGHT_BOYS.percentile.monthly-3fe8dd70.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-a4d4acd3.js → HEIGHT_BOYS.percentile.weekly-8ff515f0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-ec9a7f9b.js → HEIGHT_BOYS.percentile.yearly-2ed73e3c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-12331258.js → HEIGHT_BOYS.zscore.monthly-f18a337e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-172054d3.js → HEIGHT_BOYS.zscore.weekly-d06e0e09.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-bb47a3be.js → HEIGHT_BOYS.zscore.yearly-e500b2d1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c93c0b34.js → HEIGHT_GIRLS.percentile.monthly-2eb2700e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f1f83097.js → HEIGHT_GIRLS.percentile.weekly-2f205b6e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ccee4e55.js → HEIGHT_GIRLS.percentile.yearly-0d54472f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-caf5410c.js → HEIGHT_GIRLS.zscore.monthly-d1846835.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b1e28b0e.js → HEIGHT_GIRLS.zscore.weekly-b9036bc9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c3af35d3.js → HEIGHT_GIRLS.zscore.yearly-8dcf6e2d.js} +0 -0
- /package/build/esm/{Visible-3f9d7dca.js → Visible-76b05e8e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-8a4647df.js → WEIGHT_BOYS.percentile.monthly-85f7b978.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a2a6adf1.js → WEIGHT_BOYS.percentile.weekly-7c206abd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-073df8b7.js → WEIGHT_BOYS.percentile.yearly-52c0957d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-bb9e73d2.js → WEIGHT_BOYS.zscore.monthly-f48a971e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-ef32ce7a.js → WEIGHT_BOYS.zscore.weekly-6355c54f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6cc77688.js → WEIGHT_BOYS.zscore.yearly-bdb0459b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a4b518bc.js → WEIGHT_GIRLS.percentile.monthly-a3b768e9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-dcedaebb.js → WEIGHT_GIRLS.percentile.weekly-715f5009.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9e66577e.js → WEIGHT_GIRLS.percentile.yearly-c3a04a7d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-c07cb81f.js → WEIGHT_GIRLS.zscore.monthly-ea7be69d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-9c5c3e8e.js → WEIGHT_GIRLS.zscore.weekly-8b92b792.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-e99ce511.js → WEIGHT_GIRLS.zscore.yearly-8a06cbf9.js} +0 -0
- /package/build/esm/{animation-0b2299dc.js → animation-b6d252e4.js} +0 -0
- /package/build/esm/{cart-f961dadc.js → cart-043dfe5c.js} +0 -0
- /package/build/esm/{constants-71d9f33b.js → constants-697503a2.js} +0 -0
- /package/build/esm/{constants-f77fc231.js → constants-b3779c5e.js} +0 -0
- /package/build/esm/{doctor-8a07ca44.js → doctor-9f166022.js} +0 -0
- /package/build/esm/{index-b65a8764.js → index-36764891.js} +0 -0
- /package/build/esm/{index-3078acec.js → index-44870130.js} +0 -0
- /package/build/esm/{index-782fed08.js → index-77dc8ed1.js} +0 -0
- /package/build/esm/{index-c3264b34.js → index-ee5dec8f.js} +0 -0
- /package/build/esm/{localizeNumberFormat-42ae8d89.js → localizeNumberFormat-4dd1fd7a.js} +0 -0
- /package/build/esm/{normalizeLink-d6f57223.js → normalizeLink-243e6342.js} +0 -0
- /package/build/esm/{number-13f075cf.js → number-129aedb0.js} +0 -0
- /package/build/esm/{paths-49a813e7.js → paths-67ad72a7.js} +0 -0
- /package/build/esm/{translationsContext-f3d1a7bd.js → translationsContext-68168ff3.js} +0 -0
- /package/build/esm/{tslib.es6-761239c7.js → tslib.es6-2d738692.js} +0 -0
- /package/build/esm/{useIsInit-ee864235.js → useIsInit-6be72906.js} +0 -0
- /package/build/esm/{useOutsideClick-7451aa57.js → useOutsideClick-fd3849ea.js} +0 -0
- /package/build/esm/{useScrollbarSize-84bb5b47.js → useScrollbarSize-77534d1d.js} +0 -0
- /package/build/esm/{useUniqueId-c23213b6.js → useUniqueId-e84c90ce.js} +0 -0
- /package/build/{index-bba97c2e.js → index-0168f1a0.js} +0 -0
- /package/build/{index-e0bf03ac.js → index-053ed018.js} +0 -0
- /package/build/{index-97ebd7e1.js → index-90e7e427.js} +0 -0
- /package/build/{index-ba3797bb.js → index-a73d7cb3.js} +0 -0
- /package/build/{localizeNumberFormat-90d4f9d5.js → localizeNumberFormat-8ab6a41e.js} +0 -0
- /package/build/{normalizeLink-451ae6d8.js → normalizeLink-07c90859.js} +0 -0
- /package/build/{number-c2338382.js → number-5605662c.js} +0 -0
- /package/build/{paths-e0bbfce7.js → paths-6b0114f1.js} +0 -0
- /package/build/{translationsContext-39528d2f.js → translationsContext-ade0df93.js} +0 -0
- /package/build/{tslib.es6-7e140b89.js → tslib.es6-d6fa4ee6.js} +0 -0
- /package/build/{useIsInit-38cec0c4.js → useIsInit-08580a12.js} +0 -0
- /package/build/{useOutsideClick-e579e1ac.js → useOutsideClick-960bf73b.js} +0 -0
- /package/build/{useScrollbarSize-5a8be010.js → useScrollbarSize-49049c18.js} +0 -0
- /package/build/{useUniqueId-8929fe5f.js → useUniqueId-3c52a5c5.js} +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-d6fa4ee6.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
6
|
-
var useUniqueId = require('./useUniqueId-
|
|
7
|
-
|
|
8
|
-
var useTranslations = require('./useTranslations-
|
|
5
|
+
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
6
|
+
var useUniqueId = require('./useUniqueId-3c52a5c5.js');
|
|
7
|
+
require('./index-d91f52cc.js');
|
|
8
|
+
var useTranslations = require('./useTranslations-80687df4.js');
|
|
9
|
+
var Locale = require('./Locale-0b86b849.js');
|
|
9
10
|
|
|
10
11
|
function normalizeAndHash(string) {
|
|
11
12
|
const utf8 = new TextEncoder().encode(string.trim().toLowerCase());
|
|
@@ -49,8 +50,8 @@ const useFbDataLayer = (userInfo) => {
|
|
|
49
50
|
userInfo.name ? normalizeAndHash(userInfo.name) : null,
|
|
50
51
|
]);
|
|
51
52
|
({
|
|
52
|
-
fbc:
|
|
53
|
-
fbp:
|
|
53
|
+
fbc: miscCookieHelper.getCookie('_fbc') || '',
|
|
54
|
+
fbp: miscCookieHelper.getCookie('_fbp') || '',
|
|
54
55
|
});
|
|
55
56
|
const localData = {
|
|
56
57
|
user_id: userInfo.id,
|
|
@@ -153,7 +154,7 @@ const PREGNANCY_SLUG = {
|
|
|
153
154
|
};
|
|
154
155
|
// NOTE: this is temporary mapping on 13/02/2023, can be outdated due to changes from content team in the future
|
|
155
156
|
const MAPPED_CATEGORY_SLUGS = {
|
|
156
|
-
[
|
|
157
|
+
[Locale.LOCALE.Vietnam]: {
|
|
157
158
|
sexualWellness: 'suc-khoe-tinh-duc',
|
|
158
159
|
health: 'suc-khoe',
|
|
159
160
|
healthyEating: 'an-uong-lanh-manh',
|
|
@@ -167,7 +168,7 @@ const MAPPED_CATEGORY_SLUGS = {
|
|
|
167
168
|
diabetes: 'tieu-duong-dai-thao-duong',
|
|
168
169
|
healthyMind: 'tam-ly-tam-than',
|
|
169
170
|
},
|
|
170
|
-
[
|
|
171
|
+
[Locale.LOCALE.Indonesia]: {
|
|
171
172
|
pregnancy: 'kehamilan',
|
|
172
173
|
parenting: 'parenting',
|
|
173
174
|
health: 'sehat',
|
|
@@ -178,7 +179,7 @@ const MAPPED_CATEGORY_SLUGS = {
|
|
|
178
179
|
healthyEating: '',
|
|
179
180
|
skinHealth: '',
|
|
180
181
|
},
|
|
181
|
-
[
|
|
182
|
+
[Locale.LOCALE.Malaysia]: {
|
|
182
183
|
pregnancy: 'kehamilan',
|
|
183
184
|
parenting: 'keibubapaan',
|
|
184
185
|
health: 'kesihatan',
|
|
@@ -189,7 +190,7 @@ const MAPPED_CATEGORY_SLUGS = {
|
|
|
189
190
|
healthyEating: '',
|
|
190
191
|
skinHealth: '',
|
|
191
192
|
},
|
|
192
|
-
[
|
|
193
|
+
[Locale.LOCALE.Cambodia]: {
|
|
193
194
|
pregnancy: '%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87',
|
|
194
195
|
parenting: '%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93',
|
|
195
196
|
health: '%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85',
|
|
@@ -200,7 +201,7 @@ const MAPPED_CATEGORY_SLUGS = {
|
|
|
200
201
|
healthyEating: '',
|
|
201
202
|
skinHealth: '',
|
|
202
203
|
},
|
|
203
|
-
[
|
|
204
|
+
[Locale.LOCALE.PhilippinesEnglish]: {
|
|
204
205
|
pregnancy: 'pregnancy',
|
|
205
206
|
parenting: 'parenting',
|
|
206
207
|
health: 'health',
|
|
@@ -211,7 +212,7 @@ const MAPPED_CATEGORY_SLUGS = {
|
|
|
211
212
|
healthyEating: '',
|
|
212
213
|
skinHealth: '',
|
|
213
214
|
},
|
|
214
|
-
[
|
|
215
|
+
[Locale.LOCALE.PhilippinesTagalog]: {
|
|
215
216
|
pregnancy: 'pagbubuntis',
|
|
216
217
|
parenting: 'pagiging-magulang',
|
|
217
218
|
health: 'kalusugan',
|
|
@@ -222,7 +223,7 @@ const MAPPED_CATEGORY_SLUGS = {
|
|
|
222
223
|
healthyEating: '',
|
|
223
224
|
skinHealth: '',
|
|
224
225
|
},
|
|
225
|
-
[
|
|
226
|
+
[Locale.LOCALE.Thailand]: {
|
|
226
227
|
pregnancy: '%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c',
|
|
227
228
|
parenting: '%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81',
|
|
228
229
|
health: '%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e',
|
|
@@ -233,7 +234,7 @@ const MAPPED_CATEGORY_SLUGS = {
|
|
|
233
234
|
healthyEating: '',
|
|
234
235
|
skinHealth: '',
|
|
235
236
|
},
|
|
236
|
-
[
|
|
237
|
+
[Locale.LOCALE.Myanmar]: {
|
|
237
238
|
pregnancy: 'pregnancy',
|
|
238
239
|
parenting: 'parenting',
|
|
239
240
|
health: 'health',
|
|
@@ -244,7 +245,7 @@ const MAPPED_CATEGORY_SLUGS = {
|
|
|
244
245
|
healthyEating: '',
|
|
245
246
|
skinHealth: '',
|
|
246
247
|
},
|
|
247
|
-
[
|
|
248
|
+
[Locale.LOCALE.Taiwan]: {
|
|
248
249
|
pregnancy: 'pregnancy',
|
|
249
250
|
parenting: 'parenting',
|
|
250
251
|
health: 'health',
|
|
@@ -255,7 +256,7 @@ const MAPPED_CATEGORY_SLUGS = {
|
|
|
255
256
|
healthyEating: '',
|
|
256
257
|
skinHealth: '',
|
|
257
258
|
},
|
|
258
|
-
[
|
|
259
|
+
[Locale.LOCALE.India]: {
|
|
259
260
|
pregnancy: 'pregnancy',
|
|
260
261
|
parenting: 'parenting',
|
|
261
262
|
health: 'health',
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-d6fa4ee6.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var miscGetDynamicHealthTool = require('./miscGetDynamicHealthTool.js');
|
|
6
6
|
|
|
7
7
|
const useHealthToolsCache = (locale) => {
|
|
8
8
|
const [allTools, setAllTools] = React.useState([]);
|
|
9
9
|
React.useEffect(() => {
|
|
10
10
|
(() => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
-
const allHealthTools = yield
|
|
11
|
+
const allHealthTools = yield miscGetDynamicHealthTool.getDynamicHealthToolWithCache(locale);
|
|
12
12
|
setAllTools(allHealthTools);
|
|
13
13
|
}))();
|
|
14
|
-
}, [
|
|
14
|
+
}, [miscGetDynamicHealthTool.getDynamicHealthToolWithCache, locale]);
|
|
15
15
|
const getHealthToolLink = React.useCallback((type) => { var _a; return ((_a = allTools.find((tool) => tool.template === type)) === null || _a === void 0 ? void 0 : _a.link) || ''; }, [allTools]);
|
|
16
16
|
return { allTools, getHealthToolLink };
|
|
17
17
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var utils = require('./utils-
|
|
4
|
-
var
|
|
3
|
+
var utils = require('./utils-928b4701.js');
|
|
4
|
+
var other = require('./other-0edcc417.js');
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-d6fa4ee6.js');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var dayjs = require('dayjs');
|
|
7
|
-
|
|
8
|
+
require('./index-d91f52cc.js');
|
|
9
|
+
var Locale = require('./Locale-0b86b849.js');
|
|
8
10
|
|
|
9
11
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
10
12
|
|
|
@@ -55,35 +57,35 @@ const getHeadingStyles = (mbDown = false) => Object.fromEntries((mbDown ? headin
|
|
|
55
57
|
const GlobalHeadingStyle = {
|
|
56
58
|
Title: {
|
|
57
59
|
styles: {
|
|
58
|
-
root: Object.assign(Object.assign({ fontWeight:
|
|
60
|
+
root: Object.assign(Object.assign({ fontWeight: other.OTHER_THEME_CONFIG.fontWeight.bold }, getHeadingStyles()), { [`&${utils.MediaQueries.mbDown}`]: Object.assign({}, getHeadingStyles(true)) }),
|
|
59
61
|
},
|
|
60
62
|
},
|
|
61
63
|
};
|
|
62
64
|
|
|
63
65
|
// Available locale list https://cdn.jsdelivr.net/npm/dayjs@1/locale.json
|
|
64
66
|
const MAPPED_LOCALE = {
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
67
|
+
[Locale.LOCALE.Vietnam]: 'vi',
|
|
68
|
+
[Locale.LOCALE.Cambodia]: 'km',
|
|
69
|
+
[Locale.LOCALE.India]: 'hi',
|
|
70
|
+
[Locale.LOCALE.Indonesia]: 'id',
|
|
71
|
+
[Locale.LOCALE.Malaysia]: 'ms',
|
|
72
|
+
[Locale.LOCALE.Thailand]: 'th',
|
|
73
|
+
[Locale.LOCALE.Taiwan]: 'zh-tw',
|
|
74
|
+
[Locale.LOCALE.PhilippinesTagalog]: 'tl-ph',
|
|
75
|
+
[Locale.LOCALE.PhilippinesEnglish]: 'en',
|
|
76
|
+
[Locale.LOCALE.Myanmar]: 'my',
|
|
75
77
|
};
|
|
76
78
|
const LOCALE_LOADERS = {
|
|
77
|
-
[
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
[
|
|
82
|
-
[
|
|
83
|
-
[
|
|
84
|
-
[
|
|
85
|
-
[
|
|
86
|
-
[
|
|
79
|
+
[Locale.LOCALE.Vietnam]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/vi.js')); }),
|
|
80
|
+
[Locale.LOCALE.Cambodia]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/km.js')); }),
|
|
81
|
+
[Locale.LOCALE.India]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/hi.js')); }),
|
|
82
|
+
[Locale.LOCALE.Indonesia]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/id.js')); }),
|
|
83
|
+
[Locale.LOCALE.Malaysia]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/ms.js')); }),
|
|
84
|
+
[Locale.LOCALE.Thailand]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/th.js')); }),
|
|
85
|
+
[Locale.LOCALE.Taiwan]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/zh-tw.js')); }),
|
|
86
|
+
[Locale.LOCALE.PhilippinesTagalog]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/tl-ph.js')); }),
|
|
87
|
+
[Locale.LOCALE.PhilippinesEnglish]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/en.js')); }),
|
|
88
|
+
[Locale.LOCALE.Myanmar]: () => Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('dayjs/locale/my.js')); }),
|
|
87
89
|
};
|
|
88
90
|
const useMantineLocale = (locale) => {
|
|
89
91
|
const [isLoaded, setIsLoaded] = React.useState(false);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
7
|
+
var togetherComponentGlobalContext = require('./utils-e4d5701e.js');
|
|
8
|
+
var constants = require('./constants-1953275e.js');
|
|
9
|
+
require('./tslib.es6-d6fa4ee6.js');
|
|
10
|
+
require('./index-053ed018.js');
|
|
11
|
+
require('slugify');
|
|
12
|
+
require('./constantsIsProduction.js');
|
|
13
|
+
require('string-format');
|
|
14
|
+
require('./togetherApiPaths.js');
|
|
15
|
+
|
|
16
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
17
|
+
|
|
18
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
19
|
+
|
|
20
|
+
const TogetherAuthConfigContext = React.createContext({});
|
|
21
|
+
const TogetherAuthConfigContextProvider = ({ children, defaultParams, }) => {
|
|
22
|
+
return (React__default["default"].createElement(TogetherAuthConfigContext.Provider, { value: {
|
|
23
|
+
defaultParams,
|
|
24
|
+
} }, children));
|
|
25
|
+
};
|
|
26
|
+
const useTogetherAuthRequiredAction = (propsParams) => {
|
|
27
|
+
const { data: { userInfo, env: { togetherBasePath }, }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
28
|
+
const { defaultParams } = React.useContext(TogetherAuthConfigContext) || {};
|
|
29
|
+
const isLoggedIn = userInfo === null || userInfo === void 0 ? void 0 : userInfo.id;
|
|
30
|
+
const isFirstInteract = userInfo &&
|
|
31
|
+
typeof userInfo.communities_interacted === 'number' &&
|
|
32
|
+
userInfo.communities_interacted === 0;
|
|
33
|
+
const authActionWrapper = (func, extraParams) => {
|
|
34
|
+
const params = Object.assign(Object.assign(Object.assign({}, defaultParams), propsParams), extraParams);
|
|
35
|
+
if (!isLoggedIn || isFirstInteract) {
|
|
36
|
+
if (!isLoggedIn) {
|
|
37
|
+
miscCookieHelper.deleteCookie(constants.BEARER_TOKEN_COOKIE);
|
|
38
|
+
}
|
|
39
|
+
if (params === null || params === void 0 ? void 0 : params._joinCommunityIds) {
|
|
40
|
+
localStorage.setItem('to_join_community_ids', JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem('to_join_community_ids') || '[]') || [])
|
|
41
|
+
.concat(params._joinCommunityIds)
|
|
42
|
+
.filter(Boolean)))));
|
|
43
|
+
params === null || params === void 0 ? true : delete params._joinCommunityIds;
|
|
44
|
+
}
|
|
45
|
+
if (params === null || params === void 0 ? void 0 : params._joinTopicIds) {
|
|
46
|
+
localStorage.setItem('to_join_topic_ids', JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem('to_join_topic_ids') || '[]') || [])
|
|
47
|
+
.concat(params._joinTopicIds)
|
|
48
|
+
.filter(Boolean)))));
|
|
49
|
+
params === null || params === void 0 ? true : delete params._joinTopicIds;
|
|
50
|
+
}
|
|
51
|
+
const currentLocation = (params === null || params === void 0 ? void 0 : params._location) || window.location.href;
|
|
52
|
+
params === null || params === void 0 ? true : delete params._location;
|
|
53
|
+
window.location.href = togetherComponentGlobalContext.getUrlToSignUp(currentLocation, params, togetherBasePath);
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return func && func();
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
return {
|
|
61
|
+
authActionWrapper,
|
|
62
|
+
params: Object.assign(Object.assign({}, defaultParams), propsParams),
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
exports.TogetherAuthConfigContext = TogetherAuthConfigContext;
|
|
67
|
+
exports.TogetherAuthConfigContextProvider = TogetherAuthConfigContextProvider;
|
|
68
|
+
exports.useTogetherAuthRequiredAction = useTogetherAuthRequiredAction;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var translationsContext = require('./translationsContext-
|
|
4
|
+
var translationsContext = require('./translationsContext-ade0df93.js');
|
|
5
5
|
var formatString = require('string-format');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require('./index-d91f52cc.js');
|
|
4
|
+
var Locale = require('./Locale-0b86b849.js');
|
|
4
5
|
|
|
5
6
|
// https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
6
7
|
const MAPPED_LOCALE = {
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
8
|
+
[Locale.LOCALE.Vietnam]: 'VN',
|
|
9
|
+
[Locale.LOCALE.Cambodia]: 'KH',
|
|
10
|
+
[Locale.LOCALE.Indonesia]: 'ID',
|
|
11
|
+
[Locale.LOCALE.Malaysia]: 'MY',
|
|
12
|
+
[Locale.LOCALE.PhilippinesEnglish]: 'PH',
|
|
13
|
+
[Locale.LOCALE.PhilippinesTagalog]: 'PH',
|
|
14
|
+
[Locale.LOCALE.Taiwan]: 'TW',
|
|
15
|
+
[Locale.LOCALE.Thailand]: 'TH',
|
|
16
|
+
[Locale.LOCALE.Myanmar]: 'MM',
|
|
16
17
|
};
|
|
17
18
|
const hiddenEmailChar = (str = '') => {
|
|
18
19
|
const domainIndex = str.indexOf('@');
|
|
@@ -1,103 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var FontWeight;
|
|
4
|
-
(function (FontWeight) {
|
|
5
|
-
FontWeight[FontWeight["regular"] = 400] = "regular";
|
|
6
|
-
FontWeight[FontWeight["semiBold"] = 600] = "semiBold";
|
|
7
|
-
FontWeight[FontWeight["bold"] = 700] = "bold";
|
|
8
|
-
})(FontWeight || (FontWeight = {}));
|
|
9
|
-
const GlobalTextStyle = {
|
|
10
|
-
fontSize: {
|
|
11
|
-
base: [rem(16), rem(16)],
|
|
12
|
-
lg: [rem(18), rem(16)],
|
|
13
|
-
md: [rem(18), rem(16)],
|
|
14
|
-
sm: [rem(16), rem(14)],
|
|
15
|
-
xs: [rem(14), rem(12)],
|
|
16
|
-
s1: [rem(22), rem(18)],
|
|
17
|
-
s2: [rem(18), rem(16)],
|
|
18
|
-
s3: [rem(16), rem(14)],
|
|
19
|
-
s4: [rem(14), rem(12)],
|
|
20
|
-
s5: [rem(12), rem(12)],
|
|
21
|
-
p1: [rem(18), rem(16)],
|
|
22
|
-
p2: [rem(16), rem(16)],
|
|
23
|
-
p3: [rem(16), rem(14)],
|
|
24
|
-
p4: [rem(14), rem(12)],
|
|
25
|
-
p5: [rem(12), rem(12)],
|
|
26
|
-
c1: [rem(16), rem(14)],
|
|
27
|
-
c2: [rem(14), rem(12)],
|
|
28
|
-
n1: [rem(12), rem(12)],
|
|
29
|
-
label1: [rem(14), rem(14)],
|
|
30
|
-
label2: [rem(12), rem(12)],
|
|
31
|
-
h1: [rem(40), rem(26)],
|
|
32
|
-
h2: [rem(32), rem(24)],
|
|
33
|
-
h3: [rem(26), rem(20)],
|
|
34
|
-
h4: [rem(22), rem(18)],
|
|
35
|
-
h5: [rem(18), rem(16)],
|
|
36
|
-
h6: [rem(16), rem(14)],
|
|
37
|
-
},
|
|
38
|
-
lineHeight: {
|
|
39
|
-
base: [rem(24), rem(24)],
|
|
40
|
-
lg: [rem(32), rem(28)],
|
|
41
|
-
md: [rem(32), rem(28)],
|
|
42
|
-
sm: [rem(24), rem(22)],
|
|
43
|
-
xs: [rem(24), rem(18)],
|
|
44
|
-
s1: [rem(32), rem(26)],
|
|
45
|
-
s2: [rem(28), rem(24)],
|
|
46
|
-
s3: [rem(24), rem(24)],
|
|
47
|
-
s4: [rem(22), rem(18)],
|
|
48
|
-
s5: [rem(18), rem(18)],
|
|
49
|
-
p1: [rem(28), rem(28)],
|
|
50
|
-
p2: [rem(24), rem(24)],
|
|
51
|
-
p3: [rem(24), rem(22)],
|
|
52
|
-
p4: [rem(22), rem(18)],
|
|
53
|
-
c1: [rem(24), rem(22)],
|
|
54
|
-
c2: [rem(22), rem(18)],
|
|
55
|
-
n1: [rem(18), rem(18)],
|
|
56
|
-
label1: [rem(22), rem(22)],
|
|
57
|
-
label2: [rem(18), rem(18)],
|
|
58
|
-
h1: [rem(52), rem(34)],
|
|
59
|
-
h2: [rem(42), rem(32)],
|
|
60
|
-
h3: [rem(36), rem(26)],
|
|
61
|
-
h4: [rem(32), rem(26)],
|
|
62
|
-
h5: [rem(28), rem(24)],
|
|
63
|
-
h6: [rem(24), rem(22)],
|
|
64
|
-
},
|
|
65
|
-
letterSpacing: {
|
|
66
|
-
lg: [-0.2, 0],
|
|
67
|
-
md: [-0.2, 0],
|
|
68
|
-
sm: [0, -0.2],
|
|
69
|
-
s1: [-0.6, -0.6],
|
|
70
|
-
s2: [-0.4, -0.2],
|
|
71
|
-
s3: [0, -0.2],
|
|
72
|
-
s4: [0, -0.2],
|
|
73
|
-
p1: [-0.2, -0.2],
|
|
74
|
-
p2: [0, -0.2],
|
|
75
|
-
p3: [0, -0.2],
|
|
76
|
-
p4: [-0.2, 0],
|
|
77
|
-
label1: [0, -0.2],
|
|
78
|
-
h1: [-1.2, -0.9],
|
|
79
|
-
h2: [-1, -0.8],
|
|
80
|
-
h3: [-0.8, -0.7],
|
|
81
|
-
h4: [-0.6, -0.6],
|
|
82
|
-
h5: [-0.2, -0.2],
|
|
83
|
-
h6: [0, -0.2],
|
|
84
|
-
},
|
|
85
|
-
fontWeightBySize: {
|
|
86
|
-
s1: FontWeight.semiBold,
|
|
87
|
-
s2: FontWeight.semiBold,
|
|
88
|
-
s3: FontWeight.semiBold,
|
|
89
|
-
s4: FontWeight.semiBold,
|
|
90
|
-
h1: FontWeight.bold,
|
|
91
|
-
h2: FontWeight.bold,
|
|
92
|
-
h3: FontWeight.bold,
|
|
93
|
-
h4: FontWeight.bold,
|
|
94
|
-
h5: FontWeight.bold,
|
|
95
|
-
h6: FontWeight.bold,
|
|
96
|
-
},
|
|
97
|
-
fontWeight: FontWeight,
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const OTHER_THEME_CONFIG = Object.assign({}, GlobalTextStyle);
|
|
1
|
+
'use strict';
|
|
101
2
|
|
|
102
3
|
const makeParams = (params) => {
|
|
103
4
|
const paramKeys = Object.keys(params);
|
|
@@ -230,4 +131,13 @@ const safeEncodeURI = (s) => {
|
|
|
230
131
|
return encodeURI(s);
|
|
231
132
|
};
|
|
232
133
|
|
|
233
|
-
|
|
134
|
+
exports.Breakpoints = Breakpoints;
|
|
135
|
+
exports.MediaQueries = MediaQueries;
|
|
136
|
+
exports.formatUrlWithPageParam = formatUrlWithPageParam;
|
|
137
|
+
exports.getBoundariesFromMediaQueryKey = getBoundariesFromMediaQueryKey;
|
|
138
|
+
exports.getPopupWrapperDom = getPopupWrapperDom;
|
|
139
|
+
exports.getWrapperDomWithSelector = getWrapperDomWithSelector;
|
|
140
|
+
exports.makeParams = makeParams;
|
|
141
|
+
exports.safeEncodeURI = safeEncodeURI;
|
|
142
|
+
exports.startCase = startCase;
|
|
143
|
+
exports.toggleNoScroll = toggleNoScroll;
|