@hhgtech/hhg-components 1.27.111 → 1.27.112
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/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +2 -1
- package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +3 -2
- package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +2 -1
- package/build/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +1 -1
- package/build/care/interfaces/constants.d.ts +1 -0
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/{constants-549daccd.js → constants-e7d71ae0.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-cf08ddba.js → core-223cfdf2.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +5 -5
- package/build/esm/cache.js +1 -1
- package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +2 -1
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +3 -2
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +2 -1
- package/build/esm/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +1 -1
- package/build/esm/care/interfaces/constants.d.ts +1 -0
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-9b0dfbff.js → constants-7adbe3c0.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-d5723cfb.js → core-29500107.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-d6fb6721.js → fixedBottomAdBlock-4a036f62.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-29f9213b.js → getDynamicHealthTool-69405709.js} +1 -1
- package/build/esm/{getSocialList-25ba1828.js → getSocialList-92cf722f.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-8f77e3ae.js → index-0816b158.js} +2 -2
- package/build/esm/{index-5cb8c0d8.js → index-1c39b096.js} +1 -1
- package/build/esm/{index-901e79c9.js → index-402570ee.js} +1 -1
- package/build/esm/{index-bc78096c.js → index-47fa4d84.js} +1 -1
- package/build/esm/{index-e8ef71b5.js → index-4b3f4c97.js} +1 -1
- package/build/esm/{index-2f93c125.js → index-6f00ca93.js} +1 -1
- package/build/esm/{index-7c08eeef.js → index-7a0cf70a.js} +2 -2
- package/build/esm/{index-3de4e500.js → index-9c19eedb.js} +1 -1
- package/build/esm/{index-0243a82f.js → index-a0fdff7f.js} +1 -1
- package/build/esm/{index-d5f79d3b.js → index-ab6ab4f8.js} +1 -1
- package/build/esm/{index-bcb2f9a4.js → index-b528163b.js} +1 -1
- package/build/esm/index-b8e67607.js +1 -0
- package/build/esm/{index-d1e0f7da.js → index-bcd1808f.js} +1 -1
- package/build/esm/{index-0e498cef.js → index-caf3b0b5.js} +1 -1
- package/build/esm/{index-cdf8cd15.js → index-d597705a.js} +1 -1
- package/build/esm/{index-7ae73b73.js → index-dbfe0a73.js} +1 -1
- package/build/esm/{index-119f7391.js → index-e4a9ae2b.js} +1 -1
- package/build/esm/{index-3cb58b69.js → index-f43dae18.js} +1 -1
- package/build/esm/{index-2c2ab0e9.js → index-f9c9808c.js} +1 -1
- package/build/esm/{index-e6e6e936.js → index-fbca16bf.js} +1 -1
- package/build/esm/{index-48be4929.js → index-fe688742.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-96bddf4c.js → index.styled-7621a537.js} +7 -7
- package/build/esm/{index.styled-a4fcd334.js → index.styled-897d1d7d.js} +1 -1
- package/build/esm/{index.styled-7e34321a.js → index.styled-c0a2cbc4.js} +2 -2
- package/build/esm/{index.styles-7c303c91.js → index.styles-2670b640.js} +1 -1
- 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/{normalizeLink-89628601.js → normalizeLink-21860b29.js} +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/paths-e75f2e2f.js +1 -0
- package/build/esm/pwg.js +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{types-24eea7b5.js → types-c0872c63.js} +1 -1
- package/build/esm/{types-768250f5.js → types-c35e8660.js} +130 -130
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-6ce39bff.js → useCategory-70a19940.js} +1 -1
- package/build/esm/{useHealthToolCache-e9192e5e.js → useHealthToolCache-59a568dd.js} +1 -1
- package/build/esm/{useRafState-974935f5.js → useRafState-66373b2d.js} +1 -1
- package/build/esm/{useTranslations-2430a2a0.js → useTranslations-5eeefd8c.js} +1 -1
- package/build/esm/{utils-12e2c810.js → utils-cd9f3234.js} +1 -1
- package/build/esm/vaccination.js +12 -12
- package/build/{fixedBottomAdBlock-6d47251b.js → fixedBottomAdBlock-90957ff3.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-4b545469.js → getDynamicHealthTool-9858cbf6.js} +1 -1
- package/build/{getSocialList-8f83dc95.js → getSocialList-e92f5b03.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-5c07473f.js → index-2075491a.js} +1 -1
- package/build/{index-c3a8adc8.js → index-2163c775.js} +1 -1
- package/build/{index-f2c0dc10.js → index-2b1500c8.js} +1 -1
- package/build/{index-187e0f1f.js → index-2e49ed8f.js} +1 -1
- package/build/{index-f8421eda.js → index-314491e7.js} +1 -1
- package/build/{index-5014f061.js → index-3fa544d3.js} +1 -1
- package/build/{index-0b75ad2a.js → index-44ba7b08.js} +1 -1
- package/build/{index-2d3c34aa.js → index-4d941e91.js} +1 -1
- package/build/{index-55035468.js → index-56ad1186.js} +1 -1
- package/build/{index-203f0a9a.js → index-611f5daf.js} +1 -1
- package/build/{index-ca4a57b8.js → index-633a5bf3.js} +3 -3
- package/build/{index-7c01f515.js → index-7109c879.js} +1 -1
- package/build/{index-1740c5b8.js → index-753c5340.js} +1 -1
- package/build/index-7af60d34.js +1 -0
- package/build/{index-f168badd.js → index-9139a1b0.js} +1 -1
- package/build/{index-615024b7.js → index-9f431a0f.js} +2 -2
- package/build/{index-2a0f61e2.js → index-b3e74643.js} +1 -1
- package/build/{index-dde6cb12.js → index-d220afbf.js} +1 -1
- package/build/{index-410406ae.js → index-e29e4c94.js} +1 -1
- package/build/{index-ec7f28e5.js → index-e71d86ca.js} +1 -1
- package/build/{index-8212d168.js → index-f4e53bf8.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-a5b7f642.js → index.styled-3d7dd6e8.js} +1 -1
- package/build/index.styled-790b9cd1.js +50 -0
- package/build/{index.styled-25fca885.js → index.styled-9824e086.js} +3 -3
- package/build/{index.styles-64093d61.js → index.styles-dcdcb15d.js} +1 -1
- 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/{normalizeLink-9a714adb.js → normalizeLink-72938aa8.js} +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/paths-52bfb691.js +1 -0
- package/build/pwg.js +2 -2
- package/build/together.js +1 -1
- package/build/{types-1b10750d.js → types-7ecc106d.js} +1 -1
- package/build/{types-40cab689.js → types-c6a1a14f.js} +4 -4
- package/build/types.js +1 -1
- package/build/{useCategory-fbc07a2d.js → useCategory-4968c4d0.js} +1 -1
- package/build/{useHealthToolCache-8b40316a.js → useHealthToolCache-7b38b8b0.js} +1 -1
- package/build/{useRafState-779e60e7.js → useRafState-228e7e99.js} +1 -1
- package/build/{useTranslations-424bb567.js → useTranslations-e52e6fd2.js} +1 -1
- package/build/utils-b44511dc.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/esm/index-425660a4.js +0 -1
- package/build/esm/paths-fa0a821f.js +0 -1
- package/build/index-474f4921.js +0 -1
- package/build/index.styled-c6850e52.js +0 -50
- package/build/paths-28b1bd97.js +0 -1
- package/build/utils-028b83bf.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-2169926f.js → BMI_BOYS.percentile.monthly-03b0a17d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-6d5061c6.js → BMI_BOYS.percentile.weekly-a33d058d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-5f739100.js → BMI_BOYS.percentile.yearly-6ff97ed9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-75e11545.js → BMI_BOYS.zscore.monthly-d76b4424.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-b3556b6a.js → BMI_BOYS.zscore.weekly-25865f62.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-4ebe038f.js → BMI_BOYS.zscore.yearly-0a163e24.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-05e28f78.js → BMI_GIRLS.percentile.monthly-526177f1.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-4054b056.js → BMI_GIRLS.percentile.weekly-f5e5b1bf.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-6d9f3e1c.js → BMI_GIRLS.percentile.yearly-f8d1dfcd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-344ed489.js → BMI_GIRLS.zscore.monthly-dadee917.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-7577fdd6.js → BMI_GIRLS.zscore.weekly-443024a5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-0026b96e.js → BMI_GIRLS.zscore.yearly-3bf0e411.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4770cf38.js → HEAD CIRCUM_BOYS.percentile.monthly-0d86a102.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-51ffefe5.js → HEAD CIRCUM_BOYS.percentile.weekly-9b9ac144.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-8d887c12.js → HEAD CIRCUM_BOYS.percentile.yearly-ea0ee6dc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f4380098.js → HEAD CIRCUM_BOYS.zscore.monthly-b0f6f3ce.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-225f6e87.js → HEAD CIRCUM_BOYS.zscore.weekly-3a24b5da.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-1b185e52.js → HEAD CIRCUM_BOYS.zscore.yearly-c0d3acd7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d33665c2.js → HEAD CIRCUM_GIRLS.percentile.monthly-3121a310.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e03ab684.js → HEAD CIRCUM_GIRLS.percentile.weekly-76c88a25.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-dccddafd.js → HEAD CIRCUM_GIRLS.percentile.yearly-d7662134.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f3770a5a.js → HEAD CIRCUM_GIRLS.zscore.monthly-2fd1d14e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-f380c4a3.js → HEAD CIRCUM_GIRLS.zscore.weekly-32ca855c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-213f9e26.js → HEAD CIRCUM_GIRLS.zscore.yearly-45412ada.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-159b23b3.js → HEIGHT_BOYS.percentile.monthly-52900d4f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-dea84dd9.js → HEIGHT_BOYS.percentile.weekly-61b1d40a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-43132dd4.js → HEIGHT_BOYS.percentile.yearly-507a34d2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-6386157d.js → HEIGHT_BOYS.zscore.monthly-dc6aa694.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-8c95e60e.js → HEIGHT_BOYS.zscore.weekly-c50427f9.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-a20e1e60.js → HEIGHT_BOYS.zscore.yearly-89381ecc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-c35ca151.js → HEIGHT_GIRLS.percentile.monthly-a5e48323.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-55efadc3.js → HEIGHT_GIRLS.percentile.weekly-01b9b367.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-67a99ecb.js → HEIGHT_GIRLS.percentile.yearly-40365af8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-60034a31.js → HEIGHT_GIRLS.zscore.monthly-be2a1555.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-637e4002.js → HEIGHT_GIRLS.zscore.weekly-7dd8e2be.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-dff229f7.js → HEIGHT_GIRLS.zscore.yearly-4cc3169b.js} +0 -0
- /package/build/{Onboarding-b6d46718.js → Onboarding-eda97622.js} +0 -0
- /package/build/{Visible-c0d87c4f.js → Visible-8f91e576.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-5b2fbdb5.js → WEIGHT_BOYS.percentile.monthly-5f71f8e6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-31324827.js → WEIGHT_BOYS.percentile.weekly-ad9e0982.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-99b220b3.js → WEIGHT_BOYS.percentile.yearly-ed1e14bb.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-37df73d8.js → WEIGHT_BOYS.zscore.monthly-02ce2d47.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-97539687.js → WEIGHT_BOYS.zscore.weekly-5e25b5a4.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-018cd3f2.js → WEIGHT_BOYS.zscore.yearly-3d2ec650.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-94194d40.js → WEIGHT_GIRLS.percentile.monthly-831fbf48.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-4092c807.js → WEIGHT_GIRLS.percentile.weekly-62e5c21b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-80188db3.js → WEIGHT_GIRLS.percentile.yearly-634b6b1c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-aa93af02.js → WEIGHT_GIRLS.zscore.monthly-0bb0f9dc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-d5f6108b.js → WEIGHT_GIRLS.zscore.weekly-324b7a89.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-dadd5a9c.js → WEIGHT_GIRLS.zscore.yearly-63965708.js} +0 -0
- /package/build/{cookieHelper-5e232b89.js → cookieHelper-67cb3d98.js} +0 -0
- /package/build/{dataTransform-e616f86a.js → dataTransform-ec79da65.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-a21c2804.js → BMI_BOYS.percentile.monthly-c0ed6b25.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-660eb5a0.js → BMI_BOYS.percentile.weekly-41326a44.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-4472b493.js → BMI_BOYS.percentile.yearly-aaeb4489.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-ef6d5124.js → BMI_BOYS.zscore.monthly-fd822aa5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-2850e334.js → BMI_BOYS.zscore.weekly-eb21980f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-7675f189.js → BMI_BOYS.zscore.yearly-c0c5f77a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-ccb1ae23.js → BMI_GIRLS.percentile.monthly-891f0c3a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-01af9f62.js → BMI_GIRLS.percentile.weekly-058942a5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-3b4ff210.js → BMI_GIRLS.percentile.yearly-18e64396.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-78346cd2.js → BMI_GIRLS.zscore.monthly-fb4764bd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-1354bad8.js → BMI_GIRLS.zscore.weekly-6e3cdd9d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-123cd996.js → BMI_GIRLS.zscore.yearly-964afbaa.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-b7a46cec.js → HEAD CIRCUM_BOYS.percentile.monthly-05d677e9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-daadf38b.js → HEAD CIRCUM_BOYS.percentile.weekly-ce43ef6e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c64d87f6.js → HEAD CIRCUM_BOYS.percentile.yearly-2b6e2ead.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-17a992e7.js → HEAD CIRCUM_BOYS.zscore.monthly-e790d5b8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a858df78.js → HEAD CIRCUM_BOYS.zscore.weekly-24f67c66.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-18fce9ea.js → HEAD CIRCUM_BOYS.zscore.yearly-808cabb3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-7a8b8a72.js → HEAD CIRCUM_GIRLS.percentile.monthly-2494b2f5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4efe8114.js → HEAD CIRCUM_GIRLS.percentile.weekly-c619fe7e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-bd019865.js → HEAD CIRCUM_GIRLS.percentile.yearly-95322471.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-5f663a70.js → HEAD CIRCUM_GIRLS.zscore.monthly-6cef3e38.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-39129ae0.js → HEAD CIRCUM_GIRLS.zscore.weekly-63d2be33.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b7fee04a.js → HEAD CIRCUM_GIRLS.zscore.yearly-0111d1d5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0f86faa9.js → HEIGHT_BOYS.percentile.monthly-d681290f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-799ce0a2.js → HEIGHT_BOYS.percentile.weekly-5873089d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3f3c2f4d.js → HEIGHT_BOYS.percentile.yearly-37378046.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-40b79033.js → HEIGHT_BOYS.zscore.monthly-1b2697a7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-335e16b8.js → HEIGHT_BOYS.zscore.weekly-84b0707d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-1052e7c2.js → HEIGHT_BOYS.zscore.yearly-3eb4d639.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-5c1c2fda.js → HEIGHT_GIRLS.percentile.monthly-028e111f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-185ecd08.js → HEIGHT_GIRLS.percentile.weekly-13c93618.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-071f0347.js → HEIGHT_GIRLS.percentile.yearly-cf733987.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-7d81ef69.js → HEIGHT_GIRLS.zscore.monthly-aece5b1c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4bcedfad.js → HEIGHT_GIRLS.zscore.weekly-9d1ee9e2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3b576a0d.js → HEIGHT_GIRLS.zscore.yearly-7b7ec405.js} +0 -0
- /package/build/esm/{Onboarding-333aa9dc.js → Onboarding-8386c62c.js} +0 -0
- /package/build/esm/{Visible-8afbad1e.js → Visible-53ac248e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-8674ec9b.js → WEIGHT_BOYS.percentile.monthly-1dff682d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-6c8ebad7.js → WEIGHT_BOYS.percentile.weekly-c2ff9b23.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-502a9bab.js → WEIGHT_BOYS.percentile.yearly-982ac1ae.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4adc8c4e.js → WEIGHT_BOYS.zscore.monthly-b95b5729.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-c253912c.js → WEIGHT_BOYS.zscore.weekly-6d599f9e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-99f50300.js → WEIGHT_BOYS.zscore.yearly-bab0c651.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-8c64fab0.js → WEIGHT_GIRLS.percentile.monthly-0f54b996.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-44176b94.js → WEIGHT_GIRLS.percentile.weekly-fe08daa7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-c38faf3c.js → WEIGHT_GIRLS.percentile.yearly-5c8d7800.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9ce628d3.js → WEIGHT_GIRLS.zscore.monthly-d9f39b55.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-77b92300.js → WEIGHT_GIRLS.zscore.weekly-c79991bd.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-e12994a8.js → WEIGHT_GIRLS.zscore.yearly-d1d50e1a.js} +0 -0
- /package/build/esm/{cookieHelper-198da3c2.js → cookieHelper-52685cc6.js} +0 -0
- /package/build/esm/{dataTransform-c86ebc50.js → dataTransform-55ae967b.js} +0 -0
- /package/build/esm/{index-436b7d17.js → index-f8eec5e7.js} +0 -0
- /package/build/esm/{isProduction-f84e5e5c.js → isProduction-ed4525be.js} +0 -0
- /package/build/esm/{localizeNumberFormat-f760793d.js → localizeNumberFormat-705ca7e6.js} +0 -0
- /package/build/esm/{number-ba8724fc.js → number-05af8f98.js} +0 -0
- /package/build/esm/{screenSizeContext-26c77dc1.js → screenSizeContext-10db56d9.js} +0 -0
- /package/build/esm/{theme-cd27574e.js → theme-a4e9bb74.js} +0 -0
- /package/build/esm/{translationsContext-bf4a1818.js → translationsContext-3b169438.js} +0 -0
- /package/build/esm/{tslib.es6-830e842d.js → tslib.es6-6c588ee6.js} +0 -0
- /package/build/esm/{types-5fdf9e45.js → types-b707f6a4.js} +0 -0
- /package/build/esm/{useIsInit-c1a1ca52.js → useIsInit-5d90c0d1.js} +0 -0
- /package/build/esm/{useOutsideClick-7a4c1573.js → useOutsideClick-fbe19017.js} +0 -0
- /package/build/esm/{useScrollbarSize-cbdd3859.js → useScrollbarSize-71b41011.js} +0 -0
- /package/build/esm/{useUniqueId-159be8a3.js → useUniqueId-d097338a.js} +0 -0
- /package/build/{index-ba487404.js → index-e8e5f987.js} +0 -0
- /package/build/{isProduction-d5eaf028.js → isProduction-6603c122.js} +0 -0
- /package/build/{localizeNumberFormat-20fdd30c.js → localizeNumberFormat-d70884f2.js} +0 -0
- /package/build/{number-060a39e3.js → number-7a59b05e.js} +0 -0
- /package/build/{screenSizeContext-7720eb06.js → screenSizeContext-d3822141.js} +0 -0
- /package/build/{theme-177c35d7.js → theme-95cd4c16.js} +0 -0
- /package/build/{translationsContext-ee716225.js → translationsContext-0aeba983.js} +0 -0
- /package/build/{tslib.es6-fb3ec5b3.js → tslib.es6-23138875.js} +0 -0
- /package/build/{types-bee2c39e.js → types-c4a0b167.js} +0 -0
- /package/build/{useIsInit-5e49ad37.js → useIsInit-5fb3bcb1.js} +0 -0
- /package/build/{useOutsideClick-6a78771c.js → useOutsideClick-51c6acd1.js} +0 -0
- /package/build/{useScrollbarSize-dedf0512.js → useScrollbarSize-9b6430c7.js} +0 -0
- /package/build/{useUniqueId-6620a12c.js → useUniqueId-10edc9fa.js} +0 -0
package/build/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-633a5bf3.js"),t=require("react"),r=require("./Onboarding-eda97622.js"),a=require("./theme-95cd4c16.js"),l=require("./index-d220afbf.js"),o=require("styled-components"),n=require("./index-f4e53bf8.js"),i=require("./index-4d941e91.js"),d=require("./index-611f5daf.js"),s=require("./screenSizeContext-d3822141.js"),c=require("dayjs"),u=require("./useTranslations-e52e6fd2.js");require("lodash/debounce"),require("./isProduction-6603c122.js"),require("./index-56ad1186.js"),require("./useCategory-4968c4d0.js");var h=require("./localizeNumberFormat-d70884f2.js"),C=require("./index.styles-dcdcb15d.js"),m=require("./tslib.es6-23138875.js"),f=require("./index-9f431a0f.js");require("./gAssets.js"),require("@mantine/core"),require("@mantine/dates"),require("@mantine/hooks");var y=require("./useOutsideClick-51c6acd1.js"),p=require("./index-2075491a.js"),b=require("./index-314491e7.js"),g=require("recharts"),w=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-10edc9fa.js"),require("lodash/throttle"),require("./translationsContext-0aeba983.js"),require("string-format"),require("date-fns/locale"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("./cookieHelper-67cb3d98.js"),require("slugify"),require("./useScrollbarSize-9b6430c7.js"),require("react-dom");var E=x(t),v=x(o),B=x(c),L=x(w);const G=v.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`,X=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:s}=u.useTranslations(),c="marryBaby"===n;return E.default.createElement(K,{onClick:()=>t("new"),"data-is-mb":c,"data-isActive":c&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(d.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(i.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(b.Input,{name:"name",value:r,size:"md",placeholder:s("chooseBaby.placeholder"),type:"text",onChange:o}))},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-
|
|
384
|
+
`,X=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:s}=u.useTranslations(),c="marryBaby"===n;return E.default.createElement(K,{onClick:()=>t("new"),"data-is-mb":c,"data-isActive":c&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(d.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(i.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(b.Input,{name:"name",value:r,size:"md",placeholder:s("chooseBaby.placeholder"),type:"text",onChange:o}))},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-ad9e0982.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-5f71f8e6.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-ed1e14bb.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-61b1d40a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-52900d4f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-507a34d2.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-9b9ac144.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-0d86a102.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-ea0ee6dc.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-a33d058d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-03b0a17d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-6ff97ed9.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-62e5c21b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-831fbf48.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-634b6b1c.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-01b9b367.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-a5e48323.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-40365af8.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-76c88a25.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-3121a310.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-d7662134.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-f5e5b1bf.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-526177f1.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-f8d1dfcd.js")}))}}},Q={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-5e25b5a4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-02ce2d47.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-3d2ec650.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-c50427f9.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-dc6aa694.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-89381ecc.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-3a24b5da.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-b0f6f3ce.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-c0d3acd7.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-25865f62.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-d76b4424.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-0a163e24.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-324b7a89.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-0bb0f9dc.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-63965708.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7dd8e2be.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-be2a1555.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-4cc3169b.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-32ca855c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-2fd1d14e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-45412ada.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-443024a5.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-dadee917.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-3bf0e411.js")}))}}},ee=(e,t,a,l)=>l===r.LOCALE.Indonesia?Q[e][t][a]():J[e][t][a](),te=(e,t)=>{const[r,a]=L.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},re=(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)),ae=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),le=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},oe=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ne=v.default.div`
|
|
385
385
|
position: relative;
|
|
386
386
|
.custom-chart-label {
|
|
387
387
|
display: flex;
|
package/build/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-223cfdf2.js");require("./tslib.es6-23138875.js"),require("./isProduction-6603c122.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
|
|
@@ -25,10 +25,11 @@ export type Props = {
|
|
|
25
25
|
hideTabBookingSearch?: string[];
|
|
26
26
|
hideSpecialtySelection?: boolean;
|
|
27
27
|
hidePopularSearchKeys?: boolean;
|
|
28
|
+
clientSlug?: string;
|
|
28
29
|
routerPush?: (s: string) => void;
|
|
29
30
|
onGeoLocationPermissionChange?: (perm: GeoLocationPermission, coordinates: GPSType) => void;
|
|
30
31
|
onSearch?: (data: SearchClick) => void;
|
|
31
32
|
onChangeLocation?: (city: City) => void;
|
|
32
33
|
};
|
|
33
|
-
declare const BookingSearchBarV2: ({ isMobile, careApiDomain, geoLocationPermission: geoLocationPermissionFromProps, geoLocationCoordinates: geoLocationCoordinatesFromProps, initialSelectedCity: initialSelectedCityFromProps, initialSearchValue, initTypeSearch, initSpecialty, careFrontDomain, isDebug, gaTrackingSearchBar, gaTrackingLocationSearch, autoCompleteDisabled, inputSearchPlaceholder, hideTabBookingSearch, hideSpecialtySelection, hidePopularSearchKeys, routerPush, onGeoLocationPermissionChange, onChangeLocation, }: Props) => React.JSX.Element;
|
|
34
|
+
declare const BookingSearchBarV2: ({ isMobile, careApiDomain, geoLocationPermission: geoLocationPermissionFromProps, geoLocationCoordinates: geoLocationCoordinatesFromProps, initialSelectedCity: initialSelectedCityFromProps, initialSearchValue, initTypeSearch, initSpecialty, careFrontDomain, isDebug, gaTrackingSearchBar, gaTrackingLocationSearch, autoCompleteDisabled, inputSearchPlaceholder, hideTabBookingSearch, hideSpecialtySelection, hidePopularSearchKeys, clientSlug, routerPush, onGeoLocationPermissionChange, onChangeLocation, }: Props) => React.JSX.Element;
|
|
34
35
|
export { BookingSearchBarV2 };
|
|
@@ -9,6 +9,7 @@ type Props = {
|
|
|
9
9
|
isMobile: boolean;
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
hideSpecialtySelection?: boolean;
|
|
12
|
+
clientSlug?: string;
|
|
12
13
|
typeInformation: {
|
|
13
14
|
[key in TypeSearch]: {
|
|
14
15
|
name: string;
|
|
@@ -20,7 +21,7 @@ type Props = {
|
|
|
20
21
|
dispatch: Dispatch<Action>;
|
|
21
22
|
onSearch?: (info: SearchClick) => void;
|
|
22
23
|
focusSearchInput?: () => void;
|
|
23
|
-
debouncedFetchSearchResults: DebouncedFunc<(keyword: string, state: ReducerState, searchType: TypeSearch) => Promise<void>>;
|
|
24
|
+
debouncedFetchSearchResults: DebouncedFunc<(keyword: string, state: ReducerState, searchType: TypeSearch, clientSlug?: string) => Promise<void>>;
|
|
24
25
|
};
|
|
25
|
-
declare const SearchInputs: ({ state, type, isMobile, isLoading, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, hideSpecialtySelection, focusSearchInput, onSearch, dispatch, }: Props) => React.JSX.Element;
|
|
26
|
+
declare const SearchInputs: ({ state, type, isMobile, isLoading, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, hideSpecialtySelection, clientSlug, focusSearchInput, onSearch, dispatch, }: Props) => React.JSX.Element;
|
|
26
27
|
export default SearchInputs;
|
|
@@ -8,6 +8,7 @@ type SearchResultProps = {
|
|
|
8
8
|
results: SearchBarSectionItemApi[];
|
|
9
9
|
location: string;
|
|
10
10
|
isLoading: boolean;
|
|
11
|
+
clientSlug?: string;
|
|
11
12
|
typeInformation: {
|
|
12
13
|
[key in TypeSearch]: {
|
|
13
14
|
name: string;
|
|
@@ -17,5 +18,5 @@ type SearchResultProps = {
|
|
|
17
18
|
};
|
|
18
19
|
dispatch: Dispatch<Action>;
|
|
19
20
|
};
|
|
20
|
-
declare const SearchResult: ({ state, type, results, location, isLoading, typeInformation, dispatch, }: SearchResultProps) => React.JSX.Element;
|
|
21
|
+
declare const SearchResult: ({ state, type, results, location, isLoading, typeInformation, clientSlug, dispatch, }: SearchResultProps) => React.JSX.Element;
|
|
21
22
|
export default SearchResult;
|
|
@@ -12,7 +12,7 @@ export default function useSearchBarApi({ dispatch, careApiDomain, locale, }: Us
|
|
|
12
12
|
coordinates?: GPSType;
|
|
13
13
|
}) => Promise<void>;
|
|
14
14
|
fetchCitiesByKeyword: (keyword: string) => Promise<void>;
|
|
15
|
-
fetchSearchResults: (searchKeywords: string, state: ReducerState, searchType: TypeSearch, cacheResult?: boolean) => Promise<void>;
|
|
15
|
+
fetchSearchResults: (searchKeywords: string, state: ReducerState, searchType: TypeSearch, clientSlug?: string, cacheResult?: boolean) => Promise<void>;
|
|
16
16
|
fetchAllSpecialties: () => Promise<void>;
|
|
17
17
|
fetchPopularKeys: (searchType: TypeSearch) => Promise<void>;
|
|
18
18
|
};
|
package/build/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-c6a1a14f.js"),r=require("./constants-e7d71ae0.js");require("./tslib.es6-23138875.js"),require("react"),require("./useTranslations-e52e6fd2.js"),require("./translationsContext-0aeba983.js"),require("string-format"),require("lodash/debounce"),require("./index-314491e7.js"),require("@mantine/core"),require("./index-4d941e91.js"),require("./screenSizeContext-d3822141.js"),require("styled-components"),require("lodash/throttle"),require("./theme-95cd4c16.js"),require("dayjs"),require("./index-56ad1186.js"),require("date-fns/locale"),require("./Onboarding-eda97622.js"),require("./isProduction-6603c122.js"),require("./gAssets.js"),require("./useUniqueId-10edc9fa.js"),require("./index-d220afbf.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-51c6acd1.js"),require("./paths-52bfb691.js"),require("./cookieHelper-67cb3d98.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./fixedBottomAdBlock-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./fixedBottomAdBlock-90957ff3.js"),r=require("./index-9139a1b0.js"),o=require("./index-f4e53bf8.js"),t=require("./index-3fa544d3.js"),i=require("./index.styles-dcdcb15d.js"),a=require("./index-314491e7.js"),s=require("./index-4d941e91.js"),n=require("./index-2163c775.js"),d=require("./index-753c5340.js"),u=require("./index-d220afbf.js"),p=require("./index-633a5bf3.js"),x=require("./index-9f431a0f.js"),c=require("./index.styled-3d7dd6e8.js"),l=require("./index-2075491a.js"),q=require("./index-2b1500c8.js"),b=require("./index-7109c879.js"),C=require("./footer.js");require("react"),require("./screenSizeContext-d3822141.js"),require("styled-components"),require("lodash/throttle"),require("./useUniqueId-10edc9fa.js"),require("./gAssets.js"),require("./index-56ad1186.js"),require("date-fns/locale"),require("./Onboarding-eda97622.js"),require("./isProduction-6603c122.js"),require("./theme-95cd4c16.js"),require("./tslib.es6-23138875.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("./translationsContext-0aeba983.js"),require("string-format"),require("@mantine/hooks"),require("./useTranslations-e52e6fd2.js"),require("date-fns"),require("lodash/debounce"),require("./useCategory-4968c4d0.js"),require("./types-c4a0b167.js"),require("./index-611f5daf.js"),require("./index-44ba7b08.js"),require("react-hook-form"),require("./useHealthToolCache-7b38b8b0.js"),require("./getDynamicHealthTool-9858cbf6.js"),require("./core-223cfdf2.js"),require("./normalizeLink-72938aa8.js"),require("./useOutsideClick-51c6acd1.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-e92f5b03.js"),require("uuid"),require("./cookieHelper-67cb3d98.js"),require("./constants-e7d71ae0.js"),require("./index-7af60d34.js"),require("./useIsInit-5fb3bcb1.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("slugify"),require("./number-7a59b05e.js"),require("react-day-picker/DayPickerInput"),require("react-dom"),require("@hookform/resolvers/yup"),require("./index.styled-790b9cd1.js"),require("./utils-b44511dc.js"),require("dayjs/plugin/relativeTime"),require("./paths-52bfb691.js"),require("./index-e29e4c94.js"),require("react-contenteditable"),require("@mantine/form"),require("js-cookie"),require("lodash/flatten"),require("lodash/uniqBy"),require("./useScrollbarSize-9b6430c7.js"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.Avatar=r.Avatar,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Flag=i.Flag,exports.Heading=i.Heading,exports.LogoIcon=i.LogoIcon,exports.PureInput=i.PureInput,exports.StepRenderer=i.StepRenderer,exports.StepRendererContext=i.StepRendererContext,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Container=s.Container,exports.Icon=s.Icon,exports.Label=s.Label,exports.Logo=n.Logo,exports.AdBlock=d.AdBlock,exports.AuthorBadge=d.AuthorBadge,exports.BookingBtn=d.BookingBtn,exports.DatePicker=d.DatePicker,exports.DoctorInfo=d.DoctorInfo,exports.Dropdown=d.Dropdown,exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=d.MAPPING_CATEGORY_PREMIUM_API_TYPE,exports.MAPPING_CATEGORY_PREMIUM_TYPE=d.MAPPING_CATEGORY_PREMIUM_TYPE,exports.MobileBottomNavigation=d.MobileBottomNavigation,exports.MobileBottomNavigationIcon=d.MobileBottomNavigationIcon,exports.PremiumNewsletterBanner=d.PremiumNewsletterBanner,exports.Radio=d.Radio,exports.RadioGroup=d.RadioGroup,exports.SurveyQuestionCard=d.SurveyQuestionCard,exports.ToolsBannerCard=d.ToolsBannerCard,exports.Text=u.Text,exports.Drawer=p.Drawer,exports.RadioImageGroup=p.RadioImageGroup,exports.CustomReferenceDot=x.CustomReferenceDot,exports.ImageWrap=x.ImageWrap,exports.Popup=c.Popup,exports.Modal=l.Modal,exports.PillCarousel=q.PillCarousel,exports.AddressInput=b.AddressInput,exports.Footer=C.Footer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"},"ms-MY":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"}};var i=Object.freeze({__proto__:null,basePath:"/care",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"}},LOCALIZED_SLUGS:a,ID_OPTION_CURRENT_LOCATION:-1,ID_OPTION_ALL_LOCATION:-2});exports.ID_OPTION_ALL_LOCATION=-2,exports.ID_OPTION_CURRENT_LOCATION=-1,exports.LOCALIZED_SLUGS=a,exports.constants=i;
|
|
1
|
+
"use strict";const a={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"},"ms-MY":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"}};var i=Object.freeze({__proto__:null,basePath:"/care",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"}},LOCALIZED_SLUGS:a,ID_OPTION_CURRENT_LOCATION:-1,ID_OPTION_ALL_LOCATION:-2,CLIENT_GSK:"gsk"});exports.CLIENT_GSK="gsk",exports.ID_OPTION_ALL_LOCATION=-2,exports.ID_OPTION_CURRENT_LOCATION=-1,exports.LOCALIZED_SLUGS=a,exports.constants=i;
|
package/build/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-eda97622.js");var E=require("./index-56ad1186.js"),e=require("./isProduction-6603c122.js");exports.BEARER_TOKEN_COOKIE=E.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=E.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=E.CARE_LOCALES,exports.CDN_ADDRESS=E.CDN_ADDRESS,exports.DATE_FNS_LOCALE=E.DATE_FNS_LOCALE,exports.ECOM_LOCALES=E.ECOM_LOCALES,exports.FAVICONS=E.FAVICONS,exports.GA_TOKEN_COOKIE=E.GA_TOKEN_COOKIE,exports.ISO_FORMAT=E.ISO_FORMAT,exports.LOCALE_SPECS=E.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return E.QUERY_HEALTH_TOOL}}),Object.defineProperty(exports,"RISK_SCREENER_NAME",{enumerable:!0,get:function(){return E.RISK_SCREENER_NAME}}),exports.RISK_SCREENER_SLUG=E.RISK_SCREENER_SLUG,exports.STATIC_PAGES=E.STATIC_PAGES,exports.TOGETHER_LOCALES=E.TOGETHER_LOCALES,exports.UP_BASEPATH=E.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=E.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=E.domainLocales,exports.siteHost=E.siteHost,exports.siteOptions=E.siteOptions,exports.isProduction=e.isProduction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-
|
|
1
|
+
"use strict";var t=require("./tslib.es6-23138875.js"),e=require("./isProduction-6603c122.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
|
package/build/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme-177c35d7.js");require("./index-55035468.js");var o=require("./isProduction-d5eaf028.js"),t=require("./types-bee2c39e.js");require("date-fns/locale"),require("./Onboarding-b6d46718.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_CARE_LOCALES:["vi-VN","id-ID","en-PH"],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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme-95cd4c16.js");require("./index-56ad1186.js");var o=require("./isProduction-6603c122.js"),t=require("./types-c4a0b167.js");require("date-fns/locale"),require("./Onboarding-eda97622.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_CARE_LOCALES:["vi-VN","id-ID","en-PH"],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;
|