@hhgtech/hhg-components 1.28.67 → 1.28.69
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/BMI_BOYS.percentile.monthly-48c9471d.js +688 -0
- package/build/BMI_BOYS.percentile.weekly-4965852e.js +182 -0
- package/build/BMI_BOYS.percentile.yearly-0f7cc8f4.js +83 -0
- package/build/BMI_BOYS.zscore.monthly-5bb8a433.js +440 -0
- package/build/BMI_BOYS.zscore.weekly-3d56f80f.js +118 -0
- package/build/BMI_BOYS.zscore.yearly-57081f24.js +55 -0
- package/build/BMI_GIRLS.percentile.monthly-95859cd9.js +688 -0
- package/build/BMI_GIRLS.percentile.weekly-009cf4df.js +182 -0
- package/build/BMI_GIRLS.percentile.yearly-4436947b.js +83 -0
- package/build/BMI_GIRLS.zscore.monthly-689b4eee.js +440 -0
- package/build/BMI_GIRLS.zscore.weekly-dff693df.js +118 -0
- package/build/BMI_GIRLS.zscore.yearly-05ef5f4f.js +55 -0
- package/build/ChevronDown-275f1ab5.js +29 -0
- package/build/HEAD CIRCUM_BOYS.percentile.monthly-55c580a7.js +688 -0
- package/build/HEAD CIRCUM_BOYS.percentile.weekly-e30f4a42.js +182 -0
- package/build/HEAD CIRCUM_BOYS.percentile.yearly-2378a5f0.js +83 -0
- package/build/HEAD CIRCUM_BOYS.zscore.monthly-102d5559.js +440 -0
- package/build/HEAD CIRCUM_BOYS.zscore.weekly-7b0f1ba8.js +118 -0
- package/build/HEAD CIRCUM_BOYS.zscore.yearly-e9237d31.js +55 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.monthly-1ddda8b3.js +688 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.weekly-843147ea.js +182 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.yearly-9b51c237.js +83 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.monthly-3f1b233c.js +440 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9e14d3fe.js +118 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.yearly-d924f5ae.js +55 -0
- package/build/HEIGHT_BOYS.percentile.monthly-15538920.js +688 -0
- package/build/HEIGHT_BOYS.percentile.weekly-10bd0277.js +182 -0
- package/build/HEIGHT_BOYS.percentile.yearly-8e678d38.js +237 -0
- package/build/HEIGHT_BOYS.zscore.monthly-2c110da9.js +440 -0
- package/build/HEIGHT_BOYS.zscore.weekly-288b7733.js +118 -0
- package/build/HEIGHT_BOYS.zscore.yearly-42f6f9f7.js +153 -0
- package/build/HEIGHT_GIRLS.percentile.monthly-04abe7d2.js +688 -0
- package/build/HEIGHT_GIRLS.percentile.weekly-9653b16c.js +182 -0
- package/build/HEIGHT_GIRLS.percentile.yearly-9efacd67.js +237 -0
- package/build/HEIGHT_GIRLS.zscore.monthly-c64a97b2.js +440 -0
- package/build/HEIGHT_GIRLS.zscore.weekly-3302dd83.js +118 -0
- package/build/HEIGHT_GIRLS.zscore.yearly-ebe5114f.js +153 -0
- package/build/Subot-5fc40fb5.js +217 -0
- package/build/Visible-5c5d57cf.js +29 -0
- package/build/WEIGHT_BOYS.percentile.monthly-5e11e7a0.js +688 -0
- package/build/WEIGHT_BOYS.percentile.weekly-68ae2578.js +182 -0
- package/build/WEIGHT_BOYS.percentile.yearly-030c06a4.js +138 -0
- package/build/WEIGHT_BOYS.zscore.monthly-d22c7b57.js +440 -0
- package/build/WEIGHT_BOYS.zscore.weekly-d8d901e6.js +118 -0
- package/build/WEIGHT_BOYS.zscore.yearly-c311a084.js +90 -0
- package/build/WEIGHT_GIRLS.percentile.monthly-5c44f8eb.js +688 -0
- package/build/WEIGHT_GIRLS.percentile.weekly-faa98671.js +182 -0
- package/build/WEIGHT_GIRLS.percentile.yearly-560b862e.js +138 -0
- package/build/WEIGHT_GIRLS.zscore.monthly-5365ba1a.js +440 -0
- package/build/WEIGHT_GIRLS.zscore.weekly-0d9dc521.js +118 -0
- package/build/WEIGHT_GIRLS.zscore.yearly-5a3c4e43.js +90 -0
- package/build/adapters.js +36 -1
- package/build/{esm/animation-0340efb3.js → animation-eb4e500b.js} +32 -10
- package/build/babyGrowth.js +913 -47
- package/build/cache.js +13 -1
- package/build/care.js +38 -1
- package/build/components/navigationV2/hooks/useNavConfig.d.ts +1 -3
- package/build/components.js +186 -1
- package/build/constants-8b8bc19f.js +255 -0
- package/build/constants-ae18ce18.js +935 -0
- package/build/constants.js +43 -1
- package/build/cookieHelper-5c9f4bb8.js +43 -0
- package/build/core-2aa8d86c.js +51 -0
- package/build/dataTransform-089f414c.js +66 -0
- package/build/ecom.js +745 -1
- package/build/esm/BMI_BOYS.percentile.monthly-de5dce68.js +686 -0
- package/build/esm/BMI_BOYS.percentile.weekly-9d3990b6.js +180 -0
- package/build/esm/BMI_BOYS.percentile.yearly-98b9114a.js +81 -0
- package/build/esm/BMI_BOYS.zscore.monthly-394646f0.js +438 -0
- package/build/esm/BMI_BOYS.zscore.weekly-c669ea51.js +116 -0
- package/build/esm/BMI_BOYS.zscore.yearly-771ef6b6.js +53 -0
- package/build/esm/BMI_GIRLS.percentile.monthly-1ff3d499.js +686 -0
- package/build/esm/BMI_GIRLS.percentile.weekly-211d2f27.js +180 -0
- package/build/esm/BMI_GIRLS.percentile.yearly-206fdcff.js +81 -0
- package/build/esm/BMI_GIRLS.zscore.monthly-b1137e36.js +438 -0
- package/build/esm/BMI_GIRLS.zscore.weekly-63ed3cd6.js +116 -0
- package/build/esm/BMI_GIRLS.zscore.yearly-221d187c.js +53 -0
- package/build/esm/ChevronDown-9a8ece61.js +7 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-4c37847c.js +686 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-8f6ea38a.js +180 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-6c12a99a.js +81 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-c531b497.js +438 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-6cafba00.js +116 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-fe8114a0.js +53 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-25ce0d36.js +686 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-5d3f2862.js +180 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-2b709ca5.js +81 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-e8617bae.js +438 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-f3252d67.js +116 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-5b62d41f.js +53 -0
- package/build/esm/HEIGHT_BOYS.percentile.monthly-63d2cf96.js +686 -0
- package/build/esm/HEIGHT_BOYS.percentile.weekly-8ea5102d.js +180 -0
- package/build/esm/HEIGHT_BOYS.percentile.yearly-8107b77b.js +235 -0
- package/build/esm/HEIGHT_BOYS.zscore.monthly-641cdfa3.js +438 -0
- package/build/esm/HEIGHT_BOYS.zscore.weekly-86da0362.js +116 -0
- package/build/esm/HEIGHT_BOYS.zscore.yearly-060f6e79.js +151 -0
- package/build/esm/HEIGHT_GIRLS.percentile.monthly-fb987d37.js +686 -0
- package/build/esm/HEIGHT_GIRLS.percentile.weekly-82655dc0.js +180 -0
- package/build/esm/HEIGHT_GIRLS.percentile.yearly-a63b8456.js +235 -0
- package/build/esm/HEIGHT_GIRLS.zscore.monthly-77d676a3.js +438 -0
- package/build/esm/HEIGHT_GIRLS.zscore.weekly-c0387a4e.js +116 -0
- package/build/esm/HEIGHT_GIRLS.zscore.yearly-41203c20.js +151 -0
- package/build/esm/Subot-3289bd8e.js +212 -0
- package/build/esm/Visible-a3d436dd.js +7 -0
- package/build/esm/WEIGHT_BOYS.percentile.monthly-50802d8b.js +686 -0
- package/build/esm/WEIGHT_BOYS.percentile.weekly-4d72ddd6.js +180 -0
- package/build/esm/WEIGHT_BOYS.percentile.yearly-20a29844.js +136 -0
- package/build/esm/WEIGHT_BOYS.zscore.monthly-729e6614.js +438 -0
- package/build/esm/WEIGHT_BOYS.zscore.weekly-90352f48.js +116 -0
- package/build/esm/WEIGHT_BOYS.zscore.yearly-fe1871cc.js +88 -0
- package/build/esm/WEIGHT_GIRLS.percentile.monthly-e6afb2e0.js +686 -0
- package/build/esm/WEIGHT_GIRLS.percentile.weekly-b66d3016.js +180 -0
- package/build/esm/WEIGHT_GIRLS.percentile.yearly-a55622c5.js +136 -0
- package/build/esm/WEIGHT_GIRLS.zscore.monthly-2cdcbe75.js +438 -0
- package/build/esm/WEIGHT_GIRLS.zscore.weekly-d5be31d5.js +116 -0
- package/build/esm/WEIGHT_GIRLS.zscore.yearly-99e8d3a7.js +88 -0
- package/build/esm/adapters.js +26 -1
- package/build/{animation-d5d9ef32.js → esm/animation-3d5edc39.js} +22 -10
- package/build/esm/babyGrowth.js +883 -47
- package/build/esm/cache.js +3 -1
- package/build/esm/care.js +26 -1
- package/build/esm/components/navigationV2/hooks/useNavConfig.d.ts +1 -3
- package/build/esm/components.js +88 -1
- package/build/esm/constants-2a6d2434.js +932 -0
- package/build/esm/constants-b77ffe3d.js +238 -0
- package/build/esm/constants.js +4 -1
- package/build/esm/cookieHelper-d314282c.js +39 -0
- package/build/esm/core-8c73d133.js +47 -0
- package/build/esm/dataTransform-8ecfc046.js +56 -0
- package/build/esm/ecom.js +737 -1
- package/build/esm/footer.js +31 -1
- package/build/esm/gAssets.js +5 -1
- package/build/esm/getDynamicHealthTool-f4497aa5.js +44 -0
- package/build/esm/getSocialList-a5b8462e.js +66 -0
- package/build/esm/hooks.js +21 -1
- package/build/esm/i18n-values/en-PH.js +600 -1
- package/build/esm/i18n-values/hi-IN.js +600 -1
- package/build/esm/i18n-values/id-ID.js +600 -1
- package/build/esm/i18n-values/km-KH.js +600 -1
- package/build/esm/i18n-values/ms-MY.js +602 -1
- package/build/esm/i18n-values/my-MM.js +600 -1
- package/build/esm/i18n-values/th-TH.js +600 -1
- package/build/esm/i18n-values/tl-PH.js +600 -1
- package/build/esm/i18n-values/vi-VN.js +607 -1
- package/build/esm/i18n-values/vi-VN_MB.js +607 -1
- package/build/esm/i18n-values/zh-TW.js +600 -1
- package/build/esm/i18n.js +55 -1
- package/build/esm/i18nV2.js +18 -1
- package/build/esm/index-12fa4985.js +8 -0
- package/build/esm/index-1e59f99a.js +152 -0
- package/build/esm/index-32e53dac.js +1936 -0
- package/build/esm/index-3474401a.js +149 -0
- package/build/esm/index-34899aa3.js +17 -0
- package/build/esm/index-350e8f5b.js +124 -0
- package/build/esm/index-41bf860a.js +151 -0
- package/build/esm/index-4aa8e518.js +116 -0
- package/build/esm/index-4fe2b03f.js +32 -0
- package/build/esm/index-6ea6484e.js +29 -0
- package/build/esm/index-717401ee.js +184 -0
- package/build/esm/index-7af5242a.js +24 -0
- package/build/esm/index-7b8c85cd.js +8302 -0
- package/build/esm/index-81f295b7.js +23 -0
- package/build/esm/index-8858383e.js +52 -0
- package/build/esm/index-8f52dcf3.js +33 -0
- package/build/esm/index-9ea7e838.js +33 -0
- package/build/esm/index-aabac2aa.js +3241 -0
- package/build/esm/index-b9b2c417.js +837 -0
- package/build/esm/index-c2da5293.js +12 -0
- package/build/esm/index-c56d60db.js +370 -0
- package/build/esm/index-c5d7f692.js +24 -0
- package/build/esm/index-cc93e010.js +53 -0
- package/build/esm/index-d7f046db.js +5 -0
- package/build/esm/index-d8177667.js +14 -0
- package/build/esm/index-da139dda.js +615 -0
- package/build/esm/index-e612be9c.js +905 -0
- package/build/esm/index-f3d0592b.js +71 -0
- package/build/esm/index.js +190 -1
- package/build/{index.styled-0a1fb891.js → esm/index.styled-9c9db9cc.js} +17 -5
- package/build/esm/index.styles-5add27c5.js +1303 -0
- package/build/esm/isProduction-0ea904dd.js +27 -0
- package/build/esm/lead.js +2140 -1
- package/build/esm/localizeNumberFormat-2ac3773e.js +23 -0
- package/build/esm/mantine.js +113 -1
- package/build/esm/misc.js +22 -1
- package/build/esm/navigation.js +51 -1
- package/build/esm/normalizeLink-d1c9617e.js +12 -0
- package/build/esm/number-0c126a39.js +38 -0
- package/build/esm/onboardingV2.js +860 -34
- package/build/esm/paths-a8204db4.js +14 -0
- package/build/esm/pwg.js +208 -7
- package/build/esm/routing-2474f896.js +40 -0
- package/build/esm/subot.js +4553 -134
- package/build/esm/theme-e74db08c.js +186 -0
- package/build/esm/together.js +52 -1
- package/build/esm/translationsContext-ad3e25de.js +5 -0
- package/build/esm/tslib.es6-1b1533a9.js +38 -0
- package/build/esm/types-06f00b3d.js +8015 -0
- package/build/esm/types-15e34418.js +3432 -0
- package/build/esm/types-ba190c26.js +21 -0
- package/build/esm/types.js +1 -1
- package/build/esm/unifyEnv.js +42 -1
- package/build/esm/useCategory-2c87152d.js +292 -0
- package/build/esm/useHealthToolCache-29d22ddb.js +17 -0
- package/build/esm/useIsInit-8a2fc8e5.js +11 -0
- package/build/esm/useOutsideClick-c8a7ff20.js +45 -0
- package/build/esm/usePlacesAutocomplete-63e04e8e.js +80 -0
- package/build/esm/useScrollbarSize-51ce1374.js +57 -0
- package/build/esm/useTranslations-4f1db486.js +26 -0
- package/build/esm/useUniqueId-3638402f.js +41 -0
- package/build/esm/utils-2c484c05.js +132 -0
- package/build/esm/utils-3a2a47d9.js +22 -0
- package/build/esm/utils-6d7b88da.js +367 -0
- package/build/esm/utils-70718e9c.js +1124 -0
- package/build/esm/vaccination.js +868 -40
- package/build/footer.js +39 -1
- package/build/gAssets.js +14 -1
- package/build/getDynamicHealthTool-114a1e27.js +48 -0
- package/build/getSocialList-4713441d.js +72 -0
- package/build/hooks.js +44 -1
- package/build/i18n-values/en-PH.js +611 -1
- package/build/i18n-values/hi-IN.js +611 -1
- package/build/i18n-values/id-ID.js +611 -1
- package/build/i18n-values/km-KH.js +611 -1
- package/build/i18n-values/ms-MY.js +613 -1
- package/build/i18n-values/my-MM.js +611 -1
- package/build/i18n-values/th-TH.js +611 -1
- package/build/i18n-values/tl-PH.js +611 -1
- package/build/i18n-values/vi-VN.js +618 -1
- package/build/i18n-values/vi-VN_MB.js +618 -1
- package/build/i18n-values/zh-TW.js +611 -1
- package/build/i18n.js +64 -1
- package/build/i18nV2.js +26 -1
- package/build/index-020e6908.js +39 -0
- package/build/index-0da9b2e8.js +59 -0
- package/build/index-11468c00.js +157 -0
- package/build/index-117448a5.js +133 -0
- package/build/index-12c07f71.js +18 -0
- package/build/index-1a105e87.js +123 -0
- package/build/index-1baaedb0.js +55 -0
- package/build/index-32d38318.js +7 -0
- package/build/index-38582ee0.js +8373 -0
- package/build/index-3e5fc2d6.js +1994 -0
- package/build/index-3eef6bed.js +853 -0
- package/build/index-4035e658.js +159 -0
- package/build/index-488d71ae.js +30 -0
- package/build/index-5553f9e1.js +930 -0
- package/build/index-5fa68e45.js +380 -0
- package/build/index-7b467209.js +39 -0
- package/build/index-81cb1142.js +77 -0
- package/build/index-84ab5b89.js +38 -0
- package/build/index-8a95d709.js +30 -0
- package/build/index-9da9f0c3.js +35 -0
- package/build/index-af91c83e.js +20 -0
- package/build/index-b6aea85e.js +191 -0
- package/build/index-bc4f4c33.js +156 -0
- package/build/index-c604d6bb.js +624 -0
- package/build/index-d330735e.js +30 -0
- package/build/index-d8a7efaf.js +14 -0
- package/build/index-e2e81fa2.js +23 -0
- package/build/index-e3d896b3.js +3261 -0
- package/build/index.js +436 -1
- package/build/{esm/index.styled-14b65c9e.js → index.styled-5628b3e7.js} +25 -5
- package/build/index.styles-b822bf42.js +1342 -0
- package/build/isProduction-5ce3a388.js +29 -0
- package/build/lead.js +2168 -1
- package/build/localizeNumberFormat-f5f50987.js +31 -0
- package/build/mantine.js +154 -1
- package/build/misc.js +70 -1
- package/build/navigation.js +61 -1
- package/build/normalizeLink-6f7b85d8.js +15 -0
- package/build/number-79fe92e1.js +40 -0
- package/build/onboardingV2.js +892 -34
- package/build/paths-a5643d9e.js +16 -0
- package/build/pwg.js +217 -7
- package/build/routing-191a9a00.js +46 -0
- package/build/subot.js +4592 -134
- package/build/theme-fa910869.js +189 -0
- package/build/together.js +112 -1
- package/build/translationsContext-950334bf.js +7 -0
- package/build/tslib.es6-65e312a5.js +41 -0
- package/build/types-0f117a9f.js +8084 -0
- package/build/types-1fedb3d1.js +3446 -0
- package/build/types-52a4e888.js +24 -0
- package/build/types.js +56 -1
- package/build/unifyEnv.js +46 -1
- package/build/useCategory-cfc702f5.js +299 -0
- package/build/useHealthToolCache-43a7014d.js +19 -0
- package/build/useIsInit-89535012.js +13 -0
- package/build/useOutsideClick-c6813964.js +49 -0
- package/build/usePlacesAutocomplete-297de092.js +84 -0
- package/build/useScrollbarSize-0fa31aa7.js +64 -0
- package/build/useTranslations-e1853417.js +32 -0
- package/build/useUniqueId-11369116.js +44 -0
- package/build/utils-52113753.js +384 -0
- package/build/utils-64bd0c42.js +143 -0
- package/build/utils-661411f6.js +1171 -0
- package/build/utils-e1513cbc.js +25 -0
- package/build/vaccination.js +891 -40
- package/package.json +4 -5
- package/build/BMI_BOYS.percentile.monthly-c56b0165.js +0 -1
- package/build/BMI_BOYS.percentile.weekly-64287e04.js +0 -1
- package/build/BMI_BOYS.percentile.yearly-8db65d54.js +0 -1
- package/build/BMI_BOYS.zscore.monthly-f12389cd.js +0 -1
- package/build/BMI_BOYS.zscore.weekly-fff37a57.js +0 -1
- package/build/BMI_BOYS.zscore.yearly-a19b57eb.js +0 -1
- package/build/BMI_GIRLS.percentile.monthly-a4b36d7d.js +0 -1
- package/build/BMI_GIRLS.percentile.weekly-b6089202.js +0 -1
- package/build/BMI_GIRLS.percentile.yearly-0d340818.js +0 -1
- package/build/BMI_GIRLS.zscore.monthly-fd5b57c0.js +0 -1
- package/build/BMI_GIRLS.zscore.weekly-d4577f50.js +0 -1
- package/build/BMI_GIRLS.zscore.yearly-e40b8a7d.js +0 -1
- package/build/ChevronDown-602ce39e.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.monthly-2e4c5776.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.weekly-fc5728a5.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.yearly-6bfab277.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.monthly-6af7ce44.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.weekly-9adb819b.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.yearly-9a6cdbcf.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.monthly-e7bfe9c6.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.weekly-9f17e019.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.yearly-8a59f541.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.monthly-b7ddb16c.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.weekly-72701c55.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.yearly-dd94bded.js +0 -1
- package/build/HEIGHT_BOYS.percentile.monthly-b890068c.js +0 -1
- package/build/HEIGHT_BOYS.percentile.weekly-a1aa5130.js +0 -1
- package/build/HEIGHT_BOYS.percentile.yearly-5727d920.js +0 -1
- package/build/HEIGHT_BOYS.zscore.monthly-13b70aa6.js +0 -1
- package/build/HEIGHT_BOYS.zscore.weekly-3e1d7f23.js +0 -1
- package/build/HEIGHT_BOYS.zscore.yearly-a956102d.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.monthly-da5ec01b.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.weekly-e6205d32.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.yearly-caefa502.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.monthly-102ba473.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.weekly-db4f710b.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.yearly-36465920.js +0 -1
- package/build/Subot-4751194d.js +0 -1
- package/build/Visible-9497c463.js +0 -1
- package/build/WEIGHT_BOYS.percentile.monthly-554d0361.js +0 -1
- package/build/WEIGHT_BOYS.percentile.weekly-8e5334b8.js +0 -1
- package/build/WEIGHT_BOYS.percentile.yearly-536e1ccb.js +0 -1
- package/build/WEIGHT_BOYS.zscore.monthly-01eccee1.js +0 -1
- package/build/WEIGHT_BOYS.zscore.weekly-ee8f2c6b.js +0 -1
- package/build/WEIGHT_BOYS.zscore.yearly-0aea2749.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.monthly-7abf9d06.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.weekly-f9b6e963.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.yearly-254865a5.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.monthly-909f7417.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.weekly-e62cd084.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.yearly-8d6e5405.js +0 -1
- package/build/constants-00e06f68.js +0 -108
- package/build/constants-51251306.js +0 -1
- package/build/cookieHelper-7d519a72.js +0 -1
- package/build/core-ba3af3e2.js +0 -1
- package/build/dataTransform-1805eae3.js +0 -1
- package/build/esm/BMI_BOYS.percentile.monthly-6272f835.js +0 -1
- package/build/esm/BMI_BOYS.percentile.weekly-80d18f47.js +0 -1
- package/build/esm/BMI_BOYS.percentile.yearly-a7e5b5f6.js +0 -1
- package/build/esm/BMI_BOYS.zscore.monthly-d3658f97.js +0 -1
- package/build/esm/BMI_BOYS.zscore.weekly-6e6708dc.js +0 -1
- package/build/esm/BMI_BOYS.zscore.yearly-b8400c9d.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.monthly-98586b46.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.weekly-7c1511b0.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.yearly-ea667f90.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.monthly-3a4fd1a6.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.weekly-cc1de097.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.yearly-6dd1a364.js +0 -1
- package/build/esm/ChevronDown-4e59cac6.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-bd0965ae.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-db1053f7.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-cd38b622.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-d7f88a95.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-76f7db79.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-3ce70f8e.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-b2e678ae.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-8e2664bb.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-f5c075a9.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-6f87849e.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-48da0aaa.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-4eea437b.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.monthly-d1a8cc8e.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.weekly-2b6cfe6c.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.yearly-9e78afc3.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.monthly-5292d78a.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.weekly-fbdee645.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.yearly-c11a8f1b.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.monthly-8e11e2dc.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.weekly-dc3965cb.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.yearly-490f7b4e.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.monthly-e3531c32.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.weekly-36a16a66.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.yearly-61736bba.js +0 -1
- package/build/esm/Subot-4642c5bf.js +0 -1
- package/build/esm/Visible-ff7d225c.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.monthly-0cfe7ecd.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.weekly-89802113.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.yearly-0eb40972.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.monthly-7f8c5a15.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.weekly-3dcfa8ce.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.yearly-98ce1ea0.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.monthly-df98e335.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.weekly-63fff42a.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.yearly-8db8cdd0.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.monthly-15c83c6d.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.weekly-747a55ec.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.yearly-197dc52d.js +0 -1
- package/build/esm/constants-6ecfa77c.js +0 -1
- package/build/esm/constants-f7c80032.js +0 -108
- package/build/esm/cookieHelper-4f089e3c.js +0 -1
- package/build/esm/core-80112758.js +0 -1
- package/build/esm/dataTransform-0fa341bb.js +0 -1
- package/build/esm/getDynamicHealthTool-a4c9d6dd.js +0 -1
- package/build/esm/getSocialList-4e48deba.js +0 -1
- package/build/esm/index-13dc1f44.js +0 -1
- package/build/esm/index-13e62563.js +0 -137
- package/build/esm/index-1e7ad007.js +0 -1
- package/build/esm/index-24557f2b.js +0 -1
- package/build/esm/index-252cb964.js +0 -1
- package/build/esm/index-2e99f941.js +0 -1
- package/build/esm/index-3452fed2.js +0 -1
- package/build/esm/index-3aff939b.js +0 -1
- package/build/esm/index-459e0362.js +0 -1
- package/build/esm/index-45dcd965.js +0 -1
- package/build/esm/index-486b71cd.js +0 -1
- package/build/esm/index-5408f5a4.js +0 -113
- package/build/esm/index-5e1af23a.js +0 -1
- package/build/esm/index-79ef3a30.js +0 -1
- package/build/esm/index-7c77273a.js +0 -1
- package/build/esm/index-823fd7c0.js +0 -117
- package/build/esm/index-8c77d7e0.js +0 -1
- package/build/esm/index-93e5b4f3.js +0 -1
- package/build/esm/index-9c7b9011.js +0 -2748
- package/build/esm/index-9e5956c2.js +0 -1
- package/build/esm/index-a83aad1c.js +0 -375
- package/build/esm/index-b7cc3ca2.js +0 -1
- package/build/esm/index-bf11f9e9.js +0 -50
- package/build/esm/index-ce3d38fd.js +0 -1
- package/build/esm/index-d27a0e25.js +0 -1
- package/build/esm/index-e21276e3.js +0 -1
- package/build/esm/index-f9514788.js +0 -177
- package/build/esm/index-fd04ccb7.js +0 -1430
- package/build/esm/index.styles-94af560f.js +0 -817
- package/build/esm/isProduction-00695d80.js +0 -1
- package/build/esm/localizeNumberFormat-8355a44f.js +0 -1
- package/build/esm/normalizeLink-1c194268.js +0 -1
- package/build/esm/number-1347eb7b.js +0 -1
- package/build/esm/paths-749b4b53.js +0 -1
- package/build/esm/routing-2b284b30.js +0 -1
- package/build/esm/theme-3db3c9a8.js +0 -1
- package/build/esm/translationsContext-6d2efd65.js +0 -1
- package/build/esm/tslib.es6-266309d1.js +0 -1
- package/build/esm/types-6d397125.js +0 -3004
- package/build/esm/types-850814a7.js +0 -785
- package/build/esm/types-d3da37d2.js +0 -1
- package/build/esm/useCategory-f5f74749.js +0 -1
- package/build/esm/useHealthToolCache-f1488032.js +0 -1
- package/build/esm/useIsInit-9661c5f5.js +0 -1
- package/build/esm/useOutsideClick-0704b383.js +0 -1
- package/build/esm/usePlacesAutocomplete-0733ec49.js +0 -1
- package/build/esm/useScrollbarSize-90b179a5.js +0 -1
- package/build/esm/useTranslations-df1b3bb8.js +0 -1
- package/build/esm/useUniqueId-03fbaecd.js +0 -1
- package/build/esm/utils-3d2e3f0f.js +0 -141
- package/build/esm/utils-5b4e60da.js +0 -1
- package/build/esm/utils-970ce0c0.js +0 -8
- package/build/esm/utils-b87ec473.js +0 -1
- package/build/getDynamicHealthTool-31f44ca1.js +0 -1
- package/build/getSocialList-29c0a6e8.js +0 -1
- package/build/index-1714c81c.js +0 -2748
- package/build/index-238813a4.js +0 -375
- package/build/index-2438163d.js +0 -1430
- package/build/index-29d302f4.js +0 -137
- package/build/index-3184ae4e.js +0 -1
- package/build/index-34b6bd24.js +0 -1
- package/build/index-35192783.js +0 -1
- package/build/index-41d684a8.js +0 -50
- package/build/index-4a8c8ce6.js +0 -1
- package/build/index-58e0d49f.js +0 -1
- package/build/index-64d2f812.js +0 -1
- package/build/index-85c621a2.js +0 -113
- package/build/index-90f4bc02.js +0 -1
- package/build/index-9a845847.js +0 -117
- package/build/index-9ed509d1.js +0 -1
- package/build/index-aa495d24.js +0 -1
- package/build/index-ad5cf64d.js +0 -1
- package/build/index-b21a1d96.js +0 -1
- package/build/index-b320255d.js +0 -1
- package/build/index-b9af15da.js +0 -1
- package/build/index-bd4b31bf.js +0 -1
- package/build/index-bf81cb71.js +0 -1
- package/build/index-c3cbb8f3.js +0 -1
- package/build/index-d25afe2f.js +0 -1
- package/build/index-e7c1ff53.js +0 -177
- package/build/index-ed8656f9.js +0 -1
- package/build/index-f6217f73.js +0 -1
- package/build/index-f7088d57.js +0 -1
- package/build/index.styles-2ecb9c85.js +0 -817
- package/build/isProduction-28d96804.js +0 -1
- package/build/localizeNumberFormat-22b2d7aa.js +0 -1
- package/build/normalizeLink-594ccff1.js +0 -1
- package/build/number-cf06dcc0.js +0 -1
- package/build/paths-ed72ecb8.js +0 -1
- package/build/routing-f2edd0d0.js +0 -1
- package/build/theme-f2b8aad7.js +0 -1
- package/build/translationsContext-4c4c33c4.js +0 -1
- package/build/tslib.es6-ceb091fd.js +0 -1
- package/build/types-49f0543a.js +0 -785
- package/build/types-5b303b71.js +0 -1
- package/build/types-bfd12e24.js +0 -3004
- package/build/useCategory-94d60dab.js +0 -1
- package/build/useHealthToolCache-7307d240.js +0 -1
- package/build/useIsInit-c3cf1925.js +0 -1
- package/build/useOutsideClick-15fef824.js +0 -1
- package/build/usePlacesAutocomplete-6ab0181b.js +0 -1
- package/build/useScrollbarSize-ab332673.js +0 -1
- package/build/useTranslations-233c68bc.js +0 -1
- package/build/useUniqueId-46834e18.js +0 -1
- package/build/utils-13ea4f2f.js +0 -8
- package/build/utils-45e691a3.js +0 -1
- package/build/utils-bee8be92.js +0 -141
- package/build/utils-d5766c73.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-ceb091fd.js"),a=require("react"),n=require("./cookieHelper-7d519a72.js"),t=require("./useUniqueId-46834e18.js"),i=require("./Subot-4751194d.js"),s=require("./useTranslations-233c68bc.js");function l(e){const a=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",a).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const r={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},b={[i.LOCALE.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[i.LOCALE.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",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",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",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Thailand]:{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",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",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};exports.MAPPED_CATEGORY_SLUGS=b,exports.PREGNANCY_SLUG=r,exports.useCategory=e=>{const{locale:n}=s.useTranslations();return{isPregnancy:a.useMemo((()=>decodeURI(e.replace(/\//gi,"")).includes(r[n])),[]),isParenting:a.useMemo((()=>{var a;return decodeURI(e.replace(/\//gi,"")).includes(null===(a=b[n])||void 0===a?void 0:a.parenting)}),[]),type:a.useMemo((()=>function(e,a){const n=e.split("/");for(const e in a){const t=a[e];if(n.includes(t))return e}return null}(e,b[n])),[e,n])}},exports.useFbDataLayer=t=>{const i=a.useRef("");a.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,a,s,r,b;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(a=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===a||a.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(s=i.current)||void 0===s?void 0:s.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==t?void 0:t.id){const[e,a,i,s,h,u]=yield Promise.all([t.email?l(t.email):null,t.phone?l(t.phone):null,t.birthday?l(t.birthday.split("-").join("")):null,t.gender?"m":"f",t.city_name?l(t.city_name).then((e=>e.replace(/\s/g,""))):null,t.name?l(t.name):null]);n.getCookie("_fbc"),n.getCookie("_fbp");const o={user_id:t.id};u&&(o.fn=u),e&&(o.em=e),a&&(o.ph=a),i&&(o.db=i),h&&(o.ct=h),null===(b=null===(r=window.localStorage)||void 0===r?void 0:r.setItem)||void 0===b||b.call(r,"fbDataLayer_userInfo",JSON.stringify(o))}})),()=>{})),[t])},exports.usePrevious=e=>{const n=a.useRef(),i=a.useRef(e);return t.useInitialMount()||i.current===e||(n.current=i.current,i.current=e),n.current},exports.useRafState=e=>{const[n,t]=a.useState(e),i=a.useRef(0),s=a.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{t(e)}))}),[]);return a.useEffect((()=>()=>cancelAnimationFrame(i.current))),[n,s]};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-ceb091fd.js"),t=require("react"),a=require("./getDynamicHealthTool-31f44ca1.js");exports.useHealthToolsCache=o=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield a.getDynamicHealthToolWithCache(o);l(e)}))}),[a.getDynamicHealthToolWithCache,o]);const c=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:c}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react");exports.useIsInit=()=>{const[t,r]=e.useState(!0);return e.useEffect((()=>{r(!1)}),[]),t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react");const t=new Map,s=e=>{for(const[s,n]of t)s.current&&!s.current.contains(e.target)&&n(e)};exports.initSharedOutSideClickListener=()=>{document.addEventListener("mousedown",s,{passive:!0})},exports.useOutsideClick=(t,s)=>{const n=e.useCallback((e=>{var n;(null===(n=t.current)||void 0===n?void 0:n.contains(e.target))||s(e)}),[]);e.useEffect((()=>(document.addEventListener("mousedown",n,{passive:!0}),()=>{document.removeEventListener("mousedown",n)})),[n])},exports.useSharedOutsideClick=(s,n)=>{e.useEffect((()=>(t.set(s,n),()=>{t.delete(s)})),[s,n])};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-ceb091fd.js"),t=require("react");const i="undefined"==typeof window,o={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"};exports.GOOGLE_API_KEY="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",exports.GOOGLE_API_LANGUAGE=o,exports.usePlacesAutocomplete=(n="",r="",s="",c=500)=>{const[a,d]=t.useState([]),[u,l]=t.useState(!1);return t.useEffect((()=>{let t;return n?t=window.setTimeout((()=>e.__awaiter(void 0,void 0,void 0,(function*(){var t;if(n)try{l(!0);const c=yield((t="",n="",r="vi")=>e.__awaiter(void 0,void 0,void 0,(function*(){return new Promise(((e,s)=>{if(!t)return s("Need valid text input");if(i)return s("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:t},n?{componentRestrictions:{country:n}}:{}),{language:o[r]}),e)}catch(e){s(e)}}))})))(n,r,s);d(!(t=c)||t.length<1?[]:t.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{l(!1)}else d([])}))),c):a.length&&d([]),()=>{window.clearTimeout(t)}}),[n,c,r]),{isLoading:u,predictions:a}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(require("lodash/debounce"));const n="measure-scrollbar-size";exports.MEASURE_ELEMENT_CLASS=n,exports.useScrollbarSize=(t=!0)=>{const[i,s]=e.useState({height:0,width:0}),u=e.useRef(null);return e.useEffect((()=>{if(!t||"undefined"==typeof window)return;const e=()=>(u.current||(u.current=document.createElement("div"),u.current.classList.add(n),u.current.style.width="99px",u.current.style.height="99px",u.current.style.overflow="scroll",u.current.style.position="absolute",u.current.style.top="-9999px",u.current.setAttribute("aria-hidden","true"),u.current.setAttribute("role","presentation")),u.current),i=()=>{const{offsetHeight:t,clientHeight:r,offsetWidth:n,clientWidth:i}=e(),u=t-r,o=n-i;s((e=>{const{height:t,width:r}=e;return t!==u||r!==o?{height:u,width:o}:e}))},o=r.default(i,100);window.addEventListener("resize",o,{passive:!0}),document.body.appendChild(e()),i();const c=e();return()=>{o.cancel(),window.removeEventListener("resize",o),document.body.removeChild(c)}}),[t]),i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("./translationsContext-4c4c33c4.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>a?a[e]?t?n.default(a[e]||e,t):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),t?n.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react");const r=()=>{const r=e.useRef(!0);return!!r.current&&(r.current=!1,!0)};let t=0;exports.useInitialMount=r,exports.useUniqueId=()=>{const u=e.useRef("");return r()&&(t+=1,u.current=`hhg-gen-id${t}`),u.current};
|
package/build/utils-13ea4f2f.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-ceb091fd.js"),t=require("react"),r=require("./theme-f2b8aad7.js"),o=require("./cookieHelper-7d519a72.js"),a=require("slugify");require("./index-90f4bc02.js");var i=require("string-format"),l=require("./isProduction-28d96804.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=s(t),c=s(a),u=s(i);const _=t=>{var{size:r,color:o,useCurrentColor:a,isActive:i,activeColor:l}=t,s=e.__rest(t,["size","color","useCurrentColor","isActive","activeColor"]);const c=a?"currentColor":i?l:o,u=Object.assign({width:r,height:r},s);return n.default.createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 18 18",fill:"none"},u),n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00183 11.6827C9.85164 11.6827 10.5734 11.3852 11.1672 10.7903C11.7609 10.1955 12.0578 9.4731 12.0578 8.62328C12.0578 7.77346 11.7604 7.05168 11.1655 6.45793C10.5706 5.86418 9.84824 5.56731 8.99841 5.56731C8.1486 5.56731 7.42682 5.86474 6.83307 6.45962C6.23932 7.05451 5.94245 7.77686 5.94245 8.62669C5.94245 9.4765 6.23988 10.1983 6.83476 10.792C7.42965 11.3858 8.152 11.6827 9.00183 11.6827ZM9.00012 10.65C8.43762 10.65 7.9595 10.4531 7.56575 10.0594C7.172 9.66561 6.97512 9.18748 6.97512 8.62498C6.97512 8.06248 7.172 7.58436 7.56575 7.19061C7.9595 6.79686 8.43762 6.59998 9.00012 6.59998C9.56262 6.59998 10.0407 6.79686 10.4345 7.19061C10.8282 7.58436 11.0251 8.06248 11.0251 8.62498C11.0251 9.18748 10.8282 9.66561 10.4345 10.0594C10.0407 10.4531 9.56262 10.65 9.00012 10.65ZM9.00012 13.875C7.42128 13.875 5.9773 13.4538 4.66818 12.6115C3.35904 11.7692 2.31409 10.661 1.53333 9.28699C1.47083 9.1793 1.42515 9.07077 1.3963 8.96139C1.36745 8.85201 1.35303 8.73974 1.35303 8.62461C1.35303 8.50947 1.36745 8.39734 1.3963 8.28821C1.42515 8.17908 1.47083 8.07066 1.53333 7.96298C2.31409 6.58894 3.35904 5.48077 4.66818 4.63847C5.9773 3.79616 7.42128 3.375 9.00012 3.375C10.579 3.375 12.0229 3.79616 13.3321 4.63847C14.6412 5.48077 15.6862 6.58894 16.4669 7.96298C16.5294 8.07066 16.5751 8.17919 16.6039 8.28857C16.6328 8.39796 16.6472 8.51022 16.6472 8.62536C16.6472 8.74049 16.6328 8.85263 16.6039 8.96175C16.5751 9.07089 16.5294 9.1793 16.4669 9.28699C15.6862 10.661 14.6412 11.7692 13.3321 12.6115C12.0229 13.4538 10.579 13.875 9.00012 13.875ZM9.00012 12.75C10.4126 12.75 11.7095 12.3781 12.8907 11.6344C14.072 10.8906 14.9751 9.88748 15.6001 8.62498C14.9751 7.36248 14.072 6.35936 12.8907 5.61561C11.7095 4.87186 10.4126 4.49998 9.00012 4.49998C7.58762 4.49998 6.29075 4.87186 5.1095 5.61561C3.92825 6.35936 3.02512 7.36248 2.40012 8.62498C3.02512 9.88748 3.92825 10.8906 5.1095 11.6344C6.29075 12.3781 7.58762 12.75 9.00012 12.75Z",fill:c}))};_.defaultProps={size:24,color:r.theme.colors.gray600,activeColor:r.theme.colors.primaryBase};const d=t=>{var{size:r,color:o,activeColor:a,isActive:i,isMarryBaby:l}=t,s=e.__rest(t,["size","color","activeColor","isActive","isMarryBaby"]);return l?n.default.createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 24 24",fill:"none"},s),n.default.createElement("path",{d:"M18 8L19 8C20.1046 8 21 8.89543 21 10L21 15.155C21 17.3585 19.4253 19.2551 17.2391 19.6848C15.1006 20.1051 8.89937 20.1051 6.76089 19.6848C4.57467 19.2551 3 17.3585 3 15.155L3 10C3 8.89543 3.89543 8 5 8L6 8",stroke:i?a:o,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M12 13L12 3M12 3L9.5 5.5M12 3L14.5 5.5",stroke:i?a:o,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})):n.default.createElement("svg",Object.assign({width:r,height:r,fill:"none",viewBox:"0 0 24 24"},s),n.default.createElement("path",{fill:i?a:o,d:"M19 3c-1.652 0-3 1.348-3 3 0 .46.113.895.3 1.285L12.587 11h-4.77A2.999 2.999 0 005 9c-1.652 0-3 1.348-3 3s1.348 3 3 3c1.3 0 2.402-.84 2.816-2h4.77l3.715 3.715c-.188.39-.301.824-.301 1.285 0 1.652 1.348 3 3 3s3-1.348 3-3-1.348-3-3-3c-.46 0-.895.113-1.285.3l-3.3-3.3 3.3-3.3c.39.187.824.3 1.285.3 1.652 0 3-1.348 3-3s-1.348-3-3-3z"}))};d.defaultProps={size:24,color:r.theme.colors.gray600,activeColor:r.theme.colors.primaryBase,isActive:!1};const p=t=>{var{size:r=24,color:o,isMarryBaby:a}=t,i=e.__rest(t,["size","color","isMarryBaby"]);return n.default.createElement("svg",Object.assign({style:{display:"block",shapeRendering:"auto"},width:r,height:r,viewBox:"30 30 40 40",preserveAspectRatio:"xMidYMid"},i),n.default.createElement("circle",{cx:"50",cy:"50",fill:"none",stroke:o||(a?"#e85388":"#91caff"),strokeWidth:"7",r:"16",strokeDasharray:"75.39822368615503 27.132741228718345"},n.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.2s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))};p.defaultProps={size:24};const E=t=>{var{size:r,color:o,useCurrentColor:a,isActive:i,activeColor:l}=t,s=e.__rest(t,["size","color","useCurrentColor","isActive","activeColor"]);const c=a?"currentColor":i?l:o,u=Object.assign({width:r,height:r},s);return n.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none"},u),n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00132 0.125C3.65869 0.125 0.12632 3.65737 0.12632 8C0.12632 9.52948 0.558762 10.9952 1.38268 12.2698L0.185496 14.9054C0.0762474 15.1467 0.117216 15.4335 0.290192 15.6337C0.422201 15.7885 0.613386 15.875 0.813675 15.875C0.872851 15.875 0.93658 15.8659 0.995756 15.8522L4.29142 14.9464C5.42943 15.5564 6.70399 15.875 8.00132 15.875C12.344 15.875 15.8763 12.3426 15.8763 8C15.8763 3.65737 12.344 0.125 8.00132 0.125ZM8.00132 14.5003C6.84966 14.5003 5.72076 14.1953 4.72842 13.6172C4.62372 13.5535 4.50081 13.5216 4.38246 13.5216C4.32329 13.5216 4.25956 13.5307 4.20038 13.5444L2.04727 14.1361L2.79836 12.4837C2.8985 12.2607 2.87574 11.9967 2.73008 11.7964C1.92892 10.6857 1.50558 9.37016 1.50558 8C1.50558 4.41756 4.41888 1.49971 8.00587 1.49971C11.5883 1.49971 14.5062 4.41301 14.5062 8C14.5016 11.5824 11.5838 14.5003 8.00132 14.5003Z",fill:c}),n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0279 9.17924C10.7002 8.9835 10.2677 8.76045 9.88083 8.91978C9.58494 9.04268 9.39376 9.50699 9.19802 9.74824C9.09788 9.87115 8.97952 9.88936 8.82931 9.83018C7.70951 9.38408 6.85373 8.63755 6.23465 7.60879C6.12996 7.44947 6.14817 7.32202 6.27562 7.17635C6.46226 6.95785 6.69441 6.70749 6.74448 6.41161C6.79455 6.11573 6.65799 5.76978 6.53509 5.50576C6.38032 5.16891 6.20279 4.69095 5.86594 4.49976C5.5564 4.32678 5.14672 4.42238 4.86905 4.64543C4.39108 5.03235 4.16348 5.64232 4.16804 6.24319C4.16804 6.41616 4.1908 6.58459 4.23176 6.75301C4.32736 7.14904 4.51399 7.5223 4.71883 7.87736C4.8736 8.14138 5.04658 8.40084 5.22866 8.65121C5.82497 9.46602 6.5715 10.1716 7.43184 10.6996C7.86428 10.9636 8.32858 11.1958 8.80655 11.3551C9.34369 11.5326 9.8262 11.7193 10.4089 11.61C11.0188 11.4962 11.6197 11.1184 11.861 10.5312C11.9338 10.3582 11.9702 10.1625 11.9292 9.9804C11.8473 9.58892 11.3329 9.36132 11.0279 9.17924Z",fill:c}))};E.defaultProps={size:24,color:r.theme.colors.gray600,activeColor:r.theme.colors.primaryBase};
|
|
2
|
-
/*!
|
|
3
|
-
* cookie
|
|
4
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
5
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
6
|
-
* MIT Licensed
|
|
7
|
-
*/
|
|
8
|
-
var T=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},o=(t||{}).decode||A,a=0;for(;a<e.length;){var i=e.indexOf("=",a);if(-1===i)break;var l=e.indexOf(";",a);if(-1===l)l=e.length;else if(l<i){a=e.lastIndexOf(";",i-1)+1;continue}var s=e.slice(a,i).trim();if(void 0===r[s]){var n=e.slice(i+1,l).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1)),r[s]=g(n,o)}a=l+1}return r},m=function(e,t,r){var o=r||{},a=o.encode||O;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!b.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!b.test(i))throw new TypeError("argument val is invalid");var l=e+"="+i;if(null!=o.maxAge){var s=o.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(s)}if(o.domain){if(!b.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!b.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){var n=o.expires;if(!function(e){return"[object Date]"===h.call(e)||e instanceof Date}(n)||isNaN(n.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+n.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},h=Object.prototype.toString,b=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function A(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function O(e){return encodeURIComponent(e)}function g(e,t){try{return t(e)}catch(t){return e}}var v={parse:T,serialize:m};const L={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",USER:{DETAIL:"profile/user/detail?website_url={website_url}&user_id={id}",COUNT_TABS:"profile/user/counting?website_url={website_url}&user_id={id}&total_post={post}&total_comment={comment}&total_community={community}&total_reply={reply}&total_question={question}",LIST_POST:"profile/user/posts?website_url={website_url}&user_id={id}&is_anonymous={isAnonymous}&paging=none",LIST_QUESTION_NEED_REPLY:"questions/no-reply?website_url={website_url}",LIST_QUESTION:"question/{id}?website_url={website_url}&is_reply={isReply}&is_question={isQuestion}&is_ignore={isIgnore}&group_by={groupBy}",SKIP_QUESTION:"questions/ignore?website_url={website_url}&question_id={id}",LIST_ANSWERS:"replied/{id}?website_url={website_url}&paging=1&items_per_page={pageSize}"},HEALTH_TOOL:{CREATE:"health-profile/{type}/create?website_url={website_url}",GET_STATUS:"health-profile/get-status-for-user?website_url={website_url}"}},I={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},C=t.createContext({data:I,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null});exports.GlobalData=I;const S="DD/MM/YYYY",f="/images/avatar.jpg",w="/images/default-image.jpg",R={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR",BGC:"BGC"},y={"id-ID":{"kalkulator-bmi":R.BMI,"kebutuhan-kalori":R.BMR,"kalkulator-hari-perkiraan-lahir":R.DUE_DATE,"kalkulator-masa-subur-2":R.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":R.PWG,"kalkulator-detak-jantung-saat-olahraga":R.THR},"ms-MY":{"kalkulator-bmi":R.BMI,"kalkulator-bmr":R.BMR,"kalkulator-tarikh-bersalin":R.DUE_DATE,"kalkulator-kesuburan":R.OVULATION,"kalkulator-tambah-berat-badan-hamil":R.PWG,"target-heart-rate-calculator":R.THR},"vi-VN":{"cach-tinh-chi-so-bmi":R.BMI,"tinh-chi-so-bmr":R.BMR,"cong-cu-tinh-ngay-du-sinh":R.DUE_DATE,"tinh-ngay-rung-trung":R.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":R.PWG,"cong-cu-do-nhip-tim":R.THR},"zh-TW":{"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"due-date-calculator":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnancy-weight-gain-calculator":R.PWG,"target-heart-rate-calculator":R.THR},"en-PH":{"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"due-date-calculator":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnancy-weight-gain-calculator":R.PWG,"target-heart-rate-calculator":R.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":R.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":R.BMR,"เครื่องมือคำนวณกำหนดคลอด":R.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":R.OVULATION,"เครื่องคำนวณน้ำหนักตัว":R.PWG,"เครื่องวัดอัตราการเต้น":R.THR},"hi-IN":{"bmi-calculator-en":R.BMI,"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"delivery-date-calculator":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnancy-weight-gain-calculator":R.PWG,"target-heart-rate-calculator":R.THR},"km-KH":{"គណនា-bmi":R.BMI,"គណនា-bmr":R.BMR,"គណនាថ្ងៃសម្រាលកូន":R.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":R.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":R.PWG,"គណនារកចង្វាក់បេះដូងល្អ":R.THR},"my-MM":{"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"due-date-calendar":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnaancy-weight-calculator":R.PWG,"target-heartrate":R.THR,"pregnancy-weight-calculator":R.PWG,"target-heart-rate":R.THR}},D="hhg_user_token",P="together_admin_token",G={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},M="hhg-id",x={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},N={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}};var k=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DUE_DATE_FORMAT:S,DEFAULT_AVATAR_IMG:f,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:w,BMI_LEVELS:["underweight","healthy","overweight","obese_level_1","obese_level_2"],BMR_LEVELS:["low","normal","high"],CORAL_TOKEN_COOKE:"coral_together_user_token",HEALTH_TOOL_TYPE:R,LOCALE_HEALTH_TOOLS:y,BEARER_TOKEN_COOKIE:D,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:P,Z_INDEX:G,BmrActiveLevels:[{value:"sedentary",icon:"bmr-sedentary",name:"bmr.activeLevel.sedentary",description:"bmr.activeLevel.sedentary.description"},{value:"lightly-active",icon:"bmr-light",name:"bmr.activeLevel.lightlyActive",description:"bmr.activeLevel.lightlyActive.description"},{value:"moderately-active",icon:"bmr-moderately",name:"bmr.activeLevel.moderatelyActive",description:"bmr.activeLevel.moderatelyActive.description"},{value:"intensely-active",icon:"bmr-intensively",name:"bmr.activeLevel.intenselyActive",description:"bmr.activeLevel.intenselyActive.description"},{value:"extremely-active",icon:"bmr-extremely",name:"bmr.activeLevel.extremelyActive",description:"bmr.activeLevel.extremelyActive.description"}],LEAD_CAMPAIGN_CODE:"lmoct7xfr5sv4fv",LEAD_TOKEN_COOKIE:M,GA_TOKEN_COOKIE:"_ga",GOOGLE_CALENDAR_AUTH_CLIENT_ID:"1038242799566-esoq4ij201ve5qfp266nbca44scpo3c6.apps.googleusercontent.com",FIND_CARE_IFRAME_URL:"https://www.appsheet.com/start/4ba34ebe-3cb6-4c16-8dd4-d074025a5bb6#appName=DependentDropdowns-2711103&group=%5B%5D&page=card&sort=%5B%5D&table=Menu&view=Menu",REPORT_REASON_MAP:x,MB_SOCIAL_LINKS:{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/marry.baby.vn",INSTAGRAM:"https://www.instagram.com/marrybaby.vn/",TWITTER:"",YOUTUBE:"https://www.youtube.com/channel/UCeZybTkY1VzJ3N7LvPGdKbg",ZALO:"http://zalo.me/806483414530291942"},INTERNAL_ROLES:["admin","moderator","local-admin"],EXTERNAL_ROLES:["ambassador","expert","sponsor","guide","influencer"],INTERNAL_PROFILE_ROLES:["moderator","local-admin"],EXTERNAL_PROFILE_ROLES:["expert","ambassador","sponsor"],RoleDataMap:{moderator:{text:"Moderator",fid:"cardAuthor.moderator",background:"#fe921d"},admin:{text:"Admin",fid:"cardAuthor.admin",background:"#2b62cd"},"local-admin":{text:"Local admin",fid:"cardAuthor.localAdmin",background:"#2b62cd"},expert:{text:"Expert",fid:"cardAuthor.expert",background:"#ff6f4d"},sponsor:{text:"Sponsor",fid:"cardAuthor.sponsor",background:"#00c7e6"},ambassador:{text:"Ambassador",fid:"cardAuthor.ambassador",background:"#00CB8A"}},MAX_IMAGE_UPLOADS:20,LOCALISED_SLUGS:N});const U={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},B={"vi-VN":"marrybaby.vn"},H=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",j=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;return`https://${t?B[e]:U[e]}`},F=e=>{const t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},K=(e,t,r,o)=>{let a="";r&&(a=Object.keys(r).map((e=>e+"="+r[e])).join("&"));const{togetherBaseApiUrl:i=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};let l=u.default(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:j(String(t._locale))}:{}),t));l+=`${l.includes("?")?"&":"?"}${a}`;return(o||i)+"api/v1/"+F(l)},V=e=>((null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e),Y=(t,r,o,a=!1)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,i,l,s;try{const e=yield fetch(a?t:(s=t,encodeURI(s).replace(/%5B/g,"[").replace(/%5D/g,"]")),Object.assign(Object.assign({method:r},V(o)),{headers:Object.assign({},null==o?void 0:o.headers)})).then((e=>e.json()));if(e)return e}catch(r){return console.log(r),console.log({url:t,status:null===(e=null==r?void 0:r.response)||void 0===e?void 0:e.status,statusText:null===(i=null==r?void 0:r.response)||void 0===i?void 0:i.statusText}),(null===(l=null==r?void 0:r.response)||void 0===l?void 0:l.data)||null}return null})),W=(t,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=v.parse(i||""),l=e[D]||o.getCookie(D);if(l&&l.length){const e=yield fetch(t,Object.assign(Object.assign({method:r},V(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null}));function z(e,t,r){const o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+r+"$2"):e+a+t+"="+r}const $=(e,t,r,o)=>r&&t?`${r}-${t}`:`${c.default(e||"",{lower:!0,locale:o||H})}-${t}`;exports.ADMIN_PATHS={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},exports.BEARER_TOKEN_COOKIE=D,exports.CARE_PATHS={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},exports.DEFAULT_AVATAR_IMG=f,exports.DEFAULT_IMG=w,exports.DISCOVER_PATHS={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},exports.DUE_DATE_FORMAT=S,exports.DefaultComponentGlobalContextData=I,exports.Eye=_,exports.HEALTH_TOOL_TYPE=R,exports.LEAD_TOKEN_COOKIE=M,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=L,exports.REPORT_REASON_MAP=x,exports.Share=d,exports.Spinner=p,exports.TogetherComponentGlobalContext=C,exports.TogetherComponentGlobalContextProvider=({locale:e="vi-VN",children:r,userInfo:o,router:a,env:i={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:l=(e=>e),pushNotifications:s=(()=>!1),formatMessage:c})=>{const[u,_]=t.useState();return exports.GlobalData={userInfo:o,locale:e,togetherUserId:u,router:a,env:i},t.useEffect((()=>{(null==o?void 0:o.id)&&W(K(L.PROFILE,{_locale:e}),"GET").then((e=>{var t;_(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)}))}),[null==o?void 0:o.id]),n.default.createElement(C.Provider,{value:{data:{userInfo:o,locale:e,togetherUserId:u,router:a,env:i},action:{pushNotifications:s,sanitizeFunction:l},formatMessage:c}},r)},exports.WhatsApp=E,exports.Z_INDEX=G,exports.callApi=Y,exports.callApiWithAdminAuth=(t,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=v.parse(i||""),l=e[P]||o.getCookie(P);if(l&&l.length){const e=yield fetch(t,Object.assign(Object.assign({method:r},V(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null})),exports.callApiWithAuth=W,exports.callApiWithOptionalAuth=(t,r="GET",a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,l,s,n,c,u;try{const n="string"==typeof t?t:t.url,c="string"==typeof t?t:t.backupUrl,u=v.parse(i||""),_=u[D]||o.getCookie(D);if(!_||!_.length)return Y(c||n,r,a);try{const t=yield fetch(n,Object.assign(Object.assign({method:r},V(a)),{headers:Object.assign({Authorization:"Bearer "+_},null==a?void 0:a.headers)})).then((e=>e.json()));if(null===(e=null==t?void 0:t.messages)||void 0===e?void 0:e.find((e=>"Unauthenticated"===(null==e?void 0:e.toLowerCase()))))return Y(c||n,r,a);if(t)return t}catch(e){return console.log({status:null===(l=null==e?void 0:e.response)||void 0===l?void 0:l.status,statusText:null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.statusText}),Y(c||n,r,a)}}catch(e){return console.log({status:null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status,statusText:null===(c=null==e?void 0:e.response)||void 0===c?void 0:c.statusText}),(null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.data)||null}return null})),exports.constants=k,exports.cookie=v,exports.domainLocales=U,exports.domainLocalesMarryBaby=B,exports.getApiPath=K,exports.getCareDoctorUrl=({name:e,id:t,locale:r})=>{var o;return`/care/${null===(o=N[r||"vi-VN"])||void 0===o?void 0:o.DOCTOR}/${$(e,t)}`},exports.getCareHospitalUrl=({name:e,id:t,slug:r,locale:o})=>{var a;return`/care/${null===(a=N[o||"vi-VN"])||void 0===a?void 0:a.HOSPITAL}/${$(e,t,r)}`},exports.getCarePath=(e,t)=>{const{careBaseApiUrl:r=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r||"https://service-health-care.hellohealthgroup.com/")+F(u.default(e,Object.assign({},t)))},exports.getCurrentBaseUrl=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;if("undefined"!=typeof window)return window.location.origin;const r="staging"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return"development"===process.env.NEXT_PUBLIC_DEPLOY_ENV?"http://localhost:3000":`https://${r?t?"fe.":"discover.":t?"www.":""}${U[e]}`},exports.getDiscoverApiPath=(e,t,r)=>{const{discoverBaseApiUrl:o="",discoverBaseProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(!l.isProduction&&r?a:o)+"wp-json/api/"+F(u.default(e,Object.assign({},t)))},exports.getMarryBabyApiPath=(e,t,r)=>{const{marryBabyApiUrl:o="",marryBabyProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r&&!l.isProduction?a:o)+"wp-json/api/"+F(u.default(e,Object.assign({},t)))},exports.getPremiumApiPath=(e,t)=>{const{premiumBaseApiUrl:r=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r||"https://premium-content-stag.hellohealthgroup.com/")+F(u.default(e,Object.assign({},t)))},exports.getSsoApiPath=(e,t)=>{const{publicSSO:r=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r||"https://staging-id.hellobacsi.com/")+"api/"+F(u.default(e,Object.assign({},t)))},exports.getUrlToSignUp=(e,t,r="/community")=>{const o=e||("undefined"!=typeof window?window.location.href:"/");let a="undefined"!=typeof window?window.location.origin:"";a||e&&(e.startsWith("http://")||e.startsWith("https://"))&&(a=e.split("/").slice(0,3).join("/"));return((e,t)=>{const{publicSSO:r}=exports.GlobalData.env,o=e||window.location.href;return t&&Object.keys(t).map((e=>{z(o,e,t[e])})),z(o,"source","communities"),r?`${r}?returnUrl=${encodeURIComponent(o.toString())}`:o})(`${a}${r}/on-boarding?return=${encodeURIComponent(o)}`,t)},exports.getWebsiteUrlApi=j,exports.locale=H;
|
package/build/utils-45e691a3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=e=>{const t=Object.keys(e);return t.length?"?"+t.map((t=>`${t}=${e[t]}`)).join("&"):""},t={BREAK_POINT_SMALL_MOBILE:480,BREAK_POINT_MOBILE:768,BREAK_POINT_TABLET:1024,BREAK_POINT_PC:1159,BREAK_POINT_LGPC:1440},r={smbDown:`@media (max-width: ${t.BREAK_POINT_SMALL_MOBILE-1}px)`,smbUp:`@media (min-width: ${t.BREAK_POINT_SMALL_MOBILE}px)`,mbDown:`@media (max-width: ${t.BREAK_POINT_MOBILE-1}px)`,mbOnly:`@media (min-width: ${t.BREAK_POINT_SMALL_MOBILE}px) and (max-width: ${t.BREAK_POINT_MOBILE-1}px)`,mbUp:`@media (min-width: ${t.BREAK_POINT_MOBILE}px)`,tdDown:`@media (max-width: ${t.BREAK_POINT_TABLET-1}px)`,tdOnly:`@media (min-width: ${t.BREAK_POINT_MOBILE}px) and (max-width: ${t.BREAK_POINT_TABLET-1}px)`,tdUp:`@media (min-width: ${t.BREAK_POINT_TABLET}px)`,pcUp:`@media (min-width: ${t.BREAK_POINT_PC}px)`,pcOnly:`@media (min-width: ${t.BREAK_POINT_TABLET}px) and (max-width: ${t.BREAK_POINT_PC-1}px)`,pcDown:`@media (max-width: ${t.BREAK_POINT_PC-1}px)`,lgPcUp:`@media (min-width: ${t.BREAK_POINT_LGPC}px)`,lgPcOnly:`@media (min-width: ${t.BREAK_POINT_PC}px) and (max-width: ${t.BREAK_POINT_LGPC-1}px)`,lgPcDown:`@media (max-width: ${t.BREAK_POINT_LGPC-1}px)`,mbToPC:`@media (min-width: ${t.BREAK_POINT_MOBILE}px) and (max-width: ${t.BREAK_POINT_PC-1}px)`};exports.Breakpoints=t,exports.MediaQueries=r,exports.formatUrlWithPageParam=(t,r=1,_="page")=>{const[n,a]=t.split("?"),d=new URLSearchParams(a||""),p={};return d.forEach(((e,t)=>{e&&(p[t]=e)})),Number(r)>1?p[_]=String(r):delete p[_],n+e(p)},exports.getBoundariesFromMediaQueryKey=e=>{switch(e){case"smbDown":return[0,t.BREAK_POINT_SMALL_MOBILE-1];case"smbUp":return[t.BREAK_POINT_SMALL_MOBILE,0];case"mbDown":return[0,t.BREAK_POINT_MOBILE-1];case"mbOnly":return[t.BREAK_POINT_SMALL_MOBILE,t.BREAK_POINT_MOBILE-1];case"mbUp":return[t.BREAK_POINT_MOBILE,0];case"tdDown":return[0,t.BREAK_POINT_TABLET-1];case"tdOnly":return[t.BREAK_POINT_MOBILE,t.BREAK_POINT_TABLET-1];case"tdUp":return[t.BREAK_POINT_TABLET,0];case"pcUp":return[t.BREAK_POINT_PC,0];case"pcOnly":return[t.BREAK_POINT_TABLET,t.BREAK_POINT_PC-1];case"pcDown":return[0,t.BREAK_POINT_PC-1];case"lgPcUp":return[t.BREAK_POINT_LGPC,0];case"lgPcOnly":return[t.BREAK_POINT_PC,t.BREAK_POINT_LGPC-1];case"lgPcDown":return[0,t.BREAK_POINT_LGPC-1];case"mbToPC":return[t.BREAK_POINT_MOBILE,t.BREAK_POINT_PC-1]}},exports.getPopupWrapperDom=()=>{if("undefined"==typeof document)return null;const e="hhg-comp-popup-wrapper";if(!document.querySelector("#"+e)){const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return document.querySelector("#"+e)},exports.getWrapperDomWithSelector=(e,t)=>{if("undefined"==typeof document)return null;if(!e.querySelector(`[data-wrapper-selector="${t}"]`)){const e=document.createElement("div");e.setAttribute("data-wrapper-selector",t),document.body.appendChild(e)}return e.querySelector(`[data-wrapper-selector="${t}"]`)},exports.makeParams=e,exports.safeEncodeURI=e=>decodeURI(e)!==e?e:encodeURI(e),exports.startCase=e=>e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})),exports.toggleNoScroll=e=>{"undefined"!=typeof window&&(document.documentElement.style.overflow=e?"hidden":"")};
|
package/build/utils-bee8be92.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./utils-45e691a3.js"),t=require("styled-components"),o=require("react"),a=require("./index-aa495d24.js"),s=require("./index-85c621a2.js"),n=require("./Subot-4751194d.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(t),h=r(o);const g=l.default.div`
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
z-index: 1;
|
|
6
|
-
.main-logo-icon {
|
|
7
|
-
object-fit: contain;
|
|
8
|
-
}
|
|
9
|
-
&[data-logo-is-light] {
|
|
10
|
-
> svg path {
|
|
11
|
-
fill: #fff;
|
|
12
|
-
}
|
|
13
|
-
img {
|
|
14
|
-
filter: brightness(0) invert(1);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&[data-has-badge] {
|
|
19
|
-
@supports (display: flex) and (gap: 1em) {
|
|
20
|
-
gap: 0.5rem;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@supports not ((display: flex) and (gap: 1em)) {
|
|
24
|
-
> img {
|
|
25
|
-
margin-left: 0.25rem;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.common-logo-seasonal-left,
|
|
31
|
-
.common-logo-seasonal-right {
|
|
32
|
-
z-index: -1;
|
|
33
|
-
max-width: unset;
|
|
34
|
-
max-height: unset;
|
|
35
|
-
}
|
|
36
|
-
.common-logo-seasonal-left {
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 50%;
|
|
39
|
-
left: 0;
|
|
40
|
-
transform: translateY(-50%);
|
|
41
|
-
}
|
|
42
|
-
.common-logo-seasonal-right {
|
|
43
|
-
position: absolute;
|
|
44
|
-
top: 50%;
|
|
45
|
-
right: 0;
|
|
46
|
-
transform: translateY(-50%);
|
|
47
|
-
}
|
|
48
|
-
&[data-seasonal='christmas'] {
|
|
49
|
-
padding-left: 37px;
|
|
50
|
-
padding-right: 22px;
|
|
51
|
-
.common-logo-seasonal-left {
|
|
52
|
-
width: 125px;
|
|
53
|
-
height: 56px;
|
|
54
|
-
}
|
|
55
|
-
.common-logo-seasonal-right {
|
|
56
|
-
width: 23px;
|
|
57
|
-
height: 17px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
&[data-seasonal='new-year'] {
|
|
61
|
-
padding-right: 85px;
|
|
62
|
-
.common-logo-seasonal-left {
|
|
63
|
-
top: 35%;
|
|
64
|
-
width: 100px;
|
|
65
|
-
height: 56px;
|
|
66
|
-
}
|
|
67
|
-
.common-logo-seasonal-right {
|
|
68
|
-
width: 85px;
|
|
69
|
-
height: 54px;
|
|
70
|
-
}
|
|
71
|
-
${e.MediaQueries.mbDown} {
|
|
72
|
-
padding-right: 0;
|
|
73
|
-
.common-logo-seasonal-right {
|
|
74
|
-
display: none;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
&[data-seasonal='lunar-new-year'] {
|
|
79
|
-
padding-left: 30px;
|
|
80
|
-
padding-right: 35px;
|
|
81
|
-
.common-logo-seasonal-left {
|
|
82
|
-
width: 33px;
|
|
83
|
-
height: 41px;
|
|
84
|
-
}
|
|
85
|
-
.common-logo-seasonal-right {
|
|
86
|
-
width: 37px;
|
|
87
|
-
height: 54px;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
&[data-seasonal='ramadan'] {
|
|
91
|
-
&[data-type='hellosehat'] {
|
|
92
|
-
padding-right: 35px;
|
|
93
|
-
.common-logo-seasonal-left {
|
|
94
|
-
width: 165px;
|
|
95
|
-
height: unset;
|
|
96
|
-
left: 6px;
|
|
97
|
-
}
|
|
98
|
-
.common-logo-seasonal-right {
|
|
99
|
-
width: 33px;
|
|
100
|
-
height: unset;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
&[data-type='hellodoktor'] {
|
|
104
|
-
padding-right: 66px;
|
|
105
|
-
.common-logo-seasonal-left {
|
|
106
|
-
width: 133px;
|
|
107
|
-
height: unset;
|
|
108
|
-
left: 6px;
|
|
109
|
-
}
|
|
110
|
-
.common-logo-seasonal-right {
|
|
111
|
-
width: 63px;
|
|
112
|
-
height: unset;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
&[data-seasonal='hung-king'] {
|
|
117
|
-
&[data-type='hellobacsi'] {
|
|
118
|
-
.common-logo-seasonal-left {
|
|
119
|
-
width: 134px;
|
|
120
|
-
height: unset;
|
|
121
|
-
left: 50%;
|
|
122
|
-
top: 50%;
|
|
123
|
-
transform: translate(-50%, -50%);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
&[data-type='marryBaby'] {
|
|
127
|
-
.common-logo-seasonal-left {
|
|
128
|
-
width: 145px;
|
|
129
|
-
height: unset;
|
|
130
|
-
left: 50%;
|
|
131
|
-
top: 50%;
|
|
132
|
-
transform: translate(-50%, -50%);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
`,i=l.default.img`
|
|
137
|
-
height: 16px;
|
|
138
|
-
width: unset;
|
|
139
|
-
margin-bottom: 4px;
|
|
140
|
-
margin-left: -3px;
|
|
141
|
-
`,p=o.memo((({type:e,width:t,height:n})=>{const r=o.useMemo((()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:t||"127px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:n||"27px",src:a.CommonGAssets.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:t||"123px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:n||"57px",src:a.CommonGAssets.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:n||"28px",src:a.CommonGAssets.getAssetPath("logo/marrybaby.png")};default:return null}}),[e,t,n]),{src:l,width:g,height:i}=r||{};return h.default.createElement(s.ImageWrap,{alt:`${e} logo`,className:"main-logo-icon",src:l,style:{width:g,height:i}})})),m={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},d=[n.LOCALE.Vietnam,n.LOCALE.Taiwan,n.LOCALE.Indonesia,n.LOCALE.Malaysia],c=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],x={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]};exports.LogoIcon=p,exports.LunarNewYearLocale=d,exports.StyledLogo=g,exports.StyledProLogo=i,exports.isChristmas=e=>{const t=e.getDate();return 11===e.getMonth()&&t>=16&&t<=25},exports.isLabourDay=e=>{const t=e.getFullYear(),o=new Date(t,4,1),a=new Date(o);a.setDate(o.getDate()-1);const s=new Date(o);return s.setDate(o.getDate()+1),a<=e&&e<=s},exports.isLunarNewYear=e=>{const t=e.getFullYear(),o=m[t];if(!o)return!1;const a=new Date(t,o[1],o[0]),s=new Date(a);s.setDate(a.getDate()-7);const n=new Date(a);return n.setDate(a.getDate()+5),s<=e&&e<=n},exports.isNewYear=e=>{const t=e.getDate(),o=e.getMonth();return 11===o&&t>=26||0===o&&t<=15},exports.isRamadan=e=>{const t=e.getFullYear(),o=c.filter((e=>e.year===t));return!!o.length&&o.some((o=>{const a=o.start[2]||t,s=new Date(a,o.start[1],o.start[0]),n=new Date(a,o.end[1],o.end[0]);return s<=e&&e<=n}))},exports.isVN3004=e=>{const t=e.getFullYear(),o=new Date(t,3,30),a=new Date(o);a.setDate(o.getDate()-1);const s=new Date(o);return s.setDate(o.getDate()+2),a<=e&&e<=s},exports.isVNHungKing=e=>{const t=e.getFullYear(),o=x[t];if(!o)return!1;const a=new Date(t,o[1],o[0]),s=new Date(a);s.setDate(a.getDate()-1);const n=new Date(a);return n.setDate(a.getDate()+1),s<=e&&e<=n};
|
package/build/utils-d5766c73.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var i=require("./Subot-4751194d.js");const a={[i.LOCALE.Vietnam]:"VN",[i.LOCALE.Cambodia]:"KH",[i.LOCALE.Indonesia]:"ID",[i.LOCALE.Malaysia]:"MY",[i.LOCALE.PhilippinesEnglish]:"PH",[i.LOCALE.PhilippinesTagalog]:"PH",[i.LOCALE.Taiwan]:"TW",[i.LOCALE.Thailand]:"TH",[i.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=a,exports.hiddenEmailChar=(i="")=>{const a=i.indexOf("@"),L=i.substring(0,a),e=L.length>3?3:L.length;return i.replace(i.substring(e,a),i.slice(e,a).replace(/./g,"x"))};
|