@hhgtech/hhg-components 1.27.81 → 1.27.82

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 (282) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +5 -2
  4. package/build/care.js +1 -1
  5. package/build/components.js +1 -1
  6. package/build/constants.js +1 -1
  7. package/build/core-51045b79.js +1 -0
  8. package/build/{dataTransform-f09d04a1.js → dataTransform-a70a450b.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +2 -2
  11. package/build/esm/cache.js +1 -1
  12. package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +5 -2
  13. package/build/esm/care.js +1 -1
  14. package/build/esm/components.js +1 -1
  15. package/build/esm/constants.js +1 -1
  16. package/build/esm/{core-1e91316f.js → core-75faa298.js} +1 -1
  17. package/build/esm/{dataTransform-b78e8561.js → dataTransform-8a0758bd.js} +1 -1
  18. package/build/esm/ecom.js +1 -1
  19. package/build/esm/{fixedBottomAdBlock-f5f40015.js → fixedBottomAdBlock-0d9e464a.js} +1 -1
  20. package/build/esm/footer.js +1 -1
  21. package/build/esm/gAssets.js +1 -1
  22. package/build/esm/getDynamicHealthTool-2264b707.js +1 -0
  23. package/build/esm/{getSocialList-bc2779bc.js → getSocialList-cc7df2af.js} +1 -1
  24. package/build/esm/hooks.js +1 -1
  25. package/build/esm/i18n-values/id-ID.js +1 -1
  26. package/build/esm/i18n-values/km-KH.js +1 -1
  27. package/build/esm/i18n-values/ms-MY.js +1 -1
  28. package/build/esm/i18n-values/my-MM.js +1 -1
  29. package/build/esm/i18n-values/th-TH.js +1 -1
  30. package/build/esm/i18n-values/tl-PH.js +1 -1
  31. package/build/esm/i18n-values/vi-VN.js +1 -1
  32. package/build/esm/i18n-values/vi-VN_MB.js +1 -1
  33. package/build/esm/i18n-values/zh-TW.js +1 -1
  34. package/build/esm/i18n.js +1 -1
  35. package/build/esm/i18nV2.js +1 -1
  36. package/build/esm/{index-ec367f8f.js → index-06bfaa62.js} +1 -1
  37. package/build/esm/{index-17fa2676.js → index-13d134a1.js} +1 -1
  38. package/build/esm/{index-46d948d8.js → index-1a1ff7a2.js} +1 -1
  39. package/build/esm/{index-ab9cd3fe.js → index-3b300da4.js} +6 -6
  40. package/build/esm/{index-982bf4b1.js → index-4403a03e.js} +1 -1
  41. package/build/esm/{index-a8e48a82.js → index-69730532.js} +4 -4
  42. package/build/esm/{index-0a52bf51.js → index-757cf555.js} +1 -1
  43. package/build/esm/{index-4dcafc59.js → index-76105997.js} +1 -1
  44. package/build/esm/{index-bf878f26.js → index-789b441b.js} +1 -1
  45. package/build/esm/index-837de4d8.js +1 -0
  46. package/build/esm/index-9adff2a0.js +1 -0
  47. package/build/esm/{index-61fa790d.js → index-9b748455.js} +1 -1
  48. package/build/esm/{index-6379799f.js → index-9e61d7a8.js} +1 -1
  49. package/build/esm/index-a71a9eec.js +1 -0
  50. package/build/esm/{index-e44a679a.js → index-aeeaf678.js} +1 -1
  51. package/build/esm/{index-126310ad.js → index-bb971383.js} +1 -1
  52. package/build/esm/{index-f713598c.js → index-cac0c4ef.js} +2 -2
  53. package/build/esm/{index-4fd357f7.js → index-d58b036a.js} +1 -1
  54. package/build/esm/{index-d4cb12b8.js → index-e18d661d.js} +1 -1
  55. package/build/esm/{index-1a0776b8.js → index-ecd88e62.js} +1 -1
  56. package/build/esm/{index-40734088.js → index-fccf2a91.js} +1 -1
  57. package/build/esm/index.js +1 -1
  58. package/build/esm/{index.styled-957d60bc.js → index.styled-220b8bdc.js} +1 -1
  59. package/build/esm/{index.styled-0ed8ed9c.js → index.styled-5a153e98.js} +6 -6
  60. package/build/esm/{index.styled-93e3a705.js → index.styled-d363c71c.js} +2 -2
  61. package/build/esm/lead.js +1 -1
  62. package/build/esm/mantine.js +1 -1
  63. package/build/esm/misc.js +1 -1
  64. package/build/esm/navigation.js +1 -1
  65. package/build/esm/onboarding.js +1 -1
  66. package/build/esm/onboardingV2.js +1 -1
  67. package/build/esm/pwg.js +5 -5
  68. package/build/esm/{routing-6a04122b.js → routing-a99f7ffa.js} +1 -1
  69. package/build/esm/together.js +1 -1
  70. package/build/esm/{types-f2c9883a.js → types-3fd7822f.js} +1 -1
  71. package/build/esm/{types-e40f5053.js → types-679710fc.js} +20 -20
  72. package/build/esm/types.js +1 -1
  73. package/build/esm/useHealthToolCache-45d75b0f.js +1 -0
  74. package/build/esm/{useRafState-698aee2e.js → useRafState-ac916ffe.js} +1 -1
  75. package/build/esm/{useTranslations-066a0f88.js → useTranslations-f74d8fc5.js} +1 -1
  76. package/build/esm/{utils-1bfcfe96.js → utils-575be576.js} +1 -1
  77. package/build/esm/{utils-c1b716a1.js → utils-979f5b1b.js} +1 -1
  78. package/build/esm/vaccination.js +5 -5
  79. package/build/{fixedBottomAdBlock-d4a1e001.js → fixedBottomAdBlock-6aecf2f2.js} +1 -1
  80. package/build/footer.js +1 -1
  81. package/build/gAssets.js +1 -1
  82. package/build/getDynamicHealthTool-35a9d796.js +1 -0
  83. package/build/{getSocialList-45e84715.js → getSocialList-3645b96d.js} +1 -1
  84. package/build/hooks.js +1 -1
  85. package/build/i18n-values/id-ID.js +1 -1
  86. package/build/i18n-values/km-KH.js +1 -1
  87. package/build/i18n-values/ms-MY.js +1 -1
  88. package/build/i18n-values/my-MM.js +1 -1
  89. package/build/i18n-values/th-TH.js +1 -1
  90. package/build/i18n-values/tl-PH.js +1 -1
  91. package/build/i18n-values/vi-VN.js +1 -1
  92. package/build/i18n-values/vi-VN_MB.js +1 -1
  93. package/build/i18n-values/zh-TW.js +1 -1
  94. package/build/i18n.js +1 -1
  95. package/build/i18nV2.js +1 -1
  96. package/build/{index-2e3b19ad.js → index-01a607bc.js} +1 -1
  97. package/build/{index-36448a05.js → index-070227f7.js} +1 -1
  98. package/build/{index-9710f8f5.js → index-0b159bb2.js} +1 -1
  99. package/build/{index-e11b4a6e.js → index-1719f4da.js} +1 -1
  100. package/build/{index-57461bf1.js → index-2bdfc9e7.js} +1 -1
  101. package/build/{index-091f1584.js → index-40dbe0f5.js} +1 -1
  102. package/build/index-434fc6bf.js +53 -0
  103. package/build/index-4d26d368.js +1 -0
  104. package/build/{index-bbbd4335.js → index-4e5cee26.js} +1 -1
  105. package/build/{index-ef6bf086.js → index-615e6974.js} +11 -11
  106. package/build/{index-c44297c4.js → index-63e7f8e5.js} +1 -1
  107. package/build/{index-20448f00.js → index-66835c83.js} +1 -1
  108. package/build/{index-8a3699a1.js → index-731b7140.js} +1 -1
  109. package/build/{index-18071c0f.js → index-76b22ff2.js} +1 -1
  110. package/build/{index-106a878a.js → index-a13157ab.js} +1 -1
  111. package/build/{index-373fa759.js → index-b5092561.js} +1 -1
  112. package/build/{index-5249f720.js → index-e5a74957.js} +1 -1
  113. package/build/{index-1f883f80.js → index-e66da28a.js} +1 -1
  114. package/build/{index-4322bbe3.js → index-ed228b8a.js} +1 -1
  115. package/build/{index-474968d0.js → index-f20436f9.js} +1 -1
  116. package/build/{index-86f1b0cb.js → index-f36944a7.js} +1 -1
  117. package/build/index.js +1 -1
  118. package/build/{index.styled-c454c03d.js → index.styled-42469d9e.js} +1 -1
  119. package/build/{index.styled-0d824dba.js → index.styled-524e6987.js} +1 -1
  120. package/build/{index.styled-164da4b3.js → index.styled-c77f8ec6.js} +6 -6
  121. package/build/lead.js +1 -1
  122. package/build/mantine.js +1 -1
  123. package/build/misc.js +1 -1
  124. package/build/navigation.js +1 -1
  125. package/build/onboarding.js +1 -1
  126. package/build/onboardingV2.js +1 -1
  127. package/build/pwg.js +2 -2
  128. package/build/{routing-4cb17746.js → routing-0b1910e1.js} +1 -1
  129. package/build/together.js +1 -1
  130. package/build/{types-a1dd6e7b.js → types-967bb8c1.js} +16 -16
  131. package/build/{types-59f4cf30.js → types-c83a4971.js} +1 -1
  132. package/build/types.js +1 -1
  133. package/build/{useHealthToolCache-e9e39abb.js → useHealthToolCache-1b9788ec.js} +1 -1
  134. package/build/{useRafState-4973fd36.js → useRafState-53fe6607.js} +1 -1
  135. package/build/{useTranslations-4b98992e.js → useTranslations-9c168300.js} +1 -1
  136. package/build/{utils-95f15c1f.js → utils-18805f78.js} +1 -1
  137. package/build/{utils-8f5e4234.js → utils-a5d9509f.js} +1 -1
  138. package/build/vaccination.js +1 -1
  139. package/package.json +1 -1
  140. package/build/core-4dfcaba2.js +0 -1
  141. package/build/esm/getDynamicHealthTool-e3f9f9ad.js +0 -1
  142. package/build/esm/index-20ace6ea.js +0 -1
  143. package/build/esm/index-a881921b.js +0 -1
  144. package/build/esm/index-e6065f28.js +0 -1
  145. package/build/esm/useHealthToolCache-628f1882.js +0 -1
  146. package/build/getDynamicHealthTool-1f78dcfa.js +0 -1
  147. package/build/index-aaf65645.js +0 -53
  148. package/build/index-ee7c5e79.js +0 -1
  149. /package/build/{BMI_BOYS.percentile.monthly-e5028e59.js → BMI_BOYS.percentile.monthly-3dd3bbbd.js} +0 -0
  150. /package/build/{BMI_BOYS.percentile.weekly-9f9cba82.js → BMI_BOYS.percentile.weekly-298743ca.js} +0 -0
  151. /package/build/{BMI_BOYS.percentile.yearly-6293b5a4.js → BMI_BOYS.percentile.yearly-6ae3d040.js} +0 -0
  152. /package/build/{BMI_BOYS.zscore.monthly-50e01f2f.js → BMI_BOYS.zscore.monthly-38f07eb2.js} +0 -0
  153. /package/build/{BMI_BOYS.zscore.weekly-b348f655.js → BMI_BOYS.zscore.weekly-64312ff8.js} +0 -0
  154. /package/build/{BMI_BOYS.zscore.yearly-9407703a.js → BMI_BOYS.zscore.yearly-7ec2debe.js} +0 -0
  155. /package/build/{BMI_GIRLS.percentile.monthly-a721cca3.js → BMI_GIRLS.percentile.monthly-1b0be5f9.js} +0 -0
  156. /package/build/{BMI_GIRLS.percentile.weekly-e14dd90a.js → BMI_GIRLS.percentile.weekly-80c3cb4f.js} +0 -0
  157. /package/build/{BMI_GIRLS.percentile.yearly-55634d7e.js → BMI_GIRLS.percentile.yearly-b43aa9fb.js} +0 -0
  158. /package/build/{BMI_GIRLS.zscore.monthly-386ea09a.js → BMI_GIRLS.zscore.monthly-b0f57016.js} +0 -0
  159. /package/build/{BMI_GIRLS.zscore.weekly-f1c2a599.js → BMI_GIRLS.zscore.weekly-ab8a1449.js} +0 -0
  160. /package/build/{BMI_GIRLS.zscore.yearly-1aff2de2.js → BMI_GIRLS.zscore.yearly-4be79dba.js} +0 -0
  161. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-6936932a.js → HEAD CIRCUM_BOYS.percentile.monthly-b75dff95.js} +0 -0
  162. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-848d261c.js → HEAD CIRCUM_BOYS.percentile.weekly-2367039e.js} +0 -0
  163. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-6dcc5575.js → HEAD CIRCUM_BOYS.percentile.yearly-03af7948.js} +0 -0
  164. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-36fb634c.js → HEAD CIRCUM_BOYS.zscore.monthly-967fabef.js} +0 -0
  165. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-752ed2dd.js → HEAD CIRCUM_BOYS.zscore.weekly-b177555e.js} +0 -0
  166. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b05c4e2a.js → HEAD CIRCUM_BOYS.zscore.yearly-e0dcba70.js} +0 -0
  167. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-2d4ebf1a.js → HEAD CIRCUM_GIRLS.percentile.monthly-8fdd3e17.js} +0 -0
  168. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-86cfd088.js → HEAD CIRCUM_GIRLS.percentile.weekly-01d17d93.js} +0 -0
  169. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-630b2e2e.js → HEAD CIRCUM_GIRLS.percentile.yearly-274c3977.js} +0 -0
  170. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-555b6e42.js → HEAD CIRCUM_GIRLS.zscore.monthly-03f15589.js} +0 -0
  171. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-76b9f7f4.js → HEAD CIRCUM_GIRLS.zscore.weekly-1430596f.js} +0 -0
  172. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d9d99869.js → HEAD CIRCUM_GIRLS.zscore.yearly-f7a64e29.js} +0 -0
  173. /package/build/{HEIGHT_BOYS.percentile.monthly-109bc310.js → HEIGHT_BOYS.percentile.monthly-7ccd854d.js} +0 -0
  174. /package/build/{HEIGHT_BOYS.percentile.weekly-0eb6ca8e.js → HEIGHT_BOYS.percentile.weekly-9fc6a846.js} +0 -0
  175. /package/build/{HEIGHT_BOYS.percentile.yearly-74eceae2.js → HEIGHT_BOYS.percentile.yearly-1bb57211.js} +0 -0
  176. /package/build/{HEIGHT_BOYS.zscore.monthly-f5f1a4e9.js → HEIGHT_BOYS.zscore.monthly-7b0e3cd6.js} +0 -0
  177. /package/build/{HEIGHT_BOYS.zscore.weekly-50069e1b.js → HEIGHT_BOYS.zscore.weekly-0365be14.js} +0 -0
  178. /package/build/{HEIGHT_BOYS.zscore.yearly-7d3970b5.js → HEIGHT_BOYS.zscore.yearly-50c3478b.js} +0 -0
  179. /package/build/{HEIGHT_GIRLS.percentile.monthly-cb87fd57.js → HEIGHT_GIRLS.percentile.monthly-1c0da686.js} +0 -0
  180. /package/build/{HEIGHT_GIRLS.percentile.weekly-d5b2dfdf.js → HEIGHT_GIRLS.percentile.weekly-63955bc9.js} +0 -0
  181. /package/build/{HEIGHT_GIRLS.percentile.yearly-99bad217.js → HEIGHT_GIRLS.percentile.yearly-83f9538e.js} +0 -0
  182. /package/build/{HEIGHT_GIRLS.zscore.monthly-e05528a3.js → HEIGHT_GIRLS.zscore.monthly-c1113b4b.js} +0 -0
  183. /package/build/{HEIGHT_GIRLS.zscore.weekly-c365628f.js → HEIGHT_GIRLS.zscore.weekly-c25a98ef.js} +0 -0
  184. /package/build/{HEIGHT_GIRLS.zscore.yearly-db577642.js → HEIGHT_GIRLS.zscore.yearly-69b4725c.js} +0 -0
  185. /package/build/{Onboarding-34f35fb5.js → Onboarding-319fc3d2.js} +0 -0
  186. /package/build/{Visible-c6c14a38.js → Visible-e5465c94.js} +0 -0
  187. /package/build/{WEIGHT_BOYS.percentile.monthly-44a75371.js → WEIGHT_BOYS.percentile.monthly-14f4d73d.js} +0 -0
  188. /package/build/{WEIGHT_BOYS.percentile.weekly-b390247a.js → WEIGHT_BOYS.percentile.weekly-a962dc3f.js} +0 -0
  189. /package/build/{WEIGHT_BOYS.percentile.yearly-356aaf15.js → WEIGHT_BOYS.percentile.yearly-d7fb5ac3.js} +0 -0
  190. /package/build/{WEIGHT_BOYS.zscore.monthly-e7d7f318.js → WEIGHT_BOYS.zscore.monthly-e7b0b952.js} +0 -0
  191. /package/build/{WEIGHT_BOYS.zscore.weekly-8430f4c9.js → WEIGHT_BOYS.zscore.weekly-a6f82640.js} +0 -0
  192. /package/build/{WEIGHT_BOYS.zscore.yearly-ba47b23e.js → WEIGHT_BOYS.zscore.yearly-7cfc2e3f.js} +0 -0
  193. /package/build/{WEIGHT_GIRLS.percentile.monthly-c7017a33.js → WEIGHT_GIRLS.percentile.monthly-de4dd11d.js} +0 -0
  194. /package/build/{WEIGHT_GIRLS.percentile.weekly-80fec971.js → WEIGHT_GIRLS.percentile.weekly-20b534ae.js} +0 -0
  195. /package/build/{WEIGHT_GIRLS.percentile.yearly-c2513ed7.js → WEIGHT_GIRLS.percentile.yearly-2e195e4b.js} +0 -0
  196. /package/build/{WEIGHT_GIRLS.zscore.monthly-b7fa83a6.js → WEIGHT_GIRLS.zscore.monthly-fcf56ecd.js} +0 -0
  197. /package/build/{WEIGHT_GIRLS.zscore.weekly-56228c5e.js → WEIGHT_GIRLS.zscore.weekly-4d7dd653.js} +0 -0
  198. /package/build/{WEIGHT_GIRLS.zscore.yearly-0c3aea5a.js → WEIGHT_GIRLS.zscore.yearly-7a6afe6e.js} +0 -0
  199. /package/build/{constants-3984d612.js → constants-c6d2f56b.js} +0 -0
  200. /package/build/{cookieHelper-f295d483.js → cookieHelper-c8e979f9.js} +0 -0
  201. /package/build/{dataTransform-400cca46.js → dataTransform-b932711e.js} +0 -0
  202. /package/build/esm/{BMI_BOYS.percentile.monthly-b7d48322.js → BMI_BOYS.percentile.monthly-5006e45a.js} +0 -0
  203. /package/build/esm/{BMI_BOYS.percentile.weekly-d2503b88.js → BMI_BOYS.percentile.weekly-d848f97d.js} +0 -0
  204. /package/build/esm/{BMI_BOYS.percentile.yearly-3813d181.js → BMI_BOYS.percentile.yearly-49145312.js} +0 -0
  205. /package/build/esm/{BMI_BOYS.zscore.monthly-5a70ab35.js → BMI_BOYS.zscore.monthly-b2ea190f.js} +0 -0
  206. /package/build/esm/{BMI_BOYS.zscore.weekly-abe03493.js → BMI_BOYS.zscore.weekly-737bcee4.js} +0 -0
  207. /package/build/esm/{BMI_BOYS.zscore.yearly-829e776e.js → BMI_BOYS.zscore.yearly-871a4507.js} +0 -0
  208. /package/build/esm/{BMI_GIRLS.percentile.monthly-cdd6ecd0.js → BMI_GIRLS.percentile.monthly-c30a1905.js} +0 -0
  209. /package/build/esm/{BMI_GIRLS.percentile.weekly-30c6a4e0.js → BMI_GIRLS.percentile.weekly-2818e405.js} +0 -0
  210. /package/build/esm/{BMI_GIRLS.percentile.yearly-5e41747c.js → BMI_GIRLS.percentile.yearly-1082eb1a.js} +0 -0
  211. /package/build/esm/{BMI_GIRLS.zscore.monthly-d5626db9.js → BMI_GIRLS.zscore.monthly-9fec9439.js} +0 -0
  212. /package/build/esm/{BMI_GIRLS.zscore.weekly-9cef0577.js → BMI_GIRLS.zscore.weekly-c5762fea.js} +0 -0
  213. /package/build/esm/{BMI_GIRLS.zscore.yearly-b855e85f.js → BMI_GIRLS.zscore.yearly-79f6b25a.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-6e4a05c8.js → HEAD CIRCUM_BOYS.percentile.monthly-d6d70888.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-69e8eec4.js → HEAD CIRCUM_BOYS.percentile.weekly-d2205b45.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-cfe768ac.js → HEAD CIRCUM_BOYS.percentile.yearly-755371b3.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-1e95bfe1.js → HEAD CIRCUM_BOYS.zscore.monthly-bee5c101.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-947a59af.js → HEAD CIRCUM_BOYS.zscore.weekly-85036f91.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-8352b238.js → HEAD CIRCUM_BOYS.zscore.yearly-5591839b.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-9c8902ad.js → HEAD CIRCUM_GIRLS.percentile.monthly-382c2dff.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-da0531c3.js → HEAD CIRCUM_GIRLS.percentile.weekly-e5f28b31.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-bdd9635f.js → HEAD CIRCUM_GIRLS.percentile.yearly-4afb91f7.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3a5b6c13.js → HEAD CIRCUM_GIRLS.zscore.monthly-d1db42f4.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-cd42c7c3.js → HEAD CIRCUM_GIRLS.zscore.weekly-f90756dc.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-08b7e4e0.js → HEAD CIRCUM_GIRLS.zscore.yearly-473b4f6c.js} +0 -0
  226. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-97eb6ccb.js → HEIGHT_BOYS.percentile.monthly-8c9bccd4.js} +0 -0
  227. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5ed96e13.js → HEIGHT_BOYS.percentile.weekly-d6928db1.js} +0 -0
  228. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-57b2c4c3.js → HEIGHT_BOYS.percentile.yearly-1afd2fbf.js} +0 -0
  229. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-7ae1c45c.js → HEIGHT_BOYS.zscore.monthly-113a446c.js} +0 -0
  230. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-d7edd0b8.js → HEIGHT_BOYS.zscore.weekly-fbdf55d3.js} +0 -0
  231. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-0d77d7e5.js → HEIGHT_BOYS.zscore.yearly-73fd9026.js} +0 -0
  232. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c3a12059.js → HEIGHT_GIRLS.percentile.monthly-cd1c1113.js} +0 -0
  233. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-cbfaa2b3.js → HEIGHT_GIRLS.percentile.weekly-29c969e6.js} +0 -0
  234. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f21054d0.js → HEIGHT_GIRLS.percentile.yearly-030e3aa7.js} +0 -0
  235. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-f841388d.js → HEIGHT_GIRLS.zscore.monthly-5068bb63.js} +0 -0
  236. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f00caa57.js → HEIGHT_GIRLS.zscore.weekly-da134b80.js} +0 -0
  237. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-7d416444.js → HEIGHT_GIRLS.zscore.yearly-3dc4cb39.js} +0 -0
  238. /package/build/esm/{Onboarding-ee515ace.js → Onboarding-3a6c21ad.js} +0 -0
  239. /package/build/esm/{Visible-94c3cf0b.js → Visible-b3394ab6.js} +0 -0
  240. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-269777aa.js → WEIGHT_BOYS.percentile.monthly-a367e206.js} +0 -0
  241. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-fce722af.js → WEIGHT_BOYS.percentile.weekly-d9130043.js} +0 -0
  242. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-5e0974c2.js → WEIGHT_BOYS.percentile.yearly-91bee459.js} +0 -0
  243. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-9029629f.js → WEIGHT_BOYS.zscore.monthly-926233f5.js} +0 -0
  244. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-08ac0c7c.js → WEIGHT_BOYS.zscore.weekly-3520b36e.js} +0 -0
  245. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-0768d157.js → WEIGHT_BOYS.zscore.yearly-f94e1611.js} +0 -0
  246. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-64853dfd.js → WEIGHT_GIRLS.percentile.monthly-a6917d8f.js} +0 -0
  247. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-14a0cfc9.js → WEIGHT_GIRLS.percentile.weekly-bc2614f8.js} +0 -0
  248. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-92b032a0.js → WEIGHT_GIRLS.percentile.yearly-a516d300.js} +0 -0
  249. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-a3639e72.js → WEIGHT_GIRLS.zscore.monthly-20126172.js} +0 -0
  250. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-030e7d3b.js → WEIGHT_GIRLS.zscore.weekly-122078a5.js} +0 -0
  251. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-f20d2d53.js → WEIGHT_GIRLS.zscore.yearly-cd264c42.js} +0 -0
  252. /package/build/esm/{constants-a3b3abcd.js → constants-12608bf0.js} +0 -0
  253. /package/build/esm/{cookieHelper-39d259c6.js → cookieHelper-c60c504e.js} +0 -0
  254. /package/build/esm/{dataTransform-9c31d067.js → dataTransform-abb31f20.js} +0 -0
  255. /package/build/esm/{index-472d1e31.js → index-c19d5e7e.js} +0 -0
  256. /package/build/esm/{isProduction-467296eb.js → isProduction-51391455.js} +0 -0
  257. /package/build/esm/{localizeNumberFormat-0c9a10de.js → localizeNumberFormat-ad204b9a.js} +0 -0
  258. /package/build/esm/{normalizeLink-ccb18bcd.js → normalizeLink-8cc356aa.js} +0 -0
  259. /package/build/esm/{paths-eeb39298.js → paths-8379d9b8.js} +0 -0
  260. /package/build/esm/{screenSizeContext-11b9f601.js → screenSizeContext-728c9780.js} +0 -0
  261. /package/build/esm/{theme-e8bef3f3.js → theme-201c3b74.js} +0 -0
  262. /package/build/esm/{translationsContext-9cc0272d.js → translationsContext-94f5b52a.js} +0 -0
  263. /package/build/esm/{tslib.es6-555d79f5.js → tslib.es6-de6b6384.js} +0 -0
  264. /package/build/esm/{types-dd79175e.js → types-b55eb538.js} +0 -0
  265. /package/build/esm/{useIsInit-0a8cd31e.js → useIsInit-374304fb.js} +0 -0
  266. /package/build/esm/{useOutsideClick-029ac6a7.js → useOutsideClick-f192d846.js} +0 -0
  267. /package/build/esm/{useScrollbarSize-b1d91fe0.js → useScrollbarSize-f16fda25.js} +0 -0
  268. /package/build/esm/{useUniqueId-a5c4fc3f.js → useUniqueId-dc8e4ab8.js} +0 -0
  269. /package/build/{index-013e2df7.js → index-0c029e89.js} +0 -0
  270. /package/build/{isProduction-db520833.js → isProduction-1230f05e.js} +0 -0
  271. /package/build/{localizeNumberFormat-a7c37a52.js → localizeNumberFormat-50cf5064.js} +0 -0
  272. /package/build/{normalizeLink-01f8fb47.js → normalizeLink-b5b0609b.js} +0 -0
  273. /package/build/{paths-98041f14.js → paths-cbfb0dcb.js} +0 -0
  274. /package/build/{screenSizeContext-ba4400db.js → screenSizeContext-080182ae.js} +0 -0
  275. /package/build/{theme-7b9eadbd.js → theme-06993ed5.js} +0 -0
  276. /package/build/{translationsContext-f65343d9.js → translationsContext-4242d047.js} +0 -0
  277. /package/build/{tslib.es6-a445271a.js → tslib.es6-13252057.js} +0 -0
  278. /package/build/{types-9f151dc6.js → types-1bd596da.js} +0 -0
  279. /package/build/{useIsInit-85bd7596.js → useIsInit-88a4704a.js} +0 -0
  280. /package/build/{useOutsideClick-4f9a1881.js → useOutsideClick-6944ac95.js} +0 -0
  281. /package/build/{useScrollbarSize-1684fe85.js → useScrollbarSize-750c4392.js} +0 -0
  282. /package/build/{useUniqueId-95cb1220.js → useUniqueId-5e154eee.js} +0 -0
package/build/together.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-59f4cf30.js"),r=require("./index.styled-0d824dba.js"),t=require("./dataTransform-f09d04a1.js"),o=require("./utils-95f15c1f.js");require("./tslib.es6-a445271a.js"),require("react"),require("@mantine/core"),require("./index-2e3b19ad.js"),require("styled-components"),require("./screenSizeContext-ba4400db.js"),require("lodash/throttle"),require("./index-c44297c4.js"),require("./gAssets.js"),require("./index-20448f00.js"),require("date-fns/locale"),require("./Onboarding-34f35fb5.js"),require("./isProduction-db520833.js"),require("./index-474968d0.js"),require("@mantine/carousel"),require("@mantine/hooks"),require("./index-36448a05.js"),require("./index-57461bf1.js"),require("./index-4322bbe3.js"),require("./index-86f1b0cb.js"),require("./theme-7b9eadbd.js"),require("dayjs"),require("./useUniqueId-95cb1220.js"),require("@mantine/dates"),require("./translationsContext-f65343d9.js"),require("string-format"),require("@hookform/resolvers/yup"),require("react-hook-form"),require("./index-ef6bf086.js"),require("./useTranslations-4b98992e.js"),require("./index-e11b4a6e.js"),require("date-fns"),require("./index-18071c0f.js"),require("lodash/debounce"),require("./types-9f151dc6.js"),require("react-day-picker/DayPickerInput"),require("innertext"),require("./index-1f883f80.js"),require("./paths-98041f14.js"),require("./constants-3984d612.js"),require("react-contenteditable"),require("./cookieHelper-f295d483.js"),require("react-dom"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-164da4b3.js"),require("uuid"),require("./utils-8f5e4234.js"),require("dayjs/plugin/relativeTime"),require("./index-106a878a.js"),require("./routing-4cb17746.js"),require("react-keyed-flatten-children"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.Loading=e.Loading,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.UserAvatar=r.UserAvatar,exports.TogetherDataTransforms=t.dataTransform,exports.DefaultComponentGlobalContextData=o.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return o.GlobalData}}),exports.TogetherComponentGlobalContext=o.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=o.TogetherComponentGlobalContextProvider,exports.TogetherConstants=o.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-c83a4971.js"),r=require("./index.styled-524e6987.js"),t=require("./dataTransform-a70a450b.js"),o=require("./utils-18805f78.js");require("./tslib.es6-13252057.js"),require("react"),require("@mantine/core"),require("./index-01a607bc.js"),require("styled-components"),require("./screenSizeContext-080182ae.js"),require("lodash/throttle"),require("./index-63e7f8e5.js"),require("./gAssets.js"),require("./index-66835c83.js"),require("date-fns/locale"),require("./Onboarding-319fc3d2.js"),require("./isProduction-1230f05e.js"),require("./index-f20436f9.js"),require("@mantine/carousel"),require("@mantine/hooks"),require("./index-070227f7.js"),require("./index-2bdfc9e7.js"),require("./index-ed228b8a.js"),require("./index-f36944a7.js"),require("./theme-06993ed5.js"),require("dayjs"),require("./useUniqueId-5e154eee.js"),require("@mantine/dates"),require("./translationsContext-4242d047.js"),require("string-format"),require("@hookform/resolvers/yup"),require("react-hook-form"),require("./index-615e6974.js"),require("./useTranslations-9c168300.js"),require("./index-1719f4da.js"),require("date-fns"),require("./index-76b22ff2.js"),require("lodash/debounce"),require("./types-1bd596da.js"),require("react-day-picker/DayPickerInput"),require("innertext"),require("./index-e66da28a.js"),require("./paths-cbfb0dcb.js"),require("./constants-c6d2f56b.js"),require("react-contenteditable"),require("./cookieHelper-c8e979f9.js"),require("react-dom"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-c77f8ec6.js"),require("uuid"),require("./utils-a5d9509f.js"),require("dayjs/plugin/relativeTime"),require("./index-a13157ab.js"),require("./routing-0b1910e1.js"),require("react-keyed-flatten-children"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.Loading=e.Loading,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.UserAvatar=r.UserAvatar,exports.TogetherDataTransforms=t.dataTransform,exports.DefaultComponentGlobalContextData=o.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return o.GlobalData}}),exports.TogetherComponentGlobalContext=o.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=o.TogetherComponentGlobalContextProvider,exports.TogetherConstants=o.constants;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-a445271a.js"),t=require("react"),a=require("./useTranslations-4b98992e.js"),i=require("lodash/debounce"),o=require("./constants-3984d612.js"),l=require("./index-4322bbe3.js"),n=require("styled-components"),s=require("./index-36448a05.js"),r=require("./theme-7b9eadbd.js"),c=require("./screenSizeContext-ba4400db.js"),d=require("react-loading-skeleton"),u=require("lodash/shuffle"),p=require("./useOutsideClick-4f9a1881.js"),h=require("./paths-98041f14.js"),g=require("@mantine/core"),f=require("./index-20448f00.js"),m=require("./cookieHelper-f295d483.js"),C=require("./index-86f1b0cb.js"),b=require("string-format");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function v(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var x=v(t),E=y(t),S=y(i),w=y(n),L=y(d),O=y(u),k=y(b);const I=e=>x.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),x.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 T(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const j=w.default.div``,M=w.default.div`
1
+ "use strict";var e=require("./tslib.es6-13252057.js"),t=require("react"),a=require("./useTranslations-9c168300.js"),i=require("lodash/debounce"),o=require("./constants-c6d2f56b.js"),l=require("./index-ed228b8a.js"),n=require("styled-components"),s=require("./index-070227f7.js"),r=require("./theme-06993ed5.js"),c=require("./screenSizeContext-080182ae.js"),d=require("react-loading-skeleton"),u=require("lodash/shuffle"),p=require("./useOutsideClick-6944ac95.js"),h=require("./paths-cbfb0dcb.js"),g=require("@mantine/core"),f=require("./index-66835c83.js"),m=require("./cookieHelper-c8e979f9.js"),C=require("./index-f36944a7.js"),b=require("string-format");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function v(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var x=v(t),E=y(t),S=y(i),w=y(n),L=y(d),O=y(u),k=y(b);const I=e=>x.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),x.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 T(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const j=w.default.div``,M=w.default.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -35,7 +35,7 @@
35
35
  z-index: 2;
36
36
  }
37
37
  }
38
- `,F=({className:e,color:t})=>E.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.default.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),_=({className:e,color:t})=>E.default.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},E.default.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"})),$=({className:e,color:t})=>E.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),E.default.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),D=({width:e,height:t})=>E.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),B=w.default.li`
38
+ `,F=({className:e,color:t})=>E.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.default.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),$=({className:e,color:t})=>E.default.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},E.default.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"})),_=({className:e,color:t})=>E.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),E.default.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),D=({width:e,height:t})=>E.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),B=w.default.li`
39
39
  display: flex;
40
40
  align-items: center;
41
41
  gap: 12px;
@@ -79,10 +79,10 @@
79
79
  width: 100%;
80
80
  max-height: 600px;
81
81
  overflow-y: auto;
82
- `,z=w.default(_)`
82
+ `,K=w.default($)`
83
83
  width: 12px;
84
84
  height: 18px;
85
- `,K=w.default.li`
85
+ `,z=w.default.li`
86
86
  position: relative;
87
87
  cursor: pointer;
88
88
  padding: 12px 18px;
@@ -124,13 +124,13 @@
124
124
  &:first-child {
125
125
  padding-top: 18px;
126
126
  }
127
- `,Z=({cities:e,isLoading:t,onLocationClick:i,selectedLocation:l})=>{const{t:n,locale:c}=a.useTranslations();return E.default.createElement(V,{"data-testid":"location-search-results"},E.default.createElement(H,null,t?E.default.createElement(G,{count:5}):!e||e.length<1?E.default.createElement(E.default.Fragment,null,E.default.createElement(K,{"data-is-denied":"true"},E.default.createElement(s.Text,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):E.default.createElement(E.default.Fragment,null,E.default.createElement(K,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;i&&i({name:n("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[c])||void 0===e?void 0:e.ALL})}},E.default.createElement(z,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>E.default.createElement(K,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),i&&i(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},E.default.createElement(z,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},e.name)))))))},U="TYPE_CHARACTER",Q="REMOVE_CHARACTER",q="REMOVE_ALL",Y="REMOVE_LAST_VISIBLE_NODE",W="PAUSE_FOR",J="CHANGE_DELETE_SPEED",X="CHANGE_DELAY",ee="PASTE_STRING",te=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,ae="TEXT_NODE";class ie{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(W,{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:a}=this.options||{},i="function"==typeof a?a(e):e.split("");this.typeCharacters(i,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(ee,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(q,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(J,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(X,{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(Q);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(U,{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(Q)})),this},this.addEventToQueue=(e,t,a=!1)=>this.addEventToStateProperty(e,t,a,"eventQueue"),this.addReverseCalledEvent=(e,t,a=!1)=>{const{loop:i}=this.options;return i?this.addEventToStateProperty(e,t,a,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,a=!1,i)=>{const o={eventName:e,eventArgs:t||{}};return this.state[i]=a?[o,...this.state[i]]:[...this.state[i],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 a=[...this.state.eventQueue],i=a.shift();let o=0;if(o=i.eventName===Y||i.eventName===Q?"natural"===this.options.deleteSpeed?te(40,80):this.options.deleteSpeed:"natural"===this.options.delay?te(120,160):this.options.delay,t<=o)return;const{eventName:l,eventArgs:n}=i;switch(l){case ee:case U:{const{character:e}=n,t=document.createTextNode(e);let a=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(a=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:ae,character:e,node:a}];break}case Q:a.unshift({eventName:Y,eventArgs:{removingCharacterNode:!0}});break;case W:{const{ms:e}=i.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case q:{const{visibleNodes:e}=this.state,{speed:t}=n,i=[];t&&i.push({eventName:J,eventArgs:{speed:t,temp:!0}});for(let t=0,a=e.length;t<a;t++)i.push({eventName:Y,eventArgs:{removingCharacterNode:!1}});t&&i.push({eventName:J,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),a.unshift(...i);break}case Y: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 J:this.options.deleteSpeed=i.eventArgs.speed;break;case X:this.options.delay=i.eventArgs.delay}this.options.loop&&(i.eventName===Y||i.eventArgs&&i.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,i])),this.state.eventQueue=a,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(q,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function oe({inputRef:e,wrapperRef:i,disabled:o}){const{t:l,locale:n}=a.useTranslations(),s=t.useMemo((()=>{if(o)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==n&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),O.default(e).map((e=>l(e)))}),[l,n]);function r(e){const t=d();return t&&(t.placeholder=t.placeholder+e),null}function c(){const e=d();e&&(e.placeholder=e.placeholder.slice(0,-1))}function d(){return e&&e.current?e.current:i&&i.current&&i.current.querySelector("input")||null}t.useEffect((()=>{if(o)return;const e=d();e&&(e.placeholder="",new ie({strings:s,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:c}))}),[e,i])}const le=w.default.div`
127
+ `,Z=({cities:e,isLoading:t,onLocationClick:i,selectedLocation:l})=>{const{t:n,locale:c}=a.useTranslations();return E.default.createElement(V,{"data-testid":"location-search-results"},E.default.createElement(H,null,t?E.default.createElement(G,{count:5}):!e||e.length<1?E.default.createElement(E.default.Fragment,null,E.default.createElement(z,{"data-is-denied":"true"},E.default.createElement(s.Text,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):E.default.createElement(E.default.Fragment,null,E.default.createElement(z,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;i&&i({name:n("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[c])||void 0===e?void 0:e.ALL})}},E.default.createElement(K,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>E.default.createElement(z,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),i&&i(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},E.default.createElement(K,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},e.name)))))))},U="TYPE_CHARACTER",Q="REMOVE_CHARACTER",q="REMOVE_ALL",Y="REMOVE_LAST_VISIBLE_NODE",W="PAUSE_FOR",J="CHANGE_DELETE_SPEED",X="CHANGE_DELAY",ee="PASTE_STRING",te=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,ae="TEXT_NODE";class ie{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(W,{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:a}=this.options||{},i="function"==typeof a?a(e):e.split("");this.typeCharacters(i,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(ee,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(q,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(J,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(X,{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(Q);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(U,{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(Q)})),this},this.addEventToQueue=(e,t,a=!1)=>this.addEventToStateProperty(e,t,a,"eventQueue"),this.addReverseCalledEvent=(e,t,a=!1)=>{const{loop:i}=this.options;return i?this.addEventToStateProperty(e,t,a,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,a=!1,i)=>{const o={eventName:e,eventArgs:t||{}};return this.state[i]=a?[o,...this.state[i]]:[...this.state[i],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 a=[...this.state.eventQueue],i=a.shift();let o=0;if(o=i.eventName===Y||i.eventName===Q?"natural"===this.options.deleteSpeed?te(40,80):this.options.deleteSpeed:"natural"===this.options.delay?te(120,160):this.options.delay,t<=o)return;const{eventName:l,eventArgs:n}=i;switch(l){case ee:case U:{const{character:e}=n,t=document.createTextNode(e);let a=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(a=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:ae,character:e,node:a}];break}case Q:a.unshift({eventName:Y,eventArgs:{removingCharacterNode:!0}});break;case W:{const{ms:e}=i.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case q:{const{visibleNodes:e}=this.state,{speed:t}=n,i=[];t&&i.push({eventName:J,eventArgs:{speed:t,temp:!0}});for(let t=0,a=e.length;t<a;t++)i.push({eventName:Y,eventArgs:{removingCharacterNode:!1}});t&&i.push({eventName:J,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),a.unshift(...i);break}case Y: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 J:this.options.deleteSpeed=i.eventArgs.speed;break;case X:this.options.delay=i.eventArgs.delay}this.options.loop&&(i.eventName===Y||i.eventArgs&&i.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,i])),this.state.eventQueue=a,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(q,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function oe({inputRef:e,wrapperRef:i,disabled:o}){const{t:l,locale:n}=a.useTranslations(),s=t.useMemo((()=>{if(o)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==n&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),O.default(e).map((e=>l(e)))}),[l,n]);function r(e){const t=d();return t&&(t.placeholder=t.placeholder+e),null}function c(){const e=d();e&&(e.placeholder=e.placeholder.slice(0,-1))}function d(){return e&&e.current?e.current:i&&i.current&&i.current.querySelector("input")||null}t.useEffect((()=>{if(o)return;const e=d();e&&(e.placeholder="",new ie({strings:s,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:c}))}),[e,i])}const le=w.default.div`
128
128
  user-select: none;
129
129
  input {
130
130
  pointer-events: none;
131
131
  background-color: white;
132
132
  }
133
- `;function ne({focused:e,value:i="",onClick:o,trackingAttributes:l,inputSearchPlaceholder:n}){const{t:s}=a.useTranslations(),c=t.useRef(null);oe({wrapperRef:c,disabled:!!n});const d=t.useMemo((()=>l?{"data-event-category":l.dataEventCategory,"data-event-action":l.dataEventAction,"data-event-label":l.dataEventLabel}:{}),[l]);return E.default.createElement(le,Object.assign({onClick:()=>o&&o(),ref:c},d),E.default.createElement(N,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:E.default.createElement($,{color:r.theme.colors.gray400}),placeholder:s("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}const se=w.default.header`
133
+ `;function ne({focused:e,value:i="",onClick:o,trackingAttributes:l,inputSearchPlaceholder:n}){const{t:s}=a.useTranslations(),c=t.useRef(null);oe({wrapperRef:c,disabled:!!n});const d=t.useMemo((()=>l?{"data-event-category":l.dataEventCategory,"data-event-action":l.dataEventAction,"data-event-label":l.dataEventLabel}:{}),[l]);return E.default.createElement(le,Object.assign({onClick:()=>o&&o(),ref:c},d),E.default.createElement(N,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:E.default.createElement(_,{color:r.theme.colors.gray400}),placeholder:s("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}const se=w.default.header`
134
134
  display: flex;
135
135
  height: 64px;
136
136
  align-items: center;
@@ -220,7 +220,7 @@
220
220
  }
221
221
  `,Le=w.default(s.Text)`
222
222
  font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
223
- `,Oe=({onClick:e})=>{const{t:t}=a.useTranslations(),i=t("booking.searchBar.searchButton");return E.default.createElement(we,{onClick:e,title:i},E.default.createElement(Se,null),E.default.createElement(Le,{size:"s3",color:"white"},i))};function ke({isMobile:e,state:i,dispatch:l,debouncedFetchCitiesByKeyword:n,debouncedFetchSearchResults:s,focusLocationInput:c,focusSearchInput:d,renderLocationResults:u,renderSearchResults:h,locationTrackingAttributes:g,trackingAttributes:f,onSearch:m,initalSearchValue:C}){const b=t.useRef(null),y=t.useRef(null),{focused:v,searchLocationKeywords:x,geoLocationPermission:S,selectedLocation:w,searchKeywords:L,inputSearchPlaceholder:O}=i,{t:k}=a.useTranslations();oe({wrapperRef:y,disabled:!!O}),p.useOutsideClick(b,(()=>{e||l({type:fe.ClickOutsideInputLocation})})),p.useOutsideClick(y,(()=>{e||l({type:fe.ClickOutsideInputSearch})}));const I=t.useMemo((()=>"granted"===S&&(null==w?void 0:w.id)===o.ID_OPTION_CURRENT_LOCATION?r.theme.colors.primaryBase:r.theme.colors.gray400),[S,w]),T=t.useCallback((function(e){l({type:fe.ChangeInputSearch,payload:e}),"function"!=typeof m&&(e.trim().length>he[i.locale]||C?s(e.trim(),i):(s.cancel(),l({type:fe.DisplayInitialSearchResults})))}),[l,i]),j=t.useCallback((function(e){l({type:fe.ChangeInputLocation,payload:e}),e.trim().length>he[i.locale]?n(e.trim()):(n.cancel(),l({type:fe.DisplayInitialCities}))}),[n,l]);return E.default.createElement(be,null,E.default.createElement(ve,{ref:b},E.default.createElement(N,{inputClassName:"location"===v?"focused":void 0,placeholder:k("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:E.default.createElement(_,{className:"location-pin-icon",color:I}),actionIcon:E.default.createElement(Ee,{color:r.theme.colors.gray300,className:""!==x?"shown":""}),onActionClick:function(){l({type:fe.ClearInputLocation}),n.cancel(),c()},value:x,onChange:j,onFocus:()=>l({type:fe.FocusInputLocation}),size:"md",trackingAttributes:g}),!e&&u()),E.default.createElement(xe,{ref:y},E.default.createElement(N,{placeholder:O||k("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:E.default.createElement(Ee,{color:r.theme.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){l({type:fe.ClearInputSearch}),s.cancel(),s("",i),d()},value:L,onChange:T,onFocus:()=>l({type:fe.FocusInputSearch}),inputClassName:"search"===v?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&m&&m({cityId:i.selectedLocation.id,keyword:L})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&h()),i.autoCompleteDisabled&&!i.isMobile&&E.default.createElement(Oe,{onClick:()=>{m({cityId:i.selectedLocation.id,keyword:L})}}))}const Ie=()=>E.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},E.default.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"})),Te=()=>E.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},E.default.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"})),je=()=>E.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},E.default.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"})),Me=()=>E.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},E.default.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"})),Re=w.default.header`
223
+ `,Oe=({onClick:e})=>{const{t:t}=a.useTranslations(),i=t("booking.searchBar.searchButton");return E.default.createElement(we,{onClick:e,title:i},E.default.createElement(Se,null),E.default.createElement(Le,{size:"s3",color:"white"},i))};function ke({isMobile:e,state:i,dispatch:l,debouncedFetchCitiesByKeyword:n,debouncedFetchSearchResults:s,focusLocationInput:c,focusSearchInput:d,renderLocationResults:u,renderSearchResults:h,locationTrackingAttributes:g,trackingAttributes:f,onSearch:m,initalSearchValue:C}){const b=t.useRef(null),y=t.useRef(null),{focused:v,searchLocationKeywords:x,geoLocationPermission:S,selectedLocation:w,searchKeywords:L,inputSearchPlaceholder:O}=i,{t:k}=a.useTranslations();oe({wrapperRef:y,disabled:!!O}),p.useOutsideClick(b,(()=>{e||l({type:fe.ClickOutsideInputLocation})})),p.useOutsideClick(y,(()=>{e||l({type:fe.ClickOutsideInputSearch})}));const I=t.useMemo((()=>"granted"===S&&(null==w?void 0:w.id)===o.ID_OPTION_CURRENT_LOCATION?r.theme.colors.primaryBase:r.theme.colors.gray400),[S,w]),T=t.useCallback((function(e){l({type:fe.ChangeInputSearch,payload:e}),"function"!=typeof m&&(e.trim().length>he[i.locale]||C?s(e.trim(),i):(s.cancel(),l({type:fe.DisplayInitialSearchResults})))}),[l,i]),j=t.useCallback((function(e){l({type:fe.ChangeInputLocation,payload:e}),e.trim().length>he[i.locale]?n(e.trim()):(n.cancel(),l({type:fe.DisplayInitialCities}))}),[n,l]);return E.default.createElement(be,null,E.default.createElement(ve,{ref:b},E.default.createElement(N,{inputClassName:"location"===v?"focused":void 0,placeholder:k("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:E.default.createElement($,{className:"location-pin-icon",color:I}),actionIcon:E.default.createElement(Ee,{color:r.theme.colors.gray300,className:""!==x?"shown":""}),onActionClick:function(){l({type:fe.ClearInputLocation}),n.cancel(),c()},value:x,onChange:j,onFocus:()=>l({type:fe.FocusInputLocation}),size:"md",trackingAttributes:g}),!e&&u()),E.default.createElement(xe,{ref:y},E.default.createElement(N,{placeholder:O||k("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:E.default.createElement(Ee,{color:r.theme.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){l({type:fe.ClearInputSearch}),s.cancel(),s("",i),d()},value:L,onChange:T,onFocus:()=>l({type:fe.FocusInputSearch}),inputClassName:"search"===v?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&m&&m({cityId:i.selectedLocation.id,keyword:L})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&h()),i.autoCompleteDisabled&&!i.isMobile&&E.default.createElement(Oe,{onClick:()=>{m({cityId:i.selectedLocation.id,keyword:L})}}))}const Ie=()=>E.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},E.default.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"})),Te=()=>E.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},E.default.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"})),je=()=>E.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},E.default.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"})),Me=()=>E.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},E.default.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"})),Re=w.default.header`
224
224
  display: flex;
225
225
  justify-content: space-between;
226
226
  padding: 12px 24px;
@@ -250,7 +250,7 @@
250
250
  ${c.MediaQueries.tdUp} {
251
251
  --rowGap: 8px;
252
252
  }
253
- `,_e=w.default.ul`
253
+ `,$e=w.default.ul`
254
254
  --gap: 16px;
255
255
  ${c.MediaQueries.tdUp} {
256
256
  --gap: 8px;
@@ -272,7 +272,7 @@
272
272
  ${c.MediaQueries.tdUp} {
273
273
  grid-template-columns: 1fr 1fr;
274
274
  } ;
275
- `,$e=w.default(s.Text)`
275
+ `,_e=w.default(s.Text)`
276
276
  margin-top: 12px;
277
277
  margin-bottom: 8px;
278
278
  cursor: pointer;
@@ -318,13 +318,13 @@
318
318
  `,He=w.default.figure`
319
319
  max-width: var(--graphicSize);
320
320
  min-width: var(--graphicSize);
321
- `,ze=w.default.svg`
321
+ `,Ke=w.default.svg`
322
322
  margin: 0 auto;
323
323
  display: block;
324
- `,Ke=w.default.div`
324
+ `,ze=w.default.div`
325
325
  display: grid;
326
326
  place-items: center;
327
- `,Ge={doctors:({width:e,height:t})=>E.default.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},E.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),E.default.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"})),E.default.createElement("defs",null,E.default.createElement("clipPath",{id:"clip0_14712_400114"},E.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>E.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),E.default.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"}))},Ze=({type:e,item:a,imageUrl:i,className:o,onClickItem:l})=>{const n=t.useMemo((()=>{const t=Ge[e]||D;return E.default.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return E.default.createElement(De,{onClick:()=>l&&l(a),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||l&&l(a)},tabIndex:0,role:"button",className:o},E.default.createElement(He,null,"hospitals"===e?E.default.createElement(ze,{width:"12",height:"16",viewBox:"0 0 12 16"},E.default.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"})):E.default.createElement(Be,{type:e},i?E.default.createElement("img",{src:i,width:32,height:"services"===e?32:24,loading:"lazy"}):n)),E.default.createElement(Ve,{color:r.theme.colors.gray800,size:"p3"},a.name))},Ue=({type:e,data:i,state:l,dispatch:n,itemsToShow:c,itemsToShowDesktop:d,isMobile:u,isLoading:p,keyword:h,isNavResultItem:g})=>{const[f,m]=t.useState(!1),{t:C,locale:b}=a.useTranslations(),{selectedLocation:y,searchKeywords:v}=l,x=t.useMemo((()=>o.LOCALIZED_SLUGS[b]),[b]),S="ms-MY"===b,w=t.useMemo((()=>({doctors:{name:C("booking.searchPopup.doctors"),icon:E.default.createElement(Ie,null),slug:x.DOCTOR},services:{name:C("booking.searchPopup.services"),icon:E.default.createElement(Te,null),slug:x.SERVICE},hospitals:{name:C("booking.searchPopup.hospitals"),icon:E.default.createElement(je,null),slug:x.HOSPITAL},specialties:{name:C("booking.searchPopup.specialties"),icon:E.default.createElement(Me,null),slug:x.SPECIALTIES}})),[e,x]),O=t.useMemo((()=>w[e].slug),[w]),k=u?c:d;function I(t){let a="";switch(e){case"specialties":a=`/${y.slug}/${w.doctors.slug}/${t.slug}`;break;case"services":a=`/${y.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":a=`/${O}/${t.slug}-${t.id}`}a&&n({type:fe.SelectSearchResult,payload:{name:t.name,url:a}})}function T(t){return E.default.createElement(Ze,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return E.default.createElement("section",null,E.default.createElement(Re,null,E.default.createElement(Ae,null,w[e].icon,E.default.createElement(Ne,null,w[e].name)),(h.trim().length<=he[b]||S)&&E.default.createElement(Pe,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${y.slug}/${O}`}t&&n({type:fe.NavigateTo,payload:t})}},E.default.createElement(s.Text,{size:"p3",color:r.theme.colors.primaryBase},C("booking.searchPopup.seeAll")))),(p||i&&i.length>0)&&E.default.createElement(Fe,null,E.default.createElement(_e,null,p&&Array(2).fill(void 0).map(((t,a)=>E.default.createElement(De,{key:e+"loading"+a},E.default.createElement(He,null,E.default.createElement(Ke,null,E.default.createElement(L.default,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),E.default.createElement(L.default,{width:120,height:24})))),!p&&i&&i.length>0&&i.slice(0,k).map(T)),E.default.createElement(_e,{isShown:f,isMore:!0},i.slice(k,-1).map(T)),"specialties"===e&&k<i.length&&!p&&E.default.createElement("button",{onClick:()=>m(!f)},E.default.createElement($e,{size:"p3",color:r.theme.colors.primaryBase},C(f?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(k<i.length||S)&&!p&&h.trim().length>he[b]&&E.default.createElement("button",{onClick:function(){const{slug:t}=w[e],a=`/${y.slug}/${t}?q=${v}`;n({type:fe.NavigateTo,payload:a})}},E.default.createElement($e,{size:"p3",color:r.theme.colors.primaryBase},C(`booking.searchPopup.searchIn.${e}`,{name:h})))),!p&&0===(null==i?void 0:i.length)&&E.default.createElement(Fe,null,E.default.createElement(s.Text,{size:"sm",color:r.theme.colors.gray400},C("booking.searchBar.noResults"))))},Qe=w.default.section`
327
+ `,Ge={doctors:({width:e,height:t})=>E.default.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},E.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),E.default.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"})),E.default.createElement("defs",null,E.default.createElement("clipPath",{id:"clip0_14712_400114"},E.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>E.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),E.default.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"}))},Ze=({type:e,item:a,imageUrl:i,className:o,onClickItem:l})=>{const n=t.useMemo((()=>{const t=Ge[e]||D;return E.default.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return E.default.createElement(De,{onClick:()=>l&&l(a),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||l&&l(a)},tabIndex:0,role:"button",className:o},E.default.createElement(He,null,"hospitals"===e?E.default.createElement(Ke,{width:"12",height:"16",viewBox:"0 0 12 16"},E.default.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"})):E.default.createElement(Be,{type:e},i?E.default.createElement("img",{src:i,width:32,height:"services"===e?32:24,loading:"lazy"}):n)),E.default.createElement(Ve,{color:r.theme.colors.gray800,size:"p3"},a.name))},Ue=({type:e,data:i,state:l,dispatch:n,itemsToShow:c,itemsToShowDesktop:d,isMobile:u,isLoading:p,keyword:h,isNavResultItem:g})=>{const[f,m]=t.useState(!1),{t:C,locale:b}=a.useTranslations(),{selectedLocation:y,searchKeywords:v}=l,x=t.useMemo((()=>o.LOCALIZED_SLUGS[b]),[b]),S="ms-MY"===b,w=t.useMemo((()=>({doctors:{name:C("booking.searchPopup.doctors"),icon:E.default.createElement(Ie,null),slug:x.DOCTOR},services:{name:C("booking.searchPopup.services"),icon:E.default.createElement(Te,null),slug:x.SERVICE},hospitals:{name:C("booking.searchPopup.hospitals"),icon:E.default.createElement(je,null),slug:x.HOSPITAL},specialties:{name:C("booking.searchPopup.specialties"),icon:E.default.createElement(Me,null),slug:x.SPECIALTIES}})),[e,x]),O=t.useMemo((()=>w[e].slug),[w]),k=u?c:d;function I(t){let a="";switch(e){case"specialties":a=`/${y.slug}/${w.doctors.slug}/${t.slug}`;break;case"services":a=`/${y.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":a=`/${O}/${t.slug}-${t.id}`}a&&n({type:fe.SelectSearchResult,payload:{name:t.name,url:a}})}function T(t){return E.default.createElement(Ze,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return E.default.createElement("section",null,E.default.createElement(Re,null,E.default.createElement(Ae,null,w[e].icon,E.default.createElement(Ne,null,w[e].name)),(h.trim().length<=he[b]||S)&&E.default.createElement(Pe,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${y.slug}/${O}`}t&&n({type:fe.NavigateTo,payload:t})}},E.default.createElement(s.Text,{size:"p3",color:r.theme.colors.primaryBase},C("booking.searchPopup.seeAll")))),(p||i&&i.length>0)&&E.default.createElement(Fe,null,E.default.createElement($e,null,p&&Array(2).fill(void 0).map(((t,a)=>E.default.createElement(De,{key:e+"loading"+a},E.default.createElement(He,null,E.default.createElement(ze,null,E.default.createElement(L.default,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),E.default.createElement(L.default,{width:120,height:24})))),!p&&i&&i.length>0&&i.slice(0,k).map(T)),E.default.createElement($e,{isShown:f,isMore:!0},i.slice(k,-1).map(T)),"specialties"===e&&k<i.length&&!p&&E.default.createElement("button",{onClick:()=>m(!f)},E.default.createElement(_e,{size:"p3",color:r.theme.colors.primaryBase},C(f?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(k<i.length||S)&&!p&&h.trim().length>he[b]&&E.default.createElement("button",{onClick:function(){const{slug:t}=w[e],a=`/${y.slug}/${t}?q=${v}`;n({type:fe.NavigateTo,payload:a})}},E.default.createElement(_e,{size:"p3",color:r.theme.colors.primaryBase},C(`booking.searchPopup.searchIn.${e}`,{name:h})))),!p&&0===(null==i?void 0:i.length)&&E.default.createElement(Fe,null,E.default.createElement(s.Text,{size:"sm",color:r.theme.colors.gray400},C("booking.searchBar.noResults"))))},Qe=w.default.section`
328
328
  background-color: white;
329
329
  border-radius: 4px;
330
330
  position: absolute;
@@ -477,7 +477,7 @@
477
477
  line-height: 22px;
478
478
  cursor: pointer;
479
479
  }
480
- `;const ut=({state:e,type:i,results:o,location:l,isLoading:n,typeInformation:c,dispatch:d})=>{const{t:u}=a.useTranslations(),{selectedLocation:p}=e,h=t.useMemo((()=>c[i].slug),[c,i]);return E.default.createElement(st,null,E.default.createElement(rt,null,E.default.createElement("div",{className:"title"},u("booking.searchResult.description",{search_type:c[i].name,search_location:l})),o.length>0&&E.default.createElement("div",{className:"btn-see-all",onClick:()=>{const e=`/${p.slug}/${h}`;e&&d({type:at.NavigateTo,payload:e})}},u("home.seeAll"))),E.default.createElement(ct,null,n&&Array(3).fill(void 0).map(((e,t)=>E.default.createElement(dt,{key:i+"loading"+t,className:2===t?"last-item":""},E.default.createElement("div",{className:"image-item"},E.default.createElement(g.Skeleton,{height:48,circle:!0,mb:"xl",animate:!0})),E.default.createElement("div",{className:"infor"},E.default.createElement("div",{className:"title"},E.default.createElement(g.Skeleton,{height:8,mt:10,radius:"xl",animate:!0})),E.default.createElement("div",{className:"description"},E.default.createElement("div",{className:"sub-description"},E.default.createElement(g.Skeleton,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!n&&o&&o.length>0&&E.default.createElement(E.default.Fragment,null,o.map(((e,t)=>{var a,l;const n=o.length>4&&3===t||o.length<=4&&t===o.length-1;let s="";return"hospital"===i&&(s=(null==e?void 0:e.address)||""),"doctor"===i&&(s=(null===(a=null==e?void 0:e.specialties)||void 0===a?void 0:a.join(", "))||""),"service"===i&&(s=(null===(l=null==e?void 0:e.organization)||void 0===l?void 0:l.name)||""),t>=4?E.default.createElement(E.default.Fragment,null):E.default.createElement(dt,{key:e.id,className:n?"last-item":"",onClick:()=>(e=>{let t="";switch(i){case"service":t=`/${p.slug}/${h}/${e.slug}`;break;case"doctor":case"hospital":t=`/${h}/${e.slug}-${e.id}`}t&&d({type:at.NavigateTo,payload:t})})(e)},E.default.createElement("div",{className:"image-item"},E.default.createElement("img",{src:e.logo||e.avatar,alt:e.name})),E.default.createElement("div",{className:"infor"},E.default.createElement("div",{className:"title"},e.name),E.default.createElement("div",{className:"description"},c[i].icon,E.default.createElement("div",{className:"sub-description"},s))))}))),!n&&0===(null==o?void 0:o.length)&&E.default.createElement(s.Text,{size:"sm",color:r.theme.colors.gray400},u("booking.searchBar.noResults"))))},pt=w.default.div`
480
+ `;const ut=({state:e,type:i,results:o,location:l,isLoading:n,typeInformation:c,dispatch:d})=>{const{t:u}=a.useTranslations(),{selectedLocation:p}=e,h=t.useMemo((()=>c[i].slug),[c,i]);return E.default.createElement(st,null,E.default.createElement(rt,null,E.default.createElement("div",{className:"title"},u("booking.searchResult.description",{search_type:c[i].name,search_location:l})),o.length>0&&E.default.createElement("div",{className:"btn-see-all",onClick:()=>{let t="";("doctor"===i||"hospital"===i)&&e.selectedSpecialty.id>0&&(t=`?specialtyId=${e.selectedSpecialty.id}`);const a=`/${p.slug}/${h}${t}`;a&&d({type:at.NavigateTo,payload:a})}},u("home.seeAll"))),E.default.createElement(ct,null,n&&Array(3).fill(void 0).map(((e,t)=>E.default.createElement(dt,{key:i+"loading"+t,className:2===t?"last-item":""},E.default.createElement("div",{className:"image-item"},E.default.createElement(g.Skeleton,{height:48,circle:!0,mb:"xl",animate:!0})),E.default.createElement("div",{className:"infor"},E.default.createElement("div",{className:"title"},E.default.createElement(g.Skeleton,{height:8,mt:10,radius:"xl",animate:!0})),E.default.createElement("div",{className:"description"},E.default.createElement("div",{className:"sub-description"},E.default.createElement(g.Skeleton,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!n&&o&&o.length>0&&E.default.createElement(E.default.Fragment,null,o.map(((e,t)=>{var a,l;const n=o.length>4&&3===t||o.length<=4&&t===o.length-1;let s="";return"hospital"===i&&(s=(null==e?void 0:e.address)||""),"doctor"===i&&(s=(null===(a=null==e?void 0:e.specialties)||void 0===a?void 0:a.join(", "))||""),"service"===i&&(s=(null===(l=null==e?void 0:e.organization)||void 0===l?void 0:l.name)||""),t>=4?E.default.createElement(E.default.Fragment,null):E.default.createElement(dt,{key:e.id,className:n?"last-item":"",onClick:()=>(e=>{let t="";switch(i){case"service":t=`/${p.slug}/${h}/${e.slug}`;break;case"doctor":case"hospital":t=`/${h}/${e.slug}-${e.id}`}t&&d({type:at.NavigateTo,payload:t})})(e)},E.default.createElement("div",{className:"image-item"},E.default.createElement("img",{src:e.logo||e.avatar,alt:e.name})),E.default.createElement("div",{className:"infor"},E.default.createElement("div",{className:"title"},e.name),E.default.createElement("div",{className:"description"},c[i].icon,E.default.createElement("div",{className:"sub-description"},s))))}))),!n&&0===(null==o?void 0:o.length)&&E.default.createElement(s.Text,{size:"sm",color:r.theme.colors.gray400},u("booking.searchBar.noResults"))))},pt=w.default.div`
481
481
  position: relative;
482
482
 
483
483
  ${c.MediaQueries.mbDown} {
@@ -555,7 +555,7 @@
555
555
  &[data-is-denied='true'] {
556
556
  cursor: not-allowed;
557
557
  }
558
- `;w.default(_)`
558
+ `;w.default($)`
559
559
  width: 12px;
560
560
  height: 18px;
561
561
  `;const ft=()=>E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},E.default.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"})),mt=()=>E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},E.default.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"})),Ct=()=>E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},E.default.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"})),bt=()=>E.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},E.default.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"})),yt=({state:e,isMobile:i,debouncedFetchSearchResults:l,selectedLocation:n,onSpecialtyClick:r,dispatch:c})=>{var d;const{t:u,locale:h}=a.useTranslations(),f=t.useRef(null),m=t.useMemo((()=>o.LOCALIZED_SLUGS[h]),[h]),C=t.useMemo((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:i?"border: 1px solid #d9d9d9":"none",height:i?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:i?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[i]),b=t.useCallback((function(e){console.log(e)}),[l,c]);return p.useOutsideClick(f,(()=>{c({type:at.ClickOutsideInputSpecialty})})),E.default.createElement(pt,{ref:f},E.default.createElement(g.Input.Wrapper,null,E.default.createElement(g.Input,{size:i?"md":"lg",placeholder:u("booking.searchPopup.specialties"),value:(null===(d=null==e?void 0:e.selectedSpecialty)||void 0===d?void 0:d.name)||"",rightSection:E.default.createElement(I,null),styles:C,onFocus:()=>c({type:at.FocusInputSpecialty}),onChange:e=>{b(e.target.value)}})),"specialty"===e.focused&&E.default.createElement(ht,null,E.default.createElement(gt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{r&&r({name:u("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:m.SPECIALTIES})}},E.default.createElement("div",{className:"image-item"},E.default.createElement(bt,null)),E.default.createElement(s.Text,{size:"md"},u("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>E.default.createElement(gt,{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==n?void 0:n.id)===e.id},E.default.createElement("div",{className:"image-item"},E.default.createElement("img",{src:e.thumbnail,alt:e.name})),E.default.createElement(s.Text,{size:"md"},e.name))))))},vt=({state:e,type:i,isMobile:o,isLoading:l,initalSearchValue:n,typeInformation:s,debouncedFetchSearchResults:r,trackingAttributes:c,focusSearchInput:d,onSearch:u,dispatch:h})=>{var f;const{t:m}=a.useTranslations(),b=t.useRef(null),y=t.useMemo((()=>c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}),[c]),v=t.useMemo((()=>"doctor"===i?m("booking.searchBar.placeholder.doctor"):"service"===i?m("booking.searchBar.placeholder.service"):"hospital"===i?m("booking.searchBar.placeholder.hospital"):"specialty"===i?m("booking.searchBar.placeholder.specialty"):""),[i]),x=t.useMemo((()=>({root:{flex:1}})),[]),S=t.useMemo((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),w=t.useMemo((()=>({input:{color:"#262626"}})),[]);p.useOutsideClick(b,(()=>{h({type:at.ClickOutsideInputSearch})}));const L=t.useCallback((function(t){h({type:at.ChangeInputSearch,payload:t}),"function"!=typeof u&&(t.trim().length>et[e.locale]||n||0===t.trim().length?r(t.trim(),e,i):(r.cancel(),h({type:at.DisplayInitialSearchResults})))}),[h,e,i]),O=t.useCallback((function(e){h({type:at.SelectSpecialty,payload:e}),d()}),[h]);return E.default.createElement(lt,{ref:b},"specialty"===i?E.default.createElement(g.Input.Wrapper,{styles:x},E.default.createElement(g.Input,{icon:E.default.createElement(C.Icon.Search,null),size:o?"md":"lg",placeholder:v,styles:w,value:e.searchKeywords,onFocus:()=>h({type:at.FocusInputSearchSpecialty}),onChange:e=>{L(e.target.value)}})):E.default.createElement(E.default.Fragment,null,"service"===i?E.default.createElement(g.Input.Wrapper,{styles:x},E.default.createElement(g.Input,{icon:E.default.createElement(C.Icon.Search,null),size:o?"md":"lg",name:"search-results",placeholder:v,onFocus:()=>h({type:at.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{L(e.target.value)}})):E.default.createElement(E.default.Fragment,null,o?E.default.createElement(E.default.Fragment,null,E.default.createElement(yt,{state:e,isMobile:o,dispatch:h,debouncedFetchSearchResults:r,onSpecialtyClick:O}),E.default.createElement(g.Input.Wrapper,{styles:x},E.default.createElement(g.Input,{icon:E.default.createElement(C.Icon.Search,null),size:"md",placeholder:v,value:e.searchKeywords,name:"search-results",onFocus:()=>h({type:at.FocusInputSearch}),onChange:e=>{L(e.target.value)}}))):E.default.createElement(g.Input.Wrapper,{styles:x},E.default.createElement(g.Input,Object.assign({icon:E.default.createElement(C.Icon.Search,null),size:"lg",placeholder:v,styles:S,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{L(e.target.value)},onFocus:()=>h({type:at.FocusInputSearch})},y,{rightSection:E.default.createElement(yt,{state:e,isMobile:o,dispatch:h,debouncedFetchSearchResults:r,onSpecialtyClick:O})})))),"search"===e.focused&&E.default.createElement(nt,null,E.default.createElement(ut,{type:i,state:e,results:(null===(f=e.searchResults)||void 0===f?void 0:f[i])||[],location:e.selectedLocation.name,dispatch:h,isLoading:l,typeInformation:s}))))},xt=w.default.div`
@@ -618,7 +618,7 @@
618
618
  &[data-is-denied='true'] {
619
619
  cursor: not-allowed;
620
620
  }
621
- `,wt=w.default(_)`
621
+ `,wt=w.default($)`
622
622
  width: 12px;
623
623
  height: 18px;
624
624
  `,Lt=({state:e,isMobile:i,debouncedFetchCitiesByKeyword:l,selectedLocation:n,trackingAttributes:c,onLocationClick:d,dispatch:u})=>{const{t:h,locale:f}=a.useTranslations(),m=t.useRef(null),C=t.useMemo((()=>c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}),[c]),b=t.useCallback((function(t){u({type:at.ChangeInputLocation,payload:t}),t.trim().length>et[e.locale]?l(t.trim()):(l.cancel(),u({type:at.DisplayInitialCities}))}),[l,u]);return p.useOutsideClick(m,(()=>{u({type:at.ClickOutsideInputLocation})})),E.default.createElement(xt,{ref:m},E.default.createElement(g.Input.Wrapper,null,E.default.createElement(g.Input,Object.assign({size:i?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>u({type:at.FocusInputLocation}),onChange:e=>{b(e.target.value)}},C))),"location"===e.focused&&E.default.createElement(Et,null,E.default.createElement(St,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;d&&d({name:h("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[f])||void 0===e?void 0:e.ALL})}},E.default.createElement(wt,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},h("booking.searchBar.allLocations"))),e.cities.map((e=>E.default.createElement(St,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),d&&d(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==n?void 0:n.id)===e.id},E.default.createElement(wt,{color:r.theme.colors.neutral400}),E.default.createElement(s.Text,{size:"md"},e.name))))))},Ot=w.default.div`
@@ -755,4 +755,4 @@
755
755
  background: rgba(255, 255, 255, 0.64);
756
756
  backdrop-filter: blur(12px);
757
757
  border-bottom: 1px solid ${r.theme.colors.neutral100};
758
- `,Ft=({currentTab:e,isMobile:i,setCurrentTab:o})=>{const{t:l}=a.useTranslations(),n=t.useMemo((()=>({root:{overflowY:i?"hidden":"initial",overflowX:i?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:i?"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:i?"14px":"16px",fontWeight:600,lineHeight:i?"22px":"24px"}})),[i]);return E.default.createElement(Pt,{className:"booking-search-tab"},E.default.createElement(C.Container,null,E.default.createElement(g.Tabs,{value:e,onTabChange:e=>{o(e)},styles:n},E.default.createElement(g.Tabs.List,null,E.default.createElement(g.Tabs.Tab,{value:"hospital"},l("booking.searchPopup.hospitals")),E.default.createElement(g.Tabs.Tab,{value:"doctor"},l("booking.searchPopup.doctors")),E.default.createElement(g.Tabs.Tab,{value:"service"},l("booking.searchPopup.services")),E.default.createElement(g.Tabs.Tab,{value:"specialty"},l("booking.searchPopup.specialties"))))))};var _t;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(_t||(_t={}));var $t;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}($t||($t={}));var Dt=Object.freeze({__proto__:null,get RedirectType(){return $t}});exports.BookingSearchBar=({isMobile:i,careApiDomain:l,geoLocationPermission:n,geoLocationCoordinates:s,initialSelectedCity:r,initialSearchValue:c="",careFrontDomain:d="/care",isDebug:u=!1,askForGeolocationPermission:p=!1,gaTrackingSearchBar:g,gaTrackingLocationSearch:f,autoCompleteDisabled:m=!1,inputSearchPlaceholder:C="",isOptionAllLocation:b=!1,hideResults:y=[],isNavResultItem:v=!0,routerPush:x,onGeoLocationPermissionChange:w,onSearch:L,onChangeLocation:O})=>{const{t:k,locale:I}=a.useTranslations(),N=t.useRef(null),F=t.useRef(null),[_,$]=t.useState(void 0),[D,B]=t.useState(!1),{geoLocationPermission:V,geoLocationCoordinates:H,requestGeoLocation:z}=T(),[K,G]=t.useReducer(Ce,ge,(e=>Object.assign(Object.assign({},e),{isDebug:u,isMobile:i,geoLocationPermission:n||V||"unset",geoLocationCoordinates:s||H||null,searchKeywords:c,initialSelectedCity:r||null,selectedLocation:r||e.selectedLocation||null,searchLocationKeywords:(null==r?void 0:r.name)||e.searchLocationKeywords,autoCompleteDisabled:m,inputSearchPlaceholder:C,locale:I}))),{navigateTo:U,focused:Q,isLoadingCities:q,cities:Y,searchKeywords:W,geoLocationPermission:J,selectedLocation:X,initialSelectedCity:ee,defaultCity:te,searchResults:ae,isLoadingSearchResults:ie,isMobileModalOpened:oe,inputSearchPlaceholder:le}=K,{fetchCitiesByLocation:se,fetchCitiesByKeyword:re,fetchSearchResults:ce}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const l=t.useCallback((function(t,o={}){const l=`${a}${t}`;return e({type:fe.FetchCitiesStart}),fetch(Ye(l,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:fe.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const n=[l(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&n.push(l(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(n).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:fe.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return l(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:fe.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,l){const n=`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:fe.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:c}=l;let d="";if(!r||!s)return void e({type:fe.FetchSearchResultsFinish});r.id===o.ID_OPTION_CURRENT_LOCATION?c||(d=s.id):d=r.id===o.ID_OPTION_ALL_LOCATION?"":r.id;const u=(null==c?void 0:c.lat)||"",p=(null==c?void 0:c.lng)||"";return fetch(Ye(n,{domain:a,searchType:"global",keyword:t.trim().length>he[i]?t.trim():"",city:d===o.ID_OPTION_CURRENT_LOCATION?"":d,lat:u,lng:p},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:fe.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:fe.FetchSearchResultsFinish})))}),[i,a,e])}}({dispatch:G,locale:I,careApiDomain:l}),de=t.useMemo((()=>{var e;return{id:o.ID_OPTION_CURRENT_LOCATION,name:k("booking.searchBar.currentLocation"),slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.CURRENT}}),[k,I]),ue=t.useMemo((()=>S.default(re,400)),[re]),me=t.useMemo((()=>S.default(ce,400)),[ce]);t.useEffect((()=>{""!==c&&c!==K.searchKeywords&&G({type:fe.UpdateInitialSearchValue,payload:c})}),[c]),t.useEffect((()=>{p&&(null==X?void 0:X.id)===o.ID_OPTION_CURRENT_LOCATION&&"unset"===J&&z()}),[p,X,J]),t.useEffect((()=>{n||J===V||("granted"===V&&H?G({type:fe.GrantGeoLocationPermission,payload:H}):"denied"===V&&G({type:fe.DenyGeoLocationPermission}))}),[J,V,H,n]),t.useEffect((()=>{U&&(x?x(U):window.location.href=`${d}${U}`)}),[U]);const be=t.useCallback((function(){G({type:fe.SelectCurrentLocation,payload:de})}),[k,G]);t.useEffect((()=>{var e;"denied"===J||ee||G({type:fe.SelectLocation,payload:{name:k("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.ALL}}),w&&w(J,K.geoLocationCoordinates),i&&"granted"===J&&X&&G({type:fe.FocusInputSearch}),se({coordinates:K.geoLocationCoordinates})}),[J]),t.useEffect((()=>{X&&te&&ce(K.searchKeywords,K)}),[X,te]),t.useEffect((()=>{C!==le&&G({type:fe.SetInputSearchPlaceholder,payload:C})}),[C,le]),t.useEffect((()=>{oe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[oe]);const ye=t.useCallback((function(e){"ms-MY"===I&&B(!0),G({type:fe.SelectLocation,payload:e}),"ms-MY"!==I&&Ee(),O&&O(e)}),[k,G]);function ve(){"ms-MY"===I&&B(!0),i&&"granted"!==K.geoLocationPermission?z():(be(),"ms-MY"!==I&&Ee())}function xe(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Se(){G({type:fe.CloseMobileModal})}function we(){return"location"!==Q?null:E.default.createElement(Z,{isLoading:q,cities:Y,onLocationClick:ye,onCurrentLocationClick:ve,isLocationLoading:q,geoLocationPermission:J,selectedLocation:X,isOptionAllLocation:b})}function Le(){return"search"!==Q?null:K.autoCompleteDisabled?i?E.default.createElement(Oe,{onClick:()=>{L({cityId:K.selectedLocation.id,keyword:W}),Se()}}):null:E.default.createElement(qe,{data:ae,state:K,dispatch:G,isMobile:!1,keyword:W,isLoading:ie,hideResults:y,isNavResultItem:v})}function Ie(){return E.default.createElement(ke,{isMobile:i,state:K,dispatch:G,debouncedFetchCitiesByKeyword:ue,debouncedFetchSearchResults:me,focusLocationInput:xe,focusSearchInput:Ee,renderLocationResults:we,renderSearchResults:Le,trackingAttributes:g,locationTrackingAttributes:f,onSearch:L,initalSearchValue:c})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;$(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[$]),t.useEffect((()=>{if(X&&D&&"ms-MY"===I){const e=`/${X.slug}/hospital`;G({type:fe.NavigateTo,payload:e}),B(!1)}}),[D,I,X]),i?E.default.createElement(E.default.Fragment,null,E.default.createElement(P,null),E.default.createElement(A,{ref:F}),E.default.createElement(M,{id:"booking-search-bar",ref:N,"data-is-modal":i&&oe,style:{"--mobile-care-searchbar-height":oe&&_?`${_}px`:"100%"}},oe?E.default.createElement(E.default.Fragment,null,E.default.createElement(R,null,E.default.createElement(pe,{headingText:k("booking.searchBar.searchButton"),onLeftClick:Se}),Ie()),we(),Le()):E.default.createElement(ne,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){F.current&&F.current.focus(),G({type:fe.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:Q,value:W,trackingAttributes:g,inputSearchPlaceholder:C}))):E.default.createElement(j,{id:"booking-search-bar",ref:N},Ie())},exports.BookingSearchBarV2=({isMobile:e,careApiDomain:i,geoLocationPermission:l,geoLocationCoordinates:n,initialSelectedCity:s,initialSearchValue:r="",careFrontDomain:c="/care",isDebug:d=!1,gaTrackingSearchBar:u,gaTrackingLocationSearch:f,autoCompleteDisabled:m=!1,inputSearchPlaceholder:C="",routerPush:b,onGeoLocationPermissionChange:y,onChangeLocation:v})=>{const{locale:x,t:w}=a.useTranslations(),L=t.useRef(null),O=t.useRef(null),[k,I]=t.useState("hospital"),{geoLocationPermission:j,geoLocationCoordinates:M}=T(),[R,A]=t.useReducer(ot,tt,(t=>Object.assign(Object.assign({},t),{isDebug:d,isMobile:e,geoLocationPermission:l||j||"unset",geoLocationCoordinates:n||M||null,searchKeywords:r,initialSelectedCity:s||null,selectedLocation:s||t.selectedLocation||null,searchLocationKeywords:(null==s?void 0:s.name)||t.searchLocationKeywords,autoCompleteDisabled:m,inputSearchPlaceholder:C,locale:x}))),{navigateTo:N,focusedSpecialty:P,searchKeywords:F,geoLocationPermission:_,selectedLocation:$,selectedSpecialty:D,initialSelectedCity:B,searchResults:V,isLoadingSearchResults:H}=R,{fetchCitiesByLocation:z,fetchCitiesByKeyword:K,fetchSearchResults:G,fetchAllSpecialties:Z,fetchPopularKeys:U}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const l=t.useCallback((function(t,o={}){const l=`${a}${t}`;return e({type:at.FetchCitiesStart}),fetch(Ye(l,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:at.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const n=[l(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&n.push(l(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(n).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:at.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return l(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:at.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,l,n,s){const r="specialty"===n?`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`:`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:at.FetchSearchResultsStart});const{selectedLocation:c,geoLocationCoordinates:d,selectedSpecialty:u}=l;let p="";if(!c)return void e({type:at.FetchSearchResultsFinish});p=c.id===o.ID_OPTION_ALL_LOCATION?"":c.id;const g=(null==d?void 0:d.lat)||"",f=(null==d?void 0:d.lng)||"",m=(null==u?void 0:u.id)>0?null==u?void 0:u.id:"";return fetch(Ye(r,{domain:a,searchType:n||"global",keyword:t.trim().length>et[i]?t.trim():"",city:p===o.ID_OPTION_CURRENT_LOCATION?"":p,lat:g,lng:f,specialty_id:m},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:at.FetchSearchResultsComplete,payload:{key:n,searches:t.searches||t.specialties||[]}}),s&&e({type:at.UpdateInitialSearchResults,payload:{key:n,searches:t.searches||t.specialties||[]}})})).catch((e=>{console.log("error loading search results",{url:r,error:e})})).finally((()=>e({type:at.FetchSearchResultsFinish})))}),[i,a,e]),fetchAllSpecialties:t.useCallback((function(){const t=`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`;return fetch(Ye(t,{domain:a,searchType:""},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:at.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:t,error:e})}))}),[i,a,e]),fetchPopularKeys:t.useCallback((function(t){const o=`${a}${h.PATHS.GET_SEARCH_POPULAR_KEY}`;return fetch(Ye(o,{domain:a,searchType:_t[t]},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:at.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,a,e])}}({dispatch:A,locale:x,careApiDomain:i}),Q=t.useMemo((()=>o.LOCALIZED_SLUGS[x]),[x]),q=t.useMemo((()=>({doctor:{name:w("booking.searchPopup.doctors"),icon:E.default.createElement(ft,null),slug:Q.DOCTOR},service:{name:w("booking.searchPopup.services"),icon:E.default.createElement(mt,null),slug:Q.SERVICE},hospital:{name:w("booking.searchPopup.hospitals"),icon:E.default.createElement(Ct,null),slug:Q.HOSPITAL},specialty:{name:w("booking.searchPopup.specialties"),icon:E.default.createElement(bt,null),slug:Q.SPECIALTIES}})),[k]),Y=t.useMemo((()=>S.default(K,400)),[K]),W=t.useMemo((()=>S.default(G,400)),[G]),J=t.useCallback((function(e){A({type:at.SelectLocation,payload:e}),X(),v&&v(e)}),[w,A]);function X(){var e;L.current&&(null===(e=L.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return p.useOutsideClick(O,(()=>{A({type:at.ClickOutsideInputSearchSpecialty})})),t.useEffect((()=>{var t;"denied"===_||B||A({type:at.SelectLocation,payload:{name:w("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(t=o.LOCALIZED_SLUGS[x])||void 0===t?void 0:t.ALL}}),y&&y(_,R.geoLocationCoordinates),e&&"granted"===_&&$&&A({type:at.FocusInputSearch}),z({coordinates:R.geoLocationCoordinates})}),[_]),t.useEffect((()=>{A({type:at.SelectSpecialty,payload:{name:w("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:Q.SPECIALTIES}})}),[]),t.useEffect((()=>{Z()}),[]),t.useEffect((()=>{U(k)}),[k]),t.useEffect((()=>{N&&(b?b(N):window.location.href=`${c}${N}`)}),[N]),t.useEffect((()=>{G(R.searchKeywords,R,k,!0)}),[$,D,k]),E.default.createElement(We,{ref:L},E.default.createElement(Ft,{currentTab:k,setCurrentTab:I,isMobile:e}),E.default.createElement(Je,{className:"booking-search-container"},E.default.createElement(Xe,null,E.default.createElement("div",{ref:O},E.default.createElement(g.Flex,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==k&&E.default.createElement(Lt,{state:R,isMobile:e,dispatch:A,debouncedFetchCitiesByKeyword:Y,selectedLocation:$,onLocationClick:J,trackingAttributes:f}),E.default.createElement(vt,{type:k,isMobile:e,state:R,dispatch:A,debouncedFetchSearchResults:W,initalSearchValue:r,focusSearchInput:X,typeInformation:q,trackingAttributes:u,isLoading:H}),E.default.createElement(g.Button,{size:e?"md":"lg",fullWidth:e,onClick:function(){let e="";const{slug:t}=q[k];e="specialty"===k?`/${t}?q=${F}`:`/${$.slug}/${t}?q=${F}`,e&&A({type:at.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},w("booking.searchBar.searchButton"))),"specialty"!==k&&E.default.createElement(Nt,{type:k,state:R,typeInformation:q,dispatch:A}),"specialty"===k&&"search"===P&&E.default.createElement(jt,{state:R,isMobile:e,dispatch:A,specialties:(null==V?void 0:V.specialty)||[],isLoading:H})))))},exports.ChevronDown=I,exports.types=Dt;
758
+ `,Ft=({currentTab:e,isMobile:i,setCurrentTab:o})=>{const{t:l}=a.useTranslations(),n=t.useMemo((()=>({root:{overflowY:i?"hidden":"initial",overflowX:i?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:i?"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:i?"14px":"16px",fontWeight:600,lineHeight:i?"22px":"24px"}})),[i]);return E.default.createElement(Pt,{className:"booking-search-tab"},E.default.createElement(C.Container,null,E.default.createElement(g.Tabs,{value:e,onTabChange:e=>{o(e)},styles:n},E.default.createElement(g.Tabs.List,null,E.default.createElement(g.Tabs.Tab,{value:"hospital"},l("booking.searchPopup.hospitals")),E.default.createElement(g.Tabs.Tab,{value:"doctor"},l("booking.searchPopup.doctors")),E.default.createElement(g.Tabs.Tab,{value:"service"},l("booking.searchPopup.services")),E.default.createElement(g.Tabs.Tab,{value:"specialty"},l("booking.searchPopup.specialties"))))))};var $t;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}($t||($t={}));var _t;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(_t||(_t={}));var Dt=Object.freeze({__proto__:null,get RedirectType(){return _t}});exports.BookingSearchBar=({isMobile:i,careApiDomain:l,geoLocationPermission:n,geoLocationCoordinates:s,initialSelectedCity:r,initialSearchValue:c="",careFrontDomain:d="/care",isDebug:u=!1,askForGeolocationPermission:p=!1,gaTrackingSearchBar:g,gaTrackingLocationSearch:f,autoCompleteDisabled:m=!1,inputSearchPlaceholder:C="",isOptionAllLocation:b=!1,hideResults:y=[],isNavResultItem:v=!0,routerPush:x,onGeoLocationPermissionChange:w,onSearch:L,onChangeLocation:O})=>{const{t:k,locale:I}=a.useTranslations(),N=t.useRef(null),F=t.useRef(null),[$,_]=t.useState(void 0),[D,B]=t.useState(!1),{geoLocationPermission:V,geoLocationCoordinates:H,requestGeoLocation:K}=T(),[z,G]=t.useReducer(Ce,ge,(e=>Object.assign(Object.assign({},e),{isDebug:u,isMobile:i,geoLocationPermission:n||V||"unset",geoLocationCoordinates:s||H||null,searchKeywords:c,initialSelectedCity:r||null,selectedLocation:r||e.selectedLocation||null,searchLocationKeywords:(null==r?void 0:r.name)||e.searchLocationKeywords,autoCompleteDisabled:m,inputSearchPlaceholder:C,locale:I}))),{navigateTo:U,focused:Q,isLoadingCities:q,cities:Y,searchKeywords:W,geoLocationPermission:J,selectedLocation:X,initialSelectedCity:ee,defaultCity:te,searchResults:ae,isLoadingSearchResults:ie,isMobileModalOpened:oe,inputSearchPlaceholder:le}=z,{fetchCitiesByLocation:se,fetchCitiesByKeyword:re,fetchSearchResults:ce}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const l=t.useCallback((function(t,o={}){const l=`${a}${t}`;return e({type:fe.FetchCitiesStart}),fetch(Ye(l,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:fe.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const n=[l(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&n.push(l(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(n).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:fe.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return l(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:fe.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,l){const n=`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:fe.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:c}=l;let d="";if(!r||!s)return void e({type:fe.FetchSearchResultsFinish});r.id===o.ID_OPTION_CURRENT_LOCATION?c||(d=s.id):d=r.id===o.ID_OPTION_ALL_LOCATION?"":r.id;const u=(null==c?void 0:c.lat)||"",p=(null==c?void 0:c.lng)||"";return fetch(Ye(n,{domain:a,searchType:"global",keyword:t.trim().length>he[i]?t.trim():"",city:d===o.ID_OPTION_CURRENT_LOCATION?"":d,lat:u,lng:p},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:fe.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:fe.FetchSearchResultsFinish})))}),[i,a,e])}}({dispatch:G,locale:I,careApiDomain:l}),de=t.useMemo((()=>{var e;return{id:o.ID_OPTION_CURRENT_LOCATION,name:k("booking.searchBar.currentLocation"),slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.CURRENT}}),[k,I]),ue=t.useMemo((()=>S.default(re,400)),[re]),me=t.useMemo((()=>S.default(ce,400)),[ce]);t.useEffect((()=>{""!==c&&c!==z.searchKeywords&&G({type:fe.UpdateInitialSearchValue,payload:c})}),[c]),t.useEffect((()=>{p&&(null==X?void 0:X.id)===o.ID_OPTION_CURRENT_LOCATION&&"unset"===J&&K()}),[p,X,J]),t.useEffect((()=>{n||J===V||("granted"===V&&H?G({type:fe.GrantGeoLocationPermission,payload:H}):"denied"===V&&G({type:fe.DenyGeoLocationPermission}))}),[J,V,H,n]),t.useEffect((()=>{U&&(x?x(U):window.location.href=`${d}${U}`)}),[U]);const be=t.useCallback((function(){G({type:fe.SelectCurrentLocation,payload:de})}),[k,G]);t.useEffect((()=>{var e;"denied"===J||ee||G({type:fe.SelectLocation,payload:{name:k("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(e=o.LOCALIZED_SLUGS[I])||void 0===e?void 0:e.ALL}}),w&&w(J,z.geoLocationCoordinates),i&&"granted"===J&&X&&G({type:fe.FocusInputSearch}),se({coordinates:z.geoLocationCoordinates})}),[J]),t.useEffect((()=>{X&&te&&ce(z.searchKeywords,z)}),[X,te]),t.useEffect((()=>{C!==le&&G({type:fe.SetInputSearchPlaceholder,payload:C})}),[C,le]),t.useEffect((()=>{oe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[oe]);const ye=t.useCallback((function(e){"ms-MY"===I&&B(!0),G({type:fe.SelectLocation,payload:e}),"ms-MY"!==I&&Ee(),O&&O(e)}),[k,G]);function ve(){"ms-MY"===I&&B(!0),i&&"granted"!==z.geoLocationPermission?K():(be(),"ms-MY"!==I&&Ee())}function xe(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Se(){G({type:fe.CloseMobileModal})}function we(){return"location"!==Q?null:E.default.createElement(Z,{isLoading:q,cities:Y,onLocationClick:ye,onCurrentLocationClick:ve,isLocationLoading:q,geoLocationPermission:J,selectedLocation:X,isOptionAllLocation:b})}function Le(){return"search"!==Q?null:z.autoCompleteDisabled?i?E.default.createElement(Oe,{onClick:()=>{L({cityId:z.selectedLocation.id,keyword:W}),Se()}}):null:E.default.createElement(qe,{data:ae,state:z,dispatch:G,isMobile:!1,keyword:W,isLoading:ie,hideResults:y,isNavResultItem:v})}function Ie(){return E.default.createElement(ke,{isMobile:i,state:z,dispatch:G,debouncedFetchCitiesByKeyword:ue,debouncedFetchSearchResults:me,focusLocationInput:xe,focusSearchInput:Ee,renderLocationResults:we,renderSearchResults:Le,trackingAttributes:g,locationTrackingAttributes:f,onSearch:L,initalSearchValue:c})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;_(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[_]),t.useEffect((()=>{if(X&&D&&"ms-MY"===I){const e=`/${X.slug}/hospital`;G({type:fe.NavigateTo,payload:e}),B(!1)}}),[D,I,X]),i?E.default.createElement(E.default.Fragment,null,E.default.createElement(P,null),E.default.createElement(A,{ref:F}),E.default.createElement(M,{id:"booking-search-bar",ref:N,"data-is-modal":i&&oe,style:{"--mobile-care-searchbar-height":oe&&$?`${$}px`:"100%"}},oe?E.default.createElement(E.default.Fragment,null,E.default.createElement(R,null,E.default.createElement(pe,{headingText:k("booking.searchBar.searchButton"),onLeftClick:Se}),Ie()),we(),Le()):E.default.createElement(ne,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){F.current&&F.current.focus(),G({type:fe.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:Q,value:W,trackingAttributes:g,inputSearchPlaceholder:C}))):E.default.createElement(j,{id:"booking-search-bar",ref:N},Ie())},exports.BookingSearchBarV2=({isMobile:e,careApiDomain:i,geoLocationPermission:l,geoLocationCoordinates:n,initialSelectedCity:s,initialSearchValue:r="",initTypeSearch:c="hospital",initSpecialty:d,careFrontDomain:u="/care",isDebug:f=!1,gaTrackingSearchBar:m,gaTrackingLocationSearch:C,autoCompleteDisabled:b=!1,inputSearchPlaceholder:y="",routerPush:v,onGeoLocationPermissionChange:x,onChangeLocation:w})=>{const{locale:L,t:O}=a.useTranslations(),k=t.useRef(null),I=t.useRef(null),[j,M]=t.useState(c),{geoLocationPermission:R,geoLocationCoordinates:A}=T(),[N,P]=t.useReducer(ot,tt,(t=>Object.assign(Object.assign({},t),{isDebug:f,isMobile:e,geoLocationPermission:l||R||"unset",geoLocationCoordinates:n||A||null,searchKeywords:r,initialSelectedCity:s||null,selectedLocation:s||t.selectedLocation||null,searchLocationKeywords:(null==s?void 0:s.name)||t.searchLocationKeywords,autoCompleteDisabled:b,inputSearchPlaceholder:y,locale:L}))),{navigateTo:F,focusedSpecialty:$,searchKeywords:_,geoLocationPermission:D,selectedLocation:B,selectedSpecialty:V,initialSelectedCity:H,searchResults:K,isLoadingSearchResults:z}=N,{fetchCitiesByLocation:G,fetchCitiesByKeyword:Z,fetchSearchResults:U,fetchAllSpecialties:Q,fetchPopularKeys:q}=function({dispatch:e,careApiDomain:a,locale:i="vi-VN"}){const l=t.useCallback((function(t,o={}){const l=`${a}${t}`;return e({type:at.FetchCitiesStart}),fetch(Ye(l,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:at.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const o={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(o.noPaging=1);const n=[l(h.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),o))];return"zh-TW"===i&&n.push(l(h.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(n).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:at.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[i,a,e]),fetchCitiesByKeyword:t.useCallback((function(t){return l(h.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:at.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,a,e]),fetchSearchResults:t.useCallback((function(t,l,n,s){const r="specialty"===n?`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`:`${a}${h.PATHS.GET_SEARCH_V2}`;e({type:at.FetchSearchResultsStart});const{selectedLocation:c,geoLocationCoordinates:d,selectedSpecialty:u}=l;let p="";if(!c)return void e({type:at.FetchSearchResultsFinish});p=c.id===o.ID_OPTION_ALL_LOCATION?"":c.id;const g=(null==d?void 0:d.lat)||"",f=(null==d?void 0:d.lng)||"",m=(null==u?void 0:u.id)>0?null==u?void 0:u.id:"";return fetch(Ye(r,{domain:a,searchType:n||"global",keyword:t.trim().length>et[i]?t.trim():"",city:p===o.ID_OPTION_CURRENT_LOCATION?"":p,lat:g,lng:f,specialty_id:m},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:at.FetchSearchResultsComplete,payload:{key:n,searches:t.searches||t.specialties||[]}}),s&&e({type:at.UpdateInitialSearchResults,payload:{key:n,searches:t.searches||t.specialties||[]}})})).catch((e=>{console.log("error loading search results",{url:r,error:e})})).finally((()=>e({type:at.FetchSearchResultsFinish})))}),[i,a,e]),fetchAllSpecialties:t.useCallback((function(){const t=`${a}${h.PATHS.GET_SEARCH_SPECIALTY}`;return fetch(Ye(t,{domain:a,searchType:""},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:at.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:t,error:e})}))}),[i,a,e]),fetchPopularKeys:t.useCallback((function(t){const o=`${a}${h.PATHS.GET_SEARCH_POPULAR_KEY}`;return fetch(Ye(o,{domain:a,searchType:$t[t]},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:at.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,a,e])}}({dispatch:P,locale:L,careApiDomain:i}),Y=t.useMemo((()=>o.LOCALIZED_SLUGS[L]),[L]),W=t.useMemo((()=>({doctor:{name:O("booking.searchPopup.doctors"),icon:E.default.createElement(ft,null),slug:Y.DOCTOR},service:{name:O("booking.searchPopup.services"),icon:E.default.createElement(mt,null),slug:Y.SERVICE},hospital:{name:O("booking.searchPopup.hospitals"),icon:E.default.createElement(Ct,null),slug:Y.HOSPITAL},specialty:{name:O("booking.searchPopup.specialties"),icon:E.default.createElement(bt,null),slug:Y.SPECIALTIES}})),[j]),J=t.useMemo((()=>S.default(Z,400)),[Z]),X=t.useMemo((()=>S.default(U,400)),[U]),ee=t.useCallback((function(e){P({type:at.SelectLocation,payload:e}),te(),w&&w(e)}),[O,P]);function te(){var e;k.current&&(null===(e=k.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return p.useOutsideClick(I,(()=>{P({type:at.ClickOutsideInputSearchSpecialty})})),t.useEffect((()=>{var t;"denied"===D||H||P({type:at.SelectLocation,payload:{name:O("booking.searchBar.allLocations"),id:o.ID_OPTION_ALL_LOCATION,slug:null===(t=o.LOCALIZED_SLUGS[L])||void 0===t?void 0:t.ALL}}),x&&x(D,N.geoLocationCoordinates),e&&"granted"===D&&B&&P({type:at.FocusInputSearch}),G({coordinates:N.geoLocationCoordinates})}),[D]),t.useEffect((()=>{const e=d||{name:O("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:Y.SPECIALTIES};N.selectedSpecialty||P({type:at.SelectSpecialty,payload:e})}),[d,N.selectedSpecialty]),t.useEffect((()=>{Q()}),[]),t.useEffect((()=>{q(j)}),[j]),t.useEffect((()=>{F&&(v?v(F):window.location.href=`${u}${F}`)}),[F]),t.useEffect((()=>{U(N.searchKeywords,N,j,!0)}),[B,V,j]),E.default.createElement(We,{ref:k},E.default.createElement(Ft,{currentTab:j,setCurrentTab:M,isMobile:e}),E.default.createElement(Je,{className:"booking-search-container"},E.default.createElement(Xe,null,E.default.createElement("div",{ref:I},E.default.createElement(g.Flex,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==j&&E.default.createElement(Lt,{state:N,isMobile:e,dispatch:P,debouncedFetchCitiesByKeyword:J,selectedLocation:B,onLocationClick:ee,trackingAttributes:C}),E.default.createElement(vt,{type:j,isMobile:e,state:N,dispatch:P,debouncedFetchSearchResults:X,initalSearchValue:r,focusSearchInput:te,typeInformation:W,trackingAttributes:m,isLoading:z}),E.default.createElement(g.Button,{size:e?"md":"lg",fullWidth:e,onClick:function(){let e="";const{slug:t}=W[j];let a="";("doctor"===j||"hospital"===j)&&N.selectedSpecialty.id>0&&(a=`&specialtyId=${N.selectedSpecialty.id}`),e="specialty"===j?`/${t}?q=${_}${a}`:`/${B.slug}/${t}?q=${_}${a}`,e&&P({type:at.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},O("booking.searchBar.searchButton"))),"specialty"!==j&&N.popularKeys.length>0&&E.default.createElement(Nt,{type:j,state:N,typeInformation:W,dispatch:P}),"specialty"===j&&"search"===$&&E.default.createElement(jt,{state:N,isMobile:e,dispatch:P,specialties:(null==K?void 0:K.specialty)||[],isLoading:z})))))},exports.ChevronDown=I,exports.types=Dt;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-a445271a.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-2e3b19ad.js"),o=require("./useTranslations-4b98992e.js"),n=require("innertext"),i=require("./theme-7b9eadbd.js"),r=require("./index-86f1b0cb.js"),s=require("./utils-95f15c1f.js");require("@mantine/dates");var d=require("./index-20448f00.js");require("./Onboarding-34f35fb5.js");var c=require("./gAssets.js"),u=require("dayjs"),m=require("./screenSizeContext-ba4400db.js"),p=require("styled-components");require("./isProduction-db520833.js");var g=require("./index-474968d0.js");require("@mantine/hooks");var h=require("./index-1f883f80.js"),f=require("./dataTransform-f09d04a1.js"),v=require("./index-36448a05.js"),b=require("./index-4322bbe3.js"),x=require("lodash/debounce"),y=require("react-contenteditable"),w=require("./index-57461bf1.js"),C=require("./cookieHelper-f295d483.js"),E=require("react-dom"),k=require("date-fns");require("react-day-picker/DayPickerInput");var A=require("./index.styled-0d824dba.js");require("./index-ef6bf086.js"),require("lodash/throttle"),require("./types-9f151dc6.js"),require("react-hook-form"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-164da4b3.js"),require("uuid"),require("./utils-8f5e4234.js"),require("string-format");var N=require("dayjs/plugin/relativeTime"),T=require("./index-106a878a.js"),S=require("./useUniqueId-95cb1220.js");require("./translationsContext-f65343d9.js");var P=require("./routing-4cb17746.js");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function M(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var z=M(t),L=I(t),B=I(n),R=I(u),j=I(p),O=I(x),F=I(y),D=M(E),V=I(N);const U=e=>z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),z.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),_=t.createContext({}),H=({children:e,defaultParams:t})=>L.default.createElement(_.Provider,{value:{defaultParams:t}},e),W=e=>{const{data:{userInfo:a,env:{togetherBasePath:l}}}=t.useContext(s.TogetherComponentGlobalContext),{defaultParams:o}=t.useContext(_)||{},n=null==a?void 0:a.id,i=a&&"number"==typeof a.communities_interacted&&0===a.communities_interacted;return{authActionWrapper:(t,a)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),a);if(!n||i){n||C.deleteCookie(s.BEARER_TOKEN_COOKIE),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=s.getUrlToSignUp(e,r,l),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},q=j.default.div`
1
+ "use strict";var e=require("./tslib.es6-13252057.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-01a607bc.js"),o=require("./useTranslations-9c168300.js"),n=require("innertext"),i=require("./theme-06993ed5.js"),r=require("./index-f36944a7.js"),s=require("./utils-18805f78.js");require("@mantine/dates");var d=require("./index-66835c83.js");require("./Onboarding-319fc3d2.js");var c=require("./gAssets.js"),u=require("dayjs"),m=require("./screenSizeContext-080182ae.js"),p=require("styled-components");require("./isProduction-1230f05e.js");var g=require("./index-f20436f9.js");require("@mantine/hooks");var h=require("./index-e66da28a.js"),f=require("./dataTransform-a70a450b.js"),v=require("./index-070227f7.js"),b=require("./index-ed228b8a.js"),x=require("lodash/debounce"),y=require("react-contenteditable"),w=require("./index-2bdfc9e7.js"),C=require("./cookieHelper-c8e979f9.js"),E=require("react-dom"),k=require("date-fns");require("react-day-picker/DayPickerInput");var A=require("./index.styled-524e6987.js");require("./index-615e6974.js"),require("lodash/throttle"),require("./types-1bd596da.js"),require("react-hook-form"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-c77f8ec6.js"),require("uuid"),require("./utils-a5d9509f.js"),require("string-format");var N=require("dayjs/plugin/relativeTime"),T=require("./index-a13157ab.js"),S=require("./useUniqueId-5e154eee.js");require("./translationsContext-4242d047.js");var P=require("./routing-0b1910e1.js");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function M(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var z=M(t),L=I(t),B=I(n),R=I(u),j=I(p),O=I(x),F=I(y),D=M(E),V=I(N);const U=e=>z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),z.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),_=t.createContext({}),H=({children:e,defaultParams:t})=>L.default.createElement(_.Provider,{value:{defaultParams:t}},e),W=e=>{const{data:{userInfo:a,env:{togetherBasePath:l}}}=t.useContext(s.TogetherComponentGlobalContext),{defaultParams:o}=t.useContext(_)||{},n=null==a?void 0:a.id,i=a&&"number"==typeof a.communities_interacted&&0===a.communities_interacted;return{authActionWrapper:(t,a)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),a);if(!n||i){n||C.deleteCookie(s.BEARER_TOKEN_COOKIE),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=s.getUrlToSignUp(e,r,l),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},q=j.default.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
package/build/types.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-34f35fb5.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-319fc3d2.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}});
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-a445271a.js"),t=require("react"),a=require("./getDynamicHealthTool-1f78dcfa.js");exports.useHealthToolsCache=o=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield a.getDynamicHealthToolWithCache(o);l(e)}))}),[a.getDynamicHealthToolWithCache,o]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
1
+ "use strict";var e=require("./tslib.es6-13252057.js"),t=require("react"),a=require("./getDynamicHealthTool-35a9d796.js");exports.useHealthToolsCache=o=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield a.getDynamicHealthToolWithCache(o);l(e)}))}),[a.getDynamicHealthToolWithCache,o]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-a445271a.js"),t=require("react"),r=require("./cookieHelper-f295d483.js"),n=require("./useUniqueId-95cb1220.js");function i(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}exports.useFbDataLayer=n=>{const a=t.useRef("");t.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,o,u,l;if(!a.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),a.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(o=a.current)||void 0===o?void 0:o.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==n?void 0:n.id){const[e,t,a,o,c,s]=yield Promise.all([n.email?i(n.email):null,n.phone?i(n.phone):null,n.birthday?i(n.birthday.split("-").join("")):null,n.gender?"m":"f",n.city_name?i(n.city_name).then((e=>e.replace(/\s/g,""))):null,n.name?i(n.name):null]);r.getCookie("_fbc"),r.getCookie("_fbp");const d={user_id:n.id};s&&(d.fn=s),e&&(d.em=e),t&&(d.ph=t),a&&(d.db=a),c&&(d.ct=c),null===(l=null===(u=window.localStorage)||void 0===u?void 0:u.setItem)||void 0===l||l.call(u,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[n])},exports.usePrevious=e=>{const r=t.useRef(),i=t.useRef(e);return n.useInitialMount()||i.current===e||(r.current=i.current,i.current=e),r.current},exports.useRafState=e=>{const[r,n]=t.useState(e),i=t.useRef(0),a=t.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{n(e)}))}),[]);return t.useEffect((()=>()=>cancelAnimationFrame(i.current))),[r,a]};
1
+ "use strict";var e=require("./tslib.es6-13252057.js"),t=require("react"),r=require("./cookieHelper-c8e979f9.js"),n=require("./useUniqueId-5e154eee.js");function i(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}exports.useFbDataLayer=n=>{const o=t.useRef("");t.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,u,l;if(!o.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),o.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(a=o.current)||void 0===a?void 0:a.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==n?void 0:n.id){const[e,t,o,a,c,s]=yield Promise.all([n.email?i(n.email):null,n.phone?i(n.phone):null,n.birthday?i(n.birthday.split("-").join("")):null,n.gender?"m":"f",n.city_name?i(n.city_name).then((e=>e.replace(/\s/g,""))):null,n.name?i(n.name):null]);r.getCookie("_fbc"),r.getCookie("_fbp");const d={user_id:n.id};s&&(d.fn=s),e&&(d.em=e),t&&(d.ph=t),o&&(d.db=o),c&&(d.ct=c),null===(l=null===(u=window.localStorage)||void 0===u?void 0:u.setItem)||void 0===l||l.call(u,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[n])},exports.usePrevious=e=>{const r=t.useRef(),i=t.useRef(e);return n.useInitialMount()||i.current===e||(r.current=i.current,i.current=e),r.current},exports.useRafState=e=>{const[r,n]=t.useState(e),i=t.useRef(0),o=t.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{n(e)}))}),[]);return t.useEffect((()=>()=>cancelAnimationFrame(i.current))),[r,o]};
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("./translationsContext-f65343d9.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>a?a[e]?t?n.default(a[e]||e,t):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),t?n.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
1
+ "use strict";var e=require("react"),t=require("./translationsContext-4242d047.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>a?a[e]?t?n.default(a[e]||e,t):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),t?n.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-a445271a.js"),t=require("react"),a=require("@mantine/core"),r=require("styled-components"),l=require("./index-474968d0.js"),o=require("./theme-7b9eadbd.js"),i=require("./screenSizeContext-ba4400db.js"),n=require("./gAssets.js"),s=require("./index-86f1b0cb.js"),d=require("./Onboarding-34f35fb5.js"),c=require("./index-36448a05.js");require("./translationsContext-f65343d9.js");var u=require("string-format"),p=require("dayjs"),h=require("./index-20448f00.js"),m=require("./isProduction-db520833.js"),g=require("react-keyed-flatten-children"),f=require("@mantine/hooks");require("@mantine/dates");var b=require("@mantine/carousel"),E=require("./useUniqueId-95cb1220.js");require("lodash/debounce");var x=require("./cookieHelper-f295d483.js"),v=require("slugify");function w(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function y(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var C=w(t),L=y(t),_=w(r),O=w(u),A=w(p),T=w(g),S=w(v);const k=_.default.div`
1
+ "use strict";var e=require("./tslib.es6-13252057.js"),t=require("react"),a=require("@mantine/core"),r=require("styled-components"),l=require("./index-f20436f9.js"),o=require("./theme-06993ed5.js"),i=require("./screenSizeContext-080182ae.js"),n=require("./gAssets.js"),s=require("./index-f36944a7.js"),d=require("./Onboarding-319fc3d2.js"),c=require("./index-070227f7.js");require("./translationsContext-4242d047.js");var u=require("string-format"),p=require("dayjs"),h=require("./index-66835c83.js"),m=require("./isProduction-1230f05e.js"),g=require("react-keyed-flatten-children"),f=require("@mantine/hooks");require("@mantine/dates");var b=require("@mantine/carousel"),E=require("./useUniqueId-5e154eee.js");require("lodash/debounce");var x=require("./cookieHelper-c8e979f9.js"),v=require("slugify");function w(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function y(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var C=w(t),L=y(t),_=w(r),O=w(u),A=w(p),T=w(g),S=w(v);const k=_.default.div`
2
2
  background-color: var(--background-color, transparent);
3
3
  color: white;
4
4
  cursor: pointer;
@@ -1 +1 @@
1
- "use strict";var i=require("./Onboarding-34f35fb5.js");const a={[i.LOCALE.Vietnam]:"VN",[i.LOCALE.Cambodia]:"KH",[i.LOCALE.Indonesia]:"ID",[i.LOCALE.Malaysia]:"MY",[i.LOCALE.PhilippinesEnglish]:"PH",[i.LOCALE.PhilippinesTagalog]:"PH",[i.LOCALE.Taiwan]:"TW",[i.LOCALE.Thailand]:"TH",[i.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=a,exports.hiddenEmailChar=(i="")=>{const a=i.indexOf("@"),n=i.substring(0,a),L=n.length>3?3:n.length;return i.replace(i.substring(L,a),i.slice(L,a).replace(/./g,"x"))};
1
+ "use strict";var i=require("./Onboarding-319fc3d2.js");const a={[i.LOCALE.Vietnam]:"VN",[i.LOCALE.Cambodia]:"KH",[i.LOCALE.Indonesia]:"ID",[i.LOCALE.Malaysia]:"MY",[i.LOCALE.PhilippinesEnglish]:"PH",[i.LOCALE.PhilippinesTagalog]:"PH",[i.LOCALE.Taiwan]:"TW",[i.LOCALE.Thailand]:"TH",[i.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=a,exports.hiddenEmailChar=(i="")=>{const a=i.indexOf("@"),n=i.substring(0,a),L=n.length>3?3:n.length;return i.replace(i.substring(L,a),i.slice(L,a).replace(/./g,"x"))};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-a445271a.js"),t=require("react"),a=require("@mantine/core"),l=require("./utils-95f15c1f.js");require("@mantine/dates"),require("./index-20448f00.js");var n=require("./Onboarding-34f35fb5.js");require("./gAssets.js");var r=require("dayjs"),i=require("./screenSizeContext-ba4400db.js"),o=require("styled-components"),c=require("./theme-7b9eadbd.js");require("./isProduction-db520833.js");var s=require("./useTranslations-4b98992e.js");require("./index-474968d0.js");var d=require("@mantine/hooks");require("lodash/debounce");var u=require("./index-013e2df7.js");require("./translationsContext-f65343d9.js"),require("string-format");var m=require("./index-86f1b0cb.js"),f=require("./index-106a878a.js"),C=require("@mantine/form"),p=require("dayjs/plugin/customParseFormat"),g=require("./index-bbbd4335.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./index-36448a05.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("./useUniqueId-95cb1220.js"),require("./cookieHelper-f295d483.js"),require("slugify"),require("date-fns/locale"),require("lodash/throttle");var b=h(t),E=h(r),x=h(o),v=h(p);const y=x.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-13252057.js"),t=require("react"),a=require("@mantine/core"),l=require("./utils-18805f78.js");require("@mantine/dates"),require("./index-66835c83.js");var n=require("./Onboarding-319fc3d2.js");require("./gAssets.js");var r=require("dayjs"),i=require("./screenSizeContext-080182ae.js"),o=require("styled-components"),c=require("./theme-06993ed5.js");require("./isProduction-1230f05e.js");var s=require("./useTranslations-9c168300.js");require("./index-f20436f9.js");var d=require("@mantine/hooks");require("lodash/debounce");var u=require("./index-0c029e89.js");require("./translationsContext-4242d047.js"),require("string-format");var m=require("./index-f36944a7.js"),f=require("./index-a13157ab.js"),C=require("@mantine/form"),p=require("dayjs/plugin/customParseFormat"),g=require("./index-4e5cee26.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./index-070227f7.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("./useUniqueId-5e154eee.js"),require("./cookieHelper-c8e979f9.js"),require("slugify"),require("date-fns/locale"),require("lodash/throttle");var b=h(t),E=h(r),x=h(o),v=h(p);const y=x.default.div`
2
2
  position: relative;
3
3
  padding: 16px;
4
4
  min-height: 110px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hhgtech/hhg-components",
3
- "version": "1.27.81",
3
+ "version": "1.27.82",
4
4
  "main": "build/index.js",
5
5
  "module": "build/esm/index.js",
6
6
  "files": [
@@ -1 +0,0 @@
1
- "use strict";var t=require("./tslib.es6-a445271a.js"),e=require("./isProduction-db520833.js");const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},r=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}};exports.getCachedItem=i,exports.getDataWithCache=(e,a,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(a){const t=yield a();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
@@ -1 +0,0 @@
1
- import{a as t}from"./tslib.es6-555d79f5.js";import{g as o}from"./core-1e91316f.js";import{n as i}from"./normalizeLink-ccb18bcd.js";import{c as l}from"./routing-6a04122b.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===o?"lang=fil":"";let a=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return a}catch(t){console.error(t)}})),s=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
@@ -1 +0,0 @@
1
- import{G as r,B as e,a as t,b as a,L as n,O as o}from"./Onboarding-ee515ace.js";var s=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return e},get BabyGrowthChartDuration(){return t},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{s as i};
@@ -1 +0,0 @@
1
- import{_ as o}from"./tslib.es6-555d79f5.js";import t from"react";import{Indicator as e}from"@mantine/core";import"dayjs";import"./screenSizeContext-11b9f601.js";import"styled-components";import{t as s}from"./theme-e8bef3f3.js";import"./index-982bf4b1.js";import"./isProduction-467296eb.js";import"./Onboarding-ee515ace.js";import"./gAssets.js";const r=r=>{var{styles:i,color:n=s.colors.red700}=r,m=o(r,["styles","color"]);return t.createElement(e,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:n},m))};export{r as I};
@@ -1 +0,0 @@
1
- import{_ as e}from"./tslib.es6-555d79f5.js";import t from"react";import{S as a,a as s}from"./index-a8e48a82.js";const r=s=>{var{type:r,color:o,style:l}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},o&&{"--text-color":o}),l)},c))},o=a=>{var{type:r,color:o,style:l}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({"data-type":r,style:Object.assign(Object.assign({},l),o&&{"--text-color":o})},c))};export{o as M,r as a};
@@ -1 +0,0 @@
1
- import{a as o}from"./tslib.es6-555d79f5.js";import{useState as t,useEffect as i,useCallback as a}from"react";import{a as e}from"./getDynamicHealthTool-e3f9f9ad.js";const l=l=>{const[n,r]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield e(l);r(o)}))}),[e,l]);const s=a((o=>{var t;return(null===(t=n.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[n]);return{allTools:n,getHealthToolLink:s}};export{l as u};
@@ -1 +0,0 @@
1
- "use strict";var t=require("./tslib.es6-a445271a.js"),i=require("./core-4dfcaba2.js"),e=require("./normalizeLink-01f8fb47.js"),l=require("./routing-4cb17746.js");const o=(t,i)=>{var e,l;if(!t)return{};const o="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:`${o}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${o}/`,"/")),subtitle:t.subtitle,title:t.title}},a=i=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,a;try{const n="tl-PH"===i?"lang=fil":"";let r=[];try{const s=yield fetch(e.normalizeLinkSlash(`${l.getDiscoverApiDomain(i)}/wp-json/api/healthtools?ismenu=0${n?"&"+n:""}`)).then((t=>t.json()));r=(null===(a=null===(t=null==s?void 0:s.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,(t=>o(t,i))))||[]}catch(t){}return r}catch(t){console.error(t)}}));exports.formatHealthTool=o,exports.getDynamicHealthTool=a,exports.getDynamicHealthToolWithCache=e=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield i.getDataWithCache("all-health-tools",(()=>a(e||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));