@hhgtech/hhg-components 1.28.56 → 1.28.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{Plus-5db023c7.js → Plus-29cf93ab.js} +1 -1
- package/build/{WhatsApp-378451bf.js → WhatsApp-0328afb7.js} +1 -1
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/{constants-c7e18ae3.js → constants-6df0e996.js} +1 -1
- package/build/{constants-12b9a3a8.js → constants-accf73ad.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-709ce77d.js → core-74527c16.js} +1 -1
- package/build/{dataTransform-92fa6ba9.js → dataTransform-90c60ebb.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/{Plus-8ce4f4ec.js → Plus-f7c5618a.js} +1 -1
- package/build/esm/{WhatsApp-fbb196cd.js → WhatsApp-712a2952.js} +1 -1
- package/build/esm/babyGrowth.js +5 -5
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-7a224812.js → constants-0025e49b.js} +1 -1
- package/build/esm/{constants-1b372a77.js → constants-2b9cc123.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/core-7df57a7b.js +1 -0
- package/build/esm/{dataTransform-0b72568d.js → dataTransform-0387e8b3.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-99872dc7.js → getDynamicHealthTool-ae9dd594.js} +1 -1
- package/build/esm/{getSocialList-b51adc23.js → getSocialList-73f474a8.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-0aa85299.js +1 -0
- package/build/esm/{index-48c1217c.js → index-0e0b9e2d.js} +1 -1
- package/build/esm/{index-636381d2.js → index-11ddf8b9.js} +1 -1
- package/build/esm/{index-f63e0f99.js → index-1979f711.js} +1 -1
- package/build/esm/{index-767b3730.js → index-27926bb9.js} +2 -2
- package/build/esm/{index-50688929.js → index-3fcc7de2.js} +1 -1
- package/build/esm/{index-b21e07ed.js → index-449bd04b.js} +1 -1
- package/build/esm/{index-829ce636.js → index-47defc94.js} +1 -1
- package/build/esm/{index-c2fbc104.js → index-49571e2c.js} +1 -1
- package/build/esm/index-495ffaf3.js +1 -0
- package/build/esm/{index-635521df.js → index-6a968a24.js} +1 -1
- package/build/esm/{index-7b57d2c6.js → index-75ae81a1.js} +1 -1
- package/build/esm/{index-252cd73f.js → index-7ab2dba5.js} +1 -1
- package/build/esm/{index-0cc4495e.js → index-7bc42cef.js} +1 -1
- package/build/esm/index-8389442a.js +1 -0
- package/build/esm/{index-6f811e9f.js → index-a7a6f2f8.js} +1 -1
- package/build/esm/{index-e83bfcd7.js → index-ac8ebb4a.js} +1 -1
- package/build/esm/{index-0d7ce447.js → index-bd2dfaf4.js} +1 -1
- package/build/esm/{index-8a737b32.js → index-bd890b36.js} +1 -1
- package/build/esm/{index-f22483ac.js → index-c83e2c6d.js} +1 -1
- package/build/esm/{index-268c7c6b.js → index-cbeaabc6.js} +1 -1
- package/build/esm/{index-47e79c7a.js → index-d0c1cd58.js} +5 -5
- package/build/esm/{index-90134df0.js → index-e119a401.js} +1 -1
- package/build/esm/{index-40525833.js → index-ef286146.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-8cfdb7c4.js → index.styled-f2aff174.js} +3 -3
- package/build/esm/{index.styles-f5691a90.js → index.styles-3ff4ce8e.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-5149c7fa.js → routing-c72cf84b.js} +1 -1
- package/build/esm/subot.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-cdbe15bf.js → types-65d7416d.js} +1 -1
- package/build/esm/{types-d093873c.js → types-b1b4d47c.js} +22 -22
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-1a7c064a.js → useCategory-285c8929.js} +1 -1
- package/build/esm/useHealthToolCache-251daff3.js +1 -0
- package/build/esm/{usePlacesAutocomplete-d698a28e.js → usePlacesAutocomplete-4a1e0e57.js} +1 -1
- package/build/esm/{useTranslations-86e89bb6.js → useTranslations-71150e1d.js} +1 -1
- package/build/esm/{utils-c799817b.js → utils-0f6dd8a5.js} +1 -1
- package/build/esm/{utils-f1f499ef.js → utils-b83897f9.js} +1 -1
- package/build/esm/{utils-16683592.js → utils-f11e41fe.js} +2 -2
- package/build/esm/vaccination.js +11 -11
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-c60e68fa.js +1 -0
- package/build/{getSocialList-66c5b6ee.js → getSocialList-630891ed.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-86f87970.js → index-03b6e1bc.js} +1 -1
- package/build/{index-be10c4e0.js → index-03f3ee56.js} +1 -1
- package/build/{index-7f9239c8.js → index-2ef72538.js} +2 -2
- package/build/{index-7e8c99e4.js → index-33839bf2.js} +1 -1
- package/build/{index-0c003a87.js → index-3893e92a.js} +1 -1
- package/build/{index-3e769745.js → index-3ead4f3b.js} +1 -1
- package/build/{index-f049adba.js → index-4af93720.js} +1 -1
- package/build/{index-2db766a9.js → index-4b4621fc.js} +1 -1
- package/build/{index-2952a2dc.js → index-61501e74.js} +1 -1
- package/build/{index-c50fe502.js → index-65b1d890.js} +2 -2
- package/build/{index-6b402916.js → index-6853c2df.js} +1 -1
- package/build/{index-a36b5063.js → index-6f3496ec.js} +20 -20
- package/build/{index-14e23eae.js → index-7d061022.js} +1 -1
- package/build/{index-a39628ee.js → index-84d7415b.js} +1 -1
- package/build/{index-74fc7579.js → index-8da5271e.js} +1 -1
- package/build/index-98bbfe57.js +1 -0
- package/build/{index-40a294f0.js → index-af31de20.js} +1 -1
- package/build/{index-e8a104ed.js → index-be9cca2e.js} +1 -1
- package/build/{index-eea67a77.js → index-c070fdfc.js} +1 -1
- package/build/{index-5e751a6e.js → index-c3fd1632.js} +1 -1
- package/build/{index-b04eb521.js → index-c9f86bff.js} +95 -95
- package/build/index-cdf8d22b.js +1 -0
- package/build/{index-95065bac.js → index-ea138477.js} +1 -1
- package/build/{index-4ce3604f.js → index-fec5e458.js} +2 -2
- package/build/index.js +1 -1
- package/build/{index.styled-8f95d44d.js → index.styled-c87d00c0.js} +1 -1
- package/build/{index.styles-b6376365.js → index.styles-0f69a584.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +5 -5
- package/build/pwg.js +2 -2
- package/build/{routing-0b0a26ff.js → routing-2fc7c708.js} +1 -1
- package/build/subot.js +1 -1
- package/build/together.js +1 -1
- package/build/{types-91eb9de5.js → types-7e10aa4b.js} +1 -1
- package/build/{types-294e4e86.js → types-9c499972.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-3d89eb4d.js → useCategory-e37a5113.js} +1 -1
- package/build/{useHealthToolCache-de7192b2.js → useHealthToolCache-26767afb.js} +1 -1
- package/build/{usePlacesAutocomplete-4125b7b9.js → usePlacesAutocomplete-df148a7c.js} +1 -1
- package/build/{useTranslations-778ab09c.js → useTranslations-498d106f.js} +1 -1
- package/build/{utils-2bd7f928.js → utils-2424ad70.js} +1 -1
- package/build/{utils-4db34bcf.js → utils-7b0b950b.js} +2 -2
- package/build/utils-f53640d1.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +2 -2
- package/build/esm/core-2b914f39.js +0 -1
- package/build/esm/index-321a258f.js +0 -1
- package/build/esm/index-7ba828ef.js +0 -1
- package/build/esm/index-b46983f9.js +0 -1
- package/build/esm/useHealthToolCache-8eea15d9.js +0 -1
- package/build/getDynamicHealthTool-498f29e9.js +0 -1
- package/build/index-5b1d11af.js +0 -1
- package/build/index-cea2c74a.js +0 -1
- package/build/utils-e637cc9f.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-608c49ea.js → BMI_BOYS.percentile.monthly-7c1f442a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-f4ef5f0a.js → BMI_BOYS.percentile.weekly-f35471bd.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-8b7c31c8.js → BMI_BOYS.percentile.yearly-747fddc8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-ee736952.js → BMI_BOYS.zscore.monthly-40ffab15.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-eaaad5cb.js → BMI_BOYS.zscore.weekly-2558df4d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-228bf966.js → BMI_BOYS.zscore.yearly-c50b7daf.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-ee9b4086.js → BMI_GIRLS.percentile.monthly-930cc7b0.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-88eb168f.js → BMI_GIRLS.percentile.weekly-abfe88eb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-64f86799.js → BMI_GIRLS.percentile.yearly-ddb2fc4b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-47014ff8.js → BMI_GIRLS.zscore.monthly-b07dabad.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-4cba96bc.js → BMI_GIRLS.zscore.weekly-7ff3b728.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-16fdf047.js → BMI_GIRLS.zscore.yearly-23e39370.js} +0 -0
- /package/build/{ChevronDown-5b12eac1.js → ChevronDown-60dfaf68.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-53f64b81.js → HEAD CIRCUM_BOYS.percentile.monthly-49ee9158.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9645d212.js → HEAD CIRCUM_BOYS.percentile.weekly-3212dfa3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-16313480.js → HEAD CIRCUM_BOYS.percentile.yearly-a0bbf6a0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-ca44e960.js → HEAD CIRCUM_BOYS.zscore.monthly-e091094c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d7782b27.js → HEAD CIRCUM_BOYS.zscore.weekly-833459f8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-a7a06896.js → HEAD CIRCUM_BOYS.zscore.yearly-1cfbeac4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d4be9bf4.js → HEAD CIRCUM_GIRLS.percentile.monthly-9849f834.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-f31a52f5.js → HEAD CIRCUM_GIRLS.percentile.weekly-5cb8c830.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-42e83272.js → HEAD CIRCUM_GIRLS.percentile.yearly-f57b40e9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0778a9c5.js → HEAD CIRCUM_GIRLS.zscore.monthly-79102211.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-422152a4.js → HEAD CIRCUM_GIRLS.zscore.weekly-4320a2b5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-88fbedd2.js → HEAD CIRCUM_GIRLS.zscore.yearly-d122a505.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-e4e06f5f.js → HEIGHT_BOYS.percentile.monthly-246e47a4.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-3431022e.js → HEIGHT_BOYS.percentile.weekly-df1d3933.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-ac16a132.js → HEIGHT_BOYS.percentile.yearly-2cf03f10.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-60ed36a3.js → HEIGHT_BOYS.zscore.monthly-35d6ff9d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-ae6f8ffc.js → HEIGHT_BOYS.zscore.weekly-e5b11239.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-a76b8b9f.js → HEIGHT_BOYS.zscore.yearly-5055ffc2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-d377bccf.js → HEIGHT_GIRLS.percentile.monthly-b557c0ed.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-8654e3b3.js → HEIGHT_GIRLS.percentile.weekly-287247ba.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-464a3df2.js → HEIGHT_GIRLS.percentile.yearly-cd0e7ffc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-a1e1e53d.js → HEIGHT_GIRLS.zscore.monthly-33433a04.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-d9151bef.js → HEIGHT_GIRLS.zscore.weekly-57e0bc18.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-de563c40.js → HEIGHT_GIRLS.zscore.yearly-c8cacc57.js} +0 -0
- /package/build/{Subot-52a853c9.js → Subot-52e94ede.js} +0 -0
- /package/build/{Visible-87789997.js → Visible-8835941a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-7b12062a.js → WEIGHT_BOYS.percentile.monthly-3917215a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-f91d5d07.js → WEIGHT_BOYS.percentile.weekly-6eb9a56d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-f8dcf3df.js → WEIGHT_BOYS.percentile.yearly-29731535.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-4ec73c75.js → WEIGHT_BOYS.zscore.monthly-e3123910.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-0957de57.js → WEIGHT_BOYS.zscore.weekly-694662de.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-29785e07.js → WEIGHT_BOYS.zscore.yearly-0f990dad.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-74ff490d.js → WEIGHT_GIRLS.percentile.monthly-241403dd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-5787c39e.js → WEIGHT_GIRLS.percentile.weekly-137b3467.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-9d0b172a.js → WEIGHT_GIRLS.percentile.yearly-e9aecc7d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4d69c551.js → WEIGHT_GIRLS.zscore.monthly-2cff2183.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-0de8c13f.js → WEIGHT_GIRLS.zscore.weekly-0bfd7674.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-44930149.js → WEIGHT_GIRLS.zscore.yearly-9c0a3370.js} +0 -0
- /package/build/{animation-71e7e86f.js → animation-ce2ee519.js} +0 -0
- /package/build/{cookieHelper-db011eab.js → cookieHelper-1bbbf79c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-9ff1f082.js → BMI_BOYS.percentile.monthly-c4a97c9a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-0ba92235.js → BMI_BOYS.percentile.weekly-6339f482.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-1086e00e.js → BMI_BOYS.percentile.yearly-8c1ca6e2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-0f7f613e.js → BMI_BOYS.zscore.monthly-3a5c8b0d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-87fa8db7.js → BMI_BOYS.zscore.weekly-97453c11.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-85eb22b9.js → BMI_BOYS.zscore.yearly-d9b1265b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-2935fa95.js → BMI_GIRLS.percentile.monthly-c05fdcd4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-93283f42.js → BMI_GIRLS.percentile.weekly-18663de0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-c016af3f.js → BMI_GIRLS.percentile.yearly-2f551a4c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-bf1221f3.js → BMI_GIRLS.zscore.monthly-9a5c1809.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b66ec0f6.js → BMI_GIRLS.zscore.weekly-23e3fe35.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-330d603a.js → BMI_GIRLS.zscore.yearly-02d624e8.js} +0 -0
- /package/build/esm/{ChevronDown-dba95d81.js → ChevronDown-bd411290.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a57fcb48.js → HEAD CIRCUM_BOYS.percentile.monthly-6a86e966.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-763200c2.js → HEAD CIRCUM_BOYS.percentile.weekly-99b4a304.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-56722b16.js → HEAD CIRCUM_BOYS.percentile.yearly-af69640c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-1409bd4b.js → HEAD CIRCUM_BOYS.zscore.monthly-d5a7fdb7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b4a8bf06.js → HEAD CIRCUM_BOYS.zscore.weekly-cdcc57d4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-8eec84ca.js → HEAD CIRCUM_BOYS.zscore.yearly-1c6c655f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3ef12e21.js → HEAD CIRCUM_GIRLS.percentile.monthly-a4c62c65.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-34358201.js → HEAD CIRCUM_GIRLS.percentile.weekly-72020f04.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1068a35e.js → HEAD CIRCUM_GIRLS.percentile.yearly-493f7cf8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-509028ee.js → HEAD CIRCUM_GIRLS.zscore.monthly-066536b9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f6358d7e.js → HEAD CIRCUM_GIRLS.zscore.weekly-943658b2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-3a982ae8.js → HEAD CIRCUM_GIRLS.zscore.yearly-15ea58ed.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b071586a.js → HEIGHT_BOYS.percentile.monthly-1e25737a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-fe964e0e.js → HEIGHT_BOYS.percentile.weekly-f8c953c4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-d259bd03.js → HEIGHT_BOYS.percentile.yearly-9f8f36d6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-fba561d6.js → HEIGHT_BOYS.zscore.monthly-22dc00c5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-bd62c93d.js → HEIGHT_BOYS.zscore.weekly-c7a8ae2b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-8215dea7.js → HEIGHT_BOYS.zscore.yearly-12815978.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-4963f297.js → HEIGHT_GIRLS.percentile.monthly-2833c123.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-a6f4dc51.js → HEIGHT_GIRLS.percentile.weekly-0daf9f5b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-a1875219.js → HEIGHT_GIRLS.percentile.yearly-4789a7e7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-82dc7d06.js → HEIGHT_GIRLS.zscore.monthly-de7243f8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-9dc820e7.js → HEIGHT_GIRLS.zscore.weekly-4918bb2a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-b826ff70.js → HEIGHT_GIRLS.zscore.yearly-d4fd8ddd.js} +0 -0
- /package/build/esm/{Subot-7273a528.js → Subot-56771801.js} +0 -0
- /package/build/esm/{Visible-1090bd49.js → Visible-ace89781.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-93900776.js → WEIGHT_BOYS.percentile.monthly-264f8b1e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-866ad4eb.js → WEIGHT_BOYS.percentile.weekly-b4944551.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-3c951027.js → WEIGHT_BOYS.percentile.yearly-a8c6c2be.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-36f7548b.js → WEIGHT_BOYS.zscore.monthly-4e623320.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-85126ac6.js → WEIGHT_BOYS.zscore.weekly-1555670e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-eb4a834d.js → WEIGHT_BOYS.zscore.yearly-b26402ba.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-fe3367f1.js → WEIGHT_GIRLS.percentile.monthly-984185a1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-13e77337.js → WEIGHT_GIRLS.percentile.weekly-b0e99fd4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-6bdcfaf4.js → WEIGHT_GIRLS.percentile.yearly-893995ec.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-20d0147d.js → WEIGHT_GIRLS.zscore.monthly-8dc61ee2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-2e229a27.js → WEIGHT_GIRLS.zscore.weekly-fe211553.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-61af19d6.js → WEIGHT_GIRLS.zscore.yearly-87882127.js} +0 -0
- /package/build/esm/{animation-58e1654e.js → animation-3f2b6f75.js} +0 -0
- /package/build/esm/{cookieHelper-b69ab332.js → cookieHelper-0c215a0b.js} +0 -0
- /package/build/esm/{index-8ddd1712.js → index-576a616c.js} +0 -0
- /package/build/esm/{index-54152214.js → index-7f1f7516.js} +0 -0
- /package/build/esm/{index-82fd9ecc.js → index-fa5073f3.js} +0 -0
- /package/build/esm/{isProduction-b5a4232a.js → isProduction-6599ce88.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0bb372b5.js → localizeNumberFormat-28d92a62.js} +0 -0
- /package/build/esm/{normalizeLink-c5fb54cb.js → normalizeLink-7c303f96.js} +0 -0
- /package/build/esm/{number-9748fd86.js → number-d5c1e150.js} +0 -0
- /package/build/esm/{paths-dc966233.js → paths-a1da3d54.js} +0 -0
- /package/build/esm/{theme-adcbd043.js → theme-23782329.js} +0 -0
- /package/build/esm/{translationsContext-a60c9450.js → translationsContext-5ab0d4b4.js} +0 -0
- /package/build/esm/{tslib.es6-6116a023.js → tslib.es6-2cb84ad8.js} +0 -0
- /package/build/esm/{types-0504c47c.js → types-69671356.js} +0 -0
- /package/build/esm/{useIsInit-6a263059.js → useIsInit-f38f0d5c.js} +0 -0
- /package/build/esm/{useOutsideClick-1959d3a7.js → useOutsideClick-f050c073.js} +0 -0
- /package/build/esm/{useScrollbarSize-6bc774ea.js → useScrollbarSize-7f0be029.js} +0 -0
- /package/build/esm/{useUniqueId-772eafdf.js → useUniqueId-871437b9.js} +0 -0
- /package/build/esm/{utils-de8dd6dc.js → utils-1ad4f186.js} +0 -0
- /package/build/{index-24961b96.js → index-0790d5ae.js} +0 -0
- /package/build/{index-063beba4.js → index-aaeccb69.js} +0 -0
- /package/build/{index-0011304a.js → index-ba62d856.js} +0 -0
- /package/build/{isProduction-1358e2f3.js → isProduction-9e0e9225.js} +0 -0
- /package/build/{localizeNumberFormat-c742a6c3.js → localizeNumberFormat-c501510d.js} +0 -0
- /package/build/{normalizeLink-fb57949a.js → normalizeLink-91646273.js} +0 -0
- /package/build/{number-a61c9201.js → number-21ab8a99.js} +0 -0
- /package/build/{paths-680b0596.js → paths-99000104.js} +0 -0
- /package/build/{theme-1a921769.js → theme-533eba85.js} +0 -0
- /package/build/{translationsContext-e697619c.js → translationsContext-b64cc287.js} +0 -0
- /package/build/{tslib.es6-11571a59.js → tslib.es6-0476eed4.js} +0 -0
- /package/build/{types-2ddc39fa.js → types-5c712d9e.js} +0 -0
- /package/build/{useIsInit-ace4f5d2.js → useIsInit-2a888094.js} +0 -0
- /package/build/{useOutsideClick-1ff0a049.js → useOutsideClick-3b96ab2e.js} +0 -0
- /package/build/{useScrollbarSize-fe02c3ef.js → useScrollbarSize-bd02c351.js} +0 -0
- /package/build/{useUniqueId-a6a2ac25.js → useUniqueId-dcfc3871.js} +0 -0
- /package/build/{utils-71645360.js → utils-381e90c1.js} +0 -0
package/build/esm/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o}from"./theme-adcbd043.js";export{c as Constants}from"./constants-7a224812.js";export{t as Types}from"./types-0504c47c.js";import"./index-636381d2.js";import"date-fns/locale";import"./Subot-7273a528.js";import"./isProduction-b5a4232a.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},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(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(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 o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(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 o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.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,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.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 o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.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===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],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 o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(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 o,e,i,r;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===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.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 o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;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===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(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,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.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 o,e;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===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(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 o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.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 o,e,i,l,r,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===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.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 o;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===(o=t.extension_attributes)||void 0===o?void 0:o.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 o,e,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===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.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 o,e,i,l,r,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===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.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===(r=t.currency)||void 0===r?void 0:r.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 o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,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===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(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 o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.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 o;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===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
|
|
1
|
+
import{t as o}from"./theme-23782329.js";export{c as Constants}from"./constants-0025e49b.js";export{t as Types}from"./types-69671356.js";import"./index-11ddf8b9.js";import"date-fns/locale";import"./Subot-56771801.js";import"./isProduction-6599ce88.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},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(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(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 o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(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 o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.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,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.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 o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.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===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],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 o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(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 o,e,i,r;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===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.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 o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;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===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(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,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.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 o,e;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===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(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 o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.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 o,e,i,l,r,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===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.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 o;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===(o=t.extension_attributes)||void 0===o?void 0:o.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 o,e,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===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.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 o,e,i,l,r,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===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.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===(r=t.currency)||void 0===r?void 0:r.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 o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,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===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(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 o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.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 o;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===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
|
package/build/esm/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{F as Footer}from"./index-
|
|
1
|
+
export{F as Footer}from"./index-47defc94.js";import"react";import"./index-ac8ebb4a.js";import"./tslib.es6-2cb84ad8.js";import"./index-d0c1cd58.js";import"@mantine/core";import"@mantine/hooks";import"./theme-23782329.js";import"./index-7bc42cef.js";import"./index-11ddf8b9.js";import"date-fns/locale";import"./Subot-56771801.js";import"./isProduction-6599ce88.js";import"dayjs";import"./utils-1ad4f186.js";import"styled-components";import"@mantine/carousel";import"./Plus-f7c5618a.js";import"classnames";import"./index-576a616c.js";import"@mantine/dates";import"./useTranslations-71150e1d.js";import"./translationsContext-5ab0d4b4.js";import"string-format";import"./index-cbeaabc6.js";import"./utils-0f6dd8a5.js";import"./index-449bd04b.js";import"./index.styled-f2aff174.js";
|
package/build/esm/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CommonGAssets,G as GAssets}from"./index-
|
|
1
|
+
export{C as CommonGAssets,G as GAssets}from"./index-7bc42cef.js";import"./index-11ddf8b9.js";import"date-fns/locale";import"./Subot-56771801.js";import"./isProduction-6599ce88.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-2cb84ad8.js";import{n as o}from"./normalizeLink-7c303f96.js";import{c as i}from"./routing-c72cf84b.js";import{g as l}from"./core-7df57a7b.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=l=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===l?"lang=fil":"";let a=[];try{const r=yield fetch(o(`${i(l)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,l))))||[]}catch(t){}return a}catch(t){console.error(t)}})),s=o=>t(void 0,void 0,void 0,(function*(){return(yield l("all-health-tools",(()=>e(o||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{L as t}from"./Subot-
|
|
1
|
+
import e from"react";import{L as t}from"./Subot-56771801.js";import{C}from"./index-7bc42cef.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
package/build/esm/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{u as useTranslations}from"./useTranslations-
|
|
1
|
+
export{u as useTranslations}from"./useTranslations-71150e1d.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-7f0be029.js";export{M as MAPPED_CATEGORY_SLUGS,P as PREGNANCY_SLUG,c as useCategory,u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useCategory-285c8929.js";export{u as useHealthToolsCache}from"./useHealthToolCache-251daff3.js";export{u as useIsInit}from"./useIsInit-f38f0d5c.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-f050c073.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-871437b9.js";import"react";import"./translationsContext-5ab0d4b4.js";import"string-format";import"lodash/debounce";import"./tslib.es6-2cb84ad8.js";import"./cookieHelper-0c215a0b.js";import"./Subot-56771801.js";import"./getDynamicHealthTool-ae9dd594.js";import"./normalizeLink-7c303f96.js";import"./routing-c72cf84b.js";import"./index-11ddf8b9.js";import"date-fns/locale";import"./isProduction-6599ce88.js";import"./core-7df57a7b.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as s}from"./translationsContext-
|
|
1
|
+
import{T as s}from"./translationsContext-5ab0d4b4.js";export{T as TranslationsContext}from"./translationsContext-5ab0d4b4.js";import o,{useState as r,useEffect as e,useMemo as t}from"react";import i from"./i18n-values/en-PH.js";import n from"./i18n-values/hi-IN.js";import a from"./i18n-values/id-ID.js";import l from"./i18n-values/km-KH.js";import m from"./i18n-values/ms-MY.js";import v from"./i18n-values/my-MM.js";import j from"./i18n-values/th-TH.js";import u from"./i18n-values/tl-PH.js";import p from"./i18n-values/vi-VN.js";import c from"./i18n-values/vi-VN_MB.js";import f from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":p,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":f,"th-TH":j,"tl-PH":u,"vi-VN_MB":c},b=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:v=null,onTranslationsLoaded:j})=>{const u=n&&n[i]||a,[p,c]=r((()=>Object.assign(Object.assign({},u),m?d[i]:{})));e((()=>{c(Object.assign(Object.assign({},u),m?d[i]:{}))}),[m,i]);const f=t((()=>p?{locale:i,values:p}:null),[i,p]);return e((()=>{j&&Object.keys(p).length&&j(p)}),[p]),o.createElement(s.Provider,{value:f},f?l:v)};export{b as TranslationsProvider,d as translationsMap};
|
package/build/esm/i18nV2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as t}from"./translationsContext-
|
|
1
|
+
import{T as t}from"./translationsContext-5ab0d4b4.js";export{T as TranslationsContext}from"./translationsContext-5ab0d4b4.js";import e,{useMemo as o}from"react";const a=({locale:a="en-PH",values:r,children:n})=>{const l=o((()=>r?{locale:a,values:r}:null),[a,r]);return e.createElement(t.Provider,{value:l},n)};export{a as TranslationsProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./tslib.es6-2cb84ad8.js";import t from"react";import{Indicator as e}from"@mantine/core";import{t as r}from"./theme-23782329.js";const s=s=>{var{styles:i,color:n=r.colors.red700}=s,a=o(s,["styles","color"]);return t.createElement(e,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:n},a))};export{s as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,memo as o,useCallback as r,useImperativeHandle as s,forwardRef as c,createContext as d,useContext as m}from"react";import{T as p}from"./Plus-8ce4f4ec.js";import{b as g,c as u,d as h,e as v,f as b,h as y,i as f,j as E,k as x,l as w,m as k,n as C,o as N,p as B,q as z,r as $,s as S,t as P,u as D,H as L,T as I,g as M,P as T}from"./index.styles-f5691a90.js";import{f as A,M as j}from"./utils-de8dd6dc.js";import{I as O,R as _,u as F,A as H,b as R,c as W,B as U,d as V,e as G,f as Z,t as q}from"./index-47e79c7a.js";import{T as Y}from"./index-b46983f9.js";import{a as X}from"./useUniqueId-772eafdf.js";import{C as K}from"./index-0cc4495e.js";import{t as Q}from"./theme-adcbd043.js";import{_ as J,a as ee}from"./tslib.es6-6116a023.js";import{Box as te,Radio as ae,Flex as ne,rem as ie,Card as le,Group as oe,createStyles as re,Stack as se,getStylesRef as ce,useMantineTheme as de,Container as me,UnstyledButton as pe,AspectRatio as ge,ScrollArea as ue,Chip as he,Badge as ve,MultiSelect as be,Stepper as ye}from"@mantine/core";import fe from"innertext";import"@mantine/dates";import{d as Ee,L as xe,F as we,Q as ke,R as Ce,a as Ne,G as Be}from"./index-636381d2.js";import{G as ze,L as $e}from"./Subot-7273a528.js";import"./translationsContext-a60c9450.js";import"string-format";import{useViewportSize as Se}from"@mantine/hooks";import{i as Pe,d as De}from"./index-c2fbc104.js";import Le,{keyframes as Ie,css as Me}from"styled-components";import Te from"lodash/throttle";import{L as Ae}from"./index-268c7c6b.js";import{B as je}from"./index-e83bfcd7.js";import{I as Oe}from"./index-635521df.js";import _e from"html-react-parser";import{i as Fe}from"./isProduction-b5a4232a.js";import{u as He}from"./useTranslations-86e89bb6.js";import{format as Re,addDays as We,isBefore as Ue,startOfMonth as Ve,addMonths as Ge,subMonths as Ze,getDaysInMonth as qe,isToday as Ye,isSameDay as Xe,isWithinInterval as Ke,isAfter as Qe,isPast as Je}from"date-fns";import et from"dayjs";import"./utils-c799817b.js";import{I as tt}from"./index-f22483ac.js";import"./index.styled-8cfdb7c4.js";import"./index-54152214.js";import{L as at}from"./constants-1b372a77.js";import{Z as nt,s as it,H as lt,o as ot,d as rt,P as st,T as ct,t as dt,u as mt,v as pt}from"./utils-16683592.js";import{D as gt}from"./types-0504c47c.js";import{D as ut}from"./index-7b57d2c6.js";import{S as ht}from"./index-321a258f.js";import{M as vt}from"./index-b21e07ed.js";import{D as bt}from"./index-767b3730.js";import{C as yt}from"./index-8ddd1712.js";import{useForm as ft,Controller as Et}from"react-hook-form";import{u as xt}from"./useHealthToolCache-8eea15d9.js";import{yupResolver as wt}from"@hookform/resolvers/yup";import{B as kt,D as Ct}from"./index-252cd73f.js";import{h as Nt}from"./index-50688929.js";import"./WhatsApp-fbb196cd.js";import{a as Bt}from"./useOutsideClick-1959d3a7.js";import zt from"date-fns/locale/en-US";import $t from"date-fns/locale/id";import St from"date-fns/locale/vi";import Pt from"date-fns/locale/zh-TW";import{g as Dt}from"./getSocialList-b51adc23.js";import{v4 as Lt}from"uuid";import{g as It,a as Mt}from"./routing-5149c7fa.js";import{useForm as Tt,isNotEmpty as At}from"@mantine/form";import{M as jt}from"./index-6f811e9f.js";import Ot from"js-cookie";import _t from"lodash/flatten";import Ft from"lodash/uniqBy";import{g as Ht}from"./cookieHelper-b69ab332.js";import{n as Rt,a as Wt}from"./normalizeLink-c5fb54cb.js";var Ut="CHw-fZZ",Vt="_03U6VRS",Gt="EO828Vv";const Zt=({style:t,onClose:a,text:n,type:i,contentIcon:l,closeIcon:o,className:r,description:s})=>e.createElement("div",{className:`${Ut} ${r||""}`,style:t,"data-alert-type":i},e.createElement("div",{className:Vt},e.createElement("div",{className:"icon-title"},l,e.createElement(p,{weight:"bold",size:"label1"},n)),e.createElement(p,{weight:"regular",size:"p3"},s)),e.createElement("div",{className:Gt,onClick:a},o)),qt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},Yt=({type:n="square",size:i,avatarImg:l,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:d,className:m,width:p,height:u,alt:h})=>{const v=i?qt[i]:void 0,[b,y]=t(!1);a((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{y(!0)}))}}),[o,y]);const f=(!o&&!l||b)&&r;return e.createElement(g,{style:Object.assign(Object.assign({},d),{"--size":v?v+"px":void 0,"--width-prop":p?p+"px":void 0,"--height-prop":u?u+"px":void 0,"--background-color":s}),"data-has-max":!(!p||!u),"data-avatar-type":n,onClick:c,className:m,avatarUrl:o,"data-custom-size":!!i},l,o&&!b&&e.createElement(O,{src:o,alt:h||"avatar"}),f&&r)},Xt=({amount:t,type:a,size:n="medium",color:i="primary",icon:l,className:o})=>e.createElement(u,{"data-notification-type":a,"data-notification-size":n,"data-notification-color":i,"data-has-icon":!!l||void 0,notificationType:a,notificationSize:n,notificationColor:i,hasIcon:!!l,className:o},e.createElement("div",null,t&&e.createElement("span",null,t)," ",l&&e.createElement("div",null,l))),Kt=({style:t,children:a,className:n,size:i="lg",type:l="bold",upperCase:o,as:r="h4",color:s})=>e.createElement(h,{style:Object.assign({color:s},t),className:n,"data-size":i,"data-type":l,"data-uppercase":o,as:r},a),Qt=()=>e.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),Jt=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),ea=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"download"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),ta=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"upload"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"})),aa=({className:a,value:i,options:l,onUploadSelected:o,id:r,placeholderIcon:s,placeholder:c,style:d})=>{const[m,p]=t(!1),g=()=>p(!m),u=n(l.map((t=>"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+r+"-"+t.value,key:"uploader-dropdown-input-"+r+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),o(e.target.files)}}))));return e.createElement(v,{className:a,"data-dropdown-open":!!m,id:r,"data-has-icons":!0,style:d,onBlur:()=>p(!1),tabIndex:0},e.createElement(Qt,null),e.createElement(b,{onClick:g},s||e.createElement(Jt,null)," ",e.createElement("span",null,i&&i.value?i.label:c)),m&&e.createElement(y,{onClick:g,"data-has-icons":!0},l.map((t=>e.createElement(f,{key:`${r}-${t.value}`,"data-selected":i&&i.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+r+"-"+t.value,void(null===(n=document.querySelector(a))||void 0===n||n.click())):void((e=t.url)&&window.open(e,"_blank"));var e,a,n}},e.createElement(E,null,t.icon||"download"===t.type?e.createElement(ea,null):e.createElement(ta,null)),t.label)))),e.createElement(e.Fragment,null,u.current))},na=({className:t,columns:a,columnsDesktop:n,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,gap:o,children:r,justifyChildren:s,style:c,alignItems:d})=>e.createElement(x,{className:t,style:Object.assign({"--columns-count":a,"--columns-count-desktop":n,"--grid-template-columns":i,"--grid-template-columns-desktop":l,"--justify-children":s,"--grid-gap":o,"--align-items":d},c)},r),ia=({pagesAmount:n,activePage:i,handlePageChange:o,handleClick:r,href:s,queryPageName:c="page"})=>{const d=[...Array(n)].map(((e,t)=>t+1)),[m,p]=t(i<=4?d.slice(0,5):i>=d.length-3?d.slice(d.length-5,d.length):d.slice(i-2,i+1));return a((()=>{i<=4?p(d.slice(0,5)):i>=d.length-3?p(d.slice(d.length-5,d.length)):p(d.slice(i-2,i+1))}),[i]),e.createElement(l,null,i>4&&e.createElement(l,null,e.createElement(C,{onClick:()=>o(1)},s?e.createElement("a",{href:s,onClick:r},1):1),e.createElement(C,null,"...")),m.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===i||void 0,onClick:()=>o(t)},s?e.createElement("a",{href:A(s,t,c),onClick:r},t):t))),i<d.length-3&&e.createElement(l,null,e.createElement(C,null,"..."),e.createElement(C,{onClick:()=>o(d.length)},s?e.createElement("a",{href:A(s,d.length,c),onClick:r},d.length):d.length)))},la=({className:n,pagesAmount:l,currentPage:o,onChange:r,onClick:s,style:c,href:d,queryPageName:m="page"})=>{const p=[...Array(l)].map(((e,t)=>t+1)),[g,u]=t(o),h=i((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),v=l-1,b=e=>{e<=l&&e>0&&(u(e),r(e))},y=e=>{s&&s(e)};return a((()=>{u(o)}),[o]),e.createElement(w,{className:n,style:c},e.createElement(k,{className:"prev-page",onClick:()=>b(g-1),"data-last-page":1===g||void 0},h?e.createElement("a",{href:A(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),p.length>8?e.createElement(ia,{pagesAmount:l,activePage:g,handlePageChange:b,handleClick:y,href:h,queryPageName:m}):p.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===g||void 0,onClick:()=>b(t)},h?e.createElement("a",{href:A(h,t,m),onClick:y},t):t))),e.createElement(k,{className:"next-page",onClick:()=>b(g+1),"data-last-page":g===v+1||void 0},h?e.createElement("a",{href:A(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},oa=({size:t="small",label:a,name:n,checked:i,value:l,className:o,isDisabled:r=!1,onChange:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>{const p=!!d&&!!c&&!!m?{"data-event-category":c,"data-event-action":d,"data-event-label":m}:{};return e.createElement(_,Object.assign({size:"small"===t?"md":"lg",label:a,name:n,checked:i,value:l,className:o,disabled:r,onChange:e=>null==s?void 0:s(e.target.value)},p))},ra=({type:t,children:a,style:n,isInline:i,isSquared:l=!1,className:o,isLight:r,hasMorePadding:s,isLink:c,isSelected:d,textProps:m={size:"sm"}})=>{const p=m.color?{"--text-props-color":m.color}:{};return e.createElement(N,{"data-is-squared":l||void 0,"data-tag-type":t,"data-is-light":r||void 0,"data-has-more-padding":s||void 0,"data-is-inline":i||void 0,style:Object.assign(Object.assign({},n),p),className:o,"data-is-selected":d||void 0,"data-is-link":c||void 0,tagType:t,isInline:i,tagHasMorePadding:s,tagIsLight:r,tagIsSquared:l,tagIsALink:c},e.createElement(Y,Object.assign({},m),a))},sa=({className:t,id:a,onChange:n,checked:i,style:l,label:o})=>e.createElement(B,{className:t,style:l},e.createElement("input",{type:"checkbox",id:a,onChange:n,checked:i}),e.createElement("label",{htmlFor:a},e.createElement(z,null),o&&e.createElement($,null,o))),ca=({label:t,name:a,checked:n,className:i,isDisabled:l,onChange:o,value:r,isRectangle:s,inputDataTestId:c,siteType:d})=>e.createElement(S,{className:i,"data-disabled":l||void 0,"data-is-rectangle":s||void 0,"data-label-text":t,"data-theme":d},e.createElement("input",{type:"checkbox",checked:n,name:a,onChange:()=>o(r,!n),disabled:l,value:r,id:`${a}-${r}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${r}`},t)),da=t=>e.createElement("svg",Object.assign({},t,{viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),ma=t=>e.createElement("svg",Object.assign({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),pa=t=>{const a=X();return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 24 24",fill:"none"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:`url(#${a})`},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},ga=({gap:a=2,size:n=24,star:i,totalStars:l=5,onSelect:o,hideEmptyStars:r,style:s,className:c})=>{const d=Math.floor(i),m=i-d>=.5?1:0,[p,g]=t(null),u=p||d,h=p?0:m;return e.createElement(P,{"data-selectable":!!o,style:Object.assign({"--gap":a,"--star-size":n},s),className:c},Array.from({length:r?d+m:l}).map(((t,a)=>{const n=()=>!!o&&g(a+1),i=()=>!!o&&g(null);return a+1<=u?e.createElement(ma,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):a+1===u+h?e.createElement(pa,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):e.createElement(da,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i})})))},ua=l=>{var{label:o,availableValue:r,styles:s,isBaby:c,genderValue:d={male:"male",female:"female"}}=l,m=J(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=He(),{classes:u,cx:h}=D(void 0,{name:"GenderOptionControl",styles:s}),[v,b]=t(),y=n(null),f=i((()=>[{value:d.male,label:g(c?"gender.boy":"gender.male"),icon:K.getAssetPath(c?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:d.female,label:g(c?"gender.girl":"gender.female"),icon:K.getAssetPath(c?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return a((()=>{b(r)}),[r]),e.createElement(te,{ref:y,className:u.root},e.createElement(ae.Group,Object.assign({className:"radio-group",label:e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o||g(c?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},m,{classNames:{error:u.groupErr}}),e.createElement(ne,{className:h(u.wrapper)},f.map((t=>e.createElement(ae,Object.assign({className:"gender-item",classNames:{root:u.itemRoot,labelWrapper:u.itemLabelWrapper,label:u.itemLabel,inner:u.itemInner},key:t.value,value:t.value},v&&t.value!==v&&{disabled:!0},{label:e.createElement(ne,{gap:ie(8),align:"center",justify:"center",sx:{zIndex:0}},e.createElement("img",{src:t.icon,className:"gender-image",alt:"female",loading:"lazy"}),e.createElement(p,{size:"p3"},t.label))})))))))};var ha="PiqKaXk",va="HgbW6-m",ba="_6lkfLYy",ya="j7c-onH";const fa=({avatarImg:t,authorName:a,authorLink:n,uploadTime:i,size:l})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":l},t),e.createElement("div",{className:"poster","data-is-disabled-url":!n},e.createElement(p,{size:"lg"===l?"p3":"p4"},e.createElement("a",{href:n},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,i))))),Ea=({isMobile:t,avatarImg:a,name:n,link:i,size:l="lg",specialty:o})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":l},a),e.createElement("div",{className:"expert","data-is-disabled-url":!i},t?e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(L,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n),e.createElement(p,{color:Q.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement(L,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n))):e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(L,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n),e.createElement(p,{color:Q.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement("h6",{color:Q.colors.gray600,className:`${ha} expert__name`},n),e.createElement(p,{color:Q.colors.gray500,size:"p4",className:"specialty"},o)))))),xa=o((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),wa=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),ka=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),Ca=({articleLink:t,authorLink:a,authorName:n,avatarImg:i,banner:l,categoryLink:o,categoryName:r,className:s,dataEventActionForBanner:c,dataEventActionForBookmark:d,dataEventActionForCategory:m,dataEventActionForTitle:g,dataEventCategoryForBanner:u,dataEventCategoryForBookmark:h,dataEventCategoryForCategory:v,dataEventCategoryForTitle:b,dataEventLabelForBanner:y,dataEventLabelForBookmark:f,dataEventLabelForCategory:E,dataEventLabelForTitle:x,direction:w="horizontal",hasAffiliate:k,isBookmark:C=!1,isBookmarkDisplayed:N=!0,isMobile:B=!0,onBookmark:z,onClickCategoryName:$,section:S="normal",size:P="md",specialty:D,style:I,styleBanner:M,styleLabel:T,styleTitle:A,text:j,title:O,type:_="author",uploadTime:F,articleLinkTarget:H,isPremium:R})=>{const W=e=>{e.stopPropagation(),null==z||z()},U="lg"===P&&"expert"===_?"h4":"lg"===P&&"home"===S?B?"h4":"h3":"lg"===P?"h4":"h5",V="lg"===P?"p3":"p4",G=B||"home"!==S||"lg"!==P||"author"!==_?"c2":"c1";return e.createElement("article",{className:`${ba} ${s||""}`,"data-size":P,style:I,"data-direction":w,"data-is-expert":"expert"===_||void 0},e.createElement("div",{className:"banner",style:M},e.createElement("a",{className:va,"data-event-category":u,"data-event-action":c,"data-event-label":y,href:t||"#",target:H},l),R&&e.createElement("img",{loading:"lazy",className:"premium",src:K.getAssetPath("premium-crown.svg")}),k&&e.createElement(xa,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(p,{style:T,className:"label",size:G,weight:"caption"},e.createElement("a",{className:va,"data-event-category":v,"data-event-action":m,"data-event-label":E,href:o||"#",onClick:$},r),N&&e.createElement("a",{className:"bookmark",onClick:W},C?e.createElement(wa,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(ka,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))),e.createElement(L,{tag:U,style:A,className:"title",as:"lg"===P?"h2":"h3"},e.createElement("a",{className:va,"data-event-category":b,"data-event-action":g,"data-event-label":x,href:t||"#",target:H},O)),j&&e.createElement("a",{href:t||"#",target:H},e.createElement(p,{size:V,className:"text"},j))),e.createElement("div",{className:"footer"},"author"===_?e.createElement(fa,{size:P,avatarImg:i,authorName:n,authorLink:a,uploadTime:F,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(Ea,{size:P,isMobile:B,avatarImg:i,specialty:D,name:n,link:a,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))))},Na=t=>{var a,n,i,{article:l,author:o,authorAvatar:r,badge:s="",hideDescription:c=!1,isBookmarked:d=!1,onBookmark:m,time:g,tracking:u}=t,h=J(t,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:v}=F();return console.log({article:l}),e.createElement(le,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},h),e.createElement(le.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},e.createElement("img",{src:(v?l.featureImageMobile:l.featureImage)||l.featureImage,alt:l.postName,style:{width:"100%"},loading:"lazy"})),e.createElement(le.Section,null,e.createElement(oe,{position:"apart",mt:16,mb:4},e.createElement(H,{href:(null===(a=null==l?void 0:l.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==l?void 0:l.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(te,{sx:{cursor:"pointer"},role:"button",onClick:m},d?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{size:c?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},l.postTitle||l.postName||""),!c&&e.createElement(p,{size:"p2",mb:16,lineClamp:3,className:"pointer"},fe(l.excerpt||l.description||(null===(i=l.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),e.createElement(ne,{gap:12,align:"center"},e.createElement(R,{size:32,src:r,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:s,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},o," • ",g))))};var Ba=re(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const za=648/440,$a=1.5,Sa=t=>{var a,n,l,{article:o,author:r,authorAvatar:s,badge:c="",bannerImageWrapProps:d,hideDescription:m=!1,isBookmarked:g=!1,onBookmark:u,time:h,tracking:v,classNames:b,styles:y,unstyled:f,className:E}=t,x=J(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:w}=F(),{classes:k,cx:C}=Ba({},{name:"ArticleCard",classNames:b,styles:y,unstyled:f}),N=i((()=>m?$a:za),[m]);return e.createElement(le,Object.assign({className:C(k.root,E),padding:"lg",radius:0},x),e.createElement(le.Section,{className:C(k.image,"pointer")},e.createElement(W,Object.assign({ratio:N},d),e.createElement("img",{src:(w?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),e.createElement(le.Section,null,e.createElement(oe,{position:"apart",mt:16,mb:4},e.createElement(H,{className:k.category,href:(null===(a=null==o?void 0:o.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==o?void 0:o.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(te,{sx:{cursor:"pointer"},role:"button",onClick:u},g?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{className:C(k.title,"pointer"),size:m?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!m&&e.createElement(p,{className:C(k.description,"pointer"),size:"p2",mb:16,lineClamp:3},fe(o.excerpt||o.description||(null===(l=o.postContent)||void 0===l?void 0:l.split("\r\n")[0])||"")),e.createElement(ne,{className:k.author,gap:12,align:"center"},e.createElement(R,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},r," • ",h))))},Pa=t=>{var{variant:a="vertical"}=t,n=J(t,["variant"]);return"horizontal"===a?e.createElement(Na,Object.assign({},n)):e.createElement(Sa,Object.assign({},n))},Da=Le.a`
|
|
1
|
+
import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,memo as o,useCallback as r,useImperativeHandle as s,forwardRef as c,createContext as d,useContext as m}from"react";import{T as p}from"./Plus-f7c5618a.js";import{b as g,c as u,d as h,e as v,f as b,h as y,i as f,j as E,k as x,l as w,m as k,n as C,o as N,p as B,q as z,r as $,s as S,t as P,u as D,H as L,T as I,g as M,P as T}from"./index.styles-3ff4ce8e.js";import{f as A,M as j}from"./utils-1ad4f186.js";import{I as O,R as _,u as F,A as H,b as R,c as W,B as U,d as V,e as G,f as Z,t as q}from"./index-d0c1cd58.js";import{T as Y}from"./index-8389442a.js";import{a as X}from"./useUniqueId-871437b9.js";import{C as K}from"./index-7bc42cef.js";import{t as Q}from"./theme-23782329.js";import{_ as J,a as ee}from"./tslib.es6-2cb84ad8.js";import{Box as te,Radio as ae,Flex as ne,rem as ie,Card as le,Group as oe,createStyles as re,Stack as se,getStylesRef as ce,useMantineTheme as de,Container as me,UnstyledButton as pe,AspectRatio as ge,ScrollArea as ue,Chip as he,Badge as ve,MultiSelect as be,Stepper as ye}from"@mantine/core";import fe from"innertext";import"@mantine/dates";import{d as Ee,L as xe,F as we,Q as ke,R as Ce,a as Ne,G as Be}from"./index-11ddf8b9.js";import{G as ze,L as $e}from"./Subot-56771801.js";import"./translationsContext-5ab0d4b4.js";import"string-format";import{useViewportSize as Se}from"@mantine/hooks";import{i as Pe,d as De}from"./index-49571e2c.js";import Le,{keyframes as Ie,css as Me}from"styled-components";import Te from"lodash/throttle";import{L as Ae}from"./index-cbeaabc6.js";import{B as je}from"./index-ac8ebb4a.js";import{I as Oe}from"./index-6a968a24.js";import _e from"html-react-parser";import{i as Fe}from"./isProduction-6599ce88.js";import{u as He}from"./useTranslations-71150e1d.js";import{format as Re,addDays as We,isBefore as Ue,startOfMonth as Ve,addMonths as Ge,subMonths as Ze,getDaysInMonth as qe,isToday as Ye,isSameDay as Xe,isWithinInterval as Ke,isAfter as Qe,isPast as Je}from"date-fns";import et from"dayjs";import"./utils-0f6dd8a5.js";import{I as tt}from"./index-c83e2c6d.js";import"./index.styled-f2aff174.js";import"./index-7f1f7516.js";import{L as at}from"./constants-2b9cc123.js";import{Z as nt,s as it,H as lt,o as ot,d as rt,P as st,T as ct,t as dt,u as mt,v as pt}from"./utils-f11e41fe.js";import{D as gt}from"./types-69671356.js";import{D as ut}from"./index-75ae81a1.js";import{S as ht}from"./index-495ffaf3.js";import{M as vt}from"./index-449bd04b.js";import{D as bt}from"./index-27926bb9.js";import{C as yt}from"./index-576a616c.js";import{useForm as ft,Controller as Et}from"react-hook-form";import{u as xt}from"./useHealthToolCache-251daff3.js";import{yupResolver as wt}from"@hookform/resolvers/yup";import{B as kt,D as Ct}from"./index-7ab2dba5.js";import{h as Nt}from"./index-3fcc7de2.js";import"./WhatsApp-712a2952.js";import{a as Bt}from"./useOutsideClick-f050c073.js";import zt from"date-fns/locale/en-US";import $t from"date-fns/locale/id";import St from"date-fns/locale/vi";import Pt from"date-fns/locale/zh-TW";import{g as Dt}from"./getSocialList-73f474a8.js";import{v4 as Lt}from"uuid";import{g as It,a as Mt}from"./routing-c72cf84b.js";import{useForm as Tt,isNotEmpty as At}from"@mantine/form";import{M as jt}from"./index-a7a6f2f8.js";import Ot from"js-cookie";import _t from"lodash/flatten";import Ft from"lodash/uniqBy";import{g as Ht}from"./cookieHelper-0c215a0b.js";import{n as Rt,a as Wt}from"./normalizeLink-7c303f96.js";var Ut="CHw-fZZ",Vt="_03U6VRS",Gt="EO828Vv";const Zt=({style:t,onClose:a,text:n,type:i,contentIcon:l,closeIcon:o,className:r,description:s})=>e.createElement("div",{className:`${Ut} ${r||""}`,style:t,"data-alert-type":i},e.createElement("div",{className:Vt},e.createElement("div",{className:"icon-title"},l,e.createElement(p,{weight:"bold",size:"label1"},n)),e.createElement(p,{weight:"regular",size:"p3"},s)),e.createElement("div",{className:Gt,onClick:a},o)),qt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},Yt=({type:n="square",size:i,avatarImg:l,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:d,className:m,width:p,height:u,alt:h})=>{const v=i?qt[i]:void 0,[b,y]=t(!1);a((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{y(!0)}))}}),[o,y]);const f=(!o&&!l||b)&&r;return e.createElement(g,{style:Object.assign(Object.assign({},d),{"--size":v?v+"px":void 0,"--width-prop":p?p+"px":void 0,"--height-prop":u?u+"px":void 0,"--background-color":s}),"data-has-max":!(!p||!u),"data-avatar-type":n,onClick:c,className:m,avatarUrl:o,"data-custom-size":!!i},l,o&&!b&&e.createElement(O,{src:o,alt:h||"avatar"}),f&&r)},Xt=({amount:t,type:a,size:n="medium",color:i="primary",icon:l,className:o})=>e.createElement(u,{"data-notification-type":a,"data-notification-size":n,"data-notification-color":i,"data-has-icon":!!l||void 0,notificationType:a,notificationSize:n,notificationColor:i,hasIcon:!!l,className:o},e.createElement("div",null,t&&e.createElement("span",null,t)," ",l&&e.createElement("div",null,l))),Kt=({style:t,children:a,className:n,size:i="lg",type:l="bold",upperCase:o,as:r="h4",color:s})=>e.createElement(h,{style:Object.assign({color:s},t),className:n,"data-size":i,"data-type":l,"data-uppercase":o,as:r},a),Qt=()=>e.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),Jt=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),ea=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"download"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),ta=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"upload"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"})),aa=({className:a,value:i,options:l,onUploadSelected:o,id:r,placeholderIcon:s,placeholder:c,style:d})=>{const[m,p]=t(!1),g=()=>p(!m),u=n(l.map((t=>"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+r+"-"+t.value,key:"uploader-dropdown-input-"+r+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),o(e.target.files)}}))));return e.createElement(v,{className:a,"data-dropdown-open":!!m,id:r,"data-has-icons":!0,style:d,onBlur:()=>p(!1),tabIndex:0},e.createElement(Qt,null),e.createElement(b,{onClick:g},s||e.createElement(Jt,null)," ",e.createElement("span",null,i&&i.value?i.label:c)),m&&e.createElement(y,{onClick:g,"data-has-icons":!0},l.map((t=>e.createElement(f,{key:`${r}-${t.value}`,"data-selected":i&&i.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+r+"-"+t.value,void(null===(n=document.querySelector(a))||void 0===n||n.click())):void((e=t.url)&&window.open(e,"_blank"));var e,a,n}},e.createElement(E,null,t.icon||"download"===t.type?e.createElement(ea,null):e.createElement(ta,null)),t.label)))),e.createElement(e.Fragment,null,u.current))},na=({className:t,columns:a,columnsDesktop:n,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,gap:o,children:r,justifyChildren:s,style:c,alignItems:d})=>e.createElement(x,{className:t,style:Object.assign({"--columns-count":a,"--columns-count-desktop":n,"--grid-template-columns":i,"--grid-template-columns-desktop":l,"--justify-children":s,"--grid-gap":o,"--align-items":d},c)},r),ia=({pagesAmount:n,activePage:i,handlePageChange:o,handleClick:r,href:s,queryPageName:c="page"})=>{const d=[...Array(n)].map(((e,t)=>t+1)),[m,p]=t(i<=4?d.slice(0,5):i>=d.length-3?d.slice(d.length-5,d.length):d.slice(i-2,i+1));return a((()=>{i<=4?p(d.slice(0,5)):i>=d.length-3?p(d.slice(d.length-5,d.length)):p(d.slice(i-2,i+1))}),[i]),e.createElement(l,null,i>4&&e.createElement(l,null,e.createElement(C,{onClick:()=>o(1)},s?e.createElement("a",{href:s,onClick:r},1):1),e.createElement(C,null,"...")),m.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===i||void 0,onClick:()=>o(t)},s?e.createElement("a",{href:A(s,t,c),onClick:r},t):t))),i<d.length-3&&e.createElement(l,null,e.createElement(C,null,"..."),e.createElement(C,{onClick:()=>o(d.length)},s?e.createElement("a",{href:A(s,d.length,c),onClick:r},d.length):d.length)))},la=({className:n,pagesAmount:l,currentPage:o,onChange:r,onClick:s,style:c,href:d,queryPageName:m="page"})=>{const p=[...Array(l)].map(((e,t)=>t+1)),[g,u]=t(o),h=i((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),v=l-1,b=e=>{e<=l&&e>0&&(u(e),r(e))},y=e=>{s&&s(e)};return a((()=>{u(o)}),[o]),e.createElement(w,{className:n,style:c},e.createElement(k,{className:"prev-page",onClick:()=>b(g-1),"data-last-page":1===g||void 0},h?e.createElement("a",{href:A(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),p.length>8?e.createElement(ia,{pagesAmount:l,activePage:g,handlePageChange:b,handleClick:y,href:h,queryPageName:m}):p.map((t=>e.createElement(C,{key:`pagination+${t}`,"data-page-active":t===g||void 0,onClick:()=>b(t)},h?e.createElement("a",{href:A(h,t,m),onClick:y},t):t))),e.createElement(k,{className:"next-page",onClick:()=>b(g+1),"data-last-page":g===v+1||void 0},h?e.createElement("a",{href:A(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},oa=({size:t="small",label:a,name:n,checked:i,value:l,className:o,isDisabled:r=!1,onChange:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>{const p=!!d&&!!c&&!!m?{"data-event-category":c,"data-event-action":d,"data-event-label":m}:{};return e.createElement(_,Object.assign({size:"small"===t?"md":"lg",label:a,name:n,checked:i,value:l,className:o,disabled:r,onChange:e=>null==s?void 0:s(e.target.value)},p))},ra=({type:t,children:a,style:n,isInline:i,isSquared:l=!1,className:o,isLight:r,hasMorePadding:s,isLink:c,isSelected:d,textProps:m={size:"sm"}})=>{const p=m.color?{"--text-props-color":m.color}:{};return e.createElement(N,{"data-is-squared":l||void 0,"data-tag-type":t,"data-is-light":r||void 0,"data-has-more-padding":s||void 0,"data-is-inline":i||void 0,style:Object.assign(Object.assign({},n),p),className:o,"data-is-selected":d||void 0,"data-is-link":c||void 0,tagType:t,isInline:i,tagHasMorePadding:s,tagIsLight:r,tagIsSquared:l,tagIsALink:c},e.createElement(Y,Object.assign({},m),a))},sa=({className:t,id:a,onChange:n,checked:i,style:l,label:o})=>e.createElement(B,{className:t,style:l},e.createElement("input",{type:"checkbox",id:a,onChange:n,checked:i}),e.createElement("label",{htmlFor:a},e.createElement(z,null),o&&e.createElement($,null,o))),ca=({label:t,name:a,checked:n,className:i,isDisabled:l,onChange:o,value:r,isRectangle:s,inputDataTestId:c,siteType:d})=>e.createElement(S,{className:i,"data-disabled":l||void 0,"data-is-rectangle":s||void 0,"data-label-text":t,"data-theme":d},e.createElement("input",{type:"checkbox",checked:n,name:a,onChange:()=>o(r,!n),disabled:l,value:r,id:`${a}-${r}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${r}`},t)),da=t=>e.createElement("svg",Object.assign({},t,{viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),ma=t=>e.createElement("svg",Object.assign({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),pa=t=>{const a=X();return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 24 24",fill:"none"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:`url(#${a})`},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},ga=({gap:a=2,size:n=24,star:i,totalStars:l=5,onSelect:o,hideEmptyStars:r,style:s,className:c})=>{const d=Math.floor(i),m=i-d>=.5?1:0,[p,g]=t(null),u=p||d,h=p?0:m;return e.createElement(P,{"data-selectable":!!o,style:Object.assign({"--gap":a,"--star-size":n},s),className:c},Array.from({length:r?d+m:l}).map(((t,a)=>{const n=()=>!!o&&g(a+1),i=()=>!!o&&g(null);return a+1<=u?e.createElement(ma,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):a+1===u+h?e.createElement(pa,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):e.createElement(da,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i})})))},ua=l=>{var{label:o,availableValue:r,styles:s,isBaby:c,genderValue:d={male:"male",female:"female"}}=l,m=J(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=He(),{classes:u,cx:h}=D(void 0,{name:"GenderOptionControl",styles:s}),[v,b]=t(),y=n(null),f=i((()=>[{value:d.male,label:g(c?"gender.boy":"gender.male"),icon:K.getAssetPath(c?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:d.female,label:g(c?"gender.girl":"gender.female"),icon:K.getAssetPath(c?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return a((()=>{b(r)}),[r]),e.createElement(te,{ref:y,className:u.root},e.createElement(ae.Group,Object.assign({className:"radio-group",label:e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o||g(c?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},m,{classNames:{error:u.groupErr}}),e.createElement(ne,{className:h(u.wrapper)},f.map((t=>e.createElement(ae,Object.assign({className:"gender-item",classNames:{root:u.itemRoot,labelWrapper:u.itemLabelWrapper,label:u.itemLabel,inner:u.itemInner},key:t.value,value:t.value},v&&t.value!==v&&{disabled:!0},{label:e.createElement(ne,{gap:ie(8),align:"center",justify:"center",sx:{zIndex:0}},e.createElement("img",{src:t.icon,className:"gender-image",alt:"female",loading:"lazy"}),e.createElement(p,{size:"p3"},t.label))})))))))};var ha="PiqKaXk",va="HgbW6-m",ba="_6lkfLYy",ya="j7c-onH";const fa=({avatarImg:t,authorName:a,authorLink:n,uploadTime:i,size:l})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":l},t),e.createElement("div",{className:"poster","data-is-disabled-url":!n},e.createElement(p,{size:"lg"===l?"p3":"p4"},e.createElement("a",{href:n},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,i))))),Ea=({isMobile:t,avatarImg:a,name:n,link:i,size:l="lg",specialty:o})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":l},a),e.createElement("div",{className:"expert","data-is-disabled-url":!i},t?e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(L,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n),e.createElement(p,{color:Q.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement(L,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n))):e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(L,{tag:"h6",className:"expert__name",color:Q.colors.gray600},n),e.createElement(p,{color:Q.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement("h6",{color:Q.colors.gray600,className:`${ha} expert__name`},n),e.createElement(p,{color:Q.colors.gray500,size:"p4",className:"specialty"},o)))))),xa=o((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),wa=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),ka=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),Ca=({articleLink:t,authorLink:a,authorName:n,avatarImg:i,banner:l,categoryLink:o,categoryName:r,className:s,dataEventActionForBanner:c,dataEventActionForBookmark:d,dataEventActionForCategory:m,dataEventActionForTitle:g,dataEventCategoryForBanner:u,dataEventCategoryForBookmark:h,dataEventCategoryForCategory:v,dataEventCategoryForTitle:b,dataEventLabelForBanner:y,dataEventLabelForBookmark:f,dataEventLabelForCategory:E,dataEventLabelForTitle:x,direction:w="horizontal",hasAffiliate:k,isBookmark:C=!1,isBookmarkDisplayed:N=!0,isMobile:B=!0,onBookmark:z,onClickCategoryName:$,section:S="normal",size:P="md",specialty:D,style:I,styleBanner:M,styleLabel:T,styleTitle:A,text:j,title:O,type:_="author",uploadTime:F,articleLinkTarget:H,isPremium:R})=>{const W=e=>{e.stopPropagation(),null==z||z()},U="lg"===P&&"expert"===_?"h4":"lg"===P&&"home"===S?B?"h4":"h3":"lg"===P?"h4":"h5",V="lg"===P?"p3":"p4",G=B||"home"!==S||"lg"!==P||"author"!==_?"c2":"c1";return e.createElement("article",{className:`${ba} ${s||""}`,"data-size":P,style:I,"data-direction":w,"data-is-expert":"expert"===_||void 0},e.createElement("div",{className:"banner",style:M},e.createElement("a",{className:va,"data-event-category":u,"data-event-action":c,"data-event-label":y,href:t||"#",target:H},l),R&&e.createElement("img",{loading:"lazy",className:"premium",src:K.getAssetPath("premium-crown.svg")}),k&&e.createElement(xa,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(p,{style:T,className:"label",size:G,weight:"caption"},e.createElement("a",{className:va,"data-event-category":v,"data-event-action":m,"data-event-label":E,href:o||"#",onClick:$},r),N&&e.createElement("a",{className:"bookmark",onClick:W},C?e.createElement(wa,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(ka,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))),e.createElement(L,{tag:U,style:A,className:"title",as:"lg"===P?"h2":"h3"},e.createElement("a",{className:va,"data-event-category":b,"data-event-action":g,"data-event-label":x,href:t||"#",target:H},O)),j&&e.createElement("a",{href:t||"#",target:H},e.createElement(p,{size:V,className:"text"},j))),e.createElement("div",{className:"footer"},"author"===_?e.createElement(fa,{size:P,avatarImg:i,authorName:n,authorLink:a,uploadTime:F,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(Ea,{size:P,isMobile:B,avatarImg:i,specialty:D,name:n,link:a,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))))},Na=t=>{var a,n,i,{article:l,author:o,authorAvatar:r,badge:s="",hideDescription:c=!1,isBookmarked:d=!1,onBookmark:m,time:g,tracking:u}=t,h=J(t,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:v}=F();return console.log({article:l}),e.createElement(le,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},h),e.createElement(le.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},e.createElement("img",{src:(v?l.featureImageMobile:l.featureImage)||l.featureImage,alt:l.postName,style:{width:"100%"},loading:"lazy"})),e.createElement(le.Section,null,e.createElement(oe,{position:"apart",mt:16,mb:4},e.createElement(H,{href:(null===(a=null==l?void 0:l.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==l?void 0:l.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(te,{sx:{cursor:"pointer"},role:"button",onClick:m},d?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{size:c?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},l.postTitle||l.postName||""),!c&&e.createElement(p,{size:"p2",mb:16,lineClamp:3,className:"pointer"},fe(l.excerpt||l.description||(null===(i=l.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),e.createElement(ne,{gap:12,align:"center"},e.createElement(R,{size:32,src:r,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:s,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},o," • ",g))))};var Ba=re(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const za=648/440,$a=1.5,Sa=t=>{var a,n,l,{article:o,author:r,authorAvatar:s,badge:c="",bannerImageWrapProps:d,hideDescription:m=!1,isBookmarked:g=!1,onBookmark:u,time:h,tracking:v,classNames:b,styles:y,unstyled:f,className:E}=t,x=J(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:w}=F(),{classes:k,cx:C}=Ba({},{name:"ArticleCard",classNames:b,styles:y,unstyled:f}),N=i((()=>m?$a:za),[m]);return e.createElement(le,Object.assign({className:C(k.root,E),padding:"lg",radius:0},x),e.createElement(le.Section,{className:C(k.image,"pointer")},e.createElement(W,Object.assign({ratio:N},d),e.createElement("img",{src:(w?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),e.createElement(le.Section,null,e.createElement(oe,{position:"apart",mt:16,mb:4},e.createElement(H,{className:k.category,href:(null===(a=null==o?void 0:o.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==o?void 0:o.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(te,{sx:{cursor:"pointer"},role:"button",onClick:u},g?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{className:C(k.title,"pointer"),size:m?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!m&&e.createElement(p,{className:C(k.description,"pointer"),size:"p2",mb:16,lineClamp:3},fe(o.excerpt||o.description||(null===(l=o.postContent)||void 0===l?void 0:l.split("\r\n")[0])||"")),e.createElement(ne,{className:k.author,gap:12,align:"center"},e.createElement(R,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},r," • ",h))))},Pa=t=>{var{variant:a="vertical"}=t,n=J(t,["variant"]);return"horizontal"===a?e.createElement(Na,Object.assign({},n)):e.createElement(Sa,Object.assign({},n))},Da=Le.a`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 125px;
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{enUS as o,vi as e,km as l,hi as i,id as a,ms as n,th as t,zhTW as s}from"date-fns/locale";import{L as E}from"./Subot-7273a528.js";import{i as c}from"./isProduction-b5a4232a.js";const h={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},I={HELLO_HEALTH_GROUP:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:E.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:E.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:E.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:E.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:E.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:E.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:E.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:E.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:E.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:E.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};var T;!function(o){o.HPV="hpv"}(T||(T={}));const r={[E.Vietnam]:{[T.HPV]:"hpv-vaccine"},[E.Indonesia]:{[T.HPV]:"deteksi-dini-hpv"}},O="tl-PH"===process.env.NEXT_PUBLIC_DEPLOY_LOCALE?"/fil":"",p=process.env.NEXT_PUBLIC_SSO,_="userGeoLocationCoordinates",m={"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","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},A={[E.Vietnam]:"hellobacsi.com",[E.Indonesia]:"hellosehat.com",[E.Malaysia]:"hellodoktor.com",[E.Cambodia]:"hellokrupet.com",[E.PhilippinesEnglish]:"hellodoctor.com.ph",[E.PhilippinesTagalog]:"hellodoctor.com.ph",[E.Thailand]:"hellokhunmor.com",[E.Myanmar]:"hellosayarwon.com",[E.Taiwan]:"helloyishi.com.tw",[E.India]:"helloswasthya.com"},u={"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",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"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",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"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",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"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",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-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:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},y={"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/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"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",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-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/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},N="user",S=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],C=["vi-VN"],g=["vi-VN","id-ID"],R=["vi-VN","id-ID"],L={"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"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var M;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(M||(M={}));const P={[E.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[E.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},d="hhg_user_token",H={[E.PhilippinesEnglish]:o,[E.Vietnam]:e,[E.Cambodia]:l,[E.India]:i,[E.Indonesia]:a,[E.Myanmar]:o,[E.Malaysia]:n,[E.Thailand]:t,[E.Taiwan]:s},Y="https://cdn.hellohealthgroup.com/countries",G="_ga",D="YYYY-MM-DD",b="dd-MM-yyyy";var k=Object.freeze({__proto__:null,basePath:O,SSO_URL:p,USER_GEOLOCATION_COORDINATES_COOKIE:_,domainLocales:m,MAP_DOMAIN_BY_LOCALE:A,LOCALE_SPECS:u,STATIC_PAGES:y,UP_BASEPATH:N,TOGETHER_LOCALES:S,ECOM_LOCALES:C,CARE_LOCALES:g,CARE_BOOKING_LOCALES:R,FAVICONS:L,get QUERY_HEALTH_TOOL(){return M},ISO_FORMAT:P,BEARER_TOKEN_COOKIE:d,DATE_FNS_LOCALE:H,CDN_ADDRESS:Y,GA_TOKEN_COOKIE:"_ga",API_DATE_FORMAT:D,DATE_FNS_DATE_FORMAT:b,siteHost:h,siteOptions:I,get RISK_SCREENER_NAME(){return T},RISK_SCREENER_SLUG:r,isProduction:c});export{D as A,d as B,g as C,H as D,C as E,L as F,G,P as I,u as L,A as M,M as Q,T as R,y as S,S as T,_ as U,r as a,R as b,Y as c,m as d,O as e,p as f,N as g,b as h,k as i,h as j,I as s};
|
|
1
|
+
import{enUS as o,vi as e,km as l,hi as i,id as a,ms as n,th as t,zhTW as s}from"date-fns/locale";import{L as E}from"./Subot-56771801.js";import{i as c}from"./isProduction-6599ce88.js";const h={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},I={HELLO_HEALTH_GROUP:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:E.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:E.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:E.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:E.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:E.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:E.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:E.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:E.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:E.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:E.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};var T;!function(o){o.HPV="hpv"}(T||(T={}));const r={[E.Vietnam]:{[T.HPV]:"hpv-vaccine"},[E.Indonesia]:{[T.HPV]:"deteksi-dini-hpv"}},O="tl-PH"===process.env.NEXT_PUBLIC_DEPLOY_LOCALE?"/fil":"",p=process.env.NEXT_PUBLIC_SSO,_="userGeoLocationCoordinates",m={"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","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},A={[E.Vietnam]:"hellobacsi.com",[E.Indonesia]:"hellosehat.com",[E.Malaysia]:"hellodoktor.com",[E.Cambodia]:"hellokrupet.com",[E.PhilippinesEnglish]:"hellodoctor.com.ph",[E.PhilippinesTagalog]:"hellodoctor.com.ph",[E.Thailand]:"hellokhunmor.com",[E.Myanmar]:"hellosayarwon.com",[E.Taiwan]:"helloyishi.com.tw",[E.India]:"helloswasthya.com"},u={"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",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"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",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"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",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"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",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"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",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-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:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},y={"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/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"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",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"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/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-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/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},N="user",S=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],C=["vi-VN"],g=["vi-VN","id-ID"],R=["vi-VN","id-ID"],L={"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"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var M;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(M||(M={}));const P={[E.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[E.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},d="hhg_user_token",H={[E.PhilippinesEnglish]:o,[E.Vietnam]:e,[E.Cambodia]:l,[E.India]:i,[E.Indonesia]:a,[E.Myanmar]:o,[E.Malaysia]:n,[E.Thailand]:t,[E.Taiwan]:s},Y="https://cdn.hellohealthgroup.com/countries",G="_ga",D="YYYY-MM-DD",b="dd-MM-yyyy";var k=Object.freeze({__proto__:null,basePath:O,SSO_URL:p,USER_GEOLOCATION_COORDINATES_COOKIE:_,domainLocales:m,MAP_DOMAIN_BY_LOCALE:A,LOCALE_SPECS:u,STATIC_PAGES:y,UP_BASEPATH:N,TOGETHER_LOCALES:S,ECOM_LOCALES:C,CARE_LOCALES:g,CARE_BOOKING_LOCALES:R,FAVICONS:L,get QUERY_HEALTH_TOOL(){return M},ISO_FORMAT:P,BEARER_TOKEN_COOKIE:d,DATE_FNS_LOCALE:H,CDN_ADDRESS:Y,GA_TOKEN_COOKIE:"_ga",API_DATE_FORMAT:D,DATE_FNS_DATE_FORMAT:b,siteHost:h,siteOptions:I,get RISK_SCREENER_NAME(){return T},RISK_SCREENER_SLUG:r,isProduction:c});export{D as A,d as B,g as C,H as D,C as E,L as F,G,P as I,u as L,A as M,M as Q,T as R,y as S,S as T,_ as U,r as a,R as b,Y as c,m as d,O as e,p as f,N as g,b as h,k as i,h as j,I as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{useState as a,useEffect as e,useMemo as t,useCallback as l}from"react";import{v as i,w as d}from"./index.styles-
|
|
1
|
+
import o,{useState as a,useEffect as e,useMemo as t,useCallback as l}from"react";import{v as i,w as d}from"./index.styles-3ff4ce8e.js";import{_ as s,a as n}from"./tslib.es6-2cb84ad8.js";import{u as r}from"./useTranslations-71150e1d.js";import{B as c}from"./index-d0c1cd58.js";import{P as v}from"./paths-a1da3d54.js";import{a as u}from"./constants-2b9cc123.js";import{d as m}from"./index-11ddf8b9.js";import{b as p,h as g}from"./utils-f11e41fe.js";import{i as b}from"./isProduction-6599ce88.js";const y=({type:a="solid",className:e,style:t})=>o.createElement(i,{style:t,className:e,"data-diver-type":a,dividerType:a}),f={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},E=a=>{var{siteType:e,role:t,title:l,styles:i,className:n}=a,c=s(a,["siteType","role","title","styles","className"]);const{t:v}=r(),u=t?(o=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((a=>a===o)))(t):"",{classes:m,cx:p}=d(void 0,{name:"AuthorBadge",styles:i});return u&&f[u]?o.createElement("div",Object.assign({className:p(m.root,n),"data-label-type":u,"data-is-marrybaby":"marryBaby"===e},c),l||v(f[u])):null};var h="Dudns9-";const A=({value:t,choices:l,onChange:i})=>{const[d,s]=a(t);return e((()=>{s(t)}),[t]),o.createElement("div",{className:h},l.map(((a,e)=>o.createElement(c,{dataEventCategory:a.dataEventCategory,dataEventAction:a.dataEventAction,dataEventLabel:a.dataEventLabel,size:"sm",variant:a.value===d?"primary":"tertiary",key:e,onClick:()=>{s(a.value),null==i||i(a.value)}},a.label||""))))},T=e=>{var{label:i,bookingId:d,bookingType:y="doctor",locale:f="vi-VN"}=e,E=s(e,["label","bookingId","bookingType","locale"]);const{t:h}=r(),[A,T]=a(!1),_=t((()=>"undefined"!=typeof window?window.location.href:""),[]),C=l((()=>n(void 0,void 0,void 0,(function*(){var o,a,e,t,l,i,s,n,r,c,E,h,A,_,C;const j="doctor"===y?v.GET_DOCTOR_DETAIL:"hospital"===y?v.GET_HOSPITAL_DETAIL:"service"===y?v.GET_SERVICE_DETAIL:"";try{T(!0);const v=yield p(g(j,{id:d,site:m[f]}),"get");if(1===(null==v?void 0:v._status)){const d="doctor"===y?{id:null===(a=null===(o=null==v?void 0:v._data)||void 0===o?void 0:o.doctor)||void 0===a?void 0:a.id,slug:null===(t=null===(e=null==v?void 0:v._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.slug,localSlug:null===(l=u[f])||void 0===l?void 0:l.DOCTOR}:"hospital"===y?{id:null===(s=null===(i=null==v?void 0:v._data)||void 0===i?void 0:i.branch)||void 0===s?void 0:s.id,slug:null===(r=null===(n=null==v?void 0:v._data)||void 0===n?void 0:n.branch)||void 0===r?void 0:r.slug,localSlug:null===(c=u[f])||void 0===c?void 0:c.HOSPITAL}:{id:null===(h=null===(E=null==v?void 0:v._data)||void 0===E?void 0:E.service)||void 0===h?void 0:h.id,slug:null===(_=null===(A=null==v?void 0:v._data)||void 0===A?void 0:A.service)||void 0===_?void 0:_.slug,localSlug:null===(C=u[f])||void 0===C?void 0:C.SERVICE};window.location.href=`https://${b?"":"discover."}${m[f]}/care/${d.localSlug}/${d.slug}-${d.id}/`}else T(!1)}catch(o){console.log(o),T(!1)}}))),[]);return d&&y?o.createElement(c,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:_,onClick:C,loading:A},E),i||h("careBooking.bookAnAppointment")):null};export{E as A,A as B,y as D,T as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"react";import{useMantineTheme as o}from"@mantine/core";import{t as a}from"./theme-
|
|
1
|
+
import e from"react";import{useMantineTheme as o}from"@mantine/core";import{t as a}from"./theme-23782329.js";import r from"styled-components";const i=r.div`
|
|
2
2
|
--dropdown-padding: 12px 18px 12px 16px;
|
|
3
3
|
position: relative;
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -134,4 +134,4 @@ import e from"react";import{useMantineTheme as o}from"@mantine/core";import{t as
|
|
|
134
134
|
top: 12px;
|
|
135
135
|
left: 16px;
|
|
136
136
|
pointer-events: none;
|
|
137
|
-
`,p=({className:a,value:r,options:p,onChange:c=(()=>{}),id:x,placeholderIcon:
|
|
137
|
+
`,p=({className:a,value:r,options:p,onChange:c=(()=>{}),id:x,placeholderIcon:g,placeholder:b,style:u,size:h="lg",groupedWithLabel:v,disabled:m,dropdownLabelTrackingAttributes:w={},isNativeSelect:f=!1})=>{const k=o(),[C,y]=e.useState(!1),E=()=>!m&&y(!C);if(f){const o="object"==typeof(null==r?void 0:r.value)&&r.value instanceof Date?r.value.toString():null==r?void 0:r.value;return e.createElement(i,{color:k.fn.primaryColor(),shadowColor:k.colors[k.primaryColor][2],as:"select","data-is-native":"true",value:o||void 0,disabled:m,onChange:e=>{if("string"==typeof e.target.value){const o=p.find((o=>o.value===e.target.value));o&&c(o)}}},b&&e.createElement("option",{value:b,disabled:!0,selected:!0},b),p.map((o=>e.createElement("option",{key:`${x}-${o.value}`,value:o.value,disabled:!!o.disabled&&o.disabled},o.label))))}return e.createElement(i,{color:k.fn.primaryColor(),shadowColor:k.colors[k.primaryColor][2],className:a,"data-dropdown-open":C||void 0,"data-size":h,id:x,"data-has-icons":!!g,style:u,onBlur:()=>y(!1),tabIndex:0,"data-disabled":m},!!v&&e.createElement(s,null,v),e.createElement(t,Object.assign({color:k.fn.primaryColor(),shadowColor:k.colors[k.primaryColor][2],onClick:E,className:v&&"with-label"},w),g," ",e.createElement("span",null,r&&r.value?r.label:b)),C&&e.createElement(d,{onClick:E,"data-has-icons":!!g},p.map((o=>e.createElement(l,{key:`${x}-${o.value}`,"data-selected":r&&r.value===o.value||void 0,onClick:()=>!o.disabled&&!m&&(null==c?void 0:c(o)),"data-disabled":!!o.disabled&&o.disabled},o.icon&&e.createElement(n,null,o.icon),o.label)))))};export{p as D};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useContext as i,useState as t}from"react";import{M as o}from"./utils-
|
|
1
|
+
import e,{useContext as i,useState as t}from"react";import{M as o}from"./utils-1ad4f186.js";import l from"styled-components";import{t as n}from"./theme-23782329.js";import{_ as a}from"./tslib.es6-2cb84ad8.js";import{T as r}from"./utils-f11e41fe.js";const d=l.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 50%;
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-2cb84ad8.js";import t from"react";import{S as s,a}from"./index.styled-f2aff174.js";const r=a=>{var{type:r,color:l,style:o}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},l&&{"--text-color":l}),o)},c))},l=s=>{var{type:r,color:l,style:o}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},o),l&&{"--text-color":l})},c))};export{l as M,r as a};
|