@hhgtech/hhg-components 1.29.77 → 1.29.79
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-10720435.js → Instagram-5735e971.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-39c86c0a.js → constants-94957c92.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-44b6c361.js → core-279a7b4f.js} +2 -2
- package/build/{dataTransform-33582353.js → dataTransform-1c96db25.js} +1 -1
- package/build/{utils-027dab7c.js → defaultClassWrapper-feaae206.js} +118 -392
- package/build/ecom.js +5 -5
- package/build/esm/{Instagram-becdb106.js → Instagram-98c713bc.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-1cc39551.js → constants-78d473b4.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-adbcbe2f.js → core-2715a7c7.js} +2 -2
- package/build/esm/{dataTransform-38a6ba25.js → dataTransform-24bd11e8.js} +1 -1
- package/build/esm/{utils-e8c78fa7.js → defaultClassWrapper-fcdfc7a3.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-fa828c1a.js → getDynamicHealthTool-d805169a.js} +4 -4
- package/build/esm/{getSocialList-d49f96d5.js → getSocialList-c8edb201.js} +31 -12
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-bb71b6ce.js → index-0de64a0f.js} +6 -6
- package/build/esm/{constants-2eb60c45.js → index-122dd8ee.js} +113 -113
- package/build/esm/{index-ae717003.js → index-18a80466.js} +2 -2
- package/build/esm/{index-d6a9a175.js → index-1f6890ad.js} +21 -21
- package/build/esm/index-272d3d01.js +216 -0
- package/build/esm/{index-10f8055c.js → index-2a4e676a.js} +2 -2
- package/build/esm/index-40fc06d9.js +298 -0
- package/build/esm/{index-8ac7b919.js → index-47a90477.js} +5 -5
- package/build/esm/{index-95029090.js → index-47d01c08.js} +2 -2
- package/build/esm/{index-2f968acd.js → index-49d819b7.js} +3 -3
- package/build/esm/{index-16af59c8.js → index-5265867b.js} +10 -10
- package/build/esm/{index-2dfe0c66.js → index-63be4c47.js} +62 -62
- package/build/esm/{index-26a17cf1.js → index-670d21ca.js} +12 -12
- package/build/esm/{index-c8e55b19.js → index-687f9ee4.js} +4 -4
- package/build/esm/{index-bffe0e7b.js → index-741ce3ab.js} +1 -1
- package/build/esm/{index-8450b670.js → index-7c6316a6.js} +2 -2
- package/build/esm/{index-a1f5a5c0.js → index-877eed06.js} +1 -1
- package/build/esm/{index-0fed808d.js → index-92fd8661.js} +2 -2
- package/build/esm/{index-de28335d.js → index-9b3bf9da.js} +11 -11
- package/build/esm/{index-3d150702.js → index-ad5c69c9.js} +2 -2
- package/build/esm/{index-62a8b174.js → index-aeb4ceda.js} +37 -37
- package/build/esm/{index-c6d9afaf.js → index-b2eed677.js} +2 -2
- package/build/esm/{index-36e18ffd.js → index-c5b3a3ba.js} +46 -47
- package/build/esm/{index-258af431.js → index-e2d856fc.js} +1052 -1052
- package/build/esm/{index-d62e3f04.js → index-ec38e886.js} +2 -2
- package/build/esm/{index-9e37013f.js → index-ecb46439.js} +5 -5
- package/build/esm/{index-3131a682.js → index-ef96fd13.js} +2 -2
- package/build/esm/{index-95b9fc82.js → index-f672661d.js} +120 -120
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +66 -65
- package/build/esm/{index.styled-64a9c965.js → index.styled-eb1001c3.js} +2 -2
- package/build/esm/{index.styles-d670cbe0.js → index.styles-bff4ac47.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-878abd29.js → routing-e7ff0e08.js} +2 -2
- package/build/esm/subot.js +27 -233
- package/build/esm/together.js +35 -35
- package/build/esm/{types-7d111505.js → types-37f2c5d4.js} +30 -30
- package/build/esm/{types-a9beb2c2.js → types-ce933060.js} +13 -13
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-d9b70788.js → useCategory-8e1387db.js} +5 -5
- package/build/esm/{useHealthToolCache-606d76d5.js → useHealthToolCache-28115f15.js} +2 -2
- package/build/esm/{useMantineLocale-4a5da5bb.js → useMantineLocale-bcfdeb0c.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-ec3d3a0c.js → usePlacesAutocomplete-837f491d.js} +1 -1
- package/build/esm/{useTranslations-d90d5386.js → useTranslations-b8c49c9b.js} +1 -1
- package/build/esm/{utils-9a265ccf.js → utils-45e55363.js} +4 -4
- package/build/esm/{utils-0a07daac.js → utils-86ef2283.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-407c625b.js → getDynamicHealthTool-27b332df.js} +4 -4
- package/build/{getSocialList-4bfd3bcd.js → getSocialList-d16604ba.js} +32 -13
- package/build/hooks.js +17 -17
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-9c6a769a.js → index-1b7f73fa.js} +5 -5
- package/build/{index-44c62bda.js → index-27c71242.js} +3 -3
- package/build/{index-358bd4c9.js → index-4026b8c5.js} +68 -68
- package/build/{index-2ad99c01.js → index-42621fec.js} +2 -2
- package/build/index-4cd9cc62.js +233 -0
- package/build/{index-10b71661.js → index-4f5ce9db.js} +2 -2
- package/build/{index-65c1110f.js → index-5033f644.js} +120 -120
- package/build/{index-38b2495c.js → index-517f6538.js} +2 -2
- package/build/{index-8fbffaaf.js → index-561d71d9.js} +55 -55
- package/build/{index-23af6839.js → index-586f0a4f.js} +8 -8
- package/build/{index-5ef6d523.js → index-5aac5fb6.js} +2 -2
- package/build/{index-41aeff4b.js → index-5ff91adf.js} +7 -7
- package/build/{constants-451fe312.js → index-6036e2a0.js} +113 -113
- package/build/{index-b2fc27d1.js → index-65765b10.js} +1 -1
- package/build/{index-389ed3cc.js → index-701c74a1.js} +12 -12
- package/build/{index-9b49e11b.js → index-74b64958.js} +4 -4
- package/build/{index-26695c30.js → index-84f7ce80.js} +2 -2
- package/build/{index-f9919edd.js → index-875d81d3.js} +10 -10
- package/build/{index-1867685a.js → index-8c04d412.js} +6 -6
- package/build/{index-ebe8498b.js → index-a903fdaa.js} +57 -58
- package/build/{WhatsApp-3fd26435.js → index-aefa01a7.js} +276 -1
- package/build/{index-028a4e83.js → index-aff82754.js} +2 -2
- package/build/{index-38f1f6f3.js → index-c9e324de.js} +22 -22
- package/build/{index-a9b49c5d.js → index-dbaa00eb.js} +11 -11
- package/build/{index-8c0b1c02.js → index-e39f5b25.js} +2 -2
- package/build/{index-2ef89336.js → index-e914bc7c.js} +1050 -1050
- package/build/{index-b3edc143.js → index-e932125b.js} +2 -2
- package/build/index.css +1 -1
- package/build/index.js +108 -107
- package/build/{index.styled-07682ea0.js → index.styled-8c14cf6c.js} +2 -2
- package/build/{index.styles-7b2242d2.js → index.styles-61201019.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-b981f60b.js → routing-40d4f591.js} +2 -2
- package/build/subot.js +338 -545
- package/build/together.js +40 -40
- package/build/{types-efd3a733.js → types-692f1edc.js} +49 -49
- package/build/{types-44e5bb3b.js → types-ade68559.js} +191 -191
- package/build/types.js +1 -1
- package/build/{useCategory-afc35cb8.js → useCategory-bbe47716.js} +5 -5
- package/build/{useHealthToolCache-a2d8b96c.js → useHealthToolCache-80cb8990.js} +2 -2
- package/build/{useMantineLocale-b2014fa7.js → useMantineLocale-97b962eb.js} +3 -3
- package/build/{usePlacesAutocomplete-6c1d9d08.js → usePlacesAutocomplete-99a452c0.js} +1 -1
- package/build/{useTranslations-7cf26ebc.js → useTranslations-76f64595.js} +1 -1
- package/build/{utils-2bce0db7.js → utils-120200ad.js} +4 -4
- package/build/{utils-5ef558ae.js → utils-dc4471cf.js} +1 -1
- package/build/vaccination.js +26 -26
- package/package.json +2 -2
- package/build/esm/WhatsApp-ea79e6c6.js +0 -24
- /package/build/{BMI_BOYS.percentile.monthly-cb72630c.js → BMI_BOYS.percentile.monthly-b2166d34.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-d0234fe6.js → BMI_BOYS.percentile.weekly-8b80b329.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-45f72d65.js → BMI_BOYS.percentile.yearly-233e699b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-1d54e60c.js → BMI_BOYS.zscore.monthly-17ed8572.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-3a7f8b58.js → BMI_BOYS.zscore.weekly-36c9735b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-2e2fde40.js → BMI_BOYS.zscore.yearly-e43d7246.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-0b957ea8.js → BMI_GIRLS.percentile.monthly-94ddebb1.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-35358161.js → BMI_GIRLS.percentile.weekly-dc53474b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-86cf64c3.js → BMI_GIRLS.percentile.yearly-897e47f7.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-9c33405d.js → BMI_GIRLS.zscore.monthly-44dcd046.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-1756b9f7.js → BMI_GIRLS.zscore.weekly-6e9400e5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-f1a80a3f.js → BMI_GIRLS.zscore.yearly-3cd8c63d.js} +0 -0
- /package/build/{ChevronDown-4759a935.js → ChevronDown-2775b53a.js} +0 -0
- /package/build/{Close-0228d203.js → Close-f419724f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-6b654f6e.js → HEAD CIRCUM_BOYS.percentile.monthly-35ed4380.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-57dd7208.js → HEAD CIRCUM_BOYS.percentile.weekly-c7dc736d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-cfbf8e37.js → HEAD CIRCUM_BOYS.percentile.yearly-4c3b2318.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-2fdfecbf.js → HEAD CIRCUM_BOYS.zscore.monthly-1f1cc8dd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b9088de4.js → HEAD CIRCUM_BOYS.zscore.weekly-67593063.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c6448a06.js → HEAD CIRCUM_BOYS.zscore.yearly-197c548c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-8cebd1c4.js → HEAD CIRCUM_GIRLS.percentile.monthly-47029e7a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-799abee7.js → HEAD CIRCUM_GIRLS.percentile.weekly-faf6b122.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-b183def6.js → HEAD CIRCUM_GIRLS.percentile.yearly-f79cdc09.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-c3c54f79.js → HEAD CIRCUM_GIRLS.zscore.monthly-329fc5a0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e3c9e267.js → HEAD CIRCUM_GIRLS.zscore.weekly-aa73a5d6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-66f1302c.js → HEAD CIRCUM_GIRLS.zscore.yearly-5fdab08f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-bc422249.js → HEIGHT_BOYS.percentile.monthly-190579ee.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-56e69b4e.js → HEIGHT_BOYS.percentile.weekly-d902f59f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-9dcdc2e4.js → HEIGHT_BOYS.percentile.yearly-87254461.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-3d513fd7.js → HEIGHT_BOYS.zscore.monthly-c741a8bb.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-e4db0dd5.js → HEIGHT_BOYS.zscore.weekly-c0b2c6c0.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-20b4c77d.js → HEIGHT_BOYS.zscore.yearly-1a506923.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-4492f4fd.js → HEIGHT_GIRLS.percentile.monthly-9b2b4c93.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-98a1ca0d.js → HEIGHT_GIRLS.percentile.weekly-5ddecf9a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-e22a6bba.js → HEIGHT_GIRLS.percentile.yearly-fa289855.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-638e6a18.js → HEIGHT_GIRLS.zscore.monthly-c9db2d0d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-31393170.js → HEIGHT_GIRLS.zscore.weekly-c38c0951.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-2bf0a4a8.js → HEIGHT_GIRLS.zscore.yearly-d78a2a93.js} +0 -0
- /package/build/{Visible-47686e3a.js → Visible-34df6ee7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-f4167182.js → WEIGHT_BOYS.percentile.monthly-7a5f3721.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-e1a5993f.js → WEIGHT_BOYS.percentile.weekly-d86f23fa.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-2e427419.js → WEIGHT_BOYS.percentile.yearly-c154651c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-8fb3a2b7.js → WEIGHT_BOYS.zscore.monthly-8f39952a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-ebcff8a7.js → WEIGHT_BOYS.zscore.weekly-3118363f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-fb7bb26f.js → WEIGHT_BOYS.zscore.yearly-d463cfe7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-e7848f0f.js → WEIGHT_GIRLS.percentile.monthly-4d025f09.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-337f576e.js → WEIGHT_GIRLS.percentile.weekly-89f1f560.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-6ee35204.js → WEIGHT_GIRLS.percentile.yearly-e79630f6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4390e00e.js → WEIGHT_GIRLS.zscore.monthly-64bd7db5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-b2742b05.js → WEIGHT_GIRLS.zscore.weekly-628674eb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-fea85463.js → WEIGHT_GIRLS.zscore.yearly-5bb1b712.js} +0 -0
- /package/build/{animation-6fbad6af.js → animation-21a29164.js} +0 -0
- /package/build/{cart-c527be69.js → cart-cd1f9e9e.js} +0 -0
- /package/build/{cookieHelper-2f7b8bb5.js → cookieHelper-6fd4e238.js} +0 -0
- /package/build/{doctor-c26d2588.js → doctor-15fac518.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-68db008a.js → BMI_BOYS.percentile.monthly-bc430a4a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-48ca1732.js → BMI_BOYS.percentile.weekly-404f8241.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-ae0d3d02.js → BMI_BOYS.percentile.yearly-cc6a1393.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-3a642bb7.js → BMI_BOYS.zscore.monthly-e94926d8.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-249d18d3.js → BMI_BOYS.zscore.weekly-8d1da103.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-4f9791ee.js → BMI_BOYS.zscore.yearly-94f8b37e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-3b599a05.js → BMI_GIRLS.percentile.monthly-356bd71d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-16607ad8.js → BMI_GIRLS.percentile.weekly-72979d47.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-73336b57.js → BMI_GIRLS.percentile.yearly-729c84f5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-8f848687.js → BMI_GIRLS.zscore.monthly-6dea8018.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-8e2a9f4a.js → BMI_GIRLS.zscore.weekly-da7a5d01.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e34dfaa4.js → BMI_GIRLS.zscore.yearly-0b0a5cae.js} +0 -0
- /package/build/esm/{ChevronDown-c0329f44.js → ChevronDown-5f18ca6b.js} +0 -0
- /package/build/esm/{Close-d87e464b.js → Close-87c65991.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-527dce16.js → HEAD CIRCUM_BOYS.percentile.monthly-1c910c23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-98dd0a97.js → HEAD CIRCUM_BOYS.percentile.weekly-2da702f0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-8166ecf3.js → HEAD CIRCUM_BOYS.percentile.yearly-9fbeb684.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-30285ff5.js → HEAD CIRCUM_BOYS.zscore.monthly-c93df36e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cb5a5177.js → HEAD CIRCUM_BOYS.zscore.weekly-930f82b2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-6fb22cde.js → HEAD CIRCUM_BOYS.zscore.yearly-f7523042.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-04b6b926.js → HEAD CIRCUM_GIRLS.percentile.monthly-d93ddef7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-1241a9ec.js → HEAD CIRCUM_GIRLS.percentile.weekly-2c7db258.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-744c910b.js → HEAD CIRCUM_GIRLS.percentile.yearly-07202ee1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-d84c6e78.js → HEAD CIRCUM_GIRLS.zscore.monthly-fafa785c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-6b9ca043.js → HEAD CIRCUM_GIRLS.zscore.weekly-28b41bdb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-8d2bfd9b.js → HEAD CIRCUM_GIRLS.zscore.yearly-c5b3bc8b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-99472da3.js → HEIGHT_BOYS.percentile.monthly-0a092d31.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1aee0bde.js → HEIGHT_BOYS.percentile.weekly-5827b445.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-38092fb0.js → HEIGHT_BOYS.percentile.yearly-b88283c2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-f3f65922.js → HEIGHT_BOYS.zscore.monthly-d275f074.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-70d2afc1.js → HEIGHT_BOYS.zscore.weekly-20bbf392.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-4e6e2a36.js → HEIGHT_BOYS.zscore.yearly-2eea3a9c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-f5deee2b.js → HEIGHT_GIRLS.percentile.monthly-9ad65492.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0c657519.js → HEIGHT_GIRLS.percentile.weekly-898065d3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-1deed5e9.js → HEIGHT_GIRLS.percentile.yearly-ac5ceb79.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-cb644457.js → HEIGHT_GIRLS.zscore.monthly-327bdfa5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-49dd8375.js → HEIGHT_GIRLS.zscore.weekly-e25ddbc7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-950158e4.js → HEIGHT_GIRLS.zscore.yearly-5531c2e3.js} +0 -0
- /package/build/esm/{Visible-73c96479.js → Visible-70c720bb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-2ed3f112.js → WEIGHT_BOYS.percentile.monthly-e199416b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-3ced9bfa.js → WEIGHT_BOYS.percentile.weekly-0965076a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-e200a25c.js → WEIGHT_BOYS.percentile.yearly-d04404d7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4a00ce48.js → WEIGHT_BOYS.zscore.monthly-be1ae0cd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-cbd95b9c.js → WEIGHT_BOYS.zscore.weekly-8b6854c4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-70fa4821.js → WEIGHT_BOYS.zscore.yearly-bd90b96f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-e887c3ea.js → WEIGHT_GIRLS.percentile.monthly-a4bb8428.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-01c5ac35.js → WEIGHT_GIRLS.percentile.weekly-c288d810.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-27fc7e31.js → WEIGHT_GIRLS.percentile.yearly-73a5ae07.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-bf8085a6.js → WEIGHT_GIRLS.zscore.monthly-cbcfdab4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-729252a6.js → WEIGHT_GIRLS.zscore.weekly-185ff336.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-7aae5db4.js → WEIGHT_GIRLS.zscore.yearly-c31a0aee.js} +0 -0
- /package/build/esm/{animation-791a5496.js → animation-9a3ca482.js} +0 -0
- /package/build/esm/{cart-24fe471a.js → cart-5f758c33.js} +0 -0
- /package/build/esm/{cookieHelper-dc30b23e.js → cookieHelper-9c963e09.js} +0 -0
- /package/build/esm/{doctor-407e7c56.js → doctor-1d62f054.js} +0 -0
- /package/build/esm/{index-24b9c26b.js → index-4687d5f8.js} +0 -0
- /package/build/esm/{index-e39cfd72.js → index-90e772e4.js} +0 -0
- /package/build/esm/{index-a3f9e8d3.js → index-931414db.js} +0 -0
- /package/build/esm/{isProduction-34384c12.js → isProduction-d39b7ab2.js} +0 -0
- /package/build/esm/{localizeNumberFormat-674a367b.js → localizeNumberFormat-f838842a.js} +0 -0
- /package/build/esm/{normalizeLink-8ab2c8da.js → normalizeLink-65565106.js} +0 -0
- /package/build/esm/{number-ba9ba596.js → number-cad310d0.js} +0 -0
- /package/build/esm/{paths-50f78662.js → paths-8fc18a86.js} +0 -0
- /package/build/esm/{theme-f9fa9f7d.js → theme-eb1b39f6.js} +0 -0
- /package/build/esm/{translationsContext-af680337.js → translationsContext-dfb42bf8.js} +0 -0
- /package/build/esm/{tslib.es6-8f144c22.js → tslib.es6-efad16cf.js} +0 -0
- /package/build/esm/{useIsInit-8490d361.js → useIsInit-f341c0e8.js} +0 -0
- /package/build/esm/{useOutsideClick-43bfe834.js → useOutsideClick-e10b28ce.js} +0 -0
- /package/build/esm/{useScrollbarSize-7162b71f.js → useScrollbarSize-594c61c3.js} +0 -0
- /package/build/esm/{useUniqueId-472fb987.js → useUniqueId-d5f7586b.js} +0 -0
- /package/build/esm/{utils-1997593f.js → utils-0d590d5e.js} +0 -0
- /package/build/{index-bc8ea61e.js → index-0b957c10.js} +0 -0
- /package/build/{index-f9037c98.js → index-d54d6c50.js} +0 -0
- /package/build/{index-e8aa716f.js → index-d628859e.js} +0 -0
- /package/build/{index-058eef4b.js → index-d8c60733.js} +0 -0
- /package/build/{isProduction-38f0d828.js → isProduction-7f7f09ad.js} +0 -0
- /package/build/{localizeNumberFormat-a3608c43.js → localizeNumberFormat-011e6f65.js} +0 -0
- /package/build/{normalizeLink-e4b395be.js → normalizeLink-23b10200.js} +0 -0
- /package/build/{number-9ed235ec.js → number-249e0e0b.js} +0 -0
- /package/build/{paths-e9129f2e.js → paths-02f54499.js} +0 -0
- /package/build/{theme-9f0f3820.js → theme-416e0fd4.js} +0 -0
- /package/build/{translationsContext-bfbdca60.js → translationsContext-6f3c14ea.js} +0 -0
- /package/build/{tslib.es6-fd9cd13e.js → tslib.es6-dd1fc8f2.js} +0 -0
- /package/build/{useIsInit-35d2df26.js → useIsInit-bb64ffbf.js} +0 -0
- /package/build/{useOutsideClick-1f18b14b.js → useOutsideClick-bd35bba1.js} +0 -0
- /package/build/{useScrollbarSize-645a7822.js → useScrollbarSize-57b0fd8a.js} +0 -0
- /package/build/{useUniqueId-07b21aa4.js → useUniqueId-4bafae28.js} +0 -0
- /package/build/{utils-07a0efea.js → utils-3a589c92.js} +0 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index$1 = require('./index-aefa01a7.js');
|
|
4
|
+
var index$2 = require('./index-517f6538.js');
|
|
5
|
+
var index = require('./index-0b957c10.js');
|
|
6
|
+
var Cookies = require('js-cookie');
|
|
7
|
+
var uuid = require('uuid');
|
|
8
|
+
var isProduction = require('./isProduction-7f7f09ad.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-dd1fc8f2.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var core = require('@mantine/core');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-e914bc7c.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
9
9
|
|
|
@@ -1,110 +1,62 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-dd1fc8f2.js');
|
|
3
4
|
var React = require('react');
|
|
5
|
+
var defaultClassWrapper = require('./defaultClassWrapper-feaae206.js');
|
|
4
6
|
var styled = require('@emotion/styled');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-fd9cd13e.js');
|
|
8
|
-
var utils$1 = require('./utils-027dab7c.js');
|
|
7
|
+
var theme = require('./theme-416e0fd4.js');
|
|
8
|
+
var utils = require('./utils-3a589c92.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
13
13
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
background-color: ${theme.theme.colors.white};
|
|
21
|
-
border-radius: ${theme.theme.borderRadius};
|
|
22
|
-
box-shadow: 0px 4px 8px ${theme.theme.colors.gray200};
|
|
23
|
-
transform: translate(-50%, -50%);
|
|
24
|
-
transition: all 0.5s ease-in-out;
|
|
25
|
-
visibility: hidden;
|
|
26
|
-
|
|
27
|
-
&[data-open='true'] {
|
|
28
|
-
z-index: 400;
|
|
29
|
-
top: 50%;
|
|
30
|
-
opacity: 1;
|
|
31
|
-
visibility: visible;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&[data-open='false'] {
|
|
35
|
-
top: -50%;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&[data-type='lead'] {
|
|
39
|
-
width: 332px;
|
|
40
|
-
height: 460px;
|
|
41
|
-
|
|
42
|
-
div {
|
|
43
|
-
top: -15px;
|
|
44
|
-
right: -15px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&[data-type='form'] {
|
|
49
|
-
width: 496px;
|
|
50
|
-
height: 548px;
|
|
51
|
-
${utils.MediaQueries.mbDown} {
|
|
52
|
-
width: 340px;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
15
|
+
const StyledUserAvatar = styled__default["default"].div `
|
|
16
|
+
width: ${(props) => props.size || 40}px;
|
|
17
|
+
height: ${(props) => props.size || 40}px;
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
cursor: pointer;
|
|
55
20
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
width: calc(100% - 32px);
|
|
59
|
-
}
|
|
60
|
-
${utils.MediaQueries.mbUp} {
|
|
61
|
-
width: 100%;
|
|
62
|
-
max-width: 407px;
|
|
63
|
-
}
|
|
21
|
+
img {
|
|
22
|
+
border-radius: 50%;
|
|
64
23
|
}
|
|
65
24
|
|
|
66
|
-
.
|
|
67
|
-
|
|
68
|
-
z-index: 111;
|
|
25
|
+
.avatar {
|
|
26
|
+
width: 100%;
|
|
69
27
|
height: 100%;
|
|
70
|
-
|
|
28
|
+
object-fit: cover;
|
|
71
29
|
}
|
|
72
30
|
|
|
73
|
-
.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
31
|
+
.avatar-default {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
background-color: ${theme.theme.colors.secondaryBase};
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
color: white;
|
|
38
|
+
font-size: 1em;
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
line-height: 1;
|
|
84
41
|
}
|
|
85
|
-
`;
|
|
86
|
-
const StyledPopupWrapper = styled__default["default"].div `
|
|
87
|
-
position: fixed;
|
|
88
|
-
z-index: 110;
|
|
89
|
-
top: 0;
|
|
90
|
-
left: 0;
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 100%;
|
|
93
|
-
align-items: center;
|
|
94
|
-
background: rgba(38, 38, 38, 0.3);
|
|
95
42
|
|
|
96
|
-
&[data-
|
|
97
|
-
|
|
43
|
+
&[data-is-marrybaby='true'] {
|
|
44
|
+
.avatar-default {
|
|
45
|
+
background-color: ${theme.theme.mbColors.pink};
|
|
46
|
+
}
|
|
98
47
|
}
|
|
99
48
|
`;
|
|
100
49
|
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
50
|
+
const UserAvatar = (_a) => {
|
|
51
|
+
var { className, isMarryBaby: isMarryBabyProp, style, avatar, username, size } = _a, rest = tslib_es6.__rest(_a, ["className", "isMarryBaby", "style", "avatar", "username", "size"]);
|
|
52
|
+
const { data: { env: { isMarryBaby: isMarryBabyContext }, }, } = React.useContext(defaultClassWrapper.TogetherComponentGlobalContext);
|
|
53
|
+
const isMarryBaby = typeof isMarryBabyProp === 'boolean' ? isMarryBabyProp : isMarryBabyContext;
|
|
54
|
+
const [tempAvatar, setTempAvatar] = React.useState(false);
|
|
55
|
+
return (React__default["default"].createElement(StyledUserAvatar, Object.assign({ "data-is-marrybaby": isMarryBaby, className: className, style: style, size: size }, rest), avatar && !tempAvatar ? (React__default["default"].createElement("img", { loading: "lazy", src: avatar, className: `avatar`, alt: "avatar", onError: () => {
|
|
56
|
+
// e.currentTarget.onerror = null
|
|
57
|
+
if (!tempAvatar)
|
|
58
|
+
setTempAvatar(true);
|
|
59
|
+
} })) : (React__default["default"].createElement("div", { className: "avatar avatar-default" }, username && (username === null || username === void 0 ? void 0 : username.length) > 0 ? username[0].toUpperCase() : 'A'))));
|
|
108
60
|
};
|
|
109
61
|
|
|
110
62
|
const formatAuthor = (author) => {
|
|
@@ -794,51 +746,99 @@ var dataTransform = /*#__PURE__*/Object.freeze({
|
|
|
794
746
|
formatBabyGrowthContent: formatBabyGrowthContent
|
|
795
747
|
});
|
|
796
748
|
|
|
797
|
-
const
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
flex-shrink: 0;
|
|
801
|
-
cursor: pointer;
|
|
749
|
+
const StyledPopup = styled__default["default"].div `
|
|
750
|
+
position: fixed;
|
|
751
|
+
left: 50%;
|
|
802
752
|
|
|
803
|
-
|
|
804
|
-
|
|
753
|
+
padding: 0 16px 32px;
|
|
754
|
+
background-color: ${theme.theme.colors.white};
|
|
755
|
+
border-radius: ${theme.theme.borderRadius};
|
|
756
|
+
box-shadow: 0px 4px 8px ${theme.theme.colors.gray200};
|
|
757
|
+
transform: translate(-50%, -50%);
|
|
758
|
+
transition: all 0.5s ease-in-out;
|
|
759
|
+
visibility: hidden;
|
|
760
|
+
|
|
761
|
+
&[data-open='true'] {
|
|
762
|
+
z-index: 400;
|
|
763
|
+
top: 50%;
|
|
764
|
+
opacity: 1;
|
|
765
|
+
visibility: visible;
|
|
805
766
|
}
|
|
806
767
|
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
height: 100%;
|
|
810
|
-
object-fit: cover;
|
|
768
|
+
&[data-open='false'] {
|
|
769
|
+
top: -50%;
|
|
811
770
|
}
|
|
812
771
|
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
font-weight: bold;
|
|
822
|
-
line-height: 1;
|
|
772
|
+
&[data-type='lead'] {
|
|
773
|
+
width: 332px;
|
|
774
|
+
height: 460px;
|
|
775
|
+
|
|
776
|
+
div {
|
|
777
|
+
top: -15px;
|
|
778
|
+
right: -15px;
|
|
779
|
+
}
|
|
823
780
|
}
|
|
824
781
|
|
|
825
|
-
&[data-
|
|
826
|
-
|
|
827
|
-
|
|
782
|
+
&[data-type='form'] {
|
|
783
|
+
width: 496px;
|
|
784
|
+
height: 548px;
|
|
785
|
+
${utils.MediaQueries.mbDown} {
|
|
786
|
+
width: 340px;
|
|
828
787
|
}
|
|
829
788
|
}
|
|
789
|
+
|
|
790
|
+
&[data-type='confirm'] {
|
|
791
|
+
${utils.MediaQueries.mbDown} {
|
|
792
|
+
width: calc(100% - 32px);
|
|
793
|
+
}
|
|
794
|
+
${utils.MediaQueries.mbUp} {
|
|
795
|
+
width: 100%;
|
|
796
|
+
max-width: 407px;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.popup-content {
|
|
801
|
+
position: relative;
|
|
802
|
+
z-index: 111;
|
|
803
|
+
height: 100%;
|
|
804
|
+
padding: 16px;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.close-button {
|
|
808
|
+
position: absolute;
|
|
809
|
+
top: 16px;
|
|
810
|
+
right: 0;
|
|
811
|
+
cursor: pointer;
|
|
812
|
+
|
|
813
|
+
img {
|
|
814
|
+
width: 100%;
|
|
815
|
+
height: 100%;
|
|
816
|
+
border-radius: 50%;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
`;
|
|
820
|
+
const StyledPopupWrapper = styled__default["default"].div `
|
|
821
|
+
position: fixed;
|
|
822
|
+
z-index: 110;
|
|
823
|
+
top: 0;
|
|
824
|
+
left: 0;
|
|
825
|
+
width: 100%;
|
|
826
|
+
height: 100%;
|
|
827
|
+
align-items: center;
|
|
828
|
+
background: rgba(38, 38, 38, 0.3);
|
|
829
|
+
|
|
830
|
+
&[data-open='false'] {
|
|
831
|
+
display: none;
|
|
832
|
+
}
|
|
830
833
|
`;
|
|
831
834
|
|
|
832
|
-
const
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
if (!tempAvatar)
|
|
840
|
-
setTempAvatar(true);
|
|
841
|
-
} })) : (React__default["default"].createElement("div", { className: "avatar avatar-default" }, username && (username === null || username === void 0 ? void 0 : username.length) > 0 ? username[0].toUpperCase() : 'A'))));
|
|
835
|
+
const Popup = ({ type = 'lead', closeIcon, isOpen = true, onClose, children, className = '', enableAnimation = true, }) => {
|
|
836
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
837
|
+
React__default["default"].createElement(StyledPopup, { "data-open": isOpen, "data-type": type, "data-animation": enableAnimation },
|
|
838
|
+
React__default["default"].createElement("div", { className: `${className || ''} popup-content` },
|
|
839
|
+
!!closeIcon && (React__default["default"].createElement("div", { className: "close-button", onClick: onClose }, closeIcon)),
|
|
840
|
+
children)),
|
|
841
|
+
React__default["default"].createElement(StyledPopupWrapper, { "data-open": isOpen, onClick: onClose })));
|
|
842
842
|
};
|
|
843
843
|
|
|
844
844
|
exports.Popup = Popup;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var locale = require('date-fns/locale');
|
|
4
|
-
var index$1 = require('./index-
|
|
5
|
-
var isProduction = require('./isProduction-
|
|
4
|
+
var index$1 = require('./index-0b957c10.js');
|
|
5
|
+
var isProduction = require('./isProduction-7f7f09ad.js');
|
|
6
6
|
|
|
7
7
|
const siteHost = {
|
|
8
8
|
HELLO_HEALTH_GROUP: 'hellohealthgroup.com',
|