@hhgtech/hhg-components 1.27.110 → 1.27.111

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 (265) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +4 -1
  4. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -1
  5. package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +2 -1
  6. package/build/care.js +1 -1
  7. package/build/components.js +1 -1
  8. package/build/constants.js +1 -1
  9. package/build/{core-05de83ba.js → core-cf08ddba.js} +1 -1
  10. package/build/ecom.js +1 -1
  11. package/build/esm/babyGrowth.js +5 -5
  12. package/build/esm/cache.js +1 -1
  13. package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +4 -1
  14. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -1
  15. package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +2 -1
  16. package/build/esm/care.js +1 -1
  17. package/build/esm/components.js +1 -1
  18. package/build/esm/constants.js +1 -1
  19. package/build/esm/{core-94b5c669.js → core-d5723cfb.js} +1 -1
  20. package/build/esm/ecom.js +1 -1
  21. package/build/esm/{fixedBottomAdBlock-ec6a8586.js → fixedBottomAdBlock-d6fb6721.js} +1 -1
  22. package/build/esm/footer.js +1 -1
  23. package/build/esm/gAssets.js +1 -1
  24. package/build/esm/{getDynamicHealthTool-3069d71b.js → getDynamicHealthTool-29f9213b.js} +1 -1
  25. package/build/esm/{getSocialList-34f1ea65.js → getSocialList-25ba1828.js} +1 -1
  26. package/build/esm/hooks.js +1 -1
  27. package/build/esm/i18n.js +1 -1
  28. package/build/esm/i18nV2.js +1 -1
  29. package/build/esm/{index-70adebcc.js → index-0243a82f.js} +1 -1
  30. package/build/esm/{index-13d59d27.js → index-0e498cef.js} +1 -1
  31. package/build/esm/{index-d95ba556.js → index-119f7391.js} +1 -1
  32. package/build/esm/{index-c6794c9f.js → index-2c2ab0e9.js} +1 -1
  33. package/build/esm/{index-c233aeab.js → index-2f93c125.js} +1 -1
  34. package/build/esm/{index-0e4b6289.js → index-3cb58b69.js} +1 -1
  35. package/build/esm/{index-50bdefe0.js → index-3de4e500.js} +1 -1
  36. package/build/esm/index-425660a4.js +1 -0
  37. package/build/esm/{index-e953b194.js → index-48be4929.js} +1 -1
  38. package/build/esm/{index-b1b96b29.js → index-5cb8c0d8.js} +1 -1
  39. package/build/esm/{index-f45c6b8b.js → index-7ae73b73.js} +1 -1
  40. package/build/esm/{index-c5a6856c.js → index-7c08eeef.js} +1 -1
  41. package/build/esm/{index-5f55fabe.js → index-8f77e3ae.js} +2 -2
  42. package/build/esm/{index-101e1b7e.js → index-901e79c9.js} +1 -1
  43. package/build/esm/{index-22b4149a.js → index-bc78096c.js} +1 -1
  44. package/build/esm/index-bcb2f9a4.js +1 -0
  45. package/build/esm/{index-321fb75f.js → index-cdf8cd15.js} +1 -1
  46. package/build/esm/{index-f5295598.js → index-d1e0f7da.js} +1 -1
  47. package/build/esm/{index-8f7afa73.js → index-d5f79d3b.js} +1 -1
  48. package/build/esm/index-e6e6e936.js +1 -0
  49. package/build/esm/{index-adab0299.js → index-e8ef71b5.js} +1 -1
  50. package/build/esm/index.js +1 -1
  51. package/build/esm/{index.styled-1857a800.js → index.styled-7e34321a.js} +2 -2
  52. package/build/esm/{index.styled-6fa521f4.js → index.styled-96bddf4c.js} +4 -4
  53. package/build/esm/{index.styled-9fb5b548.js → index.styled-a4fcd334.js} +1 -1
  54. package/build/esm/{index.styles-5ed13a5a.js → index.styles-7c303c91.js} +1 -1
  55. package/build/esm/lead.js +1 -1
  56. package/build/esm/mantine.js +1 -1
  57. package/build/esm/misc.js +1 -1
  58. package/build/esm/navigation.js +1 -1
  59. package/build/esm/{normalizeLink-318deaa5.js → normalizeLink-89628601.js} +1 -1
  60. package/build/esm/onboarding.js +1 -1
  61. package/build/esm/onboardingV2.js +1 -1
  62. package/build/esm/pwg.js +3 -3
  63. package/build/esm/together.js +1 -1
  64. package/build/esm/{types-a9019b30.js → types-24eea7b5.js} +1 -1
  65. package/build/esm/{types-76bd99e3.js → types-768250f5.js} +13 -13
  66. package/build/esm/types.js +1 -1
  67. package/build/esm/{useCategory-f5642f45.js → useCategory-6ce39bff.js} +1 -1
  68. package/build/esm/useHealthToolCache-e9192e5e.js +1 -0
  69. package/build/esm/{useRafState-726cf620.js → useRafState-974935f5.js} +1 -1
  70. package/build/esm/{useTranslations-0ec9b563.js → useTranslations-2430a2a0.js} +1 -1
  71. package/build/esm/{utils-e6701daa.js → utils-12e2c810.js} +1 -1
  72. package/build/esm/vaccination.js +12 -12
  73. package/build/{fixedBottomAdBlock-0a1370cf.js → fixedBottomAdBlock-6d47251b.js} +1 -1
  74. package/build/footer.js +1 -1
  75. package/build/gAssets.js +1 -1
  76. package/build/{getDynamicHealthTool-bdcdcd9e.js → getDynamicHealthTool-4b545469.js} +1 -1
  77. package/build/{getSocialList-9bb0b6ef.js → getSocialList-8f83dc95.js} +1 -1
  78. package/build/hooks.js +1 -1
  79. package/build/i18n.js +1 -1
  80. package/build/i18nV2.js +1 -1
  81. package/build/{index-e64858e1.js → index-0b75ad2a.js} +1 -1
  82. package/build/{index-2b277f12.js → index-1740c5b8.js} +1 -1
  83. package/build/{index-8efc8a6b.js → index-187e0f1f.js} +1 -1
  84. package/build/index-203f0a9a.js +1 -0
  85. package/build/{index-e5f228ba.js → index-2a0f61e2.js} +1 -1
  86. package/build/{index-5034bb85.js → index-2d3c34aa.js} +1 -1
  87. package/build/{index-ef5d4dfc.js → index-410406ae.js} +1 -1
  88. package/build/index-474f4921.js +1 -0
  89. package/build/{index-435c8e3c.js → index-5014f061.js} +1 -1
  90. package/build/{index-a1f3ec1d.js → index-55035468.js} +1 -1
  91. package/build/{index-8c1791d2.js → index-5c07473f.js} +1 -1
  92. package/build/{index-5a1a8f8a.js → index-615024b7.js} +2 -2
  93. package/build/{index-9ccf3f2c.js → index-7c01f515.js} +1 -1
  94. package/build/{index-deae2eae.js → index-8212d168.js} +1 -1
  95. package/build/{index-6c629419.js → index-c3a8adc8.js} +1 -1
  96. package/build/{index-9f2b264a.js → index-ca4a57b8.js} +1 -1
  97. package/build/{index-9edc8d0a.js → index-dde6cb12.js} +1 -1
  98. package/build/{index-1f330c3a.js → index-ec7f28e5.js} +1 -1
  99. package/build/{index-62a1113c.js → index-f168badd.js} +1 -1
  100. package/build/{index-03a3de33.js → index-f2c0dc10.js} +1 -1
  101. package/build/{index-a0bbc5bf.js → index-f8421eda.js} +1 -1
  102. package/build/index.js +1 -1
  103. package/build/{index.styled-c27b4805.js → index.styled-25fca885.js} +3 -3
  104. package/build/{index.styled-a75ab4a5.js → index.styled-a5b7f642.js} +1 -1
  105. package/build/{index.styled-9c4a41fe.js → index.styled-c6850e52.js} +6 -6
  106. package/build/{index.styles-b58d59f0.js → index.styles-64093d61.js} +1 -1
  107. package/build/lead.js +1 -1
  108. package/build/mantine.js +1 -1
  109. package/build/misc.js +1 -1
  110. package/build/navigation.js +1 -1
  111. package/build/{normalizeLink-7673815a.js → normalizeLink-9a714adb.js} +1 -1
  112. package/build/onboarding.js +1 -1
  113. package/build/onboardingV2.js +1 -1
  114. package/build/pwg.js +2 -2
  115. package/build/together.js +1 -1
  116. package/build/{types-1925d7cc.js → types-1b10750d.js} +1 -1
  117. package/build/{types-313d9884.js → types-40cab689.js} +9 -9
  118. package/build/types.js +1 -1
  119. package/build/{useCategory-5617cda2.js → useCategory-fbc07a2d.js} +1 -1
  120. package/build/{useHealthToolCache-a69f3a41.js → useHealthToolCache-8b40316a.js} +1 -1
  121. package/build/{useRafState-9a0ec6b0.js → useRafState-779e60e7.js} +1 -1
  122. package/build/{useTranslations-2e985cd1.js → useTranslations-424bb567.js} +1 -1
  123. package/build/{utils-6962eacc.js → utils-028b83bf.js} +1 -1
  124. package/build/vaccination.js +1 -1
  125. package/package.json +1 -1
  126. package/build/esm/index-4d1d62d2.js +0 -1
  127. package/build/esm/index-4eab9dc2.js +0 -1
  128. package/build/esm/index-98ff7cb4.js +0 -1
  129. package/build/esm/useHealthToolCache-a09ec5c2.js +0 -1
  130. package/build/index-05d1512d.js +0 -1
  131. package/build/index-084e5517.js +0 -1
  132. /package/build/{BMI_BOYS.percentile.monthly-c4907343.js → BMI_BOYS.percentile.monthly-2169926f.js} +0 -0
  133. /package/build/{BMI_BOYS.percentile.weekly-ce6494f6.js → BMI_BOYS.percentile.weekly-6d5061c6.js} +0 -0
  134. /package/build/{BMI_BOYS.percentile.yearly-6b9b09e9.js → BMI_BOYS.percentile.yearly-5f739100.js} +0 -0
  135. /package/build/{BMI_BOYS.zscore.monthly-63c265d6.js → BMI_BOYS.zscore.monthly-75e11545.js} +0 -0
  136. /package/build/{BMI_BOYS.zscore.weekly-0e895932.js → BMI_BOYS.zscore.weekly-b3556b6a.js} +0 -0
  137. /package/build/{BMI_BOYS.zscore.yearly-e9b5a595.js → BMI_BOYS.zscore.yearly-4ebe038f.js} +0 -0
  138. /package/build/{BMI_GIRLS.percentile.monthly-1ddd5655.js → BMI_GIRLS.percentile.monthly-05e28f78.js} +0 -0
  139. /package/build/{BMI_GIRLS.percentile.weekly-873e9eb8.js → BMI_GIRLS.percentile.weekly-4054b056.js} +0 -0
  140. /package/build/{BMI_GIRLS.percentile.yearly-ba7d32c7.js → BMI_GIRLS.percentile.yearly-6d9f3e1c.js} +0 -0
  141. /package/build/{BMI_GIRLS.zscore.monthly-ddd2ead0.js → BMI_GIRLS.zscore.monthly-344ed489.js} +0 -0
  142. /package/build/{BMI_GIRLS.zscore.weekly-16fe7b6b.js → BMI_GIRLS.zscore.weekly-7577fdd6.js} +0 -0
  143. /package/build/{BMI_GIRLS.zscore.yearly-c6cb09ad.js → BMI_GIRLS.zscore.yearly-0026b96e.js} +0 -0
  144. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7ff1beed.js → HEAD CIRCUM_BOYS.percentile.monthly-4770cf38.js} +0 -0
  145. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-30527a29.js → HEAD CIRCUM_BOYS.percentile.weekly-51ffefe5.js} +0 -0
  146. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-9fb95c5b.js → HEAD CIRCUM_BOYS.percentile.yearly-8d887c12.js} +0 -0
  147. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b926b71a.js → HEAD CIRCUM_BOYS.zscore.monthly-f4380098.js} +0 -0
  148. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-33fad085.js → HEAD CIRCUM_BOYS.zscore.weekly-225f6e87.js} +0 -0
  149. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8a28017d.js → HEAD CIRCUM_BOYS.zscore.yearly-1b185e52.js} +0 -0
  150. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bc057ed1.js → HEAD CIRCUM_GIRLS.percentile.monthly-d33665c2.js} +0 -0
  151. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-093017d5.js → HEAD CIRCUM_GIRLS.percentile.weekly-e03ab684.js} +0 -0
  152. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-935e6ab1.js → HEAD CIRCUM_GIRLS.percentile.yearly-dccddafd.js} +0 -0
  153. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-9972d026.js → HEAD CIRCUM_GIRLS.zscore.monthly-f3770a5a.js} +0 -0
  154. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ac174f18.js → HEAD CIRCUM_GIRLS.zscore.weekly-f380c4a3.js} +0 -0
  155. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-2af14e6c.js → HEAD CIRCUM_GIRLS.zscore.yearly-213f9e26.js} +0 -0
  156. /package/build/{HEIGHT_BOYS.percentile.monthly-cada7669.js → HEIGHT_BOYS.percentile.monthly-159b23b3.js} +0 -0
  157. /package/build/{HEIGHT_BOYS.percentile.weekly-ffee3c4b.js → HEIGHT_BOYS.percentile.weekly-dea84dd9.js} +0 -0
  158. /package/build/{HEIGHT_BOYS.percentile.yearly-7441d704.js → HEIGHT_BOYS.percentile.yearly-43132dd4.js} +0 -0
  159. /package/build/{HEIGHT_BOYS.zscore.monthly-33d76676.js → HEIGHT_BOYS.zscore.monthly-6386157d.js} +0 -0
  160. /package/build/{HEIGHT_BOYS.zscore.weekly-9409d237.js → HEIGHT_BOYS.zscore.weekly-8c95e60e.js} +0 -0
  161. /package/build/{HEIGHT_BOYS.zscore.yearly-da5bd2ce.js → HEIGHT_BOYS.zscore.yearly-a20e1e60.js} +0 -0
  162. /package/build/{HEIGHT_GIRLS.percentile.monthly-b9dc1edd.js → HEIGHT_GIRLS.percentile.monthly-c35ca151.js} +0 -0
  163. /package/build/{HEIGHT_GIRLS.percentile.weekly-3c8ef028.js → HEIGHT_GIRLS.percentile.weekly-55efadc3.js} +0 -0
  164. /package/build/{HEIGHT_GIRLS.percentile.yearly-7c1bde31.js → HEIGHT_GIRLS.percentile.yearly-67a99ecb.js} +0 -0
  165. /package/build/{HEIGHT_GIRLS.zscore.monthly-3f8362e1.js → HEIGHT_GIRLS.zscore.monthly-60034a31.js} +0 -0
  166. /package/build/{HEIGHT_GIRLS.zscore.weekly-818fcfcd.js → HEIGHT_GIRLS.zscore.weekly-637e4002.js} +0 -0
  167. /package/build/{HEIGHT_GIRLS.zscore.yearly-85032f67.js → HEIGHT_GIRLS.zscore.yearly-dff229f7.js} +0 -0
  168. /package/build/{Onboarding-6d3b3738.js → Onboarding-b6d46718.js} +0 -0
  169. /package/build/{Visible-e3b31e61.js → Visible-c0d87c4f.js} +0 -0
  170. /package/build/{WEIGHT_BOYS.percentile.monthly-f53cfe21.js → WEIGHT_BOYS.percentile.monthly-5b2fbdb5.js} +0 -0
  171. /package/build/{WEIGHT_BOYS.percentile.weekly-dc01ee97.js → WEIGHT_BOYS.percentile.weekly-31324827.js} +0 -0
  172. /package/build/{WEIGHT_BOYS.percentile.yearly-4f5e4c3d.js → WEIGHT_BOYS.percentile.yearly-99b220b3.js} +0 -0
  173. /package/build/{WEIGHT_BOYS.zscore.monthly-5b348dc0.js → WEIGHT_BOYS.zscore.monthly-37df73d8.js} +0 -0
  174. /package/build/{WEIGHT_BOYS.zscore.weekly-cc57ea02.js → WEIGHT_BOYS.zscore.weekly-97539687.js} +0 -0
  175. /package/build/{WEIGHT_BOYS.zscore.yearly-c0dc40e8.js → WEIGHT_BOYS.zscore.yearly-018cd3f2.js} +0 -0
  176. /package/build/{WEIGHT_GIRLS.percentile.monthly-b2f2c221.js → WEIGHT_GIRLS.percentile.monthly-94194d40.js} +0 -0
  177. /package/build/{WEIGHT_GIRLS.percentile.weekly-bf95ab76.js → WEIGHT_GIRLS.percentile.weekly-4092c807.js} +0 -0
  178. /package/build/{WEIGHT_GIRLS.percentile.yearly-50281f06.js → WEIGHT_GIRLS.percentile.yearly-80188db3.js} +0 -0
  179. /package/build/{WEIGHT_GIRLS.zscore.monthly-f9a32fbf.js → WEIGHT_GIRLS.zscore.monthly-aa93af02.js} +0 -0
  180. /package/build/{WEIGHT_GIRLS.zscore.weekly-2d57cc63.js → WEIGHT_GIRLS.zscore.weekly-d5f6108b.js} +0 -0
  181. /package/build/{WEIGHT_GIRLS.zscore.yearly-d9c3a4ad.js → WEIGHT_GIRLS.zscore.yearly-dadd5a9c.js} +0 -0
  182. /package/build/{constants-093ba282.js → constants-549daccd.js} +0 -0
  183. /package/build/{cookieHelper-535d83ab.js → cookieHelper-5e232b89.js} +0 -0
  184. /package/build/{dataTransform-12734ea2.js → dataTransform-e616f86a.js} +0 -0
  185. /package/build/esm/{BMI_BOYS.percentile.monthly-66bd9ac3.js → BMI_BOYS.percentile.monthly-a21c2804.js} +0 -0
  186. /package/build/esm/{BMI_BOYS.percentile.weekly-21f24830.js → BMI_BOYS.percentile.weekly-660eb5a0.js} +0 -0
  187. /package/build/esm/{BMI_BOYS.percentile.yearly-c51f2d36.js → BMI_BOYS.percentile.yearly-4472b493.js} +0 -0
  188. /package/build/esm/{BMI_BOYS.zscore.monthly-21d088c3.js → BMI_BOYS.zscore.monthly-ef6d5124.js} +0 -0
  189. /package/build/esm/{BMI_BOYS.zscore.weekly-f9475f53.js → BMI_BOYS.zscore.weekly-2850e334.js} +0 -0
  190. /package/build/esm/{BMI_BOYS.zscore.yearly-7461094e.js → BMI_BOYS.zscore.yearly-7675f189.js} +0 -0
  191. /package/build/esm/{BMI_GIRLS.percentile.monthly-93b84557.js → BMI_GIRLS.percentile.monthly-ccb1ae23.js} +0 -0
  192. /package/build/esm/{BMI_GIRLS.percentile.weekly-ac1d1566.js → BMI_GIRLS.percentile.weekly-01af9f62.js} +0 -0
  193. /package/build/esm/{BMI_GIRLS.percentile.yearly-0d98a71f.js → BMI_GIRLS.percentile.yearly-3b4ff210.js} +0 -0
  194. /package/build/esm/{BMI_GIRLS.zscore.monthly-23eeabe4.js → BMI_GIRLS.zscore.monthly-78346cd2.js} +0 -0
  195. /package/build/esm/{BMI_GIRLS.zscore.weekly-ec519ed7.js → BMI_GIRLS.zscore.weekly-1354bad8.js} +0 -0
  196. /package/build/esm/{BMI_GIRLS.zscore.yearly-22a33a79.js → BMI_GIRLS.zscore.yearly-123cd996.js} +0 -0
  197. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-dacab5a0.js → HEAD CIRCUM_BOYS.percentile.monthly-b7a46cec.js} +0 -0
  198. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-e9d3d435.js → HEAD CIRCUM_BOYS.percentile.weekly-daadf38b.js} +0 -0
  199. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e015c343.js → HEAD CIRCUM_BOYS.percentile.yearly-c64d87f6.js} +0 -0
  200. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-55be19fb.js → HEAD CIRCUM_BOYS.zscore.monthly-17a992e7.js} +0 -0
  201. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6cb431a7.js → HEAD CIRCUM_BOYS.zscore.weekly-a858df78.js} +0 -0
  202. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-4e855185.js → HEAD CIRCUM_BOYS.zscore.yearly-18fce9ea.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3da5a8d7.js → HEAD CIRCUM_GIRLS.percentile.monthly-7a8b8a72.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e7ea78f7.js → HEAD CIRCUM_GIRLS.percentile.weekly-4efe8114.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-efac0290.js → HEAD CIRCUM_GIRLS.percentile.yearly-bd019865.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-ebcc6b11.js → HEAD CIRCUM_GIRLS.zscore.monthly-5f663a70.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-ac50b75d.js → HEAD CIRCUM_GIRLS.zscore.weekly-39129ae0.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-206ad5f5.js → HEAD CIRCUM_GIRLS.zscore.yearly-b7fee04a.js} +0 -0
  209. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-dfb586b9.js → HEIGHT_BOYS.percentile.monthly-0f86faa9.js} +0 -0
  210. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-ce4e2abd.js → HEIGHT_BOYS.percentile.weekly-799ce0a2.js} +0 -0
  211. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-53e4b580.js → HEIGHT_BOYS.percentile.yearly-3f3c2f4d.js} +0 -0
  212. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-31a1b45f.js → HEIGHT_BOYS.zscore.monthly-40b79033.js} +0 -0
  213. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-ab6b18ac.js → HEIGHT_BOYS.zscore.weekly-335e16b8.js} +0 -0
  214. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3be0d3f0.js → HEIGHT_BOYS.zscore.yearly-1052e7c2.js} +0 -0
  215. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-b807c1c3.js → HEIGHT_GIRLS.percentile.monthly-5c1c2fda.js} +0 -0
  216. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-2daf6703.js → HEIGHT_GIRLS.percentile.weekly-185ecd08.js} +0 -0
  217. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ea2ee609.js → HEIGHT_GIRLS.percentile.yearly-071f0347.js} +0 -0
  218. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-cb4161ff.js → HEIGHT_GIRLS.zscore.monthly-7d81ef69.js} +0 -0
  219. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-9814c095.js → HEIGHT_GIRLS.zscore.weekly-4bcedfad.js} +0 -0
  220. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c75e79e3.js → HEIGHT_GIRLS.zscore.yearly-3b576a0d.js} +0 -0
  221. /package/build/esm/{Onboarding-fd9a31b0.js → Onboarding-333aa9dc.js} +0 -0
  222. /package/build/esm/{Visible-e67b2f8e.js → Visible-8afbad1e.js} +0 -0
  223. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-d32ae5b4.js → WEIGHT_BOYS.percentile.monthly-8674ec9b.js} +0 -0
  224. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-95230f2d.js → WEIGHT_BOYS.percentile.weekly-6c8ebad7.js} +0 -0
  225. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-1c4b35ee.js → WEIGHT_BOYS.percentile.yearly-502a9bab.js} +0 -0
  226. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-10350586.js → WEIGHT_BOYS.zscore.monthly-4adc8c4e.js} +0 -0
  227. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-be1fee38.js → WEIGHT_BOYS.zscore.weekly-c253912c.js} +0 -0
  228. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-48c77d48.js → WEIGHT_BOYS.zscore.yearly-99f50300.js} +0 -0
  229. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-00b75a0d.js → WEIGHT_GIRLS.percentile.monthly-8c64fab0.js} +0 -0
  230. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9b993b9b.js → WEIGHT_GIRLS.percentile.weekly-44176b94.js} +0 -0
  231. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-00e2520b.js → WEIGHT_GIRLS.percentile.yearly-c38faf3c.js} +0 -0
  232. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-434970a2.js → WEIGHT_GIRLS.zscore.monthly-9ce628d3.js} +0 -0
  233. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-d29a1aff.js → WEIGHT_GIRLS.zscore.weekly-77b92300.js} +0 -0
  234. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-49a31673.js → WEIGHT_GIRLS.zscore.yearly-e12994a8.js} +0 -0
  235. /package/build/esm/{constants-475ee4ec.js → constants-9b0dfbff.js} +0 -0
  236. /package/build/esm/{cookieHelper-a43609a0.js → cookieHelper-198da3c2.js} +0 -0
  237. /package/build/esm/{dataTransform-9769b03e.js → dataTransform-c86ebc50.js} +0 -0
  238. /package/build/esm/{index-fab1802f.js → index-436b7d17.js} +0 -0
  239. /package/build/esm/{isProduction-52b4c079.js → isProduction-f84e5e5c.js} +0 -0
  240. /package/build/esm/{localizeNumberFormat-d2f5e64d.js → localizeNumberFormat-f760793d.js} +0 -0
  241. /package/build/esm/{number-b129fdfa.js → number-ba8724fc.js} +0 -0
  242. /package/build/esm/{paths-5140a958.js → paths-fa0a821f.js} +0 -0
  243. /package/build/esm/{screenSizeContext-4cc8648b.js → screenSizeContext-26c77dc1.js} +0 -0
  244. /package/build/esm/{theme-f546b135.js → theme-cd27574e.js} +0 -0
  245. /package/build/esm/{translationsContext-1f3d1c41.js → translationsContext-bf4a1818.js} +0 -0
  246. /package/build/esm/{tslib.es6-bda723ae.js → tslib.es6-830e842d.js} +0 -0
  247. /package/build/esm/{types-ee1c1d40.js → types-5fdf9e45.js} +0 -0
  248. /package/build/esm/{useIsInit-9b377233.js → useIsInit-c1a1ca52.js} +0 -0
  249. /package/build/esm/{useOutsideClick-44ff7f31.js → useOutsideClick-7a4c1573.js} +0 -0
  250. /package/build/esm/{useScrollbarSize-b78ecbc9.js → useScrollbarSize-cbdd3859.js} +0 -0
  251. /package/build/esm/{useUniqueId-dc4bcd5d.js → useUniqueId-159be8a3.js} +0 -0
  252. /package/build/{index-e12b6dac.js → index-ba487404.js} +0 -0
  253. /package/build/{isProduction-86d557cf.js → isProduction-d5eaf028.js} +0 -0
  254. /package/build/{localizeNumberFormat-e94e9155.js → localizeNumberFormat-20fdd30c.js} +0 -0
  255. /package/build/{number-1b6c4a3a.js → number-060a39e3.js} +0 -0
  256. /package/build/{paths-c7e93945.js → paths-28b1bd97.js} +0 -0
  257. /package/build/{screenSizeContext-6a8709d5.js → screenSizeContext-7720eb06.js} +0 -0
  258. /package/build/{theme-9c175cd4.js → theme-177c35d7.js} +0 -0
  259. /package/build/{translationsContext-a6f12387.js → translationsContext-ee716225.js} +0 -0
  260. /package/build/{tslib.es6-055275ec.js → tslib.es6-fb3ec5b3.js} +0 -0
  261. /package/build/{types-f476fe94.js → types-bee2c39e.js} +0 -0
  262. /package/build/{useIsInit-31944f24.js → useIsInit-5e49ad37.js} +0 -0
  263. /package/build/{useOutsideClick-3c505b5d.js → useOutsideClick-6a78771c.js} +0 -0
  264. /package/build/{useScrollbarSize-751d9297.js → useScrollbarSize-dedf0512.js} +0 -0
  265. /package/build/{useUniqueId-fadded83.js → useUniqueId-6620a12c.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{useState as a,useCallback as o,useMemo as n,useEffect as s,useRef as r,useReducer as l}from"react";import{u as c}from"./useTranslations-0ec9b563.js";import d from"lodash/debounce";import{I as p,L as u,a as h}from"./constants-475ee4ec.js";import{I as g}from"./index-b1b96b29.js";import m,{createGlobalStyle as C}from"styled-components";import{T as b}from"./index-22b4149a.js";import{t as y}from"./theme-f546b135.js";import{M as f}from"./screenSizeContext-4cc8648b.js";import v from"react-loading-skeleton";import x from"lodash/shuffle";import{a as w}from"./useOutsideClick-44ff7f31.js";import{P as E}from"./paths-5140a958.js";import{Skeleton as S,Input as L,Divider as k,Tabs as O,Flex as j,Button as I}from"@mantine/core";import{e as F,d as $}from"./index-8f7afa73.js";import{g as M,s as R,d as T}from"./cookieHelper-a43609a0.js";import{C as P,I as A}from"./index-0e4b6289.js";import N from"string-format";const B=e=>t.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));function V(){const[e,t]=a((()=>{if("undefined"==typeof window)return"unset";if(M(F))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,s]=a((()=>{if("undefined"==typeof window)return null;const e=M(F);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};R(F,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{T(F),t("denied")}))}),[]);return n((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:r})),[e,i])}const D=m.div``,z=m.div`
1
+ import{a as e}from"./tslib.es6-830e842d.js";import*as t from"react";import i,{useState as a,useCallback as o,useMemo as n,useEffect as s,useRef as l,useReducer as r}from"react";import{u as c}from"./useTranslations-2430a2a0.js";import d from"lodash/debounce";import{I as p,L as u,a as h}from"./constants-9b0dfbff.js";import{I as g}from"./index-5cb8c0d8.js";import m,{createGlobalStyle as C}from"styled-components";import{T as b}from"./index-bc78096c.js";import{t as y}from"./theme-cd27574e.js";import{M as f}from"./screenSizeContext-26c77dc1.js";import v from"react-loading-skeleton";import x from"lodash/shuffle";import{a as w}from"./useOutsideClick-7a4c1573.js";import{P as E}from"./paths-fa0a821f.js";import{Skeleton as S,Input as L,Divider as k,Tabs as O,Flex as j,Button as I}from"@mantine/core";import{e as F,d as $}from"./index-d5f79d3b.js";import{g as M,s as R,d as T}from"./cookieHelper-198da3c2.js";import{C as P,I as A}from"./index-3cb58b69.js";import N from"string-format";const B=e=>t.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));function V(){const[e,t]=a((()=>{if("undefined"==typeof window)return"unset";if(M(F))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,s]=a((()=>{if("undefined"==typeof window)return null;const e=M(F);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};R(F,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{T(F),t("denied")}))}),[]);return n((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const D=m.div``,K=m.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -11,7 +11,7 @@ import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{us
11
11
  background-color: white;
12
12
  z-index: var(--searchbar-z-index);
13
13
  }
14
- `,K=m.section``,_=m.input`
14
+ `,z=m.section``,_=m.input`
15
15
  position: fixed;
16
16
  left: -100%;
17
17
  top: -100%;
@@ -124,13 +124,13 @@ import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{us
124
124
  &:first-child {
125
125
  padding-top: 18px;
126
126
  }
127
- `,ie=({cities:e,isLoading:t,onLocationClick:a,selectedLocation:o})=>{const{t:n,locale:s}=c();return i.createElement(q,{"data-testid":"location-search-results"},i.createElement(J,null,t?i.createElement(te,{count:5}):!e||e.length<1?i.createElement(i.Fragment,null,i.createElement(ee,{"data-is-denied":"true"},i.createElement(b,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):i.createElement(i.Fragment,null,i.createElement(ee,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;a&&a({name:n("booking.searchBar.allLocations"),id:p,slug:null===(e=u[s])||void 0===e?void 0:e.ALL})}},i.createElement(X,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>i.createElement(ee,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),a&&a(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==o?void 0:o.id)===e.id},i.createElement(X,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},e.name)))))))},ae="TYPE_CHARACTER",oe="REMOVE_CHARACTER",ne="REMOVE_ALL",se="REMOVE_LAST_VISIBLE_NODE",re="PAUSE_FOR",le="CHANGE_DELETE_SPEED",ce="CHANGE_DELAY",de="PASTE_STRING",pe=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,ue="TEXT_NODE";class he{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(re,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:i}=this.options||{},a="function"==typeof i?i(e):e.split("");this.typeCharacters(a,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(de,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(ne,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(le,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(ce,{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(oe);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(ae,{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(oe)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:a}=this.options;return a?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,a)=>{const o={eventName:e,eventArgs:t||{}};return this.state[a]=i?[o,...this.state[a]]:[...this.state[a],o],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const i=[...this.state.eventQueue],a=i.shift();let o=0;if(o=a.eventName===se||a.eventName===oe?"natural"===this.options.deleteSpeed?pe(40,80):this.options.deleteSpeed:"natural"===this.options.delay?pe(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=a;switch(n){case de:case ae:{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:ue,character:e,node:i}];break}case oe:i.unshift({eventName:se,eventArgs:{removingCharacterNode:!0}});break;case re:{const{ms:e}=a.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case ne:{const{visibleNodes:e}=this.state,{speed:t}=s,a=[];t&&a.push({eventName:le,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)a.push({eventName:se,eventArgs:{removingCharacterNode:!1}});t&&a.push({eventName:le,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...a);break}case se: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 le:this.options.deleteSpeed=a.eventArgs.speed;break;case ce:this.options.delay=a.eventArgs.delay}this.options.loop&&(a.eventName===se||a.eventArgs&&a.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,a])),this.state.eventQueue=i,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(ne,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function ge({inputRef:e,wrapperRef:t,disabled:i}){const{t:a,locale:o}=c(),r=n((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==o&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),x(e).map((e=>a(e)))}),[a,o]);function l(e){const t=p();return t&&(t.placeholder=t.placeholder+e),null}function d(){const e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return e&&e.current?e.current:t&&t.current&&t.current.querySelector("input")||null}s((()=>{if(i)return;const e=p();e&&(e.placeholder="",new he({strings:r,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:l,onRemoveNode:d}))}),[e,t])}const me=m.div`
127
+ `,ie=({cities:e,isLoading:t,onLocationClick:a,selectedLocation:o})=>{const{t:n,locale:s}=c();return i.createElement(q,{"data-testid":"location-search-results"},i.createElement(J,null,t?i.createElement(te,{count:5}):!e||e.length<1?i.createElement(i.Fragment,null,i.createElement(ee,{"data-is-denied":"true"},i.createElement(b,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):i.createElement(i.Fragment,null,i.createElement(ee,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;a&&a({name:n("booking.searchBar.allLocations"),id:p,slug:null===(e=u[s])||void 0===e?void 0:e.ALL})}},i.createElement(X,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>i.createElement(ee,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),a&&a(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==o?void 0:o.id)===e.id},i.createElement(X,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},e.name)))))))},ae="TYPE_CHARACTER",oe="REMOVE_CHARACTER",ne="REMOVE_ALL",se="REMOVE_LAST_VISIBLE_NODE",le="PAUSE_FOR",re="CHANGE_DELETE_SPEED",ce="CHANGE_DELAY",de="PASTE_STRING",pe=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,ue="TEXT_NODE";class he{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(le,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:i}=this.options||{},a="function"==typeof i?i(e):e.split("");this.typeCharacters(a,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(de,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(ne,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(re,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(ce,{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(oe);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(ae,{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(oe)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:a}=this.options;return a?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,a)=>{const o={eventName:e,eventArgs:t||{}};return this.state[a]=i?[o,...this.state[a]]:[...this.state[a],o],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const i=[...this.state.eventQueue],a=i.shift();let o=0;if(o=a.eventName===se||a.eventName===oe?"natural"===this.options.deleteSpeed?pe(40,80):this.options.deleteSpeed:"natural"===this.options.delay?pe(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=a;switch(n){case de:case ae:{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:ue,character:e,node:i}];break}case oe:i.unshift({eventName:se,eventArgs:{removingCharacterNode:!0}});break;case le:{const{ms:e}=a.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case ne:{const{visibleNodes:e}=this.state,{speed:t}=s,a=[];t&&a.push({eventName:re,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)a.push({eventName:se,eventArgs:{removingCharacterNode:!1}});t&&a.push({eventName:re,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...a);break}case se: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 re:this.options.deleteSpeed=a.eventArgs.speed;break;case ce:this.options.delay=a.eventArgs.delay}this.options.loop&&(a.eventName===se||a.eventArgs&&a.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,a])),this.state.eventQueue=i,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(ne,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function ge({inputRef:e,wrapperRef:t,disabled:i}){const{t:a,locale:o}=c(),l=n((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==o&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),x(e).map((e=>a(e)))}),[a,o]);function r(e){const t=p();return t&&(t.placeholder=t.placeholder+e),null}function d(){const e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return e&&e.current?e.current:t&&t.current&&t.current.querySelector("input")||null}s((()=>{if(i)return;const e=p();e&&(e.placeholder="",new he({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:d}))}),[e,t])}const me=m.div`
128
128
  user-select: none;
129
129
  input {
130
130
  pointer-events: none;
131
131
  background-color: white;
132
132
  }
133
- `;function Ce({focused:e,value:t="",onClick:a,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:l}=c(),d=r(null);ge({wrapperRef:d,disabled:!!s});const p=n((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return i.createElement(me,Object.assign({onClick:()=>a&&a(),ref:d},p),i.createElement(H,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:i.createElement(U,{color:y.colors.gray400}),placeholder:l("booking.searchBar.searchInput.placeholder"),value:t,size:"md"}))}const be=m.header`
133
+ `;function Ce({focused:e,value:t="",onClick:a,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:r}=c(),d=l(null);ge({wrapperRef:d,disabled:!!s});const p=n((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return i.createElement(me,Object.assign({onClick:()=>a&&a(),ref:d},p),i.createElement(H,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:i.createElement(U,{color:y.colors.gray400}),placeholder:r("booking.searchBar.searchInput.placeholder"),value:t,size:"md"}))}const be=m.header`
134
134
  display: flex;
135
135
  height: 64px;
136
136
  align-items: center;
@@ -220,7 +220,7 @@ import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{us
220
220
  }
221
221
  `,Pe=m(b)`
222
222
  font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
223
- `,Ae=({onClick:e})=>{const{t:t}=c(),a=t("booking.searchBar.searchButton");return i.createElement(Te,{onClick:e,title:a},i.createElement(Re,null),i.createElement(Pe,{size:"s3",color:"white"},a))};function Ne({isMobile:e,state:t,dispatch:a,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:l,focusLocationInput:d,focusSearchInput:p,renderLocationResults:u,renderSearchResults:g,locationTrackingAttributes:m,trackingAttributes:C,onSearch:b,initalSearchValue:f}){const v=r(null),x=r(null),{focused:E,searchLocationKeywords:S,geoLocationPermission:L,selectedLocation:k,searchKeywords:O,inputSearchPlaceholder:j}=t,{t:I}=c();ge({wrapperRef:x,disabled:!!j}),w(v,(()=>{e||a({type:Le.ClickOutsideInputLocation})})),w(x,(()=>{e||a({type:Le.ClickOutsideInputSearch})}));const F=n((()=>"granted"===L&&(null==k?void 0:k.id)===h?y.colors.primaryBase:y.colors.gray400),[L,k]),$=o((function(e){a({type:Le.ChangeInputSearch,payload:e}),"function"!=typeof b&&(e.trim().length>Ee[t.locale]||f?l(e.trim(),t):(l.cancel(),a({type:Le.DisplayInitialSearchResults})))}),[a,t]),M=o((function(e){a({type:Le.ChangeInputLocation,payload:e}),e.trim().length>Ee[t.locale]?s(e.trim()):(s.cancel(),a({type:Le.DisplayInitialCities}))}),[s,a]);return i.createElement(je,null,i.createElement(Fe,{ref:v},i.createElement(H,{inputClassName:"location"===E?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:i.createElement(Y,{className:"location-pin-icon",color:F}),actionIcon:i.createElement(Me,{color:y.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){a({type:Le.ClearInputLocation}),s.cancel(),d()},value:S,onChange:M,onFocus:()=>a({type:Le.FocusInputLocation}),size:"md",trackingAttributes:m}),!e&&u()),i.createElement($e,{ref:x},i.createElement(H,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:i.createElement(Me,{color:y.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){a({type:Le.ClearInputSearch}),l.cancel(),l("",t),p()},value:O,onChange:$,onFocus:()=>a({type:Le.FocusInputSearch}),inputClassName:"search"===E?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:e=>{t.autoCompleteDisabled&&"Enter"===e.key&&b&&b({cityId:t.selectedLocation.id,keyword:O})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!e&&g()),t.autoCompleteDisabled&&!t.isMobile&&i.createElement(Ae,{onClick:()=>{b({cityId:t.selectedLocation.id,keyword:O})}}))}const Be=()=>i.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},i.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),Ve=()=>i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),De=()=>i.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},i.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),ze=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Ke=m.header`
223
+ `,Ae=({onClick:e})=>{const{t:t}=c(),a=t("booking.searchBar.searchButton");return i.createElement(Te,{onClick:e,title:a},i.createElement(Re,null),i.createElement(Pe,{size:"s3",color:"white"},a))};function Ne({isMobile:e,state:t,dispatch:a,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:r,focusLocationInput:d,focusSearchInput:p,renderLocationResults:u,renderSearchResults:g,locationTrackingAttributes:m,trackingAttributes:C,onSearch:b,initalSearchValue:f}){const v=l(null),x=l(null),{focused:E,searchLocationKeywords:S,geoLocationPermission:L,selectedLocation:k,searchKeywords:O,inputSearchPlaceholder:j}=t,{t:I}=c();ge({wrapperRef:x,disabled:!!j}),w(v,(()=>{e||a({type:Le.ClickOutsideInputLocation})})),w(x,(()=>{e||a({type:Le.ClickOutsideInputSearch})}));const F=n((()=>"granted"===L&&(null==k?void 0:k.id)===h?y.colors.primaryBase:y.colors.gray400),[L,k]),$=o((function(e){a({type:Le.ChangeInputSearch,payload:e}),"function"!=typeof b&&(e.trim().length>Ee[t.locale]||f?r(e.trim(),t):(r.cancel(),a({type:Le.DisplayInitialSearchResults})))}),[a,t]),M=o((function(e){a({type:Le.ChangeInputLocation,payload:e}),e.trim().length>Ee[t.locale]?s(e.trim()):(s.cancel(),a({type:Le.DisplayInitialCities}))}),[s,a]);return i.createElement(je,null,i.createElement(Fe,{ref:v},i.createElement(H,{inputClassName:"location"===E?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:i.createElement(Y,{className:"location-pin-icon",color:F}),actionIcon:i.createElement(Me,{color:y.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){a({type:Le.ClearInputLocation}),s.cancel(),d()},value:S,onChange:M,onFocus:()=>a({type:Le.FocusInputLocation}),size:"md",trackingAttributes:m}),!e&&u()),i.createElement($e,{ref:x},i.createElement(H,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:i.createElement(Me,{color:y.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){a({type:Le.ClearInputSearch}),r.cancel(),r("",t),p()},value:O,onChange:$,onFocus:()=>a({type:Le.FocusInputSearch}),inputClassName:"search"===E?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:e=>{t.autoCompleteDisabled&&"Enter"===e.key&&b&&b({cityId:t.selectedLocation.id,keyword:O})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!e&&g()),t.autoCompleteDisabled&&!t.isMobile&&i.createElement(Ae,{onClick:()=>{b({cityId:t.selectedLocation.id,keyword:O})}}))}const Be=()=>i.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},i.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),Ve=()=>i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),De=()=>i.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},i.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),Ke=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),ze=m.header`
224
224
  display: flex;
225
225
  justify-content: space-between;
226
226
  padding: 12px 24px;
@@ -324,7 +324,7 @@ import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{us
324
324
  `,et=m.div`
325
325
  display: grid;
326
326
  place-items: center;
327
- `,tt={doctors:({width:e,height:t})=>i.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{clipPath:"url(#clip0_14712_400114)"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),i.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_14712_400114"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>i.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),i.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},it=({type:e,item:t,imageUrl:a,className:o,onClickItem:s})=>{const r=n((()=>{const t=tt[e]||W;return i.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return i.createElement(We,{onClick:()=>s&&s(t),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(t)},tabIndex:0,role:"button",className:o},i.createElement(Je,null,"hospitals"===e?i.createElement(Xe,{width:"12",height:"16",viewBox:"0 0 12 16"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):i.createElement(Qe,{type:e},a?i.createElement("img",{src:a,width:32,height:"services"===e?32:24,loading:"lazy"}):r)),i.createElement(qe,{color:y.colors.gray800,size:"p3"},t.name))},at=({type:e,data:t,state:o,dispatch:s,itemsToShow:r,itemsToShowDesktop:l,isMobile:d,isLoading:p,keyword:h,isNavResultItem:g})=>{const[m,C]=a(!1),{t:f,locale:x}=c(),{selectedLocation:w,searchKeywords:E}=o,S=n((()=>u[x]),[x]),L="ms-MY"===x,k=n((()=>({doctors:{name:f("booking.searchPopup.doctors"),icon:i.createElement(Be,null),slug:S.DOCTOR},services:{name:f("booking.searchPopup.services"),icon:i.createElement(Ve,null),slug:S.SERVICE},hospitals:{name:f("booking.searchPopup.hospitals"),icon:i.createElement(De,null),slug:S.HOSPITAL},specialties:{name:f("booking.searchPopup.specialties"),icon:i.createElement(ze,null),slug:S.SPECIALTIES}})),[e,S]),O=n((()=>k[e].slug),[k]),j=d?r:l;function I(t){let i="";switch(e){case"specialties":i=`/${w.slug}/${k.doctors.slug}/${t.slug}`;break;case"services":i=`/${w.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:Le.SelectSearchResult,payload:{name:t.name,url:i}})}function F(t){return i.createElement(it,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return i.createElement("section",null,i.createElement(Ke,null,i.createElement(_e,null,k[e].icon,i.createElement(He,null,k[e].name)),(h.trim().length<=Ee[x]||L)&&i.createElement(Ge,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${w.slug}/${O}`}t&&s({type:Le.NavigateTo,payload:t})}},i.createElement(b,{size:"p3",color:y.colors.primaryBase},f("booking.searchPopup.seeAll")))),(p||t&&t.length>0)&&i.createElement(Ze,null,i.createElement(Ye,null,p&&Array(2).fill(void 0).map(((t,a)=>i.createElement(We,{key:e+"loading"+a},i.createElement(Je,null,i.createElement(et,null,i.createElement(v,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),i.createElement(v,{width:120,height:24})))),!p&&t&&t.length>0&&t.slice(0,j).map(F)),i.createElement(Ye,{isShown:m,isMore:!0},t.slice(j,-1).map(F)),"specialties"===e&&j<t.length&&!p&&i.createElement("button",{onClick:()=>C(!m)},i.createElement(Ue,{size:"p3",color:y.colors.primaryBase},f(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<t.length||L)&&!p&&h.trim().length>Ee[x]&&i.createElement("button",{onClick:function(){const{slug:t}=k[e],i=`/${w.slug}/${t}?q=${E}`;s({type:Le.NavigateTo,payload:i})}},i.createElement(Ue,{size:"p3",color:y.colors.primaryBase},f(`booking.searchPopup.searchIn.${e}`,{name:h})))),!p&&0===(null==t?void 0:t.length)&&i.createElement(Ze,null,i.createElement(b,{size:"sm",color:y.colors.gray400},f("booking.searchBar.noResults"))))},ot=m.section`
327
+ `,tt={doctors:({width:e,height:t})=>i.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{clipPath:"url(#clip0_14712_400114)"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),i.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_14712_400114"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>i.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),i.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},it=({type:e,item:t,imageUrl:a,className:o,onClickItem:s})=>{const l=n((()=>{const t=tt[e]||W;return i.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return i.createElement(We,{onClick:()=>s&&s(t),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(t)},tabIndex:0,role:"button",className:o},i.createElement(Je,null,"hospitals"===e?i.createElement(Xe,{width:"12",height:"16",viewBox:"0 0 12 16"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):i.createElement(Qe,{type:e},a?i.createElement("img",{src:a,width:32,height:"services"===e?32:24,loading:"lazy"}):l)),i.createElement(qe,{color:y.colors.gray800,size:"p3"},t.name))},at=({type:e,data:t,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:r,isMobile:d,isLoading:p,keyword:h,isNavResultItem:g})=>{const[m,C]=a(!1),{t:f,locale:x}=c(),{selectedLocation:w,searchKeywords:E}=o,S=n((()=>u[x]),[x]),L="ms-MY"===x,k=n((()=>({doctors:{name:f("booking.searchPopup.doctors"),icon:i.createElement(Be,null),slug:S.DOCTOR},services:{name:f("booking.searchPopup.services"),icon:i.createElement(Ve,null),slug:S.SERVICE},hospitals:{name:f("booking.searchPopup.hospitals"),icon:i.createElement(De,null),slug:S.HOSPITAL},specialties:{name:f("booking.searchPopup.specialties"),icon:i.createElement(Ke,null),slug:S.SPECIALTIES}})),[e,S]),O=n((()=>k[e].slug),[k]),j=d?l:r;function I(t){let i="";switch(e){case"specialties":i=`/${w.slug}/${k.doctors.slug}/${t.slug}`;break;case"services":i=`/${w.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:Le.SelectSearchResult,payload:{name:t.name,url:i}})}function F(t){return i.createElement(it,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return i.createElement("section",null,i.createElement(ze,null,i.createElement(_e,null,k[e].icon,i.createElement(He,null,k[e].name)),(h.trim().length<=Ee[x]||L)&&i.createElement(Ge,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${w.slug}/${O}`}t&&s({type:Le.NavigateTo,payload:t})}},i.createElement(b,{size:"p3",color:y.colors.primaryBase},f("booking.searchPopup.seeAll")))),(p||t&&t.length>0)&&i.createElement(Ze,null,i.createElement(Ye,null,p&&Array(2).fill(void 0).map(((t,a)=>i.createElement(We,{key:e+"loading"+a},i.createElement(Je,null,i.createElement(et,null,i.createElement(v,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),i.createElement(v,{width:120,height:24})))),!p&&t&&t.length>0&&t.slice(0,j).map(F)),i.createElement(Ye,{isShown:m,isMore:!0},t.slice(j,-1).map(F)),"specialties"===e&&j<t.length&&!p&&i.createElement("button",{onClick:()=>C(!m)},i.createElement(Ue,{size:"p3",color:y.colors.primaryBase},f(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<t.length||L)&&!p&&h.trim().length>Ee[x]&&i.createElement("button",{onClick:function(){const{slug:t}=k[e],i=`/${w.slug}/${t}?q=${E}`;s({type:Le.NavigateTo,payload:i})}},i.createElement(Ue,{size:"p3",color:y.colors.primaryBase},f(`booking.searchPopup.searchIn.${e}`,{name:h})))),!p&&0===(null==t?void 0:t.length)&&i.createElement(Ze,null,i.createElement(b,{size:"sm",color:y.colors.gray400},f("booking.searchBar.noResults"))))},ot=m.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-bda723ae.js";import*as t from"react";import i,{us
336
336
  0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
337
337
  0px 0px 1px rgba(0, 0, 0, 0.04);
338
338
  }
339
- `,nt=({data:e,state:t,dispatch:a,isMobile:o,isLoading:n,keyword:s,hideResults:r,isNavResultItem:l})=>i.createElement(ot,null,e&&e.map((e=>r&&r.includes(e.type)?i.createElement(i.Fragment,null):i.createElement(at,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:o,isLoading:n,keyword:s,isNavResultItem:l})))),st=(e,t,i)=>N(e,Object.assign(Object.assign({},t),{domain:$[i||"en-PH"]}));const rt=({isMobile:t,careApiDomain:g,geoLocationPermission:m,geoLocationCoordinates:C,initialSelectedCity:b,initialSearchValue:y="",careFrontDomain:f="/care",isDebug:v=!1,askForGeolocationPermission:x=!1,gaTrackingSearchBar:w,gaTrackingLocationSearch:S,autoCompleteDisabled:L=!1,inputSearchPlaceholder:k="",isOptionAllLocation:O=!1,hideResults:j=[],isNavResultItem:I=!0,routerPush:F,onGeoLocationPermissionChange:$,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=c(),A=r(null),N=r(null),[B,H]=a(void 0),[Z,Y]=a(!1),{geoLocationPermission:U,geoLocationCoordinates:W,requestGeoLocation:Q}=V(),[q,J]=l(Oe,Se,(e=>Object.assign(Object.assign({},e),{isDebug:v,isMobile:t,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:L,inputSearchPlaceholder:k,locale:P}))),{navigateTo:X,focused:ee,isLoadingCities:te,cities:ae,searchKeywords:oe,geoLocationPermission:ne,selectedLocation:se,initialSelectedCity:re,defaultCity:le,searchResults:ce,isLoadingSearchResults:de,isMobileModalOpened:pe,inputSearchPlaceholder:ue}=q,{fetchCitiesByLocation:he,fetchCitiesByKeyword:ge,fetchSearchResults:me}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(a,o={}){const n=`${t}${a}`;return e({type:Le.FetchCitiesStart}),fetch(st(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:Le.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(E.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(E.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:Le.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(E.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:Le.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(a,o){const n=`${t}${E.GET_SEARCH_V2}`;e({type:Le.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:l}=o;let c="";if(!r||!s)return void e({type:Le.FetchSearchResultsFinish});r.id===h?l||(c=s.id):c=r.id===p?"":r.id;const d=(null==l?void 0:l.lat)||"",u=(null==l?void 0:l.lng)||"";return fetch(st(n,{domain:t,searchType:"global",keyword:a.trim().length>Ee[i]?a.trim():"",city:c===h?"":c,lat:d,lng:u},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:Le.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:Le.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:J,locale:P,careApiDomain:g}),be=n((()=>{var e;return{id:h,name:T("booking.searchBar.currentLocation"),slug:null===(e=u[P])||void 0===e?void 0:e.CURRENT}}),[T,P]),ye=n((()=>d(ge,400)),[ge]),fe=n((()=>d(me,400)),[me]);s((()=>{""!==y&&y!==q.searchKeywords&&J({type:Le.UpdateInitialSearchValue,payload:y})}),[y]),s((()=>{x&&(null==se?void 0:se.id)===h&&"unset"===ne&&Q()}),[x,se,ne]),s((()=>{m||ne===U||("granted"===U&&W?J({type:Le.GrantGeoLocationPermission,payload:W}):"denied"===U&&J({type:Le.DenyGeoLocationPermission}))}),[ne,U,W,m]),s((()=>{X&&(F?F(X):window.location.href=`${f}${X}`)}),[X]);const ve=o((function(){J({type:Le.SelectCurrentLocation,payload:be})}),[T,J]);s((()=>{var e;"denied"===ne||re||J({type:Le.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:p,slug:null===(e=u[P])||void 0===e?void 0:e.ALL}}),$&&$(ne,q.geoLocationCoordinates),t&&"granted"===ne&&se&&J({type:Le.FocusInputSearch}),he({coordinates:q.geoLocationCoordinates})}),[ne]),s((()=>{se&&le&&me(q.searchKeywords,q)}),[se,le]),s((()=>{k!==ue&&J({type:Le.SetInputSearchPlaceholder,payload:k})}),[k,ue]),s((()=>{pe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[pe]);const xe=o((function(e){"ms-MY"===P&&Y(!0),J({type:Le.SelectLocation,payload:e}),"ms-MY"!==P&&Ie(),R&&R(e)}),[T,J]);function ke(){"ms-MY"===P&&Y(!0),t&&"granted"!==q.geoLocationPermission?Q():(ve(),"ms-MY"!==P&&Ie())}function je(){var e;A.current&&(null===(e=A.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Ie(){var e;A.current&&(null===(e=A.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Fe(){J({type:Le.CloseMobileModal})}function $e(){return"location"!==ee?null:i.createElement(ie,{isLoading:te,cities:ae,onLocationClick:xe,onCurrentLocationClick:ke,isLocationLoading:te,geoLocationPermission:ne,selectedLocation:se,isOptionAllLocation:O})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?t?i.createElement(Ae,{onClick:()=>{M({cityId:q.selectedLocation.id,keyword:oe}),Fe()}}):null:i.createElement(nt,{data:ce,state:q,dispatch:J,isMobile:!1,keyword:oe,isLoading:de,hideResults:j,isNavResultItem:I})}function Re(){return i.createElement(Ne,{isMobile:t,state:q,dispatch:J,debouncedFetchCitiesByKeyword:ye,debouncedFetchSearchResults:fe,focusLocationInput:je,focusSearchInput:Ie,renderLocationResults:$e,renderSearchResults:Me,trackingAttributes:w,locationTrackingAttributes:S,onSearch:M,initalSearchValue:y})}return s((()=>{if(window.visualViewport){const e=e=>{const t=e.target;H(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[H]),s((()=>{if(se&&Z&&"ms-MY"===P){const e=`/${se.slug}/hospital`;J({type:Le.NavigateTo,payload:e}),Y(!1)}}),[Z,P,se]),t?i.createElement(i.Fragment,null,i.createElement(G,null),i.createElement(_,{ref:N}),i.createElement(z,{id:"booking-search-bar",ref:A,"data-is-modal":t&&pe,style:{"--mobile-care-searchbar-height":pe&&B?`${B}px`:"100%"}},pe?i.createElement(i.Fragment,null,i.createElement(K,null,i.createElement(we,{headingText:T("booking.searchBar.searchButton"),onLeftClick:Fe}),Re()),$e(),Me()):i.createElement(Ce,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){N.current&&N.current.focus(),J({type:Le.OpenMobileModal}),yield Promise.resolve(),A.current&&(null===(t=A.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ee,value:oe,trackingAttributes:w,inputSearchPlaceholder:k}))):i.createElement(D,{id:"booking-search-bar",ref:A},Re())},lt=m.div``,ct=m.div`
339
+ `,nt=({data:e,state:t,dispatch:a,isMobile:o,isLoading:n,keyword:s,hideResults:l,isNavResultItem:r})=>i.createElement(ot,null,e&&e.map((e=>l&&l.includes(e.type)?i.createElement(i.Fragment,null):i.createElement(at,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:o,isLoading:n,keyword:s,isNavResultItem:r})))),st=(e,t,i)=>N(e,Object.assign(Object.assign({},t),{domain:$[i||"en-PH"]}));const lt=({isMobile:t,careApiDomain:g,geoLocationPermission:m,geoLocationCoordinates:C,initialSelectedCity:b,initialSearchValue:y="",careFrontDomain:f="/care",isDebug:v=!1,askForGeolocationPermission:x=!1,gaTrackingSearchBar:w,gaTrackingLocationSearch:S,autoCompleteDisabled:L=!1,inputSearchPlaceholder:k="",isOptionAllLocation:O=!1,hideResults:j=[],isNavResultItem:I=!0,routerPush:F,onGeoLocationPermissionChange:$,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=c(),A=l(null),N=l(null),[B,H]=a(void 0),[Z,Y]=a(!1),{geoLocationPermission:U,geoLocationCoordinates:W,requestGeoLocation:Q}=V(),[q,J]=r(Oe,Se,(e=>Object.assign(Object.assign({},e),{isDebug:v,isMobile:t,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:L,inputSearchPlaceholder:k,locale:P}))),{navigateTo:X,focused:ee,isLoadingCities:te,cities:ae,searchKeywords:oe,geoLocationPermission:ne,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 a=o((function(a,o={}){const n=`${t}${a}`;return e({type:Le.FetchCitiesStart}),fetch(st(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:Le.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(E.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(E.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:Le.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(E.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:Le.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(a,o){const n=`${t}${E.GET_SEARCH_V2}`;e({type:Le.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:l,geoLocationCoordinates:r}=o;let c="";if(!l||!s)return void e({type:Le.FetchSearchResultsFinish});l.id===h?r||(c=s.id):c=l.id===p?"":l.id;const d=(null==r?void 0:r.lat)||"",u=(null==r?void 0:r.lng)||"";return fetch(st(n,{domain:t,searchType:"global",keyword:a.trim().length>Ee[i]?a.trim():"",city:c===h?"":c,lat:d,lng:u},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:Le.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:Le.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:J,locale:P,careApiDomain:g}),be=n((()=>{var e;return{id:h,name:T("booking.searchBar.currentLocation"),slug:null===(e=u[P])||void 0===e?void 0:e.CURRENT}}),[T,P]),ye=n((()=>d(ge,400)),[ge]),fe=n((()=>d(me,400)),[me]);s((()=>{""!==y&&y!==q.searchKeywords&&J({type:Le.UpdateInitialSearchValue,payload:y})}),[y]),s((()=>{x&&(null==se?void 0:se.id)===h&&"unset"===ne&&Q()}),[x,se,ne]),s((()=>{m||ne===U||("granted"===U&&W?J({type:Le.GrantGeoLocationPermission,payload:W}):"denied"===U&&J({type:Le.DenyGeoLocationPermission}))}),[ne,U,W,m]),s((()=>{X&&(F?F(X):window.location.href=`${f}${X}`)}),[X]);const ve=o((function(){J({type:Le.SelectCurrentLocation,payload:be})}),[T,J]);s((()=>{var e;"denied"===ne||le||J({type:Le.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:p,slug:null===(e=u[P])||void 0===e?void 0:e.ALL}}),$&&$(ne,q.geoLocationCoordinates),t&&"granted"===ne&&se&&J({type:Le.FocusInputSearch}),he({coordinates:q.geoLocationCoordinates})}),[ne]),s((()=>{se&&re&&me(q.searchKeywords,q)}),[se,re]),s((()=>{k!==ue&&J({type:Le.SetInputSearchPlaceholder,payload:k})}),[k,ue]),s((()=>{pe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[pe]);const xe=o((function(e){"ms-MY"===P&&Y(!0),J({type:Le.SelectLocation,payload:e}),"ms-MY"!==P&&Ie(),R&&R(e)}),[T,J]);function ke(){"ms-MY"===P&&Y(!0),t&&"granted"!==q.geoLocationPermission?Q():(ve(),"ms-MY"!==P&&Ie())}function je(){var e;A.current&&(null===(e=A.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Ie(){var e;A.current&&(null===(e=A.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Fe(){J({type:Le.CloseMobileModal})}function $e(){return"location"!==ee?null:i.createElement(ie,{isLoading:te,cities:ae,onLocationClick:xe,onCurrentLocationClick:ke,isLocationLoading:te,geoLocationPermission:ne,selectedLocation:se,isOptionAllLocation:O})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?t?i.createElement(Ae,{onClick:()=>{M({cityId:q.selectedLocation.id,keyword:oe}),Fe()}}):null:i.createElement(nt,{data:ce,state:q,dispatch:J,isMobile:!1,keyword:oe,isLoading:de,hideResults:j,isNavResultItem:I})}function Re(){return i.createElement(Ne,{isMobile:t,state:q,dispatch:J,debouncedFetchCitiesByKeyword:ye,debouncedFetchSearchResults:fe,focusLocationInput:je,focusSearchInput:Ie,renderLocationResults:$e,renderSearchResults:Me,trackingAttributes:w,locationTrackingAttributes:S,onSearch:M,initalSearchValue:y})}return s((()=>{if(window.visualViewport){const e=e=>{const t=e.target;H(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[H]),s((()=>{if(se&&Z&&"ms-MY"===P){const e=`/${se.slug}/hospital`;J({type:Le.NavigateTo,payload:e}),Y(!1)}}),[Z,P,se]),t?i.createElement(i.Fragment,null,i.createElement(G,null),i.createElement(_,{ref:N}),i.createElement(K,{id:"booking-search-bar",ref:A,"data-is-modal":t&&pe,style:{"--mobile-care-searchbar-height":pe&&B?`${B}px`:"100%"}},pe?i.createElement(i.Fragment,null,i.createElement(z,null,i.createElement(we,{headingText:T("booking.searchBar.searchButton"),onLeftClick:Fe}),Re()),$e(),Me()):i.createElement(Ce,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){N.current&&N.current.focus(),J({type:Le.OpenMobileModal}),yield Promise.resolve(),A.current&&(null===(t=A.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ee,value:oe,trackingAttributes:w,inputSearchPlaceholder:k}))):i.createElement(D,{id:"booking-search-bar",ref:A},Re())},rt=m.div``,ct=m.div`
340
340
  background-color: ${y.colors.neutral50};
341
341
  padding-bottom: 1px;
342
342
  ${f.mbDown} {
@@ -478,7 +478,7 @@ import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{us
478
478
  line-height: 22px;
479
479
  cursor: pointer;
480
480
  }
481
- `;const wt=({state:e,type:t,results:a,location:o,isLoading:s,typeInformation:r,dispatch:l})=>{const{t:d}=c(),{selectedLocation:p}=e,u=n((()=>r[t].slug),[r,t]);return i.createElement(yt,null,i.createElement(ft,null,i.createElement("div",{className:"title"},d("booking.searchResult.description",{search_type:r[t].name,search_location:o})),a.length>0&&i.createElement("div",{className:"btn-see-all",onClick:()=>{let i="";("doctor"===t||"hospital"===t)&&e.selectedSpecialty.id>0&&(i=`?specialtyId=${e.selectedSpecialty.id}`);const a=`/${p.slug}/${u}${i}`;a&&l({type:ht.NavigateTo,payload:a})}},d("home.seeAll"))),i.createElement(vt,null,s&&Array(3).fill(void 0).map(((e,a)=>i.createElement(xt,{key:t+"loading"+a,className:2===a?"last-item":""},i.createElement("div",{className:"image-item"},i.createElement(S,{height:48,circle:!0,mb:"xl",animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(S,{height:8,mt:10,radius:"xl",animate:!0})),i.createElement("div",{className:"description"},i.createElement("div",{className:"sub-description"},i.createElement(S,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!s&&a&&a.length>0&&i.createElement(i.Fragment,null,a.map(((e,o)=>{var n,s;const c=a.length>4&&3===o||a.length<=4&&o===a.length-1;let d="";return"hospital"===t&&(d=(null==e?void 0:e.address)||""),"doctor"===t&&(d=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===t&&(d=(null===(s=null==e?void 0:e.organization)||void 0===s?void 0:s.name)||""),o>=4?i.createElement(i.Fragment,null):i.createElement(xt,{key:e.id,className:c?"last-item":"",onClick:()=>(e=>{let i="";switch(t){case"service":i=`/${p.slug}/${u}/${e.slug}`;break;case"doctor":case"hospital":i=`/${u}/${e.slug}-${e.id}`}i&&l({type:ht.NavigateTo,payload:i})})(e)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.logo||e.avatar,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name),i.createElement("div",{className:"description"},r[t].icon,i.createElement("div",{className:"sub-description"},d))))}))),!s&&0===(null==a?void 0:a.length)&&i.createElement(b,{size:"sm",color:y.colors.gray400},d("booking.searchBar.noResults"))))},Et=m.div`
481
+ `;const wt=({state:e,type:t,results:a,location:o,isLoading:s,typeInformation:l,dispatch:r})=>{const{t:d}=c(),{selectedLocation:p}=e,u=n((()=>l[t].slug),[l,t]);return i.createElement(yt,null,i.createElement(ft,null,i.createElement("div",{className:"title"},d("booking.searchResult.description",{search_type:l[t].name,search_location:o})),a.length>0&&i.createElement("div",{className:"btn-see-all",onClick:()=>{let i="";("doctor"===t||"hospital"===t)&&e.selectedSpecialty.id>0&&(i=`?specialtyId=${e.selectedSpecialty.id}`);const a=`/${p.slug}/${u}${i}`;a&&r({type:ht.NavigateTo,payload:a})}},d("home.seeAll"))),i.createElement(vt,null,s&&Array(3).fill(void 0).map(((e,a)=>i.createElement(xt,{key:t+"loading"+a,className:2===a?"last-item":""},i.createElement("div",{className:"image-item"},i.createElement(S,{height:48,circle:!0,mb:"xl",animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(S,{height:8,mt:10,radius:"xl",animate:!0})),i.createElement("div",{className:"description"},i.createElement("div",{className:"sub-description"},i.createElement(S,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!s&&a&&a.length>0&&i.createElement(i.Fragment,null,a.map(((e,o)=>{var n,s;const c=a.length>4&&3===o||a.length<=4&&o===a.length-1;let d="";return"hospital"===t&&(d=(null==e?void 0:e.address)||""),"doctor"===t&&(d=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===t&&(d=(null===(s=null==e?void 0:e.organization)||void 0===s?void 0:s.name)||""),o>=4?i.createElement(i.Fragment,null):i.createElement(xt,{key:e.id,className:c?"last-item":"",onClick:()=>(e=>{let i="";switch(t){case"service":i=`/${p.slug}/${u}/${e.slug}`;break;case"doctor":case"hospital":i=`/${u}/${e.slug}-${e.id}`}i&&r({type:ht.NavigateTo,payload:i})})(e)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.logo||e.avatar,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name),i.createElement("div",{className:"description"},l[t].icon,i.createElement("div",{className:"sub-description"},d))))}))),!s&&0===(null==a?void 0:a.length)&&i.createElement(b,{size:"sm",color:y.colors.gray400},d("booking.searchBar.noResults"))))},Et=m.div`
482
482
  position: relative;
483
483
 
484
484
  ${f.mbDown} {
@@ -559,7 +559,7 @@ import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{us
559
559
  `;m(Y)`
560
560
  width: 12px;
561
561
  height: 18px;
562
- `;const kt=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M8.98307 14.3333C7.87196 14.3333 6.92752 13.9445 6.14974 13.1667C5.37196 12.3889 4.98307 11.4445 4.98307 10.3333V9.96668C4.08307 9.85557 3.33041 9.45557 2.72507 8.76668C2.1193 8.07779 1.81641 7.26668 1.81641 6.33334V3.10001C1.81641 2.93334 1.87463 2.79157 1.99107 2.67468C2.10796 2.55823 2.24974 2.50001 2.41641 2.50001H3.81641V2.33334C3.81641 2.1889 3.86374 2.06934 3.95841 1.97468C4.05263 1.88045 4.17196 1.83334 4.31641 1.83334C4.46085 1.83334 4.58041 1.88045 4.67507 1.97468C4.7693 2.06934 4.81641 2.1889 4.81641 2.33334V3.66668C4.81641 3.81112 4.7693 3.93045 4.67507 4.02468C4.58041 4.11934 4.46085 4.16668 4.31641 4.16668C4.17196 4.16668 4.05263 4.11934 3.95841 4.02468C3.86374 3.93045 3.81641 3.81112 3.81641 3.66668V3.50001H2.81641V6.33334C2.81641 7.06668 3.07752 7.69445 3.59974 8.21668C4.12196 8.7389 4.74974 9.00001 5.48307 9.00001C6.21641 9.00001 6.84418 8.7389 7.36641 8.21668C7.88863 7.69445 8.14974 7.06668 8.14974 6.33334V3.50001H7.14974V3.66668C7.14974 3.81112 7.10263 3.93045 7.00841 4.02468C6.91374 4.11934 6.79418 4.16668 6.64974 4.16668C6.5053 4.16668 6.38596 4.11934 6.29174 4.02468C6.19707 3.93045 6.14974 3.81112 6.14974 3.66668V2.33334C6.14974 2.1889 6.19707 2.06934 6.29174 1.97468C6.38596 1.88045 6.5053 1.83334 6.64974 1.83334C6.79418 1.83334 6.91374 1.88045 7.00841 1.97468C7.10263 2.06934 7.14974 2.1889 7.14974 2.33334V2.50001H8.54974C8.71641 2.50001 8.85818 2.55823 8.97507 2.67468C9.09152 2.79157 9.14974 2.93334 9.14974 3.10001V6.33334C9.14974 7.26668 8.84707 8.07779 8.24174 8.76668C7.63596 9.45557 6.88307 9.85557 5.98307 9.96668V10.3333C5.98307 11.1667 6.27485 11.8751 6.85841 12.4587C7.44152 13.0418 8.14974 13.3333 8.98307 13.3333C9.81641 13.3333 10.5249 13.0418 11.1084 12.4587C11.6915 11.8751 11.9831 11.1667 11.9831 10.3333V9.25001C11.6386 9.1389 11.3526 8.93601 11.1251 8.64134C10.8971 8.34712 10.7831 8.01112 10.7831 7.63334C10.7831 7.15557 10.9497 6.75001 11.2831 6.41668C11.6164 6.08334 12.0164 5.91668 12.4831 5.91668C12.9609 5.91668 13.3664 6.08334 13.6997 6.41668C14.0331 6.75001 14.1997 7.15557 14.1997 7.63334C14.1997 8.01112 14.086 8.34712 13.8584 8.64134C13.6304 8.93601 13.3386 9.1389 12.9831 9.25001V10.3333C12.9831 11.4445 12.5942 12.3889 11.8164 13.1667C11.0386 13.9445 10.0942 14.3333 8.98307 14.3333ZM12.4831 8.33334C12.6831 8.33334 12.8526 8.26401 12.9917 8.12534C13.1304 7.98623 13.1997 7.82223 13.1997 7.63334C13.1997 7.43334 13.1304 7.26401 12.9917 7.12534C12.8526 6.98623 12.6831 6.91668 12.4831 6.91668C12.2831 6.91668 12.1164 6.98623 11.9831 7.12534C11.8497 7.26401 11.7831 7.43334 11.7831 7.63334C11.7831 7.82223 11.8497 7.98623 11.9831 8.12534C12.1164 8.26401 12.2831 8.33334 12.4831 8.33334Z",fill:"#595959"})),Ot=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M6.86836 9.26489V10.2386C6.86836 10.509 6.96294 10.7389 7.15209 10.9283C7.34124 11.1176 7.57093 11.2122 7.84114 11.2122C8.11135 11.2122 8.34133 11.1176 8.53106 10.9283C8.7208 10.7389 8.81567 10.509 8.81567 10.2386V9.26489H9.78936C10.0598 9.26489 10.2897 9.17031 10.479 8.98116C10.6684 8.79201 10.763 8.56233 10.763 8.29211C10.763 8.0219 10.6684 7.79192 10.479 7.60219C10.2897 7.41245 10.0598 7.31758 9.78936 7.31758H8.81567V6.34389C8.81567 6.07343 8.72109 5.84354 8.53194 5.65422C8.34279 5.4649 8.11311 5.37024 7.84289 5.37024C7.57268 5.37024 7.3427 5.4649 7.15297 5.65422C6.96323 5.84354 6.86836 6.07343 6.86836 6.34389V7.31758H5.89467C5.62421 7.31758 5.39432 7.41216 5.205 7.60131C5.01568 7.79046 4.92102 8.02014 4.92102 8.29036C4.92102 8.56057 5.01568 8.79055 5.205 8.98028C5.39432 9.17002 5.62421 9.26489 5.89467 9.26489H6.86836ZM3.40809 14.1333C3.02086 14.1333 2.68938 13.9954 2.41364 13.7196C2.13788 13.4439 2 13.1124 2 12.7252V6.07426C2 5.85132 2.04987 5.64011 2.14961 5.44063C2.24936 5.24116 2.38723 5.07689 2.56323 4.94782L6.99718 1.61486C7.24323 1.42712 7.52444 1.33325 7.84081 1.33325C8.15718 1.33325 8.43919 1.42712 8.68685 1.61486L13.1208 4.94782C13.2968 5.07689 13.4347 5.24116 13.5344 5.44063C13.6342 5.64011 13.684 5.85132 13.684 6.07426V12.7252C13.684 13.1124 13.5462 13.4439 13.2704 13.7196C12.9947 13.9954 12.6632 14.1333 12.2759 14.1333H3.40809ZM3.40809 12.9649H12.2759C12.3459 12.9649 12.4033 12.9424 12.4482 12.8974C12.4932 12.8525 12.5156 12.7951 12.5156 12.7252V6.07426C12.5156 6.03431 12.5069 5.99811 12.4894 5.96566C12.4719 5.9332 12.4482 5.90449 12.4183 5.87953L7.98433 2.55406C7.94438 2.51911 7.89694 2.50164 7.84202 2.50164C7.78709 2.50164 7.73965 2.51911 7.69971 2.55406L3.26576 5.87953C3.2358 5.90449 3.21209 5.9332 3.1946 5.96566C3.17712 5.99811 3.16839 6.03431 3.16839 6.07426V12.7252C3.16839 12.7951 3.19086 12.8525 3.2358 12.8974C3.28075 12.9424 3.33818 12.9649 3.40809 12.9649Z",fill:"#595959"})),jt=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M7.99984 8.00004C8.3665 8.00004 8.68039 7.86949 8.9415 7.60837C9.20261 7.34726 9.33317 7.03337 9.33317 6.66671C9.33317 6.30004 9.20261 5.98615 8.9415 5.72504C8.68039 5.46393 8.3665 5.33337 7.99984 5.33337C7.63317 5.33337 7.31928 5.46393 7.05817 5.72504C6.79706 5.98615 6.6665 6.30004 6.6665 6.66671C6.6665 7.03337 6.79706 7.34726 7.05817 7.60837C7.31928 7.86949 7.63317 8.00004 7.99984 8.00004ZM7.99984 12.9C9.35539 11.6556 10.3609 10.525 11.0165 9.50837C11.6721 8.49171 11.9998 7.58893 11.9998 6.80004C11.9998 5.58893 11.6137 4.59726 10.8415 3.82504C10.0693 3.05282 9.12206 2.66671 7.99984 2.66671C6.87761 2.66671 5.93039 3.05282 5.15817 3.82504C4.38595 4.59726 3.99984 5.58893 3.99984 6.80004C3.99984 7.58893 4.32761 8.49171 4.98317 9.50837C5.63873 10.525 6.64428 11.6556 7.99984 12.9ZM7.99984 14.4167C7.91095 14.4167 7.82206 14.4 7.73317 14.3667C7.64428 14.3334 7.5665 14.2889 7.49984 14.2334C5.87761 12.8 4.6665 11.4695 3.8665 10.2417C3.0665 9.01393 2.6665 7.86671 2.6665 6.80004C2.6665 5.13337 3.20261 3.8056 4.27484 2.81671C5.34706 1.82782 6.58873 1.33337 7.99984 1.33337C9.41095 1.33337 10.6526 1.82782 11.7248 2.81671C12.7971 3.8056 13.3332 5.13337 13.3332 6.80004C13.3332 7.86671 12.9332 9.01393 12.1332 10.2417C11.3332 11.4695 10.1221 12.8 8.49984 14.2334C8.43317 14.2889 8.35539 14.3334 8.2665 14.3667C8.17761 14.4 8.08873 14.4167 7.99984 14.4167Z",fill:"#8C8C8C"})),It=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Ft=({state:e,isMobile:t,debouncedFetchSearchResults:a,selectedLocation:s,onSpecialtyClick:l,dispatch:d})=>{var p;const{t:h,locale:g}=c(),m=r(null),C=n((()=>u[g]),[g]),y=n((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:t?"border: 1px solid #d9d9d9":"none",height:t?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:t?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[t]),f=o((function(e){console.log(e)}),[a,d]);return w(m,(()=>{d({type:ht.ClickOutsideInputSpecialty})})),i.createElement(Et,{ref:m},i.createElement(L.Wrapper,null,i.createElement(L,{size:t?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(p=null==e?void 0:e.selectedSpecialty)||void 0===p?void 0:p.name)||"",rightSection:i.createElement(B,null),styles:y,onFocus:()=>d({type:ht.FocusInputSpecialty}),onChange:e=>{f(e.target.value)}})),"specialty"===e.focused&&i.createElement(St,null,i.createElement(Lt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{l&&l({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},i.createElement("div",{className:"image-item"},i.createElement(It,null)),i.createElement(b,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>i.createElement(Lt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),l&&l(Object.assign(Object.assign({},e),{total_doctor:0}))},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement(b,{size:"md"},e.name))))))},$t=({state:e,type:t,isMobile:a,isLoading:s,initalSearchValue:l,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,focusSearchInput:h,onSearch:g,dispatch:m})=>{var C;const{t:b}=c(),y=r(null),f=n((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),v=n((()=>"doctor"===t?b("booking.searchBar.placeholder.doctor"):"service"===t?b("booking.searchBar.placeholder.service"):"hospital"===t?b("booking.searchBar.placeholder.hospital"):"specialty"===t?b("booking.searchBar.placeholder.specialty"):""),[t]),x=n((()=>({root:{flex:1}})),[]),E=n((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),S=n((()=>({input:{color:"#262626"}})),[]);w(y,(()=>{m({type:ht.ClickOutsideInputSearch})}));const k=o((function(i){m({type:ht.ChangeInputSearch,payload:i}),"function"!=typeof g&&(i.trim().length>pt[e.locale]||l||0===i.trim().length?p(i.trim(),e,t):(p.cancel(),m({type:ht.DisplayInitialSearchResults})))}),[m,e,t]),O=o((function(e){m({type:ht.SelectSpecialty,payload:e}),h()}),[m]);return i.createElement(Ct,{ref:y},"specialty"===t?i.createElement(L.Wrapper,{styles:x},i.createElement(L,{icon:i.createElement(A.Search,null),size:a?"md":"lg",placeholder:v,styles:S,value:e.searchKeywords,onFocus:()=>m({type:ht.FocusInputSearchSpecialty}),onChange:e=>{k(e.target.value)}})):i.createElement(i.Fragment,null,"service"===t?i.createElement(L.Wrapper,{styles:x},i.createElement(L,{icon:i.createElement(A.Search,null),size:a?"md":"lg",name:"search-results",placeholder:v,onFocus:()=>m({type:ht.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{k(e.target.value)}})):i.createElement(i.Fragment,null,a?i.createElement(i.Fragment,null,i.createElement(Ft,{state:e,isMobile:a,dispatch:m,debouncedFetchSearchResults:p,onSpecialtyClick:O}),i.createElement(L.Wrapper,{styles:x},i.createElement(L,{icon:i.createElement(A.Search,null),size:"md",placeholder:v,value:e.searchKeywords,name:"search-results",onFocus:()=>m({type:ht.FocusInputSearch}),onChange:e=>{k(e.target.value)}}))):i.createElement(L.Wrapper,{styles:x},i.createElement(L,Object.assign({icon:i.createElement(A.Search,null),size:"lg",placeholder:v,styles:E,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{k(e.target.value)},onFocus:()=>m({type:ht.FocusInputSearch})},f,{rightSection:i.createElement(Ft,{state:e,isMobile:a,dispatch:m,debouncedFetchSearchResults:p,onSpecialtyClick:O})})))),"search"===e.focused&&i.createElement(bt,null,i.createElement(wt,{type:t,state:e,results:(null===(C=e.searchResults)||void 0===C?void 0:C[t])||[],location:e.selectedLocation.name,dispatch:m,isLoading:s,typeInformation:d}))))},Mt=m.div`
562
+ `;const kt=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M8.98307 14.3333C7.87196 14.3333 6.92752 13.9445 6.14974 13.1667C5.37196 12.3889 4.98307 11.4445 4.98307 10.3333V9.96668C4.08307 9.85557 3.33041 9.45557 2.72507 8.76668C2.1193 8.07779 1.81641 7.26668 1.81641 6.33334V3.10001C1.81641 2.93334 1.87463 2.79157 1.99107 2.67468C2.10796 2.55823 2.24974 2.50001 2.41641 2.50001H3.81641V2.33334C3.81641 2.1889 3.86374 2.06934 3.95841 1.97468C4.05263 1.88045 4.17196 1.83334 4.31641 1.83334C4.46085 1.83334 4.58041 1.88045 4.67507 1.97468C4.7693 2.06934 4.81641 2.1889 4.81641 2.33334V3.66668C4.81641 3.81112 4.7693 3.93045 4.67507 4.02468C4.58041 4.11934 4.46085 4.16668 4.31641 4.16668C4.17196 4.16668 4.05263 4.11934 3.95841 4.02468C3.86374 3.93045 3.81641 3.81112 3.81641 3.66668V3.50001H2.81641V6.33334C2.81641 7.06668 3.07752 7.69445 3.59974 8.21668C4.12196 8.7389 4.74974 9.00001 5.48307 9.00001C6.21641 9.00001 6.84418 8.7389 7.36641 8.21668C7.88863 7.69445 8.14974 7.06668 8.14974 6.33334V3.50001H7.14974V3.66668C7.14974 3.81112 7.10263 3.93045 7.00841 4.02468C6.91374 4.11934 6.79418 4.16668 6.64974 4.16668C6.5053 4.16668 6.38596 4.11934 6.29174 4.02468C6.19707 3.93045 6.14974 3.81112 6.14974 3.66668V2.33334C6.14974 2.1889 6.19707 2.06934 6.29174 1.97468C6.38596 1.88045 6.5053 1.83334 6.64974 1.83334C6.79418 1.83334 6.91374 1.88045 7.00841 1.97468C7.10263 2.06934 7.14974 2.1889 7.14974 2.33334V2.50001H8.54974C8.71641 2.50001 8.85818 2.55823 8.97507 2.67468C9.09152 2.79157 9.14974 2.93334 9.14974 3.10001V6.33334C9.14974 7.26668 8.84707 8.07779 8.24174 8.76668C7.63596 9.45557 6.88307 9.85557 5.98307 9.96668V10.3333C5.98307 11.1667 6.27485 11.8751 6.85841 12.4587C7.44152 13.0418 8.14974 13.3333 8.98307 13.3333C9.81641 13.3333 10.5249 13.0418 11.1084 12.4587C11.6915 11.8751 11.9831 11.1667 11.9831 10.3333V9.25001C11.6386 9.1389 11.3526 8.93601 11.1251 8.64134C10.8971 8.34712 10.7831 8.01112 10.7831 7.63334C10.7831 7.15557 10.9497 6.75001 11.2831 6.41668C11.6164 6.08334 12.0164 5.91668 12.4831 5.91668C12.9609 5.91668 13.3664 6.08334 13.6997 6.41668C14.0331 6.75001 14.1997 7.15557 14.1997 7.63334C14.1997 8.01112 14.086 8.34712 13.8584 8.64134C13.6304 8.93601 13.3386 9.1389 12.9831 9.25001V10.3333C12.9831 11.4445 12.5942 12.3889 11.8164 13.1667C11.0386 13.9445 10.0942 14.3333 8.98307 14.3333ZM12.4831 8.33334C12.6831 8.33334 12.8526 8.26401 12.9917 8.12534C13.1304 7.98623 13.1997 7.82223 13.1997 7.63334C13.1997 7.43334 13.1304 7.26401 12.9917 7.12534C12.8526 6.98623 12.6831 6.91668 12.4831 6.91668C12.2831 6.91668 12.1164 6.98623 11.9831 7.12534C11.8497 7.26401 11.7831 7.43334 11.7831 7.63334C11.7831 7.82223 11.8497 7.98623 11.9831 8.12534C12.1164 8.26401 12.2831 8.33334 12.4831 8.33334Z",fill:"#595959"})),Ot=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M6.86836 9.26489V10.2386C6.86836 10.509 6.96294 10.7389 7.15209 10.9283C7.34124 11.1176 7.57093 11.2122 7.84114 11.2122C8.11135 11.2122 8.34133 11.1176 8.53106 10.9283C8.7208 10.7389 8.81567 10.509 8.81567 10.2386V9.26489H9.78936C10.0598 9.26489 10.2897 9.17031 10.479 8.98116C10.6684 8.79201 10.763 8.56233 10.763 8.29211C10.763 8.0219 10.6684 7.79192 10.479 7.60219C10.2897 7.41245 10.0598 7.31758 9.78936 7.31758H8.81567V6.34389C8.81567 6.07343 8.72109 5.84354 8.53194 5.65422C8.34279 5.4649 8.11311 5.37024 7.84289 5.37024C7.57268 5.37024 7.3427 5.4649 7.15297 5.65422C6.96323 5.84354 6.86836 6.07343 6.86836 6.34389V7.31758H5.89467C5.62421 7.31758 5.39432 7.41216 5.205 7.60131C5.01568 7.79046 4.92102 8.02014 4.92102 8.29036C4.92102 8.56057 5.01568 8.79055 5.205 8.98028C5.39432 9.17002 5.62421 9.26489 5.89467 9.26489H6.86836ZM3.40809 14.1333C3.02086 14.1333 2.68938 13.9954 2.41364 13.7196C2.13788 13.4439 2 13.1124 2 12.7252V6.07426C2 5.85132 2.04987 5.64011 2.14961 5.44063C2.24936 5.24116 2.38723 5.07689 2.56323 4.94782L6.99718 1.61486C7.24323 1.42712 7.52444 1.33325 7.84081 1.33325C8.15718 1.33325 8.43919 1.42712 8.68685 1.61486L13.1208 4.94782C13.2968 5.07689 13.4347 5.24116 13.5344 5.44063C13.6342 5.64011 13.684 5.85132 13.684 6.07426V12.7252C13.684 13.1124 13.5462 13.4439 13.2704 13.7196C12.9947 13.9954 12.6632 14.1333 12.2759 14.1333H3.40809ZM3.40809 12.9649H12.2759C12.3459 12.9649 12.4033 12.9424 12.4482 12.8974C12.4932 12.8525 12.5156 12.7951 12.5156 12.7252V6.07426C12.5156 6.03431 12.5069 5.99811 12.4894 5.96566C12.4719 5.9332 12.4482 5.90449 12.4183 5.87953L7.98433 2.55406C7.94438 2.51911 7.89694 2.50164 7.84202 2.50164C7.78709 2.50164 7.73965 2.51911 7.69971 2.55406L3.26576 5.87953C3.2358 5.90449 3.21209 5.9332 3.1946 5.96566C3.17712 5.99811 3.16839 6.03431 3.16839 6.07426V12.7252C3.16839 12.7951 3.19086 12.8525 3.2358 12.8974C3.28075 12.9424 3.33818 12.9649 3.40809 12.9649Z",fill:"#595959"})),jt=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M7.99984 8.00004C8.3665 8.00004 8.68039 7.86949 8.9415 7.60837C9.20261 7.34726 9.33317 7.03337 9.33317 6.66671C9.33317 6.30004 9.20261 5.98615 8.9415 5.72504C8.68039 5.46393 8.3665 5.33337 7.99984 5.33337C7.63317 5.33337 7.31928 5.46393 7.05817 5.72504C6.79706 5.98615 6.6665 6.30004 6.6665 6.66671C6.6665 7.03337 6.79706 7.34726 7.05817 7.60837C7.31928 7.86949 7.63317 8.00004 7.99984 8.00004ZM7.99984 12.9C9.35539 11.6556 10.3609 10.525 11.0165 9.50837C11.6721 8.49171 11.9998 7.58893 11.9998 6.80004C11.9998 5.58893 11.6137 4.59726 10.8415 3.82504C10.0693 3.05282 9.12206 2.66671 7.99984 2.66671C6.87761 2.66671 5.93039 3.05282 5.15817 3.82504C4.38595 4.59726 3.99984 5.58893 3.99984 6.80004C3.99984 7.58893 4.32761 8.49171 4.98317 9.50837C5.63873 10.525 6.64428 11.6556 7.99984 12.9ZM7.99984 14.4167C7.91095 14.4167 7.82206 14.4 7.73317 14.3667C7.64428 14.3334 7.5665 14.2889 7.49984 14.2334C5.87761 12.8 4.6665 11.4695 3.8665 10.2417C3.0665 9.01393 2.6665 7.86671 2.6665 6.80004C2.6665 5.13337 3.20261 3.8056 4.27484 2.81671C5.34706 1.82782 6.58873 1.33337 7.99984 1.33337C9.41095 1.33337 10.6526 1.82782 11.7248 2.81671C12.7971 3.8056 13.3332 5.13337 13.3332 6.80004C13.3332 7.86671 12.9332 9.01393 12.1332 10.2417C11.3332 11.4695 10.1221 12.8 8.49984 14.2334C8.43317 14.2889 8.35539 14.3334 8.2665 14.3667C8.17761 14.4 8.08873 14.4167 7.99984 14.4167Z",fill:"#8C8C8C"})),It=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Ft=({state:e,isMobile:t,debouncedFetchSearchResults:a,selectedLocation:s,onSpecialtyClick:r,dispatch:d})=>{var p;const{t:h,locale:g}=c(),m=l(null),C=n((()=>u[g]),[g]),y=n((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:t?"border: 1px solid #d9d9d9":"none",height:t?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:t?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[t]),f=o((function(e){console.log(e)}),[a,d]);return w(m,(()=>{d({type:ht.ClickOutsideInputSpecialty})})),i.createElement(Et,{ref:m},i.createElement(L.Wrapper,null,i.createElement(L,{size:t?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(p=null==e?void 0:e.selectedSpecialty)||void 0===p?void 0:p.name)||"",rightSection:i.createElement(B,null),styles:y,onFocus:()=>d({type:ht.FocusInputSpecialty}),onChange:e=>{f(e.target.value)}})),"specialty"===e.focused&&i.createElement(St,null,i.createElement(Lt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{r&&r({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},i.createElement("div",{className:"image-item"},i.createElement(It,null)),i.createElement(b,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>i.createElement(Lt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),r&&r(Object.assign(Object.assign({},e),{total_doctor:0}))},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement(b,{size:"md"},e.name))))))},$t=({state:e,type:t,isMobile:a,isLoading:s,initalSearchValue:r,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,hideSpecialtySelection:h=!1,focusSearchInput:g,onSearch:m,dispatch:C})=>{var b;const{t:y}=c(),f=l(null),v=n((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),x=n((()=>"doctor"===t?y("booking.searchBar.placeholder.doctor"):"service"===t?y("booking.searchBar.placeholder.service"):"hospital"===t?y("booking.searchBar.placeholder.hospital"):"specialty"===t?y("booking.searchBar.placeholder.specialty"):""),[t]),E=n((()=>({root:{flex:1,"&.hide-specialty-selection":{".mantine-Input-rightSection":{display:"none"},input:{paddingLeft:"48px"},".mantine-Input-icon":{left:"0"}}}})),[]),S=n((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),k=n((()=>({input:{color:"#262626"}})),[]);w(f,(()=>{C({type:ht.ClickOutsideInputSearch})}));const O=o((function(i){C({type:ht.ChangeInputSearch,payload:i}),"function"!=typeof m&&(i.trim().length>pt[e.locale]||r||0===i.trim().length?p(i.trim(),e,t):(p.cancel(),C({type:ht.DisplayInitialSearchResults})))}),[C,e,t]),j=o((function(e){C({type:ht.SelectSpecialty,payload:e}),g()}),[C]);return i.createElement(Ct,{ref:f},"specialty"===t?i.createElement(L.Wrapper,{styles:E},i.createElement(L,{icon:i.createElement(A.Search,null),size:a?"md":"lg",placeholder:x,styles:k,value:e.searchKeywords,onFocus:()=>C({type:ht.FocusInputSearchSpecialty}),onChange:e=>{O(e.target.value)}})):i.createElement(i.Fragment,null,"service"===t?i.createElement(L.Wrapper,{styles:E},i.createElement(L,{icon:i.createElement(A.Search,null),size:a?"md":"lg",name:"search-results",placeholder:x,onFocus:()=>C({type:ht.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{O(e.target.value)}})):i.createElement(i.Fragment,null,a&&!h?i.createElement(i.Fragment,null,i.createElement(Ft,{state:e,isMobile:a,dispatch:C,debouncedFetchSearchResults:p,onSpecialtyClick:j}),i.createElement(L.Wrapper,{styles:E},i.createElement(L,{icon:i.createElement(A.Search,null),size:"md",placeholder:x,value:e.searchKeywords,name:"search-results",onFocus:()=>C({type:ht.FocusInputSearch}),onChange:e=>{O(e.target.value)}}))):i.createElement(L.Wrapper,{styles:E,className:h?"hide-specialty-selection":""},i.createElement(L,Object.assign({icon:i.createElement(A.Search,null),size:"lg",placeholder:x,styles:S,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{O(e.target.value)},onFocus:()=>C({type:ht.FocusInputSearch})},v,{rightSection:h?i.createElement(i.Fragment,null):i.createElement(Ft,{state:e,isMobile:a,dispatch:C,debouncedFetchSearchResults:p,onSpecialtyClick:j})})))),"search"===e.focused&&i.createElement(bt,null,i.createElement(wt,{type:t,state:e,results:(null===(b=e.searchResults)||void 0===b?void 0:b[t])||[],location:e.selectedLocation.name,dispatch:C,isLoading:s,typeInformation:d}))))},Mt=m.div`
563
563
  position: relative;
564
564
 
565
565
  ${f.mbDown} {
@@ -622,7 +622,7 @@ import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{us
622
622
  `,Pt=m(Y)`
623
623
  width: 12px;
624
624
  height: 18px;
625
- `,At=({state:e,isMobile:t,debouncedFetchCitiesByKeyword:a,selectedLocation:s,trackingAttributes:l,onLocationClick:d,dispatch:h})=>{const{t:g,locale:m}=c(),C=r(null),f=n((()=>l?{"data-event-category":l.dataEventCategory,"data-event-action":l.dataEventAction,"data-event-label":l.dataEventLabel}:{}),[l]),v=o((function(t){h({type:ht.ChangeInputLocation,payload:t}),t.trim().length>pt[e.locale]?a(t.trim()):(a.cancel(),h({type:ht.DisplayInitialCities}))}),[a,h]);return w(C,(()=>{h({type:ht.ClickOutsideInputLocation})})),i.createElement(Mt,{ref:C},i.createElement(L.Wrapper,null,i.createElement(L,Object.assign({size:t?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>h({type:ht.FocusInputLocation}),onChange:e=>{v(e.target.value)}},f))),"location"===e.focused&&i.createElement(Rt,null,i.createElement(Tt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;d&&d({name:g("booking.searchBar.allLocations"),id:p,slug:null===(e=u[m])||void 0===e?void 0:e.ALL})}},i.createElement(Pt,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},g("booking.searchBar.allLocations"))),e.cities.map((e=>i.createElement(Tt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),d&&d(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement(Pt,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},e.name))))))},Nt=m.div`
625
+ `,At=({state:e,isMobile:t,debouncedFetchCitiesByKeyword:a,selectedLocation:s,trackingAttributes:r,onLocationClick:d,dispatch:h})=>{const{t:g,locale:m}=c(),C=l(null),f=n((()=>r?{"data-event-category":r.dataEventCategory,"data-event-action":r.dataEventAction,"data-event-label":r.dataEventLabel}:{}),[r]),v=o((function(t){h({type:ht.ChangeInputLocation,payload:t}),t.trim().length>pt[e.locale]?a(t.trim()):(a.cancel(),h({type:ht.DisplayInitialCities}))}),[a,h]);return w(C,(()=>{h({type:ht.ClickOutsideInputLocation})})),i.createElement(Mt,{ref:C},i.createElement(L.Wrapper,null,i.createElement(L,Object.assign({size:t?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>h({type:ht.FocusInputLocation}),onChange:e=>{v(e.target.value)}},f))),"location"===e.focused&&i.createElement(Rt,null,i.createElement(Tt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;d&&d({name:g("booking.searchBar.allLocations"),id:p,slug:null===(e=u[m])||void 0===e?void 0:e.ALL})}},i.createElement(Pt,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},g("booking.searchBar.allLocations"))),e.cities.map((e=>i.createElement(Tt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),d&&d(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement(Pt,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},e.name))))))},Nt=m.div`
626
626
  display: flex;
627
627
  flex-wrap: wrap;
628
628
  row-gap: 8px;
@@ -705,7 +705,7 @@ import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{us
705
705
  text-align: center;
706
706
  }
707
707
  }
708
- `,zt=({state:e,isMobile:t,specialties:a,isLoading:o,dispatch:s})=>{const{t:r,locale:l}=c(),{selectedLocation:d}=e,p=n((()=>u[l]),[l]),h=n((()=>a.length>=9||e.searchKeywords.trim().length<=pt[e.locale]),[e.searchKeywords,a]);return i.createElement(i.Fragment,null,!t&&i.createElement(Vt,{color:"#E4E8EC"}),i.createElement(Nt,null,a.length>0&&!o&&i.createElement(i.Fragment,null,a.map(((e,t)=>t>=9?i.createElement(i.Fragment,null):i.createElement(Bt,{key:e.id,onClick:()=>(e=>{const t=`/${d.slug}/${p.DOCTOR}/${e}`;s({type:ht.NavigateTo,payload:t})})(e.slug)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name)))))),0===a.length&&!o&&i.createElement(b,{size:"sm",color:y.colors.gray400},r("booking.searchBar.noResults")),o&&Array(6).fill(void 0).map(((e,t)=>i.createElement(Bt,{key:"loading"+t},i.createElement("div",{className:"image-item"},i.createElement(S,{height:40,animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(S,{height:20,radius:"sm",animate:!0}))))))),h&&i.createElement(Dt,null,i.createElement("div",{className:"show-more",onClick:()=>{const e=`/${p.SPECIALTIES}`;s({type:ht.NavigateTo,payload:e})}},r("home.seeAll"))))},Kt=m.div`
708
+ `,Kt=({state:e,isMobile:t,specialties:a,isLoading:o,dispatch:s})=>{const{t:l,locale:r}=c(),{selectedLocation:d}=e,p=n((()=>u[r]),[r]),h=n((()=>a.length>=9||e.searchKeywords.trim().length<=pt[e.locale]),[e.searchKeywords,a]);return i.createElement(i.Fragment,null,!t&&i.createElement(Vt,{color:"#E4E8EC"}),i.createElement(Nt,null,a.length>0&&!o&&i.createElement(i.Fragment,null,a.map(((e,t)=>t>=9?i.createElement(i.Fragment,null):i.createElement(Bt,{key:e.id,onClick:()=>(e=>{const t=`/${d.slug}/${p.DOCTOR}/${e}`;s({type:ht.NavigateTo,payload:t})})(e.slug)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name)))))),0===a.length&&!o&&i.createElement(b,{size:"sm",color:y.colors.gray400},l("booking.searchBar.noResults")),o&&Array(6).fill(void 0).map(((e,t)=>i.createElement(Bt,{key:"loading"+t},i.createElement("div",{className:"image-item"},i.createElement(S,{height:40,animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(S,{height:20,radius:"sm",animate:!0}))))))),h&&i.createElement(Dt,null,i.createElement("div",{className:"show-more",onClick:()=>{const e=`/${p.SPECIALTIES}`;s({type:ht.NavigateTo,payload:e})}},l("home.seeAll"))))},zt=m.div`
709
709
  display: flex;
710
710
  gap: 5px;
711
711
  margin-top: 16px;
@@ -752,8 +752,8 @@ import{a as e}from"./tslib.es6-bda723ae.js";import*as t from"react";import i,{us
752
752
  border: 1px solid ${y.colors.white};
753
753
  margin-bottom: 5px;
754
754
  margin-right: 7px;
755
- `,Gt=({state:e,type:t,typeInformation:a,dispatch:o})=>{const{t:s}=c(),{selectedLocation:r}=e,l=n((()=>a[t].slug),[a,t]);return i.createElement(Kt,null,i.createElement(Ht,null,s("booking.searchBar.popularKey")),e.popularKeys.map((e=>i.createElement(_t,{key:e.id,onClick:()=>{var t;(t=e).url&&(window.location.href=t.url)}},e.keyword))),i.createElement(_t,{className:"view-all",onClick:()=>{const e=`/${r.slug}/${l}`;e&&o({type:ht.NavigateTo,payload:e})}},s("booking.searchBar.viewAll")))},Zt=m.div`
755
+ `,Gt=({state:e,type:t,typeInformation:a,dispatch:o})=>{const{t:s}=c(),{selectedLocation:l}=e,r=n((()=>a[t].slug),[a,t]);return i.createElement(zt,null,i.createElement(Ht,null,s("booking.searchBar.popularKey")),e.popularKeys.map((e=>i.createElement(_t,{key:e.id,onClick:()=>{var t;(t=e).url&&(window.location.href=t.url)}},e.keyword))),i.createElement(_t,{className:"view-all",onClick:()=>{const e=`/${l.slug}/${r}`;e&&o({type:ht.NavigateTo,payload:e})}},s("booking.searchBar.viewAll")))},Zt=m.div`
756
756
  background: rgba(255, 255, 255, 0.64);
757
757
  backdrop-filter: blur(12px);
758
758
  border-bottom: 1px solid ${y.colors.neutral100};
759
- `,Yt=({currentTab:e,isMobile:t,setCurrentTab:a})=>{const{t:o}=c(),s=n((()=>({root:{overflowY:t?"hidden":"initial",overflowX:t?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:t?"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:t?"14px":"16px",fontWeight:600,lineHeight:t?"22px":"24px"}})),[t]);return i.createElement(Zt,{className:"booking-search-tab"},i.createElement(P,null,i.createElement(O,{value:e,onTabChange:e=>{a(e)},styles:s},i.createElement(O.List,null,i.createElement(O.Tab,{value:"hospital"},o("booking.searchPopup.hospitals")),i.createElement(O.Tab,{value:"doctor"},o("booking.searchPopup.doctors")),i.createElement(O.Tab,{value:"service"},o("booking.searchPopup.services")),i.createElement(O.Tab,{value:"specialty"},o("booking.searchPopup.specialties"))))))};var Ut;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(Ut||(Ut={}));const Wt=({isMobile:e,careApiDomain:t,geoLocationPermission:g,geoLocationCoordinates:m,initialSelectedCity:C,initialSearchValue:b="",initTypeSearch:y="hospital",initSpecialty:f,careFrontDomain:v="/care",isDebug:x=!1,gaTrackingSearchBar:S,gaTrackingLocationSearch:L,autoCompleteDisabled:k=!1,inputSearchPlaceholder:O="",routerPush:F,onGeoLocationPermissionChange:$,onChangeLocation:M})=>{const{locale:R,t:T}=c(),P=r(null),A=r(null),[N,B]=a(y),{geoLocationPermission:D,geoLocationCoordinates:z}=V(),[K,_]=l(mt,ut,(t=>Object.assign(Object.assign({},t),{isDebug:x,isMobile:e,geoLocationPermission:g||D||"unset",geoLocationCoordinates:m||z||null,searchKeywords:b,initialSelectedCity:C||null,selectedLocation:C||t.selectedLocation||null,searchLocationKeywords:(null==C?void 0:C.name)||t.searchLocationKeywords,autoCompleteDisabled:k,inputSearchPlaceholder:O,locale:R}))),{navigateTo:H,focusedSpecialty:G,searchKeywords:Z,geoLocationPermission:Y,selectedLocation:U,selectedSpecialty:W,initialSelectedCity:Q,searchResults:q,isLoadingSearchResults:J}=K,{fetchCitiesByLocation:X,fetchCitiesByKeyword:ee,fetchSearchResults:te,fetchAllSpecialties:ie,fetchPopularKeys:ae}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(a,o={}){const n=`${t}${a}`;return e({type:ht.FetchCitiesStart}),fetch(st(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:ht.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(E.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(E.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:ht.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(E.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:ht.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(a,o,n,s){const r="specialty"===n?`${t}${E.GET_SEARCH_SPECIALTY}`:`${t}${E.GET_SEARCH_V2}`;e({type:ht.FetchSearchResultsStart});const{selectedLocation:l,geoLocationCoordinates:c,selectedSpecialty:d}=o;let u="";if(!l)return void e({type:ht.FetchSearchResultsFinish});u=l.id===p?"":l.id;const g=(null==c?void 0:c.lat)||"",m=(null==c?void 0:c.lng)||"",C=(null==d?void 0:d.id)>0?null==d?void 0:d.id:"",b=a.trim().length>pt[i]?a.trim():"";return fetch(st(r,{domain:t,searchType:n||"global",keyword:b,city:u===h?"":u,lat:g,lng:m,specialty_id:C},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"!==n&&(i=t.searches),"specialty"===n&&(i=b?t.specialties:t.default),e({type:ht.FetchSearchResultsComplete,payload:{key:n,searches:i||[]}}),s&&e({type:ht.UpdateInitialSearchResults,payload:{key:n,searches:i||[]}})})).catch((e=>{console.log("error loading search results",{url:r,error:e})})).finally((()=>e({type:ht.FetchSearchResultsFinish})))}),[i,t,e]),fetchAllSpecialties:o((function(){const a=`${t}${E.GET_SEARCH_SPECIALTY}`;return fetch(st(a,{domain:t,searchType:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:ht.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:a,error:e})}))}),[i,t,e]),fetchPopularKeys:o((function(a){const o=`${t}${E.GET_SEARCH_POPULAR_KEY}`;return fetch(st(o,{domain:t,searchType:Ut[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:ht.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e])}}({dispatch:_,locale:R,careApiDomain:t}),oe=n((()=>u[R]),[R]),ne=n((()=>({doctor:{name:T("booking.searchPopup.doctors"),icon:i.createElement(kt,null),slug:oe.DOCTOR},service:{name:T("booking.searchPopup.services"),icon:i.createElement(Ot,null),slug:oe.SERVICE},hospital:{name:T("booking.searchPopup.hospitals"),icon:i.createElement(jt,null),slug:oe.HOSPITAL},specialty:{name:T("booking.searchPopup.specialties"),icon:i.createElement(It,null),slug:oe.SPECIALTIES}})),[N]),se=n((()=>d(ee,400)),[ee]),re=n((()=>d(te,400)),[te]),le=o((function(e){_({type:ht.SelectLocation,payload:e}),ce(),M&&M(e)}),[T,_]);function ce(){var e;P.current&&(null===(e=P.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return w(A,(()=>{_({type:ht.ClickOutsideInputSearchSpecialty})})),s((()=>{var t;"denied"===Y||Q||_({type:ht.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:p,slug:null===(t=u[R])||void 0===t?void 0:t.ALL}}),$&&$(Y,K.geoLocationCoordinates),e&&"granted"===Y&&U&&_({type:ht.FocusInputSearch}),X({coordinates:K.geoLocationCoordinates})}),[Y]),s((()=>{const e=f||{name:T("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:oe.SPECIALTIES};K.selectedSpecialty||_({type:ht.SelectSpecialty,payload:e})}),[f,K.selectedSpecialty]),s((()=>{ie()}),[]),s((()=>{ae(N)}),[N]),s((()=>{H&&(F?F(H):window.location.href=`${v}${H}`)}),[H]),s((()=>{te(K.searchKeywords,K,N,!0)}),[U,W,N]),i.createElement(lt,{ref:P},i.createElement(Yt,{currentTab:N,setCurrentTab:B,isMobile:e}),i.createElement(ct,{className:"booking-search-container"},i.createElement(dt,null,i.createElement("div",{ref:A},i.createElement(j,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==N&&i.createElement(At,{state:K,isMobile:e,dispatch:_,debouncedFetchCitiesByKeyword:se,selectedLocation:U,onLocationClick:le,trackingAttributes:L}),i.createElement($t,{type:N,isMobile:e,state:K,dispatch:_,debouncedFetchSearchResults:re,initalSearchValue:b,focusSearchInput:ce,typeInformation:ne,trackingAttributes:S,isLoading:J}),i.createElement(I,{size:e?"md":"lg",fullWidth:e,onClick:function(){let e="";const{slug:t}=ne[N];let i="";("doctor"===N||"hospital"===N)&&K.selectedSpecialty.id>0&&(i=`&specialtyId=${K.selectedSpecialty.id}`),e="specialty"===N?`/${t}?q=${Z}${i}`:`/${U.slug}/${t}?q=${Z}${i}`,e&&_({type:ht.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},T("booking.searchBar.searchButton"))),"specialty"!==N&&K.popularKeys.length>0&&i.createElement(Gt,{type:N,state:K,typeInformation:ne,dispatch:_}),"specialty"===N&&"search"===G&&i.createElement(zt,{state:K,isMobile:e,dispatch:_,specialties:(null==q?void 0:q.specialty)||[],isLoading:J})))))};var Qt;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Qt||(Qt={}));var qt=Object.freeze({__proto__:null,get RedirectType(){return Qt}});export{rt as B,B as C,Wt as a,qt as t};
759
+ `,Yt=({currentTab:e,hideTabBookingSearch:t=[],isMobile:a,setCurrentTab:o})=>{const{t:s}=c(),l=n((()=>({root:{overflowY:a?"hidden":"initial",overflowX:a?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:a?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:a?"14px":"16px",fontWeight:600,lineHeight:a?"22px":"24px"}})),[a]),r=(()=>{const{t:e}=c();return[{value:"hospital",label:e("booking.searchPopup.hospitals")},{value:"doctor",label:e("booking.searchPopup.doctors")},{value:"service",label:e("booking.searchPopup.services")},{value:"specialty",label:e("booking.searchPopup.specialties")}]})(),d=n((()=>r.filter((e=>!t.includes(e.value)))||[]),[t,r]);return i.createElement(Zt,{className:"booking-search-tab"},i.createElement(P,null,i.createElement(O,{value:e,onTabChange:e=>{o(e)},styles:l},i.createElement(O.List,null,d.map((e=>i.createElement(O.Tab,{value:e.value,key:e.value},s(e.label))))))))};var Ut;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(Ut||(Ut={}));const Wt=({isMobile:e,careApiDomain:t,geoLocationPermission:g,geoLocationCoordinates:m,initialSelectedCity:C,initialSearchValue:b="",initTypeSearch:y="hospital",initSpecialty:f,careFrontDomain:v="/care",isDebug:x=!1,gaTrackingSearchBar:S,gaTrackingLocationSearch:L,autoCompleteDisabled:k=!1,inputSearchPlaceholder:O="",hideTabBookingSearch:F=[],hideSpecialtySelection:$=!1,hidePopularSearchKeys:M=!1,routerPush:R,onGeoLocationPermissionChange:T,onChangeLocation:P})=>{const{locale:A,t:N}=c(),B=l(null),D=l(null),[K,z]=a(y),{geoLocationPermission:_,geoLocationCoordinates:H}=V(),[G,Z]=r(mt,ut,(t=>Object.assign(Object.assign({},t),{isDebug:x,isMobile:e,geoLocationPermission:g||_||"unset",geoLocationCoordinates:m||H||null,searchKeywords:b,initialSelectedCity:C||null,selectedLocation:C||t.selectedLocation||null,searchLocationKeywords:(null==C?void 0:C.name)||t.searchLocationKeywords,autoCompleteDisabled:k,inputSearchPlaceholder:O,locale:A}))),{navigateTo:Y,focusedSpecialty:U,searchKeywords:W,geoLocationPermission:Q,selectedLocation:q,selectedSpecialty:J,initialSelectedCity:X,searchResults:ee,isLoadingSearchResults:te}=G,{fetchCitiesByLocation:ie,fetchCitiesByKeyword:ae,fetchSearchResults:oe,fetchAllSpecialties:ne,fetchPopularKeys:se}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(a,o={}){const n=`${t}${a}`;return e({type:ht.FetchCitiesStart}),fetch(st(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:ht.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(E.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(E.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:ht.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(E.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:ht.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(a,o,n,s){const l="specialty"===n?`${t}${E.GET_SEARCH_SPECIALTY}`:`${t}${E.GET_SEARCH_V2}`;e({type:ht.FetchSearchResultsStart});const{selectedLocation:r,geoLocationCoordinates:c,selectedSpecialty:d}=o;let u="";if(!r)return void e({type:ht.FetchSearchResultsFinish});u=r.id===p?"":r.id;const g=(null==c?void 0:c.lat)||"",m=(null==c?void 0:c.lng)||"",C=(null==d?void 0:d.id)>0?null==d?void 0:d.id:"",b=a.trim().length>pt[i]?a.trim():"";return fetch(st(l,{domain:t,searchType:n||"global",keyword:b,city:u===h?"":u,lat:g,lng:m,specialty_id:C},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"!==n&&(i=t.searches),"specialty"===n&&(i=b?t.specialties:t.default),e({type:ht.FetchSearchResultsComplete,payload:{key:n,searches:i||[]}}),s&&e({type:ht.UpdateInitialSearchResults,payload:{key:n,searches:i||[]}})})).catch((e=>{console.log("error loading search results",{url:l,error:e})})).finally((()=>e({type:ht.FetchSearchResultsFinish})))}),[i,t,e]),fetchAllSpecialties:o((function(){const a=`${t}${E.GET_SEARCH_SPECIALTY}`;return fetch(st(a,{domain:t,searchType:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:ht.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:a,error:e})}))}),[i,t,e]),fetchPopularKeys:o((function(a){const o=`${t}${E.GET_SEARCH_POPULAR_KEY}`;return fetch(st(o,{domain:t,searchType:Ut[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:ht.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e])}}({dispatch:Z,locale:A,careApiDomain:t}),le=n((()=>u[A]),[A]),re=n((()=>({doctor:{name:N("booking.searchPopup.doctors"),icon:i.createElement(kt,null),slug:le.DOCTOR},service:{name:N("booking.searchPopup.services"),icon:i.createElement(Ot,null),slug:le.SERVICE},hospital:{name:N("booking.searchPopup.hospitals"),icon:i.createElement(jt,null),slug:le.HOSPITAL},specialty:{name:N("booking.searchPopup.specialties"),icon:i.createElement(It,null),slug:le.SPECIALTIES}})),[K]),ce=n((()=>d(ae,400)),[ae]),de=n((()=>d(oe,400)),[oe]),pe=o((function(e){Z({type:ht.SelectLocation,payload:e}),ue(),P&&P(e)}),[N,Z]);function ue(){var e;B.current&&(null===(e=B.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return w(D,(()=>{Z({type:ht.ClickOutsideInputSearchSpecialty})})),s((()=>{var t;"denied"===Q||X||Z({type:ht.SelectLocation,payload:{name:N("booking.searchBar.allLocations"),id:p,slug:null===(t=u[A])||void 0===t?void 0:t.ALL}}),T&&T(Q,G.geoLocationCoordinates),e&&"granted"===Q&&q&&Z({type:ht.FocusInputSearch}),ie({coordinates:G.geoLocationCoordinates})}),[Q]),s((()=>{const e=f||{name:N("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:le.SPECIALTIES};G.selectedSpecialty||Z({type:ht.SelectSpecialty,payload:e})}),[f,G.selectedSpecialty]),s((()=>{ne()}),[]),s((()=>{se(K)}),[K]),s((()=>{Y&&(R?R(Y):window.location.href=`${v}${Y}`)}),[Y]),s((()=>{oe(G.searchKeywords,G,K,!0)}),[q,J,K]),i.createElement(rt,{ref:B},i.createElement(Yt,{currentTab:K,setCurrentTab:z,isMobile:e,hideTabBookingSearch:F}),i.createElement(ct,{className:"booking-search-container"},i.createElement(dt,null,i.createElement("div",{ref:D},i.createElement(j,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==K&&i.createElement(At,{state:G,isMobile:e,dispatch:Z,debouncedFetchCitiesByKeyword:ce,selectedLocation:q,onLocationClick:pe,trackingAttributes:L}),i.createElement($t,{type:K,isMobile:e,state:G,dispatch:Z,debouncedFetchSearchResults:de,initalSearchValue:b,focusSearchInput:ue,typeInformation:re,trackingAttributes:S,isLoading:te,hideSpecialtySelection:$}),i.createElement(I,{size:e?"md":"lg",fullWidth:e,onClick:function(){let e="";const{slug:t}=re[K];let i="";("doctor"===K||"hospital"===K)&&G.selectedSpecialty.id>0&&(i=`&specialtyId=${G.selectedSpecialty.id}`),e="specialty"===K?`/${t}?q=${W}${i}`:`/${q.slug}/${t}?q=${W}${i}`,e&&Z({type:ht.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},N("booking.searchBar.searchButton"))),!M&&"specialty"!==K&&G.popularKeys.length>0&&i.createElement(Gt,{type:K,state:G,typeInformation:re,dispatch:Z}),"specialty"===K&&"search"===U&&i.createElement(Kt,{state:G,isMobile:e,dispatch:Z,specialties:(null==ee?void 0:ee.specialty)||[],isLoading:te})))))};var Qt;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Qt||(Qt={}));var qt=Object.freeze({__proto__:null,get RedirectType(){return Qt}});export{lt as B,B as C,Wt as a,qt as t};
@@ -1 +1 @@
1
- export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE,O as OnboardingStep}from"./Onboarding-fd9a31b0.js";
1
+ export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE,O as OnboardingStep}from"./Onboarding-333aa9dc.js";
@@ -1 +1 @@
1
- import{useMemo as e}from"react";import{L as a}from"./Onboarding-fd9a31b0.js";import{u as n}from"./useTranslations-0ec9b563.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"./Onboarding-333aa9dc.js";import{u as n}from"./useTranslations-2430a2a0.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-830e842d.js";import{useState as t,useEffect as i,useCallback as e}from"react";import{a as l}from"./getDynamicHealthTool-29f9213b.js";const n=n=>{const[r,a]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield l(n);a(o)}))}),[l,n]);const s=e((o=>{var t;return(null===(t=r.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[r]);return{allTools:r,getHealthToolLink:s}};export{n as u};
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-bda723ae.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-a43609a0.js";import{u as a}from"./useUniqueId-dc4bcd5d.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-830e842d.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-198da3c2.js";import{u as a}from"./useUniqueId-159be8a3.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{useContext as o,useMemo as a}from"react";import{T as r}from"./translationsContext-1f3d1c41.js";import e from"string-format";function t(){const{values:t,locale:n}=o(r)||{locale:"en-PH"};return a((()=>({t:(o,a)=>t?t[o]?a?e(t[o]||o,a):t[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${n}`),a?e(o,a):o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:n})),[t,n])}export{t as u};
1
+ import{useContext as o,useMemo as a}from"react";import{T as r}from"./translationsContext-bf4a1818.js";import e from"string-format";function t(){const{values:t,locale:n}=o(r)||{locale:"en-PH"};return a((()=>({t:(o,a)=>t?t[o]?a?e(t[o]||o,a):t[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${n}`),a?e(o,a):o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:n})),[t,n])}export{t as u};
@@ -1 +1 @@
1
- import{L as a}from"./Onboarding-fd9a31b0.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"./Onboarding-333aa9dc.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};