@hhgtech/hhg-components 1.27.68 → 1.27.70

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 (365) hide show
  1. package/build/babyGrowth.js +3 -3
  2. package/build/cache.js +1 -1
  3. package/build/care/api/paths.d.ts +1 -0
  4. package/build/care/components/organisms/bookingSearchBarV2/constants.d.ts +4 -0
  5. package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +28 -0
  6. package/build/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +4 -0
  7. package/build/care/components/organisms/bookingSearchBarV2/reducer.d.ts +144 -0
  8. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +24 -0
  9. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.styled.d.ts +2 -0
  10. package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +16 -0
  11. package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.styled.d.ts +10 -0
  12. package/build/care/components/organisms/bookingSearchBarV2/searchResult/icons.d.ts +5 -0
  13. package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +20 -0
  14. package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.styled.d.ts +5 -0
  15. package/build/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +12 -0
  16. package/build/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.styled.d.ts +5 -0
  17. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +14 -0
  18. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +10 -0
  19. package/build/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +3 -0
  20. package/build/care/components/organisms/bookingSearchBarV2/searchTag/index.styled.d.ts +2 -0
  21. package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +9 -0
  22. package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +1 -0
  23. package/build/care/components/organisms/bookingSearchBarV2/types.d.ts +11 -0
  24. package/build/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +18 -0
  25. package/build/care/index.d.ts +1 -0
  26. package/build/care/interfaces/types.d.ts +7 -0
  27. package/build/care.js +1 -1
  28. package/build/components/atoms/icons/Search.d.ts +4 -0
  29. package/build/components/atoms/icons/index.d.ts +1 -0
  30. package/build/components/mantine/select/index.d.ts +4 -4
  31. package/build/components.js +1 -1
  32. package/build/constants.js +1 -1
  33. package/build/core-4d8e9583.js +1 -0
  34. package/build/{dataTransform-00da49c4.js → dataTransform-e29982c1.js} +1 -1
  35. package/build/ecom.js +1 -1
  36. package/build/esm/babyGrowth.js +10 -10
  37. package/build/esm/cache.js +1 -1
  38. package/build/esm/care/api/paths.d.ts +1 -0
  39. package/build/esm/care/components/organisms/bookingSearchBarV2/constants.d.ts +4 -0
  40. package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +28 -0
  41. package/build/esm/care/components/organisms/bookingSearchBarV2/index.styled.d.ts +4 -0
  42. package/build/esm/care/components/organisms/bookingSearchBarV2/reducer.d.ts +144 -0
  43. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +24 -0
  44. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.styled.d.ts +2 -0
  45. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +16 -0
  46. package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.styled.d.ts +10 -0
  47. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/icons.d.ts +5 -0
  48. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +20 -0
  49. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.styled.d.ts +5 -0
  50. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +12 -0
  51. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.styled.d.ts +5 -0
  52. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +14 -0
  53. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +10 -0
  54. package/build/esm/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +3 -0
  55. package/build/esm/care/components/organisms/bookingSearchBarV2/searchTag/index.styled.d.ts +2 -0
  56. package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +9 -0
  57. package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.styled.d.ts +1 -0
  58. package/build/esm/care/components/organisms/bookingSearchBarV2/types.d.ts +11 -0
  59. package/build/esm/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +18 -0
  60. package/build/esm/care/index.d.ts +1 -0
  61. package/build/esm/care/interfaces/types.d.ts +7 -0
  62. package/build/esm/care.js +1 -1
  63. package/build/esm/components/atoms/icons/Search.d.ts +4 -0
  64. package/build/esm/components/atoms/icons/index.d.ts +1 -0
  65. package/build/esm/components/mantine/select/index.d.ts +4 -4
  66. package/build/esm/components.js +1 -1
  67. package/build/esm/constants.js +1 -1
  68. package/build/esm/{core-bc36cf29.js → core-eee94d3a.js} +1 -1
  69. package/build/esm/{dataTransform-31c4c853.js → dataTransform-f3652b0a.js} +1 -1
  70. package/build/esm/ecom.js +1 -1
  71. package/build/esm/fixedBottomAdBlock-7554c3b8.js +1 -0
  72. package/build/esm/footer.js +1 -1
  73. package/build/esm/gAssets.js +1 -1
  74. package/build/esm/getDynamicHealthTool-7ca54784.js +1 -0
  75. package/build/esm/{getSocialList-d980085d.js → getSocialList-f6efdc64.js} +1 -1
  76. package/build/esm/hooks.js +1 -1
  77. package/build/esm/i18n/translationKeys.d.ts +1 -1
  78. package/build/esm/i18n-values/en-PH.js +1 -1
  79. package/build/esm/i18n-values/hi-IN.js +1 -1
  80. package/build/esm/i18n-values/id-ID.js +1 -1
  81. package/build/esm/i18n-values/km-KH.js +1 -1
  82. package/build/esm/i18n-values/ms-MY.js +1 -1
  83. package/build/esm/i18n-values/my-MM.js +1 -1
  84. package/build/esm/i18n-values/th-TH.js +1 -1
  85. package/build/esm/i18n-values/tl-PH.js +1 -1
  86. package/build/esm/i18n-values/vi-VN.js +1 -1
  87. package/build/esm/i18n-values/vi-VN_MB.js +1 -1
  88. package/build/esm/i18n-values/zh-TW.js +1 -1
  89. package/build/esm/i18n.js +1 -1
  90. package/build/esm/i18nV2.js +1 -1
  91. package/build/esm/{index-5404c828.js → index-136d0591.js} +33 -33
  92. package/build/esm/{index-bd8da8ac.js → index-14477fd7.js} +1 -1
  93. package/build/esm/{index-4d0ddb64.js → index-19124705.js} +1 -1
  94. package/build/esm/index-1ac00718.js +113 -0
  95. package/build/esm/{index-30cba675.js → index-20a67ed5.js} +1 -1
  96. package/build/esm/{index-661133f9.js → index-4b6c2c38.js} +1 -1
  97. package/build/esm/{index-331dcbca.js → index-56cd242a.js} +1 -1
  98. package/build/esm/{index-07c18c8e.js → index-56fa0620.js} +1 -1
  99. package/build/esm/{index-a4437a03.js → index-629208cc.js} +4 -4
  100. package/build/esm/index-6b2e40f9.js +1 -0
  101. package/build/esm/index-6c68b9ba.js +1 -0
  102. package/build/esm/index-6c96ac70.js +1 -0
  103. package/build/esm/{index-3f3203dc.js → index-83aad691.js} +1 -1
  104. package/build/esm/{index-a0141454.js → index-8fa42782.js} +1 -1
  105. package/build/esm/index-94da7d7a.js +177 -0
  106. package/build/esm/index-9ec58b78.js +1 -0
  107. package/build/esm/index-af57521e.js +1 -0
  108. package/build/esm/index-b87b3db3.js +1 -0
  109. package/build/esm/index-dbc51f01.js +1 -0
  110. package/build/esm/index-ef88b50a.js +1 -0
  111. package/build/esm/{index-e375e279.js → index-fce73e2c.js} +5 -5
  112. package/build/esm/index.js +1 -1
  113. package/build/esm/{index.styled-dd81b143.js → index.styled-99ed9a64.js} +21 -21
  114. package/build/esm/{index.styled-ad90ced9.js → index.styled-a177c0fc.js} +11 -11
  115. package/build/esm/index.styled-bcf9194a.js +50 -0
  116. package/build/esm/lead.js +1 -1
  117. package/build/esm/mantine.js +1 -1
  118. package/build/esm/misc.js +1 -1
  119. package/build/esm/navigation.js +1 -1
  120. package/build/esm/onboarding.js +1 -1
  121. package/build/esm/onboardingV2.js +18 -18
  122. package/build/esm/{paths-3aa9e733.js → paths-d8677095.js} +1 -1
  123. package/build/esm/pwg.js +5 -5
  124. package/build/esm/{routing-7370484f.js → routing-15bab0c1.js} +1 -1
  125. package/build/esm/screenSizeContext-c836ee25.js +81 -0
  126. package/build/esm/together.js +1 -1
  127. package/build/esm/{types-11ff140e.js → types-1ede8733.js} +116 -116
  128. package/build/esm/types-659159e3.js +749 -0
  129. package/build/esm/types.js +1 -1
  130. package/build/esm/{useHealthToolCache-75e7237a.js → useHealthToolCache-c93a14d3.js} +1 -1
  131. package/build/esm/{useRafState-d58fcec4.js → useRafState-956d702c.js} +1 -1
  132. package/build/esm/{useTranslations-e743d735.js → useTranslations-7ca47aa6.js} +1 -1
  133. package/build/esm/utils-43ce7755.js +1210 -0
  134. package/build/esm/{utils-7f96a570.js → utils-95f50b85.js} +1 -1
  135. package/build/esm/vaccination.js +49 -49
  136. package/build/fixedBottomAdBlock-9da7b320.js +1 -0
  137. package/build/footer.js +1 -1
  138. package/build/gAssets.js +1 -1
  139. package/build/getDynamicHealthTool-1d128d8b.js +1 -0
  140. package/build/{getSocialList-ffb45884.js → getSocialList-89fc7cd1.js} +1 -1
  141. package/build/hooks.js +1 -1
  142. package/build/i18n/translationKeys.d.ts +1 -1
  143. package/build/i18n-values/en-PH.js +1 -1
  144. package/build/i18n-values/hi-IN.js +1 -1
  145. package/build/i18n-values/id-ID.js +1 -1
  146. package/build/i18n-values/km-KH.js +1 -1
  147. package/build/i18n-values/ms-MY.js +1 -1
  148. package/build/i18n-values/my-MM.js +1 -1
  149. package/build/i18n-values/th-TH.js +1 -1
  150. package/build/i18n-values/tl-PH.js +1 -1
  151. package/build/i18n-values/vi-VN.js +1 -1
  152. package/build/i18n-values/vi-VN_MB.js +1 -1
  153. package/build/i18n-values/zh-TW.js +1 -1
  154. package/build/i18n.js +1 -1
  155. package/build/i18nV2.js +1 -1
  156. package/build/{index-0b993b7b.js → index-286f3f1f.js} +1 -1
  157. package/build/{index-2124f3d8.js → index-2f89ac17.js} +1 -1
  158. package/build/{index-a913edb3.js → index-2ff3dc9b.js} +1 -1
  159. package/build/index-491c1f7a.js +1 -0
  160. package/build/index-4a3978e2.js +113 -0
  161. package/build/{index-f64735f6.js → index-4d3debcc.js} +1 -1
  162. package/build/index-4dd35f52.js +53 -0
  163. package/build/index-5f26cd75.js +1 -0
  164. package/build/{index-84f2f174.js → index-61ca2233.js} +1 -1
  165. package/build/{index-0a4bdae9.js → index-71a241c2.js} +1 -1
  166. package/build/{index-87615aa6.js → index-9796fe55.js} +1 -1
  167. package/build/index-a30a463c.js +1 -0
  168. package/build/index-a77fa3dc.js +1 -0
  169. package/build/{index-b5ee04ff.js → index-bbee93dd.js} +14 -14
  170. package/build/{index-49dc3607.js → index-c4d63742.js} +1 -1
  171. package/build/{index-c1830f93.js → index-c6d5103f.js} +1 -1
  172. package/build/{index-3baac80f.js → index-c952cbc8.js} +1 -1
  173. package/build/{index-d107dcd6.js → index-d42c20df.js} +1 -1
  174. package/build/{index-5baa63ab.js → index-de4b79e1.js} +7 -7
  175. package/build/{index-4498d523.js → index-e00f2884.js} +1 -1
  176. package/build/{index-d011fdfb.js → index-e8145d84.js} +1 -1
  177. package/build/index.js +1 -1
  178. package/build/{index.styled-849ca291.js → index.styled-682ff94a.js} +5 -5
  179. package/build/{index.styled-dcd4dfbb.js → index.styled-af0521f7.js} +15 -15
  180. package/build/{index.styled-e1e24f4f.js → index.styled-e140852f.js} +6 -6
  181. package/build/lead.js +1 -1
  182. package/build/mantine.js +1 -1
  183. package/build/misc.js +1 -1
  184. package/build/navigation.js +1 -1
  185. package/build/onboarding.js +1 -1
  186. package/build/onboardingV2.js +16 -16
  187. package/build/paths-82fd1623.js +1 -0
  188. package/build/pwg.js +1 -1
  189. package/build/{routing-893cc38c.js → routing-6279db15.js} +1 -1
  190. package/build/screenSizeContext-449c711d.js +81 -0
  191. package/build/together.js +1 -1
  192. package/build/types-19554357.js +749 -0
  193. package/build/{types-7aae8609.js → types-5970349c.js} +80 -80
  194. package/build/types.js +1 -1
  195. package/build/{useHealthToolCache-33a1a75f.js → useHealthToolCache-370897a8.js} +1 -1
  196. package/build/{useRafState-a3097ea8.js → useRafState-11b8c397.js} +1 -1
  197. package/build/{useTranslations-f674d3f2.js → useTranslations-6431433b.js} +1 -1
  198. package/build/utils-937d5f73.js +1210 -0
  199. package/build/utils-d2d88c63.js +1 -0
  200. package/build/vaccination.js +26 -26
  201. package/package.json +1 -1
  202. package/build/core-a51b6a43.js +0 -1
  203. package/build/esm/fixedBottomAdBlock-83912fd3.js +0 -1
  204. package/build/esm/getDynamicHealthTool-2326a463.js +0 -1
  205. package/build/esm/index-1d4eaa1c.js +0 -1
  206. package/build/esm/index-3f736c0b.js +0 -1
  207. package/build/esm/index-46be1b11.js +0 -1
  208. package/build/esm/index-48b38bdc.js +0 -177
  209. package/build/esm/index-65d702aa.js +0 -1
  210. package/build/esm/index-834d6dc0.js +0 -1
  211. package/build/esm/index-93f72147.js +0 -1
  212. package/build/esm/index-b0cd5d32.js +0 -1
  213. package/build/esm/index-efe2d89d.js +0 -1
  214. package/build/esm/index-f7790f46.js +0 -1
  215. package/build/esm/index-fbe22277.js +0 -113
  216. package/build/esm/index.styled-5fc3c70e.js +0 -50
  217. package/build/esm/screenSizeContext-6c4b3d3a.js +0 -81
  218. package/build/esm/types-c659f9ce.js +0 -339
  219. package/build/esm/utils-32abe328.js +0 -1210
  220. package/build/esm/utils-cf5913a7.js +0 -1
  221. package/build/fixedBottomAdBlock-0c7e1813.js +0 -1
  222. package/build/getDynamicHealthTool-533e408e.js +0 -1
  223. package/build/index-317c7782.js +0 -113
  224. package/build/index-63287b2a.js +0 -1
  225. package/build/index-84038158.js +0 -1
  226. package/build/index-c3b319e0.js +0 -1
  227. package/build/index-c4ed2bd3.js +0 -1
  228. package/build/index-d17f77e7.js +0 -53
  229. package/build/index-d240168e.js +0 -1
  230. package/build/paths-169ca2fa.js +0 -1
  231. package/build/screenSizeContext-8b2edc76.js +0 -81
  232. package/build/types-f2162056.js +0 -339
  233. package/build/utils-39189826.js +0 -1
  234. package/build/utils-8ffad3ee.js +0 -1210
  235. package/build/utils-a6e5c841.js +0 -1
  236. /package/build/{BMI_BOYS.percentile.monthly-40aa10d3.js → BMI_BOYS.percentile.monthly-8958a78c.js} +0 -0
  237. /package/build/{BMI_BOYS.percentile.weekly-f404b72d.js → BMI_BOYS.percentile.weekly-4b761f4d.js} +0 -0
  238. /package/build/{BMI_BOYS.percentile.yearly-8d434a93.js → BMI_BOYS.percentile.yearly-a04bbf54.js} +0 -0
  239. /package/build/{BMI_BOYS.zscore.monthly-8114e212.js → BMI_BOYS.zscore.monthly-a36ba4d0.js} +0 -0
  240. /package/build/{BMI_BOYS.zscore.weekly-11c9d824.js → BMI_BOYS.zscore.weekly-db6fe4d5.js} +0 -0
  241. /package/build/{BMI_BOYS.zscore.yearly-5bec9369.js → BMI_BOYS.zscore.yearly-860caeed.js} +0 -0
  242. /package/build/{BMI_GIRLS.percentile.monthly-84b926eb.js → BMI_GIRLS.percentile.monthly-00df239c.js} +0 -0
  243. /package/build/{BMI_GIRLS.percentile.weekly-c38dda42.js → BMI_GIRLS.percentile.weekly-fddb8641.js} +0 -0
  244. /package/build/{BMI_GIRLS.percentile.yearly-dd38ff8b.js → BMI_GIRLS.percentile.yearly-22dd5ac8.js} +0 -0
  245. /package/build/{BMI_GIRLS.zscore.monthly-f7de6cf8.js → BMI_GIRLS.zscore.monthly-cb7fb89f.js} +0 -0
  246. /package/build/{BMI_GIRLS.zscore.weekly-b63e255d.js → BMI_GIRLS.zscore.weekly-99eb5541.js} +0 -0
  247. /package/build/{BMI_GIRLS.zscore.yearly-4fb1e977.js → BMI_GIRLS.zscore.yearly-25cae963.js} +0 -0
  248. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7a72c2f8.js → HEAD CIRCUM_BOYS.percentile.monthly-f55ff1d5.js} +0 -0
  249. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1e6cdfe4.js → HEAD CIRCUM_BOYS.percentile.weekly-544b75f3.js} +0 -0
  250. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e0af52a9.js → HEAD CIRCUM_BOYS.percentile.yearly-08510bd3.js} +0 -0
  251. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-59821305.js → HEAD CIRCUM_BOYS.zscore.monthly-bbcdb589.js} +0 -0
  252. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-658be468.js → HEAD CIRCUM_BOYS.zscore.weekly-dc2399a5.js} +0 -0
  253. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c7bf9ebd.js → HEAD CIRCUM_BOYS.zscore.yearly-069905bc.js} +0 -0
  254. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-60b8aa21.js → HEAD CIRCUM_GIRLS.percentile.monthly-40dba81c.js} +0 -0
  255. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-16c57811.js → HEAD CIRCUM_GIRLS.percentile.weekly-69a42032.js} +0 -0
  256. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e2ad4b1b.js → HEAD CIRCUM_GIRLS.percentile.yearly-94df5a03.js} +0 -0
  257. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-1148183d.js → HEAD CIRCUM_GIRLS.zscore.monthly-628d6922.js} +0 -0
  258. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-5a624c92.js → HEAD CIRCUM_GIRLS.zscore.weekly-6043be39.js} +0 -0
  259. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-89f0ce48.js → HEAD CIRCUM_GIRLS.zscore.yearly-10a0741e.js} +0 -0
  260. /package/build/{HEIGHT_BOYS.percentile.monthly-874459c9.js → HEIGHT_BOYS.percentile.monthly-ae009cf1.js} +0 -0
  261. /package/build/{HEIGHT_BOYS.percentile.weekly-c5905ed0.js → HEIGHT_BOYS.percentile.weekly-70d1d360.js} +0 -0
  262. /package/build/{HEIGHT_BOYS.percentile.yearly-be85c3c2.js → HEIGHT_BOYS.percentile.yearly-09cf9130.js} +0 -0
  263. /package/build/{HEIGHT_BOYS.zscore.monthly-ab71494a.js → HEIGHT_BOYS.zscore.monthly-2e81862c.js} +0 -0
  264. /package/build/{HEIGHT_BOYS.zscore.weekly-74473ee4.js → HEIGHT_BOYS.zscore.weekly-99b3814d.js} +0 -0
  265. /package/build/{HEIGHT_BOYS.zscore.yearly-31d8cd4a.js → HEIGHT_BOYS.zscore.yearly-f4613d62.js} +0 -0
  266. /package/build/{HEIGHT_GIRLS.percentile.monthly-091b448a.js → HEIGHT_GIRLS.percentile.monthly-6f60eeb3.js} +0 -0
  267. /package/build/{HEIGHT_GIRLS.percentile.weekly-95b64243.js → HEIGHT_GIRLS.percentile.weekly-e4a3dbf0.js} +0 -0
  268. /package/build/{HEIGHT_GIRLS.percentile.yearly-3d88d73d.js → HEIGHT_GIRLS.percentile.yearly-ab93e83f.js} +0 -0
  269. /package/build/{HEIGHT_GIRLS.zscore.monthly-b2e58560.js → HEIGHT_GIRLS.zscore.monthly-4f9524f2.js} +0 -0
  270. /package/build/{HEIGHT_GIRLS.zscore.weekly-487f2139.js → HEIGHT_GIRLS.zscore.weekly-964c7c6b.js} +0 -0
  271. /package/build/{HEIGHT_GIRLS.zscore.yearly-cbb818b1.js → HEIGHT_GIRLS.zscore.yearly-938f9222.js} +0 -0
  272. /package/build/{Onboarding-fc91320a.js → Onboarding-7b19bc6b.js} +0 -0
  273. /package/build/{Visible-c2df2203.js → Visible-b1a5edce.js} +0 -0
  274. /package/build/{WEIGHT_BOYS.percentile.monthly-67ed4096.js → WEIGHT_BOYS.percentile.monthly-0dc89eaf.js} +0 -0
  275. /package/build/{WEIGHT_BOYS.percentile.weekly-1a18346c.js → WEIGHT_BOYS.percentile.weekly-c6eb47e5.js} +0 -0
  276. /package/build/{WEIGHT_BOYS.percentile.yearly-079b69f1.js → WEIGHT_BOYS.percentile.yearly-a2307c60.js} +0 -0
  277. /package/build/{WEIGHT_BOYS.zscore.monthly-64b4fa20.js → WEIGHT_BOYS.zscore.monthly-a0b441e5.js} +0 -0
  278. /package/build/{WEIGHT_BOYS.zscore.weekly-0511498e.js → WEIGHT_BOYS.zscore.weekly-19736bd9.js} +0 -0
  279. /package/build/{WEIGHT_BOYS.zscore.yearly-d0f9a48b.js → WEIGHT_BOYS.zscore.yearly-6a026f92.js} +0 -0
  280. /package/build/{WEIGHT_GIRLS.percentile.monthly-b4dfcbfd.js → WEIGHT_GIRLS.percentile.monthly-65ee3fc1.js} +0 -0
  281. /package/build/{WEIGHT_GIRLS.percentile.weekly-5adf6a8c.js → WEIGHT_GIRLS.percentile.weekly-552483f0.js} +0 -0
  282. /package/build/{WEIGHT_GIRLS.percentile.yearly-349924c6.js → WEIGHT_GIRLS.percentile.yearly-60565842.js} +0 -0
  283. /package/build/{WEIGHT_GIRLS.zscore.monthly-364763a3.js → WEIGHT_GIRLS.zscore.monthly-08000bda.js} +0 -0
  284. /package/build/{WEIGHT_GIRLS.zscore.weekly-16428e47.js → WEIGHT_GIRLS.zscore.weekly-db98eae0.js} +0 -0
  285. /package/build/{WEIGHT_GIRLS.zscore.yearly-a70f35e5.js → WEIGHT_GIRLS.zscore.yearly-10466197.js} +0 -0
  286. /package/build/{constants-f2b846fe.js → constants-1a96dc83.js} +0 -0
  287. /package/build/{cookieHelper-656ec051.js → cookieHelper-10e61e77.js} +0 -0
  288. /package/build/{dataTransform-a9544ee6.js → dataTransform-e952e2a6.js} +0 -0
  289. /package/build/esm/{BMI_BOYS.percentile.monthly-64765251.js → BMI_BOYS.percentile.monthly-0def0e7f.js} +0 -0
  290. /package/build/esm/{BMI_BOYS.percentile.weekly-26d1c266.js → BMI_BOYS.percentile.weekly-d9cacdb3.js} +0 -0
  291. /package/build/esm/{BMI_BOYS.percentile.yearly-139eb2db.js → BMI_BOYS.percentile.yearly-736e654f.js} +0 -0
  292. /package/build/esm/{BMI_BOYS.zscore.monthly-518ff64f.js → BMI_BOYS.zscore.monthly-22409178.js} +0 -0
  293. /package/build/esm/{BMI_BOYS.zscore.weekly-87c22c2e.js → BMI_BOYS.zscore.weekly-4161e89c.js} +0 -0
  294. /package/build/esm/{BMI_BOYS.zscore.yearly-042b66f3.js → BMI_BOYS.zscore.yearly-7b870f69.js} +0 -0
  295. /package/build/esm/{BMI_GIRLS.percentile.monthly-ec4b2f4d.js → BMI_GIRLS.percentile.monthly-1760e248.js} +0 -0
  296. /package/build/esm/{BMI_GIRLS.percentile.weekly-e329889d.js → BMI_GIRLS.percentile.weekly-a6809fee.js} +0 -0
  297. /package/build/esm/{BMI_GIRLS.percentile.yearly-38343779.js → BMI_GIRLS.percentile.yearly-4514fd35.js} +0 -0
  298. /package/build/esm/{BMI_GIRLS.zscore.monthly-e5e8bf76.js → BMI_GIRLS.zscore.monthly-04fe5bf9.js} +0 -0
  299. /package/build/esm/{BMI_GIRLS.zscore.weekly-40c6e20c.js → BMI_GIRLS.zscore.weekly-0d5957b5.js} +0 -0
  300. /package/build/esm/{BMI_GIRLS.zscore.yearly-a2021786.js → BMI_GIRLS.zscore.yearly-705329fc.js} +0 -0
  301. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f67793f6.js → HEAD CIRCUM_BOYS.percentile.monthly-d5fb461b.js} +0 -0
  302. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-66251183.js → HEAD CIRCUM_BOYS.percentile.weekly-13620bc6.js} +0 -0
  303. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-ca7a6439.js → HEAD CIRCUM_BOYS.percentile.yearly-5f34ec92.js} +0 -0
  304. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ab834e5a.js → HEAD CIRCUM_BOYS.zscore.monthly-1ad9297e.js} +0 -0
  305. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-1930d569.js → HEAD CIRCUM_BOYS.zscore.weekly-b2bdca3a.js} +0 -0
  306. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-281219a6.js → HEAD CIRCUM_BOYS.zscore.yearly-1baac315.js} +0 -0
  307. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-30746142.js → HEAD CIRCUM_GIRLS.percentile.monthly-586b16b0.js} +0 -0
  308. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-3815448c.js → HEAD CIRCUM_GIRLS.percentile.weekly-0bae6048.js} +0 -0
  309. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-174d740f.js → HEAD CIRCUM_GIRLS.percentile.yearly-8fac6642.js} +0 -0
  310. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e6c93b3d.js → HEAD CIRCUM_GIRLS.zscore.monthly-25a08afc.js} +0 -0
  311. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-876dbd52.js → HEAD CIRCUM_GIRLS.zscore.weekly-23331b57.js} +0 -0
  312. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-746bc115.js → HEAD CIRCUM_GIRLS.zscore.yearly-b29c6ebf.js} +0 -0
  313. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1a2adbd0.js → HEIGHT_BOYS.percentile.monthly-1dbf1260.js} +0 -0
  314. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-44df87bb.js → HEIGHT_BOYS.percentile.weekly-d25d7b8f.js} +0 -0
  315. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f26d7188.js → HEIGHT_BOYS.percentile.yearly-1291131e.js} +0 -0
  316. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-7b17a0dd.js → HEIGHT_BOYS.zscore.monthly-51960331.js} +0 -0
  317. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-ac9319bc.js → HEIGHT_BOYS.zscore.weekly-7cea1500.js} +0 -0
  318. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3f0fbefa.js → HEIGHT_BOYS.zscore.yearly-f0a1e6ce.js} +0 -0
  319. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-3d60a549.js → HEIGHT_GIRLS.percentile.monthly-bb5ef5bb.js} +0 -0
  320. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-32cfe832.js → HEIGHT_GIRLS.percentile.weekly-8e15eef2.js} +0 -0
  321. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-9685eebd.js → HEIGHT_GIRLS.percentile.yearly-6645f1ca.js} +0 -0
  322. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a55a152a.js → HEIGHT_GIRLS.zscore.monthly-dc5bf23c.js} +0 -0
  323. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-5ba06063.js → HEIGHT_GIRLS.zscore.weekly-3f88b5a2.js} +0 -0
  324. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-86806f62.js → HEIGHT_GIRLS.zscore.yearly-bdcbd5e0.js} +0 -0
  325. /package/build/esm/{Onboarding-9e4e70e7.js → Onboarding-17999cc6.js} +0 -0
  326. /package/build/esm/{Visible-b3eda12e.js → Visible-1cd4fcba.js} +0 -0
  327. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-3ef2f577.js → WEIGHT_BOYS.percentile.monthly-d038d535.js} +0 -0
  328. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-bcd490c4.js → WEIGHT_BOYS.percentile.weekly-43211215.js} +0 -0
  329. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-bb4eeff5.js → WEIGHT_BOYS.percentile.yearly-c78ab472.js} +0 -0
  330. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-f1d09597.js → WEIGHT_BOYS.zscore.monthly-e0a44abc.js} +0 -0
  331. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6e2e2e78.js → WEIGHT_BOYS.zscore.weekly-b0383e3c.js} +0 -0
  332. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-d11badbe.js → WEIGHT_BOYS.zscore.yearly-56dacf94.js} +0 -0
  333. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-31a98425.js → WEIGHT_GIRLS.percentile.monthly-942387b6.js} +0 -0
  334. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-2423581d.js → WEIGHT_GIRLS.percentile.weekly-aae75a15.js} +0 -0
  335. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-6511ac61.js → WEIGHT_GIRLS.percentile.yearly-eb71ec38.js} +0 -0
  336. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-da6118cf.js → WEIGHT_GIRLS.zscore.monthly-8b5c3c06.js} +0 -0
  337. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-1d1e2cd1.js → WEIGHT_GIRLS.zscore.weekly-0795a68b.js} +0 -0
  338. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-0d3b3970.js → WEIGHT_GIRLS.zscore.yearly-fe7f2f80.js} +0 -0
  339. /package/build/esm/{constants-3b2016c2.js → constants-f6df1426.js} +0 -0
  340. /package/build/esm/{cookieHelper-8d4d4f87.js → cookieHelper-243ea413.js} +0 -0
  341. /package/build/esm/{dataTransform-89915fff.js → dataTransform-36b31b51.js} +0 -0
  342. /package/build/esm/{index-a98036b7.js → index-171cb1de.js} +0 -0
  343. /package/build/esm/{isProduction-312c5090.js → isProduction-f9284e0d.js} +0 -0
  344. /package/build/esm/{localizeNumberFormat-7be379f5.js → localizeNumberFormat-891fddd2.js} +0 -0
  345. /package/build/esm/{normalizeLink-4bc0f032.js → normalizeLink-5c3d96d1.js} +0 -0
  346. /package/build/esm/{theme-2d06fcb0.js → theme-72c4ec13.js} +0 -0
  347. /package/build/esm/{translationsContext-0ea53580.js → translationsContext-c72ee6fa.js} +0 -0
  348. /package/build/esm/{tslib.es6-fa2b0040.js → tslib.es6-d8c90a45.js} +0 -0
  349. /package/build/esm/{types-27b60cd6.js → types-ab2c0f6a.js} +0 -0
  350. /package/build/esm/{useIsInit-c5411f18.js → useIsInit-392f39dd.js} +0 -0
  351. /package/build/esm/{useOutsideClick-d82e18e1.js → useOutsideClick-1cd3fb0a.js} +0 -0
  352. /package/build/esm/{useScrollbarSize-5dbc83d7.js → useScrollbarSize-8565e51f.js} +0 -0
  353. /package/build/esm/{useUniqueId-20aeda97.js → useUniqueId-3c703513.js} +0 -0
  354. /package/build/{index-12b3d15e.js → index-b1647eb2.js} +0 -0
  355. /package/build/{isProduction-8f6cbcab.js → isProduction-a9b4a078.js} +0 -0
  356. /package/build/{localizeNumberFormat-69ca71a2.js → localizeNumberFormat-5ef4e484.js} +0 -0
  357. /package/build/{normalizeLink-6ea6478e.js → normalizeLink-50c64691.js} +0 -0
  358. /package/build/{theme-8d7a0555.js → theme-d4afee80.js} +0 -0
  359. /package/build/{translationsContext-34015b3b.js → translationsContext-c1c628a8.js} +0 -0
  360. /package/build/{tslib.es6-e36bef96.js → tslib.es6-049409d2.js} +0 -0
  361. /package/build/{types-7d180d5a.js → types-5d92c754.js} +0 -0
  362. /package/build/{useIsInit-2fee5fc8.js → useIsInit-46fc5c7c.js} +0 -0
  363. /package/build/{useOutsideClick-9e98f405.js → useOutsideClick-57e6f5a8.js} +0 -0
  364. /package/build/{useScrollbarSize-4b33093d.js → useScrollbarSize-ed1b21ab.js} +0 -0
  365. /package/build/{useUniqueId-2b7006f9.js → useUniqueId-4c637d8e.js} +0 -0
@@ -1,339 +0,0 @@
1
- import{a as e}from"./tslib.es6-fa2b0040.js";import t,{useState as i,useCallback as o,useMemo as a,useEffect as n,useRef as s,useReducer as r}from"react";import{c,d as l}from"./index-30cba675.js";import{g as d,s as h,d as u}from"./cookieHelper-8d4d4f87.js";import{u as p}from"./useTranslations-e743d735.js";import g from"lodash/debounce";import{I as m,L as C,a as f}from"./constants-3b2016c2.js";import{I as v}from"./index-331dcbca.js";import y,{createGlobalStyle as b}from"styled-components";import{T as w}from"./index-93f72147.js";import{t as E}from"./theme-2d06fcb0.js";import{M as L}from"./utils-cf5913a7.js";import x from"react-loading-skeleton";import S from"lodash/shuffle";import{a as k}from"./useOutsideClick-d82e18e1.js";import{P as O}from"./paths-3aa9e733.js";import j from"string-format";const I=y.div``,M=y.div`
2
- --searchbar-z-index: 305;
3
- &[data-is-modal='true'] {
4
- position: fixed;
5
- left: 0;
6
- right: 0;
7
- top: 0;
8
- height: var(--mobile-care-searchbar-height, 100%);
9
- overflow-y: auto;
10
- -webkit-overflow-scrolling: touch;
11
- background-color: white;
12
- z-index: var(--searchbar-z-index);
13
- }
14
- `,R=y.section``,T=y.input`
15
- position: fixed;
16
- left: -100%;
17
- top: -100%;
18
- `,A=y(v)`
19
- #booking-search-bar & {
20
- input {
21
- font-size: 16px;
22
- }
23
- }
24
- `,F=b`
25
- .care-popup-open {
26
- overflow: hidden;
27
- position: fixed;
28
- &::before {
29
- content: '';
30
- inset: 0;
31
- position: absolute;
32
- background-color: white;
33
- min-height: 100vh;
34
- min-width: 100vw;
35
- z-index: 2;
36
- }
37
- }
38
- `,N=({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M18 6L6 18",stroke:i||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M6 6L18 18",stroke:i||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),P=({className:e,color:i})=>t.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},t.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:i||"currentColor"})),B=({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:i||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M20 20L16 16",stroke:i||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),V=({width:e,height:i})=>t.createElement("svg",{width:e||30,height:i||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),H=y.li`
39
- display: flex;
40
- align-items: center;
41
- gap: 12px;
42
- padding: 8px 16px;
43
-
44
- > :first-child {
45
- flex: 1;
46
- }
47
-
48
- > :nth-child(2) {
49
- flex: 6;
50
- }
51
-
52
- & + li::before {
53
- content: '';
54
- position: absolute;
55
- left: 18px;
56
- right: 18px;
57
- top: 0;
58
- height: 1px;
59
- background-color: ${E.colors.neutral100};
60
- }
61
- `,$=y.div`
62
- display: flex;
63
- position: absolute;
64
- top: 48px;
65
- min-width: 100%;
66
- box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
67
- 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
68
- 0px 0px 1px rgba(0, 0, 0, 0.04);
69
- border-radius: ${e=>e.theme.borderRadius};
70
- background-color: white;
71
- z-index: 30;
72
-
73
- ${L.tdDown} {
74
- position: relative;
75
- top: 0;
76
- box-shadow: initial;
77
- }
78
- `,z=y.ul`
79
- width: 100%;
80
- max-height: 600px;
81
- overflow-y: auto;
82
- `,D=y(P)`
83
- width: 12px;
84
- height: 18px;
85
- `,_=y.li`
86
- position: relative;
87
- cursor: pointer;
88
- padding: 12px 18px;
89
- display: flex;
90
- align-items: center;
91
- gap: 14px;
92
- overflow: hidden;
93
-
94
- ${({isSelected:e})=>e&&"\n &::after {\n content: url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\");\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n "}
95
-
96
- & + li::before {
97
- content: '';
98
- position: absolute;
99
- left: 18px;
100
- right: 18px;
101
- top: 0;
102
- height: 1px;
103
- background-color: ${E.colors.neutral100};
104
- }
105
-
106
- &:not([data-is-denied='true']):hover {
107
- background-color: ${E.colors.neutral50};
108
- }
109
-
110
- &:last-child:hover {
111
- border-bottom-right-radius: 6px;
112
- border-bottom-left-radius: 6px;
113
- }
114
-
115
- &:first-child:hover {
116
- border-top-right-radius: 6px;
117
- border-top-left-radius: 6px;
118
- }
119
-
120
- &[data-is-denied='true'] {
121
- cursor: not-allowed;
122
- }
123
- `,K=y((({count:e,className:i})=>t.createElement(t.Fragment,null,[...Array(e)].map(((e,o)=>t.createElement(H,{className:i,key:o},t.createElement(x,{count:1,height:32}),t.createElement(x,{count:1,height:24})))))))`
124
- &:first-child {
125
- padding-top: 18px;
126
- }
127
- `,Z=({cities:e,isLoading:i,onLocationClick:o,selectedLocation:a})=>{const{t:n,locale:s}=p();return t.createElement($,{"data-testid":"location-search-results"},t.createElement(z,null,i?t.createElement(K,{count:5}):!e||e.length<1?t.createElement(t.Fragment,null,t.createElement(_,{"data-is-denied":"true"},t.createElement(w,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):t.createElement(t.Fragment,null,t.createElement(_,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;o&&o({name:n("booking.searchBar.allLocations"),id:m,slug:null===(e=C[s])||void 0===e?void 0:e.ALL})}},t.createElement(D,{color:E.colors.neutral400}),t.createElement(w,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>t.createElement(_,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),o&&o(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==a?void 0:a.id)===e.id},t.createElement(D,{color:E.colors.neutral400}),t.createElement(w,{size:"md"},e.name)))))))},G="TYPE_CHARACTER",U="REMOVE_CHARACTER",Q="REMOVE_ALL",Y="REMOVE_LAST_VISIBLE_NODE",q="PAUSE_FOR",W="CHANGE_DELETE_SPEED",J="CHANGE_DELAY",X="PASTE_STRING",ee=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,te="TEXT_NODE";class ie{constructor(e){this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=()=>(this.state.eventLoopPaused=!1,this.runEventLoop(),this),this.pause=()=>(this.state.eventLoopPaused=!0,this),this.stop=()=>(this.state.eventLoop&&(window.cancelAnimationFrame(this.state.eventLoop),this.state.eventLoop=null),this),this.pauseFor=e=>(this.addEventToQueue(q,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:i}=this.options||{},o="function"==typeof i?i(e):e.split("");this.typeCharacters(o,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(X,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(Q,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(W,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(J,{delay:e}),this},this.deleteChars=e=>{if(!e)throw new Error("Must provide amount of characters to delete");for(let t=0;t<e;t++)this.addEventToQueue(U);return this},this.typeCharacters=(e,t=null)=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((e=>{this.addEventToQueue(G,{character:e,node:t})})),this},this.removeCharacters=e=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((()=>{this.addEventToQueue(U)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:o}=this.options;return o?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,o)=>{const a={eventName:e,eventArgs:t||{}};return this.state[o]=i?[a,...this.state[o]]:[...this.state[o],a],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const i=[...this.state.eventQueue],o=i.shift();let a=0;if(a=o.eventName===Y||o.eventName===U?"natural"===this.options.deleteSpeed?ee(40,80):this.options.deleteSpeed:"natural"===this.options.delay?ee(120,160):this.options.delay,t<=a)return;const{eventName:n,eventArgs:s}=o;switch(n){case X:case G:{const{character:e}=s,t=document.createTextNode(e);let i=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(i=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:te,character:e,node:i}];break}case U:i.unshift({eventName:Y,eventArgs:{removingCharacterNode:!0}});break;case q:{const{ms:e}=o.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case Q:{const{visibleNodes:e}=this.state,{speed:t}=s,o=[];t&&o.push({eventName:W,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)o.push({eventName:Y,eventArgs:{removingCharacterNode:!1}});t&&o.push({eventName:W,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...o);break}case Y:if(this.state.visibleNodes.length){const{node:e,character:t}=this.state.visibleNodes.pop();this.options.onRemoveNode&&"function"==typeof this.options.onRemoveNode&&this.options.onRemoveNode({node:e,character:t}),e&&e.parentNode.removeChild(e)}break;case W:this.options.deleteSpeed=o.eventArgs.speed;break;case J:this.options.delay=o.eventArgs.delay}this.options.loop&&(o.eventName===Y||o.eventArgs&&o.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,o])),this.state.eventQueue=i,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(Q,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function oe({inputRef:e,wrapperRef:t,disabled:i}){const{t:o,locale:s}=p(),r=a((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==s&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),S(e).map((e=>o(e)))}),[o,s]);function c(e){const t=d();return t&&(t.placeholder=t.placeholder+e),null}function l(){const e=d();e&&(e.placeholder=e.placeholder.slice(0,-1))}function d(){return e&&e.current?e.current:t&&t.current&&t.current.querySelector("input")||null}n((()=>{if(i)return;const e=d();e&&(e.placeholder="",new ie({strings:r,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:c,onRemoveNode:l}))}),[e,t])}const ae=y.div`
128
- user-select: none;
129
- input {
130
- pointer-events: none;
131
- background-color: white;
132
- }
133
- `;function ne({focused:e,value:i="",onClick:o,trackingAttributes:n,inputSearchPlaceholder:r}){const{t:c}=p(),l=s(null);oe({wrapperRef:l,disabled:!!r});const d=a((()=>n?{"data-event-category":n.dataEventCategory,"data-event-action":n.dataEventAction,"data-event-label":n.dataEventLabel}:{}),[n]);return t.createElement(ae,Object.assign({onClick:()=>o&&o(),ref:l},d),t.createElement(A,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:t.createElement(B,{color:E.colors.gray400}),placeholder:c("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}const se=y.header`
134
- display: flex;
135
- height: 64px;
136
- align-items: center;
137
- justify-content: space-between;
138
- margin: 0 auto;
139
- position: sticky;
140
- z-index: 99;
141
- background-color: white;
142
- top: 0;
143
- left: 0;
144
- `,re=y.div`
145
- display: inline-flex;
146
- flex: 1;
147
- justify-content: flex-end;
148
- cursor: pointer;
149
- text-decoration: underline;
150
- `,ce=y.div`
151
- display: flex;
152
- align-items: center;
153
- margin-left: 16px;
154
- cursor: pointer;
155
- `,le=y.div`
156
- width: 100%;
157
- margin-left: 24px;
158
- `,de=y(w)`
159
- color: ${E.colors.secondaryDark};
160
- text-align: start;
161
- `,he=({className:e,onLeftClick:i,headingText:o,onRightClick:a,iconLeft:n,textRight:s})=>t.createElement(se,{className:e},t.createElement(ce,{onClick:i},n||t.createElement(N,{color:E.colors.gray800})),t.createElement(le,null,t.createElement(de,{size:"md",type:"bold"},o)),t.createElement(re,{onClick:a},s&&t.createElement("p",null,s))),ue={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},pe={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};var ge;function me(e){const{selectedLocation:t,searchLocationKeywords:i}=e;return t&&i!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function Ce(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case ge.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case ge.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:me(Object.assign(Object.assign({},e),{focused:"none"}));case ge.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case ge.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===f&&(t.searchLocationKeywords=""),t}case ge.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?me(o):o;case ge.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case ge.ChangeInputSearch:{const i=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:i,isLoadingSearchResults:i.trim().length>ue[e.locale]})}case ge.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ge.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case ge.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case ge.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ge.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case ge.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case ge.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case ge.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case ge.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case ge.FetchSearchResultsComplete:{const i=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(i.initialSearchResults=t.payload),i}case ge.FetchCitiesByGeoIpComplete:{let{cities:i}=t.payload;const{default:o}=t.payload;i=i.filter((e=>e.id!==o.id)),i.unshift(o),e.initialSelectedCity&&!i.find((t=>t.id===e.initialSelectedCity.id))&&i.unshift(e.initialSelectedCity);const a=Object.assign(Object.assign({},e),{defaultCity:o,initialCities:i,cities:i});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(a.selectedLocation=o,a.searchLocationKeywords=o.name),a}case ge.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case ge.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case ge.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case ge.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case ge.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case ge.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case ge.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case ge.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case ge.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(ge||(ge={}));const fe=y.div`
162
- display: flex;
163
- gap: 16px;
164
- ${L.mbDown} {
165
- flex-direction: column;
166
- padding: 14px;
167
- background-color: ${E.colors.primary50};
168
-
169
- input {
170
- filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))
171
- drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))
172
- drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
173
- }
174
- }
175
-
176
- input {
177
- background-color: white;
178
- }
179
- `,ve=y.div`
180
- position: relative;
181
- `,ye=y(ve)`
182
- flex: 1;
183
- `,be=y(ve)`
184
- flex: 2;
185
- `,we=y((({className:e,color:i})=>t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:i||"currentColor"}))))`
186
- display: none;
187
- &.shown {
188
- display: block;
189
- }
190
- `,Ee=()=>t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"})),Le=y.button`
191
- min-height: 100%;
192
- border-radius: 6px;
193
- background-color: ${({theme:e})=>e.colors.primaryBase};
194
- display: flex;
195
- justify-content: center;
196
- align-items: center;
197
- gap: 11px;
198
- cursor: pointer;
199
- flex: 0.3;
200
-
201
- ${L.mbDown} {
202
- --margin: 16px;
203
- min-height: 44px;
204
- margin: var(--margin);
205
- width: calc(100% - var(--margin) * 2);
206
- position: absolute;
207
- bottom: 0;
208
- }
209
-
210
- &:hover {
211
- background-color: ${({theme:e})=>e.colors.primaryHover};
212
- }
213
-
214
- &:active {
215
- background-color: ${({theme:e})=>e.colors.primaryActive};
216
- }
217
-
218
- &:focus-visible {
219
- outline: 1px solid black;
220
- }
221
- `,xe=y(w)`
222
- font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
223
- `,Se=({onClick:e})=>{const{t:i}=p(),o=i("booking.searchBar.searchButton");return t.createElement(Le,{onClick:e,title:o},t.createElement(Ee,null),t.createElement(xe,{size:"s3",color:"white"},o))};function ke({isMobile:e,state:i,dispatch:n,debouncedFetchCitiesByKeyword:r,debouncedFetchSearchResults:c,focusLocationInput:l,focusSearchInput:d,renderLocationResults:h,renderSearchResults:u,locationTrackingAttributes:g,trackingAttributes:m,onSearch:C,initalSearchValue:v}){const y=s(null),b=s(null),{focused:w,searchLocationKeywords:L,geoLocationPermission:x,selectedLocation:S,searchKeywords:O,inputSearchPlaceholder:j}=i,{t:I}=p();oe({wrapperRef:b,disabled:!!j}),k(y,(()=>{e||n({type:ge.ClickOutsideInputLocation})})),k(b,(()=>{e||n({type:ge.ClickOutsideInputSearch})}));const M=a((()=>"granted"===x&&(null==S?void 0:S.id)===f?E.colors.primaryBase:E.colors.gray400),[x,S]),R=o((function(e){n({type:ge.ChangeInputSearch,payload:e}),"function"!=typeof C&&(e.trim().length>ue[i.locale]||v?c(e.trim(),i):(c.cancel(),n({type:ge.DisplayInitialSearchResults})))}),[n,i]),T=o((function(e){n({type:ge.ChangeInputLocation,payload:e}),e.trim().length>ue[i.locale]?r(e.trim()):(r.cancel(),n({type:ge.DisplayInitialCities}))}),[r,n]);return t.createElement(fe,null,t.createElement(ye,{ref:y},t.createElement(A,{inputClassName:"location"===w?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:t.createElement(P,{className:"location-pin-icon",color:M}),actionIcon:t.createElement(we,{color:E.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){n({type:ge.ClearInputLocation}),r.cancel(),l()},value:L,onChange:T,onFocus:()=>n({type:ge.FocusInputLocation}),size:"md",trackingAttributes:g}),!e&&h()),t.createElement(be,{ref:b},t.createElement(A,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:t.createElement(we,{color:E.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){n({type:ge.ClearInputSearch}),c.cancel(),c("",i),d()},value:O,onChange:R,onFocus:()=>n({type:ge.FocusInputSearch}),inputClassName:"search"===w?"focused":void 0,size:"md",trackingAttributes:m,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&C&&C({cityId:i.selectedLocation.id,keyword:O})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&u()),i.autoCompleteDisabled&&!i.isMobile&&t.createElement(Se,{onClick:()=>{C({cityId:i.selectedLocation.id,keyword:O})}}))}const Oe=()=>t.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},t.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),je=()=>t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),Ie=()=>t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},t.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),Me=()=>t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},t.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Re=y.header`
224
- display: flex;
225
- justify-content: space-between;
226
- padding: 12px 24px;
227
- background-color: ${E.colors.neutral50};
228
- box-shadow: inset 0px 1px 0px #e4e8ec;
229
- `,Te=y.div`
230
- display: grid;
231
- flex: 2;
232
- align-items: center;
233
- gap: 16px;
234
- grid-template-columns: 16px 1fr;
235
- `,Ae=y.p`
236
- color: ${E.colors.neutral800};
237
- font-size: 14px;
238
- font-weight: ${E.sizes.fwSemiBold};
239
- letter-spacing: -0.2px;
240
- line-height: 22px;
241
- `,Fe=y.button`
242
- flex: 1;
243
- cursor: pointer;
244
- text-align: end;
245
- `,Ne=y.section`
246
- padding: 12px 16px;
247
- --rowGap: 16px;
248
- --graphicSize: 32px;
249
-
250
- ${L.tdUp} {
251
- --rowGap: 8px;
252
- }
253
- `,Pe=y.ul`
254
- --gap: 16px;
255
- ${L.tdUp} {
256
- --gap: 8px;
257
- }
258
-
259
- display: grid;
260
- overflow: hidden;
261
- gap: var(--gap);
262
- transition: max-height 0.8s ease-out;
263
-
264
- ${({isMore:e})=>e&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}
265
-
266
- ${({isShown:e})=>e&&"\n max-height: 600px;\n "}
267
-
268
- @media (prefers-reduced-motion) {
269
- transition: none;
270
- }
271
-
272
- ${L.tdUp} {
273
- grid-template-columns: 1fr 1fr;
274
- } ;
275
- `,Be=y(w)`
276
- margin-top: 12px;
277
- margin-bottom: 8px;
278
- cursor: pointer;
279
- text-align: start;
280
- text-transform: capitalize;
281
- `,Ve=y.li`
282
- display: flex;
283
- align-items: center;
284
- gap: var(--rowGap);
285
- cursor: pointer;
286
- &.not-nav {
287
- cursor: default;
288
- }
289
- `,He=y.div`
290
- --wrapper-size: var(--graphicSize);
291
- border-radius: calc(var(--wrapper-size) / 2);
292
- background-color: var(--neutral50);
293
- width: var(--wrapper-size);
294
- height: var(--wrapper-size);
295
- aspect-ratio: 1/1;
296
- overflow: hidden;
297
-
298
- ${({type:e})=>e&&"doctors"===e&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}
299
-
300
- img {
301
- width: var(--graphicSize);
302
- height: var(--graphicSize);
303
- ${({type:e})=>e&&"doctors"===e?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}
304
- }
305
-
306
- &:focus-visible {
307
- outline: 1px solid ${E.colors.gray600};
308
- }
309
- `,$e=y(w)`
310
- line-height: 22px;
311
- letter-spacing: -0.2px;
312
-
313
- ${L.tdUp} {
314
- &[data-size='p3'] {
315
- font-size: 14px;
316
- }
317
- }
318
- `,ze=y.figure`
319
- max-width: var(--graphicSize);
320
- min-width: var(--graphicSize);
321
- `,De=y.svg`
322
- margin: 0 auto;
323
- display: block;
324
- `,_e=y.div`
325
- display: grid;
326
- place-items: center;
327
- `,Ke={doctors:({width:e,height:i})=>t.createElement("svg",{width:e||32,height:i||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{clipPath:"url(#clip0_14712_400114)"},t.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),t.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_14712_400114"},t.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:i})=>t.createElement("svg",{width:e||30,height:i||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),t.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},Ze=({type:e,item:i,imageUrl:o,className:n,onClickItem:s})=>{const r=a((()=>{const i=Ke[e]||V;return t.createElement(i,{width:32,height:"services"===e?32:24})}),[e]);return t.createElement(Ve,{onClick:()=>s&&s(i),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(i)},tabIndex:0,role:"button",className:n},t.createElement(ze,null,"hospitals"===e?t.createElement(De,{width:"12",height:"16",viewBox:"0 0 12 16"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):t.createElement(He,{type:e},o?t.createElement("img",{src:o,width:32,height:"services"===e?32:24,loading:"lazy"}):r)),t.createElement($e,{color:E.colors.gray800,size:"p3"},i.name))},Ge=({type:e,data:o,state:n,dispatch:s,itemsToShow:r,itemsToShowDesktop:c,isMobile:l,isLoading:d,keyword:h,isNavResultItem:u})=>{const[g,m]=i(!1),{t:f,locale:v}=p(),{selectedLocation:y,searchKeywords:b}=n,L=a((()=>C[v]),[v]),S="ms-MY"===v,k=a((()=>({doctors:{name:f("booking.searchPopup.doctors"),icon:t.createElement(Oe,null),slug:L.DOCTOR},services:{name:f("booking.searchPopup.services"),icon:t.createElement(je,null),slug:L.SERVICE},hospitals:{name:f("booking.searchPopup.hospitals"),icon:t.createElement(Ie,null),slug:L.HOSPITAL},specialties:{name:f("booking.searchPopup.specialties"),icon:t.createElement(Me,null),slug:L.SPECIALTIES}})),[e,L]),O=a((()=>k[e].slug),[k]),j=l?r:c;function I(t){let i="";switch(e){case"specialties":i=`/${y.slug}/${k.doctors.slug}/${t.slug}`;break;case"services":i=`/${y.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:ge.SelectSearchResult,payload:{name:t.name,url:i}})}function M(i){return t.createElement(Ze,{key:i.id,item:i,type:e,imageUrl:i.logo||i.avatar||i.thumbnail,className:u?"":"not-nav",onClickItem:u&&I})}return t.createElement("section",null,t.createElement(Re,null,t.createElement(Te,null,k[e].icon,t.createElement(Ae,null,k[e].name)),(h.trim().length<=ue[v]||S)&&t.createElement(Fe,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${y.slug}/${O}`}t&&s({type:ge.NavigateTo,payload:t})}},t.createElement(w,{size:"p3",color:E.colors.primaryBase},f("booking.searchPopup.seeAll")))),(d||o&&o.length>0)&&t.createElement(Ne,null,t.createElement(Pe,null,d&&Array(2).fill(void 0).map(((i,o)=>t.createElement(Ve,{key:e+"loading"+o},t.createElement(ze,null,t.createElement(_e,null,t.createElement(x,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),t.createElement(x,{width:120,height:24})))),!d&&o&&o.length>0&&o.slice(0,j).map(M)),t.createElement(Pe,{isShown:g,isMore:!0},o.slice(j,-1).map(M)),"specialties"===e&&j<o.length&&!d&&t.createElement("button",{onClick:()=>m(!g)},t.createElement(Be,{size:"p3",color:E.colors.primaryBase},f(g?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<o.length||S)&&!d&&h.trim().length>ue[v]&&t.createElement("button",{onClick:function(){const{slug:t}=k[e],i=`/${y.slug}/${t}?q=${b}`;s({type:ge.NavigateTo,payload:i})}},t.createElement(Be,{size:"p3",color:E.colors.primaryBase},f(`booking.searchPopup.searchIn.${e}`,{name:h})))),!d&&0===(null==o?void 0:o.length)&&t.createElement(Ne,null,t.createElement(w,{size:"sm",color:E.colors.gray400},f("booking.searchBar.noResults"))))},Ue=y.section`
328
- background-color: white;
329
- border-radius: 4px;
330
- position: absolute;
331
- width: 100%;
332
- z-index: 30;
333
-
334
- ${L.tdUp} {
335
- box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
336
- 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
337
- 0px 0px 1px rgba(0, 0, 0, 0.04);
338
- }
339
- `,Qe=({data:e,state:i,dispatch:o,isMobile:a,isLoading:n,keyword:s,hideResults:r,isNavResultItem:c})=>t.createElement(Ue,null,e&&e.map((e=>r&&r.includes(e.type)?t.createElement(t.Fragment,null):t.createElement(Ge,{type:e.type,state:i,dispatch:o,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:a,isLoading:n,keyword:s,isNavResultItem:c})))),Ye=(e,t,i)=>j(e,Object.assign(Object.assign({},t),{domain:l[i||"en-PH"]}));const qe=({isMobile:l,careApiDomain:v,geoLocationPermission:y,geoLocationCoordinates:b,initialSelectedCity:w,initialSearchValue:E="",careFrontDomain:L="/care",isDebug:x=!1,askForGeolocationPermission:S=!1,gaTrackingSearchBar:k,gaTrackingLocationSearch:j,autoCompleteDisabled:A=!1,inputSearchPlaceholder:N="",isOptionAllLocation:P=!1,hideResults:B=[],isNavResultItem:V=!0,routerPush:H,onGeoLocationPermissionChange:$,onSearch:z,onChangeLocation:D})=>{const{t:_,locale:K}=p(),G=s(null),U=s(null),[Q,Y]=i(void 0),[q,W]=i(!1),{geoLocationPermission:J,geoLocationCoordinates:X,requestGeoLocation:ee}=function(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(d(c))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=d(c);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),r=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};h(c,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{u(c),t("denied")}))}),[]);return a((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:r})),[e,n])}(),[te,ie]=r(Ce,pe,(e=>Object.assign(Object.assign({},e),{isDebug:x,isMobile:l,geoLocationPermission:y||J||"unset",geoLocationCoordinates:b||X||null,searchKeywords:E,initialSelectedCity:w||null,selectedLocation:w||e.selectedLocation||null,searchLocationKeywords:(null==w?void 0:w.name)||e.searchLocationKeywords,autoCompleteDisabled:A,inputSearchPlaceholder:N,locale:K}))),{navigateTo:oe,focused:ae,isLoadingCities:se,cities:re,searchKeywords:ce,geoLocationPermission:le,selectedLocation:de,initialSelectedCity:me,defaultCity:fe,searchResults:ve,isLoadingSearchResults:ye,isMobileModalOpened:be,inputSearchPlaceholder:we}=te,{fetchCitiesByLocation:Ee,fetchCitiesByKeyword:Le,fetchSearchResults:xe}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(o,a={}){const n=`${t}${o}`;return e({type:ge.FetchCitiesStart}),fetch(Ye(n,a,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:ge.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const n={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[a(O.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(O.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const o=Object.assign({},t);if(i){const e=o.cities.map((e=>e.id));o.cities=o.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:ge.FetchCitiesByGeoIpComplete,payload:o})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(O.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:ge.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(o,a){const n=`${t}${O.GET_SEARCH_V2}`;e({type:ge.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:c}=a;let l="";if(!r||!s)return void e({type:ge.FetchSearchResultsFinish});r.id===f?c||(l=s.id):l=r.id===m?"":r.id;const d=(null==c?void 0:c.lat)||"",h=(null==c?void 0:c.lng)||"";return fetch(Ye(n,{domain:t,searchType:"global",keyword:o.trim().length>ue[i]?o.trim():"",city:l===f?"":l,lat:d,lng:h},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:ge.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:ge.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:ie,locale:K,careApiDomain:v}),Oe=a((()=>{var e;return{id:f,name:_("booking.searchBar.currentLocation"),slug:null===(e=C[K])||void 0===e?void 0:e.CURRENT}}),[_,K]),je=a((()=>g(Le,400)),[Le]),Ie=a((()=>g(xe,400)),[xe]);n((()=>{""!==E&&E!==te.searchKeywords&&ie({type:ge.UpdateInitialSearchValue,payload:E})}),[E]),n((()=>{S&&(null==de?void 0:de.id)===f&&"unset"===le&&ee()}),[S,de,le]),n((()=>{y||le===J||("granted"===J&&X?ie({type:ge.GrantGeoLocationPermission,payload:X}):"denied"===J&&ie({type:ge.DenyGeoLocationPermission}))}),[le,J,X,y]),n((()=>{oe&&(H?H(oe):window.location.href=`${L}${oe}`)}),[oe]);const Me=o((function(){ie({type:ge.SelectCurrentLocation,payload:Oe})}),[_,ie]);n((()=>{var e;"denied"===le||me||ie({type:ge.SelectLocation,payload:{name:_("booking.searchBar.allLocations"),id:m,slug:null===(e=C[K])||void 0===e?void 0:e.ALL}}),$&&$(le,te.geoLocationCoordinates),l&&"granted"===le&&de&&ie({type:ge.FocusInputSearch}),Ee({coordinates:te.geoLocationCoordinates})}),[le]),n((()=>{de&&fe&&xe(te.searchKeywords,te)}),[de,fe]),n((()=>{N!==we&&ie({type:ge.SetInputSearchPlaceholder,payload:N})}),[N,we]),n((()=>{be?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[be]);const Re=o((function(e){"ms-MY"===K&&W(!0),ie({type:ge.SelectLocation,payload:e}),"ms-MY"!==K&&Fe(),D&&D(e)}),[_,ie]);function Te(){"ms-MY"===K&&W(!0),l&&"granted"!==te.geoLocationPermission?ee():(Me(),"ms-MY"!==K&&Fe())}function Ae(){var e;G.current&&(null===(e=G.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Fe(){var e;G.current&&(null===(e=G.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Ne(){ie({type:ge.CloseMobileModal})}function Pe(){return"location"!==ae?null:t.createElement(Z,{isLoading:se,cities:re,onLocationClick:Re,onCurrentLocationClick:Te,isLocationLoading:se,geoLocationPermission:le,selectedLocation:de,isOptionAllLocation:P})}function Be(){return"search"!==ae?null:te.autoCompleteDisabled?l?t.createElement(Se,{onClick:()=>{z({cityId:te.selectedLocation.id,keyword:ce}),Ne()}}):null:t.createElement(Qe,{data:ve,state:te,dispatch:ie,isMobile:!1,keyword:ce,isLoading:ye,hideResults:B,isNavResultItem:V})}function Ve(){return t.createElement(ke,{isMobile:l,state:te,dispatch:ie,debouncedFetchCitiesByKeyword:je,debouncedFetchSearchResults:Ie,focusLocationInput:Ae,focusSearchInput:Fe,renderLocationResults:Pe,renderSearchResults:Be,trackingAttributes:k,locationTrackingAttributes:j,onSearch:z,initalSearchValue:E})}return n((()=>{if(window.visualViewport){const e=e=>{const t=e.target;Y(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[Y]),n((()=>{if(de&&q&&"ms-MY"===K){const e=`/${de.slug}/hospital`;ie({type:ge.NavigateTo,payload:e}),W(!1)}}),[q,K,de]),l?t.createElement(t.Fragment,null,t.createElement(F,null),t.createElement(T,{ref:U}),t.createElement(M,{id:"booking-search-bar",ref:G,"data-is-modal":l&&be,style:{"--mobile-care-searchbar-height":be&&Q?`${Q}px`:"100%"}},be?t.createElement(t.Fragment,null,t.createElement(R,null,t.createElement(he,{headingText:_("booking.searchBar.searchButton"),onLeftClick:Ne}),Ve()),Pe(),Be()):t.createElement(ne,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){U.current&&U.current.focus(),ie({type:ge.OpenMobileModal}),yield Promise.resolve(),G.current&&(null===(t=G.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ae,value:ce,trackingAttributes:k,inputSearchPlaceholder:N}))):t.createElement(I,{id:"booking-search-bar",ref:G},Ve())};var We;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(We||(We={}));var Je=Object.freeze({__proto__:null,get RedirectType(){return We}});export{qe as B,Je as t};