@hhgtech/hhg-components 1.27.111 → 1.27.113
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/molecules/index.d.ts +3 -3
- package/build/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/bannerWithOption/index.d.ts +2 -0
- package/build/{esm/components/molecules/premiumNewsletterBanner → components/molecules/surveyOrPremiumBanner}/bannerWithOption/index.styles.d.ts +1 -0
- package/build/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/constants.d.ts +41 -7
- package/build/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/context.d.ts +7 -4
- package/build/components/molecules/surveyOrPremiumBanner/index.d.ts +15 -0
- package/build/components/molecules/surveyOrPremiumBanner/surveyBanner.d.ts +3 -0
- package/build/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/toolBanner.d.ts +1 -0
- package/build/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/types.d.ts +5 -0
- package/build/components.js +1 -1
- package/build/{constants-549daccd.js → constants-fd82a887.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-cf08ddba.js → core-5c4c9018.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/molecules/index.d.ts +3 -3
- package/build/esm/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/bannerWithOption/index.d.ts +2 -0
- package/build/{components/molecules/premiumNewsletterBanner → esm/components/molecules/surveyOrPremiumBanner}/bannerWithOption/index.styles.d.ts +1 -0
- package/build/esm/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/constants.d.ts +41 -7
- package/build/esm/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/context.d.ts +7 -4
- package/build/esm/components/molecules/surveyOrPremiumBanner/index.d.ts +15 -0
- package/build/esm/components/molecules/surveyOrPremiumBanner/surveyBanner.d.ts +3 -0
- package/build/esm/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/toolBanner.d.ts +1 -0
- package/build/esm/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/types.d.ts +5 -0
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-9b0dfbff.js → constants-66251709.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-d5723cfb.js → core-256cda08.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-d6fb6721.js → fixedBottomAdBlock-42a0fc3b.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-29f9213b.js → getDynamicHealthTool-0e9dffaf.js} +1 -1
- package/build/esm/{getSocialList-25ba1828.js → getSocialList-04ad7465.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n-values/vi-VN.js +1 -1
- package/build/esm/i18n-values/vi-VN_MB.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-901e79c9.js → index-1f31ee2c.js} +1 -1
- package/build/esm/{index-bc78096c.js → index-2472bb2e.js} +1 -1
- package/build/esm/{index-8f77e3ae.js → index-37ac3e0a.js} +2 -2
- package/build/esm/{index-cdf8cd15.js → index-40352094.js} +23 -23
- package/build/esm/index-404d6f42.js +1 -0
- package/build/esm/{index-e8ef71b5.js → index-4b0913ef.js} +1 -1
- package/build/esm/{index-d1e0f7da.js → index-4ef01662.js} +1 -1
- package/build/esm/{index-3cb58b69.js → index-5b15422c.js} +1 -1
- package/build/esm/{index-3de4e500.js → index-671bebd2.js} +1 -1
- package/build/esm/{index-e6e6e936.js → index-6bfebf91.js} +1 -1
- package/build/esm/{index-48be4929.js → index-79cd66c0.js} +1 -1
- package/build/esm/{index-5cb8c0d8.js → index-7ea25330.js} +1 -1
- package/build/esm/index-9a6cbd76.js +1 -0
- package/build/esm/{index-2c2ab0e9.js → index-9dc3058e.js} +1 -1
- package/build/esm/{index-7ae73b73.js → index-aab6e937.js} +4 -4
- package/build/esm/{index-2f93c125.js → index-c04a8332.js} +1 -1
- package/build/esm/{index-0e498cef.js → index-c20147f5.js} +1 -1
- package/build/esm/{index-0243a82f.js → index-c52c6d1d.js} +1 -1
- package/build/esm/{index-d5f79d3b.js → index-c9c1af14.js} +1 -1
- package/build/esm/{index-119f7391.js → index-d533e676.js} +1 -1
- package/build/esm/{index-7c08eeef.js → index-f9338e27.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-7e34321a.js → index.styled-8ad8796f.js} +1 -1
- package/build/esm/{index.styled-96bddf4c.js → index.styled-c742d0a3.js} +4 -4
- package/build/esm/{index.styled-a4fcd334.js → index.styled-ce98cbc1.js} +1 -1
- package/build/esm/{index.styles-7c303c91.js → index.styles-952b0f4b.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-58957b47.js} +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +18 -18
- package/build/esm/paths-46458204.js +1 -0
- package/build/esm/pwg.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-768250f5.js → types-0cbaa281.js} +130 -130
- package/build/esm/{types-24eea7b5.js → types-27c16503.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-6ce39bff.js → useCategory-bfba2de5.js} +1 -1
- package/build/esm/useHealthToolCache-b9973713.js +1 -0
- package/build/esm/{useRafState-974935f5.js → useRafState-66b5f663.js} +1 -1
- package/build/esm/useTranslations-b2f04ab6.js +1 -0
- package/build/esm/{utils-12e2c810.js → utils-33c4c832.js} +1 -1
- package/build/esm/vaccination.js +12 -12
- package/build/{fixedBottomAdBlock-6d47251b.js → fixedBottomAdBlock-664a6e50.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-4b545469.js → getDynamicHealthTool-571597e0.js} +1 -1
- package/build/{getSocialList-8f83dc95.js → getSocialList-2d43911c.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n-values/vi-VN.js +1 -1
- package/build/i18n-values/vi-VN_MB.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-f168badd.js → index-22a4d8ec.js} +1 -1
- package/build/{index-2a0f61e2.js → index-2584fe83.js} +2 -2
- package/build/{index-187e0f1f.js → index-2db33f49.js} +1 -1
- package/build/{index-f2c0dc10.js → index-32d3a385.js} +1 -1
- package/build/{index-7c01f515.js → index-4efa8e7e.js} +1 -1
- package/build/{index-f8421eda.js → index-537bccbe.js} +1 -1
- package/build/{index-203f0a9a.js → index-55a6f97a.js} +1 -1
- package/build/index-58609826.js +1 -0
- package/build/{index-2d3c34aa.js → index-5b7dfda4.js} +1 -1
- package/build/{index-ec7f28e5.js → index-63632fd5.js} +1 -1
- package/build/{index-c3a8adc8.js → index-8383af12.js} +1 -1
- package/build/{index-5014f061.js → index-9669998e.js} +1 -1
- package/build/{index-1740c5b8.js → index-9f6e2696.js} +29 -29
- package/build/{index-55035468.js → index-a89b23de.js} +1 -1
- package/build/{index-8212d168.js → index-b99409f1.js} +1 -1
- package/build/{index-5c07473f.js → index-bc8fcf35.js} +1 -1
- package/build/{index-0b75ad2a.js → index-c57b487f.js} +1 -1
- package/build/{index-615024b7.js → index-dad94e78.js} +2 -2
- package/build/{index-dde6cb12.js → index-e022af07.js} +1 -1
- package/build/{index-ca4a57b8.js → index-e7f2e80f.js} +1 -1
- package/build/{index-410406ae.js → index-f36821a3.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-a5b7f642.js → index.styled-0d4d68f3.js} +1 -1
- package/build/{index.styled-25fca885.js → index.styled-90c35fc5.js} +1 -1
- package/build/index.styled-b9465af1.js +50 -0
- package/build/{index.styles-64093d61.js → index.styles-9285e23d.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-28258895.js} +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +5 -5
- package/build/paths-2ac2ae14.js +1 -0
- package/build/pwg.js +1 -1
- package/build/together.js +1 -1
- package/build/{types-40cab689.js → types-90d8b488.js} +4 -4
- package/build/{types-1b10750d.js → types-ffea7b45.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-fbc07a2d.js → useCategory-971481b4.js} +1 -1
- package/build/{useHealthToolCache-8b40316a.js → useHealthToolCache-10f561aa.js} +1 -1
- package/build/{useRafState-779e60e7.js → useRafState-5cd3ac64.js} +1 -1
- package/build/{useTranslations-424bb567.js → useTranslations-2e7d64aa.js} +1 -1
- package/build/{utils-028b83bf.js → utils-2fb6eb7d.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/components/molecules/premiumNewsletterBanner/index.d.ts +0 -15
- package/build/components/molecules/premiumNewsletterBanner/testingBanner.d.ts +0 -3
- package/build/esm/components/molecules/premiumNewsletterBanner/index.d.ts +0 -15
- package/build/esm/components/molecules/premiumNewsletterBanner/testingBanner.d.ts +0 -3
- package/build/esm/index-425660a4.js +0 -1
- package/build/esm/index-bcb2f9a4.js +0 -1
- package/build/esm/paths-fa0a821f.js +0 -1
- package/build/esm/useHealthToolCache-e9192e5e.js +0 -1
- package/build/esm/useTranslations-2430a2a0.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/{BMI_BOYS.percentile.monthly-2169926f.js → BMI_BOYS.percentile.monthly-5b917714.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-6d5061c6.js → BMI_BOYS.percentile.weekly-9566eb37.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-5f739100.js → BMI_BOYS.percentile.yearly-db737739.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-75e11545.js → BMI_BOYS.zscore.monthly-86f68a0b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-b3556b6a.js → BMI_BOYS.zscore.weekly-92d923b0.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-4ebe038f.js → BMI_BOYS.zscore.yearly-4d92f086.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-05e28f78.js → BMI_GIRLS.percentile.monthly-6a6d1837.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-4054b056.js → BMI_GIRLS.percentile.weekly-5589d39f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-6d9f3e1c.js → BMI_GIRLS.percentile.yearly-15c4d279.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-344ed489.js → BMI_GIRLS.zscore.monthly-667e63fd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-7577fdd6.js → BMI_GIRLS.zscore.weekly-3fdeccfe.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-0026b96e.js → BMI_GIRLS.zscore.yearly-ea25f63d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4770cf38.js → HEAD CIRCUM_BOYS.percentile.monthly-6db968ca.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-51ffefe5.js → HEAD CIRCUM_BOYS.percentile.weekly-2a4e9201.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-8d887c12.js → HEAD CIRCUM_BOYS.percentile.yearly-c566092e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f4380098.js → HEAD CIRCUM_BOYS.zscore.monthly-03fc7b94.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-225f6e87.js → HEAD CIRCUM_BOYS.zscore.weekly-faa83c6d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-1b185e52.js → HEAD CIRCUM_BOYS.zscore.yearly-629071b8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d33665c2.js → HEAD CIRCUM_GIRLS.percentile.monthly-fd8e09c4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e03ab684.js → HEAD CIRCUM_GIRLS.percentile.weekly-d7bc181c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-dccddafd.js → HEAD CIRCUM_GIRLS.percentile.yearly-2c18bf98.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f3770a5a.js → HEAD CIRCUM_GIRLS.zscore.monthly-8d909763.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-f380c4a3.js → HEAD CIRCUM_GIRLS.zscore.weekly-018ebd5c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-213f9e26.js → HEAD CIRCUM_GIRLS.zscore.yearly-f4da36f0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-159b23b3.js → HEIGHT_BOYS.percentile.monthly-4bcc65ef.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-dea84dd9.js → HEIGHT_BOYS.percentile.weekly-7c769b89.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-43132dd4.js → HEIGHT_BOYS.percentile.yearly-3f50eba5.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-6386157d.js → HEIGHT_BOYS.zscore.monthly-a78a7a26.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-8c95e60e.js → HEIGHT_BOYS.zscore.weekly-caab37b3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-a20e1e60.js → HEIGHT_BOYS.zscore.yearly-c2d46f1f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-c35ca151.js → HEIGHT_GIRLS.percentile.monthly-b3265a7d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-55efadc3.js → HEIGHT_GIRLS.percentile.weekly-69403da3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-67a99ecb.js → HEIGHT_GIRLS.percentile.yearly-5f19a816.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-60034a31.js → HEIGHT_GIRLS.zscore.monthly-e56cd9ff.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-637e4002.js → HEIGHT_GIRLS.zscore.weekly-cfbee1ac.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-dff229f7.js → HEIGHT_GIRLS.zscore.yearly-603fd96e.js} +0 -0
- /package/build/{Onboarding-b6d46718.js → Onboarding-2b01db17.js} +0 -0
- /package/build/{Visible-c0d87c4f.js → Visible-7e3703b1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-5b2fbdb5.js → WEIGHT_BOYS.percentile.monthly-df2b38ad.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-31324827.js → WEIGHT_BOYS.percentile.weekly-017d4587.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-99b220b3.js → WEIGHT_BOYS.percentile.yearly-d98f06d0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-37df73d8.js → WEIGHT_BOYS.zscore.monthly-3efc2926.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-97539687.js → WEIGHT_BOYS.zscore.weekly-1478e955.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-018cd3f2.js → WEIGHT_BOYS.zscore.yearly-96592d44.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-94194d40.js → WEIGHT_GIRLS.percentile.monthly-7990f762.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-4092c807.js → WEIGHT_GIRLS.percentile.weekly-4b98de90.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-80188db3.js → WEIGHT_GIRLS.percentile.yearly-5686e441.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-aa93af02.js → WEIGHT_GIRLS.zscore.monthly-76c7187f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-d5f6108b.js → WEIGHT_GIRLS.zscore.weekly-bc5910e8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-dadd5a9c.js → WEIGHT_GIRLS.zscore.yearly-07b83056.js} +0 -0
- /package/build/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/bannerLayout.d.ts +0 -0
- /package/build/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/handlerBanner.d.ts +0 -0
- /package/build/{cookieHelper-5e232b89.js → cookieHelper-47e34efa.js} +0 -0
- /package/build/{dataTransform-e616f86a.js → dataTransform-fe677610.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-a21c2804.js → BMI_BOYS.percentile.monthly-9e7fdff9.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-660eb5a0.js → BMI_BOYS.percentile.weekly-109aa882.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-4472b493.js → BMI_BOYS.percentile.yearly-2f4904a4.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-ef6d5124.js → BMI_BOYS.zscore.monthly-b7818505.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-2850e334.js → BMI_BOYS.zscore.weekly-8a8c6e60.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-7675f189.js → BMI_BOYS.zscore.yearly-259d827f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-ccb1ae23.js → BMI_GIRLS.percentile.monthly-4c85f2e2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-01af9f62.js → BMI_GIRLS.percentile.weekly-52780dde.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-3b4ff210.js → BMI_GIRLS.percentile.yearly-d552f7ff.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-78346cd2.js → BMI_GIRLS.zscore.monthly-70736759.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-1354bad8.js → BMI_GIRLS.zscore.weekly-09d9a498.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-123cd996.js → BMI_GIRLS.zscore.yearly-787a71f2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-b7a46cec.js → HEAD CIRCUM_BOYS.percentile.monthly-3dc23858.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-daadf38b.js → HEAD CIRCUM_BOYS.percentile.weekly-fc90a435.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c64d87f6.js → HEAD CIRCUM_BOYS.percentile.yearly-d311328c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-17a992e7.js → HEAD CIRCUM_BOYS.zscore.monthly-a4105e49.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a858df78.js → HEAD CIRCUM_BOYS.zscore.weekly-1602faff.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-18fce9ea.js → HEAD CIRCUM_BOYS.zscore.yearly-314d87f2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-7a8b8a72.js → HEAD CIRCUM_GIRLS.percentile.monthly-1755894d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4efe8114.js → HEAD CIRCUM_GIRLS.percentile.weekly-eff64869.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-bd019865.js → HEAD CIRCUM_GIRLS.percentile.yearly-ec836bd1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-5f663a70.js → HEAD CIRCUM_GIRLS.zscore.monthly-45824afc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-39129ae0.js → HEAD CIRCUM_GIRLS.zscore.weekly-3dda450c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b7fee04a.js → HEAD CIRCUM_GIRLS.zscore.yearly-47d31d6a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0f86faa9.js → HEIGHT_BOYS.percentile.monthly-8e3e5eea.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-799ce0a2.js → HEIGHT_BOYS.percentile.weekly-4fd1e4f0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3f3c2f4d.js → HEIGHT_BOYS.percentile.yearly-a72efc6f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-40b79033.js → HEIGHT_BOYS.zscore.monthly-bbc5d61a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-335e16b8.js → HEIGHT_BOYS.zscore.weekly-be4b43d4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-1052e7c2.js → HEIGHT_BOYS.zscore.yearly-41fab017.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-5c1c2fda.js → HEIGHT_GIRLS.percentile.monthly-5960d7bc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-185ecd08.js → HEIGHT_GIRLS.percentile.weekly-842b0b35.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-071f0347.js → HEIGHT_GIRLS.percentile.yearly-5e771144.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-7d81ef69.js → HEIGHT_GIRLS.zscore.monthly-a87662f6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4bcedfad.js → HEIGHT_GIRLS.zscore.weekly-9974df51.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3b576a0d.js → HEIGHT_GIRLS.zscore.yearly-036899ae.js} +0 -0
- /package/build/esm/{Onboarding-333aa9dc.js → Onboarding-3631c6d1.js} +0 -0
- /package/build/esm/{Visible-8afbad1e.js → Visible-2bac67a9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-8674ec9b.js → WEIGHT_BOYS.percentile.monthly-fb78f02c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-6c8ebad7.js → WEIGHT_BOYS.percentile.weekly-a91de386.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-502a9bab.js → WEIGHT_BOYS.percentile.yearly-ad66fdd2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4adc8c4e.js → WEIGHT_BOYS.zscore.monthly-2f39cc76.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-c253912c.js → WEIGHT_BOYS.zscore.weekly-14cc15d4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-99f50300.js → WEIGHT_BOYS.zscore.yearly-2041fbea.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-8c64fab0.js → WEIGHT_GIRLS.percentile.monthly-3a60ac45.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-44176b94.js → WEIGHT_GIRLS.percentile.weekly-d0fbecca.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-c38faf3c.js → WEIGHT_GIRLS.percentile.yearly-3ae3438e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9ce628d3.js → WEIGHT_GIRLS.zscore.monthly-ed2bf2a6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-77b92300.js → WEIGHT_GIRLS.zscore.weekly-3328de54.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-e12994a8.js → WEIGHT_GIRLS.zscore.yearly-e78ef269.js} +0 -0
- /package/build/esm/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/bannerLayout.d.ts +0 -0
- /package/build/esm/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/handlerBanner.d.ts +0 -0
- /package/build/esm/{cookieHelper-198da3c2.js → cookieHelper-2fe90225.js} +0 -0
- /package/build/esm/{dataTransform-c86ebc50.js → dataTransform-532e7457.js} +0 -0
- /package/build/esm/{index-436b7d17.js → index-7df304c0.js} +0 -0
- /package/build/esm/{isProduction-f84e5e5c.js → isProduction-85c6cb19.js} +0 -0
- /package/build/esm/{localizeNumberFormat-f760793d.js → localizeNumberFormat-17475a32.js} +0 -0
- /package/build/esm/{number-ba8724fc.js → number-251f8529.js} +0 -0
- /package/build/esm/{screenSizeContext-26c77dc1.js → screenSizeContext-4ff53e25.js} +0 -0
- /package/build/esm/{theme-cd27574e.js → theme-b5489d82.js} +0 -0
- /package/build/esm/{translationsContext-bf4a1818.js → translationsContext-be2e1844.js} +0 -0
- /package/build/esm/{tslib.es6-830e842d.js → tslib.es6-0405df6a.js} +0 -0
- /package/build/esm/{types-5fdf9e45.js → types-48c94135.js} +0 -0
- /package/build/esm/{useIsInit-c1a1ca52.js → useIsInit-942b94fa.js} +0 -0
- /package/build/esm/{useOutsideClick-7a4c1573.js → useOutsideClick-3450a7a8.js} +0 -0
- /package/build/esm/{useScrollbarSize-cbdd3859.js → useScrollbarSize-11faa525.js} +0 -0
- /package/build/esm/{useUniqueId-159be8a3.js → useUniqueId-d35bf586.js} +0 -0
- /package/build/{index-ba487404.js → index-4046269f.js} +0 -0
- /package/build/{isProduction-d5eaf028.js → isProduction-e1b7813f.js} +0 -0
- /package/build/{localizeNumberFormat-20fdd30c.js → localizeNumberFormat-7424a97a.js} +0 -0
- /package/build/{number-060a39e3.js → number-b3767f34.js} +0 -0
- /package/build/{screenSizeContext-7720eb06.js → screenSizeContext-4d5786c6.js} +0 -0
- /package/build/{theme-177c35d7.js → theme-1a7c14fb.js} +0 -0
- /package/build/{translationsContext-ee716225.js → translationsContext-f962ff63.js} +0 -0
- /package/build/{tslib.es6-fb3ec5b3.js → tslib.es6-0d31715f.js} +0 -0
- /package/build/{types-bee2c39e.js → types-ef750ab6.js} +0 -0
- /package/build/{useIsInit-5e49ad37.js → useIsInit-790b9962.js} +0 -0
- /package/build/{useOutsideClick-6a78771c.js → useOutsideClick-81c62034.js} +0 -0
- /package/build/{useScrollbarSize-dedf0512.js → useScrollbarSize-29ac8766.js} +0 -0
- /package/build/{useUniqueId-6620a12c.js → useUniqueId-86a9e1d4.js} +0 -0
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-0cbaa281.js";export{c as CareConstants}from"./constants-66251709.js";import"./tslib.es6-0405df6a.js";import"react";import"./useTranslations-b2f04ab6.js";import"./translationsContext-be2e1844.js";import"string-format";import"lodash/debounce";import"./index-7ea25330.js";import"@mantine/core";import"./index-5b15422c.js";import"./screenSizeContext-4ff53e25.js";import"styled-components";import"lodash/throttle";import"./theme-b5489d82.js";import"dayjs";import"./index-c9c1af14.js";import"date-fns/locale";import"./Onboarding-3631c6d1.js";import"./isProduction-85c6cb19.js";import"./gAssets.js";import"./useUniqueId-d35bf586.js";import"./index-2472bb2e.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-3450a7a8.js";import"./paths-46458204.js";import"./cookieHelper-2fe90225.js";
|
|
@@ -58,6 +58,6 @@ export { FixedBottomAdBlock } from './adBlock/fixedBottomAdBlock';
|
|
|
58
58
|
export type { Props as FixedBottomAdBlockProps } from './adBlock/fixedBottomAdBlock';
|
|
59
59
|
export { AddressInput } from './addressInput';
|
|
60
60
|
export type { AddressInputProps } from './addressInput';
|
|
61
|
-
export {
|
|
62
|
-
export type { Props as
|
|
63
|
-
export type { SubcribeHealthStatusType, BannerStateData, } from './
|
|
61
|
+
export { SurveyOrPremiumBanner, MAPPING_CATEGORY_PREMIUM_TYPE, MAPPING_CATEGORY_PREMIUM_API_TYPE, } from './surveyOrPremiumBanner';
|
|
62
|
+
export type { Props as SurveyOrPremiumBannerProps } from './surveyOrPremiumBanner';
|
|
63
|
+
export type { SubcribeHealthStatusType, BannerStateData, } from './surveyOrPremiumBanner/types';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultProps, Selectors } from '@mantine/core';
|
|
3
3
|
import { ButtonProps } from "../../../mantine";
|
|
4
|
+
import { DataTrackingType } from "../../../../interfaces/types";
|
|
4
5
|
import useStyles from './index.styles';
|
|
5
6
|
import { Props as BannerLayoutProps } from '../bannerLayout';
|
|
6
7
|
import { OptionBannerStyleType, OptionBannerType } from '../types';
|
|
@@ -12,6 +13,7 @@ export interface Props extends DefaultProps<Selectors<typeof useStyles> & Banner
|
|
|
12
13
|
styleType?: OptionBannerStyleType;
|
|
13
14
|
buttonProps?: ButtonProps;
|
|
14
15
|
value?: string;
|
|
16
|
+
submitBtnTracking?: DataTrackingType;
|
|
15
17
|
}
|
|
16
18
|
declare const BannerWithOptions: (props: Props) => React.JSX.Element;
|
|
17
19
|
export { BannerWithOptions };
|
|
@@ -3,7 +3,7 @@ import { UseTranslationsReturn } from "../../../hooks";
|
|
|
3
3
|
import { RISK_SCREENER_NAME } from "../../../interfaces/constants";
|
|
4
4
|
import { LocaleType } from "../../../interfaces/types";
|
|
5
5
|
import { BannerAction, OptionBannerStyleType } from './types';
|
|
6
|
-
export declare const FLOW: (t: UseTranslationsReturn<LocaleType>['t']) => {
|
|
6
|
+
export declare const FLOW: (t: UseTranslationsReturn<LocaleType>['t'], currentUrl: any) => {
|
|
7
7
|
pregnant: {
|
|
8
8
|
action: BannerAction;
|
|
9
9
|
props: {
|
|
@@ -26,6 +26,11 @@ export declare const FLOW: (t: UseTranslationsReturn<LocaleType>['t']) => {
|
|
|
26
26
|
items: {
|
|
27
27
|
label: string;
|
|
28
28
|
value: string;
|
|
29
|
+
tracking: {
|
|
30
|
+
dataEventCategory: string;
|
|
31
|
+
dataEventAction: string;
|
|
32
|
+
dataEventLabel: any;
|
|
33
|
+
};
|
|
29
34
|
}[];
|
|
30
35
|
};
|
|
31
36
|
submitHandler: {
|
|
@@ -55,6 +60,11 @@ export declare const FLOW: (t: UseTranslationsReturn<LocaleType>['t']) => {
|
|
|
55
60
|
label: string;
|
|
56
61
|
value: string;
|
|
57
62
|
}[];
|
|
63
|
+
submitBtnTracking: {
|
|
64
|
+
dataEventCategory: string;
|
|
65
|
+
dataEventAction: string;
|
|
66
|
+
dataEventLabel: any;
|
|
67
|
+
};
|
|
58
68
|
};
|
|
59
69
|
submitHandler: {
|
|
60
70
|
todders: {
|
|
@@ -79,6 +89,11 @@ export declare const FLOW: (t: UseTranslationsReturn<LocaleType>['t']) => {
|
|
|
79
89
|
items: {
|
|
80
90
|
label: string;
|
|
81
91
|
value: string;
|
|
92
|
+
tracking: {
|
|
93
|
+
dataEventCategory: string;
|
|
94
|
+
dataEventAction: string;
|
|
95
|
+
dataEventLabel: any;
|
|
96
|
+
};
|
|
82
97
|
}[];
|
|
83
98
|
};
|
|
84
99
|
};
|
|
@@ -112,26 +127,33 @@ export declare const FLOW: (t: UseTranslationsReturn<LocaleType>['t']) => {
|
|
|
112
127
|
flexDirection: string;
|
|
113
128
|
};
|
|
114
129
|
};
|
|
130
|
+
button: {
|
|
131
|
+
background: string;
|
|
132
|
+
};
|
|
115
133
|
};
|
|
116
134
|
items: ({
|
|
117
135
|
label: string;
|
|
118
136
|
activeTool: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
|
|
119
137
|
isLink: boolean;
|
|
120
|
-
|
|
138
|
+
tracking: {
|
|
139
|
+
dataEventCategory: string;
|
|
140
|
+
dataEventAction: string;
|
|
141
|
+
dataEventLabel: any;
|
|
142
|
+
};
|
|
121
143
|
isPNBtn?: undefined;
|
|
122
144
|
} | {
|
|
123
145
|
label: string;
|
|
124
|
-
value: string;
|
|
125
146
|
isPNBtn: boolean;
|
|
147
|
+
tracking: {
|
|
148
|
+
dataEventCategory: string;
|
|
149
|
+
dataEventAction: string;
|
|
150
|
+
dataEventLabel: any;
|
|
151
|
+
};
|
|
126
152
|
activeTool?: undefined;
|
|
127
153
|
isLink?: undefined;
|
|
128
154
|
})[];
|
|
129
155
|
};
|
|
130
156
|
};
|
|
131
|
-
'todders|teenager.showPN': {
|
|
132
|
-
action: BannerAction;
|
|
133
|
-
useValueAfterUserBack: string;
|
|
134
|
-
};
|
|
135
157
|
};
|
|
136
158
|
};
|
|
137
159
|
};
|
|
@@ -141,6 +163,16 @@ export declare const TOOL_BANNERS_PROPS: (t: UseTranslationsReturn<LocaleType>['
|
|
|
141
163
|
description: string;
|
|
142
164
|
btnLabel: string;
|
|
143
165
|
value: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
|
|
166
|
+
dataEventAction: string;
|
|
167
|
+
thumbnail?: undefined;
|
|
168
|
+
isRiskScreener?: undefined;
|
|
169
|
+
hideDescOnMobile?: undefined;
|
|
170
|
+
} | {
|
|
171
|
+
heading: string;
|
|
172
|
+
description: string;
|
|
173
|
+
btnLabel: string;
|
|
174
|
+
value: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
|
|
175
|
+
dataEventAction?: undefined;
|
|
144
176
|
thumbnail?: undefined;
|
|
145
177
|
isRiskScreener?: undefined;
|
|
146
178
|
hideDescOnMobile?: undefined;
|
|
@@ -155,6 +187,7 @@ export declare const TOOL_BANNERS_PROPS: (t: UseTranslationsReturn<LocaleType>['
|
|
|
155
187
|
btnLabel: string;
|
|
156
188
|
value: RISK_SCREENER_NAME;
|
|
157
189
|
hideDescOnMobile: boolean;
|
|
190
|
+
dataEventAction: string;
|
|
158
191
|
};
|
|
159
192
|
hpv: {
|
|
160
193
|
heading: string;
|
|
@@ -167,5 +200,6 @@ export declare const TOOL_BANNERS_PROPS: (t: UseTranslationsReturn<LocaleType>['
|
|
|
167
200
|
btnLabel: string;
|
|
168
201
|
value: RISK_SCREENER_NAME;
|
|
169
202
|
hideDescOnMobile: boolean;
|
|
203
|
+
dataEventAction: string;
|
|
170
204
|
};
|
|
171
205
|
};
|
|
@@ -2,8 +2,9 @@ import { Dispatch, SetStateAction } from 'react';
|
|
|
2
2
|
import { BannerAction, BannerStateData, SubcribeHealthStatusType } from './types';
|
|
3
3
|
import { AcquisitionInfo } from '../premiumNewsletterModal/context';
|
|
4
4
|
export type BannerState = BannerAction.ShowTool | BannerAction.ShowOptionBanner | null;
|
|
5
|
-
export type
|
|
5
|
+
export type SurveyOrPremiumBannerContextType = {
|
|
6
6
|
type: string;
|
|
7
|
+
surveyType?: string;
|
|
7
8
|
settings?: any;
|
|
8
9
|
submitHandler?: any;
|
|
9
10
|
acquisitionInfo: AcquisitionInfo;
|
|
@@ -11,19 +12,21 @@ export type PremiumNewsletterBannerContextType = {
|
|
|
11
12
|
isMobile?: boolean;
|
|
12
13
|
isLoggedIn?: boolean;
|
|
13
14
|
isMarketing?: boolean;
|
|
14
|
-
|
|
15
|
+
isSurveyType?: boolean;
|
|
15
16
|
hasPremiumBanner?: boolean;
|
|
16
17
|
currentUrl?: string;
|
|
17
18
|
subcribeHealthStatus?: SubcribeHealthStatusType;
|
|
18
19
|
articleId?: number;
|
|
19
20
|
state?: BannerStateData;
|
|
20
21
|
setState?: Dispatch<SetStateAction<BannerStateData>>;
|
|
21
|
-
source?: 'discover' | 'together';
|
|
22
22
|
showPNModal?: boolean;
|
|
23
23
|
setShowPNModal?: Dispatch<SetStateAction<boolean>>;
|
|
24
|
+
source?: 'discover' | 'together';
|
|
24
25
|
onChange?: (state: BannerStateData) => void;
|
|
25
26
|
handleClickOption?: (v: string) => void;
|
|
26
27
|
Outside?: React.FC<any>;
|
|
27
28
|
minHeight?: number;
|
|
29
|
+
isBack?: boolean;
|
|
30
|
+
setIsBack?: Dispatch<SetStateAction<boolean>>;
|
|
28
31
|
};
|
|
29
|
-
export declare const
|
|
32
|
+
export declare const SurveyOrPremiumBannerContext: import("react").Context<SurveyOrPremiumBannerContextType>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ContainerProps } from '@mantine/core';
|
|
3
|
+
import { SurveyOrPremiumBannerContextType } from './context';
|
|
4
|
+
import { BannerCategory } from './types';
|
|
5
|
+
export type Props = {
|
|
6
|
+
Wrapper?: React.FC<any>;
|
|
7
|
+
setShouldAcquisitionModalOpen?: () => void;
|
|
8
|
+
} & Omit<SurveyOrPremiumBannerContextType, 'acquisitionInfo' | 'isLoggedIn'> & ContainerProps;
|
|
9
|
+
export declare const MAPPING_CATEGORY_PREMIUM_TYPE: {
|
|
10
|
+
[key in string]: BannerCategory;
|
|
11
|
+
};
|
|
12
|
+
export declare const MAPPING_CATEGORY_PREMIUM_API_TYPE: {
|
|
13
|
+
[key in BannerCategory]: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const SurveyOrPremiumBanner: ({ type, articleId, categoryIds, isMarketing, isSurveyType, hasPremiumBanner, currentUrl, isMobile, subcribeHealthStatus, setShouldAcquisitionModalOpen, onChange, source, state: stateProp, Wrapper, ...rest }: Props) => React.JSX.Element;
|
package/build/esm/components/molecules/{premiumNewsletterBanner → surveyOrPremiumBanner}/types.d.ts
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RISK_SCREENER_NAME } from "../../../interfaces/constants";
|
|
2
2
|
import { HEALTH_TOOL_NAME } from "../../../interfaces/healthTools";
|
|
3
|
+
import { DataTrackingType } from "../../../interfaces/types";
|
|
3
4
|
import { Props as BannerWithOptionsProps } from './bannerWithOption';
|
|
4
5
|
import { Props as ToolBannerProps } from './toolBanner';
|
|
5
6
|
export declare enum BannerCategory {
|
|
@@ -15,6 +16,9 @@ export declare enum OptionBannerStyleType {
|
|
|
15
16
|
}
|
|
16
17
|
export type BannerStateData = {
|
|
17
18
|
action?: BannerAction;
|
|
19
|
+
actionParams?: {
|
|
20
|
+
hideBannerWhenClose?: boolean;
|
|
21
|
+
};
|
|
18
22
|
props?: ToolBannerProps | BannerWithOptionsProps;
|
|
19
23
|
};
|
|
20
24
|
export declare enum BannerAction {
|
|
@@ -32,6 +36,7 @@ export type OptionBannerType = {
|
|
|
32
36
|
isRiskScreener: boolean;
|
|
33
37
|
isPNBtn?: boolean;
|
|
34
38
|
props?: ToolBannerProps | BannerWithOptionsProps;
|
|
39
|
+
tracking?: DataTrackingType;
|
|
35
40
|
};
|
|
36
41
|
export type ThumbnailType = {
|
|
37
42
|
desktop: string;
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Alert,d as ArticleCard,e as ArticleCardV2,q as BMICardEmbed,u as BMRCardEmbed,r as BabyGrowthCardEmbed,s as BabyPoopEmbed,B as Badge,a as BorderHeading,x as Breadcrumbs,f as CategoryCard,C as Checkbox,g as CheckboxGroup,o as CookieAcceptConfirm,w as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,E as FixedBottomAdBlock,n as FloatButtonGroup,c as GenderOptionControl,G as Grid,I as IconText,O as OvulationCardEmbed,v as PWGCardEmbed,P as Pagination,h as ProgressBar,R as RateStars,S as ScrollList,p as SeoHead,y as ShareContainer,z as ShareDrawer,i as SideMenu,j as StatisticCard,m as SurveyThankyouCard,t as THRCardEmbed,k as Table,l as Tabs,T as Tag,b as Toggle}from"./fixedBottomAdBlock-
|
|
1
|
+
export{A as Alert,d as ArticleCard,e as ArticleCardV2,q as BMICardEmbed,u as BMRCardEmbed,r as BabyGrowthCardEmbed,s as BabyPoopEmbed,B as Badge,a as BorderHeading,x as Breadcrumbs,f as CategoryCard,C as Checkbox,g as CheckboxGroup,o as CookieAcceptConfirm,w as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,E as FixedBottomAdBlock,n as FloatButtonGroup,c as GenderOptionControl,G as Grid,I as IconText,O as OvulationCardEmbed,v as PWGCardEmbed,P as Pagination,h as ProgressBar,R as RateStars,S as ScrollList,p as SeoHead,y as ShareContainer,z as ShareDrawer,i as SideMenu,j as StatisticCard,m as SurveyThankyouCard,t as THRCardEmbed,k as Table,l as Tabs,T as Tag,b as Toggle}from"./fixedBottomAdBlock-42a0fc3b.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-4b0913ef.js";export{B as Button}from"./index-c04a8332.js";export{B as BtnChoice,D as Divider}from"./index-c52c6d1d.js";export{F as Flag,H as Heading,L as LogoIcon,P as PureInput,S as StepRenderer,b as StepRendererContext,T as TextArea,a as TextDivider}from"./index.styles-952b0f4b.js";export{I as Input}from"./index-7ea25330.js";export{C as Container,I as Icon,L as Label}from"./index-5b15422c.js";export{L as Logo}from"./index-d533e676.js";export{e as AdBlock,A as AuthorBadge,B as BookingBtn,D as DatePicker,c as DoctorInfo,a as Dropdown,h as MAPPING_CATEGORY_PREMIUM_API_TYPE,g as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,f as SurveyOrPremiumBanner,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-40352094.js";export{T as Text}from"./index-2472bb2e.js";export{D as Drawer,R as RadioImageGroup}from"./index-37ac3e0a.js";export{C as CustomReferenceDot,I as ImageWrap}from"./index-aab6e937.js";export{P as Popup}from"./index.styled-ce98cbc1.js";export{M as Modal}from"./index-4ef01662.js";export{P as PillCarousel}from"./index-9dc3058e.js";export{A as AddressInput}from"./index-c20147f5.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-4ff53e25.js";import"styled-components";import"lodash/throttle";import"./useUniqueId-d35bf586.js";import"./gAssets.js";import"./index-c9c1af14.js";import"date-fns/locale";import"./Onboarding-3631c6d1.js";import"./isProduction-85c6cb19.js";import"./theme-b5489d82.js";import"./tslib.es6-0405df6a.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"./translationsContext-be2e1844.js";import"string-format";import"@mantine/hooks";import"./useTranslations-b2f04ab6.js";import"date-fns";import"lodash/debounce";import"./useCategory-bfba2de5.js";import"./types-48c94135.js";import"./index-9a6cbd76.js";import"./index-671bebd2.js";import"react-hook-form";import"./useHealthToolCache-b9973713.js";import"./getDynamicHealthTool-0e9dffaf.js";import"./core-256cda08.js";import"./normalizeLink-58957b47.js";import"./useOutsideClick-3450a7a8.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-04ad7465.js";import"uuid";import"./cookieHelper-2fe90225.js";import"./constants-66251709.js";import"./index-404d6f42.js";import"./useIsInit-942b94fa.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"slugify";import"./number-251f8529.js";import"react-day-picker/DayPickerInput";import"react-dom";import"@hookform/resolvers/yup";import"./index.styled-8ad8796f.js";import"./utils-33c4c832.js";import"dayjs/plugin/relativeTime";import"./paths-46458204.js";import"./index-1f31ee2c.js";import"react-contenteditable";import"@mantine/form";import"js-cookie";import"lodash/flatten";import"lodash/uniqBy";import"./useScrollbarSize-11faa525.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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"}},i=-1,e=-2;var
|
|
1
|
+
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"}},i=-1,e=-2,s="gsk";var E=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"});export{s as C,e as I,a as L,i as a,E as c};
|
package/build/esm/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"date-fns/locale";import"./Onboarding-
|
|
1
|
+
import"date-fns/locale";import"./Onboarding-3631c6d1.js";export{B as BEARER_TOKEN_COOKIE,b as CARE_BOOKING_LOCALES,C as CARE_LOCALES,c as CDN_ADDRESS,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,G as GA_TOKEN_COOKIE,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,R as RISK_SCREENER_NAME,a as RISK_SCREENER_SLUG,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,e as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,f as siteHost,s as siteOptions}from"./index-c9c1af14.js";export{i as isProduction}from"./isProduction-85c6cb19.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-0405df6a.js";import{i as e}from"./isProduction-85c6cb19.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
|
package/build/esm/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./theme-cd27574e.js";import"./index-d5f79d3b.js";import{i as o}from"./isProduction-f84e5e5c.js";export{t as Types}from"./types-5fdf9e45.js";import"date-fns/locale";import"./Onboarding-333aa9dc.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||"",c=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,u=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?`https://${d[s]}`:`https://discover.${d[s]}`,p=o?`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:c,GOOGLE_CLIENT_ID:u,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.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,c,u,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===(u=null===(c=null==e?void 0:e.social)||void 0===c?void 0:c.socials)||void 0===u?void 0:u.map)||void 0===d?void 0:d.call(u,(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,c,u,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===(u=(c=e.sub_banners).map)||void 0===u?void 0:u.call(c,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,c,u,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===(c=e.currency)||void 0===c?void 0:c.store_to_quote_rate)||0,baseToGlobalRate:(null===(u=e.currency)||void 0===u?void 0:u.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});export{l as ApiTypes,T as Constants,A as DataFormatter,i as DataTypes};
|
|
1
|
+
import{t as e}from"./theme-b5489d82.js";import"./index-c9c1af14.js";import{i as o}from"./isProduction-85c6cb19.js";export{t as Types}from"./types-48c94135.js";import"date-fns/locale";import"./Onboarding-3631c6d1.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||"",c=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,u=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?`https://${d[s]}`:`https://discover.${d[s]}`,p=o?`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:c,GOOGLE_CLIENT_ID:u,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.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,c,u,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===(u=null===(c=null==e?void 0:e.social)||void 0===c?void 0:c.socials)||void 0===u?void 0:u.map)||void 0===d?void 0:d.call(u,(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,c,u,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===(u=(c=e.sub_banners).map)||void 0===u?void 0:u.call(c,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,c,u,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===(c=e.currency)||void 0===c?void 0:c.store_to_quote_rate)||0,baseToGlobalRate:(null===(u=e.currency)||void 0===u?void 0:u.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});export{l as ApiTypes,T as Constants,A as DataFormatter,i as DataTypes};
|