@hhgtech/hhg-components 1.28.55 → 1.28.56

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 (283) hide show
  1. package/build/{Plus-54948d91.js → Plus-5db023c7.js} +1 -1
  2. package/build/{WhatsApp-6d901f48.js → WhatsApp-378451bf.js} +1 -1
  3. package/build/babyGrowth.js +2 -2
  4. package/build/cache.js +1 -1
  5. package/build/care.js +1 -1
  6. package/build/components.js +1 -1
  7. package/build/{constants-a45e9439.js → constants-12b9a3a8.js} +1 -1
  8. package/build/{constants-152ef105.js → constants-c7e18ae3.js} +1 -1
  9. package/build/constants.js +1 -1
  10. package/build/{core-335c2da3.js → core-709ce77d.js} +1 -1
  11. package/build/{dataTransform-a5319404.js → dataTransform-92fa6ba9.js} +1 -1
  12. package/build/ecom.js +1 -1
  13. package/build/esm/{Plus-74f52e6c.js → Plus-8ce4f4ec.js} +1 -1
  14. package/build/esm/{WhatsApp-764b872d.js → WhatsApp-fbb196cd.js} +1 -1
  15. package/build/esm/babyGrowth.js +5 -5
  16. package/build/esm/cache.js +1 -1
  17. package/build/esm/care.js +1 -1
  18. package/build/esm/components.js +1 -1
  19. package/build/esm/{constants-0683dc31.js → constants-1b372a77.js} +1 -1
  20. package/build/esm/{constants-f4c472e4.js → constants-7a224812.js} +1 -1
  21. package/build/esm/constants.js +1 -1
  22. package/build/esm/core-2b914f39.js +1 -0
  23. package/build/esm/{dataTransform-756179c9.js → dataTransform-0b72568d.js} +1 -1
  24. package/build/esm/ecom.js +1 -1
  25. package/build/esm/footer.js +1 -1
  26. package/build/esm/gAssets.js +1 -1
  27. package/build/esm/getDynamicHealthTool-99872dc7.js +1 -0
  28. package/build/esm/{getSocialList-68fa92f4.js → getSocialList-b51adc23.js} +1 -1
  29. package/build/esm/hooks.js +1 -1
  30. package/build/esm/i18n.js +1 -1
  31. package/build/esm/i18nV2.js +1 -1
  32. package/build/esm/{index-b2fd7f71.js → index-0cc4495e.js} +1 -1
  33. package/build/esm/{index-198068d7.js → index-0d7ce447.js} +5 -5
  34. package/build/esm/{index-8e0dc901.js → index-252cd73f.js} +1 -1
  35. package/build/esm/{index-737f6666.js → index-268c7c6b.js} +1 -1
  36. package/build/esm/index-321a258f.js +1 -0
  37. package/build/esm/index-40525833.js +1 -0
  38. package/build/esm/{index-d9f09bce.js → index-47e79c7a.js} +2 -2
  39. package/build/esm/{index-516a950d.js → index-48c1217c.js} +1 -1
  40. package/build/esm/{index-fffa276c.js → index-50688929.js} +3 -3
  41. package/build/esm/{index-4209d110.js → index-635521df.js} +1 -1
  42. package/build/esm/{index-bd711d1d.js → index-636381d2.js} +1 -1
  43. package/build/esm/index-6f811e9f.js +1 -0
  44. package/build/esm/{index-77800f03.js → index-767b3730.js} +1 -1
  45. package/build/esm/{index-05e53bec.js → index-7b57d2c6.js} +1 -1
  46. package/build/esm/{index-58970baf.js → index-7ba828ef.js} +1 -1
  47. package/build/esm/{index-738bc059.js → index-829ce636.js} +1 -1
  48. package/build/esm/{index-2444997f.js → index-8a737b32.js} +1 -1
  49. package/build/esm/{index-f296970a.js → index-90134df0.js} +1 -1
  50. package/build/esm/{index-3409f3ca.js → index-b21e07ed.js} +1 -1
  51. package/build/esm/index-b46983f9.js +1 -0
  52. package/build/esm/{index-2e200c36.js → index-c2fbc104.js} +1 -1
  53. package/build/esm/{index-816d81a1.js → index-e83bfcd7.js} +1 -1
  54. package/build/esm/{index-d0efc6f7.js → index-f22483ac.js} +1 -1
  55. package/build/esm/index-f63e0f99.js +1 -0
  56. package/build/esm/index.js +1 -1
  57. package/build/esm/{index.styled-e7114743.js → index.styled-8cfdb7c4.js} +1 -1
  58. package/build/esm/{index.styles-607132bf.js → index.styles-f5691a90.js} +42 -42
  59. package/build/esm/lead.js +1 -1
  60. package/build/esm/mantine.js +1 -1
  61. package/build/esm/misc.js +1 -1
  62. package/build/esm/navigation.js +1 -1
  63. package/build/esm/onboardingV2.js +1 -1
  64. package/build/esm/pwg.js +5 -5
  65. package/build/esm/{routing-9dc90ff7.js → routing-5149c7fa.js} +1 -1
  66. package/build/esm/subot.js +1 -1
  67. package/build/esm/together.js +1 -1
  68. package/build/esm/{types-c4a3cc51.js → types-cdbe15bf.js} +1 -1
  69. package/build/esm/{types-aa7b8d46.js → types-d093873c.js} +1 -1
  70. package/build/esm/types.js +1 -1
  71. package/build/esm/{useCategory-53558471.js → useCategory-1a7c064a.js} +1 -1
  72. package/build/esm/{useHealthToolCache-cfeb4f39.js → useHealthToolCache-8eea15d9.js} +1 -1
  73. package/build/esm/{usePlacesAutocomplete-abfbd1a6.js → usePlacesAutocomplete-d698a28e.js} +1 -1
  74. package/build/esm/useTranslations-86e89bb6.js +1 -0
  75. package/build/esm/{utils-bb7cbdbf.js → utils-16683592.js} +2 -2
  76. package/build/esm/{utils-230293e5.js → utils-c799817b.js} +1 -1
  77. package/build/esm/{utils-9cb13935.js → utils-f1f499ef.js} +1 -1
  78. package/build/esm/vaccination.js +11 -11
  79. package/build/footer.js +1 -1
  80. package/build/gAssets.js +1 -1
  81. package/build/{getDynamicHealthTool-f7738ae3.js → getDynamicHealthTool-498f29e9.js} +1 -1
  82. package/build/{getSocialList-816e94c7.js → getSocialList-66c5b6ee.js} +1 -1
  83. package/build/hooks.js +1 -1
  84. package/build/i18n.js +1 -1
  85. package/build/i18nV2.js +1 -1
  86. package/build/{index-a986f5cc.js → index-0c003a87.js} +1 -1
  87. package/build/{index-3453364d.js → index-14e23eae.js} +1 -1
  88. package/build/{index-f8556ecc.js → index-2952a2dc.js} +1 -1
  89. package/build/{index-e9bcd521.js → index-2db766a9.js} +1 -1
  90. package/build/{index-a0ff0c7c.js → index-3e769745.js} +1 -1
  91. package/build/{index-beafcfe0.js → index-40a294f0.js} +1 -1
  92. package/build/{index-ac495049.js → index-4ce3604f.js} +2 -2
  93. package/build/index-5b1d11af.js +1 -0
  94. package/build/{index-ed991afc.js → index-5e751a6e.js} +1 -1
  95. package/build/{index-3c0325dd.js → index-6b402916.js} +1 -1
  96. package/build/{index-e2aa0679.js → index-74fc7579.js} +1 -1
  97. package/build/{index-9fed5846.js → index-7e8c99e4.js} +1 -1
  98. package/build/{index-abcb94df.js → index-7f9239c8.js} +2 -2
  99. package/build/{index-654c54be.js → index-86f87970.js} +1 -1
  100. package/build/{index-6fe01704.js → index-95065bac.js} +1 -1
  101. package/build/{index-36d00c1e.js → index-a36b5063.js} +20 -20
  102. package/build/{index-13b06ce7.js → index-a39628ee.js} +1 -1
  103. package/build/{index-06c31aa5.js → index-b04eb521.js} +1 -1
  104. package/build/{index-4fcc50ac.js → index-be10c4e0.js} +1 -1
  105. package/build/{index-34b22040.js → index-c50fe502.js} +2 -2
  106. package/build/index-cea2c74a.js +1 -0
  107. package/build/{index-93072a8a.js → index-e8a104ed.js} +1 -1
  108. package/build/{index-6395c71d.js → index-eea67a77.js} +1 -1
  109. package/build/{index-32c9ce71.js → index-f049adba.js} +1 -1
  110. package/build/index.js +1 -1
  111. package/build/{index.styled-5c0482ab.js → index.styled-8f95d44d.js} +1 -1
  112. package/build/{index.styles-4e9a4b76.js → index.styles-b6376365.js} +16 -16
  113. package/build/lead.js +1 -1
  114. package/build/mantine.js +1 -1
  115. package/build/misc.js +1 -1
  116. package/build/navigation.js +1 -1
  117. package/build/onboardingV2.js +1 -1
  118. package/build/pwg.js +2 -2
  119. package/build/{routing-20ad0d2b.js → routing-0b0a26ff.js} +1 -1
  120. package/build/subot.js +1 -1
  121. package/build/together.js +1 -1
  122. package/build/{types-8871614c.js → types-294e4e86.js} +1 -1
  123. package/build/{types-21848dce.js → types-91eb9de5.js} +1 -1
  124. package/build/types.js +1 -1
  125. package/build/{useCategory-b48bb500.js → useCategory-3d89eb4d.js} +1 -1
  126. package/build/{useHealthToolCache-7ab5f9c5.js → useHealthToolCache-de7192b2.js} +1 -1
  127. package/build/{usePlacesAutocomplete-7fa143b6.js → usePlacesAutocomplete-4125b7b9.js} +1 -1
  128. package/build/{useTranslations-da1647d4.js → useTranslations-778ab09c.js} +1 -1
  129. package/build/{utils-9389c98f.js → utils-2bd7f928.js} +1 -1
  130. package/build/{utils-fd32cb42.js → utils-4db34bcf.js} +2 -2
  131. package/build/{utils-c0ee935c.js → utils-e637cc9f.js} +1 -1
  132. package/build/vaccination.js +1 -1
  133. package/package.json +1 -1
  134. package/build/esm/core-93ac9e1f.js +0 -1
  135. package/build/esm/getDynamicHealthTool-0d6da468.js +0 -1
  136. package/build/esm/index-22ebe2d3.js +0 -1
  137. package/build/esm/index-3d2abc54.js +0 -1
  138. package/build/esm/index-4d4fe4a9.js +0 -1
  139. package/build/esm/index-77fd947f.js +0 -1
  140. package/build/esm/index-ea30bcd6.js +0 -1
  141. package/build/esm/useTranslations-2bfc2d1a.js +0 -1
  142. package/build/index-695bcc12.js +0 -1
  143. package/build/index-f04d4a4d.js +0 -1
  144. /package/build/{BMI_BOYS.percentile.monthly-d3c686ae.js → BMI_BOYS.percentile.monthly-608c49ea.js} +0 -0
  145. /package/build/{BMI_BOYS.percentile.weekly-b1684768.js → BMI_BOYS.percentile.weekly-f4ef5f0a.js} +0 -0
  146. /package/build/{BMI_BOYS.percentile.yearly-0238ac12.js → BMI_BOYS.percentile.yearly-8b7c31c8.js} +0 -0
  147. /package/build/{BMI_BOYS.zscore.monthly-94cb0748.js → BMI_BOYS.zscore.monthly-ee736952.js} +0 -0
  148. /package/build/{BMI_BOYS.zscore.weekly-f50db573.js → BMI_BOYS.zscore.weekly-eaaad5cb.js} +0 -0
  149. /package/build/{BMI_BOYS.zscore.yearly-a98f3c96.js → BMI_BOYS.zscore.yearly-228bf966.js} +0 -0
  150. /package/build/{BMI_GIRLS.percentile.monthly-0b319364.js → BMI_GIRLS.percentile.monthly-ee9b4086.js} +0 -0
  151. /package/build/{BMI_GIRLS.percentile.weekly-f1518ef8.js → BMI_GIRLS.percentile.weekly-88eb168f.js} +0 -0
  152. /package/build/{BMI_GIRLS.percentile.yearly-3b178d54.js → BMI_GIRLS.percentile.yearly-64f86799.js} +0 -0
  153. /package/build/{BMI_GIRLS.zscore.monthly-5e9d2df3.js → BMI_GIRLS.zscore.monthly-47014ff8.js} +0 -0
  154. /package/build/{BMI_GIRLS.zscore.weekly-d754160f.js → BMI_GIRLS.zscore.weekly-4cba96bc.js} +0 -0
  155. /package/build/{BMI_GIRLS.zscore.yearly-8a183bde.js → BMI_GIRLS.zscore.yearly-16fdf047.js} +0 -0
  156. /package/build/{ChevronDown-15cca681.js → ChevronDown-5b12eac1.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2c94f81c.js → HEAD CIRCUM_BOYS.percentile.monthly-53f64b81.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-0cae2452.js → HEAD CIRCUM_BOYS.percentile.weekly-9645d212.js} +0 -0
  159. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-74bd6cff.js → HEAD CIRCUM_BOYS.percentile.yearly-16313480.js} +0 -0
  160. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-3b47563f.js → HEAD CIRCUM_BOYS.zscore.monthly-ca44e960.js} +0 -0
  161. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b997313c.js → HEAD CIRCUM_BOYS.zscore.weekly-d7782b27.js} +0 -0
  162. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-06d04ada.js → HEAD CIRCUM_BOYS.zscore.yearly-a7a06896.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b8241562.js → HEAD CIRCUM_GIRLS.percentile.monthly-d4be9bf4.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-4e9b860d.js → HEAD CIRCUM_GIRLS.percentile.weekly-f31a52f5.js} +0 -0
  165. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-9121c08b.js → HEAD CIRCUM_GIRLS.percentile.yearly-42e83272.js} +0 -0
  166. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f0188d6b.js → HEAD CIRCUM_GIRLS.zscore.monthly-0778a9c5.js} +0 -0
  167. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-a9911f13.js → HEAD CIRCUM_GIRLS.zscore.weekly-422152a4.js} +0 -0
  168. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-f71d641f.js → HEAD CIRCUM_GIRLS.zscore.yearly-88fbedd2.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.percentile.monthly-d3768455.js → HEIGHT_BOYS.percentile.monthly-e4e06f5f.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.percentile.weekly-96a73428.js → HEIGHT_BOYS.percentile.weekly-3431022e.js} +0 -0
  171. /package/build/{HEIGHT_BOYS.percentile.yearly-d839fd3b.js → HEIGHT_BOYS.percentile.yearly-ac16a132.js} +0 -0
  172. /package/build/{HEIGHT_BOYS.zscore.monthly-64ce2640.js → HEIGHT_BOYS.zscore.monthly-60ed36a3.js} +0 -0
  173. /package/build/{HEIGHT_BOYS.zscore.weekly-312366e4.js → HEIGHT_BOYS.zscore.weekly-ae6f8ffc.js} +0 -0
  174. /package/build/{HEIGHT_BOYS.zscore.yearly-16e829f4.js → HEIGHT_BOYS.zscore.yearly-a76b8b9f.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.percentile.monthly-1c21967d.js → HEIGHT_GIRLS.percentile.monthly-d377bccf.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.percentile.weekly-281fe154.js → HEIGHT_GIRLS.percentile.weekly-8654e3b3.js} +0 -0
  177. /package/build/{HEIGHT_GIRLS.percentile.yearly-c6bd690d.js → HEIGHT_GIRLS.percentile.yearly-464a3df2.js} +0 -0
  178. /package/build/{HEIGHT_GIRLS.zscore.monthly-75de2b7c.js → HEIGHT_GIRLS.zscore.monthly-a1e1e53d.js} +0 -0
  179. /package/build/{HEIGHT_GIRLS.zscore.weekly-0bc77aa6.js → HEIGHT_GIRLS.zscore.weekly-d9151bef.js} +0 -0
  180. /package/build/{HEIGHT_GIRLS.zscore.yearly-ef5ab1a5.js → HEIGHT_GIRLS.zscore.yearly-de563c40.js} +0 -0
  181. /package/build/{Subot-75abd57a.js → Subot-52a853c9.js} +0 -0
  182. /package/build/{Visible-33f6b1dc.js → Visible-87789997.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.percentile.monthly-56ec27d0.js → WEIGHT_BOYS.percentile.monthly-7b12062a.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.percentile.weekly-5b97ff78.js → WEIGHT_BOYS.percentile.weekly-f91d5d07.js} +0 -0
  185. /package/build/{WEIGHT_BOYS.percentile.yearly-b388b157.js → WEIGHT_BOYS.percentile.yearly-f8dcf3df.js} +0 -0
  186. /package/build/{WEIGHT_BOYS.zscore.monthly-3e16d435.js → WEIGHT_BOYS.zscore.monthly-4ec73c75.js} +0 -0
  187. /package/build/{WEIGHT_BOYS.zscore.weekly-eabb91cd.js → WEIGHT_BOYS.zscore.weekly-0957de57.js} +0 -0
  188. /package/build/{WEIGHT_BOYS.zscore.yearly-da2f6096.js → WEIGHT_BOYS.zscore.yearly-29785e07.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.percentile.monthly-c46836f5.js → WEIGHT_GIRLS.percentile.monthly-74ff490d.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.percentile.weekly-4b08038d.js → WEIGHT_GIRLS.percentile.weekly-5787c39e.js} +0 -0
  191. /package/build/{WEIGHT_GIRLS.percentile.yearly-4cd46ed1.js → WEIGHT_GIRLS.percentile.yearly-9d0b172a.js} +0 -0
  192. /package/build/{WEIGHT_GIRLS.zscore.monthly-60b75079.js → WEIGHT_GIRLS.zscore.monthly-4d69c551.js} +0 -0
  193. /package/build/{WEIGHT_GIRLS.zscore.weekly-3f61408b.js → WEIGHT_GIRLS.zscore.weekly-0de8c13f.js} +0 -0
  194. /package/build/{WEIGHT_GIRLS.zscore.yearly-319edc8c.js → WEIGHT_GIRLS.zscore.yearly-44930149.js} +0 -0
  195. /package/build/{animation-c29cc5bc.js → animation-71e7e86f.js} +0 -0
  196. /package/build/{cookieHelper-1eaa42d7.js → cookieHelper-db011eab.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.percentile.monthly-20892a54.js → BMI_BOYS.percentile.monthly-9ff1f082.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.percentile.weekly-5f79e22e.js → BMI_BOYS.percentile.weekly-0ba92235.js} +0 -0
  199. /package/build/esm/{BMI_BOYS.percentile.yearly-12936223.js → BMI_BOYS.percentile.yearly-1086e00e.js} +0 -0
  200. /package/build/esm/{BMI_BOYS.zscore.monthly-60708e68.js → BMI_BOYS.zscore.monthly-0f7f613e.js} +0 -0
  201. /package/build/esm/{BMI_BOYS.zscore.weekly-c8a613c5.js → BMI_BOYS.zscore.weekly-87fa8db7.js} +0 -0
  202. /package/build/esm/{BMI_BOYS.zscore.yearly-a9bd8507.js → BMI_BOYS.zscore.yearly-85eb22b9.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.percentile.monthly-41dd2d7c.js → BMI_GIRLS.percentile.monthly-2935fa95.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.percentile.weekly-d067d41b.js → BMI_GIRLS.percentile.weekly-93283f42.js} +0 -0
  205. /package/build/esm/{BMI_GIRLS.percentile.yearly-66a2783f.js → BMI_GIRLS.percentile.yearly-c016af3f.js} +0 -0
  206. /package/build/esm/{BMI_GIRLS.zscore.monthly-c815fa18.js → BMI_GIRLS.zscore.monthly-bf1221f3.js} +0 -0
  207. /package/build/esm/{BMI_GIRLS.zscore.weekly-7589a0a0.js → BMI_GIRLS.zscore.weekly-b66ec0f6.js} +0 -0
  208. /package/build/esm/{BMI_GIRLS.zscore.yearly-b7a10a85.js → BMI_GIRLS.zscore.yearly-330d603a.js} +0 -0
  209. /package/build/esm/{ChevronDown-b3e02130.js → ChevronDown-dba95d81.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-626ceeeb.js → HEAD CIRCUM_BOYS.percentile.monthly-a57fcb48.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-a5fdcc13.js → HEAD CIRCUM_BOYS.percentile.weekly-763200c2.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-fd3d54b5.js → HEAD CIRCUM_BOYS.percentile.yearly-56722b16.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-5c54f379.js → HEAD CIRCUM_BOYS.zscore.monthly-1409bd4b.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c58948a0.js → HEAD CIRCUM_BOYS.zscore.weekly-b4a8bf06.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-ab4a588a.js → HEAD CIRCUM_BOYS.zscore.yearly-8eec84ca.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-12b33b8e.js → HEAD CIRCUM_GIRLS.percentile.monthly-3ef12e21.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-a2d59338.js → HEAD CIRCUM_GIRLS.percentile.weekly-34358201.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-44dbecdb.js → HEAD CIRCUM_GIRLS.percentile.yearly-1068a35e.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-58a30ace.js → HEAD CIRCUM_GIRLS.zscore.monthly-509028ee.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-36428056.js → HEAD CIRCUM_GIRLS.zscore.weekly-f6358d7e.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-f8600e66.js → HEAD CIRCUM_GIRLS.zscore.yearly-3a982ae8.js} +0 -0
  222. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0ac98831.js → HEIGHT_BOYS.percentile.monthly-b071586a.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-83a94654.js → HEIGHT_BOYS.percentile.weekly-fe964e0e.js} +0 -0
  224. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3cee73b2.js → HEIGHT_BOYS.percentile.yearly-d259bd03.js} +0 -0
  225. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-26ec47f8.js → HEIGHT_BOYS.zscore.monthly-fba561d6.js} +0 -0
  226. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b92229c6.js → HEIGHT_BOYS.zscore.weekly-bd62c93d.js} +0 -0
  227. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-b220649f.js → HEIGHT_BOYS.zscore.yearly-8215dea7.js} +0 -0
  228. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-6b12dbaf.js → HEIGHT_GIRLS.percentile.monthly-4963f297.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-a565b8f2.js → HEIGHT_GIRLS.percentile.weekly-a6f4dc51.js} +0 -0
  230. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-22d15b4b.js → HEIGHT_GIRLS.percentile.yearly-a1875219.js} +0 -0
  231. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a98b969a.js → HEIGHT_GIRLS.zscore.monthly-82dc7d06.js} +0 -0
  232. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-71d38c7d.js → HEIGHT_GIRLS.zscore.weekly-9dc820e7.js} +0 -0
  233. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5d6fddfa.js → HEIGHT_GIRLS.zscore.yearly-b826ff70.js} +0 -0
  234. /package/build/esm/{Subot-851fd333.js → Subot-7273a528.js} +0 -0
  235. /package/build/esm/{Visible-2cdedc33.js → Visible-1090bd49.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-607e4448.js → WEIGHT_BOYS.percentile.monthly-93900776.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-253a7a81.js → WEIGHT_BOYS.percentile.weekly-866ad4eb.js} +0 -0
  238. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b83e8e14.js → WEIGHT_BOYS.percentile.yearly-3c951027.js} +0 -0
  239. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-b5a3665a.js → WEIGHT_BOYS.zscore.monthly-36f7548b.js} +0 -0
  240. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b9548729.js → WEIGHT_BOYS.zscore.weekly-85126ac6.js} +0 -0
  241. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-ea749e5d.js → WEIGHT_BOYS.zscore.yearly-eb4a834d.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-1b99019f.js → WEIGHT_GIRLS.percentile.monthly-fe3367f1.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-ca6f0a48.js → WEIGHT_GIRLS.percentile.weekly-13e77337.js} +0 -0
  244. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-90000ca0.js → WEIGHT_GIRLS.percentile.yearly-6bdcfaf4.js} +0 -0
  245. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b398da08.js → WEIGHT_GIRLS.zscore.monthly-20d0147d.js} +0 -0
  246. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-14c3c82b.js → WEIGHT_GIRLS.zscore.weekly-2e229a27.js} +0 -0
  247. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-02ffbc4f.js → WEIGHT_GIRLS.zscore.yearly-61af19d6.js} +0 -0
  248. /package/build/esm/{animation-40bcca6a.js → animation-58e1654e.js} +0 -0
  249. /package/build/esm/{cookieHelper-0c3dcabd.js → cookieHelper-b69ab332.js} +0 -0
  250. /package/build/esm/{index-6deb876e.js → index-54152214.js} +0 -0
  251. /package/build/esm/{index-5e61790d.js → index-82fd9ecc.js} +0 -0
  252. /package/build/esm/{index-df9619b8.js → index-8ddd1712.js} +0 -0
  253. /package/build/esm/{isProduction-d32c9de6.js → isProduction-b5a4232a.js} +0 -0
  254. /package/build/esm/{localizeNumberFormat-0d035fa2.js → localizeNumberFormat-0bb372b5.js} +0 -0
  255. /package/build/esm/{normalizeLink-b5dd4ea3.js → normalizeLink-c5fb54cb.js} +0 -0
  256. /package/build/esm/{number-b2244c1b.js → number-9748fd86.js} +0 -0
  257. /package/build/esm/{paths-eaed7507.js → paths-dc966233.js} +0 -0
  258. /package/build/esm/{theme-868b0ca0.js → theme-adcbd043.js} +0 -0
  259. /package/build/esm/{translationsContext-6c25aedd.js → translationsContext-a60c9450.js} +0 -0
  260. /package/build/esm/{tslib.es6-ba9d8cd4.js → tslib.es6-6116a023.js} +0 -0
  261. /package/build/esm/{types-e56d1f3f.js → types-0504c47c.js} +0 -0
  262. /package/build/esm/{useIsInit-65eb966d.js → useIsInit-6a263059.js} +0 -0
  263. /package/build/esm/{useOutsideClick-0d9abe5e.js → useOutsideClick-1959d3a7.js} +0 -0
  264. /package/build/esm/{useScrollbarSize-547afb52.js → useScrollbarSize-6bc774ea.js} +0 -0
  265. /package/build/esm/{useUniqueId-9cd4ba87.js → useUniqueId-772eafdf.js} +0 -0
  266. /package/build/esm/{utils-16053cd5.js → utils-de8dd6dc.js} +0 -0
  267. /package/build/{index-8f4c566f.js → index-0011304a.js} +0 -0
  268. /package/build/{index-2e493e48.js → index-063beba4.js} +0 -0
  269. /package/build/{index-eebbbb0a.js → index-24961b96.js} +0 -0
  270. /package/build/{isProduction-1b27c7e8.js → isProduction-1358e2f3.js} +0 -0
  271. /package/build/{localizeNumberFormat-3fd4984c.js → localizeNumberFormat-c742a6c3.js} +0 -0
  272. /package/build/{normalizeLink-8d5414b7.js → normalizeLink-fb57949a.js} +0 -0
  273. /package/build/{number-c8e16fcd.js → number-a61c9201.js} +0 -0
  274. /package/build/{paths-f4b000d7.js → paths-680b0596.js} +0 -0
  275. /package/build/{theme-645eae3b.js → theme-1a921769.js} +0 -0
  276. /package/build/{translationsContext-25ed50e4.js → translationsContext-e697619c.js} +0 -0
  277. /package/build/{tslib.es6-f3854ac2.js → tslib.es6-11571a59.js} +0 -0
  278. /package/build/{types-a61d3975.js → types-2ddc39fa.js} +0 -0
  279. /package/build/{useIsInit-0b395431.js → useIsInit-ace4f5d2.js} +0 -0
  280. /package/build/{useOutsideClick-ed38ff08.js → useOutsideClick-1ff0a049.js} +0 -0
  281. /package/build/{useScrollbarSize-c9cfb1ec.js → useScrollbarSize-fe02c3ef.js} +0 -0
  282. /package/build/{useUniqueId-10e140e3.js → useUniqueId-a6a2ac25.js} +0 -0
  283. /package/build/{utils-ac610998.js → utils-71645360.js} +0 -0
@@ -1,4 +1,4 @@
1
- import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-851fd333.js";import{a as _,_ as x}from"./tslib.es6-ba9d8cd4.js";import{B as E,d as w,M as S,e as k,G as I,h as N,A as O,f as T}from"./index-bd711d1d.js";import C from"js-cookie";import M from"fastdom";import P from"fastdom/extensions/fastdom-promised";import U from"string-format";import{G as B,b as j,x as R,y as A,T as L,L as D}from"./utils-bb7cbdbf.js";import{v4 as $}from"uuid";import{i as F}from"./isProduction-d32c9de6.js";import q from"hex-rgb";import z from"classnames";import{C as H}from"./index-df9619b8.js";import{D as G,L as V}from"./index-05e53bec.js";import{motion as Y}from"framer-motion";import{M as W}from"./utils-16053cd5.js";import X from"styled-components";import{B as K,S as J}from"./index-d9f09bce.js";import{Remarkable as Q}from"remarkable";import{useInView as Z}from"react-intersection-observer";import{Box as ee,Textarea as te}from"@mantine/core";import{C as ie}from"./index-b2fd7f71.js";import{I as ne}from"./index-d0efc6f7.js";import oe from"dayjs";import ae from"dayjs/plugin/isSameOrBefore";import{T as le}from"./Plus-74f52e6c.js";import{t as re}from"./theme-868b0ca0.js";import"@mantine/dates";import"./translationsContext-6c25aedd.js";import"@mantine/hooks";import se from"lodash/isEmpty";import{Controller as de,useForm as ce}from"react-hook-form";import ue,{getCountryCallingCode as me,isPossiblePhoneNumber as pe,parsePhoneNumber as ve}from"react-phone-number-input";import{LoadScript as ge}from"@react-google-maps/api";import{u as be,G as he,a as fe}from"./usePlacesAutocomplete-abfbd1a6.js";import{B as ye}from"./index-816d81a1.js";import{D as _e}from"./index-77800f03.js";import"date-fns/locale";import"./cookieHelper-0c3dcabd.js";import"slugify";import"./useTranslations-2bfc2d1a.js";import"date-fns";import"react-day-picker/DayPickerInput";import"@mantine/carousel";import"./WhatsApp-764b872d.js";import"./useUniqueId-9cd4ba87.js";const xe=M.extend(P),Ee={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},we={cached:{},clearCached:e=>{console.log(we.cached),Object.keys(we.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),we.cached[e]=void 0}))},withCached:(e,t)=>_(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===we.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof we.cached[e]&&(t(we.cached[e]),clearInterval(n))}),100)}));if("object"==typeof we.cached[e])return we.cached[e];we.cached[e]="waitingTheFirstResponse";try{const i=yield t();return we.cached[e]=i,setTimeout((()=>{we.cached[e]=void 0}),18e5),i}catch(t){return we.cached[e]=void 0,Promise.reject(t)}}))},Se=(e,t)=>{const{subotApiUrl:i}=null==B?void 0:B.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+U(e,Object.assign({},t))},ke=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Ie=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},Ne=e=>_(void 0,void 0,void 0,(function*(){try{return yield we.withCached("SubotInlineFirstNode",(()=>_(void 0,void 0,void 0,(function*(){const t=yield j(Se(Ee.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Ie(t),t}))))}catch(e){return null}})),Oe=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),Te=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Ce=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Me=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Ce],Pe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Me.includes(i))if(Ce.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),Ue=e=>[{id:$(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:$(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const je=e=>R.parse(e||"")["hhg-id"]||C.get("hhg-id")||"",Re=e=>{if(e)return C.set("hhg-id",e),e;const t=je();if(t)return t;const i=$();return C.set("hhg-id",i),i},Ae=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},Le=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},De=$(),$e=()=>De,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${F?"":"discover."}${w[e]}`,qe=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},He=30,Ge=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ve=(e,t,i,n)=>{const o=Ge(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ye=(e,t)=>{const i=Ge(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},We="other",Xe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Je=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,_,x,E,w,S;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===We)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(_=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===_?void 0:_.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(E=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===E?void 0:E[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(S=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===S?void 0:S.label)||""})}}return e}),[]);return t},Qe=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Le().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>_(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:Je(l),voucherAnswers:Qe(l,e[0])},s={cookie_id:Re(),account_id:n||Ae()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:S[A]};yield j(Se(Ee.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),et=(e,t)=>{try{const[i,n,o]=q(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},tt=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),it=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:f}}=i(L),y=n(null),E=n(null),[w,S]=o(!0),[N,O]=o(""),[T,M]=o([]),[P,U]=o(!1),[R,A]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(xe.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",et(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",et(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",et(t,.3)||"#bcdeff")})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m]);const D=l((()=>{const e=window.gaData,t=window.location.origin+k+("tl-PH"===(null==B?void 0:B.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Ae()||null,action_id:"",action_value:"",cookie_id:Re(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:C.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:$e()};return Pe(i,null==B?void 0:B.router.query)}),[]),$=l((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),F=l(((e,t=!0)=>_(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];S(!0);const a=yield Ne(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],_(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield j(Se(Ee.GET_SUBOT_LOG,{botId:r.id,cookieId:Re(),accountId:Ae()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Ae()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,E.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Ae())return null;const i=JSON.parse(localStorage.getItem(Xe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Xe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Ae()||null,cookie_id:Re(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:D});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:E.current}),setTimeout((()=>{$()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);S(!1),O(c),M(u),A(Object.assign(Object.assign({},e),d))}))),[]),q=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=N,o=[...T];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(S(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{M(o),O(n),S(!1),Ze({nodes:o,activeId:n,params:R,accountIdFromLogs:E.current})}),250)}),[T,N]),z=l((e=>_(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ve(T,N,e.action_id)),i=yield ke(t);if(S(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==T.findIndex((e=>e.id===a.id))?q(a):q(a,t))}f({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=T.find((e=>e.id==N));t&&t.hasOwnProperty("first_node")&&(O(T[1].id.toString()),Ze({nodes:T,activeId:T[1].id.toString(),params:D(),accountIdFromLogs:E.current}))}))),[q,T]),H=l((()=>{const e=T.findIndex((({id:e})=>e==N));if(e&&-1!==e&&e>1){const t=T[e-1];O(t.id),Ze({nodes:T,activeId:t.id,params:R,accountIdFromLogs:E.current})}}),[T,N]),G=l((()=>{const e=D();F(e,!1);const t=T[0],i=T[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[D,F,T]),V=l((e=>{M((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==N?t.map((t=>{const i=t;return i.id===N?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[N]);a((()=>{if(C.get(I)){const e=D();F(e)}else Be({condition:()=>Boolean(C.get(I)),finished:()=>{const e=D();F(e)}})}),[]),a((()=>{if(!T.length)return;T.find((e=>e.id==N))&&N||O(d+"")}),[N,T]);const Y=r((()=>({activeId:N,params:R,listNodes:T,loading:w,setLoading:S,getParams:D,onNext:z,onPrev:H,onSubmit:q,onStartOver:G,onChange:V,isShowFooter:P,setIsShowFooter:U,isFullContainer:c,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[N,z,H,q,V,G,P,R,T,w,S,D,c,v,g,b]);return T.length?e.createElement(tt.Provider,{value:Y},e.createElement("div",{ref:y},t)):null},nt=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),ot="480px",at=X.div`
1
+ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-7273a528.js";import{a as _,_ as x}from"./tslib.es6-6116a023.js";import{B as E,d as w,M as S,e as k,G as I,h as N,A as O,f as T}from"./index-636381d2.js";import C from"js-cookie";import M from"fastdom";import P from"fastdom/extensions/fastdom-promised";import U from"string-format";import{G as B,b as j,x as R,y as A,T as L,L as D}from"./utils-16683592.js";import{v4 as $}from"uuid";import{i as F}from"./isProduction-b5a4232a.js";import q from"hex-rgb";import z from"classnames";import{C as H}from"./index-8ddd1712.js";import{D as G,L as V}from"./index-7b57d2c6.js";import{motion as Y}from"framer-motion";import{M as W}from"./utils-de8dd6dc.js";import X from"styled-components";import{B as K,S as J}from"./index-47e79c7a.js";import{Remarkable as Q}from"remarkable";import{useInView as Z}from"react-intersection-observer";import{Box as ee,Textarea as te}from"@mantine/core";import{C as ie}from"./index-0cc4495e.js";import{I as ne}from"./index-f22483ac.js";import oe from"dayjs";import ae from"dayjs/plugin/isSameOrBefore";import{T as le}from"./Plus-8ce4f4ec.js";import{t as re}from"./theme-adcbd043.js";import"@mantine/dates";import"./translationsContext-a60c9450.js";import"@mantine/hooks";import se from"lodash/isEmpty";import{Controller as de,useForm as ce}from"react-hook-form";import ue,{getCountryCallingCode as me,isPossiblePhoneNumber as pe,parsePhoneNumber as ve}from"react-phone-number-input";import{LoadScript as ge}from"@react-google-maps/api";import{u as be,G as he,a as fe}from"./usePlacesAutocomplete-d698a28e.js";import{B as ye}from"./index-e83bfcd7.js";import{D as _e}from"./index-767b3730.js";import"date-fns/locale";import"./cookieHelper-b69ab332.js";import"slugify";import"./useTranslations-86e89bb6.js";import"date-fns";import"react-day-picker/DayPickerInput";import"@mantine/carousel";import"./WhatsApp-fbb196cd.js";import"./useUniqueId-772eafdf.js";const xe=M.extend(P),Ee={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},we={cached:{},clearCached:e=>{console.log(we.cached),Object.keys(we.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),we.cached[e]=void 0}))},withCached:(e,t)=>_(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===we.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof we.cached[e]&&(t(we.cached[e]),clearInterval(n))}),100)}));if("object"==typeof we.cached[e])return we.cached[e];we.cached[e]="waitingTheFirstResponse";try{const i=yield t();return we.cached[e]=i,setTimeout((()=>{we.cached[e]=void 0}),18e5),i}catch(t){return we.cached[e]=void 0,Promise.reject(t)}}))},Se=(e,t)=>{const{subotApiUrl:i}=null==B?void 0:B.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+U(e,Object.assign({},t))},ke=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Ie=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},Ne=e=>_(void 0,void 0,void 0,(function*(){try{return yield we.withCached("SubotInlineFirstNode",(()=>_(void 0,void 0,void 0,(function*(){const t=yield j(Se(Ee.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Ie(t),t}))))}catch(e){return null}})),Oe=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),Te=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Ce=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Me=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Ce],Pe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Me.includes(i))if(Ce.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),Ue=e=>[{id:$(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:$(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const je=e=>R.parse(e||"")["hhg-id"]||C.get("hhg-id")||"",Re=e=>{if(e)return C.set("hhg-id",e),e;const t=je();if(t)return t;const i=$();return C.set("hhg-id",i),i},Ae=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},Le=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},De=$(),$e=()=>De,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${F?"":"discover."}${w[e]}`,qe=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},He=30,Ge=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ve=(e,t,i,n)=>{const o=Ge(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ye=(e,t)=>{const i=Ge(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},We="other",Xe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Je=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,_,x,E,w,S;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===We)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(_=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===_?void 0:_.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(E=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===E?void 0:E[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(S=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===S?void 0:S.label)||""})}}return e}),[]);return t},Qe=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Le().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>_(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:Je(l),voucherAnswers:Qe(l,e[0])},s={cookie_id:Re(),account_id:n||Ae()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:S[A]};yield j(Se(Ee.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),et=(e,t)=>{try{const[i,n,o]=q(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},tt=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),it=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:f}}=i(L),y=n(null),E=n(null),[w,S]=o(!0),[N,O]=o(""),[T,M]=o([]),[P,U]=o(!1),[R,A]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(xe.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",et(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",et(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",et(t,.3)||"#bcdeff")})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m]);const D=l((()=>{const e=window.gaData,t=window.location.origin+k+("tl-PH"===(null==B?void 0:B.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Ae()||null,action_id:"",action_value:"",cookie_id:Re(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:C.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:$e()};return Pe(i,null==B?void 0:B.router.query)}),[]),$=l((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),F=l(((e,t=!0)=>_(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];S(!0);const a=yield Ne(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],_(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield j(Se(Ee.GET_SUBOT_LOG,{botId:r.id,cookieId:Re(),accountId:Ae()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Ae()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,E.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Ae())return null;const i=JSON.parse(localStorage.getItem(Xe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Xe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Ae()||null,cookie_id:Re(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:D});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:E.current}),setTimeout((()=>{$()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);S(!1),O(c),M(u),A(Object.assign(Object.assign({},e),d))}))),[]),q=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=N,o=[...T];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(S(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{M(o),O(n),S(!1),Ze({nodes:o,activeId:n,params:R,accountIdFromLogs:E.current})}),250)}),[T,N]),z=l((e=>_(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ve(T,N,e.action_id)),i=yield ke(t);if(S(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==T.findIndex((e=>e.id===a.id))?q(a):q(a,t))}f({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=T.find((e=>e.id==N));t&&t.hasOwnProperty("first_node")&&(O(T[1].id.toString()),Ze({nodes:T,activeId:T[1].id.toString(),params:D(),accountIdFromLogs:E.current}))}))),[q,T]),H=l((()=>{const e=T.findIndex((({id:e})=>e==N));if(e&&-1!==e&&e>1){const t=T[e-1];O(t.id),Ze({nodes:T,activeId:t.id,params:R,accountIdFromLogs:E.current})}}),[T,N]),G=l((()=>{const e=D();F(e,!1);const t=T[0],i=T[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[D,F,T]),V=l((e=>{M((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==N?t.map((t=>{const i=t;return i.id===N?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[N]);a((()=>{if(C.get(I)){const e=D();F(e)}else Be({condition:()=>Boolean(C.get(I)),finished:()=>{const e=D();F(e)}})}),[]),a((()=>{if(!T.length)return;T.find((e=>e.id==N))&&N||O(d+"")}),[N,T]);const Y=r((()=>({activeId:N,params:R,listNodes:T,loading:w,setLoading:S,getParams:D,onNext:z,onPrev:H,onSubmit:q,onStartOver:G,onChange:V,isShowFooter:P,setIsShowFooter:U,isFullContainer:c,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[N,z,H,q,V,G,P,R,T,w,S,D,c,v,g,b]);return T.length?e.createElement(tt.Provider,{value:Y},e.createElement("div",{ref:y},t)):null},nt=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),ot="480px",at=X.div`
2
2
  position: relative;
3
3
 
4
4
  .si-inline-revamp-container {
@@ -1 +1 @@
1
- export{f as CardAuthor,C as CardLink,B as CardPost,D as CardPostPopoverMore,b as CardReactions,E as CardReply,F as CardReplyPopover,g as CreateNewPostContent,h as CreatePostDescription,i as CreatePostTitle,r as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,G as PopoverMenu,P as PopupDanger,k as PopupDoctor,j as PopupExpert,n as PopupFrame,l as PopupHospital,q as PostContent,v as PostImagePreview,s as PostSingleImageViewPopup,y as ProfileDetail,x as ProfileDetailModal,p as ShareBox,S as SharePopup,A as SkipQuestionOfExpertBtn,w as SocialLinkPreview,H as SourceList,o as SubmitReportForm,z as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,m as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-c4a3cc51.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-fffa276c.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-bb7cbdbf.js";import"react";import"./Plus-74f52e6c.js";import"./tslib.es6-ba9d8cd4.js";import"@mantine/core";import"./theme-868b0ca0.js";import"./translationsContext-6c25aedd.js";import"string-format";import"./index-77800f03.js";import"styled-components";import"./useTranslations-2bfc2d1a.js";import"innertext";import"./index-d0efc6f7.js";import"./WhatsApp-764b872d.js";import"./useUniqueId-9cd4ba87.js";import"./index-d9f09bce.js";import"@mantine/hooks";import"./index-b2fd7f71.js";import"./index-bd711d1d.js";import"date-fns/locale";import"./Subot-851fd333.js";import"./isProduction-d32c9de6.js";import"dayjs";import"./utils-16053cd5.js";import"@mantine/carousel";import"classnames";import"@mantine/dates";import"./index-ea30bcd6.js";import"./index.styles-607132bf.js";import"./constants-0683dc31.js";import"./animation-40bcca6a.js";import"react-keyed-flatten-children";import"./paths-eaed7507.js";import"./index-4209d110.js";import"lodash/debounce";import"react-contenteditable";import"./index-816d81a1.js";import"./cookieHelper-0c3dcabd.js";import"react-dom";import"./number-b2244c1b.js";import"date-fns";import"dayjs/plugin/relativeTime";import"./index-22ebe2d3.js";import"./routing-9dc90ff7.js";import"./utils-230293e5.js";import"./index.styled-e7114743.js";import"./index-6deb876e.js";import"slugify";
1
+ export{f as CardAuthor,C as CardLink,B as CardPost,D as CardPostPopoverMore,b as CardReactions,E as CardReply,F as CardReplyPopover,g as CreateNewPostContent,h as CreatePostDescription,i as CreatePostTitle,r as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,G as PopoverMenu,P as PopupDanger,k as PopupDoctor,j as PopupExpert,n as PopupFrame,l as PopupHospital,q as PostContent,v as PostImagePreview,s as PostSingleImageViewPopup,y as ProfileDetail,x as ProfileDetailModal,p as ShareBox,S as SharePopup,A as SkipQuestionOfExpertBtn,w as SocialLinkPreview,H as SourceList,o as SubmitReportForm,z as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,m as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-cdbe15bf.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-50688929.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-16683592.js";import"react";import"./Plus-8ce4f4ec.js";import"./tslib.es6-6116a023.js";import"@mantine/core";import"./theme-adcbd043.js";import"./translationsContext-a60c9450.js";import"string-format";import"./index-767b3730.js";import"styled-components";import"./useTranslations-86e89bb6.js";import"innertext";import"./index-f22483ac.js";import"./WhatsApp-fbb196cd.js";import"./useUniqueId-772eafdf.js";import"./index-47e79c7a.js";import"@mantine/hooks";import"./index-0cc4495e.js";import"./index-636381d2.js";import"date-fns/locale";import"./Subot-7273a528.js";import"./isProduction-b5a4232a.js";import"dayjs";import"./utils-de8dd6dc.js";import"@mantine/carousel";import"classnames";import"@mantine/dates";import"./index-f63e0f99.js";import"./index.styles-f5691a90.js";import"./constants-1b372a77.js";import"./animation-58e1654e.js";import"react-keyed-flatten-children";import"./paths-dc966233.js";import"./index-635521df.js";import"lodash/debounce";import"react-contenteditable";import"./index-e83bfcd7.js";import"./cookieHelper-b69ab332.js";import"react-dom";import"./number-9748fd86.js";import"date-fns";import"dayjs/plugin/relativeTime";import"./index-6f811e9f.js";import"./routing-5149c7fa.js";import"./utils-c799817b.js";import"./index.styled-8cfdb7c4.js";import"./index-54152214.js";import"slugify";
@@ -1,4 +1,4 @@
1
- import*as e from"react";import t,{createContext as a,useContext as o,useState as n,useRef as i,useEffect as l,useMemo as r,useCallback as s}from"react";import{T as c,P as d,C as m}from"./Plus-74f52e6c.js";import"./translationsContext-6c25aedd.js";import"string-format";import{T as p,B as u,g,b as v,d as h,P as b,e as f,f as y,h as w,C as x,i as E,j as C,k,l as N,m as A,A as T,n as z,o as P,M as I,p as S,R as L,q as M,r as j}from"./utils-bb7cbdbf.js";import{a as B,_ as F}from"./tslib.es6-ba9d8cd4.js";import{useMantineTheme as O,createStyles as R,Flex as V,Box as D,rem as U,Checkbox as W,Portal as H,Anchor as Z,Accordion as q,Popover as _}from"@mantine/core";import{D as G}from"./index-77800f03.js";import{u as Q}from"./useTranslations-2bfc2d1a.js";import X from"innertext";import{t as K}from"./theme-868b0ca0.js";import{I as $,A as Y,C as J}from"./index-d0efc6f7.js";import{H as ee,I as te}from"./WhatsApp-764b872d.js";import{I as ae,u as oe,B as ne,A as ie,a as le,T as re}from"./index-d9f09bce.js";import"@mantine/dates";import{D as se,d as ce}from"./index-bd711d1d.js";import{L as de}from"./Subot-851fd333.js";import{C as me}from"./index-b2fd7f71.js";import"@mantine/hooks";import{M as pe,t as ue,c as ge,a as ve}from"./utils-16053cd5.js";import{A as he,a as be,B as fe,D as ye}from"./index-ea30bcd6.js";import{U as we,f as xe,a as Ee,P as Ce,b as ke,c as Ne,e as Ae,g as Te}from"./index-fffa276c.js";import{I as ze}from"./index-4209d110.js";import Pe from"lodash/debounce";import Ie from"react-contenteditable";import{B as Se}from"./index-816d81a1.js";import{H as Le,g as Me}from"./index.styles-607132bf.js";import{d as je,g as Be}from"./cookieHelper-0c3dcabd.js";import*as Fe from"react-dom";import Oe,{keyframes as Re}from"styled-components";import{a as Ve}from"./number-b2244c1b.js";import{format as De}from"date-fns";import Ue from"dayjs";import We from"dayjs/plugin/relativeTime";import{M as He}from"./index-22ebe2d3.js";import{a as Ze}from"./useUniqueId-9cd4ba87.js";import{g as qe}from"./routing-9dc90ff7.js";import"./constants-0683dc31.js";import"./utils-230293e5.js";import"./index.styled-e7114743.js";import"./index-6deb876e.js";const _e=t=>e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},t),e.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"})),Ge=a({}),Qe=({children:e,defaultParams:a})=>t.createElement(Ge.Provider,{value:{defaultParams:a}},e),Xe=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=o(p),{defaultParams:n}=o(Ge)||{},i=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,o)=>{const r=Object.assign(Object.assign(Object.assign({},n),e),o);if(!i||l){i||je(u),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=g(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},n),e)}},Ke=Oe.div`
1
+ import*as e from"react";import t,{createContext as a,useContext as o,useState as n,useRef as i,useEffect as l,useMemo as r,useCallback as s}from"react";import{T as c,P as d,C as m}from"./Plus-8ce4f4ec.js";import"./translationsContext-a60c9450.js";import"string-format";import{T as p,B as u,g,b as v,d as h,P as b,e as f,f as y,h as w,C as x,i as E,j as C,k,l as N,m as A,A as T,n as z,o as P,M as I,p as S,R as L,q as M,r as j}from"./utils-16683592.js";import{a as B,_ as F}from"./tslib.es6-6116a023.js";import{useMantineTheme as O,createStyles as R,Flex as V,Box as D,rem as U,Checkbox as W,Portal as H,Anchor as Z,Accordion as q,Popover as _}from"@mantine/core";import{D as G}from"./index-767b3730.js";import{u as Q}from"./useTranslations-86e89bb6.js";import X from"innertext";import{t as K}from"./theme-adcbd043.js";import{I as $,A as Y,C as J}from"./index-f22483ac.js";import{H as ee,I as te}from"./WhatsApp-fbb196cd.js";import{I as ae,u as oe,B as ne,A as ie,a as le,T as re}from"./index-47e79c7a.js";import"@mantine/dates";import{D as se,d as ce}from"./index-636381d2.js";import{L as de}from"./Subot-7273a528.js";import{C as me}from"./index-0cc4495e.js";import"@mantine/hooks";import{M as pe,t as ue,c as ge,a as ve}from"./utils-de8dd6dc.js";import{A as he,a as be,B as fe,D as ye}from"./index-f63e0f99.js";import{U as we,f as xe,a as Ee,P as Ce,b as ke,c as Ne,e as Ae,g as Te}from"./index-50688929.js";import{I as ze}from"./index-635521df.js";import Pe from"lodash/debounce";import Ie from"react-contenteditable";import{B as Se}from"./index-e83bfcd7.js";import{H as Le,g as Me}from"./index.styles-f5691a90.js";import{d as je,g as Be}from"./cookieHelper-b69ab332.js";import*as Fe from"react-dom";import Oe,{keyframes as Re}from"styled-components";import{a as Ve}from"./number-9748fd86.js";import{format as De}from"date-fns";import Ue from"dayjs";import We from"dayjs/plugin/relativeTime";import{M as He}from"./index-6f811e9f.js";import{a as Ze}from"./useUniqueId-772eafdf.js";import{g as qe}from"./routing-5149c7fa.js";import"./constants-1b372a77.js";import"./utils-c799817b.js";import"./index.styled-8cfdb7c4.js";import"./index-54152214.js";const _e=t=>e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},t),e.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"})),Ge=a({}),Qe=({children:e,defaultParams:a})=>t.createElement(Ge.Provider,{value:{defaultParams:a}},e),Xe=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=o(p),{defaultParams:n}=o(Ge)||{},i=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,o)=>{const r=Object.assign(Object.assign(Object.assign({},n),e),o);if(!i||l){i||je(u),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=g(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},n),e)}},Ke=Oe.div`
2
2
  .link-info-container {
3
3
  padding: 0.5rem 1rem;
4
4
  background: ${e=>e.color||"#f4faff"};
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-ba9d8cd4.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-2bfc2d1a.js";import c from"lodash/debounce";import{I as d,a as p,f as u,M as h,g,C as m}from"./constants-0683dc31.js";import{I as C}from"./index-4209d110.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f}from"./Plus-74f52e6c.js";import{t as v}from"./theme-868b0ca0.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-0d9abe5e.js";import{M as E}from"./utils-16053cd5.js";import w from"react-loading-skeleton";import{P as L}from"./paths-eaed7507.js";import{Skeleton as k,Input as O,Divider as j,Tabs as I,Flex as $,Button as F}from"@mantine/core";import{U as M,d as R}from"./index-bd711d1d.js";import{g as T,s as P,d as N}from"./cookieHelper-0c3dcabd.js";import{C as A}from"./index-df9619b8.js";import{I as B}from"./index-d0efc6f7.js";import{C as D}from"./ChevronDown-b3e02130.js";import V from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(T(M))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=T(M);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};P(M,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{N(M),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
1
+ import{a as e}from"./tslib.es6-6116a023.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-86e89bb6.js";import c from"lodash/debounce";import{I as d,a as p,f as u,M as h,g,C as m}from"./constants-1b372a77.js";import{I as C}from"./index-635521df.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f}from"./Plus-8ce4f4ec.js";import{t as v}from"./theme-adcbd043.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-1959d3a7.js";import{M as E}from"./utils-de8dd6dc.js";import w from"react-loading-skeleton";import{P as L}from"./paths-dc966233.js";import{Skeleton as k,Input as O,Divider as j,Tabs as I,Flex as $,Button as F}from"@mantine/core";import{U as M,d as R}from"./index-636381d2.js";import{g as T,s as P,d as N}from"./cookieHelper-b69ab332.js";import{C as A}from"./index-8ddd1712.js";import{I as B}from"./index-f22483ac.js";import{C as D}from"./ChevronDown-dba95d81.js";import V from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(T(M))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=T(M);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};P(M,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{N(M),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -1 +1 @@
1
- export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,E as ELEMENT_CONTROL_INPUT_TYPE,F as FULL_KEY_ADDRESS,G as Gender,L as LOCALE,f as NodeActionType,d as NodeFinalTypes,e as NodeIntentType,g as NodeMultipleOptions,N as NodePosition,c as NodeType,O as OnboardingStep,S as SubotType}from"./Subot-851fd333.js";
1
+ export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,E as ELEMENT_CONTROL_INPUT_TYPE,F as FULL_KEY_ADDRESS,G as Gender,L as LOCALE,f as NodeActionType,d as NodeFinalTypes,e as NodeIntentType,g as NodeMultipleOptions,N as NodePosition,c as NodeType,O as OnboardingStep,S as SubotType}from"./Subot-7273a528.js";
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-ba9d8cd4.js";import{useRef as a,useEffect as n,useState as t,useCallback as i,useMemo as l}from"react";import{g as s}from"./cookieHelper-0c3dcabd.js";import{u as b}from"./useUniqueId-9cd4ba87.js";import{L as r}from"./Subot-851fd333.js";import{u as h}from"./useTranslations-2bfc2d1a.js";function o(e){const a=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",a).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const u=t=>{const i=a("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,a,n,l,b;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(a=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===a||a.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==t?void 0:t.id){const[e,a,n,i,r,h]=yield Promise.all([t.email?o(t.email):null,t.phone?o(t.phone):null,t.birthday?o(t.birthday.split("-").join("")):null,t.gender?"m":"f",t.city_name?o(t.city_name).then((e=>e.replace(/\s/g,""))):null,t.name?o(t.name):null]);s("_fbc"),s("_fbp");const u={user_id:t.id};h&&(u.fn=h),e&&(u.em=e),a&&(u.ph=a),n&&(u.db=n),r&&(u.ct=r),null===(b=null===(l=window.localStorage)||void 0===l?void 0:l.setItem)||void 0===b||b.call(l,"fbDataLayer_userInfo",JSON.stringify(u))}})),()=>{})),[t])},c=e=>{const n=a(),t=a(e);return b()||t.current===e||(n.current=t.current,t.current=e),n.current},d=e=>{const[l,s]=t(e),b=a(0),r=i((e=>{cancelAnimationFrame(b.current),b.current=requestAnimationFrame((()=>{s(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(b.current))),[l,r]},g={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},p={[r.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[r.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[r.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[r.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[r.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};const m=e=>{const{locale:a}=h();return{isPregnancy:l((()=>decodeURI(e.replace(/\//gi,"")).includes(g[a])),[]),isParenting:l((()=>{var n;return decodeURI(e.replace(/\//gi,"")).includes(null===(n=p[a])||void 0===n?void 0:n.parenting)}),[]),type:l((()=>function(e,a){const n=e.split("/");for(const e in a){const t=a[e];if(n.includes(t))return e}return null}(e,p[a])),[e,a])}};export{p as M,g as P,c as a,d as b,m as c,u};
1
+ import{a as e}from"./tslib.es6-6116a023.js";import{useRef as a,useEffect as n,useState as t,useCallback as i,useMemo as l}from"react";import{g as s}from"./cookieHelper-b69ab332.js";import{u as b}from"./useUniqueId-772eafdf.js";import{L as r}from"./Subot-7273a528.js";import{u as h}from"./useTranslations-86e89bb6.js";function o(e){const a=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",a).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const u=t=>{const i=a("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,a,n,l,b;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(a=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===a||a.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==t?void 0:t.id){const[e,a,n,i,r,h]=yield Promise.all([t.email?o(t.email):null,t.phone?o(t.phone):null,t.birthday?o(t.birthday.split("-").join("")):null,t.gender?"m":"f",t.city_name?o(t.city_name).then((e=>e.replace(/\s/g,""))):null,t.name?o(t.name):null]);s("_fbc"),s("_fbp");const u={user_id:t.id};h&&(u.fn=h),e&&(u.em=e),a&&(u.ph=a),n&&(u.db=n),r&&(u.ct=r),null===(b=null===(l=window.localStorage)||void 0===l?void 0:l.setItem)||void 0===b||b.call(l,"fbDataLayer_userInfo",JSON.stringify(u))}})),()=>{})),[t])},g=e=>{const n=a(),t=a(e);return b()||t.current===e||(n.current=t.current,t.current=e),n.current},c=e=>{const[l,s]=t(e),b=a(0),r=i((e=>{cancelAnimationFrame(b.current),b.current=requestAnimationFrame((()=>{s(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(b.current))),[l,r]},d={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},p={[r.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[r.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[r.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[r.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[r.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[r.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};const m=e=>{const{locale:a}=h();return{isPregnancy:l((()=>decodeURI(e.replace(/\//gi,"")).includes(d[a])),[]),isParenting:l((()=>{var n;return decodeURI(e.replace(/\//gi,"")).includes(null===(n=p[a])||void 0===n?void 0:n.parenting)}),[]),type:l((()=>function(e,a){const n=e.split("/");for(const e in a){const t=a[e];if(n.includes(t))return e}return null}(e,p[a])),[e,a])}};export{p as M,d as P,g as a,c as b,m as c,u};
@@ -1 +1 @@
1
- import{a as o}from"./tslib.es6-ba9d8cd4.js";import{useState as t,useEffect as i,useCallback as a}from"react";import{a as l}from"./getDynamicHealthTool-0d6da468.js";const n=n=>{const[r,e]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield l(n);e(o)}))}),[l,n]);const s=a((o=>{var t;return(null===(t=r.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[r]);return{allTools:r,getHealthToolLink:s}};export{n as u};
1
+ import{a as o}from"./tslib.es6-6116a023.js";import{useState as t,useEffect as i,useCallback as a}from"react";import{a as l}from"./getDynamicHealthTool-99872dc7.js";const n=n=>{const[r,e]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield l(n);e(o)}))}),[l,n]);const s=a((o=>{var t;return(null===(t=r.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[r]);return{allTools:r,getHealthToolLink:s}};export{n as u};
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-ba9d8cd4.js";import{useState as i,useEffect as t}from"react";const o="undefined"==typeof window,n={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},r="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",c=(r="",c="",s="",a=500)=>{const[d,l]=i([]),[p,u]=i(!1);return t((()=>{let i;return r?i=window.setTimeout((()=>e(void 0,void 0,void 0,(function*(){var i;if(r)try{u(!0);const t=yield((i="",t="",r="vi")=>e(void 0,void 0,void 0,(function*(){return new Promise(((e,c)=>{if(!i)return c("Need valid text input");if(o)return c("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:i},t?{componentRestrictions:{country:t}}:{}),{language:n[r]}),e)}catch(e){c(e)}}))})))(r,c,s);l(!(i=t)||i.length<1?[]:i.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{u(!1)}else l([])}))),a):d.length&&l([]),()=>{window.clearTimeout(i)}}),[r,a,c]),{isLoading:p,predictions:d}};export{r as G,n as a,c as u};
1
+ import{a as e}from"./tslib.es6-6116a023.js";import{useState as i,useEffect as t}from"react";const o="undefined"==typeof window,n={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},r="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",c=(r="",c="",s="",a=500)=>{const[d,l]=i([]),[p,u]=i(!1);return t((()=>{let i;return r?i=window.setTimeout((()=>e(void 0,void 0,void 0,(function*(){var i;if(r)try{u(!0);const t=yield((i="",t="",r="vi")=>e(void 0,void 0,void 0,(function*(){return new Promise(((e,c)=>{if(!i)return c("Need valid text input");if(o)return c("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:i},t?{componentRestrictions:{country:t}}:{}),{language:n[r]}),e)}catch(e){c(e)}}))})))(r,c,s);l(!(i=t)||i.length<1?[]:i.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{u(!1)}else l([])}))),a):d.length&&l([]),()=>{window.clearTimeout(i)}}),[r,a,c]),{isLoading:p,predictions:d}};export{r as G,n as a,c as u};
@@ -0,0 +1 @@
1
+ import{useContext as o,useMemo as a}from"react";import{T as r}from"./translationsContext-a60c9450.js";import e from"string-format";function t(){const{values:t,locale:n}=o(r)||{locale:"en-PH"};return a((()=>({t:(o,a)=>t?t[o]?a?e(t[o]||o,a):t[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${n}`),a?e(o,a):o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:n})),[t,n])}export{t as u};
@@ -1,7 +1,7 @@
1
- import{a as e}from"./tslib.es6-ba9d8cd4.js";import{g as t}from"./cookieHelper-0c3dcabd.js";import r from"slugify";import"./index-bd711d1d.js";import o from"string-format";import a,{createContext as i,useState as s,useEffect as l}from"react";import{i as n}from"./isProduction-d32c9de6.js";
1
+ import{a as e}from"./tslib.es6-6116a023.js";import{g as t}from"./cookieHelper-b69ab332.js";import r from"slugify";import"./index-636381d2.js";import o from"string-format";import a,{createContext as i,useState as s,useEffect as l}from"react";import{i as n}from"./isProduction-b5a4232a.js";
2
2
  /*!
3
3
  * cookie
4
4
  * Copyright(c) 2012-2014 Roman Shtylman
5
5
  * Copyright(c) 2015 Douglas Christopher Wilson
6
6
  * MIT Licensed
7
- */var _=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},o=(t||{}).decode||E,a=0;for(;a<e.length;){var i=e.indexOf("=",a);if(-1===i)break;var s=e.indexOf(";",a);if(-1===s)s=e.length;else if(s<i){a=e.lastIndexOf(";",i-1)+1;continue}var l=e.slice(a,i).trim();if(void 0===r[l]){var n=e.slice(i+1,s).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1)),r[l]=T(n,o)}a=s+1}return r},u=function(e,t,r){var o=r||{},a=o.encode||p;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!d.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!d.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(l)}if(o.domain){if(!d.test(o.domain))throw new TypeError("option domain is invalid");s+="; Domain="+o.domain}if(o.path){if(!d.test(o.path))throw new TypeError("option path is invalid");s+="; Path="+o.path}if(o.expires){var n=o.expires;if(!function(e){return"[object Date]"===c.call(e)||e instanceof Date}(n)||isNaN(n.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+n.toUTCString()}o.httpOnly&&(s+="; HttpOnly");o.secure&&(s+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},c=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function E(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function p(e){return encodeURIComponent(e)}function T(e,t){try{return t(e)}catch(t){return e}}var m={parse:_,serialize:u};const O={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",USER:{DETAIL:"profile/user/detail?website_url={website_url}&user_id={id}",COUNT_TABS:"profile/user/counting?website_url={website_url}&user_id={id}&total_post={post}&total_comment={comment}&total_community={community}&total_reply={reply}&total_question={question}",LIST_POST:"profile/user/posts?website_url={website_url}&user_id={id}&is_anonymous={isAnonymous}&paging=none",LIST_QUESTION_NEED_REPLY:"questions/no-reply?website_url={website_url}",LIST_QUESTION:"question/{id}?website_url={website_url}&is_reply={isReply}&is_question={isQuestion}&is_ignore={isIgnore}&group_by={groupBy}",SKIP_QUESTION:"questions/ignore?website_url={website_url}&question_id={id}",LIST_ANSWERS:"replied/{id}?website_url={website_url}&paging=1&items_per_page={pageSize}"},HEALTH_TOOL:{CREATE:"health-profile/{type}/create?website_url={website_url}",GET_STATUS:"health-profile/get-status-for-user?website_url={website_url}"}},h={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},b={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},A={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},g={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},v=i({data:g,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null});let I=g;const L=({locale:e="vi-VN",children:t,userInfo:r,router:o,env:i={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:n=(e=>e),pushNotifications:_=(()=>!1),formatMessage:u})=>{const[c,d]=s();return I={userInfo:r,locale:e,togetherUserId:c,router:o,env:i},l((()=>{(null==r?void 0:r.id)&&Q(V(O.PROFILE,{_locale:e}),"GET").then((e=>{var t;d(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)}))}),[null==r?void 0:r.id]),a.createElement(v.Provider,{value:{data:{userInfo:r,locale:e,togetherUserId:c,router:o,env:i},action:{pushNotifications:_,sanitizeFunction:n},formatMessage:u}},t)},S="DD/MM/YYYY",w="/images/avatar.jpg",R="/images/default-image.jpg",y={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR",BGC:"BGC"},f={"id-ID":{"kalkulator-bmi":y.BMI,"kebutuhan-kalori":y.BMR,"kalkulator-hari-perkiraan-lahir":y.DUE_DATE,"kalkulator-masa-subur-2":y.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":y.PWG,"kalkulator-detak-jantung-saat-olahraga":y.THR},"ms-MY":{"kalkulator-bmi":y.BMI,"kalkulator-bmr":y.BMR,"kalkulator-tarikh-bersalin":y.DUE_DATE,"kalkulator-kesuburan":y.OVULATION,"kalkulator-tambah-berat-badan-hamil":y.PWG,"target-heart-rate-calculator":y.THR},"vi-VN":{"cach-tinh-chi-so-bmi":y.BMI,"tinh-chi-so-bmr":y.BMR,"cong-cu-tinh-ngay-du-sinh":y.DUE_DATE,"tinh-ngay-rung-trung":y.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":y.PWG,"cong-cu-do-nhip-tim":y.THR},"zh-TW":{"bmi-calculator":y.BMI,"bmr-calculator":y.BMR,"due-date-calculator":y.DUE_DATE,"ovulation-calculator":y.OVULATION,"pregnancy-weight-gain-calculator":y.PWG,"target-heart-rate-calculator":y.THR},"en-PH":{"bmi-calculator":y.BMI,"bmr-calculator":y.BMR,"due-date-calculator":y.DUE_DATE,"ovulation-calculator":y.OVULATION,"pregnancy-weight-gain-calculator":y.PWG,"target-heart-rate-calculator":y.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":y.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":y.BMR,"เครื่องมือคำนวณกำหนดคลอด":y.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":y.OVULATION,"เครื่องคำนวณน้ำหนักตัว":y.PWG,"เครื่องวัดอัตราการเต้น":y.THR},"hi-IN":{"bmi-calculator-en":y.BMI,"bmi-calculator":y.BMI,"bmr-calculator":y.BMR,"delivery-date-calculator":y.DUE_DATE,"ovulation-calculator":y.OVULATION,"pregnancy-weight-gain-calculator":y.PWG,"target-heart-rate-calculator":y.THR},"km-KH":{"គណនា-bmi":y.BMI,"គណនា-bmr":y.BMR,"គណនាថ្ងៃសម្រាលកូន":y.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":y.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":y.PWG,"គណនារកចង្វាក់បេះដូងល្អ":y.THR},"my-MM":{"bmi-calculator":y.BMI,"bmr-calculator":y.BMR,"due-date-calendar":y.DUE_DATE,"ovulation-calculator":y.OVULATION,"pregnaancy-weight-calculator":y.PWG,"target-heartrate":y.THR,"pregnancy-weight-calculator":y.PWG,"target-heart-rate":y.THR}},P="hhg_user_token",D="together_admin_token",G={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},N="hhg-id",C={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},M=20,U={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}};var k=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DUE_DATE_FORMAT:S,DEFAULT_AVATAR_IMG:w,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:R,BMI_LEVELS:["underweight","healthy","overweight","obese_level_1","obese_level_2"],BMR_LEVELS:["low","normal","high"],CORAL_TOKEN_COOKE:"coral_together_user_token",HEALTH_TOOL_TYPE:y,LOCALE_HEALTH_TOOLS:f,BEARER_TOKEN_COOKIE:P,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:D,Z_INDEX:G,BmrActiveLevels:[{value:"sedentary",icon:"bmr-sedentary",name:"bmr.activeLevel.sedentary",description:"bmr.activeLevel.sedentary.description"},{value:"lightly-active",icon:"bmr-light",name:"bmr.activeLevel.lightlyActive",description:"bmr.activeLevel.lightlyActive.description"},{value:"moderately-active",icon:"bmr-moderately",name:"bmr.activeLevel.moderatelyActive",description:"bmr.activeLevel.moderatelyActive.description"},{value:"intensely-active",icon:"bmr-intensively",name:"bmr.activeLevel.intenselyActive",description:"bmr.activeLevel.intenselyActive.description"},{value:"extremely-active",icon:"bmr-extremely",name:"bmr.activeLevel.extremelyActive",description:"bmr.activeLevel.extremelyActive.description"}],LEAD_CAMPAIGN_CODE:"lmoct7xfr5sv4fv",LEAD_TOKEN_COOKIE:N,GA_TOKEN_COOKIE:"_ga",GOOGLE_CALENDAR_AUTH_CLIENT_ID:"1038242799566-esoq4ij201ve5qfp266nbca44scpo3c6.apps.googleusercontent.com",FIND_CARE_IFRAME_URL:"https://www.appsheet.com/start/4ba34ebe-3cb6-4c16-8dd4-d074025a5bb6#appName=DependentDropdowns-2711103&group=%5B%5D&page=card&sort=%5B%5D&table=Menu&view=Menu",REPORT_REASON_MAP:C,MB_SOCIAL_LINKS:{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/marry.baby.vn",INSTAGRAM:"https://www.instagram.com/marrybaby.vn/",TWITTER:"",YOUTUBE:"https://www.youtube.com/channel/UCeZybTkY1VzJ3N7LvPGdKbg",ZALO:"http://zalo.me/806483414530291942"},INTERNAL_ROLES:["admin","moderator","local-admin"],EXTERNAL_ROLES:["ambassador","expert","sponsor","guide","influencer"],INTERNAL_PROFILE_ROLES:["moderator","local-admin"],EXTERNAL_PROFILE_ROLES:["expert","ambassador","sponsor"],RoleDataMap:{moderator:{text:"Moderator",fid:"cardAuthor.moderator",background:"#fe921d"},admin:{text:"Admin",fid:"cardAuthor.admin",background:"#2b62cd"},"local-admin":{text:"Local admin",fid:"cardAuthor.localAdmin",background:"#2b62cd"},expert:{text:"Expert",fid:"cardAuthor.expert",background:"#ff6f4d"},sponsor:{text:"Sponsor",fid:"cardAuthor.sponsor",background:"#00c7e6"},ambassador:{text:"Ambassador",fid:"cardAuthor.ambassador",background:"#00CB8A"}},MAX_IMAGE_UPLOADS:20,LOCALISED_SLUGS:U});const B={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},H={"vi-VN":"marrybaby.vn"},x=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",F=e=>{const{env:{isMarryBaby:t}}=I;return`https://${t?H[e]:B[e]}`},j=e=>{const t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},K=e=>{const{env:{isMarryBaby:t}}=I;if("undefined"!=typeof window)return window.location.origin;const r="staging"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return"development"===process.env.NEXT_PUBLIC_DEPLOY_ENV?"http://localhost:3000":`https://${r?t?"fe.":"discover.":t?"www.":""}${B[e]}`},V=(e,t,r,a)=>{let i="";r&&(i=Object.keys(r).map((e=>e+"="+r[e])).join("&"));const{togetherBaseApiUrl:s=""}=(null==I?void 0:I.env)||{};let l=o(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:F(String(t._locale))}:{}),t));l+=`${l.includes("?")?"&":"?"}${i}`;return(a||s)+"api/v1/"+j(l)},Y=(e,t,r)=>{const{discoverBaseApiUrl:a="",discoverBaseProdApiUrl:i=""}=(null==I?void 0:I.env)||{};return(!n&&r?i:a)+"wp-json/api/"+j(o(e,Object.assign({},t)))},W=(e,t,r)=>{const{marryBabyApiUrl:a="",marryBabyProdApiUrl:i=""}=(null==I?void 0:I.env)||{};return(r&&!n?i:a)+"wp-json/api/"+j(o(e,Object.assign({},t)))},$=(e,t)=>{const{careBaseApiUrl:r=""}=(null==I?void 0:I.env)||{};return(r||"https://service-health-care.hellohealthgroup.com/")+j(o(e,Object.assign({},t)))},X=(e,t)=>{const{premiumBaseApiUrl:r=""}=(null==I?void 0:I.env)||{};return(r||"https://premium-content-stag.hellohealthgroup.com/")+j(o(e,Object.assign({},t)))},z=(e,t)=>{const{publicSSO:r=""}=(null==I?void 0:I.env)||{};return(r||"https://staging-id.hellobacsi.com/")+"api/"+j(o(e,Object.assign({},t)))},q=e=>((null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e),Z=(t,r,o,a=!1)=>e(void 0,void 0,void 0,(function*(){var e,i,s,l;try{const e=yield fetch(a?t:(l=t,encodeURI(l).replace(/%5B/g,"[").replace(/%5D/g,"]")),Object.assign(Object.assign({method:r},q(o)),{headers:Object.assign({},null==o?void 0:o.headers)})).then((e=>e.json()));if(e)return e}catch(r){return console.log(r),console.log({url:t,status:null===(e=null==r?void 0:r.response)||void 0===e?void 0:e.status,statusText:null===(i=null==r?void 0:r.response)||void 0===i?void 0:i.statusText}),(null===(s=null==r?void 0:r.response)||void 0===s?void 0:s.data)||null}return null})),J=(r,o="GET",a,i)=>e(void 0,void 0,void 0,(function*(){var e,s,l,n,_,u;try{const n="string"==typeof r?r:r.url,_="string"==typeof r?r:r.backupUrl,u=m.parse(i||""),c=u[P]||t(P);if(!c||!c.length)return Z(_||n,o,a);try{const t=yield fetch(n,Object.assign(Object.assign({method:o},q(a)),{headers:Object.assign({Authorization:"Bearer "+c},null==a?void 0:a.headers)})).then((e=>e.json()));if(null===(e=null==t?void 0:t.messages)||void 0===e?void 0:e.find((e=>"Unauthenticated"===(null==e?void 0:e.toLowerCase()))))return Z(_||n,o,a);if(t)return t}catch(e){return console.log({status:null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.status,statusText:null===(l=null==e?void 0:e.response)||void 0===l?void 0:l.statusText}),Z(_||n,o,a)}}catch(e){return console.log({status:null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status,statusText:null===(_=null==e?void 0:e.response)||void 0===_?void 0:_.statusText}),(null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.data)||null}return null})),Q=(r,o,a,i)=>e(void 0,void 0,void 0,(function*(){try{const e=m.parse(i||""),s=e[P]||t(P);if(s&&s.length){const e=yield fetch(r,Object.assign(Object.assign({method:o},q(a)),{headers:Object.assign({Authorization:"Bearer "+s},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null})),ee=(r,o,a,i)=>e(void 0,void 0,void 0,(function*(){try{const e=m.parse(i||""),s=e[D]||t(D);if(s&&s.length){const e=yield fetch(r,Object.assign(Object.assign({method:o},q(a)),{headers:Object.assign({Authorization:"Bearer "+s},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null}));function te(e,t,r){const o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+r+"$2"):e+a+t+"="+r}const re=(e,t,r="/community")=>{const o=e||("undefined"!=typeof window?window.location.href:"/");let a="undefined"!=typeof window?window.location.origin:"";a||e&&(e.startsWith("http://")||e.startsWith("https://"))&&(a=e.split("/").slice(0,3).join("/"));return((e,t)=>{const{publicSSO:r}=I.env,o=e||window.location.href;return t&&Object.keys(t).map((e=>{te(o,e,t[e])})),te(o,"source","communities"),r?`${r}?returnUrl=${encodeURIComponent(o.toString())}`:o})(`${a}${r}/on-boarding?return=${encodeURIComponent(o)}`,t)},oe=(e,t,o,a)=>o&&t?`${o}-${t}`:`${r(e||"",{lower:!0,locale:a||x})}-${t}`,ae=({name:e,id:t,locale:r})=>{var o;return`/care/${null===(o=U[r||"vi-VN"])||void 0===o?void 0:o.DOCTOR}/${oe(e,t)}`},ie=({name:e,id:t,slug:r,locale:o})=>{var a;return`/care/${null===(a=U[o||"vi-VN"])||void 0===a?void 0:a.HOSPITAL}/${oe(e,t,r)}`};export{A,P as B,h as C,g as D,I as G,y as H,N as L,M,O as P,C as R,v as T,G as Z,L as a,Z as b,k as c,V as d,R as e,K as f,re as g,$ as h,B as i,ie as j,ae as k,Y as l,b as m,ee as n,Q as o,w as p,W as q,J as r,S as s,X as t,F as u,z as v,H as w,m as x,x as y};
7
+ */var _=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},o=(t||{}).decode||d,a=0;for(;a<e.length;){var i=e.indexOf("=",a);if(-1===i)break;var s=e.indexOf(";",a);if(-1===s)s=e.length;else if(s<i){a=e.lastIndexOf(";",i-1)+1;continue}var l=e.slice(a,i).trim();if(void 0===r[l]){var n=e.slice(i+1,s).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1)),r[l]=T(n,o)}a=s+1}return r},u=function(e,t,r){var o=r||{},a=o.encode||p;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!E.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!E.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(l)}if(o.domain){if(!E.test(o.domain))throw new TypeError("option domain is invalid");s+="; Domain="+o.domain}if(o.path){if(!E.test(o.path))throw new TypeError("option path is invalid");s+="; Path="+o.path}if(o.expires){var n=o.expires;if(!function(e){return"[object Date]"===c.call(e)||e instanceof Date}(n)||isNaN(n.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+n.toUTCString()}o.httpOnly&&(s+="; HttpOnly");o.secure&&(s+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},c=Object.prototype.toString,E=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function p(e){return encodeURIComponent(e)}function T(e,t){try{return t(e)}catch(t){return e}}var m={parse:_,serialize:u};const O={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",USER:{DETAIL:"profile/user/detail?website_url={website_url}&user_id={id}",COUNT_TABS:"profile/user/counting?website_url={website_url}&user_id={id}&total_post={post}&total_comment={comment}&total_community={community}&total_reply={reply}&total_question={question}",LIST_POST:"profile/user/posts?website_url={website_url}&user_id={id}&is_anonymous={isAnonymous}&paging=none",LIST_QUESTION_NEED_REPLY:"questions/no-reply?website_url={website_url}",LIST_QUESTION:"question/{id}?website_url={website_url}&is_reply={isReply}&is_question={isQuestion}&is_ignore={isIgnore}&group_by={groupBy}",SKIP_QUESTION:"questions/ignore?website_url={website_url}&question_id={id}",LIST_ANSWERS:"replied/{id}?website_url={website_url}&paging=1&items_per_page={pageSize}"},HEALTH_TOOL:{CREATE:"health-profile/{type}/create?website_url={website_url}",GET_STATUS:"health-profile/get-status-for-user?website_url={website_url}"}},h={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},b={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},A={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},g={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},v=i({data:g,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null});let I=g;const L=({locale:e="vi-VN",children:t,userInfo:r,router:o,env:i={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:n=(e=>e),pushNotifications:_=(()=>!1),formatMessage:u})=>{const[c,E]=s();return I={userInfo:r,locale:e,togetherUserId:c,router:o,env:i},l((()=>{(null==r?void 0:r.id)&&Q(V(O.PROFILE,{_locale:e}),"GET").then((e=>{var t;E(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)}))}),[null==r?void 0:r.id]),a.createElement(v.Provider,{value:{data:{userInfo:r,locale:e,togetherUserId:c,router:o,env:i},action:{pushNotifications:_,sanitizeFunction:n},formatMessage:u}},t)},S="DD/MM/YYYY",w="/images/avatar.jpg",R="/images/default-image.jpg",y={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR",BGC:"BGC"},f={"id-ID":{"kalkulator-bmi":y.BMI,"kebutuhan-kalori":y.BMR,"kalkulator-hari-perkiraan-lahir":y.DUE_DATE,"kalkulator-masa-subur-2":y.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":y.PWG,"kalkulator-detak-jantung-saat-olahraga":y.THR},"ms-MY":{"kalkulator-bmi":y.BMI,"kalkulator-bmr":y.BMR,"kalkulator-tarikh-bersalin":y.DUE_DATE,"kalkulator-kesuburan":y.OVULATION,"kalkulator-tambah-berat-badan-hamil":y.PWG,"target-heart-rate-calculator":y.THR},"vi-VN":{"cach-tinh-chi-so-bmi":y.BMI,"tinh-chi-so-bmr":y.BMR,"cong-cu-tinh-ngay-du-sinh":y.DUE_DATE,"tinh-ngay-rung-trung":y.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":y.PWG,"cong-cu-do-nhip-tim":y.THR},"zh-TW":{"bmi-calculator":y.BMI,"bmr-calculator":y.BMR,"due-date-calculator":y.DUE_DATE,"ovulation-calculator":y.OVULATION,"pregnancy-weight-gain-calculator":y.PWG,"target-heart-rate-calculator":y.THR},"en-PH":{"bmi-calculator":y.BMI,"bmr-calculator":y.BMR,"due-date-calculator":y.DUE_DATE,"ovulation-calculator":y.OVULATION,"pregnancy-weight-gain-calculator":y.PWG,"target-heart-rate-calculator":y.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":y.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":y.BMR,"เครื่องมือคำนวณกำหนดคลอด":y.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":y.OVULATION,"เครื่องคำนวณน้ำหนักตัว":y.PWG,"เครื่องวัดอัตราการเต้น":y.THR},"hi-IN":{"bmi-calculator-en":y.BMI,"bmi-calculator":y.BMI,"bmr-calculator":y.BMR,"delivery-date-calculator":y.DUE_DATE,"ovulation-calculator":y.OVULATION,"pregnancy-weight-gain-calculator":y.PWG,"target-heart-rate-calculator":y.THR},"km-KH":{"គណនា-bmi":y.BMI,"គណនា-bmr":y.BMR,"គណនាថ្ងៃសម្រាលកូន":y.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":y.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":y.PWG,"គណនារកចង្វាក់បេះដូងល្អ":y.THR},"my-MM":{"bmi-calculator":y.BMI,"bmr-calculator":y.BMR,"due-date-calendar":y.DUE_DATE,"ovulation-calculator":y.OVULATION,"pregnaancy-weight-calculator":y.PWG,"target-heartrate":y.THR,"pregnancy-weight-calculator":y.PWG,"target-heart-rate":y.THR}},P="hhg_user_token",D="together_admin_token",G={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},N="hhg-id",C={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},M=20,U={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}};var k=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DUE_DATE_FORMAT:S,DEFAULT_AVATAR_IMG:w,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:R,BMI_LEVELS:["underweight","healthy","overweight","obese_level_1","obese_level_2"],BMR_LEVELS:["low","normal","high"],CORAL_TOKEN_COOKE:"coral_together_user_token",HEALTH_TOOL_TYPE:y,LOCALE_HEALTH_TOOLS:f,BEARER_TOKEN_COOKIE:P,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:D,Z_INDEX:G,BmrActiveLevels:[{value:"sedentary",icon:"bmr-sedentary",name:"bmr.activeLevel.sedentary",description:"bmr.activeLevel.sedentary.description"},{value:"lightly-active",icon:"bmr-light",name:"bmr.activeLevel.lightlyActive",description:"bmr.activeLevel.lightlyActive.description"},{value:"moderately-active",icon:"bmr-moderately",name:"bmr.activeLevel.moderatelyActive",description:"bmr.activeLevel.moderatelyActive.description"},{value:"intensely-active",icon:"bmr-intensively",name:"bmr.activeLevel.intenselyActive",description:"bmr.activeLevel.intenselyActive.description"},{value:"extremely-active",icon:"bmr-extremely",name:"bmr.activeLevel.extremelyActive",description:"bmr.activeLevel.extremelyActive.description"}],LEAD_CAMPAIGN_CODE:"lmoct7xfr5sv4fv",LEAD_TOKEN_COOKIE:N,GA_TOKEN_COOKIE:"_ga",GOOGLE_CALENDAR_AUTH_CLIENT_ID:"1038242799566-esoq4ij201ve5qfp266nbca44scpo3c6.apps.googleusercontent.com",FIND_CARE_IFRAME_URL:"https://www.appsheet.com/start/4ba34ebe-3cb6-4c16-8dd4-d074025a5bb6#appName=DependentDropdowns-2711103&group=%5B%5D&page=card&sort=%5B%5D&table=Menu&view=Menu",REPORT_REASON_MAP:C,MB_SOCIAL_LINKS:{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/marry.baby.vn",INSTAGRAM:"https://www.instagram.com/marrybaby.vn/",TWITTER:"",YOUTUBE:"https://www.youtube.com/channel/UCeZybTkY1VzJ3N7LvPGdKbg",ZALO:"http://zalo.me/806483414530291942"},INTERNAL_ROLES:["admin","moderator","local-admin"],EXTERNAL_ROLES:["ambassador","expert","sponsor","guide","influencer"],INTERNAL_PROFILE_ROLES:["moderator","local-admin"],EXTERNAL_PROFILE_ROLES:["expert","ambassador","sponsor"],RoleDataMap:{moderator:{text:"Moderator",fid:"cardAuthor.moderator",background:"#fe921d"},admin:{text:"Admin",fid:"cardAuthor.admin",background:"#2b62cd"},"local-admin":{text:"Local admin",fid:"cardAuthor.localAdmin",background:"#2b62cd"},expert:{text:"Expert",fid:"cardAuthor.expert",background:"#ff6f4d"},sponsor:{text:"Sponsor",fid:"cardAuthor.sponsor",background:"#00c7e6"},ambassador:{text:"Ambassador",fid:"cardAuthor.ambassador",background:"#00CB8A"}},MAX_IMAGE_UPLOADS:20,LOCALISED_SLUGS:U});const B={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},H={"vi-VN":"marrybaby.vn"},x=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",F=e=>{const{env:{isMarryBaby:t}}=I;return`https://${t?H[e]:B[e]}`},j=e=>{const t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},K=e=>{const{env:{isMarryBaby:t}}=I;if("undefined"!=typeof window)return window.location.origin;const r="staging"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return"development"===process.env.NEXT_PUBLIC_DEPLOY_ENV?"http://localhost:3000":`https://${r?t?"fe.":"discover.":t?"www.":""}${B[e]}`},V=(e,t,r,a)=>{let i="";r&&(i=Object.keys(r).map((e=>e+"="+r[e])).join("&"));const{togetherBaseApiUrl:s=""}=(null==I?void 0:I.env)||{};let l=o(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:F(String(t._locale))}:{}),t));l+=`${l.includes("?")?"&":"?"}${i}`;return(a||s)+"api/v1/"+j(l)},Y=(e,t,r)=>{const{discoverBaseApiUrl:a="",discoverBaseProdApiUrl:i=""}=(null==I?void 0:I.env)||{};return(!n&&r?i:a)+"wp-json/api/"+j(o(e,Object.assign({},t)))},W=(e,t,r)=>{const{marryBabyApiUrl:a="",marryBabyProdApiUrl:i=""}=(null==I?void 0:I.env)||{};return(r&&!n?i:a)+"wp-json/api/"+j(o(e,Object.assign({},t)))},$=(e,t)=>{const{careBaseApiUrl:r=""}=(null==I?void 0:I.env)||{};return(r||"https://service-health-care.hellohealthgroup.com/")+j(o(e,Object.assign({},t)))},X=(e,t)=>{const{premiumBaseApiUrl:r=""}=(null==I?void 0:I.env)||{};return(r||"https://premium-content-stag.hellohealthgroup.com/")+j(o(e,Object.assign({},t)))},z=(e,t)=>{const{publicSSO:r=""}=(null==I?void 0:I.env)||{};return(r||"https://staging-id.hellobacsi.com/")+"api/"+j(o(e,Object.assign({},t)))},q=e=>((null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e),Z=(t,r,o,a=!1)=>e(void 0,void 0,void 0,(function*(){var e,i,s,l;try{const e=yield fetch(a?t:(l=t,encodeURI(l).replace(/%5B/g,"[").replace(/%5D/g,"]")),Object.assign(Object.assign({method:r},q(o)),{headers:Object.assign({},null==o?void 0:o.headers)})).then((e=>e.json()));if(e)return e}catch(r){return console.log(r),console.log({url:t,status:null===(e=null==r?void 0:r.response)||void 0===e?void 0:e.status,statusText:null===(i=null==r?void 0:r.response)||void 0===i?void 0:i.statusText}),(null===(s=null==r?void 0:r.response)||void 0===s?void 0:s.data)||null}return null})),J=(r,o="GET",a,i)=>e(void 0,void 0,void 0,(function*(){var e,s,l,n,_,u;try{const n="string"==typeof r?r:r.url,_="string"==typeof r?r:r.backupUrl,u=m.parse(i||""),c=u[P]||t(P);if(!c||!c.length)return Z(_||n,o,a);try{const t=yield fetch(n,Object.assign(Object.assign({method:o},q(a)),{headers:Object.assign({Authorization:"Bearer "+c},null==a?void 0:a.headers)})).then((e=>e.json()));if(null===(e=null==t?void 0:t.messages)||void 0===e?void 0:e.find((e=>"Unauthenticated"===(null==e?void 0:e.toLowerCase()))))return Z(_||n,o,a);if(t)return t}catch(e){return console.log({status:null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.status,statusText:null===(l=null==e?void 0:e.response)||void 0===l?void 0:l.statusText}),Z(_||n,o,a)}}catch(e){return console.log({status:null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status,statusText:null===(_=null==e?void 0:e.response)||void 0===_?void 0:_.statusText}),(null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.data)||null}return null})),Q=(r,o,a,i)=>e(void 0,void 0,void 0,(function*(){try{const e=m.parse(i||""),s=e[P]||t(P);if(s&&s.length){const e=yield fetch(r,Object.assign(Object.assign({method:o},q(a)),{headers:Object.assign({Authorization:"Bearer "+s},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null})),ee=(r,o,a,i)=>e(void 0,void 0,void 0,(function*(){try{const e=m.parse(i||""),s=e[D]||t(D);if(s&&s.length){const e=yield fetch(r,Object.assign(Object.assign({method:o},q(a)),{headers:Object.assign({Authorization:"Bearer "+s},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null}));function te(e,t,r){const o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+r+"$2"):e+a+t+"="+r}const re=(e,t,r="/community")=>{const o=e||("undefined"!=typeof window?window.location.href:"/");let a="undefined"!=typeof window?window.location.origin:"";a||e&&(e.startsWith("http://")||e.startsWith("https://"))&&(a=e.split("/").slice(0,3).join("/"));return((e,t)=>{const{publicSSO:r}=I.env,o=e||window.location.href;return t&&Object.keys(t).map((e=>{te(o,e,t[e])})),te(o,"source","communities"),r?`${r}?returnUrl=${encodeURIComponent(o.toString())}`:o})(`${a}${r}/on-boarding?return=${encodeURIComponent(o)}`,t)},oe=(e,t,o,a)=>o&&t?`${o}-${t}`:`${r(e||"",{lower:!0,locale:a||x})}-${t}`,ae=({name:e,id:t,locale:r})=>{var o;return`/care/${null===(o=U[r||"vi-VN"])||void 0===o?void 0:o.DOCTOR}/${oe(e,t)}`},ie=({name:e,id:t,slug:r,locale:o})=>{var a;return`/care/${null===(a=U[o||"vi-VN"])||void 0===a?void 0:a.HOSPITAL}/${oe(e,t,r)}`};export{A,P as B,h as C,g as D,I as G,y as H,N as L,M,O as P,C as R,v as T,G as Z,L as a,Z as b,k as c,V as d,R as e,K as f,re as g,$ as h,B as i,ie as j,ae as k,Y as l,b as m,ee as n,Q as o,w as p,W as q,J as r,S as s,X as t,F as u,z as v,H as w,m as x,x as y};
@@ -1,4 +1,4 @@
1
- import{M as t}from"./utils-16053cd5.js";import e from"styled-components";import a,{memo as o,useMemo as s}from"react";import{C as n}from"./index-b2fd7f71.js";import{I as r}from"./index-d9f09bce.js";import{L as l}from"./Subot-851fd333.js";const h=e.div`
1
+ import{M as t}from"./utils-de8dd6dc.js";import e from"styled-components";import a,{memo as o,useMemo as s}from"react";import{C as n}from"./index-0cc4495e.js";import{I as r}from"./index-47e79c7a.js";import{L as l}from"./Subot-7273a528.js";const h=e.div`
2
2
  position: relative;
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -1 +1 @@
1
- import{L as a}from"./Subot-851fd333.js";const i={[a.Vietnam]:"VN",[a.Cambodia]:"KH",[a.Indonesia]:"ID",[a.Malaysia]:"MY",[a.PhilippinesEnglish]:"PH",[a.PhilippinesTagalog]:"PH",[a.Taiwan]:"TW",[a.Thailand]:"TH",[a.Myanmar]:"MM"},n=(a="")=>{const i=a.indexOf("@"),n=a.substring(0,i),s=n.length>3?3:n.length;return a.replace(a.substring(s,i),a.slice(s,i).replace(/./g,"x"))};export{i as M,n as h};
1
+ import{L as a}from"./Subot-7273a528.js";const i={[a.Vietnam]:"VN",[a.Cambodia]:"KH",[a.Indonesia]:"ID",[a.Malaysia]:"MY",[a.PhilippinesEnglish]:"PH",[a.PhilippinesTagalog]:"PH",[a.Taiwan]:"TW",[a.Thailand]:"TH",[a.Myanmar]:"MM"},n=(a="")=>{const i=a.indexOf("@"),n=a.substring(0,i),s=n.length>3?3:n.length;return a.replace(a.substring(s,i),a.slice(s,i).replace(/./g,"x"))};export{i as M,n as h};