@hhgtech/hhg-components 1.29.526 → 1.29.528

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 (519) hide show
  1. package/build/{InputDate-6a0bb6dc.js → InputDate-e44a5170.js} +5 -5
  2. package/build/{LastPeriod-9da58f22.js → LastPeriod-acd8425a.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-4d3a3cc3.js → MobileBottomNavigationIcon-391275dc.js} +3 -3
  4. package/build/{SiteWideBanner-afcea3ca.js → SiteWideBanner-5f5eef6e.js} +11 -11
  5. package/build/{Spinner-d789e89c.js → Spinner-9cb85a18.js} +1 -1
  6. package/build/{WhatsApp-81e71209.js → WhatsApp-e2be209d.js} +1 -1
  7. package/build/adapters.js +20 -20
  8. package/build/atoms.js +51 -51
  9. package/build/babyGrowth.js +86 -86
  10. package/build/cache.js +2 -2
  11. package/build/care/components/organisms/bookingSearchBarV2/SearchResultContent.d.ts +13 -0
  12. package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +7 -1
  13. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/ModalSearchResult.d.ts +8 -0
  14. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +8 -1
  15. package/build/care/components/organisms/bookingSearchBarV2/searchLocation/CustomSelectItem.d.ts +9 -0
  16. package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +1 -1
  17. package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +2 -2
  18. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/CustomSelectItem.d.ts +9 -0
  19. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +1 -1
  20. package/build/care.js +24 -18
  21. package/build/careBookingSearchBar.js +14 -14
  22. package/build/careBookingSearchBarV2.js +559 -260
  23. package/build/components.js +106 -106
  24. package/build/{constants-1b437dff.js → constants-8187e577.js} +2 -2
  25. package/build/{constants-6a5132d0.js → constants-978bec21.js} +1 -1
  26. package/build/constants.js +3 -3
  27. package/build/constantsDomainLocales.js +1 -1
  28. package/build/constantsRiskScreener.js +2 -2
  29. package/build/constantsSite.js +2 -2
  30. package/build/{core-55835439.js → core-df6980aa.js} +1 -1
  31. package/build/{dataTransform-bc021580.js → dataTransform-4e9d4b21.js} +1 -1
  32. package/build/ecom.js +5 -5
  33. package/build/{editor-86b38021.js → editor-1410b123.js} +11 -11
  34. package/build/embeddedHeathToolCards_babyGrowth.js +25 -25
  35. package/build/embeddedHeathToolCards_babyPoop.js +22 -22
  36. package/build/embeddedHeathToolCards_babyVaccine.js +24 -24
  37. package/build/embeddedHeathToolCards_bmi_bmi.js +27 -27
  38. package/build/embeddedHeathToolCards_bmrBmr.js +27 -27
  39. package/build/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
  40. package/build/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
  41. package/build/embeddedHeathToolCards_pwg_pwg.js +28 -28
  42. package/build/embeddedHeathToolCards_targetHeartRate.js +29 -29
  43. package/build/esm/{InputDate-72508ff3.js → InputDate-8a6cea00.js} +5 -5
  44. package/build/esm/{LastPeriod-56b5ad20.js → LastPeriod-782d7853.js} +1 -1
  45. package/build/esm/{MobileBottomNavigationIcon-c5b237d6.js → MobileBottomNavigationIcon-fd28ef21.js} +3 -3
  46. package/build/esm/{SiteWideBanner-eb7bb7b1.js → SiteWideBanner-93e3d85b.js} +11 -11
  47. package/build/esm/{Spinner-0f69ddaf.js → Spinner-ac3cafdf.js} +1 -1
  48. package/build/esm/{WhatsApp-87db97d1.js → WhatsApp-f00db235.js} +1 -1
  49. package/build/esm/adapters.js +20 -20
  50. package/build/esm/atoms.js +51 -51
  51. package/build/esm/babyGrowth.js +86 -86
  52. package/build/esm/cache.js +2 -2
  53. package/build/esm/care/components/organisms/bookingSearchBarV2/SearchResultContent.d.ts +13 -0
  54. package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +7 -1
  55. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/ModalSearchResult.d.ts +8 -0
  56. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +8 -1
  57. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/CustomSelectItem.d.ts +9 -0
  58. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +1 -1
  59. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +2 -2
  60. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/CustomSelectItem.d.ts +9 -0
  61. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +1 -1
  62. package/build/esm/care.js +24 -18
  63. package/build/esm/careBookingSearchBar.js +14 -14
  64. package/build/esm/careBookingSearchBarV2.js +561 -262
  65. package/build/esm/components.js +106 -106
  66. package/build/esm/{constants-d4a6ef1a.js → constants-1d2564ea.js} +1 -1
  67. package/build/esm/{constants-6bc1faf8.js → constants-ebc698d1.js} +2 -2
  68. package/build/esm/constants.js +3 -3
  69. package/build/esm/constantsDomainLocales.js +1 -1
  70. package/build/esm/constantsRiskScreener.js +2 -2
  71. package/build/esm/constantsSite.js +2 -2
  72. package/build/esm/{core-494e612d.js → core-f02df1ea.js} +1 -1
  73. package/build/esm/{dataTransform-6c8e4266.js → dataTransform-7ec80df6.js} +1 -1
  74. package/build/esm/ecom.js +5 -5
  75. package/build/esm/{editor-435e842b.js → editor-95beb114.js} +11 -11
  76. package/build/esm/embeddedHeathToolCards_babyGrowth.js +25 -25
  77. package/build/esm/embeddedHeathToolCards_babyPoop.js +22 -22
  78. package/build/esm/embeddedHeathToolCards_babyVaccine.js +24 -24
  79. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +27 -27
  80. package/build/esm/embeddedHeathToolCards_bmrBmr.js +27 -27
  81. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
  82. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
  83. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +28 -28
  84. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +29 -29
  85. package/build/esm/footer.js +22 -22
  86. package/build/esm/gAssets.js +2 -2
  87. package/build/esm/{healthTools-aef05637.js → healthTools-a478793b.js} +1 -1
  88. package/build/esm/healthToolsCardWrapper.js +20 -20
  89. package/build/esm/healthToolsForm.js +35 -35
  90. package/build/esm/hooks.js +14 -14
  91. package/build/esm/i18n.js +2 -2
  92. package/build/esm/i18nV2.js +2 -2
  93. package/build/esm/{index-95db1487.js → index-0aac98d9.js} +32 -32
  94. package/build/esm/{index-509a4f9b.js → index-0c8a796f.js} +2 -2
  95. package/build/esm/{index-e0200f41.js → index-0cf4fb1a.js} +22 -22
  96. package/build/esm/{index-31e471d9.js → index-14c5e5f8.js} +14 -14
  97. package/build/esm/{index-be3fad19.js → index-18597dc3.js} +2 -2
  98. package/build/esm/{index-f369d74e.js → index-19b57024.js} +18 -18
  99. package/build/esm/{index-26ddf501.js → index-1c22f471.js} +2 -2
  100. package/build/esm/{index-b9e6ac73.js → index-1d71825a.js} +3 -3
  101. package/build/esm/{index-1319b4d4.js → index-1e03896e.js} +5 -5
  102. package/build/esm/{index-d642c164.js → index-1ef3bd24.js} +17 -17
  103. package/build/esm/{index-378757ca.js → index-28c3f888.js} +3 -3
  104. package/build/esm/{index-2f680121.js → index-29614899.js} +3 -3
  105. package/build/esm/{index-9acc5d2f.js → index-2fc6abb3.js} +13 -13
  106. package/build/esm/{index-80d05d51.js → index-3699be44.js} +2 -2
  107. package/build/esm/{index-7c74e66b.js → index-3ecee9df.js} +2 -2
  108. package/build/esm/{index-39087e63.js → index-4786dd1b.js} +4 -4
  109. package/build/esm/{index-bb9e70c2.js → index-49993060.js} +2 -2
  110. package/build/esm/{index-24cefd8b.js → index-4e4a4448.js} +2 -2
  111. package/build/esm/{index-69382d4c.js → index-51642785.js} +1 -1
  112. package/build/esm/{index-e0a1e994.js → index-52f5a292.js} +15 -15
  113. package/build/esm/{index-ba89009a.js → index-54a358f7.js} +3 -3
  114. package/build/esm/{index-38cc2d8a.js → index-5a3a3f42.js} +14 -14
  115. package/build/esm/{index-733d6b05.js → index-5c7ecb24.js} +6 -6
  116. package/build/esm/{index-f9b6d35c.js → index-61c5b995.js} +11 -11
  117. package/build/esm/{index-aa96d8bd.js → index-6615252e.js} +2 -2
  118. package/build/esm/{index-878d15f3.js → index-6c9ffea1.js} +6 -6
  119. package/build/esm/{index-761f0180.js → index-7061fdca.js} +2 -2
  120. package/build/esm/{index-00fc5bb9.js → index-729cb32a.js} +18 -18
  121. package/build/esm/{index-8845a76e.js → index-72b972f5.js} +1 -1
  122. package/build/esm/{index-9463d87b.js → index-73b17150.js} +1 -1
  123. package/build/esm/{index-6c0eed37.js → index-75a9c5b3.js} +2 -2
  124. package/build/esm/{index-bc295f3e.js → index-7d3b5c77.js} +2 -2
  125. package/build/esm/{index-db9b3e37.js → index-80102061.js} +3 -3
  126. package/build/esm/{index-eb93aba2.js → index-8347736a.js} +3 -3
  127. package/build/esm/{index-8eb0c307.js → index-873a735a.js} +7 -7
  128. package/build/esm/{index-fbdc45a3.js → index-8828f77d.js} +25 -25
  129. package/build/esm/{index-a25c3908.js → index-8ad71dae.js} +16 -16
  130. package/build/esm/{index-2f8e65ee.js → index-8d70c74a.js} +4 -4
  131. package/build/esm/{index-11772eca.js → index-8ff3d8b9.js} +19 -19
  132. package/build/esm/{index-0c48cc93.js → index-90c6261d.js} +2 -2
  133. package/build/esm/{index-a6c65798.js → index-9313ba10.js} +5 -5
  134. package/build/esm/{index-d46ce284.js → index-969578b1.js} +13 -13
  135. package/build/esm/{index-053a985d.js → index-96cfc6d0.js} +21 -21
  136. package/build/esm/{index-bba4e36a.js → index-997d9afe.js} +14 -14
  137. package/build/esm/{index-81d13e90.js → index-a4fb5c60.js} +16 -16
  138. package/build/esm/{index-b516c828.js → index-a7cbb0b9.js} +1 -1
  139. package/build/esm/{index-f34f455a.js → index-ad0c95a7.js} +9 -9
  140. package/build/esm/{index-1280ff73.js → index-ad9c69f5.js} +15 -15
  141. package/build/esm/{index-96e55cb2.js → index-b07e5ab0.js} +3 -3
  142. package/build/esm/{index-1c9b4d46.js → index-b13dc946.js} +7 -7
  143. package/build/esm/{index-9835138b.js → index-b79948be.js} +6 -6
  144. package/build/esm/{index-ce11954e.js → index-ba4cfc72.js} +2 -2
  145. package/build/esm/{index-603ba8f9.js → index-bf75e23b.js} +2 -2
  146. package/build/esm/{index-3441a2c5.js → index-c3579fb3.js} +2 -2
  147. package/build/esm/{index-66d289a3.js → index-caba5feb.js} +16 -16
  148. package/build/esm/{index-6a7322e8.js → index-cc5f3d4b.js} +9 -9
  149. package/build/esm/{index-1618e42f.js → index-cea40631.js} +33 -33
  150. package/build/esm/{index-ac28c064.js → index-d1643abc.js} +1 -1
  151. package/build/esm/{index-10cb18a4.js → index-d35dccbb.js} +24 -24
  152. package/build/esm/{index-67f13c03.js → index-d5f782eb.js} +2 -2
  153. package/build/esm/{index-e4aabe5a.js → index-d6463809.js} +8 -8
  154. package/build/esm/{index-c2a2a68f.js → index-d957287d.js} +1 -1
  155. package/build/esm/{index-e60704d3.js → index-dc74d2a2.js} +2 -2
  156. package/build/esm/{index-3bdc83e7.js → index-e102e0b2.js} +15 -15
  157. package/build/esm/{index-ff2976e0.js → index-e21fd7e1.js} +3 -3
  158. package/build/esm/{index-f613bbdb.js → index-e29051bf.js} +32 -32
  159. package/build/esm/{index-8c9d1ab1.js → index-e30b89da.js} +16 -16
  160. package/build/esm/{index-ecea25d8.js → index-e670af0e.js} +6 -6
  161. package/build/esm/{index-7a0326c0.js → index-e8e284f7.js} +1 -1
  162. package/build/esm/{index-19f76290.js → index-fdb5c913.js} +3 -3
  163. package/build/esm/{index-ff15f566.js → index-fea9434a.js} +3 -3
  164. package/build/esm/index.js +126 -126
  165. package/build/esm/{labelSorting-59273ef5.js → labelSorting-0ff4b693.js} +4 -4
  166. package/build/esm/lead.js +37 -37
  167. package/build/esm/{logoIcon-91a5a225.js → logoIcon-a24cf073.js} +2 -2
  168. package/build/esm/mantine.js +27 -27
  169. package/build/esm/misc.js +19 -19
  170. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  171. package/build/esm/miscGetSocialList.js +8 -8
  172. package/build/esm/miscScreenSizeContext.js +1 -1
  173. package/build/esm/mobileBottomNavigation.js +5 -5
  174. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  175. package/build/esm/molecules.js +79 -79
  176. package/build/esm/moleculesArticleCard.js +6 -6
  177. package/build/esm/moleculesArticleCardV2.js +17 -17
  178. package/build/esm/navigation.js +49 -49
  179. package/build/esm/navigationLogoutPopup.js +11 -11
  180. package/build/esm/navigationProfileButton.js +27 -27
  181. package/build/esm/onboardingV2.js +30 -30
  182. package/build/esm/organisms.js +62 -62
  183. package/build/esm/{paths-c7dde110.js → paths-57889e7a.js} +2 -2
  184. package/build/esm/{post-14d01dd6.js → post-e85d518d.js} +2 -2
  185. package/build/esm/profileNavigation.js +20 -20
  186. package/build/esm/progressBar.js +1 -1
  187. package/build/esm/pwg.js +23 -23
  188. package/build/esm/ssoV2.js +31 -31
  189. package/build/esm/{store-060e0bee.js → store-58945988.js} +3 -3
  190. package/build/esm/subot.js +40 -40
  191. package/build/esm/surveyOrPremiumBanner.js +34 -34
  192. package/build/esm/surveyQuestionCard.js +11 -11
  193. package/build/esm/{surveyThankyouCard-51a48255.js → surveyThankyouCard-020bd785.js} +5 -5
  194. package/build/esm/together.js +57 -57
  195. package/build/esm/togetherApiUtils.js +6 -6
  196. package/build/esm/togetherAtoms.js +31 -31
  197. package/build/esm/togetherComponentGlobalContext.js +6 -6
  198. package/build/esm/togetherMolecules.js +52 -52
  199. package/build/esm/togetherMoleculesCardAuthor.js +29 -29
  200. package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
  201. package/build/esm/togetherMoleculesProfileDetail.js +40 -40
  202. package/build/esm/togetherOrganisms.js +51 -51
  203. package/build/esm/togetherRichTextEditor.js +20 -20
  204. package/build/esm/togetherShareBox.js +12 -12
  205. package/build/esm/{transform-1aa2f89b.js → transform-54db313c.js} +27 -27
  206. package/build/esm/{translationsProvider-153307b6.js → translationsProvider-74ef088c.js} +1 -1
  207. package/build/esm/{treePopoverMenu-f0fb6976.js → treePopoverMenu-43e10598.js} +19 -19
  208. package/build/esm/types.js +2 -2
  209. package/build/esm/{useCartCareService-ab4e9d1a.js → useCartCareService-78b0a223.js} +1 -1
  210. package/build/esm/{useHealthToolCache-0b92e5b1.js → useHealthToolCache-a120abd1.js} +1 -1
  211. package/build/esm/{usePhoneValidator-02c5c4be.js → usePhoneValidator-6ac61ebc.js} +5 -5
  212. package/build/esm/{usePlacesAutocomplete-ef907fa7.js → usePlacesAutocomplete-09a0e342.js} +1 -1
  213. package/build/esm/useTogetherAuthRequiredAction.js +10 -10
  214. package/build/esm/{utils-461087b5.js → utils-4560ea01.js} +5 -5
  215. package/build/esm/{utils-964b4a52.js → utils-78865776.js} +2 -2
  216. package/build/esm/{utils-489b9656.js → utils-9b4e448e.js} +3 -3
  217. package/build/esm/{utils-6b7b19b2.js → utils-e4a74b46.js} +3 -3
  218. package/build/esm/{utils-fb17cc1d.js → utils-e56045d9.js} +2 -2
  219. package/build/esm/vaccination.js +22 -22
  220. package/build/footer.js +22 -22
  221. package/build/gAssets.js +2 -2
  222. package/build/{healthTools-870f1f71.js → healthTools-4c002c0b.js} +1 -1
  223. package/build/healthToolsCardWrapper.js +20 -20
  224. package/build/healthToolsForm.js +35 -35
  225. package/build/hooks.js +14 -14
  226. package/build/i18n.js +2 -2
  227. package/build/i18nV2.js +1 -1
  228. package/build/{index-9b3fdcf1.js → index-015f890f.js} +6 -6
  229. package/build/{index-254198f0.js → index-034a704f.js} +7 -7
  230. package/build/{index-4f322287.js → index-071fc285.js} +3 -3
  231. package/build/{index-9936fe15.js → index-07443896.js} +2 -2
  232. package/build/{index-206cbf9b.js → index-08ce6245.js} +2 -2
  233. package/build/{index-d8da0677.js → index-0d3129b1.js} +6 -6
  234. package/build/{index-772f6e79.js → index-0e60b5c7.js} +18 -18
  235. package/build/{index-8804911c.js → index-2823f5ed.js} +3 -3
  236. package/build/{index-24936a58.js → index-2a0e7ab6.js} +3 -3
  237. package/build/{index-59201967.js → index-2c0ceb91.js} +3 -3
  238. package/build/{index-82ff9bd8.js → index-2dc73063.js} +18 -18
  239. package/build/{index-b75eae4e.js → index-30398c28.js} +4 -4
  240. package/build/{index-5569562c.js → index-317470d8.js} +13 -13
  241. package/build/{index-1c98e98b.js → index-31a7199d.js} +2 -2
  242. package/build/{index-6de503f6.js → index-3d073609.js} +5 -5
  243. package/build/{index-8bee44d3.js → index-3f93a7ef.js} +32 -32
  244. package/build/{index-7e882f6f.js → index-43597605.js} +9 -9
  245. package/build/{index-56f0815a.js → index-4519c910.js} +2 -2
  246. package/build/{index-16d2b233.js → index-4b4ffab8.js} +22 -22
  247. package/build/{index-d4a9017d.js → index-4f61ac85.js} +32 -32
  248. package/build/{index-ad907fda.js → index-5057d16f.js} +2 -2
  249. package/build/{index-f40b05ed.js → index-54f20948.js} +1 -1
  250. package/build/{index-e30ebcb4.js → index-55741379.js} +1 -1
  251. package/build/{index-c3808acb.js → index-5bc65809.js} +6 -6
  252. package/build/{index-24e492d2.js → index-5fdcef88.js} +2 -2
  253. package/build/{index-c43486db.js → index-626df4e1.js} +21 -21
  254. package/build/{index-567cd600.js → index-6699754e.js} +13 -13
  255. package/build/{index-97ab863a.js → index-68b3b9cc.js} +25 -25
  256. package/build/{index-604c3667.js → index-78d490d2.js} +3 -3
  257. package/build/{index-8af08d9f.js → index-7922e69e.js} +2 -2
  258. package/build/{index-3f1c50de.js → index-7979a7fd.js} +3 -3
  259. package/build/{index-a96ea580.js → index-7dbf4343.js} +1 -1
  260. package/build/{index-72ec51ba.js → index-859d9704.js} +11 -11
  261. package/build/{index-a23127de.js → index-8a641926.js} +1 -1
  262. package/build/{index-af557438.js → index-8d636c5e.js} +15 -15
  263. package/build/{index-f2c83111.js → index-8ed68f29.js} +15 -15
  264. package/build/{index-03d42ee8.js → index-8f89038a.js} +15 -15
  265. package/build/{index-733f1eee.js → index-9175f3dc.js} +1 -1
  266. package/build/{index-7be14791.js → index-9368f4ba.js} +8 -8
  267. package/build/{index-3576a5d6.js → index-94b27427.js} +2 -2
  268. package/build/{index-d4497d89.js → index-99d8372b.js} +2 -2
  269. package/build/{index-c110b1ac.js → index-9a1a2a20.js} +24 -24
  270. package/build/{index-19a14194.js → index-9c06a9f8.js} +6 -6
  271. package/build/{index-3d93c752.js → index-9cdb8ffc.js} +5 -5
  272. package/build/{index-2da6f2c8.js → index-a027ddce.js} +3 -3
  273. package/build/{index-ca161b42.js → index-a0fe3cd0.js} +2 -2
  274. package/build/{index-f7e095c7.js → index-a1138fdb.js} +9 -9
  275. package/build/{index-9e0579e2.js → index-aa442c73.js} +2 -2
  276. package/build/{index-c8d2bcfa.js → index-abacafb1.js} +2 -2
  277. package/build/{index-f1b6f7e3.js → index-abed94ee.js} +7 -7
  278. package/build/{index-5efc55fc.js → index-ac37f6c0.js} +16 -16
  279. package/build/{index-dc484a85.js → index-ad516504.js} +3 -3
  280. package/build/{index-8b66da03.js → index-af18e92c.js} +3 -3
  281. package/build/{index-4f2f29aa.js → index-b919614c.js} +1 -1
  282. package/build/{index-aa6e3958.js → index-bb486b2b.js} +16 -16
  283. package/build/{index-ffbda8e0.js → index-bda9fc0f.js} +14 -14
  284. package/build/{index-c6b82c99.js → index-c037399a.js} +14 -14
  285. package/build/{index-6cc207c2.js → index-c0797540.js} +2 -2
  286. package/build/{index-4698a1f6.js → index-c74a66ef.js} +17 -17
  287. package/build/{index-5dbbd78c.js → index-d0193408.js} +19 -19
  288. package/build/{index-b0aa7c2b.js → index-d08623ad.js} +16 -16
  289. package/build/{index-011a9d47.js → index-dab87a70.js} +2 -2
  290. package/build/{index-be8fcd17.js → index-dd216b8d.js} +2 -2
  291. package/build/{index-9b7c2b51.js → index-de56de6f.js} +14 -14
  292. package/build/{index-58a019a6.js → index-e6ee6bb1.js} +33 -33
  293. package/build/{index-f501f88d.js → index-e72051d3.js} +2 -2
  294. package/build/{index-aeea0680.js → index-ec50dce8.js} +3 -3
  295. package/build/{index-64e656f2.js → index-f104b7d3.js} +1 -1
  296. package/build/{index-ca4efb1c.js → index-f3df57f3.js} +2 -2
  297. package/build/{index-133b98d6.js → index-fc3632d1.js} +16 -16
  298. package/build/{index-4d2d9a57.js → index-fea268f5.js} +4 -4
  299. package/build/index.js +126 -126
  300. package/build/{labelSorting-ea3caac8.js → labelSorting-7fc632e0.js} +4 -4
  301. package/build/lead.js +37 -37
  302. package/build/{logoIcon-99e53646.js → logoIcon-bfcdf2f9.js} +2 -2
  303. package/build/mantine.js +25 -25
  304. package/build/misc.js +19 -19
  305. package/build/miscGetDynamicHealthTool.js +4 -4
  306. package/build/miscGetSocialList.js +8 -8
  307. package/build/miscScreenSizeContext.js +1 -1
  308. package/build/mobileBottomNavigation.js +5 -5
  309. package/build/mobileBottomNavigationIcon.js +5 -5
  310. package/build/molecules.js +79 -79
  311. package/build/moleculesArticleCard.js +6 -6
  312. package/build/moleculesArticleCardV2.js +17 -17
  313. package/build/navigation.js +49 -49
  314. package/build/navigationLogoutPopup.js +11 -11
  315. package/build/navigationProfileButton.js +27 -27
  316. package/build/onboardingV2.js +29 -29
  317. package/build/organisms.js +62 -62
  318. package/build/{paths-5d426fbb.js → paths-60d5e970.js} +2 -2
  319. package/build/{post-5bbc2a6a.js → post-a8461958.js} +2 -2
  320. package/build/profileNavigation.js +20 -20
  321. package/build/progressBar.js +1 -1
  322. package/build/pwg.js +23 -23
  323. package/build/ssoV2.js +29 -29
  324. package/build/{store-cb35db82.js → store-61cad318.js} +3 -3
  325. package/build/subot.js +39 -39
  326. package/build/surveyOrPremiumBanner.js +34 -34
  327. package/build/surveyQuestionCard.js +11 -11
  328. package/build/{surveyThankyouCard-22e90468.js → surveyThankyouCard-896e9d87.js} +5 -5
  329. package/build/together.js +57 -57
  330. package/build/togetherApiUtils.js +6 -6
  331. package/build/togetherAtoms.js +31 -31
  332. package/build/togetherComponentGlobalContext.js +6 -6
  333. package/build/togetherMolecules.js +52 -52
  334. package/build/togetherMoleculesCardAuthor.js +29 -29
  335. package/build/togetherMoleculesPostImagePreview.js +13 -13
  336. package/build/togetherMoleculesProfileDetail.js +40 -40
  337. package/build/togetherOrganisms.js +51 -51
  338. package/build/togetherRichTextEditor.js +20 -20
  339. package/build/togetherShareBox.js +12 -12
  340. package/build/{transform-5943bff7.js → transform-f5678a32.js} +27 -27
  341. package/build/{translationsProvider-4803525e.js → translationsProvider-7e6db534.js} +1 -1
  342. package/build/{treePopoverMenu-4bfadf80.js → treePopoverMenu-d6b74bd6.js} +19 -19
  343. package/build/types.js +2 -2
  344. package/build/{useCartCareService-55252850.js → useCartCareService-202114a6.js} +1 -1
  345. package/build/{useHealthToolCache-f8ff463a.js → useHealthToolCache-25f3cf03.js} +1 -1
  346. package/build/{usePhoneValidator-3516ce5a.js → usePhoneValidator-36d897da.js} +5 -5
  347. package/build/{usePlacesAutocomplete-9cb78bbd.js → usePlacesAutocomplete-437f7caf.js} +1 -1
  348. package/build/useTogetherAuthRequiredAction.js +10 -10
  349. package/build/{utils-dba2b152.js → utils-082f61e1.js} +5 -5
  350. package/build/{utils-84a0b514.js → utils-1aeabb49.js} +2 -2
  351. package/build/{utils-d56a27f3.js → utils-4d304390.js} +3 -3
  352. package/build/{utils-af28474e.js → utils-b3fa920f.js} +2 -2
  353. package/build/{utils-cdb9b788.js → utils-bc652d73.js} +3 -3
  354. package/build/vaccination.js +22 -22
  355. package/package.json +1 -1
  356. /package/build/{BMI_BOYS.percentile.monthly-c99325cf.js → BMI_BOYS.percentile.monthly-c8cb7280.js} +0 -0
  357. /package/build/{BMI_BOYS.percentile.weekly-e644e17a.js → BMI_BOYS.percentile.weekly-55ff6bc1.js} +0 -0
  358. /package/build/{BMI_BOYS.percentile.yearly-125a7f4c.js → BMI_BOYS.percentile.yearly-ae309cc1.js} +0 -0
  359. /package/build/{BMI_BOYS.zscore.monthly-c8311802.js → BMI_BOYS.zscore.monthly-51faa333.js} +0 -0
  360. /package/build/{BMI_BOYS.zscore.weekly-6fce8b3c.js → BMI_BOYS.zscore.weekly-c8bc4567.js} +0 -0
  361. /package/build/{BMI_BOYS.zscore.yearly-7c57ad38.js → BMI_BOYS.zscore.yearly-3e94c386.js} +0 -0
  362. /package/build/{BMI_GIRLS.percentile.monthly-4800ded8.js → BMI_GIRLS.percentile.monthly-2f0f4651.js} +0 -0
  363. /package/build/{BMI_GIRLS.percentile.weekly-a48fa5de.js → BMI_GIRLS.percentile.weekly-f3d8cc3f.js} +0 -0
  364. /package/build/{BMI_GIRLS.percentile.yearly-b6fc7df2.js → BMI_GIRLS.percentile.yearly-ce01bdfd.js} +0 -0
  365. /package/build/{BMI_GIRLS.zscore.monthly-c1b9a8fa.js → BMI_GIRLS.zscore.monthly-c30a5aa7.js} +0 -0
  366. /package/build/{BMI_GIRLS.zscore.weekly-98601380.js → BMI_GIRLS.zscore.weekly-850dcf70.js} +0 -0
  367. /package/build/{BMI_GIRLS.zscore.yearly-b54ddca4.js → BMI_GIRLS.zscore.yearly-c14aaf5e.js} +0 -0
  368. /package/build/{ChevronDown-0ee3917a.js → ChevronDown-bd7697c4.js} +0 -0
  369. /package/build/{Close-87093183.js → Close-d80873df.js} +0 -0
  370. /package/build/{Google-6988d936.js → Google-7f8e4f6e.js} +0 -0
  371. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2116fda1.js → HEAD CIRCUM_BOYS.percentile.monthly-8faeb896.js} +0 -0
  372. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-859c75a8.js → HEAD CIRCUM_BOYS.percentile.weekly-e070074f.js} +0 -0
  373. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-1555209f.js → HEAD CIRCUM_BOYS.percentile.yearly-820285f4.js} +0 -0
  374. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-2dc3eabb.js → HEAD CIRCUM_BOYS.zscore.monthly-1b0097ec.js} +0 -0
  375. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-ba33c24f.js → HEAD CIRCUM_BOYS.zscore.weekly-5686ddfb.js} +0 -0
  376. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-dcdc6a12.js → HEAD CIRCUM_BOYS.zscore.yearly-ad150e91.js} +0 -0
  377. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f4d4e31e.js → HEAD CIRCUM_GIRLS.percentile.monthly-076cdb96.js} +0 -0
  378. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-cf0e819a.js → HEAD CIRCUM_GIRLS.percentile.weekly-7ba0f699.js} +0 -0
  379. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e2793aa3.js → HEAD CIRCUM_GIRLS.percentile.yearly-c64aece9.js} +0 -0
  380. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-da347d23.js → HEAD CIRCUM_GIRLS.zscore.monthly-222ef11f.js} +0 -0
  381. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-cada42d1.js → HEAD CIRCUM_GIRLS.zscore.weekly-bffe1fde.js} +0 -0
  382. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5a9b72b8.js → HEAD CIRCUM_GIRLS.zscore.yearly-65836f4a.js} +0 -0
  383. /package/build/{HEIGHT_BOYS.percentile.monthly-5b314e63.js → HEIGHT_BOYS.percentile.monthly-312b0a78.js} +0 -0
  384. /package/build/{HEIGHT_BOYS.percentile.weekly-21eeab52.js → HEIGHT_BOYS.percentile.weekly-d4a02b3a.js} +0 -0
  385. /package/build/{HEIGHT_BOYS.percentile.yearly-da3b97d6.js → HEIGHT_BOYS.percentile.yearly-4991623c.js} +0 -0
  386. /package/build/{HEIGHT_BOYS.zscore.monthly-c52ba799.js → HEIGHT_BOYS.zscore.monthly-cf943dab.js} +0 -0
  387. /package/build/{HEIGHT_BOYS.zscore.weekly-3aab6f77.js → HEIGHT_BOYS.zscore.weekly-929ee172.js} +0 -0
  388. /package/build/{HEIGHT_BOYS.zscore.yearly-cd51f06a.js → HEIGHT_BOYS.zscore.yearly-1ad495ec.js} +0 -0
  389. /package/build/{HEIGHT_GIRLS.percentile.monthly-04b2f2b2.js → HEIGHT_GIRLS.percentile.monthly-49d5f51f.js} +0 -0
  390. /package/build/{HEIGHT_GIRLS.percentile.weekly-6f7253f5.js → HEIGHT_GIRLS.percentile.weekly-a99518f5.js} +0 -0
  391. /package/build/{HEIGHT_GIRLS.percentile.yearly-9e55c4ff.js → HEIGHT_GIRLS.percentile.yearly-91a3be34.js} +0 -0
  392. /package/build/{HEIGHT_GIRLS.zscore.monthly-e38168f6.js → HEIGHT_GIRLS.zscore.monthly-ba8c8e6e.js} +0 -0
  393. /package/build/{HEIGHT_GIRLS.zscore.weekly-9c7a6ab6.js → HEIGHT_GIRLS.zscore.weekly-50353a52.js} +0 -0
  394. /package/build/{HEIGHT_GIRLS.zscore.yearly-13d3918d.js → HEIGHT_GIRLS.zscore.yearly-d1b5f969.js} +0 -0
  395. /package/build/{Locale-1a92afa7.js → Locale-daf9aa88.js} +0 -0
  396. /package/build/{Visible-48b25365.js → Visible-2b15fba4.js} +0 -0
  397. /package/build/{WEIGHT_BOYS.percentile.monthly-83356d27.js → WEIGHT_BOYS.percentile.monthly-5d6787ce.js} +0 -0
  398. /package/build/{WEIGHT_BOYS.percentile.weekly-0be9ce0e.js → WEIGHT_BOYS.percentile.weekly-1a860b4b.js} +0 -0
  399. /package/build/{WEIGHT_BOYS.percentile.yearly-a15d8e36.js → WEIGHT_BOYS.percentile.yearly-fd57716a.js} +0 -0
  400. /package/build/{WEIGHT_BOYS.zscore.monthly-ee041919.js → WEIGHT_BOYS.zscore.monthly-a0acd992.js} +0 -0
  401. /package/build/{WEIGHT_BOYS.zscore.weekly-f2d83f22.js → WEIGHT_BOYS.zscore.weekly-89ef1904.js} +0 -0
  402. /package/build/{WEIGHT_BOYS.zscore.yearly-89a8ce80.js → WEIGHT_BOYS.zscore.yearly-7da1d40a.js} +0 -0
  403. /package/build/{WEIGHT_GIRLS.percentile.monthly-ed3210d1.js → WEIGHT_GIRLS.percentile.monthly-6f58db3e.js} +0 -0
  404. /package/build/{WEIGHT_GIRLS.percentile.weekly-8f3e0953.js → WEIGHT_GIRLS.percentile.weekly-86271d0c.js} +0 -0
  405. /package/build/{WEIGHT_GIRLS.percentile.yearly-bc0a2247.js → WEIGHT_GIRLS.percentile.yearly-0ef79884.js} +0 -0
  406. /package/build/{WEIGHT_GIRLS.zscore.monthly-1cf63e18.js → WEIGHT_GIRLS.zscore.monthly-b25a4c9b.js} +0 -0
  407. /package/build/{WEIGHT_GIRLS.zscore.weekly-29f3cb86.js → WEIGHT_GIRLS.zscore.weekly-370bd448.js} +0 -0
  408. /package/build/{WEIGHT_GIRLS.zscore.yearly-db3bffe5.js → WEIGHT_GIRLS.zscore.yearly-f9e4eee1.js} +0 -0
  409. /package/build/{ageGenerate-a71d93e7.js → ageGenerate-15148d2a.js} +0 -0
  410. /package/build/{animation-00d77f10.js → animation-2da7465d.js} +0 -0
  411. /package/build/{constants-05ac3c27.js → constants-01227b75.js} +0 -0
  412. /package/build/{constants-b479b430.js → constants-d45110a8.js} +0 -0
  413. /package/build/{context-03f47a7a.js → context-e82deb48.js} +0 -0
  414. /package/build/{dataTransform-3a935fa0.js → dataTransform-88f89c7a.js} +0 -0
  415. /package/build/esm/{BMI_BOYS.percentile.monthly-6a02225d.js → BMI_BOYS.percentile.monthly-59d604f6.js} +0 -0
  416. /package/build/esm/{BMI_BOYS.percentile.weekly-f1ff30ad.js → BMI_BOYS.percentile.weekly-fc44a5b7.js} +0 -0
  417. /package/build/esm/{BMI_BOYS.percentile.yearly-721201b6.js → BMI_BOYS.percentile.yearly-9176e4e1.js} +0 -0
  418. /package/build/esm/{BMI_BOYS.zscore.monthly-7caa98e3.js → BMI_BOYS.zscore.monthly-6e573c0b.js} +0 -0
  419. /package/build/esm/{BMI_BOYS.zscore.weekly-9dd85ef4.js → BMI_BOYS.zscore.weekly-1745ebd4.js} +0 -0
  420. /package/build/esm/{BMI_BOYS.zscore.yearly-29906117.js → BMI_BOYS.zscore.yearly-1476fb3a.js} +0 -0
  421. /package/build/esm/{BMI_GIRLS.percentile.monthly-e6b32cfb.js → BMI_GIRLS.percentile.monthly-d2d35df9.js} +0 -0
  422. /package/build/esm/{BMI_GIRLS.percentile.weekly-d2663f73.js → BMI_GIRLS.percentile.weekly-6c19387b.js} +0 -0
  423. /package/build/esm/{BMI_GIRLS.percentile.yearly-ee656664.js → BMI_GIRLS.percentile.yearly-06cc8ebe.js} +0 -0
  424. /package/build/esm/{BMI_GIRLS.zscore.monthly-a761658f.js → BMI_GIRLS.zscore.monthly-fd5ac2e5.js} +0 -0
  425. /package/build/esm/{BMI_GIRLS.zscore.weekly-efbae20d.js → BMI_GIRLS.zscore.weekly-f68aa046.js} +0 -0
  426. /package/build/esm/{BMI_GIRLS.zscore.yearly-1434aea1.js → BMI_GIRLS.zscore.yearly-0c048503.js} +0 -0
  427. /package/build/esm/{ChevronDown-763f26e3.js → ChevronDown-99190b49.js} +0 -0
  428. /package/build/esm/{Close-ce992b66.js → Close-4c9c5d81.js} +0 -0
  429. /package/build/esm/{Google-377967d6.js → Google-49452371.js} +0 -0
  430. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-bc0cb48f.js → HEAD CIRCUM_BOYS.percentile.monthly-d369c45c.js} +0 -0
  431. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c5a3d7dc.js → HEAD CIRCUM_BOYS.percentile.weekly-2c48fafc.js} +0 -0
  432. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e0b6ea9a.js → HEAD CIRCUM_BOYS.percentile.yearly-e794341e.js} +0 -0
  433. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-531b3d32.js → HEAD CIRCUM_BOYS.zscore.monthly-407b0528.js} +0 -0
  434. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-4a5e8284.js → HEAD CIRCUM_BOYS.zscore.weekly-771bbb48.js} +0 -0
  435. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-04a119d2.js → HEAD CIRCUM_BOYS.zscore.yearly-623d50eb.js} +0 -0
  436. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-055e66f2.js → HEAD CIRCUM_GIRLS.percentile.monthly-214f1990.js} +0 -0
  437. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-f0e9739e.js → HEAD CIRCUM_GIRLS.percentile.weekly-7cbe6fff.js} +0 -0
  438. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-92908751.js → HEAD CIRCUM_GIRLS.percentile.yearly-28207825.js} +0 -0
  439. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-9619eac9.js → HEAD CIRCUM_GIRLS.zscore.monthly-9e25b76a.js} +0 -0
  440. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-7b562585.js → HEAD CIRCUM_GIRLS.zscore.weekly-32881b18.js} +0 -0
  441. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-53cf98e0.js → HEAD CIRCUM_GIRLS.zscore.yearly-4f8e0a2e.js} +0 -0
  442. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-511d0162.js → HEIGHT_BOYS.percentile.monthly-6a5617db.js} +0 -0
  443. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5e459367.js → HEIGHT_BOYS.percentile.weekly-f5400955.js} +0 -0
  444. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-398056a8.js → HEIGHT_BOYS.percentile.yearly-7d0b1c6e.js} +0 -0
  445. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c8731f31.js → HEIGHT_BOYS.zscore.monthly-d03f1410.js} +0 -0
  446. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-2a3b7198.js → HEIGHT_BOYS.zscore.weekly-54afffac.js} +0 -0
  447. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-15c5d459.js → HEIGHT_BOYS.zscore.yearly-395598e5.js} +0 -0
  448. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-babdd506.js → HEIGHT_GIRLS.percentile.monthly-202e9f0a.js} +0 -0
  449. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-de71ab56.js → HEIGHT_GIRLS.percentile.weekly-0c2d2912.js} +0 -0
  450. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-80296dad.js → HEIGHT_GIRLS.percentile.yearly-edbc48dd.js} +0 -0
  451. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-d88c3b57.js → HEIGHT_GIRLS.zscore.monthly-6c102061.js} +0 -0
  452. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-c9c2ba6d.js → HEIGHT_GIRLS.zscore.weekly-c068f6e5.js} +0 -0
  453. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-53a3e348.js → HEIGHT_GIRLS.zscore.yearly-62525f1e.js} +0 -0
  454. /package/build/esm/{Locale-e6368378.js → Locale-dd85e540.js} +0 -0
  455. /package/build/esm/{Visible-cd865f60.js → Visible-ca95870e.js} +0 -0
  456. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-6969290c.js → WEIGHT_BOYS.percentile.monthly-b0ec8b51.js} +0 -0
  457. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-644b182b.js → WEIGHT_BOYS.percentile.weekly-cbace597.js} +0 -0
  458. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-95858418.js → WEIGHT_BOYS.percentile.yearly-bd229dcb.js} +0 -0
  459. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-61f9da0c.js → WEIGHT_BOYS.zscore.monthly-8a2526bd.js} +0 -0
  460. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-9b0f0f21.js → WEIGHT_BOYS.zscore.weekly-010ccb5d.js} +0 -0
  461. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-47eb80f9.js → WEIGHT_BOYS.zscore.yearly-807fb74a.js} +0 -0
  462. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-07e05390.js → WEIGHT_GIRLS.percentile.monthly-188cf1de.js} +0 -0
  463. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-501e7f08.js → WEIGHT_GIRLS.percentile.weekly-edcf30aa.js} +0 -0
  464. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-95b09599.js → WEIGHT_GIRLS.percentile.yearly-11916aa1.js} +0 -0
  465. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-c82f2c61.js → WEIGHT_GIRLS.zscore.monthly-02e4f36e.js} +0 -0
  466. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-b3d98444.js → WEIGHT_GIRLS.zscore.weekly-f04180c7.js} +0 -0
  467. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-797976e6.js → WEIGHT_GIRLS.zscore.yearly-b0f6b466.js} +0 -0
  468. /package/build/esm/{ageGenerate-c8f50279.js → ageGenerate-a19ee554.js} +0 -0
  469. /package/build/esm/{animation-1ae89ba2.js → animation-530c8713.js} +0 -0
  470. /package/build/esm/{constants-22df977a.js → constants-2a6f0822.js} +0 -0
  471. /package/build/esm/{constants-7e696ff1.js → constants-ebf82e1d.js} +0 -0
  472. /package/build/esm/{context-8993b379.js → context-adea3929.js} +0 -0
  473. /package/build/esm/{dataTransform-35d0d4b2.js → dataTransform-31b69b1f.js} +0 -0
  474. /package/build/esm/{index-9b504f4d.js → index-10d0027c.js} +0 -0
  475. /package/build/esm/{index-feaac6b0.js → index-22cb52ac.js} +0 -0
  476. /package/build/esm/{index-4f1ab732.js → index-40178353.js} +0 -0
  477. /package/build/esm/{index-454fc2e1.js → index-43a9fa15.js} +0 -0
  478. /package/build/esm/{index-7ac3368b.js → index-52105956.js} +0 -0
  479. /package/build/esm/{index-cf63fb6c.js → index-676cea42.js} +0 -0
  480. /package/build/esm/{index-e44fa0f6.js → index-b2a8a256.js} +0 -0
  481. /package/build/esm/{index-89c4d39a.js → index-edde0d78.js} +0 -0
  482. /package/build/esm/{index-7515cd4e.js → index-f3b9047f.js} +0 -0
  483. /package/build/esm/{index.styles-baaa601d.js → index.styles-fc1f3f4c.js} +0 -0
  484. /package/build/esm/{localizeNumberFormat-0f70f9b6.js → localizeNumberFormat-02aa10d8.js} +0 -0
  485. /package/build/esm/{normalizeLink-1e6807d5.js → normalizeLink-be7f4c29.js} +0 -0
  486. /package/build/esm/{number-511d3f49.js → number-323db2e3.js} +0 -0
  487. /package/build/esm/{shared-86ecf16b.js → shared-ddb4a7c0.js} +0 -0
  488. /package/build/esm/{translationsContext-6b4a5825.js → translationsContext-9ccdd735.js} +0 -0
  489. /package/build/esm/{tslib.es6-a67acee5.js → tslib.es6-eac05ee6.js} +0 -0
  490. /package/build/esm/{types-50fba6d9.js → types-1da79786.js} +0 -0
  491. /package/build/esm/{types-4fe07623.js → types-f3c62b8e.js} +0 -0
  492. /package/build/esm/{useOutsideClick-42fc4cbf.js → useOutsideClick-7b0e73bb.js} +0 -0
  493. /package/build/esm/{useScrollbarSize-6dc27427.js → useScrollbarSize-cbeb3de3.js} +0 -0
  494. /package/build/esm/{useUniqueId-7727a34f.js → useUniqueId-09a9a15d.js} +0 -0
  495. /package/build/esm/{utils-471b07d0.js → utils-8fa947f2.js} +0 -0
  496. /package/build/esm/{utils-8ed90c2a.js → utils-f2c14fb6.js} +0 -0
  497. /package/build/{index-d14e5dcb.js → index-0b65a3e1.js} +0 -0
  498. /package/build/{index-5829bacc.js → index-3658a241.js} +0 -0
  499. /package/build/{index-219b4e7f.js → index-6116f62d.js} +0 -0
  500. /package/build/{index-96ec9686.js → index-6c22e2d3.js} +0 -0
  501. /package/build/{index-04d6a3da.js → index-7305ec62.js} +0 -0
  502. /package/build/{index-9bb90716.js → index-a185e6c8.js} +0 -0
  503. /package/build/{index-358a362b.js → index-cad29f79.js} +0 -0
  504. /package/build/{index-69c92489.js → index-de2e9a33.js} +0 -0
  505. /package/build/{index-5bbe1ffa.js → index-ff0be8db.js} +0 -0
  506. /package/build/{index.styles-479fee08.js → index.styles-7654fb59.js} +0 -0
  507. /package/build/{localizeNumberFormat-f39e4f43.js → localizeNumberFormat-0c6e5858.js} +0 -0
  508. /package/build/{normalizeLink-05e45b7d.js → normalizeLink-9cbdcafa.js} +0 -0
  509. /package/build/{number-7548e11e.js → number-10ca56f4.js} +0 -0
  510. /package/build/{shared-33672620.js → shared-7b7b3f13.js} +0 -0
  511. /package/build/{translationsContext-affdc589.js → translationsContext-9b0d023d.js} +0 -0
  512. /package/build/{tslib.es6-ac1d7f27.js → tslib.es6-7d483fc2.js} +0 -0
  513. /package/build/{types-795dbdd9.js → types-9d499822.js} +0 -0
  514. /package/build/{types-b715cfde.js → types-ed1ecac3.js} +0 -0
  515. /package/build/{useOutsideClick-99f4fe7f.js → useOutsideClick-c0a2806b.js} +0 -0
  516. /package/build/{useScrollbarSize-0ffb5e9f.js → useScrollbarSize-96b32242.js} +0 -0
  517. /package/build/{useUniqueId-aefaaaab.js → useUniqueId-36c15220.js} +0 -0
  518. /package/build/{utils-178e1a76.js → utils-06f796b5.js} +0 -0
  519. /package/build/{utils-4646fe95.js → utils-3b9fef4f.js} +0 -0
@@ -1,22 +1,27 @@
1
- import React__default, { useMemo, useRef, useCallback, useState, useReducer, useEffect } from 'react';
2
- import { Skeleton, Input, ScrollArea, Divider, Tabs, Flex, Button } from '@mantine/core';
3
- import { i as checkMarkIconUrl, P as PinIcon, h as getApiPath, u as useGeolocation } from './utils-fb17cc1d.js';
4
- import { a as useOutsideClick } from './useOutsideClick-42fc4cbf.js';
5
- import { u as useTranslations } from './index-8845a76e.js';
1
+ import React__default, { useMemo, forwardRef, useRef, useImperativeHandle, useCallback, useState, useReducer, useEffect } from 'react';
2
+ import { Search } from '@hhgtech/icons/core';
3
+ import { Skeleton, clsx, Text as Text$1, Select, rem, useMantineTheme, Input, Stack, Flex, Box, Divider, Tabs } from '@mantine/core';
4
+ import { useDisclosure } from '@mantine/hooks';
5
+ import { i as checkMarkIconUrl, P as PinIcon, h as getApiPath, u as useGeolocation } from './utils-e56045d9.js';
6
+ import { a as useOutsideClick } from './useOutsideClick-7b0e73bb.js';
7
+ import { u as useTranslations } from './index-72b972f5.js';
6
8
  import debounce from 'lodash/debounce';
7
- import { a as ID_OPTION_CURRENT_LOCATION, M as MAPPING_CLIENT_WITH_SLUG, L as LOCALIZED_SLUGS, I as ID_OPTION_ALL_LOCATION, S as SLUG_VACIN_ID, C as CLIENT_KEY } from './constants-7e696ff1.js';
9
+ import { a as ID_OPTION_CURRENT_LOCATION, L as LOCALIZED_SLUGS, I as ID_OPTION_ALL_LOCATION, S as SLUG_VACIN_ID, C as CLIENT_KEY, M as MAPPING_CLIENT_WITH_SLUG } from './constants-ebf82e1d.js';
8
10
  import styled from '@emotion/styled';
9
11
  import { theme } from './miscTheme.js';
10
- import { M as MediaQueries } from './utils-471b07d0.js';
11
- import { C as Container } from './index-7515cd4e.js';
12
- import { Search } from '@hhgtech/icons/core';
13
- import { T as Text } from './index-ce11954e.js';
14
- import { C as ChevronDown } from './ChevronDown-763f26e3.js';
15
- import { P as PATHS } from './paths-c7dde110.js';
16
- import './index-761f0180.js';
12
+ import { M as MediaQueries } from './utils-8fa947f2.js';
13
+ import { C as Container } from './index-f3b9047f.js';
14
+ import { T as Text } from './index-ba4cfc72.js';
15
+ import { C as ChevronDown } from './ChevronDown-99190b49.js';
16
+ import { _ as __rest } from './tslib.es6-eac05ee6.js';
17
+ import { ArrowLeft } from '@hhgtech/icons/arrow';
18
+ import { M as Modal } from './index-7d3b5c77.js';
19
+ import { P as PATHS } from './paths-57889e7a.js';
20
+ import { B as Button } from './index-b07e5ab0.js';
21
+ import './index-7061fdca.js';
17
22
  import 'date-fns/locale';
18
- import './index-b516c828.js';
19
- import './Locale-e6368378.js';
23
+ import './index-a7cbb0b9.js';
24
+ import './Locale-dd85e540.js';
20
25
  import './constantsSite.js';
21
26
  import './constantsDomainLocales.js';
22
27
  import './constantsRiskScreener.js';
@@ -24,9 +29,10 @@ import './constantsIsProduction.js';
24
29
  import './miscCookieHelper.js';
25
30
  import 'react-loading-skeleton';
26
31
  import 'string-format';
27
- import './translationsContext-6b4a5825.js';
28
- import './tslib.es6-a67acee5.js';
29
- import './index-89c4d39a.js';
32
+ import './translationsContext-9ccdd735.js';
33
+ import './index-edde0d78.js';
34
+ import './index.styles-fc1f3f4c.js';
35
+ import './shared-ddb4a7c0.js';
30
36
 
31
37
  const StyledSearchBarWrapper = styled.div ``;
32
38
  const StyleWrapperContainer = styled.div `
@@ -215,9 +221,9 @@ function reducer(state, action) {
215
221
  case ActionTypes.ClearInputSearch:
216
222
  return Object.assign(Object.assign({}, state), { focused: 'search', searchKeywords: '' });
217
223
  case ActionTypes.SelectLocation:
218
- return Object.assign(Object.assign({}, state), { focused: 'none', selectedLocation: action.payload, searchLocationKeywords: action.payload.name });
224
+ return Object.assign(Object.assign({}, state), { focused: 'none', selectedLocation: action.payload, searchLocationKeywords: action.payload.name, searchResults: {} });
219
225
  case ActionTypes.SelectSpecialty:
220
- return Object.assign(Object.assign({}, state), { focused: 'none', selectedSpecialty: action.payload });
226
+ return Object.assign(Object.assign({}, state), { focused: 'none', selectedSpecialty: action.payload, searchResults: {} });
221
227
  case ActionTypes.SelectSearchResult:
222
228
  return Object.assign(Object.assign({}, state), { searchKeywords: action.payload.name, isMobileModalOpened: false, focused: 'none', navigateTo: action.payload.url });
223
229
  case ActionTypes.FetchCitiesStart:
@@ -255,8 +261,12 @@ function reducer(state, action) {
255
261
  return Object.assign(Object.assign({}, state), { cities: action.payload });
256
262
  case ActionTypes.DisplayInitialCities:
257
263
  return Object.assign(Object.assign({}, state), { cities: state.initialCities });
258
- case ActionTypes.DisplayInitialSearchResults:
259
- return Object.assign(Object.assign({}, state), { searchResults: state.initialSearchResults, isLoadingSearchResults: false });
264
+ case ActionTypes.DisplayInitialSearchResults: {
265
+ const trimmed = state.searchKeywords.trim();
266
+ const minLen = SEARCH_KEYWORD_MIN_LENGTH[state.locale];
267
+ const shouldShowEmpty = trimmed.length > 0 && trimmed.length <= minLen;
268
+ return Object.assign(Object.assign({}, state), { searchResults: shouldShowEmpty ? {} : state.initialSearchResults, isLoadingSearchResults: false });
269
+ }
260
270
  case ActionTypes.UpdateInitialSearchResults:
261
271
  return Object.assign(Object.assign({}, state), { initialSearchResults: Object.assign(Object.assign({}, state.initialSearchResults), { [action.payload.key]: action.payload.searches }) });
262
272
  case ActionTypes.GrantGeoLocationPermission:
@@ -291,7 +301,7 @@ const StyleSearchInputsWrapper = styled.div `
291
301
  gap: 12px;
292
302
  }
293
303
  `;
294
- const StyleResultWrapper$2 = styled.div `
304
+ const StyleResultWrapper = styled.div `
295
305
  position: absolute;
296
306
  top: calc(100% + 2px);
297
307
  width: 100%;
@@ -307,7 +317,7 @@ const StyleResultWrapper$2 = styled.div `
307
317
  `;
308
318
 
309
319
  const StyledSearchResultWrapper = styled.div ``;
310
- const StyleResultHeader = styled.div `
320
+ styled.div `
311
321
  display: flex;
312
322
  justify-content: space-between;
313
323
  align-item: center;
@@ -339,9 +349,12 @@ const StyleResultItem = styled.div `
339
349
  align-items: center;
340
350
  cursor: pointer;
341
351
 
342
- &:hover {
343
- background-color: ${theme.colors.blue50};
352
+ ${MediaQueries.mbUp} {
353
+ &:hover {
354
+ background-color: ${theme.colors.blue50};
355
+ }
344
356
  }
357
+
345
358
  .image-item {
346
359
  flex: 0 0 48px;
347
360
  width: 48px;
@@ -408,8 +421,12 @@ styled.div `
408
421
  }
409
422
  `;
410
423
 
411
- const SearchResult = ({ state, type, results, location, isLoading, typeInformation, clientSlug = '', dispatch, }) => {
412
- const { locale, t } = useTranslations();
424
+ const SearchResult = ({ state, type, results,
425
+ // location,
426
+ isLoading, typeInformation,
427
+ // clientSlug = '',
428
+ dispatch, }) => {
429
+ const { t } = useTranslations();
413
430
  const { selectedLocation } = state;
414
431
  const typeSlug = useMemo(() => typeInformation[type].slug, [typeInformation, type]);
415
432
  const handleOnClick = (item) => {
@@ -430,40 +447,37 @@ const SearchResult = ({ state, type, results, location, isLoading, typeInformati
430
447
  });
431
448
  }
432
449
  };
433
- const handleSeeAll = () => {
434
- let url = `/${selectedLocation.slug}/${typeSlug}`;
435
- const slugClientUrl = MAPPING_CLIENT_WITH_SLUG[locale][clientSlug];
436
- if (slugClientUrl) {
437
- url += `/${slugClientUrl}`;
438
- }
439
- if ((type === 'doctor' || type === 'hospital') &&
440
- state.selectedSpecialty.id > 0) {
441
- url += `?specialtyId=${state.selectedSpecialty.id}`;
442
- }
443
- if (url) {
444
- dispatch({ type: ActionTypes.NavigateTo, payload: url });
445
- }
446
- };
450
+ // const handleSeeAll = () => {
451
+ // let url = `/${selectedLocation.slug}/${typeSlug}`
452
+ // const slugClientUrl = MAPPING_CLIENT_WITH_SLUG[locale][clientSlug]
453
+ // if (slugClientUrl) {
454
+ // url += `/${slugClientUrl}`
455
+ // }
456
+ // if (
457
+ // (type === 'doctor' || type === 'hospital') &&
458
+ // state.selectedSpecialty.id > 0
459
+ // ) {
460
+ // url += `?specialtyId=${state.selectedSpecialty.id}`
461
+ // }
462
+ // if (url) {
463
+ // dispatch({ type: ActionTypes.NavigateTo, payload: url })
464
+ // }
465
+ // }
466
+ if (results === null)
467
+ return null;
447
468
  return (React__default.createElement(StyledSearchResultWrapper, null,
448
- React__default.createElement(StyleResultHeader, null,
449
- React__default.createElement("div", { className: "title" }, t('booking.searchResult.description', {
450
- search_type: typeInformation[type].name,
451
- search_location: location,
452
- })),
453
- results.length > 0 && (React__default.createElement("div", { className: "btn-see-all", onClick: handleSeeAll }, t('home.seeAll')))),
454
- React__default.createElement(StyleResultBody, null,
455
- isLoading &&
456
- Array(3)
457
- .fill(undefined)
458
- .map((_, i) => (React__default.createElement(StyleResultItem, { key: type + 'loading' + i, className: i === 2 ? 'last-item' : '' },
459
- React__default.createElement("div", { className: "image-item" },
460
- React__default.createElement(Skeleton, { height: 48, circle: true, mb: "xl", animate: true })),
461
- React__default.createElement("div", { className: "infor" },
462
- React__default.createElement("div", { className: "title" },
463
- React__default.createElement(Skeleton, { height: 8, mt: 10, radius: "xl", animate: true })),
464
- React__default.createElement("div", { className: "description" },
465
- React__default.createElement("div", { className: "sub-description" },
466
- React__default.createElement(Skeleton, { height: 8, mt: 10, radius: "xl", width: "80%", animate: true }))))))),
469
+ React__default.createElement(StyleResultBody, { className: "search-results__body" },
470
+ isLoading && (React__default.createElement("div", { className: "skeleton-result" }, Array(3)
471
+ .fill(undefined)
472
+ .map((_, i) => (React__default.createElement(StyleResultItem, { key: type + 'loading' + i, className: i === 2 ? 'last-item' : '' },
473
+ React__default.createElement("div", { className: "image-item" },
474
+ React__default.createElement(Skeleton, { height: 48, circle: true, mb: "xl", animate: true })),
475
+ React__default.createElement("div", { className: "infor" },
476
+ React__default.createElement("div", { className: "title" },
477
+ React__default.createElement(Skeleton, { height: 8, mt: 10, radius: "xl", animate: true })),
478
+ React__default.createElement("div", { className: "description" },
479
+ React__default.createElement("div", { className: "sub-description" },
480
+ React__default.createElement(Skeleton, { height: 8, mt: 10, radius: "xl", width: "80%", animate: true }))))))))),
467
481
  !isLoading && results && results.length > 0 && (React__default.createElement(React__default.Fragment, null, results.map((item, index) => {
468
482
  var _a, _b;
469
483
  const isLastItem = (results.length > 4 && index === 3) ||
@@ -481,7 +495,7 @@ const SearchResult = ({ state, type, results, location, isLoading, typeInformati
481
495
  if (index >= 4) {
482
496
  return React__default.createElement(React__default.Fragment, null);
483
497
  }
484
- return (React__default.createElement(StyleResultItem, { key: item.id, className: isLastItem ? 'last-item' : '', onClick: () => handleOnClick(item) },
498
+ return (React__default.createElement(StyleResultItem, { key: item.id, className: clsx(isLastItem ? 'last-item' : '', 'result-item'), onClick: () => handleOnClick(item) },
485
499
  React__default.createElement("div", { className: "image-item" },
486
500
  React__default.createElement("img", { src: item.logo || item.avatar, alt: item.name })),
487
501
  React__default.createElement("div", { className: "infor" },
@@ -490,7 +504,14 @@ const SearchResult = ({ state, type, results, location, isLoading, typeInformati
490
504
  typeInformation[type].icon,
491
505
  React__default.createElement("div", { className: "sub-description" }, subDescription)))));
492
506
  }))),
493
- !isLoading && (results === null || results === void 0 ? void 0 : results.length) === 0 && (React__default.createElement(Text, { size: "sm", color: theme.colors.gray400 }, t('booking.searchBar.noResults'))))));
507
+ !isLoading && (results === null || results === void 0 ? void 0 : results.length) === 0 && (React__default.createElement(Text, { size: "sm", color: theme.colors.gray400, className: "noresult-block" }, t('booking.searchBar.noResults'))))));
508
+ };
509
+
510
+ const SearchResultContent = ({ state, type, isLoading, clientSlug, typeInformation, dispatch, }) => {
511
+ var _a;
512
+ if (state.focused !== 'search')
513
+ return null;
514
+ return (React__default.createElement(SearchResult, { type: type, state: state, results: ((_a = state.searchResults) === null || _a === void 0 ? void 0 : _a[type]) || null, location: state.selectedLocation.name, dispatch: dispatch, isLoading: isLoading, typeInformation: typeInformation, clientSlug: clientSlug }));
494
515
  };
495
516
 
496
517
  const StyleSearchSpecialtyWrapper = styled.div `
@@ -503,7 +524,7 @@ const StyleSearchSpecialtyWrapper = styled.div `
503
524
  gap: 12px;
504
525
  }
505
526
  `;
506
- const StyleResultWrapper$1 = styled.div `
527
+ styled.div `
507
528
  position: absolute;
508
529
  top: calc(100% + 2px);
509
530
  width: calc(100% + 100px);
@@ -585,97 +606,182 @@ const StyledSpecialtyItem = styled.li `
585
606
  }
586
607
  `;
587
608
 
588
- const DoctorIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
589
- React__default.createElement("path", { d: "M8.983 14.333q-1.666 0-2.833-1.166Q4.983 12 4.983 10.333v-.366a3.48 3.48 0 0 1-2.258-1.2 3.57 3.57 0 0 1-.909-2.434V3.1a.58.58 0 0 1 .175-.425.58.58 0 0 1 .425-.175h1.4v-.167a.486.486 0 0 1 .5-.5q.217 0 .36.142a.5.5 0 0 1 .14.358v1.334a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V3.5h-1v2.833q0 1.1.784 1.884Q4.383 9 5.483 9t1.883-.783.784-1.884V3.5h-1v.167a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V2.333a.486.486 0 0 1 .5-.5q.217 0 .358.142a.5.5 0 0 1 .142.358V2.5h1.4a.58.58 0 0 1 .425.175.58.58 0 0 1 .175.425v3.233q0 1.4-.908 2.434a3.5 3.5 0 0 1-2.259 1.2v.366q0 1.25.875 2.126a2.9 2.9 0 0 0 2.125.874q1.25 0 2.125-.874a2.9 2.9 0 0 0 .875-2.126V9.25a1.74 1.74 0 0 1-.858-.609 1.6 1.6 0 0 1-.342-1.008q0-.716.5-1.216t1.2-.5q.716 0 1.217.5.5.5.5 1.216 0 .567-.342 1.008t-.875.609v1.083q0 1.667-1.167 2.834-1.166 1.166-2.833 1.166m3.5-6q.3 0 .509-.208a.67.67 0 0 0 .208-.492q0-.3-.208-.508a.7.7 0 0 0-.509-.208q-.3 0-.5.208a.7.7 0 0 0-.2.508q0 .284.2.492t.5.208", fill: "#595959" })));
590
- const ServiceIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
591
- React__default.createElement("path", { d: "M6.868 9.265v.974q0 .405.284.69.284.283.69.283t.69-.284.284-.69v-.973h.973q.405 0 .69-.284a.94.94 0 0 0 .284-.689.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284h-.973v-.974a.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284.94.94 0 0 0-.689.284.94.94 0 0 0-.285.69v.974h-.973a.94.94 0 0 0-.69.283.94.94 0 0 0-.284.69q0 .405.284.69.285.284.69.284zm-3.46 4.868q-.581 0-.994-.413A1.36 1.36 0 0 1 2 12.725v-6.65a1.4 1.4 0 0 1 .563-1.127l4.434-3.333q.369-.282.844-.282.474 0 .846.282l4.434 3.333q.264.193.413.493.15.3.15.633v6.651q0 .58-.414.995a1.36 1.36 0 0 1-.994.413zm0-1.168h8.868q.105 0 .172-.068a.23.23 0 0 0 .068-.172v-6.65a.2.2 0 0 0-.027-.11.3.3 0 0 0-.07-.085L7.983 2.554a.2.2 0 0 0-.142-.052.2.2 0 0 0-.142.052L3.266 5.88a.3.3 0 0 0-.071.086.2.2 0 0 0-.027.108v6.651q0 .105.068.172a.23.23 0 0 0 .172.068", fill: "#595959" })));
592
- const HospitalIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
593
- React__default.createElement("path", { d: "M8 8q.55 0 .941-.392.393-.391.392-.941 0-.55-.392-.942A1.28 1.28 0 0 0 8 5.333q-.55 0-.942.392a1.28 1.28 0 0 0-.391.942q0 .55.391.941Q7.45 8 8 8m0 4.9q2.032-1.866 3.017-3.392Q12 7.983 12 6.8q0-1.817-1.158-2.975Q9.682 2.667 8 2.667T5.158 3.825Q4 4.983 4 6.8q0 1.184.983 2.708Q5.966 11.034 8 12.9m0 1.517a.8.8 0 0 1-.5-.183q-2.433-2.151-3.633-3.992T2.667 6.8q0-2.5 1.608-3.983Q5.883 1.332 8 1.333q2.116 0 3.725 1.484T13.333 6.8q0 1.6-1.2 3.442-1.2 1.841-3.633 3.991a.8.8 0 0 1-.5.184", fill: "#8C8C8C" })));
594
- const SpecialtyIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16" },
595
- React__default.createElement("path", { d: "M3.833.5a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667M10.5.5c-.92 0-1.667.746-1.667 1.667V5.5c0 .92.746 1.667 1.667 1.667h3.333c.921 0 1.667-.746 1.667-1.667V2.167C15.5 1.246 14.754.5 13.833.5zM3.833 8.833a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667m8.334 0a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667", fill: "#9AA2AC" })));
596
-
597
- const SearchSpecialty = ({ state, isMobile, debouncedFetchSearchResults, selectedLocation, onSpecialtyClick, dispatch, }) => {
598
- var _a;
609
+ const CustomSelectItem$1 = forwardRef((_a, ref) => {
610
+ var { label, value, specialty } = _a, others = __rest(_a, ["label", "value", "specialty"]);
611
+ return (React__default.createElement("div", Object.assign({ ref: ref }, others),
612
+ React__default.createElement(StyledSpecialtyItem, { key: value,
613
+ // onClick={(evt) => {
614
+ // evt.nativeEvent.stopImmediatePropagation()
615
+ // if (onSpecialtyClick) {
616
+ // onSpecialtyClick({
617
+ // ...specialty,
618
+ // total_doctor: 0,
619
+ // })
620
+ // }
621
+ // }}
622
+ role: "button", tabIndex: 0, "aria-label": `Select ${label} as location` },
623
+ React__default.createElement("div", { className: "image-item" },
624
+ React__default.createElement("img", { src: specialty.thumbnail, alt: label })),
625
+ React__default.createElement(Text$1, { size: "md" }, label))));
626
+ });
627
+
628
+ const SearchSpecialty = ({ state,
629
+ // debouncedFetchSearchResults,
630
+ onSpecialtyClick, dispatch, }) => {
599
631
  const { t, locale } = useTranslations();
600
632
  const inputSpecialtyWrapperRef = useRef(null);
601
633
  const slugs = useMemo(() => LOCALIZED_SLUGS[locale], [locale]);
602
- const styleSpecialties = useMemo(() => {
603
- return {
604
- wrapper: {
605
- '&:after': {
606
- content: '""',
607
- width: '1px',
608
- height: '20px',
609
- backgroundColor: '#E4E8EC',
610
- position: 'absolute',
611
- right: 0,
612
- top: '13px',
613
- },
614
- },
615
- input: {
616
- border: isMobile ? 'border: 1px solid #d9d9d9' : 'none',
617
- height: isMobile ? '40px' : '46px !important',
618
- paddingRight: '30px',
619
- '&:focus': {
620
- boxShadow: isMobile ? 'box-shadow: 0px 0px 0px 2px #91caff' : 'none',
621
- },
622
- },
623
- rightSection: {
624
- width: '30px',
625
- svg: {
626
- fontSize: '20px',
627
- },
628
- },
629
- };
630
- }, [isMobile]);
631
- const handleSearchSpecialtyInputChange = useCallback(function handleSearchSpecialtyInputChange(value) {
632
- // dispatch({ type: ActionTypes.ChangeInputLocation, payload: value })
633
- // if (value.trim().length > SEARCH_KEYWORD_MIN_LENGTH[state.locale]) {
634
- // debouncedFetchSearchResults(value.trim())
635
- // } else {
636
- // debouncedFetchSearchResults.cancel()
637
- // dispatch({ type: ActionTypes.DisplayInitialCities })
638
- // }
639
- console.log(value);
640
- }, [debouncedFetchSearchResults, dispatch]);
634
+ // const styleSpecialties = useMemo(() => {
635
+ // return {
636
+ // wrapper: {
637
+ // '&:after': {
638
+ // content: '""',
639
+ // width: '1px',
640
+ // height: '20px',
641
+ // backgroundColor: '#E4E8EC',
642
+ // position: 'absolute',
643
+ // right: 0,
644
+ // top: '13px',
645
+ // },
646
+ // },
647
+ // input: {
648
+ // border: isMobile ? 'border: 1px solid #d9d9d9' : 'none',
649
+ // height: isMobile ? '40px' : '46px !important',
650
+ // paddingRight: '30px',
651
+ // '&:focus': {
652
+ // boxShadow: isMobile ? 'box-shadow: 0px 0px 0px 2px #91caff' : 'none',
653
+ // },
654
+ // },
655
+ // rightSection: {
656
+ // width: '30px',
657
+ // svg: {
658
+ // fontSize: '20px',
659
+ // },
660
+ // },
661
+ // } as any
662
+ // }, [isMobile])
663
+ // const handleSearchSpecialtyInputChange = useCallback(
664
+ // function handleSearchSpecialtyInputChange(value: string) {
665
+ // // dispatch({ type: ActionTypes.ChangeInputLocation, payload: value })
666
+ // // if (value.trim().length > SEARCH_KEYWORD_MIN_LENGTH[state.locale]) {
667
+ // // debouncedFetchSearchResults(value.trim())
668
+ // // } else {
669
+ // // debouncedFetchSearchResults.cancel()
670
+ // // dispatch({ type: ActionTypes.DisplayInitialCities })
671
+ // // }
672
+ // console.log(value)
673
+ // },
674
+ // [debouncedFetchSearchResults, dispatch],
675
+ // )
641
676
  useOutsideClick(inputSpecialtyWrapperRef, () => {
642
677
  dispatch({ type: ActionTypes.ClickOutsideInputSpecialty });
643
678
  });
679
+ const specialtyData = [
680
+ {
681
+ name: t('booking.searchBar.allSpecialties'),
682
+ id: -1,
683
+ thumbnail: '',
684
+ total_doctor: 0,
685
+ slug: slugs.SPECIALTIES,
686
+ },
687
+ ...state.allSpecialties,
688
+ ];
689
+ const selectValue = state.selectedSpecialty && typeof state.selectedSpecialty.id === 'number'
690
+ ? String(state.selectedSpecialty.id)
691
+ : null;
644
692
  return (React__default.createElement(StyleSearchSpecialtyWrapper, { ref: inputSpecialtyWrapperRef },
645
- React__default.createElement(Input.Wrapper, null,
646
- React__default.createElement(Input, { size: isMobile ? 'md' : 'lg', placeholder: t('booking.searchPopup.specialties'), value: ((_a = state === null || state === void 0 ? void 0 : state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.name) || '', rightSection: React__default.createElement(ChevronDown, null), styles: styleSpecialties, onFocus: () => dispatch({ type: ActionTypes.FocusInputSpecialty }), onChange: (event) => {
647
- handleSearchSpecialtyInputChange(event.target.value);
648
- } })),
649
- state.focused === 'specialty' && (React__default.createElement(StyleResultWrapper$1, null,
650
- React__default.createElement(StyledSpecialtyItem, { key: "all-location", role: "button", tabIndex: 0, onClick: () => {
651
- if (onSpecialtyClick) {
652
- onSpecialtyClick({
653
- name: t('booking.searchBar.allSpecialties'),
654
- id: -1,
655
- thumbnail: '',
656
- total_doctor: 0,
657
- slug: slugs.SPECIALTIES,
658
- });
659
- }
660
- } },
661
- React__default.createElement("div", { className: "image-item" },
662
- React__default.createElement(SpecialtyIcon, null)),
663
- React__default.createElement(Text, { size: "md" }, t('booking.searchBar.allSpecialties'))),
664
- state.allSpecialties.map((specialty) => (React__default.createElement(StyledSpecialtyItem, { key: specialty.id, onClick: (evt) => {
665
- evt.nativeEvent.stopImmediatePropagation();
666
- if (onSpecialtyClick) {
667
- onSpecialtyClick(Object.assign(Object.assign({}, specialty), { total_doctor: 0 }));
668
- }
669
- }, role: "button", tabIndex: 0, "aria-label": `Select ${specialty.name} as location`, isSelected: (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) === specialty.id },
670
- React__default.createElement("div", { className: "image-item" },
671
- React__default.createElement("img", { src: specialty.thumbnail, alt: specialty.name })),
672
- React__default.createElement(Text, { size: "md" }, specialty.name))))))));
693
+ React__default.createElement(Select, { value: selectValue, placeholder: t('booking.searchPopup.specialties'), searchable: true, nothingFound: t('common.noResult'), maxDropdownHeight: 340, dropdownPosition: "bottom", data: specialtyData.map((specialty) => ({
694
+ value: String(specialty.id),
695
+ label: specialty.name,
696
+ specialty,
697
+ })), rightSection: React__default.createElement(ChevronDown, { style: { width: 20, height: 20 } }), styles: (theme) => ({
698
+ dropdown: {
699
+ left: '0 !important',
700
+ border: 0,
701
+ marginTop: -7,
702
+ borderRadius: 0,
703
+ '& [data-mantine-scrollbar]': {
704
+ '&[data-orientation="vertical"]': {
705
+ width: '6px',
706
+ },
707
+ },
708
+ [theme.fn.largerThan('sm')]: {
709
+ minWidth: 264,
710
+ width: `264px !important`,
711
+ },
712
+ },
713
+ item: {
714
+ padding: 0,
715
+ '&[data-selected]': {
716
+ '&, &:hover': {
717
+ backgroundColor: 'transparent',
718
+ color: 'inherit',
719
+ },
720
+ },
721
+ '&[data-hovered]': {
722
+ backgroundColor: 'transparent',
723
+ },
724
+ },
725
+ input: {
726
+ '&:not(.mantine-Textarea-input)': {
727
+ height: 40,
728
+ fontSize: rem(14),
729
+ paddingLeft: 14,
730
+ paddingRight: 14,
731
+ [theme.fn.largerThan('sm')]: {
732
+ height: 46,
733
+ fontSize: rem(16),
734
+ paddingLeft: 16,
735
+ paddingRight: 16,
736
+ borderColor: 'transparent',
737
+ },
738
+ '&:focus, &:focus-within': {
739
+ outline: 'none',
740
+ boxShadow: 'none',
741
+ },
742
+ },
743
+ },
744
+ itemsWrapper: {
745
+ padding: 0,
746
+ },
747
+ wrapper: {
748
+ [theme.fn.largerThan('sm')]: {
749
+ position: 'relative',
750
+ '&:after': {
751
+ content: '""',
752
+ width: '1px',
753
+ height: '20px',
754
+ backgroundColor: '#E4E8EC',
755
+ position: 'absolute',
756
+ right: 0,
757
+ top: '13px',
758
+ },
759
+ },
760
+ },
761
+ }), itemComponent: CustomSelectItem$1, filter: (value, item) => item.label.toLowerCase().includes(value.toLowerCase().trim()), onChange: (value) => {
762
+ if (value == null)
763
+ return;
764
+ const specialty = specialtyData.find((i) => String(i.id) === value);
765
+ if (!specialty)
766
+ return;
767
+ onSpecialtyClick(Object.assign(Object.assign(Object.assign({}, specialty), { thumbnail: specialty.thumbnail || '' }), (Number(value) !== -1 && {
768
+ total_doctor: 0,
769
+ })));
770
+ } })));
673
771
  };
674
772
 
675
- const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, hideSpecialtySelection = false, clientSlug = '', focusSearchInput, onSearch, onEnterSearch, dispatch, }) => {
676
- var _a;
773
+ const SearchInputs = forwardRef(({ state, type, isMobile, isLoading, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, hideSpecialtySelection = false, clientSlug = '', onSearch, onFocusInput, onEnterSearch, dispatch, onlyShowSearchBox, onChangeSpecialty, }, ref) => {
677
774
  const { t } = useTranslations();
775
+ const theme = useMantineTheme();
678
776
  const inputSearchWrapperRef = useRef(null);
777
+ const internalInputRef = useRef(null);
778
+ useImperativeHandle(ref, () => ({
779
+ focus: () => {
780
+ var _a;
781
+ (_a = internalInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
782
+ },
783
+ }));
784
+ const hasSearchIcon = !onlyShowSearchBox;
679
785
  const gaAttributes = useMemo(() => {
680
786
  if (trackingAttributes) {
681
787
  return {
@@ -689,20 +795,16 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
689
795
  }
690
796
  }, [trackingAttributes]);
691
797
  const placeholderSearch = useMemo(() => {
692
- if (type === 'doctor') {
798
+ if (type === 'doctor')
693
799
  return t('booking.searchBar.placeholder.doctor');
694
- }
695
- if (type === 'service') {
800
+ if (type === 'service')
696
801
  return t('booking.searchBar.placeholder.service');
697
- }
698
- if (type === 'hospital') {
802
+ if (type === 'hospital')
699
803
  return t('booking.searchBar.placeholder.hospital');
700
- }
701
- if (type === 'specialty') {
804
+ if (type === 'specialty')
702
805
  return t('booking.searchBar.placeholder.specialty');
703
- }
704
806
  return '';
705
- }, [type]);
807
+ }, [type, t]);
706
808
  const styleInputWrapper = useMemo(() => {
707
809
  return {
708
810
  root: {
@@ -712,7 +814,11 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
712
814
  display: 'none',
713
815
  },
714
816
  input: {
715
- paddingLeft: '48px',
817
+ paddingLeft: hasSearchIcon ? 48 : 16,
818
+ [theme.fn.smallerThan('sm')]: {
819
+ height: 40,
820
+ fontSize: rem(14),
821
+ },
716
822
  },
717
823
  '.mantine-Input-icon': {
718
824
  left: '0',
@@ -720,22 +826,22 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
720
826
  },
721
827
  },
722
828
  };
723
- }, []);
829
+ }, [hasSearchIcon, theme]);
724
830
  const styleInput = useMemo(() => {
725
831
  return {
726
832
  icon: {
727
- left: '165px',
833
+ left: '205px',
728
834
  },
729
835
  input: {
730
836
  color: '#262626',
731
837
  '&[data-with-icon="true"]': {
732
- paddingLeft: '205px',
838
+ paddingLeft: '245px',
733
839
  paddingRight: '16px',
734
840
  },
735
841
  },
736
842
  rightSection: {
737
843
  left: 0,
738
- width: '165px',
844
+ width: '205px',
739
845
  padding: '1px',
740
846
  },
741
847
  };
@@ -748,7 +854,7 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
748
854
  };
749
855
  }, []);
750
856
  useOutsideClick(inputSearchWrapperRef, () => {
751
- dispatch({ type: ActionTypes.ClickOutsideInputSearch });
857
+ !isMobile && dispatch({ type: ActionTypes.ClickOutsideInputSearch });
752
858
  });
753
859
  const handleSearchInputChange = useCallback(function handleSearchInputChange(value) {
754
860
  dispatch({ type: ActionTypes.ChangeInputSearch, payload: value });
@@ -760,40 +866,84 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
760
866
  value.trim().length === 0) {
761
867
  debouncedFetchSearchResults(value.trim(), state, type, clientSlug);
762
868
  }
763
- else {
764
- debouncedFetchSearchResults.cancel();
765
- dispatch({ type: ActionTypes.DisplayInitialSearchResults });
766
- }
767
- }, [dispatch, state, type]);
869
+ }, [
870
+ dispatch,
871
+ state,
872
+ type,
873
+ initalSearchValue,
874
+ debouncedFetchSearchResults,
875
+ clientSlug,
876
+ onSearch,
877
+ ]);
768
878
  const handleSpecialtyClick = useCallback(function handleSpecialtyClick(specialty) {
879
+ var _a;
769
880
  dispatch({ type: ActionTypes.SelectSpecialty, payload: specialty });
770
- focusSearchInput();
771
- }, [dispatch]);
881
+ onChangeSpecialty === null || onChangeSpecialty === void 0 ? void 0 : onChangeSpecialty(specialty);
882
+ !isMobile && ((_a = internalInputRef.current) === null || _a === void 0 ? void 0 : _a.focus());
883
+ }, [dispatch, onChangeSpecialty]);
772
884
  const inputOnKeyDown = useCallback((e) => {
773
- if (e.keyCode === 13) {
885
+ if (e.key === 'Enter') {
774
886
  e.stopPropagation();
775
887
  e.preventDefault();
776
888
  onEnterSearch && onEnterSearch();
777
889
  }
778
890
  }, [onEnterSearch]);
779
891
  return (React__default.createElement(StyleSearchInputsWrapper, { ref: inputSearchWrapperRef }, type === 'specialty' ? (React__default.createElement(Input.Wrapper, { styles: styleInputWrapper },
780
- React__default.createElement(Input, { icon: React__default.createElement(Search, null), size: isMobile ? 'md' : 'lg', placeholder: placeholderSearch, styles: styleInputSpecialties, value: state.searchKeywords, onFocus: () => dispatch({ type: ActionTypes.FocusInputSearchSpecialty }), onChange: (event) => {
892
+ React__default.createElement(Input, { ref: internalInputRef, icon: hasSearchIcon && React__default.createElement(Search, null), size: isMobile ? 'md' : 'lg', placeholder: placeholderSearch, styles: styleInputSpecialties, value: state.searchKeywords, onFocus: () => dispatch({ type: ActionTypes.FocusInputSearchSpecialty }), onChange: (event) => {
781
893
  handleSearchInputChange(event.target.value);
782
894
  }, onKeyDown: inputOnKeyDown }))) : (React__default.createElement(React__default.Fragment, null,
783
895
  type === 'service' ? (React__default.createElement(Input.Wrapper, { styles: styleInputWrapper },
784
- React__default.createElement(Input, { icon: React__default.createElement(Search, null), size: isMobile ? 'md' : 'lg', name: "search-results", placeholder: placeholderSearch, onFocus: () => dispatch({ type: ActionTypes.FocusInputSearch }), value: state.searchKeywords, onChange: (event) => {
896
+ React__default.createElement(Input, { ref: internalInputRef, icon: hasSearchIcon && React__default.createElement(Search, null), size: isMobile ? 'md' : 'lg', name: "search-results", placeholder: placeholderSearch, onFocus: () => {
897
+ dispatch({ type: ActionTypes.FocusInputSearch });
898
+ onFocusInput === null || onFocusInput === void 0 ? void 0 : onFocusInput();
899
+ }, value: state.searchKeywords, onChange: (event) => {
785
900
  handleSearchInputChange(event.target.value);
786
901
  }, onKeyDown: inputOnKeyDown }))) : (React__default.createElement(React__default.Fragment, null, isMobile && !hideSpecialtySelection ? (React__default.createElement(React__default.Fragment, null,
787
- React__default.createElement(SearchSpecialty, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, onSpecialtyClick: handleSpecialtyClick }),
902
+ !onlyShowSearchBox && (React__default.createElement(SearchSpecialty, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, onSpecialtyClick: handleSpecialtyClick })),
788
903
  React__default.createElement(Input.Wrapper, { styles: styleInputWrapper },
789
- React__default.createElement(Input, { icon: React__default.createElement(Search, null), size: "md", placeholder: placeholderSearch, value: state.searchKeywords, name: "search-results", onFocus: () => dispatch({ type: ActionTypes.FocusInputSearch }), onChange: (event) => {
904
+ React__default.createElement(Input, { ref: internalInputRef, icon: hasSearchIcon && React__default.createElement(Search, null), size: "md", placeholder: placeholderSearch, value: state.searchKeywords, name: "search-results", onFocus: () => {
905
+ dispatch({ type: ActionTypes.FocusInputSearch });
906
+ onFocusInput === null || onFocusInput === void 0 ? void 0 : onFocusInput();
907
+ }, onChange: (event) => {
790
908
  handleSearchInputChange(event.target.value);
791
909
  }, onKeyDown: inputOnKeyDown })))) : (React__default.createElement(Input.Wrapper, { styles: styleInputWrapper, className: hideSpecialtySelection ? 'hide-specialty-selection' : '' },
792
- React__default.createElement(Input, Object.assign({ icon: React__default.createElement(Search, null), size: "lg", placeholder: placeholderSearch, styles: styleInput, name: "search-results", autoComplete: "off", value: state.searchKeywords, onChange: (event) => {
910
+ React__default.createElement(Input, Object.assign({ ref: internalInputRef, icon: hasSearchIcon && React__default.createElement(Search, null), size: "lg", placeholder: placeholderSearch, styles: styleInput, name: "search-results", autoComplete: "off", value: state.searchKeywords, onChange: (event) => {
793
911
  handleSearchInputChange(event.target.value);
794
- }, onFocus: () => dispatch({ type: ActionTypes.FocusInputSearch }), onKeyDown: inputOnKeyDown }, gaAttributes, { rightSection: hideSpecialtySelection ? (React__default.createElement(React__default.Fragment, null)) : (React__default.createElement(SearchSpecialty, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, onSpecialtyClick: handleSpecialtyClick })) })))))),
795
- state.focused === 'search' && (React__default.createElement(StyleResultWrapper$2, null,
796
- React__default.createElement(SearchResult, { type: type, state: state, results: ((_a = state.searchResults) === null || _a === void 0 ? void 0 : _a[type]) || [], location: state.selectedLocation.name, dispatch: dispatch, isLoading: isLoading, typeInformation: typeInformation, clientSlug: clientSlug })))))));
912
+ }, onFocus: () => {
913
+ dispatch({ type: ActionTypes.FocusInputSearch });
914
+ onFocusInput === null || onFocusInput === void 0 ? void 0 : onFocusInput();
915
+ }, onKeyDown: inputOnKeyDown }, gaAttributes, { rightSection: hideSpecialtySelection ? (React__default.createElement(React__default.Fragment, null)) : (!onlyShowSearchBox && (React__default.createElement(SearchSpecialty, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, onSpecialtyClick: handleSpecialtyClick }))) })))))),
916
+ !isMobile && (React__default.createElement(StyleResultWrapper, null,
917
+ React__default.createElement(SearchResultContent, { type: type, state: state, dispatch: dispatch, isLoading: isLoading, typeInformation: typeInformation, clientSlug: clientSlug })))))));
918
+ });
919
+ SearchInputs.displayName = 'SearchInputs';
920
+
921
+ const ModalSearchResult = (_a) => {
922
+ var { searchInputEle, closeModal, children } = _a, props = __rest(_a, ["searchInputEle", "closeModal", "children"]);
923
+ const theme = useMantineTheme();
924
+ return (React__default.createElement(Modal, Object.assign({}, props, { zIndex: 310, fullScreen: true, styles: {
925
+ content: {
926
+ borderRadius: 0,
927
+ height: '100%',
928
+ '.search-results__body': { padding: 0 },
929
+ '.result-item': {
930
+ paddingLeft: 16,
931
+ paddingRight: 16,
932
+ },
933
+ '.noresult-block': {
934
+ padding: 16,
935
+ },
936
+ '.skeleton-result': {
937
+ padding: 16,
938
+ },
939
+ },
940
+ header: { display: 'none' },
941
+ } }),
942
+ React__default.createElement(Stack, { spacing: 16, sx: { paddingTop: 16 } },
943
+ React__default.createElement(Flex, { align: 'center', gap: 12 },
944
+ React__default.createElement(ArrowLeft, { size: 28, onClick: closeModal, color: theme.fn.primaryColor() }),
945
+ React__default.createElement(Box, { sx: { width: '100%' } }, searchInputEle)),
946
+ children)));
797
947
  };
798
948
 
799
949
  const StyleSearchLocationWrapper = styled.div `
@@ -806,7 +956,7 @@ const StyleSearchLocationWrapper = styled.div `
806
956
  gap: 12px;
807
957
  }
808
958
  `;
809
- const StyleResultWrapper = styled.div `
959
+ styled.div `
810
960
  position: absolute;
811
961
  top: calc(100% + 2px);
812
962
  width: 100%;
@@ -829,17 +979,6 @@ const StyledLocationItem = styled.div `
829
979
  gap: 14px;
830
980
  overflow: hidden;
831
981
 
832
- ${({ isSelected }) => isSelected &&
833
- `
834
- &::after {
835
- content: ${checkMarkIconUrl};
836
- top: 50%;
837
- right: 18px;
838
- position: absolute;
839
- transform: translateY(-50%);
840
- }
841
- `}
842
-
843
982
  & + li::before {
844
983
  content: '';
845
984
  position: absolute;
@@ -874,9 +1013,29 @@ const StyledPinIcon = styled(PinIcon) `
874
1013
  flex: 0 0 12px;
875
1014
  `;
876
1015
 
877
- const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, selectedLocation, trackingAttributes, onLocationClick, dispatch, }) => {
1016
+ const CustomSelectItem = forwardRef((_a, ref) => {
1017
+ var { label, value } = _a, others = __rest(_a, ["label", "value"]);
1018
+ return (React__default.createElement("div", Object.assign({ ref: ref }, others),
1019
+ React__default.createElement(StyledLocationItem, { key: value, role: "button", tabIndex: 0, "aria-label": `Select ${label} as location`, className: "location-item" },
1020
+ React__default.createElement(StyledPinIcon, { color: theme.colors.neutral400 }),
1021
+ React__default.createElement(Text$1, { size: "md" }, label))));
1022
+ });
1023
+
1024
+ const SearchLocation = ({ state, debouncedFetchCitiesByKeyword, selectedLocation, trackingAttributes, onLocationClick, dispatch, }) => {
1025
+ var _a;
878
1026
  const { t, locale } = useTranslations();
879
1027
  const inputLocationWrapperRef = useRef(null);
1028
+ const citiesData = useMemo(() => {
1029
+ var _a;
1030
+ return [
1031
+ {
1032
+ name: t('booking.searchBar.allLocations'),
1033
+ id: ID_OPTION_ALL_LOCATION,
1034
+ slug: (_a = LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.ALL,
1035
+ },
1036
+ ...state.cities,
1037
+ ];
1038
+ }, [state.cities, t, locale]);
880
1039
  const gaAttributes = useMemo(() => {
881
1040
  if (trackingAttributes) {
882
1041
  return {
@@ -885,9 +1044,7 @@ const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, select
885
1044
  'data-event-label': trackingAttributes.dataEventLabel,
886
1045
  };
887
1046
  }
888
- else {
889
- return {};
890
- }
1047
+ return {};
891
1048
  }, [trackingAttributes]);
892
1049
  const handleSearchLocationInputChange = useCallback(function handleSearchLocationInputChange(value) {
893
1050
  dispatch({ type: ActionTypes.ChangeInputLocation, payload: value });
@@ -898,39 +1055,101 @@ const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, select
898
1055
  debouncedFetchCitiesByKeyword.cancel();
899
1056
  dispatch({ type: ActionTypes.DisplayInitialCities });
900
1057
  }
901
- }, [debouncedFetchCitiesByKeyword, dispatch]);
1058
+ }, [debouncedFetchCitiesByKeyword, dispatch, state.locale]);
902
1059
  useOutsideClick(inputLocationWrapperRef, () => {
903
1060
  dispatch({ type: ActionTypes.ClickOutsideInputLocation });
904
1061
  });
1062
+ const stateValue = (_a = selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) !== null && _a !== void 0 ? _a : null;
1063
+ const defaultValue = stateValue === null ? undefined : String(stateValue);
905
1064
  return (React__default.createElement(StyleSearchLocationWrapper, { ref: inputLocationWrapperRef },
906
- React__default.createElement(Input.Wrapper, null,
907
- React__default.createElement(Input, Object.assign({ size: isMobile ? 'md' : 'lg', placeholder: "Search location", value: state.searchLocationKeywords, onFocus: () => dispatch({ type: ActionTypes.FocusInputLocation }), onChange: (event) => {
908
- handleSearchLocationInputChange(event.target.value);
909
- } }, gaAttributes))),
910
- state.focused === 'location' && (React__default.createElement(StyleResultWrapper, null,
911
- React__default.createElement(ScrollArea, { scrollbarSize: 6, styles: { viewport: { maxHeight: 400 } } },
912
- React__default.createElement(StyledLocationItem, { key: "all-location", role: "button", tabIndex: 0, onClick: () => {
913
- var _a;
914
- if (onLocationClick) {
915
- onLocationClick({
916
- name: t('booking.searchBar.allLocations'),
917
- id: ID_OPTION_ALL_LOCATION,
918
- slug: (_a = LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.ALL,
919
- });
920
- }
921
- } },
922
- React__default.createElement(StyledPinIcon, { color: theme.colors.neutral400 }),
923
- React__default.createElement(Text, { size: "md" }, t('booking.searchBar.allLocations'))),
924
- state.cities.map((city) => (React__default.createElement(StyledLocationItem, { key: city.id, onClick: (evt) => {
925
- evt.nativeEvent.stopImmediatePropagation();
926
- if (onLocationClick) {
927
- onLocationClick(city);
928
- }
929
- }, role: "button", tabIndex: 0, "aria-label": `Select ${city.name} as location`, isSelected: (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) === city.id },
930
- React__default.createElement(StyledPinIcon, { color: theme.colors.neutral400 }),
931
- React__default.createElement(Text, { size: "md" }, city.name)))))))));
1065
+ React__default.createElement(Select, Object.assign({ key: defaultValue !== null && defaultValue !== void 0 ? defaultValue : 'no-selected-location', defaultValue: defaultValue, placeholder: t('booking.searchBar.allLocations'), searchable: true, onSearchChange: (value) => {
1066
+ handleSearchLocationInputChange(value);
1067
+ }, onFocus: () => {
1068
+ dispatch({ type: ActionTypes.DisplayInitialCities });
1069
+ }, onDropdownClose: () => {
1070
+ debouncedFetchCitiesByKeyword.cancel();
1071
+ dispatch({ type: ActionTypes.DisplayInitialCities });
1072
+ }, nothingFound: t('common.noResult'), maxDropdownHeight: 340, dropdownPosition: "bottom", data: citiesData.map((city) => ({
1073
+ value: String(city.id),
1074
+ label: city.name,
1075
+ city,
1076
+ })), rightSection: React__default.createElement(React__default.Fragment, null) }, gaAttributes, { styles: (theme) => ({
1077
+ item: {
1078
+ padding: 0,
1079
+ '&[data-selected]': {
1080
+ '&, &:hover': {
1081
+ backgroundColor: 'transparent',
1082
+ color: 'inherit',
1083
+ },
1084
+ '.location-item': {
1085
+ '&::after': {
1086
+ content: checkMarkIconUrl,
1087
+ top: '50%',
1088
+ right: 19,
1089
+ position: 'absolute',
1090
+ transform: 'translateY(-50%)',
1091
+ },
1092
+ },
1093
+ },
1094
+ '&[data-hovered]': {
1095
+ backgroundColor: 'transparent',
1096
+ },
1097
+ },
1098
+ input: {
1099
+ '&:not(.mantine-Textarea-input)': {
1100
+ height: 48,
1101
+ fontSize: rem(16),
1102
+ paddingLeft: 16,
1103
+ paddingRight: 16,
1104
+ [theme.fn.smallerThan('sm')]: {
1105
+ height: 40,
1106
+ fontSize: rem(14),
1107
+ paddingLeft: 14,
1108
+ paddingRight: 14,
1109
+ },
1110
+ },
1111
+ },
1112
+ itemsWrapper: {
1113
+ padding: 0,
1114
+ },
1115
+ dropdown: {
1116
+ left: '0 !important',
1117
+ border: 0,
1118
+ marginTop: -7,
1119
+ borderRadius: 0,
1120
+ '& ::-webkit-scrollbar': {
1121
+ width: '6px',
1122
+ height: '6px',
1123
+ },
1124
+ },
1125
+ }), itemComponent: CustomSelectItem,
1126
+ // 3. Logic quan trọng nhất: Luôn trả về true để bỏ qua bộ lọc mặc định của Mantine
1127
+ // Vì chúng ta fetch data từ API hoặc dùng toàn bộ list ban đầu
1128
+ filter: () => true, onChange: (value) => {
1129
+ if (value == null)
1130
+ return;
1131
+ const city = citiesData.find((i) => String(i.id) === value);
1132
+ if (!city)
1133
+ return;
1134
+ onLocationClick(city);
1135
+ debouncedFetchCitiesByKeyword.cancel();
1136
+ dispatch({ type: ActionTypes.DisplayInitialCities });
1137
+ setTimeout(() => {
1138
+ var _a, _b;
1139
+ (_b = (_a = inputLocationWrapperRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('input')) === null || _b === void 0 ? void 0 : _b.blur();
1140
+ }, 0);
1141
+ } }))));
932
1142
  };
933
1143
 
1144
+ const DoctorIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1145
+ React__default.createElement("path", { d: "M8.983 14.333q-1.666 0-2.833-1.166Q4.983 12 4.983 10.333v-.366a3.48 3.48 0 0 1-2.258-1.2 3.57 3.57 0 0 1-.909-2.434V3.1a.58.58 0 0 1 .175-.425.58.58 0 0 1 .425-.175h1.4v-.167a.486.486 0 0 1 .5-.5q.217 0 .36.142a.5.5 0 0 1 .14.358v1.334a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V3.5h-1v2.833q0 1.1.784 1.884Q4.383 9 5.483 9t1.883-.783.784-1.884V3.5h-1v.167a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V2.333a.486.486 0 0 1 .5-.5q.217 0 .358.142a.5.5 0 0 1 .142.358V2.5h1.4a.58.58 0 0 1 .425.175.58.58 0 0 1 .175.425v3.233q0 1.4-.908 2.434a3.5 3.5 0 0 1-2.259 1.2v.366q0 1.25.875 2.126a2.9 2.9 0 0 0 2.125.874q1.25 0 2.125-.874a2.9 2.9 0 0 0 .875-2.126V9.25a1.74 1.74 0 0 1-.858-.609 1.6 1.6 0 0 1-.342-1.008q0-.716.5-1.216t1.2-.5q.716 0 1.217.5.5.5.5 1.216 0 .567-.342 1.008t-.875.609v1.083q0 1.667-1.167 2.834-1.166 1.166-2.833 1.166m3.5-6q.3 0 .509-.208a.67.67 0 0 0 .208-.492q0-.3-.208-.508a.7.7 0 0 0-.509-.208q-.3 0-.5.208a.7.7 0 0 0-.2.508q0 .284.2.492t.5.208", fill: "#595959" })));
1146
+ const ServiceIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1147
+ React__default.createElement("path", { d: "M6.868 9.265v.974q0 .405.284.69.284.283.69.283t.69-.284.284-.69v-.973h.973q.405 0 .69-.284a.94.94 0 0 0 .284-.689.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284h-.973v-.974a.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284.94.94 0 0 0-.689.284.94.94 0 0 0-.285.69v.974h-.973a.94.94 0 0 0-.69.283.94.94 0 0 0-.284.69q0 .405.284.69.285.284.69.284zm-3.46 4.868q-.581 0-.994-.413A1.36 1.36 0 0 1 2 12.725v-6.65a1.4 1.4 0 0 1 .563-1.127l4.434-3.333q.369-.282.844-.282.474 0 .846.282l4.434 3.333q.264.193.413.493.15.3.15.633v6.651q0 .58-.414.995a1.36 1.36 0 0 1-.994.413zm0-1.168h8.868q.105 0 .172-.068a.23.23 0 0 0 .068-.172v-6.65a.2.2 0 0 0-.027-.11.3.3 0 0 0-.07-.085L7.983 2.554a.2.2 0 0 0-.142-.052.2.2 0 0 0-.142.052L3.266 5.88a.3.3 0 0 0-.071.086.2.2 0 0 0-.027.108v6.651q0 .105.068.172a.23.23 0 0 0 .172.068", fill: "#595959" })));
1148
+ const HospitalIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1149
+ React__default.createElement("path", { d: "M8 8q.55 0 .941-.392.393-.391.392-.941 0-.55-.392-.942A1.28 1.28 0 0 0 8 5.333q-.55 0-.942.392a1.28 1.28 0 0 0-.391.942q0 .55.391.941Q7.45 8 8 8m0 4.9q2.032-1.866 3.017-3.392Q12 7.983 12 6.8q0-1.817-1.158-2.975Q9.682 2.667 8 2.667T5.158 3.825Q4 4.983 4 6.8q0 1.184.983 2.708Q5.966 11.034 8 12.9m0 1.517a.8.8 0 0 1-.5-.183q-2.433-2.151-3.633-3.992T2.667 6.8q0-2.5 1.608-3.983Q5.883 1.332 8 1.333q2.116 0 3.725 1.484T13.333 6.8q0 1.6-1.2 3.442-1.2 1.841-3.633 3.991a.8.8 0 0 1-.5.184", fill: "#8C8C8C" })));
1150
+ const SpecialtyIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16" },
1151
+ React__default.createElement("path", { d: "M3.833.5a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667M10.5.5c-.92 0-1.667.746-1.667 1.667V5.5c0 .92.746 1.667 1.667 1.667h3.333c.921 0 1.667-.746 1.667-1.667V2.167C15.5 1.246 14.754.5 13.833.5zM3.833 8.833a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667m8.334 0a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667", fill: "#9AA2AC" })));
1152
+
934
1153
  const StyleSpecialtiesWrapper = styled.div `
935
1154
  display: flex;
936
1155
  flex-wrap: wrap;
@@ -1304,16 +1523,20 @@ function useSearchBarApi({ dispatch, careApiDomain, locale = 'vi-VN', client = '
1304
1523
  moreParams.noPaging = 1;
1305
1524
  }
1306
1525
  const requests = [
1307
- fetchCitiesApi(PATHS.GET_CITY_BY_IP, Object.assign(Object.assign(Object.assign({}, params), moreParams), { client: CLIENT_KEY.MSD === client ? '' : client })),
1526
+ fetchCitiesApi(PATHS.GET_CITY_BY_IP, Object.assign(Object.assign(Object.assign({}, params), moreParams), { hospitalActive: 1, client: CLIENT_KEY.MSD === client ? '' : client })),
1308
1527
  ];
1309
1528
  if (locale === 'zh-TW') {
1310
1529
  requests.push(fetchCitiesApi(PATHS.GET_CITIES_LIST, {
1311
1530
  noPaging: 1,
1531
+ hospitalActive: 1,
1312
1532
  client: CLIENT_KEY.MSD === client ? '' : client,
1313
1533
  }));
1314
1534
  }
1315
1535
  else {
1316
- requests.push(fetchCitiesApi(PATHS.GET_CITIES_LIST));
1536
+ requests.push(fetchCitiesApi(PATHS.GET_CITIES_LIST, {
1537
+ noPaging: 1,
1538
+ hospitalActive: 1,
1539
+ }));
1317
1540
  }
1318
1541
  return Promise.all(requests)
1319
1542
  .then(([data1, data2]) => {
@@ -1493,11 +1716,14 @@ gaTrackingSearchBar, gaTrackingLocationSearch, autoCompleteDisabled = false, inp
1493
1716
  // isOptionAllLocation = false,
1494
1717
  // hideResults = [],
1495
1718
  // isNavResultItem = true,
1496
- routerPush, onGeoLocationPermissionChange,
1719
+ triggerSearchWhenChangeFilter, routerPush, onGeoLocationPermissionChange,
1497
1720
  // onSearch,
1498
1721
  onChangeLocation, }) => {
1722
+ var _a;
1499
1723
  const { locale, t } = useTranslations();
1500
1724
  const wrapperRef = useRef(null);
1725
+ const searchInputDesktopRef = useRef(null);
1726
+ const searchInputMobileRef = useRef(null);
1501
1727
  const inputSearchSpecialtyWrapperRef = useRef(null);
1502
1728
  const [currentTab, setCurrentTab] = useState(initTypeSearch);
1503
1729
  const { geoLocationPermission: geoLocationPermissionFromHook, geoLocationCoordinates: geoLocationCoordinatesFromHook, } = useGeolocation();
@@ -1512,7 +1738,9 @@ onChangeLocation, }) => {
1512
1738
  const { navigateTo, focusedSpecialty,
1513
1739
  // isLoadingCities,
1514
1740
  // cities,
1515
- searchKeywords, geoLocationPermission, selectedLocation, selectedSpecialty, initialSelectedCity,
1741
+ searchKeywords, geoLocationPermission, selectedLocation,
1742
+ // selectedSpecialty,
1743
+ initialSelectedCity,
1516
1744
  // defaultCity,
1517
1745
  searchResults, isLoadingSearchResults,
1518
1746
  // isMobileModalOpened,
@@ -1526,6 +1754,7 @@ onChangeLocation, }) => {
1526
1754
  client: clientSlug,
1527
1755
  });
1528
1756
  const slugs = useMemo(() => LOCALIZED_SLUGS[locale], [locale]);
1757
+ const [opened, { close, open }] = useDisclosure(false);
1529
1758
  const typeInformation = useMemo(() => {
1530
1759
  return Object.assign({ doctor: {
1531
1760
  name: t('booking.searchPopup.doctors'),
@@ -1549,34 +1778,31 @@ onChangeLocation, }) => {
1549
1778
  }, [currentTab]);
1550
1779
  const debouncedFetchCitiesByKeyword = useMemo(() => debounce(fetchCitiesByKeyword, 400), [fetchCitiesByKeyword]);
1551
1780
  const debouncedFetchSearchResults = useMemo(() => debounce(fetchSearchResults, 400), [fetchSearchResults]);
1552
- const handleLocationClick = useCallback(function handleLocationClick(city) {
1553
- dispatch({ type: ActionTypes.SelectLocation, payload: city });
1554
- focusSearchInput();
1555
- if (onChangeLocation) {
1556
- onChangeLocation(city);
1557
- }
1558
- }, [t, dispatch]);
1559
- function focusSearchInput() {
1781
+ // function focusSearchInput() {
1782
+ // if (wrapperRef.current) {
1783
+ // wrapperRef.current
1784
+ // .querySelector<HTMLInputElement>('input[name="search-results"]')
1785
+ // ?.focus()
1786
+ // }
1787
+ // }
1788
+ const onClickSearchByKeyword = useCallback(function onClickSearchByKeyword({ locationSlug, specialtyId, } = {}) {
1560
1789
  var _a;
1561
- if (wrapperRef.current) {
1562
- (_a = wrapperRef.current
1563
- .querySelector('input[name="search-results"]')) === null || _a === void 0 ? void 0 : _a.focus();
1564
- }
1565
- }
1566
- function onClickSearchByKeyword() {
1790
+ close();
1567
1791
  let url = '';
1568
1792
  const { slug: typeSlug } = typeInformation[currentTab];
1569
1793
  let moreParams = '';
1570
1794
  const slugClientUrl = MAPPING_CLIENT_WITH_SLUG[locale][clientSlug];
1795
+ const selectedSpecialtyId = specialtyId || ((_a = state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.id) || -1;
1796
+ const selectedLocationSlug = locationSlug || (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.slug) || '';
1571
1797
  if ((currentTab === 'doctor' || currentTab === 'hospital') &&
1572
- state.selectedSpecialty.id > 0) {
1573
- moreParams = `&specialtyId=${state.selectedSpecialty.id}`;
1798
+ selectedSpecialtyId > 0) {
1799
+ moreParams = `&specialtyId=${selectedSpecialtyId}`;
1574
1800
  }
1575
1801
  if (currentTab === 'specialty') {
1576
1802
  url = `/${typeSlug}`;
1577
1803
  }
1578
1804
  else {
1579
- url = `/${selectedLocation.slug}/${typeSlug}`;
1805
+ url = `/${selectedLocationSlug}/${typeSlug}`;
1580
1806
  }
1581
1807
  if (slugClientUrl) {
1582
1808
  url += `/${slugClientUrl}`;
@@ -1585,9 +1811,34 @@ onChangeLocation, }) => {
1585
1811
  if (url) {
1586
1812
  dispatch({ type: ActionTypes.NavigateTo, payload: url });
1587
1813
  }
1588
- }
1814
+ }, [
1815
+ clientSlug,
1816
+ close,
1817
+ currentTab,
1818
+ dispatch,
1819
+ locale,
1820
+ searchKeywords,
1821
+ selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.slug,
1822
+ (_a = state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.id,
1823
+ typeInformation,
1824
+ ]);
1825
+ const handleLocationClick = useCallback(function handleLocationClick(city) {
1826
+ triggerSearchWhenChangeFilter &&
1827
+ onClickSearchByKeyword({ locationSlug: city.slug });
1828
+ dispatch({ type: ActionTypes.SelectLocation, payload: city });
1829
+ if (onChangeLocation) {
1830
+ onChangeLocation(city);
1831
+ }
1832
+ }, [
1833
+ dispatch,
1834
+ isMobile,
1835
+ onChangeLocation,
1836
+ onClickSearchByKeyword,
1837
+ triggerSearchWhenChangeFilter,
1838
+ ]);
1589
1839
  useOutsideClick(inputSearchSpecialtyWrapperRef, () => {
1590
- dispatch({ type: ActionTypes.ClickOutsideInputSearchSpecialty });
1840
+ !isMobile &&
1841
+ dispatch({ type: ActionTypes.ClickOutsideInputSearchSpecialty });
1591
1842
  });
1592
1843
  useEffect(() => {
1593
1844
  var _a;
@@ -1610,6 +1861,7 @@ onChangeLocation, }) => {
1610
1861
  fetchCitiesByLocation({ coordinates: state.geoLocationCoordinates });
1611
1862
  }, [geoLocationPermission]);
1612
1863
  useEffect(() => {
1864
+ var _a;
1613
1865
  const defaultSpecialty = initSpecialty
1614
1866
  ? initSpecialty
1615
1867
  : {
@@ -1619,13 +1871,23 @@ onChangeLocation, }) => {
1619
1871
  total_doctor: 0,
1620
1872
  slug: slugs.SPECIALTIES,
1621
1873
  };
1622
- if (!state.selectedSpecialty) {
1874
+ if (initSpecialty) {
1875
+ if (((_a = state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.id) !== initSpecialty.id) {
1876
+ dispatch({
1877
+ type: ActionTypes.SelectSpecialty,
1878
+ payload: initSpecialty,
1879
+ });
1880
+ }
1881
+ return;
1882
+ }
1883
+ if (!state.selectedSpecialty ||
1884
+ state.selectedSpecialty.id !== defaultSpecialty.id) {
1623
1885
  dispatch({
1624
1886
  type: ActionTypes.SelectSpecialty,
1625
1887
  payload: defaultSpecialty,
1626
1888
  });
1627
1889
  }
1628
- }, [initSpecialty, state.selectedSpecialty]);
1890
+ }, [initSpecialty, slugs.SPECIALTIES, t]);
1629
1891
  useEffect(() => {
1630
1892
  fetchAllSpecialties();
1631
1893
  }, []);
@@ -1644,25 +1906,62 @@ onChangeLocation, }) => {
1644
1906
  }, [navigateTo]);
1645
1907
  useEffect(() => {
1646
1908
  fetchSearchResults(state.searchKeywords, state, currentTab, clientSlug, true);
1647
- }, [selectedLocation, selectedSpecialty, currentTab]);
1648
- return (React__default.createElement(StyledSearchBarWrapper, { ref: wrapperRef },
1649
- React__default.createElement(TabSearch, { currentTab: currentTab, setCurrentTab: setCurrentTab, isMobile: isMobile, hideTabBookingSearch: hideTabBookingSearch, hideSpecialtyTab: hideSpecialtyTab }),
1650
- React__default.createElement(StyleWrapperContainer, { className: "booking-search-container" },
1651
- React__default.createElement(StyleSearchInputContainer, null,
1652
- React__default.createElement(StyleSearchContent, { className: "booking-search-content" },
1653
- React__default.createElement("div", { ref: inputSearchSpecialtyWrapperRef },
1654
- React__default.createElement(Flex, { gap: "12px", justify: "space-between", align: "center", direction: isMobile ? 'column' : 'row', className: "flex-search-input" },
1655
- currentTab !== 'specialty' && (React__default.createElement(SearchLocation, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchCitiesByKeyword: debouncedFetchCitiesByKeyword, selectedLocation: selectedLocation, onLocationClick: handleLocationClick, trackingAttributes: gaTrackingLocationSearch })),
1656
- React__default.createElement(SearchInputs, { type: currentTab, isMobile: isMobile, state: state, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, initalSearchValue: initialSearchValue, focusSearchInput: focusSearchInput, onEnterSearch: onClickSearchByKeyword, typeInformation: typeInformation, trackingAttributes: gaTrackingSearchBar, isLoading: isLoadingSearchResults, hideSpecialtySelection: hideSpecialtySelection || hideSpecialtyTab, clientSlug: clientSlug }),
1657
- React__default.createElement(Button, { size: isMobile ? 'md' : 'lg', color: "#2D87F3", fullWidth: isMobile, variant: "filled", onClick: onClickSearchByKeyword, styles: {
1658
- root: {
1659
- height: isMobile ? '40px' : '48px',
1660
- },
1661
- } }, t('booking.searchBar.searchButton'))),
1662
- !hidePopularSearchKeys &&
1663
- currentTab !== 'specialty' &&
1664
- state.popularKeys.length > 0 && (React__default.createElement(SearchTag, { type: currentTab, state: state, typeInformation: typeInformation, dispatch: dispatch })),
1665
- currentTab === 'specialty' && focusedSpecialty === 'search' && (React__default.createElement(SearchResultSpecialties, { state: state, isMobile: isMobile, dispatch: dispatch, specialties: (searchResults === null || searchResults === void 0 ? void 0 : searchResults.specialty) || [], isLoading: isLoadingSearchResults }))))))));
1909
+ }, [currentTab]);
1910
+ useEffect(() => {
1911
+ if (opened && isMobile) {
1912
+ const timer = setTimeout(() => {
1913
+ var _a;
1914
+ (_a = searchInputMobileRef.current) === null || _a === void 0 ? void 0 : _a.focus();
1915
+ }, 150);
1916
+ return () => clearTimeout(timer);
1917
+ }
1918
+ }, [opened, isMobile]);
1919
+ const searchInputsProps = {
1920
+ type: currentTab,
1921
+ isMobile: isMobile,
1922
+ state: state,
1923
+ dispatch: dispatch,
1924
+ debouncedFetchSearchResults: debouncedFetchSearchResults,
1925
+ initalSearchValue: initialSearchValue,
1926
+ // focusSearchInput: focusSearchInput,
1927
+ onEnterSearch: onClickSearchByKeyword,
1928
+ typeInformation: typeInformation,
1929
+ trackingAttributes: gaTrackingSearchBar,
1930
+ isLoading: isLoadingSearchResults,
1931
+ hideSpecialtySelection: hideSpecialtySelection || hideSpecialtyTab,
1932
+ clientSlug: clientSlug,
1933
+ triggerSearchWhenChangeFilter,
1934
+ onChangeSpecialty: (specialty) => triggerSearchWhenChangeFilter &&
1935
+ onClickSearchByKeyword({ specialtyId: specialty.id }),
1936
+ };
1937
+ return (React__default.createElement(React__default.Fragment, null,
1938
+ React__default.createElement(StyledSearchBarWrapper, { ref: wrapperRef },
1939
+ React__default.createElement(TabSearch, { currentTab: currentTab, setCurrentTab: setCurrentTab, isMobile: isMobile, hideTabBookingSearch: hideTabBookingSearch, hideSpecialtyTab: hideSpecialtyTab }),
1940
+ React__default.createElement(StyleWrapperContainer, { className: "booking-search-container" },
1941
+ React__default.createElement(StyleSearchInputContainer, null,
1942
+ React__default.createElement(StyleSearchContent, { className: "booking-search-content" },
1943
+ React__default.createElement("div", { ref: inputSearchSpecialtyWrapperRef },
1944
+ React__default.createElement(Flex, { gap: "12px", justify: "space-between", align: "center", direction: isMobile ? 'column' : 'row', className: "flex-search-input" },
1945
+ currentTab !== 'specialty' && (React__default.createElement(SearchLocation, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchCitiesByKeyword: debouncedFetchCitiesByKeyword, selectedLocation: selectedLocation, onLocationClick: handleLocationClick, trackingAttributes: gaTrackingLocationSearch })),
1946
+ React__default.createElement(SearchInputs, Object.assign({}, searchInputsProps, { ref: searchInputDesktopRef, onFocusInput: () => isMobile && open() })),
1947
+ React__default.createElement(Button, { size: isMobile ? 'md' : 'lg', fullWidth: isMobile, variant: "primary", onClick: () => onClickSearchByKeyword(), styles: {
1948
+ root: {
1949
+ height: isMobile ? '40px' : '48px',
1950
+ },
1951
+ } }, t('booking.searchBar.searchButton'))),
1952
+ !hidePopularSearchKeys &&
1953
+ currentTab !== 'specialty' &&
1954
+ state.popularKeys.length > 0 && (React__default.createElement(SearchTag, { type: currentTab, state: state, typeInformation: typeInformation, dispatch: dispatch })),
1955
+ currentTab === 'specialty' &&
1956
+ focusedSpecialty === 'search' && (React__default.createElement(SearchResultSpecialties, { state: state, isMobile: isMobile, dispatch: dispatch, specialties: (searchResults === null || searchResults === void 0 ? void 0 : searchResults.specialty) || [], isLoading: isLoadingSearchResults }))))))),
1957
+ isMobile && (React__default.createElement(ModalSearchResult, { keepMounted: true, opened: opened, onClose: close, closeModal: close, searchInputEle: React__default.createElement(Flex, { align: 'center', gap: 8 },
1958
+ React__default.createElement(SearchInputs, Object.assign({}, searchInputsProps, { onlyShowSearchBox: true, ref: searchInputMobileRef })),
1959
+ React__default.createElement(Button, { variant: "primary", leftIcon: React__default.createElement(Search, { size: 20, color: '#fff' }), onClick: () => onClickSearchByKeyword() })) },
1960
+ React__default.createElement(Box, { sx: {
1961
+ marginLeft: -16,
1962
+ marginRight: -16,
1963
+ } },
1964
+ React__default.createElement(SearchResultContent, { type: currentTab, state: state, dispatch: dispatch, isLoading: isLoadingSearchResults, typeInformation: typeInformation, clientSlug: clientSlug }))))));
1666
1965
  };
1667
1966
 
1668
1967
  export { BookingSearchBarV2 };