@hhgtech/hhg-components 1.28.35 → 1.28.36

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 (324) hide show
  1. package/build/babyGrowth.js +30 -14
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/atoms/alert/index.d.ts +1 -2
  5. package/build/components/atoms/avatar/index.d.ts +1 -2
  6. package/build/components/atoms/divider/index.d.ts +1 -2
  7. package/build/components/atoms/fileDropdown/index.d.ts +1 -2
  8. package/build/components/atoms/heading/index.d.ts +1 -2
  9. package/build/components/atoms/marryBabyText/index.d.ts +1 -2
  10. package/build/components/atoms/marryBabyText/index.styled.d.ts +4 -2
  11. package/build/components/atoms/pagination/index.d.ts +1 -2
  12. package/build/components/mantine/slider/index.styled.d.ts +7 -1
  13. package/build/components/mantine/text/index.styled.d.ts +1 -9
  14. package/build/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
  15. package/build/components/molecules/categoryCard/index.d.ts +1 -2
  16. package/build/components/molecules/dropdown/index.d.ts +1 -2
  17. package/build/components/molecules/dropdown/index.styled.d.ts +1 -1
  18. package/build/components/molecules/floatButtonGroup/index.d.ts +1 -2
  19. package/build/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
  20. package/build/components/molecules/tabs/index.d.ts +1 -2
  21. package/build/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
  22. package/build/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
  23. package/build/components.js +1 -1
  24. package/build/{constants-c397b152.js → constants-437bb4bf.js} +23 -23
  25. package/build/{constants-726f75de.js → constants-80dd2233.js} +1 -1
  26. package/build/constants.js +1 -1
  27. package/build/{core-4602825d.js → core-80e9cff8.js} +1 -1
  28. package/build/ecom.js +1 -1
  29. package/build/esm/babyGrowth.js +45 -29
  30. package/build/esm/cache.js +1 -1
  31. package/build/esm/care.js +1 -1
  32. package/build/esm/components/atoms/alert/index.d.ts +1 -2
  33. package/build/esm/components/atoms/avatar/index.d.ts +1 -2
  34. package/build/esm/components/atoms/divider/index.d.ts +1 -2
  35. package/build/esm/components/atoms/fileDropdown/index.d.ts +1 -2
  36. package/build/esm/components/atoms/heading/index.d.ts +1 -2
  37. package/build/esm/components/atoms/marryBabyText/index.d.ts +1 -2
  38. package/build/esm/components/atoms/marryBabyText/index.styled.d.ts +4 -2
  39. package/build/esm/components/atoms/pagination/index.d.ts +1 -2
  40. package/build/esm/components/mantine/slider/index.styled.d.ts +7 -1
  41. package/build/esm/components/mantine/text/index.styled.d.ts +1 -9
  42. package/build/esm/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
  43. package/build/esm/components/molecules/categoryCard/index.d.ts +1 -2
  44. package/build/esm/components/molecules/dropdown/index.d.ts +1 -2
  45. package/build/esm/components/molecules/dropdown/index.styled.d.ts +1 -1
  46. package/build/esm/components/molecules/floatButtonGroup/index.d.ts +1 -2
  47. package/build/esm/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
  48. package/build/esm/components/molecules/tabs/index.d.ts +1 -2
  49. package/build/esm/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
  50. package/build/esm/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
  51. package/build/esm/components.js +1 -1
  52. package/build/esm/{constants-54937396.js → constants-4c45be75.js} +1 -1
  53. package/build/esm/{constants-06083c39.js → constants-c3b0c92c.js} +25 -25
  54. package/build/esm/constants.js +1 -1
  55. package/build/esm/{core-7b00c0e3.js → core-5b21c19e.js} +1 -1
  56. package/build/esm/ecom.js +1 -1
  57. package/build/esm/footer.js +1 -1
  58. package/build/esm/gAssets.js +1 -1
  59. package/build/esm/getDynamicHealthTool-2e9a5548.js +1 -0
  60. package/build/esm/{getSocialList-b274bbf9.js → getSocialList-3e7a32e3.js} +1 -1
  61. package/build/esm/hooks.js +1 -1
  62. package/build/esm/i18n.js +1 -1
  63. package/build/esm/i18nV2.js +1 -1
  64. package/build/esm/index-020361fe.js +177 -0
  65. package/build/esm/{index-c573407d.js → index-15c00b1c.js} +1 -1
  66. package/build/esm/{index-c224c645.js → index-17537d5b.js} +1 -1
  67. package/build/esm/index-1782f56e.js +1 -0
  68. package/build/esm/{index-6803e2f2.js → index-17d273a3.js} +5 -5
  69. package/build/esm/{index-fa9d0948.js → index-1b2689ee.js} +1 -1
  70. package/build/esm/{index-61b510c9.js → index-2eac1ec8.js} +1 -1
  71. package/build/esm/{index-cc5735d3.js → index-4eb2530b.js} +1 -1
  72. package/build/esm/{index-26732bc8.js → index-6536dd4e.js} +9 -9
  73. package/build/esm/index-6c2d86ad.js +1 -0
  74. package/build/esm/{index-d943277b.js → index-72cd7c00.js} +358 -361
  75. package/build/esm/{index-19d6e493.js → index-9d393a92.js} +1 -1
  76. package/build/esm/{index-4c59e854.js → index-9d86c3a8.js} +1 -1
  77. package/build/esm/index-a1e1a441.js +1 -0
  78. package/build/esm/{index-0d739df3.js → index-a60bd3f2.js} +1 -1
  79. package/build/esm/index-a903d8ce.js +1 -0
  80. package/build/esm/{index-0d048082.js → index-c22300e9.js} +1 -1
  81. package/build/esm/index-c9c584ed.js +1 -0
  82. package/build/esm/{index-2eb76153.js → index-e7f889b2.js} +1 -1
  83. package/build/esm/{index-d54f80f3.js → index-f0206e98.js} +1 -1
  84. package/build/esm/{index-db160921.js → index-f64ac5b4.js} +1 -1
  85. package/build/esm/{index-6b632496.js → index-f75306ca.js} +1 -1
  86. package/build/esm/index.js +1 -1
  87. package/build/esm/{index.styled-c22aa342.js → index.styled-551f3c76.js} +5 -5
  88. package/build/esm/{index.styled-6d8c2436.js → index.styled-57535894.js} +178 -197
  89. package/build/esm/{index.styled-46a73cde.js → index.styled-5c99d64b.js} +233 -235
  90. package/build/esm/index.styled-780df456.js +50 -0
  91. package/build/esm/{index.styles-e55de146.js → index.styles-874b1834.js} +146 -160
  92. package/build/esm/lead.js +1 -1
  93. package/build/esm/mantine.js +1 -1
  94. package/build/esm/misc.js +1 -1
  95. package/build/esm/navigation.js +1 -1
  96. package/build/esm/onboardingV2.js +9 -9
  97. package/build/esm/pwg.js +1 -1
  98. package/build/esm/{routing-4b2567b9.js → routing-a8a2d2fd.js} +1 -1
  99. package/build/esm/screenSizeContext-dff03e2b.js +81 -0
  100. package/build/esm/subot.js +129 -132
  101. package/build/esm/together/components/atoms/notificationBar/index.d.ts +1 -1
  102. package/build/esm/together/components/molecules/submitReportForm/index.d.ts +1 -2
  103. package/build/esm/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
  104. package/build/esm/together.js +1 -1
  105. package/build/esm/{types-5cc7e426.js → types-07a8f7f9.js} +1 -1
  106. package/build/esm/{types-416f316b.js → types-9b65a599.js} +15 -15
  107. package/build/esm/types.js +1 -1
  108. package/build/esm/{useCategory-f09c0218.js → useCategory-8582dedd.js} +1 -1
  109. package/build/esm/useHealthToolCache-5b104f1e.js +1 -0
  110. package/build/esm/{usePlacesAutocomplete-10260e15.js → usePlacesAutocomplete-3f0cff61.js} +1 -1
  111. package/build/esm/{useRafState-2c97b94f.js → useRafState-27d2b972.js} +1 -1
  112. package/build/esm/{useTranslations-d8df7d65.js → useTranslations-14b7fcc5.js} +1 -1
  113. package/build/esm/{utils-835d4db7.js → utils-0b2c5aec.js} +1 -1
  114. package/build/esm/{utils-81962957.js → utils-cca2af3a.js} +1 -1
  115. package/build/esm/vaccination.js +1 -1
  116. package/build/footer.js +1 -1
  117. package/build/gAssets.js +1 -1
  118. package/build/{getDynamicHealthTool-82fe270c.js → getDynamicHealthTool-fad842aa.js} +1 -1
  119. package/build/{getSocialList-6be3fefa.js → getSocialList-72284d55.js} +1 -1
  120. package/build/hooks.js +1 -1
  121. package/build/i18n.js +1 -1
  122. package/build/i18nV2.js +1 -1
  123. package/build/{index-ef957176.js → index-18823495.js} +1 -1
  124. package/build/index-18bee338.js +1 -0
  125. package/build/{index-1c2f6c28.js → index-24290a1e.js} +1 -1
  126. package/build/{index-884a509d.js → index-28f61b63.js} +1 -1
  127. package/build/{index-c7d0c270.js → index-3e31d08a.js} +1 -1
  128. package/build/index-3ec29f74.js +1 -0
  129. package/build/{index-cdf4c565.js → index-411b2c54.js} +7 -7
  130. package/build/{index-69ba0774.js → index-461460ac.js} +1 -1
  131. package/build/{index-54d36029.js → index-4af92d15.js} +1 -1
  132. package/build/{index-943aa021.js → index-536d19f8.js} +5 -5
  133. package/build/{index-5682d171.js → index-66d800b3.js} +9 -9
  134. package/build/{index-97fda56b.js → index-67f50ae5.js} +1 -1
  135. package/build/{index-65d642e7.js → index-7e3aeed4.js} +1 -1
  136. package/build/{index-1d0c568a.js → index-81ec6599.js} +1 -1
  137. package/build/{index-64635fb4.js → index-88ff79b6.js} +1 -1
  138. package/build/{index-b6c92d6d.js → index-95d71ef9.js} +1 -1
  139. package/build/{index-00e19679.js → index-a14ac95c.js} +1 -1
  140. package/build/{index-9e1da0ee.js → index-a527fd86.js} +1 -1
  141. package/build/{index-b4764862.js → index-c9dc742a.js} +359 -362
  142. package/build/{index-f163ff61.js → index-cc31ada4.js} +1 -1
  143. package/build/{index-11947038.js → index-edb98431.js} +1 -1
  144. package/build/{index-e3970aeb.js → index-f62932f3.js} +1 -1
  145. package/build/index.js +1 -1
  146. package/build/{index.styled-c87b2587.js → index.styled-228e96a3.js} +5 -5
  147. package/build/{index.styled-ea2e2d8f.js → index.styled-2ce77f4d.js} +232 -234
  148. package/build/{index.styled-563af73e.js → index.styled-6d41d939.js} +118 -137
  149. package/build/{index.styled-aa832b7c.js → index.styled-86cd31ca.js} +6 -6
  150. package/build/{index.styles-8bca236c.js → index.styles-b3f7ae61.js} +146 -160
  151. package/build/lead.js +1 -1
  152. package/build/mantine.js +1 -1
  153. package/build/misc.js +1 -1
  154. package/build/navigation.js +1 -1
  155. package/build/onboardingV2.js +5 -5
  156. package/build/pwg.js +1 -1
  157. package/build/{routing-d0bfcc30.js → routing-0dd231c5.js} +1 -1
  158. package/build/screenSizeContext-0e841cc0.js +81 -0
  159. package/build/subot.js +91 -94
  160. package/build/together/components/atoms/notificationBar/index.d.ts +1 -1
  161. package/build/together/components/molecules/submitReportForm/index.d.ts +1 -2
  162. package/build/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
  163. package/build/together.js +1 -1
  164. package/build/{types-3785bf95.js → types-439160fd.js} +15 -15
  165. package/build/{types-49cbbac9.js → types-b4747009.js} +1 -1
  166. package/build/types.js +1 -1
  167. package/build/{useCategory-8e19b607.js → useCategory-718ae913.js} +1 -1
  168. package/build/{useHealthToolCache-00ad982d.js → useHealthToolCache-40a88025.js} +1 -1
  169. package/build/{usePlacesAutocomplete-dbe03117.js → usePlacesAutocomplete-54de454b.js} +1 -1
  170. package/build/{useRafState-dfe297b8.js → useRafState-c9f6527a.js} +1 -1
  171. package/build/{useTranslations-d5cf41a3.js → useTranslations-a1b68e91.js} +1 -1
  172. package/build/{utils-d08dfeed.js → utils-50bb77a6.js} +1 -1
  173. package/build/{utils-76f22f3b.js → utils-7528478f.js} +1 -1
  174. package/build/vaccination.js +1 -1
  175. package/package.json +1 -1
  176. package/build/esm/getDynamicHealthTool-18567743.js +0 -1
  177. package/build/esm/index-0b6cd675.js +0 -1
  178. package/build/esm/index-2ad11d68.js +0 -177
  179. package/build/esm/index-911ff28a.js +0 -1
  180. package/build/esm/index-d48e481e.js +0 -1
  181. package/build/esm/index-d772e106.js +0 -1
  182. package/build/esm/index-feacc1bb.js +0 -1
  183. package/build/esm/index.styled-fac84ed8.js +0 -50
  184. package/build/esm/screenSizeContext-5ebd7a94.js +0 -81
  185. package/build/esm/useHealthToolCache-df731a08.js +0 -1
  186. package/build/index-3ee3b3cf.js +0 -1
  187. package/build/index-aa9718f1.js +0 -1
  188. package/build/screenSizeContext-73ba8961.js +0 -81
  189. /package/build/{BMI_BOYS.percentile.monthly-0ec27878.js → BMI_BOYS.percentile.monthly-bd7c4653.js} +0 -0
  190. /package/build/{BMI_BOYS.percentile.weekly-4d569734.js → BMI_BOYS.percentile.weekly-aa0676d7.js} +0 -0
  191. /package/build/{BMI_BOYS.percentile.yearly-31b412eb.js → BMI_BOYS.percentile.yearly-710bf0bc.js} +0 -0
  192. /package/build/{BMI_BOYS.zscore.monthly-2488d71f.js → BMI_BOYS.zscore.monthly-265d16b8.js} +0 -0
  193. /package/build/{BMI_BOYS.zscore.weekly-b10f3ef1.js → BMI_BOYS.zscore.weekly-20e34020.js} +0 -0
  194. /package/build/{BMI_BOYS.zscore.yearly-68623c3d.js → BMI_BOYS.zscore.yearly-67395b04.js} +0 -0
  195. /package/build/{BMI_GIRLS.percentile.monthly-c1506d58.js → BMI_GIRLS.percentile.monthly-e5a6f286.js} +0 -0
  196. /package/build/{BMI_GIRLS.percentile.weekly-7e7cda8a.js → BMI_GIRLS.percentile.weekly-0d918cc9.js} +0 -0
  197. /package/build/{BMI_GIRLS.percentile.yearly-1a60da42.js → BMI_GIRLS.percentile.yearly-9ab58003.js} +0 -0
  198. /package/build/{BMI_GIRLS.zscore.monthly-17d96d3b.js → BMI_GIRLS.zscore.monthly-980c6ad8.js} +0 -0
  199. /package/build/{BMI_GIRLS.zscore.weekly-5944ad7d.js → BMI_GIRLS.zscore.weekly-2886baca.js} +0 -0
  200. /package/build/{BMI_GIRLS.zscore.yearly-81b205b3.js → BMI_GIRLS.zscore.yearly-e3123e93.js} +0 -0
  201. /package/build/{ChevronDown-ed323fc5.js → ChevronDown-7d583eac.js} +0 -0
  202. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-df341f5e.js → HEAD CIRCUM_BOYS.percentile.monthly-5489c654.js} +0 -0
  203. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-376fdb05.js → HEAD CIRCUM_BOYS.percentile.weekly-72af67ec.js} +0 -0
  204. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-6efc3424.js → HEAD CIRCUM_BOYS.percentile.yearly-4689f174.js} +0 -0
  205. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-fdaf2dbf.js → HEAD CIRCUM_BOYS.zscore.monthly-218db6e2.js} +0 -0
  206. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9c7d7dfa.js → HEAD CIRCUM_BOYS.zscore.weekly-d4b77ee2.js} +0 -0
  207. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8b50d99c.js → HEAD CIRCUM_BOYS.zscore.yearly-ba3d997e.js} +0 -0
  208. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-94c95ddc.js → HEAD CIRCUM_GIRLS.percentile.monthly-120ece3e.js} +0 -0
  209. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-4c6f2727.js → HEAD CIRCUM_GIRLS.percentile.weekly-591bb09a.js} +0 -0
  210. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-16e0c0d3.js → HEAD CIRCUM_GIRLS.percentile.yearly-2a19d75a.js} +0 -0
  211. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5bd001e8.js → HEAD CIRCUM_GIRLS.zscore.monthly-47aa0b49.js} +0 -0
  212. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-50524d03.js → HEAD CIRCUM_GIRLS.zscore.weekly-7faf2731.js} +0 -0
  213. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-7ced5098.js → HEAD CIRCUM_GIRLS.zscore.yearly-0a9527cb.js} +0 -0
  214. /package/build/{HEIGHT_BOYS.percentile.monthly-bd8aeb12.js → HEIGHT_BOYS.percentile.monthly-975cab78.js} +0 -0
  215. /package/build/{HEIGHT_BOYS.percentile.weekly-6c368cae.js → HEIGHT_BOYS.percentile.weekly-45fbff53.js} +0 -0
  216. /package/build/{HEIGHT_BOYS.percentile.yearly-4d255579.js → HEIGHT_BOYS.percentile.yearly-2a158d1f.js} +0 -0
  217. /package/build/{HEIGHT_BOYS.zscore.monthly-07823cdb.js → HEIGHT_BOYS.zscore.monthly-8dc3c9d2.js} +0 -0
  218. /package/build/{HEIGHT_BOYS.zscore.weekly-1f2d261c.js → HEIGHT_BOYS.zscore.weekly-6156e4e0.js} +0 -0
  219. /package/build/{HEIGHT_BOYS.zscore.yearly-562f6aac.js → HEIGHT_BOYS.zscore.yearly-f76c1f5e.js} +0 -0
  220. /package/build/{HEIGHT_GIRLS.percentile.monthly-394875dd.js → HEIGHT_GIRLS.percentile.monthly-b45e867e.js} +0 -0
  221. /package/build/{HEIGHT_GIRLS.percentile.weekly-dc5223b5.js → HEIGHT_GIRLS.percentile.weekly-46b92e1b.js} +0 -0
  222. /package/build/{HEIGHT_GIRLS.percentile.yearly-ec1dd8b0.js → HEIGHT_GIRLS.percentile.yearly-9abaef8d.js} +0 -0
  223. /package/build/{HEIGHT_GIRLS.zscore.monthly-a61227f4.js → HEIGHT_GIRLS.zscore.monthly-eb201a4a.js} +0 -0
  224. /package/build/{HEIGHT_GIRLS.zscore.weekly-810fbaba.js → HEIGHT_GIRLS.zscore.weekly-1c1b80f3.js} +0 -0
  225. /package/build/{HEIGHT_GIRLS.zscore.yearly-50ce0a8f.js → HEIGHT_GIRLS.zscore.yearly-19fe9d55.js} +0 -0
  226. /package/build/{Subot-ab83b6e8.js → Subot-6a20c386.js} +0 -0
  227. /package/build/{Visible-8fe90e27.js → Visible-96ce1462.js} +0 -0
  228. /package/build/{WEIGHT_BOYS.percentile.monthly-35e4e540.js → WEIGHT_BOYS.percentile.monthly-48925e68.js} +0 -0
  229. /package/build/{WEIGHT_BOYS.percentile.weekly-93c1552f.js → WEIGHT_BOYS.percentile.weekly-9675b472.js} +0 -0
  230. /package/build/{WEIGHT_BOYS.percentile.yearly-09b2c973.js → WEIGHT_BOYS.percentile.yearly-5ae74491.js} +0 -0
  231. /package/build/{WEIGHT_BOYS.zscore.monthly-bf7ac6f2.js → WEIGHT_BOYS.zscore.monthly-fda03047.js} +0 -0
  232. /package/build/{WEIGHT_BOYS.zscore.weekly-377fac0f.js → WEIGHT_BOYS.zscore.weekly-2ab9f08c.js} +0 -0
  233. /package/build/{WEIGHT_BOYS.zscore.yearly-caf8de99.js → WEIGHT_BOYS.zscore.yearly-b68de4e1.js} +0 -0
  234. /package/build/{WEIGHT_GIRLS.percentile.monthly-59251654.js → WEIGHT_GIRLS.percentile.monthly-1c82f3e1.js} +0 -0
  235. /package/build/{WEIGHT_GIRLS.percentile.weekly-bca687c9.js → WEIGHT_GIRLS.percentile.weekly-0628410e.js} +0 -0
  236. /package/build/{WEIGHT_GIRLS.percentile.yearly-c268cb57.js → WEIGHT_GIRLS.percentile.yearly-bac2752a.js} +0 -0
  237. /package/build/{WEIGHT_GIRLS.zscore.monthly-e8e7e4ec.js → WEIGHT_GIRLS.zscore.monthly-444c0637.js} +0 -0
  238. /package/build/{WEIGHT_GIRLS.zscore.weekly-802d8a32.js → WEIGHT_GIRLS.zscore.weekly-e943b0eb.js} +0 -0
  239. /package/build/{WEIGHT_GIRLS.zscore.yearly-86dfa395.js → WEIGHT_GIRLS.zscore.yearly-cd96850c.js} +0 -0
  240. /package/build/{cookieHelper-92ea0a20.js → cookieHelper-90494d05.js} +0 -0
  241. /package/build/{dataTransform-fa42cb61.js → dataTransform-6263c35e.js} +0 -0
  242. /package/build/esm/{BMI_BOYS.percentile.monthly-d0325ab2.js → BMI_BOYS.percentile.monthly-2f0ebcbf.js} +0 -0
  243. /package/build/esm/{BMI_BOYS.percentile.weekly-2d099f4d.js → BMI_BOYS.percentile.weekly-923b3d30.js} +0 -0
  244. /package/build/esm/{BMI_BOYS.percentile.yearly-22655d07.js → BMI_BOYS.percentile.yearly-7d39033d.js} +0 -0
  245. /package/build/esm/{BMI_BOYS.zscore.monthly-dfc23aee.js → BMI_BOYS.zscore.monthly-21915d60.js} +0 -0
  246. /package/build/esm/{BMI_BOYS.zscore.weekly-a1f8eeb8.js → BMI_BOYS.zscore.weekly-afaad99e.js} +0 -0
  247. /package/build/esm/{BMI_BOYS.zscore.yearly-1385d138.js → BMI_BOYS.zscore.yearly-2d48176b.js} +0 -0
  248. /package/build/esm/{BMI_GIRLS.percentile.monthly-14cfb09c.js → BMI_GIRLS.percentile.monthly-67f03f38.js} +0 -0
  249. /package/build/esm/{BMI_GIRLS.percentile.weekly-ec1043ad.js → BMI_GIRLS.percentile.weekly-a2c33686.js} +0 -0
  250. /package/build/esm/{BMI_GIRLS.percentile.yearly-3ec36c93.js → BMI_GIRLS.percentile.yearly-7a98dd42.js} +0 -0
  251. /package/build/esm/{BMI_GIRLS.zscore.monthly-f188295b.js → BMI_GIRLS.zscore.monthly-599baf2d.js} +0 -0
  252. /package/build/esm/{BMI_GIRLS.zscore.weekly-b655ff24.js → BMI_GIRLS.zscore.weekly-c258aef0.js} +0 -0
  253. /package/build/esm/{BMI_GIRLS.zscore.yearly-6ad44499.js → BMI_GIRLS.zscore.yearly-e8ce4dc8.js} +0 -0
  254. /package/build/esm/{ChevronDown-b57b4a27.js → ChevronDown-198d9cc6.js} +0 -0
  255. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-49ebc707.js → HEAD CIRCUM_BOYS.percentile.monthly-bc41ab37.js} +0 -0
  256. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c005f4e3.js → HEAD CIRCUM_BOYS.percentile.weekly-bd73d642.js} +0 -0
  257. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-b800cb24.js → HEAD CIRCUM_BOYS.percentile.yearly-044a1a1a.js} +0 -0
  258. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-6610b76f.js → HEAD CIRCUM_BOYS.zscore.monthly-61bf74c0.js} +0 -0
  259. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b5318fa3.js → HEAD CIRCUM_BOYS.zscore.weekly-28e9f5ed.js} +0 -0
  260. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-65685624.js → HEAD CIRCUM_BOYS.zscore.yearly-2a0e1789.js} +0 -0
  261. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ee6cef4c.js → HEAD CIRCUM_GIRLS.percentile.monthly-13f948b3.js} +0 -0
  262. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5ff03c01.js → HEAD CIRCUM_GIRLS.percentile.weekly-88cc5320.js} +0 -0
  263. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f50b2018.js → HEAD CIRCUM_GIRLS.percentile.yearly-7f0f400b.js} +0 -0
  264. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-ef066007.js → HEAD CIRCUM_GIRLS.zscore.monthly-d78908a1.js} +0 -0
  265. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0054026e.js → HEAD CIRCUM_GIRLS.zscore.weekly-f3207f83.js} +0 -0
  266. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b0e355d4.js → HEAD CIRCUM_GIRLS.zscore.yearly-0628d6d8.js} +0 -0
  267. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-21c2a2a2.js → HEIGHT_BOYS.percentile.monthly-182bed39.js} +0 -0
  268. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-94823e80.js → HEIGHT_BOYS.percentile.weekly-44f52c09.js} +0 -0
  269. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-86e415d4.js → HEIGHT_BOYS.percentile.yearly-bb541601.js} +0 -0
  270. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-dec2158f.js → HEIGHT_BOYS.zscore.monthly-a9a9dd47.js} +0 -0
  271. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b7e28d96.js → HEIGHT_BOYS.zscore.weekly-9fc7b902.js} +0 -0
  272. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-62c1caee.js → HEIGHT_BOYS.zscore.yearly-88da8bc2.js} +0 -0
  273. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-54ee3b6d.js → HEIGHT_GIRLS.percentile.monthly-fb5f6f0d.js} +0 -0
  274. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-d78729a6.js → HEIGHT_GIRLS.percentile.weekly-4baca659.js} +0 -0
  275. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-18b7481d.js → HEIGHT_GIRLS.percentile.yearly-fc7e1fc1.js} +0 -0
  276. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-1651c5df.js → HEIGHT_GIRLS.zscore.monthly-b439db85.js} +0 -0
  277. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0591cfa1.js → HEIGHT_GIRLS.zscore.weekly-8681e64a.js} +0 -0
  278. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3347eeaf.js → HEIGHT_GIRLS.zscore.yearly-28b1d0bb.js} +0 -0
  279. /package/build/esm/{Subot-67816106.js → Subot-e272425a.js} +0 -0
  280. /package/build/esm/{Visible-254f3d0e.js → Visible-e7a4b560.js} +0 -0
  281. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-82144cc4.js → WEIGHT_BOYS.percentile.monthly-d6835449.js} +0 -0
  282. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-caf2756d.js → WEIGHT_BOYS.percentile.weekly-bc54a47c.js} +0 -0
  283. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-39c389a6.js → WEIGHT_BOYS.percentile.yearly-69b5c0cf.js} +0 -0
  284. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-1d96fdf6.js → WEIGHT_BOYS.zscore.monthly-fae0c31f.js} +0 -0
  285. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6d7dc5c3.js → WEIGHT_BOYS.zscore.weekly-58bfd560.js} +0 -0
  286. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-5befa2e9.js → WEIGHT_BOYS.zscore.yearly-4e428e24.js} +0 -0
  287. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-62e45d9b.js → WEIGHT_GIRLS.percentile.monthly-5136f490.js} +0 -0
  288. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-4b315673.js → WEIGHT_GIRLS.percentile.weekly-bd8ea375.js} +0 -0
  289. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-ae777fbd.js → WEIGHT_GIRLS.percentile.yearly-40e16990.js} +0 -0
  290. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e1a711b3.js → WEIGHT_GIRLS.zscore.monthly-bc34aead.js} +0 -0
  291. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-282cb95e.js → WEIGHT_GIRLS.zscore.weekly-c5ab12a0.js} +0 -0
  292. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9d5c2c49.js → WEIGHT_GIRLS.zscore.yearly-41608a14.js} +0 -0
  293. /package/build/esm/{cookieHelper-715a63ab.js → cookieHelper-28df9366.js} +0 -0
  294. /package/build/esm/{dataTransform-a9f8f8e1.js → dataTransform-3cf63532.js} +0 -0
  295. /package/build/esm/{index-09ba8680.js → index-10c5feed.js} +0 -0
  296. /package/build/esm/{index-c1076bbe.js → index-9d4a84ac.js} +0 -0
  297. /package/build/esm/{index-3afa303d.js → index-ac4a532b.js} +0 -0
  298. /package/build/esm/{isProduction-0005bed8.js → isProduction-b5290208.js} +0 -0
  299. /package/build/esm/{localizeNumberFormat-eee5e088.js → localizeNumberFormat-a5628e95.js} +0 -0
  300. /package/build/esm/{normalizeLink-0a824393.js → normalizeLink-03495796.js} +0 -0
  301. /package/build/esm/{number-89aaa53f.js → number-97247dba.js} +0 -0
  302. /package/build/esm/{paths-d6be3159.js → paths-fcede6b6.js} +0 -0
  303. /package/build/esm/{theme-11c43794.js → theme-ccf55e31.js} +0 -0
  304. /package/build/esm/{translationsContext-66e27067.js → translationsContext-7856306b.js} +0 -0
  305. /package/build/esm/{tslib.es6-caf7391f.js → tslib.es6-842a2bb8.js} +0 -0
  306. /package/build/esm/{types-2c168c1f.js → types-3f42ad37.js} +0 -0
  307. /package/build/esm/{useIsInit-4dcae46f.js → useIsInit-7d05716a.js} +0 -0
  308. /package/build/esm/{useOutsideClick-70e02ea6.js → useOutsideClick-9d03d01d.js} +0 -0
  309. /package/build/esm/{useScrollbarSize-e55adedb.js → useScrollbarSize-1c748ec0.js} +0 -0
  310. /package/build/{index-6b48c527.js → index-22f2dd43.js} +0 -0
  311. /package/build/{index-b0c9f344.js → index-a6882810.js} +0 -0
  312. /package/build/{index-14a0aaa0.js → index-b3a56944.js} +0 -0
  313. /package/build/{isProduction-e32c6264.js → isProduction-975fbda1.js} +0 -0
  314. /package/build/{localizeNumberFormat-b4689cfc.js → localizeNumberFormat-f603a6d8.js} +0 -0
  315. /package/build/{normalizeLink-c8b10f92.js → normalizeLink-b260b165.js} +0 -0
  316. /package/build/{number-79be583e.js → number-3f6eba85.js} +0 -0
  317. /package/build/{paths-0f77a743.js → paths-9ce571a8.js} +0 -0
  318. /package/build/{theme-1f10ec25.js → theme-cf605758.js} +0 -0
  319. /package/build/{translationsContext-12eebeb5.js → translationsContext-b4e24bbe.js} +0 -0
  320. /package/build/{tslib.es6-a7206fdf.js → tslib.es6-8187fb3c.js} +0 -0
  321. /package/build/{types-90377b59.js → types-16f153bc.js} +0 -0
  322. /package/build/{useIsInit-46f8a417.js → useIsInit-df1db68e.js} +0 -0
  323. /package/build/{useOutsideClick-42bd02d5.js → useOutsideClick-eeca1a83.js} +0 -0
  324. /package/build/{useScrollbarSize-3144238a.js → useScrollbarSize-7a77a7be.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-d8df7d65.js";import c from"lodash/debounce";import{I as d,e as p,f as u,M as h,g,C as m}from"./constants-06083c39.js";import{I as C}from"./index-0d048082.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f,I as v}from"./index-2eb76153.js";import{t as x}from"./theme-11c43794.js";import S from"lodash/shuffle";import{a as E}from"./useOutsideClick-70e02ea6.js";import{M as w}from"./screenSizeContext-5ebd7a94.js";import L from"react-loading-skeleton";import{P as k}from"./paths-d6be3159.js";import{Skeleton as O,Input as j,Divider as I,Tabs as $,Flex as F,Button as M}from"@mantine/core";import{U as R,d as T}from"./index-6b632496.js";import{g as P,s as N,d as A}from"./cookieHelper-715a63ab.js";import{C as B}from"./index-c1076bbe.js";import{C as V}from"./ChevronDown-b57b4a27.js";import D from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(P(R))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=P(R);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((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};N(R,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{A(R),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
1
+ import{a as e}from"./tslib.es6-842a2bb8.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-14b7fcc5.js";import c from"lodash/debounce";import{I as d,e as p,f as u,M as h,g,C as m}from"./constants-c3b0c92c.js";import{I as C}from"./index-c22300e9.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f,I as v}from"./index-e7f889b2.js";import{t as x}from"./theme-ccf55e31.js";import S from"lodash/shuffle";import{a as E}from"./useOutsideClick-9d03d01d.js";import{M as w}from"./screenSizeContext-dff03e2b.js";import"dayjs";import{U as L,d as k}from"./index-f75306ca.js";import"./isProduction-b5290208.js";import"./Subot-e272425a.js";import"./gAssets.js";import O from"react-loading-skeleton";import{P as j}from"./paths-fcede6b6.js";import{Skeleton as I,Input as $,Divider as F,Tabs as M,Flex as R,Button as T}from"@mantine/core";import{g as P,s as N,d as A}from"./cookieHelper-28df9366.js";import{C as B}from"./index-9d4a84ac.js";import{C as V}from"./ChevronDown-198d9cc6.js";import D from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(P(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=P(L);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((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};N(L,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{A(L),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -66,7 +66,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
66
66
  box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
67
67
  0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
68
68
  0px 0px 1px rgba(0, 0, 0, 0.04);
69
- border-radius: ${e=>e.theme.borderRadius};
69
+ border-radius: ${x.borderRadius};
70
70
  background-color: white;
71
71
  z-index: 30;
72
72
 
@@ -120,7 +120,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
120
120
  &[data-is-denied='true'] {
121
121
  cursor: not-allowed;
122
122
  }
123
- `,oe=b((({count:e,className:i})=>t.createElement(t.Fragment,null,[...Array(e)].map(((e,a)=>t.createElement(J,{className:i,key:a},t.createElement(L,{count:1,height:32}),t.createElement(L,{count:1,height:24})))))))`
123
+ `,oe=b((({count:e,className:i})=>t.createElement(t.Fragment,null,[...Array(e)].map(((e,a)=>t.createElement(J,{className:i,key:a},t.createElement(O,{count:1,height:32}),t.createElement(O,{count:1,height:24})))))))`
124
124
  &:first-child {
125
125
  padding-top: 18px;
126
126
  }
@@ -190,7 +190,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
190
190
  `,Ne=()=>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"})),Ae=b.button`
191
191
  min-height: 100%;
192
192
  border-radius: 6px;
193
- background-color: ${({theme:e})=>e.colors.primaryBase};
193
+ background-color: ${x.colors.primaryBase};
194
194
  display: flex;
195
195
  justify-content: center;
196
196
  align-items: center;
@@ -208,18 +208,18 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
208
208
  }
209
209
 
210
210
  &:hover {
211
- background-color: ${({theme:e})=>e.colors.primaryHover};
211
+ background-color: ${x.colors.primaryHover};
212
212
  }
213
213
 
214
214
  &:active {
215
- background-color: ${({theme:e})=>e.colors.primaryActive};
215
+ background-color: ${x.colors.primaryActive};
216
216
  }
217
217
 
218
218
  &:focus-visible {
219
219
  outline: 1px solid black;
220
220
  }
221
221
  `,Be=b(f)`
222
- font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
222
+ font-weight: ${x.sizes.fwSemiBold};
223
223
  `,Ve=({onClick:e})=>{const{t:i}=r(),a=i("booking.searchBar.searchButton");return t.createElement(Ae,{onClick:e,title:a},t.createElement(Ne,null),t.createElement(Be,{size:"s3",color:"white"},a))};function De({isMobile:e,state:i,dispatch:n,debouncedFetchCitiesByKeyword:l,debouncedFetchSearchResults:c,focusLocationInput:d,focusSearchInput:p,renderLocationResults:h,renderSearchResults:g,locationTrackingAttributes:m,trackingAttributes:C,onSearch:b,initalSearchValue:y}){const f=s(null),v=s(null),{focused:S,searchLocationKeywords:w,geoLocationPermission:L,selectedLocation:k,searchKeywords:O,inputSearchPlaceholder:j}=i,{t:I}=r();be({wrapperRef:v,disabled:!!j}),E(f,(()=>{e||n({type:je.ClickOutsideInputLocation})})),E(v,(()=>{e||n({type:je.ClickOutsideInputSearch})}));const $=o((()=>"granted"===L&&(null==k?void 0:k.id)===u?x.colors.primaryBase:x.colors.gray400),[L,k]),F=a((function(e){n({type:je.ChangeInputSearch,payload:e}),"function"!=typeof b&&(e.trim().length>ke[i.locale]||y?c(e.trim(),i):(c.cancel(),n({type:je.DisplayInitialSearchResults})))}),[n,i]),M=a((function(e){n({type:je.ChangeInputLocation,payload:e}),e.trim().length>ke[i.locale]?l(e.trim()):(l.cancel(),n({type:je.DisplayInitialCities}))}),[l,n]);return t.createElement(Fe,null,t.createElement(Re,{ref:f},t.createElement(Z,{inputClassName:"location"===S?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:t.createElement(W,{className:"location-pin-icon",color:$}),actionIcon:t.createElement(Pe,{color:x.colors.gray300,className:""!==w?"shown":""}),onActionClick:function(){n({type:je.ClearInputLocation}),l.cancel(),d()},value:w,onChange:M,onFocus:()=>n({type:je.FocusInputLocation}),size:"md",trackingAttributes:m}),!e&&h()),t.createElement(Te,{ref:v},t.createElement(Z,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:t.createElement(Pe,{color:x.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){n({type:je.ClearInputSearch}),c.cancel(),c("",i),p()},value:O,onChange:F,onFocus:()=>n({type:je.FocusInputSearch}),inputClassName:"search"===S?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&b&&b({cityId:i.selectedLocation.id,keyword:O})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&g()),i.autoCompleteDisabled&&!i.isMobile&&t.createElement(Ve,{onClick:()=>{b({cityId:i.selectedLocation.id,keyword:O})}}))}const Ke=()=>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"})),ze=()=>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"})),_e=()=>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"})),He=()=>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"})),Ge=b.header`
224
224
  display: flex;
225
225
  justify-content: space-between;
@@ -324,7 +324,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
324
324
  `,at=b.div`
325
325
  display: grid;
326
326
  place-items: center;
327
- `,ot={doctors:({width:e,height:i})=>t.createElement("svg",{width:e||32,height:i||32,viewBox:"0 0 32 32",fill:"none"},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"},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"}))},nt=({type:e,item:i,imageUrl:a,className:n,onClickItem:s})=>{const l=o((()=>{const i=ot[e]||q;return t.createElement(i,{width:32,height:"services"===e?32:24})}),[e]);return t.createElement(Je,{onClick:()=>s&&s(i),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(i)},tabIndex:0,role:"button",className:n},t.createElement(tt,null,"hospitals"===e?t.createElement(it,{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(Xe,{type:e},a?t.createElement("img",{src:a,width:32,height:"services"===e?32:24,loading:"lazy"}):l)),t.createElement(et,{color:x.colors.gray800,size:"p3"},i.name))},st=({type:e,data:a,state:n,dispatch:s,itemsToShow:l,itemsToShowDesktop:c,isMobile:d,isLoading:u,keyword:h,isNavResultItem:g})=>{const[m,C]=i(!1),{t:b,locale:y}=r(),{selectedLocation:v,searchKeywords:S}=n,E=o((()=>p[y]),[y]),w="ms-MY"===y,k=o((()=>({doctors:{name:b("booking.searchPopup.doctors"),icon:t.createElement(Ke,null),slug:E.DOCTOR},services:{name:b("booking.searchPopup.services"),icon:t.createElement(ze,null),slug:E.SERVICE},hospitals:{name:b("booking.searchPopup.hospitals"),icon:t.createElement(_e,null),slug:E.HOSPITAL},specialties:{name:b("booking.searchPopup.specialties"),icon:t.createElement(He,null),slug:E.SPECIALTIES}})),[e,E]),O=o((()=>k[e].slug),[k]),j=d?l:c;function I(t){let i="";switch(e){case"specialties":i=`/${v.slug}/${k.doctors.slug}/${t.slug}`;break;case"services":i=`/${v.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:je.SelectSearchResult,payload:{name:t.name,url:i}})}function $(i){return t.createElement(nt,{key:i.id,item:i,type:e,imageUrl:i.logo||i.avatar||i.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return t.createElement("section",null,t.createElement(Ge,null,t.createElement(Ze,null,k[e].icon,t.createElement(Ye,null,k[e].name)),(h.trim().length<=ke[y]||w)&&t.createElement(Ue,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${v.slug}/${O}`}t&&s({type:je.NavigateTo,payload:t})}},t.createElement(f,{size:"p3",color:x.colors.primaryBase},b("booking.searchPopup.seeAll")))),(u||a&&a.length>0)&&t.createElement(We,null,t.createElement(Qe,null,u&&Array(2).fill(void 0).map(((i,a)=>t.createElement(Je,{key:e+"loading"+a},t.createElement(tt,null,t.createElement(at,null,t.createElement(L,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),t.createElement(L,{width:120,height:24})))),!u&&a&&a.length>0&&a.slice(0,j).map($)),t.createElement(Qe,{isShown:m,isMore:!0},a.slice(j,-1).map($)),"specialties"===e&&j<a.length&&!u&&t.createElement("button",{onClick:()=>C(!m)},t.createElement(qe,{size:"p3",color:x.colors.primaryBase},b(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<a.length||w)&&!u&&h.trim().length>ke[y]&&t.createElement("button",{onClick:function(){const{slug:t}=k[e],i=`/${v.slug}/${t}?q=${S}`;s({type:je.NavigateTo,payload:i})}},t.createElement(qe,{size:"p3",color:x.colors.primaryBase},b(`booking.searchPopup.searchIn.${e}`,{name:h})))),!u&&0===(null==a?void 0:a.length)&&t.createElement(We,null,t.createElement(f,{size:"sm",color:x.colors.gray400},b("booking.searchBar.noResults"))))},lt=b.section`
327
+ `,ot={doctors:({width:e,height:i})=>t.createElement("svg",{width:e||32,height:i||32,viewBox:"0 0 32 32",fill:"none"},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"},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"}))},nt=({type:e,item:i,imageUrl:a,className:n,onClickItem:s})=>{const l=o((()=>{const i=ot[e]||q;return t.createElement(i,{width:32,height:"services"===e?32:24})}),[e]);return t.createElement(Je,{onClick:()=>s&&s(i),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(i)},tabIndex:0,role:"button",className:n},t.createElement(tt,null,"hospitals"===e?t.createElement(it,{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(Xe,{type:e},a?t.createElement("img",{src:a,width:32,height:"services"===e?32:24,loading:"lazy"}):l)),t.createElement(et,{color:x.colors.gray800,size:"p3"},i.name))},st=({type:e,data:a,state:n,dispatch:s,itemsToShow:l,itemsToShowDesktop:c,isMobile:d,isLoading:u,keyword:h,isNavResultItem:g})=>{const[m,C]=i(!1),{t:b,locale:y}=r(),{selectedLocation:v,searchKeywords:S}=n,E=o((()=>p[y]),[y]),w="ms-MY"===y,L=o((()=>({doctors:{name:b("booking.searchPopup.doctors"),icon:t.createElement(Ke,null),slug:E.DOCTOR},services:{name:b("booking.searchPopup.services"),icon:t.createElement(ze,null),slug:E.SERVICE},hospitals:{name:b("booking.searchPopup.hospitals"),icon:t.createElement(_e,null),slug:E.HOSPITAL},specialties:{name:b("booking.searchPopup.specialties"),icon:t.createElement(He,null),slug:E.SPECIALTIES}})),[e,E]),k=o((()=>L[e].slug),[L]),j=d?l:c;function I(t){let i="";switch(e){case"specialties":i=`/${v.slug}/${L.doctors.slug}/${t.slug}`;break;case"services":i=`/${v.slug}/${k}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${k}/${t.slug}-${t.id}`}i&&s({type:je.SelectSearchResult,payload:{name:t.name,url:i}})}function $(i){return t.createElement(nt,{key:i.id,item:i,type:e,imageUrl:i.logo||i.avatar||i.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return t.createElement("section",null,t.createElement(Ge,null,t.createElement(Ze,null,L[e].icon,t.createElement(Ye,null,L[e].name)),(h.trim().length<=ke[y]||w)&&t.createElement(Ue,{onClick:function(){let t="";switch(e){case"specialties":t=`/${k}`;break;case"services":case"doctors":case"hospitals":t=`/${v.slug}/${k}`}t&&s({type:je.NavigateTo,payload:t})}},t.createElement(f,{size:"p3",color:x.colors.primaryBase},b("booking.searchPopup.seeAll")))),(u||a&&a.length>0)&&t.createElement(We,null,t.createElement(Qe,null,u&&Array(2).fill(void 0).map(((i,a)=>t.createElement(Je,{key:e+"loading"+a},t.createElement(tt,null,t.createElement(at,null,t.createElement(O,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),t.createElement(O,{width:120,height:24})))),!u&&a&&a.length>0&&a.slice(0,j).map($)),t.createElement(Qe,{isShown:m,isMore:!0},a.slice(j,-1).map($)),"specialties"===e&&j<a.length&&!u&&t.createElement("button",{onClick:()=>C(!m)},t.createElement(qe,{size:"p3",color:x.colors.primaryBase},b(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<a.length||w)&&!u&&h.trim().length>ke[y]&&t.createElement("button",{onClick:function(){const{slug:t}=L[e],i=`/${v.slug}/${t}?q=${S}`;s({type:je.NavigateTo,payload:i})}},t.createElement(qe,{size:"p3",color:x.colors.primaryBase},b(`booking.searchPopup.searchIn.${e}`,{name:h})))),!u&&0===(null==a?void 0:a.length)&&t.createElement(We,null,t.createElement(f,{size:"sm",color:x.colors.gray400},b("booking.searchBar.noResults"))))},lt=b.section`
328
328
  background-color: white;
329
329
  border-radius: 4px;
330
330
  position: absolute;
@@ -336,7 +336,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
336
336
  0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
337
337
  0px 0px 1px rgba(0, 0, 0, 0.04);
338
338
  }
339
- `,rt=({data:e,state:i,dispatch:a,isMobile:o,isLoading:n,keyword:s,hideResults:l,isNavResultItem:r})=>t.createElement(lt,null,e&&e.map((e=>l&&l.includes(e.type)?t.createElement(t.Fragment,null):t.createElement(st,{type:e.type,state:i,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:o,isLoading:n,keyword:s,isNavResultItem:r})))),ct=(e,t,i)=>D(e,Object.assign(Object.assign({},t),{domain:T[i||"en-PH"]}));const dt=({isMobile:h,careApiDomain:g,geoLocationPermission:m,geoLocationCoordinates:C,initialSelectedCity:b,initialSearchValue:y="",careFrontDomain:f="/care",isDebug:v=!1,askForGeolocationPermission:x=!1,gaTrackingSearchBar:S,gaTrackingLocationSearch:E,autoCompleteDisabled:w=!1,inputSearchPlaceholder:L="",isOptionAllLocation:O=!1,hideResults:j=[],isNavResultItem:I=!0,routerPush:$,onGeoLocationPermissionChange:F,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=r(),N=s(null),A=s(null),[B,V]=i(void 0),[D,Z]=i(!1),{geoLocationPermission:U,geoLocationCoordinates:W,requestGeoLocation:Q}=K(),[q,J]=l($e,Oe,(e=>Object.assign(Object.assign({},e),{isDebug:v,isMobile:h,geoLocationPermission:m||U||"unset",geoLocationCoordinates:C||W||null,searchKeywords:y,initialSelectedCity:b||null,selectedLocation:b||e.selectedLocation||null,searchLocationKeywords:(null==b?void 0:b.name)||e.searchLocationKeywords,autoCompleteDisabled:w,inputSearchPlaceholder:L,locale:P}))),{navigateTo:X,focused:ee,isLoadingCities:te,cities:ie,searchKeywords:ae,geoLocationPermission:oe,selectedLocation:se,initialSelectedCity:le,defaultCity:re,searchResults:ce,isLoadingSearchResults:de,isMobileModalOpened:pe,inputSearchPlaceholder:ue}=q,{fetchCitiesByLocation:he,fetchCitiesByKeyword:ge,fetchSearchResults:me}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const o=a((function(a,o={}){const n=`${t}${a}`;return e({type:je.FetchCitiesStart}),fetch(ct(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:je.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:a((function({coordinates:t}){let a={};const n={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[o(k.GET_CITY_BY_IP,Object.assign(Object.assign({},a),n))];return"zh-TW"===i&&s.push(o(k.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:je.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:a((function(t){return o(k.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:je.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:a((function(a,o){const n=`${t}${k.GET_SEARCH_V2}`;e({type:je.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:l,geoLocationCoordinates:r}=o;let c="";if(!l||!s)return void e({type:je.FetchSearchResultsFinish});l.id===u?r||(c=s.id):c=l.id===d?"":l.id;const p=(null==r?void 0:r.lat)||"",h=(null==r?void 0:r.lng)||"";return fetch(ct(n,{domain:t,searchType:"global",keyword:a.trim().length>ke[i]?a.trim():"",city:c===u?"":c,lat:p,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:je.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:je.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:J,locale:P,careApiDomain:g}),Ce=o((()=>{var e;return{id:u,name:T("booking.searchBar.currentLocation"),slug:null===(e=p[P])||void 0===e?void 0:e.CURRENT}}),[T,P]),be=o((()=>c(ge,400)),[ge]),ye=o((()=>c(me,400)),[me]);n((()=>{""!==y&&y!==q.searchKeywords&&J({type:je.UpdateInitialSearchValue,payload:y})}),[y]),n((()=>{x&&(null==se?void 0:se.id)===u&&"unset"===oe&&Q()}),[x,se,oe]),n((()=>{m||oe===U||("granted"===U&&W?J({type:je.GrantGeoLocationPermission,payload:W}):"denied"===U&&J({type:je.DenyGeoLocationPermission}))}),[oe,U,W,m]),n((()=>{X&&($?$(X):window.location.href=`${f}${X}`)}),[X]);const ve=a((function(){J({type:je.SelectCurrentLocation,payload:Ce})}),[T,J]);n((()=>{var e;"denied"===oe||le||J({type:je.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:d,slug:null===(e=p[P])||void 0===e?void 0:e.ALL}}),F&&F(oe,q.geoLocationCoordinates),h&&"granted"===oe&&se&&J({type:je.FocusInputSearch}),he({coordinates:q.geoLocationCoordinates})}),[oe]),n((()=>{se&&re&&me(q.searchKeywords,q)}),[se,re]),n((()=>{L!==ue&&J({type:je.SetInputSearchPlaceholder,payload:L})}),[L,ue]),n((()=>{pe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[pe]);const xe=a((function(e){"ms-MY"===P&&Z(!0),J({type:je.SelectLocation,payload:e}),"ms-MY"!==P&&we(),R&&R(e)}),[T,J]);function Se(){"ms-MY"===P&&Z(!0),h&&"granted"!==q.geoLocationPermission?Q():(ve(),"ms-MY"!==P&&we())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function we(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Ie(){J({type:je.CloseMobileModal})}function Fe(){return"location"!==ee?null:t.createElement(ne,{isLoading:te,cities:ie,onLocationClick:xe,onCurrentLocationClick:Se,isLocationLoading:te,geoLocationPermission:oe,selectedLocation:se,isOptionAllLocation:O})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?h?t.createElement(Ve,{onClick:()=>{M({cityId:q.selectedLocation.id,keyword:ae}),Ie()}}):null:t.createElement(rt,{data:ce,state:q,dispatch:J,isMobile:!1,keyword:ae,isLoading:de,hideResults:j,isNavResultItem:I})}function Re(){return t.createElement(De,{isMobile:h,state:q,dispatch:J,debouncedFetchCitiesByKeyword:be,debouncedFetchSearchResults:ye,focusLocationInput:Ee,focusSearchInput:we,renderLocationResults:Fe,renderSearchResults:Me,trackingAttributes:S,locationTrackingAttributes:E,onSearch:M,initalSearchValue:y})}return n((()=>{if(window.visualViewport){const e=e=>{const t=e.target;V(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[V]),n((()=>{if(se&&D&&"ms-MY"===P){const e=`/${se.slug}/hospital`;J({type:je.NavigateTo,payload:e}),Z(!1)}}),[D,P,se]),h?t.createElement(t.Fragment,null,t.createElement(Y,null),t.createElement(G,{ref:A}),t.createElement(_,{id:"booking-search-bar",ref:N,"data-is-modal":h&&pe,style:{"--mobile-care-searchbar-height":pe&&B?`${B}px`:"100%"}},pe?t.createElement(t.Fragment,null,t.createElement(H,null,t.createElement(Le,{headingText:T("booking.searchBar.searchButton"),onLeftClick:Ie}),Re()),Fe(),Me()):t.createElement(fe,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){A.current&&A.current.focus(),J({type:je.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ee,value:ae,trackingAttributes:S,inputSearchPlaceholder:L}))):t.createElement(z,{id:"booking-search-bar",ref:N},Re())},pt=b.div``,ut=b.div`
339
+ `,rt=({data:e,state:i,dispatch:a,isMobile:o,isLoading:n,keyword:s,hideResults:l,isNavResultItem:r})=>t.createElement(lt,null,e&&e.map((e=>l&&l.includes(e.type)?t.createElement(t.Fragment,null):t.createElement(st,{type:e.type,state:i,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:o,isLoading:n,keyword:s,isNavResultItem:r})))),ct=(e,t,i)=>D(e,Object.assign(Object.assign({},t),{domain:k[i||"en-PH"]}));const dt=({isMobile:h,careApiDomain:g,geoLocationPermission:m,geoLocationCoordinates:C,initialSelectedCity:b,initialSearchValue:y="",careFrontDomain:f="/care",isDebug:v=!1,askForGeolocationPermission:x=!1,gaTrackingSearchBar:S,gaTrackingLocationSearch:E,autoCompleteDisabled:w=!1,inputSearchPlaceholder:L="",isOptionAllLocation:k=!1,hideResults:O=[],isNavResultItem:I=!0,routerPush:$,onGeoLocationPermissionChange:F,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=r(),N=s(null),A=s(null),[B,V]=i(void 0),[D,Z]=i(!1),{geoLocationPermission:U,geoLocationCoordinates:W,requestGeoLocation:Q}=K(),[q,J]=l($e,Oe,(e=>Object.assign(Object.assign({},e),{isDebug:v,isMobile:h,geoLocationPermission:m||U||"unset",geoLocationCoordinates:C||W||null,searchKeywords:y,initialSelectedCity:b||null,selectedLocation:b||e.selectedLocation||null,searchLocationKeywords:(null==b?void 0:b.name)||e.searchLocationKeywords,autoCompleteDisabled:w,inputSearchPlaceholder:L,locale:P}))),{navigateTo:X,focused:ee,isLoadingCities:te,cities:ie,searchKeywords:ae,geoLocationPermission:oe,selectedLocation:se,initialSelectedCity:le,defaultCity:re,searchResults:ce,isLoadingSearchResults:de,isMobileModalOpened:pe,inputSearchPlaceholder:ue}=q,{fetchCitiesByLocation:he,fetchCitiesByKeyword:ge,fetchSearchResults:me}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const o=a((function(a,o={}){const n=`${t}${a}`;return e({type:je.FetchCitiesStart}),fetch(ct(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:je.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:a((function({coordinates:t}){let a={};const n={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[o(j.GET_CITY_BY_IP,Object.assign(Object.assign({},a),n))];return"zh-TW"===i&&s.push(o(j.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:je.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:a((function(t){return o(j.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:je.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:a((function(a,o){const n=`${t}${j.GET_SEARCH_V2}`;e({type:je.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:l,geoLocationCoordinates:r}=o;let c="";if(!l||!s)return void e({type:je.FetchSearchResultsFinish});l.id===u?r||(c=s.id):c=l.id===d?"":l.id;const p=(null==r?void 0:r.lat)||"",h=(null==r?void 0:r.lng)||"";return fetch(ct(n,{domain:t,searchType:"global",keyword:a.trim().length>ke[i]?a.trim():"",city:c===u?"":c,lat:p,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:je.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:je.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:J,locale:P,careApiDomain:g}),Ce=o((()=>{var e;return{id:u,name:T("booking.searchBar.currentLocation"),slug:null===(e=p[P])||void 0===e?void 0:e.CURRENT}}),[T,P]),be=o((()=>c(ge,400)),[ge]),ye=o((()=>c(me,400)),[me]);n((()=>{""!==y&&y!==q.searchKeywords&&J({type:je.UpdateInitialSearchValue,payload:y})}),[y]),n((()=>{x&&(null==se?void 0:se.id)===u&&"unset"===oe&&Q()}),[x,se,oe]),n((()=>{m||oe===U||("granted"===U&&W?J({type:je.GrantGeoLocationPermission,payload:W}):"denied"===U&&J({type:je.DenyGeoLocationPermission}))}),[oe,U,W,m]),n((()=>{X&&($?$(X):window.location.href=`${f}${X}`)}),[X]);const ve=a((function(){J({type:je.SelectCurrentLocation,payload:Ce})}),[T,J]);n((()=>{var e;"denied"===oe||le||J({type:je.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:d,slug:null===(e=p[P])||void 0===e?void 0:e.ALL}}),F&&F(oe,q.geoLocationCoordinates),h&&"granted"===oe&&se&&J({type:je.FocusInputSearch}),he({coordinates:q.geoLocationCoordinates})}),[oe]),n((()=>{se&&re&&me(q.searchKeywords,q)}),[se,re]),n((()=>{L!==ue&&J({type:je.SetInputSearchPlaceholder,payload:L})}),[L,ue]),n((()=>{pe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[pe]);const xe=a((function(e){"ms-MY"===P&&Z(!0),J({type:je.SelectLocation,payload:e}),"ms-MY"!==P&&we(),R&&R(e)}),[T,J]);function Se(){"ms-MY"===P&&Z(!0),h&&"granted"!==q.geoLocationPermission?Q():(ve(),"ms-MY"!==P&&we())}function Ee(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function we(){var e;N.current&&(null===(e=N.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Ie(){J({type:je.CloseMobileModal})}function Fe(){return"location"!==ee?null:t.createElement(ne,{isLoading:te,cities:ie,onLocationClick:xe,onCurrentLocationClick:Se,isLocationLoading:te,geoLocationPermission:oe,selectedLocation:se,isOptionAllLocation:k})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?h?t.createElement(Ve,{onClick:()=>{M({cityId:q.selectedLocation.id,keyword:ae}),Ie()}}):null:t.createElement(rt,{data:ce,state:q,dispatch:J,isMobile:!1,keyword:ae,isLoading:de,hideResults:O,isNavResultItem:I})}function Re(){return t.createElement(De,{isMobile:h,state:q,dispatch:J,debouncedFetchCitiesByKeyword:be,debouncedFetchSearchResults:ye,focusLocationInput:Ee,focusSearchInput:we,renderLocationResults:Fe,renderSearchResults:Me,trackingAttributes:S,locationTrackingAttributes:E,onSearch:M,initalSearchValue:y})}return n((()=>{if(window.visualViewport){const e=e=>{const t=e.target;V(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[V]),n((()=>{if(se&&D&&"ms-MY"===P){const e=`/${se.slug}/hospital`;J({type:je.NavigateTo,payload:e}),Z(!1)}}),[D,P,se]),h?t.createElement(t.Fragment,null,t.createElement(Y,null),t.createElement(G,{ref:A}),t.createElement(_,{id:"booking-search-bar",ref:N,"data-is-modal":h&&pe,style:{"--mobile-care-searchbar-height":pe&&B?`${B}px`:"100%"}},pe?t.createElement(t.Fragment,null,t.createElement(H,null,t.createElement(Le,{headingText:T("booking.searchBar.searchButton"),onLeftClick:Ie}),Re()),Fe(),Me()):t.createElement(fe,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){A.current&&A.current.focus(),J({type:je.OpenMobileModal}),yield Promise.resolve(),N.current&&(null===(t=N.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ee,value:ae,trackingAttributes:S,inputSearchPlaceholder:L}))):t.createElement(z,{id:"booking-search-bar",ref:N},Re())},pt=b.div``,ut=b.div`
340
340
  background-color: ${x.colors.neutral50};
341
341
  padding-bottom: 1px;
342
342
  ${w.mbDown} {
@@ -485,7 +485,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
485
485
  line-height: 22px;
486
486
  cursor: pointer;
487
487
  }
488
- `;const kt=({state:e,type:i,results:a,location:n,isLoading:s,typeInformation:l,clientSlug:c="",dispatch:d})=>{const{locale:p,t:u}=r(),{selectedLocation:g}=e,m=o((()=>l[i].slug),[l,i]);return t.createElement(St,null,t.createElement(Et,null,t.createElement("div",{className:"title"},u("booking.searchResult.description",{search_type:l[i].name,search_location:n})),a.length>0&&t.createElement("div",{className:"btn-see-all",onClick:()=>{let t=`/${g.slug}/${m}`;const a=h[p][c];a&&(t+=`/${a}`),("doctor"===i||"hospital"===i)&&e.selectedSpecialty.id>0&&(t+=`?specialtyId=${e.selectedSpecialty.id}`),t&&d({type:bt.NavigateTo,payload:t})}},u("home.seeAll"))),t.createElement(wt,null,s&&Array(3).fill(void 0).map(((e,a)=>t.createElement(Lt,{key:i+"loading"+a,className:2===a?"last-item":""},t.createElement("div",{className:"image-item"},t.createElement(O,{height:48,circle:!0,mb:"xl",animate:!0})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},t.createElement(O,{height:8,mt:10,radius:"xl",animate:!0})),t.createElement("div",{className:"description"},t.createElement("div",{className:"sub-description"},t.createElement(O,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!s&&a&&a.length>0&&t.createElement(t.Fragment,null,a.map(((e,o)=>{var n,s;const r=a.length>4&&3===o||a.length<=4&&o===a.length-1;let c="";return"hospital"===i&&(c=(null==e?void 0:e.address)||""),"doctor"===i&&(c=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===i&&(c=(null===(s=null==e?void 0:e.hospital_branch)||void 0===s?void 0:s.name)||""),o>=4?t.createElement(t.Fragment,null):t.createElement(Lt,{key:e.id,className:r?"last-item":"",onClick:()=>(e=>{let t="";switch(i){case"service":t=`/${g.slug}/${m}/${e.slug}`;break;case"doctor":case"hospital":t=`/${m}/${e.slug}-${e.id}`}t&&d({type:bt.NavigateTo,payload:t})})(e)},t.createElement("div",{className:"image-item"},t.createElement("img",{src:e.logo||e.avatar,alt:e.name})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},e.name),t.createElement("div",{className:"description"},l[i].icon,t.createElement("div",{className:"sub-description"},c))))}))),!s&&0===(null==a?void 0:a.length)&&t.createElement(f,{size:"sm",color:x.colors.gray400},u("booking.searchBar.noResults"))))},Ot=b.div`
488
+ `;const kt=({state:e,type:i,results:a,location:n,isLoading:s,typeInformation:l,clientSlug:c="",dispatch:d})=>{const{locale:p,t:u}=r(),{selectedLocation:g}=e,m=o((()=>l[i].slug),[l,i]);return t.createElement(St,null,t.createElement(Et,null,t.createElement("div",{className:"title"},u("booking.searchResult.description",{search_type:l[i].name,search_location:n})),a.length>0&&t.createElement("div",{className:"btn-see-all",onClick:()=>{let t=`/${g.slug}/${m}`;const a=h[p][c];a&&(t+=`/${a}`),("doctor"===i||"hospital"===i)&&e.selectedSpecialty.id>0&&(t+=`?specialtyId=${e.selectedSpecialty.id}`),t&&d({type:bt.NavigateTo,payload:t})}},u("home.seeAll"))),t.createElement(wt,null,s&&Array(3).fill(void 0).map(((e,a)=>t.createElement(Lt,{key:i+"loading"+a,className:2===a?"last-item":""},t.createElement("div",{className:"image-item"},t.createElement(I,{height:48,circle:!0,mb:"xl",animate:!0})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},t.createElement(I,{height:8,mt:10,radius:"xl",animate:!0})),t.createElement("div",{className:"description"},t.createElement("div",{className:"sub-description"},t.createElement(I,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!s&&a&&a.length>0&&t.createElement(t.Fragment,null,a.map(((e,o)=>{var n,s;const r=a.length>4&&3===o||a.length<=4&&o===a.length-1;let c="";return"hospital"===i&&(c=(null==e?void 0:e.address)||""),"doctor"===i&&(c=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===i&&(c=(null===(s=null==e?void 0:e.hospital_branch)||void 0===s?void 0:s.name)||""),o>=4?t.createElement(t.Fragment,null):t.createElement(Lt,{key:e.id,className:r?"last-item":"",onClick:()=>(e=>{let t="";switch(i){case"service":t=`/${g.slug}/${m}/${e.slug}`;break;case"doctor":case"hospital":t=`/${m}/${e.slug}-${e.id}`}t&&d({type:bt.NavigateTo,payload:t})})(e)},t.createElement("div",{className:"image-item"},t.createElement("img",{src:e.logo||e.avatar,alt:e.name})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},e.name),t.createElement("div",{className:"description"},l[i].icon,t.createElement("div",{className:"sub-description"},c))))}))),!s&&0===(null==a?void 0:a.length)&&t.createElement(f,{size:"sm",color:x.colors.gray400},u("booking.searchBar.noResults"))))},Ot=b.div`
489
489
  position: relative;
490
490
 
491
491
  ${w.mbDown} {
@@ -563,7 +563,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
563
563
  &[data-is-denied='true'] {
564
564
  cursor: not-allowed;
565
565
  }
566
- `,$t=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t.createElement("path",{d:"M8.98307 14.3333C7.87196 14.3333 6.92752 13.9445 6.14974 13.1667C5.37196 12.3889 4.98307 11.4445 4.98307 10.3333V9.96668C4.08307 9.85557 3.33041 9.45557 2.72507 8.76668C2.1193 8.07779 1.81641 7.26668 1.81641 6.33334V3.10001C1.81641 2.93334 1.87463 2.79157 1.99107 2.67468C2.10796 2.55823 2.24974 2.50001 2.41641 2.50001H3.81641V2.33334C3.81641 2.1889 3.86374 2.06934 3.95841 1.97468C4.05263 1.88045 4.17196 1.83334 4.31641 1.83334C4.46085 1.83334 4.58041 1.88045 4.67507 1.97468C4.7693 2.06934 4.81641 2.1889 4.81641 2.33334V3.66668C4.81641 3.81112 4.7693 3.93045 4.67507 4.02468C4.58041 4.11934 4.46085 4.16668 4.31641 4.16668C4.17196 4.16668 4.05263 4.11934 3.95841 4.02468C3.86374 3.93045 3.81641 3.81112 3.81641 3.66668V3.50001H2.81641V6.33334C2.81641 7.06668 3.07752 7.69445 3.59974 8.21668C4.12196 8.7389 4.74974 9.00001 5.48307 9.00001C6.21641 9.00001 6.84418 8.7389 7.36641 8.21668C7.88863 7.69445 8.14974 7.06668 8.14974 6.33334V3.50001H7.14974V3.66668C7.14974 3.81112 7.10263 3.93045 7.00841 4.02468C6.91374 4.11934 6.79418 4.16668 6.64974 4.16668C6.5053 4.16668 6.38596 4.11934 6.29174 4.02468C6.19707 3.93045 6.14974 3.81112 6.14974 3.66668V2.33334C6.14974 2.1889 6.19707 2.06934 6.29174 1.97468C6.38596 1.88045 6.5053 1.83334 6.64974 1.83334C6.79418 1.83334 6.91374 1.88045 7.00841 1.97468C7.10263 2.06934 7.14974 2.1889 7.14974 2.33334V2.50001H8.54974C8.71641 2.50001 8.85818 2.55823 8.97507 2.67468C9.09152 2.79157 9.14974 2.93334 9.14974 3.10001V6.33334C9.14974 7.26668 8.84707 8.07779 8.24174 8.76668C7.63596 9.45557 6.88307 9.85557 5.98307 9.96668V10.3333C5.98307 11.1667 6.27485 11.8751 6.85841 12.4587C7.44152 13.0418 8.14974 13.3333 8.98307 13.3333C9.81641 13.3333 10.5249 13.0418 11.1084 12.4587C11.6915 11.8751 11.9831 11.1667 11.9831 10.3333V9.25001C11.6386 9.1389 11.3526 8.93601 11.1251 8.64134C10.8971 8.34712 10.7831 8.01112 10.7831 7.63334C10.7831 7.15557 10.9497 6.75001 11.2831 6.41668C11.6164 6.08334 12.0164 5.91668 12.4831 5.91668C12.9609 5.91668 13.3664 6.08334 13.6997 6.41668C14.0331 6.75001 14.1997 7.15557 14.1997 7.63334C14.1997 8.01112 14.086 8.34712 13.8584 8.64134C13.6304 8.93601 13.3386 9.1389 12.9831 9.25001V10.3333C12.9831 11.4445 12.5942 12.3889 11.8164 13.1667C11.0386 13.9445 10.0942 14.3333 8.98307 14.3333ZM12.4831 8.33334C12.6831 8.33334 12.8526 8.26401 12.9917 8.12534C13.1304 7.98623 13.1997 7.82223 13.1997 7.63334C13.1997 7.43334 13.1304 7.26401 12.9917 7.12534C12.8526 6.98623 12.6831 6.91668 12.4831 6.91668C12.2831 6.91668 12.1164 6.98623 11.9831 7.12534C11.8497 7.26401 11.7831 7.43334 11.7831 7.63334C11.7831 7.82223 11.8497 7.98623 11.9831 8.12534C12.1164 8.26401 12.2831 8.33334 12.4831 8.33334Z",fill:"#595959"})),Ft=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t.createElement("path",{d:"M6.86836 9.26489V10.2386C6.86836 10.509 6.96294 10.7389 7.15209 10.9283C7.34124 11.1176 7.57093 11.2122 7.84114 11.2122C8.11135 11.2122 8.34133 11.1176 8.53106 10.9283C8.7208 10.7389 8.81567 10.509 8.81567 10.2386V9.26489H9.78936C10.0598 9.26489 10.2897 9.17031 10.479 8.98116C10.6684 8.79201 10.763 8.56233 10.763 8.29211C10.763 8.0219 10.6684 7.79192 10.479 7.60219C10.2897 7.41245 10.0598 7.31758 9.78936 7.31758H8.81567V6.34389C8.81567 6.07343 8.72109 5.84354 8.53194 5.65422C8.34279 5.4649 8.11311 5.37024 7.84289 5.37024C7.57268 5.37024 7.3427 5.4649 7.15297 5.65422C6.96323 5.84354 6.86836 6.07343 6.86836 6.34389V7.31758H5.89467C5.62421 7.31758 5.39432 7.41216 5.205 7.60131C5.01568 7.79046 4.92102 8.02014 4.92102 8.29036C4.92102 8.56057 5.01568 8.79055 5.205 8.98028C5.39432 9.17002 5.62421 9.26489 5.89467 9.26489H6.86836ZM3.40809 14.1333C3.02086 14.1333 2.68938 13.9954 2.41364 13.7196C2.13788 13.4439 2 13.1124 2 12.7252V6.07426C2 5.85132 2.04987 5.64011 2.14961 5.44063C2.24936 5.24116 2.38723 5.07689 2.56323 4.94782L6.99718 1.61486C7.24323 1.42712 7.52444 1.33325 7.84081 1.33325C8.15718 1.33325 8.43919 1.42712 8.68685 1.61486L13.1208 4.94782C13.2968 5.07689 13.4347 5.24116 13.5344 5.44063C13.6342 5.64011 13.684 5.85132 13.684 6.07426V12.7252C13.684 13.1124 13.5462 13.4439 13.2704 13.7196C12.9947 13.9954 12.6632 14.1333 12.2759 14.1333H3.40809ZM3.40809 12.9649H12.2759C12.3459 12.9649 12.4033 12.9424 12.4482 12.8974C12.4932 12.8525 12.5156 12.7951 12.5156 12.7252V6.07426C12.5156 6.03431 12.5069 5.99811 12.4894 5.96566C12.4719 5.9332 12.4482 5.90449 12.4183 5.87953L7.98433 2.55406C7.94438 2.51911 7.89694 2.50164 7.84202 2.50164C7.78709 2.50164 7.73965 2.51911 7.69971 2.55406L3.26576 5.87953C3.2358 5.90449 3.21209 5.9332 3.1946 5.96566C3.17712 5.99811 3.16839 6.03431 3.16839 6.07426V12.7252C3.16839 12.7951 3.19086 12.8525 3.2358 12.8974C3.28075 12.9424 3.33818 12.9649 3.40809 12.9649Z",fill:"#595959"})),Mt=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t.createElement("path",{d:"M7.99984 8.00004C8.3665 8.00004 8.68039 7.86949 8.9415 7.60837C9.20261 7.34726 9.33317 7.03337 9.33317 6.66671C9.33317 6.30004 9.20261 5.98615 8.9415 5.72504C8.68039 5.46393 8.3665 5.33337 7.99984 5.33337C7.63317 5.33337 7.31928 5.46393 7.05817 5.72504C6.79706 5.98615 6.6665 6.30004 6.6665 6.66671C6.6665 7.03337 6.79706 7.34726 7.05817 7.60837C7.31928 7.86949 7.63317 8.00004 7.99984 8.00004ZM7.99984 12.9C9.35539 11.6556 10.3609 10.525 11.0165 9.50837C11.6721 8.49171 11.9998 7.58893 11.9998 6.80004C11.9998 5.58893 11.6137 4.59726 10.8415 3.82504C10.0693 3.05282 9.12206 2.66671 7.99984 2.66671C6.87761 2.66671 5.93039 3.05282 5.15817 3.82504C4.38595 4.59726 3.99984 5.58893 3.99984 6.80004C3.99984 7.58893 4.32761 8.49171 4.98317 9.50837C5.63873 10.525 6.64428 11.6556 7.99984 12.9ZM7.99984 14.4167C7.91095 14.4167 7.82206 14.4 7.73317 14.3667C7.64428 14.3334 7.5665 14.2889 7.49984 14.2334C5.87761 12.8 4.6665 11.4695 3.8665 10.2417C3.0665 9.01393 2.6665 7.86671 2.6665 6.80004C2.6665 5.13337 3.20261 3.8056 4.27484 2.81671C5.34706 1.82782 6.58873 1.33337 7.99984 1.33337C9.41095 1.33337 10.6526 1.82782 11.7248 2.81671C12.7971 3.8056 13.3332 5.13337 13.3332 6.80004C13.3332 7.86671 12.9332 9.01393 12.1332 10.2417C11.3332 11.4695 10.1221 12.8 8.49984 14.2334C8.43317 14.2889 8.35539 14.3334 8.2665 14.3667C8.17761 14.4 8.08873 14.4167 7.99984 14.4167Z",fill:"#8C8C8C"})),Rt=()=>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"})),Tt=({state:e,isMobile:i,debouncedFetchSearchResults:n,selectedLocation:l,onSpecialtyClick:c,dispatch:d})=>{var u;const{t:h,locale:g}=r(),m=s(null),C=o((()=>p[g]),[g]),b=o((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:i?"border: 1px solid #d9d9d9":"none",height:i?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:i?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[i]),y=a((function(e){console.log(e)}),[n,d]);return E(m,(()=>{d({type:bt.ClickOutsideInputSpecialty})})),t.createElement(Ot,{ref:m},t.createElement(j.Wrapper,null,t.createElement(j,{size:i?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(u=null==e?void 0:e.selectedSpecialty)||void 0===u?void 0:u.name)||"",rightSection:t.createElement(V,null),styles:b,onFocus:()=>d({type:bt.FocusInputSpecialty}),onChange:e=>{y(e.target.value)}})),"specialty"===e.focused&&t.createElement(jt,null,t.createElement(It,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{c&&c({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},t.createElement("div",{className:"image-item"},t.createElement(Rt,null)),t.createElement(f,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>t.createElement(It,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),c&&c(Object.assign(Object.assign({},e),{total_doctor:0}))},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},t.createElement("div",{className:"image-item"},t.createElement("img",{src:e.thumbnail,alt:e.name})),t.createElement(f,{size:"md"},e.name))))))},Pt=({state:e,type:i,isMobile:n,isLoading:l,initalSearchValue:c,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,hideSpecialtySelection:h=!1,clientSlug:g="",focusSearchInput:m,onSearch:C,dispatch:b})=>{var y;const{t:f}=r(),x=s(null),S=o((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),w=o((()=>"doctor"===i?f("booking.searchBar.placeholder.doctor"):"service"===i?f("booking.searchBar.placeholder.service"):"hospital"===i?f("booking.searchBar.placeholder.hospital"):"specialty"===i?f("booking.searchBar.placeholder.specialty"):""),[i]),L=o((()=>({root:{flex:1,"&.hide-specialty-selection":{".mantine-Input-rightSection":{display:"none"},input:{paddingLeft:"48px"},".mantine-Input-icon":{left:"0"}}}})),[]),k=o((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),O=o((()=>({input:{color:"#262626"}})),[]);E(x,(()=>{b({type:bt.ClickOutsideInputSearch})}));const I=a((function(t){b({type:bt.ChangeInputSearch,payload:t}),"function"!=typeof C&&(t.trim().length>mt[e.locale]||c||0===t.trim().length?p(t.trim(),e,i,g):(p.cancel(),b({type:bt.DisplayInitialSearchResults})))}),[b,e,i]),$=a((function(e){b({type:bt.SelectSpecialty,payload:e}),m()}),[b]);return t.createElement(vt,{ref:x},"specialty"===i?t.createElement(j.Wrapper,{styles:L},t.createElement(j,{icon:t.createElement(v.Search,null),size:n?"md":"lg",placeholder:w,styles:O,value:e.searchKeywords,onFocus:()=>b({type:bt.FocusInputSearchSpecialty}),onChange:e=>{I(e.target.value)}})):t.createElement(t.Fragment,null,"service"===i?t.createElement(j.Wrapper,{styles:L},t.createElement(j,{icon:t.createElement(v.Search,null),size:n?"md":"lg",name:"search-results",placeholder:w,onFocus:()=>b({type:bt.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{I(e.target.value)}})):t.createElement(t.Fragment,null,n&&!h?t.createElement(t.Fragment,null,t.createElement(Tt,{state:e,isMobile:n,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$}),t.createElement(j.Wrapper,{styles:L},t.createElement(j,{icon:t.createElement(v.Search,null),size:"md",placeholder:w,value:e.searchKeywords,name:"search-results",onFocus:()=>b({type:bt.FocusInputSearch}),onChange:e=>{I(e.target.value)}}))):t.createElement(j.Wrapper,{styles:L,className:h?"hide-specialty-selection":""},t.createElement(j,Object.assign({icon:t.createElement(v.Search,null),size:"lg",placeholder:w,styles:k,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{I(e.target.value)},onFocus:()=>b({type:bt.FocusInputSearch})},S,{rightSection:h?t.createElement(t.Fragment,null):t.createElement(Tt,{state:e,isMobile:n,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:$})})))),"search"===e.focused&&t.createElement(xt,null,t.createElement(kt,{type:i,state:e,results:(null===(y=e.searchResults)||void 0===y?void 0:y[i])||[],location:e.selectedLocation.name,dispatch:b,isLoading:l,typeInformation:d,clientSlug:g}))))},Nt=b.div`
566
+ `,$t=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t.createElement("path",{d:"M8.98307 14.3333C7.87196 14.3333 6.92752 13.9445 6.14974 13.1667C5.37196 12.3889 4.98307 11.4445 4.98307 10.3333V9.96668C4.08307 9.85557 3.33041 9.45557 2.72507 8.76668C2.1193 8.07779 1.81641 7.26668 1.81641 6.33334V3.10001C1.81641 2.93334 1.87463 2.79157 1.99107 2.67468C2.10796 2.55823 2.24974 2.50001 2.41641 2.50001H3.81641V2.33334C3.81641 2.1889 3.86374 2.06934 3.95841 1.97468C4.05263 1.88045 4.17196 1.83334 4.31641 1.83334C4.46085 1.83334 4.58041 1.88045 4.67507 1.97468C4.7693 2.06934 4.81641 2.1889 4.81641 2.33334V3.66668C4.81641 3.81112 4.7693 3.93045 4.67507 4.02468C4.58041 4.11934 4.46085 4.16668 4.31641 4.16668C4.17196 4.16668 4.05263 4.11934 3.95841 4.02468C3.86374 3.93045 3.81641 3.81112 3.81641 3.66668V3.50001H2.81641V6.33334C2.81641 7.06668 3.07752 7.69445 3.59974 8.21668C4.12196 8.7389 4.74974 9.00001 5.48307 9.00001C6.21641 9.00001 6.84418 8.7389 7.36641 8.21668C7.88863 7.69445 8.14974 7.06668 8.14974 6.33334V3.50001H7.14974V3.66668C7.14974 3.81112 7.10263 3.93045 7.00841 4.02468C6.91374 4.11934 6.79418 4.16668 6.64974 4.16668C6.5053 4.16668 6.38596 4.11934 6.29174 4.02468C6.19707 3.93045 6.14974 3.81112 6.14974 3.66668V2.33334C6.14974 2.1889 6.19707 2.06934 6.29174 1.97468C6.38596 1.88045 6.5053 1.83334 6.64974 1.83334C6.79418 1.83334 6.91374 1.88045 7.00841 1.97468C7.10263 2.06934 7.14974 2.1889 7.14974 2.33334V2.50001H8.54974C8.71641 2.50001 8.85818 2.55823 8.97507 2.67468C9.09152 2.79157 9.14974 2.93334 9.14974 3.10001V6.33334C9.14974 7.26668 8.84707 8.07779 8.24174 8.76668C7.63596 9.45557 6.88307 9.85557 5.98307 9.96668V10.3333C5.98307 11.1667 6.27485 11.8751 6.85841 12.4587C7.44152 13.0418 8.14974 13.3333 8.98307 13.3333C9.81641 13.3333 10.5249 13.0418 11.1084 12.4587C11.6915 11.8751 11.9831 11.1667 11.9831 10.3333V9.25001C11.6386 9.1389 11.3526 8.93601 11.1251 8.64134C10.8971 8.34712 10.7831 8.01112 10.7831 7.63334C10.7831 7.15557 10.9497 6.75001 11.2831 6.41668C11.6164 6.08334 12.0164 5.91668 12.4831 5.91668C12.9609 5.91668 13.3664 6.08334 13.6997 6.41668C14.0331 6.75001 14.1997 7.15557 14.1997 7.63334C14.1997 8.01112 14.086 8.34712 13.8584 8.64134C13.6304 8.93601 13.3386 9.1389 12.9831 9.25001V10.3333C12.9831 11.4445 12.5942 12.3889 11.8164 13.1667C11.0386 13.9445 10.0942 14.3333 8.98307 14.3333ZM12.4831 8.33334C12.6831 8.33334 12.8526 8.26401 12.9917 8.12534C13.1304 7.98623 13.1997 7.82223 13.1997 7.63334C13.1997 7.43334 13.1304 7.26401 12.9917 7.12534C12.8526 6.98623 12.6831 6.91668 12.4831 6.91668C12.2831 6.91668 12.1164 6.98623 11.9831 7.12534C11.8497 7.26401 11.7831 7.43334 11.7831 7.63334C11.7831 7.82223 11.8497 7.98623 11.9831 8.12534C12.1164 8.26401 12.2831 8.33334 12.4831 8.33334Z",fill:"#595959"})),Ft=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t.createElement("path",{d:"M6.86836 9.26489V10.2386C6.86836 10.509 6.96294 10.7389 7.15209 10.9283C7.34124 11.1176 7.57093 11.2122 7.84114 11.2122C8.11135 11.2122 8.34133 11.1176 8.53106 10.9283C8.7208 10.7389 8.81567 10.509 8.81567 10.2386V9.26489H9.78936C10.0598 9.26489 10.2897 9.17031 10.479 8.98116C10.6684 8.79201 10.763 8.56233 10.763 8.29211C10.763 8.0219 10.6684 7.79192 10.479 7.60219C10.2897 7.41245 10.0598 7.31758 9.78936 7.31758H8.81567V6.34389C8.81567 6.07343 8.72109 5.84354 8.53194 5.65422C8.34279 5.4649 8.11311 5.37024 7.84289 5.37024C7.57268 5.37024 7.3427 5.4649 7.15297 5.65422C6.96323 5.84354 6.86836 6.07343 6.86836 6.34389V7.31758H5.89467C5.62421 7.31758 5.39432 7.41216 5.205 7.60131C5.01568 7.79046 4.92102 8.02014 4.92102 8.29036C4.92102 8.56057 5.01568 8.79055 5.205 8.98028C5.39432 9.17002 5.62421 9.26489 5.89467 9.26489H6.86836ZM3.40809 14.1333C3.02086 14.1333 2.68938 13.9954 2.41364 13.7196C2.13788 13.4439 2 13.1124 2 12.7252V6.07426C2 5.85132 2.04987 5.64011 2.14961 5.44063C2.24936 5.24116 2.38723 5.07689 2.56323 4.94782L6.99718 1.61486C7.24323 1.42712 7.52444 1.33325 7.84081 1.33325C8.15718 1.33325 8.43919 1.42712 8.68685 1.61486L13.1208 4.94782C13.2968 5.07689 13.4347 5.24116 13.5344 5.44063C13.6342 5.64011 13.684 5.85132 13.684 6.07426V12.7252C13.684 13.1124 13.5462 13.4439 13.2704 13.7196C12.9947 13.9954 12.6632 14.1333 12.2759 14.1333H3.40809ZM3.40809 12.9649H12.2759C12.3459 12.9649 12.4033 12.9424 12.4482 12.8974C12.4932 12.8525 12.5156 12.7951 12.5156 12.7252V6.07426C12.5156 6.03431 12.5069 5.99811 12.4894 5.96566C12.4719 5.9332 12.4482 5.90449 12.4183 5.87953L7.98433 2.55406C7.94438 2.51911 7.89694 2.50164 7.84202 2.50164C7.78709 2.50164 7.73965 2.51911 7.69971 2.55406L3.26576 5.87953C3.2358 5.90449 3.21209 5.9332 3.1946 5.96566C3.17712 5.99811 3.16839 6.03431 3.16839 6.07426V12.7252C3.16839 12.7951 3.19086 12.8525 3.2358 12.8974C3.28075 12.9424 3.33818 12.9649 3.40809 12.9649Z",fill:"#595959"})),Mt=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t.createElement("path",{d:"M7.99984 8.00004C8.3665 8.00004 8.68039 7.86949 8.9415 7.60837C9.20261 7.34726 9.33317 7.03337 9.33317 6.66671C9.33317 6.30004 9.20261 5.98615 8.9415 5.72504C8.68039 5.46393 8.3665 5.33337 7.99984 5.33337C7.63317 5.33337 7.31928 5.46393 7.05817 5.72504C6.79706 5.98615 6.6665 6.30004 6.6665 6.66671C6.6665 7.03337 6.79706 7.34726 7.05817 7.60837C7.31928 7.86949 7.63317 8.00004 7.99984 8.00004ZM7.99984 12.9C9.35539 11.6556 10.3609 10.525 11.0165 9.50837C11.6721 8.49171 11.9998 7.58893 11.9998 6.80004C11.9998 5.58893 11.6137 4.59726 10.8415 3.82504C10.0693 3.05282 9.12206 2.66671 7.99984 2.66671C6.87761 2.66671 5.93039 3.05282 5.15817 3.82504C4.38595 4.59726 3.99984 5.58893 3.99984 6.80004C3.99984 7.58893 4.32761 8.49171 4.98317 9.50837C5.63873 10.525 6.64428 11.6556 7.99984 12.9ZM7.99984 14.4167C7.91095 14.4167 7.82206 14.4 7.73317 14.3667C7.64428 14.3334 7.5665 14.2889 7.49984 14.2334C5.87761 12.8 4.6665 11.4695 3.8665 10.2417C3.0665 9.01393 2.6665 7.86671 2.6665 6.80004C2.6665 5.13337 3.20261 3.8056 4.27484 2.81671C5.34706 1.82782 6.58873 1.33337 7.99984 1.33337C9.41095 1.33337 10.6526 1.82782 11.7248 2.81671C12.7971 3.8056 13.3332 5.13337 13.3332 6.80004C13.3332 7.86671 12.9332 9.01393 12.1332 10.2417C11.3332 11.4695 10.1221 12.8 8.49984 14.2334C8.43317 14.2889 8.35539 14.3334 8.2665 14.3667C8.17761 14.4 8.08873 14.4167 7.99984 14.4167Z",fill:"#8C8C8C"})),Rt=()=>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"})),Tt=({state:e,isMobile:i,debouncedFetchSearchResults:n,selectedLocation:l,onSpecialtyClick:c,dispatch:d})=>{var u;const{t:h,locale:g}=r(),m=s(null),C=o((()=>p[g]),[g]),b=o((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:i?"border: 1px solid #d9d9d9":"none",height:i?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:i?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[i]),y=a((function(e){console.log(e)}),[n,d]);return E(m,(()=>{d({type:bt.ClickOutsideInputSpecialty})})),t.createElement(Ot,{ref:m},t.createElement($.Wrapper,null,t.createElement($,{size:i?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(u=null==e?void 0:e.selectedSpecialty)||void 0===u?void 0:u.name)||"",rightSection:t.createElement(V,null),styles:b,onFocus:()=>d({type:bt.FocusInputSpecialty}),onChange:e=>{y(e.target.value)}})),"specialty"===e.focused&&t.createElement(jt,null,t.createElement(It,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{c&&c({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},t.createElement("div",{className:"image-item"},t.createElement(Rt,null)),t.createElement(f,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>t.createElement(It,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),c&&c(Object.assign(Object.assign({},e),{total_doctor:0}))},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},t.createElement("div",{className:"image-item"},t.createElement("img",{src:e.thumbnail,alt:e.name})),t.createElement(f,{size:"md"},e.name))))))},Pt=({state:e,type:i,isMobile:n,isLoading:l,initalSearchValue:c,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,hideSpecialtySelection:h=!1,clientSlug:g="",focusSearchInput:m,onSearch:C,dispatch:b})=>{var y;const{t:f}=r(),x=s(null),S=o((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),w=o((()=>"doctor"===i?f("booking.searchBar.placeholder.doctor"):"service"===i?f("booking.searchBar.placeholder.service"):"hospital"===i?f("booking.searchBar.placeholder.hospital"):"specialty"===i?f("booking.searchBar.placeholder.specialty"):""),[i]),L=o((()=>({root:{flex:1,"&.hide-specialty-selection":{".mantine-Input-rightSection":{display:"none"},input:{paddingLeft:"48px"},".mantine-Input-icon":{left:"0"}}}})),[]),k=o((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),O=o((()=>({input:{color:"#262626"}})),[]);E(x,(()=>{b({type:bt.ClickOutsideInputSearch})}));const j=a((function(t){b({type:bt.ChangeInputSearch,payload:t}),"function"!=typeof C&&(t.trim().length>mt[e.locale]||c||0===t.trim().length?p(t.trim(),e,i,g):(p.cancel(),b({type:bt.DisplayInitialSearchResults})))}),[b,e,i]),I=a((function(e){b({type:bt.SelectSpecialty,payload:e}),m()}),[b]);return t.createElement(vt,{ref:x},"specialty"===i?t.createElement($.Wrapper,{styles:L},t.createElement($,{icon:t.createElement(v.Search,null),size:n?"md":"lg",placeholder:w,styles:O,value:e.searchKeywords,onFocus:()=>b({type:bt.FocusInputSearchSpecialty}),onChange:e=>{j(e.target.value)}})):t.createElement(t.Fragment,null,"service"===i?t.createElement($.Wrapper,{styles:L},t.createElement($,{icon:t.createElement(v.Search,null),size:n?"md":"lg",name:"search-results",placeholder:w,onFocus:()=>b({type:bt.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{j(e.target.value)}})):t.createElement(t.Fragment,null,n&&!h?t.createElement(t.Fragment,null,t.createElement(Tt,{state:e,isMobile:n,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:I}),t.createElement($.Wrapper,{styles:L},t.createElement($,{icon:t.createElement(v.Search,null),size:"md",placeholder:w,value:e.searchKeywords,name:"search-results",onFocus:()=>b({type:bt.FocusInputSearch}),onChange:e=>{j(e.target.value)}}))):t.createElement($.Wrapper,{styles:L,className:h?"hide-specialty-selection":""},t.createElement($,Object.assign({icon:t.createElement(v.Search,null),size:"lg",placeholder:w,styles:k,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{j(e.target.value)},onFocus:()=>b({type:bt.FocusInputSearch})},S,{rightSection:h?t.createElement(t.Fragment,null):t.createElement(Tt,{state:e,isMobile:n,dispatch:b,debouncedFetchSearchResults:p,onSpecialtyClick:I})})))),"search"===e.focused&&t.createElement(xt,null,t.createElement(kt,{type:i,state:e,results:(null===(y=e.searchResults)||void 0===y?void 0:y[i])||[],location:e.selectedLocation.name,dispatch:b,isLoading:l,typeInformation:d,clientSlug:g}))))},Nt=b.div`
567
567
  position: relative;
568
568
 
569
569
  ${w.mbDown} {
@@ -627,7 +627,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
627
627
  width: 12px;
628
628
  height: 18px;
629
629
  flex: 0 0 12px;
630
- `,Dt=({state:e,isMobile:i,debouncedFetchCitiesByKeyword:n,selectedLocation:l,trackingAttributes:c,onLocationClick:u,dispatch:h})=>{const{t:g,locale:m}=r(),C=s(null),b=o((()=>c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}),[c]),y=a((function(t){h({type:bt.ChangeInputLocation,payload:t}),t.trim().length>mt[e.locale]?n(t.trim()):(n.cancel(),h({type:bt.DisplayInitialCities}))}),[n,h]);return E(C,(()=>{h({type:bt.ClickOutsideInputLocation})})),t.createElement(Nt,{ref:C},t.createElement(j.Wrapper,null,t.createElement(j,Object.assign({size:i?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>h({type:bt.FocusInputLocation}),onChange:e=>{y(e.target.value)}},b))),"location"===e.focused&&t.createElement(At,null,t.createElement(Bt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;u&&u({name:g("booking.searchBar.allLocations"),id:d,slug:null===(e=p[m])||void 0===e?void 0:e.ALL})}},t.createElement(Vt,{color:x.colors.neutral400}),t.createElement(f,{size:"md"},g("booking.searchBar.allLocations"))),e.cities.map((e=>t.createElement(Bt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),u&&u(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},t.createElement(Vt,{color:x.colors.neutral400}),t.createElement(f,{size:"md"},e.name))))))},Kt=b.div`
630
+ `,Dt=({state:e,isMobile:i,debouncedFetchCitiesByKeyword:n,selectedLocation:l,trackingAttributes:c,onLocationClick:u,dispatch:h})=>{const{t:g,locale:m}=r(),C=s(null),b=o((()=>c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}),[c]),y=a((function(t){h({type:bt.ChangeInputLocation,payload:t}),t.trim().length>mt[e.locale]?n(t.trim()):(n.cancel(),h({type:bt.DisplayInitialCities}))}),[n,h]);return E(C,(()=>{h({type:bt.ClickOutsideInputLocation})})),t.createElement(Nt,{ref:C},t.createElement($.Wrapper,null,t.createElement($,Object.assign({size:i?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>h({type:bt.FocusInputLocation}),onChange:e=>{y(e.target.value)}},b))),"location"===e.focused&&t.createElement(At,null,t.createElement(Bt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;u&&u({name:g("booking.searchBar.allLocations"),id:d,slug:null===(e=p[m])||void 0===e?void 0:e.ALL})}},t.createElement(Vt,{color:x.colors.neutral400}),t.createElement(f,{size:"md"},g("booking.searchBar.allLocations"))),e.cities.map((e=>t.createElement(Bt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),u&&u(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},t.createElement(Vt,{color:x.colors.neutral400}),t.createElement(f,{size:"md"},e.name))))))},Kt=b.div`
631
631
  display: flex;
632
632
  flex-wrap: wrap;
633
633
  row-gap: 8px;
@@ -688,7 +688,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
688
688
  line-height: 18px;
689
689
  }
690
690
  }
691
- `,_t=b(I)`
691
+ `,_t=b(F)`
692
692
  margin: 24px 0 !important;
693
693
  `,Ht=b.div`
694
694
  display: flex;
@@ -710,7 +710,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
710
710
  text-align: center;
711
711
  }
712
712
  }
713
- `,Gt=({state:e,isMobile:i,specialties:a,isLoading:n,dispatch:s})=>{const{t:l,locale:c}=r(),{selectedLocation:d}=e,u=o((()=>p[c]),[c]),h=o((()=>a.length>=9||e.searchKeywords.trim().length<=mt[e.locale]),[e.searchKeywords,a]);return t.createElement(t.Fragment,null,!i&&t.createElement(_t,{color:"#E4E8EC"}),t.createElement(Kt,null,a.length>0&&!n&&t.createElement(t.Fragment,null,a.map(((e,i)=>i>=9?t.createElement(t.Fragment,null):t.createElement(zt,{key:e.id,onClick:()=>(e=>{let t="";e===g?(t=`/${d.slug}/${u.HOSPITAL}/${m.GSK}/`,s({type:bt.ClickOutsideInputSearchSpecialty})):t=`/${d.slug}/${u.DOCTOR}/${e}`,s({type:bt.NavigateTo,payload:t})})(e.slug)},t.createElement("div",{className:"image-item"},t.createElement("img",{src:e.thumbnail,alt:e.name})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},e.name)))))),0===a.length&&!n&&t.createElement(f,{size:"sm",color:x.colors.gray400},l("booking.searchBar.noResults")),n&&Array(6).fill(void 0).map(((e,i)=>t.createElement(zt,{key:"loading"+i},t.createElement("div",{className:"image-item"},t.createElement(O,{height:40,animate:!0})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},t.createElement(O,{height:20,radius:"sm",animate:!0}))))))),h&&t.createElement(Ht,null,t.createElement("div",{className:"show-more",onClick:()=>{const e=`/${u.SPECIALTIES}`;s({type:bt.NavigateTo,payload:e})}},l("home.seeAll"))))},Zt=b.div`
713
+ `,Gt=({state:e,isMobile:i,specialties:a,isLoading:n,dispatch:s})=>{const{t:l,locale:c}=r(),{selectedLocation:d}=e,u=o((()=>p[c]),[c]),h=o((()=>a.length>=9||e.searchKeywords.trim().length<=mt[e.locale]),[e.searchKeywords,a]);return t.createElement(t.Fragment,null,!i&&t.createElement(_t,{color:"#E4E8EC"}),t.createElement(Kt,null,a.length>0&&!n&&t.createElement(t.Fragment,null,a.map(((e,i)=>i>=9?t.createElement(t.Fragment,null):t.createElement(zt,{key:e.id,onClick:()=>(e=>{let t="";e===g?(t=`/${d.slug}/${u.HOSPITAL}/${m.GSK}/`,s({type:bt.ClickOutsideInputSearchSpecialty})):t=`/${d.slug}/${u.DOCTOR}/${e}`,s({type:bt.NavigateTo,payload:t})})(e.slug)},t.createElement("div",{className:"image-item"},t.createElement("img",{src:e.thumbnail,alt:e.name})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},e.name)))))),0===a.length&&!n&&t.createElement(f,{size:"sm",color:x.colors.gray400},l("booking.searchBar.noResults")),n&&Array(6).fill(void 0).map(((e,i)=>t.createElement(zt,{key:"loading"+i},t.createElement("div",{className:"image-item"},t.createElement(I,{height:40,animate:!0})),t.createElement("div",{className:"infor"},t.createElement("div",{className:"title"},t.createElement(I,{height:20,radius:"sm",animate:!0}))))))),h&&t.createElement(Ht,null,t.createElement("div",{className:"show-more",onClick:()=>{const e=`/${u.SPECIALTIES}`;s({type:bt.NavigateTo,payload:e})}},l("home.seeAll"))))},Zt=b.div`
714
714
  display: flex;
715
715
  gap: 5px;
716
716
  margin-top: 16px;
@@ -763,7 +763,7 @@ import{a as e}from"./tslib.es6-caf7391f.js";import t,{useState as i,useCallback
763
763
  border-bottom: 1px solid ${x.colors.neutral100};
764
764
  `,qt=b(B)`
765
765
  padding: 0 16px;
766
- `,Jt=({currentTab:e,hideTabBookingSearch:i=[],isMobile:a,setCurrentTab:n})=>{const s=o((()=>({root:{overflowY:a?"hidden":"initial",overflowX:a?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:a?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:a?"14px":"16px",fontWeight:600,lineHeight:a?"22px":"24px"}})),[a]),l=(()=>{const{t:e}=r();return[{value:"hospital",label:e("booking.searchPopup.hospitals")},{value:"doctor",label:e("booking.searchPopup.doctors")},{value:"service",label:e("booking.searchPopup.services")},{value:"specialty",label:e("booking.searchPopup.specialties")}]})(),c=o((()=>l.filter((e=>!i.includes(e.value)))||[]),[i,l]);return t.createElement(Qt,{className:"booking-search-tab"},t.createElement(qt,null,t.createElement($,{value:e,onTabChange:e=>{n(e)},styles:s},t.createElement($.List,null,c.map((e=>t.createElement($.Tab,{value:e.value,key:e.value},e.label)))))))};var Xt;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(Xt||(Xt={}));const ei=({isMobile:e,careApiDomain:g,geoLocationPermission:C,geoLocationCoordinates:b,initialSelectedCity:y,initialSearchValue:f="",initTypeSearch:v="hospital",initSpecialty:x,careFrontDomain:S="/care",isDebug:w=!1,gaTrackingSearchBar:L,gaTrackingLocationSearch:O,autoCompleteDisabled:j=!1,inputSearchPlaceholder:I="",hideTabBookingSearch:$=[],hideSpecialtySelection:R=!1,hidePopularSearchKeys:T=!1,clientSlug:P="",routerPush:N,onGeoLocationPermissionChange:A,onChangeLocation:B})=>{const{locale:V,t:D}=r(),z=s(null),_=s(null),[H,G]=i(v),{geoLocationPermission:Z,geoLocationCoordinates:Y}=K(),[U,W]=l(ft,Ct,(t=>Object.assign(Object.assign({},t),{isDebug:w,isMobile:e,geoLocationPermission:C||Z||"unset",geoLocationCoordinates:b||Y||null,searchKeywords:f,initialSelectedCity:y||null,selectedLocation:y||t.selectedLocation||null,searchLocationKeywords:(null==y?void 0:y.name)||t.searchLocationKeywords,autoCompleteDisabled:j,inputSearchPlaceholder:I,locale:V}))),{navigateTo:Q,focusedSpecialty:q,searchKeywords:J,geoLocationPermission:X,selectedLocation:ee,selectedSpecialty:te,initialSelectedCity:ie,searchResults:ae,isLoadingSearchResults:oe}=U,{fetchCitiesByLocation:ne,fetchCitiesByKeyword:se,fetchSearchResults:le,fetchAllSpecialties:re,fetchPopularKeys:ce}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN",client:o=""}){const n=a((function(a,o={}){const n=`${t}${a}`;return e({type:bt.FetchCitiesStart}),fetch(ct(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:bt.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:a((function({coordinates:t}){let a={};const s={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(s.noPaging=1);const l=[n(k.GET_CITY_BY_IP,Object.assign(Object.assign(Object.assign({},a),s),{client:m.MSD===o?"":o}))];return"zh-TW"===i&&l.push(n(k.GET_CITIES_LIST,{noPaging:1,client:m.MSD===o?"":o})),Promise.all(l).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:bt.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:a((function(t){return n(k.GET_CITIES_LIST,{keyword:t,client:o}).then((t=>{e({type:bt.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:a((function(a,n,s,l,r){const c="specialty"===s?`${t}${k.GET_SEARCH_SPECIALTY}`:`${t}${k.GET_SEARCH_V2}`;e({type:bt.FetchSearchResultsStart});const{selectedLocation:p,geoLocationCoordinates:h,selectedSpecialty:g}=n;let C="";if(!p)return void e({type:bt.FetchSearchResultsFinish});C=p.id===d?"":p.id;const b=(null==h?void 0:h.lat)||"",y=(null==h?void 0:h.lng)||"",f=(null==g?void 0:g.id)>0?null==g?void 0:g.id:"",v=a.trim().length>mt[i]?a.trim():"";return fetch(ct(c,{domain:t,searchType:s||"global",keyword:v,city:C===u?"":C,lat:b,lng:y,specialty_id:f,client_slug:m.MSD===l?"":l,msd:m.MSD===o?1:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{let i=[];"specialty"!==s&&(i=t.searches),"specialty"===s&&(i=v?t.specialties:t.default),e({type:bt.FetchSearchResultsComplete,payload:{key:s,searches:i||[]}}),r&&e({type:bt.UpdateInitialSearchResults,payload:{key:s,searches:i||[]}})})).catch((e=>{console.log("error loading search results",{url:c,error:e})})).finally((()=>e({type:bt.FetchSearchResultsFinish})))}),[i,t,e]),fetchAllSpecialties:a((function(){const a=`${t}${k.GET_SEARCH_SPECIALTY}`;return fetch(ct(a,{domain:t,searchType:"",msd:m.MSD===o?1:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:bt.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:a,error:e})}))}),[i,t,e]),fetchPopularKeys:a((function(a){const o=`${t}${k.GET_SEARCH_POPULAR_KEY}`;return fetch(ct(o,{domain:t,searchType:Xt[a],sort_by:"display_order",sort_order:"asc"},i)).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:bt.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e])}}({dispatch:W,locale:V,careApiDomain:g,client:P}),de=o((()=>p[V]),[V]),pe=o((()=>({doctor:{name:D("booking.searchPopup.doctors"),icon:t.createElement($t,null),slug:de.DOCTOR},service:{name:D("booking.searchPopup.services"),icon:t.createElement(Ft,null),slug:de.SERVICE},hospital:{name:D("booking.searchPopup.hospitals"),icon:t.createElement(Mt,null),slug:de.HOSPITAL},specialty:{name:D("booking.searchPopup.specialties"),icon:t.createElement(Rt,null),slug:de.SPECIALTIES}})),[H]),ue=o((()=>c(se,400)),[se]),he=o((()=>c(le,400)),[le]),ge=a((function(e){W({type:bt.SelectLocation,payload:e}),me(),B&&B(e)}),[D,W]);function me(){var e;z.current&&(null===(e=z.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return E(_,(()=>{W({type:bt.ClickOutsideInputSearchSpecialty})})),n((()=>{var t;"denied"===X||ie||W({type:bt.SelectLocation,payload:{name:D("booking.searchBar.allLocations"),id:d,slug:null===(t=p[V])||void 0===t?void 0:t.ALL}}),A&&A(X,U.geoLocationCoordinates),e&&"granted"===X&&ee&&W({type:bt.FocusInputSearch}),ne({coordinates:U.geoLocationCoordinates})}),[X]),n((()=>{const e=x||{name:D("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:de.SPECIALTIES};U.selectedSpecialty||W({type:bt.SelectSpecialty,payload:e})}),[x,U.selectedSpecialty]),n((()=>{re()}),[]),n((()=>{ce(H)}),[H]),n((()=>{Q&&(N?N(Q):window.location.href=`${S}${Q}`)}),[Q]),n((()=>{le(U.searchKeywords,U,H,P,!0)}),[ee,te,H]),t.createElement(pt,{ref:z},t.createElement(Jt,{currentTab:H,setCurrentTab:G,isMobile:e,hideTabBookingSearch:$}),t.createElement(ut,{className:"booking-search-container"},t.createElement(ht,null,t.createElement(gt,null,t.createElement("div",{ref:_},t.createElement(F,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==H&&t.createElement(Dt,{state:U,isMobile:e,dispatch:W,debouncedFetchCitiesByKeyword:ue,selectedLocation:ee,onLocationClick:ge,trackingAttributes:O}),t.createElement(Pt,{type:H,isMobile:e,state:U,dispatch:W,debouncedFetchSearchResults:he,initalSearchValue:f,focusSearchInput:me,typeInformation:pe,trackingAttributes:L,isLoading:oe,hideSpecialtySelection:R,clientSlug:P}),t.createElement(M,{size:e?"md":"lg",color:"#2D87F3",fullWidth:e,variant:"filled",onClick:function(){let e="";const{slug:t}=pe[H];let i="";const a=h[V][P];("doctor"===H||"hospital"===H)&&U.selectedSpecialty.id>0&&(i=`&specialtyId=${U.selectedSpecialty.id}`),e="specialty"===H?`/${t}`:`/${ee.slug}/${t}`,a&&(e+=`/${a}`),e+=`?q=${J}${i}`,e&&W({type:bt.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},D("booking.searchBar.searchButton"))),!T&&"specialty"!==H&&U.popularKeys.length>0&&t.createElement(Wt,{type:H,state:U,typeInformation:pe,dispatch:W}),"specialty"===H&&"search"===q&&t.createElement(Gt,{state:U,isMobile:e,dispatch:W,specialties:(null==ae?void 0:ae.specialty)||[],isLoading:oe}))))))},ti=b.div`
766
+ `,Jt=({currentTab:e,hideTabBookingSearch:i=[],isMobile:a,setCurrentTab:n})=>{const s=o((()=>({root:{overflowY:a?"hidden":"initial",overflowX:a?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:a?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:a?"14px":"16px",fontWeight:600,lineHeight:a?"22px":"24px"}})),[a]),l=(()=>{const{t:e}=r();return[{value:"hospital",label:e("booking.searchPopup.hospitals")},{value:"doctor",label:e("booking.searchPopup.doctors")},{value:"service",label:e("booking.searchPopup.services")},{value:"specialty",label:e("booking.searchPopup.specialties")}]})(),c=o((()=>l.filter((e=>!i.includes(e.value)))||[]),[i,l]);return t.createElement(Qt,{className:"booking-search-tab"},t.createElement(qt,null,t.createElement(M,{value:e,onTabChange:e=>{n(e)},styles:s},t.createElement(M.List,null,c.map((e=>t.createElement(M.Tab,{value:e.value,key:e.value},e.label)))))))};var Xt;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(Xt||(Xt={}));const ei=({isMobile:e,careApiDomain:g,geoLocationPermission:C,geoLocationCoordinates:b,initialSelectedCity:y,initialSearchValue:f="",initTypeSearch:v="hospital",initSpecialty:x,careFrontDomain:S="/care",isDebug:w=!1,gaTrackingSearchBar:L,gaTrackingLocationSearch:k,autoCompleteDisabled:O=!1,inputSearchPlaceholder:I="",hideTabBookingSearch:$=[],hideSpecialtySelection:F=!1,hidePopularSearchKeys:M=!1,clientSlug:P="",routerPush:N,onGeoLocationPermissionChange:A,onChangeLocation:B})=>{const{locale:V,t:D}=r(),z=s(null),_=s(null),[H,G]=i(v),{geoLocationPermission:Z,geoLocationCoordinates:Y}=K(),[U,W]=l(ft,Ct,(t=>Object.assign(Object.assign({},t),{isDebug:w,isMobile:e,geoLocationPermission:C||Z||"unset",geoLocationCoordinates:b||Y||null,searchKeywords:f,initialSelectedCity:y||null,selectedLocation:y||t.selectedLocation||null,searchLocationKeywords:(null==y?void 0:y.name)||t.searchLocationKeywords,autoCompleteDisabled:O,inputSearchPlaceholder:I,locale:V}))),{navigateTo:Q,focusedSpecialty:q,searchKeywords:J,geoLocationPermission:X,selectedLocation:ee,selectedSpecialty:te,initialSelectedCity:ie,searchResults:ae,isLoadingSearchResults:oe}=U,{fetchCitiesByLocation:ne,fetchCitiesByKeyword:se,fetchSearchResults:le,fetchAllSpecialties:re,fetchPopularKeys:ce}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN",client:o=""}){const n=a((function(a,o={}){const n=`${t}${a}`;return e({type:bt.FetchCitiesStart}),fetch(ct(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:bt.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:a((function({coordinates:t}){let a={};const s={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(s.noPaging=1);const l=[n(j.GET_CITY_BY_IP,Object.assign(Object.assign(Object.assign({},a),s),{client:m.MSD===o?"":o}))];return"zh-TW"===i&&l.push(n(j.GET_CITIES_LIST,{noPaging:1,client:m.MSD===o?"":o})),Promise.all(l).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:bt.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:a((function(t){return n(j.GET_CITIES_LIST,{keyword:t,client:o}).then((t=>{e({type:bt.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:a((function(a,n,s,l,r){const c="specialty"===s?`${t}${j.GET_SEARCH_SPECIALTY}`:`${t}${j.GET_SEARCH_V2}`;e({type:bt.FetchSearchResultsStart});const{selectedLocation:p,geoLocationCoordinates:h,selectedSpecialty:g}=n;let C="";if(!p)return void e({type:bt.FetchSearchResultsFinish});C=p.id===d?"":p.id;const b=(null==h?void 0:h.lat)||"",y=(null==h?void 0:h.lng)||"",f=(null==g?void 0:g.id)>0?null==g?void 0:g.id:"",v=a.trim().length>mt[i]?a.trim():"";return fetch(ct(c,{domain:t,searchType:s||"global",keyword:v,city:C===u?"":C,lat:b,lng:y,specialty_id:f,client_slug:m.MSD===l?"":l,msd:m.MSD===o?1:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{let i=[];"specialty"!==s&&(i=t.searches),"specialty"===s&&(i=v?t.specialties:t.default),e({type:bt.FetchSearchResultsComplete,payload:{key:s,searches:i||[]}}),r&&e({type:bt.UpdateInitialSearchResults,payload:{key:s,searches:i||[]}})})).catch((e=>{console.log("error loading search results",{url:c,error:e})})).finally((()=>e({type:bt.FetchSearchResultsFinish})))}),[i,t,e]),fetchAllSpecialties:a((function(){const a=`${t}${j.GET_SEARCH_SPECIALTY}`;return fetch(ct(a,{domain:t,searchType:"",msd:m.MSD===o?1:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:bt.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:a,error:e})}))}),[i,t,e]),fetchPopularKeys:a((function(a){const o=`${t}${j.GET_SEARCH_POPULAR_KEY}`;return fetch(ct(o,{domain:t,searchType:Xt[a],sort_by:"display_order",sort_order:"asc"},i)).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:bt.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e])}}({dispatch:W,locale:V,careApiDomain:g,client:P}),de=o((()=>p[V]),[V]),pe=o((()=>({doctor:{name:D("booking.searchPopup.doctors"),icon:t.createElement($t,null),slug:de.DOCTOR},service:{name:D("booking.searchPopup.services"),icon:t.createElement(Ft,null),slug:de.SERVICE},hospital:{name:D("booking.searchPopup.hospitals"),icon:t.createElement(Mt,null),slug:de.HOSPITAL},specialty:{name:D("booking.searchPopup.specialties"),icon:t.createElement(Rt,null),slug:de.SPECIALTIES}})),[H]),ue=o((()=>c(se,400)),[se]),he=o((()=>c(le,400)),[le]),ge=a((function(e){W({type:bt.SelectLocation,payload:e}),me(),B&&B(e)}),[D,W]);function me(){var e;z.current&&(null===(e=z.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return E(_,(()=>{W({type:bt.ClickOutsideInputSearchSpecialty})})),n((()=>{var t;"denied"===X||ie||W({type:bt.SelectLocation,payload:{name:D("booking.searchBar.allLocations"),id:d,slug:null===(t=p[V])||void 0===t?void 0:t.ALL}}),A&&A(X,U.geoLocationCoordinates),e&&"granted"===X&&ee&&W({type:bt.FocusInputSearch}),ne({coordinates:U.geoLocationCoordinates})}),[X]),n((()=>{const e=x||{name:D("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:de.SPECIALTIES};U.selectedSpecialty||W({type:bt.SelectSpecialty,payload:e})}),[x,U.selectedSpecialty]),n((()=>{re()}),[]),n((()=>{ce(H)}),[H]),n((()=>{Q&&(N?N(Q):window.location.href=`${S}${Q}`)}),[Q]),n((()=>{le(U.searchKeywords,U,H,P,!0)}),[ee,te,H]),t.createElement(pt,{ref:z},t.createElement(Jt,{currentTab:H,setCurrentTab:G,isMobile:e,hideTabBookingSearch:$}),t.createElement(ut,{className:"booking-search-container"},t.createElement(ht,null,t.createElement(gt,null,t.createElement("div",{ref:_},t.createElement(R,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==H&&t.createElement(Dt,{state:U,isMobile:e,dispatch:W,debouncedFetchCitiesByKeyword:ue,selectedLocation:ee,onLocationClick:ge,trackingAttributes:k}),t.createElement(Pt,{type:H,isMobile:e,state:U,dispatch:W,debouncedFetchSearchResults:he,initalSearchValue:f,focusSearchInput:me,typeInformation:pe,trackingAttributes:L,isLoading:oe,hideSpecialtySelection:F,clientSlug:P}),t.createElement(T,{size:e?"md":"lg",color:"#2D87F3",fullWidth:e,variant:"filled",onClick:function(){let e="";const{slug:t}=pe[H];let i="";const a=h[V][P];("doctor"===H||"hospital"===H)&&U.selectedSpecialty.id>0&&(i=`&specialtyId=${U.selectedSpecialty.id}`),e="specialty"===H?`/${t}`:`/${ee.slug}/${t}`,a&&(e+=`/${a}`),e+=`?q=${J}${i}`,e&&W({type:bt.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},D("booking.searchBar.searchButton"))),!M&&"specialty"!==H&&U.popularKeys.length>0&&t.createElement(Wt,{type:H,state:U,typeInformation:pe,dispatch:W}),"specialty"===H&&"search"===q&&t.createElement(Gt,{state:U,isMobile:e,dispatch:W,specialties:(null==ae?void 0:ae.specialty)||[],isLoading:oe}))))))},ti=b.div`
767
767
  background-color: var(--neutral50);
768
768
  padding: 12px 0;
769
769
  box-shadow: inset 0px 1px 0px #e4e8ec;
@@ -1 +1 @@
1
- export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,E as ELEMENT_CONTROL_INPUT_TYPE,F as FULL_KEY_ADDRESS,G as Gender,L as LOCALE,f as NodeActionType,d as NodeFinalTypes,e as NodeIntentType,g as NodeMultipleOptions,N as NodePosition,c as NodeType,O as OnboardingStep,S as SubotType}from"./Subot-67816106.js";
1
+ export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,E as ELEMENT_CONTROL_INPUT_TYPE,F as FULL_KEY_ADDRESS,G as Gender,L as LOCALE,f as NodeActionType,d as NodeFinalTypes,e as NodeIntentType,g as NodeMultipleOptions,N as NodePosition,c as NodeType,O as OnboardingStep,S as SubotType}from"./Subot-e272425a.js";
@@ -1 +1 @@
1
- import{useMemo as e}from"react";import{L as a}from"./Subot-67816106.js";import{u as n}from"./useTranslations-d8df7d65.js";const t={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},b={[a.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[a.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[a.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[a.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[a.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};const s=a=>{const{locale:s}=n();return{isPregnancy:e((()=>decodeURI(a.replace(/\//gi,"")).includes(t[s])),[]),isParenting:e((()=>{var e;return decodeURI(a.replace(/\//gi,"")).includes(null===(e=b[s])||void 0===e?void 0:e.parenting)}),[]),type:e((()=>function(e,a){const n=e.split("/");for(const e in a){const t=a[e];if(n.includes(t))return e}return null}(a,b[s])),[a,s])}};export{b as M,t as P,s as u};
1
+ import{useMemo as e}from"react";import{L as a}from"./Subot-e272425a.js";import{u as n}from"./useTranslations-14b7fcc5.js";const t={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},b={[a.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[a.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[a.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[a.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[a.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};const s=a=>{const{locale:s}=n();return{isPregnancy:e((()=>decodeURI(a.replace(/\//gi,"")).includes(t[s])),[]),isParenting:e((()=>{var e;return decodeURI(a.replace(/\//gi,"")).includes(null===(e=b[s])||void 0===e?void 0:e.parenting)}),[]),type:e((()=>function(e,a){const n=e.split("/");for(const e in a){const t=a[e];if(n.includes(t))return e}return null}(a,b[s])),[a,s])}};export{b as M,t as P,s as u};
@@ -0,0 +1 @@
1
+ import{a as o}from"./tslib.es6-842a2bb8.js";import{useState as t,useEffect as i,useCallback as a}from"react";import{a as e}from"./getDynamicHealthTool-2e9a5548.js";const l=l=>{const[n,r]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield e(l);r(o)}))}),[e,l]);const s=a((o=>{var t;return(null===(t=n.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[n]);return{allTools:n,getHealthToolLink:s}};export{l as u};
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-caf7391f.js";import{useState as i,useEffect as t}from"react";const o="undefined"==typeof window,n={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},r="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",c=(r="",c="",s="",a=500)=>{const[d,l]=i([]),[p,u]=i(!1);return t((()=>{let i;return r?i=window.setTimeout((()=>e(void 0,void 0,void 0,(function*(){var i;if(r)try{u(!0);const t=yield((i="",t="",r="vi")=>e(void 0,void 0,void 0,(function*(){return new Promise(((e,c)=>{if(!i)return c("Need valid text input");if(o)return c("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:i},t?{componentRestrictions:{country:t}}:{}),{language:n[r]}),e)}catch(e){c(e)}}))})))(r,c,s);l(!(i=t)||i.length<1?[]:i.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{u(!1)}else l([])}))),a):d.length&&l([]),()=>{window.clearTimeout(i)}}),[r,a,c]),{isLoading:p,predictions:d}};export{r as G,n as a,c as u};
1
+ import{a as e}from"./tslib.es6-842a2bb8.js";import{useState as i,useEffect as t}from"react";const o="undefined"==typeof window,n={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},r="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",c=(r="",c="",s="",a=500)=>{const[d,l]=i([]),[p,u]=i(!1);return t((()=>{let i;return r?i=window.setTimeout((()=>e(void 0,void 0,void 0,(function*(){var i;if(r)try{u(!0);const t=yield((i="",t="",r="vi")=>e(void 0,void 0,void 0,(function*(){return new Promise(((e,c)=>{if(!i)return c("Need valid text input");if(o)return c("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:i},t?{componentRestrictions:{country:t}}:{}),{language:n[r]}),e)}catch(e){c(e)}}))})))(r,c,s);l(!(i=t)||i.length<1?[]:i.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{u(!1)}else l([])}))),a):d.length&&l([]),()=>{window.clearTimeout(i)}}),[r,a,c]),{isLoading:p,predictions:d}};export{r as G,n as a,c as u};
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-caf7391f.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-715a63ab.js";import{a}from"./useTranslations-d8df7d65.js";function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=r=>{const i=t("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,t,n,a,c;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==r?void 0:r.id){const[e,t,n,i,s,u]=yield Promise.all([r.email?l(r.email):null,r.phone?l(r.phone):null,r.birthday?l(r.birthday.split("-").join("")):null,r.gender?"m":"f",r.city_name?l(r.city_name).then((e=>e.replace(/\s/g,""))):null,r.name?l(r.name):null]);o("_fbc"),o("_fbp");const d={user_id:r.id};u&&(d.fn=u),e&&(d.em=e),t&&(d.ph=t),n&&(d.db=n),s&&(d.ct=s),null===(c=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===c||c.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[r])},s=e=>{const n=t(),r=t(e);return a()||r.current===e||(n.current=r.current,r.current=e),n.current},u=e=>{const[o,a]=r(e),l=t(0),c=i((e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame((()=>{a(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(l.current))),[o,c]};export{s as a,u as b,c as u};
1
+ import{a as e}from"./tslib.es6-842a2bb8.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-28df9366.js";import{a}from"./useTranslations-14b7fcc5.js";function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=r=>{const i=t("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,t,n,a,c;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==r?void 0:r.id){const[e,t,n,i,s,u]=yield Promise.all([r.email?l(r.email):null,r.phone?l(r.phone):null,r.birthday?l(r.birthday.split("-").join("")):null,r.gender?"m":"f",r.city_name?l(r.city_name).then((e=>e.replace(/\s/g,""))):null,r.name?l(r.name):null]);o("_fbc"),o("_fbp");const d={user_id:r.id};u&&(d.fn=u),e&&(d.em=e),t&&(d.ph=t),n&&(d.db=n),s&&(d.ct=s),null===(c=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===c||c.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[r])},s=e=>{const n=t(),r=t(e);return a()||r.current===e||(n.current=r.current,r.current=e),n.current},u=e=>{const[o,a]=r(e),l=t(0),c=i((e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame((()=>{a(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(l.current))),[o,c]};export{s as a,u as b,c as u};
@@ -1 +1 @@
1
- import{useRef as r,useContext as t,useMemo as n}from"react";import{T as o}from"./translationsContext-66e27067.js";import e from"string-format";const a=()=>{const t=r(!0);return!!t.current&&(t.current=!1,!0)};let s=0;const l=()=>{const t=r("");return a()&&(s+=1,t.current=`hhg-gen-id${s}`),t.current};function c(){const{values:r,locale:a}=t(o)||{locale:"en-PH"};return n((()=>({t:(t,n)=>r?r[t]?n?e(r[t]||t,n):r[t]||t:(console.warn(`[useTranslations] Missing translation for key ${t} and locale ${a}`),n?e(t,n):t):(console.error("[useTranslations] t method called before translation values are loaded"),t),locale:a})),[r,a])}export{a,l as b,c as u};
1
+ import{useRef as r,useContext as t,useMemo as n}from"react";import{T as o}from"./translationsContext-7856306b.js";import e from"string-format";const a=()=>{const t=r(!0);return!!t.current&&(t.current=!1,!0)};let s=0;const l=()=>{const t=r("");return a()&&(s+=1,t.current=`hhg-gen-id${s}`),t.current};function c(){const{values:r,locale:a}=t(o)||{locale:"en-PH"};return n((()=>({t:(t,n)=>r?r[t]?n?e(r[t]||t,n):r[t]||t:(console.warn(`[useTranslations] Missing translation for key ${t} and locale ${a}`),n?e(t,n):t):(console.error("[useTranslations] t method called before translation values are loaded"),t),locale:a})),[r,a])}export{a,l as b,c as u};
@@ -1 +1 @@
1
- import{L as a}from"./Subot-67816106.js";const i={[a.Vietnam]:"VN",[a.Cambodia]:"KH",[a.Indonesia]:"ID",[a.Malaysia]:"MY",[a.PhilippinesEnglish]:"PH",[a.PhilippinesTagalog]:"PH",[a.Taiwan]:"TW",[a.Thailand]:"TH",[a.Myanmar]:"MM"},n=(a="")=>{const i=a.indexOf("@"),n=a.substring(0,i),s=n.length>3?3:n.length;return a.replace(a.substring(s,i),a.slice(s,i).replace(/./g,"x"))};export{i as M,n as h};
1
+ import{L as a}from"./Subot-e272425a.js";const i={[a.Vietnam]:"VN",[a.Cambodia]:"KH",[a.Indonesia]:"ID",[a.Malaysia]:"MY",[a.PhilippinesEnglish]:"PH",[a.PhilippinesTagalog]:"PH",[a.Taiwan]:"TW",[a.Thailand]:"TH",[a.Myanmar]:"MM"},n=(a="")=>{const i=a.indexOf("@"),n=a.substring(0,i),s=n.length>3?3:n.length;return a.replace(a.substring(s,i),a.slice(s,i).replace(/./g,"x"))};export{i as M,n as h};
@@ -1,4 +1,4 @@
1
- import{M as t}from"./screenSizeContext-5ebd7a94.js";import e from"styled-components";import a,{memo as o,useMemo as s}from"react";import{CommonGAssets as n}from"./gAssets.js";import{I as r}from"./index-6803e2f2.js";import{L as h}from"./Subot-67816106.js";const l=e.div`
1
+ import{M as t}from"./screenSizeContext-dff03e2b.js";import e from"styled-components";import a,{memo as o,useMemo as s}from"react";import{CommonGAssets as n}from"./gAssets.js";import{I as r}from"./index-17d273a3.js";import{L as h}from"./Subot-e272425a.js";const l=e.div`
2
2
  position: relative;
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{_ as e,a as t}from"./tslib.es6-caf7391f.js";import a,{useMemo as n,useState as r,useEffect as l,Fragment as i}from"react";import{Stack as o,Flex as c,Badge as s,Grid as d,Box as m,Input as C,Container as u,AspectRatio as p,Tabs as g,ScrollArea as b,Divider as E,SimpleGrid as h}from"@mantine/core";import{B as v,t as y,b as f,u as x}from"./index-6803e2f2.js";import"@mantine/dates";import"./index-6b632496.js";import{G as w}from"./Subot-67816106.js";import"./gAssets.js";import{T as k,I as L}from"./index-2eb76153.js";import j from"dayjs";import{M}from"./screenSizeContext-5ebd7a94.js";import D from"styled-components";import{t as z}from"./theme-11c43794.js";import"./isProduction-0005bed8.js";import{u as V}from"./useTranslations-d8df7d65.js";import{useDisclosure as T}from"@mantine/hooks";import"lodash/debounce";import"./useCategory-f09c0218.js";import{S as B}from"./index-09ba8680.js";import"./translationsContext-66e27067.js";import"string-format";import{H as F}from"./index.styles-e55de146.js";import"./constants-06083c39.js";import"./utils-81962957.js";import"./index.styled-c22aa342.js";import"./index-3afa303d.js";import{M as $}from"./index-db160921.js";import{useForm as _}from"@mantine/form";import H from"dayjs/plugin/customParseFormat";import{D as Z}from"./index-d48e481e.js";import"@mantine/carousel";import"classnames";import"date-fns/locale";import"lodash/throttle";import"react-keyed-flatten-children";import"./cookieHelper-715a63ab.js";import"slugify";const O=D.div`
1
+ import{_ as e,a as t}from"./tslib.es6-842a2bb8.js";import a,{useMemo as n,useState as r,useEffect as l,Fragment as i}from"react";import{Stack as o,Flex as c,Badge as s,Grid as d,Box as m,Input as C,Container as u,AspectRatio as p,Tabs as g,ScrollArea as b,Divider as E,SimpleGrid as h}from"@mantine/core";import{B as v,t as y,b as f,u as x}from"./index-17d273a3.js";import"@mantine/dates";import"./index-f75306ca.js";import{G as w}from"./Subot-e272425a.js";import"./gAssets.js";import{T as k,I as L}from"./index-e7f889b2.js";import j from"dayjs";import{M}from"./screenSizeContext-dff03e2b.js";import D from"styled-components";import{t as z}from"./theme-ccf55e31.js";import"./isProduction-b5290208.js";import{u as V}from"./useTranslations-14b7fcc5.js";import{useDisclosure as T}from"@mantine/hooks";import"lodash/debounce";import"./useCategory-8582dedd.js";import{S as B}from"./index-10c5feed.js";import"./translationsContext-7856306b.js";import"string-format";import{H as F}from"./index.styles-874b1834.js";import"./constants-c3b0c92c.js";import"./utils-cca2af3a.js";import"./index.styled-551f3c76.js";import"./index-ac4a532b.js";import{M as $}from"./index-f64ac5b4.js";import{useForm as _}from"@mantine/form";import H from"dayjs/plugin/customParseFormat";import{D as Z}from"./index-6c2d86ad.js";import"@mantine/carousel";import"classnames";import"date-fns/locale";import"lodash/throttle";import"react-keyed-flatten-children";import"./cookieHelper-28df9366.js";import"slugify";const O=D.div`
2
2
  position: relative;
3
3
  padding: 16px;
4
4
  min-height: 110px;
package/build/footer.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-54d36029.js"),a=require("./index-b0c9f344.js"),l=require("dayjs"),n=require("./index-11947038.js"),o=require("./theme-1f10ec25.js");require("./index-943aa021.js");var i=require("@mantine/core");require("@mantine/dates"),require("./Subot-ab83b6e8.js"),require("./gAssets.js");var r=require("./index-884a509d.js");require("./screenSizeContext-73ba8961.js"),require("styled-components"),require("./isProduction-e32c6264.js");var d=require("./useTranslations-d5cf41a3.js");require("@mantine/hooks");var c=require("./index-ef957176.js"),s=require("./index-65d642e7.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-12eebeb5.js"),require("string-format"),require("./tslib.es6-a7206fdf.js"),require("date-fns/locale"),require("@mantine/carousel"),require("classnames"),require("lodash/throttle"),require("./utils-76f22f3b.js"),require("./index.styled-c87b2587.js");var m=u(e),v=u(l),f="Lj0qoTD",E="OO-qFWT";const g=({url:e,isMobile:t,dataEventCategory:a,dataEventAction:l,dataEventLabel:n})=>m.default.createElement("div",{className:E,"data-is-mobile":t},m.default.createElement("img",{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":a,"data-event-action":l,"data-content-label":n})),y=({className:e,type:l="main",footerInfo:i,isMobile:c,locale:s})=>{var u,E,y,b,p,N,h,x,k,T,F,q,z,$,L,j,M,C,_,S,w,H,I,A,B,G,D,O;const{t:U}=d.useTranslations(),J=null==i?void 0:i.menu,K=(null===(E=null===(u=null==i?void 0:i.general)||void 0===u?void 0:u.verified)||void 0===E?void 0:E.filter(Boolean))||[];return m.default.createElement("footer",{className:`${f} ${e||""}`,style:"mini"===l?{backgroundColor:o.theme.colors.neutral50}:{}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"inner","data-type":l},"main"===l?m.default.createElement(m.default.Fragment,null,m.default.createElement("a",{href:"/"},m.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==i?void 0:i.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===s})),m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"newsletter"},m.default.createElement(r.Text,{size:"p1",weight:"bold"},null===(b=null==i?void 0:i.general)||void 0===b?void 0:b.content),m.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},U("footer.signUp")),m.default.createElement("div",{className:"social"},m.default.createElement(r.Text,{size:"sm"},null===(p=null==i?void 0:i.social)||void 0===p?void 0:p.title),m.default.createElement("div",{className:"icons"},null===(h=null===(N=null==i?void 0:i.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))))),m.default.createElement("hr",{className:"hrMobile"}))),m.default.createElement("div",null,J&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:"biglinks"},null===(k=null===(x=J[0])||void 0===x?void 0:x.items)||void 0===k?void 0:k.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"bigLink",key:t,href:e.url},e.title)))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(T=J[1])||void 0===T?void 0:T.menu_title),null===(q=null===(F=J[1])||void 0===F?void 0:F.items)||void 0===q?void 0:q.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"link",href:e.url,key:t},m.default.createElement(r.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(z=J[2])||void 0===z?void 0:z.menu_title),null===(L=null===($=J[2])||void 0===$?void 0:$.items)||void 0===L?void 0:L.map(((e,t)=>e.url&&m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},m.default.createElement(r.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title)))))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"otherSites"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(j=null==i?void 0:i.branch)||void 0===j?void 0:j.title),m.default.createElement("div",{className:"flags"},null===(C=null===(M=null==i?void 0:i.branch)||void 0===M?void 0:M.branch)||void 0===C?void 0:C.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},m.default.createElement(g,{url:e.flag,isMobile:c,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))))),m.default.createElement("hr",null),m.default.createElement("div",{className:"copyright"},m.default.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((e,t)=>m.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},m.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),m.default.createElement(r.Text,{size:"xs",className:"copyright-content",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null===(_=null==i?void 0:i.general)||void 0===_?void 0:_.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})))):m.default.createElement(m.default.Fragment,null,(null==i?void 0:i.menu)&&m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(S=null==i?void 0:i.menu[1])||void 0===S?void 0:S.menu_title),null===(H=null===(w=null==i?void 0:i.menu[1])||void 0===w?void 0:w.items)||void 0===H?void 0:H.map((e=>m.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":`https://${n.domainLocales[s]}${e.url}`,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`},m.default.createElement(r.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`,size:"sm",style:{color:o.theme.colors.gray800}},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(I=null==i?void 0:i.menu[2])||void 0===I?void 0:I.menu_title),null===(B=null===(A=null==i?void 0:i.menu[2])||void 0===A?void 0:A.items)||void 0===B?void 0:B.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},m.default.createElement(r.Text,{size:"sm",color:o.theme.colors.gray800,dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))))),"mini"!==l&&m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"newsletter"},m.default.createElement("div",{className:"social"},m.default.createElement(r.Text,{size:"sm"},null===(G=null==i?void 0:i.social)||void 0===G?void 0:G.title),m.default.createElement("div",{className:"icons"},null===(O=null===(D=null==i?void 0:i.social)||void 0===D?void 0:D.socials)||void 0===O?void 0:O.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var b="B6-KmWK",p="GS-7mbG",N="qc5bEb3",h="CQGVeuT",x="_8eUT8Jr",k="_6JMoel-",T="pFG7UH3";const F=({logoType:e="marryBaby",footerMenu:t,background:l})=>{var n;if(!t)return null;const{general:d,menu:u,socials:f}=t;return m.default.createElement("footer",{className:b,style:{backgroundColor:l||"none"}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:p},null==u?void 0:u.map((({menu_title:e,items:t},a)=>m.default.createElement("div",{className:N,key:`mbf${a}`},m.default.createElement(s.MarryBabyText,{className:"title",type:"subtitle-1",color:o.theme.mbColors.pink},e),null==t?void 0:t.map((({title:e,url:t},a)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},m.default.createElement("div",{className:h,key:`mbitem${a}`},m.default.createElement(s.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},e)))))))))),m.default.createElement(a.Container,null,m.default.createElement("div",{className:k},m.default.createElement(i.Flex,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},m.default.createElement(i.Stack,{spacing:"24px",className:"info-item"},m.default.createElement(c.Logo,{className:"logo",type:e}),m.default.createElement(r.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.content}})),m.default.createElement("div",{className:T},null==f?void 0:f.map((({icon:e,name:t,url:a},l)=>m.default.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},m.default.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t})))))),m.default.createElement(i.Box,{className:"info-item",sx:{paddingTop:"7px"}},m.default.createElement(r.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.information}})))))),m.default.createElement("div",{className:x},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"content"},m.default.createElement(r.Text,{size:"p5",color:"#fff",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})),m.default.createElement("div",{className:"verify"},null===(n=null==d?void 0:d.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>m.default.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t}))))))))};exports.Footer=({type:e,isMobile:t=!0,locale:a,footerInfo:l,siteType:n,background:o})=>"helloSites"===n?m.default.createElement(y,{isMobile:t,type:e,locale:a,footerInfo:l||{}}):m.default.createElement(F,{footerMenu:l,background:o});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-4af92d15.js"),a=require("./index-a6882810.js"),l=require("dayjs"),n=require("./index-edb98431.js"),o=require("./theme-cf605758.js");require("./index-536d19f8.js");var i=require("@mantine/core");require("@mantine/dates"),require("./Subot-6a20c386.js"),require("./gAssets.js");var r=require("./index-28f61b63.js");require("./screenSizeContext-0e841cc0.js"),require("styled-components"),require("./isProduction-975fbda1.js");var d=require("./useTranslations-a1b68e91.js");require("@mantine/hooks");var c=require("./index-18823495.js"),s=require("./index-7e3aeed4.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-b4e24bbe.js"),require("string-format"),require("./tslib.es6-8187fb3c.js"),require("date-fns/locale"),require("@mantine/carousel"),require("classnames"),require("lodash/throttle"),require("./utils-7528478f.js"),require("./index.styled-228e96a3.js");var m=u(e),v=u(l),f="Lj0qoTD",E="OO-qFWT";const g=({url:e,isMobile:t,dataEventCategory:a,dataEventAction:l,dataEventLabel:n})=>m.default.createElement("div",{className:E,"data-is-mobile":t},m.default.createElement("img",{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":a,"data-event-action":l,"data-content-label":n})),y=({className:e,type:l="main",footerInfo:i,isMobile:c,locale:s})=>{var u,E,y,b,p,N,h,x,k,T,F,q,z,$,L,j,M,C,_,S,w,H,I,A,B,G,D,O;const{t:U}=d.useTranslations(),J=null==i?void 0:i.menu,K=(null===(E=null===(u=null==i?void 0:i.general)||void 0===u?void 0:u.verified)||void 0===E?void 0:E.filter(Boolean))||[];return m.default.createElement("footer",{className:`${f} ${e||""}`,style:"mini"===l?{backgroundColor:o.theme.colors.neutral50}:{}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"inner","data-type":l},"main"===l?m.default.createElement(m.default.Fragment,null,m.default.createElement("a",{href:"/"},m.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==i?void 0:i.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===s})),m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"newsletter"},m.default.createElement(r.Text,{size:"p1",weight:"bold"},null===(b=null==i?void 0:i.general)||void 0===b?void 0:b.content),m.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},U("footer.signUp")),m.default.createElement("div",{className:"social"},m.default.createElement(r.Text,{size:"sm"},null===(p=null==i?void 0:i.social)||void 0===p?void 0:p.title),m.default.createElement("div",{className:"icons"},null===(h=null===(N=null==i?void 0:i.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))))),m.default.createElement("hr",{className:"hrMobile"}))),m.default.createElement("div",null,J&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:"biglinks"},null===(k=null===(x=J[0])||void 0===x?void 0:x.items)||void 0===k?void 0:k.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"bigLink",key:t,href:e.url},e.title)))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(T=J[1])||void 0===T?void 0:T.menu_title),null===(q=null===(F=J[1])||void 0===F?void 0:F.items)||void 0===q?void 0:q.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"link",href:e.url,key:t},m.default.createElement(r.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(z=J[2])||void 0===z?void 0:z.menu_title),null===(L=null===($=J[2])||void 0===$?void 0:$.items)||void 0===L?void 0:L.map(((e,t)=>e.url&&m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},m.default.createElement(r.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title)))))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"otherSites"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(j=null==i?void 0:i.branch)||void 0===j?void 0:j.title),m.default.createElement("div",{className:"flags"},null===(C=null===(M=null==i?void 0:i.branch)||void 0===M?void 0:M.branch)||void 0===C?void 0:C.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},m.default.createElement(g,{url:e.flag,isMobile:c,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))))),m.default.createElement("hr",null),m.default.createElement("div",{className:"copyright"},m.default.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((e,t)=>m.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},m.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),m.default.createElement(r.Text,{size:"xs",className:"copyright-content",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null===(_=null==i?void 0:i.general)||void 0===_?void 0:_.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})))):m.default.createElement(m.default.Fragment,null,(null==i?void 0:i.menu)&&m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(S=null==i?void 0:i.menu[1])||void 0===S?void 0:S.menu_title),null===(H=null===(w=null==i?void 0:i.menu[1])||void 0===w?void 0:w.items)||void 0===H?void 0:H.map((e=>m.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":`https://${n.domainLocales[s]}${e.url}`,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`},m.default.createElement(r.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`,size:"sm",style:{color:o.theme.colors.gray800}},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(I=null==i?void 0:i.menu[2])||void 0===I?void 0:I.menu_title),null===(B=null===(A=null==i?void 0:i.menu[2])||void 0===A?void 0:A.items)||void 0===B?void 0:B.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},m.default.createElement(r.Text,{size:"sm",color:o.theme.colors.gray800,dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))))),"mini"!==l&&m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"newsletter"},m.default.createElement("div",{className:"social"},m.default.createElement(r.Text,{size:"sm"},null===(G=null==i?void 0:i.social)||void 0===G?void 0:G.title),m.default.createElement("div",{className:"icons"},null===(O=null===(D=null==i?void 0:i.social)||void 0===D?void 0:D.socials)||void 0===O?void 0:O.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var b="B6-KmWK",p="GS-7mbG",N="qc5bEb3",h="CQGVeuT",x="_8eUT8Jr",k="_6JMoel-",T="pFG7UH3";const F=({logoType:e="marryBaby",footerMenu:t,background:l})=>{var n;if(!t)return null;const{general:d,menu:u,socials:f}=t;return m.default.createElement("footer",{className:b,style:{backgroundColor:l||"none"}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:p},null==u?void 0:u.map((({menu_title:e,items:t},a)=>m.default.createElement("div",{className:N,key:`mbf${a}`},m.default.createElement(s.MarryBabyText,{className:"title",type:"subtitle-1",color:o.theme.mbColors.pink},e),null==t?void 0:t.map((({title:e,url:t},a)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},m.default.createElement("div",{className:h,key:`mbitem${a}`},m.default.createElement(s.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},e)))))))))),m.default.createElement(a.Container,null,m.default.createElement("div",{className:k},m.default.createElement(i.Flex,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},m.default.createElement(i.Stack,{spacing:"24px",className:"info-item"},m.default.createElement(c.Logo,{className:"logo",type:e}),m.default.createElement(r.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.content}})),m.default.createElement("div",{className:T},null==f?void 0:f.map((({icon:e,name:t,url:a},l)=>m.default.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},m.default.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t})))))),m.default.createElement(i.Box,{className:"info-item",sx:{paddingTop:"7px"}},m.default.createElement(r.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.information}})))))),m.default.createElement("div",{className:x},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"content"},m.default.createElement(r.Text,{size:"p5",color:"#fff",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})),m.default.createElement("div",{className:"verify"},null===(n=null==d?void 0:d.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>m.default.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t}))))))))};exports.Footer=({type:e,isMobile:t=!0,locale:a,footerInfo:l,siteType:n,background:o})=>"helloSites"===n?m.default.createElement(y,{isMobile:t,type:e,locale:a,footerInfo:l||{}}):m.default.createElement(F,{footerMenu:l,background:o});
package/build/gAssets.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-11947038.js"),s=require("./isProduction-e32c6264.js");require("date-fns/locale"),require("./Subot-ab83b6e8.js");const o="hellosehat.com";class t{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,o,t)=>{const i="https://hhg-common."+[o||this.getBaseDomain(),t||this.subPath,e].join("/");return s.isProduction||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,t=s.split("."),i=e.domainLocales[Object.keys(e.domainLocales).find((o=>s.includes(e.domainLocales[o])))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?o:i}return o}}const i=new t;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=i,exports.GAssets=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-edb98431.js"),s=require("./isProduction-975fbda1.js");require("date-fns/locale"),require("./Subot-6a20c386.js");const o="hellosehat.com";class t{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,o,t)=>{const i="https://hhg-common."+[o||this.getBaseDomain(),t||this.subPath,e].join("/");return s.isProduction||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,t=s.split("."),i=e.domainLocales[Object.keys(e.domainLocales).find((o=>s.includes(e.domainLocales[o])))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?o:i}return o}}const i=new t;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=i,exports.GAssets=t;
@@ -1 +1 @@
1
- "use strict";var t=require("./tslib.es6-a7206fdf.js"),i=require("./core-4602825d.js"),e=require("./normalizeLink-c8b10f92.js"),l=require("./routing-d0bfcc30.js");const o=(t,i)=>{var e,l;if(!t)return{};const o="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:`${o}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${o}/`,"/")),subtitle:t.subtitle,title:t.title}},n=i=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{const a="tl-PH"===i?"lang=fil":"";let r=[];try{const s=yield fetch(e.normalizeLinkSlash(`${l.getDiscoverApiDomain(i)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));r=(null===(n=null===(t=null==s?void 0:s.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>o(t,i))))||[]}catch(t){}return r}catch(t){console.error(t)}}));exports.formatHealthTool=o,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=e=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield i.getDataWithCache("all-health-tools",(()=>n(e||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
1
+ "use strict";var t=require("./tslib.es6-8187fb3c.js"),i=require("./core-80e9cff8.js"),e=require("./normalizeLink-b260b165.js"),l=require("./routing-0dd231c5.js");const o=(t,i)=>{var e,l;if(!t)return{};const o="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:`${o}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${o}/`,"/")),subtitle:t.subtitle,title:t.title}},n=i=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{const r="tl-PH"===i?"lang=fil":"";let a=[];try{const s=yield fetch(e.normalizeLinkSlash(`${l.getDiscoverApiDomain(i)}/wp-json/api/healthtools?ismenu=0${r?"&"+r:""}`)).then((t=>t.json()));a=(null===(n=null===(t=null==s?void 0:s.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>o(t,i))))||[]}catch(t){}return a}catch(t){console.error(t)}}));exports.formatHealthTool=o,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=e=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield i.getDataWithCache("all-health-tools",(()=>n(e||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));