@hhgtech/hhg-components 1.28.67 → 1.28.68

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 (288) hide show
  1. package/build/adapters.js +1 -1
  2. package/build/babyGrowth.js +2 -2
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components/navigationV2/hooks/useNavConfig.d.ts +1 -3
  6. package/build/components.js +1 -1
  7. package/build/{constants-00e06f68.js → constants-47b9b5ff.js} +1 -1
  8. package/build/{constants-51251306.js → constants-8d5fe5b9.js} +1 -1
  9. package/build/constants.js +1 -1
  10. package/build/{core-ba3af3e2.js → core-fc6dbe08.js} +1 -1
  11. package/build/{dataTransform-1805eae3.js → dataTransform-ad721ec5.js} +1 -1
  12. package/build/ecom.js +1 -1
  13. package/build/esm/adapters.js +1 -1
  14. package/build/esm/babyGrowth.js +5 -5
  15. package/build/esm/cache.js +1 -1
  16. package/build/esm/care.js +1 -1
  17. package/build/esm/components/navigationV2/hooks/useNavConfig.d.ts +1 -3
  18. package/build/esm/components.js +1 -1
  19. package/build/esm/{constants-6ecfa77c.js → constants-046883ea.js} +1 -1
  20. package/build/esm/{constants-f7c80032.js → constants-1e65de37.js} +1 -1
  21. package/build/esm/constants.js +1 -1
  22. package/build/esm/{core-80112758.js → core-7a237cdc.js} +1 -1
  23. package/build/esm/{dataTransform-0fa341bb.js → dataTransform-f4476a6b.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-e095ea8b.js +1 -0
  28. package/build/esm/{getSocialList-4e48deba.js → getSocialList-5f74d2b2.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-ce3d38fd.js → index-006bca17.js} +1 -1
  33. package/build/esm/{index-13e62563.js → index-068a9606.js} +2 -2
  34. package/build/esm/{index-823fd7c0.js → index-318d4230.js} +1 -1
  35. package/build/esm/{index-9e5956c2.js → index-39174b30.js} +1 -1
  36. package/build/esm/{index-3452fed2.js → index-3bfcc95c.js} +1 -1
  37. package/build/esm/{index-3aff939b.js → index-3c612859.js} +1 -1
  38. package/build/esm/{index-5408f5a4.js → index-4004c359.js} +1 -1
  39. package/build/esm/{index-f9514788.js → index-41f67971.js} +5 -5
  40. package/build/esm/{index-fd04ccb7.js → index-42a8c7e8.js} +3 -3
  41. package/build/esm/{index-9c7b9011.js → index-461eded2.js} +1 -1
  42. package/build/esm/index-575f65cb.js +1 -0
  43. package/build/esm/{index-13dc1f44.js → index-7f4008ff.js} +1 -1
  44. package/build/esm/{index-a83aad1c.js → index-81dbde00.js} +13 -13
  45. package/build/esm/{index-d27a0e25.js → index-99348fe5.js} +1 -1
  46. package/build/esm/index-9b8a2194.js +1 -0
  47. package/build/esm/{index-93e5b4f3.js → index-9d529405.js} +1 -1
  48. package/build/esm/index-a445a873.js +1 -0
  49. package/build/esm/index-ab99f4fa.js +1 -0
  50. package/build/esm/{index-45dcd965.js → index-b7782e6c.js} +1 -1
  51. package/build/esm/{index-bf11f9e9.js → index-b7a87c5c.js} +4 -4
  52. package/build/esm/{index-5e1af23a.js → index-c737fbcc.js} +1 -1
  53. package/build/esm/index-dfe2918d.js +1 -0
  54. package/build/esm/{index-79ef3a30.js → index-e7dea007.js} +1 -1
  55. package/build/esm/{index-2e99f941.js → index-eab0e39a.js} +1 -1
  56. package/build/esm/{index-252cb964.js → index-fa743e14.js} +1 -1
  57. package/build/esm/index.js +1 -1
  58. package/build/esm/{index.styled-14b65c9e.js → index.styled-ac7ac0fc.js} +3 -3
  59. package/build/esm/{index.styles-94af560f.js → index.styles-d0b249c6.js} +1 -1
  60. package/build/esm/lead.js +1 -1
  61. package/build/esm/mantine.js +1 -1
  62. package/build/esm/misc.js +1 -1
  63. package/build/esm/navigation.js +1 -1
  64. package/build/esm/onboardingV2.js +1 -1
  65. package/build/esm/pwg.js +5 -5
  66. package/build/esm/{routing-2b284b30.js → routing-c85cbf05.js} +1 -1
  67. package/build/esm/subot.js +1 -1
  68. package/build/esm/together.js +1 -1
  69. package/build/esm/{types-6d397125.js → types-2d76a291.js} +1 -1
  70. package/build/esm/{types-850814a7.js → types-e02aa1d1.js} +1 -1
  71. package/build/esm/types.js +1 -1
  72. package/build/esm/{useCategory-f5f74749.js → useCategory-16048c77.js} +1 -1
  73. package/build/esm/useHealthToolCache-b2ecca8b.js +1 -0
  74. package/build/esm/usePlacesAutocomplete-1966a8e8.js +1 -0
  75. package/build/esm/{useTranslations-df1b3bb8.js → useTranslations-06f29a74.js} +1 -1
  76. package/build/esm/{utils-970ce0c0.js → utils-581f9d39.js} +1 -1
  77. package/build/esm/{utils-3d2e3f0f.js → utils-8845cf64.js} +1 -1
  78. package/build/esm/{utils-b87ec473.js → utils-9188a853.js} +1 -1
  79. package/build/esm/vaccination.js +1 -1
  80. package/build/footer.js +1 -1
  81. package/build/gAssets.js +1 -1
  82. package/build/getDynamicHealthTool-110fd918.js +1 -0
  83. package/build/{getSocialList-29c0a6e8.js → getSocialList-eca125e9.js} +1 -1
  84. package/build/hooks.js +1 -1
  85. package/build/i18n.js +1 -1
  86. package/build/i18nV2.js +1 -1
  87. package/build/{index-e7c1ff53.js → index-06e0154a.js} +2 -2
  88. package/build/{index-b21a1d96.js → index-07abd94a.js} +1 -1
  89. package/build/{index-9a845847.js → index-0c773078.js} +1 -1
  90. package/build/{index-bf81cb71.js → index-170f5567.js} +1 -1
  91. package/build/index-19ccb0c7.js +1 -0
  92. package/build/index-219cacd2.js +1 -0
  93. package/build/{index-41d684a8.js → index-2c0386df.js} +1 -1
  94. package/build/{index-90f4bc02.js → index-2ce34495.js} +1 -1
  95. package/build/{index-b320255d.js → index-3f31aa06.js} +1 -1
  96. package/build/{index-4a8c8ce6.js → index-686fe563.js} +1 -1
  97. package/build/{index-238813a4.js → index-76c307b4.js} +1 -1
  98. package/build/{index-c3cbb8f3.js → index-78e20b2b.js} +1 -1
  99. package/build/{index-35192783.js → index-853a455f.js} +1 -1
  100. package/build/{index-64d2f812.js → index-9834ba3a.js} +1 -1
  101. package/build/{index-9ed509d1.js → index-9c1259e4.js} +1 -1
  102. package/build/{index-f7088d57.js → index-9eed92e6.js} +1 -1
  103. package/build/{index-29d302f4.js → index-a046b313.js} +2 -2
  104. package/build/{index-85c621a2.js → index-ae78fa34.js} +1 -1
  105. package/build/{index-3184ae4e.js → index-c4552011.js} +1 -1
  106. package/build/{index-d25afe2f.js → index-d0a7d5e2.js} +1 -1
  107. package/build/{index-ad5cf64d.js → index-d59720e6.js} +1 -1
  108. package/build/{index-bd4b31bf.js → index-e363ea7e.js} +1 -1
  109. package/build/{index-1714c81c.js → index-e4952f3b.js} +18 -18
  110. package/build/{index-2438163d.js → index-e9919dca.js} +12 -12
  111. package/build/{index-aa495d24.js → index-f124e061.js} +1 -1
  112. package/build/index.js +1 -1
  113. package/build/{index.styled-0a1fb891.js → index.styled-625bfdc7.js} +1 -1
  114. package/build/{index.styles-2ecb9c85.js → index.styles-e56f16e2.js} +1 -1
  115. package/build/lead.js +1 -1
  116. package/build/mantine.js +1 -1
  117. package/build/misc.js +1 -1
  118. package/build/navigation.js +1 -1
  119. package/build/onboardingV2.js +1 -1
  120. package/build/pwg.js +3 -3
  121. package/build/{routing-f2edd0d0.js → routing-fa35242c.js} +1 -1
  122. package/build/subot.js +1 -1
  123. package/build/together.js +1 -1
  124. package/build/{types-49f0543a.js → types-006c0884.js} +1 -1
  125. package/build/{types-bfd12e24.js → types-48100068.js} +1 -1
  126. package/build/types.js +1 -1
  127. package/build/{useCategory-94d60dab.js → useCategory-5efbe937.js} +1 -1
  128. package/build/useHealthToolCache-4085d047.js +1 -0
  129. package/build/{usePlacesAutocomplete-6ab0181b.js → usePlacesAutocomplete-fa0acdc7.js} +1 -1
  130. package/build/{useTranslations-233c68bc.js → useTranslations-d91f297f.js} +1 -1
  131. package/build/{utils-13ea4f2f.js → utils-6c4e6bc4.js} +2 -2
  132. package/build/{utils-bee8be92.js → utils-dd2fab54.js} +2 -2
  133. package/build/utils-fade3897.js +1 -0
  134. package/build/vaccination.js +1 -1
  135. package/package.json +1 -1
  136. package/build/esm/getDynamicHealthTool-a4c9d6dd.js +0 -1
  137. package/build/esm/index-24557f2b.js +0 -1
  138. package/build/esm/index-459e0362.js +0 -1
  139. package/build/esm/index-486b71cd.js +0 -1
  140. package/build/esm/index-7c77273a.js +0 -1
  141. package/build/esm/index-b7cc3ca2.js +0 -1
  142. package/build/esm/useHealthToolCache-f1488032.js +0 -1
  143. package/build/esm/usePlacesAutocomplete-0733ec49.js +0 -1
  144. package/build/getDynamicHealthTool-31f44ca1.js +0 -1
  145. package/build/index-b9af15da.js +0 -1
  146. package/build/index-f6217f73.js +0 -1
  147. package/build/useHealthToolCache-7307d240.js +0 -1
  148. package/build/utils-d5766c73.js +0 -1
  149. /package/build/{BMI_BOYS.percentile.monthly-c56b0165.js → BMI_BOYS.percentile.monthly-8cc875f7.js} +0 -0
  150. /package/build/{BMI_BOYS.percentile.weekly-64287e04.js → BMI_BOYS.percentile.weekly-b45b05e3.js} +0 -0
  151. /package/build/{BMI_BOYS.percentile.yearly-8db65d54.js → BMI_BOYS.percentile.yearly-e4f1d19c.js} +0 -0
  152. /package/build/{BMI_BOYS.zscore.monthly-f12389cd.js → BMI_BOYS.zscore.monthly-e51737eb.js} +0 -0
  153. /package/build/{BMI_BOYS.zscore.weekly-fff37a57.js → BMI_BOYS.zscore.weekly-4080c0d5.js} +0 -0
  154. /package/build/{BMI_BOYS.zscore.yearly-a19b57eb.js → BMI_BOYS.zscore.yearly-703e5747.js} +0 -0
  155. /package/build/{BMI_GIRLS.percentile.monthly-a4b36d7d.js → BMI_GIRLS.percentile.monthly-ac5a001d.js} +0 -0
  156. /package/build/{BMI_GIRLS.percentile.weekly-b6089202.js → BMI_GIRLS.percentile.weekly-6a6f4703.js} +0 -0
  157. /package/build/{BMI_GIRLS.percentile.yearly-0d340818.js → BMI_GIRLS.percentile.yearly-8eb7e8e5.js} +0 -0
  158. /package/build/{BMI_GIRLS.zscore.monthly-fd5b57c0.js → BMI_GIRLS.zscore.monthly-c2763465.js} +0 -0
  159. /package/build/{BMI_GIRLS.zscore.weekly-d4577f50.js → BMI_GIRLS.zscore.weekly-7438d8b6.js} +0 -0
  160. /package/build/{BMI_GIRLS.zscore.yearly-e40b8a7d.js → BMI_GIRLS.zscore.yearly-a56ffb0c.js} +0 -0
  161. /package/build/{ChevronDown-602ce39e.js → ChevronDown-81b50697.js} +0 -0
  162. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2e4c5776.js → HEAD CIRCUM_BOYS.percentile.monthly-cccf9306.js} +0 -0
  163. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-fc5728a5.js → HEAD CIRCUM_BOYS.percentile.weekly-85fc8a7e.js} +0 -0
  164. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-6bfab277.js → HEAD CIRCUM_BOYS.percentile.yearly-d22ad913.js} +0 -0
  165. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-6af7ce44.js → HEAD CIRCUM_BOYS.zscore.monthly-4db20906.js} +0 -0
  166. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9adb819b.js → HEAD CIRCUM_BOYS.zscore.weekly-1a4dc975.js} +0 -0
  167. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-9a6cdbcf.js → HEAD CIRCUM_BOYS.zscore.yearly-a2bcdd3a.js} +0 -0
  168. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e7bfe9c6.js → HEAD CIRCUM_GIRLS.percentile.monthly-13e127f5.js} +0 -0
  169. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-9f17e019.js → HEAD CIRCUM_GIRLS.percentile.weekly-95a7695c.js} +0 -0
  170. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-8a59f541.js → HEAD CIRCUM_GIRLS.percentile.yearly-852dc893.js} +0 -0
  171. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-b7ddb16c.js → HEAD CIRCUM_GIRLS.zscore.monthly-9865857d.js} +0 -0
  172. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-72701c55.js → HEAD CIRCUM_GIRLS.zscore.weekly-9bdf4dda.js} +0 -0
  173. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-dd94bded.js → HEAD CIRCUM_GIRLS.zscore.yearly-ac24fb2f.js} +0 -0
  174. /package/build/{HEIGHT_BOYS.percentile.monthly-b890068c.js → HEIGHT_BOYS.percentile.monthly-691b0568.js} +0 -0
  175. /package/build/{HEIGHT_BOYS.percentile.weekly-a1aa5130.js → HEIGHT_BOYS.percentile.weekly-520bd6ac.js} +0 -0
  176. /package/build/{HEIGHT_BOYS.percentile.yearly-5727d920.js → HEIGHT_BOYS.percentile.yearly-9093722e.js} +0 -0
  177. /package/build/{HEIGHT_BOYS.zscore.monthly-13b70aa6.js → HEIGHT_BOYS.zscore.monthly-84db220e.js} +0 -0
  178. /package/build/{HEIGHT_BOYS.zscore.weekly-3e1d7f23.js → HEIGHT_BOYS.zscore.weekly-ce0c52d1.js} +0 -0
  179. /package/build/{HEIGHT_BOYS.zscore.yearly-a956102d.js → HEIGHT_BOYS.zscore.yearly-dab7d4e0.js} +0 -0
  180. /package/build/{HEIGHT_GIRLS.percentile.monthly-da5ec01b.js → HEIGHT_GIRLS.percentile.monthly-7f42e4cd.js} +0 -0
  181. /package/build/{HEIGHT_GIRLS.percentile.weekly-e6205d32.js → HEIGHT_GIRLS.percentile.weekly-79ca42e5.js} +0 -0
  182. /package/build/{HEIGHT_GIRLS.percentile.yearly-caefa502.js → HEIGHT_GIRLS.percentile.yearly-4e11d0f8.js} +0 -0
  183. /package/build/{HEIGHT_GIRLS.zscore.monthly-102ba473.js → HEIGHT_GIRLS.zscore.monthly-74be7929.js} +0 -0
  184. /package/build/{HEIGHT_GIRLS.zscore.weekly-db4f710b.js → HEIGHT_GIRLS.zscore.weekly-a47a1d90.js} +0 -0
  185. /package/build/{HEIGHT_GIRLS.zscore.yearly-36465920.js → HEIGHT_GIRLS.zscore.yearly-f4984496.js} +0 -0
  186. /package/build/{Subot-4751194d.js → Subot-b0700a95.js} +0 -0
  187. /package/build/{Visible-9497c463.js → Visible-0267024a.js} +0 -0
  188. /package/build/{WEIGHT_BOYS.percentile.monthly-554d0361.js → WEIGHT_BOYS.percentile.monthly-08b33be0.js} +0 -0
  189. /package/build/{WEIGHT_BOYS.percentile.weekly-8e5334b8.js → WEIGHT_BOYS.percentile.weekly-65a4fa70.js} +0 -0
  190. /package/build/{WEIGHT_BOYS.percentile.yearly-536e1ccb.js → WEIGHT_BOYS.percentile.yearly-f3b46cc5.js} +0 -0
  191. /package/build/{WEIGHT_BOYS.zscore.monthly-01eccee1.js → WEIGHT_BOYS.zscore.monthly-d1191a6a.js} +0 -0
  192. /package/build/{WEIGHT_BOYS.zscore.weekly-ee8f2c6b.js → WEIGHT_BOYS.zscore.weekly-61c60cf9.js} +0 -0
  193. /package/build/{WEIGHT_BOYS.zscore.yearly-0aea2749.js → WEIGHT_BOYS.zscore.yearly-0d89c866.js} +0 -0
  194. /package/build/{WEIGHT_GIRLS.percentile.monthly-7abf9d06.js → WEIGHT_GIRLS.percentile.monthly-221c1ba4.js} +0 -0
  195. /package/build/{WEIGHT_GIRLS.percentile.weekly-f9b6e963.js → WEIGHT_GIRLS.percentile.weekly-fbd203a6.js} +0 -0
  196. /package/build/{WEIGHT_GIRLS.percentile.yearly-254865a5.js → WEIGHT_GIRLS.percentile.yearly-36a909c2.js} +0 -0
  197. /package/build/{WEIGHT_GIRLS.zscore.monthly-909f7417.js → WEIGHT_GIRLS.zscore.monthly-09b6ae5b.js} +0 -0
  198. /package/build/{WEIGHT_GIRLS.zscore.weekly-e62cd084.js → WEIGHT_GIRLS.zscore.weekly-7ada849a.js} +0 -0
  199. /package/build/{WEIGHT_GIRLS.zscore.yearly-8d6e5405.js → WEIGHT_GIRLS.zscore.yearly-5115a509.js} +0 -0
  200. /package/build/{animation-d5d9ef32.js → animation-ea278d9a.js} +0 -0
  201. /package/build/{cookieHelper-7d519a72.js → cookieHelper-effc4373.js} +0 -0
  202. /package/build/esm/{BMI_BOYS.percentile.monthly-6272f835.js → BMI_BOYS.percentile.monthly-2aa26d5a.js} +0 -0
  203. /package/build/esm/{BMI_BOYS.percentile.weekly-80d18f47.js → BMI_BOYS.percentile.weekly-838f6b27.js} +0 -0
  204. /package/build/esm/{BMI_BOYS.percentile.yearly-a7e5b5f6.js → BMI_BOYS.percentile.yearly-e77609d7.js} +0 -0
  205. /package/build/esm/{BMI_BOYS.zscore.monthly-d3658f97.js → BMI_BOYS.zscore.monthly-2657168d.js} +0 -0
  206. /package/build/esm/{BMI_BOYS.zscore.weekly-6e6708dc.js → BMI_BOYS.zscore.weekly-d3c18887.js} +0 -0
  207. /package/build/esm/{BMI_BOYS.zscore.yearly-b8400c9d.js → BMI_BOYS.zscore.yearly-3759a54e.js} +0 -0
  208. /package/build/esm/{BMI_GIRLS.percentile.monthly-98586b46.js → BMI_GIRLS.percentile.monthly-f3e35273.js} +0 -0
  209. /package/build/esm/{BMI_GIRLS.percentile.weekly-7c1511b0.js → BMI_GIRLS.percentile.weekly-7936ee97.js} +0 -0
  210. /package/build/esm/{BMI_GIRLS.percentile.yearly-ea667f90.js → BMI_GIRLS.percentile.yearly-757b0bc4.js} +0 -0
  211. /package/build/esm/{BMI_GIRLS.zscore.monthly-3a4fd1a6.js → BMI_GIRLS.zscore.monthly-d9760b61.js} +0 -0
  212. /package/build/esm/{BMI_GIRLS.zscore.weekly-cc1de097.js → BMI_GIRLS.zscore.weekly-a58e0db1.js} +0 -0
  213. /package/build/esm/{BMI_GIRLS.zscore.yearly-6dd1a364.js → BMI_GIRLS.zscore.yearly-92413c27.js} +0 -0
  214. /package/build/esm/{ChevronDown-4e59cac6.js → ChevronDown-e7d44dc3.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-bd0965ae.js → HEAD CIRCUM_BOYS.percentile.monthly-c50f125e.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-db1053f7.js → HEAD CIRCUM_BOYS.percentile.weekly-29038598.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-cd38b622.js → HEAD CIRCUM_BOYS.percentile.yearly-32c4e2be.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d7f88a95.js → HEAD CIRCUM_BOYS.zscore.monthly-cd04e4b1.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-76f7db79.js → HEAD CIRCUM_BOYS.zscore.weekly-6b63745c.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-3ce70f8e.js → HEAD CIRCUM_BOYS.zscore.yearly-3a5be78c.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b2e678ae.js → HEAD CIRCUM_GIRLS.percentile.monthly-c7996a02.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-8e2664bb.js → HEAD CIRCUM_GIRLS.percentile.weekly-553c94d5.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f5c075a9.js → HEAD CIRCUM_GIRLS.percentile.yearly-97f86688.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-6f87849e.js → HEAD CIRCUM_GIRLS.zscore.monthly-a442f7cc.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-48da0aaa.js → HEAD CIRCUM_GIRLS.zscore.weekly-cdd37afd.js} +0 -0
  226. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-4eea437b.js → HEAD CIRCUM_GIRLS.zscore.yearly-50d9daff.js} +0 -0
  227. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-d1a8cc8e.js → HEIGHT_BOYS.percentile.monthly-53580c1f.js} +0 -0
  228. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-2b6cfe6c.js → HEIGHT_BOYS.percentile.weekly-60514fb8.js} +0 -0
  229. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9e78afc3.js → HEIGHT_BOYS.percentile.yearly-d6b456a7.js} +0 -0
  230. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5292d78a.js → HEIGHT_BOYS.zscore.monthly-21bd1444.js} +0 -0
  231. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-fbdee645.js → HEIGHT_BOYS.zscore.weekly-2a4e7aa0.js} +0 -0
  232. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-c11a8f1b.js → HEIGHT_BOYS.zscore.yearly-7f68c522.js} +0 -0
  233. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8e11e2dc.js → HEIGHT_GIRLS.percentile.monthly-d5d7448a.js} +0 -0
  234. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-dc3965cb.js → HEIGHT_GIRLS.percentile.weekly-c3c18801.js} +0 -0
  235. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-490f7b4e.js → HEIGHT_GIRLS.percentile.yearly-3491901c.js} +0 -0
  236. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-e3531c32.js → HEIGHT_GIRLS.zscore.monthly-9f15dd03.js} +0 -0
  237. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-36a16a66.js → HEIGHT_GIRLS.zscore.weekly-81319284.js} +0 -0
  238. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-61736bba.js → HEIGHT_GIRLS.zscore.yearly-8a7db57c.js} +0 -0
  239. /package/build/esm/{Subot-4642c5bf.js → Subot-fcd7c77c.js} +0 -0
  240. /package/build/esm/{Visible-ff7d225c.js → Visible-66d0e6f3.js} +0 -0
  241. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-0cfe7ecd.js → WEIGHT_BOYS.percentile.monthly-0f5ea175.js} +0 -0
  242. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-89802113.js → WEIGHT_BOYS.percentile.weekly-88f50098.js} +0 -0
  243. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-0eb40972.js → WEIGHT_BOYS.percentile.yearly-63383bc3.js} +0 -0
  244. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-7f8c5a15.js → WEIGHT_BOYS.zscore.monthly-bf93eec1.js} +0 -0
  245. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-3dcfa8ce.js → WEIGHT_BOYS.zscore.weekly-fe0600be.js} +0 -0
  246. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-98ce1ea0.js → WEIGHT_BOYS.zscore.yearly-4212bebb.js} +0 -0
  247. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-df98e335.js → WEIGHT_GIRLS.percentile.monthly-6cc8cf8c.js} +0 -0
  248. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-63fff42a.js → WEIGHT_GIRLS.percentile.weekly-05d66e6d.js} +0 -0
  249. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8db8cdd0.js → WEIGHT_GIRLS.percentile.yearly-b8c1af06.js} +0 -0
  250. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-15c83c6d.js → WEIGHT_GIRLS.zscore.monthly-8c9195d5.js} +0 -0
  251. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-747a55ec.js → WEIGHT_GIRLS.zscore.weekly-4ef9aeee.js} +0 -0
  252. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-197dc52d.js → WEIGHT_GIRLS.zscore.yearly-0ccaeb51.js} +0 -0
  253. /package/build/esm/{animation-0340efb3.js → animation-a158bfd1.js} +0 -0
  254. /package/build/esm/{cookieHelper-4f089e3c.js → cookieHelper-e37e6893.js} +0 -0
  255. /package/build/esm/{index-1e7ad007.js → index-0d0e5f45.js} +0 -0
  256. /package/build/esm/{index-8c77d7e0.js → index-1e29d7b0.js} +0 -0
  257. /package/build/esm/{index-e21276e3.js → index-2b572b4f.js} +0 -0
  258. /package/build/esm/{isProduction-00695d80.js → isProduction-819e0c5c.js} +0 -0
  259. /package/build/esm/{localizeNumberFormat-8355a44f.js → localizeNumberFormat-87b8adfd.js} +0 -0
  260. /package/build/esm/{normalizeLink-1c194268.js → normalizeLink-86ab5a4c.js} +0 -0
  261. /package/build/esm/{number-1347eb7b.js → number-087a7e5f.js} +0 -0
  262. /package/build/esm/{paths-749b4b53.js → paths-838a5528.js} +0 -0
  263. /package/build/esm/{theme-3db3c9a8.js → theme-691eca44.js} +0 -0
  264. /package/build/esm/{translationsContext-6d2efd65.js → translationsContext-f8842fe7.js} +0 -0
  265. /package/build/esm/{tslib.es6-266309d1.js → tslib.es6-1ab8a2bb.js} +0 -0
  266. /package/build/esm/{types-d3da37d2.js → types-81267cf7.js} +0 -0
  267. /package/build/esm/{useIsInit-9661c5f5.js → useIsInit-c9c6a218.js} +0 -0
  268. /package/build/esm/{useOutsideClick-0704b383.js → useOutsideClick-9787ba70.js} +0 -0
  269. /package/build/esm/{useScrollbarSize-90b179a5.js → useScrollbarSize-2cadb783.js} +0 -0
  270. /package/build/esm/{useUniqueId-03fbaecd.js → useUniqueId-8d28d0f0.js} +0 -0
  271. /package/build/esm/{utils-5b4e60da.js → utils-21a3e198.js} +0 -0
  272. /package/build/{index-ed8656f9.js → index-6c8c7fa5.js} +0 -0
  273. /package/build/{index-58e0d49f.js → index-de63ce4e.js} +0 -0
  274. /package/build/{index-34b6bd24.js → index-fc3d21c5.js} +0 -0
  275. /package/build/{isProduction-28d96804.js → isProduction-b8d43f53.js} +0 -0
  276. /package/build/{localizeNumberFormat-22b2d7aa.js → localizeNumberFormat-7b0e4009.js} +0 -0
  277. /package/build/{normalizeLink-594ccff1.js → normalizeLink-eb3980aa.js} +0 -0
  278. /package/build/{number-cf06dcc0.js → number-03c2dc35.js} +0 -0
  279. /package/build/{paths-ed72ecb8.js → paths-38b399e5.js} +0 -0
  280. /package/build/{theme-f2b8aad7.js → theme-58404344.js} +0 -0
  281. /package/build/{translationsContext-4c4c33c4.js → translationsContext-6a4e467c.js} +0 -0
  282. /package/build/{tslib.es6-ceb091fd.js → tslib.es6-f82cfdbc.js} +0 -0
  283. /package/build/{types-5b303b71.js → types-b4886ab8.js} +0 -0
  284. /package/build/{useIsInit-c3cf1925.js → useIsInit-cde99e17.js} +0 -0
  285. /package/build/{useOutsideClick-15fef824.js → useOutsideClick-8d455bb1.js} +0 -0
  286. /package/build/{useScrollbarSize-ab332673.js → useScrollbarSize-3593573d.js} +0 -0
  287. /package/build/{useUniqueId-46834e18.js → useUniqueId-76286c45.js} +0 -0
  288. /package/build/{utils-45e691a3.js → utils-e1f42597.js} +0 -0
package/build/subot.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Subot-4751194d.js"),i=require("./tslib.es6-ceb091fd.js"),n=require("./index-90f4bc02.js"),o=require("js-cookie"),a=require("fastdom"),l=require("fastdom/extensions/fastdom-promised"),r=require("string-format"),s=require("./utils-13ea4f2f.js"),d=require("uuid"),c=require("./isProduction-28d96804.js"),u=require("hex-rgb"),m=require("classnames"),p=require("./index-34b6bd24.js"),f=require("./index-238813a4.js"),v=require("framer-motion"),g=require("./utils-45e691a3.js"),b=require("styled-components"),h=require("./index-85c621a2.js"),_=require("remarkable"),y=require("@hhgtech/icons/other"),E=require("react-intersection-observer"),x=require("@mantine/core"),N=require("./index-aa495d24.js"),T=require("dayjs"),w=require("dayjs/plugin/isSameOrBefore"),I=require("./index-b320255d.js"),S=require("./theme-f2b8aad7.js");require("@mantine/dates"),require("./translationsContext-4c4c33c4.js"),require("@mantine/hooks");var O=require("lodash/isEmpty"),k=require("react-hook-form"),C=require("react-phone-number-input"),M=require("@react-google-maps/api"),A=require("./usePlacesAutocomplete-6ab0181b.js"),P=require("./index-29d302f4.js"),R=require("./index-ad5cf64d.js");function U(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("date-fns/locale"),require("./cookieHelper-7d519a72.js"),require("slugify"),require("./index-64d2f812.js"),require("./useTranslations-233c68bc.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("@mantine/carousel"),require("./useUniqueId-46834e18.js"),require("@hhgtech/icons/core");var B=U(e),L=U(o),j=U(a),D=U(l),q=U(r),F=U(u),$=U(m),G=U(b),z=U(T),H=U(w),Y=U(O),V=U(C);const Q=j.default.extend(D.default),K={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}"},W={cached:{},clearCached:e=>{console.log(W.cached),Object.keys(W.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),W.cached[e]=void 0}))},withCached:(e,t)=>i.__awaiter(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===W.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof W.cached[e]&&(t(W.cached[e]),clearInterval(n))}),100)}));if("object"==typeof W.cached[e])return W.cached[e];W.cached[e]="waitingTheFirstResponse";try{const i=yield t();return W.cached[e]=i,setTimeout((()=>{W.cached[e]=void 0}),18e5),i}catch(t){return W.cached[e]=void 0,Promise.reject(t)}}))},X=(e,t)=>{const{subotApiUrl:i}=null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+q.default(e,Object.assign({},t))},J=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Z=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},ee=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield W.withCached("SubotInlineFirstNode/"+e,(()=>i.__awaiter(void 0,void 0,void 0,(function*(){const t=yield s.callApi(X(K.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Z(t),t}))))}catch(e){return null}})),te=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),ie=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),ne=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],oe=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...ne],ae=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(oe.includes(i))if(ne.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),le=e=>[{id:d.v4(),label:JSON.stringify({title:"",description:""}),type:t.NodeIntentType.SSO_INTENT,url:""},{id:d.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:d.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:d.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/shield.svg"}];function re(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 se=e=>s.cookie.parse(e||"")["hhg-id"]||L.default.get("hhg-id")||"",de=e=>{if(e)return L.default.set("hhg-id",e),e;const t=se();if(t)return t;const i=d.v4();return L.default.set("hhg-id",i),i},ce=e=>{const t=s.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";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""}},ue=e=>{const t=s.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";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}}},me=d.v4(),pe=()=>me,fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${c.isProduction?"":"discover."}${n.domainLocales[e]}`,ve=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)))},ge=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},be=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},he=(e,i,n,o)=>{const a=be(e[0]);if(!i)return{};const l=e.findIndex((e=>e.id==i)),r=e.reduce(((e,r,s)=>{var d,c;if(s>l)return e;const u=r,m=n&&u.id===i?{action_id:n}:u._message;let p=0;const f=null===(d=u.actions)||void 0===d?void 0:d.find((e=>e.id===(null==m?void 0:m.action_id)));p+=(null==f?void 0:f.score)||0;const v=void 0!==a[u.id],g=n&&u.id===i?o:null==m?void 0:m.form_submit_meta;if(v&&u.type===t.NodeType.FORM&&g){const e=a[u.id].action_id,t=null===(c=u.actions)||void 0===c?void 0:c.find((t=>t.id===e)),i=null==t?void 0:t.key,n=g.find((e=>e.key===i&&"number"===e.control));if(a[u.id].number&&["+","-","x","/"].includes(a[u.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=a[u.id].operator,i=a[u.id].number;let o=0;"+"===t&&(o=e+i),"-"===t&&(o=e-i),"x"===t&&(o=e*i),"/"===t&&(o=e/i),isNaN(o)||(p+=o)}}return e+p}),0);return{current_total_dynamic_score:r}},_e=(e,i)=>{const n=be(i[0]);if(0===Object.keys(n).length)return e;const o=i.filter((e=>e.type===t.NodeType.FORM));return Object.keys(n).forEach((t=>{var i,a,l;const r=o.find((e=>e.id===t)),s=null===(i=null==r?void 0:r.actions)||void 0===i?void 0:i.find((e=>{var i;return e.id===(null===(i=n[t])||void 0===i?void 0:i.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(n[t].number&&["+","-","x","/"].includes(n[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const i=Number(c.value),o=n[t].operator,a=n[t].number;let l=0;if("+"===o&&(l=i+a),"-"===o&&(l=i-a),"x"===o&&(l=i*a),"/"===o&&(l=i/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},ye="other",Ee="stateInlineSSO",xe=()=>{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{}}},Ne=e=>{const i=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,i)=>{var n,o,a,l,r,s,d,c,u,m,p,f,v,g,b,h,_,y,E,x,N;if(i.actions&&(null===(n=i._message)||void 0===n?void 0:n.action_id)&&(null===(o=i._message)||void 0===o?void 0:o.action_value)){const n=i._message.action_value;if(i.type===t.NodeType.FORM){const t=["address","province","district","commune"],n=((null===(a=i._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>!t.includes(e.control))),o=((null===(l=i._message)||void 0===l?void 0:l.form_submit_meta)||[]).filter((e=>t.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(r=o.address)||void 0===r?void 0:r.value,null===(s=o.commune)||void 0===s?void 0:s.value,null===(d=o.district)||void 0===d?void 0:d.value,null===(c=o.province)||void 0===c?void 0:c.value].filter(Boolean).join(", ");p&&o.address?e.push({attribute:o.address.key,value:p,label_question:(null===(m=null===(u=i.intents)||void 0===u?void 0:u[0])||void 0===m?void 0:m.label)||""}):n.forEach((t=>{var n,o;e.push({attribute:t.key,value:t.value,label_question:(null===(o=null===(n=i.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(i.type===t.NodeType.TEXT)if(i.is_multi_select){const t=Object.keys(i._message.selected_actions||{}),n=i.actions.filter((e=>e.label&&t.includes(e.id))).map((e=>e.label));t.length&&e.push({attribute:i.actions[0].key||"",value:n,label_question:(null===(f=null===(p=i.intents)||void 0===p?void 0:p[0])||void 0===f?void 0:f.label)||""})}else{const o=i._message.action_id,a=i.actions.find((e=>e.id===o)),l=null==a?void 0:a.label,r=null===(b=null===(g=null===(v=i._message)||void 0===v?void 0:v.form_submit_meta)||void 0===g?void 0:g.find((e=>e.key===ye)))||void 0===b?void 0:b.value,s=(null==a?void 0:a.type)===t.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;l&&o&&e.push({attribute:n,value:s&&r?r:l,label_question:(null===(_=null===(h=i.intents)||void 0===h?void 0:h[0])||void 0===_?void 0:_.label)||""})}if(i.type===t.NodeType.POLL){const t=i.id,n=(null===(E=null===(y=i._message)||void 0===y?void 0:y.current_polls)||void 0===E?void 0:E[t])||[],o=i.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:i.actions[0].key||"",value:o,label_question:(null===(N=null===(x=i.intents)||void 0===x?void 0:x[0])||void 0===N?void 0:N.label)||""})}}return e}),[]);return i},Te=(e,i)=>{var n;try{if("ACUVUE"!==(null===(n=i.extra_settings)||void 0===n?void 0:n.subot_type))return;let o="",a="",l="",r=ue().email;if((e||[]).forEach((e=>{var i,n,s;const d=e._message;if(!d)return;const c=null===(i=e.actions)||void 0===i?void 0:i.find((e=>e.id===d.action_id));if("voucher_product"===d.action_value?o=(null==c?void 0:c.label)||"":"voucher_color"===d.action_value&&(a=(null==c?void 0:c.label)||""),e.type===t.NodeType.FORM){const e=null===(n=d.form_submit_meta)||void 0===n?void 0:n.find((e=>"voucher_size"===e.key)),t=null===(s=d.form_submit_meta)||void 0===s?void 0:s.find((e=>"email"===e.control));e&&(l=e.value),t&&(r=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===o&&r)return{email:r,voucherName:o};if(o&&a&&l&&r)return{email:r,voucherName:`${o}|${a}|${l}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},we=({nodes:e,activeId:o,params:a,accountIdFromLogs:l})=>i.__awaiter(void 0,void 0,void 0,(function*(){try{let i="in_progress";const r=e[e.length-1];(null==r?void 0:r.type)&&t.NodeFinalTypes.includes(r.type)&&(i="complete");const d=e.slice(1),c={activeId:o,params:a,nodes:d,tracking:Object.assign(Object.assign({},xe()),{full_url:window.location.href}),unifiedAnswers:Ne(d),voucherAnswers:Te(d,e[0])},u={cookie_id:de(),account_id:l||ce()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(c),status:i,type:"inline",market:n.MAP_DOMAIN_BY_LOCALE[s.locale]};yield s.callApi(X(K.POST_SUBOT_CREATE_LOG),"POST",{data:u})}catch(e){}})),Ie=(e,t)=>{try{const[i,n,o]=F.default(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},Se=e.createContext({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),Oe=({children:o,articleLink:a,subotId:l,isFullContainer:r,bgColor:d,primaryColor:c,textColor:u,textButtonColor:m,bgContentColor:p,bgImgFullContainer:f,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:_}}=e.useContext(s.TogetherComponentGlobalContext),y=e.useRef(null),E=e.useRef(null),[x,N]=e.useState(!0),[T,w]=e.useState(""),[I,S]=e.useState([]),[O,k]=e.useState(!1),[C,M]=e.useState({});e.useEffect((()=>{const e=d||"#e3f2ff",t=c||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(Q.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",Ie(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",Ie(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",Ie(t,.3)||"#bcdeff"),u&&o.style.setProperty("--subot-inline-text-color",u),m&&o.style.setProperty("--subot-inline-text-button-color",m),p&&o.style.setProperty("--subot-inline-bg-content-color",p)})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[d,c,u,m,p]);const A=e.useCallback((()=>{const e=window.gaData,t=window.location.origin+n.basePath+("tl-PH"===(null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.locale)?a.replace("fil/",""):a),i={bot_id:l,account_id:ce()||null,action_id:"",action_value:"",cookie_id:de(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:L.default.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:pe()};return ae(i,null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.router.query)}),[]),P=e.useCallback((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),R=e.useCallback(((e,n=!0)=>i.__awaiter(void 0,void 0,void 0,(function*(){var o;if(!e||!e.url||!e.bot_id)return;let a="",l=[];N(!0);const r=yield ee(e.bot_id);1===(null==r?void 0:r._status)&&(a=null==r?void 0:r._data.id.toString(),l.push(null==r?void 0:r._data,null==r?void 0:r._data.first_node));const d=n?yield(c=l[0],i.__awaiter(void 0,void 0,void 0,(function*(){var e,t;try{if(!c)return null;const i=yield s.callApi(X(K.GET_SUBOT_LOG,{botId:c.id,cookieId:de(),accountId:ce()||"",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:[c,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:ce()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var c;d&&(l=d.nodes,a=d.activeId,E.current=(null===(o=d.params)||void 0===o?void 0:o.account_id)||0);const u=((e,{getParams:i})=>{try{if(!ce())return null;const n=JSON.parse(localStorage.getItem(Ee)||""),o=18e5;return(null==n?void 0:n.botId)===e&&n.listNodes&&n.activeId&&n.createdAt+o>Date.now()&&(localStorage.removeItem(Ee),n.listNodes.slice(-1)[0].position===t.NodePosition.SSO)?{listNodes:n.listNodes,activeId:n.activeId,params:Object.assign(Object.assign(Object.assign({},i()),n.params),{account_id:ce()||null,cookie_id:de(n.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:A});if(u&&u.params.action_id&&u.params.action_value){const e=yield J(u.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(a=null==e?void 0:e._data.node.id,l=u.listNodes,l[l.length-1]=null==e?void 0:e._data.node,we({nodes:l,activeId:a,params:u.params,accountIdFromLogs:E.current}),setTimeout((()=>{P()}),100))}const m=(null==u?void 0:u.params)||(null==d?void 0:d.params)||e,[p,f]=((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]})(l[0],a,l);N(!1),w(p),S(f),M(Object.assign(Object.assign({},e),m))}))),[]),U=e.useCallback(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${l}"]`);i&&i.click();let n=T,o=[...I];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(N(!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((()=>{S(o),w(n),N(!1),we({nodes:o,activeId:n,params:C,accountIdFromLogs:E.current})}),250)}),[I,T]),j=e.useCallback((e=>i.__awaiter(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),he(I,T,e.action_id)),n=yield J(t);if(N(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:o}=e,a=i.__rest(e,["node"]),l=Object.assign(Object.assign({},o),{_message:Object.assign(Object.assign({},a),{node_id:o.id})});return void(-1!==I.findIndex((e=>e.id===l.id))?U(l):U(l,t))}_({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=I.find((e=>e.id==T));t&&t.hasOwnProperty("first_node")&&(w(I[1].id.toString()),we({nodes:I,activeId:I[1].id.toString(),params:A(),accountIdFromLogs:E.current}))}))),[U,I]),D=e.useCallback((()=>{const e=I.findIndex((({id:e})=>e==T));if(e&&-1!==e&&e>1){const t=I[e-1];w(t.id),we({nodes:I,activeId:t.id,params:C,accountIdFromLogs:E.current})}}),[I,T]),q=e.useCallback((()=>{const e=A();R(e,!1);const t=I[0],i=I[1];we({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[A,R,I]),F=e.useCallback((e=>{S((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==T?t.map((t=>{const i=t;return i.id===T?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[T]);e.useEffect((()=>{if(L.default.get(n.GA_TOKEN_COOKIE)){const e=A();R(e)}else re({condition:()=>Boolean(L.default.get(n.GA_TOKEN_COOKIE)),finished:()=>{const e=A();R(e)}})}),[]),e.useEffect((()=>{if(!I.length)return;I.find((e=>e.id==T))&&T||w(l+"")}),[T,I]);const $=e.useMemo((()=>({activeId:T,params:C,listNodes:I,loading:x,setLoading:N,getParams:A,onNext:j,onPrev:D,onSubmit:U,onStartOver:q,onChange:F,isShowFooter:O,setIsShowFooter:k,isFullContainer:r,bgImgFullContainer:f,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[T,j,D,U,F,q,O,C,I,x,N,A,r,v,g,b,f]);return I.length?B.default.createElement(Se.Provider,{value:$},B.default.createElement("div",{ref:y},o)):null},ke=e=>B.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),B.default.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"})),Ce="480px",Me=G.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Subot-b0700a95.js"),i=require("./tslib.es6-f82cfdbc.js"),n=require("./index-2ce34495.js"),o=require("js-cookie"),a=require("fastdom"),l=require("fastdom/extensions/fastdom-promised"),r=require("string-format"),s=require("./utils-6c4e6bc4.js"),d=require("uuid"),c=require("./isProduction-b8d43f53.js"),u=require("hex-rgb"),m=require("classnames"),p=require("./index-fc3d21c5.js"),f=require("./index-76c307b4.js"),v=require("framer-motion"),g=require("./utils-e1f42597.js"),b=require("styled-components"),h=require("./index-ae78fa34.js"),_=require("remarkable"),y=require("@hhgtech/icons/other"),E=require("react-intersection-observer"),x=require("@mantine/core"),N=require("./index-f124e061.js"),T=require("dayjs"),w=require("dayjs/plugin/isSameOrBefore"),I=require("./index-3f31aa06.js"),S=require("./theme-58404344.js");require("@mantine/dates"),require("./translationsContext-6a4e467c.js"),require("@mantine/hooks");var O=require("lodash/isEmpty"),k=require("react-hook-form"),C=require("react-phone-number-input"),M=require("@react-google-maps/api"),A=require("./usePlacesAutocomplete-fa0acdc7.js"),P=require("./index-a046b313.js"),R=require("./index-d59720e6.js");function U(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("date-fns/locale"),require("./cookieHelper-effc4373.js"),require("slugify"),require("./index-9834ba3a.js"),require("./useTranslations-d91f297f.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("@mantine/carousel"),require("./useUniqueId-76286c45.js"),require("@hhgtech/icons/core");var B=U(e),L=U(o),j=U(a),D=U(l),q=U(r),F=U(u),$=U(m),G=U(b),z=U(T),H=U(w),Y=U(O),V=U(C);const Q=j.default.extend(D.default),K={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}"},W={cached:{},clearCached:e=>{console.log(W.cached),Object.keys(W.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),W.cached[e]=void 0}))},withCached:(e,t)=>i.__awaiter(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===W.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof W.cached[e]&&(t(W.cached[e]),clearInterval(n))}),100)}));if("object"==typeof W.cached[e])return W.cached[e];W.cached[e]="waitingTheFirstResponse";try{const i=yield t();return W.cached[e]=i,setTimeout((()=>{W.cached[e]=void 0}),18e5),i}catch(t){return W.cached[e]=void 0,Promise.reject(t)}}))},X=(e,t)=>{const{subotApiUrl:i}=null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+q.default(e,Object.assign({},t))},J=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Z=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},ee=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield W.withCached("SubotInlineFirstNode/"+e,(()=>i.__awaiter(void 0,void 0,void 0,(function*(){const t=yield s.callApi(X(K.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Z(t),t}))))}catch(e){return null}})),te=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),ie=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),ne=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],oe=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...ne],ae=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(oe.includes(i))if(ne.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),le=e=>[{id:d.v4(),label:JSON.stringify({title:"",description:""}),type:t.NodeIntentType.SSO_INTENT,url:""},{id:d.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:d.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:d.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/shield.svg"}];function re(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 se=e=>s.cookie.parse(e||"")["hhg-id"]||L.default.get("hhg-id")||"",de=e=>{if(e)return L.default.set("hhg-id",e),e;const t=se();if(t)return t;const i=d.v4();return L.default.set("hhg-id",i),i},ce=e=>{const t=s.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";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""}},ue=e=>{const t=s.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";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}}},me=d.v4(),pe=()=>me,fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${c.isProduction?"":"discover."}${n.domainLocales[e]}`,ve=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)))},ge=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},be=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},he=(e,i,n,o)=>{const a=be(e[0]);if(!i)return{};const l=e.findIndex((e=>e.id==i)),r=e.reduce(((e,r,s)=>{var d,c;if(s>l)return e;const u=r,m=n&&u.id===i?{action_id:n}:u._message;let p=0;const f=null===(d=u.actions)||void 0===d?void 0:d.find((e=>e.id===(null==m?void 0:m.action_id)));p+=(null==f?void 0:f.score)||0;const v=void 0!==a[u.id],g=n&&u.id===i?o:null==m?void 0:m.form_submit_meta;if(v&&u.type===t.NodeType.FORM&&g){const e=a[u.id].action_id,t=null===(c=u.actions)||void 0===c?void 0:c.find((t=>t.id===e)),i=null==t?void 0:t.key,n=g.find((e=>e.key===i&&"number"===e.control));if(a[u.id].number&&["+","-","x","/"].includes(a[u.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=a[u.id].operator,i=a[u.id].number;let o=0;"+"===t&&(o=e+i),"-"===t&&(o=e-i),"x"===t&&(o=e*i),"/"===t&&(o=e/i),isNaN(o)||(p+=o)}}return e+p}),0);return{current_total_dynamic_score:r}},_e=(e,i)=>{const n=be(i[0]);if(0===Object.keys(n).length)return e;const o=i.filter((e=>e.type===t.NodeType.FORM));return Object.keys(n).forEach((t=>{var i,a,l;const r=o.find((e=>e.id===t)),s=null===(i=null==r?void 0:r.actions)||void 0===i?void 0:i.find((e=>{var i;return e.id===(null===(i=n[t])||void 0===i?void 0:i.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(n[t].number&&["+","-","x","/"].includes(n[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const i=Number(c.value),o=n[t].operator,a=n[t].number;let l=0;if("+"===o&&(l=i+a),"-"===o&&(l=i-a),"x"===o&&(l=i*a),"/"===o&&(l=i/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},ye="other",Ee="stateInlineSSO",xe=()=>{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{}}},Ne=e=>{const i=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,i)=>{var n,o,a,l,r,s,d,c,u,m,p,f,v,g,b,h,_,y,E,x,N;if(i.actions&&(null===(n=i._message)||void 0===n?void 0:n.action_id)&&(null===(o=i._message)||void 0===o?void 0:o.action_value)){const n=i._message.action_value;if(i.type===t.NodeType.FORM){const t=["address","province","district","commune"],n=((null===(a=i._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>!t.includes(e.control))),o=((null===(l=i._message)||void 0===l?void 0:l.form_submit_meta)||[]).filter((e=>t.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(r=o.address)||void 0===r?void 0:r.value,null===(s=o.commune)||void 0===s?void 0:s.value,null===(d=o.district)||void 0===d?void 0:d.value,null===(c=o.province)||void 0===c?void 0:c.value].filter(Boolean).join(", ");p&&o.address?e.push({attribute:o.address.key,value:p,label_question:(null===(m=null===(u=i.intents)||void 0===u?void 0:u[0])||void 0===m?void 0:m.label)||""}):n.forEach((t=>{var n,o;e.push({attribute:t.key,value:t.value,label_question:(null===(o=null===(n=i.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(i.type===t.NodeType.TEXT)if(i.is_multi_select){const t=Object.keys(i._message.selected_actions||{}),n=i.actions.filter((e=>e.label&&t.includes(e.id))).map((e=>e.label));t.length&&e.push({attribute:i.actions[0].key||"",value:n,label_question:(null===(f=null===(p=i.intents)||void 0===p?void 0:p[0])||void 0===f?void 0:f.label)||""})}else{const o=i._message.action_id,a=i.actions.find((e=>e.id===o)),l=null==a?void 0:a.label,r=null===(b=null===(g=null===(v=i._message)||void 0===v?void 0:v.form_submit_meta)||void 0===g?void 0:g.find((e=>e.key===ye)))||void 0===b?void 0:b.value,s=(null==a?void 0:a.type)===t.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;l&&o&&e.push({attribute:n,value:s&&r?r:l,label_question:(null===(_=null===(h=i.intents)||void 0===h?void 0:h[0])||void 0===_?void 0:_.label)||""})}if(i.type===t.NodeType.POLL){const t=i.id,n=(null===(E=null===(y=i._message)||void 0===y?void 0:y.current_polls)||void 0===E?void 0:E[t])||[],o=i.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:i.actions[0].key||"",value:o,label_question:(null===(N=null===(x=i.intents)||void 0===x?void 0:x[0])||void 0===N?void 0:N.label)||""})}}return e}),[]);return i},Te=(e,i)=>{var n;try{if("ACUVUE"!==(null===(n=i.extra_settings)||void 0===n?void 0:n.subot_type))return;let o="",a="",l="",r=ue().email;if((e||[]).forEach((e=>{var i,n,s;const d=e._message;if(!d)return;const c=null===(i=e.actions)||void 0===i?void 0:i.find((e=>e.id===d.action_id));if("voucher_product"===d.action_value?o=(null==c?void 0:c.label)||"":"voucher_color"===d.action_value&&(a=(null==c?void 0:c.label)||""),e.type===t.NodeType.FORM){const e=null===(n=d.form_submit_meta)||void 0===n?void 0:n.find((e=>"voucher_size"===e.key)),t=null===(s=d.form_submit_meta)||void 0===s?void 0:s.find((e=>"email"===e.control));e&&(l=e.value),t&&(r=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===o&&r)return{email:r,voucherName:o};if(o&&a&&l&&r)return{email:r,voucherName:`${o}|${a}|${l}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},we=({nodes:e,activeId:o,params:a,accountIdFromLogs:l})=>i.__awaiter(void 0,void 0,void 0,(function*(){try{let i="in_progress";const r=e[e.length-1];(null==r?void 0:r.type)&&t.NodeFinalTypes.includes(r.type)&&(i="complete");const d=e.slice(1),c={activeId:o,params:a,nodes:d,tracking:Object.assign(Object.assign({},xe()),{full_url:window.location.href}),unifiedAnswers:Ne(d),voucherAnswers:Te(d,e[0])},u={cookie_id:de(),account_id:l||ce()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(c),status:i,type:"inline",market:n.MAP_DOMAIN_BY_LOCALE[s.locale]};yield s.callApi(X(K.POST_SUBOT_CREATE_LOG),"POST",{data:u})}catch(e){}})),Ie=(e,t)=>{try{const[i,n,o]=F.default(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},Se=e.createContext({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),Oe=({children:o,articleLink:a,subotId:l,isFullContainer:r,bgColor:d,primaryColor:c,textColor:u,textButtonColor:m,bgContentColor:p,bgImgFullContainer:f,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:_}}=e.useContext(s.TogetherComponentGlobalContext),y=e.useRef(null),E=e.useRef(null),[x,N]=e.useState(!0),[T,w]=e.useState(""),[I,S]=e.useState([]),[O,k]=e.useState(!1),[C,M]=e.useState({});e.useEffect((()=>{const e=d||"#e3f2ff",t=c||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(Q.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",Ie(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",Ie(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",Ie(t,.3)||"#bcdeff"),u&&o.style.setProperty("--subot-inline-text-color",u),m&&o.style.setProperty("--subot-inline-text-button-color",m),p&&o.style.setProperty("--subot-inline-bg-content-color",p)})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[d,c,u,m,p]);const A=e.useCallback((()=>{const e=window.gaData,t=window.location.origin+n.basePath+("tl-PH"===(null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.locale)?a.replace("fil/",""):a),i={bot_id:l,account_id:ce()||null,action_id:"",action_value:"",cookie_id:de(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:L.default.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:pe()};return ae(i,null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.router.query)}),[]),P=e.useCallback((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),R=e.useCallback(((e,n=!0)=>i.__awaiter(void 0,void 0,void 0,(function*(){var o;if(!e||!e.url||!e.bot_id)return;let a="",l=[];N(!0);const r=yield ee(e.bot_id);1===(null==r?void 0:r._status)&&(a=null==r?void 0:r._data.id.toString(),l.push(null==r?void 0:r._data,null==r?void 0:r._data.first_node));const d=n?yield(c=l[0],i.__awaiter(void 0,void 0,void 0,(function*(){var e,t;try{if(!c)return null;const i=yield s.callApi(X(K.GET_SUBOT_LOG,{botId:c.id,cookieId:de(),accountId:ce()||"",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:[c,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:ce()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var c;d&&(l=d.nodes,a=d.activeId,E.current=(null===(o=d.params)||void 0===o?void 0:o.account_id)||0);const u=((e,{getParams:i})=>{try{if(!ce())return null;const n=JSON.parse(localStorage.getItem(Ee)||""),o=18e5;return(null==n?void 0:n.botId)===e&&n.listNodes&&n.activeId&&n.createdAt+o>Date.now()&&(localStorage.removeItem(Ee),n.listNodes.slice(-1)[0].position===t.NodePosition.SSO)?{listNodes:n.listNodes,activeId:n.activeId,params:Object.assign(Object.assign(Object.assign({},i()),n.params),{account_id:ce()||null,cookie_id:de(n.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:A});if(u&&u.params.action_id&&u.params.action_value){const e=yield J(u.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(a=null==e?void 0:e._data.node.id,l=u.listNodes,l[l.length-1]=null==e?void 0:e._data.node,we({nodes:l,activeId:a,params:u.params,accountIdFromLogs:E.current}),setTimeout((()=>{P()}),100))}const m=(null==u?void 0:u.params)||(null==d?void 0:d.params)||e,[p,f]=((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]})(l[0],a,l);N(!1),w(p),S(f),M(Object.assign(Object.assign({},e),m))}))),[]),U=e.useCallback(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${l}"]`);i&&i.click();let n=T,o=[...I];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(N(!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((()=>{S(o),w(n),N(!1),we({nodes:o,activeId:n,params:C,accountIdFromLogs:E.current})}),250)}),[I,T]),j=e.useCallback((e=>i.__awaiter(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),he(I,T,e.action_id)),n=yield J(t);if(N(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:o}=e,a=i.__rest(e,["node"]),l=Object.assign(Object.assign({},o),{_message:Object.assign(Object.assign({},a),{node_id:o.id})});return void(-1!==I.findIndex((e=>e.id===l.id))?U(l):U(l,t))}_({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=I.find((e=>e.id==T));t&&t.hasOwnProperty("first_node")&&(w(I[1].id.toString()),we({nodes:I,activeId:I[1].id.toString(),params:A(),accountIdFromLogs:E.current}))}))),[U,I]),D=e.useCallback((()=>{const e=I.findIndex((({id:e})=>e==T));if(e&&-1!==e&&e>1){const t=I[e-1];w(t.id),we({nodes:I,activeId:t.id,params:C,accountIdFromLogs:E.current})}}),[I,T]),q=e.useCallback((()=>{const e=A();R(e,!1);const t=I[0],i=I[1];we({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[A,R,I]),F=e.useCallback((e=>{S((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==T?t.map((t=>{const i=t;return i.id===T?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[T]);e.useEffect((()=>{if(L.default.get(n.GA_TOKEN_COOKIE)){const e=A();R(e)}else re({condition:()=>Boolean(L.default.get(n.GA_TOKEN_COOKIE)),finished:()=>{const e=A();R(e)}})}),[]),e.useEffect((()=>{if(!I.length)return;I.find((e=>e.id==T))&&T||w(l+"")}),[T,I]);const $=e.useMemo((()=>({activeId:T,params:C,listNodes:I,loading:x,setLoading:N,getParams:A,onNext:j,onPrev:D,onSubmit:U,onStartOver:q,onChange:F,isShowFooter:O,setIsShowFooter:k,isFullContainer:r,bgImgFullContainer:f,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[T,j,D,U,F,q,O,C,I,x,N,A,r,v,g,b,f]);return I.length?B.default.createElement(Se.Provider,{value:$},B.default.createElement("div",{ref:y},o)):null},ke=e=>B.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),B.default.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"})),Ce="480px",Me=G.default.div`
2
2
  position: relative;
3
3
 
4
4
  .si-inline-revamp-container {
package/build/together.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-bfd12e24.js"),r=require("./index-9a845847.js"),t=require("./utils-13ea4f2f.js");require("react"),require("./index-b320255d.js"),require("./tslib.es6-ceb091fd.js"),require("@mantine/core"),require("./translationsContext-4c4c33c4.js"),require("string-format"),require("@hhgtech/icons/other"),require("./index-29d302f4.js"),require("./theme-f2b8aad7.js"),require("styled-components"),require("./useTranslations-233c68bc.js"),require("innertext"),require("./index-85c621a2.js"),require("@mantine/hooks"),require("./index-aa495d24.js"),require("./index-90f4bc02.js"),require("date-fns/locale"),require("./Subot-4751194d.js"),require("./isProduction-28d96804.js"),require("dayjs"),require("./utils-45e691a3.js"),require("@mantine/carousel"),require("classnames"),require("./useUniqueId-46834e18.js"),require("@hhgtech/icons/core"),require("@mantine/dates"),require("./index-4a8c8ce6.js"),require("./index.styles-2ecb9c85.js"),require("./constants-00e06f68.js"),require("./animation-d5d9ef32.js"),require("react-keyed-flatten-children"),require("./paths-ed72ecb8.js"),require("./index-bd4b31bf.js"),require("lodash/debounce"),require("react-contenteditable"),require("./index-ad5cf64d.js"),require("./index-f6217f73.js"),require("./cookieHelper-7d519a72.js"),require("react-dom"),require("./index-64d2f812.js"),require("./number-cf06dcc0.js"),require("date-fns"),require("dayjs/plugin/relativeTime"),require("./index-d25afe2f.js"),require("./routing-f2edd0d0.js"),require("./utils-bee8be92.js"),require("./index.styled-0a1fb891.js"),require("./index-58e0d49f.js"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-48100068.js"),r=require("./index-0c773078.js"),t=require("./utils-6c4e6bc4.js");require("react"),require("./index-3f31aa06.js"),require("./tslib.es6-f82cfdbc.js"),require("@mantine/core"),require("./translationsContext-6a4e467c.js"),require("string-format"),require("@hhgtech/icons/other"),require("./index-a046b313.js"),require("./theme-58404344.js"),require("styled-components"),require("./useTranslations-d91f297f.js"),require("innertext"),require("./index-ae78fa34.js"),require("@mantine/hooks"),require("./index-f124e061.js"),require("./index-2ce34495.js"),require("date-fns/locale"),require("./Subot-b0700a95.js"),require("./isProduction-b8d43f53.js"),require("dayjs"),require("./utils-e1f42597.js"),require("@mantine/carousel"),require("classnames"),require("./useUniqueId-76286c45.js"),require("@hhgtech/icons/core"),require("@mantine/dates"),require("./index-686fe563.js"),require("./index.styles-e56f16e2.js"),require("./constants-47b9b5ff.js"),require("./animation-ea278d9a.js"),require("react-keyed-flatten-children"),require("./paths-38b399e5.js"),require("./index-e363ea7e.js"),require("lodash/debounce"),require("react-contenteditable"),require("./index-d59720e6.js"),require("./index-219cacd2.js"),require("./cookieHelper-effc4373.js"),require("react-dom"),require("./index-9834ba3a.js"),require("./number-03c2dc35.js"),require("date-fns"),require("dayjs/plugin/relativeTime"),require("./index-d0a7d5e2.js"),require("./routing-fa35242c.js"),require("./utils-dd2fab54.js"),require("./index.styled-625bfdc7.js"),require("./index-de63ce4e.js"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-ceb091fd.js"),t=require("react"),a=require("./useTranslations-233c68bc.js"),i=require("lodash/debounce"),o=require("./constants-00e06f68.js"),l=require("./index-bd4b31bf.js"),n=require("styled-components"),s=require("./index-b320255d.js"),r=require("./theme-f2b8aad7.js"),c=require("lodash/shuffle"),d=require("./useOutsideClick-15fef824.js"),u=require("./utils-45e691a3.js"),p=require("react-loading-skeleton"),h=require("./paths-ed72ecb8.js"),g=require("@mantine/core"),f=require("./index-90f4bc02.js"),m=require("./cookieHelper-7d519a72.js"),C=require("./index-34b6bd24.js"),b=require("@hhgtech/icons/core"),y=require("./ChevronDown-602ce39e.js"),v=require("string-format");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E=x(t),S=x(i),L=x(n),w=x(c),O=x(p),k=x(v);function I(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const T=L.default.div``,j=L.default.div`
1
+ "use strict";var e=require("./tslib.es6-f82cfdbc.js"),t=require("react"),a=require("./useTranslations-d91f297f.js"),i=require("lodash/debounce"),o=require("./constants-47b9b5ff.js"),l=require("./index-e363ea7e.js"),n=require("styled-components"),s=require("./index-3f31aa06.js"),r=require("./theme-58404344.js"),c=require("lodash/shuffle"),d=require("./useOutsideClick-8d455bb1.js"),u=require("./utils-e1f42597.js"),p=require("react-loading-skeleton"),h=require("./paths-38b399e5.js"),g=require("@mantine/core"),f=require("./index-2ce34495.js"),m=require("./cookieHelper-effc4373.js"),C=require("./index-fc3d21c5.js"),b=require("@hhgtech/icons/core"),y=require("./ChevronDown-81b50697.js"),v=require("string-format");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E=x(t),S=x(i),L=x(n),w=x(c),O=x(p),k=x(v);function I(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const T=L.default.div``,j=L.default.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),t=require("./index-b320255d.js");require("./translationsContext-4c4c33c4.js"),require("string-format");var a=require("./utils-13ea4f2f.js"),l=require("./tslib.es6-ceb091fd.js"),o=require("@hhgtech/icons/other"),n=require("@mantine/core"),i=require("./index-29d302f4.js"),r=require("./useTranslations-233c68bc.js"),s=require("innertext"),d=require("./theme-f2b8aad7.js"),c=require("./index-85c621a2.js");require("@mantine/dates");var u=require("./index-90f4bc02.js"),m=require("./Subot-4751194d.js"),p=require("./index-aa495d24.js");require("@mantine/hooks");var g=require("./utils-45e691a3.js"),h=require("./index-4a8c8ce6.js"),f=require("./index-9a845847.js"),v=require("./index-bd4b31bf.js"),b=require("lodash/debounce"),x=require("react-contenteditable"),y=require("@hhgtech/icons/core"),w=require("./index-ad5cf64d.js"),C=require("./index-f6217f73.js"),E=require("./cookieHelper-7d519a72.js"),k=require("react-dom"),A=require("styled-components"),N=require("./index-64d2f812.js"),T=require("./number-cf06dcc0.js"),S=require("date-fns"),P=require("dayjs"),I=require("dayjs/plugin/relativeTime"),M=require("./index-d25afe2f.js"),z=require("./useUniqueId-46834e18.js"),L=require("./index.styles-2ecb9c85.js"),B=require("./routing-f2edd0d0.js");function R(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function j(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("./constants-00e06f68.js"),require("./utils-bee8be92.js"),require("./index.styled-0a1fb891.js"),require("./index-58e0d49f.js");var O=j(e),F=R(e),D=R(s),U=R(b),V=R(x),_=j(k),H=R(A),W=R(P),q=R(I);const G=e=>O.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),O.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"})),Z=e.createContext({}),Q=({children:e,defaultParams:t})=>F.default.createElement(Z.Provider,{value:{defaultParams:t}},e),X=t=>{const{data:{userInfo:l,env:{togetherBasePath:o}}}=e.useContext(a.TogetherComponentGlobalContext),{defaultParams:n}=e.useContext(Z)||{},i=null==l?void 0:l.id,r=l&&"number"==typeof l.communities_interacted&&0===l.communities_interacted;return{authActionWrapper:(e,l)=>{const s=Object.assign(Object.assign(Object.assign({},n),t),l);if(!i||r){i||E.deleteCookie(a.BEARER_TOKEN_COOKIE),(null==s?void 0:s._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(s._joinCommunityIds).filter(Boolean))))),null==s||delete s._joinCommunityIds),(null==s?void 0:s._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(s._joinTopicIds).filter(Boolean))))),null==s||delete s._joinTopicIds);const e=(null==s?void 0:s._location)||window.location.href;return null==s||delete s._location,window.location.href=a.getUrlToSignUp(e,s,o),null}return e&&e()},params:Object.assign(Object.assign({},n),t)}},K=H.default.div`
1
+ "use strict";var e=require("react"),t=require("./index-3f31aa06.js");require("./translationsContext-6a4e467c.js"),require("string-format");var a=require("./utils-6c4e6bc4.js"),l=require("./tslib.es6-f82cfdbc.js"),o=require("@hhgtech/icons/other"),n=require("@mantine/core"),i=require("./index-a046b313.js"),r=require("./useTranslations-d91f297f.js"),s=require("innertext"),d=require("./theme-58404344.js"),c=require("./index-ae78fa34.js");require("@mantine/dates");var u=require("./index-2ce34495.js"),m=require("./Subot-b0700a95.js"),p=require("./index-f124e061.js");require("@mantine/hooks");var g=require("./utils-e1f42597.js"),h=require("./index-686fe563.js"),f=require("./index-0c773078.js"),v=require("./index-e363ea7e.js"),b=require("lodash/debounce"),x=require("react-contenteditable"),y=require("@hhgtech/icons/core"),w=require("./index-d59720e6.js"),C=require("./index-219cacd2.js"),E=require("./cookieHelper-effc4373.js"),k=require("react-dom"),A=require("styled-components"),N=require("./index-9834ba3a.js"),T=require("./number-03c2dc35.js"),S=require("date-fns"),P=require("dayjs"),I=require("dayjs/plugin/relativeTime"),M=require("./index-d0a7d5e2.js"),z=require("./useUniqueId-76286c45.js"),L=require("./index.styles-e56f16e2.js"),B=require("./routing-fa35242c.js");function R(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function j(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("./constants-47b9b5ff.js"),require("./utils-dd2fab54.js"),require("./index.styled-625bfdc7.js"),require("./index-de63ce4e.js");var O=j(e),F=R(e),D=R(s),U=R(b),V=R(x),_=j(k),H=R(A),W=R(P),q=R(I);const G=e=>O.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),O.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"})),Z=e.createContext({}),Q=({children:e,defaultParams:t})=>F.default.createElement(Z.Provider,{value:{defaultParams:t}},e),X=t=>{const{data:{userInfo:l,env:{togetherBasePath:o}}}=e.useContext(a.TogetherComponentGlobalContext),{defaultParams:n}=e.useContext(Z)||{},i=null==l?void 0:l.id,r=l&&"number"==typeof l.communities_interacted&&0===l.communities_interacted;return{authActionWrapper:(e,l)=>{const s=Object.assign(Object.assign(Object.assign({},n),t),l);if(!i||r){i||E.deleteCookie(a.BEARER_TOKEN_COOKIE),(null==s?void 0:s._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(s._joinCommunityIds).filter(Boolean))))),null==s||delete s._joinCommunityIds),(null==s?void 0:s._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(s._joinTopicIds).filter(Boolean))))),null==s||delete s._joinTopicIds);const e=(null==s?void 0:s._location)||window.location.href;return null==s||delete s._location,window.location.href=a.getUrlToSignUp(e,s,o),null}return e&&e()},params:Object.assign(Object.assign({},n),t)}},K=H.default.div`
2
2
  .link-info-container {
3
3
  padding: 0.5rem 1rem;
4
4
  background: ${e=>e.color||"#f4faff"};
package/build/types.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Subot-4751194d.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),exports.ELEMENT_CONTROL_INPUT_TYPE=e.ELEMENT_CONTROL_INPUT_TYPE,exports.FULL_KEY_ADDRESS=e.FULL_KEY_ADDRESS,Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"NodeActionType",{enumerable:!0,get:function(){return e.NodeActionType}}),exports.NodeFinalTypes=e.NodeFinalTypes,Object.defineProperty(exports,"NodeIntentType",{enumerable:!0,get:function(){return e.NodeIntentType}}),Object.defineProperty(exports,"NodeMultipleOptions",{enumerable:!0,get:function(){return e.NodeMultipleOptions}}),Object.defineProperty(exports,"NodePosition",{enumerable:!0,get:function(){return e.NodePosition}}),Object.defineProperty(exports,"NodeType",{enumerable:!0,get:function(){return e.NodeType}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}}),exports.SubotType=e.SubotType;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Subot-b0700a95.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),exports.ELEMENT_CONTROL_INPUT_TYPE=e.ELEMENT_CONTROL_INPUT_TYPE,exports.FULL_KEY_ADDRESS=e.FULL_KEY_ADDRESS,Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"NodeActionType",{enumerable:!0,get:function(){return e.NodeActionType}}),exports.NodeFinalTypes=e.NodeFinalTypes,Object.defineProperty(exports,"NodeIntentType",{enumerable:!0,get:function(){return e.NodeIntentType}}),Object.defineProperty(exports,"NodeMultipleOptions",{enumerable:!0,get:function(){return e.NodeMultipleOptions}}),Object.defineProperty(exports,"NodePosition",{enumerable:!0,get:function(){return e.NodePosition}}),Object.defineProperty(exports,"NodeType",{enumerable:!0,get:function(){return e.NodeType}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}}),exports.SubotType=e.SubotType;
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-ceb091fd.js"),a=require("react"),n=require("./cookieHelper-7d519a72.js"),t=require("./useUniqueId-46834e18.js"),i=require("./Subot-4751194d.js"),s=require("./useTranslations-233c68bc.js");function l(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 r={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},b={[i.LOCALE.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"},[i.LOCALE.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.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:""},[i.LOCALE.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.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:""},[i.LOCALE.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};exports.MAPPED_CATEGORY_SLUGS=b,exports.PREGNANCY_SLUG=r,exports.useCategory=e=>{const{locale:n}=s.useTranslations();return{isPregnancy:a.useMemo((()=>decodeURI(e.replace(/\//gi,"")).includes(r[n])),[]),isParenting:a.useMemo((()=>{var a;return decodeURI(e.replace(/\//gi,"")).includes(null===(a=b[n])||void 0===a?void 0:a.parenting)}),[]),type:a.useMemo((()=>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,b[n])),[e,n])}},exports.useFbDataLayer=t=>{const i=a.useRef("");a.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,a,s,r,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===(s=i.current)||void 0===s?void 0:s.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==t?void 0:t.id){const[e,a,i,s,h,u]=yield Promise.all([t.email?l(t.email):null,t.phone?l(t.phone):null,t.birthday?l(t.birthday.split("-").join("")):null,t.gender?"m":"f",t.city_name?l(t.city_name).then((e=>e.replace(/\s/g,""))):null,t.name?l(t.name):null]);n.getCookie("_fbc"),n.getCookie("_fbp");const o={user_id:t.id};u&&(o.fn=u),e&&(o.em=e),a&&(o.ph=a),i&&(o.db=i),h&&(o.ct=h),null===(b=null===(r=window.localStorage)||void 0===r?void 0:r.setItem)||void 0===b||b.call(r,"fbDataLayer_userInfo",JSON.stringify(o))}})),()=>{})),[t])},exports.usePrevious=e=>{const n=a.useRef(),i=a.useRef(e);return t.useInitialMount()||i.current===e||(n.current=i.current,i.current=e),n.current},exports.useRafState=e=>{const[n,t]=a.useState(e),i=a.useRef(0),s=a.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{t(e)}))}),[]);return a.useEffect((()=>()=>cancelAnimationFrame(i.current))),[n,s]};
1
+ "use strict";var e=require("./tslib.es6-f82cfdbc.js"),a=require("react"),n=require("./cookieHelper-effc4373.js"),t=require("./useUniqueId-76286c45.js"),i=require("./Subot-b0700a95.js"),s=require("./useTranslations-d91f297f.js");function l(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 r={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},b={[i.LOCALE.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"},[i.LOCALE.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.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:""},[i.LOCALE.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.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:""},[i.LOCALE.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};exports.MAPPED_CATEGORY_SLUGS=b,exports.PREGNANCY_SLUG=r,exports.useCategory=e=>{const{locale:n}=s.useTranslations();return{isPregnancy:a.useMemo((()=>decodeURI(e.replace(/\//gi,"")).includes(r[n])),[]),isParenting:a.useMemo((()=>{var a;return decodeURI(e.replace(/\//gi,"")).includes(null===(a=b[n])||void 0===a?void 0:a.parenting)}),[]),type:a.useMemo((()=>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,b[n])),[e,n])}},exports.useFbDataLayer=t=>{const i=a.useRef("");a.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,a,s,r,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===(s=i.current)||void 0===s?void 0:s.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==t?void 0:t.id){const[e,a,i,s,h,u]=yield Promise.all([t.email?l(t.email):null,t.phone?l(t.phone):null,t.birthday?l(t.birthday.split("-").join("")):null,t.gender?"m":"f",t.city_name?l(t.city_name).then((e=>e.replace(/\s/g,""))):null,t.name?l(t.name):null]);n.getCookie("_fbc"),n.getCookie("_fbp");const o={user_id:t.id};u&&(o.fn=u),e&&(o.em=e),a&&(o.ph=a),i&&(o.db=i),h&&(o.ct=h),null===(b=null===(r=window.localStorage)||void 0===r?void 0:r.setItem)||void 0===b||b.call(r,"fbDataLayer_userInfo",JSON.stringify(o))}})),()=>{})),[t])},exports.usePrevious=e=>{const n=a.useRef(),i=a.useRef(e);return t.useInitialMount()||i.current===e||(n.current=i.current,i.current=e),n.current},exports.useRafState=e=>{const[n,t]=a.useState(e),i=a.useRef(0),s=a.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{t(e)}))}),[]);return a.useEffect((()=>()=>cancelAnimationFrame(i.current))),[n,s]};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./tslib.es6-f82cfdbc.js"),t=require("react"),o=require("./getDynamicHealthTool-110fd918.js");exports.useHealthToolsCache=a=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield o.getDynamicHealthToolWithCache(a);l(e)}))}),[o.getDynamicHealthToolWithCache,a]);const c=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:c}};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-ceb091fd.js"),t=require("react");const i="undefined"==typeof window,o={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"};exports.GOOGLE_API_KEY="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",exports.GOOGLE_API_LANGUAGE=o,exports.usePlacesAutocomplete=(n="",r="",s="",c=500)=>{const[a,d]=t.useState([]),[u,l]=t.useState(!1);return t.useEffect((()=>{let t;return n?t=window.setTimeout((()=>e.__awaiter(void 0,void 0,void 0,(function*(){var t;if(n)try{l(!0);const c=yield((t="",n="",r="vi")=>e.__awaiter(void 0,void 0,void 0,(function*(){return new Promise(((e,s)=>{if(!t)return s("Need valid text input");if(i)return s("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:t},n?{componentRestrictions:{country:n}}:{}),{language:o[r]}),e)}catch(e){s(e)}}))})))(n,r,s);d(!(t=c)||t.length<1?[]:t.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{l(!1)}else d([])}))),c):a.length&&d([]),()=>{window.clearTimeout(t)}}),[n,c,r]),{isLoading:u,predictions:a}};
1
+ "use strict";var e=require("./tslib.es6-f82cfdbc.js"),t=require("react");const i="undefined"==typeof window,o={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"};exports.GOOGLE_API_KEY="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",exports.GOOGLE_API_LANGUAGE=o,exports.usePlacesAutocomplete=(n="",r="",c="",s=500)=>{const[a,d]=t.useState([]),[u,l]=t.useState(!1);return t.useEffect((()=>{let t;return n?t=window.setTimeout((()=>e.__awaiter(void 0,void 0,void 0,(function*(){var t;if(n)try{l(!0);const s=yield((t="",n="",r="vi")=>e.__awaiter(void 0,void 0,void 0,(function*(){return new Promise(((e,c)=>{if(!t)return c("Need valid text input");if(i)return c("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:t},n?{componentRestrictions:{country:n}}:{}),{language:o[r]}),e)}catch(e){c(e)}}))})))(n,r,c);d(!(t=s)||t.length<1?[]:t.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{l(!1)}else d([])}))),s):a.length&&d([]),()=>{window.clearTimeout(t)}}),[n,s,r]),{isLoading:u,predictions:a}};
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("./translationsContext-4c4c33c4.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>a?a[e]?t?n.default(a[e]||e,t):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),t?n.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
1
+ "use strict";var e=require("react"),t=require("./translationsContext-6a4e467c.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>a?a[e]?t?n.default(a[e]||e,t):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),t?n.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
@@ -1,8 +1,8 @@
1
- "use strict";var e=require("./tslib.es6-ceb091fd.js"),t=require("react"),r=require("./theme-f2b8aad7.js"),o=require("./cookieHelper-7d519a72.js"),a=require("slugify");require("./index-90f4bc02.js");var i=require("string-format"),l=require("./isProduction-28d96804.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=s(t),c=s(a),u=s(i);const _=t=>{var{size:r,color:o,useCurrentColor:a,isActive:i,activeColor:l}=t,s=e.__rest(t,["size","color","useCurrentColor","isActive","activeColor"]);const c=a?"currentColor":i?l:o,u=Object.assign({width:r,height:r},s);return n.default.createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 18 18",fill:"none"},u),n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00183 11.6827C9.85164 11.6827 10.5734 11.3852 11.1672 10.7903C11.7609 10.1955 12.0578 9.4731 12.0578 8.62328C12.0578 7.77346 11.7604 7.05168 11.1655 6.45793C10.5706 5.86418 9.84824 5.56731 8.99841 5.56731C8.1486 5.56731 7.42682 5.86474 6.83307 6.45962C6.23932 7.05451 5.94245 7.77686 5.94245 8.62669C5.94245 9.4765 6.23988 10.1983 6.83476 10.792C7.42965 11.3858 8.152 11.6827 9.00183 11.6827ZM9.00012 10.65C8.43762 10.65 7.9595 10.4531 7.56575 10.0594C7.172 9.66561 6.97512 9.18748 6.97512 8.62498C6.97512 8.06248 7.172 7.58436 7.56575 7.19061C7.9595 6.79686 8.43762 6.59998 9.00012 6.59998C9.56262 6.59998 10.0407 6.79686 10.4345 7.19061C10.8282 7.58436 11.0251 8.06248 11.0251 8.62498C11.0251 9.18748 10.8282 9.66561 10.4345 10.0594C10.0407 10.4531 9.56262 10.65 9.00012 10.65ZM9.00012 13.875C7.42128 13.875 5.9773 13.4538 4.66818 12.6115C3.35904 11.7692 2.31409 10.661 1.53333 9.28699C1.47083 9.1793 1.42515 9.07077 1.3963 8.96139C1.36745 8.85201 1.35303 8.73974 1.35303 8.62461C1.35303 8.50947 1.36745 8.39734 1.3963 8.28821C1.42515 8.17908 1.47083 8.07066 1.53333 7.96298C2.31409 6.58894 3.35904 5.48077 4.66818 4.63847C5.9773 3.79616 7.42128 3.375 9.00012 3.375C10.579 3.375 12.0229 3.79616 13.3321 4.63847C14.6412 5.48077 15.6862 6.58894 16.4669 7.96298C16.5294 8.07066 16.5751 8.17919 16.6039 8.28857C16.6328 8.39796 16.6472 8.51022 16.6472 8.62536C16.6472 8.74049 16.6328 8.85263 16.6039 8.96175C16.5751 9.07089 16.5294 9.1793 16.4669 9.28699C15.6862 10.661 14.6412 11.7692 13.3321 12.6115C12.0229 13.4538 10.579 13.875 9.00012 13.875ZM9.00012 12.75C10.4126 12.75 11.7095 12.3781 12.8907 11.6344C14.072 10.8906 14.9751 9.88748 15.6001 8.62498C14.9751 7.36248 14.072 6.35936 12.8907 5.61561C11.7095 4.87186 10.4126 4.49998 9.00012 4.49998C7.58762 4.49998 6.29075 4.87186 5.1095 5.61561C3.92825 6.35936 3.02512 7.36248 2.40012 8.62498C3.02512 9.88748 3.92825 10.8906 5.1095 11.6344C6.29075 12.3781 7.58762 12.75 9.00012 12.75Z",fill:c}))};_.defaultProps={size:24,color:r.theme.colors.gray600,activeColor:r.theme.colors.primaryBase};const d=t=>{var{size:r,color:o,activeColor:a,isActive:i,isMarryBaby:l}=t,s=e.__rest(t,["size","color","activeColor","isActive","isMarryBaby"]);return l?n.default.createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 24 24",fill:"none"},s),n.default.createElement("path",{d:"M18 8L19 8C20.1046 8 21 8.89543 21 10L21 15.155C21 17.3585 19.4253 19.2551 17.2391 19.6848C15.1006 20.1051 8.89937 20.1051 6.76089 19.6848C4.57467 19.2551 3 17.3585 3 15.155L3 10C3 8.89543 3.89543 8 5 8L6 8",stroke:i?a:o,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M12 13L12 3M12 3L9.5 5.5M12 3L14.5 5.5",stroke:i?a:o,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})):n.default.createElement("svg",Object.assign({width:r,height:r,fill:"none",viewBox:"0 0 24 24"},s),n.default.createElement("path",{fill:i?a:o,d:"M19 3c-1.652 0-3 1.348-3 3 0 .46.113.895.3 1.285L12.587 11h-4.77A2.999 2.999 0 005 9c-1.652 0-3 1.348-3 3s1.348 3 3 3c1.3 0 2.402-.84 2.816-2h4.77l3.715 3.715c-.188.39-.301.824-.301 1.285 0 1.652 1.348 3 3 3s3-1.348 3-3-1.348-3-3-3c-.46 0-.895.113-1.285.3l-3.3-3.3 3.3-3.3c.39.187.824.3 1.285.3 1.652 0 3-1.348 3-3s-1.348-3-3-3z"}))};d.defaultProps={size:24,color:r.theme.colors.gray600,activeColor:r.theme.colors.primaryBase,isActive:!1};const p=t=>{var{size:r=24,color:o,isMarryBaby:a}=t,i=e.__rest(t,["size","color","isMarryBaby"]);return n.default.createElement("svg",Object.assign({style:{display:"block",shapeRendering:"auto"},width:r,height:r,viewBox:"30 30 40 40",preserveAspectRatio:"xMidYMid"},i),n.default.createElement("circle",{cx:"50",cy:"50",fill:"none",stroke:o||(a?"#e85388":"#91caff"),strokeWidth:"7",r:"16",strokeDasharray:"75.39822368615503 27.132741228718345"},n.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.2s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))};p.defaultProps={size:24};const E=t=>{var{size:r,color:o,useCurrentColor:a,isActive:i,activeColor:l}=t,s=e.__rest(t,["size","color","useCurrentColor","isActive","activeColor"]);const c=a?"currentColor":i?l:o,u=Object.assign({width:r,height:r},s);return n.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none"},u),n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00132 0.125C3.65869 0.125 0.12632 3.65737 0.12632 8C0.12632 9.52948 0.558762 10.9952 1.38268 12.2698L0.185496 14.9054C0.0762474 15.1467 0.117216 15.4335 0.290192 15.6337C0.422201 15.7885 0.613386 15.875 0.813675 15.875C0.872851 15.875 0.93658 15.8659 0.995756 15.8522L4.29142 14.9464C5.42943 15.5564 6.70399 15.875 8.00132 15.875C12.344 15.875 15.8763 12.3426 15.8763 8C15.8763 3.65737 12.344 0.125 8.00132 0.125ZM8.00132 14.5003C6.84966 14.5003 5.72076 14.1953 4.72842 13.6172C4.62372 13.5535 4.50081 13.5216 4.38246 13.5216C4.32329 13.5216 4.25956 13.5307 4.20038 13.5444L2.04727 14.1361L2.79836 12.4837C2.8985 12.2607 2.87574 11.9967 2.73008 11.7964C1.92892 10.6857 1.50558 9.37016 1.50558 8C1.50558 4.41756 4.41888 1.49971 8.00587 1.49971C11.5883 1.49971 14.5062 4.41301 14.5062 8C14.5016 11.5824 11.5838 14.5003 8.00132 14.5003Z",fill:c}),n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0279 9.17924C10.7002 8.9835 10.2677 8.76045 9.88083 8.91978C9.58494 9.04268 9.39376 9.50699 9.19802 9.74824C9.09788 9.87115 8.97952 9.88936 8.82931 9.83018C7.70951 9.38408 6.85373 8.63755 6.23465 7.60879C6.12996 7.44947 6.14817 7.32202 6.27562 7.17635C6.46226 6.95785 6.69441 6.70749 6.74448 6.41161C6.79455 6.11573 6.65799 5.76978 6.53509 5.50576C6.38032 5.16891 6.20279 4.69095 5.86594 4.49976C5.5564 4.32678 5.14672 4.42238 4.86905 4.64543C4.39108 5.03235 4.16348 5.64232 4.16804 6.24319C4.16804 6.41616 4.1908 6.58459 4.23176 6.75301C4.32736 7.14904 4.51399 7.5223 4.71883 7.87736C4.8736 8.14138 5.04658 8.40084 5.22866 8.65121C5.82497 9.46602 6.5715 10.1716 7.43184 10.6996C7.86428 10.9636 8.32858 11.1958 8.80655 11.3551C9.34369 11.5326 9.8262 11.7193 10.4089 11.61C11.0188 11.4962 11.6197 11.1184 11.861 10.5312C11.9338 10.3582 11.9702 10.1625 11.9292 9.9804C11.8473 9.58892 11.3329 9.36132 11.0279 9.17924Z",fill:c}))};E.defaultProps={size:24,color:r.theme.colors.gray600,activeColor:r.theme.colors.primaryBase};
1
+ "use strict";var e=require("./tslib.es6-f82cfdbc.js"),t=require("react"),r=require("./theme-58404344.js"),o=require("./cookieHelper-effc4373.js"),a=require("slugify");require("./index-2ce34495.js");var i=require("string-format"),l=require("./isProduction-b8d43f53.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=s(t),c=s(a),u=s(i);const _=t=>{var{size:r,color:o,useCurrentColor:a,isActive:i,activeColor:l}=t,s=e.__rest(t,["size","color","useCurrentColor","isActive","activeColor"]);const c=a?"currentColor":i?l:o,u=Object.assign({width:r,height:r},s);return n.default.createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 18 18",fill:"none"},u),n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00183 11.6827C9.85164 11.6827 10.5734 11.3852 11.1672 10.7903C11.7609 10.1955 12.0578 9.4731 12.0578 8.62328C12.0578 7.77346 11.7604 7.05168 11.1655 6.45793C10.5706 5.86418 9.84824 5.56731 8.99841 5.56731C8.1486 5.56731 7.42682 5.86474 6.83307 6.45962C6.23932 7.05451 5.94245 7.77686 5.94245 8.62669C5.94245 9.4765 6.23988 10.1983 6.83476 10.792C7.42965 11.3858 8.152 11.6827 9.00183 11.6827ZM9.00012 10.65C8.43762 10.65 7.9595 10.4531 7.56575 10.0594C7.172 9.66561 6.97512 9.18748 6.97512 8.62498C6.97512 8.06248 7.172 7.58436 7.56575 7.19061C7.9595 6.79686 8.43762 6.59998 9.00012 6.59998C9.56262 6.59998 10.0407 6.79686 10.4345 7.19061C10.8282 7.58436 11.0251 8.06248 11.0251 8.62498C11.0251 9.18748 10.8282 9.66561 10.4345 10.0594C10.0407 10.4531 9.56262 10.65 9.00012 10.65ZM9.00012 13.875C7.42128 13.875 5.9773 13.4538 4.66818 12.6115C3.35904 11.7692 2.31409 10.661 1.53333 9.28699C1.47083 9.1793 1.42515 9.07077 1.3963 8.96139C1.36745 8.85201 1.35303 8.73974 1.35303 8.62461C1.35303 8.50947 1.36745 8.39734 1.3963 8.28821C1.42515 8.17908 1.47083 8.07066 1.53333 7.96298C2.31409 6.58894 3.35904 5.48077 4.66818 4.63847C5.9773 3.79616 7.42128 3.375 9.00012 3.375C10.579 3.375 12.0229 3.79616 13.3321 4.63847C14.6412 5.48077 15.6862 6.58894 16.4669 7.96298C16.5294 8.07066 16.5751 8.17919 16.6039 8.28857C16.6328 8.39796 16.6472 8.51022 16.6472 8.62536C16.6472 8.74049 16.6328 8.85263 16.6039 8.96175C16.5751 9.07089 16.5294 9.1793 16.4669 9.28699C15.6862 10.661 14.6412 11.7692 13.3321 12.6115C12.0229 13.4538 10.579 13.875 9.00012 13.875ZM9.00012 12.75C10.4126 12.75 11.7095 12.3781 12.8907 11.6344C14.072 10.8906 14.9751 9.88748 15.6001 8.62498C14.9751 7.36248 14.072 6.35936 12.8907 5.61561C11.7095 4.87186 10.4126 4.49998 9.00012 4.49998C7.58762 4.49998 6.29075 4.87186 5.1095 5.61561C3.92825 6.35936 3.02512 7.36248 2.40012 8.62498C3.02512 9.88748 3.92825 10.8906 5.1095 11.6344C6.29075 12.3781 7.58762 12.75 9.00012 12.75Z",fill:c}))};_.defaultProps={size:24,color:r.theme.colors.gray600,activeColor:r.theme.colors.primaryBase};const p=t=>{var{size:r,color:o,activeColor:a,isActive:i,isMarryBaby:l}=t,s=e.__rest(t,["size","color","activeColor","isActive","isMarryBaby"]);return l?n.default.createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 24 24",fill:"none"},s),n.default.createElement("path",{d:"M18 8L19 8C20.1046 8 21 8.89543 21 10L21 15.155C21 17.3585 19.4253 19.2551 17.2391 19.6848C15.1006 20.1051 8.89937 20.1051 6.76089 19.6848C4.57467 19.2551 3 17.3585 3 15.155L3 10C3 8.89543 3.89543 8 5 8L6 8",stroke:i?a:o,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M12 13L12 3M12 3L9.5 5.5M12 3L14.5 5.5",stroke:i?a:o,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})):n.default.createElement("svg",Object.assign({width:r,height:r,fill:"none",viewBox:"0 0 24 24"},s),n.default.createElement("path",{fill:i?a:o,d:"M19 3c-1.652 0-3 1.348-3 3 0 .46.113.895.3 1.285L12.587 11h-4.77A2.999 2.999 0 005 9c-1.652 0-3 1.348-3 3s1.348 3 3 3c1.3 0 2.402-.84 2.816-2h4.77l3.715 3.715c-.188.39-.301.824-.301 1.285 0 1.652 1.348 3 3 3s3-1.348 3-3-1.348-3-3-3c-.46 0-.895.113-1.285.3l-3.3-3.3 3.3-3.3c.39.187.824.3 1.285.3 1.652 0 3-1.348 3-3s-1.348-3-3-3z"}))};p.defaultProps={size:24,color:r.theme.colors.gray600,activeColor:r.theme.colors.primaryBase,isActive:!1};const d=t=>{var{size:r=24,color:o,isMarryBaby:a}=t,i=e.__rest(t,["size","color","isMarryBaby"]);return n.default.createElement("svg",Object.assign({style:{display:"block",shapeRendering:"auto"},width:r,height:r,viewBox:"30 30 40 40",preserveAspectRatio:"xMidYMid"},i),n.default.createElement("circle",{cx:"50",cy:"50",fill:"none",stroke:o||(a?"#e85388":"#91caff"),strokeWidth:"7",r:"16",strokeDasharray:"75.39822368615503 27.132741228718345"},n.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.2s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))};d.defaultProps={size:24};const E=t=>{var{size:r,color:o,useCurrentColor:a,isActive:i,activeColor:l}=t,s=e.__rest(t,["size","color","useCurrentColor","isActive","activeColor"]);const c=a?"currentColor":i?l:o,u=Object.assign({width:r,height:r},s);return n.default.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none"},u),n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00132 0.125C3.65869 0.125 0.12632 3.65737 0.12632 8C0.12632 9.52948 0.558762 10.9952 1.38268 12.2698L0.185496 14.9054C0.0762474 15.1467 0.117216 15.4335 0.290192 15.6337C0.422201 15.7885 0.613386 15.875 0.813675 15.875C0.872851 15.875 0.93658 15.8659 0.995756 15.8522L4.29142 14.9464C5.42943 15.5564 6.70399 15.875 8.00132 15.875C12.344 15.875 15.8763 12.3426 15.8763 8C15.8763 3.65737 12.344 0.125 8.00132 0.125ZM8.00132 14.5003C6.84966 14.5003 5.72076 14.1953 4.72842 13.6172C4.62372 13.5535 4.50081 13.5216 4.38246 13.5216C4.32329 13.5216 4.25956 13.5307 4.20038 13.5444L2.04727 14.1361L2.79836 12.4837C2.8985 12.2607 2.87574 11.9967 2.73008 11.7964C1.92892 10.6857 1.50558 9.37016 1.50558 8C1.50558 4.41756 4.41888 1.49971 8.00587 1.49971C11.5883 1.49971 14.5062 4.41301 14.5062 8C14.5016 11.5824 11.5838 14.5003 8.00132 14.5003Z",fill:c}),n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0279 9.17924C10.7002 8.9835 10.2677 8.76045 9.88083 8.91978C9.58494 9.04268 9.39376 9.50699 9.19802 9.74824C9.09788 9.87115 8.97952 9.88936 8.82931 9.83018C7.70951 9.38408 6.85373 8.63755 6.23465 7.60879C6.12996 7.44947 6.14817 7.32202 6.27562 7.17635C6.46226 6.95785 6.69441 6.70749 6.74448 6.41161C6.79455 6.11573 6.65799 5.76978 6.53509 5.50576C6.38032 5.16891 6.20279 4.69095 5.86594 4.49976C5.5564 4.32678 5.14672 4.42238 4.86905 4.64543C4.39108 5.03235 4.16348 5.64232 4.16804 6.24319C4.16804 6.41616 4.1908 6.58459 4.23176 6.75301C4.32736 7.14904 4.51399 7.5223 4.71883 7.87736C4.8736 8.14138 5.04658 8.40084 5.22866 8.65121C5.82497 9.46602 6.5715 10.1716 7.43184 10.6996C7.86428 10.9636 8.32858 11.1958 8.80655 11.3551C9.34369 11.5326 9.8262 11.7193 10.4089 11.61C11.0188 11.4962 11.6197 11.1184 11.861 10.5312C11.9338 10.3582 11.9702 10.1625 11.9292 9.9804C11.8473 9.58892 11.3329 9.36132 11.0279 9.17924Z",fill:c}))};E.defaultProps={size:24,color:r.theme.colors.gray600,activeColor:r.theme.colors.primaryBase};
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
7
  */
8
- var T=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},o=(t||{}).decode||A,a=0;for(;a<e.length;){var i=e.indexOf("=",a);if(-1===i)break;var l=e.indexOf(";",a);if(-1===l)l=e.length;else if(l<i){a=e.lastIndexOf(";",i-1)+1;continue}var s=e.slice(a,i).trim();if(void 0===r[s]){var n=e.slice(i+1,l).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1)),r[s]=g(n,o)}a=l+1}return r},m=function(e,t,r){var o=r||{},a=o.encode||O;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!b.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!b.test(i))throw new TypeError("argument val is invalid");var l=e+"="+i;if(null!=o.maxAge){var s=o.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(s)}if(o.domain){if(!b.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!b.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){var n=o.expires;if(!function(e){return"[object Date]"===h.call(e)||e instanceof Date}(n)||isNaN(n.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+n.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; 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:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},h=Object.prototype.toString,b=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function A(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function O(e){return encodeURIComponent(e)}function g(e,t){try{return t(e)}catch(t){return e}}var v={parse:T,serialize:m};const L={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}"}},I={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},C=t.createContext({data:I,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null});exports.GlobalData=I;const S="DD/MM/YYYY",f="/images/avatar.jpg",w="/images/default-image.jpg",R={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR",BGC:"BGC"},y={"id-ID":{"kalkulator-bmi":R.BMI,"kebutuhan-kalori":R.BMR,"kalkulator-hari-perkiraan-lahir":R.DUE_DATE,"kalkulator-masa-subur-2":R.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":R.PWG,"kalkulator-detak-jantung-saat-olahraga":R.THR},"ms-MY":{"kalkulator-bmi":R.BMI,"kalkulator-bmr":R.BMR,"kalkulator-tarikh-bersalin":R.DUE_DATE,"kalkulator-kesuburan":R.OVULATION,"kalkulator-tambah-berat-badan-hamil":R.PWG,"target-heart-rate-calculator":R.THR},"vi-VN":{"cach-tinh-chi-so-bmi":R.BMI,"tinh-chi-so-bmr":R.BMR,"cong-cu-tinh-ngay-du-sinh":R.DUE_DATE,"tinh-ngay-rung-trung":R.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":R.PWG,"cong-cu-do-nhip-tim":R.THR},"zh-TW":{"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"due-date-calculator":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnancy-weight-gain-calculator":R.PWG,"target-heart-rate-calculator":R.THR},"en-PH":{"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"due-date-calculator":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnancy-weight-gain-calculator":R.PWG,"target-heart-rate-calculator":R.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":R.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":R.BMR,"เครื่องมือคำนวณกำหนดคลอด":R.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":R.OVULATION,"เครื่องคำนวณน้ำหนักตัว":R.PWG,"เครื่องวัดอัตราการเต้น":R.THR},"hi-IN":{"bmi-calculator-en":R.BMI,"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"delivery-date-calculator":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnancy-weight-gain-calculator":R.PWG,"target-heart-rate-calculator":R.THR},"km-KH":{"គណនា-bmi":R.BMI,"គណនា-bmr":R.BMR,"គណនាថ្ងៃសម្រាលកូន":R.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":R.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":R.PWG,"គណនារកចង្វាក់បេះដូងល្អ":R.THR},"my-MM":{"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"due-date-calendar":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnaancy-weight-calculator":R.PWG,"target-heartrate":R.THR,"pregnancy-weight-calculator":R.PWG,"target-heart-rate":R.THR}},D="hhg_user_token",P="together_admin_token",G={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},M="hhg-id",x={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"}},N={"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:f,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:w,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:R,LOCALE_HEALTH_TOOLS:y,BEARER_TOKEN_COOKIE:D,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:P,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:M,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:x,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:N});const U={"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"},B={"vi-VN":"marrybaby.vn"},H=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",j=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;return`https://${t?B[e]:U[e]}`},F=e=>{const t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},K=(e,t,r,o)=>{let a="";r&&(a=Object.keys(r).map((e=>e+"="+r[e])).join("&"));const{togetherBaseApiUrl:i=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};let l=u.default(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:j(String(t._locale))}:{}),t));l+=`${l.includes("?")?"&":"?"}${a}`;return(o||i)+"api/v1/"+F(l)},V=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),Y=(t,r,o,a=!1)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,i,l,s;try{const e=yield fetch(a?t:(s=t,encodeURI(s).replace(/%5B/g,"[").replace(/%5D/g,"]")),Object.assign(Object.assign({method:r},V(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===(l=null==r?void 0:r.response)||void 0===l?void 0:l.data)||null}return null})),W=(t,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=v.parse(i||""),l=e[D]||o.getCookie(D);if(l&&l.length){const e=yield fetch(t,Object.assign(Object.assign({method:r},V(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null}));function z(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 $=(e,t,r,o)=>r&&t?`${r}-${t}`:`${c.default(e||"",{lower:!0,locale:o||H})}-${t}`;exports.ADMIN_PATHS={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},exports.BEARER_TOKEN_COOKIE=D,exports.CARE_PATHS={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},exports.DEFAULT_AVATAR_IMG=f,exports.DEFAULT_IMG=w,exports.DISCOVER_PATHS={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}"},exports.DUE_DATE_FORMAT=S,exports.DefaultComponentGlobalContextData=I,exports.Eye=_,exports.HEALTH_TOOL_TYPE=R,exports.LEAD_TOKEN_COOKIE=M,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=L,exports.REPORT_REASON_MAP=x,exports.Share=d,exports.Spinner=p,exports.TogetherComponentGlobalContext=C,exports.TogetherComponentGlobalContextProvider=({locale:e="vi-VN",children:r,userInfo:o,router:a,env:i={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:l=(e=>e),pushNotifications:s=(()=>!1),formatMessage:c})=>{const[u,_]=t.useState();return exports.GlobalData={userInfo:o,locale:e,togetherUserId:u,router:a,env:i},t.useEffect((()=>{(null==o?void 0:o.id)&&W(K(L.PROFILE,{_locale:e}),"GET").then((e=>{var t;_(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)}))}),[null==o?void 0:o.id]),n.default.createElement(C.Provider,{value:{data:{userInfo:o,locale:e,togetherUserId:u,router:a,env:i},action:{pushNotifications:s,sanitizeFunction:l},formatMessage:c}},r)},exports.WhatsApp=E,exports.Z_INDEX=G,exports.callApi=Y,exports.callApiWithAdminAuth=(t,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=v.parse(i||""),l=e[P]||o.getCookie(P);if(l&&l.length){const e=yield fetch(t,Object.assign(Object.assign({method:r},V(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null})),exports.callApiWithAuth=W,exports.callApiWithOptionalAuth=(t,r="GET",a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,l,s,n,c,u;try{const n="string"==typeof t?t:t.url,c="string"==typeof t?t:t.backupUrl,u=v.parse(i||""),_=u[D]||o.getCookie(D);if(!_||!_.length)return Y(c||n,r,a);try{const t=yield fetch(n,Object.assign(Object.assign({method:r},V(a)),{headers:Object.assign({Authorization:"Bearer "+_},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 Y(c||n,r,a);if(t)return t}catch(e){return console.log({status:null===(l=null==e?void 0:e.response)||void 0===l?void 0:l.status,statusText:null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.statusText}),Y(c||n,r,a)}}catch(e){return console.log({status:null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status,statusText:null===(c=null==e?void 0:e.response)||void 0===c?void 0:c.statusText}),(null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.data)||null}return null})),exports.constants=k,exports.cookie=v,exports.domainLocales=U,exports.domainLocalesMarryBaby=B,exports.getApiPath=K,exports.getCareDoctorUrl=({name:e,id:t,locale:r})=>{var o;return`/care/${null===(o=N[r||"vi-VN"])||void 0===o?void 0:o.DOCTOR}/${$(e,t)}`},exports.getCareHospitalUrl=({name:e,id:t,slug:r,locale:o})=>{var a;return`/care/${null===(a=N[o||"vi-VN"])||void 0===a?void 0:a.HOSPITAL}/${$(e,t,r)}`},exports.getCarePath=(e,t)=>{const{careBaseApiUrl:r=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r||"https://service-health-care.hellohealthgroup.com/")+F(u.default(e,Object.assign({},t)))},exports.getCurrentBaseUrl=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;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.":""}${U[e]}`},exports.getDiscoverApiPath=(e,t,r)=>{const{discoverBaseApiUrl:o="",discoverBaseProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(!l.isProduction&&r?a:o)+"wp-json/api/"+F(u.default(e,Object.assign({},t)))},exports.getMarryBabyApiPath=(e,t,r)=>{const{marryBabyApiUrl:o="",marryBabyProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r&&!l.isProduction?a:o)+"wp-json/api/"+F(u.default(e,Object.assign({},t)))},exports.getPremiumApiPath=(e,t)=>{const{premiumBaseApiUrl:r=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r||"https://premium-content-stag.hellohealthgroup.com/")+F(u.default(e,Object.assign({},t)))},exports.getSsoApiPath=(e,t)=>{const{publicSSO:r=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r||"https://staging-id.hellobacsi.com/")+"api/"+F(u.default(e,Object.assign({},t)))},exports.getUrlToSignUp=(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}=exports.GlobalData.env,o=e||window.location.href;return t&&Object.keys(t).map((e=>{z(o,e,t[e])})),z(o,"source","communities"),r?`${r}?returnUrl=${encodeURIComponent(o.toString())}`:o})(`${a}${r}/on-boarding?return=${encodeURIComponent(o)}`,t)},exports.getWebsiteUrlApi=j,exports.locale=H;
8
+ var T=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},o=(t||{}).decode||A,a=0;for(;a<e.length;){var i=e.indexOf("=",a);if(-1===i)break;var l=e.indexOf(";",a);if(-1===l)l=e.length;else if(l<i){a=e.lastIndexOf(";",i-1)+1;continue}var s=e.slice(a,i).trim();if(void 0===r[s]){var n=e.slice(i+1,l).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1)),r[s]=g(n,o)}a=l+1}return r},m=function(e,t,r){var o=r||{},a=o.encode||O;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!b.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!b.test(i))throw new TypeError("argument val is invalid");var l=e+"="+i;if(null!=o.maxAge){var s=o.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(s)}if(o.domain){if(!b.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!b.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){var n=o.expires;if(!function(e){return"[object Date]"===h.call(e)||e instanceof Date}(n)||isNaN(n.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+n.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; 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:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},h=Object.prototype.toString,b=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function A(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function O(e){return encodeURIComponent(e)}function g(e,t){try{return t(e)}catch(t){return e}}var v={parse:T,serialize:m};const L={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}"}},I={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},C=t.createContext({data:I,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null});exports.GlobalData=I;const S="DD/MM/YYYY",f="/images/avatar.jpg",w="/images/default-image.jpg",R={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR",BGC:"BGC"},y={"id-ID":{"kalkulator-bmi":R.BMI,"kebutuhan-kalori":R.BMR,"kalkulator-hari-perkiraan-lahir":R.DUE_DATE,"kalkulator-masa-subur-2":R.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":R.PWG,"kalkulator-detak-jantung-saat-olahraga":R.THR},"ms-MY":{"kalkulator-bmi":R.BMI,"kalkulator-bmr":R.BMR,"kalkulator-tarikh-bersalin":R.DUE_DATE,"kalkulator-kesuburan":R.OVULATION,"kalkulator-tambah-berat-badan-hamil":R.PWG,"target-heart-rate-calculator":R.THR},"vi-VN":{"cach-tinh-chi-so-bmi":R.BMI,"tinh-chi-so-bmr":R.BMR,"cong-cu-tinh-ngay-du-sinh":R.DUE_DATE,"tinh-ngay-rung-trung":R.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":R.PWG,"cong-cu-do-nhip-tim":R.THR},"zh-TW":{"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"due-date-calculator":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnancy-weight-gain-calculator":R.PWG,"target-heart-rate-calculator":R.THR},"en-PH":{"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"due-date-calculator":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnancy-weight-gain-calculator":R.PWG,"target-heart-rate-calculator":R.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":R.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":R.BMR,"เครื่องมือคำนวณกำหนดคลอด":R.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":R.OVULATION,"เครื่องคำนวณน้ำหนักตัว":R.PWG,"เครื่องวัดอัตราการเต้น":R.THR},"hi-IN":{"bmi-calculator-en":R.BMI,"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"delivery-date-calculator":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnancy-weight-gain-calculator":R.PWG,"target-heart-rate-calculator":R.THR},"km-KH":{"គណនា-bmi":R.BMI,"គណនា-bmr":R.BMR,"គណនាថ្ងៃសម្រាលកូន":R.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":R.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":R.PWG,"គណនារកចង្វាក់បេះដូងល្អ":R.THR},"my-MM":{"bmi-calculator":R.BMI,"bmr-calculator":R.BMR,"due-date-calendar":R.DUE_DATE,"ovulation-calculator":R.OVULATION,"pregnaancy-weight-calculator":R.PWG,"target-heartrate":R.THR,"pregnancy-weight-calculator":R.PWG,"target-heart-rate":R.THR}},D="hhg_user_token",P="together_admin_token",G={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},M="hhg-id",x={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"}},N={"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:f,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:w,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:R,LOCALE_HEALTH_TOOLS:y,BEARER_TOKEN_COOKIE:D,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:P,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:M,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:x,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:N});const U={"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"},B={"vi-VN":"marrybaby.vn"},H=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",j=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;return`https://${t?B[e]:U[e]}`},F=e=>{const t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},K=(e,t,r,o)=>{let a="";r&&(a=Object.keys(r).map((e=>e+"="+r[e])).join("&"));const{togetherBaseApiUrl:i=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};let l=u.default(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:j(String(t._locale))}:{}),t));l+=`${l.includes("?")?"&":"?"}${a}`;return(o||i)+"api/v1/"+F(l)},V=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),Y=(t,r,o,a=!1)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,i,l,s;try{const e=yield fetch(a?t:(s=t,encodeURI(s).replace(/%5B/g,"[").replace(/%5D/g,"]")),Object.assign(Object.assign({method:r},V(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===(l=null==r?void 0:r.response)||void 0===l?void 0:l.data)||null}return null})),W=(t,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=v.parse(i||""),l=e[D]||o.getCookie(D);if(l&&l.length){const e=yield fetch(t,Object.assign(Object.assign({method:r},V(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null}));function z(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 $=(e,t,r,o)=>r&&t?`${r}-${t}`:`${c.default(e||"",{lower:!0,locale:o||H})}-${t}`;exports.ADMIN_PATHS={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},exports.BEARER_TOKEN_COOKIE=D,exports.CARE_PATHS={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},exports.DEFAULT_AVATAR_IMG=f,exports.DEFAULT_IMG=w,exports.DISCOVER_PATHS={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}"},exports.DUE_DATE_FORMAT=S,exports.DefaultComponentGlobalContextData=I,exports.Eye=_,exports.HEALTH_TOOL_TYPE=R,exports.LEAD_TOKEN_COOKIE=M,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=L,exports.REPORT_REASON_MAP=x,exports.Share=p,exports.Spinner=d,exports.TogetherComponentGlobalContext=C,exports.TogetherComponentGlobalContextProvider=({locale:e="vi-VN",children:r,userInfo:o,router:a,env:i={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:l=(e=>e),pushNotifications:s=(()=>!1),formatMessage:c})=>{const[u,_]=t.useState();return exports.GlobalData={userInfo:o,locale:e,togetherUserId:u,router:a,env:i},t.useEffect((()=>{(null==o?void 0:o.id)&&W(K(L.PROFILE,{_locale:e}),"GET").then((e=>{var t;_(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)}))}),[null==o?void 0:o.id]),n.default.createElement(C.Provider,{value:{data:{userInfo:o,locale:e,togetherUserId:u,router:a,env:i},action:{pushNotifications:s,sanitizeFunction:l},formatMessage:c}},r)},exports.WhatsApp=E,exports.Z_INDEX=G,exports.callApi=Y,exports.callApiWithAdminAuth=(t,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=v.parse(i||""),l=e[P]||o.getCookie(P);if(l&&l.length){const e=yield fetch(t,Object.assign(Object.assign({method:r},V(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null})),exports.callApiWithAuth=W,exports.callApiWithOptionalAuth=(t,r="GET",a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,l,s,n,c,u;try{const n="string"==typeof t?t:t.url,c="string"==typeof t?t:t.backupUrl,u=v.parse(i||""),_=u[D]||o.getCookie(D);if(!_||!_.length)return Y(c||n,r,a);try{const t=yield fetch(n,Object.assign(Object.assign({method:r},V(a)),{headers:Object.assign({Authorization:"Bearer "+_},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 Y(c||n,r,a);if(t)return t}catch(e){return console.log({status:null===(l=null==e?void 0:e.response)||void 0===l?void 0:l.status,statusText:null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.statusText}),Y(c||n,r,a)}}catch(e){return console.log({status:null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status,statusText:null===(c=null==e?void 0:e.response)||void 0===c?void 0:c.statusText}),(null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.data)||null}return null})),exports.constants=k,exports.cookie=v,exports.domainLocales=U,exports.domainLocalesMarryBaby=B,exports.getApiPath=K,exports.getCareDoctorUrl=({name:e,id:t,locale:r})=>{var o;return`/care/${null===(o=N[r||"vi-VN"])||void 0===o?void 0:o.DOCTOR}/${$(e,t)}`},exports.getCareHospitalUrl=({name:e,id:t,slug:r,locale:o})=>{var a;return`/care/${null===(a=N[o||"vi-VN"])||void 0===a?void 0:a.HOSPITAL}/${$(e,t,r)}`},exports.getCarePath=(e,t)=>{const{careBaseApiUrl:r=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r||"https://service-health-care.hellohealthgroup.com/")+F(u.default(e,Object.assign({},t)))},exports.getCurrentBaseUrl=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;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.":""}${U[e]}`},exports.getDiscoverApiPath=(e,t,r)=>{const{discoverBaseApiUrl:o="",discoverBaseProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(!l.isProduction&&r?a:o)+"wp-json/api/"+F(u.default(e,Object.assign({},t)))},exports.getMarryBabyApiPath=(e,t,r)=>{const{marryBabyApiUrl:o="",marryBabyProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r&&!l.isProduction?a:o)+"wp-json/api/"+F(u.default(e,Object.assign({},t)))},exports.getPremiumApiPath=(e,t)=>{const{premiumBaseApiUrl:r=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r||"https://premium-content-stag.hellohealthgroup.com/")+F(u.default(e,Object.assign({},t)))},exports.getSsoApiPath=(e,t)=>{const{publicSSO:r=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(r||"https://staging-id.hellobacsi.com/")+"api/"+F(u.default(e,Object.assign({},t)))},exports.getUrlToSignUp=(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}=exports.GlobalData.env,o=e||window.location.href;return t&&Object.keys(t).map((e=>{z(o,e,t[e])})),z(o,"source","communities"),r?`${r}?returnUrl=${encodeURIComponent(o.toString())}`:o})(`${a}${r}/on-boarding?return=${encodeURIComponent(o)}`,t)},exports.getWebsiteUrlApi=j,exports.locale=H;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./utils-45e691a3.js"),t=require("styled-components"),o=require("react"),a=require("./index-aa495d24.js"),s=require("./index-85c621a2.js"),n=require("./Subot-4751194d.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(t),h=r(o);const g=l.default.div`
1
+ "use strict";var e=require("./utils-e1f42597.js"),t=require("styled-components"),o=require("react"),s=require("./index-f124e061.js"),a=require("./index-ae78fa34.js"),n=require("./Subot-b0700a95.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(t),h=r(o);const g=l.default.div`
2
2
  position: relative;
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -138,4 +138,4 @@
138
138
  width: unset;
139
139
  margin-bottom: 4px;
140
140
  margin-left: -3px;
141
- `,p=o.memo((({type:e,width:t,height:n})=>{const r=o.useMemo((()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:t||"127px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:n||"27px",src:a.CommonGAssets.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:t||"123px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:n||"57px",src:a.CommonGAssets.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:n||"28px",src:a.CommonGAssets.getAssetPath("logo/marrybaby.png")};default:return null}}),[e,t,n]),{src:l,width:g,height:i}=r||{};return h.default.createElement(s.ImageWrap,{alt:`${e} logo`,className:"main-logo-icon",src:l,style:{width:g,height:i}})})),m={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},d=[n.LOCALE.Vietnam,n.LOCALE.Taiwan,n.LOCALE.Indonesia,n.LOCALE.Malaysia],c=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],x={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]};exports.LogoIcon=p,exports.LunarNewYearLocale=d,exports.StyledLogo=g,exports.StyledProLogo=i,exports.isChristmas=e=>{const t=e.getDate();return 11===e.getMonth()&&t>=16&&t<=25},exports.isLabourDay=e=>{const t=e.getFullYear(),o=new Date(t,4,1),a=new Date(o);a.setDate(o.getDate()-1);const s=new Date(o);return s.setDate(o.getDate()+1),a<=e&&e<=s},exports.isLunarNewYear=e=>{const t=e.getFullYear(),o=m[t];if(!o)return!1;const a=new Date(t,o[1],o[0]),s=new Date(a);s.setDate(a.getDate()-7);const n=new Date(a);return n.setDate(a.getDate()+5),s<=e&&e<=n},exports.isNewYear=e=>{const t=e.getDate(),o=e.getMonth();return 11===o&&t>=26||0===o&&t<=15},exports.isRamadan=e=>{const t=e.getFullYear(),o=c.filter((e=>e.year===t));return!!o.length&&o.some((o=>{const a=o.start[2]||t,s=new Date(a,o.start[1],o.start[0]),n=new Date(a,o.end[1],o.end[0]);return s<=e&&e<=n}))},exports.isVN3004=e=>{const t=e.getFullYear(),o=new Date(t,3,30),a=new Date(o);a.setDate(o.getDate()-1);const s=new Date(o);return s.setDate(o.getDate()+2),a<=e&&e<=s},exports.isVNHungKing=e=>{const t=e.getFullYear(),o=x[t];if(!o)return!1;const a=new Date(t,o[1],o[0]),s=new Date(a);s.setDate(a.getDate()-1);const n=new Date(a);return n.setDate(a.getDate()+1),s<=e&&e<=n};
141
+ `,p=o.memo((({type:e,width:t,height:n})=>{const r=o.useMemo((()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:t||"127px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:n||"27px",src:s.CommonGAssets.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:t||"123px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:n||"57px",src:s.CommonGAssets.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:n||"28px",src:s.CommonGAssets.getAssetPath("logo/marrybaby.png")};default:return null}}),[e,t,n]),{src:l,width:g,height:i}=r||{};return h.default.createElement(a.ImageWrap,{alt:`${e} logo`,className:"main-logo-icon",src:l,style:{width:g,height:i}})})),m={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},d=[n.LOCALE.Vietnam,n.LOCALE.Taiwan,n.LOCALE.Indonesia,n.LOCALE.Malaysia],c=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],x={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]};exports.LogoIcon=p,exports.LunarNewYearLocale=d,exports.StyledLogo=g,exports.StyledProLogo=i,exports.isChristmas=e=>{const t=e.getDate();return 11===e.getMonth()&&t>=16&&t<=25},exports.isLabourDay=e=>{const t=e.getFullYear(),o=new Date(t,4,1),s=new Date(o);s.setDate(o.getDate()-1);const a=new Date(o);return a.setDate(o.getDate()+1),s<=e&&e<=a},exports.isLunarNewYear=e=>{const t=e.getFullYear(),o=m[t];if(!o)return!1;const s=new Date(t,o[1],o[0]),a=new Date(s);a.setDate(s.getDate()-7);const n=new Date(s);return n.setDate(s.getDate()+5),a<=e&&e<=n},exports.isNewYear=e=>{const t=e.getDate(),o=e.getMonth();return 11===o&&t>=26||0===o&&t<=15},exports.isRamadan=e=>{const t=e.getFullYear(),o=c.filter((e=>e.year===t));return!!o.length&&o.some((o=>{const s=o.start[2]||t,a=new Date(s,o.start[1],o.start[0]),n=new Date(s,o.end[1],o.end[0]);return a<=e&&e<=n}))},exports.isVN3004=e=>{const t=e.getFullYear(),o=new Date(t,3,30),s=new Date(o);s.setDate(o.getDate()-1);const a=new Date(o);return a.setDate(o.getDate()+2),s<=e&&e<=a},exports.isVNHungKing=e=>{const t=e.getFullYear(),o=x[t];if(!o)return!1;const s=new Date(t,o[1],o[0]),a=new Date(s);a.setDate(s.getDate()-1);const n=new Date(s);return n.setDate(s.getDate()+1),a<=e&&e<=n};
@@ -0,0 +1 @@
1
+ "use strict";var a=require("./Subot-b0700a95.js");const i={[a.LOCALE.Vietnam]:"VN",[a.LOCALE.Cambodia]:"KH",[a.LOCALE.Indonesia]:"ID",[a.LOCALE.Malaysia]:"MY",[a.LOCALE.PhilippinesEnglish]:"PH",[a.LOCALE.PhilippinesTagalog]:"PH",[a.LOCALE.Taiwan]:"TW",[a.LOCALE.Thailand]:"TH",[a.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=i,exports.hiddenEmailChar=(a="")=>{const i=a.indexOf("@"),L=a.substring(0,i),e=L.length>3?3:L.length;return a.replace(a.substring(e,i),a.slice(e,i).replace(/./g,"x"))};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-ceb091fd.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-85c621a2.js");require("@mantine/dates"),require("./index-90f4bc02.js");var n=require("./Subot-4751194d.js");require("./index-aa495d24.js");var r=require("./index-b320255d.js"),i=require("./theme-f2b8aad7.js"),o=require("./useTranslations-233c68bc.js"),c=require("@mantine/hooks"),s=require("styled-components"),d=require("./utils-45e691a3.js"),u=require("./index-ed8656f9.js");require("./translationsContext-4c4c33c4.js"),require("string-format");var m=require("@hhgtech/icons/other"),C=require("./index-d25afe2f.js"),f=require("@mantine/form"),p=require("dayjs"),g=require("dayjs/plugin/customParseFormat"),h=require("./index-f7088d57.js");require("./index.styles-2ecb9c85.js");var b=require("./index-f6217f73.js");function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./constants-00e06f68.js"),require("./utils-bee8be92.js"),require("./utils-13ea4f2f.js"),require("./index.styled-0a1fb891.js"),require("./index-58e0d49f.js"),require("@mantine/carousel"),require("classnames"),require("./useUniqueId-46834e18.js"),require("@hhgtech/icons/core"),require("date-fns/locale"),require("./isProduction-28d96804.js"),require("./animation-d5d9ef32.js"),require("react-keyed-flatten-children"),require("./cookieHelper-7d519a72.js"),require("slugify");var x=E(t),v=E(s),y=E(p),T=E(g);const w=v.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-f82cfdbc.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-ae78fa34.js");require("@mantine/dates"),require("./index-2ce34495.js");var n=require("./Subot-b0700a95.js");require("./index-f124e061.js");var r=require("./index-3f31aa06.js"),i=require("./theme-58404344.js"),o=require("./useTranslations-d91f297f.js"),c=require("@mantine/hooks"),s=require("styled-components"),d=require("./utils-e1f42597.js"),u=require("./index-6c8c7fa5.js");require("./translationsContext-6a4e467c.js"),require("string-format");var m=require("@hhgtech/icons/other"),C=require("./index-d0a7d5e2.js"),f=require("@mantine/form"),p=require("dayjs"),g=require("dayjs/plugin/customParseFormat"),h=require("./index-9eed92e6.js");require("./index.styles-e56f16e2.js");var b=require("./index-219cacd2.js");function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./constants-47b9b5ff.js"),require("./utils-dd2fab54.js"),require("./utils-6c4e6bc4.js"),require("./index.styled-625bfdc7.js"),require("./index-de63ce4e.js"),require("@mantine/carousel"),require("classnames"),require("./useUniqueId-76286c45.js"),require("@hhgtech/icons/core"),require("date-fns/locale"),require("./isProduction-b8d43f53.js"),require("./animation-ea278d9a.js"),require("react-keyed-flatten-children"),require("./cookieHelper-effc4373.js"),require("slugify");var x=E(t),v=E(s),y=E(p),T=E(g);const w=v.default.div`
2
2
  position: relative;
3
3
  padding: 16px;
4
4
  min-height: 110px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hhgtech/hhg-components",
3
- "version": "1.28.67",
3
+ "version": "1.28.68",
4
4
  "main": "build/index.js",
5
5
  "module": "build/esm/index.js",
6
6
  "files": [
@@ -1 +0,0 @@
1
- import{a as t}from"./tslib.es6-266309d1.js";import{n as o}from"./normalizeLink-1c194268.js";import{c as i}from"./routing-2b284b30.js";import{g as l}from"./core-80112758.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=l=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===l?"lang=fil":"";let r=[];try{const a=yield fetch(o(`${i(l)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));r=(null===(e=null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,l))))||[]}catch(t){}return r}catch(t){console.error(t)}})),s=o=>t(void 0,void 0,void 0,(function*(){return(yield l("all-health-tools",(()=>e(o||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
@@ -1 +0,0 @@
1
- import{_ as t}from"./tslib.es6-266309d1.js";import a from"react";import{useMantineTheme as e}from"@mantine/core";import{T as o}from"./index-d27a0e25.js";const r=r=>{var{as:n,tag:s,color:i,fontWeight:d,dataEventCategory:c,dataEventAction:l,dataEventLabel:m}=r,g=t(r,["as","tag","color","fontWeight","dataEventCategory","dataEventAction","dataEventLabel"]);const v=n||s,b=e();return a.createElement(o,Object.assign({as:v,color:i||b.colors.gray[8],"data-event-category":c,"data-event-action":l,"data-event-label":m,weight:"semibold"===d?"semiBold":"bold",size:s},g))};export{r as H};
@@ -1 +0,0 @@
1
- import{_ as t}from"./tslib.es6-266309d1.js";import e from"react";import"./index-5408f5a4.js";import"@mantine/core";import"@mantine/dates";import"./index-9e5956c2.js";import"./Subot-4642c5bf.js";import"./index-2e99f941.js";import{T as i}from"./index-d27a0e25.js";import"./theme-3db3c9a8.js";import"./translationsContext-6d2efd65.js";import"string-format";import"@mantine/hooks";import"./utils-5b4e60da.js";const r=r=>{var{size:o="base",type:s="regular"}=r,m=t(r,["size","type"]);return e.createElement(i,Object.assign({size:o,weight:"caption"===s?"bold":s},m))};export{r as T};
@@ -1 +0,0 @@
1
- import{_ as e}from"./tslib.es6-266309d1.js";import t,{useState as n,useEffect as o}from"react";import{useDebouncedValue as a}from"@mantine/hooks";import{D as s,g as i,B as r,h as l}from"./index-5408f5a4.js";const m=m=>{var{color:c,withControl:h,onChange:d,value:u,min:g,max:k,isStatic:p,containerClassName:v,containerStyle:C}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[E,f]=n(u||g||0),[w]=a(E,s);return o((()=>{null==d||d(w)}),[w]),o((()=>{f(u)}),[u]),t.createElement(i,{className:v,style:C},h&&t.createElement(r,{type:"button",size:"sm",color:"ghost",onClick:()=>{f((e=>g&&e===g?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:E,onChange:p?()=>null:f,min:g,max:k},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(r,{type:"button",size:"sm",variant:"ghost",onClick:()=>{f((e=>k&&e===k?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
@@ -1 +0,0 @@
1
- import{_ as e}from"./tslib.es6-266309d1.js";import t from"react";import{S as s,a}from"./index.styled-14b65c9e.js";const r=a=>{var{type:r,color:l,style:o}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},l&&{"--text-color":l}),o)},c))},l=s=>{var{type:r,color:l,style:o}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},o),l&&{"--text-color":l})},c))};export{l as M,r as a};
@@ -1 +0,0 @@
1
- import{_ as o}from"./tslib.es6-266309d1.js";import t from"react";import{Indicator as e}from"@mantine/core";import{t as r}from"./theme-3db3c9a8.js";const s=s=>{var{styles:i,color:n=r.colors.red700}=s,a=o(s,["styles","color"]);return t.createElement(e,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:n},a))};export{s as I};
@@ -1 +0,0 @@
1
- import{a as o}from"./tslib.es6-266309d1.js";import{useState as t,useEffect as i,useCallback as a}from"react";import{a as l}from"./getDynamicHealthTool-a4c9d6dd.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 +0,0 @@
1
- import{a as e}from"./tslib.es6-266309d1.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 +0,0 @@
1
- "use strict";var t=require("./tslib.es6-ceb091fd.js"),i=require("./normalizeLink-594ccff1.js"),e=require("./routing-f2edd0d0.js"),l=require("./core-ba3af3e2.js");const o=(t,i)=>{var e,l;if(!t)return{};const o="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:`${o}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${o}/`,"/")),subtitle:t.subtitle,title:t.title}},n=l=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{const a="tl-PH"===l?"lang=fil":"";let r=[];try{const s=yield fetch(i.normalizeLinkSlash(`${e.getDiscoverApiDomain(l)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));r=(null===(n=null===(t=null==s?void 0:s.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>o(t,l))))||[]}catch(t){}return r}catch(t){console.error(t)}}));exports.formatHealthTool=o,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=i=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield l.getDataWithCache("all-health-tools",(()=>n(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
@@ -1 +0,0 @@
1
- "use strict";var e=require("./tslib.es6-ceb091fd.js"),r=require("react");require("./index-85c621a2.js"),require("@mantine/core"),require("@mantine/dates"),require("./index-90f4bc02.js"),require("./Subot-4751194d.js"),require("./index-aa495d24.js");var t=require("./index-b320255d.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./theme-f2b8aad7.js"),require("./translationsContext-4c4c33c4.js"),require("string-format"),require("@mantine/hooks"),require("./utils-45e691a3.js");var s=i(r);exports.Text=r=>{var{size:i="base",type:a="regular"}=r,u=e.__rest(r,["size","type"]);return s.default.createElement(t.Text,Object.assign({size:i,weight:"caption"===a?"bold":a},u))};