@hhgtech/hhg-components 1.29.76 → 1.29.78
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/{Instagram-86b7bc15.js → Instagram-f68f1dae.js} +1 -1
- package/build/adapters.js +15 -15
- package/build/babyGrowth.js +80 -80
- package/build/cache.js +3 -3
- package/build/care.js +18 -18
- package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -1
- package/build/components/navigationV2/index.d.ts +1 -0
- package/build/components.js +83 -82
- package/build/{constants-719fbb90.js → constants-385d01e7.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-f571f62a.js → core-e0799ceb.js} +2 -2
- package/build/{dataTransform-aac3f8cd.js → dataTransform-c8c14a28.js} +1 -1
- package/build/{utils-83337870.js → defaultClassWrapper-8ac3b7f0.js} +118 -392
- package/build/ecom.js +5 -5
- package/build/esm/{Instagram-de0e8d98.js → Instagram-8dd26ac6.js} +1 -1
- package/build/esm/adapters.js +15 -15
- package/build/esm/babyGrowth.js +81 -81
- package/build/esm/cache.js +3 -3
- package/build/esm/care.js +17 -17
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -1
- package/build/esm/components/navigationV2/index.d.ts +1 -0
- package/build/esm/components.js +59 -58
- package/build/esm/{constants-49a4dcdf.js → constants-5d6ab948.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-f79180f8.js → core-296015da.js} +2 -2
- package/build/esm/{dataTransform-3807c9d2.js → dataTransform-0066c53b.js} +1 -1
- package/build/esm/{utils-296f6ce0.js → defaultClassWrapper-8112e475.js} +108 -381
- package/build/esm/ecom.js +5 -5
- package/build/esm/footer.js +18 -18
- package/build/esm/gAssets.js +4 -4
- package/build/esm/{getDynamicHealthTool-10e36e9d.js → getDynamicHealthTool-7cf3f00e.js} +4 -4
- package/build/esm/{getSocialList-a6c786db.js → getSocialList-f797bbe2.js} +31 -12
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n-values/ms-MY.js +1 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/index-043dfbc3.js +216 -0
- package/build/esm/{index-aee34a48.js → index-09ecd45f.js} +37 -36
- package/build/esm/{index-a570b2ed.js → index-13975e28.js} +4 -4
- package/build/esm/{index-2f4855a8.js → index-25209a23.js} +37 -37
- package/build/esm/{index-53d2876e.js → index-2da84fe8.js} +1 -1
- package/build/esm/{index-cd069a89.js → index-2e13488d.js} +2 -2
- package/build/esm/{index-75509fc3.js → index-30eb73b8.js} +3 -3
- package/build/esm/{index-22423f24.js → index-4e6d8f1c.js} +11 -11
- package/build/esm/{index-efc77575.js → index-5b69b19c.js} +2 -2
- package/build/esm/{index-d0a2f6ec.js → index-5c2abf3a.js} +1052 -1052
- package/build/esm/{index-88b710e3.js → index-62059a85.js} +2 -2
- package/build/esm/{index-450a7d58.js → index-6896ecdf.js} +2 -2
- package/build/esm/{index-707072a0.js → index-6c7832ac.js} +21 -21
- package/build/esm/{index-d5092c27.js → index-70bb6ed3.js} +120 -120
- package/build/esm/{index-9c23f470.js → index-869411be.js} +10 -10
- package/build/esm/{index-413867da.js → index-94f2f772.js} +3 -3
- package/build/esm/{constants-14a25a1f.js → index-9dd8721c.js} +113 -113
- package/build/esm/{index-7d30d2d2.js → index-a2404202.js} +2 -2
- package/build/esm/{index-bc29a2b6.js → index-ad1d81e3.js} +2 -2
- package/build/esm/{index-5d51ace9.js → index-b45321ac.js} +6 -6
- package/build/esm/{index-352d0aa5.js → index-b851beaf.js} +1 -1
- package/build/esm/index-b9666693.js +298 -0
- package/build/esm/{index-caf6722b.js → index-c8e5b7ad.js} +5 -5
- package/build/esm/{index-c79781fb.js → index-dd00700b.js} +2 -2
- package/build/esm/{index-42b1983c.js → index-e80cb404.js} +12 -12
- package/build/esm/{index-f3e72b4d.js → index-ed317f58.js} +62 -62
- package/build/esm/{index-5f3f2d6f.js → index-f160e379.js} +2 -2
- package/build/esm/{index-a3ca59d6.js → index-fc868dc0.js} +5 -5
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +66 -65
- package/build/esm/{index.styled-ce027616.js → index.styled-19fa0003.js} +2 -2
- package/build/esm/{index.styles-82c0faa1.js → index.styles-0693a12e.js} +78 -78
- package/build/esm/lead.js +28 -28
- package/build/esm/mantine.js +20 -20
- package/build/esm/misc.js +23 -20
- package/build/esm/navigation.js +35 -35
- package/build/esm/onboardingV2.js +32 -32
- package/build/esm/pwg.js +19 -19
- package/build/esm/{routing-322eaa4c.js → routing-ddff6eb9.js} +2 -2
- package/build/esm/subot.js +27 -233
- package/build/esm/together.js +35 -35
- package/build/esm/{types-a3ed86c8.js → types-1ab8164a.js} +13 -13
- package/build/esm/{types-44a9ece1.js → types-29a56da4.js} +30 -30
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-948fb6a8.js → useCategory-00116196.js} +5 -5
- package/build/esm/{useHealthToolCache-28a3c4c6.js → useHealthToolCache-298307bc.js} +2 -2
- package/build/esm/{useMantineLocale-9b58b685.js → useMantineLocale-e9d07649.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-dd489ec7.js → usePlacesAutocomplete-3c09ae6c.js} +1 -1
- package/build/esm/{useTranslations-d26d2dd7.js → useTranslations-ee0ed7e4.js} +1 -1
- package/build/esm/{utils-c74c31bf.js → utils-70fb5414.js} +4 -4
- package/build/esm/{utils-4caabcaf.js → utils-98843bdc.js} +1 -1
- package/build/esm/vaccination.js +26 -26
- package/build/footer.js +18 -18
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-cbdcdf15.js → getDynamicHealthTool-fe5aca1c.js} +4 -4
- package/build/{getSocialList-1694e67f.js → getSocialList-717ee974.js} +32 -13
- package/build/hooks.js +17 -17
- package/build/i18n-values/ms-MY.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-ce4f11ef.js → index-172570c5.js} +5 -5
- package/build/{index-159e2660.js → index-266faebd.js} +2 -2
- package/build/{index-0454a0b5.js → index-297519c0.js} +3 -3
- package/build/{index-61367fe0.js → index-2dd62be1.js} +12 -12
- package/build/{index-f6ac4acf.js → index-2ed617c9.js} +6 -6
- package/build/{index-ac45c9ce.js → index-2f39a918.js} +4 -4
- package/build/{index-ff3c5c20.js → index-3f5ce427.js} +11 -11
- package/build/{index-5efec884.js → index-3fea5307.js} +2 -2
- package/build/{index-dba96acd.js → index-50cc6ee0.js} +22 -22
- package/build/{index-33f0bff6.js → index-58d6aa20.js} +10 -10
- package/build/{index-813921ef.js → index-657d308e.js} +2 -2
- package/build/{constants-6781c0a5.js → index-714baad1.js} +113 -113
- package/build/{index-8c0adaed.js → index-888fe1c7.js} +2 -2
- package/build/{index-cafc9574.js → index-896cf1e8.js} +55 -55
- package/build/{index-55261180.js → index-8bbc5f6c.js} +2 -2
- package/build/{index-80b5097a.js → index-a74e681a.js} +1 -1
- package/build/{index-48aca6d7.js → index-bd99a93f.js} +1050 -1050
- package/build/{index-83e3c045.js → index-c6d8ee38.js} +68 -68
- package/build/{index-d911e858.js → index-ca2880f5.js} +48 -47
- package/build/index-d37fb502.js +233 -0
- package/build/{index-909623c9.js → index-d98b6533.js} +2 -2
- package/build/{index-a6ab742a.js → index-de879d05.js} +120 -120
- package/build/{index-b1720522.js → index-e1d386b9.js} +7 -7
- package/build/{index-b71ec348.js → index-e76edc59.js} +8 -8
- package/build/{index-1f765864.js → index-f5c1576f.js} +2 -2
- package/build/{WhatsApp-6b693d67.js → index-fbc4ad0a.js} +276 -1
- package/build/{index-07db6c89.js → index-fd9e9e31.js} +3 -3
- package/build/index.css +1 -1
- package/build/index.js +108 -107
- package/build/{index.styled-50af6497.js → index.styled-cd56f718.js} +2 -2
- package/build/{index.styles-77df1c2b.js → index.styles-15b57fec.js} +83 -83
- package/build/lead.js +28 -28
- package/build/mantine.js +17 -17
- package/build/misc.js +23 -20
- package/build/navigation.js +35 -35
- package/build/onboardingV2.js +31 -31
- package/build/pwg.js +19 -19
- package/build/{routing-19724fda.js → routing-101c464a.js} +2 -2
- package/build/subot.js +338 -545
- package/build/together.js +40 -40
- package/build/{types-841ea0f8.js → types-65270049.js} +49 -49
- package/build/{types-8103df55.js → types-bc9b7ff5.js} +191 -191
- package/build/types.js +1 -1
- package/build/{useCategory-0b2ef197.js → useCategory-99167875.js} +5 -5
- package/build/{useHealthToolCache-3c423143.js → useHealthToolCache-347a7553.js} +2 -2
- package/build/{useMantineLocale-38ffd9ae.js → useMantineLocale-67d093f5.js} +3 -3
- package/build/{usePlacesAutocomplete-646b2b03.js → usePlacesAutocomplete-0d428f7d.js} +1 -1
- package/build/{useTranslations-3da8d23e.js → useTranslations-ddee03e3.js} +1 -1
- package/build/{utils-9a87f8d9.js → utils-bc89f5c8.js} +4 -4
- package/build/{utils-478cfe5d.js → utils-f2b61d2c.js} +1 -1
- package/build/vaccination.js +26 -26
- package/package.json +1 -1
- package/build/esm/WhatsApp-11fc8356.js +0 -24
- /package/build/{BMI_BOYS.percentile.monthly-9b50e52f.js → BMI_BOYS.percentile.monthly-2dbe6dbf.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-4439d476.js → BMI_BOYS.percentile.weekly-68fd0e8a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-960c0771.js → BMI_BOYS.percentile.yearly-a334f00f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-4b43250e.js → BMI_BOYS.zscore.monthly-f1f1e40c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-d4907b9f.js → BMI_BOYS.zscore.weekly-eaadf495.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-9ee69f9d.js → BMI_BOYS.zscore.yearly-ee0a8baa.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-dc2fdf0e.js → BMI_GIRLS.percentile.monthly-2a4322e1.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-1b38bd96.js → BMI_GIRLS.percentile.weekly-8d2160f3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-02414e20.js → BMI_GIRLS.percentile.yearly-e305a1c3.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-22932f64.js → BMI_GIRLS.zscore.monthly-370967e2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-821fa654.js → BMI_GIRLS.zscore.weekly-82dbdbeb.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-7dbcbb1a.js → BMI_GIRLS.zscore.yearly-b624b0c5.js} +0 -0
- /package/build/{ChevronDown-8960bba8.js → ChevronDown-6a728605.js} +0 -0
- /package/build/{Close-08bd4298.js → Close-6a790433.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4d93a363.js → HEAD CIRCUM_BOYS.percentile.monthly-2d793b40.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-6ba303fa.js → HEAD CIRCUM_BOYS.percentile.weekly-3ec0fbcd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-0a4ffaee.js → HEAD CIRCUM_BOYS.percentile.yearly-018cfad7.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d8eaa381.js → HEAD CIRCUM_BOYS.zscore.monthly-9a92fc56.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c87e6af4.js → HEAD CIRCUM_BOYS.zscore.weekly-ec5c1b66.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d9a52671.js → HEAD CIRCUM_BOYS.zscore.yearly-1bbc9e90.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-4ed7bb97.js → HEAD CIRCUM_GIRLS.percentile.monthly-88bf7054.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-6e4b369c.js → HEAD CIRCUM_GIRLS.percentile.weekly-48abc5c8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-a921267b.js → HEAD CIRCUM_GIRLS.percentile.yearly-eb5476be.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-1cae954b.js → HEAD CIRCUM_GIRLS.zscore.monthly-b4908eed.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-5d43456f.js → HEAD CIRCUM_GIRLS.zscore.weekly-bb3b5b73.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-eced20c8.js → HEAD CIRCUM_GIRLS.zscore.yearly-9e459c3a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-07bcd6ca.js → HEIGHT_BOYS.percentile.monthly-de26b886.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-7cdf6993.js → HEIGHT_BOYS.percentile.weekly-2b1a480e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-6c5d943a.js → HEIGHT_BOYS.percentile.yearly-9e11bf8a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-e46f25fc.js → HEIGHT_BOYS.zscore.monthly-169b72ab.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-6d18339b.js → HEIGHT_BOYS.zscore.weekly-1f51ea7a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-7886aa48.js → HEIGHT_BOYS.zscore.yearly-2defb1ff.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-800ba66d.js → HEIGHT_GIRLS.percentile.monthly-ff09a166.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-cebd135d.js → HEIGHT_GIRLS.percentile.weekly-bdbad8b3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-bc54e1ee.js → HEIGHT_GIRLS.percentile.yearly-a7cf5de3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-d3160752.js → HEIGHT_GIRLS.zscore.monthly-bc88d68f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-fb8651f4.js → HEIGHT_GIRLS.zscore.weekly-4b1bb4f7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-2ac9b61e.js → HEIGHT_GIRLS.zscore.yearly-6d54fcc8.js} +0 -0
- /package/build/{Visible-f917485e.js → Visible-cf684c77.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-84ec3cf3.js → WEIGHT_BOYS.percentile.monthly-69735b17.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-430407fd.js → WEIGHT_BOYS.percentile.weekly-60881421.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-c93ffc92.js → WEIGHT_BOYS.percentile.yearly-bac67ed1.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-071e754c.js → WEIGHT_BOYS.zscore.monthly-e9254299.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-6bad7529.js → WEIGHT_BOYS.zscore.weekly-6b82cd2d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-3388131c.js → WEIGHT_BOYS.zscore.yearly-43cc1986.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1db18e75.js → WEIGHT_GIRLS.percentile.monthly-38847b2b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-94e4dc5d.js → WEIGHT_GIRLS.percentile.weekly-2ac2ee92.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-8a0d1397.js → WEIGHT_GIRLS.percentile.yearly-3401e100.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-6e81e8eb.js → WEIGHT_GIRLS.zscore.monthly-4f257d09.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-7e09c6b4.js → WEIGHT_GIRLS.zscore.weekly-fe8ea3a5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-48ae8923.js → WEIGHT_GIRLS.zscore.yearly-c780b33b.js} +0 -0
- /package/build/{animation-6a354499.js → animation-6f210c4a.js} +0 -0
- /package/build/{cart-f524d70b.js → cart-d48967a8.js} +0 -0
- /package/build/{cookieHelper-f1270aa8.js → cookieHelper-6fa2ed3a.js} +0 -0
- /package/build/{doctor-460efc4e.js → doctor-d70d0f31.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-c795fa31.js → BMI_BOYS.percentile.monthly-2c7cf81c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-93d3a2e7.js → BMI_BOYS.percentile.weekly-963d00dc.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-e12d0f93.js → BMI_BOYS.percentile.yearly-4eea698f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-a61cbcb5.js → BMI_BOYS.zscore.monthly-f5544376.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-df28f2de.js → BMI_BOYS.zscore.weekly-4656cd4c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-1572b3d6.js → BMI_BOYS.zscore.yearly-39ccd0fd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-afbf7bdd.js → BMI_GIRLS.percentile.monthly-d7501958.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-88afe92e.js → BMI_GIRLS.percentile.weekly-315ba23e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-3f6d0007.js → BMI_GIRLS.percentile.yearly-5afebffb.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-df48ff7e.js → BMI_GIRLS.zscore.monthly-9c659c70.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-c0e3ef01.js → BMI_GIRLS.zscore.weekly-f72193e8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-adf55dba.js → BMI_GIRLS.zscore.yearly-33a16ebf.js} +0 -0
- /package/build/esm/{ChevronDown-2d0f198a.js → ChevronDown-51088ad9.js} +0 -0
- /package/build/esm/{Close-2ce2f09c.js → Close-851c8b38.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a67a4012.js → HEAD CIRCUM_BOYS.percentile.monthly-522b5435.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-eef6a2b3.js → HEAD CIRCUM_BOYS.percentile.weekly-72d04552.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7716a1b1.js → HEAD CIRCUM_BOYS.percentile.yearly-e68e4904.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-976585ad.js → HEAD CIRCUM_BOYS.zscore.monthly-89b9b642.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-4a8efa04.js → HEAD CIRCUM_BOYS.zscore.weekly-c8c2ae6a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-3e6d5418.js → HEAD CIRCUM_BOYS.zscore.yearly-0cf56dc8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-23bf9344.js → HEAD CIRCUM_GIRLS.percentile.monthly-ef9dbfc9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-bef4b766.js → HEAD CIRCUM_GIRLS.percentile.weekly-831567fe.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-3d51ca86.js → HEAD CIRCUM_GIRLS.percentile.yearly-0e89170b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-0e8f2809.js → HEAD CIRCUM_GIRLS.zscore.monthly-82564fb7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-9af76405.js → HEAD CIRCUM_GIRLS.zscore.weekly-6b1845ec.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-8bf900c4.js → HEAD CIRCUM_GIRLS.zscore.yearly-6b65120d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2117581f.js → HEIGHT_BOYS.percentile.monthly-ecfdee13.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-32caad55.js → HEIGHT_BOYS.percentile.weekly-2bae8fa8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f06a01f4.js → HEIGHT_BOYS.percentile.yearly-4cf5eb0c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9277aa60.js → HEIGHT_BOYS.zscore.monthly-5978dd63.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-3fce9644.js → HEIGHT_BOYS.zscore.weekly-0e20ae65.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-701cb22d.js → HEIGHT_BOYS.zscore.yearly-9f9ecc92.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c21f8cfd.js → HEIGHT_GIRLS.percentile.monthly-244b7899.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-9d33aa12.js → HEIGHT_GIRLS.percentile.weekly-867f533c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-6e44423b.js → HEIGHT_GIRLS.percentile.yearly-8334ef62.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-5a00cd96.js → HEIGHT_GIRLS.zscore.monthly-89dc2f92.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-2ff60b7f.js → HEIGHT_GIRLS.zscore.weekly-c37a8e45.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-18664e72.js → HEIGHT_GIRLS.zscore.yearly-d75c7342.js} +0 -0
- /package/build/esm/{Visible-013c4e17.js → Visible-2b82b731.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-9a4ae0e0.js → WEIGHT_BOYS.percentile.monthly-afa954cf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-d5d70e19.js → WEIGHT_BOYS.percentile.weekly-0ce8ca9d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-861ab2cd.js → WEIGHT_BOYS.percentile.yearly-9bc9d108.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e9f591d1.js → WEIGHT_BOYS.zscore.monthly-c41e3c26.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-fb1bd500.js → WEIGHT_BOYS.zscore.weekly-927605d1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-a25ff34d.js → WEIGHT_BOYS.zscore.yearly-10a9c6a3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-37cf236c.js → WEIGHT_GIRLS.percentile.monthly-c3957e70.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-029e478f.js → WEIGHT_GIRLS.percentile.weekly-5413b078.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8dce316c.js → WEIGHT_GIRLS.percentile.yearly-fbef8c0c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9173160d.js → WEIGHT_GIRLS.zscore.monthly-e89aa92b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-411a046b.js → WEIGHT_GIRLS.zscore.weekly-7a014b5a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c19c7429.js → WEIGHT_GIRLS.zscore.yearly-0cae1bb9.js} +0 -0
- /package/build/esm/{animation-4b187451.js → animation-89cd92dc.js} +0 -0
- /package/build/esm/{cart-1e4e352e.js → cart-b5b2f9c9.js} +0 -0
- /package/build/esm/{cookieHelper-8494dcf1.js → cookieHelper-6839de86.js} +0 -0
- /package/build/esm/{doctor-74fc81b1.js → doctor-a16d5a2a.js} +0 -0
- /package/build/esm/{index-f1b4e4f6.js → index-207e5a99.js} +0 -0
- /package/build/esm/{index-3434140c.js → index-3f16918f.js} +0 -0
- /package/build/esm/{index-5f5297aa.js → index-b1dfbcd9.js} +0 -0
- /package/build/esm/{isProduction-a01c18e3.js → isProduction-6557a7a7.js} +0 -0
- /package/build/esm/{localizeNumberFormat-f924ab7b.js → localizeNumberFormat-1efb07bf.js} +0 -0
- /package/build/esm/{normalizeLink-61ae52b5.js → normalizeLink-9adb98bb.js} +0 -0
- /package/build/esm/{number-c847488a.js → number-7673e170.js} +0 -0
- /package/build/esm/{paths-756efba0.js → paths-1a0405c1.js} +0 -0
- /package/build/esm/{theme-ac1a0e46.js → theme-676e1d3e.js} +0 -0
- /package/build/esm/{translationsContext-a21c43b4.js → translationsContext-b00d46fa.js} +0 -0
- /package/build/esm/{tslib.es6-6d3de7c2.js → tslib.es6-42d35711.js} +0 -0
- /package/build/esm/{useIsInit-4ba52ee9.js → useIsInit-d65429ab.js} +0 -0
- /package/build/esm/{useOutsideClick-d1486166.js → useOutsideClick-3b36c560.js} +0 -0
- /package/build/esm/{useScrollbarSize-f874e0ac.js → useScrollbarSize-7cfe3d07.js} +0 -0
- /package/build/esm/{useUniqueId-a727e698.js → useUniqueId-28b8a8d2.js} +0 -0
- /package/build/esm/{utils-3d823a9f.js → utils-0f3667a8.js} +0 -0
- /package/build/{index-e1ed79b3.js → index-0c11098b.js} +0 -0
- /package/build/{index-4da85d4b.js → index-3d1716ad.js} +0 -0
- /package/build/{index-5e9fdc69.js → index-c4b66929.js} +0 -0
- /package/build/{index-b8cc819b.js → index-d38624f2.js} +0 -0
- /package/build/{isProduction-f7507b6e.js → isProduction-cc2f71e7.js} +0 -0
- /package/build/{localizeNumberFormat-8ccd7c74.js → localizeNumberFormat-72f6c627.js} +0 -0
- /package/build/{normalizeLink-0007c927.js → normalizeLink-37b001e0.js} +0 -0
- /package/build/{number-eb5a9b12.js → number-3c00e9ff.js} +0 -0
- /package/build/{paths-29644364.js → paths-22150d98.js} +0 -0
- /package/build/{theme-4d2a1014.js → theme-040e6fd9.js} +0 -0
- /package/build/{translationsContext-d76a8c6d.js → translationsContext-bece07e0.js} +0 -0
- /package/build/{tslib.es6-6abfcd13.js → tslib.es6-a8c3b1ed.js} +0 -0
- /package/build/{useIsInit-3021c365.js → useIsInit-78fbbf00.js} +0 -0
- /package/build/{useOutsideClick-9e887f30.js → useOutsideClick-f4ac5964.js} +0 -0
- /package/build/{useScrollbarSize-14a9f09a.js → useScrollbarSize-df8fb771.js} +0 -0
- /package/build/{useUniqueId-889c3946.js → useUniqueId-a3ed3f40.js} +0 -0
- /package/build/{utils-526a845c.js → utils-a2ad9aa3.js} +0 -0
|
@@ -1,72 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-a8c3b1ed.js');
|
|
3
4
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var index = require('./index-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var isProduction = require('./isProduction-f7507b6e.js');
|
|
5
|
+
var paths = require('./paths-22150d98.js');
|
|
6
|
+
var index$1 = require('./index-714baad1.js');
|
|
7
|
+
var index$2 = require('./index-bd99a93f.js');
|
|
8
|
+
var index = require('./index-fd9e9e31.js');
|
|
9
|
+
var defaultClassWrapper = require('./defaultClassWrapper-8ac3b7f0.js');
|
|
10
|
+
var useTranslations = require('./useTranslations-ddee03e3.js');
|
|
11
|
+
var isProduction = require('./isProduction-cc2f71e7.js');
|
|
12
|
+
var index_styles = require('./index.styles-15b57fec.js');
|
|
13
13
|
|
|
14
14
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
15
15
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Consider to use mantine
|
|
20
|
-
*/
|
|
21
|
-
const Divider = ({ type = 'solid', className, style }) => {
|
|
22
|
-
return (React__default["default"].createElement(index_styles.StyledDivider, { style: style, className: className, "data-diver-type": type, dividerType: type }));
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const AuthorLabelTextMapping = {
|
|
26
|
-
admin: 'cardAuthor.admin',
|
|
27
|
-
moderator: 'cardAuthor.moderator',
|
|
28
|
-
ambassador: 'cardAuthor.ambassador',
|
|
29
|
-
expert: 'cardAuthor.expert',
|
|
30
|
-
sponsor: 'cardAuthor.sponsor',
|
|
31
|
-
// 'local-admin': 'cardAuthor.localAdmin',
|
|
32
|
-
guide: 'cardAuthor.guide',
|
|
33
|
-
influencer: 'cardAuthor.influencer',
|
|
34
|
-
};
|
|
35
|
-
const looselyMatchRole = (role) => {
|
|
36
|
-
const allRoles = [
|
|
37
|
-
'admin',
|
|
38
|
-
'moderator',
|
|
39
|
-
'ambassador',
|
|
40
|
-
'expert',
|
|
41
|
-
'sponsor',
|
|
42
|
-
'guide',
|
|
43
|
-
'influencer',
|
|
44
|
-
];
|
|
45
|
-
return allRoles.find((r) => r === role);
|
|
46
|
-
};
|
|
47
|
-
const AuthorBadge = (_a) => {
|
|
48
|
-
var { siteType, role, title, styles, className } = _a, rest = tslib_es6.__rest(_a, ["siteType", "role", "title", "styles", "className"]);
|
|
49
|
-
const { t } = useTranslations.useTranslations();
|
|
50
|
-
const matchedRole = role ? looselyMatchRole(role) : '';
|
|
51
|
-
const { classes, cx } = index_styles.useStyles(undefined,
|
|
52
|
-
// Second argument is responsible for styles api integration
|
|
53
|
-
{ name: 'AuthorBadge', styles });
|
|
54
|
-
return matchedRole && AuthorLabelTextMapping[matchedRole] ? (React__default["default"].createElement("div", Object.assign({
|
|
55
|
-
// className={styles.authorBadge}
|
|
56
|
-
className: cx(classes.root, className), "data-label-type": matchedRole, "data-is-marrybaby": siteType === 'marryBaby' }, rest), title || t(AuthorLabelTextMapping[matchedRole]))) : null;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const BtnChoice = ({ value: valueInit, choices, onChange }) => {
|
|
60
|
-
const [value, setValue] = React.useState(valueInit);
|
|
61
|
-
React.useEffect(() => {
|
|
62
|
-
setValue(valueInit);
|
|
63
|
-
}, [valueInit]);
|
|
64
|
-
return (React__default["default"].createElement(index_styles.StyledContainer, null, choices.map((i, idx) => (React__default["default"].createElement(index.Button, { dataEventCategory: i.dataEventCategory, dataEventAction: i.dataEventAction, dataEventLabel: i.dataEventLabel, size: "sm", variant: i.value === value ? 'primary' : 'tertiary', key: idx, onClick: () => {
|
|
65
|
-
setValue(i.value);
|
|
66
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(i.value);
|
|
67
|
-
} }, i.label || '')))));
|
|
68
|
-
};
|
|
69
|
-
|
|
70
18
|
const BookingBtn = (_a) => {
|
|
71
19
|
var { label, bookingId, bookingType = 'doctor', locale = 'vi-VN' } = _a, rest = tslib_es6.__rest(_a, ["label", "bookingId", "bookingType", "locale"]);
|
|
72
20
|
const { t } = useTranslations.useTranslations();
|
|
@@ -89,29 +37,29 @@ const BookingBtn = (_a) => {
|
|
|
89
37
|
: '';
|
|
90
38
|
try {
|
|
91
39
|
setLoading(true);
|
|
92
|
-
const response = yield
|
|
40
|
+
const response = yield defaultClassWrapper.callApi(defaultClassWrapper.getCarePath(url, {
|
|
93
41
|
id: bookingId,
|
|
94
|
-
site: index
|
|
42
|
+
site: index.domainLocales[locale],
|
|
95
43
|
}), 'get');
|
|
96
44
|
if ((response === null || response === void 0 ? void 0 : response._status) === 1) {
|
|
97
45
|
const result = bookingType === 'doctor'
|
|
98
46
|
? {
|
|
99
47
|
id: (_c = (_b = response === null || response === void 0 ? void 0 : response._data) === null || _b === void 0 ? void 0 : _b.doctor) === null || _c === void 0 ? void 0 : _c.id,
|
|
100
48
|
slug: (_e = (_d = response === null || response === void 0 ? void 0 : response._data) === null || _d === void 0 ? void 0 : _d.doctor) === null || _e === void 0 ? void 0 : _e.slug,
|
|
101
|
-
localSlug: (_f =
|
|
49
|
+
localSlug: (_f = index$1.LOCALIZED_SLUGS[locale]) === null || _f === void 0 ? void 0 : _f.DOCTOR,
|
|
102
50
|
}
|
|
103
51
|
: bookingType === 'hospital'
|
|
104
52
|
? {
|
|
105
53
|
id: (_h = (_g = response === null || response === void 0 ? void 0 : response._data) === null || _g === void 0 ? void 0 : _g.branch) === null || _h === void 0 ? void 0 : _h.id,
|
|
106
54
|
slug: (_k = (_j = response === null || response === void 0 ? void 0 : response._data) === null || _j === void 0 ? void 0 : _j.branch) === null || _k === void 0 ? void 0 : _k.slug,
|
|
107
|
-
localSlug: (_l =
|
|
55
|
+
localSlug: (_l = index$1.LOCALIZED_SLUGS[locale]) === null || _l === void 0 ? void 0 : _l.HOSPITAL,
|
|
108
56
|
}
|
|
109
57
|
: {
|
|
110
58
|
id: (_o = (_m = response === null || response === void 0 ? void 0 : response._data) === null || _m === void 0 ? void 0 : _m.service) === null || _o === void 0 ? void 0 : _o.id,
|
|
111
59
|
slug: (_q = (_p = response === null || response === void 0 ? void 0 : response._data) === null || _p === void 0 ? void 0 : _p.service) === null || _q === void 0 ? void 0 : _q.slug,
|
|
112
|
-
localSlug: (_r =
|
|
60
|
+
localSlug: (_r = index$1.LOCALIZED_SLUGS[locale]) === null || _r === void 0 ? void 0 : _r.SERVICE,
|
|
113
61
|
};
|
|
114
|
-
window.location.href = `https://${!isProduction.isProduction ? 'discover.' : ''}${index
|
|
62
|
+
window.location.href = `https://${!isProduction.isProduction ? 'discover.' : ''}${index.domainLocales[locale]}/care/${result.localSlug}/${result.slug}-${result.id}/`;
|
|
115
63
|
}
|
|
116
64
|
else {
|
|
117
65
|
setLoading(false);
|
|
@@ -122,7 +70,59 @@ const BookingBtn = (_a) => {
|
|
|
122
70
|
setLoading(false);
|
|
123
71
|
}
|
|
124
72
|
}), []);
|
|
125
|
-
return bookingId && bookingType ? (React__default["default"].createElement(index.Button, Object.assign({ dataEventCategory: "Care", dataEventAction: "Comment - Quick Booking", dataEventLabel: currentUrl, onClick: handleOnClick, loading: loading }, rest), label || t('careBooking.bookAnAppointment'))) : null;
|
|
73
|
+
return bookingId && bookingType ? (React__default["default"].createElement(index$2.Button, Object.assign({ dataEventCategory: "Care", dataEventAction: "Comment - Quick Booking", dataEventLabel: currentUrl, onClick: handleOnClick, loading: loading }, rest), label || t('careBooking.bookAnAppointment'))) : null;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const AuthorLabelTextMapping = {
|
|
77
|
+
admin: 'cardAuthor.admin',
|
|
78
|
+
moderator: 'cardAuthor.moderator',
|
|
79
|
+
ambassador: 'cardAuthor.ambassador',
|
|
80
|
+
expert: 'cardAuthor.expert',
|
|
81
|
+
sponsor: 'cardAuthor.sponsor',
|
|
82
|
+
// 'local-admin': 'cardAuthor.localAdmin',
|
|
83
|
+
guide: 'cardAuthor.guide',
|
|
84
|
+
influencer: 'cardAuthor.influencer',
|
|
85
|
+
};
|
|
86
|
+
const looselyMatchRole = (role) => {
|
|
87
|
+
const allRoles = [
|
|
88
|
+
'admin',
|
|
89
|
+
'moderator',
|
|
90
|
+
'ambassador',
|
|
91
|
+
'expert',
|
|
92
|
+
'sponsor',
|
|
93
|
+
'guide',
|
|
94
|
+
'influencer',
|
|
95
|
+
];
|
|
96
|
+
return allRoles.find((r) => r === role);
|
|
97
|
+
};
|
|
98
|
+
const AuthorBadge = (_a) => {
|
|
99
|
+
var { siteType, role, title, styles, className } = _a, rest = tslib_es6.__rest(_a, ["siteType", "role", "title", "styles", "className"]);
|
|
100
|
+
const { t } = useTranslations.useTranslations();
|
|
101
|
+
const matchedRole = role ? looselyMatchRole(role) : '';
|
|
102
|
+
const { classes, cx } = index_styles.useStyles(undefined,
|
|
103
|
+
// Second argument is responsible for styles api integration
|
|
104
|
+
{ name: 'AuthorBadge', styles });
|
|
105
|
+
return matchedRole && AuthorLabelTextMapping[matchedRole] ? (React__default["default"].createElement("div", Object.assign({
|
|
106
|
+
// className={styles.authorBadge}
|
|
107
|
+
className: cx(classes.root, className), "data-label-type": matchedRole, "data-is-marrybaby": siteType === 'marryBaby' }, rest), title || t(AuthorLabelTextMapping[matchedRole]))) : null;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
const BtnChoice = ({ value: valueInit, choices, onChange }) => {
|
|
111
|
+
const [value, setValue] = React.useState(valueInit);
|
|
112
|
+
React.useEffect(() => {
|
|
113
|
+
setValue(valueInit);
|
|
114
|
+
}, [valueInit]);
|
|
115
|
+
return (React__default["default"].createElement(index_styles.StyledContainer, null, choices.map((i, idx) => (React__default["default"].createElement(index$2.Button, { dataEventCategory: i.dataEventCategory, dataEventAction: i.dataEventAction, dataEventLabel: i.dataEventLabel, size: "sm", variant: i.value === value ? 'primary' : 'tertiary', key: idx, onClick: () => {
|
|
116
|
+
setValue(i.value);
|
|
117
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(i.value);
|
|
118
|
+
} }, i.label || '')))));
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated Consider to use mantine
|
|
123
|
+
*/
|
|
124
|
+
const Divider = ({ type = 'solid', className, style }) => {
|
|
125
|
+
return (React__default["default"].createElement(index_styles.StyledDivider, { style: style, className: className, "data-diver-type": type, dividerType: type }));
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
exports.AuthorBadge = AuthorBadge;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-a8c3b1ed.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index$2 = require('./index-
|
|
5
|
+
var index$2 = require('./index-bd99a93f.js');
|
|
6
6
|
var styled = require('@emotion/styled');
|
|
7
|
-
var theme = require('./theme-
|
|
8
|
-
var index = require('./index-
|
|
9
|
-
var index$1 = require('./index-
|
|
10
|
-
var index$3 = require('./index-
|
|
11
|
-
var normalizeLink = require('./normalizeLink-
|
|
12
|
-
var routing = require('./routing-
|
|
13
|
-
var index$4 = require('./index-
|
|
14
|
-
var index$
|
|
15
|
-
var useTranslations = require('./useTranslations-
|
|
7
|
+
var theme = require('./theme-040e6fd9.js');
|
|
8
|
+
var index = require('./index-657d308e.js');
|
|
9
|
+
var index$1 = require('./index-8bbc5f6c.js');
|
|
10
|
+
var index$3 = require('./index-fd9e9e31.js');
|
|
11
|
+
var normalizeLink = require('./normalizeLink-37b001e0.js');
|
|
12
|
+
var routing = require('./routing-101c464a.js');
|
|
13
|
+
var index$4 = require('./index-de879d05.js');
|
|
14
|
+
var index$b = require('./index-2f39a918.js');
|
|
15
|
+
var useTranslations = require('./useTranslations-ddee03e3.js');
|
|
16
16
|
var throttle = require('lodash/throttle');
|
|
17
17
|
var core = require('@mantine/core');
|
|
18
18
|
require('@mantine/dates');
|
|
19
|
-
var index$6 = require('./index-
|
|
20
|
-
require('./useMantineLocale-
|
|
21
|
-
require('./translationsContext-
|
|
19
|
+
var index$6 = require('./index-d38624f2.js');
|
|
20
|
+
require('./useMantineLocale-67d093f5.js');
|
|
21
|
+
require('./translationsContext-bece07e0.js');
|
|
22
22
|
var formatString = require('string-format');
|
|
23
23
|
require('@mantine/hooks');
|
|
24
|
-
var utils = require('./utils-
|
|
25
|
-
var constants = require('./constants-
|
|
24
|
+
var utils = require('./utils-a2ad9aa3.js');
|
|
25
|
+
var constants = require('./constants-385d01e7.js');
|
|
26
26
|
var core$1 = require('@hhgtech/icons/core');
|
|
27
|
-
var
|
|
28
|
-
var ChevronDown = require('./ChevronDown-
|
|
27
|
+
var defaultClassWrapper = require('./defaultClassWrapper-8ac3b7f0.js');
|
|
28
|
+
var ChevronDown = require('./ChevronDown-6a728605.js');
|
|
29
29
|
var react = require('@emotion/react');
|
|
30
|
-
var index$5 = require('./index-
|
|
31
|
-
var
|
|
32
|
-
var index$8 = require('./index-
|
|
33
|
-
var index$7 = require('./index-
|
|
34
|
-
var useIsInit = require('./useIsInit-
|
|
35
|
-
require('./index.styles-
|
|
36
|
-
require('./utils-
|
|
37
|
-
require('./
|
|
38
|
-
require('./index.styled-
|
|
39
|
-
require('./index-
|
|
30
|
+
var index$5 = require('./index-266faebd.js');
|
|
31
|
+
var index$9 = require('./index-714baad1.js');
|
|
32
|
+
var index$8 = require('./index-888fe1c7.js');
|
|
33
|
+
var index$7 = require('./index-d98b6533.js');
|
|
34
|
+
var useIsInit = require('./useIsInit-78fbbf00.js');
|
|
35
|
+
require('./index.styles-15b57fec.js');
|
|
36
|
+
require('./utils-bc89f5c8.js');
|
|
37
|
+
require('./index-fbc4ad0a.js');
|
|
38
|
+
require('./index.styled-cd56f718.js');
|
|
39
|
+
require('./index-c4b66929.js');
|
|
40
40
|
var other = require('@hhgtech/icons/other');
|
|
41
41
|
var dayjs = require('dayjs');
|
|
42
42
|
var relativeTime = require('dayjs/plugin/relativeTime');
|
|
43
|
-
var index$
|
|
43
|
+
var index$a = require('./index-3d1716ad.js');
|
|
44
44
|
var debounce = require('lodash/debounce');
|
|
45
|
-
var core$2 = require('./core-
|
|
45
|
+
var core$2 = require('./core-e0799ceb.js');
|
|
46
46
|
|
|
47
47
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
48
48
|
|
|
@@ -292,7 +292,7 @@ const useCSSFocusPopupHelper = (configs) => {
|
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
-
const StyledPopup$1 =
|
|
295
|
+
const StyledPopup$1 = defaultClassWrapper.setDefaultClass(styled__default["default"].div `
|
|
296
296
|
position: absolute;
|
|
297
297
|
right: 0;
|
|
298
298
|
transition: all 0.5s ease-in-out;
|
|
@@ -329,7 +329,7 @@ const StyledPopup$1 = utils$1.setDefaultClass(styled__default["default"].div `
|
|
|
329
329
|
padding-bottom: 70px;
|
|
330
330
|
}
|
|
331
331
|
`, 'hhgcomp-navprofilebutton-popup');
|
|
332
|
-
const StyledPopupWrapper =
|
|
332
|
+
const StyledPopupWrapper = defaultClassWrapper.setDefaultClass(styled__default["default"].div `
|
|
333
333
|
position: fixed;
|
|
334
334
|
z-index: 150;
|
|
335
335
|
top: var(--header-bottom, 56px);
|
|
@@ -1094,7 +1094,7 @@ const NavigationProvider = (_a) => {
|
|
|
1094
1094
|
const [currentUrl, setCurrentUrl] = React__default["default"].useState(() => {
|
|
1095
1095
|
return (props.currentUrl ||
|
|
1096
1096
|
`https://${props.siteType === 'marryBaby'
|
|
1097
|
-
?
|
|
1097
|
+
? defaultClassWrapper.domainLocalesMarryBaby[props.locale || 'en-PH']
|
|
1098
1098
|
: index$3.domainLocales[props.locale || 'en-PH']}${props.projectType === 'together'
|
|
1099
1099
|
? '/community'
|
|
1100
1100
|
: props.projectType === 'ecom'
|
|
@@ -1517,7 +1517,7 @@ const StyledDes$2 = styled__default["default"].p `
|
|
|
1517
1517
|
padding: 0;
|
|
1518
1518
|
}
|
|
1519
1519
|
`;
|
|
1520
|
-
const StyledContentWrapper$2 =
|
|
1520
|
+
const StyledContentWrapper$2 = defaultClassWrapper.setDefaultClass(styled__default["default"].div `
|
|
1521
1521
|
display: flex;
|
|
1522
1522
|
flex-direction: column;
|
|
1523
1523
|
gap: 8px;
|
|
@@ -1597,7 +1597,7 @@ const Item$4 = ({ item, index = 0 }) => {
|
|
|
1597
1597
|
const { locale, configs: { statics }, } = React.useContext(NavigationContext);
|
|
1598
1598
|
if (!item)
|
|
1599
1599
|
return null;
|
|
1600
|
-
const href = `${statics.CARE_URL_FE}/${(_a =
|
|
1600
|
+
const href = `${statics.CARE_URL_FE}/${(_a = index$9.LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.HOSPITAL}/${item.slug}-${item.id}`;
|
|
1601
1601
|
return (React__default["default"].createElement(StyledItem$5, { key: item.id, href: href, "data-event-category": "Hamburger Navigation", "data-event-action": `Care Click ${index + 1}`, "data-event-label": href },
|
|
1602
1602
|
React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('navCareCardBg.svg'), alt: "", className: "bg-svg", loading: "lazy" }),
|
|
1603
1603
|
React__default["default"].createElement(StyledImageCard$3, null,
|
|
@@ -2464,7 +2464,7 @@ const MenuServiceList = ({ closePopup, menuItems = [] }) => {
|
|
|
2464
2464
|
React__default["default"].createElement(Categories, { UrlFE: statics.HOME_PAGE_URL, titleBtnViewMore: t('home.navigator.menuItem.allCategories'), menuItems: menuItems, headingTitle: t('home.navigator.menuItem.healthCategories'), onClosePopup: closePopup, activeItem: activeMenuService }),
|
|
2465
2465
|
activeMenuService === 'categories' && (React__default["default"].createElement(CategorySpotlights, { spotlightsList: (categories === null || categories === void 0 ? void 0 : categories.spotlights) || [], hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/spotlight/` })),
|
|
2466
2466
|
activeMenuService === 'tools' && (React__default["default"].createElement(ToolSpotlights, { spotlightHealthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.spotlights, hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$3.STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.HEALTH_TOOLS) || ''}` })),
|
|
2467
|
-
activeMenuService === 'care' && (React__default["default"].createElement(CareSpotlights, { spotlights: care === null || care === void 0 ? void 0 : care.spotlights, hrefViewMore: `${statics.CARE_URL_FE}/${(_b =
|
|
2467
|
+
activeMenuService === 'care' && (React__default["default"].createElement(CareSpotlights, { spotlights: care === null || care === void 0 ? void 0 : care.spotlights, hrefViewMore: `${statics.CARE_URL_FE}/${(_b = index$9.LOCALIZED_SLUGS[locale]) === null || _b === void 0 ? void 0 : _b.SPECIALTIES}` })),
|
|
2468
2468
|
activeMenuService === 'together' && (React__default["default"].createElement(CommunitySpotlights, { spotlights: together === null || together === void 0 ? void 0 : together.spotlights })),
|
|
2469
2469
|
activeMenuService === 'ecom' && (React__default["default"].createElement(EcomSpotlights, { helpfulUrls: ecom === null || ecom === void 0 ? void 0 : ecom.helpfulUrls })))));
|
|
2470
2470
|
};
|
|
@@ -2870,7 +2870,7 @@ const getTogetherUserPostsApiPath = (locale, isMarryBaby, apiDomain, params) =>
|
|
|
2870
2870
|
};
|
|
2871
2871
|
const getCareSearchUrl = ({ type, specialtySlug, locale, }) => {
|
|
2872
2872
|
var _a, _b;
|
|
2873
|
-
return `${(_a =
|
|
2873
|
+
return `${(_a = index$9.LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.ALL}/${((_b = index$9.LOCALIZED_SLUGS[locale]) === null || _b === void 0 ? void 0 : _b[type]) || 'doctor'}/${specialtySlug !== null && specialtySlug !== void 0 ? specialtySlug : ''}`;
|
|
2874
2874
|
};
|
|
2875
2875
|
const formatSpotlightsList = (spotlight) => {
|
|
2876
2876
|
if (!spotlight)
|
|
@@ -2911,10 +2911,10 @@ const BtnClosePopup = ({ onClosePopup }) => {
|
|
|
2911
2911
|
|
|
2912
2912
|
const PopupWrapper = ({ onClosePopup, isDisplay, children, isNavMenu, hideCloseBtn, }) => {
|
|
2913
2913
|
return (React__default["default"].createElement("div", { className: "hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools", "data-is-display": !!isDisplay, "data-is-nav-menu": !!isNavMenu },
|
|
2914
|
-
React__default["default"].createElement(index$
|
|
2914
|
+
React__default["default"].createElement(index$a.Container, { className: "hhgcomp-navigation-popupwrapper-menuwrapper-child" },
|
|
2915
2915
|
!hideCloseBtn && (React__default["default"].createElement("div", { className: styles.container },
|
|
2916
2916
|
React__default["default"].createElement(BtnClosePopup, { onClosePopup: onClosePopup }))),
|
|
2917
|
-
React__default["default"].createElement(index$
|
|
2917
|
+
React__default["default"].createElement(index$a.Container, { className: styles.gridContainer }, children))));
|
|
2918
2918
|
};
|
|
2919
2919
|
|
|
2920
2920
|
const MenuCareList = ({ careSpecialties = [], isOpen, onClose, spotlights = [], }) => {
|
|
@@ -2935,7 +2935,7 @@ const MenuCareList = ({ careSpecialties = [], isOpen, onClose, spotlights = [],
|
|
|
2935
2935
|
thumbnail: (specialty === null || specialty === void 0 ? void 0 : specialty.thumbnail) || '',
|
|
2936
2936
|
};
|
|
2937
2937
|
})) || [] }),
|
|
2938
|
-
React__default["default"].createElement(CareSpotlights, { spotlights: spotlights, hrefViewMore: `${statics.CARE_URL_FE}/${(_a =
|
|
2938
|
+
React__default["default"].createElement(CareSpotlights, { spotlights: spotlights, hrefViewMore: `${statics.CARE_URL_FE}/${(_a = index$9.LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.SPECIALTIES}/` })));
|
|
2939
2939
|
};
|
|
2940
2940
|
|
|
2941
2941
|
const MenuCategoriesList = ({ categories = [], spotlightsList = [], onClose, isOpen, }) => {
|
|
@@ -3004,13 +3004,13 @@ const ItemNavButton = ({ item, color = 'blue' }) => {
|
|
|
3004
3004
|
});
|
|
3005
3005
|
}
|
|
3006
3006
|
if (item.id === 'care') {
|
|
3007
|
-
Promise.resolve().then(function () { return require('./doctor-
|
|
3007
|
+
Promise.resolve().then(function () { return require('./doctor-d70d0f31.js'); }).then((data) => {
|
|
3008
3008
|
if (data === null || data === void 0 ? void 0 : data.default)
|
|
3009
3009
|
setIconJson(() => data.default);
|
|
3010
3010
|
});
|
|
3011
3011
|
}
|
|
3012
3012
|
else if (item.id === 'ecom') {
|
|
3013
|
-
Promise.resolve().then(function () { return require('./cart-
|
|
3013
|
+
Promise.resolve().then(function () { return require('./cart-d48967a8.js'); }).then((data) => {
|
|
3014
3014
|
if (data === null || data === void 0 ? void 0 : data.default)
|
|
3015
3015
|
setIconJson(() => data.default);
|
|
3016
3016
|
});
|
|
@@ -3059,7 +3059,7 @@ const ItemNavButton = ({ item, color = 'blue' }) => {
|
|
|
3059
3059
|
item.popupType === 'categories' ? (React__default["default"].createElement(MenuCategoriesList, { categories: categories === null || categories === void 0 ? void 0 : categories.items, spotlightsList: categories === null || categories === void 0 ? void 0 : categories.spotlights, onClose: onClose })) : item.popupType === 'tools' ? (React__default["default"].createElement(MenuHealthToolsList, { locale: locale, healthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.items, spotlightHealthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.spotlights, onClose: onClose })) : item.popupType === 'together' ? (React__default["default"].createElement(MenuCommunitiesList, { communities: together === null || together === void 0 ? void 0 : together.items, spotlights: together === null || together === void 0 ? void 0 : together.spotlights, onClose: onClose })) : item.popupType === 'care' ? (React__default["default"].createElement(MenuCareList, { careSpecialties: care === null || care === void 0 ? void 0 : care.items, spotlights: care === null || care === void 0 ? void 0 : care.spotlights, onClose: onClose })) : null));
|
|
3060
3060
|
};
|
|
3061
3061
|
|
|
3062
|
-
const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent, }) => {
|
|
3062
|
+
const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent, subHead, }) => {
|
|
3063
3063
|
var _a;
|
|
3064
3064
|
const { siteType, isMobile = false, locale, sitewideBanner, sitewideBannerShown = true, sponsorComponent, onBookingClick, currentUrl, onLoginClick, cartNumber,
|
|
3065
3065
|
// ssrMenuContent: { categories, healthTools, care, together },
|
|
@@ -3136,7 +3136,7 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
3136
3136
|
flexShrink: 0,
|
|
3137
3137
|
}, href: HOME_PAGE_URL },
|
|
3138
3138
|
React__default["default"].createElement("div", null,
|
|
3139
|
-
React__default["default"].createElement(index$
|
|
3139
|
+
React__default["default"].createElement(index$b.Logo, { style: {
|
|
3140
3140
|
display: 'flex',
|
|
3141
3141
|
}, type: logoType, badge: locale === 'id-ID' && (React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('sehat-badge.png'), width: "56", height: "23", loading: "lazy" })), dateForSeasonal: new Date(), locale: locale, key: typeof window !== 'undefined' ? 'client' : 'server' })))),
|
|
3142
3142
|
!isMobile && (React__default["default"].createElement(React__default["default"].Fragment, null, siteType === 'marryBaby' ? (React__default["default"].createElement(NavigationMenu, { menuItems: menuItems })) : (enableSearchBar && React__default["default"].createElement(NavigtionSearch, { siteType: siteType }))))),
|
|
@@ -3166,7 +3166,8 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
3166
3166
|
locale,
|
|
3167
3167
|
isMobile,
|
|
3168
3168
|
})
|
|
3169
|
-
: null
|
|
3169
|
+
: null,
|
|
3170
|
+
subHead && subHead));
|
|
3170
3171
|
};
|
|
3171
3172
|
const NavigtionSearch = ({ siteType }) => (React__default["default"].createElement(DisplayWrapper, { mediaQueryKey: "mbUp", className: siteType === 'marryBaby' ? 'marry-baby' : '' },
|
|
3172
3173
|
React__default["default"].createElement(SearchInput, { id: "desktop" })));
|
|
@@ -3360,7 +3361,7 @@ const StyledContainer = styled__default["default"].div `
|
|
|
3360
3361
|
|
|
3361
3362
|
const _NavigationV2 = (props) => {
|
|
3362
3363
|
var _a, _b;
|
|
3363
|
-
const { isMobile, locale, onTopBarAppears, languageOptions, sponsorComponent, sitewideBanner, sitewideBannerShown, className, logoComponent, } = props;
|
|
3364
|
+
const { isMobile, locale, onTopBarAppears, languageOptions, sponsorComponent, sitewideBanner, sitewideBannerShown, className, logoComponent, subHead, } = props;
|
|
3364
3365
|
const services = useNavServices();
|
|
3365
3366
|
useInsider();
|
|
3366
3367
|
const isShowingSiteWideBanner = sitewideBannerShown && !!sitewideBanner;
|
|
@@ -3378,7 +3379,7 @@ const _NavigationV2 = (props) => {
|
|
|
3378
3379
|
'--header-bottom': headerBottom + 'px',
|
|
3379
3380
|
}, className: className },
|
|
3380
3381
|
React__default["default"].createElement("section", { ref: headerRef },
|
|
3381
|
-
React__default["default"].createElement(NavigationBar, { menuItems: services, onTopBarAppears: onTopBarAppears, logoComponent: logoComponent, languageMenu: React__default["default"].createElement(LanguageSwitcher, { languageOptions: languageOptions, locale: locale }) }))));
|
|
3382
|
+
React__default["default"].createElement(NavigationBar, { menuItems: services, onTopBarAppears: onTopBarAppears, logoComponent: logoComponent, subHead: subHead, languageMenu: React__default["default"].createElement(LanguageSwitcher, { languageOptions: languageOptions, locale: locale }) }))));
|
|
3382
3383
|
};
|
|
3383
3384
|
const NavigationV2 = (props) => {
|
|
3384
3385
|
const propsWithDefaultValues = Object.assign({ siteType: 'helloSites', projectType: 'discover', locale: 'vi-VN', activeMenuService: 'categories', ssrMenuContent: {} }, props);
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index$1 = require('./index-fbc4ad0a.js');
|
|
4
|
+
var index$2 = require('./index-fd9e9e31.js');
|
|
5
|
+
var index = require('./index-d38624f2.js');
|
|
6
|
+
var Cookies = require('js-cookie');
|
|
7
|
+
var uuid = require('uuid');
|
|
8
|
+
var isProduction = require('./isProduction-cc2f71e7.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var Cookies__default = /*#__PURE__*/_interopDefault(Cookies);
|
|
13
|
+
|
|
14
|
+
const queryKeysJson = [
|
|
15
|
+
'form_submit_meta',
|
|
16
|
+
'selected_actions',
|
|
17
|
+
'current_selected',
|
|
18
|
+
'current_keys',
|
|
19
|
+
'current_polls',
|
|
20
|
+
];
|
|
21
|
+
const queryKeys = [
|
|
22
|
+
'bot_id',
|
|
23
|
+
'node_id',
|
|
24
|
+
// 'account_id',
|
|
25
|
+
'action_id',
|
|
26
|
+
'action_value',
|
|
27
|
+
'current_score',
|
|
28
|
+
'gtm_id',
|
|
29
|
+
'ga_client_id',
|
|
30
|
+
'is_new',
|
|
31
|
+
'title_url',
|
|
32
|
+
'url',
|
|
33
|
+
'window_id',
|
|
34
|
+
...queryKeysJson,
|
|
35
|
+
];
|
|
36
|
+
const overrideParamsByQuery = (params, query) => {
|
|
37
|
+
const keysSubotMessage = Object.keys(query);
|
|
38
|
+
keysSubotMessage.map((key) => {
|
|
39
|
+
const value = query[key];
|
|
40
|
+
if (key === 'source') {
|
|
41
|
+
params.is_new = value === 'first_login';
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (!queryKeys.includes(key)) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
/** Parse String to JSON */
|
|
48
|
+
if (queryKeysJson.includes(key)) {
|
|
49
|
+
try {
|
|
50
|
+
params[key] = JSON.parse(value);
|
|
51
|
+
}
|
|
52
|
+
catch (error) { }
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
/** Parse to number */
|
|
56
|
+
if (key === 'account_id' || key === 'current_score' || key === 'bot_id') {
|
|
57
|
+
params[key] = parseInt(value);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
params[key] = value;
|
|
61
|
+
});
|
|
62
|
+
return params;
|
|
63
|
+
};
|
|
64
|
+
const ssoIntents = (f) => [
|
|
65
|
+
{
|
|
66
|
+
id: uuid.v4(),
|
|
67
|
+
label: JSON.stringify({
|
|
68
|
+
title: '',
|
|
69
|
+
description: '',
|
|
70
|
+
}),
|
|
71
|
+
type: index.NodeIntentType.SSO_INTENT,
|
|
72
|
+
url: '',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: uuid.v4(),
|
|
76
|
+
label: JSON.stringify({
|
|
77
|
+
title: f({
|
|
78
|
+
id: 'subot.myHealth.title',
|
|
79
|
+
defaultMessage: 'My Health',
|
|
80
|
+
}),
|
|
81
|
+
description: f({
|
|
82
|
+
id: 'subot.myHealth.description',
|
|
83
|
+
defaultMessage: 'Personal identifiers (like your name) will always be removed to protect your privacy. ',
|
|
84
|
+
}),
|
|
85
|
+
}),
|
|
86
|
+
type: index.NodeIntentType.SSO_INTENT,
|
|
87
|
+
url: '/images/subot/my-health.svg',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: uuid.v4(),
|
|
91
|
+
label: JSON.stringify({
|
|
92
|
+
title: f({
|
|
93
|
+
id: 'subot.saveData.title',
|
|
94
|
+
defaultMessage: 'Save Data',
|
|
95
|
+
}),
|
|
96
|
+
description: f({
|
|
97
|
+
id: 'subot.saveData.description',
|
|
98
|
+
defaultMessage: 'Hellobacsi would like to learn from your data to provide better healthcare for you',
|
|
99
|
+
}),
|
|
100
|
+
}),
|
|
101
|
+
type: index.NodeIntentType.SSO_INTENT,
|
|
102
|
+
url: '/images/subot/file-storage.svg',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: uuid.v4(),
|
|
106
|
+
label: JSON.stringify({
|
|
107
|
+
title: f({
|
|
108
|
+
id: 'subot.productYourIdentifiers.title',
|
|
109
|
+
defaultMessage: 'Protect your identifiers',
|
|
110
|
+
}),
|
|
111
|
+
description: f({
|
|
112
|
+
id: 'subot.productYourIdentifiers.description',
|
|
113
|
+
defaultMessage: 'Personal identifiers (like your name) will always be removed to protect your privacy. ',
|
|
114
|
+
}),
|
|
115
|
+
}),
|
|
116
|
+
type: index.NodeIntentType.SSO_INTENT,
|
|
117
|
+
url: '/images/subot/shield.svg',
|
|
118
|
+
},
|
|
119
|
+
];
|
|
120
|
+
function checkUntilFinished(params) {
|
|
121
|
+
const condition = params.condition;
|
|
122
|
+
const finished = params.finished;
|
|
123
|
+
const timeout = params.timeout || 3000;
|
|
124
|
+
const startTime = new Date().getTime();
|
|
125
|
+
const intervalId = setInterval(() => {
|
|
126
|
+
const endTime = new Date().getTime();
|
|
127
|
+
if (endTime - startTime > timeout || condition()) {
|
|
128
|
+
clearInterval(intervalId);
|
|
129
|
+
finished();
|
|
130
|
+
}
|
|
131
|
+
}, 300);
|
|
132
|
+
}
|
|
133
|
+
const getHhgIdFromCookie = (reqCookie) => {
|
|
134
|
+
const parsedCookie = index$1.cookie.parse(reqCookie || '');
|
|
135
|
+
const reqHhgId = parsedCookie['hhg-id'];
|
|
136
|
+
return reqHhgId || Cookies__default["default"].get('hhg-id') || '';
|
|
137
|
+
};
|
|
138
|
+
const getSubotCookieId = (queryCookieId) => {
|
|
139
|
+
if (queryCookieId) {
|
|
140
|
+
Cookies__default["default"].set('hhg-id', queryCookieId);
|
|
141
|
+
return queryCookieId;
|
|
142
|
+
}
|
|
143
|
+
const cookieId = getHhgIdFromCookie();
|
|
144
|
+
if (cookieId) {
|
|
145
|
+
return cookieId;
|
|
146
|
+
}
|
|
147
|
+
const newCookieId = uuid.v4();
|
|
148
|
+
Cookies__default["default"].set('hhg-id', newCookieId);
|
|
149
|
+
return newCookieId;
|
|
150
|
+
};
|
|
151
|
+
const getUserIdFromCookie = (reqCookie) => {
|
|
152
|
+
const parsedCookie = index$1.cookie.parse(reqCookie || '');
|
|
153
|
+
const reqToken = parsedCookie[index$2.BEARER_TOKEN_COOKIE];
|
|
154
|
+
const token = reqToken || Cookies__default["default"].get(index$2.BEARER_TOKEN_COOKIE) || '';
|
|
155
|
+
try {
|
|
156
|
+
const base64Url = token.split('.')[1];
|
|
157
|
+
const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
158
|
+
const jsonPayload = decodeURIComponent(atob(base64)
|
|
159
|
+
.split('')
|
|
160
|
+
.map(function (c) {
|
|
161
|
+
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
|
162
|
+
})
|
|
163
|
+
.join(''));
|
|
164
|
+
return JSON.parse(jsonPayload).sub;
|
|
165
|
+
}
|
|
166
|
+
catch (err) {
|
|
167
|
+
return '';
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
const getUserInfoFromCookie = (reqCookie) => {
|
|
171
|
+
const parsedCookie = index$1.cookie.parse(reqCookie || '');
|
|
172
|
+
const reqToken = parsedCookie[index$2.BEARER_TOKEN_COOKIE];
|
|
173
|
+
const token = reqToken || Cookies__default["default"].get(index$2.BEARER_TOKEN_COOKIE) || '';
|
|
174
|
+
try {
|
|
175
|
+
const base64Url = token.split('.')[1];
|
|
176
|
+
const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
177
|
+
const jsonPayload = decodeURIComponent(atob(base64)
|
|
178
|
+
.split('')
|
|
179
|
+
.map(function (c) {
|
|
180
|
+
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
|
181
|
+
})
|
|
182
|
+
.join(''));
|
|
183
|
+
const payload = JSON.parse(jsonPayload);
|
|
184
|
+
return { email: payload.email, id: payload.sub };
|
|
185
|
+
}
|
|
186
|
+
catch (err) {
|
|
187
|
+
return { email: '', id: 0 };
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
/** To make sure have the same window id until refresh the page */
|
|
191
|
+
const generateWindowId = uuid.v4();
|
|
192
|
+
const getWindowId = () => {
|
|
193
|
+
return generateWindowId;
|
|
194
|
+
};
|
|
195
|
+
const getHelloSitesUrl = (locale, ignoreLocal) => {
|
|
196
|
+
const isLocalhost = ignoreLocal
|
|
197
|
+
? false
|
|
198
|
+
: typeof window !== 'undefined' &&
|
|
199
|
+
(window.location.hostname === 'localhost' ||
|
|
200
|
+
window.location.hostname === '127.0.0.1');
|
|
201
|
+
if (isLocalhost) {
|
|
202
|
+
return 'http://localhost'; // or any other localhost URL you want to use as fallback
|
|
203
|
+
}
|
|
204
|
+
return `https://${isProduction.isProduction ? '' : 'discover.'}${index$2.domainLocales[locale]}`;
|
|
205
|
+
};
|
|
206
|
+
const checkMobile = (userAgent) => {
|
|
207
|
+
const ua = userAgent || (typeof navigator === 'undefined' ? '' : navigator.userAgent);
|
|
208
|
+
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(ua) ||
|
|
209
|
+
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(ua.substring(0, 4))) {
|
|
210
|
+
return true;
|
|
211
|
+
}
|
|
212
|
+
return false;
|
|
213
|
+
};
|
|
214
|
+
const clickAndOpenInNewTab = (url) => {
|
|
215
|
+
const a = document.createElement('a');
|
|
216
|
+
a.href = url;
|
|
217
|
+
a.target = '_blank';
|
|
218
|
+
a.click();
|
|
219
|
+
};
|
|
220
|
+
const TIME_RESET_RESEND_OTP = 30;
|
|
221
|
+
|
|
222
|
+
exports.TIME_RESET_RESEND_OTP = TIME_RESET_RESEND_OTP;
|
|
223
|
+
exports.checkMobile = checkMobile;
|
|
224
|
+
exports.checkUntilFinished = checkUntilFinished;
|
|
225
|
+
exports.clickAndOpenInNewTab = clickAndOpenInNewTab;
|
|
226
|
+
exports.getHelloSitesUrl = getHelloSitesUrl;
|
|
227
|
+
exports.getHhgIdFromCookie = getHhgIdFromCookie;
|
|
228
|
+
exports.getSubotCookieId = getSubotCookieId;
|
|
229
|
+
exports.getUserIdFromCookie = getUserIdFromCookie;
|
|
230
|
+
exports.getUserInfoFromCookie = getUserInfoFromCookie;
|
|
231
|
+
exports.getWindowId = getWindowId;
|
|
232
|
+
exports.overrideParamsByQuery = overrideParamsByQuery;
|
|
233
|
+
exports.ssoIntents = ssoIntents;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-a8c3b1ed.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var core = require('@mantine/core');
|
|
6
|
-
var theme = require('./theme-
|
|
6
|
+
var theme = require('./theme-040e6fd9.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
9
9
|
|