@hhgtech/hhg-components 1.27.159 → 1.27.161
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/README.md +60 -8
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care/index.d.ts +1 -0
- package/build/care.js +1 -1
- package/build/components/atoms/index.d.ts +0 -1
- package/build/components.js +1 -1
- package/build/{constants-75aadffb.js → constants-530a0ecf.js} +1 -1
- package/build/{constants-31450bc5.js → constants-729267f0.js} +1 -1
- package/build/constants.js +1 -1
- package/build/core-9c7a3bbf.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care/index.d.ts +1 -0
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/index.d.ts +0 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-531169d2.js → constants-4e77772b.js} +1 -1
- package/build/esm/{constants-b08eda13.js → constants-55308a13.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-8a9cbd2a.js → core-54fe1600.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-dc735430.js +1 -0
- package/build/esm/{getSocialList-bcc967f8.js → getSocialList-2c08720a.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-754ac192.js → index-13075213.js} +1 -1
- package/build/esm/index-2778bd37.js +1 -0
- package/build/esm/{index-fa41ceed.js → index-29398213.js} +1 -1
- package/build/esm/index-405d59b7.js +3533 -0
- package/build/esm/{index-97b10ada.js → index-47fa9ddc.js} +1 -1
- package/build/esm/{index-3112b8d2.js → index-502d83d4.js} +4 -4
- package/build/esm/{index-34a8408b.js → index-50a78483.js} +1 -1
- package/build/esm/{index-485d0140.js → index-68a6626d.js} +1 -1
- package/build/esm/index-6a6071e2.js +1 -0
- package/build/esm/{index-c2bcdb0a.js → index-882b7df3.js} +1 -1
- package/build/esm/{index-26c4b35f.js → index-9753cb26.js} +1 -1
- package/build/esm/{index-46237665.js → index-99818d57.js} +1 -1
- package/build/esm/{index-79917dbf.js → index-9fce504e.js} +1 -1
- package/build/esm/{index-5c537ab4.js → index-bb5d98ca.js} +1 -1
- package/build/esm/{index-31afc7f3.js → index-c7bc059b.js} +7 -12
- package/build/esm/index-c9986dbd.js +1 -0
- package/build/esm/{index-59ecbd4b.js → index-d0c43f4c.js} +2 -2
- package/build/esm/{index-5fd57ab2.js → index-f41ce453.js} +1 -1
- package/build/esm/index-fb2f22d1.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-44862bae.js → index.styled-9ca20e58.js} +1 -1
- package/build/esm/{index.styled-83088fd6.js → index.styled-e131ec51.js} +1 -1
- package/build/esm/{index.styles-5dfe0c2d.js → index.styles-0c995338.js} +45 -64
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-7d005a49.js → routing-1b159c4a.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-d3f309d9.js → types-6c860ae9.js} +28 -9
- package/build/esm/{types-988ffdb6.js → types-b2ec6aab.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-075626af.js → useCategory-c0a62126.js} +1 -1
- package/build/esm/useHealthToolCache-110c732c.js +1 -0
- package/build/esm/{useRafState-ceea7492.js → useRafState-e60b168e.js} +1 -1
- package/build/esm/{useTranslations-d23e5957.js → useTranslations-8e7471e9.js} +1 -1
- package/build/esm/{utils-fe965c4d.js → utils-33596d98.js} +1 -1
- package/build/esm/{utils-19423dc2.js → utils-923bed56.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-6139d439.js +1 -0
- package/build/{getSocialList-345abcd6.js → getSocialList-40644b05.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-6c3faa7e.js → index-2505994e.js} +1 -1
- package/build/index-309e60ab.js +1 -0
- package/build/index-40f68767.js +1 -0
- package/build/{index-7d8725b3.js → index-4a12c2a8.js} +1 -1
- package/build/{index-c6ad09b1.js → index-4d038478.js} +1 -1
- package/build/index-69fb3903.js +1 -0
- package/build/{index-b7a1b3cb.js → index-76e24325.js} +1 -1
- package/build/{index-b1e5dddc.js → index-7a8b14d4.js} +1 -1
- package/build/{index-db80ba0c.js → index-8232502b.js} +1 -1
- package/build/{index-b99ae263.js → index-9df81ed9.js} +1 -1
- package/build/{index-75d9ef50.js → index-a37938a5.js} +1 -1
- package/build/index-b5c78d4d.js +3533 -0
- package/build/index-c084e8e0.js +113 -0
- package/build/{index-4772af05.js → index-d31e5a7a.js} +1 -1
- package/build/{index-420aa9de.js → index-e2e5c0d6.js} +1 -1
- package/build/{index-55def889.js → index-f03402aa.js} +1 -1
- package/build/{index-8537defc.js → index-f2c966a4.js} +1 -1
- package/build/{index-6ad602c5.js → index-f51aa89f.js} +1 -1
- package/build/{index-48216d9e.js → index-fa36dcfc.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-01b8561c.js → index.styled-572bd083.js} +1 -1
- package/build/{index.styled-4bfae288.js → index.styled-fb6a5c77.js} +1 -1
- package/build/{index.styles-7b879f73.js → index.styles-99d90a47.js} +47 -66
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +5 -5
- package/build/pwg.js +2 -2
- package/build/{routing-b783336f.js → routing-2be6c855.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-e3fd1da1.js → types-f14e51e2.js} +1 -1
- package/build/{types-de3c0549.js → types-f71ec22e.js} +21 -2
- package/build/types.js +1 -1
- package/build/{useCategory-a6ac1b1f.js → useCategory-e02bbab5.js} +1 -1
- package/build/{useHealthToolCache-0d190518.js → useHealthToolCache-89d5706e.js} +1 -1
- package/build/{useRafState-18243d6c.js → useRafState-51c4ff7e.js} +1 -1
- package/build/{useTranslations-fec480df.js → useTranslations-d57cfa60.js} +1 -1
- package/build/utils-21b70e2b.js +1 -0
- package/build/{utils-a7094a26.js → utils-3f62b2db.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +4 -3
- package/build/core-b7f657e8.js +0 -1
- package/build/esm/getDynamicHealthTool-ebb00e98.js +0 -1
- package/build/esm/index-313f49bc.js +0 -1
- package/build/esm/index-6b5561fb.js +0 -1
- package/build/esm/index-6d051f86.js +0 -1
- package/build/esm/index-98346b8c.js +0 -1
- package/build/esm/index-d3087357.js +0 -3533
- package/build/esm/misc/callApi/helpers.d.ts +0 -4
- package/build/esm/misc/callApi/index.d.ts +0 -24
- package/build/esm/misc/callApi/instance.d.ts +0 -11
- package/build/esm/misc/callApi/interceptors.d.ts +0 -6
- package/build/esm/useHealthToolCache-5227ddbe.js +0 -1
- package/build/getDynamicHealthTool-24c62518.js +0 -1
- package/build/index-03a10f01.js +0 -1
- package/build/index-916461f6.js +0 -1
- package/build/index-9a389e50.js +0 -3533
- package/build/index-a42027c8.js +0 -118
- package/build/index-f6a8c60a.js +0 -1
- package/build/misc/callApi/helpers.d.ts +0 -4
- package/build/misc/callApi/index.d.ts +0 -24
- package/build/misc/callApi/instance.d.ts +0 -11
- package/build/misc/callApi/interceptors.d.ts +0 -6
- package/build/utils-e78a1e03.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-86fc92b6.js → BMI_BOYS.percentile.monthly-0fe75dc6.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-9c7691d5.js → BMI_BOYS.percentile.weekly-d32a6320.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-e2e09c55.js → BMI_BOYS.percentile.yearly-4783dc1f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-71eef063.js → BMI_BOYS.zscore.monthly-44c85e86.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-35341733.js → BMI_BOYS.zscore.weekly-ba69577e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-733eaec2.js → BMI_BOYS.zscore.yearly-4b4836cc.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-75d28c94.js → BMI_GIRLS.percentile.monthly-6140cd94.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-7e151197.js → BMI_GIRLS.percentile.weekly-fe6dfa19.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-4a5e10be.js → BMI_GIRLS.percentile.yearly-6286e1d1.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-8b8dd2f6.js → BMI_GIRLS.zscore.monthly-aa81719b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-b353db3c.js → BMI_GIRLS.zscore.weekly-c8c0fcc0.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-4a9ebd64.js → BMI_GIRLS.zscore.yearly-983def3f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-e229b6f6.js → HEAD CIRCUM_BOYS.percentile.monthly-7c1c8703.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-d3634bd9.js → HEAD CIRCUM_BOYS.percentile.weekly-0b870250.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-82f68209.js → HEAD CIRCUM_BOYS.percentile.yearly-1ccbc81d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-3996efc6.js → HEAD CIRCUM_BOYS.zscore.monthly-f640d4d0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-be4ebfbd.js → HEAD CIRCUM_BOYS.zscore.weekly-5482f634.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-e72242b9.js → HEAD CIRCUM_BOYS.zscore.yearly-e29b3fd9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-10e7794e.js → HEAD CIRCUM_GIRLS.percentile.monthly-287252fa.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-da0137ff.js → HEAD CIRCUM_GIRLS.percentile.weekly-2ea52420.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c9612d3b.js → HEAD CIRCUM_GIRLS.percentile.yearly-d5265be0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-3e5cb09b.js → HEAD CIRCUM_GIRLS.zscore.monthly-64a05054.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-9ccd7ef0.js → HEAD CIRCUM_GIRLS.zscore.weekly-5dab5bf0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5e552c88.js → HEAD CIRCUM_GIRLS.zscore.yearly-8dc20701.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-393957a1.js → HEIGHT_BOYS.percentile.monthly-b783cf1a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-daccba5b.js → HEIGHT_BOYS.percentile.weekly-ec990b80.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-f23d36d8.js → HEIGHT_BOYS.percentile.yearly-614a1951.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-d2062b80.js → HEIGHT_BOYS.zscore.monthly-495a0b9b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-2c68b327.js → HEIGHT_BOYS.zscore.weekly-02c6ce54.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-2f6bb842.js → HEIGHT_BOYS.zscore.yearly-3ae47f90.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-47c1a524.js → HEIGHT_GIRLS.percentile.monthly-bef2e359.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-e3e274fd.js → HEIGHT_GIRLS.percentile.weekly-b56f489e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-aea4d47d.js → HEIGHT_GIRLS.percentile.yearly-fd44e47b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-1108062c.js → HEIGHT_GIRLS.zscore.monthly-6326e54b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-867bf1d8.js → HEIGHT_GIRLS.zscore.weekly-7a825114.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-6c430c89.js → HEIGHT_GIRLS.zscore.yearly-407d276d.js} +0 -0
- /package/build/{Onboarding-7fe4d4db.js → Onboarding-06a9b342.js} +0 -0
- /package/build/{Visible-89723a09.js → Visible-e848ad3b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-d8c6b2bb.js → WEIGHT_BOYS.percentile.monthly-a5f13251.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-add05ea0.js → WEIGHT_BOYS.percentile.weekly-891ce70e.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-9b35d955.js → WEIGHT_BOYS.percentile.yearly-0c8b23da.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-2ccfe61f.js → WEIGHT_BOYS.zscore.monthly-26f7b120.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-f6b0aad9.js → WEIGHT_BOYS.zscore.weekly-6362ab5d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-b3f6f2fe.js → WEIGHT_BOYS.zscore.yearly-1bb66ec7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1caa8605.js → WEIGHT_GIRLS.percentile.monthly-18e18c37.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-6e0fce65.js → WEIGHT_GIRLS.percentile.weekly-f357be7b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-ab90c630.js → WEIGHT_GIRLS.percentile.yearly-baec8082.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-a90d8080.js → WEIGHT_GIRLS.zscore.monthly-b3094d86.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-be79d16b.js → WEIGHT_GIRLS.zscore.weekly-5a94465d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-3b28ae66.js → WEIGHT_GIRLS.zscore.yearly-e0a3c64a.js} +0 -0
- /package/build/{components → care/components}/atoms/textDivider/index.d.ts +0 -0
- /package/build/{cookieHelper-851ec602.js → cookieHelper-5109a4f2.js} +0 -0
- /package/build/{dataTransform-86066740.js → dataTransform-b61a062d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-12cf3653.js → BMI_BOYS.percentile.monthly-a923fb18.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-cd5c4f2a.js → BMI_BOYS.percentile.weekly-e23d100f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-f7cb8621.js → BMI_BOYS.percentile.yearly-9e23931d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-3f321a88.js → BMI_BOYS.zscore.monthly-9ce5f05c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-b1ccb020.js → BMI_BOYS.zscore.weekly-d570818b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-e1442373.js → BMI_BOYS.zscore.yearly-7684e153.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-3e3dd1a0.js → BMI_GIRLS.percentile.monthly-b8ca45dd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-72195163.js → BMI_GIRLS.percentile.weekly-451e30f2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-b75f3aa1.js → BMI_GIRLS.percentile.yearly-96f009cc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-448c9a07.js → BMI_GIRLS.zscore.monthly-ec53a919.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-f1184bc5.js → BMI_GIRLS.zscore.weekly-01f847e4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-3b0c0841.js → BMI_GIRLS.zscore.yearly-40b42515.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-adae309b.js → HEAD CIRCUM_BOYS.percentile.monthly-cc05ce46.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-4abc16d0.js → HEAD CIRCUM_BOYS.percentile.weekly-184b46b0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-2b27de3c.js → HEAD CIRCUM_BOYS.percentile.yearly-3fa81fa5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-928048d0.js → HEAD CIRCUM_BOYS.zscore.monthly-2b936c65.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-ee08b060.js → HEAD CIRCUM_BOYS.zscore.weekly-9819fbfe.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e2ddf196.js → HEAD CIRCUM_BOYS.zscore.yearly-8775cb4d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b97261c0.js → HEAD CIRCUM_GIRLS.percentile.monthly-a79e2170.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-1e7b10b0.js → HEAD CIRCUM_GIRLS.percentile.weekly-8abdec4f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-001aa75b.js → HEAD CIRCUM_GIRLS.percentile.yearly-31bd302c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fc98dcac.js → HEAD CIRCUM_GIRLS.zscore.monthly-d0c8a30b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-acb2c226.js → HEAD CIRCUM_GIRLS.zscore.weekly-78546079.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-842a2867.js → HEAD CIRCUM_GIRLS.zscore.yearly-8451b740.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-025c8110.js → HEIGHT_BOYS.percentile.monthly-9104bf98.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-598512e3.js → HEIGHT_BOYS.percentile.weekly-c4e8cdbb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-2b82a8c8.js → HEIGHT_BOYS.percentile.yearly-fbba72e6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e0c2db06.js → HEIGHT_BOYS.zscore.monthly-f8bd1d11.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f38a3fab.js → HEIGHT_BOYS.zscore.weekly-843af1e6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-510e0fc3.js → HEIGHT_BOYS.zscore.yearly-6e022214.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ebd61dd4.js → HEIGHT_GIRLS.percentile.monthly-832c4534.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-70651097.js → HEIGHT_GIRLS.percentile.weekly-f8b45685.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-e78a2253.js → HEIGHT_GIRLS.percentile.yearly-b2c3e937.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-293036dc.js → HEIGHT_GIRLS.zscore.monthly-bf6a523e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3aefb675.js → HEIGHT_GIRLS.zscore.weekly-aec1bc6d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-b4f1d366.js → HEIGHT_GIRLS.zscore.yearly-a2085013.js} +0 -0
- /package/build/esm/{Onboarding-a5085557.js → Onboarding-5af7aa41.js} +0 -0
- /package/build/esm/{Visible-244eee23.js → Visible-6fd031d2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b2b0aad1.js → WEIGHT_BOYS.percentile.monthly-83d2c114.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-44824457.js → WEIGHT_BOYS.percentile.weekly-e0133883.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b2d29cea.js → WEIGHT_BOYS.percentile.yearly-734253da.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-9033a5a4.js → WEIGHT_BOYS.zscore.monthly-b6ac5265.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b893d59b.js → WEIGHT_BOYS.zscore.weekly-f166956c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-82c340a3.js → WEIGHT_BOYS.zscore.yearly-19007035.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-26e4a0c2.js → WEIGHT_GIRLS.percentile.monthly-903cb147.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-18f825e1.js → WEIGHT_GIRLS.percentile.weekly-e141924c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-19c9e245.js → WEIGHT_GIRLS.percentile.yearly-61057460.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-d6cd03de.js → WEIGHT_GIRLS.zscore.monthly-beb59acc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-b5887d90.js → WEIGHT_GIRLS.zscore.weekly-d8e3e406.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a86cf86b.js → WEIGHT_GIRLS.zscore.yearly-8a3bb4b8.js} +0 -0
- /package/build/esm/{components → care/components}/atoms/textDivider/index.d.ts +0 -0
- /package/build/esm/{cookieHelper-87efe0d2.js → cookieHelper-0382f1df.js} +0 -0
- /package/build/esm/{dataTransform-be97b21f.js → dataTransform-e257cd3d.js} +0 -0
- /package/build/esm/{index-d9fbb64d.js → index-47ab4704.js} +0 -0
- /package/build/esm/{index-dde18580.js → index-5e2209df.js} +0 -0
- /package/build/esm/{index-6798950d.js → index-ad39e5b2.js} +0 -0
- /package/build/esm/{index-2a0d9999.js → index-f8c1d9d6.js} +0 -0
- /package/build/esm/{isProduction-c4e701af.js → isProduction-1597e8ed.js} +0 -0
- /package/build/esm/{localizeNumberFormat-33083aa3.js → localizeNumberFormat-face9bb0.js} +0 -0
- /package/build/esm/{normalizeLink-1ac7cfcc.js → normalizeLink-5d28acbf.js} +0 -0
- /package/build/esm/{number-9b135fc2.js → number-a402108e.js} +0 -0
- /package/build/esm/{paths-00f55271.js → paths-e83a7594.js} +0 -0
- /package/build/esm/{screenSizeContext-e2052d31.js → screenSizeContext-662f92d9.js} +0 -0
- /package/build/esm/{theme-fd087af5.js → theme-fff94356.js} +0 -0
- /package/build/esm/{translationsContext-959b75ab.js → translationsContext-3e91995c.js} +0 -0
- /package/build/esm/{tslib.es6-15a12e4d.js → tslib.es6-d8ba5e0e.js} +0 -0
- /package/build/esm/{types-4cea16bd.js → types-5a01ab34.js} +0 -0
- /package/build/esm/{useIsInit-001e7017.js → useIsInit-e13c4b5b.js} +0 -0
- /package/build/esm/{useOutsideClick-dd2aced6.js → useOutsideClick-554f17ac.js} +0 -0
- /package/build/esm/{useScrollbarSize-83b7328b.js → useScrollbarSize-9c6ef5a1.js} +0 -0
- /package/build/{index-3ddaf646.js → index-11991307.js} +0 -0
- /package/build/{index-1b6775f7.js → index-3d525ada.js} +0 -0
- /package/build/{index-b9ebc729.js → index-7c081df1.js} +0 -0
- /package/build/{index-90515a25.js → index-de379d7d.js} +0 -0
- /package/build/{isProduction-93520986.js → isProduction-19fdda9c.js} +0 -0
- /package/build/{localizeNumberFormat-fe02153f.js → localizeNumberFormat-53cbaaf1.js} +0 -0
- /package/build/{normalizeLink-8e0bf6f7.js → normalizeLink-c3885bca.js} +0 -0
- /package/build/{number-96da5bf3.js → number-dc4d0b00.js} +0 -0
- /package/build/{paths-1394796b.js → paths-79805462.js} +0 -0
- /package/build/{screenSizeContext-fb7c716d.js → screenSizeContext-eb66c071.js} +0 -0
- /package/build/{theme-d7f6b2e4.js → theme-6b7baadc.js} +0 -0
- /package/build/{translationsContext-cb208449.js → translationsContext-20478eec.js} +0 -0
- /package/build/{tslib.es6-4b9d0a36.js → tslib.es6-15853eea.js} +0 -0
- /package/build/{types-b8882b86.js → types-2a73c8cf.js} +0 -0
- /package/build/{useIsInit-887a3738.js → useIsInit-af1d4b28.js} +0 -0
- /package/build/{useOutsideClick-86f33f79.js → useOutsideClick-4b5a27d8.js} +0 -0
- /package/build/{useScrollbarSize-6c49566b.js → useScrollbarSize-55ae5aec.js} +0 -0
package/README.md
CHANGED
|
@@ -1,17 +1,69 @@
|
|
|
1
1
|
# HHG Components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
HHG Components is a collection of React components developed by Hello Health Group (HHG) for internal use. These components are designed to streamline the development of web applications in the healthcare domain, offering a range of UI elements tailored to meet the specific needs of healthcare-related projects.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://badge.fury.io/js/@hhgtech%2Fhhg-components)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
## Installation
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
You can install HHG Components via npm:
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
```bash
|
|
13
|
+
npm install @hhgtech/hhg-components
|
|
14
|
+
```
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
## Usage
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
Import components from `@hhgtech/hhg-components` and use them in your React applications. Here's an example:
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
```jsx
|
|
21
|
+
import React from 'react'
|
|
22
|
+
import { Button } from '@hhgtech/hhg-components'
|
|
23
|
+
|
|
24
|
+
const MyComponent = () => {
|
|
25
|
+
return (
|
|
26
|
+
<div>
|
|
27
|
+
<h2>Welcome to Hello Health Group</h2>
|
|
28
|
+
<Button color="primary">Learn More</Button>
|
|
29
|
+
</div>
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default MyComponent
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Features
|
|
37
|
+
|
|
38
|
+
- Customizable React components for healthcare applications.
|
|
39
|
+
- Easy integration with existing React projects.
|
|
40
|
+
- Built-in accessibility features to ensure compliance with industry standards.
|
|
41
|
+
|
|
42
|
+
<!-- ## Getting Started
|
|
43
|
+
|
|
44
|
+
For detailed usage instructions and examples, check out the [documentation](https://github.com/your-organization/hhg-components/wiki). -->
|
|
45
|
+
|
|
46
|
+
## About Hello Health Group
|
|
47
|
+
|
|
48
|
+
Hello Health Group (HHG) is a leading provider of healthcare solutions, offering a range of services across various countries:
|
|
49
|
+
|
|
50
|
+
- [Hello Health Group Website](https://hellohealthgroup.com/)
|
|
51
|
+
- [Vietnam](https://hellobacsi.com/)
|
|
52
|
+
- [Vietnam Woman Health](https://www.marrybaby.vn/)
|
|
53
|
+
- [Indonesia](https://hellosehat.com/)
|
|
54
|
+
- [Malaysia](https://hellodoktor.com/)
|
|
55
|
+
- [Cambodia](https://hellokrupet.com/)
|
|
56
|
+
- [Philippines English](https://hellodoctor.com.ph/)
|
|
57
|
+
- [Philippines Tatalog](https://hellodoctor.com.ph/fil/)
|
|
58
|
+
- [Thailand](https://hellokhunmor.com/)
|
|
59
|
+
- [Myanmar](https://hellosayarwon.com/)
|
|
60
|
+
- [Taiwan](https://helloyishi.com.tw/)
|
|
61
|
+
- [India](https://helloswasthya.com/)
|
|
62
|
+
|
|
63
|
+
## Stay Connected
|
|
64
|
+
|
|
65
|
+
Follow us on [Facebook](https://www.facebook.com/hellobacsi/) for updates and announcements. Join our community on [LinkedIn](https://www.linkedin.com/company/hellobacsi/?trk=similar-pages&originalSubdomain=vn) to connect with other developers and share your feedback.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
HHG Components is licensed under the [MIT License](LICENSE).
|
package/build/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-f2c966a4.js"),t=require("react"),r=require("./Onboarding-06a9b342.js"),a=require("./theme-6b7baadc.js"),l=require("./index-76e24325.js"),o=require("styled-components"),n=require("./index-f51aa89f.js"),i=require("./index-2505994e.js"),d=require("./screenSizeContext-eb66c071.js"),s=require("dayjs"),c=require("./useTranslations-d57cfa60.js");require("lodash/debounce"),require("./isProduction-19fdda9c.js"),require("./index-fa36dcfc.js"),require("./useCategory-e02bbab5.js");var u=require("./localizeNumberFormat-53cbaaf1.js"),C=require("./index.styles-99d90a47.js"),h=require("./tslib.es6-15853eea.js");require("@mantine/core"),require("./index-c084e8e0.js"),require("./gAssets.js"),require("./constants-729267f0.js"),require("./utils-3f62b2db.js");var m=require("./index-40f68767.js"),f=require("./index-de379d7d.js"),y=require("./useOutsideClick-4b5a27d8.js");require("@mantine/dates"),require("@mantine/hooks");var p=require("./index-8232502b.js"),b=require("recharts"),g=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-55ae5aec.js"),require("react-dom"),require("./index.styled-fb6a5c77.js"),require("lodash/throttle"),require("./translationsContext-20478eec.js"),require("string-format"),require("date-fns/locale"),require("react-keyed-flatten-children"),require("./cookieHelper-5109a4f2.js"),require("slugify"),require("@mantine/carousel"),require("classnames");var E=x(t),w=x(o),v=x(s),B=x(g);const L=w.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`,K=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:d}=c.useTranslations(),s="marryBaby"===n;return E.default.createElement(U,{onClick:()=>t("new"),"data-is-mb":s,"data-isActive":s&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(i.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(l.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(p.Input,{name:"name",value:r,size:"md",placeholder:d("chooseBaby.placeholder"),type:"text",onChange:o}))},X={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-
|
|
384
|
+
`,K=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:d}=c.useTranslations(),s="marryBaby"===n;return E.default.createElement(U,{onClick:()=>t("new"),"data-is-mb":s,"data-isActive":s&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(i.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(l.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(p.Input,{name:"name",value:r,size:"md",placeholder:d("chooseBaby.placeholder"),type:"text",onChange:o}))},X={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-ec990b80.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-b783cf1a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-614a1951.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-891ce70e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-a5f13251.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-0c8b23da.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-0b870250.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-7c1c8703.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-1ccbc81d.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-d32a6320.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-0fe75dc6.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-4783dc1f.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b56f489e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-bef2e359.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-fd44e47b.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-f357be7b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-18e18c37.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-baec8082.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-2ea52420.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-287252fa.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-d5265be0.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-fe6dfa19.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-6140cd94.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-6286e1d1.js")}))}}},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-02c6ce54.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-495a0b9b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-3ae47f90.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-6362ab5d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-26f7b120.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-1bb66ec7.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-5482f634.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-f640d4d0.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-e29b3fd9.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-ba69577e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-44c85e86.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-4b4836cc.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7a825114.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-6326e54b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-407d276d.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-5a94465d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-b3094d86.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-e0a3c64a.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-5dab5bf0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-64a05054.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-8dc20701.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-c8c0fcc0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-aa81719b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-983def3f.js")}))}}},Q=(e,t,a,l)=>l===r.LOCALE.Indonesia?J[e][t][a]():X[e][t][a](),ee=(e,t)=>{const[r,a]=B.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},te=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),re=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ae=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),oe=w.default.div`
|
|
385
385
|
position: relative;
|
|
386
386
|
.custom-chart-label {
|
|
387
387
|
display: flex;
|
package/build/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-9c7a3bbf.js");require("./tslib.es6-15853eea.js"),require("./isProduction-19fdda9c.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
|
package/build/care/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { BookingSearchBar, Props as BookingSearchBarProps, } from "./components/organisms/bookingSearchBar";
|
|
2
2
|
export { BookingSearchBarV2, Props as BookingSearchBarPropsV2, } from "./components/organisms/bookingSearchBarV2";
|
|
3
|
+
export { TextDivider } from "./components/atoms/textDivider";
|
|
3
4
|
export * as CareConstants from "./interfaces/constants";
|
|
4
5
|
export * as CareTypes from "./interfaces/types";
|
package/build/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-f71ec22e.js"),r=require("./constants-729267f0.js");require("./tslib.es6-15853eea.js"),require("react"),require("./useTranslations-d57cfa60.js"),require("./translationsContext-20478eec.js"),require("string-format"),require("lodash/debounce"),require("./index-8232502b.js"),require("@mantine/core"),require("styled-components"),require("./index-76e24325.js"),require("./theme-6b7baadc.js"),require("dayjs"),require("./screenSizeContext-eb66c071.js"),require("lodash/throttle"),require("./index-fa36dcfc.js"),require("date-fns/locale"),require("./Onboarding-06a9b342.js"),require("./isProduction-19fdda9c.js"),require("./gAssets.js"),require("lodash/shuffle"),require("./useOutsideClick-4b5a27d8.js"),require("react-loading-skeleton"),require("./paths-79805462.js"),require("./cookieHelper-5109a4f2.js"),require("./index-11991307.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.TextDivider=e.TextDivider,exports.CareConstants=r.constants;
|
|
@@ -22,7 +22,6 @@ export { Toggle } from "./toggle";
|
|
|
22
22
|
export { TextArea } from "./textArea";
|
|
23
23
|
export { Container } from "./container";
|
|
24
24
|
export { Checkbox } from "./checkbox";
|
|
25
|
-
export { TextDivider } from "./textDivider";
|
|
26
25
|
export { RateStars } from "./rateStars";
|
|
27
26
|
export { Icon } from "./icons";
|
|
28
27
|
export type { IconProps } from "./icons";
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-b5c78d4d.js"),r=require("./index-9df81ed9.js"),o=require("./index-f51aa89f.js"),t=require("./index.styled-572bd083.js"),i=require("./index-c084e8e0.js"),a=require("./index.styles-99d90a47.js"),s=require("./index-8232502b.js"),n=require("./constants-729267f0.js"),d=require("./index-d31e5a7a.js"),u=require("./index-40f68767.js"),p=require("./index-11991307.js"),x=require("./index-76e24325.js"),c=require("./index-f2c966a4.js"),l=require("./index-de379d7d.js"),q=require("./utils-3f62b2db.js"),g=require("./index-a37938a5.js"),b=require("./index-f03402aa.js"),C=require("./index-e2e5c0d6.js"),j=require("./footer.js");require("react"),require("./screenSizeContext-eb66c071.js"),require("styled-components"),require("lodash/throttle"),require("./index-3d525ada.js"),require("@mantine/core"),require("./useTranslations-d57cfa60.js"),require("./translationsContext-20478eec.js"),require("string-format"),require("lodash/debounce"),require("./isProduction-19fdda9c.js"),require("./index-fa36dcfc.js"),require("date-fns/locale"),require("./Onboarding-06a9b342.js"),require("./useCategory-e02bbab5.js"),require("./gAssets.js"),require("./theme-6b7baadc.js"),require("./tslib.es6-15853eea.js"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("@mantine/hooks"),require("html-react-parser"),require("date-fns"),require("./index.styled-fb6a5c77.js"),require("./types-2a73c8cf.js"),require("./index-7a8b14d4.js"),require("./index-2505994e.js"),require("react-hook-form"),require("./useHealthToolCache-89d5706e.js"),require("./getDynamicHealthTool-6139d439.js"),require("./core-9c7a3bbf.js"),require("./normalizeLink-c3885bca.js"),require("./routing-2be6c855.js"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useOutsideClick-4b5a27d8.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-40644b05.js"),require("uuid"),require("@mantine/form"),require("./index-4d038478.js"),require("js-cookie"),require("lodash/flatten"),require("react-contenteditable"),require("react-dom"),require("lodash/uniqBy"),require("./constants-530a0ecf.js"),require("./cookieHelper-5109a4f2.js"),require("./index-69fb3903.js"),require("./useIsInit-af1d4b28.js"),require("dayjs/plugin/relativeTime"),require("./number-dc4d0b00.js"),require("./paths-79805462.js"),require("@mantine/carousel"),require("classnames"),require("react-keyed-flatten-children"),require("slugify"),require("./useScrollbarSize-55ae5aec.js"),require("./utils-21b70e2b.js"),exports.AdBlock=e.AdBlock,exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DatePicker=e.DatePicker,exports.DateRangePicker=e.DateRangePicker,exports.DoctorInfo=e.DoctorInfo,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Loading=e.Loading,exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=e.MAPPING_CATEGORY_PREMIUM_API_TYPE,exports.MAPPING_CATEGORY_PREMIUM_TYPE=e.MAPPING_CATEGORY_PREMIUM_TYPE,exports.MobileBottomNavigation=e.MobileBottomNavigation,exports.MobileBottomNavigationIcon=e.MobileBottomNavigationIcon,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.ProgressBar=e.ProgressBar,exports.Radio=e.Radio,exports.RadioGroup=e.RadioGroup,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyOrPremiumBanner=e.SurveyOrPremiumBanner,exports.SurveyQuestionCard=e.SurveyQuestionCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.ToolsBannerCard=e.ToolsBannerCard,exports.Avatar=r.Avatar,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.AuthorBadge=t.AuthorBadge,exports.BookingBtn=t.BookingBtn,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Dropdown=t.Dropdown,exports.Flag=i.Flag,exports.ImageWrap=i.ImageWrap,exports.Heading=a.Heading,exports.PureInput=a.PureInput,exports.StepRenderer=a.StepRenderer,exports.StepRendererContext=a.StepRendererContext,exports.TextArea=a.TextArea,exports.Input=s.Input,exports.Label=n.Label,exports.Logo=d.Logo,exports.Text=u.Text,exports.Container=p.Container,exports.Icon=x.Icon,exports.Drawer=c.Drawer,exports.Modal=c.Modal,exports.RadioImageGroup=c.RadioImageGroup,exports.CustomReferenceDot=l.CustomReferenceDot,exports.LogoIcon=q.LogoIcon,exports.Popup=g.Popup,exports.PillCarousel=b.PillCarousel,exports.AddressInput=C.AddressInput,exports.Footer=j.Footer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./index-48216d9e.js");var e=require("./isProduction-93520986.js");const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"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"},h=o?"http://localhost:3001":e.isProduction?`https://${a[t]}`:`https://discover.${a[t]}`,c=e.isProduction?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=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 O={"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,l=[])=>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:l}]}),BRAND:(e="",o=0,l=[])=>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:l}]}),BRAND_DETAIL:(e="",o=0,l)=>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!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>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!=l?l:{}}]})}};var _=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,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:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:O});exports.DISCOVER_URL_FE=h,exports.constants=_;
|
|
1
|
+
"use strict";require("./index-fa36dcfc.js");var e=require("./isProduction-19fdda9c.js");const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"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"},h=o?"http://localhost:3001":e.isProduction?`https://${a[t]}`:`https://discover.${a[t]}`,c=e.isProduction?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=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 O={"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,l=[])=>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:l}]}),BRAND:(e="",o=0,l=[])=>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:l}]}),BRAND_DETAIL:(e="",o=0,l)=>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!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>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!=l?l:{}}]})}};var _=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,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:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:O});exports.DISCOVER_URL_FE=h,exports.constants=_;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./screenSizeContext-
|
|
1
|
+
"use strict";var e=require("./screenSizeContext-eb66c071.js"),i=require("styled-components"),t=require("react");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(i),o=a(t);const r=s.default.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
package/build/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-06a9b342.js");var E=require("./index-fa36dcfc.js"),e=require("./isProduction-19fdda9c.js");exports.BEARER_TOKEN_COOKIE=E.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=E.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=E.CARE_LOCALES,exports.CDN_ADDRESS=E.CDN_ADDRESS,exports.DATE_FNS_LOCALE=E.DATE_FNS_LOCALE,exports.ECOM_LOCALES=E.ECOM_LOCALES,exports.FAVICONS=E.FAVICONS,exports.GA_TOKEN_COOKIE=E.GA_TOKEN_COOKIE,exports.ISO_FORMAT=E.ISO_FORMAT,exports.LOCALE_SPECS=E.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return E.QUERY_HEALTH_TOOL}}),Object.defineProperty(exports,"RISK_SCREENER_NAME",{enumerable:!0,get:function(){return E.RISK_SCREENER_NAME}}),exports.RISK_SCREENER_SLUG=E.RISK_SCREENER_SLUG,exports.STATIC_PAGES=E.STATIC_PAGES,exports.TOGETHER_LOCALES=E.TOGETHER_LOCALES,exports.UP_BASEPATH=E.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=E.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=E.domainLocales,exports.siteHost=E.siteHost,exports.siteOptions=E.siteOptions,exports.isProduction=e.isProduction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./tslib.es6-15853eea.js"),e=require("./isProduction-19fdda9c.js");const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},r=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}};exports.getCachedItem=i,exports.getDataWithCache=(e,a,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(a){const t=yield a();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
|
package/build/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./theme-d7f6b2e4.js"),e=require("./constants-75aadffb.js"),o=require("./types-b8882b86.js");require("./index-48216d9e.js"),require("date-fns/locale"),require("./Onboarding-7fe4d4db.js"),require("./isProduction-93520986.js");var i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null});function a(t){return null!=t}const r={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,e)=>{const o="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(e||"vi-VN").format(o)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(e,o,i){var l,a,n;const d=i?i+"/"+e.slug:e.slug,u=(null===(a=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===a?void 0:a.call(l,(t=>r.formatCategory(t,e.id,d))))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:d||"",children:u,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(n=e.products)||void 0===n?void 0:n.map(r.formatProduct))||[]}},formatFooterInfo:t=>{var e,o,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(o=null===(e=null==t?void 0:t.branch)||void 0===e?void 0:e.branch)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var e,o;return{menu_title:t.menu_title,items:null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var e,o,i,l,a,n;return{hotSearchKeywords:(null===(o=null===(e=null==t?void 0:t.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==t?void 0:t.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(t=>r.formatCategory(t))))||[],footer:r.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var e,o,i,l;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&r.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(o=null===(e=t.product_promotions)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProductPromotion).filter(a))||[],categories:(null===(l=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(t=>r.formatCategory(t))).filter(a))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var e,o;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(o=(e=t.post_data.categories).map)||void 0===o?void 0:o.call(e,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var e,o,i,l;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatHomePage:t=>{var e,o,i,l,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(o=(e=t.brands).map)||void 0===o?void 0:o.call(e,r.formatBrand).filter(a):[],hotDeals:t.hot_deals?null===(l=(i=t.hot_deals).map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,r.formatBanner).filter(a):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,r.formatBanner).filter(a):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,r.formatBanner).filter(a):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,r.formatBlogPost).filter(a):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>r.formatCategory(t))).filter(a):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>r.formatCategory(t))).filter(a):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>r.formatPromotion(t))).filter(a):[]}:null},formatCategoryPage:function(t){var e,o,i,l;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatBrandPage:function(t){return t?r.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var e,o,i,l,n,d,u,s;return t?Object.assign(Object.assign({},r.formatProduct(t)),{relatedProducts:(null===(o=null===(e=t.related_products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProduct).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,r.formatPromotion).filter(a))||[]}):null},formatProductReview:t=>{var e,o;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(o=null===(e=t.rating_votes)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,e)=>{var o;return(null==t?void 0:t.length)&&(null===(o=null==t?void 0:t.find((t=>t.attribute_code===e)))||void 0===o?void 0:o.value)||""},formatAddress:t=>{var e,o,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(e=t.region)||void 0===e?void 0:e.region_id,label:null===(o=t.region)||void 0===o?void 0:o.region}||null,district:{value:r.formatCustomAttributes(t.custom_attributes,"district_id"),label:r.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:r.formatCustomAttributes(t.custom_attributes,"ward_id"),label:r.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var e,o;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(o=null===(e=null==t?void 0:t.products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var e,o,i,l,a;return t?{pending:Number(null===(e=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===e?void 0:e.amount)||0,processing:Number(null===(o=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===o?void 0:o.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var e,o,i,l,a,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(e=t.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(o=t.extension_attributes)||void 0===o?void 0:o.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(a=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,r.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var e;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(e=t.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var e,o,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(o=null===(e=t.addresses)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var e,o,i,l,a,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartItem))||void 0===i?void 0:i.sort(((t,e)=>Number(null==e?void 0:e.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?r.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?r.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(a=t.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var e,o,i;return{shipping:{address:t.shipping.address?r.formatCartAddress(t.shipping.address):null,method:(null===(e=t.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(o=t.items).map)||void 0===i?void 0:i.call(o,r.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var e,o,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var e;return t?{paymentMethods:r.formatPaymentMethod(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:r.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:r.formatOrder(t.order_info)}:null,formatCoupons:t=>{var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var e;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]};var n=Object.freeze({__proto__:null,dataFormatter:r});exports.Constants=e.constants,exports.Types=o.types,exports.ApiTypes=i,exports.DataFormatter=n,exports.DataTypes=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./theme-6b7baadc.js"),e=require("./constants-530a0ecf.js"),o=require("./types-2a73c8cf.js");require("./index-fa36dcfc.js"),require("date-fns/locale"),require("./Onboarding-06a9b342.js"),require("./isProduction-19fdda9c.js");var i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null});function a(t){return null!=t}const r={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,e)=>{const o="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(e||"vi-VN").format(o)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(e,o,i){var l,a,n;const d=i?i+"/"+e.slug:e.slug,u=(null===(a=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===a?void 0:a.call(l,(t=>r.formatCategory(t,e.id,d))))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:d||"",children:u,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(n=e.products)||void 0===n?void 0:n.map(r.formatProduct))||[]}},formatFooterInfo:t=>{var e,o,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(o=null===(e=null==t?void 0:t.branch)||void 0===e?void 0:e.branch)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var e,o;return{menu_title:t.menu_title,items:null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var e,o,i,l,a,n;return{hotSearchKeywords:(null===(o=null===(e=null==t?void 0:t.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==t?void 0:t.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(t=>r.formatCategory(t))))||[],footer:r.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var e,o,i,l;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&r.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(o=null===(e=t.product_promotions)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProductPromotion).filter(a))||[],categories:(null===(l=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(t=>r.formatCategory(t))).filter(a))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var e,o;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(o=(e=t.post_data.categories).map)||void 0===o?void 0:o.call(e,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var e,o,i,l;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatHomePage:t=>{var e,o,i,l,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(o=(e=t.brands).map)||void 0===o?void 0:o.call(e,r.formatBrand).filter(a):[],hotDeals:t.hot_deals?null===(l=(i=t.hot_deals).map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,r.formatBanner).filter(a):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,r.formatBanner).filter(a):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,r.formatBanner).filter(a):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,r.formatBlogPost).filter(a):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>r.formatCategory(t))).filter(a):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>r.formatCategory(t))).filter(a):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>r.formatPromotion(t))).filter(a):[]}:null},formatCategoryPage:function(t){var e,o,i,l;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatBrandPage:function(t){return t?r.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var e,o,i,l,n,d,u,s;return t?Object.assign(Object.assign({},r.formatProduct(t)),{relatedProducts:(null===(o=null===(e=t.related_products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProduct).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,r.formatPromotion).filter(a))||[]}):null},formatProductReview:t=>{var e,o;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(o=null===(e=t.rating_votes)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,e)=>{var o;return(null==t?void 0:t.length)&&(null===(o=null==t?void 0:t.find((t=>t.attribute_code===e)))||void 0===o?void 0:o.value)||""},formatAddress:t=>{var e,o,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(e=t.region)||void 0===e?void 0:e.region_id,label:null===(o=t.region)||void 0===o?void 0:o.region}||null,district:{value:r.formatCustomAttributes(t.custom_attributes,"district_id"),label:r.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:r.formatCustomAttributes(t.custom_attributes,"ward_id"),label:r.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var e,o;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(o=null===(e=null==t?void 0:t.products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var e,o,i,l,a;return t?{pending:Number(null===(e=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===e?void 0:e.amount)||0,processing:Number(null===(o=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===o?void 0:o.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var e,o,i,l,a,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(e=t.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(o=t.extension_attributes)||void 0===o?void 0:o.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(a=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,r.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var e;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(e=t.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var e,o,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(o=null===(e=t.addresses)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var e,o,i,l,a,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartItem))||void 0===i?void 0:i.sort(((t,e)=>Number(null==e?void 0:e.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?r.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?r.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(a=t.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var e,o,i;return{shipping:{address:t.shipping.address?r.formatCartAddress(t.shipping.address):null,method:(null===(e=t.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(o=t.items).map)||void 0===i?void 0:i.call(o,r.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var e,o,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var e;return t?{paymentMethods:r.formatPaymentMethod(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:r.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:r.formatOrder(t.order_info)}:null,formatCoupons:t=>{var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var e;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]};var n=Object.freeze({__proto__:null,dataFormatter:r});exports.Constants=e.constants,exports.Types=o.types,exports.ApiTypes=i,exports.DataFormatter=n,exports.DataTypes=l;
|
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as e,M as t}from"./index-
|
|
1
|
+
import{D as e,M as t}from"./index-d0c43f4c.js";export{B as BabyGrowthGender}from"./index-d0c43f4c.js";import r,{useMemo as l,useRef as o,useState as a,useEffect as i}from"react";import{L as n,G as c,B as s,a as d}from"./Onboarding-5af7aa41.js";import{t as m}from"./theme-fff94356.js";import{T as C,I as p}from"./index-f41ce453.js";import h from"styled-components";import{B as y}from"./index-9753cb26.js";import{M as u}from"./index-68a6626d.js";import{h as b,n as g}from"./screenSizeContext-662f92d9.js";import f from"dayjs";import{u as E}from"./useTranslations-8e7471e9.js";import"lodash/debounce";import"./isProduction-1597e8ed.js";import"./index-50a78483.js";import"./useCategory-c0a62126.js";import{a as x,l as v}from"./localizeNumberFormat-face9bb0.js";import{H as w}from"./index.styles-0c995338.js";import{_ as L,a as M}from"./tslib.es6-d8ba5e0e.js";import"@mantine/core";import"./index-c7bc059b.js";import"./gAssets.js";import"./constants-4e77772b.js";import"./utils-33596d98.js";import{T as k}from"./index-c9986dbd.js";import{C as H}from"./index-f8c1d9d6.js";import{a as I}from"./useOutsideClick-554f17ac.js";import"@mantine/dates";import"@mantine/hooks";import{I as j}from"./index-29398213.js";import{ResponsiveContainer as S,LineChart as G,CartesianGrid as R,Tooltip as z,XAxis as Z,YAxis as _,Line as N,ReferenceDot as V}from"recharts";import T from"lodash/chunk";import"./useScrollbarSize-9c6ef5a1.js";import"react-dom";import"./index.styled-e131ec51.js";import"lodash/throttle";import"./translationsContext-3e91995c.js";import"string-format";import"date-fns/locale";import"react-keyed-flatten-children";import"./cookieHelper-0382f1df.js";import"slugify";import"@mantine/carousel";import"classnames";const A=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -381,7 +381,7 @@ import{D as e,M as t}from"./index-59ecbd4b.js";export{B as BabyGrowthGender}from
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`,ye=({isActive:e,onChange:t,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(he,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(u,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(j,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ue=e=>{var t,l,{babyProfiles:o,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:b,newBabyValue:g,onNewBabyValueChange:f,siteType:x,buttonText:v,headerText:w}=e,M=L(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==s||s(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},v||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=o[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(me,Object.assign({title:w||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>r.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(ye,{siteType:x,value:g,onInputChange:f,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},b||B(e)))})):r.createElement(Ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(u,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},w||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(l=o||[])||void 0===l?void 0:l.map((e=>r.createElement(Q,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(ye,{value:g,onInputChange:f,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},b||B()))},be={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-598512e3.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-025c8110.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-2b82a8c8.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-44824457.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-b2b0aad1.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-b2d29cea.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-4abc16d0.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-adae309b.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-2b27de3c.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-cd5c4f2a.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-12cf3653.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-f7cb8621.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-70651097.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-ebd61dd4.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-e78a2253.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-18f825e1.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-26e4a0c2.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-19c9e245.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-1e7b10b0.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-b97261c0.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-001aa75b.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-72195163.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-3e3dd1a0.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-b75f3aa1.js")}}},ge={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-f38a3fab.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-e0c2db06.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-510e0fc3.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-b893d59b.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-9033a5a4.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-82c340a3.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-ee08b060.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-928048d0.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-e2ddf196.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-b1ccb020.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-3f321a88.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-e1442373.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-3aefb675.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-293036dc.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-b4f1d366.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-b5887d90.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-d6cd03de.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-a86cf86b.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-acb2c226.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-fc98dcac.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-842a2867.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-f1184bc5.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-448c9a07.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-3b0c0841.js")}}},fe=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},Ee=(e,t,r,l)=>l===n.Indonesia?ge[e][t][r]():be[e][t][r](),xe=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ve=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Le=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Me=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Be=h.div`
|
|
384
|
+
`,ye=({isActive:e,onChange:t,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(he,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(u,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(j,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ue=e=>{var t,l,{babyProfiles:o,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:b,newBabyValue:g,onNewBabyValueChange:f,siteType:x,buttonText:v,headerText:w}=e,M=L(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==s||s(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},v||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=o[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(me,Object.assign({title:w||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>r.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(ye,{siteType:x,value:g,onInputChange:f,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},b||B(e)))})):r.createElement(Ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(u,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},w||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(l=o||[])||void 0===l?void 0:l.map((e=>r.createElement(Q,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(ye,{value:g,onInputChange:f,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},b||B()))},be={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-c4e8cdbb.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-9104bf98.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-fbba72e6.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-e0133883.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-83d2c114.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-734253da.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-184b46b0.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-cc05ce46.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-3fa81fa5.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-e23d100f.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-a923fb18.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-9e23931d.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-f8b45685.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-832c4534.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-b2c3e937.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-e141924c.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-903cb147.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-61057460.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-8abdec4f.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-a79e2170.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-31bd302c.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-451e30f2.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-b8ca45dd.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-96f009cc.js")}}},ge={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-843af1e6.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-f8bd1d11.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-6e022214.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-f166956c.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-b6ac5265.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-19007035.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-9819fbfe.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-2b936c65.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-8775cb4d.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-d570818b.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-9ce5f05c.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-7684e153.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-aec1bc6d.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-bf6a523e.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-a2085013.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-d8e3e406.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-beb59acc.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-8a3bb4b8.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-78546079.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-d0c8a30b.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-8451b740.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-01f847e4.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-ec53a919.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-40b42515.js")}}},fe=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},Ee=(e,t,r,l)=>l===n.Indonesia?ge[e][t][r]():be[e][t][r](),xe=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ve=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Le=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Me=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Be=h.div`
|
|
385
385
|
position: relative;
|
|
386
386
|
.custom-chart-label {
|
|
387
387
|
display: flex;
|
package/build/esm/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-
|
|
1
|
+
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-54fe1600.js";import"./tslib.es6-d8ba5e0e.js";import"./isProduction-1597e8ed.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { BookingSearchBar, Props as BookingSearchBarProps, } from "./components/organisms/bookingSearchBar";
|
|
2
2
|
export { BookingSearchBarV2, Props as BookingSearchBarPropsV2, } from "./components/organisms/bookingSearchBarV2";
|
|
3
|
+
export { TextDivider } from "./components/atoms/textDivider";
|
|
3
4
|
export * as CareConstants from "./interfaces/constants";
|
|
4
5
|
export * as CareTypes from "./interfaces/types";
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,T as TextDivider}from"./types-6c860ae9.js";export{c as CareConstants}from"./constants-4e77772b.js";import"./tslib.es6-d8ba5e0e.js";import"react";import"./useTranslations-8e7471e9.js";import"./translationsContext-3e91995c.js";import"string-format";import"lodash/debounce";import"./index-29398213.js";import"@mantine/core";import"styled-components";import"./index-f41ce453.js";import"./theme-fff94356.js";import"dayjs";import"./screenSizeContext-662f92d9.js";import"lodash/throttle";import"./index-50a78483.js";import"date-fns/locale";import"./Onboarding-5af7aa41.js";import"./isProduction-1597e8ed.js";import"./gAssets.js";import"lodash/shuffle";import"./useOutsideClick-554f17ac.js";import"react-loading-skeleton";import"./paths-e83a7594.js";import"./cookieHelper-0382f1df.js";import"./index-47ab4704.js";
|