@hhgtech/hhg-components 1.28.13 → 1.28.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/{constants-87844a04.js → constants-22bdec28.js} +1 -1
- package/build/{constants-ac7b324c.js → constants-ae69fc09.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-d0ac3081.js → core-1b52d803.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- 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-51ed637e.js → constants-250b4674.js} +2 -2
- package/build/esm/{constants-652884dc.js → constants-815004fa.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-1f02fa3f.js → core-1b284463.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-60a7a241.js → getDynamicHealthTool-98a8ae4d.js} +1 -1
- package/build/esm/{getSocialList-db17f887.js → getSocialList-13b51e02.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-173d55ad.js → index-05c2713a.js} +1 -1
- package/build/esm/{index-4a15e888.js → index-10f32e1a.js} +1 -1
- package/build/esm/{index-8a6bd3c6.js → index-1285c330.js} +1 -1
- package/build/esm/{index-cdbe6c4c.js → index-30752fe0.js} +1 -1
- package/build/esm/{index-8f706fe7.js → index-346fbd32.js} +2 -2
- package/build/esm/{index-78672f29.js → index-661182d5.js} +1 -1
- package/build/esm/{index-0637cee6.js → index-73e235fc.js} +1 -1
- package/build/esm/{index-d109577b.js → index-75ad8879.js} +1 -1
- package/build/esm/{index-356cb691.js → index-7a5f121a.js} +1 -1
- package/build/esm/{index-119c41f4.js → index-858f3e0d.js} +1 -1
- package/build/esm/{index-2705764b.js → index-87b9442b.js} +1 -1
- package/build/esm/index-8a1863df.js +1 -0
- package/build/esm/index-a3c4fcbf.js +1 -0
- package/build/esm/index-aa0222d2.js +1 -0
- package/build/esm/{index-6930eed6.js → index-b31d5294.js} +1 -1
- package/build/esm/{index-15680032.js → index-bb475716.js} +1 -1
- package/build/esm/{index-73c486ff.js → index-d835aef8.js} +2 -2
- package/build/esm/{index-f1545b5e.js → index-d97620dd.js} +1 -1
- package/build/esm/{index-d88622d3.js → index-e6770585.js} +4 -4
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-e52d30c1.js → index.styled-3181e63b.js} +1 -1
- package/build/esm/{index.styled-b5668217.js → index.styled-a56b34ef.js} +1 -1
- package/build/esm/{index.styles-ff1f0cb2.js → index.styles-c937ba54.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-7e4b79ca.js → routing-124ac914.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-7d91609d.js → types-34b537cc.js} +1 -1
- package/build/esm/{types-941a4fce.js → types-b74c1e56.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-d2c9557c.js → useCategory-816eea1e.js} +1 -1
- package/build/esm/useHealthToolCache-a7a6271e.js +1 -0
- package/build/esm/{useRafState-7a846534.js → useRafState-c37789e5.js} +1 -1
- package/build/esm/{useTranslations-c5b785c2.js → useTranslations-a3a8a289.js} +1 -1
- package/build/esm/{utils-042aabdd.js → utils-60545701.js} +1 -1
- package/build/esm/{utils-b1470773.js → utils-f90a92de.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-f7ed2409.js → getDynamicHealthTool-ac77078b.js} +1 -1
- package/build/{getSocialList-0cc97bdf.js → getSocialList-430bf885.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-002e0e05.js → index-051e0e52.js} +1 -1
- package/build/{index-88063689.js → index-1f565981.js} +1 -1
- package/build/{index-54b444c0.js → index-21e435ab.js} +1 -1
- package/build/{index-4e2010f1.js → index-30eabaed.js} +1 -1
- package/build/{index-15fc9646.js → index-3210b557.js} +1 -1
- package/build/{index-5164e4de.js → index-519b4c8e.js} +2 -2
- package/build/{index-8dec03ce.js → index-5f59c28c.js} +1 -1
- package/build/{index-290bea02.js → index-68ed62e7.js} +1 -1
- package/build/{index-a1282af2.js → index-7032646f.js} +1 -1
- package/build/index-746a2c89.js +1 -0
- package/build/{index-d8b4344c.js → index-9cc3b1f9.js} +2 -2
- package/build/{index-be7328b1.js → index-a359fa65.js} +1 -1
- package/build/{index-ac45b3ca.js → index-ce6f0b88.js} +1 -1
- package/build/{index-7f01cbc0.js → index-e2a6cc6c.js} +1 -1
- package/build/{index-b2d46829.js → index-e3182493.js} +1 -1
- package/build/{index-1917b114.js → index-e51b073c.js} +1 -1
- package/build/index-e7f29823.js +1 -0
- package/build/{index-99bff8c2.js → index-ef14979d.js} +1 -1
- package/build/{index-eb981c1a.js → index-f892e7d7.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-33d6653c.js → index.styled-127f39d7.js} +1 -1
- package/build/{index.styled-a535a0cf.js → index.styled-8abd118a.js} +1 -1
- package/build/{index.styles-4a40e685.js → index.styles-4696ad4d.js} +5 -5
- 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 +1 -1
- package/build/pwg.js +2 -2
- package/build/{routing-a3152618.js → routing-6d6e35b5.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-26e7dae0.js → types-8494acf9.js} +1 -1
- package/build/{types-b224bfa9.js → types-f92d74c2.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-5270d6b5.js → useCategory-03c585e9.js} +1 -1
- package/build/useHealthToolCache-7f8e5e19.js +1 -0
- package/build/{useRafState-806e4e4a.js → useRafState-6796bbfb.js} +1 -1
- package/build/{useTranslations-787d5e03.js → useTranslations-503e47f8.js} +1 -1
- package/build/{utils-3a823fcb.js → utils-71785d5c.js} +2 -2
- package/build/{utils-f1fc229e.js → utils-b523d2fa.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/esm/index-83b86fb9.js +0 -1
- package/build/esm/index-943ca1cf.js +0 -1
- package/build/esm/index-f6ea512b.js +0 -1
- package/build/esm/useHealthToolCache-a5011f0b.js +0 -1
- package/build/index-5e043a70.js +0 -1
- package/build/index-8027a0a6.js +0 -1
- package/build/useHealthToolCache-04b17115.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-0a78fcba.js → BMI_BOYS.percentile.monthly-54eb471b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-4a79d9d9.js → BMI_BOYS.percentile.weekly-9105e1ea.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-dbc43776.js → BMI_BOYS.percentile.yearly-de005f2c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-a478ce5a.js → BMI_BOYS.zscore.monthly-8dc1cf98.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-50acdfbc.js → BMI_BOYS.zscore.weekly-0ef801b6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-849bd03c.js → BMI_BOYS.zscore.yearly-7cb5ceed.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-94f7ae56.js → BMI_GIRLS.percentile.monthly-044d0182.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-88adef48.js → BMI_GIRLS.percentile.weekly-ecdf7da1.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-3254a12c.js → BMI_GIRLS.percentile.yearly-b56ec81b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-70933c11.js → BMI_GIRLS.zscore.monthly-7bf265f3.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-de904e6c.js → BMI_GIRLS.zscore.weekly-5b68445f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-3a86e344.js → BMI_GIRLS.zscore.yearly-a2f6b748.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b4369817.js → HEAD CIRCUM_BOYS.percentile.monthly-3db52728.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-890a4e6c.js → HEAD CIRCUM_BOYS.percentile.weekly-60ba88db.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e184a8c0.js → HEAD CIRCUM_BOYS.percentile.yearly-d2bb45dd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-8a21e7c4.js → HEAD CIRCUM_BOYS.zscore.monthly-310d1e75.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-e7659a88.js → HEAD CIRCUM_BOYS.zscore.weekly-7c44b49d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-7eb1b8a8.js → HEAD CIRCUM_BOYS.zscore.yearly-e24063bc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bdacc82e.js → HEAD CIRCUM_GIRLS.percentile.monthly-442a6500.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-4ed5396c.js → HEAD CIRCUM_GIRLS.percentile.weekly-6dfe7532.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e8dbdba9.js → HEAD CIRCUM_GIRLS.percentile.yearly-5471c66e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-892ea368.js → HEAD CIRCUM_GIRLS.zscore.monthly-774daf6a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ee19f46a.js → HEAD CIRCUM_GIRLS.zscore.weekly-eeaee18f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3e9be0bf.js → HEAD CIRCUM_GIRLS.zscore.yearly-89fac362.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-9e5712cf.js → HEIGHT_BOYS.percentile.monthly-3f641720.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-6bca911d.js → HEIGHT_BOYS.percentile.weekly-e7c8d270.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-0d51a725.js → HEIGHT_BOYS.percentile.yearly-9ee9c52c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-9f4bc81f.js → HEIGHT_BOYS.zscore.monthly-f9ae7caf.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-c1ff2736.js → HEIGHT_BOYS.zscore.weekly-05e02494.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-64fbc7b5.js → HEIGHT_BOYS.zscore.yearly-8d253c54.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-4b8724d3.js → HEIGHT_GIRLS.percentile.monthly-866419ee.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-78b9e775.js → HEIGHT_GIRLS.percentile.weekly-f1fd2939.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-22aba8da.js → HEIGHT_GIRLS.percentile.yearly-5d20412a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-403ccbf3.js → HEIGHT_GIRLS.zscore.monthly-128c2828.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8e95ced7.js → HEIGHT_GIRLS.zscore.weekly-7f76bd62.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-a7a6a169.js → HEIGHT_GIRLS.zscore.yearly-44571b44.js} +0 -0
- /package/build/{Onboarding-48739c1f.js → Onboarding-e32cdf14.js} +0 -0
- /package/build/{Visible-be5bc36c.js → Visible-697479f2.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-3f727fc8.js → WEIGHT_BOYS.percentile.monthly-b4d8050f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-b616fcf1.js → WEIGHT_BOYS.percentile.weekly-fab69125.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-ad8ce1c9.js → WEIGHT_BOYS.percentile.yearly-36c06573.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-eb422b8d.js → WEIGHT_BOYS.zscore.monthly-ea6a99cf.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-9f3aeea7.js → WEIGHT_BOYS.zscore.weekly-198e925c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-0d67f576.js → WEIGHT_BOYS.zscore.yearly-dd3da091.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5fa745b4.js → WEIGHT_GIRLS.percentile.monthly-ae50f67e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-42594871.js → WEIGHT_GIRLS.percentile.weekly-bc2417a5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-8ad0c80a.js → WEIGHT_GIRLS.percentile.yearly-388cfbae.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-81de4699.js → WEIGHT_GIRLS.zscore.monthly-8beb5c5e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-f025743e.js → WEIGHT_GIRLS.zscore.weekly-c47a32bd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-33b29188.js → WEIGHT_GIRLS.zscore.yearly-5add16ca.js} +0 -0
- /package/build/{cookieHelper-600a5796.js → cookieHelper-50efcb8d.js} +0 -0
- /package/build/{dataTransform-0a6bf3e6.js → dataTransform-471818db.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-d0f21e02.js → BMI_BOYS.percentile.monthly-99429cdc.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-1472e9a4.js → BMI_BOYS.percentile.weekly-d3585637.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-6596ce6d.js → BMI_BOYS.percentile.yearly-60ad7b33.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-d57199bf.js → BMI_BOYS.zscore.monthly-7cb76a39.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-d1115c53.js → BMI_BOYS.zscore.weekly-f790ba6d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-3ff3fde8.js → BMI_BOYS.zscore.yearly-5032f8f6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-84b072ae.js → BMI_GIRLS.percentile.monthly-2da36c05.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-2503fa80.js → BMI_GIRLS.percentile.weekly-f7f95186.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-b7440889.js → BMI_GIRLS.percentile.yearly-6c4b8af5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-2e7f477b.js → BMI_GIRLS.zscore.monthly-1b7ac626.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-5b916186.js → BMI_GIRLS.zscore.weekly-55d428fd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-6565beba.js → BMI_GIRLS.zscore.yearly-f650e02d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-2565c31a.js → HEAD CIRCUM_BOYS.percentile.monthly-49afa592.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-dbdd50d4.js → HEAD CIRCUM_BOYS.percentile.weekly-0d19b2b8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-0542fe16.js → HEAD CIRCUM_BOYS.percentile.yearly-25fed85d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-e242b3bb.js → HEAD CIRCUM_BOYS.zscore.monthly-5d021bd9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-03853d35.js → HEAD CIRCUM_BOYS.zscore.weekly-164ff5c2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e421aac2.js → HEAD CIRCUM_BOYS.zscore.yearly-3bbf0e79.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3ef7c79c.js → HEAD CIRCUM_GIRLS.percentile.monthly-48598ed0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5f278110.js → HEAD CIRCUM_GIRLS.percentile.weekly-2ca7df4c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1fad226a.js → HEAD CIRCUM_GIRLS.percentile.yearly-c1edc1b0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e7a28695.js → HEAD CIRCUM_GIRLS.zscore.monthly-c5fb91ca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-eaf76d2f.js → HEAD CIRCUM_GIRLS.zscore.weekly-53391f6c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-998b774f.js → HEAD CIRCUM_GIRLS.zscore.yearly-d51516f7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-c0c32190.js → HEIGHT_BOYS.percentile.monthly-ef8b182e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-69ec680d.js → HEIGHT_BOYS.percentile.weekly-5e5e6bcc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c662b438.js → HEIGHT_BOYS.percentile.yearly-d9ca908e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5aaf33e7.js → HEIGHT_BOYS.zscore.monthly-d3feb074.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e3b77573.js → HEIGHT_BOYS.zscore.weekly-fb6252f3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f2c44640.js → HEIGHT_BOYS.zscore.yearly-c4cd2658.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8a79a946.js → HEIGHT_GIRLS.percentile.monthly-c4134ed3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f1e1d3a2.js → HEIGHT_GIRLS.percentile.weekly-8cd8e295.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-7215d2c6.js → HEIGHT_GIRLS.percentile.yearly-8af5989c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-10f3fa0b.js → HEIGHT_GIRLS.zscore.monthly-34282fd0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-2a15403c.js → HEIGHT_GIRLS.zscore.weekly-0913030e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-db10e5af.js → HEIGHT_GIRLS.zscore.yearly-63afe4cf.js} +0 -0
- /package/build/esm/{Onboarding-272cd967.js → Onboarding-25dfc27e.js} +0 -0
- /package/build/esm/{Visible-b4ad4384.js → Visible-b1d5254b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-067b8675.js → WEIGHT_BOYS.percentile.monthly-9c99300c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-75cf07c4.js → WEIGHT_BOYS.percentile.weekly-aa36ae8b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-be8fdba8.js → WEIGHT_BOYS.percentile.yearly-41e2ce91.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-0148bb1d.js → WEIGHT_BOYS.zscore.monthly-ad84e81f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-30380687.js → WEIGHT_BOYS.zscore.weekly-75a72bc8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-7e87a3f7.js → WEIGHT_BOYS.zscore.yearly-e42101f9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d3fb1e52.js → WEIGHT_GIRLS.percentile.monthly-d94c1a92.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f56210cd.js → WEIGHT_GIRLS.percentile.weekly-101740ef.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-d0dc190c.js → WEIGHT_GIRLS.percentile.yearly-d12ac12a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9a35231f.js → WEIGHT_GIRLS.zscore.monthly-6c8840a3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-832c735b.js → WEIGHT_GIRLS.zscore.weekly-8cdd4b7b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-07374dc5.js → WEIGHT_GIRLS.zscore.yearly-8bfa1da8.js} +0 -0
- /package/build/esm/{cookieHelper-164be52d.js → cookieHelper-679b63b0.js} +0 -0
- /package/build/esm/{dataTransform-2a6ed39e.js → dataTransform-e4a8ae2d.js} +0 -0
- /package/build/esm/{index-e87f2fe4.js → index-4644f816.js} +0 -0
- /package/build/esm/{index-c0619327.js → index-5dabbe33.js} +0 -0
- /package/build/esm/{index-8983fc14.js → index-6ce8f024.js} +0 -0
- /package/build/esm/{isProduction-eea76777.js → isProduction-e058984c.js} +0 -0
- /package/build/esm/{localizeNumberFormat-ad0a92dd.js → localizeNumberFormat-c2c9503f.js} +0 -0
- /package/build/esm/{normalizeLink-79d50705.js → normalizeLink-53d208c8.js} +0 -0
- /package/build/esm/{number-86553751.js → number-194f9c31.js} +0 -0
- /package/build/esm/{paths-51710b33.js → paths-a18d0a42.js} +0 -0
- /package/build/esm/{screenSizeContext-f37fe312.js → screenSizeContext-dbc3f810.js} +0 -0
- /package/build/esm/{theme-d92be740.js → theme-7cc1fb01.js} +0 -0
- /package/build/esm/{translationsContext-522117bb.js → translationsContext-8a230e70.js} +0 -0
- /package/build/esm/{tslib.es6-8b2c89d4.js → tslib.es6-7d716621.js} +0 -0
- /package/build/esm/{types-457814df.js → types-ebebf021.js} +0 -0
- /package/build/esm/{useIsInit-571964b2.js → useIsInit-22226ee4.js} +0 -0
- /package/build/esm/{useOutsideClick-0ade7837.js → useOutsideClick-ea873a9b.js} +0 -0
- /package/build/esm/{useScrollbarSize-0b028825.js → useScrollbarSize-7f905a9b.js} +0 -0
- /package/build/{index-fa77075e.js → index-0c952109.js} +0 -0
- /package/build/{index-c62c9e94.js → index-30801061.js} +0 -0
- /package/build/{index-81280a31.js → index-4c93f2f9.js} +0 -0
- /package/build/{isProduction-f442c956.js → isProduction-5206ac21.js} +0 -0
- /package/build/{localizeNumberFormat-2059a198.js → localizeNumberFormat-53002aa4.js} +0 -0
- /package/build/{normalizeLink-42bbc5f4.js → normalizeLink-393fb0ea.js} +0 -0
- /package/build/{number-fdd928b5.js → number-c7dece17.js} +0 -0
- /package/build/{paths-6e57680b.js → paths-1f7f3b20.js} +0 -0
- /package/build/{screenSizeContext-868a3c7a.js → screenSizeContext-f8bf4b7a.js} +0 -0
- /package/build/{theme-aafce547.js → theme-e5158c1e.js} +0 -0
- /package/build/{translationsContext-317bc783.js → translationsContext-2f40d530.js} +0 -0
- /package/build/{tslib.es6-3737b9d7.js → tslib.es6-213ff41c.js} +0 -0
- /package/build/{types-0885e4af.js → types-83165b9c.js} +0 -0
- /package/build/{useIsInit-98d1130f.js → useIsInit-a04a08d6.js} +0 -0
- /package/build/{useOutsideClick-239f0bc2.js → useOutsideClick-f65625ce.js} +0 -0
- /package/build/{useScrollbarSize-ffb8ebb0.js → useScrollbarSize-ed5144d6.js} +0 -0
package/build/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-519b4c8e.js"),t=require("react"),r=require("./Onboarding-e32cdf14.js"),a=require("./theme-e5158c1e.js"),l=require("./index-e2a6cc6c.js"),o=require("styled-components"),n=require("./index-1f565981.js"),i=require("./index-a359fa65.js"),d=require("./screenSizeContext-f8bf4b7a.js"),s=require("dayjs"),c=require("./useTranslations-503e47f8.js");require("lodash/debounce"),require("./isProduction-5206ac21.js"),require("./index-21e435ab.js"),require("./useCategory-03c585e9.js");var u=require("./localizeNumberFormat-53002aa4.js"),C=require("./index.styles-4696ad4d.js"),h=require("./tslib.es6-213ff41c.js");require("@mantine/core"),require("./index-3210b557.js"),require("./gAssets.js"),require("./constants-ae69fc09.js"),require("./utils-71785d5c.js");var m=require("./index-746a2c89.js"),f=require("./index-4c93f2f9.js"),y=require("./useOutsideClick-f65625ce.js");require("@mantine/dates"),require("@mantine/hooks");var p=require("./index-e51b073c.js"),b=require("recharts"),g=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-ed5144d6.js"),require("react-dom"),require("./index.styled-8abd118a.js"),require("lodash/throttle"),require("./translationsContext-2f40d530.js"),require("string-format"),require("date-fns/locale"),require("react-keyed-flatten-children"),require("./cookieHelper-50efcb8d.js"),require("slugify"),require("@mantine/carousel"),require("classnames");var E=x(t),w=x(o),v=x(s),B=x(g);const L=w.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`,K=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:d}=c.useTranslations(),s="marryBaby"===n;return E.default.createElement(U,{onClick:()=>t("new"),"data-is-mb":s,"data-isActive":s&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(i.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(l.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(p.Input,{name:"name",value:r,size:"md",placeholder:d("chooseBaby.placeholder"),type:"text",onChange:o}))},X={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-
|
|
384
|
+
`,K=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:d}=c.useTranslations(),s="marryBaby"===n;return E.default.createElement(U,{onClick:()=>t("new"),"data-is-mb":s,"data-isActive":s&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(i.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(l.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},d("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(p.Input,{name:"name",value:r,size:"md",placeholder:d("chooseBaby.placeholder"),type:"text",onChange:o}))},X={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-e7c8d270.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-3f641720.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-9ee9c52c.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-fab69125.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-b4d8050f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-36c06573.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-60ba88db.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-3db52728.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-d2bb45dd.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-9105e1ea.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-54eb471b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-de005f2c.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-f1fd2939.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-866419ee.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-5d20412a.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-bc2417a5.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-ae50f67e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-388cfbae.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-6dfe7532.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-442a6500.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-5471c66e.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-ecdf7da1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-044d0182.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-b56ec81b.js")}))}}},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-05e02494.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-f9ae7caf.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-8d253c54.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-198e925c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-ea6a99cf.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-dd3da091.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-7c44b49d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-310d1e75.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-e24063bc.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-0ef801b6.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-8dc1cf98.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-7cb5ceed.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7f76bd62.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-128c2828.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-44571b44.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-c47a32bd.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-8beb5c5e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-5add16ca.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-eeaee18f.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-774daf6a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-89fac362.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-5b68445f.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-7bf265f3.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a2f6b748.js")}))}}},Q=(e,t,a,l)=>l===r.LOCALE.Indonesia?J[e][t][a]():X[e][t][a](),ee=(e,t)=>{const[r,a]=B.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},te=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),re=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ae=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),oe=w.default.div`
|
|
385
385
|
position: relative;
|
|
386
386
|
.custom-chart-label {
|
|
387
387
|
display: flex;
|
package/build/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-1b52d803.js");require("./tslib.es6-213ff41c.js"),require("./isProduction-5206ac21.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
|
package/build/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-8494acf9.js"),r=require("./constants-ae69fc09.js");require("./tslib.es6-213ff41c.js"),require("react"),require("./useTranslations-503e47f8.js"),require("./translationsContext-2f40d530.js"),require("string-format"),require("lodash/debounce"),require("./index-e51b073c.js"),require("@mantine/core"),require("styled-components"),require("./index-e2a6cc6c.js"),require("./theme-e5158c1e.js"),require("dayjs"),require("./screenSizeContext-f8bf4b7a.js"),require("lodash/throttle"),require("./index-21e435ab.js"),require("date-fns/locale"),require("./Onboarding-e32cdf14.js"),require("./isProduction-5206ac21.js"),require("./gAssets.js"),require("lodash/shuffle"),require("./useOutsideClick-f65625ce.js"),require("react-loading-skeleton"),require("./paths-1f7f3b20.js"),require("./cookieHelper-50efcb8d.js"),require("./index-0c952109.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.TextDivider=e.TextDivider,exports.CareConstants=r.constants;
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-30eabaed.js"),r=require("./index-9cc3b1f9.js"),o=require("./index-1f565981.js"),t=require("./index.styled-127f39d7.js"),i=require("./index-3210b557.js"),a=require("./index.styles-4696ad4d.js"),s=require("./index-e51b073c.js"),n=require("./constants-ae69fc09.js"),d=require("./index-68ed62e7.js"),u=require("./index-746a2c89.js"),p=require("./index-0c952109.js"),x=require("./index-e2a6cc6c.js"),c=require("./index-519b4c8e.js"),l=require("./index-4c93f2f9.js"),q=require("./utils-71785d5c.js"),g=require("./index-7032646f.js"),C=require("./index-ef14979d.js"),b=require("./index-ce6f0b88.js"),f=require("./footer.js");require("react"),require("./screenSizeContext-f8bf4b7a.js"),require("styled-components"),require("lodash/throttle"),require("./useTranslations-503e47f8.js"),require("./translationsContext-2f40d530.js"),require("string-format"),require("lodash/debounce"),require("./isProduction-5206ac21.js"),require("./index-21e435ab.js"),require("date-fns/locale"),require("./Onboarding-e32cdf14.js"),require("./useCategory-03c585e9.js"),require("./gAssets.js"),require("./theme-e5158c1e.js"),require("./tslib.es6-213ff41c.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("@mantine/hooks"),require("html-react-parser"),require("date-fns"),require("./index.styled-8abd118a.js"),require("./types-83165b9c.js"),require("./index-e3182493.js"),require("./index-a359fa65.js"),require("react-hook-form"),require("./useHealthToolCache-7f8e5e19.js"),require("./getDynamicHealthTool-ac77078b.js"),require("./core-1b52d803.js"),require("./normalizeLink-393fb0ea.js"),require("./routing-6d6e35b5.js"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useOutsideClick-f65625ce.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-430bf885.js"),require("uuid"),require("@mantine/form"),require("./index-5f59c28c.js"),require("js-cookie"),require("lodash/flatten"),require("react-contenteditable"),require("react-dom"),require("lodash/uniqBy"),require("./constants-22bdec28.js"),require("./cookieHelper-50efcb8d.js"),require("./index-e7f29823.js"),require("./useIsInit-a04a08d6.js"),require("dayjs/plugin/relativeTime"),require("./number-c7dece17.js"),require("./paths-1f7f3b20.js"),require("@mantine/carousel"),require("classnames"),require("react-keyed-flatten-children"),require("slugify"),require("./useScrollbarSize-ed5144d6.js"),require("./utils-b523d2fa.js"),exports.AdBlock=e.AdBlock,exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DatePicker=e.DatePicker,exports.DateRangePicker=e.DateRangePicker,exports.DoctorInfo=e.DoctorInfo,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Loading=e.Loading,exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=e.MAPPING_CATEGORY_PREMIUM_API_TYPE,exports.MAPPING_CATEGORY_PREMIUM_TYPE=e.MAPPING_CATEGORY_PREMIUM_TYPE,exports.MobileBottomNavigation=e.MobileBottomNavigation,exports.MobileBottomNavigationIcon=e.MobileBottomNavigationIcon,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.ProgressBar=e.ProgressBar,exports.Radio=e.Radio,exports.RadioGroup=e.RadioGroup,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyOrPremiumBanner=e.SurveyOrPremiumBanner,exports.SurveyQuestionCard=e.SurveyQuestionCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.ToolsBannerCard=e.ToolsBannerCard,exports.Avatar=r.Avatar,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.AuthorBadge=t.AuthorBadge,exports.BookingBtn=t.BookingBtn,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Dropdown=t.Dropdown,exports.Flag=i.Flag,exports.ImageWrap=i.ImageWrap,exports.Heading=a.Heading,exports.PureInput=a.PureInput,exports.StepRenderer=a.StepRenderer,exports.StepRendererContext=a.StepRendererContext,exports.TextArea=a.TextArea,exports.Input=s.Input,exports.Label=n.Label,exports.Logo=d.Logo,exports.Text=u.Text,exports.Container=p.Container,exports.Icon=x.Icon,exports.Drawer=c.Drawer,exports.Modal=c.Modal,exports.RadioImageGroup=c.RadioImageGroup,exports.CustomReferenceDot=l.CustomReferenceDot,exports.LogoIcon=q.LogoIcon,exports.Popup=g.Popup,exports.PillCarousel=C.PillCarousel,exports.AddressInput=b.AddressInput,exports.Footer=f.Footer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./index-54b444c0.js");var e=require("./isProduction-f442c956.js");const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e.isProduction?`https://${a[t]}`:`https://discover.${a[t]}`,c=e.isProduction?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var _=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:O});exports.DISCOVER_URL_FE=h,exports.constants=_;
|
|
1
|
+
"use strict";require("./index-21e435ab.js");var e=require("./isProduction-5206ac21.js");const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e.isProduction?`https://${a[t]}`:`https://discover.${a[t]}`,c=e.isProduction?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var _=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:O});exports.DISCOVER_URL_FE=h,exports.constants=_;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./screenSizeContext-
|
|
1
|
+
"use strict";var e=require("./screenSizeContext-f8bf4b7a.js"),i=require("styled-components"),t=require("react");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(i),o=a(t);const r=s.default.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
package/build/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-e32cdf14.js");var E=require("./index-21e435ab.js"),e=require("./isProduction-5206ac21.js");exports.BEARER_TOKEN_COOKIE=E.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=E.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=E.CARE_LOCALES,exports.CDN_ADDRESS=E.CDN_ADDRESS,exports.DATE_FNS_LOCALE=E.DATE_FNS_LOCALE,exports.ECOM_LOCALES=E.ECOM_LOCALES,exports.FAVICONS=E.FAVICONS,exports.GA_TOKEN_COOKIE=E.GA_TOKEN_COOKIE,exports.ISO_FORMAT=E.ISO_FORMAT,exports.LOCALE_SPECS=E.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return E.QUERY_HEALTH_TOOL}}),Object.defineProperty(exports,"RISK_SCREENER_NAME",{enumerable:!0,get:function(){return E.RISK_SCREENER_NAME}}),exports.RISK_SCREENER_SLUG=E.RISK_SCREENER_SLUG,exports.STATIC_PAGES=E.STATIC_PAGES,exports.TOGETHER_LOCALES=E.TOGETHER_LOCALES,exports.UP_BASEPATH=E.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=E.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=E.domainLocales,exports.siteHost=E.siteHost,exports.siteOptions=E.siteOptions,exports.isProduction=e.isProduction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-
|
|
1
|
+
"use strict";var t=require("./tslib.es6-213ff41c.js"),e=require("./isProduction-5206ac21.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
|
package/build/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./theme-aafce547.js"),e=require("./constants-87844a04.js"),o=require("./types-0885e4af.js");require("./index-54b444c0.js"),require("date-fns/locale"),require("./Onboarding-48739c1f.js"),require("./isProduction-f442c956.js");var i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null});function a(t){return null!=t}const r={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,e)=>{const o="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(e||"vi-VN").format(o)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(e,o,i){var l,a,n;const d=i?i+"/"+e.slug:e.slug,u=(null===(a=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===a?void 0:a.call(l,(t=>r.formatCategory(t,e.id,d))))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:d||"",children:u,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(n=e.products)||void 0===n?void 0:n.map(r.formatProduct))||[]}},formatFooterInfo:t=>{var e,o,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(o=null===(e=null==t?void 0:t.branch)||void 0===e?void 0:e.branch)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var e,o;return{menu_title:t.menu_title,items:null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var e,o,i,l,a,n;return{hotSearchKeywords:(null===(o=null===(e=null==t?void 0:t.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==t?void 0:t.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(t=>r.formatCategory(t))))||[],footer:r.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var e,o,i,l;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&r.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(o=null===(e=t.product_promotions)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProductPromotion).filter(a))||[],categories:(null===(l=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(t=>r.formatCategory(t))).filter(a))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var e,o;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(o=(e=t.post_data.categories).map)||void 0===o?void 0:o.call(e,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var e,o,i,l;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatHomePage:t=>{var e,o,i,l,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(o=(e=t.brands).map)||void 0===o?void 0:o.call(e,r.formatBrand).filter(a):[],hotDeals:t.hot_deals?null===(l=(i=t.hot_deals).map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,r.formatBanner).filter(a):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,r.formatBanner).filter(a):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,r.formatBanner).filter(a):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,r.formatBlogPost).filter(a):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>r.formatCategory(t))).filter(a):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>r.formatCategory(t))).filter(a):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>r.formatPromotion(t))).filter(a):[]}:null},formatCategoryPage:function(t){var e,o,i,l;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatBrandPage:function(t){return t?r.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var e,o,i,l,n,d,u,s;return t?Object.assign(Object.assign({},r.formatProduct(t)),{relatedProducts:(null===(o=null===(e=t.related_products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProduct).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,r.formatPromotion).filter(a))||[]}):null},formatProductReview:t=>{var e,o;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(o=null===(e=t.rating_votes)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,e)=>{var o;return(null==t?void 0:t.length)&&(null===(o=null==t?void 0:t.find((t=>t.attribute_code===e)))||void 0===o?void 0:o.value)||""},formatAddress:t=>{var e,o,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(e=t.region)||void 0===e?void 0:e.region_id,label:null===(o=t.region)||void 0===o?void 0:o.region}||null,district:{value:r.formatCustomAttributes(t.custom_attributes,"district_id"),label:r.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:r.formatCustomAttributes(t.custom_attributes,"ward_id"),label:r.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var e,o;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(o=null===(e=null==t?void 0:t.products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var e,o,i,l,a;return t?{pending:Number(null===(e=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===e?void 0:e.amount)||0,processing:Number(null===(o=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===o?void 0:o.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var e,o,i,l,a,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(e=t.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(o=t.extension_attributes)||void 0===o?void 0:o.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(a=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,r.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var e;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(e=t.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var e,o,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(o=null===(e=t.addresses)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var e,o,i,l,a,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartItem))||void 0===i?void 0:i.sort(((t,e)=>Number(null==e?void 0:e.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?r.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?r.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(a=t.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var e,o,i;return{shipping:{address:t.shipping.address?r.formatCartAddress(t.shipping.address):null,method:(null===(e=t.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(o=t.items).map)||void 0===i?void 0:i.call(o,r.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var e,o,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var e;return t?{paymentMethods:r.formatPaymentMethod(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:r.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:r.formatOrder(t.order_info)}:null,formatCoupons:t=>{var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var e;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]};var n=Object.freeze({__proto__:null,dataFormatter:r});exports.Constants=e.constants,exports.Types=o.types,exports.ApiTypes=i,exports.DataFormatter=n,exports.DataTypes=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./theme-e5158c1e.js"),e=require("./constants-22bdec28.js"),o=require("./types-83165b9c.js");require("./index-21e435ab.js"),require("date-fns/locale"),require("./Onboarding-e32cdf14.js"),require("./isProduction-5206ac21.js");var i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null});function a(t){return null!=t}const r={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,e)=>{const o="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(e||"vi-VN").format(o)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(e,o,i){var l,a,n;const d=i?i+"/"+e.slug:e.slug,u=(null===(a=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===a?void 0:a.call(l,(t=>r.formatCategory(t,e.id,d))))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:d||"",children:u,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(n=e.products)||void 0===n?void 0:n.map(r.formatProduct))||[]}},formatFooterInfo:t=>{var e,o,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(o=null===(e=null==t?void 0:t.branch)||void 0===e?void 0:e.branch)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var e,o;return{menu_title:t.menu_title,items:null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var e,o,i,l,a,n;return{hotSearchKeywords:(null===(o=null===(e=null==t?void 0:t.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==t?void 0:t.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(t=>r.formatCategory(t))))||[],footer:r.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var e,o,i,l;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&r.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(o=null===(e=t.product_promotions)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProductPromotion).filter(a))||[],categories:(null===(l=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(t=>r.formatCategory(t))).filter(a))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var e,o;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(o=(e=t.post_data.categories).map)||void 0===o?void 0:o.call(e,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var e,o,i,l;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatHomePage:t=>{var e,o,i,l,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(o=(e=t.brands).map)||void 0===o?void 0:o.call(e,r.formatBrand).filter(a):[],hotDeals:t.hot_deals?null===(l=(i=t.hot_deals).map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,r.formatBanner).filter(a):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,r.formatBanner).filter(a):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,r.formatBanner).filter(a):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,r.formatBlogPost).filter(a):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>r.formatCategory(t))).filter(a):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>r.formatCategory(t))).filter(a):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>r.formatPromotion(t))).filter(a):[]}:null},formatCategoryPage:function(t){var e,o,i,l;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatBrandPage:function(t){return t?r.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var e,o,i,l,n,d,u,s;return t?Object.assign(Object.assign({},r.formatProduct(t)),{relatedProducts:(null===(o=null===(e=t.related_products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProduct).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,r.formatPromotion).filter(a))||[]}):null},formatProductReview:t=>{var e,o;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(o=null===(e=t.rating_votes)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,e)=>{var o;return(null==t?void 0:t.length)&&(null===(o=null==t?void 0:t.find((t=>t.attribute_code===e)))||void 0===o?void 0:o.value)||""},formatAddress:t=>{var e,o,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(e=t.region)||void 0===e?void 0:e.region_id,label:null===(o=t.region)||void 0===o?void 0:o.region}||null,district:{value:r.formatCustomAttributes(t.custom_attributes,"district_id"),label:r.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:r.formatCustomAttributes(t.custom_attributes,"ward_id"),label:r.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var e,o;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(o=null===(e=null==t?void 0:t.products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var e,o,i,l,a;return t?{pending:Number(null===(e=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===e?void 0:e.amount)||0,processing:Number(null===(o=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===o?void 0:o.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var e,o,i,l,a,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(e=t.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(o=t.extension_attributes)||void 0===o?void 0:o.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(a=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,r.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var e;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(e=t.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var e,o,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(o=null===(e=t.addresses)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var e,o,i,l,a,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartItem))||void 0===i?void 0:i.sort(((t,e)=>Number(null==e?void 0:e.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?r.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?r.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(a=t.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var e,o,i;return{shipping:{address:t.shipping.address?r.formatCartAddress(t.shipping.address):null,method:(null===(e=t.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(o=t.items).map)||void 0===i?void 0:i.call(o,r.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var e,o,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var e;return t?{paymentMethods:r.formatPaymentMethod(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:r.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:r.formatOrder(t.order_info)}:null,formatCoupons:t=>{var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var e;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]};var n=Object.freeze({__proto__:null,dataFormatter:r});exports.Constants=e.constants,exports.Types=o.types,exports.ApiTypes=i,exports.DataFormatter=n,exports.DataTypes=l;
|
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as e,M as t}from"./index-
|
|
1
|
+
import{D as e,M as t}from"./index-346fbd32.js";export{B as BabyGrowthGender}from"./index-346fbd32.js";import r,{useMemo as l,useRef as o,useState as a,useEffect as i}from"react";import{L as n,G as c,B as s,a as d}from"./Onboarding-25dfc27e.js";import{t as m}from"./theme-7cc1fb01.js";import{T as C,I as p}from"./index-05c2713a.js";import h from"styled-components";import{B as y}from"./index-30752fe0.js";import{M as u}from"./index-1285c330.js";import{h as f,n as g}from"./screenSizeContext-dbc3f810.js";import b from"dayjs";import{u as E}from"./useTranslations-a3a8a289.js";import"lodash/debounce";import"./isProduction-e058984c.js";import"./index-b31d5294.js";import"./useCategory-816eea1e.js";import{a as x,l as v}from"./localizeNumberFormat-c2c9503f.js";import{H as w}from"./index.styles-c937ba54.js";import{_ as L,a as M}from"./tslib.es6-7d716621.js";import"@mantine/core";import"./index-bb475716.js";import"./gAssets.js";import"./constants-250b4674.js";import"./utils-60545701.js";import{T as k}from"./index-8a1863df.js";import{C as H}from"./index-5dabbe33.js";import{a as I}from"./useOutsideClick-ea873a9b.js";import"@mantine/dates";import"@mantine/hooks";import{I as j}from"./index-73e235fc.js";import{ResponsiveContainer as S,LineChart as G,CartesianGrid as R,Tooltip as z,XAxis as Z,YAxis as _,Line as N,ReferenceDot as V}from"recharts";import T from"lodash/chunk";import"./useScrollbarSize-7f905a9b.js";import"react-dom";import"./index.styled-a56b34ef.js";import"lodash/throttle";import"./translationsContext-8a230e70.js";import"string-format";import"date-fns/locale";import"react-keyed-flatten-children";import"./cookieHelper-679b63b0.js";import"slugify";import"@mantine/carousel";import"classnames";const A=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -381,7 +381,7 @@ import{D as e,M as t}from"./index-8f706fe7.js";export{B as BabyGrowthGender}from
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`,ye=({isActive:e,onChange:t,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(he,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(u,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(j,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ue=e=>{var t,l,{babyProfiles:o,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:f,newBabyValue:g,onNewBabyValueChange:b,siteType:x,buttonText:v,headerText:w}=e,M=L(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==s||s(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},v||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=o[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(me,Object.assign({title:w||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>r.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(ye,{siteType:x,value:g,onInputChange:b,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},f||B(e)))})):r.createElement(Ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(u,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},w||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(l=o||[])||void 0===l?void 0:l.map((e=>r.createElement(Q,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(ye,{value:g,onInputChange:b,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},f||B()))},fe={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-69ec680d.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-c0c32190.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-c662b438.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-75cf07c4.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-067b8675.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-be8fdba8.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-dbdd50d4.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-2565c31a.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-0542fe16.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-1472e9a4.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-d0f21e02.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-6596ce6d.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-f1e1d3a2.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-8a79a946.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-7215d2c6.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-f56210cd.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-d3fb1e52.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-d0dc190c.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-5f278110.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-3ef7c79c.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-1fad226a.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-2503fa80.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-84b072ae.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-b7440889.js")}}},ge={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-e3b77573.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-5aaf33e7.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-f2c44640.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-30380687.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-0148bb1d.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-7e87a3f7.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-03853d35.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-e242b3bb.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-e421aac2.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-d1115c53.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-d57199bf.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-3ff3fde8.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-2a15403c.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-10f3fa0b.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-db10e5af.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-832c735b.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-9a35231f.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-07374dc5.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-eaf76d2f.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-e7a28695.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-998b774f.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-5b916186.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-2e7f477b.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-6565beba.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},Ee=(e,t,r,l)=>l===n.Indonesia?ge[e][t][r]():fe[e][t][r](),xe=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ve=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Le=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Me=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Be=h.div`
|
|
384
|
+
`,ye=({isActive:e,onChange:t,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(he,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(u,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(j,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ue=e=>{var t,l,{babyProfiles:o,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:f,newBabyValue:g,onNewBabyValueChange:b,siteType:x,buttonText:v,headerText:w}=e,M=L(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==s||s(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},v||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=o[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(me,Object.assign({title:w||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>r.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(ye,{siteType:x,value:g,onInputChange:b,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},f||B(e)))})):r.createElement(Ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(u,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},w||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(l=o||[])||void 0===l?void 0:l.map((e=>r.createElement(Q,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(ye,{value:g,onInputChange:b,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},f||B()))},fe={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-5e5e6bcc.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-ef8b182e.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-d9ca908e.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-aa36ae8b.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-9c99300c.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-41e2ce91.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-0d19b2b8.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-49afa592.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-25fed85d.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-d3585637.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-99429cdc.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-60ad7b33.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-8cd8e295.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-c4134ed3.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-8af5989c.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-101740ef.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-d94c1a92.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-d12ac12a.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-2ca7df4c.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-48598ed0.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-c1edc1b0.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-f7f95186.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-2da36c05.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-6c4b8af5.js")}}},ge={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-fb6252f3.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-d3feb074.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-c4cd2658.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-75a72bc8.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-ad84e81f.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-e42101f9.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-164ff5c2.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-5d021bd9.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-3bbf0e79.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-f790ba6d.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-7cb76a39.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-5032f8f6.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-0913030e.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-34282fd0.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-63afe4cf.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-8cdd4b7b.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-6c8840a3.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-8bfa1da8.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-53391f6c.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-c5fb91ca.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-d51516f7.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-55d428fd.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-1b7ac626.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-f650e02d.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},Ee=(e,t,r,l)=>l===n.Indonesia?ge[e][t][r]():fe[e][t][r](),xe=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ve=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Le=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Me=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Be=h.div`
|
|
385
385
|
position: relative;
|
|
386
386
|
.custom-chart-label {
|
|
387
387
|
display: flex;
|
package/build/esm/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-
|
|
1
|
+
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-1b284463.js";import"./tslib.es6-7d716621.js";import"./isProduction-e058984c.js";
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,T as TextDivider}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,T as TextDivider}from"./types-34b537cc.js";export{c as CareConstants}from"./constants-250b4674.js";import"./tslib.es6-7d716621.js";import"react";import"./useTranslations-a3a8a289.js";import"./translationsContext-8a230e70.js";import"string-format";import"lodash/debounce";import"./index-73e235fc.js";import"@mantine/core";import"styled-components";import"./index-05c2713a.js";import"./theme-7cc1fb01.js";import"dayjs";import"./screenSizeContext-dbc3f810.js";import"lodash/throttle";import"./index-b31d5294.js";import"date-fns/locale";import"./Onboarding-25dfc27e.js";import"./isProduction-e058984c.js";import"./gAssets.js";import"lodash/shuffle";import"./useOutsideClick-ea873a9b.js";import"react-loading-skeleton";import"./paths-a18d0a42.js";import"./cookieHelper-679b63b0.js";import"./index-6ce8f024.js";
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{V as AdBlock,A as Alert,e as ArticleCard,f as ArticleCardV2,x as BMICardEmbed,H as BMRCardEmbed,y as BabyGrowthCardEmbed,z as BabyPoopEmbed,B as Badge,a as BorderHeading,N as Breadcrumbs,g as CategoryCard,C as Checkbox,h as CheckboxGroup,s as CookieAcceptConfirm,D as DatePicker,K as DateRangePicker,o as DoctorInfo,w as DueDateCardEmbed,F as FileDropdown,W as FixedBottomAdBlock,r as FloatButtonGroup,d as GenderOptionControl,G as Grid,I as IconText,L as Loading,Z as MAPPING_CATEGORY_PREMIUM_API_TYPE,Y as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,t as MobileBottomNavigationIcon,O as OvulationCardEmbed,J as PWGCardEmbed,P as Pagination,i as ProgressBar,R as Radio,j as RadioGroup,c as RateStars,S as ScrollList,u as SeoHead,Q as ShareContainer,U as ShareDrawer,k as SideMenu,l as StatisticCard,X as SurveyOrPremiumBanner,p as SurveyQuestionCard,q as SurveyThankyouCard,E as THRCardEmbed,m as Table,n as Tabs,T as Tag,b as Toggle,v as ToolsBannerCard}from"./index-
|
|
1
|
+
export{V as AdBlock,A as Alert,e as ArticleCard,f as ArticleCardV2,x as BMICardEmbed,H as BMRCardEmbed,y as BabyGrowthCardEmbed,z as BabyPoopEmbed,B as Badge,a as BorderHeading,N as Breadcrumbs,g as CategoryCard,C as Checkbox,h as CheckboxGroup,s as CookieAcceptConfirm,D as DatePicker,K as DateRangePicker,o as DoctorInfo,w as DueDateCardEmbed,F as FileDropdown,W as FixedBottomAdBlock,r as FloatButtonGroup,d as GenderOptionControl,G as Grid,I as IconText,L as Loading,Z as MAPPING_CATEGORY_PREMIUM_API_TYPE,Y as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,t as MobileBottomNavigationIcon,O as OvulationCardEmbed,J as PWGCardEmbed,P as Pagination,i as ProgressBar,R as Radio,j as RadioGroup,c as RateStars,S as ScrollList,u as SeoHead,Q as ShareContainer,U as ShareDrawer,k as SideMenu,l as StatisticCard,X as SurveyOrPremiumBanner,p as SurveyQuestionCard,q as SurveyThankyouCard,E as THRCardEmbed,m as Table,n as Tabs,T as Tag,b as Toggle,v as ToolsBannerCard}from"./index-87b9442b.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-d835aef8.js";export{B as Button}from"./index-30752fe0.js";export{A as AuthorBadge,a as BookingBtn,B as BtnChoice,D as Divider,b as Dropdown}from"./index.styled-3181e63b.js";export{F as Flag,I as ImageWrap}from"./index-bb475716.js";export{H as Heading,P as PureInput,S as StepRenderer,a as StepRendererContext,T as TextArea}from"./index.styles-c937ba54.js";export{I as Input}from"./index-73e235fc.js";export{L as Label}from"./constants-250b4674.js";export{L as Logo}from"./index-7a5f121a.js";export{T as Text}from"./index-8a1863df.js";export{C as Container}from"./index-6ce8f024.js";export{I as Icon}from"./index-05c2713a.js";export{D as Drawer,M as Modal,R as RadioImageGroup}from"./index-346fbd32.js";export{C as CustomReferenceDot}from"./index-5dabbe33.js";export{L as LogoIcon}from"./utils-60545701.js";export{P as Popup}from"./index-661182d5.js";export{P as PillCarousel}from"./index-e6770585.js";export{A as AddressInput}from"./index-10f32e1a.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-dbc3f810.js";import"styled-components";import"lodash/throttle";import"./useTranslations-a3a8a289.js";import"./translationsContext-8a230e70.js";import"string-format";import"lodash/debounce";import"./isProduction-e058984c.js";import"./index-b31d5294.js";import"date-fns/locale";import"./Onboarding-25dfc27e.js";import"./useCategory-816eea1e.js";import"./gAssets.js";import"./theme-7cc1fb01.js";import"./tslib.es6-7d716621.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"@mantine/hooks";import"html-react-parser";import"date-fns";import"./index.styled-a56b34ef.js";import"./types-ebebf021.js";import"./index-a3c4fcbf.js";import"./index-1285c330.js";import"react-hook-form";import"./useHealthToolCache-a7a6271e.js";import"./getDynamicHealthTool-98a8ae4d.js";import"./core-1b284463.js";import"./normalizeLink-53d208c8.js";import"./routing-124ac914.js";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useOutsideClick-ea873a9b.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-13b51e02.js";import"uuid";import"@mantine/form";import"./index-858f3e0d.js";import"js-cookie";import"lodash/flatten";import"react-contenteditable";import"react-dom";import"lodash/uniqBy";import"./constants-815004fa.js";import"./cookieHelper-679b63b0.js";import"./index-aa0222d2.js";import"./useIsInit-22226ee4.js";import"dayjs/plugin/relativeTime";import"./number-194f9c31.js";import"./paths-a18d0a42.js";import"@mantine/carousel";import"classnames";import"react-keyed-flatten-children";import"slugify";import"./useScrollbarSize-7f905a9b.js";import"./utils-f90a92de.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as e}from"./screenSizeContext-
|
|
1
|
+
import{M as e}from"./screenSizeContext-dbc3f810.js";import i from"styled-components";import a from"react";const t=i.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
@@ -110,4 +110,4 @@ import{M as e}from"./screenSizeContext-f37fe312.js";import i from"styled-compone
|
|
|
110
110
|
display: inline-flex;
|
|
111
111
|
cursor: default;
|
|
112
112
|
transform: translateY(-50%);
|
|
113
|
-
`;var r="DjBFAbd";const l=({children:e,className:i,style:t,htmlFor:s,size:o})=>a.createElement("label",{"data-size":o,className:`${r} ${i||""}`,style:t,htmlFor:s},e),d={"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"}},
|
|
113
|
+
`;var r="DjBFAbd";const l=({children:e,className:i,style:t,htmlFor:s,size:o})=>a.createElement("label",{"data-size":o,className:`${r} ${i||""}`,style:t,htmlFor:s},e),d={"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,p=-2;var h,m;!function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="msd"}(h||(h={})),function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="spesialis"}(m||(m={}));const E="vaksin-rotavirus",C={"vi-VN":{gsk:m.GSK,msd:m.MSD},"id-ID":{gsk:m.GSK,msd:m.MSD},"en-PH":{},"zh-TW":{},"ms-MY":{},"tl-PH":{}};var I=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:d,ID_OPTION_CURRENT_LOCATION:-1,ID_OPTION_ALL_LOCATION:-2,get CLIENT_KEY(){return h},get SLUG_CLIENT_KEY(){return m},SLUG_VACIN_ID:E,MAPPING_CLIENT_WITH_SLUG:C});export{h as C,p as I,l as L,C as M,t as S,d as a,n as b,I as c,o as d,s as e,c as f,E as g};
|