@hhgtech/hhg-components 1.27.124 → 1.27.125

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 (260) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components.js +1 -1
  5. package/build/constants.js +1 -1
  6. package/build/core-2b65eb92.js +1 -0
  7. package/build/ecom/interfaces/constants.d.ts +0 -1
  8. package/build/ecom.js +1 -1
  9. package/build/esm/babyGrowth.js +4 -4
  10. package/build/esm/cache.js +1 -1
  11. package/build/esm/care.js +1 -1
  12. package/build/esm/components.js +1 -1
  13. package/build/esm/constants.js +1 -1
  14. package/build/esm/{core-7ae30083.js → core-fdc75215.js} +1 -1
  15. package/build/esm/ecom/interfaces/constants.d.ts +0 -1
  16. package/build/esm/ecom.js +1 -1
  17. package/build/esm/{fixedBottomAdBlock-660792ef.js → fixedBottomAdBlock-cba60a01.js} +1 -1
  18. package/build/esm/footer.js +1 -1
  19. package/build/esm/gAssets.js +1 -1
  20. package/build/esm/{getDynamicHealthTool-c771566e.js → getDynamicHealthTool-63575563.js} +1 -1
  21. package/build/esm/{getSocialList-bec7829d.js → getSocialList-2c8f1b1d.js} +1 -1
  22. package/build/esm/hooks.js +1 -1
  23. package/build/esm/i18n.js +1 -1
  24. package/build/esm/i18nV2.js +1 -1
  25. package/build/esm/{index-1d2daa95.js → index-131d21cd.js} +1 -1
  26. package/build/esm/{index-94068e3f.js → index-2c98038d.js} +1 -1
  27. package/build/esm/{index-d217485f.js → index-32764486.js} +1 -1
  28. package/build/esm/{index-f4691f44.js → index-3a02ca5b.js} +1 -1
  29. package/build/esm/{index-6384bfbc.js → index-693b6322.js} +1 -1
  30. package/build/esm/{index-0eee890e.js → index-6bab5c0e.js} +1 -1
  31. package/build/esm/{index-ddf66d49.js → index-711ca432.js} +1 -1
  32. package/build/esm/{index-4bf3154c.js → index-74ee1f99.js} +2 -2
  33. package/build/esm/index-844c9bda.js +1 -0
  34. package/build/esm/{index-2daca7dd.js → index-87a7201e.js} +1 -1
  35. package/build/esm/{index-61e1459d.js → index-97eaec16.js} +1 -1
  36. package/build/esm/{index-235f43fe.js → index-9b256d9e.js} +1 -1
  37. package/build/esm/{index-c9e74f1d.js → index-a2f65f68.js} +6 -6
  38. package/build/esm/{index-114b0994.js → index-af7cad58.js} +4 -4
  39. package/build/esm/{index-7fd9c29c.js → index-b890aa2d.js} +1 -1
  40. package/build/esm/{index-ddc6611a.js → index-be7b9207.js} +1 -1
  41. package/build/esm/{index-d1512ba9.js → index-bfb81195.js} +1 -1
  42. package/build/esm/{index-5ee3ec4a.js → index-c2148518.js} +1 -1
  43. package/build/esm/{index-f0e3970a.js → index-d58c2fc9.js} +1 -1
  44. package/build/esm/{index-400dbcf2.js → index-e2a6c66e.js} +1 -1
  45. package/build/esm/{index-635cd132.js → index-e5e424b0.js} +1 -1
  46. package/build/esm/index.js +1 -1
  47. package/build/esm/{index.styled-8f15b66e.js → index.styled-592c884b.js} +2 -2
  48. package/build/esm/{index.styled-80ac962e.js → index.styled-ca024db9.js} +3 -3
  49. package/build/esm/{index.styled-a17185a3.js → index.styled-d0d9d441.js} +1 -1
  50. package/build/esm/{index.styles-84264296.js → index.styles-3945ab19.js} +1 -1
  51. package/build/esm/lead.js +1 -1
  52. package/build/esm/mantine.js +1 -1
  53. package/build/esm/misc.js +1 -1
  54. package/build/esm/navigation.js +1 -1
  55. package/build/esm/{normalizeLink-08f6b8bc.js → normalizeLink-daba42d1.js} +1 -1
  56. package/build/esm/onboarding.js +1 -1
  57. package/build/esm/onboardingV2.js +1 -1
  58. package/build/esm/pwg.js +1 -1
  59. package/build/esm/together.js +1 -1
  60. package/build/esm/{types-1ae195b5.js → types-02c98516.js} +1 -1
  61. package/build/esm/{types-db4ca794.js → types-2dd0f940.js} +1 -1
  62. package/build/esm/types.js +1 -1
  63. package/build/esm/{useCategory-59efba9b.js → useCategory-594c8e1a.js} +1 -1
  64. package/build/esm/useHealthToolCache-f6d148f9.js +1 -0
  65. package/build/esm/{useRafState-042b9b4e.js → useRafState-7d662773.js} +1 -1
  66. package/build/esm/useTranslations-d67c362e.js +1 -0
  67. package/build/esm/{utils-30bfad1b.js → utils-0311d22b.js} +1 -1
  68. package/build/esm/vaccination.js +1 -1
  69. package/build/{fixedBottomAdBlock-11bc37d1.js → fixedBottomAdBlock-3aed8c36.js} +1 -1
  70. package/build/footer.js +1 -1
  71. package/build/gAssets.js +1 -1
  72. package/build/{getDynamicHealthTool-c3ec7203.js → getDynamicHealthTool-f50ea67d.js} +1 -1
  73. package/build/{getSocialList-9959c4bc.js → getSocialList-c525a428.js} +1 -1
  74. package/build/hooks.js +1 -1
  75. package/build/i18n.js +1 -1
  76. package/build/i18nV2.js +1 -1
  77. package/build/{index-c917bb6a.js → index-0cb8bc96.js} +1 -1
  78. package/build/{index-9e1e27c4.js → index-10fcb1ea.js} +1 -1
  79. package/build/{index-f8959db6.js → index-1223eb4f.js} +2 -2
  80. package/build/{index-6968d72c.js → index-1a6851b1.js} +1 -1
  81. package/build/{index-cd875ad3.js → index-21222332.js} +1 -1
  82. package/build/{index-19063c94.js → index-240ac4db.js} +11 -11
  83. package/build/{index-2654ea13.js → index-28469f4e.js} +1 -1
  84. package/build/{index-623e5f9e.js → index-2b1e8db5.js} +1 -1
  85. package/build/{index-65622957.js → index-4caae164.js} +1 -1
  86. package/build/{index-dd83265f.js → index-667c791c.js} +1 -1
  87. package/build/{index-45a27811.js → index-82f71333.js} +1 -1
  88. package/build/{index-b90a3e0d.js → index-888fdba1.js} +1 -1
  89. package/build/index-8a132763.js +1 -0
  90. package/build/{index-126c526c.js → index-94a5fbab.js} +1 -1
  91. package/build/{index-46d9cba7.js → index-a4c58abb.js} +1 -1
  92. package/build/{index-3a498415.js → index-b44af0b1.js} +1 -1
  93. package/build/{index-94f6ea66.js → index-bcb9f477.js} +1 -1
  94. package/build/{index-146c0662.js → index-c29fab0e.js} +1 -1
  95. package/build/{index-9faf9072.js → index-d2d43e0c.js} +1 -1
  96. package/build/{index-cb93a5a5.js → index-df8919fb.js} +1 -1
  97. package/build/{index-2f2b9b6f.js → index-f313b4f1.js} +1 -1
  98. package/build/index.js +1 -1
  99. package/build/{index.styled-fb3b67b4.js → index.styled-49d29249.js} +6 -6
  100. package/build/{index.styled-8786f3c7.js → index.styled-6c6496c3.js} +4 -4
  101. package/build/{index.styled-5782fa6c.js → index.styled-d8110631.js} +1 -1
  102. package/build/{index.styles-e11660ee.js → index.styles-39df8ae0.js} +1 -1
  103. package/build/lead.js +1 -1
  104. package/build/mantine.js +1 -1
  105. package/build/misc.js +1 -1
  106. package/build/navigation.js +1 -1
  107. package/build/{normalizeLink-013048ff.js → normalizeLink-cf4485e8.js} +1 -1
  108. package/build/onboarding.js +1 -1
  109. package/build/onboardingV2.js +1 -1
  110. package/build/pwg.js +1 -1
  111. package/build/together.js +1 -1
  112. package/build/{types-198d6aa6.js → types-3d7acc15.js} +1 -1
  113. package/build/{types-a9a8b6da.js → types-93866a49.js} +1 -1
  114. package/build/types.js +1 -1
  115. package/build/{useCategory-642c5d6e.js → useCategory-0856ee2c.js} +1 -1
  116. package/build/{useHealthToolCache-be0f5a6c.js → useHealthToolCache-48e07107.js} +1 -1
  117. package/build/{useRafState-36fa6aa1.js → useRafState-8a4aa1e1.js} +1 -1
  118. package/build/{useTranslations-10d0cd79.js → useTranslations-b6bf15b4.js} +1 -1
  119. package/build/{utils-79d816c1.js → utils-8f249b1c.js} +1 -1
  120. package/build/vaccination.js +1 -1
  121. package/package.json +1 -1
  122. package/build/core-2677ffe8.js +0 -1
  123. package/build/esm/index-716f19eb.js +0 -1
  124. package/build/esm/useHealthToolCache-f99a226a.js +0 -1
  125. package/build/esm/useTranslations-2a6726ad.js +0 -1
  126. package/build/index-0af2e00e.js +0 -1
  127. /package/build/{BMI_BOYS.percentile.monthly-149c39a8.js → BMI_BOYS.percentile.monthly-65148aff.js} +0 -0
  128. /package/build/{BMI_BOYS.percentile.weekly-00f91ec1.js → BMI_BOYS.percentile.weekly-6703343a.js} +0 -0
  129. /package/build/{BMI_BOYS.percentile.yearly-c2fdd8ef.js → BMI_BOYS.percentile.yearly-7c394683.js} +0 -0
  130. /package/build/{BMI_BOYS.zscore.monthly-938480af.js → BMI_BOYS.zscore.monthly-ca0293ae.js} +0 -0
  131. /package/build/{BMI_BOYS.zscore.weekly-09b37919.js → BMI_BOYS.zscore.weekly-da6c5ef5.js} +0 -0
  132. /package/build/{BMI_BOYS.zscore.yearly-3573e4a9.js → BMI_BOYS.zscore.yearly-bd5fd152.js} +0 -0
  133. /package/build/{BMI_GIRLS.percentile.monthly-83375318.js → BMI_GIRLS.percentile.monthly-8dcde30e.js} +0 -0
  134. /package/build/{BMI_GIRLS.percentile.weekly-90d70211.js → BMI_GIRLS.percentile.weekly-c3fbc1c7.js} +0 -0
  135. /package/build/{BMI_GIRLS.percentile.yearly-4de59211.js → BMI_GIRLS.percentile.yearly-38f6bc36.js} +0 -0
  136. /package/build/{BMI_GIRLS.zscore.monthly-10c1e6e1.js → BMI_GIRLS.zscore.monthly-b13d4c67.js} +0 -0
  137. /package/build/{BMI_GIRLS.zscore.weekly-92e033a1.js → BMI_GIRLS.zscore.weekly-81399074.js} +0 -0
  138. /package/build/{BMI_GIRLS.zscore.yearly-e338a676.js → BMI_GIRLS.zscore.yearly-13c7c5bc.js} +0 -0
  139. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2c03f51a.js → HEAD CIRCUM_BOYS.percentile.monthly-6fe6a067.js} +0 -0
  140. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-bb797f18.js → HEAD CIRCUM_BOYS.percentile.weekly-6602eb7f.js} +0 -0
  141. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-b73f8979.js → HEAD CIRCUM_BOYS.percentile.yearly-7d043cef.js} +0 -0
  142. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-bb29b03a.js → HEAD CIRCUM_BOYS.zscore.monthly-6527858d.js} +0 -0
  143. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-3dea97fe.js → HEAD CIRCUM_BOYS.zscore.weekly-d44f7c2f.js} +0 -0
  144. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b3df7539.js → HEAD CIRCUM_BOYS.zscore.yearly-85d01751.js} +0 -0
  145. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-a99ae1b6.js → HEAD CIRCUM_GIRLS.percentile.monthly-2366b290.js} +0 -0
  146. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e73fed83.js → HEAD CIRCUM_GIRLS.percentile.weekly-a3aaf18b.js} +0 -0
  147. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-a9b97026.js → HEAD CIRCUM_GIRLS.percentile.yearly-2fcf7a78.js} +0 -0
  148. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-cac3664d.js → HEAD CIRCUM_GIRLS.zscore.monthly-d92fe98d.js} +0 -0
  149. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6b51389f.js → HEAD CIRCUM_GIRLS.zscore.weekly-a344f2e5.js} +0 -0
  150. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-672a7fce.js → HEAD CIRCUM_GIRLS.zscore.yearly-02e6e3b2.js} +0 -0
  151. /package/build/{HEIGHT_BOYS.percentile.monthly-86583084.js → HEIGHT_BOYS.percentile.monthly-ad357e14.js} +0 -0
  152. /package/build/{HEIGHT_BOYS.percentile.weekly-41d345a6.js → HEIGHT_BOYS.percentile.weekly-98cb40c0.js} +0 -0
  153. /package/build/{HEIGHT_BOYS.percentile.yearly-9cb053de.js → HEIGHT_BOYS.percentile.yearly-956ea8c7.js} +0 -0
  154. /package/build/{HEIGHT_BOYS.zscore.monthly-a6aff577.js → HEIGHT_BOYS.zscore.monthly-c06fa60c.js} +0 -0
  155. /package/build/{HEIGHT_BOYS.zscore.weekly-b63dd8fb.js → HEIGHT_BOYS.zscore.weekly-551dc31e.js} +0 -0
  156. /package/build/{HEIGHT_BOYS.zscore.yearly-096cf2ab.js → HEIGHT_BOYS.zscore.yearly-6aaa8080.js} +0 -0
  157. /package/build/{HEIGHT_GIRLS.percentile.monthly-a97ddc4b.js → HEIGHT_GIRLS.percentile.monthly-dd26cc04.js} +0 -0
  158. /package/build/{HEIGHT_GIRLS.percentile.weekly-68a4d45e.js → HEIGHT_GIRLS.percentile.weekly-9317073c.js} +0 -0
  159. /package/build/{HEIGHT_GIRLS.percentile.yearly-3a1fb2fb.js → HEIGHT_GIRLS.percentile.yearly-4813b4e2.js} +0 -0
  160. /package/build/{HEIGHT_GIRLS.zscore.monthly-7b9252a0.js → HEIGHT_GIRLS.zscore.monthly-fb5600c2.js} +0 -0
  161. /package/build/{HEIGHT_GIRLS.zscore.weekly-953e138f.js → HEIGHT_GIRLS.zscore.weekly-a3d37549.js} +0 -0
  162. /package/build/{HEIGHT_GIRLS.zscore.yearly-dcf8dfac.js → HEIGHT_GIRLS.zscore.yearly-ff8fe60a.js} +0 -0
  163. /package/build/{Onboarding-e89cd92f.js → Onboarding-ff8e56fb.js} +0 -0
  164. /package/build/{Visible-b5af9ea7.js → Visible-4df868b9.js} +0 -0
  165. /package/build/{WEIGHT_BOYS.percentile.monthly-59b8e928.js → WEIGHT_BOYS.percentile.monthly-48cc2d8d.js} +0 -0
  166. /package/build/{WEIGHT_BOYS.percentile.weekly-b957985d.js → WEIGHT_BOYS.percentile.weekly-2b30885c.js} +0 -0
  167. /package/build/{WEIGHT_BOYS.percentile.yearly-c9367a8a.js → WEIGHT_BOYS.percentile.yearly-5c5c3f0f.js} +0 -0
  168. /package/build/{WEIGHT_BOYS.zscore.monthly-c66285a2.js → WEIGHT_BOYS.zscore.monthly-12f8db88.js} +0 -0
  169. /package/build/{WEIGHT_BOYS.zscore.weekly-1a0f69d3.js → WEIGHT_BOYS.zscore.weekly-70501d3b.js} +0 -0
  170. /package/build/{WEIGHT_BOYS.zscore.yearly-e39af9f9.js → WEIGHT_BOYS.zscore.yearly-c44f70a1.js} +0 -0
  171. /package/build/{WEIGHT_GIRLS.percentile.monthly-6b4eec36.js → WEIGHT_GIRLS.percentile.monthly-2907a79c.js} +0 -0
  172. /package/build/{WEIGHT_GIRLS.percentile.weekly-f6db90cd.js → WEIGHT_GIRLS.percentile.weekly-271f6a70.js} +0 -0
  173. /package/build/{WEIGHT_GIRLS.percentile.yearly-2984069f.js → WEIGHT_GIRLS.percentile.yearly-bf128547.js} +0 -0
  174. /package/build/{WEIGHT_GIRLS.zscore.monthly-cdf2d6e0.js → WEIGHT_GIRLS.zscore.monthly-67e80395.js} +0 -0
  175. /package/build/{WEIGHT_GIRLS.zscore.weekly-4342d1ee.js → WEIGHT_GIRLS.zscore.weekly-787c731c.js} +0 -0
  176. /package/build/{WEIGHT_GIRLS.zscore.yearly-ae0f1cb8.js → WEIGHT_GIRLS.zscore.yearly-2ccf0195.js} +0 -0
  177. /package/build/{constants-d04930bd.js → constants-1c9533f8.js} +0 -0
  178. /package/build/{cookieHelper-930da89d.js → cookieHelper-fb5b7a25.js} +0 -0
  179. /package/build/{dataTransform-c8f67078.js → dataTransform-52400d51.js} +0 -0
  180. /package/build/esm/{BMI_BOYS.percentile.monthly-5bc4a316.js → BMI_BOYS.percentile.monthly-bde2483d.js} +0 -0
  181. /package/build/esm/{BMI_BOYS.percentile.weekly-0aebc2c2.js → BMI_BOYS.percentile.weekly-754f06fb.js} +0 -0
  182. /package/build/esm/{BMI_BOYS.percentile.yearly-54f531ae.js → BMI_BOYS.percentile.yearly-6310c5fc.js} +0 -0
  183. /package/build/esm/{BMI_BOYS.zscore.monthly-de484a45.js → BMI_BOYS.zscore.monthly-9ace4e34.js} +0 -0
  184. /package/build/esm/{BMI_BOYS.zscore.weekly-c0e6a2ee.js → BMI_BOYS.zscore.weekly-4b42ca58.js} +0 -0
  185. /package/build/esm/{BMI_BOYS.zscore.yearly-e0e11ead.js → BMI_BOYS.zscore.yearly-8e63c4bc.js} +0 -0
  186. /package/build/esm/{BMI_GIRLS.percentile.monthly-79df8d22.js → BMI_GIRLS.percentile.monthly-d5f2cbcb.js} +0 -0
  187. /package/build/esm/{BMI_GIRLS.percentile.weekly-ffc4b787.js → BMI_GIRLS.percentile.weekly-ff84fc7b.js} +0 -0
  188. /package/build/esm/{BMI_GIRLS.percentile.yearly-d1e16d02.js → BMI_GIRLS.percentile.yearly-d9c9e820.js} +0 -0
  189. /package/build/esm/{BMI_GIRLS.zscore.monthly-44ba19f7.js → BMI_GIRLS.zscore.monthly-540120ab.js} +0 -0
  190. /package/build/esm/{BMI_GIRLS.zscore.weekly-75b082af.js → BMI_GIRLS.zscore.weekly-5e327317.js} +0 -0
  191. /package/build/esm/{BMI_GIRLS.zscore.yearly-eecb3681.js → BMI_GIRLS.zscore.yearly-903bb105.js} +0 -0
  192. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-6b44e0b5.js → HEAD CIRCUM_BOYS.percentile.monthly-496b7e0c.js} +0 -0
  193. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-4d415873.js → HEAD CIRCUM_BOYS.percentile.weekly-a75900ab.js} +0 -0
  194. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-0c94c47e.js → HEAD CIRCUM_BOYS.percentile.yearly-db8b4313.js} +0 -0
  195. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-7ff98046.js → HEAD CIRCUM_BOYS.zscore.monthly-33f1b006.js} +0 -0
  196. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c2d749d2.js → HEAD CIRCUM_BOYS.zscore.weekly-c14b80dd.js} +0 -0
  197. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-a611fa0f.js → HEAD CIRCUM_BOYS.zscore.yearly-6ef8ca34.js} +0 -0
  198. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-869bc323.js → HEAD CIRCUM_GIRLS.percentile.monthly-81765177.js} +0 -0
  199. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e4dbb5cc.js → HEAD CIRCUM_GIRLS.percentile.weekly-94a08c4a.js} +0 -0
  200. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-262c8fa2.js → HEAD CIRCUM_GIRLS.percentile.yearly-bb58904d.js} +0 -0
  201. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-6424e8af.js → HEAD CIRCUM_GIRLS.zscore.monthly-55ceffcd.js} +0 -0
  202. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3b057248.js → HEAD CIRCUM_GIRLS.zscore.weekly-6b6be763.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-ed59bf39.js → HEAD CIRCUM_GIRLS.zscore.yearly-a9708b17.js} +0 -0
  204. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1878a4d0.js → HEIGHT_BOYS.percentile.monthly-4f8bb14b.js} +0 -0
  205. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-c32dac3e.js → HEIGHT_BOYS.percentile.weekly-542d6bdf.js} +0 -0
  206. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-5b2e6515.js → HEIGHT_BOYS.percentile.yearly-42931ace.js} +0 -0
  207. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-cdf78c11.js → HEIGHT_BOYS.zscore.monthly-05296548.js} +0 -0
  208. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-9bf8e0a7.js → HEIGHT_BOYS.zscore.weekly-db38c397.js} +0 -0
  209. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-e531fec7.js → HEIGHT_BOYS.zscore.yearly-51642d0d.js} +0 -0
  210. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-4a3d6d5e.js → HEIGHT_GIRLS.percentile.monthly-d930afdb.js} +0 -0
  211. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-2b4f2c41.js → HEIGHT_GIRLS.percentile.weekly-e464d82b.js} +0 -0
  212. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-c8b40037.js → HEIGHT_GIRLS.percentile.yearly-f7c4036e.js} +0 -0
  213. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-67bc81da.js → HEIGHT_GIRLS.zscore.monthly-51210c66.js} +0 -0
  214. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-63d04a2d.js → HEIGHT_GIRLS.zscore.weekly-3f658c4c.js} +0 -0
  215. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-63eab4d6.js → HEIGHT_GIRLS.zscore.yearly-7dcafdef.js} +0 -0
  216. /package/build/esm/{Onboarding-31b3a30c.js → Onboarding-a7eb7569.js} +0 -0
  217. /package/build/esm/{Visible-bc29c4b2.js → Visible-26092f16.js} +0 -0
  218. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-3c25331d.js → WEIGHT_BOYS.percentile.monthly-f3b84fd5.js} +0 -0
  219. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-6ca9c60c.js → WEIGHT_BOYS.percentile.weekly-323cfc1a.js} +0 -0
  220. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-ee604c89.js → WEIGHT_BOYS.percentile.yearly-1fde5764.js} +0 -0
  221. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4caa7530.js → WEIGHT_BOYS.zscore.monthly-3a638cc6.js} +0 -0
  222. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-67984e80.js → WEIGHT_BOYS.zscore.weekly-64221420.js} +0 -0
  223. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-b02c9422.js → WEIGHT_BOYS.zscore.yearly-57d2db75.js} +0 -0
  224. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-48794e0a.js → WEIGHT_GIRLS.percentile.monthly-01068bf4.js} +0 -0
  225. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-11ca82bb.js → WEIGHT_GIRLS.percentile.weekly-a40dced4.js} +0 -0
  226. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-66f30fd4.js → WEIGHT_GIRLS.percentile.yearly-0f0e6f72.js} +0 -0
  227. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-a4bb9145.js → WEIGHT_GIRLS.zscore.monthly-d3c0cd98.js} +0 -0
  228. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-bc4b1f1e.js → WEIGHT_GIRLS.zscore.weekly-1d0362da.js} +0 -0
  229. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-2661bfb1.js → WEIGHT_GIRLS.zscore.yearly-f1b3051b.js} +0 -0
  230. /package/build/esm/{constants-b3b346a4.js → constants-bf4353da.js} +0 -0
  231. /package/build/esm/{cookieHelper-07052ace.js → cookieHelper-d91e9813.js} +0 -0
  232. /package/build/esm/{dataTransform-e4fc6392.js → dataTransform-ee032d99.js} +0 -0
  233. /package/build/esm/{index-bc199281.js → index-1b84d1a5.js} +0 -0
  234. /package/build/esm/{isProduction-7a7c6ecc.js → isProduction-0a7e017f.js} +0 -0
  235. /package/build/esm/{localizeNumberFormat-0874e73b.js → localizeNumberFormat-02006d22.js} +0 -0
  236. /package/build/esm/{number-05c45808.js → number-7c26679c.js} +0 -0
  237. /package/build/esm/{paths-6a6772c7.js → paths-d8cac87d.js} +0 -0
  238. /package/build/esm/{screenSizeContext-fa90677d.js → screenSizeContext-b94bd39f.js} +0 -0
  239. /package/build/esm/{theme-62002a29.js → theme-2167a70f.js} +0 -0
  240. /package/build/esm/{translationsContext-233071ee.js → translationsContext-73116691.js} +0 -0
  241. /package/build/esm/{tslib.es6-99366ebb.js → tslib.es6-498ff355.js} +0 -0
  242. /package/build/esm/{types-f9c83a14.js → types-6011b8b9.js} +0 -0
  243. /package/build/esm/{useIsInit-b28ee850.js → useIsInit-fc4215e4.js} +0 -0
  244. /package/build/esm/{useOutsideClick-f6b5cd0e.js → useOutsideClick-a718f13c.js} +0 -0
  245. /package/build/esm/{useScrollbarSize-e304779e.js → useScrollbarSize-3a61acf8.js} +0 -0
  246. /package/build/esm/{useUniqueId-ec49984b.js → useUniqueId-399d794e.js} +0 -0
  247. /package/build/{index-c48e2136.js → index-b0d35ab7.js} +0 -0
  248. /package/build/{isProduction-a9c34dc0.js → isProduction-17957999.js} +0 -0
  249. /package/build/{localizeNumberFormat-17c3c4b6.js → localizeNumberFormat-8271f13c.js} +0 -0
  250. /package/build/{number-f2401651.js → number-364c2be4.js} +0 -0
  251. /package/build/{paths-daf0280c.js → paths-c4b7d0e7.js} +0 -0
  252. /package/build/{screenSizeContext-33e6c658.js → screenSizeContext-c47c6eb3.js} +0 -0
  253. /package/build/{theme-dd5f10d8.js → theme-604d129e.js} +0 -0
  254. /package/build/{translationsContext-bded011e.js → translationsContext-b23da8b8.js} +0 -0
  255. /package/build/{tslib.es6-bb49a3d1.js → tslib.es6-cd344553.js} +0 -0
  256. /package/build/{types-13e699dc.js → types-008d21f9.js} +0 -0
  257. /package/build/{useIsInit-692e6042.js → useIsInit-5a3d78ce.js} +0 -0
  258. /package/build/{useOutsideClick-4a2f0e3a.js → useOutsideClick-0a7c2e2c.js} +0 -0
  259. /package/build/{useScrollbarSize-8eed9d3a.js → useScrollbarSize-276d8e32.js} +0 -0
  260. /package/build/{useUniqueId-d8647562.js → useUniqueId-264e40ed.js} +0 -0
package/build/footer.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-45a27811.js"),a=require("./index-b90a3e0d.js"),l=require("dayjs"),n=require("./index-cd875ad3.js"),r=require("./theme-dd5f10d8.js"),i=require("./index.styles-e11660ee.js"),o=require("@mantine/core");require("@mantine/dates"),require("./Onboarding-e89cd92f.js"),require("./gAssets.js"),require("./screenSizeContext-33e6c658.js"),require("styled-components"),require("./isProduction-a9c34dc0.js");var d=require("./useTranslations-10d0cd79.js");require("./index-f8959db6.js"),require("@mantine/hooks");var c=require("./index-dd83265f.js"),s=require("./index-46d9cba7.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-bded011e.js"),require("string-format"),require("./tslib.es6-bb49a3d1.js"),require("./useUniqueId-d8647562.js"),require("date-fns/locale"),require("./index-9faf9072.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("lodash/debounce"),require("./useCategory-642c5d6e.js"),require("./cookieHelper-930da89d.js"),require("slugify"),require("lodash/throttle");var m=u(e),v=u(l),f="Lj0qoTD",E="OO-qFWT";const g=({url:e,isMobile:t,dataEventCategory:a,dataEventAction:l,dataEventLabel:n})=>m.default.createElement("div",{className:E,"data-is-mobile":t},m.default.createElement("img",{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":a,"data-event-action":l,"data-content-label":n})),y=({className:e,type:l="main",footerInfo:o,isMobile:c,locale:s})=>{var u,E,y,p,b,h,N,x,k,T,q,F,z,$,j,L,C,M,_,S,H,w,I,A,B,G,D,O;const{t:U}=d.useTranslations(),J=null==o?void 0:o.menu,K=(null===(E=null===(u=null==o?void 0:o.general)||void 0===u?void 0:u.verified)||void 0===E?void 0:E.filter(Boolean))||[];return m.default.createElement("footer",{className:`${f} ${e||""}`,style:"mini"===l?{backgroundColor:r.theme.colors.neutral50}:{}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"inner","data-type":l},"main"===l?m.default.createElement(m.default.Fragment,null,m.default.createElement("a",{href:"/"},m.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==o?void 0:o.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===s})),m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"newsletter"},m.default.createElement(i.Text,{size:"p1",weight:"bold"},null===(p=null==o?void 0:o.general)||void 0===p?void 0:p.content),m.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},U("footer.signUp")),m.default.createElement("div",{className:"social"},m.default.createElement(i.Text,{size:"sm"},null===(b=null==o?void 0:o.social)||void 0===b?void 0:b.title),m.default.createElement("div",{className:"icons"},null===(N=null===(h=null==o?void 0:o.social)||void 0===h?void 0:h.socials)||void 0===N?void 0:N.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))))),m.default.createElement("hr",{className:"hrMobile"}))),m.default.createElement("div",null,J&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:"biglinks"},null===(k=null===(x=J[0])||void 0===x?void 0:x.items)||void 0===k?void 0:k.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"bigLink",key:t,href:e.url},e.title)))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"mHalf"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(T=J[1])||void 0===T?void 0:T.menu_title),null===(F=null===(q=J[1])||void 0===q?void 0:q.items)||void 0===F?void 0:F.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"link",href:e.url,key:t},m.default.createElement(i.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(z=J[2])||void 0===z?void 0:z.menu_title),null===(j=null===($=J[2])||void 0===$?void 0:$.items)||void 0===j?void 0:j.map(((e,t)=>e.url&&m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},m.default.createElement(i.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title)))))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"otherSites"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(L=null==o?void 0:o.branch)||void 0===L?void 0:L.title),m.default.createElement("div",{className:"flags"},null===(M=null===(C=null==o?void 0:o.branch)||void 0===C?void 0:C.branch)||void 0===M?void 0:M.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},m.default.createElement(g,{url:e.flag,isMobile:c,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))))),m.default.createElement("hr",null),m.default.createElement("div",{className:"copyright"},m.default.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((e,t)=>m.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},m.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),m.default.createElement(i.Text,{size:"xs",className:"copyright-content",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null===(_=null==o?void 0:o.general)||void 0===_?void 0:_.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})))):m.default.createElement(m.default.Fragment,null,(null==o?void 0:o.menu)&&m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"mHalf"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(S=null==o?void 0:o.menu[1])||void 0===S?void 0:S.menu_title),null===(w=null===(H=null==o?void 0:o.menu[1])||void 0===H?void 0:H.items)||void 0===w?void 0:w.map((e=>m.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":`https://${n.domainLocales[s]}${e.url}`,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`},m.default.createElement(i.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`,size:"sm",style:{color:r.theme.colors.gray800}},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(I=null==o?void 0:o.menu[2])||void 0===I?void 0:I.menu_title),null===(B=null===(A=null==o?void 0:o.menu[2])||void 0===A?void 0:A.items)||void 0===B?void 0:B.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},m.default.createElement(i.Text,{size:"sm",color:r.theme.colors.gray800,dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))))),"mini"!==l&&m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"newsletter"},m.default.createElement("div",{className:"social"},m.default.createElement(i.Text,{size:"sm"},null===(G=null==o?void 0:o.social)||void 0===G?void 0:G.title),m.default.createElement("div",{className:"icons"},null===(O=null===(D=null==o?void 0:o.social)||void 0===D?void 0:D.socials)||void 0===O?void 0:O.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var p="B6-KmWK",b="GS-7mbG",h="qc5bEb3",N="CQGVeuT",x="_8eUT8Jr",k="_6JMoel-",T="pFG7UH3";const q=({logoType:e="marryBaby",footerMenu:t,background:l})=>{var n;if(!t)return null;const{general:d,menu:u,socials:f}=t;return m.default.createElement("footer",{className:p,style:{backgroundColor:l||"none"}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:b},null==u?void 0:u.map((({menu_title:e,items:t},a)=>m.default.createElement("div",{className:h,key:`mbf${a}`},m.default.createElement(s.MarryBabyText,{className:"title",type:"subtitle-1",color:r.theme.mbColors.pink},e),null==t?void 0:t.map((({title:e,url:t},a)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},m.default.createElement("div",{className:N,key:`mbitem${a}`},m.default.createElement(s.MarryBabyText,{type:"bodytext-2",color:r.theme.mbColors.gray},e)))))))))),m.default.createElement(a.Container,null,m.default.createElement("div",{className:k},m.default.createElement(o.Flex,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},m.default.createElement(o.Stack,{spacing:"24px",className:"info-item"},m.default.createElement(c.Logo,{className:"logo",type:e}),m.default.createElement(i.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.content}})),m.default.createElement("div",{className:T},null==f?void 0:f.map((({icon:e,name:t,url:a},l)=>m.default.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},m.default.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t})))))),m.default.createElement(o.Box,{className:"info-item",sx:{paddingTop:"7px"}},m.default.createElement(i.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.information}})))))),m.default.createElement("div",{className:x},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"content"},m.default.createElement(i.Text,{size:"p5",color:"#fff",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})),m.default.createElement("div",{className:"verify"},null===(n=null==d?void 0:d.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>m.default.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t}))))))))};exports.Footer=({type:e,isMobile:t=!0,locale:a,footerInfo:l,siteType:n,background:r})=>"helloSites"===n?m.default.createElement(y,{isMobile:t,type:e,locale:a,footerInfo:l||{}}):m.default.createElement(q,{footerMenu:l,background:r});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-82f71333.js"),a=require("./index-888fdba1.js"),l=require("dayjs"),n=require("./index-21222332.js"),r=require("./theme-604d129e.js"),i=require("./index.styles-39df8ae0.js"),o=require("@mantine/core");require("@mantine/dates"),require("./Onboarding-ff8e56fb.js"),require("./gAssets.js"),require("./screenSizeContext-c47c6eb3.js"),require("styled-components"),require("./isProduction-17957999.js");var d=require("./useTranslations-b6bf15b4.js");require("./index-1223eb4f.js"),require("@mantine/hooks");var c=require("./index-667c791c.js"),s=require("./index-a4c58abb.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-b23da8b8.js"),require("string-format"),require("./tslib.es6-cd344553.js"),require("./useUniqueId-264e40ed.js"),require("date-fns/locale"),require("./index-d2d43e0c.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("lodash/debounce"),require("./useCategory-0856ee2c.js"),require("./cookieHelper-fb5b7a25.js"),require("slugify"),require("lodash/throttle");var m=u(e),v=u(l),f="Lj0qoTD",E="OO-qFWT";const g=({url:e,isMobile:t,dataEventCategory:a,dataEventAction:l,dataEventLabel:n})=>m.default.createElement("div",{className:E,"data-is-mobile":t},m.default.createElement("img",{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":a,"data-event-action":l,"data-content-label":n})),y=({className:e,type:l="main",footerInfo:o,isMobile:c,locale:s})=>{var u,E,y,b,p,h,N,x,k,T,q,F,z,$,j,L,C,M,_,S,H,w,I,A,B,G,D,O;const{t:U}=d.useTranslations(),J=null==o?void 0:o.menu,K=(null===(E=null===(u=null==o?void 0:o.general)||void 0===u?void 0:u.verified)||void 0===E?void 0:E.filter(Boolean))||[];return m.default.createElement("footer",{className:`${f} ${e||""}`,style:"mini"===l?{backgroundColor:r.theme.colors.neutral50}:{}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"inner","data-type":l},"main"===l?m.default.createElement(m.default.Fragment,null,m.default.createElement("a",{href:"/"},m.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==o?void 0:o.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===s})),m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"newsletter"},m.default.createElement(i.Text,{size:"p1",weight:"bold"},null===(b=null==o?void 0:o.general)||void 0===b?void 0:b.content),m.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},U("footer.signUp")),m.default.createElement("div",{className:"social"},m.default.createElement(i.Text,{size:"sm"},null===(p=null==o?void 0:o.social)||void 0===p?void 0:p.title),m.default.createElement("div",{className:"icons"},null===(N=null===(h=null==o?void 0:o.social)||void 0===h?void 0:h.socials)||void 0===N?void 0:N.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))))),m.default.createElement("hr",{className:"hrMobile"}))),m.default.createElement("div",null,J&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:"biglinks"},null===(k=null===(x=J[0])||void 0===x?void 0:x.items)||void 0===k?void 0:k.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"bigLink",key:t,href:e.url},e.title)))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"mHalf"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(T=J[1])||void 0===T?void 0:T.menu_title),null===(F=null===(q=J[1])||void 0===q?void 0:q.items)||void 0===F?void 0:F.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"link",href:e.url,key:t},m.default.createElement(i.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(z=J[2])||void 0===z?void 0:z.menu_title),null===(j=null===($=J[2])||void 0===$?void 0:$.items)||void 0===j?void 0:j.map(((e,t)=>e.url&&m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},m.default.createElement(i.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title)))))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"otherSites"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(L=null==o?void 0:o.branch)||void 0===L?void 0:L.title),m.default.createElement("div",{className:"flags"},null===(M=null===(C=null==o?void 0:o.branch)||void 0===C?void 0:C.branch)||void 0===M?void 0:M.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},m.default.createElement(g,{url:e.flag,isMobile:c,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))))),m.default.createElement("hr",null),m.default.createElement("div",{className:"copyright"},m.default.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((e,t)=>m.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},m.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),m.default.createElement(i.Text,{size:"xs",className:"copyright-content",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null===(_=null==o?void 0:o.general)||void 0===_?void 0:_.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})))):m.default.createElement(m.default.Fragment,null,(null==o?void 0:o.menu)&&m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"mHalf"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(S=null==o?void 0:o.menu[1])||void 0===S?void 0:S.menu_title),null===(w=null===(H=null==o?void 0:o.menu[1])||void 0===H?void 0:H.items)||void 0===w?void 0:w.map((e=>m.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":`https://${n.domainLocales[s]}${e.url}`,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`},m.default.createElement(i.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`,size:"sm",style:{color:r.theme.colors.gray800}},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(i.Text,{size:"sm",className:"linkTitle"},null===(I=null==o?void 0:o.menu[2])||void 0===I?void 0:I.menu_title),null===(B=null===(A=null==o?void 0:o.menu[2])||void 0===A?void 0:A.items)||void 0===B?void 0:B.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},m.default.createElement(i.Text,{size:"sm",color:r.theme.colors.gray800,dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))))),"mini"!==l&&m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"newsletter"},m.default.createElement("div",{className:"social"},m.default.createElement(i.Text,{size:"sm"},null===(G=null==o?void 0:o.social)||void 0===G?void 0:G.title),m.default.createElement("div",{className:"icons"},null===(O=null===(D=null==o?void 0:o.social)||void 0===D?void 0:D.socials)||void 0===O?void 0:O.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var b="B6-KmWK",p="GS-7mbG",h="qc5bEb3",N="CQGVeuT",x="_8eUT8Jr",k="_6JMoel-",T="pFG7UH3";const q=({logoType:e="marryBaby",footerMenu:t,background:l})=>{var n;if(!t)return null;const{general:d,menu:u,socials:f}=t;return m.default.createElement("footer",{className:b,style:{backgroundColor:l||"none"}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:p},null==u?void 0:u.map((({menu_title:e,items:t},a)=>m.default.createElement("div",{className:h,key:`mbf${a}`},m.default.createElement(s.MarryBabyText,{className:"title",type:"subtitle-1",color:r.theme.mbColors.pink},e),null==t?void 0:t.map((({title:e,url:t},a)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},m.default.createElement("div",{className:N,key:`mbitem${a}`},m.default.createElement(s.MarryBabyText,{type:"bodytext-2",color:r.theme.mbColors.gray},e)))))))))),m.default.createElement(a.Container,null,m.default.createElement("div",{className:k},m.default.createElement(o.Flex,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},m.default.createElement(o.Stack,{spacing:"24px",className:"info-item"},m.default.createElement(c.Logo,{className:"logo",type:e}),m.default.createElement(i.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.content}})),m.default.createElement("div",{className:T},null==f?void 0:f.map((({icon:e,name:t,url:a},l)=>m.default.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},m.default.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t})))))),m.default.createElement(o.Box,{className:"info-item",sx:{paddingTop:"7px"}},m.default.createElement(i.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.information}})))))),m.default.createElement("div",{className:x},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"content"},m.default.createElement(i.Text,{size:"p5",color:"#fff",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})),m.default.createElement("div",{className:"verify"},null===(n=null==d?void 0:d.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>m.default.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t}))))))))};exports.Footer=({type:e,isMobile:t=!0,locale:a,footerInfo:l,siteType:n,background:r})=>"helloSites"===n?m.default.createElement(y,{isMobile:t,type:e,locale:a,footerInfo:l||{}}):m.default.createElement(q,{footerMenu:l,background:r});
package/build/gAssets.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-cd875ad3.js"),s=require("./isProduction-a9c34dc0.js");require("date-fns/locale"),require("./Onboarding-e89cd92f.js");const o="hellosehat.com";class t{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,o,t)=>{const i="https://hhg-common."+[o||this.getBaseDomain(),t||this.subPath,e].join("/");return s.isProduction||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,t=s.split("."),i=e.domainLocales[Object.keys(e.domainLocales).find((o=>s.includes(e.domainLocales[o])))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?o:i}return o}}const i=new t;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=i,exports.GAssets=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-21222332.js"),s=require("./isProduction-17957999.js");require("date-fns/locale"),require("./Onboarding-ff8e56fb.js");const o="hellosehat.com";class t{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,o,t)=>{const i="https://hhg-common."+[o||this.getBaseDomain(),t||this.subPath,e].join("/");return s.isProduction||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,t=s.split("."),i=e.domainLocales[Object.keys(e.domainLocales).find((o=>s.includes(e.domainLocales[o])))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?o:i}return o}}const i=new t;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=i,exports.GAssets=t;
@@ -1 +1 @@
1
- "use strict";var t=require("./tslib.es6-bb49a3d1.js"),i=require("./core-2677ffe8.js"),e=require("./normalizeLink-013048ff.js");const l=(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}},o=i=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,o;try{const n="tl-PH"===i?"lang=fil":"";let a=[];try{const r=yield fetch(e.normalizeLinkSlash(`${e.getDiscoverApiDomain(i)}/wp-json/api/healthtools?ismenu=0${n?"&"+n:""}`)).then((t=>t.json()));a=(null===(o=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===o?void 0:o.call(t,(t=>l(t,i))))||[]}catch(t){}return a}catch(t){console.error(t)}}));exports.formatHealthTool=l,exports.getDynamicHealthTool=o,exports.getDynamicHealthToolWithCache=e=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield i.getDataWithCache("all-health-tools",(()=>o(e||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
1
+ "use strict";var t=require("./tslib.es6-cd344553.js"),i=require("./core-2b65eb92.js"),e=require("./normalizeLink-cf4485e8.js");const l=(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}},o=i=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,o;try{const n="tl-PH"===i?"lang=fil":"";let a=[];try{const r=yield fetch(e.normalizeLinkSlash(`${e.getDiscoverApiDomain(i)}/wp-json/api/healthtools?ismenu=0${n?"&"+n:""}`)).then((t=>t.json()));a=(null===(o=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===o?void 0:o.call(t,(t=>l(t,i))))||[]}catch(t){}return a}catch(t){console.error(t)}}));exports.formatHealthTool=l,exports.getDynamicHealthTool=o,exports.getDynamicHealthToolWithCache=e=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield i.getDataWithCache("all-health-tools",(()=>o(e||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("./Onboarding-e89cd92f.js"),l=require("./gAssets.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=C(e);exports.getSocialList=e=>[{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{icon:a.default.createElement("img",{src:l.CommonGAssets.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`,allowedLocales:[t.LOCALE.Vietnam]},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("g",{clipPath:"url(#clip0_687_88944)"},a.default.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),a.default.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),a.default.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},a.default.createElement("stop",{stopColor:"#36F46C"}),a.default.createElement("stop",{offset:"1",stopColor:"#03D749"})),a.default.createElement("clipPath",{id:"clip0_687_88944"},a.default.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},a.default.createElement("g",{id:"surface1"},a.default.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),a.default.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${e}`,allowedLocales:[t.LOCALE.Taiwan]}];
1
+ "use strict";var e=require("react"),t=require("./Onboarding-ff8e56fb.js"),l=require("./gAssets.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=C(e);exports.getSocialList=e=>[{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{icon:a.default.createElement("img",{src:l.CommonGAssets.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`,allowedLocales:[t.LOCALE.Vietnam]},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("g",{clipPath:"url(#clip0_687_88944)"},a.default.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),a.default.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),a.default.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},a.default.createElement("stop",{stopColor:"#36F46C"}),a.default.createElement("stop",{offset:"1",stopColor:"#03D749"})),a.default.createElement("clipPath",{id:"clip0_687_88944"},a.default.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},a.default.createElement("g",{id:"surface1"},a.default.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),a.default.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${e}`,allowedLocales:[t.LOCALE.Taiwan]}];
package/build/hooks.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-10d0cd79.js"),s=require("./useScrollbarSize-8eed9d3a.js"),r=require("./useRafState-36fa6aa1.js"),i=require("./useHealthToolCache-be0f5a6c.js"),u=require("./useIsInit-692e6042.js"),t=require("./useOutsideClick-4a2f0e3a.js"),a=require("./useUniqueId-d8647562.js"),o=require("./useCategory-642c5d6e.js");require("react"),require("./translationsContext-bded011e.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-bb49a3d1.js"),require("./cookieHelper-930da89d.js"),require("./getDynamicHealthTool-c3ec7203.js"),require("./core-2677ffe8.js"),require("./isProduction-a9c34dc0.js"),require("./normalizeLink-013048ff.js"),require("./index-cd875ad3.js"),require("date-fns/locale"),require("./Onboarding-e89cd92f.js"),exports.useTranslations=e.useTranslations,exports.MEASURE_ELEMENT_CLASS=s.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=s.useScrollbarSize,exports.useFbDataLayer=r.useFbDataLayer,exports.usePrevious=r.usePrevious,exports.useRafState=r.useRafState,exports.useHealthToolsCache=i.useHealthToolsCache,exports.useIsInit=u.useIsInit,exports.initSharedOutSideClickListener=t.initSharedOutSideClickListener,exports.useOutsideClick=t.useOutsideClick,exports.useSharedOutsideClick=t.useSharedOutsideClick,exports.useInitialMount=a.useInitialMount,exports.useUniqueId=a.useUniqueId,exports.MAPPED_CATEGORY_SLUGS=o.MAPPED_CATEGORY_SLUGS,exports.PREGNANCY_SLUG=o.PREGNANCY_SLUG,exports.useCategory=o.useCategory;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-b6bf15b4.js"),s=require("./useScrollbarSize-276d8e32.js"),r=require("./useRafState-8a4aa1e1.js"),i=require("./useHealthToolCache-48e07107.js"),u=require("./useIsInit-5a3d78ce.js"),t=require("./useOutsideClick-0a7c2e2c.js"),a=require("./useUniqueId-264e40ed.js"),o=require("./useCategory-0856ee2c.js");require("react"),require("./translationsContext-b23da8b8.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-cd344553.js"),require("./cookieHelper-fb5b7a25.js"),require("./getDynamicHealthTool-f50ea67d.js"),require("./core-2b65eb92.js"),require("./isProduction-17957999.js"),require("./normalizeLink-cf4485e8.js"),require("./index-21222332.js"),require("date-fns/locale"),require("./Onboarding-ff8e56fb.js"),exports.useTranslations=e.useTranslations,exports.MEASURE_ELEMENT_CLASS=s.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=s.useScrollbarSize,exports.useFbDataLayer=r.useFbDataLayer,exports.usePrevious=r.usePrevious,exports.useRafState=r.useRafState,exports.useHealthToolsCache=i.useHealthToolsCache,exports.useIsInit=u.useIsInit,exports.initSharedOutSideClickListener=t.initSharedOutSideClickListener,exports.useOutsideClick=t.useOutsideClick,exports.useSharedOutsideClick=t.useSharedOutsideClick,exports.useInitialMount=a.useInitialMount,exports.useUniqueId=a.useUniqueId,exports.MAPPED_CATEGORY_SLUGS=o.MAPPED_CATEGORY_SLUGS,exports.PREGNANCY_SLUG=o.PREGNANCY_SLUG,exports.useCategory=o.useCategory;
package/build/i18n.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./translationsContext-bded011e.js"),s=require("react"),t=require("./i18n-values/en-PH.js"),r=require("./i18n-values/hi-IN.js"),a=require("./i18n-values/id-ID.js"),n=require("./i18n-values/km-KH.js"),u=require("./i18n-values/ms-MY.js"),i=require("./i18n-values/my-MM.js"),l=require("./i18n-values/th-TH.js"),o=require("./i18n-values/tl-PH.js"),d=require("./i18n-values/vi-VN.js"),v=require("./i18n-values/vi-VN_MB.js"),f=require("./i18n-values/zh-TW.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var j=c(s);const q={"en-PH":t.default,"vi-VN":d.default,"hi-IN":r.default,"id-ID":a.default,"ms-MY":u.default,"my-MM":i.default,"km-KH":n.default,"zh-TW":f.default,"th-TH":l.default,"tl-PH":o.default,"vi-VN_MB":v.default};exports.TranslationsContext=e.TranslationsContext,exports.TranslationsProvider=({locale:t="en-PH",overrides:r,overrideCurrentLocale:a,children:n,shouldLoadTranslation:u=!0,loader:i=null,onTranslationsLoaded:l})=>{const o=r&&r[t]||a,[d,v]=s.useState((()=>Object.assign(Object.assign({},o),u?q[t]:{})));s.useEffect((()=>{v(Object.assign(Object.assign({},o),u?q[t]:{}))}),[u,t]);const f=s.useMemo((()=>d?{locale:t,values:d}:null),[t,d]);return s.useEffect((()=>{l&&Object.keys(d).length&&l(d)}),[d]),j.default.createElement(e.TranslationsContext.Provider,{value:f},f?n:i)},exports.translationsMap=q;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./translationsContext-b23da8b8.js"),s=require("react"),t=require("./i18n-values/en-PH.js"),a=require("./i18n-values/hi-IN.js"),r=require("./i18n-values/id-ID.js"),n=require("./i18n-values/km-KH.js"),u=require("./i18n-values/ms-MY.js"),i=require("./i18n-values/my-MM.js"),l=require("./i18n-values/th-TH.js"),o=require("./i18n-values/tl-PH.js"),d=require("./i18n-values/vi-VN.js"),v=require("./i18n-values/vi-VN_MB.js"),f=require("./i18n-values/zh-TW.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var j=c(s);const q={"en-PH":t.default,"vi-VN":d.default,"hi-IN":a.default,"id-ID":r.default,"ms-MY":u.default,"my-MM":i.default,"km-KH":n.default,"zh-TW":f.default,"th-TH":l.default,"tl-PH":o.default,"vi-VN_MB":v.default};exports.TranslationsContext=e.TranslationsContext,exports.TranslationsProvider=({locale:t="en-PH",overrides:a,overrideCurrentLocale:r,children:n,shouldLoadTranslation:u=!0,loader:i=null,onTranslationsLoaded:l})=>{const o=a&&a[t]||r,[d,v]=s.useState((()=>Object.assign(Object.assign({},o),u?q[t]:{})));s.useEffect((()=>{v(Object.assign(Object.assign({},o),u?q[t]:{}))}),[u,t]);const f=s.useMemo((()=>d?{locale:t,values:d}:null),[t,d]);return s.useEffect((()=>{l&&Object.keys(d).length&&l(d)}),[d]),j.default.createElement(e.TranslationsContext.Provider,{value:f},f?n:i)},exports.translationsMap=q;
package/build/i18nV2.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./translationsContext-bded011e.js"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(t);exports.TranslationsContext=e.TranslationsContext,exports.TranslationsProvider=({locale:r="en-PH",values:a,children:o})=>{const l=t.useMemo((()=>a?{locale:r,values:a}:null),[r,a]);return n.default.createElement(e.TranslationsContext.Provider,{value:l},o)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./translationsContext-b23da8b8.js"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(t);exports.TranslationsContext=e.TranslationsContext,exports.TranslationsProvider=({locale:r="en-PH",values:a,children:o})=>{const l=t.useMemo((()=>a?{locale:r,values:a}:null),[r,a]);return n.default.createElement(e.TranslationsContext.Provider,{value:l},o)};
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-bb49a3d1.js"),r=require("react"),t=require("@mantine/core"),i=require("./index.styles-e11660ee.js");require("@mantine/dates");var n=require("./index-cd875ad3.js");require("./Onboarding-e89cd92f.js"),require("./gAssets.js"),require("dayjs");var o=require("./screenSizeContext-33e6c658.js"),a=require("styled-components"),s=require("./theme-dd5f10d8.js");require("./isProduction-a9c34dc0.js"),require("./translationsContext-bded011e.js"),require("string-format"),require("./index-f8959db6.js"),require("@mantine/hooks");var d=require("@mantine/form");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=c(r),l=c(a);const u=r.createContext({}),[p,g,x]=d.createFormContext(),f=l.default.div`
1
+ "use strict";var e=require("./tslib.es6-cd344553.js"),r=require("react"),t=require("@mantine/core"),i=require("./index.styles-39df8ae0.js");require("@mantine/dates");var n=require("./index-21222332.js");require("./Onboarding-ff8e56fb.js"),require("./gAssets.js"),require("dayjs");var o=require("./screenSizeContext-c47c6eb3.js"),a=require("styled-components"),s=require("./theme-604d129e.js");require("./isProduction-17957999.js"),require("./translationsContext-b23da8b8.js"),require("string-format"),require("./index-1223eb4f.js"),require("@mantine/hooks");var d=require("@mantine/form");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=c(r),l=c(a);const u=r.createContext({}),[p,g,x]=d.createFormContext(),f=l.default.div`
2
2
  margin-top: 70px;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-bb49a3d1.js"),t=require("react"),l=require("./Onboarding-e89cd92f.js"),a=require("./index.styled-fb3b67b4.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t);const o=({isRight:e,currentUrl:t})=>r.default.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":t,className:"pointer-event-child-none"},r.default.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));exports.PillCarousel=n=>{var{data:i,isMobile:c,onSlideChange:d,pillProps:s,locale:u=l.LOCALE.Vietnam,blurFromIndex:v,blurLength:g}=n,b=e.__rest(n,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const h={withControls:!c,slideGap:16,blurFromCenter:!0,blurFromIndex:v||(c?2:4),blurLength:g||(c?1:3),onSlideChange:d},[f,m]=t.useState("");return t.useEffect((()=>{m(window.location.href)}),[]),r.default.createElement(a.StyledCarousel,Object.assign({},h,b,{selectSlideWhenClick:!0,previousControlIcon:r.default.createElement(o,{currentUrl:f}),nextControlIcon:r.default.createElement(o,{currentUrl:f,isRight:!0})}),(e=>i.map(((t,l)=>r.default.createElement(a.StyledSlide,Object.assign({key:l,onClick:d,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":f,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":f}},s),r.default.createElement("div",{className:"centerred-pill-wrapper"},r.default.createElement(a.StyledPill,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":f,locale:u,name:t.name,icon:t.icon,className:l===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))))};
1
+ "use strict";var e=require("./tslib.es6-cd344553.js"),t=require("react"),l=require("./Onboarding-ff8e56fb.js"),a=require("./index.styled-49d29249.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t);const o=({isRight:e,currentUrl:t})=>r.default.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":t,className:"pointer-event-child-none"},r.default.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));exports.PillCarousel=n=>{var{data:i,isMobile:c,onSlideChange:d,pillProps:s,locale:u=l.LOCALE.Vietnam,blurFromIndex:v,blurLength:g}=n,f=e.__rest(n,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const h={withControls:!c,slideGap:16,blurFromCenter:!0,blurFromIndex:v||(c?2:4),blurLength:g||(c?1:3),onSlideChange:d},[m,C]=t.useState("");return t.useEffect((()=>{C(window.location.href)}),[]),r.default.createElement(a.StyledCarousel,Object.assign({},h,f,{selectSlideWhenClick:!0,previousControlIcon:r.default.createElement(o,{currentUrl:m}),nextControlIcon:r.default.createElement(o,{currentUrl:m,isRight:!0})}),(e=>i.map(((t,l)=>r.default.createElement(a.StyledSlide,Object.assign({key:l,onClick:d,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":m,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":m}},s),r.default.createElement("div",{className:"centerred-pill-wrapper"},r.default.createElement(a.StyledPill,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":m,locale:u,name:t.name,icon:t.icon,className:l===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))))};
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-bb49a3d1.js"),t=require("react"),l=require("styled-components"),n=require("@mantine/carousel"),r=require("@mantine/core"),i=require("@mantine/hooks");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=a(t),s=a(l);const d=s.default.img`
1
+ "use strict";var e=require("./tslib.es6-cd344553.js"),t=require("react"),l=require("styled-components"),n=require("@mantine/carousel"),r=require("@mantine/core"),i=require("@mantine/hooks");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=a(t),s=a(l);const d=s.default.img`
2
2
  &[data-has-placeholder='true'] {
3
3
  background-position: center;
4
4
  background-repeat: no-repeat;
@@ -72,4 +72,4 @@
72
72
  letter-spacing: -0.1px;
73
73
  line-height: 14px;
74
74
  }
75
- `,p=t.forwardRef((function(e,t){return o.default.createElement("circle",Object.assign({},e,{ref:t}),o.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),h=n.Carousel.Slide,f=t.createContext({}),g=(e,t)=>e>=t?e-t:e,x=l=>{var{children:a,blurFromCenter:s,blurFromIndex:d,blurLength:c=3,maxBlurOpacity:u=.5,onSlideChange:p,selectSlideWhenClick:h}=l,x=e.__rest(l,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);const{width:v}=i.useViewportSize(),[y]=i.useResizeObserver(),b=t.useRef(null),[m,S]=t.useState(0),C=()=>{var e,t,l,n,r;const i=(null===(e=null==b?void 0:b.current)||void 0===e?void 0:e.slideNodes())||[];if((null===(t=null==b?void 0:b.current)||void 0===t?void 0:t.slideNodes().length)<=(null===(l=null==b?void 0:b.current)||void 0===l?void 0:l.slidesInView().length))return i.map((e=>{e.classList.remove("center-slide"),e.style.opacity="1"})),!1;const a=null===(n=null==b?void 0:b.current)||void 0===n?void 0:n.selectedScrollSnap();S(a);const o=i.length,p=(null===(r=null==b?void 0:b.current)||void 0===r?void 0:r.slidesInView()).length,h=Math.floor(p/2),f=s?d+c-1:h,x=a+f,v=x===o?0:x>o?x-o:x,y=a-f,m=y<0?o+y:y>0?a-f:0,C=[...new Set(Array(2*f+1).fill("").map(((e,t)=>g(m+t,o))))];i.map(((e,t)=>{if(t===a?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==C.indexOf(t)){const r=u/c;for(let i=0;i<c;i++){if(t===g(m+i,o)||t===(n=o,(l=v-i)<0?n+l:l)){e.style.opacity=String((i+1)*r);break}e.style.opacity="1"}}else e.style.opacity="0";var l,n}))},k={getEmblaApi:e=>{b.current=e},onSlideChange:e=>{C(),null==p||p(e)}};t.useEffect((()=>{(null==b?void 0:b.current)&&C()}),[v]);const z=r.createStyles((()=>{var e,t;return{control:Object.assign({},(null===(e=null==b?void 0:b.current)||void 0===e?void 0:e.slideNodes().length)<=(null===(t=null==b?void 0:b.current)||void 0===t?void 0:t.slidesInView().length)&&{display:"none"})}})),{classes:w}=z();return o.default.createElement(f.Provider,{value:{slider:null==b?void 0:b.current,centerSlide:m,selectSlideWhenClick:h}},o.default.createElement(n.Carousel,Object.assign({classNames:{control:w.control},ref:y,slideSize:"auto",containScroll:"trimSnaps"},k,x,{loop:!0}),"function"==typeof a?a(m):a))};x.Slide=l=>{var{children:n,onClick:r,innerSlideProps:i}=l,a=e.__rest(l,["children","onClick","innerSlideProps"]);const{slider:s,selectSlideWhenClick:d}=t.useContext(f),c=t.useRef(),u=t.useRef(""),[p,g]=t.useState(0);t.useEffect((()=>{u.current=String(Math.round(1e4*Math.random()))}),[]),t.useEffect((()=>{const e=(null==s?void 0:s.slideNodes())||[];g(e.findIndex((e=>e.dataset.key===u.current)))}),[s]);const x={ref:c,"data-key":u.current,"data-index":p};return o.default.createElement(h,Object.assign({},x,a),o.default.createElement("div",Object.assign({style:{height:"100%"},onClick:()=>{d&&(null==s||s.scrollTo(p)),null==r||r(p)}},i),n))},exports.CentralCarousel=x,exports.CustomReferenceDot=p,exports.ImageWrap=l=>{var{alt:n,backupSrc:r,src:i,placeholderSrc:a,style:s,ref:c}=l,u=e.__rest(l,["alt","backupSrc","src","placeholderSrc","style","ref"]);const[p,h]=t.useState(!1);return o.default.createElement(d,Object.assign({loading:"lazy",alt:n,onError:()=>!p&&h(!0),src:p?r||i:i||r,style:Object.assign(Object.assign({},a?{backgroundImage:`url(${a})`}:{}),s),"data-has-placeholder":!!a,ref:c},u))},exports.StyledHeading=c,exports.StyledText=u;
75
+ `,p=t.forwardRef((function(e,t){return o.default.createElement("circle",Object.assign({},e,{ref:t}),o.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),h=n.Carousel.Slide,f=t.createContext({}),g=(e,t)=>e>=t?e-t:e,x=l=>{var{children:a,blurFromCenter:s,blurFromIndex:d,blurLength:c=3,maxBlurOpacity:u=.5,onSlideChange:p,selectSlideWhenClick:h}=l,x=e.__rest(l,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);const{width:v}=i.useViewportSize(),[y]=i.useResizeObserver(),m=t.useRef(null),[b,S]=t.useState(0),C=()=>{var e,t,l,n,r;const i=(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.slideNodes())||[];if((null===(t=null==m?void 0:m.current)||void 0===t?void 0:t.slideNodes().length)<=(null===(l=null==m?void 0:m.current)||void 0===l?void 0:l.slidesInView().length))return i.map((e=>{e.classList.remove("center-slide"),e.style.opacity="1"})),!1;const a=null===(n=null==m?void 0:m.current)||void 0===n?void 0:n.selectedScrollSnap();S(a);const o=i.length,p=(null===(r=null==m?void 0:m.current)||void 0===r?void 0:r.slidesInView()).length,h=Math.floor(p/2),f=s?d+c-1:h,x=a+f,v=x===o?0:x>o?x-o:x,y=a-f,b=y<0?o+y:y>0?a-f:0,C=[...new Set(Array(2*f+1).fill("").map(((e,t)=>g(b+t,o))))];i.map(((e,t)=>{if(t===a?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==C.indexOf(t)){const r=u/c;for(let i=0;i<c;i++){if(t===g(b+i,o)||t===(n=o,(l=v-i)<0?n+l:l)){e.style.opacity=String((i+1)*r);break}e.style.opacity="1"}}else e.style.opacity="0";var l,n}))},k={getEmblaApi:e=>{m.current=e},onSlideChange:e=>{C(),null==p||p(e)}};t.useEffect((()=>{(null==m?void 0:m.current)&&C()}),[v]);const z=r.createStyles((()=>{var e,t;return{control:Object.assign({},(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.slideNodes().length)<=(null===(t=null==m?void 0:m.current)||void 0===t?void 0:t.slidesInView().length)&&{display:"none"})}})),{classes:w}=z();return o.default.createElement(f.Provider,{value:{slider:null==m?void 0:m.current,centerSlide:b,selectSlideWhenClick:h}},o.default.createElement(n.Carousel,Object.assign({classNames:{control:w.control},ref:y,slideSize:"auto",containScroll:"trimSnaps"},k,x,{loop:!0}),"function"==typeof a?a(b):a))};x.Slide=l=>{var{children:n,onClick:r,innerSlideProps:i}=l,a=e.__rest(l,["children","onClick","innerSlideProps"]);const{slider:s,selectSlideWhenClick:d}=t.useContext(f),c=t.useRef(),u=t.useRef(""),[p,g]=t.useState(0);t.useEffect((()=>{u.current=String(Math.round(1e4*Math.random()))}),[]),t.useEffect((()=>{const e=(null==s?void 0:s.slideNodes())||[];g(e.findIndex((e=>e.dataset.key===u.current)))}),[s]);const x={ref:c,"data-key":u.current,"data-index":p};return o.default.createElement(h,Object.assign({},x,a),o.default.createElement("div",Object.assign({style:{height:"100%"},onClick:()=>{d&&(null==s||s.scrollTo(p)),null==r||r(p)}},i),n))},exports.CentralCarousel=x,exports.CustomReferenceDot=p,exports.ImageWrap=l=>{var{alt:n,backupSrc:r,src:i,placeholderSrc:a,style:s,ref:c}=l,u=e.__rest(l,["alt","backupSrc","src","placeholderSrc","style","ref"]);const[p,h]=t.useState(!1);return o.default.createElement(d,Object.assign({loading:"lazy",alt:n,onError:()=>!p&&h(!0),src:p?r||i:i||r,style:Object.assign(Object.assign({},a?{backgroundImage:`url(${a})`}:{}),s),"data-has-placeholder":!!a,ref:c},u))},exports.StyledHeading=c,exports.StyledText=u;
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-bb49a3d1.js"),t=require("react"),s=require("@mantine/core"),r=require("./index.styles-e11660ee.js");require("@mantine/dates");var a=require("./index-cd875ad3.js"),i=require("./Onboarding-e89cd92f.js");require("./gAssets.js"),require("dayjs"),require("./screenSizeContext-33e6c658.js"),require("styled-components"),require("./theme-dd5f10d8.js"),require("./isProduction-a9c34dc0.js");var n=require("./useTranslations-10d0cd79.js");require("./index-f8959db6.js"),require("@mantine/hooks"),require("lodash/debounce"),require("./useCategory-642c5d6e.js");var c=require("./utils-79d816c1.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=d(t);const o={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},u=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},p=({provinces:s})=>{const[r,n]=t.useReducer(u,o),{provinceByName:d,provinces:l,districts:p,wards:v,selectedProvince:y,selectedDistrict:E,selectedWard:b}=r,[h,j]=t.useState();t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,r,d;try{const l=yield fetch((d=process.env.UNIFY_LOCALE||i.LOCALE.Vietnam,`${a.CDN_ADDRESS}/cities-data-${c.MAPPED_LOCALE[d]}.json`)).then((e=>e.json()));j(l);const{list:o}=l,u=s?((e,t)=>{const s={};for(const[,e]of Object.entries(t)){const{id:t}=e;t&&(s[t]=e)}const r={};return e.map((e=>{r[e.name]=s[e.id]})),r})(s,o):o,p=Object.keys(u),v=Object.keys((null===(e=o[p[0]])||void 0===e?void 0:e.list)||{}),y=Object.keys((null===(r=null===(t=o[p[0]])||void 0===t?void 0:t[v[0]])||void 0===r?void 0:r.list)||{});n({type:"SET_DATA",payload:{provinceByName:u,provinces:p,districts:v,wards:y}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:l,districts:p,wards:v,selectedProvince:y,selectedDistrict:E,selectedWard:b,handleProvinceChange:e=>{var t;const s=Object.keys((null===(t=d[e])||void 0===t?void 0:t.list)||{});n({type:"SET_DISTRICTS",payload:s}),n({type:"SET_WARDS",payload:[]}),n({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,s;const r=Object.keys((null===(s=null===(t=d[y])||void 0===t?void 0:t.list[e])||void 0===s?void 0:s.list)||{});n({type:"SET_WARDS",payload:r}),n({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{n({type:"SELECT_WARD",payload:e})}}};exports.AddressInput=a=>{var{error:i,provinces:c,placeholder:d}=a,o=e.__rest(a,["error","provinces","placeholder"]);const{t:u}=n.useTranslations(),{provinces:v,districts:y,wards:E,selectedProvince:b,selectedDistrict:h,selectedWard:j,handleProvinceChange:g,handleDistrictChange:C,handleWardChange:S}=p({provinces:c}),[O,f]=t.useState("");return t.useEffect((()=>{b&&h&&j&&O?o.onChange({selectedProvince:b,selectedDistrict:h,selectedWard:j,extraInfo:O}):o.onChange(null)}),[b,h,j,O]),l.default.createElement(r.Input.Wrapper,Object.assign({withAsterisk:!0},o),l.default.createElement(s.Stack,null,l.default.createElement(r.Select,{placeholder:(null==d?void 0:d.province)||u("onboarding.similac.input.city"),data:c?v:v.sort(),searchable:!0,onChange:g,value:b}),l.default.createElement(r.Select,{placeholder:(null==d?void 0:d.district)||u("onboarding.similac.input.district"),data:y.sort(),searchable:!0,onChange:C,value:h,disabled:!b}),l.default.createElement(r.Select,{placeholder:(null==d?void 0:d.ward)||u("onboarding.similac.input.ward"),searchable:!0,data:E.sort(),value:j,onChange:S,disabled:!b||!h}),l.default.createElement(r.Input,{placeholder:(null==d?void 0:d.address)||u("onboarding.similac.input.no"),disabled:!b||!h||!j,value:O,onChange:f,style:{marginBottom:0}})),l.default.createElement(s.Input.Error,{size:"md"},i))};
1
+ "use strict";var e=require("./tslib.es6-cd344553.js"),t=require("react"),s=require("@mantine/core"),r=require("./index.styles-39df8ae0.js");require("@mantine/dates");var a=require("./index-21222332.js"),i=require("./Onboarding-ff8e56fb.js");require("./gAssets.js"),require("dayjs"),require("./screenSizeContext-c47c6eb3.js"),require("styled-components"),require("./theme-604d129e.js"),require("./isProduction-17957999.js");var n=require("./useTranslations-b6bf15b4.js");require("./index-1223eb4f.js"),require("@mantine/hooks"),require("lodash/debounce"),require("./useCategory-0856ee2c.js");var c=require("./utils-8f249b1c.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=d(t);const o={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},u=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},p=({provinces:s})=>{const[r,n]=t.useReducer(u,o),{provinceByName:d,provinces:l,districts:p,wards:v,selectedProvince:b,selectedDistrict:y,selectedWard:E}=r,[h,j]=t.useState();t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,r,d;try{const l=yield fetch((d=process.env.UNIFY_LOCALE||i.LOCALE.Vietnam,`${a.CDN_ADDRESS}/cities-data-${c.MAPPED_LOCALE[d]}.json`)).then((e=>e.json()));j(l);const{list:o}=l,u=s?((e,t)=>{const s={};for(const[,e]of Object.entries(t)){const{id:t}=e;t&&(s[t]=e)}const r={};return e.map((e=>{r[e.name]=s[e.id]})),r})(s,o):o,p=Object.keys(u),v=Object.keys((null===(e=o[p[0]])||void 0===e?void 0:e.list)||{}),b=Object.keys((null===(r=null===(t=o[p[0]])||void 0===t?void 0:t[v[0]])||void 0===r?void 0:r.list)||{});n({type:"SET_DATA",payload:{provinceByName:u,provinces:p,districts:v,wards:b}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:l,districts:p,wards:v,selectedProvince:b,selectedDistrict:y,selectedWard:E,handleProvinceChange:e=>{var t;const s=Object.keys((null===(t=d[e])||void 0===t?void 0:t.list)||{});n({type:"SET_DISTRICTS",payload:s}),n({type:"SET_WARDS",payload:[]}),n({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,s;const r=Object.keys((null===(s=null===(t=d[b])||void 0===t?void 0:t.list[e])||void 0===s?void 0:s.list)||{});n({type:"SET_WARDS",payload:r}),n({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{n({type:"SELECT_WARD",payload:e})}}};exports.AddressInput=a=>{var{error:i,provinces:c,placeholder:d}=a,o=e.__rest(a,["error","provinces","placeholder"]);const{t:u}=n.useTranslations(),{provinces:v,districts:b,wards:y,selectedProvince:E,selectedDistrict:h,selectedWard:j,handleProvinceChange:g,handleDistrictChange:C,handleWardChange:S}=p({provinces:c}),[f,O]=t.useState("");return t.useEffect((()=>{E&&h&&j&&f?o.onChange({selectedProvince:E,selectedDistrict:h,selectedWard:j,extraInfo:f}):o.onChange(null)}),[E,h,j,f]),l.default.createElement(r.Input.Wrapper,Object.assign({withAsterisk:!0},o),l.default.createElement(s.Stack,null,l.default.createElement(r.Select,{placeholder:(null==d?void 0:d.province)||u("onboarding.similac.input.city"),data:c?v:v.sort(),searchable:!0,onChange:g,value:E}),l.default.createElement(r.Select,{placeholder:(null==d?void 0:d.district)||u("onboarding.similac.input.district"),data:b.sort(),searchable:!0,onChange:C,value:h,disabled:!E}),l.default.createElement(r.Select,{placeholder:(null==d?void 0:d.ward)||u("onboarding.similac.input.ward"),searchable:!0,data:y.sort(),value:j,onChange:S,disabled:!E||!h}),l.default.createElement(r.Input,{placeholder:(null==d?void 0:d.address)||u("onboarding.similac.input.no"),disabled:!E||!h||!j,value:f,onChange:O,style:{marginBottom:0}})),l.default.createElement(s.Input.Error,{size:"md"},i))};
@@ -1 +1 @@
1
- "use strict";var e=require("date-fns/locale"),o=require("./Onboarding-e89cd92f.js"),l=require("./isProduction-a9c34dc0.js");const i={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},n={HELLO_HEALTH_GROUP:{lng:o.LOCALE.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:o.LOCALE.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:o.LOCALE.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:o.LOCALE.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:o.LOCALE.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:o.LOCALE.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:o.LOCALE.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:o.LOCALE.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:o.LOCALE.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:o.LOCALE.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:o.LOCALE.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:o.LOCALE.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};exports.RISK_SCREENER_NAME=void 0,(exports.RISK_SCREENER_NAME||(exports.RISK_SCREENER_NAME={})).HPV="hpv";const t={[o.LOCALE.Vietnam]:{[exports.RISK_SCREENER_NAME.HPV]:"hpv-vaccine"},[o.LOCALE.Indonesia]:{[exports.RISK_SCREENER_NAME.HPV]:"deteksi-dini-hpv"}},a="userGeoLocationCoordinates",s={"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","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},E={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},O={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},c="user",I=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],r=["vi-VN"],h=["vi-VN","id-ID","en-PH","tl-PH","ms-MY"],T=["vi-VN","id-ID"],p={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var _;exports.QUERY_HEALTH_TOOL=void 0,(_=exports.QUERY_HEALTH_TOOL||(exports.QUERY_HEALTH_TOOL={})).bmi="mi",_.gender="gndr",_.age="ge",_.slug="slug",_.resultId="resultId",_.bmr="mr",_.height="gt",_.weight="wght",_.source="surc",_.type="tp",_.startDate="sd",_.additional="tnl",_.week="wk",_.twins="twn",_.weightBefore="wb",_.yourself="yrslf",_.intensity="sy",_.rate="rt",_.method="mthd",_.day="dy",_.pwg="pwg",_.cycle="le",_.period="prd",_.access_token="tkn",_.name="nm",_.id="id";const A={[o.LOCALE.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[o.LOCALE.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[o.LOCALE.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[o.LOCALE.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.LOCALE.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.LOCALE.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},m="hhg_user_token",C={[o.LOCALE.PhilippinesEnglish]:e.enUS,[o.LOCALE.Vietnam]:e.vi,[o.LOCALE.Cambodia]:e.km,[o.LOCALE.India]:e.hi,[o.LOCALE.Indonesia]:e.id,[o.LOCALE.Myanmar]:e.enUS,[o.LOCALE.Malaysia]:e.ms,[o.LOCALE.Thailand]:e.th,[o.LOCALE.Taiwan]:e.zhTW},L="https://cdn.hellohealthgroup.com/countries";var S=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:a,domainLocales:s,LOCALE_SPECS:E,STATIC_PAGES:O,UP_BASEPATH:c,TOGETHER_LOCALES:I,ECOM_LOCALES:r,CARE_LOCALES:h,CARE_BOOKING_LOCALES:T,FAVICONS:p,get QUERY_HEALTH_TOOL(){return exports.QUERY_HEALTH_TOOL},ISO_FORMAT:A,BEARER_TOKEN_COOKIE:m,DATE_FNS_LOCALE:C,CDN_ADDRESS:L,GA_TOKEN_COOKIE:"_ga",siteHost:i,siteOptions:n,get RISK_SCREENER_NAME(){return exports.RISK_SCREENER_NAME},RISK_SCREENER_SLUG:t,isProduction:l.isProduction});exports.BEARER_TOKEN_COOKIE=m,exports.CARE_BOOKING_LOCALES=T,exports.CARE_LOCALES=h,exports.CDN_ADDRESS=L,exports.DATE_FNS_LOCALE=C,exports.ECOM_LOCALES=r,exports.FAVICONS=p,exports.GA_TOKEN_COOKIE="_ga",exports.ISO_FORMAT=A,exports.LOCALE_SPECS=E,exports.RISK_SCREENER_SLUG=t,exports.STATIC_PAGES=O,exports.TOGETHER_LOCALES=I,exports.UP_BASEPATH=c,exports.USER_GEOLOCATION_COORDINATES_COOKIE=a,exports.domainLocales=s,exports.index=S,exports.siteHost=i,exports.siteOptions=n;
1
+ "use strict";var e=require("date-fns/locale"),o=require("./Onboarding-ff8e56fb.js"),l=require("./isProduction-17957999.js");const i={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},n={HELLO_HEALTH_GROUP:{lng:o.LOCALE.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:o.LOCALE.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:o.LOCALE.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:o.LOCALE.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:o.LOCALE.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:o.LOCALE.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:o.LOCALE.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:o.LOCALE.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:o.LOCALE.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:o.LOCALE.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:o.LOCALE.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:o.LOCALE.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};exports.RISK_SCREENER_NAME=void 0,(exports.RISK_SCREENER_NAME||(exports.RISK_SCREENER_NAME={})).HPV="hpv";const t={[o.LOCALE.Vietnam]:{[exports.RISK_SCREENER_NAME.HPV]:"hpv-vaccine"},[o.LOCALE.Indonesia]:{[exports.RISK_SCREENER_NAME.HPV]:"deteksi-dini-hpv"}},a="userGeoLocationCoordinates",s={"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","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},E={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},O={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},c="user",I=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],r=["vi-VN"],h=["vi-VN","id-ID","en-PH","tl-PH"],T=["vi-VN","id-ID"],p={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var _;exports.QUERY_HEALTH_TOOL=void 0,(_=exports.QUERY_HEALTH_TOOL||(exports.QUERY_HEALTH_TOOL={})).bmi="mi",_.gender="gndr",_.age="ge",_.slug="slug",_.resultId="resultId",_.bmr="mr",_.height="gt",_.weight="wght",_.source="surc",_.type="tp",_.startDate="sd",_.additional="tnl",_.week="wk",_.twins="twn",_.weightBefore="wb",_.yourself="yrslf",_.intensity="sy",_.rate="rt",_.method="mthd",_.day="dy",_.pwg="pwg",_.cycle="le",_.period="prd",_.access_token="tkn",_.name="nm",_.id="id";const A={[o.LOCALE.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[o.LOCALE.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[o.LOCALE.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[o.LOCALE.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.LOCALE.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.LOCALE.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},m="hhg_user_token",C={[o.LOCALE.PhilippinesEnglish]:e.enUS,[o.LOCALE.Vietnam]:e.vi,[o.LOCALE.Cambodia]:e.km,[o.LOCALE.India]:e.hi,[o.LOCALE.Indonesia]:e.id,[o.LOCALE.Myanmar]:e.enUS,[o.LOCALE.Malaysia]:e.ms,[o.LOCALE.Thailand]:e.th,[o.LOCALE.Taiwan]:e.zhTW},L="https://cdn.hellohealthgroup.com/countries";var S=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:a,domainLocales:s,LOCALE_SPECS:E,STATIC_PAGES:O,UP_BASEPATH:c,TOGETHER_LOCALES:I,ECOM_LOCALES:r,CARE_LOCALES:h,CARE_BOOKING_LOCALES:T,FAVICONS:p,get QUERY_HEALTH_TOOL(){return exports.QUERY_HEALTH_TOOL},ISO_FORMAT:A,BEARER_TOKEN_COOKIE:m,DATE_FNS_LOCALE:C,CDN_ADDRESS:L,GA_TOKEN_COOKIE:"_ga",siteHost:i,siteOptions:n,get RISK_SCREENER_NAME(){return exports.RISK_SCREENER_NAME},RISK_SCREENER_SLUG:t,isProduction:l.isProduction});exports.BEARER_TOKEN_COOKIE=m,exports.CARE_BOOKING_LOCALES=T,exports.CARE_LOCALES=h,exports.CDN_ADDRESS=L,exports.DATE_FNS_LOCALE=C,exports.ECOM_LOCALES=r,exports.FAVICONS=p,exports.GA_TOKEN_COOKIE="_ga",exports.ISO_FORMAT=A,exports.LOCALE_SPECS=E,exports.RISK_SCREENER_SLUG=t,exports.STATIC_PAGES=O,exports.TOGETHER_LOCALES=I,exports.UP_BASEPATH=c,exports.USER_GEOLOCATION_COORDINATES_COOKIE=a,exports.domainLocales=s,exports.index=S,exports.siteHost=i,exports.siteOptions=n;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),t=require("@mantine/core"),a=require("./screenSizeContext-33e6c658.js"),l=require("./index.styles-e11660ee.js"),o=require("./index-9faf9072.js"),r=require("styled-components"),i=require("./useTranslations-10d0cd79.js"),n=require("./Onboarding-e89cd92f.js"),d=require("./index-b90a3e0d.js"),s=require("./index-46d9cba7.js"),c=require("./theme-dd5f10d8.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=u(e),p=u(r);const h=({open:e=!1,onClickOutside:t})=>m.default.createElement(l.StyledBackdrop,{"data-open":e,onClick:t}),f=({value:t,options:a,className:r,direction:i="horizontal",onChange:n,isDisabled:d,siteType:u})=>{const[p,h]=e.useState(t),f="marryBaby"===u;return m.default.createElement(l.StyledRadioImageGroup,{className:r,"data-direction":i},a.map(((e,a)=>m.default.createElement(l.StyledRadioImageItem,{"data-selected":(t||p)===e.value,"data-is-mb":f,"data-disabled":d,key:a,onClick:()=>{var t;t=e.value,d||(h(t),n&&n(t))}},m.default.createElement("div",null,e.content,e.label&&m.default.createElement(m.default.Fragment,null,f?m.default.createElement(s.MarryBabyText,{type:"subtitle-2",color:(t||p)===e.value?c.theme.mbColors.dark:c.theme.mbColors.midGray},e.label):m.default.createElement(o.Text,{type:"bold",color:(t||p)===e.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},e.label)))))))},g=p.default.div`
1
+ "use strict";var e=require("react"),t=require("@mantine/core"),a=require("./screenSizeContext-c47c6eb3.js"),l=require("./index.styles-39df8ae0.js"),o=require("./index-d2d43e0c.js"),r=require("styled-components"),i=require("./useTranslations-b6bf15b4.js"),n=require("./Onboarding-ff8e56fb.js"),d=require("./index-888fdba1.js"),s=require("./index-a4c58abb.js"),c=require("./theme-604d129e.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=u(e),p=u(r);const h=({open:e=!1,onClickOutside:t})=>m.default.createElement(l.StyledBackdrop,{"data-open":e,onClick:t}),f=({value:t,options:a,className:r,direction:i="horizontal",onChange:n,isDisabled:d,siteType:u})=>{const[p,h]=e.useState(t),f="marryBaby"===u;return m.default.createElement(l.StyledRadioImageGroup,{className:r,"data-direction":i},a.map(((e,a)=>m.default.createElement(l.StyledRadioImageItem,{"data-selected":(t||p)===e.value,"data-is-mb":f,"data-disabled":d,key:a,onClick:()=>{var t;t=e.value,d||(h(t),n&&n(t))}},m.default.createElement("div",null,e.content,e.label&&m.default.createElement(m.default.Fragment,null,f?m.default.createElement(s.MarryBabyText,{type:"subtitle-2",color:(t||p)===e.value?c.theme.mbColors.dark:c.theme.mbColors.midGray},e.label):m.default.createElement(o.Text,{type:"bold",color:(t||p)===e.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},e.label)))))))},g=p.default.div`
2
2
  position: relative;
3
3
  z-index: 200;
4
4
  background-color: ${e=>e.theme.colors.white};
@@ -27,7 +27,7 @@
27
27
  background-color: none;
28
28
  box-shadow: none;
29
29
  }
30
- `,y="hhgcomp-modal-modal",x=l.getDefaultClassWrapper(g,y),b=p.default.div`
30
+ `,b="hhgcomp-modal-modal",y=l.getDefaultClassWrapper(g,b),x=p.default.div`
31
31
  position: fixed;
32
32
  top: 0;
33
33
  left: 0;
@@ -62,25 +62,25 @@
62
62
  }
63
63
 
64
64
  &.slideTop {
65
- .${y} {
65
+ .${b} {
66
66
  transform: translate(0, -100vh);
67
67
  transition: all 0.5s ease;
68
68
  }
69
69
 
70
70
  &[data-open='true'] {
71
- .${y} {
71
+ .${b} {
72
72
  transform: translate(0);
73
73
  }
74
74
  }
75
75
  }
76
76
 
77
77
  &.scaleUp {
78
- .${y} {
78
+ .${b} {
79
79
  transform: scale(0.9);
80
80
  }
81
81
 
82
82
  &[data-open='true'] {
83
- .${y} {
83
+ .${b} {
84
84
  transition: all 0.3s ease-out;
85
85
  transform: scale(1);
86
86
  }
@@ -89,7 +89,7 @@
89
89
 
90
90
  &[data-type='tail'] {
91
91
  justify-content: flex-end;
92
- .${y} {
92
+ .${b} {
93
93
  width: 420px;
94
94
  height: 100%;
95
95
  border-radius: 0;
@@ -97,7 +97,7 @@
97
97
  }
98
98
  }
99
99
  &[data-type='form'] {
100
- .${y} {
100
+ .${b} {
101
101
  width: 496px;
102
102
  height: 548px;
103
103
  max-height: 100%;
@@ -108,7 +108,7 @@
108
108
  }
109
109
  }
110
110
  &[data-type='video'] {
111
- .${y} {
111
+ .${b} {
112
112
  height: 100%;
113
113
  max-height: 539px;
114
114
  ${a.MediaQueries.mbDown} {
@@ -121,7 +121,7 @@
121
121
  }
122
122
  }
123
123
  &[data-type='confirm'] {
124
- .${y} {
124
+ .${b} {
125
125
  width: 100%;
126
126
  max-width: 407px;
127
127
  ${a.MediaQueries.mbDown} {
@@ -174,4 +174,4 @@
174
174
  .radio-group-item-heading {
175
175
  margin-top: 0;
176
176
  }
177
- `;exports.BabyGrowthGender=({value:e,onChange:t,siteType:a})=>{const{t:l}=i.useTranslations(),r="marryBaby"==a;return m.default.createElement(v,{"data-is-marryBaby":r},r?m.default.createElement(s.MarryBabyHeading,{type:"h4",color:c.theme.mbColors.dark},l("babyVaccineTool.selectGender")):m.default.createElement(o.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},l("babyVaccineTool.selectGender")),m.default.createElement(w,{siteType:a,options:[{value:n.Gender.Boy,label:l("gender.male"),content:r?m.default.createElement(d.Icon.BabyBoyMB,null):m.default.createElement(d.Icon.GenderChooseBoy,null)},{value:n.Gender.Girl,label:l("gender.female"),content:r?m.default.createElement(d.Icon.BabyGirlMB,null):m.default.createElement(d.Icon.GenderChooseGirl,null)}],value:e,onChange:t,className:"gender-selector"}))},exports.Drawer=({children:r,title:i,onClose:n,open:d=!1,placement:s="left",destroyOnClose:c=!1,isPropagationEvent:u=!0,className:p})=>{const f=e.useRef();e.useEffect((()=>(a.toggleNoScroll(d),()=>a.toggleNoScroll(!1))),[d]);const g=()=>{f.current.classList.add("slideOut"),setTimeout((()=>{n()}),800)};return!d&&c?null:m.default.createElement(t.Portal,null,m.default.createElement(l.StyledDrawer,{className:p,open:d},m.default.createElement(h,{open:d,onClickOutside:g}),m.default.createElement(l.StyledDrawerPanel,{open:d,placement:s,ref:f,hasTitle:Boolean(i)},m.default.createElement("div",{className:"title"},i&&m.default.createElement(o.Text,{size:"s2",type:"semiBold"},i),m.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:g},m.default.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),m.default.createElement(l.StyledDrawerContent,{onClick:e=>{u&&e.stopPropagation()}},r&&(m.default.isValidElement(r)?r:"function"==typeof r?r({internalClose:g}):null)))))},exports.RadioImageGroup=f,exports.StyledModal=x,exports.StyledModalMask=C,exports.StyledModalWrapper=b;
177
+ `;exports.BabyGrowthGender=({value:e,onChange:t,siteType:a})=>{const{t:l}=i.useTranslations(),r="marryBaby"==a;return m.default.createElement(v,{"data-is-marryBaby":r},r?m.default.createElement(s.MarryBabyHeading,{type:"h4",color:c.theme.mbColors.dark},l("babyVaccineTool.selectGender")):m.default.createElement(o.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},l("babyVaccineTool.selectGender")),m.default.createElement(w,{siteType:a,options:[{value:n.Gender.Boy,label:l("gender.male"),content:r?m.default.createElement(d.Icon.BabyBoyMB,null):m.default.createElement(d.Icon.GenderChooseBoy,null)},{value:n.Gender.Girl,label:l("gender.female"),content:r?m.default.createElement(d.Icon.BabyGirlMB,null):m.default.createElement(d.Icon.GenderChooseGirl,null)}],value:e,onChange:t,className:"gender-selector"}))},exports.Drawer=({children:r,title:i,onClose:n,open:d=!1,placement:s="left",destroyOnClose:c=!1,isPropagationEvent:u=!0,className:p})=>{const f=e.useRef();e.useEffect((()=>(a.toggleNoScroll(d),()=>a.toggleNoScroll(!1))),[d]);const g=()=>{f.current.classList.add("slideOut"),setTimeout((()=>{n()}),800)};return!d&&c?null:m.default.createElement(t.Portal,null,m.default.createElement(l.StyledDrawer,{className:p,open:d},m.default.createElement(h,{open:d,onClickOutside:g}),m.default.createElement(l.StyledDrawerPanel,{open:d,placement:s,ref:f,hasTitle:Boolean(i)},m.default.createElement("div",{className:"title"},i&&m.default.createElement(o.Text,{size:"s2",type:"semiBold"},i),m.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:g},m.default.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),m.default.createElement(l.StyledDrawerContent,{onClick:e=>{u&&e.stopPropagation()}},r&&(m.default.isValidElement(r)?r:"function"==typeof r?r({internalClose:g}):null)))))},exports.RadioImageGroup=f,exports.StyledModal=y,exports.StyledModalMask=C,exports.StyledModalWrapper=x;
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("./index.styles-e11660ee.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e);var l="Dudns9-";exports.BtnChoice=({value:a,choices:n,onChange:i})=>{const[s,d]=e.useState(a);return e.useEffect((()=>{d(a)}),[a]),r.default.createElement("div",{className:l},n.map(((e,a)=>r.default.createElement(t.Button,{dataEventCategory:e.dataEventCategory,dataEventAction:e.dataEventAction,dataEventLabel:e.dataEventLabel,size:"sm",variant:e.value===s?"primary":"tertiary",key:a,onClick:()=>{d(e.value),null==i||i(e.value)}},e.label||""))))},exports.Divider=({type:e="solid",className:a,style:l})=>r.default.createElement(t.StyledDivider,{style:l,className:a,"data-diver-type":e,dividerType:e});
1
+ "use strict";var e=require("react"),t=require("./index.styles-39df8ae0.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e);var l="Dudns9-";exports.BtnChoice=({value:a,choices:n,onChange:i})=>{const[d,s]=e.useState(a);return e.useEffect((()=>{s(a)}),[a]),r.default.createElement("div",{className:l},n.map(((e,a)=>r.default.createElement(t.Button,{dataEventCategory:e.dataEventCategory,dataEventAction:e.dataEventAction,dataEventLabel:e.dataEventLabel,size:"sm",variant:e.value===d?"primary":"tertiary",key:a,onClick:()=>{s(e.value),null==i||i(e.value)}},e.label||""))))},exports.Divider=({type:e="solid",className:a,style:l})=>r.default.createElement(t.StyledDivider,{style:l,className:a,"data-diver-type":e,dividerType:e});
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-bb49a3d1.js"),t=require("react"),n=require("@mantine/hooks"),a=require("./index-45a27811.js"),l=require("./index.styles-e11660ee.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);exports.Slider=r=>{var{color:s,withControl:i,onChange:u,value:c,min:d,max:m,isStatic:h,containerClassName:f,containerStyle:g}=r,w=e.__rest(r,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[v,E]=t.useState(c||d||0),[p]=n.useDebouncedValue(v,l.DEBOUNCED_TIME);return t.useEffect((()=>{null==u||u(p)}),[p]),t.useEffect((()=>{E(c)}),[c]),o.default.createElement(l.StyledSliderWrapper,{className:f,style:g},i&&o.default.createElement(a.Button,{type:"button",size:"sm",color:"ghost",onClick:()=>{E((e=>d&&e===d?e:e-1))}},o.default.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},o.default.createElement("path",{d:"M1 1.004h8",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),o.default.createElement(l.StyledSlider,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:s,value:v,onChange:h?()=>null:E,min:d,max:m},w,{className:"hhg-mantine-slider "+(w.className||"")})),i&&o.default.createElement(a.Button,{type:"button",size:"sm",color:"ghost",onClick:()=>{E((e=>m&&e===m?e:e+1))}},o.default.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},o.default.createElement("path",{d:"M8 4v8M4 8h8",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};
1
+ "use strict";var e=require("./tslib.es6-cd344553.js"),t=require("react"),n=require("@mantine/hooks"),a=require("./index-82f71333.js"),l=require("./index.styles-39df8ae0.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);exports.Slider=r=>{var{color:s,withControl:i,onChange:u,value:c,min:d,max:m,isStatic:h,containerClassName:f,containerStyle:g}=r,w=e.__rest(r,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[v,E]=t.useState(c||d||0),[p]=n.useDebouncedValue(v,l.DEBOUNCED_TIME);return t.useEffect((()=>{null==u||u(p)}),[p]),t.useEffect((()=>{E(c)}),[c]),o.default.createElement(l.StyledSliderWrapper,{className:f,style:g},i&&o.default.createElement(a.Button,{type:"button",size:"sm",color:"ghost",onClick:()=>{E((e=>d&&e===d?e:e-1))}},o.default.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},o.default.createElement("path",{d:"M1 1.004h8",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),o.default.createElement(l.StyledSlider,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:s,value:v,onChange:h?()=>null:E,min:d,max:m},w,{className:"hhg-mantine-slider "+(w.className||"")})),i&&o.default.createElement(a.Button,{type:"button",size:"sm",color:"ghost",onClick:()=>{E((e=>m&&e===m?e:e+1))}},o.default.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},o.default.createElement("path",{d:"M8 4v8M4 8h8",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),t=require("@mantine/core"),a=require("./useTranslations-10d0cd79.js"),i=require("lodash/debounce"),n=require("./isProduction-a9c34dc0.js"),o=require("./index-cd875ad3.js");require("./useCategory-642c5d6e.js");var r=require("./gAssets.js"),l=require("./cookieHelper-930da89d.js"),s=require("./index.styles-e11660ee.js"),d=require("styled-components"),c=require("./index.styled-5782fa6c.js"),u=require("./tslib.es6-bb49a3d1.js"),p=require("./index-f8959db6.js"),m=require("./index-b90a3e0d.js"),h=require("./screenSizeContext-33e6c658.js"),g=require("./theme-dd5f10d8.js");require("@mantine/dates");var f=require("./Onboarding-e89cd92f.js"),b=require("dayjs"),x=require("./number-f2401651.js"),v=require("@mantine/hooks");require("innertext");var y=require("date-fns"),w=require("react-day-picker/DayPickerInput");require("react-dom");var C=require("./index-19063c94.js");require("lodash/throttle");var E=require("./index-dd83265f.js"),k=require("./index-9faf9072.js"),S=require("./index-45a27811.js"),A=require("./index-2f2b9b6f.js"),T=require("./types-13e699dc.js"),N=require("react-hook-form");require("./translationsContext-bded011e.js"),require("string-format");var I=require("@hookform/resolvers/yup"),B=require("./index-46d9cba7.js"),P=require("./index-623e5f9e.js");require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-fb3b67b4.js"),require("uuid"),require("./utils-79d816c1.js");var D=require("dayjs/plugin/relativeTime"),M=require("./paths-daf0280c.js"),z=require("./constants-d04930bd.js"),O=require("./index-126c526c.js"),L=require("./useUniqueId-d8647562.js");require("react-contenteditable");var _=require("./normalizeLink-013048ff.js"),R=require("@mantine/form"),j=require("./useHealthToolCache-be0f5a6c.js"),$=require("js-cookie"),F=require("lodash/flatten"),U=require("lodash/uniqBy");function V(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function H(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var q=V(e),G=H(e),W=V(i),Q=V(d),Z=V(b),X=V(w),Y=V(D),K=V($),J=V(F),ee=V(U);const te=({type:e,size:t="small",label:a,name:i,checked:n,value:o,className:r,isDisabled:l=!1,onChange:d,dataEventCategory:c,dataEventAction:u,dataEventLabel:p})=>{const m=!!u&&!!c&&!!p?{"data-event-category":c,"data-event-action":u,"data-event-label":p}:{};return q.default.createElement(s.StyledRadio,{"data-disabled":l,className:r,"data-type":e,"data-size":t},q.default.createElement("label",Object.assign({style:{display:"flex",alignItems:"center"}},m),q.default.createElement("input",Object.assign({type:"radio",checked:n,name:i,value:o,onChange:()=>d(o)},m)),a))},ae={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},ie=e=>{var{siteType:t,role:i,title:n,styles:o,className:r}=e,l=u.__rest(e,["siteType","role","title","styles","className"]);const{t:d}=a.useTranslations(),c=i?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(i):"",{classes:p,cx:m}=s.useStyles$1(void 0,{name:"AuthorBadge",styles:o});return c&&ae[c]?q.default.createElement("div",Object.assign({className:m(p.root,r),"data-label-type":c,"data-is-marrybaby":"marryBaby"===t},l),n||d(ae[c])):null},ne=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.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"})),oe=t=>{var{label:i,bookingId:r,bookingType:l="doctor",locale:d="vi-VN"}=t,c=u.__rest(t,["label","bookingId","bookingType","locale"]);const{t:p}=a.useTranslations(),[m,h]=e.useState(!1),g=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]),f=e.useCallback((()=>u.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,i,c,u,p,m,g,f,b,x,v,y,w;const C="doctor"===l?M.PATHS.GET_DOCTOR_DETAIL:"hospital"===l?M.PATHS.GET_HOSPITAL_DETAIL:"service"===l?M.PATHS.GET_SERVICE_DETAIL:"";try{h(!0);const E=yield s.callApi(s.getCarePath(C,{id:r,site:o.domainLocales[d]}),"get");if(1===(null==E?void 0:E._status)){const r="doctor"===l?{id:null===(t=null===(e=null==E?void 0:E._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(i=null===(a=null==E?void 0:E._data)||void 0===a?void 0:a.doctor)||void 0===i?void 0:i.slug,localSlug:null===(c=z.LOCALIZED_SLUGS[d])||void 0===c?void 0:c.DOCTOR}:"hospital"===l?{id:null===(p=null===(u=null==E?void 0:E._data)||void 0===u?void 0:u.branch)||void 0===p?void 0:p.id,slug:null===(g=null===(m=null==E?void 0:E._data)||void 0===m?void 0:m.branch)||void 0===g?void 0:g.slug,localSlug:null===(f=z.LOCALIZED_SLUGS[d])||void 0===f?void 0:f.HOSPITAL}:{id:null===(x=null===(b=null==E?void 0:E._data)||void 0===b?void 0:b.service)||void 0===x?void 0:x.id,slug:null===(y=null===(v=null==E?void 0:E._data)||void 0===v?void 0:v.service)||void 0===y?void 0:y.slug,localSlug:null===(w=z.LOCALIZED_SLUGS[d])||void 0===w?void 0:w.SERVICE};window.location.href=`https://${n.isProduction?"":"discover."}${o.domainLocales[d]}/care/${r.localSlug}/${r.slug}-${r.id}/`}else h(!1)}catch(e){console.log(e),h(!1)}}))),[]);return r&&l?q.default.createElement(s.Button,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:g,onClick:f,loading:m},c),i||p("careBooking.bookAnAppointment")):null},re=e.memo((()=>q.default.createElement("div",{className:"shoppable"},q.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),q.default.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),le=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>q.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),se=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>q.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var de=t.createStyles(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ce=Q.default.a`
1
+ "use strict";var e=require("react"),t=require("@mantine/core"),a=require("./useTranslations-b6bf15b4.js"),i=require("lodash/debounce"),n=require("./isProduction-17957999.js"),o=require("./index-21222332.js");require("./useCategory-0856ee2c.js");var r=require("./gAssets.js"),l=require("./cookieHelper-fb5b7a25.js"),s=require("./index.styles-39df8ae0.js"),d=require("styled-components"),c=require("./index.styled-d8110631.js"),u=require("./tslib.es6-cd344553.js"),p=require("./index-1223eb4f.js"),m=require("./index-888fdba1.js"),h=require("./screenSizeContext-c47c6eb3.js"),g=require("./theme-604d129e.js");require("@mantine/dates");var f=require("./Onboarding-ff8e56fb.js"),b=require("dayjs"),x=require("./number-364c2be4.js"),v=require("@mantine/hooks");require("innertext");var y=require("date-fns"),w=require("react-day-picker/DayPickerInput");require("react-dom");var C=require("./index-240ac4db.js");require("lodash/throttle");var E=require("./index-667c791c.js"),k=require("./index-d2d43e0c.js"),S=require("./index-82f71333.js"),A=require("./index-f313b4f1.js"),T=require("./types-008d21f9.js"),N=require("react-hook-form");require("./translationsContext-b23da8b8.js"),require("string-format");var I=require("@hookform/resolvers/yup"),B=require("./index-a4c58abb.js"),P=require("./index-2b1e8db5.js");require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-49d29249.js"),require("uuid"),require("./utils-8f249b1c.js");var D=require("dayjs/plugin/relativeTime"),M=require("./paths-c4b7d0e7.js"),z=require("./constants-1c9533f8.js"),O=require("./index-94a5fbab.js"),L=require("./useUniqueId-264e40ed.js");require("react-contenteditable");var _=require("./normalizeLink-cf4485e8.js"),R=require("@mantine/form"),j=require("./useHealthToolCache-48e07107.js"),$=require("js-cookie"),F=require("lodash/flatten"),U=require("lodash/uniqBy");function V(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function H(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var q=V(e),G=H(e),W=V(i),Q=V(d),Z=V(b),X=V(w),Y=V(D),K=V($),J=V(F),ee=V(U);const te=({type:e,size:t="small",label:a,name:i,checked:n,value:o,className:r,isDisabled:l=!1,onChange:d,dataEventCategory:c,dataEventAction:u,dataEventLabel:p})=>{const m=!!u&&!!c&&!!p?{"data-event-category":c,"data-event-action":u,"data-event-label":p}:{};return q.default.createElement(s.StyledRadio,{"data-disabled":l,className:r,"data-type":e,"data-size":t},q.default.createElement("label",Object.assign({style:{display:"flex",alignItems:"center"}},m),q.default.createElement("input",Object.assign({type:"radio",checked:n,name:i,value:o,onChange:()=>d(o)},m)),a))},ae={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},ie=e=>{var{siteType:t,role:i,title:n,styles:o,className:r}=e,l=u.__rest(e,["siteType","role","title","styles","className"]);const{t:d}=a.useTranslations(),c=i?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(i):"",{classes:p,cx:m}=s.useStyles$1(void 0,{name:"AuthorBadge",styles:o});return c&&ae[c]?q.default.createElement("div",Object.assign({className:m(p.root,r),"data-label-type":c,"data-is-marrybaby":"marryBaby"===t},l),n||d(ae[c])):null},ne=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.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"})),oe=t=>{var{label:i,bookingId:r,bookingType:l="doctor",locale:d="vi-VN"}=t,c=u.__rest(t,["label","bookingId","bookingType","locale"]);const{t:p}=a.useTranslations(),[m,h]=e.useState(!1),g=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]),f=e.useCallback((()=>u.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,i,c,u,p,m,g,f,b,x,v,y,w;const C="doctor"===l?M.PATHS.GET_DOCTOR_DETAIL:"hospital"===l?M.PATHS.GET_HOSPITAL_DETAIL:"service"===l?M.PATHS.GET_SERVICE_DETAIL:"";try{h(!0);const E=yield s.callApi(s.getCarePath(C,{id:r,site:o.domainLocales[d]}),"get");if(1===(null==E?void 0:E._status)){const r="doctor"===l?{id:null===(t=null===(e=null==E?void 0:E._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(i=null===(a=null==E?void 0:E._data)||void 0===a?void 0:a.doctor)||void 0===i?void 0:i.slug,localSlug:null===(c=z.LOCALIZED_SLUGS[d])||void 0===c?void 0:c.DOCTOR}:"hospital"===l?{id:null===(p=null===(u=null==E?void 0:E._data)||void 0===u?void 0:u.branch)||void 0===p?void 0:p.id,slug:null===(g=null===(m=null==E?void 0:E._data)||void 0===m?void 0:m.branch)||void 0===g?void 0:g.slug,localSlug:null===(f=z.LOCALIZED_SLUGS[d])||void 0===f?void 0:f.HOSPITAL}:{id:null===(x=null===(b=null==E?void 0:E._data)||void 0===b?void 0:b.service)||void 0===x?void 0:x.id,slug:null===(y=null===(v=null==E?void 0:E._data)||void 0===v?void 0:v.service)||void 0===y?void 0:y.slug,localSlug:null===(w=z.LOCALIZED_SLUGS[d])||void 0===w?void 0:w.SERVICE};window.location.href=`https://${n.isProduction?"":"discover."}${o.domainLocales[d]}/care/${r.localSlug}/${r.slug}-${r.id}/`}else h(!1)}catch(e){console.log(e),h(!1)}}))),[]);return r&&l?q.default.createElement(s.Button,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:g,onClick:f,loading:m},c),i||p("careBooking.bookAnAppointment")):null},re=e.memo((()=>q.default.createElement("div",{className:"shoppable"},q.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),q.default.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),le=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>q.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),se=e.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>q.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var de=t.createStyles(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ce=Q.default.a`
2
2
  display: flex;
3
3
  height: 125px;
4
4