@hhgtech/hhg-components 1.26.1 → 1.26.2

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 (445) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care/components/organisms/bookingSearchBar/index.styled.d.ts +6 -39
  4. package/build/care/components/organisms/bookingSearchBar/locationResults/index.styled.d.ts +8 -22
  5. package/build/care/components/organisms/bookingSearchBar/mobileFakeInput/index.d.ts +1 -4
  6. package/build/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +5 -29
  7. package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +8 -38
  8. package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +7 -34
  9. package/build/care/components/organisms/bookingSearchBar/searchInputs/index.styled.d.ts +6 -28
  10. package/build/care.js +1 -1
  11. package/build/components/atoms/alert/index.d.ts +1 -1
  12. package/build/components/atoms/avatar/index.d.ts +1 -1
  13. package/build/components/atoms/avatar/index.styled.d.ts +1 -5
  14. package/build/components/atoms/backdrop/index.styled.d.ts +1 -5
  15. package/build/components/atoms/badge/index.styled.d.ts +1 -6
  16. package/build/components/atoms/borderHeading/index.styled.d.ts +1 -6
  17. package/build/components/atoms/btnChoice/index.styled.d.ts +1 -5
  18. package/build/components/atoms/checkbox/index.styled.d.ts +1 -6
  19. package/build/components/atoms/displayWrapper/index.styled.d.ts +2 -6
  20. package/build/components/atoms/divider/index.d.ts +1 -1
  21. package/build/components/atoms/divider/index.styled.d.ts +2 -6
  22. package/build/components/atoms/drawer/helpers.d.ts +1 -1
  23. package/build/components/atoms/drawer/index.styled.d.ts +5 -15
  24. package/build/components/atoms/dropdownMB/index.styled.d.ts +2 -4
  25. package/build/components/atoms/fileDropdown/index.d.ts +1 -1
  26. package/build/components/atoms/fileDropdown/index.styled.d.ts +5 -22
  27. package/build/components/atoms/grid/index.styled.d.ts +1 -8
  28. package/build/components/atoms/heading/index.d.ts +1 -1
  29. package/build/components/atoms/icons/Plus.d.ts +1 -4
  30. package/build/components/atoms/input/index.styled.d.ts +6 -22
  31. package/build/components/atoms/inputMB/index.styled.d.ts +2 -27
  32. package/build/components/atoms/logo/index.styled.d.ts +2 -9
  33. package/build/components/atoms/marryBabyText/index.d.ts +1 -1
  34. package/build/components/atoms/marryBabyText/index.styled.d.ts +5 -9
  35. package/build/components/atoms/menu/index.styled.d.ts +3 -11
  36. package/build/components/atoms/newBabyProfileRadio/index.styled.d.ts +1 -6
  37. package/build/components/atoms/pagination/index.d.ts +1 -1
  38. package/build/components/atoms/pagination/index.styled.d.ts +3 -14
  39. package/build/components/atoms/pill/index.styled.d.ts +2 -10
  40. package/build/components/atoms/progress/index.styled.d.ts +1 -6
  41. package/build/components/atoms/pureInput/index.styled.d.ts +5 -22
  42. package/build/components/atoms/radio/index.styled.d.ts +1 -6
  43. package/build/components/atoms/radioImageGroup/index.styled.d.ts +2 -10
  44. package/build/components/atoms/rateStars/index.styled.d.ts +1 -5
  45. package/build/components/atoms/shadow/index.styled.d.ts +1 -5
  46. package/build/components/atoms/tag/index.styled.d.ts +1 -6
  47. package/build/components/atoms/toggle/index.styled.d.ts +4 -18
  48. package/build/components/atoms/underlinedLink/index.styled.d.ts +1 -6
  49. package/build/components/atoms/uploader/index.styled.d.ts +4 -18
  50. package/build/components/babyGrowth/babyGrowthChart/index.styled.d.ts +1 -5
  51. package/build/components/babyGrowth/babyGrowthChooseProfileDrawer/index.styled.d.ts +2 -8
  52. package/build/components/babyGrowth/babyGrowthForm/index.styled.d.ts +7 -41
  53. package/build/components/babyGrowth/babyGrowthGender/index.styled.d.ts +2 -7
  54. package/build/components/babyGrowth/babyGrowthLegend/index.styled.d.ts +2 -9
  55. package/build/components/babyGrowth/babyGrowthProfileRadio/index.styled.d.ts +1 -6
  56. package/build/components/babyGrowth/babyGrowthRecord/index.styled.d.ts +1 -5
  57. package/build/components/babyGrowth/babyGrowthSwitch/index.styled.d.ts +1 -6
  58. package/build/components/babyGrowth/babyGrowthTooltip/index.styled.d.ts +1 -5
  59. package/build/components/babyGrowth/childCard/index.styled.d.ts +3 -15
  60. package/build/components/mantine/accordion/index.styled.d.ts +3 -5
  61. package/build/components/mantine/aspectRatio/index.styled.d.ts +1 -5
  62. package/build/components/mantine/breadcrumbs/index.styled.d.ts +1 -5
  63. package/build/components/mantine/button/index.styled.d.ts +1 -5
  64. package/build/components/mantine/datepicker/index.styled.d.ts +2 -6
  65. package/build/components/mantine/modal/index.styled.d.ts +2 -3
  66. package/build/components/mantine/slider/index.styled.d.ts +2 -14
  67. package/build/components/mantine/text/index.styled.d.ts +8 -3
  68. package/build/components/mantine/textArea/index.styled.d.ts +1 -3
  69. package/build/components/molecules/articleCard/index.d.ts +1 -1
  70. package/build/components/molecules/bmiForm/index.styled.d.ts +6 -48
  71. package/build/components/molecules/bmrForm/index.styled.d.ts +5 -43
  72. package/build/components/molecules/carousel/index.styled.d.ts +3 -14
  73. package/build/components/molecules/categoryCard/index.d.ts +1 -1
  74. package/build/components/molecules/categoryCard/index.styled.d.ts +1 -6
  75. package/build/components/molecules/checkboxGroup/index.styled.d.ts +1 -5
  76. package/build/components/molecules/cookieAcceptConfirm/index.styled.d.ts +8 -27
  77. package/build/components/molecules/datePicker/index.styled.d.ts +2 -10
  78. package/build/components/molecules/dateRangePicker/calendar/index.styled.d.ts +13 -62
  79. package/build/components/molecules/dateRangePicker/index.styled.d.ts +2 -10
  80. package/build/components/molecules/dropdown/index.d.ts +1 -1
  81. package/build/components/molecules/dropdown/index.styled.d.ts +12 -20
  82. package/build/components/molecules/dropdownSearch/index.styled.d.ts +7 -28
  83. package/build/components/molecules/dueDateCalculator/index.styled.d.ts +6 -34
  84. package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +4 -12
  85. package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.styled.d.ts +15 -47
  86. package/build/components/molecules/embeddedHeathToolCards/index.styled.d.ts +4 -16
  87. package/build/components/molecules/floatButtonGroup/index.d.ts +1 -1
  88. package/build/components/molecules/floatButtonGroup/index.styled.d.ts +8 -34
  89. package/build/components/molecules/iconText/index.styled.d.ts +1 -6
  90. package/build/components/molecules/languageSwitcher/index.styled.d.ts +1 -6
  91. package/build/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -1
  92. package/build/components/molecules/languageSwitcher/tooltipSelection/index.styled.d.ts +5 -22
  93. package/build/components/molecules/mobileBottomNavigation/index.styled.d.ts +7 -23
  94. package/build/components/molecules/modal/index.styled.d.ts +4 -18
  95. package/build/components/molecules/pillCarousel/index.styled.d.ts +3 -24
  96. package/build/components/molecules/popup/index.styled.d.ts +2 -10
  97. package/build/components/molecules/progressBar/index.styled.d.ts +12 -50
  98. package/build/components/molecules/radioGroup/index.styled.d.ts +1 -5
  99. package/build/components/molecules/radioImageGroupForTool/index.styled.d.ts +2 -10
  100. package/build/components/molecules/scrollList/index.styled.d.ts +1 -6
  101. package/build/components/molecules/shareContainer/index.styled.d.ts +1 -6
  102. package/build/components/molecules/shareDrawer/index.styled.d.ts +1 -6
  103. package/build/components/molecules/starsRatingBox/index.styled.d.ts +4 -17
  104. package/build/components/molecules/statisticCard/index.styled.d.ts +4 -18
  105. package/build/components/molecules/surveyQuestionCard/index.styled.d.ts +4 -22
  106. package/build/components/molecules/tabs/index.d.ts +1 -1
  107. package/build/components/molecules/tabs/index.styled.d.ts +4 -18
  108. package/build/components/molecules/thrForm/index.styled.d.ts +6 -47
  109. package/build/components/molecules/toolBannerCard/index.styled.d.ts +17 -64
  110. package/build/components/molecules/weightGainForm/index.styled.d.ts +20 -82
  111. package/build/components/onboarding/dynamicForm/index.styled.d.ts +1 -5
  112. package/build/components/onboarding/onboardingForm/index.styled.d.ts +1 -7
  113. package/build/components/onboarding/onboardingModal/index.styled.d.ts +7 -29
  114. package/build/components/onboarding/otpForm/index.styled.d.ts +1 -7
  115. package/build/components/onboarding/personalInfoForm/index.styled.d.ts +1 -5
  116. package/build/components/organisms/heroBannerHealthTool/index.styled.d.ts +10 -41
  117. package/build/components/organisms/navigationLogoutPopup/index.styled.d.ts +2 -10
  118. package/build/components/organisms/navigationProfileButton/index.styled.d.ts +7 -30
  119. package/build/components/organisms/navigationV2/components/molecules/Categories/index.styled.d.ts +7 -30
  120. package/build/components/organisms/navigationV2/components/molecules/Spotlights/index.styled.d.ts +3 -14
  121. package/build/components/organisms/navigationV2/components/molecules/menuCareList/Item/index.styled.d.ts +8 -34
  122. package/build/components/organisms/navigationV2/components/molecules/menuCareList/index.styled.d.ts +2 -10
  123. package/build/components/organisms/navigationV2/components/molecules/menuCategoriesList/Item/index.styled.d.ts +3 -14
  124. package/build/components/organisms/navigationV2/components/molecules/menuCategoriesList/index.styled.d.ts +3 -13
  125. package/build/components/organisms/navigationV2/components/molecules/menuCommunitiesList/Item/index.styled.d.ts +11 -46
  126. package/build/components/organisms/navigationV2/components/molecules/menuCommunitiesList/index.styled.d.ts +3 -14
  127. package/build/components/organisms/navigationV2/components/molecules/menuHealthToolsList/Item/index.styled.d.ts +6 -26
  128. package/build/components/organisms/navigationV2/components/molecules/menuHealthToolsList/ItemMarryBaby/index.styled.d.ts +8 -34
  129. package/build/components/organisms/navigationV2/components/molecules/menuHealthToolsList/index.styled.d.ts +2 -9
  130. package/build/components/organisms/navigationV2/components/molecules/menuServiceList/index.styled.d.ts +23 -82
  131. package/build/components/organisms/navigationV2/components/molecules/navigationBar/index.styled.d.ts +8 -34
  132. package/build/components/organisms/navigationV2/components/molecules/spotlightNoData/index.styled.d.ts +5 -22
  133. package/build/components/organisms/navigationV2/index.styled.d.ts +3 -13
  134. package/build/components/pregnancyWeightGain/pregnancyWeightGainChart/components/index.styled.d.ts +3 -13
  135. package/build/components/pregnancyWeightGain/pregnancyWeightGainChart/index.styled.d.ts +1 -5
  136. package/build/components/ui/onboarding/index.styled.d.ts +3 -11
  137. package/build/components/vaccination/vaccineCard/index.styled.d.ts +4 -17
  138. package/build/components/vaccination/vaccineImmunization/index.styled.d.ts +2 -9
  139. package/build/components/vaccination/vaccineRecordsByAgeGroup/index.styled.d.ts +5 -21
  140. package/build/components/vaccination/vaccineTimelineBanner/index.styled.d.ts +1 -5
  141. package/build/components.js +1 -1
  142. package/build/constants.js +1 -1
  143. package/build/{core-55389834.js → core-86d1d4b7.js} +1 -1
  144. package/build/{dataTransform-70b7b942.js → dataTransform-0920fd46.js} +1 -1
  145. package/build/ecom.js +1 -1
  146. package/build/esm/babyGrowth.js +2 -2
  147. package/build/esm/cache.js +1 -1
  148. package/build/esm/care.js +1 -1
  149. package/build/esm/components.js +1 -1
  150. package/build/esm/constants.js +1 -1
  151. package/build/esm/{core-67f774bb.js → core-0382a275.js} +1 -1
  152. package/build/esm/{dataTransform-afe529c5.js → dataTransform-626806af.js} +1 -1
  153. package/build/esm/ecom.js +1 -1
  154. package/build/esm/footer.js +1 -1
  155. package/build/esm/gAssets.js +1 -1
  156. package/build/esm/{getDynamicHealthTool-3255be64.js → getDynamicHealthTool-287582f9.js} +1 -1
  157. package/build/esm/{getSocialList-1c143418.js → getSocialList-bb91bdcd.js} +1 -1
  158. package/build/esm/hooks.js +1 -1
  159. package/build/esm/i18n.js +1 -1
  160. package/build/esm/{index-566d4e11.js → index-086da1d7.js} +1 -1
  161. package/build/esm/index-1daa59fe.js +1 -0
  162. package/build/esm/{index-d29a2bc2.js → index-1e7cb8f5.js} +1 -1
  163. package/build/esm/{index-9b489657.js → index-2255ace2.js} +1 -1
  164. package/build/esm/{index-7e1f6511.js → index-37f23c7c.js} +1 -1
  165. package/build/esm/{index-14899cba.js → index-3ce79169.js} +25 -25
  166. package/build/esm/{index-bc8279aa.js → index-421eca30.js} +1 -1
  167. package/build/esm/index-4618c8b1.js +1 -0
  168. package/build/esm/{index-9a5ceed1.js → index-475d9e47.js} +1 -1
  169. package/build/esm/{index-51c34386.js → index-4f1c858f.js} +1 -1
  170. package/build/esm/{index-89514194.js → index-523fd7b5.js} +1 -1
  171. package/build/esm/index-5b1f48f6.js +1 -0
  172. package/build/esm/index-75654787.js +1 -0
  173. package/build/esm/{index-a7de3367.js → index-850a6e81.js} +1 -1
  174. package/build/esm/{index-23461c13.js → index-9828acfd.js} +1 -1
  175. package/build/esm/index-9aa9ea8a.js +1 -0
  176. package/build/esm/index-a60e8753.js +1 -0
  177. package/build/esm/{index-88b7628a.js → index-af9b0189.js} +1 -1
  178. package/build/esm/{index-5311efac.js → index-ba091eef.js} +1 -1
  179. package/build/esm/{index-cf3b2063.js → index-d39586cf.js} +4 -4
  180. package/build/esm/{index-fa88e322.js → index-da768b6d.js} +10 -10
  181. package/build/esm/{index-7603f5c8.js → index-f50c2ed5.js} +1 -1
  182. package/build/esm/{index-a78d9888.js → index-fb690d48.js} +6 -6
  183. package/build/esm/index.js +1 -1
  184. package/build/esm/{index.styled-f22d6816.js → index.styled-0d946728.js} +3 -3
  185. package/build/esm/{index.styled-14d557d6.js → index.styled-2eba1dae.js} +201 -207
  186. package/build/esm/{index.styled-e63583aa.js → index.styled-557adcc4.js} +62 -77
  187. package/build/esm/{index.styled-c52c24ef.js → index.styled-65576081.js} +162 -168
  188. package/build/esm/index.styled-c95d156f.js +50 -0
  189. package/build/esm/lead.js +1 -1
  190. package/build/esm/mantine.js +1 -1
  191. package/build/esm/misc.js +1 -1
  192. package/build/esm/navigation.js +1 -1
  193. package/build/esm/onboarding.js +1 -1
  194. package/build/esm/pwg.js +3 -3
  195. package/build/esm/{routing-512ce598.js → routing-f682d1f9.js} +1 -1
  196. package/build/esm/{screenSizeContext-ca566cf0.js → screenSizeContext-49f083d0.js} +6 -6
  197. package/build/esm/together.js +1 -1
  198. package/build/esm/{translationsProvider-9da1f72d.js → translationsProvider-fd495f30.js} +1 -1
  199. package/build/esm/{types-fc4a2521.js → types-732ba19a.js} +70 -70
  200. package/build/esm/{types-cc5fdb3d.js → types-cf2025f5.js} +85 -84
  201. package/build/esm/types.js +1 -1
  202. package/build/esm/{useHealthToolCache-7c3e370a.js → useHealthToolCache-363b2f57.js} +1 -1
  203. package/build/esm/{useRafState-aaa521f7.js → useRafState-03366366.js} +1 -1
  204. package/build/esm/{useScreenSize-5a05b01d.js → useScreenSize-0364123f.js} +1 -1
  205. package/build/esm/useTranslations-adbba887.js +1 -0
  206. package/build/esm/{utils-66624bdf.js → utils-6749cb05.js} +13 -13
  207. package/build/esm/vaccination.js +41 -41
  208. package/build/footer.js +1 -1
  209. package/build/gAssets.js +1 -1
  210. package/build/{getDynamicHealthTool-4a8d8ee8.js → getDynamicHealthTool-ec53eb68.js} +1 -1
  211. package/build/{getSocialList-f416948f.js → getSocialList-401ea10b.js} +1 -1
  212. package/build/hooks.js +1 -1
  213. package/build/i18n.js +1 -1
  214. package/build/{index-7870dbf2.js → index-015a02ec.js} +4 -4
  215. package/build/{index-186ea291.js → index-02703eb3.js} +1 -1
  216. package/build/{index-beb9b379.js → index-04ef1e33.js} +1 -1
  217. package/build/index-0a062890.js +1 -0
  218. package/build/{index-c4aed41e.js → index-1027c9db.js} +1 -1
  219. package/build/{index-a5c04582.js → index-3498a47f.js} +1 -1
  220. package/build/index-45f7b954.js +1 -0
  221. package/build/{index-03c84548.js → index-49b825aa.js} +1 -1
  222. package/build/index-6111f907.js +1 -0
  223. package/build/{index-21a94271.js → index-6a3b4fdc.js} +1 -1
  224. package/build/{index-d1cbce13.js → index-88b6d502.js} +1 -1
  225. package/build/{index-90f3fe11.js → index-8c5fc7a1.js} +23 -23
  226. package/build/index-8cd6ee80.js +115 -0
  227. package/build/{index-aeb07a92.js → index-93da2295.js} +1 -1
  228. package/build/{index-19bc87f2.js → index-a1c04c08.js} +1 -1
  229. package/build/{index-2b99cb56.js → index-a68b357b.js} +1 -1
  230. package/build/{index-d8e712d6.js → index-aaa97035.js} +1 -1
  231. package/build/{index-c78fad9d.js → index-b57648f2.js} +1 -1
  232. package/build/{index-6df60e3a.js → index-d8585bf7.js} +1 -1
  233. package/build/{index-c365b655.js → index-db9780bb.js} +1 -1
  234. package/build/{index-cfb03666.js → index-e39e1328.js} +1 -1
  235. package/build/{index-47e524cf.js → index-f0b5a2e9.js} +1 -1
  236. package/build/{index-6d03f207.js → index-fe395b6a.js} +1 -1
  237. package/build/index.js +1 -1
  238. package/build/{index.styled-b683af18.js → index.styled-0654a893.js} +1 -1
  239. package/build/index.styled-0890f205.js +50 -0
  240. package/build/{index.styled-2b48824e.js → index.styled-10f91006.js} +95 -101
  241. package/build/{index.styled-013215b0.js → index.styled-24eda00b.js} +216 -222
  242. package/build/index.styled-81b3744a.js +1249 -0
  243. package/build/lead.js +1 -1
  244. package/build/mantine.js +1 -1
  245. package/build/misc/animation.d.ts +9 -9
  246. package/build/misc/theme.d.ts +1 -1
  247. package/build/misc.js +1 -1
  248. package/build/navigation.js +1 -1
  249. package/build/onboarding.js +1 -1
  250. package/build/pwg.js +2 -2
  251. package/build/{routing-01f2972b.js → routing-0366e86d.js} +1 -1
  252. package/build/{screenSizeContext-7024419e.js → screenSizeContext-3871959e.js} +10 -10
  253. package/build/together/components/atoms/cardLink/index.styled.d.ts +2 -6
  254. package/build/together/components/atoms/labelSortPin/index.styled.d.ts +1 -6
  255. package/build/together/components/atoms/loading/index.styled.d.ts +2 -10
  256. package/build/together/components/atoms/notificationBar/index.styled.d.ts +5 -18
  257. package/build/together/components/atoms/sensitiveMask/index.styled.d.ts +3 -13
  258. package/build/together/components/atoms/tagTopic/index.styled.d.ts +1 -5
  259. package/build/together/components/atoms/userAvatar/index.styled.d.ts +2 -6
  260. package/build/together/components/molecules/createNewPostContent/index.styled.d.ts +3 -14
  261. package/build/together/components/molecules/createPostDescription/index.styled.d.ts +2 -10
  262. package/build/together/components/molecules/createPostTitle/index.styled.d.ts +1 -6
  263. package/build/together/components/molecules/inputCommentBar/index.styled.d.ts +1 -6
  264. package/build/together/components/molecules/popupDanger/index.styled.d.ts +1 -6
  265. package/build/together/components/molecules/popupDoctor/index.styled.d.ts +8 -34
  266. package/build/together/components/molecules/popupExpert/index.styled.d.ts +7 -30
  267. package/build/together/components/molecules/popupFrame/index.styled.d.ts +3 -10
  268. package/build/together/components/molecules/popupFrame/popupShare.d.ts +1 -5
  269. package/build/together/components/molecules/popupHospital/index.styled.d.ts +7 -30
  270. package/build/together/components/molecules/postContent/index.styled.d.ts +2 -6
  271. package/build/together/components/molecules/postImagePreview/index.styled.d.ts +3 -11
  272. package/build/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.styled.d.ts +5 -21
  273. package/build/together/components/molecules/shareBox/index.styled.d.ts +2 -9
  274. package/build/together/components/molecules/socialLinkPreview/index.styled.d.ts +2 -6
  275. package/build/together/components/molecules/submitReportForm/index.d.ts +1 -1
  276. package/build/together/components/molecules/submitReportForm/index.styled.d.ts +1 -5
  277. package/build/together/components/molecules/topicSelectList/index.styled.d.ts +1 -6
  278. package/build/together/components/organisms/cardPost/index.styled.d.ts +1 -6
  279. package/build/together/components/organisms/cardReply/index.styled.d.ts +2 -13
  280. package/build/together/components/organisms/popoverMenu/index.styled.d.ts +2 -10
  281. package/build/together/components/organisms/sourceList/index.styled.d.ts +5 -21
  282. package/build/together/components/organisms/sourceList/recommentCategories/index.styled.d.ts +6 -26
  283. package/build/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +2 -9
  284. package/build/together.js +1 -1
  285. package/build/{translationsProvider-6bd6fd86.js → translationsProvider-c7887f2f.js} +1 -1
  286. package/build/{types-f9b113e4.js → types-86f5ccff.js} +85 -84
  287. package/build/{types-ccf3d3fe.js → types-d8bce503.js} +70 -70
  288. package/build/types.js +1 -1
  289. package/build/useHealthToolCache-d432bccf.js +1 -0
  290. package/build/{useRafState-50cad379.js → useRafState-040f5417.js} +1 -1
  291. package/build/{useScreenSize-64a6a465.js → useScreenSize-22d0b73e.js} +1 -1
  292. package/build/useTranslations-2522e02f.js +1 -0
  293. package/build/{utils-5293923c.js → utils-4f699937.js} +14 -14
  294. package/build/vaccination.js +34 -34
  295. package/package.json +6 -4
  296. package/build/esm/index-0aba009c.js +0 -1
  297. package/build/esm/index-3c7f6ffc.js +0 -1
  298. package/build/esm/index-65ff2e46.js +0 -1
  299. package/build/esm/index-c3e7ac4e.js +0 -1
  300. package/build/esm/index-edf4724e.js +0 -1
  301. package/build/esm/index-ee1505c6.js +0 -1
  302. package/build/esm/index.styled-caa3a9c9.js +0 -50
  303. package/build/esm/useTranslations-8dc2d7f1.js +0 -1
  304. package/build/index-0f3b0cb0.js +0 -1
  305. package/build/index-87604a48.js +0 -115
  306. package/build/index-c7c3220f.js +0 -1
  307. package/build/index-d6eecf53.js +0 -1
  308. package/build/index.styled-4821c538.js +0 -1264
  309. package/build/index.styled-83405234.js +0 -50
  310. package/build/useHealthToolCache-6fcbf0d4.js +0 -1
  311. package/build/useTranslations-dcd5faaf.js +0 -1
  312. /package/build/{BMI_BOYS.percentile.monthly-746896e1.js → BMI_BOYS.percentile.monthly-7cb9f753.js} +0 -0
  313. /package/build/{BMI_BOYS.percentile.weekly-549c1d33.js → BMI_BOYS.percentile.weekly-41c8c9ae.js} +0 -0
  314. /package/build/{BMI_BOYS.percentile.yearly-d50e8a21.js → BMI_BOYS.percentile.yearly-1ecbbce1.js} +0 -0
  315. /package/build/{BMI_BOYS.zscore.monthly-754b03bc.js → BMI_BOYS.zscore.monthly-56a271bb.js} +0 -0
  316. /package/build/{BMI_BOYS.zscore.weekly-19b01c4b.js → BMI_BOYS.zscore.weekly-8e63d86f.js} +0 -0
  317. /package/build/{BMI_BOYS.zscore.yearly-cad5ae00.js → BMI_BOYS.zscore.yearly-5b5f737a.js} +0 -0
  318. /package/build/{BMI_GIRLS.percentile.monthly-96a83d9b.js → BMI_GIRLS.percentile.monthly-3bfc69d9.js} +0 -0
  319. /package/build/{BMI_GIRLS.percentile.weekly-32642a7e.js → BMI_GIRLS.percentile.weekly-eb6a0604.js} +0 -0
  320. /package/build/{BMI_GIRLS.percentile.yearly-5ec13e0d.js → BMI_GIRLS.percentile.yearly-c75708c4.js} +0 -0
  321. /package/build/{BMI_GIRLS.zscore.monthly-2f2da50f.js → BMI_GIRLS.zscore.monthly-1afc2414.js} +0 -0
  322. /package/build/{BMI_GIRLS.zscore.weekly-bd13140b.js → BMI_GIRLS.zscore.weekly-626ba416.js} +0 -0
  323. /package/build/{BMI_GIRLS.zscore.yearly-8d180e01.js → BMI_GIRLS.zscore.yearly-d6ad235e.js} +0 -0
  324. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-d4e262ae.js → HEAD CIRCUM_BOYS.percentile.monthly-92cb6872.js} +0 -0
  325. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c3472d46.js → HEAD CIRCUM_BOYS.percentile.weekly-bcf0cbfe.js} +0 -0
  326. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-a5b8b3d4.js → HEAD CIRCUM_BOYS.percentile.yearly-9435a068.js} +0 -0
  327. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a1294242.js → HEAD CIRCUM_BOYS.zscore.monthly-8ed3082a.js} +0 -0
  328. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-0dfa5861.js → HEAD CIRCUM_BOYS.zscore.weekly-8110c113.js} +0 -0
  329. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-159842e3.js → HEAD CIRCUM_BOYS.zscore.yearly-46de3f08.js} +0 -0
  330. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-60fe6d37.js → HEAD CIRCUM_GIRLS.percentile.monthly-64d6851c.js} +0 -0
  331. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-d7a21c52.js → HEAD CIRCUM_GIRLS.percentile.weekly-79716470.js} +0 -0
  332. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-0cb40c20.js → HEAD CIRCUM_GIRLS.percentile.yearly-3660ac3c.js} +0 -0
  333. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-bd617e3a.js → HEAD CIRCUM_GIRLS.zscore.monthly-5d1f0736.js} +0 -0
  334. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-0c1bacc1.js → HEAD CIRCUM_GIRLS.zscore.weekly-463164d8.js} +0 -0
  335. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-53157746.js → HEAD CIRCUM_GIRLS.zscore.yearly-7cc8aa84.js} +0 -0
  336. /package/build/{HEIGHT_BOYS.percentile.monthly-79277c17.js → HEIGHT_BOYS.percentile.monthly-7cd1be5e.js} +0 -0
  337. /package/build/{HEIGHT_BOYS.percentile.weekly-919f0291.js → HEIGHT_BOYS.percentile.weekly-62b1b529.js} +0 -0
  338. /package/build/{HEIGHT_BOYS.percentile.yearly-636e7eba.js → HEIGHT_BOYS.percentile.yearly-260e90cc.js} +0 -0
  339. /package/build/{HEIGHT_BOYS.zscore.monthly-696ef787.js → HEIGHT_BOYS.zscore.monthly-27b54ac8.js} +0 -0
  340. /package/build/{HEIGHT_BOYS.zscore.weekly-ff1bc0e5.js → HEIGHT_BOYS.zscore.weekly-f6b53273.js} +0 -0
  341. /package/build/{HEIGHT_BOYS.zscore.yearly-e66a6289.js → HEIGHT_BOYS.zscore.yearly-f03057a3.js} +0 -0
  342. /package/build/{HEIGHT_GIRLS.percentile.monthly-89ad6e1d.js → HEIGHT_GIRLS.percentile.monthly-0a569d7c.js} +0 -0
  343. /package/build/{HEIGHT_GIRLS.percentile.weekly-bd91475c.js → HEIGHT_GIRLS.percentile.weekly-54d586e0.js} +0 -0
  344. /package/build/{HEIGHT_GIRLS.percentile.yearly-ceeb123a.js → HEIGHT_GIRLS.percentile.yearly-bb0205c1.js} +0 -0
  345. /package/build/{HEIGHT_GIRLS.zscore.monthly-541ab88d.js → HEIGHT_GIRLS.zscore.monthly-65504081.js} +0 -0
  346. /package/build/{HEIGHT_GIRLS.zscore.weekly-2ce2be45.js → HEIGHT_GIRLS.zscore.weekly-bf6aeb50.js} +0 -0
  347. /package/build/{HEIGHT_GIRLS.zscore.yearly-73cb3fab.js → HEIGHT_GIRLS.zscore.yearly-204dd7a5.js} +0 -0
  348. /package/build/{Onboarding-5cc2a17c.js → Onboarding-58ad00eb.js} +0 -0
  349. /package/build/{Visible-b193472c.js → Visible-53af2df3.js} +0 -0
  350. /package/build/{WEIGHT_BOYS.percentile.monthly-d4743ffb.js → WEIGHT_BOYS.percentile.monthly-a589fba1.js} +0 -0
  351. /package/build/{WEIGHT_BOYS.percentile.weekly-94356178.js → WEIGHT_BOYS.percentile.weekly-e285a14b.js} +0 -0
  352. /package/build/{WEIGHT_BOYS.percentile.yearly-929dea5b.js → WEIGHT_BOYS.percentile.yearly-28abf604.js} +0 -0
  353. /package/build/{WEIGHT_BOYS.zscore.monthly-9a933ddc.js → WEIGHT_BOYS.zscore.monthly-584bc78f.js} +0 -0
  354. /package/build/{WEIGHT_BOYS.zscore.weekly-2952a5e8.js → WEIGHT_BOYS.zscore.weekly-53cf64c9.js} +0 -0
  355. /package/build/{WEIGHT_BOYS.zscore.yearly-24e14384.js → WEIGHT_BOYS.zscore.yearly-756cc8d6.js} +0 -0
  356. /package/build/{WEIGHT_GIRLS.percentile.monthly-780275fd.js → WEIGHT_GIRLS.percentile.monthly-48bbc291.js} +0 -0
  357. /package/build/{WEIGHT_GIRLS.percentile.weekly-cfce9dd3.js → WEIGHT_GIRLS.percentile.weekly-3c198de1.js} +0 -0
  358. /package/build/{WEIGHT_GIRLS.percentile.yearly-0246a7d0.js → WEIGHT_GIRLS.percentile.yearly-6b611efa.js} +0 -0
  359. /package/build/{WEIGHT_GIRLS.zscore.monthly-140a87f3.js → WEIGHT_GIRLS.zscore.monthly-21c2fe41.js} +0 -0
  360. /package/build/{WEIGHT_GIRLS.zscore.weekly-7f012807.js → WEIGHT_GIRLS.zscore.weekly-699784c8.js} +0 -0
  361. /package/build/{WEIGHT_GIRLS.zscore.yearly-862904f4.js → WEIGHT_GIRLS.zscore.yearly-2a8368ee.js} +0 -0
  362. /package/build/{constants-df00bbe8.js → constants-5fae608d.js} +0 -0
  363. /package/build/{cookieHelper-ec53b348.js → cookieHelper-6bf570a6.js} +0 -0
  364. /package/build/{dataTransform-399500cc.js → dataTransform-355fcd93.js} +0 -0
  365. /package/build/esm/{BMI_BOYS.percentile.monthly-f58464e0.js → BMI_BOYS.percentile.monthly-232e5b13.js} +0 -0
  366. /package/build/esm/{BMI_BOYS.percentile.weekly-564c74d5.js → BMI_BOYS.percentile.weekly-ea880ece.js} +0 -0
  367. /package/build/esm/{BMI_BOYS.percentile.yearly-e4724afd.js → BMI_BOYS.percentile.yearly-3c94dee9.js} +0 -0
  368. /package/build/esm/{BMI_BOYS.zscore.monthly-3b552a68.js → BMI_BOYS.zscore.monthly-c58ec198.js} +0 -0
  369. /package/build/esm/{BMI_BOYS.zscore.weekly-50b183cf.js → BMI_BOYS.zscore.weekly-9374cdd6.js} +0 -0
  370. /package/build/esm/{BMI_BOYS.zscore.yearly-bda89b3a.js → BMI_BOYS.zscore.yearly-c9e37597.js} +0 -0
  371. /package/build/esm/{BMI_GIRLS.percentile.monthly-05a7267c.js → BMI_GIRLS.percentile.monthly-3186b214.js} +0 -0
  372. /package/build/esm/{BMI_GIRLS.percentile.weekly-90ac2702.js → BMI_GIRLS.percentile.weekly-838da920.js} +0 -0
  373. /package/build/esm/{BMI_GIRLS.percentile.yearly-a5b378d8.js → BMI_GIRLS.percentile.yearly-e74ec608.js} +0 -0
  374. /package/build/esm/{BMI_GIRLS.zscore.monthly-a4aa4e80.js → BMI_GIRLS.zscore.monthly-99a32139.js} +0 -0
  375. /package/build/esm/{BMI_GIRLS.zscore.weekly-facdb9e2.js → BMI_GIRLS.zscore.weekly-c85a6cb8.js} +0 -0
  376. /package/build/esm/{BMI_GIRLS.zscore.yearly-fe8fa330.js → BMI_GIRLS.zscore.yearly-8d66e4b7.js} +0 -0
  377. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-ba0f562a.js → HEAD CIRCUM_BOYS.percentile.monthly-6cf7f3fc.js} +0 -0
  378. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-27007b44.js → HEAD CIRCUM_BOYS.percentile.weekly-72d3279c.js} +0 -0
  379. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9abba796.js → HEAD CIRCUM_BOYS.percentile.yearly-c94b8b15.js} +0 -0
  380. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-0ef54d5f.js → HEAD CIRCUM_BOYS.zscore.monthly-4ae9d853.js} +0 -0
  381. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c5ef0930.js → HEAD CIRCUM_BOYS.zscore.weekly-5c451325.js} +0 -0
  382. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-7f106b4f.js → HEAD CIRCUM_BOYS.zscore.yearly-493c5189.js} +0 -0
  383. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-19305934.js → HEAD CIRCUM_GIRLS.percentile.monthly-0d81fc58.js} +0 -0
  384. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e7f0b580.js → HEAD CIRCUM_GIRLS.percentile.weekly-29b91eaa.js} +0 -0
  385. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-fe0cf7c6.js → HEAD CIRCUM_GIRLS.percentile.yearly-a3c781f1.js} +0 -0
  386. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-d5a1b65a.js → HEAD CIRCUM_GIRLS.zscore.monthly-d6647713.js} +0 -0
  387. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-791e9a80.js → HEAD CIRCUM_GIRLS.zscore.weekly-406ec38f.js} +0 -0
  388. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c8a3a756.js → HEAD CIRCUM_GIRLS.zscore.yearly-0c78aef1.js} +0 -0
  389. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-4c9f9b31.js → HEIGHT_BOYS.percentile.monthly-84a80839.js} +0 -0
  390. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-cc35c6c6.js → HEIGHT_BOYS.percentile.weekly-cf815f22.js} +0 -0
  391. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-4b490d6f.js → HEIGHT_BOYS.percentile.yearly-a02e2825.js} +0 -0
  392. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-51d299ac.js → HEIGHT_BOYS.zscore.monthly-9f89b705.js} +0 -0
  393. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-dec5727a.js → HEIGHT_BOYS.zscore.weekly-0e4ffc16.js} +0 -0
  394. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-2000cee9.js → HEIGHT_BOYS.zscore.yearly-d0edf0bf.js} +0 -0
  395. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e8cf171b.js → HEIGHT_GIRLS.percentile.monthly-8e0f943b.js} +0 -0
  396. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5521e5ce.js → HEIGHT_GIRLS.percentile.weekly-48e6e355.js} +0 -0
  397. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-c918be57.js → HEIGHT_GIRLS.percentile.yearly-25ec1154.js} +0 -0
  398. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-dae60fc0.js → HEIGHT_GIRLS.zscore.monthly-adf01e2c.js} +0 -0
  399. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-354de0e9.js → HEIGHT_GIRLS.zscore.weekly-3e010f50.js} +0 -0
  400. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-50917d4e.js → HEIGHT_GIRLS.zscore.yearly-5cab6436.js} +0 -0
  401. /package/build/esm/{Onboarding-5d4e7e9a.js → Onboarding-6b46846b.js} +0 -0
  402. /package/build/esm/{Visible-e6dd1326.js → Visible-496e6c00.js} +0 -0
  403. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-aa1db45a.js → WEIGHT_BOYS.percentile.monthly-4b0a0c5d.js} +0 -0
  404. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-30327865.js → WEIGHT_BOYS.percentile.weekly-b73fa457.js} +0 -0
  405. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d672a7c3.js → WEIGHT_BOYS.percentile.yearly-af56dea8.js} +0 -0
  406. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ddee6555.js → WEIGHT_BOYS.zscore.monthly-0266b046.js} +0 -0
  407. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-d21e1269.js → WEIGHT_BOYS.zscore.weekly-d4945609.js} +0 -0
  408. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-60b3230b.js → WEIGHT_BOYS.zscore.yearly-6257f07f.js} +0 -0
  409. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-cb60b265.js → WEIGHT_GIRLS.percentile.monthly-261f3ef4.js} +0 -0
  410. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-fedcd4ee.js → WEIGHT_GIRLS.percentile.weekly-b5a19344.js} +0 -0
  411. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8f6f7c36.js → WEIGHT_GIRLS.percentile.yearly-1c159187.js} +0 -0
  412. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-77c625da.js → WEIGHT_GIRLS.zscore.monthly-164f4a7d.js} +0 -0
  413. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-fa03edd8.js → WEIGHT_GIRLS.zscore.weekly-7c3d5d08.js} +0 -0
  414. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-cf2103f8.js → WEIGHT_GIRLS.zscore.yearly-3c193331.js} +0 -0
  415. /package/build/esm/{constants-4cb2f84a.js → constants-83cc4bf6.js} +0 -0
  416. /package/build/esm/{cookieHelper-4e6ba518.js → cookieHelper-aa50c7f9.js} +0 -0
  417. /package/build/esm/{dataTransform-82943ba5.js → dataTransform-42f94530.js} +0 -0
  418. /package/build/esm/{index-35d849db.js → index-5dded4fd.js} +0 -0
  419. /package/build/esm/{index-336463f4.js → index-e903b126.js} +0 -0
  420. /package/build/esm/{isProduction-c71511f1.js → isProduction-1d3cb81e.js} +0 -0
  421. /package/build/esm/{localizeNumberFormat-0b291ceb.js → localizeNumberFormat-ca1e5259.js} +0 -0
  422. /package/build/esm/{normalizeLink-2cfad1a9.js → normalizeLink-33964f87.js} +0 -0
  423. /package/build/esm/{theme-b3528b2a.js → theme-7a380626.js} +0 -0
  424. /package/build/esm/{translationsContext-b11db32c.js → translationsContext-2ec412e6.js} +0 -0
  425. /package/build/esm/{tslib.es6-23b16f13.js → tslib.es6-83ef7bb8.js} +0 -0
  426. /package/build/esm/{types-96c6614a.js → types-889ad8c0.js} +0 -0
  427. /package/build/esm/{useIsInit-9d185760.js → useIsInit-ee8afdfb.js} +0 -0
  428. /package/build/esm/{useOutsideClick-29382783.js → useOutsideClick-8c694b17.js} +0 -0
  429. /package/build/esm/{useScrollbarSize-0042aed8.js → useScrollbarSize-315e8566.js} +0 -0
  430. /package/build/esm/{useUniqueId-694cc229.js → useUniqueId-290147ee.js} +0 -0
  431. /package/build/esm/{utils-c64cd3c4.js → utils-eb66ac60.js} +0 -0
  432. /package/build/{index-7b41fe1c.js → index-26e03973.js} +0 -0
  433. /package/build/{index-7847235b.js → index-6bf9278b.js} +0 -0
  434. /package/build/{isProduction-0fdd7dfe.js → isProduction-47032811.js} +0 -0
  435. /package/build/{localizeNumberFormat-669c1994.js → localizeNumberFormat-a54bdc32.js} +0 -0
  436. /package/build/{normalizeLink-c6de1786.js → normalizeLink-2306c995.js} +0 -0
  437. /package/build/{theme-54f4dde4.js → theme-0dfa18d3.js} +0 -0
  438. /package/build/{translationsContext-06f43813.js → translationsContext-a6a567c2.js} +0 -0
  439. /package/build/{tslib.es6-d2b93cc7.js → tslib.es6-08c42772.js} +0 -0
  440. /package/build/{types-0592baab.js → types-a56d559e.js} +0 -0
  441. /package/build/{useIsInit-2036ba02.js → useIsInit-2e42ae3d.js} +0 -0
  442. /package/build/{useOutsideClick-8d51030b.js → useOutsideClick-2a78a81a.js} +0 -0
  443. /package/build/{useScrollbarSize-a5835e05.js → useScrollbarSize-680d0ea0.js} +0 -0
  444. /package/build/{useUniqueId-bf27367e.js → useUniqueId-4132773f.js} +0 -0
  445. /package/build/{utils-d555597e.js → utils-05f7fda9.js} +0 -0
package/build/ecom.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme-54f4dde4.js");require("./index-cfb03666.js");var o=require("./isProduction-0fdd7dfe.js"),t=require("./types-0592baab.js");require("./Onboarding-5cc2a17c.js");var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",u=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,c=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},m=a?"http://localhost:3001":o.isProduction?`https://${d[s]}`:`https://discover.${d[s]}`,p=o.isProduction?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:u,GOOGLE_CLIENT_ID:c,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.theme.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(c=null===(u=null==e?void 0:e.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(c=(u=e.sub_banners).map)||void 0===c?void 0:c.call(u,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(u=e.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=e.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});exports.Types=t.types,exports.ApiTypes=l,exports.Constants=T,exports.DataFormatter=A,exports.DataTypes=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme-0dfa18d3.js");require("./index-e39e1328.js");var o=require("./isProduction-47032811.js"),t=require("./types-a56d559e.js");require("./Onboarding-58ad00eb.js");var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",u=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,c=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},m=a?"http://localhost:3001":o.isProduction?`https://${d[s]}`:`https://discover.${d[s]}`,p=o.isProduction?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:u,GOOGLE_CLIENT_ID:c,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.theme.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(c=null===(u=null==e?void 0:e.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(c=(u=e.sub_banners).map)||void 0===c?void 0:c.call(u,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(u=e.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=e.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});exports.Types=t.types,exports.ApiTypes=l,exports.Constants=T,exports.DataFormatter=A,exports.DataTypes=i;
@@ -1,4 +1,4 @@
1
- import{D as e}from"./index-a78d9888.js";export{B as BabyGrowthGender}from"./index-a78d9888.js";import t,{useMemo as r,useRef as l,useState as o,useEffect as a}from"react";import{L as i,G as n,B as c,a as s}from"./Onboarding-5d4e7e9a.js";import{t as d}from"./theme-b3528b2a.js";import{T as m}from"./index-89514194.js";import C from"@emotion/styled";import{B as p}from"./index-51c34386.js";import{I as h}from"./index-23461c13.js";import{M as y}from"./index-d29a2bc2.js";import{h as g}from"./screenSizeContext-ca566cf0.js";import f from"dayjs";import{u}from"./useTranslations-8dc2d7f1.js";import"lodash/debounce";import"./isProduction-c71511f1.js";import"./index-5311efac.js";import{a as b,l as E}from"./localizeNumberFormat-0b291ceb.js";import{H as w}from"./index-bc8279aa.js";import{s as x}from"./utils-c64cd3c4.js";import{M as v}from"./index.styled-e63583aa.js";import"./gAssets.js";import"@mantine/core";import"./index-14899cba.js";import"./index-cf3b2063.js";import{C as L}from"./index-336463f4.js";import"./index-fa88e322.js";import"@emotion/react";import"./index-7e1f6511.js";import"@mantine/hooks";import{a as M}from"./useOutsideClick-29382783.js";import{_ as k,a as H}from"./tslib.es6-23b16f13.js";import{M as I,N as j}from"./index-3c7f6ffc.js";import{ResponsiveContainer as S,LineChart as G,CartesianGrid as R,Tooltip as z,XAxis as Z,YAxis as _,Line as V,ReferenceDot as N}from"recharts";import T from"lodash/chunk";import"./useUniqueId-694cc229.js";import"./index.styled-f22d6816.js";import"lodash/throttle";import"./translationsContext-b11db32c.js";import"string-format";import"@mantine/dates";import"@mantine/carousel";import"./index-9b489657.js";import"./useScrollbarSize-0042aed8.js";import"react-dom";const A=C.div`
1
+ import{D as e}from"./index-fb690d48.js";export{B as BabyGrowthGender}from"./index-fb690d48.js";import t,{useMemo as r,useRef as l,useState as o,useEffect as a}from"react";import{L as i,G as n,B as c,a as s}from"./Onboarding-6b46846b.js";import{t as d}from"./theme-7a380626.js";import{T as m}from"./index-523fd7b5.js";import C from"styled-components";import{B as p}from"./index-4f1c858f.js";import{I as h}from"./index-9828acfd.js";import{M as y}from"./index-1e7cb8f5.js";import{h as g}from"./screenSizeContext-49f083d0.js";import f from"dayjs";import{u}from"./useTranslations-adbba887.js";import"lodash/debounce";import"./isProduction-1d3cb81e.js";import"./index-ba091eef.js";import{a as b,l as E}from"./localizeNumberFormat-ca1e5259.js";import{H as w}from"./index-421eca30.js";import{s as x}from"./utils-eb66ac60.js";import{M as v}from"./index.styled-557adcc4.js";import"./gAssets.js";import"@mantine/core";import"./index-3ce79169.js";import"./index-d39586cf.js";import{C as L}from"./index-e903b126.js";import"./index-da768b6d.js";import"./index-37f23c7c.js";import"@mantine/hooks";import{a as M}from"./useOutsideClick-8c694b17.js";import{_ as k,a as H}from"./tslib.es6-83ef7bb8.js";import{M as I,N as j}from"./index-1daa59fe.js";import{ResponsiveContainer as S,LineChart as G,CartesianGrid as R,Tooltip as z,XAxis as Z,YAxis as _,Line as V,ReferenceDot as N}from"recharts";import T from"lodash/chunk";import"./useUniqueId-290147ee.js";import"./index.styled-0d946728.js";import"lodash/throttle";import"./translationsContext-2ec412e6.js";import"string-format";import"@mantine/dates";import"@mantine/carousel";import"./index-2255ace2.js";import"./useScrollbarSize-315e8566.js";import"react-dom";const A=C.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  gap: 16px;
@@ -272,7 +272,7 @@ import{D as e}from"./index-a78d9888.js";export{B as BabyGrowthGender}from"./inde
272
272
  gap: 16px;
273
273
  margin-block: 16px;
274
274
  }
275
- `,de=e=>{var r,l,{babyProfiles:a,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:C,open:h,isMobile:g,isMyProfile:f=!1,buttonGroup:b,newBabyValue:E,onNewBabyValueChange:w,siteType:x}=e,v=k(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType"]);const L=e=>f?t.createElement(t.Fragment,null,t.createElement(p,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},H("babyGrowth.drawer.createBaby")),t.createElement(p,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),f?null==C||C(M):null==s||s(M),n()}},H(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):t.createElement(p,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(M),null==e||e(),n()}},H("chooseBaby.button")),[M,B]=o(String(i)||String(null===(r=a[0])||void 0===r?void 0:r.id)),{t:H}=u();return g?t.createElement(ce,Object.assign({title:"Baby profiles",onClose:n,open:h,placement:"bottom"},v),(({internalClose:e})=>{var r;return t.createElement("div",{className:"add-profile-container"},t.createElement("div",{className:"profile-container"},null===(r=a||[])||void 0===r?void 0:r.map((e=>t.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:M===String(e.id),onChange:B}))),!f&&t.createElement(j,{siteType:x,value:E,onInputChange:w,isActive:"new"===M,onChange:B})),t.createElement("div",{className:"button-group"},b||L(e)))})):t.createElement(se,{type:"confirm",isOpen:h,onClose:n,siteType:x},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},"marryBaby"===x?t.createElement(y,{type:"subtitle-1",color:d.mbColors.dark},H("chooseBaby.title")):t.createElement(m,{size:"s2",type:"semiBold"},H("chooseBaby.title")),t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},t.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),t.createElement("div",{className:"profile-container"},null===(l=a||[])||void 0===l?void 0:l.map((e=>t.createElement(Q,{key:e.id,profile:e,isActive:M===String(e.id),onChange:B,siteType:x}))),!f&&t.createElement(j,{value:E,onInputChange:w,isActive:"new"===M,onChange:B,siteType:x})),t.createElement("div",{className:"button-group"},b||L()))},me={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-30327865.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-aa1db45a.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-d672a7c3.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-cc35c6c6.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-4c9f9b31.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-4b490d6f.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-27007b44.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-ba0f562a.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-9abba796.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-564c74d5.js"),[s.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-f58464e0.js"),[s.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-e4724afd.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-fedcd4ee.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-cb60b265.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-8f6f7c36.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-5521e5ce.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-e8cf171b.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-c918be57.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-e7f0b580.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-19305934.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-fe0cf7c6.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-90ac2702.js"),[s.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-05a7267c.js"),[s.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-a5b378d8.js")}}},Ce={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-d21e1269.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-ddee6555.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-60b3230b.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-dec5727a.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-51d299ac.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-2000cee9.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-c5ef0930.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-0ef54d5f.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-7f106b4f.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-50b183cf.js"),[s.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-3b552a68.js"),[s.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-bda89b3a.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-fa03edd8.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-77c625da.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-cf2103f8.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-354de0e9.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-dae60fc0.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-50917d4e.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-791e9a80.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-d5a1b65a.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-c8a3a756.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-facdb9e2.js"),[s.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-a4aa4e80.js"),[s.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-fe8fa330.js")}}},pe=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},he=(e,t,r,l)=>l===i.Indonesia?Ce[e][t][r]():me[e][t][r](),ye=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ge=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),fe=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ue=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},be=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Ee=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",d.colors.primary50),m.setAttribute("fill",d.colors.primary50),m.setAttribute("x",a),m.setAttribute("y",i),m.setAttribute("height",n),m.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(m)}else t.appendChild(r[e]);console.log(t)}},we=C.div`
275
+ `,de=e=>{var r,l,{babyProfiles:a,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:C,open:h,isMobile:g,isMyProfile:f=!1,buttonGroup:b,newBabyValue:E,onNewBabyValueChange:w,siteType:x}=e,v=k(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType"]);const L=e=>f?t.createElement(t.Fragment,null,t.createElement(p,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},H("babyGrowth.drawer.createBaby")),t.createElement(p,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),f?null==C||C(M):null==s||s(M),n()}},H(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):t.createElement(p,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(M),null==e||e(),n()}},H("chooseBaby.button")),[M,B]=o(String(i)||String(null===(r=a[0])||void 0===r?void 0:r.id)),{t:H}=u();return g?t.createElement(ce,Object.assign({title:"Baby profiles",onClose:n,open:h,placement:"bottom"},v),(({internalClose:e})=>{var r;return t.createElement("div",{className:"add-profile-container"},t.createElement("div",{className:"profile-container"},null===(r=a||[])||void 0===r?void 0:r.map((e=>t.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:M===String(e.id),onChange:B}))),!f&&t.createElement(j,{siteType:x,value:E,onInputChange:w,isActive:"new"===M,onChange:B})),t.createElement("div",{className:"button-group"},b||L(e)))})):t.createElement(se,{type:"confirm",isOpen:h,onClose:n,siteType:x},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},"marryBaby"===x?t.createElement(y,{type:"subtitle-1",color:d.mbColors.dark},H("chooseBaby.title")):t.createElement(m,{size:"s2",type:"semiBold"},H("chooseBaby.title")),t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},t.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),t.createElement("div",{className:"profile-container"},null===(l=a||[])||void 0===l?void 0:l.map((e=>t.createElement(Q,{key:e.id,profile:e,isActive:M===String(e.id),onChange:B,siteType:x}))),!f&&t.createElement(j,{value:E,onInputChange:w,isActive:"new"===M,onChange:B,siteType:x})),t.createElement("div",{className:"button-group"},b||L()))},me={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-b73fa457.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-4b0a0c5d.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-af56dea8.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-cf815f22.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-84a80839.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-a02e2825.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-72d3279c.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-6cf7f3fc.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-c94b8b15.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-ea880ece.js"),[s.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-232e5b13.js"),[s.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-3c94dee9.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-b5a19344.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-261f3ef4.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-1c159187.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-48e6e355.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-8e0f943b.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-25ec1154.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-29b91eaa.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-0d81fc58.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-a3c781f1.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-838da920.js"),[s.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-3186b214.js"),[s.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-e74ec608.js")}}},Ce={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-d4945609.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-0266b046.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-6257f07f.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-0e4ffc16.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-9f89b705.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-d0edf0bf.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-5c451325.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-4ae9d853.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-493c5189.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-9374cdd6.js"),[s.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-c58ec198.js"),[s.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-c9e37597.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-7c3d5d08.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-164f4a7d.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-3c193331.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-3e010f50.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-adf01e2c.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-5cab6436.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-406ec38f.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-d6647713.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-0c78aef1.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-c85a6cb8.js"),[s.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-99a32139.js"),[s.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-8d66e4b7.js")}}},pe=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},he=(e,t,r,l)=>l===i.Indonesia?Ce[e][t][r]():me[e][t][r](),ye=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ge=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),fe=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ue=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},be=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Ee=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",d.colors.primary50),m.setAttribute("fill",d.colors.primary50),m.setAttribute("x",a),m.setAttribute("y",i),m.setAttribute("height",n),m.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(m)}else t.appendChild(r[e]);console.log(t)}},we=C.div`
276
276
  position: relative;
277
277
  .custom-chart-label {
278
278
  display: flex;
@@ -1 +1 @@
1
- export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-67f774bb.js";import"./tslib.es6-23b16f13.js";import"./isProduction-c71511f1.js";
1
+ export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-0382a275.js";import"./tslib.es6-83ef7bb8.js";import"./isProduction-1d3cb81e.js";
package/build/esm/care.js CHANGED
@@ -1 +1 @@
1
- export{B as BookingSearchBar,t as CareTypes}from"./types-fc4a2521.js";export{c as CareConstants}from"./constants-4cb2f84a.js";import"./tslib.es6-23b16f13.js";import"react";import"@emotion/react";import"./index-5311efac.js";import"./Onboarding-5d4e7e9a.js";import"./isProduction-c71511f1.js";import"./cookieHelper-4e6ba518.js";import"./useTranslations-8dc2d7f1.js";import"./translationsContext-b11db32c.js";import"string-format";import"lodash/debounce";import"@emotion/styled";import"./index-9b489657.js";import"@mantine/core";import"./index-14899cba.js";import"./theme-b3528b2a.js";import"./utils-c64cd3c4.js";import"./index-89514194.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-29382783.js";import"dayjs";import"./screenSizeContext-ca566cf0.js";import"lodash/throttle";import"./gAssets.js";
1
+ export{B as BookingSearchBar,t as CareTypes}from"./types-732ba19a.js";export{c as CareConstants}from"./constants-83cc4bf6.js";import"./tslib.es6-83ef7bb8.js";import"react";import"./index-ba091eef.js";import"./Onboarding-6b46846b.js";import"./isProduction-1d3cb81e.js";import"./cookieHelper-aa50c7f9.js";import"./useTranslations-adbba887.js";import"./translationsContext-2ec412e6.js";import"string-format";import"lodash/debounce";import"./index-2255ace2.js";import"@mantine/core";import"./index-3ce79169.js";import"./utils-eb66ac60.js";import"styled-components";import"./index-523fd7b5.js";import"./theme-7a380626.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-8c694b17.js";
@@ -1 +1 @@
1
- export{A as Alert,e as ArticleCard,r as BMICardEmbed,v as BMRCardEmbed,s as BabyGrowthCardEmbed,t as BabyPoopEmbed,B as Badge,a as BorderHeading,y as Breadcrumbs,k as Carousel,f as CategoryCard,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,x as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,o as FloatButtonGroup,G as Grid,I as IconText,O as OvulationCardEmbed,w as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,j as ScrollList,q as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,i as SideMenu,l as StatisticCard,n as SurveyThankyouCard,u as THRCardEmbed,m as Table,T as Tag,b as Toggle,U as UnderlinedLink,c as Uploader}from"./index-65ff2e46.js";export{A as Avatar,F as Flag,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-edf4724e.js";export{B as Button}from"./index-51c34386.js";export{A as AuthorBadge,B as BtnChoice,D as Divider,T as Tabs}from"./index-ee1505c6.js";export{H as Heading}from"./index-bc8279aa.js";export{I as Input}from"./index-9b489657.js";export{L as Label}from"./index-14899cba.js";export{L as Logo}from"./index-566d4e11.js";export{M as Menu,P as PureInput,T as TextArea,a as TextDivider}from"./index.styled-e63583aa.js";export{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"./index.styled-c52c24ef.js";export{T as Text}from"./index-89514194.js";export{C as Container}from"./index-cf3b2063.js";export{I as Icon}from"./index-23461c13.js";export{D as Drawer,R as RadioImageGroup}from"./index-a78d9888.js";export{M as Modal,N as NewBabyProfileRadio}from"./index-3c7f6ffc.js";export{C as CustomReferenceDot}from"./index-336463f4.js";export{P as Popup}from"./dataTransform-afe529c5.js";export{P as PillCarousel}from"./index-a7de3367.js";export{Footer}from"./footer.js";import"react";import"./utils-c64cd3c4.js";import"./useUniqueId-694cc229.js";import"./gAssets.js";import"./index-5311efac.js";import"./Onboarding-5d4e7e9a.js";import"./isProduction-c71511f1.js";import"./theme-b3528b2a.js";import"./tslib.es6-23b16f13.js";import"lodash/throttle";import"keen-slider/react";import"dayjs";import"./screenSizeContext-ca566cf0.js";import"@emotion/react";import"./useTranslations-8dc2d7f1.js";import"./translationsContext-b11db32c.js";import"string-format";import"date-fns";import"@mantine/core";import"./index.styled-f22d6816.js";import"@emotion/styled";import"./index-fa88e322.js";import"@mantine/dates";import"@mantine/hooks";import"@mantine/carousel";import"./index-7e1f6511.js";import"./types-96c6614a.js";import"./index.styled-14d557d6.js";import"./cookieHelper-4e6ba518.js";import"slugify";import"./routing-512ce598.js";import"dayjs/plugin/relativeTime";import"./index-d29a2bc2.js";import"./index-9a5ceed1.js";import"react-hook-form";import"./useHealthToolCache-7c3e370a.js";import"./getDynamicHealthTool-3255be64.js";import"./core-67f774bb.js";import"./normalizeLink-2cfad1a9.js";import"./useOutsideClick-29382783.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./useScreenSize-5a05b01d.js";import"./getSocialList-1c143418.js";import"./constants-4cb2f84a.js";import"./useIsInit-9d185760.js";import"lodash/debounce";import"./index-0aba009c.js";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-0042aed8.js";import"react-dom";import"./index.styled-caa3a9c9.js";
1
+ export{A as Alert,e as ArticleCard,r as BMICardEmbed,v as BMRCardEmbed,s as BabyGrowthCardEmbed,t as BabyPoopEmbed,B as Badge,a as BorderHeading,y as Breadcrumbs,k as Carousel,f as CategoryCard,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,x as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,o as FloatButtonGroup,G as Grid,I as IconText,O as OvulationCardEmbed,w as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,j as ScrollList,q as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,i as SideMenu,l as StatisticCard,n as SurveyThankyouCard,u as THRCardEmbed,m as Table,T as Tag,b as Toggle,U as UnderlinedLink,c as Uploader}from"./index-4618c8b1.js";export{A as Avatar,F as Flag,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-9aa9ea8a.js";export{B as Button}from"./index-4f1c858f.js";export{A as AuthorBadge,B as BtnChoice,D as Divider,T as Tabs}from"./index-a60e8753.js";export{H as Heading}from"./index-421eca30.js";export{I as Input}from"./index-2255ace2.js";export{L as Label}from"./index-3ce79169.js";export{L as Logo}from"./index-086da1d7.js";export{M as Menu,P as PureInput,T as TextArea,a as TextDivider}from"./index.styled-557adcc4.js";export{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"./index.styled-65576081.js";export{T as Text}from"./index-523fd7b5.js";export{C as Container}from"./index-d39586cf.js";export{I as Icon}from"./index-9828acfd.js";export{D as Drawer,R as RadioImageGroup}from"./index-fb690d48.js";export{M as Modal,N as NewBabyProfileRadio}from"./index-1daa59fe.js";export{C as CustomReferenceDot}from"./index-e903b126.js";export{P as Popup}from"./dataTransform-626806af.js";export{P as PillCarousel}from"./index-850a6e81.js";export{Footer}from"./footer.js";import"react";import"./utils-eb66ac60.js";import"./useUniqueId-290147ee.js";import"./gAssets.js";import"./index-ba091eef.js";import"./Onboarding-6b46846b.js";import"./isProduction-1d3cb81e.js";import"./theme-7a380626.js";import"./tslib.es6-83ef7bb8.js";import"lodash/throttle";import"keen-slider/react";import"dayjs";import"./screenSizeContext-49f083d0.js";import"styled-components";import"./useTranslations-adbba887.js";import"./translationsContext-2ec412e6.js";import"string-format";import"date-fns";import"@mantine/core";import"./index.styled-0d946728.js";import"./index-da768b6d.js";import"@mantine/dates";import"@mantine/hooks";import"@mantine/carousel";import"./index-37f23c7c.js";import"./types-889ad8c0.js";import"./index.styled-2eba1dae.js";import"./cookieHelper-aa50c7f9.js";import"slugify";import"./routing-f682d1f9.js";import"dayjs/plugin/relativeTime";import"./index-1e7cb8f5.js";import"./index-475d9e47.js";import"react-hook-form";import"./useHealthToolCache-363b2f57.js";import"./getDynamicHealthTool-287582f9.js";import"./core-0382a275.js";import"./normalizeLink-33964f87.js";import"./useOutsideClick-8c694b17.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./useScreenSize-0364123f.js";import"./getSocialList-bb91bdcd.js";import"./constants-83cc4bf6.js";import"./useIsInit-ee8afdfb.js";import"lodash/debounce";import"./index-5b1f48f6.js";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-315e8566.js";import"react-dom";import"./index.styled-c95d156f.js";
@@ -1 +1 @@
1
- import"./Onboarding-5d4e7e9a.js";export{a as CARE_BOOKING_LOCALES,C as CARE_LOCALES,F as FAVICONS,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,b as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,c as siteHost,s as siteOptions}from"./index-5311efac.js";export{i as isProduction}from"./isProduction-c71511f1.js";
1
+ import"./Onboarding-6b46846b.js";export{a as CARE_BOOKING_LOCALES,C as CARE_LOCALES,F as FAVICONS,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,b as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,c as siteHost,s as siteOptions}from"./index-ba091eef.js";export{i as isProduction}from"./isProduction-1d3cb81e.js";
@@ -1 +1 @@
1
- import{a as t}from"./tslib.es6-23b16f13.js";import{i as e}from"./isProduction-c71511f1.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
1
+ import{a as t}from"./tslib.es6-83ef7bb8.js";import{i as e}from"./isProduction-1d3cb81e.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
@@ -1 +1 @@
1
- import e from"react";import{as as i,at as o}from"./index.styled-14d557d6.js";const t=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:u(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(u),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},s=e=>({postTitle:e.post_title,permalink:e.permalink}),u=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>u(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,w,h,b,k,I,C,S,T,x,A,B,P,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||""}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:d,formatReviewedCategory:s,formatCategory:u,formatCategoryApi:e=>e?{categoryInfo:u(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(u)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{t as P,y as a,c as b,g as c,h as d,p as e,w as f,f as g,a as h,u as i};
1
+ import e from"react";import{as as i,at as o}from"./index.styled-2eba1dae.js";const t=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:u(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(u),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},s=e=>({postTitle:e.post_title,permalink:e.permalink}),u=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>u(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,w,h,b,k,I,C,S,T,x,A,B,P,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||""}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:d,formatReviewedCategory:s,formatCategory:u,formatCategoryApi:e=>e?{categoryInfo:u(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(u)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{t as P,y as a,c as b,g as c,h as d,p as e,w as f,f as g,a as h,u as i};