@hhgtech/hhg-components 1.27.69 → 1.27.71

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 (357) hide show
  1. package/build/babyGrowth.js +3 -3
  2. package/build/cache.js +1 -1
  3. package/build/care/api/paths.d.ts +1 -0
  4. package/build/care/components/organisms/bookingSearchBarV2/constants.d.ts +4 -0
  5. package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +28 -0
  6. package/build/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +4 -0
  7. package/build/care/components/organisms/bookingSearchBarV2/reducer.d.ts +144 -0
  8. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +24 -0
  9. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.styled.d.ts +2 -0
  10. package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +16 -0
  11. package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.styled.d.ts +10 -0
  12. package/build/care/components/organisms/bookingSearchBarV2/searchResult/icons.d.ts +5 -0
  13. package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +20 -0
  14. package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.styled.d.ts +5 -0
  15. package/build/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +12 -0
  16. package/build/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.styled.d.ts +5 -0
  17. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +14 -0
  18. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +10 -0
  19. package/build/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +3 -0
  20. package/build/care/components/organisms/bookingSearchBarV2/searchTag/index.styled.d.ts +2 -0
  21. package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +9 -0
  22. package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +1 -0
  23. package/build/care/components/organisms/bookingSearchBarV2/types.d.ts +11 -0
  24. package/build/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +18 -0
  25. package/build/care/index.d.ts +1 -0
  26. package/build/care/interfaces/types.d.ts +7 -0
  27. package/build/care.js +1 -1
  28. package/build/components/atoms/icons/Search.d.ts +4 -0
  29. package/build/components/atoms/icons/index.d.ts +1 -0
  30. package/build/components.js +1 -1
  31. package/build/constants.js +1 -1
  32. package/build/{core-364d1067.js → core-00fac4a1.js} +1 -1
  33. package/build/{dataTransform-7ab7ab3a.js → dataTransform-fb2e9aef.js} +1 -1
  34. package/build/ecom.js +1 -1
  35. package/build/esm/babyGrowth.js +9 -9
  36. package/build/esm/cache.js +1 -1
  37. package/build/esm/care/api/paths.d.ts +1 -0
  38. package/build/esm/care/components/organisms/bookingSearchBarV2/constants.d.ts +4 -0
  39. package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +28 -0
  40. package/build/esm/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +4 -0
  41. package/build/esm/care/components/organisms/bookingSearchBarV2/reducer.d.ts +144 -0
  42. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +24 -0
  43. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.styled.d.ts +2 -0
  44. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +16 -0
  45. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.styled.d.ts +10 -0
  46. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/icons.d.ts +5 -0
  47. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +20 -0
  48. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.styled.d.ts +5 -0
  49. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +12 -0
  50. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.styled.d.ts +5 -0
  51. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +14 -0
  52. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +10 -0
  53. package/build/esm/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +3 -0
  54. package/build/esm/care/components/organisms/bookingSearchBarV2/searchTag/index.styled.d.ts +2 -0
  55. package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +9 -0
  56. package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +1 -0
  57. package/build/esm/care/components/organisms/bookingSearchBarV2/types.d.ts +11 -0
  58. package/build/esm/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +18 -0
  59. package/build/esm/care/index.d.ts +1 -0
  60. package/build/esm/care/interfaces/types.d.ts +7 -0
  61. package/build/esm/care.js +1 -1
  62. package/build/esm/components/atoms/icons/Search.d.ts +4 -0
  63. package/build/esm/components/atoms/icons/index.d.ts +1 -0
  64. package/build/esm/components.js +1 -1
  65. package/build/esm/constants.js +1 -1
  66. package/build/esm/{core-6492f231.js → core-fe8e3ac4.js} +1 -1
  67. package/build/esm/{dataTransform-b8c22fc9.js → dataTransform-472ab3cb.js} +1 -1
  68. package/build/esm/ecom.js +1 -1
  69. package/build/esm/fixedBottomAdBlock-85d4c40e.js +1 -0
  70. package/build/esm/footer.js +1 -1
  71. package/build/esm/gAssets.js +1 -1
  72. package/build/esm/{getDynamicHealthTool-d16f3b54.js → getDynamicHealthTool-0f0a6a55.js} +1 -1
  73. package/build/esm/{getSocialList-f491a2d9.js → getSocialList-a9e6accc.js} +1 -1
  74. package/build/esm/hooks.js +1 -1
  75. package/build/esm/i18n/translationKeys.d.ts +1 -1
  76. package/build/esm/i18n-values/en-PH.js +1 -1
  77. package/build/esm/i18n-values/hi-IN.js +1 -1
  78. package/build/esm/i18n-values/id-ID.js +1 -1
  79. package/build/esm/i18n-values/km-KH.js +1 -1
  80. package/build/esm/i18n-values/ms-MY.js +1 -1
  81. package/build/esm/i18n-values/my-MM.js +1 -1
  82. package/build/esm/i18n-values/th-TH.js +1 -1
  83. package/build/esm/i18n-values/tl-PH.js +1 -1
  84. package/build/esm/i18n-values/vi-VN.js +1 -1
  85. package/build/esm/i18n-values/vi-VN_MB.js +1 -1
  86. package/build/esm/i18n-values/zh-TW.js +1 -1
  87. package/build/esm/i18n.js +1 -1
  88. package/build/esm/i18nV2.js +1 -1
  89. package/build/esm/{index-487953bb.js → index-07164e0d.js} +5 -5
  90. package/build/esm/{index-9b177171.js → index-075c02f5.js} +1 -1
  91. package/build/esm/index-1afa0089.js +1 -0
  92. package/build/esm/index-1da6924b.js +113 -0
  93. package/build/esm/index-2271114a.js +1 -0
  94. package/build/esm/index-24374711.js +177 -0
  95. package/build/esm/index-2c50f4ad.js +1 -0
  96. package/build/esm/{index-fd14a910.js → index-37be0623.js} +1 -1
  97. package/build/esm/{index-531008d2.js → index-3f7f7771.js} +1 -1
  98. package/build/esm/{index-fb3c41e5.js → index-583c5caf.js} +1 -1
  99. package/build/esm/{index-bb9b3e39.js → index-71b07919.js} +4 -4
  100. package/build/esm/{index-ed1cac71.js → index-74d8cf2c.js} +1 -1
  101. package/build/esm/{index-5fb217fb.js → index-783fd8db.js} +1 -1
  102. package/build/esm/{index-4d5c0771.js → index-93383cf3.js} +1 -1
  103. package/build/esm/index-9ae2e2dd.js +1 -0
  104. package/build/esm/{index-eabb2f3d.js → index-b0f9c8c2.js} +1 -1
  105. package/build/esm/{index-fe72b968.js → index-b88a25a3.js} +33 -33
  106. package/build/esm/{index-73288a5b.js → index-c9209389.js} +1 -1
  107. package/build/esm/{index-c4680d39.js → index-d754d2c5.js} +1 -1
  108. package/build/esm/{index-0a52e0c8.js → index-d7a14122.js} +1 -1
  109. package/build/esm/{index-45f7496a.js → index-e43a53fe.js} +1 -1
  110. package/build/esm/index.js +1 -1
  111. package/build/esm/{index.styled-8cd3ffb8.js → index.styled-33c36729.js} +6 -6
  112. package/build/esm/{index.styled-a5c98598.js → index.styled-5459405c.js} +22 -22
  113. package/build/esm/{index.styled-4eb37224.js → index.styled-bbbc0d87.js} +5 -5
  114. package/build/esm/lead.js +1 -1
  115. package/build/esm/mantine.js +1 -1
  116. package/build/esm/misc.js +1 -1
  117. package/build/esm/navigation.js +1 -1
  118. package/build/esm/onboarding.js +1 -1
  119. package/build/esm/onboardingV2.js +30 -30
  120. package/build/esm/{paths-8ff149e9.js → paths-2551a89f.js} +1 -1
  121. package/build/esm/pwg.js +2 -2
  122. package/build/esm/{routing-d9315774.js → routing-c886133a.js} +1 -1
  123. package/build/esm/screenSizeContext-2fd9933a.js +81 -0
  124. package/build/esm/together.js +1 -1
  125. package/build/esm/{types-7abf7ed5.js → types-073fcde8.js} +116 -116
  126. package/build/esm/types-14b6fe12.js +750 -0
  127. package/build/esm/types.js +1 -1
  128. package/build/esm/useHealthToolCache-3b53cefe.js +1 -0
  129. package/build/esm/{useRafState-be194a08.js → useRafState-b29e29b6.js} +1 -1
  130. package/build/esm/useTranslations-94a298de.js +1 -0
  131. package/build/esm/{utils-603729de.js → utils-3a82f3b7.js} +1 -1
  132. package/build/esm/utils-6dbfa2e2.js +1210 -0
  133. package/build/esm/vaccination.js +19 -19
  134. package/build/fixedBottomAdBlock-888c0461.js +1 -0
  135. package/build/footer.js +1 -1
  136. package/build/gAssets.js +1 -1
  137. package/build/getDynamicHealthTool-2491d41c.js +1 -0
  138. package/build/{getSocialList-1de29b3a.js → getSocialList-56cc0bdd.js} +1 -1
  139. package/build/hooks.js +1 -1
  140. package/build/i18n/translationKeys.d.ts +1 -1
  141. package/build/i18n-values/en-PH.js +1 -1
  142. package/build/i18n-values/hi-IN.js +1 -1
  143. package/build/i18n-values/id-ID.js +1 -1
  144. package/build/i18n-values/km-KH.js +1 -1
  145. package/build/i18n-values/ms-MY.js +1 -1
  146. package/build/i18n-values/my-MM.js +1 -1
  147. package/build/i18n-values/th-TH.js +1 -1
  148. package/build/i18n-values/tl-PH.js +1 -1
  149. package/build/i18n-values/vi-VN.js +1 -1
  150. package/build/i18n-values/vi-VN_MB.js +1 -1
  151. package/build/i18n-values/zh-TW.js +1 -1
  152. package/build/i18n.js +1 -1
  153. package/build/i18nV2.js +1 -1
  154. package/build/{index-5878ef5b.js → index-03ced1e7.js} +14 -14
  155. package/build/{index-a9217025.js → index-04de4f49.js} +7 -7
  156. package/build/{index-81a906a4.js → index-0b86a969.js} +1 -1
  157. package/build/{index-8fd181ff.js → index-18bf24c4.js} +2 -2
  158. package/build/index-3594cf46.js +113 -0
  159. package/build/{index-185962f0.js → index-4320e812.js} +1 -1
  160. package/build/{index-c5e53640.js → index-586f414a.js} +1 -1
  161. package/build/{index-5426419e.js → index-5f1b82f8.js} +1 -1
  162. package/build/{index-a9abd927.js → index-74225755.js} +1 -1
  163. package/build/{index-82272902.js → index-87f1c61a.js} +1 -1
  164. package/build/index-9467210b.js +53 -0
  165. package/build/{index-165382ae.js → index-bdb74451.js} +1 -1
  166. package/build/{index-b98e0abe.js → index-c4863fbc.js} +1 -1
  167. package/build/{index-cd08fffe.js → index-c67a81fe.js} +1 -1
  168. package/build/index-cc6403bf.js +1 -0
  169. package/build/index-d2593989.js +1 -0
  170. package/build/index-dcff1800.js +1 -0
  171. package/build/{index-d0f3640e.js → index-e57e3072.js} +1 -1
  172. package/build/index-e6494985.js +1 -0
  173. package/build/{index-298ad9ee.js → index-f5e97467.js} +1 -1
  174. package/build/{index-5e5656f3.js → index-fc5ac11f.js} +1 -1
  175. package/build/index.js +1 -1
  176. package/build/index.styled-04c914b8.js +50 -0
  177. package/build/{index.styled-a8bfc669.js → index.styled-5de77bed.js} +12 -12
  178. package/build/{index.styled-f8627c59.js → index.styled-aeedd2f1.js} +6 -6
  179. package/build/lead.js +1 -1
  180. package/build/mantine.js +1 -1
  181. package/build/misc.js +1 -1
  182. package/build/navigation.js +1 -1
  183. package/build/onboarding.js +1 -1
  184. package/build/onboardingV2.js +17 -17
  185. package/build/paths-edf8d807.js +1 -0
  186. package/build/pwg.js +2 -2
  187. package/build/{routing-fb5db1d2.js → routing-3f03b7fc.js} +1 -1
  188. package/build/screenSizeContext-3bce883f.js +81 -0
  189. package/build/together.js +1 -1
  190. package/build/types-4357b272.js +750 -0
  191. package/build/{types-10d76b2f.js → types-bc949777.js} +80 -80
  192. package/build/types.js +1 -1
  193. package/build/useHealthToolCache-7cc7bbb4.js +1 -0
  194. package/build/{useRafState-a5e9cda8.js → useRafState-af8a4d48.js} +1 -1
  195. package/build/{useTranslations-e9a977c2.js → useTranslations-f946cddd.js} +1 -1
  196. package/build/utils-5f2e4ada.js +1210 -0
  197. package/build/{utils-8f9cdef6.js → utils-b69e0f1b.js} +1 -1
  198. package/build/vaccination.js +42 -42
  199. package/package.json +1 -1
  200. package/build/esm/fixedBottomAdBlock-6c133fcc.js +0 -1
  201. package/build/esm/index-41b77f3e.js +0 -1
  202. package/build/esm/index-663ec4de.js +0 -177
  203. package/build/esm/index-782be548.js +0 -1
  204. package/build/esm/index-823a548e.js +0 -1
  205. package/build/esm/index-a54b0739.js +0 -113
  206. package/build/esm/index-d20f3c10.js +0 -1
  207. package/build/esm/screenSizeContext-e0bb4713.js +0 -81
  208. package/build/esm/types-fc66947b.js +0 -339
  209. package/build/esm/useHealthToolCache-4b4cdc37.js +0 -1
  210. package/build/esm/useTranslations-3e881db9.js +0 -1
  211. package/build/esm/utils-1f109d73.js +0 -1210
  212. package/build/esm/utils-d5e5e420.js +0 -1
  213. package/build/fixedBottomAdBlock-80890f83.js +0 -1
  214. package/build/getDynamicHealthTool-bdf0afc0.js +0 -1
  215. package/build/index-024fd801.js +0 -1
  216. package/build/index-2b8f37e1.js +0 -53
  217. package/build/index-3c4ee26d.js +0 -1
  218. package/build/index-56aa446f.js +0 -1
  219. package/build/index-b9c68d00.js +0 -1
  220. package/build/index-ebedce55.js +0 -113
  221. package/build/index.styled-ef0fd080.js +0 -50
  222. package/build/paths-e4af6f7a.js +0 -1
  223. package/build/screenSizeContext-f4914aa0.js +0 -81
  224. package/build/types-ca7b4a5a.js +0 -339
  225. package/build/useHealthToolCache-f8aa169c.js +0 -1
  226. package/build/utils-d215a9f3.js +0 -1
  227. package/build/utils-f37ac675.js +0 -1210
  228. /package/build/{BMI_BOYS.percentile.monthly-566d44a6.js → BMI_BOYS.percentile.monthly-ce85cbaa.js} +0 -0
  229. /package/build/{BMI_BOYS.percentile.weekly-2d7a8532.js → BMI_BOYS.percentile.weekly-907fe858.js} +0 -0
  230. /package/build/{BMI_BOYS.percentile.yearly-4ef940c7.js → BMI_BOYS.percentile.yearly-53aebdc5.js} +0 -0
  231. /package/build/{BMI_BOYS.zscore.monthly-61bd02a5.js → BMI_BOYS.zscore.monthly-3f8ae54d.js} +0 -0
  232. /package/build/{BMI_BOYS.zscore.weekly-c4752c39.js → BMI_BOYS.zscore.weekly-d538296e.js} +0 -0
  233. /package/build/{BMI_BOYS.zscore.yearly-1bef43dd.js → BMI_BOYS.zscore.yearly-a18a90a9.js} +0 -0
  234. /package/build/{BMI_GIRLS.percentile.monthly-79da78b5.js → BMI_GIRLS.percentile.monthly-a8bfe72c.js} +0 -0
  235. /package/build/{BMI_GIRLS.percentile.weekly-d1dbd1b0.js → BMI_GIRLS.percentile.weekly-0c4f641f.js} +0 -0
  236. /package/build/{BMI_GIRLS.percentile.yearly-de9fead6.js → BMI_GIRLS.percentile.yearly-296222bd.js} +0 -0
  237. /package/build/{BMI_GIRLS.zscore.monthly-c787e54b.js → BMI_GIRLS.zscore.monthly-3005d7fb.js} +0 -0
  238. /package/build/{BMI_GIRLS.zscore.weekly-ed863d49.js → BMI_GIRLS.zscore.weekly-882189f3.js} +0 -0
  239. /package/build/{BMI_GIRLS.zscore.yearly-8515d7fb.js → BMI_GIRLS.zscore.yearly-d5ff80d7.js} +0 -0
  240. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2669b31c.js → HEAD CIRCUM_BOYS.percentile.monthly-07cdda99.js} +0 -0
  241. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-610d83ed.js → HEAD CIRCUM_BOYS.percentile.weekly-1a366f96.js} +0 -0
  242. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-f393638f.js → HEAD CIRCUM_BOYS.percentile.yearly-d6cf2202.js} +0 -0
  243. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-be42756d.js → HEAD CIRCUM_BOYS.zscore.monthly-db5b94ab.js} +0 -0
  244. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-26db840c.js → HEAD CIRCUM_BOYS.zscore.weekly-35b29074.js} +0 -0
  245. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-79ed300c.js → HEAD CIRCUM_BOYS.zscore.yearly-175dc793.js} +0 -0
  246. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-7ed956bc.js → HEAD CIRCUM_GIRLS.percentile.monthly-ea684642.js} +0 -0
  247. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-643a5eef.js → HEAD CIRCUM_GIRLS.percentile.weekly-37333fc8.js} +0 -0
  248. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e5768cb7.js → HEAD CIRCUM_GIRLS.percentile.yearly-8f027f18.js} +0 -0
  249. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-67cce25e.js → HEAD CIRCUM_GIRLS.zscore.monthly-a89a959c.js} +0 -0
  250. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-fc98e3d3.js → HEAD CIRCUM_GIRLS.zscore.weekly-ee4a111b.js} +0 -0
  251. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-681e1b54.js → HEAD CIRCUM_GIRLS.zscore.yearly-0ed20f95.js} +0 -0
  252. /package/build/{HEIGHT_BOYS.percentile.monthly-7b20d402.js → HEIGHT_BOYS.percentile.monthly-1140adef.js} +0 -0
  253. /package/build/{HEIGHT_BOYS.percentile.weekly-7e97094b.js → HEIGHT_BOYS.percentile.weekly-3bbf0b1f.js} +0 -0
  254. /package/build/{HEIGHT_BOYS.percentile.yearly-54adbf6c.js → HEIGHT_BOYS.percentile.yearly-ae780adf.js} +0 -0
  255. /package/build/{HEIGHT_BOYS.zscore.monthly-fbb459bf.js → HEIGHT_BOYS.zscore.monthly-78ed0896.js} +0 -0
  256. /package/build/{HEIGHT_BOYS.zscore.weekly-091ae57d.js → HEIGHT_BOYS.zscore.weekly-6ad41d21.js} +0 -0
  257. /package/build/{HEIGHT_BOYS.zscore.yearly-40990ba2.js → HEIGHT_BOYS.zscore.yearly-8776c3ee.js} +0 -0
  258. /package/build/{HEIGHT_GIRLS.percentile.monthly-a441682e.js → HEIGHT_GIRLS.percentile.monthly-8e628730.js} +0 -0
  259. /package/build/{HEIGHT_GIRLS.percentile.weekly-d7214c9a.js → HEIGHT_GIRLS.percentile.weekly-01b09969.js} +0 -0
  260. /package/build/{HEIGHT_GIRLS.percentile.yearly-f4e2be20.js → HEIGHT_GIRLS.percentile.yearly-af862b58.js} +0 -0
  261. /package/build/{HEIGHT_GIRLS.zscore.monthly-bc0b0f1a.js → HEIGHT_GIRLS.zscore.monthly-fdb87537.js} +0 -0
  262. /package/build/{HEIGHT_GIRLS.zscore.weekly-25a9c973.js → HEIGHT_GIRLS.zscore.weekly-a312ee05.js} +0 -0
  263. /package/build/{HEIGHT_GIRLS.zscore.yearly-4fd38d47.js → HEIGHT_GIRLS.zscore.yearly-f9b3d318.js} +0 -0
  264. /package/build/{Onboarding-918bcb2f.js → Onboarding-6046991e.js} +0 -0
  265. /package/build/{Visible-f7b9a0ea.js → Visible-8dfac33c.js} +0 -0
  266. /package/build/{WEIGHT_BOYS.percentile.monthly-fa2a7a93.js → WEIGHT_BOYS.percentile.monthly-c7c2cbf5.js} +0 -0
  267. /package/build/{WEIGHT_BOYS.percentile.weekly-273c8412.js → WEIGHT_BOYS.percentile.weekly-9551af52.js} +0 -0
  268. /package/build/{WEIGHT_BOYS.percentile.yearly-33d1574d.js → WEIGHT_BOYS.percentile.yearly-87abbcbf.js} +0 -0
  269. /package/build/{WEIGHT_BOYS.zscore.monthly-dcf0b685.js → WEIGHT_BOYS.zscore.monthly-346a63be.js} +0 -0
  270. /package/build/{WEIGHT_BOYS.zscore.weekly-edecc293.js → WEIGHT_BOYS.zscore.weekly-ae0238bd.js} +0 -0
  271. /package/build/{WEIGHT_BOYS.zscore.yearly-b575276b.js → WEIGHT_BOYS.zscore.yearly-adfb0402.js} +0 -0
  272. /package/build/{WEIGHT_GIRLS.percentile.monthly-a71f0afb.js → WEIGHT_GIRLS.percentile.monthly-85a3a57a.js} +0 -0
  273. /package/build/{WEIGHT_GIRLS.percentile.weekly-f970f70d.js → WEIGHT_GIRLS.percentile.weekly-0be4d3e9.js} +0 -0
  274. /package/build/{WEIGHT_GIRLS.percentile.yearly-12d34d41.js → WEIGHT_GIRLS.percentile.yearly-8d6a8a82.js} +0 -0
  275. /package/build/{WEIGHT_GIRLS.zscore.monthly-630258eb.js → WEIGHT_GIRLS.zscore.monthly-d3dd7142.js} +0 -0
  276. /package/build/{WEIGHT_GIRLS.zscore.weekly-d3a2c4de.js → WEIGHT_GIRLS.zscore.weekly-6017e0f0.js} +0 -0
  277. /package/build/{WEIGHT_GIRLS.zscore.yearly-bd6e091b.js → WEIGHT_GIRLS.zscore.yearly-fb435d58.js} +0 -0
  278. /package/build/{constants-8d1ab6b3.js → constants-dec7610d.js} +0 -0
  279. /package/build/{cookieHelper-3b665b4b.js → cookieHelper-7d5fd567.js} +0 -0
  280. /package/build/{dataTransform-fd8e952f.js → dataTransform-a105042f.js} +0 -0
  281. /package/build/esm/{BMI_BOYS.percentile.monthly-6dd7eda4.js → BMI_BOYS.percentile.monthly-fe47e6cd.js} +0 -0
  282. /package/build/esm/{BMI_BOYS.percentile.weekly-e74785e0.js → BMI_BOYS.percentile.weekly-aa044b48.js} +0 -0
  283. /package/build/esm/{BMI_BOYS.percentile.yearly-99e25311.js → BMI_BOYS.percentile.yearly-fd50bc0e.js} +0 -0
  284. /package/build/esm/{BMI_BOYS.zscore.monthly-2d627ad0.js → BMI_BOYS.zscore.monthly-bafb2899.js} +0 -0
  285. /package/build/esm/{BMI_BOYS.zscore.weekly-a09067d0.js → BMI_BOYS.zscore.weekly-7ec736c9.js} +0 -0
  286. /package/build/esm/{BMI_BOYS.zscore.yearly-659610e9.js → BMI_BOYS.zscore.yearly-f2a39ed3.js} +0 -0
  287. /package/build/esm/{BMI_GIRLS.percentile.monthly-fc7ea529.js → BMI_GIRLS.percentile.monthly-0710ab0b.js} +0 -0
  288. /package/build/esm/{BMI_GIRLS.percentile.weekly-9f82ac12.js → BMI_GIRLS.percentile.weekly-9abed752.js} +0 -0
  289. /package/build/esm/{BMI_GIRLS.percentile.yearly-7922630f.js → BMI_GIRLS.percentile.yearly-04436686.js} +0 -0
  290. /package/build/esm/{BMI_GIRLS.zscore.monthly-124db983.js → BMI_GIRLS.zscore.monthly-8725527a.js} +0 -0
  291. /package/build/esm/{BMI_GIRLS.zscore.weekly-2cd2ae10.js → BMI_GIRLS.zscore.weekly-38c97231.js} +0 -0
  292. /package/build/esm/{BMI_GIRLS.zscore.yearly-b47e8355.js → BMI_GIRLS.zscore.yearly-12253d20.js} +0 -0
  293. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-0f849e49.js → HEAD CIRCUM_BOYS.percentile.monthly-119dfd3c.js} +0 -0
  294. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-311179a8.js → HEAD CIRCUM_BOYS.percentile.weekly-7284d9b1.js} +0 -0
  295. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e7f94da6.js → HEAD CIRCUM_BOYS.percentile.yearly-e139f816.js} +0 -0
  296. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-cc901cdc.js → HEAD CIRCUM_BOYS.zscore.monthly-26daac23.js} +0 -0
  297. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-409787c4.js → HEAD CIRCUM_BOYS.zscore.weekly-c2c564d0.js} +0 -0
  298. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e15b53db.js → HEAD CIRCUM_BOYS.zscore.yearly-a9b1ab42.js} +0 -0
  299. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-2ffb92f7.js → HEAD CIRCUM_GIRLS.percentile.monthly-8f19524f.js} +0 -0
  300. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5bed76e7.js → HEAD CIRCUM_GIRLS.percentile.weekly-6cdaeadb.js} +0 -0
  301. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-2d9a9cf7.js → HEAD CIRCUM_GIRLS.percentile.yearly-649c05a6.js} +0 -0
  302. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c6a8c417.js → HEAD CIRCUM_GIRLS.zscore.monthly-3bcbed96.js} +0 -0
  303. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a5247bc4.js → HEAD CIRCUM_GIRLS.zscore.weekly-e0c17fa2.js} +0 -0
  304. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-491daf49.js → HEAD CIRCUM_GIRLS.zscore.yearly-ee6da83b.js} +0 -0
  305. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-089b50f8.js → HEIGHT_BOYS.percentile.monthly-fa7c526e.js} +0 -0
  306. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-493ab21a.js → HEIGHT_BOYS.percentile.weekly-085d6a9f.js} +0 -0
  307. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f93e11b9.js → HEIGHT_BOYS.percentile.yearly-d6aaab6f.js} +0 -0
  308. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a102b290.js → HEIGHT_BOYS.zscore.monthly-da391c1b.js} +0 -0
  309. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-8ddbacca.js → HEIGHT_BOYS.zscore.weekly-bb540454.js} +0 -0
  310. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-eaaf50be.js → HEIGHT_BOYS.zscore.yearly-348b3816.js} +0 -0
  311. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0c718740.js → HEIGHT_GIRLS.percentile.monthly-b51d0fd6.js} +0 -0
  312. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f64f9559.js → HEIGHT_GIRLS.percentile.weekly-994e98db.js} +0 -0
  313. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-62836edf.js → HEIGHT_GIRLS.percentile.yearly-c75f410e.js} +0 -0
  314. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-efd7fe65.js → HEIGHT_GIRLS.zscore.monthly-e7264d3b.js} +0 -0
  315. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0b4c13ad.js → HEIGHT_GIRLS.zscore.weekly-0f8554b6.js} +0 -0
  316. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-dbb1c464.js → HEIGHT_GIRLS.zscore.yearly-2f3f3a34.js} +0 -0
  317. /package/build/esm/{Onboarding-5209aa8f.js → Onboarding-232ac075.js} +0 -0
  318. /package/build/esm/{Visible-7fde197c.js → Visible-39409091.js} +0 -0
  319. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-8d5f17eb.js → WEIGHT_BOYS.percentile.monthly-2a8bb322.js} +0 -0
  320. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-f0d6bcdc.js → WEIGHT_BOYS.percentile.weekly-25425843.js} +0 -0
  321. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-004d7884.js → WEIGHT_BOYS.percentile.yearly-4cc9d801.js} +0 -0
  322. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-5cc93e2d.js → WEIGHT_BOYS.zscore.monthly-dccd7084.js} +0 -0
  323. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5bcc179a.js → WEIGHT_BOYS.zscore.weekly-c494ae68.js} +0 -0
  324. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-aa793430.js → WEIGHT_BOYS.zscore.yearly-6a7fcff9.js} +0 -0
  325. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-0ce0af1e.js → WEIGHT_GIRLS.percentile.monthly-0cc1fb2a.js} +0 -0
  326. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-43dcc38a.js → WEIGHT_GIRLS.percentile.weekly-9c40d0ba.js} +0 -0
  327. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9a7ad2e7.js → WEIGHT_GIRLS.percentile.yearly-88a45f13.js} +0 -0
  328. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-fb016308.js → WEIGHT_GIRLS.zscore.monthly-bc332015.js} +0 -0
  329. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-72cb7146.js → WEIGHT_GIRLS.zscore.weekly-46c702bd.js} +0 -0
  330. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-7a1353ef.js → WEIGHT_GIRLS.zscore.yearly-8358d95b.js} +0 -0
  331. /package/build/esm/{constants-22665a95.js → constants-454ca790.js} +0 -0
  332. /package/build/esm/{cookieHelper-c441527b.js → cookieHelper-bf990dc8.js} +0 -0
  333. /package/build/esm/{dataTransform-3cdbcc1f.js → dataTransform-b313aa54.js} +0 -0
  334. /package/build/esm/{index-8ce09b49.js → index-747533b3.js} +0 -0
  335. /package/build/esm/{isProduction-58e08b60.js → isProduction-51e5a882.js} +0 -0
  336. /package/build/esm/{localizeNumberFormat-34a914cf.js → localizeNumberFormat-1db9658b.js} +0 -0
  337. /package/build/esm/{normalizeLink-0ac71571.js → normalizeLink-01dd46d6.js} +0 -0
  338. /package/build/esm/{theme-808a1a77.js → theme-3f5fb9b4.js} +0 -0
  339. /package/build/esm/{translationsContext-616c8791.js → translationsContext-8e27754a.js} +0 -0
  340. /package/build/esm/{tslib.es6-f7c415e8.js → tslib.es6-c990ebbd.js} +0 -0
  341. /package/build/esm/{types-33ff47e6.js → types-59994293.js} +0 -0
  342. /package/build/esm/{useIsInit-6466d212.js → useIsInit-399900be.js} +0 -0
  343. /package/build/esm/{useOutsideClick-f36ba482.js → useOutsideClick-93403663.js} +0 -0
  344. /package/build/esm/{useScrollbarSize-ac53783f.js → useScrollbarSize-85d86621.js} +0 -0
  345. /package/build/esm/{useUniqueId-4a392949.js → useUniqueId-d2edd2de.js} +0 -0
  346. /package/build/{index-4cc291d1.js → index-484cc895.js} +0 -0
  347. /package/build/{isProduction-85cdc0ab.js → isProduction-6f51bfd8.js} +0 -0
  348. /package/build/{localizeNumberFormat-9735f40b.js → localizeNumberFormat-6c838ca4.js} +0 -0
  349. /package/build/{normalizeLink-7ef1495e.js → normalizeLink-7adeb83a.js} +0 -0
  350. /package/build/{theme-9e0d88e8.js → theme-2b27c2a9.js} +0 -0
  351. /package/build/{translationsContext-dc043578.js → translationsContext-10468cf0.js} +0 -0
  352. /package/build/{tslib.es6-e14619bf.js → tslib.es6-cd3b6b6c.js} +0 -0
  353. /package/build/{types-2dae143e.js → types-4777e5c6.js} +0 -0
  354. /package/build/{useIsInit-c65601fb.js → useIsInit-f81023ac.js} +0 -0
  355. /package/build/{useOutsideClick-ac254274.js → useOutsideClick-fd083518.js} +0 -0
  356. /package/build/{useScrollbarSize-251e49d0.js → useScrollbarSize-b84c486c.js} +0 -0
  357. /package/build/{useUniqueId-76b34caf.js → useUniqueId-908d46ed.js} +0 -0
@@ -1 +0,0 @@
1
- import{a as e}from"./tslib.es6-f7c415e8.js";import t,{useState as a,useEffect as l,useMemo as n,useRef as o,useContext as i,useCallback as s}from"react";import{g as r}from"./core-6492f231.js";import{N as c,F as m,J as u,z as d,U as g,y as h,P as v,H as p,C as E}from"./utils-1f109d73.js";import{S as y,a as b,b as f,c as C,d as k,e as w,f as P,g as N,T as M,N as _,h as A,i as T,j as L,k as S,l as H,m as B,n as x,o as U,p as $,q as I,r as R,s as O,t as j,u as F,v as D,w as z,x as V,y as G,z as W,A as q,B as K,C as Q,D as Y,E as Z,F as J,G as X,H as ee,I as te,J as ae,K as le,L as ne,M as oe,O as ie,P as se,Q as re,R as ce,V as me,W as ue,X as de,Y as ge,Z as he,_ as ve,$ as pe,a0 as Ee,a1 as ye,a2 as be,a3 as fe,a4 as Ce,a5 as ke,a6 as we,a7 as Pe,a8 as Ne,a9 as Me,aa as _e,ab as Ae,ac as Te,ad as Le,ae as Se,af as He,ag as Be,ah as xe,ai as Ue,aj as $e}from"./index.styled-4eb37224.js";import{T as Ie}from"./index-c4680d39.js";import{CommonGAssets as Re}from"./gAssets.js";import{d as Oe,L as je,S as Fe,U as De,T as ze,C as Ve}from"./index-4d5c0771.js";import{n as Ge,a as We}from"./normalizeLink-0ac71571.js";import{c as qe,b as Ke,d as Qe}from"./routing-d9315774.js";import{P as Ye,b as Ze,c as Je}from"./dataTransform-b8c22fc9.js";import{L as Xe}from"./index-0a52e0c8.js";import{u as et}from"./useTranslations-3e881db9.js";import tt from"lodash/throttle";import{g as at}from"./utils-d5e5e420.js";import{L as lt}from"./Onboarding-5209aa8f.js";import{t as nt}from"./theme-808a1a77.js";import{g as ot}from"./cookieHelper-c441527b.js";import{I as it}from"./index-bb9b3e39.js";import{B as st}from"./index-73288a5b.js";import{Portal as rt}from"@mantine/core";import"./index-a54b0739.js";import"@mantine/dates";import"dayjs";import"./screenSizeContext-e0bb4713.js";import"styled-components";import"./isProduction-58e08b60.js";import"@mantine/hooks";import ct from"lodash/debounce";import{L as mt}from"./constants-22665a95.js";import ut from"string-format";import{a as dt}from"./useUniqueId-4a392949.js";import{I as gt}from"./index-782be548.js";import{u as ht}from"./useIsInit-6466d212.js";const vt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},pt=({type:e="square",size:n,avatarImg:o,avatarUrl:i,firstLetter:s,backgroundColor:r,onClick:m,style:u,className:d,width:g,height:h,alt:v})=>{const p=n?vt[n]:void 0,[E,y]=a(!1);l((()=>{if(i){const e=document.createElement("img");e.setAttribute("src",i),e.addEventListener("error",(()=>{y(!0)}))}}),[i,y]);const b=(!i&&!o||E)&&s;return t.createElement(c,{style:Object.assign(Object.assign({},u),{"--size":p?p+"px":void 0,"--width-prop":g?g+"px":void 0,"--height-prop":h?h+"px":void 0,"--background-color":r}),"data-has-max":!(!g||!h),"data-avatar-type":e,onClick:m,className:d,avatarUrl:i,"data-custom-size":!!n},o,i&&!E&&t.createElement(it,{src:i,alt:v||"avatar"}),b&&s)},Et=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],yt=(e="")=>Et.some((t=>new URL(e).origin.endsWith(t))),bt=({options:e,label:l,labelRenderer:n,selected:o,onChange:i,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,u]=a(!1);return t.createElement(t.Fragment,null,t.createElement(y,null,t.createElement(b,{onClick:()=>u((e=>!e))},l||(null==n?void 0:n(m))||null,t.createElement(f,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,a)=>t.createElement(C,{key:a,"data-selected":s&&o===e.value,onClick:t=>{o!==e.value&&(i(e.value),u((e=>!e))),t.stopPropagation()}},t.createElement(Ie,{size:"p3"},e.label),s&&o===e.value&&t.createElement("img",{src:Re.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&t.createElement(k,{onClick:()=>u(!1)}))},ft=({languageOptions:e,locale:a})=>{var l,n;const o=null==e?void 0:e.find((e=>e.locale===a));return(null==e?void 0:e.length)?t.createElement(bt,{options:e,selected:o.value,label:t.createElement(Ct,{locale:a,label:o.label||(null===(n=null===(l=a.split("-"))||void 0===l?void 0:l[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Ct=({locale:e,label:a,href:l})=>{var n,o,i;return t.createElement(w,{href:l},t.createElement(m,{country:null===(o=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===o?void 0:o.toUpperCase(),width:16,height:16,rounded:!0,language:null===(i=null==e?void 0:e.split("-"))||void 0===i?void 0:i[0]}),t.createElement("span",null,a))},kt=({forceDisplay:e,mediaQueryKey:a,children:l,className:o,style:i})=>{const[s,r]=n((()=>at(a)),[a]);return t.createElement(P,{lowerBound:e?0:s,upperBound:e?0:r,className:o,style:i},l)},wt=e=>{const{allowBgScroll:t}=e||{},a=o();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},Pt=({type:e="lead",closeIcon:a,isOpen:l=!0,onClose:n,children:o,enableAnimation:i=!0,targetAvatar:s,id:r,className:c})=>t.createElement(N,{"data-open":l,"data-type":e,"data-animation":i,"data-target":s,id:r,className:c},t.createElement("div",{className:"popup-content"},!!a&&t.createElement("div",{className:"close-button",onClick:n},a),o)),Nt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Mt="uJQBNNg",_t="TfG3dM5",At="aMtjFNf",Tt="cSz2RR-",Lt="GyFm00F";function St({userInfo:e,onClickMyProfileButton:a,themeName:l="helloSites"}){const{t:o}=et(),i=n((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return t.createElement("div",{className:Mt,onClick:()=>{a&&a()}},t.createElement(pt,{className:_t,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:i,backgroundColor:"marryBaby"===l?nt.mbColors.pink:nt.colors.secondaryBase}),t.createElement("div",{className:At},t.createElement("div",{className:Tt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),t.createElement("div",{className:Lt,style:{"--bg-hellosites":`url(${Re.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${Re.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},o("userProfile.nav.header.viewProfile"))))}var Ht="gn6HmGG",Bt="FCx8FEM",xt="zMiRxaE",Ut="lZ2Z9MQ",$t="rwm-agG",It="qMOscoq";const Rt=({themeName:e,locale:l,onClickItem:o})=>{const[i,s]=a(""),r=n((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:Re.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:Re.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:Re.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:Re.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?s((t=>t?"":e.key)):o&&o(e)}return t.createElement("div",{className:Ht},r.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:i,onClickItem:c,locale:l}))))},Ot=({item:e,openKey:a,onClickItem:l,locale:n})=>{var o;const{t:i}=et();return(null===(o=e.disableLocale)||void 0===o?void 0:o.includes(n))?null:t.createElement("div",{className:`${Bt} nav-menu-item`,"data-is-open":a===e.key,key:e.key,"data-has-submenu":!!e.subMenu},t.createElement("div",{className:xt,onClick:()=>l(e)},e.icon&&t.createElement("div",{className:Ut,style:{backgroundImage:`url("${e.icon}")`}}),i(e.key),e.subMenu&&t.createElement("div",{className:$t,style:{"--after-bg":`url(${Re.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&t.createElement("div",{className:It},e.subMenu.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:a,onClickItem:l,locale:n})))))};var jt="-AZt1au",Ft="IvSIfCI",Dt="eahCJov",zt="XIyViFs",Vt="_4y-O0w3",Gt="kO8iNgD",Wt="a1d4E10",qt="Tdguxxf",Kt="-mOxsaU",Qt="yPeDBNZ";const Yt={helloSites:{member:()=>Re.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>Re.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>Re.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>Re.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>Re.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>Re.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>Re.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>Re.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>Re.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>Re.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Zt=({themeName:e,rank:a="member",numberOfPosts:l=0})=>{const{t:o}=et(),i=n((()=>{var t,l;return(null===(l=null===(t=Yt[e])||void 0===t?void 0:t[a])||void 0===l?void 0:l.call(t))||""}),[a,e]);return t.createElement("div",{className:Vt,"data-user-rank":a},t.createElement("div",{className:Gt},t.createElement("div",{className:Wt},t.createElement("div",{className:qt,style:{backgroundImage:`url("${i}")`}}),t.createElement("h3",{className:Kt},o(`userProfile.userRank.${a}`)),l>0&&t.createElement("p",{className:Qt},l," ",o("userProfile.nav.header.count.posts")))))},Jt=e=>{var t,a,l,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>Jt(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(l=e.reviewed_by,{postTitle:l.post_title,permalink:l.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Xt=e=>{var t,a;if(!e)return{};const l=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),o=e.link?e.link.startsWith("http")||l?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:o,subtitle:e.subtitle,title:e.title}},ea=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},ta=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},aa=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=mt[a])||void 0===l?void 0:l.ALL}/${(null===(n=mt[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},la=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},na=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0},oa=({SSO_URL:e,UP_BASEPATH:o="user",themeName:i="helloSites",cardUrls:s=Nt,enableCare:r,enableTogether:c,enableEcom:m,enableMySaved:u,userInfo:d,togetherApiDomain:g,userPostsNumber:h,onClickNavigationCard:v,onClickMyProfileButton:p,onClickMenuItem:E,onClickLogout:y,isUserProfileNavigatorMenuHidden:b=!1,isMyHealthEnabled:f=!1,locale:C})=>{const{t:k}=et(),[w,P]=a(h||0),N="marryBaby"===i;l((()=>{if(d&&void 0===h){const e=ot("hhg_user_token");e&&fetch(Ge(((e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+ut(M.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${Oe[e]}`})))(C,N,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,l;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&P((null===(l=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===l?void 0:l.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==d,h,g,N]);const A=n((()=>{let e;return e=N?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?r:"myCommunity"===e?c:"myHealth"===e?f:"eCom"===e?m:"mySaved"!==e||u))}),[N,f]),T=n((()=>"marryBaby"===i?null:t.createElement(st,{color:"tertiary",icon:t.createElement("img",{src:Re.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:zt},k("userProfile.nav.menu.logout"))),[i]),L=t=>{window.location.href=Ge(`${e}${o}/${t}`)},S=e=>{const t=s[e];v?v(t):L(t)};return d?t.createElement("div",{className:jt,"data-theme":i},t.createElement(St,{userInfo:d,themeName:i,onClickMyProfileButton:()=>{p?p():L("profile")}}),t.createElement(Zt,{themeName:i,rank:"member",numberOfPosts:w}),t.createElement("div",{className:Ft},A.map((e=>t.createElement(_,{className:Dt,key:e,themeName:i,type:e,onClick:S})))),!b&&t.createElement(t.Fragment,null,t.createElement(Rt,{themeName:i,locale:C,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(E?E(e.link):L(e.link))}}),T)):null},ia=({SSO_URL:e,UP_BASEPATH:a,isOpen:l,targetAvatar:n,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,closePopup:m,siteType:u="helloSites",dispatchLogout:d,userProfileRouterPush:g,isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v=!1,togetherApiDomain:p,locale:E})=>{const y=t=>{g?g(`/${t}`):e&&(window.location.href=Ge(`${e}${a}/${t}`))},b=e=>{y(e),m()};return t.createElement(Pt,{isOpen:l,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},t.createElement(oa,{SSO_URL:e,UP_BASEPATH:a,themeName:u,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,onClickLogout:()=>{d&&(d(),m())},onClickMenuItem:b,onClickNavigationCard:b,onClickMyProfileButton:()=>{y("profile"),m()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v,togetherApiDomain:p,locale:E}))},sa=({openLogoutPopup:e,onCloseHandler:a,onLogoutHandler:n,siteType:o="helloSites"})=>{const{t:i}=et();return l((()=>{document.body.classList.toggle("noscroll",e)}),[e]),t.createElement(rt,null,t.createElement(Ye,{type:"confirm",isOpen:e,closeIcon:t.createElement("img",{src:Re.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:a},t.createElement(A,null,"helloSites"===o&&t.createElement("img",{src:Re.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),t.createElement("h2",null,i("helloSites"===o?"logout.popup.ask1":"logout.popup.ask.mb")),t.createElement("p",null,i("logout.popup.ask2")),t.createElement(T,{siteType:o},t.createElement(st,{className:"logout-button",color:"tertiary",size:"lg",onClick:n},i("logout.popup.button.logout")),t.createElement(st,{className:"cancel-button",color:"primary",size:"lg",onClick:a},i("logout.popup.button.cancel"))))))},ra=({userInfo:n,siteType:o,onLoginClick:i,SSO_URL:s,currentUrl:r,isMinifyLogin:c,enableCare:m,enableTogether:v,enableEcom:p,isUserProfileNavigatorMenuHidden:E,UP_BASEPATH:y,isMyHealthEnabled:b,togetherApiDomain:f,onLogout:C,style:k,userProfileRouterPush:w,isLoading:P,locale:N,enableMySaved:M})=>{const{t:_}=et(),[A,T]=a(!1),B=(null==n?void 0:n.name)||(null==n?void 0:n.username),[x,U]=a(!1);l((()=>{U(!0)}),[]);const{containerRef:$,onContainerFocus:I,onContainerBlur:R,onButtonMouseDown:O,onClose:j}=wt();return P?t.createElement(u,{size:"sm",color:"transparent",loading:P}):(null==n?void 0:n.id)?t.createElement(t.Fragment,null,t.createElement(L,{ref:$,style:k,tabIndex:0,onBlur:R,onFocus:I},t.createElement("div",{onMouseDown:O},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),t.createElement(d,{size:40,className:"user-avatar",src:null==n?void 0:n.avatar,color:"marryBaby"===o?nt.mbColors.pink:nt.colors.secondaryBase,placeholderText:B&&B.length?B[0].toUpperCase():"A"})),t.createElement(ia,{UP_BASEPATH:y,SSO_URL:s,dispatchLogout:()=>{j(),T(!0)},isOpen:!1,isMyHealthEnabled:b,enableCare:m,enableTogether:v,enableEcom:p,enableMySaved:M,closePopup:j,userInfo:n,siteType:o,isUserProfileNavigatorMenuHidden:E,togetherApiDomain:f,userProfileRouterPush:w,locale:N})),t.createElement(sa,{openLogoutPopup:A,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),T(!1)},siteType:o,onLogoutHandler:()=>e(void 0,void 0,void 0,(function*(){T(!1),document.body.classList.toggle("noscroll",!1),yield C()}))})):t.createElement(S,{style:Object.assign({textDecoration:"none"},k),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:x?void 0:Ge(`${s}?returnUrl=${r}`),"data-site-type":o},c?t.createElement(H,{onClick:i},t.createElement("img",{src:Re.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):t.createElement(t.Fragment,null,"helloSites"===o&&(N===lt.Indonesia?t.createElement("img",{className:"mobile-only",src:Re.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):t.createElement(u,{className:"mobile-only",size:"sm",onClick:i,leftIcon:t.createElement(g,{useCurrentColor:!0,isSolid:!0,size:22}),styles:{root:{paddingLeft:"5px",paddingRight:"8px"},leftIcon:{marginRight:"5px"}}},_("navigation.loginJoin"))),"marryBaby"===o&&t.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},t.createElement(h,{size:"p3",color:nt.mbColors.pink},_("navigation.loginJoin"))),t.createElement(u,{className:"login-btn",size:"md",onClick:i,leftIcon:t.createElement(g,{useCurrentColor:!0,isSolid:!0,size:22})},_("navigation.loginJoin"))))};var ca="spdlGfq",ma="vgS16jX";const ua=({onCareHeaderClick:e,currentUrl:a,careUrlFe:l,btnName:n})=>e?t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):t.createElement("a",{href:l,className:`${ma} care-button no-replace-click`},t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a},n));var da="y5VJdvw",ga="oVhOSCy",ha="pX8OXTM";function va({className:e}){return t.createElement("div",null,t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function pa({siteType:e,type:a,enableSearch:l,className:n}){return"helloSites"===e?t.createElement("div",null,t.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:l?Re.getAssetPath("hamburgerMenuNewWithSearch.svg"):Re.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:a,className:n,loading:"lazy"})):t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const Ea=()=>{const{locale:e,configs:{statics:a},siteType:l}=i(B),n=dt(),{t:o}=et();return t.createElement(v,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?o("navigation.search.input.placeholder"):o("home.search",{site:je[e||"en-PH"]?je[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${a.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:t.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},t.createElement(x,null))})};var ya="wnUb-dV",ba="cjbOxWe",fa="gB4rp89";const Ca=({item:e,menu:a})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:o,onButtonMouseDown:i,onClose:s}=wt({allowBgScroll:!0}),r=ht();return!e.popupType&&e.link?t.createElement(ka,{isNew:e.isNew},t.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(r?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ba},e.name))):t.createElement(ka,{isNew:e.isNew},t.createElement("div",{ref:l,className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:o,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:i,className:ba},"care"===e.id&&t.createElement("a",{className:fa,href:Ge(e.link+"/")},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&t.createElement("div",{className:ya},t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),t.isValidElement(a)?t.cloneElement(a,{onClose:s}):null))},ka=({isNew:e,children:a})=>{const{t:l}=et();return e?t.createElement(gt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},a):t.createElement(t.Fragment,null,a)},wa=({hrefViewMore:e,titleBtnViewMore:a,UrlFE:l,onClosePopup:n,menuItems:o,headingTitle:s})=>{const{siteType:r}=i(B);return t.createElement(U,null,t.createElement($,null,t.createElement(p,{tag:"marryBaby"===r?"h5":"h6",as:"p",fontWeight:"semibold"},s)),null==o?void 0:o.slice(0,6).map(((e,a)=>{const o=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${l}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return t.createElement(I,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":o,"data-is-heading-category":!1,href:o},!yt(o)&&{target:"_blank"},{"data-theme":r,key:a,onClick:n}),t.createElement("div",{className:"icon"},t.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),t.createElement(ka,{isNew:e.isNew},t.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),t.createElement(R,null,t.createElement("img",{src:Re.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),a&&t.createElement(O,{"data-theme":r,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},t.createElement(j,{onClick:n,"data-theme":r,"data-is-heading-category":!1},a,t.createElement(F,null,t.createElement("img",{className:"svg",src:"marryBaby"===r?Re.getAssetPath("chevronRightPink.svg"):Re.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},Pa=({item:e,index:a=0})=>{var l;const{t:n}=et(),{locale:o,configs:{statics:s}}=i(B);if(!e)return null;const r=`${s.CARE_URL_FE}/${null===(l=mt[o])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return t.createElement(D,{key:e.id,href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${a+1}`,"data-event-label":r},t.createElement("img",{src:Re.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),t.createElement(z,null,t.createElement(V,null,t.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),t.createElement(G,null,t.createElement(W,null,e.name),t.createElement(q,null,e.description),t.createElement(K,null,n("home.seeMore"),t.createElement("img",{src:Re.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Na=({title:e,link:a,description:l,cta:n,icon:o})=>{const{siteType:s}=i(B);return t.createElement(Q,{"data-theme":s},t.createElement(Y,null,t.createElement("img",{src:"marryBaby"===s?Re.getAssetPath("navMBSpotlightBgNoData.svg"):Re.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(Z,null,o&&t.createElement("img",{src:o,width:64,height:64,loading:"lazy"}))),t.createElement("div",null,e&&t.createElement(J,null,e),l&&t.createElement(X,null,l),n&&t.createElement("div",null,t.createElement("a",{href:a},t.createElement(st,{theme:s,className:"survey-contact-submit",size:"md"},n)))))},Ma=({title:e,viewMore:a,children:l,link:n,dataEventAction:o=""})=>{const{siteType:s}=i(B);return t.createElement(ee,null,t.createElement(te,null,t.createElement(p,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},e),a&&t.createElement(ae,{"data-event-category":"Hamburger Navigation","data-event-action":o,"data-event-label":n,href:n,"data-theme":s},a,t.createElement("img",{src:"marryBaby"===s?Re.getAssetPath("chevronRightPink.svg"):Re.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},_a=({spotlights:e=[],hrefViewMore:a})=>{const{t:l}=et(),{siteType:n}=i(B);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?t.createElement(t.Fragment,null,t.createElement(le,null,null==e?void 0:e.slice(0,3).map(((e,a)=>t.createElement(Pa,{key:a,index:a,item:e})))),t.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},t.createElement("a",{href:a},t.createElement(st,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):t.createElement(Na,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:a,cta:l("home.navigator.menu.care.homeButton"),icon:Re.getAssetPath("community.svg")}))},Aa=({item:e,index:a=0})=>e?t.createElement(ne,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${a+1}`,"data-event-label":e.link},t.createElement(oe,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),t.createElement(ie,null,e.title)):null,Ta=({spotlightsList:e=[],hrefViewMore:a})=>{const{t:l}=et(),{configs:{statics:n}}=i(B);return t.createElement(Ma,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:a,dataEventAction:"Spotlight See More Click"},0!==e.length?t.createElement(se,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(Aa,{key:a,index:a,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):t.createElement(Na,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:a,cta:l("home.navigator.menu.category.noDatas.cta"),icon:Re.getAssetPath("Spotlight.svg")}))},La=({spotlights:e=[]})=>{const{configs:{statics:a}}=i(B),{t:l}=et();return t.createElement(Ma,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:We(a.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?t.createElement(re,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(ce,{index:a,post:e,key:e.id})))):t.createElement(Na,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${a.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:Re.getAssetPath("community.svg")}))},Sa=({item:e,index:a=0})=>{const{t:l}=et(),{configs:{statics:n}}=i(B);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return t.createElement(me,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":o},t.createElement("img",{src:Re.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(ue,null,t.createElement(de,null,e.title),t.createElement(ge,null,e.subtitle),t.createElement(he,null,l("home.seeMore"),t.createElement("img",{src:Re.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),t.createElement(ve,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Ha=({item:e,index:a=0,color:l})=>{const{t:n}=et(),{configs:{statics:o}}=i(B);if(!e)return null;const s=e.link?e.link.startsWith("http")?e.link:`${o.HOME_PAGE_URL}${e.link}`:void 0,r=()=>t.createElement(ye,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>t.createElement(be,null,t.createElement(fe,null,t.createElement(Ce,null,e.title),t.createElement(ke,null,e.subtitle)),t.createElement(we,null,t.createElement("div",{className:"mobile-only"},n("home.seeMore")),t.createElement("img",{src:Re.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return t.createElement(pe,{href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":s,"data-color":l},t.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),t.createElement("img",{src:Re.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),t.createElement(Ee,null,t.createElement("div",{className:"mobile-only"},r()),t.createElement("div",{className:"desktop-only"},c())),t.createElement("div",{className:"mobile-only"},c()),t.createElement("div",{className:"desktop-only"},r()))},Ba=({hrefViewMore:e,spotlightHealthTools:a=[]})=>{const{t:l}=et(),n=["pink","orange","green"],{siteType:o}=i(B);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightTools")},0!==a.length&&t.createElement(Pe,null,null==a?void 0:a.slice(0,3).map(((e,a)=>"marryBaby"===o?t.createElement(Ha,{key:a,index:a,item:e,color:n[a]}):t.createElement(Sa,{key:a,index:a,item:e})))),0===a.length&&t.createElement(Na,{title:l("home.navigator.menu.healthTools.noDatas.title"),description:l("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:l("home.navigator.menu.healthTools.noDatas.cta"),icon:Re.getAssetPath("community.svg")}))},xa=({closePopup:e,menuItems:a=[]})=>{var l,n;const{siteType:o,ssrMenuContent:{categories:s,healthTools:r,care:c,together:m},activeMenuService:u,configs:{statics:d,enableSearchBar:g},locale:h}=i(B),{t:v}=et();return t.createElement(Ne,{id:"categories-menu"},g?t.createElement(Me,{"data-theme":o,onClick:()=>{window.location.href=`${d.HOME_PAGE_URL}/search`}},t.createElement(Ea,null)):null,t.createElement(_e,null,t.createElement(wa,{UrlFE:d.HOME_PAGE_URL,titleBtnViewMore:v("home.navigator.menuItem.allCategories"),menuItems:a,headingTitle:v("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===u&&t.createElement(Ta,{spotlightsList:(null==s?void 0:s.spotlights)||[],hrefViewMore:`${d.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}/spotlight/`}),"tools"===u&&t.createElement(Ba,{spotlightHealthTools:null==r?void 0:r.spotlights,hrefViewMore:`${d.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}${(null===(l=Fe[h])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===u&&t.createElement(_a,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${d.CARE_URL_FE}/${null===(n=mt[h])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===u&&t.createElement(La,{spotlights:null==m?void 0:m.spotlights})))},Ua=({type:e="home",menuItems:a})=>{const{siteType:l,configs:{enableSearchBar:n}}=i(B),{containerRef:o,onContainerFocus:s,onContainerBlur:r,onButtonMouseDown:c,onClose:m}=wt();return t.createElement(kt,{mediaQueryKey:"mbDown"},t.createElement("header",{className:da},t.createElement("div",{className:ga,ref:o,role:"button",tabIndex:0,onBlur:r,onFocus:s},t.createElement("div",{className:ha,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},t.createElement(va,{className:"mobile-close-icon"}),t.createElement(pa,{siteType:l,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),t.createElement(xa,{menuItems:a,closePopup:m}))))};var $a="q3nL5cp",Ia="_2DNf80G",Ra="Q-glX-n";const Oa=({onClosePopup:e})=>t.createElement("div",{className:`${Ra} close-btn`,onClick:e},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ja=({onClosePopup:e,isDisplay:a,children:l,isNavMenu:n,hideCloseBtn:o})=>t.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!a,"data-is-nav-menu":!!n},t.createElement(E,null,!o&&t.createElement("div",{className:Ia},t.createElement(Oa,{onClosePopup:e})),t.createElement(E,{className:$a},l))),Fa=({careSpecialties:e=[],isOpen:a,onClose:l,spotlights:n=[]})=>{var o;const{t:s}=et(),{locale:r,configs:{statics:c}}=i(B);return t.createElement(ja,{onClosePopup:l,isDisplay:a,isNavMenu:!0},t.createElement(wa,{headingTitle:s("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:s("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:aa({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),t.createElement(_a,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(o=mt[r])||void 0===o?void 0:o.SPECIALTIES}/`}))},Da=({categories:e=[],spotlightsList:a=[],onClose:l,isOpen:n})=>{const{t:o}=et(),{locale:s,configs:{statics:r}}=i(B);return t.createElement(ja,{onClosePopup:l,isDisplay:n,isNavMenu:!0},t.createElement(wa,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:o("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:o("home.navigator.menuItem.healthCategories")}),t.createElement(Ta,{spotlightsList:a,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/spotlight/`}))},za=({communities:e=[],onClose:a,isOpen:l,spotlights:n=[]})=>{const{t:o}=et(),{configs:{statics:s}}=i(B);return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:We(s.TOGETHER_URL_FE),UrlFE:Ge(s.TOGETHER_URL_FE),onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:o("home.navigator.menuItem.allCommunitiesheadingTitle")}),t.createElement(La,{spotlights:n}))},Va=({locale:e,onClose:a,isOpen:l,spotlightHealthTools:n=[],healthTools:o=[]})=>{var s;const{t:r}=et(),{configs:{statics:c}}=i(B),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(s=Fe[e])||void 0===s?void 0:s.HEALTH_TOOLS)||""}`;return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:a,headingTitle:r("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:r("home.navigator.menuItem.allHealthTools"),menuItems:o.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),t.createElement(Ba,{spotlightHealthTools:n,hrefViewMore:m}))},Ga=({onTopBarAppears:e,type:n="home",languageMenu:r,menuItems:c})=>{var m;const{siteType:u,isMobile:d=!1,locale:g,sitewideBanner:h,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:b,configs:{statics:f,enableNavCareBooking:C,enableSearchBar:k,enableNavCare:w,enableProfileMyHealth:P,enableProfileMySaved:N,enableNavTogether:M,enableProfileEcom:_,enableProfileNavigatorMenu:A},userState:{userInfo:T},onLogout:L,userProfileRouterPush:S,isUserLoading:H}=i(B),{t:x}=et(),{SSO_URL:U,HOME_PAGE_URL:$}=f,I=!!p,[R,O]=a(!1),j=o(47),F=o(null),D=o(!1),z="helloSites"===u?null===(m=je[g])||void 0===m?void 0:m.LOGO_TYPE:u,V="undefined"!=typeof window,G=s(tt((()=>{if("home"===n&&V){if(!F.current)return;const e=F.current.getBoundingClientRect();e.top<=0&&window.scrollY>j.current&&window.scrollY>e.height+20&&!D.current&&(D.current=!0,O(!0)),window.scrollY<j.current&&D.current&&(D.current=!1,O(!1)),window.scrollY>=0&&(j.current=window.scrollY)}}),200),[]);l((()=>{null==e||e(!R)}),[R]),l((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),l((()=>{d&&G()}),[d]);const W=v&&!!h;return t.createElement(Ae,{"data-site-type":u,"data-sponsored":I,"data-sitewide-banner-shown":W,"data-header-type":n,"data-collapsed":R,"data-with-search-input":"popup-sub-level"!==n,"data-is-displayed":!0,id:"site-header",ref:F},h,t.createElement(Te,{"data-site-type":u},t.createElement(Le,{"data-site-type":u},t.createElement(Ua,{menuItems:c,type:n}),t.createElement("a",{style:{flexShrink:0},href:$},t.createElement(Se,null,t.createElement(Xe,{style:{display:"flex"},type:z,badge:"id-ID"===g&&t.createElement("img",{src:Re.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===u?t.createElement(qa,{menuItems:c}):k&&t.createElement(Wa,{siteType:u})),t.createElement(He,{"data-site-type":u},"marryBaby"===u?k&&t.createElement(Wa,{siteType:u}):t.createElement(qa,{menuItems:c}),t.createElement(Be,null,C&&t.createElement(kt,{mediaQueryKey:"mbUp"},t.createElement(ua,{careUrlFe:f.CARE_URL_FE,currentUrl:y,btnName:x("login.booking"),onCareHeaderClick:E})),r,t.createElement(ra,{userInfo:T,siteType:u,onLoginClick:b||(()=>{const e=window.location.href;window.location.href=U?Ge(`${U}?returnUrl=${e}`):e}),SSO_URL:We(f.SSO_URL),currentUrl:y,onLogout:L,UP_BASEPATH:De,isMyHealthEnabled:P,enableCare:w,enableTogether:M,enableEcom:_,enableMySaved:N,togetherApiDomain:We(f.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:S,isLoading:H,locale:g})))),p?t.isValidElement(p)?t.cloneElement(p,{isCollapsed:R,locale:g,isMobile:d}):p:null)},Wa=({siteType:e})=>t.createElement(kt,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},t.createElement(Ea,null)),qa=({menuItems:e})=>{const{siteType:a,locale:l,ssrMenuContent:{categories:n,healthTools:o,care:s,together:r}}=i(B);return t.createElement(kt,{mediaQueryKey:"mbUp",style:{height:"100%"}},t.createElement(xe,{"data-site-type":a},null==e?void 0:e.map(((e,a)=>t.createElement(Ca,{key:a,item:e,menu:"categories"===e.popupType?t.createElement(Da,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?t.createElement(Va,{locale:l,healthTools:null==o?void 0:o.items,spotlightHealthTools:null==o?void 0:o.spotlights}):"together"===e.popupType?t.createElement(za,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?t.createElement(Fa,{careSpecialties:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):null})))))},Ka=e=>{var r,c;const{isMobile:m,locale:u,onTopBarAppears:d,languageOptions:g,sponsorComponent:h,sitewideBanner:v,sitewideBannerShown:p,className:E}=e,y=(()=>{const{t:e}=et(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:o,enableNavCare:s,enableNavTogether:r,enableNavEcom:c,statics:m}}=i(B),u="marryBaby"===t;return n((()=>{var t;const n=[];return l&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:u?Re.getAssetPath("categories-mb.svg"):Re.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),o&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=Fe[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:u?Re.getAssetPath("healthtools-mb.svg"):Re.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),r&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:Ge(m.TOGETHER_URL_FE+"/"),thumbnail:u?Re.getAssetPath("community-mb.svg"):Re.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:Ge(m.HOME_PAGE_URL+"/shop"),thumbnail:Re.getAssetPath("nav-icons/shop.svg"),popupType:null}),s&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:Ge(m.HOME_PAGE_URL+"/care"),thumbnail:Re.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===a?null:"care"}),n}),[a,s,r,c])})();(()=>{const{isFirstLogin:e,userState:t}=i(B),{userInfo:a}=t;l((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const b=p&&!!v,f=!!h,C=!!(null===(c=null===(r=null==h?void 0:h.props)||void 0===r?void 0:r.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:k,defaultHeaderHeight:w,headerHeight:P,headerBottom:N}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:i,isMobile:r})=>{const c=o(null),[m,u]=a(0),[d,g]=a(64),h=s(ct((()=>{var e,t,a,l;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(u(n),g((null===(l=c.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);l((()=>(window.addEventListener("resize",h,{passive:!0}),window.addEventListener("scroll",h,{passive:!0}),h(),()=>{window.removeEventListener("resize",h),window.removeEventListener("scroll",h)})),[]),l((()=>{h()}),[r,i,t,e,c.current]);const v=n((()=>{let a=r?64:69;return i&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,i,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:d,headerRef:c}})({isShowingSiteWideBanner:b,isSponsored:f,hasSponsoredBanners:C,isMobile:m});return t.createElement($e,{id:"navigation-v2",style:{"--default-header-height":w+"px","--header-height":`calc(${P}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":N+"px"},className:E},t.createElement("section",{ref:k},t.createElement(Ga,{menuItems:y,type:"home",onTopBarAppears:d,languageMenu:t.createElement(ft,{languageOptions:g,locale:u})})))},Qa=e=>{const a=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return t.createElement(Ue,Object.assign({},a),t.createElement(Ka,Object.assign({},a)))},Ya=t=>e(void 0,void 0,void 0,(function*(){var e,a,l,n,o,i,s,r,c,m,u,d,g,h,v,p,E,y,b,f,C;const k={},w="vi-VN_MB"===t;try{const P="tl-PH"===t?"lang=fil":"";try{const[u,d,g,h]=yield Promise.all([fetch(Ge(`${qe(t)}/wp-json/api/categories${P?"?"+P:""}`)).then((e=>e.json())),fetch(Ge(`${qe(t)}/wp-json/api/spotlights?per_page=10&order_by=start_date${P?"&"+P:""}`)).then((e=>e.json())),fetch(Ge(`${qe(t)}/wp-json/api/${w?"health-tools":"healthtools"}${P?"?"+P:""}`)).then((e=>e.json())),fetch(Ge(`${qe(t)}/wp-json/api/${w?"health-tools":"healthtools"}/favorites${P?"?"+P:""}`)).then((e=>e.json()))]);k.categories={items:(null===(a=null===(e=null==u?void 0:u.data)||void 0===e?void 0:e.map)||void 0===a?void 0:a.call(e,Jt))||[],spotlights:(null===(i=null===(o=null===(n=null===(l=null==d?void 0:d.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===o?void 0:o.call(n,la))||void 0===i?void 0:i.filter(na))||[]},k.healthTools={items:(null===(r=null===(s=null==g?void 0:g.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Xt))||[],spotlights:(null===(m=null===(c=null==h?void 0:h.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Xt))||[]}}catch(e){}if(w||ze.includes(t))try{const[e,a]=yield Promise.all([fetch(Ge(`${Ke()}/api/v1/community?website_url=https://${Oe[t]}`)).then((e=>e.json())),fetch(Ge(`${Ke()}/api/v1/options?website_url=https://${Oe[t]}&meta_key=popular_post`)).then((e=>e.json()))]);k.together={items:(null===(g=null===(d=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.communities)||void 0===d?void 0:d.map)||void 0===g?void 0:g.call(d,Ze))||[],spotlights:(null===(p=null===(v=null===(h=null==a?void 0:a.data)||void 0===h?void 0:h.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,Je))||[]}}catch(e){}if(Ve.includes(t))try{const[e,a]=yield Promise.all([fetch(Ge(Qe()+`/api/specialties?_ishome=1&site=${Oe[t]}`)).then((e=>e.json())),fetch(Ge(Qe()+`/api/search/?site=${Oe[t]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);k.care={items:(null===(b=null===(y=null===(E=null==e?void 0:e._data)||void 0===E?void 0:E.specialties)||void 0===y?void 0:y.map)||void 0===b?void 0:b.call(y,ea))||[],spotlights:(null===(C=null===(f=null==a?void 0:a._data.searches)||void 0===f?void 0:f.map)||void 0===C?void 0:C.call(f,ta))||[]}}catch(e){}}catch(e){console.error(e)}return k})),Za=t=>e(void 0,void 0,void 0,(function*(){return(yield r("nav-menu-content",(()=>Ya(t||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{pt as A,ft as L,Qa as N,ia as P,oa as U,Za as a,St as b,Zt as c,sa as d,ra as e,Ya as g,yt as i};
@@ -1,81 +0,0 @@
1
- import{keyframes as t}from"styled-components";import r,{createContext as i,useState as s,useEffect as a,useMemo as n}from"react";import e from"lodash/throttle";import{B as o}from"./utils-d5e5e420.js";const d=t`
2
- from {
3
- transform: translate3d(0, 100%, 0);
4
- visibility: visible;
5
- }
6
-
7
- to {
8
- transform: translate3d(0, 0, 0);
9
- }
10
- `,l=t`
11
- from {
12
- transform: translate3d(0, -100%, 0);
13
- visibility: visible;
14
- }
15
-
16
- to {
17
- transform: translate3d(0, 0, 0);
18
- }
19
- `,m=t`
20
- from {
21
- transform: translate3d(-100%, 0, 0);
22
- visibility: visible;
23
- }
24
-
25
- to {
26
- transform: translate3d(0, 0, 0);
27
- }
28
- `,f=t`
29
- from {
30
- transform: translate3d(100%, 0, 0);
31
- visibility: visible;
32
- }
33
-
34
- to {
35
- transform: translate3d(0, 0, 0);
36
- }
37
- `,b=t`
38
- from {
39
- transform: translate3d(0, 0, 0);
40
- }
41
-
42
- to {
43
- visibility: hidden;
44
- transform: translate3d(0, 100%, 0);
45
- }
46
- `,v=t`
47
- from {
48
- transform: translate3d(0, 0, 0);
49
- }
50
-
51
- to {
52
- visibility: hidden;
53
- transform: translate3d(-100%, 0, 0);
54
- }
55
- `,_=t`
56
- from {
57
- transform: translate3d(0, 0, 0);
58
- }
59
-
60
- to {
61
- visibility: hidden;
62
- transform: translate3d(100%, 0, 0);
63
- }
64
- `,E=t`
65
- from {
66
- transform: translate3d(0, 0, 0);
67
- }
68
-
69
- to {
70
- visibility: hidden;
71
- transform: translate3d(0, -100%, 0);
72
- }
73
- `,h=t`
74
- from {
75
- opacity: 0;
76
- }
77
-
78
- to {
79
- opacity: 1;
80
- }
81
- `,c=i({isInit:!0}),w=t=>{const r=(t=>"number"==typeof t?t:"undefined"!=typeof window&&window.innerWidth||0)(t);return{smallMobile:r<o.BREAK_POINT_SMALL_MOBILE,mobile:r>=o.BREAK_POINT_SMALL_MOBILE&&r<o.BREAK_POINT_MOBILE,tablet:r>=o.BREAK_POINT_MOBILE&&r<o.BREAK_POINT_TABLET,pc:r>=o.BREAK_POINT_TABLET&&r<o.BREAK_POINT_PC,xl:r>=o.BREAK_POINT_PC}},B=({children:t})=>{const[i,o]=s((()=>({isInit:!0})));a((()=>{const t=e((()=>{o({width:window.innerWidth,height:window.innerHeight,isInit:!1})}),200);return window.addEventListener("resize",t,{passive:!0}),()=>{window.removeEventListener("resize",t)}}),[]);const d=n((()=>w(i.width)),[i.width]);return r.createElement(c.Provider,{value:Object.assign(Object.assign({},i),{sizeGroups:d})},t)};export{c as S,l as a,m as b,f as c,E as d,b as e,v as f,_ as g,h,w as i,B as j,d as s};
@@ -1,339 +0,0 @@
1
- import{a as e}from"./tslib.es6-f7c415e8.js";import t,{useState as i,useCallback as o,useMemo as a,useEffect as n,useRef as s,useReducer as r}from"react";import{c as l,d as c}from"./index-4d5c0771.js";import{g as d,s as h,d as u}from"./cookieHelper-c441527b.js";import{u as p}from"./useTranslations-3e881db9.js";import g from"lodash/debounce";import{I as m,L as C,a as f}from"./constants-22665a95.js";import{I as v}from"./index-531008d2.js";import y,{createGlobalStyle as b}from"styled-components";import{T as w}from"./index-c4680d39.js";import{t as E}from"./theme-808a1a77.js";import{M as L}from"./utils-d5e5e420.js";import x from"react-loading-skeleton";import S from"lodash/shuffle";import{a as k}from"./useOutsideClick-f36ba482.js";import{P as O}from"./paths-8ff149e9.js";import j from"string-format";const I=y.div``,M=y.div`
2
- --searchbar-z-index: 305;
3
- &[data-is-modal='true'] {
4
- position: fixed;
5
- left: 0;
6
- right: 0;
7
- top: 0;
8
- height: var(--mobile-care-searchbar-height, 100%);
9
- overflow-y: auto;
10
- -webkit-overflow-scrolling: touch;
11
- background-color: white;
12
- z-index: var(--searchbar-z-index);
13
- }
14
- `,R=y.section``,T=y.input`
15
- position: fixed;
16
- left: -100%;
17
- top: -100%;
18
- `,A=y(v)`
19
- #booking-search-bar & {
20
- input {
21
- font-size: 16px;
22
- }
23
- }
24
- `,F=b`
25
- .care-popup-open {
26
- overflow: hidden;
27
- position: fixed;
28
- &::before {
29
- content: '';
30
- inset: 0;
31
- position: absolute;
32
- background-color: white;
33
- min-height: 100vh;
34
- min-width: 100vw;
35
- z-index: 2;
36
- }
37
- }
38
- `,N=({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M18 6L6 18",stroke:i||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M6 6L18 18",stroke:i||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),P=({className:e,color:i})=>t.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},t.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:i||"currentColor"})),B=({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.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:i||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M20 20L16 16",stroke:i||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),V=({width:e,height:i})=>t.createElement("svg",{width:e||30,height:i||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),H=y.li`
39
- display: flex;
40
- align-items: center;
41
- gap: 12px;
42
- padding: 8px 16px;
43
-
44
- > :first-child {
45
- flex: 1;
46
- }
47
-
48
- > :nth-child(2) {
49
- flex: 6;
50
- }
51
-
52
- & + li::before {
53
- content: '';
54
- position: absolute;
55
- left: 18px;
56
- right: 18px;
57
- top: 0;
58
- height: 1px;
59
- background-color: ${E.colors.neutral100};
60
- }
61
- `,$=y.div`
62
- display: flex;
63
- position: absolute;
64
- top: 48px;
65
- min-width: 100%;
66
- box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
67
- 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
68
- 0px 0px 1px rgba(0, 0, 0, 0.04);
69
- border-radius: ${e=>e.theme.borderRadius};
70
- background-color: white;
71
- z-index: 30;
72
-
73
- ${L.tdDown} {
74
- position: relative;
75
- top: 0;
76
- box-shadow: initial;
77
- }
78
- `,z=y.ul`
79
- width: 100%;
80
- max-height: 600px;
81
- overflow-y: auto;
82
- `,D=y(P)`
83
- width: 12px;
84
- height: 18px;
85
- `,_=y.li`
86
- position: relative;
87
- cursor: pointer;
88
- padding: 12px 18px;
89
- display: flex;
90
- align-items: center;
91
- gap: 14px;
92
- overflow: hidden;
93
-
94
- ${({isSelected:e})=>e&&"\n &::after {\n content: url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\");\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n "}
95
-
96
- & + li::before {
97
- content: '';
98
- position: absolute;
99
- left: 18px;
100
- right: 18px;
101
- top: 0;
102
- height: 1px;
103
- background-color: ${E.colors.neutral100};
104
- }
105
-
106
- &:not([data-is-denied='true']):hover {
107
- background-color: ${E.colors.neutral50};
108
- }
109
-
110
- &:last-child:hover {
111
- border-bottom-right-radius: 6px;
112
- border-bottom-left-radius: 6px;
113
- }
114
-
115
- &:first-child:hover {
116
- border-top-right-radius: 6px;
117
- border-top-left-radius: 6px;
118
- }
119
-
120
- &[data-is-denied='true'] {
121
- cursor: not-allowed;
122
- }
123
- `,K=y((({count:e,className:i})=>t.createElement(t.Fragment,null,[...Array(e)].map(((e,o)=>t.createElement(H,{className:i,key:o},t.createElement(x,{count:1,height:32}),t.createElement(x,{count:1,height:24})))))))`
124
- &:first-child {
125
- padding-top: 18px;
126
- }
127
- `,Z=({cities:e,isLoading:i,onLocationClick:o,selectedLocation:a})=>{const{t:n,locale:s}=p();return t.createElement($,{"data-testid":"location-search-results"},t.createElement(z,null,i?t.createElement(K,{count:5}):!e||e.length<1?t.createElement(t.Fragment,null,t.createElement(_,{"data-is-denied":"true"},t.createElement(w,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):t.createElement(t.Fragment,null,t.createElement(_,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;o&&o({name:n("booking.searchBar.allLocations"),id:m,slug:null===(e=C[s])||void 0===e?void 0:e.ALL})}},t.createElement(D,{color:E.colors.neutral400}),t.createElement(w,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>t.createElement(_,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),o&&o(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==a?void 0:a.id)===e.id},t.createElement(D,{color:E.colors.neutral400}),t.createElement(w,{size:"md"},e.name)))))))},G="TYPE_CHARACTER",U="REMOVE_CHARACTER",Q="REMOVE_ALL",Y="REMOVE_LAST_VISIBLE_NODE",q="PAUSE_FOR",W="CHANGE_DELETE_SPEED",J="CHANGE_DELAY",X="PASTE_STRING",ee=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,te="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(q,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:i}=this.options||{},o="function"==typeof i?i(e):e.split("");this.typeCharacters(o,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(X,{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(W,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(J,{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(U);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(G,{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(U)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:o}=this.options;return o?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,o)=>{const a={eventName:e,eventArgs:t||{}};return this.state[o]=i?[a,...this.state[o]]:[...this.state[o],a],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const i=[...this.state.eventQueue],o=i.shift();let a=0;if(a=o.eventName===Y||o.eventName===U?"natural"===this.options.deleteSpeed?ee(40,80):this.options.deleteSpeed:"natural"===this.options.delay?ee(120,160):this.options.delay,t<=a)return;const{eventName:n,eventArgs:s}=o;switch(n){case X:case G:{const{character:e}=s,t=document.createTextNode(e);let i=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(i=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:te,character:e,node:i}];break}case U:i.unshift({eventName:Y,eventArgs:{removingCharacterNode:!0}});break;case q:{const{ms:e}=o.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case Q:{const{visibleNodes:e}=this.state,{speed:t}=s,o=[];t&&o.push({eventName:W,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)o.push({eventName:Y,eventArgs:{removingCharacterNode:!1}});t&&o.push({eventName:W,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...o);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 W:this.options.deleteSpeed=o.eventArgs.speed;break;case J:this.options.delay=o.eventArgs.delay}this.options.loop&&(o.eventName===Y||o.eventArgs&&o.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,o])),this.state.eventQueue=i,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(Q,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function oe({inputRef:e,wrapperRef:t,disabled:i}){const{t:o,locale:s}=p(),r=a((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==s&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),S(e).map((e=>o(e)))}),[o,s]);function l(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:t&&t.current&&t.current.querySelector("input")||null}n((()=>{if(i)return;const e=d();e&&(e.placeholder="",new ie({strings:r,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:l,onRemoveNode:c}))}),[e,t])}const ae=y.div`
128
- user-select: none;
129
- input {
130
- pointer-events: none;
131
- background-color: white;
132
- }
133
- `;function ne({focused:e,value:i="",onClick:o,trackingAttributes:n,inputSearchPlaceholder:r}){const{t:l}=p(),c=s(null);oe({wrapperRef:c,disabled:!!r});const d=a((()=>n?{"data-event-category":n.dataEventCategory,"data-event-action":n.dataEventAction,"data-event-label":n.dataEventLabel}:{}),[n]);return t.createElement(ae,Object.assign({onClick:()=>o&&o(),ref:c},d),t.createElement(A,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:t.createElement(B,{color:E.colors.gray400}),placeholder:l("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}const se=y.header`
134
- display: flex;
135
- height: 64px;
136
- align-items: center;
137
- justify-content: space-between;
138
- margin: 0 auto;
139
- position: sticky;
140
- z-index: 99;
141
- background-color: white;
142
- top: 0;
143
- left: 0;
144
- `,re=y.div`
145
- display: inline-flex;
146
- flex: 1;
147
- justify-content: flex-end;
148
- cursor: pointer;
149
- text-decoration: underline;
150
- `,le=y.div`
151
- display: flex;
152
- align-items: center;
153
- margin-left: 16px;
154
- cursor: pointer;
155
- `,ce=y.div`
156
- width: 100%;
157
- margin-left: 24px;
158
- `,de=y(w)`
159
- color: ${E.colors.secondaryDark};
160
- text-align: start;
161
- `,he=({className:e,onLeftClick:i,headingText:o,onRightClick:a,iconLeft:n,textRight:s})=>t.createElement(se,{className:e},t.createElement(le,{onClick:i},n||t.createElement(N,{color:E.colors.gray800})),t.createElement(ce,null,t.createElement(de,{size:"md",type:"bold"},o)),t.createElement(re,{onClick:a},s&&t.createElement("p",null,s))),ue={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},pe={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};var ge;function me(e){const{selectedLocation:t,searchLocationKeywords:i}=e;return t&&i!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function Ce(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case ge.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case ge.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:me(Object.assign(Object.assign({},e),{focused:"none"}));case ge.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case ge.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===f&&(t.searchLocationKeywords=""),t}case ge.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?me(o):o;case ge.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case ge.ChangeInputSearch:{const i=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:i,isLoadingSearchResults:i.trim().length>ue[e.locale]})}case ge.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ge.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case ge.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case ge.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ge.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case ge.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case ge.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case ge.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case ge.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case ge.FetchSearchResultsComplete:{const i=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(i.initialSearchResults=t.payload),i}case ge.FetchCitiesByGeoIpComplete:{let{cities:i}=t.payload;const{default:o}=t.payload;i=i.filter((e=>e.id!==o.id)),i.unshift(o),e.initialSelectedCity&&!i.find((t=>t.id===e.initialSelectedCity.id))&&i.unshift(e.initialSelectedCity);const a=Object.assign(Object.assign({},e),{defaultCity:o,initialCities:i,cities:i});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(a.selectedLocation=o,a.searchLocationKeywords=o.name),a}case ge.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case ge.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case ge.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case ge.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case ge.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case ge.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case ge.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case ge.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case ge.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(ge||(ge={}));const fe=y.div`
162
- display: flex;
163
- gap: 16px;
164
- ${L.mbDown} {
165
- flex-direction: column;
166
- padding: 14px;
167
- background-color: ${E.colors.primary50};
168
-
169
- input {
170
- filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))
171
- drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))
172
- drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
173
- }
174
- }
175
-
176
- input {
177
- background-color: white;
178
- }
179
- `,ve=y.div`
180
- position: relative;
181
- `,ye=y(ve)`
182
- flex: 1;
183
- `,be=y(ve)`
184
- flex: 2;
185
- `,we=y((({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:i||"currentColor"}))))`
186
- display: none;
187
- &.shown {
188
- display: block;
189
- }
190
- `,Ee=()=>t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"})),Le=y.button`
191
- min-height: 100%;
192
- border-radius: 6px;
193
- background-color: ${({theme:e})=>e.colors.primaryBase};
194
- display: flex;
195
- justify-content: center;
196
- align-items: center;
197
- gap: 11px;
198
- cursor: pointer;
199
- flex: 0.3;
200
-
201
- ${L.mbDown} {
202
- --margin: 16px;
203
- min-height: 44px;
204
- margin: var(--margin);
205
- width: calc(100% - var(--margin) * 2);
206
- position: absolute;
207
- bottom: 0;
208
- }
209
-
210
- &:hover {
211
- background-color: ${({theme:e})=>e.colors.primaryHover};
212
- }
213
-
214
- &:active {
215
- background-color: ${({theme:e})=>e.colors.primaryActive};
216
- }
217
-
218
- &:focus-visible {
219
- outline: 1px solid black;
220
- }
221
- `,xe=y(w)`
222
- font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
223
- `,Se=({onClick:e})=>{const{t:i}=p(),o=i("booking.searchBar.searchButton");return t.createElement(Le,{onClick:e,title:o},t.createElement(Ee,null),t.createElement(xe,{size:"s3",color:"white"},o))};function ke({isMobile:e,state:i,dispatch:n,debouncedFetchCitiesByKeyword:r,debouncedFetchSearchResults:l,focusLocationInput:c,focusSearchInput:d,renderLocationResults:h,renderSearchResults:u,locationTrackingAttributes:g,trackingAttributes:m,onSearch:C,initalSearchValue:v}){const y=s(null),b=s(null),{focused:w,searchLocationKeywords:L,geoLocationPermission:x,selectedLocation:S,searchKeywords:O,inputSearchPlaceholder:j}=i,{t:I}=p();oe({wrapperRef:b,disabled:!!j}),k(y,(()=>{e||n({type:ge.ClickOutsideInputLocation})})),k(b,(()=>{e||n({type:ge.ClickOutsideInputSearch})}));const M=a((()=>"granted"===x&&(null==S?void 0:S.id)===f?E.colors.primaryBase:E.colors.gray400),[x,S]),R=o((function(e){n({type:ge.ChangeInputSearch,payload:e}),"function"!=typeof C&&(e.trim().length>ue[i.locale]||v?l(e.trim(),i):(l.cancel(),n({type:ge.DisplayInitialSearchResults})))}),[n,i]),T=o((function(e){n({type:ge.ChangeInputLocation,payload:e}),e.trim().length>ue[i.locale]?r(e.trim()):(r.cancel(),n({type:ge.DisplayInitialCities}))}),[r,n]);return t.createElement(fe,null,t.createElement(ye,{ref:y},t.createElement(A,{inputClassName:"location"===w?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:t.createElement(P,{className:"location-pin-icon",color:M}),actionIcon:t.createElement(we,{color:E.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){n({type:ge.ClearInputLocation}),r.cancel(),c()},value:L,onChange:T,onFocus:()=>n({type:ge.FocusInputLocation}),size:"md",trackingAttributes:g}),!e&&h()),t.createElement(be,{ref:b},t.createElement(A,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:t.createElement(we,{color:E.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){n({type:ge.ClearInputSearch}),l.cancel(),l("",i),d()},value:O,onChange:R,onFocus:()=>n({type:ge.FocusInputSearch}),inputClassName:"search"===w?"focused":void 0,size:"md",trackingAttributes:m,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&C&&C({cityId:i.selectedLocation.id,keyword:O})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&u()),i.autoCompleteDisabled&&!i.isMobile&&t.createElement(Se,{onClick:()=>{C({cityId:i.selectedLocation.id,keyword:O})}}))}const Oe=()=>t.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},t.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"})),je=()=>t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.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"})),Ie=()=>t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},t.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=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},t.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=y.header`
224
- display: flex;
225
- justify-content: space-between;
226
- padding: 12px 24px;
227
- background-color: ${E.colors.neutral50};
228
- box-shadow: inset 0px 1px 0px #e4e8ec;
229
- `,Te=y.div`
230
- display: grid;
231
- flex: 2;
232
- align-items: center;
233
- gap: 16px;
234
- grid-template-columns: 16px 1fr;
235
- `,Ae=y.p`
236
- color: ${E.colors.neutral800};
237
- font-size: 14px;
238
- font-weight: ${E.sizes.fwSemiBold};
239
- letter-spacing: -0.2px;
240
- line-height: 22px;
241
- `,Fe=y.button`
242
- flex: 1;
243
- cursor: pointer;
244
- text-align: end;
245
- `,Ne=y.section`
246
- padding: 12px 16px;
247
- --rowGap: 16px;
248
- --graphicSize: 32px;
249
-
250
- ${L.tdUp} {
251
- --rowGap: 8px;
252
- }
253
- `,Pe=y.ul`
254
- --gap: 16px;
255
- ${L.tdUp} {
256
- --gap: 8px;
257
- }
258
-
259
- display: grid;
260
- overflow: hidden;
261
- gap: var(--gap);
262
- transition: max-height 0.8s ease-out;
263
-
264
- ${({isMore:e})=>e&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}
265
-
266
- ${({isShown:e})=>e&&"\n max-height: 600px;\n "}
267
-
268
- @media (prefers-reduced-motion) {
269
- transition: none;
270
- }
271
-
272
- ${L.tdUp} {
273
- grid-template-columns: 1fr 1fr;
274
- } ;
275
- `,Be=y(w)`
276
- margin-top: 12px;
277
- margin-bottom: 8px;
278
- cursor: pointer;
279
- text-align: start;
280
- text-transform: capitalize;
281
- `,Ve=y.li`
282
- display: flex;
283
- align-items: center;
284
- gap: var(--rowGap);
285
- cursor: pointer;
286
- &.not-nav {
287
- cursor: default;
288
- }
289
- `,He=y.div`
290
- --wrapper-size: var(--graphicSize);
291
- border-radius: calc(var(--wrapper-size) / 2);
292
- background-color: var(--neutral50);
293
- width: var(--wrapper-size);
294
- height: var(--wrapper-size);
295
- aspect-ratio: 1/1;
296
- overflow: hidden;
297
-
298
- ${({type:e})=>e&&"doctors"===e&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}
299
-
300
- img {
301
- width: var(--graphicSize);
302
- height: var(--graphicSize);
303
- ${({type:e})=>e&&"doctors"===e?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}
304
- }
305
-
306
- &:focus-visible {
307
- outline: 1px solid ${E.colors.gray600};
308
- }
309
- `,$e=y(w)`
310
- line-height: 22px;
311
- letter-spacing: -0.2px;
312
-
313
- ${L.tdUp} {
314
- &[data-size='p3'] {
315
- font-size: 14px;
316
- }
317
- }
318
- `,ze=y.figure`
319
- max-width: var(--graphicSize);
320
- min-width: var(--graphicSize);
321
- `,De=y.svg`
322
- margin: 0 auto;
323
- display: block;
324
- `,_e=y.div`
325
- display: grid;
326
- place-items: center;
327
- `,Ke={doctors:({width:e,height:i})=>t.createElement("svg",{width:e||32,height:i||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{clipPath:"url(#clip0_14712_400114)"},t.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),t.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"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_14712_400114"},t.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:i})=>t.createElement("svg",{width:e||30,height:i||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),t.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:i,imageUrl:o,className:n,onClickItem:s})=>{const r=a((()=>{const i=Ke[e]||V;return t.createElement(i,{width:32,height:"services"===e?32:24})}),[e]);return t.createElement(Ve,{onClick:()=>s&&s(i),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(i)},tabIndex:0,role:"button",className:n},t.createElement(ze,null,"hospitals"===e?t.createElement(De,{width:"12",height:"16",viewBox:"0 0 12 16"},t.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"})):t.createElement(He,{type:e},o?t.createElement("img",{src:o,width:32,height:"services"===e?32:24,loading:"lazy"}):r)),t.createElement($e,{color:E.colors.gray800,size:"p3"},i.name))},Ge=({type:e,data:o,state:n,dispatch:s,itemsToShow:r,itemsToShowDesktop:l,isMobile:c,isLoading:d,keyword:h,isNavResultItem:u})=>{const[g,m]=i(!1),{t:f,locale:v}=p(),{selectedLocation:y,searchKeywords:b}=n,L=a((()=>C[v]),[v]),S="ms-MY"===v,k=a((()=>({doctors:{name:f("booking.searchPopup.doctors"),icon:t.createElement(Oe,null),slug:L.DOCTOR},services:{name:f("booking.searchPopup.services"),icon:t.createElement(je,null),slug:L.SERVICE},hospitals:{name:f("booking.searchPopup.hospitals"),icon:t.createElement(Ie,null),slug:L.HOSPITAL},specialties:{name:f("booking.searchPopup.specialties"),icon:t.createElement(Me,null),slug:L.SPECIALTIES}})),[e,L]),O=a((()=>k[e].slug),[k]),j=c?r:l;function I(t){let i="";switch(e){case"specialties":i=`/${y.slug}/${k.doctors.slug}/${t.slug}`;break;case"services":i=`/${y.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:ge.SelectSearchResult,payload:{name:t.name,url:i}})}function M(i){return t.createElement(Ze,{key:i.id,item:i,type:e,imageUrl:i.logo||i.avatar||i.thumbnail,className:u?"":"not-nav",onClickItem:u&&I})}return t.createElement("section",null,t.createElement(Re,null,t.createElement(Te,null,k[e].icon,t.createElement(Ae,null,k[e].name)),(h.trim().length<=ue[v]||S)&&t.createElement(Fe,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${y.slug}/${O}`}t&&s({type:ge.NavigateTo,payload:t})}},t.createElement(w,{size:"p3",color:E.colors.primaryBase},f("booking.searchPopup.seeAll")))),(d||o&&o.length>0)&&t.createElement(Ne,null,t.createElement(Pe,null,d&&Array(2).fill(void 0).map(((i,o)=>t.createElement(Ve,{key:e+"loading"+o},t.createElement(ze,null,t.createElement(_e,null,t.createElement(x,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),t.createElement(x,{width:120,height:24})))),!d&&o&&o.length>0&&o.slice(0,j).map(M)),t.createElement(Pe,{isShown:g,isMore:!0},o.slice(j,-1).map(M)),"specialties"===e&&j<o.length&&!d&&t.createElement("button",{onClick:()=>m(!g)},t.createElement(Be,{size:"p3",color:E.colors.primaryBase},f(g?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<o.length||S)&&!d&&h.trim().length>ue[v]&&t.createElement("button",{onClick:function(){const{slug:t}=k[e],i=`/${y.slug}/${t}?q=${b}`;s({type:ge.NavigateTo,payload:i})}},t.createElement(Be,{size:"p3",color:E.colors.primaryBase},f(`booking.searchPopup.searchIn.${e}`,{name:h})))),!d&&0===(null==o?void 0:o.length)&&t.createElement(Ne,null,t.createElement(w,{size:"sm",color:E.colors.gray400},f("booking.searchBar.noResults"))))},Ue=y.section`
328
- background-color: white;
329
- border-radius: 4px;
330
- position: absolute;
331
- width: 100%;
332
- z-index: 30;
333
-
334
- ${L.tdUp} {
335
- box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
336
- 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
337
- 0px 0px 1px rgba(0, 0, 0, 0.04);
338
- }
339
- `,Qe=({data:e,state:i,dispatch:o,isMobile:a,isLoading:n,keyword:s,hideResults:r,isNavResultItem:l})=>t.createElement(Ue,null,e&&e.map((e=>r&&r.includes(e.type)?t.createElement(t.Fragment,null):t.createElement(Ge,{type:e.type,state:i,dispatch:o,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:a,isLoading:n,keyword:s,isNavResultItem:l})))),Ye=(e,t,i)=>j(e,Object.assign(Object.assign({},t),{domain:c[i||"en-PH"]}));const qe=({isMobile:c,careApiDomain:v,geoLocationPermission:y,geoLocationCoordinates:b,initialSelectedCity:w,initialSearchValue:E="",careFrontDomain:L="/care",isDebug:x=!1,askForGeolocationPermission:S=!1,gaTrackingSearchBar:k,gaTrackingLocationSearch:j,autoCompleteDisabled:A=!1,inputSearchPlaceholder:N="",isOptionAllLocation:P=!1,hideResults:B=[],isNavResultItem:V=!0,routerPush:H,onGeoLocationPermissionChange:$,onSearch:z,onChangeLocation:D})=>{const{t:_,locale:K}=p(),G=s(null),U=s(null),[Q,Y]=i(void 0),[q,W]=i(!1),{geoLocationPermission:J,geoLocationCoordinates:X,requestGeoLocation:ee}=function(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(d(l))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=d(l);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),r=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};h(l,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{u(l),t("denied")}))}),[]);return a((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:r})),[e,n])}(),[te,ie]=r(Ce,pe,(e=>Object.assign(Object.assign({},e),{isDebug:x,isMobile:c,geoLocationPermission:y||J||"unset",geoLocationCoordinates:b||X||null,searchKeywords:E,initialSelectedCity:w||null,selectedLocation:w||e.selectedLocation||null,searchLocationKeywords:(null==w?void 0:w.name)||e.searchLocationKeywords,autoCompleteDisabled:A,inputSearchPlaceholder:N,locale:K}))),{navigateTo:oe,focused:ae,isLoadingCities:se,cities:re,searchKeywords:le,geoLocationPermission:ce,selectedLocation:de,initialSelectedCity:me,defaultCity:fe,searchResults:ve,isLoadingSearchResults:ye,isMobileModalOpened:be,inputSearchPlaceholder:we}=te,{fetchCitiesByLocation:Ee,fetchCitiesByKeyword:Le,fetchSearchResults:xe}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(o,a={}){const n=`${t}${o}`;return e({type:ge.FetchCitiesStart}),fetch(Ye(n,a,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:ge.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const n={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[a(O.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(O.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const o=Object.assign({},t);if(i){const e=o.cities.map((e=>e.id));o.cities=o.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:ge.FetchCitiesByGeoIpComplete,payload:o})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(O.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:ge.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(o,a){const n=`${t}${O.GET_SEARCH_V2}`;e({type:ge.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:l}=a;let c="";if(!r||!s)return void e({type:ge.FetchSearchResultsFinish});r.id===f?l||(c=s.id):c=r.id===m?"":r.id;const d=(null==l?void 0:l.lat)||"",h=(null==l?void 0:l.lng)||"";return fetch(Ye(n,{domain:t,searchType:"global",keyword:o.trim().length>ue[i]?o.trim():"",city:c===f?"":c,lat:d,lng:h},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:ge.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:ge.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:ie,locale:K,careApiDomain:v}),Oe=a((()=>{var e;return{id:f,name:_("booking.searchBar.currentLocation"),slug:null===(e=C[K])||void 0===e?void 0:e.CURRENT}}),[_,K]),je=a((()=>g(Le,400)),[Le]),Ie=a((()=>g(xe,400)),[xe]);n((()=>{""!==E&&E!==te.searchKeywords&&ie({type:ge.UpdateInitialSearchValue,payload:E})}),[E]),n((()=>{S&&(null==de?void 0:de.id)===f&&"unset"===ce&&ee()}),[S,de,ce]),n((()=>{y||ce===J||("granted"===J&&X?ie({type:ge.GrantGeoLocationPermission,payload:X}):"denied"===J&&ie({type:ge.DenyGeoLocationPermission}))}),[ce,J,X,y]),n((()=>{oe&&(H?H(oe):window.location.href=`${L}${oe}`)}),[oe]);const Me=o((function(){ie({type:ge.SelectCurrentLocation,payload:Oe})}),[_,ie]);n((()=>{var e;"denied"===ce||me||ie({type:ge.SelectLocation,payload:{name:_("booking.searchBar.allLocations"),id:m,slug:null===(e=C[K])||void 0===e?void 0:e.ALL}}),$&&$(ce,te.geoLocationCoordinates),c&&"granted"===ce&&de&&ie({type:ge.FocusInputSearch}),Ee({coordinates:te.geoLocationCoordinates})}),[ce]),n((()=>{de&&fe&&xe(te.searchKeywords,te)}),[de,fe]),n((()=>{N!==we&&ie({type:ge.SetInputSearchPlaceholder,payload:N})}),[N,we]),n((()=>{be?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[be]);const Re=o((function(e){"ms-MY"===K&&W(!0),ie({type:ge.SelectLocation,payload:e}),"ms-MY"!==K&&Fe(),D&&D(e)}),[_,ie]);function Te(){"ms-MY"===K&&W(!0),c&&"granted"!==te.geoLocationPermission?ee():(Me(),"ms-MY"!==K&&Fe())}function Ae(){var e;G.current&&(null===(e=G.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Fe(){var e;G.current&&(null===(e=G.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Ne(){ie({type:ge.CloseMobileModal})}function Pe(){return"location"!==ae?null:t.createElement(Z,{isLoading:se,cities:re,onLocationClick:Re,onCurrentLocationClick:Te,isLocationLoading:se,geoLocationPermission:ce,selectedLocation:de,isOptionAllLocation:P})}function Be(){return"search"!==ae?null:te.autoCompleteDisabled?c?t.createElement(Se,{onClick:()=>{z({cityId:te.selectedLocation.id,keyword:le}),Ne()}}):null:t.createElement(Qe,{data:ve,state:te,dispatch:ie,isMobile:!1,keyword:le,isLoading:ye,hideResults:B,isNavResultItem:V})}function Ve(){return t.createElement(ke,{isMobile:c,state:te,dispatch:ie,debouncedFetchCitiesByKeyword:je,debouncedFetchSearchResults:Ie,focusLocationInput:Ae,focusSearchInput:Fe,renderLocationResults:Pe,renderSearchResults:Be,trackingAttributes:k,locationTrackingAttributes:j,onSearch:z,initalSearchValue:E})}return n((()=>{if(window.visualViewport){const e=e=>{const t=e.target;Y(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[Y]),n((()=>{if(de&&q&&"ms-MY"===K){const e=`/${de.slug}/hospital`;ie({type:ge.NavigateTo,payload:e}),W(!1)}}),[q,K,de]),c?t.createElement(t.Fragment,null,t.createElement(F,null),t.createElement(T,{ref:U}),t.createElement(M,{id:"booking-search-bar",ref:G,"data-is-modal":c&&be,style:{"--mobile-care-searchbar-height":be&&Q?`${Q}px`:"100%"}},be?t.createElement(t.Fragment,null,t.createElement(R,null,t.createElement(he,{headingText:_("booking.searchBar.searchButton"),onLeftClick:Ne}),Ve()),Pe(),Be()):t.createElement(ne,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){U.current&&U.current.focus(),ie({type:ge.OpenMobileModal}),yield Promise.resolve(),G.current&&(null===(t=G.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ae,value:le,trackingAttributes:k,inputSearchPlaceholder:N}))):t.createElement(I,{id:"booking-search-bar",ref:G},Ve())};var We;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(We||(We={}));var Je=Object.freeze({__proto__:null,get RedirectType(){return We}});export{qe as B,Je as t};
@@ -1 +0,0 @@
1
- import{a as o}from"./tslib.es6-f7c415e8.js";import{useState as t,useEffect as i,useCallback as e}from"react";import{a as l}from"./getDynamicHealthTool-d16f3b54.js";const n=n=>{const[r,a]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield l(n);a(o)}))}),[l,n]);const s=e((o=>{var t;return(null===(t=r.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[r]);return{allTools:r,getHealthToolLink:s}};export{n as u};