@hhgtech/hhg-components 1.27.71 → 1.27.73

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 (274) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care/components/organisms/bookingSearchBarV2/reducer.d.ts +14 -4
  4. package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -1
  5. package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +2 -1
  6. package/build/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +1 -1
  7. package/build/care/interfaces/types.d.ts +7 -5
  8. package/build/care.js +1 -1
  9. package/build/components.js +1 -1
  10. package/build/constants.js +1 -1
  11. package/build/core-1296b978.js +1 -0
  12. package/build/{dataTransform-fb2e9aef.js → dataTransform-b57ffe49.js} +1 -1
  13. package/build/ecom.js +1 -1
  14. package/build/esm/babyGrowth.js +2 -2
  15. package/build/esm/cache.js +1 -1
  16. package/build/esm/care/components/organisms/bookingSearchBarV2/reducer.d.ts +14 -4
  17. package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -1
  18. package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +2 -1
  19. package/build/esm/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +1 -1
  20. package/build/esm/care/interfaces/types.d.ts +7 -5
  21. package/build/esm/care.js +1 -1
  22. package/build/esm/components.js +1 -1
  23. package/build/esm/constants.js +1 -1
  24. package/build/esm/core-aef19cc1.js +1 -0
  25. package/build/esm/{dataTransform-472ab3cb.js → dataTransform-acd309eb.js} +1 -1
  26. package/build/esm/ecom.js +1 -1
  27. package/build/esm/{fixedBottomAdBlock-85d4c40e.js → fixedBottomAdBlock-4f598b4e.js} +1 -1
  28. package/build/esm/footer.js +1 -1
  29. package/build/esm/gAssets.js +1 -1
  30. package/build/esm/getDynamicHealthTool-e1e9eb88.js +1 -0
  31. package/build/esm/{getSocialList-a9e6accc.js → getSocialList-62952c6e.js} +1 -1
  32. package/build/esm/hooks.js +1 -1
  33. package/build/esm/i18n.js +1 -1
  34. package/build/esm/i18nV2.js +1 -1
  35. package/build/esm/{index-74d8cf2c.js → index-03fb3d5f.js} +1 -1
  36. package/build/esm/{index-93383cf3.js → index-25a079fc.js} +1 -1
  37. package/build/esm/{index-9ae2e2dd.js → index-2b4f9440.js} +1 -1
  38. package/build/esm/{index-37be0623.js → index-2bd17e3a.js} +1 -1
  39. package/build/esm/{index-2271114a.js → index-2dbad103.js} +1 -1
  40. package/build/esm/index-4c42fd2d.js +1 -0
  41. package/build/esm/{index-1afa0089.js → index-58d76b74.js} +1 -1
  42. package/build/esm/{index-24374711.js → index-61b40bb3.js} +6 -6
  43. package/build/esm/{index-07164e0d.js → index-6c3b66ef.js} +1 -1
  44. package/build/esm/{index-b0f9c8c2.js → index-7768bc42.js} +1 -1
  45. package/build/esm/{index-075c02f5.js → index-77a12ad4.js} +1 -1
  46. package/build/esm/index-a46315a8.js +1 -0
  47. package/build/esm/{index-c9209389.js → index-ac0440c7.js} +1 -1
  48. package/build/esm/{index-583c5caf.js → index-acb68002.js} +1 -1
  49. package/build/esm/{index-b88a25a3.js → index-b6603e31.js} +1 -1
  50. package/build/esm/{index-e43a53fe.js → index-ca8ba9cb.js} +1 -1
  51. package/build/esm/{index-2c50f4ad.js → index-d96a464a.js} +1 -1
  52. package/build/esm/{index-1da6924b.js → index-d99f5fe1.js} +2 -2
  53. package/build/esm/{index-d7a14122.js → index-dc45af44.js} +1 -1
  54. package/build/esm/{index-71b07919.js → index-e006ea08.js} +1 -1
  55. package/build/esm/{index-3f7f7771.js → index-e8aa27ee.js} +1 -1
  56. package/build/esm/index.js +1 -1
  57. package/build/esm/index.styled-574d9f4e.js +50 -0
  58. package/build/esm/{index.styled-bbbc0d87.js → index.styled-9454d250.js} +9 -9
  59. package/build/esm/{index.styled-5459405c.js → index.styled-f8d51cb2.js} +1 -1
  60. package/build/esm/lead.js +1 -1
  61. package/build/esm/mantine.js +1 -1
  62. package/build/esm/misc.js +1 -1
  63. package/build/esm/navigation.js +1 -1
  64. package/build/esm/onboarding.js +1 -1
  65. package/build/esm/onboardingV2.js +1 -1
  66. package/build/esm/pwg.js +5 -5
  67. package/build/esm/{routing-c886133a.js → routing-2ca62b4e.js} +1 -1
  68. package/build/esm/together.js +1 -1
  69. package/build/esm/{types-073fcde8.js → types-9b1fb32b.js} +1 -1
  70. package/build/esm/{types-14b6fe12.js → types-d69ee206.js} +29 -28
  71. package/build/esm/types.js +1 -1
  72. package/build/esm/useHealthToolCache-77748b45.js +1 -0
  73. package/build/esm/{useRafState-b29e29b6.js → useRafState-24287f60.js} +1 -1
  74. package/build/esm/{useTranslations-94a298de.js → useTranslations-e8adac8a.js} +1 -1
  75. package/build/esm/{utils-3a82f3b7.js → utils-0f4c6649.js} +1 -1
  76. package/build/esm/{utils-6dbfa2e2.js → utils-49cd0015.js} +1 -1
  77. package/build/esm/vaccination.js +5 -5
  78. package/build/{fixedBottomAdBlock-888c0461.js → fixedBottomAdBlock-dd768903.js} +1 -1
  79. package/build/footer.js +1 -1
  80. package/build/gAssets.js +1 -1
  81. package/build/getDynamicHealthTool-365b67da.js +1 -0
  82. package/build/{getSocialList-56cc0bdd.js → getSocialList-a0d8c4a7.js} +1 -1
  83. package/build/hooks.js +1 -1
  84. package/build/i18n.js +1 -1
  85. package/build/i18nV2.js +1 -1
  86. package/build/{index-5f1b82f8.js → index-1f22fb4d.js} +1 -1
  87. package/build/{index-c67a81fe.js → index-2115a785.js} +1 -1
  88. package/build/{index-4320e812.js → index-2ba9af52.js} +1 -1
  89. package/build/{index-fc5ac11f.js → index-2bafc328.js} +1 -1
  90. package/build/{index-3594cf46.js → index-3cfe6be9.js} +3 -3
  91. package/build/{index-18bf24c4.js → index-487def80.js} +2 -2
  92. package/build/{index-586f414a.js → index-54f6d8ba.js} +1 -1
  93. package/build/{index-dcff1800.js → index-56226bf8.js} +1 -1
  94. package/build/{index-c4863fbc.js → index-650f746c.js} +1 -1
  95. package/build/{index-87f1c61a.js → index-6c6477b0.js} +1 -1
  96. package/build/index-70e4f70a.js +53 -0
  97. package/build/{index-f5e97467.js → index-8cac71fc.js} +1 -1
  98. package/build/{index-d2593989.js → index-98b4c324.js} +1 -1
  99. package/build/{index-bdb74451.js → index-b2cc7acc.js} +1 -1
  100. package/build/{index-e57e3072.js → index-bf806fa4.js} +1 -1
  101. package/build/index-e0fd117e.js +1 -0
  102. package/build/{index-0b86a969.js → index-eabacc42.js} +1 -1
  103. package/build/{index-04de4f49.js → index-f33dd806.js} +1 -1
  104. package/build/{index-74225755.js → index-f56461c2.js} +1 -1
  105. package/build/{index-e6494985.js → index-f5843f88.js} +1 -1
  106. package/build/{index-03ced1e7.js → index-fd68bdb7.js} +1 -1
  107. package/build/index.js +1 -1
  108. package/build/{index.styled-04c914b8.js → index.styled-38be6a23.js} +5 -5
  109. package/build/{index.styled-aeedd2f1.js → index.styled-ab1adfdd.js} +1 -1
  110. package/build/{index.styled-5de77bed.js → index.styled-cce65f47.js} +3 -3
  111. package/build/lead.js +1 -1
  112. package/build/mantine.js +1 -1
  113. package/build/misc.js +1 -1
  114. package/build/navigation.js +1 -1
  115. package/build/onboarding.js +1 -1
  116. package/build/onboardingV2.js +1 -1
  117. package/build/pwg.js +1 -1
  118. package/build/{routing-3f03b7fc.js → routing-eb58bf99.js} +1 -1
  119. package/build/together.js +1 -1
  120. package/build/{types-4357b272.js → types-c6b697e7.js} +62 -61
  121. package/build/{types-bc949777.js → types-dc124c2c.js} +1 -1
  122. package/build/types.js +1 -1
  123. package/build/useHealthToolCache-374f4461.js +1 -0
  124. package/build/{useRafState-af8a4d48.js → useRafState-2bfbf48d.js} +1 -1
  125. package/build/{useTranslations-f946cddd.js → useTranslations-388b2c98.js} +1 -1
  126. package/build/{utils-b69e0f1b.js → utils-2bd51637.js} +1 -1
  127. package/build/{utils-5f2e4ada.js → utils-66fc3fa8.js} +1 -1
  128. package/build/vaccination.js +1 -1
  129. package/package.json +1 -1
  130. package/build/core-00fac4a1.js +0 -1
  131. package/build/esm/core-fe8e3ac4.js +0 -1
  132. package/build/esm/getDynamicHealthTool-0f0a6a55.js +0 -1
  133. package/build/esm/index-783fd8db.js +0 -1
  134. package/build/esm/index-d754d2c5.js +0 -1
  135. package/build/esm/index.styled-33c36729.js +0 -50
  136. package/build/esm/useHealthToolCache-3b53cefe.js +0 -1
  137. package/build/getDynamicHealthTool-2491d41c.js +0 -1
  138. package/build/index-9467210b.js +0 -53
  139. package/build/index-cc6403bf.js +0 -1
  140. package/build/useHealthToolCache-7cc7bbb4.js +0 -1
  141. /package/build/{BMI_BOYS.percentile.monthly-ce85cbaa.js → BMI_BOYS.percentile.monthly-e7969a8c.js} +0 -0
  142. /package/build/{BMI_BOYS.percentile.weekly-907fe858.js → BMI_BOYS.percentile.weekly-42b951dc.js} +0 -0
  143. /package/build/{BMI_BOYS.percentile.yearly-53aebdc5.js → BMI_BOYS.percentile.yearly-933664a5.js} +0 -0
  144. /package/build/{BMI_BOYS.zscore.monthly-3f8ae54d.js → BMI_BOYS.zscore.monthly-f17ef1fa.js} +0 -0
  145. /package/build/{BMI_BOYS.zscore.weekly-d538296e.js → BMI_BOYS.zscore.weekly-ed7cc2ee.js} +0 -0
  146. /package/build/{BMI_BOYS.zscore.yearly-a18a90a9.js → BMI_BOYS.zscore.yearly-096bfd78.js} +0 -0
  147. /package/build/{BMI_GIRLS.percentile.monthly-a8bfe72c.js → BMI_GIRLS.percentile.monthly-bdb9e678.js} +0 -0
  148. /package/build/{BMI_GIRLS.percentile.weekly-0c4f641f.js → BMI_GIRLS.percentile.weekly-e9e42718.js} +0 -0
  149. /package/build/{BMI_GIRLS.percentile.yearly-296222bd.js → BMI_GIRLS.percentile.yearly-ecfbd535.js} +0 -0
  150. /package/build/{BMI_GIRLS.zscore.monthly-3005d7fb.js → BMI_GIRLS.zscore.monthly-8b52f84f.js} +0 -0
  151. /package/build/{BMI_GIRLS.zscore.weekly-882189f3.js → BMI_GIRLS.zscore.weekly-c1519c5f.js} +0 -0
  152. /package/build/{BMI_GIRLS.zscore.yearly-d5ff80d7.js → BMI_GIRLS.zscore.yearly-c72f1e1b.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-07cdda99.js → HEAD CIRCUM_BOYS.percentile.monthly-d6942910.js} +0 -0
  154. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1a366f96.js → HEAD CIRCUM_BOYS.percentile.weekly-7bbe3d72.js} +0 -0
  155. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-d6cf2202.js → HEAD CIRCUM_BOYS.percentile.yearly-cf2082c8.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-db5b94ab.js → HEAD CIRCUM_BOYS.zscore.monthly-fa1d4ea1.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-35b29074.js → HEAD CIRCUM_BOYS.zscore.weekly-46201be1.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-175dc793.js → HEAD CIRCUM_BOYS.zscore.yearly-6f6a75ef.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-ea684642.js → HEAD CIRCUM_GIRLS.percentile.monthly-2d3c69ed.js} +0 -0
  160. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-37333fc8.js → HEAD CIRCUM_GIRLS.percentile.weekly-38c7470e.js} +0 -0
  161. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-8f027f18.js → HEAD CIRCUM_GIRLS.percentile.yearly-7e815061.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-a89a959c.js → HEAD CIRCUM_GIRLS.zscore.monthly-966e1673.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ee4a111b.js → HEAD CIRCUM_GIRLS.zscore.weekly-397d5497.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0ed20f95.js → HEAD CIRCUM_GIRLS.zscore.yearly-51c69a5c.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.percentile.monthly-1140adef.js → HEIGHT_BOYS.percentile.monthly-bf8bed39.js} +0 -0
  166. /package/build/{HEIGHT_BOYS.percentile.weekly-3bbf0b1f.js → HEIGHT_BOYS.percentile.weekly-51275e3e.js} +0 -0
  167. /package/build/{HEIGHT_BOYS.percentile.yearly-ae780adf.js → HEIGHT_BOYS.percentile.yearly-d9baf324.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.zscore.monthly-78ed0896.js → HEIGHT_BOYS.zscore.monthly-4c7134a9.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.zscore.weekly-6ad41d21.js → HEIGHT_BOYS.zscore.weekly-ea470e59.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.zscore.yearly-8776c3ee.js → HEIGHT_BOYS.zscore.yearly-b4001eac.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.percentile.monthly-8e628730.js → HEIGHT_GIRLS.percentile.monthly-97007a17.js} +0 -0
  172. /package/build/{HEIGHT_GIRLS.percentile.weekly-01b09969.js → HEIGHT_GIRLS.percentile.weekly-2d9cf38b.js} +0 -0
  173. /package/build/{HEIGHT_GIRLS.percentile.yearly-af862b58.js → HEIGHT_GIRLS.percentile.yearly-dcc7e180.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.zscore.monthly-fdb87537.js → HEIGHT_GIRLS.zscore.monthly-05dab57e.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.zscore.weekly-a312ee05.js → HEIGHT_GIRLS.zscore.weekly-9c1227b0.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.zscore.yearly-f9b3d318.js → HEIGHT_GIRLS.zscore.yearly-f69f0c16.js} +0 -0
  177. /package/build/{Onboarding-6046991e.js → Onboarding-763263bd.js} +0 -0
  178. /package/build/{Visible-8dfac33c.js → Visible-1510daae.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.percentile.monthly-c7c2cbf5.js → WEIGHT_BOYS.percentile.monthly-5aef6340.js} +0 -0
  180. /package/build/{WEIGHT_BOYS.percentile.weekly-9551af52.js → WEIGHT_BOYS.percentile.weekly-78eae415.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.percentile.yearly-87abbcbf.js → WEIGHT_BOYS.percentile.yearly-3e111a86.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.zscore.monthly-346a63be.js → WEIGHT_BOYS.zscore.monthly-88e278fc.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.zscore.weekly-ae0238bd.js → WEIGHT_BOYS.zscore.weekly-ad3d219a.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.zscore.yearly-adfb0402.js → WEIGHT_BOYS.zscore.yearly-cdc469bc.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.percentile.monthly-85a3a57a.js → WEIGHT_GIRLS.percentile.monthly-ef315c6b.js} +0 -0
  186. /package/build/{WEIGHT_GIRLS.percentile.weekly-0be4d3e9.js → WEIGHT_GIRLS.percentile.weekly-b9b2294d.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.percentile.yearly-8d6a8a82.js → WEIGHT_GIRLS.percentile.yearly-573f8c5f.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.zscore.monthly-d3dd7142.js → WEIGHT_GIRLS.zscore.monthly-dcf55ae9.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.zscore.weekly-6017e0f0.js → WEIGHT_GIRLS.zscore.weekly-32036680.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.zscore.yearly-fb435d58.js → WEIGHT_GIRLS.zscore.yearly-f472782e.js} +0 -0
  191. /package/build/{constants-dec7610d.js → constants-2a1ae49b.js} +0 -0
  192. /package/build/{cookieHelper-7d5fd567.js → cookieHelper-c02a9835.js} +0 -0
  193. /package/build/{dataTransform-a105042f.js → dataTransform-50ca2b71.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.percentile.monthly-fe47e6cd.js → BMI_BOYS.percentile.monthly-026be207.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.percentile.weekly-aa044b48.js → BMI_BOYS.percentile.weekly-9d11ceed.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.percentile.yearly-fd50bc0e.js → BMI_BOYS.percentile.yearly-915860f5.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.zscore.monthly-bafb2899.js → BMI_BOYS.zscore.monthly-027665dd.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.zscore.weekly-7ec736c9.js → BMI_BOYS.zscore.weekly-36332c51.js} +0 -0
  199. /package/build/esm/{BMI_BOYS.zscore.yearly-f2a39ed3.js → BMI_BOYS.zscore.yearly-01355236.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.percentile.monthly-0710ab0b.js → BMI_GIRLS.percentile.monthly-de2fbc61.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.percentile.weekly-9abed752.js → BMI_GIRLS.percentile.weekly-a3e37e19.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.percentile.yearly-04436686.js → BMI_GIRLS.percentile.yearly-3186aba5.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.zscore.monthly-8725527a.js → BMI_GIRLS.zscore.monthly-c8b642f7.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.zscore.weekly-38c97231.js → BMI_GIRLS.zscore.weekly-c7892f39.js} +0 -0
  205. /package/build/esm/{BMI_GIRLS.zscore.yearly-12253d20.js → BMI_GIRLS.zscore.yearly-2bf35542.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-119dfd3c.js → HEAD CIRCUM_BOYS.percentile.monthly-bc65812f.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-7284d9b1.js → HEAD CIRCUM_BOYS.percentile.weekly-c963ce3c.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e139f816.js → HEAD CIRCUM_BOYS.percentile.yearly-91e16bf5.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-26daac23.js → HEAD CIRCUM_BOYS.zscore.monthly-f7ecf3be.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c2c564d0.js → HEAD CIRCUM_BOYS.zscore.weekly-a052bb19.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-a9b1ab42.js → HEAD CIRCUM_BOYS.zscore.yearly-272adbaa.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-8f19524f.js → HEAD CIRCUM_GIRLS.percentile.monthly-6a7b41c4.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-6cdaeadb.js → HEAD CIRCUM_GIRLS.percentile.weekly-095cbc85.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-649c05a6.js → HEAD CIRCUM_GIRLS.percentile.yearly-0133cc9d.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3bcbed96.js → HEAD CIRCUM_GIRLS.zscore.monthly-bcc9ccfd.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e0c17fa2.js → HEAD CIRCUM_GIRLS.zscore.weekly-c6eda8cb.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-ee6da83b.js → HEAD CIRCUM_GIRLS.zscore.yearly-9d59e363.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-fa7c526e.js → HEIGHT_BOYS.percentile.monthly-9b992c6a.js} +0 -0
  219. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-085d6a9f.js → HEIGHT_BOYS.percentile.weekly-3a8a7218.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-d6aaab6f.js → HEIGHT_BOYS.percentile.yearly-ab7c235b.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-da391c1b.js → HEIGHT_BOYS.zscore.monthly-a9e24711.js} +0 -0
  222. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-bb540454.js → HEIGHT_BOYS.zscore.weekly-f15762c5.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-348b3816.js → HEIGHT_BOYS.zscore.yearly-e918cdf5.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-b51d0fd6.js → HEIGHT_GIRLS.percentile.monthly-06edf320.js} +0 -0
  225. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-994e98db.js → HEIGHT_GIRLS.percentile.weekly-cada39b4.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-c75f410e.js → HEIGHT_GIRLS.percentile.yearly-c6255de8.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-e7264d3b.js → HEIGHT_GIRLS.zscore.monthly-59b2af8e.js} +0 -0
  228. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0f8554b6.js → HEIGHT_GIRLS.zscore.weekly-1d14e2b6.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-2f3f3a34.js → HEIGHT_GIRLS.zscore.yearly-e839dbb2.js} +0 -0
  230. /package/build/esm/{Onboarding-232ac075.js → Onboarding-ff78862f.js} +0 -0
  231. /package/build/esm/{Visible-39409091.js → Visible-df051a7d.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-2a8bb322.js → WEIGHT_BOYS.percentile.monthly-ca848d26.js} +0 -0
  233. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-25425843.js → WEIGHT_BOYS.percentile.weekly-3631d852.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4cc9d801.js → WEIGHT_BOYS.percentile.yearly-9691b24d.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-dccd7084.js → WEIGHT_BOYS.zscore.monthly-24aae22c.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-c494ae68.js → WEIGHT_BOYS.zscore.weekly-a573fac1.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6a7fcff9.js → WEIGHT_BOYS.zscore.yearly-24aeb0e7.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-0cc1fb2a.js → WEIGHT_GIRLS.percentile.monthly-eb2b71f3.js} +0 -0
  239. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9c40d0ba.js → WEIGHT_GIRLS.percentile.weekly-0fc5ac47.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-88a45f13.js → WEIGHT_GIRLS.percentile.yearly-54f86a24.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-bc332015.js → WEIGHT_GIRLS.zscore.monthly-6c507f4b.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-46c702bd.js → WEIGHT_GIRLS.zscore.weekly-fd6436d5.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-8358d95b.js → WEIGHT_GIRLS.zscore.yearly-e0b72bae.js} +0 -0
  244. /package/build/esm/{constants-454ca790.js → constants-bd2e2bb9.js} +0 -0
  245. /package/build/esm/{cookieHelper-bf990dc8.js → cookieHelper-24e8a5fb.js} +0 -0
  246. /package/build/esm/{dataTransform-b313aa54.js → dataTransform-6a627eb5.js} +0 -0
  247. /package/build/esm/{index-747533b3.js → index-1626c7eb.js} +0 -0
  248. /package/build/esm/{isProduction-51e5a882.js → isProduction-b12d596a.js} +0 -0
  249. /package/build/esm/{localizeNumberFormat-1db9658b.js → localizeNumberFormat-1cebd783.js} +0 -0
  250. /package/build/esm/{normalizeLink-01dd46d6.js → normalizeLink-86bd6e1e.js} +0 -0
  251. /package/build/esm/{paths-2551a89f.js → paths-64ccdd58.js} +0 -0
  252. /package/build/esm/{screenSizeContext-2fd9933a.js → screenSizeContext-4eb558b5.js} +0 -0
  253. /package/build/esm/{theme-3f5fb9b4.js → theme-6958f818.js} +0 -0
  254. /package/build/esm/{translationsContext-8e27754a.js → translationsContext-cf558e50.js} +0 -0
  255. /package/build/esm/{tslib.es6-c990ebbd.js → tslib.es6-aa6dda30.js} +0 -0
  256. /package/build/esm/{types-59994293.js → types-614fc596.js} +0 -0
  257. /package/build/esm/{useIsInit-399900be.js → useIsInit-1907bb7f.js} +0 -0
  258. /package/build/esm/{useOutsideClick-93403663.js → useOutsideClick-7843e861.js} +0 -0
  259. /package/build/esm/{useScrollbarSize-85d86621.js → useScrollbarSize-859a83e2.js} +0 -0
  260. /package/build/esm/{useUniqueId-d2edd2de.js → useUniqueId-224e1126.js} +0 -0
  261. /package/build/{index-484cc895.js → index-68c32ed4.js} +0 -0
  262. /package/build/{isProduction-6f51bfd8.js → isProduction-5decd5ee.js} +0 -0
  263. /package/build/{localizeNumberFormat-6c838ca4.js → localizeNumberFormat-fc44b259.js} +0 -0
  264. /package/build/{normalizeLink-7adeb83a.js → normalizeLink-2e7b8c35.js} +0 -0
  265. /package/build/{paths-edf8d807.js → paths-d8522736.js} +0 -0
  266. /package/build/{screenSizeContext-3bce883f.js → screenSizeContext-58d16a70.js} +0 -0
  267. /package/build/{theme-2b27c2a9.js → theme-714ba8eb.js} +0 -0
  268. /package/build/{translationsContext-10468cf0.js → translationsContext-5dbe0768.js} +0 -0
  269. /package/build/{tslib.es6-cd3b6b6c.js → tslib.es6-71ed3e73.js} +0 -0
  270. /package/build/{types-4777e5c6.js → types-dfb71ff9.js} +0 -0
  271. /package/build/{useIsInit-f81023ac.js → useIsInit-a3d864b6.js} +0 -0
  272. /package/build/{useOutsideClick-fd083518.js → useOutsideClick-1fd814a9.js} +0 -0
  273. /package/build/{useScrollbarSize-b84c486c.js → useScrollbarSize-79ed5c61.js} +0 -0
  274. /package/build/{useUniqueId-908d46ed.js → useUniqueId-3d496ffe.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{D as e}from"./index-24374711.js";export{B as BabyGrowthGender}from"./index-24374711.js";import t,{useMemo as r,useRef as l,useState as o,useEffect as a}from"react";import{L as i,G as n,B as c,a as s}from"./Onboarding-232ac075.js";import{t as d}from"./theme-3f5fb9b4.js";import{T as m}from"./index-d754d2c5.js";import C from"styled-components";import{B as p}from"./index-c9209389.js";import{I as h}from"./index-1da6924b.js";import{M as y}from"./index-783fd8db.js";import{h as g,n as u}from"./screenSizeContext-2fd9933a.js";import b from"dayjs";import{u as f}from"./useTranslations-94a298de.js";import"lodash/debounce";import"./isProduction-51e5a882.js";import"./index-93383cf3.js";import{a as E,l as x}from"./localizeNumberFormat-1db9658b.js";import{H as w}from"./utils-6dbfa2e2.js";import{_ as v,a as L}from"./tslib.es6-c990ebbd.js";import{C as M}from"./index-71b07919.js";import"./gAssets.js";import"@mantine/core";import"@mantine/dates";import"@mantine/hooks";import{a as k}from"./useOutsideClick-93403663.js";import{M as H}from"./index-075c02f5.js";import{I}from"./index-3f7f7771.js";import{ResponsiveContainer as j,LineChart as S,CartesianGrid as G,Tooltip as R,XAxis as z,YAxis as Z,Line as _,ReferenceDot as N}from"recharts";import V from"lodash/chunk";import"./useUniqueId-d2edd2de.js";import"lodash/throttle";import"./translationsContext-8e27754a.js";import"string-format";import"date-fns/locale";import"react-keyed-flatten-children";import"@mantine/carousel";import"./cookieHelper-bf990dc8.js";import"slugify";import"./useScrollbarSize-85d86621.js";import"react-dom";const T=C.div`
1
+ import{D as e}from"./index-61b40bb3.js";export{B as BabyGrowthGender}from"./index-61b40bb3.js";import t,{useMemo as r,useRef as l,useState as o,useEffect as a}from"react";import{L as i,G as n,B as c,a as s}from"./Onboarding-ff78862f.js";import{t as d}from"./theme-6958f818.js";import{T as m}from"./index-4c42fd2d.js";import C from"styled-components";import{B as p}from"./index-ac0440c7.js";import{I as h}from"./index-d99f5fe1.js";import{M as y}from"./index-a46315a8.js";import{h as g,n as u}from"./screenSizeContext-4eb558b5.js";import b from"dayjs";import{u as f}from"./useTranslations-e8adac8a.js";import"lodash/debounce";import"./isProduction-b12d596a.js";import"./index-25a079fc.js";import{a as E,l as x}from"./localizeNumberFormat-1cebd783.js";import{H as w}from"./utils-49cd0015.js";import{_ as v,a as L}from"./tslib.es6-aa6dda30.js";import{C as M}from"./index-e006ea08.js";import"./gAssets.js";import"@mantine/core";import"@mantine/dates";import"@mantine/hooks";import{a as k}from"./useOutsideClick-7843e861.js";import{M as H}from"./index-77a12ad4.js";import{I}from"./index-e8aa27ee.js";import{ResponsiveContainer as j,LineChart as S,CartesianGrid as G,Tooltip as R,XAxis as z,YAxis as Z,Line as _,ReferenceDot as N}from"recharts";import V from"lodash/chunk";import"./useUniqueId-224e1126.js";import"lodash/throttle";import"./translationsContext-cf558e50.js";import"string-format";import"date-fns/locale";import"react-keyed-flatten-children";import"@mantine/carousel";import"./cookieHelper-24e8a5fb.js";import"slugify";import"./useScrollbarSize-859a83e2.js";import"react-dom";const T=C.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  gap: 16px;
@@ -381,7 +381,7 @@ import{D as e}from"./index-24374711.js";export{B as BabyGrowthGender}from"./inde
381
381
  }
382
382
  }
383
383
  }
384
- `,he=({isActive:e,onChange:r,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=f(),n="marryBaby"===a;return t.createElement(pe,{onClick:()=>r("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?t.createElement("div",{className:"title"},t.createElement(y,{type:"bodytext-1",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"},e&&t.createElement(h.CheckActiveMB,{size:26}))):t.createElement("div",{className:"title"},t.createElement(m,{size:"p2",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"})),t.createElement(I,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ye=e=>{var r,l,{babyProfiles:a,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:C,open:h,isMobile:g,isMyProfile:u=!1,buttonGroup:b,newBabyValue:E,onNewBabyValueChange:x,siteType:w,buttonText:L,headerText:M}=e,k=v(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>u?t.createElement(t.Fragment,null,t.createElement(p,{theme:w,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),t.createElement(p,{theme:w,size:"lg",color:"primary",onClick:()=>{null==e||e(),u?null==C||C(H):null==s||s(H),n()}},j(u?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):t.createElement(p,{theme:w,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},L||j("chooseBaby.button")),[H,I]=o(String(i)||String(null===(r=a[0])||void 0===r?void 0:r.id)),{t:j}=f();return g?t.createElement(de,Object.assign({title:M||"Baby profiles",onClose:n,open:h,placement:"bottom"},k),(({internalClose:e})=>{var r;return t.createElement("div",{className:"add-profile-container"},t.createElement("div",{className:"profile-container"},null===(r=a||[])||void 0===r?void 0:r.map((e=>t.createElement(J,{siteType:w,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!u&&t.createElement(he,{siteType:w,value:E,onInputChange:x,isActive:"new"===H,onChange:I})),t.createElement("div",{className:"button-group"},b||B(e)))})):t.createElement(me,{type:"confirm",isOpen:h,onClose:n,siteType:w},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},"marryBaby"===w?t.createElement(y,{type:"subtitle-1",color:d.mbColors.dark},j("chooseBaby.title")):t.createElement(m,{size:"s2",type:"semiBold"},M||j("chooseBaby.title")),t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},t.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),t.createElement("div",{className:"profile-container"},null===(l=a||[])||void 0===l?void 0:l.map((e=>t.createElement(J,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:w}))),!u&&t.createElement(he,{value:E,onInputChange:x,isActive:"new"===H,onChange:I,siteType:w})),t.createElement("div",{className:"button-group"},b||B()))},ge={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-25425843.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-2a8bb322.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-4cc9d801.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-085d6a9f.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-fa7c526e.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-d6aaab6f.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-7284d9b1.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-119dfd3c.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-e139f816.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-aa044b48.js"),[s.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-fe47e6cd.js"),[s.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-fd50bc0e.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-9c40d0ba.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-0cc1fb2a.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-88a45f13.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-994e98db.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-b51d0fd6.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-c75f410e.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-6cdaeadb.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-8f19524f.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-649c05a6.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-9abed752.js"),[s.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-0710ab0b.js"),[s.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-04436686.js")}}},ue={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-c494ae68.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-dccd7084.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-6a7fcff9.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-bb540454.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-da391c1b.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-348b3816.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-c2c564d0.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-26daac23.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-a9b1ab42.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-7ec736c9.js"),[s.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-bafb2899.js"),[s.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-f2a39ed3.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-46c702bd.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-bc332015.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-8358d95b.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-0f8554b6.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-e7264d3b.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-2f3f3a34.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-e0c17fa2.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-3bcbed96.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-ee6da83b.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-38c97231.js"),[s.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-8725527a.js"),[s.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-12253d20.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},fe=(e,t,r,l)=>l===i.Indonesia?ue[e][t][r]():ge[e][t][r](),Ee=(e,t)=>{const[r,l]=V(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},xe=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ve=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Me=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",d.colors.primary50),m.setAttribute("fill",d.colors.primary50),m.setAttribute("x",a),m.setAttribute("y",i),m.setAttribute("height",n),m.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(m)}else t.appendChild(r[e]);console.log(t)}},ke=C.div`
384
+ `,he=({isActive:e,onChange:r,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=f(),n="marryBaby"===a;return t.createElement(pe,{onClick:()=>r("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?t.createElement("div",{className:"title"},t.createElement(y,{type:"bodytext-1",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"},e&&t.createElement(h.CheckActiveMB,{size:26}))):t.createElement("div",{className:"title"},t.createElement(m,{size:"p2",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"})),t.createElement(I,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ye=e=>{var r,l,{babyProfiles:a,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:C,open:h,isMobile:g,isMyProfile:u=!1,buttonGroup:b,newBabyValue:E,onNewBabyValueChange:x,siteType:w,buttonText:L,headerText:M}=e,k=v(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>u?t.createElement(t.Fragment,null,t.createElement(p,{theme:w,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),t.createElement(p,{theme:w,size:"lg",color:"primary",onClick:()=>{null==e||e(),u?null==C||C(H):null==s||s(H),n()}},j(u?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):t.createElement(p,{theme:w,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},L||j("chooseBaby.button")),[H,I]=o(String(i)||String(null===(r=a[0])||void 0===r?void 0:r.id)),{t:j}=f();return g?t.createElement(de,Object.assign({title:M||"Baby profiles",onClose:n,open:h,placement:"bottom"},k),(({internalClose:e})=>{var r;return t.createElement("div",{className:"add-profile-container"},t.createElement("div",{className:"profile-container"},null===(r=a||[])||void 0===r?void 0:r.map((e=>t.createElement(J,{siteType:w,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!u&&t.createElement(he,{siteType:w,value:E,onInputChange:x,isActive:"new"===H,onChange:I})),t.createElement("div",{className:"button-group"},b||B(e)))})):t.createElement(me,{type:"confirm",isOpen:h,onClose:n,siteType:w},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},"marryBaby"===w?t.createElement(y,{type:"subtitle-1",color:d.mbColors.dark},j("chooseBaby.title")):t.createElement(m,{size:"s2",type:"semiBold"},M||j("chooseBaby.title")),t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},t.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),t.createElement("div",{className:"profile-container"},null===(l=a||[])||void 0===l?void 0:l.map((e=>t.createElement(J,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:w}))),!u&&t.createElement(he,{value:E,onInputChange:x,isActive:"new"===H,onChange:I,siteType:w})),t.createElement("div",{className:"button-group"},b||B()))},ge={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-3631d852.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-ca848d26.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-9691b24d.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-3a8a7218.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-9b992c6a.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-ab7c235b.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-c963ce3c.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-bc65812f.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-91e16bf5.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-9d11ceed.js"),[s.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-026be207.js"),[s.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-915860f5.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-0fc5ac47.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-eb2b71f3.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-54f86a24.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-cada39b4.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-06edf320.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-c6255de8.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-095cbc85.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-6a7b41c4.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-0133cc9d.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-a3e37e19.js"),[s.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-de2fbc61.js"),[s.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-3186aba5.js")}}},ue={[n.Boy]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-a573fac1.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-24aae22c.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-24aeb0e7.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-f15762c5.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-a9e24711.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-e918cdf5.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-a052bb19.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-f7ecf3be.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-272adbaa.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-36332c51.js"),[s.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-027665dd.js"),[s.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-01355236.js")}},[n.Girl]:{[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-fd6436d5.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-6c507f4b.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-e0b72bae.js")},[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-1d14e2b6.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-59b2af8e.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-e839dbb2.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-c6eda8cb.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-bcc9ccfd.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-9d59e363.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-c7892f39.js"),[s.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-c8b642f7.js"),[s.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-2bf35542.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},fe=(e,t,r,l)=>l===i.Indonesia?ue[e][t][r]():ge[e][t][r](),Ee=(e,t)=>{const[r,l]=V(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},xe=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),we=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ve=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Me=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",d.colors.primary50),m.setAttribute("fill",d.colors.primary50),m.setAttribute("x",a),m.setAttribute("y",i),m.setAttribute("height",n),m.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(m)}else t.appendChild(r[e]);console.log(t)}},ke=C.div`
385
385
  position: relative;
386
386
  .custom-chart-label {
387
387
  display: flex;
@@ -1 +1 @@
1
- export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-fe8e3ac4.js";import"./tslib.es6-c990ebbd.js";import"./isProduction-51e5a882.js";
1
+ export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-aef19cc1.js";import"./tslib.es6-aa6dda30.js";import"./isProduction-b12d596a.js";
@@ -1,4 +1,4 @@
1
- import { CareLocaleType, City, SearchTabSectionApi, SearchCityByGeoIpApi, SearchBarSectionItemApi, Specialty } from 'care/interfaces/types';
1
+ import { CareLocaleType, City, SearchBarTabSectionApi, SearchCityByGeoIpApi, SearchBarSectionItemApi, Specialty } from 'care/interfaces/types';
2
2
  import { GeoLocationPermission, GPSType } from 'interfaces/types';
3
3
  import { FocusedType } from './types';
4
4
  export type ReducerState = {
@@ -16,8 +16,8 @@ export type ReducerState = {
16
16
  defaultCity: City | null;
17
17
  initialCities: City[];
18
18
  cities: City[];
19
- searchResults: SearchTabSectionApi;
20
- initialSearchResults: SearchTabSectionApi;
19
+ searchResults: SearchBarTabSectionApi;
20
+ initialSearchResults: SearchBarTabSectionApi;
21
21
  isLoadingCities: boolean;
22
22
  isLoadingSearchResults: boolean;
23
23
  isMobileModalOpened: boolean;
@@ -51,6 +51,7 @@ export declare enum ActionTypes {
51
51
  FetchCitiesByKeywordComplete = "fetch cities by keyword finish",
52
52
  DisplayInitialCities = "display initial cities",
53
53
  DisplayInitialSearchResults = "display initial search results",
54
+ UpdateInitialSearchResults = "update initial search results",
54
55
  GrantGeoLocationPermission = "grant geolocation permission",
55
56
  DenyGeoLocationPermission = "deny geolocation permission",
56
57
  OpenMobileModal = "open mobile modal",
@@ -103,7 +104,10 @@ export type Action = {
103
104
  type: ActionTypes.FetchSearchResultsStart;
104
105
  } | {
105
106
  type: ActionTypes.FetchSearchResultsComplete;
106
- payload: SearchTabSectionApi;
107
+ payload: {
108
+ searches: SearchBarTabSectionApi;
109
+ key: string;
110
+ };
107
111
  } | {
108
112
  type: ActionTypes.FetchSearchResultsFinish;
109
113
  } | {
@@ -116,6 +120,12 @@ export type Action = {
116
120
  type: ActionTypes.DisplayInitialCities;
117
121
  } | {
118
122
  type: ActionTypes.DisplayInitialSearchResults;
123
+ } | {
124
+ type: ActionTypes.UpdateInitialSearchResults;
125
+ payload: {
126
+ searches: SearchBarTabSectionApi;
127
+ key: string;
128
+ };
119
129
  } | {
120
130
  type: ActionTypes.GrantGeoLocationPermission;
121
131
  payload: GPSType;
@@ -7,6 +7,7 @@ type Props = {
7
7
  type: TypeSearch;
8
8
  initalSearchValue?: string;
9
9
  isMobile: boolean;
10
+ isLoading: boolean;
10
11
  typeInformation: {
11
12
  [key in TypeSearch]: {
12
13
  name: string;
@@ -20,5 +21,5 @@ type Props = {
20
21
  focusSearchInput?: () => void;
21
22
  debouncedFetchSearchResults: DebouncedFunc<(keyword: string, state: ReducerState, searchType: TypeSearch) => Promise<void>>;
22
23
  };
23
- declare const SearchInputs: ({ state, type, isMobile, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, focusSearchInput, onSearch, dispatch, }: Props) => React.JSX.Element;
24
+ declare const SearchInputs: ({ state, type, isMobile, isLoading, initalSearchValue, typeInformation, debouncedFetchSearchResults, trackingAttributes, focusSearchInput, onSearch, dispatch, }: Props) => React.JSX.Element;
24
25
  export default SearchInputs;
@@ -7,6 +7,7 @@ type SearchResultProps = {
7
7
  type: TypeSearch;
8
8
  results: SearchBarSectionItemApi[];
9
9
  location: string;
10
+ isLoading: boolean;
10
11
  typeInformation: {
11
12
  [key in TypeSearch]: {
12
13
  name: string;
@@ -16,5 +17,5 @@ type SearchResultProps = {
16
17
  };
17
18
  dispatch: Dispatch<Action>;
18
19
  };
19
- declare const SearchResult: ({ state, type, results, location, typeInformation, dispatch, }: SearchResultProps) => React.JSX.Element;
20
+ declare const SearchResult: ({ state, type, results, location, isLoading, typeInformation, dispatch, }: SearchResultProps) => React.JSX.Element;
20
21
  export default SearchResult;
@@ -12,7 +12,7 @@ export default function useSearchBarApi({ dispatch, careApiDomain, locale, }: Us
12
12
  coordinates?: GPSType;
13
13
  }) => Promise<void>;
14
14
  fetchCitiesByKeyword: (keyword: string) => Promise<void>;
15
- fetchSearchResults: (searchKeywords: string, state: ReducerState, searchType: TypeSearch) => Promise<void>;
15
+ fetchSearchResults: (searchKeywords: string, state: ReducerState, searchType: TypeSearch, cacheResult?: boolean) => Promise<void>;
16
16
  fetchAllSpecialties: () => Promise<void>;
17
17
  };
18
18
  export {};
@@ -214,12 +214,14 @@ export type SearchBarSectionApi = {
214
214
  type: 'doctors' | 'specialties' | 'services' | 'hospitals';
215
215
  results: SearchBarSectionItemApi[];
216
216
  };
217
- export type SearchTabSectionApi = {
218
- doctors?: SearchBarSectionItemApi[];
217
+ export type SearchBarTabSectionApi = {
218
+ doctor?: SearchBarSectionItemApi[];
219
+ specialty?: SearchBarSectionItemApi[];
220
+ service?: SearchBarSectionItemApi[];
221
+ hospital?: SearchBarSectionItemApi[];
222
+ };
223
+ export type SpecialtySearchApi = {
219
224
  specialties?: SearchBarSectionItemApi[];
220
- services?: SearchBarSectionItemApi[];
221
- hospitals?: SearchBarSectionItemApi[];
222
- searches?: SearchBarSectionItemApi[];
223
225
  };
224
226
  export type SearchCityByGeoIpApi = {
225
227
  cities: City[];
package/build/esm/care.js CHANGED
@@ -1 +1 @@
1
- export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-14b6fe12.js";export{c as CareConstants}from"./constants-454ca790.js";import"./tslib.es6-c990ebbd.js";import"react";import"./useTranslations-94a298de.js";import"./translationsContext-8e27754a.js";import"string-format";import"lodash/debounce";import"./index-3f7f7771.js";import"@mantine/core";import"./index-1da6924b.js";import"./screenSizeContext-2fd9933a.js";import"styled-components";import"lodash/throttle";import"./theme-3f5fb9b4.js";import"dayjs";import"./index-93383cf3.js";import"date-fns/locale";import"./Onboarding-232ac075.js";import"./isProduction-51e5a882.js";import"./gAssets.js";import"./useUniqueId-d2edd2de.js";import"./index-d754d2c5.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-93403663.js";import"./paths-2551a89f.js";import"./cookieHelper-bf990dc8.js";
1
+ export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-d69ee206.js";export{c as CareConstants}from"./constants-bd2e2bb9.js";import"./tslib.es6-aa6dda30.js";import"react";import"./useTranslations-e8adac8a.js";import"./translationsContext-cf558e50.js";import"string-format";import"lodash/debounce";import"./index-e8aa27ee.js";import"@mantine/core";import"./index-d99f5fe1.js";import"./screenSizeContext-4eb558b5.js";import"styled-components";import"lodash/throttle";import"./theme-6958f818.js";import"dayjs";import"./index-25a079fc.js";import"date-fns/locale";import"./Onboarding-ff78862f.js";import"./isProduction-b12d596a.js";import"./gAssets.js";import"./useUniqueId-224e1126.js";import"./index-4c42fd2d.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-7843e861.js";import"./paths-64ccdd58.js";import"./cookieHelper-24e8a5fb.js";
@@ -1 +1 @@
1
- export{A as Alert,c as ArticleCard,d as ArticleCardV2,p as BMICardEmbed,t as BMRCardEmbed,q as BabyGrowthCardEmbed,r as BabyPoopEmbed,B as Badge,a as BorderHeading,w as Breadcrumbs,e as CategoryCard,C as Checkbox,f as CheckboxGroup,n as CookieAcceptConfirm,v as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,z as FixedBottomAdBlock,m as FloatButtonGroup,G as Grid,I as IconText,O as OvulationCardEmbed,u as PWGCardEmbed,P as Pagination,g as ProgressBar,R as RateStars,S as ScrollList,o as SeoHead,x as ShareContainer,y as ShareDrawer,i as SideMenu,h as StatisticCard,l as SurveyThankyouCard,s as THRCardEmbed,j as Table,k as Tabs,T as Tag,b as Toggle}from"./fixedBottomAdBlock-85d4c40e.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-2271114a.js";export{B as Button}from"./index-c9209389.js";export{A as AuthorBadge,a as BookingBtn,B as BtnChoice,D as Divider}from"./index-1afa0089.js";export{F as Flag,H as Heading,L as LogoIcon,P as PureInput,S as StepRenderer,b as StepRendererContext,T as TextArea,a as TextDivider}from"./utils-6dbfa2e2.js";export{I as Input}from"./index-3f7f7771.js";export{C as Container,I as Icon,L as Label}from"./index-1da6924b.js";export{L as Logo}from"./index-d7a14122.js";export{A as AdBlock,D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-b88a25a3.js";export{T as Text}from"./index-d754d2c5.js";export{D as Drawer,R as RadioImageGroup}from"./index-24374711.js";export{C as CustomReferenceDot,I as ImageWrap}from"./index-71b07919.js";export{P as Popup}from"./dataTransform-472ab3cb.js";export{M as Modal}from"./index-075c02f5.js";export{P as PillCarousel}from"./index-583c5caf.js";export{A as AddressInput}from"./index-2c50f4ad.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-2fd9933a.js";import"styled-components";import"lodash/throttle";import"./useUniqueId-d2edd2de.js";import"./gAssets.js";import"./index-93383cf3.js";import"date-fns/locale";import"./Onboarding-232ac075.js";import"./isProduction-51e5a882.js";import"./theme-3f5fb9b4.js";import"./tslib.es6-c990ebbd.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"./translationsContext-8e27754a.js";import"string-format";import"@mantine/hooks";import"./useTranslations-94a298de.js";import"date-fns";import"lodash/debounce";import"./types-59994293.js";import"./index-783fd8db.js";import"./index-e43a53fe.js";import"react-hook-form";import"./useHealthToolCache-3b53cefe.js";import"./getDynamicHealthTool-0f0a6a55.js";import"./core-fe8e3ac4.js";import"./normalizeLink-01dd46d6.js";import"./routing-c886133a.js";import"./useOutsideClick-93403663.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-a9e6accc.js";import"uuid";import"./index.styled-bbbc0d87.js";import"dayjs/plugin/relativeTime";import"./cookieHelper-bf990dc8.js";import"./constants-454ca790.js";import"./index-9ae2e2dd.js";import"./useIsInit-399900be.js";import"./paths-2551a89f.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-85d86621.js";import"react-dom";import"./index.styled-33c36729.js";import"./utils-3a82f3b7.js";
1
+ export{A as Alert,c as ArticleCard,d as ArticleCardV2,p as BMICardEmbed,t as BMRCardEmbed,q as BabyGrowthCardEmbed,r as BabyPoopEmbed,B as Badge,a as BorderHeading,w as Breadcrumbs,e as CategoryCard,C as Checkbox,f as CheckboxGroup,n as CookieAcceptConfirm,v as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,z as FixedBottomAdBlock,m as FloatButtonGroup,G as Grid,I as IconText,O as OvulationCardEmbed,u as PWGCardEmbed,P as Pagination,g as ProgressBar,R as RateStars,S as ScrollList,o as SeoHead,x as ShareContainer,y as ShareDrawer,i as SideMenu,h as StatisticCard,l as SurveyThankyouCard,s as THRCardEmbed,j as Table,k as Tabs,T as Tag,b as Toggle}from"./fixedBottomAdBlock-4f598b4e.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-2dbad103.js";export{B as Button}from"./index-ac0440c7.js";export{A as AuthorBadge,a as BookingBtn,B as BtnChoice,D as Divider}from"./index-58d76b74.js";export{F as Flag,H as Heading,L as LogoIcon,P as PureInput,S as StepRenderer,b as StepRendererContext,T as TextArea,a as TextDivider}from"./utils-49cd0015.js";export{I as Input}from"./index-e8aa27ee.js";export{C as Container,I as Icon,L as Label}from"./index-d99f5fe1.js";export{L as Logo}from"./index-dc45af44.js";export{A as AdBlock,D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-b6603e31.js";export{T as Text}from"./index-4c42fd2d.js";export{D as Drawer,R as RadioImageGroup}from"./index-61b40bb3.js";export{C as CustomReferenceDot,I as ImageWrap}from"./index-e006ea08.js";export{P as Popup}from"./dataTransform-acd309eb.js";export{M as Modal}from"./index-77a12ad4.js";export{P as PillCarousel}from"./index-acb68002.js";export{A as AddressInput}from"./index-d96a464a.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-4eb558b5.js";import"styled-components";import"lodash/throttle";import"./useUniqueId-224e1126.js";import"./gAssets.js";import"./index-25a079fc.js";import"date-fns/locale";import"./Onboarding-ff78862f.js";import"./isProduction-b12d596a.js";import"./theme-6958f818.js";import"./tslib.es6-aa6dda30.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"./translationsContext-cf558e50.js";import"string-format";import"@mantine/hooks";import"./useTranslations-e8adac8a.js";import"date-fns";import"lodash/debounce";import"./types-614fc596.js";import"./index-a46315a8.js";import"./index-ca8ba9cb.js";import"react-hook-form";import"./useHealthToolCache-77748b45.js";import"./getDynamicHealthTool-e1e9eb88.js";import"./core-aef19cc1.js";import"./normalizeLink-86bd6e1e.js";import"./routing-2ca62b4e.js";import"./useOutsideClick-7843e861.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-62952c6e.js";import"uuid";import"./index.styled-9454d250.js";import"dayjs/plugin/relativeTime";import"./cookieHelper-24e8a5fb.js";import"./constants-bd2e2bb9.js";import"./index-2b4f9440.js";import"./useIsInit-1907bb7f.js";import"./paths-64ccdd58.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-859a83e2.js";import"react-dom";import"./index.styled-574d9f4e.js";import"./utils-0f4c6649.js";
@@ -1 +1 @@
1
- import"date-fns/locale";import"./Onboarding-232ac075.js";export{B as BEARER_TOKEN_COOKIE,b as CARE_BOOKING_LOCALES,C as CARE_LOCALES,a as CDN_ADDRESS,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,c as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,e as siteHost,s as siteOptions}from"./index-93383cf3.js";export{i as isProduction}from"./isProduction-51e5a882.js";
1
+ import"date-fns/locale";import"./Onboarding-ff78862f.js";export{B as BEARER_TOKEN_COOKIE,b as CARE_BOOKING_LOCALES,C as CARE_LOCALES,a as CDN_ADDRESS,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,c as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,e as siteHost,s as siteOptions}from"./index-25a079fc.js";export{i as isProduction}from"./isProduction-b12d596a.js";
@@ -0,0 +1 @@
1
+ import{a as t}from"./tslib.es6-aa6dda30.js";import{i as a}from"./isProduction-b12d596a.js";const e={},i=t=>{if("undefined"!=typeof window){let e;try{e=JSON.parse(localStorage.getItem((a?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return e||{}}return e[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((a?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):e[t]={data:i,time:Date.now()}}catch(t){}},n=(a,e,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(a);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(e){const t=yield e();return n&&!n(t)||o(a,t),t}return null}));export{i as a,n as g,o as s};
@@ -1 +1 @@
1
- import e from"react";import{ak as i,al as o}from"./index.styled-bbbc0d87.js";import{_ as t}from"./tslib.es6-c990ebbd.js";const l=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),n=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},a=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,d=e=>{if(!e)return{};const{button_text:i,button_url:o,status:l,banner_desktop:n,banner_mobile:a}=e,r=t(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:o||"",status:Boolean(l),bannerDesktop:n||"",bannerMobile:a||""},r)},s={EN:"English",FIL:"Filipino"},u=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in s?s[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),m=e=>{var i,o,t,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:n(e.author),reviewer:e.reviewed_by&&n(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:v(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:v(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:v(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:v(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:_(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(_),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:a(e.expert),metaTag:e.meta_tag||null,spotlight:r(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:u(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:_(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:n(e.edit_last),subscriptionBanner:d(e.subscription_banner)}:{}},v=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,c=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},p=e=>({postTitle:e.post_title,permalink:e.permalink}),_=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>_(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?p(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>g(e))):null}:{}},g=e=>({title:e.title,content:e.content}),y=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},f=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},b=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},h=e=>e?{answer:null==e?void 0:e.answer.map(I),expert:null==e?void 0:e.expert}:{},k=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,k,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(k=e.user)||void 0===k?void 0:k.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:h(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},w=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},I=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,k,w,C,S,T,A,x,B,D,P,j,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(I):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(w=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===w?void 0:w.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id)?String(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.doctor_id):"",hospitalId:(null===(P=e.mentioned)||void 0===P?void 0:P.hospital_id)?String(null===(j=e.mentioned)||void 0===j?void 0:j.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},C=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var S=Object.freeze({__proto__:null,formatAuthor:n,formatArticleExpert:a,formatSpotlightsSummary:r,TRANSLATE_LANGUAGES:s,formatTranslateOptions:u,formatArticle:m,formatUserProfile:v,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:c,formatReviewedCategory:p,formatCategory:_,formatCategoryApi:e=>e?{categoryInfo:_(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(m),subCategories:(e.data.sub_categories||[]).map(_)}:{},formatFaqsCategory:g,formatHealthTool:y,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>y(e))))&&void 0!==o?o:[]}:{}},formatCommunity:f,formatTopic:b,formatExpertAnswer:h,formatPost:k,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:w,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:I,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:C,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:C(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{l as P,w as a,f as b,k as c,S as d,b as e,C as f,I as g,m as h,_ as i};
1
+ import e from"react";import{ak as i,al as o}from"./index.styled-9454d250.js";import{_ as t}from"./tslib.es6-aa6dda30.js";const l=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),n=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},a=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,d=e=>{if(!e)return{};const{button_text:i,button_url:o,status:l,banner_desktop:n,banner_mobile:a}=e,r=t(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:o||"",status:Boolean(l),bannerDesktop:n||"",bannerMobile:a||""},r)},s={EN:"English",FIL:"Filipino"},u=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in s?s[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),m=e=>{var i,o,t,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:n(e.author),reviewer:e.reviewed_by&&n(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:v(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:v(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:v(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:v(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:_(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(_),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:a(e.expert),metaTag:e.meta_tag||null,spotlight:r(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:u(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:_(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:n(e.edit_last),subscriptionBanner:d(e.subscription_banner)}:{}},v=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,c=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},p=e=>({postTitle:e.post_title,permalink:e.permalink}),_=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>_(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?p(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>g(e))):null}:{}},g=e=>({title:e.title,content:e.content}),y=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},f=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},b=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},h=e=>e?{answer:null==e?void 0:e.answer.map(I),expert:null==e?void 0:e.expert}:{},k=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,k,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(k=e.user)||void 0===k?void 0:k.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:h(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},w=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},I=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,k,w,C,S,T,A,x,B,D,P,j,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(I):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(w=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===w?void 0:w.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id)?String(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.doctor_id):"",hospitalId:(null===(P=e.mentioned)||void 0===P?void 0:P.hospital_id)?String(null===(j=e.mentioned)||void 0===j?void 0:j.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},C=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var S=Object.freeze({__proto__:null,formatAuthor:n,formatArticleExpert:a,formatSpotlightsSummary:r,TRANSLATE_LANGUAGES:s,formatTranslateOptions:u,formatArticle:m,formatUserProfile:v,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:c,formatReviewedCategory:p,formatCategory:_,formatCategoryApi:e=>e?{categoryInfo:_(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(m),subCategories:(e.data.sub_categories||[]).map(_)}:{},formatFaqsCategory:g,formatHealthTool:y,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>y(e))))&&void 0!==o?o:[]}:{}},formatCommunity:f,formatTopic:b,formatExpertAnswer:h,formatPost:k,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:w,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:I,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:C,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:C(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{l as P,w as a,f as b,k as c,S as d,b as e,C as f,I as g,m as h,_ as i};
package/build/esm/ecom.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./theme-3f5fb9b4.js";import"./index-93383cf3.js";import{i as o}from"./isProduction-51e5a882.js";export{t as Types}from"./types-59994293.js";import"date-fns/locale";import"./Onboarding-232ac075.js";var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",c=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,u=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},m=a?"http://localhost:3001":o?`https://${d[s]}`:`https://discover.${d[s]}`,p=o?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:c,GOOGLE_CLIENT_ID:u,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(u=null===(c=null==e?void 0:e.social)||void 0===c?void 0:c.socials)||void 0===u?void 0:u.map)||void 0===d?void 0:d.call(u,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(u=(c=e.sub_banners).map)||void 0===u?void 0:u.call(c,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(c=e.currency)||void 0===c?void 0:c.store_to_quote_rate)||0,baseToGlobalRate:(null===(u=e.currency)||void 0===u?void 0:u.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});export{l as ApiTypes,T as Constants,A as DataFormatter,i as DataTypes};
1
+ import{t as e}from"./theme-6958f818.js";import"./index-25a079fc.js";import{i as o}from"./isProduction-b12d596a.js";export{t as Types}from"./types-614fc596.js";import"date-fns/locale";import"./Onboarding-ff78862f.js";var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",c=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,u=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},m=a?"http://localhost:3001":o?`https://${d[s]}`:`https://discover.${d[s]}`,p=o?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:c,GOOGLE_CLIENT_ID:u,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(u=null===(c=null==e?void 0:e.social)||void 0===c?void 0:c.socials)||void 0===u?void 0:u.map)||void 0===d?void 0:d.call(u,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(u=(c=e.sub_banners).map)||void 0===u?void 0:u.call(c,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(c=e.currency)||void 0===c?void 0:c.store_to_quote_rate)||0,baseToGlobalRate:(null===(u=e.currency)||void 0===u?void 0:u.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});export{l as ApiTypes,T as Constants,A as DataFormatter,i as DataTypes};