@hhgtech/hhg-components 1.29.526-beta-5 → 1.29.526-beta-7

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 (509) hide show
  1. package/build/{InputDate-555aee10.js → InputDate-d6df3c03.js} +5 -5
  2. package/build/{LastPeriod-80b916c1.js → LastPeriod-e1441692.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-ad47092c.js → MobileBottomNavigationIcon-9613a4f2.js} +3 -3
  4. package/build/{SiteWideBanner-ff18ee1d.js → SiteWideBanner-fa0bc336.js} +11 -11
  5. package/build/{Spinner-528d1177.js → Spinner-bc780ff5.js} +1 -1
  6. package/build/{WhatsApp-f939644d.js → WhatsApp-fd91bdf9.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/searchLocation/CustomSelectItem.d.ts +9 -0
  12. package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +1 -1
  13. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/CustomSelectItem.d.ts +9 -0
  14. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +1 -1
  15. package/build/care.js +22 -22
  16. package/build/careBookingSearchBar.js +14 -14
  17. package/build/careBookingSearchBarV2.js +365 -179
  18. package/build/components.js +106 -106
  19. package/build/{constants-5b168a91.js → constants-1ae135a2.js} +2 -2
  20. package/build/{constants-d36ded1e.js → constants-ccb2365d.js} +1 -1
  21. package/build/constants.js +3 -3
  22. package/build/constantsDomainLocales.js +1 -1
  23. package/build/constantsRiskScreener.js +2 -2
  24. package/build/constantsSite.js +2 -2
  25. package/build/{core-e540842f.js → core-e96e54d0.js} +1 -1
  26. package/build/{dataTransform-919afccb.js → dataTransform-1ad6b2c4.js} +1 -1
  27. package/build/ecom.js +5 -5
  28. package/build/{editor-c2531b58.js → editor-4fc38231.js} +11 -11
  29. package/build/embeddedHeathToolCards_babyGrowth.js +25 -25
  30. package/build/embeddedHeathToolCards_babyPoop.js +22 -22
  31. package/build/embeddedHeathToolCards_babyVaccine.js +24 -24
  32. package/build/embeddedHeathToolCards_bmi_bmi.js +27 -27
  33. package/build/embeddedHeathToolCards_bmrBmr.js +27 -27
  34. package/build/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
  35. package/build/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
  36. package/build/embeddedHeathToolCards_pwg_pwg.js +28 -28
  37. package/build/embeddedHeathToolCards_targetHeartRate.js +29 -29
  38. package/build/esm/{InputDate-0f11e714.js → InputDate-533823f7.js} +5 -5
  39. package/build/esm/{LastPeriod-9c6c11fa.js → LastPeriod-75d99fd6.js} +1 -1
  40. package/build/esm/{MobileBottomNavigationIcon-9837a6bc.js → MobileBottomNavigationIcon-bf12a7db.js} +3 -3
  41. package/build/esm/{SiteWideBanner-112f573d.js → SiteWideBanner-53877369.js} +11 -11
  42. package/build/esm/{Spinner-532766b9.js → Spinner-21e9eb9b.js} +1 -1
  43. package/build/esm/{WhatsApp-f727d788.js → WhatsApp-99b49944.js} +1 -1
  44. package/build/esm/adapters.js +20 -20
  45. package/build/esm/atoms.js +51 -51
  46. package/build/esm/babyGrowth.js +86 -86
  47. package/build/esm/cache.js +2 -2
  48. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/CustomSelectItem.d.ts +9 -0
  49. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +1 -1
  50. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/CustomSelectItem.d.ts +9 -0
  51. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +1 -1
  52. package/build/esm/care.js +22 -22
  53. package/build/esm/careBookingSearchBar.js +14 -14
  54. package/build/esm/careBookingSearchBarV2.js +367 -181
  55. package/build/esm/components.js +106 -106
  56. package/build/esm/{constants-53cafe74.js → constants-460a5cb5.js} +2 -2
  57. package/build/esm/{constants-2f3dbda1.js → constants-ab0c4140.js} +1 -1
  58. package/build/esm/constants.js +3 -3
  59. package/build/esm/constantsDomainLocales.js +1 -1
  60. package/build/esm/constantsRiskScreener.js +2 -2
  61. package/build/esm/constantsSite.js +2 -2
  62. package/build/esm/{core-a8761630.js → core-4f565edd.js} +1 -1
  63. package/build/esm/{dataTransform-7d9f5512.js → dataTransform-3d34569e.js} +1 -1
  64. package/build/esm/ecom.js +5 -5
  65. package/build/esm/{editor-4c4a45d3.js → editor-260178dc.js} +11 -11
  66. package/build/esm/embeddedHeathToolCards_babyGrowth.js +25 -25
  67. package/build/esm/embeddedHeathToolCards_babyPoop.js +22 -22
  68. package/build/esm/embeddedHeathToolCards_babyVaccine.js +24 -24
  69. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +27 -27
  70. package/build/esm/embeddedHeathToolCards_bmrBmr.js +27 -27
  71. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
  72. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
  73. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +28 -28
  74. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +29 -29
  75. package/build/esm/footer.js +22 -22
  76. package/build/esm/gAssets.js +2 -2
  77. package/build/esm/{healthTools-a98314c6.js → healthTools-0ebf893a.js} +1 -1
  78. package/build/esm/healthToolsCardWrapper.js +20 -20
  79. package/build/esm/healthToolsForm.js +35 -35
  80. package/build/esm/hooks.js +14 -14
  81. package/build/esm/i18n.js +2 -2
  82. package/build/esm/i18nV2.js +2 -2
  83. package/build/esm/{index-e817f494.js → index-0067a45d.js} +3 -3
  84. package/build/esm/{index-dff0d3a4.js → index-016deb29.js} +18 -18
  85. package/build/esm/{index-a2987803.js → index-030d279b.js} +25 -25
  86. package/build/esm/{index-ab7dd2a2.js → index-040ba7eb.js} +24 -24
  87. package/build/esm/{index-365aaac0.js → index-06d1abd4.js} +1 -1
  88. package/build/esm/{index-d73a83ad.js → index-07cb8dde.js} +7 -7
  89. package/build/esm/{index-7c364e7f.js → index-09e30d39.js} +2 -2
  90. package/build/esm/{index-00f1332e.js → index-118cc328.js} +3 -3
  91. package/build/esm/{index-30bb968e.js → index-15c7c1a5.js} +32 -32
  92. package/build/esm/{index-be8e041c.js → index-18d5be3d.js} +2 -2
  93. package/build/esm/{index-d9e82a48.js → index-1e9a993b.js} +2 -2
  94. package/build/esm/{index-c9f6e51a.js → index-24e59b58.js} +14 -14
  95. package/build/esm/{index-407c35d5.js → index-2c4f94e8.js} +3 -3
  96. package/build/esm/{index-cff6e483.js → index-2f60d578.js} +15 -15
  97. package/build/esm/{index-812d0510.js → index-30a25b9d.js} +5 -5
  98. package/build/esm/{index-8eb8c165.js → index-34ead94b.js} +2 -2
  99. package/build/esm/{index-7c0b132c.js → index-3c4c3607.js} +2 -2
  100. package/build/esm/{index-ea7f005a.js → index-40fcfba6.js} +19 -19
  101. package/build/esm/{index-51e4e8be.js → index-43c0bb8c.js} +13 -13
  102. package/build/esm/{index-3c83d407.js → index-449a6854.js} +2 -2
  103. package/build/esm/{index-31d7ed0f.js → index-50143dfe.js} +1 -1
  104. package/build/esm/{index-df68f090.js → index-5adc5b30.js} +1 -1
  105. package/build/esm/{index-2878c3c9.js → index-5cf8dc2e.js} +5 -5
  106. package/build/esm/{index-343148ad.js → index-5e0f4655.js} +16 -16
  107. package/build/esm/{index-7cd407d4.js → index-5f97018f.js} +2 -2
  108. package/build/esm/{index-e2bfa890.js → index-609e4dc0.js} +14 -14
  109. package/build/esm/{index-d4d247d1.js → index-629afefe.js} +6 -6
  110. package/build/esm/{index-d91c45d2.js → index-6885b26e.js} +17 -17
  111. package/build/esm/{index-8827fc70.js → index-6c9ca65d.js} +2 -2
  112. package/build/esm/{index-56e797dc.js → index-71e8de57.js} +6 -6
  113. package/build/esm/{index-d8e3850d.js → index-76d4dec8.js} +3 -3
  114. package/build/esm/{index-b46a799d.js → index-79419f22.js} +1 -1
  115. package/build/esm/{index-95817a54.js → index-7a3de78d.js} +2 -2
  116. package/build/esm/{index-98e69e88.js → index-7bf36808.js} +33 -33
  117. package/build/esm/{index-f43ff238.js → index-804647d7.js} +6 -6
  118. package/build/esm/{index-9a16caed.js → index-82e5db9a.js} +2 -2
  119. package/build/esm/{index-c881b0e3.js → index-8325c11e.js} +3 -3
  120. package/build/esm/{index-f6bf227d.js → index-8a0e6b5a.js} +16 -16
  121. package/build/esm/{index-b9034ae3.js → index-8bf22721.js} +4 -4
  122. package/build/esm/{index-a10ed033.js → index-8f0ca51f.js} +11 -11
  123. package/build/esm/{index-017e2feb.js → index-92386032.js} +13 -13
  124. package/build/esm/{index-2e18580a.js → index-92444079.js} +1 -1
  125. package/build/esm/{index-d59fed0b.js → index-9a007737.js} +3 -3
  126. package/build/esm/{index-961d5c5d.js → index-9bc70fe6.js} +15 -15
  127. package/build/esm/{index-e35abd0d.js → index-9c77ab1b.js} +8 -8
  128. package/build/esm/{index-0f3d04d7.js → index-a18934f6.js} +32 -32
  129. package/build/esm/{index-b5c42b58.js → index-a479677a.js} +21 -21
  130. package/build/esm/{index-50e9544d.js → index-a52cc35e.js} +2 -2
  131. package/build/esm/{index-e8f95b6c.js → index-a914a6ab.js} +9 -9
  132. package/build/esm/{index-7ce4e7a1.js → index-ac5b01a0.js} +15 -15
  133. package/build/esm/{index-5b9f19f6.js → index-b75ca5bc.js} +3 -3
  134. package/build/esm/{index-f65eeed0.js → index-bb13cf73.js} +3 -3
  135. package/build/esm/{index-d293678b.js → index-bbe68df3.js} +22 -22
  136. package/build/esm/{index-2c6acfb1.js → index-bde2b9fc.js} +2 -2
  137. package/build/esm/{index-68ac46be.js → index-bdf27488.js} +2 -2
  138. package/build/esm/{index-75a04aa8.js → index-c09fdc73.js} +3 -3
  139. package/build/esm/{index-304a854f.js → index-c4f562ab.js} +3 -3
  140. package/build/esm/{index-4220eaf4.js → index-d26ed45a.js} +14 -14
  141. package/build/esm/{index-9119bfe9.js → index-d54d667c.js} +2 -2
  142. package/build/esm/{index-19629030.js → index-d75782f4.js} +7 -7
  143. package/build/esm/{index-2bbb65a9.js → index-d8ae5abd.js} +16 -16
  144. package/build/esm/{index-a062e1e3.js → index-db6320a8.js} +6 -6
  145. package/build/esm/{index-1c7bb6d9.js → index-def1af07.js} +4 -4
  146. package/build/esm/{index-a8ea9a2f.js → index-df25c00a.js} +9 -9
  147. package/build/esm/{index-628a6873.js → index-e17aef2f.js} +2 -2
  148. package/build/esm/{index-aceb9d78.js → index-e6077c92.js} +1 -1
  149. package/build/esm/{index-24feba2c.js → index-e9d945b2.js} +16 -16
  150. package/build/esm/{index-4994e065.js → index-ea928102.js} +18 -18
  151. package/build/esm/{index-3a722f82.js → index-f0288d2c.js} +2 -2
  152. package/build/esm/{index-d408ee51.js → index-f27fbb2b.js} +2 -2
  153. package/build/esm/{index-f8b92899.js → index-fe465751.js} +1 -1
  154. package/build/esm/index.js +126 -126
  155. package/build/esm/{labelSorting-652a21e5.js → labelSorting-dce76a30.js} +4 -4
  156. package/build/esm/lead.js +37 -37
  157. package/build/esm/{logoIcon-a5747f2c.js → logoIcon-1172a8f7.js} +2 -2
  158. package/build/esm/mantine.js +27 -27
  159. package/build/esm/misc.js +19 -19
  160. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  161. package/build/esm/miscGetSocialList.js +8 -8
  162. package/build/esm/miscScreenSizeContext.js +1 -1
  163. package/build/esm/mobileBottomNavigation.js +5 -5
  164. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  165. package/build/esm/molecules.js +79 -79
  166. package/build/esm/moleculesArticleCard.js +6 -6
  167. package/build/esm/moleculesArticleCardV2.js +17 -17
  168. package/build/esm/navigation.js +49 -49
  169. package/build/esm/navigationLogoutPopup.js +11 -11
  170. package/build/esm/navigationProfileButton.js +27 -27
  171. package/build/esm/onboardingV2.js +30 -30
  172. package/build/esm/organisms.js +62 -62
  173. package/build/esm/{post-fdfbee50.js → post-6b59671a.js} +2 -2
  174. package/build/esm/profileNavigation.js +20 -20
  175. package/build/esm/progressBar.js +1 -1
  176. package/build/esm/pwg.js +23 -23
  177. package/build/esm/ssoV2.js +31 -31
  178. package/build/esm/{store-c1808883.js → store-eea2f07e.js} +3 -3
  179. package/build/esm/subot.js +40 -40
  180. package/build/esm/surveyOrPremiumBanner.js +34 -34
  181. package/build/esm/surveyQuestionCard.js +11 -11
  182. package/build/esm/{surveyThankyouCard-adc72d8f.js → surveyThankyouCard-42ee33f1.js} +5 -5
  183. package/build/esm/together.js +57 -57
  184. package/build/esm/togetherApiUtils.js +6 -6
  185. package/build/esm/togetherAtoms.js +31 -31
  186. package/build/esm/togetherComponentGlobalContext.js +6 -6
  187. package/build/esm/togetherMolecules.js +52 -52
  188. package/build/esm/togetherMoleculesCardAuthor.js +29 -29
  189. package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
  190. package/build/esm/togetherMoleculesProfileDetail.js +40 -40
  191. package/build/esm/togetherOrganisms.js +51 -51
  192. package/build/esm/togetherRichTextEditor.js +20 -20
  193. package/build/esm/togetherShareBox.js +12 -12
  194. package/build/esm/{transform-0409f780.js → transform-d7b9aab4.js} +27 -27
  195. package/build/esm/{translationsProvider-d24426e8.js → translationsProvider-94c23b33.js} +1 -1
  196. package/build/esm/{treePopoverMenu-e16fe377.js → treePopoverMenu-d1b543ab.js} +19 -19
  197. package/build/esm/types.js +2 -2
  198. package/build/esm/{useCartCareService-50142271.js → useCartCareService-a9801753.js} +1 -1
  199. package/build/esm/{useHealthToolCache-ec6f2a34.js → useHealthToolCache-ba8e70e4.js} +1 -1
  200. package/build/esm/{usePhoneValidator-74156890.js → usePhoneValidator-5705043a.js} +5 -5
  201. package/build/esm/{usePlacesAutocomplete-0cb2d636.js → usePlacesAutocomplete-73eb4d73.js} +1 -1
  202. package/build/esm/useTogetherAuthRequiredAction.js +10 -10
  203. package/build/esm/{utils-da65410b.js → utils-049d2b9b.js} +5 -5
  204. package/build/esm/{utils-04a4e09f.js → utils-08669c6b.js} +3 -3
  205. package/build/esm/{utils-d2d0e454.js → utils-0e3d3101.js} +3 -3
  206. package/build/esm/{utils-df98ceb0.js → utils-5c21d88d.js} +2 -2
  207. package/build/esm/{utils-2a55f1a7.js → utils-820d4024.js} +2 -2
  208. package/build/esm/vaccination.js +22 -22
  209. package/build/footer.js +22 -22
  210. package/build/gAssets.js +2 -2
  211. package/build/{healthTools-907e66de.js → healthTools-26139216.js} +1 -1
  212. package/build/healthToolsCardWrapper.js +20 -20
  213. package/build/healthToolsForm.js +35 -35
  214. package/build/hooks.js +14 -14
  215. package/build/i18n.js +2 -2
  216. package/build/i18nV2.js +1 -1
  217. package/build/{index-4f0f711e.js → index-085e0678.js} +15 -15
  218. package/build/{index-5417ec7c.js → index-0ca527bd.js} +2 -2
  219. package/build/{index-1592e2c2.js → index-1617835f.js} +2 -2
  220. package/build/{index-7c225b51.js → index-1917e6e6.js} +3 -3
  221. package/build/{index-a4c8d3d7.js → index-248bbe1e.js} +3 -3
  222. package/build/{index-039a37c0.js → index-30f758cb.js} +22 -22
  223. package/build/{index-892a8897.js → index-31862313.js} +2 -2
  224. package/build/{index-212827d2.js → index-37a8afbc.js} +2 -2
  225. package/build/{index-f7ebadc8.js → index-394f5180.js} +3 -3
  226. package/build/{index-6e8e59a7.js → index-3d70614c.js} +14 -14
  227. package/build/{index-b8d10bc1.js → index-3de3a5ff.js} +7 -7
  228. package/build/{index-fcedec4f.js → index-45af88dc.js} +3 -3
  229. package/build/{index-a2b7218a.js → index-4c39a006.js} +6 -6
  230. package/build/{index-cb815ccb.js → index-4cbd6a6f.js} +2 -2
  231. package/build/{index-5e4ff276.js → index-4dadd4ed.js} +3 -3
  232. package/build/{index-90d44b8f.js → index-4edad11e.js} +2 -2
  233. package/build/{index-dc0db00a.js → index-4f6ec377.js} +2 -2
  234. package/build/{index-5b878128.js → index-512049b4.js} +1 -1
  235. package/build/{index-62954ce9.js → index-57426d69.js} +1 -1
  236. package/build/{index-913106d0.js → index-57f9ab86.js} +33 -33
  237. package/build/{index-e096bccd.js → index-65734bf9.js} +4 -4
  238. package/build/{index-eeef33d2.js → index-678a5a89.js} +14 -14
  239. package/build/{index-0e53db8e.js → index-69a0afd4.js} +14 -14
  240. package/build/{index-2088ca9d.js → index-6acf741d.js} +1 -1
  241. package/build/{index-288eaa8e.js → index-6e0c67be.js} +3 -3
  242. package/build/{index-dc483c9d.js → index-72834fd6.js} +32 -32
  243. package/build/{index-b663a804.js → index-738aebbd.js} +16 -16
  244. package/build/{index-f0b328c8.js → index-76805e4f.js} +2 -2
  245. package/build/{index-085b8dcb.js → index-79696830.js} +18 -18
  246. package/build/{index-a4c7d2ce.js → index-7c09010d.js} +3 -3
  247. package/build/{index-935333fb.js → index-7f1553c8.js} +9 -9
  248. package/build/{index-39c6799f.js → index-808ceefc.js} +3 -3
  249. package/build/{index-a88f99d8.js → index-86d99c32.js} +1 -1
  250. package/build/{index-2ef4c749.js → index-88553e3d.js} +13 -13
  251. package/build/{index-eb07a76a.js → index-8a1167c1.js} +2 -2
  252. package/build/{index-f6981053.js → index-8cf12ffd.js} +2 -2
  253. package/build/{index-06fcda6d.js → index-8d2f796e.js} +6 -6
  254. package/build/{index-47f51672.js → index-8e5f4f15.js} +15 -15
  255. package/build/{index-3df98a22.js → index-9323034a.js} +5 -5
  256. package/build/{index-2936f388.js → index-98167f79.js} +21 -21
  257. package/build/{index-68617e5d.js → index-99920da0.js} +2 -2
  258. package/build/{index-7bf817c5.js → index-9b9b226e.js} +13 -13
  259. package/build/{index-65208674.js → index-9cb0642f.js} +3 -3
  260. package/build/{index-a6597f8d.js → index-9d1f4b1d.js} +24 -24
  261. package/build/{index-0ded0908.js → index-a35e5257.js} +8 -8
  262. package/build/{index-774ae6a5.js → index-a7149192.js} +16 -16
  263. package/build/{index-b6d08dc0.js → index-a8339e50.js} +7 -7
  264. package/build/{index-eb4e7660.js → index-b26ba7f0.js} +16 -16
  265. package/build/{index-4c46cc41.js → index-b2b8a8cf.js} +5 -5
  266. package/build/{index-27de7fd0.js → index-b496a89b.js} +2 -2
  267. package/build/{index-909d661e.js → index-b713f993.js} +6 -6
  268. package/build/{index-34397365.js → index-c0c16173.js} +2 -2
  269. package/build/{index-438b1467.js → index-c4a31626.js} +1 -1
  270. package/build/{index-a026b6a7.js → index-c6f7717f.js} +19 -19
  271. package/build/{index-c55b40a9.js → index-c9da2288.js} +16 -16
  272. package/build/{index-d3706003.js → index-cb6db502.js} +9 -9
  273. package/build/{index-4a2a0a15.js → index-cf6e8656.js} +18 -18
  274. package/build/{index-168d87bb.js → index-d03962f2.js} +4 -4
  275. package/build/{index-1f5e1057.js → index-d0d3ebb3.js} +1 -1
  276. package/build/{index-bcd386ad.js → index-d9b8cb72.js} +15 -15
  277. package/build/{index-1e4678d0.js → index-e0e8f27e.js} +6 -6
  278. package/build/{index-a94934ae.js → index-e354d5c2.js} +2 -2
  279. package/build/{index-1840a5ed.js → index-e38a0298.js} +17 -17
  280. package/build/{index-d490ae15.js → index-e6234b14.js} +32 -32
  281. package/build/{index-766502c0.js → index-ec483113.js} +2 -2
  282. package/build/{index-d75f2e83.js → index-f0681613.js} +2 -2
  283. package/build/{index-7d6bdb47.js → index-f8ed7ae6.js} +25 -25
  284. package/build/{index-9a2c88a8.js → index-fa824993.js} +11 -11
  285. package/build/{index-925cb6f5.js → index-fbe0fc10.js} +2 -2
  286. package/build/{index-b0d2b553.js → index-fca86b5c.js} +1 -1
  287. package/build/{index-44faee88.js → index-fedbe98c.js} +3 -3
  288. package/build/index.js +126 -126
  289. package/build/{labelSorting-c6f93cf3.js → labelSorting-25d37d33.js} +4 -4
  290. package/build/lead.js +37 -37
  291. package/build/{logoIcon-3c18069a.js → logoIcon-c1af3ca1.js} +2 -2
  292. package/build/mantine.js +25 -25
  293. package/build/misc.js +19 -19
  294. package/build/miscGetDynamicHealthTool.js +4 -4
  295. package/build/miscGetSocialList.js +8 -8
  296. package/build/miscScreenSizeContext.js +1 -1
  297. package/build/mobileBottomNavigation.js +5 -5
  298. package/build/mobileBottomNavigationIcon.js +5 -5
  299. package/build/molecules.js +79 -79
  300. package/build/moleculesArticleCard.js +6 -6
  301. package/build/moleculesArticleCardV2.js +17 -17
  302. package/build/navigation.js +49 -49
  303. package/build/navigationLogoutPopup.js +11 -11
  304. package/build/navigationProfileButton.js +27 -27
  305. package/build/onboardingV2.js +29 -29
  306. package/build/organisms.js +62 -62
  307. package/build/{post-6b212f68.js → post-239343c0.js} +2 -2
  308. package/build/profileNavigation.js +20 -20
  309. package/build/progressBar.js +1 -1
  310. package/build/pwg.js +23 -23
  311. package/build/ssoV2.js +29 -29
  312. package/build/{store-a614ec8f.js → store-430abde2.js} +3 -3
  313. package/build/subot.js +39 -39
  314. package/build/surveyOrPremiumBanner.js +34 -34
  315. package/build/surveyQuestionCard.js +11 -11
  316. package/build/{surveyThankyouCard-ed2e8d88.js → surveyThankyouCard-b10b7834.js} +5 -5
  317. package/build/together.js +57 -57
  318. package/build/togetherApiUtils.js +6 -6
  319. package/build/togetherAtoms.js +31 -31
  320. package/build/togetherComponentGlobalContext.js +6 -6
  321. package/build/togetherMolecules.js +52 -52
  322. package/build/togetherMoleculesCardAuthor.js +29 -29
  323. package/build/togetherMoleculesPostImagePreview.js +13 -13
  324. package/build/togetherMoleculesProfileDetail.js +40 -40
  325. package/build/togetherOrganisms.js +51 -51
  326. package/build/togetherRichTextEditor.js +20 -20
  327. package/build/togetherShareBox.js +12 -12
  328. package/build/{transform-f5181248.js → transform-35278845.js} +27 -27
  329. package/build/{translationsProvider-aad4d807.js → translationsProvider-a992a390.js} +1 -1
  330. package/build/{treePopoverMenu-bd34a992.js → treePopoverMenu-defe8a52.js} +19 -19
  331. package/build/types.js +2 -2
  332. package/build/{useCartCareService-c7509d83.js → useCartCareService-ea4943bb.js} +1 -1
  333. package/build/{useHealthToolCache-9c4067b6.js → useHealthToolCache-96dd7b19.js} +1 -1
  334. package/build/{usePhoneValidator-745e1eae.js → usePhoneValidator-e8e3638a.js} +5 -5
  335. package/build/{usePlacesAutocomplete-fd4383a2.js → usePlacesAutocomplete-7d584b12.js} +1 -1
  336. package/build/useTogetherAuthRequiredAction.js +10 -10
  337. package/build/{utils-c5cc0583.js → utils-0698cf22.js} +2 -2
  338. package/build/{utils-12f9b0a5.js → utils-11e1fe33.js} +2 -2
  339. package/build/{utils-30238505.js → utils-3d04af5c.js} +3 -3
  340. package/build/{utils-3a5f9221.js → utils-cefe7bdb.js} +5 -5
  341. package/build/{utils-aaf5db07.js → utils-d1c50d4a.js} +3 -3
  342. package/build/vaccination.js +22 -22
  343. package/package.json +1 -1
  344. /package/build/{BMI_BOYS.percentile.monthly-897624f6.js → BMI_BOYS.percentile.monthly-b1373a29.js} +0 -0
  345. /package/build/{BMI_BOYS.percentile.weekly-bb400b85.js → BMI_BOYS.percentile.weekly-09b0e27b.js} +0 -0
  346. /package/build/{BMI_BOYS.percentile.yearly-2dc47d9c.js → BMI_BOYS.percentile.yearly-91fe26b3.js} +0 -0
  347. /package/build/{BMI_BOYS.zscore.monthly-95049c7f.js → BMI_BOYS.zscore.monthly-063ada26.js} +0 -0
  348. /package/build/{BMI_BOYS.zscore.weekly-3656e977.js → BMI_BOYS.zscore.weekly-8b167cf6.js} +0 -0
  349. /package/build/{BMI_BOYS.zscore.yearly-477c08ae.js → BMI_BOYS.zscore.yearly-326bbf3a.js} +0 -0
  350. /package/build/{BMI_GIRLS.percentile.monthly-1daf57cf.js → BMI_GIRLS.percentile.monthly-1f7ca02b.js} +0 -0
  351. /package/build/{BMI_GIRLS.percentile.weekly-7b521ab4.js → BMI_GIRLS.percentile.weekly-7e1f2a7b.js} +0 -0
  352. /package/build/{BMI_GIRLS.percentile.yearly-76eaed95.js → BMI_GIRLS.percentile.yearly-dd5969bd.js} +0 -0
  353. /package/build/{BMI_GIRLS.zscore.monthly-2fd4a2d6.js → BMI_GIRLS.zscore.monthly-c160fc74.js} +0 -0
  354. /package/build/{BMI_GIRLS.zscore.weekly-0d69fad4.js → BMI_GIRLS.zscore.weekly-d219578d.js} +0 -0
  355. /package/build/{BMI_GIRLS.zscore.yearly-98f7094d.js → BMI_GIRLS.zscore.yearly-0ecf38a6.js} +0 -0
  356. /package/build/{ChevronDown-b67eb44c.js → ChevronDown-63ef3541.js} +0 -0
  357. /package/build/{Close-7a7b88ab.js → Close-f0bd28f1.js} +0 -0
  358. /package/build/{Google-1b586428.js → Google-1f45af2c.js} +0 -0
  359. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-3f85cee8.js → HEAD CIRCUM_BOYS.percentile.monthly-2a5f52d8.js} +0 -0
  360. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-8a7ae16f.js → HEAD CIRCUM_BOYS.percentile.weekly-81a2b802.js} +0 -0
  361. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-797be347.js → HEAD CIRCUM_BOYS.percentile.yearly-33b63c1f.js} +0 -0
  362. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-9948ba81.js → HEAD CIRCUM_BOYS.zscore.monthly-70002a39.js} +0 -0
  363. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-e60ac7fb.js → HEAD CIRCUM_BOYS.zscore.weekly-f764218f.js} +0 -0
  364. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-a139c024.js → HEAD CIRCUM_BOYS.zscore.yearly-578624d4.js} +0 -0
  365. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-86847458.js → HEAD CIRCUM_GIRLS.percentile.monthly-32af79ab.js} +0 -0
  366. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-185dbc46.js → HEAD CIRCUM_GIRLS.percentile.weekly-fdd60134.js} +0 -0
  367. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-0b700bdc.js → HEAD CIRCUM_GIRLS.percentile.yearly-36753c1f.js} +0 -0
  368. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-24407e55.js → HEAD CIRCUM_GIRLS.zscore.monthly-52ef90a9.js} +0 -0
  369. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8e9a8b45.js → HEAD CIRCUM_GIRLS.zscore.weekly-fcd5824d.js} +0 -0
  370. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-fe955720.js → HEAD CIRCUM_GIRLS.zscore.yearly-eecaed37.js} +0 -0
  371. /package/build/{HEIGHT_BOYS.percentile.monthly-0e094999.js → HEIGHT_BOYS.percentile.monthly-dec6e9ee.js} +0 -0
  372. /package/build/{HEIGHT_BOYS.percentile.weekly-ab97fc04.js → HEIGHT_BOYS.percentile.weekly-6e052f37.js} +0 -0
  373. /package/build/{HEIGHT_BOYS.percentile.yearly-c973d6c3.js → HEIGHT_BOYS.percentile.yearly-0cfdb15e.js} +0 -0
  374. /package/build/{HEIGHT_BOYS.zscore.monthly-e1378b3d.js → HEIGHT_BOYS.zscore.monthly-4bbd6a50.js} +0 -0
  375. /package/build/{HEIGHT_BOYS.zscore.weekly-eae406b9.js → HEIGHT_BOYS.zscore.weekly-f6acfbac.js} +0 -0
  376. /package/build/{HEIGHT_BOYS.zscore.yearly-2d11b0f9.js → HEIGHT_BOYS.zscore.yearly-b9f88e51.js} +0 -0
  377. /package/build/{HEIGHT_GIRLS.percentile.monthly-0ca114a1.js → HEIGHT_GIRLS.percentile.monthly-28dcfd17.js} +0 -0
  378. /package/build/{HEIGHT_GIRLS.percentile.weekly-46406b7b.js → HEIGHT_GIRLS.percentile.weekly-3fa9f899.js} +0 -0
  379. /package/build/{HEIGHT_GIRLS.percentile.yearly-ab791b08.js → HEIGHT_GIRLS.percentile.yearly-ab5b6095.js} +0 -0
  380. /package/build/{HEIGHT_GIRLS.zscore.monthly-e2dc7662.js → HEIGHT_GIRLS.zscore.monthly-b8f483ba.js} +0 -0
  381. /package/build/{HEIGHT_GIRLS.zscore.weekly-db0b3894.js → HEIGHT_GIRLS.zscore.weekly-8ef6b934.js} +0 -0
  382. /package/build/{HEIGHT_GIRLS.zscore.yearly-06ed2536.js → HEIGHT_GIRLS.zscore.yearly-7664aee7.js} +0 -0
  383. /package/build/{Locale-e2d2dd5e.js → Locale-84b3daf2.js} +0 -0
  384. /package/build/{Visible-43353ecb.js → Visible-77f61d05.js} +0 -0
  385. /package/build/{WEIGHT_BOYS.percentile.monthly-4019c913.js → WEIGHT_BOYS.percentile.monthly-c013cb01.js} +0 -0
  386. /package/build/{WEIGHT_BOYS.percentile.weekly-0e1acb42.js → WEIGHT_BOYS.percentile.weekly-92edc82c.js} +0 -0
  387. /package/build/{WEIGHT_BOYS.percentile.yearly-c8854b73.js → WEIGHT_BOYS.percentile.yearly-8295545e.js} +0 -0
  388. /package/build/{WEIGHT_BOYS.zscore.monthly-82890989.js → WEIGHT_BOYS.zscore.monthly-f715d29f.js} +0 -0
  389. /package/build/{WEIGHT_BOYS.zscore.weekly-bd4fbf76.js → WEIGHT_BOYS.zscore.weekly-d740ddf3.js} +0 -0
  390. /package/build/{WEIGHT_BOYS.zscore.yearly-89e84ced.js → WEIGHT_BOYS.zscore.yearly-acc84cf9.js} +0 -0
  391. /package/build/{WEIGHT_GIRLS.percentile.monthly-49b26458.js → WEIGHT_GIRLS.percentile.monthly-1840ccb8.js} +0 -0
  392. /package/build/{WEIGHT_GIRLS.percentile.weekly-f70a19d6.js → WEIGHT_GIRLS.percentile.weekly-89938479.js} +0 -0
  393. /package/build/{WEIGHT_GIRLS.percentile.yearly-37d760bd.js → WEIGHT_GIRLS.percentile.yearly-04e2c646.js} +0 -0
  394. /package/build/{WEIGHT_GIRLS.zscore.monthly-8c337092.js → WEIGHT_GIRLS.zscore.monthly-feba9800.js} +0 -0
  395. /package/build/{WEIGHT_GIRLS.zscore.weekly-7f62ec82.js → WEIGHT_GIRLS.zscore.weekly-1540d87c.js} +0 -0
  396. /package/build/{WEIGHT_GIRLS.zscore.yearly-baaf7c28.js → WEIGHT_GIRLS.zscore.yearly-dfb5c4f9.js} +0 -0
  397. /package/build/{ageGenerate-4e7e5b6f.js → ageGenerate-d17c592b.js} +0 -0
  398. /package/build/{animation-32763ca6.js → animation-4f35ba19.js} +0 -0
  399. /package/build/{constants-85d566b6.js → constants-1c5b8d3e.js} +0 -0
  400. /package/build/{constants-7e740663.js → constants-47c39adf.js} +0 -0
  401. /package/build/{context-16cd52ae.js → context-4d2c9060.js} +0 -0
  402. /package/build/{dataTransform-060d8290.js → dataTransform-81501801.js} +0 -0
  403. /package/build/esm/{BMI_BOYS.percentile.monthly-c0ee51ab.js → BMI_BOYS.percentile.monthly-697406ad.js} +0 -0
  404. /package/build/esm/{BMI_BOYS.percentile.weekly-e5829515.js → BMI_BOYS.percentile.weekly-096213e7.js} +0 -0
  405. /package/build/esm/{BMI_BOYS.percentile.yearly-cc2fb944.js → BMI_BOYS.percentile.yearly-56fc83c2.js} +0 -0
  406. /package/build/esm/{BMI_BOYS.zscore.monthly-3b26aeb0.js → BMI_BOYS.zscore.monthly-a826ad74.js} +0 -0
  407. /package/build/esm/{BMI_BOYS.zscore.weekly-2985cac1.js → BMI_BOYS.zscore.weekly-4f027259.js} +0 -0
  408. /package/build/esm/{BMI_BOYS.zscore.yearly-cb68c380.js → BMI_BOYS.zscore.yearly-9bfe0691.js} +0 -0
  409. /package/build/esm/{BMI_GIRLS.percentile.monthly-6a271e25.js → BMI_GIRLS.percentile.monthly-165f3593.js} +0 -0
  410. /package/build/esm/{BMI_GIRLS.percentile.weekly-9edb073c.js → BMI_GIRLS.percentile.weekly-eb54cc35.js} +0 -0
  411. /package/build/esm/{BMI_GIRLS.percentile.yearly-d5b901f2.js → BMI_GIRLS.percentile.yearly-8c7d89d0.js} +0 -0
  412. /package/build/esm/{BMI_GIRLS.zscore.monthly-114fb174.js → BMI_GIRLS.zscore.monthly-cb12a63a.js} +0 -0
  413. /package/build/esm/{BMI_GIRLS.zscore.weekly-1de3e192.js → BMI_GIRLS.zscore.weekly-2831f78f.js} +0 -0
  414. /package/build/esm/{BMI_GIRLS.zscore.yearly-21fb324f.js → BMI_GIRLS.zscore.yearly-496ffb18.js} +0 -0
  415. /package/build/esm/{ChevronDown-3c274459.js → ChevronDown-f017c862.js} +0 -0
  416. /package/build/esm/{Close-0d7f9ea3.js → Close-4b477aae.js} +0 -0
  417. /package/build/esm/{Google-169c7823.js → Google-e778c431.js} +0 -0
  418. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-bdb13efd.js → HEAD CIRCUM_BOYS.percentile.monthly-a6acba3b.js} +0 -0
  419. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-036365b1.js → HEAD CIRCUM_BOYS.percentile.weekly-da0cd763.js} +0 -0
  420. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7bed9604.js → HEAD CIRCUM_BOYS.percentile.yearly-3b0245e5.js} +0 -0
  421. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-635b59a6.js → HEAD CIRCUM_BOYS.zscore.monthly-922e8c4b.js} +0 -0
  422. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cd08a3fd.js → HEAD CIRCUM_BOYS.zscore.weekly-8910a240.js} +0 -0
  423. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-361b6599.js → HEAD CIRCUM_BOYS.zscore.yearly-ab698de8.js} +0 -0
  424. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-baa4ccfc.js → HEAD CIRCUM_GIRLS.percentile.monthly-74efcb89.js} +0 -0
  425. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-14f18fda.js → HEAD CIRCUM_GIRLS.percentile.weekly-f0b9cefd.js} +0 -0
  426. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-ac3dccce.js → HEAD CIRCUM_GIRLS.percentile.yearly-89bc6025.js} +0 -0
  427. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-d6e58744.js → HEAD CIRCUM_GIRLS.zscore.monthly-526dccf2.js} +0 -0
  428. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-654cf68a.js → HEAD CIRCUM_GIRLS.zscore.weekly-57477a6c.js} +0 -0
  429. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-081440e0.js → HEAD CIRCUM_GIRLS.zscore.yearly-7007b6ae.js} +0 -0
  430. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-de182efe.js → HEIGHT_BOYS.percentile.monthly-03f421cd.js} +0 -0
  431. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-79c7451c.js → HEIGHT_BOYS.percentile.weekly-bd454e0f.js} +0 -0
  432. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-2349d56d.js → HEIGHT_BOYS.percentile.yearly-6ba33fab.js} +0 -0
  433. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-0dec569e.js → HEIGHT_BOYS.zscore.monthly-230b0ebf.js} +0 -0
  434. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c0439a82.js → HEIGHT_BOYS.zscore.weekly-280e4ba8.js} +0 -0
  435. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-beac512c.js → HEIGHT_BOYS.zscore.yearly-8b7f5f68.js} +0 -0
  436. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-5e052f12.js → HEIGHT_GIRLS.percentile.monthly-4c90afa2.js} +0 -0
  437. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-e128dcd2.js → HEIGHT_GIRLS.percentile.weekly-66447d18.js} +0 -0
  438. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-af20dd96.js → HEIGHT_GIRLS.percentile.yearly-d7134567.js} +0 -0
  439. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-d70c1fbe.js → HEIGHT_GIRLS.zscore.monthly-26daddfd.js} +0 -0
  440. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-aa86f284.js → HEIGHT_GIRLS.zscore.weekly-3a9fe73d.js} +0 -0
  441. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-de52a2a0.js → HEIGHT_GIRLS.zscore.yearly-8baac920.js} +0 -0
  442. /package/build/esm/{Locale-60848a94.js → Locale-c4bb84ad.js} +0 -0
  443. /package/build/esm/{Visible-f78635b8.js → Visible-93942fbd.js} +0 -0
  444. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-9b769185.js → WEIGHT_BOYS.percentile.monthly-9d207cf4.js} +0 -0
  445. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-133a100c.js → WEIGHT_BOYS.percentile.weekly-13f26a4b.js} +0 -0
  446. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-15f0a5f2.js → WEIGHT_BOYS.percentile.yearly-3c130329.js} +0 -0
  447. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-9aa55f4b.js → WEIGHT_BOYS.zscore.monthly-2aa0dfff.js} +0 -0
  448. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-408772b9.js → WEIGHT_BOYS.zscore.weekly-237d1be4.js} +0 -0
  449. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-809a5018.js → WEIGHT_BOYS.zscore.yearly-0bc7b8bb.js} +0 -0
  450. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-44bb1f65.js → WEIGHT_GIRLS.percentile.monthly-a7be339d.js} +0 -0
  451. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-46841279.js → WEIGHT_GIRLS.percentile.weekly-05618327.js} +0 -0
  452. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-d2669b71.js → WEIGHT_GIRLS.percentile.yearly-5822aaa0.js} +0 -0
  453. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-7ffad871.js → WEIGHT_GIRLS.zscore.monthly-b99611c5.js} +0 -0
  454. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-9982ec3e.js → WEIGHT_GIRLS.zscore.weekly-5ded337f.js} +0 -0
  455. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-e0152c61.js → WEIGHT_GIRLS.zscore.yearly-6abbc163.js} +0 -0
  456. /package/build/esm/{ageGenerate-5d5ab800.js → ageGenerate-17985988.js} +0 -0
  457. /package/build/esm/{animation-15580ff2.js → animation-76af17c9.js} +0 -0
  458. /package/build/esm/{constants-9e34bece.js → constants-330c233e.js} +0 -0
  459. /package/build/esm/{constants-72965a08.js → constants-b27357f4.js} +0 -0
  460. /package/build/esm/{context-f5450365.js → context-315b2a5d.js} +0 -0
  461. /package/build/esm/{dataTransform-7f64ef85.js → dataTransform-8ed4f5d3.js} +0 -0
  462. /package/build/esm/{index-bdac8221.js → index-1a620d4b.js} +0 -0
  463. /package/build/esm/{index-3aa5938f.js → index-39a36993.js} +0 -0
  464. /package/build/esm/{index-b7134e86.js → index-50fa3984.js} +0 -0
  465. /package/build/esm/{index-084c3700.js → index-86348364.js} +0 -0
  466. /package/build/esm/{index-e7556929.js → index-8b7aa09b.js} +0 -0
  467. /package/build/esm/{index-b72d5c54.js → index-8cfd5aac.js} +0 -0
  468. /package/build/esm/{index-b88c9307.js → index-a8adf250.js} +0 -0
  469. /package/build/esm/{index-45153a89.js → index-bfc87574.js} +0 -0
  470. /package/build/esm/{index-bbd00e04.js → index-f90bca1f.js} +0 -0
  471. /package/build/esm/{index.styles-d901b2d1.js → index.styles-b6b60a0e.js} +0 -0
  472. /package/build/esm/{localizeNumberFormat-3ac239cf.js → localizeNumberFormat-8e58a406.js} +0 -0
  473. /package/build/esm/{normalizeLink-dcc9bce4.js → normalizeLink-8a280047.js} +0 -0
  474. /package/build/esm/{number-25d0e5b1.js → number-47d560c0.js} +0 -0
  475. /package/build/esm/{paths-adc05d75.js → paths-d466042e.js} +0 -0
  476. /package/build/esm/{shared-0f29f701.js → shared-301ab874.js} +0 -0
  477. /package/build/esm/{translationsContext-da8441dd.js → translationsContext-d6c1456e.js} +0 -0
  478. /package/build/esm/{tslib.es6-3a3c10a3.js → tslib.es6-9b779584.js} +0 -0
  479. /package/build/esm/{types-80c5eb94.js → types-2200fcaa.js} +0 -0
  480. /package/build/esm/{types-149c950f.js → types-464151f7.js} +0 -0
  481. /package/build/esm/{useOutsideClick-696a9b61.js → useOutsideClick-c26f06a1.js} +0 -0
  482. /package/build/esm/{useScrollbarSize-8e291593.js → useScrollbarSize-1fc66885.js} +0 -0
  483. /package/build/esm/{useUniqueId-4c0584d9.js → useUniqueId-f268d449.js} +0 -0
  484. /package/build/esm/{utils-6cb43bb9.js → utils-61550af1.js} +0 -0
  485. /package/build/esm/{utils-bfabe909.js → utils-94271ae2.js} +0 -0
  486. /package/build/{index-693e9755.js → index-0cf397b4.js} +0 -0
  487. /package/build/{index-aa81f25d.js → index-0fb5f838.js} +0 -0
  488. /package/build/{index-04ac1de9.js → index-349720f0.js} +0 -0
  489. /package/build/{index-efea3413.js → index-35f160ea.js} +0 -0
  490. /package/build/{index-5be849e8.js → index-529bc0d4.js} +0 -0
  491. /package/build/{index-e8df9ef6.js → index-688f5061.js} +0 -0
  492. /package/build/{index-4b57c108.js → index-8b9f52b2.js} +0 -0
  493. /package/build/{index-7706d781.js → index-a030c3f6.js} +0 -0
  494. /package/build/{index-109aedbf.js → index-eae33c7c.js} +0 -0
  495. /package/build/{index.styles-cd9255d5.js → index.styles-4046886c.js} +0 -0
  496. /package/build/{localizeNumberFormat-40a74051.js → localizeNumberFormat-f24300d2.js} +0 -0
  497. /package/build/{normalizeLink-e3cc5b9d.js → normalizeLink-0d563b49.js} +0 -0
  498. /package/build/{number-6244d919.js → number-35497471.js} +0 -0
  499. /package/build/{paths-3c4e3c3e.js → paths-3fc0f091.js} +0 -0
  500. /package/build/{shared-d5cc6b07.js → shared-65bf49fc.js} +0 -0
  501. /package/build/{translationsContext-81ddbd0b.js → translationsContext-b1dfef59.js} +0 -0
  502. /package/build/{tslib.es6-6948a14b.js → tslib.es6-a745aee7.js} +0 -0
  503. /package/build/{types-7a95bc2d.js → types-6794e0f4.js} +0 -0
  504. /package/build/{types-10211827.js → types-82df112e.js} +0 -0
  505. /package/build/{useOutsideClick-b05b8afb.js → useOutsideClick-0806a91a.js} +0 -0
  506. /package/build/{useScrollbarSize-fff61d8d.js → useScrollbarSize-bd16a6f3.js} +0 -0
  507. /package/build/{useUniqueId-ad54f285.js → useUniqueId-9f6b725a.js} +0 -0
  508. /package/build/{utils-f72cde38.js → utils-0a7cc5f6.js} +0 -0
  509. /package/build/{utils-f2538dec.js → utils-95b0b2a1.js} +0 -0
@@ -1,27 +1,27 @@
1
- import React__default, { useMemo, useRef, useCallback, forwardRef, useImperativeHandle, useState, useReducer, useEffect } from 'react';
1
+ import React__default, { useMemo, forwardRef, useRef, useImperativeHandle, useCallback, useState, useReducer, useEffect } from 'react';
2
2
  import { Search } from '@hhgtech/icons/core';
3
- import { Skeleton, Input, useMantineTheme, rem, Stack, Flex, Box, ScrollArea, Divider, Tabs } from '@mantine/core';
3
+ import { Skeleton, clsx, Text as Text$1, Select, rem, useMantineTheme, Input, Stack, Flex, Box, Divider, Tabs } from '@mantine/core';
4
4
  import { useDisclosure } from '@mantine/hooks';
5
- import { i as checkMarkIconUrl, P as PinIcon, h as getApiPath, u as useGeolocation } from './utils-df98ceb0.js';
6
- import { a as useOutsideClick } from './useOutsideClick-696a9b61.js';
7
- import { u as useTranslations } from './index-df68f090.js';
5
+ import { i as checkMarkIconUrl, P as PinIcon, h as getApiPath, u as useGeolocation } from './utils-5c21d88d.js';
6
+ import { a as useOutsideClick } from './useOutsideClick-c26f06a1.js';
7
+ import { u as useTranslations } from './index-5adc5b30.js';
8
8
  import debounce from 'lodash/debounce';
9
- import { a as ID_OPTION_CURRENT_LOCATION, L as LOCALIZED_SLUGS, I as ID_OPTION_ALL_LOCATION, S as SLUG_VACIN_ID, C as CLIENT_KEY, M as MAPPING_CLIENT_WITH_SLUG } from './constants-72965a08.js';
9
+ import { a as ID_OPTION_CURRENT_LOCATION, L as LOCALIZED_SLUGS, I as ID_OPTION_ALL_LOCATION, S as SLUG_VACIN_ID, C as CLIENT_KEY, M as MAPPING_CLIENT_WITH_SLUG } from './constants-b27357f4.js';
10
10
  import styled from '@emotion/styled';
11
11
  import { theme } from './miscTheme.js';
12
- import { M as MediaQueries } from './utils-6cb43bb9.js';
13
- import { C as Container } from './index-b7134e86.js';
14
- import { T as Text } from './index-8827fc70.js';
15
- import { C as ChevronDown } from './ChevronDown-3c274459.js';
16
- import { _ as __rest } from './tslib.es6-3a3c10a3.js';
12
+ import { M as MediaQueries } from './utils-61550af1.js';
13
+ import { C as Container } from './index-50fa3984.js';
14
+ import { T as Text } from './index-6c9ca65d.js';
15
+ import { C as ChevronDown } from './ChevronDown-f017c862.js';
16
+ import { _ as __rest } from './tslib.es6-9b779584.js';
17
17
  import { ArrowLeft } from '@hhgtech/icons/arrow';
18
- import { M as Modal } from './index-d408ee51.js';
19
- import { P as PATHS } from './paths-adc05d75.js';
20
- import { B as Button } from './index-00f1332e.js';
21
- import './index-7c0b132c.js';
18
+ import { M as Modal } from './index-f27fbb2b.js';
19
+ import { P as PATHS } from './paths-d466042e.js';
20
+ import { B as Button } from './index-118cc328.js';
21
+ import './index-3c4c3607.js';
22
22
  import 'date-fns/locale';
23
- import './index-2e18580a.js';
24
- import './Locale-60848a94.js';
23
+ import './index-92444079.js';
24
+ import './Locale-c4bb84ad.js';
25
25
  import './constantsSite.js';
26
26
  import './constantsDomainLocales.js';
27
27
  import './constantsRiskScreener.js';
@@ -29,10 +29,10 @@ import './constantsIsProduction.js';
29
29
  import './miscCookieHelper.js';
30
30
  import 'react-loading-skeleton';
31
31
  import 'string-format';
32
- import './translationsContext-da8441dd.js';
33
- import './index-bbd00e04.js';
34
- import './index.styles-d901b2d1.js';
35
- import './shared-0f29f701.js';
32
+ import './translationsContext-d6c1456e.js';
33
+ import './index-f90bca1f.js';
34
+ import './index.styles-b6b60a0e.js';
35
+ import './shared-301ab874.js';
36
36
 
37
37
  const StyledSearchBarWrapper = styled.div ``;
38
38
  const StyleWrapperContainer = styled.div `
@@ -261,8 +261,12 @@ function reducer(state, action) {
261
261
  return Object.assign(Object.assign({}, state), { cities: action.payload });
262
262
  case ActionTypes.DisplayInitialCities:
263
263
  return Object.assign(Object.assign({}, state), { cities: state.initialCities });
264
- case ActionTypes.DisplayInitialSearchResults:
265
- return Object.assign(Object.assign({}, state), { searchResults: state.initialSearchResults, isLoadingSearchResults: false });
264
+ case ActionTypes.DisplayInitialSearchResults: {
265
+ const trimmed = state.searchKeywords.trim();
266
+ const minLen = SEARCH_KEYWORD_MIN_LENGTH[state.locale];
267
+ const shouldShowEmpty = trimmed.length > 0 && trimmed.length <= minLen;
268
+ return Object.assign(Object.assign({}, state), { searchResults: shouldShowEmpty ? {} : state.initialSearchResults, isLoadingSearchResults: false });
269
+ }
266
270
  case ActionTypes.UpdateInitialSearchResults:
267
271
  return Object.assign(Object.assign({}, state), { initialSearchResults: Object.assign(Object.assign({}, state.initialSearchResults), { [action.payload.key]: action.payload.searches }) });
268
272
  case ActionTypes.GrantGeoLocationPermission:
@@ -297,7 +301,7 @@ const StyleSearchInputsWrapper = styled.div `
297
301
  gap: 12px;
298
302
  }
299
303
  `;
300
- const StyleResultWrapper$2 = styled.div `
304
+ const StyleResultWrapper = styled.div `
301
305
  position: absolute;
302
306
  top: calc(100% + 2px);
303
307
  width: 100%;
@@ -460,18 +464,17 @@ dispatch, }) => {
460
464
  return null;
461
465
  return (React__default.createElement(StyledSearchResultWrapper, null,
462
466
  React__default.createElement(StyleResultBody, { className: "search-results__body" },
463
- isLoading &&
464
- Array(3)
465
- .fill(undefined)
466
- .map((_, i) => (React__default.createElement(StyleResultItem, { key: type + 'loading' + i, className: i === 2 ? 'last-item' : '' },
467
- React__default.createElement("div", { className: "image-item" },
468
- React__default.createElement(Skeleton, { height: 48, circle: true, mb: "xl", animate: true })),
469
- React__default.createElement("div", { className: "infor" },
470
- React__default.createElement("div", { className: "title" },
471
- React__default.createElement(Skeleton, { height: 8, mt: 10, radius: "xl", animate: true })),
472
- React__default.createElement("div", { className: "description" },
473
- React__default.createElement("div", { className: "sub-description" },
474
- React__default.createElement(Skeleton, { height: 8, mt: 10, radius: "xl", width: "80%", animate: true }))))))),
467
+ isLoading && (React__default.createElement("div", { className: "skeleton-result" }, Array(3)
468
+ .fill(undefined)
469
+ .map((_, i) => (React__default.createElement(StyleResultItem, { key: type + 'loading' + i, className: i === 2 ? 'last-item' : '' },
470
+ React__default.createElement("div", { className: "image-item" },
471
+ React__default.createElement(Skeleton, { height: 48, circle: true, mb: "xl", animate: true })),
472
+ React__default.createElement("div", { className: "infor" },
473
+ React__default.createElement("div", { className: "title" },
474
+ React__default.createElement(Skeleton, { height: 8, mt: 10, radius: "xl", animate: true })),
475
+ React__default.createElement("div", { className: "description" },
476
+ React__default.createElement("div", { className: "sub-description" },
477
+ React__default.createElement(Skeleton, { height: 8, mt: 10, radius: "xl", width: "80%", animate: true }))))))))),
475
478
  !isLoading && results && results.length > 0 && (React__default.createElement(React__default.Fragment, null, results.map((item, index) => {
476
479
  var _a, _b;
477
480
  const isLastItem = (results.length > 4 && index === 3) ||
@@ -489,7 +492,7 @@ dispatch, }) => {
489
492
  if (index >= 4) {
490
493
  return React__default.createElement(React__default.Fragment, null);
491
494
  }
492
- return (React__default.createElement(StyleResultItem, { key: item.id, className: isLastItem ? 'last-item' : '', onClick: () => handleOnClick(item) },
495
+ return (React__default.createElement(StyleResultItem, { key: item.id, className: clsx(isLastItem ? 'last-item' : '', 'result-item'), onClick: () => handleOnClick(item) },
493
496
  React__default.createElement("div", { className: "image-item" },
494
497
  React__default.createElement("img", { src: item.logo || item.avatar, alt: item.name })),
495
498
  React__default.createElement("div", { className: "infor" },
@@ -498,7 +501,7 @@ dispatch, }) => {
498
501
  typeInformation[type].icon,
499
502
  React__default.createElement("div", { className: "sub-description" }, subDescription)))));
500
503
  }))),
501
- !isLoading && (results === null || results === void 0 ? void 0 : results.length) === 0 && (React__default.createElement(Text, { size: "sm", color: theme.colors.gray400 }, t('booking.searchBar.noResults'))))));
504
+ !isLoading && (results === null || results === void 0 ? void 0 : results.length) === 0 && (React__default.createElement(Text, { size: "sm", color: theme.colors.gray400, className: "noresult-block" }, t('booking.searchBar.noResults'))))));
502
505
  };
503
506
 
504
507
  const SearchResultContent = ({ state, type, isLoading, clientSlug, typeInformation, dispatch, }) => {
@@ -518,7 +521,7 @@ const StyleSearchSpecialtyWrapper = styled.div `
518
521
  gap: 12px;
519
522
  }
520
523
  `;
521
- const StyleResultWrapper$1 = styled.div `
524
+ styled.div `
522
525
  position: absolute;
523
526
  top: calc(100% + 2px);
524
527
  width: calc(100% + 100px);
@@ -600,91 +603,168 @@ const StyledSpecialtyItem = styled.li `
600
603
  }
601
604
  `;
602
605
 
603
- const DoctorIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
604
- React__default.createElement("path", { d: "M8.983 14.333q-1.666 0-2.833-1.166Q4.983 12 4.983 10.333v-.366a3.48 3.48 0 0 1-2.258-1.2 3.57 3.57 0 0 1-.909-2.434V3.1a.58.58 0 0 1 .175-.425.58.58 0 0 1 .425-.175h1.4v-.167a.486.486 0 0 1 .5-.5q.217 0 .36.142a.5.5 0 0 1 .14.358v1.334a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V3.5h-1v2.833q0 1.1.784 1.884Q4.383 9 5.483 9t1.883-.783.784-1.884V3.5h-1v.167a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V2.333a.486.486 0 0 1 .5-.5q.217 0 .358.142a.5.5 0 0 1 .142.358V2.5h1.4a.58.58 0 0 1 .425.175.58.58 0 0 1 .175.425v3.233q0 1.4-.908 2.434a3.5 3.5 0 0 1-2.259 1.2v.366q0 1.25.875 2.126a2.9 2.9 0 0 0 2.125.874q1.25 0 2.125-.874a2.9 2.9 0 0 0 .875-2.126V9.25a1.74 1.74 0 0 1-.858-.609 1.6 1.6 0 0 1-.342-1.008q0-.716.5-1.216t1.2-.5q.716 0 1.217.5.5.5.5 1.216 0 .567-.342 1.008t-.875.609v1.083q0 1.667-1.167 2.834-1.166 1.166-2.833 1.166m3.5-6q.3 0 .509-.208a.67.67 0 0 0 .208-.492q0-.3-.208-.508a.7.7 0 0 0-.509-.208q-.3 0-.5.208a.7.7 0 0 0-.2.508q0 .284.2.492t.5.208", fill: "#595959" })));
605
- const ServiceIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
606
- React__default.createElement("path", { d: "M6.868 9.265v.974q0 .405.284.69.284.283.69.283t.69-.284.284-.69v-.973h.973q.405 0 .69-.284a.94.94 0 0 0 .284-.689.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284h-.973v-.974a.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284.94.94 0 0 0-.689.284.94.94 0 0 0-.285.69v.974h-.973a.94.94 0 0 0-.69.283.94.94 0 0 0-.284.69q0 .405.284.69.285.284.69.284zm-3.46 4.868q-.581 0-.994-.413A1.36 1.36 0 0 1 2 12.725v-6.65a1.4 1.4 0 0 1 .563-1.127l4.434-3.333q.369-.282.844-.282.474 0 .846.282l4.434 3.333q.264.193.413.493.15.3.15.633v6.651q0 .58-.414.995a1.36 1.36 0 0 1-.994.413zm0-1.168h8.868q.105 0 .172-.068a.23.23 0 0 0 .068-.172v-6.65a.2.2 0 0 0-.027-.11.3.3 0 0 0-.07-.085L7.983 2.554a.2.2 0 0 0-.142-.052.2.2 0 0 0-.142.052L3.266 5.88a.3.3 0 0 0-.071.086.2.2 0 0 0-.027.108v6.651q0 .105.068.172a.23.23 0 0 0 .172.068", fill: "#595959" })));
607
- const HospitalIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
608
- React__default.createElement("path", { d: "M8 8q.55 0 .941-.392.393-.391.392-.941 0-.55-.392-.942A1.28 1.28 0 0 0 8 5.333q-.55 0-.942.392a1.28 1.28 0 0 0-.391.942q0 .55.391.941Q7.45 8 8 8m0 4.9q2.032-1.866 3.017-3.392Q12 7.983 12 6.8q0-1.817-1.158-2.975Q9.682 2.667 8 2.667T5.158 3.825Q4 4.983 4 6.8q0 1.184.983 2.708Q5.966 11.034 8 12.9m0 1.517a.8.8 0 0 1-.5-.183q-2.433-2.151-3.633-3.992T2.667 6.8q0-2.5 1.608-3.983Q5.883 1.332 8 1.333q2.116 0 3.725 1.484T13.333 6.8q0 1.6-1.2 3.442-1.2 1.841-3.633 3.991a.8.8 0 0 1-.5.184", fill: "#8C8C8C" })));
609
- const SpecialtyIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16" },
610
- React__default.createElement("path", { d: "M3.833.5a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667M10.5.5c-.92 0-1.667.746-1.667 1.667V5.5c0 .92.746 1.667 1.667 1.667h3.333c.921 0 1.667-.746 1.667-1.667V2.167C15.5 1.246 14.754.5 13.833.5zM3.833 8.833a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667m8.334 0a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667", fill: "#9AA2AC" })));
611
-
612
- const SearchSpecialty = ({ state, isMobile, debouncedFetchSearchResults, selectedLocation, onSpecialtyClick, dispatch, }) => {
613
- var _a;
606
+ const CustomSelectItem$1 = forwardRef((_a, ref) => {
607
+ var { label, value, specialty } = _a, others = __rest(_a, ["label", "value", "specialty"]);
608
+ return (React__default.createElement("div", Object.assign({ ref: ref }, others),
609
+ React__default.createElement(StyledSpecialtyItem, { key: value,
610
+ // onClick={(evt) => {
611
+ // evt.nativeEvent.stopImmediatePropagation()
612
+ // if (onSpecialtyClick) {
613
+ // onSpecialtyClick({
614
+ // ...specialty,
615
+ // total_doctor: 0,
616
+ // })
617
+ // }
618
+ // }}
619
+ role: "button", tabIndex: 0, "aria-label": `Select ${label} as location` },
620
+ React__default.createElement("div", { className: "image-item" },
621
+ React__default.createElement("img", { src: specialty.thumbnail, alt: label })),
622
+ React__default.createElement(Text$1, { size: "md" }, label))));
623
+ });
624
+
625
+ const SearchSpecialty = ({ state,
626
+ // debouncedFetchSearchResults,
627
+ onSpecialtyClick, dispatch, }) => {
628
+ var _a, _b;
614
629
  const { t, locale } = useTranslations();
615
630
  const inputSpecialtyWrapperRef = useRef(null);
616
631
  const slugs = useMemo(() => LOCALIZED_SLUGS[locale], [locale]);
617
- const styleSpecialties = useMemo(() => {
618
- return {
619
- wrapper: {
620
- '&:after': {
621
- content: '""',
622
- width: '1px',
623
- height: '20px',
624
- backgroundColor: '#E4E8EC',
625
- position: 'absolute',
626
- right: 0,
627
- top: '13px',
628
- },
629
- },
630
- input: {
631
- border: isMobile ? 'border: 1px solid #d9d9d9' : 'none',
632
- height: isMobile ? '40px' : '46px !important',
633
- paddingRight: '30px',
634
- '&:focus': {
635
- boxShadow: isMobile ? 'box-shadow: 0px 0px 0px 2px #91caff' : 'none',
636
- },
637
- },
638
- rightSection: {
639
- width: '30px',
640
- svg: {
641
- fontSize: '20px',
642
- },
643
- },
644
- };
645
- }, [isMobile]);
646
- const handleSearchSpecialtyInputChange = useCallback(function handleSearchSpecialtyInputChange(value) {
647
- // dispatch({ type: ActionTypes.ChangeInputLocation, payload: value })
648
- // if (value.trim().length > SEARCH_KEYWORD_MIN_LENGTH[state.locale]) {
649
- // debouncedFetchSearchResults(value.trim())
650
- // } else {
651
- // debouncedFetchSearchResults.cancel()
652
- // dispatch({ type: ActionTypes.DisplayInitialCities })
653
- // }
654
- console.log(value);
655
- }, [debouncedFetchSearchResults, dispatch]);
632
+ // const styleSpecialties = useMemo(() => {
633
+ // return {
634
+ // wrapper: {
635
+ // '&:after': {
636
+ // content: '""',
637
+ // width: '1px',
638
+ // height: '20px',
639
+ // backgroundColor: '#E4E8EC',
640
+ // position: 'absolute',
641
+ // right: 0,
642
+ // top: '13px',
643
+ // },
644
+ // },
645
+ // input: {
646
+ // border: isMobile ? 'border: 1px solid #d9d9d9' : 'none',
647
+ // height: isMobile ? '40px' : '46px !important',
648
+ // paddingRight: '30px',
649
+ // '&:focus': {
650
+ // boxShadow: isMobile ? 'box-shadow: 0px 0px 0px 2px #91caff' : 'none',
651
+ // },
652
+ // },
653
+ // rightSection: {
654
+ // width: '30px',
655
+ // svg: {
656
+ // fontSize: '20px',
657
+ // },
658
+ // },
659
+ // } as any
660
+ // }, [isMobile])
661
+ // const handleSearchSpecialtyInputChange = useCallback(
662
+ // function handleSearchSpecialtyInputChange(value: string) {
663
+ // // dispatch({ type: ActionTypes.ChangeInputLocation, payload: value })
664
+ // // if (value.trim().length > SEARCH_KEYWORD_MIN_LENGTH[state.locale]) {
665
+ // // debouncedFetchSearchResults(value.trim())
666
+ // // } else {
667
+ // // debouncedFetchSearchResults.cancel()
668
+ // // dispatch({ type: ActionTypes.DisplayInitialCities })
669
+ // // }
670
+ // console.log(value)
671
+ // },
672
+ // [debouncedFetchSearchResults, dispatch],
673
+ // )
656
674
  useOutsideClick(inputSpecialtyWrapperRef, () => {
657
675
  dispatch({ type: ActionTypes.ClickOutsideInputSpecialty });
658
676
  });
677
+ const specialtyData = [
678
+ {
679
+ name: t('booking.searchBar.allSpecialties'),
680
+ id: -1,
681
+ thumbnail: '',
682
+ total_doctor: 0,
683
+ slug: slugs.SPECIALTIES,
684
+ },
685
+ ...state.allSpecialties,
686
+ ];
687
+ const stateValue = (_b = (_a = state === null || state === void 0 ? void 0 : state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null;
688
+ const defaultValue = stateValue === null ? undefined : String(stateValue);
659
689
  return (React__default.createElement(StyleSearchSpecialtyWrapper, { ref: inputSpecialtyWrapperRef },
660
- React__default.createElement(Input.Wrapper, null,
661
- React__default.createElement(Input, { size: isMobile ? 'md' : 'lg', placeholder: t('booking.searchPopup.specialties'), value: ((_a = state === null || state === void 0 ? void 0 : state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.name) || '', rightSection: React__default.createElement(ChevronDown, null), styles: styleSpecialties, onFocus: () => dispatch({ type: ActionTypes.FocusInputSpecialty }), onChange: (event) => {
662
- handleSearchSpecialtyInputChange(event.target.value);
663
- } })),
664
- state.focused === 'specialty' && (React__default.createElement(StyleResultWrapper$1, null,
665
- React__default.createElement(StyledSpecialtyItem, { key: "all-location", role: "button", tabIndex: 0, onClick: () => {
666
- if (onSpecialtyClick) {
667
- onSpecialtyClick({
668
- name: t('booking.searchBar.allSpecialties'),
669
- id: -1,
670
- thumbnail: '',
671
- total_doctor: 0,
672
- slug: slugs.SPECIALTIES,
673
- });
674
- }
675
- } },
676
- React__default.createElement("div", { className: "image-item" },
677
- React__default.createElement(SpecialtyIcon, null)),
678
- React__default.createElement(Text, { size: "md" }, t('booking.searchBar.allSpecialties'))),
679
- state.allSpecialties.map((specialty) => (React__default.createElement(StyledSpecialtyItem, { key: specialty.id, onClick: (evt) => {
680
- evt.nativeEvent.stopImmediatePropagation();
681
- if (onSpecialtyClick) {
682
- onSpecialtyClick(Object.assign(Object.assign({}, specialty), { total_doctor: 0 }));
683
- }
684
- }, role: "button", tabIndex: 0, "aria-label": `Select ${specialty.name} as location`, isSelected: (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) === specialty.id },
685
- React__default.createElement("div", { className: "image-item" },
686
- React__default.createElement("img", { src: specialty.thumbnail, alt: specialty.name })),
687
- React__default.createElement(Text, { size: "md" }, specialty.name))))))));
690
+ React__default.createElement(Select, { key: defaultValue !== null && defaultValue !== void 0 ? defaultValue : 'no-selected-specialty', defaultValue: defaultValue, placeholder: t('booking.searchPopup.specialties'), searchable: true, nothingFound: t('common.noResult'), maxDropdownHeight: 340, dropdownPosition: "bottom", data: specialtyData.map((specialty) => ({
691
+ value: String(specialty.id),
692
+ label: specialty.name,
693
+ specialty,
694
+ })), rightSection: React__default.createElement(ChevronDown, { style: { width: 20, height: 20 } }), styles: (theme) => ({
695
+ dropdown: {
696
+ left: '0 !important',
697
+ border: 0,
698
+ marginTop: -7,
699
+ borderRadius: 0,
700
+ '& [data-mantine-scrollbar]': {
701
+ '&[data-orientation="vertical"]': {
702
+ width: '6px',
703
+ },
704
+ },
705
+ [theme.fn.largerThan('sm')]: {
706
+ minWidth: 264,
707
+ width: `264px !important`,
708
+ },
709
+ },
710
+ item: {
711
+ padding: 0,
712
+ '&[data-selected]': {
713
+ '&, &:hover': {
714
+ backgroundColor: 'transparent',
715
+ color: 'inherit',
716
+ },
717
+ },
718
+ '&[data-hovered]': {
719
+ backgroundColor: 'transparent',
720
+ },
721
+ },
722
+ input: {
723
+ '&:not(.mantine-Textarea-input)': {
724
+ height: 40,
725
+ fontSize: rem(14),
726
+ paddingLeft: 14,
727
+ paddingRight: 14,
728
+ [theme.fn.largerThan('sm')]: {
729
+ height: 46,
730
+ fontSize: rem(16),
731
+ paddingLeft: 16,
732
+ paddingRight: 16,
733
+ borderColor: 'transparent',
734
+ },
735
+ '&:focus, &:focus-within': {
736
+ outline: 'none',
737
+ boxShadow: 'none',
738
+ },
739
+ },
740
+ },
741
+ itemsWrapper: {
742
+ padding: 0,
743
+ },
744
+ wrapper: {
745
+ [theme.fn.largerThan('sm')]: {
746
+ position: 'relative',
747
+ '&:after': {
748
+ content: '""',
749
+ width: '1px',
750
+ height: '20px',
751
+ backgroundColor: '#E4E8EC',
752
+ position: 'absolute',
753
+ right: 0,
754
+ top: '13px',
755
+ },
756
+ },
757
+ },
758
+ }), itemComponent: CustomSelectItem$1, filter: (value, item) => item.label.toLowerCase().includes(value.toLowerCase().trim()), onChange: (value) => {
759
+ if (value == null)
760
+ return;
761
+ const specialty = specialtyData.find((i) => String(i.id) === value);
762
+ if (!specialty)
763
+ return;
764
+ onSpecialtyClick(Object.assign(Object.assign(Object.assign({}, specialty), { thumbnail: specialty.thumbnail || '' }), (Number(value) !== -1 && {
765
+ total_doctor: 0,
766
+ })));
767
+ } })));
688
768
  };
689
769
 
690
770
  const SearchInputs = forwardRef(({ state, type, isMobile, isLoading, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, hideSpecialtySelection = false, clientSlug = '', onSearch, onFocusInput, onEnterSearch, dispatch, onlyShowSearchBox, onChangeSpecialty, }, ref) => {
@@ -747,18 +827,18 @@ const SearchInputs = forwardRef(({ state, type, isMobile, isLoading, initalSearc
747
827
  const styleInput = useMemo(() => {
748
828
  return {
749
829
  icon: {
750
- left: '165px',
830
+ left: '205px',
751
831
  },
752
832
  input: {
753
833
  color: '#262626',
754
834
  '&[data-with-icon="true"]': {
755
- paddingLeft: '205px',
835
+ paddingLeft: '245px',
756
836
  paddingRight: '16px',
757
837
  },
758
838
  },
759
839
  rightSection: {
760
840
  left: 0,
761
- width: '165px',
841
+ width: '205px',
762
842
  padding: '1px',
763
843
  },
764
844
  };
@@ -796,8 +876,7 @@ const SearchInputs = forwardRef(({ state, type, isMobile, isLoading, initalSearc
796
876
  var _a;
797
877
  dispatch({ type: ActionTypes.SelectSpecialty, payload: specialty });
798
878
  onChangeSpecialty === null || onChangeSpecialty === void 0 ? void 0 : onChangeSpecialty(specialty);
799
- // Sau khi chọn specialty, thường sẽ muốn focus lại vào input search
800
- (_a = internalInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
879
+ !isMobile && ((_a = internalInputRef.current) === null || _a === void 0 ? void 0 : _a.focus());
801
880
  }, [dispatch, onChangeSpecialty]);
802
881
  const inputOnKeyDown = useCallback((e) => {
803
882
  if (e.key === 'Enter') {
@@ -831,7 +910,7 @@ const SearchInputs = forwardRef(({ state, type, isMobile, isLoading, initalSearc
831
910
  dispatch({ type: ActionTypes.FocusInputSearch });
832
911
  onFocusInput === null || onFocusInput === void 0 ? void 0 : onFocusInput();
833
912
  }, onKeyDown: inputOnKeyDown }, gaAttributes, { rightSection: hideSpecialtySelection ? (React__default.createElement(React__default.Fragment, null)) : (!onlyShowSearchBox && (React__default.createElement(SearchSpecialty, { state: state, isMobile: isMobile, dispatch: dispatch, debouncedFetchSearchResults: debouncedFetchSearchResults, onSpecialtyClick: handleSpecialtyClick }))) })))))),
834
- !isMobile && (React__default.createElement(StyleResultWrapper$2, null,
913
+ !isMobile && (React__default.createElement(StyleResultWrapper, null,
835
914
  React__default.createElement(SearchResultContent, { type: type, state: state, dispatch: dispatch, isLoading: isLoading, typeInformation: typeInformation, clientSlug: clientSlug })))))));
836
915
  });
837
916
  SearchInputs.displayName = 'SearchInputs';
@@ -844,6 +923,16 @@ const ModalSearchResult = (_a) => {
844
923
  borderRadius: 0,
845
924
  height: '100%',
846
925
  '.search-results__body': { padding: 0 },
926
+ '.result-item': {
927
+ paddingLeft: 16,
928
+ paddingRight: 16,
929
+ },
930
+ '.noresult-block': {
931
+ padding: 16,
932
+ },
933
+ '.skeleton-result': {
934
+ padding: 16,
935
+ },
847
936
  },
848
937
  header: { display: 'none' },
849
938
  } }),
@@ -864,7 +953,7 @@ const StyleSearchLocationWrapper = styled.div `
864
953
  gap: 12px;
865
954
  }
866
955
  `;
867
- const StyleResultWrapper = styled.div `
956
+ styled.div `
868
957
  position: absolute;
869
958
  top: calc(100% + 2px);
870
959
  width: 100%;
@@ -887,17 +976,6 @@ const StyledLocationItem = styled.div `
887
976
  gap: 14px;
888
977
  overflow: hidden;
889
978
 
890
- ${({ isSelected }) => isSelected &&
891
- `
892
- &::after {
893
- content: ${checkMarkIconUrl};
894
- top: 50%;
895
- right: 18px;
896
- position: absolute;
897
- transform: translateY(-50%);
898
- }
899
- `}
900
-
901
979
  & + li::before {
902
980
  content: '';
903
981
  position: absolute;
@@ -932,9 +1010,29 @@ const StyledPinIcon = styled(PinIcon) `
932
1010
  flex: 0 0 12px;
933
1011
  `;
934
1012
 
935
- const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, selectedLocation, trackingAttributes, onLocationClick, dispatch, }) => {
1013
+ const CustomSelectItem = forwardRef((_a, ref) => {
1014
+ var { label, value } = _a, others = __rest(_a, ["label", "value"]);
1015
+ return (React__default.createElement("div", Object.assign({ ref: ref }, others),
1016
+ React__default.createElement(StyledLocationItem, { key: value, role: "button", tabIndex: 0, "aria-label": `Select ${label} as location`, className: "location-item" },
1017
+ React__default.createElement(StyledPinIcon, { color: theme.colors.neutral400 }),
1018
+ React__default.createElement(Text$1, { size: "md" }, label))));
1019
+ });
1020
+
1021
+ const SearchLocation = ({ state, debouncedFetchCitiesByKeyword, selectedLocation, trackingAttributes, onLocationClick, dispatch, }) => {
1022
+ var _a;
936
1023
  const { t, locale } = useTranslations();
937
1024
  const inputLocationWrapperRef = useRef(null);
1025
+ const citiesData = useMemo(() => {
1026
+ var _a;
1027
+ return [
1028
+ {
1029
+ name: t('booking.searchBar.allLocations'),
1030
+ id: ID_OPTION_ALL_LOCATION,
1031
+ slug: (_a = LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.ALL,
1032
+ },
1033
+ ...state.cities,
1034
+ ];
1035
+ }, [state.cities, t, locale]);
938
1036
  const gaAttributes = useMemo(() => {
939
1037
  if (trackingAttributes) {
940
1038
  return {
@@ -943,9 +1041,7 @@ const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, select
943
1041
  'data-event-label': trackingAttributes.dataEventLabel,
944
1042
  };
945
1043
  }
946
- else {
947
- return {};
948
- }
1044
+ return {};
949
1045
  }, [trackingAttributes]);
950
1046
  const handleSearchLocationInputChange = useCallback(function handleSearchLocationInputChange(value) {
951
1047
  dispatch({ type: ActionTypes.ChangeInputLocation, payload: value });
@@ -956,39 +1052,101 @@ const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, select
956
1052
  debouncedFetchCitiesByKeyword.cancel();
957
1053
  dispatch({ type: ActionTypes.DisplayInitialCities });
958
1054
  }
959
- }, [debouncedFetchCitiesByKeyword, dispatch]);
1055
+ }, [debouncedFetchCitiesByKeyword, dispatch, state.locale]);
960
1056
  useOutsideClick(inputLocationWrapperRef, () => {
961
1057
  dispatch({ type: ActionTypes.ClickOutsideInputLocation });
962
1058
  });
1059
+ const stateValue = (_a = selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) !== null && _a !== void 0 ? _a : null;
1060
+ const defaultValue = stateValue === null ? undefined : String(stateValue);
963
1061
  return (React__default.createElement(StyleSearchLocationWrapper, { ref: inputLocationWrapperRef },
964
- React__default.createElement(Input.Wrapper, null,
965
- React__default.createElement(Input, Object.assign({ size: isMobile ? 'md' : 'lg', placeholder: "Search location", value: state.searchLocationKeywords, onFocus: () => dispatch({ type: ActionTypes.FocusInputLocation }), onChange: (event) => {
966
- handleSearchLocationInputChange(event.target.value);
967
- } }, gaAttributes))),
968
- state.focused === 'location' && (React__default.createElement(StyleResultWrapper, null,
969
- React__default.createElement(ScrollArea, { scrollbarSize: 6, styles: { viewport: { maxHeight: 400 } } },
970
- React__default.createElement(StyledLocationItem, { key: "all-location", role: "button", tabIndex: 0, onClick: () => {
971
- var _a;
972
- if (onLocationClick) {
973
- onLocationClick({
974
- name: t('booking.searchBar.allLocations'),
975
- id: ID_OPTION_ALL_LOCATION,
976
- slug: (_a = LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.ALL,
977
- });
978
- }
979
- } },
980
- React__default.createElement(StyledPinIcon, { color: theme.colors.neutral400 }),
981
- React__default.createElement(Text, { size: "md" }, t('booking.searchBar.allLocations'))),
982
- state.cities.map((city) => (React__default.createElement(StyledLocationItem, { key: city.id, onClick: (evt) => {
983
- evt.nativeEvent.stopImmediatePropagation();
984
- if (onLocationClick) {
985
- onLocationClick(city);
986
- }
987
- }, role: "button", tabIndex: 0, "aria-label": `Select ${city.name} as location`, isSelected: (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) === city.id },
988
- React__default.createElement(StyledPinIcon, { color: theme.colors.neutral400 }),
989
- React__default.createElement(Text, { size: "md" }, city.name)))))))));
1062
+ React__default.createElement(Select, Object.assign({ key: defaultValue !== null && defaultValue !== void 0 ? defaultValue : 'no-selected-location', defaultValue: defaultValue, placeholder: t('booking.searchBar.allLocations'), searchable: true, onSearchChange: (value) => {
1063
+ handleSearchLocationInputChange(value);
1064
+ }, onFocus: () => {
1065
+ dispatch({ type: ActionTypes.DisplayInitialCities });
1066
+ }, onDropdownClose: () => {
1067
+ debouncedFetchCitiesByKeyword.cancel();
1068
+ dispatch({ type: ActionTypes.DisplayInitialCities });
1069
+ }, nothingFound: t('common.noResult'), maxDropdownHeight: 340, dropdownPosition: "bottom", data: citiesData.map((city) => ({
1070
+ value: String(city.id),
1071
+ label: city.name,
1072
+ city,
1073
+ })), rightSection: React__default.createElement(React__default.Fragment, null) }, gaAttributes, { styles: (theme) => ({
1074
+ item: {
1075
+ padding: 0,
1076
+ '&[data-selected]': {
1077
+ '&, &:hover': {
1078
+ backgroundColor: 'transparent',
1079
+ color: 'inherit',
1080
+ },
1081
+ '.location-item': {
1082
+ '&::after': {
1083
+ content: checkMarkIconUrl,
1084
+ top: '50%',
1085
+ right: 19,
1086
+ position: 'absolute',
1087
+ transform: 'translateY(-50%)',
1088
+ },
1089
+ },
1090
+ },
1091
+ '&[data-hovered]': {
1092
+ backgroundColor: 'transparent',
1093
+ },
1094
+ },
1095
+ input: {
1096
+ '&:not(.mantine-Textarea-input)': {
1097
+ height: 48,
1098
+ fontSize: rem(16),
1099
+ paddingLeft: 16,
1100
+ paddingRight: 16,
1101
+ [theme.fn.smallerThan('sm')]: {
1102
+ height: 40,
1103
+ fontSize: rem(14),
1104
+ paddingLeft: 14,
1105
+ paddingRight: 14,
1106
+ },
1107
+ },
1108
+ },
1109
+ itemsWrapper: {
1110
+ padding: 0,
1111
+ },
1112
+ dropdown: {
1113
+ left: '0 !important',
1114
+ border: 0,
1115
+ marginTop: -7,
1116
+ borderRadius: 0,
1117
+ '& ::-webkit-scrollbar': {
1118
+ width: '6px',
1119
+ height: '6px',
1120
+ },
1121
+ },
1122
+ }), itemComponent: CustomSelectItem,
1123
+ // 3. Logic quan trọng nhất: Luôn trả về true để bỏ qua bộ lọc mặc định của Mantine
1124
+ // Vì chúng ta fetch data từ API hoặc dùng toàn bộ list ban đầu
1125
+ filter: () => true, onChange: (value) => {
1126
+ if (value == null)
1127
+ return;
1128
+ const city = citiesData.find((i) => String(i.id) === value);
1129
+ if (!city)
1130
+ return;
1131
+ onLocationClick(city);
1132
+ debouncedFetchCitiesByKeyword.cancel();
1133
+ dispatch({ type: ActionTypes.DisplayInitialCities });
1134
+ setTimeout(() => {
1135
+ var _a, _b;
1136
+ (_b = (_a = inputLocationWrapperRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('input')) === null || _b === void 0 ? void 0 : _b.blur();
1137
+ }, 0);
1138
+ } }))));
990
1139
  };
991
1140
 
1141
+ const DoctorIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1142
+ React__default.createElement("path", { d: "M8.983 14.333q-1.666 0-2.833-1.166Q4.983 12 4.983 10.333v-.366a3.48 3.48 0 0 1-2.258-1.2 3.57 3.57 0 0 1-.909-2.434V3.1a.58.58 0 0 1 .175-.425.58.58 0 0 1 .425-.175h1.4v-.167a.486.486 0 0 1 .5-.5q.217 0 .36.142a.5.5 0 0 1 .14.358v1.334a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V3.5h-1v2.833q0 1.1.784 1.884Q4.383 9 5.483 9t1.883-.783.784-1.884V3.5h-1v.167a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V2.333a.486.486 0 0 1 .5-.5q.217 0 .358.142a.5.5 0 0 1 .142.358V2.5h1.4a.58.58 0 0 1 .425.175.58.58 0 0 1 .175.425v3.233q0 1.4-.908 2.434a3.5 3.5 0 0 1-2.259 1.2v.366q0 1.25.875 2.126a2.9 2.9 0 0 0 2.125.874q1.25 0 2.125-.874a2.9 2.9 0 0 0 .875-2.126V9.25a1.74 1.74 0 0 1-.858-.609 1.6 1.6 0 0 1-.342-1.008q0-.716.5-1.216t1.2-.5q.716 0 1.217.5.5.5.5 1.216 0 .567-.342 1.008t-.875.609v1.083q0 1.667-1.167 2.834-1.166 1.166-2.833 1.166m3.5-6q.3 0 .509-.208a.67.67 0 0 0 .208-.492q0-.3-.208-.508a.7.7 0 0 0-.509-.208q-.3 0-.5.208a.7.7 0 0 0-.2.508q0 .284.2.492t.5.208", fill: "#595959" })));
1143
+ const ServiceIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1144
+ React__default.createElement("path", { d: "M6.868 9.265v.974q0 .405.284.69.284.283.69.283t.69-.284.284-.69v-.973h.973q.405 0 .69-.284a.94.94 0 0 0 .284-.689.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284h-.973v-.974a.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284.94.94 0 0 0-.689.284.94.94 0 0 0-.285.69v.974h-.973a.94.94 0 0 0-.69.283.94.94 0 0 0-.284.69q0 .405.284.69.285.284.69.284zm-3.46 4.868q-.581 0-.994-.413A1.36 1.36 0 0 1 2 12.725v-6.65a1.4 1.4 0 0 1 .563-1.127l4.434-3.333q.369-.282.844-.282.474 0 .846.282l4.434 3.333q.264.193.413.493.15.3.15.633v6.651q0 .58-.414.995a1.36 1.36 0 0 1-.994.413zm0-1.168h8.868q.105 0 .172-.068a.23.23 0 0 0 .068-.172v-6.65a.2.2 0 0 0-.027-.11.3.3 0 0 0-.07-.085L7.983 2.554a.2.2 0 0 0-.142-.052.2.2 0 0 0-.142.052L3.266 5.88a.3.3 0 0 0-.071.086.2.2 0 0 0-.027.108v6.651q0 .105.068.172a.23.23 0 0 0 .172.068", fill: "#595959" })));
1145
+ const HospitalIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1146
+ React__default.createElement("path", { d: "M8 8q.55 0 .941-.392.393-.391.392-.941 0-.55-.392-.942A1.28 1.28 0 0 0 8 5.333q-.55 0-.942.392a1.28 1.28 0 0 0-.391.942q0 .55.391.941Q7.45 8 8 8m0 4.9q2.032-1.866 3.017-3.392Q12 7.983 12 6.8q0-1.817-1.158-2.975Q9.682 2.667 8 2.667T5.158 3.825Q4 4.983 4 6.8q0 1.184.983 2.708Q5.966 11.034 8 12.9m0 1.517a.8.8 0 0 1-.5-.183q-2.433-2.151-3.633-3.992T2.667 6.8q0-2.5 1.608-3.983Q5.883 1.332 8 1.333q2.116 0 3.725 1.484T13.333 6.8q0 1.6-1.2 3.442-1.2 1.841-3.633 3.991a.8.8 0 0 1-.5.184", fill: "#8C8C8C" })));
1147
+ const SpecialtyIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16" },
1148
+ React__default.createElement("path", { d: "M3.833.5a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667M10.5.5c-.92 0-1.667.746-1.667 1.667V5.5c0 .92.746 1.667 1.667 1.667h3.333c.921 0 1.667-.746 1.667-1.667V2.167C15.5 1.246 14.754.5 13.833.5zM3.833 8.833a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667m8.334 0a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667", fill: "#9AA2AC" })));
1149
+
992
1150
  const StyleSpecialtiesWrapper = styled.div `
993
1151
  display: flex;
994
1152
  flex-wrap: wrap;
@@ -1554,6 +1712,7 @@ gaTrackingSearchBar, gaTrackingLocationSearch, autoCompleteDisabled = false, inp
1554
1712
  triggerSearchWhenChangeFilter, routerPush, onGeoLocationPermissionChange,
1555
1713
  // onSearch,
1556
1714
  onChangeLocation, }) => {
1715
+ var _a, _b;
1557
1716
  const { locale, t } = useTranslations();
1558
1717
  const wrapperRef = useRef(null);
1559
1718
  const searchInputDesktopRef = useRef(null);
@@ -1612,17 +1771,6 @@ onChangeLocation, }) => {
1612
1771
  }, [currentTab]);
1613
1772
  const debouncedFetchCitiesByKeyword = useMemo(() => debounce(fetchCitiesByKeyword, 400), [fetchCitiesByKeyword]);
1614
1773
  const debouncedFetchSearchResults = useMemo(() => debounce(fetchSearchResults, 400), [fetchSearchResults]);
1615
- const handleLocationClick = useCallback(function handleLocationClick(city) {
1616
- var _a;
1617
- triggerSearchWhenChangeFilter &&
1618
- onClickSearchByKeyword({ locationSlug: city.slug });
1619
- dispatch({ type: ActionTypes.SelectLocation, payload: city });
1620
- // focusSearchInput()
1621
- !isMobile && ((_a = searchInputDesktopRef.current) === null || _a === void 0 ? void 0 : _a.focus());
1622
- if (onChangeLocation) {
1623
- onChangeLocation(city);
1624
- }
1625
- }, [t, dispatch]);
1626
1774
  // function focusSearchInput() {
1627
1775
  // if (wrapperRef.current) {
1628
1776
  // wrapperRef.current
@@ -1630,7 +1778,7 @@ onChangeLocation, }) => {
1630
1778
  // ?.focus()
1631
1779
  // }
1632
1780
  // }
1633
- function onClickSearchByKeyword({ locationSlug, specialtyId, } = {}) {
1781
+ const onClickSearchByKeyword = useCallback(function onClickSearchByKeyword({ locationSlug, specialtyId, } = {}) {
1634
1782
  var _a;
1635
1783
  close();
1636
1784
  let url = '';
@@ -1656,7 +1804,31 @@ onChangeLocation, }) => {
1656
1804
  if (url) {
1657
1805
  dispatch({ type: ActionTypes.NavigateTo, payload: url });
1658
1806
  }
1659
- }
1807
+ }, [
1808
+ clientSlug,
1809
+ close,
1810
+ currentTab,
1811
+ dispatch,
1812
+ locale,
1813
+ searchKeywords,
1814
+ selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.slug,
1815
+ (_a = state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.id,
1816
+ typeInformation,
1817
+ ]);
1818
+ const handleLocationClick = useCallback(function handleLocationClick(city) {
1819
+ triggerSearchWhenChangeFilter &&
1820
+ onClickSearchByKeyword({ locationSlug: city.slug });
1821
+ dispatch({ type: ActionTypes.SelectLocation, payload: city });
1822
+ if (onChangeLocation) {
1823
+ onChangeLocation(city);
1824
+ }
1825
+ }, [
1826
+ dispatch,
1827
+ isMobile,
1828
+ onChangeLocation,
1829
+ onClickSearchByKeyword,
1830
+ triggerSearchWhenChangeFilter,
1831
+ ]);
1660
1832
  useOutsideClick(inputSearchSpecialtyWrapperRef, () => {
1661
1833
  !isMobile &&
1662
1834
  dispatch({ type: ActionTypes.ClickOutsideInputSearchSpecialty });
@@ -1682,6 +1854,7 @@ onChangeLocation, }) => {
1682
1854
  fetchCitiesByLocation({ coordinates: state.geoLocationCoordinates });
1683
1855
  }, [geoLocationPermission]);
1684
1856
  useEffect(() => {
1857
+ var _a;
1685
1858
  const defaultSpecialty = initSpecialty
1686
1859
  ? initSpecialty
1687
1860
  : {
@@ -1691,13 +1864,22 @@ onChangeLocation, }) => {
1691
1864
  total_doctor: 0,
1692
1865
  slug: slugs.SPECIALTIES,
1693
1866
  };
1867
+ if (initSpecialty) {
1868
+ if (((_a = state.selectedSpecialty) === null || _a === void 0 ? void 0 : _a.id) !== initSpecialty.id) {
1869
+ dispatch({
1870
+ type: ActionTypes.SelectSpecialty,
1871
+ payload: initSpecialty,
1872
+ });
1873
+ }
1874
+ return;
1875
+ }
1694
1876
  if (!state.selectedSpecialty) {
1695
1877
  dispatch({
1696
1878
  type: ActionTypes.SelectSpecialty,
1697
1879
  payload: defaultSpecialty,
1698
1880
  });
1699
1881
  }
1700
- }, [initSpecialty, state.selectedSpecialty]);
1882
+ }, [initSpecialty, (_b = state.selectedSpecialty) === null || _b === void 0 ? void 0 : _b.id, slugs.SPECIALTIES, t]);
1701
1883
  useEffect(() => {
1702
1884
  fetchAllSpecialties();
1703
1885
  }, []);
@@ -1767,7 +1949,11 @@ onChangeLocation, }) => {
1767
1949
  isMobile && (React__default.createElement(ModalSearchResult, { keepMounted: true, opened: opened, onClose: close, closeModal: close, searchInputEle: React__default.createElement(Flex, { align: 'center', gap: 8 },
1768
1950
  React__default.createElement(SearchInputs, Object.assign({}, searchInputsProps, { onlyShowSearchBox: true, ref: searchInputMobileRef })),
1769
1951
  React__default.createElement(Button, { variant: "primary", leftIcon: React__default.createElement(Search, { size: 20, color: '#fff' }), onClick: () => onClickSearchByKeyword() })) },
1770
- React__default.createElement(SearchResultContent, { type: currentTab, state: state, dispatch: dispatch, isLoading: isLoadingSearchResults, typeInformation: typeInformation, clientSlug: clientSlug })))));
1952
+ React__default.createElement(Box, { sx: {
1953
+ marginLeft: -16,
1954
+ marginRight: -16,
1955
+ } },
1956
+ React__default.createElement(SearchResultContent, { type: currentTab, state: state, dispatch: dispatch, isLoading: isLoadingSearchResults, typeInformation: typeInformation, clientSlug: clientSlug }))))));
1771
1957
  };
1772
1958
 
1773
1959
  export { BookingSearchBarV2 };