@hhgtech/hhg-components 1.26.98 → 1.26.99
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/components/organisms/bookingSearchBar/index.d.ts +4 -1
- package/build/care/components/organisms/bookingSearchBar/locationResults/index.d.ts +2 -1
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.d.ts +2 -1
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.d.ts +2 -1
- package/build/care/components/organisms/bookingSearchBar/searchResults/index.d.ts +3 -1
- package/build/care/interfaces/constants.d.ts +1 -0
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/{constants-f00ecf2a.js → constants-3e8f084a.js} +1 -1
- package/build/constants.js +1 -1
- package/build/core-34fb6146.js +1 -0
- package/build/{dataTransform-5abc3721.js → dataTransform-4338e067.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-d385dae8.js → constants-27cba192.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-a2040197.js → core-2cd83fcf.js} +1 -1
- package/build/esm/{dataTransform-1f0c18e0.js → dataTransform-e4a9b542.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-3c4d5e42.js → fixedBottomAdBlock-224aded2.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-96e04a5f.js → getDynamicHealthTool-45fe96cc.js} +1 -1
- package/build/esm/{getSocialList-007ce339.js → getSocialList-169bf092.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-17ad83ff.js +1 -0
- package/build/esm/{index-5163f086.js → index-30841fd2.js} +1 -1
- package/build/esm/{index-9a3ebcf7.js → index-3b1002a5.js} +1 -1
- package/build/esm/{index-31f24c9a.js → index-5c393ccd.js} +1 -1
- package/build/esm/{index-8231ed40.js → index-61c21d75.js} +1 -1
- package/build/esm/{index-3d8f947f.js → index-6a76808a.js} +1 -1
- package/build/esm/index-6b3cb1d1.js +1 -0
- package/build/esm/{index-512b77ab.js → index-6d831557.js} +1 -1
- package/build/esm/{index-1300ccdb.js → index-75286845.js} +1 -1
- package/build/esm/{index-cad8be7c.js → index-7cdfed40.js} +1 -1
- package/build/esm/index-7d9231b8.js +1 -0
- package/build/esm/index-874817fb.js +1 -0
- package/build/esm/{index-4d33e2bf.js → index-8c54241d.js} +1 -1
- package/build/esm/{index-d98fc3c2.js → index-9b35c1e2.js} +1 -1
- package/build/esm/{index-1ff52dc5.js → index-9eb5a595.js} +1 -1
- package/build/esm/{index-be693f64.js → index-a0e107b8.js} +1 -1
- package/build/esm/{index-3a3f352a.js → index-adb23fe4.js} +1 -1
- package/build/esm/{index-5b42f787.js → index-b2f7085b.js} +1 -1
- package/build/esm/{index-86d43e14.js → index-b3bc1ac3.js} +1 -1
- package/build/esm/index-f0d99afe.js +1 -0
- package/build/esm/{index-0cfdbb57.js → index-f25bd0c1.js} +1 -1
- package/build/esm/{index-c6c27bc4.js → index-f3eb92a0.js} +1 -1
- package/build/esm/{index-f6cdb99f.js → index-f43e7940.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-d8f212d7.js → index.styled-0b57a531.js} +2 -2
- package/build/esm/{index.styled-1db90466.js → index.styled-18eecc3d.js} +1 -1
- package/build/esm/{index.styled-9972b7ab.js → index.styled-6e19d918.js} +5 -5
- package/build/esm/{index.styled-652e37e5.js → index.styled-bafc60a4.js} +1 -1
- package/build/esm/{index.styles-40fc07bc.js → index.styles-ab8fd7ce.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/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-58fd8e16.js → routing-3d42f6f7.js} +1 -1
- package/build/esm/{screenSizeContext-dedd537b.js → screenSizeContext-a7634bcb.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/translationsContext-ff99af91.js +1 -0
- package/build/esm/translationsProvider-c2dbe314.js +1 -0
- package/build/esm/types-264bc029.js +339 -0
- package/build/esm/{types-c702550c.js → types-55d48a09.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useHealthToolCache-155f1fef.js → useHealthToolCache-78053d28.js} +1 -1
- package/build/esm/{useRafState-6240ef2d.js → useRafState-386cc1a7.js} +1 -1
- package/build/esm/useTranslations-69443821.js +1 -0
- package/build/esm/{utils-cd6d52d6.js → utils-80ff55e4.js} +3 -3
- package/build/esm/vaccination.js +5 -5
- package/build/{fixedBottomAdBlock-108c756f.js → fixedBottomAdBlock-15405dde.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-60b3a2b9.js → getDynamicHealthTool-97c6440b.js} +1 -1
- package/build/{getSocialList-6e9d3a22.js → getSocialList-26413e1c.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-33aa4cdf.js → index-047c5ffe.js} +1 -1
- package/build/{index-a65d9344.js → index-0946433d.js} +1 -1
- package/build/{index-b482a0f7.js → index-10d36f7c.js} +1 -1
- package/build/{index-12f1e428.js → index-266fd232.js} +1 -1
- package/build/{index-e6b78633.js → index-2a1ee44e.js} +1 -1
- package/build/{index-30d8907f.js → index-2c1aa63d.js} +1 -1
- package/build/{index-12e3d886.js → index-2fe615ea.js} +1 -1
- package/build/{index-61827b69.js → index-364356fe.js} +1 -1
- package/build/{index-7816868d.js → index-43c58915.js} +1 -1
- package/build/index-474ee0ab.js +1 -0
- package/build/{index-2e1d0253.js → index-50343eee.js} +1 -1
- package/build/{index-dcf6ae58.js → index-5f6346b1.js} +1 -1
- package/build/{index-814656cc.js → index-77934ff5.js} +1 -1
- package/build/{index-8b52209f.js → index-7c36ad9a.js} +1 -1
- package/build/{index-6360ecfd.js → index-99ace782.js} +1 -1
- package/build/{index-7a8ceced.js → index-a4c1331e.js} +1 -1
- package/build/{index-14d521ee.js → index-a6bfe2ef.js} +1 -1
- package/build/{index-10ef361b.js → index-a73a0a6d.js} +1 -1
- package/build/{index-75378d4a.js → index-a87d8112.js} +1 -1
- package/build/{index-20b95ce1.js → index-a8a82fb8.js} +1 -1
- package/build/{index-cd974ca9.js → index-c82c5446.js} +1 -1
- package/build/{index-9a361198.js → index-d6c6275a.js} +1 -1
- package/build/{index-124e8561.js → index-ef575820.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-28ea7191.js → index.styled-07b05a8d.js} +1 -1
- package/build/index.styled-2739b543.js +50 -0
- package/build/{index.styled-bf850deb.js → index.styled-44af0d98.js} +1 -1
- package/build/{index.styled-d68a169a.js → index.styled-89187ea1.js} +1 -1
- package/build/{index.styles-70e945d1.js → index.styles-696360de.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +2 -2
- package/build/{routing-c2131cae.js → routing-89664f16.js} +1 -1
- package/build/{screenSizeContext-21cf93b8.js → screenSizeContext-6c57a958.js} +10 -10
- package/build/together.js +1 -1
- package/build/translationsContext-03da8207.js +1 -0
- package/build/translationsProvider-3f48d082.js +1 -0
- package/build/{types-9ac66961.js → types-1bbc78f7.js} +23 -20
- package/build/{types-0d716176.js → types-8d31833d.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useHealthToolCache-867880b9.js → useHealthToolCache-0b59d44e.js} +1 -1
- package/build/{useRafState-84d20a9b.js → useRafState-67c97f68.js} +1 -1
- package/build/{useTranslations-ce7f18bf.js → useTranslations-b4294d27.js} +1 -1
- package/build/{utils-7d23687f.js → utils-82d78d79.js} +4 -4
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-854463ab.js +0 -1
- package/build/esm/index-0cf66af5.js +0 -1
- package/build/esm/index-2a701567.js +0 -1
- package/build/esm/index-5fd02ad3.js +0 -1
- package/build/esm/index-bb6e33cd.js +0 -1
- package/build/esm/index-d40a7714.js +0 -1
- package/build/esm/translationsContext-a313aad0.js +0 -1
- package/build/esm/translationsProvider-18c5651a.js +0 -1
- package/build/esm/types-a76ab678.js +0 -336
- package/build/esm/useTranslations-0545ef3e.js +0 -1
- package/build/index-ed5078ee.js +0 -1
- package/build/index.styled-39d83b0f.js +0 -50
- package/build/translationsContext-5974ea31.js +0 -1
- package/build/translationsProvider-c3ac2aea.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-ba0f034d.js → BMI_BOYS.percentile.monthly-40fe5e9d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-ea12efc2.js → BMI_BOYS.percentile.weekly-1d9b9e3b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-17b52234.js → BMI_BOYS.percentile.yearly-424439a5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-59ba15c9.js → BMI_BOYS.zscore.monthly-23404682.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-f7cfc270.js → BMI_BOYS.zscore.weekly-6ca99f0b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-526cdf1a.js → BMI_BOYS.zscore.yearly-a751bf6e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-d2329f85.js → BMI_GIRLS.percentile.monthly-5f9558d5.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-89621348.js → BMI_GIRLS.percentile.weekly-fa0b9251.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-24bf0447.js → BMI_GIRLS.percentile.yearly-b37290a2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-b2c64321.js → BMI_GIRLS.zscore.monthly-c776a288.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-656650d4.js → BMI_GIRLS.zscore.weekly-c7bd075e.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-aa2e5d37.js → BMI_GIRLS.zscore.yearly-aa3539c3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-104c5de1.js → HEAD CIRCUM_BOYS.percentile.monthly-23db2eeb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-67aadcdf.js → HEAD CIRCUM_BOYS.percentile.weekly-e3dbd297.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-20a2302e.js → HEAD CIRCUM_BOYS.percentile.yearly-a7b5f9b2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-cd25c910.js → HEAD CIRCUM_BOYS.zscore.monthly-5f8e28f3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-97e878af.js → HEAD CIRCUM_BOYS.zscore.weekly-86108667.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-86f11693.js → HEAD CIRCUM_BOYS.zscore.yearly-fd4640cd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-83bc8b50.js → HEAD CIRCUM_GIRLS.percentile.monthly-9fbe00a4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-f3e82266.js → HEAD CIRCUM_GIRLS.percentile.weekly-0741b5c3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-08243b55.js → HEAD CIRCUM_GIRLS.percentile.yearly-f1f383cf.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-d382aabf.js → HEAD CIRCUM_GIRLS.zscore.monthly-2e78fc79.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-fc7ebac7.js → HEAD CIRCUM_GIRLS.zscore.weekly-d3fd1fbb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-f4f33586.js → HEAD CIRCUM_GIRLS.zscore.yearly-d842f575.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-bc84e33a.js → HEIGHT_BOYS.percentile.monthly-474ea6e6.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-192c43da.js → HEIGHT_BOYS.percentile.weekly-92b164e6.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-6ff0c471.js → HEIGHT_BOYS.percentile.yearly-27b44b59.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-6146f322.js → HEIGHT_BOYS.zscore.monthly-67583d8a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-9e8f562e.js → HEIGHT_BOYS.zscore.weekly-0453f1ba.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-53fafcf3.js → HEIGHT_BOYS.zscore.yearly-8ac63c2d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-cebd5d11.js → HEIGHT_GIRLS.percentile.monthly-36155eed.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-3f46ea3a.js → HEIGHT_GIRLS.percentile.weekly-6a0621b3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-da7f75db.js → HEIGHT_GIRLS.percentile.yearly-2611e564.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-90217977.js → HEIGHT_GIRLS.zscore.monthly-04539328.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-1caf7737.js → HEIGHT_GIRLS.zscore.weekly-2b03a1be.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-df932c78.js → HEIGHT_GIRLS.zscore.yearly-8f14a3d1.js} +0 -0
- /package/build/{Onboarding-23288538.js → Onboarding-51e879ec.js} +0 -0
- /package/build/{Visible-3e7ff3f3.js → Visible-5ae49a55.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-d9de588a.js → WEIGHT_BOYS.percentile.monthly-6333eeec.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-38a5561d.js → WEIGHT_BOYS.percentile.weekly-a3223ec1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-fe7b0a33.js → WEIGHT_BOYS.percentile.yearly-27ab69d5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-939d0cc0.js → WEIGHT_BOYS.zscore.monthly-db723603.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-fd2c2951.js → WEIGHT_BOYS.zscore.weekly-6d61a9d2.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-5e682ad0.js → WEIGHT_BOYS.zscore.yearly-56442353.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-6d4cd8e9.js → WEIGHT_GIRLS.percentile.monthly-9f7e3e6a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-a5e391dc.js → WEIGHT_GIRLS.percentile.weekly-7129539a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-dae1a9f5.js → WEIGHT_GIRLS.percentile.yearly-1f6cf35f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-2fbf4a49.js → WEIGHT_GIRLS.zscore.monthly-ebf556a7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-9020ce0c.js → WEIGHT_GIRLS.zscore.weekly-0eb448da.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-dbe03cba.js → WEIGHT_GIRLS.zscore.yearly-631cad1c.js} +0 -0
- /package/build/{cookieHelper-a06c42f2.js → cookieHelper-86883198.js} +0 -0
- /package/build/{dataTransform-cac1f981.js → dataTransform-5ded385e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-9f192685.js → BMI_BOYS.percentile.monthly-bf350e77.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-83721441.js → BMI_BOYS.percentile.weekly-8a3117cc.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-3be0bf0a.js → BMI_BOYS.percentile.yearly-ff30ca59.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-a878c1e6.js → BMI_BOYS.zscore.monthly-fe8cf0c1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-6d09d9e8.js → BMI_BOYS.zscore.weekly-af0dea68.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-1ef91c99.js → BMI_BOYS.zscore.yearly-ed1d7115.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-67c59a0a.js → BMI_GIRLS.percentile.monthly-b3149756.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-ff508eae.js → BMI_GIRLS.percentile.weekly-466f8a2c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-b0ba5d0d.js → BMI_GIRLS.percentile.yearly-ea006a9b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-bbe722b1.js → BMI_GIRLS.zscore.monthly-1f3a70ef.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-d43dc3db.js → BMI_GIRLS.zscore.weekly-4e0cc157.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-c12cf4d2.js → BMI_GIRLS.zscore.yearly-9e1525e8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-8bc20aee.js → HEAD CIRCUM_BOYS.percentile.monthly-90f43f82.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-e092f65d.js → HEAD CIRCUM_BOYS.percentile.weekly-81c0761c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-dffb4a06.js → HEAD CIRCUM_BOYS.percentile.yearly-41a6a4ba.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d01fe1d3.js → HEAD CIRCUM_BOYS.zscore.monthly-847d0106.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-1ba78a43.js → HEAD CIRCUM_BOYS.zscore.weekly-efbbf4d1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-a9058827.js → HEAD CIRCUM_BOYS.zscore.yearly-74536b5c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-80abf119.js → HEAD CIRCUM_GIRLS.percentile.monthly-9e2bca4f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-088c696a.js → HEAD CIRCUM_GIRLS.percentile.weekly-9b0523b3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-b6bd3cb3.js → HEAD CIRCUM_GIRLS.percentile.yearly-055d6738.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-cbd0db50.js → HEAD CIRCUM_GIRLS.zscore.monthly-79fd403f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3f0ebd86.js → HEAD CIRCUM_GIRLS.zscore.weekly-115559dc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-aba2d7c0.js → HEAD CIRCUM_GIRLS.zscore.yearly-a46da89b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-64ebba00.js → HEIGHT_BOYS.percentile.monthly-a6a9939b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e425cde6.js → HEIGHT_BOYS.percentile.weekly-aa8ef89e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-196bed27.js → HEIGHT_BOYS.percentile.yearly-c052423e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-1b4bf94e.js → HEIGHT_BOYS.zscore.monthly-f753d6fa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-3db6a8f9.js → HEIGHT_BOYS.zscore.weekly-cacb2d3f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-1c283fb7.js → HEIGHT_BOYS.zscore.yearly-4634e334.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-f0d98dce.js → HEIGHT_GIRLS.percentile.monthly-02559525.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-6786bad9.js → HEIGHT_GIRLS.percentile.weekly-126deaaf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-e38a4236.js → HEIGHT_GIRLS.percentile.yearly-dcf4183d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ff468d4d.js → HEIGHT_GIRLS.zscore.monthly-86a890fd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3cbb9c85.js → HEIGHT_GIRLS.zscore.weekly-4fbb4e97.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-4bf4853e.js → HEIGHT_GIRLS.zscore.yearly-fff88192.js} +0 -0
- /package/build/esm/{Onboarding-a3555f60.js → Onboarding-fc88de1b.js} +0 -0
- /package/build/esm/{Visible-21607c0f.js → Visible-e7beb801.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-0ec7da2d.js → WEIGHT_BOYS.percentile.monthly-9a602d76.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-e92bd52b.js → WEIGHT_BOYS.percentile.weekly-8a49a805.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-e7ee910f.js → WEIGHT_BOYS.percentile.yearly-9fd477e7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-b69e2ced.js → WEIGHT_BOYS.zscore.monthly-4e68dd85.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-cbe33a67.js → WEIGHT_BOYS.zscore.weekly-2a509898.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f3383a88.js → WEIGHT_BOYS.zscore.yearly-950a6066.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-ebfd7126.js → WEIGHT_GIRLS.percentile.monthly-61d4fbc5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-ed896643.js → WEIGHT_GIRLS.percentile.weekly-f4279573.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-82bf9ea8.js → WEIGHT_GIRLS.percentile.yearly-70d3c381.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-423f6442.js → WEIGHT_GIRLS.zscore.monthly-8ab2e19c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-7df615ce.js → WEIGHT_GIRLS.zscore.weekly-535c547d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-b4a57a83.js → WEIGHT_GIRLS.zscore.yearly-47c260da.js} +0 -0
- /package/build/esm/{cookieHelper-69b15ccb.js → cookieHelper-46eaf2a4.js} +0 -0
- /package/build/esm/{dataTransform-9ec459d8.js → dataTransform-62a423c7.js} +0 -0
- /package/build/esm/{index-4f058233.js → index-830c3f5e.js} +0 -0
- /package/build/esm/{index-e318ec8e.js → index-98135e28.js} +0 -0
- /package/build/esm/{isProduction-603a7e15.js → isProduction-02eb7c34.js} +0 -0
- /package/build/esm/{localizeNumberFormat-587b9ff6.js → localizeNumberFormat-2da6bea3.js} +0 -0
- /package/build/esm/{normalizeLink-67d99e13.js → normalizeLink-1f420472.js} +0 -0
- /package/build/esm/{theme-ffebb4c8.js → theme-3ca4e6e8.js} +0 -0
- /package/build/esm/{tslib.es6-9b948d82.js → tslib.es6-55814a4a.js} +0 -0
- /package/build/esm/{types-31b7cee3.js → types-43dd89da.js} +0 -0
- /package/build/esm/{useIsInit-f1eeb9f5.js → useIsInit-709dc091.js} +0 -0
- /package/build/esm/{useOutsideClick-a1225bf4.js → useOutsideClick-de412634.js} +0 -0
- /package/build/esm/{useScrollbarSize-455ccc62.js → useScrollbarSize-fae95291.js} +0 -0
- /package/build/esm/{useUniqueId-dff2fe7c.js → useUniqueId-df421f0f.js} +0 -0
- /package/build/esm/{utils-ad2536cd.js → utils-cfd06bb0.js} +0 -0
- /package/build/{index-1848ec6b.js → index-c24ab0a8.js} +0 -0
- /package/build/{index-b74f5358.js → index-cbd2b0f6.js} +0 -0
- /package/build/{isProduction-d8ab8512.js → isProduction-a1c599d9.js} +0 -0
- /package/build/{localizeNumberFormat-055c71bb.js → localizeNumberFormat-ab5a3fbd.js} +0 -0
- /package/build/{normalizeLink-d5f9c224.js → normalizeLink-5923a458.js} +0 -0
- /package/build/{theme-3c32e464.js → theme-49a1455d.js} +0 -0
- /package/build/{tslib.es6-f0827634.js → tslib.es6-f1344a6f.js} +0 -0
- /package/build/{types-01afae40.js → types-addc3582.js} +0 -0
- /package/build/{useIsInit-ebe53622.js → useIsInit-4cf4b7c9.js} +0 -0
- /package/build/{useOutsideClick-c24609f7.js → useOutsideClick-cf75e425.js} +0 -0
- /package/build/{useScrollbarSize-ff7aff8c.js → useScrollbarSize-40564ae3.js} +0 -0
- /package/build/{useUniqueId-874ebe0c.js → useUniqueId-3c136b22.js} +0 -0
- /package/build/{utils-ae6e60d8.js → utils-d49519a5.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-f1344a6f.js"),t=require("react"),a=require("./constants-3e8f084a.js"),i=require("./index-ef575820.js"),o=require("./cookieHelper-86883198.js"),n=require("./useTranslations-b4294d27.js"),s=require("lodash/debounce"),l=require("./index-364356fe.js"),r=require("styled-components"),c=require("./index-77934ff5.js"),d=require("./theme-49a1455d.js"),u=require("react-loading-skeleton"),h=require("./utils-d49519a5.js"),p=require("lodash/shuffle"),g=require("./useOutsideClick-cf75e425.js"),f=require("string-format");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var C=m(t),y=m(s),b=m(r),v=m(u),E=m(p),w=m(f);const L=b.default.div``,x=b.default.div`
|
|
2
2
|
--searchbar-z-index: 305;
|
|
3
3
|
&[data-is-modal='true'] {
|
|
4
4
|
position: fixed;
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
background-color: white;
|
|
12
12
|
z-index: var(--searchbar-z-index);
|
|
13
13
|
}
|
|
14
|
-
`,S=b.default.section``,
|
|
14
|
+
`,S=b.default.section``,O=b.default.input`
|
|
15
15
|
position: fixed;
|
|
16
16
|
left: -100%;
|
|
17
17
|
top: -100%;
|
|
18
|
-
`,
|
|
18
|
+
`,k=b.default(l.Input)`
|
|
19
19
|
#booking-search-bar & {
|
|
20
20
|
input {
|
|
21
21
|
font-size: 16px;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
z-index: 2;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`,T=({className:e,color:t})=>
|
|
38
|
+
`,T=({className:e,color:t})=>C.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),C.default.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),R=({className:e,color:t})=>C.default.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},C.default.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"})),M=({className:e,color:t})=>C.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:e},C.default.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:t||"currentColor"})),N=({className:e,color:t})=>C.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),C.default.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),A=({width:e,height:t})=>C.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),j=b.default.li`
|
|
39
39
|
display: flex;
|
|
40
40
|
align-items: center;
|
|
41
41
|
gap: 12px;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
width: 100%;
|
|
80
80
|
max-height: 600px;
|
|
81
81
|
overflow-y: auto;
|
|
82
|
-
`,_=b.default(
|
|
82
|
+
`,_=b.default(R)`
|
|
83
83
|
width: 12px;
|
|
84
84
|
height: 18px;
|
|
85
85
|
`,B=b.default.li`
|
|
@@ -120,17 +120,17 @@
|
|
|
120
120
|
&[data-is-denied='true'] {
|
|
121
121
|
cursor: not-allowed;
|
|
122
122
|
}
|
|
123
|
-
`,D=b.default((({count:e,className:t})=>
|
|
123
|
+
`,D=b.default((({count:e,className:t})=>C.default.createElement(C.default.Fragment,null,[...Array(e)].map(((e,a)=>C.default.createElement(j,{className:t,key:a},C.default.createElement(v.default,{count:1,height:32}),C.default.createElement(v.default,{count:1,height:24})))))))`
|
|
124
124
|
&:first-child {
|
|
125
125
|
padding-top: 18px;
|
|
126
126
|
}
|
|
127
|
-
`,H=({cities:e,isLoading:t,onLocationClick:
|
|
127
|
+
`,H=({cities:e,isLoading:t,onLocationClick:i,onCurrentLocationClick:o,geoLocationPermission:s="unset",isLocationLoading:l,selectedLocation:r,isOptionAllLocation:u})=>{const{t:h}=n.useTranslations(),p="denied"===s,g=()=>C.default.createElement(B,{role:"button",tabIndex:0,onClick:e=>{p||(e.nativeEvent.stopImmediatePropagation(),l||o())},"data-is-denied":p},p?C.default.createElement(c.Text,{color:"var(--gray600)",size:"md"},"x"):l?C.default.createElement(v.default,{height:20,width:20}):C.default.createElement(M,{color:d.theme.colors.primaryBase}),C.default.createElement("div",null,p?C.default.createElement(c.Text,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},h("booking.searchBar.grantLocation")):l?C.default.createElement(v.default,{height:20,style:{width:"calc(100% - 16px)"}}):C.default.createElement(c.Text,{size:"md"},h("booking.searchBar.useCurrentLocation"))));return C.default.createElement(P,{"data-testid":"location-search-results"},C.default.createElement(F,null,t?C.default.createElement(D,{count:5}):!e||e.length<1?C.default.createElement(C.default.Fragment,null,g(),C.default.createElement(B,{"data-is-denied":"true"},C.default.createElement(c.Text,{size:"sm",color:"#ccc"},h("booking.searchBar.noResults")))):C.default.createElement(C.default.Fragment,null,u&&C.default.createElement(B,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{i&&i({name:h("booking.searchBar.allLocations"),id:a.ID_OPTION_ALL_LOCATION,slug:""})}},C.default.createElement(_,{color:d.theme.colors.neutral400}),C.default.createElement(c.Text,{size:"md"},h("booking.searchBar.allLocations"))),g(),e.map((e=>C.default.createElement(B,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),i&&i(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==r?void 0:r.id)===e.id},C.default.createElement(_,{color:d.theme.colors.neutral400}),C.default.createElement(c.Text,{size:"md"},e.name)))))))},V="TYPE_CHARACTER",$="REMOVE_CHARACTER",z="REMOVE_ALL",K="REMOVE_LAST_VISIBLE_NODE",Z="PAUSE_FOR",G="CHANGE_DELETE_SPEED",U="CHANGE_DELAY",q="PASTE_STRING",Q=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,W="TEXT_NODE";class Y{constructor(e){this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=()=>(this.state.eventLoopPaused=!1,this.runEventLoop(),this),this.pause=()=>(this.state.eventLoopPaused=!0,this),this.stop=()=>(this.state.eventLoop&&(window.cancelAnimationFrame(this.state.eventLoop),this.state.eventLoop=null),this),this.pauseFor=e=>(this.addEventToQueue(Z,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:a}=this.options||{},i="function"==typeof a?a(e):e.split("");this.typeCharacters(i,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(q,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(z,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(G,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(U,{delay:e}),this},this.deleteChars=e=>{if(!e)throw new Error("Must provide amount of characters to delete");for(let t=0;t<e;t++)this.addEventToQueue($);return this},this.typeCharacters=(e,t=null)=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((e=>{this.addEventToQueue(V,{character:e,node:t})})),this},this.removeCharacters=e=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((()=>{this.addEventToQueue($)})),this},this.addEventToQueue=(e,t,a=!1)=>this.addEventToStateProperty(e,t,a,"eventQueue"),this.addReverseCalledEvent=(e,t,a=!1)=>{const{loop:i}=this.options;return i?this.addEventToStateProperty(e,t,a,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,a=!1,i)=>{const o={eventName:e,eventArgs:t||{}};return this.state[i]=a?[o,...this.state[i]]:[...this.state[i],o],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const a=[...this.state.eventQueue],i=a.shift();let o=0;if(o=i.eventName===K||i.eventName===$?"natural"===this.options.deleteSpeed?Q(40,80):this.options.deleteSpeed:"natural"===this.options.delay?Q(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=i;switch(n){case q:case V:{const{character:e}=s,t=document.createTextNode(e);let a=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(a=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:W,character:e,node:a}];break}case $:a.unshift({eventName:K,eventArgs:{removingCharacterNode:!0}});break;case Z:{const{ms:e}=i.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case z:{const{visibleNodes:e}=this.state,{speed:t}=s,i=[];t&&i.push({eventName:G,eventArgs:{speed:t,temp:!0}});for(let t=0,a=e.length;t<a;t++)i.push({eventName:K,eventArgs:{removingCharacterNode:!1}});t&&i.push({eventName:G,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),a.unshift(...i);break}case K:if(this.state.visibleNodes.length){const{node:e,character:t}=this.state.visibleNodes.pop();this.options.onRemoveNode&&"function"==typeof this.options.onRemoveNode&&this.options.onRemoveNode({node:e,character:t}),e&&e.parentNode.removeChild(e)}break;case G:this.options.deleteSpeed=i.eventArgs.speed;break;case U:this.options.delay=i.eventArgs.delay}this.options.loop&&(i.eventName===K||i.eventArgs&&i.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,i])),this.state.eventQueue=a,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(z,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function J({inputRef:e,wrapperRef:a,disabled:i}){const{t:o,locale:s}=n.useTranslations(),l=t.useMemo((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==s&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),E.default(e).map((e=>o(e)))}),[o,s]);function r(e){const t=d();return t&&(t.placeholder=t.placeholder+e),null}function c(){const e=d();e&&(e.placeholder=e.placeholder.slice(0,-1))}function d(){return e&&e.current?e.current:a&&a.current&&a.current.querySelector("input")||null}t.useEffect((()=>{if(i)return;const e=d();e&&(e.placeholder="",new Y({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:c}))}),[e,a])}const X=b.default.div`
|
|
128
128
|
user-select: none;
|
|
129
129
|
input {
|
|
130
130
|
pointer-events: none;
|
|
131
131
|
background-color: white;
|
|
132
132
|
}
|
|
133
|
-
`;function ee({focused:e,value:a="",onClick:i,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:l}=n.useTranslations(),r=t.useRef(null);J({wrapperRef:r,disabled:!!s});const c=t.useMemo((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return
|
|
133
|
+
`;function ee({focused:e,value:a="",onClick:i,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:l}=n.useTranslations(),r=t.useRef(null);J({wrapperRef:r,disabled:!!s});const c=t.useMemo((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return C.default.createElement(X,Object.assign({onClick:()=>i&&i(),ref:r},c),C.default.createElement(k,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:C.default.createElement(N,{color:d.theme.colors.gray400}),placeholder:l("booking.searchBar.searchInput.placeholder"),value:a,size:"md"}))}const te=b.default.header`
|
|
134
134
|
display: flex;
|
|
135
135
|
height: 64px;
|
|
136
136
|
align-items: center;
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
`,ne=b.default(c.Text)`
|
|
159
159
|
color: ${d.theme.colors.secondaryDark};
|
|
160
160
|
text-align: start;
|
|
161
|
-
`,se=({className:e,onLeftClick:t,headingText:a,onRightClick:i,iconLeft:o,textRight:n})=>
|
|
161
|
+
`,se=({className:e,onLeftClick:t,headingText:a,onRightClick:i,iconLeft:o,textRight:n})=>C.default.createElement(te,{className:e},C.default.createElement(ie,{onClick:t},o||C.default.createElement(T,{color:d.theme.colors.gray800})),C.default.createElement(oe,null,C.default.createElement(ne,{size:"md",type:"bold"},a)),C.default.createElement(ae,{onClick:i},n&&C.default.createElement("p",null,n))),le={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},re={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};var ce;function de(e){const{selectedLocation:t,searchLocationKeywords:a}=e;return t&&a!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function ue(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case ce.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case ce.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:de(Object.assign(Object.assign({},e),{focused:"none"}));case ce.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case ce.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===a.ID_OPTION_CURRENT_LOCATION&&(t.searchLocationKeywords=""),t}case ce.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?de(o):o;case ce.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case ce.ChangeInputSearch:{const a=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:a,isLoadingSearchResults:a.trim().length>le[e.locale]})}case ce.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ce.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case ce.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case ce.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ce.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case ce.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case ce.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case ce.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case ce.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case ce.FetchSearchResultsComplete:{const a=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(a.initialSearchResults=t.payload),a}case ce.FetchCitiesByGeoIpComplete:{let{cities:a}=t.payload;const{default:i}=t.payload;a=a.filter((e=>e.id!==i.id)),a.unshift(i),e.initialSelectedCity&&!a.find((t=>t.id===e.initialSelectedCity.id))&&a.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:i,initialCities:a,cities:a});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=i,o.searchLocationKeywords=i.name),o}case ce.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case ce.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case ce.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case ce.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case ce.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case ce.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case ce.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case ce.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case ce.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(ce||(ce={}));const he=b.default.div`
|
|
162
162
|
display: flex;
|
|
163
163
|
gap: 16px;
|
|
164
164
|
${h.MediaQueries.mbDown} {
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
flex: 1;
|
|
183
183
|
`,fe=b.default(pe)`
|
|
184
184
|
flex: 2;
|
|
185
|
-
`,
|
|
185
|
+
`,me=b.default((({className:e,color:t})=>C.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"}))))`
|
|
186
186
|
display: none;
|
|
187
187
|
&.shown {
|
|
188
188
|
display: block;
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`,Ce=()=>C.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"})),ye=b.default.button`
|
|
191
191
|
min-height: 100%;
|
|
192
192
|
border-radius: 6px;
|
|
193
193
|
background-color: ${({theme:e})=>e.colors.primaryBase};
|
|
@@ -220,13 +220,13 @@
|
|
|
220
220
|
}
|
|
221
221
|
`,be=b.default(c.Text)`
|
|
222
222
|
font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
|
|
223
|
-
`,ve=({onClick:e})=>{const{t:t}=n.useTranslations(),a=t("booking.searchBar.searchButton");return
|
|
223
|
+
`,ve=({onClick:e})=>{const{t:t}=n.useTranslations(),a=t("booking.searchBar.searchButton");return C.default.createElement(ye,{onClick:e,title:a},C.default.createElement(Ce,null),C.default.createElement(be,{size:"s3",color:"white"},a))};function Ee({isMobile:e,state:i,dispatch:o,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:l,focusLocationInput:r,focusSearchInput:c,renderLocationResults:u,renderSearchResults:h,locationTrackingAttributes:p,trackingAttributes:f,onSearch:m,initalSearchValue:y}){const b=t.useRef(null),v=t.useRef(null),{focused:E,searchLocationKeywords:w,geoLocationPermission:L,selectedLocation:x,searchKeywords:S,inputSearchPlaceholder:O}=i,{t:I}=n.useTranslations();J({wrapperRef:v,disabled:!!O}),g.useOutsideClick(b,(()=>{o({type:ce.ClickOutsideInputLocation})})),g.useOutsideClick(v,(()=>{o({type:ce.ClickOutsideInputSearch})}));const T=t.useMemo((()=>"granted"===L&&(null==x?void 0:x.id)===a.ID_OPTION_CURRENT_LOCATION?d.theme.colors.primaryBase:d.theme.colors.gray400),[L,x]),M=t.useCallback((function(e){o({type:ce.ChangeInputSearch,payload:e}),"function"!=typeof m&&(e.trim().length>le[i.locale]||y?l(e.trim(),i):(l.cancel(),o({type:ce.DisplayInitialSearchResults})))}),[o,i]),N=t.useCallback((function(e){o({type:ce.ChangeInputLocation,payload:e}),e.trim().length>le[i.locale]?s(e.trim()):(s.cancel(),o({type:ce.DisplayInitialCities}))}),[s,o]);return C.default.createElement(he,null,C.default.createElement(ge,{ref:b},C.default.createElement(k,{inputClassName:"location"===E?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:C.default.createElement(R,{className:"location-pin-icon",color:T}),actionIcon:C.default.createElement(me,{color:d.theme.colors.gray300,className:""!==w?"shown":""}),onActionClick:function(){o({type:ce.ClearInputLocation}),s.cancel(),r()},value:w,onChange:N,onFocus:()=>o({type:ce.FocusInputLocation}),size:"md",trackingAttributes:p}),!e&&u()),C.default.createElement(fe,{ref:v},C.default.createElement(k,{placeholder:O||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:C.default.createElement(me,{color:d.theme.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){o({type:ce.ClearInputSearch}),l.cancel(),l("",i),c()},value:S,onChange:M,onFocus:()=>o({type:ce.FocusInputSearch}),inputClassName:"search"===E?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&m&&m({cityId:i.selectedLocation.id,keyword:S})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&h()),i.autoCompleteDisabled&&!i.isMobile&&C.default.createElement(ve,{onClick:()=>{m({cityId:i.selectedLocation.id,keyword:S})}}))}const we=()=>C.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},C.default.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),Le=()=>C.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},C.default.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),xe=()=>C.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},C.default.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),Se=()=>C.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},C.default.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Oe=b.default.header`
|
|
224
224
|
display: flex;
|
|
225
225
|
justify-content: space-between;
|
|
226
226
|
padding: 12px 24px;
|
|
227
227
|
background-color: ${d.theme.colors.neutral50};
|
|
228
228
|
box-shadow: inset 0px 1px 0px #e4e8ec;
|
|
229
|
-
`,
|
|
229
|
+
`,ke=b.default.div`
|
|
230
230
|
display: grid;
|
|
231
231
|
flex: 2;
|
|
232
232
|
align-items: center;
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
flex: 1;
|
|
243
243
|
cursor: pointer;
|
|
244
244
|
text-align: end;
|
|
245
|
-
`,
|
|
245
|
+
`,Re=b.default.section`
|
|
246
246
|
padding: 12px 16px;
|
|
247
247
|
--rowGap: 16px;
|
|
248
248
|
--graphicSize: 32px;
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
${h.MediaQueries.tdUp} {
|
|
251
251
|
--rowGap: 8px;
|
|
252
252
|
}
|
|
253
|
-
`,
|
|
253
|
+
`,Me=b.default.ul`
|
|
254
254
|
--gap: 16px;
|
|
255
255
|
${h.MediaQueries.tdUp} {
|
|
256
256
|
--gap: 8px;
|
|
@@ -272,18 +272,21 @@
|
|
|
272
272
|
${h.MediaQueries.tdUp} {
|
|
273
273
|
grid-template-columns: 1fr 1fr;
|
|
274
274
|
} ;
|
|
275
|
-
`,
|
|
275
|
+
`,Ne=b.default(c.Text)`
|
|
276
276
|
margin-top: 12px;
|
|
277
277
|
margin-bottom: 8px;
|
|
278
278
|
cursor: pointer;
|
|
279
279
|
text-align: start;
|
|
280
280
|
text-transform: capitalize;
|
|
281
|
-
`,
|
|
281
|
+
`,Ae=b.default.li`
|
|
282
282
|
display: flex;
|
|
283
283
|
align-items: center;
|
|
284
284
|
gap: var(--rowGap);
|
|
285
285
|
cursor: pointer;
|
|
286
|
-
|
|
286
|
+
&.not-nav {
|
|
287
|
+
cursor: default;
|
|
288
|
+
}
|
|
289
|
+
`,je=b.default.div`
|
|
287
290
|
--wrapper-size: var(--graphicSize);
|
|
288
291
|
border-radius: calc(var(--wrapper-size) / 2);
|
|
289
292
|
background-color: var(--neutral50);
|
|
@@ -321,7 +324,7 @@
|
|
|
321
324
|
`,Be=b.default.div`
|
|
322
325
|
display: grid;
|
|
323
326
|
place-items: center;
|
|
324
|
-
`,De={doctors:({width:e,height:t})=>
|
|
327
|
+
`,De={doctors:({width:e,height:t})=>C.default.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},C.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),C.default.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),C.default.createElement("defs",null,C.default.createElement("clipPath",{id:"clip0_14712_400114"},C.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>C.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),C.default.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},He=({type:e,item:a,imageUrl:i,className:o,onClickItem:n})=>{const s=t.useMemo((()=>{const t=De[e]||A;return C.default.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return C.default.createElement(Ae,{onClick:()=>n&&n(a),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||n&&n(a)},tabIndex:0,role:"button",className:o},C.default.createElement(Fe,null,"hospitals"===e?C.default.createElement(_e,{width:"12",height:"16",viewBox:"0 0 12 16"},C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):C.default.createElement(je,{type:e},i?C.default.createElement("img",{src:i,width:32,height:"services"===e?32:24}):s)),C.default.createElement(Pe,{color:d.theme.colors.gray800,size:"p3"},a.name))},Ve=({type:e,data:i,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:r,isMobile:u,isLoading:h,keyword:p,isNavResultItem:g})=>{const[f,m]=t.useState(!1),{t:y,locale:b}=n.useTranslations(),{selectedLocation:E,searchKeywords:w}=o,L=t.useMemo((()=>a.LOCALIZED_SLUGS[b]),[b]),x=t.useMemo((()=>({doctors:{name:y("booking.searchPopup.doctors"),icon:C.default.createElement(we,null),slug:L.DOCTOR},services:{name:y("booking.searchPopup.services"),icon:C.default.createElement(Le,null),slug:L.SERVICE},hospitals:{name:y("booking.searchPopup.hospitals"),icon:C.default.createElement(xe,null),slug:L.HOSPITAL},specialties:{name:y("booking.searchPopup.specialties"),icon:C.default.createElement(Se,null),slug:L.SPECIALTIES}})),[e,L]),S=t.useMemo((()=>x[e].slug),[x]),O=u?l:r;function k(t){let a="";switch(e){case"specialties":a=`/${E.slug}/${x.doctors.slug}/${t.slug}`;break;case"services":a=`/${E.slug}/${S}/${t.slug}`;break;case"doctors":case"hospitals":a=`/${S}/${t.slug}-${t.id}`}a&&s({type:ce.SelectSearchResult,payload:{name:t.name,url:a}})}function I(t){return C.default.createElement(He,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&k})}return C.default.createElement("section",null,C.default.createElement(Oe,null,C.default.createElement(ke,null,x[e].icon,C.default.createElement(Ie,null,x[e].name)),p.trim().length<=le[b]&&C.default.createElement(Te,{onClick:function(){let t="";switch(e){case"specialties":t=`/${S}`;break;case"services":case"doctors":case"hospitals":t=`/${E.slug}/${S}`}t&&s({type:ce.NavigateTo,payload:t})}},C.default.createElement(c.Text,{size:"p3",color:d.theme.colors.primaryBase},y("booking.searchPopup.seeAll")))),(h||i&&i.length>0)&&C.default.createElement(Re,null,C.default.createElement(Me,null,h&&Array(2).fill(void 0).map(((t,a)=>C.default.createElement(Ae,{key:e+"loading"+a},C.default.createElement(Fe,null,C.default.createElement(Be,null,C.default.createElement(v.default,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),C.default.createElement(v.default,{width:120,height:24})))),!h&&i&&i.length>0&&i.slice(0,O).map(I)),C.default.createElement(Me,{isShown:f,isMore:!0},i.slice(O,-1).map(I)),"specialties"===e&&O<i.length&&!h&&C.default.createElement("button",{onClick:()=>m(!f)},C.default.createElement(Ne,{size:"p3",color:d.theme.colors.primaryBase},y(f?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&O<i.length&&!h&&p.trim().length>le[b]&&C.default.createElement("button",{onClick:function(){const{slug:t}=x[e],a=`/${E.slug}/${t}?q=${w}`;s({type:ce.NavigateTo,payload:a})}},C.default.createElement(Ne,{size:"p3",color:d.theme.colors.primaryBase},y(`booking.searchPopup.searchIn.${e}`,{name:p})))),!h&&0===(null==i?void 0:i.length)&&C.default.createElement(Re,null,C.default.createElement(c.Text,{size:"sm",color:d.theme.colors.gray400},y("booking.searchBar.noResults"))))},$e=b.default.section`
|
|
325
328
|
background-color: white;
|
|
326
329
|
border-radius: 4px;
|
|
327
330
|
position: absolute;
|
|
@@ -333,4 +336,4 @@
|
|
|
333
336
|
0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
|
|
334
337
|
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
335
338
|
}
|
|
336
|
-
`,ze=({data:e,state:t,dispatch:a,isMobile:i,isLoading:o,keyword:n})=>
|
|
339
|
+
`,ze=({data:e,state:t,dispatch:a,isMobile:i,isLoading:o,keyword:n,hideResults:s,isNavResultItem:l})=>C.default.createElement($e,null,e&&e.map((e=>s&&s.includes(e.type)?C.default.createElement(C.default.Fragment,null):C.default.createElement(Ve,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:o,keyword:n,isNavResultItem:l})))),Ke="api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",Ze="api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",Ge="api/geobyip?site={domain}&latitude={lat}&longitude={lng}",Ue=(e,t,a)=>w.default(e,Object.assign(Object.assign({},t),{domain:i.domainLocales[a||"en-PH"]}));var qe;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(qe||(qe={}));var Qe=Object.freeze({__proto__:null,get RedirectType(){return qe}});exports.BookingSearchBar=({isMobile:s,careApiDomain:l,geoLocationPermission:r,geoLocationCoordinates:c,initialSelectedCity:d,initialSearchValue:u="",careFrontDomain:h="/care",isDebug:p=!1,askForGeolocationPermission:g=!1,gaTrackingSearchBar:f,gaTrackingLocationSearch:m,autoCompleteDisabled:b=!1,inputSearchPlaceholder:v="",isOptionAllLocation:E=!1,hideResults:w=[],isNavResultItem:k=!0,routerPush:T,onGeoLocationPermissionChange:R,onSearch:M,onChangeLocation:N})=>{const{t:A,locale:j}=n.useTranslations(),P=t.useRef(null),F=t.useRef(null),[_,B]=t.useState(void 0),{geoLocationPermission:D,geoLocationCoordinates:V,requestGeoLocation:$}=function(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(o.getCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=t.useState((()=>{if("undefined"==typeof window)return null;const e=o.getCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=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};o.setCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),s(t),a("granted")}),(()=>{o.deleteCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}(),[z,K]=t.useReducer(ue,re,(e=>Object.assign(Object.assign({},e),{isDebug:p,isMobile:s,geoLocationPermission:r||D||"unset",geoLocationCoordinates:c||V||null,searchKeywords:u,initialSelectedCity:d||null,selectedLocation:d||e.selectedLocation||null,searchLocationKeywords:(null==d?void 0:d.name)||e.searchLocationKeywords,autoCompleteDisabled:b,inputSearchPlaceholder:v,locale:j}))),{navigateTo:Z,focused:G,isLoadingCities:U,cities:q,searchKeywords:Q,geoLocationPermission:W,selectedLocation:Y,initialSelectedCity:J,defaultCity:X,searchResults:te,isLoadingSearchResults:ae,isMobileModalOpened:ie,inputSearchPlaceholder:oe}=z,{fetchCitiesByLocation:ne,fetchCitiesByKeyword:de,fetchSearchResults:he}=function({dispatch:e,careApiDomain:i,locale:o="vi-VN"}){const n=t.useCallback((function(t,a={}){const n=`${i}${t}`;return e({type:ce.FetchCitiesStart}),fetch(Ue(n,a,o),{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:ce.FetchCitiesFinish})))}),[o]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};t&&(a={lat:t.lat,lng:t.lng});const i=[n(Ge,a)];return"zh-TW"===o&&i.push(n(Ke,{noPaging:1})),Promise.all(i).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:ce.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[o,i,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(Ke,{keyword:t}).then((t=>{e({type:ce.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[o,i,e]),fetchSearchResults:t.useCallback((function(t,n){const s=`${i}${Ze}`;e({type:ce.FetchSearchResultsStart});const{defaultCity:l,selectedLocation:r,geoLocationCoordinates:c}=n;let d="";if(!r||!l)return void e({type:ce.FetchSearchResultsFinish});r.id===a.ID_OPTION_CURRENT_LOCATION?c||(d=l.id):d=r.id===a.ID_OPTION_ALL_LOCATION?"":r.id;const u=(null==c?void 0:c.lat)||"",h=(null==c?void 0:c.lng)||"";return fetch(Ue(s,{domain:i,searchType:"global",keyword:t.trim().length>le[o]?t.trim():"",city:d===a.ID_OPTION_CURRENT_LOCATION?"":d,lat:u,lng:h},o),{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:ce.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:s,error:e})})).finally((()=>e({type:ce.FetchSearchResultsFinish})))}),[o,i,e])}}({dispatch:K,locale:j,careApiDomain:l}),pe=t.useMemo((()=>{var e;return{id:a.ID_OPTION_CURRENT_LOCATION,name:A("booking.searchBar.currentLocation"),slug:null===(e=a.LOCALIZED_SLUGS[j])||void 0===e?void 0:e.CURRENT}}),[A,j]),ge=t.useMemo((()=>y.default(de,400)),[de]),fe=t.useMemo((()=>y.default(he,400)),[he]);t.useEffect((()=>{""!==u&&u!==z.searchKeywords&&K({type:ce.UpdateInitialSearchValue,payload:u})}),[u]),t.useEffect((()=>{g&&(null==Y?void 0:Y.id)===a.ID_OPTION_CURRENT_LOCATION&&"unset"===W&&$()}),[g,Y,W]),t.useEffect((()=>{r||W===D||("granted"===D&&V?K({type:ce.GrantGeoLocationPermission,payload:V}):"denied"===D&&K({type:ce.DenyGeoLocationPermission}))}),[W,D,V,r]),t.useEffect((()=>{Z&&(T?T(Z):window.location.href=`${h}${Z}`)}),[Z]);const me=t.useCallback((function(){K({type:ce.SelectCurrentLocation,payload:pe})}),[A,K]);t.useEffect((()=>{"denied"===W||J||me(),R&&R(W,z.geoLocationCoordinates),s&&"granted"===W&&Y&&K({type:ce.FocusInputSearch}),ne({coordinates:z.geoLocationCoordinates})}),[W]),t.useEffect((()=>{Y&&X&&he(z.searchKeywords,z)}),[Y,X]),t.useEffect((()=>{v!==oe&&K({type:ce.SetInputSearchPlaceholder,payload:v})}),[v,oe]),t.useEffect((()=>{ie?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[ie]);const Ce=t.useCallback((function(e){K({type:ce.SelectLocation,payload:e}),we(),N&&N(e)}),[A,K]);function ye(){s&&"granted"!==z.geoLocationPermission?$():(me(),we())}function be(){var e;P.current&&(null===(e=P.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function we(){var e;P.current&&(null===(e=P.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Le(){K({type:ce.CloseMobileModal})}function xe(){return"location"!==G?null:C.default.createElement(H,{isLoading:U,cities:q,onLocationClick:Ce,onCurrentLocationClick:ye,isLocationLoading:U,geoLocationPermission:W,selectedLocation:Y,isOptionAllLocation:E})}function Se(){return"search"!==G?null:z.autoCompleteDisabled?s?C.default.createElement(ve,{onClick:()=>{M({cityId:z.selectedLocation.id,keyword:Q}),Le()}}):null:C.default.createElement(ze,{data:te,state:z,dispatch:K,isMobile:!1,keyword:Q,isLoading:ae,hideResults:w,isNavResultItem:k})}function Oe(){return C.default.createElement(Ee,{isMobile:s,state:z,dispatch:K,debouncedFetchCitiesByKeyword:ge,debouncedFetchSearchResults:fe,focusLocationInput:be,focusSearchInput:we,renderLocationResults:xe,renderSearchResults:Se,trackingAttributes:f,locationTrackingAttributes:m,onSearch:M,initalSearchValue:u})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;B(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[B]),s?C.default.createElement(C.default.Fragment,null,C.default.createElement(I,null),C.default.createElement(O,{ref:F}),C.default.createElement(x,{id:"booking-search-bar",ref:P,"data-is-modal":s&&ie,style:{"--mobile-care-searchbar-height":ie&&_?`${_}px`:"100%"}},ie?C.default.createElement(C.default.Fragment,null,C.default.createElement(S,null,C.default.createElement(se,{headingText:A("booking.searchBar.searchButton"),onLeftClick:Le}),Oe()),xe(),Se()):C.default.createElement(ee,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){F.current&&F.current.focus(),K({type:ce.OpenMobileModal}),yield Promise.resolve(),P.current&&(null===(t=P.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:G,value:Q,trackingAttributes:f,inputSearchPlaceholder:v}))):C.default.createElement(L,{id:"booking-search-bar",ref:P},Oe())},exports.types=Qe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-f1344a6f.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-a6bfe2ef.js"),o=require("./useTranslations-b4294d27.js"),n=require("innertext"),i=require("./theme-49a1455d.js"),r=require("./index.styles-696360de.js"),s=require("./gAssets.js");require("@mantine/dates");var d=require("./index-ef575820.js");require("./Onboarding-51e879ec.js");var c=require("./index-2a1ee44e.js"),u=require("dayjs");require("./screenSizeContext-6c57a958.js");var m=require("styled-components"),p=require("./utils-d49519a5.js");require("./isProduction-a1c599d9.js"),require("./index-2c1aa63d.js"),require("@mantine/hooks");var g=require("./index.styled-89187ea1.js"),h=require("./index-0946433d.js"),f=require("./dataTransform-4338e067.js"),v=require("./index-77934ff5.js"),b=require("./index-364356fe.js"),x=require("lodash/debounce"),w=require("react-contenteditable"),y=require("./index-43c58915.js"),C=require("./cookieHelper-86883198.js"),E=require("react-dom");require("./index-047c5ffe.js"),require("./index-a73a0a6d.js"),require("./index.styled-44af0d98.js"),require("./index-c24ab0a8.js");var k=require("date-fns");require("react-day-picker/DayPickerInput"),require("./index-a4c1331e.js"),require("lodash/throttle"),require("keen-slider/react"),require("./types-addc3582.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-2739b543.js"),require("uuid"),require("string-format");var A=require("dayjs/plugin/relativeTime"),N=require("./index-7c36ad9a.js"),T=require("./useUniqueId-3c136b22.js");require("./translationsContext-03da8207.js");var S=require("./routing-89664f16.js");function P(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function L(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 M=L(t),I=P(t),B=P(n),R=P(u),z=P(m),j=P(x),F=P(w),O=L(E),D=P(A);const U=e=>M.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),M.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"})),V=t.createContext({}),_=({children:e,defaultParams:t})=>I.default.createElement(V.Provider,{value:{defaultParams:t}},e),H=e=>{const{data:{userInfo:a,env:{togetherBasePath:l}}}=t.useContext(g.TogetherComponentGlobalContext),{defaultParams:o}=t.useContext(V)||{},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(g.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=g.getUrlToSignUp(e,r,l),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},W=z.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-51e879ec.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}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-f1344a6f.js"),t=require("react"),a=require("./getDynamicHealthTool-97c6440b.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-f1344a6f.js"),t=require("react"),r=require("./cookieHelper-86883198.js"),n=require("./useUniqueId-3c136b22.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"),a=require("./translationsContext-
|
|
1
|
+
"use strict";var e=require("react"),a=require("./translationsContext-03da8207.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(require("string-format"));exports.useTranslations=function(){const{values:t,locale:o}=e.useContext(a.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,r)=>t?t[e]?r?n.default(t[e]||e,r):t[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),r?n.default(a.defaultTranslations[e]||e,r):a.defaultTranslations[e]||e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[t,o])};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-f1344a6f.js"),r=require("react"),t=require("@mantine/core"),i=require("./index-a73a0a6d.js");require("./gAssets.js"),require("@mantine/dates");var n=require("./index-ef575820.js"),a=require("./Onboarding-51e879ec.js"),o=require("./index-2a1ee44e.js");require("./index.styles-696360de.js"),require("dayjs"),require("./screenSizeContext-6c57a958.js");var s=require("styled-components"),d=require("./theme-49a1455d.js"),l=require("./utils-d49519a5.js");require("./isProduction-a1c599d9.js"),require("./translationsContext-03da8207.js"),require("string-format"),require("./index-2c1aa63d.js"),require("@mantine/hooks");var c=require("@mantine/form");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=m(r),p=m(s);const g=r.createContext({}),[x,h,f]=c.createFormContext(),L=p.default.div`
|
|
2
2
|
margin-top: 70px;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
&.similac {
|
|
8
8
|
margin-top: 16px;
|
|
9
9
|
}
|
|
10
|
-
`,
|
|
10
|
+
`,E=p.default(t.Container)`
|
|
11
11
|
&.hhg-comp-onboarding-container.hhg-comp-onboarding-container {
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
@@ -48,6 +48,6 @@
|
|
|
48
48
|
.form-button {
|
|
49
49
|
width: 100%;
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,C=p.default.img`
|
|
52
52
|
margin-bottom: 38px;
|
|
53
|
-
`,
|
|
53
|
+
`,q={[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.FormProvider=x,exports.MAPPED_LOCALE=q,exports.Onboarding=a=>{var s,{heading:l,description:c,children:m,className:p,imgSrc:x,hiddenLogo:h=!1}=a,f=e.__rest(a,["heading","description","children","className","imgSrc","hiddenLogo"]);const{isMarryBaby:q,siteType:b}=r.useContext(g);return u.default.createElement(E,Object.assign({},f,{className:`hhg-comp-onboarding-container ${p}`,size:"sm"}),!h&&u.default.createElement(i.LogoIcon,{type:q?b:(null===(s=n.LOCALE_SPECS[process.env.UNIFY_LOCALE])||void 0===s?void 0:s.LOGO_TYPE)||"hellobacsi"}),u.default.createElement(L,{className:h?"similac":""},x&&u.default.createElement(C,{src:x,loading:"lazy"}),u.default.createElement("div",{className:"header"},u.default.createElement(t.Title,{order:3},l),u.default.createElement(o.Text,{size:"p3",mt:8,color:d.theme.colors.gray600},c)),m))},exports.OnboardingContext=g,exports.hiddenEmailChar=(e="")=>{const r=e.indexOf("@"),t=e.substring(0,r),i=t.length>3?3:t.length;return e.replace(e.substring(i,r),e.slice(i,r).replace(/./g,"x"))},exports.useForm=f,exports.useFormContext=h;
|
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-f1344a6f.js"),t=require("react"),a=require("@mantine/core");require("./gAssets.js"),require("@mantine/dates"),require("./index-ef575820.js");var l=require("./Onboarding-51e879ec.js"),n=require("./index-2a1ee44e.js"),r=require("dayjs");require("./screenSizeContext-6c57a958.js");var i=require("styled-components"),o=require("./theme-49a1455d.js"),c=require("./utils-d49519a5.js");require("./isProduction-a1c599d9.js");var s=require("./useTranslations-b4294d27.js");require("./index-2c1aa63d.js");var d=require("@mantine/hooks");require("lodash/debounce");var u=require("./index.styles-696360de.js"),m=require("./index-cbd2b0f6.js");require("./translationsContext-03da8207.js"),require("string-format"),require("./index-047c5ffe.js"),require("./index-a73a0a6d.js"),require("./index.styled-44af0d98.js"),require("./index-c24ab0a8.js");var f=require("./index-7c36ad9a.js"),C=require("@mantine/form"),p=require("dayjs/plugin/customParseFormat"),g=require("./index-d6c6275a.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("date-fns/locale"),require("@mantine/carousel"),require("lodash/throttle"),require("./index-77934ff5.js"),require("./useUniqueId-3c136b22.js");var b=h(t),x=h(r),E=h(i),v=h(p);const y=E.default.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
padding: 16px;
|
|
4
4
|
min-height: 110px;
|
package/package.json
CHANGED
package/build/core-854463ab.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-f0827634.js"),e=require("./isProduction-d8ab8512.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{_ as e}from"./tslib.es6-9b948d82.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as s}from"@mantine/hooks";import{B as a}from"./index-c6c27bc4.js";import{D as r,S as i,j as l}from"./index-5b42f787.js";const m=m=>{var{color:c,withControl:h,onChange:d,value:g,min:w,max:p,isStatic:u,containerClassName:k,containerStyle:v}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[b,C]=o(g||w||0),[f]=s(b,r);return n((()=>{null==d||d(f)}),[f]),n((()=>{C(g)}),[g]),t.createElement(i,{className:k,style:v},h&&t.createElement(a,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>w&&e===w?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:b,onChange:u?()=>null:C,min:w,max:p},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(a,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>p&&e===p?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,_ as t}from"./tslib.es6-9b948d82.js";import s,{useReducer as a,useState as r,useEffect as i}from"react";import{Stack as n,Input as o}from"@mantine/core";import{S as d}from"./index-9a3ebcf7.js";import"@mantine/dates";import{c}from"./index-86d43e14.js";import{L as l}from"./Onboarding-a3555f60.js";import"./gAssets.js";import{f as p}from"./index-5b42f787.js";import"./index.styles-40fc07bc.js";import"dayjs";import"./screenSizeContext-dedd537b.js";import"styled-components";import"./theme-ffebb4c8.js";import"./utils-ad2536cd.js";import"./isProduction-603a7e15.js";import{u as m}from"./useTranslations-0545ef3e.js";import"./index-3a3f352a.js";import"@mantine/hooks";import"lodash/debounce";import{M as b}from"./utils-cd6d52d6.js";const v={provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},j=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},h=()=>{const[t,s]=a(j,v),{provinces:n,districts:o,wards:d,selectedProvince:p,selectedDistrict:m,selectedWard:h}=t,[u,g]=r();i((()=>{e(void 0,void 0,void 0,(function*(){var e,t,a,r;try{const i=yield fetch((r=process.env.UNIFY_LOCALE||l.Vietnam,`${c}/cities-data-${b[r]}.json`)).then((e=>e.json()));g(i);const{list:n}=i,o=Object.keys(n),d=Object.keys((null===(e=n[o[0]])||void 0===e?void 0:e.list)||{}),p=Object.keys((null===(a=null===(t=n[o[0]])||void 0===t?void 0:t[d[0]])||void 0===a?void 0:a.list)||{});s({type:"SET_DATA",payload:{provinces:o,districts:d,wards:p}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:n,districts:o,wards:d,selectedProvince:p,selectedDistrict:m,selectedWard:h,handleProvinceChange:e=>{var t;const a=Object.keys((null===(t=u.list[e])||void 0===t?void 0:t.list)||{});s({type:"SET_DISTRICTS",payload:a}),s({type:"SET_WARDS",payload:[]}),s({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,a;const r=Object.keys((null===(a=null===(t=u.list[p])||void 0===t?void 0:t.list[e])||void 0===a?void 0:a.list)||{});s({type:"SET_WARDS",payload:r}),s({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{s({type:"SELECT_WARD",payload:e})}}},u=e=>{var{error:a}=e,c=t(e,["error"]);const{t:l}=m(),{provinces:b,districts:v,wards:j,selectedProvince:u,selectedDistrict:g,selectedWard:y,handleProvinceChange:E,handleDistrictChange:C,handleWardChange:S}=h(),[T,f]=r("");return i((()=>{u&&g&&y&&T?c.onChange({selectedProvince:u,selectedDistrict:g,selectedWard:y,extraInfo:T}):c.onChange(null)}),[u,g,y,T]),s.createElement(p.Wrapper,Object.assign({withAsterisk:!0},c),s.createElement(n,null,s.createElement(d,{placeholder:l("onboarding.similac.input.city"),data:b.sort(),searchable:!0,onChange:E,value:u}),s.createElement(d,{placeholder:l("onboarding.similac.input.district"),data:v.sort(),searchable:!0,onChange:C,value:g,disabled:!u}),s.createElement(d,{placeholder:l("onboarding.similac.input.ward"),searchable:!0,data:j.sort(),value:y,onChange:S,disabled:!u||!g}),s.createElement(p,{placeholder:l("onboarding.similac.input.no"),disabled:!u||!g||!y,value:T,onChange:f,style:{marginBottom:0}})),s.createElement(o.Error,{size:"md"},a))};export{u as A};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{useState as t,useRef as a,useEffect as o}from"react";import{u as c}from"./useTranslations-0545ef3e.js";import{t as d}from"./theme-ffebb4c8.js";import{L as l,I as r}from"./index.styles-40fc07bc.js";import{I as s}from"./index-1300ccdb.js";import{M as n}from"./index-8231ed40.js";import{T as m}from"./index-5163f086.js";import{u as i}from"./useScrollbarSize-455ccc62.js";import{createPortal as h}from"react-dom";import{S as p,a as u,b as y}from"./index-4d33e2bf.js";const b=({isActive:t,onChange:a,value:o="",onInputChange:i,siteType:h})=>{const{t:p}=c(),u="marryBaby"===h;return e.createElement(l,{onClick:()=>a("new"),"data-is-mb":u,"data-isActive":u&&t},"marryBaby"===h?e.createElement("div",{className:"title"},e.createElement(n,{type:"bodytext-1",color:d.colors.gray800},p("chooseBaby.new")),e.createElement("div",{className:t?"radio active":"radio"},t&&e.createElement(r.CheckActiveMB,{size:26}))):e.createElement("div",{className:"title"},e.createElement(m,{size:"p2",color:d.colors.gray800},p("chooseBaby.new")),e.createElement("div",{className:t?"radio active":"radio"})),e.createElement(s,{name:"name",value:o,size:"md",placeholder:p("chooseBaby.placeholder"),type:"text",onChange:i}))},v="hhg-modals",f=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},g=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},E=({type:c="lead",closeIcon:d,isOpen:l=!0,onClose:r,children:s,className:n="",animationType:m="slideTop",isStaticBackdrop:b=!1,siteType:E})=>{const[C,N]=t(!1),_=a(null),{width:j}=i();if(!_.current&&C&&(_.current=document.createElement("div")),o((()=>(N(!0),()=>{N(!1),f(),g()})),[]),o((()=>{if(C){const e=(()=>{let e=document.getElementById(v);return e||(e=document.createElement("div"),e.setAttribute("id",v),document.body.append(e)),e})();return e.appendChild(_.current),()=>{e.removeChild(_.current)}}}),[C]),o((()=>{l?document.body.classList.add("hhc-modal-show"):f()}),[l]),o((()=>{l?(document.body.style.overflow="hidden",document.body.style.paddingRight=j+"px",document.body.classList.add("hhc-disabled-scroll")):g()}),[l,j]),!C)return null;const w=["hhg-modal__wrapper",n,m].filter((e=>e)).join(" ");return h(e.createElement(p,{className:w,"data-open":l,"data-type":c},!b&&e.createElement(u,{"data-open":l,onClick:r,"data-type":c}),!b&&"video"===c&&!!d&&e.createElement("div",{className:"hhg-modal__close",onClick:r},d),e.createElement(y,{className:"hhg-modal","data-open":l,"data-site-type":E},e.createElement("div",{className:"video"===c?"hhg-modal__video":"hhg-modal__content"},!!d&&"video"!==c&&e.createElement("div",{className:"hhg-modal__close",onClick:r},d),s))),_.current)};export{E as M,b as N};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t}from"./tslib.es6-9b948d82.js";import o from"react";import{Indicator as s}from"@mantine/core";import"dayjs";import"./screenSizeContext-dedd537b.js";import"styled-components";import{t as e}from"./theme-ffebb4c8.js";import"./index-86d43e14.js";import"./utils-ad2536cd.js";import"./isProduction-603a7e15.js";import"./Onboarding-a3555f60.js";import"./gAssets.js";const r=r=>{var{styles:i,color:n=e.colors.red700}=r,m=t(r,["styles","color"]);return o.createElement(s,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:n},m))};export{r as I};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-9b948d82.js";import t from"react";import{Image as r}from"@mantine/core";import{DatePickerInput as o}from"@mantine/dates";import{I as s}from"./index-86d43e14.js";import{L as i}from"./Onboarding-a3555f60.js";import{CommonGAssets as a}from"./gAssets.js";import{m as n}from"./index-5b42f787.js";const l=l=>{var m,{value:d,fullWidth:c=!0}=l,p=e(l,["value","fullWidth"]);return t.createElement(o,Object.assign({locale:n[process.env.UNIFY_LOCALE||i.Vietnam],valueFormat:null===(m=s[process.env.UNIFY_LOCALE||i.Vietnam])||void 0===m?void 0:m.dateFormat,size:"md",clearable:!1,popoverProps:c?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:t.createElement(r,{src:a.getAssetPath(p.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:d},p,{className:`input-control ${(null==p?void 0:p.className)||""}`}))};export{l as D};
|