@hhgtech/hhg-components 1.27.106 → 1.27.107

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 (293) hide show
  1. package/build/{_topic-8311bc5c.js → _topic-e97ac8e9.js} +1 -1
  2. package/build/babyGrowth.js +2 -2
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components/onboardingV2/index.d.ts +2 -2
  6. package/build/components/onboardingV2/onboardingForm/index.d.ts +2 -1
  7. package/build/components/onboardingV2/otpForm/phone.d.ts +2 -1
  8. package/build/components/ui/onboarding/index.d.ts +1 -1
  9. package/build/components.js +1 -1
  10. package/build/constants.js +1 -1
  11. package/build/{core-6777448c.js → core-c2188d67.js} +1 -1
  12. package/build/ecom.js +1 -1
  13. package/build/esm/{_topic-395d4a03.js → _topic-06ecb66a.js} +1 -1
  14. package/build/esm/babyGrowth.js +2 -2
  15. package/build/esm/cache.js +1 -1
  16. package/build/esm/care.js +1 -1
  17. package/build/esm/components/onboardingV2/index.d.ts +2 -2
  18. package/build/esm/components/onboardingV2/onboardingForm/index.d.ts +2 -1
  19. package/build/esm/components/onboardingV2/otpForm/phone.d.ts +2 -1
  20. package/build/esm/components/ui/onboarding/index.d.ts +1 -1
  21. package/build/esm/components.js +1 -1
  22. package/build/esm/constants.js +1 -1
  23. package/build/esm/{core-7199dd40.js → core-1eefc80e.js} +1 -1
  24. package/build/esm/ecom.js +1 -1
  25. package/build/esm/footer.js +1 -1
  26. package/build/esm/gAssets.js +1 -1
  27. package/build/esm/getDynamicHealthTool-ebc19aa8.js +1 -0
  28. package/build/esm/{getSocialList-8def722a.js → getSocialList-61a37aaa.js} +1 -1
  29. package/build/esm/hooks.js +1 -1
  30. package/build/esm/i18n/translationKeys.d.ts +1 -1
  31. package/build/esm/i18n-values/en-PH.js +1 -1
  32. package/build/esm/i18n-values/hi-IN.js +1 -1
  33. package/build/esm/i18n-values/id-ID.js +1 -1
  34. package/build/esm/i18n-values/km-KH.js +1 -1
  35. package/build/esm/i18n-values/ms-MY.js +1 -1
  36. package/build/esm/i18n-values/my-MM.js +1 -1
  37. package/build/esm/i18n-values/th-TH.js +1 -1
  38. package/build/esm/i18n-values/tl-PH.js +1 -1
  39. package/build/esm/i18n-values/vi-VN.js +1 -1
  40. package/build/esm/i18n-values/vi-VN_MB.js +1 -1
  41. package/build/esm/i18n-values/zh-TW.js +1 -1
  42. package/build/esm/i18n.js +1 -1
  43. package/build/esm/i18nV2.js +1 -1
  44. package/build/esm/{index-5ff2d3ca.js → index-118cc0e3.js} +1 -1
  45. package/build/esm/{index-c0b4791d.js → index-17e18342.js} +1 -1
  46. package/build/esm/{index-78790272.js → index-1dc8aa54.js} +1 -1
  47. package/build/esm/{index-46ca4767.js → index-20383a76.js} +1 -1
  48. package/build/esm/{index-9a421306.js → index-34cdc8ae.js} +1 -1
  49. package/build/esm/{index-4aa9bd18.js → index-449f5c48.js} +1 -1
  50. package/build/esm/{index-7fe906e6.js → index-58f4c8f7.js} +1 -1
  51. package/build/esm/{index-10eafdee.js → index-6305da27.js} +1 -1
  52. package/build/esm/index-7cc30b43.js +1 -0
  53. package/build/esm/{index-8a43a259.js → index-856ff66e.js} +2 -2
  54. package/build/esm/{index-23e57e34.js → index-8df7dcfc.js} +1 -1
  55. package/build/esm/{index-1a89e915.js → index-9031b2ed.js} +1 -1
  56. package/build/esm/{index-44f86fa4.js → index-94ba9ce3.js} +1 -1
  57. package/build/esm/{index-df2f8e37.js → index-c5aedb3d.js} +1 -1
  58. package/build/esm/index-d71ad10a.js +1 -0
  59. package/build/esm/{index-450899bd.js → index-d870b668.js} +1 -1
  60. package/build/esm/{index-bfa78c44.js → index-e29c43c9.js} +1 -1
  61. package/build/esm/{index-5791bb5e.js → index-e9f94e1d.js} +1 -1
  62. package/build/esm/{index-d50c2330.js → index-eb7b481c.js} +1 -1
  63. package/build/esm/{index-28f63afa.js → index-ee66cce2.js} +4 -4
  64. package/build/esm/{index-cf323724.js → index-f9107370.js} +1 -1
  65. package/build/esm/index.js +1 -1
  66. package/build/esm/{index.styled-5a7758ac.js → index.styled-1ead0e2f.js} +5 -5
  67. package/build/esm/{index.styled-3fd8255b.js → index.styled-54fac88c.js} +1 -1
  68. package/build/esm/{index.styled-e2634b67.js → index.styled-ee45f4b9.js} +1 -1
  69. package/build/esm/{index.styles-8a242f95.js → index.styles-3cb66895.js} +1 -1
  70. package/build/esm/lead.js +1 -1
  71. package/build/esm/mantine.js +1 -1
  72. package/build/esm/misc.js +1 -1
  73. package/build/esm/navigation.js +1 -1
  74. package/build/esm/onboarding.js +1 -1
  75. package/build/esm/onboardingV2.js +30 -30
  76. package/build/esm/{paths-72ad2c5a.js → paths-edfac68b.js} +1 -1
  77. package/build/esm/pwg.js +5 -5
  78. package/build/esm/{routing-01f1d0a2.js → routing-2eb975c1.js} +1 -1
  79. package/build/esm/together.js +1 -1
  80. package/build/esm/{types-0e440a32.js → types-3c95cf95.js} +1 -1
  81. package/build/esm/{types-60538526.js → types-6e94b035.js} +18 -18
  82. package/build/esm/types.js +1 -1
  83. package/build/esm/{useCategory-7d8609bc.js → useCategory-be3ee862.js} +1 -1
  84. package/build/esm/useHealthToolCache-f6cdcbeb.js +1 -0
  85. package/build/esm/{useRafState-957e3f4f.js → useRafState-c4bc6e60.js} +1 -1
  86. package/build/esm/useTranslations-d3d91dae.js +1 -0
  87. package/build/esm/{utils-de53cba3.js → utils-5148d654.js} +1 -1
  88. package/build/esm/vaccination.js +1 -1
  89. package/build/footer.js +1 -1
  90. package/build/gAssets.js +1 -1
  91. package/build/{getDynamicHealthTool-586c30e6.js → getDynamicHealthTool-e8f39784.js} +1 -1
  92. package/build/{getSocialList-a979b7f7.js → getSocialList-60368527.js} +1 -1
  93. package/build/hooks.js +1 -1
  94. package/build/i18n/translationKeys.d.ts +1 -1
  95. package/build/i18n-values/en-PH.js +1 -1
  96. package/build/i18n-values/hi-IN.js +1 -1
  97. package/build/i18n-values/id-ID.js +1 -1
  98. package/build/i18n-values/km-KH.js +1 -1
  99. package/build/i18n-values/ms-MY.js +1 -1
  100. package/build/i18n-values/my-MM.js +1 -1
  101. package/build/i18n-values/th-TH.js +1 -1
  102. package/build/i18n-values/tl-PH.js +1 -1
  103. package/build/i18n-values/vi-VN.js +1 -1
  104. package/build/i18n-values/vi-VN_MB.js +1 -1
  105. package/build/i18n-values/zh-TW.js +1 -1
  106. package/build/i18n.js +1 -1
  107. package/build/i18nV2.js +1 -1
  108. package/build/{index-e4a7ec87.js → index-0f86901f.js} +1 -1
  109. package/build/{index-08f5063b.js → index-1e968087.js} +1 -1
  110. package/build/{index-4e5f40e8.js → index-1fee8988.js} +1 -1
  111. package/build/{index-e04e8fce.js → index-22d7e5f2.js} +1 -1
  112. package/build/{index-a037afcb.js → index-2ebbbba2.js} +1 -1
  113. package/build/{index-2fa72c33.js → index-32476c95.js} +1 -1
  114. package/build/{index-74437525.js → index-3cb544c8.js} +1 -1
  115. package/build/{index-9297b09d.js → index-431dd307.js} +1 -1
  116. package/build/{index-37056abd.js → index-5de20bc8.js} +1 -1
  117. package/build/index-62a5c4ae.js +1 -0
  118. package/build/{index-6aea0955.js → index-6a13cb05.js} +2 -2
  119. package/build/{index-efe8b5e5.js → index-6b8b5528.js} +1 -1
  120. package/build/{index-4f70f571.js → index-7243b522.js} +1 -1
  121. package/build/{index-d4ed5be5.js → index-9da4756e.js} +1 -1
  122. package/build/{index-a6bb5f04.js → index-a6c1f004.js} +1 -1
  123. package/build/{index-36c9f0d1.js → index-af2d5ff0.js} +1 -1
  124. package/build/{index-2bb0e0c9.js → index-b17e8380.js} +1 -1
  125. package/build/{index-c133ec54.js → index-be9ef612.js} +1 -1
  126. package/build/{index-66418518.js → index-d3f90f62.js} +1 -1
  127. package/build/{index-d9ff9e9d.js → index-d9168227.js} +1 -1
  128. package/build/{index-beef7f31.js → index-ec824be5.js} +1 -1
  129. package/build/index.js +1 -1
  130. package/build/{index.styled-796d2028.js → index.styled-c563f83f.js} +6 -6
  131. package/build/{index.styled-bbaf897e.js → index.styled-cd393e56.js} +3 -3
  132. package/build/{index.styled-d5862b70.js → index.styled-e128f66d.js} +1 -1
  133. package/build/{index.styles-3a22482d.js → index.styles-bca5299c.js} +1 -1
  134. package/build/lead.js +1 -1
  135. package/build/mantine.js +1 -1
  136. package/build/misc.js +1 -1
  137. package/build/navigation.js +1 -1
  138. package/build/onboarding.js +1 -1
  139. package/build/onboardingV2.js +16 -16
  140. package/build/{paths-9cc0f16a.js → paths-7111bdc0.js} +1 -1
  141. package/build/pwg.js +2 -2
  142. package/build/{routing-e3573c96.js → routing-15049135.js} +1 -1
  143. package/build/together.js +1 -1
  144. package/build/{types-98be8e9e.js → types-1899464f.js} +1 -1
  145. package/build/{types-9661d5dc.js → types-f0e58666.js} +1 -1
  146. package/build/types.js +1 -1
  147. package/build/{useCategory-42261fa9.js → useCategory-df177b44.js} +1 -1
  148. package/build/{useHealthToolCache-5c729cfa.js → useHealthToolCache-e0d58003.js} +1 -1
  149. package/build/{useRafState-42bef5db.js → useRafState-a633385f.js} +1 -1
  150. package/build/{useTranslations-23124ee9.js → useTranslations-b4594bd3.js} +1 -1
  151. package/build/{utils-e75d6abb.js → utils-cca429d5.js} +1 -1
  152. package/build/vaccination.js +1 -1
  153. package/package.json +1 -1
  154. package/build/esm/getDynamicHealthTool-ef95b800.js +0 -1
  155. package/build/esm/index-aaf1cab1.js +0 -1
  156. package/build/esm/index-b91f88a9.js +0 -1
  157. package/build/esm/useHealthToolCache-fe647031.js +0 -1
  158. package/build/esm/useTranslations-30aaa435.js +0 -1
  159. package/build/index-9a32846d.js +0 -1
  160. /package/build/{BMI_BOYS.percentile.monthly-9d1ba7da.js → BMI_BOYS.percentile.monthly-9b4a7efd.js} +0 -0
  161. /package/build/{BMI_BOYS.percentile.weekly-3f266cf3.js → BMI_BOYS.percentile.weekly-c00b1465.js} +0 -0
  162. /package/build/{BMI_BOYS.percentile.yearly-6b6c6244.js → BMI_BOYS.percentile.yearly-9c894fd9.js} +0 -0
  163. /package/build/{BMI_BOYS.zscore.monthly-b9418db1.js → BMI_BOYS.zscore.monthly-793bb6db.js} +0 -0
  164. /package/build/{BMI_BOYS.zscore.weekly-61f71c62.js → BMI_BOYS.zscore.weekly-8b382e4c.js} +0 -0
  165. /package/build/{BMI_BOYS.zscore.yearly-8a960206.js → BMI_BOYS.zscore.yearly-f5a3264b.js} +0 -0
  166. /package/build/{BMI_GIRLS.percentile.monthly-b0dc7872.js → BMI_GIRLS.percentile.monthly-866d83b5.js} +0 -0
  167. /package/build/{BMI_GIRLS.percentile.weekly-4b9ba4aa.js → BMI_GIRLS.percentile.weekly-40156ad2.js} +0 -0
  168. /package/build/{BMI_GIRLS.percentile.yearly-4b7e3683.js → BMI_GIRLS.percentile.yearly-a08b81c2.js} +0 -0
  169. /package/build/{BMI_GIRLS.zscore.monthly-7f1d852c.js → BMI_GIRLS.zscore.monthly-879abeb0.js} +0 -0
  170. /package/build/{BMI_GIRLS.zscore.weekly-a682d4ef.js → BMI_GIRLS.zscore.weekly-142ffa78.js} +0 -0
  171. /package/build/{BMI_GIRLS.zscore.yearly-5de8191c.js → BMI_GIRLS.zscore.yearly-9954929c.js} +0 -0
  172. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4a66eebc.js → HEAD CIRCUM_BOYS.percentile.monthly-9d236252.js} +0 -0
  173. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f9c6cd92.js → HEAD CIRCUM_BOYS.percentile.weekly-30f6b49d.js} +0 -0
  174. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-783e5835.js → HEAD CIRCUM_BOYS.percentile.yearly-51fbc628.js} +0 -0
  175. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a26e665d.js → HEAD CIRCUM_BOYS.zscore.monthly-bc137ba6.js} +0 -0
  176. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-f094b730.js → HEAD CIRCUM_BOYS.zscore.weekly-ac6baa93.js} +0 -0
  177. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-01341dde.js → HEAD CIRCUM_BOYS.zscore.yearly-85582234.js} +0 -0
  178. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-6937f140.js → HEAD CIRCUM_GIRLS.percentile.monthly-e9d4bdcd.js} +0 -0
  179. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-402f61b6.js → HEAD CIRCUM_GIRLS.percentile.weekly-0c279436.js} +0 -0
  180. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c18abd88.js → HEAD CIRCUM_GIRLS.percentile.yearly-00936988.js} +0 -0
  181. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-b7c2764f.js → HEAD CIRCUM_GIRLS.zscore.monthly-51616dbb.js} +0 -0
  182. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-9b88d3d8.js → HEAD CIRCUM_GIRLS.zscore.weekly-d62b3079.js} +0 -0
  183. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b281bbc3.js → HEAD CIRCUM_GIRLS.zscore.yearly-a2be1c2a.js} +0 -0
  184. /package/build/{HEIGHT_BOYS.percentile.monthly-ffd291ab.js → HEIGHT_BOYS.percentile.monthly-66d29282.js} +0 -0
  185. /package/build/{HEIGHT_BOYS.percentile.weekly-c52febdc.js → HEIGHT_BOYS.percentile.weekly-3e5b7405.js} +0 -0
  186. /package/build/{HEIGHT_BOYS.percentile.yearly-ba7ae630.js → HEIGHT_BOYS.percentile.yearly-76ec4442.js} +0 -0
  187. /package/build/{HEIGHT_BOYS.zscore.monthly-e20208e7.js → HEIGHT_BOYS.zscore.monthly-4a1ac1c7.js} +0 -0
  188. /package/build/{HEIGHT_BOYS.zscore.weekly-0f91e1b3.js → HEIGHT_BOYS.zscore.weekly-65596564.js} +0 -0
  189. /package/build/{HEIGHT_BOYS.zscore.yearly-8447f8b9.js → HEIGHT_BOYS.zscore.yearly-6c85d212.js} +0 -0
  190. /package/build/{HEIGHT_GIRLS.percentile.monthly-816746e9.js → HEIGHT_GIRLS.percentile.monthly-4b00af11.js} +0 -0
  191. /package/build/{HEIGHT_GIRLS.percentile.weekly-b95c11be.js → HEIGHT_GIRLS.percentile.weekly-42e8fc4a.js} +0 -0
  192. /package/build/{HEIGHT_GIRLS.percentile.yearly-985166ef.js → HEIGHT_GIRLS.percentile.yearly-b45e7683.js} +0 -0
  193. /package/build/{HEIGHT_GIRLS.zscore.monthly-d3b5fa19.js → HEIGHT_GIRLS.zscore.monthly-4262e457.js} +0 -0
  194. /package/build/{HEIGHT_GIRLS.zscore.weekly-f468db5d.js → HEIGHT_GIRLS.zscore.weekly-c26b1a8a.js} +0 -0
  195. /package/build/{HEIGHT_GIRLS.zscore.yearly-ea3908a9.js → HEIGHT_GIRLS.zscore.yearly-602c973c.js} +0 -0
  196. /package/build/{Onboarding-bd1701e2.js → Onboarding-680b3178.js} +0 -0
  197. /package/build/{Visible-0336b939.js → Visible-fe62b674.js} +0 -0
  198. /package/build/{WEIGHT_BOYS.percentile.monthly-303e75e2.js → WEIGHT_BOYS.percentile.monthly-748f1890.js} +0 -0
  199. /package/build/{WEIGHT_BOYS.percentile.weekly-4ee352cd.js → WEIGHT_BOYS.percentile.weekly-348f8868.js} +0 -0
  200. /package/build/{WEIGHT_BOYS.percentile.yearly-51881010.js → WEIGHT_BOYS.percentile.yearly-9fc08aae.js} +0 -0
  201. /package/build/{WEIGHT_BOYS.zscore.monthly-e4ec3492.js → WEIGHT_BOYS.zscore.monthly-c3206639.js} +0 -0
  202. /package/build/{WEIGHT_BOYS.zscore.weekly-1824bba4.js → WEIGHT_BOYS.zscore.weekly-3589e565.js} +0 -0
  203. /package/build/{WEIGHT_BOYS.zscore.yearly-583d0b6c.js → WEIGHT_BOYS.zscore.yearly-010625e0.js} +0 -0
  204. /package/build/{WEIGHT_GIRLS.percentile.monthly-fb2632bb.js → WEIGHT_GIRLS.percentile.monthly-18bf8d9f.js} +0 -0
  205. /package/build/{WEIGHT_GIRLS.percentile.weekly-7951e61a.js → WEIGHT_GIRLS.percentile.weekly-ef07c7a3.js} +0 -0
  206. /package/build/{WEIGHT_GIRLS.percentile.yearly-c070044a.js → WEIGHT_GIRLS.percentile.yearly-ad72b2fb.js} +0 -0
  207. /package/build/{WEIGHT_GIRLS.zscore.monthly-9b3ede19.js → WEIGHT_GIRLS.zscore.monthly-b6970dd5.js} +0 -0
  208. /package/build/{WEIGHT_GIRLS.zscore.weekly-bbdc0386.js → WEIGHT_GIRLS.zscore.weekly-26464dca.js} +0 -0
  209. /package/build/{WEIGHT_GIRLS.zscore.yearly-4da42650.js → WEIGHT_GIRLS.zscore.yearly-4c2d09f5.js} +0 -0
  210. /package/build/{constants-56c2d623.js → constants-978d74c9.js} +0 -0
  211. /package/build/{cookieHelper-43c69161.js → cookieHelper-ef035a02.js} +0 -0
  212. /package/build/{dataTransform-ef45b5fa.js → dataTransform-83833cdd.js} +0 -0
  213. /package/build/esm/{BMI_BOYS.percentile.monthly-4b700f4a.js → BMI_BOYS.percentile.monthly-e9764efc.js} +0 -0
  214. /package/build/esm/{BMI_BOYS.percentile.weekly-20c2eefa.js → BMI_BOYS.percentile.weekly-be1015d5.js} +0 -0
  215. /package/build/esm/{BMI_BOYS.percentile.yearly-6883e3fa.js → BMI_BOYS.percentile.yearly-b3e81bf1.js} +0 -0
  216. /package/build/esm/{BMI_BOYS.zscore.monthly-b88c6169.js → BMI_BOYS.zscore.monthly-5d74d964.js} +0 -0
  217. /package/build/esm/{BMI_BOYS.zscore.weekly-6aee76d6.js → BMI_BOYS.zscore.weekly-280b5026.js} +0 -0
  218. /package/build/esm/{BMI_BOYS.zscore.yearly-af704c7b.js → BMI_BOYS.zscore.yearly-9e4e32d2.js} +0 -0
  219. /package/build/esm/{BMI_GIRLS.percentile.monthly-a99383b0.js → BMI_GIRLS.percentile.monthly-033349c7.js} +0 -0
  220. /package/build/esm/{BMI_GIRLS.percentile.weekly-cf329c96.js → BMI_GIRLS.percentile.weekly-71d93f3d.js} +0 -0
  221. /package/build/esm/{BMI_GIRLS.percentile.yearly-bc1d8805.js → BMI_GIRLS.percentile.yearly-40fc13ad.js} +0 -0
  222. /package/build/esm/{BMI_GIRLS.zscore.monthly-24e0906d.js → BMI_GIRLS.zscore.monthly-e8a55ebc.js} +0 -0
  223. /package/build/esm/{BMI_GIRLS.zscore.weekly-3c7534cb.js → BMI_GIRLS.zscore.weekly-71d656d6.js} +0 -0
  224. /package/build/esm/{BMI_GIRLS.zscore.yearly-e86dc9d6.js → BMI_GIRLS.zscore.yearly-5a468242.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-26ade6d1.js → HEAD CIRCUM_BOYS.percentile.monthly-e3b093b1.js} +0 -0
  226. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-bcca6572.js → HEAD CIRCUM_BOYS.percentile.weekly-f6b80588.js} +0 -0
  227. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d3981988.js → HEAD CIRCUM_BOYS.percentile.yearly-fc13c6a5.js} +0 -0
  228. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-983a3346.js → HEAD CIRCUM_BOYS.zscore.monthly-2892b7cc.js} +0 -0
  229. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-d6c9a013.js → HEAD CIRCUM_BOYS.zscore.weekly-70ded852.js} +0 -0
  230. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c8d65a4d.js → HEAD CIRCUM_BOYS.zscore.yearly-c1ff4525.js} +0 -0
  231. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-94badee7.js → HEAD CIRCUM_GIRLS.percentile.monthly-b54fb8a3.js} +0 -0
  232. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-aff2bcfd.js → HEAD CIRCUM_GIRLS.percentile.weekly-7e55533c.js} +0 -0
  233. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-aa570380.js → HEAD CIRCUM_GIRLS.percentile.yearly-949a054e.js} +0 -0
  234. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-309e7ffc.js → HEAD CIRCUM_GIRLS.zscore.monthly-a96d19ec.js} +0 -0
  235. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-6686bbb8.js → HEAD CIRCUM_GIRLS.zscore.weekly-b66c05c9.js} +0 -0
  236. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-bccdfc66.js → HEAD CIRCUM_GIRLS.zscore.yearly-9dd13c8f.js} +0 -0
  237. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-798b348f.js → HEIGHT_BOYS.percentile.monthly-9700aac3.js} +0 -0
  238. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-fdc8e3eb.js → HEIGHT_BOYS.percentile.weekly-ef6904ed.js} +0 -0
  239. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-61fce2ce.js → HEIGHT_BOYS.percentile.yearly-5901b11f.js} +0 -0
  240. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9c122b80.js → HEIGHT_BOYS.zscore.monthly-31972315.js} +0 -0
  241. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-44a84440.js → HEIGHT_BOYS.zscore.weekly-c1f54fcd.js} +0 -0
  242. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-a3bf010e.js → HEIGHT_BOYS.zscore.yearly-3a88a99b.js} +0 -0
  243. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-49060f92.js → HEIGHT_GIRLS.percentile.monthly-d8cb75fe.js} +0 -0
  244. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-6f27a8c5.js → HEIGHT_GIRLS.percentile.weekly-c865f0ae.js} +0 -0
  245. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-fd4e0e67.js → HEIGHT_GIRLS.percentile.yearly-a3db6404.js} +0 -0
  246. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-1cc8e864.js → HEIGHT_GIRLS.zscore.monthly-06123665.js} +0 -0
  247. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-1a065039.js → HEIGHT_GIRLS.zscore.weekly-56ea53ce.js} +0 -0
  248. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-0eef5ca0.js → HEIGHT_GIRLS.zscore.yearly-a05118f2.js} +0 -0
  249. /package/build/esm/{Onboarding-76dc8304.js → Onboarding-e74c6373.js} +0 -0
  250. /package/build/esm/{Visible-bb7d4602.js → Visible-c0636b77.js} +0 -0
  251. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-6004c002.js → WEIGHT_BOYS.percentile.monthly-9bceb070.js} +0 -0
  252. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-31a5de7c.js → WEIGHT_BOYS.percentile.weekly-0bcf2f5a.js} +0 -0
  253. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-af22a345.js → WEIGHT_BOYS.percentile.yearly-233aef08.js} +0 -0
  254. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-18342763.js → WEIGHT_BOYS.zscore.monthly-59173133.js} +0 -0
  255. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5f3e180c.js → WEIGHT_BOYS.zscore.weekly-d0b0891c.js} +0 -0
  256. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-7a0a4df4.js → WEIGHT_BOYS.zscore.yearly-aed61be9.js} +0 -0
  257. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5acc8efc.js → WEIGHT_GIRLS.percentile.monthly-b1aaa4f5.js} +0 -0
  258. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-bbe2d7e2.js → WEIGHT_GIRLS.percentile.weekly-3cd50fbf.js} +0 -0
  259. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-6990e028.js → WEIGHT_GIRLS.percentile.yearly-aa79c1cf.js} +0 -0
  260. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-64bd4a57.js → WEIGHT_GIRLS.zscore.monthly-ef91acea.js} +0 -0
  261. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-08e06f6a.js → WEIGHT_GIRLS.zscore.weekly-6daea4ee.js} +0 -0
  262. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-4a64e6fa.js → WEIGHT_GIRLS.zscore.yearly-b27fd0f9.js} +0 -0
  263. /package/build/esm/{constants-bb7e4df3.js → constants-712f22d5.js} +0 -0
  264. /package/build/esm/{cookieHelper-bb639635.js → cookieHelper-0b465a40.js} +0 -0
  265. /package/build/esm/{dataTransform-b6476cb8.js → dataTransform-aeb51aee.js} +0 -0
  266. /package/build/esm/{index-d8eac6d8.js → index-7f3b616d.js} +0 -0
  267. /package/build/esm/{isProduction-cc02dbe1.js → isProduction-e91fe1f8.js} +0 -0
  268. /package/build/esm/{localizeNumberFormat-0cc4b319.js → localizeNumberFormat-e6a59661.js} +0 -0
  269. /package/build/esm/{normalizeLink-6cfea88f.js → normalizeLink-7f1e3cc7.js} +0 -0
  270. /package/build/esm/{number-e4e40587.js → number-0269eb39.js} +0 -0
  271. /package/build/esm/{screenSizeContext-5c82841a.js → screenSizeContext-32376937.js} +0 -0
  272. /package/build/esm/{theme-de986140.js → theme-fa44d5d8.js} +0 -0
  273. /package/build/esm/{translationsContext-6ad83b5e.js → translationsContext-19ab986c.js} +0 -0
  274. /package/build/esm/{tslib.es6-5c131ae0.js → tslib.es6-74f0570d.js} +0 -0
  275. /package/build/esm/{types-704a9e2a.js → types-3f93b402.js} +0 -0
  276. /package/build/esm/{useIsInit-23476738.js → useIsInit-c671a4a8.js} +0 -0
  277. /package/build/esm/{useOutsideClick-a507db78.js → useOutsideClick-c6d935b3.js} +0 -0
  278. /package/build/esm/{useScrollbarSize-240c7e05.js → useScrollbarSize-cc449e29.js} +0 -0
  279. /package/build/esm/{useUniqueId-fa69a40e.js → useUniqueId-4bcf65b3.js} +0 -0
  280. /package/build/{index-ab9d297e.js → index-dac97379.js} +0 -0
  281. /package/build/{isProduction-911a33de.js → isProduction-d069d72f.js} +0 -0
  282. /package/build/{localizeNumberFormat-0b70619f.js → localizeNumberFormat-5caed487.js} +0 -0
  283. /package/build/{normalizeLink-67428231.js → normalizeLink-50b00136.js} +0 -0
  284. /package/build/{number-c0d99f18.js → number-12cac8a1.js} +0 -0
  285. /package/build/{screenSizeContext-dca63fab.js → screenSizeContext-fbab96ac.js} +0 -0
  286. /package/build/{theme-c5ccafe7.js → theme-8e5f3027.js} +0 -0
  287. /package/build/{translationsContext-125f6a93.js → translationsContext-be52e93c.js} +0 -0
  288. /package/build/{tslib.es6-b485694c.js → tslib.es6-66f4373b.js} +0 -0
  289. /package/build/{types-e6692e7f.js → types-cb1ac6a2.js} +0 -0
  290. /package/build/{useIsInit-3a88f63a.js → useIsInit-e2ab71c5.js} +0 -0
  291. /package/build/{useOutsideClick-e8092367.js → useOutsideClick-78db2538.js} +0 -0
  292. /package/build/{useScrollbarSize-ff1dd2fd.js → useScrollbarSize-ce56eaac.js} +0 -0
  293. /package/build/{useUniqueId-8ea6c9e7.js → useUniqueId-0230c3e7.js} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./screenSizeContext-dca63fab.js"),t=require("styled-components"),a=require("./tslib.es6-b485694c.js"),i=require("react"),o=require("@mantine/core"),r=require("./useTranslations-23124ee9.js"),n=require("./index-4e5f40e8.js"),l=require("./index.styles-3a22482d.js"),s=require("./index-74437525.js"),d=require("./index-4f70f571.js"),c=require("./gAssets.js"),p=require("./index-e04e8fce.js"),u=require("./index-2bb0e0c9.js"),m=require("./theme-c5ccafe7.js");require("@mantine/dates");var h=require("./index-36c9f0d1.js"),g=require("./Onboarding-bd1701e2.js"),f=require("dayjs");require("./isProduction-911a33de.js"),require("@mantine/hooks");var x=require("lodash/debounce");require("./useCategory-42261fa9.js"),require("innertext");var b=require("date-fns"),v=require("react-day-picker/DayPickerInput"),y=require("./index.styled-d5862b70.js");require("react-dom");var w=require("./index-a037afcb.js");require("lodash/throttle");var C=require("./index-c133ec54.js"),E=require("./types-e6692e7f.js"),k=require("react-hook-form");require("./translationsContext-125f6a93.js"),require("string-format");var S=require("@hookform/resolvers/yup"),A=require("./index-e4a7ec87.js"),T=require("./index-beef7f31.js");require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-796d2028.js"),require("uuid"),require("./utils-e75d6abb.js");var N=require("./cookieHelper-43c69161.js"),D=require("./number-c0d99f18.js"),I=require("dayjs/plugin/relativeTime"),z=require("./paths-9cc0f16a.js"),M=require("./constants-56c2d623.js"),P=require("./routing-e3573c96.js"),B=require("./index-08f5063b.js"),_=require("./useUniqueId-8ea6c9e7.js");function O(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function L(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("react-contenteditable"),require("js-cookie"),require("@mantine/form"),require("lodash/flatten"),require("lodash/uniqBy");var $=O(t),j=O(i),R=L(i),F=O(f),U=O(x),V=O(v),q=O(I);const H=({type:e,size:t="small",label:a,name:i,checked:o,value:r,className:n,isDisabled:s=!1,onChange:d,dataEventCategory:c,dataEventAction:p,dataEventLabel:u})=>{const m=!!p&&!!c&&!!u?{"data-event-category":c,"data-event-action":p,"data-event-label":u}:{};return j.default.createElement(l.StyledRadio,{"data-disabled":s,className:n,"data-type":e,"data-size":t},j.default.createElement("label",Object.assign({style:{display:"flex",alignItems:"center"}},m),j.default.createElement("input",Object.assign({type:"radio",checked:o,name:i,value:r,onChange:()=>d(r)},m)),a))},W={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},G=e=>{var{siteType:t,role:i,title:o,styles:n,className:s}=e,d=a.__rest(e,["siteType","role","title","styles","className"]);const{t:c}=r.useTranslations(),p=i?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(i):"",{classes:u,cx:m}=l.useStyles$1(void 0,{name:"AuthorBadge",styles:n});return p&&W[p]?j.default.createElement("div",Object.assign({className:m(u.root,s),"data-label-type":p,"data-is-marrybaby":"marryBaby"===t},d),o||c(W[p])):null},Q=e=>R.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Z=e=>{var{label:t,bookingId:o,bookingType:n="doctor",locale:s="vi-VN"}=e,d=a.__rest(e,["label","bookingId","bookingType","locale"]);const{t:c}=r.useTranslations(),[p,u]=i.useState(!1),m=i.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]),g=i.useCallback((()=>a.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,i,r,d,c,p,m,g,f,x,b,v,y;const w="doctor"===n?z.PATHS.GET_DOCTOR_DETAIL:"hospital"===n?z.PATHS.GET_HOSPITAL_DETAIL:"service"===n?z.PATHS.GET_SERVICE_DETAIL:"";try{u(!0);const C=yield l.callApi(l.getCarePath(w,{id:o,site:h.domainLocales[s]}),"get");if(1===(null==C?void 0:C._status)){const o="doctor"===n?{id:null===(t=null===(e=null==C?void 0:C._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(i=null===(a=null==C?void 0:C._data)||void 0===a?void 0:a.doctor)||void 0===i?void 0:i.slug,localSlug:null===(r=M.LOCALIZED_SLUGS[s])||void 0===r?void 0:r.DOCTOR}:"hospital"===n?{id:null===(c=null===(d=null==C?void 0:C._data)||void 0===d?void 0:d.branch)||void 0===c?void 0:c.id,slug:null===(m=null===(p=null==C?void 0:C._data)||void 0===p?void 0:p.branch)||void 0===m?void 0:m.slug,localSlug:null===(g=M.LOCALIZED_SLUGS[s])||void 0===g?void 0:g.HOSPITAL}:{id:null===(x=null===(f=null==C?void 0:C._data)||void 0===f?void 0:f.service)||void 0===x?void 0:x.id,slug:null===(v=null===(b=null==C?void 0:C._data)||void 0===b?void 0:b.service)||void 0===v?void 0:v.slug,localSlug:null===(y=M.LOCALIZED_SLUGS[s])||void 0===y?void 0:y.SERVICE};window.location.href=`${P.getCurrentBaseUrl(s)}/care/${o.localSlug}/${o.slug}-${o.id}/`}else u(!1)}catch(e){console.log(e),u(!1)}}))),[]);return o&&n?j.default.createElement(l.Button,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:m,onClick:g,loading:p},d),t||c("careBooking.bookAnAppointment")):null},X=i.memo((()=>j.default.createElement("div",{className:"shoppable"},j.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),j.default.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),Y=i.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>j.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),K=i.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>j.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var J=o.createStyles(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ee=$.default.a`
1
+ "use strict";var e=require("./screenSizeContext-fbab96ac.js"),t=require("styled-components"),a=require("./tslib.es6-66f4373b.js"),i=require("react"),o=require("@mantine/core"),r=require("./useTranslations-b4594bd3.js"),n=require("./index-1fee8988.js"),l=require("./index.styles-bca5299c.js"),s=require("./index-3cb544c8.js"),d=require("./index-7243b522.js"),c=require("./gAssets.js"),p=require("./index-22d7e5f2.js"),u=require("./index-b17e8380.js"),m=require("./theme-8e5f3027.js");require("@mantine/dates");var h=require("./index-af2d5ff0.js"),g=require("./Onboarding-680b3178.js"),f=require("dayjs");require("./isProduction-d069d72f.js"),require("@mantine/hooks");var x=require("lodash/debounce");require("./useCategory-df177b44.js"),require("innertext");var b=require("date-fns"),v=require("react-day-picker/DayPickerInput"),y=require("./index.styled-e128f66d.js");require("react-dom");var w=require("./index-2ebbbba2.js");require("lodash/throttle");var C=require("./index-be9ef612.js"),E=require("./types-cb1ac6a2.js"),k=require("react-hook-form");require("./translationsContext-be52e93c.js"),require("string-format");var S=require("@hookform/resolvers/yup"),A=require("./index-0f86901f.js"),T=require("./index-ec824be5.js");require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-c563f83f.js"),require("uuid"),require("./utils-cca429d5.js");var N=require("./cookieHelper-ef035a02.js"),D=require("./number-12cac8a1.js"),I=require("dayjs/plugin/relativeTime"),z=require("./paths-7111bdc0.js"),M=require("./constants-978d74c9.js"),P=require("./routing-15049135.js"),B=require("./index-1e968087.js"),_=require("./useUniqueId-0230c3e7.js");function O(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function L(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("react-contenteditable"),require("js-cookie"),require("@mantine/form"),require("lodash/flatten"),require("lodash/uniqBy");var $=O(t),j=O(i),R=L(i),F=O(f),U=O(x),V=O(v),q=O(I);const H=({type:e,size:t="small",label:a,name:i,checked:o,value:r,className:n,isDisabled:s=!1,onChange:d,dataEventCategory:c,dataEventAction:p,dataEventLabel:u})=>{const m=!!p&&!!c&&!!u?{"data-event-category":c,"data-event-action":p,"data-event-label":u}:{};return j.default.createElement(l.StyledRadio,{"data-disabled":s,className:n,"data-type":e,"data-size":t},j.default.createElement("label",Object.assign({style:{display:"flex",alignItems:"center"}},m),j.default.createElement("input",Object.assign({type:"radio",checked:o,name:i,value:r,onChange:()=>d(r)},m)),a))},W={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},G=e=>{var{siteType:t,role:i,title:o,styles:n,className:s}=e,d=a.__rest(e,["siteType","role","title","styles","className"]);const{t:c}=r.useTranslations(),p=i?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(i):"",{classes:u,cx:m}=l.useStyles$1(void 0,{name:"AuthorBadge",styles:n});return p&&W[p]?j.default.createElement("div",Object.assign({className:m(u.root,s),"data-label-type":p,"data-is-marrybaby":"marryBaby"===t},d),o||c(W[p])):null},Q=e=>R.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Z=e=>{var{label:t,bookingId:o,bookingType:n="doctor",locale:s="vi-VN"}=e,d=a.__rest(e,["label","bookingId","bookingType","locale"]);const{t:c}=r.useTranslations(),[p,u]=i.useState(!1),m=i.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]),g=i.useCallback((()=>a.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,i,r,d,c,p,m,g,f,x,b,v,y;const w="doctor"===n?z.PATHS.GET_DOCTOR_DETAIL:"hospital"===n?z.PATHS.GET_HOSPITAL_DETAIL:"service"===n?z.PATHS.GET_SERVICE_DETAIL:"";try{u(!0);const C=yield l.callApi(l.getCarePath(w,{id:o,site:h.domainLocales[s]}),"get");if(1===(null==C?void 0:C._status)){const o="doctor"===n?{id:null===(t=null===(e=null==C?void 0:C._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(i=null===(a=null==C?void 0:C._data)||void 0===a?void 0:a.doctor)||void 0===i?void 0:i.slug,localSlug:null===(r=M.LOCALIZED_SLUGS[s])||void 0===r?void 0:r.DOCTOR}:"hospital"===n?{id:null===(c=null===(d=null==C?void 0:C._data)||void 0===d?void 0:d.branch)||void 0===c?void 0:c.id,slug:null===(m=null===(p=null==C?void 0:C._data)||void 0===p?void 0:p.branch)||void 0===m?void 0:m.slug,localSlug:null===(g=M.LOCALIZED_SLUGS[s])||void 0===g?void 0:g.HOSPITAL}:{id:null===(x=null===(f=null==C?void 0:C._data)||void 0===f?void 0:f.service)||void 0===x?void 0:x.id,slug:null===(v=null===(b=null==C?void 0:C._data)||void 0===b?void 0:b.service)||void 0===v?void 0:v.slug,localSlug:null===(y=M.LOCALIZED_SLUGS[s])||void 0===y?void 0:y.SERVICE};window.location.href=`${P.getCurrentBaseUrl(s)}/care/${o.localSlug}/${o.slug}-${o.id}/`}else u(!1)}catch(e){console.log(e),u(!1)}}))),[]);return o&&n?j.default.createElement(l.Button,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:m,onClick:g,loading:p},d),t||c("careBooking.bookAnAppointment")):null},X=i.memo((()=>j.default.createElement("div",{className:"shoppable"},j.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),j.default.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),Y=i.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>j.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),K=i.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>j.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var J=o.createStyles(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ee=$.default.a`
2
2
  display: flex;
3
3
  height: 125px;
4
4
 
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-a037afcb.js"),t=require("react"),r=require("./Onboarding-bd1701e2.js"),a=require("./theme-c5ccafe7.js"),l=require("./index-4e5f40e8.js"),o=require("styled-components"),n=require("./index-4f70f571.js"),i=require("./index-2bb0e0c9.js"),d=require("./index-e4a7ec87.js"),s=require("./screenSizeContext-dca63fab.js"),c=require("dayjs"),u=require("./useTranslations-23124ee9.js");require("lodash/debounce"),require("./isProduction-911a33de.js"),require("./index-36c9f0d1.js"),require("./useCategory-42261fa9.js");var h=require("./localizeNumberFormat-0b70619f.js"),C=require("./index.styles-3a22482d.js"),m=require("./tslib.es6-b485694c.js"),f=require("./index-74437525.js");require("./gAssets.js"),require("@mantine/core"),require("@mantine/dates"),require("@mantine/hooks");var y=require("./useOutsideClick-e8092367.js"),p=require("./index-37056abd.js"),b=require("./index-e04e8fce.js"),g=require("recharts"),w=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-8ea6c9e7.js"),require("lodash/throttle"),require("./translationsContext-125f6a93.js"),require("string-format"),require("date-fns/locale"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("./cookieHelper-43c69161.js"),require("slugify"),require("./useScrollbarSize-ff1dd2fd.js"),require("react-dom");var E=x(t),v=x(o),B=x(c),L=x(w);const G=v.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-2ebbbba2.js"),t=require("react"),r=require("./Onboarding-680b3178.js"),a=require("./theme-8e5f3027.js"),l=require("./index-1fee8988.js"),o=require("styled-components"),n=require("./index-7243b522.js"),i=require("./index-b17e8380.js"),d=require("./index-0f86901f.js"),s=require("./screenSizeContext-fbab96ac.js"),c=require("dayjs"),u=require("./useTranslations-b4594bd3.js");require("lodash/debounce"),require("./isProduction-d069d72f.js"),require("./index-af2d5ff0.js"),require("./useCategory-df177b44.js");var h=require("./localizeNumberFormat-5caed487.js"),C=require("./index.styles-bca5299c.js"),m=require("./tslib.es6-66f4373b.js"),f=require("./index-3cb544c8.js");require("./gAssets.js"),require("@mantine/core"),require("@mantine/dates"),require("@mantine/hooks");var y=require("./useOutsideClick-78db2538.js"),p=require("./index-5de20bc8.js"),b=require("./index-22d7e5f2.js"),g=require("recharts"),w=require("lodash/chunk");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-0230c3e7.js"),require("lodash/throttle"),require("./translationsContext-be52e93c.js"),require("string-format"),require("date-fns/locale"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("./cookieHelper-ef035a02.js"),require("slugify"),require("./useScrollbarSize-ce56eaac.js"),require("react-dom");var E=x(t),v=x(o),B=x(c),L=x(w);const G=v.default.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  gap: 16px;
@@ -381,7 +381,7 @@
381
381
  }
382
382
  }
383
383
  }
384
- `,X=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:s}=u.useTranslations(),c="marryBaby"===n;return E.default.createElement(K,{onClick:()=>t("new"),"data-is-mb":c,"data-isActive":c&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(d.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(i.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(b.Input,{name:"name",value:r,size:"md",placeholder:s("chooseBaby.placeholder"),type:"text",onChange:o}))},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-4ee352cd.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-303e75e2.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-51881010.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-c52febdc.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-ffd291ab.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-ba7ae630.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-f9c6cd92.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-4a66eebc.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-783e5835.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-3f266cf3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-9d1ba7da.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-6b6c6244.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-7951e61a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-fb2632bb.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-c070044a.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b95c11be.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-816746e9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-985166ef.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-402f61b6.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-6937f140.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-c18abd88.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-4b9ba4aa.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-b0dc7872.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-4b7e3683.js")}))}}},Q={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-1824bba4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-e4ec3492.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-583d0b6c.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-0f91e1b3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-e20208e7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-8447f8b9.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f094b730.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-a26e665d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-01341dde.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-61f71c62.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-b9418db1.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-8a960206.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-bbdc0386.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-9b3ede19.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-4da42650.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-f468db5d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-d3b5fa19.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-ea3908a9.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-9b88d3d8.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-b7c2764f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-b281bbc3.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-a682d4ef.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-7f1d852c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-5de8191c.js")}))}}},ee=(e,t,a,l)=>l===r.LOCALE.Indonesia?Q[e][t][a]():J[e][t][a](),te=(e,t)=>{const[r,a]=L.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},re=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ae=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),le=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},oe=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ne=v.default.div`
384
+ `,X=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:s}=u.useTranslations(),c="marryBaby"===n;return E.default.createElement(K,{onClick:()=>t("new"),"data-is-mb":c,"data-isActive":c&&e},"marryBaby"===n?E.default.createElement("div",{className:"title"},E.default.createElement(d.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"},e&&E.default.createElement(i.Icon.CheckActiveMB,{size:26}))):E.default.createElement("div",{className:"title"},E.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},s("chooseBaby.new")),E.default.createElement("div",{className:e?"radio active":"radio"})),E.default.createElement(b.Input,{name:"name",value:r,size:"md",placeholder:s("chooseBaby.placeholder"),type:"text",onChange:o}))},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-348f8868.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-748f1890.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-9fc08aae.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-3e5b7405.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-66d29282.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-76ec4442.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-30f6b49d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-9d236252.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-51fbc628.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-c00b1465.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-9b4a7efd.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-9c894fd9.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-ef07c7a3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-18bf8d9f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-ad72b2fb.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-42e8fc4a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-4b00af11.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-b45e7683.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0c279436.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-e9d4bdcd.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-00936988.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-40156ad2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-866d83b5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-a08b81c2.js")}))}}},Q={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-3589e565.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-c3206639.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-010625e0.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-65596564.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-4a1ac1c7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-6c85d212.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-ac6baa93.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-bc137ba6.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-85582234.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-8b382e4c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-793bb6db.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-f5a3264b.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-26464dca.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-b6970dd5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-4c2d09f5.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-c26b1a8a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-4262e457.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-602c973c.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-d62b3079.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-51616dbb.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-a2be1c2a.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-142ffa78.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-879abeb0.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-9954929c.js")}))}}},ee=(e,t,a,l)=>l===r.LOCALE.Indonesia?Q[e][t][a]():J[e][t][a](),te=(e,t)=>{const[r,a]=L.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},re=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ae=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),le=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},oe=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ne=v.default.div`
385
385
  position: relative;
386
386
  .custom-chart-label {
387
387
  display: flex;
package/build/cache.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-6777448c.js");require("./tslib.es6-b485694c.js"),require("./isProduction-911a33de.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-c2188d67.js");require("./tslib.es6-66f4373b.js"),require("./isProduction-d069d72f.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
package/build/care.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-9661d5dc.js"),r=require("./constants-56c2d623.js");require("./tslib.es6-b485694c.js"),require("react"),require("./useTranslations-23124ee9.js"),require("./translationsContext-125f6a93.js"),require("string-format"),require("lodash/debounce"),require("./index-e04e8fce.js"),require("@mantine/core"),require("./index-2bb0e0c9.js"),require("./screenSizeContext-dca63fab.js"),require("styled-components"),require("lodash/throttle"),require("./theme-c5ccafe7.js"),require("dayjs"),require("./index-36c9f0d1.js"),require("date-fns/locale"),require("./Onboarding-bd1701e2.js"),require("./isProduction-911a33de.js"),require("./gAssets.js"),require("./useUniqueId-8ea6c9e7.js"),require("./index-4e5f40e8.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-e8092367.js"),require("./paths-9cc0f16a.js"),require("./cookieHelper-43c69161.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.CareConstants=r.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-f0e58666.js"),r=require("./constants-978d74c9.js");require("./tslib.es6-66f4373b.js"),require("react"),require("./useTranslations-b4594bd3.js"),require("./translationsContext-be52e93c.js"),require("string-format"),require("lodash/debounce"),require("./index-22d7e5f2.js"),require("@mantine/core"),require("./index-b17e8380.js"),require("./screenSizeContext-fbab96ac.js"),require("styled-components"),require("lodash/throttle"),require("./theme-8e5f3027.js"),require("dayjs"),require("./index-af2d5ff0.js"),require("date-fns/locale"),require("./Onboarding-680b3178.js"),require("./isProduction-d069d72f.js"),require("./gAssets.js"),require("./useUniqueId-0230c3e7.js"),require("./index-1fee8988.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-78db2538.js"),require("./paths-7111bdc0.js"),require("./cookieHelper-ef035a02.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.CareConstants=r.constants;
@@ -18,10 +18,10 @@ export type { DynamicInputOrderProps } from './dynamicForm';
18
18
  export declare const Onboarding: {
19
19
  Provider: ({ children, siteType, setSharedData: _setSharedData, }: import("./provider").Props) => import("react").JSX.Element;
20
20
  Modal: ({ children, withSimilac, banner, withPortal, ...rest }: import("./modal").OnboardingModalProps) => import("react").JSX.Element;
21
- Form: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, isActive, submitProps, submitLabel, skipProps, }: import("./onboardingForm").OnboardingFormProps) => import("react").JSX.Element;
21
+ Form: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, isActive, submitProps, submitLabel, skipProps, isWhatsApp, }: import("./onboardingForm").OnboardingFormProps) => import("react").JSX.Element;
22
22
  OtpForm: {
23
23
  Email: ({ onSubmit: _onSubmit, email: emailProp, onResendCode, otpError, onClose, loading, canSkip: canSkipInit, }: import("./otpForm/email").EmailOtpFormProps) => import("react").JSX.Element;
24
- Phone: ({ onSubmit: _onSubmit, phone: phoneProp, onResendCode, otpError, onClose, loading, canSkip: canSkipInit, }: import("./otpForm/phone").PhoneOtpFormProps) => import("react").JSX.Element;
24
+ Phone: ({ onSubmit: _onSubmit, phone: phoneProp, onResendCode, otpError, onClose, loading, canSkip: canSkipInit, isWhatsApp, }: import("./otpForm/phone").PhoneOtpFormProps) => import("react").JSX.Element;
25
25
  };
26
26
  PersonalInfoForm: ({ onClose, onSubmit, canSkip, loading, errorMessage, initialData, }: import("./personalInfoForm").PersonalInfoFormProps) => import("react").JSX.Element;
27
27
  ResultScreen: ({ onClose, ...rest }: import("./resultScreen").Props) => import("react").JSX.Element;
@@ -14,5 +14,6 @@ export type OnboardingFormProps = {
14
14
  submitLabel?: string;
15
15
  submitProps?: ButtonProps;
16
16
  skipProps?: ButtonProps;
17
+ isWhatsApp?: boolean;
17
18
  } & Partial<OnboardingItemShareProps>;
18
- export declare const DefaultOnboardingForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, isActive, submitProps, submitLabel, skipProps, }: OnboardingFormProps) => React.JSX.Element;
19
+ export declare const DefaultOnboardingForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, isActive, submitProps, submitLabel, skipProps, isWhatsApp, }: OnboardingFormProps) => React.JSX.Element;
@@ -7,5 +7,6 @@ export type PhoneOtpFormProps = {
7
7
  onClose(): void;
8
8
  loading?: boolean;
9
9
  canSkip?: boolean;
10
+ isWhatsApp?: boolean;
10
11
  };
11
- export declare const PhoneOtpForm: ({ onSubmit: _onSubmit, phone: phoneProp, onResendCode, otpError, onClose, loading, canSkip: canSkipInit, }: PhoneOtpFormProps) => React.JSX.Element;
12
+ export declare const PhoneOtpForm: ({ onSubmit: _onSubmit, phone: phoneProp, onResendCode, otpError, onClose, loading, canSkip: canSkipInit, isWhatsApp, }: PhoneOtpFormProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ContainerProps } from '@mantine/core';
3
3
  export type OnboardingProps = {
4
- heading?: string;
4
+ heading?: string | React.ReactNode;
5
5
  description?: React.ReactNode;
6
6
  imgSrc?: string;
7
7
  hiddenLogo?: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-d4ed5be5.js"),r=require("./index-66418518.js"),o=require("./index-4f70f571.js"),t=require("./index-a6bb5f04.js"),i=require("./index.styles-3a22482d.js"),a=require("./index-e04e8fce.js"),s=require("./index-2bb0e0c9.js"),n=require("./index-c133ec54.js"),d=require("./_topic-8311bc5c.js"),u=require("./index-4e5f40e8.js"),p=require("./index-a037afcb.js"),x=require("./index-74437525.js"),c=require("./index.styled-d5862b70.js"),l=require("./index-37056abd.js"),q=require("./index-9297b09d.js"),g=require("./index-d9ff9e9d.js"),C=require("./footer.js");require("react"),require("./screenSizeContext-dca63fab.js"),require("styled-components"),require("lodash/throttle"),require("./useUniqueId-8ea6c9e7.js"),require("./gAssets.js"),require("./index-36c9f0d1.js"),require("date-fns/locale"),require("./Onboarding-bd1701e2.js"),require("./isProduction-911a33de.js"),require("./theme-c5ccafe7.js"),require("./tslib.es6-b485694c.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("./translationsContext-125f6a93.js"),require("string-format"),require("@mantine/hooks"),require("./useTranslations-23124ee9.js"),require("date-fns"),require("lodash/debounce"),require("./useCategory-42261fa9.js"),require("./types-e6692e7f.js"),require("./index-e4a7ec87.js"),require("./index-beef7f31.js"),require("react-hook-form"),require("./useHealthToolCache-5c729cfa.js"),require("./getDynamicHealthTool-586c30e6.js"),require("./core-6777448c.js"),require("./normalizeLink-67428231.js"),require("./routing-e3573c96.js"),require("./useOutsideClick-e8092367.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-a979b7f7.js"),require("uuid"),require("react-contenteditable"),require("react-dom"),require("react-day-picker/DayPickerInput"),require("./index.styled-796d2028.js"),require("./utils-e75d6abb.js"),require("./index-08f5063b.js"),require("js-cookie"),require("@mantine/form"),require("lodash/flatten"),require("lodash/uniqBy"),require("./cookieHelper-43c69161.js"),require("./constants-56c2d623.js"),require("./index-9a32846d.js"),require("./useIsInit-3a88f63a.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("slugify"),require("@hookform/resolvers/yup"),require("./number-c0d99f18.js"),require("dayjs/plugin/relativeTime"),require("./paths-9cc0f16a.js"),require("./useScrollbarSize-ff1dd2fd.js"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.PremiumNewsletterBanner=e.PremiumNewsletterBanner,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.Avatar=r.Avatar,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Flag=i.Flag,exports.Heading=i.Heading,exports.LogoIcon=i.LogoIcon,exports.PureInput=i.PureInput,exports.StepRenderer=i.StepRenderer,exports.StepRendererContext=i.StepRendererContext,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Container=s.Container,exports.Icon=s.Icon,exports.Label=s.Label,exports.Logo=n.Logo,exports.AdBlock=d.AdBlock,exports.AuthorBadge=d.AuthorBadge,exports.BookingBtn=d.BookingBtn,exports.DatePicker=d.DatePicker,exports.DoctorInfo=d.DoctorInfo,exports.Dropdown=d.Dropdown,exports.MobileBottomNavigation=d.MobileBottomNavigation,exports.MobileBottomNavigationIcon=d.MobileBottomNavigationIcon,exports.Radio=d.Radio,exports.RadioGroup=d.RadioGroup,exports.SurveyQuestionCard=d.SurveyQuestionCard,exports.ToolsBannerCard=d.ToolsBannerCard,exports.Text=u.Text,exports.Drawer=p.Drawer,exports.RadioImageGroup=p.RadioImageGroup,exports.CustomReferenceDot=x.CustomReferenceDot,exports.ImageWrap=x.ImageWrap,exports.Popup=c.Popup,exports.Modal=l.Modal,exports.PillCarousel=q.PillCarousel,exports.AddressInput=g.AddressInput,exports.Footer=C.Footer;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-9da4756e.js"),r=require("./index-d3f90f62.js"),o=require("./index-7243b522.js"),t=require("./index-a6c1f004.js"),i=require("./index.styles-bca5299c.js"),a=require("./index-22d7e5f2.js"),s=require("./index-b17e8380.js"),n=require("./index-be9ef612.js"),d=require("./_topic-e97ac8e9.js"),u=require("./index-1fee8988.js"),p=require("./index-2ebbbba2.js"),x=require("./index-3cb544c8.js"),c=require("./index.styled-e128f66d.js"),l=require("./index-5de20bc8.js"),q=require("./index-431dd307.js"),g=require("./index-d9168227.js"),b=require("./footer.js");require("react"),require("./screenSizeContext-fbab96ac.js"),require("styled-components"),require("lodash/throttle"),require("./useUniqueId-0230c3e7.js"),require("./gAssets.js"),require("./index-af2d5ff0.js"),require("date-fns/locale"),require("./Onboarding-680b3178.js"),require("./isProduction-d069d72f.js"),require("./theme-8e5f3027.js"),require("./tslib.es6-66f4373b.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("./translationsContext-be52e93c.js"),require("string-format"),require("@mantine/hooks"),require("./useTranslations-b4594bd3.js"),require("date-fns"),require("lodash/debounce"),require("./useCategory-df177b44.js"),require("./types-cb1ac6a2.js"),require("./index-0f86901f.js"),require("./index-ec824be5.js"),require("react-hook-form"),require("./useHealthToolCache-e0d58003.js"),require("./getDynamicHealthTool-e8f39784.js"),require("./core-c2188d67.js"),require("./normalizeLink-50b00136.js"),require("./routing-15049135.js"),require("./useOutsideClick-78db2538.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-60368527.js"),require("uuid"),require("react-contenteditable"),require("react-dom"),require("react-day-picker/DayPickerInput"),require("./index.styled-c563f83f.js"),require("./utils-cca429d5.js"),require("./index-1e968087.js"),require("js-cookie"),require("@mantine/form"),require("lodash/flatten"),require("lodash/uniqBy"),require("./cookieHelper-ef035a02.js"),require("./constants-978d74c9.js"),require("./index-62a5c4ae.js"),require("./useIsInit-e2ab71c5.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("slugify"),require("@hookform/resolvers/yup"),require("./number-12cac8a1.js"),require("dayjs/plugin/relativeTime"),require("./paths-7111bdc0.js"),require("./useScrollbarSize-ce56eaac.js"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.PremiumNewsletterBanner=e.PremiumNewsletterBanner,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.Avatar=r.Avatar,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Flag=i.Flag,exports.Heading=i.Heading,exports.LogoIcon=i.LogoIcon,exports.PureInput=i.PureInput,exports.StepRenderer=i.StepRenderer,exports.StepRendererContext=i.StepRendererContext,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Container=s.Container,exports.Icon=s.Icon,exports.Label=s.Label,exports.Logo=n.Logo,exports.AdBlock=d.AdBlock,exports.AuthorBadge=d.AuthorBadge,exports.BookingBtn=d.BookingBtn,exports.DatePicker=d.DatePicker,exports.DoctorInfo=d.DoctorInfo,exports.Dropdown=d.Dropdown,exports.MobileBottomNavigation=d.MobileBottomNavigation,exports.MobileBottomNavigationIcon=d.MobileBottomNavigationIcon,exports.Radio=d.Radio,exports.RadioGroup=d.RadioGroup,exports.SurveyQuestionCard=d.SurveyQuestionCard,exports.ToolsBannerCard=d.ToolsBannerCard,exports.Text=u.Text,exports.Drawer=p.Drawer,exports.RadioImageGroup=p.RadioImageGroup,exports.CustomReferenceDot=x.CustomReferenceDot,exports.ImageWrap=x.ImageWrap,exports.Popup=c.Popup,exports.Modal=l.Modal,exports.PillCarousel=q.PillCarousel,exports.AddressInput=g.AddressInput,exports.Footer=b.Footer;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-bd1701e2.js");var O=require("./index-36c9f0d1.js"),e=require("./isProduction-911a33de.js");exports.BEARER_TOKEN_COOKIE=O.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=O.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=O.CARE_LOCALES,exports.CDN_ADDRESS=O.CDN_ADDRESS,exports.DATE_FNS_LOCALE=O.DATE_FNS_LOCALE,exports.ECOM_LOCALES=O.ECOM_LOCALES,exports.FAVICONS=O.FAVICONS,exports.GA_TOKEN_COOKIE=O.GA_TOKEN_COOKIE,exports.ISO_FORMAT=O.ISO_FORMAT,exports.LOCALE_SPECS=O.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return O.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=O.STATIC_PAGES,exports.TOGETHER_LOCALES=O.TOGETHER_LOCALES,exports.UP_BASEPATH=O.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=O.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=O.domainLocales,exports.siteHost=O.siteHost,exports.siteOptions=O.siteOptions,exports.isProduction=e.isProduction;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-680b3178.js");var O=require("./index-af2d5ff0.js"),E=require("./isProduction-d069d72f.js");exports.BEARER_TOKEN_COOKIE=O.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=O.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=O.CARE_LOCALES,exports.CDN_ADDRESS=O.CDN_ADDRESS,exports.DATE_FNS_LOCALE=O.DATE_FNS_LOCALE,exports.ECOM_LOCALES=O.ECOM_LOCALES,exports.FAVICONS=O.FAVICONS,exports.GA_TOKEN_COOKIE=O.GA_TOKEN_COOKIE,exports.ISO_FORMAT=O.ISO_FORMAT,exports.LOCALE_SPECS=O.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return O.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=O.STATIC_PAGES,exports.TOGETHER_LOCALES=O.TOGETHER_LOCALES,exports.UP_BASEPATH=O.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=O.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=O.domainLocales,exports.siteHost=O.siteHost,exports.siteOptions=O.siteOptions,exports.isProduction=E.isProduction;
@@ -1 +1 @@
1
- "use strict";var t=require("./tslib.es6-b485694c.js"),e=require("./isProduction-911a33de.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
1
+ "use strict";var t=require("./tslib.es6-66f4373b.js"),e=require("./isProduction-d069d72f.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
package/build/ecom.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme-c5ccafe7.js");require("./index-36c9f0d1.js");var o=require("./isProduction-911a33de.js"),t=require("./types-e6692e7f.js");require("date-fns/locale"),require("./Onboarding-bd1701e2.js");var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",u=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,c=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},m=a?"http://localhost:3001":o.isProduction?`https://${d[s]}`:`https://discover.${d[s]}`,p=o.isProduction?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:u,GOOGLE_CLIENT_ID:c,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.theme.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(c=null===(u=null==e?void 0:e.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(c=(u=e.sub_banners).map)||void 0===c?void 0:c.call(u,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(u=e.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=e.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});exports.Types=t.types,exports.ApiTypes=l,exports.Constants=T,exports.DataFormatter=A,exports.DataTypes=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme-8e5f3027.js");require("./index-af2d5ff0.js");var o=require("./isProduction-d069d72f.js"),t=require("./types-cb1ac6a2.js");require("date-fns/locale"),require("./Onboarding-680b3178.js");var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",u=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,c=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},m=a?"http://localhost:3001":o.isProduction?`https://${d[s]}`:`https://discover.${d[s]}`,p=o.isProduction?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:u,GOOGLE_CLIENT_ID:c,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.theme.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(c=null===(u=null==e?void 0:e.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(c=(u=e.sub_banners).map)||void 0===c?void 0:c.call(u,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,u,c,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(u=e.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=e.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});exports.Types=t.types,exports.ApiTypes=l,exports.Constants=T,exports.DataFormatter=A,exports.DataTypes=i;
@@ -1,4 +1,4 @@
1
- import{M as e,t}from"./screenSizeContext-5c82841a.js";import a,{keyframes as i,css as n}from"styled-components";import{_ as o,a as r}from"./tslib.es6-5c131ae0.js";import*as l from"react";import s,{useState as d,useMemo as c,useCallback as p,memo as m,useRef as h,useEffect as u,useImperativeHandle as g,Fragment as b,forwardRef as f,createContext as x,useContext as v}from"react";import{createStyles as y,useMantineTheme as w,getStylesRef as k,Flex as E,rem as C,Box as A,Portal as N,Anchor as S,Accordion as z,Group as T}from"@mantine/core";import{u as D}from"./useTranslations-30aaa435.js";import{T as I}from"./index-44f86fa4.js";import{a2 as P,a3 as B,a4 as O,a5 as $,I as L,H as j,T as M,a6 as _,a7 as F,a8 as R,x as U,a9 as V,P as H,E as q,d as W,aa as Z,ab as G,ac as X,ad as Y,ae as Q,af as K,ag as J,ah as ee,ai as te,y as ae,N as ie,aj as ne,O as oe,ak as re,M as le,A as se,al as de,am as ce,an as pe}from"./index.styles-8a242f95.js";import{I as me}from"./index-28f63afa.js";import{B as he}from"./index-d50c2330.js";import{CommonGAssets as ue}from"./gAssets.js";import{I as ge}from"./index-c0b4791d.js";import{L as be,I as fe,H as xe,P as ve}from"./index-5791bb5e.js";import{t as ye}from"./theme-de986140.js";import"@mantine/dates";import{d as we,D as ke}from"./index-bfa78c44.js";import{G as Ee,L as Ce}from"./Onboarding-76dc8304.js";import Ae from"dayjs";import"./isProduction-cc02dbe1.js";import"@mantine/hooks";import Ne from"lodash/debounce";import"./useCategory-7d8609bc.js";import"innertext";import{format as Se,addDays as ze}from"date-fns";import Te from"react-day-picker/DayPickerInput";import{U as De,P as Ie,an as Pe,am as Be,ap as Oe,aq as $e}from"./index.styled-3fd8255b.js";import"react-dom";import{B as Le,D as je}from"./index-450899bd.js";import"lodash/throttle";import{L as Me}from"./index-df2f8e37.js";import{D as _e}from"./types-704a9e2a.js";import{useForm as Fe,Controller as Re}from"react-hook-form";import"./translationsContext-6ad83b5e.js";import"string-format";import{yupResolver as Ue}from"@hookform/resolvers/yup";import{M as Ve}from"./index-b91f88a9.js";import{S as He}from"./index-4aa9bd18.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-e2634b67.js";import"uuid";import"./utils-de53cba3.js";import{d as qe,g as We}from"./cookieHelper-bb639635.js";import{a as Ze}from"./number-e4e40587.js";import Ge from"dayjs/plugin/relativeTime";import{P as Xe}from"./paths-72ad2c5a.js";import{L as Ye}from"./constants-bb7e4df3.js";import{g as Qe}from"./routing-01f1d0a2.js";import{M as Ke}from"./index-46ca4767.js";import{a as Je}from"./useUniqueId-fa69a40e.js";import"react-contenteditable";import"js-cookie";import"@mantine/form";import"lodash/flatten";import"lodash/uniqBy";const et=({type:e,size:t="small",label:a,name:i,checked:n,value:o,className:r,isDisabled:l=!1,onChange:d,dataEventCategory:c,dataEventAction:p,dataEventLabel:m})=>{const h=!!p&&!!c&&!!m?{"data-event-category":c,"data-event-action":p,"data-event-label":m}:{};return s.createElement(P,{"data-disabled":l,className:r,"data-type":e,"data-size":t},s.createElement("label",Object.assign({style:{display:"flex",alignItems:"center"}},h),s.createElement("input",Object.assign({type:"radio",checked:n,name:i,value:o,onChange:()=>d(o)},h)),a))},tt={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},at=e=>{var{siteType:t,role:a,title:i,styles:n,className:r}=e,l=o(e,["siteType","role","title","styles","className"]);const{t:d}=D(),c=a?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(a):"",{classes:p,cx:m}=B(void 0,{name:"AuthorBadge",styles:n});return c&&tt[c]?s.createElement("div",Object.assign({className:m(p.root,r),"data-label-type":c,"data-is-marrybaby":"marryBaby"===t},l),i||d(tt[c])):null},it=e=>l.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),nt=e=>{var{label:t,bookingId:a,bookingType:i="doctor",locale:n="vi-VN"}=e,l=o(e,["label","bookingId","bookingType","locale"]);const{t:m}=D(),[h,u]=d(!1),g=c((()=>"undefined"!=typeof window?window.location.href:""),[]),b=p((()=>r(void 0,void 0,void 0,(function*(){var e,t,o,r,l,s,d,c,p,m,h,g,b,f,x;const v="doctor"===i?Xe.GET_DOCTOR_DETAIL:"hospital"===i?Xe.GET_HOSPITAL_DETAIL:"service"===i?Xe.GET_SERVICE_DETAIL:"";try{u(!0);const y=yield O($(v,{id:a,site:we[n]}),"get");if(1===(null==y?void 0:y._status)){const a="doctor"===i?{id:null===(t=null===(e=null==y?void 0:y._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(r=null===(o=null==y?void 0:y._data)||void 0===o?void 0:o.doctor)||void 0===r?void 0:r.slug,localSlug:null===(l=Ye[n])||void 0===l?void 0:l.DOCTOR}:"hospital"===i?{id:null===(d=null===(s=null==y?void 0:y._data)||void 0===s?void 0:s.branch)||void 0===d?void 0:d.id,slug:null===(p=null===(c=null==y?void 0:y._data)||void 0===c?void 0:c.branch)||void 0===p?void 0:p.slug,localSlug:null===(m=Ye[n])||void 0===m?void 0:m.HOSPITAL}:{id:null===(g=null===(h=null==y?void 0:y._data)||void 0===h?void 0:h.service)||void 0===g?void 0:g.id,slug:null===(f=null===(b=null==y?void 0:y._data)||void 0===b?void 0:b.service)||void 0===f?void 0:f.slug,localSlug:null===(x=Ye[n])||void 0===x?void 0:x.SERVICE};window.location.href=`${Qe(n)}/care/${a.localSlug}/${a.slug}-${a.id}/`}else u(!1)}catch(e){console.log(e),u(!1)}}))),[]);return a&&i?s.createElement(L,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:g,onClick:b,loading:h},l),t||m("careBooking.bookAnAppointment")):null},ot=m((()=>s.createElement("div",{className:"shoppable"},s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),s.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),rt=m((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>s.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),lt=m((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>s.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var st=y(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const dt=a.a`
1
+ import{M as e,t}from"./screenSizeContext-32376937.js";import a,{keyframes as i,css as n}from"styled-components";import{_ as o,a as r}from"./tslib.es6-74f0570d.js";import*as l from"react";import s,{useState as d,useMemo as c,useCallback as p,memo as m,useRef as h,useEffect as u,useImperativeHandle as g,Fragment as b,forwardRef as f,createContext as x,useContext as v}from"react";import{createStyles as y,useMantineTheme as w,getStylesRef as k,Flex as E,rem as C,Box as A,Portal as N,Anchor as S,Accordion as z,Group as T}from"@mantine/core";import{u as D}from"./useTranslations-d3d91dae.js";import{T as I}from"./index-94ba9ce3.js";import{a2 as P,a3 as B,a4 as O,a5 as $,I as L,H as j,T as M,a6 as _,a7 as F,a8 as R,x as U,a9 as V,P as H,E as q,d as W,aa as Z,ab as G,ac as X,ad as Y,ae as Q,af as K,ag as J,ah as ee,ai as te,y as ae,N as ie,aj as ne,O as oe,ak as re,M as le,A as se,al as de,am as ce,an as pe}from"./index.styles-3cb66895.js";import{I as me}from"./index-ee66cce2.js";import{B as he}from"./index-eb7b481c.js";import{CommonGAssets as ue}from"./gAssets.js";import{I as ge}from"./index-17e18342.js";import{L as be,I as fe,H as xe,P as ve}from"./index-e9f94e1d.js";import{t as ye}from"./theme-fa44d5d8.js";import"@mantine/dates";import{d as we,D as ke}from"./index-e29c43c9.js";import{G as Ee,L as Ce}from"./Onboarding-e74c6373.js";import Ae from"dayjs";import"./isProduction-e91fe1f8.js";import"@mantine/hooks";import Ne from"lodash/debounce";import"./useCategory-be3ee862.js";import"innertext";import{format as Se,addDays as ze}from"date-fns";import Te from"react-day-picker/DayPickerInput";import{U as De,P as Ie,an as Pe,am as Be,ap as Oe,aq as $e}from"./index.styled-54fac88c.js";import"react-dom";import{B as Le,D as je}from"./index-d870b668.js";import"lodash/throttle";import{L as Me}from"./index-c5aedb3d.js";import{D as _e}from"./types-3f93b402.js";import{useForm as Fe,Controller as Re}from"react-hook-form";import"./translationsContext-19ab986c.js";import"string-format";import{yupResolver as Ue}from"@hookform/resolvers/yup";import{M as Ve}from"./index-7cc30b43.js";import{S as He}from"./index-449f5c48.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-ee45f4b9.js";import"uuid";import"./utils-5148d654.js";import{d as qe,g as We}from"./cookieHelper-0b465a40.js";import{a as Ze}from"./number-0269eb39.js";import Ge from"dayjs/plugin/relativeTime";import{P as Xe}from"./paths-edfac68b.js";import{L as Ye}from"./constants-712f22d5.js";import{g as Qe}from"./routing-2eb975c1.js";import{M as Ke}from"./index-20383a76.js";import{a as Je}from"./useUniqueId-4bcf65b3.js";import"react-contenteditable";import"js-cookie";import"@mantine/form";import"lodash/flatten";import"lodash/uniqBy";const et=({type:e,size:t="small",label:a,name:i,checked:n,value:o,className:r,isDisabled:l=!1,onChange:d,dataEventCategory:c,dataEventAction:p,dataEventLabel:m})=>{const h=!!p&&!!c&&!!m?{"data-event-category":c,"data-event-action":p,"data-event-label":m}:{};return s.createElement(P,{"data-disabled":l,className:r,"data-type":e,"data-size":t},s.createElement("label",Object.assign({style:{display:"flex",alignItems:"center"}},h),s.createElement("input",Object.assign({type:"radio",checked:n,name:i,value:o,onChange:()=>d(o)},h)),a))},tt={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},at=e=>{var{siteType:t,role:a,title:i,styles:n,className:r}=e,l=o(e,["siteType","role","title","styles","className"]);const{t:d}=D(),c=a?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(a):"",{classes:p,cx:m}=B(void 0,{name:"AuthorBadge",styles:n});return c&&tt[c]?s.createElement("div",Object.assign({className:m(p.root,r),"data-label-type":c,"data-is-marrybaby":"marryBaby"===t},l),i||d(tt[c])):null},it=e=>l.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),nt=e=>{var{label:t,bookingId:a,bookingType:i="doctor",locale:n="vi-VN"}=e,l=o(e,["label","bookingId","bookingType","locale"]);const{t:m}=D(),[h,u]=d(!1),g=c((()=>"undefined"!=typeof window?window.location.href:""),[]),b=p((()=>r(void 0,void 0,void 0,(function*(){var e,t,o,r,l,s,d,c,p,m,h,g,b,f,x;const v="doctor"===i?Xe.GET_DOCTOR_DETAIL:"hospital"===i?Xe.GET_HOSPITAL_DETAIL:"service"===i?Xe.GET_SERVICE_DETAIL:"";try{u(!0);const y=yield O($(v,{id:a,site:we[n]}),"get");if(1===(null==y?void 0:y._status)){const a="doctor"===i?{id:null===(t=null===(e=null==y?void 0:y._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(r=null===(o=null==y?void 0:y._data)||void 0===o?void 0:o.doctor)||void 0===r?void 0:r.slug,localSlug:null===(l=Ye[n])||void 0===l?void 0:l.DOCTOR}:"hospital"===i?{id:null===(d=null===(s=null==y?void 0:y._data)||void 0===s?void 0:s.branch)||void 0===d?void 0:d.id,slug:null===(p=null===(c=null==y?void 0:y._data)||void 0===c?void 0:c.branch)||void 0===p?void 0:p.slug,localSlug:null===(m=Ye[n])||void 0===m?void 0:m.HOSPITAL}:{id:null===(g=null===(h=null==y?void 0:y._data)||void 0===h?void 0:h.service)||void 0===g?void 0:g.id,slug:null===(f=null===(b=null==y?void 0:y._data)||void 0===b?void 0:b.service)||void 0===f?void 0:f.slug,localSlug:null===(x=Ye[n])||void 0===x?void 0:x.SERVICE};window.location.href=`${Qe(n)}/care/${a.localSlug}/${a.slug}-${a.id}/`}else u(!1)}catch(e){console.log(e),u(!1)}}))),[]);return a&&i?s.createElement(L,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:g,onClick:b,loading:h},l),t||m("careBooking.bookAnAppointment")):null},ot=m((()=>s.createElement("div",{className:"shoppable"},s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),s.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),rt=m((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>s.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),lt=m((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>s.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var st=y(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const dt=a.a`
2
2
  display: flex;
3
3
  height: 125px;
4
4