@hhgtech/hhg-components 1.28.7 → 1.28.8

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 (257) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components.js +1 -1
  5. package/build/{constants-b36140b6.js → constants-13d7851f.js} +1 -1
  6. package/build/{constants-7dc37090.js → constants-bbd4c1be.js} +1 -1
  7. package/build/constants.js +1 -1
  8. package/build/{core-2234a4b6.js → core-ddb33f88.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +9 -9
  11. package/build/esm/cache.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components.js +1 -1
  14. package/build/esm/{constants-ecebe5e7.js → constants-c71172be.js} +1 -1
  15. package/build/esm/{constants-f75adf9a.js → constants-ddcb1b9b.js} +2 -2
  16. package/build/esm/constants.js +1 -1
  17. package/build/esm/{core-8b5dfbca.js → core-35ee358c.js} +1 -1
  18. package/build/esm/ecom.js +1 -1
  19. package/build/esm/footer.js +1 -1
  20. package/build/esm/gAssets.js +1 -1
  21. package/build/esm/{getDynamicHealthTool-27df1a14.js → getDynamicHealthTool-a9aa82b6.js} +1 -1
  22. package/build/esm/{getSocialList-2d7c1463.js → getSocialList-a7cdb172.js} +1 -1
  23. package/build/esm/hooks.js +1 -1
  24. package/build/esm/i18n.js +1 -1
  25. package/build/esm/i18nV2.js +1 -1
  26. package/build/esm/{index-88a0083b.js → index-0a7b5190.js} +1 -1
  27. package/build/esm/{index-0b0dac49.js → index-103a91be.js} +1 -1
  28. package/build/esm/{index-0dfbd584.js → index-168cba8f.js} +1 -1
  29. package/build/esm/{index-acab510d.js → index-3da78109.js} +1 -1
  30. package/build/esm/{index-678b71ad.js → index-4fc5658c.js} +6 -6
  31. package/build/esm/{index-42df5ccd.js → index-58190e78.js} +1 -1
  32. package/build/esm/{index-71be4e24.js → index-5c771189.js} +1 -1
  33. package/build/esm/index-7c6eb458.js +1 -0
  34. package/build/esm/{index-6a373522.js → index-7dbf9160.js} +3 -3
  35. package/build/esm/{index-4c410b89.js → index-80fba137.js} +1 -1
  36. package/build/esm/index-820b685d.js +1 -0
  37. package/build/esm/{index-0db766d6.js → index-ba44791c.js} +1 -1
  38. package/build/esm/{index-0ae23ba2.js → index-bc744ffe.js} +1 -1
  39. package/build/esm/{index-26e5857d.js → index-c35ca28f.js} +1 -1
  40. package/build/esm/{index-d68706df.js → index-c715c5ab.js} +1 -1
  41. package/build/esm/{index-431de329.js → index-cb10f4ea.js} +1 -1
  42. package/build/esm/{index-c898277a.js → index-d67a4175.js} +5 -5
  43. package/build/esm/{index-c608145f.js → index-e0099c9b.js} +1 -1
  44. package/build/esm/{index-2ee7b410.js → index-f73847d8.js} +1 -1
  45. package/build/esm/index.js +1 -1
  46. package/build/esm/{index.styled-c747ff6a.js → index.styled-93f5b474.js} +1 -1
  47. package/build/esm/{index.styled-223a84c2.js → index.styled-b85ed107.js} +1 -1
  48. package/build/esm/{index.styles-7ed0363b.js → index.styles-48de6757.js} +1 -1
  49. package/build/esm/lead.js +1 -1
  50. package/build/esm/mantine.js +1 -1
  51. package/build/esm/misc.js +1 -1
  52. package/build/esm/navigation.js +1 -1
  53. package/build/esm/onboardingV2.js +1 -1
  54. package/build/esm/pwg.js +5 -5
  55. package/build/esm/{routing-e1e76d3f.js → routing-2c143549.js} +1 -1
  56. package/build/esm/together.js +1 -1
  57. package/build/esm/{types-9938c47f.js → types-9db2b89b.js} +12 -12
  58. package/build/esm/{types-44c30e22.js → types-d5fbe197.js} +1 -1
  59. package/build/esm/types.js +1 -1
  60. package/build/esm/{useCategory-3b67b6bf.js → useCategory-73e07bd8.js} +1 -1
  61. package/build/esm/useHealthToolCache-7723b680.js +1 -0
  62. package/build/esm/{useRafState-76d59466.js → useRafState-5eb9377d.js} +1 -1
  63. package/build/esm/{useTranslations-9eb7e492.js → useTranslations-6813bac6.js} +1 -1
  64. package/build/esm/{utils-047d4067.js → utils-0dceebc8.js} +1 -1
  65. package/build/esm/{utils-cdd46fff.js → utils-2b0341aa.js} +1 -1
  66. package/build/esm/vaccination.js +11 -11
  67. package/build/footer.js +1 -1
  68. package/build/gAssets.js +1 -1
  69. package/build/getDynamicHealthTool-af744820.js +1 -0
  70. package/build/{getSocialList-65d03949.js → getSocialList-6ebf4213.js} +1 -1
  71. package/build/hooks.js +1 -1
  72. package/build/i18n.js +1 -1
  73. package/build/i18nV2.js +1 -1
  74. package/build/{index-bb2e7ac8.js → index-3221f44d.js} +3 -3
  75. package/build/{index-458fc842.js → index-40db682e.js} +1 -1
  76. package/build/{index-c0dc8848.js → index-576894cf.js} +1 -1
  77. package/build/{index-f0e42b80.js → index-614093e1.js} +1 -1
  78. package/build/{index-7fb62d49.js → index-730daff7.js} +1 -1
  79. package/build/index-7516c512.js +1 -0
  80. package/build/{index-ba6c2d38.js → index-81b21c56.js} +1 -1
  81. package/build/{index-26438ea4.js → index-8af10b12.js} +1 -1
  82. package/build/{index-b446ee94.js → index-8b96541d.js} +1 -1
  83. package/build/index-8f3ae1c7.js +1 -0
  84. package/build/{index-363e969f.js → index-a7644a2d.js} +3 -3
  85. package/build/{index-8adf9c43.js → index-b12d5841.js} +1 -1
  86. package/build/{index-3ac74f88.js → index-b7d4ff6f.js} +1 -1
  87. package/build/{index-396739c4.js → index-ca63cae8.js} +1 -1
  88. package/build/{index-b5ec01b6.js → index-cd6da88b.js} +1 -1
  89. package/build/{index-a9856ece.js → index-dc5c8c4a.js} +1 -1
  90. package/build/{index-15b1038c.js → index-dec9a77f.js} +1 -1
  91. package/build/{index-d2f89452.js → index-e13ca260.js} +1 -1
  92. package/build/{index-d5dba9c8.js → index-e1fe04fe.js} +1 -1
  93. package/build/index.js +1 -1
  94. package/build/{index.styled-8070bfeb.js → index.styled-505838a5.js} +1 -1
  95. package/build/{index.styled-9b328fea.js → index.styled-520d507d.js} +1 -1
  96. package/build/{index.styles-c77a22e7.js → index.styles-54f12c1f.js} +1 -1
  97. package/build/lead.js +1 -1
  98. package/build/mantine.js +1 -1
  99. package/build/misc.js +1 -1
  100. package/build/navigation.js +1 -1
  101. package/build/onboardingV2.js +1 -1
  102. package/build/pwg.js +1 -1
  103. package/build/{routing-098cf5b1.js → routing-ba277561.js} +1 -1
  104. package/build/together.js +1 -1
  105. package/build/{types-0f360f0f.js → types-606b4a2d.js} +1 -1
  106. package/build/{types-925c4966.js → types-7a127efd.js} +1 -1
  107. package/build/types.js +1 -1
  108. package/build/{useCategory-a6595573.js → useCategory-69761bbe.js} +1 -1
  109. package/build/{useHealthToolCache-d0a52422.js → useHealthToolCache-3648ba84.js} +1 -1
  110. package/build/{useRafState-b0d58bd3.js → useRafState-239cbc91.js} +1 -1
  111. package/build/{useTranslations-91e3b138.js → useTranslations-e2e2513a.js} +1 -1
  112. package/build/{utils-0824271e.js → utils-cf4b4516.js} +1 -1
  113. package/build/{utils-26b1bd07.js → utils-eefa9930.js} +1 -1
  114. package/build/vaccination.js +1 -1
  115. package/package.json +7 -7
  116. package/build/esm/index-6cf02f98.js +0 -1
  117. package/build/esm/index-f04bbbb8.js +0 -1
  118. package/build/esm/useHealthToolCache-cd919c09.js +0 -1
  119. package/build/getDynamicHealthTool-5647d0cc.js +0 -1
  120. package/build/index-8ed8fd34.js +0 -1
  121. package/build/index-a2a53e08.js +0 -1
  122. /package/build/{BMI_BOYS.percentile.monthly-0d03fd8c.js → BMI_BOYS.percentile.monthly-6e8110f1.js} +0 -0
  123. /package/build/{BMI_BOYS.percentile.weekly-99e2ad9b.js → BMI_BOYS.percentile.weekly-f9e42fc4.js} +0 -0
  124. /package/build/{BMI_BOYS.percentile.yearly-1260944f.js → BMI_BOYS.percentile.yearly-632c0055.js} +0 -0
  125. /package/build/{BMI_BOYS.zscore.monthly-875539fd.js → BMI_BOYS.zscore.monthly-49190785.js} +0 -0
  126. /package/build/{BMI_BOYS.zscore.weekly-3b1dc26c.js → BMI_BOYS.zscore.weekly-dadb59c1.js} +0 -0
  127. /package/build/{BMI_BOYS.zscore.yearly-5e8f0ae4.js → BMI_BOYS.zscore.yearly-da44328c.js} +0 -0
  128. /package/build/{BMI_GIRLS.percentile.monthly-201ba264.js → BMI_GIRLS.percentile.monthly-4ddf8c90.js} +0 -0
  129. /package/build/{BMI_GIRLS.percentile.weekly-b78cf35d.js → BMI_GIRLS.percentile.weekly-c746dbf1.js} +0 -0
  130. /package/build/{BMI_GIRLS.percentile.yearly-a9b844a0.js → BMI_GIRLS.percentile.yearly-6e255037.js} +0 -0
  131. /package/build/{BMI_GIRLS.zscore.monthly-426b0e0d.js → BMI_GIRLS.zscore.monthly-3879bf53.js} +0 -0
  132. /package/build/{BMI_GIRLS.zscore.weekly-60f21623.js → BMI_GIRLS.zscore.weekly-685ecfb5.js} +0 -0
  133. /package/build/{BMI_GIRLS.zscore.yearly-b5a8db37.js → BMI_GIRLS.zscore.yearly-249f93aa.js} +0 -0
  134. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-ec70b07c.js → HEAD CIRCUM_BOYS.percentile.monthly-05b17c7f.js} +0 -0
  135. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-8c3a6f20.js → HEAD CIRCUM_BOYS.percentile.weekly-4214ba40.js} +0 -0
  136. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-c7ea8e63.js → HEAD CIRCUM_BOYS.percentile.yearly-c4724632.js} +0 -0
  137. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b05ffa5d.js → HEAD CIRCUM_BOYS.zscore.monthly-bfd5edd2.js} +0 -0
  138. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9cfd93f2.js → HEAD CIRCUM_BOYS.zscore.weekly-06fe2a96.js} +0 -0
  139. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-e9733047.js → HEAD CIRCUM_BOYS.zscore.yearly-15b92641.js} +0 -0
  140. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-6415334f.js → HEAD CIRCUM_GIRLS.percentile.monthly-53e7112b.js} +0 -0
  141. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-180c6e97.js → HEAD CIRCUM_GIRLS.percentile.weekly-72d58b7b.js} +0 -0
  142. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4165022c.js → HEAD CIRCUM_GIRLS.percentile.yearly-03545dc4.js} +0 -0
  143. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-8495880a.js → HEAD CIRCUM_GIRLS.zscore.monthly-6d0ba816.js} +0 -0
  144. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8c7b5fc1.js → HEAD CIRCUM_GIRLS.zscore.weekly-bfbbaf77.js} +0 -0
  145. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-cfb7b787.js → HEAD CIRCUM_GIRLS.zscore.yearly-77400439.js} +0 -0
  146. /package/build/{HEIGHT_BOYS.percentile.monthly-e6929d8a.js → HEIGHT_BOYS.percentile.monthly-852a9d1a.js} +0 -0
  147. /package/build/{HEIGHT_BOYS.percentile.weekly-72b98edf.js → HEIGHT_BOYS.percentile.weekly-c4255b46.js} +0 -0
  148. /package/build/{HEIGHT_BOYS.percentile.yearly-a9054fac.js → HEIGHT_BOYS.percentile.yearly-454e3f52.js} +0 -0
  149. /package/build/{HEIGHT_BOYS.zscore.monthly-2f14b4a7.js → HEIGHT_BOYS.zscore.monthly-e81ba246.js} +0 -0
  150. /package/build/{HEIGHT_BOYS.zscore.weekly-1e9090db.js → HEIGHT_BOYS.zscore.weekly-9161527d.js} +0 -0
  151. /package/build/{HEIGHT_BOYS.zscore.yearly-e8a93e78.js → HEIGHT_BOYS.zscore.yearly-a6879e36.js} +0 -0
  152. /package/build/{HEIGHT_GIRLS.percentile.monthly-eba0aa88.js → HEIGHT_GIRLS.percentile.monthly-b5b12e8c.js} +0 -0
  153. /package/build/{HEIGHT_GIRLS.percentile.weekly-38f64b59.js → HEIGHT_GIRLS.percentile.weekly-cab0b1d9.js} +0 -0
  154. /package/build/{HEIGHT_GIRLS.percentile.yearly-6b97fe8f.js → HEIGHT_GIRLS.percentile.yearly-2f24954a.js} +0 -0
  155. /package/build/{HEIGHT_GIRLS.zscore.monthly-9e7d1e76.js → HEIGHT_GIRLS.zscore.monthly-e6630234.js} +0 -0
  156. /package/build/{HEIGHT_GIRLS.zscore.weekly-e487279c.js → HEIGHT_GIRLS.zscore.weekly-fe880334.js} +0 -0
  157. /package/build/{HEIGHT_GIRLS.zscore.yearly-578e0f1f.js → HEIGHT_GIRLS.zscore.yearly-c2df155a.js} +0 -0
  158. /package/build/{Onboarding-c48d5d01.js → Onboarding-c2d6ccb3.js} +0 -0
  159. /package/build/{Visible-afe5b2db.js → Visible-988ebebc.js} +0 -0
  160. /package/build/{WEIGHT_BOYS.percentile.monthly-34687767.js → WEIGHT_BOYS.percentile.monthly-50b19eb2.js} +0 -0
  161. /package/build/{WEIGHT_BOYS.percentile.weekly-3b82ace2.js → WEIGHT_BOYS.percentile.weekly-9de772ac.js} +0 -0
  162. /package/build/{WEIGHT_BOYS.percentile.yearly-e22225ca.js → WEIGHT_BOYS.percentile.yearly-85c630a4.js} +0 -0
  163. /package/build/{WEIGHT_BOYS.zscore.monthly-705009a4.js → WEIGHT_BOYS.zscore.monthly-00d1d011.js} +0 -0
  164. /package/build/{WEIGHT_BOYS.zscore.weekly-f94eac62.js → WEIGHT_BOYS.zscore.weekly-26ba32c0.js} +0 -0
  165. /package/build/{WEIGHT_BOYS.zscore.yearly-298c5802.js → WEIGHT_BOYS.zscore.yearly-120037bc.js} +0 -0
  166. /package/build/{WEIGHT_GIRLS.percentile.monthly-f8a47ec4.js → WEIGHT_GIRLS.percentile.monthly-5b743dc3.js} +0 -0
  167. /package/build/{WEIGHT_GIRLS.percentile.weekly-36f861fe.js → WEIGHT_GIRLS.percentile.weekly-a53f7a71.js} +0 -0
  168. /package/build/{WEIGHT_GIRLS.percentile.yearly-ead925ac.js → WEIGHT_GIRLS.percentile.yearly-27db7a04.js} +0 -0
  169. /package/build/{WEIGHT_GIRLS.zscore.monthly-d3bcf823.js → WEIGHT_GIRLS.zscore.monthly-2aade00c.js} +0 -0
  170. /package/build/{WEIGHT_GIRLS.zscore.weekly-236d38ee.js → WEIGHT_GIRLS.zscore.weekly-95e3885f.js} +0 -0
  171. /package/build/{WEIGHT_GIRLS.zscore.yearly-e5e9ca56.js → WEIGHT_GIRLS.zscore.yearly-7493cdcb.js} +0 -0
  172. /package/build/{cookieHelper-81500cde.js → cookieHelper-405f413a.js} +0 -0
  173. /package/build/{dataTransform-abdb1d6a.js → dataTransform-7bb747e7.js} +0 -0
  174. /package/build/esm/{BMI_BOYS.percentile.monthly-e910fc31.js → BMI_BOYS.percentile.monthly-9b01db30.js} +0 -0
  175. /package/build/esm/{BMI_BOYS.percentile.weekly-877e93a3.js → BMI_BOYS.percentile.weekly-db4846b4.js} +0 -0
  176. /package/build/esm/{BMI_BOYS.percentile.yearly-dd156908.js → BMI_BOYS.percentile.yearly-bb5e4df1.js} +0 -0
  177. /package/build/esm/{BMI_BOYS.zscore.monthly-f5d6fca1.js → BMI_BOYS.zscore.monthly-de363786.js} +0 -0
  178. /package/build/esm/{BMI_BOYS.zscore.weekly-5ff797a6.js → BMI_BOYS.zscore.weekly-c3880909.js} +0 -0
  179. /package/build/esm/{BMI_BOYS.zscore.yearly-8479865b.js → BMI_BOYS.zscore.yearly-ff7549de.js} +0 -0
  180. /package/build/esm/{BMI_GIRLS.percentile.monthly-e5eeb9e5.js → BMI_GIRLS.percentile.monthly-b41cb470.js} +0 -0
  181. /package/build/esm/{BMI_GIRLS.percentile.weekly-9f1b53a0.js → BMI_GIRLS.percentile.weekly-93234d0d.js} +0 -0
  182. /package/build/esm/{BMI_GIRLS.percentile.yearly-111c4eec.js → BMI_GIRLS.percentile.yearly-cabe7119.js} +0 -0
  183. /package/build/esm/{BMI_GIRLS.zscore.monthly-31d87d63.js → BMI_GIRLS.zscore.monthly-e99d27f4.js} +0 -0
  184. /package/build/esm/{BMI_GIRLS.zscore.weekly-711f1422.js → BMI_GIRLS.zscore.weekly-0e639a94.js} +0 -0
  185. /package/build/esm/{BMI_GIRLS.zscore.yearly-51256819.js → BMI_GIRLS.zscore.yearly-7c23cd6b.js} +0 -0
  186. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a4a5c3cc.js → HEAD CIRCUM_BOYS.percentile.monthly-f48eea48.js} +0 -0
  187. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-888a0b07.js → HEAD CIRCUM_BOYS.percentile.weekly-a594b05a.js} +0 -0
  188. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-ed10db5d.js → HEAD CIRCUM_BOYS.percentile.yearly-8ed8d55c.js} +0 -0
  189. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-679089a2.js → HEAD CIRCUM_BOYS.zscore.monthly-0093cd2b.js} +0 -0
  190. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6aeafc3f.js → HEAD CIRCUM_BOYS.zscore.weekly-9c92a578.js} +0 -0
  191. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-25209fef.js → HEAD CIRCUM_BOYS.zscore.yearly-d770abed.js} +0 -0
  192. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-5da76ea3.js → HEAD CIRCUM_GIRLS.percentile.monthly-a239d620.js} +0 -0
  193. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-41f49a09.js → HEAD CIRCUM_GIRLS.percentile.weekly-c9719dd0.js} +0 -0
  194. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-cc657f4d.js → HEAD CIRCUM_GIRLS.percentile.yearly-e946198b.js} +0 -0
  195. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c25a7728.js → HEAD CIRCUM_GIRLS.zscore.monthly-92563b29.js} +0 -0
  196. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-427e4e33.js → HEAD CIRCUM_GIRLS.zscore.weekly-d6a51c5e.js} +0 -0
  197. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-6791a4f9.js → HEAD CIRCUM_GIRLS.zscore.yearly-e1f28ed1.js} +0 -0
  198. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ce5acd86.js → HEIGHT_BOYS.percentile.monthly-ce86410e.js} +0 -0
  199. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-130ad217.js → HEIGHT_BOYS.percentile.weekly-83f6bd9b.js} +0 -0
  200. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-de4317bf.js → HEIGHT_BOYS.percentile.yearly-4816eac7.js} +0 -0
  201. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c757c024.js → HEIGHT_BOYS.zscore.monthly-2e0230ff.js} +0 -0
  202. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-54ea7b0b.js → HEIGHT_BOYS.zscore.weekly-4d59c88f.js} +0 -0
  203. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d5ea3e7b.js → HEIGHT_BOYS.zscore.yearly-67a2442d.js} +0 -0
  204. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-37751b04.js → HEIGHT_GIRLS.percentile.monthly-c3a98e0a.js} +0 -0
  205. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c8c5c4f8.js → HEIGHT_GIRLS.percentile.weekly-6defcffb.js} +0 -0
  206. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-e002e921.js → HEIGHT_GIRLS.percentile.yearly-4bbdd2b8.js} +0 -0
  207. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a9cd2c56.js → HEIGHT_GIRLS.zscore.monthly-0fac9b6a.js} +0 -0
  208. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-165b3d65.js → HEIGHT_GIRLS.zscore.weekly-a41845e1.js} +0 -0
  209. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-50f1c490.js → HEIGHT_GIRLS.zscore.yearly-a1d0ebba.js} +0 -0
  210. /package/build/esm/{Onboarding-99cc882d.js → Onboarding-4df78d79.js} +0 -0
  211. /package/build/esm/{Visible-156e57dc.js → Visible-54dc4fb1.js} +0 -0
  212. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-a2079a58.js → WEIGHT_BOYS.percentile.monthly-158e825d.js} +0 -0
  213. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-8a5c5fb3.js → WEIGHT_BOYS.percentile.weekly-e0980ca8.js} +0 -0
  214. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d695686a.js → WEIGHT_BOYS.percentile.yearly-7198ce21.js} +0 -0
  215. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e7696380.js → WEIGHT_BOYS.zscore.monthly-bd9a12fb.js} +0 -0
  216. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5d7f5396.js → WEIGHT_BOYS.zscore.weekly-aa3e032f.js} +0 -0
  217. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-09fb1a64.js → WEIGHT_BOYS.zscore.yearly-acd728b8.js} +0 -0
  218. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-e153ec22.js → WEIGHT_GIRLS.percentile.monthly-e772d6c7.js} +0 -0
  219. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c92a30ed.js → WEIGHT_GIRLS.percentile.weekly-1b16974a.js} +0 -0
  220. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-5197d462.js → WEIGHT_GIRLS.percentile.yearly-e4842c18.js} +0 -0
  221. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b849cdbf.js → WEIGHT_GIRLS.zscore.monthly-ab1dee18.js} +0 -0
  222. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f1950c83.js → WEIGHT_GIRLS.zscore.weekly-719afc81.js} +0 -0
  223. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c19f519a.js → WEIGHT_GIRLS.zscore.yearly-b32294b0.js} +0 -0
  224. /package/build/esm/{cookieHelper-a7344fe9.js → cookieHelper-bbbf0e2a.js} +0 -0
  225. /package/build/esm/{dataTransform-56cf036f.js → dataTransform-8f741b7e.js} +0 -0
  226. /package/build/esm/{index-22835f25.js → index-109b0c40.js} +0 -0
  227. /package/build/esm/{index-19de6e3f.js → index-acf7d7ed.js} +0 -0
  228. /package/build/esm/{index-02b874af.js → index-db8ce3e1.js} +0 -0
  229. /package/build/esm/{isProduction-c9ac1637.js → isProduction-d02208e1.js} +0 -0
  230. /package/build/esm/{localizeNumberFormat-8fc05e89.js → localizeNumberFormat-e07bfe5d.js} +0 -0
  231. /package/build/esm/{normalizeLink-119588c4.js → normalizeLink-0adce342.js} +0 -0
  232. /package/build/esm/{number-4f819aad.js → number-ae400165.js} +0 -0
  233. /package/build/esm/{paths-7b434e1f.js → paths-9557b59a.js} +0 -0
  234. /package/build/esm/{screenSizeContext-70b7f268.js → screenSizeContext-62c04478.js} +0 -0
  235. /package/build/esm/{theme-77aa19fa.js → theme-c32e8d13.js} +0 -0
  236. /package/build/esm/{translationsContext-18fe52aa.js → translationsContext-e093450a.js} +0 -0
  237. /package/build/esm/{tslib.es6-a9f23900.js → tslib.es6-8ab78c28.js} +0 -0
  238. /package/build/esm/{types-d0a2a530.js → types-5224c1f4.js} +0 -0
  239. /package/build/esm/{useIsInit-1e2434e7.js → useIsInit-96c7f4e2.js} +0 -0
  240. /package/build/esm/{useOutsideClick-10c550cc.js → useOutsideClick-05f59bec.js} +0 -0
  241. /package/build/esm/{useScrollbarSize-a906a2b4.js → useScrollbarSize-01b17e9b.js} +0 -0
  242. /package/build/{index-9527a982.js → index-2da7d292.js} +0 -0
  243. /package/build/{index-c6c71c8b.js → index-814e8dc0.js} +0 -0
  244. /package/build/{index-eae0e014.js → index-f87f8314.js} +0 -0
  245. /package/build/{isProduction-acddee56.js → isProduction-da216eaf.js} +0 -0
  246. /package/build/{localizeNumberFormat-716a4dfb.js → localizeNumberFormat-25f923be.js} +0 -0
  247. /package/build/{normalizeLink-036d03b8.js → normalizeLink-915881ba.js} +0 -0
  248. /package/build/{number-de5b8913.js → number-8a99b4e6.js} +0 -0
  249. /package/build/{paths-4281f531.js → paths-ecf2f709.js} +0 -0
  250. /package/build/{screenSizeContext-fbadee4a.js → screenSizeContext-551589c7.js} +0 -0
  251. /package/build/{theme-bc7faaf9.js → theme-14392a29.js} +0 -0
  252. /package/build/{translationsContext-314e872a.js → translationsContext-f470a9df.js} +0 -0
  253. /package/build/{tslib.es6-f51058a0.js → tslib.es6-ce7dabbd.js} +0 -0
  254. /package/build/{types-f67541d1.js → types-352d2101.js} +0 -0
  255. /package/build/{useIsInit-ce5bade8.js → useIsInit-d3f8dce2.js} +0 -0
  256. /package/build/{useOutsideClick-74073aa3.js → useOutsideClick-d0a7cdfd.js} +0 -0
  257. /package/build/{useScrollbarSize-f2be6d3c.js → useScrollbarSize-c73ac811.js} +0 -0
package/build/esm/pwg.js CHANGED
@@ -1,4 +1,4 @@
1
- import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as l}from"./index-42df5ccd.js";import{T as n}from"./index-0b0dac49.js";import{P as i}from"./index-6a373522.js";import{u as c}from"./useTranslations-9eb7e492.js";import{t as s}from"./theme-77aa19fa.js";import{ResponsiveContainer as m,AreaChart as d,CartesianGrid as p,Tooltip as g,XAxis as y,YAxis as u,Area as b,ReferenceDot as h}from"recharts";import{C as f}from"./index-02b874af.js";import{a as x}from"./useOutsideClick-10c550cc.js";import E from"styled-components";import{_ as k}from"./tslib.es6-a9f23900.js";import"./index.styled-223a84c2.js";import"@mantine/core";import"dayjs";import"./screenSizeContext-70b7f268.js";import"lodash/throttle";import"./index-c608145f.js";import"date-fns/locale";import"./Onboarding-99cc882d.js";import"./isProduction-c9ac1637.js";import"./gAssets.js";import"./index-c898277a.js";import"@mantine/hooks";import"@mantine/carousel";import"classnames";import"./index-6cf02f98.js";import"@mantine/dates";import"./translationsContext-18fe52aa.js";import"string-format";const w=t=>{const{x:r,y:a,payload:o,activeWeek:l}=t;return l===o.value?e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("circle",{r:12,fill:"marryBaby"===t.siteType?s.mbColors.pink:s.colors.primaryBase}),e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:s.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},o.value)):e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:s.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},o.value))},v=E.div`
1
+ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as l}from"./index-58190e78.js";import{T as n}from"./index-103a91be.js";import{P as i}from"./index-7dbf9160.js";import{u as s}from"./useTranslations-6813bac6.js";import{t as c}from"./theme-c32e8d13.js";import{ResponsiveContainer as m,AreaChart as d,CartesianGrid as p,Tooltip as g,XAxis as y,YAxis as u,Area as b,ReferenceDot as h}from"recharts";import{C as x}from"./index-db8ce3e1.js";import{a as f}from"./useOutsideClick-05f59bec.js";import E from"styled-components";import{_ as k}from"./tslib.es6-8ab78c28.js";import"./index.styled-b85ed107.js";import"@mantine/core";import"dayjs";import"./screenSizeContext-62c04478.js";import"lodash/throttle";import"./index-e0099c9b.js";import"date-fns/locale";import"./Onboarding-4df78d79.js";import"./isProduction-d02208e1.js";import"./gAssets.js";import"./index-d67a4175.js";import"@mantine/hooks";import"@mantine/carousel";import"classnames";import"./index-820b685d.js";import"@mantine/dates";import"./translationsContext-e093450a.js";import"string-format";const w=t=>{const{x:r,y:a,payload:o,activeWeek:l}=t;return l===o.value?e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("circle",{r:12,fill:"marryBaby"===t.siteType?c.mbColors.pink:c.colors.primaryBase}),e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},o.value)):e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},o.value))},v=E.div`
2
2
  /* position: absolute; */
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -18,7 +18,7 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
18
18
  display: flex;
19
19
  align-items: center;
20
20
  padding: 4px 8px;
21
- background: ${s.colors.yellow600};
21
+ background: ${c.colors.yellow600};
22
22
  border-radius: 3px;
23
23
  } */
24
24
  & > * {
@@ -55,14 +55,14 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
55
55
  align-items: center;
56
56
  gap: 4px;
57
57
  }
58
- `,T=[{name:"overweight",backgroundColor:s.colors.yellow50,color:s.colors.yellow900},{name:"underweight",backgroundColor:s.colors.yellow50,color:s.colors.yellow900},{name:"healthy",backgroundColor:s.colors.green50,color:s.colors.green900}],B=r=>{var a,o,l,i,c;const{payload:m,active:d}=r,p=null===(a=null==m?void 0:m[0])||void 0===a?void 0:a.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:y}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(o=p.toolTipLabel)||void 0===o?void 0:o[0]," ",null===(l=p.toolTipLabel)||void 0===l?void 0:l[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:s.colors.gray800,weight:"semiBold"},null===(c=p.toolTipLabel)||void 0===c?void 0:c[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:y},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:a,activeWeek:o,t:l})=>{const n=l(`bmi.result.${a}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===o?{toolTipLabel:r,translatedStatus:n,status:a}:{})))},z=({weightBefore:l,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:z})=>{const{t:S}=c(),L="marryBaby"===z,O=t((()=>W({weightByWeek:i,weightBefore:l,toolTipLabel:v,status:C,activeWeek:E,t:S})),[i,l,v,C,E]),[F,I]=r(!1),M=a(null);return x(M,(()=>I(!1))),e.createElement(j,null,L?e.createElement(o,{type:"bodytext-3",color:s.mbColors.dark}," ",S("babyGrowth.weight")," ",S("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:s.colors.gray500},S("babyGrowth.weight")," ",S("pregnancyWeightGain.weightInput.desc")),Array.isArray(O)&&O.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:O,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:s.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&F&&void 0!==E&&void 0!==k},t))}),e.createElement(y,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:z})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(u,{domain:[e=>Math.max(e,l-10||e),e=>Math.max(e,l+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:s.colors.gray600}}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:L?s.mbColors.tonePink:s.colors.primary100}),void 0!==E&&void 0!==k&&e.createElement(h,{onClick:()=>I(!0),x:0===E?1:E,y:k,r:4,shape:e.createElement(f,{ref:M,r:4}),fill:L?s.mbColors.pink:s.colors.primaryBase,stroke:L?s.mbColors.pink:s.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),L?e.createElement(o,{type:"bodytext-3",color:s.mbColors.dark},S("pregnancy.week")):e.createElement(n,{size:"n1",color:s.colors.gray500},S("pregnancy.week")))))},S=t=>{var{color:r}=t,a=k(t,["color"]);return e.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},a),e.createElement("circle",{cx:"4",cy:"4",r:"4",fill:r||s.colors.primaryBase}))},L=({idealWeight:t,siteType:r})=>{const{t:a}=c(),l="marryBaby"===r;return e.createElement(C,null,e.createElement("div",null,l?e.createElement(e.Fragment,null,e.createElement(S,{color:s.mbColors.lightPink}),e.createElement(o,{type:"bodytext-3",color:s.mbColors.dark},a("pregnancyTool.weightSuggested")," ",e.createElement(n,{size:"n1",color:s.colors.gray800,weight:"bold",as:"span"},t))):e.createElement(e.Fragment,null,e.createElement(S,{color:s.colors.primary100}),e.createElement(n,{size:"n1",color:s.colors.gray600},e.createElement(n,{size:"n1",as:"span"},a("pregnancyTool.weightSuggested")," "),e.createElement(n,{size:"n1",color:s.colors.gray800,weight:"bold",as:"span"},t)))),e.createElement("div",null,l?e.createElement(e.Fragment,null,e.createElement(S,{color:s.mbColors.pink}),e.createElement(o,{type:"bodytext-3",color:s.mbColors.dark},a("pwg.placeholder.weight"))):e.createElement(e.Fragment,null,e.createElement(S,null),e.createElement(n,{size:"n1",color:s.colors.gray600},a("pwg.placeholder.weight")))))},O=E.div`
58
+ `,T=[{name:"overweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"underweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"healthy",backgroundColor:c.colors.green50,color:c.colors.green900}],B=r=>{var a,o,l,i,s;const{payload:m,active:d}=r,p=null===(a=null==m?void 0:m[0])||void 0===a?void 0:a.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:y}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(o=p.toolTipLabel)||void 0===o?void 0:o[0]," ",null===(l=p.toolTipLabel)||void 0===l?void 0:l[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:c.colors.gray800,weight:"semiBold"},null===(s=p.toolTipLabel)||void 0===s?void 0:s[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:y},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:a,activeWeek:o,t:l})=>{const n=l(`bmi.result.${a}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===o?{toolTipLabel:r,translatedStatus:n,status:a}:{})))},z=({weightBefore:l,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:z})=>{const{t:S}=s(),L="marryBaby"===z,O=t((()=>W({weightByWeek:i,weightBefore:l,toolTipLabel:v,status:C,activeWeek:E,t:S})),[i,l,v,C,E]),[F,I]=r(!1),M=a(null);return f(M,(()=>I(!1))),e.createElement(j,null,L?e.createElement(o,{type:"bodytext-3",color:c.mbColors.dark}," ",S("babyGrowth.weight")," ",S("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:c.colors.gray500},S("babyGrowth.weight")," ",S("pregnancyWeightGain.weightInput.desc")),Array.isArray(O)&&O.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:O,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:c.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&F&&void 0!==E&&void 0!==k},t))}),e.createElement(y,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:z})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(u,{domain:[e=>Math.max(e,l-10||e),e=>Math.max(e,l+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:c.colors.gray600}}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:L?c.mbColors.tonePink:c.colors.primary100}),void 0!==E&&void 0!==k&&e.createElement(h,{onClick:()=>I(!0),x:0===E?1:E,y:k,r:4,shape:e.createElement(x,{ref:M,r:4}),fill:L?c.mbColors.pink:c.colors.primaryBase,stroke:L?c.mbColors.pink:c.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),L?e.createElement(o,{type:"bodytext-3",color:c.mbColors.dark},S("pregnancy.week")):e.createElement(n,{size:"n1",color:c.colors.gray500},S("pregnancy.week")))))},S=t=>{var{color:r}=t,a=k(t,["color"]);return e.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},a),e.createElement("circle",{cx:"4",cy:"4",r:"4",fill:r||c.colors.primaryBase}))},L=({idealWeight:t,siteType:r})=>{const{t:a}=s(),l="marryBaby"===r;return e.createElement(C,null,e.createElement("div",null,l?e.createElement(e.Fragment,null,e.createElement(S,{color:c.mbColors.lightPink}),e.createElement(o,{type:"bodytext-3",color:c.mbColors.dark},a("pregnancyTool.weightSuggested")," ",e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t))):e.createElement(e.Fragment,null,e.createElement(S,{color:c.colors.primary100}),e.createElement(n,{size:"n1",color:c.colors.gray600},e.createElement(n,{size:"n1",as:"span"},a("pregnancyTool.weightSuggested")," "),e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t)))),e.createElement("div",null,l?e.createElement(e.Fragment,null,e.createElement(S,{color:c.mbColors.pink}),e.createElement(o,{type:"bodytext-3",color:c.mbColors.dark},a("pwg.placeholder.weight"))):e.createElement(e.Fragment,null,e.createElement(S,null),e.createElement(n,{size:"n1",color:c.colors.gray600},a("pwg.placeholder.weight")))))},O=E.div`
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  align-items: center;
62
62
  padding: 24px 16px;
63
63
  width: 100%;
64
64
  gap: 24px;
65
- border: 1px solid ${s.colors.neutral100};
65
+ border: 1px solid ${c.colors.neutral100};
66
66
  border-radius: 8px;
67
67
  .chart-header {
68
68
  text-align: center;
@@ -70,4 +70,4 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
70
70
  > div {
71
71
  width: 100%;
72
72
  }
73
- `,F=({chartProps:t,pillCarouselProps:r,idealWeight:a,description:o,siteType:m})=>{const{t:d}=c(),p="marryBaby"===m;return e.createElement(O,null,e.createElement("div",{className:"chart-header"},p?e.createElement(l,{type:"h3",color:s.mbColors.dark},d("pregnancyTool.weightSuggested")):e.createElement(n,{size:"s1",weight:"semiBold",color:s.colors.gray800},d("pregnancyTool.weightSuggested")),o&&o),e.createElement(i,Object.assign({},r)),e.createElement("div",null,e.createElement(L,{idealWeight:a,siteType:m}),e.createElement(z,Object.assign({},t,{siteType:m}))))};export{F as PregnancyWeightGainChart};
73
+ `,F=({chartProps:t,pillCarouselProps:r,idealWeight:a,description:o,siteType:m})=>{const{t:d}=s(),p="marryBaby"===m;return e.createElement(O,null,e.createElement("div",{className:"chart-header"},p?e.createElement(l,{type:"h3",color:c.mbColors.dark},d("pregnancyTool.weightSuggested")):e.createElement(n,{size:"s1",weight:"semiBold",color:c.colors.gray800},d("pregnancyTool.weightSuggested")),o&&o),e.createElement(i,Object.assign({},r)),e.createElement("div",null,e.createElement(L,{idealWeight:a,siteType:m}),e.createElement(z,Object.assign({},t,{siteType:m}))))};export{F as PregnancyWeightGainChart};
@@ -1 +1 @@
1
- import{d as e}from"./index-c608145f.js";import{i as s}from"./isProduction-c9ac1637.js";const t=(t,o)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return r?"http://localhost:3000":`https://${!r&&!s?o?"fe.":"discover.":o?"www.":""}${e[o?"vi-VN_MB":t]}`},o=(t,o)=>process.env.UNIFY_SSO_API||`https://${s?"id.":"staging-id."}${e[o?"vi-VN_MB":t]}`,r=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${s?"together.":"staging-together."}hellohealthgroup.com`,n=t=>process.env.UNIFY_DISCOVER_API||`https://${s?"wp.":"staging."}${e[t]}`,c=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${s?"health-care.":"service-health-care."}hellohealthgroup.com`;export{o as a,r as b,n as c,c as d,t as g};
1
+ import{d as e}from"./index-e0099c9b.js";import{i as s}from"./isProduction-d02208e1.js";const t=(t,o)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return r?"http://localhost:3000":`https://${!r&&!s?o?"fe.":"discover.":o?"www.":""}${e[o?"vi-VN_MB":t]}`},o=(t,o)=>process.env.UNIFY_SSO_API||`https://${s?"id.":"staging-id."}${e[o?"vi-VN_MB":t]}`,r=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${s?"together.":"staging-together."}hellohealthgroup.com`,n=t=>process.env.UNIFY_DISCOVER_API||`https://${s?"wp.":"staging."}${e[t]}`,i=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${s?"health-care.":"service-health-care."}hellohealthgroup.com`;export{o as a,r as b,n as c,i as d,t as g};
@@ -1 +1 @@
1
- export{f as CardAuthor,C as CardReactions,L as LabelSortPin,e as LabelSorting,o as PopoverMenu,g as PopupDoctor,P as PopupExpert,i as PopupFrame,h as PopupHospital,k as PostContent,m as ProfileDetail,l as ProfileDetailModal,j as ShareBox,S as SharePopup,p as SourceList,n as TabNameInProfileDetail,d as TagTopic,T as TogetherAuthConfigContext,c as TogetherAuthConfigContextProvider,u as useTogetherAuthRequiredAction}from"./index.styled-c747ff6a.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-d68706df.js";export{C as CardLink,i as CardPost,j as CardPostPopoverMore,k as CardReply,l as CardReplyPopover,a as CreateNewPostContent,b as CreatePostDescription,c as CreatePostTitle,d as ImagePreviewPopup,I as InputCommentBar,L as LabelPin,P as PopupDanger,f as PostImagePreview,e as PostSingleImageViewPopup,h as SkipQuestionOfExpertBtn,g as SocialLinkPreview,S as SubmitReportForm,t as TogetherTypes,T as TopicSelectList,V as VerifiedTag}from"./types-44c30e22.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,b as TogetherComponentGlobalContext,d as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./index.styles-7ed0363b.js";import"react";import"./index-c898277a.js";import"./tslib.es6-a9f23900.js";import"@mantine/core";import"@mantine/hooks";import"./theme-77aa19fa.js";import"./gAssets.js";import"./index-c608145f.js";import"date-fns/locale";import"./Onboarding-99cc882d.js";import"./isProduction-c9ac1637.js";import"dayjs";import"./screenSizeContext-70b7f268.js";import"styled-components";import"lodash/throttle";import"@mantine/carousel";import"./index-0b0dac49.js";import"./useTranslations-9eb7e492.js";import"./translationsContext-18fe52aa.js";import"string-format";import"classnames";import"@mantine/dates";import"./number-4f819aad.js";import"date-fns";import"./index-2ee7b410.js";import"./index-431de329.js";import"./constants-f75adf9a.js";import"./routing-e1e76d3f.js";import"dayjs/plugin/relativeTime";import"./paths-7b434e1f.js";import"lodash/debounce";import"./useCategory-3b67b6bf.js";import"./index-71be4e24.js";import"innertext";import"./cookieHelper-a7344fe9.js";import"react-contenteditable";import"react-dom";import"./utils-047d4067.js";import"./index.styled-223a84c2.js";import"./index-02b874af.js";import"react-keyed-flatten-children";import"slugify";
1
+ export{f as CardAuthor,C as CardReactions,L as LabelSortPin,e as LabelSorting,o as PopoverMenu,g as PopupDoctor,P as PopupExpert,i as PopupFrame,h as PopupHospital,k as PostContent,m as ProfileDetail,l as ProfileDetailModal,j as ShareBox,S as SharePopup,p as SourceList,n as TabNameInProfileDetail,d as TagTopic,T as TogetherAuthConfigContext,c as TogetherAuthConfigContextProvider,u as useTogetherAuthRequiredAction}from"./index.styled-93f5b474.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-c715c5ab.js";export{C as CardLink,i as CardPost,j as CardPostPopoverMore,k as CardReply,l as CardReplyPopover,a as CreateNewPostContent,b as CreatePostDescription,c as CreatePostTitle,d as ImagePreviewPopup,I as InputCommentBar,L as LabelPin,P as PopupDanger,f as PostImagePreview,e as PostSingleImageViewPopup,h as SkipQuestionOfExpertBtn,g as SocialLinkPreview,S as SubmitReportForm,t as TogetherTypes,T as TopicSelectList,V as VerifiedTag}from"./types-d5fbe197.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,b as TogetherComponentGlobalContext,d as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./index.styles-48de6757.js";import"react";import"./index-d67a4175.js";import"./tslib.es6-8ab78c28.js";import"@mantine/core";import"@mantine/hooks";import"./theme-c32e8d13.js";import"./gAssets.js";import"./index-e0099c9b.js";import"date-fns/locale";import"./Onboarding-4df78d79.js";import"./isProduction-d02208e1.js";import"dayjs";import"./screenSizeContext-62c04478.js";import"styled-components";import"lodash/throttle";import"@mantine/carousel";import"./index-103a91be.js";import"./useTranslations-6813bac6.js";import"./translationsContext-e093450a.js";import"string-format";import"classnames";import"@mantine/dates";import"./number-ae400165.js";import"date-fns";import"./index-f73847d8.js";import"./index-cb10f4ea.js";import"./constants-ddcb1b9b.js";import"./routing-2c143549.js";import"dayjs/plugin/relativeTime";import"./paths-9557b59a.js";import"lodash/debounce";import"./useCategory-73e07bd8.js";import"./index-5c771189.js";import"innertext";import"./cookieHelper-bbbf0e2a.js";import"react-contenteditable";import"react-dom";import"./utils-0dceebc8.js";import"./index.styled-b85ed107.js";import"./index-db8ce3e1.js";import"react-keyed-flatten-children";import"slugify";
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{useState as a,useCallback as o,useMemo as n,useEffect as s,useRef as l,useReducer as r}from"react";import{u as c}from"./useTranslations-9eb7e492.js";import d from"lodash/debounce";import{I as p,a as u,f as h,M as g,g as m,C}from"./constants-f75adf9a.js";import{I as b}from"./index-431de329.js";import y,{createGlobalStyle as f}from"styled-components";import{T as v,I as x}from"./index-0b0dac49.js";import{t as S}from"./theme-77aa19fa.js";import E from"lodash/shuffle";import{a as w}from"./useOutsideClick-10c550cc.js";import{M as L}from"./screenSizeContext-70b7f268.js";import k from"react-loading-skeleton";import{P as O}from"./paths-7b434e1f.js";import{Skeleton as j,Input as I,Divider as $,Tabs as F,Flex as M,Button as R}from"@mantine/core";import{e as T,d as P}from"./index-c608145f.js";import{g as N,s as A,d as B}from"./cookieHelper-a7344fe9.js";import{C as V}from"./index-19de6e3f.js";import D from"string-format";const K=e=>t.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),t.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));function z(){const[e,t]=a((()=>{if("undefined"==typeof window)return"unset";if(N(T))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,s]=a((()=>{if("undefined"==typeof window)return null;const e=N(T);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};A(T,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{B(T),t("denied")}))}),[]);return n((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const _=y.div``,H=y.div`
1
+ import{a as e}from"./tslib.es6-8ab78c28.js";import*as t from"react";import i,{useState as a,useCallback as o,useMemo as n,useEffect as s,useRef as l,useReducer as c}from"react";import{u as r}from"./useTranslations-6813bac6.js";import d from"lodash/debounce";import{I as p,a as u,f as h,M as g,g as m,C}from"./constants-ddcb1b9b.js";import{I as b}from"./index-cb10f4ea.js";import y,{createGlobalStyle as f}from"styled-components";import{T as v,I as x}from"./index-103a91be.js";import{t as S}from"./theme-c32e8d13.js";import E from"lodash/shuffle";import{a as w}from"./useOutsideClick-05f59bec.js";import{M as L}from"./screenSizeContext-62c04478.js";import k from"react-loading-skeleton";import{P as O}from"./paths-9557b59a.js";import{Skeleton as j,Input as I,Divider as $,Tabs as F,Flex as M,Button as R}from"@mantine/core";import{e as T,d as P}from"./index-e0099c9b.js";import{g as N,s as A,d as B}from"./cookieHelper-bbbf0e2a.js";import{C as V}from"./index-acf7d7ed.js";import D from"string-format";const K=e=>t.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),t.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));function z(){const[e,t]=a((()=>{if("undefined"==typeof window)return"unset";if(N(T))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,s]=a((()=>{if("undefined"==typeof window)return null;const e=N(T);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};A(T,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{B(T),t("denied")}))}),[]);return n((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const _=y.div``,H=y.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -124,13 +124,13 @@ import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{us
124
124
  &:first-child {
125
125
  padding-top: 18px;
126
126
  }
127
- `,se=({cities:e,isLoading:t,onLocationClick:a,selectedLocation:o})=>{const{t:n,locale:s}=c();return i.createElement(te,{"data-testid":"location-search-results"},i.createElement(ie,null,t?i.createElement(ne,{count:5}):!e||e.length<1?i.createElement(i.Fragment,null,i.createElement(oe,{"data-is-denied":"true"},i.createElement(v,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):i.createElement(i.Fragment,null,i.createElement(oe,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;a&&a({name:n("booking.searchBar.allLocations"),id:p,slug:null===(e=u[s])||void 0===e?void 0:e.ALL})}},i.createElement(ae,{color:S.colors.neutral400}),i.createElement(v,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>i.createElement(oe,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),a&&a(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==o?void 0:o.id)===e.id},i.createElement(ae,{color:S.colors.neutral400}),i.createElement(v,{size:"md"},e.name)))))))},le="TYPE_CHARACTER",re="REMOVE_CHARACTER",ce="REMOVE_ALL",de="REMOVE_LAST_VISIBLE_NODE",pe="PAUSE_FOR",ue="CHANGE_DELETE_SPEED",he="CHANGE_DELAY",ge="PASTE_STRING",me=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,Ce="TEXT_NODE";class be{constructor(e){this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=()=>(this.state.eventLoopPaused=!1,this.runEventLoop(),this),this.pause=()=>(this.state.eventLoopPaused=!0,this),this.stop=()=>(this.state.eventLoop&&(window.cancelAnimationFrame(this.state.eventLoop),this.state.eventLoop=null),this),this.pauseFor=e=>(this.addEventToQueue(pe,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:i}=this.options||{},a="function"==typeof i?i(e):e.split("");this.typeCharacters(a,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(ge,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(ce,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(ue,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(he,{delay:e}),this},this.deleteChars=e=>{if(!e)throw new Error("Must provide amount of characters to delete");for(let t=0;t<e;t++)this.addEventToQueue(re);return this},this.typeCharacters=(e,t=null)=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((e=>{this.addEventToQueue(le,{character:e,node:t})})),this},this.removeCharacters=e=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((()=>{this.addEventToQueue(re)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:a}=this.options;return a?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,a)=>{const o={eventName:e,eventArgs:t||{}};return this.state[a]=i?[o,...this.state[a]]:[...this.state[a],o],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const i=[...this.state.eventQueue],a=i.shift();let o=0;if(o=a.eventName===de||a.eventName===re?"natural"===this.options.deleteSpeed?me(40,80):this.options.deleteSpeed:"natural"===this.options.delay?me(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=a;switch(n){case ge:case le:{const{character:e}=s,t=document.createTextNode(e);let i=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(i=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:Ce,character:e,node:i}];break}case re:i.unshift({eventName:de,eventArgs:{removingCharacterNode:!0}});break;case pe:{const{ms:e}=a.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case ce:{const{visibleNodes:e}=this.state,{speed:t}=s,a=[];t&&a.push({eventName:ue,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)a.push({eventName:de,eventArgs:{removingCharacterNode:!1}});t&&a.push({eventName:ue,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...a);break}case de:if(this.state.visibleNodes.length){const{node:e,character:t}=this.state.visibleNodes.pop();this.options.onRemoveNode&&"function"==typeof this.options.onRemoveNode&&this.options.onRemoveNode({node:e,character:t}),e&&e.parentNode.removeChild(e)}break;case ue:this.options.deleteSpeed=a.eventArgs.speed;break;case he:this.options.delay=a.eventArgs.delay}this.options.loop&&(a.eventName===de||a.eventArgs&&a.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,a])),this.state.eventQueue=i,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(ce,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function ye({inputRef:e,wrapperRef:t,disabled:i}){const{t:a,locale:o}=c(),l=n((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==o&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),E(e).map((e=>a(e)))}),[a,o]);function r(e){const t=p();return t&&(t.placeholder=t.placeholder+e),null}function d(){const e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return e&&e.current?e.current:t&&t.current&&t.current.querySelector("input")||null}s((()=>{if(i)return;const e=p();e&&(e.placeholder="",new be({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:d}))}),[e,t])}const fe=y.div`
127
+ `,se=({cities:e,isLoading:t,onLocationClick:a,selectedLocation:o})=>{const{t:n,locale:s}=r();return i.createElement(te,{"data-testid":"location-search-results"},i.createElement(ie,null,t?i.createElement(ne,{count:5}):!e||e.length<1?i.createElement(i.Fragment,null,i.createElement(oe,{"data-is-denied":"true"},i.createElement(v,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):i.createElement(i.Fragment,null,i.createElement(oe,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;a&&a({name:n("booking.searchBar.allLocations"),id:p,slug:null===(e=u[s])||void 0===e?void 0:e.ALL})}},i.createElement(ae,{color:S.colors.neutral400}),i.createElement(v,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>i.createElement(oe,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),a&&a(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==o?void 0:o.id)===e.id},i.createElement(ae,{color:S.colors.neutral400}),i.createElement(v,{size:"md"},e.name)))))))},le="TYPE_CHARACTER",ce="REMOVE_CHARACTER",re="REMOVE_ALL",de="REMOVE_LAST_VISIBLE_NODE",pe="PAUSE_FOR",ue="CHANGE_DELETE_SPEED",he="CHANGE_DELAY",ge="PASTE_STRING",me=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,Ce="TEXT_NODE";class be{constructor(e){this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=()=>(this.state.eventLoopPaused=!1,this.runEventLoop(),this),this.pause=()=>(this.state.eventLoopPaused=!0,this),this.stop=()=>(this.state.eventLoop&&(window.cancelAnimationFrame(this.state.eventLoop),this.state.eventLoop=null),this),this.pauseFor=e=>(this.addEventToQueue(pe,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:i}=this.options||{},a="function"==typeof i?i(e):e.split("");this.typeCharacters(a,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(ge,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(re,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(ue,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(he,{delay:e}),this},this.deleteChars=e=>{if(!e)throw new Error("Must provide amount of characters to delete");for(let t=0;t<e;t++)this.addEventToQueue(ce);return this},this.typeCharacters=(e,t=null)=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((e=>{this.addEventToQueue(le,{character:e,node:t})})),this},this.removeCharacters=e=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((()=>{this.addEventToQueue(ce)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:a}=this.options;return a?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,a)=>{const o={eventName:e,eventArgs:t||{}};return this.state[a]=i?[o,...this.state[a]]:[...this.state[a],o],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const i=[...this.state.eventQueue],a=i.shift();let o=0;if(o=a.eventName===de||a.eventName===ce?"natural"===this.options.deleteSpeed?me(40,80):this.options.deleteSpeed:"natural"===this.options.delay?me(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=a;switch(n){case ge:case le:{const{character:e}=s,t=document.createTextNode(e);let i=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(i=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:Ce,character:e,node:i}];break}case ce:i.unshift({eventName:de,eventArgs:{removingCharacterNode:!0}});break;case pe:{const{ms:e}=a.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case re:{const{visibleNodes:e}=this.state,{speed:t}=s,a=[];t&&a.push({eventName:ue,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)a.push({eventName:de,eventArgs:{removingCharacterNode:!1}});t&&a.push({eventName:ue,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...a);break}case de:if(this.state.visibleNodes.length){const{node:e,character:t}=this.state.visibleNodes.pop();this.options.onRemoveNode&&"function"==typeof this.options.onRemoveNode&&this.options.onRemoveNode({node:e,character:t}),e&&e.parentNode.removeChild(e)}break;case ue:this.options.deleteSpeed=a.eventArgs.speed;break;case he:this.options.delay=a.eventArgs.delay}this.options.loop&&(a.eventName===de||a.eventArgs&&a.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,a])),this.state.eventQueue=i,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(re,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function ye({inputRef:e,wrapperRef:t,disabled:i}){const{t:a,locale:o}=r(),l=n((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==o&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),E(e).map((e=>a(e)))}),[a,o]);function c(e){const t=p();return t&&(t.placeholder=t.placeholder+e),null}function d(){const e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return e&&e.current?e.current:t&&t.current&&t.current.querySelector("input")||null}s((()=>{if(i)return;const e=p();e&&(e.placeholder="",new be({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:c,onRemoveNode:d}))}),[e,t])}const fe=y.div`
128
128
  user-select: none;
129
129
  input {
130
130
  pointer-events: none;
131
131
  background-color: white;
132
132
  }
133
- `;function ve({focused:e,value:t="",onClick:a,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:r}=c(),d=l(null);ye({wrapperRef:d,disabled:!!s});const p=n((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return i.createElement(fe,Object.assign({onClick:()=>a&&a(),ref:d},p),i.createElement(Y,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:i.createElement(q,{color:S.colors.gray400}),placeholder:r("booking.searchBar.searchInput.placeholder"),value:t,size:"md"}))}const xe=y.header`
133
+ `;function ve({focused:e,value:t="",onClick:a,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:c}=r(),d=l(null);ye({wrapperRef:d,disabled:!!s});const p=n((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return i.createElement(fe,Object.assign({onClick:()=>a&&a(),ref:d},p),i.createElement(Y,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:i.createElement(q,{color:S.colors.gray400}),placeholder:c("booking.searchBar.searchInput.placeholder"),value:t,size:"md"}))}const xe=y.header`
134
134
  display: flex;
135
135
  height: 64px;
136
136
  align-items: center;
@@ -220,7 +220,7 @@ import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{us
220
220
  }
221
221
  `,Ve=y(v)`
222
222
  font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
223
- `,De=({onClick:e})=>{const{t:t}=c(),a=t("booking.searchBar.searchButton");return i.createElement(Be,{onClick:e,title:a},i.createElement(Ae,null),i.createElement(Ve,{size:"s3",color:"white"},a))};function Ke({isMobile:e,state:t,dispatch:a,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:r,focusLocationInput:d,focusSearchInput:p,renderLocationResults:u,renderSearchResults:g,locationTrackingAttributes:m,trackingAttributes:C,onSearch:b,initalSearchValue:y}){const f=l(null),v=l(null),{focused:x,searchLocationKeywords:E,geoLocationPermission:L,selectedLocation:k,searchKeywords:O,inputSearchPlaceholder:j}=t,{t:I}=c();ye({wrapperRef:v,disabled:!!j}),w(f,(()=>{e||a({type:Ie.ClickOutsideInputLocation})})),w(v,(()=>{e||a({type:Ie.ClickOutsideInputSearch})}));const $=n((()=>"granted"===L&&(null==k?void 0:k.id)===h?S.colors.primaryBase:S.colors.gray400),[L,k]),F=o((function(e){a({type:Ie.ChangeInputSearch,payload:e}),"function"!=typeof b&&(e.trim().length>Oe[t.locale]||y?r(e.trim(),t):(r.cancel(),a({type:Ie.DisplayInitialSearchResults})))}),[a,t]),M=o((function(e){a({type:Ie.ChangeInputLocation,payload:e}),e.trim().length>Oe[t.locale]?s(e.trim()):(s.cancel(),a({type:Ie.DisplayInitialCities}))}),[s,a]);return i.createElement(Me,null,i.createElement(Te,{ref:f},i.createElement(Y,{inputClassName:"location"===x?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:i.createElement(Q,{className:"location-pin-icon",color:$}),actionIcon:i.createElement(Ne,{color:S.colors.gray300,className:""!==E?"shown":""}),onActionClick:function(){a({type:Ie.ClearInputLocation}),s.cancel(),d()},value:E,onChange:M,onFocus:()=>a({type:Ie.FocusInputLocation}),size:"md",trackingAttributes:m}),!e&&u()),i.createElement(Pe,{ref:v},i.createElement(Y,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:i.createElement(Ne,{color:S.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){a({type:Ie.ClearInputSearch}),r.cancel(),r("",t),p()},value:O,onChange:F,onFocus:()=>a({type:Ie.FocusInputSearch}),inputClassName:"search"===x?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:e=>{t.autoCompleteDisabled&&"Enter"===e.key&&b&&b({cityId:t.selectedLocation.id,keyword:O})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!e&&g()),t.autoCompleteDisabled&&!t.isMobile&&i.createElement(De,{onClick:()=>{b({cityId:t.selectedLocation.id,keyword:O})}}))}const ze=()=>i.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},i.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),_e=()=>i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),He=()=>i.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},i.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),Ge=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Ze=y.header`
223
+ `,De=({onClick:e})=>{const{t:t}=r(),a=t("booking.searchBar.searchButton");return i.createElement(Be,{onClick:e,title:a},i.createElement(Ae,null),i.createElement(Ve,{size:"s3",color:"white"},a))};function Ke({isMobile:e,state:t,dispatch:a,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:c,focusLocationInput:d,focusSearchInput:p,renderLocationResults:u,renderSearchResults:g,locationTrackingAttributes:m,trackingAttributes:C,onSearch:b,initalSearchValue:y}){const f=l(null),v=l(null),{focused:x,searchLocationKeywords:E,geoLocationPermission:L,selectedLocation:k,searchKeywords:O,inputSearchPlaceholder:j}=t,{t:I}=r();ye({wrapperRef:v,disabled:!!j}),w(f,(()=>{e||a({type:Ie.ClickOutsideInputLocation})})),w(v,(()=>{e||a({type:Ie.ClickOutsideInputSearch})}));const $=n((()=>"granted"===L&&(null==k?void 0:k.id)===h?S.colors.primaryBase:S.colors.gray400),[L,k]),F=o((function(e){a({type:Ie.ChangeInputSearch,payload:e}),"function"!=typeof b&&(e.trim().length>Oe[t.locale]||y?c(e.trim(),t):(c.cancel(),a({type:Ie.DisplayInitialSearchResults})))}),[a,t]),M=o((function(e){a({type:Ie.ChangeInputLocation,payload:e}),e.trim().length>Oe[t.locale]?s(e.trim()):(s.cancel(),a({type:Ie.DisplayInitialCities}))}),[s,a]);return i.createElement(Me,null,i.createElement(Te,{ref:f},i.createElement(Y,{inputClassName:"location"===x?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:i.createElement(Q,{className:"location-pin-icon",color:$}),actionIcon:i.createElement(Ne,{color:S.colors.gray300,className:""!==E?"shown":""}),onActionClick:function(){a({type:Ie.ClearInputLocation}),s.cancel(),d()},value:E,onChange:M,onFocus:()=>a({type:Ie.FocusInputLocation}),size:"md",trackingAttributes:m}),!e&&u()),i.createElement(Pe,{ref:v},i.createElement(Y,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:i.createElement(Ne,{color:S.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){a({type:Ie.ClearInputSearch}),c.cancel(),c("",t),p()},value:O,onChange:F,onFocus:()=>a({type:Ie.FocusInputSearch}),inputClassName:"search"===x?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:e=>{t.autoCompleteDisabled&&"Enter"===e.key&&b&&b({cityId:t.selectedLocation.id,keyword:O})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!e&&g()),t.autoCompleteDisabled&&!t.isMobile&&i.createElement(De,{onClick:()=>{b({cityId:t.selectedLocation.id,keyword:O})}}))}const ze=()=>i.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},i.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),_e=()=>i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),He=()=>i.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},i.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),Ge=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Ze=y.header`
224
224
  display: flex;
225
225
  justify-content: space-between;
226
226
  padding: 12px 24px;
@@ -324,7 +324,7 @@ import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{us
324
324
  `,ot=y.div`
325
325
  display: grid;
326
326
  place-items: center;
327
- `,nt={doctors:({width:e,height:t})=>i.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none"},i.createElement("g",{clipPath:"url(#clip0_14712_400114)"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),i.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_14712_400114"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>i.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none"},i.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),i.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},st=({type:e,item:t,imageUrl:a,className:o,onClickItem:s})=>{const l=n((()=>{const t=nt[e]||J;return i.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return i.createElement(Xe,{onClick:()=>s&&s(t),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(t)},tabIndex:0,role:"button",className:o},i.createElement(it,null,"hospitals"===e?i.createElement(at,{width:"12",height:"16",viewBox:"0 0 12 16"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):i.createElement(et,{type:e},a?i.createElement("img",{src:a,width:32,height:"services"===e?32:24,loading:"lazy"}):l)),i.createElement(tt,{color:S.colors.gray800,size:"p3"},t.name))},lt=({type:e,data:t,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:r,isMobile:d,isLoading:p,keyword:h,isNavResultItem:g})=>{const[m,C]=a(!1),{t:b,locale:y}=c(),{selectedLocation:f,searchKeywords:x}=o,E=n((()=>u[y]),[y]),w="ms-MY"===y,L=n((()=>({doctors:{name:b("booking.searchPopup.doctors"),icon:i.createElement(ze,null),slug:E.DOCTOR},services:{name:b("booking.searchPopup.services"),icon:i.createElement(_e,null),slug:E.SERVICE},hospitals:{name:b("booking.searchPopup.hospitals"),icon:i.createElement(He,null),slug:E.HOSPITAL},specialties:{name:b("booking.searchPopup.specialties"),icon:i.createElement(Ge,null),slug:E.SPECIALTIES}})),[e,E]),O=n((()=>L[e].slug),[L]),j=d?l:r;function I(t){let i="";switch(e){case"specialties":i=`/${f.slug}/${L.doctors.slug}/${t.slug}`;break;case"services":i=`/${f.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:Ie.SelectSearchResult,payload:{name:t.name,url:i}})}function $(t){return i.createElement(st,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return i.createElement("section",null,i.createElement(Ze,null,i.createElement(Ye,null,L[e].icon,i.createElement(Ue,null,L[e].name)),(h.trim().length<=Oe[y]||w)&&i.createElement(We,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${f.slug}/${O}`}t&&s({type:Ie.NavigateTo,payload:t})}},i.createElement(v,{size:"p3",color:S.colors.primaryBase},b("booking.searchPopup.seeAll")))),(p||t&&t.length>0)&&i.createElement(Qe,null,i.createElement(qe,null,p&&Array(2).fill(void 0).map(((t,a)=>i.createElement(Xe,{key:e+"loading"+a},i.createElement(it,null,i.createElement(ot,null,i.createElement(k,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),i.createElement(k,{width:120,height:24})))),!p&&t&&t.length>0&&t.slice(0,j).map($)),i.createElement(qe,{isShown:m,isMore:!0},t.slice(j,-1).map($)),"specialties"===e&&j<t.length&&!p&&i.createElement("button",{onClick:()=>C(!m)},i.createElement(Je,{size:"p3",color:S.colors.primaryBase},b(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<t.length||w)&&!p&&h.trim().length>Oe[y]&&i.createElement("button",{onClick:function(){const{slug:t}=L[e],i=`/${f.slug}/${t}?q=${x}`;s({type:Ie.NavigateTo,payload:i})}},i.createElement(Je,{size:"p3",color:S.colors.primaryBase},b(`booking.searchPopup.searchIn.${e}`,{name:h})))),!p&&0===(null==t?void 0:t.length)&&i.createElement(Qe,null,i.createElement(v,{size:"sm",color:S.colors.gray400},b("booking.searchBar.noResults"))))},rt=y.section`
327
+ `,nt={doctors:({width:e,height:t})=>i.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none"},i.createElement("g",{clipPath:"url(#clip0_14712_400114)"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),i.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_14712_400114"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>i.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none"},i.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),i.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},st=({type:e,item:t,imageUrl:a,className:o,onClickItem:s})=>{const l=n((()=>{const t=nt[e]||J;return i.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return i.createElement(Xe,{onClick:()=>s&&s(t),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(t)},tabIndex:0,role:"button",className:o},i.createElement(it,null,"hospitals"===e?i.createElement(at,{width:"12",height:"16",viewBox:"0 0 12 16"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):i.createElement(et,{type:e},a?i.createElement("img",{src:a,width:32,height:"services"===e?32:24,loading:"lazy"}):l)),i.createElement(tt,{color:S.colors.gray800,size:"p3"},t.name))},lt=({type:e,data:t,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:c,isMobile:d,isLoading:p,keyword:h,isNavResultItem:g})=>{const[m,C]=a(!1),{t:b,locale:y}=r(),{selectedLocation:f,searchKeywords:x}=o,E=n((()=>u[y]),[y]),w="ms-MY"===y,L=n((()=>({doctors:{name:b("booking.searchPopup.doctors"),icon:i.createElement(ze,null),slug:E.DOCTOR},services:{name:b("booking.searchPopup.services"),icon:i.createElement(_e,null),slug:E.SERVICE},hospitals:{name:b("booking.searchPopup.hospitals"),icon:i.createElement(He,null),slug:E.HOSPITAL},specialties:{name:b("booking.searchPopup.specialties"),icon:i.createElement(Ge,null),slug:E.SPECIALTIES}})),[e,E]),O=n((()=>L[e].slug),[L]),j=d?l:c;function I(t){let i="";switch(e){case"specialties":i=`/${f.slug}/${L.doctors.slug}/${t.slug}`;break;case"services":i=`/${f.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:Ie.SelectSearchResult,payload:{name:t.name,url:i}})}function $(t){return i.createElement(st,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return i.createElement("section",null,i.createElement(Ze,null,i.createElement(Ye,null,L[e].icon,i.createElement(Ue,null,L[e].name)),(h.trim().length<=Oe[y]||w)&&i.createElement(We,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${f.slug}/${O}`}t&&s({type:Ie.NavigateTo,payload:t})}},i.createElement(v,{size:"p3",color:S.colors.primaryBase},b("booking.searchPopup.seeAll")))),(p||t&&t.length>0)&&i.createElement(Qe,null,i.createElement(qe,null,p&&Array(2).fill(void 0).map(((t,a)=>i.createElement(Xe,{key:e+"loading"+a},i.createElement(it,null,i.createElement(ot,null,i.createElement(k,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),i.createElement(k,{width:120,height:24})))),!p&&t&&t.length>0&&t.slice(0,j).map($)),i.createElement(qe,{isShown:m,isMore:!0},t.slice(j,-1).map($)),"specialties"===e&&j<t.length&&!p&&i.createElement("button",{onClick:()=>C(!m)},i.createElement(Je,{size:"p3",color:S.colors.primaryBase},b(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<t.length||w)&&!p&&h.trim().length>Oe[y]&&i.createElement("button",{onClick:function(){const{slug:t}=L[e],i=`/${f.slug}/${t}?q=${x}`;s({type:Ie.NavigateTo,payload:i})}},i.createElement(Je,{size:"p3",color:S.colors.primaryBase},b(`booking.searchPopup.searchIn.${e}`,{name:h})))),!p&&0===(null==t?void 0:t.length)&&i.createElement(Qe,null,i.createElement(v,{size:"sm",color:S.colors.gray400},b("booking.searchBar.noResults"))))},ct=y.section`
328
328
  background-color: white;
329
329
  border-radius: 4px;
330
330
  position: absolute;
@@ -336,7 +336,7 @@ import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{us
336
336
  0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
337
337
  0px 0px 1px rgba(0, 0, 0, 0.04);
338
338
  }
339
- `,ct=({data:e,state:t,dispatch:a,isMobile:o,isLoading:n,keyword:s,hideResults:l,isNavResultItem:r})=>i.createElement(rt,null,e&&e.map((e=>l&&l.includes(e.type)?i.createElement(i.Fragment,null):i.createElement(lt,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:o,isLoading:n,keyword:s,isNavResultItem:r})))),dt=(e,t,i)=>D(e,Object.assign(Object.assign({},t),{domain:P[i||"en-PH"]}));const pt=({isMobile:t,careApiDomain:g,geoLocationPermission:m,geoLocationCoordinates:C,initialSelectedCity:b,initialSearchValue:y="",careFrontDomain:f="/care",isDebug:v=!1,askForGeolocationPermission:x=!1,gaTrackingSearchBar:S,gaTrackingLocationSearch:E,autoCompleteDisabled:w=!1,inputSearchPlaceholder:L="",isOptionAllLocation:k=!1,hideResults:j=[],isNavResultItem:I=!0,routerPush:$,onGeoLocationPermissionChange:F,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=c(),N=l(null),A=l(null),[B,V]=a(void 0),[D,K]=a(!1),{geoLocationPermission:Y,geoLocationCoordinates:W,requestGeoLocation:Q}=z(),[q,J]=r(Fe,je,(e=>Object.assign(Object.assign({},e),{isDebug:v,isMobile:t,geoLocationPermission:m||Y||"unset",geoLocationCoordinates:C||W||null,searchKeywords:y,initialSelectedCity:b||null,selectedLocation:b||e.selectedLocation||null,searchLocationKeywords:(null==b?void 0:b.name)||e.searchLocationKeywords,autoCompleteDisabled:w,inputSearchPlaceholder:L,locale:P}))),{navigateTo:X,focused:ee,isLoadingCities:te,cities:ie,searchKeywords:ae,geoLocationPermission:oe,selectedLocation:ne,initialSelectedCity:le,defaultCity:re,searchResults:ce,isLoadingSearchResults:de,isMobileModalOpened:pe,inputSearchPlaceholder:ue}=q,{fetchCitiesByLocation:he,fetchCitiesByKeyword:ge,fetchSearchResults:me}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(a,o={}){const n=`${t}${a}`;return e({type:Ie.FetchCitiesStart}),fetch(dt(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:Ie.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const n={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[a(O.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(O.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:Ie.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(O.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:Ie.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(a,o){const n=`${t}${O.GET_SEARCH_V2}`;e({type:Ie.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:l,geoLocationCoordinates:r}=o;let c="";if(!l||!s)return void e({type:Ie.FetchSearchResultsFinish});l.id===h?r||(c=s.id):c=l.id===p?"":l.id;const d=(null==r?void 0:r.lat)||"",u=(null==r?void 0:r.lng)||"";return fetch(dt(n,{domain:t,searchType:"global",keyword:a.trim().length>Oe[i]?a.trim():"",city:c===h?"":c,lat:d,lng:u},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:Ie.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:Ie.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:J,locale:P,careApiDomain:g}),Ce=n((()=>{var e;return{id:h,name:T("booking.searchBar.currentLocation"),slug:null===(e=u[P])||void 0===e?void 0:e.CURRENT}}),[T,P]),be=n((()=>d(ge,400)),[ge]),ye=n((()=>d(me,400)),[me]);s((()=>{""!==y&&y!==q.searchKeywords&&J({type:Ie.UpdateInitialSearchValue,payload:y})}),[y]),s((()=>{x&&(null==ne?void 0:ne.id)===h&&"unset"===oe&&Q()}),[x,ne,oe]),s((()=>{m||oe===Y||("granted"===Y&&W?J({type:Ie.GrantGeoLocationPermission,payload:W}):"denied"===Y&&J({type:Ie.DenyGeoLocationPermission}))}),[oe,Y,W,m]),s((()=>{X&&($?$(X):window.location.href=`${f}${X}`)}),[X]);const fe=o((function(){J({type:Ie.SelectCurrentLocation,payload:Ce})}),[T,J]);s((()=>{var e;"denied"===oe||le||J({type:Ie.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:p,slug:null===(e=u[P])||void 0===e?void 0:e.ALL}}),F&&F(oe,q.geoLocationCoordinates),t&&"granted"===oe&&ne&&J({type:Ie.FocusInputSearch}),he({coordinates:q.geoLocationCoordinates})}),[oe]),s((()=>{ne&&re&&me(q.searchKeywords,q)}),[ne,re]),s((()=>{L!==ue&&J({type:Ie.SetInputSearchPlaceholder,payload:L})}),[L,ue]),s((()=>{pe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[pe]);const xe=o((function(e){"ms-MY"===P&&K(!0),J({type:Ie.SelectLocation,payload:e}),"ms-MY"!==P&&we(),R&&R(e)}),[T,J]);function Se(){"ms-MY"===P&&K(!0),t&&"granted"!==q.geoLocationPermission?Q():(fe(),"ms-MY"!==P&&we())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function we(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Le(){J({type:Ie.CloseMobileModal})}function $e(){return"location"!==ee?null:i.createElement(se,{isLoading:te,cities:ie,onLocationClick:xe,onCurrentLocationClick:Se,isLocationLoading:te,geoLocationPermission:oe,selectedLocation:ne,isOptionAllLocation:k})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?t?i.createElement(De,{onClick:()=>{M({cityId:q.selectedLocation.id,keyword:ae}),Le()}}):null:i.createElement(ct,{data:ce,state:q,dispatch:J,isMobile:!1,keyword:ae,isLoading:de,hideResults:j,isNavResultItem:I})}function Re(){return i.createElement(Ke,{isMobile:t,state:q,dispatch:J,debouncedFetchCitiesByKeyword:be,debouncedFetchSearchResults:ye,focusLocationInput:Ee,focusSearchInput:we,renderLocationResults:$e,renderSearchResults:Me,trackingAttributes:S,locationTrackingAttributes:E,onSearch:M,initalSearchValue:y})}return s((()=>{if(window.visualViewport){const e=e=>{const t=e.target;V(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[V]),s((()=>{if(ne&&D&&"ms-MY"===P){const e=`/${ne.slug}/hospital`;J({type:Ie.NavigateTo,payload:e}),K(!1)}}),[D,P,ne]),t?i.createElement(i.Fragment,null,i.createElement(U,null),i.createElement(Z,{ref:A}),i.createElement(H,{id:"booking-search-bar",ref:N,"data-is-modal":t&&pe,style:{"--mobile-care-searchbar-height":pe&&B?`${B}px`:"100%"}},pe?i.createElement(i.Fragment,null,i.createElement(G,null,i.createElement(ke,{headingText:T("booking.searchBar.searchButton"),onLeftClick:Le}),Re()),$e(),Me()):i.createElement(ve,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){A.current&&A.current.focus(),J({type:Ie.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ee,value:ae,trackingAttributes:S,inputSearchPlaceholder:L}))):i.createElement(_,{id:"booking-search-bar",ref:N},Re())},ut=y.div``,ht=y.div`
339
+ `,rt=({data:e,state:t,dispatch:a,isMobile:o,isLoading:n,keyword:s,hideResults:l,isNavResultItem:c})=>i.createElement(ct,null,e&&e.map((e=>l&&l.includes(e.type)?i.createElement(i.Fragment,null):i.createElement(lt,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:o,isLoading:n,keyword:s,isNavResultItem:c})))),dt=(e,t,i)=>D(e,Object.assign(Object.assign({},t),{domain:P[i||"en-PH"]}));const pt=({isMobile:t,careApiDomain:g,geoLocationPermission:m,geoLocationCoordinates:C,initialSelectedCity:b,initialSearchValue:y="",careFrontDomain:f="/care",isDebug:v=!1,askForGeolocationPermission:x=!1,gaTrackingSearchBar:S,gaTrackingLocationSearch:E,autoCompleteDisabled:w=!1,inputSearchPlaceholder:L="",isOptionAllLocation:k=!1,hideResults:j=[],isNavResultItem:I=!0,routerPush:$,onGeoLocationPermissionChange:F,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=r(),N=l(null),A=l(null),[B,V]=a(void 0),[D,K]=a(!1),{geoLocationPermission:Y,geoLocationCoordinates:W,requestGeoLocation:Q}=z(),[q,J]=c(Fe,je,(e=>Object.assign(Object.assign({},e),{isDebug:v,isMobile:t,geoLocationPermission:m||Y||"unset",geoLocationCoordinates:C||W||null,searchKeywords:y,initialSelectedCity:b||null,selectedLocation:b||e.selectedLocation||null,searchLocationKeywords:(null==b?void 0:b.name)||e.searchLocationKeywords,autoCompleteDisabled:w,inputSearchPlaceholder:L,locale:P}))),{navigateTo:X,focused:ee,isLoadingCities:te,cities:ie,searchKeywords:ae,geoLocationPermission:oe,selectedLocation:ne,initialSelectedCity:le,defaultCity:ce,searchResults:re,isLoadingSearchResults:de,isMobileModalOpened:pe,inputSearchPlaceholder:ue}=q,{fetchCitiesByLocation:he,fetchCitiesByKeyword:ge,fetchSearchResults:me}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(a,o={}){const n=`${t}${a}`;return e({type:Ie.FetchCitiesStart}),fetch(dt(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:Ie.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const n={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[a(O.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(O.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:Ie.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(O.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:Ie.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(a,o){const n=`${t}${O.GET_SEARCH_V2}`;e({type:Ie.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:l,geoLocationCoordinates:c}=o;let r="";if(!l||!s)return void e({type:Ie.FetchSearchResultsFinish});l.id===h?c||(r=s.id):r=l.id===p?"":l.id;const d=(null==c?void 0:c.lat)||"",u=(null==c?void 0:c.lng)||"";return fetch(dt(n,{domain:t,searchType:"global",keyword:a.trim().length>Oe[i]?a.trim():"",city:r===h?"":r,lat:d,lng:u},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:Ie.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:Ie.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:J,locale:P,careApiDomain:g}),Ce=n((()=>{var e;return{id:h,name:T("booking.searchBar.currentLocation"),slug:null===(e=u[P])||void 0===e?void 0:e.CURRENT}}),[T,P]),be=n((()=>d(ge,400)),[ge]),ye=n((()=>d(me,400)),[me]);s((()=>{""!==y&&y!==q.searchKeywords&&J({type:Ie.UpdateInitialSearchValue,payload:y})}),[y]),s((()=>{x&&(null==ne?void 0:ne.id)===h&&"unset"===oe&&Q()}),[x,ne,oe]),s((()=>{m||oe===Y||("granted"===Y&&W?J({type:Ie.GrantGeoLocationPermission,payload:W}):"denied"===Y&&J({type:Ie.DenyGeoLocationPermission}))}),[oe,Y,W,m]),s((()=>{X&&($?$(X):window.location.href=`${f}${X}`)}),[X]);const fe=o((function(){J({type:Ie.SelectCurrentLocation,payload:Ce})}),[T,J]);s((()=>{var e;"denied"===oe||le||J({type:Ie.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:p,slug:null===(e=u[P])||void 0===e?void 0:e.ALL}}),F&&F(oe,q.geoLocationCoordinates),t&&"granted"===oe&&ne&&J({type:Ie.FocusInputSearch}),he({coordinates:q.geoLocationCoordinates})}),[oe]),s((()=>{ne&&ce&&me(q.searchKeywords,q)}),[ne,ce]),s((()=>{L!==ue&&J({type:Ie.SetInputSearchPlaceholder,payload:L})}),[L,ue]),s((()=>{pe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[pe]);const xe=o((function(e){"ms-MY"===P&&K(!0),J({type:Ie.SelectLocation,payload:e}),"ms-MY"!==P&&we(),R&&R(e)}),[T,J]);function Se(){"ms-MY"===P&&K(!0),t&&"granted"!==q.geoLocationPermission?Q():(fe(),"ms-MY"!==P&&we())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function we(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Le(){J({type:Ie.CloseMobileModal})}function $e(){return"location"!==ee?null:i.createElement(se,{isLoading:te,cities:ie,onLocationClick:xe,onCurrentLocationClick:Se,isLocationLoading:te,geoLocationPermission:oe,selectedLocation:ne,isOptionAllLocation:k})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?t?i.createElement(De,{onClick:()=>{M({cityId:q.selectedLocation.id,keyword:ae}),Le()}}):null:i.createElement(rt,{data:re,state:q,dispatch:J,isMobile:!1,keyword:ae,isLoading:de,hideResults:j,isNavResultItem:I})}function Re(){return i.createElement(Ke,{isMobile:t,state:q,dispatch:J,debouncedFetchCitiesByKeyword:be,debouncedFetchSearchResults:ye,focusLocationInput:Ee,focusSearchInput:we,renderLocationResults:$e,renderSearchResults:Me,trackingAttributes:S,locationTrackingAttributes:E,onSearch:M,initalSearchValue:y})}return s((()=>{if(window.visualViewport){const e=e=>{const t=e.target;V(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[V]),s((()=>{if(ne&&D&&"ms-MY"===P){const e=`/${ne.slug}/hospital`;J({type:Ie.NavigateTo,payload:e}),K(!1)}}),[D,P,ne]),t?i.createElement(i.Fragment,null,i.createElement(U,null),i.createElement(Z,{ref:A}),i.createElement(H,{id:"booking-search-bar",ref:N,"data-is-modal":t&&pe,style:{"--mobile-care-searchbar-height":pe&&B?`${B}px`:"100%"}},pe?i.createElement(i.Fragment,null,i.createElement(G,null,i.createElement(ke,{headingText:T("booking.searchBar.searchButton"),onLeftClick:Le}),Re()),$e(),Me()):i.createElement(ve,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){A.current&&A.current.focus(),J({type:Ie.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ee,value:ae,trackingAttributes:S,inputSearchPlaceholder:L}))):i.createElement(_,{id:"booking-search-bar",ref:N},Re())},ut=y.div``,ht=y.div`
340
340
  background-color: ${S.colors.neutral50};
341
341
  padding-bottom: 1px;
342
342
  ${L.mbDown} {
@@ -478,7 +478,7 @@ import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{us
478
478
  line-height: 22px;
479
479
  cursor: pointer;
480
480
  }
481
- `;const kt=({state:e,type:t,results:a,location:o,isLoading:s,typeInformation:l,clientSlug:r="",dispatch:d})=>{const{locale:p,t:u}=c(),{selectedLocation:h}=e,m=n((()=>l[t].slug),[l,t]);return i.createElement(St,null,i.createElement(Et,null,i.createElement("div",{className:"title"},u("booking.searchResult.description",{search_type:l[t].name,search_location:o})),a.length>0&&i.createElement("div",{className:"btn-see-all",onClick:()=>{let i=`/${h.slug}/${m}`;const a=g[p][r];a&&(i+=`/${a}`),("doctor"===t||"hospital"===t)&&e.selectedSpecialty.id>0&&(i+=`?specialtyId=${e.selectedSpecialty.id}`),i&&d({type:bt.NavigateTo,payload:i})}},u("home.seeAll"))),i.createElement(wt,null,s&&Array(3).fill(void 0).map(((e,a)=>i.createElement(Lt,{key:t+"loading"+a,className:2===a?"last-item":""},i.createElement("div",{className:"image-item"},i.createElement(j,{height:48,circle:!0,mb:"xl",animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(j,{height:8,mt:10,radius:"xl",animate:!0})),i.createElement("div",{className:"description"},i.createElement("div",{className:"sub-description"},i.createElement(j,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!s&&a&&a.length>0&&i.createElement(i.Fragment,null,a.map(((e,o)=>{var n,s;const r=a.length>4&&3===o||a.length<=4&&o===a.length-1;let c="";return"hospital"===t&&(c=(null==e?void 0:e.address)||""),"doctor"===t&&(c=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===t&&(c=(null===(s=null==e?void 0:e.organization)||void 0===s?void 0:s.name)||""),o>=4?i.createElement(i.Fragment,null):i.createElement(Lt,{key:e.id,className:r?"last-item":"",onClick:()=>(e=>{let i="";switch(t){case"service":i=`/${h.slug}/${m}/${e.slug}`;break;case"doctor":case"hospital":i=`/${m}/${e.slug}-${e.id}`}i&&d({type:bt.NavigateTo,payload:i})})(e)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.logo||e.avatar,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name),i.createElement("div",{className:"description"},l[t].icon,i.createElement("div",{className:"sub-description"},c))))}))),!s&&0===(null==a?void 0:a.length)&&i.createElement(v,{size:"sm",color:S.colors.gray400},u("booking.searchBar.noResults"))))},Ot=y.div`
481
+ `;const kt=({state:e,type:t,results:a,location:o,isLoading:s,typeInformation:l,clientSlug:c="",dispatch:d})=>{const{locale:p,t:u}=r(),{selectedLocation:h}=e,m=n((()=>l[t].slug),[l,t]);return i.createElement(St,null,i.createElement(Et,null,i.createElement("div",{className:"title"},u("booking.searchResult.description",{search_type:l[t].name,search_location:o})),a.length>0&&i.createElement("div",{className:"btn-see-all",onClick:()=>{let i=`/${h.slug}/${m}`;const a=g[p][c];a&&(i+=`/${a}`),("doctor"===t||"hospital"===t)&&e.selectedSpecialty.id>0&&(i+=`?specialtyId=${e.selectedSpecialty.id}`),i&&d({type:bt.NavigateTo,payload:i})}},u("home.seeAll"))),i.createElement(wt,null,s&&Array(3).fill(void 0).map(((e,a)=>i.createElement(Lt,{key:t+"loading"+a,className:2===a?"last-item":""},i.createElement("div",{className:"image-item"},i.createElement(j,{height:48,circle:!0,mb:"xl",animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(j,{height:8,mt:10,radius:"xl",animate:!0})),i.createElement("div",{className:"description"},i.createElement("div",{className:"sub-description"},i.createElement(j,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!s&&a&&a.length>0&&i.createElement(i.Fragment,null,a.map(((e,o)=>{var n,s;const c=a.length>4&&3===o||a.length<=4&&o===a.length-1;let r="";return"hospital"===t&&(r=(null==e?void 0:e.address)||""),"doctor"===t&&(r=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===t&&(r=(null===(s=null==e?void 0:e.organization)||void 0===s?void 0:s.name)||""),o>=4?i.createElement(i.Fragment,null):i.createElement(Lt,{key:e.id,className:c?"last-item":"",onClick:()=>(e=>{let i="";switch(t){case"service":i=`/${h.slug}/${m}/${e.slug}`;break;case"doctor":case"hospital":i=`/${m}/${e.slug}-${e.id}`}i&&d({type:bt.NavigateTo,payload:i})})(e)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.logo||e.avatar,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name),i.createElement("div",{className:"description"},l[t].icon,i.createElement("div",{className:"sub-description"},r))))}))),!s&&0===(null==a?void 0:a.length)&&i.createElement(v,{size:"sm",color:S.colors.gray400},u("booking.searchBar.noResults"))))},Ot=y.div`
482
482
  position: relative;
483
483
 
484
484
  ${L.mbDown} {
@@ -559,7 +559,7 @@ import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{us
559
559
  `;y(Q)`
560
560
  width: 12px;
561
561
  height: 18px;
562
- `;const $t=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M8.98307 14.3333C7.87196 14.3333 6.92752 13.9445 6.14974 13.1667C5.37196 12.3889 4.98307 11.4445 4.98307 10.3333V9.96668C4.08307 9.85557 3.33041 9.45557 2.72507 8.76668C2.1193 8.07779 1.81641 7.26668 1.81641 6.33334V3.10001C1.81641 2.93334 1.87463 2.79157 1.99107 2.67468C2.10796 2.55823 2.24974 2.50001 2.41641 2.50001H3.81641V2.33334C3.81641 2.1889 3.86374 2.06934 3.95841 1.97468C4.05263 1.88045 4.17196 1.83334 4.31641 1.83334C4.46085 1.83334 4.58041 1.88045 4.67507 1.97468C4.7693 2.06934 4.81641 2.1889 4.81641 2.33334V3.66668C4.81641 3.81112 4.7693 3.93045 4.67507 4.02468C4.58041 4.11934 4.46085 4.16668 4.31641 4.16668C4.17196 4.16668 4.05263 4.11934 3.95841 4.02468C3.86374 3.93045 3.81641 3.81112 3.81641 3.66668V3.50001H2.81641V6.33334C2.81641 7.06668 3.07752 7.69445 3.59974 8.21668C4.12196 8.7389 4.74974 9.00001 5.48307 9.00001C6.21641 9.00001 6.84418 8.7389 7.36641 8.21668C7.88863 7.69445 8.14974 7.06668 8.14974 6.33334V3.50001H7.14974V3.66668C7.14974 3.81112 7.10263 3.93045 7.00841 4.02468C6.91374 4.11934 6.79418 4.16668 6.64974 4.16668C6.5053 4.16668 6.38596 4.11934 6.29174 4.02468C6.19707 3.93045 6.14974 3.81112 6.14974 3.66668V2.33334C6.14974 2.1889 6.19707 2.06934 6.29174 1.97468C6.38596 1.88045 6.5053 1.83334 6.64974 1.83334C6.79418 1.83334 6.91374 1.88045 7.00841 1.97468C7.10263 2.06934 7.14974 2.1889 7.14974 2.33334V2.50001H8.54974C8.71641 2.50001 8.85818 2.55823 8.97507 2.67468C9.09152 2.79157 9.14974 2.93334 9.14974 3.10001V6.33334C9.14974 7.26668 8.84707 8.07779 8.24174 8.76668C7.63596 9.45557 6.88307 9.85557 5.98307 9.96668V10.3333C5.98307 11.1667 6.27485 11.8751 6.85841 12.4587C7.44152 13.0418 8.14974 13.3333 8.98307 13.3333C9.81641 13.3333 10.5249 13.0418 11.1084 12.4587C11.6915 11.8751 11.9831 11.1667 11.9831 10.3333V9.25001C11.6386 9.1389 11.3526 8.93601 11.1251 8.64134C10.8971 8.34712 10.7831 8.01112 10.7831 7.63334C10.7831 7.15557 10.9497 6.75001 11.2831 6.41668C11.6164 6.08334 12.0164 5.91668 12.4831 5.91668C12.9609 5.91668 13.3664 6.08334 13.6997 6.41668C14.0331 6.75001 14.1997 7.15557 14.1997 7.63334C14.1997 8.01112 14.086 8.34712 13.8584 8.64134C13.6304 8.93601 13.3386 9.1389 12.9831 9.25001V10.3333C12.9831 11.4445 12.5942 12.3889 11.8164 13.1667C11.0386 13.9445 10.0942 14.3333 8.98307 14.3333ZM12.4831 8.33334C12.6831 8.33334 12.8526 8.26401 12.9917 8.12534C13.1304 7.98623 13.1997 7.82223 13.1997 7.63334C13.1997 7.43334 13.1304 7.26401 12.9917 7.12534C12.8526 6.98623 12.6831 6.91668 12.4831 6.91668C12.2831 6.91668 12.1164 6.98623 11.9831 7.12534C11.8497 7.26401 11.7831 7.43334 11.7831 7.63334C11.7831 7.82223 11.8497 7.98623 11.9831 8.12534C12.1164 8.26401 12.2831 8.33334 12.4831 8.33334Z",fill:"#595959"})),Ft=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M6.86836 9.26489V10.2386C6.86836 10.509 6.96294 10.7389 7.15209 10.9283C7.34124 11.1176 7.57093 11.2122 7.84114 11.2122C8.11135 11.2122 8.34133 11.1176 8.53106 10.9283C8.7208 10.7389 8.81567 10.509 8.81567 10.2386V9.26489H9.78936C10.0598 9.26489 10.2897 9.17031 10.479 8.98116C10.6684 8.79201 10.763 8.56233 10.763 8.29211C10.763 8.0219 10.6684 7.79192 10.479 7.60219C10.2897 7.41245 10.0598 7.31758 9.78936 7.31758H8.81567V6.34389C8.81567 6.07343 8.72109 5.84354 8.53194 5.65422C8.34279 5.4649 8.11311 5.37024 7.84289 5.37024C7.57268 5.37024 7.3427 5.4649 7.15297 5.65422C6.96323 5.84354 6.86836 6.07343 6.86836 6.34389V7.31758H5.89467C5.62421 7.31758 5.39432 7.41216 5.205 7.60131C5.01568 7.79046 4.92102 8.02014 4.92102 8.29036C4.92102 8.56057 5.01568 8.79055 5.205 8.98028C5.39432 9.17002 5.62421 9.26489 5.89467 9.26489H6.86836ZM3.40809 14.1333C3.02086 14.1333 2.68938 13.9954 2.41364 13.7196C2.13788 13.4439 2 13.1124 2 12.7252V6.07426C2 5.85132 2.04987 5.64011 2.14961 5.44063C2.24936 5.24116 2.38723 5.07689 2.56323 4.94782L6.99718 1.61486C7.24323 1.42712 7.52444 1.33325 7.84081 1.33325C8.15718 1.33325 8.43919 1.42712 8.68685 1.61486L13.1208 4.94782C13.2968 5.07689 13.4347 5.24116 13.5344 5.44063C13.6342 5.64011 13.684 5.85132 13.684 6.07426V12.7252C13.684 13.1124 13.5462 13.4439 13.2704 13.7196C12.9947 13.9954 12.6632 14.1333 12.2759 14.1333H3.40809ZM3.40809 12.9649H12.2759C12.3459 12.9649 12.4033 12.9424 12.4482 12.8974C12.4932 12.8525 12.5156 12.7951 12.5156 12.7252V6.07426C12.5156 6.03431 12.5069 5.99811 12.4894 5.96566C12.4719 5.9332 12.4482 5.90449 12.4183 5.87953L7.98433 2.55406C7.94438 2.51911 7.89694 2.50164 7.84202 2.50164C7.78709 2.50164 7.73965 2.51911 7.69971 2.55406L3.26576 5.87953C3.2358 5.90449 3.21209 5.9332 3.1946 5.96566C3.17712 5.99811 3.16839 6.03431 3.16839 6.07426V12.7252C3.16839 12.7951 3.19086 12.8525 3.2358 12.8974C3.28075 12.9424 3.33818 12.9649 3.40809 12.9649Z",fill:"#595959"})),Mt=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M7.99984 8.00004C8.3665 8.00004 8.68039 7.86949 8.9415 7.60837C9.20261 7.34726 9.33317 7.03337 9.33317 6.66671C9.33317 6.30004 9.20261 5.98615 8.9415 5.72504C8.68039 5.46393 8.3665 5.33337 7.99984 5.33337C7.63317 5.33337 7.31928 5.46393 7.05817 5.72504C6.79706 5.98615 6.6665 6.30004 6.6665 6.66671C6.6665 7.03337 6.79706 7.34726 7.05817 7.60837C7.31928 7.86949 7.63317 8.00004 7.99984 8.00004ZM7.99984 12.9C9.35539 11.6556 10.3609 10.525 11.0165 9.50837C11.6721 8.49171 11.9998 7.58893 11.9998 6.80004C11.9998 5.58893 11.6137 4.59726 10.8415 3.82504C10.0693 3.05282 9.12206 2.66671 7.99984 2.66671C6.87761 2.66671 5.93039 3.05282 5.15817 3.82504C4.38595 4.59726 3.99984 5.58893 3.99984 6.80004C3.99984 7.58893 4.32761 8.49171 4.98317 9.50837C5.63873 10.525 6.64428 11.6556 7.99984 12.9ZM7.99984 14.4167C7.91095 14.4167 7.82206 14.4 7.73317 14.3667C7.64428 14.3334 7.5665 14.2889 7.49984 14.2334C5.87761 12.8 4.6665 11.4695 3.8665 10.2417C3.0665 9.01393 2.6665 7.86671 2.6665 6.80004C2.6665 5.13337 3.20261 3.8056 4.27484 2.81671C5.34706 1.82782 6.58873 1.33337 7.99984 1.33337C9.41095 1.33337 10.6526 1.82782 11.7248 2.81671C12.7971 3.8056 13.3332 5.13337 13.3332 6.80004C13.3332 7.86671 12.9332 9.01393 12.1332 10.2417C11.3332 11.4695 10.1221 12.8 8.49984 14.2334C8.43317 14.2889 8.35539 14.3334 8.2665 14.3667C8.17761 14.4 8.08873 14.4167 7.99984 14.4167Z",fill:"#8C8C8C"})),Rt=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Tt=({state:e,isMobile:t,debouncedFetchSearchResults:a,selectedLocation:s,onSpecialtyClick:r,dispatch:d})=>{var p;const{t:h,locale:g}=c(),m=l(null),C=n((()=>u[g]),[g]),b=n((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:t?"border: 1px solid #d9d9d9":"none",height:t?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:t?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[t]),y=o((function(e){console.log(e)}),[a,d]);return w(m,(()=>{d({type:bt.ClickOutsideInputSpecialty})})),i.createElement(Ot,{ref:m},i.createElement(I.Wrapper,null,i.createElement(I,{size:t?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(p=null==e?void 0:e.selectedSpecialty)||void 0===p?void 0:p.name)||"",rightSection:i.createElement(K,null),styles:b,onFocus:()=>d({type:bt.FocusInputSpecialty}),onChange:e=>{y(e.target.value)}})),"specialty"===e.focused&&i.createElement(jt,null,i.createElement(It,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{r&&r({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},i.createElement("div",{className:"image-item"},i.createElement(Rt,null)),i.createElement(v,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>i.createElement(It,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),r&&r(Object.assign(Object.assign({},e),{total_doctor:0}))},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement(v,{size:"md"},e.name))))))},Pt=({state:e,type:t,isMobile:a,isLoading:s,initalSearchValue:r,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,hideSpecialtySelection:h=!1,clientSlug:g="",focusSearchInput:m,onSearch:C,dispatch:b})=>{var y;const{t:f}=c(),v=l(null),S=n((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),E=n((()=>"doctor"===t?f("booking.searchBar.placeholder.doctor"):"service"===t?f("booking.searchBar.placeholder.service"):"hospital"===t?f("booking.searchBar.placeholder.hospital"):"specialty"===t?f("booking.searchBar.placeholder.specialty"):""),[t]),L=n((()=>({root:{flex:1,"&.hide-specialty-selection":{".mantine-Input-rightSection":{display:"none"},input:{paddingLeft:"48px"},".mantine-Input-icon":{left:"0"}}}})),[]),k=n((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),O=n((()=>({input:{color:"#262626"}})),[]);w(v,(()=>{b({type:bt.ClickOutsideInputSearch})}));const j=o((function(i){b({type:bt.ChangeInputSearch,payload:i}),"function"!=typeof C&&(i.trim().length>mt[e.locale]||r||0===i.trim().length?p(i.trim(),e,t,g):(p.cancel(),b({type:bt.DisplayInitialSearchResults})))}),[b,e,t]),$=o((function(e){b({type:bt.SelectSpecialty,payload:e}),m()}),[b]);return i.createElement(vt,{ref:v},"specialty"===t?i.createElement(I.Wrapper,{styles:L},i.createElement(I,{icon:i.createElement(x.Search,null),size:a?"md":"lg",placeholder:E,styles:O,value:e.searchKeywords,onFocus:()=>b({type:bt.FocusInputSearchSpecialty}),onChange:e=>{j(e.target.value)}})):i.createElement(i.Fragment,null,"service"===t?i.createElement(I.Wrapper,{styles:L},i.createElement(I,{icon:i.createElement(x.Search,null),size:a?"md":"lg",name:"search-results",placeholder:E,onFocus:()=>b({type:bt.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{j(e.target.value)}})):i.createElement(i.Fragment,null,a&&!h?i.createElement(i.Fragment,null,i.createElement(Tt,{state:e,isMobile:a,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$}),i.createElement(I.Wrapper,{styles:L},i.createElement(I,{icon:i.createElement(x.Search,null),size:"md",placeholder:E,value:e.searchKeywords,name:"search-results",onFocus:()=>b({type:bt.FocusInputSearch}),onChange:e=>{j(e.target.value)}}))):i.createElement(I.Wrapper,{styles:L,className:h?"hide-specialty-selection":""},i.createElement(I,Object.assign({icon:i.createElement(x.Search,null),size:"lg",placeholder:E,styles:k,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{j(e.target.value)},onFocus:()=>b({type:bt.FocusInputSearch})},S,{rightSection:h?i.createElement(i.Fragment,null):i.createElement(Tt,{state:e,isMobile:a,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$})})))),"search"===e.focused&&i.createElement(xt,null,i.createElement(kt,{type:t,state:e,results:(null===(y=e.searchResults)||void 0===y?void 0:y[t])||[],location:e.selectedLocation.name,dispatch:b,isLoading:s,typeInformation:d,clientSlug:g}))))},Nt=y.div`
562
+ `;const $t=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M8.98307 14.3333C7.87196 14.3333 6.92752 13.9445 6.14974 13.1667C5.37196 12.3889 4.98307 11.4445 4.98307 10.3333V9.96668C4.08307 9.85557 3.33041 9.45557 2.72507 8.76668C2.1193 8.07779 1.81641 7.26668 1.81641 6.33334V3.10001C1.81641 2.93334 1.87463 2.79157 1.99107 2.67468C2.10796 2.55823 2.24974 2.50001 2.41641 2.50001H3.81641V2.33334C3.81641 2.1889 3.86374 2.06934 3.95841 1.97468C4.05263 1.88045 4.17196 1.83334 4.31641 1.83334C4.46085 1.83334 4.58041 1.88045 4.67507 1.97468C4.7693 2.06934 4.81641 2.1889 4.81641 2.33334V3.66668C4.81641 3.81112 4.7693 3.93045 4.67507 4.02468C4.58041 4.11934 4.46085 4.16668 4.31641 4.16668C4.17196 4.16668 4.05263 4.11934 3.95841 4.02468C3.86374 3.93045 3.81641 3.81112 3.81641 3.66668V3.50001H2.81641V6.33334C2.81641 7.06668 3.07752 7.69445 3.59974 8.21668C4.12196 8.7389 4.74974 9.00001 5.48307 9.00001C6.21641 9.00001 6.84418 8.7389 7.36641 8.21668C7.88863 7.69445 8.14974 7.06668 8.14974 6.33334V3.50001H7.14974V3.66668C7.14974 3.81112 7.10263 3.93045 7.00841 4.02468C6.91374 4.11934 6.79418 4.16668 6.64974 4.16668C6.5053 4.16668 6.38596 4.11934 6.29174 4.02468C6.19707 3.93045 6.14974 3.81112 6.14974 3.66668V2.33334C6.14974 2.1889 6.19707 2.06934 6.29174 1.97468C6.38596 1.88045 6.5053 1.83334 6.64974 1.83334C6.79418 1.83334 6.91374 1.88045 7.00841 1.97468C7.10263 2.06934 7.14974 2.1889 7.14974 2.33334V2.50001H8.54974C8.71641 2.50001 8.85818 2.55823 8.97507 2.67468C9.09152 2.79157 9.14974 2.93334 9.14974 3.10001V6.33334C9.14974 7.26668 8.84707 8.07779 8.24174 8.76668C7.63596 9.45557 6.88307 9.85557 5.98307 9.96668V10.3333C5.98307 11.1667 6.27485 11.8751 6.85841 12.4587C7.44152 13.0418 8.14974 13.3333 8.98307 13.3333C9.81641 13.3333 10.5249 13.0418 11.1084 12.4587C11.6915 11.8751 11.9831 11.1667 11.9831 10.3333V9.25001C11.6386 9.1389 11.3526 8.93601 11.1251 8.64134C10.8971 8.34712 10.7831 8.01112 10.7831 7.63334C10.7831 7.15557 10.9497 6.75001 11.2831 6.41668C11.6164 6.08334 12.0164 5.91668 12.4831 5.91668C12.9609 5.91668 13.3664 6.08334 13.6997 6.41668C14.0331 6.75001 14.1997 7.15557 14.1997 7.63334C14.1997 8.01112 14.086 8.34712 13.8584 8.64134C13.6304 8.93601 13.3386 9.1389 12.9831 9.25001V10.3333C12.9831 11.4445 12.5942 12.3889 11.8164 13.1667C11.0386 13.9445 10.0942 14.3333 8.98307 14.3333ZM12.4831 8.33334C12.6831 8.33334 12.8526 8.26401 12.9917 8.12534C13.1304 7.98623 13.1997 7.82223 13.1997 7.63334C13.1997 7.43334 13.1304 7.26401 12.9917 7.12534C12.8526 6.98623 12.6831 6.91668 12.4831 6.91668C12.2831 6.91668 12.1164 6.98623 11.9831 7.12534C11.8497 7.26401 11.7831 7.43334 11.7831 7.63334C11.7831 7.82223 11.8497 7.98623 11.9831 8.12534C12.1164 8.26401 12.2831 8.33334 12.4831 8.33334Z",fill:"#595959"})),Ft=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M6.86836 9.26489V10.2386C6.86836 10.509 6.96294 10.7389 7.15209 10.9283C7.34124 11.1176 7.57093 11.2122 7.84114 11.2122C8.11135 11.2122 8.34133 11.1176 8.53106 10.9283C8.7208 10.7389 8.81567 10.509 8.81567 10.2386V9.26489H9.78936C10.0598 9.26489 10.2897 9.17031 10.479 8.98116C10.6684 8.79201 10.763 8.56233 10.763 8.29211C10.763 8.0219 10.6684 7.79192 10.479 7.60219C10.2897 7.41245 10.0598 7.31758 9.78936 7.31758H8.81567V6.34389C8.81567 6.07343 8.72109 5.84354 8.53194 5.65422C8.34279 5.4649 8.11311 5.37024 7.84289 5.37024C7.57268 5.37024 7.3427 5.4649 7.15297 5.65422C6.96323 5.84354 6.86836 6.07343 6.86836 6.34389V7.31758H5.89467C5.62421 7.31758 5.39432 7.41216 5.205 7.60131C5.01568 7.79046 4.92102 8.02014 4.92102 8.29036C4.92102 8.56057 5.01568 8.79055 5.205 8.98028C5.39432 9.17002 5.62421 9.26489 5.89467 9.26489H6.86836ZM3.40809 14.1333C3.02086 14.1333 2.68938 13.9954 2.41364 13.7196C2.13788 13.4439 2 13.1124 2 12.7252V6.07426C2 5.85132 2.04987 5.64011 2.14961 5.44063C2.24936 5.24116 2.38723 5.07689 2.56323 4.94782L6.99718 1.61486C7.24323 1.42712 7.52444 1.33325 7.84081 1.33325C8.15718 1.33325 8.43919 1.42712 8.68685 1.61486L13.1208 4.94782C13.2968 5.07689 13.4347 5.24116 13.5344 5.44063C13.6342 5.64011 13.684 5.85132 13.684 6.07426V12.7252C13.684 13.1124 13.5462 13.4439 13.2704 13.7196C12.9947 13.9954 12.6632 14.1333 12.2759 14.1333H3.40809ZM3.40809 12.9649H12.2759C12.3459 12.9649 12.4033 12.9424 12.4482 12.8974C12.4932 12.8525 12.5156 12.7951 12.5156 12.7252V6.07426C12.5156 6.03431 12.5069 5.99811 12.4894 5.96566C12.4719 5.9332 12.4482 5.90449 12.4183 5.87953L7.98433 2.55406C7.94438 2.51911 7.89694 2.50164 7.84202 2.50164C7.78709 2.50164 7.73965 2.51911 7.69971 2.55406L3.26576 5.87953C3.2358 5.90449 3.21209 5.9332 3.1946 5.96566C3.17712 5.99811 3.16839 6.03431 3.16839 6.07426V12.7252C3.16839 12.7951 3.19086 12.8525 3.2358 12.8974C3.28075 12.9424 3.33818 12.9649 3.40809 12.9649Z",fill:"#595959"})),Mt=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M7.99984 8.00004C8.3665 8.00004 8.68039 7.86949 8.9415 7.60837C9.20261 7.34726 9.33317 7.03337 9.33317 6.66671C9.33317 6.30004 9.20261 5.98615 8.9415 5.72504C8.68039 5.46393 8.3665 5.33337 7.99984 5.33337C7.63317 5.33337 7.31928 5.46393 7.05817 5.72504C6.79706 5.98615 6.6665 6.30004 6.6665 6.66671C6.6665 7.03337 6.79706 7.34726 7.05817 7.60837C7.31928 7.86949 7.63317 8.00004 7.99984 8.00004ZM7.99984 12.9C9.35539 11.6556 10.3609 10.525 11.0165 9.50837C11.6721 8.49171 11.9998 7.58893 11.9998 6.80004C11.9998 5.58893 11.6137 4.59726 10.8415 3.82504C10.0693 3.05282 9.12206 2.66671 7.99984 2.66671C6.87761 2.66671 5.93039 3.05282 5.15817 3.82504C4.38595 4.59726 3.99984 5.58893 3.99984 6.80004C3.99984 7.58893 4.32761 8.49171 4.98317 9.50837C5.63873 10.525 6.64428 11.6556 7.99984 12.9ZM7.99984 14.4167C7.91095 14.4167 7.82206 14.4 7.73317 14.3667C7.64428 14.3334 7.5665 14.2889 7.49984 14.2334C5.87761 12.8 4.6665 11.4695 3.8665 10.2417C3.0665 9.01393 2.6665 7.86671 2.6665 6.80004C2.6665 5.13337 3.20261 3.8056 4.27484 2.81671C5.34706 1.82782 6.58873 1.33337 7.99984 1.33337C9.41095 1.33337 10.6526 1.82782 11.7248 2.81671C12.7971 3.8056 13.3332 5.13337 13.3332 6.80004C13.3332 7.86671 12.9332 9.01393 12.1332 10.2417C11.3332 11.4695 10.1221 12.8 8.49984 14.2334C8.43317 14.2889 8.35539 14.3334 8.2665 14.3667C8.17761 14.4 8.08873 14.4167 7.99984 14.4167Z",fill:"#8C8C8C"})),Rt=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Tt=({state:e,isMobile:t,debouncedFetchSearchResults:a,selectedLocation:s,onSpecialtyClick:c,dispatch:d})=>{var p;const{t:h,locale:g}=r(),m=l(null),C=n((()=>u[g]),[g]),b=n((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:t?"border: 1px solid #d9d9d9":"none",height:t?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:t?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[t]),y=o((function(e){console.log(e)}),[a,d]);return w(m,(()=>{d({type:bt.ClickOutsideInputSpecialty})})),i.createElement(Ot,{ref:m},i.createElement(I.Wrapper,null,i.createElement(I,{size:t?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(p=null==e?void 0:e.selectedSpecialty)||void 0===p?void 0:p.name)||"",rightSection:i.createElement(K,null),styles:b,onFocus:()=>d({type:bt.FocusInputSpecialty}),onChange:e=>{y(e.target.value)}})),"specialty"===e.focused&&i.createElement(jt,null,i.createElement(It,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{c&&c({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},i.createElement("div",{className:"image-item"},i.createElement(Rt,null)),i.createElement(v,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>i.createElement(It,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),c&&c(Object.assign(Object.assign({},e),{total_doctor:0}))},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement(v,{size:"md"},e.name))))))},Pt=({state:e,type:t,isMobile:a,isLoading:s,initalSearchValue:c,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,hideSpecialtySelection:h=!1,clientSlug:g="",focusSearchInput:m,onSearch:C,dispatch:b})=>{var y;const{t:f}=r(),v=l(null),S=n((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),E=n((()=>"doctor"===t?f("booking.searchBar.placeholder.doctor"):"service"===t?f("booking.searchBar.placeholder.service"):"hospital"===t?f("booking.searchBar.placeholder.hospital"):"specialty"===t?f("booking.searchBar.placeholder.specialty"):""),[t]),L=n((()=>({root:{flex:1,"&.hide-specialty-selection":{".mantine-Input-rightSection":{display:"none"},input:{paddingLeft:"48px"},".mantine-Input-icon":{left:"0"}}}})),[]),k=n((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),O=n((()=>({input:{color:"#262626"}})),[]);w(v,(()=>{b({type:bt.ClickOutsideInputSearch})}));const j=o((function(i){b({type:bt.ChangeInputSearch,payload:i}),"function"!=typeof C&&(i.trim().length>mt[e.locale]||c||0===i.trim().length?p(i.trim(),e,t,g):(p.cancel(),b({type:bt.DisplayInitialSearchResults})))}),[b,e,t]),$=o((function(e){b({type:bt.SelectSpecialty,payload:e}),m()}),[b]);return i.createElement(vt,{ref:v},"specialty"===t?i.createElement(I.Wrapper,{styles:L},i.createElement(I,{icon:i.createElement(x.Search,null),size:a?"md":"lg",placeholder:E,styles:O,value:e.searchKeywords,onFocus:()=>b({type:bt.FocusInputSearchSpecialty}),onChange:e=>{j(e.target.value)}})):i.createElement(i.Fragment,null,"service"===t?i.createElement(I.Wrapper,{styles:L},i.createElement(I,{icon:i.createElement(x.Search,null),size:a?"md":"lg",name:"search-results",placeholder:E,onFocus:()=>b({type:bt.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{j(e.target.value)}})):i.createElement(i.Fragment,null,a&&!h?i.createElement(i.Fragment,null,i.createElement(Tt,{state:e,isMobile:a,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$}),i.createElement(I.Wrapper,{styles:L},i.createElement(I,{icon:i.createElement(x.Search,null),size:"md",placeholder:E,value:e.searchKeywords,name:"search-results",onFocus:()=>b({type:bt.FocusInputSearch}),onChange:e=>{j(e.target.value)}}))):i.createElement(I.Wrapper,{styles:L,className:h?"hide-specialty-selection":""},i.createElement(I,Object.assign({icon:i.createElement(x.Search,null),size:"lg",placeholder:E,styles:k,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{j(e.target.value)},onFocus:()=>b({type:bt.FocusInputSearch})},S,{rightSection:h?i.createElement(i.Fragment,null):i.createElement(Tt,{state:e,isMobile:a,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$})})))),"search"===e.focused&&i.createElement(xt,null,i.createElement(kt,{type:t,state:e,results:(null===(y=e.searchResults)||void 0===y?void 0:y[t])||[],location:e.selectedLocation.name,dispatch:b,isLoading:s,typeInformation:d,clientSlug:g}))))},Nt=y.div`
563
563
  position: relative;
564
564
 
565
565
  ${L.mbDown} {
@@ -623,7 +623,7 @@ import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{us
623
623
  width: 12px;
624
624
  height: 18px;
625
625
  flex: 0 0 12px;
626
- `,Dt=({state:e,isMobile:t,debouncedFetchCitiesByKeyword:a,selectedLocation:s,trackingAttributes:r,onLocationClick:d,dispatch:h})=>{const{t:g,locale:m}=c(),C=l(null),b=n((()=>r?{"data-event-category":r.dataEventCategory,"data-event-action":r.dataEventAction,"data-event-label":r.dataEventLabel}:{}),[r]),y=o((function(t){h({type:bt.ChangeInputLocation,payload:t}),t.trim().length>mt[e.locale]?a(t.trim()):(a.cancel(),h({type:bt.DisplayInitialCities}))}),[a,h]);return w(C,(()=>{h({type:bt.ClickOutsideInputLocation})})),i.createElement(Nt,{ref:C},i.createElement(I.Wrapper,null,i.createElement(I,Object.assign({size:t?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>h({type:bt.FocusInputLocation}),onChange:e=>{y(e.target.value)}},b))),"location"===e.focused&&i.createElement(At,null,i.createElement(Bt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;d&&d({name:g("booking.searchBar.allLocations"),id:p,slug:null===(e=u[m])||void 0===e?void 0:e.ALL})}},i.createElement(Vt,{color:S.colors.neutral400}),i.createElement(v,{size:"md"},g("booking.searchBar.allLocations"))),e.cities.map((e=>i.createElement(Bt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),d&&d(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement(Vt,{color:S.colors.neutral400}),i.createElement(v,{size:"md"},e.name))))))},Kt=y.div`
626
+ `,Dt=({state:e,isMobile:t,debouncedFetchCitiesByKeyword:a,selectedLocation:s,trackingAttributes:c,onLocationClick:d,dispatch:h})=>{const{t:g,locale:m}=r(),C=l(null),b=n((()=>c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}),[c]),y=o((function(t){h({type:bt.ChangeInputLocation,payload:t}),t.trim().length>mt[e.locale]?a(t.trim()):(a.cancel(),h({type:bt.DisplayInitialCities}))}),[a,h]);return w(C,(()=>{h({type:bt.ClickOutsideInputLocation})})),i.createElement(Nt,{ref:C},i.createElement(I.Wrapper,null,i.createElement(I,Object.assign({size:t?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>h({type:bt.FocusInputLocation}),onChange:e=>{y(e.target.value)}},b))),"location"===e.focused&&i.createElement(At,null,i.createElement(Bt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;d&&d({name:g("booking.searchBar.allLocations"),id:p,slug:null===(e=u[m])||void 0===e?void 0:e.ALL})}},i.createElement(Vt,{color:S.colors.neutral400}),i.createElement(v,{size:"md"},g("booking.searchBar.allLocations"))),e.cities.map((e=>i.createElement(Bt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),d&&d(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement(Vt,{color:S.colors.neutral400}),i.createElement(v,{size:"md"},e.name))))))},Kt=y.div`
627
627
  display: flex;
628
628
  flex-wrap: wrap;
629
629
  row-gap: 8px;
@@ -706,7 +706,7 @@ import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{us
706
706
  text-align: center;
707
707
  }
708
708
  }
709
- `,Gt=({state:e,isMobile:t,specialties:a,isLoading:o,dispatch:s})=>{const{t:l,locale:r}=c(),{selectedLocation:d}=e,p=n((()=>u[r]),[r]),h=n((()=>a.length>=9||e.searchKeywords.trim().length<=mt[e.locale]),[e.searchKeywords,a]);return i.createElement(i.Fragment,null,!t&&i.createElement(_t,{color:"#E4E8EC"}),i.createElement(Kt,null,a.length>0&&!o&&i.createElement(i.Fragment,null,a.map(((e,t)=>t>=9?i.createElement(i.Fragment,null):i.createElement(zt,{key:e.id,onClick:()=>(e=>{let t="";e===m?(t=`/${d.slug}/${p.HOSPITAL}/${C.GSK}/`,s({type:bt.ClickOutsideInputSearchSpecialty})):t=`/${d.slug}/${p.DOCTOR}/${e}`,s({type:bt.NavigateTo,payload:t})})(e.slug)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name)))))),0===a.length&&!o&&i.createElement(v,{size:"sm",color:S.colors.gray400},l("booking.searchBar.noResults")),o&&Array(6).fill(void 0).map(((e,t)=>i.createElement(zt,{key:"loading"+t},i.createElement("div",{className:"image-item"},i.createElement(j,{height:40,animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(j,{height:20,radius:"sm",animate:!0}))))))),h&&i.createElement(Ht,null,i.createElement("div",{className:"show-more",onClick:()=>{const e=`/${p.SPECIALTIES}`;s({type:bt.NavigateTo,payload:e})}},l("home.seeAll"))))},Zt=y.div`
709
+ `,Gt=({state:e,isMobile:t,specialties:a,isLoading:o,dispatch:s})=>{const{t:l,locale:c}=r(),{selectedLocation:d}=e,p=n((()=>u[c]),[c]),h=n((()=>a.length>=9||e.searchKeywords.trim().length<=mt[e.locale]),[e.searchKeywords,a]);return i.createElement(i.Fragment,null,!t&&i.createElement(_t,{color:"#E4E8EC"}),i.createElement(Kt,null,a.length>0&&!o&&i.createElement(i.Fragment,null,a.map(((e,t)=>t>=9?i.createElement(i.Fragment,null):i.createElement(zt,{key:e.id,onClick:()=>(e=>{let t="";e===m?(t=`/${d.slug}/${p.HOSPITAL}/${C.GSK}/`,s({type:bt.ClickOutsideInputSearchSpecialty})):t=`/${d.slug}/${p.DOCTOR}/${e}`,s({type:bt.NavigateTo,payload:t})})(e.slug)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name)))))),0===a.length&&!o&&i.createElement(v,{size:"sm",color:S.colors.gray400},l("booking.searchBar.noResults")),o&&Array(6).fill(void 0).map(((e,t)=>i.createElement(zt,{key:"loading"+t},i.createElement("div",{className:"image-item"},i.createElement(j,{height:40,animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(j,{height:20,radius:"sm",animate:!0}))))))),h&&i.createElement(Ht,null,i.createElement("div",{className:"show-more",onClick:()=>{const e=`/${p.SPECIALTIES}`;s({type:bt.NavigateTo,payload:e})}},l("home.seeAll"))))},Zt=y.div`
710
710
  display: flex;
711
711
  gap: 5px;
712
712
  margin-top: 16px;
@@ -753,11 +753,11 @@ import{a as e}from"./tslib.es6-a9f23900.js";import*as t from"react";import i,{us
753
753
  border: 1px solid ${S.colors.white};
754
754
  margin-bottom: 5px;
755
755
  margin-right: 7px;
756
- `,Wt=({state:e,type:t,typeInformation:a,dispatch:o})=>{const{t:s}=c(),{selectedLocation:l}=e,r=n((()=>a[t].slug),[a,t]);return i.createElement(Zt,null,i.createElement(Ut,null,s("booking.searchBar.popularKey")),e.popularKeys.map((e=>i.createElement(Yt,{key:e.id,onClick:()=>{var t;(t=e).url&&(window.location.href=t.url)}},e.keyword))),i.createElement(Yt,{className:"view-all",onClick:()=>{const e=`/${l.slug}/${r}`;e&&o({type:bt.NavigateTo,payload:e})}},s("booking.searchBar.viewAll")))},Qt=y.div`
756
+ `,Wt=({state:e,type:t,typeInformation:a,dispatch:o})=>{const{t:s}=r(),{selectedLocation:l}=e,c=n((()=>a[t].slug),[a,t]);return i.createElement(Zt,null,i.createElement(Ut,null,s("booking.searchBar.popularKey")),e.popularKeys.map((e=>i.createElement(Yt,{key:e.id,onClick:()=>{var t;(t=e).url&&(window.location.href=t.url)}},e.keyword))),i.createElement(Yt,{className:"view-all",onClick:()=>{const e=`/${l.slug}/${c}`;e&&o({type:bt.NavigateTo,payload:e})}},s("booking.searchBar.viewAll")))},Qt=y.div`
757
757
  background: rgba(255, 255, 255, 0.64);
758
758
  backdrop-filter: blur(12px);
759
759
  border-bottom: 1px solid ${S.colors.neutral100};
760
- `,qt=({currentTab:e,hideTabBookingSearch:t=[],isMobile:a,setCurrentTab:o})=>{const{t:s}=c(),l=n((()=>({root:{overflowY:a?"hidden":"initial",overflowX:a?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:a?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:a?"14px":"16px",fontWeight:600,lineHeight:a?"22px":"24px"}})),[a]),r=(()=>{const{t:e}=c();return[{value:"hospital",label:e("booking.searchPopup.hospitals")},{value:"doctor",label:e("booking.searchPopup.doctors")},{value:"service",label:e("booking.searchPopup.services")},{value:"specialty",label:e("booking.searchPopup.specialties")}]})(),d=n((()=>r.filter((e=>!t.includes(e.value)))||[]),[t,r]);return i.createElement(Qt,{className:"booking-search-tab"},i.createElement(V,null,i.createElement(F,{value:e,onTabChange:e=>{o(e)},styles:l},i.createElement(F.List,null,d.map((e=>i.createElement(F.Tab,{value:e.value,key:e.value},s(e.label))))))))};var Jt;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(Jt||(Jt={}));const Xt=({isMobile:e,careApiDomain:t,geoLocationPermission:m,geoLocationCoordinates:b,initialSelectedCity:y,initialSearchValue:f="",initTypeSearch:v="hospital",initSpecialty:x,careFrontDomain:S="/care",isDebug:E=!1,gaTrackingSearchBar:L,gaTrackingLocationSearch:k,autoCompleteDisabled:j=!1,inputSearchPlaceholder:I="",hideTabBookingSearch:$=[],hideSpecialtySelection:F=!1,hidePopularSearchKeys:T=!1,clientSlug:P="",routerPush:N,onGeoLocationPermissionChange:A,onChangeLocation:B})=>{const{locale:V,t:D}=c(),K=l(null),_=l(null),[H,G]=a(v),{geoLocationPermission:Z,geoLocationCoordinates:Y}=z(),[U,W]=r(ft,Ct,(t=>Object.assign(Object.assign({},t),{isDebug:E,isMobile:e,geoLocationPermission:m||Z||"unset",geoLocationCoordinates:b||Y||null,searchKeywords:f,initialSelectedCity:y||null,selectedLocation:y||t.selectedLocation||null,searchLocationKeywords:(null==y?void 0:y.name)||t.searchLocationKeywords,autoCompleteDisabled:j,inputSearchPlaceholder:I,locale:V}))),{navigateTo:Q,focusedSpecialty:q,searchKeywords:J,geoLocationPermission:X,selectedLocation:ee,selectedSpecialty:te,initialSelectedCity:ie,searchResults:ae,isLoadingSearchResults:oe}=U,{fetchCitiesByLocation:ne,fetchCitiesByKeyword:se,fetchSearchResults:le,fetchAllSpecialties:re,fetchPopularKeys:ce}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN",client:a=""}){const n=o((function(a,o={}){const n=`${t}${a}`;return e({type:bt.FetchCitiesStart}),fetch(dt(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:bt.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const s={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(s.noPaging=1);const l=[n(O.GET_CITY_BY_IP,Object.assign(Object.assign(Object.assign({},o),s),{client:C.MSD===a?"":a}))];return"zh-TW"===i&&l.push(n(O.GET_CITIES_LIST,{noPaging:1,client:C.MSD===a?"":a})),Promise.all(l).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:bt.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return n(O.GET_CITIES_LIST,{keyword:t,client:a}).then((t=>{e({type:bt.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(o,n,s,l,r){const c="specialty"===s?`${t}${O.GET_SEARCH_SPECIALTY}`:`${t}${O.GET_SEARCH_V2}`;e({type:bt.FetchSearchResultsStart});const{selectedLocation:d,geoLocationCoordinates:u,selectedSpecialty:g}=n;let m="";if(!d)return void e({type:bt.FetchSearchResultsFinish});m=d.id===p?"":d.id;const b=(null==u?void 0:u.lat)||"",y=(null==u?void 0:u.lng)||"",f=(null==g?void 0:g.id)>0?null==g?void 0:g.id:"",v=o.trim().length>mt[i]?o.trim():"";return fetch(dt(c,{domain:t,searchType:s||"global",keyword:v,city:m===h?"":m,lat:b,lng:y,specialty_id:f,client_slug:C.MSD===l?"":l,msd:C.MSD===a?1:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{let i=[];"specialty"!==s&&(i=t.searches),"specialty"===s&&(i=v?t.specialties:t.default),e({type:bt.FetchSearchResultsComplete,payload:{key:s,searches:i||[]}}),r&&e({type:bt.UpdateInitialSearchResults,payload:{key:s,searches:i||[]}})})).catch((e=>{console.log("error loading search results",{url:c,error:e})})).finally((()=>e({type:bt.FetchSearchResultsFinish})))}),[i,t,e]),fetchAllSpecialties:o((function(){const o=`${t}${O.GET_SEARCH_SPECIALTY}`;return fetch(dt(o,{domain:t,searchType:"",msd:C.MSD===a?1:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:bt.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e]),fetchPopularKeys:o((function(a){const o=`${t}${O.GET_SEARCH_POPULAR_KEY}`;return fetch(dt(o,{domain:t,searchType:Jt[a],sort_by:"display_order",sort_order:"asc"},i)).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:bt.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e])}}({dispatch:W,locale:V,careApiDomain:t,client:P}),de=n((()=>u[V]),[V]),pe=n((()=>({doctor:{name:D("booking.searchPopup.doctors"),icon:i.createElement($t,null),slug:de.DOCTOR},service:{name:D("booking.searchPopup.services"),icon:i.createElement(Ft,null),slug:de.SERVICE},hospital:{name:D("booking.searchPopup.hospitals"),icon:i.createElement(Mt,null),slug:de.HOSPITAL},specialty:{name:D("booking.searchPopup.specialties"),icon:i.createElement(Rt,null),slug:de.SPECIALTIES}})),[H]),ue=n((()=>d(se,400)),[se]),he=n((()=>d(le,400)),[le]),ge=o((function(e){W({type:bt.SelectLocation,payload:e}),me(),B&&B(e)}),[D,W]);function me(){var e;K.current&&(null===(e=K.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return w(_,(()=>{W({type:bt.ClickOutsideInputSearchSpecialty})})),s((()=>{var t;"denied"===X||ie||W({type:bt.SelectLocation,payload:{name:D("booking.searchBar.allLocations"),id:p,slug:null===(t=u[V])||void 0===t?void 0:t.ALL}}),A&&A(X,U.geoLocationCoordinates),e&&"granted"===X&&ee&&W({type:bt.FocusInputSearch}),ne({coordinates:U.geoLocationCoordinates})}),[X]),s((()=>{const e=x||{name:D("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:de.SPECIALTIES};U.selectedSpecialty||W({type:bt.SelectSpecialty,payload:e})}),[x,U.selectedSpecialty]),s((()=>{re()}),[]),s((()=>{ce(H)}),[H]),s((()=>{Q&&(N?N(Q):window.location.href=`${S}${Q}`)}),[Q]),s((()=>{le(U.searchKeywords,U,H,P,!0)}),[ee,te,H]),i.createElement(ut,{ref:K},i.createElement(qt,{currentTab:H,setCurrentTab:G,isMobile:e,hideTabBookingSearch:$}),i.createElement(ht,{className:"booking-search-container"},i.createElement(gt,null,i.createElement("div",{ref:_},i.createElement(M,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==H&&i.createElement(Dt,{state:U,isMobile:e,dispatch:W,debouncedFetchCitiesByKeyword:ue,selectedLocation:ee,onLocationClick:ge,trackingAttributes:k}),i.createElement(Pt,{type:H,isMobile:e,state:U,dispatch:W,debouncedFetchSearchResults:he,initalSearchValue:f,focusSearchInput:me,typeInformation:pe,trackingAttributes:L,isLoading:oe,hideSpecialtySelection:F,clientSlug:P}),i.createElement(R,{size:e?"md":"lg",color:"#2D87F3",fullWidth:e,variant:"filled",onClick:function(){let e="";const{slug:t}=pe[H];let i="";const a=g[V][P];("doctor"===H||"hospital"===H)&&U.selectedSpecialty.id>0&&(i=`&specialtyId=${U.selectedSpecialty.id}`),e="specialty"===H?`/${t}`:`/${ee.slug}/${t}`,a&&(e+=`/${a}`),e+=`?q=${J}${i}`,e&&W({type:bt.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},D("booking.searchBar.searchButton"))),!T&&"specialty"!==H&&U.popularKeys.length>0&&i.createElement(Wt,{type:H,state:U,typeInformation:pe,dispatch:W}),"specialty"===H&&"search"===q&&i.createElement(Gt,{state:U,isMobile:e,dispatch:W,specialties:(null==ae?void 0:ae.specialty)||[],isLoading:oe})))))},ei=y.div`
760
+ `,qt=({currentTab:e,hideTabBookingSearch:t=[],isMobile:a,setCurrentTab:o})=>{const{t:s}=r(),l=n((()=>({root:{overflowY:a?"hidden":"initial",overflowX:a?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:a?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:a?"14px":"16px",fontWeight:600,lineHeight:a?"22px":"24px"}})),[a]),c=(()=>{const{t:e}=r();return[{value:"hospital",label:e("booking.searchPopup.hospitals")},{value:"doctor",label:e("booking.searchPopup.doctors")},{value:"service",label:e("booking.searchPopup.services")},{value:"specialty",label:e("booking.searchPopup.specialties")}]})(),d=n((()=>c.filter((e=>!t.includes(e.value)))||[]),[t,c]);return i.createElement(Qt,{className:"booking-search-tab"},i.createElement(V,null,i.createElement(F,{value:e,onTabChange:e=>{o(e)},styles:l},i.createElement(F.List,null,d.map((e=>i.createElement(F.Tab,{value:e.value,key:e.value},s(e.label))))))))};var Jt;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(Jt||(Jt={}));const Xt=({isMobile:e,careApiDomain:t,geoLocationPermission:m,geoLocationCoordinates:b,initialSelectedCity:y,initialSearchValue:f="",initTypeSearch:v="hospital",initSpecialty:x,careFrontDomain:S="/care",isDebug:E=!1,gaTrackingSearchBar:L,gaTrackingLocationSearch:k,autoCompleteDisabled:j=!1,inputSearchPlaceholder:I="",hideTabBookingSearch:$=[],hideSpecialtySelection:F=!1,hidePopularSearchKeys:T=!1,clientSlug:P="",routerPush:N,onGeoLocationPermissionChange:A,onChangeLocation:B})=>{const{locale:V,t:D}=r(),K=l(null),_=l(null),[H,G]=a(v),{geoLocationPermission:Z,geoLocationCoordinates:Y}=z(),[U,W]=c(ft,Ct,(t=>Object.assign(Object.assign({},t),{isDebug:E,isMobile:e,geoLocationPermission:m||Z||"unset",geoLocationCoordinates:b||Y||null,searchKeywords:f,initialSelectedCity:y||null,selectedLocation:y||t.selectedLocation||null,searchLocationKeywords:(null==y?void 0:y.name)||t.searchLocationKeywords,autoCompleteDisabled:j,inputSearchPlaceholder:I,locale:V}))),{navigateTo:Q,focusedSpecialty:q,searchKeywords:J,geoLocationPermission:X,selectedLocation:ee,selectedSpecialty:te,initialSelectedCity:ie,searchResults:ae,isLoadingSearchResults:oe}=U,{fetchCitiesByLocation:ne,fetchCitiesByKeyword:se,fetchSearchResults:le,fetchAllSpecialties:ce,fetchPopularKeys:re}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN",client:a=""}){const n=o((function(a,o={}){const n=`${t}${a}`;return e({type:bt.FetchCitiesStart}),fetch(dt(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:bt.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const s={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(s.noPaging=1);const l=[n(O.GET_CITY_BY_IP,Object.assign(Object.assign(Object.assign({},o),s),{client:C.MSD===a?"":a}))];return"zh-TW"===i&&l.push(n(O.GET_CITIES_LIST,{noPaging:1,client:C.MSD===a?"":a})),Promise.all(l).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:bt.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return n(O.GET_CITIES_LIST,{keyword:t,client:a}).then((t=>{e({type:bt.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(o,n,s,l,c){const r="specialty"===s?`${t}${O.GET_SEARCH_SPECIALTY}`:`${t}${O.GET_SEARCH_V2}`;e({type:bt.FetchSearchResultsStart});const{selectedLocation:d,geoLocationCoordinates:u,selectedSpecialty:g}=n;let m="";if(!d)return void e({type:bt.FetchSearchResultsFinish});m=d.id===p?"":d.id;const b=(null==u?void 0:u.lat)||"",y=(null==u?void 0:u.lng)||"",f=(null==g?void 0:g.id)>0?null==g?void 0:g.id:"",v=o.trim().length>mt[i]?o.trim():"";return fetch(dt(r,{domain:t,searchType:s||"global",keyword:v,city:m===h?"":m,lat:b,lng:y,specialty_id:f,client_slug:C.MSD===l?"":l,msd:C.MSD===a?1:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{let i=[];"specialty"!==s&&(i=t.searches),"specialty"===s&&(i=v?t.specialties:t.default),e({type:bt.FetchSearchResultsComplete,payload:{key:s,searches:i||[]}}),c&&e({type:bt.UpdateInitialSearchResults,payload:{key:s,searches:i||[]}})})).catch((e=>{console.log("error loading search results",{url:r,error:e})})).finally((()=>e({type:bt.FetchSearchResultsFinish})))}),[i,t,e]),fetchAllSpecialties:o((function(){const o=`${t}${O.GET_SEARCH_SPECIALTY}`;return fetch(dt(o,{domain:t,searchType:"",msd:C.MSD===a?1:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:bt.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e]),fetchPopularKeys:o((function(a){const o=`${t}${O.GET_SEARCH_POPULAR_KEY}`;return fetch(dt(o,{domain:t,searchType:Jt[a],sort_by:"display_order",sort_order:"asc"},i)).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:bt.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e])}}({dispatch:W,locale:V,careApiDomain:t,client:P}),de=n((()=>u[V]),[V]),pe=n((()=>({doctor:{name:D("booking.searchPopup.doctors"),icon:i.createElement($t,null),slug:de.DOCTOR},service:{name:D("booking.searchPopup.services"),icon:i.createElement(Ft,null),slug:de.SERVICE},hospital:{name:D("booking.searchPopup.hospitals"),icon:i.createElement(Mt,null),slug:de.HOSPITAL},specialty:{name:D("booking.searchPopup.specialties"),icon:i.createElement(Rt,null),slug:de.SPECIALTIES}})),[H]),ue=n((()=>d(se,400)),[se]),he=n((()=>d(le,400)),[le]),ge=o((function(e){W({type:bt.SelectLocation,payload:e}),me(),B&&B(e)}),[D,W]);function me(){var e;K.current&&(null===(e=K.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return w(_,(()=>{W({type:bt.ClickOutsideInputSearchSpecialty})})),s((()=>{var t;"denied"===X||ie||W({type:bt.SelectLocation,payload:{name:D("booking.searchBar.allLocations"),id:p,slug:null===(t=u[V])||void 0===t?void 0:t.ALL}}),A&&A(X,U.geoLocationCoordinates),e&&"granted"===X&&ee&&W({type:bt.FocusInputSearch}),ne({coordinates:U.geoLocationCoordinates})}),[X]),s((()=>{const e=x||{name:D("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:de.SPECIALTIES};U.selectedSpecialty||W({type:bt.SelectSpecialty,payload:e})}),[x,U.selectedSpecialty]),s((()=>{ce()}),[]),s((()=>{re(H)}),[H]),s((()=>{Q&&(N?N(Q):window.location.href=`${S}${Q}`)}),[Q]),s((()=>{le(U.searchKeywords,U,H,P,!0)}),[ee,te,H]),i.createElement(ut,{ref:K},i.createElement(qt,{currentTab:H,setCurrentTab:G,isMobile:e,hideTabBookingSearch:$}),i.createElement(ht,{className:"booking-search-container"},i.createElement(gt,null,i.createElement("div",{ref:_},i.createElement(M,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==H&&i.createElement(Dt,{state:U,isMobile:e,dispatch:W,debouncedFetchCitiesByKeyword:ue,selectedLocation:ee,onLocationClick:ge,trackingAttributes:k}),i.createElement(Pt,{type:H,isMobile:e,state:U,dispatch:W,debouncedFetchSearchResults:he,initalSearchValue:f,focusSearchInput:me,typeInformation:pe,trackingAttributes:L,isLoading:oe,hideSpecialtySelection:F,clientSlug:P}),i.createElement(R,{size:e?"md":"lg",color:"#2D87F3",fullWidth:e,variant:"filled",onClick:function(){let e="";const{slug:t}=pe[H];let i="";const a=g[V][P];("doctor"===H||"hospital"===H)&&U.selectedSpecialty.id>0&&(i=`&specialtyId=${U.selectedSpecialty.id}`),e="specialty"===H?`/${t}`:`/${ee.slug}/${t}`,a&&(e+=`/${a}`),e+=`?q=${J}${i}`,e&&W({type:bt.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},D("booking.searchBar.searchButton"))),!T&&"specialty"!==H&&U.popularKeys.length>0&&i.createElement(Wt,{type:H,state:U,typeInformation:pe,dispatch:W}),"specialty"===H&&"search"===q&&i.createElement(Gt,{state:U,isMobile:e,dispatch:W,specialties:(null==ae?void 0:ae.specialty)||[],isLoading:oe})))))},ei=y.div`
761
761
  background-color: var(--neutral50);
762
762
  padding: 12px 0;
763
763
  box-shadow: inset 0px 1px 0px #e4e8ec;