@hhgtech/hhg-components 1.28.2 → 1.28.4

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 (271) 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/atoms/logo/index.d.ts +1 -0
  5. package/build/components/atoms/logo/utils.d.ts +6 -0
  6. package/build/components.js +1 -1
  7. package/build/{constants-40c2c222.js → constants-450d7201.js} +1 -1
  8. package/build/{constants-969660d7.js → constants-a7ede5d7.js} +1 -1
  9. package/build/constants.js +1 -1
  10. package/build/core-731dcc80.js +1 -0
  11. package/build/ecom.js +1 -1
  12. package/build/esm/babyGrowth.js +8 -8
  13. package/build/esm/cache.js +1 -1
  14. package/build/esm/care.js +1 -1
  15. package/build/esm/components/atoms/logo/index.d.ts +1 -0
  16. package/build/esm/components/atoms/logo/utils.d.ts +6 -0
  17. package/build/esm/components.js +1 -1
  18. package/build/esm/{constants-0db29aa8.js → constants-825e5107.js} +1 -1
  19. package/build/esm/{constants-fce1054a.js → constants-a9db830c.js} +2 -2
  20. package/build/esm/constants.js +1 -1
  21. package/build/esm/{core-58943a8e.js → core-5458f356.js} +1 -1
  22. package/build/esm/ecom.js +1 -1
  23. package/build/esm/footer.js +1 -1
  24. package/build/esm/gAssets.js +1 -1
  25. package/build/esm/getDynamicHealthTool-032b8e69.js +1 -0
  26. package/build/esm/{getSocialList-c57eb90f.js → getSocialList-03bccede.js} +1 -1
  27. package/build/esm/hooks.js +1 -1
  28. package/build/esm/i18n.js +1 -1
  29. package/build/esm/i18nV2.js +1 -1
  30. package/build/esm/{index-8b684d41.js → index-0b3023d5.js} +1 -1
  31. package/build/esm/{index-9530062b.js → index-1a8eff08.js} +1 -1
  32. package/build/esm/{index-2cef224a.js → index-28050822.js} +4 -4
  33. package/build/esm/{index-cbb0cfcd.js → index-365f3b02.js} +1 -1
  34. package/build/esm/{index-91baa4e0.js → index-3eaf0620.js} +1 -1
  35. package/build/esm/index-501f0233.js +1 -0
  36. package/build/esm/{index-4bc3e784.js → index-5966deb7.js} +1 -1
  37. package/build/esm/index-6e710cf0.js +1 -0
  38. package/build/esm/index-71042d78.js +1 -0
  39. package/build/esm/{index-91012bea.js → index-746b39ff.js} +1 -1
  40. package/build/esm/{index-8bdf2cf6.js → index-79e709f3.js} +1 -1
  41. package/build/esm/{index-d50a3625.js → index-7e9eed2c.js} +5 -5
  42. package/build/esm/{index-bf7ba39e.js → index-93e8f992.js} +1 -1
  43. package/build/esm/index-c5e54f6d.js +1 -0
  44. package/build/esm/{index-53ea26e2.js → index-d7dd5cb5.js} +1 -1
  45. package/build/esm/{index-df2618d6.js → index-ea85a059.js} +1 -1
  46. package/build/esm/{index-41b1836f.js → index-f03a4163.js} +1 -1
  47. package/build/esm/{index-034b5b0a.js → index-f06dc13f.js} +1 -1
  48. package/build/esm/{index-17990716.js → index-f3039ab6.js} +6 -6
  49. package/build/esm/index.css +1 -1
  50. package/build/esm/index.js +1 -1
  51. package/build/esm/{index.styled-d6398f5e.js → index.styled-15fe01fc.js} +1 -1
  52. package/build/esm/{index.styled-0ee871a2.js → index.styled-dfa96990.js} +3 -2
  53. package/build/esm/{index.styles-806c1a05.js → index.styles-9f601640.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 +1 -1
  60. package/build/esm/{routing-daa55ca5.js → routing-e0719ff6.js} +1 -1
  61. package/build/esm/together.js +1 -1
  62. package/build/esm/{types-1d605e80.js → types-26ecf88b.js} +1 -1
  63. package/build/esm/{types-f7b7df74.js → types-c300a086.js} +1 -1
  64. package/build/esm/types.js +1 -1
  65. package/build/esm/{useCategory-609d1994.js → useCategory-431e606b.js} +1 -1
  66. package/build/esm/{useHealthToolCache-1966b6b9.js → useHealthToolCache-ca1ba2cd.js} +1 -1
  67. package/build/esm/{useRafState-726ce31c.js → useRafState-06415e7f.js} +1 -1
  68. package/build/esm/{useTranslations-ddb5448d.js → useTranslations-4789f6fb.js} +1 -1
  69. package/build/esm/{utils-c41b2424.js → utils-391a60ae.js} +1 -1
  70. package/build/esm/utils-4f976283.js +121 -0
  71. package/build/esm/vaccination.js +1 -1
  72. package/build/footer.js +1 -1
  73. package/build/gAssets.js +1 -1
  74. package/build/getDynamicHealthTool-9b7ffcef.js +1 -0
  75. package/build/{getSocialList-ba3b713f.js → getSocialList-0e588a1a.js} +1 -1
  76. package/build/hooks.js +1 -1
  77. package/build/i18n.js +1 -1
  78. package/build/i18nV2.js +1 -1
  79. package/build/{index-e48b9727.js → index-033c5c74.js} +1 -1
  80. package/build/{index-54ddde4b.js → index-2693eb44.js} +1 -1
  81. package/build/{index-8721656a.js → index-39c9d37e.js} +1 -1
  82. package/build/index-3ddd2999.js +1 -0
  83. package/build/{index-96818d04.js → index-49d74299.js} +1 -1
  84. package/build/{index-a14aa500.js → index-6ecb02b4.js} +4 -4
  85. package/build/index-72ecc9b7.js +1 -0
  86. package/build/{index-45206eb6.js → index-75f72755.js} +5 -5
  87. package/build/{index-4258e6af.js → index-7a305ed2.js} +1 -1
  88. package/build/{index-59c683b8.js → index-7fec7adb.js} +1 -1
  89. package/build/{index-20f7bb49.js → index-80a287c5.js} +1 -1
  90. package/build/index-862d608a.js +1 -0
  91. package/build/{index-e66e5c42.js → index-90b2902d.js} +3 -3
  92. package/build/index-98ba4a89.js +1 -0
  93. package/build/{index-2c9ca3f4.js → index-b2c185f6.js} +1 -1
  94. package/build/{index-98b078fa.js → index-b7affa54.js} +1 -1
  95. package/build/{index-a7c4c692.js → index-bdb79e3b.js} +1 -1
  96. package/build/{index-8148a623.js → index-cf2be95e.js} +1 -1
  97. package/build/{index-94e8dc6c.js → index-f934085b.js} +1 -1
  98. package/build/index.css +1 -1
  99. package/build/index.js +1 -1
  100. package/build/{index.styled-5228c870.js → index.styled-6d9a6437.js} +1 -1
  101. package/build/{index.styled-2d000282.js → index.styled-bd54b35f.js} +3 -2
  102. package/build/{index.styles-724ad6e1.js → index.styles-67ed9ca9.js} +1 -1
  103. package/build/lead.js +1 -1
  104. package/build/mantine.js +1 -1
  105. package/build/misc.js +1 -1
  106. package/build/navigation.js +1 -1
  107. package/build/onboardingV2.js +1 -1
  108. package/build/pwg.js +1 -1
  109. package/build/{routing-80fbf8cf.js → routing-de04e059.js} +1 -1
  110. package/build/together.js +1 -1
  111. package/build/{types-f867422a.js → types-540b776a.js} +1 -1
  112. package/build/{types-36bee3d0.js → types-ca64fc16.js} +1 -1
  113. package/build/types.js +1 -1
  114. package/build/{useCategory-65d27674.js → useCategory-ea4742a3.js} +1 -1
  115. package/build/useHealthToolCache-cba85a41.js +1 -0
  116. package/build/{useRafState-905355a2.js → useRafState-e02722e9.js} +1 -1
  117. package/build/{useTranslations-67bf1251.js → useTranslations-a3b7e842.js} +1 -1
  118. package/build/{utils-6c8a960a.js → utils-283b2f96.js} +1 -1
  119. package/build/utils-9e14145a.js +121 -0
  120. package/build/vaccination.js +1 -1
  121. package/package.json +1 -1
  122. package/build/core-06ed0932.js +0 -1
  123. package/build/esm/getDynamicHealthTool-f20c7771.js +0 -1
  124. package/build/esm/index-46751179.js +0 -1
  125. package/build/esm/index-563c0d73.js +0 -1
  126. package/build/esm/index-a9d15e24.js +0 -1
  127. package/build/esm/index-c4dfb2a0.js +0 -1
  128. package/build/esm/utils-003a6099.js +0 -95
  129. package/build/getDynamicHealthTool-0f1dad96.js +0 -1
  130. package/build/index-1a8164f5.js +0 -1
  131. package/build/index-4249260d.js +0 -1
  132. package/build/index-748ffd09.js +0 -1
  133. package/build/index-f41be8bd.js +0 -1
  134. package/build/useHealthToolCache-dd4d8f0e.js +0 -1
  135. package/build/utils-78c73f4f.js +0 -95
  136. /package/build/{BMI_BOYS.percentile.monthly-36c72888.js → BMI_BOYS.percentile.monthly-b0f99257.js} +0 -0
  137. /package/build/{BMI_BOYS.percentile.weekly-01c739d7.js → BMI_BOYS.percentile.weekly-d6281278.js} +0 -0
  138. /package/build/{BMI_BOYS.percentile.yearly-86f43949.js → BMI_BOYS.percentile.yearly-f498af59.js} +0 -0
  139. /package/build/{BMI_BOYS.zscore.monthly-fd1b34f5.js → BMI_BOYS.zscore.monthly-01258de4.js} +0 -0
  140. /package/build/{BMI_BOYS.zscore.weekly-f45d8a28.js → BMI_BOYS.zscore.weekly-ce2f888b.js} +0 -0
  141. /package/build/{BMI_BOYS.zscore.yearly-aae00b24.js → BMI_BOYS.zscore.yearly-97920746.js} +0 -0
  142. /package/build/{BMI_GIRLS.percentile.monthly-a419cbed.js → BMI_GIRLS.percentile.monthly-a045f503.js} +0 -0
  143. /package/build/{BMI_GIRLS.percentile.weekly-707a03e4.js → BMI_GIRLS.percentile.weekly-d18a707c.js} +0 -0
  144. /package/build/{BMI_GIRLS.percentile.yearly-b39ee0d7.js → BMI_GIRLS.percentile.yearly-430a8676.js} +0 -0
  145. /package/build/{BMI_GIRLS.zscore.monthly-6b43efec.js → BMI_GIRLS.zscore.monthly-91654dd1.js} +0 -0
  146. /package/build/{BMI_GIRLS.zscore.weekly-976bcb55.js → BMI_GIRLS.zscore.weekly-4dbc7898.js} +0 -0
  147. /package/build/{BMI_GIRLS.zscore.yearly-7bd9df0f.js → BMI_GIRLS.zscore.yearly-9a420923.js} +0 -0
  148. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-fa70d3ef.js → HEAD CIRCUM_BOYS.percentile.monthly-19ba28bf.js} +0 -0
  149. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-18a3c004.js → HEAD CIRCUM_BOYS.percentile.weekly-d4251b5b.js} +0 -0
  150. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-3a7b77b4.js → HEAD CIRCUM_BOYS.percentile.yearly-93900d48.js} +0 -0
  151. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-df8d29d8.js → HEAD CIRCUM_BOYS.zscore.monthly-c73112da.js} +0 -0
  152. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9af4622d.js → HEAD CIRCUM_BOYS.zscore.weekly-81e46915.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b964dcfc.js → HEAD CIRCUM_BOYS.zscore.yearly-3507ec99.js} +0 -0
  154. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-23ff2049.js → HEAD CIRCUM_GIRLS.percentile.monthly-23fc8f9f.js} +0 -0
  155. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-95bf26ed.js → HEAD CIRCUM_GIRLS.percentile.weekly-da47dda2.js} +0 -0
  156. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-0db15358.js → HEAD CIRCUM_GIRLS.percentile.yearly-dc6cf64d.js} +0 -0
  157. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-637188cd.js → HEAD CIRCUM_GIRLS.zscore.monthly-fa586a47.js} +0 -0
  158. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-3a7904a8.js → HEAD CIRCUM_GIRLS.zscore.weekly-ac519293.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-1c77c91a.js → HEAD CIRCUM_GIRLS.zscore.yearly-7547e309.js} +0 -0
  160. /package/build/{HEIGHT_BOYS.percentile.monthly-1b9a66fc.js → HEIGHT_BOYS.percentile.monthly-1395ec67.js} +0 -0
  161. /package/build/{HEIGHT_BOYS.percentile.weekly-da61e409.js → HEIGHT_BOYS.percentile.weekly-798ffcc1.js} +0 -0
  162. /package/build/{HEIGHT_BOYS.percentile.yearly-d6370939.js → HEIGHT_BOYS.percentile.yearly-fc3fdf21.js} +0 -0
  163. /package/build/{HEIGHT_BOYS.zscore.monthly-8f53f017.js → HEIGHT_BOYS.zscore.monthly-e3462055.js} +0 -0
  164. /package/build/{HEIGHT_BOYS.zscore.weekly-dbb942f9.js → HEIGHT_BOYS.zscore.weekly-dd671cef.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.zscore.yearly-e3fbd203.js → HEIGHT_BOYS.zscore.yearly-2304e1bd.js} +0 -0
  166. /package/build/{HEIGHT_GIRLS.percentile.monthly-52652849.js → HEIGHT_GIRLS.percentile.monthly-0b3466b4.js} +0 -0
  167. /package/build/{HEIGHT_GIRLS.percentile.weekly-05dde098.js → HEIGHT_GIRLS.percentile.weekly-477b6ce2.js} +0 -0
  168. /package/build/{HEIGHT_GIRLS.percentile.yearly-0957832a.js → HEIGHT_GIRLS.percentile.yearly-4491aec5.js} +0 -0
  169. /package/build/{HEIGHT_GIRLS.zscore.monthly-8791c815.js → HEIGHT_GIRLS.zscore.monthly-4549ea2f.js} +0 -0
  170. /package/build/{HEIGHT_GIRLS.zscore.weekly-3f4cddd3.js → HEIGHT_GIRLS.zscore.weekly-17730081.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.zscore.yearly-925899d6.js → HEIGHT_GIRLS.zscore.yearly-fb001894.js} +0 -0
  172. /package/build/{Onboarding-e1062254.js → Onboarding-ff130f2f.js} +0 -0
  173. /package/build/{Visible-549ef522.js → Visible-4b8e82ca.js} +0 -0
  174. /package/build/{WEIGHT_BOYS.percentile.monthly-8f4be387.js → WEIGHT_BOYS.percentile.monthly-6115be55.js} +0 -0
  175. /package/build/{WEIGHT_BOYS.percentile.weekly-58318020.js → WEIGHT_BOYS.percentile.weekly-9aa661e7.js} +0 -0
  176. /package/build/{WEIGHT_BOYS.percentile.yearly-f4d0bde8.js → WEIGHT_BOYS.percentile.yearly-7d61021a.js} +0 -0
  177. /package/build/{WEIGHT_BOYS.zscore.monthly-3803f0f6.js → WEIGHT_BOYS.zscore.monthly-853078cb.js} +0 -0
  178. /package/build/{WEIGHT_BOYS.zscore.weekly-24a4f4b4.js → WEIGHT_BOYS.zscore.weekly-f1d3db0c.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.zscore.yearly-74b8b840.js → WEIGHT_BOYS.zscore.yearly-e426c239.js} +0 -0
  180. /package/build/{WEIGHT_GIRLS.percentile.monthly-aefab74c.js → WEIGHT_GIRLS.percentile.monthly-a8d3458c.js} +0 -0
  181. /package/build/{WEIGHT_GIRLS.percentile.weekly-94161b15.js → WEIGHT_GIRLS.percentile.weekly-0faf8745.js} +0 -0
  182. /package/build/{WEIGHT_GIRLS.percentile.yearly-db3ea9ce.js → WEIGHT_GIRLS.percentile.yearly-f4b21706.js} +0 -0
  183. /package/build/{WEIGHT_GIRLS.zscore.monthly-5360cf3b.js → WEIGHT_GIRLS.zscore.monthly-014f086c.js} +0 -0
  184. /package/build/{WEIGHT_GIRLS.zscore.weekly-c76dd764.js → WEIGHT_GIRLS.zscore.weekly-f2c206e6.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.zscore.yearly-cdda5502.js → WEIGHT_GIRLS.zscore.yearly-ed01119d.js} +0 -0
  186. /package/build/{cookieHelper-453db8f7.js → cookieHelper-d7c085a7.js} +0 -0
  187. /package/build/{dataTransform-ca6cc54b.js → dataTransform-bb9b9c5e.js} +0 -0
  188. /package/build/esm/{BMI_BOYS.percentile.monthly-279510c6.js → BMI_BOYS.percentile.monthly-327575b5.js} +0 -0
  189. /package/build/esm/{BMI_BOYS.percentile.weekly-af9f1fbe.js → BMI_BOYS.percentile.weekly-c4a25704.js} +0 -0
  190. /package/build/esm/{BMI_BOYS.percentile.yearly-d8626733.js → BMI_BOYS.percentile.yearly-0cb9d6ea.js} +0 -0
  191. /package/build/esm/{BMI_BOYS.zscore.monthly-3f577dc6.js → BMI_BOYS.zscore.monthly-7767c2f4.js} +0 -0
  192. /package/build/esm/{BMI_BOYS.zscore.weekly-b3f4c457.js → BMI_BOYS.zscore.weekly-c822587b.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.zscore.yearly-96e3a44a.js → BMI_BOYS.zscore.yearly-598095c0.js} +0 -0
  194. /package/build/esm/{BMI_GIRLS.percentile.monthly-cd2340d3.js → BMI_GIRLS.percentile.monthly-0065f723.js} +0 -0
  195. /package/build/esm/{BMI_GIRLS.percentile.weekly-ea7eb297.js → BMI_GIRLS.percentile.weekly-4833262a.js} +0 -0
  196. /package/build/esm/{BMI_GIRLS.percentile.yearly-b29c587d.js → BMI_GIRLS.percentile.yearly-769165f1.js} +0 -0
  197. /package/build/esm/{BMI_GIRLS.zscore.monthly-8c2f1f23.js → BMI_GIRLS.zscore.monthly-cce0202a.js} +0 -0
  198. /package/build/esm/{BMI_GIRLS.zscore.weekly-96a1a2c5.js → BMI_GIRLS.zscore.weekly-aa9f3b37.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.zscore.yearly-300309d2.js → BMI_GIRLS.zscore.yearly-90f157ec.js} +0 -0
  200. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-1daf6205.js → HEAD CIRCUM_BOYS.percentile.monthly-953b6a85.js} +0 -0
  201. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-3acad50e.js → HEAD CIRCUM_BOYS.percentile.weekly-571d25f0.js} +0 -0
  202. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c2758ce4.js → HEAD CIRCUM_BOYS.percentile.yearly-669f2854.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-8d5437e1.js → HEAD CIRCUM_BOYS.zscore.monthly-1479662e.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-53b1417e.js → HEAD CIRCUM_BOYS.zscore.weekly-19908c6e.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-26393bb5.js → HEAD CIRCUM_BOYS.zscore.yearly-84eed9b3.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-33ee1696.js → HEAD CIRCUM_GIRLS.percentile.monthly-a70b9a7f.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-a0f129e7.js → HEAD CIRCUM_GIRLS.percentile.weekly-811ec24c.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-9ca41910.js → HEAD CIRCUM_GIRLS.percentile.yearly-38be49a7.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-084ec0c1.js → HEAD CIRCUM_GIRLS.zscore.monthly-ddbf6396.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-721fecde.js → HEAD CIRCUM_GIRLS.zscore.weekly-56b135e8.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d1aa706f.js → HEAD CIRCUM_GIRLS.zscore.yearly-78f6cf2c.js} +0 -0
  212. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-de68d7e9.js → HEIGHT_BOYS.percentile.monthly-959c6d2c.js} +0 -0
  213. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-8e8a7d93.js → HEIGHT_BOYS.percentile.weekly-bf7026d4.js} +0 -0
  214. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-38e1a578.js → HEIGHT_BOYS.percentile.yearly-25400ed0.js} +0 -0
  215. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b9cf7fbc.js → HEIGHT_BOYS.zscore.monthly-c03d0672.js} +0 -0
  216. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-8937a993.js → HEIGHT_BOYS.zscore.weekly-5f8c9317.js} +0 -0
  217. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-c721a832.js → HEIGHT_BOYS.zscore.yearly-62e0f09d.js} +0 -0
  218. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-743a2157.js → HEIGHT_GIRLS.percentile.monthly-a04b1ee4.js} +0 -0
  219. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-8f9dab39.js → HEIGHT_GIRLS.percentile.weekly-4ff6ee98.js} +0 -0
  220. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-5d060852.js → HEIGHT_GIRLS.percentile.yearly-c2080054.js} +0 -0
  221. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-96314094.js → HEIGHT_GIRLS.zscore.monthly-aaab59dc.js} +0 -0
  222. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-ec324aca.js → HEIGHT_GIRLS.zscore.weekly-ed8303ca.js} +0 -0
  223. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-9a00182a.js → HEIGHT_GIRLS.zscore.yearly-68f0a684.js} +0 -0
  224. /package/build/esm/{Onboarding-688a34d8.js → Onboarding-60b973ab.js} +0 -0
  225. /package/build/esm/{Visible-7c0162e9.js → Visible-1533b8ed.js} +0 -0
  226. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-247dcb51.js → WEIGHT_BOYS.percentile.monthly-c91ccb43.js} +0 -0
  227. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-6d320360.js → WEIGHT_BOYS.percentile.weekly-7293aa3a.js} +0 -0
  228. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-6e8021ef.js → WEIGHT_BOYS.percentile.yearly-1d7c6568.js} +0 -0
  229. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c3468cdb.js → WEIGHT_BOYS.zscore.monthly-687883fc.js} +0 -0
  230. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-96324077.js → WEIGHT_BOYS.zscore.weekly-c3115771.js} +0 -0
  231. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-0d91e610.js → WEIGHT_BOYS.zscore.yearly-8faf0718.js} +0 -0
  232. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-20b647b6.js → WEIGHT_GIRLS.percentile.monthly-dedb4f95.js} +0 -0
  233. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-61b55edc.js → WEIGHT_GIRLS.percentile.weekly-7f9807c7.js} +0 -0
  234. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-c552058f.js → WEIGHT_GIRLS.percentile.yearly-e717708c.js} +0 -0
  235. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-599c9436.js → WEIGHT_GIRLS.zscore.monthly-8db1b1bb.js} +0 -0
  236. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c1bffb21.js → WEIGHT_GIRLS.zscore.weekly-c4b4f9ed.js} +0 -0
  237. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-60d0e16d.js → WEIGHT_GIRLS.zscore.yearly-b45a14ae.js} +0 -0
  238. /package/build/esm/{cookieHelper-32b8b652.js → cookieHelper-8b9690d8.js} +0 -0
  239. /package/build/esm/{dataTransform-65580248.js → dataTransform-957b8c89.js} +0 -0
  240. /package/build/esm/{index-3c9c5ccc.js → index-8e3935c7.js} +0 -0
  241. /package/build/esm/{index-62d8d1dd.js → index-c1f28847.js} +0 -0
  242. /package/build/esm/{index-40b5ff81.js → index-ebd09ee7.js} +0 -0
  243. /package/build/esm/{isProduction-14156284.js → isProduction-626d4d27.js} +0 -0
  244. /package/build/esm/{localizeNumberFormat-0cf822c1.js → localizeNumberFormat-571497c7.js} +0 -0
  245. /package/build/esm/{normalizeLink-8eea8ab9.js → normalizeLink-6238bdd0.js} +0 -0
  246. /package/build/esm/{number-f4a07dd3.js → number-b58bf5a8.js} +0 -0
  247. /package/build/esm/{paths-9fd3e8a0.js → paths-78a17490.js} +0 -0
  248. /package/build/esm/{screenSizeContext-906720f4.js → screenSizeContext-87eba55c.js} +0 -0
  249. /package/build/esm/{theme-161e6215.js → theme-b6d5beeb.js} +0 -0
  250. /package/build/esm/{translationsContext-bfd5b108.js → translationsContext-da034e31.js} +0 -0
  251. /package/build/esm/{tslib.es6-867b115e.js → tslib.es6-bbe935c0.js} +0 -0
  252. /package/build/esm/{types-d1335760.js → types-6f6bb758.js} +0 -0
  253. /package/build/esm/{useIsInit-6426eec7.js → useIsInit-7db96951.js} +0 -0
  254. /package/build/esm/{useOutsideClick-9a148e33.js → useOutsideClick-5d5aba8c.js} +0 -0
  255. /package/build/esm/{useScrollbarSize-02cb2c59.js → useScrollbarSize-0c8b5d59.js} +0 -0
  256. /package/build/{index-e54b88fc.js → index-8a0242f2.js} +0 -0
  257. /package/build/{index-2df3aed7.js → index-b3bd462a.js} +0 -0
  258. /package/build/{index-7c32e512.js → index-f4dd167b.js} +0 -0
  259. /package/build/{isProduction-b071692a.js → isProduction-adefbe35.js} +0 -0
  260. /package/build/{localizeNumberFormat-66f87e68.js → localizeNumberFormat-973a2b3a.js} +0 -0
  261. /package/build/{normalizeLink-18478380.js → normalizeLink-07e987d9.js} +0 -0
  262. /package/build/{number-d05ddf4e.js → number-d8428dd7.js} +0 -0
  263. /package/build/{paths-41c9b74a.js → paths-23303810.js} +0 -0
  264. /package/build/{screenSizeContext-7a8dc0d4.js → screenSizeContext-55c9a463.js} +0 -0
  265. /package/build/{theme-daef3205.js → theme-7ef51026.js} +0 -0
  266. /package/build/{translationsContext-c259ebae.js → translationsContext-a0a6eafc.js} +0 -0
  267. /package/build/{tslib.es6-5092a61b.js → tslib.es6-0c7edd68.js} +0 -0
  268. /package/build/{types-31498f6a.js → types-b08986f4.js} +0 -0
  269. /package/build/{useIsInit-367ec106.js → useIsInit-6bc5d3b3.js} +0 -0
  270. /package/build/{useOutsideClick-ea53ea3f.js → useOutsideClick-2e33554b.js} +0 -0
  271. /package/build/{useScrollbarSize-30432757.js → useScrollbarSize-ff475cd6.js} +0 -0
@@ -0,0 +1,121 @@
1
+ "use strict";var e=require("./screenSizeContext-55c9a463.js"),t=require("styled-components"),o=require("react"),s=require("./gAssets.js"),a=require("./index-b7affa54.js"),n=require("./Onboarding-ff130f2f.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=r(t),l=r(o);const i=h.default.div`
2
+ position: relative;
3
+ display: inline-flex;
4
+ align-items: center;
5
+ z-index: 1;
6
+ .main-logo-icon {
7
+ object-fit: contain;
8
+ }
9
+ &[data-logo-is-light] {
10
+ > svg path {
11
+ fill: #fff;
12
+ }
13
+ img {
14
+ filter: brightness(0) invert(1);
15
+ }
16
+ }
17
+
18
+ &[data-has-badge] {
19
+ @supports (display: flex) and (gap: 1em) {
20
+ gap: 0.5rem;
21
+ }
22
+
23
+ @supports not ((display: flex) and (gap: 1em)) {
24
+ > img {
25
+ margin-left: 0.25rem;
26
+ }
27
+ }
28
+ }
29
+
30
+ .common-logo-seasonal-left,
31
+ .common-logo-seasonal-right {
32
+ z-index: -1;
33
+ max-width: unset;
34
+ max-height: unset;
35
+ }
36
+ .common-logo-seasonal-left {
37
+ position: absolute;
38
+ top: 50%;
39
+ left: 0;
40
+ transform: translateY(-50%);
41
+ }
42
+ .common-logo-seasonal-right {
43
+ position: absolute;
44
+ top: 50%;
45
+ right: 0;
46
+ transform: translateY(-50%);
47
+ }
48
+ &[data-seasonal='christmas'] {
49
+ padding-left: 37px;
50
+ padding-right: 22px;
51
+ .common-logo-seasonal-left {
52
+ width: 125px;
53
+ height: 56px;
54
+ }
55
+ .common-logo-seasonal-right {
56
+ width: 23px;
57
+ height: 17px;
58
+ }
59
+ }
60
+ &[data-seasonal='new-year'] {
61
+ padding-right: 85px;
62
+ .common-logo-seasonal-left {
63
+ top: 35%;
64
+ width: 100px;
65
+ height: 56px;
66
+ }
67
+ .common-logo-seasonal-right {
68
+ width: 85px;
69
+ height: 54px;
70
+ }
71
+ ${e.MediaQueries.mbDown} {
72
+ padding-right: 0;
73
+ .common-logo-seasonal-right {
74
+ display: none;
75
+ }
76
+ }
77
+ }
78
+ &[data-seasonal='lunar-new-year'] {
79
+ padding-left: 30px;
80
+ padding-right: 35px;
81
+ .common-logo-seasonal-left {
82
+ width: 33px;
83
+ height: 41px;
84
+ }
85
+ .common-logo-seasonal-right {
86
+ width: 37px;
87
+ height: 54px;
88
+ }
89
+ }
90
+ &[data-seasonal='ramadan'] {
91
+ &[data-type='hellosehat'] {
92
+ padding-right: 35px;
93
+ .common-logo-seasonal-left {
94
+ width: 165px;
95
+ height: unset;
96
+ left: 6px;
97
+ }
98
+ .common-logo-seasonal-right {
99
+ width: 33px;
100
+ height: unset;
101
+ }
102
+ }
103
+ &[data-type='hellodoktor'] {
104
+ padding-right: 66px;
105
+ .common-logo-seasonal-left {
106
+ width: 133px;
107
+ height: unset;
108
+ left: 6px;
109
+ }
110
+ .common-logo-seasonal-right {
111
+ width: 63px;
112
+ height: unset;
113
+ }
114
+ }
115
+ }
116
+ `,g=h.default.img`
117
+ height: 16px;
118
+ width: unset;
119
+ margin-bottom: 4px;
120
+ margin-left: -3px;
121
+ `,p=o.memo((({type:e,width:t,height:n})=>{const r=o.useMemo((()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:t||"127px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:n||"27px",src:s.CommonGAssets.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:t||"123px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:n||"57px",src:s.CommonGAssets.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:n||"28px",src:s.CommonGAssets.getAssetPath("logo/marrybaby.png")};default:return null}}),[e,t,n]),{src:h,width:i,height:g}=r||{};return l.default.createElement(a.ImageWrap,{alt:`${e} logo`,className:"main-logo-icon",src:h,style:{width:i,height:g}})})),m={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},d=[n.LOCALE.Vietnam,n.LOCALE.Taiwan,n.LOCALE.Indonesia,n.LOCALE.Malaysia],c=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}];exports.LogoIcon=p,exports.LunarNewYearLocale=d,exports.StyledLogo=i,exports.StyledProLogo=g,exports.isChristmas=e=>{const t=e.getDate();return 11===e.getMonth()&&t>=16&&t<=25},exports.isLunarNewYear=e=>{const t=e.getFullYear(),o=m[t];if(!o)return!1;const s=new Date(t,o[1],o[0]),a=new Date(s);a.setDate(s.getDate()-7);const n=new Date(s);return n.setDate(s.getDate()+5),a<=e&&e<=n},exports.isNewYear=e=>{const t=e.getDate(),o=e.getMonth();return 11===o&&t>=26||0===o&&t<=15},exports.isRamadan=e=>{const t=e.getFullYear(),o=c.filter((e=>e.year===t));return!!o.length&&o.some((o=>{const s=o.start[2]||t,a=new Date(s,o.start[1],o.start[0]),n=new Date(s,o.end[1],o.end[0]);return a<=e&&e<=n}))};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-5092a61b.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-98b078fa.js");require("@mantine/dates"),require("./index-a7c4c692.js");var n=require("./Onboarding-e1062254.js");require("./gAssets.js");var r=require("./index-8721656a.js"),i=require("dayjs"),o=require("./screenSizeContext-7a8dc0d4.js"),c=require("styled-components"),s=require("./theme-daef3205.js");require("./isProduction-b071692a.js");var d=require("./useTranslations-67bf1251.js"),u=require("@mantine/hooks");require("lodash/debounce"),require("./useCategory-65d27674.js");var m=require("./index-2df3aed7.js");require("./translationsContext-c259ebae.js"),require("string-format");var f=require("./index.styles-724ad6e1.js");require("./constants-40c2c222.js"),require("./utils-78c73f4f.js"),require("./index.styled-5228c870.js"),require("./index-7c32e512.js");var C=require("./index-94e8dc6c.js"),p=require("@mantine/form"),g=require("dayjs/plugin/customParseFormat"),h=require("./index-1a8164f5.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("@mantine/carousel"),require("classnames"),require("date-fns/locale"),require("lodash/throttle"),require("react-keyed-flatten-children"),require("./cookieHelper-453db8f7.js"),require("slugify");var E=b(t),x=b(i),y=b(c),v=b(g);const w=y.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-0c7edd68.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-b7affa54.js");require("@mantine/dates"),require("./index-bdb79e3b.js");var n=require("./Onboarding-ff130f2f.js");require("./gAssets.js");var r=require("./index-39c9d37e.js"),i=require("dayjs"),o=require("./screenSizeContext-55c9a463.js"),c=require("styled-components"),s=require("./theme-7ef51026.js");require("./isProduction-adefbe35.js");var d=require("./useTranslations-a3b7e842.js"),u=require("@mantine/hooks");require("lodash/debounce"),require("./useCategory-ea4742a3.js");var m=require("./index-b3bd462a.js");require("./translationsContext-a0a6eafc.js"),require("string-format");var f=require("./index.styles-67ed9ca9.js");require("./constants-450d7201.js"),require("./utils-9e14145a.js"),require("./index.styled-6d9a6437.js"),require("./index-f4dd167b.js");var C=require("./index-f934085b.js"),p=require("@mantine/form"),g=require("dayjs/plugin/customParseFormat"),h=require("./index-862d608a.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("@mantine/carousel"),require("classnames"),require("date-fns/locale"),require("lodash/throttle"),require("react-keyed-flatten-children"),require("./cookieHelper-d7c085a7.js"),require("slugify");var E=b(t),x=b(i),y=b(c),v=b(g);const w=y.default.div`
2
2
  position: relative;
3
3
  padding: 16px;
4
4
  min-height: 110px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hhgtech/hhg-components",
3
- "version": "1.28.2",
3
+ "version": "1.28.4",
4
4
  "main": "build/index.js",
5
5
  "module": "build/esm/index.js",
6
6
  "files": [
@@ -1 +0,0 @@
1
- "use strict";var t=require("./tslib.es6-5092a61b.js"),e=require("./isProduction-b071692a.js");const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},r=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}};exports.getCachedItem=i,exports.getDataWithCache=(e,a,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(a){const t=yield a();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
@@ -1 +0,0 @@
1
- import{a as t}from"./tslib.es6-867b115e.js";import{g as o}from"./core-58943a8e.js";import{n as i}from"./normalizeLink-8eea8ab9.js";import{c as l}from"./routing-daa55ca5.js";const e=(t,o)=>{var i,l;if(!t)return{};const e="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:`${e}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${e}/`,"/")),subtitle:t.subtitle,title:t.title}},n=o=>t(void 0,void 0,void 0,(function*(){var t,n;try{const a="tl-PH"===o?"lang=fil":"";let s=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));s=(null===(n=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>e(t,o))))||[]}catch(t){}return s}catch(t){console.error(t)}})),a=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>n(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{a,e as f,n as g};
@@ -1 +0,0 @@
1
- import e,{useMemo as a}from"react";import{CommonGAssets as t}from"./gAssets.js";import{i as s,a as l,b as o,c as r,S as n,L as g,d as m}from"./utils-003a6099.js";import{I as i}from"./index-91baa4e0.js";const c=({type:c,className:h,style:u,isLightLogo:w,customSize:d,badge:N,locale:f,dateForSeasonal:y,isPro:p})=>{const E=a((()=>{if(!y||isNaN(new Date(y).getTime()))return{isChristmas:!1,isLunarNewYear:!1,isNewYear:!1};const e=new Date(y),a=s(e),t=l.includes(f)&&o(e);return{isChristmas:a,isLunarNewYear:t,isNewYear:!t&&r(e)}}),[f,new Date(y).getDate()]);return e.createElement(n,{className:h,style:u,"data-logo-is-light":w||void 0,"data-has-badge":!!N,"data-christmas":E.isChristmas,"data-new-year":E.isNewYear,"data-lunar-new-year":E.isLunarNewYear},E.isChristmas?e.createElement(e.Fragment,null,e.createElement(i,{alt:"left xmas logo",src:t.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),e.createElement(i,{alt:"right xmas logo",src:t.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):E.isNewYear?e.createElement(e.Fragment,null,e.createElement(i,{alt:"left new year logo",src:t.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),e.createElement(i,{alt:"right new year logo",src:t.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):E.isLunarNewYear?e.createElement(e.Fragment,null,e.createElement(i,{alt:"left lunar new year logo",loading:"lazy",src:t.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),e.createElement(i,{alt:"right lunar new year logo",loading:"lazy",src:t.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):null,e.createElement(g,{type:c,width:null==d?void 0:d.width,height:null==d?void 0:d.height}),p?e.createElement(m,{src:t.getAssetPath("logo/pro-suffix.svg")}):null,N)};export{c as L};
@@ -1 +0,0 @@
1
- import{_ as o}from"./tslib.es6-867b115e.js";import t from"react";import{Indicator as s}from"@mantine/core";import"dayjs";import"./screenSizeContext-906720f4.js";import"styled-components";import{t as e}from"./theme-161e6215.js";import"./index-41b1836f.js";import"./isProduction-14156284.js";import"./Onboarding-688a34d8.js";import"./gAssets.js";const r=r=>{var{styles:i,color:n=e.colors.red700}=r,m=o(r,["styles","color"]);return t.createElement(s,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:n},m))};export{r as I};
@@ -1 +0,0 @@
1
- import{_ as t}from"./tslib.es6-867b115e.js";import e from"react";import"./index-91baa4e0.js";import"@mantine/core";import"@mantine/dates";import"./index-41b1836f.js";import"./Onboarding-688a34d8.js";import"./gAssets.js";import{T as i}from"./index-bf7ba39e.js";import"dayjs";import"./screenSizeContext-906720f4.js";import"styled-components";import"./theme-161e6215.js";import"./isProduction-14156284.js";import"./translationsContext-bfd5b108.js";import"string-format";import"@mantine/hooks";const o=o=>{var{size:r="base",type:s="regular"}=o,m=t(o,["size","type"]);return e.createElement(i,Object.assign({size:r,weight:"caption"===s?"bold":s},m))};export{o as T};
@@ -1 +0,0 @@
1
- import{_ as e}from"./tslib.es6-867b115e.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as a}from"@mantine/hooks";import{B as i}from"./index-8bdf2cf6.js";import{D as r,h as s,i as l}from"./index-91baa4e0.js";const m=m=>{var{color:c,withControl:h,onChange:d,value:u,min:p,max:g,isStatic:k,containerClassName:b,containerStyle:f}=m,v=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[x,C]=o(u||p||0),[E]=a(x,r);return n((()=>{null==d||d(E)}),[E]),n((()=>{C(u)}),[u]),t.createElement(s,{className:b,style:f},h&&t.createElement(i,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>p&&e===p?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:x,onChange:k?()=>null:C,min:p,max:g},v,{className:"hhg-mantine-slider "+(v.className||"")})),h&&t.createElement(i,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>g&&e===g?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
@@ -1,95 +0,0 @@
1
- import{M as t}from"./screenSizeContext-906720f4.js";import e from"styled-components";import o,{memo as a,useMemo as s}from"react";import{CommonGAssets as h}from"./gAssets.js";import{I as l}from"./index-91baa4e0.js";import{L as r}from"./Onboarding-688a34d8.js";const n=e.div`
2
- position: relative;
3
- display: inline-flex;
4
- align-items: center;
5
- z-index: 1;
6
- .main-logo-icon {
7
- object-fit: contain;
8
- }
9
- &[data-logo-is-light] {
10
- > svg path {
11
- fill: #fff;
12
- }
13
- img {
14
- filter: brightness(0) invert(1);
15
- }
16
- }
17
-
18
- &[data-has-badge] {
19
- @supports (display: flex) and (gap: 1em) {
20
- gap: 0.5rem;
21
- }
22
-
23
- @supports not ((display: flex) and (gap: 1em)) {
24
- > img {
25
- margin-left: 0.25rem;
26
- }
27
- }
28
- }
29
-
30
- .common-logo-seasonal-left,
31
- .common-logo-seasonal-right {
32
- z-index: -1;
33
- max-width: unset;
34
- max-height: unset;
35
- }
36
- .common-logo-seasonal-left {
37
- position: absolute;
38
- top: 50%;
39
- left: 0;
40
- transform: translateY(-50%);
41
- }
42
- .common-logo-seasonal-right {
43
- position: absolute;
44
- top: 50%;
45
- right: 0;
46
- transform: translateY(-50%);
47
- }
48
- &[data-christmas='true'] {
49
- padding-left: 37px;
50
- padding-right: 22px;
51
- .common-logo-seasonal-left {
52
- width: 125px;
53
- height: 56px;
54
- }
55
- .common-logo-seasonal-right {
56
- width: 23px;
57
- height: 17px;
58
- }
59
- }
60
- &[data-new-year='true'] {
61
- padding-right: 85px;
62
- .common-logo-seasonal-left {
63
- top: 35%;
64
- width: 100px;
65
- height: 56px;
66
- }
67
- .common-logo-seasonal-right {
68
- width: 85px;
69
- height: 54px;
70
- }
71
- ${t.mbDown} {
72
- padding-right: 0;
73
- .common-logo-seasonal-right {
74
- display: none;
75
- }
76
- }
77
- }
78
- &[data-lunar-new-year='true'] {
79
- padding-left: 30px;
80
- padding-right: 35px;
81
- .common-logo-seasonal-left {
82
- width: 33px;
83
- height: 41px;
84
- }
85
- .common-logo-seasonal-right {
86
- width: 37px;
87
- height: 54px;
88
- }
89
- }
90
- `,g=e.img`
91
- height: 16px;
92
- width: unset;
93
- margin-bottom: 4px;
94
- margin-left: -3px;
95
- `,i=a((({type:t,width:e,height:a})=>{const r=s((()=>{switch(t){case"hellobacsi":return{width:e||"107px",height:a||"24px",src:h.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:e||"127px",height:a||"24px",src:h.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:e||"121px",height:a||"27px",src:h.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:e||"123px",height:a||"24px",src:h.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:e||"150px",height:a||"24px",src:h.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:e||"99px",height:a||"24px",src:h.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:e||"127px",height:a||"24px",src:h.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:e||"101px",height:a||"24px",src:h.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:e||"111px",height:a||"24px",src:h.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:e||"89px",height:a||"24px",src:h.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:e||"123px",height:a||"24px",src:h.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:e||"105px",height:a||"24px",src:h.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:e||"60px",height:a||"57px",src:h.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:e||"145px",height:a||"28px",src:h.getAssetPath("logo/marrybaby.png")};default:return null}}),[t,e,a]),{src:n,width:g,height:i}=r||{};return o.createElement(l,{alt:`${t} logo`,className:"main-logo-icon",src:n,style:{width:g,height:i}})})),p=t=>{const e=t.getDate();return 11===t.getMonth()&&e>=16&&e<=25},c={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},m=[r.Vietnam,r.Taiwan,r.Indonesia,r.Malaysia],d=t=>{const e=t.getFullYear(),o=c[e];if(!o)return!1;const a=new Date(e,o[1],o[0]),s=new Date(a);s.setDate(a.getDate()-7);const h=new Date(a);return h.setDate(a.getDate()+5),s<=t&&t<=h},x=t=>{const e=t.getDate(),o=t.getMonth();return 11===o&&e>=26||0===o&&e<=15};export{i as L,n as S,m as a,d as b,x as c,g as d,p as i};
@@ -1 +0,0 @@
1
- "use strict";var t=require("./tslib.es6-5092a61b.js"),i=require("./core-06ed0932.js"),e=require("./normalizeLink-18478380.js"),l=require("./routing-80fbf8cf.js");const o=(t,i)=>{var e,l;if(!t)return{};const o="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:`${o}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${o}/`,"/")),subtitle:t.subtitle,title:t.title}},n=i=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{const a="tl-PH"===i?"lang=fil":"";let r=[];try{const s=yield fetch(e.normalizeLinkSlash(`${l.getDiscoverApiDomain(i)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));r=(null===(n=null===(t=null==s?void 0:s.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>o(t,i))))||[]}catch(t){}return r}catch(t){console.error(t)}}));exports.formatHealthTool=o,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=e=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield i.getDataWithCache("all-health-tools",(()=>n(e||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
@@ -1 +0,0 @@
1
- "use strict";var e=require("./tslib.es6-5092a61b.js"),t=require("react"),r=require("@mantine/core"),a=require("@mantine/dates"),i=require("./index-a7c4c692.js"),s=require("./Onboarding-e1062254.js"),n=require("./gAssets.js"),l=require("./index-98b078fa.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(t);exports.DatePicker=t=>{var o,{value:c,fullWidth:d=!0}=t,v=e.__rest(t,["value","fullWidth"]);return u.default.createElement(a.DatePickerInput,Object.assign({locale:l.MAPPED_LOCALE[process.env.UNIFY_LOCALE||s.LOCALE.Vietnam],valueFormat:null===(o=i.ISO_FORMAT[process.env.UNIFY_LOCALE||s.LOCALE.Vietnam])||void 0===o?void 0:o.dateFormat,size:"md",clearable:!1,popoverProps:d?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:u.default.createElement(r.Image,{src:n.CommonGAssets.getAssetPath(v.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:c},v,{className:`input-control ${(null==v?void 0:v.className)||""}`}))};
@@ -1 +0,0 @@
1
- "use strict";var e=require("react"),a=require("./gAssets.js"),t=require("./utils-78c73f4f.js"),s=require("./index-98b078fa.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e);exports.Logo=({type:l,className:r,style:n,isLightLogo:g,customSize:m,badge:i,locale:u,dateForSeasonal:c,isPro:d})=>{const f=e.useMemo((()=>{if(!c||isNaN(new Date(c).getTime()))return{isChristmas:!1,isLunarNewYear:!1,isNewYear:!1};const e=new Date(c),a=t.isChristmas(e),s=t.LunarNewYearLocale.includes(u)&&t.isLunarNewYear(e);return{isChristmas:a,isLunarNewYear:s,isNewYear:!s&&t.isNewYear(e)}}),[u,new Date(c).getDate()]);return o.default.createElement(t.StyledLogo,{className:r,style:n,"data-logo-is-light":g||void 0,"data-has-badge":!!i,"data-christmas":f.isChristmas,"data-new-year":f.isNewYear,"data-lunar-new-year":f.isLunarNewYear},f.isChristmas?o.default.createElement(o.default.Fragment,null,o.default.createElement(s.ImageWrap,{alt:"left xmas logo",src:a.CommonGAssets.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),o.default.createElement(s.ImageWrap,{alt:"right xmas logo",src:a.CommonGAssets.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):f.isNewYear?o.default.createElement(o.default.Fragment,null,o.default.createElement(s.ImageWrap,{alt:"left new year logo",src:a.CommonGAssets.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),o.default.createElement(s.ImageWrap,{alt:"right new year logo",src:a.CommonGAssets.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):f.isLunarNewYear?o.default.createElement(o.default.Fragment,null,o.default.createElement(s.ImageWrap,{alt:"left lunar new year logo",loading:"lazy",src:a.CommonGAssets.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),o.default.createElement(s.ImageWrap,{alt:"right lunar new year logo",loading:"lazy",src:a.CommonGAssets.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):null,o.default.createElement(t.LogoIcon,{type:l,width:null==m?void 0:m.width,height:null==m?void 0:m.height}),d?o.default.createElement(t.StyledProLogo,{src:a.CommonGAssets.getAssetPath("logo/pro-suffix.svg")}):null,i)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./tslib.es6-5092a61b.js"),r=require("react"),t=require("@mantine/core");require("dayjs"),require("./screenSizeContext-7a8dc0d4.js"),require("styled-components");var s=require("./theme-daef3205.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./index-a7c4c692.js"),require("./isProduction-b071692a.js"),require("./Onboarding-e1062254.js"),require("./gAssets.js");var n=i(r);exports.Indicator=r=>{var{styles:i,color:o=s.theme.colors.red700}=r,a=e.__rest(r,["styles","color"]);return n.default.createElement(t.Indicator,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:o},a))};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./tslib.es6-5092a61b.js"),r=require("react");require("./index-98b078fa.js"),require("@mantine/core"),require("@mantine/dates"),require("./index-a7c4c692.js"),require("./Onboarding-e1062254.js"),require("./gAssets.js");var t=require("./index-8721656a.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("dayjs"),require("./screenSizeContext-7a8dc0d4.js"),require("styled-components"),require("./theme-daef3205.js"),require("./isProduction-b071692a.js"),require("./translationsContext-c259ebae.js"),require("string-format"),require("@mantine/hooks");var s=i(r);exports.Text=r=>{var{size:i="base",type:a="regular"}=r,n=e.__rest(r,["size","type"]);return s.default.createElement(t.Text,Object.assign({size:i,weight:"caption"===a?"bold":a},n))};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./tslib.es6-5092a61b.js"),t=require("react"),a=require("./getDynamicHealthTool-0f1dad96.js");exports.useHealthToolsCache=o=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield a.getDynamicHealthToolWithCache(o);l(e)}))}),[a.getDynamicHealthToolWithCache,o]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
@@ -1,95 +0,0 @@
1
- "use strict";var e=require("./screenSizeContext-7a8dc0d4.js"),t=require("styled-components"),o=require("react"),s=require("./gAssets.js"),a=require("./index-98b078fa.js"),r=require("./Onboarding-e1062254.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=n(t),l=n(o);const i=h.default.div`
2
- position: relative;
3
- display: inline-flex;
4
- align-items: center;
5
- z-index: 1;
6
- .main-logo-icon {
7
- object-fit: contain;
8
- }
9
- &[data-logo-is-light] {
10
- > svg path {
11
- fill: #fff;
12
- }
13
- img {
14
- filter: brightness(0) invert(1);
15
- }
16
- }
17
-
18
- &[data-has-badge] {
19
- @supports (display: flex) and (gap: 1em) {
20
- gap: 0.5rem;
21
- }
22
-
23
- @supports not ((display: flex) and (gap: 1em)) {
24
- > img {
25
- margin-left: 0.25rem;
26
- }
27
- }
28
- }
29
-
30
- .common-logo-seasonal-left,
31
- .common-logo-seasonal-right {
32
- z-index: -1;
33
- max-width: unset;
34
- max-height: unset;
35
- }
36
- .common-logo-seasonal-left {
37
- position: absolute;
38
- top: 50%;
39
- left: 0;
40
- transform: translateY(-50%);
41
- }
42
- .common-logo-seasonal-right {
43
- position: absolute;
44
- top: 50%;
45
- right: 0;
46
- transform: translateY(-50%);
47
- }
48
- &[data-christmas='true'] {
49
- padding-left: 37px;
50
- padding-right: 22px;
51
- .common-logo-seasonal-left {
52
- width: 125px;
53
- height: 56px;
54
- }
55
- .common-logo-seasonal-right {
56
- width: 23px;
57
- height: 17px;
58
- }
59
- }
60
- &[data-new-year='true'] {
61
- padding-right: 85px;
62
- .common-logo-seasonal-left {
63
- top: 35%;
64
- width: 100px;
65
- height: 56px;
66
- }
67
- .common-logo-seasonal-right {
68
- width: 85px;
69
- height: 54px;
70
- }
71
- ${e.MediaQueries.mbDown} {
72
- padding-right: 0;
73
- .common-logo-seasonal-right {
74
- display: none;
75
- }
76
- }
77
- }
78
- &[data-lunar-new-year='true'] {
79
- padding-left: 30px;
80
- padding-right: 35px;
81
- .common-logo-seasonal-left {
82
- width: 33px;
83
- height: 41px;
84
- }
85
- .common-logo-seasonal-right {
86
- width: 37px;
87
- height: 54px;
88
- }
89
- }
90
- `,g=h.default.img`
91
- height: 16px;
92
- width: unset;
93
- margin-bottom: 4px;
94
- margin-left: -3px;
95
- `,p=o.memo((({type:e,width:t,height:r})=>{const n=o.useMemo((()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:t||"127px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:r||"27px",src:s.CommonGAssets.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:t||"123px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:r||"24px",src:s.CommonGAssets.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:r||"57px",src:s.CommonGAssets.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:r||"28px",src:s.CommonGAssets.getAssetPath("logo/marrybaby.png")};default:return null}}),[e,t,r]),{src:h,width:i,height:g}=n||{};return l.default.createElement(a.ImageWrap,{alt:`${e} logo`,className:"main-logo-icon",src:h,style:{width:i,height:g}})})),m={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},c=[r.LOCALE.Vietnam,r.LOCALE.Taiwan,r.LOCALE.Indonesia,r.LOCALE.Malaysia];exports.LogoIcon=p,exports.LunarNewYearLocale=c,exports.StyledLogo=i,exports.StyledProLogo=g,exports.isChristmas=e=>{const t=e.getDate();return 11===e.getMonth()&&t>=16&&t<=25},exports.isLunarNewYear=e=>{const t=e.getFullYear(),o=m[t];if(!o)return!1;const s=new Date(t,o[1],o[0]),a=new Date(s);a.setDate(s.getDate()-7);const r=new Date(s);return r.setDate(s.getDate()+5),a<=e&&e<=r},exports.isNewYear=e=>{const t=e.getDate(),o=e.getMonth();return 11===o&&t>=26||0===o&&t<=15};