@hhgtech/hhg-components 1.28.13 → 1.28.15-beta-1
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/ChevronDown-dccd7704.js +1 -0
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +1 -0
- package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +2 -0
- package/build/care.js +1 -1
- package/build/components/navigationV2/components/atoms/HamburgerIcon.d.ts +1 -3
- package/build/components/navigationV2/components/molecules/Categories/index.d.ts +3 -1
- package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +8 -0
- package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +1 -0
- package/build/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +8 -0
- package/build/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +2 -0
- package/build/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -3
- package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -3
- package/build/components/navigationV2/index.d.ts +5 -0
- package/build/components/organisms/index.d.ts +1 -1
- package/build/components/organisms/navigationProfileButton/index.d.ts +2 -11
- package/build/components/organisms/navigationProfileButton/profilePopup.d.ts +3 -15
- package/build/components/organisms/profileNavigation/icons/booking.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/community.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/dot.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/eShop.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/help.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/logOut.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/myHealth.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/save.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/settings.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/user.d.ts +2 -0
- package/build/components/organisms/profileNavigation/index.d.ts +36 -0
- package/build/components/organisms/profileNavigation/index.styled.d.ts +9 -0
- package/build/components/organisms/profileNavigation/rank.d.ts +7 -0
- package/build/components/organisms/profileNavigation/userInfo.d.ts +6 -0
- package/build/components.js +1 -1
- package/build/{constants-ac7b324c.js → constants-5d7c2fa0.js} +1 -1
- package/build/constants.js +1 -1
- package/build/core-b07ca7c3.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/ChevronDown-f77b650b.js +1 -0
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +1 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +2 -0
- package/build/esm/care.js +1 -1
- package/build/esm/components/navigationV2/components/atoms/HamburgerIcon.d.ts +1 -3
- package/build/esm/components/navigationV2/components/molecules/Categories/index.d.ts +3 -1
- package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +1 -0
- package/build/esm/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +2 -0
- package/build/esm/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -3
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -3
- package/build/esm/components/navigationV2/index.d.ts +5 -0
- package/build/esm/components/organisms/index.d.ts +1 -1
- package/build/esm/components/organisms/navigationProfileButton/index.d.ts +2 -11
- package/build/esm/components/organisms/navigationProfileButton/profilePopup.d.ts +3 -15
- package/build/esm/components/organisms/profileNavigation/icons/booking.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/community.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/dot.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/eShop.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/help.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/logOut.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/myHealth.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/save.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/settings.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/user.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/index.d.ts +36 -0
- package/build/esm/components/organisms/profileNavigation/index.styled.d.ts +9 -0
- package/build/esm/components/organisms/profileNavigation/rank.d.ts +7 -0
- package/build/esm/components/organisms/profileNavigation/userInfo.d.ts +6 -0
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-51ed637e.js → constants-37ae7692.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-1f02fa3f.js → core-d1789aba.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-a4a65b12.js +1 -0
- package/build/esm/{getSocialList-db17f887.js → getSocialList-0dec7405.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +1 -1
- package/build/esm/i18n-values/hi-IN.js +1 -1
- package/build/esm/i18n-values/id-ID.js +1 -1
- package/build/esm/i18n-values/km-KH.js +1 -1
- package/build/esm/i18n-values/ms-MY.js +1 -1
- package/build/esm/i18n-values/my-MM.js +1 -1
- package/build/esm/i18n-values/th-TH.js +1 -1
- package/build/esm/i18n-values/tl-PH.js +1 -1
- package/build/esm/i18n-values/vi-VN.js +1 -1
- package/build/esm/i18n-values/vi-VN_MB.js +1 -1
- package/build/esm/i18n-values/zh-TW.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-6930eed6.js → index-174c7b48.js} +1 -1
- package/build/esm/index-239e4aa5.js +1 -0
- package/build/esm/{index-119c41f4.js → index-39283715.js} +1 -1
- package/build/esm/{index-4a15e888.js → index-3a199477.js} +1 -1
- package/build/esm/{index-78672f29.js → index-475909b9.js} +2 -2
- package/build/esm/{index-15680032.js → index-4f6158b6.js} +5 -5
- package/build/esm/index-89658dc6.js +1 -0
- package/build/esm/{index-356cb691.js → index-8d9fdedb.js} +1 -1
- package/build/esm/{index-f1545b5e.js → index-9393ab7e.js} +1 -1
- package/build/esm/{index-cdbe6c4c.js → index-ba8823a8.js} +1 -1
- package/build/esm/{index-d88622d3.js → index-c7448506.js} +4 -4
- package/build/esm/index-cc2ec422.js +3533 -0
- package/build/esm/{index-0637cee6.js → index-d3d21257.js} +1 -1
- package/build/esm/index-dbe5b8a5.js +1756 -0
- package/build/esm/{index-173d55ad.js → index-dd92b8c2.js} +1 -1
- package/build/esm/{index-8f706fe7.js → index-defe083c.js} +6 -6
- package/build/esm/{index-8a6bd3c6.js → index-e708ce28.js} +1 -1
- package/build/esm/index-e9d8aa2a.js +1 -0
- package/build/esm/{index-d109577b.js → index-fb3e165b.js} +1 -1
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-b5668217.js → index.styled-695db338.js} +1 -1
- package/build/esm/{index.styled-e52d30c1.js → index.styled-9c78d136.js} +1 -1
- package/build/esm/{index.styles-ff1f0cb2.js → index.styles-9fb5b282.js} +2 -2
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-7e4b79ca.js → routing-fcc342f6.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-941a4fce.js → types-062a585a.js} +1 -1
- package/build/esm/{types-7d91609d.js → types-08dec1e5.js} +145 -136
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-d2c9557c.js → useCategory-d97acb95.js} +1 -1
- package/build/esm/useHealthToolCache-1be53140.js +1 -0
- package/build/esm/{useRafState-7a846534.js → useRafState-65de98c4.js} +1 -1
- package/build/esm/{useTranslations-c5b785c2.js → useTranslations-a3d1d6fe.js} +1 -1
- package/build/esm/{utils-b1470773.js → utils-b8bc10f2.js} +1 -1
- package/build/esm/{utils-042aabdd.js → utils-f5473a22.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-f7ed2409.js → getDynamicHealthTool-61cac916.js} +1 -1
- package/build/{getSocialList-0cc97bdf.js → getSocialList-921ad15c.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -1
- package/build/i18n-values/hi-IN.js +1 -1
- package/build/i18n-values/id-ID.js +1 -1
- package/build/i18n-values/km-KH.js +1 -1
- package/build/i18n-values/ms-MY.js +1 -1
- package/build/i18n-values/my-MM.js +1 -1
- package/build/i18n-values/th-TH.js +1 -1
- package/build/i18n-values/tl-PH.js +1 -1
- package/build/i18n-values/vi-VN.js +1 -1
- package/build/i18n-values/vi-VN_MB.js +1 -1
- package/build/i18n-values/zh-TW.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-1917b114.js → index-1242ad78.js} +1 -1
- package/build/{index-a1282af2.js → index-14eb8a83.js} +1 -1
- package/build/{index-99bff8c2.js → index-1a9cf331.js} +1 -1
- package/build/index-20032c89.js +1 -0
- package/build/{index-7f01cbc0.js → index-26377e63.js} +1 -1
- package/build/{index-5164e4de.js → index-2910414a.js} +2 -2
- package/build/{index-54b444c0.js → index-34387735.js} +1 -1
- package/build/index-3649916a.js +1 -0
- package/build/{index-eb981c1a.js → index-365eac86.js} +1 -1
- package/build/{index-ac45b3ca.js → index-37a6d39b.js} +1 -1
- package/build/{index-002e0e05.js → index-474fa1c6.js} +1 -1
- package/build/{index-8dec03ce.js → index-564922b0.js} +1 -1
- package/build/{index-15fc9646.js → index-57026db3.js} +1 -1
- package/build/{index-88063689.js → index-6f26b2ee.js} +1 -1
- package/build/{index-290bea02.js → index-a706ac85.js} +1 -1
- package/build/{index-be7328b1.js → index-b843e765.js} +1 -1
- package/build/index-baf3c21e.js +1756 -0
- package/build/{index-b2d46829.js → index-c0158254.js} +1 -1
- package/build/index-d84c48a3.js +3533 -0
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-33d6653c.js → index.styled-dc325db9.js} +1 -1
- package/build/{index.styled-a535a0cf.js → index.styled-dc9af5ba.js} +1 -1
- package/build/{index.styles-4a40e685.js → index.styles-6b3ee693.js} +5 -5
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +5 -5
- package/build/pwg.js +1 -1
- package/build/{routing-a3152618.js → routing-c0889f6f.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-26e7dae0.js → types-2e8e5265.js} +77 -68
- package/build/{types-b224bfa9.js → types-8698b724.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-5270d6b5.js → useCategory-f1dcd46b.js} +1 -1
- package/build/useHealthToolCache-b69faf1f.js +1 -0
- package/build/{useRafState-806e4e4a.js → useRafState-fbbec8de.js} +1 -1
- package/build/{useTranslations-787d5e03.js → useTranslations-741efadb.js} +1 -1
- package/build/{utils-3a823fcb.js → utils-ceb3a7f6.js} +2 -2
- package/build/utils-d6074a70.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/components/organisms/navigationProfileButton/popupWrapper.d.ts +0 -14
- package/build/constants-87844a04.js +0 -1
- package/build/core-d0ac3081.js +0 -1
- package/build/esm/components/organisms/navigationProfileButton/popupWrapper.d.ts +0 -14
- package/build/esm/constants-652884dc.js +0 -1
- package/build/esm/getDynamicHealthTool-60a7a241.js +0 -1
- package/build/esm/index-2705764b.js +0 -3533
- package/build/esm/index-73c486ff.js +0 -1753
- package/build/esm/index-83b86fb9.js +0 -1
- package/build/esm/index-943ca1cf.js +0 -1
- package/build/esm/index-f6ea512b.js +0 -1
- package/build/esm/useHealthToolCache-a5011f0b.js +0 -1
- package/build/index-4e2010f1.js +0 -3533
- package/build/index-5e043a70.js +0 -1
- package/build/index-8027a0a6.js +0 -1
- package/build/index-d8b4344c.js +0 -1753
- package/build/useHealthToolCache-04b17115.js +0 -1
- package/build/utils-f1fc229e.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-0a78fcba.js → BMI_BOYS.percentile.monthly-cf9cdbe8.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-4a79d9d9.js → BMI_BOYS.percentile.weekly-05a05054.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-dbc43776.js → BMI_BOYS.percentile.yearly-334a2111.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-a478ce5a.js → BMI_BOYS.zscore.monthly-613a3e76.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-50acdfbc.js → BMI_BOYS.zscore.weekly-822c7347.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-849bd03c.js → BMI_BOYS.zscore.yearly-62cc0f5a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-94f7ae56.js → BMI_GIRLS.percentile.monthly-bf6be0e7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-88adef48.js → BMI_GIRLS.percentile.weekly-5e716aad.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-3254a12c.js → BMI_GIRLS.percentile.yearly-e0efaf0a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-70933c11.js → BMI_GIRLS.zscore.monthly-cd9dddb7.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-de904e6c.js → BMI_GIRLS.zscore.weekly-99fe6edd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-3a86e344.js → BMI_GIRLS.zscore.yearly-982ba67b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b4369817.js → HEAD CIRCUM_BOYS.percentile.monthly-20ec576f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-890a4e6c.js → HEAD CIRCUM_BOYS.percentile.weekly-85e210ac.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e184a8c0.js → HEAD CIRCUM_BOYS.percentile.yearly-bac21c26.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-8a21e7c4.js → HEAD CIRCUM_BOYS.zscore.monthly-f845d891.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-e7659a88.js → HEAD CIRCUM_BOYS.zscore.weekly-b6c9357a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-7eb1b8a8.js → HEAD CIRCUM_BOYS.zscore.yearly-8780c427.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bdacc82e.js → HEAD CIRCUM_GIRLS.percentile.monthly-44de4fa9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-4ed5396c.js → HEAD CIRCUM_GIRLS.percentile.weekly-cdfe0f9e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e8dbdba9.js → HEAD CIRCUM_GIRLS.percentile.yearly-53fd9af8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-892ea368.js → HEAD CIRCUM_GIRLS.zscore.monthly-0d2d9b1d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ee19f46a.js → HEAD CIRCUM_GIRLS.zscore.weekly-2bee9820.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3e9be0bf.js → HEAD CIRCUM_GIRLS.zscore.yearly-641ae425.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-9e5712cf.js → HEIGHT_BOYS.percentile.monthly-968b0755.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-6bca911d.js → HEIGHT_BOYS.percentile.weekly-60f2adda.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-0d51a725.js → HEIGHT_BOYS.percentile.yearly-28673282.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-9f4bc81f.js → HEIGHT_BOYS.zscore.monthly-9a87640f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-c1ff2736.js → HEIGHT_BOYS.zscore.weekly-baa5d331.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-64fbc7b5.js → HEIGHT_BOYS.zscore.yearly-ccf71cb8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-4b8724d3.js → HEIGHT_GIRLS.percentile.monthly-7c08c5d6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-78b9e775.js → HEIGHT_GIRLS.percentile.weekly-52d6d055.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-22aba8da.js → HEIGHT_GIRLS.percentile.yearly-61611cc4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-403ccbf3.js → HEIGHT_GIRLS.zscore.monthly-8a43033e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8e95ced7.js → HEIGHT_GIRLS.zscore.weekly-60de470c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-a7a6a169.js → HEIGHT_GIRLS.zscore.yearly-15b1f298.js} +0 -0
- /package/build/{Onboarding-48739c1f.js → Onboarding-10568a94.js} +0 -0
- /package/build/{Visible-be5bc36c.js → Visible-d632eb2a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-3f727fc8.js → WEIGHT_BOYS.percentile.monthly-602580f4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-b616fcf1.js → WEIGHT_BOYS.percentile.weekly-933068c1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-ad8ce1c9.js → WEIGHT_BOYS.percentile.yearly-047b31f4.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-eb422b8d.js → WEIGHT_BOYS.zscore.monthly-647a6b96.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-9f3aeea7.js → WEIGHT_BOYS.zscore.weekly-39a72ada.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-0d67f576.js → WEIGHT_BOYS.zscore.yearly-e0dfff31.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5fa745b4.js → WEIGHT_GIRLS.percentile.monthly-57be5967.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-42594871.js → WEIGHT_GIRLS.percentile.weekly-bd67b1bd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-8ad0c80a.js → WEIGHT_GIRLS.percentile.yearly-e6987f6b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-81de4699.js → WEIGHT_GIRLS.zscore.monthly-8b1029cf.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-f025743e.js → WEIGHT_GIRLS.zscore.weekly-0ab2bedb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-33b29188.js → WEIGHT_GIRLS.zscore.yearly-c3d89d64.js} +0 -0
- /package/build/{cookieHelper-600a5796.js → cookieHelper-65fbb933.js} +0 -0
- /package/build/{dataTransform-0a6bf3e6.js → dataTransform-a3c5da8d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-d0f21e02.js → BMI_BOYS.percentile.monthly-d23f78ea.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-1472e9a4.js → BMI_BOYS.percentile.weekly-9d79b737.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-6596ce6d.js → BMI_BOYS.percentile.yearly-8b9d5d2d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-d57199bf.js → BMI_BOYS.zscore.monthly-76e8e30f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-d1115c53.js → BMI_BOYS.zscore.weekly-ae98b191.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-3ff3fde8.js → BMI_BOYS.zscore.yearly-e410310f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-84b072ae.js → BMI_GIRLS.percentile.monthly-1ee53950.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-2503fa80.js → BMI_GIRLS.percentile.weekly-7967a953.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-b7440889.js → BMI_GIRLS.percentile.yearly-f07780a7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-2e7f477b.js → BMI_GIRLS.zscore.monthly-906be5a1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-5b916186.js → BMI_GIRLS.zscore.weekly-3748926f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-6565beba.js → BMI_GIRLS.zscore.yearly-b8d49b38.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-2565c31a.js → HEAD CIRCUM_BOYS.percentile.monthly-be94a13e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-dbdd50d4.js → HEAD CIRCUM_BOYS.percentile.weekly-7c2c8df2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-0542fe16.js → HEAD CIRCUM_BOYS.percentile.yearly-30eb531b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-e242b3bb.js → HEAD CIRCUM_BOYS.zscore.monthly-0c08a883.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-03853d35.js → HEAD CIRCUM_BOYS.zscore.weekly-6f4425ef.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e421aac2.js → HEAD CIRCUM_BOYS.zscore.yearly-922c112e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3ef7c79c.js → HEAD CIRCUM_GIRLS.percentile.monthly-42d952ec.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5f278110.js → HEAD CIRCUM_GIRLS.percentile.weekly-a0cfbdbc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1fad226a.js → HEAD CIRCUM_GIRLS.percentile.yearly-d3d86f77.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e7a28695.js → HEAD CIRCUM_GIRLS.zscore.monthly-989d3afc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-eaf76d2f.js → HEAD CIRCUM_GIRLS.zscore.weekly-7de73dcc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-998b774f.js → HEAD CIRCUM_GIRLS.zscore.yearly-75dd55d9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-c0c32190.js → HEIGHT_BOYS.percentile.monthly-0e217fe1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-69ec680d.js → HEIGHT_BOYS.percentile.weekly-5b5faca9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c662b438.js → HEIGHT_BOYS.percentile.yearly-a95accdf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5aaf33e7.js → HEIGHT_BOYS.zscore.monthly-32d5e78f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e3b77573.js → HEIGHT_BOYS.zscore.weekly-a85c3023.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f2c44640.js → HEIGHT_BOYS.zscore.yearly-ac36c929.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8a79a946.js → HEIGHT_GIRLS.percentile.monthly-787eec16.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f1e1d3a2.js → HEIGHT_GIRLS.percentile.weekly-8152e9fa.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-7215d2c6.js → HEIGHT_GIRLS.percentile.yearly-3a74de1a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-10f3fa0b.js → HEIGHT_GIRLS.zscore.monthly-919b2d21.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-2a15403c.js → HEIGHT_GIRLS.zscore.weekly-7bfe8aae.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-db10e5af.js → HEIGHT_GIRLS.zscore.yearly-c618cbee.js} +0 -0
- /package/build/esm/{Onboarding-272cd967.js → Onboarding-1c390744.js} +0 -0
- /package/build/esm/{Visible-b4ad4384.js → Visible-e5e8b24a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-067b8675.js → WEIGHT_BOYS.percentile.monthly-8d8d5dfa.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-75cf07c4.js → WEIGHT_BOYS.percentile.weekly-b8e172aa.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-be8fdba8.js → WEIGHT_BOYS.percentile.yearly-1f80aec2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-0148bb1d.js → WEIGHT_BOYS.zscore.monthly-866ff56f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-30380687.js → WEIGHT_BOYS.zscore.weekly-f452ad1a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-7e87a3f7.js → WEIGHT_BOYS.zscore.yearly-70f90819.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d3fb1e52.js → WEIGHT_GIRLS.percentile.monthly-0edfc927.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f56210cd.js → WEIGHT_GIRLS.percentile.weekly-1cc59a0d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-d0dc190c.js → WEIGHT_GIRLS.percentile.yearly-204a66d9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9a35231f.js → WEIGHT_GIRLS.zscore.monthly-930dc7a9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-832c735b.js → WEIGHT_GIRLS.zscore.weekly-b92d80f4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-07374dc5.js → WEIGHT_GIRLS.zscore.yearly-2bf77445.js} +0 -0
- /package/build/esm/{cookieHelper-164be52d.js → cookieHelper-53cfa5ff.js} +0 -0
- /package/build/esm/{dataTransform-2a6ed39e.js → dataTransform-82245e0b.js} +0 -0
- /package/build/esm/{index-c0619327.js → index-1d891575.js} +0 -0
- /package/build/esm/{index-e87f2fe4.js → index-4756241f.js} +0 -0
- /package/build/esm/{index-8983fc14.js → index-c8ba96bd.js} +0 -0
- /package/build/esm/{isProduction-eea76777.js → isProduction-6a7e52b4.js} +0 -0
- /package/build/esm/{localizeNumberFormat-ad0a92dd.js → localizeNumberFormat-4c485e21.js} +0 -0
- /package/build/esm/{normalizeLink-79d50705.js → normalizeLink-b65caa99.js} +0 -0
- /package/build/esm/{number-86553751.js → number-5a8c480c.js} +0 -0
- /package/build/esm/{paths-51710b33.js → paths-dfc6eaef.js} +0 -0
- /package/build/esm/{screenSizeContext-f37fe312.js → screenSizeContext-41e1a059.js} +0 -0
- /package/build/esm/{theme-d92be740.js → theme-331e8d89.js} +0 -0
- /package/build/esm/{translationsContext-522117bb.js → translationsContext-d1ab1629.js} +0 -0
- /package/build/esm/{tslib.es6-8b2c89d4.js → tslib.es6-551abf03.js} +0 -0
- /package/build/esm/{types-457814df.js → types-a5df16c9.js} +0 -0
- /package/build/esm/{useIsInit-571964b2.js → useIsInit-15ae8ea6.js} +0 -0
- /package/build/esm/{useOutsideClick-0ade7837.js → useOutsideClick-f6ebdc99.js} +0 -0
- /package/build/esm/{useScrollbarSize-0b028825.js → useScrollbarSize-c6b06d5a.js} +0 -0
- /package/build/{index-c62c9e94.js → index-5f34c66e.js} +0 -0
- /package/build/{index-fa77075e.js → index-944d7487.js} +0 -0
- /package/build/{index-81280a31.js → index-c1f11b20.js} +0 -0
- /package/build/{isProduction-f442c956.js → isProduction-f0b3a5da.js} +0 -0
- /package/build/{localizeNumberFormat-2059a198.js → localizeNumberFormat-4947e088.js} +0 -0
- /package/build/{normalizeLink-42bbc5f4.js → normalizeLink-cf40fd4b.js} +0 -0
- /package/build/{number-fdd928b5.js → number-b782a97f.js} +0 -0
- /package/build/{paths-6e57680b.js → paths-cc069966.js} +0 -0
- /package/build/{screenSizeContext-868a3c7a.js → screenSizeContext-74f35126.js} +0 -0
- /package/build/{theme-aafce547.js → theme-7949ed06.js} +0 -0
- /package/build/{translationsContext-317bc783.js → translationsContext-8822bad5.js} +0 -0
- /package/build/{tslib.es6-3737b9d7.js → tslib.es6-91e40162.js} +0 -0
- /package/build/{types-0885e4af.js → types-acb43e66.js} +0 -0
- /package/build/{useIsInit-98d1130f.js → useIsInit-c6058b09.js} +0 -0
- /package/build/{useOutsideClick-239f0bc2.js → useOutsideClick-31a82d81.js} +0 -0
- /package/build/{useScrollbarSize-ffb8ebb0.js → useScrollbarSize-bcee25d8.js} +0 -0
package/build/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./theme-aafce547.js"),e=require("./constants-87844a04.js"),o=require("./types-0885e4af.js");require("./index-54b444c0.js"),require("date-fns/locale"),require("./Onboarding-48739c1f.js"),require("./isProduction-f442c956.js");var i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null});function a(t){return null!=t}const r={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,e)=>{const o="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(e||"vi-VN").format(o)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(e,o,i){var l,a,n;const d=i?i+"/"+e.slug:e.slug,u=(null===(a=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===a?void 0:a.call(l,(t=>r.formatCategory(t,e.id,d))))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:d||"",children:u,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(n=e.products)||void 0===n?void 0:n.map(r.formatProduct))||[]}},formatFooterInfo:t=>{var e,o,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(o=null===(e=null==t?void 0:t.branch)||void 0===e?void 0:e.branch)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var e,o;return{menu_title:t.menu_title,items:null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var e,o,i,l,a,n;return{hotSearchKeywords:(null===(o=null===(e=null==t?void 0:t.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==t?void 0:t.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(t=>r.formatCategory(t))))||[],footer:r.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var e,o,i,l;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&r.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(o=null===(e=t.product_promotions)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProductPromotion).filter(a))||[],categories:(null===(l=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(t=>r.formatCategory(t))).filter(a))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var e,o;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(o=(e=t.post_data.categories).map)||void 0===o?void 0:o.call(e,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var e,o,i,l;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatHomePage:t=>{var e,o,i,l,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(o=(e=t.brands).map)||void 0===o?void 0:o.call(e,r.formatBrand).filter(a):[],hotDeals:t.hot_deals?null===(l=(i=t.hot_deals).map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,r.formatBanner).filter(a):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,r.formatBanner).filter(a):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,r.formatBanner).filter(a):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,r.formatBlogPost).filter(a):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>r.formatCategory(t))).filter(a):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>r.formatCategory(t))).filter(a):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>r.formatPromotion(t))).filter(a):[]}:null},formatCategoryPage:function(t){var e,o,i,l;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatBrandPage:function(t){return t?r.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var e,o,i,l,n,d,u,s;return t?Object.assign(Object.assign({},r.formatProduct(t)),{relatedProducts:(null===(o=null===(e=t.related_products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProduct).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,r.formatPromotion).filter(a))||[]}):null},formatProductReview:t=>{var e,o;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(o=null===(e=t.rating_votes)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,e)=>{var o;return(null==t?void 0:t.length)&&(null===(o=null==t?void 0:t.find((t=>t.attribute_code===e)))||void 0===o?void 0:o.value)||""},formatAddress:t=>{var e,o,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(e=t.region)||void 0===e?void 0:e.region_id,label:null===(o=t.region)||void 0===o?void 0:o.region}||null,district:{value:r.formatCustomAttributes(t.custom_attributes,"district_id"),label:r.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:r.formatCustomAttributes(t.custom_attributes,"ward_id"),label:r.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var e,o;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(o=null===(e=null==t?void 0:t.products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var e,o,i,l,a;return t?{pending:Number(null===(e=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===e?void 0:e.amount)||0,processing:Number(null===(o=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===o?void 0:o.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var e,o,i,l,a,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(e=t.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(o=t.extension_attributes)||void 0===o?void 0:o.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(a=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,r.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var e;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(e=t.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var e,o,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(o=null===(e=t.addresses)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var e,o,i,l,a,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartItem))||void 0===i?void 0:i.sort(((t,e)=>Number(null==e?void 0:e.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?r.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?r.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(a=t.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var e,o,i;return{shipping:{address:t.shipping.address?r.formatCartAddress(t.shipping.address):null,method:(null===(e=t.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(o=t.items).map)||void 0===i?void 0:i.call(o,r.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var e,o,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var e;return t?{paymentMethods:r.formatPaymentMethod(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:r.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:r.formatOrder(t.order_info)}:null,formatCoupons:t=>{var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var e;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]};var n=Object.freeze({__proto__:null,dataFormatter:r});exports.Constants=e.constants,exports.Types=o.types,exports.ApiTypes=i,exports.DataFormatter=n,exports.DataTypes=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme-7949ed06.js");require("./index-34387735.js");var o=require("./isProduction-f0b3a5da.js"),t=require("./types-acb43e66.js");require("date-fns/locale"),require("./Onboarding-10568a94.js");var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",u=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,c=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},m=a?"http://localhost:3001":o.isProduction?`https://${d[s]}`:`https://discover.${d[s]}`,p=o.isProduction?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:u,GOOGLE_CLIENT_ID:c,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.theme.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(c=null===(u=null==e?void 0:e.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(c=(u=e.sub_banners).map)||void 0===c?void 0:c.call(u,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(u=e.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=e.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});exports.Types=t.types,exports.ApiTypes=l,exports.Constants=T,exports.DataFormatter=A,exports.DataTypes=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";const t=t=>e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},t),e.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));export{t as C};
|
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as e,M as t}from"./index-
|
|
1
|
+
import{D as e,M as t}from"./index-defe083c.js";export{B as BabyGrowthGender}from"./index-defe083c.js";import r,{useMemo as l,useRef as o,useState as a,useEffect as i}from"react";import{L as n,G as c,B as s,a as d}from"./Onboarding-1c390744.js";import{t as m}from"./theme-331e8d89.js";import{T as C,I as p}from"./index-dd92b8c2.js";import h from"styled-components";import{B as y}from"./index-ba8823a8.js";import{M as u}from"./index-e708ce28.js";import{h as f,n as g}from"./screenSizeContext-41e1a059.js";import b from"dayjs";import{u as E}from"./useTranslations-a3d1d6fe.js";import"lodash/debounce";import"./isProduction-6a7e52b4.js";import"./index-174c7b48.js";import"./useCategory-d97acb95.js";import{a as x,l as v}from"./localizeNumberFormat-4c485e21.js";import{H as w}from"./index.styles-9fb5b282.js";import{_ as L,a as M}from"./tslib.es6-551abf03.js";import"@mantine/core";import"./index-4f6158b6.js";import"./gAssets.js";import"./constants-37ae7692.js";import"./utils-f5473a22.js";import{T as k}from"./index-89658dc6.js";import{C as H}from"./index-1d891575.js";import{a as I}from"./useOutsideClick-f6ebdc99.js";import"@mantine/dates";import"@mantine/hooks";import{I as j}from"./index-d3d21257.js";import{ResponsiveContainer as S,LineChart as G,CartesianGrid as R,Tooltip as z,XAxis as Z,YAxis as _,Line as N,ReferenceDot as V}from"recharts";import T from"lodash/chunk";import"./useScrollbarSize-c6b06d5a.js";import"react-dom";import"./index.styled-695db338.js";import"lodash/throttle";import"./translationsContext-d1ab1629.js";import"string-format";import"date-fns/locale";import"react-keyed-flatten-children";import"./cookieHelper-53cfa5ff.js";import"slugify";import"@mantine/carousel";import"classnames";const A=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -381,7 +381,7 @@ import{D as e,M as t}from"./index-8f706fe7.js";export{B as BabyGrowthGender}from
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`,ye=({isActive:e,onChange:t,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(he,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(u,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(j,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ue=e=>{var t,l,{babyProfiles:o,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:f,newBabyValue:g,onNewBabyValueChange:b,siteType:x,buttonText:v,headerText:w}=e,M=L(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==s||s(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},v||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=o[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(me,Object.assign({title:w||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>r.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(ye,{siteType:x,value:g,onInputChange:b,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},f||B(e)))})):r.createElement(Ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(u,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},w||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(l=o||[])||void 0===l?void 0:l.map((e=>r.createElement(Q,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(ye,{value:g,onInputChange:b,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},f||B()))},fe={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-69ec680d.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-c0c32190.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-c662b438.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-75cf07c4.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-067b8675.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-be8fdba8.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-dbdd50d4.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-2565c31a.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-0542fe16.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-1472e9a4.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-d0f21e02.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-6596ce6d.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-f1e1d3a2.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-8a79a946.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-7215d2c6.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-f56210cd.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-d3fb1e52.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-d0dc190c.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-5f278110.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-3ef7c79c.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-1fad226a.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-2503fa80.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-84b072ae.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-b7440889.js")}}},ge={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-e3b77573.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-5aaf33e7.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-f2c44640.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-30380687.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-0148bb1d.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-7e87a3f7.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-03853d35.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-e242b3bb.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-e421aac2.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-d1115c53.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-d57199bf.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-3ff3fde8.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-2a15403c.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-10f3fa0b.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-db10e5af.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-832c735b.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-9a35231f.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-07374dc5.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-eaf76d2f.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-e7a28695.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-998b774f.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-5b916186.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-2e7f477b.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-6565beba.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},Ee=(e,t,r,l)=>l===n.Indonesia?ge[e][t][r]():fe[e][t][r](),xe=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ve=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Le=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Me=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Be=h.div`
|
|
384
|
+
`,ye=({isActive:e,onChange:t,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(he,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(u,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(j,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ue=e=>{var t,l,{babyProfiles:o,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:f,newBabyValue:g,onNewBabyValueChange:b,siteType:x,buttonText:v,headerText:w}=e,M=L(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==s||s(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},v||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=o[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(me,Object.assign({title:w||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>r.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(ye,{siteType:x,value:g,onInputChange:b,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},f||B(e)))})):r.createElement(Ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(u,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},w||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(l=o||[])||void 0===l?void 0:l.map((e=>r.createElement(Q,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(ye,{value:g,onInputChange:b,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},f||B()))},fe={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-5b5faca9.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-0e217fe1.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-a95accdf.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-b8e172aa.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-8d8d5dfa.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-1f80aec2.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-7c2c8df2.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-be94a13e.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-30eb531b.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-9d79b737.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-d23f78ea.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-8b9d5d2d.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-8152e9fa.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-787eec16.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-3a74de1a.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-1cc59a0d.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-0edfc927.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-204a66d9.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-a0cfbdbc.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-42d952ec.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-d3d86f77.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-7967a953.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-1ee53950.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-f07780a7.js")}}},ge={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-a85c3023.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-32d5e78f.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-ac36c929.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-f452ad1a.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-866ff56f.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-70f90819.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-6f4425ef.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-0c08a883.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-922c112e.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-ae98b191.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-76e8e30f.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-e410310f.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-7bfe8aae.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-919b2d21.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-c618cbee.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-b92d80f4.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-930dc7a9.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-2bf77445.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-7de73dcc.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-989d3afc.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-75dd55d9.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-3748926f.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-906be5a1.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-b8d49b38.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},Ee=(e,t,r,l)=>l===n.Indonesia?ge[e][t][r]():fe[e][t][r](),xe=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ve=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Le=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Me=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Be=h.div`
|
|
385
385
|
position: relative;
|
|
386
386
|
.custom-chart-label {
|
|
387
387
|
display: flex;
|
package/build/esm/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-
|
|
1
|
+
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-d1789aba.js";import"./tslib.es6-551abf03.js";import"./isProduction-6a7e52b4.js";
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
export declare const StyledSearchBarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const StyleWrapperContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const StyleSearchInputContainer: import("styled-components").StyledComponent<({ children, className, style, type }: import("../../../../components/atoms/container").Props) => import("react").JSX.Element, any, {}, never>;
|
|
5
|
+
export declare const StyleSearchContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const StyledTabWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyleTabContainer: import("styled-components").StyledComponent<({ children, className, style, type }: import("../../../../../components/atoms/container").Props) => import("react").JSX.Element, any, {}, never>;
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,T as TextDivider}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,T as TextDivider}from"./types-08dec1e5.js";export{c as CareConstants}from"./constants-37ae7692.js";import"./tslib.es6-551abf03.js";import"react";import"./useTranslations-a3d1d6fe.js";import"./translationsContext-d1ab1629.js";import"string-format";import"lodash/debounce";import"./index-d3d21257.js";import"@mantine/core";import"styled-components";import"./index-dd92b8c2.js";import"./theme-331e8d89.js";import"dayjs";import"./screenSizeContext-41e1a059.js";import"lodash/throttle";import"./index-174c7b48.js";import"date-fns/locale";import"./Onboarding-1c390744.js";import"./isProduction-6a7e52b4.js";import"./gAssets.js";import"lodash/shuffle";import"./useOutsideClick-f6ebdc99.js";import"react-loading-skeleton";import"./paths-dfc6eaef.js";import"./cookieHelper-53cfa5ff.js";import"./index-c8ba96bd.js";import"./ChevronDown-f77b650b.js";
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SiteType } from "../../types";
|
|
3
|
-
import { TypeProps } from "../molecules/navigationBar";
|
|
4
3
|
type Props = {
|
|
5
4
|
siteType: SiteType;
|
|
6
|
-
type: TypeProps;
|
|
7
5
|
enableSearch?: boolean;
|
|
8
6
|
className?: string;
|
|
9
7
|
};
|
|
10
|
-
export declare function HamburgerIcon({ siteType,
|
|
8
|
+
export declare function HamburgerIcon({ siteType, enableSearch, className }: Props): React.JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -9,8 +9,10 @@ export type Props = {
|
|
|
9
9
|
thumbnail?: string;
|
|
10
10
|
link?: string;
|
|
11
11
|
isNew?: boolean;
|
|
12
|
+
id?: string;
|
|
12
13
|
}[];
|
|
13
14
|
headingTitle?: string;
|
|
15
|
+
activeItem?: string;
|
|
14
16
|
};
|
|
15
|
-
declare const Categories: ({ hrefViewMore, titleBtnViewMore, UrlFE, onClosePopup, menuItems, headingTitle, }: Props) => React.JSX.Element;
|
|
17
|
+
declare const Categories: ({ hrefViewMore, titleBtnViewMore, UrlFE, onClosePopup, menuItems, headingTitle, activeItem, }: Props) => React.JSX.Element;
|
|
16
18
|
export { Categories };
|
package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledItem: import("styled-components").StyledComponent<"a", any, {}, never>;
|
package/build/esm/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HelpfulUrl } from "../../../../../ecom/dataFormatter/lib/dataTypes";
|
|
3
|
+
export type Props = {
|
|
4
|
+
helpfulUrls: HelpfulUrl[];
|
|
5
|
+
hrefViewMore?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const EcomSpotlights: ({ helpfulUrls, }: Props) => React.JSX.Element;
|
|
8
|
+
export { EcomSpotlights };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MenuItemType } from "../../../../types";
|
|
3
|
-
import { TypeProps } from "..";
|
|
4
3
|
export interface Props {
|
|
5
|
-
type: TypeProps;
|
|
6
4
|
menuItems: MenuItemType[];
|
|
7
5
|
}
|
|
8
|
-
declare const HamburgerMenu: ({
|
|
6
|
+
declare const HamburgerMenu: ({ menuItems }: Props) => React.JSX.Element;
|
|
9
7
|
export { HamburgerMenu };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MenuItemType } from "../../../types";
|
|
3
|
-
export type TypeProps = 'popup' | 'popup-sub-level' | 'home';
|
|
4
3
|
export interface Props {
|
|
5
4
|
onTopBarAppears: (b: boolean) => void;
|
|
6
|
-
type: TypeProps;
|
|
7
5
|
languageMenu?: JSX.Element;
|
|
8
6
|
menuItems: MenuItemType[];
|
|
9
7
|
enableBookingBtn?: boolean;
|
|
8
|
+
logoComponent?: JSX.Element;
|
|
10
9
|
}
|
|
11
|
-
declare const NavigationBar: ({ onTopBarAppears,
|
|
10
|
+
declare const NavigationBar: ({ onTopBarAppears, languageMenu, menuItems, logoComponent, }: Props) => React.JSX.Element;
|
|
12
11
|
export { NavigationBar };
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Hospital } from "../../care/interfaces/types";
|
|
3
3
|
import { LocaleType, ProjectType } from "../../interfaces/types";
|
|
4
4
|
import { Option } from "../molecules/languageSwitcher/tooltipSelection";
|
|
5
|
+
import { HelpfulUrl } from "../../ecom/dataFormatter/lib/dataTypes";
|
|
5
6
|
import { Community, Post } from "../../together/interfaces/types";
|
|
6
7
|
import { NavConfig } from "./hooks/useNavConfig";
|
|
7
8
|
import { Category, HealthTool, MenuServiceType, Specialty, SpotlightSummary, State } from "./types";
|
|
@@ -22,6 +23,9 @@ export type NavMenuContentType = {
|
|
|
22
23
|
items?: Community[];
|
|
23
24
|
spotlights?: Post[];
|
|
24
25
|
};
|
|
26
|
+
ecom?: {
|
|
27
|
+
helpfulUrls: HelpfulUrl[];
|
|
28
|
+
};
|
|
25
29
|
};
|
|
26
30
|
export type Props = {
|
|
27
31
|
isMobile?: boolean;
|
|
@@ -42,6 +46,7 @@ export type Props = {
|
|
|
42
46
|
sitewideBanner?: JSX.Element;
|
|
43
47
|
sitewideBannerShown?: boolean;
|
|
44
48
|
sponsorComponent?: JSX.Element;
|
|
49
|
+
logoComponent?: JSX.Element;
|
|
45
50
|
languageOptions?: Option[];
|
|
46
51
|
currentUrl?: string;
|
|
47
52
|
isFirstLogin?: boolean;
|
|
@@ -2,5 +2,5 @@ export { NavigationV2, Props as NavigationV2Props, getNavMenuContent, getNavMenu
|
|
|
2
2
|
export { UserProfileNavigation, UserProfileNavigationHeader, UserProfileNavigationStats, } from "./userProfileNavigation";
|
|
3
3
|
export { Footer } from "./footer";
|
|
4
4
|
export { NavigationLogoutPopup, Props as NavigationLogoutPopupProps, } from "./navigationLogoutPopup";
|
|
5
|
-
export { ProfilePopup, Props as ProfilePopupProps, } from "./navigationProfileButton/profilePopup";
|
|
6
5
|
export { NavigationProfileButton, Props as NavigationProfileButtonProps, } from "./navigationProfileButton";
|
|
6
|
+
export { ProfileNavigation, Props as ProfileNavigationProps, } from "./profileNavigation";
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { LOCALE, SiteType, UserInfo } from "../../../interfaces/types";
|
|
3
3
|
export type Props = {
|
|
4
|
-
userInfo
|
|
4
|
+
userInfo?: UserInfo;
|
|
5
5
|
siteType: SiteType;
|
|
6
6
|
onLoginClick?: (e: React.MouseEvent) => void;
|
|
7
7
|
SSO_URL?: string;
|
|
8
8
|
currentUrl?: string;
|
|
9
9
|
isMinifyLogin?: boolean;
|
|
10
|
-
enableCare?: boolean;
|
|
11
|
-
enableTogether?: boolean;
|
|
12
|
-
enableEcom?: boolean;
|
|
13
|
-
enableMySaved?: boolean;
|
|
14
|
-
isUserProfileNavigatorMenuHidden?: boolean;
|
|
15
|
-
isMyHealthEnabled?: boolean;
|
|
16
|
-
UP_BASEPATH?: string;
|
|
17
|
-
togetherApiDomain?: string;
|
|
18
10
|
onLogout?: () => void;
|
|
19
11
|
style?: CSSProperties;
|
|
20
|
-
userProfileRouterPush?: (s: string) => void;
|
|
21
12
|
isLoading?: boolean;
|
|
22
13
|
locale: LOCALE;
|
|
23
14
|
};
|
|
24
|
-
export declare const NavigationProfileButton: ({ userInfo, siteType, onLoginClick, SSO_URL, currentUrl, isMinifyLogin,
|
|
15
|
+
export declare const NavigationProfileButton: ({ userInfo, siteType, onLoginClick, SSO_URL, currentUrl, isMinifyLogin, onLogout, style, isLoading, locale, }: Props) => React.JSX.Element;
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { UserInfo } from "../../../interfaces/types";
|
|
3
3
|
export type Props = {
|
|
4
|
-
SSO_URL?: string;
|
|
5
|
-
UP_BASEPATH?: string;
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
targetAvatar?: string;
|
|
8
4
|
userInfo?: UserInfo;
|
|
9
|
-
|
|
10
|
-
enableTogether?: boolean;
|
|
11
|
-
enableEcom?: boolean;
|
|
12
|
-
enableMySaved?: boolean;
|
|
5
|
+
isOpen: boolean;
|
|
13
6
|
closePopup: () => void;
|
|
14
7
|
dispatchLogout: () => void;
|
|
15
|
-
userProfileRouterPush?: (s: string) => void;
|
|
16
8
|
siteType: 'marryBaby' | 'helloSites';
|
|
17
|
-
isUserProfileNavigatorMenuHidden?: boolean;
|
|
18
|
-
isMyHealthEnabled?: boolean;
|
|
19
|
-
togetherApiDomain?: string;
|
|
20
|
-
locale: LOCALE;
|
|
21
9
|
};
|
|
22
|
-
declare const ProfilePopup: ({
|
|
10
|
+
declare const ProfilePopup: ({ isOpen, userInfo, closePopup, siteType, dispatchLogout, }: Props) => React.JSX.Element;
|
|
23
11
|
export { ProfilePopup };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { TranslationKeys } from "../../../i18n/translationKeys";
|
|
3
|
+
import { UserInfo } from "../../../interfaces/types";
|
|
4
|
+
type NavMenuItem = {
|
|
5
|
+
key: TranslationKeys;
|
|
6
|
+
className?: string;
|
|
7
|
+
value?: RouteKey;
|
|
8
|
+
link?: string;
|
|
9
|
+
icon?: JSX.Element;
|
|
10
|
+
iconColor?: string;
|
|
11
|
+
subMenu?: NavMenuItem[];
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
tracking?: {
|
|
14
|
+
action: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type RouteKey = 'profile' | 'myHealth' | 'saved' | 'booking' | 'myCommunities' | 'password' | 'help' | 'eCom' | 'disable-account' | 'logout' | 'subscription' | 'eCom-manageOrders' | 'eCom-manageAddress' | 'eCom-memberCard' | 'eCom-voucher';
|
|
18
|
+
export type Props = {
|
|
19
|
+
className?: string;
|
|
20
|
+
activeItem?: TranslationKeys;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
navMenuItems?: NavMenuItem[][];
|
|
23
|
+
onLogout?: () => void;
|
|
24
|
+
siteType: 'marryBaby' | 'helloSites';
|
|
25
|
+
userInfo?: UserInfo;
|
|
26
|
+
};
|
|
27
|
+
declare const ProfileNavigation: ({ className, activeItem: forceActiveItem, navMenuItems: navMenuItemsProp, style, onLogout, siteType, userInfo, }: Props) => React.JSX.Element;
|
|
28
|
+
declare const NavMenuItem: ({ item, activeKey, forceOpen, onLogout, onClick, siteType, }: {
|
|
29
|
+
item: NavMenuItem;
|
|
30
|
+
activeKey?: string;
|
|
31
|
+
forceOpen?: boolean;
|
|
32
|
+
onLogout?: () => void;
|
|
33
|
+
onClick?: () => void;
|
|
34
|
+
siteType?: 'marryBaby' | 'helloSites';
|
|
35
|
+
}) => React.JSX.Element;
|
|
36
|
+
export { ProfileNavigation };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const StyledNavMenu: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
type StyledNavMenuItemProps = {
|
|
3
|
+
hasSubmenu: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const StyledNavMenuItem: import("styled-components").StyledComponent<"div", any, StyledNavMenuItemProps, never>;
|
|
6
|
+
export declare const StyledNavMenuItemContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const StyledNavMenuItemDropdown: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const StyledNavFooterSubMenu: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SiteType } from "../../../interfaces/types";
|
|
3
|
+
export type UserProfileRank = 'member' | 'ambassador' | 'influencer' | 'expert' | 'doctor';
|
|
4
|
+
export declare const Rank: ({ rank, siteType, }: {
|
|
5
|
+
rank: UserProfileRank;
|
|
6
|
+
siteType?: SiteType;
|
|
7
|
+
}) => React.JSX.Element;
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{W as AdBlock,A as Alert,f as ArticleCard,g as ArticleCardV2,a as Avatar,y as BMICardEmbed,J as BMRCardEmbed,z as BabyGrowthCardEmbed,E as BabyPoopEmbed,B as Badge,b as BorderHeading,Q as Breadcrumbs,h as CategoryCard,C as Checkbox,i as CheckboxGroup,t as CookieAcceptConfirm,D as DatePicker,N as DateRangePicker,p as DoctorInfo,x as DueDateCardEmbed,F as FileDropdown,X as FixedBottomAdBlock,s as FloatButtonGroup,e as GenderOptionControl,G as Grid,I as IconText,L as Loading,_ as MAPPING_CATEGORY_PREMIUM_API_TYPE,Z as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,u as MobileBottomNavigationIcon,O as OvulationCardEmbed,K as PWGCardEmbed,P as Pagination,j as ProgressBar,R as Radio,k as RadioGroup,d as RateStars,S as ScrollList,v as SeoHead,U as ShareContainer,V as ShareDrawer,l as SideMenu,m as StatisticCard,Y as SurveyOrPremiumBanner,q as SurveyQuestionCard,r as SurveyThankyouCard,H as THRCardEmbed,n as Table,o as Tabs,T as Tag,c as Toggle,w as ToolsBannerCard,$ as UserProfileNavigation,a0 as UserProfileNavigationHeader,a1 as UserProfileNavigationStats}from"./index-cc2ec422.js";export{B as Button}from"./index-ba8823a8.js";export{A as AuthorBadge,a as BookingBtn,B as BtnChoice,D as Divider,b as Dropdown}from"./index.styled-9c78d136.js";export{F as Flag,I as ImageWrap}from"./index-4f6158b6.js";export{H as Heading,P as PureInput,S as StepRenderer,a as StepRendererContext,T as TextArea}from"./index.styles-9fb5b282.js";export{I as Input}from"./index-d3d21257.js";export{L as Label}from"./constants-37ae7692.js";export{L as Logo}from"./index-8d9fdedb.js";export{T as Text}from"./index-89658dc6.js";export{C as Container}from"./index-c8ba96bd.js";export{I as Icon}from"./index-dd92b8c2.js";export{D as Drawer,M as Modal,R as RadioImageGroup}from"./index-defe083c.js";export{C as CustomReferenceDot}from"./index-1d891575.js";export{L as LogoIcon}from"./utils-f5473a22.js";export{P as Popup}from"./index-475909b9.js";export{L as LanguageSwitcher,b as NavigationLogoutPopup,c as NavigationProfileButton,N as NavigationV2,P as ProfileNavigation,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-dbe5b8a5.js";export{P as PillCarousel}from"./index-c7448506.js";export{A as AddressInput}from"./index-3a199477.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-41e1a059.js";import"styled-components";import"lodash/throttle";import"./useTranslations-a3d1d6fe.js";import"./translationsContext-d1ab1629.js";import"string-format";import"lodash/debounce";import"./isProduction-6a7e52b4.js";import"./index-174c7b48.js";import"date-fns/locale";import"./Onboarding-1c390744.js";import"./useCategory-d97acb95.js";import"./gAssets.js";import"./theme-331e8d89.js";import"./tslib.es6-551abf03.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"@mantine/hooks";import"html-react-parser";import"date-fns";import"./index.styled-695db338.js";import"./types-a5df16c9.js";import"./index-239e4aa5.js";import"./index-e708ce28.js";import"react-hook-form";import"./useHealthToolCache-1be53140.js";import"./getDynamicHealthTool-a4a65b12.js";import"./core-d1789aba.js";import"./normalizeLink-b65caa99.js";import"./routing-fcc342f6.js";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useOutsideClick-f6ebdc99.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-0dec7405.js";import"uuid";import"@mantine/form";import"./index-39283715.js";import"js-cookie";import"lodash/flatten";import"react-contenteditable";import"react-dom";import"lodash/uniqBy";import"./cookieHelper-53cfa5ff.js";import"./number-5a8c480c.js";import"dayjs/plugin/relativeTime";import"./paths-dfc6eaef.js";import"@mantine/carousel";import"classnames";import"react-keyed-flatten-children";import"slugify";import"./useScrollbarSize-c6b06d5a.js";import"./ChevronDown-f77b650b.js";import"./index-e9d8aa2a.js";import"./useIsInit-15ae8ea6.js";import"./utils-b8bc10f2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as e}from"./screenSizeContext-
|
|
1
|
+
import{M as e}from"./screenSizeContext-41e1a059.js";import i from"styled-components";import a from"react";const t=i.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
|