@hhgtech/hhg-components 1.27.69 → 1.27.70
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 +3 -3
- package/build/cache.js +1 -1
- package/build/care/api/paths.d.ts +1 -0
- package/build/care/components/organisms/bookingSearchBarV2/constants.d.ts +4 -0
- package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +28 -0
- package/build/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +4 -0
- package/build/care/components/organisms/bookingSearchBarV2/reducer.d.ts +144 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +24 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.styled.d.ts +2 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +16 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.styled.d.ts +10 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchResult/icons.d.ts +5 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +20 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.styled.d.ts +5 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +12 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.styled.d.ts +5 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +14 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +10 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +3 -0
- package/build/care/components/organisms/bookingSearchBarV2/searchTag/index.styled.d.ts +2 -0
- package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +9 -0
- package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +1 -0
- package/build/care/components/organisms/bookingSearchBarV2/types.d.ts +11 -0
- package/build/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +18 -0
- package/build/care/index.d.ts +1 -0
- package/build/care/interfaces/types.d.ts +7 -0
- package/build/care.js +1 -1
- package/build/components/atoms/icons/Search.d.ts +4 -0
- package/build/components/atoms/icons/index.d.ts +1 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-4d8e9583.js +1 -0
- package/build/{dataTransform-7ab7ab3a.js → dataTransform-e29982c1.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +8 -8
- package/build/esm/cache.js +1 -1
- package/build/esm/care/api/paths.d.ts +1 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/constants.d.ts +4 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +28 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +4 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/reducer.d.ts +144 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +24 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.styled.d.ts +2 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +16 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.styled.d.ts +10 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/icons.d.ts +5 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +20 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.styled.d.ts +5 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +12 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.styled.d.ts +5 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +14 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +10 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +3 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchTag/index.styled.d.ts +2 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +9 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +1 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/types.d.ts +11 -0
- package/build/esm/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +18 -0
- package/build/esm/care/index.d.ts +1 -0
- package/build/esm/care/interfaces/types.d.ts +7 -0
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/icons/Search.d.ts +4 -0
- package/build/esm/components/atoms/icons/index.d.ts +1 -0
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-6492f231.js → core-eee94d3a.js} +1 -1
- package/build/esm/{dataTransform-b8c22fc9.js → dataTransform-f3652b0a.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/fixedBottomAdBlock-7554c3b8.js +1 -0
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-7ca54784.js +1 -0
- package/build/esm/{getSocialList-f491a2d9.js → getSocialList-f6efdc64.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +1 -1
- package/build/esm/i18n-values/hi-IN.js +1 -1
- package/build/esm/i18n-values/id-ID.js +1 -1
- package/build/esm/i18n-values/km-KH.js +1 -1
- package/build/esm/i18n-values/ms-MY.js +1 -1
- package/build/esm/i18n-values/my-MM.js +1 -1
- package/build/esm/i18n-values/th-TH.js +1 -1
- package/build/esm/i18n-values/tl-PH.js +1 -1
- package/build/esm/i18n-values/vi-VN.js +1 -1
- package/build/esm/i18n-values/vi-VN_MB.js +1 -1
- package/build/esm/i18n-values/zh-TW.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-fe72b968.js → index-136d0591.js} +33 -33
- package/build/esm/{index-9b177171.js → index-14477fd7.js} +1 -1
- package/build/esm/{index-fb3c41e5.js → index-19124705.js} +1 -1
- package/build/esm/index-1ac00718.js +113 -0
- package/build/esm/{index-4d5c0771.js → index-20a67ed5.js} +1 -1
- package/build/esm/{index-ed1cac71.js → index-4b6c2c38.js} +1 -1
- package/build/esm/{index-531008d2.js → index-56cd242a.js} +1 -1
- package/build/esm/{index-73288a5b.js → index-56fa0620.js} +1 -1
- package/build/esm/{index-bb9b3e39.js → index-629208cc.js} +4 -4
- package/build/esm/index-6b2e40f9.js +1 -0
- package/build/esm/index-6c68b9ba.js +1 -0
- package/build/esm/{index-c4680d39.js → index-6c96ac70.js} +1 -1
- package/build/esm/{index-0a52e0c8.js → index-83aad691.js} +1 -1
- package/build/esm/{index-45f7496a.js → index-8fa42782.js} +1 -1
- package/build/esm/index-94da7d7a.js +177 -0
- package/build/esm/{index-eabb2f3d.js → index-9ec58b78.js} +1 -1
- package/build/esm/index-af57521e.js +1 -0
- package/build/esm/index-b87b3db3.js +1 -0
- package/build/esm/index-dbc51f01.js +1 -0
- package/build/esm/{index-fd14a910.js → index-ef88b50a.js} +1 -1
- package/build/esm/{index-487953bb.js → index-fce73e2c.js} +5 -5
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-a5c98598.js → index.styled-99ed9a64.js} +22 -22
- package/build/esm/{index.styled-4eb37224.js → index.styled-a177c0fc.js} +11 -11
- package/build/esm/index.styled-bcf9194a.js +50 -0
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/{paths-8ff149e9.js → paths-d8677095.js} +1 -1
- package/build/esm/pwg.js +3 -3
- package/build/esm/{routing-d9315774.js → routing-15bab0c1.js} +1 -1
- package/build/esm/screenSizeContext-c836ee25.js +81 -0
- package/build/esm/together.js +1 -1
- package/build/esm/{types-7abf7ed5.js → types-1ede8733.js} +116 -116
- package/build/esm/types-659159e3.js +749 -0
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-c93a14d3.js +1 -0
- package/build/esm/{useRafState-be194a08.js → useRafState-956d702c.js} +1 -1
- package/build/esm/useTranslations-7ca47aa6.js +1 -0
- package/build/esm/utils-43ce7755.js +1210 -0
- package/build/esm/{utils-603729de.js → utils-95f50b85.js} +1 -1
- package/build/esm/vaccination.js +19 -19
- package/build/fixedBottomAdBlock-9da7b320.js +1 -0
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-bdf0afc0.js → getDynamicHealthTool-1d128d8b.js} +1 -1
- package/build/{getSocialList-1de29b3a.js → getSocialList-89fc7cd1.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -1
- package/build/i18n-values/hi-IN.js +1 -1
- package/build/i18n-values/id-ID.js +1 -1
- package/build/i18n-values/km-KH.js +1 -1
- package/build/i18n-values/ms-MY.js +1 -1
- package/build/i18n-values/my-MM.js +1 -1
- package/build/i18n-values/th-TH.js +1 -1
- package/build/i18n-values/tl-PH.js +1 -1
- package/build/i18n-values/vi-VN.js +1 -1
- package/build/i18n-values/vi-VN_MB.js +1 -1
- package/build/i18n-values/zh-TW.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-b98e0abe.js → index-286f3f1f.js} +1 -1
- package/build/{index-8fd181ff.js → index-2f89ac17.js} +1 -1
- package/build/{index-a9abd927.js → index-2ff3dc9b.js} +1 -1
- package/build/index-491c1f7a.js +1 -0
- package/build/index-4a3978e2.js +113 -0
- package/build/{index-185962f0.js → index-4d3debcc.js} +1 -1
- package/build/index-4dd35f52.js +53 -0
- package/build/index-5f26cd75.js +1 -0
- package/build/{index-cd08fffe.js → index-61ca2233.js} +1 -1
- package/build/{index-165382ae.js → index-71a241c2.js} +1 -1
- package/build/{index-298ad9ee.js → index-9796fe55.js} +1 -1
- package/build/index-a30a463c.js +1 -0
- package/build/index-a77fa3dc.js +1 -0
- package/build/{index-5878ef5b.js → index-bbee93dd.js} +14 -14
- package/build/{index-5426419e.js → index-c4d63742.js} +1 -1
- package/build/{index-82272902.js → index-c6d5103f.js} +1 -1
- package/build/{index-c5e53640.js → index-c952cbc8.js} +1 -1
- package/build/{index-d0f3640e.js → index-d42c20df.js} +1 -1
- package/build/{index-a9217025.js → index-de4b79e1.js} +7 -7
- package/build/{index-81a906a4.js → index-e00f2884.js} +1 -1
- package/build/{index-5e5656f3.js → index-e8145d84.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-ef0fd080.js → index.styled-682ff94a.js} +1 -1
- package/build/{index.styled-a8bfc669.js → index.styled-af0521f7.js} +14 -14
- package/build/{index.styled-f8627c59.js → index.styled-e140852f.js} +6 -6
- 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 +17 -17
- package/build/paths-82fd1623.js +1 -0
- package/build/pwg.js +2 -2
- package/build/{routing-fb5db1d2.js → routing-6279db15.js} +1 -1
- package/build/screenSizeContext-449c711d.js +81 -0
- package/build/together.js +1 -1
- package/build/types-19554357.js +749 -0
- package/build/{types-10d76b2f.js → types-5970349c.js} +80 -80
- package/build/types.js +1 -1
- package/build/useHealthToolCache-370897a8.js +1 -0
- package/build/{useRafState-a5e9cda8.js → useRafState-11b8c397.js} +1 -1
- package/build/{useTranslations-e9a977c2.js → useTranslations-6431433b.js} +1 -1
- package/build/utils-937d5f73.js +1210 -0
- package/build/{utils-8f9cdef6.js → utils-d2d88c63.js} +1 -1
- package/build/vaccination.js +42 -42
- package/package.json +1 -1
- package/build/core-364d1067.js +0 -1
- package/build/esm/fixedBottomAdBlock-6c133fcc.js +0 -1
- package/build/esm/getDynamicHealthTool-d16f3b54.js +0 -1
- package/build/esm/index-41b77f3e.js +0 -1
- package/build/esm/index-5fb217fb.js +0 -1
- package/build/esm/index-663ec4de.js +0 -177
- package/build/esm/index-782be548.js +0 -1
- package/build/esm/index-823a548e.js +0 -1
- package/build/esm/index-a54b0739.js +0 -113
- package/build/esm/index-d20f3c10.js +0 -1
- package/build/esm/index.styled-8cd3ffb8.js +0 -50
- package/build/esm/screenSizeContext-e0bb4713.js +0 -81
- package/build/esm/types-fc66947b.js +0 -339
- package/build/esm/useHealthToolCache-4b4cdc37.js +0 -1
- package/build/esm/useTranslations-3e881db9.js +0 -1
- package/build/esm/utils-1f109d73.js +0 -1210
- package/build/esm/utils-d5e5e420.js +0 -1
- package/build/fixedBottomAdBlock-80890f83.js +0 -1
- package/build/index-024fd801.js +0 -1
- package/build/index-2b8f37e1.js +0 -53
- package/build/index-3c4ee26d.js +0 -1
- package/build/index-56aa446f.js +0 -1
- package/build/index-b9c68d00.js +0 -1
- package/build/index-ebedce55.js +0 -113
- package/build/paths-e4af6f7a.js +0 -1
- package/build/screenSizeContext-f4914aa0.js +0 -81
- package/build/types-ca7b4a5a.js +0 -339
- package/build/useHealthToolCache-f8aa169c.js +0 -1
- package/build/utils-d215a9f3.js +0 -1
- package/build/utils-f37ac675.js +0 -1210
- /package/build/{BMI_BOYS.percentile.monthly-566d44a6.js → BMI_BOYS.percentile.monthly-8958a78c.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-2d7a8532.js → BMI_BOYS.percentile.weekly-4b761f4d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-4ef940c7.js → BMI_BOYS.percentile.yearly-a04bbf54.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-61bd02a5.js → BMI_BOYS.zscore.monthly-a36ba4d0.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-c4752c39.js → BMI_BOYS.zscore.weekly-db6fe4d5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-1bef43dd.js → BMI_BOYS.zscore.yearly-860caeed.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-79da78b5.js → BMI_GIRLS.percentile.monthly-00df239c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d1dbd1b0.js → BMI_GIRLS.percentile.weekly-fddb8641.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-de9fead6.js → BMI_GIRLS.percentile.yearly-22dd5ac8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-c787e54b.js → BMI_GIRLS.zscore.monthly-cb7fb89f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-ed863d49.js → BMI_GIRLS.zscore.weekly-99eb5541.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-8515d7fb.js → BMI_GIRLS.zscore.yearly-25cae963.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2669b31c.js → HEAD CIRCUM_BOYS.percentile.monthly-f55ff1d5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-610d83ed.js → HEAD CIRCUM_BOYS.percentile.weekly-544b75f3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-f393638f.js → HEAD CIRCUM_BOYS.percentile.yearly-08510bd3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-be42756d.js → HEAD CIRCUM_BOYS.zscore.monthly-bbcdb589.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-26db840c.js → HEAD CIRCUM_BOYS.zscore.weekly-dc2399a5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-79ed300c.js → HEAD CIRCUM_BOYS.zscore.yearly-069905bc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-7ed956bc.js → HEAD CIRCUM_GIRLS.percentile.monthly-40dba81c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-643a5eef.js → HEAD CIRCUM_GIRLS.percentile.weekly-69a42032.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e5768cb7.js → HEAD CIRCUM_GIRLS.percentile.yearly-94df5a03.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-67cce25e.js → HEAD CIRCUM_GIRLS.zscore.monthly-628d6922.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-fc98e3d3.js → HEAD CIRCUM_GIRLS.zscore.weekly-6043be39.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-681e1b54.js → HEAD CIRCUM_GIRLS.zscore.yearly-10a0741e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-7b20d402.js → HEIGHT_BOYS.percentile.monthly-ae009cf1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-7e97094b.js → HEIGHT_BOYS.percentile.weekly-70d1d360.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-54adbf6c.js → HEIGHT_BOYS.percentile.yearly-09cf9130.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-fbb459bf.js → HEIGHT_BOYS.zscore.monthly-2e81862c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-091ae57d.js → HEIGHT_BOYS.zscore.weekly-99b3814d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-40990ba2.js → HEIGHT_BOYS.zscore.yearly-f4613d62.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-a441682e.js → HEIGHT_GIRLS.percentile.monthly-6f60eeb3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d7214c9a.js → HEIGHT_GIRLS.percentile.weekly-e4a3dbf0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-f4e2be20.js → HEIGHT_GIRLS.percentile.yearly-ab93e83f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-bc0b0f1a.js → HEIGHT_GIRLS.zscore.monthly-4f9524f2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-25a9c973.js → HEIGHT_GIRLS.zscore.weekly-964c7c6b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-4fd38d47.js → HEIGHT_GIRLS.zscore.yearly-938f9222.js} +0 -0
- /package/build/{Onboarding-918bcb2f.js → Onboarding-7b19bc6b.js} +0 -0
- /package/build/{Visible-f7b9a0ea.js → Visible-b1a5edce.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-fa2a7a93.js → WEIGHT_BOYS.percentile.monthly-0dc89eaf.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-273c8412.js → WEIGHT_BOYS.percentile.weekly-c6eb47e5.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-33d1574d.js → WEIGHT_BOYS.percentile.yearly-a2307c60.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-dcf0b685.js → WEIGHT_BOYS.zscore.monthly-a0b441e5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-edecc293.js → WEIGHT_BOYS.zscore.weekly-19736bd9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-b575276b.js → WEIGHT_BOYS.zscore.yearly-6a026f92.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-a71f0afb.js → WEIGHT_GIRLS.percentile.monthly-65ee3fc1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-f970f70d.js → WEIGHT_GIRLS.percentile.weekly-552483f0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-12d34d41.js → WEIGHT_GIRLS.percentile.yearly-60565842.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-630258eb.js → WEIGHT_GIRLS.zscore.monthly-08000bda.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-d3a2c4de.js → WEIGHT_GIRLS.zscore.weekly-db98eae0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-bd6e091b.js → WEIGHT_GIRLS.zscore.yearly-10466197.js} +0 -0
- /package/build/{constants-8d1ab6b3.js → constants-1a96dc83.js} +0 -0
- /package/build/{cookieHelper-3b665b4b.js → cookieHelper-10e61e77.js} +0 -0
- /package/build/{dataTransform-fd8e952f.js → dataTransform-e952e2a6.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-6dd7eda4.js → BMI_BOYS.percentile.monthly-0def0e7f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-e74785e0.js → BMI_BOYS.percentile.weekly-d9cacdb3.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-99e25311.js → BMI_BOYS.percentile.yearly-736e654f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-2d627ad0.js → BMI_BOYS.zscore.monthly-22409178.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-a09067d0.js → BMI_BOYS.zscore.weekly-4161e89c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-659610e9.js → BMI_BOYS.zscore.yearly-7b870f69.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-fc7ea529.js → BMI_GIRLS.percentile.monthly-1760e248.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-9f82ac12.js → BMI_GIRLS.percentile.weekly-a6809fee.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-7922630f.js → BMI_GIRLS.percentile.yearly-4514fd35.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-124db983.js → BMI_GIRLS.zscore.monthly-04fe5bf9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-2cd2ae10.js → BMI_GIRLS.zscore.weekly-0d5957b5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-b47e8355.js → BMI_GIRLS.zscore.yearly-705329fc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-0f849e49.js → HEAD CIRCUM_BOYS.percentile.monthly-d5fb461b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-311179a8.js → HEAD CIRCUM_BOYS.percentile.weekly-13620bc6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e7f94da6.js → HEAD CIRCUM_BOYS.percentile.yearly-5f34ec92.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-cc901cdc.js → HEAD CIRCUM_BOYS.zscore.monthly-1ad9297e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-409787c4.js → HEAD CIRCUM_BOYS.zscore.weekly-b2bdca3a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e15b53db.js → HEAD CIRCUM_BOYS.zscore.yearly-1baac315.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-2ffb92f7.js → HEAD CIRCUM_GIRLS.percentile.monthly-586b16b0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5bed76e7.js → HEAD CIRCUM_GIRLS.percentile.weekly-0bae6048.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-2d9a9cf7.js → HEAD CIRCUM_GIRLS.percentile.yearly-8fac6642.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c6a8c417.js → HEAD CIRCUM_GIRLS.zscore.monthly-25a08afc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a5247bc4.js → HEAD CIRCUM_GIRLS.zscore.weekly-23331b57.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-491daf49.js → HEAD CIRCUM_GIRLS.zscore.yearly-b29c6ebf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-089b50f8.js → HEIGHT_BOYS.percentile.monthly-1dbf1260.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-493ab21a.js → HEIGHT_BOYS.percentile.weekly-d25d7b8f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f93e11b9.js → HEIGHT_BOYS.percentile.yearly-1291131e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a102b290.js → HEIGHT_BOYS.zscore.monthly-51960331.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-8ddbacca.js → HEIGHT_BOYS.zscore.weekly-7cea1500.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-eaaf50be.js → HEIGHT_BOYS.zscore.yearly-f0a1e6ce.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0c718740.js → HEIGHT_GIRLS.percentile.monthly-bb5ef5bb.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f64f9559.js → HEIGHT_GIRLS.percentile.weekly-8e15eef2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-62836edf.js → HEIGHT_GIRLS.percentile.yearly-6645f1ca.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-efd7fe65.js → HEIGHT_GIRLS.zscore.monthly-dc5bf23c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0b4c13ad.js → HEIGHT_GIRLS.zscore.weekly-3f88b5a2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-dbb1c464.js → HEIGHT_GIRLS.zscore.yearly-bdcbd5e0.js} +0 -0
- /package/build/esm/{Onboarding-5209aa8f.js → Onboarding-17999cc6.js} +0 -0
- /package/build/esm/{Visible-7fde197c.js → Visible-1cd4fcba.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-8d5f17eb.js → WEIGHT_BOYS.percentile.monthly-d038d535.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-f0d6bcdc.js → WEIGHT_BOYS.percentile.weekly-43211215.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-004d7884.js → WEIGHT_BOYS.percentile.yearly-c78ab472.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-5cc93e2d.js → WEIGHT_BOYS.zscore.monthly-e0a44abc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5bcc179a.js → WEIGHT_BOYS.zscore.weekly-b0383e3c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-aa793430.js → WEIGHT_BOYS.zscore.yearly-56dacf94.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-0ce0af1e.js → WEIGHT_GIRLS.percentile.monthly-942387b6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-43dcc38a.js → WEIGHT_GIRLS.percentile.weekly-aae75a15.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9a7ad2e7.js → WEIGHT_GIRLS.percentile.yearly-eb71ec38.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-fb016308.js → WEIGHT_GIRLS.zscore.monthly-8b5c3c06.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-72cb7146.js → WEIGHT_GIRLS.zscore.weekly-0795a68b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-7a1353ef.js → WEIGHT_GIRLS.zscore.yearly-fe7f2f80.js} +0 -0
- /package/build/esm/{constants-22665a95.js → constants-f6df1426.js} +0 -0
- /package/build/esm/{cookieHelper-c441527b.js → cookieHelper-243ea413.js} +0 -0
- /package/build/esm/{dataTransform-3cdbcc1f.js → dataTransform-36b31b51.js} +0 -0
- /package/build/esm/{index-8ce09b49.js → index-171cb1de.js} +0 -0
- /package/build/esm/{isProduction-58e08b60.js → isProduction-f9284e0d.js} +0 -0
- /package/build/esm/{localizeNumberFormat-34a914cf.js → localizeNumberFormat-891fddd2.js} +0 -0
- /package/build/esm/{normalizeLink-0ac71571.js → normalizeLink-5c3d96d1.js} +0 -0
- /package/build/esm/{theme-808a1a77.js → theme-72c4ec13.js} +0 -0
- /package/build/esm/{translationsContext-616c8791.js → translationsContext-c72ee6fa.js} +0 -0
- /package/build/esm/{tslib.es6-f7c415e8.js → tslib.es6-d8c90a45.js} +0 -0
- /package/build/esm/{types-33ff47e6.js → types-ab2c0f6a.js} +0 -0
- /package/build/esm/{useIsInit-6466d212.js → useIsInit-392f39dd.js} +0 -0
- /package/build/esm/{useOutsideClick-f36ba482.js → useOutsideClick-1cd3fb0a.js} +0 -0
- /package/build/esm/{useScrollbarSize-ac53783f.js → useScrollbarSize-8565e51f.js} +0 -0
- /package/build/esm/{useUniqueId-4a392949.js → useUniqueId-3c703513.js} +0 -0
- /package/build/{index-4cc291d1.js → index-b1647eb2.js} +0 -0
- /package/build/{isProduction-85cdc0ab.js → isProduction-a9b4a078.js} +0 -0
- /package/build/{localizeNumberFormat-9735f40b.js → localizeNumberFormat-5ef4e484.js} +0 -0
- /package/build/{normalizeLink-7ef1495e.js → normalizeLink-50c64691.js} +0 -0
- /package/build/{theme-9e0d88e8.js → theme-d4afee80.js} +0 -0
- /package/build/{translationsContext-dc043578.js → translationsContext-c1c628a8.js} +0 -0
- /package/build/{tslib.es6-e14619bf.js → tslib.es6-049409d2.js} +0 -0
- /package/build/{types-2dae143e.js → types-5d92c754.js} +0 -0
- /package/build/{useIsInit-c65601fb.js → useIsInit-46fc5c7c.js} +0 -0
- /package/build/{useOutsideClick-ac254274.js → useOutsideClick-57e6f5a8.js} +0 -0
- /package/build/{useScrollbarSize-251e49d0.js → useScrollbarSize-ed1b21ab.js} +0 -0
- /package/build/{useUniqueId-76b34caf.js → useUniqueId-4c637d8e.js} +0 -0
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./tslib.es6-f7c415e8.js";import t,{useState as i,useCallback as o,useMemo as a,useEffect as n,useRef as s,useReducer as r}from"react";import{c as l,d as c}from"./index-4d5c0771.js";import{g as d,s as h,d as u}from"./cookieHelper-c441527b.js";import{u as p}from"./useTranslations-3e881db9.js";import g from"lodash/debounce";import{I as m,L as C,a as f}from"./constants-22665a95.js";import{I as v}from"./index-531008d2.js";import y,{createGlobalStyle as b}from"styled-components";import{T as w}from"./index-c4680d39.js";import{t as E}from"./theme-808a1a77.js";import{M as L}from"./utils-d5e5e420.js";import x from"react-loading-skeleton";import S from"lodash/shuffle";import{a as k}from"./useOutsideClick-f36ba482.js";import{P as O}from"./paths-8ff149e9.js";import j from"string-format";const I=y.div``,M=y.div`
|
|
2
|
-
--searchbar-z-index: 305;
|
|
3
|
-
&[data-is-modal='true'] {
|
|
4
|
-
position: fixed;
|
|
5
|
-
left: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
top: 0;
|
|
8
|
-
height: var(--mobile-care-searchbar-height, 100%);
|
|
9
|
-
overflow-y: auto;
|
|
10
|
-
-webkit-overflow-scrolling: touch;
|
|
11
|
-
background-color: white;
|
|
12
|
-
z-index: var(--searchbar-z-index);
|
|
13
|
-
}
|
|
14
|
-
`,R=y.section``,T=y.input`
|
|
15
|
-
position: fixed;
|
|
16
|
-
left: -100%;
|
|
17
|
-
top: -100%;
|
|
18
|
-
`,A=y(v)`
|
|
19
|
-
#booking-search-bar & {
|
|
20
|
-
input {
|
|
21
|
-
font-size: 16px;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
`,F=b`
|
|
25
|
-
.care-popup-open {
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
position: fixed;
|
|
28
|
-
&::before {
|
|
29
|
-
content: '';
|
|
30
|
-
inset: 0;
|
|
31
|
-
position: absolute;
|
|
32
|
-
background-color: white;
|
|
33
|
-
min-height: 100vh;
|
|
34
|
-
min-width: 100vw;
|
|
35
|
-
z-index: 2;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
`,N=({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M18 6L6 18",stroke:i||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M6 6L18 18",stroke:i||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),P=({className:e,color:i})=>t.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},t.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:i||"currentColor"})),B=({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.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:i||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M20 20L16 16",stroke:i||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),V=({width:e,height:i})=>t.createElement("svg",{width:e||30,height:i||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),H=y.li`
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
gap: 12px;
|
|
42
|
-
padding: 8px 16px;
|
|
43
|
-
|
|
44
|
-
> :first-child {
|
|
45
|
-
flex: 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
> :nth-child(2) {
|
|
49
|
-
flex: 6;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
& + li::before {
|
|
53
|
-
content: '';
|
|
54
|
-
position: absolute;
|
|
55
|
-
left: 18px;
|
|
56
|
-
right: 18px;
|
|
57
|
-
top: 0;
|
|
58
|
-
height: 1px;
|
|
59
|
-
background-color: ${E.colors.neutral100};
|
|
60
|
-
}
|
|
61
|
-
`,$=y.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
position: absolute;
|
|
64
|
-
top: 48px;
|
|
65
|
-
min-width: 100%;
|
|
66
|
-
box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
|
|
67
|
-
0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
|
|
68
|
-
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
69
|
-
border-radius: ${e=>e.theme.borderRadius};
|
|
70
|
-
background-color: white;
|
|
71
|
-
z-index: 30;
|
|
72
|
-
|
|
73
|
-
${L.tdDown} {
|
|
74
|
-
position: relative;
|
|
75
|
-
top: 0;
|
|
76
|
-
box-shadow: initial;
|
|
77
|
-
}
|
|
78
|
-
`,z=y.ul`
|
|
79
|
-
width: 100%;
|
|
80
|
-
max-height: 600px;
|
|
81
|
-
overflow-y: auto;
|
|
82
|
-
`,D=y(P)`
|
|
83
|
-
width: 12px;
|
|
84
|
-
height: 18px;
|
|
85
|
-
`,_=y.li`
|
|
86
|
-
position: relative;
|
|
87
|
-
cursor: pointer;
|
|
88
|
-
padding: 12px 18px;
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
gap: 14px;
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
|
|
94
|
-
${({isSelected:e})=>e&&"\n &::after {\n content: url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\");\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n "}
|
|
95
|
-
|
|
96
|
-
& + li::before {
|
|
97
|
-
content: '';
|
|
98
|
-
position: absolute;
|
|
99
|
-
left: 18px;
|
|
100
|
-
right: 18px;
|
|
101
|
-
top: 0;
|
|
102
|
-
height: 1px;
|
|
103
|
-
background-color: ${E.colors.neutral100};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&:not([data-is-denied='true']):hover {
|
|
107
|
-
background-color: ${E.colors.neutral50};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&:last-child:hover {
|
|
111
|
-
border-bottom-right-radius: 6px;
|
|
112
|
-
border-bottom-left-radius: 6px;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&:first-child:hover {
|
|
116
|
-
border-top-right-radius: 6px;
|
|
117
|
-
border-top-left-radius: 6px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&[data-is-denied='true'] {
|
|
121
|
-
cursor: not-allowed;
|
|
122
|
-
}
|
|
123
|
-
`,K=y((({count:e,className:i})=>t.createElement(t.Fragment,null,[...Array(e)].map(((e,o)=>t.createElement(H,{className:i,key:o},t.createElement(x,{count:1,height:32}),t.createElement(x,{count:1,height:24})))))))`
|
|
124
|
-
&:first-child {
|
|
125
|
-
padding-top: 18px;
|
|
126
|
-
}
|
|
127
|
-
`,Z=({cities:e,isLoading:i,onLocationClick:o,selectedLocation:a})=>{const{t:n,locale:s}=p();return t.createElement($,{"data-testid":"location-search-results"},t.createElement(z,null,i?t.createElement(K,{count:5}):!e||e.length<1?t.createElement(t.Fragment,null,t.createElement(_,{"data-is-denied":"true"},t.createElement(w,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):t.createElement(t.Fragment,null,t.createElement(_,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;o&&o({name:n("booking.searchBar.allLocations"),id:m,slug:null===(e=C[s])||void 0===e?void 0:e.ALL})}},t.createElement(D,{color:E.colors.neutral400}),t.createElement(w,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>t.createElement(_,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),o&&o(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==a?void 0:a.id)===e.id},t.createElement(D,{color:E.colors.neutral400}),t.createElement(w,{size:"md"},e.name)))))))},G="TYPE_CHARACTER",U="REMOVE_CHARACTER",Q="REMOVE_ALL",Y="REMOVE_LAST_VISIBLE_NODE",q="PAUSE_FOR",W="CHANGE_DELETE_SPEED",J="CHANGE_DELAY",X="PASTE_STRING",ee=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,te="TEXT_NODE";class ie{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(q,{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:i}=this.options||{},o="function"==typeof i?i(e):e.split("");this.typeCharacters(o,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(X,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(Q,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(W,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(J,{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(U);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(G,{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(U)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:o}=this.options;return o?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,o)=>{const a={eventName:e,eventArgs:t||{}};return this.state[o]=i?[a,...this.state[o]]:[...this.state[o],a],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 i=[...this.state.eventQueue],o=i.shift();let a=0;if(a=o.eventName===Y||o.eventName===U?"natural"===this.options.deleteSpeed?ee(40,80):this.options.deleteSpeed:"natural"===this.options.delay?ee(120,160):this.options.delay,t<=a)return;const{eventName:n,eventArgs:s}=o;switch(n){case X:case G:{const{character:e}=s,t=document.createTextNode(e);let i=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(i=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:te,character:e,node:i}];break}case U:i.unshift({eventName:Y,eventArgs:{removingCharacterNode:!0}});break;case q:{const{ms:e}=o.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case Q:{const{visibleNodes:e}=this.state,{speed:t}=s,o=[];t&&o.push({eventName:W,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)o.push({eventName:Y,eventArgs:{removingCharacterNode:!1}});t&&o.push({eventName:W,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...o);break}case Y: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 W:this.options.deleteSpeed=o.eventArgs.speed;break;case J:this.options.delay=o.eventArgs.delay}this.options.loop&&(o.eventName===Y||o.eventArgs&&o.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,o])),this.state.eventQueue=i,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(Q,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function oe({inputRef:e,wrapperRef:t,disabled:i}){const{t:o,locale:s}=p(),r=a((()=>{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"),S(e).map((e=>o(e)))}),[o,s]);function l(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:t&&t.current&&t.current.querySelector("input")||null}n((()=>{if(i)return;const e=d();e&&(e.placeholder="",new ie({strings:r,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:l,onRemoveNode:c}))}),[e,t])}const ae=y.div`
|
|
128
|
-
user-select: none;
|
|
129
|
-
input {
|
|
130
|
-
pointer-events: none;
|
|
131
|
-
background-color: white;
|
|
132
|
-
}
|
|
133
|
-
`;function ne({focused:e,value:i="",onClick:o,trackingAttributes:n,inputSearchPlaceholder:r}){const{t:l}=p(),c=s(null);oe({wrapperRef:c,disabled:!!r});const d=a((()=>n?{"data-event-category":n.dataEventCategory,"data-event-action":n.dataEventAction,"data-event-label":n.dataEventLabel}:{}),[n]);return t.createElement(ae,Object.assign({onClick:()=>o&&o(),ref:c},d),t.createElement(A,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:t.createElement(B,{color:E.colors.gray400}),placeholder:l("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}const se=y.header`
|
|
134
|
-
display: flex;
|
|
135
|
-
height: 64px;
|
|
136
|
-
align-items: center;
|
|
137
|
-
justify-content: space-between;
|
|
138
|
-
margin: 0 auto;
|
|
139
|
-
position: sticky;
|
|
140
|
-
z-index: 99;
|
|
141
|
-
background-color: white;
|
|
142
|
-
top: 0;
|
|
143
|
-
left: 0;
|
|
144
|
-
`,re=y.div`
|
|
145
|
-
display: inline-flex;
|
|
146
|
-
flex: 1;
|
|
147
|
-
justify-content: flex-end;
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
text-decoration: underline;
|
|
150
|
-
`,le=y.div`
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
margin-left: 16px;
|
|
154
|
-
cursor: pointer;
|
|
155
|
-
`,ce=y.div`
|
|
156
|
-
width: 100%;
|
|
157
|
-
margin-left: 24px;
|
|
158
|
-
`,de=y(w)`
|
|
159
|
-
color: ${E.colors.secondaryDark};
|
|
160
|
-
text-align: start;
|
|
161
|
-
`,he=({className:e,onLeftClick:i,headingText:o,onRightClick:a,iconLeft:n,textRight:s})=>t.createElement(se,{className:e},t.createElement(le,{onClick:i},n||t.createElement(N,{color:E.colors.gray800})),t.createElement(ce,null,t.createElement(de,{size:"md",type:"bold"},o)),t.createElement(re,{onClick:a},s&&t.createElement("p",null,s))),ue={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},pe={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 ge;function me(e){const{selectedLocation:t,searchLocationKeywords:i}=e;return t&&i!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function Ce(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case ge.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case ge.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:me(Object.assign(Object.assign({},e),{focused:"none"}));case ge.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case ge.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===f&&(t.searchLocationKeywords=""),t}case ge.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?me(o):o;case ge.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case ge.ChangeInputSearch:{const i=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:i,isLoadingSearchResults:i.trim().length>ue[e.locale]})}case ge.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ge.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case ge.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case ge.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ge.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case ge.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case ge.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case ge.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case ge.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case ge.FetchSearchResultsComplete:{const i=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(i.initialSearchResults=t.payload),i}case ge.FetchCitiesByGeoIpComplete:{let{cities:i}=t.payload;const{default:o}=t.payload;i=i.filter((e=>e.id!==o.id)),i.unshift(o),e.initialSelectedCity&&!i.find((t=>t.id===e.initialSelectedCity.id))&&i.unshift(e.initialSelectedCity);const a=Object.assign(Object.assign({},e),{defaultCity:o,initialCities:i,cities:i});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(a.selectedLocation=o,a.searchLocationKeywords=o.name),a}case ge.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case ge.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case ge.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case ge.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case ge.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case ge.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case ge.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case ge.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case ge.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"}(ge||(ge={}));const fe=y.div`
|
|
162
|
-
display: flex;
|
|
163
|
-
gap: 16px;
|
|
164
|
-
${L.mbDown} {
|
|
165
|
-
flex-direction: column;
|
|
166
|
-
padding: 14px;
|
|
167
|
-
background-color: ${E.colors.primary50};
|
|
168
|
-
|
|
169
|
-
input {
|
|
170
|
-
filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))
|
|
171
|
-
drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))
|
|
172
|
-
drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
input {
|
|
177
|
-
background-color: white;
|
|
178
|
-
}
|
|
179
|
-
`,ve=y.div`
|
|
180
|
-
position: relative;
|
|
181
|
-
`,ye=y(ve)`
|
|
182
|
-
flex: 1;
|
|
183
|
-
`,be=y(ve)`
|
|
184
|
-
flex: 2;
|
|
185
|
-
`,we=y((({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),t.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:i||"currentColor"}))))`
|
|
186
|
-
display: none;
|
|
187
|
-
&.shown {
|
|
188
|
-
display: block;
|
|
189
|
-
}
|
|
190
|
-
`,Ee=()=>t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.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"})),Le=y.button`
|
|
191
|
-
min-height: 100%;
|
|
192
|
-
border-radius: 6px;
|
|
193
|
-
background-color: ${({theme:e})=>e.colors.primaryBase};
|
|
194
|
-
display: flex;
|
|
195
|
-
justify-content: center;
|
|
196
|
-
align-items: center;
|
|
197
|
-
gap: 11px;
|
|
198
|
-
cursor: pointer;
|
|
199
|
-
flex: 0.3;
|
|
200
|
-
|
|
201
|
-
${L.mbDown} {
|
|
202
|
-
--margin: 16px;
|
|
203
|
-
min-height: 44px;
|
|
204
|
-
margin: var(--margin);
|
|
205
|
-
width: calc(100% - var(--margin) * 2);
|
|
206
|
-
position: absolute;
|
|
207
|
-
bottom: 0;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
&:hover {
|
|
211
|
-
background-color: ${({theme:e})=>e.colors.primaryHover};
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
&:active {
|
|
215
|
-
background-color: ${({theme:e})=>e.colors.primaryActive};
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
&:focus-visible {
|
|
219
|
-
outline: 1px solid black;
|
|
220
|
-
}
|
|
221
|
-
`,xe=y(w)`
|
|
222
|
-
font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
|
|
223
|
-
`,Se=({onClick:e})=>{const{t:i}=p(),o=i("booking.searchBar.searchButton");return t.createElement(Le,{onClick:e,title:o},t.createElement(Ee,null),t.createElement(xe,{size:"s3",color:"white"},o))};function ke({isMobile:e,state:i,dispatch:n,debouncedFetchCitiesByKeyword:r,debouncedFetchSearchResults:l,focusLocationInput:c,focusSearchInput:d,renderLocationResults:h,renderSearchResults:u,locationTrackingAttributes:g,trackingAttributes:m,onSearch:C,initalSearchValue:v}){const y=s(null),b=s(null),{focused:w,searchLocationKeywords:L,geoLocationPermission:x,selectedLocation:S,searchKeywords:O,inputSearchPlaceholder:j}=i,{t:I}=p();oe({wrapperRef:b,disabled:!!j}),k(y,(()=>{e||n({type:ge.ClickOutsideInputLocation})})),k(b,(()=>{e||n({type:ge.ClickOutsideInputSearch})}));const M=a((()=>"granted"===x&&(null==S?void 0:S.id)===f?E.colors.primaryBase:E.colors.gray400),[x,S]),R=o((function(e){n({type:ge.ChangeInputSearch,payload:e}),"function"!=typeof C&&(e.trim().length>ue[i.locale]||v?l(e.trim(),i):(l.cancel(),n({type:ge.DisplayInitialSearchResults})))}),[n,i]),T=o((function(e){n({type:ge.ChangeInputLocation,payload:e}),e.trim().length>ue[i.locale]?r(e.trim()):(r.cancel(),n({type:ge.DisplayInitialCities}))}),[r,n]);return t.createElement(fe,null,t.createElement(ye,{ref:y},t.createElement(A,{inputClassName:"location"===w?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:t.createElement(P,{className:"location-pin-icon",color:M}),actionIcon:t.createElement(we,{color:E.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){n({type:ge.ClearInputLocation}),r.cancel(),c()},value:L,onChange:T,onFocus:()=>n({type:ge.FocusInputLocation}),size:"md",trackingAttributes:g}),!e&&h()),t.createElement(be,{ref:b},t.createElement(A,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:t.createElement(we,{color:E.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){n({type:ge.ClearInputSearch}),l.cancel(),l("",i),d()},value:O,onChange:R,onFocus:()=>n({type:ge.FocusInputSearch}),inputClassName:"search"===w?"focused":void 0,size:"md",trackingAttributes:m,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&C&&C({cityId:i.selectedLocation.id,keyword:O})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&u()),i.autoCompleteDisabled&&!i.isMobile&&t.createElement(Se,{onClick:()=>{C({cityId:i.selectedLocation.id,keyword:O})}}))}const Oe=()=>t.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},t.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"})),je=()=>t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.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"})),Ie=()=>t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},t.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"})),Me=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},t.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"})),Re=y.header`
|
|
224
|
-
display: flex;
|
|
225
|
-
justify-content: space-between;
|
|
226
|
-
padding: 12px 24px;
|
|
227
|
-
background-color: ${E.colors.neutral50};
|
|
228
|
-
box-shadow: inset 0px 1px 0px #e4e8ec;
|
|
229
|
-
`,Te=y.div`
|
|
230
|
-
display: grid;
|
|
231
|
-
flex: 2;
|
|
232
|
-
align-items: center;
|
|
233
|
-
gap: 16px;
|
|
234
|
-
grid-template-columns: 16px 1fr;
|
|
235
|
-
`,Ae=y.p`
|
|
236
|
-
color: ${E.colors.neutral800};
|
|
237
|
-
font-size: 14px;
|
|
238
|
-
font-weight: ${E.sizes.fwSemiBold};
|
|
239
|
-
letter-spacing: -0.2px;
|
|
240
|
-
line-height: 22px;
|
|
241
|
-
`,Fe=y.button`
|
|
242
|
-
flex: 1;
|
|
243
|
-
cursor: pointer;
|
|
244
|
-
text-align: end;
|
|
245
|
-
`,Ne=y.section`
|
|
246
|
-
padding: 12px 16px;
|
|
247
|
-
--rowGap: 16px;
|
|
248
|
-
--graphicSize: 32px;
|
|
249
|
-
|
|
250
|
-
${L.tdUp} {
|
|
251
|
-
--rowGap: 8px;
|
|
252
|
-
}
|
|
253
|
-
`,Pe=y.ul`
|
|
254
|
-
--gap: 16px;
|
|
255
|
-
${L.tdUp} {
|
|
256
|
-
--gap: 8px;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
display: grid;
|
|
260
|
-
overflow: hidden;
|
|
261
|
-
gap: var(--gap);
|
|
262
|
-
transition: max-height 0.8s ease-out;
|
|
263
|
-
|
|
264
|
-
${({isMore:e})=>e&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}
|
|
265
|
-
|
|
266
|
-
${({isShown:e})=>e&&"\n max-height: 600px;\n "}
|
|
267
|
-
|
|
268
|
-
@media (prefers-reduced-motion) {
|
|
269
|
-
transition: none;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
${L.tdUp} {
|
|
273
|
-
grid-template-columns: 1fr 1fr;
|
|
274
|
-
} ;
|
|
275
|
-
`,Be=y(w)`
|
|
276
|
-
margin-top: 12px;
|
|
277
|
-
margin-bottom: 8px;
|
|
278
|
-
cursor: pointer;
|
|
279
|
-
text-align: start;
|
|
280
|
-
text-transform: capitalize;
|
|
281
|
-
`,Ve=y.li`
|
|
282
|
-
display: flex;
|
|
283
|
-
align-items: center;
|
|
284
|
-
gap: var(--rowGap);
|
|
285
|
-
cursor: pointer;
|
|
286
|
-
&.not-nav {
|
|
287
|
-
cursor: default;
|
|
288
|
-
}
|
|
289
|
-
`,He=y.div`
|
|
290
|
-
--wrapper-size: var(--graphicSize);
|
|
291
|
-
border-radius: calc(var(--wrapper-size) / 2);
|
|
292
|
-
background-color: var(--neutral50);
|
|
293
|
-
width: var(--wrapper-size);
|
|
294
|
-
height: var(--wrapper-size);
|
|
295
|
-
aspect-ratio: 1/1;
|
|
296
|
-
overflow: hidden;
|
|
297
|
-
|
|
298
|
-
${({type:e})=>e&&"doctors"===e&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}
|
|
299
|
-
|
|
300
|
-
img {
|
|
301
|
-
width: var(--graphicSize);
|
|
302
|
-
height: var(--graphicSize);
|
|
303
|
-
${({type:e})=>e&&"doctors"===e?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
&:focus-visible {
|
|
307
|
-
outline: 1px solid ${E.colors.gray600};
|
|
308
|
-
}
|
|
309
|
-
`,$e=y(w)`
|
|
310
|
-
line-height: 22px;
|
|
311
|
-
letter-spacing: -0.2px;
|
|
312
|
-
|
|
313
|
-
${L.tdUp} {
|
|
314
|
-
&[data-size='p3'] {
|
|
315
|
-
font-size: 14px;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
`,ze=y.figure`
|
|
319
|
-
max-width: var(--graphicSize);
|
|
320
|
-
min-width: var(--graphicSize);
|
|
321
|
-
`,De=y.svg`
|
|
322
|
-
margin: 0 auto;
|
|
323
|
-
display: block;
|
|
324
|
-
`,_e=y.div`
|
|
325
|
-
display: grid;
|
|
326
|
-
place-items: center;
|
|
327
|
-
`,Ke={doctors:({width:e,height:i})=>t.createElement("svg",{width:e||32,height:i||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{clipPath:"url(#clip0_14712_400114)"},t.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),t.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"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_14712_400114"},t.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:i})=>t.createElement("svg",{width:e||30,height:i||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),t.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"}))},Ze=({type:e,item:i,imageUrl:o,className:n,onClickItem:s})=>{const r=a((()=>{const i=Ke[e]||V;return t.createElement(i,{width:32,height:"services"===e?32:24})}),[e]);return t.createElement(Ve,{onClick:()=>s&&s(i),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(i)},tabIndex:0,role:"button",className:n},t.createElement(ze,null,"hospitals"===e?t.createElement(De,{width:"12",height:"16",viewBox:"0 0 12 16"},t.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"})):t.createElement(He,{type:e},o?t.createElement("img",{src:o,width:32,height:"services"===e?32:24,loading:"lazy"}):r)),t.createElement($e,{color:E.colors.gray800,size:"p3"},i.name))},Ge=({type:e,data:o,state:n,dispatch:s,itemsToShow:r,itemsToShowDesktop:l,isMobile:c,isLoading:d,keyword:h,isNavResultItem:u})=>{const[g,m]=i(!1),{t:f,locale:v}=p(),{selectedLocation:y,searchKeywords:b}=n,L=a((()=>C[v]),[v]),S="ms-MY"===v,k=a((()=>({doctors:{name:f("booking.searchPopup.doctors"),icon:t.createElement(Oe,null),slug:L.DOCTOR},services:{name:f("booking.searchPopup.services"),icon:t.createElement(je,null),slug:L.SERVICE},hospitals:{name:f("booking.searchPopup.hospitals"),icon:t.createElement(Ie,null),slug:L.HOSPITAL},specialties:{name:f("booking.searchPopup.specialties"),icon:t.createElement(Me,null),slug:L.SPECIALTIES}})),[e,L]),O=a((()=>k[e].slug),[k]),j=c?r:l;function I(t){let i="";switch(e){case"specialties":i=`/${y.slug}/${k.doctors.slug}/${t.slug}`;break;case"services":i=`/${y.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:ge.SelectSearchResult,payload:{name:t.name,url:i}})}function M(i){return t.createElement(Ze,{key:i.id,item:i,type:e,imageUrl:i.logo||i.avatar||i.thumbnail,className:u?"":"not-nav",onClickItem:u&&I})}return t.createElement("section",null,t.createElement(Re,null,t.createElement(Te,null,k[e].icon,t.createElement(Ae,null,k[e].name)),(h.trim().length<=ue[v]||S)&&t.createElement(Fe,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${y.slug}/${O}`}t&&s({type:ge.NavigateTo,payload:t})}},t.createElement(w,{size:"p3",color:E.colors.primaryBase},f("booking.searchPopup.seeAll")))),(d||o&&o.length>0)&&t.createElement(Ne,null,t.createElement(Pe,null,d&&Array(2).fill(void 0).map(((i,o)=>t.createElement(Ve,{key:e+"loading"+o},t.createElement(ze,null,t.createElement(_e,null,t.createElement(x,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),t.createElement(x,{width:120,height:24})))),!d&&o&&o.length>0&&o.slice(0,j).map(M)),t.createElement(Pe,{isShown:g,isMore:!0},o.slice(j,-1).map(M)),"specialties"===e&&j<o.length&&!d&&t.createElement("button",{onClick:()=>m(!g)},t.createElement(Be,{size:"p3",color:E.colors.primaryBase},f(g?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<o.length||S)&&!d&&h.trim().length>ue[v]&&t.createElement("button",{onClick:function(){const{slug:t}=k[e],i=`/${y.slug}/${t}?q=${b}`;s({type:ge.NavigateTo,payload:i})}},t.createElement(Be,{size:"p3",color:E.colors.primaryBase},f(`booking.searchPopup.searchIn.${e}`,{name:h})))),!d&&0===(null==o?void 0:o.length)&&t.createElement(Ne,null,t.createElement(w,{size:"sm",color:E.colors.gray400},f("booking.searchBar.noResults"))))},Ue=y.section`
|
|
328
|
-
background-color: white;
|
|
329
|
-
border-radius: 4px;
|
|
330
|
-
position: absolute;
|
|
331
|
-
width: 100%;
|
|
332
|
-
z-index: 30;
|
|
333
|
-
|
|
334
|
-
${L.tdUp} {
|
|
335
|
-
box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
|
|
336
|
-
0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
|
|
337
|
-
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
338
|
-
}
|
|
339
|
-
`,Qe=({data:e,state:i,dispatch:o,isMobile:a,isLoading:n,keyword:s,hideResults:r,isNavResultItem:l})=>t.createElement(Ue,null,e&&e.map((e=>r&&r.includes(e.type)?t.createElement(t.Fragment,null):t.createElement(Ge,{type:e.type,state:i,dispatch:o,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:a,isLoading:n,keyword:s,isNavResultItem:l})))),Ye=(e,t,i)=>j(e,Object.assign(Object.assign({},t),{domain:c[i||"en-PH"]}));const qe=({isMobile:c,careApiDomain:v,geoLocationPermission:y,geoLocationCoordinates:b,initialSelectedCity:w,initialSearchValue:E="",careFrontDomain:L="/care",isDebug:x=!1,askForGeolocationPermission:S=!1,gaTrackingSearchBar:k,gaTrackingLocationSearch:j,autoCompleteDisabled:A=!1,inputSearchPlaceholder:N="",isOptionAllLocation:P=!1,hideResults:B=[],isNavResultItem:V=!0,routerPush:H,onGeoLocationPermissionChange:$,onSearch:z,onChangeLocation:D})=>{const{t:_,locale:K}=p(),G=s(null),U=s(null),[Q,Y]=i(void 0),[q,W]=i(!1),{geoLocationPermission:J,geoLocationCoordinates:X,requestGeoLocation:ee}=function(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(d(l))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=d(l);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),r=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};h(l,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{u(l),t("denied")}))}),[]);return a((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:r})),[e,n])}(),[te,ie]=r(Ce,pe,(e=>Object.assign(Object.assign({},e),{isDebug:x,isMobile:c,geoLocationPermission:y||J||"unset",geoLocationCoordinates:b||X||null,searchKeywords:E,initialSelectedCity:w||null,selectedLocation:w||e.selectedLocation||null,searchLocationKeywords:(null==w?void 0:w.name)||e.searchLocationKeywords,autoCompleteDisabled:A,inputSearchPlaceholder:N,locale:K}))),{navigateTo:oe,focused:ae,isLoadingCities:se,cities:re,searchKeywords:le,geoLocationPermission:ce,selectedLocation:de,initialSelectedCity:me,defaultCity:fe,searchResults:ve,isLoadingSearchResults:ye,isMobileModalOpened:be,inputSearchPlaceholder:we}=te,{fetchCitiesByLocation:Ee,fetchCitiesByKeyword:Le,fetchSearchResults:xe}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(o,a={}){const n=`${t}${o}`;return e({type:ge.FetchCitiesStart}),fetch(Ye(n,a,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:ge.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const n={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[a(O.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(O.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const o=Object.assign({},t);if(i){const e=o.cities.map((e=>e.id));o.cities=o.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:ge.FetchCitiesByGeoIpComplete,payload:o})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(O.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:ge.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(o,a){const n=`${t}${O.GET_SEARCH_V2}`;e({type:ge.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:l}=a;let c="";if(!r||!s)return void e({type:ge.FetchSearchResultsFinish});r.id===f?l||(c=s.id):c=r.id===m?"":r.id;const d=(null==l?void 0:l.lat)||"",h=(null==l?void 0:l.lng)||"";return fetch(Ye(n,{domain:t,searchType:"global",keyword:o.trim().length>ue[i]?o.trim():"",city:c===f?"":c,lat:d,lng:h},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:ge.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:ge.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:ie,locale:K,careApiDomain:v}),Oe=a((()=>{var e;return{id:f,name:_("booking.searchBar.currentLocation"),slug:null===(e=C[K])||void 0===e?void 0:e.CURRENT}}),[_,K]),je=a((()=>g(Le,400)),[Le]),Ie=a((()=>g(xe,400)),[xe]);n((()=>{""!==E&&E!==te.searchKeywords&&ie({type:ge.UpdateInitialSearchValue,payload:E})}),[E]),n((()=>{S&&(null==de?void 0:de.id)===f&&"unset"===ce&&ee()}),[S,de,ce]),n((()=>{y||ce===J||("granted"===J&&X?ie({type:ge.GrantGeoLocationPermission,payload:X}):"denied"===J&&ie({type:ge.DenyGeoLocationPermission}))}),[ce,J,X,y]),n((()=>{oe&&(H?H(oe):window.location.href=`${L}${oe}`)}),[oe]);const Me=o((function(){ie({type:ge.SelectCurrentLocation,payload:Oe})}),[_,ie]);n((()=>{var e;"denied"===ce||me||ie({type:ge.SelectLocation,payload:{name:_("booking.searchBar.allLocations"),id:m,slug:null===(e=C[K])||void 0===e?void 0:e.ALL}}),$&&$(ce,te.geoLocationCoordinates),c&&"granted"===ce&&de&&ie({type:ge.FocusInputSearch}),Ee({coordinates:te.geoLocationCoordinates})}),[ce]),n((()=>{de&&fe&&xe(te.searchKeywords,te)}),[de,fe]),n((()=>{N!==we&&ie({type:ge.SetInputSearchPlaceholder,payload:N})}),[N,we]),n((()=>{be?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[be]);const Re=o((function(e){"ms-MY"===K&&W(!0),ie({type:ge.SelectLocation,payload:e}),"ms-MY"!==K&&Fe(),D&&D(e)}),[_,ie]);function Te(){"ms-MY"===K&&W(!0),c&&"granted"!==te.geoLocationPermission?ee():(Me(),"ms-MY"!==K&&Fe())}function Ae(){var e;G.current&&(null===(e=G.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Fe(){var e;G.current&&(null===(e=G.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Ne(){ie({type:ge.CloseMobileModal})}function Pe(){return"location"!==ae?null:t.createElement(Z,{isLoading:se,cities:re,onLocationClick:Re,onCurrentLocationClick:Te,isLocationLoading:se,geoLocationPermission:ce,selectedLocation:de,isOptionAllLocation:P})}function Be(){return"search"!==ae?null:te.autoCompleteDisabled?c?t.createElement(Se,{onClick:()=>{z({cityId:te.selectedLocation.id,keyword:le}),Ne()}}):null:t.createElement(Qe,{data:ve,state:te,dispatch:ie,isMobile:!1,keyword:le,isLoading:ye,hideResults:B,isNavResultItem:V})}function Ve(){return t.createElement(ke,{isMobile:c,state:te,dispatch:ie,debouncedFetchCitiesByKeyword:je,debouncedFetchSearchResults:Ie,focusLocationInput:Ae,focusSearchInput:Fe,renderLocationResults:Pe,renderSearchResults:Be,trackingAttributes:k,locationTrackingAttributes:j,onSearch:z,initalSearchValue:E})}return n((()=>{if(window.visualViewport){const e=e=>{const t=e.target;Y(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[Y]),n((()=>{if(de&&q&&"ms-MY"===K){const e=`/${de.slug}/hospital`;ie({type:ge.NavigateTo,payload:e}),W(!1)}}),[q,K,de]),c?t.createElement(t.Fragment,null,t.createElement(F,null),t.createElement(T,{ref:U}),t.createElement(M,{id:"booking-search-bar",ref:G,"data-is-modal":c&&be,style:{"--mobile-care-searchbar-height":be&&Q?`${Q}px`:"100%"}},be?t.createElement(t.Fragment,null,t.createElement(R,null,t.createElement(he,{headingText:_("booking.searchBar.searchButton"),onLeftClick:Ne}),Ve()),Pe(),Be()):t.createElement(ne,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){U.current&&U.current.focus(),ie({type:ge.OpenMobileModal}),yield Promise.resolve(),G.current&&(null===(t=G.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ae,value:le,trackingAttributes:k,inputSearchPlaceholder:N}))):t.createElement(I,{id:"booking-search-bar",ref:G},Ve())};var We;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(We||(We={}));var Je=Object.freeze({__proto__:null,get RedirectType(){return We}});export{qe as B,Je as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./tslib.es6-f7c415e8.js";import{useState as t,useEffect as i,useCallback as e}from"react";import{a as l}from"./getDynamicHealthTool-d16f3b54.js";const n=n=>{const[r,a]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield l(n);a(o)}))}),[l,n]);const s=e((o=>{var t;return(null===(t=r.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[r]);return{allTools:r,getHealthToolLink:s}};export{n as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useContext as o,useMemo as a}from"react";import{T as r}from"./translationsContext-616c8791.js";import e from"string-format";function t(){const{values:t,locale:n}=o(r)||{locale:"en-PH"};return a((()=>({t:(o,a)=>t?t[o]?a?e(t[o]||o,a):t[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${n}`),a?e(o,a):o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:n})),[t,n])}export{t as u};
|