@hhgtech/hhg-components 1.27.68 → 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.
Files changed (365) hide show
  1. package/build/babyGrowth.js +3 -3
  2. package/build/cache.js +1 -1
  3. package/build/care/api/paths.d.ts +1 -0
  4. package/build/care/components/organisms/bookingSearchBarV2/constants.d.ts +4 -0
  5. package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +28 -0
  6. package/build/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +4 -0
  7. package/build/care/components/organisms/bookingSearchBarV2/reducer.d.ts +144 -0
  8. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +24 -0
  9. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.styled.d.ts +2 -0
  10. package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +16 -0
  11. package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.styled.d.ts +10 -0
  12. package/build/care/components/organisms/bookingSearchBarV2/searchResult/icons.d.ts +5 -0
  13. package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +20 -0
  14. package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.styled.d.ts +5 -0
  15. package/build/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +12 -0
  16. package/build/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.styled.d.ts +5 -0
  17. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +14 -0
  18. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +10 -0
  19. package/build/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +3 -0
  20. package/build/care/components/organisms/bookingSearchBarV2/searchTag/index.styled.d.ts +2 -0
  21. package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +9 -0
  22. package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +1 -0
  23. package/build/care/components/organisms/bookingSearchBarV2/types.d.ts +11 -0
  24. package/build/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +18 -0
  25. package/build/care/index.d.ts +1 -0
  26. package/build/care/interfaces/types.d.ts +7 -0
  27. package/build/care.js +1 -1
  28. package/build/components/atoms/icons/Search.d.ts +4 -0
  29. package/build/components/atoms/icons/index.d.ts +1 -0
  30. package/build/components/mantine/select/index.d.ts +4 -4
  31. package/build/components.js +1 -1
  32. package/build/constants.js +1 -1
  33. package/build/core-4d8e9583.js +1 -0
  34. package/build/{dataTransform-00da49c4.js → dataTransform-e29982c1.js} +1 -1
  35. package/build/ecom.js +1 -1
  36. package/build/esm/babyGrowth.js +10 -10
  37. package/build/esm/cache.js +1 -1
  38. package/build/esm/care/api/paths.d.ts +1 -0
  39. package/build/esm/care/components/organisms/bookingSearchBarV2/constants.d.ts +4 -0
  40. package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +28 -0
  41. package/build/esm/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +4 -0
  42. package/build/esm/care/components/organisms/bookingSearchBarV2/reducer.d.ts +144 -0
  43. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +24 -0
  44. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.styled.d.ts +2 -0
  45. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +16 -0
  46. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.styled.d.ts +10 -0
  47. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/icons.d.ts +5 -0
  48. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +20 -0
  49. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.styled.d.ts +5 -0
  50. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +12 -0
  51. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.styled.d.ts +5 -0
  52. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +14 -0
  53. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +10 -0
  54. package/build/esm/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +3 -0
  55. package/build/esm/care/components/organisms/bookingSearchBarV2/searchTag/index.styled.d.ts +2 -0
  56. package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +9 -0
  57. package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +1 -0
  58. package/build/esm/care/components/organisms/bookingSearchBarV2/types.d.ts +11 -0
  59. package/build/esm/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +18 -0
  60. package/build/esm/care/index.d.ts +1 -0
  61. package/build/esm/care/interfaces/types.d.ts +7 -0
  62. package/build/esm/care.js +1 -1
  63. package/build/esm/components/atoms/icons/Search.d.ts +4 -0
  64. package/build/esm/components/atoms/icons/index.d.ts +1 -0
  65. package/build/esm/components/mantine/select/index.d.ts +4 -4
  66. package/build/esm/components.js +1 -1
  67. package/build/esm/constants.js +1 -1
  68. package/build/esm/{core-bc36cf29.js → core-eee94d3a.js} +1 -1
  69. package/build/esm/{dataTransform-31c4c853.js → dataTransform-f3652b0a.js} +1 -1
  70. package/build/esm/ecom.js +1 -1
  71. package/build/esm/fixedBottomAdBlock-7554c3b8.js +1 -0
  72. package/build/esm/footer.js +1 -1
  73. package/build/esm/gAssets.js +1 -1
  74. package/build/esm/getDynamicHealthTool-7ca54784.js +1 -0
  75. package/build/esm/{getSocialList-d980085d.js → getSocialList-f6efdc64.js} +1 -1
  76. package/build/esm/hooks.js +1 -1
  77. package/build/esm/i18n/translationKeys.d.ts +1 -1
  78. package/build/esm/i18n-values/en-PH.js +1 -1
  79. package/build/esm/i18n-values/hi-IN.js +1 -1
  80. package/build/esm/i18n-values/id-ID.js +1 -1
  81. package/build/esm/i18n-values/km-KH.js +1 -1
  82. package/build/esm/i18n-values/ms-MY.js +1 -1
  83. package/build/esm/i18n-values/my-MM.js +1 -1
  84. package/build/esm/i18n-values/th-TH.js +1 -1
  85. package/build/esm/i18n-values/tl-PH.js +1 -1
  86. package/build/esm/i18n-values/vi-VN.js +1 -1
  87. package/build/esm/i18n-values/vi-VN_MB.js +1 -1
  88. package/build/esm/i18n-values/zh-TW.js +1 -1
  89. package/build/esm/i18n.js +1 -1
  90. package/build/esm/i18nV2.js +1 -1
  91. package/build/esm/{index-5404c828.js → index-136d0591.js} +33 -33
  92. package/build/esm/{index-bd8da8ac.js → index-14477fd7.js} +1 -1
  93. package/build/esm/{index-4d0ddb64.js → index-19124705.js} +1 -1
  94. package/build/esm/index-1ac00718.js +113 -0
  95. package/build/esm/{index-30cba675.js → index-20a67ed5.js} +1 -1
  96. package/build/esm/{index-661133f9.js → index-4b6c2c38.js} +1 -1
  97. package/build/esm/{index-331dcbca.js → index-56cd242a.js} +1 -1
  98. package/build/esm/{index-07c18c8e.js → index-56fa0620.js} +1 -1
  99. package/build/esm/{index-a4437a03.js → index-629208cc.js} +4 -4
  100. package/build/esm/index-6b2e40f9.js +1 -0
  101. package/build/esm/index-6c68b9ba.js +1 -0
  102. package/build/esm/index-6c96ac70.js +1 -0
  103. package/build/esm/{index-3f3203dc.js → index-83aad691.js} +1 -1
  104. package/build/esm/{index-a0141454.js → index-8fa42782.js} +1 -1
  105. package/build/esm/index-94da7d7a.js +177 -0
  106. package/build/esm/index-9ec58b78.js +1 -0
  107. package/build/esm/index-af57521e.js +1 -0
  108. package/build/esm/index-b87b3db3.js +1 -0
  109. package/build/esm/index-dbc51f01.js +1 -0
  110. package/build/esm/index-ef88b50a.js +1 -0
  111. package/build/esm/{index-e375e279.js → index-fce73e2c.js} +5 -5
  112. package/build/esm/index.js +1 -1
  113. package/build/esm/{index.styled-dd81b143.js → index.styled-99ed9a64.js} +21 -21
  114. package/build/esm/{index.styled-ad90ced9.js → index.styled-a177c0fc.js} +11 -11
  115. package/build/esm/index.styled-bcf9194a.js +50 -0
  116. package/build/esm/lead.js +1 -1
  117. package/build/esm/mantine.js +1 -1
  118. package/build/esm/misc.js +1 -1
  119. package/build/esm/navigation.js +1 -1
  120. package/build/esm/onboarding.js +1 -1
  121. package/build/esm/onboardingV2.js +18 -18
  122. package/build/esm/{paths-3aa9e733.js → paths-d8677095.js} +1 -1
  123. package/build/esm/pwg.js +5 -5
  124. package/build/esm/{routing-7370484f.js → routing-15bab0c1.js} +1 -1
  125. package/build/esm/screenSizeContext-c836ee25.js +81 -0
  126. package/build/esm/together.js +1 -1
  127. package/build/esm/{types-11ff140e.js → types-1ede8733.js} +116 -116
  128. package/build/esm/types-659159e3.js +749 -0
  129. package/build/esm/types.js +1 -1
  130. package/build/esm/{useHealthToolCache-75e7237a.js → useHealthToolCache-c93a14d3.js} +1 -1
  131. package/build/esm/{useRafState-d58fcec4.js → useRafState-956d702c.js} +1 -1
  132. package/build/esm/{useTranslations-e743d735.js → useTranslations-7ca47aa6.js} +1 -1
  133. package/build/esm/utils-43ce7755.js +1210 -0
  134. package/build/esm/{utils-7f96a570.js → utils-95f50b85.js} +1 -1
  135. package/build/esm/vaccination.js +49 -49
  136. package/build/fixedBottomAdBlock-9da7b320.js +1 -0
  137. package/build/footer.js +1 -1
  138. package/build/gAssets.js +1 -1
  139. package/build/getDynamicHealthTool-1d128d8b.js +1 -0
  140. package/build/{getSocialList-ffb45884.js → getSocialList-89fc7cd1.js} +1 -1
  141. package/build/hooks.js +1 -1
  142. package/build/i18n/translationKeys.d.ts +1 -1
  143. package/build/i18n-values/en-PH.js +1 -1
  144. package/build/i18n-values/hi-IN.js +1 -1
  145. package/build/i18n-values/id-ID.js +1 -1
  146. package/build/i18n-values/km-KH.js +1 -1
  147. package/build/i18n-values/ms-MY.js +1 -1
  148. package/build/i18n-values/my-MM.js +1 -1
  149. package/build/i18n-values/th-TH.js +1 -1
  150. package/build/i18n-values/tl-PH.js +1 -1
  151. package/build/i18n-values/vi-VN.js +1 -1
  152. package/build/i18n-values/vi-VN_MB.js +1 -1
  153. package/build/i18n-values/zh-TW.js +1 -1
  154. package/build/i18n.js +1 -1
  155. package/build/i18nV2.js +1 -1
  156. package/build/{index-0b993b7b.js → index-286f3f1f.js} +1 -1
  157. package/build/{index-2124f3d8.js → index-2f89ac17.js} +1 -1
  158. package/build/{index-a913edb3.js → index-2ff3dc9b.js} +1 -1
  159. package/build/index-491c1f7a.js +1 -0
  160. package/build/index-4a3978e2.js +113 -0
  161. package/build/{index-f64735f6.js → index-4d3debcc.js} +1 -1
  162. package/build/index-4dd35f52.js +53 -0
  163. package/build/index-5f26cd75.js +1 -0
  164. package/build/{index-84f2f174.js → index-61ca2233.js} +1 -1
  165. package/build/{index-0a4bdae9.js → index-71a241c2.js} +1 -1
  166. package/build/{index-87615aa6.js → index-9796fe55.js} +1 -1
  167. package/build/index-a30a463c.js +1 -0
  168. package/build/index-a77fa3dc.js +1 -0
  169. package/build/{index-b5ee04ff.js → index-bbee93dd.js} +14 -14
  170. package/build/{index-49dc3607.js → index-c4d63742.js} +1 -1
  171. package/build/{index-c1830f93.js → index-c6d5103f.js} +1 -1
  172. package/build/{index-3baac80f.js → index-c952cbc8.js} +1 -1
  173. package/build/{index-d107dcd6.js → index-d42c20df.js} +1 -1
  174. package/build/{index-5baa63ab.js → index-de4b79e1.js} +7 -7
  175. package/build/{index-4498d523.js → index-e00f2884.js} +1 -1
  176. package/build/{index-d011fdfb.js → index-e8145d84.js} +1 -1
  177. package/build/index.js +1 -1
  178. package/build/{index.styled-849ca291.js → index.styled-682ff94a.js} +5 -5
  179. package/build/{index.styled-dcd4dfbb.js → index.styled-af0521f7.js} +15 -15
  180. package/build/{index.styled-e1e24f4f.js → index.styled-e140852f.js} +6 -6
  181. package/build/lead.js +1 -1
  182. package/build/mantine.js +1 -1
  183. package/build/misc.js +1 -1
  184. package/build/navigation.js +1 -1
  185. package/build/onboarding.js +1 -1
  186. package/build/onboardingV2.js +16 -16
  187. package/build/paths-82fd1623.js +1 -0
  188. package/build/pwg.js +1 -1
  189. package/build/{routing-893cc38c.js → routing-6279db15.js} +1 -1
  190. package/build/screenSizeContext-449c711d.js +81 -0
  191. package/build/together.js +1 -1
  192. package/build/types-19554357.js +749 -0
  193. package/build/{types-7aae8609.js → types-5970349c.js} +80 -80
  194. package/build/types.js +1 -1
  195. package/build/{useHealthToolCache-33a1a75f.js → useHealthToolCache-370897a8.js} +1 -1
  196. package/build/{useRafState-a3097ea8.js → useRafState-11b8c397.js} +1 -1
  197. package/build/{useTranslations-f674d3f2.js → useTranslations-6431433b.js} +1 -1
  198. package/build/utils-937d5f73.js +1210 -0
  199. package/build/utils-d2d88c63.js +1 -0
  200. package/build/vaccination.js +26 -26
  201. package/package.json +1 -1
  202. package/build/core-a51b6a43.js +0 -1
  203. package/build/esm/fixedBottomAdBlock-83912fd3.js +0 -1
  204. package/build/esm/getDynamicHealthTool-2326a463.js +0 -1
  205. package/build/esm/index-1d4eaa1c.js +0 -1
  206. package/build/esm/index-3f736c0b.js +0 -1
  207. package/build/esm/index-46be1b11.js +0 -1
  208. package/build/esm/index-48b38bdc.js +0 -177
  209. package/build/esm/index-65d702aa.js +0 -1
  210. package/build/esm/index-834d6dc0.js +0 -1
  211. package/build/esm/index-93f72147.js +0 -1
  212. package/build/esm/index-b0cd5d32.js +0 -1
  213. package/build/esm/index-efe2d89d.js +0 -1
  214. package/build/esm/index-f7790f46.js +0 -1
  215. package/build/esm/index-fbe22277.js +0 -113
  216. package/build/esm/index.styled-5fc3c70e.js +0 -50
  217. package/build/esm/screenSizeContext-6c4b3d3a.js +0 -81
  218. package/build/esm/types-c659f9ce.js +0 -339
  219. package/build/esm/utils-32abe328.js +0 -1210
  220. package/build/esm/utils-cf5913a7.js +0 -1
  221. package/build/fixedBottomAdBlock-0c7e1813.js +0 -1
  222. package/build/getDynamicHealthTool-533e408e.js +0 -1
  223. package/build/index-317c7782.js +0 -113
  224. package/build/index-63287b2a.js +0 -1
  225. package/build/index-84038158.js +0 -1
  226. package/build/index-c3b319e0.js +0 -1
  227. package/build/index-c4ed2bd3.js +0 -1
  228. package/build/index-d17f77e7.js +0 -53
  229. package/build/index-d240168e.js +0 -1
  230. package/build/paths-169ca2fa.js +0 -1
  231. package/build/screenSizeContext-8b2edc76.js +0 -81
  232. package/build/types-f2162056.js +0 -339
  233. package/build/utils-39189826.js +0 -1
  234. package/build/utils-8ffad3ee.js +0 -1210
  235. package/build/utils-a6e5c841.js +0 -1
  236. /package/build/{BMI_BOYS.percentile.monthly-40aa10d3.js → BMI_BOYS.percentile.monthly-8958a78c.js} +0 -0
  237. /package/build/{BMI_BOYS.percentile.weekly-f404b72d.js → BMI_BOYS.percentile.weekly-4b761f4d.js} +0 -0
  238. /package/build/{BMI_BOYS.percentile.yearly-8d434a93.js → BMI_BOYS.percentile.yearly-a04bbf54.js} +0 -0
  239. /package/build/{BMI_BOYS.zscore.monthly-8114e212.js → BMI_BOYS.zscore.monthly-a36ba4d0.js} +0 -0
  240. /package/build/{BMI_BOYS.zscore.weekly-11c9d824.js → BMI_BOYS.zscore.weekly-db6fe4d5.js} +0 -0
  241. /package/build/{BMI_BOYS.zscore.yearly-5bec9369.js → BMI_BOYS.zscore.yearly-860caeed.js} +0 -0
  242. /package/build/{BMI_GIRLS.percentile.monthly-84b926eb.js → BMI_GIRLS.percentile.monthly-00df239c.js} +0 -0
  243. /package/build/{BMI_GIRLS.percentile.weekly-c38dda42.js → BMI_GIRLS.percentile.weekly-fddb8641.js} +0 -0
  244. /package/build/{BMI_GIRLS.percentile.yearly-dd38ff8b.js → BMI_GIRLS.percentile.yearly-22dd5ac8.js} +0 -0
  245. /package/build/{BMI_GIRLS.zscore.monthly-f7de6cf8.js → BMI_GIRLS.zscore.monthly-cb7fb89f.js} +0 -0
  246. /package/build/{BMI_GIRLS.zscore.weekly-b63e255d.js → BMI_GIRLS.zscore.weekly-99eb5541.js} +0 -0
  247. /package/build/{BMI_GIRLS.zscore.yearly-4fb1e977.js → BMI_GIRLS.zscore.yearly-25cae963.js} +0 -0
  248. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7a72c2f8.js → HEAD CIRCUM_BOYS.percentile.monthly-f55ff1d5.js} +0 -0
  249. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1e6cdfe4.js → HEAD CIRCUM_BOYS.percentile.weekly-544b75f3.js} +0 -0
  250. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e0af52a9.js → HEAD CIRCUM_BOYS.percentile.yearly-08510bd3.js} +0 -0
  251. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-59821305.js → HEAD CIRCUM_BOYS.zscore.monthly-bbcdb589.js} +0 -0
  252. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-658be468.js → HEAD CIRCUM_BOYS.zscore.weekly-dc2399a5.js} +0 -0
  253. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c7bf9ebd.js → HEAD CIRCUM_BOYS.zscore.yearly-069905bc.js} +0 -0
  254. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-60b8aa21.js → HEAD CIRCUM_GIRLS.percentile.monthly-40dba81c.js} +0 -0
  255. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-16c57811.js → HEAD CIRCUM_GIRLS.percentile.weekly-69a42032.js} +0 -0
  256. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e2ad4b1b.js → HEAD CIRCUM_GIRLS.percentile.yearly-94df5a03.js} +0 -0
  257. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-1148183d.js → HEAD CIRCUM_GIRLS.zscore.monthly-628d6922.js} +0 -0
  258. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-5a624c92.js → HEAD CIRCUM_GIRLS.zscore.weekly-6043be39.js} +0 -0
  259. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-89f0ce48.js → HEAD CIRCUM_GIRLS.zscore.yearly-10a0741e.js} +0 -0
  260. /package/build/{HEIGHT_BOYS.percentile.monthly-874459c9.js → HEIGHT_BOYS.percentile.monthly-ae009cf1.js} +0 -0
  261. /package/build/{HEIGHT_BOYS.percentile.weekly-c5905ed0.js → HEIGHT_BOYS.percentile.weekly-70d1d360.js} +0 -0
  262. /package/build/{HEIGHT_BOYS.percentile.yearly-be85c3c2.js → HEIGHT_BOYS.percentile.yearly-09cf9130.js} +0 -0
  263. /package/build/{HEIGHT_BOYS.zscore.monthly-ab71494a.js → HEIGHT_BOYS.zscore.monthly-2e81862c.js} +0 -0
  264. /package/build/{HEIGHT_BOYS.zscore.weekly-74473ee4.js → HEIGHT_BOYS.zscore.weekly-99b3814d.js} +0 -0
  265. /package/build/{HEIGHT_BOYS.zscore.yearly-31d8cd4a.js → HEIGHT_BOYS.zscore.yearly-f4613d62.js} +0 -0
  266. /package/build/{HEIGHT_GIRLS.percentile.monthly-091b448a.js → HEIGHT_GIRLS.percentile.monthly-6f60eeb3.js} +0 -0
  267. /package/build/{HEIGHT_GIRLS.percentile.weekly-95b64243.js → HEIGHT_GIRLS.percentile.weekly-e4a3dbf0.js} +0 -0
  268. /package/build/{HEIGHT_GIRLS.percentile.yearly-3d88d73d.js → HEIGHT_GIRLS.percentile.yearly-ab93e83f.js} +0 -0
  269. /package/build/{HEIGHT_GIRLS.zscore.monthly-b2e58560.js → HEIGHT_GIRLS.zscore.monthly-4f9524f2.js} +0 -0
  270. /package/build/{HEIGHT_GIRLS.zscore.weekly-487f2139.js → HEIGHT_GIRLS.zscore.weekly-964c7c6b.js} +0 -0
  271. /package/build/{HEIGHT_GIRLS.zscore.yearly-cbb818b1.js → HEIGHT_GIRLS.zscore.yearly-938f9222.js} +0 -0
  272. /package/build/{Onboarding-fc91320a.js → Onboarding-7b19bc6b.js} +0 -0
  273. /package/build/{Visible-c2df2203.js → Visible-b1a5edce.js} +0 -0
  274. /package/build/{WEIGHT_BOYS.percentile.monthly-67ed4096.js → WEIGHT_BOYS.percentile.monthly-0dc89eaf.js} +0 -0
  275. /package/build/{WEIGHT_BOYS.percentile.weekly-1a18346c.js → WEIGHT_BOYS.percentile.weekly-c6eb47e5.js} +0 -0
  276. /package/build/{WEIGHT_BOYS.percentile.yearly-079b69f1.js → WEIGHT_BOYS.percentile.yearly-a2307c60.js} +0 -0
  277. /package/build/{WEIGHT_BOYS.zscore.monthly-64b4fa20.js → WEIGHT_BOYS.zscore.monthly-a0b441e5.js} +0 -0
  278. /package/build/{WEIGHT_BOYS.zscore.weekly-0511498e.js → WEIGHT_BOYS.zscore.weekly-19736bd9.js} +0 -0
  279. /package/build/{WEIGHT_BOYS.zscore.yearly-d0f9a48b.js → WEIGHT_BOYS.zscore.yearly-6a026f92.js} +0 -0
  280. /package/build/{WEIGHT_GIRLS.percentile.monthly-b4dfcbfd.js → WEIGHT_GIRLS.percentile.monthly-65ee3fc1.js} +0 -0
  281. /package/build/{WEIGHT_GIRLS.percentile.weekly-5adf6a8c.js → WEIGHT_GIRLS.percentile.weekly-552483f0.js} +0 -0
  282. /package/build/{WEIGHT_GIRLS.percentile.yearly-349924c6.js → WEIGHT_GIRLS.percentile.yearly-60565842.js} +0 -0
  283. /package/build/{WEIGHT_GIRLS.zscore.monthly-364763a3.js → WEIGHT_GIRLS.zscore.monthly-08000bda.js} +0 -0
  284. /package/build/{WEIGHT_GIRLS.zscore.weekly-16428e47.js → WEIGHT_GIRLS.zscore.weekly-db98eae0.js} +0 -0
  285. /package/build/{WEIGHT_GIRLS.zscore.yearly-a70f35e5.js → WEIGHT_GIRLS.zscore.yearly-10466197.js} +0 -0
  286. /package/build/{constants-f2b846fe.js → constants-1a96dc83.js} +0 -0
  287. /package/build/{cookieHelper-656ec051.js → cookieHelper-10e61e77.js} +0 -0
  288. /package/build/{dataTransform-a9544ee6.js → dataTransform-e952e2a6.js} +0 -0
  289. /package/build/esm/{BMI_BOYS.percentile.monthly-64765251.js → BMI_BOYS.percentile.monthly-0def0e7f.js} +0 -0
  290. /package/build/esm/{BMI_BOYS.percentile.weekly-26d1c266.js → BMI_BOYS.percentile.weekly-d9cacdb3.js} +0 -0
  291. /package/build/esm/{BMI_BOYS.percentile.yearly-139eb2db.js → BMI_BOYS.percentile.yearly-736e654f.js} +0 -0
  292. /package/build/esm/{BMI_BOYS.zscore.monthly-518ff64f.js → BMI_BOYS.zscore.monthly-22409178.js} +0 -0
  293. /package/build/esm/{BMI_BOYS.zscore.weekly-87c22c2e.js → BMI_BOYS.zscore.weekly-4161e89c.js} +0 -0
  294. /package/build/esm/{BMI_BOYS.zscore.yearly-042b66f3.js → BMI_BOYS.zscore.yearly-7b870f69.js} +0 -0
  295. /package/build/esm/{BMI_GIRLS.percentile.monthly-ec4b2f4d.js → BMI_GIRLS.percentile.monthly-1760e248.js} +0 -0
  296. /package/build/esm/{BMI_GIRLS.percentile.weekly-e329889d.js → BMI_GIRLS.percentile.weekly-a6809fee.js} +0 -0
  297. /package/build/esm/{BMI_GIRLS.percentile.yearly-38343779.js → BMI_GIRLS.percentile.yearly-4514fd35.js} +0 -0
  298. /package/build/esm/{BMI_GIRLS.zscore.monthly-e5e8bf76.js → BMI_GIRLS.zscore.monthly-04fe5bf9.js} +0 -0
  299. /package/build/esm/{BMI_GIRLS.zscore.weekly-40c6e20c.js → BMI_GIRLS.zscore.weekly-0d5957b5.js} +0 -0
  300. /package/build/esm/{BMI_GIRLS.zscore.yearly-a2021786.js → BMI_GIRLS.zscore.yearly-705329fc.js} +0 -0
  301. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f67793f6.js → HEAD CIRCUM_BOYS.percentile.monthly-d5fb461b.js} +0 -0
  302. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-66251183.js → HEAD CIRCUM_BOYS.percentile.weekly-13620bc6.js} +0 -0
  303. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-ca7a6439.js → HEAD CIRCUM_BOYS.percentile.yearly-5f34ec92.js} +0 -0
  304. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ab834e5a.js → HEAD CIRCUM_BOYS.zscore.monthly-1ad9297e.js} +0 -0
  305. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-1930d569.js → HEAD CIRCUM_BOYS.zscore.weekly-b2bdca3a.js} +0 -0
  306. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-281219a6.js → HEAD CIRCUM_BOYS.zscore.yearly-1baac315.js} +0 -0
  307. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-30746142.js → HEAD CIRCUM_GIRLS.percentile.monthly-586b16b0.js} +0 -0
  308. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-3815448c.js → HEAD CIRCUM_GIRLS.percentile.weekly-0bae6048.js} +0 -0
  309. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-174d740f.js → HEAD CIRCUM_GIRLS.percentile.yearly-8fac6642.js} +0 -0
  310. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e6c93b3d.js → HEAD CIRCUM_GIRLS.zscore.monthly-25a08afc.js} +0 -0
  311. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-876dbd52.js → HEAD CIRCUM_GIRLS.zscore.weekly-23331b57.js} +0 -0
  312. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-746bc115.js → HEAD CIRCUM_GIRLS.zscore.yearly-b29c6ebf.js} +0 -0
  313. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1a2adbd0.js → HEIGHT_BOYS.percentile.monthly-1dbf1260.js} +0 -0
  314. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-44df87bb.js → HEIGHT_BOYS.percentile.weekly-d25d7b8f.js} +0 -0
  315. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f26d7188.js → HEIGHT_BOYS.percentile.yearly-1291131e.js} +0 -0
  316. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-7b17a0dd.js → HEIGHT_BOYS.zscore.monthly-51960331.js} +0 -0
  317. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-ac9319bc.js → HEIGHT_BOYS.zscore.weekly-7cea1500.js} +0 -0
  318. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3f0fbefa.js → HEIGHT_BOYS.zscore.yearly-f0a1e6ce.js} +0 -0
  319. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-3d60a549.js → HEIGHT_GIRLS.percentile.monthly-bb5ef5bb.js} +0 -0
  320. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-32cfe832.js → HEIGHT_GIRLS.percentile.weekly-8e15eef2.js} +0 -0
  321. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-9685eebd.js → HEIGHT_GIRLS.percentile.yearly-6645f1ca.js} +0 -0
  322. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a55a152a.js → HEIGHT_GIRLS.zscore.monthly-dc5bf23c.js} +0 -0
  323. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-5ba06063.js → HEIGHT_GIRLS.zscore.weekly-3f88b5a2.js} +0 -0
  324. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-86806f62.js → HEIGHT_GIRLS.zscore.yearly-bdcbd5e0.js} +0 -0
  325. /package/build/esm/{Onboarding-9e4e70e7.js → Onboarding-17999cc6.js} +0 -0
  326. /package/build/esm/{Visible-b3eda12e.js → Visible-1cd4fcba.js} +0 -0
  327. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-3ef2f577.js → WEIGHT_BOYS.percentile.monthly-d038d535.js} +0 -0
  328. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-bcd490c4.js → WEIGHT_BOYS.percentile.weekly-43211215.js} +0 -0
  329. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-bb4eeff5.js → WEIGHT_BOYS.percentile.yearly-c78ab472.js} +0 -0
  330. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-f1d09597.js → WEIGHT_BOYS.zscore.monthly-e0a44abc.js} +0 -0
  331. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6e2e2e78.js → WEIGHT_BOYS.zscore.weekly-b0383e3c.js} +0 -0
  332. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-d11badbe.js → WEIGHT_BOYS.zscore.yearly-56dacf94.js} +0 -0
  333. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-31a98425.js → WEIGHT_GIRLS.percentile.monthly-942387b6.js} +0 -0
  334. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-2423581d.js → WEIGHT_GIRLS.percentile.weekly-aae75a15.js} +0 -0
  335. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-6511ac61.js → WEIGHT_GIRLS.percentile.yearly-eb71ec38.js} +0 -0
  336. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-da6118cf.js → WEIGHT_GIRLS.zscore.monthly-8b5c3c06.js} +0 -0
  337. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-1d1e2cd1.js → WEIGHT_GIRLS.zscore.weekly-0795a68b.js} +0 -0
  338. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-0d3b3970.js → WEIGHT_GIRLS.zscore.yearly-fe7f2f80.js} +0 -0
  339. /package/build/esm/{constants-3b2016c2.js → constants-f6df1426.js} +0 -0
  340. /package/build/esm/{cookieHelper-8d4d4f87.js → cookieHelper-243ea413.js} +0 -0
  341. /package/build/esm/{dataTransform-89915fff.js → dataTransform-36b31b51.js} +0 -0
  342. /package/build/esm/{index-a98036b7.js → index-171cb1de.js} +0 -0
  343. /package/build/esm/{isProduction-312c5090.js → isProduction-f9284e0d.js} +0 -0
  344. /package/build/esm/{localizeNumberFormat-7be379f5.js → localizeNumberFormat-891fddd2.js} +0 -0
  345. /package/build/esm/{normalizeLink-4bc0f032.js → normalizeLink-5c3d96d1.js} +0 -0
  346. /package/build/esm/{theme-2d06fcb0.js → theme-72c4ec13.js} +0 -0
  347. /package/build/esm/{translationsContext-0ea53580.js → translationsContext-c72ee6fa.js} +0 -0
  348. /package/build/esm/{tslib.es6-fa2b0040.js → tslib.es6-d8c90a45.js} +0 -0
  349. /package/build/esm/{types-27b60cd6.js → types-ab2c0f6a.js} +0 -0
  350. /package/build/esm/{useIsInit-c5411f18.js → useIsInit-392f39dd.js} +0 -0
  351. /package/build/esm/{useOutsideClick-d82e18e1.js → useOutsideClick-1cd3fb0a.js} +0 -0
  352. /package/build/esm/{useScrollbarSize-5dbc83d7.js → useScrollbarSize-8565e51f.js} +0 -0
  353. /package/build/esm/{useUniqueId-20aeda97.js → useUniqueId-3c703513.js} +0 -0
  354. /package/build/{index-12b3d15e.js → index-b1647eb2.js} +0 -0
  355. /package/build/{isProduction-8f6cbcab.js → isProduction-a9b4a078.js} +0 -0
  356. /package/build/{localizeNumberFormat-69ca71a2.js → localizeNumberFormat-5ef4e484.js} +0 -0
  357. /package/build/{normalizeLink-6ea6478e.js → normalizeLink-50c64691.js} +0 -0
  358. /package/build/{theme-8d7a0555.js → theme-d4afee80.js} +0 -0
  359. /package/build/{translationsContext-34015b3b.js → translationsContext-c1c628a8.js} +0 -0
  360. /package/build/{tslib.es6-e36bef96.js → tslib.es6-049409d2.js} +0 -0
  361. /package/build/{types-7d180d5a.js → types-5d92c754.js} +0 -0
  362. /package/build/{useIsInit-2fee5fc8.js → useIsInit-46fc5c7c.js} +0 -0
  363. /package/build/{useOutsideClick-9e98f405.js → useOutsideClick-57e6f5a8.js} +0 -0
  364. /package/build/{useScrollbarSize-4b33093d.js → useScrollbarSize-ed1b21ab.js} +0 -0
  365. /package/build/{useUniqueId-2b7006f9.js → useUniqueId-4c637d8e.js} +0 -0
@@ -0,0 +1,749 @@
1
+ "use strict";var e=require("./tslib.es6-049409d2.js"),t=require("react"),a=require("./useTranslations-6431433b.js"),i=require("lodash/debounce"),o=require("./constants-1a96dc83.js"),n=require("./index-2ff3dc9b.js"),l=require("styled-components"),s=require("./index-e00f2884.js"),r=require("./theme-d4afee80.js"),c=require("./screenSizeContext-449c711d.js"),d=require("react-loading-skeleton"),u=require("lodash/shuffle"),p=require("./useOutsideClick-57e6f5a8.js"),h=require("./paths-82fd1623.js"),g=require("@mantine/core"),f=require("./index-c4d63742.js"),m=require("./cookieHelper-10e61e77.js"),C=require("./index-4a3978e2.js"),b=require("string-format");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function v(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var x=v(t),E=y(t),w=y(i),L=y(l),S=y(d),O=y(u),k=y(b);const I=e=>x.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),x.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));function T(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),n=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:n})),[e,i])}const M=L.default.div``,j=L.default.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=L.default.section``,A=L.default.input`
15
+ position: fixed;
16
+ left: -100%;
17
+ top: -100%;
18
+ `,N=L.default(n.Input)`
19
+ #booking-search-bar & {
20
+ input {
21
+ font-size: 16px;
22
+ }
23
+ }
24
+ `,P=l.createGlobalStyle`
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
+ `,F=({className:e,color:t})=>E.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.default.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),_=({className:e,color:t})=>E.default.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},E.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"})),$=({className:e,color:t})=>E.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.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"}),E.default.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),D=({width:e,height:t})=>E.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),B=L.default.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: ${r.theme.colors.neutral100};
60
+ }
61
+ `,V=L.default.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
+ ${c.MediaQueries.tdDown} {
74
+ position: relative;
75
+ top: 0;
76
+ box-shadow: initial;
77
+ }
78
+ `,H=L.default.ul`
79
+ width: 100%;
80
+ max-height: 600px;
81
+ overflow-y: auto;
82
+ `,z=L.default(_)`
83
+ width: 12px;
84
+ height: 18px;
85
+ `,K=L.default.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: ${r.theme.colors.neutral100};
104
+ }
105
+
106
+ &:not([data-is-denied='true']):hover {
107
+ background-color: ${r.theme.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
+ `,G=L.default((({count:e,className:t})=>E.default.createElement(E.default.Fragment,null,[...Array(e)].map(((e,a)=>E.default.createElement(B,{className:t,key:a},E.default.createElement(S.default,{count:1,height:32}),E.default.createElement(S.default,{count:1,height:24})))))))`
124
+ &:first-child {
125
+ padding-top: 18px;
126
+ }
127
+ `,Z=({cities:e,isLoading:t,onLocationClick:i,selectedLocation:n})=>{const{t:l,locale:c}=a.useTranslations();return E.default.createElement(V,{"data-testid":"location-search-results"},E.default.createElement(H,null,t?E.default.createElement(G,{count:5}):!e||e.length<1?E.default.createElement(E.default.Fragment,null,E.default.createElement(K,{"data-is-denied":"true"},E.default.createElement(s.Text,{size:"sm",color:"#ccc"},l("booking.searchBar.noResults")))):E.default.createElement(E.default.Fragment,null,E.default.createElement(K,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;i&&i({name:l("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[c])||void 0===e?void 0:e.ALL})}},E.default.createElement(z,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},l("booking.searchBar.allLocations"))),e.map((e=>E.default.createElement(K,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),i&&i(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==n?void 0:n.id)===e.id},E.default.createElement(z,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},e.name)))))))},U="TYPE_CHARACTER",Q="REMOVE_CHARACTER",q="REMOVE_ALL",Y="REMOVE_LAST_VISIBLE_NODE",W="PAUSE_FOR",J="CHANGE_DELETE_SPEED",X="CHANGE_DELAY",ee="PASTE_STRING",te=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,ae="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(W,{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(ee,{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(J,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(X,{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(Q);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(U,{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(Q)})),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===Y||i.eventName===Q?"natural"===this.options.deleteSpeed?te(40,80):this.options.deleteSpeed:"natural"===this.options.delay?te(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:l}=i;switch(n){case ee:case U:{const{character:e}=l,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:ae,character:e,node:a}];break}case Q:a.unshift({eventName:Y,eventArgs:{removingCharacterNode:!0}});break;case W:{const{ms:e}=i.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case q:{const{visibleNodes:e}=this.state,{speed:t}=l,i=[];t&&i.push({eventName:J,eventArgs:{speed:t,temp:!0}});for(let t=0,a=e.length;t<a;t++)i.push({eventName:Y,eventArgs:{removingCharacterNode:!1}});t&&i.push({eventName:J,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),a.unshift(...i);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 J:this.options.deleteSpeed=i.eventArgs.speed;break;case X:this.options.delay=i.eventArgs.delay}this.options.loop&&(i.eventName===Y||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(q,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function oe({inputRef:e,wrapperRef:i,disabled:o}){const{t:n,locale:l}=a.useTranslations(),s=t.useMemo((()=>{if(o)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==l&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),O.default(e).map((e=>n(e)))}),[n,l]);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:i&&i.current&&i.current.querySelector("input")||null}t.useEffect((()=>{if(o)return;const e=d();e&&(e.placeholder="",new ie({strings:s,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:c}))}),[e,i])}const ne=L.default.div`
128
+ user-select: none;
129
+ input {
130
+ pointer-events: none;
131
+ background-color: white;
132
+ }
133
+ `;function le({focused:e,value:i="",onClick:o,trackingAttributes:n,inputSearchPlaceholder:l}){const{t:s}=a.useTranslations(),c=t.useRef(null);oe({wrapperRef:c,disabled:!!l});const d=t.useMemo((()=>n?{"data-event-category":n.dataEventCategory,"data-event-action":n.dataEventAction,"data-event-label":n.dataEventLabel}:{}),[n]);return E.default.createElement(ne,Object.assign({onClick:()=>o&&o(),ref:c},d),E.default.createElement(N,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:E.default.createElement($,{color:r.theme.colors.gray400}),placeholder:s("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}const se=L.default.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=L.default.div`
145
+ display: inline-flex;
146
+ flex: 1;
147
+ justify-content: flex-end;
148
+ cursor: pointer;
149
+ text-decoration: underline;
150
+ `,ce=L.default.div`
151
+ display: flex;
152
+ align-items: center;
153
+ margin-left: 16px;
154
+ cursor: pointer;
155
+ `,de=L.default.div`
156
+ width: 100%;
157
+ margin-left: 24px;
158
+ `,ue=L.default(s.Text)`
159
+ color: ${r.theme.colors.secondaryDark};
160
+ text-align: start;
161
+ `,pe=({className:e,onLeftClick:t,headingText:a,onRightClick:i,iconLeft:o,textRight:n})=>E.default.createElement(se,{className:e},E.default.createElement(ce,{onClick:t},o||E.default.createElement(F,{color:r.theme.colors.gray800})),E.default.createElement(de,null,E.default.createElement(ue,{size:"md",type:"bold"},a)),E.default.createElement(re,{onClick:i},n&&E.default.createElement("p",null,n))),he={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},ge={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 fe;function me(e){const{selectedLocation:t,searchLocationKeywords:a}=e;return t&&a!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function Ce(e,t){var a;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case fe.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case fe.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:me(Object.assign(Object.assign({},e),{focused:"none"}));case fe.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case fe.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(a=e.selectedLocation)||void 0===a?void 0:a.id)===o.ID_OPTION_CURRENT_LOCATION&&(t.searchLocationKeywords=""),t}case fe.FocusInputSearch:const i=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?me(i):i;case fe.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case fe.ChangeInputSearch:{const a=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:a,isLoadingSearchResults:a.trim().length>he[e.locale]})}case fe.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case fe.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case fe.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case fe.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case fe.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case fe.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case fe.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case fe.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case fe.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case fe.FetchSearchResultsComplete:{const a=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(a.initialSearchResults=t.payload),a}case fe.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 fe.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case fe.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case fe.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case fe.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case fe.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case fe.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case fe.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case fe.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case fe.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"}(fe||(fe={}));const be=L.default.div`
162
+ display: flex;
163
+ gap: 16px;
164
+ ${c.MediaQueries.mbDown} {
165
+ flex-direction: column;
166
+ padding: 14px;
167
+ background-color: ${r.theme.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
+ `,ye=L.default.div`
180
+ position: relative;
181
+ `,ve=L.default(ye)`
182
+ flex: 1;
183
+ `,xe=L.default(ye)`
184
+ flex: 2;
185
+ `,Ee=L.default((({className:e,color:t})=>E.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),E.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
+ display: none;
187
+ &.shown {
188
+ display: block;
189
+ }
190
+ `,we=()=>E.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},E.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"})),Le=L.default.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
+ ${c.MediaQueries.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
+ `,Se=L.default(s.Text)`
222
+ font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
223
+ `,Oe=({onClick:e})=>{const{t:t}=a.useTranslations(),i=t("booking.searchBar.searchButton");return E.default.createElement(Le,{onClick:e,title:i},E.default.createElement(we,null),E.default.createElement(Se,{size:"s3",color:"white"},i))};function ke({isMobile:e,state:i,dispatch:n,debouncedFetchCitiesByKeyword:l,debouncedFetchSearchResults:s,focusLocationInput:c,focusSearchInput:d,renderLocationResults:u,renderSearchResults:h,locationTrackingAttributes:g,trackingAttributes:f,onSearch:m,initalSearchValue:C}){const b=t.useRef(null),y=t.useRef(null),{focused:v,searchLocationKeywords:x,geoLocationPermission:w,selectedLocation:L,searchKeywords:S,inputSearchPlaceholder:O}=i,{t:k}=a.useTranslations();oe({wrapperRef:y,disabled:!!O}),p.useOutsideClick(b,(()=>{e||n({type:fe.ClickOutsideInputLocation})})),p.useOutsideClick(y,(()=>{e||n({type:fe.ClickOutsideInputSearch})}));const I=t.useMemo((()=>"granted"===w&&(null==L?void 0:L.id)===o.ID_OPTION_CURRENT_LOCATION?r.theme.colors.primaryBase:r.theme.colors.gray400),[w,L]),T=t.useCallback((function(e){n({type:fe.ChangeInputSearch,payload:e}),"function"!=typeof m&&(e.trim().length>he[i.locale]||C?s(e.trim(),i):(s.cancel(),n({type:fe.DisplayInitialSearchResults})))}),[n,i]),M=t.useCallback((function(e){n({type:fe.ChangeInputLocation,payload:e}),e.trim().length>he[i.locale]?l(e.trim()):(l.cancel(),n({type:fe.DisplayInitialCities}))}),[l,n]);return E.default.createElement(be,null,E.default.createElement(ve,{ref:b},E.default.createElement(N,{inputClassName:"location"===v?"focused":void 0,placeholder:k("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:E.default.createElement(_,{className:"location-pin-icon",color:I}),actionIcon:E.default.createElement(Ee,{color:r.theme.colors.gray300,className:""!==x?"shown":""}),onActionClick:function(){n({type:fe.ClearInputLocation}),l.cancel(),c()},value:x,onChange:M,onFocus:()=>n({type:fe.FocusInputLocation}),size:"md",trackingAttributes:g}),!e&&u()),E.default.createElement(xe,{ref:y},E.default.createElement(N,{placeholder:O||k("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:E.default.createElement(Ee,{color:r.theme.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){n({type:fe.ClearInputSearch}),s.cancel(),s("",i),d()},value:S,onChange:T,onFocus:()=>n({type:fe.FocusInputSearch}),inputClassName:"search"===v?"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&&E.default.createElement(Oe,{onClick:()=>{m({cityId:i.selectedLocation.id,keyword:S})}}))}const Ie=()=>E.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},E.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"})),Te=()=>E.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},E.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"})),Me=()=>E.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},E.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"})),je=()=>E.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},E.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"})),Re=L.default.header`
224
+ display: flex;
225
+ justify-content: space-between;
226
+ padding: 12px 24px;
227
+ background-color: ${r.theme.colors.neutral50};
228
+ box-shadow: inset 0px 1px 0px #e4e8ec;
229
+ `,Ae=L.default.div`
230
+ display: grid;
231
+ flex: 2;
232
+ align-items: center;
233
+ gap: 16px;
234
+ grid-template-columns: 16px 1fr;
235
+ `,Ne=L.default.p`
236
+ color: ${r.theme.colors.neutral800};
237
+ font-size: 14px;
238
+ font-weight: ${r.theme.sizes.fwSemiBold};
239
+ letter-spacing: -0.2px;
240
+ line-height: 22px;
241
+ `,Pe=L.default.button`
242
+ flex: 1;
243
+ cursor: pointer;
244
+ text-align: end;
245
+ `,Fe=L.default.section`
246
+ padding: 12px 16px;
247
+ --rowGap: 16px;
248
+ --graphicSize: 32px;
249
+
250
+ ${c.MediaQueries.tdUp} {
251
+ --rowGap: 8px;
252
+ }
253
+ `,_e=L.default.ul`
254
+ --gap: 16px;
255
+ ${c.MediaQueries.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
+ ${c.MediaQueries.tdUp} {
273
+ grid-template-columns: 1fr 1fr;
274
+ } ;
275
+ `,$e=L.default(s.Text)`
276
+ margin-top: 12px;
277
+ margin-bottom: 8px;
278
+ cursor: pointer;
279
+ text-align: start;
280
+ text-transform: capitalize;
281
+ `,De=L.default.li`
282
+ display: flex;
283
+ align-items: center;
284
+ gap: var(--rowGap);
285
+ cursor: pointer;
286
+ &.not-nav {
287
+ cursor: default;
288
+ }
289
+ `,Be=L.default.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 ${r.theme.colors.gray600};
308
+ }
309
+ `,Ve=L.default(s.Text)`
310
+ line-height: 22px;
311
+ letter-spacing: -0.2px;
312
+
313
+ ${c.MediaQueries.tdUp} {
314
+ &[data-size='p3'] {
315
+ font-size: 14px;
316
+ }
317
+ }
318
+ `,He=L.default.figure`
319
+ max-width: var(--graphicSize);
320
+ min-width: var(--graphicSize);
321
+ `,ze=L.default.svg`
322
+ margin: 0 auto;
323
+ display: block;
324
+ `,Ke=L.default.div`
325
+ display: grid;
326
+ place-items: center;
327
+ `,Ge={doctors:({width:e,height:t})=>E.default.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},E.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),E.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"})),E.default.createElement("defs",null,E.default.createElement("clipPath",{id:"clip0_14712_400114"},E.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>E.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),E.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"}))},Ze=({type:e,item:a,imageUrl:i,className:o,onClickItem:n})=>{const l=t.useMemo((()=>{const t=Ge[e]||D;return E.default.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return E.default.createElement(De,{onClick:()=>n&&n(a),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||n&&n(a)},tabIndex:0,role:"button",className:o},E.default.createElement(He,null,"hospitals"===e?E.default.createElement(ze,{width:"12",height:"16",viewBox:"0 0 12 16"},E.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"})):E.default.createElement(Be,{type:e},i?E.default.createElement("img",{src:i,width:32,height:"services"===e?32:24,loading:"lazy"}):l)),E.default.createElement(Ve,{color:r.theme.colors.gray800,size:"p3"},a.name))},Ue=({type:e,data:i,state:n,dispatch:l,itemsToShow:c,itemsToShowDesktop:d,isMobile:u,isLoading:p,keyword:h,isNavResultItem:g})=>{const[f,m]=t.useState(!1),{t:C,locale:b}=a.useTranslations(),{selectedLocation:y,searchKeywords:v}=n,x=t.useMemo((()=>o.LOCALIZED_SLUGS[b]),[b]),w="ms-MY"===b,L=t.useMemo((()=>({doctors:{name:C("booking.searchPopup.doctors"),icon:E.default.createElement(Ie,null),slug:x.DOCTOR},services:{name:C("booking.searchPopup.services"),icon:E.default.createElement(Te,null),slug:x.SERVICE},hospitals:{name:C("booking.searchPopup.hospitals"),icon:E.default.createElement(Me,null),slug:x.HOSPITAL},specialties:{name:C("booking.searchPopup.specialties"),icon:E.default.createElement(je,null),slug:x.SPECIALTIES}})),[e,x]),O=t.useMemo((()=>L[e].slug),[L]),k=u?c:d;function I(t){let a="";switch(e){case"specialties":a=`/${y.slug}/${L.doctors.slug}/${t.slug}`;break;case"services":a=`/${y.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":a=`/${O}/${t.slug}-${t.id}`}a&&l({type:fe.SelectSearchResult,payload:{name:t.name,url:a}})}function T(t){return E.default.createElement(Ze,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return E.default.createElement("section",null,E.default.createElement(Re,null,E.default.createElement(Ae,null,L[e].icon,E.default.createElement(Ne,null,L[e].name)),(h.trim().length<=he[b]||w)&&E.default.createElement(Pe,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${y.slug}/${O}`}t&&l({type:fe.NavigateTo,payload:t})}},E.default.createElement(s.Text,{size:"p3",color:r.theme.colors.primaryBase},C("booking.searchPopup.seeAll")))),(p||i&&i.length>0)&&E.default.createElement(Fe,null,E.default.createElement(_e,null,p&&Array(2).fill(void 0).map(((t,a)=>E.default.createElement(De,{key:e+"loading"+a},E.default.createElement(He,null,E.default.createElement(Ke,null,E.default.createElement(S.default,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),E.default.createElement(S.default,{width:120,height:24})))),!p&&i&&i.length>0&&i.slice(0,k).map(T)),E.default.createElement(_e,{isShown:f,isMore:!0},i.slice(k,-1).map(T)),"specialties"===e&&k<i.length&&!p&&E.default.createElement("button",{onClick:()=>m(!f)},E.default.createElement($e,{size:"p3",color:r.theme.colors.primaryBase},C(f?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(k<i.length||w)&&!p&&h.trim().length>he[b]&&E.default.createElement("button",{onClick:function(){const{slug:t}=L[e],a=`/${y.slug}/${t}?q=${v}`;l({type:fe.NavigateTo,payload:a})}},E.default.createElement($e,{size:"p3",color:r.theme.colors.primaryBase},C(`booking.searchPopup.searchIn.${e}`,{name:h})))),!p&&0===(null==i?void 0:i.length)&&E.default.createElement(Fe,null,E.default.createElement(s.Text,{size:"sm",color:r.theme.colors.gray400},C("booking.searchBar.noResults"))))},Qe=L.default.section`
328
+ background-color: white;
329
+ border-radius: 4px;
330
+ position: absolute;
331
+ width: 100%;
332
+ z-index: 30;
333
+
334
+ ${c.MediaQueries.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:t,dispatch:a,isMobile:i,isLoading:o,keyword:n,hideResults:l,isNavResultItem:s})=>E.default.createElement(Qe,null,e&&e.map((e=>l&&l.includes(e.type)?E.default.createElement(E.default.Fragment,null):E.default.createElement(Ue,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:o,keyword:n,isNavResultItem:s})))),Ye=(e,t,a)=>k.default(e,Object.assign(Object.assign({},t),{domain:f.domainLocales[a||"en-PH"]}));const We=L.default.div``,Je=L.default.div`
340
+ ${c.MediaQueries.mbDown} {
341
+ padding: 0 16px;
342
+ }
343
+ `,Xe=L.default(C.Container)`
344
+ padding: 30px 56px;
345
+ border-radius: 0px 0px 4px 4px;
346
+ background-color: ${r.theme.colors.white};
347
+ box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.04),
348
+ 0px 0px 2px 0px rgba(0, 0, 0, 0.06), 0px 4px 8px 0px rgba(0, 0, 0, 0.04);
349
+
350
+ ${c.MediaQueries.mbDown} {
351
+ padding: 16px 16px;
352
+ }
353
+
354
+ .flex-search-input {
355
+ flex-direction: row;
356
+ ${c.MediaQueries.mbDown} {
357
+ flex-direction: column;
358
+ }
359
+ }
360
+ `,et={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},tt={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchSpecialtyKeywords:"",searchKeywords:"",selectedLocation:null,selectedSpecialty:null,defaultCity:null,initialCities:[],cities:[],searchResults:{},initialSearchResults:{},isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN",allSpecialties:[]};var at;function it(e){const{selectedLocation:t,searchLocationKeywords:a}=e;return t&&a!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function ot(e,t){var a,i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case at.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case at.ClickOutsideInputLocation:return"location"!==e.focused?e:it(Object.assign(Object.assign({},e),{focused:"none"}));case at.ClickOutsideInputSpecialty:return"specialty"!==e.focused?e:it(Object.assign(Object.assign({},e),{focused:"none"}));case at.ClickOutsideInputSearch:return"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case at.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(a=e.selectedLocation)||void 0===a?void 0:a.id)===o.ID_OPTION_CURRENT_LOCATION&&(t.searchLocationKeywords=""),t}case at.FocusInputSpecialty:{const t=Object.assign(Object.assign({},e),{focused:"specialty"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===o.ID_OPTION_CURRENT_LOCATION&&(t.searchLocationKeywords=""),t}case at.FocusInputSearch:const n=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?it(n):n;case at.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case at.ChangeInputSearch:{const a=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:a,isLoadingSearchResults:a.trim().length>et[e.locale]})}case at.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case at.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case at.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case at.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case at.SelectSpecialty:return Object.assign(Object.assign({},e),{focused:"none",selectedSpecialty:t.payload});case at.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case at.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case at.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case at.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case at.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case at.FetchSearchResultsComplete:{const a=Object.assign(Object.assign({},e),{searchResults:t.payload});return Object.keys(e.initialSearchResults).length||(a.initialSearchResults=t.payload),a}case at.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 at.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case at.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case at.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case at.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case at.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case at.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case at.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case at.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case at.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});case at.FetchAllSpecialties:return Object.assign(Object.assign({},e),{allSpecialties: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.ClickOutsideInputSpecialty="click outside input specialty",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.SelectSpecialty="select specialty",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",e.FocusInputSpecialty="focus input specialty",e.FetchAllSpecialties="fetch all specialty"}(at||(at={}));const nt=L.default.div`
361
+ flex: 1;
362
+ position: relative;
363
+
364
+ ${c.MediaQueries.mbDown} {
365
+ width: 100%;
366
+ display: flex;
367
+ flex-direction: column;
368
+ gap: 12px;
369
+ }
370
+ `,lt=L.default.div`
371
+ position: absolute;
372
+ top: calc(100% + 2px);
373
+ width: 100%;
374
+ border-radius: 4px;
375
+ background: ${r.theme.colors.white};
376
+ box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);
377
+ z-index: 10;
378
+
379
+ ${c.MediaQueries.mbDown} {
380
+ width: calc(100% + 64px);
381
+ left: -32px;
382
+ }
383
+ `,st=L.default.div``,rt=L.default.div`
384
+ display: flex;
385
+ justify-content: space-between;
386
+ align-item: center;
387
+ padding: 9px 14px 9px 22px;
388
+ background: #f7f9fc;
389
+
390
+ .title {
391
+ color: ${r.theme.colors.gray800};
392
+ font-size: 14px;
393
+ font-weight: 600;
394
+ line-height: 22px;
395
+ }
396
+
397
+ .btn-see-all {
398
+ color: ${r.theme.colors.blue600};
399
+ font-size: 14px;
400
+ line-height: 22px;
401
+ cursor: pointer;
402
+ }
403
+ `,ct=L.default.div`
404
+ padding: 10px 16px;
405
+ max-height: 400px;
406
+ overflow: auto;
407
+ `,dt=L.default.div`
408
+ display: flex;
409
+ gap: 12px;
410
+ align-items: center;
411
+ cursor: pointer;
412
+
413
+ &:hover {
414
+ background-color: ${r.theme.colors.blue50};
415
+ }
416
+ .image-item {
417
+ flex: 0 0 48px;
418
+ width: 48px;
419
+ height: 48px;
420
+ border-radius: 50%;
421
+ background-color: ${r.theme.colors.pink50};
422
+
423
+ img {
424
+ width: 100%;
425
+ height: 100%;
426
+ border-radius: 50%;
427
+ }
428
+ }
429
+ .infor {
430
+ overflow: hidden;
431
+ padding: 12px 0;
432
+ flex: 1;
433
+ border-bottom: 1px solid ${r.theme.colors.neutral100};
434
+ .title {
435
+ color: ${r.theme.colors.gray800};
436
+ font-size: 16px;
437
+ font-weight: 600;
438
+ line-height: 24px;
439
+ }
440
+ .description {
441
+ overflow: hidden;
442
+ color: ${r.theme.colors.gray600};
443
+ text-overflow: ellipsis;
444
+ white-space: nowrap;
445
+ font-size: 12px;
446
+ line-height: 18px;
447
+ display: flex;
448
+ gap: 8px;
449
+ align-items: center;
450
+ margin-top: 5px;
451
+
452
+ svg {
453
+ flex: 0 0 16px;
454
+ }
455
+
456
+ .sub-description {
457
+ overflow: hidden;
458
+ white-space: nowrap;
459
+ text-overflow: ellipsis;
460
+ flex: 1;
461
+ }
462
+ }
463
+ }
464
+
465
+ &.last-item {
466
+ .infor {
467
+ border-bottom: none;
468
+ }
469
+ }
470
+ `;L.default.div`
471
+ padding: 0 16px 16px;
472
+
473
+ .search-detail-btn {
474
+ color: ${r.theme.colors.blue600};
475
+ font-size: 14px;
476
+ line-height: 22px;
477
+ cursor: pointer;
478
+ }
479
+ `;const ut=({state:e,type:i,results:o,location:n,typeInformation:l,dispatch:c})=>{const{t:d}=a.useTranslations(),{selectedLocation:u}=e,p=t.useMemo((()=>l[i].slug),[l,i]);return E.default.createElement(st,null,E.default.createElement(rt,null,E.default.createElement("div",{className:"title"},d("booking.searchResult.description",{search_type:l[i].name,search_location:n})),o.length>0&&E.default.createElement("div",{className:"btn-see-all",onClick:()=>{const e=`/${u.slug}/${p}`;e&&c({type:at.NavigateTo,payload:e})}},d("home.seeAll"))),E.default.createElement(ct,null,o.map(((e,t)=>{var a,n;const s=o.length>4&&3===t||o.length<=4&&t===o.length-1;let r="";return"hospital"===i&&(r=(null==e?void 0:e.address)||""),"doctor"===i&&(r=(null===(a=null==e?void 0:e.specialties)||void 0===a?void 0:a.join(", "))||""),"service"===i&&(r=(null===(n=null==e?void 0:e.organization)||void 0===n?void 0:n.name)||""),t>=4?E.default.createElement(E.default.Fragment,null):E.default.createElement(dt,{key:e.id,className:s?"last-item":"",onClick:()=>(e=>{let t="";switch(i){case"service":t=`/${u.slug}/${p}/${e.slug}`;break;case"doctor":case"hospital":t=`/${p}/${e.slug}-${e.id}`}t&&c({type:at.NavigateTo,payload:t})})(e)},E.default.createElement("div",{className:"image-item"},E.default.createElement("img",{src:e.logo||e.avatar,alt:e.name})),E.default.createElement("div",{className:"infor"},E.default.createElement("div",{className:"title"},e.name),E.default.createElement("div",{className:"description"},l[i].icon,E.default.createElement("div",{className:"sub-description"},r))))})),0===o.length&&E.default.createElement(s.Text,{size:"sm",color:r.theme.colors.gray400},d("booking.searchBar.noResults"))))},pt=L.default.div`
480
+ position: relative;
481
+
482
+ ${c.MediaQueries.mbDown} {
483
+ width: 100%;
484
+ display: flex;
485
+ flex-direction: column;
486
+ gap: 12px;
487
+ }
488
+ `,ht=L.default.div`
489
+ position: absolute;
490
+ top: calc(100% + 2px);
491
+ width: calc(100% + 100px);
492
+ border-radius: 4px;
493
+ background: ${r.theme.colors.white};
494
+ box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);
495
+ z-index: 10;
496
+ max-height: 300px;
497
+ overflow: auto;
498
+
499
+ ${c.MediaQueries.mbDown} {
500
+ width: calc(100% + 64px);
501
+ left: -32px;
502
+ }
503
+ `,gt=L.default.li`
504
+ position: relative;
505
+ cursor: pointer;
506
+ padding: 12px 18px;
507
+ display: flex;
508
+ align-items: center;
509
+ gap: 14px;
510
+ overflow: hidden;
511
+
512
+ .image-item {
513
+ display: flex;
514
+ align-items: center;
515
+ width: 40px;
516
+ height: 40px;
517
+
518
+ img {
519
+ width: 100%;
520
+ object-fit: cover;
521
+ }
522
+
523
+ svg {
524
+ width: 40px;
525
+ }
526
+ }
527
+
528
+ ${({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 "}
529
+
530
+ & + li::before {
531
+ content: '';
532
+ position: absolute;
533
+ left: 18px;
534
+ right: 18px;
535
+ top: 0;
536
+ height: 1px;
537
+ background-color: ${r.theme.colors.neutral100};
538
+ }
539
+
540
+ &:not([data-is-denied='true']):hover {
541
+ background-color: ${r.theme.colors.neutral50};
542
+ }
543
+
544
+ &:last-child:hover {
545
+ border-bottom-right-radius: 6px;
546
+ border-bottom-left-radius: 6px;
547
+ }
548
+
549
+ &:first-child:hover {
550
+ border-top-right-radius: 6px;
551
+ border-top-left-radius: 6px;
552
+ }
553
+
554
+ &[data-is-denied='true'] {
555
+ cursor: not-allowed;
556
+ }
557
+ `;L.default(_)`
558
+ width: 12px;
559
+ height: 18px;
560
+ `;const ft=()=>E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},E.default.createElement("path",{d:"M8.98307 14.3333C7.87196 14.3333 6.92752 13.9445 6.14974 13.1667C5.37196 12.3889 4.98307 11.4445 4.98307 10.3333V9.96668C4.08307 9.85557 3.33041 9.45557 2.72507 8.76668C2.1193 8.07779 1.81641 7.26668 1.81641 6.33334V3.10001C1.81641 2.93334 1.87463 2.79157 1.99107 2.67468C2.10796 2.55823 2.24974 2.50001 2.41641 2.50001H3.81641V2.33334C3.81641 2.1889 3.86374 2.06934 3.95841 1.97468C4.05263 1.88045 4.17196 1.83334 4.31641 1.83334C4.46085 1.83334 4.58041 1.88045 4.67507 1.97468C4.7693 2.06934 4.81641 2.1889 4.81641 2.33334V3.66668C4.81641 3.81112 4.7693 3.93045 4.67507 4.02468C4.58041 4.11934 4.46085 4.16668 4.31641 4.16668C4.17196 4.16668 4.05263 4.11934 3.95841 4.02468C3.86374 3.93045 3.81641 3.81112 3.81641 3.66668V3.50001H2.81641V6.33334C2.81641 7.06668 3.07752 7.69445 3.59974 8.21668C4.12196 8.7389 4.74974 9.00001 5.48307 9.00001C6.21641 9.00001 6.84418 8.7389 7.36641 8.21668C7.88863 7.69445 8.14974 7.06668 8.14974 6.33334V3.50001H7.14974V3.66668C7.14974 3.81112 7.10263 3.93045 7.00841 4.02468C6.91374 4.11934 6.79418 4.16668 6.64974 4.16668C6.5053 4.16668 6.38596 4.11934 6.29174 4.02468C6.19707 3.93045 6.14974 3.81112 6.14974 3.66668V2.33334C6.14974 2.1889 6.19707 2.06934 6.29174 1.97468C6.38596 1.88045 6.5053 1.83334 6.64974 1.83334C6.79418 1.83334 6.91374 1.88045 7.00841 1.97468C7.10263 2.06934 7.14974 2.1889 7.14974 2.33334V2.50001H8.54974C8.71641 2.50001 8.85818 2.55823 8.97507 2.67468C9.09152 2.79157 9.14974 2.93334 9.14974 3.10001V6.33334C9.14974 7.26668 8.84707 8.07779 8.24174 8.76668C7.63596 9.45557 6.88307 9.85557 5.98307 9.96668V10.3333C5.98307 11.1667 6.27485 11.8751 6.85841 12.4587C7.44152 13.0418 8.14974 13.3333 8.98307 13.3333C9.81641 13.3333 10.5249 13.0418 11.1084 12.4587C11.6915 11.8751 11.9831 11.1667 11.9831 10.3333V9.25001C11.6386 9.1389 11.3526 8.93601 11.1251 8.64134C10.8971 8.34712 10.7831 8.01112 10.7831 7.63334C10.7831 7.15557 10.9497 6.75001 11.2831 6.41668C11.6164 6.08334 12.0164 5.91668 12.4831 5.91668C12.9609 5.91668 13.3664 6.08334 13.6997 6.41668C14.0331 6.75001 14.1997 7.15557 14.1997 7.63334C14.1997 8.01112 14.086 8.34712 13.8584 8.64134C13.6304 8.93601 13.3386 9.1389 12.9831 9.25001V10.3333C12.9831 11.4445 12.5942 12.3889 11.8164 13.1667C11.0386 13.9445 10.0942 14.3333 8.98307 14.3333ZM12.4831 8.33334C12.6831 8.33334 12.8526 8.26401 12.9917 8.12534C13.1304 7.98623 13.1997 7.82223 13.1997 7.63334C13.1997 7.43334 13.1304 7.26401 12.9917 7.12534C12.8526 6.98623 12.6831 6.91668 12.4831 6.91668C12.2831 6.91668 12.1164 6.98623 11.9831 7.12534C11.8497 7.26401 11.7831 7.43334 11.7831 7.63334C11.7831 7.82223 11.8497 7.98623 11.9831 8.12534C12.1164 8.26401 12.2831 8.33334 12.4831 8.33334Z",fill:"#595959"})),mt=()=>E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},E.default.createElement("path",{d:"M6.86836 9.26489V10.2386C6.86836 10.509 6.96294 10.7389 7.15209 10.9283C7.34124 11.1176 7.57093 11.2122 7.84114 11.2122C8.11135 11.2122 8.34133 11.1176 8.53106 10.9283C8.7208 10.7389 8.81567 10.509 8.81567 10.2386V9.26489H9.78936C10.0598 9.26489 10.2897 9.17031 10.479 8.98116C10.6684 8.79201 10.763 8.56233 10.763 8.29211C10.763 8.0219 10.6684 7.79192 10.479 7.60219C10.2897 7.41245 10.0598 7.31758 9.78936 7.31758H8.81567V6.34389C8.81567 6.07343 8.72109 5.84354 8.53194 5.65422C8.34279 5.4649 8.11311 5.37024 7.84289 5.37024C7.57268 5.37024 7.3427 5.4649 7.15297 5.65422C6.96323 5.84354 6.86836 6.07343 6.86836 6.34389V7.31758H5.89467C5.62421 7.31758 5.39432 7.41216 5.205 7.60131C5.01568 7.79046 4.92102 8.02014 4.92102 8.29036C4.92102 8.56057 5.01568 8.79055 5.205 8.98028C5.39432 9.17002 5.62421 9.26489 5.89467 9.26489H6.86836ZM3.40809 14.1333C3.02086 14.1333 2.68938 13.9954 2.41364 13.7196C2.13788 13.4439 2 13.1124 2 12.7252V6.07426C2 5.85132 2.04987 5.64011 2.14961 5.44063C2.24936 5.24116 2.38723 5.07689 2.56323 4.94782L6.99718 1.61486C7.24323 1.42712 7.52444 1.33325 7.84081 1.33325C8.15718 1.33325 8.43919 1.42712 8.68685 1.61486L13.1208 4.94782C13.2968 5.07689 13.4347 5.24116 13.5344 5.44063C13.6342 5.64011 13.684 5.85132 13.684 6.07426V12.7252C13.684 13.1124 13.5462 13.4439 13.2704 13.7196C12.9947 13.9954 12.6632 14.1333 12.2759 14.1333H3.40809ZM3.40809 12.9649H12.2759C12.3459 12.9649 12.4033 12.9424 12.4482 12.8974C12.4932 12.8525 12.5156 12.7951 12.5156 12.7252V6.07426C12.5156 6.03431 12.5069 5.99811 12.4894 5.96566C12.4719 5.9332 12.4482 5.90449 12.4183 5.87953L7.98433 2.55406C7.94438 2.51911 7.89694 2.50164 7.84202 2.50164C7.78709 2.50164 7.73965 2.51911 7.69971 2.55406L3.26576 5.87953C3.2358 5.90449 3.21209 5.9332 3.1946 5.96566C3.17712 5.99811 3.16839 6.03431 3.16839 6.07426V12.7252C3.16839 12.7951 3.19086 12.8525 3.2358 12.8974C3.28075 12.9424 3.33818 12.9649 3.40809 12.9649Z",fill:"#595959"})),Ct=()=>E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},E.default.createElement("path",{d:"M7.99984 8.00004C8.3665 8.00004 8.68039 7.86949 8.9415 7.60837C9.20261 7.34726 9.33317 7.03337 9.33317 6.66671C9.33317 6.30004 9.20261 5.98615 8.9415 5.72504C8.68039 5.46393 8.3665 5.33337 7.99984 5.33337C7.63317 5.33337 7.31928 5.46393 7.05817 5.72504C6.79706 5.98615 6.6665 6.30004 6.6665 6.66671C6.6665 7.03337 6.79706 7.34726 7.05817 7.60837C7.31928 7.86949 7.63317 8.00004 7.99984 8.00004ZM7.99984 12.9C9.35539 11.6556 10.3609 10.525 11.0165 9.50837C11.6721 8.49171 11.9998 7.58893 11.9998 6.80004C11.9998 5.58893 11.6137 4.59726 10.8415 3.82504C10.0693 3.05282 9.12206 2.66671 7.99984 2.66671C6.87761 2.66671 5.93039 3.05282 5.15817 3.82504C4.38595 4.59726 3.99984 5.58893 3.99984 6.80004C3.99984 7.58893 4.32761 8.49171 4.98317 9.50837C5.63873 10.525 6.64428 11.6556 7.99984 12.9ZM7.99984 14.4167C7.91095 14.4167 7.82206 14.4 7.73317 14.3667C7.64428 14.3334 7.5665 14.2889 7.49984 14.2334C5.87761 12.8 4.6665 11.4695 3.8665 10.2417C3.0665 9.01393 2.6665 7.86671 2.6665 6.80004C2.6665 5.13337 3.20261 3.8056 4.27484 2.81671C5.34706 1.82782 6.58873 1.33337 7.99984 1.33337C9.41095 1.33337 10.6526 1.82782 11.7248 2.81671C12.7971 3.8056 13.3332 5.13337 13.3332 6.80004C13.3332 7.86671 12.9332 9.01393 12.1332 10.2417C11.3332 11.4695 10.1221 12.8 8.49984 14.2334C8.43317 14.2889 8.35539 14.3334 8.2665 14.3667C8.17761 14.4 8.08873 14.4167 7.99984 14.4167Z",fill:"#8C8C8C"})),bt=()=>E.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},E.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"})),yt=({state:e,isMobile:i,debouncedFetchSearchResults:n,selectedLocation:l,onSpecialtyClick:r,dispatch:c})=>{var d;const{t:u,locale:h}=a.useTranslations(),f=t.useRef(null),m=t.useMemo((()=>o.LOCALIZED_SLUGS[h]),[h]),C=t.useMemo((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:i?"border: 1px solid #d9d9d9":"none",height:i?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:i?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[i]),b=t.useCallback((function(e){console.log(e)}),[n,c]);return p.useOutsideClick(f,(()=>{c({type:at.ClickOutsideInputSpecialty})})),E.default.createElement(pt,{ref:f},E.default.createElement(g.Input.Wrapper,null,E.default.createElement(g.Input,{size:i?"md":"lg",placeholder:u("booking.searchPopup.specialties"),value:(null===(d=null==e?void 0:e.selectedSpecialty)||void 0===d?void 0:d.name)||"",rightSection:E.default.createElement(I,null),styles:C,onFocus:()=>c({type:at.FocusInputSpecialty}),onChange:e=>{b(e.target.value)}})),"specialty"===e.focused&&E.default.createElement(ht,null,E.default.createElement(gt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{r&&r({name:u("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:m.SPECIALTIES})}},E.default.createElement("div",{className:"image-item"},E.default.createElement(bt,null)),E.default.createElement(s.Text,{size:"md"},u("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>E.default.createElement(gt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),r&&r(Object.assign(Object.assign({},e),{total_doctor:0}))},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},E.default.createElement("div",{className:"image-item"},E.default.createElement("img",{src:e.thumbnail,alt:e.name})),E.default.createElement(s.Text,{size:"md"},e.name))))))},vt=({state:e,type:i,isMobile:o,initalSearchValue:n,typeInformation:l,debouncedFetchSearchResults:s,trackingAttributes:r,focusSearchInput:c,onSearch:d,dispatch:u})=>{var h;const{t:f}=a.useTranslations(),m=t.useRef(null),b=t.useMemo((()=>r?{"data-event-category":r.dataEventCategory,"data-event-action":r.dataEventAction,"data-event-label":r.dataEventLabel}:{}),[r]),y=t.useMemo((()=>"doctor"===i?f("booking.searchBar.placeholder.doctor"):"service"===i?f("booking.searchBar.placeholder.service"):"hospital"===i?f("booking.searchBar.placeholder.hospital"):"specialty"===i?f("booking.searchBar.placeholder.specialty"):""),[i]),v=t.useMemo((()=>({root:{flex:1}})),[]),x=t.useMemo((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),w=t.useMemo((()=>({input:{color:"#262626"}})),[]);p.useOutsideClick(m,(()=>{u({type:at.ClickOutsideInputSearch})}));const L=t.useCallback((function(t){u({type:at.ChangeInputSearch,payload:t}),"function"!=typeof d&&(t.trim().length>et[e.locale]||n||0===t.trim().length?s(t.trim(),e,i):(s.cancel(),u({type:at.DisplayInitialSearchResults})))}),[u,e,i]),S=t.useCallback((function(e){u({type:at.SelectSpecialty,payload:e}),c()}),[u]);return E.default.createElement(nt,{ref:m},"specialty"===i?E.default.createElement(g.Input.Wrapper,{styles:v},E.default.createElement(g.Input,{icon:E.default.createElement(C.Icon.Search,null),size:o?"md":"lg",placeholder:y,styles:w,onChange:e=>{L(e.target.value)}})):E.default.createElement(E.default.Fragment,null,o?E.default.createElement(E.default.Fragment,null,E.default.createElement(yt,{state:e,isMobile:o,dispatch:u,debouncedFetchSearchResults:s,onSpecialtyClick:S}),E.default.createElement(g.Input.Wrapper,{styles:v},E.default.createElement(g.Input,{icon:E.default.createElement(C.Icon.Search,null),size:"md",placeholder:y,onFocus:()=>u({type:at.FocusInputSearch}),onChange:e=>{L(e.target.value)}}))):E.default.createElement(g.Input.Wrapper,{styles:v},E.default.createElement(g.Input,Object.assign({icon:E.default.createElement(C.Icon.Search,null),size:"lg",placeholder:y,styles:x,name:"search-results",autoComplete:"off",onChange:e=>{L(e.target.value)},onFocus:()=>u({type:at.FocusInputSearch})},b,{rightSection:E.default.createElement(yt,{state:e,isMobile:o,dispatch:u,debouncedFetchSearchResults:s,onSpecialtyClick:S})}))),"search"===e.focused&&E.default.createElement(lt,null,E.default.createElement(ut,{type:i,state:e,results:(null===(h=e.searchResults)||void 0===h?void 0:h.searches)||[],location:e.selectedLocation.name,dispatch:u,typeInformation:l}))))},xt=L.default.div`
561
+ position: relative;
562
+
563
+ ${c.MediaQueries.mbDown} {
564
+ width: 100%;
565
+ display: flex;
566
+ flex-direction: column;
567
+ gap: 12px;
568
+ }
569
+ `,Et=L.default.div`
570
+ position: absolute;
571
+ top: calc(100% + 2px);
572
+ width: 100%;
573
+ border-radius: 4px;
574
+ background: ${r.theme.colors.white};
575
+ box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);
576
+ z-index: 10;
577
+
578
+ ${c.MediaQueries.mbDown} {
579
+ width: calc(100% + 64px);
580
+ left: -32px;
581
+ }
582
+ `,wt=L.default.li`
583
+ position: relative;
584
+ cursor: pointer;
585
+ padding: 12px 18px;
586
+ display: flex;
587
+ align-items: center;
588
+ gap: 14px;
589
+ overflow: hidden;
590
+
591
+ ${({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 "}
592
+
593
+ & + li::before {
594
+ content: '';
595
+ position: absolute;
596
+ left: 18px;
597
+ right: 18px;
598
+ top: 0;
599
+ height: 1px;
600
+ background-color: ${r.theme.colors.neutral100};
601
+ }
602
+
603
+ &:not([data-is-denied='true']):hover {
604
+ background-color: ${r.theme.colors.neutral50};
605
+ }
606
+
607
+ &:last-child:hover {
608
+ border-bottom-right-radius: 6px;
609
+ border-bottom-left-radius: 6px;
610
+ }
611
+
612
+ &:first-child:hover {
613
+ border-top-right-radius: 6px;
614
+ border-top-left-radius: 6px;
615
+ }
616
+
617
+ &[data-is-denied='true'] {
618
+ cursor: not-allowed;
619
+ }
620
+ `,Lt=L.default(_)`
621
+ width: 12px;
622
+ height: 18px;
623
+ `,St=({state:e,isMobile:i,debouncedFetchCitiesByKeyword:n,selectedLocation:l,trackingAttributes:c,onLocationClick:d,dispatch:u})=>{const{t:h,locale:f}=a.useTranslations(),m=t.useRef(null),C=t.useMemo((()=>c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}),[c]),b=t.useCallback((function(t){u({type:at.ChangeInputLocation,payload:t}),t.trim().length>et[e.locale]?n(t.trim()):(n.cancel(),u({type:at.DisplayInitialCities}))}),[n,u]);return p.useOutsideClick(m,(()=>{u({type:at.ClickOutsideInputLocation})})),E.default.createElement(xt,{ref:m},E.default.createElement(g.Input.Wrapper,null,E.default.createElement(g.Input,Object.assign({size:i?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>u({type:at.FocusInputLocation}),onChange:e=>{b(e.target.value)}},C))),"location"===e.focused&&E.default.createElement(Et,null,E.default.createElement(wt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;d&&d({name:h("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[f])||void 0===e?void 0:e.ALL})}},E.default.createElement(Lt,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},h("booking.searchBar.allLocations"))),e.cities.map((e=>E.default.createElement(wt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),d&&d(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},E.default.createElement(Lt,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},e.name))))))},Ot=L.default.div`
624
+ display: flex;
625
+ flex-wrap: wrap;
626
+ row-gap: 8px;
627
+ column-gap: 20px;
628
+ ${c.MediaQueries.mbDown} {
629
+ margin-top: 12px;
630
+ }
631
+ `,kt=L.default.div`
632
+ display: flex;
633
+ align-items: center;
634
+ border-radius: 8px;
635
+ border: 1px solid ${r.theme.colors.neutral100};
636
+ background: ${r.theme.colors.white};
637
+ padding: 8px 12px 8px 8px;
638
+ flex: 0 0 calc(33.3% - 13px);
639
+ gap: 12px;
640
+ cursor: pointer;
641
+
642
+ &:hover {
643
+ background: ${r.theme.colors.blue50};
644
+ }
645
+
646
+ ${c.MediaQueries.tdDown} {
647
+ flex: 0 0 calc(50% - 10px);
648
+ }
649
+
650
+ ${c.MediaQueries.mbDown} {
651
+ flex: 0 0 100%;
652
+ border: none;
653
+ }
654
+
655
+ .image-item {
656
+ display: flex;
657
+ align-items: center;
658
+ width: 40px;
659
+ height: 40px;
660
+
661
+ img {
662
+ width: 100%;
663
+ object-fit: cover;
664
+ }
665
+ }
666
+
667
+ .infor {
668
+ .title {
669
+ color: ${r.theme.colors.gray800};
670
+ font-size: 14px;
671
+ font-style: normal;
672
+ font-weight: 400;
673
+ line-height: 22px;
674
+ }
675
+
676
+ .description {
677
+ color: ${r.theme.colors.gray600};
678
+ font-size: 12px;
679
+ font-weight: 400;
680
+ line-height: 18px;
681
+ }
682
+ }
683
+ `,It=L.default(g.Divider)`
684
+ margin: 24px 0 !important;
685
+ `,Tt=L.default.div`
686
+ display: flex;
687
+ justify-content: center;
688
+ margin-top: 24px;
689
+ .show-more {
690
+ border-radius: 4px;
691
+ border: 1px solid ${r.theme.colors.neutral200};
692
+ padding: 12px 16px;
693
+ cursor: pointer;
694
+ display: inline-block;
695
+ color: ${r.theme.colors.gray800};
696
+ font-size: 16px;
697
+ font-weight: 600;
698
+ line-height: 24px;
699
+
700
+ ${c.MediaQueries.mbDown} {
701
+ width: 100%;
702
+ text-align: center;
703
+ }
704
+ }
705
+ `,Mt=({state:e,isMobile:i,specialties:n,isLoading:l,dispatch:c})=>{const{t:d,locale:u}=a.useTranslations(),{selectedLocation:p}=e,h=t.useMemo((()=>o.LOCALIZED_SLUGS[u]),[u]);return E.default.createElement(E.default.Fragment,null,!i&&E.default.createElement(It,{color:"#E4E8EC"}),E.default.createElement(Ot,null,n.map(((e,t)=>t>=15?E.default.createElement(E.default.Fragment,null):E.default.createElement(kt,{key:e.id,onClick:()=>(e=>{const t=`/${p.slug}/${h.DOCTOR}/${e}`;c({type:at.NavigateTo,payload:t})})(e.slug)},E.default.createElement("div",{className:"image-item"},E.default.createElement("img",{src:e.thumbnail,alt:e.name})),E.default.createElement("div",{className:"infor"},E.default.createElement("div",{className:"title"},e.name))))),0===n.length&&!l&&E.default.createElement(s.Text,{size:"sm",color:r.theme.colors.gray400},d("booking.searchBar.noResults")),l&&E.default.createElement(E.default.Fragment,null,E.default.createElement(g.Skeleton,{height:8,mt:10,radius:"xl",animate:!0}),E.default.createElement(g.Skeleton,{height:8,mt:10,radius:"xl",animate:!0}),E.default.createElement(g.Skeleton,{height:8,mt:10,radius:"xl",animate:!0}))),n.length>15&&E.default.createElement(Tt,null,E.default.createElement("div",{className:"show-more",onClick:()=>{const e=`/${h.SPECIALTIES}`;c({type:at.NavigateTo,payload:e})}},d("home.seeAll"))))},jt=L.default.div`
706
+ // display: flex;
707
+ display: none;
708
+ gap: 5px;
709
+ margin-top: 16px;
710
+ flex-wrap: wrap;
711
+ `,Rt=L.default.div`
712
+ color: ${r.theme.colors.gray600};
713
+ font-size: 14px;
714
+ font-weight: 600;
715
+ line-height: 22px;
716
+ padding: 4px 12px;
717
+ background: ${r.theme.colors.white};
718
+ border-radius: 32px;
719
+ cursor: pointer;
720
+ border: 1px solid ${r.theme.colors.white};
721
+ margin-bottom: 5px;
722
+
723
+ &.active {
724
+ border-color: ${r.theme.colors.neutral100};
725
+ background: #f7f9fc;
726
+ }
727
+
728
+ &.view-all {
729
+ border-radius: 32px;
730
+ border-color: ${r.theme.colors.blue50};
731
+ background: ${r.theme.colors.blue50};
732
+ color: ${r.theme.colors.blue600};
733
+
734
+ &:hover {
735
+ border-color: ${r.theme.colors.blue50};
736
+ background: ${r.theme.colors.blue50};
737
+ color: ${r.theme.colors.blue600};
738
+ }
739
+ }
740
+
741
+ &:hover {
742
+ border-color: ${r.theme.colors.neutral100};
743
+ background: #f7f9fc;
744
+ }
745
+ `,At=()=>E.default.createElement(jt,null,E.default.createElement(Rt,null,"Popular Specialties"),E.default.createElement(Rt,{className:"active"},"General Practitioner"),E.default.createElement(Rt,{className:"view-all"},"View all")),Nt=L.default.div`
746
+ background: rgba(255, 255, 255, 0.64);
747
+ backdrop-filter: blur(12px);
748
+ border-bottom: 1px solid ${r.theme.colors.neutral100};
749
+ `,Pt=({currentTab:e,isMobile:i,setCurrentTab:o})=>{const{t:n}=a.useTranslations(),l=t.useMemo((()=>({root:{overflowY:i?"hidden":"initial",overflowX:i?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:i?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:i?"14px":"16px",fontWeight:600,lineHeight:i?"22px":"24px"}})),[i]);return E.default.createElement(Nt,null,E.default.createElement(C.Container,null,E.default.createElement(g.Tabs,{value:e,onTabChange:e=>{o(e)},styles:l},E.default.createElement(g.Tabs.List,null,E.default.createElement(g.Tabs.Tab,{value:"hospital"},n("booking.searchPopup.hospitals")),E.default.createElement(g.Tabs.Tab,{value:"doctor"},n("booking.searchPopup.doctors")),E.default.createElement(g.Tabs.Tab,{value:"service"},n("booking.searchPopup.services")),E.default.createElement(g.Tabs.Tab,{value:"specialty"},n("booking.searchPopup.specialties"))))))};var Ft;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Ft||(Ft={}));var _t=Object.freeze({__proto__:null,get RedirectType(){return Ft}});exports.BookingSearchBar=({isMobile:i,careApiDomain:n,geoLocationPermission:l,geoLocationCoordinates:s,initialSelectedCity:r,initialSearchValue:c="",careFrontDomain:d="/care",isDebug:u=!1,askForGeolocationPermission:p=!1,gaTrackingSearchBar:g,gaTrackingLocationSearch:f,autoCompleteDisabled:m=!1,inputSearchPlaceholder:C="",isOptionAllLocation:b=!1,hideResults:y=[],isNavResultItem:v=!0,routerPush:x,onGeoLocationPermissionChange:L,onSearch:S,onChangeLocation:O})=>{const{t:k,locale:I}=a.useTranslations(),N=t.useRef(null),F=t.useRef(null),[_,$]=t.useState(void 0),[D,B]=t.useState(!1),{geoLocationPermission:V,geoLocationCoordinates:H,requestGeoLocation:z}=T(),[K,G]=t.useReducer(Ce,ge,(e=>Object.assign(Object.assign({},e),{isDebug:u,isMobile:i,geoLocationPermission:l||V||"unset",geoLocationCoordinates:s||H||null,searchKeywords:c,initialSelectedCity:r||null,selectedLocation:r||e.selectedLocation||null,searchLocationKeywords:(null==r?void 0:r.name)||e.searchLocationKeywords,autoCompleteDisabled:m,inputSearchPlaceholder:C,locale:I}))),{navigateTo:U,focused:Q,isLoadingCities:q,cities:Y,searchKeywords:W,geoLocationPermission:J,selectedLocation:X,initialSelectedCity:ee,defaultCity:te,searchResults:ae,isLoadingSearchResults:ie,isMobileModalOpened:oe,inputSearchPlaceholder:ne}=K,{fetchCitiesByLocation:se,fetchCitiesByKeyword:re,fetchSearchResults:ce}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const n=t.useCallback((function(t,o={}){const n=`${a}${t}`;return e({type:fe.FetchCitiesStart}),fetch(Ye(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:fe.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const l=[n(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&l.push(n(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(l).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:fe.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:fe.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,n){const l=`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:fe.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:c}=n;let d="";if(!r||!s)return void e({type:fe.FetchSearchResultsFinish});r.id===o.ID_OPTION_CURRENT_LOCATION?c||(d=s.id):d=r.id===o.ID_OPTION_ALL_LOCATION?"":r.id;const u=(null==c?void 0:c.lat)||"",p=(null==c?void 0:c.lng)||"";return fetch(Ye(l,{domain:a,searchType:"global",keyword:t.trim().length>he[i]?t.trim():"",city:d===o.ID_OPTION_CURRENT_LOCATION?"":d,lat:u,lng:p},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:fe.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:l,error:e})})).finally((()=>e({type:fe.FetchSearchResultsFinish})))}),[i,a,e])}}({dispatch:G,locale:I,careApiDomain:n}),de=t.useMemo((()=>{var e;return{id:o.ID_OPTION_CURRENT_LOCATION,name:k("booking.searchBar.currentLocation"),slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.CURRENT}}),[k,I]),ue=t.useMemo((()=>w.default(re,400)),[re]),me=t.useMemo((()=>w.default(ce,400)),[ce]);t.useEffect((()=>{""!==c&&c!==K.searchKeywords&&G({type:fe.UpdateInitialSearchValue,payload:c})}),[c]),t.useEffect((()=>{p&&(null==X?void 0:X.id)===o.ID_OPTION_CURRENT_LOCATION&&"unset"===J&&z()}),[p,X,J]),t.useEffect((()=>{l||J===V||("granted"===V&&H?G({type:fe.GrantGeoLocationPermission,payload:H}):"denied"===V&&G({type:fe.DenyGeoLocationPermission}))}),[J,V,H,l]),t.useEffect((()=>{U&&(x?x(U):window.location.href=`${d}${U}`)}),[U]);const be=t.useCallback((function(){G({type:fe.SelectCurrentLocation,payload:de})}),[k,G]);t.useEffect((()=>{var e;"denied"===J||ee||G({type:fe.SelectLocation,payload:{name:k("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.ALL}}),L&&L(J,K.geoLocationCoordinates),i&&"granted"===J&&X&&G({type:fe.FocusInputSearch}),se({coordinates:K.geoLocationCoordinates})}),[J]),t.useEffect((()=>{X&&te&&ce(K.searchKeywords,K)}),[X,te]),t.useEffect((()=>{C!==ne&&G({type:fe.SetInputSearchPlaceholder,payload:C})}),[C,ne]),t.useEffect((()=>{oe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[oe]);const ye=t.useCallback((function(e){"ms-MY"===I&&B(!0),G({type:fe.SelectLocation,payload:e}),"ms-MY"!==I&&Ee(),O&&O(e)}),[k,G]);function ve(){"ms-MY"===I&&B(!0),i&&"granted"!==K.geoLocationPermission?z():(be(),"ms-MY"!==I&&Ee())}function xe(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function we(){G({type:fe.CloseMobileModal})}function Le(){return"location"!==Q?null:E.default.createElement(Z,{isLoading:q,cities:Y,onLocationClick:ye,onCurrentLocationClick:ve,isLocationLoading:q,geoLocationPermission:J,selectedLocation:X,isOptionAllLocation:b})}function Se(){return"search"!==Q?null:K.autoCompleteDisabled?i?E.default.createElement(Oe,{onClick:()=>{S({cityId:K.selectedLocation.id,keyword:W}),we()}}):null:E.default.createElement(qe,{data:ae,state:K,dispatch:G,isMobile:!1,keyword:W,isLoading:ie,hideResults:y,isNavResultItem:v})}function Ie(){return E.default.createElement(ke,{isMobile:i,state:K,dispatch:G,debouncedFetchCitiesByKeyword:ue,debouncedFetchSearchResults:me,focusLocationInput:xe,focusSearchInput:Ee,renderLocationResults:Le,renderSearchResults:Se,trackingAttributes:g,locationTrackingAttributes:f,onSearch:S,initalSearchValue:c})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;$(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[$]),t.useEffect((()=>{if(X&&D&&"ms-MY"===I){const e=`/${X.slug}/hospital`;G({type:fe.NavigateTo,payload:e}),B(!1)}}),[D,I,X]),i?E.default.createElement(E.default.Fragment,null,E.default.createElement(P,null),E.default.createElement(A,{ref:F}),E.default.createElement(j,{id:"booking-search-bar",ref:N,"data-is-modal":i&&oe,style:{"--mobile-care-searchbar-height":oe&&_?`${_}px`:"100%"}},oe?E.default.createElement(E.default.Fragment,null,E.default.createElement(R,null,E.default.createElement(pe,{headingText:k("booking.searchBar.searchButton"),onLeftClick:we}),Ie()),Le(),Se()):E.default.createElement(le,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){F.current&&F.current.focus(),G({type:fe.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:Q,value:W,trackingAttributes:g,inputSearchPlaceholder:C}))):E.default.createElement(M,{id:"booking-search-bar",ref:N},Ie())},exports.BookingSearchBarV2=({isMobile:e,careApiDomain:i,geoLocationPermission:n,geoLocationCoordinates:l,initialSelectedCity:s,initialSearchValue:r="",careFrontDomain:c="/care",isDebug:d=!1,gaTrackingSearchBar:u,gaTrackingLocationSearch:p,autoCompleteDisabled:f=!1,inputSearchPlaceholder:m="",routerPush:C,onGeoLocationPermissionChange:b,onChangeLocation:y})=>{const{locale:v,t:x}=a.useTranslations(),L=t.useRef(null),[S,O]=t.useState("doctor"),{geoLocationPermission:k,geoLocationCoordinates:I}=T(),[M,j]=t.useReducer(ot,tt,(t=>Object.assign(Object.assign({},t),{isDebug:d,isMobile:e,geoLocationPermission:n||k||"unset",geoLocationCoordinates:l||I||null,searchKeywords:r,initialSelectedCity:s||null,selectedLocation:s||t.selectedLocation||null,searchLocationKeywords:(null==s?void 0:s.name)||t.searchLocationKeywords,autoCompleteDisabled:f,inputSearchPlaceholder:m,locale:v}))),{navigateTo:R,searchKeywords:A,geoLocationPermission:N,selectedLocation:P,selectedSpecialty:F,initialSelectedCity:_,searchResults:$,isLoadingSearchResults:D}=M,{fetchCitiesByLocation:B,fetchCitiesByKeyword:V,fetchSearchResults:H,fetchAllSpecialties:z}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const n=t.useCallback((function(t,o={}){const n=`${a}${t}`;return e({type:at.FetchCitiesStart}),fetch(Ye(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:at.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const l=[n(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&l.push(n(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(l).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:at.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:at.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,n,l){const s="specialty"===l?`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`:`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:at.FetchSearchResultsStart});const{defaultCity:r,selectedLocation:c,geoLocationCoordinates:d,selectedSpecialty:u}=n;let p="";if(!c||!r)return void e({type:at.FetchSearchResultsFinish});c.id===o.ID_OPTION_CURRENT_LOCATION?d||(p=r.id):p=c.id===o.ID_OPTION_ALL_LOCATION?"":c.id;const g=(null==d?void 0:d.lat)||"",f=(null==d?void 0:d.lng)||"",m=(null==u?void 0:u.id)||"";return fetch(Ye(s,{domain:a,searchType:l||"global",keyword:t.trim().length>et[i]?t.trim():"",city:p===o.ID_OPTION_CURRENT_LOCATION?"":p,lat:g,lng:f,specialty_id:m},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:at.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:s,error:e})})).finally((()=>e({type:at.FetchSearchResultsFinish})))}),[i,a,e]),fetchAllSpecialties:t.useCallback((function(){const t=`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`;return fetch(Ye(t,{domain:a,searchType:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:at.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:t,error:e})}))}),[i,a,e])}}({dispatch:j,locale:v,careApiDomain:i}),K=t.useMemo((()=>o.LOCALIZED_SLUGS[v]),[v]),G=t.useMemo((()=>({doctor:{name:x("booking.searchPopup.doctors"),icon:E.default.createElement(ft,null),slug:K.DOCTOR},service:{name:x("booking.searchPopup.services"),icon:E.default.createElement(mt,null),slug:K.SERVICE},hospital:{name:x("booking.searchPopup.hospitals"),icon:E.default.createElement(Ct,null),slug:K.HOSPITAL},specialty:{name:x("booking.searchPopup.specialties"),icon:E.default.createElement(bt,null),slug:K.SPECIALTIES}})),[S]),Z=t.useMemo((()=>w.default(V,400)),[V]),U=t.useMemo((()=>w.default(H,400)),[H]),Q=t.useCallback((function(e){j({type:at.SelectLocation,payload:e}),q(),y&&y(e)}),[x,j]);function q(){var e;L.current&&(null===(e=L.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return t.useEffect((()=>{var t;"denied"===N||_||j({type:at.SelectLocation,payload:{name:x("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(t=o.LOCALIZED_SLUGS[v])||void 0===t?void 0:t.ALL}}),b&&b(N,M.geoLocationCoordinates),e&&"granted"===N&&P&&j({type:at.FocusInputSearch}),B({coordinates:M.geoLocationCoordinates})}),[N]),t.useEffect((()=>{z()}),[]),t.useEffect((()=>{R&&(C?C(R):window.location.href=`${c}${R}`)}),[R]),t.useEffect((()=>{(P||F)&&H(M.searchKeywords,M,S)}),[P,F]),t.useEffect((()=>{U("",M,S)}),[S]),E.default.createElement(We,{ref:L},E.default.createElement(Pt,{currentTab:S,setCurrentTab:O,isMobile:e}),E.default.createElement(Je,null,E.default.createElement(Xe,null,E.default.createElement(g.Flex,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==S&&E.default.createElement(St,{state:M,isMobile:e,dispatch:j,debouncedFetchCitiesByKeyword:Z,selectedLocation:P,onLocationClick:Q,trackingAttributes:p}),E.default.createElement(vt,{type:S,isMobile:e,state:M,dispatch:j,debouncedFetchSearchResults:U,initalSearchValue:r,focusSearchInput:q,typeInformation:G,trackingAttributes:u}),E.default.createElement(g.Button,{size:e?"md":"lg",fullWidth:e,onClick:function(){const{slug:e}=G[S],t=`/${P.slug}/${e}?q=${A}`;j({type:at.NavigateTo,payload:t})},styles:{root:{height:e?"40px":"48px"}}},x("booking.searchBar.searchButton"))),"specialty"!==S&&E.default.createElement(At,null),"specialty"===S&&E.default.createElement(Mt,{state:M,isMobile:e,dispatch:j,specialties:(null==$?void 0:$.specialties)||[],isLoading:D}))))},exports.ChevronDown=I,exports.types=_t;