@hhgtech/hhg-components 1.29.527 → 1.29.529

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-4723615c.js → InputDate-23aa3aa8.js} +5 -5
  2. package/build/{LastPeriod-73630d52.js → LastPeriod-749419c1.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-cc6f18e0.js → MobileBottomNavigationIcon-55051e19.js} +3 -3
  4. package/build/{SiteWideBanner-72c71636.js → SiteWideBanner-6f5828dd.js} +11 -11
  5. package/build/{Spinner-a6e3eb27.js → Spinner-e998027f.js} +1 -1
  6. package/build/{WhatsApp-5f603292.js → WhatsApp-70ed9751.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 +543 -249
  23. package/build/components.js +106 -106
  24. package/build/{constants-ec3816fe.js → constants-3a21c7d8.js} +2 -2
  25. package/build/{constants-8ddf9f14.js → constants-e20852df.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-1b4b5bb6.js → core-8316d9b0.js} +1 -1
  31. package/build/{dataTransform-f5d2e15b.js → dataTransform-d4547b46.js} +1 -1
  32. package/build/ecom.js +5 -5
  33. package/build/{editor-1f3a4880.js → editor-69c86729.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-19558a4a.js → InputDate-3420bfc7.js} +5 -5
  44. package/build/esm/{LastPeriod-36173ef3.js → LastPeriod-4500bb2e.js} +1 -1
  45. package/build/esm/{MobileBottomNavigationIcon-6c0c186f.js → MobileBottomNavigationIcon-e2cda9e5.js} +3 -3
  46. package/build/esm/{SiteWideBanner-7010dc39.js → SiteWideBanner-87116d0b.js} +11 -11
  47. package/build/esm/{Spinner-432bb892.js → Spinner-3eacd1a4.js} +1 -1
  48. package/build/esm/{WhatsApp-e843edd2.js → WhatsApp-debd0829.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 +545 -251
  65. package/build/esm/components.js +106 -106
  66. package/build/esm/{constants-5d94c1eb.js → constants-16201577.js} +1 -1
  67. package/build/esm/{constants-02ff2b9a.js → constants-59626435.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-28fc1feb.js → core-5732fbaa.js} +1 -1
  73. package/build/esm/{dataTransform-18e7db46.js → dataTransform-7672f645.js} +1 -1
  74. package/build/esm/ecom.js +5 -5
  75. package/build/esm/{editor-f39bd267.js → editor-67f45072.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-67f81a15.js → healthTools-42e7a7b9.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-fb51821c.js → index-046f8a94.js} +2 -2
  94. package/build/esm/{index-6b81ef4b.js → index-04d1ff54.js} +32 -32
  95. package/build/esm/{index-3dcbd5d8.js → index-0605c7c1.js} +13 -13
  96. package/build/esm/{index-51164185.js → index-08e91215.js} +2 -2
  97. package/build/esm/{index-b26c8202.js → index-0be2132d.js} +2 -2
  98. package/build/esm/{index-41b75b06.js → index-0de117d1.js} +16 -16
  99. package/build/esm/{index-c11e3721.js → index-0e1f889f.js} +15 -15
  100. package/build/esm/{index-4de26227.js → index-116875d5.js} +32 -32
  101. package/build/esm/{index-89dfc455.js → index-16c5d8bd.js} +11 -11
  102. package/build/esm/{index-16b3f06c.js → index-18b703fe.js} +1 -1
  103. package/build/esm/{index-c2162f76.js → index-1baa4743.js} +6 -6
  104. package/build/esm/{index-11f06411.js → index-1e1be313.js} +3 -3
  105. package/build/esm/{index-625b13b0.js → index-2199aed8.js} +14 -14
  106. package/build/esm/{index-21e8e383.js → index-22e24f71.js} +18 -18
  107. package/build/esm/{index-6562a540.js → index-273f9554.js} +2 -2
  108. package/build/esm/{index-350c8057.js → index-27bcc449.js} +3 -3
  109. package/build/esm/{index-037ffb65.js → index-2b169a42.js} +7 -7
  110. package/build/esm/{index-88ad09a2.js → index-3429f618.js} +21 -21
  111. package/build/esm/{index-2757fc57.js → index-397555b2.js} +13 -13
  112. package/build/esm/{index-927ce49f.js → index-3dd8edb7.js} +17 -17
  113. package/build/esm/{index-eb266a2f.js → index-40680903.js} +9 -9
  114. package/build/esm/{index-c288d070.js → index-414d2c76.js} +25 -25
  115. package/build/esm/{index-132ec066.js → index-41fc1e34.js} +5 -5
  116. package/build/esm/{index-cf0997ce.js → index-43ad9ae9.js} +16 -16
  117. package/build/esm/{index-13cc2584.js → index-451adb11.js} +2 -2
  118. package/build/esm/{index-d51a88aa.js → index-47062fae.js} +1 -1
  119. package/build/esm/{index-83cdc404.js → index-4a9e91c4.js} +7 -7
  120. package/build/esm/{index-039f30e3.js → index-4bd0b733.js} +2 -2
  121. package/build/esm/{index-d5a0deff.js → index-4dae24b1.js} +14 -14
  122. package/build/esm/{index-6d341978.js → index-5c287948.js} +1 -1
  123. package/build/esm/{index-ed3537b8.js → index-6575cb41.js} +2 -2
  124. package/build/esm/{index-b09ae67e.js → index-688bae11.js} +22 -22
  125. package/build/esm/{index-9783f70f.js → index-69b65e96.js} +6 -6
  126. package/build/esm/{index-9eb4ea68.js → index-6fef1f19.js} +5 -5
  127. package/build/esm/{index-d3de292b.js → index-736dd019.js} +19 -19
  128. package/build/esm/{index-f25b49f4.js → index-73f941bb.js} +2 -2
  129. package/build/esm/{index-81417442.js → index-791dd7bb.js} +6 -6
  130. package/build/esm/{index-baeae593.js → index-7be2a6c5.js} +6 -6
  131. package/build/esm/{index-40506630.js → index-7e397e89.js} +1 -1
  132. package/build/esm/{index-08a9819c.js → index-7efaa78b.js} +3 -3
  133. package/build/esm/{index-00172803.js → index-7ff08ba4.js} +3 -3
  134. package/build/esm/{index-14c5bc71.js → index-82c660c9.js} +33 -33
  135. package/build/esm/{index-78e91f91.js → index-82ea6b51.js} +1 -1
  136. package/build/esm/{index-d8bffadf.js → index-8884c688.js} +3 -3
  137. package/build/esm/{index-d920a82c.js → index-8a455ff2.js} +3 -3
  138. package/build/esm/{index-0d2192e4.js → index-8c10789d.js} +15 -15
  139. package/build/esm/{index-592bba40.js → index-906251f1.js} +2 -2
  140. package/build/esm/{index-2f2b3118.js → index-9123f2b2.js} +2 -2
  141. package/build/esm/{index-17e22a49.js → index-988b6c84.js} +3 -3
  142. package/build/esm/{index-d8b71ebe.js → index-9bc8c421.js} +2 -2
  143. package/build/esm/{index-9f3cf366.js → index-a57b3df3.js} +3 -3
  144. package/build/esm/{index-baa344ea.js → index-aa78b83c.js} +1 -1
  145. package/build/esm/{index-5ce992e9.js → index-ab671c88.js} +16 -16
  146. package/build/esm/{index-33b29944.js → index-b7941c48.js} +9 -9
  147. package/build/esm/{index-3bbfc9b7.js → index-be1ca808.js} +1 -1
  148. package/build/esm/{index-9f43c268.js → index-be7ac01b.js} +2 -2
  149. package/build/esm/{index-a38113ec.js → index-bf6cee2d.js} +24 -24
  150. package/build/esm/{index-d6d9926d.js → index-c7e7d049.js} +16 -16
  151. package/build/esm/{index-a0a5c82d.js → index-c83a09c0.js} +2 -2
  152. package/build/esm/{index-e29f4da3.js → index-ca38a8a8.js} +8 -8
  153. package/build/esm/{index-b34a19f4.js → index-cd098b14.js} +4 -4
  154. package/build/esm/{index-848bd280.js → index-ce4660b7.js} +2 -2
  155. package/build/esm/{index-2b33f487.js → index-cfaad2c1.js} +2 -2
  156. package/build/esm/{index-835cb1a4.js → index-d43283bc.js} +4 -4
  157. package/build/esm/{index-71ef7de6.js → index-d6b28d0d.js} +18 -18
  158. package/build/esm/{index-ec874d7f.js → index-daf4f774.js} +2 -2
  159. package/build/esm/{index-5416cd64.js → index-e55ab051.js} +14 -14
  160. package/build/esm/{index-cac853ef.js → index-e63f53b5.js} +2 -2
  161. package/build/esm/{index-3b6525bf.js → index-e8c2e6c9.js} +3 -3
  162. package/build/esm/{index-c262545f.js → index-fa4f9eb1.js} +3 -3
  163. package/build/esm/{index-e772c903.js → index-fbefdc4d.js} +15 -15
  164. package/build/esm/index.js +126 -126
  165. package/build/esm/{labelSorting-b86fc783.js → labelSorting-b17abb6e.js} +4 -4
  166. package/build/esm/lead.js +37 -37
  167. package/build/esm/{logoIcon-8589d465.js → logoIcon-14a04af1.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-28205e0f.js → paths-8f866678.js} +2 -2
  184. package/build/esm/{post-85d8faaa.js → post-e76b246c.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-46ca3b02.js → store-fc6a5924.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-fe5eb710.js → surveyThankyouCard-f74d24de.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-9e1ae172.js → transform-297526f2.js} +27 -27
  206. package/build/esm/{translationsProvider-7112664a.js → translationsProvider-f07172aa.js} +1 -1
  207. package/build/esm/{treePopoverMenu-4534abf4.js → treePopoverMenu-1cc0d3af.js} +19 -19
  208. package/build/esm/types.js +2 -2
  209. package/build/esm/{useCartCareService-dab2f9d4.js → useCartCareService-b9ebe3f2.js} +1 -1
  210. package/build/esm/{useHealthToolCache-c6faed71.js → useHealthToolCache-86f4394b.js} +1 -1
  211. package/build/esm/{usePhoneValidator-6d70c013.js → usePhoneValidator-2ebf8f1e.js} +5 -5
  212. package/build/esm/{usePlacesAutocomplete-eb7786f7.js → usePlacesAutocomplete-4c3a32ba.js} +1 -1
  213. package/build/esm/useTogetherAuthRequiredAction.js +10 -10
  214. package/build/esm/{utils-9a6c6029.js → utils-57635f8e.js} +3 -3
  215. package/build/esm/{utils-5d0e618d.js → utils-6908ac1c.js} +2 -2
  216. package/build/esm/{utils-5e210f54.js → utils-ab3b27b1.js} +2 -2
  217. package/build/esm/{utils-a6dea16c.js → utils-e0aaeb78.js} +5 -5
  218. package/build/esm/{utils-fb8bf638.js → utils-fdf46ea7.js} +3 -3
  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-83fac0a5.js → healthTools-9fe9dfd9.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-91a769d7.js → index-0191b011.js} +32 -32
  229. package/build/{index-6043692f.js → index-09d9c4e1.js} +2 -2
  230. package/build/{index-27670cc8.js → index-0c879b91.js} +16 -16
  231. package/build/{index-88d16ec2.js → index-0f302893.js} +6 -6
  232. package/build/{index-fcb30055.js → index-134db9fe.js} +2 -2
  233. package/build/{index-b2840c48.js → index-15551580.js} +9 -9
  234. package/build/{index-2cc01292.js → index-1b1002f1.js} +16 -16
  235. package/build/{index-221ad3a7.js → index-1b906d4f.js} +1 -1
  236. package/build/{index-eb070ff1.js → index-1c7debb5.js} +14 -14
  237. package/build/{index-04d4d6d5.js → index-22716e8c.js} +8 -8
  238. package/build/{index-acb6aa58.js → index-280f6c67.js} +3 -3
  239. package/build/{index-5c45ee6c.js → index-35211b73.js} +2 -2
  240. package/build/{index-048c359c.js → index-35229d9d.js} +14 -14
  241. package/build/{index-08383fcf.js → index-3876f3ec.js} +1 -1
  242. package/build/{index-0384d19d.js → index-46a710ec.js} +1 -1
  243. package/build/{index-3d421c34.js → index-4cca0410.js} +2 -2
  244. package/build/{index-1e657b96.js → index-4e2565fc.js} +2 -2
  245. package/build/{index-c785a38f.js → index-505e45c4.js} +33 -33
  246. package/build/{index-1d9bd91f.js → index-507ed8f1.js} +3 -3
  247. package/build/{index-edfd48a3.js → index-52f6caec.js} +2 -2
  248. package/build/{index-beae4bf5.js → index-54f9b1df.js} +1 -1
  249. package/build/{index-6439d793.js → index-5583ddd8.js} +1 -1
  250. package/build/{index-ede1d939.js → index-57ab8801.js} +2 -2
  251. package/build/{index-627899a6.js → index-5cc38720.js} +18 -18
  252. package/build/{index-034d9ef4.js → index-5ddd0abf.js} +3 -3
  253. package/build/{index-b5f92ca0.js → index-64076e02.js} +6 -6
  254. package/build/{index-768ce2e2.js → index-71892a7b.js} +3 -3
  255. package/build/{index-21bd3fc2.js → index-77383f92.js} +13 -13
  256. package/build/{index-696cbd6a.js → index-785cbff4.js} +3 -3
  257. package/build/{index-640597bc.js → index-78690e6b.js} +5 -5
  258. package/build/{index-40eb2a9e.js → index-788c0611.js} +2 -2
  259. package/build/{index-9dcf2fa6.js → index-7ab2566d.js} +9 -9
  260. package/build/{index-2358141f.js → index-81d0eb08.js} +4 -4
  261. package/build/{index-4270d6cf.js → index-83dff660.js} +1 -1
  262. package/build/{index-231a399f.js → index-899ad2a2.js} +5 -5
  263. package/build/{index-67eb9b89.js → index-8a481d36.js} +15 -15
  264. package/build/{index-d664f4c8.js → index-a53f780c.js} +2 -2
  265. package/build/{index-8be9c1f5.js → index-a5e72e15.js} +24 -24
  266. package/build/{index-b5d72bcf.js → index-a5f774be.js} +14 -14
  267. package/build/{index-381e1575.js → index-a82cd35a.js} +18 -18
  268. package/build/{index-0dabd635.js → index-aada2704.js} +7 -7
  269. package/build/{index-73704e7a.js → index-ae64358d.js} +25 -25
  270. package/build/{index-2509613f.js → index-afd06067.js} +6 -6
  271. package/build/{index-680b660f.js → index-b2c81337.js} +4 -4
  272. package/build/{index-22ab16d6.js → index-b6ee1315.js} +2 -2
  273. package/build/{index-d469f7de.js → index-b9297c0a.js} +2 -2
  274. package/build/{index-fca34957.js → index-b9b15f54.js} +13 -13
  275. package/build/{index-881cfb0f.js → index-c0e68eb1.js} +2 -2
  276. package/build/{index-8d5df576.js → index-c853777a.js} +16 -16
  277. package/build/{index-c0824124.js → index-cb0aa52f.js} +21 -21
  278. package/build/{index-d13c0da0.js → index-cdfa3535.js} +19 -19
  279. package/build/{index-4b9dcf37.js → index-d1ca7674.js} +7 -7
  280. package/build/{index-78f5bf5c.js → index-d2bd333a.js} +2 -2
  281. package/build/{index-c935c8ae.js → index-d4b08a69.js} +3 -3
  282. package/build/{index-12897bdd.js → index-d4fa0597.js} +15 -15
  283. package/build/{index-cc8ff3c0.js → index-d5924135.js} +3 -3
  284. package/build/{index-06008daa.js → index-d6732df0.js} +17 -17
  285. package/build/{index-ce60142f.js → index-d8d1ca7b.js} +16 -16
  286. package/build/{index-5968ea5b.js → index-dabb369d.js} +2 -2
  287. package/build/{index-b75bbb36.js → index-de28f501.js} +2 -2
  288. package/build/{index-f8c96c21.js → index-e161545f.js} +32 -32
  289. package/build/{index-22841a69.js → index-e3a714d4.js} +3 -3
  290. package/build/{index-e584f6b5.js → index-e5a568b3.js} +3 -3
  291. package/build/{index-623aa44d.js → index-e8388cd0.js} +2 -2
  292. package/build/{index-4f5e23e0.js → index-eb0f49a0.js} +1 -1
  293. package/build/{index-e0e468cb.js → index-eb2e5fda.js} +6 -6
  294. package/build/{index-40725e8b.js → index-ec32e690.js} +3 -3
  295. package/build/{index-163d3814.js → index-eca125e1.js} +2 -2
  296. package/build/{index-d44486f8.js → index-ee7a5f96.js} +22 -22
  297. package/build/{index-ae61f98e.js → index-f1d21d7c.js} +11 -11
  298. package/build/{index-c60704f1.js → index-f61200a8.js} +15 -15
  299. package/build/index.js +126 -126
  300. package/build/{labelSorting-c9cb020f.js → labelSorting-c1a564e4.js} +4 -4
  301. package/build/lead.js +37 -37
  302. package/build/{logoIcon-8ce9a50c.js → logoIcon-ad8866f2.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-07bb96ba.js → paths-c45bd44a.js} +2 -2
  319. package/build/{post-e25c60f7.js → post-9d5daee8.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-2a85405b.js → store-86e21011.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-61ed696c.js → surveyThankyouCard-610d5b88.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-61680d8a.js → transform-3290cdc9.js} +27 -27
  341. package/build/{translationsProvider-636d7cb5.js → translationsProvider-e38e396d.js} +1 -1
  342. package/build/{treePopoverMenu-45f06b81.js → treePopoverMenu-6bf3247e.js} +19 -19
  343. package/build/types.js +2 -2
  344. package/build/{useCartCareService-46731f77.js → useCartCareService-d0cfd97e.js} +1 -1
  345. package/build/{useHealthToolCache-b9319885.js → useHealthToolCache-1d7b3d5c.js} +1 -1
  346. package/build/{usePhoneValidator-5a391cbf.js → usePhoneValidator-58480759.js} +5 -5
  347. package/build/{usePlacesAutocomplete-4c51dc6b.js → usePlacesAutocomplete-7b28f0b4.js} +1 -1
  348. package/build/useTogetherAuthRequiredAction.js +10 -10
  349. package/build/{utils-595db140.js → utils-0b3fa7ad.js} +5 -5
  350. package/build/{utils-83aaaf9c.js → utils-496193ed.js} +3 -3
  351. package/build/{utils-bb345cce.js → utils-8330c5d1.js} +2 -2
  352. package/build/{utils-6fe19ced.js → utils-9eece90c.js} +3 -3
  353. package/build/{utils-68673897.js → utils-d20ab2ad.js} +2 -2
  354. package/build/vaccination.js +22 -22
  355. package/package.json +1 -1
  356. /package/build/{BMI_BOYS.percentile.monthly-71706d34.js → BMI_BOYS.percentile.monthly-6091271d.js} +0 -0
  357. /package/build/{BMI_BOYS.percentile.weekly-7347a0d7.js → BMI_BOYS.percentile.weekly-27cc9915.js} +0 -0
  358. /package/build/{BMI_BOYS.percentile.yearly-a91f42b3.js → BMI_BOYS.percentile.yearly-10a5e3c0.js} +0 -0
  359. /package/build/{BMI_BOYS.zscore.monthly-5a655570.js → BMI_BOYS.zscore.monthly-ea61198c.js} +0 -0
  360. /package/build/{BMI_BOYS.zscore.weekly-a9d33e3a.js → BMI_BOYS.zscore.weekly-d3739585.js} +0 -0
  361. /package/build/{BMI_BOYS.zscore.yearly-484752f7.js → BMI_BOYS.zscore.yearly-7b0cd2c0.js} +0 -0
  362. /package/build/{BMI_GIRLS.percentile.monthly-bcc5b3c5.js → BMI_GIRLS.percentile.monthly-eb6735af.js} +0 -0
  363. /package/build/{BMI_GIRLS.percentile.weekly-10944ec1.js → BMI_GIRLS.percentile.weekly-a5477a8a.js} +0 -0
  364. /package/build/{BMI_GIRLS.percentile.yearly-4cb9b07b.js → BMI_GIRLS.percentile.yearly-4e7a8798.js} +0 -0
  365. /package/build/{BMI_GIRLS.zscore.monthly-c8509ebc.js → BMI_GIRLS.zscore.monthly-517dff6e.js} +0 -0
  366. /package/build/{BMI_GIRLS.zscore.weekly-0a45a2af.js → BMI_GIRLS.zscore.weekly-ddc23d6b.js} +0 -0
  367. /package/build/{BMI_GIRLS.zscore.yearly-38fd0761.js → BMI_GIRLS.zscore.yearly-343d6b08.js} +0 -0
  368. /package/build/{ChevronDown-daab0252.js → ChevronDown-b4e1df18.js} +0 -0
  369. /package/build/{Close-6bcd5612.js → Close-eef05a78.js} +0 -0
  370. /package/build/{Google-46ae3220.js → Google-be52306b.js} +0 -0
  371. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-acd7d0c0.js → HEAD CIRCUM_BOYS.percentile.monthly-51174f35.js} +0 -0
  372. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-0624ad4a.js → HEAD CIRCUM_BOYS.percentile.weekly-3630148c.js} +0 -0
  373. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7f5e2f03.js → HEAD CIRCUM_BOYS.percentile.yearly-732e6569.js} +0 -0
  374. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e24a3e66.js → HEAD CIRCUM_BOYS.zscore.monthly-45229141.js} +0 -0
  375. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-f47af62d.js → HEAD CIRCUM_BOYS.zscore.weekly-4727e70f.js} +0 -0
  376. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b9a06fde.js → HEAD CIRCUM_BOYS.zscore.yearly-41d3693e.js} +0 -0
  377. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-2a4e90ea.js → HEAD CIRCUM_GIRLS.percentile.monthly-577f4ed0.js} +0 -0
  378. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-55b7b3ff.js → HEAD CIRCUM_GIRLS.percentile.weekly-b999e9b0.js} +0 -0
  379. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-3072fb36.js → HEAD CIRCUM_GIRLS.percentile.yearly-d72e0d07.js} +0 -0
  380. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0d75efdc.js → HEAD CIRCUM_GIRLS.zscore.monthly-74b93dcc.js} +0 -0
  381. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8cbb2c5b.js → HEAD CIRCUM_GIRLS.zscore.weekly-4824747d.js} +0 -0
  382. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-8d484ee7.js → HEAD CIRCUM_GIRLS.zscore.yearly-3d27682b.js} +0 -0
  383. /package/build/{HEIGHT_BOYS.percentile.monthly-0ed745dc.js → HEIGHT_BOYS.percentile.monthly-cf725d3a.js} +0 -0
  384. /package/build/{HEIGHT_BOYS.percentile.weekly-83f4827d.js → HEIGHT_BOYS.percentile.weekly-3e534212.js} +0 -0
  385. /package/build/{HEIGHT_BOYS.percentile.yearly-5010e8d8.js → HEIGHT_BOYS.percentile.yearly-b5af53e3.js} +0 -0
  386. /package/build/{HEIGHT_BOYS.zscore.monthly-3ea70741.js → HEIGHT_BOYS.zscore.monthly-d30d9eaf.js} +0 -0
  387. /package/build/{HEIGHT_BOYS.zscore.weekly-2e3eaa3f.js → HEIGHT_BOYS.zscore.weekly-d20f484c.js} +0 -0
  388. /package/build/{HEIGHT_BOYS.zscore.yearly-2062c6ef.js → HEIGHT_BOYS.zscore.yearly-93c9733c.js} +0 -0
  389. /package/build/{HEIGHT_GIRLS.percentile.monthly-24046937.js → HEIGHT_GIRLS.percentile.monthly-70db582b.js} +0 -0
  390. /package/build/{HEIGHT_GIRLS.percentile.weekly-5d48ca6c.js → HEIGHT_GIRLS.percentile.weekly-7ed42a82.js} +0 -0
  391. /package/build/{HEIGHT_GIRLS.percentile.yearly-93eeb025.js → HEIGHT_GIRLS.percentile.yearly-1fd072b5.js} +0 -0
  392. /package/build/{HEIGHT_GIRLS.zscore.monthly-b1d98e51.js → HEIGHT_GIRLS.zscore.monthly-9a7a62bd.js} +0 -0
  393. /package/build/{HEIGHT_GIRLS.zscore.weekly-3ac2b96a.js → HEIGHT_GIRLS.zscore.weekly-45d8f6ff.js} +0 -0
  394. /package/build/{HEIGHT_GIRLS.zscore.yearly-5e0b0bb8.js → HEIGHT_GIRLS.zscore.yearly-c4dcb07c.js} +0 -0
  395. /package/build/{Locale-a078bb23.js → Locale-e037603c.js} +0 -0
  396. /package/build/{Visible-08c4be3d.js → Visible-1817e8ab.js} +0 -0
  397. /package/build/{WEIGHT_BOYS.percentile.monthly-78d2a6d0.js → WEIGHT_BOYS.percentile.monthly-d84ca033.js} +0 -0
  398. /package/build/{WEIGHT_BOYS.percentile.weekly-56168e21.js → WEIGHT_BOYS.percentile.weekly-a6485cb1.js} +0 -0
  399. /package/build/{WEIGHT_BOYS.percentile.yearly-80c8b72b.js → WEIGHT_BOYS.percentile.yearly-fac8696b.js} +0 -0
  400. /package/build/{WEIGHT_BOYS.zscore.monthly-e6e24158.js → WEIGHT_BOYS.zscore.monthly-3a019be0.js} +0 -0
  401. /package/build/{WEIGHT_BOYS.zscore.weekly-ebcacfa3.js → WEIGHT_BOYS.zscore.weekly-6e10f3ac.js} +0 -0
  402. /package/build/{WEIGHT_BOYS.zscore.yearly-cd0d70fa.js → WEIGHT_BOYS.zscore.yearly-c3bb2eb6.js} +0 -0
  403. /package/build/{WEIGHT_GIRLS.percentile.monthly-131d256b.js → WEIGHT_GIRLS.percentile.monthly-4d8ba075.js} +0 -0
  404. /package/build/{WEIGHT_GIRLS.percentile.weekly-21f14054.js → WEIGHT_GIRLS.percentile.weekly-64c08f21.js} +0 -0
  405. /package/build/{WEIGHT_GIRLS.percentile.yearly-bd1f351e.js → WEIGHT_GIRLS.percentile.yearly-1acd7fe9.js} +0 -0
  406. /package/build/{WEIGHT_GIRLS.zscore.monthly-1aa42d0e.js → WEIGHT_GIRLS.zscore.monthly-768df209.js} +0 -0
  407. /package/build/{WEIGHT_GIRLS.zscore.weekly-7c73bedc.js → WEIGHT_GIRLS.zscore.weekly-4e94e0e4.js} +0 -0
  408. /package/build/{WEIGHT_GIRLS.zscore.yearly-5f457f00.js → WEIGHT_GIRLS.zscore.yearly-84aea57f.js} +0 -0
  409. /package/build/{ageGenerate-98e62464.js → ageGenerate-bb8dad8f.js} +0 -0
  410. /package/build/{animation-c1188035.js → animation-e0f945e9.js} +0 -0
  411. /package/build/{constants-8109eafd.js → constants-78b1514b.js} +0 -0
  412. /package/build/{constants-1793f76d.js → constants-f2a6b105.js} +0 -0
  413. /package/build/{context-df75dde3.js → context-c7fe357c.js} +0 -0
  414. /package/build/{dataTransform-e60babbb.js → dataTransform-8d5fcf17.js} +0 -0
  415. /package/build/esm/{BMI_BOYS.percentile.monthly-2704f965.js → BMI_BOYS.percentile.monthly-e427aa19.js} +0 -0
  416. /package/build/esm/{BMI_BOYS.percentile.weekly-cb98a634.js → BMI_BOYS.percentile.weekly-3ee9a2b1.js} +0 -0
  417. /package/build/esm/{BMI_BOYS.percentile.yearly-cf423a0a.js → BMI_BOYS.percentile.yearly-56a16668.js} +0 -0
  418. /package/build/esm/{BMI_BOYS.zscore.monthly-685ba1c7.js → BMI_BOYS.zscore.monthly-2fc06114.js} +0 -0
  419. /package/build/esm/{BMI_BOYS.zscore.weekly-f88a217b.js → BMI_BOYS.zscore.weekly-2c502e1a.js} +0 -0
  420. /package/build/esm/{BMI_BOYS.zscore.yearly-4112d011.js → BMI_BOYS.zscore.yearly-4f317f05.js} +0 -0
  421. /package/build/esm/{BMI_GIRLS.percentile.monthly-63c6d21c.js → BMI_GIRLS.percentile.monthly-0c4618d4.js} +0 -0
  422. /package/build/esm/{BMI_GIRLS.percentile.weekly-447ff2e9.js → BMI_GIRLS.percentile.weekly-9129fe41.js} +0 -0
  423. /package/build/esm/{BMI_GIRLS.percentile.yearly-dd787daa.js → BMI_GIRLS.percentile.yearly-900dac1f.js} +0 -0
  424. /package/build/esm/{BMI_GIRLS.zscore.monthly-3a9080d3.js → BMI_GIRLS.zscore.monthly-c1d3470e.js} +0 -0
  425. /package/build/esm/{BMI_GIRLS.zscore.weekly-a6b58da1.js → BMI_GIRLS.zscore.weekly-e059c66e.js} +0 -0
  426. /package/build/esm/{BMI_GIRLS.zscore.yearly-efcd0984.js → BMI_GIRLS.zscore.yearly-831b845f.js} +0 -0
  427. /package/build/esm/{ChevronDown-13f6a5cf.js → ChevronDown-fb1a6473.js} +0 -0
  428. /package/build/esm/{Close-c1620eee.js → Close-14528d26.js} +0 -0
  429. /package/build/esm/{Google-9786875a.js → Google-83b0c254.js} +0 -0
  430. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-582c90de.js → HEAD CIRCUM_BOYS.percentile.monthly-c235e1b3.js} +0 -0
  431. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-978bac8a.js → HEAD CIRCUM_BOYS.percentile.weekly-e55f916f.js} +0 -0
  432. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-cf26e3d0.js → HEAD CIRCUM_BOYS.percentile.yearly-281dc949.js} +0 -0
  433. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-31de970e.js → HEAD CIRCUM_BOYS.zscore.monthly-08908154.js} +0 -0
  434. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-900f95f2.js → HEAD CIRCUM_BOYS.zscore.weekly-9e427235.js} +0 -0
  435. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-409f8b98.js → HEAD CIRCUM_BOYS.zscore.yearly-fa510309.js} +0 -0
  436. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-4231eb97.js → HEAD CIRCUM_GIRLS.percentile.monthly-3e6ecd43.js} +0 -0
  437. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-b02c363f.js → HEAD CIRCUM_GIRLS.percentile.weekly-7dd6d29d.js} +0 -0
  438. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-78b34ff2.js → HEAD CIRCUM_GIRLS.percentile.yearly-eb6f9c18.js} +0 -0
  439. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-0c7a31f7.js → HEAD CIRCUM_GIRLS.zscore.monthly-304e6442.js} +0 -0
  440. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-868bf312.js → HEAD CIRCUM_GIRLS.zscore.weekly-e9767e93.js} +0 -0
  441. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-e76ac89e.js → HEAD CIRCUM_GIRLS.zscore.yearly-fa0664b6.js} +0 -0
  442. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-20d42076.js → HEIGHT_BOYS.percentile.monthly-eafd4583.js} +0 -0
  443. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-a2798e49.js → HEIGHT_BOYS.percentile.weekly-7e4a54dc.js} +0 -0
  444. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-483306f2.js → HEIGHT_BOYS.percentile.yearly-33cf9d37.js} +0 -0
  445. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-42784c9d.js → HEIGHT_BOYS.zscore.monthly-5b18236e.js} +0 -0
  446. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-849fe5f4.js → HEIGHT_BOYS.zscore.weekly-1e860e78.js} +0 -0
  447. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-548e7e60.js → HEIGHT_BOYS.zscore.yearly-db583d8c.js} +0 -0
  448. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c5b41a4d.js → HEIGHT_GIRLS.percentile.monthly-3d441b9c.js} +0 -0
  449. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-430ad60a.js → HEIGHT_GIRLS.percentile.weekly-99a4d6db.js} +0 -0
  450. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ea5d2cef.js → HEIGHT_GIRLS.percentile.yearly-d9c70503.js} +0 -0
  451. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-feabe2d8.js → HEIGHT_GIRLS.zscore.monthly-3aa672a7.js} +0 -0
  452. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-6b3584e2.js → HEIGHT_GIRLS.zscore.weekly-0eb43069.js} +0 -0
  453. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-0d4773d1.js → HEIGHT_GIRLS.zscore.yearly-2141b8b2.js} +0 -0
  454. /package/build/esm/{Locale-adfd207f.js → Locale-f3ce6f4a.js} +0 -0
  455. /package/build/esm/{Visible-5b3e8bb2.js → Visible-03c5663d.js} +0 -0
  456. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-79ea5ed5.js → WEIGHT_BOYS.percentile.monthly-ad14497a.js} +0 -0
  457. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-df533c0b.js → WEIGHT_BOYS.percentile.weekly-9ed4f577.js} +0 -0
  458. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-be9284bf.js → WEIGHT_BOYS.percentile.yearly-5ce6bf8e.js} +0 -0
  459. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-33696cff.js → WEIGHT_BOYS.zscore.monthly-2d44e529.js} +0 -0
  460. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7ce33291.js → WEIGHT_BOYS.zscore.weekly-8344f718.js} +0 -0
  461. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-87bf3a6e.js → WEIGHT_BOYS.zscore.yearly-7c342a5c.js} +0 -0
  462. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-02a28d8b.js → WEIGHT_GIRLS.percentile.monthly-7a4e920e.js} +0 -0
  463. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-1e556624.js → WEIGHT_GIRLS.percentile.weekly-eddbada0.js} +0 -0
  464. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-a2a7e950.js → WEIGHT_GIRLS.percentile.yearly-c2018c71.js} +0 -0
  465. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-ca966e35.js → WEIGHT_GIRLS.zscore.monthly-07077cb1.js} +0 -0
  466. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-995c55b4.js → WEIGHT_GIRLS.zscore.weekly-f766a165.js} +0 -0
  467. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-666e98e9.js → WEIGHT_GIRLS.zscore.yearly-a5f4bd57.js} +0 -0
  468. /package/build/esm/{ageGenerate-5820c481.js → ageGenerate-446d584f.js} +0 -0
  469. /package/build/esm/{animation-d8cdf774.js → animation-31934930.js} +0 -0
  470. /package/build/esm/{constants-ce5271a6.js → constants-c8a9d8cb.js} +0 -0
  471. /package/build/esm/{constants-1da5a50a.js → constants-ea552f1d.js} +0 -0
  472. /package/build/esm/{context-3ef9593e.js → context-6fd811b3.js} +0 -0
  473. /package/build/esm/{dataTransform-cbeb5762.js → dataTransform-dfbd4ef9.js} +0 -0
  474. /package/build/esm/{index-e8324372.js → index-3857d52d.js} +0 -0
  475. /package/build/esm/{index-8166c45c.js → index-4a0c644c.js} +0 -0
  476. /package/build/esm/{index-ec96ed21.js → index-5869acf8.js} +0 -0
  477. /package/build/esm/{index-56e4d976.js → index-7eb710d8.js} +0 -0
  478. /package/build/esm/{index-f488874b.js → index-bef0ef2f.js} +0 -0
  479. /package/build/esm/{index-bef69cf0.js → index-d7bc8ec4.js} +0 -0
  480. /package/build/esm/{index-be67b7ae.js → index-e7c61752.js} +0 -0
  481. /package/build/esm/{index-e6344e81.js → index-f7bcc9a8.js} +0 -0
  482. /package/build/esm/{index-a131e0d4.js → index-fc6409b1.js} +0 -0
  483. /package/build/esm/{index.styles-403f770f.js → index.styles-57582498.js} +0 -0
  484. /package/build/esm/{localizeNumberFormat-88646ced.js → localizeNumberFormat-d6a2d9ac.js} +0 -0
  485. /package/build/esm/{normalizeLink-5d0ac05d.js → normalizeLink-3a2ee5f5.js} +0 -0
  486. /package/build/esm/{number-003a0b20.js → number-698551ff.js} +0 -0
  487. /package/build/esm/{shared-f8354531.js → shared-d6ce481f.js} +0 -0
  488. /package/build/esm/{translationsContext-f5f75ec5.js → translationsContext-5536e910.js} +0 -0
  489. /package/build/esm/{tslib.es6-88ed8ad1.js → tslib.es6-cad84cc0.js} +0 -0
  490. /package/build/esm/{types-1fa82904.js → types-35ea0197.js} +0 -0
  491. /package/build/esm/{types-bb63b0f1.js → types-3f5b8509.js} +0 -0
  492. /package/build/esm/{useOutsideClick-8288aa4e.js → useOutsideClick-bbf3c9ae.js} +0 -0
  493. /package/build/esm/{useScrollbarSize-84630ccb.js → useScrollbarSize-58d67e9b.js} +0 -0
  494. /package/build/esm/{useUniqueId-781519f9.js → useUniqueId-0d9665f4.js} +0 -0
  495. /package/build/esm/{utils-308ca058.js → utils-23c578aa.js} +0 -0
  496. /package/build/esm/{utils-e7b81bdc.js → utils-2fee1cd2.js} +0 -0
  497. /package/build/{index-4dcc592d.js → index-1ab48613.js} +0 -0
  498. /package/build/{index-b262b1d4.js → index-2ae80422.js} +0 -0
  499. /package/build/{index-cf78f71e.js → index-334e7245.js} +0 -0
  500. /package/build/{index-c92c0540.js → index-4992f6a2.js} +0 -0
  501. /package/build/{index-f74dab7a.js → index-65891508.js} +0 -0
  502. /package/build/{index-858052e3.js → index-7c27f961.js} +0 -0
  503. /package/build/{index-0c2bcd44.js → index-927f36fb.js} +0 -0
  504. /package/build/{index-8f28b7cd.js → index-c0e3db0e.js} +0 -0
  505. /package/build/{index-a2e16797.js → index-e1e5960a.js} +0 -0
  506. /package/build/{index.styles-eac100df.js → index.styles-45a49aa7.js} +0 -0
  507. /package/build/{localizeNumberFormat-276f5621.js → localizeNumberFormat-87d4e8a6.js} +0 -0
  508. /package/build/{normalizeLink-d947e46b.js → normalizeLink-07a9d7be.js} +0 -0
  509. /package/build/{number-50711ee8.js → number-bbee4609.js} +0 -0
  510. /package/build/{shared-e6688092.js → shared-476b5033.js} +0 -0
  511. /package/build/{translationsContext-a3ccdf71.js → translationsContext-3fd98577.js} +0 -0
  512. /package/build/{tslib.es6-96c97478.js → tslib.es6-22cfb2d1.js} +0 -0
  513. /package/build/{types-c613708f.js → types-37591a90.js} +0 -0
  514. /package/build/{types-b89d9486.js → types-e3b056c5.js} +0 -0
  515. /package/build/{useOutsideClick-de846086.js → useOutsideClick-53be606b.js} +0 -0
  516. /package/build/{useScrollbarSize-fa69e3af.js → useScrollbarSize-e2c7cb27.js} +0 -0
  517. /package/build/{useUniqueId-f936ca4e.js → useUniqueId-a93fc94f.js} +0 -0
  518. /package/build/{utils-fe333e42.js → utils-1bdc7913.js} +0 -0
  519. /package/build/{utils-08509440.js → utils-48e32d5d.js} +0 -0
@@ -3,24 +3,29 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
+ var core$1 = require('@hhgtech/icons/core');
6
7
  var core = require('@mantine/core');
7
- var utils$1 = require('./utils-bb345cce.js');
8
- var useOutsideClick = require('./useOutsideClick-de846086.js');
9
- var index$1 = require('./index-08383fcf.js');
8
+ var hooks = require('@mantine/hooks');
9
+ var utils$1 = require('./utils-8330c5d1.js');
10
+ var useOutsideClick = require('./useOutsideClick-53be606b.js');
11
+ var index$1 = require('./index-3876f3ec.js');
10
12
  var debounce = require('lodash/debounce');
11
- var constants = require('./constants-1793f76d.js');
13
+ var constants = require('./constants-f2a6b105.js');
12
14
  var styled = require('@emotion/styled');
13
15
  var miscTheme = require('./miscTheme.js');
14
- var utils = require('./utils-fe333e42.js');
15
- var index = require('./index-a2e16797.js');
16
- var core$1 = require('@hhgtech/icons/core');
17
- var index$2 = require('./index-edfd48a3.js');
18
- var ChevronDown = require('./ChevronDown-daab0252.js');
19
- var paths = require('./paths-07bb96ba.js');
20
- require('./index-d664f4c8.js');
16
+ var utils = require('./utils-1bdc7913.js');
17
+ var index = require('./index-e1e5960a.js');
18
+ var index$2 = require('./index-52f6caec.js');
19
+ var ChevronDown = require('./ChevronDown-b4e1df18.js');
20
+ var tslib_es6 = require('./tslib.es6-22cfb2d1.js');
21
+ var arrow = require('@hhgtech/icons/arrow');
22
+ var index$3 = require('./index-b9297c0a.js');
23
+ var paths = require('./paths-c45bd44a.js');
24
+ var index$4 = require('./index-785cbff4.js');
25
+ require('./index-a53f780c.js');
21
26
  require('date-fns/locale');
22
- require('./index-4270d6cf.js');
23
- require('./Locale-a078bb23.js');
27
+ require('./index-83dff660.js');
28
+ require('./Locale-e037603c.js');
24
29
  require('./constantsSite.js');
25
30
  require('./constantsDomainLocales.js');
26
31
  require('./constantsRiskScreener.js');
@@ -28,9 +33,10 @@ require('./constantsIsProduction.js');
28
33
  require('./miscCookieHelper.js');
29
34
  require('react-loading-skeleton');
30
35
  require('string-format');
31
- require('./translationsContext-a3ccdf71.js');
32
- require('./tslib.es6-96c97478.js');
33
- require('./index-4dcc592d.js');
36
+ require('./translationsContext-3fd98577.js');
37
+ require('./index-1ab48613.js');
38
+ require('./index.styles-45a49aa7.js');
39
+ require('./shared-476b5033.js');
34
40
 
35
41
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
36
42
 
@@ -225,9 +231,9 @@ function reducer(state, action) {
225
231
  case ActionTypes.ClearInputSearch:
226
232
  return Object.assign(Object.assign({}, state), { focused: 'search', searchKeywords: '' });
227
233
  case ActionTypes.SelectLocation:
228
- return Object.assign(Object.assign({}, state), { focused: 'none', selectedLocation: action.payload, searchLocationKeywords: action.payload.name });
234
+ return Object.assign(Object.assign({}, state), { focused: 'none', selectedLocation: action.payload, searchLocationKeywords: action.payload.name, searchResults: {} });
229
235
  case ActionTypes.SelectSpecialty:
230
- return Object.assign(Object.assign({}, state), { focused: 'none', selectedSpecialty: action.payload });
236
+ return Object.assign(Object.assign({}, state), { focused: 'none', selectedSpecialty: action.payload, searchResults: {} });
231
237
  case ActionTypes.SelectSearchResult:
232
238
  return Object.assign(Object.assign({}, state), { searchKeywords: action.payload.name, isMobileModalOpened: false, focused: 'none', navigateTo: action.payload.url });
233
239
  case ActionTypes.FetchCitiesStart:
@@ -305,7 +311,7 @@ const StyleSearchInputsWrapper = styled__default["default"].div `
305
311
  gap: 12px;
306
312
  }
307
313
  `;
308
- const StyleResultWrapper$2 = styled__default["default"].div `
314
+ const StyleResultWrapper = styled__default["default"].div `
309
315
  position: absolute;
310
316
  top: calc(100% + 2px);
311
317
  width: 100%;
@@ -321,7 +327,7 @@ const StyleResultWrapper$2 = styled__default["default"].div `
321
327
  `;
322
328
 
323
329
  const StyledSearchResultWrapper = styled__default["default"].div ``;
324
- const StyleResultHeader = styled__default["default"].div `
330
+ styled__default["default"].div `
325
331
  display: flex;
326
332
  justify-content: space-between;
327
333
  align-item: center;
@@ -353,9 +359,12 @@ const StyleResultItem = styled__default["default"].div `
353
359
  align-items: center;
354
360
  cursor: pointer;
355
361
 
356
- &:hover {
357
- background-color: ${miscTheme.theme.colors.blue50};
362
+ ${utils.MediaQueries.mbUp} {
363
+ &:hover {
364
+ background-color: ${miscTheme.theme.colors.blue50};
365
+ }
358
366
  }
367
+
359
368
  .image-item {
360
369
  flex: 0 0 48px;
361
370
  width: 48px;
@@ -422,8 +431,12 @@ styled__default["default"].div `
422
431
  }
423
432
  `;
424
433
 
425
- const SearchResult = ({ state, type, results, location, isLoading, typeInformation, clientSlug = '', dispatch, }) => {
426
- const { locale, t } = index$1.useTranslations();
434
+ const SearchResult = ({ state, type, results,
435
+ // location,
436
+ isLoading, typeInformation,
437
+ // clientSlug = '',
438
+ dispatch, }) => {
439
+ const { t } = index$1.useTranslations();
427
440
  const { selectedLocation } = state;
428
441
  const typeSlug = React.useMemo(() => typeInformation[type].slug, [typeInformation, type]);
429
442
  const handleOnClick = (item) => {
@@ -444,40 +457,37 @@ const SearchResult = ({ state, type, results, location, isLoading, typeInformati
444
457
  });
445
458
  }
446
459
  };
447
- const handleSeeAll = () => {
448
- let url = `/${selectedLocation.slug}/${typeSlug}`;
449
- const slugClientUrl = constants.MAPPING_CLIENT_WITH_SLUG[locale][clientSlug];
450
- if (slugClientUrl) {
451
- url += `/${slugClientUrl}`;
452
- }
453
- if ((type === 'doctor' || type === 'hospital') &&
454
- state.selectedSpecialty.id > 0) {
455
- url += `?specialtyId=${state.selectedSpecialty.id}`;
456
- }
457
- if (url) {
458
- dispatch({ type: ActionTypes.NavigateTo, payload: url });
459
- }
460
- };
460
+ // const handleSeeAll = () => {
461
+ // let url = `/${selectedLocation.slug}/${typeSlug}`
462
+ // const slugClientUrl = MAPPING_CLIENT_WITH_SLUG[locale][clientSlug]
463
+ // if (slugClientUrl) {
464
+ // url += `/${slugClientUrl}`
465
+ // }
466
+ // if (
467
+ // (type === 'doctor' || type === 'hospital') &&
468
+ // state.selectedSpecialty.id > 0
469
+ // ) {
470
+ // url += `?specialtyId=${state.selectedSpecialty.id}`
471
+ // }
472
+ // if (url) {
473
+ // dispatch({ type: ActionTypes.NavigateTo, payload: url })
474
+ // }
475
+ // }
476
+ if (results === null)
477
+ return null;
461
478
  return (React__default["default"].createElement(StyledSearchResultWrapper, null,
462
- React__default["default"].createElement(StyleResultHeader, null,
463
- React__default["default"].createElement("div", { className: "title" }, t('booking.searchResult.description', {
464
- search_type: typeInformation[type].name,
465
- search_location: location,
466
- })),
467
- results.length > 0 && (React__default["default"].createElement("div", { className: "btn-see-all", onClick: handleSeeAll }, t('home.seeAll')))),
468
- React__default["default"].createElement(StyleResultBody, null,
469
- isLoading &&
470
- Array(3)
471
- .fill(undefined)
472
- .map((_, i) => (React__default["default"].createElement(StyleResultItem, { key: type + 'loading' + i, className: i === 2 ? 'last-item' : '' },
473
- React__default["default"].createElement("div", { className: "image-item" },
474
- React__default["default"].createElement(core.Skeleton, { height: 48, circle: true, mb: "xl", animate: true })),
475
- React__default["default"].createElement("div", { className: "infor" },
476
- React__default["default"].createElement("div", { className: "title" },
477
- React__default["default"].createElement(core.Skeleton, { height: 8, mt: 10, radius: "xl", animate: true })),
478
- React__default["default"].createElement("div", { className: "description" },
479
- React__default["default"].createElement("div", { className: "sub-description" },
480
- React__default["default"].createElement(core.Skeleton, { height: 8, mt: 10, radius: "xl", width: "80%", animate: true }))))))),
479
+ React__default["default"].createElement(StyleResultBody, { className: "search-results__body" },
480
+ isLoading && (React__default["default"].createElement("div", { className: "skeleton-result" }, Array(3)
481
+ .fill(undefined)
482
+ .map((_, i) => (React__default["default"].createElement(StyleResultItem, { key: type + 'loading' + i, className: i === 2 ? 'last-item' : '' },
483
+ React__default["default"].createElement("div", { className: "image-item" },
484
+ React__default["default"].createElement(core.Skeleton, { height: 48, circle: true, mb: "xl", animate: true })),
485
+ React__default["default"].createElement("div", { className: "infor" },
486
+ React__default["default"].createElement("div", { className: "title" },
487
+ React__default["default"].createElement(core.Skeleton, { height: 8, mt: 10, radius: "xl", animate: true })),
488
+ React__default["default"].createElement("div", { className: "description" },
489
+ React__default["default"].createElement("div", { className: "sub-description" },
490
+ React__default["default"].createElement(core.Skeleton, { height: 8, mt: 10, radius: "xl", width: "80%", animate: true }))))))))),
481
491
  !isLoading && results && results.length > 0 && (React__default["default"].createElement(React__default["default"].Fragment, null, results.map((item, index) => {
482
492
  var _a, _b;
483
493
  const isLastItem = (results.length > 4 && index === 3) ||
@@ -495,7 +505,7 @@ const SearchResult = ({ state, type, results, location, isLoading, typeInformati
495
505
  if (index >= 4) {
496
506
  return React__default["default"].createElement(React__default["default"].Fragment, null);
497
507
  }
498
- return (React__default["default"].createElement(StyleResultItem, { key: item.id, className: isLastItem ? 'last-item' : '', onClick: () => handleOnClick(item) },
508
+ return (React__default["default"].createElement(StyleResultItem, { key: item.id, className: core.clsx(isLastItem ? 'last-item' : '', 'result-item'), onClick: () => handleOnClick(item) },
499
509
  React__default["default"].createElement("div", { className: "image-item" },
500
510
  React__default["default"].createElement("img", { src: item.logo || item.avatar, alt: item.name })),
501
511
  React__default["default"].createElement("div", { className: "infor" },
@@ -504,7 +514,14 @@ const SearchResult = ({ state, type, results, location, isLoading, typeInformati
504
514
  typeInformation[type].icon,
505
515
  React__default["default"].createElement("div", { className: "sub-description" }, subDescription)))));
506
516
  }))),
507
- !isLoading && (results === null || results === void 0 ? void 0 : results.length) === 0 && (React__default["default"].createElement(index$2.Text, { size: "sm", color: miscTheme.theme.colors.gray400 }, t('booking.searchBar.noResults'))))));
517
+ !isLoading && (results === null || results === void 0 ? void 0 : results.length) === 0 && (React__default["default"].createElement(index$2.Text, { size: "sm", color: miscTheme.theme.colors.gray400, className: "noresult-block" }, t('booking.searchBar.noResults'))))));
518
+ };
519
+
520
+ const SearchResultContent = ({ state, type, isLoading, clientSlug, typeInformation, dispatch, }) => {
521
+ var _a;
522
+ if (state.focused !== 'search')
523
+ return null;
524
+ return (React__default["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 }));
508
525
  };
509
526
 
510
527
  const StyleSearchSpecialtyWrapper = styled__default["default"].div `
@@ -517,7 +534,7 @@ const StyleSearchSpecialtyWrapper = styled__default["default"].div `
517
534
  gap: 12px;
518
535
  }
519
536
  `;
520
- const StyleResultWrapper$1 = styled__default["default"].div `
537
+ styled__default["default"].div `
521
538
  position: absolute;
522
539
  top: calc(100% + 2px);
523
540
  width: calc(100% + 100px);
@@ -608,88 +625,181 @@ const HospitalIcon = () => (React__default["default"].createElement("svg", { wid
608
625
  const SpecialtyIcon = () => (React__default["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16" },
609
626
  React__default["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" })));
610
627
 
611
- const SearchSpecialty = ({ state, isMobile, debouncedFetchSearchResults, selectedLocation, onSpecialtyClick, dispatch, }) => {
612
- var _a;
628
+ const CustomSelectItem$1 = React.forwardRef((_a, ref) => {
629
+ var { label, value, specialty } = _a, others = tslib_es6.__rest(_a, ["label", "value", "specialty"]);
630
+ return (React__default["default"].createElement("div", Object.assign({ ref: ref }, others),
631
+ React__default["default"].createElement(StyledSpecialtyItem, { key: value,
632
+ // onClick={(evt) => {
633
+ // evt.nativeEvent.stopImmediatePropagation()
634
+ // if (onSpecialtyClick) {
635
+ // onSpecialtyClick({
636
+ // ...specialty,
637
+ // total_doctor: 0,
638
+ // })
639
+ // }
640
+ // }}
641
+ role: "button", tabIndex: 0, "aria-label": `Select ${label} as location` },
642
+ React__default["default"].createElement("div", { className: "image-item" }, specialty.thumbnail ? (React__default["default"].createElement("img", { src: specialty.thumbnail, alt: label })) : (React__default["default"].createElement(SpecialtyIcon, null))),
643
+ React__default["default"].createElement(core.Text, { size: "md" }, label))));
644
+ });
645
+
646
+ const SearchSpecialty = ({ state,
647
+ // debouncedFetchSearchResults,
648
+ onSpecialtyClick, dispatch, }) => {
613
649
  const { t, locale } = index$1.useTranslations();
614
650
  const inputSpecialtyWrapperRef = React.useRef(null);
615
651
  const slugs = React.useMemo(() => constants.LOCALIZED_SLUGS[locale], [locale]);
616
- const styleSpecialties = React.useMemo(() => {
617
- return {
618
- wrapper: {
619
- '&:after': {
620
- content: '""',
621
- width: '1px',
622
- height: '20px',
623
- backgroundColor: '#E4E8EC',
624
- position: 'absolute',
625
- right: 0,
626
- top: '13px',
627
- },
628
- },
629
- input: {
630
- border: isMobile ? 'border: 1px solid #d9d9d9' : 'none',
631
- height: isMobile ? '40px' : '46px !important',
632
- paddingRight: '30px',
633
- '&:focus': {
634
- boxShadow: isMobile ? 'box-shadow: 0px 0px 0px 2px #91caff' : 'none',
635
- },
636
- },
637
- rightSection: {
638
- width: '30px',
639
- svg: {
640
- fontSize: '20px',
641
- },
642
- },
643
- };
644
- }, [isMobile]);
645
- const handleSearchSpecialtyInputChange = React.useCallback(function handleSearchSpecialtyInputChange(value) {
646
- // dispatch({ type: ActionTypes.ChangeInputLocation, payload: value })
647
- // if (value.trim().length > SEARCH_KEYWORD_MIN_LENGTH[state.locale]) {
648
- // debouncedFetchSearchResults(value.trim())
649
- // } else {
650
- // debouncedFetchSearchResults.cancel()
651
- // dispatch({ type: ActionTypes.DisplayInitialCities })
652
- // }
653
- console.log(value);
654
- }, [debouncedFetchSearchResults, dispatch]);
652
+ // const styleSpecialties = useMemo(() => {
653
+ // return {
654
+ // wrapper: {
655
+ // '&:after': {
656
+ // content: '""',
657
+ // width: '1px',
658
+ // height: '20px',
659
+ // backgroundColor: '#E4E8EC',
660
+ // position: 'absolute',
661
+ // right: 0,
662
+ // top: '13px',
663
+ // },
664
+ // },
665
+ // input: {
666
+ // border: isMobile ? 'border: 1px solid #d9d9d9' : 'none',
667
+ // height: isMobile ? '40px' : '46px !important',
668
+ // paddingRight: '30px',
669
+ // '&:focus': {
670
+ // boxShadow: isMobile ? 'box-shadow: 0px 0px 0px 2px #91caff' : 'none',
671
+ // },
672
+ // },
673
+ // rightSection: {
674
+ // width: '30px',
675
+ // svg: {
676
+ // fontSize: '20px',
677
+ // },
678
+ // },
679
+ // } as any
680
+ // }, [isMobile])
681
+ // const handleSearchSpecialtyInputChange = useCallback(
682
+ // function handleSearchSpecialtyInputChange(value: string) {
683
+ // // dispatch({ type: ActionTypes.ChangeInputLocation, payload: value })
684
+ // // if (value.trim().length > SEARCH_KEYWORD_MIN_LENGTH[state.locale]) {
685
+ // // debouncedFetchSearchResults(value.trim())
686
+ // // } else {
687
+ // // debouncedFetchSearchResults.cancel()
688
+ // // dispatch({ type: ActionTypes.DisplayInitialCities })
689
+ // // }
690
+ // console.log(value)
691
+ // },
692
+ // [debouncedFetchSearchResults, dispatch],
693
+ // )
655
694
  useOutsideClick.useOutsideClick(inputSpecialtyWrapperRef, () => {
656
695
  dispatch({ type: ActionTypes.ClickOutsideInputSpecialty });
657
696
  });
697
+ const specialtyData = [
698
+ {
699
+ name: t('booking.searchBar.allSpecialties'),
700
+ id: -1,
701
+ thumbnail: '',
702
+ total_doctor: 0,
703
+ slug: slugs.SPECIALTIES,
704
+ },
705
+ ...state.allSpecialties,
706
+ ];
707
+ const selectValue = state.selectedSpecialty && typeof state.selectedSpecialty.id === 'number'
708
+ ? String(state.selectedSpecialty.id)
709
+ : null;
658
710
  return (React__default["default"].createElement(StyleSearchSpecialtyWrapper, { ref: inputSpecialtyWrapperRef },
659
- React__default["default"].createElement(core.Input.Wrapper, null,
660
- React__default["default"].createElement(core.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["default"].createElement(ChevronDown.ChevronDown, null), styles: styleSpecialties, onFocus: () => dispatch({ type: ActionTypes.FocusInputSpecialty }), onChange: (event) => {
661
- handleSearchSpecialtyInputChange(event.target.value);
662
- } })),
663
- state.focused === 'specialty' && (React__default["default"].createElement(StyleResultWrapper$1, null,
664
- React__default["default"].createElement(StyledSpecialtyItem, { key: "all-location", role: "button", tabIndex: 0, onClick: () => {
665
- if (onSpecialtyClick) {
666
- onSpecialtyClick({
667
- name: t('booking.searchBar.allSpecialties'),
668
- id: -1,
669
- thumbnail: '',
670
- total_doctor: 0,
671
- slug: slugs.SPECIALTIES,
672
- });
673
- }
674
- } },
675
- React__default["default"].createElement("div", { className: "image-item" },
676
- React__default["default"].createElement(SpecialtyIcon, null)),
677
- React__default["default"].createElement(index$2.Text, { size: "md" }, t('booking.searchBar.allSpecialties'))),
678
- state.allSpecialties.map((specialty) => (React__default["default"].createElement(StyledSpecialtyItem, { key: specialty.id, onClick: (evt) => {
679
- evt.nativeEvent.stopImmediatePropagation();
680
- if (onSpecialtyClick) {
681
- onSpecialtyClick(Object.assign(Object.assign({}, specialty), { total_doctor: 0 }));
682
- }
683
- }, role: "button", tabIndex: 0, "aria-label": `Select ${specialty.name} as location`, isSelected: (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) === specialty.id },
684
- React__default["default"].createElement("div", { className: "image-item" },
685
- React__default["default"].createElement("img", { src: specialty.thumbnail, alt: specialty.name })),
686
- React__default["default"].createElement(index$2.Text, { size: "md" }, specialty.name))))))));
711
+ React__default["default"].createElement(core.Select, { value: selectValue, placeholder: t('booking.searchPopup.specialties'), searchable: true, nothingFound: t('common.noResult'), maxDropdownHeight: 340, dropdownPosition: "bottom", data: specialtyData.map((specialty) => ({
712
+ value: String(specialty.id),
713
+ label: specialty.name,
714
+ specialty,
715
+ })), rightSection: React__default["default"].createElement(ChevronDown.ChevronDown, { style: { width: 20, height: 20 } }), styles: (theme) => ({
716
+ dropdown: {
717
+ left: '0 !important',
718
+ border: 0,
719
+ marginTop: -7,
720
+ borderRadius: 0,
721
+ '& [data-mantine-scrollbar]': {
722
+ '&[data-orientation="vertical"]': {
723
+ width: '6px',
724
+ },
725
+ },
726
+ [theme.fn.largerThan('sm')]: {
727
+ minWidth: 264,
728
+ width: `264px !important`,
729
+ },
730
+ },
731
+ item: {
732
+ padding: 0,
733
+ '&[data-selected]': {
734
+ '&, &:hover': {
735
+ backgroundColor: 'transparent',
736
+ color: 'inherit',
737
+ },
738
+ },
739
+ '&[data-hovered]': {
740
+ backgroundColor: 'transparent',
741
+ },
742
+ },
743
+ input: {
744
+ '&:not(.mantine-Textarea-input)': {
745
+ height: 40,
746
+ fontSize: core.rem(14),
747
+ paddingLeft: 14,
748
+ paddingRight: 14,
749
+ [theme.fn.largerThan('sm')]: {
750
+ height: 46,
751
+ fontSize: core.rem(16),
752
+ paddingLeft: 16,
753
+ paddingRight: 16,
754
+ borderColor: 'transparent',
755
+ },
756
+ '&:focus, &:focus-within': {
757
+ outline: 'none',
758
+ boxShadow: 'none',
759
+ },
760
+ },
761
+ },
762
+ itemsWrapper: {
763
+ padding: 0,
764
+ },
765
+ wrapper: {
766
+ [theme.fn.largerThan('sm')]: {
767
+ position: 'relative',
768
+ '&:after': {
769
+ content: '""',
770
+ width: '1px',
771
+ height: '20px',
772
+ backgroundColor: '#E4E8EC',
773
+ position: 'absolute',
774
+ right: 0,
775
+ top: '13px',
776
+ },
777
+ },
778
+ },
779
+ }), itemComponent: CustomSelectItem$1, filter: (value, item) => item.label.toLowerCase().includes(value.toLowerCase().trim()), onChange: (value) => {
780
+ if (value == null)
781
+ return;
782
+ const specialty = specialtyData.find((i) => String(i.id) === value);
783
+ if (!specialty)
784
+ return;
785
+ onSpecialtyClick(Object.assign(Object.assign(Object.assign({}, specialty), { thumbnail: specialty.thumbnail || '' }), (Number(value) !== -1 && {
786
+ total_doctor: 0,
787
+ })));
788
+ } })));
687
789
  };
688
790
 
689
- const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, hideSpecialtySelection = false, clientSlug = '', focusSearchInput, onSearch, onEnterSearch, dispatch, }) => {
690
- var _a;
791
+ const SearchInputs = React.forwardRef(({ state, type, isMobile, isLoading, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, hideSpecialtySelection = false, clientSlug = '', onSearch, onFocusInput, onEnterSearch, dispatch, onlyShowSearchBox, onChangeSpecialty, }, ref) => {
691
792
  const { t } = index$1.useTranslations();
793
+ const theme = core.useMantineTheme();
692
794
  const inputSearchWrapperRef = React.useRef(null);
795
+ const internalInputRef = React.useRef(null);
796
+ React.useImperativeHandle(ref, () => ({
797
+ focus: () => {
798
+ var _a;
799
+ (_a = internalInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
800
+ },
801
+ }));
802
+ const hasSearchIcon = !onlyShowSearchBox;
693
803
  const gaAttributes = React.useMemo(() => {
694
804
  if (trackingAttributes) {
695
805
  return {
@@ -703,20 +813,16 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
703
813
  }
704
814
  }, [trackingAttributes]);
705
815
  const placeholderSearch = React.useMemo(() => {
706
- if (type === 'doctor') {
816
+ if (type === 'doctor')
707
817
  return t('booking.searchBar.placeholder.doctor');
708
- }
709
- if (type === 'service') {
818
+ if (type === 'service')
710
819
  return t('booking.searchBar.placeholder.service');
711
- }
712
- if (type === 'hospital') {
820
+ if (type === 'hospital')
713
821
  return t('booking.searchBar.placeholder.hospital');
714
- }
715
- if (type === 'specialty') {
822
+ if (type === 'specialty')
716
823
  return t('booking.searchBar.placeholder.specialty');
717
- }
718
824
  return '';
719
- }, [type]);
825
+ }, [type, t]);
720
826
  const styleInputWrapper = React.useMemo(() => {
721
827
  return {
722
828
  root: {
@@ -726,7 +832,11 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
726
832
  display: 'none',
727
833
  },
728
834
  input: {
729
- paddingLeft: '48px',
835
+ paddingLeft: hasSearchIcon ? 48 : 16,
836
+ [theme.fn.smallerThan('sm')]: {
837
+ height: 40,
838
+ fontSize: core.rem(14),
839
+ },
730
840
  },
731
841
  '.mantine-Input-icon': {
732
842
  left: '0',
@@ -734,22 +844,22 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
734
844
  },
735
845
  },
736
846
  };
737
- }, []);
847
+ }, [hasSearchIcon, theme]);
738
848
  const styleInput = React.useMemo(() => {
739
849
  return {
740
850
  icon: {
741
- left: '165px',
851
+ left: '205px',
742
852
  },
743
853
  input: {
744
854
  color: '#262626',
745
855
  '&[data-with-icon="true"]': {
746
- paddingLeft: '205px',
856
+ paddingLeft: '245px',
747
857
  paddingRight: '16px',
748
858
  },
749
859
  },
750
860
  rightSection: {
751
861
  left: 0,
752
- width: '165px',
862
+ width: '205px',
753
863
  padding: '1px',
754
864
  },
755
865
  };
@@ -762,7 +872,7 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
762
872
  };
763
873
  }, []);
764
874
  useOutsideClick.useOutsideClick(inputSearchWrapperRef, () => {
765
- dispatch({ type: ActionTypes.ClickOutsideInputSearch });
875
+ !isMobile && dispatch({ type: ActionTypes.ClickOutsideInputSearch });
766
876
  });
767
877
  const handleSearchInputChange = React.useCallback(function handleSearchInputChange(value) {
768
878
  dispatch({ type: ActionTypes.ChangeInputSearch, payload: value });
@@ -774,40 +884,84 @@ const SearchInputs = ({ state, type, isMobile, isLoading, initalSearchValue, typ
774
884
  value.trim().length === 0) {
775
885
  debouncedFetchSearchResults(value.trim(), state, type, clientSlug);
776
886
  }
777
- else {
778
- debouncedFetchSearchResults.cancel();
779
- dispatch({ type: ActionTypes.DisplayInitialSearchResults });
780
- }
781
- }, [dispatch, state, type]);
887
+ }, [
888
+ dispatch,
889
+ state,
890
+ type,
891
+ initalSearchValue,
892
+ debouncedFetchSearchResults,
893
+ clientSlug,
894
+ onSearch,
895
+ ]);
782
896
  const handleSpecialtyClick = React.useCallback(function handleSpecialtyClick(specialty) {
897
+ var _a;
783
898
  dispatch({ type: ActionTypes.SelectSpecialty, payload: specialty });
784
- focusSearchInput();
785
- }, [dispatch]);
899
+ onChangeSpecialty === null || onChangeSpecialty === void 0 ? void 0 : onChangeSpecialty(specialty);
900
+ !isMobile && ((_a = internalInputRef.current) === null || _a === void 0 ? void 0 : _a.focus());
901
+ }, [dispatch, onChangeSpecialty]);
786
902
  const inputOnKeyDown = React.useCallback((e) => {
787
- if (e.keyCode === 13) {
903
+ if (e.key === 'Enter') {
788
904
  e.stopPropagation();
789
905
  e.preventDefault();
790
906
  onEnterSearch && onEnterSearch();
791
907
  }
792
908
  }, [onEnterSearch]);
793
909
  return (React__default["default"].createElement(StyleSearchInputsWrapper, { ref: inputSearchWrapperRef }, type === 'specialty' ? (React__default["default"].createElement(core.Input.Wrapper, { styles: styleInputWrapper },
794
- React__default["default"].createElement(core.Input, { icon: React__default["default"].createElement(core$1.Search, null), size: isMobile ? 'md' : 'lg', placeholder: placeholderSearch, styles: styleInputSpecialties, value: state.searchKeywords, onFocus: () => dispatch({ type: ActionTypes.FocusInputSearchSpecialty }), onChange: (event) => {
910
+ React__default["default"].createElement(core.Input, { ref: internalInputRef, icon: hasSearchIcon && React__default["default"].createElement(core$1.Search, null), size: isMobile ? 'md' : 'lg', placeholder: placeholderSearch, styles: styleInputSpecialties, value: state.searchKeywords, onFocus: () => dispatch({ type: ActionTypes.FocusInputSearchSpecialty }), onChange: (event) => {
795
911
  handleSearchInputChange(event.target.value);
796
912
  }, onKeyDown: inputOnKeyDown }))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
797
913
  type === 'service' ? (React__default["default"].createElement(core.Input.Wrapper, { styles: styleInputWrapper },
798
- React__default["default"].createElement(core.Input, { icon: React__default["default"].createElement(core$1.Search, null), size: isMobile ? 'md' : 'lg', name: "search-results", placeholder: placeholderSearch, onFocus: () => dispatch({ type: ActionTypes.FocusInputSearch }), value: state.searchKeywords, onChange: (event) => {
914
+ React__default["default"].createElement(core.Input, { ref: internalInputRef, icon: hasSearchIcon && React__default["default"].createElement(core$1.Search, null), size: isMobile ? 'md' : 'lg', name: "search-results", placeholder: placeholderSearch, onFocus: () => {
915
+ dispatch({ type: ActionTypes.FocusInputSearch });
916
+ onFocusInput === null || onFocusInput === void 0 ? void 0 : onFocusInput();
917
+ }, value: state.searchKeywords, onChange: (event) => {
799
918
  handleSearchInputChange(event.target.value);
800
919
  }, onKeyDown: inputOnKeyDown }))) : (React__default["default"].createElement(React__default["default"].Fragment, null, isMobile && !hideSpecialtySelection ? (React__default["default"].createElement(React__default["default"].Fragment, null,
801
- React__default["default"].createElement(SearchSpecialty, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, onSpecialtyClick: handleSpecialtyClick }),
920
+ !onlyShowSearchBox && (React__default["default"].createElement(SearchSpecialty, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, onSpecialtyClick: handleSpecialtyClick })),
802
921
  React__default["default"].createElement(core.Input.Wrapper, { styles: styleInputWrapper },
803
- React__default["default"].createElement(core.Input, { icon: React__default["default"].createElement(core$1.Search, null), size: "md", placeholder: placeholderSearch, value: state.searchKeywords, name: "search-results", onFocus: () => dispatch({ type: ActionTypes.FocusInputSearch }), onChange: (event) => {
922
+ React__default["default"].createElement(core.Input, { ref: internalInputRef, icon: hasSearchIcon && React__default["default"].createElement(core$1.Search, null), size: "md", placeholder: placeholderSearch, value: state.searchKeywords, name: "search-results", onFocus: () => {
923
+ dispatch({ type: ActionTypes.FocusInputSearch });
924
+ onFocusInput === null || onFocusInput === void 0 ? void 0 : onFocusInput();
925
+ }, onChange: (event) => {
804
926
  handleSearchInputChange(event.target.value);
805
927
  }, onKeyDown: inputOnKeyDown })))) : (React__default["default"].createElement(core.Input.Wrapper, { styles: styleInputWrapper, className: hideSpecialtySelection ? 'hide-specialty-selection' : '' },
806
- React__default["default"].createElement(core.Input, Object.assign({ icon: React__default["default"].createElement(core$1.Search, null), size: "lg", placeholder: placeholderSearch, styles: styleInput, name: "search-results", autoComplete: "off", value: state.searchKeywords, onChange: (event) => {
928
+ React__default["default"].createElement(core.Input, Object.assign({ ref: internalInputRef, icon: hasSearchIcon && React__default["default"].createElement(core$1.Search, null), size: "lg", placeholder: placeholderSearch, styles: styleInput, name: "search-results", autoComplete: "off", value: state.searchKeywords, onChange: (event) => {
807
929
  handleSearchInputChange(event.target.value);
808
- }, onFocus: () => dispatch({ type: ActionTypes.FocusInputSearch }), onKeyDown: inputOnKeyDown }, gaAttributes, { rightSection: hideSpecialtySelection ? (React__default["default"].createElement(React__default["default"].Fragment, null)) : (React__default["default"].createElement(SearchSpecialty, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, onSpecialtyClick: handleSpecialtyClick })) })))))),
809
- state.focused === 'search' && (React__default["default"].createElement(StyleResultWrapper$2, null,
810
- React__default["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 })))))));
930
+ }, onFocus: () => {
931
+ dispatch({ type: ActionTypes.FocusInputSearch });
932
+ onFocusInput === null || onFocusInput === void 0 ? void 0 : onFocusInput();
933
+ }, onKeyDown: inputOnKeyDown }, gaAttributes, { rightSection: hideSpecialtySelection ? (React__default["default"].createElement(React__default["default"].Fragment, null)) : (!onlyShowSearchBox && (React__default["default"].createElement(SearchSpecialty, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, onSpecialtyClick: handleSpecialtyClick }))) })))))),
934
+ !isMobile && (React__default["default"].createElement(StyleResultWrapper, null,
935
+ React__default["default"].createElement(SearchResultContent, { type: type, state: state, dispatch: dispatch, isLoading: isLoading, typeInformation: typeInformation, clientSlug: clientSlug })))))));
936
+ });
937
+ SearchInputs.displayName = 'SearchInputs';
938
+
939
+ const ModalSearchResult = (_a) => {
940
+ var { searchInputEle, closeModal, children } = _a, props = tslib_es6.__rest(_a, ["searchInputEle", "closeModal", "children"]);
941
+ const theme = core.useMantineTheme();
942
+ return (React__default["default"].createElement(index$3.Modal, Object.assign({}, props, { zIndex: 310, fullScreen: true, styles: {
943
+ content: {
944
+ borderRadius: 0,
945
+ height: '100%',
946
+ '.search-results__body': { padding: 0 },
947
+ '.result-item': {
948
+ paddingLeft: 16,
949
+ paddingRight: 16,
950
+ },
951
+ '.noresult-block': {
952
+ padding: 16,
953
+ },
954
+ '.skeleton-result': {
955
+ padding: 16,
956
+ },
957
+ },
958
+ header: { display: 'none' },
959
+ } }),
960
+ React__default["default"].createElement(core.Stack, { spacing: 16, sx: { paddingTop: 16 } },
961
+ React__default["default"].createElement(core.Flex, { align: 'center', gap: 12 },
962
+ React__default["default"].createElement(arrow.ArrowLeft, { size: 28, onClick: closeModal, color: theme.fn.primaryColor() }),
963
+ React__default["default"].createElement(core.Box, { sx: { width: '100%' } }, searchInputEle)),
964
+ children)));
811
965
  };
812
966
 
813
967
  const StyleSearchLocationWrapper = styled__default["default"].div `
@@ -820,7 +974,7 @@ const StyleSearchLocationWrapper = styled__default["default"].div `
820
974
  gap: 12px;
821
975
  }
822
976
  `;
823
- const StyleResultWrapper = styled__default["default"].div `
977
+ styled__default["default"].div `
824
978
  position: absolute;
825
979
  top: calc(100% + 2px);
826
980
  width: 100%;
@@ -843,17 +997,6 @@ const StyledLocationItem = styled__default["default"].div `
843
997
  gap: 14px;
844
998
  overflow: hidden;
845
999
 
846
- ${({ isSelected }) => isSelected &&
847
- `
848
- &::after {
849
- content: ${utils$1.checkMarkIconUrl};
850
- top: 50%;
851
- right: 18px;
852
- position: absolute;
853
- transform: translateY(-50%);
854
- }
855
- `}
856
-
857
1000
  & + li::before {
858
1001
  content: '';
859
1002
  position: absolute;
@@ -888,9 +1031,29 @@ const StyledPinIcon = styled__default["default"](utils$1.PinIcon) `
888
1031
  flex: 0 0 12px;
889
1032
  `;
890
1033
 
891
- const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, selectedLocation, trackingAttributes, onLocationClick, dispatch, }) => {
1034
+ const CustomSelectItem = React.forwardRef((_a, ref) => {
1035
+ var { label, value } = _a, others = tslib_es6.__rest(_a, ["label", "value"]);
1036
+ return (React__default["default"].createElement("div", Object.assign({ ref: ref }, others),
1037
+ React__default["default"].createElement(StyledLocationItem, { key: value, role: "button", tabIndex: 0, "aria-label": `Select ${label} as location`, className: "location-item" },
1038
+ React__default["default"].createElement(StyledPinIcon, { color: miscTheme.theme.colors.neutral400 }),
1039
+ React__default["default"].createElement(core.Text, { size: "md" }, label))));
1040
+ });
1041
+
1042
+ const SearchLocation = ({ state, debouncedFetchCitiesByKeyword, selectedLocation, trackingAttributes, onLocationClick, dispatch, }) => {
1043
+ var _a;
892
1044
  const { t, locale } = index$1.useTranslations();
893
1045
  const inputLocationWrapperRef = React.useRef(null);
1046
+ const citiesData = React.useMemo(() => {
1047
+ var _a;
1048
+ return [
1049
+ {
1050
+ name: t('booking.searchBar.allLocations'),
1051
+ id: constants.ID_OPTION_ALL_LOCATION,
1052
+ slug: (_a = constants.LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.ALL,
1053
+ },
1054
+ ...state.cities,
1055
+ ];
1056
+ }, [state.cities, t, locale]);
894
1057
  const gaAttributes = React.useMemo(() => {
895
1058
  if (trackingAttributes) {
896
1059
  return {
@@ -899,9 +1062,7 @@ const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, select
899
1062
  'data-event-label': trackingAttributes.dataEventLabel,
900
1063
  };
901
1064
  }
902
- else {
903
- return {};
904
- }
1065
+ return {};
905
1066
  }, [trackingAttributes]);
906
1067
  const handleSearchLocationInputChange = React.useCallback(function handleSearchLocationInputChange(value) {
907
1068
  dispatch({ type: ActionTypes.ChangeInputLocation, payload: value });
@@ -912,37 +1073,90 @@ const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, select
912
1073
  debouncedFetchCitiesByKeyword.cancel();
913
1074
  dispatch({ type: ActionTypes.DisplayInitialCities });
914
1075
  }
915
- }, [debouncedFetchCitiesByKeyword, dispatch]);
1076
+ }, [debouncedFetchCitiesByKeyword, dispatch, state.locale]);
916
1077
  useOutsideClick.useOutsideClick(inputLocationWrapperRef, () => {
917
1078
  dispatch({ type: ActionTypes.ClickOutsideInputLocation });
918
1079
  });
1080
+ const stateValue = (_a = selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) !== null && _a !== void 0 ? _a : null;
1081
+ const defaultValue = stateValue === null ? undefined : String(stateValue);
919
1082
  return (React__default["default"].createElement(StyleSearchLocationWrapper, { ref: inputLocationWrapperRef },
920
- React__default["default"].createElement(core.Input.Wrapper, null,
921
- React__default["default"].createElement(core.Input, Object.assign({ size: isMobile ? 'md' : 'lg', placeholder: "Search location", value: state.searchLocationKeywords, onFocus: () => dispatch({ type: ActionTypes.FocusInputLocation }), onChange: (event) => {
922
- handleSearchLocationInputChange(event.target.value);
923
- } }, gaAttributes))),
924
- state.focused === 'location' && (React__default["default"].createElement(StyleResultWrapper, null,
925
- React__default["default"].createElement(core.ScrollArea, { scrollbarSize: 6, styles: { viewport: { maxHeight: 400 } } },
926
- React__default["default"].createElement(StyledLocationItem, { key: "all-location", role: "button", tabIndex: 0, onClick: () => {
927
- var _a;
928
- if (onLocationClick) {
929
- onLocationClick({
930
- name: t('booking.searchBar.allLocations'),
931
- id: constants.ID_OPTION_ALL_LOCATION,
932
- slug: (_a = constants.LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.ALL,
933
- });
934
- }
935
- } },
936
- React__default["default"].createElement(StyledPinIcon, { color: miscTheme.theme.colors.neutral400 }),
937
- React__default["default"].createElement(index$2.Text, { size: "md" }, t('booking.searchBar.allLocations'))),
938
- state.cities.map((city) => (React__default["default"].createElement(StyledLocationItem, { key: city.id, onClick: (evt) => {
939
- evt.nativeEvent.stopImmediatePropagation();
940
- if (onLocationClick) {
941
- onLocationClick(city);
942
- }
943
- }, role: "button", tabIndex: 0, "aria-label": `Select ${city.name} as location`, isSelected: (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) === city.id },
944
- React__default["default"].createElement(StyledPinIcon, { color: miscTheme.theme.colors.neutral400 }),
945
- React__default["default"].createElement(index$2.Text, { size: "md" }, city.name)))))))));
1083
+ React__default["default"].createElement(core.Select, Object.assign({ key: defaultValue !== null && defaultValue !== void 0 ? defaultValue : 'no-selected-location', defaultValue: defaultValue, placeholder: t('booking.searchBar.allLocations'), searchable: true, onSearchChange: (value) => {
1084
+ handleSearchLocationInputChange(value);
1085
+ }, onFocus: () => {
1086
+ dispatch({ type: ActionTypes.DisplayInitialCities });
1087
+ }, onDropdownClose: () => {
1088
+ debouncedFetchCitiesByKeyword.cancel();
1089
+ dispatch({ type: ActionTypes.DisplayInitialCities });
1090
+ }, nothingFound: t('common.noResult'), maxDropdownHeight: 340, dropdownPosition: "bottom", data: citiesData.map((city) => ({
1091
+ value: String(city.id),
1092
+ label: city.name,
1093
+ city,
1094
+ })), rightSection: React__default["default"].createElement(React__default["default"].Fragment, null) }, gaAttributes, { styles: (theme) => ({
1095
+ item: {
1096
+ padding: 0,
1097
+ '&[data-selected]': {
1098
+ '&, &:hover': {
1099
+ backgroundColor: 'transparent',
1100
+ color: 'inherit',
1101
+ },
1102
+ '.location-item': {
1103
+ '&::after': {
1104
+ content: utils$1.checkMarkIconUrl,
1105
+ top: '50%',
1106
+ right: 19,
1107
+ position: 'absolute',
1108
+ transform: 'translateY(-50%)',
1109
+ },
1110
+ },
1111
+ },
1112
+ '&[data-hovered]': {
1113
+ backgroundColor: 'transparent',
1114
+ },
1115
+ },
1116
+ input: {
1117
+ '&:not(.mantine-Textarea-input)': {
1118
+ height: 48,
1119
+ fontSize: core.rem(16),
1120
+ paddingLeft: 16,
1121
+ paddingRight: 16,
1122
+ [theme.fn.smallerThan('sm')]: {
1123
+ height: 40,
1124
+ fontSize: core.rem(14),
1125
+ paddingLeft: 14,
1126
+ paddingRight: 14,
1127
+ },
1128
+ },
1129
+ },
1130
+ itemsWrapper: {
1131
+ padding: 0,
1132
+ },
1133
+ dropdown: {
1134
+ left: '0 !important',
1135
+ border: 0,
1136
+ marginTop: -7,
1137
+ borderRadius: 0,
1138
+ '& ::-webkit-scrollbar': {
1139
+ width: '6px',
1140
+ height: '6px',
1141
+ },
1142
+ },
1143
+ }), itemComponent: CustomSelectItem,
1144
+ // 3. Logic quan trọng nhất: Luôn trả về true để bỏ qua bộ lọc mặc định của Mantine
1145
+ // Vì chúng ta fetch data từ API hoặc dùng toàn bộ list ban đầu
1146
+ filter: () => true, onChange: (value) => {
1147
+ if (value == null)
1148
+ return;
1149
+ const city = citiesData.find((i) => String(i.id) === value);
1150
+ if (!city)
1151
+ return;
1152
+ onLocationClick(city);
1153
+ debouncedFetchCitiesByKeyword.cancel();
1154
+ dispatch({ type: ActionTypes.DisplayInitialCities });
1155
+ setTimeout(() => {
1156
+ var _a, _b;
1157
+ (_b = (_a = inputLocationWrapperRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('input')) === null || _b === void 0 ? void 0 : _b.blur();
1158
+ }, 0);
1159
+ } }))));
946
1160
  };
947
1161
 
948
1162
  const StyleSpecialtiesWrapper = styled__default["default"].div `
@@ -1318,16 +1532,20 @@ function useSearchBarApi({ dispatch, careApiDomain, locale = 'vi-VN', client = '
1318
1532
  moreParams.noPaging = 1;
1319
1533
  }
1320
1534
  const requests = [
1321
- fetchCitiesApi(paths.PATHS.GET_CITY_BY_IP, Object.assign(Object.assign(Object.assign({}, params), moreParams), { client: constants.CLIENT_KEY.MSD === client ? '' : client })),
1535
+ fetchCitiesApi(paths.PATHS.GET_CITY_BY_IP, Object.assign(Object.assign(Object.assign({}, params), moreParams), { hospitalActive: 1, client: constants.CLIENT_KEY.MSD === client ? '' : client })),
1322
1536
  ];
1323
1537
  if (locale === 'zh-TW') {
1324
1538
  requests.push(fetchCitiesApi(paths.PATHS.GET_CITIES_LIST, {
1325
1539
  noPaging: 1,
1540
+ hospitalActive: 1,
1326
1541
  client: constants.CLIENT_KEY.MSD === client ? '' : client,
1327
1542
  }));
1328
1543
  }
1329
1544
  else {
1330
- requests.push(fetchCitiesApi(paths.PATHS.GET_CITIES_LIST));
1545
+ requests.push(fetchCitiesApi(paths.PATHS.GET_CITIES_LIST, {
1546
+ noPaging: 1,
1547
+ hospitalActive: 1,
1548
+ }));
1331
1549
  }
1332
1550
  return Promise.all(requests)
1333
1551
  .then(([data1, data2]) => {
@@ -1507,11 +1725,14 @@ gaTrackingSearchBar, gaTrackingLocationSearch, autoCompleteDisabled = false, inp
1507
1725
  // isOptionAllLocation = false,
1508
1726
  // hideResults = [],
1509
1727
  // isNavResultItem = true,
1510
- routerPush, onGeoLocationPermissionChange,
1728
+ triggerSearchWhenChangeFilter, routerPush, onGeoLocationPermissionChange,
1511
1729
  // onSearch,
1512
1730
  onChangeLocation, }) => {
1731
+ var _a;
1513
1732
  const { locale, t } = index$1.useTranslations();
1514
1733
  const wrapperRef = React.useRef(null);
1734
+ const searchInputDesktopRef = React.useRef(null);
1735
+ const searchInputMobileRef = React.useRef(null);
1515
1736
  const inputSearchSpecialtyWrapperRef = React.useRef(null);
1516
1737
  const [currentTab, setCurrentTab] = React.useState(initTypeSearch);
1517
1738
  const { geoLocationPermission: geoLocationPermissionFromHook, geoLocationCoordinates: geoLocationCoordinatesFromHook, } = utils$1.useGeolocation();
@@ -1526,7 +1747,9 @@ onChangeLocation, }) => {
1526
1747
  const { navigateTo, focusedSpecialty,
1527
1748
  // isLoadingCities,
1528
1749
  // cities,
1529
- searchKeywords, geoLocationPermission, selectedLocation, selectedSpecialty, initialSelectedCity,
1750
+ searchKeywords, geoLocationPermission, selectedLocation,
1751
+ // selectedSpecialty,
1752
+ initialSelectedCity,
1530
1753
  // defaultCity,
1531
1754
  searchResults, isLoadingSearchResults,
1532
1755
  // isMobileModalOpened,
@@ -1540,6 +1763,7 @@ onChangeLocation, }) => {
1540
1763
  client: clientSlug,
1541
1764
  });
1542
1765
  const slugs = React.useMemo(() => constants.LOCALIZED_SLUGS[locale], [locale]);
1766
+ const [opened, { close, open }] = hooks.useDisclosure(false);
1543
1767
  const typeInformation = React.useMemo(() => {
1544
1768
  return Object.assign({ doctor: {
1545
1769
  name: t('booking.searchPopup.doctors'),
@@ -1563,34 +1787,31 @@ onChangeLocation, }) => {
1563
1787
  }, [currentTab]);
1564
1788
  const debouncedFetchCitiesByKeyword = React.useMemo(() => debounce__default["default"](fetchCitiesByKeyword, 400), [fetchCitiesByKeyword]);
1565
1789
  const debouncedFetchSearchResults = React.useMemo(() => debounce__default["default"](fetchSearchResults, 400), [fetchSearchResults]);
1566
- const handleLocationClick = React.useCallback(function handleLocationClick(city) {
1567
- dispatch({ type: ActionTypes.SelectLocation, payload: city });
1568
- focusSearchInput();
1569
- if (onChangeLocation) {
1570
- onChangeLocation(city);
1571
- }
1572
- }, [t, dispatch]);
1573
- function focusSearchInput() {
1790
+ // function focusSearchInput() {
1791
+ // if (wrapperRef.current) {
1792
+ // wrapperRef.current
1793
+ // .querySelector<HTMLInputElement>('input[name="search-results"]')
1794
+ // ?.focus()
1795
+ // }
1796
+ // }
1797
+ const onClickSearchByKeyword = React.useCallback(function onClickSearchByKeyword({ locationSlug, specialtyId, } = {}) {
1574
1798
  var _a;
1575
- if (wrapperRef.current) {
1576
- (_a = wrapperRef.current
1577
- .querySelector('input[name="search-results"]')) === null || _a === void 0 ? void 0 : _a.focus();
1578
- }
1579
- }
1580
- function onClickSearchByKeyword() {
1799
+ close();
1581
1800
  let url = '';
1582
1801
  const { slug: typeSlug } = typeInformation[currentTab];
1583
1802
  let moreParams = '';
1584
1803
  const slugClientUrl = constants.MAPPING_CLIENT_WITH_SLUG[locale][clientSlug];
1804
+ const selectedSpecialtyId = specialtyId || ((_a = state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.id) || -1;
1805
+ const selectedLocationSlug = locationSlug || (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.slug) || '';
1585
1806
  if ((currentTab === 'doctor' || currentTab === 'hospital') &&
1586
- state.selectedSpecialty.id > 0) {
1587
- moreParams = `&specialtyId=${state.selectedSpecialty.id}`;
1807
+ selectedSpecialtyId > 0) {
1808
+ moreParams = `&specialtyId=${selectedSpecialtyId}`;
1588
1809
  }
1589
1810
  if (currentTab === 'specialty') {
1590
1811
  url = `/${typeSlug}`;
1591
1812
  }
1592
1813
  else {
1593
- url = `/${selectedLocation.slug}/${typeSlug}`;
1814
+ url = `/${selectedLocationSlug}/${typeSlug}`;
1594
1815
  }
1595
1816
  if (slugClientUrl) {
1596
1817
  url += `/${slugClientUrl}`;
@@ -1599,9 +1820,34 @@ onChangeLocation, }) => {
1599
1820
  if (url) {
1600
1821
  dispatch({ type: ActionTypes.NavigateTo, payload: url });
1601
1822
  }
1602
- }
1823
+ }, [
1824
+ clientSlug,
1825
+ close,
1826
+ currentTab,
1827
+ dispatch,
1828
+ locale,
1829
+ searchKeywords,
1830
+ selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.slug,
1831
+ (_a = state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.id,
1832
+ typeInformation,
1833
+ ]);
1834
+ const handleLocationClick = React.useCallback(function handleLocationClick(city) {
1835
+ triggerSearchWhenChangeFilter &&
1836
+ onClickSearchByKeyword({ locationSlug: city.slug });
1837
+ dispatch({ type: ActionTypes.SelectLocation, payload: city });
1838
+ if (onChangeLocation) {
1839
+ onChangeLocation(city);
1840
+ }
1841
+ }, [
1842
+ dispatch,
1843
+ isMobile,
1844
+ onChangeLocation,
1845
+ onClickSearchByKeyword,
1846
+ triggerSearchWhenChangeFilter,
1847
+ ]);
1603
1848
  useOutsideClick.useOutsideClick(inputSearchSpecialtyWrapperRef, () => {
1604
- dispatch({ type: ActionTypes.ClickOutsideInputSearchSpecialty });
1849
+ !isMobile &&
1850
+ dispatch({ type: ActionTypes.ClickOutsideInputSearchSpecialty });
1605
1851
  });
1606
1852
  React.useEffect(() => {
1607
1853
  var _a;
@@ -1624,6 +1870,7 @@ onChangeLocation, }) => {
1624
1870
  fetchCitiesByLocation({ coordinates: state.geoLocationCoordinates });
1625
1871
  }, [geoLocationPermission]);
1626
1872
  React.useEffect(() => {
1873
+ var _a;
1627
1874
  const defaultSpecialty = initSpecialty
1628
1875
  ? initSpecialty
1629
1876
  : {
@@ -1633,13 +1880,23 @@ onChangeLocation, }) => {
1633
1880
  total_doctor: 0,
1634
1881
  slug: slugs.SPECIALTIES,
1635
1882
  };
1636
- if (!state.selectedSpecialty) {
1883
+ if (initSpecialty) {
1884
+ if (((_a = state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.id) !== initSpecialty.id) {
1885
+ dispatch({
1886
+ type: ActionTypes.SelectSpecialty,
1887
+ payload: initSpecialty,
1888
+ });
1889
+ }
1890
+ return;
1891
+ }
1892
+ if (!state.selectedSpecialty ||
1893
+ state.selectedSpecialty.id !== defaultSpecialty.id) {
1637
1894
  dispatch({
1638
1895
  type: ActionTypes.SelectSpecialty,
1639
1896
  payload: defaultSpecialty,
1640
1897
  });
1641
1898
  }
1642
- }, [initSpecialty, state.selectedSpecialty]);
1899
+ }, [initSpecialty, slugs.SPECIALTIES, t]);
1643
1900
  React.useEffect(() => {
1644
1901
  fetchAllSpecialties();
1645
1902
  }, []);
@@ -1658,25 +1915,62 @@ onChangeLocation, }) => {
1658
1915
  }, [navigateTo]);
1659
1916
  React.useEffect(() => {
1660
1917
  fetchSearchResults(state.searchKeywords, state, currentTab, clientSlug, true);
1661
- }, [selectedLocation, selectedSpecialty, currentTab]);
1662
- return (React__default["default"].createElement(StyledSearchBarWrapper, { ref: wrapperRef },
1663
- React__default["default"].createElement(TabSearch, { currentTab: currentTab, setCurrentTab: setCurrentTab, isMobile: isMobile, hideTabBookingSearch: hideTabBookingSearch, hideSpecialtyTab: hideSpecialtyTab }),
1664
- React__default["default"].createElement(StyleWrapperContainer, { className: "booking-search-container" },
1665
- React__default["default"].createElement(StyleSearchInputContainer, null,
1666
- React__default["default"].createElement(StyleSearchContent, { className: "booking-search-content" },
1667
- React__default["default"].createElement("div", { ref: inputSearchSpecialtyWrapperRef },
1668
- React__default["default"].createElement(core.Flex, { gap: "12px", justify: "space-between", align: "center", direction: isMobile ? 'column' : 'row', className: "flex-search-input" },
1669
- currentTab !== 'specialty' && (React__default["default"].createElement(SearchLocation, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchCitiesByKeyword: debouncedFetchCitiesByKeyword, selectedLocation: selectedLocation, onLocationClick: handleLocationClick, trackingAttributes: gaTrackingLocationSearch })),
1670
- React__default["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 }),
1671
- React__default["default"].createElement(core.Button, { size: isMobile ? 'md' : 'lg', color: "#2D87F3", fullWidth: isMobile, variant: "filled", onClick: onClickSearchByKeyword, styles: {
1672
- root: {
1673
- height: isMobile ? '40px' : '48px',
1674
- },
1675
- } }, t('booking.searchBar.searchButton'))),
1676
- !hidePopularSearchKeys &&
1677
- currentTab !== 'specialty' &&
1678
- state.popularKeys.length > 0 && (React__default["default"].createElement(SearchTag, { type: currentTab, state: state, typeInformation: typeInformation, dispatch: dispatch })),
1679
- currentTab === 'specialty' && focusedSpecialty === 'search' && (React__default["default"].createElement(SearchResultSpecialties, { state: state, isMobile: isMobile, dispatch: dispatch, specialties: (searchResults === null || searchResults === void 0 ? void 0 : searchResults.specialty) || [], isLoading: isLoadingSearchResults }))))))));
1918
+ }, [currentTab]);
1919
+ React.useEffect(() => {
1920
+ if (opened && isMobile) {
1921
+ const timer = setTimeout(() => {
1922
+ var _a;
1923
+ (_a = searchInputMobileRef.current) === null || _a === void 0 ? void 0 : _a.focus();
1924
+ }, 150);
1925
+ return () => clearTimeout(timer);
1926
+ }
1927
+ }, [opened, isMobile]);
1928
+ const searchInputsProps = {
1929
+ type: currentTab,
1930
+ isMobile: isMobile,
1931
+ state: state,
1932
+ dispatch: dispatch,
1933
+ debouncedFetchSearchResults: debouncedFetchSearchResults,
1934
+ initalSearchValue: initialSearchValue,
1935
+ // focusSearchInput: focusSearchInput,
1936
+ onEnterSearch: onClickSearchByKeyword,
1937
+ typeInformation: typeInformation,
1938
+ trackingAttributes: gaTrackingSearchBar,
1939
+ isLoading: isLoadingSearchResults,
1940
+ hideSpecialtySelection: hideSpecialtySelection || hideSpecialtyTab,
1941
+ clientSlug: clientSlug,
1942
+ triggerSearchWhenChangeFilter,
1943
+ onChangeSpecialty: (specialty) => triggerSearchWhenChangeFilter &&
1944
+ onClickSearchByKeyword({ specialtyId: specialty.id }),
1945
+ };
1946
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
1947
+ React__default["default"].createElement(StyledSearchBarWrapper, { ref: wrapperRef },
1948
+ React__default["default"].createElement(TabSearch, { currentTab: currentTab, setCurrentTab: setCurrentTab, isMobile: isMobile, hideTabBookingSearch: hideTabBookingSearch, hideSpecialtyTab: hideSpecialtyTab }),
1949
+ React__default["default"].createElement(StyleWrapperContainer, { className: "booking-search-container" },
1950
+ React__default["default"].createElement(StyleSearchInputContainer, null,
1951
+ React__default["default"].createElement(StyleSearchContent, { className: "booking-search-content" },
1952
+ React__default["default"].createElement("div", { ref: inputSearchSpecialtyWrapperRef },
1953
+ React__default["default"].createElement(core.Flex, { gap: "12px", justify: "space-between", align: "center", direction: isMobile ? 'column' : 'row', className: "flex-search-input" },
1954
+ currentTab !== 'specialty' && (React__default["default"].createElement(SearchLocation, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchCitiesByKeyword: debouncedFetchCitiesByKeyword, selectedLocation: selectedLocation, onLocationClick: handleLocationClick, trackingAttributes: gaTrackingLocationSearch })),
1955
+ React__default["default"].createElement(SearchInputs, Object.assign({}, searchInputsProps, { ref: searchInputDesktopRef, onFocusInput: () => isMobile && open() })),
1956
+ React__default["default"].createElement(index$4.Button, { size: isMobile ? 'md' : 'lg', fullWidth: isMobile, variant: "primary", onClick: () => onClickSearchByKeyword(), styles: {
1957
+ root: {
1958
+ height: isMobile ? '40px' : '48px',
1959
+ },
1960
+ } }, t('booking.searchBar.searchButton'))),
1961
+ !hidePopularSearchKeys &&
1962
+ currentTab !== 'specialty' &&
1963
+ state.popularKeys.length > 0 && (React__default["default"].createElement(SearchTag, { type: currentTab, state: state, typeInformation: typeInformation, dispatch: dispatch })),
1964
+ currentTab === 'specialty' &&
1965
+ focusedSpecialty === 'search' && (React__default["default"].createElement(SearchResultSpecialties, { state: state, isMobile: isMobile, dispatch: dispatch, specialties: (searchResults === null || searchResults === void 0 ? void 0 : searchResults.specialty) || [], isLoading: isLoadingSearchResults }))))))),
1966
+ isMobile && (React__default["default"].createElement(ModalSearchResult, { keepMounted: true, opened: opened, onClose: close, closeModal: close, searchInputEle: React__default["default"].createElement(core.Flex, { align: 'center', gap: 8 },
1967
+ React__default["default"].createElement(SearchInputs, Object.assign({}, searchInputsProps, { onlyShowSearchBox: true, ref: searchInputMobileRef })),
1968
+ React__default["default"].createElement(index$4.Button, { variant: "primary", leftIcon: React__default["default"].createElement(core$1.Search, { size: 20, color: '#fff' }), onClick: () => onClickSearchByKeyword() })) },
1969
+ React__default["default"].createElement(core.Box, { sx: {
1970
+ marginLeft: -16,
1971
+ marginRight: -16,
1972
+ } },
1973
+ React__default["default"].createElement(SearchResultContent, { type: currentTab, state: state, dispatch: dispatch, isLoading: isLoadingSearchResults, typeInformation: typeInformation, clientSlug: clientSlug }))))));
1680
1974
  };
1681
1975
 
1682
1976
  exports.BookingSearchBarV2 = BookingSearchBarV2;