@hhgtech/hhg-components 1.28.27 → 1.28.28

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 (280) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components.js +1 -1
  5. package/build/{constants-14381f42.js → constants-32fce788.js} +1 -1
  6. package/build/{constants-366d8cc3.js → constants-40e42f36.js} +1 -1
  7. package/build/constants.js +1 -1
  8. package/build/{core-7b6d9373.js → core-9daa2b6d.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +4 -4
  11. package/build/esm/cache.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components.js +1 -1
  14. package/build/esm/{constants-a2326fe5.js → constants-cf8d2b27.js} +2 -2
  15. package/build/esm/{constants-f36eb4e2.js → constants-f17c72d7.js} +1 -1
  16. package/build/esm/constants.js +1 -1
  17. package/build/esm/{core-2f2dda7e.js → core-469917c1.js} +1 -1
  18. package/build/esm/ecom.js +1 -1
  19. package/build/esm/footer.js +1 -1
  20. package/build/esm/gAssets.js +1 -1
  21. package/build/esm/{getDynamicHealthTool-41d50b69.js → getDynamicHealthTool-07d36d83.js} +1 -1
  22. package/build/esm/{getSocialList-060992d0.js → getSocialList-52e734b5.js} +1 -1
  23. package/build/esm/hooks.js +1 -1
  24. package/build/esm/i18n.js +1 -1
  25. package/build/esm/i18nV2.js +1 -1
  26. package/build/esm/{index-0da50440.js → index-0914cf85.js} +1 -1
  27. package/build/esm/index-0f17b8aa.js +1 -0
  28. package/build/esm/index-36c96e53.js +1 -0
  29. package/build/esm/{index-7764ffef.js → index-539f568d.js} +1 -1
  30. package/build/esm/{index-7eaffe1d.js → index-59321c99.js} +1 -1
  31. package/build/esm/{index-ad37bd51.js → index-5ff5ccf6.js} +1 -1
  32. package/build/esm/{index-c97cb127.js → index-63cb82b7.js} +1 -1
  33. package/build/esm/{index-be029805.js → index-6a242131.js} +6 -6
  34. package/build/esm/index-6db1bd1f.js +1 -0
  35. package/build/esm/{index-bb52270a.js → index-70255978.js} +1 -1
  36. package/build/esm/{index-8076b5e7.js → index-7532b0c5.js} +1 -1
  37. package/build/esm/{index-5d265d4a.js → index-7af053cd.js} +2 -2
  38. package/build/esm/{index-8f7e0932.js → index-8727c628.js} +1 -1
  39. package/build/esm/{index-21499b02.js → index-992c1d4f.js} +1 -1
  40. package/build/esm/{index-4e2b3392.js → index-9e8718ca.js} +1 -1
  41. package/build/esm/{index-18db64a2.js → index-a53e5cc5.js} +1 -1
  42. package/build/esm/{index-0069b300.js → index-a5572feb.js} +1 -1
  43. package/build/esm/index-ab913381.js +1 -0
  44. package/build/esm/{index-d45b63f5.js → index-bb64c9f3.js} +1 -1
  45. package/build/esm/index-d97b7f95.js +1 -0
  46. package/build/esm/{index-2f775881.js → index-dce8c446.js} +1 -1
  47. package/build/esm/index-e9742f34.js +1 -0
  48. package/build/esm/index.js +1 -1
  49. package/build/esm/{index.styled-818887fe.js → index.styled-82281f59.js} +1 -1
  50. package/build/esm/{index.styled-0dcbc92f.js → index.styled-83170533.js} +2 -2
  51. package/build/esm/{index.styled-ead6e56f.js → index.styled-8642a0c0.js} +1 -1
  52. package/build/esm/{index.styled-fbb9b538.js → index.styled-bd0daa57.js} +1 -1
  53. package/build/esm/{index.styles-f64f8d92.js → index.styles-309a8680.js} +1 -1
  54. package/build/esm/lead.js +1 -1
  55. package/build/esm/mantine.js +1 -1
  56. package/build/esm/misc.js +1 -1
  57. package/build/esm/navigation.js +1 -1
  58. package/build/esm/onboardingV2.js +1 -1
  59. package/build/esm/pwg.js +3 -3
  60. package/build/esm/{routing-2ba10dbb.js → routing-910eb4da.js} +1 -1
  61. package/build/esm/subot.js +1 -1
  62. package/build/esm/together.js +1 -1
  63. package/build/esm/{types-48cbc013.js → types-225e1b02.js} +1 -1
  64. package/build/esm/{types-0fecac8b.js → types-f83118a3.js} +1 -1
  65. package/build/esm/types.js +1 -1
  66. package/build/esm/{useCategory-b8bdf992.js → useCategory-28c9abc6.js} +1 -1
  67. package/build/esm/{useHealthToolCache-f00411f5.js → useHealthToolCache-e117dfc4.js} +1 -1
  68. package/build/esm/{usePlacesAutocomplete-65a79be3.js → usePlacesAutocomplete-e30f1118.js} +1 -1
  69. package/build/esm/{useRafState-3be3d0f1.js → useRafState-10da1fd9.js} +1 -1
  70. package/build/esm/{useTranslations-86073e0f.js → useTranslations-d8b9e866.js} +1 -1
  71. package/build/esm/{utils-d8b31ded.js → utils-a7d6d7bd.js} +1 -1
  72. package/build/esm/{utils-d6d6970c.js → utils-c6957af3.js} +1 -1
  73. package/build/esm/vaccination.js +1 -1
  74. package/build/footer.js +1 -1
  75. package/build/gAssets.js +1 -1
  76. package/build/{getDynamicHealthTool-333e03a9.js → getDynamicHealthTool-de43b3f5.js} +1 -1
  77. package/build/{getSocialList-7ecf1347.js → getSocialList-9fc8841e.js} +1 -1
  78. package/build/hooks.js +1 -1
  79. package/build/i18n.js +1 -1
  80. package/build/i18nV2.js +1 -1
  81. package/build/{index-d23ceba7.js → index-08284f8f.js} +2 -2
  82. package/build/{index-0ab457b1.js → index-289338c5.js} +1 -1
  83. package/build/index-2efa93f4.js +1 -0
  84. package/build/{index-9b13300a.js → index-377f90fc.js} +1 -1
  85. package/build/{index-423f1457.js → index-48ac2384.js} +1 -1
  86. package/build/{index-24cc82a8.js → index-494c572e.js} +1 -1
  87. package/build/{index-f3be380d.js → index-542a0aa1.js} +1 -1
  88. package/build/index-64661797.js +1 -0
  89. package/build/{index-3d3ba5a5.js → index-701c4a92.js} +1 -1
  90. package/build/{index-114d7387.js → index-85ea987c.js} +1 -1
  91. package/build/index-97b22be6.js +1 -0
  92. package/build/{index-a5a8d5b2.js → index-9c75f185.js} +1 -1
  93. package/build/{index-7deb2119.js → index-a3916b70.js} +1 -1
  94. package/build/{index-86f98021.js → index-adc97936.js} +1 -1
  95. package/build/{index-b9bb33ab.js → index-cdb7ff38.js} +1 -1
  96. package/build/index-cefda9d4.js +1 -0
  97. package/build/index-dbb6aa7b.js +1 -0
  98. package/build/{index-c8b6e55e.js → index-dc09ac1e.js} +1 -1
  99. package/build/{index-1c5db8eb.js → index-ee279ebe.js} +11 -11
  100. package/build/{index-50466223.js → index-f2ae4ff9.js} +1 -1
  101. package/build/{index-ac0f6385.js → index-f6748529.js} +1 -1
  102. package/build/{index-95c522c4.js → index-f712bf65.js} +1 -1
  103. package/build/index.js +1 -1
  104. package/build/index.styled-2bf89382.js +50 -0
  105. package/build/{index.styled-8dfefbeb.js → index.styled-366879b1.js} +1 -1
  106. package/build/{index.styled-41210848.js → index.styled-72b6bed2.js} +1 -1
  107. package/build/{index.styled-49b96aab.js → index.styled-86c3180a.js} +6 -6
  108. package/build/{index.styles-512df4ca.js → index.styles-5b4ce3f7.js} +5 -5
  109. package/build/lead.js +1 -1
  110. package/build/mantine.js +1 -1
  111. package/build/misc.js +1 -1
  112. package/build/navigation.js +1 -1
  113. package/build/onboardingV2.js +1 -1
  114. package/build/pwg.js +1 -1
  115. package/build/{routing-f680f947.js → routing-9196855e.js} +1 -1
  116. package/build/subot.js +1 -1
  117. package/build/together.js +1 -1
  118. package/build/{types-3f2b8af5.js → types-7c5b4a63.js} +1 -1
  119. package/build/{types-b0e9dd8a.js → types-7ff69523.js} +1 -1
  120. package/build/types.js +1 -1
  121. package/build/{useCategory-be3f9396.js → useCategory-db396f3e.js} +1 -1
  122. package/build/useHealthToolCache-78894feb.js +1 -0
  123. package/build/{usePlacesAutocomplete-98b87115.js → usePlacesAutocomplete-cc9ed6fe.js} +1 -1
  124. package/build/{useRafState-7ffa2d5a.js → useRafState-ade92052.js} +1 -1
  125. package/build/{useTranslations-ee5c0b48.js → useTranslations-45ef6653.js} +1 -1
  126. package/build/{utils-bd531f10.js → utils-9013d9b5.js} +1 -1
  127. package/build/{utils-c7f33c02.js → utils-cef4a03b.js} +1 -1
  128. package/build/vaccination.js +1 -1
  129. package/package.json +1 -1
  130. package/build/esm/index-48c55bdf.js +0 -1
  131. package/build/esm/index-4ab7a8ff.js +0 -1
  132. package/build/esm/index-abd079a6.js +0 -1
  133. package/build/esm/index-bf0691ed.js +0 -1
  134. package/build/esm/index-cef99cec.js +0 -1
  135. package/build/esm/index-d79a7b50.js +0 -1
  136. package/build/index-0141e4a6.js +0 -1
  137. package/build/index-07d53d13.js +0 -1
  138. package/build/index-aa8dabc6.js +0 -1
  139. package/build/index-b7126d99.js +0 -1
  140. package/build/index-c140ea63.js +0 -1
  141. package/build/index.styled-8018ceba.js +0 -50
  142. package/build/useHealthToolCache-bd4c5d0c.js +0 -1
  143. /package/build/{BMI_BOYS.percentile.monthly-361346e6.js → BMI_BOYS.percentile.monthly-3dc40e7f.js} +0 -0
  144. /package/build/{BMI_BOYS.percentile.weekly-45ac48c1.js → BMI_BOYS.percentile.weekly-c850c918.js} +0 -0
  145. /package/build/{BMI_BOYS.percentile.yearly-5c0939d0.js → BMI_BOYS.percentile.yearly-801eb999.js} +0 -0
  146. /package/build/{BMI_BOYS.zscore.monthly-4f2403fc.js → BMI_BOYS.zscore.monthly-0ab0be45.js} +0 -0
  147. /package/build/{BMI_BOYS.zscore.weekly-5af7989f.js → BMI_BOYS.zscore.weekly-9a937581.js} +0 -0
  148. /package/build/{BMI_BOYS.zscore.yearly-dffb1a51.js → BMI_BOYS.zscore.yearly-17dfd6d3.js} +0 -0
  149. /package/build/{BMI_GIRLS.percentile.monthly-0563b375.js → BMI_GIRLS.percentile.monthly-d8085dfe.js} +0 -0
  150. /package/build/{BMI_GIRLS.percentile.weekly-3e5d9dc6.js → BMI_GIRLS.percentile.weekly-1f360a48.js} +0 -0
  151. /package/build/{BMI_GIRLS.percentile.yearly-b477720e.js → BMI_GIRLS.percentile.yearly-51c5c6d1.js} +0 -0
  152. /package/build/{BMI_GIRLS.zscore.monthly-a40829a3.js → BMI_GIRLS.zscore.monthly-b3f5412f.js} +0 -0
  153. /package/build/{BMI_GIRLS.zscore.weekly-f46c55c7.js → BMI_GIRLS.zscore.weekly-67ca1c19.js} +0 -0
  154. /package/build/{BMI_GIRLS.zscore.yearly-fb6e8eca.js → BMI_GIRLS.zscore.yearly-53909407.js} +0 -0
  155. /package/build/{ChevronDown-706fb94d.js → ChevronDown-e78dfe2c.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-6abbcf47.js → HEAD CIRCUM_BOYS.percentile.monthly-5a9fd77d.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-73f63264.js → HEAD CIRCUM_BOYS.percentile.weekly-10342371.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-33ee7e00.js → HEAD CIRCUM_BOYS.percentile.yearly-ce0fca94.js} +0 -0
  159. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-41bc55c7.js → HEAD CIRCUM_BOYS.zscore.monthly-7ed50089.js} +0 -0
  160. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-2cc779ec.js → HEAD CIRCUM_BOYS.zscore.weekly-94d77f2e.js} +0 -0
  161. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-55db15a7.js → HEAD CIRCUM_BOYS.zscore.yearly-d54b7848.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-72a3bdba.js → HEAD CIRCUM_GIRLS.percentile.monthly-8dec8c91.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a4e5a1e5.js → HEAD CIRCUM_GIRLS.percentile.weekly-b1976ffa.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-6ca29c9a.js → HEAD CIRCUM_GIRLS.percentile.yearly-9d04b05d.js} +0 -0
  165. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-1bf1fced.js → HEAD CIRCUM_GIRLS.zscore.monthly-7f142a08.js} +0 -0
  166. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6a455b87.js → HEAD CIRCUM_GIRLS.zscore.weekly-d48f6954.js} +0 -0
  167. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-2f19120c.js → HEAD CIRCUM_GIRLS.zscore.yearly-14434e4f.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.percentile.monthly-72ebf746.js → HEIGHT_BOYS.percentile.monthly-676f5530.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.percentile.weekly-f7249660.js → HEIGHT_BOYS.percentile.weekly-60e45b6b.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.percentile.yearly-fff6fe4f.js → HEIGHT_BOYS.percentile.yearly-15334902.js} +0 -0
  171. /package/build/{HEIGHT_BOYS.zscore.monthly-863198f6.js → HEIGHT_BOYS.zscore.monthly-bce4de71.js} +0 -0
  172. /package/build/{HEIGHT_BOYS.zscore.weekly-12443587.js → HEIGHT_BOYS.zscore.weekly-823114cd.js} +0 -0
  173. /package/build/{HEIGHT_BOYS.zscore.yearly-c9f0fc9c.js → HEIGHT_BOYS.zscore.yearly-835c9bb9.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.percentile.monthly-214471bf.js → HEIGHT_GIRLS.percentile.monthly-553e9c6f.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.percentile.weekly-3498771d.js → HEIGHT_GIRLS.percentile.weekly-feb2d33e.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.percentile.yearly-ed22f447.js → HEIGHT_GIRLS.percentile.yearly-6f499cc5.js} +0 -0
  177. /package/build/{HEIGHT_GIRLS.zscore.monthly-ffcd1583.js → HEIGHT_GIRLS.zscore.monthly-abfe8b81.js} +0 -0
  178. /package/build/{HEIGHT_GIRLS.zscore.weekly-89eebef9.js → HEIGHT_GIRLS.zscore.weekly-b7966832.js} +0 -0
  179. /package/build/{HEIGHT_GIRLS.zscore.yearly-e9d20d40.js → HEIGHT_GIRLS.zscore.yearly-37f75f33.js} +0 -0
  180. /package/build/{Subot-32f549c2.js → Subot-1722467d.js} +0 -0
  181. /package/build/{Visible-e3ad0c25.js → Visible-1c56fbc5.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.percentile.monthly-6db6cf22.js → WEIGHT_BOYS.percentile.monthly-91f605bd.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.percentile.weekly-10d39e3a.js → WEIGHT_BOYS.percentile.weekly-80e52ebe.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.percentile.yearly-0dd1515b.js → WEIGHT_BOYS.percentile.yearly-a42fe36c.js} +0 -0
  185. /package/build/{WEIGHT_BOYS.zscore.monthly-5f3bbccb.js → WEIGHT_BOYS.zscore.monthly-abd7d187.js} +0 -0
  186. /package/build/{WEIGHT_BOYS.zscore.weekly-e9d339a8.js → WEIGHT_BOYS.zscore.weekly-b4f653d8.js} +0 -0
  187. /package/build/{WEIGHT_BOYS.zscore.yearly-37daf2df.js → WEIGHT_BOYS.zscore.yearly-e00bb874.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.percentile.monthly-990cd19d.js → WEIGHT_GIRLS.percentile.monthly-aacad85f.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.percentile.weekly-172e0379.js → WEIGHT_GIRLS.percentile.weekly-92f347b4.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.percentile.yearly-cbc6e831.js → WEIGHT_GIRLS.percentile.yearly-cdea1c92.js} +0 -0
  191. /package/build/{WEIGHT_GIRLS.zscore.monthly-78043109.js → WEIGHT_GIRLS.zscore.monthly-f1843232.js} +0 -0
  192. /package/build/{WEIGHT_GIRLS.zscore.weekly-19d9a433.js → WEIGHT_GIRLS.zscore.weekly-a544817b.js} +0 -0
  193. /package/build/{WEIGHT_GIRLS.zscore.yearly-761f1424.js → WEIGHT_GIRLS.zscore.yearly-1c0aa2ae.js} +0 -0
  194. /package/build/{cookieHelper-a2566341.js → cookieHelper-ffb4fd8b.js} +0 -0
  195. /package/build/{dataTransform-907b2930.js → dataTransform-6d870326.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.percentile.monthly-9e38458e.js → BMI_BOYS.percentile.monthly-a3ce9938.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.percentile.weekly-603a2d9f.js → BMI_BOYS.percentile.weekly-509586f6.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.percentile.yearly-42a916cb.js → BMI_BOYS.percentile.yearly-c5bb805b.js} +0 -0
  199. /package/build/esm/{BMI_BOYS.zscore.monthly-f2adabc8.js → BMI_BOYS.zscore.monthly-56a8ca62.js} +0 -0
  200. /package/build/esm/{BMI_BOYS.zscore.weekly-b5cccd08.js → BMI_BOYS.zscore.weekly-f7ef381f.js} +0 -0
  201. /package/build/esm/{BMI_BOYS.zscore.yearly-d479c131.js → BMI_BOYS.zscore.yearly-4d43acd4.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.percentile.monthly-e407232f.js → BMI_GIRLS.percentile.monthly-95bcbb2b.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.percentile.weekly-0430e817.js → BMI_GIRLS.percentile.weekly-289ebe3b.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.percentile.yearly-dd974740.js → BMI_GIRLS.percentile.yearly-3f7e04aa.js} +0 -0
  205. /package/build/esm/{BMI_GIRLS.zscore.monthly-a366f596.js → BMI_GIRLS.zscore.monthly-63241d58.js} +0 -0
  206. /package/build/esm/{BMI_GIRLS.zscore.weekly-4cdc8cc2.js → BMI_GIRLS.zscore.weekly-dcf15800.js} +0 -0
  207. /package/build/esm/{BMI_GIRLS.zscore.yearly-3fe9b80a.js → BMI_GIRLS.zscore.yearly-a83f804e.js} +0 -0
  208. /package/build/esm/{ChevronDown-1f2379d1.js → ChevronDown-9654e503.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-98c97da0.js → HEAD CIRCUM_BOYS.percentile.monthly-01025ce1.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-5a1700cf.js → HEAD CIRCUM_BOYS.percentile.weekly-d57418d1.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e8d8abcc.js → HEAD CIRCUM_BOYS.percentile.yearly-89076acf.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-a80e58cc.js → HEAD CIRCUM_BOYS.zscore.monthly-92d740bf.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-31129921.js → HEAD CIRCUM_BOYS.zscore.weekly-712e4d7e.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e4c6407b.js → HEAD CIRCUM_BOYS.zscore.yearly-5a85d048.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-dc5e084b.js → HEAD CIRCUM_GIRLS.percentile.monthly-d3c2de41.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2c5917ae.js → HEAD CIRCUM_GIRLS.percentile.weekly-e9eb1057.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-9e650d5f.js → HEAD CIRCUM_GIRLS.percentile.yearly-b729a3d7.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8b3fd7c4.js → HEAD CIRCUM_GIRLS.zscore.monthly-0e6d5b95.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-5ba99827.js → HEAD CIRCUM_GIRLS.zscore.weekly-76b8c388.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b0256871.js → HEAD CIRCUM_GIRLS.zscore.yearly-6c43b660.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-e7c89b9d.js → HEIGHT_BOYS.percentile.monthly-bd14dfb3.js} +0 -0
  222. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-aba8106d.js → HEIGHT_BOYS.percentile.weekly-28561e1d.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-7a73167c.js → HEIGHT_BOYS.percentile.yearly-95cbc5d4.js} +0 -0
  224. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-95db18e9.js → HEIGHT_BOYS.zscore.monthly-8f8c7e63.js} +0 -0
  225. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-aff72330.js → HEIGHT_BOYS.zscore.weekly-b6b2133d.js} +0 -0
  226. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-69482de4.js → HEIGHT_BOYS.zscore.yearly-0a721242.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-a447fbcb.js → HEIGHT_GIRLS.percentile.monthly-0b7e5c85.js} +0 -0
  228. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f7f87b6a.js → HEIGHT_GIRLS.percentile.weekly-0e965359.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-2214187a.js → HEIGHT_GIRLS.percentile.yearly-82135038.js} +0 -0
  230. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-40832d83.js → HEIGHT_GIRLS.zscore.monthly-78fc054c.js} +0 -0
  231. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-c7d64e54.js → HEIGHT_GIRLS.zscore.weekly-776a1a17.js} +0 -0
  232. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-f086888a.js → HEIGHT_GIRLS.zscore.yearly-c1f848e1.js} +0 -0
  233. /package/build/esm/{Subot-90eeb6b3.js → Subot-3e26682c.js} +0 -0
  234. /package/build/esm/{Visible-2f53b79b.js → Visible-76578e44.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b17b8ff9.js → WEIGHT_BOYS.percentile.monthly-d2143081.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-3af7ebf3.js → WEIGHT_BOYS.percentile.weekly-a1b742dc.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-f782303b.js → WEIGHT_BOYS.percentile.yearly-426bf234.js} +0 -0
  238. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c9ed64af.js → WEIGHT_BOYS.zscore.monthly-c2f66396.js} +0 -0
  239. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-4540cabb.js → WEIGHT_BOYS.zscore.weekly-dea5836f.js} +0 -0
  240. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-2f1f9c58.js → WEIGHT_BOYS.zscore.yearly-3aaa5b87.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-86dce0cb.js → WEIGHT_GIRLS.percentile.monthly-98555f5c.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-69578cf9.js → WEIGHT_GIRLS.percentile.weekly-ed4ecaea.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-0a7ad86a.js → WEIGHT_GIRLS.percentile.yearly-f1e194fc.js} +0 -0
  244. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-c38d04c1.js → WEIGHT_GIRLS.zscore.monthly-dadc78cb.js} +0 -0
  245. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-054a7793.js → WEIGHT_GIRLS.zscore.weekly-8dd9e19c.js} +0 -0
  246. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9cae2489.js → WEIGHT_GIRLS.zscore.yearly-256c3290.js} +0 -0
  247. /package/build/esm/{cookieHelper-0c7b12e7.js → cookieHelper-b7f7d5f1.js} +0 -0
  248. /package/build/esm/{dataTransform-5d371539.js → dataTransform-3542601c.js} +0 -0
  249. /package/build/esm/{index-d2815002.js → index-354ddd99.js} +0 -0
  250. /package/build/esm/{index-1e929af7.js → index-5e6b6109.js} +0 -0
  251. /package/build/esm/{index-8532d46b.js → index-f9986ddb.js} +0 -0
  252. /package/build/esm/{isProduction-9316ccb5.js → isProduction-13f6d491.js} +0 -0
  253. /package/build/esm/{localizeNumberFormat-d1127967.js → localizeNumberFormat-a578872d.js} +0 -0
  254. /package/build/esm/{normalizeLink-6d5c758b.js → normalizeLink-f1a07e08.js} +0 -0
  255. /package/build/esm/{number-4ce2a65c.js → number-4286843a.js} +0 -0
  256. /package/build/esm/{paths-85cabf93.js → paths-a3913e3c.js} +0 -0
  257. /package/build/esm/{screenSizeContext-705a313a.js → screenSizeContext-fc852596.js} +0 -0
  258. /package/build/esm/{theme-4d46eb99.js → theme-afaf0d05.js} +0 -0
  259. /package/build/esm/{translationsContext-267d2c2b.js → translationsContext-74126881.js} +0 -0
  260. /package/build/esm/{tslib.es6-0016fb2e.js → tslib.es6-914e91bc.js} +0 -0
  261. /package/build/esm/{types-60cfe8b3.js → types-fee4011a.js} +0 -0
  262. /package/build/esm/{useIsInit-755f04c3.js → useIsInit-531139ff.js} +0 -0
  263. /package/build/esm/{useOutsideClick-a454f054.js → useOutsideClick-1dc534d6.js} +0 -0
  264. /package/build/esm/{useScrollbarSize-8fe9a9d3.js → useScrollbarSize-bac85788.js} +0 -0
  265. /package/build/{index-519982d6.js → index-0b14280f.js} +0 -0
  266. /package/build/{index-6460bb54.js → index-30a6de1a.js} +0 -0
  267. /package/build/{index-214222a0.js → index-94130616.js} +0 -0
  268. /package/build/{isProduction-69925a51.js → isProduction-51951576.js} +0 -0
  269. /package/build/{localizeNumberFormat-a302e355.js → localizeNumberFormat-7d655858.js} +0 -0
  270. /package/build/{normalizeLink-be8f13d1.js → normalizeLink-b646fe58.js} +0 -0
  271. /package/build/{number-ec54adad.js → number-2bbfe6b9.js} +0 -0
  272. /package/build/{paths-7baf53b7.js → paths-62703942.js} +0 -0
  273. /package/build/{screenSizeContext-111c12b7.js → screenSizeContext-a6dd41f9.js} +0 -0
  274. /package/build/{theme-4b109976.js → theme-3f0985a0.js} +0 -0
  275. /package/build/{translationsContext-5b78f642.js → translationsContext-8d6ba9f9.js} +0 -0
  276. /package/build/{tslib.es6-209b302e.js → tslib.es6-5f2b74ff.js} +0 -0
  277. /package/build/{types-1b46d6d3.js → types-f1f451e3.js} +0 -0
  278. /package/build/{useIsInit-c4d76526.js → useIsInit-e1320c4c.js} +0 -0
  279. /package/build/{useOutsideClick-5bcace03.js → useOutsideClick-9eb66aa1.js} +0 -0
  280. /package/build/{useScrollbarSize-30b0c701.js → useScrollbarSize-651139db.js} +0 -0
package/build/esm/ecom.js CHANGED
@@ -1 +1 @@
1
- import{t as o}from"./theme-4d46eb99.js";export{c as Constants}from"./constants-f36eb4e2.js";export{t as Types}from"./types-60cfe8b3.js";import"./index-c97cb127.js";import"date-fns/locale";import"./Subot-90eeb6b3.js";import"./isProduction-9316ccb5.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
1
+ import{t as o}from"./theme-afaf0d05.js";export{c as Constants}from"./constants-f17c72d7.js";export{t as Types}from"./types-fee4011a.js";import"./index-63cb82b7.js";import"date-fns/locale";import"./Subot-3e26682c.js";import"./isProduction-13f6d491.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
@@ -1 +1 @@
1
- import e from"react";import{B as t}from"./index-21499b02.js";import{C as a}from"./index-d2815002.js";import l from"dayjs";import{d as n}from"./index-c97cb127.js";import{t as o}from"./theme-4d46eb99.js";import"./index-5d265d4a.js";import{Flex as i,Stack as r,Box as m}from"@mantine/core";import"@mantine/dates";import"./Subot-90eeb6b3.js";import"./gAssets.js";import{T as c}from"./index-4ab7a8ff.js";import"./screenSizeContext-705a313a.js";import"styled-components";import"./isProduction-9316ccb5.js";import{u as s}from"./useTranslations-86073e0f.js";import"@mantine/hooks";import{L as d}from"./index-bb52270a.js";import{M as v}from"./index-0da50440.js";import"./translationsContext-267d2c2b.js";import"string-format";import"./tslib.es6-0016fb2e.js";import"date-fns/locale";import"@mantine/carousel";import"classnames";import"lodash/throttle";import"./utils-d6d6970c.js";import"./index.styled-ead6e56f.js";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:m,isMobile:d,locale:v})=>{var E,p,y,f,b,N,h,k,F,z,$,x,T,j,M,C,L,_,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==m?void 0:m.menu,O=(null===(p=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(c,{size:"p1",weight:"bold"},null===(f=null==m?void 0:m.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(z=K[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=K[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(T=K[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=K[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(C=null==m?void 0:m.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==m?void 0:m.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(c,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==m?void 0:m.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(w=null==m?void 0:m.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==m?void 0:m.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(c,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(c,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==m?void 0:m.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const z=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:b,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:N,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(m,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},$=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(z,{footerMenu:n,background:i});export{$ as Footer};
1
+ import e from"react";import{B as t}from"./index-992c1d4f.js";import{C as a}from"./index-354ddd99.js";import l from"dayjs";import{d as n}from"./index-63cb82b7.js";import{t as o}from"./theme-afaf0d05.js";import"./index-7af053cd.js";import{Flex as i,Stack as r,Box as m}from"@mantine/core";import"@mantine/dates";import"./Subot-3e26682c.js";import"./gAssets.js";import{T as c}from"./index-36c96e53.js";import"./screenSizeContext-fc852596.js";import"styled-components";import"./isProduction-13f6d491.js";import{u as s}from"./useTranslations-d8b9e866.js";import"@mantine/hooks";import{L as d}from"./index-70255978.js";import{M as v}from"./index-0914cf85.js";import"./translationsContext-74126881.js";import"string-format";import"./tslib.es6-914e91bc.js";import"date-fns/locale";import"@mantine/carousel";import"classnames";import"lodash/throttle";import"./utils-c6957af3.js";import"./index.styled-8642a0c0.js";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:m,isMobile:d,locale:v})=>{var E,p,y,f,N,b,h,k,F,z,$,x,T,j,M,C,L,_,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==m?void 0:m.menu,O=(null===(p=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(c,{size:"p1",weight:"bold"},null===(f=null==m?void 0:m.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.title),e.createElement("div",{className:"icons"},null===(h=null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(z=K[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=K[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(T=K[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=K[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(C=null==m?void 0:m.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==m?void 0:m.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(c,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==m?void 0:m.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(w=null==m?void 0:m.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==m?void 0:m.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(c,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(c,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==m?void 0:m.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",N="qc5bEb3",b="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const z=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:N,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:b,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(m,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},$=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(z,{footerMenu:n,background:i});export{$ as Footer};
@@ -1 +1 @@
1
- import{d as s}from"./index-c97cb127.js";import{i as e}from"./isProduction-9316ccb5.js";import"date-fns/locale";import"./Subot-90eeb6b3.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,s].join("/");return e||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:e}=window.location,o=e.split("."),i=s[Object.keys(s).find((t=>e.includes(s[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return e=s,!isNaN(parseFloat(e))&&isFinite(e);var e}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
1
+ import{d as s}from"./index-63cb82b7.js";import{i as t}from"./isProduction-13f6d491.js";import"date-fns/locale";import"./Subot-3e26682c.js";const e="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,e,o)=>{const i="https://hhg-common."+[e||this.getBaseDomain(),o||this.subPath,s].join("/");return t||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:t}=window.location,o=t.split("."),i=s[Object.keys(s).find((e=>t.includes(s[e])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return t=s,!isNaN(parseFloat(t))&&isFinite(t);var t}))||!i?e:i}return e}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
@@ -1 +1 @@
1
- import{a as t}from"./tslib.es6-0016fb2e.js";import{g as o}from"./core-2f2dda7e.js";import{n as i}from"./normalizeLink-6d5c758b.js";import{c as l}from"./routing-2ba10dbb.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===o?"lang=fil":"";let a=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return a}catch(t){console.error(t)}})),s=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
1
+ import{a as t}from"./tslib.es6-914e91bc.js";import{g as o}from"./core-469917c1.js";import{n as i}from"./normalizeLink-f1a07e08.js";import{c as l}from"./routing-910eb4da.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===o?"lang=fil":"";let a=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return a}catch(t){console.error(t)}})),s=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
@@ -1 +1 @@
1
- import e from"react";import{L as t}from"./Subot-90eeb6b3.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
1
+ import e from"react";import{L as t}from"./Subot-3e26682c.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
@@ -1 +1 @@
1
- export{a as useInitialMount,u as useTranslations,b as useUniqueId}from"./useTranslations-86073e0f.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-8fe9a9d3.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-3be3d0f1.js";export{u as useHealthToolsCache}from"./useHealthToolCache-f00411f5.js";export{u as useIsInit}from"./useIsInit-755f04c3.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-a454f054.js";export{M as MAPPED_CATEGORY_SLUGS,P as PREGNANCY_SLUG,u as useCategory}from"./useCategory-b8bdf992.js";import"react";import"./translationsContext-267d2c2b.js";import"string-format";import"lodash/debounce";import"./tslib.es6-0016fb2e.js";import"./cookieHelper-0c7b12e7.js";import"./getDynamicHealthTool-41d50b69.js";import"./core-2f2dda7e.js";import"./isProduction-9316ccb5.js";import"./normalizeLink-6d5c758b.js";import"./routing-2ba10dbb.js";import"./index-c97cb127.js";import"date-fns/locale";import"./Subot-90eeb6b3.js";
1
+ export{a as useInitialMount,u as useTranslations,b as useUniqueId}from"./useTranslations-d8b9e866.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-bac85788.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-10da1fd9.js";export{u as useHealthToolsCache}from"./useHealthToolCache-e117dfc4.js";export{u as useIsInit}from"./useIsInit-531139ff.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-1dc534d6.js";export{M as MAPPED_CATEGORY_SLUGS,P as PREGNANCY_SLUG,u as useCategory}from"./useCategory-28c9abc6.js";import"react";import"./translationsContext-74126881.js";import"string-format";import"lodash/debounce";import"./tslib.es6-914e91bc.js";import"./cookieHelper-b7f7d5f1.js";import"./getDynamicHealthTool-07d36d83.js";import"./core-469917c1.js";import"./isProduction-13f6d491.js";import"./normalizeLink-f1a07e08.js";import"./routing-910eb4da.js";import"./index-63cb82b7.js";import"date-fns/locale";import"./Subot-3e26682c.js";
package/build/esm/i18n.js CHANGED
@@ -1 +1 @@
1
- import{T as s}from"./translationsContext-267d2c2b.js";export{T as TranslationsContext}from"./translationsContext-267d2c2b.js";import o,{useState as r,useEffect as e,useMemo as t}from"react";import i from"./i18n-values/en-PH.js";import n from"./i18n-values/hi-IN.js";import a from"./i18n-values/id-ID.js";import l from"./i18n-values/km-KH.js";import m from"./i18n-values/ms-MY.js";import v from"./i18n-values/my-MM.js";import j from"./i18n-values/th-TH.js";import u from"./i18n-values/tl-PH.js";import c from"./i18n-values/vi-VN.js";import p from"./i18n-values/vi-VN_MB.js";import f from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":c,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":f,"th-TH":j,"tl-PH":u,"vi-VN_MB":p},h=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:v=null,onTranslationsLoaded:j})=>{const u=n&&n[i]||a,[c,p]=r((()=>Object.assign(Object.assign({},u),m?d[i]:{})));e((()=>{p(Object.assign(Object.assign({},u),m?d[i]:{}))}),[m,i]);const f=t((()=>c?{locale:i,values:c}:null),[i,c]);return e((()=>{j&&Object.keys(c).length&&j(c)}),[c]),o.createElement(s.Provider,{value:f},f?l:v)};export{h as TranslationsProvider,d as translationsMap};
1
+ import{T as s}from"./translationsContext-74126881.js";export{T as TranslationsContext}from"./translationsContext-74126881.js";import o,{useState as r,useEffect as e,useMemo as t}from"react";import i from"./i18n-values/en-PH.js";import n from"./i18n-values/hi-IN.js";import a from"./i18n-values/id-ID.js";import l from"./i18n-values/km-KH.js";import m from"./i18n-values/ms-MY.js";import v from"./i18n-values/my-MM.js";import j from"./i18n-values/th-TH.js";import u from"./i18n-values/tl-PH.js";import p from"./i18n-values/vi-VN.js";import c from"./i18n-values/vi-VN_MB.js";import f from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":p,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":f,"th-TH":j,"tl-PH":u,"vi-VN_MB":c},h=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:v=null,onTranslationsLoaded:j})=>{const u=n&&n[i]||a,[p,c]=r((()=>Object.assign(Object.assign({},u),m?d[i]:{})));e((()=>{c(Object.assign(Object.assign({},u),m?d[i]:{}))}),[m,i]);const f=t((()=>p?{locale:i,values:p}:null),[i,p]);return e((()=>{j&&Object.keys(p).length&&j(p)}),[p]),o.createElement(s.Provider,{value:f},f?l:v)};export{h as TranslationsProvider,d as translationsMap};
@@ -1 +1 @@
1
- import{T as t}from"./translationsContext-267d2c2b.js";export{T as TranslationsContext}from"./translationsContext-267d2c2b.js";import e,{useMemo as o}from"react";const r=({locale:r="en-PH",values:n,children:a})=>{const l=o((()=>n?{locale:r,values:n}:null),[r,n]);return e.createElement(t.Provider,{value:l},a)};export{r as TranslationsProvider};
1
+ import{T as t}from"./translationsContext-74126881.js";export{T as TranslationsContext}from"./translationsContext-74126881.js";import e,{useMemo as o}from"react";const r=({locale:r="en-PH",values:n,children:a})=>{const l=o((()=>n?{locale:r,values:n}:null),[r,n]);return e.createElement(t.Provider,{value:l},a)};export{r as TranslationsProvider};
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-0016fb2e.js";import t from"react";import{S as s,a}from"./index.styled-ead6e56f.js";const r=a=>{var{type:r,color:l,style:o}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},l&&{"--text-color":l}),o)},c))},l=s=>{var{type:r,color:l,style:o}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},o),l&&{"--text-color":l})},c))};export{l as M,r as a};
1
+ import{_ as e}from"./tslib.es6-914e91bc.js";import t from"react";import{S as s,a}from"./index.styled-8642a0c0.js";const r=a=>{var{type:r,color:l,style:o}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},l&&{"--text-color":l}),o)},c))},l=s=>{var{type:r,color:l,style:o}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},o),l&&{"--text-color":l})},c))};export{l as M,r as a};
@@ -0,0 +1 @@
1
+ import{_ as e,a as t}from"./tslib.es6-914e91bc.js";import a,{useState as l,useMemo as n,useRef as i,Fragment as o,useEffect as s,useContext as r,useCallback as c}from"react";import{g as m}from"./core-469917c1.js";import{F as d,a as u,B as h}from"./index-7af053cd.js";import{S as g,a as v,b as p,c as E,d as y,e as f,u as b,f as C,g as k,h as w,i as P,j as _,k as M,l as N,m as L,n as B,o as A,p as T,q as x,N as H,r as S,s as j,t as $,v as F,w as O,x as R,y as I,z as D,A as U,B as V,C as z,D as Z,E as G,F as W,G as q,H as K,I as Y,J as Q,K as J,L as X,M as ee,O as te,P as ae,Q as le,R as ne,T as ie,U as oe,V as se,W as re,X as ce,Y as me,Z as de,_ as ue,$ as he,a0 as ge,a1 as ve,a2 as pe,a3 as Ee,a4 as ye,a5 as fe,a6 as be,a7 as Ce,a8 as ke,a9 as we,aa as Pe,ab as _e,ac as Me,ad as Ne,ae as Le,af as Be,ag as Ae,ah as Te,ai as xe,aj as He,ak as Se,al as je,am as $e,an as Fe,ao as Oe,ap as Re}from"./index.styled-bd0daa57.js";import{T as Ie,I as De,U as Ue}from"./index-36c96e53.js";import{CommonGAssets as Ve}from"./gAssets.js";import{C as ze,T as Ze,E as Ge,L as We,S as qe,d as Ke}from"./index-63cb82b7.js";import{n as Ye,a as Qe}from"./normalizeLink-f1a07e08.js";import{a as Je,g as Xe,c as et,b as tt,d as at}from"./routing-910eb4da.js";import{P as lt,b as nt,a as it}from"./index-7532b0c5.js";import{L as ot}from"./index-70255978.js";import{u as st,b as rt}from"./useTranslations-d8b9e866.js";import ct from"lodash/throttle";import{Box as mt,Indicator as dt,Portal as ut}from"@mantine/core";import"@mantine/dates";import{L as ht}from"./Subot-3e26682c.js";import"dayjs";import{j as gt}from"./screenSizeContext-fc852596.js";import"styled-components";import{t as vt}from"./theme-afaf0d05.js";import"./isProduction-13f6d491.js";import"./translationsContext-74126881.js";import pt from"string-format";import"@mantine/hooks";import{L as Et}from"./constants-f17c72d7.js";import yt from"lodash/debounce";import"./useCategory-28c9abc6.js";import{C as ft}from"./ChevronDown-9654e503.js";import{B as bt}from"./index-992c1d4f.js";import{e as Ct}from"./constants-cf8d2b27.js";import{P as kt,H as wt}from"./index.styles-309a8680.js";import{I as Pt}from"./index-e9742f34.js";import{u as _t}from"./useIsInit-531139ff.js";import"./utils-c6957af3.js";import"./index.styled-8642a0c0.js";import"./index-f9986ddb.js";import{C as Mt}from"./index-354ddd99.js";const Nt=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],Lt=(e="")=>Nt.some((t=>new URL(e).origin.endsWith(t))),Bt=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,d]=l(!1);return a.createElement(a.Fragment,null,a.createElement(g,null,a.createElement(v,{onClick:()=>d((e=>!e))},t||(null==n?void 0:n(m))||null,a.createElement(p,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,t)=>a.createElement(E,{key:t,"data-selected":s&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),d((e=>!e))),t.stopPropagation()}},a.createElement(Ie,{size:"p3"},e.label),s&&i===e.value&&a.createElement("img",{src:Ve.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&a.createElement(y,{onClick:()=>d(!1)}))},At=({languageOptions:e,locale:t})=>{var l,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?a.createElement(Bt,{options:e,selected:i.value,label:a.createElement(Tt,{locale:t,label:i.label||(null===(n=null===(l=t.split("-"))||void 0===l?void 0:l[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Tt=({locale:e,label:t,href:l})=>{var n,i,o;return a.createElement(f,{href:l},a.createElement(d,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),a.createElement("span",null,t))},xt=({path:e,locale:t})=>{var a;return`/shop/${null===(a=Et[t||"vi-VN"])||void 0===a?void 0:a[e]}/`},Ht=t=>{var{count:l,styles:n,className:i,classNames:o,locale:s}=t,r=e(t,["count","styles","className","classNames","locale"]);const{classes:c,cx:m}=b(void 0,{name:"CartBadge",styles:n,classNames:o});return void 0!==l?a.createElement(mt,Object.assign({component:"a",href:xt({path:"CART",locale:s}),className:m(c.root,i)},r),a.createElement(dt,{classNames:{root:c.indicatorRoot},withBorder:!0,color:"red",size:20,disabled:0===l,label:a.createElement(Ie,{className:c.iconText,size:"s5"},l>99?"99+":l)},a.createElement(De.Cart,{size:24}))):null},St=({forceDisplay:e,mediaQueryKey:t,children:l,className:i,style:o})=>{const[s,r]=n((()=>gt(t)),[t]);return a.createElement(C,{lowerBound:e?0:s,upperBound:e?0:r,className:i,style:o},l)},jt=e=>{const{allowBgScroll:t}=e||{},a=i();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},$t=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M2.5 6.5a3.2 3.2 0 0 1 3.2-3.2h7.9a3.2 3.2 0 0 1 3.19 3.2v4.72a3.2 3.2 0 0 1-3.2 3.2H5.7a3.2 3.2 0 0 1-3.19-3.2V6.49Z",fill:"#E3F2FF"}),a.createElement("path",{d:"M2.5 5.68A2.38 2.38 0 0 1 4.88 3.3h9.52a2.38 2.38 0 0 1 2.39 2.38H2.5Z",fill:"#2D87F3"}),a.createElement("path",{d:"M13.6 2.5h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65ZM5.27 4.86h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65Z",fill:"#2743AD"}),a.createElement("path",{d:"M5.56 8.17h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.49a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm-8.3 2.52h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Z",fill:"#2D87F3"}),a.createElement("path",{d:"M16 16.8a3.17 3.17 0 1 0 0-6.36 3.17 3.17 0 0 0 0 6.35Z",fill:"#FE921D"}),a.createElement("path",{d:"M15.78 13.62v-1.36a.21.21 0 0 1 .42 0v1.26l.48.4a.21.21 0 0 1-.01.33.21.21 0 0 1-.26-.01l-.55-.46-.02-.01a.21.21 0 0 1-.06-.15Z",fill:"#fff"})),Ft=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M7.06 4.97h-2.3a3.12 3.12 0 0 0-3.1 3.1v.43a3.12 3.12 0 0 0 3.1 3.1h1.39s1.47 1.11 1.5.97c.03-.22-.23-.99-.23-.99a3.13 3.13 0 0 0 2.72-3.09v-.41a3.12 3.12 0 0 0-3.08-3.11Zm-2.7 3.55a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Zm1.35.4a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .65Zm1.57-.05Z",fill:"#2D87F3"}),a.createElement("path",{d:"M12.88 9.52a3.53 3.53 0 0 0-1.35 6.8s-.23 1.03-.2 1.25c.03.14 1.55-.99 1.55-.99a3.53 3.53 0 0 0 0-7.06Zm-1.33 4.24a.48.48 0 1 1 0-.97.48.48 0 0 1 0 .97Zm1.58.04a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .66Zm1.34-.39a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Z",fill:"#FFB521"}),a.createElement("path",{d:"M16.45 1.67h-3.87a1.88 1.88 0 0 0-1.88 2.06l.22 2.29a1.88 1.88 0 0 0 1.73 1.7s-.17.94-.14 1.16c.02.14 1.66-1.13 1.66-1.13l1.92-.03a1.88 1.88 0 0 0 1.86-1.59l.36-2.29a1.88 1.88 0 0 0-1.86-2.17ZM13.1 5.23a.48.48 0 1 1 .34-.14c-.1.1-.22.14-.34.14Zm1.57.05a.33.33 0 1 1 .23-.1.33.33 0 0 1-.23.1Zm1.34-.4a.23.23 0 1 1 .1-.01.23.23 0 0 1-.1.02Z",fill:"#91CAFF"})),Ot=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("rect",{x:"8.33337",y:"8.33325",width:"3.33333",height:"3.33333",rx:"1.66667",fill:"#2D87F3"})),Rt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"m3.18 7.06 1.6 1.6 4.33-4.69a.72.72 0 0 0-.03-.99l-.22-.22a.72.72 0 0 0-.99-.02L3.18 7.06Zm13.64 0-1.6 1.6-4.33-4.69a.72.72 0 0 1 .02-.99l.23-.22a.72.72 0 0 1 .99-.02l4.69 4.32Z",fill:"#2743AD"}),a.createElement("path",{d:"M15.04 16.7H4.9a.78.78 0 0 1-.77-.7l-.7-6.67h13.09l-.7 6.67a.78.78 0 0 1-.78.7Z",fill:"#2D87F3"}),a.createElement("path",{d:"M6.23 15.7a.23.23 0 0 1-.23-.22l-.3-4.46a.23.23 0 1 1 .47-.04l.3 4.47a.23.23 0 0 1-.22.25h-.02Zm2.39 0a.23.23 0 0 1-.23-.23L8.3 11a.23.23 0 1 1 .47 0l.07 4.46a.23.23 0 0 1-.22.24h-.01Zm5.15 0h-.02a.23.23 0 0 1-.2-.16.23.23 0 0 1-.02-.09l.3-4.47a.24.24 0 0 1 .25-.22.23.23 0 0 1 .22.26l-.3 4.46a.23.23 0 0 1-.23.22Zm-2.39 0a.23.23 0 0 1-.23-.23l.07-4.47a.24.24 0 0 1 .24-.23.23.23 0 0 1 .23.23l-.08 4.47a.23.23 0 0 1-.23.23Z",fill:"#2743AD"}),a.createElement("path",{d:"M16.04 18.12a2.01 2.01 0 1 0 0-4.03 2.01 2.01 0 0 0 0 4.03Z",fill:"#FE921D"}),a.createElement("path",{d:"M16.97 15.87h-.7v-.7a.23.23 0 0 0-.46 0v.7h-.7a.23.23 0 1 0 0 .47h.7v.69a.23.23 0 1 0 .47 0v-.7h.69a.23.23 0 1 0 0-.46Z",fill:"#fff"}),a.createElement("path",{d:"M16.58 9.48H3.42a.8.8 0 0 1-.78-.7l-.13-1.1a.8.8 0 0 1 .78-.88h13.42a.8.8 0 0 1 .78.88l-.13 1.1a.8.8 0 0 1-.78.7Z",fill:"#BCDEFF"})),It=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 1.667c-4.595 0-8.333 3.738-8.333 8.333 0 4.595 3.738 8.333 8.333 8.333 4.595 0 8.333-3.738 8.333-8.333 0-4.595-3.738-8.333-8.333-8.333Zm0 13.194a.695.695 0 1 1 0-1.39.695.695 0 0 1 0 1.39Zm1.1-4.415a.698.698 0 0 0-.405.631v.312a.694.694 0 1 1-1.39 0v-.312c0-.81.477-1.553 1.213-1.893.707-.326 1.218-1.19 1.218-1.615 0-.956-.778-1.736-1.736-1.736s-1.736.78-1.736 1.736a.694.694 0 1 1-1.389 0A3.129 3.129 0 0 1 10 4.444a3.129 3.129 0 0 1 3.125 3.125c0 .939-.814 2.318-2.026 2.877Z",fill:"#FF6F4D"})),Dt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M11.116 1.72 5.488.85a1.898 1.898 0 0 0-2.155 1.856v14.588a1.898 1.898 0 0 0 2.158 1.855l5.625-.869a1.865 1.865 0 0 0 1.592-1.855V3.575a1.87 1.87 0 0 0-1.592-1.855",fill:"#2D87F3"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471",fill:"#FF6F4D"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471m-7.603-.908v1.802c0 .124.1.225.224.225h1.257c.124 0 .225-.1.225-.225V8.676c0-.124-.1-.224-.225-.224h-1.257c-.124 0-.224.1-.224.224m-.673 1.809a.224.224 0 0 1-.225.225h-.407a.61.61 0 0 1-.609-.61V9.069a.61.61 0 0 1 .61-.61h.406a.224.224 0 0 1 .225.225z",fill:"#FF6F4D"})),Ut=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M6.114 3.333a4.64 4.64 0 0 1 3.565 1.708.412.412 0 0 0 .642 0 4.64 4.64 0 0 1 3.565-1.708c2.646 0 4.447 2.302 4.447 5.142 0 1.698-.904 4.446-2.675 6.102-2.522 2.358-4.665 2.965-5.392 3.11a1.3 1.3 0 0 1-.53 0c-.728-.146-2.871-.752-5.393-3.11-1.772-1.656-2.676-4.404-2.676-6.102 0-2.84 1.801-5.142 4.447-5.142",fill:"#FF6F4D"}),a.createElement("path",{d:"M13.298 11.226v-.829a1.205 1.205 0 0 0-1.202-1.204h-.208a.26.26 0 0 1-.261-.259v-.208a1.205 1.205 0 0 0-1.201-1.204h-.832A1.205 1.205 0 0 0 8.39 8.726v.205a.26.26 0 0 1-.259.261h-.207a1.2 1.2 0 0 0-1.202 1.202v.834a1.204 1.204 0 0 0 1.202 1.201h.207a.26.26 0 0 1 .259.262v.205A1.205 1.205 0 0 0 9.594 14.1h.832a1.204 1.204 0 0 0 1.201-1.204v-.208a.26.26 0 0 1 .261-.258h.208a1.205 1.205 0 0 0 1.202-1.204",fill:"#fff"})),Vt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M4.767 17.236a1.36 1.36 0 0 0 1.256.188l4.097-1.397a.37.37 0 0 1 .28 0l4.097 1.397q.22.071.45.075c.29.002.573-.09.807-.263a1.43 1.43 0 0 0 .6-1.171V3.935A1.417 1.417 0 0 0 14.946 2.5H5.573a1.416 1.416 0 0 0-1.406 1.434v12.13a1.43 1.43 0 0 0 .6 1.172",fill:"#00CB8A"})),zt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M17.339 8.075a2.177 2.177 0 0 1-1.717-2.944 1.02 1.02 0 0 0-.305-1.15 8.2 8.2 0 0 0-2.445-1.417 1.03 1.03 0 0 0-1.16.323 2.173 2.173 0 0 1-3.423 0 1.03 1.03 0 0 0-1.161-.323A8.2 8.2 0 0 0 4.85 3.842a1.03 1.03 0 0 0-.322 1.183 2.167 2.167 0 0 1-1.806 2.978 1.03 1.03 0 0 0-.9.828 8 8 0 0 0-.05 2.861 1.03 1.03 0 0 0 .906.861 2.166 2.166 0 0 1 1.767 3.061 1.01 1.01 0 0 0 .283 1.211A8.2 8.2 0 0 0 7.15 18.22q.17.059.35.061a1.02 1.02 0 0 0 .833-.433 2.15 2.15 0 0 1 1.778-.934 2.18 2.18 0 0 1 1.745.878 1.02 1.02 0 0 0 1.2.339 8.3 8.3 0 0 0 2.222-1.328 1.03 1.03 0 0 0 .3-1.172 2.167 2.167 0 0 1 1.739-2.995 1.03 1.03 0 0 0 .872-.844 8 8 0 0 0 .144-1.405q0-.749-.138-1.484a1.02 1.02 0 0 0-.856-.828m-4.561 2.312a2.778 2.778 0 1 1-5.556 0 2.778 2.778 0 0 1 5.556 0",fill:"#2D87F3"})),Zt=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 19.167A9.167 9.167 0 1 0 10 .833a9.167 9.167 0 0 0 0 18.334",fill:"#BCDEFF"}),a.createElement("path",{d:"M17.356 15.463a9.188 9.188 0 0 0-14.716-.005 9.155 9.155 0 0 0 14.716.005",fill:"#2D87F3"}),a.createElement("path",{d:"M10 10.591a3.548 3.548 0 1 0 0-7.096 3.548 3.548 0 0 0 0 7.096",fill:"#2D87F3"})),Gt={helloSites:{member:()=>Ve.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>Ve.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>Ve.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>Ve.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>Ve.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>Ve.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>Ve.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>Ve.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>Ve.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>Ve.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Wt=({rank:e,siteType:t="helloSites"})=>{const l=n((()=>{var a,l;return(null===(l=null===(a=Gt[t])||void 0===a?void 0:a[e])||void 0===l?void 0:l.call(a))||""}),[e,t]),{t:i}=st();return a.createElement("div",{style:{display:"inline-flex",height:"fit-content",alignItems:"center",padding:"5px 12px",gap:"4px",borderRadius:16,border:`1px solid ${"helloSites"===t?vt.colors.blue100:vt.colors.mb100}`}},a.createElement("img",{src:l,alt:e,style:{height:16,width:16}}),a.createElement(Ie,{size:"s5",color:"gray.8",weight:"semiBold"},i(`userProfile.userRank.${e}`)))},qt=({siteType:e="helloSites",userInfo:t})=>(null==t?void 0:t.id)?a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"}},a.createElement(u,{src:t.avatar,alt:t.name,size:48,style:{marginBottom:8}}),a.createElement(Wt,{rank:"member",siteType:e})),a.createElement(Ie,{size:"s3",weight:"semiBold",color:"gray.8",style:{marginBottom:4}},t.name),a.createElement(Ie,{size:"n1",weight:"regular",color:"helloSites"===e?"hb.6":"mb.6"},"@",t.username),a.createElement("hr",null)):null,Kt=({className:e,activeItem:t,navMenuItems:n,style:i,onLogout:s,siteType:r="helloSites",userInfo:c})=>{const{locale:m}=st(),[d,u]=l(),h="string"==typeof t?t:d,g=Ye(Je(m,"marryBaby"===r)+"/"),v=Ye(Xe(m,"marryBaby"===r)+"/"),p=n||[[{key:"userProfile.nav.header.viewProfile",icon:a.createElement(Zt,{width:"24",height:"24"}),value:"profile",tracking:{action:"Profile Click"},link:`${g}user/profile/`},{key:"userProfile.nav.card.myHealth",icon:a.createElement(Ut,{width:"24",height:"24"}),value:"myHealth",tracking:{action:"My Health Click"},link:`${g}user/health/`},{key:"userProfile.nav.card.mySaved",icon:a.createElement(Vt,{width:"24",height:"24"}),iconColor:"green_300",value:"saved",tracking:{action:"Bookmarks Click"},link:`${g}user/saved/`},{key:"userProfile.nav.card.myBooking",icon:a.createElement($t,{width:"24",height:"24"}),value:"booking",disabled:!ze.includes(m),tracking:{action:"Manage Booking Click"},link:`${g}user/booking/`},{key:"userProfile.nav.card.myCommunity",icon:a.createElement(Ft,{width:"24",height:"24"}),value:"myCommunities",disabled:!Ze.includes(m),tracking:{action:"Community Click"},link:`${g}user/my-communities/`}],...Ge.includes(m)?[[{key:"userProfile.nav.card.eCom",icon:a.createElement(Rt,{width:"24",height:"24"}),value:"eCom",disabled:!Ge.includes(m),subMenu:[{key:"userProfile.nav.card.ecom.manageOrders",value:"eCom-manageOrders",icon:a.createElement(Ot,{width:"24",height:"24"}),link:`${v}shop/ho-so/quan-li-don-hang/`,tracking:{action:"Order Management Click"}},{key:"userProfile.nav.card.ecom.DeliveryAddress",value:"eCom-manageAddress",icon:a.createElement(Ot,{width:"24",height:"24"}),link:`${v}shop/ho-so/dia-chi-giao-hang/`,tracking:{action:"Address Management Click"}},{key:"userProfile.nav.card.ecom.voucher",value:"eCom-voucher",icon:a.createElement(Ot,{width:"24",height:"24"}),link:`${v}shop/ho-so/khuyen-mai/`,tracking:{action:"Voucher Click"}}]}]]:[],[{key:"userProfile.nav.menu.accountSettings",icon:a.createElement(zt,{width:"24",height:"24"}),subMenu:[{key:"common.profileNavigator.newsletterSubscription",value:"subscription",icon:a.createElement(Ot,{width:"24",height:"24"}),tracking:{action:"Subscription Click"},link:`${g}user/subscriptions/`,disabled:"vi-VN"!==m},{key:"userProfile.nav.menu.password",value:"password",icon:a.createElement(Ot,{width:"24",height:"24"}),tracking:{action:"Set Password Click"},link:`${g}user/password/`},{key:"userProfile.nav.menu.disableAccount",value:"disable-account",icon:a.createElement(Ot,{width:"24",height:"24"}),tracking:{action:"Disable Account Click"},link:`${g}user/disable-account/`}]}],[{key:"userProfile.nav.menu.help",icon:a.createElement(It,{width:"24",height:"24"}),value:"help",link:`${g}user/help`,tracking:{action:"Support Click"}},{key:"userProfile.nav.menu.logout",icon:a.createElement(Dt,{width:"24",height:"24"}),value:"logout",tracking:{action:"Sign Out Click"}}]];return a.createElement(k,{className:e,style:i},a.createElement(qt,{userInfo:c,siteType:r}),p.map(((e,t)=>a.createElement(o,{key:t},e.map((e=>a.createElement(Yt,{key:e.key,item:e,activeKey:h||"",onLogout:s,onClick:()=>u((t=>t===e.key?void 0:e.key)),siteType:r}))),t!==p.length-1&&a.createElement("hr",null)))))},Yt=({item:e,activeKey:t,forceOpen:i,onLogout:o,onClick:s,siteType:r})=>{var c;const[m,d]=l(!1),u=n((()=>"undefined"!=typeof window?window.location.href:""),[]);if(e.disabled)return null;const{t:h}=st(),g="boolean"==typeof i?i:m,v=t===e.key;return a.createElement(w,{as:e.subMenu?void 0:"a","data-is-open":g,key:e.key,hasSubmenu:!!e.subMenu,onClick:()=>{null==s||s(),e.subMenu&&!i?d((e=>!e)):"logout"===e.value?null==o||o():e.link&&(window.location.href=e.link)},"data-event-category":"Ecommerce","data-event-action":(null===(c=null==e?void 0:e.tracking)||void 0===c?void 0:c.action)||"","data-event-label":u},a.createElement(P,{"data-active":v},e.icon,a.createElement(Ie,{size:"p3",style:{marginLeft:e.icon?24:48,transition:"color 300ms"},color:v?"helloSites"===r?"hb.6":"mb.6":"gray.8"},h(e.key)),e.subMenu&&a.createElement(_,{"data-is-open":g},a.createElement(ft,{width:14}))),e.subMenu&&a.createElement(M,null,e.subMenu.map((e=>a.createElement(Yt,{key:e.key,item:e,activeKey:t,onLogout:o})))))},Qt=({isOpen:e,userInfo:t,closePopup:l,siteType:n="helloSites",dispatchLogout:i})=>a.createElement(N,{"data-open":e},a.createElement("div",{className:"popup-content"},a.createElement(Kt,{siteType:n,onLogout:()=>{i&&(i(),l())},userInfo:t}))),Jt=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:l,siteType:n="helloSites"})=>{const{t:i}=st();return s((()=>{document.body.classList.toggle("noscroll",e)}),[e]),a.createElement(ut,null,a.createElement(lt,{type:"confirm",isOpen:e,closeIcon:a.createElement("img",{src:Ve.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},a.createElement(L,null,"helloSites"===n&&a.createElement("img",{src:Ve.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),a.createElement("h2",null,i("helloSites"===n?"logout.popup.ask1":"logout.popup.ask.mb")),a.createElement("p",null,i("logout.popup.ask2")),a.createElement(B,{siteType:n},a.createElement(bt,{className:"logout-button",color:"tertiary",size:"lg",onClick:l},i("logout.popup.button.logout")),a.createElement(bt,{className:"cancel-button",color:"primary",size:"lg",onClick:t},i("logout.popup.button.cancel"))))))},Xt=({userInfo:e,siteType:n,onLoginClick:i,SSO_URL:o,currentUrl:r,isMinifyLogin:c,onLogout:m,style:d,isLoading:g,locale:v})=>{const{t:p}=st(),[E,y]=l(!1),f=(null==e?void 0:e.name)||(null==e?void 0:e.username),[b,C]=l(!1);s((()=>{C(!0)}),[]);const{containerRef:k,onContainerFocus:w,onContainerBlur:P,onButtonMouseDown:_,onClose:M}=jt();return g?a.createElement(h,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?a.createElement(a.Fragment,null,a.createElement(A,{ref:k,style:d,tabIndex:0,onBlur:P,onFocus:()=>{var e;w();const t=null===(e=k.current)||void 0===e?void 0:e.querySelector("#desktop-sticky-header .hhgcomp-navprofilebutton-popup");if(t){const e=`calc(100vh - ${t.getBoundingClientRect().top}px)`;t.setAttribute("style",`max-height: ${e};`)}}},a.createElement("div",{onMouseDown:_},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),a.createElement(u,{size:40,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===n?vt.mbColors.pink:vt.colors.secondaryBase,placeholderText:f&&f.length?f[0].toUpperCase():"A"})),a.createElement(Qt,{dispatchLogout:()=>{M(),y(!0)},isOpen:!1,closePopup:M,siteType:n,userInfo:e})),a.createElement(Jt,{openLogoutPopup:E,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),y(!1)},siteType:n,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){y(!1),document.body.classList.toggle("noscroll",!1),yield m()}))})):a.createElement(T,{style:Object.assign({textDecoration:"none"},d),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:b?void 0:Ye(`${o}?returnUrl=${r}`),"data-site-type":n},c?a.createElement(x,{onClick:i},a.createElement("img",{src:Ve.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):a.createElement(a.Fragment,null,"helloSites"===n&&(v===ht.Indonesia||v===ht.PhilippinesTagalog||v===ht.PhilippinesEnglish?a.createElement("img",{className:"mobile-only",src:Ve.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):a.createElement(h,{className:"mobile-only",size:"sm",onClick:i,leftIcon:a.createElement(Ue,{useCurrentColor:!0,isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},p("navigation.loginJoin"))),"marryBaby"===n&&a.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},a.createElement(Ie,{size:"p3",color:vt.mbColors.pink},p("navigation.loginJoin"))),a.createElement(h,{className:"login-btn",size:"md",onClick:i,leftIcon:a.createElement(Ue,{useCurrentColor:!0,isSolid:!0,size:22})},p("navigation.loginJoin"))))};var ea="spdlGfq",ta="vgS16jX";const aa=({onCareHeaderClick:e,currentUrl:t,careUrlFe:l,btnName:n})=>e?a.createElement(bt,{className:ea,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):a.createElement("a",{href:l,className:`${ta} care-button no-replace-click`},a.createElement(bt,{className:ea,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var la="y5VJdvw",na="oVhOSCy",ia="pX8OXTM";function oa({className:e}){return a.createElement("div",null,a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function sa({siteType:e,enableSearch:t,className:l}){return"helloSites"===e?a.createElement("div",null,a.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:t?Ve.getAssetPath("hamburgerMenuNewWithSearch.svg"):Ve.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:"home",className:l,loading:"lazy"})):a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:l},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const ra=()=>{const{locale:e,configs:{statics:t},siteType:l}=r(H),n=rt(),{t:i}=st();return a.createElement(kt,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?i("navigation.search.input.placeholder"):i("home.search",{site:We[e||"en-PH"]?We[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:a.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},a.createElement(S,null))})};var ca="wnUb-dV",ma="cjbOxWe",da="gB4rp89";const ua=({item:e,menu:t})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:s}=jt({allowBgScroll:!0}),r=_t();return!e.popupType&&e.link?a.createElement(ha,{isNew:e.isNew},a.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ma},"care"===e.id&&a.createElement("div",{className:da},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name))):a.createElement(ha,{isNew:e.isNew},a.createElement("div",{ref:l,className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:ma},"care"===e.id&&a.createElement("a",{className:da,href:Ye(e.link+"/")},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&a.createElement("div",{className:ca},a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},a.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),a.isValidElement(t)?a.cloneElement(t,{onClose:s}):null))},ha=({isNew:e,children:t})=>{const{t:l}=st();return e?a.createElement(Pt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):a.createElement(a.Fragment,null,t)},ga=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:l,onClosePopup:n,menuItems:i,headingTitle:o,activeItem:s})=>{const{siteType:c}=r(H);return a.createElement(j,null,a.createElement($,null,a.createElement(wt,{tag:"marryBaby"===c?"h5":"h6",as:"p",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${l}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return a.createElement(F,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,"data-active":e.id===s,href:i},!Lt(i)&&{target:"_blank"},{"data-theme":c,key:t,onClick:n}),a.createElement("div",{className:"icon"},a.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),a.createElement(ha,{isNew:e.isNew},a.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),a.createElement(O,null,a.createElement("img",{src:Ve.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&a.createElement(R,{"data-theme":c,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},a.createElement(I,{onClick:n,"data-theme":c,"data-is-heading-category":!1},t,a.createElement(D,null,a.createElement("img",{className:"svg",src:"marryBaby"===c?Ve.getAssetPath("chevronRightPink.svg"):Ve.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},va=({item:e,index:t=0})=>{var l;const{t:n}=st(),{locale:i,configs:{statics:o}}=r(H);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(l=Ct[i])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return a.createElement(U,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},a.createElement("img",{src:Ve.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),a.createElement(V,null,a.createElement(z,null,a.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),a.createElement(Z,null,a.createElement(G,null,e.name),a.createElement(W,null,e.description),a.createElement(q,null,n("home.seeMore"),a.createElement("img",{src:Ve.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},pa=({title:e,link:t,description:l,cta:n,icon:i})=>{const{siteType:o}=r(H);return a.createElement(K,{"data-theme":o},a.createElement(Y,null,a.createElement("img",{src:"marryBaby"===o?Ve.getAssetPath("navMBSpotlightBgNoData.svg"):Ve.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Q,null,i&&a.createElement("img",{src:i,width:64,height:64,loading:"lazy"}))),a.createElement("div",null,e&&a.createElement(J,null,e),l&&a.createElement(X,null,l),n&&a.createElement("div",null,a.createElement("a",{href:t},a.createElement(bt,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},Ea=({title:e,viewMore:t,children:l,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(H);return a.createElement(ee,null,a.createElement(te,null,a.createElement(wt,{tag:"marryBaby"===o?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&a.createElement(ae,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,a.createElement("img",{src:"marryBaby"===o?Ve.getAssetPath("chevronRightPink.svg"):Ve.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},ya=({spotlights:e=[],hrefViewMore:t})=>{const{t:l}=st(),{siteType:n}=r(H);return a.createElement(Ea,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?a.createElement(a.Fragment,null,a.createElement(le,null,null==e?void 0:e.slice(0,3).map(((e,t)=>a.createElement(va,{key:t,index:t,item:e})))),a.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},a.createElement("a",{href:t},a.createElement(bt,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):a.createElement(pa,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:t,cta:l("home.navigator.menu.care.homeButton"),icon:Ve.getAssetPath("community.svg")}))},fa=({item:e,index:t=0})=>e?a.createElement(ne,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},a.createElement(ie,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(oe,null,e.title)):null,ba=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:l}=st(),{configs:{statics:n}}=r(H);return a.createElement(Ea,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?a.createElement(se,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(fa,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):a.createElement(pa,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:t,cta:l("home.navigator.menu.category.noDatas.cta"),icon:Ve.getAssetPath("Spotlight.svg")}))},Ca=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(H),{t:l}=st();return a.createElement(Ea,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:Qe(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?a.createElement(re,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ce,{index:t,post:e,key:e.id})))):a.createElement(pa,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:Ve.getAssetPath("community.svg")}))},ka=({item:e,index:t=0})=>e?a.createElement(me,{href:e.url,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":e.url},a.createElement("img",{loading:"lazy",alt:e.name,src:e.featuredImage||"/images/avatar.jpg",style:{width:"40px",height:"40px"}}),a.createElement(Ie,{size:"p2",weight:"regular",style:{marginLeft:16}},e.name),a.createElement("img",{src:Ve.getAssetPath("chevronRightActive.svg"),style:{width:"20px",height:"20px",marginLeft:"auto"},loading:"lazy"})):null,wa=({helpfulUrls:e=[]})=>{const{t:t}=st();return e.length?a.createElement(Ea,{title:t("home.navigator.menu.spotlightEcom")},0!==e.length?a.createElement(de,null,null==e?void 0:e.slice(0,5).map(((e,t)=>a.createElement(ka,{key:t,index:t,item:e})))):a.createElement(a.Fragment,null)):null},Pa=({item:e,index:t=0})=>{const{t:l}=st(),{configs:{statics:n}}=r(H);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return a.createElement(ue,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},a.createElement("img",{src:Ve.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(he,null,a.createElement(ge,null,e.title),a.createElement(ve,null,e.subtitle),a.createElement(pe,null,l("home.seeMore"),a.createElement("img",{src:Ve.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),a.createElement(Ee,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},_a=({item:e,index:t=0,color:l})=>{const{t:n}=st(),{configs:{statics:i}}=r(H);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>a.createElement(be,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>a.createElement(Ce,null,a.createElement(ke,null,a.createElement(we,null,e.title),a.createElement(Pe,null,e.subtitle)),a.createElement(_e,null,a.createElement("div",{className:"mobile-only"},n("home.seeMore")),a.createElement("img",{src:Ve.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return a.createElement(ye,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":l},a.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none"},a.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),a.createElement("img",{src:Ve.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),a.createElement(fe,null,a.createElement("div",{className:"mobile-only"},s()),a.createElement("div",{className:"desktop-only"},c())),a.createElement("div",{className:"mobile-only"},c()),a.createElement("div",{className:"desktop-only"},s()))},Ma=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:l}=st(),n=["pink","orange","green"],{siteType:i}=r(H);return a.createElement(Ea,{title:l("home.navigator.menu.spotlightTools")},0!==t.length&&a.createElement(Me,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?a.createElement(_a,{key:t,index:t,item:e,color:n[t]}):a.createElement(Pa,{key:t,index:t,item:e})))),0===t.length&&a.createElement(pa,{title:l("home.navigator.menu.healthTools.noDatas.title"),description:l("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:l("home.navigator.menu.healthTools.noDatas.cta"),icon:Ve.getAssetPath("community.svg")}))},Na=({closePopup:e,menuItems:t=[]})=>{var l,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m,ecom:d},activeMenuService:u,configs:{statics:h,enableSearchBar:g},locale:v}=r(H),{t:p}=st();return a.createElement(Ne,{id:"categories-menu"},g?a.createElement(Le,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},a.createElement(ra,null)):null,a.createElement(Be,null,a.createElement(ga,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e,activeItem:u}),"categories"===u&&a.createElement(ba,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}/spotlight/`}),"tools"===u&&a.createElement(Ma,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===v?"/fil":""}${(null===(l=qe[v])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===u&&a.createElement(ya,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=Ct[v])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===u&&a.createElement(Ca,{spotlights:null==m?void 0:m.spotlights}),"ecom"===u&&a.createElement(wa,{helpfulUrls:null==d?void 0:d.helpfulUrls})))},La=({menuItems:e})=>{const{siteType:t,configs:{enableSearchBar:l}}=r(H),{containerRef:n,onContainerFocus:i,onContainerBlur:o,onButtonMouseDown:s,onClose:c}=jt();return a.createElement(St,{mediaQueryKey:"mbDown"},a.createElement("header",{className:la},a.createElement("div",{className:na,ref:n,role:"button",tabIndex:0,onBlur:o,onFocus:i},a.createElement("div",{className:ia,onMouseDown:s,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},a.createElement(oa,{className:"mobile-close-icon"}),a.createElement(sa,{siteType:t,enableSearch:l,className:"mobile-hamburger-icon"})),a.createElement(Na,{menuItems:e,closePopup:c}))))},Ba=e=>{var t,a,l,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>Ba(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(l=e.reviewed_by,{postTitle:l.post_title,permalink:l.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Aa=e=>{var t,a;if(!e)return{};const l=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||l?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},Ta=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(l=e.object_id)||void 0===l?void 0:l.name)||"",name:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},xa=e=>{var t,a,l,n,i;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",logo:(null===(l=null==e?void 0:e.object_id)||void 0===l?void 0:l.logo)||"",description:(null===(n=e.object_id)||void 0===n?void 0:n.description)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},Ha=(e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+pt(Ae.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${Ke[e]}`})),Sa=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=Ct[a])||void 0===l?void 0:l.ALL}/${(null===(n=Ct[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},ja=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},$a=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0};var Fa="q3nL5cp",Oa="_2DNf80G",Ra="Q-glX-n";const Ia=({onClosePopup:e})=>a.createElement("div",{className:`${Ra} close-btn`,onClick:e},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Da=({onClosePopup:e,isDisplay:t,children:l,isNavMenu:n,hideCloseBtn:i})=>a.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},a.createElement(Mt,null,!i&&a.createElement("div",{className:Oa},a.createElement(Ia,{onClosePopup:e})),a.createElement(Mt,{className:Fa},l))),Ua=({careSpecialties:e=[],isOpen:t,onClose:l,spotlights:n=[]})=>{var i;const{t:o}=st(),{locale:s,configs:{statics:c}}=r(H);return a.createElement(Da,{onClosePopup:l,isDisplay:t,isNavMenu:!0},a.createElement(ga,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:Sa({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),a.createElement(ya,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(i=Ct[s])||void 0===i?void 0:i.SPECIALTIES}/`}))},Va=({categories:e=[],spotlightsList:t=[],onClose:l,isOpen:n})=>{const{t:i}=st(),{locale:o,configs:{statics:s}}=r(H);return a.createElement(Da,{onClosePopup:l,isDisplay:n,isNavMenu:!0},a.createElement(ga,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),a.createElement(ba,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},za=({communities:e=[],onClose:t,isOpen:l,spotlights:n=[]})=>{const{t:i}=st(),{configs:{statics:o}}=r(H);return a.createElement(Da,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ga,{hrefViewMore:Qe(o.TOGETHER_URL_FE),UrlFE:Ye(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),a.createElement(Ca,{spotlights:n}))},Za=({locale:e,onClose:t,isOpen:l,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=st(),{configs:{statics:c}}=r(H),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=qe[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return a.createElement(Da,{onClosePopup:t,isDisplay:l,isNavMenu:!0},a.createElement(ga,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),a.createElement(Ma,{spotlightHealthTools:n,hrefViewMore:m}))},Ga=({onTopBarAppears:e,languageMenu:t,menuItems:n,logoComponent:o})=>{var m;const{siteType:d,isMobile:u=!1,locale:h,sitewideBanner:g,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:f,cartNumber:b,configs:{statics:C,enableNavCareBooking:k,enableSearchBar:w},userState:{userInfo:P},onLogout:_,isUserLoading:M}=r(H),{t:N}=st(),{SSO_URL:L,HOME_PAGE_URL:B}=C,A=!!p,[T,x]=l(!1),S=i(47),j=i(null),$=i(!1),F="helloSites"===d?null===(m=We[h])||void 0===m?void 0:m.LOGO_TYPE:d,O="undefined"!=typeof window,R=c(ct((()=>{if(O){if(!j.current)return;const e=j.current.getBoundingClientRect();e.top<=0&&window.scrollY>S.current&&window.scrollY>e.height+20&&!$.current&&($.current=!0,x(!0)),window.scrollY<S.current&&$.current&&($.current=!1,x(!1)),window.scrollY>=0&&(S.current=window.scrollY)}}),200),[]);s((()=>{null==e||e(!T)}),[T]),s((()=>(window.addEventListener("scroll",R,{passive:!0}),()=>{window.removeEventListener("scroll",R)})),[]),s((()=>{u&&R()}),[u]);const I=v&&!!g;return a.createElement(Te,{"data-site-type":d,"data-sponsored":A,"data-sitewide-banner-shown":I,"data-header-type":"home","data-collapsed":T,"data-is-displayed":!0,id:"site-header",ref:j},g,a.createElement(xe,{"data-site-type":d},a.createElement(He,{"data-site-type":d},a.createElement(La,{menuItems:n}),o||a.createElement("a",{style:{flexShrink:0},href:B},a.createElement(Se,null,a.createElement(ot,{style:{display:"flex"},type:F,badge:"id-ID"===h&&a.createElement("img",{src:Ve.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:h,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===d?a.createElement(qa,{menuItems:n}):w&&a.createElement(Wa,{siteType:d})),a.createElement(je,{"data-site-type":d},"marryBaby"===d?w&&a.createElement(Wa,{siteType:d}):a.createElement(qa,{menuItems:n}),a.createElement($e,null,a.createElement(Ht,{count:b,locale:h}),k&&a.createElement(St,{mediaQueryKey:"mbUp"},a.createElement(aa,{careUrlFe:C.CARE_URL_FE,currentUrl:y,btnName:N("login.booking"),onCareHeaderClick:E})),t,a.createElement(Xt,{userInfo:P,siteType:d,onLoginClick:f||(()=>{const e=window.location.href;window.location.href=L?Ye(`${L}?returnUrl=${e}`):e}),SSO_URL:Qe(C.SSO_URL),currentUrl:y,onLogout:_,isLoading:M,locale:h})))),p?a.isValidElement(p)?a.cloneElement(p,{isCollapsed:T,locale:h,isMobile:u}):p:null)},Wa=({siteType:e})=>a.createElement(St,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},a.createElement(ra,null)),qa=({menuItems:e})=>{const{siteType:t,locale:l,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(H);return a.createElement(St,{mediaQueryKey:"mbUp",style:{height:"100%"}},a.createElement(Fe,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>a.createElement(ua,{key:t,item:e,menu:"categories"===e.popupType?a.createElement(Va,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?a.createElement(Za,{locale:l,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?a.createElement(za,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?a.createElement(Ua,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},Ka=e=>{var t,o;const{isMobile:m,locale:d,onTopBarAppears:u,languageOptions:h,sponsorComponent:g,sitewideBanner:v,sitewideBannerShown:p,className:E,logoComponent:y}=e,f=(()=>{const{t:e}=st(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:i,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:m}}=r(H),d="marryBaby"===t;return n((()=>{var t;const n=[];return l&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:d?Ve.getAssetPath("categories-mb.svg"):Ve.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),i&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=qe[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:d?Ve.getAssetPath("healthtools-mb.svg"):Ve.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),s&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:Ye(m.TOGETHER_URL_FE+"/"),thumbnail:d?Ve.getAssetPath("community-mb.svg"):Ve.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:Ye(m.HOME_PAGE_URL+"/shop"),thumbnail:Ve.getAssetPath("nav-icons/shop.svg"),popupType:null}),o&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:Ye("ms-MY"===a?m.HOME_PAGE_URL+"/care/current-location/hospital/":m.HOME_PAGE_URL+"/care"),thumbnail:Ve.getAssetPath("nav-icons/care.svg"),popupType:"id-ID"===a?"care":null}),n}),[a,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(H),{userInfo:a}=t;s((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const b=p&&!!v,C=!!g,k=!!(null===(o=null===(t=null==g?void 0:g.props)||void 0===t?void 0:t.sponsoredBy)||void 0===o?void 0:o.length),{headerRef:w,defaultHeaderHeight:P,headerHeight:_,headerBottom:M}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:o})=>{const r=i(null),[m,d]=l(0),[u,h]=l(64),g=c(yt((()=>{var e,t,a,l;const n=(null===(e=r.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=r.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(d(n),h((null===(l=r.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);s((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),s((()=>{g()}),[o,a,t,e,r.current]);const v=n((()=>{let l=56;return a&&(l+=64),t&&(l+=40,e&&(l+=57)),l}),[o,a,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:u,headerRef:r}})({isShowingSiteWideBanner:b,isSponsored:C,hasSponsoredBanners:k,isMobile:m});return a.createElement(Re,{id:"navigation-v2",style:{"--default-header-height":P+"px","--header-height":`calc(${_}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":M+"px"},className:E},a.createElement("section",{ref:w},a.createElement(Ga,{menuItems:f,onTopBarAppears:u,logoComponent:y,languageMenu:a.createElement(At,{languageOptions:h,locale:d})})))},Ya=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return a.createElement(Oe,Object.assign({},t),a.createElement(Ka,Object.assign({},t)))},Qa=e=>t(void 0,void 0,void 0,(function*(){var t,a,l,n,i,o,s,r,c,m,d,u,h,g,v,p,E,y,f,b,C,k,w;const P={},_="vi-VN_MB"===e;try{const M="tl-PH"===e?"lang=fil":"";try{const[d,u,h,g]=yield Promise.all([fetch(Ye(`${et(e)}/wp-json/api/categories${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ye(`${et(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${M?"&"+M:""}`)).then((e=>e.json())),fetch(Ye(`${et(e)}/wp-json/api/${_?"health-tools":"healthtools"}${M?"?"+M:""}`)).then((e=>e.json())),fetch(Ye(`${et(e)}/wp-json/api/${_?"health-tools":"healthtools"}/favorites${M?"?"+M:""}`)).then((e=>e.json()))]);P.categories={items:(null===(a=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,Ba))||[],spotlights:(null===(o=null===(i=null===(n=null===(l=null==u?void 0:u.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,ja))||void 0===o?void 0:o.filter($a))||[]},P.healthTools={items:(null===(r=null===(s=null==h?void 0:h.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Aa))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Aa))||[]}}catch(e){}if(_||Ze.includes(e))try{const[t,a]=yield Promise.all([fetch(Ye(`${tt()}/api/v1/community?website_url=https://${Ke[e]}`)).then((e=>e.json())),fetch(Ye(`${tt()}/api/v1/options?website_url=https://${Ke[e]}&meta_key=popular_post`)).then((e=>e.json()))]);P.together={items:(null===(h=null===(u=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===u?void 0:u.map)||void 0===h?void 0:h.call(u,nt))||[],spotlights:(null===(p=null===(v=null===(g=null==a?void 0:a.data)||void 0===g?void 0:g.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,it))||[]}}catch(e){}if(ze.includes(e))try{const[t,a]=yield Promise.all([fetch(Ye(at()+`/api/options/setting_menu?site=${Ke[e]}&type=0`)).then((e=>e.json())),fetch(Ye(at()+`/api/options/setting_menu?site=${Ke[e]}&type=1`)).then((e=>e.json()))]);P.care={items:(null===(b=null===(f=null===(y=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.setting_menu)||void 0===y?void 0:y.menu_specialty)||void 0===f?void 0:f.map)||void 0===b?void 0:b.call(f,Ta))||[],spotlights:(null===(w=null===(k=null===(C=null==a?void 0:a._data.setting_menu)||void 0===C?void 0:C.menu_hospital)||void 0===k?void 0:k.map)||void 0===w?void 0:w.call(k,xa))||[]}}catch(e){}}catch(e){console.error(e)}return P})),Ja=e=>t(void 0,void 0,void 0,(function*(){return(yield m("nav-menu-content",(()=>Qa(e||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{At as L,Ya as N,Kt as P,Ja as a,Jt as b,Xt as c,Ha as d,Qa as g,Lt as i};