@hhgtech/hhg-components 1.26.73 → 1.26.74

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 (269) hide show
  1. package/build/babyGrowth.js +8 -8
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components.js +1 -1
  5. package/build/constants.js +1 -1
  6. package/build/{core-58abe73a.js → core-43cfee5e.js} +1 -1
  7. package/build/{dataTransform-cc89d72d.js → dataTransform-1273ddfa.js} +1 -1
  8. package/build/ecom.js +1 -1
  9. package/build/esm/babyGrowth.js +2 -2
  10. package/build/esm/cache.js +1 -1
  11. package/build/esm/care.js +1 -1
  12. package/build/esm/components.js +1 -1
  13. package/build/esm/constants.js +1 -1
  14. package/build/esm/{core-78831e26.js → core-5b3bad11.js} +1 -1
  15. package/build/esm/{dataTransform-1c8ff733.js → dataTransform-25127d1d.js} +1 -1
  16. package/build/esm/ecom.js +1 -1
  17. package/build/esm/{fixedBottomAdBlock-2289f247.js → fixedBottomAdBlock-2ca1d20d.js} +1 -1
  18. package/build/esm/footer.js +1 -1
  19. package/build/esm/gAssets.js +1 -1
  20. package/build/esm/{getDynamicHealthTool-90793ba5.js → getDynamicHealthTool-efe0abfb.js} +1 -1
  21. package/build/esm/{getSocialList-e9cd6d91.js → getSocialList-cdec2720.js} +1 -1
  22. package/build/esm/hooks.js +1 -1
  23. package/build/esm/i18n.js +1 -1
  24. package/build/esm/{index-cac42c1a.js → index-0978b65e.js} +1 -1
  25. package/build/esm/index-0e3d58de.js +1 -0
  26. package/build/esm/{index-4306c019.js → index-1743f390.js} +1 -1
  27. package/build/esm/{index-e9eccfd1.js → index-1ca70bd3.js} +1 -1
  28. package/build/esm/{index-e1fabe21.js → index-22ae7777.js} +1 -1
  29. package/build/esm/{index-2322501a.js → index-271fc98b.js} +1 -1
  30. package/build/esm/index-301a9727.js +1 -0
  31. package/build/esm/{index-379e2e04.js → index-330e4653.js} +1 -1
  32. package/build/esm/{index-27dac1d2.js → index-52f28da2.js} +1 -1
  33. package/build/esm/{index-bd6fff6a.js → index-5501c230.js} +1 -1
  34. package/build/esm/{index-09c71638.js → index-6b87433b.js} +6 -6
  35. package/build/esm/{index-b55a48f3.js → index-72d1d107.js} +1 -1
  36. package/build/esm/{index-e2b6628b.js → index-79670a33.js} +1 -1
  37. package/build/esm/{index-ee79c397.js → index-8351a171.js} +1 -1
  38. package/build/esm/{index-6bf13551.js → index-848273cb.js} +1 -1
  39. package/build/esm/{index-d26ba6c1.js → index-8b7a4734.js} +1 -1
  40. package/build/esm/{index-660c9993.js → index-a65114be.js} +1 -1
  41. package/build/esm/index-aa9f006b.js +1 -0
  42. package/build/esm/{index-427d9690.js → index-b8ed6d86.js} +1 -1
  43. package/build/esm/index-b943da6f.js +1 -0
  44. package/build/esm/{index-29a7b961.js → index-be1ae7f6.js} +1 -1
  45. package/build/esm/{index-d91f335c.js → index-c508db4d.js} +1 -1
  46. package/build/esm/{index-1da35a24.js → index-ca6d12e8.js} +1 -1
  47. package/build/esm/{index-993bfe79.js → index-f6d1147e.js} +1 -1
  48. package/build/esm/index.js +1 -1
  49. package/build/esm/{index.styled-4e66a7ef.js → index.styled-1da5c156.js} +1 -1
  50. package/build/esm/{index.styled-814e4704.js → index.styled-372456cf.js} +1 -1
  51. package/build/esm/{index.styled-ddf38d67.js → index.styled-896f7649.js} +1 -1
  52. package/build/esm/{index.styled-07189132.js → index.styled-8f552444.js} +6 -6
  53. package/build/esm/lead.js +1 -1
  54. package/build/esm/mantine.js +1 -1
  55. package/build/esm/misc.js +1 -1
  56. package/build/esm/navigation.js +1 -1
  57. package/build/esm/onboarding.js +1 -1
  58. package/build/esm/pwg.js +1 -1
  59. package/build/esm/{routing-49b02ef4.js → routing-e77bfb52.js} +1 -1
  60. package/build/esm/{screenSizeContext-4ba69e1d.js → screenSizeContext-8cb377aa.js} +4 -4
  61. package/build/esm/together.js +1 -1
  62. package/build/esm/{translationsProvider-9f4f07c7.js → translationsProvider-37784c00.js} +1 -1
  63. package/build/esm/{types-5dd64b84.js → types-8b6efb19.js} +1 -1
  64. package/build/esm/{types-cbc770f2.js → types-93e89ffe.js} +1 -1
  65. package/build/esm/types.js +1 -1
  66. package/build/esm/useHealthToolCache-8d9d5324.js +1 -0
  67. package/build/esm/{useRafState-a821a326.js → useRafState-64324016.js} +1 -1
  68. package/build/esm/useTranslations-8e056e7a.js +1 -0
  69. package/build/esm/{utils-811a83e5.js → utils-8bcfea2d.js} +6 -6
  70. package/build/esm/vaccination.js +5 -5
  71. package/build/fixedBottomAdBlock-cc4e65d4.js +1 -0
  72. package/build/footer.js +1 -1
  73. package/build/gAssets.js +1 -1
  74. package/build/getDynamicHealthTool-b87c4bce.js +1 -0
  75. package/build/{getSocialList-9db8b91d.js → getSocialList-140872aa.js} +1 -1
  76. package/build/hooks.js +1 -1
  77. package/build/i18n.js +1 -1
  78. package/build/{index-bf6f99ad.js → index-02854b87.js} +1 -1
  79. package/build/{index-7d4a45a0.js → index-066d40b0.js} +1 -1
  80. package/build/{index-3d9e18ef.js → index-0e97ca3a.js} +1 -1
  81. package/build/{index-2927bfec.js → index-22636553.js} +1 -1
  82. package/build/{index-b44ec8c0.js → index-3648abb2.js} +1 -1
  83. package/build/{index-90898016.js → index-5f523ace.js} +1 -1
  84. package/build/{index-7609dab9.js → index-5f661406.js} +1 -1
  85. package/build/{index-3cf07d72.js → index-662ecb82.js} +1 -1
  86. package/build/{index-901a6560.js → index-8cc81676.js} +1 -1
  87. package/build/{index-da41cb71.js → index-92a238c5.js} +1 -1
  88. package/build/{index-985b6ac6.js → index-9b0d6825.js} +1 -1
  89. package/build/{index-b2a58c46.js → index-9ff1577c.js} +1 -1
  90. package/build/{index-5067e711.js → index-a2e9d5c4.js} +1 -1
  91. package/build/{index-baa581f9.js → index-ab31e997.js} +1 -1
  92. package/build/{index-f9f1c50a.js → index-b53ff956.js} +1 -1
  93. package/build/index-b6f26cfb.js +1 -0
  94. package/build/{index-84241083.js → index-ba665467.js} +1 -1
  95. package/build/{index-df593bbc.js → index-bbba31c3.js} +1 -1
  96. package/build/{index-1ee1be98.js → index-c11adcb5.js} +1 -1
  97. package/build/{index-6cf880e2.js → index-c627323c.js} +1 -1
  98. package/build/{index-5be31d81.js → index-db24cc2b.js} +1 -1
  99. package/build/{index-c859c654.js → index-df0753a4.js} +1 -1
  100. package/build/{index-f5c74425.js → index-e91bfa01.js} +1 -1
  101. package/build/{index-6817b5d7.js → index-f88ab2a2.js} +1 -1
  102. package/build/index.js +1 -1
  103. package/build/{index.styled-5e35b4ce.js → index.styled-6fc782db.js} +1 -1
  104. package/build/{index.styled-27887426.js → index.styled-d7623e58.js} +1 -1
  105. package/build/{index.styled-75d8a80f.js → index.styled-e08cb40a.js} +1 -1
  106. package/build/{index.styled-f5149bf5.js → index.styled-fe39278e.js} +4 -4
  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/onboarding.js +1 -1
  112. package/build/pwg.js +1 -1
  113. package/build/{routing-b871530b.js → routing-4d26e8ff.js} +1 -1
  114. package/build/{screenSizeContext-798a1742.js → screenSizeContext-4c55b105.js} +3 -3
  115. package/build/together.js +1 -1
  116. package/build/{translationsProvider-dc53208d.js → translationsProvider-64a6d06d.js} +1 -1
  117. package/build/{types-352a87c0.js → types-27fa93fb.js} +37 -37
  118. package/build/{types-da15ca5e.js → types-e9ebce8d.js} +1 -1
  119. package/build/types.js +1 -1
  120. package/build/useHealthToolCache-81599b82.js +1 -0
  121. package/build/{useRafState-d2093ab3.js → useRafState-53ad73f3.js} +1 -1
  122. package/build/{useTranslations-f990381a.js → useTranslations-e6471450.js} +1 -1
  123. package/build/{utils-e21fba9c.js → utils-5a006e3f.js} +12 -12
  124. package/build/vaccination.js +1 -1
  125. package/package.json +1 -1
  126. package/build/esm/index-00052e33.js +0 -1
  127. package/build/esm/index-0a507ebb.js +0 -1
  128. package/build/esm/index-18ad34a3.js +0 -1
  129. package/build/esm/index-5124a84f.js +0 -1
  130. package/build/esm/useHealthToolCache-5e949049.js +0 -1
  131. package/build/esm/useTranslations-5d864a21.js +0 -1
  132. package/build/fixedBottomAdBlock-b0496596.js +0 -1
  133. package/build/getDynamicHealthTool-3940077b.js +0 -1
  134. package/build/index-e7cd9b61.js +0 -1
  135. package/build/useHealthToolCache-eacc0d4b.js +0 -1
  136. /package/build/{BMI_BOYS.percentile.monthly-6916b482.js → BMI_BOYS.percentile.monthly-77a4c29c.js} +0 -0
  137. /package/build/{BMI_BOYS.percentile.weekly-264f0d68.js → BMI_BOYS.percentile.weekly-f8b2630e.js} +0 -0
  138. /package/build/{BMI_BOYS.percentile.yearly-09dd1a3b.js → BMI_BOYS.percentile.yearly-e44fbf71.js} +0 -0
  139. /package/build/{BMI_BOYS.zscore.monthly-b37c78c6.js → BMI_BOYS.zscore.monthly-f9c3c88d.js} +0 -0
  140. /package/build/{BMI_BOYS.zscore.weekly-ca9e3e33.js → BMI_BOYS.zscore.weekly-8f2f9d5a.js} +0 -0
  141. /package/build/{BMI_BOYS.zscore.yearly-71ddc992.js → BMI_BOYS.zscore.yearly-5f7c828e.js} +0 -0
  142. /package/build/{BMI_GIRLS.percentile.monthly-6d9a39d4.js → BMI_GIRLS.percentile.monthly-5d382a7a.js} +0 -0
  143. /package/build/{BMI_GIRLS.percentile.weekly-43cf5db5.js → BMI_GIRLS.percentile.weekly-73cb39e8.js} +0 -0
  144. /package/build/{BMI_GIRLS.percentile.yearly-17088c48.js → BMI_GIRLS.percentile.yearly-93348ff5.js} +0 -0
  145. /package/build/{BMI_GIRLS.zscore.monthly-e9fa0275.js → BMI_GIRLS.zscore.monthly-6ab97291.js} +0 -0
  146. /package/build/{BMI_GIRLS.zscore.weekly-2157e7a1.js → BMI_GIRLS.zscore.weekly-a5284fc2.js} +0 -0
  147. /package/build/{BMI_GIRLS.zscore.yearly-c60a101a.js → BMI_GIRLS.zscore.yearly-6055b98d.js} +0 -0
  148. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-691894e7.js → HEAD CIRCUM_BOYS.percentile.monthly-0d70efbd.js} +0 -0
  149. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-453777e8.js → HEAD CIRCUM_BOYS.percentile.weekly-8dbd100d.js} +0 -0
  150. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-0a5c8410.js → HEAD CIRCUM_BOYS.percentile.yearly-a47b8514.js} +0 -0
  151. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e9a0e8e1.js → HEAD CIRCUM_BOYS.zscore.monthly-7dee2a8f.js} +0 -0
  152. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-1b7a4110.js → HEAD CIRCUM_BOYS.zscore.weekly-a3e28b9f.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-2a9854b9.js → HEAD CIRCUM_BOYS.zscore.yearly-3660b820.js} +0 -0
  154. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-af105b74.js → HEAD CIRCUM_GIRLS.percentile.monthly-9c2a6ab2.js} +0 -0
  155. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1fa12191.js → HEAD CIRCUM_GIRLS.percentile.weekly-890fd6e0.js} +0 -0
  156. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-40d63fb5.js → HEAD CIRCUM_GIRLS.percentile.yearly-f995ac04.js} +0 -0
  157. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-7d8fdde8.js → HEAD CIRCUM_GIRLS.zscore.monthly-820df9f2.js} +0 -0
  158. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-91fff26c.js → HEAD CIRCUM_GIRLS.zscore.weekly-c3874b49.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4f42f764.js → HEAD CIRCUM_GIRLS.zscore.yearly-fda533c7.js} +0 -0
  160. /package/build/{HEIGHT_BOYS.percentile.monthly-70b3da74.js → HEIGHT_BOYS.percentile.monthly-11648401.js} +0 -0
  161. /package/build/{HEIGHT_BOYS.percentile.weekly-65ca22d8.js → HEIGHT_BOYS.percentile.weekly-429504b2.js} +0 -0
  162. /package/build/{HEIGHT_BOYS.percentile.yearly-00c27f61.js → HEIGHT_BOYS.percentile.yearly-f0ec836f.js} +0 -0
  163. /package/build/{HEIGHT_BOYS.zscore.monthly-d649a610.js → HEIGHT_BOYS.zscore.monthly-32fc1272.js} +0 -0
  164. /package/build/{HEIGHT_BOYS.zscore.weekly-36a74af3.js → HEIGHT_BOYS.zscore.weekly-4860520b.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.zscore.yearly-7cd6e870.js → HEIGHT_BOYS.zscore.yearly-99455a68.js} +0 -0
  166. /package/build/{HEIGHT_GIRLS.percentile.monthly-1dd23262.js → HEIGHT_GIRLS.percentile.monthly-4628dbd7.js} +0 -0
  167. /package/build/{HEIGHT_GIRLS.percentile.weekly-ddb979a6.js → HEIGHT_GIRLS.percentile.weekly-58083733.js} +0 -0
  168. /package/build/{HEIGHT_GIRLS.percentile.yearly-8c84cd63.js → HEIGHT_GIRLS.percentile.yearly-507d9462.js} +0 -0
  169. /package/build/{HEIGHT_GIRLS.zscore.monthly-4e247985.js → HEIGHT_GIRLS.zscore.monthly-9ed29729.js} +0 -0
  170. /package/build/{HEIGHT_GIRLS.zscore.weekly-5c495557.js → HEIGHT_GIRLS.zscore.weekly-8052af1f.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.zscore.yearly-c8642134.js → HEIGHT_GIRLS.zscore.yearly-c952ce2e.js} +0 -0
  172. /package/build/{Onboarding-e7188dcb.js → Onboarding-386da25f.js} +0 -0
  173. /package/build/{Visible-df340d91.js → Visible-53280271.js} +0 -0
  174. /package/build/{WEIGHT_BOYS.percentile.monthly-6c814cc3.js → WEIGHT_BOYS.percentile.monthly-e6601f9b.js} +0 -0
  175. /package/build/{WEIGHT_BOYS.percentile.weekly-cb49479e.js → WEIGHT_BOYS.percentile.weekly-ea46475b.js} +0 -0
  176. /package/build/{WEIGHT_BOYS.percentile.yearly-310ec306.js → WEIGHT_BOYS.percentile.yearly-84e7d3ec.js} +0 -0
  177. /package/build/{WEIGHT_BOYS.zscore.monthly-4de3ae44.js → WEIGHT_BOYS.zscore.monthly-ea5ed58c.js} +0 -0
  178. /package/build/{WEIGHT_BOYS.zscore.weekly-53abb5f4.js → WEIGHT_BOYS.zscore.weekly-59313399.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.zscore.yearly-c8117291.js → WEIGHT_BOYS.zscore.yearly-7528dce6.js} +0 -0
  180. /package/build/{WEIGHT_GIRLS.percentile.monthly-db9a7315.js → WEIGHT_GIRLS.percentile.monthly-186272c2.js} +0 -0
  181. /package/build/{WEIGHT_GIRLS.percentile.weekly-acc04e6d.js → WEIGHT_GIRLS.percentile.weekly-12a8714d.js} +0 -0
  182. /package/build/{WEIGHT_GIRLS.percentile.yearly-ea22f915.js → WEIGHT_GIRLS.percentile.yearly-84b7fa51.js} +0 -0
  183. /package/build/{WEIGHT_GIRLS.zscore.monthly-eb0d4641.js → WEIGHT_GIRLS.zscore.monthly-31d813d6.js} +0 -0
  184. /package/build/{WEIGHT_GIRLS.zscore.weekly-13d8d9df.js → WEIGHT_GIRLS.zscore.weekly-071a7aa3.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.zscore.yearly-d0c19464.js → WEIGHT_GIRLS.zscore.yearly-c8945097.js} +0 -0
  186. /package/build/{constants-c87791c7.js → constants-253fe7b7.js} +0 -0
  187. /package/build/{cookieHelper-d25da3c5.js → cookieHelper-0bc3ae2b.js} +0 -0
  188. /package/build/{dataTransform-458eddd0.js → dataTransform-fd058bf8.js} +0 -0
  189. /package/build/esm/{BMI_BOYS.percentile.monthly-5d0bddcf.js → BMI_BOYS.percentile.monthly-5664e5a5.js} +0 -0
  190. /package/build/esm/{BMI_BOYS.percentile.weekly-f3768602.js → BMI_BOYS.percentile.weekly-fa644983.js} +0 -0
  191. /package/build/esm/{BMI_BOYS.percentile.yearly-ec0eb767.js → BMI_BOYS.percentile.yearly-b0285e70.js} +0 -0
  192. /package/build/esm/{BMI_BOYS.zscore.monthly-ae6d907e.js → BMI_BOYS.zscore.monthly-7dba0f4c.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.zscore.weekly-acc97bac.js → BMI_BOYS.zscore.weekly-1c82dd10.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.zscore.yearly-2a460c01.js → BMI_BOYS.zscore.yearly-4aecd23a.js} +0 -0
  195. /package/build/esm/{BMI_GIRLS.percentile.monthly-cbdb3a1c.js → BMI_GIRLS.percentile.monthly-54a89421.js} +0 -0
  196. /package/build/esm/{BMI_GIRLS.percentile.weekly-38e052d0.js → BMI_GIRLS.percentile.weekly-2b73d497.js} +0 -0
  197. /package/build/esm/{BMI_GIRLS.percentile.yearly-5c5c1bad.js → BMI_GIRLS.percentile.yearly-9c0ad218.js} +0 -0
  198. /package/build/esm/{BMI_GIRLS.zscore.monthly-e25a44b5.js → BMI_GIRLS.zscore.monthly-5c828983.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.zscore.weekly-993f2899.js → BMI_GIRLS.zscore.weekly-3edb5bd4.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.zscore.yearly-20d1a9dc.js → BMI_GIRLS.zscore.yearly-a27e1de9.js} +0 -0
  201. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c5bde274.js → HEAD CIRCUM_BOYS.percentile.monthly-bb1e5cb7.js} +0 -0
  202. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-610472b1.js → HEAD CIRCUM_BOYS.percentile.weekly-68abee8b.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d47e72d1.js → HEAD CIRCUM_BOYS.percentile.yearly-6ab92665.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-bab70ead.js → HEAD CIRCUM_BOYS.zscore.monthly-bcc125a3.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-28966364.js → HEAD CIRCUM_BOYS.zscore.weekly-c57bd1e8.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-f8309fbe.js → HEAD CIRCUM_BOYS.zscore.yearly-72da607f.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-9281136e.js → HEAD CIRCUM_GIRLS.percentile.monthly-c55ba2b7.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-148204af.js → HEAD CIRCUM_GIRLS.percentile.weekly-9aba7c72.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-86c5d692.js → HEAD CIRCUM_GIRLS.percentile.yearly-a5c3489a.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-729ddc97.js → HEAD CIRCUM_GIRLS.zscore.monthly-bef3ad9f.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3379f18a.js → HEAD CIRCUM_GIRLS.zscore.weekly-ade7078b.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-f221d72b.js → HEAD CIRCUM_GIRLS.zscore.yearly-310c6c1c.js} +0 -0
  213. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-eb822352.js → HEIGHT_BOYS.percentile.monthly-fdb2786c.js} +0 -0
  214. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-9e74f38c.js → HEIGHT_BOYS.percentile.weekly-fda60aeb.js} +0 -0
  215. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-e0cb3a7b.js → HEIGHT_BOYS.percentile.yearly-3fb4d5b5.js} +0 -0
  216. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-2c7b0871.js → HEIGHT_BOYS.zscore.monthly-b257874c.js} +0 -0
  217. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-4a75f327.js → HEIGHT_BOYS.zscore.weekly-e5777a92.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-c76f10ca.js → HEIGHT_BOYS.zscore.yearly-88b2f676.js} +0 -0
  219. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c25d995b.js → HEIGHT_GIRLS.percentile.monthly-99c63e37.js} +0 -0
  220. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-e6bd4f33.js → HEIGHT_GIRLS.percentile.weekly-0d74f83e.js} +0 -0
  221. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-67f48304.js → HEIGHT_GIRLS.percentile.yearly-e4d4c945.js} +0 -0
  222. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ec105b30.js → HEIGHT_GIRLS.zscore.monthly-5e9b3c6f.js} +0 -0
  223. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b49f0d7d.js → HEIGHT_GIRLS.zscore.weekly-c7570515.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-438b631d.js → HEIGHT_GIRLS.zscore.yearly-ac1f3c68.js} +0 -0
  225. /package/build/esm/{Onboarding-a1460ceb.js → Onboarding-4a50701f.js} +0 -0
  226. /package/build/esm/{Visible-37ab6fd3.js → Visible-cb287a59.js} +0 -0
  227. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-538a29c9.js → WEIGHT_BOYS.percentile.monthly-0ce9ef83.js} +0 -0
  228. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-014e3915.js → WEIGHT_BOYS.percentile.weekly-8a2458bd.js} +0 -0
  229. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-1f33478e.js → WEIGHT_BOYS.percentile.yearly-e75c0e95.js} +0 -0
  230. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-0e18e4fe.js → WEIGHT_BOYS.zscore.monthly-4348411d.js} +0 -0
  231. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-9875ecf1.js → WEIGHT_BOYS.zscore.weekly-691f493b.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6e4df37c.js → WEIGHT_BOYS.zscore.yearly-4c45e7a6.js} +0 -0
  233. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-40116841.js → WEIGHT_GIRLS.percentile.monthly-e48752de.js} +0 -0
  234. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-1d424134.js → WEIGHT_GIRLS.percentile.weekly-cfe47f22.js} +0 -0
  235. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-b37b43b7.js → WEIGHT_GIRLS.percentile.yearly-a4cb0041.js} +0 -0
  236. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-1c4c6c9b.js → WEIGHT_GIRLS.zscore.monthly-f53f48fe.js} +0 -0
  237. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-64abc976.js → WEIGHT_GIRLS.zscore.weekly-e80da973.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d58502fd.js → WEIGHT_GIRLS.zscore.yearly-2747cbee.js} +0 -0
  239. /package/build/esm/{constants-965e16a3.js → constants-32b61396.js} +0 -0
  240. /package/build/esm/{cookieHelper-151dc631.js → cookieHelper-a4984a6a.js} +0 -0
  241. /package/build/esm/{dataTransform-c065a17c.js → dataTransform-b1272bf9.js} +0 -0
  242. /package/build/esm/{index-b7d9e0da.js → index-343ad8b2.js} +0 -0
  243. /package/build/esm/{index-31a0ce7b.js → index-963cab7f.js} +0 -0
  244. /package/build/esm/{isProduction-60318bee.js → isProduction-74eb86e0.js} +0 -0
  245. /package/build/esm/{localizeNumberFormat-9a783e7f.js → localizeNumberFormat-03285074.js} +0 -0
  246. /package/build/esm/{normalizeLink-39d11b46.js → normalizeLink-2188938b.js} +0 -0
  247. /package/build/esm/{theme-23115d69.js → theme-f4313da0.js} +0 -0
  248. /package/build/esm/{translationsContext-aae526a6.js → translationsContext-579313fd.js} +0 -0
  249. /package/build/esm/{tslib.es6-c7baa758.js → tslib.es6-62312011.js} +0 -0
  250. /package/build/esm/{types-7d094668.js → types-b4fb5817.js} +0 -0
  251. /package/build/esm/{useIsInit-290802ea.js → useIsInit-69324d36.js} +0 -0
  252. /package/build/esm/{useOutsideClick-5baed9d0.js → useOutsideClick-29733ea9.js} +0 -0
  253. /package/build/esm/{useScrollbarSize-22d0f96f.js → useScrollbarSize-1c4d3036.js} +0 -0
  254. /package/build/esm/{useUniqueId-8a9b3aad.js → useUniqueId-279885db.js} +0 -0
  255. /package/build/esm/{utils-65cc3684.js → utils-862db457.js} +0 -0
  256. /package/build/{index-0433c750.js → index-913e2c6c.js} +0 -0
  257. /package/build/{index-43516e52.js → index-a5c0d34c.js} +0 -0
  258. /package/build/{isProduction-8f53dcb4.js → isProduction-94a4755f.js} +0 -0
  259. /package/build/{localizeNumberFormat-615b2b85.js → localizeNumberFormat-c4f7e025.js} +0 -0
  260. /package/build/{normalizeLink-1c4f8b11.js → normalizeLink-e1a57618.js} +0 -0
  261. /package/build/{theme-b5db0b22.js → theme-e6617535.js} +0 -0
  262. /package/build/{translationsContext-2a1ab5b6.js → translationsContext-4ae22b06.js} +0 -0
  263. /package/build/{tslib.es6-aef534e9.js → tslib.es6-2b9c7f39.js} +0 -0
  264. /package/build/{types-a08a20bc.js → types-55c7d514.js} +0 -0
  265. /package/build/{useIsInit-2d0e5bc8.js → useIsInit-877658fb.js} +0 -0
  266. /package/build/{useOutsideClick-e4fe3d79.js → useOutsideClick-4f29ea63.js} +0 -0
  267. /package/build/{useScrollbarSize-297c6a00.js → useScrollbarSize-00fd6529.js} +0 -0
  268. /package/build/{useUniqueId-92cea548.js → useUniqueId-bc64acc5.js} +0 -0
  269. /package/build/{utils-51f2cd64.js → utils-f34b18a5.js} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-aef534e9.js"),t=require("react"),a=require("./constants-c87791c7.js"),i=require("./index-5be31d81.js"),o=require("./cookieHelper-d25da3c5.js"),n=require("./useTranslations-f990381a.js"),s=require("lodash/debounce"),l=require("./index-b44ec8c0.js"),r=require("styled-components"),c=require("./index-6817b5d7.js"),d=require("./theme-b5db0b22.js"),u=require("react-loading-skeleton"),h=require("./utils-51f2cd64.js"),p=require("lodash/shuffle"),g=require("./useOutsideClick-e4fe3d79.js"),f=require("string-format");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=C(t),y=C(s),b=C(r),v=C(u),E=C(p),w=C(f);const L=b.default.div``,x=b.default.div`
1
+ "use strict";var e=require("./tslib.es6-2b9c7f39.js"),t=require("react"),a=require("./constants-253fe7b7.js"),i=require("./index-db24cc2b.js"),o=require("./cookieHelper-0bc3ae2b.js"),n=require("./useTranslations-e6471450.js"),s=require("lodash/debounce"),l=require("./index-3648abb2.js"),r=require("styled-components"),c=require("./index-f88ab2a2.js"),d=require("./theme-e6617535.js"),u=require("react-loading-skeleton"),h=require("./utils-f34b18a5.js"),p=require("lodash/shuffle"),g=require("./useOutsideClick-4f29ea63.js"),f=require("string-format");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=C(t),b=C(s),y=C(r),v=C(u),E=C(p),w=C(f);const L=y.default.div``,x=y.default.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -11,11 +11,11 @@
11
11
  background-color: white;
12
12
  z-index: var(--searchbar-z-index);
13
13
  }
14
- `,S=b.default.section``,k=b.default.input`
14
+ `,S=y.default.section``,k=y.default.input`
15
15
  position: fixed;
16
16
  left: -100%;
17
17
  top: -100%;
18
- `,O=b.default(l.Input)`
18
+ `,O=y.default(l.Input)`
19
19
  #booking-search-bar & {
20
20
  input {
21
21
  font-size: 16px;
@@ -35,7 +35,7 @@
35
35
  z-index: 2;
36
36
  }
37
37
  }
38
- `,T=({className:e,color:t})=>m.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),m.default.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),M=({className:e,color:t})=>m.default.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},m.default.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"})),R=({className:e,color:t})=>m.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:e},m.default.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:t||"currentColor"})),j=({className:e,color:t})=>m.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.default.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),N=({width:e,height:t})=>m.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),A=b.default.li`
38
+ `,T=({className:e,color:t})=>m.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),m.default.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),M=({className:e,color:t})=>m.default.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},m.default.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"})),R=({className:e,color:t})=>m.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:e},m.default.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:t||"currentColor"})),j=({className:e,color:t})=>m.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.default.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),N=({width:e,height:t})=>m.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),A=y.default.li`
39
39
  display: flex;
40
40
  align-items: center;
41
41
  gap: 12px;
@@ -58,7 +58,7 @@
58
58
  height: 1px;
59
59
  background-color: ${d.theme.colors.neutral100};
60
60
  }
61
- `,P=b.default.div`
61
+ `,P=y.default.div`
62
62
  display: flex;
63
63
  position: absolute;
64
64
  top: 48px;
@@ -75,14 +75,14 @@
75
75
  top: 0;
76
76
  box-shadow: initial;
77
77
  }
78
- `,F=b.default.ul`
78
+ `,F=y.default.ul`
79
79
  width: 100%;
80
80
  max-height: 600px;
81
81
  overflow-y: auto;
82
- `,_=b.default(M)`
82
+ `,_=y.default(M)`
83
83
  width: 12px;
84
84
  height: 18px;
85
- `,B=b.default.li`
85
+ `,B=y.default.li`
86
86
  position: relative;
87
87
  cursor: pointer;
88
88
  padding: 12px 18px;
@@ -120,17 +120,17 @@
120
120
  &[data-is-denied='true'] {
121
121
  cursor: not-allowed;
122
122
  }
123
- `,D=b.default((({count:e,className:t})=>m.default.createElement(m.default.Fragment,null,[...Array(e)].map(((e,a)=>m.default.createElement(A,{className:t,key:a},m.default.createElement(v.default,{count:1,height:32}),m.default.createElement(v.default,{count:1,height:24})))))))`
123
+ `,D=y.default((({count:e,className:t})=>m.default.createElement(m.default.Fragment,null,[...Array(e)].map(((e,a)=>m.default.createElement(A,{className:t,key:a},m.default.createElement(v.default,{count:1,height:32}),m.default.createElement(v.default,{count:1,height:24})))))))`
124
124
  &:first-child {
125
125
  padding-top: 18px;
126
126
  }
127
- `,H=({cities:e,isLoading:t,onLocationClick:a,onCurrentLocationClick:i,geoLocationPermission:o="unset",isLocationLoading:s,selectedLocation:l})=>{const{t:r}=n.useTranslations(),u="denied"===o,h=()=>m.default.createElement(B,{role:"button",tabIndex:0,onClick:e=>{u||(e.nativeEvent.stopImmediatePropagation(),s||i())},"data-is-denied":u},u?m.default.createElement(c.Text,{color:"var(--gray600)",size:"md"},"x"):s?m.default.createElement(v.default,{height:20,width:20}):m.default.createElement(R,{color:d.theme.colors.primaryBase}),m.default.createElement("div",null,u?m.default.createElement(c.Text,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},r("booking.searchBar.grantLocation")):s?m.default.createElement(v.default,{height:20,style:{width:"calc(100% - 16px)"}}):m.default.createElement(c.Text,{size:"md"},r("booking.searchBar.useCurrentLocation"))));return m.default.createElement(P,{"data-testid":"location-search-results"},m.default.createElement(F,null,t?m.default.createElement(D,{count:5}):!e||e.length<1?m.default.createElement(m.default.Fragment,null,h(),m.default.createElement(B,{"data-is-denied":"true"},m.default.createElement(c.Text,{size:"sm",color:"#ccc"},r("booking.searchBar.noResults")))):m.default.createElement(m.default.Fragment,null,h(),e.map((e=>m.default.createElement(B,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),a&&a(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},m.default.createElement(_,{color:d.theme.colors.neutral400}),m.default.createElement(c.Text,{size:"md"},e.name)))))))},V="TYPE_CHARACTER",$="REMOVE_CHARACTER",z="REMOVE_ALL",K="REMOVE_LAST_VISIBLE_NODE",Z="PAUSE_FOR",G="CHANGE_DELETE_SPEED",U="CHANGE_DELAY",q="PASTE_STRING",Q=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,W="TEXT_NODE";class Y{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(Z,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:a}=this.options||{},i="function"==typeof a?a(e):e.split("");this.typeCharacters(i,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(q,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(z,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(G,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(U,{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($);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(V,{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($)})),this},this.addEventToQueue=(e,t,a=!1)=>this.addEventToStateProperty(e,t,a,"eventQueue"),this.addReverseCalledEvent=(e,t,a=!1)=>{const{loop:i}=this.options;return i?this.addEventToStateProperty(e,t,a,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,a=!1,i)=>{const o={eventName:e,eventArgs:t||{}};return this.state[i]=a?[o,...this.state[i]]:[...this.state[i],o],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const a=[...this.state.eventQueue],i=a.shift();let o=0;if(o=i.eventName===K||i.eventName===$?"natural"===this.options.deleteSpeed?Q(40,80):this.options.deleteSpeed:"natural"===this.options.delay?Q(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=i;switch(n){case q:case V:{const{character:e}=s,t=document.createTextNode(e);let a=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(a=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:W,character:e,node:a}];break}case $:a.unshift({eventName:K,eventArgs:{removingCharacterNode:!0}});break;case Z:{const{ms:e}=i.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case z:{const{visibleNodes:e}=this.state,{speed:t}=s,i=[];t&&i.push({eventName:G,eventArgs:{speed:t,temp:!0}});for(let t=0,a=e.length;t<a;t++)i.push({eventName:K,eventArgs:{removingCharacterNode:!1}});t&&i.push({eventName:G,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),a.unshift(...i);break}case K: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 G:this.options.deleteSpeed=i.eventArgs.speed;break;case U:this.options.delay=i.eventArgs.delay}this.options.loop&&(i.eventName===K||i.eventArgs&&i.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,i])),this.state.eventQueue=a,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(z,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function J({inputRef:e,wrapperRef:a,disabled:i}){const{t:o,locale:s}=n.useTranslations(),l=t.useMemo((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==s&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),E.default(e).map((e=>o(e)))}),[o,s]);function r(e){const t=d();return t&&(t.placeholder=t.placeholder+e),null}function c(){const e=d();e&&(e.placeholder=e.placeholder.slice(0,-1))}function d(){return e&&e.current?e.current:a&&a.current&&a.current.querySelector("input")||null}t.useEffect((()=>{if(i)return;const e=d();e&&(e.placeholder="",new Y({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:c}))}),[e,a])}const X=b.default.div`
127
+ `,H=({cities:e,isLoading:t,onLocationClick:a,onCurrentLocationClick:i,geoLocationPermission:o="unset",isLocationLoading:s,selectedLocation:l})=>{const{t:r}=n.useTranslations(),u="denied"===o,h=()=>m.default.createElement(B,{role:"button",tabIndex:0,onClick:e=>{u||(e.nativeEvent.stopImmediatePropagation(),s||i())},"data-is-denied":u},u?m.default.createElement(c.Text,{color:"var(--gray600)",size:"md"},"x"):s?m.default.createElement(v.default,{height:20,width:20}):m.default.createElement(R,{color:d.theme.colors.primaryBase}),m.default.createElement("div",null,u?m.default.createElement(c.Text,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},r("booking.searchBar.grantLocation")):s?m.default.createElement(v.default,{height:20,style:{width:"calc(100% - 16px)"}}):m.default.createElement(c.Text,{size:"md"},r("booking.searchBar.useCurrentLocation"))));return m.default.createElement(P,{"data-testid":"location-search-results"},m.default.createElement(F,null,t?m.default.createElement(D,{count:5}):!e||e.length<1?m.default.createElement(m.default.Fragment,null,h(),m.default.createElement(B,{"data-is-denied":"true"},m.default.createElement(c.Text,{size:"sm",color:"#ccc"},r("booking.searchBar.noResults")))):m.default.createElement(m.default.Fragment,null,h(),e.map((e=>m.default.createElement(B,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),a&&a(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==l?void 0:l.id)===e.id},m.default.createElement(_,{color:d.theme.colors.neutral400}),m.default.createElement(c.Text,{size:"md"},e.name)))))))},V="TYPE_CHARACTER",$="REMOVE_CHARACTER",z="REMOVE_ALL",K="REMOVE_LAST_VISIBLE_NODE",Z="PAUSE_FOR",G="CHANGE_DELETE_SPEED",U="CHANGE_DELAY",q="PASTE_STRING",Q=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,W="TEXT_NODE";class Y{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(Z,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:a}=this.options||{},i="function"==typeof a?a(e):e.split("");this.typeCharacters(i,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(q,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(z,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(G,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(U,{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($);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(V,{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($)})),this},this.addEventToQueue=(e,t,a=!1)=>this.addEventToStateProperty(e,t,a,"eventQueue"),this.addReverseCalledEvent=(e,t,a=!1)=>{const{loop:i}=this.options;return i?this.addEventToStateProperty(e,t,a,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,a=!1,i)=>{const o={eventName:e,eventArgs:t||{}};return this.state[i]=a?[o,...this.state[i]]:[...this.state[i],o],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const a=[...this.state.eventQueue],i=a.shift();let o=0;if(o=i.eventName===K||i.eventName===$?"natural"===this.options.deleteSpeed?Q(40,80):this.options.deleteSpeed:"natural"===this.options.delay?Q(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=i;switch(n){case q:case V:{const{character:e}=s,t=document.createTextNode(e);let a=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(a=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:W,character:e,node:a}];break}case $:a.unshift({eventName:K,eventArgs:{removingCharacterNode:!0}});break;case Z:{const{ms:e}=i.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case z:{const{visibleNodes:e}=this.state,{speed:t}=s,i=[];t&&i.push({eventName:G,eventArgs:{speed:t,temp:!0}});for(let t=0,a=e.length;t<a;t++)i.push({eventName:K,eventArgs:{removingCharacterNode:!1}});t&&i.push({eventName:G,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),a.unshift(...i);break}case K: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 G:this.options.deleteSpeed=i.eventArgs.speed;break;case U:this.options.delay=i.eventArgs.delay}this.options.loop&&(i.eventName===K||i.eventArgs&&i.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,i])),this.state.eventQueue=a,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(z,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function J({inputRef:e,wrapperRef:a,disabled:i}){const{t:o,locale:s}=n.useTranslations(),l=t.useMemo((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==s&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),E.default(e).map((e=>o(e)))}),[o,s]);function r(e){const t=d();return t&&(t.placeholder=t.placeholder+e),null}function c(){const e=d();e&&(e.placeholder=e.placeholder.slice(0,-1))}function d(){return e&&e.current?e.current:a&&a.current&&a.current.querySelector("input")||null}t.useEffect((()=>{if(i)return;const e=d();e&&(e.placeholder="",new Y({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:c}))}),[e,a])}const X=y.default.div`
128
128
  user-select: none;
129
129
  input {
130
130
  pointer-events: none;
131
131
  background-color: white;
132
132
  }
133
- `;function ee({focused:e,value:a="",onClick:i,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:l}=n.useTranslations(),r=t.useRef(null);J({wrapperRef:r,disabled:!!s});const c=t.useMemo((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return m.default.createElement(X,Object.assign({onClick:()=>i&&i(),ref:r},c),m.default.createElement(O,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:m.default.createElement(j,{color:d.theme.colors.gray400}),placeholder:l("booking.searchBar.searchInput.placeholder"),value:a,size:"md"}))}const te=b.default.header`
133
+ `;function ee({focused:e,value:a="",onClick:i,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:l}=n.useTranslations(),r=t.useRef(null);J({wrapperRef:r,disabled:!!s});const c=t.useMemo((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return m.default.createElement(X,Object.assign({onClick:()=>i&&i(),ref:r},c),m.default.createElement(O,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:m.default.createElement(j,{color:d.theme.colors.gray400}),placeholder:l("booking.searchBar.searchInput.placeholder"),value:a,size:"md"}))}const te=y.default.header`
134
134
  display: flex;
135
135
  height: 64px;
136
136
  align-items: center;
@@ -141,24 +141,24 @@
141
141
  background-color: white;
142
142
  top: 0;
143
143
  left: 0;
144
- `,ae=b.default.div`
144
+ `,ae=y.default.div`
145
145
  display: inline-flex;
146
146
  flex: 1;
147
147
  justify-content: flex-end;
148
148
  cursor: pointer;
149
149
  text-decoration: underline;
150
- `,ie=b.default.div`
150
+ `,ie=y.default.div`
151
151
  display: flex;
152
152
  align-items: center;
153
153
  margin-left: 16px;
154
154
  cursor: pointer;
155
- `,oe=b.default.div`
155
+ `,oe=y.default.div`
156
156
  width: 100%;
157
157
  margin-left: 24px;
158
- `,ne=b.default(c.Text)`
158
+ `,ne=y.default(c.Text)`
159
159
  color: ${d.theme.colors.secondaryDark};
160
160
  text-align: start;
161
- `,se=({className:e,onLeftClick:t,headingText:a,onRightClick:i,iconLeft:o,textRight:n})=>m.default.createElement(te,{className:e},m.default.createElement(ie,{onClick:t},o||m.default.createElement(T,{color:d.theme.colors.gray800})),m.default.createElement(oe,null,m.default.createElement(ne,{size:"md",type:"bold"},a)),m.default.createElement(ae,{onClick:i},n&&m.default.createElement("p",null,n))),le={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},re={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};var ce;function de(e){const{selectedLocation:t,searchLocationKeywords:a}=e;return t&&a!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function ue(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case ce.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case ce.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:de(Object.assign(Object.assign({},e),{focused:"none"}));case ce.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case ce.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===a.ID_OPTION_CURRENT_LOCATION&&(t.searchLocationKeywords=""),t}case ce.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?de(o):o;case ce.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case ce.ChangeInputSearch:{const a=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:a,isLoadingSearchResults:a.trim().length>le[e.locale]})}case ce.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ce.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case ce.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case ce.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ce.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case ce.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case ce.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case ce.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case ce.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case ce.FetchSearchResultsComplete:{const a=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(a.initialSearchResults=t.payload),a}case ce.FetchCitiesByGeoIpComplete:{let{cities:a}=t.payload;const{default:i}=t.payload;a=a.filter((e=>e.id!==i.id)),a.unshift(i),e.initialSelectedCity&&!a.find((t=>t.id===e.initialSelectedCity.id))&&a.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:i,initialCities:a,cities:a});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=i,o.searchLocationKeywords=i.name),o}case ce.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case ce.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case ce.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case ce.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case ce.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case ce.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case ce.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case ce.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case ce.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(ce||(ce={}));const he=b.default.div`
161
+ `,se=({className:e,onLeftClick:t,headingText:a,onRightClick:i,iconLeft:o,textRight:n})=>m.default.createElement(te,{className:e},m.default.createElement(ie,{onClick:t},o||m.default.createElement(T,{color:d.theme.colors.gray800})),m.default.createElement(oe,null,m.default.createElement(ne,{size:"md",type:"bold"},a)),m.default.createElement(ae,{onClick:i},n&&m.default.createElement("p",null,n))),le={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},re={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};var ce;function de(e){const{selectedLocation:t,searchLocationKeywords:a}=e;return t&&a!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function ue(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case ce.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case ce.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:de(Object.assign(Object.assign({},e),{focused:"none"}));case ce.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case ce.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===a.ID_OPTION_CURRENT_LOCATION&&(t.searchLocationKeywords=""),t}case ce.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?de(o):o;case ce.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case ce.ChangeInputSearch:{const a=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:a,isLoadingSearchResults:a.trim().length>le[e.locale]})}case ce.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ce.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case ce.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case ce.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ce.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case ce.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case ce.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case ce.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case ce.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case ce.FetchSearchResultsComplete:{const a=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(a.initialSearchResults=t.payload),a}case ce.FetchCitiesByGeoIpComplete:{let{cities:a}=t.payload;const{default:i}=t.payload;a=a.filter((e=>e.id!==i.id)),a.unshift(i),e.initialSelectedCity&&!a.find((t=>t.id===e.initialSelectedCity.id))&&a.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:i,initialCities:a,cities:a});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=i,o.searchLocationKeywords=i.name),o}case ce.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case ce.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case ce.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case ce.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case ce.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case ce.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case ce.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case ce.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case ce.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(ce||(ce={}));const he=y.default.div`
162
162
  display: flex;
163
163
  gap: 16px;
164
164
  ${h.MediaQueries.mbDown} {
@@ -176,18 +176,18 @@
176
176
  input {
177
177
  background-color: white;
178
178
  }
179
- `,pe=b.default.div`
179
+ `,pe=y.default.div`
180
180
  position: relative;
181
- `,ge=b.default(pe)`
181
+ `,ge=y.default(pe)`
182
182
  flex: 1;
183
- `,fe=b.default(pe)`
183
+ `,fe=y.default(pe)`
184
184
  flex: 2;
185
- `,Ce=b.default((({className:e,color:t})=>m.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),m.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"}))))`
185
+ `,Ce=y.default((({className:e,color:t})=>m.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),m.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"}))))`
186
186
  display: none;
187
187
  &.shown {
188
188
  display: block;
189
189
  }
190
- `,me=()=>m.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},m.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"})),ye=b.default.button`
190
+ `,me=()=>m.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},m.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"})),be=y.default.button`
191
191
  min-height: 100%;
192
192
  border-radius: 6px;
193
193
  background-color: ${({theme:e})=>e.colors.primaryBase};
@@ -218,31 +218,31 @@
218
218
  &:focus-visible {
219
219
  outline: 1px solid black;
220
220
  }
221
- `,be=b.default(c.Text)`
221
+ `,ye=y.default(c.Text)`
222
222
  font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
223
- `,ve=({onClick:e})=>{const{t:t}=n.useTranslations(),a=t("booking.searchBar.searchButton");return m.default.createElement(ye,{onClick:e,title:a},m.default.createElement(me,null),m.default.createElement(be,{size:"s3",color:"white"},a))};function Ee({isMobile:e,state:i,dispatch:o,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:l,focusLocationInput:r,focusSearchInput:c,renderLocationResults:u,renderSearchResults:h,locationTrackingAttributes:p,trackingAttributes:f,onSearch:C,initalSearchValue:y}){const b=t.useRef(null),v=t.useRef(null),{focused:E,searchLocationKeywords:w,geoLocationPermission:L,selectedLocation:x,searchKeywords:S,inputSearchPlaceholder:k}=i,{t:I}=n.useTranslations();J({wrapperRef:v,disabled:!!k}),g.useOutsideClick(b,(()=>{o({type:ce.ClickOutsideInputLocation})})),g.useOutsideClick(v,(()=>{o({type:ce.ClickOutsideInputSearch})}));const T=t.useMemo((()=>"granted"===L&&(null==x?void 0:x.id)===a.ID_OPTION_CURRENT_LOCATION?d.theme.colors.primaryBase:d.theme.colors.gray400),[L,x]),R=t.useCallback((function(e){o({type:ce.ChangeInputSearch,payload:e}),"function"!=typeof C&&(e.trim().length>le[i.locale]||y?l(e.trim(),i):(l.cancel(),o({type:ce.DisplayInitialSearchResults})))}),[o,i]),j=t.useCallback((function(e){o({type:ce.ChangeInputLocation,payload:e}),e.trim().length>le[i.locale]?s(e.trim()):(s.cancel(),o({type:ce.DisplayInitialCities}))}),[s,o]);return m.default.createElement(he,null,m.default.createElement(ge,{ref:b},m.default.createElement(O,{inputClassName:"location"===E?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:m.default.createElement(M,{className:"location-pin-icon",color:T}),actionIcon:m.default.createElement(Ce,{color:d.theme.colors.gray300,className:""!==w?"shown":""}),onActionClick:function(){o({type:ce.ClearInputLocation}),s.cancel(),r()},value:w,onChange:j,onFocus:()=>o({type:ce.FocusInputLocation}),size:"md",trackingAttributes:p}),!e&&u()),m.default.createElement(fe,{ref:v},m.default.createElement(O,{placeholder:k||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:m.default.createElement(Ce,{color:d.theme.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){o({type:ce.ClearInputSearch}),l.cancel(),l("",i),c()},value:S,onChange:R,onFocus:()=>o({type:ce.FocusInputSearch}),inputClassName:"search"===E?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&C&&C({cityId:i.selectedLocation.id,keyword:S})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&h()),i.autoCompleteDisabled&&!i.isMobile&&m.default.createElement(ve,{onClick:()=>{C({cityId:i.selectedLocation.id,keyword:S})}}))}const we=()=>m.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},m.default.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),Le=()=>m.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},m.default.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),xe=()=>m.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},m.default.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),Se=()=>m.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},m.default.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),ke=b.default.header`
223
+ `,ve=({onClick:e})=>{const{t:t}=n.useTranslations(),a=t("booking.searchBar.searchButton");return m.default.createElement(be,{onClick:e,title:a},m.default.createElement(me,null),m.default.createElement(ye,{size:"s3",color:"white"},a))};function Ee({isMobile:e,state:i,dispatch:o,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:l,focusLocationInput:r,focusSearchInput:c,renderLocationResults:u,renderSearchResults:h,locationTrackingAttributes:p,trackingAttributes:f,onSearch:C,initalSearchValue:b}){const y=t.useRef(null),v=t.useRef(null),{focused:E,searchLocationKeywords:w,geoLocationPermission:L,selectedLocation:x,searchKeywords:S,inputSearchPlaceholder:k}=i,{t:I}=n.useTranslations();J({wrapperRef:v,disabled:!!k}),g.useOutsideClick(y,(()=>{o({type:ce.ClickOutsideInputLocation})})),g.useOutsideClick(v,(()=>{o({type:ce.ClickOutsideInputSearch})}));const T=t.useMemo((()=>"granted"===L&&(null==x?void 0:x.id)===a.ID_OPTION_CURRENT_LOCATION?d.theme.colors.primaryBase:d.theme.colors.gray400),[L,x]),R=t.useCallback((function(e){o({type:ce.ChangeInputSearch,payload:e}),"function"!=typeof C&&(e.trim().length>le[i.locale]||b?l(e.trim(),i):(l.cancel(),o({type:ce.DisplayInitialSearchResults})))}),[o,i]),j=t.useCallback((function(e){o({type:ce.ChangeInputLocation,payload:e}),e.trim().length>le[i.locale]?s(e.trim()):(s.cancel(),o({type:ce.DisplayInitialCities}))}),[s,o]);return m.default.createElement(he,null,m.default.createElement(ge,{ref:y},m.default.createElement(O,{inputClassName:"location"===E?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:m.default.createElement(M,{className:"location-pin-icon",color:T}),actionIcon:m.default.createElement(Ce,{color:d.theme.colors.gray300,className:""!==w?"shown":""}),onActionClick:function(){o({type:ce.ClearInputLocation}),s.cancel(),r()},value:w,onChange:j,onFocus:()=>o({type:ce.FocusInputLocation}),size:"md",trackingAttributes:p}),!e&&u()),m.default.createElement(fe,{ref:v},m.default.createElement(O,{placeholder:k||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:m.default.createElement(Ce,{color:d.theme.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){o({type:ce.ClearInputSearch}),l.cancel(),l("",i),c()},value:S,onChange:R,onFocus:()=>o({type:ce.FocusInputSearch}),inputClassName:"search"===E?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&C&&C({cityId:i.selectedLocation.id,keyword:S})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&h()),i.autoCompleteDisabled&&!i.isMobile&&m.default.createElement(ve,{onClick:()=>{C({cityId:i.selectedLocation.id,keyword:S})}}))}const we=()=>m.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},m.default.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),Le=()=>m.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},m.default.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),xe=()=>m.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},m.default.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),Se=()=>m.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},m.default.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),ke=y.default.header`
224
224
  display: flex;
225
225
  justify-content: space-between;
226
226
  padding: 12px 24px;
227
227
  background-color: ${d.theme.colors.neutral50};
228
228
  box-shadow: inset 0px 1px 0px #e4e8ec;
229
- `,Oe=b.default.div`
229
+ `,Oe=y.default.div`
230
230
  display: grid;
231
231
  flex: 2;
232
232
  align-items: center;
233
233
  gap: 16px;
234
234
  grid-template-columns: 16px 1fr;
235
- `,Ie=b.default.p`
235
+ `,Ie=y.default.p`
236
236
  color: ${d.theme.colors.neutral800};
237
237
  font-size: 14px;
238
238
  font-weight: ${d.theme.sizes.fwSemiBold};
239
239
  letter-spacing: -0.2px;
240
240
  line-height: 22px;
241
- `,Te=b.default.button`
241
+ `,Te=y.default.button`
242
242
  flex: 1;
243
243
  cursor: pointer;
244
244
  text-align: end;
245
- `,Me=b.default.section`
245
+ `,Me=y.default.section`
246
246
  padding: 12px 16px;
247
247
  --rowGap: 16px;
248
248
  --graphicSize: 32px;
@@ -250,7 +250,7 @@
250
250
  ${h.MediaQueries.tdUp} {
251
251
  --rowGap: 8px;
252
252
  }
253
- `,Re=b.default.ul`
253
+ `,Re=y.default.ul`
254
254
  --gap: 16px;
255
255
  ${h.MediaQueries.tdUp} {
256
256
  --gap: 8px;
@@ -272,18 +272,18 @@
272
272
  ${h.MediaQueries.tdUp} {
273
273
  grid-template-columns: 1fr 1fr;
274
274
  } ;
275
- `,je=b.default(c.Text)`
275
+ `,je=y.default(c.Text)`
276
276
  margin-top: 12px;
277
277
  margin-bottom: 8px;
278
278
  cursor: pointer;
279
279
  text-align: start;
280
280
  text-transform: capitalize;
281
- `,Ne=b.default.li`
281
+ `,Ne=y.default.li`
282
282
  display: flex;
283
283
  align-items: center;
284
284
  gap: var(--rowGap);
285
285
  cursor: pointer;
286
- `,Ae=b.default.div`
286
+ `,Ae=y.default.div`
287
287
  --wrapper-size: var(--graphicSize);
288
288
  border-radius: calc(var(--wrapper-size) / 2);
289
289
  background-color: var(--neutral50);
@@ -303,7 +303,7 @@
303
303
  &:focus-visible {
304
304
  outline: 1px solid ${d.theme.colors.gray600};
305
305
  }
306
- `,Pe=b.default(c.Text)`
306
+ `,Pe=y.default(c.Text)`
307
307
  line-height: 22px;
308
308
  letter-spacing: -0.2px;
309
309
 
@@ -312,16 +312,16 @@
312
312
  font-size: 14px;
313
313
  }
314
314
  }
315
- `,Fe=b.default.figure`
315
+ `,Fe=y.default.figure`
316
316
  max-width: var(--graphicSize);
317
317
  min-width: var(--graphicSize);
318
- `,_e=b.default.svg`
318
+ `,_e=y.default.svg`
319
319
  margin: 0 auto;
320
320
  display: block;
321
- `,Be=b.default.div`
321
+ `,Be=y.default.div`
322
322
  display: grid;
323
323
  place-items: center;
324
- `,De={doctors:({width:e,height:t})=>m.default.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},m.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),m.default.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),m.default.createElement("defs",null,m.default.createElement("clipPath",{id:"clip0_14712_400114"},m.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>m.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),m.default.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},He=({type:e,item:a,imageUrl:i,onClickItem:o})=>{const n=t.useMemo((()=>{const t=De[e]||N;return m.default.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return m.default.createElement(Ne,{onClick:()=>o&&o(a),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||o&&o(a)},tabIndex:0,role:"button"},m.default.createElement(Fe,null,"hospitals"===e?m.default.createElement(_e,{width:"12",height:"16",viewBox:"0 0 12 16"},m.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):m.default.createElement(Ae,{type:e},i?m.default.createElement("img",{src:i,width:32,height:"services"===e?32:24}):n)),m.default.createElement(Pe,{color:d.theme.colors.gray800,size:"p3"},a.name))},Ve=({type:e,data:i,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:r,isMobile:u,isLoading:h,keyword:p})=>{const[g,f]=t.useState(!1),{t:C,locale:y}=n.useTranslations(),{selectedLocation:b,searchKeywords:E}=o,w=t.useMemo((()=>a.LOCALIZED_SLUGS[y]),[y]),L=t.useMemo((()=>({doctors:{name:C("booking.searchPopup.doctors"),icon:m.default.createElement(we,null),slug:w.DOCTOR},services:{name:C("booking.searchPopup.services"),icon:m.default.createElement(Le,null),slug:w.SERVICE},hospitals:{name:C("booking.searchPopup.hospitals"),icon:m.default.createElement(xe,null),slug:w.HOSPITAL},specialties:{name:C("booking.searchPopup.specialties"),icon:m.default.createElement(Se,null),slug:w.SPECIALTIES}})),[e,w]),x=t.useMemo((()=>L[e].slug),[L]),S=u?l:r;function k(t){let a="";switch(e){case"specialties":a=`/${b.slug}/${L.doctors.slug}/${t.slug}`;break;case"services":a=`/${b.slug}/${x}/${t.slug}`;break;case"doctors":case"hospitals":a=`/${x}/${t.slug}-${t.id}`}a&&s({type:ce.SelectSearchResult,payload:{name:t.name,url:a}})}function O(t){return m.default.createElement(He,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,onClickItem:k})}return m.default.createElement("section",null,m.default.createElement(ke,null,m.default.createElement(Oe,null,L[e].icon,m.default.createElement(Ie,null,L[e].name)),p.trim().length<=le[y]&&m.default.createElement(Te,{onClick:function(){let t="";switch(e){case"specialties":t=`/${x}`;break;case"services":case"doctors":case"hospitals":t=`/${b.slug}/${x}`}t&&s({type:ce.NavigateTo,payload:t})}},m.default.createElement(c.Text,{size:"p3",color:d.theme.colors.primaryBase},C("booking.searchPopup.seeAll")))),(h||i&&i.length>0)&&m.default.createElement(Me,null,m.default.createElement(Re,null,h&&Array(2).fill(void 0).map(((t,a)=>m.default.createElement(Ne,{key:e+"loading"+a},m.default.createElement(Fe,null,m.default.createElement(Be,null,m.default.createElement(v.default,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),m.default.createElement(v.default,{width:120,height:24})))),!h&&i&&i.length>0&&i.slice(0,S).map(O)),m.default.createElement(Re,{isShown:g,isMore:!0},i.slice(S,-1).map(O)),"specialties"===e&&S<i.length&&!h&&m.default.createElement("button",{onClick:()=>f(!g)},m.default.createElement(je,{size:"p3",color:d.theme.colors.primaryBase},C(g?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&S<i.length&&!h&&p.trim().length>le[y]&&m.default.createElement("button",{onClick:function(){const{slug:t}=L[e],a=`/${b.slug}/${t}?q=${E}`;s({type:ce.NavigateTo,payload:a})}},m.default.createElement(je,{size:"p3",color:d.theme.colors.primaryBase},C(`booking.searchPopup.searchIn.${e}`,{name:p})))),!h&&0===(null==i?void 0:i.length)&&m.default.createElement(Me,null,m.default.createElement(c.Text,{size:"sm",color:d.theme.colors.gray400},C("booking.searchBar.noResults"))))},$e=b.default.section`
324
+ `,De={doctors:({width:e,height:t})=>m.default.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},m.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),m.default.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),m.default.createElement("defs",null,m.default.createElement("clipPath",{id:"clip0_14712_400114"},m.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>m.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),m.default.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},He=({type:e,item:a,imageUrl:i,onClickItem:o})=>{const n=t.useMemo((()=>{const t=De[e]||N;return m.default.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return m.default.createElement(Ne,{onClick:()=>o&&o(a),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||o&&o(a)},tabIndex:0,role:"button"},m.default.createElement(Fe,null,"hospitals"===e?m.default.createElement(_e,{width:"12",height:"16",viewBox:"0 0 12 16"},m.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):m.default.createElement(Ae,{type:e},i?m.default.createElement("img",{src:i,width:32,height:"services"===e?32:24}):n)),m.default.createElement(Pe,{color:d.theme.colors.gray800,size:"p3"},a.name))},Ve=({type:e,data:i,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:r,isMobile:u,isLoading:h,keyword:p})=>{const[g,f]=t.useState(!1),{t:C,locale:b}=n.useTranslations(),{selectedLocation:y,searchKeywords:E}=o,w=t.useMemo((()=>a.LOCALIZED_SLUGS[b]),[b]),L=t.useMemo((()=>({doctors:{name:C("booking.searchPopup.doctors"),icon:m.default.createElement(we,null),slug:w.DOCTOR},services:{name:C("booking.searchPopup.services"),icon:m.default.createElement(Le,null),slug:w.SERVICE},hospitals:{name:C("booking.searchPopup.hospitals"),icon:m.default.createElement(xe,null),slug:w.HOSPITAL},specialties:{name:C("booking.searchPopup.specialties"),icon:m.default.createElement(Se,null),slug:w.SPECIALTIES}})),[e,w]),x=t.useMemo((()=>L[e].slug),[L]),S=u?l:r;function k(t){let a="";switch(e){case"specialties":a=`/${y.slug}/${L.doctors.slug}/${t.slug}`;break;case"services":a=`/${y.slug}/${x}/${t.slug}`;break;case"doctors":case"hospitals":a=`/${x}/${t.slug}-${t.id}`}a&&s({type:ce.SelectSearchResult,payload:{name:t.name,url:a}})}function O(t){return m.default.createElement(He,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,onClickItem:k})}return m.default.createElement("section",null,m.default.createElement(ke,null,m.default.createElement(Oe,null,L[e].icon,m.default.createElement(Ie,null,L[e].name)),p.trim().length<=le[b]&&m.default.createElement(Te,{onClick:function(){let t="";switch(e){case"specialties":t=`/${x}`;break;case"services":case"doctors":case"hospitals":t=`/${y.slug}/${x}`}t&&s({type:ce.NavigateTo,payload:t})}},m.default.createElement(c.Text,{size:"p3",color:d.theme.colors.primaryBase},C("booking.searchPopup.seeAll")))),(h||i&&i.length>0)&&m.default.createElement(Me,null,m.default.createElement(Re,null,h&&Array(2).fill(void 0).map(((t,a)=>m.default.createElement(Ne,{key:e+"loading"+a},m.default.createElement(Fe,null,m.default.createElement(Be,null,m.default.createElement(v.default,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),m.default.createElement(v.default,{width:120,height:24})))),!h&&i&&i.length>0&&i.slice(0,S).map(O)),m.default.createElement(Re,{isShown:g,isMore:!0},i.slice(S,-1).map(O)),"specialties"===e&&S<i.length&&!h&&m.default.createElement("button",{onClick:()=>f(!g)},m.default.createElement(je,{size:"p3",color:d.theme.colors.primaryBase},C(g?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&S<i.length&&!h&&p.trim().length>le[b]&&m.default.createElement("button",{onClick:function(){const{slug:t}=L[e],a=`/${y.slug}/${t}?q=${E}`;s({type:ce.NavigateTo,payload:a})}},m.default.createElement(je,{size:"p3",color:d.theme.colors.primaryBase},C(`booking.searchPopup.searchIn.${e}`,{name:p})))),!h&&0===(null==i?void 0:i.length)&&m.default.createElement(Me,null,m.default.createElement(c.Text,{size:"sm",color:d.theme.colors.gray400},C("booking.searchBar.noResults"))))},$e=y.default.section`
325
325
  background-color: white;
326
326
  border-radius: 4px;
327
327
  position: absolute;
@@ -333,4 +333,4 @@
333
333
  0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
334
334
  0px 0px 1px rgba(0, 0, 0, 0.04);
335
335
  }
336
- `,ze=({data:e,state:t,dispatch:a,isMobile:i,isLoading:o,keyword:n})=>m.default.createElement($e,null,e&&e.map((e=>m.default.createElement(Ve,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:o,keyword:n})))),Ke="api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",Ze="api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",Ge="api/geobyip?site={domain}&latitude={lat}&longitude={lng}",Ue=(e,t,a)=>w.default(e,Object.assign(Object.assign({},t),{domain:i.domainLocales[a||"en-PH"]}));var qe;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(qe||(qe={}));var Qe=Object.freeze({__proto__:null,get RedirectType(){return qe}});exports.BookingSearchBar=({isMobile:s,careApiDomain:l,geoLocationPermission:r,geoLocationCoordinates:c,initialSelectedCity:d,initialSearchValue:u="",careFrontDomain:h="/care",isDebug:p=!1,askForGeolocationPermission:g=!1,gaTrackingSearchBar:f,gaTrackingLocationSearch:C,autoCompleteDisabled:b=!1,inputSearchPlaceholder:v="",routerPush:E,onGeoLocationPermissionChange:w,onSearch:O,onChangeLocation:T})=>{const{t:M,locale:R}=n.useTranslations(),j=t.useRef(null),N=t.useRef(null),[A,P]=t.useState(void 0),{geoLocationPermission:F,geoLocationCoordinates:_,requestGeoLocation:B}=function(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(o.getCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=t.useState((()=>{if("undefined"==typeof window)return null;const e=o.getCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};o.setCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),s(t),a("granted")}),(()=>{o.deleteCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}(),[D,V]=t.useReducer(ue,re,(e=>Object.assign(Object.assign({},e),{isDebug:p,isMobile:s,geoLocationPermission:r||F||"unset",geoLocationCoordinates:c||_||null,searchKeywords:u,initialSelectedCity:d||null,selectedLocation:d||e.selectedLocation||null,searchLocationKeywords:(null==d?void 0:d.name)||e.searchLocationKeywords,autoCompleteDisabled:b,inputSearchPlaceholder:v,locale:R}))),{navigateTo:$,focused:z,isLoadingCities:K,cities:Z,searchKeywords:G,geoLocationPermission:U,selectedLocation:q,initialSelectedCity:Q,defaultCity:W,searchResults:Y,isLoadingSearchResults:J,isMobileModalOpened:X,inputSearchPlaceholder:te}=D,{fetchCitiesByLocation:ae,fetchCitiesByKeyword:ie,fetchSearchResults:oe}=function({dispatch:e,careApiDomain:i,locale:o="vi-VN"}){const n=t.useCallback((function(t,a={}){const n=`${i}${t}`;return e({type:ce.FetchCitiesStart}),fetch(Ue(n,a,o),{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:ce.FetchCitiesFinish})))}),[o]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};t&&(a={lat:t.lat,lng:t.lng});const i=[n(Ge,a)];return"zh-TW"===o&&i.push(n(Ke,{noPaging:1})),Promise.all(i).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:ce.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[o,i,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(Ke,{keyword:t}).then((t=>{e({type:ce.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[o,i,e]),fetchSearchResults:t.useCallback((function(t,n){const s=`${i}${Ze}`;e({type:ce.FetchSearchResultsStart});const{defaultCity:l,selectedLocation:r,geoLocationCoordinates:c}=n;let d="";if(!r||!l)return void e({type:ce.FetchSearchResultsFinish});r.id===a.ID_OPTION_CURRENT_LOCATION?c||(d=l.id):d=r.id;const u=(null==c?void 0:c.lat)||"",h=(null==c?void 0:c.lng)||"";return fetch(Ue(s,{domain:i,searchType:"global",keyword:t.trim().length>le[o]?t.trim():"",city:d===a.ID_OPTION_CURRENT_LOCATION?"":d,lat:u,lng:h},o),{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:ce.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:s,error:e})})).finally((()=>e({type:ce.FetchSearchResultsFinish})))}),[o,i,e])}}({dispatch:V,locale:R,careApiDomain:l}),ne=t.useMemo((()=>{var e;return{id:a.ID_OPTION_CURRENT_LOCATION,name:M("booking.searchBar.currentLocation"),slug:null===(e=a.LOCALIZED_SLUGS[R])||void 0===e?void 0:e.CURRENT}}),[M,R]),de=t.useMemo((()=>y.default(ie,400)),[ie]),he=t.useMemo((()=>y.default(oe,400)),[oe]);t.useEffect((()=>{""!==u&&u!==D.searchKeywords&&V({type:ce.UpdateInitialSearchValue,payload:u})}),[u]),t.useEffect((()=>{g&&(null==q?void 0:q.id)===a.ID_OPTION_CURRENT_LOCATION&&"unset"===U&&B()}),[g,q,U]),t.useEffect((()=>{r||U===F||("granted"===F&&_?V({type:ce.GrantGeoLocationPermission,payload:_}):"denied"===F&&V({type:ce.DenyGeoLocationPermission}))}),[U,F,_,r]),t.useEffect((()=>{$&&(E?E($):window.location.href=`${h}${$}`)}),[$]);const pe=t.useCallback((function(){V({type:ce.SelectCurrentLocation,payload:ne})}),[M,V]);t.useEffect((()=>{"denied"===U||Q||pe(),w&&w(U,D.geoLocationCoordinates),s&&"granted"===U&&q&&V({type:ce.FocusInputSearch}),ae({coordinates:D.geoLocationCoordinates})}),[U]),t.useEffect((()=>{q&&W&&oe(D.searchKeywords,D)}),[q,W]),t.useEffect((()=>{v!==te&&V({type:ce.SetInputSearchPlaceholder,payload:v})}),[v,te]),t.useEffect((()=>{X?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[X]);const ge=t.useCallback((function(e){V({type:ce.SelectLocation,payload:e}),me(),T&&T(e)}),[M,V]);function fe(){s&&"granted"!==D.geoLocationPermission?B():(pe(),me())}function Ce(){var e;j.current&&(null===(e=j.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function me(){var e;j.current&&(null===(e=j.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function ye(){V({type:ce.CloseMobileModal})}function be(){return"location"!==z?null:m.default.createElement(H,{isLoading:K,cities:Z,onLocationClick:ge,onCurrentLocationClick:fe,isLocationLoading:K,geoLocationPermission:U,selectedLocation:q})}function we(){return"search"!==z?null:D.autoCompleteDisabled?s?m.default.createElement(ve,{onClick:()=>{O({cityId:D.selectedLocation.id,keyword:G}),ye()}}):null:m.default.createElement(ze,{data:Y,state:D,dispatch:V,isMobile:!1,keyword:G,isLoading:J})}function Le(){return m.default.createElement(Ee,{isMobile:s,state:D,dispatch:V,debouncedFetchCitiesByKeyword:de,debouncedFetchSearchResults:he,focusLocationInput:Ce,focusSearchInput:me,renderLocationResults:be,renderSearchResults:we,trackingAttributes:f,locationTrackingAttributes:C,onSearch:O,initalSearchValue:u})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;P(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[P]),s?m.default.createElement(m.default.Fragment,null,m.default.createElement(I,null),m.default.createElement(k,{ref:N}),m.default.createElement(x,{id:"booking-search-bar",ref:j,"data-is-modal":s&&X,style:{"--mobile-care-searchbar-height":X&&A?`${A}px`:"100%"}},X?m.default.createElement(m.default.Fragment,null,m.default.createElement(S,null,m.default.createElement(se,{headingText:M("booking.searchBar.searchButton"),onLeftClick:ye}),Le()),be(),we()):m.default.createElement(ee,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){N.current&&N.current.focus(),V({type:ce.OpenMobileModal}),yield Promise.resolve(),j.current&&(null===(t=j.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:z,value:G,trackingAttributes:f,inputSearchPlaceholder:v}))):m.default.createElement(L,{id:"booking-search-bar",ref:j},Le())},exports.types=Qe;
336
+ `,ze=({data:e,state:t,dispatch:a,isMobile:i,isLoading:o,keyword:n})=>m.default.createElement($e,null,e&&e.map((e=>m.default.createElement(Ve,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:o,keyword:n})))),Ke="api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",Ze="api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",Ge="api/geobyip?site={domain}&latitude={lat}&longitude={lng}",Ue=(e,t,a)=>w.default(e,Object.assign(Object.assign({},t),{domain:i.domainLocales[a||"en-PH"]}));var qe;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(qe||(qe={}));var Qe=Object.freeze({__proto__:null,get RedirectType(){return qe}});exports.BookingSearchBar=({isMobile:s,careApiDomain:l,geoLocationPermission:r,geoLocationCoordinates:c,initialSelectedCity:d,initialSearchValue:u="",careFrontDomain:h="/care",isDebug:p=!1,askForGeolocationPermission:g=!1,gaTrackingSearchBar:f,gaTrackingLocationSearch:C,autoCompleteDisabled:y=!1,inputSearchPlaceholder:v="",routerPush:E,onGeoLocationPermissionChange:w,onSearch:O,onChangeLocation:T})=>{const{t:M,locale:R}=n.useTranslations(),j=t.useRef(null),N=t.useRef(null),[A,P]=t.useState(void 0),{geoLocationPermission:F,geoLocationCoordinates:_,requestGeoLocation:B}=function(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(o.getCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=t.useState((()=>{if("undefined"==typeof window)return null;const e=o.getCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};o.setCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),s(t),a("granted")}),(()=>{o.deleteCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}(),[D,V]=t.useReducer(ue,re,(e=>Object.assign(Object.assign({},e),{isDebug:p,isMobile:s,geoLocationPermission:r||F||"unset",geoLocationCoordinates:c||_||null,searchKeywords:u,initialSelectedCity:d||null,selectedLocation:d||e.selectedLocation||null,searchLocationKeywords:(null==d?void 0:d.name)||e.searchLocationKeywords,autoCompleteDisabled:y,inputSearchPlaceholder:v,locale:R}))),{navigateTo:$,focused:z,isLoadingCities:K,cities:Z,searchKeywords:G,geoLocationPermission:U,selectedLocation:q,initialSelectedCity:Q,defaultCity:W,searchResults:Y,isLoadingSearchResults:J,isMobileModalOpened:X,inputSearchPlaceholder:te}=D,{fetchCitiesByLocation:ae,fetchCitiesByKeyword:ie,fetchSearchResults:oe}=function({dispatch:e,careApiDomain:i,locale:o="vi-VN"}){const n=t.useCallback((function(t,a={}){const n=`${i}${t}`;return e({type:ce.FetchCitiesStart}),fetch(Ue(n,a,o),{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:ce.FetchCitiesFinish})))}),[o]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};t&&(a={lat:t.lat,lng:t.lng});const i=[n(Ge,a)];return"zh-TW"===o&&i.push(n(Ke,{noPaging:1})),Promise.all(i).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:ce.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[o,i,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(Ke,{keyword:t}).then((t=>{e({type:ce.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[o,i,e]),fetchSearchResults:t.useCallback((function(t,n){const s=`${i}${Ze}`;e({type:ce.FetchSearchResultsStart});const{defaultCity:l,selectedLocation:r,geoLocationCoordinates:c}=n;let d="";if(!r||!l)return void e({type:ce.FetchSearchResultsFinish});r.id===a.ID_OPTION_CURRENT_LOCATION?c||(d=l.id):d=r.id;const u=(null==c?void 0:c.lat)||"",h=(null==c?void 0:c.lng)||"";return fetch(Ue(s,{domain:i,searchType:"global",keyword:t.trim().length>le[o]?t.trim():"",city:d===a.ID_OPTION_CURRENT_LOCATION?"":d,lat:u,lng:h},o),{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:ce.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:s,error:e})})).finally((()=>e({type:ce.FetchSearchResultsFinish})))}),[o,i,e])}}({dispatch:V,locale:R,careApiDomain:l}),ne=t.useMemo((()=>{var e;return{id:a.ID_OPTION_CURRENT_LOCATION,name:M("booking.searchBar.currentLocation"),slug:null===(e=a.LOCALIZED_SLUGS[R])||void 0===e?void 0:e.CURRENT}}),[M,R]),de=t.useMemo((()=>b.default(ie,400)),[ie]),he=t.useMemo((()=>b.default(oe,400)),[oe]);t.useEffect((()=>{""!==u&&u!==D.searchKeywords&&V({type:ce.UpdateInitialSearchValue,payload:u})}),[u]),t.useEffect((()=>{g&&(null==q?void 0:q.id)===a.ID_OPTION_CURRENT_LOCATION&&"unset"===U&&B()}),[g,q,U]),t.useEffect((()=>{r||U===F||("granted"===F&&_?V({type:ce.GrantGeoLocationPermission,payload:_}):"denied"===F&&V({type:ce.DenyGeoLocationPermission}))}),[U,F,_,r]),t.useEffect((()=>{$&&(E?E($):window.location.href=`${h}${$}`)}),[$]);const pe=t.useCallback((function(){V({type:ce.SelectCurrentLocation,payload:ne})}),[M,V]);t.useEffect((()=>{"denied"===U||Q||pe(),w&&w(U,D.geoLocationCoordinates),s&&"granted"===U&&q&&V({type:ce.FocusInputSearch}),ae({coordinates:D.geoLocationCoordinates})}),[U]),t.useEffect((()=>{q&&W&&oe(D.searchKeywords,D)}),[q,W]),t.useEffect((()=>{v!==te&&V({type:ce.SetInputSearchPlaceholder,payload:v})}),[v,te]),t.useEffect((()=>{X?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[X]);const ge=t.useCallback((function(e){V({type:ce.SelectLocation,payload:e}),me(),T&&T(e)}),[M,V]);function fe(){s&&"granted"!==D.geoLocationPermission?B():(pe(),me())}function Ce(){var e;j.current&&(null===(e=j.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function me(){var e;j.current&&(null===(e=j.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function be(){V({type:ce.CloseMobileModal})}function ye(){return"location"!==z?null:m.default.createElement(H,{isLoading:K,cities:Z,onLocationClick:ge,onCurrentLocationClick:fe,isLocationLoading:K,geoLocationPermission:U,selectedLocation:q})}function we(){return"search"!==z?null:D.autoCompleteDisabled?s?m.default.createElement(ve,{onClick:()=>{O({cityId:D.selectedLocation.id,keyword:G}),be()}}):null:m.default.createElement(ze,{data:Y,state:D,dispatch:V,isMobile:!1,keyword:G,isLoading:J})}function Le(){return m.default.createElement(Ee,{isMobile:s,state:D,dispatch:V,debouncedFetchCitiesByKeyword:de,debouncedFetchSearchResults:he,focusLocationInput:Ce,focusSearchInput:me,renderLocationResults:ye,renderSearchResults:we,trackingAttributes:f,locationTrackingAttributes:C,onSearch:O,initalSearchValue:u})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;P(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[P]),s?m.default.createElement(m.default.Fragment,null,m.default.createElement(I,null),m.default.createElement(k,{ref:N}),m.default.createElement(x,{id:"booking-search-bar",ref:j,"data-is-modal":s&&X,style:{"--mobile-care-searchbar-height":X&&A?`${A}px`:"100%"}},X?m.default.createElement(m.default.Fragment,null,m.default.createElement(S,null,m.default.createElement(se,{headingText:M("booking.searchBar.searchButton"),onLeftClick:be}),Le()),ye(),we()):m.default.createElement(ee,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){N.current&&N.current.focus(),V({type:ce.OpenMobileModal}),yield Promise.resolve(),j.current&&(null===(t=j.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:z,value:G,trackingAttributes:f,inputSearchPlaceholder:v}))):m.default.createElement(L,{id:"booking-search-bar",ref:j},Le())},exports.types=Qe;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-aef534e9.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-5067e711.js"),o=require("./useTranslations-f990381a.js"),n=require("innertext"),i=require("./theme-b5db0b22.js"),r=require("./index.styled-75d8a80f.js"),s=require("./gAssets.js");require("@mantine/dates");var d=require("./index-5be31d81.js");require("./Onboarding-e7188dcb.js");var c=require("./index-2927bfec.js"),u=require("./index-84241083.js"),m=require("dayjs");require("./screenSizeContext-798a1742.js");var p=require("styled-components"),g=require("./utils-51f2cd64.js");require("./isProduction-8f53dcb4.js"),require("./index-baa581f9.js"),require("@mantine/hooks");var h=require("./index.styled-27887426.js"),f=require("./index-bf6f99ad.js"),v=require("./dataTransform-cc89d72d.js"),b=require("./index-6817b5d7.js"),x=require("./index-b44ec8c0.js"),w=require("lodash/debounce"),y=require("react-contenteditable"),C=require("./index-c859c654.js"),E=require("./index-da41cb71.js"),k=require("./cookieHelper-d25da3c5.js"),A=require("react-dom");require("./index-901a6560.js"),require("./index-6cf880e2.js"),require("./index.styled-5e35b4ce.js"),require("./index-0433c750.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("./index-90898016.js"),require("lodash/throttle"),require("keen-slider/react"),require("./types-a08a20bc.js"),require("react-hook-form"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-f5149bf5.js"),require("uuid"),require("string-format");var N=require("dayjs/plugin/relativeTime"),T=require("./index-7609dab9.js"),S=require("./useUniqueId-92cea548.js");require("./translationsContext-2a1ab5b6.js");var P=require("./routing-b871530b.js");function L(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function M(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var I=M(t),R=L(t),B=L(n),z=L(m),j=L(p),F=L(w),O=L(y),D=M(A),U=L(N);const V=e=>I.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),I.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),_=t.createContext({}),H=({children:e,defaultParams:t})=>R.default.createElement(_.Provider,{value:{defaultParams:t}},e),W=e=>{const{data:{userInfo:a,env:{togetherBasePath:l}}}=t.useContext(h.TogetherComponentGlobalContext),{defaultParams:o}=t.useContext(_)||{},n=null==a?void 0:a.id,i=a&&"number"==typeof a.communities_interacted&&0===a.communities_interacted;return{authActionWrapper:(t,a)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),a);if(!n||i){n||k.deleteCookie(h.BEARER_TOKEN_COOKIE),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=h.getUrlToSignUp(e,r,l),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},q=j.default.div`
1
+ "use strict";var e=require("./tslib.es6-2b9c7f39.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-a2e9d5c4.js"),o=require("./useTranslations-e6471450.js"),n=require("innertext"),i=require("./theme-e6617535.js"),r=require("./index.styled-e08cb40a.js"),s=require("./gAssets.js");require("@mantine/dates");var d=require("./index-db24cc2b.js");require("./Onboarding-386da25f.js");var c=require("./index-22636553.js"),u=require("./index-ba665467.js"),m=require("dayjs");require("./screenSizeContext-4c55b105.js");var p=require("styled-components"),g=require("./utils-f34b18a5.js");require("./isProduction-94a4755f.js"),require("./index-ab31e997.js"),require("@mantine/hooks");var h=require("./index.styled-d7623e58.js"),f=require("./index-02854b87.js"),v=require("./dataTransform-1273ddfa.js"),b=require("./index-f88ab2a2.js"),x=require("./index-3648abb2.js"),w=require("lodash/debounce"),y=require("react-contenteditable"),C=require("./index-df0753a4.js"),E=require("./index-92a238c5.js"),k=require("./cookieHelper-0bc3ae2b.js"),A=require("react-dom");require("./index-8cc81676.js"),require("./index-c627323c.js"),require("./index.styled-6fc782db.js"),require("./index-913e2c6c.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("./index-5f523ace.js"),require("lodash/throttle"),require("keen-slider/react"),require("./types-55c7d514.js"),require("react-hook-form"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-fe39278e.js"),require("uuid"),require("string-format");var N=require("dayjs/plugin/relativeTime"),T=require("./index-5f661406.js"),S=require("./useUniqueId-bc64acc5.js");require("./translationsContext-4ae22b06.js");var P=require("./routing-4d26e8ff.js");function L(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function M(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var I=M(t),R=L(t),B=L(n),z=L(m),j=L(p),F=L(w),O=L(y),D=M(A),U=L(N);const V=e=>I.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),I.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),_=t.createContext({}),H=({children:e,defaultParams:t})=>R.default.createElement(_.Provider,{value:{defaultParams:t}},e),W=e=>{const{data:{userInfo:a,env:{togetherBasePath:l}}}=t.useContext(h.TogetherComponentGlobalContext),{defaultParams:o}=t.useContext(_)||{},n=null==a?void 0:a.id,i=a&&"number"==typeof a.communities_interacted&&0===a.communities_interacted;return{authActionWrapper:(t,a)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),a);if(!n||i){n||k.deleteCookie(h.BEARER_TOKEN_COOKIE),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=h.getUrlToSignUp(e,r,l),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},q=j.default.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
package/build/types.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-e7188dcb.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-386da25f.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}});
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./tslib.es6-2b9c7f39.js"),t=require("react"),o=require("./getDynamicHealthTool-b87c4bce.js");exports.useHealthToolsCache=a=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield o.getDynamicHealthToolWithCache(a);l(e)}))}),[o.getDynamicHealthToolWithCache,a]);const c=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:c}};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-aef534e9.js"),t=require("react"),r=require("./cookieHelper-d25da3c5.js"),n=require("./useUniqueId-92cea548.js");function i(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}exports.useFbDataLayer=n=>{const a=t.useRef("");t.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,o,u,l;if(!a.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),a.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(o=a.current)||void 0===o?void 0:o.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==n?void 0:n.id){const[e,t,a,o,c,s]=yield Promise.all([n.email?i(n.email):null,n.phone?i(n.phone):null,n.birthday?i(n.birthday.split("-").join("")):null,n.gender?"m":"f",n.city_name?i(n.city_name).then((e=>e.replace(/\s/g,""))):null,n.name?i(n.name):null]);r.getCookie("_fbc"),r.getCookie("_fbp");const d={user_id:n.id};s&&(d.fn=s),e&&(d.em=e),t&&(d.ph=t),a&&(d.db=a),c&&(d.ct=c),null===(l=null===(u=window.localStorage)||void 0===u?void 0:u.setItem)||void 0===l||l.call(u,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[n])},exports.usePrevious=e=>{const r=t.useRef(),i=t.useRef(e);return n.useInitialMount()||i.current===e||(r.current=i.current,i.current=e),r.current},exports.useRafState=e=>{const[r,n]=t.useState(e),i=t.useRef(0),a=t.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{n(e)}))}),[]);return t.useEffect((()=>()=>cancelAnimationFrame(i.current))),[r,a]};
1
+ "use strict";var e=require("./tslib.es6-2b9c7f39.js"),t=require("react"),r=require("./cookieHelper-0bc3ae2b.js"),n=require("./useUniqueId-bc64acc5.js");function i(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}exports.useFbDataLayer=n=>{const a=t.useRef("");t.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,o,u,c;if(!a.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),a.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(o=a.current)||void 0===o?void 0:o.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==n?void 0:n.id){const[e,t,a,o,l,s]=yield Promise.all([n.email?i(n.email):null,n.phone?i(n.phone):null,n.birthday?i(n.birthday.split("-").join("")):null,n.gender?"m":"f",n.city_name?i(n.city_name).then((e=>e.replace(/\s/g,""))):null,n.name?i(n.name):null]);r.getCookie("_fbc"),r.getCookie("_fbp");const d={user_id:n.id};s&&(d.fn=s),e&&(d.em=e),t&&(d.ph=t),a&&(d.db=a),l&&(d.ct=l),null===(c=null===(u=window.localStorage)||void 0===u?void 0:u.setItem)||void 0===c||c.call(u,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[n])},exports.usePrevious=e=>{const r=t.useRef(),i=t.useRef(e);return n.useInitialMount()||i.current===e||(r.current=i.current,i.current=e),r.current},exports.useRafState=e=>{const[r,n]=t.useState(e),i=t.useRef(0),a=t.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{n(e)}))}),[]);return t.useEffect((()=>()=>cancelAnimationFrame(i.current))),[r,a]};
@@ -1 +1 @@
1
- "use strict";var e=require("react"),a=require("./translationsContext-2a1ab5b6.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(require("string-format"));exports.useTranslations=function(){const{values:t,locale:o}=e.useContext(a.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,r)=>t?t[e]?r?n.default(t[e]||e,r):t[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),r?n.default(a.defaultTranslations[e]||e,r):a.defaultTranslations[e]||e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[t,o])};
1
+ "use strict";var e=require("react"),a=require("./translationsContext-4ae22b06.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(require("string-format"));exports.useTranslations=function(){const{values:t,locale:o}=e.useContext(a.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,r)=>t?t[e]?r?n.default(t[e]||e,r):t[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),r?n.default(a.defaultTranslations[e]||e,r):a.defaultTranslations[e]||e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[t,o])};