@hhgtech/hhg-components 1.27.64 → 1.27.65

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 (293) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/atoms/icons/Plus.d.ts +0 -1
  5. package/build/components.js +1 -1
  6. package/build/constants.js +1 -1
  7. package/build/{core-36b70a72.js → core-8fa69c4e.js} +1 -1
  8. package/build/{dataTransform-fb9d2eaa.js → dataTransform-183f0a89.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +5 -5
  11. package/build/esm/cache.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components/atoms/icons/Plus.d.ts +0 -1
  14. package/build/esm/components.js +1 -1
  15. package/build/esm/constants.js +1 -1
  16. package/build/esm/{core-26252874.js → core-8d8133c6.js} +1 -1
  17. package/build/esm/{dataTransform-584a8942.js → dataTransform-828b0610.js} +1 -1
  18. package/build/esm/ecom.js +1 -1
  19. package/build/esm/{fixedBottomAdBlock-60979769.js → fixedBottomAdBlock-a8558744.js} +1 -1
  20. package/build/esm/footer.js +1 -1
  21. package/build/esm/gAssets.js +1 -1
  22. package/build/esm/getDynamicHealthTool-a6133467.js +1 -0
  23. package/build/esm/{getSocialList-964f1d26.js → getSocialList-89088867.js} +1 -1
  24. package/build/esm/hooks.js +1 -1
  25. package/build/esm/i18n.js +1 -1
  26. package/build/esm/i18nV2.js +1 -1
  27. package/build/esm/icons/index.d.ts +1 -10
  28. package/build/esm/{index-b8de3b3e.js → index-008e6823.js} +1 -1
  29. package/build/esm/{index-33b4eeca.js → index-0a8511e9.js} +1 -1
  30. package/build/esm/{index-fab041f7.js → index-0df71134.js} +1 -1
  31. package/build/esm/{index-1edc629f.js → index-1664824d.js} +1 -1
  32. package/build/esm/{index-2c89ccd4.js → index-2139478a.js} +1 -1
  33. package/build/esm/index-388f05d1.js +53 -0
  34. package/build/esm/{index-a965ea18.js → index-38959739.js} +1 -1
  35. package/build/esm/{index-1d68ad86.js → index-3cc4d399.js} +1 -1
  36. package/build/esm/{index-0c9bddd5.js → index-4018e954.js} +1 -1
  37. package/build/esm/{index-5568265c.js → index-49edd755.js} +1 -1
  38. package/build/esm/index-5399422b.js +1 -0
  39. package/build/esm/index-69a72d60.js +1 -0
  40. package/build/esm/{index-7c07fc3f.js → index-84d41c55.js} +4 -4
  41. package/build/esm/index-985864ab.js +1 -0
  42. package/build/esm/{index-0da327c2.js → index-98969c21.js} +1 -1
  43. package/build/esm/{index-3cd612ba.js → index-b0d4c8fa.js} +1 -1
  44. package/build/esm/{index-a4cd52e2.js → index-c32bc041.js} +1 -1
  45. package/build/esm/index-cb5ed82e.js +1 -0
  46. package/build/esm/{index-7b18af53.js → index-dac6a1ca.js} +1 -1
  47. package/build/esm/{index-b54d6ed4.js → index-ed6a633c.js} +1 -1
  48. package/build/esm/index-edd38938.js +1 -0
  49. package/build/esm/{index-ddcb3128.js → index-fe1140bf.js} +2 -2
  50. package/build/esm/index.js +1 -1
  51. package/build/esm/{index.styled-e5feba36.js → index.styled-089fb51b.js} +3 -3
  52. package/build/esm/{index.styled-80ad3b8e.js → index.styled-bd98c51b.js} +9 -9
  53. package/build/esm/{index.styled-3ecad288.js → index.styled-c0e7c0e2.js} +6 -6
  54. package/build/esm/lead.js +1 -1
  55. package/build/esm/mantine.js +1 -1
  56. package/build/esm/misc.js +1 -1
  57. package/build/esm/navigation.js +1 -1
  58. package/build/esm/onboarding.js +1 -1
  59. package/build/esm/onboardingV2.js +1 -1
  60. package/build/esm/pwg.js +3 -3
  61. package/build/esm/{routing-eb8a078e.js → routing-efa9ad3e.js} +1 -1
  62. package/build/esm/{screenSizeContext-3337bf90.js → screenSizeContext-72879ba5.js} +4 -4
  63. package/build/esm/together.js +1 -1
  64. package/build/esm/{types-30d034e9.js → types-76dc7f4d.js} +38 -38
  65. package/build/esm/{types-89cc0ffb.js → types-ccbd2b92.js} +1 -1
  66. package/build/esm/types.js +1 -1
  67. package/build/esm/{useHealthToolCache-c4e915e2.js → useHealthToolCache-8a255b38.js} +1 -1
  68. package/build/esm/{useRafState-a399c00f.js → useRafState-9454094a.js} +1 -1
  69. package/build/esm/useTranslations-867f4438.js +1 -0
  70. package/build/esm/{utils-588386e1.js → utils-4f377733.js} +1 -1
  71. package/build/esm/{utils-e90f7b7a.js → utils-b18d6dc0.js} +25 -29
  72. package/build/esm/vaccination.js +1 -1
  73. package/build/{fixedBottomAdBlock-5d31f76e.js → fixedBottomAdBlock-ead8d531.js} +1 -1
  74. package/build/footer.js +1 -1
  75. package/build/gAssets.js +1 -1
  76. package/build/getDynamicHealthTool-5e309a19.js +1 -0
  77. package/build/{getSocialList-378966a9.js → getSocialList-5519aeaf.js} +1 -1
  78. package/build/hooks.js +1 -1
  79. package/build/i18n.js +1 -1
  80. package/build/i18nV2.js +1 -1
  81. package/build/icons/index.d.ts +1 -10
  82. package/build/{index-2a4ce365.js → index-0adc19ec.js} +1 -1
  83. package/build/{index-63b91e27.js → index-0ae0e99b.js} +1 -1
  84. package/build/{index-53e8f11c.js → index-20fcf513.js} +1 -1
  85. package/build/{index-27b37035.js → index-2587fdd8.js} +1 -1
  86. package/build/index-2ebedd68.js +53 -0
  87. package/build/{index-38402874.js → index-329a8f28.js} +1 -1
  88. package/build/{index-33b0c279.js → index-438678eb.js} +1 -1
  89. package/build/{index-5ca35179.js → index-4829ab1b.js} +1 -1
  90. package/build/{index-9c887f7f.js → index-5afb9a33.js} +1 -1
  91. package/build/{index-973817ad.js → index-641b8a2d.js} +1 -1
  92. package/build/{index-ecfef562.js → index-7cf1752e.js} +1 -1
  93. package/build/index-8cf73a21.js +1 -0
  94. package/build/{index-5ee72b9c.js → index-94f2dbb9.js} +1 -1
  95. package/build/index-98b81a95.js +1 -0
  96. package/build/{index-4ab65948.js → index-98bb178d.js} +1 -1
  97. package/build/{index-a28a6d36.js → index-aab043d9.js} +1 -1
  98. package/build/{index-509a0b0a.js → index-b1d4d77c.js} +1 -1
  99. package/build/{index-75eccc5e.js → index-c0ebb986.js} +1 -1
  100. package/build/{index-7de88c1c.js → index-c4685109.js} +1 -1
  101. package/build/{index-70171072.js → index-e84a6a14.js} +1 -1
  102. package/build/{index-9a15f4f9.js → index-f8f30578.js} +1 -1
  103. package/build/index-fa4d381a.js +1 -0
  104. package/build/index.js +1 -1
  105. package/build/{index.styled-2f40cf9b.js → index.styled-765feecc.js} +1 -1
  106. package/build/index.styled-eb4ccdac.js +50 -0
  107. package/build/{index.styled-4dba8b73.js → index.styled-f5321c72.js} +3 -3
  108. package/build/lead.js +1 -1
  109. package/build/mantine.js +1 -1
  110. package/build/misc.js +1 -1
  111. package/build/navigation.js +1 -1
  112. package/build/onboarding.js +1 -1
  113. package/build/onboardingV2.js +1 -1
  114. package/build/pwg.js +2 -2
  115. package/build/{routing-02efe154.js → routing-76a29289.js} +1 -1
  116. package/build/{screenSizeContext-6187e101.js → screenSizeContext-2ec3be24.js} +1 -1
  117. package/build/together.js +1 -1
  118. package/build/{types-9313bf01.js → types-3ae636c2.js} +1 -1
  119. package/build/{types-1c50147e.js → types-db35dc9b.js} +8 -8
  120. package/build/types.js +1 -1
  121. package/build/{useHealthToolCache-a6b67a0b.js → useHealthToolCache-68d4bec0.js} +1 -1
  122. package/build/{useRafState-2d31dfc5.js → useRafState-46ab8521.js} +1 -1
  123. package/build/{useTranslations-5cc61c9f.js → useTranslations-7a6dc657.js} +1 -1
  124. package/build/{utils-bcdb95ca.js → utils-12cf57b1.js} +1 -1
  125. package/build/{utils-26319b1a.js → utils-7923573b.js} +27 -31
  126. package/build/vaccination.js +1 -1
  127. package/package.json +1 -1
  128. package/build/esm/getDynamicHealthTool-5a5304d0.js +0 -1
  129. package/build/esm/icons/Cambodia.d.ts +0 -4
  130. package/build/esm/icons/India.d.ts +0 -4
  131. package/build/esm/icons/Indonesia.d.ts +0 -4
  132. package/build/esm/icons/Malaysia.d.ts +0 -4
  133. package/build/esm/icons/Myanmar.d.ts +0 -4
  134. package/build/esm/icons/Phillipines.d.ts +0 -4
  135. package/build/esm/icons/Taiwan.d.ts +0 -4
  136. package/build/esm/icons/Thailand.d.ts +0 -4
  137. package/build/esm/icons/Vietnam.d.ts +0 -4
  138. package/build/esm/index-03812bdc.js +0 -1
  139. package/build/esm/index-0f134243.js +0 -1
  140. package/build/esm/index-5b595e94.js +0 -53
  141. package/build/esm/index-85277962.js +0 -1
  142. package/build/esm/index-c048cc84.js +0 -1
  143. package/build/esm/index-c6368912.js +0 -1
  144. package/build/esm/useTranslations-16eca5b5.js +0 -1
  145. package/build/getDynamicHealthTool-6034f06a.js +0 -1
  146. package/build/icons/Cambodia.d.ts +0 -4
  147. package/build/icons/India.d.ts +0 -4
  148. package/build/icons/Indonesia.d.ts +0 -4
  149. package/build/icons/Malaysia.d.ts +0 -4
  150. package/build/icons/Myanmar.d.ts +0 -4
  151. package/build/icons/Phillipines.d.ts +0 -4
  152. package/build/icons/Taiwan.d.ts +0 -4
  153. package/build/icons/Thailand.d.ts +0 -4
  154. package/build/icons/Vietnam.d.ts +0 -4
  155. package/build/index-3daba579.js +0 -1
  156. package/build/index-7c68db10.js +0 -1
  157. package/build/index-a44d34cc.js +0 -53
  158. package/build/index-ad80e678.js +0 -1
  159. package/build/index.styled-69804a49.js +0 -50
  160. /package/build/{BMI_BOYS.percentile.monthly-883a7d5d.js → BMI_BOYS.percentile.monthly-c93fe05c.js} +0 -0
  161. /package/build/{BMI_BOYS.percentile.weekly-3431cbf3.js → BMI_BOYS.percentile.weekly-9f4a7360.js} +0 -0
  162. /package/build/{BMI_BOYS.percentile.yearly-d18e4941.js → BMI_BOYS.percentile.yearly-d9717969.js} +0 -0
  163. /package/build/{BMI_BOYS.zscore.monthly-7b6a101a.js → BMI_BOYS.zscore.monthly-4891e555.js} +0 -0
  164. /package/build/{BMI_BOYS.zscore.weekly-a5217019.js → BMI_BOYS.zscore.weekly-6378d046.js} +0 -0
  165. /package/build/{BMI_BOYS.zscore.yearly-11ef12f2.js → BMI_BOYS.zscore.yearly-8258f34c.js} +0 -0
  166. /package/build/{BMI_GIRLS.percentile.monthly-f5e716c3.js → BMI_GIRLS.percentile.monthly-9c011d42.js} +0 -0
  167. /package/build/{BMI_GIRLS.percentile.weekly-398b5137.js → BMI_GIRLS.percentile.weekly-1aafd7ea.js} +0 -0
  168. /package/build/{BMI_GIRLS.percentile.yearly-180759a7.js → BMI_GIRLS.percentile.yearly-c07d8294.js} +0 -0
  169. /package/build/{BMI_GIRLS.zscore.monthly-b10cdadc.js → BMI_GIRLS.zscore.monthly-a52b4325.js} +0 -0
  170. /package/build/{BMI_GIRLS.zscore.weekly-1d938a35.js → BMI_GIRLS.zscore.weekly-36c16796.js} +0 -0
  171. /package/build/{BMI_GIRLS.zscore.yearly-bae676a9.js → BMI_GIRLS.zscore.yearly-355dbf5c.js} +0 -0
  172. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-eaf2fb40.js → HEAD CIRCUM_BOYS.percentile.monthly-950181c5.js} +0 -0
  173. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-61326f41.js → HEAD CIRCUM_BOYS.percentile.weekly-d0f3d972.js} +0 -0
  174. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-babe5336.js → HEAD CIRCUM_BOYS.percentile.yearly-41578035.js} +0 -0
  175. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-103f72d4.js → HEAD CIRCUM_BOYS.zscore.monthly-08979c4b.js} +0 -0
  176. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-aa255ea6.js → HEAD CIRCUM_BOYS.zscore.weekly-e002d31c.js} +0 -0
  177. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-49964835.js → HEAD CIRCUM_BOYS.zscore.yearly-8cb86777.js} +0 -0
  178. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-0f804779.js → HEAD CIRCUM_GIRLS.percentile.monthly-da1953ff.js} +0 -0
  179. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-42269a91.js → HEAD CIRCUM_GIRLS.percentile.weekly-c17050f4.js} +0 -0
  180. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-477b46d4.js → HEAD CIRCUM_GIRLS.percentile.yearly-89e01428.js} +0 -0
  181. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-c8349198.js → HEAD CIRCUM_GIRLS.zscore.monthly-2aac13dc.js} +0 -0
  182. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-effd5b38.js → HEAD CIRCUM_GIRLS.zscore.weekly-9637ef6f.js} +0 -0
  183. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-ff63ab65.js → HEAD CIRCUM_GIRLS.zscore.yearly-2ec14e1f.js} +0 -0
  184. /package/build/{HEIGHT_BOYS.percentile.monthly-100312ef.js → HEIGHT_BOYS.percentile.monthly-e8cd8a3a.js} +0 -0
  185. /package/build/{HEIGHT_BOYS.percentile.weekly-25804e10.js → HEIGHT_BOYS.percentile.weekly-445e58bc.js} +0 -0
  186. /package/build/{HEIGHT_BOYS.percentile.yearly-790abaab.js → HEIGHT_BOYS.percentile.yearly-0cb23a78.js} +0 -0
  187. /package/build/{HEIGHT_BOYS.zscore.monthly-1937cd05.js → HEIGHT_BOYS.zscore.monthly-770d9962.js} +0 -0
  188. /package/build/{HEIGHT_BOYS.zscore.weekly-b30e141c.js → HEIGHT_BOYS.zscore.weekly-fce9ab91.js} +0 -0
  189. /package/build/{HEIGHT_BOYS.zscore.yearly-b206a8f2.js → HEIGHT_BOYS.zscore.yearly-172cbce5.js} +0 -0
  190. /package/build/{HEIGHT_GIRLS.percentile.monthly-2e0489e9.js → HEIGHT_GIRLS.percentile.monthly-f364d029.js} +0 -0
  191. /package/build/{HEIGHT_GIRLS.percentile.weekly-4d76b68d.js → HEIGHT_GIRLS.percentile.weekly-370e9f31.js} +0 -0
  192. /package/build/{HEIGHT_GIRLS.percentile.yearly-2bd725ca.js → HEIGHT_GIRLS.percentile.yearly-6e43d45b.js} +0 -0
  193. /package/build/{HEIGHT_GIRLS.zscore.monthly-e3a97b8c.js → HEIGHT_GIRLS.zscore.monthly-361a5fd4.js} +0 -0
  194. /package/build/{HEIGHT_GIRLS.zscore.weekly-26aa77b5.js → HEIGHT_GIRLS.zscore.weekly-1dce7533.js} +0 -0
  195. /package/build/{HEIGHT_GIRLS.zscore.yearly-25699d17.js → HEIGHT_GIRLS.zscore.yearly-88931eaa.js} +0 -0
  196. /package/build/{Onboarding-5e479463.js → Onboarding-f60f1731.js} +0 -0
  197. /package/build/{Visible-963cc805.js → Visible-7ffc3ded.js} +0 -0
  198. /package/build/{WEIGHT_BOYS.percentile.monthly-f5ec350e.js → WEIGHT_BOYS.percentile.monthly-db112fdf.js} +0 -0
  199. /package/build/{WEIGHT_BOYS.percentile.weekly-d3225a3e.js → WEIGHT_BOYS.percentile.weekly-cd5cc546.js} +0 -0
  200. /package/build/{WEIGHT_BOYS.percentile.yearly-90a29085.js → WEIGHT_BOYS.percentile.yearly-046061a9.js} +0 -0
  201. /package/build/{WEIGHT_BOYS.zscore.monthly-57ac1f4c.js → WEIGHT_BOYS.zscore.monthly-7706845b.js} +0 -0
  202. /package/build/{WEIGHT_BOYS.zscore.weekly-efc0c806.js → WEIGHT_BOYS.zscore.weekly-21c0fa5c.js} +0 -0
  203. /package/build/{WEIGHT_BOYS.zscore.yearly-cf3d5e7f.js → WEIGHT_BOYS.zscore.yearly-2c333c17.js} +0 -0
  204. /package/build/{WEIGHT_GIRLS.percentile.monthly-58c7aa25.js → WEIGHT_GIRLS.percentile.monthly-fb3ca4ea.js} +0 -0
  205. /package/build/{WEIGHT_GIRLS.percentile.weekly-117867ba.js → WEIGHT_GIRLS.percentile.weekly-fbaa8120.js} +0 -0
  206. /package/build/{WEIGHT_GIRLS.percentile.yearly-e52005a0.js → WEIGHT_GIRLS.percentile.yearly-a54a1048.js} +0 -0
  207. /package/build/{WEIGHT_GIRLS.zscore.monthly-cb0632b8.js → WEIGHT_GIRLS.zscore.monthly-6b72bfa7.js} +0 -0
  208. /package/build/{WEIGHT_GIRLS.zscore.weekly-e4a924c1.js → WEIGHT_GIRLS.zscore.weekly-b118ba73.js} +0 -0
  209. /package/build/{WEIGHT_GIRLS.zscore.yearly-c4a4bb3e.js → WEIGHT_GIRLS.zscore.yearly-eaf095db.js} +0 -0
  210. /package/build/{constants-e6dfdef6.js → constants-fc06ec88.js} +0 -0
  211. /package/build/{cookieHelper-254d109b.js → cookieHelper-e2a16eef.js} +0 -0
  212. /package/build/{dataTransform-8faadee4.js → dataTransform-87ccd8ae.js} +0 -0
  213. /package/build/esm/{BMI_BOYS.percentile.monthly-325f5ebe.js → BMI_BOYS.percentile.monthly-f5493df9.js} +0 -0
  214. /package/build/esm/{BMI_BOYS.percentile.weekly-56ac91ef.js → BMI_BOYS.percentile.weekly-079676ff.js} +0 -0
  215. /package/build/esm/{BMI_BOYS.percentile.yearly-3b7b04ab.js → BMI_BOYS.percentile.yearly-2c8fb9be.js} +0 -0
  216. /package/build/esm/{BMI_BOYS.zscore.monthly-90ff64f1.js → BMI_BOYS.zscore.monthly-70f284f6.js} +0 -0
  217. /package/build/esm/{BMI_BOYS.zscore.weekly-4f6a6684.js → BMI_BOYS.zscore.weekly-5c8f1872.js} +0 -0
  218. /package/build/esm/{BMI_BOYS.zscore.yearly-528465ad.js → BMI_BOYS.zscore.yearly-e60ff028.js} +0 -0
  219. /package/build/esm/{BMI_GIRLS.percentile.monthly-fc8dbf70.js → BMI_GIRLS.percentile.monthly-53d8478c.js} +0 -0
  220. /package/build/esm/{BMI_GIRLS.percentile.weekly-25c529f5.js → BMI_GIRLS.percentile.weekly-5a929114.js} +0 -0
  221. /package/build/esm/{BMI_GIRLS.percentile.yearly-f8e41e97.js → BMI_GIRLS.percentile.yearly-7c75b3d1.js} +0 -0
  222. /package/build/esm/{BMI_GIRLS.zscore.monthly-4a2056f8.js → BMI_GIRLS.zscore.monthly-8fdd3d14.js} +0 -0
  223. /package/build/esm/{BMI_GIRLS.zscore.weekly-cef72585.js → BMI_GIRLS.zscore.weekly-5bfbecc6.js} +0 -0
  224. /package/build/esm/{BMI_GIRLS.zscore.yearly-ed430c3d.js → BMI_GIRLS.zscore.yearly-0bf13165.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-07bca9f8.js → HEAD CIRCUM_BOYS.percentile.monthly-50fa3100.js} +0 -0
  226. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-51ed6bd7.js → HEAD CIRCUM_BOYS.percentile.weekly-fd874376.js} +0 -0
  227. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-2312ef41.js → HEAD CIRCUM_BOYS.percentile.yearly-8892d457.js} +0 -0
  228. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ea118459.js → HEAD CIRCUM_BOYS.zscore.monthly-55473372.js} +0 -0
  229. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-35d84ac7.js → HEAD CIRCUM_BOYS.zscore.weekly-b9e4bf5a.js} +0 -0
  230. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-827dbe4a.js → HEAD CIRCUM_BOYS.zscore.yearly-fe185932.js} +0 -0
  231. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-9653cba0.js → HEAD CIRCUM_GIRLS.percentile.monthly-25307c81.js} +0 -0
  232. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-55417ee8.js → HEAD CIRCUM_GIRLS.percentile.weekly-d02f0035.js} +0 -0
  233. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-aae78d36.js → HEAD CIRCUM_GIRLS.percentile.yearly-f8d756b7.js} +0 -0
  234. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-1fabf8df.js → HEAD CIRCUM_GIRLS.zscore.monthly-f06224ac.js} +0 -0
  235. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-be584760.js → HEAD CIRCUM_GIRLS.zscore.weekly-4c10101b.js} +0 -0
  236. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-fb88c238.js → HEAD CIRCUM_GIRLS.zscore.yearly-140a665b.js} +0 -0
  237. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ef9a1b5b.js → HEIGHT_BOYS.percentile.monthly-d4698bd0.js} +0 -0
  238. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-b5648877.js → HEIGHT_BOYS.percentile.weekly-281d80ba.js} +0 -0
  239. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-d90d3425.js → HEIGHT_BOYS.percentile.yearly-86a463f9.js} +0 -0
  240. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a3438cd2.js → HEIGHT_BOYS.zscore.monthly-dc709a7e.js} +0 -0
  241. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e7901014.js → HEIGHT_BOYS.zscore.weekly-f91429b3.js} +0 -0
  242. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-2c5b855b.js → HEIGHT_BOYS.zscore.yearly-490d1d03.js} +0 -0
  243. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0a6208b7.js → HEIGHT_GIRLS.percentile.monthly-e819f004.js} +0 -0
  244. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-9a054278.js → HEIGHT_GIRLS.percentile.weekly-3cae80a1.js} +0 -0
  245. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-0cae0852.js → HEIGHT_GIRLS.percentile.yearly-f1c09b16.js} +0 -0
  246. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-86ec4817.js → HEIGHT_GIRLS.zscore.monthly-6f0a649c.js} +0 -0
  247. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-cc2e6824.js → HEIGHT_GIRLS.zscore.weekly-3ed3a4f3.js} +0 -0
  248. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-88a5cc2e.js → HEIGHT_GIRLS.zscore.yearly-2100de16.js} +0 -0
  249. /package/build/esm/{Onboarding-815a1838.js → Onboarding-f02d6d21.js} +0 -0
  250. /package/build/esm/{Visible-8c624f0f.js → Visible-2886fabc.js} +0 -0
  251. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-1b81ebeb.js → WEIGHT_BOYS.percentile.monthly-1820e415.js} +0 -0
  252. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-7b54b1ff.js → WEIGHT_BOYS.percentile.weekly-4866156b.js} +0 -0
  253. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-96c126da.js → WEIGHT_BOYS.percentile.yearly-dbffaffe.js} +0 -0
  254. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c02237fe.js → WEIGHT_BOYS.zscore.monthly-1d27dba3.js} +0 -0
  255. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7523460f.js → WEIGHT_BOYS.zscore.weekly-58eb8a55.js} +0 -0
  256. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-19567e91.js → WEIGHT_BOYS.zscore.yearly-03a20934.js} +0 -0
  257. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-37d959fb.js → WEIGHT_GIRLS.percentile.monthly-e69188ad.js} +0 -0
  258. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-7371a10b.js → WEIGHT_GIRLS.percentile.weekly-ade03461.js} +0 -0
  259. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-15f75ac8.js → WEIGHT_GIRLS.percentile.yearly-780f9d37.js} +0 -0
  260. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-a0bbc77f.js → WEIGHT_GIRLS.zscore.monthly-7e5e8ace.js} +0 -0
  261. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-bb87503f.js → WEIGHT_GIRLS.zscore.weekly-ec1bd19b.js} +0 -0
  262. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-547a1fbc.js → WEIGHT_GIRLS.zscore.yearly-d3ac1363.js} +0 -0
  263. /package/build/esm/{constants-36505bfb.js → constants-d55a1795.js} +0 -0
  264. /package/build/esm/{cookieHelper-c0937aad.js → cookieHelper-6f4e3a41.js} +0 -0
  265. /package/build/esm/{dataTransform-0646d6c4.js → dataTransform-ae1c1731.js} +0 -0
  266. /package/build/esm/{index-6aded33a.js → index-60d18ce9.js} +0 -0
  267. /package/build/esm/{isProduction-f91b95cd.js → isProduction-0c2cae98.js} +0 -0
  268. /package/build/esm/{localizeNumberFormat-0da4e43f.js → localizeNumberFormat-12572e07.js} +0 -0
  269. /package/build/esm/{normalizeLink-083ce503.js → normalizeLink-935cd392.js} +0 -0
  270. /package/build/esm/{paths-5e16c4a6.js → paths-dbed4a65.js} +0 -0
  271. /package/build/esm/{theme-c780a012.js → theme-11563c3e.js} +0 -0
  272. /package/build/esm/{translationsContext-b1bd96cb.js → translationsContext-9e7b886f.js} +0 -0
  273. /package/build/esm/{tslib.es6-9c1790be.js → tslib.es6-59dde6fd.js} +0 -0
  274. /package/build/esm/{types-1f213f81.js → types-8359c3c0.js} +0 -0
  275. /package/build/esm/{useIsInit-fb358274.js → useIsInit-5c7bb63a.js} +0 -0
  276. /package/build/esm/{useOutsideClick-086d4bef.js → useOutsideClick-80d055f7.js} +0 -0
  277. /package/build/esm/{useScrollbarSize-2b796e8b.js → useScrollbarSize-e1a8f47f.js} +0 -0
  278. /package/build/esm/{useUniqueId-eef5d661.js → useUniqueId-cb0fa4a1.js} +0 -0
  279. /package/build/esm/{utils-35a508ae.js → utils-3cac945d.js} +0 -0
  280. /package/build/{index-1d2d6c71.js → index-ab06984c.js} +0 -0
  281. /package/build/{isProduction-517872ce.js → isProduction-3d2e8fb4.js} +0 -0
  282. /package/build/{localizeNumberFormat-6a3526e0.js → localizeNumberFormat-e4fed0ee.js} +0 -0
  283. /package/build/{normalizeLink-ef31244a.js → normalizeLink-81027e41.js} +0 -0
  284. /package/build/{paths-597a9110.js → paths-0c90b0af.js} +0 -0
  285. /package/build/{theme-791de2a4.js → theme-0f334c67.js} +0 -0
  286. /package/build/{translationsContext-84598533.js → translationsContext-ed457050.js} +0 -0
  287. /package/build/{tslib.es6-5cc34723.js → tslib.es6-d82afd51.js} +0 -0
  288. /package/build/{types-f385e06e.js → types-7f987664.js} +0 -0
  289. /package/build/{useIsInit-c4d6088c.js → useIsInit-37600900.js} +0 -0
  290. /package/build/{useOutsideClick-5185a271.js → useOutsideClick-efe21940.js} +0 -0
  291. /package/build/{useScrollbarSize-2cfc3ebb.js → useScrollbarSize-b666e0b9.js} +0 -0
  292. /package/build/{useUniqueId-9b2409a5.js → useUniqueId-c9fd43d1.js} +0 -0
  293. /package/build/{utils-1d3a9504.js → utils-f67a089d.js} +0 -0
package/build/pwg.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-973817ad.js"),a=require("./index-ad80e678.js"),l=require("./index-7de88c1c.js"),r=require("./useTranslations-5cc61c9f.js"),n=require("./theme-791de2a4.js"),o=require("recharts"),i=require("./index-5ee72b9c.js"),s=require("./useOutsideClick-5185a271.js"),c=require("styled-components"),d=require("./tslib.es6-5cc34723.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./Onboarding-5e479463.js"),require("./index.styled-69804a49.js"),require("./gAssets.js"),require("./index-9a15f4f9.js"),require("date-fns/locale"),require("./isProduction-517872ce.js"),require("./translationsContext-84598533.js"),require("string-format"),require("@mantine/carousel"),require("@mantine/core"),require("@mantine/hooks");var m=u(e),f=u(c);const p=e=>{const{x:t,y:a,payload:l,activeWeek:r}=e;return r===l.value?m.default.createElement("g",{transform:`translate(${t},${a})`},m.default.createElement("circle",{r:12,fill:"marryBaby"===e.siteType?n.theme.mbColors.pink:n.theme.colors.primaryBase}),m.default.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:n.theme.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},l.value)):m.default.createElement("g",{transform:`translate(${t},${a})`},m.default.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:n.theme.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},l.value))},g=f.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-641b8a2d.js"),a=require("./index-8cf73a21.js"),l=require("./index-c4685109.js"),r=require("./useTranslations-7a6dc657.js"),n=require("./theme-0f334c67.js"),o=require("recharts"),i=require("./index-94f2dbb9.js"),s=require("./useOutsideClick-efe21940.js"),c=require("styled-components"),d=require("./tslib.es6-d82afd51.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./Onboarding-f60f1731.js"),require("./index.styled-eb4ccdac.js"),require("./gAssets.js"),require("./index-f8f30578.js"),require("date-fns/locale"),require("./isProduction-3d2e8fb4.js"),require("./translationsContext-ed457050.js"),require("string-format"),require("@mantine/carousel"),require("@mantine/core"),require("@mantine/hooks");var m=u(e),f=u(c);const p=e=>{const{x:t,y:a,payload:l,activeWeek:r}=e;return r===l.value?m.default.createElement("g",{transform:`translate(${t},${a})`},m.default.createElement("circle",{r:12,fill:"marryBaby"===e.siteType?n.theme.mbColors.pink:n.theme.colors.primaryBase}),m.default.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:n.theme.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},l.value)):m.default.createElement("g",{transform:`translate(${t},${a})`},m.default.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:n.theme.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},l.value))},g=f.default.div`
2
2
  /* position: absolute; */
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -55,7 +55,7 @@
55
55
  align-items: center;
56
56
  gap: 4px;
57
57
  }
58
- `,x=[{name:"overweight",backgroundColor:n.theme.colors.yellow50,color:n.theme.colors.yellow900},{name:"underweight",backgroundColor:n.theme.colors.yellow50,color:n.theme.colors.yellow900},{name:"healthy",backgroundColor:n.theme.colors.green50,color:n.theme.colors.green900}],b=t=>{var l,r,o,i,s;const{payload:c,active:d}=t,u=null===(l=null==c?void 0:c[0])||void 0===l?void 0:l.payload;if(!u||!u.toolTipLabel||!d)return null;const{backgroundColor:f,color:p}=e.useMemo((()=>x.find((e=>e.name===u.status))),[null==u?void 0:u.status]);return m.default.createElement(g,null,m.default.createElement("div",null,null===(r=u.toolTipLabel)||void 0===r?void 0:r[0]," ",null===(o=u.toolTipLabel)||void 0===o?void 0:o[1]),m.default.createElement("div",null,(null===(i=u.toolTipLabel)||void 0===i?void 0:i[2])&&m.default.createElement(a.Text,{as:"span",size:"s3",color:n.theme.colors.gray800,type:"semiBold"},null===(s=u.toolTipLabel)||void 0===s?void 0:s[2]),m.default.createElement("div",{className:"risk",style:{backgroundColor:f}},m.default.createElement(a.Text,{size:"n1",color:p},u.translatedStatus))))},E=({weightByWeek:e,weightBefore:t,toolTipLabel:a,status:l,activeWeek:r,t:n})=>{const o=n(`bmi.result.${l}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===r?{toolTipLabel:a,translatedStatus:o,status:l}:{})))},k=({weightBefore:l,weightByWeek:c,activeWeek:d,currentWeight:u,toolTipLabel:f=[],status:g,withLine:y=!1,siteType:x})=>{const{t:k}=r.useTranslations(),v="marryBaby"===x,w=e.useMemo((()=>E({weightByWeek:c,weightBefore:l,toolTipLabel:f,status:g,activeWeek:d,t:k})),[c,l,f,g,d]),[T,C]=e.useState(!1),j=e.useRef(null);return s.useOutsideClick(j,(()=>C(!1))),m.default.createElement(h,null,v?m.default.createElement(t.MarryBabyText,{type:"bodytext-3",color:n.theme.mbColors.dark}," ",k("babyGrowth.weight")," ",k("pregnancyWeightGain.weightInput.desc")):m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray500},k("babyGrowth.weight")," ",k("pregnancyWeightGain.weightInput.desc")),Array.isArray(w)&&w.length>0&&m.default.createElement(h,null,m.default.createElement(o.ResponsiveContainer,{height:388,className:"chart"},m.default.createElement(o.AreaChart,{data:w,margin:{top:16,right:0,left:0}},m.default.createElement(o.CartesianGrid,{stroke:n.theme.colors.neutral100}),m.default.createElement(o.Tooltip,{trigger:"click",content:e=>m.default.createElement(b,Object.assign({active:!y&&T&&void 0!==d&&void 0!==u},e))}),m.default.createElement(o.XAxis,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:e=>m.default.createElement(p,Object.assign({},e,{activeWeek:d,siteType:x})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),m.default.createElement(o.YAxis,{domain:[e=>Math.max(e,l-10||e),e=>Math.max(e,l+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:n.theme.colors.gray600}}),m.default.createElement(o.Area,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),m.default.createElement(o.Area,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:v?n.theme.mbColors.tonePink:n.theme.colors.primary100}),void 0!==d&&void 0!==u&&m.default.createElement(o.ReferenceDot,{onClick:()=>C(!0),x:0===d?1:d,y:u,r:4,shape:m.default.createElement(i.CustomReferenceDot,{ref:j,r:4}),fill:v?n.theme.mbColors.pink:n.theme.colors.primaryBase,stroke:v?n.theme.mbColors.pink:n.theme.colors.primaryBase}))),m.default.createElement("div",{className:"custom-chart-label"},m.default.createElement("i",null),v?m.default.createElement(t.MarryBabyText,{type:"bodytext-3",color:n.theme.mbColors.dark},k("pregnancy.week")):m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray500},k("pregnancy.week")))))},v=e=>{var{color:t}=e,a=d.__rest(e,["color"]);return m.default.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),m.default.createElement("circle",{cx:"4",cy:"4",r:"4",fill:t||n.theme.colors.primaryBase}))},w=({idealWeight:e,siteType:l})=>{const{t:o}=r.useTranslations(),i="marryBaby"===l;return m.default.createElement(y,null,m.default.createElement("div",null,i?m.default.createElement(m.default.Fragment,null,m.default.createElement(v,{color:n.theme.mbColors.lightPink}),m.default.createElement(t.MarryBabyText,{type:"bodytext-3",color:n.theme.mbColors.dark},o("pregnancyTool.weightSuggested")," ",m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray800,type:"bold",as:"span"},e))):m.default.createElement(m.default.Fragment,null,m.default.createElement(v,{color:n.theme.colors.primary100}),m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray600},m.default.createElement(a.Text,{size:"n1",as:"span"},o("pregnancyTool.weightSuggested")," "),m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray800,type:"bold",as:"span"},e)))),m.default.createElement("div",null,i?m.default.createElement(m.default.Fragment,null,m.default.createElement(v,{color:n.theme.mbColors.pink}),m.default.createElement(t.MarryBabyText,{type:"bodytext-3",color:n.theme.mbColors.dark},o("pwg.placeholder.weight"))):m.default.createElement(m.default.Fragment,null,m.default.createElement(v,null),m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray600},o("pwg.placeholder.weight")))))},T=f.default.div`
58
+ `,b=[{name:"overweight",backgroundColor:n.theme.colors.yellow50,color:n.theme.colors.yellow900},{name:"underweight",backgroundColor:n.theme.colors.yellow50,color:n.theme.colors.yellow900},{name:"healthy",backgroundColor:n.theme.colors.green50,color:n.theme.colors.green900}],x=t=>{var l,r,o,i,s;const{payload:c,active:d}=t,u=null===(l=null==c?void 0:c[0])||void 0===l?void 0:l.payload;if(!u||!u.toolTipLabel||!d)return null;const{backgroundColor:f,color:p}=e.useMemo((()=>b.find((e=>e.name===u.status))),[null==u?void 0:u.status]);return m.default.createElement(g,null,m.default.createElement("div",null,null===(r=u.toolTipLabel)||void 0===r?void 0:r[0]," ",null===(o=u.toolTipLabel)||void 0===o?void 0:o[1]),m.default.createElement("div",null,(null===(i=u.toolTipLabel)||void 0===i?void 0:i[2])&&m.default.createElement(a.Text,{as:"span",size:"s3",color:n.theme.colors.gray800,type:"semiBold"},null===(s=u.toolTipLabel)||void 0===s?void 0:s[2]),m.default.createElement("div",{className:"risk",style:{backgroundColor:f}},m.default.createElement(a.Text,{size:"n1",color:p},u.translatedStatus))))},E=({weightByWeek:e,weightBefore:t,toolTipLabel:a,status:l,activeWeek:r,t:n})=>{const o=n(`bmi.result.${l}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===r?{toolTipLabel:a,translatedStatus:o,status:l}:{})))},k=({weightBefore:l,weightByWeek:c,activeWeek:d,currentWeight:u,toolTipLabel:f=[],status:g,withLine:y=!1,siteType:b})=>{const{t:k}=r.useTranslations(),v="marryBaby"===b,w=e.useMemo((()=>E({weightByWeek:c,weightBefore:l,toolTipLabel:f,status:g,activeWeek:d,t:k})),[c,l,f,g,d]),[T,C]=e.useState(!1),j=e.useRef(null);return s.useOutsideClick(j,(()=>C(!1))),m.default.createElement(h,null,v?m.default.createElement(t.MarryBabyText,{type:"bodytext-3",color:n.theme.mbColors.dark}," ",k("babyGrowth.weight")," ",k("pregnancyWeightGain.weightInput.desc")):m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray500},k("babyGrowth.weight")," ",k("pregnancyWeightGain.weightInput.desc")),Array.isArray(w)&&w.length>0&&m.default.createElement(h,null,m.default.createElement(o.ResponsiveContainer,{height:388,className:"chart"},m.default.createElement(o.AreaChart,{data:w,margin:{top:16,right:0,left:0}},m.default.createElement(o.CartesianGrid,{stroke:n.theme.colors.neutral100}),m.default.createElement(o.Tooltip,{trigger:"click",content:e=>m.default.createElement(x,Object.assign({active:!y&&T&&void 0!==d&&void 0!==u},e))}),m.default.createElement(o.XAxis,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:e=>m.default.createElement(p,Object.assign({},e,{activeWeek:d,siteType:b})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),m.default.createElement(o.YAxis,{domain:[e=>Math.max(e,l-10||e),e=>Math.max(e,l+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:n.theme.colors.gray600}}),m.default.createElement(o.Area,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),m.default.createElement(o.Area,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:v?n.theme.mbColors.tonePink:n.theme.colors.primary100}),void 0!==d&&void 0!==u&&m.default.createElement(o.ReferenceDot,{onClick:()=>C(!0),x:0===d?1:d,y:u,r:4,shape:m.default.createElement(i.CustomReferenceDot,{ref:j,r:4}),fill:v?n.theme.mbColors.pink:n.theme.colors.primaryBase,stroke:v?n.theme.mbColors.pink:n.theme.colors.primaryBase}))),m.default.createElement("div",{className:"custom-chart-label"},m.default.createElement("i",null),v?m.default.createElement(t.MarryBabyText,{type:"bodytext-3",color:n.theme.mbColors.dark},k("pregnancy.week")):m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray500},k("pregnancy.week")))))},v=e=>{var{color:t}=e,a=d.__rest(e,["color"]);return m.default.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),m.default.createElement("circle",{cx:"4",cy:"4",r:"4",fill:t||n.theme.colors.primaryBase}))},w=({idealWeight:e,siteType:l})=>{const{t:o}=r.useTranslations(),i="marryBaby"===l;return m.default.createElement(y,null,m.default.createElement("div",null,i?m.default.createElement(m.default.Fragment,null,m.default.createElement(v,{color:n.theme.mbColors.lightPink}),m.default.createElement(t.MarryBabyText,{type:"bodytext-3",color:n.theme.mbColors.dark},o("pregnancyTool.weightSuggested")," ",m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray800,type:"bold",as:"span"},e))):m.default.createElement(m.default.Fragment,null,m.default.createElement(v,{color:n.theme.colors.primary100}),m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray600},m.default.createElement(a.Text,{size:"n1",as:"span"},o("pregnancyTool.weightSuggested")," "),m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray800,type:"bold",as:"span"},e)))),m.default.createElement("div",null,i?m.default.createElement(m.default.Fragment,null,m.default.createElement(v,{color:n.theme.mbColors.pink}),m.default.createElement(t.MarryBabyText,{type:"bodytext-3",color:n.theme.mbColors.dark},o("pwg.placeholder.weight"))):m.default.createElement(m.default.Fragment,null,m.default.createElement(v,null),m.default.createElement(a.Text,{size:"n1",color:n.theme.colors.gray600},o("pwg.placeholder.weight")))))},T=f.default.div`
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  align-items: center;
@@ -1 +1 @@
1
- "use strict";var e=require("./index-9a15f4f9.js"),o=require("./isProduction-517872ce.js");exports.getCareApiDomain=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${o.isProduction?"health-care.":"service-health-care."}hellohealthgroup.com`,exports.getCurrentBaseUrl=(t,s)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,i=!r&&!o.isProduction;return r?"http://localhost:3000":`https://${i?s?"fe.":"discover.":s?"www.":""}${e.domainLocales[s?"vi-VN_MB":t]}`},exports.getCurrentSsoUrl=(t,s)=>process.env.UNIFY_SSO_API||`https://${o.isProduction?"id.":"staging-id."}${e.domainLocales[s?"vi-VN_MB":t]}`,exports.getDiscoverApiDomain=t=>process.env.UNIFY_DISCOVER_API||`https://${o.isProduction?"wp.":"staging."}${e.domainLocales[t]}`,exports.getTogetherApiDomain=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${o.isProduction?"together.":"staging-together."}hellohealthgroup.com`;
1
+ "use strict";var e=require("./index-f8f30578.js"),o=require("./isProduction-3d2e8fb4.js");exports.getCareApiDomain=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${o.isProduction?"health-care.":"service-health-care."}hellohealthgroup.com`,exports.getCurrentBaseUrl=(t,s)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,i=!r&&!o.isProduction;return r?"http://localhost:3000":`https://${i?s?"fe.":"discover.":s?"www.":""}${e.domainLocales[s?"vi-VN_MB":t]}`},exports.getCurrentSsoUrl=(t,s)=>process.env.UNIFY_SSO_API||`https://${o.isProduction?"id.":"staging-id."}${e.domainLocales[s?"vi-VN_MB":t]}`,exports.getDiscoverApiDomain=t=>process.env.UNIFY_DISCOVER_API||`https://${o.isProduction?"wp.":"staging."}${e.domainLocales[t]}`,exports.getTogetherApiDomain=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${o.isProduction?"together.":"staging-together."}hellohealthgroup.com`;
@@ -1,4 +1,4 @@
1
- "use strict";var t=require("styled-components"),e=require("react"),r=require("lodash/throttle"),s=require("./utils-1d3a9504.js");function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=i(e),o=i(r);const a=t.keyframes`
1
+ "use strict";var t=require("styled-components"),e=require("react"),r=require("lodash/throttle"),s=require("./utils-f67a089d.js");function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=i(e),o=i(r);const a=t.keyframes`
2
2
  from {
3
3
  transform: translate3d(0, 100%, 0);
4
4
  visibility: visible;
package/build/together.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-9313bf01.js"),r=require("./index.styled-2f40cf9b.js"),t=require("./dataTransform-fb9d2eaa.js"),o=require("./utils-26319b1a.js");require("./tslib.es6-5cc34723.js"),require("react"),require("@mantine/core"),require("./index-5ca35179.js"),require("styled-components"),require("./utils-1d3a9504.js"),require("./index-9c887f7f.js"),require("./gAssets.js"),require("./index-9a15f4f9.js"),require("date-fns/locale"),require("./Onboarding-5e479463.js"),require("./isProduction-517872ce.js"),require("./index-5ee72b9c.js"),require("@mantine/carousel"),require("@mantine/hooks"),require("./index-ad80e678.js"),require("./index-33b0c279.js"),require("./index-27b37035.js"),require("./index-509a0b0a.js"),require("dayjs"),require("./screenSizeContext-6187e101.js"),require("lodash/throttle"),require("./theme-791de2a4.js"),require("@mantine/dates"),require("./translationsContext-84598533.js"),require("string-format"),require("@hookform/resolvers/yup"),require("react-hook-form"),require("./index-a28a6d36.js"),require("./useTranslations-5cc61c9f.js"),require("./index-973817ad.js"),require("date-fns"),require("./index-4ab65948.js"),require("lodash/debounce"),require("./types-f385e06e.js"),require("react-day-picker/DayPickerInput"),require("innertext"),require("./index-38402874.js"),require("./paths-597a9110.js"),require("./constants-e6dfdef6.js"),require("react-contenteditable"),require("./cookieHelper-254d109b.js"),require("react-dom"),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-69804a49.js"),require("uuid"),require("./utils-bcdb95ca.js"),require("dayjs/plugin/relativeTime"),require("./index-63b91e27.js"),require("./useUniqueId-9b2409a5.js"),require("./routing-02efe154.js"),require("react-keyed-flatten-children"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.Loading=e.Loading,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.UserAvatar=r.UserAvatar,exports.TogetherDataTransforms=t.dataTransform,exports.DefaultComponentGlobalContextData=o.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return o.GlobalData}}),exports.TogetherComponentGlobalContext=o.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=o.TogetherComponentGlobalContextProvider,exports.TogetherConstants=o.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-3ae636c2.js"),r=require("./index.styled-765feecc.js"),t=require("./dataTransform-183f0a89.js"),o=require("./utils-7923573b.js");require("./tslib.es6-d82afd51.js"),require("react"),require("@mantine/core"),require("./index-4829ab1b.js"),require("styled-components"),require("./utils-f67a089d.js"),require("./index-5afb9a33.js"),require("./gAssets.js"),require("./index-f8f30578.js"),require("date-fns/locale"),require("./Onboarding-f60f1731.js"),require("./isProduction-3d2e8fb4.js"),require("./index-94f2dbb9.js"),require("@mantine/carousel"),require("@mantine/hooks"),require("./index-8cf73a21.js"),require("./index-438678eb.js"),require("./index-2587fdd8.js"),require("./index-b1d4d77c.js"),require("dayjs"),require("./screenSizeContext-2ec3be24.js"),require("lodash/throttle"),require("./theme-0f334c67.js"),require("@mantine/dates"),require("./translationsContext-ed457050.js"),require("string-format"),require("@hookform/resolvers/yup"),require("react-hook-form"),require("./index-aab043d9.js"),require("./useTranslations-7a6dc657.js"),require("./index-641b8a2d.js"),require("date-fns"),require("./index-98bb178d.js"),require("lodash/debounce"),require("./types-7f987664.js"),require("react-day-picker/DayPickerInput"),require("innertext"),require("./index-329a8f28.js"),require("./paths-0c90b0af.js"),require("./constants-fc06ec88.js"),require("react-contenteditable"),require("./cookieHelper-e2a16eef.js"),require("react-dom"),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-eb4ccdac.js"),require("uuid"),require("./utils-12cf57b1.js"),require("dayjs/plugin/relativeTime"),require("./index-0ae0e99b.js"),require("./useUniqueId-c9fd43d1.js"),require("./routing-76a29289.js"),require("react-keyed-flatten-children"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.Loading=e.Loading,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.UserAvatar=r.UserAvatar,exports.TogetherDataTransforms=t.dataTransform,exports.DefaultComponentGlobalContextData=o.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return o.GlobalData}}),exports.TogetherComponentGlobalContext=o.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=o.TogetherComponentGlobalContextProvider,exports.TogetherConstants=o.constants;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-5cc34723.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-5ca35179.js"),o=require("./useTranslations-5cc61c9f.js"),n=require("innertext"),i=require("./theme-791de2a4.js"),r=require("./utils-26319b1a.js");require("@mantine/hooks");var s=require("./gAssets.js");require("@mantine/dates");var d=require("./index-9a15f4f9.js");require("./Onboarding-5e479463.js");var c=require("dayjs");require("./screenSizeContext-6187e101.js");var u=require("styled-components"),m=require("./utils-1d3a9504.js");require("./isProduction-517872ce.js");var p=require("./index-5ee72b9c.js"),g=require("./index-38402874.js"),h=require("./dataTransform-fb9d2eaa.js"),f=require("./index-ad80e678.js"),v=require("./index-27b37035.js"),b=require("lodash/debounce"),x=require("react-contenteditable"),y=require("./index-33b0c279.js"),w=require("./cookieHelper-254d109b.js"),C=require("react-dom");require("./index-509a0b0a.js");var E=require("date-fns");require("react-day-picker/DayPickerInput");var k=require("./index.styled-2f40cf9b.js");require("./index-a28a6d36.js"),require("lodash/throttle"),require("./types-f385e06e.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-69804a49.js"),require("uuid"),require("./utils-bcdb95ca.js"),require("string-format");var A=require("dayjs/plugin/relativeTime"),N=require("./index-63b91e27.js"),T=require("./useUniqueId-9b2409a5.js");require("./translationsContext-84598533.js");var S=require("./routing-02efe154.js");function P(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function I(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 M=I(t),z=P(t),L=P(n),B=P(c),R=P(u),j=P(b),O=P(x),F=I(C),D=P(A);const V=e=>M.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),M.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"})),U=t.createContext({}),_=({children:e,defaultParams:t})=>z.default.createElement(U.Provider,{value:{defaultParams:t}},e),H=e=>{const{data:{userInfo:a,env:{togetherBasePath:l}}}=t.useContext(r.TogetherComponentGlobalContext),{defaultParams:o}=t.useContext(U)||{},n=null==a?void 0:a.id,i=a&&"number"==typeof a.communities_interacted&&0===a.communities_interacted;return{authActionWrapper:(t,a)=>{const s=Object.assign(Object.assign(Object.assign({},o),e),a);if(!n||i){n||w.deleteCookie(r.BEARER_TOKEN_COOKIE),(null==s?void 0:s._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(s._joinCommunityIds).filter(Boolean))))),null==s||delete s._joinCommunityIds),(null==s?void 0:s._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(s._joinTopicIds).filter(Boolean))))),null==s||delete s._joinTopicIds);const e=(null==s?void 0:s._location)||window.location.href;return null==s||delete s._location,window.location.href=r.getUrlToSignUp(e,s,l),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},W=R.default.div`
1
+ "use strict";var e=require("./tslib.es6-d82afd51.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-4829ab1b.js"),o=require("./useTranslations-7a6dc657.js"),n=require("innertext"),i=require("./theme-0f334c67.js"),r=require("./utils-7923573b.js");require("@mantine/hooks");var s=require("./gAssets.js");require("@mantine/dates");var d=require("./index-f8f30578.js");require("./Onboarding-f60f1731.js");var c=require("dayjs");require("./screenSizeContext-2ec3be24.js");var u=require("styled-components"),m=require("./utils-f67a089d.js");require("./isProduction-3d2e8fb4.js");var p=require("./index-94f2dbb9.js"),g=require("./index-329a8f28.js"),h=require("./dataTransform-183f0a89.js"),f=require("./index-8cf73a21.js"),v=require("./index-2587fdd8.js"),b=require("lodash/debounce"),x=require("react-contenteditable"),y=require("./index-438678eb.js"),w=require("./cookieHelper-e2a16eef.js"),C=require("react-dom");require("./index-b1d4d77c.js");var E=require("date-fns");require("react-day-picker/DayPickerInput");var k=require("./index.styled-765feecc.js");require("./index-aab043d9.js"),require("lodash/throttle"),require("./types-7f987664.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-eb4ccdac.js"),require("uuid"),require("./utils-12cf57b1.js"),require("string-format");var A=require("dayjs/plugin/relativeTime"),N=require("./index-0ae0e99b.js"),T=require("./useUniqueId-c9fd43d1.js");require("./translationsContext-ed457050.js");var S=require("./routing-76a29289.js");function P(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function I(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 M=I(t),z=P(t),L=P(n),B=P(c),R=P(u),j=P(b),O=P(x),F=I(C),D=P(A);const V=e=>M.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),M.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"})),U=t.createContext({}),_=({children:e,defaultParams:t})=>z.default.createElement(U.Provider,{value:{defaultParams:t}},e),H=e=>{const{data:{userInfo:a,env:{togetherBasePath:l}}}=t.useContext(r.TogetherComponentGlobalContext),{defaultParams:o}=t.useContext(U)||{},n=null==a?void 0:a.id,i=a&&"number"==typeof a.communities_interacted&&0===a.communities_interacted;return{authActionWrapper:(t,a)=>{const s=Object.assign(Object.assign(Object.assign({},o),e),a);if(!n||i){n||w.deleteCookie(r.BEARER_TOKEN_COOKIE),(null==s?void 0:s._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(s._joinCommunityIds).filter(Boolean))))),null==s||delete s._joinCommunityIds),(null==s?void 0:s._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(s._joinTopicIds).filter(Boolean))))),null==s||delete s._joinTopicIds);const e=(null==s?void 0:s._location)||window.location.href;return null==s||delete s._location,window.location.href=r.getUrlToSignUp(e,s,l),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},W=R.default.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-5cc34723.js"),t=require("react"),a=require("./constants-e6dfdef6.js"),i=require("./index-9a15f4f9.js"),o=require("./cookieHelper-254d109b.js"),n=require("./useTranslations-5cc61c9f.js"),s=require("lodash/debounce"),l=require("./index-27b37035.js"),r=require("styled-components"),c=require("./index-ad80e678.js"),d=require("./theme-791de2a4.js"),u=require("react-loading-skeleton"),h=require("./utils-1d3a9504.js"),p=require("lodash/shuffle"),g=require("./useOutsideClick-5185a271.js"),f=require("./paths-597a9110.js"),m=require("string-format");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=C(t),v=C(s),y=C(r),E=C(u),L=C(p),w=C(m);const x=y.default.div``,S=y.default.div`
1
+ "use strict";var e=require("./tslib.es6-d82afd51.js"),t=require("react"),a=require("./constants-fc06ec88.js"),i=require("./index-f8f30578.js"),o=require("./cookieHelper-e2a16eef.js"),n=require("./useTranslations-7a6dc657.js"),s=require("lodash/debounce"),l=require("./index-2587fdd8.js"),r=require("styled-components"),c=require("./index-8cf73a21.js"),d=require("./theme-0f334c67.js"),u=require("react-loading-skeleton"),h=require("./utils-f67a089d.js"),p=require("lodash/shuffle"),f=require("./useOutsideClick-efe21940.js"),g=require("./paths-0c90b0af.js"),m=require("string-format");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=C(t),v=C(s),y=C(r),E=C(u),L=C(p),w=C(m);const x=y.default.div``,S=y.default.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -124,7 +124,7 @@
124
124
  &:first-child {
125
125
  padding-top: 18px;
126
126
  }
127
- `,V=({cities:e,isLoading:t,onLocationClick:i,onCurrentLocationClick:o,geoLocationPermission:s="unset",isLocationLoading:l,selectedLocation:r,isOptionAllLocation:u})=>{const{t:h,locale:p}=n.useTranslations(),g="denied"===s,f=()=>b.default.createElement(B,{role:"button",tabIndex:0,onClick:e=>{g||(e.nativeEvent.stopImmediatePropagation(),l||o())},"data-is-denied":g},g?b.default.createElement(c.Text,{color:"var(--gray600)",size:"md"},"x"):l?b.default.createElement(E.default,{height:20,width:20}):b.default.createElement(N,{color:d.theme.colors.primaryBase}),b.default.createElement("div",null,g?b.default.createElement(c.Text,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},h("booking.searchBar.grantLocation")):l?b.default.createElement(E.default,{height:20,style:{width:"calc(100% - 16px)"}}):b.default.createElement(c.Text,{size:"md"},h("booking.searchBar.useCurrentLocation"))));return b.default.createElement(_,{"data-testid":"location-search-results"},b.default.createElement(F,null,t?b.default.createElement(D,{count:5}):!e||e.length<1?b.default.createElement(b.default.Fragment,null,f(),b.default.createElement(B,{"data-is-denied":"true"},b.default.createElement(c.Text,{size:"sm",color:"#ccc"},h("booking.searchBar.noResults")))):b.default.createElement(b.default.Fragment,null,u&&b.default.createElement(B,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;i&&i({name:h("booking.searchBar.allLocations"),id:a.ID_OPTION_ALL_LOCATION,slug:null===(e=a.LOCALIZED_SLUGS[p])||void 0===e?void 0:e.ALL})}},b.default.createElement(H,{color:d.theme.colors.neutral400}),b.default.createElement(c.Text,{size:"md"},h("booking.searchBar.allLocations"))),f(),e.map((e=>b.default.createElement(B,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),i&&i(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==r?void 0:r.id)===e.id},b.default.createElement(H,{color:d.theme.colors.neutral400}),b.default.createElement(c.Text,{size:"md"},e.name)))))))},$="TYPE_CHARACTER",z="REMOVE_CHARACTER",K="REMOVE_ALL",G="REMOVE_LAST_VISIBLE_NODE",Z="PAUSE_FOR",U="CHANGE_DELETE_SPEED",q="CHANGE_DELAY",Q="PASTE_STRING",Y=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,W="TEXT_NODE";class J{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(K,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(U,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(q,{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(z);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($,{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(z)})),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===G||i.eventName===z?"natural"===this.options.deleteSpeed?Y(40,80):this.options.deleteSpeed:"natural"===this.options.delay?Y(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=i;switch(n){case Q:case $:{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 z:a.unshift({eventName:G,eventArgs:{removingCharacterNode:!0}});break;case Z:{const{ms:e}=i.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case K:{const{visibleNodes:e}=this.state,{speed:t}=s,i=[];t&&i.push({eventName:U,eventArgs:{speed:t,temp:!0}});for(let t=0,a=e.length;t<a;t++)i.push({eventName:G,eventArgs:{removingCharacterNode:!1}});t&&i.push({eventName:U,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),a.unshift(...i);break}case G: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 U:this.options.deleteSpeed=i.eventArgs.speed;break;case q:this.options.delay=i.eventArgs.delay}this.options.loop&&(i.eventName===G||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(K,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function X({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"),L.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 J({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:c}))}),[e,a])}const ee=y.default.div`
127
+ `,V=({cities:e,isLoading:t,onLocationClick:i,onCurrentLocationClick:o,geoLocationPermission:s="unset",isLocationLoading:l,selectedLocation:r,isOptionAllLocation:u})=>{const{t:h,locale:p}=n.useTranslations(),f="denied"===s,g=()=>b.default.createElement(B,{role:"button",tabIndex:0,onClick:e=>{f||(e.nativeEvent.stopImmediatePropagation(),l||o())},"data-is-denied":f},f?b.default.createElement(c.Text,{color:"var(--gray600)",size:"md"},"x"):l?b.default.createElement(E.default,{height:20,width:20}):b.default.createElement(N,{color:d.theme.colors.primaryBase}),b.default.createElement("div",null,f?b.default.createElement(c.Text,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},h("booking.searchBar.grantLocation")):l?b.default.createElement(E.default,{height:20,style:{width:"calc(100% - 16px)"}}):b.default.createElement(c.Text,{size:"md"},h("booking.searchBar.useCurrentLocation"))));return b.default.createElement(_,{"data-testid":"location-search-results"},b.default.createElement(F,null,t?b.default.createElement(D,{count:5}):!e||e.length<1?b.default.createElement(b.default.Fragment,null,g(),b.default.createElement(B,{"data-is-denied":"true"},b.default.createElement(c.Text,{size:"sm",color:"#ccc"},h("booking.searchBar.noResults")))):b.default.createElement(b.default.Fragment,null,u&&b.default.createElement(B,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;i&&i({name:h("booking.searchBar.allLocations"),id:a.ID_OPTION_ALL_LOCATION,slug:null===(e=a.LOCALIZED_SLUGS[p])||void 0===e?void 0:e.ALL})}},b.default.createElement(H,{color:d.theme.colors.neutral400}),b.default.createElement(c.Text,{size:"md"},h("booking.searchBar.allLocations"))),g(),e.map((e=>b.default.createElement(B,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),i&&i(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==r?void 0:r.id)===e.id},b.default.createElement(H,{color:d.theme.colors.neutral400}),b.default.createElement(c.Text,{size:"md"},e.name)))))))},$="TYPE_CHARACTER",z="REMOVE_CHARACTER",K="REMOVE_ALL",G="REMOVE_LAST_VISIBLE_NODE",Z="PAUSE_FOR",U="CHANGE_DELETE_SPEED",q="CHANGE_DELAY",Q="PASTE_STRING",Y=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,W="TEXT_NODE";class J{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(K,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(U,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(q,{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(z);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($,{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(z)})),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===G||i.eventName===z?"natural"===this.options.deleteSpeed?Y(40,80):this.options.deleteSpeed:"natural"===this.options.delay?Y(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=i;switch(n){case Q:case $:{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 z:a.unshift({eventName:G,eventArgs:{removingCharacterNode:!0}});break;case Z:{const{ms:e}=i.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case K:{const{visibleNodes:e}=this.state,{speed:t}=s,i=[];t&&i.push({eventName:U,eventArgs:{speed:t,temp:!0}});for(let t=0,a=e.length;t<a;t++)i.push({eventName:G,eventArgs:{removingCharacterNode:!1}});t&&i.push({eventName:U,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),a.unshift(...i);break}case G: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 U:this.options.deleteSpeed=i.eventArgs.speed;break;case q:this.options.delay=i.eventArgs.delay}this.options.loop&&(i.eventName===G||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(K,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function X({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"),L.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 J({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:c}))}),[e,a])}const ee=y.default.div`
128
128
  user-select: none;
129
129
  input {
130
130
  pointer-events: none;
@@ -176,11 +176,11 @@
176
176
  input {
177
177
  background-color: white;
178
178
  }
179
- `,ge=y.default.div`
179
+ `,fe=y.default.div`
180
180
  position: relative;
181
- `,fe=y.default(ge)`
181
+ `,ge=y.default(fe)`
182
182
  flex: 1;
183
- `,me=y.default(ge)`
183
+ `,me=y.default(fe)`
184
184
  flex: 2;
185
185
  `,Ce=y.default((({className:e,color:t})=>b.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),b.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;
@@ -220,7 +220,7 @@
220
220
  }
221
221
  `,ye=y.default(c.Text)`
222
222
  font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
223
- `,Ee=({onClick:e})=>{const{t:t}=n.useTranslations(),a=t("booking.searchBar.searchButton");return b.default.createElement(ve,{onClick:e,title:a},b.default.createElement(be,null),b.default.createElement(ye,{size:"s3",color:"white"},a))};function Le({isMobile:e,state:i,dispatch:o,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:l,focusLocationInput:r,focusSearchInput:c,renderLocationResults:u,renderSearchResults:h,locationTrackingAttributes:p,trackingAttributes:f,onSearch:m,initalSearchValue:C}){const v=t.useRef(null),y=t.useRef(null),{focused:E,searchLocationKeywords:L,geoLocationPermission:w,selectedLocation:x,searchKeywords:S,inputSearchPlaceholder:O}=i,{t:k}=n.useTranslations();X({wrapperRef:y,disabled:!!O}),g.useOutsideClick(v,(()=>{e||o({type:de.ClickOutsideInputLocation})})),g.useOutsideClick(y,(()=>{e||o({type:de.ClickOutsideInputSearch})}));const T=t.useMemo((()=>"granted"===w&&(null==x?void 0:x.id)===a.ID_OPTION_CURRENT_LOCATION?d.theme.colors.primaryBase:d.theme.colors.gray400),[w,x]),M=t.useCallback((function(e){o({type:de.ChangeInputSearch,payload:e}),"function"!=typeof m&&(e.trim().length>re[i.locale]||C?l(e.trim(),i):(l.cancel(),o({type:de.DisplayInitialSearchResults})))}),[o,i]),N=t.useCallback((function(e){o({type:de.ChangeInputLocation,payload:e}),e.trim().length>re[i.locale]?s(e.trim()):(s.cancel(),o({type:de.DisplayInitialCities}))}),[s,o]);return b.default.createElement(pe,null,b.default.createElement(fe,{ref:v},b.default.createElement(I,{inputClassName:"location"===E?"focused":void 0,placeholder:k("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:b.default.createElement(R,{className:"location-pin-icon",color:T}),actionIcon:b.default.createElement(Ce,{color:d.theme.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){o({type:de.ClearInputLocation}),s.cancel(),r()},value:L,onChange:N,onFocus:()=>o({type:de.FocusInputLocation}),size:"md",trackingAttributes:p}),!e&&u()),b.default.createElement(me,{ref:y},b.default.createElement(I,{placeholder:O||k("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:b.default.createElement(Ce,{color:d.theme.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){o({type:de.ClearInputSearch}),l.cancel(),l("",i),c()},value:S,onChange:M,onFocus:()=>o({type:de.FocusInputSearch}),inputClassName:"search"===E?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&m&&m({cityId:i.selectedLocation.id,keyword:S})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&h()),i.autoCompleteDisabled&&!i.isMobile&&b.default.createElement(Ee,{onClick:()=>{m({cityId:i.selectedLocation.id,keyword:S})}}))}const we=()=>b.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},b.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"})),xe=()=>b.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},b.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"})),Se=()=>b.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},b.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"})),Oe=()=>b.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},b.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`
223
+ `,Ee=({onClick:e})=>{const{t:t}=n.useTranslations(),a=t("booking.searchBar.searchButton");return b.default.createElement(ve,{onClick:e,title:a},b.default.createElement(be,null),b.default.createElement(ye,{size:"s3",color:"white"},a))};function Le({isMobile:e,state:i,dispatch:o,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:l,focusLocationInput:r,focusSearchInput:c,renderLocationResults:u,renderSearchResults:h,locationTrackingAttributes:p,trackingAttributes:g,onSearch:m,initalSearchValue:C}){const v=t.useRef(null),y=t.useRef(null),{focused:E,searchLocationKeywords:L,geoLocationPermission:w,selectedLocation:x,searchKeywords:S,inputSearchPlaceholder:O}=i,{t:k}=n.useTranslations();X({wrapperRef:y,disabled:!!O}),f.useOutsideClick(v,(()=>{e||o({type:de.ClickOutsideInputLocation})})),f.useOutsideClick(y,(()=>{e||o({type:de.ClickOutsideInputSearch})}));const T=t.useMemo((()=>"granted"===w&&(null==x?void 0:x.id)===a.ID_OPTION_CURRENT_LOCATION?d.theme.colors.primaryBase:d.theme.colors.gray400),[w,x]),M=t.useCallback((function(e){o({type:de.ChangeInputSearch,payload:e}),"function"!=typeof m&&(e.trim().length>re[i.locale]||C?l(e.trim(),i):(l.cancel(),o({type:de.DisplayInitialSearchResults})))}),[o,i]),N=t.useCallback((function(e){o({type:de.ChangeInputLocation,payload:e}),e.trim().length>re[i.locale]?s(e.trim()):(s.cancel(),o({type:de.DisplayInitialCities}))}),[s,o]);return b.default.createElement(pe,null,b.default.createElement(ge,{ref:v},b.default.createElement(I,{inputClassName:"location"===E?"focused":void 0,placeholder:k("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:b.default.createElement(R,{className:"location-pin-icon",color:T}),actionIcon:b.default.createElement(Ce,{color:d.theme.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){o({type:de.ClearInputLocation}),s.cancel(),r()},value:L,onChange:N,onFocus:()=>o({type:de.FocusInputLocation}),size:"md",trackingAttributes:p}),!e&&u()),b.default.createElement(me,{ref:y},b.default.createElement(I,{placeholder:O||k("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:b.default.createElement(Ce,{color:d.theme.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){o({type:de.ClearInputSearch}),l.cancel(),l("",i),c()},value:S,onChange:M,onFocus:()=>o({type:de.FocusInputSearch}),inputClassName:"search"===E?"focused":void 0,size:"md",trackingAttributes:g,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&m&&m({cityId:i.selectedLocation.id,keyword:S})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&h()),i.autoCompleteDisabled&&!i.isMobile&&b.default.createElement(Ee,{onClick:()=>{m({cityId:i.selectedLocation.id,keyword:S})}}))}const we=()=>b.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},b.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"})),xe=()=>b.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},b.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"})),Se=()=>b.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},b.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"})),Oe=()=>b.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},b.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;
@@ -324,7 +324,7 @@
324
324
  `,Be=y.default.div`
325
325
  display: grid;
326
326
  place-items: center;
327
- `,De={doctors:({width:e,height:t})=>b.default.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},b.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),b.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"})),b.default.createElement("defs",null,b.default.createElement("clipPath",{id:"clip0_14712_400114"},b.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>b.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),b.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"}))},Ve=({type:e,item:a,imageUrl:i,className:o,onClickItem:n})=>{const s=t.useMemo((()=>{const t=De[e]||j;return b.default.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return b.default.createElement(je,{onClick:()=>n&&n(a),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||n&&n(a)},tabIndex:0,role:"button",className:o},b.default.createElement(Fe,null,"hospitals"===e?b.default.createElement(He,{width:"12",height:"16",viewBox:"0 0 12 16"},b.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"})):b.default.createElement(Pe,{type:e},i?b.default.createElement("img",{src:i,width:32,height:"services"===e?32:24,loading:"lazy"}):s)),b.default.createElement(_e,{color:d.theme.colors.gray800,size:"p3"},a.name))},$e=({type:e,data:i,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:r,isMobile:u,isLoading:h,keyword:p,isNavResultItem:g})=>{const[f,m]=t.useState(!1),{t:C,locale:v}=n.useTranslations(),{selectedLocation:y,searchKeywords:L}=o,w=t.useMemo((()=>a.LOCALIZED_SLUGS[v]),[v]),x="ms-MY"===v,S=t.useMemo((()=>({doctors:{name:C("booking.searchPopup.doctors"),icon:b.default.createElement(we,null),slug:w.DOCTOR},services:{name:C("booking.searchPopup.services"),icon:b.default.createElement(xe,null),slug:w.SERVICE},hospitals:{name:C("booking.searchPopup.hospitals"),icon:b.default.createElement(Se,null),slug:w.HOSPITAL},specialties:{name:C("booking.searchPopup.specialties"),icon:b.default.createElement(Oe,null),slug:w.SPECIALTIES}})),[e,w]),O=t.useMemo((()=>S[e].slug),[S]),k=u?l:r;function I(t){let a="";switch(e){case"specialties":a=`/${y.slug}/${S.doctors.slug}/${t.slug}`;break;case"services":a=`/${y.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":a=`/${O}/${t.slug}-${t.id}`}a&&s({type:de.SelectSearchResult,payload:{name:t.name,url:a}})}function T(t){return b.default.createElement(Ve,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return b.default.createElement("section",null,b.default.createElement(ke,null,b.default.createElement(Ie,null,S[e].icon,b.default.createElement(Te,null,S[e].name)),(p.trim().length<=re[v]||x)&&b.default.createElement(Me,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${y.slug}/${O}`}t&&s({type:de.NavigateTo,payload:t})}},b.default.createElement(c.Text,{size:"p3",color:d.theme.colors.primaryBase},C("booking.searchPopup.seeAll")))),(h||i&&i.length>0)&&b.default.createElement(Re,null,b.default.createElement(Ne,null,h&&Array(2).fill(void 0).map(((t,a)=>b.default.createElement(je,{key:e+"loading"+a},b.default.createElement(Fe,null,b.default.createElement(Be,null,b.default.createElement(E.default,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),b.default.createElement(E.default,{width:120,height:24})))),!h&&i&&i.length>0&&i.slice(0,k).map(T)),b.default.createElement(Ne,{isShown:f,isMore:!0},i.slice(k,-1).map(T)),"specialties"===e&&k<i.length&&!h&&b.default.createElement("button",{onClick:()=>m(!f)},b.default.createElement(Ae,{size:"p3",color:d.theme.colors.primaryBase},C(f?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(k<i.length||x)&&!h&&p.trim().length>re[v]&&b.default.createElement("button",{onClick:function(){const{slug:t}=S[e],a=`/${y.slug}/${t}?q=${L}`;s({type:de.NavigateTo,payload:a})}},b.default.createElement(Ae,{size:"p3",color:d.theme.colors.primaryBase},C(`booking.searchPopup.searchIn.${e}`,{name:p})))),!h&&0===(null==i?void 0:i.length)&&b.default.createElement(Re,null,b.default.createElement(c.Text,{size:"sm",color:d.theme.colors.gray400},C("booking.searchBar.noResults"))))},ze=y.default.section`
327
+ `,De={doctors:({width:e,height:t})=>b.default.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},b.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),b.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"})),b.default.createElement("defs",null,b.default.createElement("clipPath",{id:"clip0_14712_400114"},b.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>b.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),b.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"}))},Ve=({type:e,item:a,imageUrl:i,className:o,onClickItem:n})=>{const s=t.useMemo((()=>{const t=De[e]||j;return b.default.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return b.default.createElement(je,{onClick:()=>n&&n(a),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||n&&n(a)},tabIndex:0,role:"button",className:o},b.default.createElement(Fe,null,"hospitals"===e?b.default.createElement(He,{width:"12",height:"16",viewBox:"0 0 12 16"},b.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"})):b.default.createElement(Pe,{type:e},i?b.default.createElement("img",{src:i,width:32,height:"services"===e?32:24,loading:"lazy"}):s)),b.default.createElement(_e,{color:d.theme.colors.gray800,size:"p3"},a.name))},$e=({type:e,data:i,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:r,isMobile:u,isLoading:h,keyword:p,isNavResultItem:f})=>{const[g,m]=t.useState(!1),{t:C,locale:v}=n.useTranslations(),{selectedLocation:y,searchKeywords:L}=o,w=t.useMemo((()=>a.LOCALIZED_SLUGS[v]),[v]),x="ms-MY"===v,S=t.useMemo((()=>({doctors:{name:C("booking.searchPopup.doctors"),icon:b.default.createElement(we,null),slug:w.DOCTOR},services:{name:C("booking.searchPopup.services"),icon:b.default.createElement(xe,null),slug:w.SERVICE},hospitals:{name:C("booking.searchPopup.hospitals"),icon:b.default.createElement(Se,null),slug:w.HOSPITAL},specialties:{name:C("booking.searchPopup.specialties"),icon:b.default.createElement(Oe,null),slug:w.SPECIALTIES}})),[e,w]),O=t.useMemo((()=>S[e].slug),[S]),k=u?l:r;function I(t){let a="";switch(e){case"specialties":a=`/${y.slug}/${S.doctors.slug}/${t.slug}`;break;case"services":a=`/${y.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":a=`/${O}/${t.slug}-${t.id}`}a&&s({type:de.SelectSearchResult,payload:{name:t.name,url:a}})}function T(t){return b.default.createElement(Ve,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:f?"":"not-nav",onClickItem:f&&I})}return b.default.createElement("section",null,b.default.createElement(ke,null,b.default.createElement(Ie,null,S[e].icon,b.default.createElement(Te,null,S[e].name)),(p.trim().length<=re[v]||x)&&b.default.createElement(Me,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${y.slug}/${O}`}t&&s({type:de.NavigateTo,payload:t})}},b.default.createElement(c.Text,{size:"p3",color:d.theme.colors.primaryBase},C("booking.searchPopup.seeAll")))),(h||i&&i.length>0)&&b.default.createElement(Re,null,b.default.createElement(Ne,null,h&&Array(2).fill(void 0).map(((t,a)=>b.default.createElement(je,{key:e+"loading"+a},b.default.createElement(Fe,null,b.default.createElement(Be,null,b.default.createElement(E.default,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),b.default.createElement(E.default,{width:120,height:24})))),!h&&i&&i.length>0&&i.slice(0,k).map(T)),b.default.createElement(Ne,{isShown:g,isMore:!0},i.slice(k,-1).map(T)),"specialties"===e&&k<i.length&&!h&&b.default.createElement("button",{onClick:()=>m(!g)},b.default.createElement(Ae,{size:"p3",color:d.theme.colors.primaryBase},C(g?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(k<i.length||x)&&!h&&p.trim().length>re[v]&&b.default.createElement("button",{onClick:function(){const{slug:t}=S[e],a=`/${y.slug}/${t}?q=${L}`;s({type:de.NavigateTo,payload:a})}},b.default.createElement(Ae,{size:"p3",color:d.theme.colors.primaryBase},C(`booking.searchPopup.searchIn.${e}`,{name:p})))),!h&&0===(null==i?void 0:i.length)&&b.default.createElement(Re,null,b.default.createElement(c.Text,{size:"sm",color:d.theme.colors.gray400},C("booking.searchBar.noResults"))))},ze=y.default.section`
328
328
  background-color: white;
329
329
  border-radius: 4px;
330
330
  position: absolute;
@@ -336,4 +336,4 @@
336
336
  0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
337
337
  0px 0px 1px rgba(0, 0, 0, 0.04);
338
338
  }
339
- `,Ke=({data:e,state:t,dispatch:a,isMobile:i,isLoading:o,keyword:n,hideResults:s,isNavResultItem:l})=>b.default.createElement(ze,null,e&&e.map((e=>s&&s.includes(e.type)?b.default.createElement(b.default.Fragment,null):b.default.createElement($e,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:o,keyword:n,isNavResultItem:l})))),Ge=(e,t,a)=>w.default(e,Object.assign(Object.assign({},t),{domain:i.domainLocales[a||"en-PH"]}));var Ze;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Ze||(Ze={}));var Ue=Object.freeze({__proto__:null,get RedirectType(){return Ze}});exports.BookingSearchBar=({isMobile:s,careApiDomain:l,geoLocationPermission:r,geoLocationCoordinates:c,initialSelectedCity:d,initialSearchValue:u="",careFrontDomain:h="/care",isDebug:p=!1,askForGeolocationPermission:g=!1,gaTrackingSearchBar:m,gaTrackingLocationSearch:C,autoCompleteDisabled:y=!1,inputSearchPlaceholder:E="",isOptionAllLocation:L=!1,hideResults:w=[],isNavResultItem:I=!0,routerPush:M,onGeoLocationPermissionChange:R,onSearch:N,onChangeLocation:A})=>{const{t:j,locale:P}=n.useTranslations(),_=t.useRef(null),F=t.useRef(null),[H,B]=t.useState(void 0),[D,$]=t.useState(!1),{geoLocationPermission:z,geoLocationCoordinates:K,requestGeoLocation:G}=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])}(),[Z,U]=t.useReducer(he,ce,(e=>Object.assign(Object.assign({},e),{isDebug:p,isMobile:s,geoLocationPermission:r||z||"unset",geoLocationCoordinates:c||K||null,searchKeywords:u,initialSelectedCity:d||null,selectedLocation:d||e.selectedLocation||null,searchLocationKeywords:(null==d?void 0:d.name)||e.searchLocationKeywords,autoCompleteDisabled:y,inputSearchPlaceholder:E,locale:P}))),{navigateTo:q,focused:Q,isLoadingCities:Y,cities:W,searchKeywords:J,geoLocationPermission:X,selectedLocation:ee,initialSelectedCity:ae,defaultCity:ie,searchResults:oe,isLoadingSearchResults:ne,isMobileModalOpened:se,inputSearchPlaceholder:ue}=Z,{fetchCitiesByLocation:pe,fetchCitiesByKeyword:ge,fetchSearchResults:fe}=function({dispatch:e,careApiDomain:i,locale:o="vi-VN"}){const n=t.useCallback((function(t,a={}){const n=`${i}${t}`;return e({type:de.FetchCitiesStart}),fetch(Ge(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:de.FetchCitiesFinish})))}),[o]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const i={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===o&&(i.noPaging=1);const s=[n(f.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),i))];return"zh-TW"===o&&s.push(n(f.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).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:de.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[o,i,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(f.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:de.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}${f.PATHS.GET_SEARCH_V2}`;e({type:de.FetchSearchResultsStart});const{defaultCity:l,selectedLocation:r,geoLocationCoordinates:c}=n;let d="";if(!r||!l)return void e({type:de.FetchSearchResultsFinish});r.id===a.ID_OPTION_CURRENT_LOCATION?c||(d=l.id):d=r.id===a.ID_OPTION_ALL_LOCATION?"":r.id;const u=(null==c?void 0:c.lat)||"",h=(null==c?void 0:c.lng)||"";return fetch(Ge(s,{domain:i,searchType:"global",keyword:t.trim().length>re[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:de.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:s,error:e})})).finally((()=>e({type:de.FetchSearchResultsFinish})))}),[o,i,e])}}({dispatch:U,locale:P,careApiDomain:l}),me=t.useMemo((()=>{var e;return{id:a.ID_OPTION_CURRENT_LOCATION,name:j("booking.searchBar.currentLocation"),slug:null===(e=a.LOCALIZED_SLUGS[P])||void 0===e?void 0:e.CURRENT}}),[j,P]),Ce=t.useMemo((()=>v.default(ge,400)),[ge]),be=t.useMemo((()=>v.default(fe,400)),[fe]);t.useEffect((()=>{""!==u&&u!==Z.searchKeywords&&U({type:de.UpdateInitialSearchValue,payload:u})}),[u]),t.useEffect((()=>{g&&(null==ee?void 0:ee.id)===a.ID_OPTION_CURRENT_LOCATION&&"unset"===X&&G()}),[g,ee,X]),t.useEffect((()=>{r||X===z||("granted"===z&&K?U({type:de.GrantGeoLocationPermission,payload:K}):"denied"===z&&U({type:de.DenyGeoLocationPermission}))}),[X,z,K,r]),t.useEffect((()=>{q&&(M?M(q):window.location.href=`${h}${q}`)}),[q]);const ve=t.useCallback((function(){U({type:de.SelectCurrentLocation,payload:me})}),[j,U]);t.useEffect((()=>{"denied"===X||ae||ve(),R&&R(X,Z.geoLocationCoordinates),s&&"granted"===X&&ee&&U({type:de.FocusInputSearch}),pe({coordinates:Z.geoLocationCoordinates})}),[X]),t.useEffect((()=>{ee&&ie&&fe(Z.searchKeywords,Z)}),[ee,ie]),t.useEffect((()=>{E!==ue&&U({type:de.SetInputSearchPlaceholder,payload:E})}),[E,ue]),t.useEffect((()=>{se?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[se]);const ye=t.useCallback((function(e){"ms-MY"===P&&$(!0),U({type:de.SelectLocation,payload:e}),"ms-MY"!==P&&Se(),A&&A(e)}),[j,U]);function we(){"ms-MY"===P&&$(!0),s&&"granted"!==Z.geoLocationPermission?G():(ve(),"ms-MY"!==P&&Se())}function xe(){var e;_.current&&(null===(e=_.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Se(){var e;_.current&&(null===(e=_.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Oe(){U({type:de.CloseMobileModal})}function ke(){return"location"!==Q?null:b.default.createElement(V,{isLoading:Y,cities:W,onLocationClick:ye,onCurrentLocationClick:we,isLocationLoading:Y,geoLocationPermission:X,selectedLocation:ee,isOptionAllLocation:L})}function Ie(){return"search"!==Q?null:Z.autoCompleteDisabled?s?b.default.createElement(Ee,{onClick:()=>{N({cityId:Z.selectedLocation.id,keyword:J}),Oe()}}):null:b.default.createElement(Ke,{data:oe,state:Z,dispatch:U,isMobile:!1,keyword:J,isLoading:ne,hideResults:w,isNavResultItem:I})}function Te(){return b.default.createElement(Le,{isMobile:s,state:Z,dispatch:U,debouncedFetchCitiesByKeyword:Ce,debouncedFetchSearchResults:be,focusLocationInput:xe,focusSearchInput:Se,renderLocationResults:ke,renderSearchResults:Ie,trackingAttributes:m,locationTrackingAttributes:C,onSearch:N,initalSearchValue:u})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;B(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[B]),t.useEffect((()=>{if(ee&&D&&"ms-MY"===P){const e=`/${ee.slug}/hospital`;U({type:de.NavigateTo,payload:e}),$(!1)}}),[D,P,ee]),s?b.default.createElement(b.default.Fragment,null,b.default.createElement(T,null),b.default.createElement(k,{ref:F}),b.default.createElement(S,{id:"booking-search-bar",ref:_,"data-is-modal":s&&se,style:{"--mobile-care-searchbar-height":se&&H?`${H}px`:"100%"}},se?b.default.createElement(b.default.Fragment,null,b.default.createElement(O,null,b.default.createElement(le,{headingText:j("booking.searchBar.searchButton"),onLeftClick:Oe}),Te()),ke(),Ie()):b.default.createElement(te,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){F.current&&F.current.focus(),U({type:de.OpenMobileModal}),yield Promise.resolve(),_.current&&(null===(t=_.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:Q,value:J,trackingAttributes:m,inputSearchPlaceholder:E}))):b.default.createElement(x,{id:"booking-search-bar",ref:_},Te())},exports.types=Ue;
339
+ `,Ke=({data:e,state:t,dispatch:a,isMobile:i,isLoading:o,keyword:n,hideResults:s,isNavResultItem:l})=>b.default.createElement(ze,null,e&&e.map((e=>s&&s.includes(e.type)?b.default.createElement(b.default.Fragment,null):b.default.createElement($e,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:o,keyword:n,isNavResultItem:l})))),Ge=(e,t,a)=>w.default(e,Object.assign(Object.assign({},t),{domain:i.domainLocales[a||"en-PH"]}));var Ze;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Ze||(Ze={}));var Ue=Object.freeze({__proto__:null,get RedirectType(){return Ze}});exports.BookingSearchBar=({isMobile:s,careApiDomain:l,geoLocationPermission:r,geoLocationCoordinates:c,initialSelectedCity:d,initialSearchValue:u="",careFrontDomain:h="/care",isDebug:p=!1,askForGeolocationPermission:f=!1,gaTrackingSearchBar:m,gaTrackingLocationSearch:C,autoCompleteDisabled:y=!1,inputSearchPlaceholder:E="",isOptionAllLocation:L=!1,hideResults:w=[],isNavResultItem:I=!0,routerPush:M,onGeoLocationPermissionChange:R,onSearch:N,onChangeLocation:A})=>{const{t:j,locale:P}=n.useTranslations(),_=t.useRef(null),F=t.useRef(null),[H,B]=t.useState(void 0),[D,$]=t.useState(!1),{geoLocationPermission:z,geoLocationCoordinates:K,requestGeoLocation:G}=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])}(),[Z,U]=t.useReducer(he,ce,(e=>Object.assign(Object.assign({},e),{isDebug:p,isMobile:s,geoLocationPermission:r||z||"unset",geoLocationCoordinates:c||K||null,searchKeywords:u,initialSelectedCity:d||null,selectedLocation:d||e.selectedLocation||null,searchLocationKeywords:(null==d?void 0:d.name)||e.searchLocationKeywords,autoCompleteDisabled:y,inputSearchPlaceholder:E,locale:P}))),{navigateTo:q,focused:Q,isLoadingCities:Y,cities:W,searchKeywords:J,geoLocationPermission:X,selectedLocation:ee,initialSelectedCity:ae,defaultCity:ie,searchResults:oe,isLoadingSearchResults:ne,isMobileModalOpened:se,inputSearchPlaceholder:ue}=Z,{fetchCitiesByLocation:pe,fetchCitiesByKeyword:fe,fetchSearchResults:ge}=function({dispatch:e,careApiDomain:i,locale:o="vi-VN"}){const n=t.useCallback((function(t,a={}){const n=`${i}${t}`;return e({type:de.FetchCitiesStart}),fetch(Ge(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:de.FetchCitiesFinish})))}),[o]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const i={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===o&&(i.noPaging=1);const s=[n(g.PATHS.GET_CITY_BY_IP,Object.assign(Object.assign({},a),i))];return"zh-TW"===o&&s.push(n(g.PATHS.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).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:de.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[o,i,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(g.PATHS.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:de.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}${g.PATHS.GET_SEARCH_V2}`;e({type:de.FetchSearchResultsStart});const{defaultCity:l,selectedLocation:r,geoLocationCoordinates:c}=n;let d="";if(!r||!l)return void e({type:de.FetchSearchResultsFinish});r.id===a.ID_OPTION_CURRENT_LOCATION?c||(d=l.id):d=r.id===a.ID_OPTION_ALL_LOCATION?"":r.id;const u=(null==c?void 0:c.lat)||"",h=(null==c?void 0:c.lng)||"";return fetch(Ge(s,{domain:i,searchType:"global",keyword:t.trim().length>re[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:de.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:s,error:e})})).finally((()=>e({type:de.FetchSearchResultsFinish})))}),[o,i,e])}}({dispatch:U,locale:P,careApiDomain:l}),me=t.useMemo((()=>{var e;return{id:a.ID_OPTION_CURRENT_LOCATION,name:j("booking.searchBar.currentLocation"),slug:null===(e=a.LOCALIZED_SLUGS[P])||void 0===e?void 0:e.CURRENT}}),[j,P]),Ce=t.useMemo((()=>v.default(fe,400)),[fe]),be=t.useMemo((()=>v.default(ge,400)),[ge]);t.useEffect((()=>{""!==u&&u!==Z.searchKeywords&&U({type:de.UpdateInitialSearchValue,payload:u})}),[u]),t.useEffect((()=>{f&&(null==ee?void 0:ee.id)===a.ID_OPTION_CURRENT_LOCATION&&"unset"===X&&G()}),[f,ee,X]),t.useEffect((()=>{r||X===z||("granted"===z&&K?U({type:de.GrantGeoLocationPermission,payload:K}):"denied"===z&&U({type:de.DenyGeoLocationPermission}))}),[X,z,K,r]),t.useEffect((()=>{q&&(M?M(q):window.location.href=`${h}${q}`)}),[q]);const ve=t.useCallback((function(){U({type:de.SelectCurrentLocation,payload:me})}),[j,U]);t.useEffect((()=>{"denied"===X||ae||ve(),R&&R(X,Z.geoLocationCoordinates),s&&"granted"===X&&ee&&U({type:de.FocusInputSearch}),pe({coordinates:Z.geoLocationCoordinates})}),[X]),t.useEffect((()=>{ee&&ie&&ge(Z.searchKeywords,Z)}),[ee,ie]),t.useEffect((()=>{E!==ue&&U({type:de.SetInputSearchPlaceholder,payload:E})}),[E,ue]),t.useEffect((()=>{se?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[se]);const ye=t.useCallback((function(e){"ms-MY"===P&&$(!0),U({type:de.SelectLocation,payload:e}),"ms-MY"!==P&&Se(),A&&A(e)}),[j,U]);function we(){"ms-MY"===P&&$(!0),s&&"granted"!==Z.geoLocationPermission?G():(ve(),"ms-MY"!==P&&Se())}function xe(){var e;_.current&&(null===(e=_.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Se(){var e;_.current&&(null===(e=_.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Oe(){U({type:de.CloseMobileModal})}function ke(){return"location"!==Q?null:b.default.createElement(V,{isLoading:Y,cities:W,onLocationClick:ye,onCurrentLocationClick:we,isLocationLoading:Y,geoLocationPermission:X,selectedLocation:ee,isOptionAllLocation:L})}function Ie(){return"search"!==Q?null:Z.autoCompleteDisabled?s?b.default.createElement(Ee,{onClick:()=>{N({cityId:Z.selectedLocation.id,keyword:J}),Oe()}}):null:b.default.createElement(Ke,{data:oe,state:Z,dispatch:U,isMobile:!1,keyword:J,isLoading:ne,hideResults:w,isNavResultItem:I})}function Te(){return b.default.createElement(Le,{isMobile:s,state:Z,dispatch:U,debouncedFetchCitiesByKeyword:Ce,debouncedFetchSearchResults:be,focusLocationInput:xe,focusSearchInput:Se,renderLocationResults:ke,renderSearchResults:Ie,trackingAttributes:m,locationTrackingAttributes:C,onSearch:N,initalSearchValue:u})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;B(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[B]),t.useEffect((()=>{if(ee&&D&&"ms-MY"===P){const e=`/${ee.slug}/hospital`;U({type:de.NavigateTo,payload:e}),$(!1)}}),[D,P,ee]),s?b.default.createElement(b.default.Fragment,null,b.default.createElement(T,null),b.default.createElement(k,{ref:F}),b.default.createElement(S,{id:"booking-search-bar",ref:_,"data-is-modal":s&&se,style:{"--mobile-care-searchbar-height":se&&H?`${H}px`:"100%"}},se?b.default.createElement(b.default.Fragment,null,b.default.createElement(O,null,b.default.createElement(le,{headingText:j("booking.searchBar.searchButton"),onLeftClick:Oe}),Te()),ke(),Ie()):b.default.createElement(te,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){F.current&&F.current.focus(),U({type:de.OpenMobileModal}),yield Promise.resolve(),_.current&&(null===(t=_.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:Q,value:J,trackingAttributes:m,inputSearchPlaceholder:E}))):b.default.createElement(x,{id:"booking-search-bar",ref:_},Te())},exports.types=Ue;
package/build/types.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-5e479463.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-f60f1731.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 +1 @@
1
- "use strict";var e=require("./tslib.es6-5cc34723.js"),t=require("react"),a=require("./getDynamicHealthTool-6034f06a.js");exports.useHealthToolsCache=o=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield a.getDynamicHealthToolWithCache(o);l(e)}))}),[a.getDynamicHealthToolWithCache,o]);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
+ "use strict";var e=require("./tslib.es6-d82afd51.js"),t=require("react"),a=require("./getDynamicHealthTool-5e309a19.js");exports.useHealthToolsCache=o=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield a.getDynamicHealthToolWithCache(o);l(e)}))}),[a.getDynamicHealthToolWithCache,o]);const r=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:r}};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-5cc34723.js"),t=require("react"),r=require("./cookieHelper-254d109b.js"),n=require("./useUniqueId-9b2409a5.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-d82afd51.js"),t=require("react"),r=require("./cookieHelper-e2a16eef.js"),n=require("./useUniqueId-c9fd43d1.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 +1 @@
1
- "use strict";var e=require("react"),t=require("./translationsContext-84598533.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>a?a[e]?t?n.default(a[e]||e,t):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),t?n.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
1
+ "use strict";var e=require("react"),t=require("./translationsContext-ed457050.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>a?a[e]?t?n.default(a[e]||e,t):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),t?n.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
@@ -1 +1 @@
1
- "use strict";var i=require("./Onboarding-5e479463.js");const a={[i.LOCALE.Vietnam]:"VN",[i.LOCALE.Cambodia]:"KH",[i.LOCALE.Indonesia]:"ID",[i.LOCALE.Malaysia]:"MY",[i.LOCALE.PhilippinesEnglish]:"PH",[i.LOCALE.PhilippinesTagalog]:"PH",[i.LOCALE.Taiwan]:"TW",[i.LOCALE.Thailand]:"TH",[i.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=a,exports.hiddenEmailChar=(i="")=>{const a=i.indexOf("@"),e=i.substring(0,a),n=e.length>3?3:e.length;return i.replace(i.substring(n,a),i.slice(n,a).replace(/./g,"x"))};
1
+ "use strict";var i=require("./Onboarding-f60f1731.js");const a={[i.LOCALE.Vietnam]:"VN",[i.LOCALE.Cambodia]:"KH",[i.LOCALE.Indonesia]:"ID",[i.LOCALE.Malaysia]:"MY",[i.LOCALE.PhilippinesEnglish]:"PH",[i.LOCALE.PhilippinesTagalog]:"PH",[i.LOCALE.Taiwan]:"TW",[i.LOCALE.Thailand]:"TH",[i.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=a,exports.hiddenEmailChar=(i="")=>{const a=i.indexOf("@"),n=i.substring(0,a),L=n.length>3?3:n.length;return i.replace(i.substring(L,a),i.slice(L,a).replace(/./g,"x"))};