@hhgtech/hhg-components 1.29.526-beta-6 → 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-08b45488.js → InputDate-d6df3c03.js} +5 -5
  2. package/build/{LastPeriod-464d6155.js → LastPeriod-e1441692.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-53fc2883.js → MobileBottomNavigationIcon-9613a4f2.js} +3 -3
  4. package/build/{SiteWideBanner-928a00e9.js → SiteWideBanner-fa0bc336.js} +11 -11
  5. package/build/{Spinner-4d5bcf16.js → Spinner-bc780ff5.js} +1 -1
  6. package/build/{WhatsApp-d580aed7.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 +359 -177
  18. package/build/components.js +106 -106
  19. package/build/{constants-d0935d04.js → constants-1ae135a2.js} +2 -2
  20. package/build/{constants-4d468ac2.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-d8151532.js → core-e96e54d0.js} +1 -1
  26. package/build/{dataTransform-411f5f11.js → dataTransform-1ad6b2c4.js} +1 -1
  27. package/build/ecom.js +5 -5
  28. package/build/{editor-3e10a284.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-d7cbb776.js → InputDate-533823f7.js} +5 -5
  39. package/build/esm/{LastPeriod-b241597d.js → LastPeriod-75d99fd6.js} +1 -1
  40. package/build/esm/{MobileBottomNavigationIcon-b2043262.js → MobileBottomNavigationIcon-bf12a7db.js} +3 -3
  41. package/build/esm/{SiteWideBanner-ad3423eb.js → SiteWideBanner-53877369.js} +11 -11
  42. package/build/esm/{Spinner-d05fc3f7.js → Spinner-21e9eb9b.js} +1 -1
  43. package/build/esm/{WhatsApp-a71cb16b.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 +361 -179
  55. package/build/esm/components.js +106 -106
  56. package/build/esm/{constants-3fee7176.js → constants-460a5cb5.js} +2 -2
  57. package/build/esm/{constants-c32bb8e0.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-4ebfaa4d.js → core-4f565edd.js} +1 -1
  63. package/build/esm/{dataTransform-7df25a01.js → dataTransform-3d34569e.js} +1 -1
  64. package/build/esm/ecom.js +5 -5
  65. package/build/esm/{editor-27142077.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-4a89ae0c.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-b0586f37.js → index-0067a45d.js} +3 -3
  84. package/build/esm/{index-3dac6da2.js → index-016deb29.js} +18 -18
  85. package/build/esm/{index-5407bd28.js → index-030d279b.js} +25 -25
  86. package/build/esm/{index-1f606468.js → index-040ba7eb.js} +24 -24
  87. package/build/esm/{index-2fbdc983.js → index-06d1abd4.js} +1 -1
  88. package/build/esm/{index-3b58b7a2.js → index-07cb8dde.js} +7 -7
  89. package/build/esm/{index-ee9646a8.js → index-09e30d39.js} +2 -2
  90. package/build/esm/{index-299e98eb.js → index-118cc328.js} +3 -3
  91. package/build/esm/{index-e5b65a04.js → index-15c7c1a5.js} +32 -32
  92. package/build/esm/{index-edfa346d.js → index-18d5be3d.js} +2 -2
  93. package/build/esm/{index-e378d561.js → index-1e9a993b.js} +2 -2
  94. package/build/esm/{index-37e20390.js → index-24e59b58.js} +14 -14
  95. package/build/esm/{index-d046b147.js → index-2c4f94e8.js} +3 -3
  96. package/build/esm/{index-e2641b27.js → index-2f60d578.js} +15 -15
  97. package/build/esm/{index-b08dc0fe.js → index-30a25b9d.js} +5 -5
  98. package/build/esm/{index-b428d34a.js → index-34ead94b.js} +2 -2
  99. package/build/esm/{index-0b90dbc0.js → index-3c4c3607.js} +2 -2
  100. package/build/esm/{index-80b8432f.js → index-40fcfba6.js} +19 -19
  101. package/build/esm/{index-dbc9005e.js → index-43c0bb8c.js} +13 -13
  102. package/build/esm/{index-67b6c1da.js → index-449a6854.js} +2 -2
  103. package/build/esm/{index-6320d35b.js → index-50143dfe.js} +1 -1
  104. package/build/esm/{index-54b2091a.js → index-5adc5b30.js} +1 -1
  105. package/build/esm/{index-ea6490d1.js → index-5cf8dc2e.js} +5 -5
  106. package/build/esm/{index-ea022427.js → index-5e0f4655.js} +16 -16
  107. package/build/esm/{index-c1b69c41.js → index-5f97018f.js} +2 -2
  108. package/build/esm/{index-675752ae.js → index-609e4dc0.js} +14 -14
  109. package/build/esm/{index-a2a9279e.js → index-629afefe.js} +6 -6
  110. package/build/esm/{index-2e3a8c58.js → index-6885b26e.js} +17 -17
  111. package/build/esm/{index-ae275425.js → index-6c9ca65d.js} +2 -2
  112. package/build/esm/{index-e0fb0cf6.js → index-71e8de57.js} +6 -6
  113. package/build/esm/{index-6570b077.js → index-76d4dec8.js} +3 -3
  114. package/build/esm/{index-6761d770.js → index-79419f22.js} +1 -1
  115. package/build/esm/{index-06d36089.js → index-7a3de78d.js} +2 -2
  116. package/build/esm/{index-06918430.js → index-7bf36808.js} +33 -33
  117. package/build/esm/{index-6d1eb602.js → index-804647d7.js} +6 -6
  118. package/build/esm/{index-74f70d45.js → index-82e5db9a.js} +2 -2
  119. package/build/esm/{index-862bb09b.js → index-8325c11e.js} +3 -3
  120. package/build/esm/{index-e432e3f4.js → index-8a0e6b5a.js} +16 -16
  121. package/build/esm/{index-cc743a4c.js → index-8bf22721.js} +4 -4
  122. package/build/esm/{index-be382a6e.js → index-8f0ca51f.js} +11 -11
  123. package/build/esm/{index-9a8dff2e.js → index-92386032.js} +13 -13
  124. package/build/esm/{index-8ba3a859.js → index-92444079.js} +1 -1
  125. package/build/esm/{index-c2dc1e01.js → index-9a007737.js} +3 -3
  126. package/build/esm/{index-b894211d.js → index-9bc70fe6.js} +15 -15
  127. package/build/esm/{index-d0194359.js → index-9c77ab1b.js} +8 -8
  128. package/build/esm/{index-a983bcec.js → index-a18934f6.js} +32 -32
  129. package/build/esm/{index-fdfc3a34.js → index-a479677a.js} +21 -21
  130. package/build/esm/{index-360a267f.js → index-a52cc35e.js} +2 -2
  131. package/build/esm/{index-dc49c3f4.js → index-a914a6ab.js} +9 -9
  132. package/build/esm/{index-99453e7f.js → index-ac5b01a0.js} +15 -15
  133. package/build/esm/{index-d7fd1c2a.js → index-b75ca5bc.js} +3 -3
  134. package/build/esm/{index-c3a668e9.js → index-bb13cf73.js} +3 -3
  135. package/build/esm/{index-adfc82e6.js → index-bbe68df3.js} +22 -22
  136. package/build/esm/{index-a392e18b.js → index-bde2b9fc.js} +2 -2
  137. package/build/esm/{index-e7d79401.js → index-bdf27488.js} +2 -2
  138. package/build/esm/{index-2ff8ea59.js → index-c09fdc73.js} +3 -3
  139. package/build/esm/{index-13e106e1.js → index-c4f562ab.js} +3 -3
  140. package/build/esm/{index-2ee78b79.js → index-d26ed45a.js} +14 -14
  141. package/build/esm/{index-e976b3f4.js → index-d54d667c.js} +2 -2
  142. package/build/esm/{index-5b3fbea3.js → index-d75782f4.js} +7 -7
  143. package/build/esm/{index-13d0c344.js → index-d8ae5abd.js} +16 -16
  144. package/build/esm/{index-8e5e069d.js → index-db6320a8.js} +6 -6
  145. package/build/esm/{index-e0b87d3c.js → index-def1af07.js} +4 -4
  146. package/build/esm/{index-ecbc4c20.js → index-df25c00a.js} +9 -9
  147. package/build/esm/{index-db2031b7.js → index-e17aef2f.js} +2 -2
  148. package/build/esm/{index-086da138.js → index-e6077c92.js} +1 -1
  149. package/build/esm/{index-de2f122b.js → index-e9d945b2.js} +16 -16
  150. package/build/esm/{index-e4857c3e.js → index-ea928102.js} +18 -18
  151. package/build/esm/{index-3191a926.js → index-f0288d2c.js} +2 -2
  152. package/build/esm/{index-9759e119.js → index-f27fbb2b.js} +2 -2
  153. package/build/esm/{index-4dd0b3cd.js → index-fe465751.js} +1 -1
  154. package/build/esm/index.js +126 -126
  155. package/build/esm/{labelSorting-547c3690.js → labelSorting-dce76a30.js} +4 -4
  156. package/build/esm/lead.js +37 -37
  157. package/build/esm/{logoIcon-02cfbf20.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-dd225295.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-3b601d60.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-84a5a78e.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-acc850af.js → transform-d7b9aab4.js} +27 -27
  195. package/build/esm/{translationsProvider-fbbc8fd6.js → translationsProvider-94c23b33.js} +1 -1
  196. package/build/esm/{treePopoverMenu-660288ce.js → treePopoverMenu-d1b543ab.js} +19 -19
  197. package/build/esm/types.js +2 -2
  198. package/build/esm/{useCartCareService-0234881e.js → useCartCareService-a9801753.js} +1 -1
  199. package/build/esm/{useHealthToolCache-7bb356ea.js → useHealthToolCache-ba8e70e4.js} +1 -1
  200. package/build/esm/{usePhoneValidator-138f60e3.js → usePhoneValidator-5705043a.js} +5 -5
  201. package/build/esm/{usePlacesAutocomplete-277dd192.js → usePlacesAutocomplete-73eb4d73.js} +1 -1
  202. package/build/esm/useTogetherAuthRequiredAction.js +10 -10
  203. package/build/esm/{utils-5241c337.js → utils-049d2b9b.js} +5 -5
  204. package/build/esm/{utils-b3e3f8e3.js → utils-08669c6b.js} +3 -3
  205. package/build/esm/{utils-d7488634.js → utils-0e3d3101.js} +3 -3
  206. package/build/esm/{utils-d9a38566.js → utils-5c21d88d.js} +2 -2
  207. package/build/esm/{utils-0413f217.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-dfee7edd.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-867eb59c.js → index-085e0678.js} +15 -15
  218. package/build/{index-866afdd6.js → index-0ca527bd.js} +2 -2
  219. package/build/{index-cde6e9c6.js → index-1617835f.js} +2 -2
  220. package/build/{index-f8af5d72.js → index-1917e6e6.js} +3 -3
  221. package/build/{index-e5ea6f1f.js → index-248bbe1e.js} +3 -3
  222. package/build/{index-dc6beeb2.js → index-30f758cb.js} +22 -22
  223. package/build/{index-5581b4d5.js → index-31862313.js} +2 -2
  224. package/build/{index-b7121eb0.js → index-37a8afbc.js} +2 -2
  225. package/build/{index-4bf79ebb.js → index-394f5180.js} +3 -3
  226. package/build/{index-8ebf1ad9.js → index-3d70614c.js} +14 -14
  227. package/build/{index-307cb848.js → index-3de3a5ff.js} +7 -7
  228. package/build/{index-65e2b1b8.js → index-45af88dc.js} +3 -3
  229. package/build/{index-4375e2f4.js → index-4c39a006.js} +6 -6
  230. package/build/{index-fb1d21d2.js → index-4cbd6a6f.js} +2 -2
  231. package/build/{index-48e28a00.js → index-4dadd4ed.js} +3 -3
  232. package/build/{index-d067d341.js → index-4edad11e.js} +2 -2
  233. package/build/{index-506b31dd.js → index-4f6ec377.js} +2 -2
  234. package/build/{index-409b92f3.js → index-512049b4.js} +1 -1
  235. package/build/{index-dd6b728d.js → index-57426d69.js} +1 -1
  236. package/build/{index-29fbd455.js → index-57f9ab86.js} +33 -33
  237. package/build/{index-0d1b2595.js → index-65734bf9.js} +4 -4
  238. package/build/{index-a7bb83b0.js → index-678a5a89.js} +14 -14
  239. package/build/{index-4377c2c5.js → index-69a0afd4.js} +14 -14
  240. package/build/{index-4d34edf0.js → index-6acf741d.js} +1 -1
  241. package/build/{index-761481fe.js → index-6e0c67be.js} +3 -3
  242. package/build/{index-bac508e2.js → index-72834fd6.js} +32 -32
  243. package/build/{index-a350f89a.js → index-738aebbd.js} +16 -16
  244. package/build/{index-50e4c106.js → index-76805e4f.js} +2 -2
  245. package/build/{index-f5bcee00.js → index-79696830.js} +18 -18
  246. package/build/{index-0c3a956f.js → index-7c09010d.js} +3 -3
  247. package/build/{index-eef8f348.js → index-7f1553c8.js} +9 -9
  248. package/build/{index-d194ae0f.js → index-808ceefc.js} +3 -3
  249. package/build/{index-ec03d1db.js → index-86d99c32.js} +1 -1
  250. package/build/{index-d6ae5e1a.js → index-88553e3d.js} +13 -13
  251. package/build/{index-6297b17c.js → index-8a1167c1.js} +2 -2
  252. package/build/{index-2b5b1a9b.js → index-8cf12ffd.js} +2 -2
  253. package/build/{index-e7cffbb3.js → index-8d2f796e.js} +6 -6
  254. package/build/{index-ccce89a2.js → index-8e5f4f15.js} +15 -15
  255. package/build/{index-9609008a.js → index-9323034a.js} +5 -5
  256. package/build/{index-b5fd8a06.js → index-98167f79.js} +21 -21
  257. package/build/{index-2ade6b95.js → index-99920da0.js} +2 -2
  258. package/build/{index-a2bd3e50.js → index-9b9b226e.js} +13 -13
  259. package/build/{index-1c8beb31.js → index-9cb0642f.js} +3 -3
  260. package/build/{index-ac187068.js → index-9d1f4b1d.js} +24 -24
  261. package/build/{index-de98ae48.js → index-a35e5257.js} +8 -8
  262. package/build/{index-3ffb8ad6.js → index-a7149192.js} +16 -16
  263. package/build/{index-fdd01ae0.js → index-a8339e50.js} +7 -7
  264. package/build/{index-da1225a0.js → index-b26ba7f0.js} +16 -16
  265. package/build/{index-e2131b25.js → index-b2b8a8cf.js} +5 -5
  266. package/build/{index-d8085af9.js → index-b496a89b.js} +2 -2
  267. package/build/{index-2b6c5244.js → index-b713f993.js} +6 -6
  268. package/build/{index-5e24a968.js → index-c0c16173.js} +2 -2
  269. package/build/{index-d4b93e98.js → index-c4a31626.js} +1 -1
  270. package/build/{index-94303722.js → index-c6f7717f.js} +19 -19
  271. package/build/{index-b609a64a.js → index-c9da2288.js} +16 -16
  272. package/build/{index-191fbcaf.js → index-cb6db502.js} +9 -9
  273. package/build/{index-7c0912ee.js → index-cf6e8656.js} +18 -18
  274. package/build/{index-c837555d.js → index-d03962f2.js} +4 -4
  275. package/build/{index-2b5f62e3.js → index-d0d3ebb3.js} +1 -1
  276. package/build/{index-2eaf1320.js → index-d9b8cb72.js} +15 -15
  277. package/build/{index-9b67d9f3.js → index-e0e8f27e.js} +6 -6
  278. package/build/{index-e724b97e.js → index-e354d5c2.js} +2 -2
  279. package/build/{index-2a75e031.js → index-e38a0298.js} +17 -17
  280. package/build/{index-87f01f3a.js → index-e6234b14.js} +32 -32
  281. package/build/{index-f5b86204.js → index-ec483113.js} +2 -2
  282. package/build/{index-a9d92854.js → index-f0681613.js} +2 -2
  283. package/build/{index-530b1d87.js → index-f8ed7ae6.js} +25 -25
  284. package/build/{index-e7f5a2a4.js → index-fa824993.js} +11 -11
  285. package/build/{index-c2d5b18f.js → index-fbe0fc10.js} +2 -2
  286. package/build/{index-b0eb6cc2.js → index-fca86b5c.js} +1 -1
  287. package/build/{index-61f4d7f5.js → index-fedbe98c.js} +3 -3
  288. package/build/index.js +126 -126
  289. package/build/{labelSorting-f99fe2e1.js → labelSorting-25d37d33.js} +4 -4
  290. package/build/lead.js +37 -37
  291. package/build/{logoIcon-aa388a92.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-9a3044ac.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-cb8e2401.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-24fb906c.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-e80db58f.js → transform-35278845.js} +27 -27
  329. package/build/{translationsProvider-26393267.js → translationsProvider-a992a390.js} +1 -1
  330. package/build/{treePopoverMenu-a87d9fd3.js → treePopoverMenu-defe8a52.js} +19 -19
  331. package/build/types.js +2 -2
  332. package/build/{useCartCareService-9e9c3d31.js → useCartCareService-ea4943bb.js} +1 -1
  333. package/build/{useHealthToolCache-60439936.js → useHealthToolCache-96dd7b19.js} +1 -1
  334. package/build/{usePhoneValidator-86f9339a.js → usePhoneValidator-e8e3638a.js} +5 -5
  335. package/build/{usePlacesAutocomplete-d62bbf17.js → usePlacesAutocomplete-7d584b12.js} +1 -1
  336. package/build/useTogetherAuthRequiredAction.js +10 -10
  337. package/build/{utils-27cb4148.js → utils-0698cf22.js} +2 -2
  338. package/build/{utils-a49d5a31.js → utils-11e1fe33.js} +2 -2
  339. package/build/{utils-79d0be1b.js → utils-3d04af5c.js} +3 -3
  340. package/build/{utils-a2497dd3.js → utils-cefe7bdb.js} +5 -5
  341. package/build/{utils-973356c9.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-dce0f584.js → BMI_BOYS.percentile.monthly-b1373a29.js} +0 -0
  345. /package/build/{BMI_BOYS.percentile.weekly-85859673.js → BMI_BOYS.percentile.weekly-09b0e27b.js} +0 -0
  346. /package/build/{BMI_BOYS.percentile.yearly-38fffecf.js → BMI_BOYS.percentile.yearly-91fe26b3.js} +0 -0
  347. /package/build/{BMI_BOYS.zscore.monthly-d4147b4b.js → BMI_BOYS.zscore.monthly-063ada26.js} +0 -0
  348. /package/build/{BMI_BOYS.zscore.weekly-b9be6e4a.js → BMI_BOYS.zscore.weekly-8b167cf6.js} +0 -0
  349. /package/build/{BMI_BOYS.zscore.yearly-4beee35e.js → BMI_BOYS.zscore.yearly-326bbf3a.js} +0 -0
  350. /package/build/{BMI_GIRLS.percentile.monthly-af19a73c.js → BMI_GIRLS.percentile.monthly-1f7ca02b.js} +0 -0
  351. /package/build/{BMI_GIRLS.percentile.weekly-4e48a124.js → BMI_GIRLS.percentile.weekly-7e1f2a7b.js} +0 -0
  352. /package/build/{BMI_GIRLS.percentile.yearly-042409fe.js → BMI_GIRLS.percentile.yearly-dd5969bd.js} +0 -0
  353. /package/build/{BMI_GIRLS.zscore.monthly-5474f3fe.js → BMI_GIRLS.zscore.monthly-c160fc74.js} +0 -0
  354. /package/build/{BMI_GIRLS.zscore.weekly-ba0296cb.js → BMI_GIRLS.zscore.weekly-d219578d.js} +0 -0
  355. /package/build/{BMI_GIRLS.zscore.yearly-008b4b47.js → BMI_GIRLS.zscore.yearly-0ecf38a6.js} +0 -0
  356. /package/build/{ChevronDown-4f96e2c2.js → ChevronDown-63ef3541.js} +0 -0
  357. /package/build/{Close-1e252a28.js → Close-f0bd28f1.js} +0 -0
  358. /package/build/{Google-93af1933.js → Google-1f45af2c.js} +0 -0
  359. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-8a63ee4d.js → HEAD CIRCUM_BOYS.percentile.monthly-2a5f52d8.js} +0 -0
  360. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-45f40a9d.js → HEAD CIRCUM_BOYS.percentile.weekly-81a2b802.js} +0 -0
  361. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-ce35721d.js → HEAD CIRCUM_BOYS.percentile.yearly-33b63c1f.js} +0 -0
  362. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-ecace79b.js → HEAD CIRCUM_BOYS.zscore.monthly-70002a39.js} +0 -0
  363. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-0ef650d5.js → HEAD CIRCUM_BOYS.zscore.weekly-f764218f.js} +0 -0
  364. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-23d8ebee.js → HEAD CIRCUM_BOYS.zscore.yearly-578624d4.js} +0 -0
  365. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-68b2742c.js → HEAD CIRCUM_GIRLS.percentile.monthly-32af79ab.js} +0 -0
  366. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-031a3c52.js → HEAD CIRCUM_GIRLS.percentile.weekly-fdd60134.js} +0 -0
  367. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-03faf9c5.js → HEAD CIRCUM_GIRLS.percentile.yearly-36753c1f.js} +0 -0
  368. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-4a3b1c68.js → HEAD CIRCUM_GIRLS.zscore.monthly-52ef90a9.js} +0 -0
  369. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-7a977852.js → HEAD CIRCUM_GIRLS.zscore.weekly-fcd5824d.js} +0 -0
  370. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-f9ac5907.js → HEAD CIRCUM_GIRLS.zscore.yearly-eecaed37.js} +0 -0
  371. /package/build/{HEIGHT_BOYS.percentile.monthly-652074e5.js → HEIGHT_BOYS.percentile.monthly-dec6e9ee.js} +0 -0
  372. /package/build/{HEIGHT_BOYS.percentile.weekly-c4b35701.js → HEIGHT_BOYS.percentile.weekly-6e052f37.js} +0 -0
  373. /package/build/{HEIGHT_BOYS.percentile.yearly-9e770fee.js → HEIGHT_BOYS.percentile.yearly-0cfdb15e.js} +0 -0
  374. /package/build/{HEIGHT_BOYS.zscore.monthly-8c7c3b8c.js → HEIGHT_BOYS.zscore.monthly-4bbd6a50.js} +0 -0
  375. /package/build/{HEIGHT_BOYS.zscore.weekly-cafb6872.js → HEIGHT_BOYS.zscore.weekly-f6acfbac.js} +0 -0
  376. /package/build/{HEIGHT_BOYS.zscore.yearly-c968405e.js → HEIGHT_BOYS.zscore.yearly-b9f88e51.js} +0 -0
  377. /package/build/{HEIGHT_GIRLS.percentile.monthly-5c656573.js → HEIGHT_GIRLS.percentile.monthly-28dcfd17.js} +0 -0
  378. /package/build/{HEIGHT_GIRLS.percentile.weekly-ac7ff871.js → HEIGHT_GIRLS.percentile.weekly-3fa9f899.js} +0 -0
  379. /package/build/{HEIGHT_GIRLS.percentile.yearly-ad63f5ac.js → HEIGHT_GIRLS.percentile.yearly-ab5b6095.js} +0 -0
  380. /package/build/{HEIGHT_GIRLS.zscore.monthly-7902648f.js → HEIGHT_GIRLS.zscore.monthly-b8f483ba.js} +0 -0
  381. /package/build/{HEIGHT_GIRLS.zscore.weekly-8c88a2ef.js → HEIGHT_GIRLS.zscore.weekly-8ef6b934.js} +0 -0
  382. /package/build/{HEIGHT_GIRLS.zscore.yearly-88186125.js → HEIGHT_GIRLS.zscore.yearly-7664aee7.js} +0 -0
  383. /package/build/{Locale-50f2cd90.js → Locale-84b3daf2.js} +0 -0
  384. /package/build/{Visible-347d932a.js → Visible-77f61d05.js} +0 -0
  385. /package/build/{WEIGHT_BOYS.percentile.monthly-09e8e0c6.js → WEIGHT_BOYS.percentile.monthly-c013cb01.js} +0 -0
  386. /package/build/{WEIGHT_BOYS.percentile.weekly-13c24a5f.js → WEIGHT_BOYS.percentile.weekly-92edc82c.js} +0 -0
  387. /package/build/{WEIGHT_BOYS.percentile.yearly-50b62c11.js → WEIGHT_BOYS.percentile.yearly-8295545e.js} +0 -0
  388. /package/build/{WEIGHT_BOYS.zscore.monthly-91a01c84.js → WEIGHT_BOYS.zscore.monthly-f715d29f.js} +0 -0
  389. /package/build/{WEIGHT_BOYS.zscore.weekly-6a9205d6.js → WEIGHT_BOYS.zscore.weekly-d740ddf3.js} +0 -0
  390. /package/build/{WEIGHT_BOYS.zscore.yearly-b3ae6dfd.js → WEIGHT_BOYS.zscore.yearly-acc84cf9.js} +0 -0
  391. /package/build/{WEIGHT_GIRLS.percentile.monthly-7592dbe7.js → WEIGHT_GIRLS.percentile.monthly-1840ccb8.js} +0 -0
  392. /package/build/{WEIGHT_GIRLS.percentile.weekly-b29dd0c5.js → WEIGHT_GIRLS.percentile.weekly-89938479.js} +0 -0
  393. /package/build/{WEIGHT_GIRLS.percentile.yearly-e0cd53a9.js → WEIGHT_GIRLS.percentile.yearly-04e2c646.js} +0 -0
  394. /package/build/{WEIGHT_GIRLS.zscore.monthly-33a459af.js → WEIGHT_GIRLS.zscore.monthly-feba9800.js} +0 -0
  395. /package/build/{WEIGHT_GIRLS.zscore.weekly-b5437057.js → WEIGHT_GIRLS.zscore.weekly-1540d87c.js} +0 -0
  396. /package/build/{WEIGHT_GIRLS.zscore.yearly-0e5a6885.js → WEIGHT_GIRLS.zscore.yearly-dfb5c4f9.js} +0 -0
  397. /package/build/{ageGenerate-bf71c953.js → ageGenerate-d17c592b.js} +0 -0
  398. /package/build/{animation-2c4c43ee.js → animation-4f35ba19.js} +0 -0
  399. /package/build/{constants-cc6de4a2.js → constants-1c5b8d3e.js} +0 -0
  400. /package/build/{constants-d0ecbef0.js → constants-47c39adf.js} +0 -0
  401. /package/build/{context-35323d46.js → context-4d2c9060.js} +0 -0
  402. /package/build/{dataTransform-b40b62e7.js → dataTransform-81501801.js} +0 -0
  403. /package/build/esm/{BMI_BOYS.percentile.monthly-3ad1cb42.js → BMI_BOYS.percentile.monthly-697406ad.js} +0 -0
  404. /package/build/esm/{BMI_BOYS.percentile.weekly-33934222.js → BMI_BOYS.percentile.weekly-096213e7.js} +0 -0
  405. /package/build/esm/{BMI_BOYS.percentile.yearly-7c3b0820.js → BMI_BOYS.percentile.yearly-56fc83c2.js} +0 -0
  406. /package/build/esm/{BMI_BOYS.zscore.monthly-9a655a06.js → BMI_BOYS.zscore.monthly-a826ad74.js} +0 -0
  407. /package/build/esm/{BMI_BOYS.zscore.weekly-821cd5cd.js → BMI_BOYS.zscore.weekly-4f027259.js} +0 -0
  408. /package/build/esm/{BMI_BOYS.zscore.yearly-8c3b5f38.js → BMI_BOYS.zscore.yearly-9bfe0691.js} +0 -0
  409. /package/build/esm/{BMI_GIRLS.percentile.monthly-49bbd770.js → BMI_GIRLS.percentile.monthly-165f3593.js} +0 -0
  410. /package/build/esm/{BMI_GIRLS.percentile.weekly-6acf6ba0.js → BMI_GIRLS.percentile.weekly-eb54cc35.js} +0 -0
  411. /package/build/esm/{BMI_GIRLS.percentile.yearly-e346c2d7.js → BMI_GIRLS.percentile.yearly-8c7d89d0.js} +0 -0
  412. /package/build/esm/{BMI_GIRLS.zscore.monthly-9a8b794f.js → BMI_GIRLS.zscore.monthly-cb12a63a.js} +0 -0
  413. /package/build/esm/{BMI_GIRLS.zscore.weekly-d8077e33.js → BMI_GIRLS.zscore.weekly-2831f78f.js} +0 -0
  414. /package/build/esm/{BMI_GIRLS.zscore.yearly-9c6efc21.js → BMI_GIRLS.zscore.yearly-496ffb18.js} +0 -0
  415. /package/build/esm/{ChevronDown-80753f54.js → ChevronDown-f017c862.js} +0 -0
  416. /package/build/esm/{Close-a190f7fe.js → Close-4b477aae.js} +0 -0
  417. /package/build/esm/{Google-d37fee17.js → Google-e778c431.js} +0 -0
  418. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-ce705693.js → HEAD CIRCUM_BOYS.percentile.monthly-a6acba3b.js} +0 -0
  419. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-71fba252.js → HEAD CIRCUM_BOYS.percentile.weekly-da0cd763.js} +0 -0
  420. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-2b054964.js → HEAD CIRCUM_BOYS.percentile.yearly-3b0245e5.js} +0 -0
  421. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-fd9acbc1.js → HEAD CIRCUM_BOYS.zscore.monthly-922e8c4b.js} +0 -0
  422. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-98f19200.js → HEAD CIRCUM_BOYS.zscore.weekly-8910a240.js} +0 -0
  423. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-ae07c79c.js → HEAD CIRCUM_BOYS.zscore.yearly-ab698de8.js} +0 -0
  424. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-c35771db.js → HEAD CIRCUM_GIRLS.percentile.monthly-74efcb89.js} +0 -0
  425. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2cb206df.js → HEAD CIRCUM_GIRLS.percentile.weekly-f0b9cefd.js} +0 -0
  426. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e03f52f3.js → HEAD CIRCUM_GIRLS.percentile.yearly-89bc6025.js} +0 -0
  427. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-814189bb.js → HEAD CIRCUM_GIRLS.zscore.monthly-526dccf2.js} +0 -0
  428. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-b56581c0.js → HEAD CIRCUM_GIRLS.zscore.weekly-57477a6c.js} +0 -0
  429. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-e1962acb.js → HEAD CIRCUM_GIRLS.zscore.yearly-7007b6ae.js} +0 -0
  430. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-949594db.js → HEIGHT_BOYS.percentile.monthly-03f421cd.js} +0 -0
  431. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-ba051a73.js → HEIGHT_BOYS.percentile.weekly-bd454e0f.js} +0 -0
  432. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-51abddf8.js → HEIGHT_BOYS.percentile.yearly-6ba33fab.js} +0 -0
  433. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-f620b75f.js → HEIGHT_BOYS.zscore.monthly-230b0ebf.js} +0 -0
  434. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b7f974b8.js → HEIGHT_BOYS.zscore.weekly-280e4ba8.js} +0 -0
  435. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-fa64a393.js → HEIGHT_BOYS.zscore.yearly-8b7f5f68.js} +0 -0
  436. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-97746322.js → HEIGHT_GIRLS.percentile.monthly-4c90afa2.js} +0 -0
  437. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-3a0e3650.js → HEIGHT_GIRLS.percentile.weekly-66447d18.js} +0 -0
  438. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-c3c560ab.js → HEIGHT_GIRLS.percentile.yearly-d7134567.js} +0 -0
  439. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-121063cf.js → HEIGHT_GIRLS.zscore.monthly-26daddfd.js} +0 -0
  440. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-01d61889.js → HEIGHT_GIRLS.zscore.weekly-3a9fe73d.js} +0 -0
  441. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3ebc38fc.js → HEIGHT_GIRLS.zscore.yearly-8baac920.js} +0 -0
  442. /package/build/esm/{Locale-46117b4c.js → Locale-c4bb84ad.js} +0 -0
  443. /package/build/esm/{Visible-95522f1d.js → Visible-93942fbd.js} +0 -0
  444. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c82650cf.js → WEIGHT_BOYS.percentile.monthly-9d207cf4.js} +0 -0
  445. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-60c10782.js → WEIGHT_BOYS.percentile.weekly-13f26a4b.js} +0 -0
  446. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-755b358a.js → WEIGHT_BOYS.percentile.yearly-3c130329.js} +0 -0
  447. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-21c96d82.js → WEIGHT_BOYS.zscore.monthly-2aa0dfff.js} +0 -0
  448. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-3a81bd0a.js → WEIGHT_BOYS.zscore.weekly-237d1be4.js} +0 -0
  449. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-0e96c4dc.js → WEIGHT_BOYS.zscore.yearly-0bc7b8bb.js} +0 -0
  450. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-ae3afae7.js → WEIGHT_GIRLS.percentile.monthly-a7be339d.js} +0 -0
  451. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-d5d379ca.js → WEIGHT_GIRLS.percentile.weekly-05618327.js} +0 -0
  452. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-5ecc857a.js → WEIGHT_GIRLS.percentile.yearly-5822aaa0.js} +0 -0
  453. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-76b7a47c.js → WEIGHT_GIRLS.zscore.monthly-b99611c5.js} +0 -0
  454. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-bd53bc43.js → WEIGHT_GIRLS.zscore.weekly-5ded337f.js} +0 -0
  455. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-465644e1.js → WEIGHT_GIRLS.zscore.yearly-6abbc163.js} +0 -0
  456. /package/build/esm/{ageGenerate-0ff01a67.js → ageGenerate-17985988.js} +0 -0
  457. /package/build/esm/{animation-78239548.js → animation-76af17c9.js} +0 -0
  458. /package/build/esm/{constants-80589a02.js → constants-330c233e.js} +0 -0
  459. /package/build/esm/{constants-55f91cc7.js → constants-b27357f4.js} +0 -0
  460. /package/build/esm/{context-5e251611.js → context-315b2a5d.js} +0 -0
  461. /package/build/esm/{dataTransform-8b81511f.js → dataTransform-8ed4f5d3.js} +0 -0
  462. /package/build/esm/{index-596bcd88.js → index-1a620d4b.js} +0 -0
  463. /package/build/esm/{index-5ae7d3df.js → index-39a36993.js} +0 -0
  464. /package/build/esm/{index-7ca77678.js → index-50fa3984.js} +0 -0
  465. /package/build/esm/{index-ef5f7319.js → index-86348364.js} +0 -0
  466. /package/build/esm/{index-ce89f6c2.js → index-8b7aa09b.js} +0 -0
  467. /package/build/esm/{index-7d0eb79a.js → index-8cfd5aac.js} +0 -0
  468. /package/build/esm/{index-cdee3af0.js → index-a8adf250.js} +0 -0
  469. /package/build/esm/{index-8731a389.js → index-bfc87574.js} +0 -0
  470. /package/build/esm/{index-768ecc86.js → index-f90bca1f.js} +0 -0
  471. /package/build/esm/{index.styles-d249dc08.js → index.styles-b6b60a0e.js} +0 -0
  472. /package/build/esm/{localizeNumberFormat-7e0e5ce4.js → localizeNumberFormat-8e58a406.js} +0 -0
  473. /package/build/esm/{normalizeLink-c36c6cb0.js → normalizeLink-8a280047.js} +0 -0
  474. /package/build/esm/{number-4185f6f9.js → number-47d560c0.js} +0 -0
  475. /package/build/esm/{paths-9d2b8ec1.js → paths-d466042e.js} +0 -0
  476. /package/build/esm/{shared-d4f9c647.js → shared-301ab874.js} +0 -0
  477. /package/build/esm/{translationsContext-80dbd93a.js → translationsContext-d6c1456e.js} +0 -0
  478. /package/build/esm/{tslib.es6-b4891307.js → tslib.es6-9b779584.js} +0 -0
  479. /package/build/esm/{types-7b161c93.js → types-2200fcaa.js} +0 -0
  480. /package/build/esm/{types-2bb1de7b.js → types-464151f7.js} +0 -0
  481. /package/build/esm/{useOutsideClick-0b625a06.js → useOutsideClick-c26f06a1.js} +0 -0
  482. /package/build/esm/{useScrollbarSize-cbdeb3c4.js → useScrollbarSize-1fc66885.js} +0 -0
  483. /package/build/esm/{useUniqueId-cf49bce4.js → useUniqueId-f268d449.js} +0 -0
  484. /package/build/esm/{utils-516259e7.js → utils-61550af1.js} +0 -0
  485. /package/build/esm/{utils-bd154ea9.js → utils-94271ae2.js} +0 -0
  486. /package/build/{index-df614d3f.js → index-0cf397b4.js} +0 -0
  487. /package/build/{index-5a69f174.js → index-0fb5f838.js} +0 -0
  488. /package/build/{index-9d7ed845.js → index-349720f0.js} +0 -0
  489. /package/build/{index-cb300bd1.js → index-35f160ea.js} +0 -0
  490. /package/build/{index-87c32b55.js → index-529bc0d4.js} +0 -0
  491. /package/build/{index-33795b41.js → index-688f5061.js} +0 -0
  492. /package/build/{index-a45c91a4.js → index-8b9f52b2.js} +0 -0
  493. /package/build/{index-a69c85de.js → index-a030c3f6.js} +0 -0
  494. /package/build/{index-8c15e992.js → index-eae33c7c.js} +0 -0
  495. /package/build/{index.styles-8e65314e.js → index.styles-4046886c.js} +0 -0
  496. /package/build/{localizeNumberFormat-f99a885b.js → localizeNumberFormat-f24300d2.js} +0 -0
  497. /package/build/{normalizeLink-d325a18f.js → normalizeLink-0d563b49.js} +0 -0
  498. /package/build/{number-b01ae77e.js → number-35497471.js} +0 -0
  499. /package/build/{paths-e0776a9b.js → paths-3fc0f091.js} +0 -0
  500. /package/build/{shared-8a034f74.js → shared-65bf49fc.js} +0 -0
  501. /package/build/{translationsContext-68e2824c.js → translationsContext-b1dfef59.js} +0 -0
  502. /package/build/{tslib.es6-45329ac1.js → tslib.es6-a745aee7.js} +0 -0
  503. /package/build/{types-e742bf66.js → types-6794e0f4.js} +0 -0
  504. /package/build/{types-568f22de.js → types-82df112e.js} +0 -0
  505. /package/build/{useOutsideClick-1e57325d.js → useOutsideClick-0806a91a.js} +0 -0
  506. /package/build/{useScrollbarSize-e93b69d9.js → useScrollbarSize-bd16a6f3.js} +0 -0
  507. /package/build/{useUniqueId-3ddab5bf.js → useUniqueId-9f6b725a.js} +0 -0
  508. /package/build/{utils-a8a2137b.js → utils-0a7cc5f6.js} +0 -0
  509. /package/build/{utils-52f9a54b.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-d9a38566.js';
6
- import { a as useOutsideClick } from './useOutsideClick-0b625a06.js';
7
- import { u as useTranslations } from './index-54b2091a.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-55f91cc7.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-516259e7.js';
13
- import { C as Container } from './index-7ca77678.js';
14
- import { T as Text } from './index-ae275425.js';
15
- import { C as ChevronDown } from './ChevronDown-80753f54.js';
16
- import { _ as __rest } from './tslib.es6-b4891307.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-9759e119.js';
19
- import { P as PATHS } from './paths-9d2b8ec1.js';
20
- import { B as Button } from './index-299e98eb.js';
21
- import './index-0b90dbc0.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-8ba3a859.js';
24
- import './Locale-46117b4c.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-80dbd93a.js';
33
- import './index-768ecc86.js';
34
- import './index.styles-d249dc08.js';
35
- import './shared-d4f9c647.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 `
@@ -301,7 +301,7 @@ const StyleSearchInputsWrapper = styled.div `
301
301
  gap: 12px;
302
302
  }
303
303
  `;
304
- const StyleResultWrapper$2 = styled.div `
304
+ const StyleResultWrapper = styled.div `
305
305
  position: absolute;
306
306
  top: calc(100% + 2px);
307
307
  width: 100%;
@@ -464,18 +464,17 @@ dispatch, }) => {
464
464
  return null;
465
465
  return (React__default.createElement(StyledSearchResultWrapper, null,
466
466
  React__default.createElement(StyleResultBody, { className: "search-results__body" },
467
- isLoading &&
468
- Array(3)
469
- .fill(undefined)
470
- .map((_, i) => (React__default.createElement(StyleResultItem, { key: type + 'loading' + i, className: i === 2 ? 'last-item' : '' },
471
- React__default.createElement("div", { className: "image-item" },
472
- React__default.createElement(Skeleton, { height: 48, circle: true, mb: "xl", animate: true })),
473
- React__default.createElement("div", { className: "infor" },
474
- React__default.createElement("div", { className: "title" },
475
- React__default.createElement(Skeleton, { height: 8, mt: 10, radius: "xl", animate: true })),
476
- React__default.createElement("div", { className: "description" },
477
- React__default.createElement("div", { className: "sub-description" },
478
- 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 }))))))))),
479
478
  !isLoading && results && results.length > 0 && (React__default.createElement(React__default.Fragment, null, results.map((item, index) => {
480
479
  var _a, _b;
481
480
  const isLastItem = (results.length > 4 && index === 3) ||
@@ -493,7 +492,7 @@ dispatch, }) => {
493
492
  if (index >= 4) {
494
493
  return React__default.createElement(React__default.Fragment, null);
495
494
  }
496
- 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) },
497
496
  React__default.createElement("div", { className: "image-item" },
498
497
  React__default.createElement("img", { src: item.logo || item.avatar, alt: item.name })),
499
498
  React__default.createElement("div", { className: "infor" },
@@ -502,7 +501,7 @@ dispatch, }) => {
502
501
  typeInformation[type].icon,
503
502
  React__default.createElement("div", { className: "sub-description" }, subDescription)))));
504
503
  }))),
505
- !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'))))));
506
505
  };
507
506
 
508
507
  const SearchResultContent = ({ state, type, isLoading, clientSlug, typeInformation, dispatch, }) => {
@@ -522,7 +521,7 @@ const StyleSearchSpecialtyWrapper = styled.div `
522
521
  gap: 12px;
523
522
  }
524
523
  `;
525
- const StyleResultWrapper$1 = styled.div `
524
+ styled.div `
526
525
  position: absolute;
527
526
  top: calc(100% + 2px);
528
527
  width: calc(100% + 100px);
@@ -604,91 +603,168 @@ const StyledSpecialtyItem = styled.li `
604
603
  }
605
604
  `;
606
605
 
607
- const DoctorIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
608
- 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" })));
609
- const ServiceIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
610
- 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" })));
611
- const HospitalIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
612
- 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" })));
613
- const SpecialtyIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16" },
614
- 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" })));
615
-
616
- const SearchSpecialty = ({ state, isMobile, debouncedFetchSearchResults, selectedLocation, onSpecialtyClick, dispatch, }) => {
617
- 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;
618
629
  const { t, locale } = useTranslations();
619
630
  const inputSpecialtyWrapperRef = useRef(null);
620
631
  const slugs = useMemo(() => LOCALIZED_SLUGS[locale], [locale]);
621
- const styleSpecialties = useMemo(() => {
622
- return {
623
- wrapper: {
624
- '&:after': {
625
- content: '""',
626
- width: '1px',
627
- height: '20px',
628
- backgroundColor: '#E4E8EC',
629
- position: 'absolute',
630
- right: 0,
631
- top: '13px',
632
- },
633
- },
634
- input: {
635
- border: isMobile ? 'border: 1px solid #d9d9d9' : 'none',
636
- height: isMobile ? '40px' : '46px !important',
637
- paddingRight: '30px',
638
- '&:focus': {
639
- boxShadow: isMobile ? 'box-shadow: 0px 0px 0px 2px #91caff' : 'none',
640
- },
641
- },
642
- rightSection: {
643
- width: '30px',
644
- svg: {
645
- fontSize: '20px',
646
- },
647
- },
648
- };
649
- }, [isMobile]);
650
- const handleSearchSpecialtyInputChange = useCallback(function handleSearchSpecialtyInputChange(value) {
651
- // dispatch({ type: ActionTypes.ChangeInputLocation, payload: value })
652
- // if (value.trim().length > SEARCH_KEYWORD_MIN_LENGTH[state.locale]) {
653
- // debouncedFetchSearchResults(value.trim())
654
- // } else {
655
- // debouncedFetchSearchResults.cancel()
656
- // dispatch({ type: ActionTypes.DisplayInitialCities })
657
- // }
658
- console.log(value);
659
- }, [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
+ // )
660
674
  useOutsideClick(inputSpecialtyWrapperRef, () => {
661
675
  dispatch({ type: ActionTypes.ClickOutsideInputSpecialty });
662
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);
663
689
  return (React__default.createElement(StyleSearchSpecialtyWrapper, { ref: inputSpecialtyWrapperRef },
664
- React__default.createElement(Input.Wrapper, null,
665
- 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) => {
666
- handleSearchSpecialtyInputChange(event.target.value);
667
- } })),
668
- state.focused === 'specialty' && (React__default.createElement(StyleResultWrapper$1, null,
669
- React__default.createElement(StyledSpecialtyItem, { key: "all-location", role: "button", tabIndex: 0, onClick: () => {
670
- if (onSpecialtyClick) {
671
- onSpecialtyClick({
672
- name: t('booking.searchBar.allSpecialties'),
673
- id: -1,
674
- thumbnail: '',
675
- total_doctor: 0,
676
- slug: slugs.SPECIALTIES,
677
- });
678
- }
679
- } },
680
- React__default.createElement("div", { className: "image-item" },
681
- React__default.createElement(SpecialtyIcon, null)),
682
- React__default.createElement(Text, { size: "md" }, t('booking.searchBar.allSpecialties'))),
683
- state.allSpecialties.map((specialty) => (React__default.createElement(StyledSpecialtyItem, { key: specialty.id, onClick: (evt) => {
684
- evt.nativeEvent.stopImmediatePropagation();
685
- if (onSpecialtyClick) {
686
- onSpecialtyClick(Object.assign(Object.assign({}, specialty), { total_doctor: 0 }));
687
- }
688
- }, role: "button", tabIndex: 0, "aria-label": `Select ${specialty.name} as location`, isSelected: (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) === specialty.id },
689
- React__default.createElement("div", { className: "image-item" },
690
- React__default.createElement("img", { src: specialty.thumbnail, alt: specialty.name })),
691
- 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
+ } })));
692
768
  };
693
769
 
694
770
  const SearchInputs = forwardRef(({ state, type, isMobile, isLoading, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, hideSpecialtySelection = false, clientSlug = '', onSearch, onFocusInput, onEnterSearch, dispatch, onlyShowSearchBox, onChangeSpecialty, }, ref) => {
@@ -751,18 +827,18 @@ const SearchInputs = forwardRef(({ state, type, isMobile, isLoading, initalSearc
751
827
  const styleInput = useMemo(() => {
752
828
  return {
753
829
  icon: {
754
- left: '165px',
830
+ left: '205px',
755
831
  },
756
832
  input: {
757
833
  color: '#262626',
758
834
  '&[data-with-icon="true"]': {
759
- paddingLeft: '205px',
835
+ paddingLeft: '245px',
760
836
  paddingRight: '16px',
761
837
  },
762
838
  },
763
839
  rightSection: {
764
840
  left: 0,
765
- width: '165px',
841
+ width: '205px',
766
842
  padding: '1px',
767
843
  },
768
844
  };
@@ -800,8 +876,7 @@ const SearchInputs = forwardRef(({ state, type, isMobile, isLoading, initalSearc
800
876
  var _a;
801
877
  dispatch({ type: ActionTypes.SelectSpecialty, payload: specialty });
802
878
  onChangeSpecialty === null || onChangeSpecialty === void 0 ? void 0 : onChangeSpecialty(specialty);
803
- // Sau khi chọn specialty, thường sẽ muốn focus lại vào input search
804
- (_a = internalInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
879
+ !isMobile && ((_a = internalInputRef.current) === null || _a === void 0 ? void 0 : _a.focus());
805
880
  }, [dispatch, onChangeSpecialty]);
806
881
  const inputOnKeyDown = useCallback((e) => {
807
882
  if (e.key === 'Enter') {
@@ -835,7 +910,7 @@ const SearchInputs = forwardRef(({ state, type, isMobile, isLoading, initalSearc
835
910
  dispatch({ type: ActionTypes.FocusInputSearch });
836
911
  onFocusInput === null || onFocusInput === void 0 ? void 0 : onFocusInput();
837
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 }))) })))))),
838
- !isMobile && (React__default.createElement(StyleResultWrapper$2, null,
913
+ !isMobile && (React__default.createElement(StyleResultWrapper, null,
839
914
  React__default.createElement(SearchResultContent, { type: type, state: state, dispatch: dispatch, isLoading: isLoading, typeInformation: typeInformation, clientSlug: clientSlug })))))));
840
915
  });
841
916
  SearchInputs.displayName = 'SearchInputs';
@@ -848,6 +923,16 @@ const ModalSearchResult = (_a) => {
848
923
  borderRadius: 0,
849
924
  height: '100%',
850
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
+ },
851
936
  },
852
937
  header: { display: 'none' },
853
938
  } }),
@@ -868,7 +953,7 @@ const StyleSearchLocationWrapper = styled.div `
868
953
  gap: 12px;
869
954
  }
870
955
  `;
871
- const StyleResultWrapper = styled.div `
956
+ styled.div `
872
957
  position: absolute;
873
958
  top: calc(100% + 2px);
874
959
  width: 100%;
@@ -891,17 +976,6 @@ const StyledLocationItem = styled.div `
891
976
  gap: 14px;
892
977
  overflow: hidden;
893
978
 
894
- ${({ isSelected }) => isSelected &&
895
- `
896
- &::after {
897
- content: ${checkMarkIconUrl};
898
- top: 50%;
899
- right: 18px;
900
- position: absolute;
901
- transform: translateY(-50%);
902
- }
903
- `}
904
-
905
979
  & + li::before {
906
980
  content: '';
907
981
  position: absolute;
@@ -936,9 +1010,29 @@ const StyledPinIcon = styled(PinIcon) `
936
1010
  flex: 0 0 12px;
937
1011
  `;
938
1012
 
939
- 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;
940
1023
  const { t, locale } = useTranslations();
941
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]);
942
1036
  const gaAttributes = useMemo(() => {
943
1037
  if (trackingAttributes) {
944
1038
  return {
@@ -947,9 +1041,7 @@ const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, select
947
1041
  'data-event-label': trackingAttributes.dataEventLabel,
948
1042
  };
949
1043
  }
950
- else {
951
- return {};
952
- }
1044
+ return {};
953
1045
  }, [trackingAttributes]);
954
1046
  const handleSearchLocationInputChange = useCallback(function handleSearchLocationInputChange(value) {
955
1047
  dispatch({ type: ActionTypes.ChangeInputLocation, payload: value });
@@ -960,39 +1052,101 @@ const SearchLocation = ({ state, isMobile, debouncedFetchCitiesByKeyword, select
960
1052
  debouncedFetchCitiesByKeyword.cancel();
961
1053
  dispatch({ type: ActionTypes.DisplayInitialCities });
962
1054
  }
963
- }, [debouncedFetchCitiesByKeyword, dispatch]);
1055
+ }, [debouncedFetchCitiesByKeyword, dispatch, state.locale]);
964
1056
  useOutsideClick(inputLocationWrapperRef, () => {
965
1057
  dispatch({ type: ActionTypes.ClickOutsideInputLocation });
966
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);
967
1061
  return (React__default.createElement(StyleSearchLocationWrapper, { ref: inputLocationWrapperRef },
968
- React__default.createElement(Input.Wrapper, null,
969
- React__default.createElement(Input, Object.assign({ size: isMobile ? 'md' : 'lg', placeholder: "Search location", value: state.searchLocationKeywords, onFocus: () => dispatch({ type: ActionTypes.FocusInputLocation }), onChange: (event) => {
970
- handleSearchLocationInputChange(event.target.value);
971
- } }, gaAttributes))),
972
- state.focused === 'location' && (React__default.createElement(StyleResultWrapper, null,
973
- React__default.createElement(ScrollArea, { scrollbarSize: 6, styles: { viewport: { maxHeight: 400 } } },
974
- React__default.createElement(StyledLocationItem, { key: "all-location", role: "button", tabIndex: 0, onClick: () => {
975
- var _a;
976
- if (onLocationClick) {
977
- onLocationClick({
978
- name: t('booking.searchBar.allLocations'),
979
- id: ID_OPTION_ALL_LOCATION,
980
- slug: (_a = LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.ALL,
981
- });
982
- }
983
- } },
984
- React__default.createElement(StyledPinIcon, { color: theme.colors.neutral400 }),
985
- React__default.createElement(Text, { size: "md" }, t('booking.searchBar.allLocations'))),
986
- state.cities.map((city) => (React__default.createElement(StyledLocationItem, { key: city.id, onClick: (evt) => {
987
- evt.nativeEvent.stopImmediatePropagation();
988
- if (onLocationClick) {
989
- onLocationClick(city);
990
- }
991
- }, role: "button", tabIndex: 0, "aria-label": `Select ${city.name} as location`, isSelected: (selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id) === city.id },
992
- React__default.createElement(StyledPinIcon, { color: theme.colors.neutral400 }),
993
- 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
+ } }))));
994
1139
  };
995
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
+
996
1150
  const StyleSpecialtiesWrapper = styled.div `
997
1151
  display: flex;
998
1152
  flex-wrap: wrap;
@@ -1558,6 +1712,7 @@ gaTrackingSearchBar, gaTrackingLocationSearch, autoCompleteDisabled = false, inp
1558
1712
  triggerSearchWhenChangeFilter, routerPush, onGeoLocationPermissionChange,
1559
1713
  // onSearch,
1560
1714
  onChangeLocation, }) => {
1715
+ var _a, _b;
1561
1716
  const { locale, t } = useTranslations();
1562
1717
  const wrapperRef = useRef(null);
1563
1718
  const searchInputDesktopRef = useRef(null);
@@ -1616,17 +1771,6 @@ onChangeLocation, }) => {
1616
1771
  }, [currentTab]);
1617
1772
  const debouncedFetchCitiesByKeyword = useMemo(() => debounce(fetchCitiesByKeyword, 400), [fetchCitiesByKeyword]);
1618
1773
  const debouncedFetchSearchResults = useMemo(() => debounce(fetchSearchResults, 400), [fetchSearchResults]);
1619
- const handleLocationClick = useCallback(function handleLocationClick(city) {
1620
- var _a;
1621
- triggerSearchWhenChangeFilter &&
1622
- onClickSearchByKeyword({ locationSlug: city.slug });
1623
- dispatch({ type: ActionTypes.SelectLocation, payload: city });
1624
- // focusSearchInput()
1625
- !isMobile && ((_a = searchInputDesktopRef.current) === null || _a === void 0 ? void 0 : _a.focus());
1626
- if (onChangeLocation) {
1627
- onChangeLocation(city);
1628
- }
1629
- }, [t, dispatch]);
1630
1774
  // function focusSearchInput() {
1631
1775
  // if (wrapperRef.current) {
1632
1776
  // wrapperRef.current
@@ -1634,7 +1778,7 @@ onChangeLocation, }) => {
1634
1778
  // ?.focus()
1635
1779
  // }
1636
1780
  // }
1637
- function onClickSearchByKeyword({ locationSlug, specialtyId, } = {}) {
1781
+ const onClickSearchByKeyword = useCallback(function onClickSearchByKeyword({ locationSlug, specialtyId, } = {}) {
1638
1782
  var _a;
1639
1783
  close();
1640
1784
  let url = '';
@@ -1660,7 +1804,31 @@ onChangeLocation, }) => {
1660
1804
  if (url) {
1661
1805
  dispatch({ type: ActionTypes.NavigateTo, payload: url });
1662
1806
  }
1663
- }
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
+ ]);
1664
1832
  useOutsideClick(inputSearchSpecialtyWrapperRef, () => {
1665
1833
  !isMobile &&
1666
1834
  dispatch({ type: ActionTypes.ClickOutsideInputSearchSpecialty });
@@ -1686,6 +1854,7 @@ onChangeLocation, }) => {
1686
1854
  fetchCitiesByLocation({ coordinates: state.geoLocationCoordinates });
1687
1855
  }, [geoLocationPermission]);
1688
1856
  useEffect(() => {
1857
+ var _a;
1689
1858
  const defaultSpecialty = initSpecialty
1690
1859
  ? initSpecialty
1691
1860
  : {
@@ -1695,13 +1864,22 @@ onChangeLocation, }) => {
1695
1864
  total_doctor: 0,
1696
1865
  slug: slugs.SPECIALTIES,
1697
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
+ }
1698
1876
  if (!state.selectedSpecialty) {
1699
1877
  dispatch({
1700
1878
  type: ActionTypes.SelectSpecialty,
1701
1879
  payload: defaultSpecialty,
1702
1880
  });
1703
1881
  }
1704
- }, [initSpecialty, state.selectedSpecialty]);
1882
+ }, [initSpecialty, (_b = state.selectedSpecialty) === null || _b === void 0 ? void 0 : _b.id, slugs.SPECIALTIES, t]);
1705
1883
  useEffect(() => {
1706
1884
  fetchAllSpecialties();
1707
1885
  }, []);
@@ -1771,7 +1949,11 @@ onChangeLocation, }) => {
1771
1949
  isMobile && (React__default.createElement(ModalSearchResult, { keepMounted: true, opened: opened, onClose: close, closeModal: close, searchInputEle: React__default.createElement(Flex, { align: 'center', gap: 8 },
1772
1950
  React__default.createElement(SearchInputs, Object.assign({}, searchInputsProps, { onlyShowSearchBox: true, ref: searchInputMobileRef })),
1773
1951
  React__default.createElement(Button, { variant: "primary", leftIcon: React__default.createElement(Search, { size: 20, color: '#fff' }), onClick: () => onClickSearchByKeyword() })) },
1774
- 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 }))))));
1775
1957
  };
1776
1958
 
1777
1959
  export { BookingSearchBarV2 };