@hhgtech/hhg-components 1.28.22 → 1.28.23

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 (350) hide show
  1. package/build/ChevronDown-2d5d0e3b.js +1 -0
  2. package/build/babyGrowth.js +2 -2
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components/navigationV2/components/atoms/HamburgerIcon.d.ts +1 -3
  6. package/build/components/navigationV2/components/molecules/Categories/index.d.ts +3 -1
  7. package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +8 -0
  8. package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +1 -0
  9. package/build/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +8 -0
  10. package/build/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +2 -0
  11. package/build/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -3
  12. package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -3
  13. package/build/components/navigationV2/index.d.ts +5 -0
  14. package/build/components/organisms/index.d.ts +1 -1
  15. package/build/components/organisms/navigationProfileButton/index.d.ts +2 -11
  16. package/build/components/organisms/navigationProfileButton/index.styled.d.ts +1 -1
  17. package/build/components/organisms/navigationProfileButton/profilePopup.d.ts +3 -15
  18. package/build/components/organisms/profileNavigation/icons/booking.d.ts +2 -0
  19. package/build/components/organisms/profileNavigation/icons/community.d.ts +2 -0
  20. package/build/components/organisms/profileNavigation/icons/dot.d.ts +2 -0
  21. package/build/components/organisms/profileNavigation/icons/eShop.d.ts +2 -0
  22. package/build/components/organisms/profileNavigation/icons/help.d.ts +2 -0
  23. package/build/components/organisms/profileNavigation/icons/logOut.d.ts +2 -0
  24. package/build/components/organisms/profileNavigation/icons/myHealth.d.ts +2 -0
  25. package/build/components/organisms/profileNavigation/icons/save.d.ts +2 -0
  26. package/build/components/organisms/profileNavigation/icons/settings.d.ts +2 -0
  27. package/build/components/organisms/profileNavigation/icons/user.d.ts +2 -0
  28. package/build/components/organisms/profileNavigation/index.d.ts +36 -0
  29. package/build/components/organisms/profileNavigation/index.styled.d.ts +9 -0
  30. package/build/components/organisms/profileNavigation/rank.d.ts +7 -0
  31. package/build/components/organisms/profileNavigation/userInfo.d.ts +6 -0
  32. package/build/components.js +1 -1
  33. package/build/{constants-a58058df.js → constants-8bcbbfa4.js} +1 -1
  34. package/build/{constants-fc006ac7.js → constants-f4c0aa09.js} +1 -1
  35. package/build/constants.js +1 -1
  36. package/build/{core-cd2c8618.js → core-e13a9991.js} +1 -1
  37. package/build/ecom.js +1 -1
  38. package/build/esm/ChevronDown-85611002.js +1 -0
  39. package/build/esm/babyGrowth.js +9 -9
  40. package/build/esm/cache.js +1 -1
  41. package/build/esm/care.js +1 -1
  42. package/build/esm/components/navigationV2/components/atoms/HamburgerIcon.d.ts +1 -3
  43. package/build/esm/components/navigationV2/components/molecules/Categories/index.d.ts +3 -1
  44. package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +8 -0
  45. package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +1 -0
  46. package/build/esm/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +8 -0
  47. package/build/esm/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +2 -0
  48. package/build/esm/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -3
  49. package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -3
  50. package/build/esm/components/navigationV2/index.d.ts +5 -0
  51. package/build/esm/components/organisms/index.d.ts +1 -1
  52. package/build/esm/components/organisms/navigationProfileButton/index.d.ts +2 -11
  53. package/build/esm/components/organisms/navigationProfileButton/index.styled.d.ts +1 -1
  54. package/build/esm/components/organisms/navigationProfileButton/profilePopup.d.ts +3 -15
  55. package/build/esm/components/organisms/profileNavigation/icons/booking.d.ts +2 -0
  56. package/build/esm/components/organisms/profileNavigation/icons/community.d.ts +2 -0
  57. package/build/esm/components/organisms/profileNavigation/icons/dot.d.ts +2 -0
  58. package/build/esm/components/organisms/profileNavigation/icons/eShop.d.ts +2 -0
  59. package/build/esm/components/organisms/profileNavigation/icons/help.d.ts +2 -0
  60. package/build/esm/components/organisms/profileNavigation/icons/logOut.d.ts +2 -0
  61. package/build/esm/components/organisms/profileNavigation/icons/myHealth.d.ts +2 -0
  62. package/build/esm/components/organisms/profileNavigation/icons/save.d.ts +2 -0
  63. package/build/esm/components/organisms/profileNavigation/icons/settings.d.ts +2 -0
  64. package/build/esm/components/organisms/profileNavigation/icons/user.d.ts +2 -0
  65. package/build/esm/components/organisms/profileNavigation/index.d.ts +36 -0
  66. package/build/esm/components/organisms/profileNavigation/index.styled.d.ts +9 -0
  67. package/build/esm/components/organisms/profileNavigation/rank.d.ts +7 -0
  68. package/build/esm/components/organisms/profileNavigation/userInfo.d.ts +6 -0
  69. package/build/esm/components.js +1 -1
  70. package/build/esm/{constants-9fb40a16.js → constants-0187e9c1.js} +1 -1
  71. package/build/esm/{constants-27004e00.js → constants-c312beee.js} +2 -2
  72. package/build/esm/constants.js +1 -1
  73. package/build/esm/core-2f7d6a78.js +1 -0
  74. package/build/esm/ecom.js +1 -1
  75. package/build/esm/footer.js +1 -1
  76. package/build/esm/gAssets.js +1 -1
  77. package/build/esm/getDynamicHealthTool-9c7dc42f.js +1 -0
  78. package/build/esm/{getSocialList-faff643c.js → getSocialList-757a53c6.js} +1 -1
  79. package/build/esm/hooks.js +1 -1
  80. package/build/esm/i18n/translationKeys.d.ts +1 -1
  81. package/build/esm/i18n-values/en-PH.js +1 -1
  82. package/build/esm/i18n-values/hi-IN.js +1 -1
  83. package/build/esm/i18n-values/id-ID.js +1 -1
  84. package/build/esm/i18n-values/km-KH.js +1 -1
  85. package/build/esm/i18n-values/ms-MY.js +1 -1
  86. package/build/esm/i18n-values/my-MM.js +1 -1
  87. package/build/esm/i18n-values/th-TH.js +1 -1
  88. package/build/esm/i18n-values/tl-PH.js +1 -1
  89. package/build/esm/i18n-values/vi-VN.js +1 -1
  90. package/build/esm/i18n-values/vi-VN_MB.js +1 -1
  91. package/build/esm/i18n-values/zh-TW.js +1 -1
  92. package/build/esm/i18n.js +1 -1
  93. package/build/esm/i18nV2.js +1 -1
  94. package/build/esm/{index-45ccfa83.js → index-034573a6.js} +1 -1
  95. package/build/esm/index-15c600d6.js +3533 -0
  96. package/build/esm/{index-1544c950.js → index-29bf362b.js} +1 -1
  97. package/build/esm/{index-f6066f6e.js → index-324430b9.js} +1 -1
  98. package/build/esm/{index-7ddebb37.js → index-3bc70679.js} +1 -1
  99. package/build/esm/{index-ce22b3b6.js → index-425a92c5.js} +1 -1
  100. package/build/esm/index-5a1f52da.js +1 -0
  101. package/build/esm/{index-631a0653.js → index-645ef204.js} +6 -6
  102. package/build/esm/{index-2df6f063.js → index-6a2a12a1.js} +1 -1
  103. package/build/esm/{index-3590ace9.js → index-77ec342a.js} +1 -1
  104. package/build/esm/{index-dab239b5.js → index-7fbbc93e.js} +4 -4
  105. package/build/esm/index-84edbddf.js +1755 -0
  106. package/build/esm/{index-6c4d5409.js → index-8b57ae3b.js} +1 -1
  107. package/build/esm/{index-e2470261.js → index-9a575100.js} +2 -2
  108. package/build/esm/{index-71cce804.js → index-b902806c.js} +1 -1
  109. package/build/esm/{index-0c8e02fe.js → index-b9920630.js} +1 -1
  110. package/build/esm/index-db3811a7.js +1 -0
  111. package/build/esm/{index-d1155f84.js → index-e12c492a.js} +1 -1
  112. package/build/esm/index-fe3254e0.js +1 -0
  113. package/build/esm/index.css +1 -1
  114. package/build/esm/index.js +1 -1
  115. package/build/esm/{index.styled-42d7d883.js → index.styled-6f781392.js} +1 -1
  116. package/build/esm/{index.styled-88839824.js → index.styled-7aa83a38.js} +1 -1
  117. package/build/esm/{index.styles-d0bb1e03.js → index.styles-1512f2b5.js} +2 -2
  118. package/build/esm/lead.js +1 -1
  119. package/build/esm/mantine.js +1 -1
  120. package/build/esm/misc.js +1 -1
  121. package/build/esm/navigation.js +1 -1
  122. package/build/esm/onboardingV2.js +9 -9
  123. package/build/esm/pwg.js +2 -2
  124. package/build/esm/{routing-e07218b4.js → routing-6b724e34.js} +1 -1
  125. package/build/esm/together.js +1 -1
  126. package/build/esm/{types-858772c3.js → types-2cf3ca1c.js} +1 -1
  127. package/build/esm/{types-04146982.js → types-c4319967.js} +137 -137
  128. package/build/esm/types.js +1 -1
  129. package/build/esm/{useCategory-8ca1a4e9.js → useCategory-efa124e8.js} +1 -1
  130. package/build/esm/useHealthToolCache-de46a889.js +1 -0
  131. package/build/esm/useRafState-2a610da2.js +1 -0
  132. package/build/esm/{useTranslations-5eee897f.js → useTranslations-dd0a13ad.js} +1 -1
  133. package/build/esm/{utils-5f14f492.js → utils-8ef9fdb1.js} +1 -1
  134. package/build/esm/{utils-ee3c1d92.js → utils-c9b03900.js} +1 -1
  135. package/build/esm/vaccination.js +1 -1
  136. package/build/footer.js +1 -1
  137. package/build/gAssets.js +1 -1
  138. package/build/getDynamicHealthTool-8b81f63c.js +1 -0
  139. package/build/{getSocialList-d9c58635.js → getSocialList-e857f598.js} +1 -1
  140. package/build/hooks.js +1 -1
  141. package/build/i18n/translationKeys.d.ts +1 -1
  142. package/build/i18n-values/en-PH.js +1 -1
  143. package/build/i18n-values/hi-IN.js +1 -1
  144. package/build/i18n-values/id-ID.js +1 -1
  145. package/build/i18n-values/km-KH.js +1 -1
  146. package/build/i18n-values/ms-MY.js +1 -1
  147. package/build/i18n-values/my-MM.js +1 -1
  148. package/build/i18n-values/th-TH.js +1 -1
  149. package/build/i18n-values/tl-PH.js +1 -1
  150. package/build/i18n-values/vi-VN.js +1 -1
  151. package/build/i18n-values/vi-VN_MB.js +1 -1
  152. package/build/i18n-values/zh-TW.js +1 -1
  153. package/build/i18n.js +1 -1
  154. package/build/i18nV2.js +1 -1
  155. package/build/index-02d5c385.js +1 -0
  156. package/build/{index-5df8e48c.js → index-2867dcac.js} +3 -3
  157. package/build/{index-e0e30fa5.js → index-2d3213a5.js} +1 -1
  158. package/build/{index-be672ee0.js → index-2e9c0de0.js} +1 -1
  159. package/build/{index-ac41e629.js → index-31783012.js} +1 -1
  160. package/build/{index-c1ac8c8e.js → index-433f3c65.js} +1 -1
  161. package/build/{index-5e7d2833.js → index-4647ac38.js} +3 -3
  162. package/build/{index-11a4804c.js → index-472cd02e.js} +1 -1
  163. package/build/{index-0fcca4fb.js → index-49ca569a.js} +1 -1
  164. package/build/{index-20bcddf8.js → index-4e95c4ce.js} +1 -1
  165. package/build/{index-d001b205.js → index-5d2cb060.js} +1 -1
  166. package/build/{index-5dd1d4d2.js → index-63670e0c.js} +1 -1
  167. package/build/index-66def10e.js +1755 -0
  168. package/build/index-78b4c580.js +3533 -0
  169. package/build/{index-bf2a9704.js → index-80ed081f.js} +1 -1
  170. package/build/{index-c9318869.js → index-87067120.js} +1 -1
  171. package/build/index-a0d69a3e.js +1 -0
  172. package/build/{index-a3e0d4da.js → index-da51ce3f.js} +1 -1
  173. package/build/{index-8e2adb6e.js → index-ff10154c.js} +1 -1
  174. package/build/index.css +1 -1
  175. package/build/index.js +1 -1
  176. package/build/{index.styled-bf57e3f5.js → index.styled-8b68590e.js} +1 -1
  177. package/build/{index.styled-c772d91a.js → index.styled-f58521f6.js} +1 -1
  178. package/build/{index.styles-c181cbd7.js → index.styles-2679f17e.js} +1 -1
  179. package/build/lead.js +1 -1
  180. package/build/mantine.js +1 -1
  181. package/build/misc.js +1 -1
  182. package/build/navigation.js +1 -1
  183. package/build/onboardingV2.js +1 -1
  184. package/build/pwg.js +1 -1
  185. package/build/{routing-bfbc957e.js → routing-d4f8bab4.js} +1 -1
  186. package/build/together.js +1 -1
  187. package/build/{types-e1279ec1.js → types-79e9ebf6.js} +1 -1
  188. package/build/{types-cda69406.js → types-f02ad287.js} +68 -68
  189. package/build/types.js +1 -1
  190. package/build/{useCategory-3227fe9f.js → useCategory-de21ce75.js} +1 -1
  191. package/build/{useHealthToolCache-4fcb8362.js → useHealthToolCache-1ec3b85b.js} +1 -1
  192. package/build/{useRafState-c0aff4b6.js → useRafState-de88a13b.js} +1 -1
  193. package/build/{useTranslations-838e0450.js → useTranslations-9940a064.js} +1 -1
  194. package/build/utils-754d3326.js +1 -0
  195. package/build/{utils-fde4413a.js → utils-7d5baedb.js} +1 -1
  196. package/build/vaccination.js +1 -1
  197. package/package.json +1 -1
  198. package/build/components/organisms/navigationProfileButton/popupWrapper.d.ts +0 -14
  199. package/build/esm/components/organisms/navigationProfileButton/popupWrapper.d.ts +0 -14
  200. package/build/esm/core-840ab80b.js +0 -1
  201. package/build/esm/getDynamicHealthTool-223693d9.js +0 -1
  202. package/build/esm/index-189110e3.js +0 -1753
  203. package/build/esm/index-88dd5ac1.js +0 -1
  204. package/build/esm/index-d3fa30fc.js +0 -1
  205. package/build/esm/index-e6f18bd6.js +0 -1
  206. package/build/esm/index-f7985048.js +0 -3533
  207. package/build/esm/useHealthToolCache-6d26332c.js +0 -1
  208. package/build/esm/useRafState-e6d4886b.js +0 -1
  209. package/build/getDynamicHealthTool-68c838ab.js +0 -1
  210. package/build/index-25ab108c.js +0 -3533
  211. package/build/index-5ad97c99.js +0 -1
  212. package/build/index-a7b26336.js +0 -1753
  213. package/build/index-d09f268e.js +0 -1
  214. package/build/utils-ffaba4fa.js +0 -1
  215. /package/build/{BMI_BOYS.percentile.monthly-96148bfe.js → BMI_BOYS.percentile.monthly-a3fbcc30.js} +0 -0
  216. /package/build/{BMI_BOYS.percentile.weekly-64f1bab8.js → BMI_BOYS.percentile.weekly-00a054a1.js} +0 -0
  217. /package/build/{BMI_BOYS.percentile.yearly-1da25eb1.js → BMI_BOYS.percentile.yearly-8bc1b868.js} +0 -0
  218. /package/build/{BMI_BOYS.zscore.monthly-74fdfe9c.js → BMI_BOYS.zscore.monthly-ccb51787.js} +0 -0
  219. /package/build/{BMI_BOYS.zscore.weekly-91b18364.js → BMI_BOYS.zscore.weekly-79db5fd6.js} +0 -0
  220. /package/build/{BMI_BOYS.zscore.yearly-e026f32d.js → BMI_BOYS.zscore.yearly-3df0688a.js} +0 -0
  221. /package/build/{BMI_GIRLS.percentile.monthly-b56bf71a.js → BMI_GIRLS.percentile.monthly-99222d30.js} +0 -0
  222. /package/build/{BMI_GIRLS.percentile.weekly-bc10109b.js → BMI_GIRLS.percentile.weekly-ed7e3ccc.js} +0 -0
  223. /package/build/{BMI_GIRLS.percentile.yearly-7a6cc381.js → BMI_GIRLS.percentile.yearly-f1054cd5.js} +0 -0
  224. /package/build/{BMI_GIRLS.zscore.monthly-8b6c0057.js → BMI_GIRLS.zscore.monthly-3968e189.js} +0 -0
  225. /package/build/{BMI_GIRLS.zscore.weekly-4d661e44.js → BMI_GIRLS.zscore.weekly-b61f50fa.js} +0 -0
  226. /package/build/{BMI_GIRLS.zscore.yearly-9f010c5b.js → BMI_GIRLS.zscore.yearly-9616687d.js} +0 -0
  227. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-9cd3e480.js → HEAD CIRCUM_BOYS.percentile.monthly-1427d1b8.js} +0 -0
  228. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-6824d1ba.js → HEAD CIRCUM_BOYS.percentile.weekly-02cedcc7.js} +0 -0
  229. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-df1fef27.js → HEAD CIRCUM_BOYS.percentile.yearly-decf814c.js} +0 -0
  230. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-7f696bc5.js → HEAD CIRCUM_BOYS.zscore.monthly-76c954a8.js} +0 -0
  231. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-233be92c.js → HEAD CIRCUM_BOYS.zscore.weekly-2b3850fa.js} +0 -0
  232. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-f9fdfc32.js → HEAD CIRCUM_BOYS.zscore.yearly-f2cc2c6f.js} +0 -0
  233. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-346b817a.js → HEAD CIRCUM_GIRLS.percentile.monthly-92f3aa2d.js} +0 -0
  234. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b57442c0.js → HEAD CIRCUM_GIRLS.percentile.weekly-c65d2a6c.js} +0 -0
  235. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4a4aa94b.js → HEAD CIRCUM_GIRLS.percentile.yearly-6fa678da.js} +0 -0
  236. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-6ce37fff.js → HEAD CIRCUM_GIRLS.zscore.monthly-07b25781.js} +0 -0
  237. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-3b5c8ced.js → HEAD CIRCUM_GIRLS.zscore.weekly-9b73aff8.js} +0 -0
  238. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d4e85a20.js → HEAD CIRCUM_GIRLS.zscore.yearly-693f90cd.js} +0 -0
  239. /package/build/{HEIGHT_BOYS.percentile.monthly-56ac170c.js → HEIGHT_BOYS.percentile.monthly-d2d7898b.js} +0 -0
  240. /package/build/{HEIGHT_BOYS.percentile.weekly-d4cd7a24.js → HEIGHT_BOYS.percentile.weekly-4f6f9210.js} +0 -0
  241. /package/build/{HEIGHT_BOYS.percentile.yearly-54c59e01.js → HEIGHT_BOYS.percentile.yearly-e2ef743a.js} +0 -0
  242. /package/build/{HEIGHT_BOYS.zscore.monthly-fd97186a.js → HEIGHT_BOYS.zscore.monthly-49f9202e.js} +0 -0
  243. /package/build/{HEIGHT_BOYS.zscore.weekly-04b5ec76.js → HEIGHT_BOYS.zscore.weekly-aef7df8c.js} +0 -0
  244. /package/build/{HEIGHT_BOYS.zscore.yearly-aa471b4c.js → HEIGHT_BOYS.zscore.yearly-87581894.js} +0 -0
  245. /package/build/{HEIGHT_GIRLS.percentile.monthly-ba164abd.js → HEIGHT_GIRLS.percentile.monthly-826096f2.js} +0 -0
  246. /package/build/{HEIGHT_GIRLS.percentile.weekly-5470787f.js → HEIGHT_GIRLS.percentile.weekly-3cf78569.js} +0 -0
  247. /package/build/{HEIGHT_GIRLS.percentile.yearly-b150c223.js → HEIGHT_GIRLS.percentile.yearly-8364b303.js} +0 -0
  248. /package/build/{HEIGHT_GIRLS.zscore.monthly-3c6d8076.js → HEIGHT_GIRLS.zscore.monthly-fec2ed12.js} +0 -0
  249. /package/build/{HEIGHT_GIRLS.zscore.weekly-feae71d1.js → HEIGHT_GIRLS.zscore.weekly-39df1c0b.js} +0 -0
  250. /package/build/{HEIGHT_GIRLS.zscore.yearly-6247aab0.js → HEIGHT_GIRLS.zscore.yearly-491bd234.js} +0 -0
  251. /package/build/{Onboarding-8183db2a.js → Onboarding-321532f3.js} +0 -0
  252. /package/build/{Visible-a93fccda.js → Visible-7ee562f5.js} +0 -0
  253. /package/build/{WEIGHT_BOYS.percentile.monthly-febba2e1.js → WEIGHT_BOYS.percentile.monthly-dcc2c0f1.js} +0 -0
  254. /package/build/{WEIGHT_BOYS.percentile.weekly-11e12732.js → WEIGHT_BOYS.percentile.weekly-9ef5093e.js} +0 -0
  255. /package/build/{WEIGHT_BOYS.percentile.yearly-ad063d36.js → WEIGHT_BOYS.percentile.yearly-a6d79d20.js} +0 -0
  256. /package/build/{WEIGHT_BOYS.zscore.monthly-83fab5a5.js → WEIGHT_BOYS.zscore.monthly-b9332d62.js} +0 -0
  257. /package/build/{WEIGHT_BOYS.zscore.weekly-b9d1324a.js → WEIGHT_BOYS.zscore.weekly-bbb7ef64.js} +0 -0
  258. /package/build/{WEIGHT_BOYS.zscore.yearly-ce1cf589.js → WEIGHT_BOYS.zscore.yearly-38c85120.js} +0 -0
  259. /package/build/{WEIGHT_GIRLS.percentile.monthly-9cddc118.js → WEIGHT_GIRLS.percentile.monthly-2e0d42c4.js} +0 -0
  260. /package/build/{WEIGHT_GIRLS.percentile.weekly-c09c1906.js → WEIGHT_GIRLS.percentile.weekly-37c0163c.js} +0 -0
  261. /package/build/{WEIGHT_GIRLS.percentile.yearly-50a8ce57.js → WEIGHT_GIRLS.percentile.yearly-48641f99.js} +0 -0
  262. /package/build/{WEIGHT_GIRLS.zscore.monthly-d3d49969.js → WEIGHT_GIRLS.zscore.monthly-f9900eb2.js} +0 -0
  263. /package/build/{WEIGHT_GIRLS.zscore.weekly-6c081cd2.js → WEIGHT_GIRLS.zscore.weekly-2818a7cd.js} +0 -0
  264. /package/build/{WEIGHT_GIRLS.zscore.yearly-5c52b15b.js → WEIGHT_GIRLS.zscore.yearly-8854987c.js} +0 -0
  265. /package/build/{cookieHelper-a6b97d90.js → cookieHelper-5a5ad9d8.js} +0 -0
  266. /package/build/{dataTransform-a4d4c1b0.js → dataTransform-d947b2cd.js} +0 -0
  267. /package/build/esm/{BMI_BOYS.percentile.monthly-90307381.js → BMI_BOYS.percentile.monthly-42a71347.js} +0 -0
  268. /package/build/esm/{BMI_BOYS.percentile.weekly-46d57501.js → BMI_BOYS.percentile.weekly-c438d483.js} +0 -0
  269. /package/build/esm/{BMI_BOYS.percentile.yearly-16d1e199.js → BMI_BOYS.percentile.yearly-a38980fd.js} +0 -0
  270. /package/build/esm/{BMI_BOYS.zscore.monthly-2ef690d3.js → BMI_BOYS.zscore.monthly-57b12fbe.js} +0 -0
  271. /package/build/esm/{BMI_BOYS.zscore.weekly-4ecba791.js → BMI_BOYS.zscore.weekly-2dc304ae.js} +0 -0
  272. /package/build/esm/{BMI_BOYS.zscore.yearly-199ac940.js → BMI_BOYS.zscore.yearly-7e1a3797.js} +0 -0
  273. /package/build/esm/{BMI_GIRLS.percentile.monthly-da510f93.js → BMI_GIRLS.percentile.monthly-88e2f842.js} +0 -0
  274. /package/build/esm/{BMI_GIRLS.percentile.weekly-39f68895.js → BMI_GIRLS.percentile.weekly-28db3d3a.js} +0 -0
  275. /package/build/esm/{BMI_GIRLS.percentile.yearly-6bf00a8d.js → BMI_GIRLS.percentile.yearly-3f111c39.js} +0 -0
  276. /package/build/esm/{BMI_GIRLS.zscore.monthly-1907baa9.js → BMI_GIRLS.zscore.monthly-42aa08a0.js} +0 -0
  277. /package/build/esm/{BMI_GIRLS.zscore.weekly-43228168.js → BMI_GIRLS.zscore.weekly-730cc3fb.js} +0 -0
  278. /package/build/esm/{BMI_GIRLS.zscore.yearly-d3e00018.js → BMI_GIRLS.zscore.yearly-974e68b4.js} +0 -0
  279. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a33f2acc.js → HEAD CIRCUM_BOYS.percentile.monthly-6735bf8c.js} +0 -0
  280. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2a8b05c8.js → HEAD CIRCUM_BOYS.percentile.weekly-218a2a8a.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-aa25970c.js → HEAD CIRCUM_BOYS.percentile.yearly-7c569f10.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-1dfefb19.js → HEAD CIRCUM_BOYS.zscore.monthly-c530f82d.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-23a756a4.js → HEAD CIRCUM_BOYS.zscore.weekly-2de64796.js} +0 -0
  284. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-abb82528.js → HEAD CIRCUM_BOYS.zscore.yearly-d9646af3.js} +0 -0
  285. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-8d29afce.js → HEAD CIRCUM_GIRLS.percentile.monthly-33a7b03d.js} +0 -0
  286. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-d088b3d9.js → HEAD CIRCUM_GIRLS.percentile.weekly-e159c306.js} +0 -0
  287. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-2bfa1b9d.js → HEAD CIRCUM_GIRLS.percentile.yearly-f5b9f524.js} +0 -0
  288. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-bffe5582.js → HEAD CIRCUM_GIRLS.zscore.monthly-0bb12d79.js} +0 -0
  289. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a6477dbf.js → HEAD CIRCUM_GIRLS.zscore.weekly-f006ab5c.js} +0 -0
  290. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-4b16228d.js → HEAD CIRCUM_GIRLS.zscore.yearly-7284414f.js} +0 -0
  291. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-dcc56215.js → HEIGHT_BOYS.percentile.monthly-fbd195d8.js} +0 -0
  292. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-746f9f5f.js → HEIGHT_BOYS.percentile.weekly-f430a5c1.js} +0 -0
  293. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-61101352.js → HEIGHT_BOYS.percentile.yearly-2d2865f4.js} +0 -0
  294. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-af541b00.js → HEIGHT_BOYS.zscore.monthly-9c09fe6a.js} +0 -0
  295. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-83f908c3.js → HEIGHT_BOYS.zscore.weekly-ce50be77.js} +0 -0
  296. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f1c33ecd.js → HEIGHT_BOYS.zscore.yearly-a864af3a.js} +0 -0
  297. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ae4fe175.js → HEIGHT_GIRLS.percentile.monthly-ac862726.js} +0 -0
  298. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0bdfa7f2.js → HEIGHT_GIRLS.percentile.weekly-b3b073a0.js} +0 -0
  299. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-630c67ac.js → HEIGHT_GIRLS.percentile.yearly-32f6f664.js} +0 -0
  300. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-e5be28b3.js → HEIGHT_GIRLS.zscore.monthly-9521e3b0.js} +0 -0
  301. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-a5fd6934.js → HEIGHT_GIRLS.zscore.weekly-ab5238fc.js} +0 -0
  302. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-15be82af.js → HEIGHT_GIRLS.zscore.yearly-a705e916.js} +0 -0
  303. /package/build/esm/{Onboarding-c4c73809.js → Onboarding-776a51ed.js} +0 -0
  304. /package/build/esm/{Visible-a9d70fee.js → Visible-0463b9e6.js} +0 -0
  305. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-682b522e.js → WEIGHT_BOYS.percentile.monthly-c9ff5588.js} +0 -0
  306. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-316f7e6f.js → WEIGHT_BOYS.percentile.weekly-989fafb4.js} +0 -0
  307. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-1745e62e.js → WEIGHT_BOYS.percentile.yearly-164f75e1.js} +0 -0
  308. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-333c0829.js → WEIGHT_BOYS.zscore.monthly-b270ca2c.js} +0 -0
  309. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-354b49e7.js → WEIGHT_BOYS.zscore.weekly-f7e70c1f.js} +0 -0
  310. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-926c20df.js → WEIGHT_BOYS.zscore.yearly-32dda9e5.js} +0 -0
  311. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-3688887b.js → WEIGHT_GIRLS.percentile.monthly-718a8734.js} +0 -0
  312. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-7438a8e0.js → WEIGHT_GIRLS.percentile.weekly-402cdbff.js} +0 -0
  313. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-03443cdc.js → WEIGHT_GIRLS.percentile.yearly-942157cf.js} +0 -0
  314. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-d43cd306.js → WEIGHT_GIRLS.zscore.monthly-08c0f7e5.js} +0 -0
  315. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-82c94e23.js → WEIGHT_GIRLS.zscore.weekly-80a0dee3.js} +0 -0
  316. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-0d972eaa.js → WEIGHT_GIRLS.zscore.yearly-7b8c6a62.js} +0 -0
  317. /package/build/esm/{cookieHelper-e8bc8745.js → cookieHelper-df1c13f9.js} +0 -0
  318. /package/build/esm/{dataTransform-13a940e6.js → dataTransform-b9b83d6a.js} +0 -0
  319. /package/build/esm/{index-af869181.js → index-08fb1171.js} +0 -0
  320. /package/build/esm/{index-1022850c.js → index-2c84d24b.js} +0 -0
  321. /package/build/esm/{index-0f40266a.js → index-65e5542a.js} +0 -0
  322. /package/build/esm/{isProduction-abad368e.js → isProduction-f42d4af9.js} +0 -0
  323. /package/build/esm/{localizeNumberFormat-7317ce83.js → localizeNumberFormat-5d8fed7e.js} +0 -0
  324. /package/build/esm/{normalizeLink-bdd913b5.js → normalizeLink-83bc2fa0.js} +0 -0
  325. /package/build/esm/{number-d63081a4.js → number-6083d486.js} +0 -0
  326. /package/build/esm/{paths-cd6362b0.js → paths-f457e9f9.js} +0 -0
  327. /package/build/esm/{screenSizeContext-6250deff.js → screenSizeContext-d394cc53.js} +0 -0
  328. /package/build/esm/{theme-b742a282.js → theme-e05003ce.js} +0 -0
  329. /package/build/esm/{translationsContext-8a8e6199.js → translationsContext-f924f41c.js} +0 -0
  330. /package/build/esm/{tslib.es6-e88b4ce3.js → tslib.es6-d0d7aa00.js} +0 -0
  331. /package/build/esm/{types-c068166d.js → types-69c2911d.js} +0 -0
  332. /package/build/esm/{useIsInit-76e26578.js → useIsInit-af8a02c8.js} +0 -0
  333. /package/build/esm/{useOutsideClick-f7dbc152.js → useOutsideClick-631f70f3.js} +0 -0
  334. /package/build/esm/{useScrollbarSize-97c781c0.js → useScrollbarSize-934266e1.js} +0 -0
  335. /package/build/{index-d43c1ecb.js → index-5eb6c97e.js} +0 -0
  336. /package/build/{index-66a8ec44.js → index-960cb1db.js} +0 -0
  337. /package/build/{index-0a58af1c.js → index-d2a44d40.js} +0 -0
  338. /package/build/{isProduction-80fbe7d1.js → isProduction-48b088ec.js} +0 -0
  339. /package/build/{localizeNumberFormat-ed7a991c.js → localizeNumberFormat-232b7837.js} +0 -0
  340. /package/build/{normalizeLink-58a3de31.js → normalizeLink-a0154e50.js} +0 -0
  341. /package/build/{number-e106e56a.js → number-98c7d75a.js} +0 -0
  342. /package/build/{paths-919284be.js → paths-c1a7d034.js} +0 -0
  343. /package/build/{screenSizeContext-12b5f9c1.js → screenSizeContext-a1a2dd8f.js} +0 -0
  344. /package/build/{theme-ffd03ae2.js → theme-bcfc4bf1.js} +0 -0
  345. /package/build/{translationsContext-58fe2efa.js → translationsContext-198efa0b.js} +0 -0
  346. /package/build/{tslib.es6-f42d0024.js → tslib.es6-42b6a4e4.js} +0 -0
  347. /package/build/{types-0b03b0f3.js → types-bb264b4a.js} +0 -0
  348. /package/build/{useIsInit-3dcba450.js → useIsInit-9ccd66c4.js} +0 -0
  349. /package/build/{useOutsideClick-a31510e0.js → useOutsideClick-b300ce50.js} +0 -0
  350. /package/build/{useScrollbarSize-61d1478e.js → useScrollbarSize-523cb659.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{useState as a,useCallback as o,useMemo as n,useEffect as s,useRef as l,useReducer as r}from"react";import{u as c}from"./useTranslations-5eee897f.js";import d from"lodash/debounce";import{I as p,a as u,f as h,M as g,g as m,C}from"./constants-27004e00.js";import{I as b}from"./index-7ddebb37.js";import y,{createGlobalStyle as f}from"styled-components";import{T as v,I as x}from"./index-71cce804.js";import{t as E}from"./theme-b742a282.js";import S from"lodash/shuffle";import{a as w}from"./useOutsideClick-f7dbc152.js";import{M as L}from"./screenSizeContext-6250deff.js";import k from"react-loading-skeleton";import{P as O}from"./paths-cd6362b0.js";import{Skeleton as j,Input as I,Divider as $,Tabs as F,Flex as M,Button as R}from"@mantine/core";import{e as T,d as P}from"./index-1544c950.js";import{g as N,s as A,d as B}from"./cookieHelper-e8bc8745.js";import{C as V}from"./index-af869181.js";import D from"string-format";const K=e=>t.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),t.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 z(){const[e,t]=a((()=>{if("undefined"==typeof window)return"unset";if(N(T))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,s]=a((()=>{if("undefined"==typeof window)return null;const e=N(T);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};A(T,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{B(T),t("denied")}))}),[]);return n((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const _=y.div``,H=y.div`
1
+ import{a as e}from"./tslib.es6-d0d7aa00.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-dd0a13ad.js";import c from"lodash/debounce";import{I as d,a as p,f as u,M as h,g,C as m}from"./constants-c312beee.js";import{I as C}from"./index-3bc70679.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f,I as v}from"./index-b902806c.js";import{t as x}from"./theme-e05003ce.js";import S from"lodash/shuffle";import{a as E}from"./useOutsideClick-631f70f3.js";import{M as w}from"./screenSizeContext-d394cc53.js";import L from"react-loading-skeleton";import{P as k}from"./paths-f457e9f9.js";import{Skeleton as O,Input as j,Divider as I,Tabs as $,Flex as F,Button as M}from"@mantine/core";import{U as R,d as T}from"./index-29bf362b.js";import{g as P,s as N,d as A}from"./cookieHelper-df1c13f9.js";import{C as B}from"./index-08fb1171.js";import{C as V}from"./ChevronDown-85611002.js";import D from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(P(R))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=P(R);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};N(R,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{A(R),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -11,17 +11,17 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
11
11
  background-color: white;
12
12
  z-index: var(--searchbar-z-index);
13
13
  }
14
- `,G=y.section``,Z=y.input`
14
+ `,H=b.section``,G=b.input`
15
15
  position: fixed;
16
16
  left: -100%;
17
17
  top: -100%;
18
- `,Y=y(b)`
18
+ `,Z=b(C)`
19
19
  #booking-search-bar & {
20
20
  input {
21
21
  font-size: 16px;
22
22
  }
23
23
  }
24
- `,U=f`
24
+ `,Y=y`
25
25
  .care-popup-open {
26
26
  overflow: hidden;
27
27
  position: fixed;
@@ -35,7 +35,7 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
35
35
  z-index: 2;
36
36
  }
37
37
  }
38
- `,W=({className:e,color:t})=>i.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},i.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),Q=({className:e,color:t})=>i.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},i.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"})),q=({className:e,color:t})=>i.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},i.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"}),i.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),J=({width:e,height:t})=>i.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none"},i.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),X=y.li`
38
+ `,U=({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("path",{d:"M18 6L6 18",stroke:i||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M6 6L18 18",stroke:i||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),W=({className:e,color:i})=>t.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},t.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:i||"currentColor"})),Q=({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:i||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M20 20L16 16",stroke:i||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),q=({width:e,height:i})=>t.createElement("svg",{width:e||30,height:i||30,viewBox:"0 0 30 30",fill:"none"},t.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),J=b.li`
39
39
  display: flex;
40
40
  align-items: center;
41
41
  gap: 12px;
@@ -56,9 +56,9 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
56
56
  right: 18px;
57
57
  top: 0;
58
58
  height: 1px;
59
- background-color: ${E.colors.neutral100};
59
+ background-color: ${x.colors.neutral100};
60
60
  }
61
- `,ee="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\")",te=y.div`
61
+ `,X="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\")",ee=b.div`
62
62
  display: flex;
63
63
  position: absolute;
64
64
  top: 48px;
@@ -70,19 +70,19 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
70
70
  background-color: white;
71
71
  z-index: 30;
72
72
 
73
- ${L.tdDown} {
73
+ ${w.tdDown} {
74
74
  position: relative;
75
75
  top: 0;
76
76
  box-shadow: initial;
77
77
  }
78
- `,ie=y.ul`
78
+ `,te=b.ul`
79
79
  width: 100%;
80
80
  max-height: 600px;
81
81
  overflow-y: auto;
82
- `,ae=y(Q)`
82
+ `,ie=b(W)`
83
83
  width: 12px;
84
84
  height: 18px;
85
- `,oe=y.li`
85
+ `,ae=b.li`
86
86
  position: relative;
87
87
  cursor: pointer;
88
88
  padding: 12px 18px;
@@ -91,7 +91,7 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
91
91
  gap: 14px;
92
92
  overflow: hidden;
93
93
 
94
- ${({isSelected:e})=>e&&`\n &::after {\n content: ${ee};\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n `}
94
+ ${({isSelected:e})=>e&&`\n &::after {\n content: ${X};\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n `}
95
95
 
96
96
  & + li::before {
97
97
  content: '';
@@ -100,11 +100,11 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
100
100
  right: 18px;
101
101
  top: 0;
102
102
  height: 1px;
103
- background-color: ${E.colors.neutral100};
103
+ background-color: ${x.colors.neutral100};
104
104
  }
105
105
 
106
106
  &:not([data-is-denied='true']):hover {
107
- background-color: ${E.colors.neutral50};
107
+ background-color: ${x.colors.neutral50};
108
108
  }
109
109
 
110
110
  &:last-child:hover {
@@ -120,17 +120,17 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
120
120
  &[data-is-denied='true'] {
121
121
  cursor: not-allowed;
122
122
  }
123
- `,ne=y((({count:e,className:t})=>i.createElement(i.Fragment,null,[...Array(e)].map(((e,a)=>i.createElement(X,{className:t,key:a},i.createElement(k,{count:1,height:32}),i.createElement(k,{count:1,height:24})))))))`
123
+ `,oe=b((({count:e,className:i})=>t.createElement(t.Fragment,null,[...Array(e)].map(((e,a)=>t.createElement(J,{className:i,key:a},t.createElement(L,{count:1,height:32}),t.createElement(L,{count:1,height:24})))))))`
124
124
  &:first-child {
125
125
  padding-top: 18px;
126
126
  }
127
- `,se=({cities:e,isLoading:t,onLocationClick:a,selectedLocation:o})=>{const{t:n,locale:s}=c();return i.createElement(te,{"data-testid":"location-search-results"},i.createElement(ie,null,t?i.createElement(ne,{count:5}):!e||e.length<1?i.createElement(i.Fragment,null,i.createElement(oe,{"data-is-denied":"true"},i.createElement(v,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):i.createElement(i.Fragment,null,i.createElement(oe,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;a&&a({name:n("booking.searchBar.allLocations"),id:p,slug:null===(e=u[s])||void 0===e?void 0:e.ALL})}},i.createElement(ae,{color:E.colors.neutral400}),i.createElement(v,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>i.createElement(oe,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),a&&a(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==o?void 0:o.id)===e.id},i.createElement(ae,{color:E.colors.neutral400}),i.createElement(v,{size:"md"},e.name)))))))},le="TYPE_CHARACTER",re="REMOVE_CHARACTER",ce="REMOVE_ALL",de="REMOVE_LAST_VISIBLE_NODE",pe="PAUSE_FOR",ue="CHANGE_DELETE_SPEED",he="CHANGE_DELAY",ge="PASTE_STRING",me=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,Ce="TEXT_NODE";class be{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(pe,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:i}=this.options||{},a="function"==typeof i?i(e):e.split("");this.typeCharacters(a,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(ge,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(ce,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(ue,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(he,{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(re);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(le,{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(re)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:a}=this.options;return a?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,a)=>{const o={eventName:e,eventArgs:t||{}};return this.state[a]=i?[o,...this.state[a]]:[...this.state[a],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 i=[...this.state.eventQueue],a=i.shift();let o=0;if(o=a.eventName===de||a.eventName===re?"natural"===this.options.deleteSpeed?me(40,80):this.options.deleteSpeed:"natural"===this.options.delay?me(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=a;switch(n){case ge:case le:{const{character:e}=s,t=document.createTextNode(e);let i=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(i=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:Ce,character:e,node:i}];break}case re:i.unshift({eventName:de,eventArgs:{removingCharacterNode:!0}});break;case pe:{const{ms:e}=a.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case ce:{const{visibleNodes:e}=this.state,{speed:t}=s,a=[];t&&a.push({eventName:ue,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)a.push({eventName:de,eventArgs:{removingCharacterNode:!1}});t&&a.push({eventName:ue,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...a);break}case de: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 ue:this.options.deleteSpeed=a.eventArgs.speed;break;case he:this.options.delay=a.eventArgs.delay}this.options.loop&&(a.eventName===de||a.eventArgs&&a.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,a])),this.state.eventQueue=i,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(ce,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function ye({inputRef:e,wrapperRef:t,disabled:i}){const{t:a,locale:o}=c(),l=n((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==o&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),S(e).map((e=>a(e)))}),[a,o]);function r(e){const t=p();return t&&(t.placeholder=t.placeholder+e),null}function d(){const e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return e&&e.current?e.current:t&&t.current&&t.current.querySelector("input")||null}s((()=>{if(i)return;const e=p();e&&(e.placeholder="",new be({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:d}))}),[e,t])}const fe=y.div`
127
+ `,ne=({cities:e,isLoading:i,onLocationClick:a,selectedLocation:o})=>{const{t:n,locale:s}=r();return t.createElement(ee,{"data-testid":"location-search-results"},t.createElement(te,null,i?t.createElement(oe,{count:5}):!e||e.length<1?t.createElement(t.Fragment,null,t.createElement(ae,{"data-is-denied":"true"},t.createElement(f,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):t.createElement(t.Fragment,null,t.createElement(ae,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;a&&a({name:n("booking.searchBar.allLocations"),id:d,slug:null===(e=p[s])||void 0===e?void 0:e.ALL})}},t.createElement(ie,{color:x.colors.neutral400}),t.createElement(f,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>t.createElement(ae,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),a&&a(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==o?void 0:o.id)===e.id},t.createElement(ie,{color:x.colors.neutral400}),t.createElement(f,{size:"md"},e.name)))))))},se="TYPE_CHARACTER",le="REMOVE_CHARACTER",re="REMOVE_ALL",ce="REMOVE_LAST_VISIBLE_NODE",de="PAUSE_FOR",pe="CHANGE_DELETE_SPEED",ue="CHANGE_DELAY",he="PASTE_STRING",ge=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,me="TEXT_NODE";class Ce{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(de,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:i}=this.options||{},a="function"==typeof i?i(e):e.split("");this.typeCharacters(a,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(he,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(re,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(pe,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(ue,{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(le);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(se,{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(le)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:a}=this.options;return a?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,a)=>{const o={eventName:e,eventArgs:t||{}};return this.state[a]=i?[o,...this.state[a]]:[...this.state[a],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 i=[...this.state.eventQueue],a=i.shift();let o=0;if(o=a.eventName===ce||a.eventName===le?"natural"===this.options.deleteSpeed?ge(40,80):this.options.deleteSpeed:"natural"===this.options.delay?ge(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=a;switch(n){case he:case se:{const{character:e}=s,t=document.createTextNode(e);let i=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(i=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:me,character:e,node:i}];break}case le:i.unshift({eventName:ce,eventArgs:{removingCharacterNode:!0}});break;case de:{const{ms:e}=a.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case re:{const{visibleNodes:e}=this.state,{speed:t}=s,a=[];t&&a.push({eventName:pe,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)a.push({eventName:ce,eventArgs:{removingCharacterNode:!1}});t&&a.push({eventName:pe,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...a);break}case ce: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 pe:this.options.deleteSpeed=a.eventArgs.speed;break;case ue:this.options.delay=a.eventArgs.delay}this.options.loop&&(a.eventName===ce||a.eventArgs&&a.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,a])),this.state.eventQueue=i,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(re,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function be({inputRef:e,wrapperRef:t,disabled:i}){const{t:a,locale:s}=r(),l=o((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==s&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),S(e).map((e=>a(e)))}),[a,s]);function c(e){const t=p();return t&&(t.placeholder=t.placeholder+e),null}function d(){const e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return e&&e.current?e.current:t&&t.current&&t.current.querySelector("input")||null}n((()=>{if(i)return;const e=p();e&&(e.placeholder="",new Ce({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:c,onRemoveNode:d}))}),[e,t])}const ye=b.div`
128
128
  user-select: none;
129
129
  input {
130
130
  pointer-events: none;
131
131
  background-color: white;
132
132
  }
133
- `;function ve({focused:e,value:t="",onClick:a,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:r}=c(),d=l(null);ye({wrapperRef:d,disabled:!!s});const p=n((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return i.createElement(fe,Object.assign({onClick:()=>a&&a(),ref:d},p),i.createElement(Y,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:i.createElement(q,{color:E.colors.gray400}),placeholder:r("booking.searchBar.searchInput.placeholder"),value:t,size:"md"}))}const xe=y.header`
133
+ `;function fe({focused:e,value:i="",onClick:a,trackingAttributes:n,inputSearchPlaceholder:l}){const{t:c}=r(),d=s(null);be({wrapperRef:d,disabled:!!l});const p=o((()=>n?{"data-event-category":n.dataEventCategory,"data-event-action":n.dataEventAction,"data-event-label":n.dataEventLabel}:{}),[n]);return t.createElement(ye,Object.assign({onClick:()=>a&&a(),ref:d},p),t.createElement(Z,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:t.createElement(Q,{color:x.colors.gray400}),placeholder:c("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}const ve=b.header`
134
134
  display: flex;
135
135
  height: 64px;
136
136
  align-items: center;
@@ -141,30 +141,30 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
141
141
  background-color: white;
142
142
  top: 0;
143
143
  left: 0;
144
- `,Ee=y.div`
144
+ `,xe=b.div`
145
145
  display: inline-flex;
146
146
  flex: 1;
147
147
  justify-content: flex-end;
148
148
  cursor: pointer;
149
149
  text-decoration: underline;
150
- `,Se=y.div`
150
+ `,Se=b.div`
151
151
  display: flex;
152
152
  align-items: center;
153
153
  margin-left: 16px;
154
154
  cursor: pointer;
155
- `,we=y.div`
155
+ `,Ee=b.div`
156
156
  width: 100%;
157
157
  margin-left: 24px;
158
- `,Le=y(v)`
159
- color: ${E.colors.secondaryDark};
158
+ `,we=b(f)`
159
+ color: ${x.colors.secondaryDark};
160
160
  text-align: start;
161
- `,ke=({className:e,onLeftClick:t,headingText:a,onRightClick:o,iconLeft:n,textRight:s})=>i.createElement(xe,{className:e},i.createElement(Se,{onClick:t},n||i.createElement(W,{color:E.colors.gray800})),i.createElement(we,null,i.createElement(Le,{size:"md",weight:"bold"},a)),i.createElement(Ee,{onClick:o},s&&i.createElement("p",null,s))),Oe={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},je={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 Ie;function $e(e){const{selectedLocation:t,searchLocationKeywords:i}=e;return t&&i!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function Fe(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case Ie.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case Ie.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:$e(Object.assign(Object.assign({},e),{focused:"none"}));case Ie.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case Ie.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===h&&(t.searchLocationKeywords=""),t}case Ie.FocusInputSearch:const a=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?$e(a):a;case Ie.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case Ie.ChangeInputSearch:{const i=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:i,isLoadingSearchResults:i.trim().length>Oe[e.locale]})}case Ie.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case Ie.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case Ie.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case Ie.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case Ie.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case Ie.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case Ie.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case Ie.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case Ie.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case Ie.FetchSearchResultsComplete:{const i=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(i.initialSearchResults=t.payload),i}case Ie.FetchCitiesByGeoIpComplete:{let{cities:i}=t.payload;const{default:a}=t.payload;i=i.filter((e=>e.id!==a.id)),i.unshift(a),e.initialSelectedCity&&!i.find((t=>t.id===e.initialSelectedCity.id))&&i.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:a,initialCities:i,cities:i});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=a,o.searchLocationKeywords=a.name),o}case Ie.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case Ie.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case Ie.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case Ie.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case Ie.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case Ie.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case Ie.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case Ie.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case Ie.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"}(Ie||(Ie={}));const Me=y.div`
161
+ `,Le=({className:e,onLeftClick:i,headingText:a,onRightClick:o,iconLeft:n,textRight:s})=>t.createElement(ve,{className:e},t.createElement(Se,{onClick:i},n||t.createElement(U,{color:x.colors.gray800})),t.createElement(Ee,null,t.createElement(we,{size:"md",weight:"bold"},a)),t.createElement(xe,{onClick:o},s&&t.createElement("p",null,s))),ke={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},Oe={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 je;function Ie(e){const{selectedLocation:t,searchLocationKeywords:i}=e;return t&&i!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function $e(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case je.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case je.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:Ie(Object.assign(Object.assign({},e),{focused:"none"}));case je.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case je.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===u&&(t.searchLocationKeywords=""),t}case je.FocusInputSearch:const a=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?Ie(a):a;case je.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case je.ChangeInputSearch:{const i=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:i,isLoadingSearchResults:i.trim().length>ke[e.locale]})}case je.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case je.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case je.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case je.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case je.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case je.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case je.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case je.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case je.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case je.FetchSearchResultsComplete:{const i=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(i.initialSearchResults=t.payload),i}case je.FetchCitiesByGeoIpComplete:{let{cities:i}=t.payload;const{default:a}=t.payload;i=i.filter((e=>e.id!==a.id)),i.unshift(a),e.initialSelectedCity&&!i.find((t=>t.id===e.initialSelectedCity.id))&&i.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:a,initialCities:i,cities:i});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=a,o.searchLocationKeywords=a.name),o}case je.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case je.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case je.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case je.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case je.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case je.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case je.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case je.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case je.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"}(je||(je={}));const Fe=b.div`
162
162
  display: flex;
163
163
  gap: 16px;
164
- ${L.mbDown} {
164
+ ${w.mbDown} {
165
165
  flex-direction: column;
166
166
  padding: 14px;
167
- background-color: ${E.colors.primary50};
167
+ background-color: ${x.colors.primary50};
168
168
 
169
169
  input {
170
170
  filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))
@@ -176,18 +176,18 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
176
176
  input {
177
177
  background-color: white;
178
178
  }
179
- `,Re=y.div`
179
+ `,Me=b.div`
180
180
  position: relative;
181
- `,Te=y(Re)`
181
+ `,Re=b(Me)`
182
182
  flex: 1;
183
- `,Pe=y(Re)`
183
+ `,Te=b(Me)`
184
184
  flex: 2;
185
- `,Ne=y((({className:e,color:t})=>i.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},i.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),i.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"}))))`
185
+ `,Pe=b((({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:i||"currentColor"}))))`
186
186
  display: none;
187
187
  &.shown {
188
188
  display: block;
189
189
  }
190
- `,Ae=()=>i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.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"})),Be=y.button`
190
+ `,Ne=()=>t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"})),Ae=b.button`
191
191
  min-height: 100%;
192
192
  border-radius: 6px;
193
193
  background-color: ${({theme:e})=>e.colors.primaryBase};
@@ -198,7 +198,7 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
198
198
  cursor: pointer;
199
199
  flex: 0.3;
200
200
 
201
- ${L.mbDown} {
201
+ ${w.mbDown} {
202
202
  --margin: 16px;
203
203
  min-height: 44px;
204
204
  margin: var(--margin);
@@ -218,41 +218,41 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
218
218
  &:focus-visible {
219
219
  outline: 1px solid black;
220
220
  }
221
- `,Ve=y(v)`
221
+ `,Be=b(f)`
222
222
  font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
223
- `,De=({onClick:e})=>{const{t:t}=c(),a=t("booking.searchBar.searchButton");return i.createElement(Be,{onClick:e,title:a},i.createElement(Ae,null),i.createElement(Ve,{size:"s3",color:"white"},a))};function Ke({isMobile:e,state:t,dispatch:a,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:r,focusLocationInput:d,focusSearchInput:p,renderLocationResults:u,renderSearchResults:g,locationTrackingAttributes:m,trackingAttributes:C,onSearch:b,initalSearchValue:y}){const f=l(null),v=l(null),{focused:x,searchLocationKeywords:S,geoLocationPermission:L,selectedLocation:k,searchKeywords:O,inputSearchPlaceholder:j}=t,{t:I}=c();ye({wrapperRef:v,disabled:!!j}),w(f,(()=>{e||a({type:Ie.ClickOutsideInputLocation})})),w(v,(()=>{e||a({type:Ie.ClickOutsideInputSearch})}));const $=n((()=>"granted"===L&&(null==k?void 0:k.id)===h?E.colors.primaryBase:E.colors.gray400),[L,k]),F=o((function(e){a({type:Ie.ChangeInputSearch,payload:e}),"function"!=typeof b&&(e.trim().length>Oe[t.locale]||y?r(e.trim(),t):(r.cancel(),a({type:Ie.DisplayInitialSearchResults})))}),[a,t]),M=o((function(e){a({type:Ie.ChangeInputLocation,payload:e}),e.trim().length>Oe[t.locale]?s(e.trim()):(s.cancel(),a({type:Ie.DisplayInitialCities}))}),[s,a]);return i.createElement(Me,null,i.createElement(Te,{ref:f},i.createElement(Y,{inputClassName:"location"===x?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:i.createElement(Q,{className:"location-pin-icon",color:$}),actionIcon:i.createElement(Ne,{color:E.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){a({type:Ie.ClearInputLocation}),s.cancel(),d()},value:S,onChange:M,onFocus:()=>a({type:Ie.FocusInputLocation}),size:"md",trackingAttributes:m}),!e&&u()),i.createElement(Pe,{ref:v},i.createElement(Y,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:i.createElement(Ne,{color:E.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){a({type:Ie.ClearInputSearch}),r.cancel(),r("",t),p()},value:O,onChange:F,onFocus:()=>a({type:Ie.FocusInputSearch}),inputClassName:"search"===x?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:e=>{t.autoCompleteDisabled&&"Enter"===e.key&&b&&b({cityId:t.selectedLocation.id,keyword:O})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!e&&g()),t.autoCompleteDisabled&&!t.isMobile&&i.createElement(De,{onClick:()=>{b({cityId:t.selectedLocation.id,keyword:O})}}))}const ze=()=>i.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},i.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"})),_e=()=>i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.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"})),He=()=>i.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},i.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"})),Ge=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.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"})),Ze=y.header`
223
+ `,Ve=({onClick:e})=>{const{t:i}=r(),a=i("booking.searchBar.searchButton");return t.createElement(Ae,{onClick:e,title:a},t.createElement(Ne,null),t.createElement(Be,{size:"s3",color:"white"},a))};function De({isMobile:e,state:i,dispatch:n,debouncedFetchCitiesByKeyword:l,debouncedFetchSearchResults:c,focusLocationInput:d,focusSearchInput:p,renderLocationResults:h,renderSearchResults:g,locationTrackingAttributes:m,trackingAttributes:C,onSearch:b,initalSearchValue:y}){const f=s(null),v=s(null),{focused:S,searchLocationKeywords:w,geoLocationPermission:L,selectedLocation:k,searchKeywords:O,inputSearchPlaceholder:j}=i,{t:I}=r();be({wrapperRef:v,disabled:!!j}),E(f,(()=>{e||n({type:je.ClickOutsideInputLocation})})),E(v,(()=>{e||n({type:je.ClickOutsideInputSearch})}));const $=o((()=>"granted"===L&&(null==k?void 0:k.id)===u?x.colors.primaryBase:x.colors.gray400),[L,k]),F=a((function(e){n({type:je.ChangeInputSearch,payload:e}),"function"!=typeof b&&(e.trim().length>ke[i.locale]||y?c(e.trim(),i):(c.cancel(),n({type:je.DisplayInitialSearchResults})))}),[n,i]),M=a((function(e){n({type:je.ChangeInputLocation,payload:e}),e.trim().length>ke[i.locale]?l(e.trim()):(l.cancel(),n({type:je.DisplayInitialCities}))}),[l,n]);return t.createElement(Fe,null,t.createElement(Re,{ref:f},t.createElement(Z,{inputClassName:"location"===S?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:t.createElement(W,{className:"location-pin-icon",color:$}),actionIcon:t.createElement(Pe,{color:x.colors.gray300,className:""!==w?"shown":""}),onActionClick:function(){n({type:je.ClearInputLocation}),l.cancel(),d()},value:w,onChange:M,onFocus:()=>n({type:je.FocusInputLocation}),size:"md",trackingAttributes:m}),!e&&h()),t.createElement(Te,{ref:v},t.createElement(Z,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:t.createElement(Pe,{color:x.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){n({type:je.ClearInputSearch}),c.cancel(),c("",i),p()},value:O,onChange:F,onFocus:()=>n({type:je.FocusInputSearch}),inputClassName:"search"===S?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&b&&b({cityId:i.selectedLocation.id,keyword:O})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&g()),i.autoCompleteDisabled&&!i.isMobile&&t.createElement(Ve,{onClick:()=>{b({cityId:i.selectedLocation.id,keyword:O})}}))}const Ke=()=>t.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},t.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),ze=()=>t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),_e=()=>t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},t.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),He=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},t.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Ge=b.header`
224
224
  display: flex;
225
225
  justify-content: space-between;
226
226
  padding: 12px 24px;
227
- background-color: ${E.colors.neutral50};
227
+ background-color: ${x.colors.neutral50};
228
228
  box-shadow: inset 0px 1px 0px #e4e8ec;
229
- `,Ye=y.div`
229
+ `,Ze=b.div`
230
230
  display: grid;
231
231
  flex: 2;
232
232
  align-items: center;
233
233
  gap: 16px;
234
234
  grid-template-columns: 16px 1fr;
235
- `,Ue=y.p`
236
- color: ${E.colors.neutral800};
235
+ `,Ye=b.p`
236
+ color: ${x.colors.neutral800};
237
237
  font-size: 14px;
238
- font-weight: ${E.sizes.fwSemiBold};
238
+ font-weight: ${x.sizes.fwSemiBold};
239
239
  letter-spacing: -0.2px;
240
240
  line-height: 22px;
241
- `,We=y.button`
241
+ `,Ue=b.button`
242
242
  flex: 1;
243
243
  cursor: pointer;
244
244
  text-align: end;
245
- `,Qe=y.section`
245
+ `,We=b.section`
246
246
  padding: 12px 16px;
247
247
  --rowGap: 16px;
248
248
  --graphicSize: 32px;
249
249
 
250
- ${L.tdUp} {
250
+ ${w.tdUp} {
251
251
  --rowGap: 8px;
252
252
  }
253
- `,qe=y.ul`
253
+ `,Qe=b.ul`
254
254
  --gap: 16px;
255
- ${L.tdUp} {
255
+ ${w.tdUp} {
256
256
  --gap: 8px;
257
257
  }
258
258
 
@@ -269,16 +269,16 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
269
269
  transition: none;
270
270
  }
271
271
 
272
- ${L.tdUp} {
272
+ ${w.tdUp} {
273
273
  grid-template-columns: 1fr 1fr;
274
274
  }
275
- `,Je=y(v)`
275
+ `,qe=b(f)`
276
276
  margin-top: 12px;
277
277
  margin-bottom: 8px;
278
278
  cursor: pointer;
279
279
  text-align: start;
280
280
  text-transform: capitalize;
281
- `,Xe=y.li`
281
+ `,Je=b.li`
282
282
  display: flex;
283
283
  align-items: center;
284
284
  gap: var(--rowGap);
@@ -286,7 +286,7 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
286
286
  &.not-nav {
287
287
  cursor: default;
288
288
  }
289
- `,et=y.div`
289
+ `,Xe=b.div`
290
290
  --wrapper-size: var(--graphicSize);
291
291
  border-radius: calc(var(--wrapper-size) / 2);
292
292
  background-color: var(--neutral50);
@@ -304,92 +304,92 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
304
304
  }
305
305
 
306
306
  &:focus-visible {
307
- outline: 1px solid ${E.colors.gray600};
307
+ outline: 1px solid ${x.colors.gray600};
308
308
  }
309
- `,tt=y(v)`
309
+ `,et=b(f)`
310
310
  line-height: 22px;
311
311
  letter-spacing: -0.2px;
312
312
 
313
- ${L.tdUp} {
313
+ ${w.tdUp} {
314
314
  &[data-size='p3'] {
315
315
  font-size: 14px;
316
316
  }
317
317
  }
318
- `,it=y.figure`
318
+ `,tt=b.figure`
319
319
  max-width: var(--graphicSize);
320
320
  min-width: var(--graphicSize);
321
- `,at=y.svg`
321
+ `,it=b.svg`
322
322
  margin: 0 auto;
323
323
  display: block;
324
- `,ot=y.div`
324
+ `,at=b.div`
325
325
  display: grid;
326
326
  place-items: center;
327
- `,nt={doctors:({width:e,height:t})=>i.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none"},i.createElement("g",{clipPath:"url(#clip0_14712_400114)"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),i.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"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_14712_400114"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>i.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none"},i.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),i.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"}))},st=({type:e,item:t,imageUrl:a,className:o,onClickItem:s})=>{const l=n((()=>{const t=nt[e]||J;return i.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return i.createElement(Xe,{onClick:()=>s&&s(t),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(t)},tabIndex:0,role:"button",className:o},i.createElement(it,null,"hospitals"===e?i.createElement(at,{width:"12",height:"16",viewBox:"0 0 12 16"},i.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"})):i.createElement(et,{type:e},a?i.createElement("img",{src:a,width:32,height:"services"===e?32:24,loading:"lazy"}):l)),i.createElement(tt,{color:E.colors.gray800,size:"p3"},t.name))},lt=({type:e,data:t,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:r,isMobile:d,isLoading:p,keyword:h,isNavResultItem:g})=>{const[m,C]=a(!1),{t:b,locale:y}=c(),{selectedLocation:f,searchKeywords:x}=o,S=n((()=>u[y]),[y]),w="ms-MY"===y,L=n((()=>({doctors:{name:b("booking.searchPopup.doctors"),icon:i.createElement(ze,null),slug:S.DOCTOR},services:{name:b("booking.searchPopup.services"),icon:i.createElement(_e,null),slug:S.SERVICE},hospitals:{name:b("booking.searchPopup.hospitals"),icon:i.createElement(He,null),slug:S.HOSPITAL},specialties:{name:b("booking.searchPopup.specialties"),icon:i.createElement(Ge,null),slug:S.SPECIALTIES}})),[e,S]),O=n((()=>L[e].slug),[L]),j=d?l:r;function I(t){let i="";switch(e){case"specialties":i=`/${f.slug}/${L.doctors.slug}/${t.slug}`;break;case"services":i=`/${f.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:Ie.SelectSearchResult,payload:{name:t.name,url:i}})}function $(t){return i.createElement(st,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return i.createElement("section",null,i.createElement(Ze,null,i.createElement(Ye,null,L[e].icon,i.createElement(Ue,null,L[e].name)),(h.trim().length<=Oe[y]||w)&&i.createElement(We,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${f.slug}/${O}`}t&&s({type:Ie.NavigateTo,payload:t})}},i.createElement(v,{size:"p3",color:E.colors.primaryBase},b("booking.searchPopup.seeAll")))),(p||t&&t.length>0)&&i.createElement(Qe,null,i.createElement(qe,null,p&&Array(2).fill(void 0).map(((t,a)=>i.createElement(Xe,{key:e+"loading"+a},i.createElement(it,null,i.createElement(ot,null,i.createElement(k,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),i.createElement(k,{width:120,height:24})))),!p&&t&&t.length>0&&t.slice(0,j).map($)),i.createElement(qe,{isShown:m,isMore:!0},t.slice(j,-1).map($)),"specialties"===e&&j<t.length&&!p&&i.createElement("button",{onClick:()=>C(!m)},i.createElement(Je,{size:"p3",color:E.colors.primaryBase},b(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<t.length||w)&&!p&&h.trim().length>Oe[y]&&i.createElement("button",{onClick:function(){const{slug:t}=L[e],i=`/${f.slug}/${t}?q=${x}`;s({type:Ie.NavigateTo,payload:i})}},i.createElement(Je,{size:"p3",color:E.colors.primaryBase},b(`booking.searchPopup.searchIn.${e}`,{name:h})))),!p&&0===(null==t?void 0:t.length)&&i.createElement(Qe,null,i.createElement(v,{size:"sm",color:E.colors.gray400},b("booking.searchBar.noResults"))))},rt=y.section`
327
+ `,ot={doctors:({width:e,height:i})=>t.createElement("svg",{width:e||32,height:i||32,viewBox:"0 0 32 32",fill:"none"},t.createElement("g",{clipPath:"url(#clip0_14712_400114)"},t.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),t.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_14712_400114"},t.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:i})=>t.createElement("svg",{width:e||30,height:i||30,viewBox:"0 0 30 30",fill:"none"},t.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),t.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},nt=({type:e,item:i,imageUrl:a,className:n,onClickItem:s})=>{const l=o((()=>{const i=ot[e]||q;return t.createElement(i,{width:32,height:"services"===e?32:24})}),[e]);return t.createElement(Je,{onClick:()=>s&&s(i),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(i)},tabIndex:0,role:"button",className:n},t.createElement(tt,null,"hospitals"===e?t.createElement(it,{width:"12",height:"16",viewBox:"0 0 12 16"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):t.createElement(Xe,{type:e},a?t.createElement("img",{src:a,width:32,height:"services"===e?32:24,loading:"lazy"}):l)),t.createElement(et,{color:x.colors.gray800,size:"p3"},i.name))},st=({type:e,data:a,state:n,dispatch:s,itemsToShow:l,itemsToShowDesktop:c,isMobile:d,isLoading:u,keyword:h,isNavResultItem:g})=>{const[m,C]=i(!1),{t:b,locale:y}=r(),{selectedLocation:v,searchKeywords:S}=n,E=o((()=>p[y]),[y]),w="ms-MY"===y,k=o((()=>({doctors:{name:b("booking.searchPopup.doctors"),icon:t.createElement(Ke,null),slug:E.DOCTOR},services:{name:b("booking.searchPopup.services"),icon:t.createElement(ze,null),slug:E.SERVICE},hospitals:{name:b("booking.searchPopup.hospitals"),icon:t.createElement(_e,null),slug:E.HOSPITAL},specialties:{name:b("booking.searchPopup.specialties"),icon:t.createElement(He,null),slug:E.SPECIALTIES}})),[e,E]),O=o((()=>k[e].slug),[k]),j=d?l:c;function I(t){let i="";switch(e){case"specialties":i=`/${v.slug}/${k.doctors.slug}/${t.slug}`;break;case"services":i=`/${v.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:je.SelectSearchResult,payload:{name:t.name,url:i}})}function $(i){return t.createElement(nt,{key:i.id,item:i,type:e,imageUrl:i.logo||i.avatar||i.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return t.createElement("section",null,t.createElement(Ge,null,t.createElement(Ze,null,k[e].icon,t.createElement(Ye,null,k[e].name)),(h.trim().length<=ke[y]||w)&&t.createElement(Ue,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${v.slug}/${O}`}t&&s({type:je.NavigateTo,payload:t})}},t.createElement(f,{size:"p3",color:x.colors.primaryBase},b("booking.searchPopup.seeAll")))),(u||a&&a.length>0)&&t.createElement(We,null,t.createElement(Qe,null,u&&Array(2).fill(void 0).map(((i,a)=>t.createElement(Je,{key:e+"loading"+a},t.createElement(tt,null,t.createElement(at,null,t.createElement(L,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),t.createElement(L,{width:120,height:24})))),!u&&a&&a.length>0&&a.slice(0,j).map($)),t.createElement(Qe,{isShown:m,isMore:!0},a.slice(j,-1).map($)),"specialties"===e&&j<a.length&&!u&&t.createElement("button",{onClick:()=>C(!m)},t.createElement(qe,{size:"p3",color:x.colors.primaryBase},b(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<a.length||w)&&!u&&h.trim().length>ke[y]&&t.createElement("button",{onClick:function(){const{slug:t}=k[e],i=`/${v.slug}/${t}?q=${S}`;s({type:je.NavigateTo,payload:i})}},t.createElement(qe,{size:"p3",color:x.colors.primaryBase},b(`booking.searchPopup.searchIn.${e}`,{name:h})))),!u&&0===(null==a?void 0:a.length)&&t.createElement(We,null,t.createElement(f,{size:"sm",color:x.colors.gray400},b("booking.searchBar.noResults"))))},lt=b.section`
328
328
  background-color: white;
329
329
  border-radius: 4px;
330
330
  position: absolute;
331
331
  width: 100%;
332
332
  z-index: 30;
333
333
 
334
- ${L.tdUp} {
334
+ ${w.tdUp} {
335
335
  box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
336
336
  0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
337
337
  0px 0px 1px rgba(0, 0, 0, 0.04);
338
338
  }
339
- `,ct=({data:e,state:t,dispatch:a,isMobile:o,isLoading:n,keyword:s,hideResults:l,isNavResultItem:r})=>i.createElement(rt,null,e&&e.map((e=>l&&l.includes(e.type)?i.createElement(i.Fragment,null):i.createElement(lt,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:o,isLoading:n,keyword:s,isNavResultItem:r})))),dt=(e,t,i)=>D(e,Object.assign(Object.assign({},t),{domain:P[i||"en-PH"]}));const pt=({isMobile:t,careApiDomain:g,geoLocationPermission:m,geoLocationCoordinates:C,initialSelectedCity:b,initialSearchValue:y="",careFrontDomain:f="/care",isDebug:v=!1,askForGeolocationPermission:x=!1,gaTrackingSearchBar:E,gaTrackingLocationSearch:S,autoCompleteDisabled:w=!1,inputSearchPlaceholder:L="",isOptionAllLocation:k=!1,hideResults:j=[],isNavResultItem:I=!0,routerPush:$,onGeoLocationPermissionChange:F,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=c(),N=l(null),A=l(null),[B,V]=a(void 0),[D,K]=a(!1),{geoLocationPermission:Y,geoLocationCoordinates:W,requestGeoLocation:Q}=z(),[q,J]=r(Fe,je,(e=>Object.assign(Object.assign({},e),{isDebug:v,isMobile:t,geoLocationPermission:m||Y||"unset",geoLocationCoordinates:C||W||null,searchKeywords:y,initialSelectedCity:b||null,selectedLocation:b||e.selectedLocation||null,searchLocationKeywords:(null==b?void 0:b.name)||e.searchLocationKeywords,autoCompleteDisabled:w,inputSearchPlaceholder:L,locale:P}))),{navigateTo:X,focused:ee,isLoadingCities:te,cities:ie,searchKeywords:ae,geoLocationPermission:oe,selectedLocation:ne,initialSelectedCity:le,defaultCity:re,searchResults:ce,isLoadingSearchResults:de,isMobileModalOpened:pe,inputSearchPlaceholder:ue}=q,{fetchCitiesByLocation:he,fetchCitiesByKeyword:ge,fetchSearchResults:me}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(a,o={}){const n=`${t}${a}`;return e({type:Ie.FetchCitiesStart}),fetch(dt(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:Ie.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const n={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[a(O.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(O.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:Ie.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(O.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:Ie.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(a,o){const n=`${t}${O.GET_SEARCH_V2}`;e({type:Ie.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:l,geoLocationCoordinates:r}=o;let c="";if(!l||!s)return void e({type:Ie.FetchSearchResultsFinish});l.id===h?r||(c=s.id):c=l.id===p?"":l.id;const d=(null==r?void 0:r.lat)||"",u=(null==r?void 0:r.lng)||"";return fetch(dt(n,{domain:t,searchType:"global",keyword:a.trim().length>Oe[i]?a.trim():"",city:c===h?"":c,lat:d,lng:u},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:Ie.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:Ie.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:J,locale:P,careApiDomain:g}),Ce=n((()=>{var e;return{id:h,name:T("booking.searchBar.currentLocation"),slug:null===(e=u[P])||void 0===e?void 0:e.CURRENT}}),[T,P]),be=n((()=>d(ge,400)),[ge]),ye=n((()=>d(me,400)),[me]);s((()=>{""!==y&&y!==q.searchKeywords&&J({type:Ie.UpdateInitialSearchValue,payload:y})}),[y]),s((()=>{x&&(null==ne?void 0:ne.id)===h&&"unset"===oe&&Q()}),[x,ne,oe]),s((()=>{m||oe===Y||("granted"===Y&&W?J({type:Ie.GrantGeoLocationPermission,payload:W}):"denied"===Y&&J({type:Ie.DenyGeoLocationPermission}))}),[oe,Y,W,m]),s((()=>{X&&($?$(X):window.location.href=`${f}${X}`)}),[X]);const fe=o((function(){J({type:Ie.SelectCurrentLocation,payload:Ce})}),[T,J]);s((()=>{var e;"denied"===oe||le||J({type:Ie.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:p,slug:null===(e=u[P])||void 0===e?void 0:e.ALL}}),F&&F(oe,q.geoLocationCoordinates),t&&"granted"===oe&&ne&&J({type:Ie.FocusInputSearch}),he({coordinates:q.geoLocationCoordinates})}),[oe]),s((()=>{ne&&re&&me(q.searchKeywords,q)}),[ne,re]),s((()=>{L!==ue&&J({type:Ie.SetInputSearchPlaceholder,payload:L})}),[L,ue]),s((()=>{pe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[pe]);const xe=o((function(e){"ms-MY"===P&&K(!0),J({type:Ie.SelectLocation,payload:e}),"ms-MY"!==P&&we(),R&&R(e)}),[T,J]);function Ee(){"ms-MY"===P&&K(!0),t&&"granted"!==q.geoLocationPermission?Q():(fe(),"ms-MY"!==P&&we())}function Se(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function we(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Le(){J({type:Ie.CloseMobileModal})}function $e(){return"location"!==ee?null:i.createElement(se,{isLoading:te,cities:ie,onLocationClick:xe,onCurrentLocationClick:Ee,isLocationLoading:te,geoLocationPermission:oe,selectedLocation:ne,isOptionAllLocation:k})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?t?i.createElement(De,{onClick:()=>{M({cityId:q.selectedLocation.id,keyword:ae}),Le()}}):null:i.createElement(ct,{data:ce,state:q,dispatch:J,isMobile:!1,keyword:ae,isLoading:de,hideResults:j,isNavResultItem:I})}function Re(){return i.createElement(Ke,{isMobile:t,state:q,dispatch:J,debouncedFetchCitiesByKeyword:be,debouncedFetchSearchResults:ye,focusLocationInput:Se,focusSearchInput:we,renderLocationResults:$e,renderSearchResults:Me,trackingAttributes:E,locationTrackingAttributes:S,onSearch:M,initalSearchValue:y})}return s((()=>{if(window.visualViewport){const e=e=>{const t=e.target;V(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[V]),s((()=>{if(ne&&D&&"ms-MY"===P){const e=`/${ne.slug}/hospital`;J({type:Ie.NavigateTo,payload:e}),K(!1)}}),[D,P,ne]),t?i.createElement(i.Fragment,null,i.createElement(U,null),i.createElement(Z,{ref:A}),i.createElement(H,{id:"booking-search-bar",ref:N,"data-is-modal":t&&pe,style:{"--mobile-care-searchbar-height":pe&&B?`${B}px`:"100%"}},pe?i.createElement(i.Fragment,null,i.createElement(G,null,i.createElement(ke,{headingText:T("booking.searchBar.searchButton"),onLeftClick:Le}),Re()),$e(),Me()):i.createElement(ve,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){A.current&&A.current.focus(),J({type:Ie.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ee,value:ae,trackingAttributes:E,inputSearchPlaceholder:L}))):i.createElement(_,{id:"booking-search-bar",ref:N},Re())},ut=y.div``,ht=y.div`
340
- background-color: ${E.colors.neutral50};
339
+ `,rt=({data:e,state:i,dispatch:a,isMobile:o,isLoading:n,keyword:s,hideResults:l,isNavResultItem:r})=>t.createElement(lt,null,e&&e.map((e=>l&&l.includes(e.type)?t.createElement(t.Fragment,null):t.createElement(st,{type:e.type,state:i,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:o,isLoading:n,keyword:s,isNavResultItem:r})))),ct=(e,t,i)=>D(e,Object.assign(Object.assign({},t),{domain:T[i||"en-PH"]}));const dt=({isMobile:h,careApiDomain:g,geoLocationPermission:m,geoLocationCoordinates:C,initialSelectedCity:b,initialSearchValue:y="",careFrontDomain:f="/care",isDebug:v=!1,askForGeolocationPermission:x=!1,gaTrackingSearchBar:S,gaTrackingLocationSearch:E,autoCompleteDisabled:w=!1,inputSearchPlaceholder:L="",isOptionAllLocation:O=!1,hideResults:j=[],isNavResultItem:I=!0,routerPush:$,onGeoLocationPermissionChange:F,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=r(),N=s(null),A=s(null),[B,V]=i(void 0),[D,Z]=i(!1),{geoLocationPermission:U,geoLocationCoordinates:W,requestGeoLocation:Q}=K(),[q,J]=l($e,Oe,(e=>Object.assign(Object.assign({},e),{isDebug:v,isMobile:h,geoLocationPermission:m||U||"unset",geoLocationCoordinates:C||W||null,searchKeywords:y,initialSelectedCity:b||null,selectedLocation:b||e.selectedLocation||null,searchLocationKeywords:(null==b?void 0:b.name)||e.searchLocationKeywords,autoCompleteDisabled:w,inputSearchPlaceholder:L,locale:P}))),{navigateTo:X,focused:ee,isLoadingCities:te,cities:ie,searchKeywords:ae,geoLocationPermission:oe,selectedLocation:se,initialSelectedCity:le,defaultCity:re,searchResults:ce,isLoadingSearchResults:de,isMobileModalOpened:pe,inputSearchPlaceholder:ue}=q,{fetchCitiesByLocation:he,fetchCitiesByKeyword:ge,fetchSearchResults:me}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const o=a((function(a,o={}){const n=`${t}${a}`;return e({type:je.FetchCitiesStart}),fetch(ct(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:je.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:a((function({coordinates:t}){let a={};const n={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[o(k.GET_CITY_BY_IP,Object.assign(Object.assign({},a),n))];return"zh-TW"===i&&s.push(o(k.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:je.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:a((function(t){return o(k.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:je.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:a((function(a,o){const n=`${t}${k.GET_SEARCH_V2}`;e({type:je.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:l,geoLocationCoordinates:r}=o;let c="";if(!l||!s)return void e({type:je.FetchSearchResultsFinish});l.id===u?r||(c=s.id):c=l.id===d?"":l.id;const p=(null==r?void 0:r.lat)||"",h=(null==r?void 0:r.lng)||"";return fetch(ct(n,{domain:t,searchType:"global",keyword:a.trim().length>ke[i]?a.trim():"",city:c===u?"":c,lat:p,lng:h},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:je.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:je.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:J,locale:P,careApiDomain:g}),Ce=o((()=>{var e;return{id:u,name:T("booking.searchBar.currentLocation"),slug:null===(e=p[P])||void 0===e?void 0:e.CURRENT}}),[T,P]),be=o((()=>c(ge,400)),[ge]),ye=o((()=>c(me,400)),[me]);n((()=>{""!==y&&y!==q.searchKeywords&&J({type:je.UpdateInitialSearchValue,payload:y})}),[y]),n((()=>{x&&(null==se?void 0:se.id)===u&&"unset"===oe&&Q()}),[x,se,oe]),n((()=>{m||oe===U||("granted"===U&&W?J({type:je.GrantGeoLocationPermission,payload:W}):"denied"===U&&J({type:je.DenyGeoLocationPermission}))}),[oe,U,W,m]),n((()=>{X&&($?$(X):window.location.href=`${f}${X}`)}),[X]);const ve=a((function(){J({type:je.SelectCurrentLocation,payload:Ce})}),[T,J]);n((()=>{var e;"denied"===oe||le||J({type:je.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:d,slug:null===(e=p[P])||void 0===e?void 0:e.ALL}}),F&&F(oe,q.geoLocationCoordinates),h&&"granted"===oe&&se&&J({type:je.FocusInputSearch}),he({coordinates:q.geoLocationCoordinates})}),[oe]),n((()=>{se&&re&&me(q.searchKeywords,q)}),[se,re]),n((()=>{L!==ue&&J({type:je.SetInputSearchPlaceholder,payload:L})}),[L,ue]),n((()=>{pe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[pe]);const xe=a((function(e){"ms-MY"===P&&Z(!0),J({type:je.SelectLocation,payload:e}),"ms-MY"!==P&&we(),R&&R(e)}),[T,J]);function Se(){"ms-MY"===P&&Z(!0),h&&"granted"!==q.geoLocationPermission?Q():(ve(),"ms-MY"!==P&&we())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function we(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Ie(){J({type:je.CloseMobileModal})}function Fe(){return"location"!==ee?null:t.createElement(ne,{isLoading:te,cities:ie,onLocationClick:xe,onCurrentLocationClick:Se,isLocationLoading:te,geoLocationPermission:oe,selectedLocation:se,isOptionAllLocation:O})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?h?t.createElement(Ve,{onClick:()=>{M({cityId:q.selectedLocation.id,keyword:ae}),Ie()}}):null:t.createElement(rt,{data:ce,state:q,dispatch:J,isMobile:!1,keyword:ae,isLoading:de,hideResults:j,isNavResultItem:I})}function Re(){return t.createElement(De,{isMobile:h,state:q,dispatch:J,debouncedFetchCitiesByKeyword:be,debouncedFetchSearchResults:ye,focusLocationInput:Ee,focusSearchInput:we,renderLocationResults:Fe,renderSearchResults:Me,trackingAttributes:S,locationTrackingAttributes:E,onSearch:M,initalSearchValue:y})}return n((()=>{if(window.visualViewport){const e=e=>{const t=e.target;V(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[V]),n((()=>{if(se&&D&&"ms-MY"===P){const e=`/${se.slug}/hospital`;J({type:je.NavigateTo,payload:e}),Z(!1)}}),[D,P,se]),h?t.createElement(t.Fragment,null,t.createElement(Y,null),t.createElement(G,{ref:A}),t.createElement(_,{id:"booking-search-bar",ref:N,"data-is-modal":h&&pe,style:{"--mobile-care-searchbar-height":pe&&B?`${B}px`:"100%"}},pe?t.createElement(t.Fragment,null,t.createElement(H,null,t.createElement(Le,{headingText:T("booking.searchBar.searchButton"),onLeftClick:Ie}),Re()),Fe(),Me()):t.createElement(fe,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){A.current&&A.current.focus(),J({type:je.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ee,value:ae,trackingAttributes:S,inputSearchPlaceholder:L}))):t.createElement(z,{id:"booking-search-bar",ref:N},Re())},pt=b.div``,ut=b.div`
340
+ background-color: ${x.colors.neutral50};
341
341
  padding-bottom: 1px;
342
- ${L.mbDown} {
342
+ ${w.mbDown} {
343
343
  padding: 0 16px 10px;
344
344
  }
345
- `,gt=y(V)`
345
+ `,ht=b(B)`
346
346
  padding: 0 16px;
347
347
 
348
- ${L.mbDown} {
348
+ ${w.mbDown} {
349
349
  padding: 0;
350
350
  }
351
- `,mt=y.div`
351
+ `,gt=b.div`
352
352
  padding: 24px 56px;
353
353
  border-radius: 0px 0px 16px 16px;
354
- background-color: ${E.colors.white};
354
+ background-color: ${x.colors.white};
355
355
  box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.04),
356
356
  0px 0px 2px 0px rgba(0, 0, 0, 0.06), 0px 4px 8px 0px rgba(0, 0, 0, 0.04);
357
357
 
358
- ${L.mbDown} {
358
+ ${w.mbDown} {
359
359
  padding: 16px 16px;
360
360
  border-radius: 0px 0px 12px 12px;
361
361
  }
362
362
 
363
363
  .flex-search-input {
364
364
  flex-direction: row;
365
- ${L.mbDown} {
365
+ ${w.mbDown} {
366
366
  flex-direction: column;
367
367
  }
368
368
  }
369
- `,Ct={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},bt={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",focusedSpecialty:"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:[],popularKeys:[]};var yt;function ft(e){const{selectedLocation:t,searchLocationKeywords:i}=e;return t&&i!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function vt(e,t){var i,a;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case yt.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case yt.ClickOutsideInputLocation:return"location"!==e.focused?e:ft(Object.assign(Object.assign({},e),{focused:"none"}));case yt.ClickOutsideInputSpecialty:return"specialty"!==e.focused?e:ft(Object.assign(Object.assign({},e),{focused:"none"}));case yt.ClickOutsideInputSearch:return"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case yt.ClickOutsideInputSearchSpecialty:return"search"!==e.focusedSpecialty?e:Object.assign(Object.assign({},e),{focusedSpecialty:"none"});case yt.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===h&&(t.searchLocationKeywords=""),t}case yt.FocusInputSpecialty:{const t=Object.assign(Object.assign({},e),{focused:"specialty"});return(null===(a=e.selectedLocation)||void 0===a?void 0:a.id)===h&&(t.searchLocationKeywords=""),t}case yt.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?ft(o):o;case yt.FocusInputSearchSpecialty:return Object.assign(Object.assign({},e),{focusedSpecialty:"search"});case yt.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case yt.ChangeInputSearch:{const i=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:i,isLoadingSearchResults:i.trim().length>Ct[e.locale]})}case yt.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case yt.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case yt.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case yt.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case yt.SelectSpecialty:return Object.assign(Object.assign({},e),{focused:"none",selectedSpecialty:t.payload});case yt.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case yt.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case yt.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case yt.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case yt.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case yt.FetchSearchResultsComplete:return Object.assign(Object.assign({},e),{searchResults:Object.assign(Object.assign({},e.searchResults),{[t.payload.key]:t.payload.searches})});case yt.FetchCitiesByGeoIpComplete:{let{cities:i}=t.payload;const{default:a}=t.payload;i=i.filter((e=>e.id!==a.id)),a&&i.unshift(a),e.initialSelectedCity&&!i.find((t=>t.id===e.initialSelectedCity.id))&&i.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:a,initialCities:i,cities:i});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=a,o.searchLocationKeywords=a.name),o}case yt.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case yt.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case yt.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case yt.UpdateInitialSearchResults:return Object.assign(Object.assign({},e),{initialSearchResults:Object.assign(Object.assign({},e.initialSearchResults),{[t.payload.key]:t.payload.searches})});case yt.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case yt.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case yt.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case yt.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case yt.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case yt.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});case yt.FetchAllSpecialties:return Object.assign(Object.assign({},e),{allSpecialties:t.payload});case yt.FetchPopularKeys:return Object.assign(Object.assign({},e),{popularKeys: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.ClickOutsideInputSearchSpecialty="click outside input search specialty",e.ClickOutsideInputSpecialty="click outside input specialty",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.FocusInputSearchSpecialty="focus input search specialty",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.UpdateInitialSearchResults="update 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",e.FetchPopularKeys="fetch popular key by type"}(yt||(yt={}));const xt=y.div`
369
+ `,mt={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},Ct={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",focusedSpecialty:"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:[],popularKeys:[]};var bt;function yt(e){const{selectedLocation:t,searchLocationKeywords:i}=e;return t&&i!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function ft(e,t){var i,a;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case bt.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case bt.ClickOutsideInputLocation:return"location"!==e.focused?e:yt(Object.assign(Object.assign({},e),{focused:"none"}));case bt.ClickOutsideInputSpecialty:return"specialty"!==e.focused?e:yt(Object.assign(Object.assign({},e),{focused:"none"}));case bt.ClickOutsideInputSearch:return"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case bt.ClickOutsideInputSearchSpecialty:return"search"!==e.focusedSpecialty?e:Object.assign(Object.assign({},e),{focusedSpecialty:"none"});case bt.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===u&&(t.searchLocationKeywords=""),t}case bt.FocusInputSpecialty:{const t=Object.assign(Object.assign({},e),{focused:"specialty"});return(null===(a=e.selectedLocation)||void 0===a?void 0:a.id)===u&&(t.searchLocationKeywords=""),t}case bt.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?yt(o):o;case bt.FocusInputSearchSpecialty:return Object.assign(Object.assign({},e),{focusedSpecialty:"search"});case bt.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case bt.ChangeInputSearch:{const i=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:i,isLoadingSearchResults:i.trim().length>mt[e.locale]})}case bt.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case bt.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case bt.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case bt.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case bt.SelectSpecialty:return Object.assign(Object.assign({},e),{focused:"none",selectedSpecialty:t.payload});case bt.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case bt.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case bt.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case bt.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case bt.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case bt.FetchSearchResultsComplete:return Object.assign(Object.assign({},e),{searchResults:Object.assign(Object.assign({},e.searchResults),{[t.payload.key]:t.payload.searches})});case bt.FetchCitiesByGeoIpComplete:{let{cities:i}=t.payload;const{default:a}=t.payload;i=i.filter((e=>e.id!==a.id)),a&&i.unshift(a),e.initialSelectedCity&&!i.find((t=>t.id===e.initialSelectedCity.id))&&i.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:a,initialCities:i,cities:i});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=a,o.searchLocationKeywords=a.name),o}case bt.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case bt.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case bt.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case bt.UpdateInitialSearchResults:return Object.assign(Object.assign({},e),{initialSearchResults:Object.assign(Object.assign({},e.initialSearchResults),{[t.payload.key]:t.payload.searches})});case bt.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case bt.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case bt.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case bt.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case bt.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case bt.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});case bt.FetchAllSpecialties:return Object.assign(Object.assign({},e),{allSpecialties:t.payload});case bt.FetchPopularKeys:return Object.assign(Object.assign({},e),{popularKeys: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.ClickOutsideInputSearchSpecialty="click outside input search specialty",e.ClickOutsideInputSpecialty="click outside input specialty",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.FocusInputSearchSpecialty="focus input search specialty",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.UpdateInitialSearchResults="update 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",e.FetchPopularKeys="fetch popular key by type"}(bt||(bt={}));const vt=b.div`
370
370
  flex: 1;
371
371
  position: relative;
372
372
 
373
- ${L.mbDown} {
373
+ ${w.mbDown} {
374
374
  width: 100%;
375
375
  display: flex;
376
376
  flex-direction: column;
377
377
  gap: 12px;
378
378
  }
379
- `,Et=y.div`
379
+ `,xt=b.div`
380
380
  position: absolute;
381
381
  top: calc(100% + 2px);
382
382
  width: 100%;
383
383
  border-radius: 4px;
384
- background: ${E.colors.white};
384
+ background: ${x.colors.white};
385
385
  box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);
386
386
  z-index: 10;
387
387
 
388
- ${L.mbDown} {
388
+ ${w.mbDown} {
389
389
  width: calc(100% + 64px);
390
390
  left: -32px;
391
391
  }
392
- `,St=y.div``,wt=y.div`
392
+ `,St=b.div``,Et=b.div`
393
393
  display: flex;
394
394
  justify-content: space-between;
395
395
  align-item: center;
@@ -397,30 +397,30 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
397
397
  background: #f7f9fc;
398
398
 
399
399
  .title {
400
- color: ${E.colors.gray800};
400
+ color: ${x.colors.gray800};
401
401
  font-size: 14px;
402
402
  font-weight: 600;
403
403
  line-height: 22px;
404
404
  }
405
405
 
406
406
  .btn-see-all {
407
- color: ${E.colors.blue600};
407
+ color: ${x.colors.blue600};
408
408
  font-size: 14px;
409
409
  line-height: 22px;
410
410
  cursor: pointer;
411
411
  }
412
- `,Lt=y.div`
412
+ `,wt=b.div`
413
413
  padding: 10px 16px;
414
414
  max-height: 400px;
415
415
  overflow: auto;
416
- `,kt=y.div`
416
+ `,Lt=b.div`
417
417
  display: flex;
418
418
  gap: 12px;
419
419
  align-items: center;
420
420
  cursor: pointer;
421
421
 
422
422
  &:hover {
423
- background-color: ${E.colors.blue50};
423
+ background-color: ${x.colors.blue50};
424
424
  }
425
425
  .image-item {
426
426
  flex: 0 0 48px;
@@ -439,16 +439,16 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
439
439
  overflow: hidden;
440
440
  padding: 12px 0;
441
441
  flex: 1;
442
- border-bottom: 1px solid ${E.colors.neutral100};
442
+ border-bottom: 1px solid ${x.colors.neutral100};
443
443
  .title {
444
- color: ${E.colors.gray800};
444
+ color: ${x.colors.gray800};
445
445
  font-size: 16px;
446
446
  font-weight: 600;
447
447
  line-height: 24px;
448
448
  }
449
449
  .description {
450
450
  overflow: hidden;
451
- color: ${E.colors.gray600};
451
+ color: ${x.colors.gray600};
452
452
  text-overflow: ellipsis;
453
453
  white-space: nowrap;
454
454
  font-size: 12px;
@@ -476,40 +476,40 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
476
476
  border-bottom: none;
477
477
  }
478
478
  }
479
- `;y.div`
479
+ `;b.div`
480
480
  padding: 0 16px 16px;
481
481
 
482
482
  .search-detail-btn {
483
- color: ${E.colors.blue600};
483
+ color: ${x.colors.blue600};
484
484
  font-size: 14px;
485
485
  line-height: 22px;
486
486
  cursor: pointer;
487
487
  }
488
- `;const Ot=({state:e,type:t,results:a,location:o,isLoading:s,typeInformation:l,clientSlug:r="",dispatch:d})=>{const{locale:p,t:u}=c(),{selectedLocation:h}=e,m=n((()=>l[t].slug),[l,t]);return i.createElement(St,null,i.createElement(wt,null,i.createElement("div",{className:"title"},u("booking.searchResult.description",{search_type:l[t].name,search_location:o})),a.length>0&&i.createElement("div",{className:"btn-see-all",onClick:()=>{let i=`/${h.slug}/${m}`;const a=g[p][r];a&&(i+=`/${a}`),("doctor"===t||"hospital"===t)&&e.selectedSpecialty.id>0&&(i+=`?specialtyId=${e.selectedSpecialty.id}`),i&&d({type:yt.NavigateTo,payload:i})}},u("home.seeAll"))),i.createElement(Lt,null,s&&Array(3).fill(void 0).map(((e,a)=>i.createElement(kt,{key:t+"loading"+a,className:2===a?"last-item":""},i.createElement("div",{className:"image-item"},i.createElement(j,{height:48,circle:!0,mb:"xl",animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(j,{height:8,mt:10,radius:"xl",animate:!0})),i.createElement("div",{className:"description"},i.createElement("div",{className:"sub-description"},i.createElement(j,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!s&&a&&a.length>0&&i.createElement(i.Fragment,null,a.map(((e,o)=>{var n,s;const r=a.length>4&&3===o||a.length<=4&&o===a.length-1;let c="";return"hospital"===t&&(c=(null==e?void 0:e.address)||""),"doctor"===t&&(c=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===t&&(c=(null===(s=null==e?void 0:e.organization)||void 0===s?void 0:s.name)||""),o>=4?i.createElement(i.Fragment,null):i.createElement(kt,{key:e.id,className:r?"last-item":"",onClick:()=>(e=>{let i="";switch(t){case"service":i=`/${h.slug}/${m}/${e.slug}`;break;case"doctor":case"hospital":i=`/${m}/${e.slug}-${e.id}`}i&&d({type:yt.NavigateTo,payload:i})})(e)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.logo||e.avatar,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name),i.createElement("div",{className:"description"},l[t].icon,i.createElement("div",{className:"sub-description"},c))))}))),!s&&0===(null==a?void 0:a.length)&&i.createElement(v,{size:"sm",color:E.colors.gray400},u("booking.searchBar.noResults"))))},jt=y.div`
488
+ `;const kt=({state:e,type:i,results:a,location:n,isLoading:s,typeInformation:l,clientSlug:c="",dispatch:d})=>{const{locale:p,t:u}=r(),{selectedLocation:g}=e,m=o((()=>l[i].slug),[l,i]);return t.createElement(St,null,t.createElement(Et,null,t.createElement("div",{className:"title"},u("booking.searchResult.description",{search_type:l[i].name,search_location:n})),a.length>0&&t.createElement("div",{className:"btn-see-all",onClick:()=>{let t=`/${g.slug}/${m}`;const a=h[p][c];a&&(t+=`/${a}`),("doctor"===i||"hospital"===i)&&e.selectedSpecialty.id>0&&(t+=`?specialtyId=${e.selectedSpecialty.id}`),t&&d({type:bt.NavigateTo,payload:t})}},u("home.seeAll"))),t.createElement(wt,null,s&&Array(3).fill(void 0).map(((e,a)=>t.createElement(Lt,{key:i+"loading"+a,className:2===a?"last-item":""},t.createElement("div",{className:"image-item"},t.createElement(O,{height:48,circle:!0,mb:"xl",animate:!0})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},t.createElement(O,{height:8,mt:10,radius:"xl",animate:!0})),t.createElement("div",{className:"description"},t.createElement("div",{className:"sub-description"},t.createElement(O,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!s&&a&&a.length>0&&t.createElement(t.Fragment,null,a.map(((e,o)=>{var n,s;const r=a.length>4&&3===o||a.length<=4&&o===a.length-1;let c="";return"hospital"===i&&(c=(null==e?void 0:e.address)||""),"doctor"===i&&(c=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===i&&(c=(null===(s=null==e?void 0:e.organization)||void 0===s?void 0:s.name)||""),o>=4?t.createElement(t.Fragment,null):t.createElement(Lt,{key:e.id,className:r?"last-item":"",onClick:()=>(e=>{let t="";switch(i){case"service":t=`/${g.slug}/${m}/${e.slug}`;break;case"doctor":case"hospital":t=`/${m}/${e.slug}-${e.id}`}t&&d({type:bt.NavigateTo,payload:t})})(e)},t.createElement("div",{className:"image-item"},t.createElement("img",{src:e.logo||e.avatar,alt:e.name})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},e.name),t.createElement("div",{className:"description"},l[i].icon,t.createElement("div",{className:"sub-description"},c))))}))),!s&&0===(null==a?void 0:a.length)&&t.createElement(f,{size:"sm",color:x.colors.gray400},u("booking.searchBar.noResults"))))},Ot=b.div`
489
489
  position: relative;
490
490
 
491
- ${L.mbDown} {
491
+ ${w.mbDown} {
492
492
  width: 100%;
493
493
  display: flex;
494
494
  flex-direction: column;
495
495
  gap: 12px;
496
496
  }
497
- `,It=y.div`
497
+ `,jt=b.div`
498
498
  position: absolute;
499
499
  top: calc(100% + 2px);
500
500
  width: calc(100% + 100px);
501
501
  border-radius: 4px;
502
- background: ${E.colors.white};
502
+ background: ${x.colors.white};
503
503
  box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);
504
504
  z-index: 10;
505
505
  max-height: 300px;
506
506
  overflow: auto;
507
507
 
508
- ${L.mbDown} {
508
+ ${w.mbDown} {
509
509
  width: calc(100% + 64px);
510
510
  left: -32px;
511
511
  }
512
- `,$t=y.li`
512
+ `,It=b.li`
513
513
  position: relative;
514
514
  cursor: pointer;
515
515
  padding: 12px 18px;
@@ -534,7 +534,7 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
534
534
  }
535
535
  }
536
536
 
537
- ${({isSelected:e})=>e&&`\n &::after {\n content: ${ee};\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n `}
537
+ ${({isSelected:e})=>e&&`\n &::after {\n content: ${X};\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n `}
538
538
 
539
539
  & + li::before {
540
540
  content: '';
@@ -543,11 +543,11 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
543
543
  right: 18px;
544
544
  top: 0;
545
545
  height: 1px;
546
- background-color: ${E.colors.neutral100};
546
+ background-color: ${x.colors.neutral100};
547
547
  }
548
548
 
549
549
  &:not([data-is-denied='true']):hover {
550
- background-color: ${E.colors.neutral50};
550
+ background-color: ${x.colors.neutral50};
551
551
  }
552
552
 
553
553
  &:last-child:hover {
@@ -563,32 +563,32 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
563
563
  &[data-is-denied='true'] {
564
564
  cursor: not-allowed;
565
565
  }
566
- `;y(Q)`
566
+ `;b(W)`
567
567
  width: 12px;
568
568
  height: 18px;
569
- `;const Ft=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.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=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.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"})),Rt=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.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"})),Tt=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.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"})),Pt=({state:e,isMobile:t,debouncedFetchSearchResults:a,selectedLocation:s,onSpecialtyClick:r,dispatch:d})=>{var p;const{t:h,locale:g}=c(),m=l(null),C=n((()=>u[g]),[g]),b=n((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:t?"border: 1px solid #d9d9d9":"none",height:t?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:t?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[t]),y=o((function(e){console.log(e)}),[a,d]);return w(m,(()=>{d({type:yt.ClickOutsideInputSpecialty})})),i.createElement(jt,{ref:m},i.createElement(I.Wrapper,null,i.createElement(I,{size:t?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(p=null==e?void 0:e.selectedSpecialty)||void 0===p?void 0:p.name)||"",rightSection:i.createElement(K,null),styles:b,onFocus:()=>d({type:yt.FocusInputSpecialty}),onChange:e=>{y(e.target.value)}})),"specialty"===e.focused&&i.createElement(It,null,i.createElement($t,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{r&&r({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},i.createElement("div",{className:"image-item"},i.createElement(Tt,null)),i.createElement(v,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>i.createElement($t,{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==s?void 0:s.id)===e.id},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement(v,{size:"md"},e.name))))))},Nt=({state:e,type:t,isMobile:a,isLoading:s,initalSearchValue:r,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,hideSpecialtySelection:h=!1,clientSlug:g="",focusSearchInput:m,onSearch:C,dispatch:b})=>{var y;const{t:f}=c(),v=l(null),E=n((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),S=n((()=>"doctor"===t?f("booking.searchBar.placeholder.doctor"):"service"===t?f("booking.searchBar.placeholder.service"):"hospital"===t?f("booking.searchBar.placeholder.hospital"):"specialty"===t?f("booking.searchBar.placeholder.specialty"):""),[t]),L=n((()=>({root:{flex:1,"&.hide-specialty-selection":{".mantine-Input-rightSection":{display:"none"},input:{paddingLeft:"48px"},".mantine-Input-icon":{left:"0"}}}})),[]),k=n((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),O=n((()=>({input:{color:"#262626"}})),[]);w(v,(()=>{b({type:yt.ClickOutsideInputSearch})}));const j=o((function(i){b({type:yt.ChangeInputSearch,payload:i}),"function"!=typeof C&&(i.trim().length>Ct[e.locale]||r||0===i.trim().length?p(i.trim(),e,t,g):(p.cancel(),b({type:yt.DisplayInitialSearchResults})))}),[b,e,t]),$=o((function(e){b({type:yt.SelectSpecialty,payload:e}),m()}),[b]);return i.createElement(xt,{ref:v},"specialty"===t?i.createElement(I.Wrapper,{styles:L},i.createElement(I,{icon:i.createElement(x.Search,null),size:a?"md":"lg",placeholder:S,styles:O,value:e.searchKeywords,onFocus:()=>b({type:yt.FocusInputSearchSpecialty}),onChange:e=>{j(e.target.value)}})):i.createElement(i.Fragment,null,"service"===t?i.createElement(I.Wrapper,{styles:L},i.createElement(I,{icon:i.createElement(x.Search,null),size:a?"md":"lg",name:"search-results",placeholder:S,onFocus:()=>b({type:yt.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{j(e.target.value)}})):i.createElement(i.Fragment,null,a&&!h?i.createElement(i.Fragment,null,i.createElement(Pt,{state:e,isMobile:a,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$}),i.createElement(I.Wrapper,{styles:L},i.createElement(I,{icon:i.createElement(x.Search,null),size:"md",placeholder:S,value:e.searchKeywords,name:"search-results",onFocus:()=>b({type:yt.FocusInputSearch}),onChange:e=>{j(e.target.value)}}))):i.createElement(I.Wrapper,{styles:L,className:h?"hide-specialty-selection":""},i.createElement(I,Object.assign({icon:i.createElement(x.Search,null),size:"lg",placeholder:S,styles:k,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{j(e.target.value)},onFocus:()=>b({type:yt.FocusInputSearch})},E,{rightSection:h?i.createElement(i.Fragment,null):i.createElement(Pt,{state:e,isMobile:a,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$})})))),"search"===e.focused&&i.createElement(Et,null,i.createElement(Ot,{type:t,state:e,results:(null===(y=e.searchResults)||void 0===y?void 0:y[t])||[],location:e.selectedLocation.name,dispatch:b,isLoading:s,typeInformation:d,clientSlug:g}))))},At=y.div`
569
+ `;const $t=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t.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"})),Ft=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t.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"})),Mt=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t.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"})),Rt=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},t.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Tt=({state:e,isMobile:i,debouncedFetchSearchResults:n,selectedLocation:l,onSpecialtyClick:c,dispatch:d})=>{var u;const{t:h,locale:g}=r(),m=s(null),C=o((()=>p[g]),[g]),b=o((()=>({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]),y=a((function(e){console.log(e)}),[n,d]);return E(m,(()=>{d({type:bt.ClickOutsideInputSpecialty})})),t.createElement(Ot,{ref:m},t.createElement(j.Wrapper,null,t.createElement(j,{size:i?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(u=null==e?void 0:e.selectedSpecialty)||void 0===u?void 0:u.name)||"",rightSection:t.createElement(V,null),styles:b,onFocus:()=>d({type:bt.FocusInputSpecialty}),onChange:e=>{y(e.target.value)}})),"specialty"===e.focused&&t.createElement(jt,null,t.createElement(It,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{c&&c({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},t.createElement("div",{className:"image-item"},t.createElement(Rt,null)),t.createElement(f,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>t.createElement(It,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),c&&c(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},t.createElement("div",{className:"image-item"},t.createElement("img",{src:e.thumbnail,alt:e.name})),t.createElement(f,{size:"md"},e.name))))))},Pt=({state:e,type:i,isMobile:n,isLoading:l,initalSearchValue:c,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,hideSpecialtySelection:h=!1,clientSlug:g="",focusSearchInput:m,onSearch:C,dispatch:b})=>{var y;const{t:f}=r(),x=s(null),S=o((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),w=o((()=>"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]),L=o((()=>({root:{flex:1,"&.hide-specialty-selection":{".mantine-Input-rightSection":{display:"none"},input:{paddingLeft:"48px"},".mantine-Input-icon":{left:"0"}}}})),[]),k=o((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),O=o((()=>({input:{color:"#262626"}})),[]);E(x,(()=>{b({type:bt.ClickOutsideInputSearch})}));const I=a((function(t){b({type:bt.ChangeInputSearch,payload:t}),"function"!=typeof C&&(t.trim().length>mt[e.locale]||c||0===t.trim().length?p(t.trim(),e,i,g):(p.cancel(),b({type:bt.DisplayInitialSearchResults})))}),[b,e,i]),$=a((function(e){b({type:bt.SelectSpecialty,payload:e}),m()}),[b]);return t.createElement(vt,{ref:x},"specialty"===i?t.createElement(j.Wrapper,{styles:L},t.createElement(j,{icon:t.createElement(v.Search,null),size:n?"md":"lg",placeholder:w,styles:O,value:e.searchKeywords,onFocus:()=>b({type:bt.FocusInputSearchSpecialty}),onChange:e=>{I(e.target.value)}})):t.createElement(t.Fragment,null,"service"===i?t.createElement(j.Wrapper,{styles:L},t.createElement(j,{icon:t.createElement(v.Search,null),size:n?"md":"lg",name:"search-results",placeholder:w,onFocus:()=>b({type:bt.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{I(e.target.value)}})):t.createElement(t.Fragment,null,n&&!h?t.createElement(t.Fragment,null,t.createElement(Tt,{state:e,isMobile:n,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$}),t.createElement(j.Wrapper,{styles:L},t.createElement(j,{icon:t.createElement(v.Search,null),size:"md",placeholder:w,value:e.searchKeywords,name:"search-results",onFocus:()=>b({type:bt.FocusInputSearch}),onChange:e=>{I(e.target.value)}}))):t.createElement(j.Wrapper,{styles:L,className:h?"hide-specialty-selection":""},t.createElement(j,Object.assign({icon:t.createElement(v.Search,null),size:"lg",placeholder:w,styles:k,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{I(e.target.value)},onFocus:()=>b({type:bt.FocusInputSearch})},S,{rightSection:h?t.createElement(t.Fragment,null):t.createElement(Tt,{state:e,isMobile:n,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$})})))),"search"===e.focused&&t.createElement(xt,null,t.createElement(kt,{type:i,state:e,results:(null===(y=e.searchResults)||void 0===y?void 0:y[i])||[],location:e.selectedLocation.name,dispatch:b,isLoading:l,typeInformation:d,clientSlug:g}))))},Nt=b.div`
570
570
  position: relative;
571
571
 
572
- ${L.mbDown} {
572
+ ${w.mbDown} {
573
573
  width: 100%;
574
574
  display: flex;
575
575
  flex-direction: column;
576
576
  gap: 12px;
577
577
  }
578
- `,Bt=y.div`
578
+ `,At=b.div`
579
579
  position: absolute;
580
580
  top: calc(100% + 2px);
581
581
  width: 100%;
582
582
  border-radius: 4px;
583
- background: ${E.colors.white};
583
+ background: ${x.colors.white};
584
584
  box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);
585
585
  z-index: 10;
586
586
 
587
- ${L.mbDown} {
587
+ ${w.mbDown} {
588
588
  width: calc(100% + 64px);
589
589
  left: -32px;
590
590
  }
591
- `,Vt=y.li`
591
+ `,Bt=b.li`
592
592
  position: relative;
593
593
  cursor: pointer;
594
594
  padding: 12px 18px;
@@ -597,7 +597,7 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
597
597
  gap: 14px;
598
598
  overflow: hidden;
599
599
 
600
- ${({isSelected:e})=>e&&`\n &::after {\n content: ${ee};\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n `}
600
+ ${({isSelected:e})=>e&&`\n &::after {\n content: ${X};\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n `}
601
601
 
602
602
  & + li::before {
603
603
  content: '';
@@ -606,11 +606,11 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
606
606
  right: 18px;
607
607
  top: 0;
608
608
  height: 1px;
609
- background-color: ${E.colors.neutral100};
609
+ background-color: ${x.colors.neutral100};
610
610
  }
611
611
 
612
612
  &:not([data-is-denied='true']):hover {
613
- background-color: ${E.colors.neutral50};
613
+ background-color: ${x.colors.neutral50};
614
614
  }
615
615
 
616
616
  &:last-child:hover {
@@ -626,38 +626,38 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
626
626
  &[data-is-denied='true'] {
627
627
  cursor: not-allowed;
628
628
  }
629
- `,Dt=y(Q)`
629
+ `,Vt=b(W)`
630
630
  width: 12px;
631
631
  height: 18px;
632
632
  flex: 0 0 12px;
633
- `,Kt=({state:e,isMobile:t,debouncedFetchCitiesByKeyword:a,selectedLocation:s,trackingAttributes:r,onLocationClick:d,dispatch:h})=>{const{t:g,locale:m}=c(),C=l(null),b=n((()=>r?{"data-event-category":r.dataEventCategory,"data-event-action":r.dataEventAction,"data-event-label":r.dataEventLabel}:{}),[r]),y=o((function(t){h({type:yt.ChangeInputLocation,payload:t}),t.trim().length>Ct[e.locale]?a(t.trim()):(a.cancel(),h({type:yt.DisplayInitialCities}))}),[a,h]);return w(C,(()=>{h({type:yt.ClickOutsideInputLocation})})),i.createElement(At,{ref:C},i.createElement(I.Wrapper,null,i.createElement(I,Object.assign({size:t?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>h({type:yt.FocusInputLocation}),onChange:e=>{y(e.target.value)}},b))),"location"===e.focused&&i.createElement(Bt,null,i.createElement(Vt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;d&&d({name:g("booking.searchBar.allLocations"),id:p,slug:null===(e=u[m])||void 0===e?void 0:e.ALL})}},i.createElement(Dt,{color:E.colors.neutral400}),i.createElement(v,{size:"md"},g("booking.searchBar.allLocations"))),e.cities.map((e=>i.createElement(Vt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),d&&d(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement(Dt,{color:E.colors.neutral400}),i.createElement(v,{size:"md"},e.name))))))},zt=y.div`
633
+ `,Dt=({state:e,isMobile:i,debouncedFetchCitiesByKeyword:n,selectedLocation:l,trackingAttributes:c,onLocationClick:u,dispatch:h})=>{const{t:g,locale:m}=r(),C=s(null),b=o((()=>c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}),[c]),y=a((function(t){h({type:bt.ChangeInputLocation,payload:t}),t.trim().length>mt[e.locale]?n(t.trim()):(n.cancel(),h({type:bt.DisplayInitialCities}))}),[n,h]);return E(C,(()=>{h({type:bt.ClickOutsideInputLocation})})),t.createElement(Nt,{ref:C},t.createElement(j.Wrapper,null,t.createElement(j,Object.assign({size:i?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>h({type:bt.FocusInputLocation}),onChange:e=>{y(e.target.value)}},b))),"location"===e.focused&&t.createElement(At,null,t.createElement(Bt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;u&&u({name:g("booking.searchBar.allLocations"),id:d,slug:null===(e=p[m])||void 0===e?void 0:e.ALL})}},t.createElement(Vt,{color:x.colors.neutral400}),t.createElement(f,{size:"md"},g("booking.searchBar.allLocations"))),e.cities.map((e=>t.createElement(Bt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),u&&u(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},t.createElement(Vt,{color:x.colors.neutral400}),t.createElement(f,{size:"md"},e.name))))))},Kt=b.div`
634
634
  display: flex;
635
635
  flex-wrap: wrap;
636
636
  row-gap: 8px;
637
637
  column-gap: 20px;
638
- ${L.mbDown} {
638
+ ${w.mbDown} {
639
639
  margin-top: 12px;
640
640
  }
641
- `,_t=y.div`
641
+ `,zt=b.div`
642
642
  display: flex;
643
643
  align-items: center;
644
644
  border-radius: 8px;
645
- border: 1px solid ${E.colors.neutral100};
646
- background: ${E.colors.white};
645
+ border: 1px solid ${x.colors.neutral100};
646
+ background: ${x.colors.white};
647
647
  padding: 8px 12px 8px 8px;
648
648
  flex: 0 0 calc(33.3% - 13px);
649
649
  gap: 12px;
650
650
  cursor: pointer;
651
651
 
652
652
  &:hover {
653
- background: ${E.colors.blue50};
653
+ background: ${x.colors.blue50};
654
654
  }
655
655
 
656
- ${L.tdDown} {
656
+ ${w.tdDown} {
657
657
  flex: 0 0 calc(50% - 10px);
658
658
  }
659
659
 
660
- ${L.mbDown} {
660
+ ${w.mbDown} {
661
661
  flex: 0 0 100%;
662
662
  border: none;
663
663
  }
@@ -677,7 +677,7 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
677
677
  .infor {
678
678
  flex: 1;
679
679
  .title {
680
- color: ${E.colors.gray800};
680
+ color: ${x.colors.gray800};
681
681
  font-size: 14px;
682
682
  font-style: normal;
683
683
  font-weight: 400;
@@ -685,88 +685,88 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
685
685
  }
686
686
 
687
687
  .description {
688
- color: ${E.colors.gray600};
688
+ color: ${x.colors.gray600};
689
689
  font-size: 12px;
690
690
  font-weight: 400;
691
691
  line-height: 18px;
692
692
  }
693
693
  }
694
- `,Ht=y($)`
694
+ `,_t=b(I)`
695
695
  margin: 24px 0 !important;
696
- `,Gt=y.div`
696
+ `,Ht=b.div`
697
697
  display: flex;
698
698
  justify-content: center;
699
699
  margin-top: 24px;
700
700
  .show-more {
701
701
  border-radius: 4px;
702
- border: 1px solid ${E.colors.neutral200};
702
+ border: 1px solid ${x.colors.neutral200};
703
703
  padding: 12px 16px;
704
704
  cursor: pointer;
705
705
  display: inline-block;
706
- color: ${E.colors.gray800};
706
+ color: ${x.colors.gray800};
707
707
  font-size: 16px;
708
708
  font-weight: 600;
709
709
  line-height: 24px;
710
710
 
711
- ${L.mbDown} {
711
+ ${w.mbDown} {
712
712
  width: 100%;
713
713
  text-align: center;
714
714
  }
715
715
  }
716
- `,Zt=({state:e,isMobile:t,specialties:a,isLoading:o,dispatch:s})=>{const{t:l,locale:r}=c(),{selectedLocation:d}=e,p=n((()=>u[r]),[r]),h=n((()=>a.length>=9||e.searchKeywords.trim().length<=Ct[e.locale]),[e.searchKeywords,a]);return i.createElement(i.Fragment,null,!t&&i.createElement(Ht,{color:"#E4E8EC"}),i.createElement(zt,null,a.length>0&&!o&&i.createElement(i.Fragment,null,a.map(((e,t)=>t>=9?i.createElement(i.Fragment,null):i.createElement(_t,{key:e.id,onClick:()=>(e=>{let t="";e===m?(t=`/${d.slug}/${p.HOSPITAL}/${C.GSK}/`,s({type:yt.ClickOutsideInputSearchSpecialty})):t=`/${d.slug}/${p.DOCTOR}/${e}`,s({type:yt.NavigateTo,payload:t})})(e.slug)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name)))))),0===a.length&&!o&&i.createElement(v,{size:"sm",color:E.colors.gray400},l("booking.searchBar.noResults")),o&&Array(6).fill(void 0).map(((e,t)=>i.createElement(_t,{key:"loading"+t},i.createElement("div",{className:"image-item"},i.createElement(j,{height:40,animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(j,{height:20,radius:"sm",animate:!0}))))))),h&&i.createElement(Gt,null,i.createElement("div",{className:"show-more",onClick:()=>{const e=`/${p.SPECIALTIES}`;s({type:yt.NavigateTo,payload:e})}},l("home.seeAll"))))},Yt=y.div`
716
+ `,Gt=({state:e,isMobile:i,specialties:a,isLoading:n,dispatch:s})=>{const{t:l,locale:c}=r(),{selectedLocation:d}=e,u=o((()=>p[c]),[c]),h=o((()=>a.length>=9||e.searchKeywords.trim().length<=mt[e.locale]),[e.searchKeywords,a]);return t.createElement(t.Fragment,null,!i&&t.createElement(_t,{color:"#E4E8EC"}),t.createElement(Kt,null,a.length>0&&!n&&t.createElement(t.Fragment,null,a.map(((e,i)=>i>=9?t.createElement(t.Fragment,null):t.createElement(zt,{key:e.id,onClick:()=>(e=>{let t="";e===g?(t=`/${d.slug}/${u.HOSPITAL}/${m.GSK}/`,s({type:bt.ClickOutsideInputSearchSpecialty})):t=`/${d.slug}/${u.DOCTOR}/${e}`,s({type:bt.NavigateTo,payload:t})})(e.slug)},t.createElement("div",{className:"image-item"},t.createElement("img",{src:e.thumbnail,alt:e.name})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},e.name)))))),0===a.length&&!n&&t.createElement(f,{size:"sm",color:x.colors.gray400},l("booking.searchBar.noResults")),n&&Array(6).fill(void 0).map(((e,i)=>t.createElement(zt,{key:"loading"+i},t.createElement("div",{className:"image-item"},t.createElement(O,{height:40,animate:!0})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},t.createElement(O,{height:20,radius:"sm",animate:!0}))))))),h&&t.createElement(Ht,null,t.createElement("div",{className:"show-more",onClick:()=>{const e=`/${u.SPECIALTIES}`;s({type:bt.NavigateTo,payload:e})}},l("home.seeAll"))))},Zt=b.div`
717
717
  display: flex;
718
718
  gap: 5px;
719
719
  margin-top: 16px;
720
720
  flex-wrap: wrap;
721
- `,Ut=y.div`
722
- color: ${E.colors.gray600};
721
+ `,Yt=b.div`
722
+ color: ${x.colors.gray600};
723
723
  font-size: 14px;
724
724
  font-weight: 600;
725
725
  line-height: 22px;
726
726
  padding: 4px 12px;
727
- background: ${E.colors.white};
727
+ background: ${x.colors.white};
728
728
  border-radius: 32px;
729
729
  cursor: pointer;
730
- border: 1px solid ${E.colors.white};
730
+ border: 1px solid ${x.colors.white};
731
731
  margin-bottom: 5px;
732
- border-color: ${E.colors.neutral100};
732
+ border-color: ${x.colors.neutral100};
733
733
  background: #f7f9fc;
734
734
 
735
735
  &.view-all {
736
736
  border-radius: 32px;
737
- border-color: ${E.colors.blue50};
738
- background: ${E.colors.blue50};
739
- color: ${E.colors.blue600};
737
+ border-color: ${x.colors.blue50};
738
+ background: ${x.colors.blue50};
739
+ color: ${x.colors.blue600};
740
740
 
741
741
  &:hover {
742
- border-color: ${E.colors.blue50};
743
- background: ${E.colors.blue50};
744
- color: ${E.colors.blue600};
742
+ border-color: ${x.colors.blue50};
743
+ background: ${x.colors.blue50};
744
+ color: ${x.colors.blue600};
745
745
  }
746
746
  }
747
747
 
748
748
  &:hover {
749
- border-color: ${E.colors.neutral100};
749
+ border-color: ${x.colors.neutral100};
750
750
  background: #f7f9fc;
751
751
  }
752
- `,Wt=y.div`
753
- color: ${E.colors.gray600};
752
+ `,Ut=b.div`
753
+ color: ${x.colors.gray600};
754
754
  font-size: 14px;
755
755
  font-weight: 600;
756
756
  line-height: 22px;
757
757
  padding: 4px 0;
758
- background: ${E.colors.white};
758
+ background: ${x.colors.white};
759
759
  border-radius: 32px;
760
- border: 1px solid ${E.colors.white};
760
+ border: 1px solid ${x.colors.white};
761
761
  margin-bottom: 5px;
762
762
  margin-right: 7px;
763
- `,Qt=({state:e,type:t,typeInformation:a,dispatch:o})=>{const{t:s}=c(),{selectedLocation:l}=e,r=n((()=>a[t].slug),[a,t]);return i.createElement(Yt,null,i.createElement(Wt,null,s("booking.searchBar.popularKey")),e.popularKeys.map((e=>i.createElement(Ut,{key:e.id,onClick:()=>{var t;(t=e).url&&(window.location.href=t.url)}},e.keyword))),i.createElement(Ut,{className:"view-all",onClick:()=>{const e=`/${l.slug}/${r}`;e&&o({type:yt.NavigateTo,payload:e})}},s("booking.searchBar.viewAll")))},qt=y.div`
763
+ `,Wt=({state:e,type:i,typeInformation:a,dispatch:n})=>{const{t:s}=r(),{selectedLocation:l}=e,c=o((()=>a[i].slug),[a,i]);return t.createElement(Zt,null,t.createElement(Ut,null,s("booking.searchBar.popularKey")),e.popularKeys.map((e=>t.createElement(Yt,{key:e.id,onClick:()=>{var t;(t=e).url&&(window.location.href=t.url)}},e.keyword))),t.createElement(Yt,{className:"view-all",onClick:()=>{const e=`/${l.slug}/${c}`;e&&n({type:bt.NavigateTo,payload:e})}},s("booking.searchBar.viewAll")))},Qt=b.div`
764
764
  background: rgba(255, 255, 255, 0.64);
765
765
  backdrop-filter: blur(12px);
766
- border-bottom: 1px solid ${E.colors.neutral100};
767
- `,Jt=y(V)`
766
+ border-bottom: 1px solid ${x.colors.neutral100};
767
+ `,qt=b(B)`
768
768
  padding: 0 16px;
769
- `,Xt=({currentTab:e,hideTabBookingSearch:t=[],isMobile:a,setCurrentTab:o})=>{const s=n((()=>({root:{overflowY:a?"hidden":"initial",overflowX:a?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:a?"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:a?"14px":"16px",fontWeight:600,lineHeight:a?"22px":"24px"}})),[a]),l=(()=>{const{t:e}=c();return[{value:"hospital",label:e("booking.searchPopup.hospitals")},{value:"doctor",label:e("booking.searchPopup.doctors")},{value:"service",label:e("booking.searchPopup.services")},{value:"specialty",label:e("booking.searchPopup.specialties")}]})(),r=n((()=>l.filter((e=>!t.includes(e.value)))||[]),[t,l]);return i.createElement(qt,{className:"booking-search-tab"},i.createElement(Jt,null,i.createElement(F,{value:e,onTabChange:e=>{o(e)},styles:s},i.createElement(F.List,null,r.map((e=>i.createElement(F.Tab,{value:e.value,key:e.value},e.label)))))))};var ei;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(ei||(ei={}));const ti=({isMobile:e,careApiDomain:t,geoLocationPermission:m,geoLocationCoordinates:b,initialSelectedCity:y,initialSearchValue:f="",initTypeSearch:v="hospital",initSpecialty:x,careFrontDomain:E="/care",isDebug:S=!1,gaTrackingSearchBar:L,gaTrackingLocationSearch:k,autoCompleteDisabled:j=!1,inputSearchPlaceholder:I="",hideTabBookingSearch:$=[],hideSpecialtySelection:F=!1,hidePopularSearchKeys:T=!1,clientSlug:P="",routerPush:N,onGeoLocationPermissionChange:A,onChangeLocation:B})=>{const{locale:V,t:D}=c(),K=l(null),_=l(null),[H,G]=a(v),{geoLocationPermission:Z,geoLocationCoordinates:Y}=z(),[U,W]=r(vt,bt,(t=>Object.assign(Object.assign({},t),{isDebug:S,isMobile:e,geoLocationPermission:m||Z||"unset",geoLocationCoordinates:b||Y||null,searchKeywords:f,initialSelectedCity:y||null,selectedLocation:y||t.selectedLocation||null,searchLocationKeywords:(null==y?void 0:y.name)||t.searchLocationKeywords,autoCompleteDisabled:j,inputSearchPlaceholder:I,locale:V}))),{navigateTo:Q,focusedSpecialty:q,searchKeywords:J,geoLocationPermission:X,selectedLocation:ee,selectedSpecialty:te,initialSelectedCity:ie,searchResults:ae,isLoadingSearchResults:oe}=U,{fetchCitiesByLocation:ne,fetchCitiesByKeyword:se,fetchSearchResults:le,fetchAllSpecialties:re,fetchPopularKeys:ce}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN",client:a=""}){const n=o((function(a,o={}){const n=`${t}${a}`;return e({type:yt.FetchCitiesStart}),fetch(dt(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:yt.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const s={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(s.noPaging=1);const l=[n(O.GET_CITY_BY_IP,Object.assign(Object.assign(Object.assign({},o),s),{client:C.MSD===a?"":a}))];return"zh-TW"===i&&l.push(n(O.GET_CITIES_LIST,{noPaging:1,client:C.MSD===a?"":a})),Promise.all(l).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:yt.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return n(O.GET_CITIES_LIST,{keyword:t,client:a}).then((t=>{e({type:yt.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(o,n,s,l,r){const c="specialty"===s?`${t}${O.GET_SEARCH_SPECIALTY}`:`${t}${O.GET_SEARCH_V2}`;e({type:yt.FetchSearchResultsStart});const{selectedLocation:d,geoLocationCoordinates:u,selectedSpecialty:g}=n;let m="";if(!d)return void e({type:yt.FetchSearchResultsFinish});m=d.id===p?"":d.id;const b=(null==u?void 0:u.lat)||"",y=(null==u?void 0:u.lng)||"",f=(null==g?void 0:g.id)>0?null==g?void 0:g.id:"",v=o.trim().length>Ct[i]?o.trim():"";return fetch(dt(c,{domain:t,searchType:s||"global",keyword:v,city:m===h?"":m,lat:b,lng:y,specialty_id:f,client_slug:C.MSD===l?"":l,msd:C.MSD===a?1:""},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=>{let i=[];"specialty"!==s&&(i=t.searches),"specialty"===s&&(i=v?t.specialties:t.default),e({type:yt.FetchSearchResultsComplete,payload:{key:s,searches:i||[]}}),r&&e({type:yt.UpdateInitialSearchResults,payload:{key:s,searches:i||[]}})})).catch((e=>{console.log("error loading search results",{url:c,error:e})})).finally((()=>e({type:yt.FetchSearchResultsFinish})))}),[i,t,e]),fetchAllSpecialties:o((function(){const o=`${t}${O.GET_SEARCH_SPECIALTY}`;return fetch(dt(o,{domain:t,searchType:"",msd:C.MSD===a?1:""},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:yt.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e]),fetchPopularKeys:o((function(a){const o=`${t}${O.GET_SEARCH_POPULAR_KEY}`;return fetch(dt(o,{domain:t,searchType:ei[a],sort_by:"display_order",sort_order:"asc"},i)).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:yt.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e])}}({dispatch:W,locale:V,careApiDomain:t,client:P}),de=n((()=>u[V]),[V]),pe=n((()=>({doctor:{name:D("booking.searchPopup.doctors"),icon:i.createElement(Ft,null),slug:de.DOCTOR},service:{name:D("booking.searchPopup.services"),icon:i.createElement(Mt,null),slug:de.SERVICE},hospital:{name:D("booking.searchPopup.hospitals"),icon:i.createElement(Rt,null),slug:de.HOSPITAL},specialty:{name:D("booking.searchPopup.specialties"),icon:i.createElement(Tt,null),slug:de.SPECIALTIES}})),[H]),ue=n((()=>d(se,400)),[se]),he=n((()=>d(le,400)),[le]),ge=o((function(e){W({type:yt.SelectLocation,payload:e}),me(),B&&B(e)}),[D,W]);function me(){var e;K.current&&(null===(e=K.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return w(_,(()=>{W({type:yt.ClickOutsideInputSearchSpecialty})})),s((()=>{var t;"denied"===X||ie||W({type:yt.SelectLocation,payload:{name:D("booking.searchBar.allLocations"),id:p,slug:null===(t=u[V])||void 0===t?void 0:t.ALL}}),A&&A(X,U.geoLocationCoordinates),e&&"granted"===X&&ee&&W({type:yt.FocusInputSearch}),ne({coordinates:U.geoLocationCoordinates})}),[X]),s((()=>{const e=x||{name:D("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:de.SPECIALTIES};U.selectedSpecialty||W({type:yt.SelectSpecialty,payload:e})}),[x,U.selectedSpecialty]),s((()=>{re()}),[]),s((()=>{ce(H)}),[H]),s((()=>{Q&&(N?N(Q):window.location.href=`${E}${Q}`)}),[Q]),s((()=>{le(U.searchKeywords,U,H,P,!0)}),[ee,te,H]),i.createElement(ut,{ref:K},i.createElement(Xt,{currentTab:H,setCurrentTab:G,isMobile:e,hideTabBookingSearch:$}),i.createElement(ht,{className:"booking-search-container"},i.createElement(gt,null,i.createElement(mt,null,i.createElement("div",{ref:_},i.createElement(M,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==H&&i.createElement(Kt,{state:U,isMobile:e,dispatch:W,debouncedFetchCitiesByKeyword:ue,selectedLocation:ee,onLocationClick:ge,trackingAttributes:k}),i.createElement(Nt,{type:H,isMobile:e,state:U,dispatch:W,debouncedFetchSearchResults:he,initalSearchValue:f,focusSearchInput:me,typeInformation:pe,trackingAttributes:L,isLoading:oe,hideSpecialtySelection:F,clientSlug:P}),i.createElement(R,{size:e?"md":"lg",color:"#2D87F3",fullWidth:e,variant:"filled",onClick:function(){let e="";const{slug:t}=pe[H];let i="";const a=g[V][P];("doctor"===H||"hospital"===H)&&U.selectedSpecialty.id>0&&(i=`&specialtyId=${U.selectedSpecialty.id}`),e="specialty"===H?`/${t}`:`/${ee.slug}/${t}`,a&&(e+=`/${a}`),e+=`?q=${J}${i}`,e&&W({type:yt.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},D("booking.searchBar.searchButton"))),!T&&"specialty"!==H&&U.popularKeys.length>0&&i.createElement(Qt,{type:H,state:U,typeInformation:pe,dispatch:W}),"specialty"===H&&"search"===q&&i.createElement(Zt,{state:U,isMobile:e,dispatch:W,specialties:(null==ae?void 0:ae.specialty)||[],isLoading:oe}))))))},ii=y.div`
769
+ `,Jt=({currentTab:e,hideTabBookingSearch:i=[],isMobile:a,setCurrentTab:n})=>{const s=o((()=>({root:{overflowY:a?"hidden":"initial",overflowX:a?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:a?"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:a?"14px":"16px",fontWeight:600,lineHeight:a?"22px":"24px"}})),[a]),l=(()=>{const{t:e}=r();return[{value:"hospital",label:e("booking.searchPopup.hospitals")},{value:"doctor",label:e("booking.searchPopup.doctors")},{value:"service",label:e("booking.searchPopup.services")},{value:"specialty",label:e("booking.searchPopup.specialties")}]})(),c=o((()=>l.filter((e=>!i.includes(e.value)))||[]),[i,l]);return t.createElement(Qt,{className:"booking-search-tab"},t.createElement(qt,null,t.createElement($,{value:e,onTabChange:e=>{n(e)},styles:s},t.createElement($.List,null,c.map((e=>t.createElement($.Tab,{value:e.value,key:e.value},e.label)))))))};var Xt;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(Xt||(Xt={}));const ei=({isMobile:e,careApiDomain:g,geoLocationPermission:C,geoLocationCoordinates:b,initialSelectedCity:y,initialSearchValue:f="",initTypeSearch:v="hospital",initSpecialty:x,careFrontDomain:S="/care",isDebug:w=!1,gaTrackingSearchBar:L,gaTrackingLocationSearch:O,autoCompleteDisabled:j=!1,inputSearchPlaceholder:I="",hideTabBookingSearch:$=[],hideSpecialtySelection:R=!1,hidePopularSearchKeys:T=!1,clientSlug:P="",routerPush:N,onGeoLocationPermissionChange:A,onChangeLocation:B})=>{const{locale:V,t:D}=r(),z=s(null),_=s(null),[H,G]=i(v),{geoLocationPermission:Z,geoLocationCoordinates:Y}=K(),[U,W]=l(ft,Ct,(t=>Object.assign(Object.assign({},t),{isDebug:w,isMobile:e,geoLocationPermission:C||Z||"unset",geoLocationCoordinates:b||Y||null,searchKeywords:f,initialSelectedCity:y||null,selectedLocation:y||t.selectedLocation||null,searchLocationKeywords:(null==y?void 0:y.name)||t.searchLocationKeywords,autoCompleteDisabled:j,inputSearchPlaceholder:I,locale:V}))),{navigateTo:Q,focusedSpecialty:q,searchKeywords:J,geoLocationPermission:X,selectedLocation:ee,selectedSpecialty:te,initialSelectedCity:ie,searchResults:ae,isLoadingSearchResults:oe}=U,{fetchCitiesByLocation:ne,fetchCitiesByKeyword:se,fetchSearchResults:le,fetchAllSpecialties:re,fetchPopularKeys:ce}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN",client:o=""}){const n=a((function(a,o={}){const n=`${t}${a}`;return e({type:bt.FetchCitiesStart}),fetch(ct(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:bt.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:a((function({coordinates:t}){let a={};const s={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(s.noPaging=1);const l=[n(k.GET_CITY_BY_IP,Object.assign(Object.assign(Object.assign({},a),s),{client:m.MSD===o?"":o}))];return"zh-TW"===i&&l.push(n(k.GET_CITIES_LIST,{noPaging:1,client:m.MSD===o?"":o})),Promise.all(l).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:bt.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:a((function(t){return n(k.GET_CITIES_LIST,{keyword:t,client:o}).then((t=>{e({type:bt.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:a((function(a,n,s,l,r){const c="specialty"===s?`${t}${k.GET_SEARCH_SPECIALTY}`:`${t}${k.GET_SEARCH_V2}`;e({type:bt.FetchSearchResultsStart});const{selectedLocation:p,geoLocationCoordinates:h,selectedSpecialty:g}=n;let C="";if(!p)return void e({type:bt.FetchSearchResultsFinish});C=p.id===d?"":p.id;const b=(null==h?void 0:h.lat)||"",y=(null==h?void 0:h.lng)||"",f=(null==g?void 0:g.id)>0?null==g?void 0:g.id:"",v=a.trim().length>mt[i]?a.trim():"";return fetch(ct(c,{domain:t,searchType:s||"global",keyword:v,city:C===u?"":C,lat:b,lng:y,specialty_id:f,client_slug:m.MSD===l?"":l,msd:m.MSD===o?1:""},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=>{let i=[];"specialty"!==s&&(i=t.searches),"specialty"===s&&(i=v?t.specialties:t.default),e({type:bt.FetchSearchResultsComplete,payload:{key:s,searches:i||[]}}),r&&e({type:bt.UpdateInitialSearchResults,payload:{key:s,searches:i||[]}})})).catch((e=>{console.log("error loading search results",{url:c,error:e})})).finally((()=>e({type:bt.FetchSearchResultsFinish})))}),[i,t,e]),fetchAllSpecialties:a((function(){const a=`${t}${k.GET_SEARCH_SPECIALTY}`;return fetch(ct(a,{domain:t,searchType:"",msd:m.MSD===o?1:""},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:bt.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:a,error:e})}))}),[i,t,e]),fetchPopularKeys:a((function(a){const o=`${t}${k.GET_SEARCH_POPULAR_KEY}`;return fetch(ct(o,{domain:t,searchType:Xt[a],sort_by:"display_order",sort_order:"asc"},i)).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:bt.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e])}}({dispatch:W,locale:V,careApiDomain:g,client:P}),de=o((()=>p[V]),[V]),pe=o((()=>({doctor:{name:D("booking.searchPopup.doctors"),icon:t.createElement($t,null),slug:de.DOCTOR},service:{name:D("booking.searchPopup.services"),icon:t.createElement(Ft,null),slug:de.SERVICE},hospital:{name:D("booking.searchPopup.hospitals"),icon:t.createElement(Mt,null),slug:de.HOSPITAL},specialty:{name:D("booking.searchPopup.specialties"),icon:t.createElement(Rt,null),slug:de.SPECIALTIES}})),[H]),ue=o((()=>c(se,400)),[se]),he=o((()=>c(le,400)),[le]),ge=a((function(e){W({type:bt.SelectLocation,payload:e}),me(),B&&B(e)}),[D,W]);function me(){var e;z.current&&(null===(e=z.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return E(_,(()=>{W({type:bt.ClickOutsideInputSearchSpecialty})})),n((()=>{var t;"denied"===X||ie||W({type:bt.SelectLocation,payload:{name:D("booking.searchBar.allLocations"),id:d,slug:null===(t=p[V])||void 0===t?void 0:t.ALL}}),A&&A(X,U.geoLocationCoordinates),e&&"granted"===X&&ee&&W({type:bt.FocusInputSearch}),ne({coordinates:U.geoLocationCoordinates})}),[X]),n((()=>{const e=x||{name:D("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:de.SPECIALTIES};U.selectedSpecialty||W({type:bt.SelectSpecialty,payload:e})}),[x,U.selectedSpecialty]),n((()=>{re()}),[]),n((()=>{ce(H)}),[H]),n((()=>{Q&&(N?N(Q):window.location.href=`${S}${Q}`)}),[Q]),n((()=>{le(U.searchKeywords,U,H,P,!0)}),[ee,te,H]),t.createElement(pt,{ref:z},t.createElement(Jt,{currentTab:H,setCurrentTab:G,isMobile:e,hideTabBookingSearch:$}),t.createElement(ut,{className:"booking-search-container"},t.createElement(ht,null,t.createElement(gt,null,t.createElement("div",{ref:_},t.createElement(F,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==H&&t.createElement(Dt,{state:U,isMobile:e,dispatch:W,debouncedFetchCitiesByKeyword:ue,selectedLocation:ee,onLocationClick:ge,trackingAttributes:O}),t.createElement(Pt,{type:H,isMobile:e,state:U,dispatch:W,debouncedFetchSearchResults:he,initalSearchValue:f,focusSearchInput:me,typeInformation:pe,trackingAttributes:L,isLoading:oe,hideSpecialtySelection:R,clientSlug:P}),t.createElement(M,{size:e?"md":"lg",color:"#2D87F3",fullWidth:e,variant:"filled",onClick:function(){let e="";const{slug:t}=pe[H];let i="";const a=h[V][P];("doctor"===H||"hospital"===H)&&U.selectedSpecialty.id>0&&(i=`&specialtyId=${U.selectedSpecialty.id}`),e="specialty"===H?`/${t}`:`/${ee.slug}/${t}`,a&&(e+=`/${a}`),e+=`?q=${J}${i}`,e&&W({type:bt.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},D("booking.searchBar.searchButton"))),!T&&"specialty"!==H&&U.popularKeys.length>0&&t.createElement(Wt,{type:H,state:U,typeInformation:pe,dispatch:W}),"specialty"===H&&"search"===q&&t.createElement(Gt,{state:U,isMobile:e,dispatch:W,specialties:(null==ae?void 0:ae.specialty)||[],isLoading:oe}))))))},ti=b.div`
770
770
  background-color: var(--neutral50);
771
771
  padding: 12px 0;
772
772
  box-shadow: inset 0px 1px 0px #e4e8ec;
@@ -785,4 +785,4 @@ import{a as e}from"./tslib.es6-e88b4ce3.js";import*as t from"react";import i,{us
785
785
  display: flex;
786
786
  align-items: center;
787
787
  }
788
- `,ai=({children:e,icon:t,className:a,style:o})=>i.createElement(ii,{style:o,className:a},i.createElement(V,null,i.createElement("div",{className:"icon-wrapper"},t),i.createElement(v,{size:"c1",color:"var(--neutral800)"},e)));var oi;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(oi||(oi={}));var ni=Object.freeze({__proto__:null,get RedirectType(){return oi}});export{pt as B,K as C,ai as T,ti as a,ni as t};
788
+ `,ii=({children:e,icon:i,className:a,style:o})=>t.createElement(ti,{style:o,className:a},t.createElement(B,null,t.createElement("div",{className:"icon-wrapper"},i),t.createElement(f,{size:"c1",color:"var(--neutral800)"},e)));var ai;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(ai||(ai={}));var oi=Object.freeze({__proto__:null,get RedirectType(){return ai}});export{dt as B,ii as T,ei as a,oi as t};