@hhgtech/hhg-components 1.28.45 → 1.28.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/build/animation-1e9aff6a.js +81 -0
- package/build/babyGrowth.js +24 -24
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/{constants-eed0df85.js → constants-28db3174.js} +1 -1
- package/build/{constants-715f497a.js → constants-627c575a.js} +2 -2
- package/build/constants.js +1 -1
- package/build/{core-053d2b2b.js → core-19b328be.js} +1 -1
- package/build/dataTransform-308ec1d0.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/animation-03daa77e.js +81 -0
- package/build/esm/babyGrowth.js +38 -38
- 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-995212e1.js → constants-414e0341.js} +1 -1
- package/build/esm/{constants-474a60fc.js → constants-e35c5696.js} +2 -2
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-a9271475.js → core-091d7f79.js} +1 -1
- package/build/esm/dataTransform-6f1823e1.js +1 -0
- 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-37333454.js +1 -0
- package/build/esm/{getSocialList-2b54a130.js → getSocialList-a6c965a8.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-4cc27c0a.js → index-1bf1317e.js} +9 -9
- package/build/esm/{index-fdc4fb0f.js → index-34cf1092.js} +1 -1
- package/build/esm/{index-7678ada1.js → index-3d2b9817.js} +1 -1
- package/build/esm/index-3e89f917.js +1 -0
- package/build/esm/{index-cd710e7d.js → index-4786b57c.js} +1 -1
- package/build/esm/{index-ab03b9dd.js → index-49c2a65e.js} +1 -1
- package/build/esm/index-5cacbac8.js +1 -0
- package/build/esm/index-638a744e.js +1 -0
- package/build/esm/index-73532662.js +1 -0
- package/build/esm/index-7b8714ba.js +1 -0
- package/build/esm/index-865973f4.js +375 -0
- package/build/esm/{index-2eaf28c4.js → index-92506b05.js} +1 -1
- package/build/esm/{index-1cfc85b4.js → index-9e5a2805.js} +3 -3
- package/build/esm/index-a0bcdf6a.js +1 -0
- package/build/esm/index-bb8dc02f.js +1 -0
- package/build/esm/{index-a454d80b.js → index-bcca5543.js} +1 -1
- package/build/esm/index-c1cb45b2.js +1 -0
- package/build/esm/index-cb13973d.js +50 -0
- package/build/esm/index-cc5ea46f.js +137 -0
- package/build/esm/index-d18cfff8.js +2748 -0
- package/build/esm/index-d6dac1a0.js +177 -0
- package/build/esm/index-f21deeb6.js +1430 -0
- package/build/esm/index-fd0e0617.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-4098b19f.js → index.styled-b876c90a.js} +3 -3
- package/build/esm/index.styles-00233f7a.js +839 -0
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +34 -34
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-d3019505.js → routing-5b211351.js} +1 -1
- package/build/esm/subot.js +124 -124
- package/build/esm/together.js +1 -1
- package/build/esm/types-21b8927e.js +3004 -0
- package/build/esm/{types-56ff87b5.js → types-242705e6.js} +10 -10
- package/build/esm/types.js +1 -1
- package/build/esm/useCategory-2e217da0.js +1 -0
- package/build/esm/{useHealthToolCache-4a39e9dc.js → useHealthToolCache-011e34e2.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-80551f6b.js → usePlacesAutocomplete-ed4983f5.js} +1 -1
- package/build/esm/{useTranslations-2b415154.js → useTranslations-80f9bf98.js} +1 -1
- package/build/esm/{utils-9dae9f7b.js → utils-19ad9237.js} +2 -2
- package/build/esm/utils-39fb1c8c.js +7 -0
- package/build/esm/utils-3f639011.js +1 -0
- package/build/esm/{utils-6577ea25.js → utils-d4e0e9b5.js} +1 -1
- package/build/esm/vaccination.js +40 -40
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-3e4543ff.js +1 -0
- package/build/{getSocialList-b951173d.js → getSocialList-196c323b.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-f85e80c5.js → index-065c9097.js} +1 -1
- package/build/index-07dff904.js +1 -0
- package/build/index-0c7093ea.js +50 -0
- package/build/{index-fe775c96.js → index-0f6355d4.js} +1 -1
- package/build/index-19e259ce.js +1 -0
- package/build/index-2420eee5.js +1430 -0
- package/build/index-425f3390.js +1 -0
- package/build/index-43df25b1.js +1 -0
- package/build/{index-6e685d2b.js → index-4a8b5e48.js} +1 -1
- package/build/index-4c4d7568.js +137 -0
- package/build/{index-72cfe602.js → index-4de92198.js} +4 -4
- package/build/{index-b23382c3.js → index-5385e211.js} +1 -1
- package/build/{index-f1338b36.js → index-6f8ff7df.js} +1 -1
- package/build/index-7154350f.js +375 -0
- package/build/{index-b3478b6c.js → index-8a21ecb2.js} +1 -1
- package/build/index-8e6644eb.js +1 -0
- package/build/{index-5f2adc06.js → index-9003442e.js} +1 -1
- package/build/{index-718b4bad.js → index-96dd78ba.js} +3 -3
- package/build/index-beef0ff7.js +1 -0
- package/build/index-cbbe3154.js +2748 -0
- package/build/{index-d14172a4.js → index-d27a3f5f.js} +1 -1
- package/build/{index-cdf087ee.js → index-e13a4f9a.js} +1 -1
- package/build/index-ff74de8e.js +177 -0
- package/build/index.js +1 -1
- package/build/{index.styled-2bb5f5a2.js → index.styled-a45b7854.js} +1 -1
- package/build/index.styles-ce607f17.js +839 -0
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +34 -34
- package/build/pwg.js +2 -2
- package/build/{routing-9c9a4f25.js → routing-46446fba.js} +1 -1
- package/build/subot.js +123 -123
- package/build/together.js +1 -1
- package/build/types-d2335814.js +3004 -0
- package/build/{types-adecb2ce.js → types-e54d8d93.js} +10 -10
- package/build/types.js +1 -1
- package/build/useCategory-c99469f2.js +1 -0
- package/build/{useHealthToolCache-260b51e2.js → useHealthToolCache-dc437f4f.js} +1 -1
- package/build/{usePlacesAutocomplete-39be4478.js → usePlacesAutocomplete-55e04a25.js} +1 -1
- package/build/{useTranslations-1ddacded.js → useTranslations-b435b717.js} +1 -1
- package/build/utils-469dda3f.js +1 -0
- package/build/{utils-871f6c88.js → utils-83803365.js} +2 -2
- package/build/{utils-a5d09d21.js → utils-9778a239.js} +1 -1
- package/build/utils-c18ec2df.js +1 -0
- package/build/vaccination.js +33 -33
- package/package.json +7 -3
- package/build/dataTransform-d5d1a86d.js +0 -1
- package/build/esm/dataTransform-f4d63a0a.js +0 -1
- package/build/esm/getDynamicHealthTool-9b662a1a.js +0 -1
- package/build/esm/index-303e2009.js +0 -1
- package/build/esm/index-3c4ac2ae.js +0 -1
- package/build/esm/index-4bc5ecbb.js +0 -1
- package/build/esm/index-55d2faa0.js +0 -1
- package/build/esm/index-608b4a88.js +0 -177
- package/build/esm/index-6f066011.js +0 -1
- package/build/esm/index-95a46cf3.js +0 -1
- package/build/esm/index-993a5f79.js +0 -1
- package/build/esm/index-a2dcf4e9.js +0 -1
- package/build/esm/index-baaa911b.js +0 -1
- package/build/esm/index-be8e7751.js +0 -1
- package/build/esm/index-cc519ac7.js +0 -3122
- package/build/esm/index-d17ea22d.js +0 -1
- package/build/esm/index-d343bc50.js +0 -1
- package/build/esm/index-ff10bc28.js +0 -1
- package/build/esm/index.styled-156505c7.js +0 -1430
- package/build/esm/index.styled-3e11e657.js +0 -3140
- package/build/esm/index.styled-be084b87.js +0 -50
- package/build/esm/index.styles-caebb95e.js +0 -846
- package/build/esm/screenSizeContext-8e3cd726.js +0 -81
- package/build/esm/types-f3a821e7.js +0 -1
- package/build/esm/useCategory-e47c3929.js +0 -1
- package/build/esm/useRafState-8fe79e7a.js +0 -1
- package/build/getDynamicHealthTool-ecfb21b0.js +0 -1
- package/build/index-0988dfe4.js +0 -1
- package/build/index-0f3e6076.js +0 -1
- package/build/index-10d9fdff.js +0 -177
- package/build/index-24113bb4.js +0 -1
- package/build/index-3489608d.js +0 -1
- package/build/index-4bfad06d.js +0 -1
- package/build/index-7b85f299.js +0 -1
- package/build/index-901812ad.js +0 -3122
- package/build/index-c22d32f6.js +0 -1
- package/build/index-d74ab92f.js +0 -1
- package/build/index-db0da298.js +0 -1
- package/build/index-f4356d3b.js +0 -1
- package/build/index.styled-39310ce9.js +0 -50
- package/build/index.styled-3a1748a5.js +0 -3140
- package/build/index.styled-75539e3d.js +0 -1430
- package/build/index.styles-d3c65e64.js +0 -846
- package/build/screenSizeContext-83eeed99.js +0 -81
- package/build/types-582a67ed.js +0 -1
- package/build/useCategory-957ea2a8.js +0 -1
- package/build/useRafState-8a41d548.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-3ccdbf2f.js → BMI_BOYS.percentile.monthly-0eb54c7c.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-003704d5.js → BMI_BOYS.percentile.weekly-b7bde0b1.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-51f6c930.js → BMI_BOYS.percentile.yearly-2aa9ad44.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-05504085.js → BMI_BOYS.zscore.monthly-97389f6d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-2a93a8db.js → BMI_BOYS.zscore.weekly-bc5a17ee.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-37291e62.js → BMI_BOYS.zscore.yearly-95e1abf3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-97288e63.js → BMI_GIRLS.percentile.monthly-8a628c8b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-c701d6ff.js → BMI_GIRLS.percentile.weekly-c3423d0b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-edee3575.js → BMI_GIRLS.percentile.yearly-30c05aa5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-0ac77300.js → BMI_GIRLS.zscore.monthly-e81868f9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-f726c4f9.js → BMI_GIRLS.zscore.weekly-98365971.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-c1af9dbd.js → BMI_GIRLS.zscore.yearly-34dac101.js} +0 -0
- /package/build/{ChevronDown-e26b6333.js → ChevronDown-77fab19e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c1dbc6d4.js → HEAD CIRCUM_BOYS.percentile.monthly-f49c4a46.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9c97d194.js → HEAD CIRCUM_BOYS.percentile.weekly-72afd132.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-84f770fb.js → HEAD CIRCUM_BOYS.percentile.yearly-ab0deda0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-8522b577.js → HEAD CIRCUM_BOYS.zscore.monthly-fbd5f8c4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d05b4957.js → HEAD CIRCUM_BOYS.zscore.weekly-87f840f6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d1d2d682.js → HEAD CIRCUM_BOYS.zscore.yearly-9a7dd00c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bc7f8e45.js → HEAD CIRCUM_GIRLS.percentile.monthly-679b8839.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e24f18fa.js → HEAD CIRCUM_GIRLS.percentile.weekly-b4e20015.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-65fe9b8f.js → HEAD CIRCUM_GIRLS.percentile.yearly-9cd60765.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-cc51585e.js → HEAD CIRCUM_GIRLS.zscore.monthly-ab6de2c6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-0cdef99a.js → HEAD CIRCUM_GIRLS.zscore.weekly-7d38c523.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b4df0cb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-eb9d57e8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-42701f3c.js → HEIGHT_BOYS.percentile.monthly-41de847f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-dde65fbd.js → HEIGHT_BOYS.percentile.weekly-62b868f0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-00d00cf7.js → HEIGHT_BOYS.percentile.yearly-e2c7bb82.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-9b22b188.js → HEIGHT_BOYS.zscore.monthly-5d6cc9db.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-1e042b69.js → HEIGHT_BOYS.zscore.weekly-d7b99302.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-0c232fd2.js → HEIGHT_BOYS.zscore.yearly-e5699025.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-1dc63069.js → HEIGHT_GIRLS.percentile.monthly-bac0286d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-4b58bd05.js → HEIGHT_GIRLS.percentile.weekly-6999925f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-9fc93f07.js → HEIGHT_GIRLS.percentile.yearly-ebfa2c19.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-35400da4.js → HEIGHT_GIRLS.zscore.monthly-39be4dd2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-dd1f44e2.js → HEIGHT_GIRLS.zscore.weekly-207cf2f5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-a69b75ca.js → HEIGHT_GIRLS.zscore.yearly-265aafc2.js} +0 -0
- /package/build/{Subot-695ffc58.js → Subot-54546cbb.js} +0 -0
- /package/build/{Visible-72e550ed.js → Visible-27b623f0.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-2dea455a.js → WEIGHT_BOYS.percentile.monthly-9ca3a316.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-184f141e.js → WEIGHT_BOYS.percentile.weekly-7e51fb9b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-c9e8aaf8.js → WEIGHT_BOYS.percentile.yearly-b47c5be9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-c9f03466.js → WEIGHT_BOYS.zscore.monthly-6d59370f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-413af608.js → WEIGHT_BOYS.zscore.weekly-38beac02.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-fd8ddd34.js → WEIGHT_BOYS.zscore.yearly-1f4013a7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-b78e414e.js → WEIGHT_GIRLS.percentile.monthly-c9144c22.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-6979e7ca.js → WEIGHT_GIRLS.percentile.weekly-5455b91e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-be5d12e7.js → WEIGHT_GIRLS.percentile.yearly-03c736dd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-28299624.js → WEIGHT_GIRLS.zscore.monthly-415a66a8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-8584439e.js → WEIGHT_GIRLS.zscore.weekly-1e23361d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-2e04a2a2.js → WEIGHT_GIRLS.zscore.yearly-8db29178.js} +0 -0
- /package/build/{cookieHelper-2e8bb9fa.js → cookieHelper-59a64e32.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-486f83ee.js → BMI_BOYS.percentile.monthly-57e884f8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-fd3c15c3.js → BMI_BOYS.percentile.weekly-b2c63459.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-da6eb7ec.js → BMI_BOYS.percentile.yearly-8ca90fac.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-62d445f2.js → BMI_BOYS.zscore.monthly-b493d2f9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f67c90eb.js → BMI_BOYS.zscore.weekly-62ae4fbc.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-b1a41fe8.js → BMI_BOYS.zscore.yearly-e2aad569.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-66a216cc.js → BMI_GIRLS.percentile.monthly-7f8de0c2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-b46429d6.js → BMI_GIRLS.percentile.weekly-6e0b116a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-6a6af348.js → BMI_GIRLS.percentile.yearly-4a395636.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-41bb8c08.js → BMI_GIRLS.zscore.monthly-be973fb7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-04eb8b89.js → BMI_GIRLS.zscore.weekly-c19aae0e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-099feda2.js → BMI_GIRLS.zscore.yearly-7bf54eb9.js} +0 -0
- /package/build/esm/{ChevronDown-c2b4123b.js → ChevronDown-b9b5a352.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-53d11c4f.js → HEAD CIRCUM_BOYS.percentile.monthly-6e42d726.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-19dae757.js → HEAD CIRCUM_BOYS.percentile.weekly-8999c4bf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e744f2ee.js → HEAD CIRCUM_BOYS.percentile.yearly-b5760636.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-12b76190.js → HEAD CIRCUM_BOYS.zscore.monthly-fe30f273.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a62a347c.js → HEAD CIRCUM_BOYS.zscore.weekly-17145cf6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-d1c96a90.js → HEAD CIRCUM_BOYS.zscore.yearly-0d813a98.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-52e91c35.js → HEAD CIRCUM_GIRLS.percentile.monthly-ae35f7b2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-51fd4b94.js → HEAD CIRCUM_GIRLS.percentile.weekly-430e5931.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-fb3c718e.js → HEAD CIRCUM_GIRLS.percentile.yearly-ce5d85d6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8d54ac23.js → HEAD CIRCUM_GIRLS.zscore.monthly-b304dc6c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-17722148.js → HEAD CIRCUM_GIRLS.zscore.weekly-de588d96.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-0849bdb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-44e77264.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-9219856c.js → HEIGHT_BOYS.percentile.monthly-e574a87c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f257a74f.js → HEIGHT_BOYS.percentile.weekly-49bc6c02.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3ed1a065.js → HEIGHT_BOYS.percentile.yearly-99cf7774.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a58e6f2e.js → HEIGHT_BOYS.zscore.monthly-63c3566b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-af59d81d.js → HEIGHT_BOYS.zscore.weekly-a7eff90c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d64544e6.js → HEIGHT_BOYS.zscore.yearly-b06dea5e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-58d712e2.js → HEIGHT_GIRLS.percentile.monthly-b154ae1d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f5718378.js → HEIGHT_GIRLS.percentile.weekly-a3dd221b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-306e09e7.js → HEIGHT_GIRLS.percentile.yearly-c1a93361.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ad472813.js → HEIGHT_GIRLS.zscore.monthly-47b24f91.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e53d92d3.js → HEIGHT_GIRLS.zscore.weekly-f3cd351a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3e6e23aa.js → HEIGHT_GIRLS.zscore.yearly-f6e9bb0c.js} +0 -0
- /package/build/esm/{Subot-dc774172.js → Subot-0c45fa4c.js} +0 -0
- /package/build/esm/{Visible-302a3e45.js → Visible-3eb21335.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-49a7ae53.js → WEIGHT_BOYS.percentile.monthly-87900c96.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-63420203.js → WEIGHT_BOYS.percentile.weekly-6fb93a78.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-26609ac2.js → WEIGHT_BOYS.percentile.yearly-ccca0fe8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-cb16306f.js → WEIGHT_BOYS.zscore.monthly-35d466dc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-291be10f.js → WEIGHT_BOYS.zscore.weekly-d74d6ff5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6a25a7fa.js → WEIGHT_BOYS.zscore.yearly-2c068e1e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d11ea01c.js → WEIGHT_GIRLS.percentile.monthly-1ee7e829.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-93c36ba6.js → WEIGHT_GIRLS.percentile.weekly-ab30775b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-5fc6d885.js → WEIGHT_GIRLS.percentile.yearly-893b6771.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0f6fd15b.js → WEIGHT_GIRLS.zscore.monthly-c37f1d39.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ea9c19e1.js → WEIGHT_GIRLS.zscore.weekly-3a1449f6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9665443f.js → WEIGHT_GIRLS.zscore.yearly-aa00837d.js} +0 -0
- /package/build/esm/{cookieHelper-d6490b00.js → cookieHelper-cbd9f06e.js} +0 -0
- /package/build/esm/{index-a59b0ec0.js → index-7d682662.js} +0 -0
- /package/build/esm/{index-379f6571.js → index-c9bdb9a2.js} +0 -0
- /package/build/esm/{index-d5fe6c4e.js → index-fb029176.js} +0 -0
- /package/build/esm/{isProduction-7b1509aa.js → isProduction-cfb9150a.js} +0 -0
- /package/build/esm/{localizeNumberFormat-b4e337ed.js → localizeNumberFormat-213a73b8.js} +0 -0
- /package/build/esm/{normalizeLink-7bed1319.js → normalizeLink-cc25681e.js} +0 -0
- /package/build/esm/{number-eb39d16c.js → number-dd894856.js} +0 -0
- /package/build/esm/{paths-2e45cb1b.js → paths-2d37bc61.js} +0 -0
- /package/build/esm/{theme-adbee273.js → theme-9f017335.js} +0 -0
- /package/build/esm/{translationsContext-4623d384.js → translationsContext-9fc8f894.js} +0 -0
- /package/build/esm/{tslib.es6-693de4fd.js → tslib.es6-cabcb8ea.js} +0 -0
- /package/build/esm/{types-054bf1d5.js → types-2d28585d.js} +0 -0
- /package/build/esm/{useIsInit-7d5bf403.js → useIsInit-81de6d8b.js} +0 -0
- /package/build/esm/{useOutsideClick-5c82f669.js → useOutsideClick-e1437a3f.js} +0 -0
- /package/build/esm/{useScrollbarSize-cfeb4651.js → useScrollbarSize-6ecc2f5a.js} +0 -0
- /package/build/{index-408e11c4.js → index-21c825aa.js} +0 -0
- /package/build/{index-346123fd.js → index-4b719c83.js} +0 -0
- /package/build/{index-53fb3b00.js → index-7005321e.js} +0 -0
- /package/build/{isProduction-87f95c7d.js → isProduction-426652cc.js} +0 -0
- /package/build/{localizeNumberFormat-e7196b4e.js → localizeNumberFormat-5389239f.js} +0 -0
- /package/build/{normalizeLink-245ad49c.js → normalizeLink-ef4fc463.js} +0 -0
- /package/build/{number-5c9d6f63.js → number-f6e8e1a9.js} +0 -0
- /package/build/{paths-3287ee93.js → paths-b1c94851.js} +0 -0
- /package/build/{theme-785c6f0c.js → theme-98a7bede.js} +0 -0
- /package/build/{translationsContext-efee8d50.js → translationsContext-6c5fb248.js} +0 -0
- /package/build/{tslib.es6-ef1f81bf.js → tslib.es6-d46558cb.js} +0 -0
- /package/build/{types-0321e2cc.js → types-032556e4.js} +0 -0
- /package/build/{useIsInit-311b057a.js → useIsInit-8386673c.js} +0 -0
- /package/build/{useOutsideClick-7ddf4eaa.js → useOutsideClick-5544e570.js} +0 -0
- /package/build/{useScrollbarSize-6947aaa0.js → useScrollbarSize-d4ccc356.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-a454d80b.js";import{i as e}from"./isProduction-7b1509aa.js";const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e?`https://${a[t]}`:`https://discover.${a[t]}`,c=e?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},_={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var m=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:O,HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:_});export{O as L,m as c};
|
|
1
|
+
import"./index-bcca5543.js";import{i as e}from"./isProduction-cfb9150a.js";const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e?`https://${a[t]}`:`https://discover.${a[t]}`,c=e?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},_={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var m=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:O,HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:_});export{O as L,m as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as i}from"./theme-
|
|
1
|
+
import{t as i}from"./theme-9f017335.js";import{M as a}from"./utils-3f639011.js";import e from"styled-components";import s from"react";const t=e.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
@@ -110,4 +110,4 @@ import{t as i}from"./theme-adbee273.js";import{M as a}from"./screenSizeContext-8
|
|
|
110
110
|
display: inline-flex;
|
|
111
111
|
cursor: default;
|
|
112
112
|
transform: translateY(-50%);
|
|
113
|
-
`;var l="DjBFAbd";const d=({children:i,className:a,style:e,htmlFor:t,size:o})=>s.createElement("label",{"data-size":o,className:`${l} ${a||""}`,style:e,htmlFor:t},i),p={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"},"ms-MY":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"}},c=-1,h=-2;var m,E;!function(i){i.GSK="gsk",i.ROCHE="roche",i.MSD="msd"}(m||(m={})),function(i){i.GSK="gsk",i.ROCHE="roche",i.MSD="spesialis"}(E||(E={}));const C="vaksin-rotavirus",I={"vi-VN":{gsk:E.GSK,msd:E.MSD},"id-ID":{gsk:E.GSK,msd:E.MSD},"en-PH":{},"zh-TW":{},"ms-MY":{},"tl-PH":{}};var S=Object.freeze({__proto__:null,basePath:"/care",LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},LOCALIZED_SLUGS:p,ID_OPTION_CURRENT_LOCATION:-1,ID_OPTION_ALL_LOCATION:-2,get CLIENT_KEY(){return m},get SLUG_CLIENT_KEY(){return E},SLUG_VACIN_ID:C,MAPPING_CLIENT_WITH_SLUG:I});export{m as C,h as I,d as L,I as M,t as S,
|
|
113
|
+
`;var l="DjBFAbd";const d=({children:i,className:a,style:e,htmlFor:t,size:o})=>s.createElement("label",{"data-size":o,className:`${l} ${a||""}`,style:e,htmlFor:t},i),p={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"},"ms-MY":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"}},c=-1,h=-2;var m,E;!function(i){i.GSK="gsk",i.ROCHE="roche",i.MSD="msd"}(m||(m={})),function(i){i.GSK="gsk",i.ROCHE="roche",i.MSD="spesialis"}(E||(E={}));const C="vaksin-rotavirus",I={"vi-VN":{gsk:E.GSK,msd:E.MSD},"id-ID":{gsk:E.GSK,msd:E.MSD},"en-PH":{},"zh-TW":{},"ms-MY":{},"tl-PH":{}};var S=Object.freeze({__proto__:null,basePath:"/care",LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},LOCALIZED_SLUGS:p,ID_OPTION_CURRENT_LOCATION:-1,ID_OPTION_ALL_LOCATION:-2,get CLIENT_KEY(){return m},get SLUG_CLIENT_KEY(){return E},SLUG_VACIN_ID:C,MAPPING_CLIENT_WITH_SLUG:I});export{m as C,h as I,d as L,I as M,t as S,p as a,r as b,S as c,n as d,o as e,c as f,C as g};
|
package/build/esm/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as API_DATE_FORMAT,B as BEARER_TOKEN_COOKIE,
|
|
1
|
+
export{A as API_DATE_FORMAT,B as BEARER_TOKEN_COOKIE,b as CARE_BOOKING_LOCALES,C as CARE_LOCALES,c as CDN_ADDRESS,h as DATE_FNS_DATE_FORMAT,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,G as GA_TOKEN_COOKIE,I as ISO_FORMAT,L as LOCALE_SPECS,M as MAP_DOMAIN_BY_LOCALE,Q as QUERY_HEALTH_TOOL,R as RISK_SCREENER_NAME,a as RISK_SCREENER_SLUG,f as SSO_URL,S as STATIC_PAGES,T as TOGETHER_LOCALES,g as UP_BASEPATH,U as USER_GEOLOCATION_COORDINATES_COOKIE,e as basePath,d as domainLocales,j as siteHost,s as siteOptions}from"./index-bcca5543.js";export{i as isProduction}from"./isProduction-cfb9150a.js";import"date-fns/locale";import"./Subot-0c45fa4c.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-cabcb8ea.js";import{i as e}from"./isProduction-cfb9150a.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{createContext as i,useState as t,useEffect as n,useMemo as r}from"react";import o from"lodash/throttle";import{B as s}from"./utils-3f639011.js";const d=i({isInit:!0}),_=e=>{const i=(e=>"number"==typeof e?e:"undefined"!=typeof window&&window.innerWidth||0)(e);return{smallMobile:i<s.BREAK_POINT_SMALL_MOBILE,mobile:i>=s.BREAK_POINT_SMALL_MOBILE&&i<s.BREAK_POINT_MOBILE,tablet:i>=s.BREAK_POINT_MOBILE&&i<s.BREAK_POINT_TABLET,pc:i>=s.BREAK_POINT_TABLET&&i<s.BREAK_POINT_PC,xl:i>=s.BREAK_POINT_PC}},a=({children:i})=>{const[s,a]=t((()=>({isInit:!0})));n((()=>{const e=o((()=>{a({width:window.innerWidth,height:window.innerHeight,isInit:!1})}),200);return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const E=r((()=>_(s.width)),[s.width]);return e.createElement(d.Provider,{value:Object.assign(Object.assign({},s),{sizeGroups:E})},i)},E=e=>e?{id:e.id,name:e.name||"",icon:e.fruit_icon||""}:{};export{d as S,a,E as f,_ as g};
|
package/build/esm/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o}from"./theme-adbee273.js";export{c as Constants}from"./constants-995212e1.js";export{t as Types}from"./types-054bf1d5.js";import"./index-a454d80b.js";import"date-fns/locale";import"./Subot-dc774172.js";import"./isProduction-7b1509aa.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-9f017335.js";export{c as Constants}from"./constants-414e0341.js";export{t as Types}from"./types-2d28585d.js";import"./index-bcca5543.js";import"date-fns/locale";import"./Subot-0c45fa4c.js";import"./isProduction-cfb9150a.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-3e89f917.js";import"react";import"./index-49c2a65e.js";import"./tslib.es6-cabcb8ea.js";import"./index-fb029176.js";import"dayjs";import"./index-bcca5543.js";import"date-fns/locale";import"./Subot-0c45fa4c.js";import"./isProduction-cfb9150a.js";import"./theme-9f017335.js";import"./index-9e5a2805.js";import"@mantine/core";import"@mantine/hooks";import"./index-3d2b9817.js";import"./utils-3f639011.js";import"styled-components";import"@mantine/carousel";import"./index-fd0e0617.js";import"./useTranslations-80f9bf98.js";import"./translationsContext-9fc8f894.js";import"string-format";import"classnames";import"@mantine/dates";import"./index-34cf1092.js";import"./utils-19ad9237.js";import"./index-c1cb45b2.js";import"./index.styled-b876c90a.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-3d2b9817.js";import"./index-bcca5543.js";import"date-fns/locale";import"./Subot-0c45fa4c.js";import"./isProduction-cfb9150a.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./tslib.es6-cabcb8ea.js";import{n as o}from"./normalizeLink-cc25681e.js";import{c as i}from"./routing-5b211351.js";import{g as l}from"./core-091d7f79.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-0c45fa4c.js";import{C}from"./index-3d2b9817.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{a as useInitialMount,u as useTranslations,b as useUniqueId}from"./useTranslations-
|
|
1
|
+
export{a as useInitialMount,u as useTranslations,b as useUniqueId}from"./useTranslations-80f9bf98.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-6ecc2f5a.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-2e217da0.js";export{u as useHealthToolsCache}from"./useHealthToolCache-011e34e2.js";export{u as useIsInit}from"./useIsInit-81de6d8b.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-e1437a3f.js";import"react";import"./translationsContext-9fc8f894.js";import"string-format";import"lodash/debounce";import"./tslib.es6-cabcb8ea.js";import"./cookieHelper-cbd9f06e.js";import"./Subot-0c45fa4c.js";import"./getDynamicHealthTool-37333454.js";import"./normalizeLink-cc25681e.js";import"./routing-5b211351.js";import"./index-bcca5543.js";import"date-fns/locale";import"./isProduction-cfb9150a.js";import"./core-091d7f79.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as s}from"./translationsContext-
|
|
1
|
+
import{T as s}from"./translationsContext-9fc8f894.js";export{T as TranslationsContext}from"./translationsContext-9fc8f894.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 f from"./i18n-values/th-TH.js";import j from"./i18n-values/tl-PH.js";import u from"./i18n-values/vi-VN.js";import c from"./i18n-values/vi-VN_MB.js";import p from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":u,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":p,"th-TH":f,"tl-PH":j,"vi-VN_MB":c},h=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:v=null,onTranslationsLoaded:f})=>{const j=n&&n[i]||a,[u,c]=r((()=>Object.assign(Object.assign({},j),m?d[i]:{})));e((()=>{c(Object.assign(Object.assign({},j),m?d[i]:{}))}),[m,i]);const p=t((()=>u?{locale:i,values:u}:null),[i,u]);return e((()=>{f&&Object.keys(u).length&&f(u)}),[u]),o.createElement(s.Provider,{value:p},p?l:v)};export{h 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-9fc8f894.js";export{T as TranslationsContext}from"./translationsContext-9fc8f894.js";import e,{useMemo as o}from"react";const r=({locale:r="en-PH",values:n,children:a})=>{const l=o((()=>n?{locale:r,values:n}:null),[r,n]);return e.createElement(t.Provider,{value:l},a)};export{r as TranslationsProvider};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e,{useContext as i,useState as t}from"react";import{M as o}from"./
|
|
1
|
+
import e,{useContext as i,useState as t}from"react";import{M as o}from"./utils-3f639011.js";import l from"styled-components";import{t as n}from"./theme-9f017335.js";import{_ as a}from"./tslib.es6-cabcb8ea.js";import{T as r}from"./utils-39fb1c8c.js";const d=l.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 50%;
|
|
4
4
|
|
|
5
5
|
padding: 0 16px 32px;
|
|
6
|
-
background-color: ${
|
|
7
|
-
border-radius: ${
|
|
8
|
-
box-shadow: 0px 4px 8px ${
|
|
6
|
+
background-color: ${n.colors.white};
|
|
7
|
+
border-radius: ${n.borderRadius};
|
|
8
|
+
box-shadow: 0px 4px 8px ${n.colors.gray200};
|
|
9
9
|
transform: translate(-50%, -50%);
|
|
10
10
|
transition: all 0.5s ease-in-out;
|
|
11
11
|
visibility: hidden;
|
|
@@ -68,7 +68,7 @@ import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenS
|
|
|
68
68
|
border-radius: 50%;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`,s=
|
|
71
|
+
`,s=l.div`
|
|
72
72
|
position: fixed;
|
|
73
73
|
z-index: 110;
|
|
74
74
|
top: 0;
|
|
@@ -81,7 +81,7 @@ import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenS
|
|
|
81
81
|
&[data-open='false'] {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
84
|
-
`,u=({type:i="lead",closeIcon:t,isOpen:o=!0,onClose:n,children:l,className:a="",enableAnimation:r=!0})=>e.createElement(e.Fragment,null,e.createElement(d,{"data-open":o,"data-type":i,"data-animation":r},e.createElement("div",{className:`${a||""} popup-content`},!!t&&e.createElement("div",{className:"close-button",onClick:n},t),l)),e.createElement(s,{"data-open":o,onClick:n})),m=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},v=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},p=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,c=e=>{if(!e)return{};const{button_text:i,button_url:t,status:o,banner_desktop:n,banner_mobile:l}=e,r=a(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(o),bannerDesktop:n||"",bannerMobile:l||""},r)},_={EN:"English",FIL:"Filipino"},g=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in _?_[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),y=e=>{var i,t,o,n;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:m(e.author),reviewer:e.reviewed_by&&m(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:f(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:f(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.editor),expert:f(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:f(null===(n=null==e?void 0:e.reviewed)||void 0===n?void 0:n.fact_check)}):null,category:w(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(w),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:v(e.expert),metaTag:e.meta_tag||null,spotlight:p(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:g(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:w(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:m(e.edit_last),subscriptionBanner:c(e.subscription_banner)}:{}},f=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,b=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},h=e=>({postTitle:e.post_title,permalink:e.permalink}),w=e=>{var i,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>w(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?h(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>k(e))):null}:{}},k=e=>({title:e.title,content:e.content}),x=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},I=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},C=e=>{var i,t,o,n;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:null===(o=e.community)||void 0===o?void 0:o.slug,communityName:null===(n=e.community)||void 0===n?void 0:n.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},S=e=>e?{answer:null==e?void 0:e.answer.map(A),expert:null==e?void 0:e.expert}:{},T=e=>{var i,t,o,n,l,a,r,d,s,u,m,v,p,c,_,g,y,f,b,h,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var t,o,n,l;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+i.slug,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:(null===(n=e.community)||void 0===n?void 0:n.slug)||"",communityName:(null===(l=e.community)||void 0===l?void 0:l.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(t=e.community)||void 0===t?void 0:t.id)||0,name:(null===(o=e.community)||void 0===o?void 0:o.name)||"",slug:(null===(n=e.community)||void 0===n?void 0:n.slug)||"",isActive:!0,isHidden:Boolean(null===(l=e.community)||void 0===l?void 0:l.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(p=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===p?void 0:p.toLowerCase():"",type:(null===(c=e.user)||void 0===c?void 0:c.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:S(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},A=e=>{var i,t,o,n,l,a,r,d,s,u,m,v,p,c,_,g,y,f,b,h,w,k,x,I,C,S,T,j,B,D,N,P;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(A):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(t=e.user)||void 0===t?void 0:t.user_name)||"",name:(null===(o=e.user)||void 0===o?void 0:o.name)||"",role:(null===(n=e.user)||void 0===n?void 0:n.role)?null===(a=null===(l=e.user)||void 0===l?void 0:l.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(p=e.user)||void 0===p?void 0:p.doctor_id)?String(null===(c=e.user)||void 0===c?void 0:c.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(k=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===k?void 0:k.toLowerCase():"",avatar:(null===(x=e.mentioned)||void 0===x?void 0:x.avatar)||"",type:(null===(I=e.mentioned)||void 0===I?void 0:I.type)||"",email:(null===(C=e.mentioned)||void 0===C?void 0:C.email)||"",partnerId:(null===(S=e.mentioned)||void 0===S?void 0:S.partner_id)?String(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id):"",doctorId:(null===(j=e.mentioned)||void 0===j?void 0:j.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(N=e.mentioned)||void 0===N?void 0:N.hospital_id):"",title:(null===(P=e.mentioned)||void 0===P?void 0:P.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},j=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var B=Object.freeze({__proto__:null,formatAuthor:m,formatArticleExpert:v,formatSpotlightsSummary:p,TRANSLATE_LANGUAGES:_,formatTranslateOptions:g,formatArticle:y,formatUserProfile:f,formatBMIResult:e=>{var i,t,o,n,l,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(t=null==e?void 0:e.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(o=null==e?void 0:e.risk)&&void 0!==o?o:""},{tab:"tools.suggestion",content:null!==(n=null==e?void 0:e.suggestion)&&void 0!==n?n:""}],chartData:(null===(l=null==e?void 0:e.chart_data)||void 0===l?void 0:l.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:b,formatReviewedCategory:h,formatCategory:w,formatCategoryApi:e=>e?{categoryInfo:w(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(y),subCategories:(e.data.sub_categories||[]).map(w)}:{},formatFaqsCategory:k,formatHealthTool:x,formatHealthToolTypeCategory:e=>{var i,t;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(t=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>x(e))))&&void 0!==t?t:[]}:{}},formatCommunity:I,formatTopic:C,formatExpertAnswer:S,formatPost:T,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,t,o;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(t=e.from_user)||void 0===t?void 0:t.id,avatar:null===(o=e.from_user)||void 0===o?void 0:o.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:A,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:j,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,t,o;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(t=e.reviewed_by)||void 0===t?void 0:t.display_name)||(null===(o=e.reviewed_by)||void 0===o?void 0:o.name)||"",date:e.reviewed_date||"",link:j(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});const D=n.div`
|
|
84
|
+
`,u=({type:i="lead",closeIcon:t,isOpen:o=!0,onClose:l,children:n,className:a="",enableAnimation:r=!0})=>e.createElement(e.Fragment,null,e.createElement(d,{"data-open":o,"data-type":i,"data-animation":r},e.createElement("div",{className:`${a||""} popup-content`},!!t&&e.createElement("div",{className:"close-button",onClick:l},t),n)),e.createElement(s,{"data-open":o,onClick:l})),m=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},v=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},c=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,p=e=>{if(!e)return{};const{button_text:i,button_url:t,status:o,banner_desktop:l,banner_mobile:n}=e,r=a(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(o),bannerDesktop:l||"",bannerMobile:n||""},r)},_={EN:"English",FIL:"Filipino"},g=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in _?_[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),y=e=>{var i,t,o,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:m(e.author),reviewer:e.reviewed_by&&m(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:f(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:f(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.editor),expert:f(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:f(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:w(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(w),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:v(e.expert),metaTag:e.meta_tag||null,spotlight:c(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:g(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:w(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:m(e.edit_last),subscriptionBanner:p(e.subscription_banner)}:{}},f=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,b=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},h=e=>({postTitle:e.post_title,permalink:e.permalink}),w=e=>{var i,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>w(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?h(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>k(e))):null}:{}},k=e=>({title:e.title,content:e.content}),x=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},I=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},C=e=>{var i,t,o,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:null===(o=e.community)||void 0===o?void 0:o.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},S=e=>e?{answer:null==e?void 0:e.answer.map(A),expert:null==e?void 0:e.expert}:{},T=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var t,o,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+i.slug,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(t=e.community)||void 0===t?void 0:t.id)||0,name:(null===(o=e.community)||void 0===o?void 0:o.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:S(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},A=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,w,k,x,I,C,S,T,B,D,j,N,P;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(A):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(t=e.user)||void 0===t?void 0:t.user_name)||"",name:(null===(o=e.user)||void 0===o?void 0:o.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(k=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===k?void 0:k.toLowerCase():"",avatar:(null===(x=e.mentioned)||void 0===x?void 0:x.avatar)||"",type:(null===(I=e.mentioned)||void 0===I?void 0:I.type)||"",email:(null===(C=e.mentioned)||void 0===C?void 0:C.email)||"",partnerId:(null===(S=e.mentioned)||void 0===S?void 0:S.partner_id)?String(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.doctor_id):"",hospitalId:(null===(j=e.mentioned)||void 0===j?void 0:j.hospital_id)?String(null===(N=e.mentioned)||void 0===N?void 0:N.hospital_id):"",title:(null===(P=e.mentioned)||void 0===P?void 0:P.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},B=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var D=Object.freeze({__proto__:null,formatAuthor:m,formatArticleExpert:v,formatSpotlightsSummary:c,TRANSLATE_LANGUAGES:_,formatTranslateOptions:g,formatArticle:y,formatUserProfile:f,formatBMIResult:e=>{var i,t,o,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(t=null==e?void 0:e.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(o=null==e?void 0:e.risk)&&void 0!==o?o:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:b,formatReviewedCategory:h,formatCategory:w,formatCategoryApi:e=>e?{categoryInfo:w(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(y),subCategories:(e.data.sub_categories||[]).map(w)}:{},formatFaqsCategory:k,formatHealthTool:x,formatHealthToolTypeCategory:e=>{var i,t;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(t=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>x(e))))&&void 0!==t?t:[]}:{}},formatCommunity:I,formatTopic:C,formatExpertAnswer:S,formatPost:T,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,t,o;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(t=e.from_user)||void 0===t?void 0:t.id,avatar:null===(o=e.from_user)||void 0===o?void 0:o.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:A,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:B,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,t,o;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(t=e.reviewed_by)||void 0===t?void 0:t.display_name)||(null===(o=e.reviewed_by)||void 0===o?void 0:o.name)||"",date:e.reviewed_date||"",link:B(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});const j=l.div`
|
|
85
85
|
width: ${e=>e.size||40}px;
|
|
86
86
|
height: ${e=>e.size||40}px;
|
|
87
87
|
flex-shrink: 0;
|
|
@@ -101,7 +101,7 @@ import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenS
|
|
|
101
101
|
display: flex;
|
|
102
102
|
align-items: center;
|
|
103
103
|
justify-content: center;
|
|
104
|
-
background-color: ${
|
|
104
|
+
background-color: ${n.colors.secondaryBase};
|
|
105
105
|
border-radius: 50%;
|
|
106
106
|
color: white;
|
|
107
107
|
font-size: 1em;
|
|
@@ -111,7 +111,7 @@ import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenS
|
|
|
111
111
|
|
|
112
112
|
&[data-is-marrybaby='true'] {
|
|
113
113
|
.avatar-default {
|
|
114
|
-
background-color: ${
|
|
114
|
+
background-color: ${n.mbColors.pink};
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,N=o=>{var{className:
|
|
117
|
+
`,N=o=>{var{className:l,isMarryBaby:n,style:d,avatar:s,username:u,size:m}=o,v=a(o,["className","isMarryBaby","style","avatar","username","size"]);const{data:{env:{isMarryBaby:c}}}=i(r),p="boolean"==typeof n?n:c,[_,g]=t(!1);return e.createElement(j,Object.assign({"data-is-marrybaby":p,className:l,style:d,size:m},v),s&&!_?e.createElement("img",{loading:"lazy",src:s,className:"avatar",alt:"avatar",onError:()=>{_||g(!0)}}):e.createElement("div",{className:"avatar avatar-default"},u&&(null==u?void 0:u.length)>0?u[0].toUpperCase():"A"))};export{u as P,N as U,T as a,A as b,I as c,D as d,y as e,C as f,w as g,B as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-
|
|
1
|
+
import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-0c45fa4c.js";import{C as l}from"./index-3d2b9817.js";import{i as o,a as n,b as r,c as g,d as m,e as i,f as c,g as h,S as d,L as u,h as N}from"./utils-19ad9237.js";import{I as y}from"./index-9e5a2805.js";const f=({type:f,className:w,style:p,isLightLogo:E,customSize:P,badge:b,locale:A,dateForSeasonal:L,isPro:V})=>{const[x,z]=e({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1});return t((()=>{if(!L||isNaN(new Date(L).getTime()))return;const a=new Date(L),e=o(a),t=n.includes(A)&&r(a),l=!t&&g(a),d=m(a),u=A===s.Vietnam&&i(a),N=A===s.Vietnam&&c(a),y=A===s.Vietnam&&h(a);z({isChristmas:e,isLunarNewYear:t,isNewYear:l,isRamadan:d,isVNHungKing:u,isVN3004:N,isLabourDay:y})}),[A,new Date(L).getDate()]),a.createElement(d,{className:w,style:p,"data-logo-is-light":E||void 0,"data-has-badge":!!b,"data-seasonal":x.isRamadan?"ramadan":x.isChristmas?"christmas":x.isLunarNewYear?"lunar-new-year":x.isNewYear?"new-year":x.isVNHungKing?"hung-king":x.isVN3004?"30-04":x.isLabourDay?"labour-day":void 0,"data-type":f},x.isChristmas?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left xmas logo",src:l.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right xmas logo",src:l.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):x.isNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left new year logo",src:l.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right new year logo",src:l.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):x.isLunarNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):x.isRamadan&&"hellosehat"===f?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):x.isRamadan&&"hellodoktor"===f?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):!x.isVNHungKing||"hellobacsi"!==f&&"marryBaby"!==f?null:a.createElement(a.Fragment,null,a.createElement(y,{alt:"Hung King logo",loading:"lazy",src:l.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),a.createElement(u,{type:f,width:null==P?void 0:P.width,height:null==P?void 0:P.height}),V?a.createElement(N,{src:l.getAssetPath("logo/pro-suffix.svg")}):null,b)};export{f as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s}from"./index-
|
|
1
|
+
import{d as s}from"./index-bcca5543.js";import{i as e}from"./isProduction-cfb9150a.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,s].join("/");return e||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:e}=window.location,o=e.split("."),i=s[Object.keys(s).find((t=>e.includes(s[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return e=s,!isNaN(parseFloat(e))&&isFinite(e);var e}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as C,o as G};
|