@hhgtech/hhg-components 1.27.72 → 1.27.73
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.js +1 -1
- package/build/core-1296b978.js +1 -0
- package/build/{dataTransform-a610dba2.js → dataTransform-b57ffe49.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +4 -4
- 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.js +1 -1
- package/build/esm/core-aef19cc1.js +1 -0
- package/build/esm/{dataTransform-474b6557.js → dataTransform-acd309eb.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-5ed62fc2.js → fixedBottomAdBlock-4f598b4e.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-e1e9eb88.js +1 -0
- package/build/esm/{getSocialList-e2edc6f8.js → getSocialList-62952c6e.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-699a67a1.js → index-03fb3d5f.js} +1 -1
- package/build/esm/{index-ef52a951.js → index-25a079fc.js} +1 -1
- package/build/esm/index-2b4f9440.js +1 -0
- package/build/esm/{index-066e1f8c.js → index-2bd17e3a.js} +1 -1
- package/build/esm/{index-eef47a39.js → index-2dbad103.js} +1 -1
- package/build/esm/index-4c42fd2d.js +1 -0
- package/build/esm/{index-b42eddeb.js → index-58d76b74.js} +1 -1
- package/build/esm/{index-33a767db.js → index-61b40bb3.js} +2 -2
- package/build/esm/{index-d92f4c41.js → index-6c3b66ef.js} +1 -1
- package/build/esm/{index-eed61604.js → index-7768bc42.js} +1 -1
- package/build/esm/{index-ffe1f1b4.js → index-77a12ad4.js} +1 -1
- package/build/esm/index-a46315a8.js +1 -0
- package/build/esm/{index-75e66b82.js → index-ac0440c7.js} +1 -1
- package/build/esm/{index-aa0f1be7.js → index-acb68002.js} +1 -1
- package/build/esm/{index-30364853.js → index-b6603e31.js} +1 -1
- package/build/esm/{index-c7061390.js → index-ca8ba9cb.js} +1 -1
- package/build/esm/{index-13b5fcc4.js → index-d96a464a.js} +1 -1
- package/build/esm/{index-b7da5adf.js → index-d99f5fe1.js} +2 -2
- package/build/esm/{index-940a2837.js → index-dc45af44.js} +1 -1
- package/build/esm/{index-7c0c9a23.js → index-e006ea08.js} +1 -1
- package/build/esm/{index-52cbdc13.js → index-e8aa27ee.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-d630ba54.js → index.styled-574d9f4e.js} +4 -4
- package/build/esm/{index.styled-6b23e614.js → index.styled-9454d250.js} +9 -9
- package/build/esm/{index.styled-73921818.js → index.styled-f8d51cb2.js} +3 -3
- 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/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-8b859474.js → routing-2ca62b4e.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-b03d781d.js → types-9b1fb32b.js} +1 -1
- package/build/esm/{types-eac9771c.js → types-d69ee206.js} +12 -12
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-77748b45.js +1 -0
- package/build/esm/{useRafState-326a32a7.js → useRafState-24287f60.js} +1 -1
- package/build/esm/{useTranslations-7597d802.js → useTranslations-e8adac8a.js} +1 -1
- package/build/esm/{utils-8db4813e.js → utils-0f4c6649.js} +1 -1
- package/build/esm/{utils-df78bdca.js → utils-49cd0015.js} +1 -1
- package/build/esm/vaccination.js +5 -5
- package/build/{fixedBottomAdBlock-efff2f32.js → fixedBottomAdBlock-dd768903.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-365b67da.js +1 -0
- package/build/{getSocialList-3ea88d7b.js → getSocialList-a0d8c4a7.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-d4846e3a.js → index-1f22fb4d.js} +1 -1
- package/build/{index-8324905e.js → index-2115a785.js} +1 -1
- package/build/{index-6bce8ea9.js → index-2ba9af52.js} +1 -1
- package/build/{index-945b6fd5.js → index-2bafc328.js} +1 -1
- package/build/{index-684d4b18.js → index-3cfe6be9.js} +1 -1
- package/build/{index-83b85075.js → index-487def80.js} +2 -2
- package/build/{index-d107f239.js → index-54f6d8ba.js} +1 -1
- package/build/{index-ed56a039.js → index-56226bf8.js} +1 -1
- package/build/{index-8ab8ccad.js → index-650f746c.js} +1 -1
- package/build/{index-3843f4de.js → index-6c6477b0.js} +1 -1
- package/build/index-70e4f70a.js +53 -0
- package/build/{index-56cbbe46.js → index-8cac71fc.js} +1 -1
- package/build/{index-7e2c352a.js → index-98b4c324.js} +1 -1
- package/build/{index-a89418e3.js → index-b2cc7acc.js} +1 -1
- package/build/{index-6819831b.js → index-bf806fa4.js} +1 -1
- package/build/index-e0fd117e.js +1 -0
- package/build/{index-8738dafb.js → index-eabacc42.js} +1 -1
- package/build/{index-3cd3e667.js → index-f33dd806.js} +1 -1
- package/build/{index-47af3631.js → index-f56461c2.js} +1 -1
- package/build/{index-79d33036.js → index-f5843f88.js} +1 -1
- package/build/{index-d0ab8429.js → index-fd68bdb7.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-f26d68bc.js → index.styled-38be6a23.js} +1 -1
- package/build/{index.styled-522d2abb.js → index.styled-ab1adfdd.js} +1 -1
- package/build/{index.styled-e69e3538.js → index.styled-cce65f47.js} +3 -3
- 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/onboarding.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-01287887.js → routing-eb58bf99.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-a73e1726.js → types-c6b697e7.js} +2 -2
- package/build/{types-317f61f9.js → types-dc124c2c.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-374f4461.js +1 -0
- package/build/{useRafState-38ff191f.js → useRafState-2bfbf48d.js} +1 -1
- package/build/{useTranslations-4d34c49d.js → useTranslations-388b2c98.js} +1 -1
- package/build/utils-2bd51637.js +1 -0
- package/build/{utils-6de25682.js → utils-66fc3fa8.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-0404054c.js +0 -1
- package/build/esm/core-7af1314a.js +0 -1
- package/build/esm/getDynamicHealthTool-5c62bbce.js +0 -1
- package/build/esm/index-164612c2.js +0 -1
- package/build/esm/index-258ac3a9.js +0 -1
- package/build/esm/index-7dbac417.js +0 -1
- package/build/esm/useHealthToolCache-e518b9cb.js +0 -1
- package/build/getDynamicHealthTool-ec24ee37.js +0 -1
- package/build/index-794f6abb.js +0 -53
- package/build/index-c5e25a84.js +0 -1
- package/build/useHealthToolCache-040d0c35.js +0 -1
- package/build/utils-34552ca3.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-be764fab.js → BMI_BOYS.percentile.monthly-e7969a8c.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-717ff870.js → BMI_BOYS.percentile.weekly-42b951dc.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-c36817f8.js → BMI_BOYS.percentile.yearly-933664a5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-32f81da6.js → BMI_BOYS.zscore.monthly-f17ef1fa.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-7a8efbce.js → BMI_BOYS.zscore.weekly-ed7cc2ee.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-ea5ee846.js → BMI_BOYS.zscore.yearly-096bfd78.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-fafb1975.js → BMI_GIRLS.percentile.monthly-bdb9e678.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-0f67721f.js → BMI_GIRLS.percentile.weekly-e9e42718.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7188c946.js → BMI_GIRLS.percentile.yearly-ecfbd535.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-ad6d0a8f.js → BMI_GIRLS.zscore.monthly-8b52f84f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-e06dbae9.js → BMI_GIRLS.zscore.weekly-c1519c5f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-b477d025.js → BMI_GIRLS.zscore.yearly-c72f1e1b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-00445d26.js → HEAD CIRCUM_BOYS.percentile.monthly-d6942910.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-67a1e177.js → HEAD CIRCUM_BOYS.percentile.weekly-7bbe3d72.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-981651d2.js → HEAD CIRCUM_BOYS.percentile.yearly-cf2082c8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-31a26be4.js → HEAD CIRCUM_BOYS.zscore.monthly-fa1d4ea1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-42e932cb.js → HEAD CIRCUM_BOYS.zscore.weekly-46201be1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c2ba3a34.js → HEAD CIRCUM_BOYS.zscore.yearly-6f6a75ef.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-c7cd5712.js → HEAD CIRCUM_GIRLS.percentile.monthly-2d3c69ed.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-bdde3016.js → HEAD CIRCUM_GIRLS.percentile.weekly-38c7470e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-083f2f97.js → HEAD CIRCUM_GIRLS.percentile.yearly-7e815061.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-7e5d7105.js → HEAD CIRCUM_GIRLS.zscore.monthly-966e1673.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-5467f154.js → HEAD CIRCUM_GIRLS.zscore.weekly-397d5497.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5b292847.js → HEAD CIRCUM_GIRLS.zscore.yearly-51c69a5c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-b9d24b9f.js → HEIGHT_BOYS.percentile.monthly-bf8bed39.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-cd1daad2.js → HEIGHT_BOYS.percentile.weekly-51275e3e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-718da8a9.js → HEIGHT_BOYS.percentile.yearly-d9baf324.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-93c88a85.js → HEIGHT_BOYS.zscore.monthly-4c7134a9.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-221290aa.js → HEIGHT_BOYS.zscore.weekly-ea470e59.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-dbc6ef38.js → HEIGHT_BOYS.zscore.yearly-b4001eac.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-5a941c7f.js → HEIGHT_GIRLS.percentile.monthly-97007a17.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-6513f88c.js → HEIGHT_GIRLS.percentile.weekly-2d9cf38b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-a80bec60.js → HEIGHT_GIRLS.percentile.yearly-dcc7e180.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-9f006152.js → HEIGHT_GIRLS.zscore.monthly-05dab57e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-ed46a9be.js → HEIGHT_GIRLS.zscore.weekly-9c1227b0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-55a6e918.js → HEIGHT_GIRLS.zscore.yearly-f69f0c16.js} +0 -0
- /package/build/{Onboarding-30977a28.js → Onboarding-763263bd.js} +0 -0
- /package/build/{Visible-73a9c61e.js → Visible-1510daae.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-9211cc59.js → WEIGHT_BOYS.percentile.monthly-5aef6340.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-d4613745.js → WEIGHT_BOYS.percentile.weekly-78eae415.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-fe3e0acc.js → WEIGHT_BOYS.percentile.yearly-3e111a86.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-c8b51e11.js → WEIGHT_BOYS.zscore.monthly-88e278fc.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-915b7636.js → WEIGHT_BOYS.zscore.weekly-ad3d219a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-63b05989.js → WEIGHT_BOYS.zscore.yearly-cdc469bc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-2b7b348c.js → WEIGHT_GIRLS.percentile.monthly-ef315c6b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-396c0d03.js → WEIGHT_GIRLS.percentile.weekly-b9b2294d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-6dc1ee7c.js → WEIGHT_GIRLS.percentile.yearly-573f8c5f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-8dd66e65.js → WEIGHT_GIRLS.zscore.monthly-dcf55ae9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-e7309a28.js → WEIGHT_GIRLS.zscore.weekly-32036680.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-46483619.js → WEIGHT_GIRLS.zscore.yearly-f472782e.js} +0 -0
- /package/build/{constants-d085b55e.js → constants-2a1ae49b.js} +0 -0
- /package/build/{cookieHelper-113d5d8f.js → cookieHelper-c02a9835.js} +0 -0
- /package/build/{dataTransform-db7919b9.js → dataTransform-50ca2b71.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-e82cdc65.js → BMI_BOYS.percentile.monthly-026be207.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-20d30be1.js → BMI_BOYS.percentile.weekly-9d11ceed.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7cf08717.js → BMI_BOYS.percentile.yearly-915860f5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-390537ec.js → BMI_BOYS.zscore.monthly-027665dd.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-3a235c91.js → BMI_BOYS.zscore.weekly-36332c51.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-eed73a8a.js → BMI_BOYS.zscore.yearly-01355236.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-05837b6a.js → BMI_GIRLS.percentile.monthly-de2fbc61.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-678a74ee.js → BMI_GIRLS.percentile.weekly-a3e37e19.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-dc9fa3b6.js → BMI_GIRLS.percentile.yearly-3186aba5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-acd95d4a.js → BMI_GIRLS.zscore.monthly-c8b642f7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-de839d3b.js → BMI_GIRLS.zscore.weekly-c7892f39.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-c0da7049.js → BMI_GIRLS.zscore.yearly-2bf35542.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-eef769c0.js → HEAD CIRCUM_BOYS.percentile.monthly-bc65812f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-ac24b410.js → HEAD CIRCUM_BOYS.percentile.weekly-c963ce3c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d88f2f93.js → HEAD CIRCUM_BOYS.percentile.yearly-91e16bf5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-a16e5ce9.js → HEAD CIRCUM_BOYS.zscore.monthly-f7ecf3be.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-09eccbd7.js → HEAD CIRCUM_BOYS.zscore.weekly-a052bb19.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-0034fe55.js → HEAD CIRCUM_BOYS.zscore.yearly-272adbaa.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-672e6cbe.js → HEAD CIRCUM_GIRLS.percentile.monthly-6a7b41c4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4912f431.js → HEAD CIRCUM_GIRLS.percentile.weekly-095cbc85.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-8a6aafe9.js → HEAD CIRCUM_GIRLS.percentile.yearly-0133cc9d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-eec78343.js → HEAD CIRCUM_GIRLS.zscore.monthly-bcc9ccfd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-68e991c1.js → HEAD CIRCUM_GIRLS.zscore.weekly-c6eda8cb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-10f61af8.js → HEAD CIRCUM_GIRLS.zscore.yearly-9d59e363.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-d59c166e.js → HEIGHT_BOYS.percentile.monthly-9b992c6a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-088e8adb.js → HEIGHT_BOYS.percentile.weekly-3a8a7218.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-436897cb.js → HEIGHT_BOYS.percentile.yearly-ab7c235b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-74c8dcc5.js → HEIGHT_BOYS.zscore.monthly-a9e24711.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-5fcde6cd.js → HEIGHT_BOYS.zscore.weekly-f15762c5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-0e48b2f8.js → HEIGHT_BOYS.zscore.yearly-e918cdf5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-25fd2813.js → HEIGHT_GIRLS.percentile.monthly-06edf320.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-6d83e9a7.js → HEIGHT_GIRLS.percentile.weekly-cada39b4.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-64bc5924.js → HEIGHT_GIRLS.percentile.yearly-c6255de8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-2aef62ab.js → HEIGHT_GIRLS.zscore.monthly-59b2af8e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-92f68a56.js → HEIGHT_GIRLS.zscore.weekly-1d14e2b6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-958c71a2.js → HEIGHT_GIRLS.zscore.yearly-e839dbb2.js} +0 -0
- /package/build/esm/{Onboarding-ad49870c.js → Onboarding-ff78862f.js} +0 -0
- /package/build/esm/{Visible-ac315efb.js → Visible-df051a7d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-adad02ed.js → WEIGHT_BOYS.percentile.monthly-ca848d26.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-2d886cac.js → WEIGHT_BOYS.percentile.weekly-3631d852.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b8bbb4e9.js → WEIGHT_BOYS.percentile.yearly-9691b24d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ab63ae85.js → WEIGHT_BOYS.zscore.monthly-24aae22c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8c359273.js → WEIGHT_BOYS.zscore.weekly-a573fac1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f35f47d4.js → WEIGHT_BOYS.zscore.yearly-24aeb0e7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-b8d9bd0d.js → WEIGHT_GIRLS.percentile.monthly-eb2b71f3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-bf02db33.js → WEIGHT_GIRLS.percentile.weekly-0fc5ac47.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-2099b0bf.js → WEIGHT_GIRLS.percentile.yearly-54f86a24.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-f2776700.js → WEIGHT_GIRLS.zscore.monthly-6c507f4b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-7acf1c1c.js → WEIGHT_GIRLS.zscore.weekly-fd6436d5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-0a90ab49.js → WEIGHT_GIRLS.zscore.yearly-e0b72bae.js} +0 -0
- /package/build/esm/{constants-254a4df3.js → constants-bd2e2bb9.js} +0 -0
- /package/build/esm/{cookieHelper-f8486f9d.js → cookieHelper-24e8a5fb.js} +0 -0
- /package/build/esm/{dataTransform-5e76271a.js → dataTransform-6a627eb5.js} +0 -0
- /package/build/esm/{index-6ee00df0.js → index-1626c7eb.js} +0 -0
- /package/build/esm/{isProduction-8ce1051d.js → isProduction-b12d596a.js} +0 -0
- /package/build/esm/{localizeNumberFormat-947fe3bd.js → localizeNumberFormat-1cebd783.js} +0 -0
- /package/build/esm/{normalizeLink-6d537179.js → normalizeLink-86bd6e1e.js} +0 -0
- /package/build/esm/{paths-d4225106.js → paths-64ccdd58.js} +0 -0
- /package/build/esm/{screenSizeContext-987c451f.js → screenSizeContext-4eb558b5.js} +0 -0
- /package/build/esm/{theme-31acd0c2.js → theme-6958f818.js} +0 -0
- /package/build/esm/{translationsContext-e9aaabb6.js → translationsContext-cf558e50.js} +0 -0
- /package/build/esm/{tslib.es6-c8835980.js → tslib.es6-aa6dda30.js} +0 -0
- /package/build/esm/{types-6686141b.js → types-614fc596.js} +0 -0
- /package/build/esm/{useIsInit-3a06bd4a.js → useIsInit-1907bb7f.js} +0 -0
- /package/build/esm/{useOutsideClick-c00670e4.js → useOutsideClick-7843e861.js} +0 -0
- /package/build/esm/{useScrollbarSize-ba68fbbc.js → useScrollbarSize-859a83e2.js} +0 -0
- /package/build/esm/{useUniqueId-6daecd5a.js → useUniqueId-224e1126.js} +0 -0
- /package/build/{index-02fdc77f.js → index-68c32ed4.js} +0 -0
- /package/build/{isProduction-028c30c1.js → isProduction-5decd5ee.js} +0 -0
- /package/build/{localizeNumberFormat-b048ccb6.js → localizeNumberFormat-fc44b259.js} +0 -0
- /package/build/{normalizeLink-64a0a4fd.js → normalizeLink-2e7b8c35.js} +0 -0
- /package/build/{paths-1677e749.js → paths-d8522736.js} +0 -0
- /package/build/{screenSizeContext-593b4ba2.js → screenSizeContext-58d16a70.js} +0 -0
- /package/build/{theme-d21cf9c9.js → theme-714ba8eb.js} +0 -0
- /package/build/{translationsContext-ef6e8716.js → translationsContext-5dbe0768.js} +0 -0
- /package/build/{tslib.es6-b8b05056.js → tslib.es6-71ed3e73.js} +0 -0
- /package/build/{types-d430ba99.js → types-dfb71ff9.js} +0 -0
- /package/build/{useIsInit-c7206042.js → useIsInit-a3d864b6.js} +0 -0
- /package/build/{useOutsideClick-23bc853d.js → useOutsideClick-1fd814a9.js} +0 -0
- /package/build/{useScrollbarSize-555600fa.js → useScrollbarSize-79ed5c61.js} +0 -0
- /package/build/{useUniqueId-61b17d61.js → useUniqueId-3d496ffe.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-71ed3e73.js"),t=require("react"),a=require("./useTranslations-388b2c98.js"),i=require("lodash/debounce"),o=require("./constants-2a1ae49b.js"),n=require("./index-f56461c2.js"),l=require("styled-components"),s=require("./index-eabacc42.js"),r=require("./theme-714ba8eb.js"),c=require("./screenSizeContext-58d16a70.js"),d=require("react-loading-skeleton"),u=require("lodash/shuffle"),p=require("./useOutsideClick-1fd814a9.js"),h=require("./paths-d8522736.js"),g=require("@mantine/core"),f=require("./index-1f22fb4d.js"),m=require("./cookieHelper-c02a9835.js"),C=require("./index-3cfe6be9.js"),b=require("string-format");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function v(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var x=v(t),E=y(t),L=y(i),w=y(l),S=y(d),O=y(u),k=y(b);const I=e=>x.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),x.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));function T(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),n=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:n})),[e,i])}const j=w.default.div``,M=w.default.div`
|
|
2
2
|
--searchbar-z-index: 305;
|
|
3
3
|
&[data-is-modal='true'] {
|
|
4
4
|
position: fixed;
|
|
@@ -748,4 +748,4 @@
|
|
|
748
748
|
background: rgba(255, 255, 255, 0.64);
|
|
749
749
|
backdrop-filter: blur(12px);
|
|
750
750
|
border-bottom: 1px solid ${r.theme.colors.neutral100};
|
|
751
|
-
`,Pt=({currentTab:e,isMobile:i,setCurrentTab:o})=>{const{t:n}=a.useTranslations(),l=t.useMemo((()=>({root:{overflowY:i?"hidden":"initial",overflowX:i?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:i?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:i?"14px":"16px",fontWeight:600,lineHeight:i?"22px":"24px"}})),[i]);return E.default.createElement(Nt,null,E.default.createElement(C.Container,null,E.default.createElement(g.Tabs,{value:e,onTabChange:e=>{o(e)},styles:l},E.default.createElement(g.Tabs.List,null,E.default.createElement(g.Tabs.Tab,{value:"hospital"},n("booking.searchPopup.hospitals")),E.default.createElement(g.Tabs.Tab,{value:"doctor"},n("booking.searchPopup.doctors")),E.default.createElement(g.Tabs.Tab,{value:"service"},n("booking.searchPopup.services")),E.default.createElement(g.Tabs.Tab,{value:"specialty"},n("booking.searchPopup.specialties"))))))};var Ft;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Ft||(Ft={}));var _t=Object.freeze({__proto__:null,get RedirectType(){return Ft}});exports.BookingSearchBar=({isMobile:i,careApiDomain:n,geoLocationPermission:l,geoLocationCoordinates:s,initialSelectedCity:r,initialSearchValue:c="",careFrontDomain:d="/care",isDebug:u=!1,askForGeolocationPermission:p=!1,gaTrackingSearchBar:g,gaTrackingLocationSearch:f,autoCompleteDisabled:m=!1,inputSearchPlaceholder:C="",isOptionAllLocation:b=!1,hideResults:y=[],isNavResultItem:v=!0,routerPush:x,onGeoLocationPermissionChange:w,onSearch:S,onChangeLocation:O})=>{const{t:k,locale:I}=a.useTranslations(),N=t.useRef(null),F=t.useRef(null),[_,$]=t.useState(void 0),[D,B]=t.useState(!1),{geoLocationPermission:V,geoLocationCoordinates:H,requestGeoLocation:z}=T(),[K,G]=t.useReducer(Ce,ge,(e=>Object.assign(Object.assign({},e),{isDebug:u,isMobile:i,geoLocationPermission:l||V||"unset",geoLocationCoordinates:s||H||null,searchKeywords:c,initialSelectedCity:r||null,selectedLocation:r||e.selectedLocation||null,searchLocationKeywords:(null==r?void 0:r.name)||e.searchLocationKeywords,autoCompleteDisabled:m,inputSearchPlaceholder:C,locale:I}))),{navigateTo:U,focused:Q,isLoadingCities:q,cities:Y,searchKeywords:W,geoLocationPermission:J,selectedLocation:X,initialSelectedCity:ee,defaultCity:te,searchResults:ae,isLoadingSearchResults:ie,isMobileModalOpened:oe,inputSearchPlaceholder:ne}=K,{fetchCitiesByLocation:se,fetchCitiesByKeyword:re,fetchSearchResults:ce}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const n=t.useCallback((function(t,o={}){const n=`${a}${t}`;return e({type:fe.FetchCitiesStart}),fetch(Ye(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:fe.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const l=[n(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&l.push(n(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(l).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:fe.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:fe.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,n){const l=`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:fe.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:c}=n;let d="";if(!r||!s)return void e({type:fe.FetchSearchResultsFinish});r.id===o.ID_OPTION_CURRENT_LOCATION?c||(d=s.id):d=r.id===o.ID_OPTION_ALL_LOCATION?"":r.id;const u=(null==c?void 0:c.lat)||"",p=(null==c?void 0:c.lng)||"";return fetch(Ye(l,{domain:a,searchType:"global",keyword:t.trim().length>he[i]?t.trim():"",city:d===o.ID_OPTION_CURRENT_LOCATION?"":d,lat:u,lng:p},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:fe.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:l,error:e})})).finally((()=>e({type:fe.FetchSearchResultsFinish})))}),[i,a,e])}}({dispatch:G,locale:I,careApiDomain:n}),de=t.useMemo((()=>{var e;return{id:o.ID_OPTION_CURRENT_LOCATION,name:k("booking.searchBar.currentLocation"),slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.CURRENT}}),[k,I]),ue=t.useMemo((()=>L.default(re,400)),[re]),me=t.useMemo((()=>L.default(ce,400)),[ce]);t.useEffect((()=>{""!==c&&c!==K.searchKeywords&&G({type:fe.UpdateInitialSearchValue,payload:c})}),[c]),t.useEffect((()=>{p&&(null==X?void 0:X.id)===o.ID_OPTION_CURRENT_LOCATION&&"unset"===J&&z()}),[p,X,J]),t.useEffect((()=>{l||J===V||("granted"===V&&H?G({type:fe.GrantGeoLocationPermission,payload:H}):"denied"===V&&G({type:fe.DenyGeoLocationPermission}))}),[J,V,H,l]),t.useEffect((()=>{U&&(x?x(U):window.location.href=`${d}${U}`)}),[U]);const be=t.useCallback((function(){G({type:fe.SelectCurrentLocation,payload:de})}),[k,G]);t.useEffect((()=>{var e;"denied"===J||ee||G({type:fe.SelectLocation,payload:{name:k("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.ALL}}),w&&w(J,K.geoLocationCoordinates),i&&"granted"===J&&X&&G({type:fe.FocusInputSearch}),se({coordinates:K.geoLocationCoordinates})}),[J]),t.useEffect((()=>{X&&te&&ce(K.searchKeywords,K)}),[X,te]),t.useEffect((()=>{C!==ne&&G({type:fe.SetInputSearchPlaceholder,payload:C})}),[C,ne]),t.useEffect((()=>{oe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[oe]);const ye=t.useCallback((function(e){"ms-MY"===I&&B(!0),G({type:fe.SelectLocation,payload:e}),"ms-MY"!==I&&Ee(),O&&O(e)}),[k,G]);function ve(){"ms-MY"===I&&B(!0),i&&"granted"!==K.geoLocationPermission?z():(be(),"ms-MY"!==I&&Ee())}function xe(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Le(){G({type:fe.CloseMobileModal})}function we(){return"location"!==Q?null:E.default.createElement(Z,{isLoading:q,cities:Y,onLocationClick:ye,onCurrentLocationClick:ve,isLocationLoading:q,geoLocationPermission:J,selectedLocation:X,isOptionAllLocation:b})}function Se(){return"search"!==Q?null:K.autoCompleteDisabled?i?E.default.createElement(Oe,{onClick:()=>{S({cityId:K.selectedLocation.id,keyword:W}),Le()}}):null:E.default.createElement(qe,{data:ae,state:K,dispatch:G,isMobile:!1,keyword:W,isLoading:ie,hideResults:y,isNavResultItem:v})}function Ie(){return E.default.createElement(ke,{isMobile:i,state:K,dispatch:G,debouncedFetchCitiesByKeyword:ue,debouncedFetchSearchResults:me,focusLocationInput:xe,focusSearchInput:Ee,renderLocationResults:we,renderSearchResults:Se,trackingAttributes:g,locationTrackingAttributes:f,onSearch:S,initalSearchValue:c})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;$(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[$]),t.useEffect((()=>{if(X&&D&&"ms-MY"===I){const e=`/${X.slug}/hospital`;G({type:fe.NavigateTo,payload:e}),B(!1)}}),[D,I,X]),i?E.default.createElement(E.default.Fragment,null,E.default.createElement(P,null),E.default.createElement(A,{ref:F}),E.default.createElement(M,{id:"booking-search-bar",ref:N,"data-is-modal":i&&oe,style:{"--mobile-care-searchbar-height":oe&&_?`${_}px`:"100%"}},oe?E.default.createElement(E.default.Fragment,null,E.default.createElement(R,null,E.default.createElement(pe,{headingText:k("booking.searchBar.searchButton"),onLeftClick:Le}),Ie()),we(),Se()):E.default.createElement(le,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){F.current&&F.current.focus(),G({type:fe.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:Q,value:W,trackingAttributes:g,inputSearchPlaceholder:C}))):E.default.createElement(j,{id:"booking-search-bar",ref:N},Ie())},exports.BookingSearchBarV2=({isMobile:e,careApiDomain:i,geoLocationPermission:n,geoLocationCoordinates:l,initialSelectedCity:s,initialSearchValue:r="",careFrontDomain:c="/care",isDebug:d=!1,gaTrackingSearchBar:u,gaTrackingLocationSearch:p,autoCompleteDisabled:f=!1,inputSearchPlaceholder:m="",routerPush:C,onGeoLocationPermissionChange:b,onChangeLocation:y})=>{const{locale:v,t:x}=a.useTranslations(),w=t.useRef(null),[S,O]=t.useState("hospital"),{geoLocationPermission:k,geoLocationCoordinates:I}=T(),[j,M]=t.useReducer(ot,tt,(t=>Object.assign(Object.assign({},t),{isDebug:d,isMobile:e,geoLocationPermission:n||k||"unset",geoLocationCoordinates:l||I||null,searchKeywords:r,initialSelectedCity:s||null,selectedLocation:s||t.selectedLocation||null,searchLocationKeywords:(null==s?void 0:s.name)||t.searchLocationKeywords,autoCompleteDisabled:f,inputSearchPlaceholder:m,locale:v}))),{navigateTo:R,searchKeywords:A,geoLocationPermission:N,selectedLocation:P,selectedSpecialty:F,initialSelectedCity:_,searchResults:$,isLoadingSearchResults:D}=j,{fetchCitiesByLocation:B,fetchCitiesByKeyword:V,fetchSearchResults:H,fetchAllSpecialties:z}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const n=t.useCallback((function(t,o={}){const n=`${a}${t}`;return e({type:at.FetchCitiesStart}),fetch(Ye(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:at.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const l=[n(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&l.push(n(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(l).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:at.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:at.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,n,l,s){const r="specialty"===l?`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`:`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:at.FetchSearchResultsStart});const{defaultCity:c,selectedLocation:d,geoLocationCoordinates:u,selectedSpecialty:p}=n;let g="";if(!d||!c)return void e({type:at.FetchSearchResultsFinish});d.id===o.ID_OPTION_CURRENT_LOCATION?u||(g=c.id):g=d.id===o.ID_OPTION_ALL_LOCATION?"":d.id;const f=(null==u?void 0:u.lat)||"",m=(null==u?void 0:u.lng)||"",C=(null==p?void 0:p.id)>0?null==p?void 0:p.id:"";return fetch(Ye(r,{domain:a,searchType:l||"global",keyword:t.trim().length>et[i]?t.trim():"",city:g===o.ID_OPTION_CURRENT_LOCATION?"":g,lat:f,lng:m,specialty_id:C},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:at.FetchSearchResultsComplete,payload:{key:l,searches:t.searches||t.specialties||[]}}),s&&e({type:at.UpdateInitialSearchResults,payload:{key:l,searches:t.searches||t.specialties||[]}})})).catch((e=>{console.log("error loading search results",{url:r,error:e})})).finally((()=>e({type:at.FetchSearchResultsFinish})))}),[i,a,e]),fetchAllSpecialties:t.useCallback((function(){const t=`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`;return fetch(Ye(t,{domain:a,searchType:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:at.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:t,error:e})}))}),[i,a,e])}}({dispatch:M,locale:v,careApiDomain:i}),K=t.useMemo((()=>o.LOCALIZED_SLUGS[v]),[v]),G=t.useMemo((()=>({doctor:{name:x("booking.searchPopup.doctors"),icon:E.default.createElement(ft,null),slug:K.DOCTOR},service:{name:x("booking.searchPopup.services"),icon:E.default.createElement(mt,null),slug:K.SERVICE},hospital:{name:x("booking.searchPopup.hospitals"),icon:E.default.createElement(Ct,null),slug:K.HOSPITAL},specialty:{name:x("booking.searchPopup.specialties"),icon:E.default.createElement(bt,null),slug:K.SPECIALTIES}})),[S]),Z=t.useMemo((()=>L.default(V,400)),[V]),U=t.useMemo((()=>L.default(H,400)),[H]),Q=t.useCallback((function(e){M({type:at.SelectLocation,payload:e}),q(),y&&y(e)}),[x,M]);function q(){var e;w.current&&(null===(e=w.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return t.useEffect((()=>{var t;"denied"===N||_||M({type:at.SelectLocation,payload:{name:x("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(t=o.LOCALIZED_SLUGS[v])||void 0===t?void 0:t.ALL}}),b&&b(N,j.geoLocationCoordinates),e&&"granted"===N&&P&&M({type:at.FocusInputSearch}),B({coordinates:j.geoLocationCoordinates})}),[N]),t.useEffect((()=>{M({type:at.SelectSpecialty,payload:{name:x("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:K.SPECIALTIES}})}),[]),t.useEffect((()=>{z()}),[]),t.useEffect((()=>{R&&(C?C(R):window.location.href=`${c}${R}`)}),[R]),t.useEffect((()=>{(P||F)&&H(j.searchKeywords,j,S,!0)}),[P,F]),t.useEffect((()=>{H(j.searchKeywords,j,S,!0)}),[S]),E.default.createElement(We,{ref:w},E.default.createElement(Pt,{currentTab:S,setCurrentTab:O,isMobile:e}),E.default.createElement(Je,null,E.default.createElement(Xe,null,E.default.createElement(g.Flex,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==S&&E.default.createElement(St,{state:j,isMobile:e,dispatch:M,debouncedFetchCitiesByKeyword:Z,selectedLocation:P,onLocationClick:Q,trackingAttributes:p}),E.default.createElement(vt,{type:S,isMobile:e,state:j,dispatch:M,debouncedFetchSearchResults:U,initalSearchValue:r,focusSearchInput:q,typeInformation:G,trackingAttributes:u,isLoading:D}),E.default.createElement(g.Button,{size:e?"md":"lg",fullWidth:e,onClick:function(){let e="";const{slug:t}=G[S];e="specialty"===S?`/${t}?q=${A}`:`/${P.slug}/${t}?q=${A}`,e&&M({type:at.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},x("booking.searchBar.searchButton"))),"specialty"!==S&&E.default.createElement(At,null),"specialty"===S&&E.default.createElement(jt,{state:j,isMobile:e,dispatch:M,specialties:(null==$?void 0:$.specialty)||[],isLoading:D}))))},exports.ChevronDown=I,exports.types=_t;
|
|
751
|
+
`,Pt=({currentTab:e,isMobile:i,setCurrentTab:o})=>{const{t:n}=a.useTranslations(),l=t.useMemo((()=>({root:{overflowY:i?"hidden":"initial",overflowX:i?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:i?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:i?"14px":"16px",fontWeight:600,lineHeight:i?"22px":"24px"}})),[i]);return E.default.createElement(Nt,null,E.default.createElement(C.Container,null,E.default.createElement(g.Tabs,{value:e,onTabChange:e=>{o(e)},styles:l},E.default.createElement(g.Tabs.List,null,E.default.createElement(g.Tabs.Tab,{value:"hospital"},n("booking.searchPopup.hospitals")),E.default.createElement(g.Tabs.Tab,{value:"doctor"},n("booking.searchPopup.doctors")),E.default.createElement(g.Tabs.Tab,{value:"service"},n("booking.searchPopup.services")),E.default.createElement(g.Tabs.Tab,{value:"specialty"},n("booking.searchPopup.specialties"))))))};var Ft;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Ft||(Ft={}));var _t=Object.freeze({__proto__:null,get RedirectType(){return Ft}});exports.BookingSearchBar=({isMobile:i,careApiDomain:n,geoLocationPermission:l,geoLocationCoordinates:s,initialSelectedCity:r,initialSearchValue:c="",careFrontDomain:d="/care",isDebug:u=!1,askForGeolocationPermission:p=!1,gaTrackingSearchBar:g,gaTrackingLocationSearch:f,autoCompleteDisabled:m=!1,inputSearchPlaceholder:C="",isOptionAllLocation:b=!1,hideResults:y=[],isNavResultItem:v=!0,routerPush:x,onGeoLocationPermissionChange:w,onSearch:S,onChangeLocation:O})=>{const{t:k,locale:I}=a.useTranslations(),N=t.useRef(null),F=t.useRef(null),[_,$]=t.useState(void 0),[D,B]=t.useState(!1),{geoLocationPermission:V,geoLocationCoordinates:H,requestGeoLocation:z}=T(),[K,G]=t.useReducer(Ce,ge,(e=>Object.assign(Object.assign({},e),{isDebug:u,isMobile:i,geoLocationPermission:l||V||"unset",geoLocationCoordinates:s||H||null,searchKeywords:c,initialSelectedCity:r||null,selectedLocation:r||e.selectedLocation||null,searchLocationKeywords:(null==r?void 0:r.name)||e.searchLocationKeywords,autoCompleteDisabled:m,inputSearchPlaceholder:C,locale:I}))),{navigateTo:U,focused:Q,isLoadingCities:q,cities:Y,searchKeywords:W,geoLocationPermission:J,selectedLocation:X,initialSelectedCity:ee,defaultCity:te,searchResults:ae,isLoadingSearchResults:ie,isMobileModalOpened:oe,inputSearchPlaceholder:ne}=K,{fetchCitiesByLocation:se,fetchCitiesByKeyword:re,fetchSearchResults:ce}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const n=t.useCallback((function(t,o={}){const n=`${a}${t}`;return e({type:fe.FetchCitiesStart}),fetch(Ye(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:fe.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const l=[n(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&l.push(n(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(l).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:fe.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:fe.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,n){const l=`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:fe.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:c}=n;let d="";if(!r||!s)return void e({type:fe.FetchSearchResultsFinish});r.id===o.ID_OPTION_CURRENT_LOCATION?c||(d=s.id):d=r.id===o.ID_OPTION_ALL_LOCATION?"":r.id;const u=(null==c?void 0:c.lat)||"",p=(null==c?void 0:c.lng)||"";return fetch(Ye(l,{domain:a,searchType:"global",keyword:t.trim().length>he[i]?t.trim():"",city:d===o.ID_OPTION_CURRENT_LOCATION?"":d,lat:u,lng:p},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:fe.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:l,error:e})})).finally((()=>e({type:fe.FetchSearchResultsFinish})))}),[i,a,e])}}({dispatch:G,locale:I,careApiDomain:n}),de=t.useMemo((()=>{var e;return{id:o.ID_OPTION_CURRENT_LOCATION,name:k("booking.searchBar.currentLocation"),slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.CURRENT}}),[k,I]),ue=t.useMemo((()=>L.default(re,400)),[re]),me=t.useMemo((()=>L.default(ce,400)),[ce]);t.useEffect((()=>{""!==c&&c!==K.searchKeywords&&G({type:fe.UpdateInitialSearchValue,payload:c})}),[c]),t.useEffect((()=>{p&&(null==X?void 0:X.id)===o.ID_OPTION_CURRENT_LOCATION&&"unset"===J&&z()}),[p,X,J]),t.useEffect((()=>{l||J===V||("granted"===V&&H?G({type:fe.GrantGeoLocationPermission,payload:H}):"denied"===V&&G({type:fe.DenyGeoLocationPermission}))}),[J,V,H,l]),t.useEffect((()=>{U&&(x?x(U):window.location.href=`${d}${U}`)}),[U]);const be=t.useCallback((function(){G({type:fe.SelectCurrentLocation,payload:de})}),[k,G]);t.useEffect((()=>{var e;"denied"===J||ee||G({type:fe.SelectLocation,payload:{name:k("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.ALL}}),w&&w(J,K.geoLocationCoordinates),i&&"granted"===J&&X&&G({type:fe.FocusInputSearch}),se({coordinates:K.geoLocationCoordinates})}),[J]),t.useEffect((()=>{X&&te&&ce(K.searchKeywords,K)}),[X,te]),t.useEffect((()=>{C!==ne&&G({type:fe.SetInputSearchPlaceholder,payload:C})}),[C,ne]),t.useEffect((()=>{oe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[oe]);const ye=t.useCallback((function(e){"ms-MY"===I&&B(!0),G({type:fe.SelectLocation,payload:e}),"ms-MY"!==I&&Ee(),O&&O(e)}),[k,G]);function ve(){"ms-MY"===I&&B(!0),i&&"granted"!==K.geoLocationPermission?z():(be(),"ms-MY"!==I&&Ee())}function xe(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Le(){G({type:fe.CloseMobileModal})}function we(){return"location"!==Q?null:E.default.createElement(Z,{isLoading:q,cities:Y,onLocationClick:ye,onCurrentLocationClick:ve,isLocationLoading:q,geoLocationPermission:J,selectedLocation:X,isOptionAllLocation:b})}function Se(){return"search"!==Q?null:K.autoCompleteDisabled?i?E.default.createElement(Oe,{onClick:()=>{S({cityId:K.selectedLocation.id,keyword:W}),Le()}}):null:E.default.createElement(qe,{data:ae,state:K,dispatch:G,isMobile:!1,keyword:W,isLoading:ie,hideResults:y,isNavResultItem:v})}function Ie(){return E.default.createElement(ke,{isMobile:i,state:K,dispatch:G,debouncedFetchCitiesByKeyword:ue,debouncedFetchSearchResults:me,focusLocationInput:xe,focusSearchInput:Ee,renderLocationResults:we,renderSearchResults:Se,trackingAttributes:g,locationTrackingAttributes:f,onSearch:S,initalSearchValue:c})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;$(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[$]),t.useEffect((()=>{if(X&&D&&"ms-MY"===I){const e=`/${X.slug}/hospital`;G({type:fe.NavigateTo,payload:e}),B(!1)}}),[D,I,X]),i?E.default.createElement(E.default.Fragment,null,E.default.createElement(P,null),E.default.createElement(A,{ref:F}),E.default.createElement(M,{id:"booking-search-bar",ref:N,"data-is-modal":i&&oe,style:{"--mobile-care-searchbar-height":oe&&_?`${_}px`:"100%"}},oe?E.default.createElement(E.default.Fragment,null,E.default.createElement(R,null,E.default.createElement(pe,{headingText:k("booking.searchBar.searchButton"),onLeftClick:Le}),Ie()),we(),Se()):E.default.createElement(le,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){F.current&&F.current.focus(),G({type:fe.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:Q,value:W,trackingAttributes:g,inputSearchPlaceholder:C}))):E.default.createElement(j,{id:"booking-search-bar",ref:N},Ie())},exports.BookingSearchBarV2=({isMobile:e,careApiDomain:i,geoLocationPermission:n,geoLocationCoordinates:l,initialSelectedCity:s,initialSearchValue:r="",careFrontDomain:c="/care",isDebug:d=!1,gaTrackingSearchBar:u,gaTrackingLocationSearch:p,autoCompleteDisabled:f=!1,inputSearchPlaceholder:m="",routerPush:C,onGeoLocationPermissionChange:b,onChangeLocation:y})=>{const{locale:v,t:x}=a.useTranslations(),w=t.useRef(null),[S,O]=t.useState("hospital"),{geoLocationPermission:k,geoLocationCoordinates:I}=T(),[j,M]=t.useReducer(ot,tt,(t=>Object.assign(Object.assign({},t),{isDebug:d,isMobile:e,geoLocationPermission:n||k||"unset",geoLocationCoordinates:l||I||null,searchKeywords:r,initialSelectedCity:s||null,selectedLocation:s||t.selectedLocation||null,searchLocationKeywords:(null==s?void 0:s.name)||t.searchLocationKeywords,autoCompleteDisabled:f,inputSearchPlaceholder:m,locale:v}))),{navigateTo:R,searchKeywords:A,geoLocationPermission:N,selectedLocation:P,selectedSpecialty:F,initialSelectedCity:_,searchResults:$,isLoadingSearchResults:D}=j,{fetchCitiesByLocation:B,fetchCitiesByKeyword:V,fetchSearchResults:H,fetchAllSpecialties:z}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const n=t.useCallback((function(t,o={}){const n=`${a}${t}`;return e({type:at.FetchCitiesStart}),fetch(Ye(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:at.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const l=[n(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&l.push(n(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(l).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:at.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:at.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,n,l,s){const r="specialty"===l?`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`:`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:at.FetchSearchResultsStart});const{selectedLocation:c,geoLocationCoordinates:d,selectedSpecialty:u}=n;let p="";if(!c)return void e({type:at.FetchSearchResultsFinish});p=c.id===o.ID_OPTION_ALL_LOCATION?"":c.id;const g=(null==d?void 0:d.lat)||"",f=(null==d?void 0:d.lng)||"",m=(null==u?void 0:u.id)>0?null==u?void 0:u.id:"";return fetch(Ye(r,{domain:a,searchType:l||"global",keyword:t.trim().length>et[i]?t.trim():"",city:p===o.ID_OPTION_CURRENT_LOCATION?"":p,lat:g,lng:f,specialty_id:m},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:at.FetchSearchResultsComplete,payload:{key:l,searches:t.searches||t.specialties||[]}}),s&&e({type:at.UpdateInitialSearchResults,payload:{key:l,searches:t.searches||t.specialties||[]}})})).catch((e=>{console.log("error loading search results",{url:r,error:e})})).finally((()=>e({type:at.FetchSearchResultsFinish})))}),[i,a,e]),fetchAllSpecialties:t.useCallback((function(){const t=`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`;return fetch(Ye(t,{domain:a,searchType:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:at.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:t,error:e})}))}),[i,a,e])}}({dispatch:M,locale:v,careApiDomain:i}),K=t.useMemo((()=>o.LOCALIZED_SLUGS[v]),[v]),G=t.useMemo((()=>({doctor:{name:x("booking.searchPopup.doctors"),icon:E.default.createElement(ft,null),slug:K.DOCTOR},service:{name:x("booking.searchPopup.services"),icon:E.default.createElement(mt,null),slug:K.SERVICE},hospital:{name:x("booking.searchPopup.hospitals"),icon:E.default.createElement(Ct,null),slug:K.HOSPITAL},specialty:{name:x("booking.searchPopup.specialties"),icon:E.default.createElement(bt,null),slug:K.SPECIALTIES}})),[S]),Z=t.useMemo((()=>L.default(V,400)),[V]),U=t.useMemo((()=>L.default(H,400)),[H]),Q=t.useCallback((function(e){M({type:at.SelectLocation,payload:e}),q(),y&&y(e)}),[x,M]);function q(){var e;w.current&&(null===(e=w.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return t.useEffect((()=>{var t;"denied"===N||_||M({type:at.SelectLocation,payload:{name:x("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(t=o.LOCALIZED_SLUGS[v])||void 0===t?void 0:t.ALL}}),b&&b(N,j.geoLocationCoordinates),e&&"granted"===N&&P&&M({type:at.FocusInputSearch}),B({coordinates:j.geoLocationCoordinates})}),[N]),t.useEffect((()=>{M({type:at.SelectSpecialty,payload:{name:x("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:K.SPECIALTIES}})}),[]),t.useEffect((()=>{z()}),[]),t.useEffect((()=>{R&&(C?C(R):window.location.href=`${c}${R}`)}),[R]),t.useEffect((()=>{H(j.searchKeywords,j,S,!0)}),[P,F,S]),E.default.createElement(We,{ref:w},E.default.createElement(Pt,{currentTab:S,setCurrentTab:O,isMobile:e}),E.default.createElement(Je,null,E.default.createElement(Xe,null,E.default.createElement(g.Flex,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==S&&E.default.createElement(St,{state:j,isMobile:e,dispatch:M,debouncedFetchCitiesByKeyword:Z,selectedLocation:P,onLocationClick:Q,trackingAttributes:p}),E.default.createElement(vt,{type:S,isMobile:e,state:j,dispatch:M,debouncedFetchSearchResults:U,initalSearchValue:r,focusSearchInput:q,typeInformation:G,trackingAttributes:u,isLoading:D}),E.default.createElement(g.Button,{size:e?"md":"lg",fullWidth:e,onClick:function(){let e="";const{slug:t}=G[S];e="specialty"===S?`/${t}?q=${A}`:`/${P.slug}/${t}?q=${A}`,e&&M({type:at.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},x("booking.searchBar.searchButton"))),"specialty"!==S&&E.default.createElement(At,null),"specialty"===S&&E.default.createElement(jt,{state:j,isMobile:e,dispatch:M,specialties:(null==$?void 0:$.specialty)||[],isLoading:D}))))},exports.ChevronDown=I,exports.types=_t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-71ed3e73.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-f33dd806.js"),o=require("./useTranslations-388b2c98.js"),n=require("innertext"),i=require("./theme-714ba8eb.js"),r=require("./index-3cfe6be9.js"),s=require("./utils-66fc3fa8.js");require("@mantine/dates");var d=require("./index-1f22fb4d.js");require("./Onboarding-763263bd.js");var c=require("./gAssets.js"),u=require("dayjs"),m=require("./screenSizeContext-58d16a70.js"),p=require("styled-components");require("./isProduction-5decd5ee.js");var g=require("./index-487def80.js");require("@mantine/hooks");var h=require("./index-98b4c324.js"),f=require("./dataTransform-b57ffe49.js"),v=require("./index-eabacc42.js"),b=require("./index-f56461c2.js"),x=require("lodash/debounce"),y=require("react-contenteditable"),w=require("./index-6c6477b0.js"),C=require("./cookieHelper-c02a9835.js"),E=require("react-dom"),k=require("date-fns");require("react-day-picker/DayPickerInput");var A=require("./index.styled-ab1adfdd.js");require("./index-fd68bdb7.js"),require("lodash/throttle"),require("./types-dfb71ff9.js"),require("react-hook-form"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-38be6a23.js"),require("uuid"),require("./utils-2bd51637.js"),require("string-format");var N=require("dayjs/plugin/relativeTime"),T=require("./index-2115a785.js"),S=require("./useUniqueId-3d496ffe.js");require("./translationsContext-5dbe0768.js");var P=require("./routing-eb58bf99.js");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function M(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var z=M(t),L=I(t),B=I(n),R=I(u),j=I(p),O=I(x),F=I(y),D=M(E),V=I(N);const U=e=>z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),z.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),_=t.createContext({}),H=({children:e,defaultParams:t})=>L.default.createElement(_.Provider,{value:{defaultParams:t}},e),W=e=>{const{data:{userInfo:a,env:{togetherBasePath:l}}}=t.useContext(s.TogetherComponentGlobalContext),{defaultParams:o}=t.useContext(_)||{},n=null==a?void 0:a.id,i=a&&"number"==typeof a.communities_interacted&&0===a.communities_interacted;return{authActionWrapper:(t,a)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),a);if(!n||i){n||C.deleteCookie(s.BEARER_TOKEN_COOKIE),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=s.getUrlToSignUp(e,r,l),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},q=j.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
package/build/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-763263bd.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-71ed3e73.js"),t=require("react"),a=require("./getDynamicHealthTool-365b67da.js");exports.useHealthToolsCache=o=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield a.getDynamicHealthToolWithCache(o);l(e)}))}),[a.getDynamicHealthToolWithCache,o]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-71ed3e73.js"),t=require("react"),r=require("./cookieHelper-c02a9835.js"),n=require("./useUniqueId-3d496ffe.js");function i(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}exports.useFbDataLayer=n=>{const a=t.useRef("");t.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,o,u,l;if(!a.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),a.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(o=a.current)||void 0===o?void 0:o.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==n?void 0:n.id){const[e,t,a,o,c,s]=yield Promise.all([n.email?i(n.email):null,n.phone?i(n.phone):null,n.birthday?i(n.birthday.split("-").join("")):null,n.gender?"m":"f",n.city_name?i(n.city_name).then((e=>e.replace(/\s/g,""))):null,n.name?i(n.name):null]);r.getCookie("_fbc"),r.getCookie("_fbp");const d={user_id:n.id};s&&(d.fn=s),e&&(d.em=e),t&&(d.ph=t),a&&(d.db=a),c&&(d.ct=c),null===(l=null===(u=window.localStorage)||void 0===u?void 0:u.setItem)||void 0===l||l.call(u,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[n])},exports.usePrevious=e=>{const r=t.useRef(),i=t.useRef(e);return n.useInitialMount()||i.current===e||(r.current=i.current,i.current=e),r.current},exports.useRafState=e=>{const[r,n]=t.useState(e),i=t.useRef(0),a=t.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{n(e)}))}),[]);return t.useEffect((()=>()=>cancelAnimationFrame(i.current))),[r,a]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("./translationsContext-
|
|
1
|
+
"use strict";var e=require("react"),t=require("./translationsContext-5dbe0768.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>a?a[e]?t?n.default(a[e]||e,t):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),t?n.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=require("./Onboarding-763263bd.js");const a={[i.LOCALE.Vietnam]:"VN",[i.LOCALE.Cambodia]:"KH",[i.LOCALE.Indonesia]:"ID",[i.LOCALE.Malaysia]:"MY",[i.LOCALE.PhilippinesEnglish]:"PH",[i.LOCALE.PhilippinesTagalog]:"PH",[i.LOCALE.Taiwan]:"TW",[i.LOCALE.Thailand]:"TH",[i.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=a,exports.hiddenEmailChar=(i="")=>{const a=i.indexOf("@"),n=i.substring(0,a),L=n.length>3?3:n.length;return i.replace(i.substring(L,a),i.slice(L,a).replace(/./g,"x"))};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-71ed3e73.js"),t=require("react"),a=require("@mantine/core"),r=require("styled-components"),l=require("./index-487def80.js"),o=require("./theme-714ba8eb.js"),i=require("./screenSizeContext-58d16a70.js"),n=require("./gAssets.js"),s=require("./index-3cfe6be9.js"),d=require("./Onboarding-763263bd.js"),c=require("./index-eabacc42.js");require("./translationsContext-5dbe0768.js");var u=require("string-format"),p=require("dayjs"),h=require("./index-1f22fb4d.js"),m=require("./isProduction-5decd5ee.js"),g=require("react-keyed-flatten-children"),f=require("@mantine/hooks");require("@mantine/dates");var b=require("@mantine/carousel"),E=require("./useUniqueId-3d496ffe.js");require("lodash/debounce");var x=require("./cookieHelper-c02a9835.js"),v=require("slugify");function w(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function y(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var C=w(t),L=y(t),_=w(r),O=w(u),A=w(p),T=w(g),S=w(v);const k=_.default.div`
|
|
2
2
|
background-color: var(--background-color, transparent);
|
|
3
3
|
color: white;
|
|
4
4
|
cursor: pointer;
|
package/build/vaccination.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-71ed3e73.js"),t=require("react"),a=require("@mantine/core"),l=require("./utils-66fc3fa8.js");require("@mantine/dates"),require("./index-1f22fb4d.js");var n=require("./Onboarding-763263bd.js");require("./gAssets.js");var r=require("dayjs"),i=require("./screenSizeContext-58d16a70.js"),o=require("styled-components"),c=require("./theme-714ba8eb.js");require("./isProduction-5decd5ee.js");var s=require("./useTranslations-388b2c98.js");require("./index-487def80.js");var d=require("@mantine/hooks");require("lodash/debounce");var u=require("./index-68c32ed4.js");require("./translationsContext-5dbe0768.js"),require("string-format");var m=require("./index-3cfe6be9.js"),f=require("./index-2115a785.js"),C=require("@mantine/form"),p=require("dayjs/plugin/customParseFormat"),g=require("./index-b2cc7acc.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./index-eabacc42.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("./useUniqueId-3d496ffe.js"),require("./cookieHelper-c02a9835.js"),require("slugify"),require("date-fns/locale"),require("lodash/throttle");var b=h(t),E=h(r),x=h(o),v=h(p);const y=x.default.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
padding: 16px;
|
|
4
4
|
min-height: 110px;
|
package/package.json
CHANGED
package/build/core-0404054c.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-b8b05056.js"),e=require("./isProduction-028c30c1.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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-c8835980.js";import{i as e}from"./isProduction-8ce1051d.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-c8835980.js";import{g as o}from"./core-7af1314a.js";import{n as i}from"./normalizeLink-6d537179.js";import{c as l}from"./routing-8b859474.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===o?"lang=fil":"";let a=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return a}catch(t){console.error(t)}})),s=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as a}from"./tslib.es6-c8835980.js";import e from"react";var t="wIj6fkD";const s=s=>{var{size:r="base",type:c="regular",className:o,style:n,children:d,color:i,dataEventCategory:l,dataEventAction:p,dataEventLabel:v,as:m="p",wordWrap:y,isUppercase:b}=s,g=a(s,["size","type","className","style","children","color","dataEventCategory","dataEventAction","dataEventLabel","as","wordWrap","isUppercase"]);const E=m;return e.createElement(E,Object.assign({"data-size":r,"data-type":c,style:Object.assign(Object.assign({},n),i?{"--custom-color":i}:void 0),className:`${t} ${o||""}`,"data-event-category":l,"data-event-action":p,"data-event-label":v,"data-word-wrap":y,"data-is-uppercase":b},g),d)};export{s as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-c8835980.js";import t from"react";import{S as s,a}from"./index-7c0c9a23.js";const r=a=>{var{type:r,color:o,style:c}=a,l=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},o&&{"--text-color":o}),c)},l))},o=s=>{var{type:r,color:o,style:c}=s,l=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},c),o&&{"--text-color":o})},l))};export{o as M,r as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as o}from"./tslib.es6-c8835980.js";import t from"react";import{Indicator as s}from"@mantine/core";import"dayjs";import"./screenSizeContext-987c451f.js";import"styled-components";import{t as e}from"./theme-31acd0c2.js";import"./index-ef52a951.js";import"./isProduction-8ce1051d.js";import"./Onboarding-ad49870c.js";import"./gAssets.js";const r=r=>{var{styles:i,color:n=e.colors.red700}=r,c=o(r,["styles","color"]);return t.createElement(s,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:n},c))};export{r as I};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./tslib.es6-c8835980.js";import{useState as t,useEffect as i,useCallback as e}from"react";import{a as l}from"./getDynamicHealthTool-5c62bbce.js";const n=n=>{const[r,a]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield l(n);a(o)}))}),[l,n]);const s=e((o=>{var t;return(null===(t=r.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[r]);return{allTools:r,getHealthToolLink:s}};export{n as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-b8b05056.js"),i=require("./core-0404054c.js"),e=require("./normalizeLink-64a0a4fd.js"),l=require("./routing-01287887.js");const o=(t,i)=>{var e,l;if(!t)return{};const o="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:`${o}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${o}/`,"/")),subtitle:t.subtitle,title:t.title}},n=i=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{const a="tl-PH"===i?"lang=fil":"";let r=[];try{const s=yield fetch(e.normalizeLinkSlash(`${l.getDiscoverApiDomain(i)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));r=(null===(n=null===(t=null==s?void 0:s.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>o(t,i))))||[]}catch(t){}return r}catch(t){console.error(t)}}));exports.formatHealthTool=o,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=e=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield i.getDataWithCache("all-health-tools",(()=>n(e||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
|
package/build/index-794f6abb.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-b8b05056.js"),r=require("react"),t=require("@mantine/core"),i=require("./utils-6de25682.js");require("@mantine/dates");var n=require("./index-d4846e3a.js");require("./Onboarding-30977a28.js"),require("./gAssets.js"),require("dayjs");var o=require("./screenSizeContext-593b4ba2.js"),a=require("styled-components"),s=require("./theme-d21cf9c9.js");require("./isProduction-028c30c1.js"),require("./translationsContext-ef6e8716.js"),require("string-format"),require("./index-83b85075.js"),require("@mantine/hooks");var c=require("@mantine/form");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=d(r),l=d(a);const u=r.createContext({}),[p,g,x]=c.createFormContext(),f=l.default.div`
|
|
2
|
-
margin-top: 70px;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
&.similac {
|
|
8
|
-
margin-top: 16px;
|
|
9
|
-
}
|
|
10
|
-
`,h=l.default(t.Container)`
|
|
11
|
-
&.hhg-comp-onboarding-container.hhg-comp-onboarding-container {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: center;
|
|
15
|
-
height: 100%;
|
|
16
|
-
width: 100%;
|
|
17
|
-
max-width: 520px;
|
|
18
|
-
}
|
|
19
|
-
.header {
|
|
20
|
-
margin-bottom: 32px;
|
|
21
|
-
text-align: center;
|
|
22
|
-
${o.MediaQueries.mbDown} {
|
|
23
|
-
margin-bottom: 16px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.input-control {
|
|
28
|
-
width: 100%;
|
|
29
|
-
}
|
|
30
|
-
.radio-group,
|
|
31
|
-
.input-control {
|
|
32
|
-
margin-bottom: 16px;
|
|
33
|
-
}
|
|
34
|
-
.form {
|
|
35
|
-
width: 100%;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* .form-error {
|
|
39
|
-
margin-top: 32px;
|
|
40
|
-
font-size: 14px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.field-error {
|
|
44
|
-
margin-top: 10px;
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
} */
|
|
47
|
-
|
|
48
|
-
.form-button {
|
|
49
|
-
width: 100%;
|
|
50
|
-
}
|
|
51
|
-
`,b=l.default.img`
|
|
52
|
-
margin-bottom: 38px;
|
|
53
|
-
`;exports.FormProvider=p,exports.Onboarding=o=>{var a,{heading:c,description:d,children:l,className:p,imgSrc:g,hiddenLogo:x=!1}=o,q=e.__rest(o,["heading","description","children","className","imgSrc","hiddenLogo"]);const{isMarryBaby:j,siteType:v}=r.useContext(u);return m.default.createElement(h,Object.assign({},q,{className:`hhg-comp-onboarding-container ${p}`,size:"sm"}),!x&&m.default.createElement(i.LogoIcon,{type:j?v:(null===(a=n.LOCALE_SPECS[process.env.UNIFY_LOCALE])||void 0===a?void 0:a.LOGO_TYPE)||"hellobacsi"}),m.default.createElement(f,{className:x?"similac":""},g&&m.default.createElement(b,{src:g,loading:"lazy"}),(c||d)&&m.default.createElement("div",{className:"header"},c&&m.default.createElement(t.Title,{order:3},c),d&&m.default.createElement(i.Text,{size:"p3",mt:8,color:s.theme.colors.gray600},d)),l))},exports.OnboardingContext=u,exports.useForm=x,exports.useFormContext=g;
|
package/build/index-c5e25a84.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-b8b05056.js"),r=require("react"),t=require("@mantine/core");require("dayjs"),require("./screenSizeContext-593b4ba2.js"),require("styled-components");var s=require("./theme-d21cf9c9.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./index-d4846e3a.js"),require("./isProduction-028c30c1.js"),require("./Onboarding-30977a28.js"),require("./gAssets.js");var n=i(r);exports.Indicator=r=>{var{styles:i,color:o=s.theme.colors.red700}=r,a=e.__rest(r,["styles","color"]);return n.default.createElement(t.Indicator,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:o},a))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-b8b05056.js"),t=require("react"),o=require("./getDynamicHealthTool-ec24ee37.js");exports.useHealthToolsCache=a=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield o.getDynamicHealthToolWithCache(a);l(e)}))}),[o.getDynamicHealthToolWithCache,a]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
|
package/build/utils-34552ca3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var a=require("./Onboarding-30977a28.js");const i={[a.LOCALE.Vietnam]:"VN",[a.LOCALE.Cambodia]:"KH",[a.LOCALE.Indonesia]:"ID",[a.LOCALE.Malaysia]:"MY",[a.LOCALE.PhilippinesEnglish]:"PH",[a.LOCALE.PhilippinesTagalog]:"PH",[a.LOCALE.Taiwan]:"TW",[a.LOCALE.Thailand]:"TH",[a.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=i,exports.hiddenEmailChar=(a="")=>{const i=a.indexOf("@"),n=a.substring(0,i),L=n.length>3?3:n.length;return a.replace(a.substring(L,i),a.slice(L,i).replace(/./g,"x"))};
|
/package/build/{BMI_BOYS.percentile.monthly-be764fab.js → BMI_BOYS.percentile.monthly-e7969a8c.js}
RENAMED
|
File without changes
|
/package/build/{BMI_BOYS.percentile.weekly-717ff870.js → BMI_BOYS.percentile.weekly-42b951dc.js}
RENAMED
|
File without changes
|
/package/build/{BMI_BOYS.percentile.yearly-c36817f8.js → BMI_BOYS.percentile.yearly-933664a5.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{BMI_GIRLS.percentile.monthly-fafb1975.js → BMI_GIRLS.percentile.monthly-bdb9e678.js}
RENAMED
|
File without changes
|
/package/build/{BMI_GIRLS.percentile.weekly-0f67721f.js → BMI_GIRLS.percentile.weekly-e9e42718.js}
RENAMED
|
File without changes
|
/package/build/{BMI_GIRLS.percentile.yearly-7188c946.js → BMI_GIRLS.percentile.yearly-ecfbd535.js}
RENAMED
|
File without changes
|
/package/build/{BMI_GIRLS.zscore.monthly-ad6d0a8f.js → BMI_GIRLS.zscore.monthly-8b52f84f.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{HEIGHT_BOYS.zscore.monthly-93c88a85.js → HEIGHT_BOYS.zscore.monthly-4c7134a9.js}
RENAMED
|
File without changes
|
/package/build/{HEIGHT_BOYS.zscore.weekly-221290aa.js → HEIGHT_BOYS.zscore.weekly-ea470e59.js}
RENAMED
|
File without changes
|
/package/build/{HEIGHT_BOYS.zscore.yearly-dbc6ef38.js → HEIGHT_BOYS.zscore.yearly-b4001eac.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{HEIGHT_GIRLS.zscore.monthly-9f006152.js → HEIGHT_GIRLS.zscore.monthly-05dab57e.js}
RENAMED
|
File without changes
|
/package/build/{HEIGHT_GIRLS.zscore.weekly-ed46a9be.js → HEIGHT_GIRLS.zscore.weekly-9c1227b0.js}
RENAMED
|
File without changes
|
/package/build/{HEIGHT_GIRLS.zscore.yearly-55a6e918.js → HEIGHT_GIRLS.zscore.yearly-f69f0c16.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{WEIGHT_BOYS.zscore.monthly-c8b51e11.js → WEIGHT_BOYS.zscore.monthly-88e278fc.js}
RENAMED
|
File without changes
|
/package/build/{WEIGHT_BOYS.zscore.weekly-915b7636.js → WEIGHT_BOYS.zscore.weekly-ad3d219a.js}
RENAMED
|
File without changes
|
/package/build/{WEIGHT_BOYS.zscore.yearly-63b05989.js → WEIGHT_BOYS.zscore.yearly-cdc469bc.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{WEIGHT_GIRLS.zscore.monthly-8dd66e65.js → WEIGHT_GIRLS.zscore.monthly-dcf55ae9.js}
RENAMED
|
File without changes
|
/package/build/{WEIGHT_GIRLS.zscore.weekly-e7309a28.js → WEIGHT_GIRLS.zscore.weekly-32036680.js}
RENAMED
|
File without changes
|
/package/build/{WEIGHT_GIRLS.zscore.yearly-46483619.js → WEIGHT_GIRLS.zscore.yearly-f472782e.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/esm/{BMI_BOYS.percentile.weekly-20d30be1.js → BMI_BOYS.percentile.weekly-9d11ceed.js}
RENAMED
|
File without changes
|
/package/build/esm/{BMI_BOYS.percentile.yearly-7cf08717.js → BMI_BOYS.percentile.yearly-915860f5.js}
RENAMED
|
File without changes
|
/package/build/esm/{BMI_BOYS.zscore.monthly-390537ec.js → BMI_BOYS.zscore.monthly-027665dd.js}
RENAMED
|
File without changes
|
/package/build/esm/{BMI_BOYS.zscore.weekly-3a235c91.js → BMI_BOYS.zscore.weekly-36332c51.js}
RENAMED
|
File without changes
|
/package/build/esm/{BMI_BOYS.zscore.yearly-eed73a8a.js → BMI_BOYS.zscore.yearly-01355236.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/esm/{BMI_GIRLS.zscore.monthly-acd95d4a.js → BMI_GIRLS.zscore.monthly-c8b642f7.js}
RENAMED
|
File without changes
|
/package/build/esm/{BMI_GIRLS.zscore.weekly-de839d3b.js → BMI_GIRLS.zscore.weekly-c7892f39.js}
RENAMED
|
File without changes
|
/package/build/esm/{BMI_GIRLS.zscore.yearly-c0da7049.js → BMI_GIRLS.zscore.yearly-2bf35542.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/esm/{HEIGHT_BOYS.zscore.monthly-74c8dcc5.js → HEIGHT_BOYS.zscore.monthly-a9e24711.js}
RENAMED
|
File without changes
|
/package/build/esm/{HEIGHT_BOYS.zscore.weekly-5fcde6cd.js → HEIGHT_BOYS.zscore.weekly-f15762c5.js}
RENAMED
|
File without changes
|
/package/build/esm/{HEIGHT_BOYS.zscore.yearly-0e48b2f8.js → HEIGHT_BOYS.zscore.yearly-e918cdf5.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/esm/{HEIGHT_GIRLS.zscore.weekly-92f68a56.js → HEIGHT_GIRLS.zscore.weekly-1d14e2b6.js}
RENAMED
|
File without changes
|
/package/build/esm/{HEIGHT_GIRLS.zscore.yearly-958c71a2.js → HEIGHT_GIRLS.zscore.yearly-e839dbb2.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/esm/{WEIGHT_BOYS.zscore.monthly-ab63ae85.js → WEIGHT_BOYS.zscore.monthly-24aae22c.js}
RENAMED
|
File without changes
|
/package/build/esm/{WEIGHT_BOYS.zscore.weekly-8c359273.js → WEIGHT_BOYS.zscore.weekly-a573fac1.js}
RENAMED
|
File without changes
|
/package/build/esm/{WEIGHT_BOYS.zscore.yearly-f35f47d4.js → WEIGHT_BOYS.zscore.yearly-24aeb0e7.js}
RENAMED
|
File without changes
|