@hhgtech/hhg-components 1.28.68 → 1.28.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/BMI_BOYS.percentile.monthly-ec484e1d.js +688 -0
- package/build/BMI_BOYS.percentile.weekly-ffc6b5a3.js +182 -0
- package/build/BMI_BOYS.percentile.yearly-5d5dc6e9.js +83 -0
- package/build/BMI_BOYS.zscore.monthly-b8e9eb67.js +440 -0
- package/build/BMI_BOYS.zscore.weekly-b3a3fe35.js +118 -0
- package/build/BMI_BOYS.zscore.yearly-1049cff4.js +55 -0
- package/build/BMI_GIRLS.percentile.monthly-d29f1886.js +688 -0
- package/build/BMI_GIRLS.percentile.weekly-10dd3bc1.js +182 -0
- package/build/BMI_GIRLS.percentile.yearly-a4a14fb6.js +83 -0
- package/build/BMI_GIRLS.zscore.monthly-3b5b1c91.js +440 -0
- package/build/BMI_GIRLS.zscore.weekly-d8d9d85b.js +118 -0
- package/build/BMI_GIRLS.zscore.yearly-ad43326e.js +55 -0
- package/build/ChevronDown-ec7af49f.js +29 -0
- package/build/HEAD CIRCUM_BOYS.percentile.monthly-e28549df.js +688 -0
- package/build/HEAD CIRCUM_BOYS.percentile.weekly-7e0bbc5c.js +182 -0
- package/build/HEAD CIRCUM_BOYS.percentile.yearly-16d85faf.js +83 -0
- package/build/HEAD CIRCUM_BOYS.zscore.monthly-2905143d.js +440 -0
- package/build/HEAD CIRCUM_BOYS.zscore.weekly-c884eb7a.js +118 -0
- package/build/HEAD CIRCUM_BOYS.zscore.yearly-1d2e8236.js +55 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.monthly-ad2221f6.js +688 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.weekly-a0f66bc1.js +182 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.yearly-ccd016aa.js +83 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.monthly-0fd4416c.js +440 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9c6eb011.js +118 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.yearly-bbb354f1.js +55 -0
- package/build/HEIGHT_BOYS.percentile.monthly-a0f41c2e.js +688 -0
- package/build/HEIGHT_BOYS.percentile.weekly-7bc2b867.js +182 -0
- package/build/HEIGHT_BOYS.percentile.yearly-7c2f34c6.js +237 -0
- package/build/HEIGHT_BOYS.zscore.monthly-54789026.js +440 -0
- package/build/HEIGHT_BOYS.zscore.weekly-b1360897.js +118 -0
- package/build/HEIGHT_BOYS.zscore.yearly-d5eb559f.js +153 -0
- package/build/HEIGHT_GIRLS.percentile.monthly-6f7fef3f.js +688 -0
- package/build/HEIGHT_GIRLS.percentile.weekly-fb6605ac.js +182 -0
- package/build/HEIGHT_GIRLS.percentile.yearly-19052b79.js +237 -0
- package/build/HEIGHT_GIRLS.zscore.monthly-26c2a368.js +440 -0
- package/build/HEIGHT_GIRLS.zscore.weekly-305a8f9b.js +118 -0
- package/build/HEIGHT_GIRLS.zscore.yearly-f89639ce.js +153 -0
- package/build/Subot-cc39f8f4.js +217 -0
- package/build/Visible-4860305e.js +29 -0
- package/build/WEIGHT_BOYS.percentile.monthly-7763fdac.js +688 -0
- package/build/WEIGHT_BOYS.percentile.weekly-68c7793a.js +182 -0
- package/build/WEIGHT_BOYS.percentile.yearly-425ea795.js +138 -0
- package/build/WEIGHT_BOYS.zscore.monthly-09fbb556.js +440 -0
- package/build/WEIGHT_BOYS.zscore.weekly-5b55a950.js +118 -0
- package/build/WEIGHT_BOYS.zscore.yearly-a8492c27.js +90 -0
- package/build/WEIGHT_GIRLS.percentile.monthly-104461c2.js +688 -0
- package/build/WEIGHT_GIRLS.percentile.weekly-49d203bd.js +182 -0
- package/build/WEIGHT_GIRLS.percentile.yearly-f6f1c4ad.js +138 -0
- package/build/WEIGHT_GIRLS.zscore.monthly-ba6ce356.js +440 -0
- package/build/WEIGHT_GIRLS.zscore.weekly-c4c81f65.js +118 -0
- package/build/WEIGHT_GIRLS.zscore.yearly-e1085364.js +90 -0
- package/build/adapters.js +36 -1
- package/build/{esm/animation-a158bfd1.js → animation-4eb246c7.js} +32 -10
- package/build/babyGrowth.js +913 -47
- package/build/cache.js +13 -1
- package/build/care.js +38 -1
- package/build/components.js +186 -1
- package/build/constants-3864d668.js +935 -0
- package/build/constants-fc94e094.js +255 -0
- package/build/constants.js +43 -1
- package/build/cookieHelper-5530e215.js +43 -0
- package/build/core-04836b33.js +51 -0
- package/build/dataTransform-9b71cb70.js +66 -0
- package/build/ecom.js +745 -1
- package/build/esm/BMI_BOYS.percentile.monthly-6b3461e1.js +686 -0
- package/build/esm/BMI_BOYS.percentile.weekly-38412483.js +180 -0
- package/build/esm/BMI_BOYS.percentile.yearly-e8ca2213.js +81 -0
- package/build/esm/BMI_BOYS.zscore.monthly-2f32a201.js +438 -0
- package/build/esm/BMI_BOYS.zscore.weekly-8a24d204.js +116 -0
- package/build/esm/BMI_BOYS.zscore.yearly-b332a59e.js +53 -0
- package/build/esm/BMI_GIRLS.percentile.monthly-c9ac489f.js +686 -0
- package/build/esm/BMI_GIRLS.percentile.weekly-082d024f.js +180 -0
- package/build/esm/BMI_GIRLS.percentile.yearly-57a69990.js +81 -0
- package/build/esm/BMI_GIRLS.zscore.monthly-541623fd.js +438 -0
- package/build/esm/BMI_GIRLS.zscore.weekly-31b589ac.js +116 -0
- package/build/esm/BMI_GIRLS.zscore.yearly-9b283c7c.js +53 -0
- package/build/esm/ChevronDown-0ed72d46.js +7 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-2eb54be3.js +686 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-10259bd1.js +180 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-fff4845f.js +81 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-5ccfaf6a.js +438 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-dc789dde.js +116 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-5049a9b7.js +53 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-58902be4.js +686 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-c79eb8aa.js +180 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-6ecfd9f9.js +81 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-91b64b57.js +438 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-ec7b5e8d.js +116 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-43686573.js +53 -0
- package/build/esm/HEIGHT_BOYS.percentile.monthly-2c2ec339.js +686 -0
- package/build/esm/HEIGHT_BOYS.percentile.weekly-023fd92c.js +180 -0
- package/build/esm/HEIGHT_BOYS.percentile.yearly-64408f6e.js +235 -0
- package/build/esm/HEIGHT_BOYS.zscore.monthly-4c4c0583.js +438 -0
- package/build/esm/HEIGHT_BOYS.zscore.weekly-73d758dd.js +116 -0
- package/build/esm/HEIGHT_BOYS.zscore.yearly-63b0ee31.js +151 -0
- package/build/esm/HEIGHT_GIRLS.percentile.monthly-220a156b.js +686 -0
- package/build/esm/HEIGHT_GIRLS.percentile.weekly-39ed86d3.js +180 -0
- package/build/esm/HEIGHT_GIRLS.percentile.yearly-f6f9beda.js +235 -0
- package/build/esm/HEIGHT_GIRLS.zscore.monthly-98da19db.js +438 -0
- package/build/esm/HEIGHT_GIRLS.zscore.weekly-b46182b8.js +116 -0
- package/build/esm/HEIGHT_GIRLS.zscore.yearly-e17c3753.js +151 -0
- package/build/esm/Subot-73dd692f.js +212 -0
- package/build/esm/Visible-b2077c55.js +7 -0
- package/build/esm/WEIGHT_BOYS.percentile.monthly-43751c6a.js +686 -0
- package/build/esm/WEIGHT_BOYS.percentile.weekly-65778018.js +180 -0
- package/build/esm/WEIGHT_BOYS.percentile.yearly-68c4f38f.js +136 -0
- package/build/esm/WEIGHT_BOYS.zscore.monthly-847746a9.js +438 -0
- package/build/esm/WEIGHT_BOYS.zscore.weekly-a1f2fe34.js +116 -0
- package/build/esm/WEIGHT_BOYS.zscore.yearly-119adddc.js +88 -0
- package/build/esm/WEIGHT_GIRLS.percentile.monthly-4c5ceb09.js +686 -0
- package/build/esm/WEIGHT_GIRLS.percentile.weekly-ddff2e29.js +180 -0
- package/build/esm/WEIGHT_GIRLS.percentile.yearly-5a344597.js +136 -0
- package/build/esm/WEIGHT_GIRLS.zscore.monthly-a6917c8a.js +438 -0
- package/build/esm/WEIGHT_GIRLS.zscore.weekly-5b74c62e.js +116 -0
- package/build/esm/WEIGHT_GIRLS.zscore.yearly-8507cd6a.js +88 -0
- package/build/esm/adapters.js +26 -1
- package/build/{animation-ea278d9a.js → esm/animation-bdb3ff49.js} +22 -10
- package/build/esm/babyGrowth.js +883 -47
- package/build/esm/cache.js +3 -1
- package/build/esm/care.js +26 -1
- package/build/esm/components.js +88 -1
- package/build/esm/constants-bf79fcda.js +238 -0
- package/build/esm/constants-da0dfbf1.js +932 -0
- package/build/esm/constants.js +4 -1
- package/build/esm/cookieHelper-8ee29f1a.js +39 -0
- package/build/esm/core-23d12cc0.js +47 -0
- package/build/esm/dataTransform-1495a226.js +56 -0
- package/build/esm/ecom.js +737 -1
- package/build/esm/footer.js +31 -1
- package/build/esm/gAssets.js +5 -1
- package/build/esm/getDynamicHealthTool-a43e5baa.js +44 -0
- package/build/esm/getSocialList-961c0579.js +66 -0
- package/build/esm/hooks.js +21 -1
- package/build/esm/i18n-values/en-PH.js +600 -1
- package/build/esm/i18n-values/hi-IN.js +600 -1
- package/build/esm/i18n-values/id-ID.js +600 -1
- package/build/esm/i18n-values/km-KH.js +600 -1
- package/build/esm/i18n-values/ms-MY.js +602 -1
- package/build/esm/i18n-values/my-MM.js +600 -1
- package/build/esm/i18n-values/th-TH.js +600 -1
- package/build/esm/i18n-values/tl-PH.js +600 -1
- package/build/esm/i18n-values/vi-VN.js +607 -1
- package/build/esm/i18n-values/vi-VN_MB.js +607 -1
- package/build/esm/i18n-values/zh-TW.js +600 -1
- package/build/esm/i18n.js +55 -1
- package/build/esm/i18nV2.js +18 -1
- package/build/esm/index-01e95463.js +1936 -0
- package/build/esm/index-0b1da466.js +8 -0
- package/build/esm/index-191e851e.js +33 -0
- package/build/esm/index-2a68f8b2.js +24 -0
- package/build/esm/index-355c0d8a.js +17 -0
- package/build/esm/index-552efa5f.js +8302 -0
- package/build/esm/index-652f4b90.js +116 -0
- package/build/esm/index-70eeb14d.js +24 -0
- package/build/esm/index-852bb5ca.js +905 -0
- package/build/esm/index-9622b7d8.js +23 -0
- package/build/esm/index-9d3bbec1.js +124 -0
- package/build/esm/index-a23ed47f.js +53 -0
- package/build/esm/index-a3806b2a.js +14 -0
- package/build/esm/index-a5ac9bab.js +32 -0
- package/build/esm/index-a8506e24.js +152 -0
- package/build/esm/index-aa97bf26.js +33 -0
- package/build/esm/index-bd89745e.js +151 -0
- package/build/esm/index-bf14ddf1.js +184 -0
- package/build/esm/index-c28b5670.js +3241 -0
- package/build/esm/index-cc7415a3.js +837 -0
- package/build/esm/index-d1d2e96b.js +29 -0
- package/build/esm/index-d57cd8e6.js +615 -0
- package/build/esm/index-e183dc84.js +71 -0
- package/build/esm/index-ebb8bd0e.js +149 -0
- package/build/esm/index-ec1cc2ea.js +52 -0
- package/build/esm/index-f1227130.js +370 -0
- package/build/esm/index-f5f8c84b.js +5 -0
- package/build/esm/index-fb17aef5.js +12 -0
- package/build/esm/index.js +190 -1
- package/build/{index.styled-625bfdc7.js → esm/index.styled-385c2908.js} +17 -5
- package/build/esm/index.styles-31411b37.js +1303 -0
- package/build/esm/isProduction-9081cff7.js +27 -0
- package/build/esm/lead.js +2140 -1
- package/build/esm/localizeNumberFormat-d3e4f990.js +23 -0
- package/build/esm/mantine.js +113 -1
- package/build/esm/misc.js +22 -1
- package/build/esm/navigation.js +51 -1
- package/build/esm/normalizeLink-139f9dfd.js +12 -0
- package/build/esm/number-f0945de9.js +38 -0
- package/build/esm/onboardingV2.js +860 -34
- package/build/esm/paths-4eadd090.js +14 -0
- package/build/esm/pwg.js +208 -7
- package/build/esm/routing-b5780749.js +40 -0
- package/build/esm/subot.js +4553 -134
- package/build/esm/theme-7522724d.js +186 -0
- package/build/esm/together.js +52 -1
- package/build/esm/translationsContext-62ed87ff.js +5 -0
- package/build/esm/tslib.es6-f79929c2.js +38 -0
- package/build/esm/types-0757e895.js +8015 -0
- package/build/esm/types-40018b94.js +3432 -0
- package/build/esm/types-d32df09b.js +21 -0
- package/build/esm/types.js +1 -1
- package/build/esm/unifyEnv.js +42 -1
- package/build/esm/useCategory-e00a99e3.js +292 -0
- package/build/esm/useHealthToolCache-3ab5f2b6.js +17 -0
- package/build/esm/useIsInit-18a571ff.js +11 -0
- package/build/esm/useOutsideClick-8a0c90ee.js +45 -0
- package/build/esm/usePlacesAutocomplete-d9cfd28e.js +80 -0
- package/build/esm/useScrollbarSize-ee04fb14.js +57 -0
- package/build/esm/useTranslations-d53557b4.js +26 -0
- package/build/esm/useUniqueId-fc42d583.js +41 -0
- package/build/esm/utils-2af1561c.js +367 -0
- package/build/esm/utils-5e5da593.js +22 -0
- package/build/esm/utils-72693be6.js +1124 -0
- package/build/esm/utils-f7ab8c32.js +132 -0
- package/build/esm/vaccination.js +868 -40
- package/build/footer.js +39 -1
- package/build/gAssets.js +14 -1
- package/build/getDynamicHealthTool-b66c50c2.js +48 -0
- package/build/getSocialList-0c2f74e9.js +72 -0
- package/build/hooks.js +44 -1
- package/build/i18n-values/en-PH.js +611 -1
- package/build/i18n-values/hi-IN.js +611 -1
- package/build/i18n-values/id-ID.js +611 -1
- package/build/i18n-values/km-KH.js +611 -1
- package/build/i18n-values/ms-MY.js +613 -1
- package/build/i18n-values/my-MM.js +611 -1
- package/build/i18n-values/th-TH.js +611 -1
- package/build/i18n-values/tl-PH.js +611 -1
- package/build/i18n-values/vi-VN.js +618 -1
- package/build/i18n-values/vi-VN_MB.js +618 -1
- package/build/i18n-values/zh-TW.js +611 -1
- package/build/i18n.js +64 -1
- package/build/i18nV2.js +26 -1
- package/build/index-13da9bbd.js +8373 -0
- package/build/index-165c76af.js +30 -0
- package/build/index-2d4e4a2c.js +30 -0
- package/build/index-3540ce3f.js +380 -0
- package/build/index-473e8c3c.js +39 -0
- package/build/index-48b608d8.js +123 -0
- package/build/index-4d393920.js +191 -0
- package/build/index-51cda470.js +39 -0
- package/build/index-5e3660ec.js +14 -0
- package/build/index-69a38997.js +930 -0
- package/build/index-7144e07a.js +38 -0
- package/build/index-72944b3e.js +853 -0
- package/build/index-78055ee8.js +3261 -0
- package/build/index-95dd817d.js +1994 -0
- package/build/index-9625ab6c.js +7 -0
- package/build/index-970717a9.js +156 -0
- package/build/index-97f95550.js +23 -0
- package/build/index-a00da8f4.js +59 -0
- package/build/index-a69b48c2.js +20 -0
- package/build/index-add37f18.js +624 -0
- package/build/index-b0333d49.js +30 -0
- package/build/index-be2d90cb.js +35 -0
- package/build/index-bef45e43.js +55 -0
- package/build/index-c7dc021b.js +157 -0
- package/build/index-cd1375cc.js +18 -0
- package/build/index-d3d46009.js +159 -0
- package/build/index-e592738b.js +77 -0
- package/build/index-ed5f7bf2.js +133 -0
- package/build/index.js +436 -1
- package/build/{esm/index.styled-ac7ac0fc.js → index.styled-97b37364.js} +25 -5
- package/build/index.styles-2434bd17.js +1342 -0
- package/build/isProduction-4f301fa7.js +29 -0
- package/build/lead.js +2168 -1
- package/build/localizeNumberFormat-84d686f7.js +31 -0
- package/build/mantine.js +154 -1
- package/build/misc.js +70 -1
- package/build/navigation.js +61 -1
- package/build/normalizeLink-cc2af392.js +15 -0
- package/build/number-29e6fe47.js +40 -0
- package/build/onboardingV2.js +892 -34
- package/build/paths-da1bc0ab.js +16 -0
- package/build/pwg.js +217 -7
- package/build/routing-b27d22a5.js +46 -0
- package/build/subot.js +4592 -134
- package/build/theme-30426d81.js +189 -0
- package/build/together.js +112 -1
- package/build/translationsContext-7e9f4617.js +7 -0
- package/build/tslib.es6-abc17c4d.js +41 -0
- package/build/types-52edc091.js +24 -0
- package/build/types-72f2c593.js +8084 -0
- package/build/types-b7c4f1cc.js +3446 -0
- package/build/types.js +56 -1
- package/build/unifyEnv.js +46 -1
- package/build/useCategory-c53c40ba.js +299 -0
- package/build/useHealthToolCache-d358ef43.js +19 -0
- package/build/useIsInit-447f599e.js +13 -0
- package/build/useOutsideClick-44f3b64d.js +49 -0
- package/build/usePlacesAutocomplete-f63f4097.js +84 -0
- package/build/useScrollbarSize-3e11e4b6.js +64 -0
- package/build/useTranslations-64bdaca7.js +32 -0
- package/build/useUniqueId-27dee48b.js +44 -0
- package/build/utils-2b307237.js +25 -0
- package/build/utils-386fbc52.js +1171 -0
- package/build/utils-5c554121.js +384 -0
- package/build/utils-d8cae1f5.js +143 -0
- package/build/vaccination.js +891 -40
- package/package.json +4 -5
- package/build/BMI_BOYS.percentile.monthly-8cc875f7.js +0 -1
- package/build/BMI_BOYS.percentile.weekly-b45b05e3.js +0 -1
- package/build/BMI_BOYS.percentile.yearly-e4f1d19c.js +0 -1
- package/build/BMI_BOYS.zscore.monthly-e51737eb.js +0 -1
- package/build/BMI_BOYS.zscore.weekly-4080c0d5.js +0 -1
- package/build/BMI_BOYS.zscore.yearly-703e5747.js +0 -1
- package/build/BMI_GIRLS.percentile.monthly-ac5a001d.js +0 -1
- package/build/BMI_GIRLS.percentile.weekly-6a6f4703.js +0 -1
- package/build/BMI_GIRLS.percentile.yearly-8eb7e8e5.js +0 -1
- package/build/BMI_GIRLS.zscore.monthly-c2763465.js +0 -1
- package/build/BMI_GIRLS.zscore.weekly-7438d8b6.js +0 -1
- package/build/BMI_GIRLS.zscore.yearly-a56ffb0c.js +0 -1
- package/build/ChevronDown-81b50697.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.monthly-cccf9306.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.weekly-85fc8a7e.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.yearly-d22ad913.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.monthly-4db20906.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.weekly-1a4dc975.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.yearly-a2bcdd3a.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.monthly-13e127f5.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.weekly-95a7695c.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.yearly-852dc893.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.monthly-9865857d.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9bdf4dda.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.yearly-ac24fb2f.js +0 -1
- package/build/HEIGHT_BOYS.percentile.monthly-691b0568.js +0 -1
- package/build/HEIGHT_BOYS.percentile.weekly-520bd6ac.js +0 -1
- package/build/HEIGHT_BOYS.percentile.yearly-9093722e.js +0 -1
- package/build/HEIGHT_BOYS.zscore.monthly-84db220e.js +0 -1
- package/build/HEIGHT_BOYS.zscore.weekly-ce0c52d1.js +0 -1
- package/build/HEIGHT_BOYS.zscore.yearly-dab7d4e0.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.monthly-7f42e4cd.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.weekly-79ca42e5.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.yearly-4e11d0f8.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.monthly-74be7929.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.weekly-a47a1d90.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.yearly-f4984496.js +0 -1
- package/build/Subot-b0700a95.js +0 -1
- package/build/Visible-0267024a.js +0 -1
- package/build/WEIGHT_BOYS.percentile.monthly-08b33be0.js +0 -1
- package/build/WEIGHT_BOYS.percentile.weekly-65a4fa70.js +0 -1
- package/build/WEIGHT_BOYS.percentile.yearly-f3b46cc5.js +0 -1
- package/build/WEIGHT_BOYS.zscore.monthly-d1191a6a.js +0 -1
- package/build/WEIGHT_BOYS.zscore.weekly-61c60cf9.js +0 -1
- package/build/WEIGHT_BOYS.zscore.yearly-0d89c866.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.monthly-221c1ba4.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.weekly-fbd203a6.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.yearly-36a909c2.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.monthly-09b6ae5b.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.weekly-7ada849a.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.yearly-5115a509.js +0 -1
- package/build/constants-47b9b5ff.js +0 -108
- package/build/constants-8d5fe5b9.js +0 -1
- package/build/cookieHelper-effc4373.js +0 -1
- package/build/core-fc6dbe08.js +0 -1
- package/build/dataTransform-ad721ec5.js +0 -1
- package/build/esm/BMI_BOYS.percentile.monthly-2aa26d5a.js +0 -1
- package/build/esm/BMI_BOYS.percentile.weekly-838f6b27.js +0 -1
- package/build/esm/BMI_BOYS.percentile.yearly-e77609d7.js +0 -1
- package/build/esm/BMI_BOYS.zscore.monthly-2657168d.js +0 -1
- package/build/esm/BMI_BOYS.zscore.weekly-d3c18887.js +0 -1
- package/build/esm/BMI_BOYS.zscore.yearly-3759a54e.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.monthly-f3e35273.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.weekly-7936ee97.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.yearly-757b0bc4.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.monthly-d9760b61.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.weekly-a58e0db1.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.yearly-92413c27.js +0 -1
- package/build/esm/ChevronDown-e7d44dc3.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-c50f125e.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-29038598.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-32c4e2be.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-cd04e4b1.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-6b63745c.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-3a5be78c.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-c7996a02.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-553c94d5.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-97f86688.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-a442f7cc.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-cdd37afd.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-50d9daff.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.monthly-53580c1f.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.weekly-60514fb8.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.yearly-d6b456a7.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.monthly-21bd1444.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.weekly-2a4e7aa0.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.yearly-7f68c522.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.monthly-d5d7448a.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.weekly-c3c18801.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.yearly-3491901c.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.monthly-9f15dd03.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.weekly-81319284.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.yearly-8a7db57c.js +0 -1
- package/build/esm/Subot-fcd7c77c.js +0 -1
- package/build/esm/Visible-66d0e6f3.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.monthly-0f5ea175.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.weekly-88f50098.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.yearly-63383bc3.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.monthly-bf93eec1.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.weekly-fe0600be.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.yearly-4212bebb.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.monthly-6cc8cf8c.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.weekly-05d66e6d.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.yearly-b8c1af06.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.monthly-8c9195d5.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.weekly-4ef9aeee.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.yearly-0ccaeb51.js +0 -1
- package/build/esm/constants-046883ea.js +0 -1
- package/build/esm/constants-1e65de37.js +0 -108
- package/build/esm/cookieHelper-e37e6893.js +0 -1
- package/build/esm/core-7a237cdc.js +0 -1
- package/build/esm/dataTransform-f4476a6b.js +0 -1
- package/build/esm/getDynamicHealthTool-e095ea8b.js +0 -1
- package/build/esm/getSocialList-5f74d2b2.js +0 -1
- package/build/esm/index-006bca17.js +0 -1
- package/build/esm/index-068a9606.js +0 -137
- package/build/esm/index-0d0e5f45.js +0 -1
- package/build/esm/index-1e29d7b0.js +0 -1
- package/build/esm/index-2b572b4f.js +0 -1
- package/build/esm/index-318d4230.js +0 -117
- package/build/esm/index-39174b30.js +0 -1
- package/build/esm/index-3bfcc95c.js +0 -1
- package/build/esm/index-3c612859.js +0 -1
- package/build/esm/index-4004c359.js +0 -113
- package/build/esm/index-41f67971.js +0 -177
- package/build/esm/index-42a8c7e8.js +0 -1430
- package/build/esm/index-461eded2.js +0 -2748
- package/build/esm/index-575f65cb.js +0 -1
- package/build/esm/index-7f4008ff.js +0 -1
- package/build/esm/index-81dbde00.js +0 -375
- package/build/esm/index-99348fe5.js +0 -1
- package/build/esm/index-9b8a2194.js +0 -1
- package/build/esm/index-9d529405.js +0 -1
- package/build/esm/index-a445a873.js +0 -1
- package/build/esm/index-ab99f4fa.js +0 -1
- package/build/esm/index-b7782e6c.js +0 -1
- package/build/esm/index-b7a87c5c.js +0 -50
- package/build/esm/index-c737fbcc.js +0 -1
- package/build/esm/index-dfe2918d.js +0 -1
- package/build/esm/index-e7dea007.js +0 -1
- package/build/esm/index-eab0e39a.js +0 -1
- package/build/esm/index-fa743e14.js +0 -1
- package/build/esm/index.styles-d0b249c6.js +0 -817
- package/build/esm/isProduction-819e0c5c.js +0 -1
- package/build/esm/localizeNumberFormat-87b8adfd.js +0 -1
- package/build/esm/normalizeLink-86ab5a4c.js +0 -1
- package/build/esm/number-087a7e5f.js +0 -1
- package/build/esm/paths-838a5528.js +0 -1
- package/build/esm/routing-c85cbf05.js +0 -1
- package/build/esm/theme-691eca44.js +0 -1
- package/build/esm/translationsContext-f8842fe7.js +0 -1
- package/build/esm/tslib.es6-1ab8a2bb.js +0 -1
- package/build/esm/types-2d76a291.js +0 -3004
- package/build/esm/types-81267cf7.js +0 -1
- package/build/esm/types-e02aa1d1.js +0 -785
- package/build/esm/useCategory-16048c77.js +0 -1
- package/build/esm/useHealthToolCache-b2ecca8b.js +0 -1
- package/build/esm/useIsInit-c9c6a218.js +0 -1
- package/build/esm/useOutsideClick-9787ba70.js +0 -1
- package/build/esm/usePlacesAutocomplete-1966a8e8.js +0 -1
- package/build/esm/useScrollbarSize-2cadb783.js +0 -1
- package/build/esm/useTranslations-06f29a74.js +0 -1
- package/build/esm/useUniqueId-8d28d0f0.js +0 -1
- package/build/esm/utils-21a3e198.js +0 -1
- package/build/esm/utils-581f9d39.js +0 -8
- package/build/esm/utils-8845cf64.js +0 -141
- package/build/esm/utils-9188a853.js +0 -1
- package/build/getDynamicHealthTool-110fd918.js +0 -1
- package/build/getSocialList-eca125e9.js +0 -1
- package/build/index-06e0154a.js +0 -177
- package/build/index-07abd94a.js +0 -1
- package/build/index-0c773078.js +0 -117
- package/build/index-170f5567.js +0 -1
- package/build/index-19ccb0c7.js +0 -1
- package/build/index-219cacd2.js +0 -1
- package/build/index-2c0386df.js +0 -50
- package/build/index-2ce34495.js +0 -1
- package/build/index-3f31aa06.js +0 -1
- package/build/index-686fe563.js +0 -1
- package/build/index-6c8c7fa5.js +0 -1
- package/build/index-76c307b4.js +0 -375
- package/build/index-78e20b2b.js +0 -1
- package/build/index-853a455f.js +0 -1
- package/build/index-9834ba3a.js +0 -1
- package/build/index-9c1259e4.js +0 -1
- package/build/index-9eed92e6.js +0 -1
- package/build/index-a046b313.js +0 -137
- package/build/index-ae78fa34.js +0 -113
- package/build/index-c4552011.js +0 -1
- package/build/index-d0a7d5e2.js +0 -1
- package/build/index-d59720e6.js +0 -1
- package/build/index-de63ce4e.js +0 -1
- package/build/index-e363ea7e.js +0 -1
- package/build/index-e4952f3b.js +0 -2748
- package/build/index-e9919dca.js +0 -1430
- package/build/index-f124e061.js +0 -1
- package/build/index-fc3d21c5.js +0 -1
- package/build/index.styles-e56f16e2.js +0 -817
- package/build/isProduction-b8d43f53.js +0 -1
- package/build/localizeNumberFormat-7b0e4009.js +0 -1
- package/build/normalizeLink-eb3980aa.js +0 -1
- package/build/number-03c2dc35.js +0 -1
- package/build/paths-38b399e5.js +0 -1
- package/build/routing-fa35242c.js +0 -1
- package/build/theme-58404344.js +0 -1
- package/build/translationsContext-6a4e467c.js +0 -1
- package/build/tslib.es6-f82cfdbc.js +0 -1
- package/build/types-006c0884.js +0 -785
- package/build/types-48100068.js +0 -3004
- package/build/types-b4886ab8.js +0 -1
- package/build/useCategory-5efbe937.js +0 -1
- package/build/useHealthToolCache-4085d047.js +0 -1
- package/build/useIsInit-cde99e17.js +0 -1
- package/build/useOutsideClick-8d455bb1.js +0 -1
- package/build/usePlacesAutocomplete-fa0acdc7.js +0 -1
- package/build/useScrollbarSize-3593573d.js +0 -1
- package/build/useTranslations-d91f297f.js +0 -1
- package/build/useUniqueId-76286c45.js +0 -1
- package/build/utils-6c4e6bc4.js +0 -8
- package/build/utils-dd2fab54.js +0 -141
- package/build/utils-e1f42597.js +0 -1
- package/build/utils-fade3897.js +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-f79929c2.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { S as StyledHeading, a as StyledText } from './index.styled-385c2908.js';
|
|
4
|
+
|
|
5
|
+
const MarryBabyHeading = (_a) => {
|
|
6
|
+
var { type, color, style } = _a, props = __rest(_a, ["type", "color", "style"]);
|
|
7
|
+
const DATATYPE = {
|
|
8
|
+
h1: 'headline-1',
|
|
9
|
+
h2: 'headline-2',
|
|
10
|
+
h3: 'headline-3',
|
|
11
|
+
h4: 'headline-4',
|
|
12
|
+
};
|
|
13
|
+
return (React__default.createElement(StyledHeading, Object.assign({ type: type, "data-type": DATATYPE[type], style: Object.assign(Object.assign({}, (color && { '--text-color': color })), style) }, props)));
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
17
|
+
*/
|
|
18
|
+
const MarryBabyText = (_a) => {
|
|
19
|
+
var { type, color, style } = _a, props = __rest(_a, ["type", "color", "style"]);
|
|
20
|
+
return (React__default.createElement(StyledText, Object.assign({ "data-type": type, style: Object.assign(Object.assign({}, style), (color && { '--text-color': color })) }, props)));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { MarryBabyText as M, MarryBabyHeading as a };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import React__default, { useState, useEffect, useMemo, useCallback } from 'react';
|
|
2
|
+
import { v as StyledDivider, w as useStyles } from './index.styles-31411b37.js';
|
|
3
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-f79929c2.js';
|
|
4
|
+
import { u as useTranslations } from './useTranslations-d53557b4.js';
|
|
5
|
+
import { B as Button } from './index-01e95463.js';
|
|
6
|
+
import { P as PATHS } from './paths-4eadd090.js';
|
|
7
|
+
import { a as LOCALIZED_SLUGS } from './constants-bf79fcda.js';
|
|
8
|
+
import { d as domainLocales } from './index-852bb5ca.js';
|
|
9
|
+
import { b as callApi, h as getCarePath } from './utils-72693be6.js';
|
|
10
|
+
import { i as isProduction } from './isProduction-9081cff7.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Consider to use mantine
|
|
14
|
+
*/
|
|
15
|
+
const Divider = ({ type = 'solid', className, style }) => {
|
|
16
|
+
return (React__default.createElement(StyledDivider, { style: style, className: className, "data-diver-type": type, dividerType: type }));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const AuthorLabelTextMapping = {
|
|
20
|
+
admin: 'cardAuthor.admin',
|
|
21
|
+
moderator: 'cardAuthor.moderator',
|
|
22
|
+
ambassador: 'cardAuthor.ambassador',
|
|
23
|
+
expert: 'cardAuthor.expert',
|
|
24
|
+
sponsor: 'cardAuthor.sponsor',
|
|
25
|
+
// 'local-admin': 'cardAuthor.localAdmin',
|
|
26
|
+
guide: 'cardAuthor.guide',
|
|
27
|
+
influencer: 'cardAuthor.influencer',
|
|
28
|
+
};
|
|
29
|
+
const looselyMatchRole = (role) => {
|
|
30
|
+
const allRoles = [
|
|
31
|
+
'admin',
|
|
32
|
+
'moderator',
|
|
33
|
+
'ambassador',
|
|
34
|
+
'expert',
|
|
35
|
+
'sponsor',
|
|
36
|
+
'guide',
|
|
37
|
+
'influencer',
|
|
38
|
+
];
|
|
39
|
+
return allRoles.find((r) => r === role);
|
|
40
|
+
};
|
|
41
|
+
const AuthorBadge = (_a) => {
|
|
42
|
+
var { siteType, role, title, styles, className } = _a, rest = __rest(_a, ["siteType", "role", "title", "styles", "className"]);
|
|
43
|
+
const { t } = useTranslations();
|
|
44
|
+
const matchedRole = role ? looselyMatchRole(role) : '';
|
|
45
|
+
const { classes, cx } = useStyles(undefined,
|
|
46
|
+
// Second argument is responsible for styles api integration
|
|
47
|
+
{ name: 'AuthorBadge', styles });
|
|
48
|
+
return matchedRole && AuthorLabelTextMapping[matchedRole] ? (React__default.createElement("div", Object.assign({
|
|
49
|
+
// className={styles.authorBadge}
|
|
50
|
+
className: cx(classes.root, className), "data-label-type": matchedRole, "data-is-marrybaby": siteType === 'marryBaby' }, rest), title || t(AuthorLabelTextMapping[matchedRole]))) : null;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
var styles = {"container":"Dudns9-"};
|
|
54
|
+
|
|
55
|
+
const BtnChoice = ({ value: valueInit, choices, onChange }) => {
|
|
56
|
+
const [value, setValue] = useState(valueInit);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
setValue(valueInit);
|
|
59
|
+
}, [valueInit]);
|
|
60
|
+
return (React__default.createElement("div", { className: styles.container }, choices.map((i, idx) => (React__default.createElement(Button, { dataEventCategory: i.dataEventCategory, dataEventAction: i.dataEventAction, dataEventLabel: i.dataEventLabel, size: "sm", variant: i.value === value ? 'primary' : 'tertiary', key: idx, onClick: () => {
|
|
61
|
+
setValue(i.value);
|
|
62
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(i.value);
|
|
63
|
+
} }, i.label || '')))));
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const BookingBtn = (_a) => {
|
|
67
|
+
var { label, bookingId, bookingType = 'doctor', locale = 'vi-VN' } = _a, rest = __rest(_a, ["label", "bookingId", "bookingType", "locale"]);
|
|
68
|
+
const { t } = useTranslations();
|
|
69
|
+
const [loading, setLoading] = useState(false);
|
|
70
|
+
const currentUrl = useMemo(() => {
|
|
71
|
+
if (typeof window !== 'undefined') {
|
|
72
|
+
return window.location.href;
|
|
73
|
+
}
|
|
74
|
+
else
|
|
75
|
+
return '';
|
|
76
|
+
}, []);
|
|
77
|
+
const handleOnClick = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
79
|
+
const url = bookingType === 'doctor'
|
|
80
|
+
? PATHS.GET_DOCTOR_DETAIL
|
|
81
|
+
: bookingType === 'hospital'
|
|
82
|
+
? PATHS.GET_HOSPITAL_DETAIL
|
|
83
|
+
: bookingType === 'service'
|
|
84
|
+
? PATHS.GET_SERVICE_DETAIL
|
|
85
|
+
: '';
|
|
86
|
+
try {
|
|
87
|
+
setLoading(true);
|
|
88
|
+
const response = yield callApi(getCarePath(url, {
|
|
89
|
+
id: bookingId,
|
|
90
|
+
site: domainLocales[locale],
|
|
91
|
+
}), 'get');
|
|
92
|
+
if ((response === null || response === void 0 ? void 0 : response._status) === 1) {
|
|
93
|
+
const result = bookingType === 'doctor'
|
|
94
|
+
? {
|
|
95
|
+
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,
|
|
96
|
+
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,
|
|
97
|
+
localSlug: (_f = LOCALIZED_SLUGS[locale]) === null || _f === void 0 ? void 0 : _f.DOCTOR,
|
|
98
|
+
}
|
|
99
|
+
: bookingType === 'hospital'
|
|
100
|
+
? {
|
|
101
|
+
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,
|
|
102
|
+
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,
|
|
103
|
+
localSlug: (_l = LOCALIZED_SLUGS[locale]) === null || _l === void 0 ? void 0 : _l.HOSPITAL,
|
|
104
|
+
}
|
|
105
|
+
: {
|
|
106
|
+
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,
|
|
107
|
+
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,
|
|
108
|
+
localSlug: (_r = LOCALIZED_SLUGS[locale]) === null || _r === void 0 ? void 0 : _r.SERVICE,
|
|
109
|
+
};
|
|
110
|
+
window.location.href = `https://${!isProduction ? 'discover.' : ''}${domainLocales[locale]}/care/${result.localSlug}/${result.slug}-${result.id}/`;
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
setLoading(false);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
catch (err) {
|
|
117
|
+
console.log(err);
|
|
118
|
+
setLoading(false);
|
|
119
|
+
}
|
|
120
|
+
}), []);
|
|
121
|
+
return bookingId && bookingType ? (React__default.createElement(Button, Object.assign({ dataEventCategory: "Care", dataEventAction: "Comment - Quick Booking", dataEventLabel: currentUrl, onClick: handleOnClick, loading: loading }, rest), label || t('careBooking.bookAnAppointment'))) : null;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export { AuthorBadge as A, BtnChoice as B, Divider as D, BookingBtn as a };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-f79929c2.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { t as theme } from './theme-7522724d.js';
|
|
4
|
+
import { S as Share, E as Eye, W as WhatsApp, w as Spinner } from './utils-72693be6.js';
|
|
5
|
+
|
|
6
|
+
const ArrowRightTail = (_a) => {
|
|
7
|
+
var { size = 24, color: colorInit = theme.colors.gray600, useCurrentColor, isActive, activeColor = theme.colors.primaryBase } = _a, rest = __rest(_a, ["size", "color", "useCurrentColor", "isActive", "activeColor"]);
|
|
8
|
+
const color = useCurrentColor
|
|
9
|
+
? 'currentColor'
|
|
10
|
+
: isActive
|
|
11
|
+
? activeColor
|
|
12
|
+
: colorInit;
|
|
13
|
+
const props = Object.assign({ width: size, height: size }, rest);
|
|
14
|
+
return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 18 18", fill: "none" }, props),
|
|
15
|
+
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.74707 4.22754C9.89332 4.08091 10.0854 4.00635 10.2773 4.00635C10.4692 4.00635 10.661 4.08091 10.8076 4.22754L15.0498 8.46973C15.3431 8.76223 15.3431 9.23702 15.0498 9.53027L10.8076 13.7725C10.5151 14.0657 10.0403 14.0657 9.74707 13.7725L9.68262 13.708C9.38937 13.4155 9.38937 12.9407 9.68262 12.6475L12.5801 9.75H2.77734C2.36334 9.75 2.02734 9.414 2.02734 9C2.02734 8.586 2.36334 8.25 2.77734 8.25H12.5801L9.68262 5.35254C9.38937 5.06004 9.38937 4.58524 9.68262 4.29199L9.74707 4.22754Z", fill: color })));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const Cart = (_a) => {
|
|
19
|
+
var { size = 24, color: colorInit = theme.colors.gray600, useCurrentColor, isActive, isSolid, activeColor = theme.colors.primaryBase } = _a, rest = __rest(_a, ["size", "color", "useCurrentColor", "isActive", "isSolid", "activeColor"]);
|
|
20
|
+
const color = useCurrentColor
|
|
21
|
+
? 'currentColor'
|
|
22
|
+
: isActive
|
|
23
|
+
? activeColor
|
|
24
|
+
: colorInit;
|
|
25
|
+
const props = Object.assign({ width: size, height: size }, rest);
|
|
26
|
+
return isSolid ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
27
|
+
React__default.createElement("path", { d: "M7.154 21.558q-.73 0-1.24-.51-.51-.511-.51-1.24 0-.73.51-1.24t1.24-.51q.729 0 1.24.51.51.51.51 1.24 0 .729-.51 1.24-.511.51-1.24.51m9.692 0q-.729 0-1.24-.51-.51-.511-.51-1.24 0-.73.51-1.24.511-.51 1.24-.51.73 0 1.24.51t.51 1.24-.51 1.24-1.24.51M5.296 4.25h13.885q.613 0 .928.522t.03 1.066l-3.204 5.804a1.8 1.8 0 0 1-.651.674 1.7 1.7 0 0 1-.888.242H8.1l-1.158 2.115q-.077.115-.005.25.073.135.217.135h10.692q.32 0 .535.215a.73.73 0 0 1 .215.535.73.73 0 0 1-.215.534.73.73 0 0 1-.535.216H7.154q-1 0-1.503-.863-.503-.862-.036-1.722l1.427-2.565L3.404 3.75H2.25a.73.73 0 0 1-.535-.215A.73.73 0 0 1 1.5 3q0-.32.215-.535a.73.73 0 0 1 .535-.215h1.529a.9.9 0 0 1 .813.517z", fill: color }))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
28
|
+
React__default.createElement("path", { d: "M7.154 21.558q-.73 0-1.24-.51-.51-.511-.51-1.24 0-.73.51-1.24t1.24-.51q.729 0 1.24.51.51.51.51 1.24 0 .729-.51 1.24-.511.51-1.24.51m9.692 0q-.729 0-1.24-.51-.51-.511-.51-1.24 0-.73.51-1.24.511-.51 1.24-.51.73 0 1.24.51t.51 1.24-.51 1.24-1.24.51M6.016 5.75l2.534 5.308h6.817a.3.3 0 0 0 .154-.044.4.4 0 0 0 .116-.12l2.682-4.875q.058-.105.01-.187t-.164-.082zm-.72-1.5h13.885q.613 0 .928.522.315.523.03 1.066l-3.204 5.804a1.8 1.8 0 0 1-.651.674 1.7 1.7 0 0 1-.888.242H8.1l-1.158 2.115q-.077.115-.005.25.073.135.217.135h10.692q.32 0 .535.215a.73.73 0 0 1 .215.535.73.73 0 0 1-.215.534.73.73 0 0 1-.535.216H7.154q-1 0-1.503-.863-.503-.862-.036-1.722l1.427-2.565L3.404 3.75H2.25a.73.73 0 0 1-.535-.215A.73.73 0 0 1 1.5 3q0-.32.215-.535a.73.73 0 0 1 .535-.215h1.529a.9.9 0 0 1 .813.517z", fill: color })));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const CartWithAdd = (_a) => {
|
|
32
|
+
var { size = 24, color: colorInit = theme.colors.gray600, useCurrentColor, isActive, activeColor = theme.colors.primaryBase } = _a, rest = __rest(_a, ["size", "color", "useCurrentColor", "isActive", "activeColor"]);
|
|
33
|
+
const color = useCurrentColor
|
|
34
|
+
? 'currentColor'
|
|
35
|
+
: isActive
|
|
36
|
+
? activeColor
|
|
37
|
+
: colorInit;
|
|
38
|
+
const props = Object.assign({ width: size, height: size }, rest);
|
|
39
|
+
return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 19 19", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
40
|
+
React__default.createElement("path", { d: "M8.938 4.812H7.25a.54.54 0 0 1-.4-.161.55.55 0 0 1-.162-.401q0-.24.161-.401a.55.55 0 0 1 .401-.162h1.688V2q0-.24.161-.4a.55.55 0 0 1 .401-.163q.24 0 .4.162a.55.55 0 0 1 .162.401v1.688h1.688q.24 0 .4.161a.55.55 0 0 1 .162.401q0 .24-.161.4a.55.55 0 0 1-.401.162h-1.687V6.5q0 .24-.162.4a.55.55 0 0 1-.401.162.54.54 0 0 1-.4-.161.55.55 0 0 1-.162-.401zM5.865 16.668q-.546 0-.93-.383a1.27 1.27 0 0 1-.382-.93q0-.546.383-.929t.93-.383.929.383.383.93q0 .546-.383.93a1.27 1.27 0 0 1-.93.382m7.27 0q-.547 0-.93-.383a1.27 1.27 0 0 1-.383-.93q0-.546.383-.929t.93-.383.93.383.382.93q0 .546-.383.93a1.27 1.27 0 0 1-.93.382M3.053 3.312h-.865a.54.54 0 0 1-.401-.161.55.55 0 0 1-.162-.401q0-.24.162-.4a.55.55 0 0 1 .4-.162h1.158q.192 0 .36.1a.63.63 0 0 1 .25.287l2.946 6.218h5.113q.065 0 .115-.032a.3.3 0 0 0 .087-.09l2.618-4.702a.5.5 0 0 1 .198-.21.56.56 0 0 1 .28-.071q.324 0 .485.275.162.276.006.557L13.2 9.232a1.35 1.35 0 0 1-.489.505q-.303.18-.665.181H6.575l-.868 1.587q-.058.086-.004.187t.162.101h8.02q.239 0 .4.162a.55.55 0 0 1 .162.401q0 .24-.162.4a.55.55 0 0 1-.4.162h-8.02q-.75 0-1.133-.64-.383-.642-.02-1.298l1.07-1.924z", fill: color })));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const Icon = {
|
|
44
|
+
Share,
|
|
45
|
+
Eye,
|
|
46
|
+
WhatsApp,
|
|
47
|
+
ArrowRightTail,
|
|
48
|
+
Spinner,
|
|
49
|
+
Cart,
|
|
50
|
+
CartWithAdd,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { Icon as I };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-f79929c2.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { Indicator as Indicator$1 } from '@mantine/core';
|
|
4
|
+
import { t as theme } from './theme-7522724d.js';
|
|
5
|
+
|
|
6
|
+
const Indicator = (_a) => {
|
|
7
|
+
var { styles, color = theme.colors.red700 } = _a, props = __rest(_a, ["styles", "color"]);
|
|
8
|
+
return (React__default.createElement(Indicator$1, Object.assign({ inline: true, position: "top-end", offset: 4, styles: Object.assign({ processing: {
|
|
9
|
+
// FIX: Safari blink
|
|
10
|
+
animationDirection: 'alternate',
|
|
11
|
+
} }, styles), color: color }, props)));
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { Indicator as I };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-f79929c2.js';
|
|
2
|
+
import React__default, { useState, useEffect } from 'react';
|
|
3
|
+
import { useDebouncedValue } from '@mantine/hooks';
|
|
4
|
+
import { D as DEBOUNCED_TIME, g as StyledSliderWrapper, B as Button, h as StyledSlider } from './index-01e95463.js';
|
|
5
|
+
|
|
6
|
+
const Slider = (_a) => {
|
|
7
|
+
var { color, withControl, onChange, value, min, max, isStatic, containerClassName, containerStyle } = _a, props = __rest(_a, ["color", "withControl", "onChange", "value", "min", "max", "isStatic", "containerClassName", "containerStyle"]);
|
|
8
|
+
const [currentValue, setCurrentValue] = useState(value || min || 0);
|
|
9
|
+
const [debounced] = useDebouncedValue(currentValue, DEBOUNCED_TIME);
|
|
10
|
+
const increase = () => {
|
|
11
|
+
setCurrentValue((p) => (max && p === max ? p : p + 1));
|
|
12
|
+
};
|
|
13
|
+
const decrease = () => {
|
|
14
|
+
setCurrentValue((p) => (min && p === min ? p : p - 1));
|
|
15
|
+
};
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(debounced);
|
|
18
|
+
}, [debounced]);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
setCurrentValue(value);
|
|
21
|
+
}, [value]);
|
|
22
|
+
return (React__default.createElement(StyledSliderWrapper, { className: containerClassName, style: containerStyle },
|
|
23
|
+
withControl && (React__default.createElement(Button, { type: "button", size: "sm", color: "ghost", onClick: decrease },
|
|
24
|
+
React__default.createElement("svg", { width: "10", height: "10", fill: "none", viewBox: "0 0 12 3" },
|
|
25
|
+
React__default.createElement("path", { d: "M1 1.004h8", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })))),
|
|
26
|
+
React__default.createElement(StyledSlider, Object.assign({ thumbSize: 21, labelAlwaysOn: true, radius: "xl", color: color, value: currentValue, onChange: !isStatic ? setCurrentValue : () => null, min: min, max: max }, props, { className: 'hhg-mantine-slider ' + (props.className || '') })),
|
|
27
|
+
withControl && (React__default.createElement(Button, { type: "button", size: "sm", variant: "ghost", onClick: increase },
|
|
28
|
+
React__default.createElement("svg", { width: "16", height: "20", fill: "none", viewBox: "0 0 16 16" },
|
|
29
|
+
React__default.createElement("path", { d: "M8 4v8M4 8h8", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }))))));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { Slider as S };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { B as Button } from './index-d1d2e96b.js';
|
|
3
|
+
import { C as Container } from './index-fb17aef5.js';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import { d as domainLocales } from './index-852bb5ca.js';
|
|
6
|
+
import { t as theme } from './theme-7522724d.js';
|
|
7
|
+
import './index-01e95463.js';
|
|
8
|
+
import { Flex, Stack, Box } from '@mantine/core';
|
|
9
|
+
import '@mantine/dates';
|
|
10
|
+
import './Subot-73dd692f.js';
|
|
11
|
+
import './index-ec1cc2ea.js';
|
|
12
|
+
import { T as Text } from './index-ebb8bd0e.js';
|
|
13
|
+
import { u as useTranslations } from './useTranslations-d53557b4.js';
|
|
14
|
+
import '@mantine/hooks';
|
|
15
|
+
import './utils-f7ab8c32.js';
|
|
16
|
+
import { L as Logo } from './index-e183dc84.js';
|
|
17
|
+
import { M as MarryBabyText } from './index-9622b7d8.js';
|
|
18
|
+
import './translationsContext-62ed87ff.js';
|
|
19
|
+
import 'string-format';
|
|
20
|
+
|
|
21
|
+
var styles$1 = {"footer":"Lj0qoTD","flag":"OO-qFWT"};
|
|
22
|
+
|
|
23
|
+
const Flag = ({ url, isMobile, dataEventCategory, dataEventAction, dataEventLabel, }) => {
|
|
24
|
+
return (React__default.createElement("div", { className: styles$1.flag , "data-is-mobile": isMobile },
|
|
25
|
+
React__default.createElement("img", { loading: "lazy", className: "country-flag", src: url, alt: "Country Flag", "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-content-label": dataEventLabel })));
|
|
26
|
+
};
|
|
27
|
+
const DiscoverFooter = ({ className, type = 'main', footerInfo, isMobile, locale, }) => {
|
|
28
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
29
|
+
const { t } = useTranslations();
|
|
30
|
+
const footerMenu = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.menu;
|
|
31
|
+
const verifiedIcons = ((_b = (_a = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.general) === null || _a === void 0 ? void 0 : _a.verified) === null || _b === void 0 ? void 0 : _b.filter(Boolean)) || [];
|
|
32
|
+
const FooterComp = 'footer';
|
|
33
|
+
return (React__default.createElement(FooterComp, { className: `${styles$1.footer } ${className || ''}`, style: type === 'mini'
|
|
34
|
+
? {
|
|
35
|
+
backgroundColor: theme.colors.neutral50,
|
|
36
|
+
}
|
|
37
|
+
: {} },
|
|
38
|
+
React__default.createElement(Container, null,
|
|
39
|
+
React__default.createElement("div", { className: "inner", "data-type": type }, type === 'main' ? (React__default.createElement(React__default.Fragment, null,
|
|
40
|
+
React__default.createElement("a", { href: "/" },
|
|
41
|
+
React__default.createElement("img", { loading: "lazy", className: "footer-logo", src: (_c = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.general) === null || _c === void 0 ? void 0 : _c.logo, alt: "Logo", "data-is-sehat": locale === 'id-ID' })),
|
|
42
|
+
React__default.createElement("div", { className: "columns" },
|
|
43
|
+
React__default.createElement("div", { className: "newsletter" },
|
|
44
|
+
React__default.createElement(Text, { size: "p1", weight: "bold" }, (_d = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.general) === null || _d === void 0 ? void 0 : _d.content),
|
|
45
|
+
React__default.createElement(Button, { className: "signupButton", color: "primary", size: "lg" }, t('footer.signUp')),
|
|
46
|
+
React__default.createElement("div", { className: "social" },
|
|
47
|
+
React__default.createElement(Text, { size: "sm" }, (_e = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.social) === null || _e === void 0 ? void 0 : _e.title),
|
|
48
|
+
React__default.createElement("div", { className: "icons" }, (_g = (_f = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.social) === null || _f === void 0 ? void 0 : _f.socials) === null || _g === void 0 ? void 0 : _g.map((social, idx) => (React__default.createElement("a", { key: idx, "data-event-category": "Footer", "data-event-action": `Follow us - ${social.name}`, "data-content-label": social.url, href: social.url },
|
|
49
|
+
React__default.createElement("img", { loading: "lazy", "data-event-category": "Footer", "data-event-action": `Follow us - ${social.name}`, "data-content-label": social.url, src: social.icon, alt: "Logo Social", className: "social-icon" }))))),
|
|
50
|
+
React__default.createElement("hr", { className: "hrMobile" }))),
|
|
51
|
+
React__default.createElement("div", null,
|
|
52
|
+
footerMenu && (React__default.createElement(React__default.Fragment, null,
|
|
53
|
+
React__default.createElement("div", { className: "biglinks" }, (_j = (_h = footerMenu[0]) === null || _h === void 0 ? void 0 : _h.items) === null || _j === void 0 ? void 0 : _j.map((bigLink, idx) => (React__default.createElement("a", { "data-event-category": "Footer", "data-event-action": bigLink.title, "data-event-label": `https://${domainLocales[locale]}${bigLink.url}`, className: "bigLink", key: idx, href: bigLink.url }, bigLink.title)))),
|
|
54
|
+
React__default.createElement("hr", { className: "hrMobile" }),
|
|
55
|
+
React__default.createElement("div", { className: "mHalf" },
|
|
56
|
+
React__default.createElement(Text, { size: "sm", className: "linkTitle" }, (_k = footerMenu[1]) === null || _k === void 0 ? void 0 : _k.menu_title), (_m = (_l = footerMenu[1]) === null || _l === void 0 ? void 0 : _l.items) === null || _m === void 0 ? void 0 :
|
|
57
|
+
_m.map((informationLink, idx) => (React__default.createElement("a", { "data-event-category": "Footer", "data-event-action": informationLink.title, "data-event-label": `https://${domainLocales[locale]}${informationLink.url}`, className: "link", href: informationLink.url, key: idx },
|
|
58
|
+
React__default.createElement(Text, { size: "sm", dataEventCategory: "Footer", dataEventAction: informationLink.title, dataEventLabel: `https://${domainLocales[locale]}${informationLink.url}` }, informationLink.title))))),
|
|
59
|
+
React__default.createElement("div", { className: "mHalf" },
|
|
60
|
+
React__default.createElement(Text, { size: "sm", className: "linkTitle" }, (_o = footerMenu[2]) === null || _o === void 0 ? void 0 : _o.menu_title), (_q = (_p = footerMenu[2]) === null || _p === void 0 ? void 0 : _p.items) === null || _q === void 0 ? void 0 :
|
|
61
|
+
_q.map((hellohealthlink, idx) => hellohealthlink.url && (React__default.createElement("a", { "data-event-category": "Footer", "data-event-action": hellohealthlink.title, "data-event-label": hellohealthlink.url, className: "link", href: hellohealthlink.url, key: idx },
|
|
62
|
+
React__default.createElement(Text, { size: "sm", dataEventCategory: "Footer", dataEventAction: hellohealthlink.title, dataEventLabel: hellohealthlink.url }, hellohealthlink.title))))))),
|
|
63
|
+
React__default.createElement("hr", { className: "hrMobile" }),
|
|
64
|
+
React__default.createElement("div", { className: "otherSites" },
|
|
65
|
+
React__default.createElement(Text, { size: "sm", className: "linkTitle" }, (_r = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.branch) === null || _r === void 0 ? void 0 : _r.title),
|
|
66
|
+
React__default.createElement("div", { className: "flags" }, (_t = (_s = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.branch) === null || _s === void 0 ? void 0 : _s.branch) === null || _t === void 0 ? void 0 : _t.map((flagLink, idx) => (React__default.createElement("a", { className: "link", href: flagLink.url, key: idx, "data-event-category": "Footer", "data-event-action": flagLink.name, "data-event-label": flagLink.url },
|
|
67
|
+
React__default.createElement(Flag, { url: flagLink.flag, isMobile: isMobile, dataEventCategory: "Footer", dataEventAction: flagLink.name, dataEventLabel: flagLink.url })))))))),
|
|
68
|
+
React__default.createElement("hr", null),
|
|
69
|
+
React__default.createElement("div", { className: "copyright" },
|
|
70
|
+
React__default.createElement("div", { className: "copyright-image-wrapper" }, verifiedIcons.length
|
|
71
|
+
? verifiedIcons.map((verify, index) => (React__default.createElement("a", { href: verify.url, key: index, className: "copyright-image" },
|
|
72
|
+
React__default.createElement("img", { loading: "lazy", src: verify.image, alt: "DMCA Icon" }))))
|
|
73
|
+
: null),
|
|
74
|
+
React__default.createElement(Text, { size: "xs", className: "copyright-content", as: "div" },
|
|
75
|
+
React__default.createElement("div", { dangerouslySetInnerHTML: {
|
|
76
|
+
__html: (_u = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.general) === null || _u === void 0 ? void 0 : _u.copyright.replace(/{currentYear}/gi, dayjs().get('year').toString()),
|
|
77
|
+
} }))))) : (React__default.createElement(React__default.Fragment, null, (footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.menu) && (React__default.createElement("div", { className: "columns" },
|
|
78
|
+
React__default.createElement("div", { className: "mHalf" },
|
|
79
|
+
React__default.createElement(Text, { size: "sm", className: "linkTitle" }, (_v = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.menu[1]) === null || _v === void 0 ? void 0 : _v.menu_title), (_x = (_w = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.menu[1]) === null || _w === void 0 ? void 0 : _w.items) === null || _x === void 0 ? void 0 :
|
|
80
|
+
_x.map((informationLink) => (React__default.createElement("a", { className: "link", href: informationLink.url, key: informationLink.title, "data-list-type": "Footer", "data-content-type": "Navigate", "data-content-topic": "Information", "data-content-title": informationLink.title, "data-content-id": `https://${domainLocales[locale]}${informationLink.url}`, "data-event-category": "Footer", "data-event-action": informationLink.title, "data-event-label": `https://${domainLocales[locale]}${informationLink.url}` },
|
|
81
|
+
React__default.createElement(Text, { dataEventCategory: "Footer", dataEventAction: informationLink.title, dataEventLabel: `https://${domainLocales[locale]}${informationLink.url}`, size: "sm", style: {
|
|
82
|
+
color: theme.colors.gray800,
|
|
83
|
+
} }, informationLink.title))))),
|
|
84
|
+
React__default.createElement("div", { className: "mHalf" },
|
|
85
|
+
React__default.createElement(Text, { size: "sm", className: "linkTitle" }, (_y = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.menu[2]) === null || _y === void 0 ? void 0 : _y.menu_title), (_0 = (_z = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.menu[2]) === null || _z === void 0 ? void 0 : _z.items) === null || _0 === void 0 ? void 0 :
|
|
86
|
+
_0.map((hellohealthlink, idx) => (React__default.createElement("a", { className: "link", href: hellohealthlink.url, key: idx, "data-list-type": "Footer", "data-content-type": "Navigate", "data-content-topic": "Hello Health", "data-content-title": hellohealthlink.title, "data-content-id": hellohealthlink.url, "data-event-category": "Footer", "data-event-action": hellohealthlink.title, "data-event-label": hellohealthlink.url },
|
|
87
|
+
React__default.createElement(Text, { size: "sm", color: theme.colors.gray800, dataEventCategory: "Footer", dataEventAction: hellohealthlink.title, dataEventLabel: hellohealthlink.url }, hellohealthlink.title))))),
|
|
88
|
+
type !== 'mini' && React__default.createElement("hr", { className: "hrMobile" }),
|
|
89
|
+
React__default.createElement("div", { className: "newsletter" },
|
|
90
|
+
React__default.createElement("div", { className: "social" },
|
|
91
|
+
React__default.createElement(Text, { size: "sm" }, (_1 = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.social) === null || _1 === void 0 ? void 0 : _1.title),
|
|
92
|
+
React__default.createElement("div", { className: "icons" }, (_3 = (_2 = footerInfo === null || footerInfo === void 0 ? void 0 : footerInfo.social) === null || _2 === void 0 ? void 0 : _2.socials) === null || _3 === void 0 ? void 0 : _3.map((social, idx) => (React__default.createElement("a", { key: idx, "data-event-category": "Footer", "data-event-action": `Follow us - ${social.name}`, "data-content-label": social.url, href: social.url },
|
|
93
|
+
React__default.createElement("img", { "data-event-category": "Footer", "data-event-action": `Follow us - ${social.name}`, "data-content-label": social.url, src: social.icon, alt: "Logo Social", loading: "lazy", className: "social-icon" })))))))))))))));
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
var styles = {"footerContainer":"B6-KmWK","menuContainer":"GS-7mbG","wrapMenuItem":"qc5bEb3","wrapItems":"CQGVeuT","wrapCopyRight":"_8eUT8Jr","wrapInfo":"_6JMoel-","socialLink":"pFG7UH3"};
|
|
97
|
+
|
|
98
|
+
const MarryBabyFooter = ({ logoType = 'marryBaby', footerMenu, background, }) => {
|
|
99
|
+
var _a;
|
|
100
|
+
if (!footerMenu)
|
|
101
|
+
return null;
|
|
102
|
+
const { general, menu, socials } = footerMenu;
|
|
103
|
+
return (React__default.createElement("footer", { className: styles.footerContainer , style: {
|
|
104
|
+
backgroundColor: background ? background : 'none',
|
|
105
|
+
} },
|
|
106
|
+
React__default.createElement(Container, null,
|
|
107
|
+
React__default.createElement("div", { className: styles.menuContainer }, menu === null || menu === void 0 ? void 0 : menu.map(({ menu_title, items }, idx) => (React__default.createElement("div", { className: styles.wrapMenuItem, key: `mbf${idx}` },
|
|
108
|
+
React__default.createElement(MarryBabyText, { className: "title", type: "subtitle-1", color: theme.mbColors.pink }, menu_title), items === null || items === void 0 ? void 0 :
|
|
109
|
+
items.map(({ title, url }, id) => (React__default.createElement("a", { "data-event-category": "Footer", "data-event-action": "Click", "data-event-label": `${url}`, className: "link", href: url, key: `footer-links-${id}` },
|
|
110
|
+
React__default.createElement("div", { className: styles.wrapItems, key: `mbitem${id}` },
|
|
111
|
+
React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.gray }, title)))))))))),
|
|
112
|
+
React__default.createElement(Container, null,
|
|
113
|
+
React__default.createElement("div", { className: styles.wrapInfo },
|
|
114
|
+
React__default.createElement(Flex, { gap: '24px', sx: (theme) => ({
|
|
115
|
+
[theme.fn.largerThan('sm')]: {
|
|
116
|
+
'.info-item': {
|
|
117
|
+
flexGrow: 1,
|
|
118
|
+
width: '50%',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
[theme.fn.smallerThan('sm')]: {
|
|
122
|
+
flexDirection: 'column',
|
|
123
|
+
},
|
|
124
|
+
}) },
|
|
125
|
+
React__default.createElement(Stack, { spacing: '24px', className: "info-item" },
|
|
126
|
+
React__default.createElement(Logo, { className: "logo", type: logoType }),
|
|
127
|
+
React__default.createElement(Text, { size: "p4", as: "div" },
|
|
128
|
+
React__default.createElement("div", { dangerouslySetInnerHTML: {
|
|
129
|
+
__html: general === null || general === void 0 ? void 0 : general.content,
|
|
130
|
+
} })),
|
|
131
|
+
React__default.createElement("div", { className: styles.socialLink }, socials === null || socials === void 0 ? void 0 : socials.map(({ icon, name, url }, id) => (React__default.createElement("a", { key: `social${id}`, target: "_blank", rel: "noreferrer", "data-event-category": "Footer", "data-event-action": `Follow us - ${name}`, "data-content-label": name, href: url },
|
|
132
|
+
React__default.createElement("img", { className: "social-logo", loading: "lazy", src: icon, alt: name })))))),
|
|
133
|
+
React__default.createElement(Box, { className: "info-item", sx: { paddingTop: '7px' } },
|
|
134
|
+
React__default.createElement(Text, { size: "p4", as: "div" },
|
|
135
|
+
React__default.createElement("div", { dangerouslySetInnerHTML: {
|
|
136
|
+
__html: general === null || general === void 0 ? void 0 : general.information,
|
|
137
|
+
} })))))),
|
|
138
|
+
React__default.createElement("div", { className: styles.wrapCopyRight },
|
|
139
|
+
React__default.createElement(Container, null,
|
|
140
|
+
React__default.createElement("div", { className: "content" },
|
|
141
|
+
React__default.createElement(Text, { size: "p5", color: "#fff", as: "div" },
|
|
142
|
+
React__default.createElement("div", { dangerouslySetInnerHTML: {
|
|
143
|
+
__html: general === null || general === void 0 ? void 0 : general.copyright.replace(/{currentYear}/gi, dayjs().get('year').toString()),
|
|
144
|
+
} })),
|
|
145
|
+
React__default.createElement("div", { className: "verify" }, (_a = general === null || general === void 0 ? void 0 : general.verified) === null || _a === void 0 ? void 0 : _a.map(({ image, url }, idx) => (React__default.createElement("img", { loading: "lazy", key: `imgMbFt${idx}`, src: image, alt: url })))))))));
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const Footer = ({ type, isMobile = true, locale, footerInfo, siteType, background, }) => {
|
|
149
|
+
return siteType === 'helloSites' ? (React__default.createElement(DiscoverFooter, { isMobile: isMobile, type: type, locale: locale, footerInfo: (footerInfo || {}) })) : (React__default.createElement(MarryBabyFooter, { footerMenu: footerInfo, background: background }));
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export { Footer as F };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-f79929c2.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { Image } from '@mantine/core';
|
|
4
|
+
import { DatePickerInput } from '@mantine/dates';
|
|
5
|
+
import { I as ISO_FORMAT } from './index-852bb5ca.js';
|
|
6
|
+
import { L as LOCALE } from './Subot-73dd692f.js';
|
|
7
|
+
import { C as CommonGAssets } from './index-ec1cc2ea.js';
|
|
8
|
+
import { M as MAPPED_LOCALE } from './index-01e95463.js';
|
|
9
|
+
|
|
10
|
+
// Omit<MantineDatePickerInputProps, 'value'>
|
|
11
|
+
const DatePicker = (_a) => {
|
|
12
|
+
var _b;
|
|
13
|
+
var { value, fullWidth = true } = _a, rest = __rest(_a, ["value", "fullWidth"]);
|
|
14
|
+
return (React__default.createElement(DatePickerInput, Object.assign({ locale: MAPPED_LOCALE[process.env.UNIFY_LOCALE || LOCALE.Vietnam], valueFormat: (_b = ISO_FORMAT[process.env.UNIFY_LOCALE || LOCALE.Vietnam]) === null || _b === void 0 ? void 0 : _b.dateFormat, size: "md", clearable: false, popoverProps: fullWidth
|
|
15
|
+
? {
|
|
16
|
+
styles: {
|
|
17
|
+
dropdown: {
|
|
18
|
+
minWidth: '100%',
|
|
19
|
+
display: 'flex',
|
|
20
|
+
justifyContent: 'center',
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
: {}, styles: {
|
|
26
|
+
root: {
|
|
27
|
+
position: 'relative',
|
|
28
|
+
},
|
|
29
|
+
rightSection: { pointerEvents: 'none', cursor: 'default' },
|
|
30
|
+
}, rightSection: React__default.createElement(Image, { src: CommonGAssets.getAssetPath(rest.isMB ? 'MB-calendar.svg' : 'OutlineCalendar.svg'), width: 16, height: 16 }), value: value }, rest, { className: `input-control ${(rest === null || rest === void 0 ? void 0 : rest.className) || ''}` })));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { DatePicker as D };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-f79929c2.js';
|
|
2
|
+
import React__default, { useReducer, useState, useEffect } from 'react';
|
|
3
|
+
import { Stack, Input as Input$1 } from '@mantine/core';
|
|
4
|
+
import { c as Input, S as Select } from './index-01e95463.js';
|
|
5
|
+
import '@mantine/dates';
|
|
6
|
+
import { c as CDN_ADDRESS } from './index-852bb5ca.js';
|
|
7
|
+
import { L as LOCALE } from './Subot-73dd692f.js';
|
|
8
|
+
import './index-ec1cc2ea.js';
|
|
9
|
+
import './index-ebb8bd0e.js';
|
|
10
|
+
import './theme-7522724d.js';
|
|
11
|
+
import { u as useTranslations } from './useTranslations-d53557b4.js';
|
|
12
|
+
import '@mantine/hooks';
|
|
13
|
+
import './utils-f7ab8c32.js';
|
|
14
|
+
import { M as MAPPED_LOCALE } from './utils-5e5da593.js';
|
|
15
|
+
|
|
16
|
+
const generateGetAddressDetail = (locale) => {
|
|
17
|
+
return `${CDN_ADDRESS}/cities-data-${MAPPED_LOCALE[locale]}.json`;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const initialState = {
|
|
21
|
+
provinceByName: {},
|
|
22
|
+
provinces: [],
|
|
23
|
+
districts: [],
|
|
24
|
+
wards: [],
|
|
25
|
+
selectedProvince: '',
|
|
26
|
+
selectedDistrict: '',
|
|
27
|
+
selectedWard: '',
|
|
28
|
+
};
|
|
29
|
+
const reducer = (state, action) => {
|
|
30
|
+
switch (action.type) {
|
|
31
|
+
case 'SET_DATA':
|
|
32
|
+
return Object.assign(Object.assign({}, state), action.payload);
|
|
33
|
+
case 'SET_DISTRICTS':
|
|
34
|
+
return Object.assign(Object.assign({}, state), { districts: action.payload });
|
|
35
|
+
case 'SET_WARDS':
|
|
36
|
+
return Object.assign(Object.assign({}, state), { wards: action.payload });
|
|
37
|
+
case 'SELECT_PROVINCE':
|
|
38
|
+
return Object.assign(Object.assign({}, state), { selectedProvince: action.payload, selectedDistrict: '', selectedWard: '' });
|
|
39
|
+
case 'SELECT_DISTRICT':
|
|
40
|
+
return Object.assign(Object.assign({}, state), { selectedDistrict: action.payload, selectedWard: '' });
|
|
41
|
+
case 'SELECT_WARD':
|
|
42
|
+
return Object.assign(Object.assign({}, state), { selectedWard: action.payload });
|
|
43
|
+
default:
|
|
44
|
+
return state;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const mappingProvinceId = (provinces, hbProvincesList) => {
|
|
48
|
+
const listById = {};
|
|
49
|
+
for (const [, value] of Object.entries(hbProvincesList)) {
|
|
50
|
+
const { id } = value;
|
|
51
|
+
if (id) {
|
|
52
|
+
listById[id] = value;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const list = {};
|
|
56
|
+
provinces.map((i) => {
|
|
57
|
+
list[i.name] = listById[i.id];
|
|
58
|
+
});
|
|
59
|
+
return list;
|
|
60
|
+
};
|
|
61
|
+
const useAddress = ({ provinces: provincesInit }) => {
|
|
62
|
+
const [state, dispatch] = useReducer(reducer, initialState);
|
|
63
|
+
const { provinceByName, provinces, districts, wards, selectedProvince, selectedDistrict, selectedWard, } = state;
|
|
64
|
+
const [addressData, setAddressData] = useState();
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
// Simulating the API call to fetch the address data
|
|
67
|
+
const fetchAddressData = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
68
|
+
var _a, _b, _c;
|
|
69
|
+
try {
|
|
70
|
+
const _addressData = yield fetch(generateGetAddressDetail(process.env.UNIFY_LOCALE || LOCALE.Vietnam)).then((res) => res.json());
|
|
71
|
+
setAddressData(_addressData);
|
|
72
|
+
const { list } = _addressData;
|
|
73
|
+
const provinceByName = provincesInit
|
|
74
|
+
? mappingProvinceId(provincesInit, list)
|
|
75
|
+
: list;
|
|
76
|
+
const provincesData = Object.keys(provinceByName);
|
|
77
|
+
const districtsData = Object.keys(((_a = list[provincesData[0]]) === null || _a === void 0 ? void 0 : _a.list) || {});
|
|
78
|
+
const wardsData = Object.keys(((_c = (_b = list[provincesData[0]]) === null || _b === void 0 ? void 0 : _b[districtsData[0]]) === null || _c === void 0 ? void 0 : _c.list) || {});
|
|
79
|
+
dispatch({
|
|
80
|
+
type: 'SET_DATA',
|
|
81
|
+
payload: {
|
|
82
|
+
provinceByName,
|
|
83
|
+
provinces: provincesData,
|
|
84
|
+
districts: districtsData,
|
|
85
|
+
wards: wardsData,
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
console.error('Error fetching address data:', error);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
fetchAddressData();
|
|
94
|
+
}, [process.env.UNIFY_LOCALE]);
|
|
95
|
+
const handleProvinceChange = (_selectedProvince) => {
|
|
96
|
+
var _a;
|
|
97
|
+
const districtsData = Object.keys(((_a = provinceByName[_selectedProvince]) === null || _a === void 0 ? void 0 : _a.list) || {});
|
|
98
|
+
dispatch({ type: 'SET_DISTRICTS', payload: districtsData });
|
|
99
|
+
dispatch({ type: 'SET_WARDS', payload: [] });
|
|
100
|
+
dispatch({ type: 'SELECT_PROVINCE', payload: _selectedProvince });
|
|
101
|
+
};
|
|
102
|
+
const handleDistrictChange = (_selectedDistrict) => {
|
|
103
|
+
var _a, _b;
|
|
104
|
+
const wardsData = Object.keys(((_b = (_a = provinceByName[selectedProvince]) === null || _a === void 0 ? void 0 : _a.list[_selectedDistrict]) === null || _b === void 0 ? void 0 : _b.list) || {});
|
|
105
|
+
dispatch({ type: 'SET_WARDS', payload: wardsData });
|
|
106
|
+
dispatch({ type: 'SELECT_DISTRICT', payload: _selectedDistrict });
|
|
107
|
+
};
|
|
108
|
+
const handleWardChange = (_selectedWard) => {
|
|
109
|
+
dispatch({ type: 'SELECT_WARD', payload: _selectedWard });
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
provinces,
|
|
113
|
+
districts,
|
|
114
|
+
wards,
|
|
115
|
+
selectedProvince,
|
|
116
|
+
selectedDistrict,
|
|
117
|
+
selectedWard,
|
|
118
|
+
handleProvinceChange,
|
|
119
|
+
handleDistrictChange,
|
|
120
|
+
handleWardChange,
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const AddressInput = (_a) => {
|
|
125
|
+
var { error, provinces: provincesInit, placeholder } = _a, props = __rest(_a, ["error", "provinces", "placeholder"]);
|
|
126
|
+
const { t } = useTranslations();
|
|
127
|
+
const { provinces, districts, wards, selectedProvince, selectedDistrict, selectedWard, handleProvinceChange, handleDistrictChange, handleWardChange, } = useAddress({ provinces: provincesInit });
|
|
128
|
+
const [extraInfo, setExtraInfo] = useState('');
|
|
129
|
+
useEffect(() => {
|
|
130
|
+
if (selectedProvince && selectedDistrict && selectedWard && extraInfo) {
|
|
131
|
+
props.onChange({
|
|
132
|
+
selectedProvince,
|
|
133
|
+
selectedDistrict,
|
|
134
|
+
selectedWard,
|
|
135
|
+
extraInfo,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
props.onChange(null);
|
|
140
|
+
}
|
|
141
|
+
}, [selectedProvince, selectedDistrict, selectedWard, extraInfo]);
|
|
142
|
+
return (React__default.createElement(Input.Wrapper, Object.assign({ withAsterisk: true }, props),
|
|
143
|
+
React__default.createElement(Stack, null,
|
|
144
|
+
React__default.createElement(Select, { placeholder: (placeholder === null || placeholder === void 0 ? void 0 : placeholder.province) || t('onboarding.similac.input.city'), data: provincesInit ? provinces : provinces.sort(), searchable: true, onChange: handleProvinceChange, value: selectedProvince }),
|
|
145
|
+
React__default.createElement(Select, { placeholder: (placeholder === null || placeholder === void 0 ? void 0 : placeholder.district) || t('onboarding.similac.input.district'), data: districts.sort(), searchable: true, onChange: handleDistrictChange, value: selectedDistrict, disabled: !selectedProvince }),
|
|
146
|
+
React__default.createElement(Select, { placeholder: (placeholder === null || placeholder === void 0 ? void 0 : placeholder.ward) || t('onboarding.similac.input.ward'), searchable: true, data: wards.sort(), value: selectedWard, onChange: handleWardChange, disabled: !selectedProvince || !selectedDistrict }),
|
|
147
|
+
React__default.createElement(Input, { placeholder: (placeholder === null || placeholder === void 0 ? void 0 : placeholder.address) || t('onboarding.similac.input.no'), disabled: !selectedProvince || !selectedDistrict || !selectedWard, value: extraInfo, onChange: setExtraInfo, style: { marginBottom: 0 } })),
|
|
148
|
+
React__default.createElement(Input$1.Error, { size: "md" }, error)));
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export { AddressInput as A };
|