@hhgtech/hhg-components 1.27.107 → 1.27.108
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.js +1 -1
- package/build/components/atoms/icons/ArrowRightTail.d.ts +4 -0
- package/build/components/atoms/icons/index.d.ts +1 -0
- package/build/components/molecules/index.d.ts +2 -1
- package/build/components/molecules/premiumNewsletterBanner/bannerLayout.d.ts +11 -0
- package/build/components/molecules/premiumNewsletterBanner/bannerWithOption/index.d.ts +17 -0
- package/build/components/molecules/premiumNewsletterBanner/bannerWithOption/index.styles.d.ts +10 -0
- package/build/components/molecules/premiumNewsletterBanner/constants.d.ts +167 -0
- package/build/components/molecules/premiumNewsletterBanner/context.d.ts +13 -9
- package/build/components/molecules/premiumNewsletterBanner/handlerBanner.d.ts +3 -0
- package/build/components/molecules/premiumNewsletterBanner/index.d.ts +8 -1
- package/build/components/molecules/premiumNewsletterBanner/toolBanner.d.ts +11 -7
- package/build/components/molecules/premiumNewsletterBanner/types.d.ts +43 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-c2188d67.js → core-c7a75018.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.js +1 -1
- package/build/esm/components/atoms/icons/ArrowRightTail.d.ts +4 -0
- package/build/esm/components/atoms/icons/index.d.ts +1 -0
- package/build/esm/components/molecules/index.d.ts +2 -1
- package/build/esm/components/molecules/premiumNewsletterBanner/bannerLayout.d.ts +11 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/bannerWithOption/index.d.ts +17 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/bannerWithOption/index.styles.d.ts +10 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/constants.d.ts +167 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/context.d.ts +13 -9
- package/build/esm/components/molecules/premiumNewsletterBanner/handlerBanner.d.ts +3 -0
- package/build/esm/components/molecules/premiumNewsletterBanner/index.d.ts +8 -1
- package/build/esm/components/molecules/premiumNewsletterBanner/toolBanner.d.ts +11 -7
- package/build/esm/components/molecules/premiumNewsletterBanner/types.d.ts +43 -0
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-1eefc80e.js → core-4fa1377d.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/fixedBottomAdBlock-bf030cc6.js +1 -0
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-4a9008e6.js +1 -0
- package/build/esm/{getSocialList-61a37aaa.js → getSocialList-10b0890f.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n-values/id-ID.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/index-06d78c13.js +1 -0
- package/build/esm/index-079b076a.js +1 -0
- package/build/esm/{index-eb7b481c.js → index-1fcd21d6.js} +1 -1
- package/build/esm/index-207bfc46.js +1 -0
- package/build/esm/{index-17e18342.js → index-3205cae2.js} +1 -1
- package/build/esm/index-40286727.js +1 -0
- package/build/esm/{index-856ff66e.js → index-487b5955.js} +2 -2
- package/build/esm/index-4fb56101.js +6897 -0
- package/build/esm/{index-449f5c48.js → index-7313938c.js} +1 -1
- package/build/esm/{index-ee66cce2.js → index-88d1f21a.js} +4 -4
- package/build/esm/index-8bf9f4b7.js +113 -0
- package/build/esm/index-9dc72ef6.js +1 -0
- package/build/esm/{index-d870b668.js → index-a1ad59eb.js} +6 -6
- package/build/esm/{index-6305da27.js → index-afc34144.js} +1 -1
- package/build/esm/{index-8df7dcfc.js → index-b0fb8848.js} +1 -1
- package/build/esm/index-bc29ba16.js +1 -0
- package/build/esm/index-c08468c8.js +1 -0
- package/build/esm/index-d0c85d18.js +1 -0
- package/build/esm/{index-58f4c8f7.js → index-dc038260.js} +1 -1
- package/build/esm/{index-94ba9ce3.js → index-e34aff32.js} +1 -1
- package/build/esm/{index-20383a76.js → index-f41ca02d.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-54fac88c.js → index.styled-455cec24.js} +1 -1
- package/build/esm/{index.styled-ee45f4b9.js → index.styled-68620508.js} +1 -1
- package/build/esm/{index.styled-1ead0e2f.js → index.styled-8cac0670.js} +4 -4
- package/build/esm/{index.styles-3cb66895.js → index.styles-054791eb.js} +2 -2
- package/build/esm/interfaces/constants/index.d.ts +1 -0
- package/build/esm/interfaces/constants/riskScreener.d.ts +9 -0
- 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/{routing-2eb975c1.js → normalizeLink-b09aeaef.js} +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/together.js +1 -1
- package/build/esm/{types-6e94b035.js → types-2168a8be.js} +1 -1
- package/build/esm/types-4341a1ad.js +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-be3ee862.js → useCategory-93c085f5.js} +1 -1
- package/build/esm/{useHealthToolCache-f6cdcbeb.js → useHealthToolCache-4d6f85a4.js} +1 -1
- package/build/esm/{useRafState-c4bc6e60.js → useRafState-82ac303c.js} +1 -1
- package/build/esm/useTranslations-3e087ef1.js +1 -0
- package/build/esm/{utils-5148d654.js → utils-5d3141da.js} +1 -1
- package/build/esm/vaccination.js +5 -5
- package/build/fixedBottomAdBlock-868addc2.js +1 -0
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-f4f91c99.js +1 -0
- package/build/{getSocialList-60368527.js → getSocialList-b6402502.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n-values/id-ID.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-be9ef612.js → index-07e01103.js} +1 -1
- package/build/index-09f4655b.js +1 -0
- package/build/{index-5de20bc8.js → index-0e741262.js} +1 -1
- package/build/{index-d9168227.js → index-12645a3d.js} +1 -1
- package/build/{index-6b8b5528.js → index-14681c4d.js} +1 -1
- package/build/{index-32476c95.js → index-20eabad1.js} +1 -1
- package/build/{index-22d7e5f2.js → index-2ee389bd.js} +1 -1
- package/build/{index-ec824be5.js → index-488aa7af.js} +1 -1
- package/build/{index-431dd307.js → index-53cc2e2c.js} +1 -1
- package/build/index-578006ad.js +1 -0
- package/build/index-7462232a.js +113 -0
- package/build/{index-1fee8988.js → index-753cbbd7.js} +1 -1
- package/build/{index-0f86901f.js → index-8fd2a2ec.js} +1 -1
- package/build/index-93ef21b1.js +1 -0
- package/build/{_topic-e97ac8e9.js → index-a1283613.js} +419 -419
- package/build/index-a39b5b8a.js +1 -0
- package/build/{index-3cb544c8.js → index-b9c7f584.js} +1 -1
- package/build/{index-7243b522.js → index-e062aec1.js} +1 -1
- package/build/{index-2ebbbba2.js → index-e152635d.js} +1 -1
- package/build/{index-6a13cb05.js → index-eba3089e.js} +2 -2
- package/build/{index-1e968087.js → index-ef0a72ff.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-c563f83f.js → index.styled-03aeb5ef.js} +5 -5
- package/build/{index.styled-cd393e56.js → index.styled-0604b625.js} +3 -3
- package/build/{index.styled-e128f66d.js → index.styled-06324a5c.js} +1 -1
- package/build/{index.styles-bca5299c.js → index.styles-f9cad0ed.js} +2 -2
- package/build/interfaces/constants/index.d.ts +1 -0
- package/build/interfaces/constants/riskScreener.d.ts +9 -0
- 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-daac000f.js +1 -0
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +1 -1
- package/build/together.js +1 -1
- package/build/{types-f0e58666.js → types-d450b397.js} +1 -1
- package/build/types-e0dcc9af.js +1 -0
- package/build/types.js +1 -1
- package/build/{useCategory-df177b44.js → useCategory-e50d02d4.js} +1 -1
- package/build/useHealthToolCache-77cd8a15.js +1 -0
- package/build/{useRafState-a633385f.js → useRafState-86f9a0f3.js} +1 -1
- package/build/{useTranslations-b4594bd3.js → useTranslations-ec44216d.js} +1 -1
- package/build/utils-f426008b.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/components/molecules/premiumNewsletterBanner/bannerWithOption.d.ts +0 -10
- package/build/esm/_topic-06ecb66a.js +0 -6897
- package/build/esm/components/molecules/premiumNewsletterBanner/bannerWithOption.d.ts +0 -10
- package/build/esm/getDynamicHealthTool-ebc19aa8.js +0 -1
- package/build/esm/index-118cc0e3.js +0 -1
- package/build/esm/index-1dc8aa54.js +0 -1
- package/build/esm/index-34cdc8ae.js +0 -1
- package/build/esm/index-7cc30b43.js +0 -1
- package/build/esm/index-9031b2ed.js +0 -1
- package/build/esm/index-c5aedb3d.js +0 -1
- package/build/esm/index-d71ad10a.js +0 -1
- package/build/esm/index-e29c43c9.js +0 -1
- package/build/esm/index-e9f94e1d.js +0 -113
- package/build/esm/index-f9107370.js +0 -1
- package/build/esm/normalizeLink-7f1e3cc7.js +0 -1
- package/build/esm/types-3c95cf95.js +0 -1
- package/build/esm/useTranslations-d3d91dae.js +0 -1
- package/build/getDynamicHealthTool-e8f39784.js +0 -1
- package/build/index-62a5c4ae.js +0 -1
- package/build/index-9da4756e.js +0 -1
- package/build/index-a6c1f004.js +0 -1
- package/build/index-af2d5ff0.js +0 -1
- package/build/index-b17e8380.js +0 -113
- package/build/index-d3f90f62.js +0 -1
- package/build/normalizeLink-50b00136.js +0 -1
- package/build/routing-15049135.js +0 -1
- package/build/types-1899464f.js +0 -1
- package/build/useHealthToolCache-e0d58003.js +0 -1
- package/build/utils-cca429d5.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-9b4a7efd.js → BMI_BOYS.percentile.monthly-6474acf1.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-c00b1465.js → BMI_BOYS.percentile.weekly-d1359d99.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-9c894fd9.js → BMI_BOYS.percentile.yearly-86df8b65.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-793bb6db.js → BMI_BOYS.zscore.monthly-753a10e8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-8b382e4c.js → BMI_BOYS.zscore.weekly-f052b3b6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-f5a3264b.js → BMI_BOYS.zscore.yearly-b1fd06c9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-866d83b5.js → BMI_GIRLS.percentile.monthly-9a5f26d6.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-40156ad2.js → BMI_GIRLS.percentile.weekly-31ad199d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-a08b81c2.js → BMI_GIRLS.percentile.yearly-79419770.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-879abeb0.js → BMI_GIRLS.zscore.monthly-d0d104d6.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-142ffa78.js → BMI_GIRLS.zscore.weekly-933c4ae5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-9954929c.js → BMI_GIRLS.zscore.yearly-33455e67.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-9d236252.js → HEAD CIRCUM_BOYS.percentile.monthly-6eaa2256.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-30f6b49d.js → HEAD CIRCUM_BOYS.percentile.weekly-899c1da1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-51fbc628.js → HEAD CIRCUM_BOYS.percentile.yearly-7daa91f5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-bc137ba6.js → HEAD CIRCUM_BOYS.zscore.monthly-d2d51c9c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-ac6baa93.js → HEAD CIRCUM_BOYS.zscore.weekly-28335f4f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-85582234.js → HEAD CIRCUM_BOYS.zscore.yearly-5df395b7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e9d4bdcd.js → HEAD CIRCUM_GIRLS.percentile.monthly-7d4466f9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-0c279436.js → HEAD CIRCUM_GIRLS.percentile.weekly-3dd5083f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-00936988.js → HEAD CIRCUM_GIRLS.percentile.yearly-0711f890.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-51616dbb.js → HEAD CIRCUM_GIRLS.zscore.monthly-8ae1120d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-d62b3079.js → HEAD CIRCUM_GIRLS.zscore.weekly-3f6446e8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-a2be1c2a.js → HEAD CIRCUM_GIRLS.zscore.yearly-187cd1e7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-66d29282.js → HEIGHT_BOYS.percentile.monthly-6a71dd8c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-3e5b7405.js → HEIGHT_BOYS.percentile.weekly-ab26c647.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-76ec4442.js → HEIGHT_BOYS.percentile.yearly-b8d9f7ca.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-4a1ac1c7.js → HEIGHT_BOYS.zscore.monthly-2f50713f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-65596564.js → HEIGHT_BOYS.zscore.weekly-ab219f56.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-6c85d212.js → HEIGHT_BOYS.zscore.yearly-5c3fee13.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-4b00af11.js → HEIGHT_GIRLS.percentile.monthly-b8e9cd11.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-42e8fc4a.js → HEIGHT_GIRLS.percentile.weekly-f5e06b9e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-b45e7683.js → HEIGHT_GIRLS.percentile.yearly-7cbff2d7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-4262e457.js → HEIGHT_GIRLS.zscore.monthly-7ccd7739.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-c26b1a8a.js → HEIGHT_GIRLS.zscore.weekly-09810d49.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-602c973c.js → HEIGHT_GIRLS.zscore.yearly-9324bb7e.js} +0 -0
- /package/build/{Onboarding-680b3178.js → Onboarding-09a0b8b8.js} +0 -0
- /package/build/{Visible-fe62b674.js → Visible-f4da1058.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-748f1890.js → WEIGHT_BOYS.percentile.monthly-93492d7a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-348f8868.js → WEIGHT_BOYS.percentile.weekly-97297594.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-9fc08aae.js → WEIGHT_BOYS.percentile.yearly-6c493e93.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-c3206639.js → WEIGHT_BOYS.zscore.monthly-db2d38e3.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-3589e565.js → WEIGHT_BOYS.zscore.weekly-2467da43.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-010625e0.js → WEIGHT_BOYS.zscore.yearly-f861d638.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-18bf8d9f.js → WEIGHT_GIRLS.percentile.monthly-8b45494e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-ef07c7a3.js → WEIGHT_GIRLS.percentile.weekly-2144c3a8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-ad72b2fb.js → WEIGHT_GIRLS.percentile.yearly-2effedc3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b6970dd5.js → WEIGHT_GIRLS.zscore.monthly-8973c4f2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-26464dca.js → WEIGHT_GIRLS.zscore.weekly-73d16170.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-4c2d09f5.js → WEIGHT_GIRLS.zscore.yearly-e71c80ae.js} +0 -0
- /package/build/{constants-978d74c9.js → constants-26c603a9.js} +0 -0
- /package/build/{cookieHelper-ef035a02.js → cookieHelper-f7f170bd.js} +0 -0
- /package/build/{dataTransform-83833cdd.js → dataTransform-6b83d29b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-e9764efc.js → BMI_BOYS.percentile.monthly-f694b480.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-be1015d5.js → BMI_BOYS.percentile.weekly-a13f6584.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-b3e81bf1.js → BMI_BOYS.percentile.yearly-35a253c5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-5d74d964.js → BMI_BOYS.zscore.monthly-f1727824.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-280b5026.js → BMI_BOYS.zscore.weekly-cbc0b3ed.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-9e4e32d2.js → BMI_BOYS.zscore.yearly-bbe45b72.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-033349c7.js → BMI_GIRLS.percentile.monthly-57992bbb.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-71d93f3d.js → BMI_GIRLS.percentile.weekly-fabdfca2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-40fc13ad.js → BMI_GIRLS.percentile.yearly-57d5d7de.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-e8a55ebc.js → BMI_GIRLS.zscore.monthly-967d3822.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-71d656d6.js → BMI_GIRLS.zscore.weekly-f29ba0b5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-5a468242.js → BMI_GIRLS.zscore.yearly-b3e1f421.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-e3b093b1.js → HEAD CIRCUM_BOYS.percentile.monthly-a2ab1762.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f6b80588.js → HEAD CIRCUM_BOYS.percentile.weekly-ad8891e1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-fc13c6a5.js → HEAD CIRCUM_BOYS.percentile.yearly-da5c3247.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-2892b7cc.js → HEAD CIRCUM_BOYS.zscore.monthly-37664fc1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-70ded852.js → HEAD CIRCUM_BOYS.zscore.weekly-43847232.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c1ff4525.js → HEAD CIRCUM_BOYS.zscore.yearly-b8b548e2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b54fb8a3.js → HEAD CIRCUM_GIRLS.percentile.monthly-79b0ab3b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-7e55533c.js → HEAD CIRCUM_GIRLS.percentile.weekly-d760f0f6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-949a054e.js → HEAD CIRCUM_GIRLS.percentile.yearly-14c5089d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-a96d19ec.js → HEAD CIRCUM_GIRLS.zscore.monthly-de366fa2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-b66c05c9.js → HEAD CIRCUM_GIRLS.zscore.weekly-d2704b26.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-9dd13c8f.js → HEAD CIRCUM_GIRLS.zscore.yearly-483fc5c5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-9700aac3.js → HEIGHT_BOYS.percentile.monthly-3799366e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-ef6904ed.js → HEIGHT_BOYS.percentile.weekly-3c818bda.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-5901b11f.js → HEIGHT_BOYS.percentile.yearly-46d85627.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-31972315.js → HEIGHT_BOYS.zscore.monthly-c2d0a10d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c1f54fcd.js → HEIGHT_BOYS.zscore.weekly-9a9dc3fa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3a88a99b.js → HEIGHT_BOYS.zscore.yearly-7c42e8c0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-d8cb75fe.js → HEIGHT_GIRLS.percentile.monthly-b4617cb6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c865f0ae.js → HEIGHT_GIRLS.percentile.weekly-a57372b1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-a3db6404.js → HEIGHT_GIRLS.percentile.yearly-42a759fb.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-06123665.js → HEIGHT_GIRLS.zscore.monthly-77f9982b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-56ea53ce.js → HEIGHT_GIRLS.zscore.weekly-8b36344b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-a05118f2.js → HEIGHT_GIRLS.zscore.yearly-6f72e0e4.js} +0 -0
- /package/build/esm/{Onboarding-e74c6373.js → Onboarding-485d3188.js} +0 -0
- /package/build/esm/{Visible-c0636b77.js → Visible-7f242e5b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-9bceb070.js → WEIGHT_BOYS.percentile.monthly-fd15d691.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0bcf2f5a.js → WEIGHT_BOYS.percentile.weekly-47e3be0b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-233aef08.js → WEIGHT_BOYS.percentile.yearly-d4819cc4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-59173133.js → WEIGHT_BOYS.zscore.monthly-33e08b56.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-d0b0891c.js → WEIGHT_BOYS.zscore.weekly-85ad74c4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-aed61be9.js → WEIGHT_BOYS.zscore.yearly-9e35b7db.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-b1aaa4f5.js → WEIGHT_GIRLS.percentile.monthly-de3c7336.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3cd50fbf.js → WEIGHT_GIRLS.percentile.weekly-c0e60d8a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-aa79c1cf.js → WEIGHT_GIRLS.percentile.yearly-b8d83e40.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-ef91acea.js → WEIGHT_GIRLS.zscore.monthly-7621d4ed.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-6daea4ee.js → WEIGHT_GIRLS.zscore.weekly-6819de4d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-b27fd0f9.js → WEIGHT_GIRLS.zscore.yearly-ff07da9d.js} +0 -0
- /package/build/esm/{constants-712f22d5.js → constants-0f67755b.js} +0 -0
- /package/build/esm/{cookieHelper-0b465a40.js → cookieHelper-f207d4d4.js} +0 -0
- /package/build/esm/{dataTransform-aeb51aee.js → dataTransform-e317a055.js} +0 -0
- /package/build/esm/{index-7f3b616d.js → index-5241ad7e.js} +0 -0
- /package/build/esm/{isProduction-e91fe1f8.js → isProduction-d1277896.js} +0 -0
- /package/build/esm/{localizeNumberFormat-e6a59661.js → localizeNumberFormat-ca035a83.js} +0 -0
- /package/build/esm/{number-0269eb39.js → number-8eccff99.js} +0 -0
- /package/build/esm/{paths-edfac68b.js → paths-f06f4b77.js} +0 -0
- /package/build/esm/{screenSizeContext-32376937.js → screenSizeContext-41ddf2d8.js} +0 -0
- /package/build/esm/{theme-fa44d5d8.js → theme-de7144fa.js} +0 -0
- /package/build/esm/{translationsContext-19ab986c.js → translationsContext-ecfcfef5.js} +0 -0
- /package/build/esm/{tslib.es6-74f0570d.js → tslib.es6-d7ea3995.js} +0 -0
- /package/build/esm/{types-3f93b402.js → types-e5a752c4.js} +0 -0
- /package/build/esm/{useIsInit-c671a4a8.js → useIsInit-e69680cc.js} +0 -0
- /package/build/esm/{useOutsideClick-c6d935b3.js → useOutsideClick-0953f9a5.js} +0 -0
- /package/build/esm/{useScrollbarSize-cc449e29.js → useScrollbarSize-d202bf4e.js} +0 -0
- /package/build/esm/{useUniqueId-4bcf65b3.js → useUniqueId-d57b41d6.js} +0 -0
- /package/build/{index-dac97379.js → index-4ed3a08f.js} +0 -0
- /package/build/{isProduction-d069d72f.js → isProduction-847c662c.js} +0 -0
- /package/build/{localizeNumberFormat-5caed487.js → localizeNumberFormat-33f385c8.js} +0 -0
- /package/build/{number-12cac8a1.js → number-fe2cebb7.js} +0 -0
- /package/build/{paths-7111bdc0.js → paths-8f4ffd24.js} +0 -0
- /package/build/{screenSizeContext-fbab96ac.js → screenSizeContext-dc4a704c.js} +0 -0
- /package/build/{theme-8e5f3027.js → theme-6dc2706a.js} +0 -0
- /package/build/{translationsContext-be52e93c.js → translationsContext-06042b8f.js} +0 -0
- /package/build/{tslib.es6-66f4373b.js → tslib.es6-aff53c48.js} +0 -0
- /package/build/{types-cb1ac6a2.js → types-b6efde8f.js} +0 -0
- /package/build/{useIsInit-e2ab71c5.js → useIsInit-c6da49b9.js} +0 -0
- /package/build/{useOutsideClick-78db2538.js → useOutsideClick-725582fb.js} +0 -0
- /package/build/{useScrollbarSize-ce56eaac.js → useScrollbarSize-8e27d707.js} +0 -0
- /package/build/{useUniqueId-0230c3e7.js → useUniqueId-8a0a6118.js} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DefaultProps, Selectors } from '@mantine/core';
|
|
3
|
+
import { ButtonProps } from "../../../mantine";
|
|
4
|
+
import useStyles from './index.styles';
|
|
5
|
+
import { Props as BannerLayoutProps } from '../bannerLayout';
|
|
6
|
+
import { OptionBannerStyleType, OptionBannerType } from '../types';
|
|
7
|
+
export interface Props extends DefaultProps<Selectors<typeof useStyles> & BannerLayoutProps> {
|
|
8
|
+
heading: string;
|
|
9
|
+
description: string;
|
|
10
|
+
items?: Array<OptionBannerType>;
|
|
11
|
+
submitHandler?: any;
|
|
12
|
+
styleType?: OptionBannerStyleType;
|
|
13
|
+
buttonProps?: ButtonProps;
|
|
14
|
+
value?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const BannerWithOptions: (props: Props) => React.JSX.Element;
|
|
17
|
+
export { BannerWithOptions };
|
package/build/esm/components/molecules/premiumNewsletterBanner/bannerWithOption/index.styles.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<string>) => {
|
|
2
|
+
classes: {
|
|
3
|
+
root: string;
|
|
4
|
+
wrapper: string;
|
|
5
|
+
button: string;
|
|
6
|
+
};
|
|
7
|
+
cx: (...args: any) => string;
|
|
8
|
+
theme: import("@mantine/core").MantineTheme;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { MantineTheme } from '@mantine/core';
|
|
2
|
+
import { UseTranslationsReturn } from "../../../hooks";
|
|
3
|
+
import { RISK_SCREENER_NAME } from "../../../interfaces/constants";
|
|
4
|
+
import { LocaleType } from "../../../interfaces/types";
|
|
5
|
+
import { BannerAction, OptionBannerStyleType } from './types';
|
|
6
|
+
export declare const FLOW: (t: UseTranslationsReturn<LocaleType>['t']) => {
|
|
7
|
+
pregnant: {
|
|
8
|
+
action: BannerAction;
|
|
9
|
+
props: {
|
|
10
|
+
heading: string;
|
|
11
|
+
description: string;
|
|
12
|
+
styleType: OptionBannerStyleType;
|
|
13
|
+
thumbnail: {
|
|
14
|
+
desktop: string;
|
|
15
|
+
mobile: string;
|
|
16
|
+
};
|
|
17
|
+
buttonProps: {
|
|
18
|
+
variant: string;
|
|
19
|
+
styles: (theme: MantineTheme) => {
|
|
20
|
+
[x: string]: string | {
|
|
21
|
+
minWidth: string;
|
|
22
|
+
};
|
|
23
|
+
minWidth: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
items: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
submitHandler: {
|
|
32
|
+
yes: {
|
|
33
|
+
action: BannerAction;
|
|
34
|
+
props: {
|
|
35
|
+
value: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
no: {
|
|
39
|
+
action: BannerAction;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
parenting: {
|
|
44
|
+
action: BannerAction;
|
|
45
|
+
props: {
|
|
46
|
+
heading: string;
|
|
47
|
+
description: string;
|
|
48
|
+
thumbnail: {
|
|
49
|
+
desktop: string;
|
|
50
|
+
mobile: string;
|
|
51
|
+
};
|
|
52
|
+
hideDescOnMobile: boolean;
|
|
53
|
+
styleType: OptionBannerStyleType;
|
|
54
|
+
items: {
|
|
55
|
+
label: string;
|
|
56
|
+
value: string;
|
|
57
|
+
}[];
|
|
58
|
+
};
|
|
59
|
+
submitHandler: {
|
|
60
|
+
todders: {
|
|
61
|
+
action: BannerAction;
|
|
62
|
+
props: {
|
|
63
|
+
value: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
teenager: {
|
|
67
|
+
action: BannerAction;
|
|
68
|
+
props: {
|
|
69
|
+
styleType: OptionBannerStyleType;
|
|
70
|
+
heading: string;
|
|
71
|
+
thumbnail: {
|
|
72
|
+
desktop: string;
|
|
73
|
+
mobile: string;
|
|
74
|
+
};
|
|
75
|
+
buttonProps: {
|
|
76
|
+
variant: string;
|
|
77
|
+
};
|
|
78
|
+
items: {
|
|
79
|
+
label: string;
|
|
80
|
+
value: string;
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
'teenager.boy': {
|
|
85
|
+
action: BannerAction;
|
|
86
|
+
};
|
|
87
|
+
'teenager.girl': {
|
|
88
|
+
action: BannerAction;
|
|
89
|
+
activeTool: RISK_SCREENER_NAME;
|
|
90
|
+
props: {
|
|
91
|
+
value: RISK_SCREENER_NAME;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
'todders|teenager': {
|
|
95
|
+
action: BannerAction;
|
|
96
|
+
props: {
|
|
97
|
+
styleType: OptionBannerStyleType;
|
|
98
|
+
heading: string;
|
|
99
|
+
description: string;
|
|
100
|
+
thumbnail: {
|
|
101
|
+
desktop: string;
|
|
102
|
+
mobile: string;
|
|
103
|
+
};
|
|
104
|
+
hideDescOnMobile: boolean;
|
|
105
|
+
buttonProps: {
|
|
106
|
+
variant: string;
|
|
107
|
+
};
|
|
108
|
+
styles: (theme: MantineTheme) => {
|
|
109
|
+
wrapper: {
|
|
110
|
+
[x: string]: {
|
|
111
|
+
flexDirection: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
items: ({
|
|
116
|
+
label: string;
|
|
117
|
+
activeTool: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
|
|
118
|
+
isLink: boolean;
|
|
119
|
+
value?: undefined;
|
|
120
|
+
} | {
|
|
121
|
+
label: string;
|
|
122
|
+
value: string;
|
|
123
|
+
activeTool?: undefined;
|
|
124
|
+
isLink?: undefined;
|
|
125
|
+
})[];
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
'todders|teenager.showPN': {
|
|
129
|
+
action: BannerAction;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
export declare const TOOL_BANNERS_PROPS: (t: UseTranslationsReturn<LocaleType>['t']) => {
|
|
135
|
+
[x: string]: {
|
|
136
|
+
heading: string;
|
|
137
|
+
description: string;
|
|
138
|
+
btnLabel: string;
|
|
139
|
+
value: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
|
|
140
|
+
thumbnail?: undefined;
|
|
141
|
+
isRiskScreener?: undefined;
|
|
142
|
+
hideDescOnMobile?: undefined;
|
|
143
|
+
} | {
|
|
144
|
+
heading: string;
|
|
145
|
+
description: string;
|
|
146
|
+
thumbnail: {
|
|
147
|
+
desktop: string;
|
|
148
|
+
mobile: string;
|
|
149
|
+
};
|
|
150
|
+
isRiskScreener: boolean;
|
|
151
|
+
btnLabel: string;
|
|
152
|
+
value: RISK_SCREENER_NAME;
|
|
153
|
+
hideDescOnMobile: boolean;
|
|
154
|
+
};
|
|
155
|
+
hpv: {
|
|
156
|
+
heading: string;
|
|
157
|
+
description: string;
|
|
158
|
+
thumbnail: {
|
|
159
|
+
desktop: string;
|
|
160
|
+
mobile: string;
|
|
161
|
+
};
|
|
162
|
+
isRiskScreener: boolean;
|
|
163
|
+
btnLabel: string;
|
|
164
|
+
value: RISK_SCREENER_NAME;
|
|
165
|
+
hideDescOnMobile: boolean;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { BannerAction, BannerStateData, SubcribeHealthStatusType } from './types';
|
|
2
3
|
import { AcquisitionInfo } from '../premiumNewsletterModal/context';
|
|
3
|
-
export type BannerState =
|
|
4
|
+
export type BannerState = BannerAction.ShowTool | BannerAction.ShowOptionBanner | null;
|
|
4
5
|
export type PremiumNewsletterBannerContextType = {
|
|
5
6
|
type: string;
|
|
7
|
+
settings?: any;
|
|
8
|
+
submitHandler?: any;
|
|
6
9
|
acquisitionInfo: AcquisitionInfo;
|
|
7
10
|
categoryIds?: Array<string | number>;
|
|
8
11
|
isMobile?: boolean;
|
|
@@ -11,13 +14,14 @@ export type PremiumNewsletterBannerContextType = {
|
|
|
11
14
|
isABTestingType?: boolean;
|
|
12
15
|
isPremiumBanner?: boolean;
|
|
13
16
|
currentUrl?: string;
|
|
14
|
-
subcribeHealthStatus?:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
onChange?: (state
|
|
17
|
+
subcribeHealthStatus?: SubcribeHealthStatusType;
|
|
18
|
+
articleId?: number;
|
|
19
|
+
state?: BannerStateData;
|
|
20
|
+
setState?: Dispatch<SetStateAction<BannerStateData>>;
|
|
21
|
+
source?: 'discover' | 'together';
|
|
22
|
+
showPNModal?: boolean;
|
|
23
|
+
setShowPNModal?: Dispatch<SetStateAction<boolean>>;
|
|
24
|
+
onChange?: (state: BannerStateData) => void;
|
|
25
|
+
handleClickOption?: (v: string) => void;
|
|
22
26
|
};
|
|
23
27
|
export declare const PremiumNewsletterBannerContext: import("react").Context<PremiumNewsletterBannerContextType>;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ContainerProps } from '@mantine/core';
|
|
3
3
|
import { PremiumNewsletterBannerContextType } from './context';
|
|
4
|
+
import { BannerCategory } from './types';
|
|
4
5
|
export type Props = {
|
|
5
6
|
setShouldAcquisitionModalOpen?: () => void;
|
|
6
7
|
} & Omit<PremiumNewsletterBannerContextType, 'acquisitionInfo' | 'isLoggedIn'> & ContainerProps;
|
|
7
|
-
export declare const
|
|
8
|
+
export declare const MAPPING_CATEGORY_PREMIUM_TYPE: {
|
|
9
|
+
[key in string]: BannerCategory;
|
|
10
|
+
};
|
|
11
|
+
export declare const MAPPING_CATEGORY_PREMIUM_API_TYPE: {
|
|
12
|
+
[key in BannerCategory]: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const PremiumNewsletterBanner: ({ type: typeProp, articleId, categoryIds, isMarketing, isABTestingType, isPremiumBanner, currentUrl, isMobile, subcribeHealthStatus, setShouldAcquisitionModalOpen, onChange, source, state: stateProp, ...rest }: Props) => React.JSX.Element;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { HEALTH_TOOL_NAME } from "../../../interfaces/healthTools";
|
|
3
|
+
import { ThumbnailType } from './types';
|
|
4
|
+
export type Props = {
|
|
5
|
+
value: HEALTH_TOOL_NAME;
|
|
6
|
+
isRiskScreener?: boolean;
|
|
7
|
+
heading?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
thumbnail?: string | ThumbnailType;
|
|
10
|
+
btnLabel?: string;
|
|
11
|
+
hideDescOnMobile?: boolean;
|
|
8
12
|
};
|
|
9
|
-
declare const ToolBanner: (
|
|
13
|
+
declare const ToolBanner: (props: Props) => React.JSX.Element;
|
|
10
14
|
export { ToolBanner };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { RISK_SCREENER_NAME } from "../../../interfaces/constants";
|
|
2
|
+
import { HEALTH_TOOL_NAME } from "../../../interfaces/healthTools";
|
|
3
|
+
import { Props as BannerWithOptionsProps } from './bannerWithOption';
|
|
4
|
+
import { Props as ToolBannerProps } from './toolBanner';
|
|
5
|
+
export declare enum BannerCategory {
|
|
6
|
+
Pregnant = "pregnant",
|
|
7
|
+
Parenting = "parenting"
|
|
8
|
+
}
|
|
9
|
+
export declare enum BannerType {
|
|
10
|
+
Option = "option"
|
|
11
|
+
}
|
|
12
|
+
export declare enum OptionBannerStyleType {
|
|
13
|
+
Button = "button",
|
|
14
|
+
Checkbox = "checkbox"
|
|
15
|
+
}
|
|
16
|
+
export type BannerStateData = {
|
|
17
|
+
action?: BannerAction;
|
|
18
|
+
props?: ToolBannerProps | BannerWithOptionsProps;
|
|
19
|
+
};
|
|
20
|
+
export declare enum BannerAction {
|
|
21
|
+
ShowTool = "showTool",
|
|
22
|
+
ShowPremiumModal = "showPremiumModal",
|
|
23
|
+
ShowOptionBanner = "showOptionBanner",
|
|
24
|
+
Hide = "hide"
|
|
25
|
+
}
|
|
26
|
+
export type OptionBannerType = {
|
|
27
|
+
label: string;
|
|
28
|
+
action: BannerAction;
|
|
29
|
+
value: string;
|
|
30
|
+
activeTool?: HEALTH_TOOL_NAME | RISK_SCREENER_NAME;
|
|
31
|
+
isLink?: boolean;
|
|
32
|
+
isRiskScreener: boolean;
|
|
33
|
+
props?: ToolBannerProps | BannerWithOptionsProps;
|
|
34
|
+
};
|
|
35
|
+
export type ThumbnailType = {
|
|
36
|
+
desktop: string;
|
|
37
|
+
mobile: string;
|
|
38
|
+
};
|
|
39
|
+
export type SubcribeHealthStatusType = {
|
|
40
|
+
value: string;
|
|
41
|
+
article: number;
|
|
42
|
+
source: 'discover' | 'together';
|
|
43
|
+
} | null;
|
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,
|
|
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-bf030cc6.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-d0c85d18.js";export{B as Button}from"./index-1fcd21d6.js";export{B as BtnChoice,D as Divider}from"./index-079b076a.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-054791eb.js";export{I as Input}from"./index-3205cae2.js";export{C as Container,I as Icon,L as Label}from"./index-8bf9f4b7.js";export{L as Logo}from"./index-9dc72ef6.js";export{e as AdBlock,A as AuthorBadge,B as BookingBtn,D as DatePicker,c as DoctorInfo,a as Dropdown,g as MAPPING_CATEGORY_PREMIUM_API_TYPE,f as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,P as PremiumNewsletterBanner,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-4fb56101.js";export{T as Text}from"./index-e34aff32.js";export{D as Drawer,R as RadioImageGroup}from"./index-a1ad59eb.js";export{C as CustomReferenceDot,I as ImageWrap}from"./index-88d1f21a.js";export{P as Popup}from"./index.styled-455cec24.js";export{M as Modal}from"./index-b0fb8848.js";export{P as PillCarousel}from"./index-afc34144.js";export{A as AddressInput}from"./index-06d78c13.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-41ddf2d8.js";import"styled-components";import"lodash/throttle";import"./useUniqueId-d57b41d6.js";import"./gAssets.js";import"./index-40286727.js";import"date-fns/locale";import"./Onboarding-485d3188.js";import"./isProduction-d1277896.js";import"./theme-de7144fa.js";import"./tslib.es6-d7ea3995.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"./translationsContext-ecfcfef5.js";import"string-format";import"@mantine/hooks";import"./useTranslations-3e087ef1.js";import"date-fns";import"lodash/debounce";import"./useCategory-93c085f5.js";import"./types-e5a752c4.js";import"./index-c08468c8.js";import"./index-7313938c.js";import"react-hook-form";import"./useHealthToolCache-4d6f85a4.js";import"./getDynamicHealthTool-4a9008e6.js";import"./core-4fa1377d.js";import"./normalizeLink-b09aeaef.js";import"./useOutsideClick-0953f9a5.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-10b0890f.js";import"uuid";import"./cookieHelper-f207d4d4.js";import"./constants-0f67755b.js";import"./index-bc29ba16.js";import"./useIsInit-e69680cc.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"slugify";import"./number-8eccff99.js";import"react-day-picker/DayPickerInput";import"react-dom";import"@hookform/resolvers/yup";import"./index.styled-68620508.js";import"./utils-5d3141da.js";import"dayjs/plugin/relativeTime";import"./paths-f06f4b77.js";import"./index-f41ca02d.js";import"react-contenteditable";import"@mantine/form";import"js-cookie";import"lodash/flatten";import"lodash/uniqBy";import"./useScrollbarSize-d202bf4e.js";
|
package/build/esm/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"date-fns/locale";import"./Onboarding-
|
|
1
|
+
import"date-fns/locale";import"./Onboarding-485d3188.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-40286727.js";export{i as isProduction}from"./isProduction-d1277896.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-d7ea3995.js";import{i as e}from"./isProduction-d1277896.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-fa44d5d8.js";import"./index-e29c43c9.js";import{i as o}from"./isProduction-e91fe1f8.js";export{t as Types}from"./types-3f93b402.js";import"date-fns/locale";import"./Onboarding-e74c6373.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-de7144fa.js";import"./index-40286727.js";import{i as o}from"./isProduction-d1277896.js";export{t as Types}from"./types-e5a752c4.js";import"date-fns/locale";import"./Onboarding-485d3188.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};
|