@hhgtech/hhg-components 1.28.67 → 1.28.69

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 (521) hide show
  1. package/build/BMI_BOYS.percentile.monthly-48c9471d.js +688 -0
  2. package/build/BMI_BOYS.percentile.weekly-4965852e.js +182 -0
  3. package/build/BMI_BOYS.percentile.yearly-0f7cc8f4.js +83 -0
  4. package/build/BMI_BOYS.zscore.monthly-5bb8a433.js +440 -0
  5. package/build/BMI_BOYS.zscore.weekly-3d56f80f.js +118 -0
  6. package/build/BMI_BOYS.zscore.yearly-57081f24.js +55 -0
  7. package/build/BMI_GIRLS.percentile.monthly-95859cd9.js +688 -0
  8. package/build/BMI_GIRLS.percentile.weekly-009cf4df.js +182 -0
  9. package/build/BMI_GIRLS.percentile.yearly-4436947b.js +83 -0
  10. package/build/BMI_GIRLS.zscore.monthly-689b4eee.js +440 -0
  11. package/build/BMI_GIRLS.zscore.weekly-dff693df.js +118 -0
  12. package/build/BMI_GIRLS.zscore.yearly-05ef5f4f.js +55 -0
  13. package/build/ChevronDown-275f1ab5.js +29 -0
  14. package/build/HEAD CIRCUM_BOYS.percentile.monthly-55c580a7.js +688 -0
  15. package/build/HEAD CIRCUM_BOYS.percentile.weekly-e30f4a42.js +182 -0
  16. package/build/HEAD CIRCUM_BOYS.percentile.yearly-2378a5f0.js +83 -0
  17. package/build/HEAD CIRCUM_BOYS.zscore.monthly-102d5559.js +440 -0
  18. package/build/HEAD CIRCUM_BOYS.zscore.weekly-7b0f1ba8.js +118 -0
  19. package/build/HEAD CIRCUM_BOYS.zscore.yearly-e9237d31.js +55 -0
  20. package/build/HEAD CIRCUM_GIRLS.percentile.monthly-1ddda8b3.js +688 -0
  21. package/build/HEAD CIRCUM_GIRLS.percentile.weekly-843147ea.js +182 -0
  22. package/build/HEAD CIRCUM_GIRLS.percentile.yearly-9b51c237.js +83 -0
  23. package/build/HEAD CIRCUM_GIRLS.zscore.monthly-3f1b233c.js +440 -0
  24. package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9e14d3fe.js +118 -0
  25. package/build/HEAD CIRCUM_GIRLS.zscore.yearly-d924f5ae.js +55 -0
  26. package/build/HEIGHT_BOYS.percentile.monthly-15538920.js +688 -0
  27. package/build/HEIGHT_BOYS.percentile.weekly-10bd0277.js +182 -0
  28. package/build/HEIGHT_BOYS.percentile.yearly-8e678d38.js +237 -0
  29. package/build/HEIGHT_BOYS.zscore.monthly-2c110da9.js +440 -0
  30. package/build/HEIGHT_BOYS.zscore.weekly-288b7733.js +118 -0
  31. package/build/HEIGHT_BOYS.zscore.yearly-42f6f9f7.js +153 -0
  32. package/build/HEIGHT_GIRLS.percentile.monthly-04abe7d2.js +688 -0
  33. package/build/HEIGHT_GIRLS.percentile.weekly-9653b16c.js +182 -0
  34. package/build/HEIGHT_GIRLS.percentile.yearly-9efacd67.js +237 -0
  35. package/build/HEIGHT_GIRLS.zscore.monthly-c64a97b2.js +440 -0
  36. package/build/HEIGHT_GIRLS.zscore.weekly-3302dd83.js +118 -0
  37. package/build/HEIGHT_GIRLS.zscore.yearly-ebe5114f.js +153 -0
  38. package/build/Subot-5fc40fb5.js +217 -0
  39. package/build/Visible-5c5d57cf.js +29 -0
  40. package/build/WEIGHT_BOYS.percentile.monthly-5e11e7a0.js +688 -0
  41. package/build/WEIGHT_BOYS.percentile.weekly-68ae2578.js +182 -0
  42. package/build/WEIGHT_BOYS.percentile.yearly-030c06a4.js +138 -0
  43. package/build/WEIGHT_BOYS.zscore.monthly-d22c7b57.js +440 -0
  44. package/build/WEIGHT_BOYS.zscore.weekly-d8d901e6.js +118 -0
  45. package/build/WEIGHT_BOYS.zscore.yearly-c311a084.js +90 -0
  46. package/build/WEIGHT_GIRLS.percentile.monthly-5c44f8eb.js +688 -0
  47. package/build/WEIGHT_GIRLS.percentile.weekly-faa98671.js +182 -0
  48. package/build/WEIGHT_GIRLS.percentile.yearly-560b862e.js +138 -0
  49. package/build/WEIGHT_GIRLS.zscore.monthly-5365ba1a.js +440 -0
  50. package/build/WEIGHT_GIRLS.zscore.weekly-0d9dc521.js +118 -0
  51. package/build/WEIGHT_GIRLS.zscore.yearly-5a3c4e43.js +90 -0
  52. package/build/adapters.js +36 -1
  53. package/build/{esm/animation-0340efb3.js → animation-eb4e500b.js} +32 -10
  54. package/build/babyGrowth.js +913 -47
  55. package/build/cache.js +13 -1
  56. package/build/care.js +38 -1
  57. package/build/components/navigationV2/hooks/useNavConfig.d.ts +1 -3
  58. package/build/components.js +186 -1
  59. package/build/constants-8b8bc19f.js +255 -0
  60. package/build/constants-ae18ce18.js +935 -0
  61. package/build/constants.js +43 -1
  62. package/build/cookieHelper-5c9f4bb8.js +43 -0
  63. package/build/core-2aa8d86c.js +51 -0
  64. package/build/dataTransform-089f414c.js +66 -0
  65. package/build/ecom.js +745 -1
  66. package/build/esm/BMI_BOYS.percentile.monthly-de5dce68.js +686 -0
  67. package/build/esm/BMI_BOYS.percentile.weekly-9d3990b6.js +180 -0
  68. package/build/esm/BMI_BOYS.percentile.yearly-98b9114a.js +81 -0
  69. package/build/esm/BMI_BOYS.zscore.monthly-394646f0.js +438 -0
  70. package/build/esm/BMI_BOYS.zscore.weekly-c669ea51.js +116 -0
  71. package/build/esm/BMI_BOYS.zscore.yearly-771ef6b6.js +53 -0
  72. package/build/esm/BMI_GIRLS.percentile.monthly-1ff3d499.js +686 -0
  73. package/build/esm/BMI_GIRLS.percentile.weekly-211d2f27.js +180 -0
  74. package/build/esm/BMI_GIRLS.percentile.yearly-206fdcff.js +81 -0
  75. package/build/esm/BMI_GIRLS.zscore.monthly-b1137e36.js +438 -0
  76. package/build/esm/BMI_GIRLS.zscore.weekly-63ed3cd6.js +116 -0
  77. package/build/esm/BMI_GIRLS.zscore.yearly-221d187c.js +53 -0
  78. package/build/esm/ChevronDown-9a8ece61.js +7 -0
  79. package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-4c37847c.js +686 -0
  80. package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-8f6ea38a.js +180 -0
  81. package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-6c12a99a.js +81 -0
  82. package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-c531b497.js +438 -0
  83. package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-6cafba00.js +116 -0
  84. package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-fe8114a0.js +53 -0
  85. package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-25ce0d36.js +686 -0
  86. package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-5d3f2862.js +180 -0
  87. package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-2b709ca5.js +81 -0
  88. package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-e8617bae.js +438 -0
  89. package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-f3252d67.js +116 -0
  90. package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-5b62d41f.js +53 -0
  91. package/build/esm/HEIGHT_BOYS.percentile.monthly-63d2cf96.js +686 -0
  92. package/build/esm/HEIGHT_BOYS.percentile.weekly-8ea5102d.js +180 -0
  93. package/build/esm/HEIGHT_BOYS.percentile.yearly-8107b77b.js +235 -0
  94. package/build/esm/HEIGHT_BOYS.zscore.monthly-641cdfa3.js +438 -0
  95. package/build/esm/HEIGHT_BOYS.zscore.weekly-86da0362.js +116 -0
  96. package/build/esm/HEIGHT_BOYS.zscore.yearly-060f6e79.js +151 -0
  97. package/build/esm/HEIGHT_GIRLS.percentile.monthly-fb987d37.js +686 -0
  98. package/build/esm/HEIGHT_GIRLS.percentile.weekly-82655dc0.js +180 -0
  99. package/build/esm/HEIGHT_GIRLS.percentile.yearly-a63b8456.js +235 -0
  100. package/build/esm/HEIGHT_GIRLS.zscore.monthly-77d676a3.js +438 -0
  101. package/build/esm/HEIGHT_GIRLS.zscore.weekly-c0387a4e.js +116 -0
  102. package/build/esm/HEIGHT_GIRLS.zscore.yearly-41203c20.js +151 -0
  103. package/build/esm/Subot-3289bd8e.js +212 -0
  104. package/build/esm/Visible-a3d436dd.js +7 -0
  105. package/build/esm/WEIGHT_BOYS.percentile.monthly-50802d8b.js +686 -0
  106. package/build/esm/WEIGHT_BOYS.percentile.weekly-4d72ddd6.js +180 -0
  107. package/build/esm/WEIGHT_BOYS.percentile.yearly-20a29844.js +136 -0
  108. package/build/esm/WEIGHT_BOYS.zscore.monthly-729e6614.js +438 -0
  109. package/build/esm/WEIGHT_BOYS.zscore.weekly-90352f48.js +116 -0
  110. package/build/esm/WEIGHT_BOYS.zscore.yearly-fe1871cc.js +88 -0
  111. package/build/esm/WEIGHT_GIRLS.percentile.monthly-e6afb2e0.js +686 -0
  112. package/build/esm/WEIGHT_GIRLS.percentile.weekly-b66d3016.js +180 -0
  113. package/build/esm/WEIGHT_GIRLS.percentile.yearly-a55622c5.js +136 -0
  114. package/build/esm/WEIGHT_GIRLS.zscore.monthly-2cdcbe75.js +438 -0
  115. package/build/esm/WEIGHT_GIRLS.zscore.weekly-d5be31d5.js +116 -0
  116. package/build/esm/WEIGHT_GIRLS.zscore.yearly-99e8d3a7.js +88 -0
  117. package/build/esm/adapters.js +26 -1
  118. package/build/{animation-d5d9ef32.js → esm/animation-3d5edc39.js} +22 -10
  119. package/build/esm/babyGrowth.js +883 -47
  120. package/build/esm/cache.js +3 -1
  121. package/build/esm/care.js +26 -1
  122. package/build/esm/components/navigationV2/hooks/useNavConfig.d.ts +1 -3
  123. package/build/esm/components.js +88 -1
  124. package/build/esm/constants-2a6d2434.js +932 -0
  125. package/build/esm/constants-b77ffe3d.js +238 -0
  126. package/build/esm/constants.js +4 -1
  127. package/build/esm/cookieHelper-d314282c.js +39 -0
  128. package/build/esm/core-8c73d133.js +47 -0
  129. package/build/esm/dataTransform-8ecfc046.js +56 -0
  130. package/build/esm/ecom.js +737 -1
  131. package/build/esm/footer.js +31 -1
  132. package/build/esm/gAssets.js +5 -1
  133. package/build/esm/getDynamicHealthTool-f4497aa5.js +44 -0
  134. package/build/esm/getSocialList-a5b8462e.js +66 -0
  135. package/build/esm/hooks.js +21 -1
  136. package/build/esm/i18n-values/en-PH.js +600 -1
  137. package/build/esm/i18n-values/hi-IN.js +600 -1
  138. package/build/esm/i18n-values/id-ID.js +600 -1
  139. package/build/esm/i18n-values/km-KH.js +600 -1
  140. package/build/esm/i18n-values/ms-MY.js +602 -1
  141. package/build/esm/i18n-values/my-MM.js +600 -1
  142. package/build/esm/i18n-values/th-TH.js +600 -1
  143. package/build/esm/i18n-values/tl-PH.js +600 -1
  144. package/build/esm/i18n-values/vi-VN.js +607 -1
  145. package/build/esm/i18n-values/vi-VN_MB.js +607 -1
  146. package/build/esm/i18n-values/zh-TW.js +600 -1
  147. package/build/esm/i18n.js +55 -1
  148. package/build/esm/i18nV2.js +18 -1
  149. package/build/esm/index-12fa4985.js +8 -0
  150. package/build/esm/index-1e59f99a.js +152 -0
  151. package/build/esm/index-32e53dac.js +1936 -0
  152. package/build/esm/index-3474401a.js +149 -0
  153. package/build/esm/index-34899aa3.js +17 -0
  154. package/build/esm/index-350e8f5b.js +124 -0
  155. package/build/esm/index-41bf860a.js +151 -0
  156. package/build/esm/index-4aa8e518.js +116 -0
  157. package/build/esm/index-4fe2b03f.js +32 -0
  158. package/build/esm/index-6ea6484e.js +29 -0
  159. package/build/esm/index-717401ee.js +184 -0
  160. package/build/esm/index-7af5242a.js +24 -0
  161. package/build/esm/index-7b8c85cd.js +8302 -0
  162. package/build/esm/index-81f295b7.js +23 -0
  163. package/build/esm/index-8858383e.js +52 -0
  164. package/build/esm/index-8f52dcf3.js +33 -0
  165. package/build/esm/index-9ea7e838.js +33 -0
  166. package/build/esm/index-aabac2aa.js +3241 -0
  167. package/build/esm/index-b9b2c417.js +837 -0
  168. package/build/esm/index-c2da5293.js +12 -0
  169. package/build/esm/index-c56d60db.js +370 -0
  170. package/build/esm/index-c5d7f692.js +24 -0
  171. package/build/esm/index-cc93e010.js +53 -0
  172. package/build/esm/index-d7f046db.js +5 -0
  173. package/build/esm/index-d8177667.js +14 -0
  174. package/build/esm/index-da139dda.js +615 -0
  175. package/build/esm/index-e612be9c.js +905 -0
  176. package/build/esm/index-f3d0592b.js +71 -0
  177. package/build/esm/index.js +190 -1
  178. package/build/{index.styled-0a1fb891.js → esm/index.styled-9c9db9cc.js} +17 -5
  179. package/build/esm/index.styles-5add27c5.js +1303 -0
  180. package/build/esm/isProduction-0ea904dd.js +27 -0
  181. package/build/esm/lead.js +2140 -1
  182. package/build/esm/localizeNumberFormat-2ac3773e.js +23 -0
  183. package/build/esm/mantine.js +113 -1
  184. package/build/esm/misc.js +22 -1
  185. package/build/esm/navigation.js +51 -1
  186. package/build/esm/normalizeLink-d1c9617e.js +12 -0
  187. package/build/esm/number-0c126a39.js +38 -0
  188. package/build/esm/onboardingV2.js +860 -34
  189. package/build/esm/paths-a8204db4.js +14 -0
  190. package/build/esm/pwg.js +208 -7
  191. package/build/esm/routing-2474f896.js +40 -0
  192. package/build/esm/subot.js +4553 -134
  193. package/build/esm/theme-e74db08c.js +186 -0
  194. package/build/esm/together.js +52 -1
  195. package/build/esm/translationsContext-ad3e25de.js +5 -0
  196. package/build/esm/tslib.es6-1b1533a9.js +38 -0
  197. package/build/esm/types-06f00b3d.js +8015 -0
  198. package/build/esm/types-15e34418.js +3432 -0
  199. package/build/esm/types-ba190c26.js +21 -0
  200. package/build/esm/types.js +1 -1
  201. package/build/esm/unifyEnv.js +42 -1
  202. package/build/esm/useCategory-2c87152d.js +292 -0
  203. package/build/esm/useHealthToolCache-29d22ddb.js +17 -0
  204. package/build/esm/useIsInit-8a2fc8e5.js +11 -0
  205. package/build/esm/useOutsideClick-c8a7ff20.js +45 -0
  206. package/build/esm/usePlacesAutocomplete-63e04e8e.js +80 -0
  207. package/build/esm/useScrollbarSize-51ce1374.js +57 -0
  208. package/build/esm/useTranslations-4f1db486.js +26 -0
  209. package/build/esm/useUniqueId-3638402f.js +41 -0
  210. package/build/esm/utils-2c484c05.js +132 -0
  211. package/build/esm/utils-3a2a47d9.js +22 -0
  212. package/build/esm/utils-6d7b88da.js +367 -0
  213. package/build/esm/utils-70718e9c.js +1124 -0
  214. package/build/esm/vaccination.js +868 -40
  215. package/build/footer.js +39 -1
  216. package/build/gAssets.js +14 -1
  217. package/build/getDynamicHealthTool-114a1e27.js +48 -0
  218. package/build/getSocialList-4713441d.js +72 -0
  219. package/build/hooks.js +44 -1
  220. package/build/i18n-values/en-PH.js +611 -1
  221. package/build/i18n-values/hi-IN.js +611 -1
  222. package/build/i18n-values/id-ID.js +611 -1
  223. package/build/i18n-values/km-KH.js +611 -1
  224. package/build/i18n-values/ms-MY.js +613 -1
  225. package/build/i18n-values/my-MM.js +611 -1
  226. package/build/i18n-values/th-TH.js +611 -1
  227. package/build/i18n-values/tl-PH.js +611 -1
  228. package/build/i18n-values/vi-VN.js +618 -1
  229. package/build/i18n-values/vi-VN_MB.js +618 -1
  230. package/build/i18n-values/zh-TW.js +611 -1
  231. package/build/i18n.js +64 -1
  232. package/build/i18nV2.js +26 -1
  233. package/build/index-020e6908.js +39 -0
  234. package/build/index-0da9b2e8.js +59 -0
  235. package/build/index-11468c00.js +157 -0
  236. package/build/index-117448a5.js +133 -0
  237. package/build/index-12c07f71.js +18 -0
  238. package/build/index-1a105e87.js +123 -0
  239. package/build/index-1baaedb0.js +55 -0
  240. package/build/index-32d38318.js +7 -0
  241. package/build/index-38582ee0.js +8373 -0
  242. package/build/index-3e5fc2d6.js +1994 -0
  243. package/build/index-3eef6bed.js +853 -0
  244. package/build/index-4035e658.js +159 -0
  245. package/build/index-488d71ae.js +30 -0
  246. package/build/index-5553f9e1.js +930 -0
  247. package/build/index-5fa68e45.js +380 -0
  248. package/build/index-7b467209.js +39 -0
  249. package/build/index-81cb1142.js +77 -0
  250. package/build/index-84ab5b89.js +38 -0
  251. package/build/index-8a95d709.js +30 -0
  252. package/build/index-9da9f0c3.js +35 -0
  253. package/build/index-af91c83e.js +20 -0
  254. package/build/index-b6aea85e.js +191 -0
  255. package/build/index-bc4f4c33.js +156 -0
  256. package/build/index-c604d6bb.js +624 -0
  257. package/build/index-d330735e.js +30 -0
  258. package/build/index-d8a7efaf.js +14 -0
  259. package/build/index-e2e81fa2.js +23 -0
  260. package/build/index-e3d896b3.js +3261 -0
  261. package/build/index.js +436 -1
  262. package/build/{esm/index.styled-14b65c9e.js → index.styled-5628b3e7.js} +25 -5
  263. package/build/index.styles-b822bf42.js +1342 -0
  264. package/build/isProduction-5ce3a388.js +29 -0
  265. package/build/lead.js +2168 -1
  266. package/build/localizeNumberFormat-f5f50987.js +31 -0
  267. package/build/mantine.js +154 -1
  268. package/build/misc.js +70 -1
  269. package/build/navigation.js +61 -1
  270. package/build/normalizeLink-6f7b85d8.js +15 -0
  271. package/build/number-79fe92e1.js +40 -0
  272. package/build/onboardingV2.js +892 -34
  273. package/build/paths-a5643d9e.js +16 -0
  274. package/build/pwg.js +217 -7
  275. package/build/routing-191a9a00.js +46 -0
  276. package/build/subot.js +4592 -134
  277. package/build/theme-fa910869.js +189 -0
  278. package/build/together.js +112 -1
  279. package/build/translationsContext-950334bf.js +7 -0
  280. package/build/tslib.es6-65e312a5.js +41 -0
  281. package/build/types-0f117a9f.js +8084 -0
  282. package/build/types-1fedb3d1.js +3446 -0
  283. package/build/types-52a4e888.js +24 -0
  284. package/build/types.js +56 -1
  285. package/build/unifyEnv.js +46 -1
  286. package/build/useCategory-cfc702f5.js +299 -0
  287. package/build/useHealthToolCache-43a7014d.js +19 -0
  288. package/build/useIsInit-89535012.js +13 -0
  289. package/build/useOutsideClick-c6813964.js +49 -0
  290. package/build/usePlacesAutocomplete-297de092.js +84 -0
  291. package/build/useScrollbarSize-0fa31aa7.js +64 -0
  292. package/build/useTranslations-e1853417.js +32 -0
  293. package/build/useUniqueId-11369116.js +44 -0
  294. package/build/utils-52113753.js +384 -0
  295. package/build/utils-64bd0c42.js +143 -0
  296. package/build/utils-661411f6.js +1171 -0
  297. package/build/utils-e1513cbc.js +25 -0
  298. package/build/vaccination.js +891 -40
  299. package/package.json +4 -5
  300. package/build/BMI_BOYS.percentile.monthly-c56b0165.js +0 -1
  301. package/build/BMI_BOYS.percentile.weekly-64287e04.js +0 -1
  302. package/build/BMI_BOYS.percentile.yearly-8db65d54.js +0 -1
  303. package/build/BMI_BOYS.zscore.monthly-f12389cd.js +0 -1
  304. package/build/BMI_BOYS.zscore.weekly-fff37a57.js +0 -1
  305. package/build/BMI_BOYS.zscore.yearly-a19b57eb.js +0 -1
  306. package/build/BMI_GIRLS.percentile.monthly-a4b36d7d.js +0 -1
  307. package/build/BMI_GIRLS.percentile.weekly-b6089202.js +0 -1
  308. package/build/BMI_GIRLS.percentile.yearly-0d340818.js +0 -1
  309. package/build/BMI_GIRLS.zscore.monthly-fd5b57c0.js +0 -1
  310. package/build/BMI_GIRLS.zscore.weekly-d4577f50.js +0 -1
  311. package/build/BMI_GIRLS.zscore.yearly-e40b8a7d.js +0 -1
  312. package/build/ChevronDown-602ce39e.js +0 -1
  313. package/build/HEAD CIRCUM_BOYS.percentile.monthly-2e4c5776.js +0 -1
  314. package/build/HEAD CIRCUM_BOYS.percentile.weekly-fc5728a5.js +0 -1
  315. package/build/HEAD CIRCUM_BOYS.percentile.yearly-6bfab277.js +0 -1
  316. package/build/HEAD CIRCUM_BOYS.zscore.monthly-6af7ce44.js +0 -1
  317. package/build/HEAD CIRCUM_BOYS.zscore.weekly-9adb819b.js +0 -1
  318. package/build/HEAD CIRCUM_BOYS.zscore.yearly-9a6cdbcf.js +0 -1
  319. package/build/HEAD CIRCUM_GIRLS.percentile.monthly-e7bfe9c6.js +0 -1
  320. package/build/HEAD CIRCUM_GIRLS.percentile.weekly-9f17e019.js +0 -1
  321. package/build/HEAD CIRCUM_GIRLS.percentile.yearly-8a59f541.js +0 -1
  322. package/build/HEAD CIRCUM_GIRLS.zscore.monthly-b7ddb16c.js +0 -1
  323. package/build/HEAD CIRCUM_GIRLS.zscore.weekly-72701c55.js +0 -1
  324. package/build/HEAD CIRCUM_GIRLS.zscore.yearly-dd94bded.js +0 -1
  325. package/build/HEIGHT_BOYS.percentile.monthly-b890068c.js +0 -1
  326. package/build/HEIGHT_BOYS.percentile.weekly-a1aa5130.js +0 -1
  327. package/build/HEIGHT_BOYS.percentile.yearly-5727d920.js +0 -1
  328. package/build/HEIGHT_BOYS.zscore.monthly-13b70aa6.js +0 -1
  329. package/build/HEIGHT_BOYS.zscore.weekly-3e1d7f23.js +0 -1
  330. package/build/HEIGHT_BOYS.zscore.yearly-a956102d.js +0 -1
  331. package/build/HEIGHT_GIRLS.percentile.monthly-da5ec01b.js +0 -1
  332. package/build/HEIGHT_GIRLS.percentile.weekly-e6205d32.js +0 -1
  333. package/build/HEIGHT_GIRLS.percentile.yearly-caefa502.js +0 -1
  334. package/build/HEIGHT_GIRLS.zscore.monthly-102ba473.js +0 -1
  335. package/build/HEIGHT_GIRLS.zscore.weekly-db4f710b.js +0 -1
  336. package/build/HEIGHT_GIRLS.zscore.yearly-36465920.js +0 -1
  337. package/build/Subot-4751194d.js +0 -1
  338. package/build/Visible-9497c463.js +0 -1
  339. package/build/WEIGHT_BOYS.percentile.monthly-554d0361.js +0 -1
  340. package/build/WEIGHT_BOYS.percentile.weekly-8e5334b8.js +0 -1
  341. package/build/WEIGHT_BOYS.percentile.yearly-536e1ccb.js +0 -1
  342. package/build/WEIGHT_BOYS.zscore.monthly-01eccee1.js +0 -1
  343. package/build/WEIGHT_BOYS.zscore.weekly-ee8f2c6b.js +0 -1
  344. package/build/WEIGHT_BOYS.zscore.yearly-0aea2749.js +0 -1
  345. package/build/WEIGHT_GIRLS.percentile.monthly-7abf9d06.js +0 -1
  346. package/build/WEIGHT_GIRLS.percentile.weekly-f9b6e963.js +0 -1
  347. package/build/WEIGHT_GIRLS.percentile.yearly-254865a5.js +0 -1
  348. package/build/WEIGHT_GIRLS.zscore.monthly-909f7417.js +0 -1
  349. package/build/WEIGHT_GIRLS.zscore.weekly-e62cd084.js +0 -1
  350. package/build/WEIGHT_GIRLS.zscore.yearly-8d6e5405.js +0 -1
  351. package/build/constants-00e06f68.js +0 -108
  352. package/build/constants-51251306.js +0 -1
  353. package/build/cookieHelper-7d519a72.js +0 -1
  354. package/build/core-ba3af3e2.js +0 -1
  355. package/build/dataTransform-1805eae3.js +0 -1
  356. package/build/esm/BMI_BOYS.percentile.monthly-6272f835.js +0 -1
  357. package/build/esm/BMI_BOYS.percentile.weekly-80d18f47.js +0 -1
  358. package/build/esm/BMI_BOYS.percentile.yearly-a7e5b5f6.js +0 -1
  359. package/build/esm/BMI_BOYS.zscore.monthly-d3658f97.js +0 -1
  360. package/build/esm/BMI_BOYS.zscore.weekly-6e6708dc.js +0 -1
  361. package/build/esm/BMI_BOYS.zscore.yearly-b8400c9d.js +0 -1
  362. package/build/esm/BMI_GIRLS.percentile.monthly-98586b46.js +0 -1
  363. package/build/esm/BMI_GIRLS.percentile.weekly-7c1511b0.js +0 -1
  364. package/build/esm/BMI_GIRLS.percentile.yearly-ea667f90.js +0 -1
  365. package/build/esm/BMI_GIRLS.zscore.monthly-3a4fd1a6.js +0 -1
  366. package/build/esm/BMI_GIRLS.zscore.weekly-cc1de097.js +0 -1
  367. package/build/esm/BMI_GIRLS.zscore.yearly-6dd1a364.js +0 -1
  368. package/build/esm/ChevronDown-4e59cac6.js +0 -1
  369. package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-bd0965ae.js +0 -1
  370. package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-db1053f7.js +0 -1
  371. package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-cd38b622.js +0 -1
  372. package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-d7f88a95.js +0 -1
  373. package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-76f7db79.js +0 -1
  374. package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-3ce70f8e.js +0 -1
  375. package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-b2e678ae.js +0 -1
  376. package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-8e2664bb.js +0 -1
  377. package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-f5c075a9.js +0 -1
  378. package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-6f87849e.js +0 -1
  379. package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-48da0aaa.js +0 -1
  380. package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-4eea437b.js +0 -1
  381. package/build/esm/HEIGHT_BOYS.percentile.monthly-d1a8cc8e.js +0 -1
  382. package/build/esm/HEIGHT_BOYS.percentile.weekly-2b6cfe6c.js +0 -1
  383. package/build/esm/HEIGHT_BOYS.percentile.yearly-9e78afc3.js +0 -1
  384. package/build/esm/HEIGHT_BOYS.zscore.monthly-5292d78a.js +0 -1
  385. package/build/esm/HEIGHT_BOYS.zscore.weekly-fbdee645.js +0 -1
  386. package/build/esm/HEIGHT_BOYS.zscore.yearly-c11a8f1b.js +0 -1
  387. package/build/esm/HEIGHT_GIRLS.percentile.monthly-8e11e2dc.js +0 -1
  388. package/build/esm/HEIGHT_GIRLS.percentile.weekly-dc3965cb.js +0 -1
  389. package/build/esm/HEIGHT_GIRLS.percentile.yearly-490f7b4e.js +0 -1
  390. package/build/esm/HEIGHT_GIRLS.zscore.monthly-e3531c32.js +0 -1
  391. package/build/esm/HEIGHT_GIRLS.zscore.weekly-36a16a66.js +0 -1
  392. package/build/esm/HEIGHT_GIRLS.zscore.yearly-61736bba.js +0 -1
  393. package/build/esm/Subot-4642c5bf.js +0 -1
  394. package/build/esm/Visible-ff7d225c.js +0 -1
  395. package/build/esm/WEIGHT_BOYS.percentile.monthly-0cfe7ecd.js +0 -1
  396. package/build/esm/WEIGHT_BOYS.percentile.weekly-89802113.js +0 -1
  397. package/build/esm/WEIGHT_BOYS.percentile.yearly-0eb40972.js +0 -1
  398. package/build/esm/WEIGHT_BOYS.zscore.monthly-7f8c5a15.js +0 -1
  399. package/build/esm/WEIGHT_BOYS.zscore.weekly-3dcfa8ce.js +0 -1
  400. package/build/esm/WEIGHT_BOYS.zscore.yearly-98ce1ea0.js +0 -1
  401. package/build/esm/WEIGHT_GIRLS.percentile.monthly-df98e335.js +0 -1
  402. package/build/esm/WEIGHT_GIRLS.percentile.weekly-63fff42a.js +0 -1
  403. package/build/esm/WEIGHT_GIRLS.percentile.yearly-8db8cdd0.js +0 -1
  404. package/build/esm/WEIGHT_GIRLS.zscore.monthly-15c83c6d.js +0 -1
  405. package/build/esm/WEIGHT_GIRLS.zscore.weekly-747a55ec.js +0 -1
  406. package/build/esm/WEIGHT_GIRLS.zscore.yearly-197dc52d.js +0 -1
  407. package/build/esm/constants-6ecfa77c.js +0 -1
  408. package/build/esm/constants-f7c80032.js +0 -108
  409. package/build/esm/cookieHelper-4f089e3c.js +0 -1
  410. package/build/esm/core-80112758.js +0 -1
  411. package/build/esm/dataTransform-0fa341bb.js +0 -1
  412. package/build/esm/getDynamicHealthTool-a4c9d6dd.js +0 -1
  413. package/build/esm/getSocialList-4e48deba.js +0 -1
  414. package/build/esm/index-13dc1f44.js +0 -1
  415. package/build/esm/index-13e62563.js +0 -137
  416. package/build/esm/index-1e7ad007.js +0 -1
  417. package/build/esm/index-24557f2b.js +0 -1
  418. package/build/esm/index-252cb964.js +0 -1
  419. package/build/esm/index-2e99f941.js +0 -1
  420. package/build/esm/index-3452fed2.js +0 -1
  421. package/build/esm/index-3aff939b.js +0 -1
  422. package/build/esm/index-459e0362.js +0 -1
  423. package/build/esm/index-45dcd965.js +0 -1
  424. package/build/esm/index-486b71cd.js +0 -1
  425. package/build/esm/index-5408f5a4.js +0 -113
  426. package/build/esm/index-5e1af23a.js +0 -1
  427. package/build/esm/index-79ef3a30.js +0 -1
  428. package/build/esm/index-7c77273a.js +0 -1
  429. package/build/esm/index-823fd7c0.js +0 -117
  430. package/build/esm/index-8c77d7e0.js +0 -1
  431. package/build/esm/index-93e5b4f3.js +0 -1
  432. package/build/esm/index-9c7b9011.js +0 -2748
  433. package/build/esm/index-9e5956c2.js +0 -1
  434. package/build/esm/index-a83aad1c.js +0 -375
  435. package/build/esm/index-b7cc3ca2.js +0 -1
  436. package/build/esm/index-bf11f9e9.js +0 -50
  437. package/build/esm/index-ce3d38fd.js +0 -1
  438. package/build/esm/index-d27a0e25.js +0 -1
  439. package/build/esm/index-e21276e3.js +0 -1
  440. package/build/esm/index-f9514788.js +0 -177
  441. package/build/esm/index-fd04ccb7.js +0 -1430
  442. package/build/esm/index.styles-94af560f.js +0 -817
  443. package/build/esm/isProduction-00695d80.js +0 -1
  444. package/build/esm/localizeNumberFormat-8355a44f.js +0 -1
  445. package/build/esm/normalizeLink-1c194268.js +0 -1
  446. package/build/esm/number-1347eb7b.js +0 -1
  447. package/build/esm/paths-749b4b53.js +0 -1
  448. package/build/esm/routing-2b284b30.js +0 -1
  449. package/build/esm/theme-3db3c9a8.js +0 -1
  450. package/build/esm/translationsContext-6d2efd65.js +0 -1
  451. package/build/esm/tslib.es6-266309d1.js +0 -1
  452. package/build/esm/types-6d397125.js +0 -3004
  453. package/build/esm/types-850814a7.js +0 -785
  454. package/build/esm/types-d3da37d2.js +0 -1
  455. package/build/esm/useCategory-f5f74749.js +0 -1
  456. package/build/esm/useHealthToolCache-f1488032.js +0 -1
  457. package/build/esm/useIsInit-9661c5f5.js +0 -1
  458. package/build/esm/useOutsideClick-0704b383.js +0 -1
  459. package/build/esm/usePlacesAutocomplete-0733ec49.js +0 -1
  460. package/build/esm/useScrollbarSize-90b179a5.js +0 -1
  461. package/build/esm/useTranslations-df1b3bb8.js +0 -1
  462. package/build/esm/useUniqueId-03fbaecd.js +0 -1
  463. package/build/esm/utils-3d2e3f0f.js +0 -141
  464. package/build/esm/utils-5b4e60da.js +0 -1
  465. package/build/esm/utils-970ce0c0.js +0 -8
  466. package/build/esm/utils-b87ec473.js +0 -1
  467. package/build/getDynamicHealthTool-31f44ca1.js +0 -1
  468. package/build/getSocialList-29c0a6e8.js +0 -1
  469. package/build/index-1714c81c.js +0 -2748
  470. package/build/index-238813a4.js +0 -375
  471. package/build/index-2438163d.js +0 -1430
  472. package/build/index-29d302f4.js +0 -137
  473. package/build/index-3184ae4e.js +0 -1
  474. package/build/index-34b6bd24.js +0 -1
  475. package/build/index-35192783.js +0 -1
  476. package/build/index-41d684a8.js +0 -50
  477. package/build/index-4a8c8ce6.js +0 -1
  478. package/build/index-58e0d49f.js +0 -1
  479. package/build/index-64d2f812.js +0 -1
  480. package/build/index-85c621a2.js +0 -113
  481. package/build/index-90f4bc02.js +0 -1
  482. package/build/index-9a845847.js +0 -117
  483. package/build/index-9ed509d1.js +0 -1
  484. package/build/index-aa495d24.js +0 -1
  485. package/build/index-ad5cf64d.js +0 -1
  486. package/build/index-b21a1d96.js +0 -1
  487. package/build/index-b320255d.js +0 -1
  488. package/build/index-b9af15da.js +0 -1
  489. package/build/index-bd4b31bf.js +0 -1
  490. package/build/index-bf81cb71.js +0 -1
  491. package/build/index-c3cbb8f3.js +0 -1
  492. package/build/index-d25afe2f.js +0 -1
  493. package/build/index-e7c1ff53.js +0 -177
  494. package/build/index-ed8656f9.js +0 -1
  495. package/build/index-f6217f73.js +0 -1
  496. package/build/index-f7088d57.js +0 -1
  497. package/build/index.styles-2ecb9c85.js +0 -817
  498. package/build/isProduction-28d96804.js +0 -1
  499. package/build/localizeNumberFormat-22b2d7aa.js +0 -1
  500. package/build/normalizeLink-594ccff1.js +0 -1
  501. package/build/number-cf06dcc0.js +0 -1
  502. package/build/paths-ed72ecb8.js +0 -1
  503. package/build/routing-f2edd0d0.js +0 -1
  504. package/build/theme-f2b8aad7.js +0 -1
  505. package/build/translationsContext-4c4c33c4.js +0 -1
  506. package/build/tslib.es6-ceb091fd.js +0 -1
  507. package/build/types-49f0543a.js +0 -785
  508. package/build/types-5b303b71.js +0 -1
  509. package/build/types-bfd12e24.js +0 -3004
  510. package/build/useCategory-94d60dab.js +0 -1
  511. package/build/useHealthToolCache-7307d240.js +0 -1
  512. package/build/useIsInit-c3cf1925.js +0 -1
  513. package/build/useOutsideClick-15fef824.js +0 -1
  514. package/build/usePlacesAutocomplete-6ab0181b.js +0 -1
  515. package/build/useScrollbarSize-ab332673.js +0 -1
  516. package/build/useTranslations-233c68bc.js +0 -1
  517. package/build/useUniqueId-46834e18.js +0 -1
  518. package/build/utils-13ea4f2f.js +0 -8
  519. package/build/utils-45e691a3.js +0 -1
  520. package/build/utils-bee8be92.js +0 -141
  521. package/build/utils-d5766c73.js +0 -1
@@ -0,0 +1,132 @@
1
+ const makeParams = (params) => {
2
+ const paramKeys = Object.keys(params);
3
+ if (!paramKeys.length) {
4
+ return '';
5
+ }
6
+ return '?' + paramKeys.map((k) => `${k}=${params[k]}`).join('&');
7
+ };
8
+ const formatUrlWithPageParam = (path, page = 1, queryPageName = 'page') => {
9
+ const [urlPart, queryPart] = path.split('?');
10
+ const urlObj = new URLSearchParams(queryPart || '');
11
+ const params = {};
12
+ urlObj.forEach((val, key) => {
13
+ if (val) {
14
+ params[key] = val;
15
+ }
16
+ });
17
+ if (Number(page) > 1) {
18
+ params[queryPageName] = String(page); // Default is params.page
19
+ }
20
+ else {
21
+ // Do not display "page=1" on the URL
22
+ delete params[queryPageName]; // Default is params.page
23
+ }
24
+ return urlPart + makeParams(params);
25
+ };
26
+ const toggleNoScroll = (isNoScroll) => {
27
+ if (typeof window !== 'undefined') {
28
+ document.documentElement.style.overflow = isNoScroll ? 'hidden' : "";
29
+ }
30
+ };
31
+ const Breakpoints = {
32
+ BREAK_POINT_SMALL_MOBILE: 480,
33
+ BREAK_POINT_MOBILE: 768,
34
+ BREAK_POINT_TABLET: 1024,
35
+ BREAK_POINT_PC: 1159,
36
+ BREAK_POINT_LGPC: 1440,
37
+ };
38
+ /**
39
+ * List of mediaQueries to use in StyledComponents
40
+ * New naming convention base around breakpoints
41
+ *
42
+ * Note: smb = small mobile; mb = mobile; td = tablet device; pc = pc/laptop device
43
+ *
44
+ * smbDown: BREAK_POINT_SMALL_MOBILE go down.
45
+ * smbUp: BREAK_POINT_SMALL_MOBILE go up
46
+ *
47
+ * mbDown: BREAK_POINT_MOBILE go down.
48
+ * mbOnly: from BREAK_POINT_SMALL_MOBILE to BREAK_POINT_MOBILE
49
+ * mbUp: BREAK_POINT_MOBILE go up
50
+ *
51
+ * tdDown: BREAK_POINT_TABLET go down
52
+ * tdOnly: from BREAK_POINT_MOBILE to BREAK_POINT_TABLET
53
+ * tdUp: BREAK_POINT_TABLET go up
54
+ *
55
+ * pcDown: BREAK_POINT_PC go down
56
+ * pcOnly: from BREAK_POINT_TABLET to BREAK_POINT_PC
57
+ * pcUp: BREAK_POINT_PC go up
58
+ *
59
+ * @example
60
+ * ${MediaQueries.mbDown} {
61
+ * color: ${(props) => props.theme.colors.neutral100 }};
62
+ * }
63
+ */
64
+ const MediaQueries = {
65
+ smbDown: `@media (max-width: ${Breakpoints.BREAK_POINT_SMALL_MOBILE - 1}px)`,
66
+ smbUp: `@media (min-width: ${Breakpoints.BREAK_POINT_SMALL_MOBILE}px)`,
67
+ mbDown: `@media (max-width: ${Breakpoints.BREAK_POINT_MOBILE - 1}px)`,
68
+ mbOnly: `@media (min-width: ${Breakpoints.BREAK_POINT_SMALL_MOBILE}px) and (max-width: ${Breakpoints.BREAK_POINT_MOBILE - 1}px)`,
69
+ mbUp: `@media (min-width: ${Breakpoints.BREAK_POINT_MOBILE}px)`,
70
+ tdDown: `@media (max-width: ${Breakpoints.BREAK_POINT_TABLET - 1}px)`,
71
+ tdOnly: `@media (min-width: ${Breakpoints.BREAK_POINT_MOBILE}px) and (max-width: ${Breakpoints.BREAK_POINT_TABLET - 1}px)`,
72
+ tdUp: `@media (min-width: ${Breakpoints.BREAK_POINT_TABLET}px)`,
73
+ pcUp: `@media (min-width: ${Breakpoints.BREAK_POINT_PC}px)`,
74
+ pcOnly: `@media (min-width: ${Breakpoints.BREAK_POINT_TABLET}px) and (max-width: ${Breakpoints.BREAK_POINT_PC - 1}px)`,
75
+ pcDown: `@media (max-width: ${Breakpoints.BREAK_POINT_PC - 1}px)`,
76
+ lgPcUp: `@media (min-width: ${Breakpoints.BREAK_POINT_LGPC}px)`,
77
+ lgPcOnly: `@media (min-width: ${Breakpoints.BREAK_POINT_PC}px) and (max-width: ${Breakpoints.BREAK_POINT_LGPC - 1}px)`,
78
+ lgPcDown: `@media (max-width: ${Breakpoints.BREAK_POINT_LGPC - 1}px)`,
79
+ mbToPC: `@media (min-width: ${Breakpoints.BREAK_POINT_MOBILE}px) and (max-width: ${Breakpoints.BREAK_POINT_PC - 1}px)`,
80
+ };
81
+ const getBoundariesFromMediaQueryKey = (key) => {
82
+ // zero mean not set
83
+ switch (key) {
84
+ case 'smbDown': return [0, Breakpoints.BREAK_POINT_SMALL_MOBILE - 1];
85
+ case 'smbUp': return [Breakpoints.BREAK_POINT_SMALL_MOBILE, 0];
86
+ case 'mbDown': return [0, Breakpoints.BREAK_POINT_MOBILE - 1];
87
+ case 'mbOnly': return [Breakpoints.BREAK_POINT_SMALL_MOBILE, Breakpoints.BREAK_POINT_MOBILE - 1];
88
+ case 'mbUp': return [Breakpoints.BREAK_POINT_MOBILE, 0];
89
+ case 'tdDown': return [0, Breakpoints.BREAK_POINT_TABLET - 1];
90
+ case 'tdOnly': return [Breakpoints.BREAK_POINT_MOBILE, Breakpoints.BREAK_POINT_TABLET - 1];
91
+ case 'tdUp': return [Breakpoints.BREAK_POINT_TABLET, 0];
92
+ case 'pcUp': return [Breakpoints.BREAK_POINT_PC, 0];
93
+ case 'pcOnly': return [Breakpoints.BREAK_POINT_TABLET, Breakpoints.BREAK_POINT_PC - 1];
94
+ case 'pcDown': return [0, Breakpoints.BREAK_POINT_PC - 1];
95
+ case 'lgPcUp': return [Breakpoints.BREAK_POINT_LGPC, 0];
96
+ case 'lgPcOnly': return [Breakpoints.BREAK_POINT_PC, Breakpoints.BREAK_POINT_LGPC - 1];
97
+ case 'lgPcDown': return [0, Breakpoints.BREAK_POINT_LGPC - 1];
98
+ case 'mbToPC': return [Breakpoints.BREAK_POINT_MOBILE, Breakpoints.BREAK_POINT_PC - 1];
99
+ }
100
+ };
101
+ const getPopupWrapperDom = () => {
102
+ if (typeof document === 'undefined')
103
+ return null;
104
+ const wrapperId = 'hhg-comp-popup-wrapper';
105
+ if (!document.querySelector('#' + wrapperId)) {
106
+ const newElem = document.createElement('div');
107
+ newElem.id = wrapperId;
108
+ document.body.appendChild(newElem);
109
+ }
110
+ return document.querySelector('#' + wrapperId);
111
+ };
112
+ const getWrapperDomWithSelector = (parentDom, wrapperKey) => {
113
+ if (typeof document === 'undefined')
114
+ return null;
115
+ if (!parentDom.querySelector(`[data-wrapper-selector="${wrapperKey}"]`)) {
116
+ const newElem = document.createElement('div');
117
+ newElem.setAttribute('data-wrapper-selector', wrapperKey);
118
+ document.body.appendChild(newElem);
119
+ }
120
+ return parentDom.querySelector(`[data-wrapper-selector="${wrapperKey}"]`);
121
+ };
122
+ const startCase = (str) => {
123
+ return str.replace(/\w\S*/g, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); });
124
+ };
125
+ const safeEncodeURI = (s) => {
126
+ if (decodeURI(s) !== s)
127
+ return s;
128
+ else
129
+ return encodeURI(s);
130
+ };
131
+
132
+ export { Breakpoints as B, MediaQueries as M, getPopupWrapperDom as a, getWrapperDomWithSelector as b, safeEncodeURI as c, formatUrlWithPageParam as f, getBoundariesFromMediaQueryKey as g, makeParams as m, startCase as s, toggleNoScroll as t };
@@ -0,0 +1,22 @@
1
+ import { L as LOCALE } from './Subot-3289bd8e.js';
2
+
3
+ // https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
4
+ const MAPPED_LOCALE = {
5
+ [LOCALE.Vietnam]: 'VN',
6
+ [LOCALE.Cambodia]: 'KH',
7
+ [LOCALE.Indonesia]: 'ID',
8
+ [LOCALE.Malaysia]: 'MY',
9
+ [LOCALE.PhilippinesEnglish]: 'PH',
10
+ [LOCALE.PhilippinesTagalog]: 'PH',
11
+ [LOCALE.Taiwan]: 'TW',
12
+ [LOCALE.Thailand]: 'TH',
13
+ [LOCALE.Myanmar]: 'MM',
14
+ };
15
+ const hiddenEmailChar = (str = '') => {
16
+ const domainIndex = str.indexOf('@');
17
+ const leftSide = str.substring(0, domainIndex);
18
+ const startMask = leftSide.length > 3 ? 3 : leftSide.length;
19
+ return str.replace(str.substring(startMask, domainIndex), str.slice(startMask, domainIndex).replace(/./g, 'x'));
20
+ };
21
+
22
+ export { MAPPED_LOCALE as M, hiddenEmailChar as h };
@@ -0,0 +1,367 @@
1
+ import { M as MediaQueries } from './utils-2c484c05.js';
2
+ import styled from 'styled-components';
3
+ import React__default, { memo, useMemo } from 'react';
4
+ import { C as CommonGAssets } from './index-8858383e.js';
5
+ import { I as ImageWrap } from './index-32e53dac.js';
6
+ import { L as LOCALE } from './Subot-3289bd8e.js';
7
+
8
+ const StyledLogo = styled.div `
9
+ position: relative;
10
+ display: inline-flex;
11
+ align-items: center;
12
+ z-index: 1;
13
+ .main-logo-icon {
14
+ object-fit: contain;
15
+ }
16
+ &[data-logo-is-light] {
17
+ > svg path {
18
+ fill: #fff;
19
+ }
20
+ img {
21
+ filter: brightness(0) invert(1);
22
+ }
23
+ }
24
+
25
+ &[data-has-badge] {
26
+ @supports (display: flex) and (gap: 1em) {
27
+ gap: 0.5rem;
28
+ }
29
+
30
+ @supports not ((display: flex) and (gap: 1em)) {
31
+ > img {
32
+ margin-left: 0.25rem;
33
+ }
34
+ }
35
+ }
36
+
37
+ .common-logo-seasonal-left,
38
+ .common-logo-seasonal-right {
39
+ z-index: -1;
40
+ max-width: unset;
41
+ max-height: unset;
42
+ }
43
+ .common-logo-seasonal-left {
44
+ position: absolute;
45
+ top: 50%;
46
+ left: 0;
47
+ transform: translateY(-50%);
48
+ }
49
+ .common-logo-seasonal-right {
50
+ position: absolute;
51
+ top: 50%;
52
+ right: 0;
53
+ transform: translateY(-50%);
54
+ }
55
+ &[data-seasonal='christmas'] {
56
+ padding-left: 37px;
57
+ padding-right: 22px;
58
+ .common-logo-seasonal-left {
59
+ width: 125px;
60
+ height: 56px;
61
+ }
62
+ .common-logo-seasonal-right {
63
+ width: 23px;
64
+ height: 17px;
65
+ }
66
+ }
67
+ &[data-seasonal='new-year'] {
68
+ padding-right: 85px;
69
+ .common-logo-seasonal-left {
70
+ top: 35%;
71
+ width: 100px;
72
+ height: 56px;
73
+ }
74
+ .common-logo-seasonal-right {
75
+ width: 85px;
76
+ height: 54px;
77
+ }
78
+ ${MediaQueries.mbDown} {
79
+ padding-right: 0;
80
+ .common-logo-seasonal-right {
81
+ display: none;
82
+ }
83
+ }
84
+ }
85
+ &[data-seasonal='lunar-new-year'] {
86
+ padding-left: 30px;
87
+ padding-right: 35px;
88
+ .common-logo-seasonal-left {
89
+ width: 33px;
90
+ height: 41px;
91
+ }
92
+ .common-logo-seasonal-right {
93
+ width: 37px;
94
+ height: 54px;
95
+ }
96
+ }
97
+ &[data-seasonal='ramadan'] {
98
+ &[data-type='hellosehat'] {
99
+ padding-right: 35px;
100
+ .common-logo-seasonal-left {
101
+ width: 165px;
102
+ height: unset;
103
+ left: 6px;
104
+ }
105
+ .common-logo-seasonal-right {
106
+ width: 33px;
107
+ height: unset;
108
+ }
109
+ }
110
+ &[data-type='hellodoktor'] {
111
+ padding-right: 66px;
112
+ .common-logo-seasonal-left {
113
+ width: 133px;
114
+ height: unset;
115
+ left: 6px;
116
+ }
117
+ .common-logo-seasonal-right {
118
+ width: 63px;
119
+ height: unset;
120
+ }
121
+ }
122
+ }
123
+ &[data-seasonal='hung-king'] {
124
+ &[data-type='hellobacsi'] {
125
+ .common-logo-seasonal-left {
126
+ width: 134px;
127
+ height: unset;
128
+ left: 50%;
129
+ top: 50%;
130
+ transform: translate(-50%, -50%);
131
+ }
132
+ }
133
+ &[data-type='marryBaby'] {
134
+ .common-logo-seasonal-left {
135
+ width: 145px;
136
+ height: unset;
137
+ left: 50%;
138
+ top: 50%;
139
+ transform: translate(-50%, -50%);
140
+ }
141
+ }
142
+ }
143
+ `;
144
+ const StyledProLogo = styled.img `
145
+ height: 16px;
146
+ width: unset;
147
+ margin-bottom: 4px;
148
+ margin-left: -3px;
149
+ `;
150
+
151
+ const _LogoIcon = ({ type, width, height }) => {
152
+ const data = useMemo(() => {
153
+ switch (type) {
154
+ case 'hellobacsi':
155
+ return {
156
+ width: width || '107px',
157
+ height: height || '24px',
158
+ src: CommonGAssets.getAssetPath('logo/hellobacsi.png'),
159
+ };
160
+ case 'hellodoktor':
161
+ return {
162
+ width: width || '127px',
163
+ height: height || '24px',
164
+ src: CommonGAssets.getAssetPath('logo/hellodoktor.png'),
165
+ };
166
+ case 'hellosehat':
167
+ return {
168
+ width: width || '121px',
169
+ height: height || '27px',
170
+ src: CommonGAssets.getAssetPath('logo/hellosehat.png'),
171
+ };
172
+ case 'hellohealth':
173
+ return {
174
+ width: width || '123px',
175
+ height: height || '24px',
176
+ src: CommonGAssets.getAssetPath('logo/hellohealth.png'),
177
+ };
178
+ case 'hellotogether':
179
+ return {
180
+ width: width || '150px',
181
+ height: height || '24px',
182
+ src: CommonGAssets.getAssetPath('logo/hellotogether.png'),
183
+ };
184
+ case 'hellocare':
185
+ return {
186
+ width: width || '99px',
187
+ height: height || '24px',
188
+ src: CommonGAssets.getAssetPath('logo/hellocare.png'),
189
+ };
190
+ case 'hellodoctor':
191
+ return {
192
+ width: width || '127px',
193
+ height: height || '24px',
194
+ src: CommonGAssets.getAssetPath('logo/hellodoctor.png'),
195
+ };
196
+ case 'hellokrupet':
197
+ return {
198
+ width: width || '101px',
199
+ height: height || '24px',
200
+ src: CommonGAssets.getAssetPath('logo/hellokrupet.png'),
201
+ };
202
+ case 'hellosayarwon':
203
+ return {
204
+ width: width || '111px',
205
+ height: height || '24px',
206
+ src: CommonGAssets.getAssetPath('logo/hellosayarwon.png'),
207
+ };
208
+ case 'helloyishi':
209
+ return {
210
+ width: width || '89px',
211
+ height: height || '24px',
212
+ src: CommonGAssets.getAssetPath('logo/helloyishi.png'),
213
+ };
214
+ case 'hellokhunmor':
215
+ return {
216
+ width: width || '123px',
217
+ height: height || '24px',
218
+ src: CommonGAssets.getAssetPath('logo/hellokhunmor.png'),
219
+ };
220
+ case 'helloswasthya':
221
+ return {
222
+ width: width || '105px',
223
+ height: height || '24px',
224
+ src: CommonGAssets.getAssetPath('logo/helloswasthya.png'),
225
+ };
226
+ case 'logomark':
227
+ return {
228
+ width: width || '60px',
229
+ height: height || '57px',
230
+ src: CommonGAssets.getAssetPath('logo/logomark.png'),
231
+ };
232
+ case 'marryBaby':
233
+ return {
234
+ width: width || '145px',
235
+ height: height || '28px',
236
+ src: CommonGAssets.getAssetPath('logo/marrybaby.png'),
237
+ };
238
+ default:
239
+ return null;
240
+ }
241
+ }, [type, width, height]);
242
+ const { src, width: logoWidth, height: logoHeight } = data || {};
243
+ return (React__default.createElement(ImageWrap, { alt: `${type} logo`, className: "main-logo-icon", src: src, style: {
244
+ width: logoWidth,
245
+ height: logoHeight,
246
+ } }));
247
+ };
248
+ const LogoIcon = memo(_LogoIcon);
249
+
250
+ const isChristmas = (date) => {
251
+ const day = date.getDate();
252
+ const month = date.getMonth();
253
+ return month === 11 && day >= 16 && day <= 25;
254
+ };
255
+ const LunarNewYearMapping = {
256
+ 2023: [22, 0],
257
+ 2024: [10, 1],
258
+ 2025: [29, 0],
259
+ 2026: [17, 1],
260
+ 2027: [6, 1],
261
+ 2028: [26, 0],
262
+ 2029: [13, 1],
263
+ 2030: [3, 1],
264
+ 2031: [23, 0],
265
+ 2032: [11, 1],
266
+ 2033: [31, 0],
267
+ 2034: [19, 1],
268
+ 2035: [8, 1],
269
+ 2036: [28, 0],
270
+ 2037: [15, 1],
271
+ 2038: [4, 1],
272
+ 2039: [24, 0],
273
+ 2040: [12, 1],
274
+ };
275
+ const LunarNewYearLocale = [
276
+ LOCALE.Vietnam,
277
+ LOCALE.Taiwan,
278
+ LOCALE.Indonesia,
279
+ LOCALE.Malaysia,
280
+ ];
281
+ const isLunarNewYear = (date) => {
282
+ const year = date.getFullYear();
283
+ const currentLunarMap = LunarNewYearMapping[year];
284
+ if (!currentLunarMap)
285
+ return false;
286
+ const currentLunarDate = new Date(year, currentLunarMap[1], currentLunarMap[0]);
287
+ const startLunarDate = new Date(currentLunarDate);
288
+ startLunarDate.setDate(currentLunarDate.getDate() - 7);
289
+ const endLunarDate = new Date(currentLunarDate);
290
+ endLunarDate.setDate(currentLunarDate.getDate() + 5);
291
+ return startLunarDate <= date && date <= endLunarDate;
292
+ };
293
+ const isNewYear = (date) => {
294
+ const day = date.getDate();
295
+ const month = date.getMonth();
296
+ return (month === 11 && day >= 26) || (month === 0 && day <= 15);
297
+ };
298
+ const RamadanYearMapping = [
299
+ { year: 2024, start: [10, 2], end: [8, 3] },
300
+ { year: 2025, start: [1, 2], end: [30, 2] },
301
+ { year: 2026, start: [18, 1], end: [19, 2] },
302
+ { year: 2027, start: [8, 1], end: [9, 2] },
303
+ { year: 2028, start: [28, 0], end: [26, 1] },
304
+ { year: 2029, start: [16, 0], end: [14, 1] },
305
+ { year: 2030, start: [6, 0], end: [4, 1] },
306
+ { year: 2030, start: [26, 11], end: [24, 0, 2031] },
307
+ { year: 2031, start: [15, 11], end: [13, 0, 2032] },
308
+ { year: 2032, start: [4, 11], end: [2, 0, 2033] },
309
+ ];
310
+ const isRamadan = (date) => {
311
+ const year = date.getFullYear();
312
+ const currentRamadanMaps = RamadanYearMapping.filter((ramadan) => ramadan.year === year);
313
+ if (!currentRamadanMaps.length)
314
+ return false;
315
+ return currentRamadanMaps.some((currentRamadanMap) => {
316
+ const ramadanYear = currentRamadanMap.start[2] || year;
317
+ const startRamadanDate = new Date(ramadanYear, currentRamadanMap.start[1], currentRamadanMap.start[0]);
318
+ const endRamadanDate = new Date(ramadanYear, currentRamadanMap.end[1], currentRamadanMap.end[0]);
319
+ return startRamadanDate <= date && date <= endRamadanDate;
320
+ });
321
+ };
322
+ const VNHungKingMapping = {
323
+ 2024: [18, 3],
324
+ 2025: [7, 3],
325
+ 2026: [26, 3],
326
+ 2027: [16, 3],
327
+ 2028: [4, 3],
328
+ 2029: [23, 3],
329
+ 2030: [12, 3],
330
+ 2031: [1, 3],
331
+ 2032: [19, 3],
332
+ 2033: [9, 3],
333
+ 2034: [28, 3],
334
+ 2035: [17, 3],
335
+ };
336
+ const isVNHungKing = (date) => {
337
+ const year = date.getFullYear();
338
+ const currentVNHungKingMap = VNHungKingMapping[year];
339
+ if (!currentVNHungKingMap)
340
+ return false;
341
+ const currentVNHungKingDate = new Date(year, currentVNHungKingMap[1], currentVNHungKingMap[0]);
342
+ const startVNHungKingDate = new Date(currentVNHungKingDate);
343
+ startVNHungKingDate.setDate(currentVNHungKingDate.getDate() - 1);
344
+ const endVNHungKingDate = new Date(currentVNHungKingDate);
345
+ endVNHungKingDate.setDate(currentVNHungKingDate.getDate() + 1);
346
+ return startVNHungKingDate <= date && date <= endVNHungKingDate;
347
+ };
348
+ const isVN3004 = (date) => {
349
+ const year = date.getFullYear();
350
+ const currentVN3004 = new Date(year, 3, 30);
351
+ const start = new Date(currentVN3004);
352
+ start.setDate(currentVN3004.getDate() - 1);
353
+ const end = new Date(currentVN3004);
354
+ end.setDate(currentVN3004.getDate() + 2);
355
+ return start <= date && date <= end;
356
+ };
357
+ const isLabourDay = (date) => {
358
+ const year = date.getFullYear();
359
+ const current = new Date(year, 4, 1);
360
+ const start = new Date(current);
361
+ start.setDate(current.getDate() - 1);
362
+ const end = new Date(current);
363
+ end.setDate(current.getDate() + 1);
364
+ return start <= date && date <= end;
365
+ };
366
+
367
+ export { LogoIcon as L, StyledLogo as S, LunarNewYearLocale as a, isLunarNewYear as b, isNewYear as c, isRamadan as d, isVNHungKing as e, isVN3004 as f, isLabourDay as g, StyledProLogo as h, isChristmas as i };