@hhgtech/hhg-components 1.28.39 → 1.28.40

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 (277) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -1
  4. package/build/care.js +1 -1
  5. package/build/components.js +1 -1
  6. package/build/{constants-57d89069.js → constants-20b167d2.js} +1 -1
  7. package/build/{constants-82348c13.js → constants-e7c8985f.js} +1 -1
  8. package/build/constants.js +1 -1
  9. package/build/{core-081bdce5.js → core-ca200210.js} +1 -1
  10. package/build/ecom.js +1 -1
  11. package/build/esm/babyGrowth.js +4 -4
  12. package/build/esm/cache.js +1 -1
  13. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -1
  14. package/build/esm/care.js +1 -1
  15. package/build/esm/components.js +1 -1
  16. package/build/esm/{constants-0d46ae1d.js → constants-95cb8ea0.js} +1 -1
  17. package/build/esm/{constants-039f36fe.js → constants-bcabc622.js} +1 -1
  18. package/build/esm/constants.js +1 -1
  19. package/build/esm/{core-3c0d6b0f.js → core-ac4e85c7.js} +1 -1
  20. package/build/esm/ecom.js +1 -1
  21. package/build/esm/footer.js +1 -1
  22. package/build/esm/gAssets.js +1 -1
  23. package/build/esm/{getDynamicHealthTool-d874b77f.js → getDynamicHealthTool-00faa2c1.js} +1 -1
  24. package/build/esm/{getSocialList-5ea15cba.js → getSocialList-1248c74c.js} +1 -1
  25. package/build/esm/hooks.js +1 -1
  26. package/build/esm/i18n.js +1 -1
  27. package/build/esm/i18nV2.js +1 -1
  28. package/build/esm/{index-8dfb1724.js → index-02f0f4fe.js} +1 -1
  29. package/build/esm/{index-14839883.js → index-13feb3ef.js} +1 -1
  30. package/build/esm/{index-8db07311.js → index-14780cf0.js} +1 -1
  31. package/build/esm/{index-282bbb6d.js → index-15efeba7.js} +1 -1
  32. package/build/esm/{index-5ecfac85.js → index-19144b5a.js} +1 -1
  33. package/build/esm/index-1fc7e785.js +1 -0
  34. package/build/esm/{index-e17cd802.js → index-212c6a21.js} +1 -1
  35. package/build/esm/{index-0e6dbcc0.js → index-428d1aeb.js} +1 -1
  36. package/build/esm/{index-6795099e.js → index-4e8c3bb6.js} +1 -1
  37. package/build/esm/index-53ef56cd.js +1 -0
  38. package/build/esm/{index-20b84b31.js → index-6aeb538e.js} +1 -1
  39. package/build/esm/{index-7d0179b5.js → index-941eb658.js} +1 -1
  40. package/build/esm/{index-f1ff7dac.js → index-a5e07868.js} +1 -1
  41. package/build/esm/index-c7ee8e8e.js +1 -0
  42. package/build/esm/{index-434197c4.js → index-d6b66097.js} +1 -1
  43. package/build/esm/{index-1ac72931.js → index-dde41fb0.js} +1 -1
  44. package/build/esm/{index-5761cc3d.js → index-e0365fb2.js} +1 -1
  45. package/build/esm/{index-dff74895.js → index-e28d801c.js} +1 -1
  46. package/build/esm/{index-fa32b4d8.js → index-e751d8c2.js} +1 -1
  47. package/build/esm/{index-c70696a6.js → index-eace0e39.js} +1 -1
  48. package/build/esm/{index-622dbaca.js → index-f2ede565.js} +1 -1
  49. package/build/esm/{index-3d1ca95c.js → index-f4f05774.js} +1 -1
  50. package/build/esm/index.js +1 -1
  51. package/build/esm/{index.styled-e26007df.js → index.styled-4a4ab4d3.js} +6 -6
  52. package/build/esm/{index.styled-a1854a4a.js → index.styled-7f374882.js} +1 -1
  53. package/build/esm/{index.styled-ede7c10d.js → index.styled-cadd6706.js} +1 -1
  54. package/build/esm/{index.styled-90fe28c0.js → index.styled-d760ce2f.js} +3 -3
  55. package/build/esm/{index.styles-95837b62.js → index.styles-3036321c.js} +6 -6
  56. package/build/esm/lead.js +1 -1
  57. package/build/esm/mantine.js +1 -1
  58. package/build/esm/misc.js +1 -1
  59. package/build/esm/navigation.js +1 -1
  60. package/build/esm/onboardingV2.js +9 -9
  61. package/build/esm/pwg.js +3 -3
  62. package/build/esm/{routing-7c32cdb3.js → routing-0284bf36.js} +1 -1
  63. package/build/esm/subot.js +1 -1
  64. package/build/esm/together.js +1 -1
  65. package/build/esm/{types-c5a3b173.js → types-553958a6.js} +7 -7
  66. package/build/esm/{types-d466572e.js → types-b8611d30.js} +1 -1
  67. package/build/esm/types.js +1 -1
  68. package/build/esm/{useCategory-702b6604.js → useCategory-b6426a83.js} +1 -1
  69. package/build/esm/useHealthToolCache-9185d66c.js +1 -0
  70. package/build/esm/{usePlacesAutocomplete-d14c4671.js → usePlacesAutocomplete-12181fb9.js} +1 -1
  71. package/build/esm/{useRafState-1ba3edb3.js → useRafState-652131c8.js} +1 -1
  72. package/build/esm/{useTranslations-51dc4ab8.js → useTranslations-e0f5679c.js} +1 -1
  73. package/build/esm/{utils-8849cc57.js → utils-0347b372.js} +1 -1
  74. package/build/esm/{utils-b2a0d664.js → utils-f65c59d5.js} +1 -1
  75. package/build/esm/vaccination.js +1 -1
  76. package/build/footer.js +1 -1
  77. package/build/gAssets.js +1 -1
  78. package/build/getDynamicHealthTool-765ca7ef.js +1 -0
  79. package/build/{getSocialList-55a29d3a.js → getSocialList-1ec4bb1e.js} +1 -1
  80. package/build/hooks.js +1 -1
  81. package/build/i18n.js +1 -1
  82. package/build/i18nV2.js +1 -1
  83. package/build/{index-511b99c0.js → index-0dfb02fc.js} +1 -1
  84. package/build/{index-80a776c5.js → index-1411d846.js} +1 -1
  85. package/build/{index-557f79d9.js → index-16f49c45.js} +1 -1
  86. package/build/{index-dd161fb0.js → index-27fce9f9.js} +1 -1
  87. package/build/{index-1cc9c0e2.js → index-2e6dbe21.js} +1 -1
  88. package/build/{index-543b2956.js → index-32a73461.js} +1 -1
  89. package/build/{index-70fc6801.js → index-3824cae4.js} +1 -1
  90. package/build/{index-f20a3b0b.js → index-3b70c7c6.js} +1 -1
  91. package/build/{index-cbb25109.js → index-417895f0.js} +1 -1
  92. package/build/{index-192c3976.js → index-48cdf99f.js} +1 -1
  93. package/build/{index-cda192d8.js → index-67c1fe30.js} +1 -1
  94. package/build/{index-9686d73a.js → index-8919cdee.js} +1 -1
  95. package/build/{index-e23393d6.js → index-9b5898bd.js} +1 -1
  96. package/build/{index-2744bd7d.js → index-a604bf78.js} +1 -1
  97. package/build/index-ccd99d7b.js +1 -0
  98. package/build/index-d681911b.js +1 -0
  99. package/build/{index-505a6231.js → index-d79b83e7.js} +3 -3
  100. package/build/{index-8a4e8200.js → index-e387ee43.js} +1 -1
  101. package/build/{index-e4732cde.js → index-e393d84f.js} +1 -1
  102. package/build/{index-5a09ea5b.js → index-e94212a5.js} +1 -1
  103. package/build/{index-566d616e.js → index-f0b22b20.js} +1 -1
  104. package/build/{index-5537eb8b.js → index-f65612b1.js} +1 -1
  105. package/build/index.js +1 -1
  106. package/build/{index.styled-bf702a00.js → index.styled-38621c5f.js} +1 -1
  107. package/build/{index.styled-95722c0d.js → index.styled-6220e760.js} +1 -1
  108. package/build/{index.styled-edaa5fca.js → index.styled-9dd14387.js} +1 -1
  109. package/build/index.styled-f6dc3372.js +50 -0
  110. package/build/{index.styles-eee657e0.js → index.styles-3ab75ee6.js} +1 -1
  111. package/build/lead.js +1 -1
  112. package/build/mantine.js +1 -1
  113. package/build/misc.js +1 -1
  114. package/build/navigation.js +1 -1
  115. package/build/onboardingV2.js +1 -1
  116. package/build/pwg.js +3 -3
  117. package/build/{routing-d19d8856.js → routing-404b0db3.js} +1 -1
  118. package/build/subot.js +1 -1
  119. package/build/together.js +1 -1
  120. package/build/{types-ec42e31c.js → types-422e65f8.js} +1 -1
  121. package/build/{types-e7648820.js → types-af0c33af.js} +9 -9
  122. package/build/types.js +1 -1
  123. package/build/{useCategory-15d34903.js → useCategory-bf09d2fa.js} +1 -1
  124. package/build/{useHealthToolCache-af770568.js → useHealthToolCache-a13afe89.js} +1 -1
  125. package/build/{usePlacesAutocomplete-24621567.js → usePlacesAutocomplete-38246a89.js} +1 -1
  126. package/build/{useRafState-80bb67ea.js → useRafState-816567d2.js} +1 -1
  127. package/build/{useTranslations-2e112ad4.js → useTranslations-58ee3b9e.js} +1 -1
  128. package/build/{utils-6f3d330e.js → utils-119b98c5.js} +1 -1
  129. package/build/{utils-a167e7a3.js → utils-660ff29e.js} +1 -1
  130. package/build/vaccination.js +1 -1
  131. package/package.json +1 -1
  132. package/build/esm/index-1be91706.js +0 -1
  133. package/build/esm/index-65d31851.js +0 -1
  134. package/build/esm/index-c7136b2d.js +0 -1
  135. package/build/esm/useHealthToolCache-1290f2b9.js +0 -1
  136. package/build/getDynamicHealthTool-12e2540d.js +0 -1
  137. package/build/index-86314983.js +0 -1
  138. package/build/index-b983594e.js +0 -1
  139. package/build/index.styled-7c52b155.js +0 -50
  140. /package/build/{BMI_BOYS.percentile.monthly-1abf1841.js → BMI_BOYS.percentile.monthly-2be7494b.js} +0 -0
  141. /package/build/{BMI_BOYS.percentile.weekly-a8aff425.js → BMI_BOYS.percentile.weekly-a476da14.js} +0 -0
  142. /package/build/{BMI_BOYS.percentile.yearly-c73321bb.js → BMI_BOYS.percentile.yearly-47264daf.js} +0 -0
  143. /package/build/{BMI_BOYS.zscore.monthly-69a99c2a.js → BMI_BOYS.zscore.monthly-def07248.js} +0 -0
  144. /package/build/{BMI_BOYS.zscore.weekly-f990fa6a.js → BMI_BOYS.zscore.weekly-5bae230f.js} +0 -0
  145. /package/build/{BMI_BOYS.zscore.yearly-ed65c22b.js → BMI_BOYS.zscore.yearly-13085083.js} +0 -0
  146. /package/build/{BMI_GIRLS.percentile.monthly-4c7cb156.js → BMI_GIRLS.percentile.monthly-f5b552ef.js} +0 -0
  147. /package/build/{BMI_GIRLS.percentile.weekly-d570954a.js → BMI_GIRLS.percentile.weekly-078c93d8.js} +0 -0
  148. /package/build/{BMI_GIRLS.percentile.yearly-61a85bc5.js → BMI_GIRLS.percentile.yearly-79661652.js} +0 -0
  149. /package/build/{BMI_GIRLS.zscore.monthly-f20b70e4.js → BMI_GIRLS.zscore.monthly-8a4e6815.js} +0 -0
  150. /package/build/{BMI_GIRLS.zscore.weekly-178a1989.js → BMI_GIRLS.zscore.weekly-ed0b7994.js} +0 -0
  151. /package/build/{BMI_GIRLS.zscore.yearly-88ad18e5.js → BMI_GIRLS.zscore.yearly-8d875256.js} +0 -0
  152. /package/build/{ChevronDown-3037c172.js → ChevronDown-a220d6bf.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-56a4402b.js → HEAD CIRCUM_BOYS.percentile.monthly-81c35b36.js} +0 -0
  154. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-ccf3c87f.js → HEAD CIRCUM_BOYS.percentile.weekly-0ade78bd.js} +0 -0
  155. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2b9916f6.js → HEAD CIRCUM_BOYS.percentile.yearly-5166fc6d.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-bc3fdf65.js → HEAD CIRCUM_BOYS.zscore.monthly-105ecbce.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a3275cbb.js → HEAD CIRCUM_BOYS.zscore.weekly-3c03bbb6.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-424de02b.js → HEAD CIRCUM_BOYS.zscore.yearly-f9c772b7.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-31cf5774.js → HEAD CIRCUM_GIRLS.percentile.monthly-6d84e295.js} +0 -0
  160. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-56bc87df.js → HEAD CIRCUM_GIRLS.percentile.weekly-52253e24.js} +0 -0
  161. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-d495ae77.js → HEAD CIRCUM_GIRLS.percentile.yearly-7f23d028.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-389b52dc.js → HEAD CIRCUM_GIRLS.zscore.monthly-9cd318a0.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-545c913f.js → HEAD CIRCUM_GIRLS.zscore.weekly-ab38e511.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-25153e42.js → HEAD CIRCUM_GIRLS.zscore.yearly-d3160e92.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.percentile.monthly-a0167766.js → HEIGHT_BOYS.percentile.monthly-5acc24fe.js} +0 -0
  166. /package/build/{HEIGHT_BOYS.percentile.weekly-fe6c86b4.js → HEIGHT_BOYS.percentile.weekly-569a97bd.js} +0 -0
  167. /package/build/{HEIGHT_BOYS.percentile.yearly-b5f70609.js → HEIGHT_BOYS.percentile.yearly-42642e47.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.zscore.monthly-69050519.js → HEIGHT_BOYS.zscore.monthly-65dbd7fb.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.zscore.weekly-086ed503.js → HEIGHT_BOYS.zscore.weekly-0d17c4ae.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.zscore.yearly-ea1fd110.js → HEIGHT_BOYS.zscore.yearly-27b8768a.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.percentile.monthly-04393cf7.js → HEIGHT_GIRLS.percentile.monthly-cd7488f2.js} +0 -0
  172. /package/build/{HEIGHT_GIRLS.percentile.weekly-309dd221.js → HEIGHT_GIRLS.percentile.weekly-43ff1254.js} +0 -0
  173. /package/build/{HEIGHT_GIRLS.percentile.yearly-3fe7b9fc.js → HEIGHT_GIRLS.percentile.yearly-43e4aff0.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.zscore.monthly-a274d11d.js → HEIGHT_GIRLS.zscore.monthly-31f100f4.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.zscore.weekly-832a2702.js → HEIGHT_GIRLS.zscore.weekly-79fb01f3.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.zscore.yearly-e1250f72.js → HEIGHT_GIRLS.zscore.yearly-bdfde055.js} +0 -0
  177. /package/build/{Subot-b76ccc9c.js → Subot-9d5418e4.js} +0 -0
  178. /package/build/{Visible-a902bc5d.js → Visible-5f2e5d2d.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.percentile.monthly-6aee36d0.js → WEIGHT_BOYS.percentile.monthly-5e8b69e3.js} +0 -0
  180. /package/build/{WEIGHT_BOYS.percentile.weekly-84a9ddf3.js → WEIGHT_BOYS.percentile.weekly-f0dc4f4e.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.percentile.yearly-6a5235a6.js → WEIGHT_BOYS.percentile.yearly-94cb010e.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.zscore.monthly-7b87e89a.js → WEIGHT_BOYS.zscore.monthly-53bc9947.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.zscore.weekly-7dc34a8b.js → WEIGHT_BOYS.zscore.weekly-6ea5cde9.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.zscore.yearly-8cde12c0.js → WEIGHT_BOYS.zscore.yearly-f37e5962.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.percentile.monthly-c1117e84.js → WEIGHT_GIRLS.percentile.monthly-a0af2262.js} +0 -0
  186. /package/build/{WEIGHT_GIRLS.percentile.weekly-5da1d720.js → WEIGHT_GIRLS.percentile.weekly-1c11854b.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.percentile.yearly-a23ec4ec.js → WEIGHT_GIRLS.percentile.yearly-c84a146d.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.zscore.monthly-2f26e279.js → WEIGHT_GIRLS.zscore.monthly-6c42d8ac.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.zscore.weekly-8b0a38e9.js → WEIGHT_GIRLS.zscore.weekly-f6ac49b3.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.zscore.yearly-8bad89fe.js → WEIGHT_GIRLS.zscore.yearly-53a8fb67.js} +0 -0
  191. /package/build/{cookieHelper-edf24fec.js → cookieHelper-24b1f061.js} +0 -0
  192. /package/build/{dataTransform-e2f61d60.js → dataTransform-e795262f.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.percentile.monthly-b9ab85f0.js → BMI_BOYS.percentile.monthly-90e8d51b.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.percentile.weekly-ef82192f.js → BMI_BOYS.percentile.weekly-0f155cb8.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.percentile.yearly-183654c8.js → BMI_BOYS.percentile.yearly-24097fcb.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.zscore.monthly-6eda6e64.js → BMI_BOYS.zscore.monthly-c874926b.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.zscore.weekly-2e5db2e4.js → BMI_BOYS.zscore.weekly-f82f54d5.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.zscore.yearly-89b97ccc.js → BMI_BOYS.zscore.yearly-e86e6196.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.percentile.monthly-c2dca76b.js → BMI_GIRLS.percentile.monthly-b5f00f2c.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.percentile.weekly-3db696ed.js → BMI_GIRLS.percentile.weekly-0160255f.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.percentile.yearly-d3831386.js → BMI_GIRLS.percentile.yearly-49fd6692.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.zscore.monthly-9cef6f5e.js → BMI_GIRLS.zscore.monthly-c33b9640.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.zscore.weekly-78f3bce3.js → BMI_GIRLS.zscore.weekly-8dc83438.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.zscore.yearly-50c1c22d.js → BMI_GIRLS.zscore.yearly-1dbbb382.js} +0 -0
  205. /package/build/esm/{ChevronDown-38081c52.js → ChevronDown-8da7a294.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-768e0230.js → HEAD CIRCUM_BOYS.percentile.monthly-ebfdafc9.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-68c28fef.js → HEAD CIRCUM_BOYS.percentile.weekly-27229ddd.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-79c477be.js → HEAD CIRCUM_BOYS.percentile.yearly-ea484f34.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c22a6bb8.js → HEAD CIRCUM_BOYS.zscore.monthly-b98df2be.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-fa0c45de.js → HEAD CIRCUM_BOYS.zscore.weekly-b542bf2d.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-fd828878.js → HEAD CIRCUM_BOYS.zscore.yearly-1f5e4d0b.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0e370871.js → HEAD CIRCUM_GIRLS.percentile.monthly-36881b4b.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-f4708552.js → HEAD CIRCUM_GIRLS.percentile.weekly-0535db6d.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-dfb103cf.js → HEAD CIRCUM_GIRLS.percentile.yearly-018ff807.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3ee0be1b.js → HEAD CIRCUM_GIRLS.zscore.monthly-c1dbe313.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-44bcc793.js → HEAD CIRCUM_GIRLS.zscore.weekly-cd22e813.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a1027497.js → HEAD CIRCUM_GIRLS.zscore.yearly-6a9ea565.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-02e472da.js → HEIGHT_BOYS.percentile.monthly-8e6a0752.js} +0 -0
  219. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-0680ad0c.js → HEIGHT_BOYS.percentile.weekly-ceabde0e.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6f8aae30.js → HEIGHT_BOYS.percentile.yearly-28d17801.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c4cd5e14.js → HEIGHT_BOYS.zscore.monthly-5ce17623.js} +0 -0
  222. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-44a38e55.js → HEIGHT_BOYS.zscore.weekly-d758fae7.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-07fc5764.js → HEIGHT_BOYS.zscore.yearly-d11d3f15.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-747f685b.js → HEIGHT_GIRLS.percentile.monthly-31f4a828.js} +0 -0
  225. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f8a8a438.js → HEIGHT_GIRLS.percentile.weekly-735778e7.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-19c6a95d.js → HEIGHT_GIRLS.percentile.yearly-1eabd968.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a70d26ec.js → HEIGHT_GIRLS.zscore.monthly-8b8612b9.js} +0 -0
  228. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-80c3120b.js → HEIGHT_GIRLS.zscore.weekly-b8a53c59.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-55b48c0f.js → HEIGHT_GIRLS.zscore.yearly-bc15c84f.js} +0 -0
  230. /package/build/esm/{Subot-f581f4df.js → Subot-7ea674b0.js} +0 -0
  231. /package/build/esm/{Visible-773a840f.js → Visible-247d254f.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c7365e22.js → WEIGHT_BOYS.percentile.monthly-f08f1fd2.js} +0 -0
  233. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-5d62ee47.js → WEIGHT_BOYS.percentile.weekly-fbaf9e3d.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-90eef9c4.js → WEIGHT_BOYS.percentile.yearly-d64145ca.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-39cb41e2.js → WEIGHT_BOYS.zscore.monthly-f239897a.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1fd3816a.js → WEIGHT_BOYS.zscore.weekly-1a2e5a33.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-91994e22.js → WEIGHT_BOYS.zscore.yearly-034538fa.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-8803f9b5.js → WEIGHT_GIRLS.percentile.monthly-39819cdb.js} +0 -0
  239. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-ec6c8a49.js → WEIGHT_GIRLS.percentile.weekly-15569768.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-0e9334c7.js → WEIGHT_GIRLS.percentile.yearly-9f519921.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-031167a3.js → WEIGHT_GIRLS.zscore.monthly-c0a9a7aa.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-36d7530c.js → WEIGHT_GIRLS.zscore.weekly-23c1cce3.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-93c90f87.js → WEIGHT_GIRLS.zscore.yearly-9a088bbf.js} +0 -0
  244. /package/build/esm/{cookieHelper-1491c7ea.js → cookieHelper-0d554a3d.js} +0 -0
  245. /package/build/esm/{dataTransform-9bceddac.js → dataTransform-cf3f3aee.js} +0 -0
  246. /package/build/esm/{index-0797d3cb.js → index-96308c0d.js} +0 -0
  247. /package/build/esm/{index-2f243424.js → index-c26145e4.js} +0 -0
  248. /package/build/esm/{index-bbf78608.js → index-e4c49b57.js} +0 -0
  249. /package/build/esm/{isProduction-d8d94564.js → isProduction-d0d81279.js} +0 -0
  250. /package/build/esm/{localizeNumberFormat-3657ce11.js → localizeNumberFormat-1e3158ab.js} +0 -0
  251. /package/build/esm/{normalizeLink-7259b86a.js → normalizeLink-409cf3bf.js} +0 -0
  252. /package/build/esm/{number-a14a26d2.js → number-f57dcbd1.js} +0 -0
  253. /package/build/esm/{paths-80d2b4f2.js → paths-f6ce774b.js} +0 -0
  254. /package/build/esm/{screenSizeContext-f9a53919.js → screenSizeContext-8f042934.js} +0 -0
  255. /package/build/esm/{theme-9d69f1a2.js → theme-c254ba9f.js} +0 -0
  256. /package/build/esm/{translationsContext-a929820e.js → translationsContext-f66e3d3d.js} +0 -0
  257. /package/build/esm/{tslib.es6-7b491686.js → tslib.es6-1a7e483e.js} +0 -0
  258. /package/build/esm/{types-c4843c87.js → types-062901c3.js} +0 -0
  259. /package/build/esm/{useIsInit-36546b9c.js → useIsInit-db1c31df.js} +0 -0
  260. /package/build/esm/{useOutsideClick-78141983.js → useOutsideClick-bfa18062.js} +0 -0
  261. /package/build/esm/{useScrollbarSize-30b1bee4.js → useScrollbarSize-611c8d35.js} +0 -0
  262. /package/build/{index-ff51ac26.js → index-1b69057d.js} +0 -0
  263. /package/build/{index-0251e5f0.js → index-cd030832.js} +0 -0
  264. /package/build/{index-af3f2c07.js → index-e6e3941f.js} +0 -0
  265. /package/build/{isProduction-fa856154.js → isProduction-e1ad6827.js} +0 -0
  266. /package/build/{localizeNumberFormat-118c54b5.js → localizeNumberFormat-7e1dae02.js} +0 -0
  267. /package/build/{normalizeLink-b898d874.js → normalizeLink-adb3417c.js} +0 -0
  268. /package/build/{number-e86b559d.js → number-995e468a.js} +0 -0
  269. /package/build/{paths-bbbcac69.js → paths-f7c2f1d1.js} +0 -0
  270. /package/build/{screenSizeContext-478cce5e.js → screenSizeContext-66416462.js} +0 -0
  271. /package/build/{theme-1481c80b.js → theme-675875f1.js} +0 -0
  272. /package/build/{translationsContext-e83c75a5.js → translationsContext-37b57080.js} +0 -0
  273. /package/build/{tslib.es6-524ea691.js → tslib.es6-af7c5340.js} +0 -0
  274. /package/build/{types-5ceae17e.js → types-8f4d78a7.js} +0 -0
  275. /package/build/{useIsInit-b0daf2cf.js → useIsInit-3c899c10.js} +0 -0
  276. /package/build/{useOutsideClick-abc52969.js → useOutsideClick-44c908eb.js} +0 -0
  277. /package/build/{useScrollbarSize-251ab8f8.js → useScrollbarSize-aef8017d.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-7b491686.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-51dc4ab8.js";import c from"lodash/debounce";import{I as d,e as p,f as u,M as h,g,C as m}from"./constants-039f36fe.js";import{I as C}from"./index-f1ff7dac.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f,I as v}from"./index-fa32b4d8.js";import{t as x}from"./theme-9d69f1a2.js";import S from"lodash/shuffle";import{a as E}from"./useOutsideClick-78141983.js";import{M as w}from"./screenSizeContext-f9a53919.js";import"dayjs";import{U as L,d as k}from"./index-14839883.js";import"./isProduction-d8d94564.js";import"./Subot-f581f4df.js";import"./gAssets.js";import O from"react-loading-skeleton";import{P as j}from"./paths-80d2b4f2.js";import{Skeleton as I,Input as $,Divider as F,Tabs as M,Flex as R,Button as T}from"@mantine/core";import{g as P,s as N,d as A}from"./cookieHelper-1491c7ea.js";import{C as B}from"./index-bbf78608.js";import{C as V}from"./ChevronDown-38081c52.js";import D from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(P(L))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=P(L);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(L,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{A(L),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
1
+ import{a as e}from"./tslib.es6-1a7e483e.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-e0f5679c.js";import c from"lodash/debounce";import{I as d,e as p,f as u,M as h,g,C as m}from"./constants-bcabc622.js";import{I as C}from"./index-a5e07868.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f,I as v}from"./index-e751d8c2.js";import{t as x}from"./theme-c254ba9f.js";import S from"lodash/shuffle";import{a as E}from"./useOutsideClick-bfa18062.js";import{M as w}from"./screenSizeContext-8f042934.js";import"dayjs";import{U as L,d as k}from"./index-13feb3ef.js";import"./isProduction-d0d81279.js";import"./Subot-7ea674b0.js";import"./gAssets.js";import O from"react-loading-skeleton";import{P as j}from"./paths-f6ce774b.js";import{Skeleton as I,Input as $,Divider as F,Tabs as M,Flex as R,Button as T}from"@mantine/core";import{g as P,s as N,d as A}from"./cookieHelper-0d554a3d.js";import{C as B}from"./index-e4c49b57.js";import{C as D}from"./ChevronDown-8da7a294.js";import V from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(P(L))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=P(L);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(L,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{A(L),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;
@@ -220,7 +220,7 @@ import{a as e}from"./tslib.es6-7b491686.js";import t,{useState as i,useCallback
220
220
  }
221
221
  `,Be=b(f)`
222
222
  font-weight: ${x.sizes.fwSemiBold};
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`
223
+ `,De=({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 Ve({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(De,{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;
@@ -336,7 +336,7 @@ import{a as e}from"./tslib.es6-7b491686.js";import t,{useState as i,useCallback
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
- `,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:k[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:k=!1,hideResults:O=[],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(j.GET_CITY_BY_IP,Object.assign(Object.assign({},a),n))];return"zh-TW"===i&&s.push(o(j.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(j.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}${j.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:k})}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:O,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`
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)=>V(e,Object.assign(Object.assign({},t),{domain:k[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:k=!1,hideResults:O=[],isNavResultItem:I=!0,routerPush:$,onGeoLocationPermissionChange:F,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=r(),N=s(null),A=s(null),[B,D]=i(void 0),[V,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(j.GET_CITY_BY_IP,Object.assign(Object.assign({},a),n))];return"zh-TW"===i&&s.push(o(j.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(j.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}${j.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:k})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?h?t.createElement(De,{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:O,isNavResultItem:I})}function Re(){return t.createElement(Ve,{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;D(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[D]),n((()=>{if(se&&V&&"ms-MY"===P){const e=`/${se.slug}/hospital`;J({type:je.NavigateTo,payload:e}),Z(!1)}}),[V,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
340
  background-color: ${x.colors.neutral50};
341
341
  padding-bottom: 1px;
342
342
  ${w.mbDown} {
@@ -563,7 +563,7 @@ import{a as e}from"./tslib.es6-7b491686.js";import t,{useState as i,useCallback
563
563
  &[data-is-denied='true'] {
564
564
  cursor: not-allowed;
565
565
  }
566
- `,$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($.Wrapper,null,t.createElement($,{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 j=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]),I=a((function(e){b({type:bt.SelectSpecialty,payload:e}),m()}),[b]);return t.createElement(vt,{ref:x},"specialty"===i?t.createElement($.Wrapper,{styles:L},t.createElement($,{icon:t.createElement(v.Search,null),size:n?"md":"lg",placeholder:w,styles:O,value:e.searchKeywords,onFocus:()=>b({type:bt.FocusInputSearchSpecialty}),onChange:e=>{j(e.target.value)}})):t.createElement(t.Fragment,null,"service"===i?t.createElement($.Wrapper,{styles:L},t.createElement($,{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=>{j(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:I}),t.createElement($.Wrapper,{styles:L},t.createElement($,{icon:t.createElement(v.Search,null),size:"md",placeholder:w,value:e.searchKeywords,name:"search-results",onFocus:()=>b({type:bt.FocusInputSearch}),onChange:e=>{j(e.target.value)}}))):t.createElement($.Wrapper,{styles:L,className:h?"hide-specialty-selection":""},t.createElement($,Object.assign({icon:t.createElement(v.Search,null),size:"lg",placeholder:w,styles:k,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{j(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:I})})))),"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`
566
+ `,$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($.Wrapper,null,t.createElement($,{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(D,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,onEnterSearch:b,dispatch:y})=>{var f;const{t:x}=r(),S=s(null),w=o((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),L=o((()=>"doctor"===i?x("booking.searchBar.placeholder.doctor"):"service"===i?x("booking.searchBar.placeholder.service"):"hospital"===i?x("booking.searchBar.placeholder.hospital"):"specialty"===i?x("booking.searchBar.placeholder.specialty"):""),[i]),k=o((()=>({root:{flex:1,"&.hide-specialty-selection":{".mantine-Input-rightSection":{display:"none"},input:{paddingLeft:"48px"},".mantine-Input-icon":{left:"0"}}}})),[]),O=o((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),j=o((()=>({input:{color:"#262626"}})),[]);E(S,(()=>{y({type:bt.ClickOutsideInputSearch})}));const I=a((function(t){y({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(),y({type:bt.DisplayInitialSearchResults})))}),[y,e,i]),F=a((function(e){y({type:bt.SelectSpecialty,payload:e}),m()}),[y]),M=a((e=>{13===e.keyCode&&(e.stopPropagation(),e.preventDefault(),b&&b())}),[b]);return t.createElement(vt,{ref:S},"specialty"===i?t.createElement($.Wrapper,{styles:k},t.createElement($,{icon:t.createElement(v.Search,null),size:n?"md":"lg",placeholder:L,styles:j,value:e.searchKeywords,onFocus:()=>y({type:bt.FocusInputSearchSpecialty}),onChange:e=>{I(e.target.value)},onKeyDown:M})):t.createElement(t.Fragment,null,"service"===i?t.createElement($.Wrapper,{styles:k},t.createElement($,{icon:t.createElement(v.Search,null),size:n?"md":"lg",name:"search-results",placeholder:L,onFocus:()=>y({type:bt.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{I(e.target.value)},onKeyDown:M})):t.createElement(t.Fragment,null,n&&!h?t.createElement(t.Fragment,null,t.createElement(Tt,{state:e,isMobile:n,dispatch:y,debouncedFetchSearchResults:p,onSpecialtyClick:F}),t.createElement($.Wrapper,{styles:k},t.createElement($,{icon:t.createElement(v.Search,null),size:"md",placeholder:L,value:e.searchKeywords,name:"search-results",onFocus:()=>y({type:bt.FocusInputSearch}),onChange:e=>{I(e.target.value)},onKeyDown:M}))):t.createElement($.Wrapper,{styles:k,className:h?"hide-specialty-selection":""},t.createElement($,Object.assign({icon:t.createElement(v.Search,null),size:"lg",placeholder:L,styles:O,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{I(e.target.value)},onFocus:()=>y({type:bt.FocusInputSearch}),onKeyDown:M},w,{rightSection:h?t.createElement(t.Fragment,null):t.createElement(Tt,{state:e,isMobile:n,dispatch:y,debouncedFetchSearchResults:p,onSpecialtyClick:F})})))),"search"===e.focused&&t.createElement(xt,null,t.createElement(kt,{type:i,state:e,results:(null===(f=e.searchResults)||void 0===f?void 0:f[i])||[],location:e.selectedLocation.name,dispatch:y,isLoading:l,typeInformation:d,clientSlug:g}))))},Nt=b.div`
567
567
  position: relative;
568
568
 
569
569
  ${w.mbDown} {
@@ -623,11 +623,11 @@ import{a as e}from"./tslib.es6-7b491686.js";import t,{useState as i,useCallback
623
623
  &[data-is-denied='true'] {
624
624
  cursor: not-allowed;
625
625
  }
626
- `,Vt=b(W)`
626
+ `,Dt=b(W)`
627
627
  width: 12px;
628
628
  height: 18px;
629
629
  flex: 0 0 12px;
630
- `,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($.Wrapper,null,t.createElement($,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`
630
+ `,Vt=({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($.Wrapper,null,t.createElement($,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(Dt,{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(Dt,{color:x.colors.neutral400}),t.createElement(f,{size:"md"},e.name))))))},Kt=b.div`
631
631
  display: flex;
632
632
  flex-wrap: wrap;
633
633
  row-gap: 8px;
@@ -763,7 +763,7 @@ import{a as e}from"./tslib.es6-7b491686.js";import t,{useState as i,useCallback
763
763
  border-bottom: 1px solid ${x.colors.neutral100};
764
764
  `,qt=b(B)`
765
765
  padding: 0 16px;
766
- `,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(M,{value:e,onTabChange:e=>{n(e)},styles:s},t.createElement(M.List,null,c.map((e=>t.createElement(M.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:k,autoCompleteDisabled:O=!1,inputSearchPlaceholder:I="",hideTabBookingSearch:$=[],hideSpecialtySelection:F=!1,hidePopularSearchKeys:M=!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:O,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(j.GET_CITY_BY_IP,Object.assign(Object.assign(Object.assign({},a),s),{client:m.MSD===o?"":o}))];return"zh-TW"===i&&l.push(n(j.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(j.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}${j.GET_SEARCH_SPECIALTY}`:`${t}${j.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}${j.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}${j.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(R,{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:k}),t.createElement(Pt,{type:H,isMobile:e,state:U,dispatch:W,debouncedFetchSearchResults:he,initalSearchValue:f,focusSearchInput:me,typeInformation:pe,trackingAttributes:L,isLoading:oe,hideSpecialtySelection:F,clientSlug:P}),t.createElement(T,{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"))),!M&&"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`
766
+ `,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(M,{value:e,onTabChange:e=>{n(e)},styles:s},t.createElement(M.List,null,c.map((e=>t.createElement(M.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:k,autoCompleteDisabled:O=!1,inputSearchPlaceholder:I="",hideTabBookingSearch:$=[],hideSpecialtySelection:F=!1,hidePopularSearchKeys:M=!1,clientSlug:P="",routerPush:N,onGeoLocationPermissionChange:A,onChangeLocation:B})=>{const{locale:D,t:V}=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:O,inputSearchPlaceholder:I,locale:D}))),{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(j.GET_CITY_BY_IP,Object.assign(Object.assign(Object.assign({},a),s),{client:m.MSD===o?"":o}))];return"zh-TW"===i&&l.push(n(j.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(j.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}${j.GET_SEARCH_SPECIALTY}`:`${t}${j.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}${j.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}${j.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:D,careApiDomain:g,client:P}),de=o((()=>p[D]),[D]),pe=o((()=>({doctor:{name:V("booking.searchPopup.doctors"),icon:t.createElement($t,null),slug:de.DOCTOR},service:{name:V("booking.searchPopup.services"),icon:t.createElement(Ft,null),slug:de.SERVICE},hospital:{name:V("booking.searchPopup.hospitals"),icon:t.createElement(Mt,null),slug:de.HOSPITAL},specialty:{name:V("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)}),[V,W]);function me(){var e;z.current&&(null===(e=z.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Ce(){let e="";const{slug:t}=pe[H];let i="";const a=h[D][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})}return E(_,(()=>{W({type:bt.ClickOutsideInputSearchSpecialty})})),n((()=>{var t;"denied"===X||ie||W({type:bt.SelectLocation,payload:{name:V("booking.searchBar.allLocations"),id:d,slug:null===(t=p[D])||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:V("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(R,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==H&&t.createElement(Vt,{state:U,isMobile:e,dispatch:W,debouncedFetchCitiesByKeyword:ue,selectedLocation:ee,onLocationClick:ge,trackingAttributes:k}),t.createElement(Pt,{type:H,isMobile:e,state:U,dispatch:W,debouncedFetchSearchResults:he,initalSearchValue:f,focusSearchInput:me,onEnterSearch:Ce,typeInformation:pe,trackingAttributes:L,isLoading:oe,hideSpecialtySelection:F,clientSlug:P}),t.createElement(T,{size:e?"md":"lg",color:"#2D87F3",fullWidth:e,variant:"filled",onClick:Ce,styles:{root:{height:e?"40px":"48px"}}},V("booking.searchBar.searchButton"))),!M&&"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`
767
767
  background-color: var(--neutral50);
768
768
  padding: 12px 0;
769
769
  box-shadow: inset 0px 1px 0px #e4e8ec;