@hhgtech/hhg-components 1.27.107 → 1.27.109

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 (314) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/atoms/icons/ArrowRightTail.d.ts +4 -0
  5. package/build/components/atoms/icons/index.d.ts +1 -0
  6. package/build/components/molecules/index.d.ts +2 -1
  7. package/build/components/molecules/premiumNewsletterBanner/bannerLayout.d.ts +11 -0
  8. package/build/components/molecules/premiumNewsletterBanner/bannerWithOption/index.d.ts +17 -0
  9. package/build/components/molecules/premiumNewsletterBanner/bannerWithOption/index.styles.d.ts +10 -0
  10. package/build/components/molecules/premiumNewsletterBanner/constants.d.ts +171 -0
  11. package/build/components/molecules/premiumNewsletterBanner/context.d.ts +16 -10
  12. package/build/components/molecules/premiumNewsletterBanner/handlerBanner.d.ts +3 -0
  13. package/build/components/molecules/premiumNewsletterBanner/index.d.ts +9 -1
  14. package/build/components/molecules/premiumNewsletterBanner/toolBanner.d.ts +11 -7
  15. package/build/components/molecules/premiumNewsletterBanner/types.d.ts +44 -0
  16. package/build/components.js +1 -1
  17. package/build/constants.js +1 -1
  18. package/build/{core-c2188d67.js → core-421ec44e.js} +1 -1
  19. package/build/ecom.js +1 -1
  20. package/build/esm/babyGrowth.js +5 -5
  21. package/build/esm/cache.js +1 -1
  22. package/build/esm/care.js +1 -1
  23. package/build/esm/components/atoms/icons/ArrowRightTail.d.ts +4 -0
  24. package/build/esm/components/atoms/icons/index.d.ts +1 -0
  25. package/build/esm/components/molecules/index.d.ts +2 -1
  26. package/build/esm/components/molecules/premiumNewsletterBanner/bannerLayout.d.ts +11 -0
  27. package/build/esm/components/molecules/premiumNewsletterBanner/bannerWithOption/index.d.ts +17 -0
  28. package/build/esm/components/molecules/premiumNewsletterBanner/bannerWithOption/index.styles.d.ts +10 -0
  29. package/build/esm/components/molecules/premiumNewsletterBanner/constants.d.ts +171 -0
  30. package/build/esm/components/molecules/premiumNewsletterBanner/context.d.ts +16 -10
  31. package/build/esm/components/molecules/premiumNewsletterBanner/handlerBanner.d.ts +3 -0
  32. package/build/esm/components/molecules/premiumNewsletterBanner/index.d.ts +9 -1
  33. package/build/esm/components/molecules/premiumNewsletterBanner/toolBanner.d.ts +11 -7
  34. package/build/esm/components/molecules/premiumNewsletterBanner/types.d.ts +44 -0
  35. package/build/esm/components.js +1 -1
  36. package/build/esm/constants.js +1 -1
  37. package/build/esm/core-b9390398.js +1 -0
  38. package/build/esm/ecom.js +1 -1
  39. package/build/esm/fixedBottomAdBlock-31f63dd2.js +1 -0
  40. package/build/esm/footer.js +1 -1
  41. package/build/esm/gAssets.js +1 -1
  42. package/build/esm/getDynamicHealthTool-da142539.js +1 -0
  43. package/build/esm/{getSocialList-61a37aaa.js → getSocialList-9f2db86c.js} +1 -1
  44. package/build/esm/hooks.js +1 -1
  45. package/build/esm/i18n-values/id-ID.js +1 -1
  46. package/build/esm/i18n-values/vi-VN.js +1 -1
  47. package/build/esm/i18n-values/vi-VN_MB.js +1 -1
  48. package/build/esm/i18n.js +1 -1
  49. package/build/esm/i18nV2.js +1 -1
  50. package/build/esm/{index-d870b668.js → index-011e271d.js} +6 -6
  51. package/build/esm/index-037df1f2.js +1 -0
  52. package/build/esm/{index-8df7dcfc.js → index-0940eded.js} +1 -1
  53. package/build/esm/{index-6305da27.js → index-0dfc2786.js} +1 -1
  54. package/build/esm/index-34c4b165.js +1 -0
  55. package/build/esm/{index-eb7b481c.js → index-3da3b99c.js} +1 -1
  56. package/build/esm/{index-9031b2ed.js → index-3df6363a.js} +1 -1
  57. package/build/esm/index-3f57b18d.js +1 -0
  58. package/build/esm/{index-856ff66e.js → index-677d6ee7.js} +2 -2
  59. package/build/esm/index-7fc4a1b7.js +1 -0
  60. package/build/esm/{index-f9107370.js → index-83e71003.js} +1 -1
  61. package/build/esm/index-8586a3fa.js +113 -0
  62. package/build/esm/index-90024ea2.js +1 -0
  63. package/build/esm/index-98ed0b85.js +1 -0
  64. package/build/esm/{index-118cc0e3.js → index-99217354.js} +1 -1
  65. package/build/esm/{index-94ba9ce3.js → index-9ea2d3b2.js} +1 -1
  66. package/build/esm/index-a446580e.js +1 -0
  67. package/build/esm/{index-17e18342.js → index-a8d69a06.js} +1 -1
  68. package/build/esm/{index-449f5c48.js → index-db0781f2.js} +1 -1
  69. package/build/esm/index-eaa47f62.js +6897 -0
  70. package/build/esm/{index-ee66cce2.js → index-fa1fe50a.js} +1 -1
  71. package/build/esm/index.js +1 -1
  72. package/build/esm/index.styled-2c91cea9.js +50 -0
  73. package/build/esm/{index.styled-1ead0e2f.js → index.styled-a7302c30.js} +1 -1
  74. package/build/esm/{index.styled-54fac88c.js → index.styled-ef15b31f.js} +1 -1
  75. package/build/esm/{index.styles-3cb66895.js → index.styles-c08c3b6a.js} +2 -2
  76. package/build/esm/interfaces/constants/index.d.ts +1 -0
  77. package/build/esm/interfaces/constants/riskScreener.d.ts +9 -0
  78. package/build/esm/lead.js +1 -1
  79. package/build/esm/mantine.js +1 -1
  80. package/build/esm/misc.js +1 -1
  81. package/build/esm/navigation.js +1 -1
  82. package/build/esm/{routing-2eb975c1.js → normalizeLink-96ff27ed.js} +1 -1
  83. package/build/esm/onboarding.js +1 -1
  84. package/build/esm/onboardingV2.js +4 -4
  85. package/build/esm/pwg.js +3 -3
  86. package/build/esm/together.js +1 -1
  87. package/build/esm/types-930b63b4.js +1 -0
  88. package/build/esm/{types-6e94b035.js → types-daffe42e.js} +18 -18
  89. package/build/esm/types.js +1 -1
  90. package/build/esm/{useCategory-be3ee862.js → useCategory-464cfb23.js} +1 -1
  91. package/build/esm/useHealthToolCache-38cc16c5.js +1 -0
  92. package/build/esm/{useRafState-c4bc6e60.js → useRafState-588381a8.js} +1 -1
  93. package/build/esm/{useTranslations-d3d91dae.js → useTranslations-3a14717a.js} +1 -1
  94. package/build/esm/{utils-5148d654.js → utils-5a85887c.js} +1 -1
  95. package/build/esm/vaccination.js +5 -5
  96. package/build/fixedBottomAdBlock-808f4f69.js +1 -0
  97. package/build/footer.js +1 -1
  98. package/build/gAssets.js +1 -1
  99. package/build/getDynamicHealthTool-71099e3c.js +1 -0
  100. package/build/{getSocialList-60368527.js → getSocialList-7a8dcf79.js} +1 -1
  101. package/build/hooks.js +1 -1
  102. package/build/i18n-values/id-ID.js +1 -1
  103. package/build/i18n-values/vi-VN.js +1 -1
  104. package/build/i18n-values/vi-VN_MB.js +1 -1
  105. package/build/i18n.js +1 -1
  106. package/build/i18nV2.js +1 -1
  107. package/build/{index-d9168227.js → index-0657b2ae.js} +1 -1
  108. package/build/{index-3cb544c8.js → index-088442d3.js} +1 -1
  109. package/build/{index-32476c95.js → index-26da2cad.js} +1 -1
  110. package/build/{index-431dd307.js → index-27b1564a.js} +1 -1
  111. package/build/index-2c89d169.js +1 -0
  112. package/build/{index-1fee8988.js → index-46037bd7.js} +1 -1
  113. package/build/{index-6b8b5528.js → index-47e10529.js} +1 -1
  114. package/build/{_topic-e97ac8e9.js → index-5373c04d.js} +419 -419
  115. package/build/{index-22d7e5f2.js → index-5947da7c.js} +1 -1
  116. package/build/index-63a9fe35.js +1 -0
  117. package/build/{index-5de20bc8.js → index-68157aa9.js} +1 -1
  118. package/build/{index-7243b522.js → index-6ad27b11.js} +1 -1
  119. package/build/{index-be9ef612.js → index-79520a74.js} +1 -1
  120. package/build/index-795cf67b.js +1 -0
  121. package/build/{index-1e968087.js → index-8b68484c.js} +1 -1
  122. package/build/{index-0f86901f.js → index-8bc407a9.js} +1 -1
  123. package/build/{index-ec824be5.js → index-c2c25a98.js} +1 -1
  124. package/build/{index-6a13cb05.js → index-dcf49a84.js} +1 -1
  125. package/build/index-debc9532.js +113 -0
  126. package/build/{index-2ebbbba2.js → index-e22a5576.js} +1 -1
  127. package/build/{index-a6c1f004.js → index-e4786d2a.js} +1 -1
  128. package/build/index.js +1 -1
  129. package/build/{index.styled-e128f66d.js → index.styled-4b110230.js} +1 -1
  130. package/build/{index.styled-c563f83f.js → index.styled-5f07a097.js} +6 -6
  131. package/build/{index.styled-cd393e56.js → index.styled-5fcffc64.js} +1 -1
  132. package/build/{index.styles-bca5299c.js → index.styles-e0cf72e1.js} +2 -2
  133. package/build/interfaces/constants/index.d.ts +1 -0
  134. package/build/interfaces/constants/riskScreener.d.ts +9 -0
  135. package/build/lead.js +1 -1
  136. package/build/mantine.js +1 -1
  137. package/build/misc.js +1 -1
  138. package/build/navigation.js +1 -1
  139. package/build/normalizeLink-a1d51df0.js +1 -0
  140. package/build/onboarding.js +1 -1
  141. package/build/onboardingV2.js +1 -1
  142. package/build/pwg.js +2 -2
  143. package/build/together.js +1 -1
  144. package/build/types-723ab87a.js +1 -0
  145. package/build/{types-f0e58666.js → types-b97e7d79.js} +1 -1
  146. package/build/types.js +1 -1
  147. package/build/{useCategory-df177b44.js → useCategory-5703838c.js} +1 -1
  148. package/build/{useHealthToolCache-e0d58003.js → useHealthToolCache-ab87c357.js} +1 -1
  149. package/build/{useRafState-a633385f.js → useRafState-c456f300.js} +1 -1
  150. package/build/{useTranslations-b4594bd3.js → useTranslations-344d792d.js} +1 -1
  151. package/build/{utils-cca429d5.js → utils-7c055f3f.js} +1 -1
  152. package/build/vaccination.js +1 -1
  153. package/package.json +1 -1
  154. package/build/components/molecules/premiumNewsletterBanner/bannerWithOption.d.ts +0 -10
  155. package/build/esm/_topic-06ecb66a.js +0 -6897
  156. package/build/esm/components/molecules/premiumNewsletterBanner/bannerWithOption.d.ts +0 -10
  157. package/build/esm/core-1eefc80e.js +0 -1
  158. package/build/esm/getDynamicHealthTool-ebc19aa8.js +0 -1
  159. package/build/esm/index-1dc8aa54.js +0 -1
  160. package/build/esm/index-20383a76.js +0 -1
  161. package/build/esm/index-34cdc8ae.js +0 -1
  162. package/build/esm/index-58f4c8f7.js +0 -1
  163. package/build/esm/index-7cc30b43.js +0 -1
  164. package/build/esm/index-c5aedb3d.js +0 -1
  165. package/build/esm/index-d71ad10a.js +0 -1
  166. package/build/esm/index-e29c43c9.js +0 -1
  167. package/build/esm/index-e9f94e1d.js +0 -113
  168. package/build/esm/index.styled-ee45f4b9.js +0 -50
  169. package/build/esm/normalizeLink-7f1e3cc7.js +0 -1
  170. package/build/esm/types-3c95cf95.js +0 -1
  171. package/build/esm/useHealthToolCache-f6cdcbeb.js +0 -1
  172. package/build/getDynamicHealthTool-e8f39784.js +0 -1
  173. package/build/index-62a5c4ae.js +0 -1
  174. package/build/index-9da4756e.js +0 -1
  175. package/build/index-af2d5ff0.js +0 -1
  176. package/build/index-b17e8380.js +0 -113
  177. package/build/index-d3f90f62.js +0 -1
  178. package/build/normalizeLink-50b00136.js +0 -1
  179. package/build/routing-15049135.js +0 -1
  180. package/build/types-1899464f.js +0 -1
  181. /package/build/{BMI_BOYS.percentile.monthly-9b4a7efd.js → BMI_BOYS.percentile.monthly-edcce116.js} +0 -0
  182. /package/build/{BMI_BOYS.percentile.weekly-c00b1465.js → BMI_BOYS.percentile.weekly-909ff241.js} +0 -0
  183. /package/build/{BMI_BOYS.percentile.yearly-9c894fd9.js → BMI_BOYS.percentile.yearly-4e2ea152.js} +0 -0
  184. /package/build/{BMI_BOYS.zscore.monthly-793bb6db.js → BMI_BOYS.zscore.monthly-64b3acf0.js} +0 -0
  185. /package/build/{BMI_BOYS.zscore.weekly-8b382e4c.js → BMI_BOYS.zscore.weekly-e1edf118.js} +0 -0
  186. /package/build/{BMI_BOYS.zscore.yearly-f5a3264b.js → BMI_BOYS.zscore.yearly-0e63e1a1.js} +0 -0
  187. /package/build/{BMI_GIRLS.percentile.monthly-866d83b5.js → BMI_GIRLS.percentile.monthly-c07641e4.js} +0 -0
  188. /package/build/{BMI_GIRLS.percentile.weekly-40156ad2.js → BMI_GIRLS.percentile.weekly-8babcf06.js} +0 -0
  189. /package/build/{BMI_GIRLS.percentile.yearly-a08b81c2.js → BMI_GIRLS.percentile.yearly-0225b35f.js} +0 -0
  190. /package/build/{BMI_GIRLS.zscore.monthly-879abeb0.js → BMI_GIRLS.zscore.monthly-d1428117.js} +0 -0
  191. /package/build/{BMI_GIRLS.zscore.weekly-142ffa78.js → BMI_GIRLS.zscore.weekly-b29821d3.js} +0 -0
  192. /package/build/{BMI_GIRLS.zscore.yearly-9954929c.js → BMI_GIRLS.zscore.yearly-699d7832.js} +0 -0
  193. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-9d236252.js → HEAD CIRCUM_BOYS.percentile.monthly-bd031ca2.js} +0 -0
  194. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-30f6b49d.js → HEAD CIRCUM_BOYS.percentile.weekly-16fdbe9f.js} +0 -0
  195. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-51fbc628.js → HEAD CIRCUM_BOYS.percentile.yearly-59249f64.js} +0 -0
  196. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-bc137ba6.js → HEAD CIRCUM_BOYS.zscore.monthly-10bc0560.js} +0 -0
  197. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-ac6baa93.js → HEAD CIRCUM_BOYS.zscore.weekly-ca5c720a.js} +0 -0
  198. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-85582234.js → HEAD CIRCUM_BOYS.zscore.yearly-4a343ab4.js} +0 -0
  199. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e9d4bdcd.js → HEAD CIRCUM_GIRLS.percentile.monthly-f9aeb21f.js} +0 -0
  200. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-0c279436.js → HEAD CIRCUM_GIRLS.percentile.weekly-2797d817.js} +0 -0
  201. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-00936988.js → HEAD CIRCUM_GIRLS.percentile.yearly-93e25d65.js} +0 -0
  202. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-51616dbb.js → HEAD CIRCUM_GIRLS.zscore.monthly-1ee00ac0.js} +0 -0
  203. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-d62b3079.js → HEAD CIRCUM_GIRLS.zscore.weekly-685d96fe.js} +0 -0
  204. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-a2be1c2a.js → HEAD CIRCUM_GIRLS.zscore.yearly-e2f36b95.js} +0 -0
  205. /package/build/{HEIGHT_BOYS.percentile.monthly-66d29282.js → HEIGHT_BOYS.percentile.monthly-ce80215f.js} +0 -0
  206. /package/build/{HEIGHT_BOYS.percentile.weekly-3e5b7405.js → HEIGHT_BOYS.percentile.weekly-154d07a7.js} +0 -0
  207. /package/build/{HEIGHT_BOYS.percentile.yearly-76ec4442.js → HEIGHT_BOYS.percentile.yearly-70efcd29.js} +0 -0
  208. /package/build/{HEIGHT_BOYS.zscore.monthly-4a1ac1c7.js → HEIGHT_BOYS.zscore.monthly-399cb44b.js} +0 -0
  209. /package/build/{HEIGHT_BOYS.zscore.weekly-65596564.js → HEIGHT_BOYS.zscore.weekly-cf8b10d6.js} +0 -0
  210. /package/build/{HEIGHT_BOYS.zscore.yearly-6c85d212.js → HEIGHT_BOYS.zscore.yearly-b550df6f.js} +0 -0
  211. /package/build/{HEIGHT_GIRLS.percentile.monthly-4b00af11.js → HEIGHT_GIRLS.percentile.monthly-6ceaa437.js} +0 -0
  212. /package/build/{HEIGHT_GIRLS.percentile.weekly-42e8fc4a.js → HEIGHT_GIRLS.percentile.weekly-3e92a0c9.js} +0 -0
  213. /package/build/{HEIGHT_GIRLS.percentile.yearly-b45e7683.js → HEIGHT_GIRLS.percentile.yearly-668acc28.js} +0 -0
  214. /package/build/{HEIGHT_GIRLS.zscore.monthly-4262e457.js → HEIGHT_GIRLS.zscore.monthly-6a74f380.js} +0 -0
  215. /package/build/{HEIGHT_GIRLS.zscore.weekly-c26b1a8a.js → HEIGHT_GIRLS.zscore.weekly-e763334e.js} +0 -0
  216. /package/build/{HEIGHT_GIRLS.zscore.yearly-602c973c.js → HEIGHT_GIRLS.zscore.yearly-628382d6.js} +0 -0
  217. /package/build/{Onboarding-680b3178.js → Onboarding-3fec2c36.js} +0 -0
  218. /package/build/{Visible-fe62b674.js → Visible-3298aff5.js} +0 -0
  219. /package/build/{WEIGHT_BOYS.percentile.monthly-748f1890.js → WEIGHT_BOYS.percentile.monthly-05810324.js} +0 -0
  220. /package/build/{WEIGHT_BOYS.percentile.weekly-348f8868.js → WEIGHT_BOYS.percentile.weekly-8816a41f.js} +0 -0
  221. /package/build/{WEIGHT_BOYS.percentile.yearly-9fc08aae.js → WEIGHT_BOYS.percentile.yearly-7c5e5f75.js} +0 -0
  222. /package/build/{WEIGHT_BOYS.zscore.monthly-c3206639.js → WEIGHT_BOYS.zscore.monthly-2301be5c.js} +0 -0
  223. /package/build/{WEIGHT_BOYS.zscore.weekly-3589e565.js → WEIGHT_BOYS.zscore.weekly-c572cc5e.js} +0 -0
  224. /package/build/{WEIGHT_BOYS.zscore.yearly-010625e0.js → WEIGHT_BOYS.zscore.yearly-57d82dee.js} +0 -0
  225. /package/build/{WEIGHT_GIRLS.percentile.monthly-18bf8d9f.js → WEIGHT_GIRLS.percentile.monthly-0ae3d2f3.js} +0 -0
  226. /package/build/{WEIGHT_GIRLS.percentile.weekly-ef07c7a3.js → WEIGHT_GIRLS.percentile.weekly-0b175a2f.js} +0 -0
  227. /package/build/{WEIGHT_GIRLS.percentile.yearly-ad72b2fb.js → WEIGHT_GIRLS.percentile.yearly-5637b86a.js} +0 -0
  228. /package/build/{WEIGHT_GIRLS.zscore.monthly-b6970dd5.js → WEIGHT_GIRLS.zscore.monthly-c8a7d6c8.js} +0 -0
  229. /package/build/{WEIGHT_GIRLS.zscore.weekly-26464dca.js → WEIGHT_GIRLS.zscore.weekly-433cd2ef.js} +0 -0
  230. /package/build/{WEIGHT_GIRLS.zscore.yearly-4c2d09f5.js → WEIGHT_GIRLS.zscore.yearly-5506dcae.js} +0 -0
  231. /package/build/{constants-978d74c9.js → constants-ce991053.js} +0 -0
  232. /package/build/{cookieHelper-ef035a02.js → cookieHelper-62e1f440.js} +0 -0
  233. /package/build/{dataTransform-83833cdd.js → dataTransform-5dbcf6e5.js} +0 -0
  234. /package/build/esm/{BMI_BOYS.percentile.monthly-e9764efc.js → BMI_BOYS.percentile.monthly-0da7a126.js} +0 -0
  235. /package/build/esm/{BMI_BOYS.percentile.weekly-be1015d5.js → BMI_BOYS.percentile.weekly-2a109b3a.js} +0 -0
  236. /package/build/esm/{BMI_BOYS.percentile.yearly-b3e81bf1.js → BMI_BOYS.percentile.yearly-cd7925e9.js} +0 -0
  237. /package/build/esm/{BMI_BOYS.zscore.monthly-5d74d964.js → BMI_BOYS.zscore.monthly-72ea8d34.js} +0 -0
  238. /package/build/esm/{BMI_BOYS.zscore.weekly-280b5026.js → BMI_BOYS.zscore.weekly-44ead12a.js} +0 -0
  239. /package/build/esm/{BMI_BOYS.zscore.yearly-9e4e32d2.js → BMI_BOYS.zscore.yearly-f2e5920c.js} +0 -0
  240. /package/build/esm/{BMI_GIRLS.percentile.monthly-033349c7.js → BMI_GIRLS.percentile.monthly-ce87e068.js} +0 -0
  241. /package/build/esm/{BMI_GIRLS.percentile.weekly-71d93f3d.js → BMI_GIRLS.percentile.weekly-c6ce84ad.js} +0 -0
  242. /package/build/esm/{BMI_GIRLS.percentile.yearly-40fc13ad.js → BMI_GIRLS.percentile.yearly-9d411b7b.js} +0 -0
  243. /package/build/esm/{BMI_GIRLS.zscore.monthly-e8a55ebc.js → BMI_GIRLS.zscore.monthly-38b0347c.js} +0 -0
  244. /package/build/esm/{BMI_GIRLS.zscore.weekly-71d656d6.js → BMI_GIRLS.zscore.weekly-eac4529e.js} +0 -0
  245. /package/build/esm/{BMI_GIRLS.zscore.yearly-5a468242.js → BMI_GIRLS.zscore.yearly-50f5008c.js} +0 -0
  246. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-e3b093b1.js → HEAD CIRCUM_BOYS.percentile.monthly-75f078ba.js} +0 -0
  247. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f6b80588.js → HEAD CIRCUM_BOYS.percentile.weekly-7c43c2d0.js} +0 -0
  248. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-fc13c6a5.js → HEAD CIRCUM_BOYS.percentile.yearly-1d835cb7.js} +0 -0
  249. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-2892b7cc.js → HEAD CIRCUM_BOYS.zscore.monthly-10241392.js} +0 -0
  250. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-70ded852.js → HEAD CIRCUM_BOYS.zscore.weekly-d0732f62.js} +0 -0
  251. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c1ff4525.js → HEAD CIRCUM_BOYS.zscore.yearly-6315132f.js} +0 -0
  252. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b54fb8a3.js → HEAD CIRCUM_GIRLS.percentile.monthly-0403b826.js} +0 -0
  253. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-7e55533c.js → HEAD CIRCUM_GIRLS.percentile.weekly-413deb2b.js} +0 -0
  254. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-949a054e.js → HEAD CIRCUM_GIRLS.percentile.yearly-41b4036c.js} +0 -0
  255. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-a96d19ec.js → HEAD CIRCUM_GIRLS.zscore.monthly-fe297da2.js} +0 -0
  256. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-b66c05c9.js → HEAD CIRCUM_GIRLS.zscore.weekly-af0f6457.js} +0 -0
  257. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-9dd13c8f.js → HEAD CIRCUM_GIRLS.zscore.yearly-9bf90181.js} +0 -0
  258. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-9700aac3.js → HEIGHT_BOYS.percentile.monthly-b01d2c51.js} +0 -0
  259. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-ef6904ed.js → HEIGHT_BOYS.percentile.weekly-fc52d07c.js} +0 -0
  260. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-5901b11f.js → HEIGHT_BOYS.percentile.yearly-07dc6516.js} +0 -0
  261. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-31972315.js → HEIGHT_BOYS.zscore.monthly-2eed58e7.js} +0 -0
  262. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c1f54fcd.js → HEIGHT_BOYS.zscore.weekly-585a4f7b.js} +0 -0
  263. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3a88a99b.js → HEIGHT_BOYS.zscore.yearly-0ad60538.js} +0 -0
  264. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-d8cb75fe.js → HEIGHT_GIRLS.percentile.monthly-240bf454.js} +0 -0
  265. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c865f0ae.js → HEIGHT_GIRLS.percentile.weekly-aff14385.js} +0 -0
  266. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-a3db6404.js → HEIGHT_GIRLS.percentile.yearly-b16c343f.js} +0 -0
  267. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-06123665.js → HEIGHT_GIRLS.zscore.monthly-33894606.js} +0 -0
  268. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-56ea53ce.js → HEIGHT_GIRLS.zscore.weekly-a49ae37f.js} +0 -0
  269. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-a05118f2.js → HEIGHT_GIRLS.zscore.yearly-5b36e990.js} +0 -0
  270. /package/build/esm/{Onboarding-e74c6373.js → Onboarding-a81ee6c0.js} +0 -0
  271. /package/build/esm/{Visible-c0636b77.js → Visible-fcb1ec77.js} +0 -0
  272. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-9bceb070.js → WEIGHT_BOYS.percentile.monthly-a37b39b9.js} +0 -0
  273. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0bcf2f5a.js → WEIGHT_BOYS.percentile.weekly-032fa54d.js} +0 -0
  274. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-233aef08.js → WEIGHT_BOYS.percentile.yearly-79b59ad8.js} +0 -0
  275. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-59173133.js → WEIGHT_BOYS.zscore.monthly-5bb0085e.js} +0 -0
  276. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-d0b0891c.js → WEIGHT_BOYS.zscore.weekly-daa8b7e0.js} +0 -0
  277. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-aed61be9.js → WEIGHT_BOYS.zscore.yearly-67b80b38.js} +0 -0
  278. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-b1aaa4f5.js → WEIGHT_GIRLS.percentile.monthly-3f459078.js} +0 -0
  279. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3cd50fbf.js → WEIGHT_GIRLS.percentile.weekly-d961ed72.js} +0 -0
  280. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-aa79c1cf.js → WEIGHT_GIRLS.percentile.yearly-34676029.js} +0 -0
  281. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-ef91acea.js → WEIGHT_GIRLS.zscore.monthly-4620d423.js} +0 -0
  282. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-6daea4ee.js → WEIGHT_GIRLS.zscore.weekly-2dfb1b18.js} +0 -0
  283. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-b27fd0f9.js → WEIGHT_GIRLS.zscore.yearly-8bb3fe24.js} +0 -0
  284. /package/build/esm/{constants-712f22d5.js → constants-0cec4af6.js} +0 -0
  285. /package/build/esm/{cookieHelper-0b465a40.js → cookieHelper-bcf7272f.js} +0 -0
  286. /package/build/esm/{dataTransform-aeb51aee.js → dataTransform-c8178598.js} +0 -0
  287. /package/build/esm/{index-7f3b616d.js → index-d5418ed1.js} +0 -0
  288. /package/build/esm/{isProduction-e91fe1f8.js → isProduction-47c992a5.js} +0 -0
  289. /package/build/esm/{localizeNumberFormat-e6a59661.js → localizeNumberFormat-c9c39d1c.js} +0 -0
  290. /package/build/esm/{number-0269eb39.js → number-8457010b.js} +0 -0
  291. /package/build/esm/{paths-edfac68b.js → paths-d247253d.js} +0 -0
  292. /package/build/esm/{screenSizeContext-32376937.js → screenSizeContext-33fef513.js} +0 -0
  293. /package/build/esm/{theme-fa44d5d8.js → theme-d49c721b.js} +0 -0
  294. /package/build/esm/{translationsContext-19ab986c.js → translationsContext-3f2fd7dc.js} +0 -0
  295. /package/build/esm/{tslib.es6-74f0570d.js → tslib.es6-f2af99ac.js} +0 -0
  296. /package/build/esm/{types-3f93b402.js → types-1ce5a2fc.js} +0 -0
  297. /package/build/esm/{useIsInit-c671a4a8.js → useIsInit-7cd3c94d.js} +0 -0
  298. /package/build/esm/{useOutsideClick-c6d935b3.js → useOutsideClick-9e6edc96.js} +0 -0
  299. /package/build/esm/{useScrollbarSize-cc449e29.js → useScrollbarSize-d76b1977.js} +0 -0
  300. /package/build/esm/{useUniqueId-4bcf65b3.js → useUniqueId-e0085e52.js} +0 -0
  301. /package/build/{index-dac97379.js → index-2fb83f3c.js} +0 -0
  302. /package/build/{isProduction-d069d72f.js → isProduction-7b5e461e.js} +0 -0
  303. /package/build/{localizeNumberFormat-5caed487.js → localizeNumberFormat-11e1d463.js} +0 -0
  304. /package/build/{number-12cac8a1.js → number-fd1cd4c6.js} +0 -0
  305. /package/build/{paths-7111bdc0.js → paths-e72972f9.js} +0 -0
  306. /package/build/{screenSizeContext-fbab96ac.js → screenSizeContext-16f9cf88.js} +0 -0
  307. /package/build/{theme-8e5f3027.js → theme-5a0717a0.js} +0 -0
  308. /package/build/{translationsContext-be52e93c.js → translationsContext-2a93844f.js} +0 -0
  309. /package/build/{tslib.es6-66f4373b.js → tslib.es6-9e96717c.js} +0 -0
  310. /package/build/{types-cb1ac6a2.js → types-a0ba3a9d.js} +0 -0
  311. /package/build/{useIsInit-e2ab71c5.js → useIsInit-17bf3a0f.js} +0 -0
  312. /package/build/{useOutsideClick-78db2538.js → useOutsideClick-384d60ae.js} +0 -0
  313. /package/build/{useScrollbarSize-ce56eaac.js → useScrollbarSize-09464f63.js} +0 -0
  314. /package/build/{useUniqueId-0230c3e7.js → useUniqueId-5fe1aa46.js} +0 -0
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { DefaultProps, Selectors } from '@mantine/core';
3
+ import { ButtonProps } from "../../../mantine";
4
+ import useStyles from './index.styles';
5
+ import { Props as BannerLayoutProps } from '../bannerLayout';
6
+ import { OptionBannerStyleType, OptionBannerType } from '../types';
7
+ export interface Props extends DefaultProps<Selectors<typeof useStyles> & BannerLayoutProps> {
8
+ heading: string;
9
+ description: string;
10
+ items?: Array<OptionBannerType>;
11
+ submitHandler?: any;
12
+ styleType?: OptionBannerStyleType;
13
+ buttonProps?: ButtonProps;
14
+ value?: string;
15
+ }
16
+ declare const BannerWithOptions: (props: Props) => React.JSX.Element;
17
+ export { BannerWithOptions };
@@ -0,0 +1,10 @@
1
+ declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<string>) => {
2
+ classes: {
3
+ root: string;
4
+ wrapper: string;
5
+ button: string;
6
+ };
7
+ cx: (...args: any) => string;
8
+ theme: import("@mantine/core").MantineTheme;
9
+ };
10
+ export default _default;
@@ -0,0 +1,171 @@
1
+ import { MantineTheme } from '@mantine/core';
2
+ import { UseTranslationsReturn } from "../../../hooks";
3
+ import { RISK_SCREENER_NAME } from "../../../interfaces/constants";
4
+ import { LocaleType } from "../../../interfaces/types";
5
+ import { BannerAction, OptionBannerStyleType } from './types';
6
+ export declare const FLOW: (t: UseTranslationsReturn<LocaleType>['t']) => {
7
+ pregnant: {
8
+ action: BannerAction;
9
+ props: {
10
+ heading: string;
11
+ description: string;
12
+ styleType: OptionBannerStyleType;
13
+ thumbnail: {
14
+ desktop: string;
15
+ mobile: string;
16
+ };
17
+ buttonProps: {
18
+ variant: string;
19
+ styles: (theme: MantineTheme) => {
20
+ [x: string]: string | {
21
+ minWidth: string;
22
+ };
23
+ minWidth: string;
24
+ };
25
+ };
26
+ items: {
27
+ label: string;
28
+ value: string;
29
+ }[];
30
+ };
31
+ submitHandler: {
32
+ yes: {
33
+ action: BannerAction;
34
+ props: {
35
+ value: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
36
+ };
37
+ };
38
+ no: {
39
+ action: BannerAction;
40
+ };
41
+ };
42
+ };
43
+ parenting: {
44
+ action: BannerAction;
45
+ props: {
46
+ heading: string;
47
+ description: string;
48
+ thumbnail: {
49
+ desktop: string;
50
+ mobile: string;
51
+ };
52
+ hideDescOnMobile: boolean;
53
+ styleType: OptionBannerStyleType;
54
+ items: {
55
+ label: string;
56
+ value: string;
57
+ }[];
58
+ };
59
+ submitHandler: {
60
+ todders: {
61
+ action: BannerAction;
62
+ props: {
63
+ value: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
64
+ };
65
+ };
66
+ teenager: {
67
+ action: BannerAction;
68
+ props: {
69
+ styleType: OptionBannerStyleType;
70
+ heading: string;
71
+ description: string;
72
+ thumbnail: {
73
+ desktop: string;
74
+ mobile: string;
75
+ };
76
+ buttonProps: {
77
+ variant: string;
78
+ };
79
+ items: {
80
+ label: string;
81
+ value: string;
82
+ }[];
83
+ };
84
+ };
85
+ 'teenager.boy': {
86
+ action: BannerAction;
87
+ };
88
+ 'teenager.girl': {
89
+ action: BannerAction;
90
+ activeTool: RISK_SCREENER_NAME;
91
+ props: {
92
+ value: RISK_SCREENER_NAME;
93
+ };
94
+ };
95
+ 'todders|teenager': {
96
+ action: BannerAction;
97
+ props: {
98
+ styleType: OptionBannerStyleType;
99
+ heading: string;
100
+ description: string;
101
+ thumbnail: {
102
+ desktop: string;
103
+ mobile: string;
104
+ };
105
+ hideDescOnMobile: boolean;
106
+ buttonProps: {
107
+ variant: string;
108
+ };
109
+ styles: (theme: MantineTheme) => {
110
+ wrapper: {
111
+ [x: string]: {
112
+ flexDirection: string;
113
+ };
114
+ };
115
+ };
116
+ items: ({
117
+ label: string;
118
+ activeTool: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
119
+ isLink: boolean;
120
+ value?: undefined;
121
+ isPNBtn?: undefined;
122
+ } | {
123
+ label: string;
124
+ value: string;
125
+ isPNBtn: boolean;
126
+ activeTool?: undefined;
127
+ isLink?: undefined;
128
+ })[];
129
+ };
130
+ };
131
+ 'todders|teenager.showPN': {
132
+ action: BannerAction;
133
+ useValueAfterUserBack: string;
134
+ };
135
+ };
136
+ };
137
+ };
138
+ export declare const TOOL_BANNERS_PROPS: (t: UseTranslationsReturn<LocaleType>['t']) => {
139
+ [x: string]: {
140
+ heading: string;
141
+ description: string;
142
+ btnLabel: string;
143
+ value: import("../../../interfaces/healthTools").HEALTH_TOOL_NAME;
144
+ thumbnail?: undefined;
145
+ isRiskScreener?: undefined;
146
+ hideDescOnMobile?: undefined;
147
+ } | {
148
+ heading: string;
149
+ description: string;
150
+ thumbnail: {
151
+ desktop: string;
152
+ mobile: string;
153
+ };
154
+ isRiskScreener: boolean;
155
+ btnLabel: string;
156
+ value: RISK_SCREENER_NAME;
157
+ hideDescOnMobile: boolean;
158
+ };
159
+ hpv: {
160
+ heading: string;
161
+ description: string;
162
+ thumbnail: {
163
+ desktop: string;
164
+ mobile: string;
165
+ };
166
+ isRiskScreener: boolean;
167
+ btnLabel: string;
168
+ value: RISK_SCREENER_NAME;
169
+ hideDescOnMobile: boolean;
170
+ };
171
+ };
@@ -1,23 +1,29 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
+ import { BannerAction, BannerStateData, SubcribeHealthStatusType } from './types';
2
3
  import { AcquisitionInfo } from '../premiumNewsletterModal/context';
3
- export type BannerState = 'hide' | 'showTool';
4
+ export type BannerState = BannerAction.ShowTool | BannerAction.ShowOptionBanner | null;
4
5
  export type PremiumNewsletterBannerContextType = {
5
6
  type: string;
7
+ settings?: any;
8
+ submitHandler?: any;
6
9
  acquisitionInfo: AcquisitionInfo;
7
10
  categoryIds?: Array<string | number>;
8
11
  isMobile?: boolean;
9
12
  isLoggedIn?: boolean;
10
13
  isMarketing?: boolean;
11
14
  isABTestingType?: boolean;
12
- isPremiumBanner?: boolean;
15
+ hasPremiumBanner?: boolean;
13
16
  currentUrl?: string;
14
- subcribeHealthStatus?: {
15
- pregnant: number;
16
- pregnant_article: number;
17
- } | null;
18
- pregnantArticleId?: number;
19
- state?: BannerState;
20
- setState?: Dispatch<SetStateAction<BannerState>>;
21
- onChange?: (state?: BannerState) => void;
17
+ subcribeHealthStatus?: SubcribeHealthStatusType;
18
+ articleId?: number;
19
+ state?: BannerStateData;
20
+ setState?: Dispatch<SetStateAction<BannerStateData>>;
21
+ source?: 'discover' | 'together';
22
+ showPNModal?: boolean;
23
+ setShowPNModal?: Dispatch<SetStateAction<boolean>>;
24
+ onChange?: (state: BannerStateData) => void;
25
+ handleClickOption?: (v: string) => void;
26
+ Outside?: React.FC<any>;
27
+ minHeight?: number;
22
28
  };
23
29
  export declare const PremiumNewsletterBannerContext: import("react").Context<PremiumNewsletterBannerContextType>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const HandlerBanner: () => React.JSX.Element;
3
+ export { HandlerBanner };
@@ -1,7 +1,15 @@
1
1
  import React from 'react';
2
2
  import { ContainerProps } from '@mantine/core';
3
3
  import { PremiumNewsletterBannerContextType } from './context';
4
+ import { BannerCategory } from './types';
4
5
  export type Props = {
6
+ Wrapper?: React.FC<any>;
5
7
  setShouldAcquisitionModalOpen?: () => void;
6
8
  } & Omit<PremiumNewsletterBannerContextType, 'acquisitionInfo' | 'isLoggedIn'> & ContainerProps;
7
- export declare const PremiumNewsletterBanner: ({ type, pregnantArticleId, categoryIds, isMarketing, isABTestingType, isPremiumBanner, currentUrl, isMobile, subcribeHealthStatus, setShouldAcquisitionModalOpen, state: stateProps, onChange, ...rest }: Props) => React.JSX.Element;
9
+ export declare const MAPPING_CATEGORY_PREMIUM_TYPE: {
10
+ [key in string]: BannerCategory;
11
+ };
12
+ export declare const MAPPING_CATEGORY_PREMIUM_API_TYPE: {
13
+ [key in BannerCategory]: string;
14
+ };
15
+ export declare const PremiumNewsletterBanner: ({ type: typeProp, articleId, categoryIds, isMarketing, isABTestingType, hasPremiumBanner, currentUrl, isMobile, subcribeHealthStatus, setShouldAcquisitionModalOpen, onChange, source, state: stateProp, Wrapper, ...rest }: Props) => React.JSX.Element;
@@ -1,10 +1,14 @@
1
1
  import React from 'react';
2
- type Props = {
3
- heading: string;
4
- description: string;
5
- thumbnail: string;
6
- btnLabel: string;
7
- btnLink: string;
2
+ import { HEALTH_TOOL_NAME } from "../../../interfaces/healthTools";
3
+ import { ThumbnailType } from './types';
4
+ export type Props = {
5
+ value: HEALTH_TOOL_NAME;
6
+ isRiskScreener?: boolean;
7
+ heading?: string;
8
+ description?: string;
9
+ thumbnail?: string | ThumbnailType;
10
+ btnLabel?: string;
11
+ hideDescOnMobile?: boolean;
8
12
  };
9
- declare const ToolBanner: ({ heading, description, thumbnail, btnLabel, btnLink, }: Props) => React.JSX.Element;
13
+ declare const ToolBanner: (props: Props) => React.JSX.Element;
10
14
  export { ToolBanner };
@@ -0,0 +1,44 @@
1
+ import { RISK_SCREENER_NAME } from "../../../interfaces/constants";
2
+ import { HEALTH_TOOL_NAME } from "../../../interfaces/healthTools";
3
+ import { Props as BannerWithOptionsProps } from './bannerWithOption';
4
+ import { Props as ToolBannerProps } from './toolBanner';
5
+ export declare enum BannerCategory {
6
+ Pregnant = "pregnant",
7
+ Parenting = "parenting"
8
+ }
9
+ export declare enum BannerType {
10
+ Option = "option"
11
+ }
12
+ export declare enum OptionBannerStyleType {
13
+ Button = "button",
14
+ Checkbox = "checkbox"
15
+ }
16
+ export type BannerStateData = {
17
+ action?: BannerAction;
18
+ props?: ToolBannerProps | BannerWithOptionsProps;
19
+ };
20
+ export declare enum BannerAction {
21
+ ShowTool = "showTool",
22
+ ShowPremiumModal = "showPremiumModal",
23
+ ShowOptionBanner = "showOptionBanner",
24
+ Hide = "hide"
25
+ }
26
+ export type OptionBannerType = {
27
+ label: string;
28
+ action: BannerAction;
29
+ value: string;
30
+ activeTool?: HEALTH_TOOL_NAME | RISK_SCREENER_NAME;
31
+ isLink?: boolean;
32
+ isRiskScreener: boolean;
33
+ isPNBtn?: boolean;
34
+ props?: ToolBannerProps | BannerWithOptionsProps;
35
+ };
36
+ export type ThumbnailType = {
37
+ desktop: string;
38
+ mobile: string;
39
+ };
40
+ export type SubcribeHealthStatusType = {
41
+ value: string;
42
+ article: number;
43
+ source: 'discover' | 'together';
44
+ } | null;
@@ -1 +1 @@
1
- export{A as Alert,d as ArticleCard,e as ArticleCardV2,q as BMICardEmbed,u as BMRCardEmbed,r as BabyGrowthCardEmbed,s as BabyPoopEmbed,B as Badge,a as BorderHeading,x as Breadcrumbs,f as CategoryCard,C as Checkbox,g as CheckboxGroup,o as CookieAcceptConfirm,w as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,E as FixedBottomAdBlock,n as FloatButtonGroup,c as GenderOptionControl,G as Grid,I as IconText,O as OvulationCardEmbed,v as PWGCardEmbed,P as Pagination,H as PremiumNewsletterBanner,h as ProgressBar,R as RateStars,S as ScrollList,p as SeoHead,y as ShareContainer,z as ShareDrawer,i as SideMenu,j as StatisticCard,m as SurveyThankyouCard,t as THRCardEmbed,k as Table,l as Tabs,T as Tag,b as Toggle}from"./index-34cdc8ae.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-1dc8aa54.js";export{B as Button}from"./index-eb7b481c.js";export{B as BtnChoice,D as Divider}from"./index-118cc0e3.js";export{F as Flag,H as Heading,L as LogoIcon,P as PureInput,S as StepRenderer,b as StepRendererContext,T as TextArea,a as TextDivider}from"./index.styles-3cb66895.js";export{I as Input}from"./index-17e18342.js";export{C as Container,I as Icon,L as Label}from"./index-e9f94e1d.js";export{L as Logo}from"./index-c5aedb3d.js";export{e as AdBlock,A as AuthorBadge,B as BookingBtn,D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./_topic-06ecb66a.js";export{T as Text}from"./index-94ba9ce3.js";export{D as Drawer,R as RadioImageGroup}from"./index-d870b668.js";export{C as CustomReferenceDot,I as ImageWrap}from"./index-ee66cce2.js";export{P as Popup}from"./index.styled-54fac88c.js";export{M as Modal}from"./index-8df7dcfc.js";export{P as PillCarousel}from"./index-6305da27.js";export{A as AddressInput}from"./index-9031b2ed.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-32376937.js";import"styled-components";import"lodash/throttle";import"./useUniqueId-4bcf65b3.js";import"./gAssets.js";import"./index-e29c43c9.js";import"date-fns/locale";import"./Onboarding-e74c6373.js";import"./isProduction-e91fe1f8.js";import"./theme-fa44d5d8.js";import"./tslib.es6-74f0570d.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"./translationsContext-19ab986c.js";import"string-format";import"@mantine/hooks";import"./useTranslations-d3d91dae.js";import"date-fns";import"lodash/debounce";import"./useCategory-be3ee862.js";import"./types-3f93b402.js";import"./index-7cc30b43.js";import"./index-449f5c48.js";import"react-hook-form";import"./useHealthToolCache-f6cdcbeb.js";import"./getDynamicHealthTool-ebc19aa8.js";import"./core-1eefc80e.js";import"./normalizeLink-7f1e3cc7.js";import"./routing-2eb975c1.js";import"./useOutsideClick-c6d935b3.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-61a37aaa.js";import"uuid";import"react-contenteditable";import"react-dom";import"react-day-picker/DayPickerInput";import"./index.styled-ee45f4b9.js";import"./utils-5148d654.js";import"./index-20383a76.js";import"js-cookie";import"@mantine/form";import"lodash/flatten";import"lodash/uniqBy";import"./cookieHelper-0b465a40.js";import"./constants-712f22d5.js";import"./index-d71ad10a.js";import"./useIsInit-c671a4a8.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";import"./number-0269eb39.js";import"dayjs/plugin/relativeTime";import"./paths-edfac68b.js";import"./useScrollbarSize-cc449e29.js";
1
+ export{A as Alert,d as ArticleCard,e as ArticleCardV2,q as BMICardEmbed,u as BMRCardEmbed,r as BabyGrowthCardEmbed,s as BabyPoopEmbed,B as Badge,a as BorderHeading,x as Breadcrumbs,f as CategoryCard,C as Checkbox,g as CheckboxGroup,o as CookieAcceptConfirm,w as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,E as FixedBottomAdBlock,n as FloatButtonGroup,c as GenderOptionControl,G as Grid,I as IconText,O as OvulationCardEmbed,v as PWGCardEmbed,P as Pagination,h as ProgressBar,R as RateStars,S as ScrollList,p as SeoHead,y as ShareContainer,z as ShareDrawer,i as SideMenu,j as StatisticCard,m as SurveyThankyouCard,t as THRCardEmbed,k as Table,l as Tabs,T as Tag,b as Toggle}from"./fixedBottomAdBlock-31f63dd2.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-98ed0b85.js";export{B as Button}from"./index-3da3b99c.js";export{B as BtnChoice,D as Divider}from"./index-99217354.js";export{F as Flag,H as Heading,L as LogoIcon,P as PureInput,S as StepRenderer,b as StepRendererContext,T as TextArea,a as TextDivider}from"./index.styles-c08c3b6a.js";export{I as Input}from"./index-a8d69a06.js";export{C as Container,I as Icon,L as Label}from"./index-8586a3fa.js";export{L as Logo}from"./index-3f57b18d.js";export{e as AdBlock,A as AuthorBadge,B as BookingBtn,D as DatePicker,c as DoctorInfo,a as Dropdown,g as MAPPING_CATEGORY_PREMIUM_API_TYPE,f as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,P as PremiumNewsletterBanner,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-eaa47f62.js";export{T as Text}from"./index-9ea2d3b2.js";export{D as Drawer,R as RadioImageGroup}from"./index-011e271d.js";export{C as CustomReferenceDot,I as ImageWrap}from"./index-fa1fe50a.js";export{P as Popup}from"./index.styled-ef15b31f.js";export{M as Modal}from"./index-0940eded.js";export{P as PillCarousel}from"./index-0dfc2786.js";export{A as AddressInput}from"./index-3df6363a.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-33fef513.js";import"styled-components";import"lodash/throttle";import"./useUniqueId-e0085e52.js";import"./gAssets.js";import"./index-a446580e.js";import"date-fns/locale";import"./Onboarding-a81ee6c0.js";import"./isProduction-47c992a5.js";import"./theme-d49c721b.js";import"./tslib.es6-f2af99ac.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"./translationsContext-3f2fd7dc.js";import"string-format";import"@mantine/hooks";import"./useTranslations-3a14717a.js";import"date-fns";import"lodash/debounce";import"./useCategory-464cfb23.js";import"./types-1ce5a2fc.js";import"./index-7fc4a1b7.js";import"./index-db0781f2.js";import"react-hook-form";import"./useHealthToolCache-38cc16c5.js";import"./getDynamicHealthTool-da142539.js";import"./core-b9390398.js";import"./normalizeLink-96ff27ed.js";import"./useOutsideClick-9e6edc96.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-9f2db86c.js";import"uuid";import"./cookieHelper-bcf7272f.js";import"./constants-0cec4af6.js";import"./index-037df1f2.js";import"./useIsInit-7cd3c94d.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"slugify";import"./number-8457010b.js";import"react-day-picker/DayPickerInput";import"react-dom";import"@hookform/resolvers/yup";import"./index.styled-2c91cea9.js";import"./utils-5a85887c.js";import"dayjs/plugin/relativeTime";import"./paths-d247253d.js";import"./index-34c4b165.js";import"react-contenteditable";import"@mantine/form";import"js-cookie";import"lodash/flatten";import"lodash/uniqBy";import"./useScrollbarSize-d76b1977.js";
@@ -1 +1 @@
1
- import"date-fns/locale";import"./Onboarding-e74c6373.js";export{B as BEARER_TOKEN_COOKIE,a as CARE_BOOKING_LOCALES,C as CARE_LOCALES,b as CDN_ADDRESS,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,G as GA_TOKEN_COOKIE,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,c as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,e as siteHost,s as siteOptions}from"./index-e29c43c9.js";export{i as isProduction}from"./isProduction-e91fe1f8.js";
1
+ import"date-fns/locale";import"./Onboarding-a81ee6c0.js";export{B as BEARER_TOKEN_COOKIE,b as CARE_BOOKING_LOCALES,C as CARE_LOCALES,c as CDN_ADDRESS,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,G as GA_TOKEN_COOKIE,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,R as RISK_SCREENER_NAME,a as RISK_SCREENER_SLUG,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,e as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,f as siteHost,s as siteOptions}from"./index-a446580e.js";export{i as isProduction}from"./isProduction-47c992a5.js";
@@ -0,0 +1 @@
1
+ import{a as t}from"./tslib.es6-f2af99ac.js";import{i as a}from"./isProduction-47c992a5.js";const e={},i=t=>{if("undefined"!=typeof window){let e;try{e=JSON.parse(localStorage.getItem((a?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return e||{}}return e[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((a?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):e[t]={data:i,time:Date.now()}}catch(t){}},n=(a,e,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(a);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(e){const t=yield e();return n&&!n(t)||o(a,t),t}return null}));export{i as a,n as g,o as s};
package/build/esm/ecom.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./theme-fa44d5d8.js";import"./index-e29c43c9.js";import{i as o}from"./isProduction-e91fe1f8.js";export{t as Types}from"./types-3f93b402.js";import"date-fns/locale";import"./Onboarding-e74c6373.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||"",c=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,u=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?`https://${d[s]}`:`https://discover.${d[s]}`,p=o?`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:c,GOOGLE_CLIENT_ID:u,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.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,c,u,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===(u=null===(c=null==e?void 0:e.social)||void 0===c?void 0:c.socials)||void 0===u?void 0:u.map)||void 0===d?void 0:d.call(u,(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,c,u,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===(u=(c=e.sub_banners).map)||void 0===u?void 0:u.call(c,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,c,u,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===(c=e.currency)||void 0===c?void 0:c.store_to_quote_rate)||0,baseToGlobalRate:(null===(u=e.currency)||void 0===u?void 0:u.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});export{l as ApiTypes,T as Constants,A as DataFormatter,i as DataTypes};
1
+ import{t as e}from"./theme-d49c721b.js";import"./index-a446580e.js";import{i as o}from"./isProduction-47c992a5.js";export{t as Types}from"./types-1ce5a2fc.js";import"date-fns/locale";import"./Onboarding-a81ee6c0.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||"",c=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,u=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?`https://${d[s]}`:`https://discover.${d[s]}`,p=o?`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:c,GOOGLE_CLIENT_ID:u,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.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,c,u,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===(u=null===(c=null==e?void 0:e.social)||void 0===c?void 0:c.socials)||void 0===u?void 0:u.map)||void 0===d?void 0:d.call(u,(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,c,u,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===(u=(c=e.sub_banners).map)||void 0===u?void 0:u.call(c,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,c,u,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===(c=e.currency)||void 0===c?void 0:c.store_to_quote_rate)||0,baseToGlobalRate:(null===(u=e.currency)||void 0===u?void 0:u.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});export{l as ApiTypes,T as Constants,A as DataFormatter,i as DataTypes};