@hhgtech/hhg-components 1.27.94 → 1.27.96

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 (284) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/atoms/genderOptionControl/index.d.ts +8 -5
  5. package/build/components/atoms/genderOptionControl/index.styles.d.ts +14 -0
  6. package/build/components.js +1 -1
  7. package/build/constants.js +1 -1
  8. package/build/{core-9fcf07fd.js → core-be6e56e4.js} +1 -1
  9. package/build/{dataTransform-bb98e4ed.js → dataTransform-2cd5ef8c.js} +1 -1
  10. package/build/ecom.js +1 -1
  11. package/build/esm/babyGrowth.js +5 -5
  12. package/build/esm/cache.js +1 -1
  13. package/build/esm/care.js +1 -1
  14. package/build/esm/components/atoms/genderOptionControl/index.d.ts +8 -5
  15. package/build/esm/components/atoms/genderOptionControl/index.styles.d.ts +14 -0
  16. package/build/esm/components.js +1 -1
  17. package/build/esm/constants.js +1 -1
  18. package/build/esm/{core-af47547d.js → core-ffb0ddf6.js} +1 -1
  19. package/build/esm/{dataTransform-9c378298.js → dataTransform-9f2ebda0.js} +1 -1
  20. package/build/esm/ecom.js +1 -1
  21. package/build/esm/fixedBottomAdBlock-60783f26.js +1 -0
  22. package/build/esm/footer.js +1 -1
  23. package/build/esm/gAssets.js +1 -1
  24. package/build/esm/{getDynamicHealthTool-6a3c8078.js → getDynamicHealthTool-027b7803.js} +1 -1
  25. package/build/esm/{getSocialList-a5d60f35.js → getSocialList-52da18d0.js} +1 -1
  26. package/build/esm/hooks.js +1 -1
  27. package/build/esm/i18n.js +1 -1
  28. package/build/esm/i18nV2.js +1 -1
  29. package/build/esm/{index-c971b345.js → index-0fb925b6.js} +6 -6
  30. package/build/esm/{index-ba85d64d.js → index-26a2ee91.js} +1 -1
  31. package/build/esm/{index-8a8901c6.js → index-2a759657.js} +1 -1
  32. package/build/esm/{index-da9ca7e2.js → index-2f5e4a37.js} +11 -11
  33. package/build/esm/index-30e724bb.js +1 -0
  34. package/build/esm/index-3698a3ef.js +1 -0
  35. package/build/esm/{index-cc75b854.js → index-454e9c61.js} +1 -1
  36. package/build/esm/{index-6786f270.js → index-50b82bdc.js} +1 -1
  37. package/build/esm/index-5995249b.js +53 -0
  38. package/build/esm/index-73af5255.js +1 -0
  39. package/build/esm/{index-01e2db8e.js → index-7750374f.js} +1 -1
  40. package/build/esm/index-971f655c.js +1 -0
  41. package/build/esm/{index-cde0f5d0.js → index-a05702d8.js} +1 -1
  42. package/build/esm/{index-5e37a3b2.js → index-b98dec31.js} +1 -1
  43. package/build/esm/index-bd225cb9.js +1 -0
  44. package/build/esm/index-bfc50089.js +1 -0
  45. package/build/esm/index-c740cf62.js +1 -0
  46. package/build/esm/index-c871cb6f.js +1 -0
  47. package/build/esm/index-d43afc30.js +1 -0
  48. package/build/esm/{index-100cd6b4.js → index-e4d4073a.js} +1 -1
  49. package/build/esm/index-f448f58a.js +1 -0
  50. package/build/esm/index.js +1 -1
  51. package/build/esm/{index.styled-c845642c.js → index.styled-78872db8.js} +6 -3
  52. package/build/esm/{index.styled-a1afc6b8.js → index.styled-bda910bc.js} +1 -1
  53. package/build/esm/{index.styled-c7de6cc8.js → index.styled-d5418bb8.js} +6 -6
  54. package/build/esm/{utils-d69b1150.js → index.styles-e88a5e1d.js} +2 -2
  55. package/build/esm/lead.js +1 -1
  56. package/build/esm/mantine.js +1 -1
  57. package/build/esm/misc.js +1 -1
  58. package/build/esm/navigation.js +1 -1
  59. package/build/esm/onboarding.js +1 -1
  60. package/build/esm/onboardingV2.js +4 -4
  61. package/build/esm/pwg.js +1 -1
  62. package/build/esm/{routing-9753dcf0.js → routing-894c0291.js} +1 -1
  63. package/build/esm/together.js +1 -1
  64. package/build/esm/{types-d945a5a0.js → types-4234bbfd.js} +1 -1
  65. package/build/esm/{types-40033b0a.js → types-9d98075d.js} +1 -1
  66. package/build/esm/types.js +1 -1
  67. package/build/esm/useHealthToolCache-fc62239c.js +1 -0
  68. package/build/esm/{useRafState-af606dfa.js → useRafState-0157d0fe.js} +1 -1
  69. package/build/esm/{useTranslations-d201c232.js → useTranslations-d3a965c0.js} +1 -1
  70. package/build/esm/{utils-a87baf0d.js → utils-e36cbdc9.js} +1 -1
  71. package/build/esm/vaccination.js +3 -3
  72. package/build/fixedBottomAdBlock-fe395a9f.js +1 -0
  73. package/build/footer.js +1 -1
  74. package/build/gAssets.js +1 -1
  75. package/build/getDynamicHealthTool-fc648480.js +1 -0
  76. package/build/{getSocialList-53d87141.js → getSocialList-071f0b03.js} +1 -1
  77. package/build/hooks.js +1 -1
  78. package/build/i18n.js +1 -1
  79. package/build/i18nV2.js +1 -1
  80. package/build/{index-71d85653.js → index-02d4af55.js} +1 -1
  81. package/build/index-177aa663.js +1 -0
  82. package/build/{index-c2af95db.js → index-18854a1a.js} +1 -1
  83. package/build/{index-99c65f9f.js → index-210cbc0f.js} +1 -1
  84. package/build/{index-2a51b24a.js → index-5252e906.js} +1 -1
  85. package/build/index-6c023cec.js +1 -0
  86. package/build/index-72fdcca5.js +1 -0
  87. package/build/index-7408ab26.js +1 -0
  88. package/build/index-7a758765.js +53 -0
  89. package/build/index-8ceeaa65.js +1 -0
  90. package/build/{index-a07350af.js → index-9c6d670f.js} +1 -1
  91. package/build/{index-0490c4d7.js → index-9fcc13af.js} +1 -1
  92. package/build/{index-ef208995.js → index-a8fb8083.js} +1 -1
  93. package/build/index-b5f2d125.js +1 -0
  94. package/build/{index-eb5e4507.js → index-b778973a.js} +1 -1
  95. package/build/{index-5429b5a6.js → index-bac980d5.js} +1 -1
  96. package/build/{index-2abc1106.js → index-baf7ad53.js} +1 -1
  97. package/build/index-c2c56677.js +1 -0
  98. package/build/index-e61e1184.js +1 -0
  99. package/build/{index-721bfc69.js → index-f1812e00.js} +1 -1
  100. package/build/{index-ac031812.js → index-f3fdcd29.js} +1 -1
  101. package/build/index.js +1 -1
  102. package/build/{index.styled-9e281c1e.js → index.styled-8bf9821e.js} +113 -110
  103. package/build/{index.styled-3eb73818.js → index.styled-9a9571fc.js} +5 -5
  104. package/build/{index.styled-2c1cb242.js → index.styled-bfaffb78.js} +3 -3
  105. package/build/{utils-68f9bb59.js → index.styles-b207e260.js} +18 -18
  106. package/build/lead.js +1 -1
  107. package/build/mantine.js +1 -1
  108. package/build/misc.js +1 -1
  109. package/build/navigation.js +1 -1
  110. package/build/onboarding.js +1 -1
  111. package/build/onboardingV2.js +3 -3
  112. package/build/pwg.js +1 -1
  113. package/build/{routing-167c1c63.js → routing-eb13d3c7.js} +1 -1
  114. package/build/together.js +1 -1
  115. package/build/{types-6e1e85ad.js → types-0edf3275.js} +1 -1
  116. package/build/{types-4bed0cf9.js → types-24fee039.js} +1 -1
  117. package/build/types.js +1 -1
  118. package/build/useHealthToolCache-72a7112d.js +1 -0
  119. package/build/{useRafState-b598f20a.js → useRafState-e4d0d661.js} +1 -1
  120. package/build/{useTranslations-c9d57c50.js → useTranslations-bbc66f56.js} +1 -1
  121. package/build/{utils-fd83d7fb.js → utils-26afb7cb.js} +1 -1
  122. package/build/vaccination.js +1 -1
  123. package/package.json +1 -1
  124. package/build/esm/fixedBottomAdBlock-5c9f8485.js +0 -1
  125. package/build/esm/index-0a1d8fff.js +0 -1
  126. package/build/esm/index-24220ddd.js +0 -1
  127. package/build/esm/index-366f8ef4.js +0 -1
  128. package/build/esm/index-3c818187.js +0 -1
  129. package/build/esm/index-680178ab.js +0 -1
  130. package/build/esm/index-97d14e9f.js +0 -53
  131. package/build/esm/index-a42a1a34.js +0 -1
  132. package/build/esm/index-abf8a313.js +0 -1
  133. package/build/esm/index-b2c3aa96.js +0 -1
  134. package/build/esm/index-f22fdc4b.js +0 -1
  135. package/build/esm/index-f3f1c506.js +0 -1
  136. package/build/esm/useHealthToolCache-d086dbf9.js +0 -1
  137. package/build/fixedBottomAdBlock-d5992284.js +0 -1
  138. package/build/getDynamicHealthTool-bb499674.js +0 -1
  139. package/build/index-3cc747a4.js +0 -1
  140. package/build/index-3e53ab01.js +0 -1
  141. package/build/index-44c807a0.js +0 -1
  142. package/build/index-490e8ff4.js +0 -1
  143. package/build/index-595512d9.js +0 -1
  144. package/build/index-6ed90dcf.js +0 -1
  145. package/build/index-95e3f30c.js +0 -1
  146. package/build/index-aec8eed5.js +0 -53
  147. package/build/index-c6ceb6e9.js +0 -1
  148. package/build/useHealthToolCache-257edf2d.js +0 -1
  149. /package/build/{BMI_BOYS.percentile.monthly-158a1164.js → BMI_BOYS.percentile.monthly-ddd0cd65.js} +0 -0
  150. /package/build/{BMI_BOYS.percentile.weekly-dc20fcf2.js → BMI_BOYS.percentile.weekly-bcc7825c.js} +0 -0
  151. /package/build/{BMI_BOYS.percentile.yearly-841e834d.js → BMI_BOYS.percentile.yearly-3bc4b037.js} +0 -0
  152. /package/build/{BMI_BOYS.zscore.monthly-5edc54a9.js → BMI_BOYS.zscore.monthly-df9bc62e.js} +0 -0
  153. /package/build/{BMI_BOYS.zscore.weekly-3468261b.js → BMI_BOYS.zscore.weekly-f3913ae1.js} +0 -0
  154. /package/build/{BMI_BOYS.zscore.yearly-c6610a42.js → BMI_BOYS.zscore.yearly-debaf8ad.js} +0 -0
  155. /package/build/{BMI_GIRLS.percentile.monthly-097bb7cc.js → BMI_GIRLS.percentile.monthly-5adcb384.js} +0 -0
  156. /package/build/{BMI_GIRLS.percentile.weekly-656a630e.js → BMI_GIRLS.percentile.weekly-33e90e4f.js} +0 -0
  157. /package/build/{BMI_GIRLS.percentile.yearly-5fa9dfec.js → BMI_GIRLS.percentile.yearly-14d53750.js} +0 -0
  158. /package/build/{BMI_GIRLS.zscore.monthly-aa43492e.js → BMI_GIRLS.zscore.monthly-510a937d.js} +0 -0
  159. /package/build/{BMI_GIRLS.zscore.weekly-48b00daa.js → BMI_GIRLS.zscore.weekly-8a5749cd.js} +0 -0
  160. /package/build/{BMI_GIRLS.zscore.yearly-077affb9.js → BMI_GIRLS.zscore.yearly-d24561a2.js} +0 -0
  161. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-44921eea.js → HEAD CIRCUM_BOYS.percentile.monthly-d38962f2.js} +0 -0
  162. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-202cb5a6.js → HEAD CIRCUM_BOYS.percentile.weekly-59208de5.js} +0 -0
  163. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-6f5c939d.js → HEAD CIRCUM_BOYS.percentile.yearly-af186f16.js} +0 -0
  164. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-4f042fc9.js → HEAD CIRCUM_BOYS.zscore.monthly-ed0e8651.js} +0 -0
  165. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-8ea42ae1.js → HEAD CIRCUM_BOYS.zscore.weekly-24c9fe30.js} +0 -0
  166. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d43e0d1e.js → HEAD CIRCUM_BOYS.zscore.yearly-c1af09f4.js} +0 -0
  167. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-3f67c9ae.js → HEAD CIRCUM_GIRLS.percentile.monthly-59b51384.js} +0 -0
  168. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1c6adeed.js → HEAD CIRCUM_GIRLS.percentile.weekly-3dbbad28.js} +0 -0
  169. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-45eca9cc.js → HEAD CIRCUM_GIRLS.percentile.yearly-769664d3.js} +0 -0
  170. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-2c575c38.js → HEAD CIRCUM_GIRLS.zscore.monthly-245ecb03.js} +0 -0
  171. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b72f15c4.js → HEAD CIRCUM_GIRLS.zscore.weekly-2755bc3d.js} +0 -0
  172. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-920a0d10.js → HEAD CIRCUM_GIRLS.zscore.yearly-6ce80a95.js} +0 -0
  173. /package/build/{HEIGHT_BOYS.percentile.monthly-d2f31a41.js → HEIGHT_BOYS.percentile.monthly-09e788ae.js} +0 -0
  174. /package/build/{HEIGHT_BOYS.percentile.weekly-a59a5012.js → HEIGHT_BOYS.percentile.weekly-9a4b92d6.js} +0 -0
  175. /package/build/{HEIGHT_BOYS.percentile.yearly-acf7c7eb.js → HEIGHT_BOYS.percentile.yearly-8f875268.js} +0 -0
  176. /package/build/{HEIGHT_BOYS.zscore.monthly-bd2abc27.js → HEIGHT_BOYS.zscore.monthly-6a8ac0ff.js} +0 -0
  177. /package/build/{HEIGHT_BOYS.zscore.weekly-62c745f0.js → HEIGHT_BOYS.zscore.weekly-ab358091.js} +0 -0
  178. /package/build/{HEIGHT_BOYS.zscore.yearly-2dfedab6.js → HEIGHT_BOYS.zscore.yearly-5467bae8.js} +0 -0
  179. /package/build/{HEIGHT_GIRLS.percentile.monthly-e9899958.js → HEIGHT_GIRLS.percentile.monthly-dce96c99.js} +0 -0
  180. /package/build/{HEIGHT_GIRLS.percentile.weekly-b12839f0.js → HEIGHT_GIRLS.percentile.weekly-a6d6e30c.js} +0 -0
  181. /package/build/{HEIGHT_GIRLS.percentile.yearly-57bb9c09.js → HEIGHT_GIRLS.percentile.yearly-afe56e90.js} +0 -0
  182. /package/build/{HEIGHT_GIRLS.zscore.monthly-1b6283bf.js → HEIGHT_GIRLS.zscore.monthly-59e85dc1.js} +0 -0
  183. /package/build/{HEIGHT_GIRLS.zscore.weekly-8f9b11f1.js → HEIGHT_GIRLS.zscore.weekly-bda7691a.js} +0 -0
  184. /package/build/{HEIGHT_GIRLS.zscore.yearly-2e70f648.js → HEIGHT_GIRLS.zscore.yearly-e272f7e1.js} +0 -0
  185. /package/build/{Onboarding-22f1d138.js → Onboarding-f514b8fc.js} +0 -0
  186. /package/build/{Visible-5605a4bd.js → Visible-0e447e39.js} +0 -0
  187. /package/build/{WEIGHT_BOYS.percentile.monthly-af75d841.js → WEIGHT_BOYS.percentile.monthly-c5fe0b3d.js} +0 -0
  188. /package/build/{WEIGHT_BOYS.percentile.weekly-a1800b69.js → WEIGHT_BOYS.percentile.weekly-687521c1.js} +0 -0
  189. /package/build/{WEIGHT_BOYS.percentile.yearly-e09ae72e.js → WEIGHT_BOYS.percentile.yearly-324bcb87.js} +0 -0
  190. /package/build/{WEIGHT_BOYS.zscore.monthly-fb3043d8.js → WEIGHT_BOYS.zscore.monthly-ee55d443.js} +0 -0
  191. /package/build/{WEIGHT_BOYS.zscore.weekly-10f2c903.js → WEIGHT_BOYS.zscore.weekly-0e77aada.js} +0 -0
  192. /package/build/{WEIGHT_BOYS.zscore.yearly-f7da8eb1.js → WEIGHT_BOYS.zscore.yearly-16d2a293.js} +0 -0
  193. /package/build/{WEIGHT_GIRLS.percentile.monthly-626771a3.js → WEIGHT_GIRLS.percentile.monthly-41e65a12.js} +0 -0
  194. /package/build/{WEIGHT_GIRLS.percentile.weekly-0df43951.js → WEIGHT_GIRLS.percentile.weekly-9d4d2850.js} +0 -0
  195. /package/build/{WEIGHT_GIRLS.percentile.yearly-958bb324.js → WEIGHT_GIRLS.percentile.yearly-12b8f151.js} +0 -0
  196. /package/build/{WEIGHT_GIRLS.zscore.monthly-49034ee6.js → WEIGHT_GIRLS.zscore.monthly-d952d563.js} +0 -0
  197. /package/build/{WEIGHT_GIRLS.zscore.weekly-55e7b9bd.js → WEIGHT_GIRLS.zscore.weekly-ffea9d0b.js} +0 -0
  198. /package/build/{WEIGHT_GIRLS.zscore.yearly-40fd617e.js → WEIGHT_GIRLS.zscore.yearly-e41d0f4e.js} +0 -0
  199. /package/build/{constants-f948afab.js → constants-0f5ce422.js} +0 -0
  200. /package/build/{cookieHelper-eefb4894.js → cookieHelper-fed8122a.js} +0 -0
  201. /package/build/{dataTransform-47153a9e.js → dataTransform-76cb9227.js} +0 -0
  202. /package/build/esm/{BMI_BOYS.percentile.monthly-633faf59.js → BMI_BOYS.percentile.monthly-f32a3272.js} +0 -0
  203. /package/build/esm/{BMI_BOYS.percentile.weekly-28dc5243.js → BMI_BOYS.percentile.weekly-bbf8af5b.js} +0 -0
  204. /package/build/esm/{BMI_BOYS.percentile.yearly-95d84667.js → BMI_BOYS.percentile.yearly-37c5b089.js} +0 -0
  205. /package/build/esm/{BMI_BOYS.zscore.monthly-d163b9d4.js → BMI_BOYS.zscore.monthly-3c72e3c5.js} +0 -0
  206. /package/build/esm/{BMI_BOYS.zscore.weekly-34576dae.js → BMI_BOYS.zscore.weekly-1433821e.js} +0 -0
  207. /package/build/esm/{BMI_BOYS.zscore.yearly-be051432.js → BMI_BOYS.zscore.yearly-f5a08ce2.js} +0 -0
  208. /package/build/esm/{BMI_GIRLS.percentile.monthly-e02b01c9.js → BMI_GIRLS.percentile.monthly-4122123d.js} +0 -0
  209. /package/build/esm/{BMI_GIRLS.percentile.weekly-82b2fc82.js → BMI_GIRLS.percentile.weekly-4c9a7257.js} +0 -0
  210. /package/build/esm/{BMI_GIRLS.percentile.yearly-c204cc9c.js → BMI_GIRLS.percentile.yearly-362a6963.js} +0 -0
  211. /package/build/esm/{BMI_GIRLS.zscore.monthly-499a5dfd.js → BMI_GIRLS.zscore.monthly-13fad576.js} +0 -0
  212. /package/build/esm/{BMI_GIRLS.zscore.weekly-c0a57247.js → BMI_GIRLS.zscore.weekly-cd14a1af.js} +0 -0
  213. /package/build/esm/{BMI_GIRLS.zscore.yearly-0d098f78.js → BMI_GIRLS.zscore.yearly-173c39eb.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c885f05f.js → HEAD CIRCUM_BOYS.percentile.monthly-0b970c2f.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-b8fa59fd.js → HEAD CIRCUM_BOYS.percentile.weekly-8660b067.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f0996948.js → HEAD CIRCUM_BOYS.percentile.yearly-f316d088.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-238353c6.js → HEAD CIRCUM_BOYS.zscore.monthly-d4390225.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-44d40a60.js → HEAD CIRCUM_BOYS.zscore.weekly-d8307f55.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-6bb3ce45.js → HEAD CIRCUM_BOYS.zscore.yearly-aad7e2c1.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-2bd2039c.js → HEAD CIRCUM_GIRLS.percentile.monthly-7bf2bdca.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2ddaa292.js → HEAD CIRCUM_GIRLS.percentile.weekly-9c86e979.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-6857488e.js → HEAD CIRCUM_GIRLS.percentile.yearly-4b6b853e.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7f639c0d.js → HEAD CIRCUM_GIRLS.zscore.monthly-006c6194.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f7586a01.js → HEAD CIRCUM_GIRLS.zscore.weekly-5c89961b.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-71c1efb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-954ba611.js} +0 -0
  226. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-892d9b75.js → HEIGHT_BOYS.percentile.monthly-4acc2fc2.js} +0 -0
  227. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-3034912d.js → HEIGHT_BOYS.percentile.weekly-15040026.js} +0 -0
  228. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6a954cae.js → HEIGHT_BOYS.percentile.yearly-84b17fee.js} +0 -0
  229. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-2002329f.js → HEIGHT_BOYS.zscore.monthly-a1d44788.js} +0 -0
  230. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-daca8f04.js → HEIGHT_BOYS.zscore.weekly-6f01e8f2.js} +0 -0
  231. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-01df4df1.js → HEIGHT_BOYS.zscore.yearly-56ac0a7a.js} +0 -0
  232. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e5bc922a.js → HEIGHT_GIRLS.percentile.monthly-6ee76ed3.js} +0 -0
  233. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-9c48c65d.js → HEIGHT_GIRLS.percentile.weekly-23e7f1ea.js} +0 -0
  234. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-409f40e1.js → HEIGHT_GIRLS.percentile.yearly-a7dd4b2e.js} +0 -0
  235. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-51809cf0.js → HEIGHT_GIRLS.zscore.monthly-88220c05.js} +0 -0
  236. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f6edb404.js → HEIGHT_GIRLS.zscore.weekly-8160f06a.js} +0 -0
  237. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-b81de413.js → HEIGHT_GIRLS.zscore.yearly-0149f1bc.js} +0 -0
  238. /package/build/esm/{Onboarding-75b620fb.js → Onboarding-a4b09eeb.js} +0 -0
  239. /package/build/esm/{Visible-d14d0ffd.js → Visible-bd3c56fe.js} +0 -0
  240. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-bd609b0a.js → WEIGHT_BOYS.percentile.monthly-64fe4afa.js} +0 -0
  241. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-886de91b.js → WEIGHT_BOYS.percentile.weekly-dd44d78b.js} +0 -0
  242. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-9f9d28ef.js → WEIGHT_BOYS.percentile.yearly-0b884a6a.js} +0 -0
  243. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-2121b2c1.js → WEIGHT_BOYS.zscore.monthly-609db891.js} +0 -0
  244. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-74c0ea90.js → WEIGHT_BOYS.zscore.weekly-26d251cb.js} +0 -0
  245. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6c6cfdd6.js → WEIGHT_BOYS.zscore.yearly-37bb49b7.js} +0 -0
  246. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-84f8f44c.js → WEIGHT_GIRLS.percentile.monthly-384f9c91.js} +0 -0
  247. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b77530ce.js → WEIGHT_GIRLS.percentile.weekly-61e81372.js} +0 -0
  248. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-d9668fd3.js → WEIGHT_GIRLS.percentile.yearly-6567de6b.js} +0 -0
  249. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-bff4f7b8.js → WEIGHT_GIRLS.zscore.monthly-a481d196.js} +0 -0
  250. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-9c065b51.js → WEIGHT_GIRLS.zscore.weekly-21c57e9b.js} +0 -0
  251. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d45e8b75.js → WEIGHT_GIRLS.zscore.yearly-c79086fe.js} +0 -0
  252. /package/build/esm/{constants-3386a8a1.js → constants-f6b965b7.js} +0 -0
  253. /package/build/esm/{cookieHelper-0d2ed98c.js → cookieHelper-47902215.js} +0 -0
  254. /package/build/esm/{dataTransform-bf5ac5d3.js → dataTransform-02a41236.js} +0 -0
  255. /package/build/esm/{index-2ba15aae.js → index-3be565c3.js} +0 -0
  256. /package/build/esm/{isProduction-7ab7778b.js → isProduction-2a4a5f6f.js} +0 -0
  257. /package/build/esm/{localizeNumberFormat-f06bf604.js → localizeNumberFormat-4d11e0e8.js} +0 -0
  258. /package/build/esm/{normalizeLink-c1b37e6a.js → normalizeLink-dfbc01d4.js} +0 -0
  259. /package/build/esm/{number-9149bc08.js → number-1452c702.js} +0 -0
  260. /package/build/esm/{paths-c70f1cbc.js → paths-de384db0.js} +0 -0
  261. /package/build/esm/{screenSizeContext-36ed866e.js → screenSizeContext-24a74ff6.js} +0 -0
  262. /package/build/esm/{theme-be61bf9f.js → theme-a60f50e6.js} +0 -0
  263. /package/build/esm/{translationsContext-cdcc192f.js → translationsContext-bc07992b.js} +0 -0
  264. /package/build/esm/{tslib.es6-b22f7de9.js → tslib.es6-3fc69102.js} +0 -0
  265. /package/build/esm/{types-f7e1c31b.js → types-510f54ab.js} +0 -0
  266. /package/build/esm/{useIsInit-9dd8830c.js → useIsInit-251a4fe4.js} +0 -0
  267. /package/build/esm/{useOutsideClick-066a21cd.js → useOutsideClick-8024063f.js} +0 -0
  268. /package/build/esm/{useScrollbarSize-2b0db185.js → useScrollbarSize-64077ead.js} +0 -0
  269. /package/build/esm/{useUniqueId-0ddc5645.js → useUniqueId-98cb4079.js} +0 -0
  270. /package/build/{index-3add5155.js → index-a5528b79.js} +0 -0
  271. /package/build/{isProduction-993bd241.js → isProduction-c6dc0c91.js} +0 -0
  272. /package/build/{localizeNumberFormat-b13f7070.js → localizeNumberFormat-bf9d1710.js} +0 -0
  273. /package/build/{normalizeLink-8824c899.js → normalizeLink-de6b62a7.js} +0 -0
  274. /package/build/{number-f4a29405.js → number-bc320719.js} +0 -0
  275. /package/build/{paths-07deb4ed.js → paths-5393c2a0.js} +0 -0
  276. /package/build/{screenSizeContext-a3b36b90.js → screenSizeContext-fcbed1f3.js} +0 -0
  277. /package/build/{theme-0370e429.js → theme-d9b7b823.js} +0 -0
  278. /package/build/{translationsContext-729efeec.js → translationsContext-d91ea02c.js} +0 -0
  279. /package/build/{tslib.es6-0a4fd09b.js → tslib.es6-900d9715.js} +0 -0
  280. /package/build/{types-4bac90e8.js → types-70748f2a.js} +0 -0
  281. /package/build/{useIsInit-ee3a84df.js → useIsInit-26f2f4ff.js} +0 -0
  282. /package/build/{useOutsideClick-6a179b26.js → useOutsideClick-05bb4110.js} +0 -0
  283. /package/build/{useScrollbarSize-249e45d0.js → useScrollbarSize-535a96ff.js} +0 -0
  284. /package/build/{useUniqueId-df620bbf.js → useUniqueId-7ba33ae3.js} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-eb5e4507.js"),t=require("react"),r=require("./Onboarding-22f1d138.js"),a=require("./theme-0370e429.js"),l=require("./index-71d85653.js"),o=require("styled-components"),n=require("./index-0490c4d7.js"),i=require("./index-ac031812.js"),d=require("./index-2a51b24a.js"),s=require("./screenSizeContext-a3b36b90.js"),c=require("dayjs"),u=require("./useTranslations-c9d57c50.js");require("lodash/debounce"),require("./isProduction-993bd241.js"),require("./index-ef208995.js");var h=require("./localizeNumberFormat-b13f7070.js"),C=require("./utils-68f9bb59.js"),m=require("./tslib.es6-0a4fd09b.js"),f=require("./index-5429b5a6.js");require("./gAssets.js"),require("@mantine/core"),require("@mantine/dates"),require("@mantine/hooks");var y=require("./useOutsideClick-6a179b26.js"),p=require("./index-99c65f9f.js"),b=require("./index-a07350af.js"),g=require("recharts"),w=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-df620bbf.js"),require("lodash/throttle"),require("./translationsContext-729efeec.js"),require("string-format"),require("date-fns/locale"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("./cookieHelper-eefb4894.js"),require("slugify"),require("./useScrollbarSize-249e45d0.js"),require("react-dom");var E=x(t),v=x(o),B=x(c),L=x(w);const G=v.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-b778973a.js"),t=require("react"),r=require("./Onboarding-f514b8fc.js"),a=require("./theme-d9b7b823.js"),l=require("./index-02d4af55.js"),o=require("styled-components"),n=require("./index-9fcc13af.js"),i=require("./index-f3fdcd29.js"),d=require("./index-5252e906.js"),s=require("./screenSizeContext-fcbed1f3.js"),c=require("dayjs"),u=require("./useTranslations-bbc66f56.js");require("lodash/debounce"),require("./isProduction-c6dc0c91.js"),require("./index-a8fb8083.js");var h=require("./localizeNumberFormat-bf9d1710.js"),C=require("./index.styles-b207e260.js"),m=require("./tslib.es6-900d9715.js"),f=require("./index-bac980d5.js");require("./gAssets.js"),require("@mantine/core"),require("@mantine/dates"),require("@mantine/hooks");var y=require("./useOutsideClick-05bb4110.js"),p=require("./index-210cbc0f.js"),b=require("./index-9c6d670f.js"),g=require("recharts"),w=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-7ba33ae3.js"),require("lodash/throttle"),require("./translationsContext-d91ea02c.js"),require("string-format"),require("date-fns/locale"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("./cookieHelper-fed8122a.js"),require("slugify"),require("./useScrollbarSize-535a96ff.js"),require("react-dom");var E=x(t),v=x(o),B=x(c),L=x(w);const G=v.default.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  gap: 16px;
@@ -381,7 +381,7 @@
381
381
  }
382
382
  }
383
383
  }
384
- `,X=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:s}=u.useTranslations(),c="marryBaby"===n;return E.default.createElement(K,{onClick:()=>t("new"),"data-is-mb":c,"data-isActive":c&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(d.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(i.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(b.Input,{name:"name",value:r,size:"md",placeholder:s("chooseBaby.placeholder"),type:"text",onChange:o}))},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-a1800b69.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-af75d841.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-e09ae72e.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-a59a5012.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-d2f31a41.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-acf7c7eb.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-202cb5a6.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-44921eea.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-6f5c939d.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-dc20fcf2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-158a1164.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-841e834d.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-0df43951.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-626771a3.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-958bb324.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b12839f0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-e9899958.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-57bb9c09.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-1c6adeed.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-3f67c9ae.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-45eca9cc.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-656a630e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-097bb7cc.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-5fa9dfec.js")}))}}},Q={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-10f2c903.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-fb3043d8.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-f7da8eb1.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-62c745f0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-bd2abc27.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-2dfedab6.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-8ea42ae1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-4f042fc9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-d43e0d1e.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-3468261b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-5edc54a9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-c6610a42.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-55e7b9bd.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-49034ee6.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-40fd617e.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-8f9b11f1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-1b6283bf.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-2e70f648.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-b72f15c4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-2c575c38.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-920a0d10.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-48b00daa.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-aa43492e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-077affb9.js")}))}}},ee=(e,t,a,l)=>l===r.LOCALE.Indonesia?Q[e][t][a]():J[e][t][a](),te=(e,t)=>{const[r,a]=L.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},re=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ae=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),le=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},oe=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ne=v.default.div`
384
+ `,X=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:s}=u.useTranslations(),c="marryBaby"===n;return E.default.createElement(K,{onClick:()=>t("new"),"data-is-mb":c,"data-isActive":c&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(d.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(i.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(b.Input,{name:"name",value:r,size:"md",placeholder:s("chooseBaby.placeholder"),type:"text",onChange:o}))},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-687521c1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-c5fe0b3d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-324bcb87.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-9a4b92d6.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-09e788ae.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-8f875268.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-59208de5.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-d38962f2.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-af186f16.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-bcc7825c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-ddd0cd65.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-3bc4b037.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-9d4d2850.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-41e65a12.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-12b8f151.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-a6d6e30c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-dce96c99.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-afe56e90.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-3dbbad28.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-59b51384.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-769664d3.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-33e90e4f.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-5adcb384.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-14d53750.js")}))}}},Q={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0e77aada.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-ee55d443.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-16d2a293.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-ab358091.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-6a8ac0ff.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-5467bae8.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-24c9fe30.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-ed0e8651.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-c1af09f4.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-f3913ae1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-df9bc62e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-debaf8ad.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-ffea9d0b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-d952d563.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-e41d0f4e.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-bda7691a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-59e85dc1.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-e272f7e1.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-2755bc3d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-245ecb03.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-6ce80a95.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-8a5749cd.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-510a937d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-d24561a2.js")}))}}},ee=(e,t,a,l)=>l===r.LOCALE.Indonesia?Q[e][t][a]():J[e][t][a](),te=(e,t)=>{const[r,a]=L.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},re=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ae=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),le=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},oe=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ne=v.default.div`
385
385
  position: relative;
386
386
  .custom-chart-label {
387
387
  display: flex;
package/build/cache.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-9fcf07fd.js");require("./tslib.es6-0a4fd09b.js"),require("./isProduction-993bd241.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-be6e56e4.js");require("./tslib.es6-900d9715.js"),require("./isProduction-c6dc0c91.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
package/build/care.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-6e1e85ad.js"),r=require("./constants-f948afab.js");require("./tslib.es6-0a4fd09b.js"),require("react"),require("./useTranslations-c9d57c50.js"),require("./translationsContext-729efeec.js"),require("string-format"),require("lodash/debounce"),require("./index-a07350af.js"),require("@mantine/core"),require("./index-ac031812.js"),require("./screenSizeContext-a3b36b90.js"),require("styled-components"),require("lodash/throttle"),require("./theme-0370e429.js"),require("dayjs"),require("./index-ef208995.js"),require("date-fns/locale"),require("./Onboarding-22f1d138.js"),require("./isProduction-993bd241.js"),require("./gAssets.js"),require("./useUniqueId-df620bbf.js"),require("./index-71d85653.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-6a179b26.js"),require("./paths-07deb4ed.js"),require("./cookieHelper-eefb4894.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.CareConstants=r.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-0edf3275.js"),r=require("./constants-0f5ce422.js");require("./tslib.es6-900d9715.js"),require("react"),require("./useTranslations-bbc66f56.js"),require("./translationsContext-d91ea02c.js"),require("string-format"),require("lodash/debounce"),require("./index-9c6d670f.js"),require("@mantine/core"),require("./index-f3fdcd29.js"),require("./screenSizeContext-fcbed1f3.js"),require("styled-components"),require("lodash/throttle"),require("./theme-d9b7b823.js"),require("dayjs"),require("./index-a8fb8083.js"),require("date-fns/locale"),require("./Onboarding-f514b8fc.js"),require("./isProduction-c6dc0c91.js"),require("./gAssets.js"),require("./useUniqueId-7ba33ae3.js"),require("./index-02d4af55.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-05bb4110.js"),require("./paths-5393c2a0.js"),require("./cookieHelper-fed8122a.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.CareConstants=r.constants;
@@ -1,13 +1,16 @@
1
1
  import React from 'react';
2
- import { RadioGroupProps } from '@mantine/core';
2
+ import { BoxProps } from '@mantine/core';
3
+ type Gender = 'male' | 'female';
3
4
  export type GenderOptionProps = {
4
- value: 'male' | 'female';
5
+ value: Gender;
5
6
  label: string;
6
7
  icon: string;
7
8
  };
8
9
  export type Props = {
9
10
  label: string;
10
- availableValue?: 'male' | 'female';
11
- } & Omit<RadioGroupProps, 'children'>;
12
- declare const GenderOptionControl: ({ label, availableValue: availableValueInit, ...radioGroupProps }: Props) => React.JSX.Element;
11
+ availableValue?: Gender;
12
+ defaultValue?: Gender;
13
+ onChange?: (v: Gender) => void;
14
+ } & BoxProps;
15
+ declare const GenderOptionControl: ({ label, availableValue: availableValueInit, styles, }: Props) => React.JSX.Element;
13
16
  export { GenderOptionControl };
@@ -0,0 +1,14 @@
1
+ declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<string>) => {
2
+ classes: {
3
+ root: string;
4
+ wrapper: string;
5
+ groupErr: string;
6
+ itemRoot: string;
7
+ itemLabelWrapper: string;
8
+ itemLabel: string;
9
+ itemInner: string;
10
+ };
11
+ cx: (...args: any) => string;
12
+ theme: import("@mantine/core").MantineTheme;
13
+ };
14
+ export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./fixedBottomAdBlock-d5992284.js"),r=require("./index-595512d9.js"),o=require("./index-0490c4d7.js"),t=require("./index-95e3f30c.js"),i=require("./utils-68f9bb59.js"),a=require("./index-a07350af.js"),s=require("./index-ac031812.js"),n=require("./index-c6ceb6e9.js"),d=require("./index-2abc1106.js"),u=require("./index-71d85653.js"),p=require("./index-eb5e4507.js"),x=require("./index-5429b5a6.js"),c=require("./dataTransform-bb98e4ed.js"),l=require("./index-99c65f9f.js"),q=require("./index-721bfc69.js"),b=require("./index-3e53ab01.js"),g=require("./footer.js");require("react"),require("./screenSizeContext-a3b36b90.js"),require("styled-components"),require("lodash/throttle"),require("./useUniqueId-df620bbf.js"),require("./gAssets.js"),require("./index-ef208995.js"),require("date-fns/locale"),require("./Onboarding-22f1d138.js"),require("./isProduction-993bd241.js"),require("./theme-0370e429.js"),require("./tslib.es6-0a4fd09b.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("./translationsContext-729efeec.js"),require("string-format"),require("@mantine/hooks"),require("./useTranslations-c9d57c50.js"),require("date-fns"),require("lodash/debounce"),require("./types-4bac90e8.js"),require("./index-2a51b24a.js"),require("./index-44c807a0.js"),require("react-hook-form"),require("./useHealthToolCache-257edf2d.js"),require("./getDynamicHealthTool-bb499674.js"),require("./core-9fcf07fd.js"),require("./normalizeLink-8824c899.js"),require("./routing-167c1c63.js"),require("./useOutsideClick-6a179b26.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-53d87141.js"),require("uuid"),require("./index.styled-9e281c1e.js"),require("dayjs/plugin/relativeTime"),require("./cookieHelper-eefb4894.js"),require("./constants-f948afab.js"),require("./index-6ed90dcf.js"),require("./useIsInit-ee3a84df.js"),require("./paths-07deb4ed.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("slugify"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-249e45d0.js"),require("react-dom"),require("./index.styled-3eb73818.js"),require("./utils-fd83d7fb.js"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.Avatar=r.Avatar,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.AuthorBadge=t.AuthorBadge,exports.BookingBtn=t.BookingBtn,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Flag=i.Flag,exports.Heading=i.Heading,exports.LogoIcon=i.LogoIcon,exports.PureInput=i.PureInput,exports.StepRenderer=i.StepRenderer,exports.StepRendererContext=i.StepRendererContext,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Container=s.Container,exports.Icon=s.Icon,exports.Label=s.Label,exports.Logo=n.Logo,exports.AdBlock=d.AdBlock,exports.DatePicker=d.DatePicker,exports.DoctorInfo=d.DoctorInfo,exports.Dropdown=d.Dropdown,exports.MobileBottomNavigation=d.MobileBottomNavigation,exports.MobileBottomNavigationIcon=d.MobileBottomNavigationIcon,exports.Radio=d.Radio,exports.RadioGroup=d.RadioGroup,exports.SurveyQuestionCard=d.SurveyQuestionCard,exports.ToolsBannerCard=d.ToolsBannerCard,exports.Text=u.Text,exports.Drawer=p.Drawer,exports.RadioImageGroup=p.RadioImageGroup,exports.CustomReferenceDot=x.CustomReferenceDot,exports.ImageWrap=x.ImageWrap,exports.Popup=c.Popup,exports.Modal=l.Modal,exports.PillCarousel=q.PillCarousel,exports.AddressInput=b.AddressInput,exports.Footer=g.Footer;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./fixedBottomAdBlock-fe395a9f.js"),r=require("./index-c2c56677.js"),o=require("./index-9fcc13af.js"),t=require("./index-e61e1184.js"),i=require("./index.styles-b207e260.js"),a=require("./index-9c6d670f.js"),s=require("./index-f3fdcd29.js"),n=require("./index-7408ab26.js"),d=require("./index-baf7ad53.js"),u=require("./index-02d4af55.js"),p=require("./index-b778973a.js"),x=require("./index-bac980d5.js"),c=require("./dataTransform-2cd5ef8c.js"),l=require("./index-210cbc0f.js"),q=require("./index-f1812e00.js"),g=require("./index-72fdcca5.js"),b=require("./footer.js");require("react"),require("./screenSizeContext-fcbed1f3.js"),require("styled-components"),require("lodash/throttle"),require("./useUniqueId-7ba33ae3.js"),require("./gAssets.js"),require("./index-a8fb8083.js"),require("date-fns/locale"),require("./Onboarding-f514b8fc.js"),require("./isProduction-c6dc0c91.js"),require("./theme-d9b7b823.js"),require("./tslib.es6-900d9715.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("./translationsContext-d91ea02c.js"),require("string-format"),require("@mantine/hooks"),require("./useTranslations-bbc66f56.js"),require("date-fns"),require("lodash/debounce"),require("./types-70748f2a.js"),require("./index-5252e906.js"),require("./index-6c023cec.js"),require("react-hook-form"),require("./useHealthToolCache-72a7112d.js"),require("./getDynamicHealthTool-fc648480.js"),require("./core-be6e56e4.js"),require("./normalizeLink-de6b62a7.js"),require("./routing-eb13d3c7.js"),require("./useOutsideClick-05bb4110.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-071f0b03.js"),require("uuid"),require("./index.styled-8bf9821e.js"),require("dayjs/plugin/relativeTime"),require("./cookieHelper-fed8122a.js"),require("./constants-0f5ce422.js"),require("./index-177aa663.js"),require("./useIsInit-26f2f4ff.js"),require("./paths-5393c2a0.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("slugify"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-535a96ff.js"),require("react-dom"),require("./index.styled-9a9571fc.js"),require("./utils-26afb7cb.js"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.Avatar=r.Avatar,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.AuthorBadge=t.AuthorBadge,exports.BookingBtn=t.BookingBtn,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Flag=i.Flag,exports.Heading=i.Heading,exports.LogoIcon=i.LogoIcon,exports.PureInput=i.PureInput,exports.StepRenderer=i.StepRenderer,exports.StepRendererContext=i.StepRendererContext,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Container=s.Container,exports.Icon=s.Icon,exports.Label=s.Label,exports.Logo=n.Logo,exports.AdBlock=d.AdBlock,exports.DatePicker=d.DatePicker,exports.DoctorInfo=d.DoctorInfo,exports.Dropdown=d.Dropdown,exports.MobileBottomNavigation=d.MobileBottomNavigation,exports.MobileBottomNavigationIcon=d.MobileBottomNavigationIcon,exports.Radio=d.Radio,exports.RadioGroup=d.RadioGroup,exports.SurveyQuestionCard=d.SurveyQuestionCard,exports.ToolsBannerCard=d.ToolsBannerCard,exports.Text=u.Text,exports.Drawer=p.Drawer,exports.RadioImageGroup=p.RadioImageGroup,exports.CustomReferenceDot=x.CustomReferenceDot,exports.ImageWrap=x.ImageWrap,exports.Popup=c.Popup,exports.Modal=l.Modal,exports.PillCarousel=q.PillCarousel,exports.AddressInput=g.AddressInput,exports.Footer=b.Footer;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-22f1d138.js");var O=require("./index-ef208995.js"),e=require("./isProduction-993bd241.js");exports.BEARER_TOKEN_COOKIE=O.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=O.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=O.CARE_LOCALES,exports.CDN_ADDRESS=O.CDN_ADDRESS,exports.DATE_FNS_LOCALE=O.DATE_FNS_LOCALE,exports.ECOM_LOCALES=O.ECOM_LOCALES,exports.FAVICONS=O.FAVICONS,exports.ISO_FORMAT=O.ISO_FORMAT,exports.LOCALE_SPECS=O.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return O.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=O.STATIC_PAGES,exports.TOGETHER_LOCALES=O.TOGETHER_LOCALES,exports.UP_BASEPATH=O.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=O.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=O.domainLocales,exports.siteHost=O.siteHost,exports.siteOptions=O.siteOptions,exports.isProduction=e.isProduction;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-f514b8fc.js");var O=require("./index-a8fb8083.js"),e=require("./isProduction-c6dc0c91.js");exports.BEARER_TOKEN_COOKIE=O.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=O.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=O.CARE_LOCALES,exports.CDN_ADDRESS=O.CDN_ADDRESS,exports.DATE_FNS_LOCALE=O.DATE_FNS_LOCALE,exports.ECOM_LOCALES=O.ECOM_LOCALES,exports.FAVICONS=O.FAVICONS,exports.ISO_FORMAT=O.ISO_FORMAT,exports.LOCALE_SPECS=O.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return O.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=O.STATIC_PAGES,exports.TOGETHER_LOCALES=O.TOGETHER_LOCALES,exports.UP_BASEPATH=O.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=O.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=O.domainLocales,exports.siteHost=O.siteHost,exports.siteOptions=O.siteOptions,exports.isProduction=e.isProduction;
@@ -1 +1 @@
1
- "use strict";var t=require("./tslib.es6-0a4fd09b.js"),e=require("./isProduction-993bd241.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
1
+ "use strict";var t=require("./tslib.es6-900d9715.js"),e=require("./isProduction-c6dc0c91.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
@@ -1 +1 @@
1
- "use strict";var e=require("react"),i=require("./index.styled-9e281c1e.js"),o=require("./tslib.es6-0a4fd09b.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=t(e);const n=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},a=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,d=e=>{if(!e)return{};const{button_text:i,button_url:t,status:l,banner_desktop:n,banner_mobile:a}=e,r=o.__rest(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(l),bannerDesktop:n||"",bannerMobile:a||""},r)},u={EN:"English",FIL:"Filipino"},s=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in u?u[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),m=e=>{var i,o,t,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:n(e.author),reviewer:e.reviewed_by&&n(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:v(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:v(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:v(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:v(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:_(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(_),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:a(e.expert),metaTag:e.meta_tag||null,spotlight:r(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:s(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:_(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:n(e.edit_last),subscriptionBanner:d(e.subscription_banner)}:{}},v=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,c=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},p=e=>({postTitle:e.post_title,permalink:e.permalink}),_=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>_(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?p(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>g(e))):null}:{}},g=e=>({title:e.title,content:e.content}),y=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},f=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},b=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},h=e=>e?{answer:null==e?void 0:e.answer.map(w),expert:null==e?void 0:e.expert}:{},k=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,c,p,_,g,y,f,b,k,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(k=e.user)||void 0===k?void 0:k.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:h(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},w=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,c,p,_,g,y,f,b,h,k,I,C,x,S,T,A,P,B,D,U,j;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(w):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(U=e.mentioned)||void 0===U?void 0:U.hospital_id):"",title:(null===(j=e.mentioned)||void 0===j?void 0:j.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},I=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var C=Object.freeze({__proto__:null,formatAuthor:n,formatArticleExpert:a,formatSpotlightsSummary:r,TRANSLATE_LANGUAGES:u,formatTranslateOptions:s,formatArticle:m,formatUserProfile:v,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:c,formatReviewedCategory:p,formatCategory:_,formatCategoryApi:e=>e?{categoryInfo:_(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(m),subCategories:(e.data.sub_categories||[]).map(_)}:{},formatFaqsCategory:g,formatHealthTool:y,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>y(e))))&&void 0!==o?o:[]}:{}},formatCommunity:f,formatTopic:b,formatExpertAnswer:h,formatPost:k,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:w,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:I,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:I(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=({type:e="lead",closeIcon:o,isOpen:t=!0,onClose:n,children:a,className:r="",enableAnimation:d=!0})=>l.default.createElement(l.default.Fragment,null,l.default.createElement(i.StyledPopup$2,{"data-open":t,"data-type":e,"data-animation":d},l.default.createElement("div",{className:`${r||""} popup-content`},!!o&&l.default.createElement("div",{className:"close-button",onClick:n},o),a)),l.default.createElement(i.StyledPopupWrapper,{"data-open":t,onClick:n})),exports.dataTransform=C,exports.formatArticle=m,exports.formatCategory=_,exports.formatComment=w,exports.formatCommunity=f,exports.formatPost=k,exports.formatTopic=b,exports.formatUserProfileUrl=I;
1
+ "use strict";var e=require("react"),i=require("./index.styled-8bf9821e.js"),o=require("./tslib.es6-900d9715.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=t(e);const n=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},a=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,d=e=>{if(!e)return{};const{button_text:i,button_url:t,status:l,banner_desktop:n,banner_mobile:a}=e,r=o.__rest(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(l),bannerDesktop:n||"",bannerMobile:a||""},r)},u={EN:"English",FIL:"Filipino"},s=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in u?u[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),m=e=>{var i,o,t,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?p(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:n(e.author),reviewer:e.reviewed_by&&n(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:v(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:v(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:v(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:v(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:_(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(_),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:a(e.expert),metaTag:e.meta_tag||null,spotlight:r(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:s(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:_(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:n(e.edit_last),subscriptionBanner:d(e.subscription_banner)}:{}},v=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,p=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},c=e=>({postTitle:e.post_title,permalink:e.permalink}),_=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?p(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>_(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?c(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>g(e))):null}:{}},g=e=>({title:e.title,content:e.content}),y=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},f=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},b=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},h=e=>e?{answer:null==e?void 0:e.answer.map(w),expert:null==e?void 0:e.expert}:{},k=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,p,c,_,g,y,f,b,k,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(p=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===p?void 0:p.toLowerCase():"",type:(null===(c=e.user)||void 0===c?void 0:c.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(k=e.user)||void 0===k?void 0:k.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:h(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},w=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,p,c,_,g,y,f,b,h,k,I,C,x,S,T,A,P,B,D,U,j;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(w):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(p=e.user)||void 0===p?void 0:p.doctor_id)?String(null===(c=e.user)||void 0===c?void 0:c.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(U=e.mentioned)||void 0===U?void 0:U.hospital_id):"",title:(null===(j=e.mentioned)||void 0===j?void 0:j.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},I=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var C=Object.freeze({__proto__:null,formatAuthor:n,formatArticleExpert:a,formatSpotlightsSummary:r,TRANSLATE_LANGUAGES:u,formatTranslateOptions:s,formatArticle:m,formatUserProfile:v,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:p,formatReviewedCategory:c,formatCategory:_,formatCategoryApi:e=>e?{categoryInfo:_(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(m),subCategories:(e.data.sub_categories||[]).map(_)}:{},formatFaqsCategory:g,formatHealthTool:y,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>y(e))))&&void 0!==o?o:[]}:{}},formatCommunity:f,formatTopic:b,formatExpertAnswer:h,formatPost:k,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:w,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:I,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:I(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=({type:e="lead",closeIcon:o,isOpen:t=!0,onClose:n,children:a,className:r="",enableAnimation:d=!0})=>l.default.createElement(l.default.Fragment,null,l.default.createElement(i.StyledPopup$2,{"data-open":t,"data-type":e,"data-animation":d},l.default.createElement("div",{className:`${r||""} popup-content`},!!o&&l.default.createElement("div",{className:"close-button",onClick:n},o),a)),l.default.createElement(i.StyledPopupWrapper,{"data-open":t,onClick:n})),exports.dataTransform=C,exports.formatArticle=m,exports.formatCategory=_,exports.formatComment=w,exports.formatCommunity=f,exports.formatPost=k,exports.formatTopic=b,exports.formatUserProfileUrl=I;
package/build/ecom.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme-0370e429.js");require("./index-ef208995.js");var o=require("./isProduction-993bd241.js"),t=require("./types-4bac90e8.js");require("date-fns/locale"),require("./Onboarding-22f1d138.js");var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",u=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,c=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"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"},m=a?"http://localhost:3001":o.isProduction?`https://${d[s]}`:`https://discover.${d[s]}`,p=o.isProduction?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:u,GOOGLE_CLIENT_ID:c,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"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/"},"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/"},"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/"},"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/"},"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/"},"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"},"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/"},"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/"},"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/"}},FAVICONS:{"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"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.theme.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(c=null===(u=null==e?void 0:e.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(c=(u=e.sub_banners).map)||void 0===c?void 0:c.call(u,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(u=e.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=e.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});exports.Types=t.types,exports.ApiTypes=l,exports.Constants=T,exports.DataFormatter=A,exports.DataTypes=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme-d9b7b823.js");require("./index-a8fb8083.js");var o=require("./isProduction-c6dc0c91.js"),t=require("./types-70748f2a.js");require("date-fns/locale"),require("./Onboarding-f514b8fc.js");var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",u=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,c=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"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"},m=a?"http://localhost:3001":o.isProduction?`https://${d[s]}`:`https://discover.${d[s]}`,p=o.isProduction?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:u,GOOGLE_CLIENT_ID:c,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"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/"},"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/"},"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/"},"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/"},"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/"},"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"},"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/"},"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/"},"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/"}},FAVICONS:{"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"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.theme.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(c=null===(u=null==e?void 0:e.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(c=(u=e.sub_banners).map)||void 0===c?void 0:c.call(u,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(u=e.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=e.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});exports.Types=t.types,exports.ApiTypes=l,exports.Constants=T,exports.DataFormatter=A,exports.DataTypes=i;