@hhgtech/hhg-components 1.28.34 → 1.28.36

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 (327) hide show
  1. package/build/babyGrowth.js +30 -14
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/atoms/alert/index.d.ts +1 -2
  5. package/build/components/atoms/avatar/index.d.ts +1 -2
  6. package/build/components/atoms/divider/index.d.ts +1 -2
  7. package/build/components/atoms/fileDropdown/index.d.ts +1 -2
  8. package/build/components/atoms/heading/index.d.ts +1 -2
  9. package/build/components/atoms/marryBabyText/index.d.ts +1 -2
  10. package/build/components/atoms/marryBabyText/index.styled.d.ts +4 -2
  11. package/build/components/atoms/pagination/index.d.ts +1 -2
  12. package/build/components/mantine/slider/index.styled.d.ts +7 -1
  13. package/build/components/mantine/text/index.styled.d.ts +1 -9
  14. package/build/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
  15. package/build/components/molecules/categoryCard/index.d.ts +1 -2
  16. package/build/components/molecules/dropdown/index.d.ts +1 -2
  17. package/build/components/molecules/dropdown/index.styled.d.ts +1 -1
  18. package/build/components/molecules/floatButtonGroup/index.d.ts +1 -2
  19. package/build/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
  20. package/build/components/molecules/tabs/index.d.ts +1 -2
  21. package/build/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
  22. package/build/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
  23. package/build/components.js +1 -1
  24. package/build/{constants-40d8e654.js → constants-437bb4bf.js} +23 -23
  25. package/build/{constants-e39882d7.js → constants-80dd2233.js} +1 -1
  26. package/build/constants.js +1 -1
  27. package/build/core-80e9cff8.js +1 -0
  28. package/build/ecom.js +1 -1
  29. package/build/esm/babyGrowth.js +45 -29
  30. package/build/esm/cache.js +1 -1
  31. package/build/esm/care.js +1 -1
  32. package/build/esm/components/atoms/alert/index.d.ts +1 -2
  33. package/build/esm/components/atoms/avatar/index.d.ts +1 -2
  34. package/build/esm/components/atoms/divider/index.d.ts +1 -2
  35. package/build/esm/components/atoms/fileDropdown/index.d.ts +1 -2
  36. package/build/esm/components/atoms/heading/index.d.ts +1 -2
  37. package/build/esm/components/atoms/marryBabyText/index.d.ts +1 -2
  38. package/build/esm/components/atoms/marryBabyText/index.styled.d.ts +4 -2
  39. package/build/esm/components/atoms/pagination/index.d.ts +1 -2
  40. package/build/esm/components/mantine/slider/index.styled.d.ts +7 -1
  41. package/build/esm/components/mantine/text/index.styled.d.ts +1 -9
  42. package/build/esm/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
  43. package/build/esm/components/molecules/categoryCard/index.d.ts +1 -2
  44. package/build/esm/components/molecules/dropdown/index.d.ts +1 -2
  45. package/build/esm/components/molecules/dropdown/index.styled.d.ts +1 -1
  46. package/build/esm/components/molecules/floatButtonGroup/index.d.ts +1 -2
  47. package/build/esm/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
  48. package/build/esm/components/molecules/tabs/index.d.ts +1 -2
  49. package/build/esm/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
  50. package/build/esm/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
  51. package/build/esm/components.js +1 -1
  52. package/build/esm/{constants-eaf6c51c.js → constants-4c45be75.js} +1 -1
  53. package/build/esm/{constants-9cbd1b11.js → constants-c3b0c92c.js} +25 -25
  54. package/build/esm/constants.js +1 -1
  55. package/build/esm/{core-887f9a5d.js → core-5b21c19e.js} +1 -1
  56. package/build/esm/ecom.js +1 -1
  57. package/build/esm/footer.js +1 -1
  58. package/build/esm/gAssets.js +1 -1
  59. package/build/esm/getDynamicHealthTool-2e9a5548.js +1 -0
  60. package/build/esm/{getSocialList-48723f32.js → getSocialList-3e7a32e3.js} +1 -1
  61. package/build/esm/hooks.js +1 -1
  62. package/build/esm/i18n.js +1 -1
  63. package/build/esm/i18nV2.js +1 -1
  64. package/build/esm/index-020361fe.js +177 -0
  65. package/build/esm/{index-7e96cd7e.js → index-15c00b1c.js} +1 -1
  66. package/build/esm/{index-905a68a4.js → index-17537d5b.js} +1 -1
  67. package/build/esm/index-1782f56e.js +1 -0
  68. package/build/esm/{index-ca22339d.js → index-17d273a3.js} +5 -5
  69. package/build/esm/index-1b2689ee.js +1 -0
  70. package/build/esm/{index-2f08d8b2.js → index-2eac1ec8.js} +1 -1
  71. package/build/esm/{index-c8b8773c.js → index-4eb2530b.js} +1 -1
  72. package/build/esm/{index-76f80354.js → index-6536dd4e.js} +11 -11
  73. package/build/esm/{index-301f2dee.js → index-6c2d86ad.js} +1 -1
  74. package/build/esm/{index-3182f4c8.js → index-72cd7c00.js} +358 -361
  75. package/build/esm/{index-456e07e9.js → index-9d393a92.js} +1 -1
  76. package/build/esm/{index-5856050d.js → index-9d86c3a8.js} +1 -1
  77. package/build/esm/index-a1e1a441.js +1 -0
  78. package/build/esm/{index-a0ed112f.js → index-a60bd3f2.js} +1 -1
  79. package/build/esm/index-a903d8ce.js +1 -0
  80. package/build/esm/{index-0bc6ed09.js → index-c22300e9.js} +1 -1
  81. package/build/esm/{index-40c22fc9.js → index-c9c584ed.js} +1 -1
  82. package/build/esm/{index-dcd77e56.js → index-e7f889b2.js} +1 -1
  83. package/build/esm/{index-67f13f4c.js → index-f0206e98.js} +1 -1
  84. package/build/esm/{index-cca1a97c.js → index-f64ac5b4.js} +1 -1
  85. package/build/esm/{index-b7b39aa3.js → index-f75306ca.js} +1 -1
  86. package/build/esm/index.css +1 -1
  87. package/build/esm/index.js +1 -1
  88. package/build/esm/{index.styled-f34b713c.js → index.styled-551f3c76.js} +5 -5
  89. package/build/esm/{index.styled-d8252a1f.js → index.styled-57535894.js} +178 -197
  90. package/build/esm/{index.styled-80c60a9e.js → index.styled-5c99d64b.js} +233 -235
  91. package/build/esm/{index.styled-a3e34614.js → index.styled-780df456.js} +1 -1
  92. package/build/esm/{index.styles-5d09f3e9.js → index.styles-874b1834.js} +146 -160
  93. package/build/esm/lead.js +1 -1
  94. package/build/esm/mantine.js +1 -1
  95. package/build/esm/misc.js +1 -1
  96. package/build/esm/navigation.js +1 -1
  97. package/build/esm/onboardingV2.js +1 -1
  98. package/build/esm/pwg.js +5 -5
  99. package/build/esm/{routing-7acb688f.js → routing-a8a2d2fd.js} +1 -1
  100. package/build/esm/screenSizeContext-dff03e2b.js +81 -0
  101. package/build/esm/subot.js +129 -132
  102. package/build/esm/together/components/atoms/notificationBar/index.d.ts +1 -1
  103. package/build/esm/together/components/molecules/submitReportForm/index.d.ts +1 -2
  104. package/build/esm/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
  105. package/build/esm/together.js +1 -1
  106. package/build/esm/{types-41075c37.js → types-07a8f7f9.js} +1 -1
  107. package/build/esm/{types-87783fd3.js → types-9b65a599.js} +15 -15
  108. package/build/esm/types.js +1 -1
  109. package/build/esm/{useCategory-dfd51998.js → useCategory-8582dedd.js} +1 -1
  110. package/build/esm/useHealthToolCache-5b104f1e.js +1 -0
  111. package/build/esm/{usePlacesAutocomplete-c740d776.js → usePlacesAutocomplete-3f0cff61.js} +1 -1
  112. package/build/esm/{useRafState-2ebb1185.js → useRafState-27d2b972.js} +1 -1
  113. package/build/esm/{useTranslations-1416cdcc.js → useTranslations-14b7fcc5.js} +1 -1
  114. package/build/esm/{utils-563dbd48.js → utils-0b2c5aec.js} +1 -1
  115. package/build/esm/{utils-0e7436d5.js → utils-cca2af3a.js} +1 -1
  116. package/build/esm/vaccination.js +1 -1
  117. package/build/footer.js +1 -1
  118. package/build/gAssets.js +1 -1
  119. package/build/{getDynamicHealthTool-c1365649.js → getDynamicHealthTool-fad842aa.js} +1 -1
  120. package/build/{getSocialList-34d66f28.js → getSocialList-72284d55.js} +1 -1
  121. package/build/hooks.js +1 -1
  122. package/build/i18n.js +1 -1
  123. package/build/i18nV2.js +1 -1
  124. package/build/{index-992d38d2.js → index-18823495.js} +1 -1
  125. package/build/index-18bee338.js +1 -0
  126. package/build/{index-c7f012bf.js → index-24290a1e.js} +1 -1
  127. package/build/{index-e43cc32d.js → index-28f61b63.js} +1 -1
  128. package/build/{index-d1eeaaef.js → index-3e31d08a.js} +1 -1
  129. package/build/index-3ec29f74.js +1 -0
  130. package/build/{index-0c939a95.js → index-411b2c54.js} +7 -7
  131. package/build/{index-d1fd4d52.js → index-461460ac.js} +1 -1
  132. package/build/{index-17dfa7a9.js → index-4af92d15.js} +1 -1
  133. package/build/{index-854f1e36.js → index-536d19f8.js} +5 -5
  134. package/build/{index-ccefd6eb.js → index-66d800b3.js} +9 -9
  135. package/build/{index-a0f049ef.js → index-67f50ae5.js} +1 -1
  136. package/build/{index-99f21fc5.js → index-7e3aeed4.js} +1 -1
  137. package/build/{index-1b728b12.js → index-81ec6599.js} +1 -1
  138. package/build/{index-dad777d8.js → index-88ff79b6.js} +1 -1
  139. package/build/{index-acfb0ce9.js → index-95d71ef9.js} +1 -1
  140. package/build/{index-45b4b3e9.js → index-a14ac95c.js} +1 -1
  141. package/build/{index-16272593.js → index-a527fd86.js} +1 -1
  142. package/build/{index-c85ab594.js → index-c9dc742a.js} +359 -362
  143. package/build/{index-f137af39.js → index-cc31ada4.js} +1 -1
  144. package/build/{index-5846d58b.js → index-edb98431.js} +1 -1
  145. package/build/{index-b15a75d9.js → index-f62932f3.js} +1 -1
  146. package/build/index.css +1 -1
  147. package/build/index.js +1 -1
  148. package/build/{index.styled-245eaa42.js → index.styled-228e96a3.js} +5 -5
  149. package/build/{index.styled-c3edb2b9.js → index.styled-2ce77f4d.js} +232 -234
  150. package/build/{index.styled-f695d1b6.js → index.styled-6d41d939.js} +118 -137
  151. package/build/{index.styled-086a71a8.js → index.styled-86cd31ca.js} +5 -5
  152. package/build/{index.styles-bc0acea0.js → index.styles-b3f7ae61.js} +146 -160
  153. package/build/lead.js +1 -1
  154. package/build/mantine.js +1 -1
  155. package/build/misc.js +1 -1
  156. package/build/navigation.js +1 -1
  157. package/build/onboardingV2.js +5 -5
  158. package/build/pwg.js +1 -1
  159. package/build/{routing-a3a546b6.js → routing-0dd231c5.js} +1 -1
  160. package/build/screenSizeContext-0e841cc0.js +81 -0
  161. package/build/subot.js +91 -94
  162. package/build/together/components/atoms/notificationBar/index.d.ts +1 -1
  163. package/build/together/components/molecules/submitReportForm/index.d.ts +1 -2
  164. package/build/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
  165. package/build/together.js +1 -1
  166. package/build/{types-a3e9e643.js → types-439160fd.js} +15 -15
  167. package/build/{types-f6913792.js → types-b4747009.js} +1 -1
  168. package/build/types.js +1 -1
  169. package/build/{useCategory-78ec9de7.js → useCategory-718ae913.js} +1 -1
  170. package/build/useHealthToolCache-40a88025.js +1 -0
  171. package/build/{usePlacesAutocomplete-c93a598a.js → usePlacesAutocomplete-54de454b.js} +1 -1
  172. package/build/{useRafState-2d73039f.js → useRafState-c9f6527a.js} +1 -1
  173. package/build/{useTranslations-eb6e3a4e.js → useTranslations-a1b68e91.js} +1 -1
  174. package/build/utils-50bb77a6.js +1 -0
  175. package/build/{utils-86177cc2.js → utils-7528478f.js} +1 -1
  176. package/build/vaccination.js +1 -1
  177. package/package.json +1 -1
  178. package/build/core-1e09b2f5.js +0 -1
  179. package/build/esm/getDynamicHealthTool-f08feeaf.js +0 -1
  180. package/build/esm/index-02bce746.js +0 -1
  181. package/build/esm/index-0e19b1ab.js +0 -1
  182. package/build/esm/index-68163270.js +0 -1
  183. package/build/esm/index-79f993e1.js +0 -177
  184. package/build/esm/index-f851ab1f.js +0 -1
  185. package/build/esm/screenSizeContext-268f62ee.js +0 -81
  186. package/build/esm/useHealthToolCache-94b80796.js +0 -1
  187. package/build/index-6fd6134a.js +0 -1
  188. package/build/index-caefb49b.js +0 -1
  189. package/build/screenSizeContext-d1f3171e.js +0 -81
  190. package/build/useHealthToolCache-b53abfff.js +0 -1
  191. package/build/utils-b5dfd4e1.js +0 -1
  192. /package/build/{BMI_BOYS.percentile.monthly-f2d6dfe0.js → BMI_BOYS.percentile.monthly-bd7c4653.js} +0 -0
  193. /package/build/{BMI_BOYS.percentile.weekly-af266ffa.js → BMI_BOYS.percentile.weekly-aa0676d7.js} +0 -0
  194. /package/build/{BMI_BOYS.percentile.yearly-3197405f.js → BMI_BOYS.percentile.yearly-710bf0bc.js} +0 -0
  195. /package/build/{BMI_BOYS.zscore.monthly-d5f610e1.js → BMI_BOYS.zscore.monthly-265d16b8.js} +0 -0
  196. /package/build/{BMI_BOYS.zscore.weekly-6f8488f2.js → BMI_BOYS.zscore.weekly-20e34020.js} +0 -0
  197. /package/build/{BMI_BOYS.zscore.yearly-91349a66.js → BMI_BOYS.zscore.yearly-67395b04.js} +0 -0
  198. /package/build/{BMI_GIRLS.percentile.monthly-c7e89fd9.js → BMI_GIRLS.percentile.monthly-e5a6f286.js} +0 -0
  199. /package/build/{BMI_GIRLS.percentile.weekly-8e6b805d.js → BMI_GIRLS.percentile.weekly-0d918cc9.js} +0 -0
  200. /package/build/{BMI_GIRLS.percentile.yearly-1705eb83.js → BMI_GIRLS.percentile.yearly-9ab58003.js} +0 -0
  201. /package/build/{BMI_GIRLS.zscore.monthly-10ce2285.js → BMI_GIRLS.zscore.monthly-980c6ad8.js} +0 -0
  202. /package/build/{BMI_GIRLS.zscore.weekly-509ac723.js → BMI_GIRLS.zscore.weekly-2886baca.js} +0 -0
  203. /package/build/{BMI_GIRLS.zscore.yearly-30bfdb96.js → BMI_GIRLS.zscore.yearly-e3123e93.js} +0 -0
  204. /package/build/{ChevronDown-26ca1544.js → ChevronDown-7d583eac.js} +0 -0
  205. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4d09785a.js → HEAD CIRCUM_BOYS.percentile.monthly-5489c654.js} +0 -0
  206. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f2a3683b.js → HEAD CIRCUM_BOYS.percentile.weekly-72af67ec.js} +0 -0
  207. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-325de807.js → HEAD CIRCUM_BOYS.percentile.yearly-4689f174.js} +0 -0
  208. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-c3653189.js → HEAD CIRCUM_BOYS.zscore.monthly-218db6e2.js} +0 -0
  209. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-64715859.js → HEAD CIRCUM_BOYS.zscore.weekly-d4b77ee2.js} +0 -0
  210. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8d5d4104.js → HEAD CIRCUM_BOYS.zscore.yearly-ba3d997e.js} +0 -0
  211. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-91394406.js → HEAD CIRCUM_GIRLS.percentile.monthly-120ece3e.js} +0 -0
  212. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-dfecd4bb.js → HEAD CIRCUM_GIRLS.percentile.weekly-591bb09a.js} +0 -0
  213. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-60f7fc20.js → HEAD CIRCUM_GIRLS.percentile.yearly-2a19d75a.js} +0 -0
  214. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0adfc823.js → HEAD CIRCUM_GIRLS.zscore.monthly-47aa0b49.js} +0 -0
  215. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2ca5ea36.js → HEAD CIRCUM_GIRLS.zscore.weekly-7faf2731.js} +0 -0
  216. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-eabc2711.js → HEAD CIRCUM_GIRLS.zscore.yearly-0a9527cb.js} +0 -0
  217. /package/build/{HEIGHT_BOYS.percentile.monthly-c30c7db8.js → HEIGHT_BOYS.percentile.monthly-975cab78.js} +0 -0
  218. /package/build/{HEIGHT_BOYS.percentile.weekly-1b7c68af.js → HEIGHT_BOYS.percentile.weekly-45fbff53.js} +0 -0
  219. /package/build/{HEIGHT_BOYS.percentile.yearly-7654ea26.js → HEIGHT_BOYS.percentile.yearly-2a158d1f.js} +0 -0
  220. /package/build/{HEIGHT_BOYS.zscore.monthly-100631d7.js → HEIGHT_BOYS.zscore.monthly-8dc3c9d2.js} +0 -0
  221. /package/build/{HEIGHT_BOYS.zscore.weekly-3fb8192a.js → HEIGHT_BOYS.zscore.weekly-6156e4e0.js} +0 -0
  222. /package/build/{HEIGHT_BOYS.zscore.yearly-cfc53fb4.js → HEIGHT_BOYS.zscore.yearly-f76c1f5e.js} +0 -0
  223. /package/build/{HEIGHT_GIRLS.percentile.monthly-36a38507.js → HEIGHT_GIRLS.percentile.monthly-b45e867e.js} +0 -0
  224. /package/build/{HEIGHT_GIRLS.percentile.weekly-d7cc3e36.js → HEIGHT_GIRLS.percentile.weekly-46b92e1b.js} +0 -0
  225. /package/build/{HEIGHT_GIRLS.percentile.yearly-6e9eb89d.js → HEIGHT_GIRLS.percentile.yearly-9abaef8d.js} +0 -0
  226. /package/build/{HEIGHT_GIRLS.zscore.monthly-9ef69581.js → HEIGHT_GIRLS.zscore.monthly-eb201a4a.js} +0 -0
  227. /package/build/{HEIGHT_GIRLS.zscore.weekly-a5a438a7.js → HEIGHT_GIRLS.zscore.weekly-1c1b80f3.js} +0 -0
  228. /package/build/{HEIGHT_GIRLS.zscore.yearly-aa9b3de3.js → HEIGHT_GIRLS.zscore.yearly-19fe9d55.js} +0 -0
  229. /package/build/{Subot-5e3788b9.js → Subot-6a20c386.js} +0 -0
  230. /package/build/{Visible-c561d877.js → Visible-96ce1462.js} +0 -0
  231. /package/build/{WEIGHT_BOYS.percentile.monthly-7b0b5579.js → WEIGHT_BOYS.percentile.monthly-48925e68.js} +0 -0
  232. /package/build/{WEIGHT_BOYS.percentile.weekly-650a1141.js → WEIGHT_BOYS.percentile.weekly-9675b472.js} +0 -0
  233. /package/build/{WEIGHT_BOYS.percentile.yearly-ef733c0a.js → WEIGHT_BOYS.percentile.yearly-5ae74491.js} +0 -0
  234. /package/build/{WEIGHT_BOYS.zscore.monthly-baa0cef6.js → WEIGHT_BOYS.zscore.monthly-fda03047.js} +0 -0
  235. /package/build/{WEIGHT_BOYS.zscore.weekly-e7080454.js → WEIGHT_BOYS.zscore.weekly-2ab9f08c.js} +0 -0
  236. /package/build/{WEIGHT_BOYS.zscore.yearly-c51dfe8a.js → WEIGHT_BOYS.zscore.yearly-b68de4e1.js} +0 -0
  237. /package/build/{WEIGHT_GIRLS.percentile.monthly-78b66e11.js → WEIGHT_GIRLS.percentile.monthly-1c82f3e1.js} +0 -0
  238. /package/build/{WEIGHT_GIRLS.percentile.weekly-5df91708.js → WEIGHT_GIRLS.percentile.weekly-0628410e.js} +0 -0
  239. /package/build/{WEIGHT_GIRLS.percentile.yearly-a7ad83a0.js → WEIGHT_GIRLS.percentile.yearly-bac2752a.js} +0 -0
  240. /package/build/{WEIGHT_GIRLS.zscore.monthly-37aeb739.js → WEIGHT_GIRLS.zscore.monthly-444c0637.js} +0 -0
  241. /package/build/{WEIGHT_GIRLS.zscore.weekly-cdb5a619.js → WEIGHT_GIRLS.zscore.weekly-e943b0eb.js} +0 -0
  242. /package/build/{WEIGHT_GIRLS.zscore.yearly-10f7b113.js → WEIGHT_GIRLS.zscore.yearly-cd96850c.js} +0 -0
  243. /package/build/{cookieHelper-faead274.js → cookieHelper-90494d05.js} +0 -0
  244. /package/build/{dataTransform-4e01afe7.js → dataTransform-6263c35e.js} +0 -0
  245. /package/build/esm/{BMI_BOYS.percentile.monthly-237c26c1.js → BMI_BOYS.percentile.monthly-2f0ebcbf.js} +0 -0
  246. /package/build/esm/{BMI_BOYS.percentile.weekly-5e217121.js → BMI_BOYS.percentile.weekly-923b3d30.js} +0 -0
  247. /package/build/esm/{BMI_BOYS.percentile.yearly-b7c24b07.js → BMI_BOYS.percentile.yearly-7d39033d.js} +0 -0
  248. /package/build/esm/{BMI_BOYS.zscore.monthly-caee541a.js → BMI_BOYS.zscore.monthly-21915d60.js} +0 -0
  249. /package/build/esm/{BMI_BOYS.zscore.weekly-248bd6a3.js → BMI_BOYS.zscore.weekly-afaad99e.js} +0 -0
  250. /package/build/esm/{BMI_BOYS.zscore.yearly-c4c5bebc.js → BMI_BOYS.zscore.yearly-2d48176b.js} +0 -0
  251. /package/build/esm/{BMI_GIRLS.percentile.monthly-7cf5b7a8.js → BMI_GIRLS.percentile.monthly-67f03f38.js} +0 -0
  252. /package/build/esm/{BMI_GIRLS.percentile.weekly-2c920355.js → BMI_GIRLS.percentile.weekly-a2c33686.js} +0 -0
  253. /package/build/esm/{BMI_GIRLS.percentile.yearly-2913ce0d.js → BMI_GIRLS.percentile.yearly-7a98dd42.js} +0 -0
  254. /package/build/esm/{BMI_GIRLS.zscore.monthly-a9ca6049.js → BMI_GIRLS.zscore.monthly-599baf2d.js} +0 -0
  255. /package/build/esm/{BMI_GIRLS.zscore.weekly-7686cd52.js → BMI_GIRLS.zscore.weekly-c258aef0.js} +0 -0
  256. /package/build/esm/{BMI_GIRLS.zscore.yearly-0fe95249.js → BMI_GIRLS.zscore.yearly-e8ce4dc8.js} +0 -0
  257. /package/build/esm/{ChevronDown-2b150c99.js → ChevronDown-198d9cc6.js} +0 -0
  258. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9ab3e376.js → HEAD CIRCUM_BOYS.percentile.monthly-bc41ab37.js} +0 -0
  259. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-b419210c.js → HEAD CIRCUM_BOYS.percentile.weekly-bd73d642.js} +0 -0
  260. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-47c58312.js → HEAD CIRCUM_BOYS.percentile.yearly-044a1a1a.js} +0 -0
  261. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-573a0db9.js → HEAD CIRCUM_BOYS.zscore.monthly-61bf74c0.js} +0 -0
  262. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6d69c852.js → HEAD CIRCUM_BOYS.zscore.weekly-28e9f5ed.js} +0 -0
  263. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-22f44323.js → HEAD CIRCUM_BOYS.zscore.yearly-2a0e1789.js} +0 -0
  264. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-484fc054.js → HEAD CIRCUM_GIRLS.percentile.monthly-13f948b3.js} +0 -0
  265. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-ce9ad0ad.js → HEAD CIRCUM_GIRLS.percentile.weekly-88cc5320.js} +0 -0
  266. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5ba8609b.js → HEAD CIRCUM_GIRLS.percentile.yearly-7f0f400b.js} +0 -0
  267. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-09f228c4.js → HEAD CIRCUM_GIRLS.zscore.monthly-d78908a1.js} +0 -0
  268. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0d16214e.js → HEAD CIRCUM_GIRLS.zscore.weekly-f3207f83.js} +0 -0
  269. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-69196152.js → HEAD CIRCUM_GIRLS.zscore.yearly-0628d6d8.js} +0 -0
  270. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-73475699.js → HEIGHT_BOYS.percentile.monthly-182bed39.js} +0 -0
  271. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-aaa9c5d2.js → HEIGHT_BOYS.percentile.weekly-44f52c09.js} +0 -0
  272. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-19ed1ac7.js → HEIGHT_BOYS.percentile.yearly-bb541601.js} +0 -0
  273. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-6af8892b.js → HEIGHT_BOYS.zscore.monthly-a9a9dd47.js} +0 -0
  274. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-344ab143.js → HEIGHT_BOYS.zscore.weekly-9fc7b902.js} +0 -0
  275. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-eb3a4e83.js → HEIGHT_BOYS.zscore.yearly-88da8bc2.js} +0 -0
  276. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8b6c42e4.js → HEIGHT_GIRLS.percentile.monthly-fb5f6f0d.js} +0 -0
  277. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-74469212.js → HEIGHT_GIRLS.percentile.weekly-4baca659.js} +0 -0
  278. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3f9ee629.js → HEIGHT_GIRLS.percentile.yearly-fc7e1fc1.js} +0 -0
  279. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c6a7dc2d.js → HEIGHT_GIRLS.zscore.monthly-b439db85.js} +0 -0
  280. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e27c7b61.js → HEIGHT_GIRLS.zscore.weekly-8681e64a.js} +0 -0
  281. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-72d00068.js → HEIGHT_GIRLS.zscore.yearly-28b1d0bb.js} +0 -0
  282. /package/build/esm/{Subot-0c4dab43.js → Subot-e272425a.js} +0 -0
  283. /package/build/esm/{Visible-c68224a8.js → Visible-e7a4b560.js} +0 -0
  284. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-38ddd06a.js → WEIGHT_BOYS.percentile.monthly-d6835449.js} +0 -0
  285. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a0349b82.js → WEIGHT_BOYS.percentile.weekly-bc54a47c.js} +0 -0
  286. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4aa28c2a.js → WEIGHT_BOYS.percentile.yearly-69b5c0cf.js} +0 -0
  287. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-285f7f43.js → WEIGHT_BOYS.zscore.monthly-fae0c31f.js} +0 -0
  288. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7fdcfb45.js → WEIGHT_BOYS.zscore.weekly-58bfd560.js} +0 -0
  289. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-67512a08.js → WEIGHT_BOYS.zscore.yearly-4e428e24.js} +0 -0
  290. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-687fcbb9.js → WEIGHT_GIRLS.percentile.monthly-5136f490.js} +0 -0
  291. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9c8ebcfb.js → WEIGHT_GIRLS.percentile.weekly-bd8ea375.js} +0 -0
  292. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bb43d716.js → WEIGHT_GIRLS.percentile.yearly-40e16990.js} +0 -0
  293. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-6ea1cc38.js → WEIGHT_GIRLS.zscore.monthly-bc34aead.js} +0 -0
  294. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-589c96d0.js → WEIGHT_GIRLS.zscore.weekly-c5ab12a0.js} +0 -0
  295. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-293c72b6.js → WEIGHT_GIRLS.zscore.yearly-41608a14.js} +0 -0
  296. /package/build/esm/{cookieHelper-f205b169.js → cookieHelper-28df9366.js} +0 -0
  297. /package/build/esm/{dataTransform-4b79e9fc.js → dataTransform-3cf63532.js} +0 -0
  298. /package/build/esm/{index-bb150c0d.js → index-10c5feed.js} +0 -0
  299. /package/build/esm/{index-ebc484da.js → index-9d4a84ac.js} +0 -0
  300. /package/build/esm/{index-bc96f01d.js → index-ac4a532b.js} +0 -0
  301. /package/build/esm/{isProduction-095ab64f.js → isProduction-b5290208.js} +0 -0
  302. /package/build/esm/{localizeNumberFormat-6ec4b13f.js → localizeNumberFormat-a5628e95.js} +0 -0
  303. /package/build/esm/{normalizeLink-730f7beb.js → normalizeLink-03495796.js} +0 -0
  304. /package/build/esm/{number-6d1e5da0.js → number-97247dba.js} +0 -0
  305. /package/build/esm/{paths-d8c26a48.js → paths-fcede6b6.js} +0 -0
  306. /package/build/esm/{theme-c91f8447.js → theme-ccf55e31.js} +0 -0
  307. /package/build/esm/{translationsContext-8d25a828.js → translationsContext-7856306b.js} +0 -0
  308. /package/build/esm/{tslib.es6-89288f42.js → tslib.es6-842a2bb8.js} +0 -0
  309. /package/build/esm/{types-4b3c5426.js → types-3f42ad37.js} +0 -0
  310. /package/build/esm/{useIsInit-6890e3ae.js → useIsInit-7d05716a.js} +0 -0
  311. /package/build/esm/{useOutsideClick-fcf2d8f9.js → useOutsideClick-9d03d01d.js} +0 -0
  312. /package/build/esm/{useScrollbarSize-53042c16.js → useScrollbarSize-1c748ec0.js} +0 -0
  313. /package/build/{index-65b4e1df.js → index-22f2dd43.js} +0 -0
  314. /package/build/{index-dd93f3f7.js → index-a6882810.js} +0 -0
  315. /package/build/{index-87fb4741.js → index-b3a56944.js} +0 -0
  316. /package/build/{isProduction-a6dab3b8.js → isProduction-975fbda1.js} +0 -0
  317. /package/build/{localizeNumberFormat-68c605b4.js → localizeNumberFormat-f603a6d8.js} +0 -0
  318. /package/build/{normalizeLink-b08e7017.js → normalizeLink-b260b165.js} +0 -0
  319. /package/build/{number-824f5e2e.js → number-3f6eba85.js} +0 -0
  320. /package/build/{paths-cb533948.js → paths-9ce571a8.js} +0 -0
  321. /package/build/{theme-9886c9e0.js → theme-cf605758.js} +0 -0
  322. /package/build/{translationsContext-510e154b.js → translationsContext-b4e24bbe.js} +0 -0
  323. /package/build/{tslib.es6-5d58d708.js → tslib.es6-8187fb3c.js} +0 -0
  324. /package/build/{types-16b33149.js → types-16f153bc.js} +0 -0
  325. /package/build/{useIsInit-10070617.js → useIsInit-df1db68e.js} +0 -0
  326. /package/build/{useOutsideClick-d814cc9a.js → useOutsideClick-eeca1a83.js} +0 -0
  327. /package/build/{useScrollbarSize-efc94491.js → useScrollbarSize-7a77a7be.js} +0 -0
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { CSSProperties } from 'styled-components';
1
+ import React, { CSSProperties } from 'react';
3
2
  export type Option = {
4
3
  label: string | JSX.Element;
5
4
  value: string | Date | number;
@@ -1,4 +1,4 @@
1
- export declare const StyledDropdown: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const StyledDropdown: import("styled-components").StyledComponent<"select", any, {
2
2
  color?: string;
3
3
  shadowColor?: string;
4
4
  }, never>;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { CSSProperties } from 'styled-components';
1
+ import React, { CSSProperties } from 'react';
3
2
  type Item = {
4
3
  value?: string | number;
5
4
  label: string;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { CSSProperties } from 'styled-components';
1
+ import React, { CSSProperties } from 'react';
3
2
  export type Option = {
4
3
  value: string;
5
4
  label: string;
@@ -1,9 +1,8 @@
1
- import React from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { DefaultProps, Selectors } from '@mantine/core';
3
3
  import { TextProps } from "../../mantine/text";
4
4
  import { TextSize } from "../../mantine/theme";
5
5
  import { DataTrackingType } from "../../../interfaces/types";
6
- import { CSSProperties } from 'styled-components';
7
6
  import useStyles from "./index.styles";
8
7
  type TabContent = {
9
8
  name: string;
@@ -1,7 +1,6 @@
1
1
  export declare const StyledHeaderWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const StyledHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const StyledLeftGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const StyledLogoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
4
  export declare const StyledRightGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
6
5
  export declare const StyledServiceListMenuSearchInputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
7
6
  export declare const StyledProfileNavGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,8 +1 @@
1
- /// <reference types="react" />
2
- export declare const StyledDynamicForm: import("styled-components").StyledComponent<(<C = "div">(props: import("@mantine/utils").PolymorphicComponentProps<C, import("@mantine/core").BoxProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(import("@mantine/core").BoxProps & {
3
- component?: any;
4
- } & Omit<Pick<any, string | number | symbol>, "component" | keyof import("@mantine/core").BoxProps> & {
5
- ref?: any;
6
- }) | (import("@mantine/core").BoxProps & {
7
- component: import("react").ElementType<any>;
8
- })>, never> & Record<string, never>, any, {}, never>;
1
+ export declare const StyledDynamicForm: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
@@ -1 +1 @@
1
- export{A as Alert,f as ArticleCard,g as ArticleCardV2,a as Avatar,s as BMICardEmbed,w as BMRCardEmbed,t as BabyGrowthCardEmbed,u as BabyPoopEmbed,B as Badge,b as BorderHeading,z as Breadcrumbs,h as CategoryCard,C as Checkbox,i as CheckboxGroup,q as CookieAcceptConfirm,y as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,J as FixedBottomAdBlock,p as FloatButtonGroup,e as GenderOptionControl,G as Grid,I as IconText,O as OvulationCardEmbed,x as PWGCardEmbed,P as Pagination,j as ProgressBar,R as Radio,d as RateStars,S as ScrollList,r as SeoHead,E as ShareContainer,H as ShareDrawer,k as SideMenu,l as StatisticCard,K as SurveyOrPremiumBanner,o as SurveyThankyouCard,v as THRCardEmbed,m as Table,n as Tabs,T as Tag,c as Toggle,U as UserProfileNavigation,N as UserProfileNavigationHeader,L as UserProfileNavigationStats}from"./index-f851ab1f.js";export{B as Button}from"./index-c8b8773c.js";export{B as BtnChoice,D as Divider}from"./index-7e96cd7e.js";export{F as Flag,I as ImageWrap}from"./index-ca22339d.js";export{H as Heading,P as PureInput,S as StepRenderer,a as StepRendererContext,T as TextArea}from"./index.styles-5d09f3e9.js";export{I as Input}from"./index-0bc6ed09.js";export{L as Label}from"./constants-9cbd1b11.js";export{L as Logo}from"./index-456e07e9.js";export{T as Text}from"./index-02bce746.js";export{C as Container}from"./index-ebc484da.js";export{I as Icon}from"./index-dcd77e56.js";export{D as Drawer,R as RadioImageGroup}from"./index-79f993e1.js";export{A as AuthorBadge,B as BookingBtn,D as Dropdown}from"./index.styled-d8252a1f.js";export{C as CustomReferenceDot}from"./index-bc96f01d.js";export{L as LogoIcon}from"./utils-0e7436d5.js";export{A as AdBlock,D as DatePicker,a as DoctorInfo,L as Loading,d as MAPPING_CATEGORY_PREMIUM_API_TYPE,c as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,b as MobileBottomNavigationIcon,R as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-3182f4c8.js";export{P as Popup}from"./index-76f80354.js";export{M as Modal}from"./index-a0ed112f.js";export{L as LanguageSwitcher,b as NavigationLogoutPopup,c as NavigationProfileButton,N as NavigationV2,P as ProfileNavigation,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-68163270.js";export{P as PillCarousel}from"./index-67f13f4c.js";export{A as AddressInput}from"./index-905a68a4.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-268f62ee.js";import"styled-components";import"lodash/throttle";import"./useTranslations-1416cdcc.js";import"./translationsContext-8d25a828.js";import"string-format";import"./gAssets.js";import"./index-b7b39aa3.js";import"date-fns/locale";import"./Subot-0c4dab43.js";import"./isProduction-095ab64f.js";import"./theme-c91f8447.js";import"./tslib.es6-89288f42.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"@mantine/hooks";import"html-react-parser";import"date-fns";import"./index.styled-f34b713c.js";import"lodash/debounce";import"./useCategory-dfd51998.js";import"./types-4b3c5426.js";import"./index-2f08d8b2.js";import"./index-40c22fc9.js";import"react-hook-form";import"./useHealthToolCache-94b80796.js";import"./getDynamicHealthTool-f08feeaf.js";import"./core-887f9a5d.js";import"./normalizeLink-730f7beb.js";import"./routing-7acb688f.js";import"./useOutsideClick-fcf2d8f9.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-48723f32.js";import"uuid";import"@mantine/form";import"./index-cca1a97c.js";import"js-cookie";import"lodash/flatten";import"react-contenteditable";import"react-dom";import"lodash/uniqBy";import"./cookieHelper-f205b169.js";import"@mantine/carousel";import"classnames";import"react-keyed-flatten-children";import"slugify";import"./number-6d1e5da0.js";import"dayjs/plugin/relativeTime";import"./paths-d8c26a48.js";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-53042c16.js";import"./index.styled-80c60a9e.js";import"./constants-eaf6c51c.js";import"./ChevronDown-2b150c99.js";import"./index-0e19b1ab.js";import"./useIsInit-6890e3ae.js";import"./index.styled-a3e34614.js";import"./utils-563dbd48.js";
1
+ export{A as Alert,f as ArticleCard,g as ArticleCardV2,a as Avatar,s as BMICardEmbed,w as BMRCardEmbed,t as BabyGrowthCardEmbed,u as BabyPoopEmbed,B as Badge,b as BorderHeading,z as Breadcrumbs,h as CategoryCard,C as Checkbox,i as CheckboxGroup,q as CookieAcceptConfirm,y as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,J as FixedBottomAdBlock,p as FloatButtonGroup,e as GenderOptionControl,G as Grid,I as IconText,O as OvulationCardEmbed,x as PWGCardEmbed,P as Pagination,j as ProgressBar,R as Radio,d as RateStars,S as ScrollList,r as SeoHead,E as ShareContainer,H as ShareDrawer,k as SideMenu,l as StatisticCard,K as SurveyOrPremiumBanner,o as SurveyThankyouCard,v as THRCardEmbed,m as Table,n as Tabs,T as Tag,c as Toggle,U as UserProfileNavigation,N as UserProfileNavigationHeader,L as UserProfileNavigationStats}from"./index-a903d8ce.js";export{B as Button}from"./index-4eb2530b.js";export{B as BtnChoice,D as Divider}from"./index-15c00b1c.js";export{F as Flag,I as ImageWrap}from"./index-17d273a3.js";export{H as Heading,P as PureInput,S as StepRenderer,a as StepRendererContext,T as TextArea}from"./index.styles-874b1834.js";export{I as Input}from"./index-c22300e9.js";export{L as Label}from"./constants-c3b0c92c.js";export{L as Logo}from"./index-9d393a92.js";export{T as Text}from"./index-1782f56e.js";export{C as Container}from"./index-9d4a84ac.js";export{I as Icon}from"./index-e7f889b2.js";export{D as Drawer,R as RadioImageGroup}from"./index-020361fe.js";export{A as AuthorBadge,B as BookingBtn,D as Dropdown}from"./index.styled-57535894.js";export{C as CustomReferenceDot}from"./index-ac4a532b.js";export{L as LogoIcon}from"./utils-cca2af3a.js";export{A as AdBlock,D as DatePicker,a as DoctorInfo,L as Loading,d as MAPPING_CATEGORY_PREMIUM_API_TYPE,c as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,b as MobileBottomNavigationIcon,R as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-72cd7c00.js";export{P as Popup}from"./index-6536dd4e.js";export{M as Modal}from"./index-a60bd3f2.js";export{L as LanguageSwitcher,b as NavigationLogoutPopup,c as NavigationProfileButton,N as NavigationV2,P as ProfileNavigation,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-a1e1a441.js";export{P as PillCarousel}from"./index-f0206e98.js";export{A as AddressInput}from"./index-17537d5b.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-dff03e2b.js";import"styled-components";import"lodash/throttle";import"./useTranslations-14b7fcc5.js";import"./translationsContext-7856306b.js";import"string-format";import"./gAssets.js";import"./index-f75306ca.js";import"date-fns/locale";import"./Subot-e272425a.js";import"./isProduction-b5290208.js";import"./theme-ccf55e31.js";import"./tslib.es6-842a2bb8.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"@mantine/hooks";import"html-react-parser";import"date-fns";import"./index.styled-551f3c76.js";import"lodash/debounce";import"./useCategory-8582dedd.js";import"./types-3f42ad37.js";import"./index-2eac1ec8.js";import"./index-c9c584ed.js";import"react-hook-form";import"./useHealthToolCache-5b104f1e.js";import"./getDynamicHealthTool-2e9a5548.js";import"./core-5b21c19e.js";import"./normalizeLink-03495796.js";import"./routing-a8a2d2fd.js";import"./useOutsideClick-9d03d01d.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-3e7a32e3.js";import"uuid";import"@mantine/form";import"./index-f64ac5b4.js";import"js-cookie";import"lodash/flatten";import"react-contenteditable";import"react-dom";import"lodash/uniqBy";import"./cookieHelper-28df9366.js";import"@mantine/carousel";import"classnames";import"react-keyed-flatten-children";import"slugify";import"./number-97247dba.js";import"dayjs/plugin/relativeTime";import"./paths-fcede6b6.js";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-1c748ec0.js";import"./index.styled-5c99d64b.js";import"./constants-4c45be75.js";import"./ChevronDown-198d9cc6.js";import"./index-1b2689ee.js";import"./useIsInit-7d05716a.js";import"./index.styled-780df456.js";import"./utils-0b2c5aec.js";
@@ -1 +1 @@
1
- import"./index-b7b39aa3.js";import{i as e}from"./isProduction-095ab64f.js";const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"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"},h=o?"http://localhost:3001":e?`https://${a[t]}`:`https://discover.${a[t]}`,c=e?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=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 O={"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"}},_={"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,l=[])=>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:l}]}),BRAND:(e="",o=0,l=[])=>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:l}]}),BRAND_DETAIL:(e="",o=0,l)=>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!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>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!=l?l:{}}]})}};var m=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,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:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,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:O,HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:_});export{O as L,m as c};
1
+ import"./index-f75306ca.js";import{i as e}from"./isProduction-b5290208.js";const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"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"},h=o?"http://localhost:3001":e?`https://${a[t]}`:`https://discover.${a[t]}`,c=e?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=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 O={"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"}},_={"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,l=[])=>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:l}]}),BRAND:(e="",o=0,l=[])=>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:l}]}),BRAND_DETAIL:(e="",o=0,l)=>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!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>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!=l?l:{}}]})}};var m=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,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:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,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:O,HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:_});export{O as L,m as c};
@@ -1,28 +1,28 @@
1
- import{M as e}from"./screenSizeContext-268f62ee.js";import i from"styled-components";import a from"react";const t=i.div`
1
+ import{t as i}from"./theme-ccf55e31.js";import{M as a}from"./screenSizeContext-dff03e2b.js";import e from"styled-components";import s from"react";const t=e.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
 
5
5
  &[data-has-error] {
6
6
  input {
7
- border-color: ${e=>e.theme.colors.red700};
7
+ border-color: ${i.colors.red700};
8
8
  }
9
9
  }
10
10
 
11
11
  input {
12
12
  width: 100%;
13
13
  padding: 12px 16px;
14
- border: solid 1px ${e=>e.theme.colors.gray200};
15
- border-radius: ${e=>e.theme.borderRadius};
14
+ border: solid 1px ${i.colors.gray200};
15
+ border-radius: ${i.borderRadius};
16
16
 
17
17
  &:active,
18
18
  &:focus,
19
19
  &.focused {
20
- border-color: ${e=>e.color};
21
- box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor};
20
+ border-color: ${i=>i.color};
21
+ box-shadow: 0px 0px 2px 2px ${i=>i.shadowColor};
22
22
  }
23
23
 
24
24
  &:disabled {
25
- background-color: ${e=>e.theme.colors.gray100};
25
+ background-color: ${i.colors.gray100};
26
26
  cursor: not-allowed;
27
27
  }
28
28
  }
@@ -47,13 +47,13 @@ import{M as e}from"./screenSizeContext-268f62ee.js";import i from"styled-compone
47
47
  &[data-size='lg'] {
48
48
  input {
49
49
  font-size: 16px;
50
- font-weight: ${e=>e.theme.sizes.fwRegular};
51
- ${e.mbDown} {
50
+ font-weight: ${i.sizes.fwRegular};
51
+ ${a.mbDown} {
52
52
  font-size: 22px;
53
53
  line-height: 1.2;
54
54
  }
55
55
 
56
- ${e.mbUp} {
56
+ ${a.mbUp} {
57
57
  font-size: 26px;
58
58
  line-height: 1.2;
59
59
  }
@@ -61,14 +61,14 @@ import{M as e}from"./screenSizeContext-268f62ee.js";import i from"styled-compone
61
61
  }
62
62
  &[data-size='md'] {
63
63
  input {
64
- font-weight: ${e=>e.theme.sizes.fwRegular};
64
+ font-weight: ${i.sizes.fwRegular};
65
65
  line-height: 22px;
66
- ${e.mbDown} {
66
+ ${a.mbDown} {
67
67
  font-size: 14px;
68
68
  line-height: 1.2;
69
69
  }
70
70
 
71
- ${e.mbUp} {
71
+ ${a.mbUp} {
72
72
  font-size: 16px;
73
73
  line-height: 1.2;
74
74
  }
@@ -76,38 +76,38 @@ import{M as e}from"./screenSizeContext-268f62ee.js";import i from"styled-compone
76
76
  }
77
77
  &[data-size='sm'] {
78
78
  input {
79
- font-weight: ${e=>e.theme.sizes.fwRegular};
79
+ font-weight: ${i.sizes.fwRegular};
80
80
  line-height: 20px;
81
- ${e.mbDown} {
81
+ ${a.mbDown} {
82
82
  font-size: 13px;
83
83
  line-height: 1.5;
84
84
  }
85
85
 
86
- ${e.mbUp} {
86
+ ${a.mbUp} {
87
87
  font-size: 13px;
88
88
  line-height: 1.5;
89
89
  }
90
90
  }
91
91
  }
92
- `;i.label`
92
+ `;e.label`
93
93
  display: inline-block;
94
94
  margin-bottom: 4px;
95
- color: ${e=>e.theme.colors.gray600};
96
- font-weight: ${e=>e.theme.sizes.fwBold};
97
- `;const s=i.label`
98
- color: ${e=>e.theme.colors.red700};
99
- font-weight: ${e=>e.theme.sizes.fwRegular};
100
- `,o=i.div`
95
+ color: ${i.colors.gray600};
96
+ font-weight: ${i.sizes.fwBold};
97
+ `;const o=e.label`
98
+ color: ${i.colors.red700};
99
+ font-weight: ${i.sizes.fwRegular};
100
+ `,n=e.div`
101
101
  position: absolute;
102
102
  top: 50%;
103
103
  right: 16px;
104
104
  cursor: pointer;
105
105
  transform: translateY(-50%);
106
- `,n=i.div`
106
+ `,r=e.div`
107
107
  position: absolute;
108
108
  top: 50%;
109
109
  left: 16px;
110
110
  display: inline-flex;
111
111
  cursor: default;
112
112
  transform: translateY(-50%);
113
- `;var r="DjBFAbd";const l=({children:e,className:i,style:t,htmlFor:s,size:o})=>a.createElement("label",{"data-size":o,className:`${r} ${i||""}`,style:t,htmlFor:s},e),d={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"},"ms-MY":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"}},p=-1,c=-2;var h,m;!function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="msd"}(h||(h={})),function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="spesialis"}(m||(m={}));const E="vaksin-rotavirus",C={"vi-VN":{gsk:m.GSK,msd:m.MSD},"id-ID":{gsk:m.GSK,msd:m.MSD},"en-PH":{},"zh-TW":{},"ms-MY":{},"tl-PH":{}};var I=Object.freeze({__proto__:null,basePath:"/care",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"}},LOCALIZED_SLUGS:d,ID_OPTION_CURRENT_LOCATION:-1,ID_OPTION_ALL_LOCATION:-2,get CLIENT_KEY(){return h},get SLUG_CLIENT_KEY(){return m},SLUG_VACIN_ID:E,MAPPING_CLIENT_WITH_SLUG:C});export{h as C,c as I,l as L,C as M,t as S,n as a,o as b,I as c,s as d,d as e,p as f,E as g};
113
+ `;var l="DjBFAbd";const d=({children:i,className:a,style:e,htmlFor:t,size:o})=>s.createElement("label",{"data-size":o,className:`${l} ${a||""}`,style:e,htmlFor:t},i),c={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"},"ms-MY":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"}},p=-1,h=-2;var m,E;!function(i){i.GSK="gsk",i.ROCHE="roche",i.MSD="msd"}(m||(m={})),function(i){i.GSK="gsk",i.ROCHE="roche",i.MSD="spesialis"}(E||(E={}));const C="vaksin-rotavirus",I={"vi-VN":{gsk:E.GSK,msd:E.MSD},"id-ID":{gsk:E.GSK,msd:E.MSD},"en-PH":{},"zh-TW":{},"ms-MY":{},"tl-PH":{}};var S=Object.freeze({__proto__:null,basePath:"/care",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"}},LOCALIZED_SLUGS:c,ID_OPTION_CURRENT_LOCATION:-1,ID_OPTION_ALL_LOCATION:-2,get CLIENT_KEY(){return m},get SLUG_CLIENT_KEY(){return E},SLUG_VACIN_ID:C,MAPPING_CLIENT_WITH_SLUG:I});export{m as C,h as I,d as L,I as M,t as S,r as a,n as b,S as c,o as d,c as e,p as f,C as g};
@@ -1 +1 @@
1
- import"date-fns/locale";import"./Subot-0c4dab43.js";export{A as API_DATE_FORMAT,B as BEARER_TOKEN_COOKIE,c as CARE_BOOKING_LOCALES,C as CARE_LOCALES,b as CDN_ADDRESS,f as DATE_FNS_DATE_FORMAT,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,G as GA_TOKEN_COOKIE,I as ISO_FORMAT,L as LOCALE_SPECS,M as MAP_DOMAIN_BY_LOCALE,Q as QUERY_HEALTH_TOOL,R as RISK_SCREENER_NAME,a as RISK_SCREENER_SLUG,g as SSO_URL,S as STATIC_PAGES,T as TOGETHER_LOCALES,h as UP_BASEPATH,U as USER_GEOLOCATION_COORDINATES_COOKIE,e as basePath,d as domainLocales,j as siteHost,s as siteOptions}from"./index-b7b39aa3.js";export{i as isProduction}from"./isProduction-095ab64f.js";
1
+ import"date-fns/locale";import"./Subot-e272425a.js";export{A as API_DATE_FORMAT,B as BEARER_TOKEN_COOKIE,c as CARE_BOOKING_LOCALES,C as CARE_LOCALES,b as CDN_ADDRESS,f as DATE_FNS_DATE_FORMAT,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,G as GA_TOKEN_COOKIE,I as ISO_FORMAT,L as LOCALE_SPECS,M as MAP_DOMAIN_BY_LOCALE,Q as QUERY_HEALTH_TOOL,R as RISK_SCREENER_NAME,a as RISK_SCREENER_SLUG,g as SSO_URL,S as STATIC_PAGES,T as TOGETHER_LOCALES,h as UP_BASEPATH,U as USER_GEOLOCATION_COORDINATES_COOKIE,e as basePath,d as domainLocales,j as siteHost,s as siteOptions}from"./index-f75306ca.js";export{i as isProduction}from"./isProduction-b5290208.js";
@@ -1 +1 @@
1
- import{a as t}from"./tslib.es6-89288f42.js";import{i as e}from"./isProduction-095ab64f.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-842a2bb8.js";import{i as e}from"./isProduction-b5290208.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};
package/build/esm/ecom.js CHANGED
@@ -1 +1 @@
1
- import{t as o}from"./theme-c91f8447.js";export{c as Constants}from"./constants-eaf6c51c.js";export{t as Types}from"./types-4b3c5426.js";import"./index-b7b39aa3.js";import"date-fns/locale";import"./Subot-0c4dab43.js";import"./isProduction-095ab64f.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
1
+ import{t as o}from"./theme-ccf55e31.js";export{c as Constants}from"./constants-4c45be75.js";export{t as Types}from"./types-3f42ad37.js";import"./index-f75306ca.js";import"date-fns/locale";import"./Subot-e272425a.js";import"./isProduction-b5290208.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
@@ -1 +1 @@
1
- import e from"react";import{B as t}from"./index-c8b8773c.js";import{C as a}from"./index-ebc484da.js";import l from"dayjs";import{d as n}from"./index-b7b39aa3.js";import{t as o}from"./theme-c91f8447.js";import"./index-ca22339d.js";import{Flex as i,Stack as r,Box as c}from"@mantine/core";import"@mantine/dates";import"./Subot-0c4dab43.js";import"./gAssets.js";import{T as m}from"./index-dcd77e56.js";import"./screenSizeContext-268f62ee.js";import"styled-components";import"./isProduction-095ab64f.js";import{u as s}from"./useTranslations-1416cdcc.js";import"@mantine/hooks";import{L as d}from"./index-456e07e9.js";import{M as v}from"./index-40c22fc9.js";import"./translationsContext-8d25a828.js";import"string-format";import"./tslib.es6-89288f42.js";import"date-fns/locale";import"@mantine/carousel";import"classnames";import"lodash/throttle";import"./utils-0e7436d5.js";import"./index.styled-f34b713c.js";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:c,isMobile:d,locale:v})=>{var E,p,y,f,b,N,h,k,F,z,$,x,T,j,M,C,L,_,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==c?void 0:c.menu,O=(null===(p=null===(E=null==c?void 0:c.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==c?void 0:c.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(m,{size:"p1",weight:"bold"},null===(f=null==c?void 0:c.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(m,{size:"sm"},null===(b=null==c?void 0:c.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==c?void 0:c.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(z=K[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=K[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(m,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(T=K[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=K[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(m,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(C=null==c?void 0:c.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==c?void 0:c.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(m,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==c?void 0:c.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==c?void 0:c.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(w=null==c?void 0:c.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==c?void 0:c.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(m,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(A=null==c?void 0:c.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==c?void 0:c.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(m,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(m,{size:"sm"},null===(D=null==c?void 0:c.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==c?void 0:c.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const z=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:b,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:N,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(m,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(c,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(m,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(m,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},$=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(z,{footerMenu:n,background:i});export{$ as Footer};
1
+ import e from"react";import{B as t}from"./index-4eb2530b.js";import{C as a}from"./index-9d4a84ac.js";import l from"dayjs";import{d as n}from"./index-f75306ca.js";import{t as o}from"./theme-ccf55e31.js";import"./index-17d273a3.js";import{Flex as i,Stack as r,Box as m}from"@mantine/core";import"@mantine/dates";import"./Subot-e272425a.js";import"./gAssets.js";import{T as c}from"./index-e7f889b2.js";import"./screenSizeContext-dff03e2b.js";import"styled-components";import"./isProduction-b5290208.js";import{u as s}from"./useTranslations-14b7fcc5.js";import"@mantine/hooks";import{L as d}from"./index-9d393a92.js";import{M as v}from"./index-c9c584ed.js";import"./translationsContext-7856306b.js";import"string-format";import"./tslib.es6-842a2bb8.js";import"date-fns/locale";import"@mantine/carousel";import"classnames";import"lodash/throttle";import"./utils-cca2af3a.js";import"./index.styled-551f3c76.js";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:m,isMobile:d,locale:v})=>{var E,p,y,f,b,N,h,k,F,z,$,x,T,j,M,C,L,_,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==m?void 0:m.menu,O=(null===(p=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(c,{size:"p1",weight:"bold"},null===(f=null==m?void 0:m.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(z=K[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=K[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(T=K[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=K[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(C=null==m?void 0:m.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==m?void 0:m.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(c,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==m?void 0:m.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(w=null==m?void 0:m.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==m?void 0:m.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(c,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(c,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==m?void 0:m.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const z=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:b,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:N,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(m,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},$=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(z,{footerMenu:n,background:i});export{$ as Footer};
@@ -1 +1 @@
1
- import{d as s}from"./index-b7b39aa3.js";import{i as t}from"./isProduction-095ab64f.js";import"date-fns/locale";import"./Subot-0c4dab43.js";const e="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,e,o)=>{const i="https://hhg-common."+[e||this.getBaseDomain(),o||this.subPath,s].join("/");return t||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:t}=window.location,o=t.split("."),i=s[Object.keys(s).find((e=>t.includes(s[e])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return t=s,!isNaN(parseFloat(t))&&isFinite(t);var t}))||!i?e:i}return e}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
1
+ import{d as s}from"./index-f75306ca.js";import{i as t}from"./isProduction-b5290208.js";import"date-fns/locale";import"./Subot-e272425a.js";const e="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,e,o)=>{const i="https://hhg-common."+[e||this.getBaseDomain(),o||this.subPath,s].join("/");return t||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:t}=window.location,o=t.split("."),i=s[Object.keys(s).find((e=>t.includes(s[e])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return t=s,!isNaN(parseFloat(t))&&isFinite(t);var t}))||!i?e:i}return e}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
@@ -0,0 +1 @@
1
+ import{a as t}from"./tslib.es6-842a2bb8.js";import{g as o}from"./core-5b21c19e.js";import{n as i}from"./normalizeLink-03495796.js";import{c as l}from"./routing-a8a2d2fd.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const a="tl-PH"===o?"lang=fil":"";let s=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));s=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return s}catch(t){console.error(t)}})),a=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{a,n as f,e as g};