@hhgtech/hhg-components 1.27.90 → 1.27.91

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 (262) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components.js +1 -1
  5. package/build/constants.js +1 -1
  6. package/build/{core-e4f759f6.js → core-79febf52.js} +1 -1
  7. package/build/{dataTransform-f133c6cc.js → dataTransform-0e38fe8d.js} +1 -1
  8. package/build/ecom.js +1 -1
  9. package/build/esm/babyGrowth.js +4 -4
  10. package/build/esm/cache.js +1 -1
  11. package/build/esm/care.js +1 -1
  12. package/build/esm/components.js +1 -1
  13. package/build/esm/constants.js +1 -1
  14. package/build/esm/{core-24b2d67b.js → core-c85dc325.js} +1 -1
  15. package/build/esm/{dataTransform-73a8e298.js → dataTransform-530f50c0.js} +1 -1
  16. package/build/esm/ecom.js +1 -1
  17. package/build/esm/{fixedBottomAdBlock-52916a79.js → fixedBottomAdBlock-9b99c7a2.js} +1 -1
  18. package/build/esm/footer.js +1 -1
  19. package/build/esm/gAssets.js +1 -1
  20. package/build/esm/{getDynamicHealthTool-085c0c6f.js → getDynamicHealthTool-f15b6992.js} +1 -1
  21. package/build/esm/{getSocialList-0839eb47.js → getSocialList-c368d04e.js} +1 -1
  22. package/build/esm/hooks.js +1 -1
  23. package/build/esm/i18n.js +1 -1
  24. package/build/esm/i18nV2.js +1 -1
  25. package/build/esm/{index-5d893b18.js → index-0d108e90.js} +1 -1
  26. package/build/esm/{index-b9dc12a8.js → index-0d78d489.js} +1 -1
  27. package/build/esm/{index-27183b30.js → index-147ed097.js} +1 -1
  28. package/build/esm/{index-67d68410.js → index-29221bed.js} +1 -1
  29. package/build/esm/{index-4d6e08f0.js → index-2c6bee3c.js} +1 -1
  30. package/build/esm/{index-4a379388.js → index-33e1616f.js} +1 -1
  31. package/build/esm/{index-233d3216.js → index-4b8de450.js} +1 -1
  32. package/build/esm/{index-cdc79555.js → index-4c4c5c48.js} +1 -1
  33. package/build/esm/{index-f1985a4e.js → index-8899064c.js} +1 -1
  34. package/build/esm/{index-04337202.js → index-931534ea.js} +1 -1
  35. package/build/esm/{index-0c0f14ef.js → index-951672ea.js} +1 -1
  36. package/build/esm/index-a5bbdf9a.js +1 -0
  37. package/build/esm/{index-f9105193.js → index-a9322280.js} +1 -1
  38. package/build/esm/{index-087b3c4b.js → index-aa8a897c.js} +1 -1
  39. package/build/esm/{index-23cf664f.js → index-aed8b318.js} +6 -6
  40. package/build/esm/{index-3b01b050.js → index-c18841bd.js} +1 -1
  41. package/build/esm/{index-a61517ae.js → index-c99bb820.js} +1 -1
  42. package/build/esm/index-e61b4328.js +1 -0
  43. package/build/esm/index-eede89aa.js +1 -0
  44. package/build/esm/{index-2792d725.js → index-f2604383.js} +1 -1
  45. package/build/esm/{index-bee89bbd.js → index-f2a3d7a4.js} +1 -1
  46. package/build/esm/index.js +1 -1
  47. package/build/esm/{index.styled-78c42045.js → index.styled-bf104269.js} +4 -4
  48. package/build/esm/{index.styled-c168896e.js → index.styled-e9b3c211.js} +2 -2
  49. package/build/esm/{index.styled-430ea9ec.js → index.styled-fb59a984.js} +9 -9
  50. package/build/esm/lead.js +1 -1
  51. package/build/esm/mantine.js +1 -1
  52. package/build/esm/misc.js +1 -1
  53. package/build/esm/navigation.js +1 -1
  54. package/build/esm/onboarding.js +1 -1
  55. package/build/esm/onboardingV2.js +1 -1
  56. package/build/esm/pwg.js +5 -5
  57. package/build/esm/{routing-eab022c9.js → routing-3ee96840.js} +1 -1
  58. package/build/esm/together.js +1 -1
  59. package/build/esm/{types-e47b94f8.js → types-38221016.js} +1 -1
  60. package/build/esm/{types-6c249d77.js → types-8fbf1f77.js} +1 -1
  61. package/build/esm/types.js +1 -1
  62. package/build/esm/{useHealthToolCache-7d562278.js → useHealthToolCache-9ae99745.js} +1 -1
  63. package/build/esm/{useRafState-9aa4bb80.js → useRafState-2f2f9ca4.js} +1 -1
  64. package/build/esm/{useTranslations-9d8df4a8.js → useTranslations-5d2ff12d.js} +1 -1
  65. package/build/esm/{utils-b9aaa166.js → utils-0c45642f.js} +3 -1
  66. package/build/esm/{utils-47af45cf.js → utils-7d74337d.js} +1 -1
  67. package/build/esm/vaccination.js +1 -1
  68. package/build/{fixedBottomAdBlock-9c54d790.js → fixedBottomAdBlock-da1dc05d.js} +1 -1
  69. package/build/footer.js +1 -1
  70. package/build/gAssets.js +1 -1
  71. package/build/getDynamicHealthTool-e5ca53a4.js +1 -0
  72. package/build/{getSocialList-738c6ab1.js → getSocialList-fe744207.js} +1 -1
  73. package/build/hooks.js +1 -1
  74. package/build/i18n.js +1 -1
  75. package/build/i18nV2.js +1 -1
  76. package/build/{index-d247b327.js → index-0a20c918.js} +1 -1
  77. package/build/{index-672f741e.js → index-1d3ee9fd.js} +1 -1
  78. package/build/{index-f07768b7.js → index-1d67d7d8.js} +1 -1
  79. package/build/{index-65b6d1c2.js → index-2d74e7d7.js} +1 -1
  80. package/build/{index-e3d5aca7.js → index-410969ce.js} +1 -1
  81. package/build/{index-d1793a36.js → index-43cb9db7.js} +1 -1
  82. package/build/{index-79babda3.js → index-50c9c79d.js} +1 -1
  83. package/build/{index-ba2f74d8.js → index-5c4d5a67.js} +1 -1
  84. package/build/index-5c627e40.js +1 -0
  85. package/build/{index-b1266609.js → index-5e5c48a0.js} +1 -1
  86. package/build/{index-ea85f1e4.js → index-864d8372.js} +11 -11
  87. package/build/{index-dc6192ec.js → index-8b6bba76.js} +1 -1
  88. package/build/index-b39611df.js +1 -0
  89. package/build/{index-be6c1d97.js → index-b6281040.js} +1 -1
  90. package/build/{index-f579bc22.js → index-bb1590fb.js} +1 -1
  91. package/build/{index-9af8c3aa.js → index-c14b54ed.js} +1 -1
  92. package/build/{index-0558fd2a.js → index-ce9d897d.js} +1 -1
  93. package/build/{index-acf6cdce.js → index-e3704a0d.js} +1 -1
  94. package/build/{index-7a7afad1.js → index-e649f4cb.js} +1 -1
  95. package/build/{index-b622c790.js → index-e6f3f9c8.js} +1 -1
  96. package/build/{index-b41da53f.js → index-ff68aa64.js} +1 -1
  97. package/build/index.js +1 -1
  98. package/build/{index.styled-117cec12.js → index.styled-6b0b96aa.js} +1 -1
  99. package/build/{index.styled-05199b95.js → index.styled-8f8fe13c.js} +1 -1
  100. package/build/{index.styled-0e357a76.js → index.styled-e67b6f0c.js} +5 -5
  101. package/build/lead.js +1 -1
  102. package/build/mantine.js +1 -1
  103. package/build/misc.js +1 -1
  104. package/build/navigation.js +1 -1
  105. package/build/onboarding.js +1 -1
  106. package/build/onboardingV2.js +1 -1
  107. package/build/pwg.js +1 -1
  108. package/build/{routing-64f055f6.js → routing-5064ab11.js} +1 -1
  109. package/build/together.js +1 -1
  110. package/build/{types-7082945c.js → types-1fd82824.js} +1 -1
  111. package/build/{types-37f310b5.js → types-2e6697dd.js} +1 -1
  112. package/build/types.js +1 -1
  113. package/build/useHealthToolCache-4b00d81c.js +1 -0
  114. package/build/{useRafState-f1d6ac2c.js → useRafState-fe195697.js} +1 -1
  115. package/build/{useTranslations-992e37c2.js → useTranslations-d85bf0b3.js} +1 -1
  116. package/build/{utils-0cb5a8cb.js → utils-e15c8da3.js} +3 -1
  117. package/build/{utils-266f63b2.js → utils-ed66b48c.js} +1 -1
  118. package/build/vaccination.js +1 -1
  119. package/package.json +1 -1
  120. package/build/esm/index-02fbcf38.js +0 -1
  121. package/build/esm/index-1237a0f5.js +0 -1
  122. package/build/esm/index-4a918b26.js +0 -1
  123. package/build/getDynamicHealthTool-26c7be69.js +0 -1
  124. package/build/index-85bdb335.js +0 -1
  125. package/build/index-c44be42f.js +0 -1
  126. package/build/useHealthToolCache-9655d9c3.js +0 -1
  127. /package/build/{BMI_BOYS.percentile.monthly-a77758cf.js → BMI_BOYS.percentile.monthly-05653da4.js} +0 -0
  128. /package/build/{BMI_BOYS.percentile.weekly-fe3f9123.js → BMI_BOYS.percentile.weekly-c5456568.js} +0 -0
  129. /package/build/{BMI_BOYS.percentile.yearly-fc120110.js → BMI_BOYS.percentile.yearly-5ea8e00c.js} +0 -0
  130. /package/build/{BMI_BOYS.zscore.monthly-0c1521cb.js → BMI_BOYS.zscore.monthly-19f177f9.js} +0 -0
  131. /package/build/{BMI_BOYS.zscore.weekly-7c3b4ca0.js → BMI_BOYS.zscore.weekly-7612a4e3.js} +0 -0
  132. /package/build/{BMI_BOYS.zscore.yearly-e3a0fc5e.js → BMI_BOYS.zscore.yearly-905a1b12.js} +0 -0
  133. /package/build/{BMI_GIRLS.percentile.monthly-3cbc417a.js → BMI_GIRLS.percentile.monthly-58a1c92a.js} +0 -0
  134. /package/build/{BMI_GIRLS.percentile.weekly-5a861f41.js → BMI_GIRLS.percentile.weekly-511f0ba6.js} +0 -0
  135. /package/build/{BMI_GIRLS.percentile.yearly-0437e6dc.js → BMI_GIRLS.percentile.yearly-fc1202b1.js} +0 -0
  136. /package/build/{BMI_GIRLS.zscore.monthly-81a168e7.js → BMI_GIRLS.zscore.monthly-69f0c558.js} +0 -0
  137. /package/build/{BMI_GIRLS.zscore.weekly-ac116a25.js → BMI_GIRLS.zscore.weekly-21802394.js} +0 -0
  138. /package/build/{BMI_GIRLS.zscore.yearly-3f7360ff.js → BMI_GIRLS.zscore.yearly-891337b1.js} +0 -0
  139. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-eaeae94f.js → HEAD CIRCUM_BOYS.percentile.monthly-4085d1dd.js} +0 -0
  140. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1b8e58ab.js → HEAD CIRCUM_BOYS.percentile.weekly-42e5b79a.js} +0 -0
  141. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-3e45c395.js → HEAD CIRCUM_BOYS.percentile.yearly-67b14112.js} +0 -0
  142. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-089adcf7.js → HEAD CIRCUM_BOYS.zscore.monthly-0ffe91d6.js} +0 -0
  143. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-820022b5.js → HEAD CIRCUM_BOYS.zscore.weekly-ebe6afcb.js} +0 -0
  144. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-f27f6add.js → HEAD CIRCUM_BOYS.zscore.yearly-d6670b18.js} +0 -0
  145. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-4716703b.js → HEAD CIRCUM_GIRLS.percentile.monthly-dec1f25c.js} +0 -0
  146. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-0908c51b.js → HEAD CIRCUM_GIRLS.percentile.weekly-b76eadbb.js} +0 -0
  147. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-546ff34d.js → HEAD CIRCUM_GIRLS.percentile.yearly-52446e4c.js} +0 -0
  148. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-ac1e7ef2.js → HEAD CIRCUM_GIRLS.zscore.monthly-402920ef.js} +0 -0
  149. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-eaef1d1c.js → HEAD CIRCUM_GIRLS.zscore.weekly-3c3d636e.js} +0 -0
  150. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-9fc8b570.js → HEAD CIRCUM_GIRLS.zscore.yearly-b11fa69e.js} +0 -0
  151. /package/build/{HEIGHT_BOYS.percentile.monthly-e8b4fe23.js → HEIGHT_BOYS.percentile.monthly-8225bf60.js} +0 -0
  152. /package/build/{HEIGHT_BOYS.percentile.weekly-9fef2d7b.js → HEIGHT_BOYS.percentile.weekly-baddb572.js} +0 -0
  153. /package/build/{HEIGHT_BOYS.percentile.yearly-d88b8b80.js → HEIGHT_BOYS.percentile.yearly-dd72d097.js} +0 -0
  154. /package/build/{HEIGHT_BOYS.zscore.monthly-f1edc681.js → HEIGHT_BOYS.zscore.monthly-fc1134fa.js} +0 -0
  155. /package/build/{HEIGHT_BOYS.zscore.weekly-5b7ecac5.js → HEIGHT_BOYS.zscore.weekly-f4f3ed1c.js} +0 -0
  156. /package/build/{HEIGHT_BOYS.zscore.yearly-c654c677.js → HEIGHT_BOYS.zscore.yearly-4f87799d.js} +0 -0
  157. /package/build/{HEIGHT_GIRLS.percentile.monthly-bfeb153f.js → HEIGHT_GIRLS.percentile.monthly-d94dde4c.js} +0 -0
  158. /package/build/{HEIGHT_GIRLS.percentile.weekly-48a9952e.js → HEIGHT_GIRLS.percentile.weekly-4c58c34c.js} +0 -0
  159. /package/build/{HEIGHT_GIRLS.percentile.yearly-d0725f47.js → HEIGHT_GIRLS.percentile.yearly-e3f9e5e2.js} +0 -0
  160. /package/build/{HEIGHT_GIRLS.zscore.monthly-2d6ddb1f.js → HEIGHT_GIRLS.zscore.monthly-c2ae31e7.js} +0 -0
  161. /package/build/{HEIGHT_GIRLS.zscore.weekly-a644910f.js → HEIGHT_GIRLS.zscore.weekly-85939353.js} +0 -0
  162. /package/build/{HEIGHT_GIRLS.zscore.yearly-390bd217.js → HEIGHT_GIRLS.zscore.yearly-99e92b8a.js} +0 -0
  163. /package/build/{Onboarding-a76c5f08.js → Onboarding-a8bee137.js} +0 -0
  164. /package/build/{Visible-0f24721e.js → Visible-6c4c8e0f.js} +0 -0
  165. /package/build/{WEIGHT_BOYS.percentile.monthly-a17f6d32.js → WEIGHT_BOYS.percentile.monthly-c24b5d10.js} +0 -0
  166. /package/build/{WEIGHT_BOYS.percentile.weekly-b6e8d31b.js → WEIGHT_BOYS.percentile.weekly-c5b93411.js} +0 -0
  167. /package/build/{WEIGHT_BOYS.percentile.yearly-b0637fd0.js → WEIGHT_BOYS.percentile.yearly-1ed33266.js} +0 -0
  168. /package/build/{WEIGHT_BOYS.zscore.monthly-fd00d922.js → WEIGHT_BOYS.zscore.monthly-67ef2994.js} +0 -0
  169. /package/build/{WEIGHT_BOYS.zscore.weekly-47a82a54.js → WEIGHT_BOYS.zscore.weekly-c1fc67e7.js} +0 -0
  170. /package/build/{WEIGHT_BOYS.zscore.yearly-8e59db2f.js → WEIGHT_BOYS.zscore.yearly-0f72f4ca.js} +0 -0
  171. /package/build/{WEIGHT_GIRLS.percentile.monthly-e3a23f55.js → WEIGHT_GIRLS.percentile.monthly-5854f25b.js} +0 -0
  172. /package/build/{WEIGHT_GIRLS.percentile.weekly-ed4311e1.js → WEIGHT_GIRLS.percentile.weekly-b9a2517e.js} +0 -0
  173. /package/build/{WEIGHT_GIRLS.percentile.yearly-4ba82d30.js → WEIGHT_GIRLS.percentile.yearly-79726200.js} +0 -0
  174. /package/build/{WEIGHT_GIRLS.zscore.monthly-d7dfb0ac.js → WEIGHT_GIRLS.zscore.monthly-b60545c2.js} +0 -0
  175. /package/build/{WEIGHT_GIRLS.zscore.weekly-da4ef945.js → WEIGHT_GIRLS.zscore.weekly-aad0bfb1.js} +0 -0
  176. /package/build/{WEIGHT_GIRLS.zscore.yearly-af9d4e51.js → WEIGHT_GIRLS.zscore.yearly-0867533c.js} +0 -0
  177. /package/build/{constants-126583d5.js → constants-b278f72a.js} +0 -0
  178. /package/build/{cookieHelper-1618d204.js → cookieHelper-d07eb37d.js} +0 -0
  179. /package/build/{dataTransform-1d46e040.js → dataTransform-ce43c65f.js} +0 -0
  180. /package/build/esm/{BMI_BOYS.percentile.monthly-3443635e.js → BMI_BOYS.percentile.monthly-c582283a.js} +0 -0
  181. /package/build/esm/{BMI_BOYS.percentile.weekly-0c574335.js → BMI_BOYS.percentile.weekly-040c4e9d.js} +0 -0
  182. /package/build/esm/{BMI_BOYS.percentile.yearly-0300143e.js → BMI_BOYS.percentile.yearly-f0439fbe.js} +0 -0
  183. /package/build/esm/{BMI_BOYS.zscore.monthly-707a93f7.js → BMI_BOYS.zscore.monthly-9b45ac6b.js} +0 -0
  184. /package/build/esm/{BMI_BOYS.zscore.weekly-0865d817.js → BMI_BOYS.zscore.weekly-219d12b0.js} +0 -0
  185. /package/build/esm/{BMI_BOYS.zscore.yearly-ca5ee9c6.js → BMI_BOYS.zscore.yearly-00361623.js} +0 -0
  186. /package/build/esm/{BMI_GIRLS.percentile.monthly-2fc67867.js → BMI_GIRLS.percentile.monthly-30f16550.js} +0 -0
  187. /package/build/esm/{BMI_GIRLS.percentile.weekly-6d29cf9b.js → BMI_GIRLS.percentile.weekly-043f4e9d.js} +0 -0
  188. /package/build/esm/{BMI_GIRLS.percentile.yearly-25a65396.js → BMI_GIRLS.percentile.yearly-32ecc65b.js} +0 -0
  189. /package/build/esm/{BMI_GIRLS.zscore.monthly-94cbbace.js → BMI_GIRLS.zscore.monthly-bda619d9.js} +0 -0
  190. /package/build/esm/{BMI_GIRLS.zscore.weekly-1626793a.js → BMI_GIRLS.zscore.weekly-e95abfa7.js} +0 -0
  191. /package/build/esm/{BMI_GIRLS.zscore.yearly-0b50f267.js → BMI_GIRLS.zscore.yearly-691ea679.js} +0 -0
  192. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-91147239.js → HEAD CIRCUM_BOYS.percentile.monthly-7ca0c227.js} +0 -0
  193. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-22169d8a.js → HEAD CIRCUM_BOYS.percentile.weekly-2db6d8c1.js} +0 -0
  194. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-25129e38.js → HEAD CIRCUM_BOYS.percentile.yearly-2b87c0a8.js} +0 -0
  195. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-0e1c7191.js → HEAD CIRCUM_BOYS.zscore.monthly-784e3d4a.js} +0 -0
  196. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-d258ba00.js → HEAD CIRCUM_BOYS.zscore.weekly-e7d7e194.js} +0 -0
  197. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e4a58c01.js → HEAD CIRCUM_BOYS.zscore.yearly-f3bcd7a3.js} +0 -0
  198. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0a3defc4.js → HEAD CIRCUM_GIRLS.percentile.monthly-76d1a070.js} +0 -0
  199. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5bb6af5d.js → HEAD CIRCUM_GIRLS.percentile.weekly-93d11c78.js} +0 -0
  200. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-2ef3ef2c.js → HEAD CIRCUM_GIRLS.percentile.yearly-9597a7ef.js} +0 -0
  201. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-1c74120d.js → HEAD CIRCUM_GIRLS.zscore.monthly-621086ed.js} +0 -0
  202. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f2d2c3ad.js → HEAD CIRCUM_GIRLS.zscore.weekly-25b300c5.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-76b59c04.js → HEAD CIRCUM_GIRLS.zscore.yearly-1c51d69b.js} +0 -0
  204. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-d6b06eb5.js → HEIGHT_BOYS.percentile.monthly-50ab630e.js} +0 -0
  205. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-8d4689ed.js → HEIGHT_BOYS.percentile.weekly-4cd5e1c2.js} +0 -0
  206. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-d2f04b2b.js → HEIGHT_BOYS.percentile.yearly-82ba94fe.js} +0 -0
  207. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9b3ab713.js → HEIGHT_BOYS.zscore.monthly-c083e118.js} +0 -0
  208. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-ff4c4204.js → HEIGHT_BOYS.zscore.weekly-21fa0108.js} +0 -0
  209. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-40eb282d.js → HEIGHT_BOYS.zscore.yearly-2d66ebb5.js} +0 -0
  210. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-98a3bb2f.js → HEIGHT_GIRLS.percentile.monthly-47543377.js} +0 -0
  211. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-7ad34fc1.js → HEIGHT_GIRLS.percentile.weekly-9ce8fa50.js} +0 -0
  212. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4c3b0fdb.js → HEIGHT_GIRLS.percentile.yearly-c7236e91.js} +0 -0
  213. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-395f056a.js → HEIGHT_GIRLS.zscore.monthly-a4155804.js} +0 -0
  214. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b6db4f98.js → HEIGHT_GIRLS.zscore.weekly-23d7512b.js} +0 -0
  215. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-81841be0.js → HEIGHT_GIRLS.zscore.yearly-e9a16983.js} +0 -0
  216. /package/build/esm/{Onboarding-2997627e.js → Onboarding-1500d3ab.js} +0 -0
  217. /package/build/esm/{Visible-ecdeef6e.js → Visible-ed55004f.js} +0 -0
  218. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-9dccf219.js → WEIGHT_BOYS.percentile.monthly-73da7460.js} +0 -0
  219. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b04d4d96.js → WEIGHT_BOYS.percentile.weekly-404cf2c5.js} +0 -0
  220. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-3ef754ee.js → WEIGHT_BOYS.percentile.yearly-c666c502.js} +0 -0
  221. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-a5e30e5d.js → WEIGHT_BOYS.zscore.monthly-e720e0aa.js} +0 -0
  222. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-37ac507f.js → WEIGHT_BOYS.zscore.weekly-8cb2d595.js} +0 -0
  223. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-88cd0b91.js → WEIGHT_BOYS.zscore.yearly-15b69a5a.js} +0 -0
  224. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-27771f88.js → WEIGHT_GIRLS.percentile.monthly-ba196fe6.js} +0 -0
  225. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-fadb60fd.js → WEIGHT_GIRLS.percentile.weekly-c7caec01.js} +0 -0
  226. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-3d7d0968.js → WEIGHT_GIRLS.percentile.yearly-b4eef6eb.js} +0 -0
  227. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-258811f6.js → WEIGHT_GIRLS.zscore.monthly-329f06d3.js} +0 -0
  228. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-25e6d088.js → WEIGHT_GIRLS.zscore.weekly-072c2d59.js} +0 -0
  229. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-89016ea4.js → WEIGHT_GIRLS.zscore.yearly-3f458c9f.js} +0 -0
  230. /package/build/esm/{constants-95083db2.js → constants-3ad54375.js} +0 -0
  231. /package/build/esm/{cookieHelper-7fe78adc.js → cookieHelper-b704a99d.js} +0 -0
  232. /package/build/esm/{dataTransform-dc6126e2.js → dataTransform-58bf35bc.js} +0 -0
  233. /package/build/esm/{index-62d112a2.js → index-50360139.js} +0 -0
  234. /package/build/esm/{isProduction-58dc4545.js → isProduction-7b6caf54.js} +0 -0
  235. /package/build/esm/{localizeNumberFormat-6f59a007.js → localizeNumberFormat-8f82335a.js} +0 -0
  236. /package/build/esm/{normalizeLink-84e7c401.js → normalizeLink-57024cc4.js} +0 -0
  237. /package/build/esm/{number-451747e2.js → number-bbfcc6d3.js} +0 -0
  238. /package/build/esm/{paths-fc9b4162.js → paths-617b04b7.js} +0 -0
  239. /package/build/esm/{screenSizeContext-0c4de282.js → screenSizeContext-f9371d3a.js} +0 -0
  240. /package/build/esm/{theme-af752e5e.js → theme-03890c40.js} +0 -0
  241. /package/build/esm/{translationsContext-9f44bd6e.js → translationsContext-9b53dee4.js} +0 -0
  242. /package/build/esm/{tslib.es6-8768ccb4.js → tslib.es6-cd3045bb.js} +0 -0
  243. /package/build/esm/{types-cb553add.js → types-c3cf7c56.js} +0 -0
  244. /package/build/esm/{useIsInit-c623185f.js → useIsInit-ca4d0894.js} +0 -0
  245. /package/build/esm/{useOutsideClick-212afee0.js → useOutsideClick-6a5ba5dc.js} +0 -0
  246. /package/build/esm/{useScrollbarSize-b7936637.js → useScrollbarSize-ffd5c88e.js} +0 -0
  247. /package/build/esm/{useUniqueId-9b451fb4.js → useUniqueId-40e78470.js} +0 -0
  248. /package/build/{index-baccd00d.js → index-c078c9c5.js} +0 -0
  249. /package/build/{isProduction-05e7c228.js → isProduction-eb455cb8.js} +0 -0
  250. /package/build/{localizeNumberFormat-acf45403.js → localizeNumberFormat-95755fb4.js} +0 -0
  251. /package/build/{normalizeLink-2bada72a.js → normalizeLink-8f41f0f8.js} +0 -0
  252. /package/build/{number-482d133b.js → number-f74917a0.js} +0 -0
  253. /package/build/{paths-22f0ba56.js → paths-83cbd404.js} +0 -0
  254. /package/build/{screenSizeContext-59a94a80.js → screenSizeContext-866124b0.js} +0 -0
  255. /package/build/{theme-28461fa8.js → theme-0f737568.js} +0 -0
  256. /package/build/{translationsContext-98b81b33.js → translationsContext-43108add.js} +0 -0
  257. /package/build/{tslib.es6-348c1d17.js → tslib.es6-03552654.js} +0 -0
  258. /package/build/{types-05f89acc.js → types-04d4392e.js} +0 -0
  259. /package/build/{useIsInit-f1363578.js → useIsInit-b62d8189.js} +0 -0
  260. /package/build/{useOutsideClick-73c901f1.js → useOutsideClick-e7c5d7d4.js} +0 -0
  261. /package/build/{useScrollbarSize-8416112b.js → useScrollbarSize-07e0957f.js} +0 -0
  262. /package/build/{useUniqueId-1ddd9403.js → useUniqueId-0723d384.js} +0 -0
@@ -1 +1 @@
1
- import{aG as e,aH as t,aI as a}from"./utils-b9aaa166.js";export{aK as Accordion,A as Anchor,z as AspectRatio,y as Avatar,aJ as Breadcrumbs,E as Button,aL as Carousel,aF as Checkbox,J as Input,aB as MAPPED_LOCALE,aO as OTHER_THEME_CONFIG,aE as OTP,aC as Phone,aP as Popover,aD as Radio,a8 as Select,ar as Tabs,x as Text,aM as emotionCache,aN as getHeadingStyles,aI as getMantineThemeOverride,aA as themeColors,aH as useMantineLocale}from"./utils-b9aaa166.js";export{D as DatePicker}from"./index-4a918b26.js";export{I as Indicator}from"./index-1237a0f5.js";import s,{useMemo as r}from"react";export{M as Modal}from"./index-bee89bbd.js";import{_ as o}from"./tslib.es6-8768ccb4.js";import{Badge as i,Spoiler as n,LoadingOverlay as l,MantineProvider as c,clsx as m,Title as d,Text as p,Button as u}from"@mantine/core";import{t as f}from"./theme-af752e5e.js";import{T as g}from"./index-5d893b18.js";import{u as h}from"./useTranslations-9d8df4a8.js";export{b as CentralCarousel}from"./index-4d6e08f0.js";export{S as Slider}from"./index-cdc79555.js";export{S as Switch}from"./index-62d112a2.js";import"styled-components";import"./screenSizeContext-0c4de282.js";import"lodash/throttle";import"./gAssets.js";import"./index-27183b30.js";import"date-fns/locale";import"./Onboarding-2997627e.js";import"./isProduction-58dc4545.js";import"./index-087b3c4b.js";import"dayjs";import"./useUniqueId-9b451fb4.js";import"./translationsContext-9f44bd6e.js";import"string-format";import"react-keyed-flatten-children";import"@mantine/hooks";import"@mantine/dates";import"@mantine/carousel";import"lodash/debounce";import"./cookieHelper-7fe78adc.js";import"slugify";import"./index-04337202.js";const j=t=>s.createElement(e,Object.assign({minRows:2,maxRows:4},t)),v=e=>{var{color:t=f.colors.primaryBase,styles:a}=e,r=o(e,["color","styles"]);return s.createElement(i,Object.assign({variant:"filled",color:t,styles:Object.assign({root:{borderRadius:"2px",background:t,textTransform:"unset"}},a)},r))},O=e=>{var{children:t,line:a,lineHeight:i,trackingAttributes:l,maxHeight:c,customExpandFn:m}=e,d=o(e,["children","line","lineHeight","trackingAttributes","maxHeight","customExpandFn"]);const{t:p}=h(),u=r((()=>c||(a&&i?a*i:(console.error("[HHG-Comp]:[Spoiler] Please provide maxHeight, or line with lineHeight"),0))),[]);t||console.error("[HHG-Comp]:[Spoiler] Please provide children");const b=r((()=>l?{"data-event-category":l.dataEventCategory,"data-event-action":l.dataEventAction,"data-event-label":l.dataEventLabel}:{}),[l]);return s.createElement(n,Object.assign({showLabel:s.createElement(g,Object.assign({size:"p3",color:f.colors.primaryBase},b,{onClick:m}),p("articlePage.readMore")),hideLabel:s.createElement(g,Object.assign({size:"p3",color:f.colors.primaryBase},b),p("articlePage.showLess"))},d,{maxHeight:u}),t)};const C=e=>(function(e=!1){s.useEffect((()=>{if(e){const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}}),[e])}(e.visible),s.createElement(l,Object.assign({loaderProps:{color:f.colors.primaryBase}},e))),H=e=>{var{children:r,locale:i,template:n="hb"}=e,l=o(e,["children","locale","template"]);return t(i),s.createElement(c,Object.assign({theme:a(i,n)},l),r)};var P="MON6sfi",N="pS-tJD7",T="s3tJ9-5",w="fNsZr1b",k="uuxV74v",B="YohjTDU";function L(e){const{icon:t,title:a,description:r,button:i,buttonProps:n,style:l,className:c}=e,b=n||{},{size:f="lg",variant:g="outline"}=b,h=o(b,["size","variant"]),x=t;return s.createElement("div",{className:m("result",P,c),style:l},x&&s.createElement("div",{className:m("resultIconContainer",N)},s.createElement(x,{className:m("resultIcon",T)})),s.createElement(d,{order:3,size:"h3",className:m("resultTitle",w)},a),s.createElement(p,{className:m("resultDescription",k)},r),i&&s.createElement(u,Object.assign({},h,{size:f,variant:g,className:m("resultButton",B,h.className)}),i))}export{v as Badge,C as LoadingOverlay,H as MantineProvider,L as Result,O as Spoiler,j as TextArea};
1
+ import{aG as e,aH as t,aI as a}from"./utils-0c45642f.js";export{aK as Accordion,A as Anchor,z as AspectRatio,y as Avatar,aJ as Breadcrumbs,E as Button,aL as Carousel,aF as Checkbox,J as Input,aB as MAPPED_LOCALE,aO as OTHER_THEME_CONFIG,aE as OTP,aC as Phone,aP as Popover,aD as Radio,a8 as Select,ar as Tabs,x as Text,aM as emotionCache,aN as getHeadingStyles,aI as getMantineThemeOverride,aA as themeColors,aH as useMantineLocale}from"./utils-0c45642f.js";export{D as DatePicker}from"./index-a5bbdf9a.js";export{I as Indicator}from"./index-e61b4328.js";import s,{useMemo as r}from"react";export{M as Modal}from"./index-f2a3d7a4.js";import{_ as o}from"./tslib.es6-cd3045bb.js";import{Badge as i,Spoiler as n,LoadingOverlay as l,MantineProvider as c,clsx as m,Title as d,Text as p,Button as u}from"@mantine/core";import{t as f}from"./theme-03890c40.js";import{T as g}from"./index-0d108e90.js";import{u as h}from"./useTranslations-5d2ff12d.js";export{b as CentralCarousel}from"./index-2c6bee3c.js";export{S as Slider}from"./index-4c4c5c48.js";export{S as Switch}from"./index-50360139.js";import"styled-components";import"./screenSizeContext-f9371d3a.js";import"lodash/throttle";import"./gAssets.js";import"./index-147ed097.js";import"date-fns/locale";import"./Onboarding-1500d3ab.js";import"./isProduction-7b6caf54.js";import"./index-aa8a897c.js";import"dayjs";import"./useUniqueId-40e78470.js";import"./translationsContext-9b53dee4.js";import"string-format";import"react-keyed-flatten-children";import"@mantine/hooks";import"@mantine/dates";import"@mantine/carousel";import"lodash/debounce";import"./cookieHelper-b704a99d.js";import"slugify";import"./index-931534ea.js";const j=t=>s.createElement(e,Object.assign({minRows:2,maxRows:4},t)),v=e=>{var{color:t=f.colors.primaryBase,styles:a}=e,r=o(e,["color","styles"]);return s.createElement(i,Object.assign({variant:"filled",color:t,styles:Object.assign({root:{borderRadius:"2px",background:t,textTransform:"unset"}},a)},r))},O=e=>{var{children:t,line:a,lineHeight:i,trackingAttributes:l,maxHeight:c,customExpandFn:m}=e,d=o(e,["children","line","lineHeight","trackingAttributes","maxHeight","customExpandFn"]);const{t:p}=h(),u=r((()=>c||(a&&i?a*i:(console.error("[HHG-Comp]:[Spoiler] Please provide maxHeight, or line with lineHeight"),0))),[]);t||console.error("[HHG-Comp]:[Spoiler] Please provide children");const b=r((()=>l?{"data-event-category":l.dataEventCategory,"data-event-action":l.dataEventAction,"data-event-label":l.dataEventLabel}:{}),[l]);return s.createElement(n,Object.assign({showLabel:s.createElement(g,Object.assign({size:"p3",color:f.colors.primaryBase},b,{onClick:m}),p("articlePage.readMore")),hideLabel:s.createElement(g,Object.assign({size:"p3",color:f.colors.primaryBase},b),p("articlePage.showLess"))},d,{maxHeight:u}),t)};const C=e=>(function(e=!1){s.useEffect((()=>{if(e){const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}}),[e])}(e.visible),s.createElement(l,Object.assign({loaderProps:{color:f.colors.primaryBase}},e))),H=e=>{var{children:r,locale:i,template:n="hb"}=e,l=o(e,["children","locale","template"]);return t(i),s.createElement(c,Object.assign({theme:a(i,n)},l),r)};var P="MON6sfi",N="pS-tJD7",T="s3tJ9-5",w="fNsZr1b",k="uuxV74v",B="YohjTDU";function L(e){const{icon:t,title:a,description:r,button:i,buttonProps:n,style:l,className:c}=e,b=n||{},{size:f="lg",variant:g="outline"}=b,h=o(b,["size","variant"]),x=t;return s.createElement("div",{className:m("result",P,c),style:l},x&&s.createElement("div",{className:m("resultIconContainer",N)},s.createElement(x,{className:m("resultIcon",T)})),s.createElement(d,{order:3,size:"h3",className:m("resultTitle",w)},a),s.createElement(p,{className:m("resultDescription",k)},r),i&&s.createElement(u,Object.assign({},h,{size:f,variant:g,className:m("resultButton",B,h.className)}),i))}export{v as Badge,C as LoadingOverlay,H as MantineProvider,L as Result,O as Spoiler,j as TextArea};
package/build/esm/misc.js CHANGED
@@ -1 +1 @@
1
- export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-6f59a007.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,q as ScreenSizeContextProvider,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,p as getWindowSizeGroups,l as getWrapperDomWithSelector,m as makeParams,o as safeEncodeURI,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp,n as startCase,t as toggleNoScroll}from"./screenSizeContext-0c4de282.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-7fe78adc.js";import"react";import"styled-components";export{M as MBTheme,t as theme}from"./theme-af752e5e.js";export{a as abbreviateNumber}from"./number-451747e2.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-eab022c9.js";export{f as formatHealthTool,g as getDynamicHealthTool,a as getDynamicHealthToolWithCache}from"./getDynamicHealthTool-085c0c6f.js";export{g as getSocialList}from"./getSocialList-0839eb47.js";export{f as formatPill}from"./dataTransform-dc6126e2.js";import"dayjs";import"lodash/throttle";import"./index-27183b30.js";import"date-fns/locale";import"./Onboarding-2997627e.js";import"./isProduction-58dc4545.js";import"./tslib.es6-8768ccb4.js";import"./core-24b2d67b.js";import"./normalizeLink-84e7c401.js";import"./gAssets.js";
1
+ export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-8f82335a.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,q as ScreenSizeContextProvider,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,p as getWindowSizeGroups,l as getWrapperDomWithSelector,m as makeParams,o as safeEncodeURI,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp,n as startCase,t as toggleNoScroll}from"./screenSizeContext-f9371d3a.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-b704a99d.js";import"react";import"styled-components";export{M as MBTheme,t as theme}from"./theme-03890c40.js";export{a as abbreviateNumber}from"./number-bbfcc6d3.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-3ee96840.js";export{f as formatHealthTool,g as getDynamicHealthTool,a as getDynamicHealthToolWithCache}from"./getDynamicHealthTool-f15b6992.js";export{g as getSocialList}from"./getSocialList-c368d04e.js";export{f as formatPill}from"./dataTransform-58bf35bc.js";import"dayjs";import"lodash/throttle";import"./index-147ed097.js";import"date-fns/locale";import"./Onboarding-1500d3ab.js";import"./isProduction-7b6caf54.js";import"./tslib.es6-cd3045bb.js";import"./core-c85dc325.js";import"./normalizeLink-57024cc4.js";import"./gAssets.js";
@@ -1 +1 @@
1
- import"./tslib.es6-8768ccb4.js";import"react";import"./core-24b2d67b.js";export{N as NavigationV2,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-f1985a4e.js";import"./index-27183b30.js";import"./normalizeLink-84e7c401.js";import"./routing-eab022c9.js";import"./dataTransform-73a8e298.js";import"./index.styled-430ea9ec.js";import"./isProduction-58dc4545.js";import"./utils-b9aaa166.js";import"@mantine/core";import"styled-components";import"./index-4d6e08f0.js";import"@mantine/carousel";import"@mantine/hooks";import"./theme-af752e5e.js";import"./screenSizeContext-0c4de282.js";import"lodash/throttle";import"./gAssets.js";import"date-fns/locale";import"./Onboarding-2997627e.js";import"./index-087b3c4b.js";import"dayjs";import"./useUniqueId-9b451fb4.js";import"./index-5d893b18.js";import"./translationsContext-9f44bd6e.js";import"string-format";import"react-keyed-flatten-children";import"@mantine/dates";import"lodash/debounce";import"./cookieHelper-7fe78adc.js";import"slugify";import"./index-f9105193.js";import"./useTranslations-9d8df4a8.js";import"./index-04337202.js";import"./constants-95083db2.js";import"./index-1237a0f5.js";import"./useIsInit-c623185f.js";import"dayjs/plugin/relativeTime";
1
+ import"./tslib.es6-cd3045bb.js";import"react";import"./core-c85dc325.js";export{N as NavigationV2,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-8899064c.js";import"./index-147ed097.js";import"./normalizeLink-57024cc4.js";import"./routing-3ee96840.js";import"./dataTransform-530f50c0.js";import"./index.styled-fb59a984.js";import"./isProduction-7b6caf54.js";import"./utils-0c45642f.js";import"@mantine/core";import"styled-components";import"./index-2c6bee3c.js";import"@mantine/carousel";import"@mantine/hooks";import"./theme-03890c40.js";import"./screenSizeContext-f9371d3a.js";import"lodash/throttle";import"./gAssets.js";import"date-fns/locale";import"./Onboarding-1500d3ab.js";import"./index-aa8a897c.js";import"dayjs";import"./useUniqueId-40e78470.js";import"./index-0d108e90.js";import"./translationsContext-9b53dee4.js";import"string-format";import"react-keyed-flatten-children";import"@mantine/dates";import"lodash/debounce";import"./cookieHelper-b704a99d.js";import"slugify";import"./index-a9322280.js";import"./useTranslations-5d2ff12d.js";import"./index-931534ea.js";import"./constants-3ad54375.js";import"./index-e61b4328.js";import"./useIsInit-ca4d0894.js";import"dayjs/plugin/relativeTime";
@@ -1 +1 @@
1
- import{a as e,_ as o}from"./tslib.es6-8768ccb4.js";import t,{useContext as n,useState as r,useRef as a,useEffect as i,useMemo as s,useCallback as l}from"react";import{Input as d,Grid as m,Title as c}from"@mantine/core";import{useInterval as p,useCounter as u}from"@mantine/hooks";import{B as g}from"./index-04337202.js";import{x as b,aC as E,J as h,aD as f,aE as v,aF as y,w,E as S}from"./utils-b9aaa166.js";import{u as P,a as j,F as k,O as C,b as x}from"./index-a61517ae.js";import{u as B}from"./useTranslations-9d8df4a8.js";import"lodash/debounce";import"./isProduction-58dc4545.js";import{L as z}from"./index-27183b30.js";import{O as T}from"./Onboarding-2997627e.js";export{O as OnboardingStep}from"./Onboarding-2997627e.js";import"dayjs";import{M as F}from"./screenSizeContext-0c4de282.js";import"styled-components";import{t as N}from"./theme-af752e5e.js";import"./gAssets.js";import{S as I,a as L,b as q,c as A,d as D,e as V,f as _,g as U,h as R,i as W}from"./index.styled-78c42045.js";import{yupResolver as H}from"@mantine/form";import"./index-4d6e08f0.js";import"./index-087b3c4b.js";import"@mantine/dates";import{D as Y}from"./index-4a918b26.js";import{A as $}from"./index-3b01b050.js";import{V as G}from"./Visible-ecdeef6e.js";import{M as Z,h as J}from"./utils-47af45cf.js";export{M as MAPPED_LOCALE}from"./utils-47af45cf.js";import*as K from"yup";import Q from"lodash/throttle";import{T as X}from"./index-5d893b18.js";import{format as ee}from"date-fns";import"./translationsContext-9f44bd6e.js";import"string-format";import"react-keyed-flatten-children";import"@mantine/carousel";import"./useUniqueId-9b451fb4.js";import"./cookieHelper-7fe78adc.js";import"slugify";import"date-fns/locale";const oe=({inputOrder:e=["phone"],withSimilac:o=!1,customTerms:n=""})=>{const{t:r}=B(),a=P(),i=t.createElement(d.Wrapper,Object.assign({className:o?"input-control":"phone-input",withAsterisk:!0},o?{label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.similac.input.phone"))}:{}),t.createElement(E,Object.assign({defaultCountry:Z[process.env.UNIFY_LOCALE]||"VN"},a.getInputProps("phone"))),t.createElement(d.Error,{size:"md"},a.errors.phone)),s=t.createElement(h,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.formEmail.yourName")),withAsterisk:!0},a.getInputProps("name"))),l=t.createElement(h,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.formEmail.yourEmail")),withAsterisk:!0},a.getInputProps("email"))),m=t.createElement(Y,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.formEmail.yourBirthday")),placeholder:"DD/MM/YYYY"},a.getInputProps("dob"))),c=t.createElement(f.Group,Object.assign({className:"radio-group",label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("bmi.selectGender"))},a.getInputProps("gender")),t.createElement(f,{value:"0",label:r("onboarding.formEmail.genderMale")}),t.createElement(f,{value:"1",label:r("onboarding.formEmail.genderFemale")})),p=t.createElement("div",{className:"otp-input"},t.createElement(v,Object.assign({enterKeyHint:void 0,nonce:void 0},a.getInputProps("otp"))),t.createElement(d.Error,null,a.errors.otp)),u=t.createElement(h.Password,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.updatePassword.password")),withAsterisk:!0,rightSection:t.createElement(G,null)},a.getInputProps("password"))),g=t.createElement(h.Wrapper,Object.assign({},a.getInputProps("term",{type:"checkbox"}),{error:null,mb:16}),t.createElement(y,{label:n?t.createElement(b,{size:"p4",as:"span",sx:{a:{color:"#2d87f3",fontWeight:"bold",letterSpacing:0}}},n):t.createElement(b,{size:"p4",as:"span"},"Tôi đã đọc và đồng ý với các điều khoản và chương trình của"," ",t.createElement("a",null,t.createElement(b,{size:"label1",as:"span",weight:"bold",color:"blue.6"},"Hello Bacsi"))," ","và"," ",t.createElement("a",null,t.createElement(b,{size:"label1",as:"span",weight:"bold",color:"blue.6"},"Abbott Similac"))," ","và được hướng dẫn cách ngưng chương trình"),onChange:e=>{a.setFieldValue("term",e.currentTarget.checked)}}),t.createElement(d.Error,{size:"md"},a.getInputProps("term",{type:"checkbox"}).error)),w=t.createElement($,Object.assign({className:"input-control",label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.similac.input.address"))},a.getInputProps("address"))),S=t.createElement(h.Password,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.updatePassword.confirmPassword")),withAsterisk:!0,rightSection:t.createElement(G,null)},a.getInputProps("confirmPassword"))),j=e.map((e=>({phone:i,full_name:s,email:l,dob:m,gender:c,otp:p,password:u,confirm_password:S,term:g,address:w}[e]||null)));return t.createElement(I,null,j)},te=e=>K.object().shape({phone:K.string().required(e("onboarding.updatePhone.error")).default("")}),ne=e=>K.object().shape({phone:K.string().required(e("onboarding.updatePhone.error")).default(""),name:K.string().required(e("onboarding.errorMessage.requiredName")),email:K.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),address:K.mixed().required(e("onboarding.similac.address.error")),term:K.bool().oneOf([!0],e("onboarding.similac.term.error"))}),re=e=>K.object().shape({otp:K.string().required(e("onboarding.otpForm.error")).length(6,e("onboarding.otpForm.error")).default("")}),ae=e=>K.object().shape({email:K.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),name:K.string().required(e("onboarding.errorMessage.requiredName"))}),ie=e=>K.object().shape({password:K.string().required(e("onboarding.errorMessage.requiredPassword")).min(8,e("onboarding.errorMessage.minLength",{length:8})).matches(/.*[A-Z].*/,e("onboarding.errorMessage.passWithPattern")).default(""),confirmPassword:K.string().required(e("onboarding.errorMessage.requiredConfirmPassword")).oneOf([K.ref("password"),null],e("onboarding.errorMessage.passNotMatch")).default("")}),se=({onClose:o,onSubmit:n,canSkip:r=!0,customFormTexts:a})=>{const{t:i}=B(),s=j({initialValues:{phone:""},validate:H(te(i))});return t.createElement(L,{heading:(null==a?void 0:a.heading)||i("onboarding.updatePhone.heading"),description:(null==a?void 0:a.description)||i("onboarding.updatePhone.description")},t.createElement(k,{form:s},t.createElement("form",{onSubmit:s.onSubmit((o=>e(void 0,void 0,void 0,(function*(){n(o.phone)}))),(e=>{console.log(e)}))},t.createElement(oe,{inputOrder:["phone"]}),t.createElement(g,{color:"primary",isBlock:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},i("onboarding.button.continue")),r&&t.createElement(g,{color:"ghost",isBlock:!0,size:"lg",onClick:o,type:"button"},i("onboarding.button.skip")))))},le=n=>{var{onClose:r,onSubmit:a,canSkip:i=!0,customFormTexts:s,customTerms:l,defaultValues:d}=n,m=o(n,["onClose","onSubmit","canSkip","customFormTexts","customTerms","defaultValues"]);const{t:c}=B(),{isMobile:p}=w(),u=j({initialValues:Object.assign({phone:"",term:!1},d),validate:H(ne(c))});return t.createElement(L,Object.assign({heading:(null==s?void 0:s.heading)||c("onboarding.updatePhone.heading"),description:(null==s?void 0:s.description)||c("onboarding.updatePhone.description"),hiddenLogo:p},m),t.createElement(k,{form:u},t.createElement("form",{onSubmit:u.onSubmit((o=>e(void 0,void 0,void 0,(function*(){a(o)}))),(e=>{console.log(e)}))},t.createElement(oe,{inputOrder:["full_name","email","phone","address","term"],withSimilac:!0,customTerms:l}),t.createElement(S,{fullWidth:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},c("onboarding.button.continue")),i&&t.createElement(S,{variant:"ghost",fullWidth:!0,size:"lg",onClick:r,type:"button"},c("onboarding.button.skip")))))},de=e=>{var{withSimilac:n=!1}=e,r=o(e,["withSimilac"]);return n?t.createElement(le,Object.assign({},r)):t.createElement(se,Object.assign({},r))},me=({onSubmit:o,phone:l,email:d,onResendCode:m,otpError:c,onClose:b,loading:E,onBack:h,canSkip:f,outOfEdit:v})=>{const{siteType:y,isMarryBaby:w}=n(C),[S,P]=r(30),O=p((()=>P((e=>e-1))),1e3),[M,x]=u(0,{min:0,max:3}),z=a(!0),{t:T}=B();i((()=>(O.start(),O.stop)),[]),i((()=>{0===S&&(O.stop(),z.current=!1)}),[S]);const F=j({initialValues:{otp:""},validate:H(re(T))});i((()=>{c&&F.setFieldError("otp",c)}),[c]);const I=s((()=>Q((()=>{z.current||(x.increment(),P(30),null==m||m(l||d),O.start(),z.current=!0)}),1e3,{trailing:!1})),[l,d,m,O]);return t.createElement(q,{heading:T("onboarding.otpForm.heading"),description:t.createElement(t.Fragment,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:l?T("onboarding.otpForm.description",{phone:`<b style="color:${N.colors.gray800}">${l.slice(0,-3).replace(/./g,"x").concat(l.slice(-3))}</b>`}):T("onboarding.otpForm.descriptionEmail",{email:`<b style="color:${N.colors.gray800}">${J(d)}</b>`})}}),!v&&t.createElement("svg",{onClick:()=>{null==h||h()},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},t.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},t.createElement(k,{form:F},t.createElement("form",{onSubmit:F.onSubmit((t=>e(void 0,void 0,void 0,(function*(){x.increment(),o(t.otp)}))),(e=>{console.log(e)}))},t.createElement(oe,{inputOrder:["otp"]}),t.createElement("div",{className:"resend"},t.createElement(X,{size:"p4",color:N.colors.gray400},T("onboarding.otpForm.notReceiveOTP")),t.createElement(X,{as:"a",size:"p4",color:w?N.mbColors.pink:N.colors.primaryBase,onClick:I},T("onboarding.otpForm.resendCode",{seconds:S}))),t.createElement(g,{theme:y,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:E,disabled:E,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},T("onboarding.button.continue")),f&&M>=3&&t.createElement(g,{theme:y,color:"ghost",isBlock:!0,size:"lg",onClick:b,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none",type:"button"},T("onboarding.button.skip")))))},ce=({onClose:e,onSubmit:o,canSkip:r,loading:a,errorMessage:s,initialData:l})=>{const{t:d,locale:m}=B(),{siteType:c,isMarryBaby:p}=n(C),u=j({validate:H(ae(d))});return i((()=>{u.setValues(Object.assign(Object.assign({gender:"0"},l),(null==l?void 0:l.birthday)&&{birthday:new Date(l.birthday)}))}),[l]),i((()=>{s&&u.setFieldError("email",s)}),[s]),t.createElement(x,{heading:d("onboarding.formEmail.heading"),description:d("onboarding.formEmail.description",{site:p?"Marry Baby":z[m].SITE_NAME_FORMATTED})},t.createElement(k,{form:u},t.createElement("form",{className:"form",onSubmit:u.onSubmit((e=>{o(Object.assign(Object.assign({},e),{birthday:e.birthday&&ee(e.birthday,"yyyy-MM-dd")}))}),(e=>{console.log({fieldErrors:e})}))},t.createElement(oe,{inputOrder:["full_name","email","dob","gender"]}),t.createElement(g,{color:"primary",isBlock:!0,size:"lg",type:"submit",theme:c,isLoading:a,disabled:a},d("onboarding.button.continue")),r&&t.createElement(g,{theme:c,color:"ghost",isBlock:!0,size:"lg",onClick:e},d("onboarding.button.skip")))))},pe=({onClose:e,onSubmit:o,canSkip:n,errorMessage:r,loading:a})=>{const{t:i}=B(),s=j({initialValues:{password:"",confirmPassword:""},validate:H(ie(i))});return t.createElement(x,{heading:i("onboarding.updatePassword.heading"),description:i("onboarding.updatePassword.description")},t.createElement(k,{form:s},t.createElement("form",{className:"form",onSubmit:s.onSubmit((e=>o((null==e?void 0:e.password)||"")),(e=>{console.log({fieldErrors:e})}))},t.createElement(oe,{inputOrder:["password","confirm_password"]}),t.createElement(g,{color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:a,disabled:a},i("onboarding.button.continue")),n&&t.createElement(g,{color:"ghost",isBlock:!0,size:"lg",onClick:e},i("onboarding.button.skip")),r&&t.createElement(d.Error,{className:"form-error"},r))))},ue=n=>{var{banner:a,canSkip:i,createPassError:s,createPassLoading:d,customFormTexts:p,emailLoading:E,flow:h=[T.Phone,T.OTP],initialData:f,onClose:v,onCreatePassByEmail:y,onOtpSubmit:S,onPersonalInfoSubmit:P,onPhoneSubmit:j,onResendCode:k,otpError:O,otpLoading:M,personalInfoError:z,resultScreenProps:I,siteType:L,step:q,withSimilac:H=!1,similacFormProps:Y}=n,$=o(n,["banner","canSkip","createPassError","createPassLoading","customFormTexts","emailLoading","flow","initialData","onClose","onCreatePassByEmail","onOtpSubmit","onPersonalInfoSubmit","onPhoneSubmit","onResendCode","otpError","otpLoading","personalInfoError","resultScreenProps","siteType","step","withSimilac","similacFormProps"]);const{t:G}=B(),[Z,J]=r(q||h[0]),[K,Q]=r(""),[X,ee]=r(""),[oe,te]=u(0,{min:0,max:2}),{isMobile:ne}=w(),re=l((()=>{const e=h.indexOf(Z)+1;e<=h.length-1&&J(h[e])}),[Z]),ae=l((()=>{const e=h.indexOf(Z)-1;e>=0&&J(h[e])}),[Z]),ie=o=>e(void 0,void 0,void 0,(function*(){try{!(yield S(o))&&re()}catch(e){console.error(e)}})),se=()=>{oe>=2||(te.increment(),ae())},ue="marryBaby"===L;return t.createElement(C.Provider,{value:{siteType:L,isMarryBaby:ue}},t.createElement(A,Object.assign({},$),h.length>0?t.createElement(D,null,t.createElement(m,{sx:{[F.mbDown]:{margin:0},".mantine-Grid-col":{[F.mbDown]:{padding:0}}}},t.createElement(m.Col,{span:"object"!=typeof a&&!H||ne?12:6,order:H?2:1,orderMd:H?1:2,sx:{zIndex:H?99:void 0}},t.createElement(V,{"data-similac":H,"data-has-banner":"object"==typeof a},Z===T.Phone&&(H?t.createElement(le,{onClose:v,canSkip:i,onSubmit:o=>e(void 0,void 0,void 0,(function*(){var e;try{const t=null==o?void 0:o.phone;t&&(Q(t),yield Promise.all([null===(e=null==Y?void 0:Y.onFormSubmit)||void 0===e?void 0:e.call(Y,o),null==j?void 0:j(t)])),re()}catch(e){console.error(e)}})),customFormTexts:p.onboarding,defaultValues:null==Y?void 0:Y.defaultValues,customTerms:null==Y?void 0:Y.customTerms}):t.createElement(de,{onClose:v,canSkip:i,onSubmit:o=>e(void 0,void 0,void 0,(function*(){try{Q(o),yield null==j?void 0:j(o),re()}catch(e){console.error(e)}})),customFormTexts:p.onboarding})),Z===T.OTP&&t.createElement(me,{onClose:v,onSubmit:ie,phone:K,onResendCode:k,otpError:O,loading:M,canSkip:i,onBack:se,outOfEdit:oe>=2}),Z===T.OTPEmail&&t.createElement(me,{onClose:v,onSubmit:ie,onResendCode:k,otpError:O,loading:M,canSkip:i,onBack:se,outOfEdit:oe>=2,email:X}),Z===T.PersonalInfo&&t.createElement(ce,{initialData:null==f?void 0:f[T.PersonalInfo],onClose:v,canSkip:i,onSubmit:o=>e(void 0,void 0,void 0,(function*(){try{ee((null==o?void 0:o.email)||"");!(yield null==P?void 0:P(o))&&re()}catch(e){console.error(e)}})),errorMessage:z,loading:E}),Z===T.UpdatePassword&&t.createElement(pe,{onClose:v,canSkip:i,onSubmit:o=>e(void 0,void 0,void 0,(function*(){try{yield null==y?void 0:y(o),!s&&re()}catch(e){console.error(e)}})),errorMessage:s,loading:d}),Z===T.Result&&t.createElement(x,Object.assign({},I),t.createElement(g,{theme:L,size:"lg",onClick:v,className:"form-button"},G("onboarding.button.continue"))))),"object"==typeof a&&!H&&t.createElement(m.Col,{span:"object"!=typeof a&&!H||ne?12:6,order:H?2:1,orderMd:H?1:2},t.createElement(_,null,t.createElement(U,{"data-is-marry-baby":ue},t.createElement(R,null,(null==a?void 0:a.heading)&&t.createElement(c,{order:1,mb:24},null==a?void 0:a.heading),(null==a?void 0:a.description)&&t.createElement(b,{size:"p1",color:N.colors.gray800},G("onboarding.welcomeScreen.content"))),(null==a?void 0:a.imgSrc)&&t.createElement("div",null,t.createElement(W,{src:null==a?void 0:a.imgSrc,loading:"lazy"}))))),"object"==typeof a&&H&&(null==a?void 0:a.imgSrc)&&t.createElement(m.Col,{span:"auto",order:H?1:2,orderMd:H?2:1},t.createElement(W,{src:null==a?void 0:a.imgSrc,loading:"lazy",className:"similac"})))):"Incorrect flow"))};export{de as OnboardingForm,ue as OnboardingModal,me as OtpForm};
1
+ import{a as e,_ as o}from"./tslib.es6-cd3045bb.js";import t,{useContext as n,useState as r,useRef as a,useEffect as i,useMemo as s,useCallback as l}from"react";import{Input as d,Grid as m,Title as c}from"@mantine/core";import{useInterval as p,useCounter as u}from"@mantine/hooks";import{B as g}from"./index-931534ea.js";import{x as b,aC as E,J as h,aD as f,aE as v,aF as y,w,E as S}from"./utils-0c45642f.js";import{u as P,a as j,F as k,O as C,b as x}from"./index-c99bb820.js";import{u as B}from"./useTranslations-5d2ff12d.js";import"lodash/debounce";import"./isProduction-7b6caf54.js";import{L as z}from"./index-147ed097.js";import{O as T}from"./Onboarding-1500d3ab.js";export{O as OnboardingStep}from"./Onboarding-1500d3ab.js";import"dayjs";import{M as F}from"./screenSizeContext-f9371d3a.js";import"styled-components";import{t as N}from"./theme-03890c40.js";import"./gAssets.js";import{S as I,a as L,b as q,c as A,d as D,e as V,f as _,g as U,h as R,i as W}from"./index.styled-bf104269.js";import{yupResolver as H}from"@mantine/form";import"./index-2c6bee3c.js";import"./index-aa8a897c.js";import"@mantine/dates";import{D as Y}from"./index-a5bbdf9a.js";import{A as $}from"./index-c18841bd.js";import{V as G}from"./Visible-ed55004f.js";import{M as Z,h as J}from"./utils-7d74337d.js";export{M as MAPPED_LOCALE}from"./utils-7d74337d.js";import*as K from"yup";import Q from"lodash/throttle";import{T as X}from"./index-0d108e90.js";import{format as ee}from"date-fns";import"./translationsContext-9b53dee4.js";import"string-format";import"react-keyed-flatten-children";import"@mantine/carousel";import"./useUniqueId-40e78470.js";import"./cookieHelper-b704a99d.js";import"slugify";import"date-fns/locale";const oe=({inputOrder:e=["phone"],withSimilac:o=!1,customTerms:n=""})=>{const{t:r}=B(),a=P(),i=t.createElement(d.Wrapper,Object.assign({className:o?"input-control":"phone-input",withAsterisk:!0},o?{label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.similac.input.phone"))}:{}),t.createElement(E,Object.assign({defaultCountry:Z[process.env.UNIFY_LOCALE]||"VN"},a.getInputProps("phone"))),t.createElement(d.Error,{size:"md"},a.errors.phone)),s=t.createElement(h,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.formEmail.yourName")),withAsterisk:!0},a.getInputProps("name"))),l=t.createElement(h,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.formEmail.yourEmail")),withAsterisk:!0},a.getInputProps("email"))),m=t.createElement(Y,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.formEmail.yourBirthday")),placeholder:"DD/MM/YYYY"},a.getInputProps("dob"))),c=t.createElement(f.Group,Object.assign({className:"radio-group",label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("bmi.selectGender"))},a.getInputProps("gender")),t.createElement(f,{value:"0",label:r("onboarding.formEmail.genderMale")}),t.createElement(f,{value:"1",label:r("onboarding.formEmail.genderFemale")})),p=t.createElement("div",{className:"otp-input"},t.createElement(v,Object.assign({enterKeyHint:void 0,nonce:void 0},a.getInputProps("otp"))),t.createElement(d.Error,null,a.errors.otp)),u=t.createElement(h.Password,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.updatePassword.password")),withAsterisk:!0,rightSection:t.createElement(G,null)},a.getInputProps("password"))),g=t.createElement(h.Wrapper,Object.assign({},a.getInputProps("term",{type:"checkbox"}),{error:null,mb:16}),t.createElement(y,{label:n?t.createElement(b,{size:"p4",as:"span",sx:{a:{color:"#2d87f3",fontWeight:"bold",letterSpacing:0}}},n):t.createElement(b,{size:"p4",as:"span"},"Tôi đã đọc và đồng ý với các điều khoản và chương trình của"," ",t.createElement("a",null,t.createElement(b,{size:"label1",as:"span",weight:"bold",color:"blue.6"},"Hello Bacsi"))," ","và"," ",t.createElement("a",null,t.createElement(b,{size:"label1",as:"span",weight:"bold",color:"blue.6"},"Abbott Similac"))," ","và được hướng dẫn cách ngưng chương trình"),onChange:e=>{a.setFieldValue("term",e.currentTarget.checked)}}),t.createElement(d.Error,{size:"md"},a.getInputProps("term",{type:"checkbox"}).error)),w=t.createElement($,Object.assign({className:"input-control",label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.similac.input.address"))},a.getInputProps("address"))),S=t.createElement(h.Password,Object.assign({label:t.createElement(b,{size:"s4",weight:"semiBold",as:"span"},r("onboarding.updatePassword.confirmPassword")),withAsterisk:!0,rightSection:t.createElement(G,null)},a.getInputProps("confirmPassword"))),j=e.map((e=>({phone:i,full_name:s,email:l,dob:m,gender:c,otp:p,password:u,confirm_password:S,term:g,address:w}[e]||null)));return t.createElement(I,null,j)},te=e=>K.object().shape({phone:K.string().required(e("onboarding.updatePhone.error")).default("")}),ne=e=>K.object().shape({phone:K.string().required(e("onboarding.updatePhone.error")).default(""),name:K.string().required(e("onboarding.errorMessage.requiredName")),email:K.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),address:K.mixed().required(e("onboarding.similac.address.error")),term:K.bool().oneOf([!0],e("onboarding.similac.term.error"))}),re=e=>K.object().shape({otp:K.string().required(e("onboarding.otpForm.error")).length(6,e("onboarding.otpForm.error")).default("")}),ae=e=>K.object().shape({email:K.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),name:K.string().required(e("onboarding.errorMessage.requiredName"))}),ie=e=>K.object().shape({password:K.string().required(e("onboarding.errorMessage.requiredPassword")).min(8,e("onboarding.errorMessage.minLength",{length:8})).matches(/.*[A-Z].*/,e("onboarding.errorMessage.passWithPattern")).default(""),confirmPassword:K.string().required(e("onboarding.errorMessage.requiredConfirmPassword")).oneOf([K.ref("password"),null],e("onboarding.errorMessage.passNotMatch")).default("")}),se=({onClose:o,onSubmit:n,canSkip:r=!0,customFormTexts:a})=>{const{t:i}=B(),s=j({initialValues:{phone:""},validate:H(te(i))});return t.createElement(L,{heading:(null==a?void 0:a.heading)||i("onboarding.updatePhone.heading"),description:(null==a?void 0:a.description)||i("onboarding.updatePhone.description")},t.createElement(k,{form:s},t.createElement("form",{onSubmit:s.onSubmit((o=>e(void 0,void 0,void 0,(function*(){n(o.phone)}))),(e=>{console.log(e)}))},t.createElement(oe,{inputOrder:["phone"]}),t.createElement(g,{color:"primary",isBlock:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},i("onboarding.button.continue")),r&&t.createElement(g,{color:"ghost",isBlock:!0,size:"lg",onClick:o,type:"button"},i("onboarding.button.skip")))))},le=n=>{var{onClose:r,onSubmit:a,canSkip:i=!0,customFormTexts:s,customTerms:l,defaultValues:d}=n,m=o(n,["onClose","onSubmit","canSkip","customFormTexts","customTerms","defaultValues"]);const{t:c}=B(),{isMobile:p}=w(),u=j({initialValues:Object.assign({phone:"",term:!1},d),validate:H(ne(c))});return t.createElement(L,Object.assign({heading:(null==s?void 0:s.heading)||c("onboarding.updatePhone.heading"),description:(null==s?void 0:s.description)||c("onboarding.updatePhone.description"),hiddenLogo:p},m),t.createElement(k,{form:u},t.createElement("form",{onSubmit:u.onSubmit((o=>e(void 0,void 0,void 0,(function*(){a(o)}))),(e=>{console.log(e)}))},t.createElement(oe,{inputOrder:["full_name","email","phone","address","term"],withSimilac:!0,customTerms:l}),t.createElement(S,{fullWidth:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},c("onboarding.button.continue")),i&&t.createElement(S,{variant:"ghost",fullWidth:!0,size:"lg",onClick:r,type:"button"},c("onboarding.button.skip")))))},de=e=>{var{withSimilac:n=!1}=e,r=o(e,["withSimilac"]);return n?t.createElement(le,Object.assign({},r)):t.createElement(se,Object.assign({},r))},me=({onSubmit:o,phone:l,email:d,onResendCode:m,otpError:c,onClose:b,loading:E,onBack:h,canSkip:f,outOfEdit:v})=>{const{siteType:y,isMarryBaby:w}=n(C),[S,P]=r(30),O=p((()=>P((e=>e-1))),1e3),[M,x]=u(0,{min:0,max:3}),z=a(!0),{t:T}=B();i((()=>(O.start(),O.stop)),[]),i((()=>{0===S&&(O.stop(),z.current=!1)}),[S]);const F=j({initialValues:{otp:""},validate:H(re(T))});i((()=>{c&&F.setFieldError("otp",c)}),[c]);const I=s((()=>Q((()=>{z.current||(x.increment(),P(30),null==m||m(l||d),O.start(),z.current=!0)}),1e3,{trailing:!1})),[l,d,m,O]);return t.createElement(q,{heading:T("onboarding.otpForm.heading"),description:t.createElement(t.Fragment,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:l?T("onboarding.otpForm.description",{phone:`<b style="color:${N.colors.gray800}">${l.slice(0,-3).replace(/./g,"x").concat(l.slice(-3))}</b>`}):T("onboarding.otpForm.descriptionEmail",{email:`<b style="color:${N.colors.gray800}">${J(d)}</b>`})}}),!v&&t.createElement("svg",{onClick:()=>{null==h||h()},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},t.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},t.createElement(k,{form:F},t.createElement("form",{onSubmit:F.onSubmit((t=>e(void 0,void 0,void 0,(function*(){x.increment(),o(t.otp)}))),(e=>{console.log(e)}))},t.createElement(oe,{inputOrder:["otp"]}),t.createElement("div",{className:"resend"},t.createElement(X,{size:"p4",color:N.colors.gray400},T("onboarding.otpForm.notReceiveOTP")),t.createElement(X,{as:"a",size:"p4",color:w?N.mbColors.pink:N.colors.primaryBase,onClick:I},T("onboarding.otpForm.resendCode",{seconds:S}))),t.createElement(g,{theme:y,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:E,disabled:E,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},T("onboarding.button.continue")),f&&M>=3&&t.createElement(g,{theme:y,color:"ghost",isBlock:!0,size:"lg",onClick:b,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none",type:"button"},T("onboarding.button.skip")))))},ce=({onClose:e,onSubmit:o,canSkip:r,loading:a,errorMessage:s,initialData:l})=>{const{t:d,locale:m}=B(),{siteType:c,isMarryBaby:p}=n(C),u=j({validate:H(ae(d))});return i((()=>{u.setValues(Object.assign(Object.assign({gender:"0"},l),(null==l?void 0:l.birthday)&&{birthday:new Date(l.birthday)}))}),[l]),i((()=>{s&&u.setFieldError("email",s)}),[s]),t.createElement(x,{heading:d("onboarding.formEmail.heading"),description:d("onboarding.formEmail.description",{site:p?"Marry Baby":z[m].SITE_NAME_FORMATTED})},t.createElement(k,{form:u},t.createElement("form",{className:"form",onSubmit:u.onSubmit((e=>{o(Object.assign(Object.assign({},e),{birthday:e.birthday&&ee(e.birthday,"yyyy-MM-dd")}))}),(e=>{console.log({fieldErrors:e})}))},t.createElement(oe,{inputOrder:["full_name","email","dob","gender"]}),t.createElement(g,{color:"primary",isBlock:!0,size:"lg",type:"submit",theme:c,isLoading:a,disabled:a},d("onboarding.button.continue")),r&&t.createElement(g,{theme:c,color:"ghost",isBlock:!0,size:"lg",onClick:e},d("onboarding.button.skip")))))},pe=({onClose:e,onSubmit:o,canSkip:n,errorMessage:r,loading:a})=>{const{t:i}=B(),s=j({initialValues:{password:"",confirmPassword:""},validate:H(ie(i))});return t.createElement(x,{heading:i("onboarding.updatePassword.heading"),description:i("onboarding.updatePassword.description")},t.createElement(k,{form:s},t.createElement("form",{className:"form",onSubmit:s.onSubmit((e=>o((null==e?void 0:e.password)||"")),(e=>{console.log({fieldErrors:e})}))},t.createElement(oe,{inputOrder:["password","confirm_password"]}),t.createElement(g,{color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:a,disabled:a},i("onboarding.button.continue")),n&&t.createElement(g,{color:"ghost",isBlock:!0,size:"lg",onClick:e},i("onboarding.button.skip")),r&&t.createElement(d.Error,{className:"form-error"},r))))},ue=n=>{var{banner:a,canSkip:i,createPassError:s,createPassLoading:d,customFormTexts:p,emailLoading:E,flow:h=[T.Phone,T.OTP],initialData:f,onClose:v,onCreatePassByEmail:y,onOtpSubmit:S,onPersonalInfoSubmit:P,onPhoneSubmit:j,onResendCode:k,otpError:O,otpLoading:M,personalInfoError:z,resultScreenProps:I,siteType:L,step:q,withSimilac:H=!1,similacFormProps:Y}=n,$=o(n,["banner","canSkip","createPassError","createPassLoading","customFormTexts","emailLoading","flow","initialData","onClose","onCreatePassByEmail","onOtpSubmit","onPersonalInfoSubmit","onPhoneSubmit","onResendCode","otpError","otpLoading","personalInfoError","resultScreenProps","siteType","step","withSimilac","similacFormProps"]);const{t:G}=B(),[Z,J]=r(q||h[0]),[K,Q]=r(""),[X,ee]=r(""),[oe,te]=u(0,{min:0,max:2}),{isMobile:ne}=w(),re=l((()=>{const e=h.indexOf(Z)+1;e<=h.length-1&&J(h[e])}),[Z]),ae=l((()=>{const e=h.indexOf(Z)-1;e>=0&&J(h[e])}),[Z]),ie=o=>e(void 0,void 0,void 0,(function*(){try{!(yield S(o))&&re()}catch(e){console.error(e)}})),se=()=>{oe>=2||(te.increment(),ae())},ue="marryBaby"===L;return t.createElement(C.Provider,{value:{siteType:L,isMarryBaby:ue}},t.createElement(A,Object.assign({},$),h.length>0?t.createElement(D,null,t.createElement(m,{sx:{[F.mbDown]:{margin:0},".mantine-Grid-col":{[F.mbDown]:{padding:0}}}},t.createElement(m.Col,{span:"object"!=typeof a&&!H||ne?12:6,order:H?2:1,orderMd:H?1:2,sx:{zIndex:H?99:void 0}},t.createElement(V,{"data-similac":H,"data-has-banner":"object"==typeof a},Z===T.Phone&&(H?t.createElement(le,{onClose:v,canSkip:i,onSubmit:o=>e(void 0,void 0,void 0,(function*(){var e;try{const t=null==o?void 0:o.phone;t&&(Q(t),yield Promise.all([null===(e=null==Y?void 0:Y.onFormSubmit)||void 0===e?void 0:e.call(Y,o),null==j?void 0:j(t)])),re()}catch(e){console.error(e)}})),customFormTexts:p.onboarding,defaultValues:null==Y?void 0:Y.defaultValues,customTerms:null==Y?void 0:Y.customTerms}):t.createElement(de,{onClose:v,canSkip:i,onSubmit:o=>e(void 0,void 0,void 0,(function*(){try{Q(o),yield null==j?void 0:j(o),re()}catch(e){console.error(e)}})),customFormTexts:p.onboarding})),Z===T.OTP&&t.createElement(me,{onClose:v,onSubmit:ie,phone:K,onResendCode:k,otpError:O,loading:M,canSkip:i,onBack:se,outOfEdit:oe>=2}),Z===T.OTPEmail&&t.createElement(me,{onClose:v,onSubmit:ie,onResendCode:k,otpError:O,loading:M,canSkip:i,onBack:se,outOfEdit:oe>=2,email:X}),Z===T.PersonalInfo&&t.createElement(ce,{initialData:null==f?void 0:f[T.PersonalInfo],onClose:v,canSkip:i,onSubmit:o=>e(void 0,void 0,void 0,(function*(){try{ee((null==o?void 0:o.email)||"");!(yield null==P?void 0:P(o))&&re()}catch(e){console.error(e)}})),errorMessage:z,loading:E}),Z===T.UpdatePassword&&t.createElement(pe,{onClose:v,canSkip:i,onSubmit:o=>e(void 0,void 0,void 0,(function*(){try{yield null==y?void 0:y(o),!s&&re()}catch(e){console.error(e)}})),errorMessage:s,loading:d}),Z===T.Result&&t.createElement(x,Object.assign({},I),t.createElement(g,{theme:L,size:"lg",onClick:v,className:"form-button"},G("onboarding.button.continue"))))),"object"==typeof a&&!H&&t.createElement(m.Col,{span:"object"!=typeof a&&!H||ne?12:6,order:H?2:1,orderMd:H?1:2},t.createElement(_,null,t.createElement(U,{"data-is-marry-baby":ue},t.createElement(R,null,(null==a?void 0:a.heading)&&t.createElement(c,{order:1,mb:24},null==a?void 0:a.heading),(null==a?void 0:a.description)&&t.createElement(b,{size:"p1",color:N.colors.gray800},G("onboarding.welcomeScreen.content"))),(null==a?void 0:a.imgSrc)&&t.createElement("div",null,t.createElement(W,{src:null==a?void 0:a.imgSrc,loading:"lazy"}))))),"object"==typeof a&&H&&(null==a?void 0:a.imgSrc)&&t.createElement(m.Col,{span:"auto",order:H?1:2,orderMd:H?2:1},t.createElement(W,{src:null==a?void 0:a.imgSrc,loading:"lazy",className:"similac"})))):"Incorrect flow"))};export{de as OnboardingForm,ue as OnboardingModal,me as OtpForm};
@@ -1,4 +1,4 @@
1
- import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle as o,useState as a,useRef as i,useEffect as l,useMemo as s,Fragment as m}from"react";import{_ as d,a as c}from"./tslib.es6-8768ccb4.js";import{Box as p,Input as u,Grid as g,Title as b,Container as h,Stack as E,AspectRatio as f}from"@mantine/core";import{x as L,aC as v,J as C,aD as y,aE as x,aF as w,H as S,w as M,L as P,E as j}from"./utils-b9aaa166.js";import{D as k}from"./index-4a918b26.js";import"dayjs";import{M as O,k as F}from"./screenSizeContext-0c4de282.js";import B from"styled-components";import{t as z}from"./theme-af752e5e.js";import{L as N}from"./index-27183b30.js";import"./isProduction-58dc4545.js";import{L as I}from"./Onboarding-2997627e.js";import"./gAssets.js";import{u as T}from"./useTranslations-9d8df4a8.js";import"./index-4d6e08f0.js";import{useInterval as D,useCounter as Z}from"@mantine/hooks";import{A}from"./index-3b01b050.js";import"lodash/debounce";import{V as _}from"./Visible-ecdeef6e.js";import{createFormContext as V,yupResolver as H}from"@mantine/form";import"./index-087b3c4b.js";import"@mantine/dates";import*as q from"yup";import{createPortal as $}from"react-dom";import{B as U}from"./index-04337202.js";import{b as Y}from"./index-a61517ae.js";import R from"lodash/throttle";import{T as W}from"./index-5d893b18.js";import{format as G}from"date-fns";import"./translationsContext-9f44bd6e.js";import"string-format";import K from"react-keyed-flatten-children";import"@mantine/carousel";import"./useUniqueId-9b451fb4.js";import"./cookieHelper-7fe78adc.js";import"slugify";import"date-fns/locale";import"./utils-47af45cf.js";const J=t({currentStep:0,setCurrentStep:()=>!1,setMaxStep:()=>!1,nextStep:()=>!1,prevStep:()=>!1,isMarryBaby:!1,siteType:"helloSites",sharedData:{},setSharedData:()=>!1}),[Q,X,ee]=V(),te=B(p)`
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle as o,useState as a,useRef as i,useEffect as l,useMemo as s,Fragment as m}from"react";import{_ as d,a as c}from"./tslib.es6-cd3045bb.js";import{Box as p,Input as u,Grid as g,Title as b,Container as h,Stack as E,AspectRatio as f}from"@mantine/core";import{x as L,aC as v,J as C,aD as y,aE as x,aF as w,H as S,w as M,L as P,E as j}from"./utils-0c45642f.js";import{D as k}from"./index-a5bbdf9a.js";import"dayjs";import{M as O,k as F}from"./screenSizeContext-f9371d3a.js";import B from"styled-components";import{t as z}from"./theme-03890c40.js";import{L as N}from"./index-147ed097.js";import"./isProduction-7b6caf54.js";import{L as I}from"./Onboarding-1500d3ab.js";import"./gAssets.js";import{u as T}from"./useTranslations-5d2ff12d.js";import"./index-2c6bee3c.js";import{useInterval as D,useCounter as Z}from"@mantine/hooks";import{A}from"./index-c18841bd.js";import"lodash/debounce";import{V as _}from"./Visible-ed55004f.js";import{createFormContext as V,yupResolver as H}from"@mantine/form";import"./index-aa8a897c.js";import"@mantine/dates";import*as q from"yup";import{createPortal as $}from"react-dom";import{B as U}from"./index-931534ea.js";import{b as Y}from"./index-c99bb820.js";import R from"lodash/throttle";import{T as W}from"./index-0d108e90.js";import{format as G}from"date-fns";import"./translationsContext-9b53dee4.js";import"string-format";import K from"react-keyed-flatten-children";import"@mantine/carousel";import"./useUniqueId-40e78470.js";import"./cookieHelper-b704a99d.js";import"slugify";import"date-fns/locale";import"./utils-7d74337d.js";const J=t({currentStep:0,setCurrentStep:()=>!1,setMaxStep:()=>!1,nextStep:()=>!1,prevStep:()=>!1,isMarryBaby:!1,siteType:"helloSites",sharedData:{},setSharedData:()=>!1}),[Q,X,ee]=V(),te=B(p)`
2
2
  .phone-input {
3
3
  width: 100%;
4
4
  margin-bottom: 32px;
package/build/esm/pwg.js CHANGED
@@ -1,4 +1,4 @@
1
- import e,{useMemo as t,useState as r,useRef as l}from"react";import{M as a,a as o}from"./index-02fbcf38.js";import{T as n}from"./index-5d893b18.js";import{P as i}from"./index-67d68410.js";import{u as s}from"./useTranslations-9d8df4a8.js";import{t as c}from"./theme-af752e5e.js";import{ResponsiveContainer as m,AreaChart as d,CartesianGrid as p,Tooltip as g,XAxis as y,YAxis as u,Area as b,ReferenceDot as h}from"recharts";import{C as f}from"./index-4d6e08f0.js";import{a as x}from"./useOutsideClick-212afee0.js";import E from"styled-components";import{_ as k}from"./tslib.es6-8768ccb4.js";import"./Onboarding-2997627e.js";import"./index.styled-c168896e.js";import"./gAssets.js";import"./index-27183b30.js";import"date-fns/locale";import"./isProduction-58dc4545.js";import"./translationsContext-9f44bd6e.js";import"string-format";import"@mantine/carousel";import"@mantine/core";import"@mantine/hooks";const w=t=>{const{x:r,y:l,payload:a,activeWeek:o}=t;return o===a.value?e.createElement("g",{transform:`translate(${r},${l})`},e.createElement("circle",{r:12,fill:"marryBaby"===t.siteType?c.mbColors.pink:c.colors.primaryBase}),e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},a.value)):e.createElement("g",{transform:`translate(${r},${l})`},e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},a.value))},v=E.div`
1
+ import e,{useMemo as t,useState as r,useRef as l}from"react";import{M as a,a as o}from"./index-eede89aa.js";import{T as n}from"./index-0d108e90.js";import{P as i}from"./index-29221bed.js";import{u as c}from"./useTranslations-5d2ff12d.js";import{t as s}from"./theme-03890c40.js";import{ResponsiveContainer as m,AreaChart as d,CartesianGrid as p,Tooltip as g,XAxis as y,YAxis as u,Area as b,ReferenceDot as h}from"recharts";import{C as x}from"./index-2c6bee3c.js";import{a as f}from"./useOutsideClick-6a5ba5dc.js";import E from"styled-components";import{_ as k}from"./tslib.es6-cd3045bb.js";import"./Onboarding-1500d3ab.js";import"./index.styled-e9b3c211.js";import"./gAssets.js";import"./index-147ed097.js";import"date-fns/locale";import"./isProduction-7b6caf54.js";import"./translationsContext-9b53dee4.js";import"string-format";import"@mantine/carousel";import"@mantine/core";import"@mantine/hooks";const w=t=>{const{x:r,y:l,payload:a,activeWeek:o}=t;return o===a.value?e.createElement("g",{transform:`translate(${r},${l})`},e.createElement("circle",{r:12,fill:"marryBaby"===t.siteType?s.mbColors.pink:s.colors.primaryBase}),e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:s.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},a.value)):e.createElement("g",{transform:`translate(${r},${l})`},e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:s.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},a.value))},v=E.div`
2
2
  /* position: absolute; */
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -18,7 +18,7 @@ import e,{useMemo as t,useState as r,useRef as l}from"react";import{M as a,a as
18
18
  display: flex;
19
19
  align-items: center;
20
20
  padding: 4px 8px;
21
- background: ${c.colors.yellow600};
21
+ background: ${s.colors.yellow600};
22
22
  border-radius: 3px;
23
23
  } */
24
24
  & > * {
@@ -55,14 +55,14 @@ import e,{useMemo as t,useState as r,useRef as l}from"react";import{M as a,a as
55
55
  align-items: center;
56
56
  gap: 4px;
57
57
  }
58
- `,T=[{name:"overweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"underweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"healthy",backgroundColor:c.colors.green50,color:c.colors.green900}],B=r=>{var l,a,o,i,s;const{payload:m,active:d}=r,p=null===(l=null==m?void 0:m[0])||void 0===l?void 0:l.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:y}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(a=p.toolTipLabel)||void 0===a?void 0:a[0]," ",null===(o=p.toolTipLabel)||void 0===o?void 0:o[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:c.colors.gray800,type:"semiBold"},null===(s=p.toolTipLabel)||void 0===s?void 0:s[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:y},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:l,activeWeek:a,t:o})=>{const n=o(`bmi.result.${l}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===a?{toolTipLabel:r,translatedStatus:n,status:l}:{})))},z=({weightBefore:o,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:z})=>{const{t:L}=s(),S="marryBaby"===z,O=t((()=>W({weightByWeek:i,weightBefore:o,toolTipLabel:v,status:C,activeWeek:E,t:L})),[i,o,v,C,E]),[F,I]=r(!1),M=l(null);return x(M,(()=>I(!1))),e.createElement(j,null,S?e.createElement(a,{type:"bodytext-3",color:c.mbColors.dark}," ",L("babyGrowth.weight")," ",L("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:c.colors.gray500},L("babyGrowth.weight")," ",L("pregnancyWeightGain.weightInput.desc")),Array.isArray(O)&&O.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:O,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:c.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&F&&void 0!==E&&void 0!==k},t))}),e.createElement(y,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:z})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(u,{domain:[e=>Math.max(e,o-10||e),e=>Math.max(e,o+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:c.colors.gray600}}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:S?c.mbColors.tonePink:c.colors.primary100}),void 0!==E&&void 0!==k&&e.createElement(h,{onClick:()=>I(!0),x:0===E?1:E,y:k,r:4,shape:e.createElement(f,{ref:M,r:4}),fill:S?c.mbColors.pink:c.colors.primaryBase,stroke:S?c.mbColors.pink:c.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),S?e.createElement(a,{type:"bodytext-3",color:c.mbColors.dark},L("pregnancy.week")):e.createElement(n,{size:"n1",color:c.colors.gray500},L("pregnancy.week")))))},L=t=>{var{color:r}=t,l=k(t,["color"]);return e.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),e.createElement("circle",{cx:"4",cy:"4",r:"4",fill:r||c.colors.primaryBase}))},S=({idealWeight:t,siteType:r})=>{const{t:l}=s(),o="marryBaby"===r;return e.createElement(C,null,e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement(L,{color:c.mbColors.lightPink}),e.createElement(a,{type:"bodytext-3",color:c.mbColors.dark},l("pregnancyTool.weightSuggested")," ",e.createElement(n,{size:"n1",color:c.colors.gray800,type:"bold",as:"span"},t))):e.createElement(e.Fragment,null,e.createElement(L,{color:c.colors.primary100}),e.createElement(n,{size:"n1",color:c.colors.gray600},e.createElement(n,{size:"n1",as:"span"},l("pregnancyTool.weightSuggested")," "),e.createElement(n,{size:"n1",color:c.colors.gray800,type:"bold",as:"span"},t)))),e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement(L,{color:c.mbColors.pink}),e.createElement(a,{type:"bodytext-3",color:c.mbColors.dark},l("pwg.placeholder.weight"))):e.createElement(e.Fragment,null,e.createElement(L,null),e.createElement(n,{size:"n1",color:c.colors.gray600},l("pwg.placeholder.weight")))))},O=E.div`
58
+ `,T=[{name:"overweight",backgroundColor:s.colors.yellow50,color:s.colors.yellow900},{name:"underweight",backgroundColor:s.colors.yellow50,color:s.colors.yellow900},{name:"healthy",backgroundColor:s.colors.green50,color:s.colors.green900}],B=r=>{var l,a,o,i,c;const{payload:m,active:d}=r,p=null===(l=null==m?void 0:m[0])||void 0===l?void 0:l.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:y}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(a=p.toolTipLabel)||void 0===a?void 0:a[0]," ",null===(o=p.toolTipLabel)||void 0===o?void 0:o[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:s.colors.gray800,type:"semiBold"},null===(c=p.toolTipLabel)||void 0===c?void 0:c[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:y},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:l,activeWeek:a,t:o})=>{const n=o(`bmi.result.${l}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===a?{toolTipLabel:r,translatedStatus:n,status:l}:{})))},z=({weightBefore:o,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:z})=>{const{t:L}=c(),S="marryBaby"===z,O=t((()=>W({weightByWeek:i,weightBefore:o,toolTipLabel:v,status:C,activeWeek:E,t:L})),[i,o,v,C,E]),[F,I]=r(!1),M=l(null);return f(M,(()=>I(!1))),e.createElement(j,null,S?e.createElement(a,{type:"bodytext-3",color:s.mbColors.dark}," ",L("babyGrowth.weight")," ",L("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:s.colors.gray500},L("babyGrowth.weight")," ",L("pregnancyWeightGain.weightInput.desc")),Array.isArray(O)&&O.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:O,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:s.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&F&&void 0!==E&&void 0!==k},t))}),e.createElement(y,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:z})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(u,{domain:[e=>Math.max(e,o-10||e),e=>Math.max(e,o+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:s.colors.gray600}}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:S?s.mbColors.tonePink:s.colors.primary100}),void 0!==E&&void 0!==k&&e.createElement(h,{onClick:()=>I(!0),x:0===E?1:E,y:k,r:4,shape:e.createElement(x,{ref:M,r:4}),fill:S?s.mbColors.pink:s.colors.primaryBase,stroke:S?s.mbColors.pink:s.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),S?e.createElement(a,{type:"bodytext-3",color:s.mbColors.dark},L("pregnancy.week")):e.createElement(n,{size:"n1",color:s.colors.gray500},L("pregnancy.week")))))},L=t=>{var{color:r}=t,l=k(t,["color"]);return e.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),e.createElement("circle",{cx:"4",cy:"4",r:"4",fill:r||s.colors.primaryBase}))},S=({idealWeight:t,siteType:r})=>{const{t:l}=c(),o="marryBaby"===r;return e.createElement(C,null,e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement(L,{color:s.mbColors.lightPink}),e.createElement(a,{type:"bodytext-3",color:s.mbColors.dark},l("pregnancyTool.weightSuggested")," ",e.createElement(n,{size:"n1",color:s.colors.gray800,type:"bold",as:"span"},t))):e.createElement(e.Fragment,null,e.createElement(L,{color:s.colors.primary100}),e.createElement(n,{size:"n1",color:s.colors.gray600},e.createElement(n,{size:"n1",as:"span"},l("pregnancyTool.weightSuggested")," "),e.createElement(n,{size:"n1",color:s.colors.gray800,type:"bold",as:"span"},t)))),e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement(L,{color:s.mbColors.pink}),e.createElement(a,{type:"bodytext-3",color:s.mbColors.dark},l("pwg.placeholder.weight"))):e.createElement(e.Fragment,null,e.createElement(L,null),e.createElement(n,{size:"n1",color:s.colors.gray600},l("pwg.placeholder.weight")))))},O=E.div`
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  align-items: center;
62
62
  padding: 24px 16px;
63
63
  width: 100%;
64
64
  gap: 24px;
65
- border: 1px solid ${c.colors.neutral100};
65
+ border: 1px solid ${s.colors.neutral100};
66
66
  border-radius: 8px;
67
67
  .chart-header {
68
68
  text-align: center;
@@ -70,4 +70,4 @@ import e,{useMemo as t,useState as r,useRef as l}from"react";import{M as a,a as
70
70
  > div {
71
71
  width: 100%;
72
72
  }
73
- `,F=({chartProps:t,pillCarouselProps:r,idealWeight:l,description:a,siteType:m})=>{const{t:d}=s(),p="marryBaby"===m;return e.createElement(O,null,e.createElement("div",{className:"chart-header"},p?e.createElement(o,{type:"h3",color:c.mbColors.dark},d("pregnancyTool.weightSuggested")):e.createElement(n,{size:"s1",type:"semiBold",color:c.colors.gray800},d("pregnancyTool.weightSuggested")),a&&a),e.createElement(i,Object.assign({},r)),e.createElement("div",null,e.createElement(S,{idealWeight:l,siteType:m}),e.createElement(z,Object.assign({},t,{siteType:m}))))};export{F as PregnancyWeightGainChart};
73
+ `,F=({chartProps:t,pillCarouselProps:r,idealWeight:l,description:a,siteType:m})=>{const{t:d}=c(),p="marryBaby"===m;return e.createElement(O,null,e.createElement("div",{className:"chart-header"},p?e.createElement(o,{type:"h3",color:s.mbColors.dark},d("pregnancyTool.weightSuggested")):e.createElement(n,{size:"s1",type:"semiBold",color:s.colors.gray800},d("pregnancyTool.weightSuggested")),a&&a),e.createElement(i,Object.assign({},r)),e.createElement("div",null,e.createElement(S,{idealWeight:l,siteType:m}),e.createElement(z,Object.assign({},t,{siteType:m}))))};export{F as PregnancyWeightGainChart};
@@ -1 +1 @@
1
- import{d as e}from"./index-27183b30.js";import{i as s}from"./isProduction-58dc4545.js";const t=(t,o)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return r?"http://localhost:3000":`https://${!r&&!s?o?"fe.":"discover.":o?"www.":""}${e[o?"vi-VN_MB":t]}`},o=(t,o)=>process.env.UNIFY_SSO_API||`https://${s?"id.":"staging-id."}${e[o?"vi-VN_MB":t]}`,r=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${s?"together.":"staging-together."}hellohealthgroup.com`,n=t=>process.env.UNIFY_DISCOVER_API||`https://${s?"wp.":"staging."}${e[t]}`,i=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${s?"health-care.":"service-health-care."}hellohealthgroup.com`;export{o as a,r as b,n as c,i as d,t as g};
1
+ import{d as e}from"./index-147ed097.js";import{i as s}from"./isProduction-7b6caf54.js";const t=(t,o)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return r?"http://localhost:3000":`https://${!r&&!s?o?"fe.":"discover.":o?"www.":""}${e[o?"vi-VN_MB":t]}`},o=(t,o)=>process.env.UNIFY_SSO_API||`https://${s?"id.":"staging-id."}${e[o?"vi-VN_MB":t]}`,r=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${s?"together.":"staging-together."}hellohealthgroup.com`,n=t=>process.env.UNIFY_DISCOVER_API||`https://${s?"wp.":"staging."}${e[t]}`,i=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${s?"health-care.":"service-health-care."}hellohealthgroup.com`;export{o as a,r as b,n as c,i as d,t as g};
@@ -1 +1 @@
1
- export{g as CardAuthor,C as CardLink,D as CardPost,E as CardPostPopoverMore,b as CardReactions,F as CardReply,G as CardReplyPopover,h as CreateNewPostContent,i as CreatePostDescription,j as CreatePostTitle,s as ImagePreviewPopup,I as InputCommentBar,e as LabelPin,d as LabelSortPin,f as LabelSorting,L as Loading,H as PopoverMenu,P as PopupDanger,l as PopupDoctor,k as PopupExpert,o as PopupFrame,m as PopupHospital,r as PostContent,w as PostImagePreview,v as PostSingleImageViewPopup,z as ProfileDetail,y as ProfileDetailModal,q as ShareBox,S as SharePopup,B as SkipQuestionOfExpertBtn,x as SocialLinkPreview,J as SourceList,p as SubmitReportForm,A as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,n as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-6c249d77.js";export{U as UserAvatar}from"./index.styled-430ea9ec.js";export{d as TogetherDataTransforms}from"./dataTransform-73a8e298.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,d as TogetherComponentGlobalContext,e as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-b9aaa166.js";import"./tslib.es6-8768ccb4.js";import"react";import"@mantine/core";import"./index-233d3216.js";import"styled-components";import"./screenSizeContext-0c4de282.js";import"lodash/throttle";import"./index-f9105193.js";import"./gAssets.js";import"./index-27183b30.js";import"date-fns/locale";import"./Onboarding-2997627e.js";import"./isProduction-58dc4545.js";import"./index-4d6e08f0.js";import"@mantine/carousel";import"@mantine/hooks";import"./index-5d893b18.js";import"./index-04337202.js";import"./index-2792d725.js";import"./index-087b3c4b.js";import"./theme-af752e5e.js";import"dayjs";import"./useUniqueId-9b451fb4.js";import"@mantine/dates";import"./translationsContext-9f44bd6e.js";import"string-format";import"@hookform/resolvers/yup";import"react-hook-form";import"./index-23cf664f.js";import"./useTranslations-9d8df4a8.js";import"./index-02fbcf38.js";import"date-fns";import"./index-cdc79555.js";import"lodash/debounce";import"./types-cb553add.js";import"react-day-picker/DayPickerInput";import"innertext";import"./index-0c0f14ef.js";import"./paths-fc9b4162.js";import"./constants-95083db2.js";import"react-contenteditable";import"./cookieHelper-7fe78adc.js";import"react-dom";import"./number-451747e2.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-c168896e.js";import"uuid";import"./utils-47af45cf.js";import"dayjs/plugin/relativeTime";import"./index-bee89bbd.js";import"./routing-eab022c9.js";import"react-keyed-flatten-children";import"slugify";
1
+ export{g as CardAuthor,C as CardLink,D as CardPost,E as CardPostPopoverMore,b as CardReactions,F as CardReply,G as CardReplyPopover,h as CreateNewPostContent,i as CreatePostDescription,j as CreatePostTitle,s as ImagePreviewPopup,I as InputCommentBar,e as LabelPin,d as LabelSortPin,f as LabelSorting,L as Loading,H as PopoverMenu,P as PopupDanger,l as PopupDoctor,k as PopupExpert,o as PopupFrame,m as PopupHospital,r as PostContent,w as PostImagePreview,v as PostSingleImageViewPopup,z as ProfileDetail,y as ProfileDetailModal,q as ShareBox,S as SharePopup,B as SkipQuestionOfExpertBtn,x as SocialLinkPreview,J as SourceList,p as SubmitReportForm,A as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,n as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-8fbf1f77.js";export{U as UserAvatar}from"./index.styled-fb59a984.js";export{d as TogetherDataTransforms}from"./dataTransform-530f50c0.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,d as TogetherComponentGlobalContext,e as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-0c45642f.js";import"./tslib.es6-cd3045bb.js";import"react";import"@mantine/core";import"./index-4b8de450.js";import"styled-components";import"./screenSizeContext-f9371d3a.js";import"lodash/throttle";import"./index-a9322280.js";import"./gAssets.js";import"./index-147ed097.js";import"date-fns/locale";import"./Onboarding-1500d3ab.js";import"./isProduction-7b6caf54.js";import"./index-2c6bee3c.js";import"@mantine/carousel";import"@mantine/hooks";import"./index-0d108e90.js";import"./index-931534ea.js";import"./index-f2604383.js";import"./index-aa8a897c.js";import"./theme-03890c40.js";import"dayjs";import"./useUniqueId-40e78470.js";import"@mantine/dates";import"./translationsContext-9b53dee4.js";import"string-format";import"@hookform/resolvers/yup";import"react-hook-form";import"./index-aed8b318.js";import"./useTranslations-5d2ff12d.js";import"./index-eede89aa.js";import"date-fns";import"./index-4c4c5c48.js";import"lodash/debounce";import"./types-c3cf7c56.js";import"react-day-picker/DayPickerInput";import"innertext";import"./index-951672ea.js";import"./paths-617b04b7.js";import"./constants-3ad54375.js";import"react-contenteditable";import"./cookieHelper-b704a99d.js";import"react-dom";import"./number-bbfcc6d3.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-e9b3c211.js";import"uuid";import"./utils-7d74337d.js";import"dayjs/plugin/relativeTime";import"./index-f2a3d7a4.js";import"./routing-3ee96840.js";import"react-keyed-flatten-children";import"slugify";
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-8768ccb4.js";import*as t from"react";import i,{useState as a,useCallback as o,useMemo as n,useEffect as s,useRef as r,useReducer as l}from"react";import{u as c}from"./useTranslations-9d8df4a8.js";import d from"lodash/debounce";import{I as p,L as u,a as h}from"./constants-95083db2.js";import{I as g}from"./index-2792d725.js";import m,{createGlobalStyle as C}from"styled-components";import{T as b}from"./index-5d893b18.js";import{t as y}from"./theme-af752e5e.js";import{M as f}from"./screenSizeContext-0c4de282.js";import v from"react-loading-skeleton";import x from"lodash/shuffle";import{a as w}from"./useOutsideClick-212afee0.js";import{P as E}from"./paths-fc9b4162.js";import{Skeleton as S,Input as L,Divider as k,Tabs as O,Flex as j,Button as I}from"@mantine/core";import{c as F,d as $}from"./index-27183b30.js";import{g as M,s as R,d as T}from"./cookieHelper-7fe78adc.js";import{C as P,I as A}from"./index-087b3c4b.js";import N from"string-format";const B=e=>t.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));function V(){const[e,t]=a((()=>{if("undefined"==typeof window)return"unset";if(M(F))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,s]=a((()=>{if("undefined"==typeof window)return null;const e=M(F);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),r=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};R(F,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{T(F),t("denied")}))}),[]);return n((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:r})),[e,i])}const D=m.div``,z=m.div`
1
+ import{a as e}from"./tslib.es6-cd3045bb.js";import*as t from"react";import i,{useState as a,useCallback as o,useMemo as n,useEffect as s,useRef as r,useReducer as l}from"react";import{u as c}from"./useTranslations-5d2ff12d.js";import d from"lodash/debounce";import{I as p,L as u,a as h}from"./constants-3ad54375.js";import{I as g}from"./index-f2604383.js";import m,{createGlobalStyle as C}from"styled-components";import{T as b}from"./index-0d108e90.js";import{t as y}from"./theme-03890c40.js";import{M as f}from"./screenSizeContext-f9371d3a.js";import v from"react-loading-skeleton";import x from"lodash/shuffle";import{a as w}from"./useOutsideClick-6a5ba5dc.js";import{P as E}from"./paths-617b04b7.js";import{Skeleton as S,Input as L,Divider as k,Tabs as O,Flex as j,Button as I}from"@mantine/core";import{c as F,d as $}from"./index-147ed097.js";import{g as M,s as R,d as T}from"./cookieHelper-b704a99d.js";import{C as P,I as A}from"./index-aa8a897c.js";import N from"string-format";const B=e=>t.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));function V(){const[e,t]=a((()=>{if("undefined"==typeof window)return"unset";if(M(F))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,s]=a((()=>{if("undefined"==typeof window)return null;const e=M(F);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),r=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};R(F,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{T(F),t("denied")}))}),[]);return n((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:r})),[e,i])}const D=m.div``,z=m.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -1,4 +1,4 @@
1
- import{a as e,_ as t}from"./tslib.es6-8768ccb4.js";import*as a from"react";import o,{createContext as n,useContext as i,useState as l,useRef as r,useEffect as s,useMemo as c,useCallback as d}from"react";import{useMantineTheme as m,createStyles as p,Flex as u,Box as g,rem as v,Checkbox as h,Portal as b,Anchor as f,Accordion as y,Popover as w}from"@mantine/core";import{a as x}from"./index-233d3216.js";import{u as E}from"./useTranslations-9d8df4a8.js";import C from"innertext";import{t as k}from"./theme-af752e5e.js";import{H as N,I as A,d as T,A as z,P,e as I,f as S}from"./index-087b3c4b.js";import{d as L,a9 as M,aa as j,O as B,ab as F,ac as O,ad as R,H as V,x as D,ae as U,Q as W,af as H,ag as Z,ah as q,ai as _,aj as G,ak as Q,w as X,al as K,am as $,an as Y,ao as J,E as ee,ap as te,a0 as ae,A as oe,aq as ne,ar as ie,as as le,at as re,au as se}from"./utils-b9aaa166.js";import"@mantine/dates";import{D as ce,d as de}from"./index-27183b30.js";import"./Onboarding-2997627e.js";import{CommonGAssets as me}from"./gAssets.js";import pe from"dayjs";import{M as ue,t as ge,o as ve,k as he}from"./screenSizeContext-0c4de282.js";import be,{keyframes as fe,css as ye}from"styled-components";import"./isProduction-58dc4545.js";import{I as we}from"./index-4d6e08f0.js";import"@mantine/hooks";import{A as xe,a as Ee,B as Ce,D as ke}from"./index-0c0f14ef.js";import{e as Ne,c as Ae,P as Te,g as ze,b as Pe,h as Ie,i as Se}from"./dataTransform-73a8e298.js";import{T as Le}from"./index-5d893b18.js";import{I as Me}from"./index-2792d725.js";import je from"lodash/debounce";import Be from"react-contenteditable";import{B as Fe}from"./index-04337202.js";import{d as Oe,g as Re}from"./cookieHelper-7fe78adc.js";import*as Ve from"react-dom";import{a as De}from"./number-451747e2.js";import{format as Ue}from"date-fns";import"react-day-picker/DayPickerInput";import{U as We}from"./index.styled-430ea9ec.js";import"./index-23cf664f.js";import"lodash/throttle";import"./types-cb553add.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-c168896e.js";import"uuid";import"./utils-47af45cf.js";import"string-format";import He from"dayjs/plugin/relativeTime";import{M as Ze}from"./index-bee89bbd.js";import{a as qe}from"./useUniqueId-9b451fb4.js";import"./translationsContext-9f44bd6e.js";import{g as _e}from"./routing-eab022c9.js";const Ge=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),a.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Qe=n({}),Xe=({children:e,defaultParams:t})=>o.createElement(Qe.Provider,{value:{defaultParams:t}},e),Ke=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(L),{defaultParams:o}=i(Qe)||{},n=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,i)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),i);if(!n||l){n||Oe(M),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=j(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},$e=be.div`
1
+ import{a as e,_ as t}from"./tslib.es6-cd3045bb.js";import*as a from"react";import o,{createContext as n,useContext as i,useState as l,useRef as r,useEffect as s,useMemo as c,useCallback as d}from"react";import{useMantineTheme as m,createStyles as p,Flex as u,Box as g,rem as v,Checkbox as h,Portal as b,Anchor as f,Accordion as y,Popover as w}from"@mantine/core";import{a as x}from"./index-4b8de450.js";import{u as E}from"./useTranslations-5d2ff12d.js";import C from"innertext";import{t as k}from"./theme-03890c40.js";import{H as N,I as A,d as T,A as z,P,e as I,f as S}from"./index-aa8a897c.js";import{d as L,a9 as M,aa as j,O as B,ab as F,ac as O,ad as R,H as V,x as D,ae as U,Q as W,af as H,ag as Z,ah as q,ai as _,aj as G,ak as Q,w as X,al as K,am as $,an as Y,ao as J,E as ee,ap as te,a0 as ae,A as oe,aq as ne,ar as ie,as as le,at as re,au as se}from"./utils-0c45642f.js";import"@mantine/dates";import{D as ce,d as de}from"./index-147ed097.js";import"./Onboarding-1500d3ab.js";import{CommonGAssets as me}from"./gAssets.js";import pe from"dayjs";import{M as ue,t as ge,o as ve,k as he}from"./screenSizeContext-f9371d3a.js";import be,{keyframes as fe,css as ye}from"styled-components";import"./isProduction-7b6caf54.js";import{I as we}from"./index-2c6bee3c.js";import"@mantine/hooks";import{A as xe,a as Ee,B as Ce,D as ke}from"./index-951672ea.js";import{e as Ne,c as Ae,P as Te,g as ze,b as Pe,h as Ie,i as Se}from"./dataTransform-530f50c0.js";import{T as Le}from"./index-0d108e90.js";import{I as Me}from"./index-f2604383.js";import je from"lodash/debounce";import Be from"react-contenteditable";import{B as Fe}from"./index-931534ea.js";import{d as Oe,g as Re}from"./cookieHelper-b704a99d.js";import*as Ve from"react-dom";import{a as De}from"./number-bbfcc6d3.js";import{format as Ue}from"date-fns";import"react-day-picker/DayPickerInput";import{U as We}from"./index.styled-fb59a984.js";import"./index-aed8b318.js";import"lodash/throttle";import"./types-c3cf7c56.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-e9b3c211.js";import"uuid";import"./utils-7d74337d.js";import"string-format";import He from"dayjs/plugin/relativeTime";import{M as Ze}from"./index-f2a3d7a4.js";import{a as qe}from"./useUniqueId-40e78470.js";import"./translationsContext-9b53dee4.js";import{g as _e}from"./routing-3ee96840.js";const Ge=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),a.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Qe=n({}),Xe=({children:e,defaultParams:t})=>o.createElement(Qe.Provider,{value:{defaultParams:t}},e),Ke=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(L),{defaultParams:o}=i(Qe)||{},n=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,i)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),i);if(!n||l){n||Oe(M),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=j(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},$e=be.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -1 +1 @@
1
- export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE,O as OnboardingStep}from"./Onboarding-2997627e.js";
1
+ export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE,O as OnboardingStep}from"./Onboarding-1500d3ab.js";
@@ -1 +1 @@
1
- import{a as o}from"./tslib.es6-8768ccb4.js";import{useState as t,useEffect as i,useCallback as l}from"react";import{a as n}from"./getDynamicHealthTool-085c0c6f.js";const r=r=>{const[a,e]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield n(r);e(o)}))}),[n,r]);const s=l((o=>{var t;return(null===(t=a.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[a]);return{allTools:a,getHealthToolLink:s}};export{r as u};
1
+ import{a as o}from"./tslib.es6-cd3045bb.js";import{useState as t,useEffect as i,useCallback as l}from"react";import{a as n}from"./getDynamicHealthTool-f15b6992.js";const r=r=>{const[a,e]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield n(r);e(o)}))}),[n,r]);const s=l((o=>{var t;return(null===(t=a.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[a]);return{allTools:a,getHealthToolLink:s}};export{r as u};
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-8768ccb4.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-7fe78adc.js";import{u as a}from"./useUniqueId-9b451fb4.js";function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=r=>{const i=t("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,t,n,a,c;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==r?void 0:r.id){const[e,t,n,i,s,u]=yield Promise.all([r.email?l(r.email):null,r.phone?l(r.phone):null,r.birthday?l(r.birthday.split("-").join("")):null,r.gender?"m":"f",r.city_name?l(r.city_name).then((e=>e.replace(/\s/g,""))):null,r.name?l(r.name):null]);o("_fbc"),o("_fbp");const d={user_id:r.id};u&&(d.fn=u),e&&(d.em=e),t&&(d.ph=t),n&&(d.db=n),s&&(d.ct=s),null===(c=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===c||c.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[r])},s=e=>{const n=t(),r=t(e);return a()||r.current===e||(n.current=r.current,r.current=e),n.current},u=e=>{const[o,a]=r(e),l=t(0),c=i((e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame((()=>{a(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(l.current))),[o,c]};export{s as a,u as b,c as u};
1
+ import{a as e}from"./tslib.es6-cd3045bb.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-b704a99d.js";import{u as a}from"./useUniqueId-40e78470.js";function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=r=>{const i=t("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,t,n,a,c;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==r?void 0:r.id){const[e,t,n,i,s,u]=yield Promise.all([r.email?l(r.email):null,r.phone?l(r.phone):null,r.birthday?l(r.birthday.split("-").join("")):null,r.gender?"m":"f",r.city_name?l(r.city_name).then((e=>e.replace(/\s/g,""))):null,r.name?l(r.name):null]);o("_fbc"),o("_fbp");const d={user_id:r.id};u&&(d.fn=u),e&&(d.em=e),t&&(d.ph=t),n&&(d.db=n),s&&(d.ct=s),null===(c=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===c||c.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[r])},s=e=>{const n=t(),r=t(e);return a()||r.current===e||(n.current=r.current,r.current=e),n.current},u=e=>{const[o,a]=r(e),l=t(0),c=i((e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame((()=>{a(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(l.current))),[o,c]};export{s as a,u as b,c as u};
@@ -1 +1 @@
1
- import{useContext as o,useMemo as a}from"react";import{T as e}from"./translationsContext-9f44bd6e.js";import r from"string-format";function t(){const{values:t,locale:n}=o(e)||{locale:"en-PH"};return a((()=>({t:(o,a)=>t?t[o]?a?r(t[o]||o,a):t[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${n}`),a?r(o,a):o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:n})),[t,n])}export{t as u};
1
+ import{useContext as o,useMemo as a}from"react";import{T as e}from"./translationsContext-9b53dee4.js";import r from"string-format";function t(){const{values:t,locale:n}=o(e)||{locale:"en-PH"};return a((()=>({t:(o,a)=>t?t[o]?a?r(t[o]||o,a):t[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${n}`),a?r(o,a):o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:n})),[t,n])}export{t as u};
@@ -1,4 +1,4 @@
1
- import{_ as e,a as t}from"./tslib.es6-8768ccb4.js";import*as a from"react";import r,{memo as o,useMemo as i,useState as l,forwardRef as n,createContext as s,useEffect as c,Fragment as d,Component as p,useCallback as h,useRef as u,useImperativeHandle as g}from"react";import{createStyles as m,Button as b,Autocomplete as f,Image as E,ActionIcon as v,Select as w,rem as x,Text as y,AspectRatio as L,em as C,useMantineTheme as _,Box as O,Breadcrumbs as T,Textarea as A,Accordion as k,Indicator as I,Avatar as S,FileInput as R,createEmotionCache as $,NumberInput as M,PasswordInput as P,TextInput as B,Input as D,Checkbox as j,Slider as H,Radio as N,Flex as z,Tabs as G,ScrollArea as U,Popover as V}from"@mantine/core";import F,{css as Z}from"styled-components";import{I as K}from"./index-4d6e08f0.js";import{t as W}from"./theme-af752e5e.js";import{M as Y,s as q,e as X,b as Q,f as J,c as ee,g as te,a as ae,d as re,B as oe}from"./screenSizeContext-0c4de282.js";import{CommonGAssets as ie}from"./gAssets.js";import{L as le,C as ne,I as se}from"./index-087b3c4b.js";import{L as ce}from"./Onboarding-2997627e.js";import{T as de}from"./index-5d893b18.js";import"./translationsContext-9f44bd6e.js";import pe from"string-format";import he from"dayjs";import{I as ue,s as ge}from"./index-27183b30.js";import{i as me}from"./isProduction-58dc4545.js";import be from"react-keyed-flatten-children";import{useUncontrolled as fe,useDebouncedValue as Ee,useDisclosure as ve,useClickOutside as we}from"@mantine/hooks";import"@mantine/dates";import{Carousel as xe}from"@mantine/carousel";import{a as ye}from"./useUniqueId-9b451fb4.js";import"lodash/debounce";import{g as Le}from"./cookieHelper-7fe78adc.js";import Ce from"slugify";const _e=F.div`
1
+ import{_ as e,a as t}from"./tslib.es6-cd3045bb.js";import*as a from"react";import r,{memo as o,useMemo as i,useState as l,forwardRef as n,createContext as s,useEffect as c,Fragment as d,Component as p,useCallback as h,useRef as u,useImperativeHandle as g}from"react";import{createStyles as m,Button as b,Autocomplete as f,Image as E,ActionIcon as v,Select as w,rem as x,Text as y,AspectRatio as L,em as C,useMantineTheme as _,Box as O,Breadcrumbs as T,Textarea as A,Accordion as k,Indicator as I,Avatar as S,FileInput as R,createEmotionCache as $,NumberInput as M,PasswordInput as P,TextInput as B,Input as D,Checkbox as j,Slider as H,Radio as N,Flex as z,Tabs as G,ScrollArea as U,Popover as V}from"@mantine/core";import F,{css as Z}from"styled-components";import{I as K}from"./index-2c6bee3c.js";import{t as W}from"./theme-03890c40.js";import{M as Y,s as q,e as X,b as Q,f as J,c as ee,g as te,a as ae,d as re,B as oe}from"./screenSizeContext-f9371d3a.js";import{CommonGAssets as ie}from"./gAssets.js";import{L as le,C as ne,I as se}from"./index-aa8a897c.js";import{L as ce}from"./Onboarding-1500d3ab.js";import{T as de}from"./index-0d108e90.js";import"./translationsContext-9b53dee4.js";import pe from"string-format";import he from"dayjs";import{I as ue,s as ge}from"./index-147ed097.js";import{i as me}from"./isProduction-7b6caf54.js";import be from"react-keyed-flatten-children";import{useUncontrolled as fe,useDebouncedValue as Ee,useDisclosure as ve,useClickOutside as we}from"@mantine/hooks";import"@mantine/dates";import{Carousel as xe}from"@mantine/carousel";import{a as ye}from"./useUniqueId-40e78470.js";import"lodash/debounce";import{g as Le}from"./cookieHelper-b704a99d.js";import Ce from"slugify";const _e=F.div`
2
2
  background-color: var(--background-color, transparent);
3
3
  color: white;
4
4
  cursor: pointer;
@@ -282,6 +282,8 @@ import{_ as e,a as t}from"./tslib.es6-8768ccb4.js";import*as a from"react";impor
282
282
  .common-logo-seasonal-left,
283
283
  .common-logo-seasonal-right {
284
284
  z-index: -1;
285
+ max-width: unset;
286
+ max-height: unset;
285
287
  }
286
288
  .common-logo-seasonal-left {
287
289
  position: absolute;
@@ -1 +1 @@
1
- import{L as a}from"./Onboarding-2997627e.js";const i={[a.Vietnam]:"VN",[a.Cambodia]:"KH",[a.Indonesia]:"ID",[a.Malaysia]:"MY",[a.PhilippinesEnglish]:"PH",[a.PhilippinesTagalog]:"PH",[a.Taiwan]:"TW",[a.Thailand]:"TH",[a.Myanmar]:"MM"},n=(a="")=>{const i=a.indexOf("@"),n=a.substring(0,i),s=n.length>3?3:n.length;return a.replace(a.substring(s,i),a.slice(s,i).replace(/./g,"x"))};export{i as M,n as h};
1
+ import{L as a}from"./Onboarding-1500d3ab.js";const i={[a.Vietnam]:"VN",[a.Cambodia]:"KH",[a.Indonesia]:"ID",[a.Malaysia]:"MY",[a.PhilippinesEnglish]:"PH",[a.PhilippinesTagalog]:"PH",[a.Taiwan]:"TW",[a.Thailand]:"TH",[a.Myanmar]:"MM"},n=(a="")=>{const i=a.indexOf("@"),n=a.substring(0,i),s=n.length>3?3:n.length;return a.replace(a.substring(s,i),a.slice(s,i).replace(/./g,"x"))};export{i as M,n as h};
@@ -1,4 +1,4 @@
1
- import{_ as e,a as t}from"./tslib.es6-8768ccb4.js";import a,{useMemo as n,useState as r,useEffect as l,Fragment as i}from"react";import{Stack as o,Flex as c,Badge as s,Grid as d,Box as m,Input as p,Container as C,AspectRatio as u,Tabs as g,ScrollArea as b,Divider as h,SimpleGrid as E}from"@mantine/core";import{E as v,x as f,aA as y,z as w,w as x,H as k}from"./utils-b9aaa166.js";import"@mantine/dates";import"./index-27183b30.js";import{G as L}from"./Onboarding-2997627e.js";import"./gAssets.js";import j from"dayjs";import{M}from"./screenSizeContext-0c4de282.js";import D from"styled-components";import{t as z}from"./theme-af752e5e.js";import"./isProduction-58dc4545.js";import{u as V}from"./useTranslations-9d8df4a8.js";import"./index-4d6e08f0.js";import{useDisclosure as T}from"@mantine/hooks";import"lodash/debounce";import{S as $}from"./index-62d112a2.js";import"./translationsContext-9f44bd6e.js";import"string-format";import{I as B}from"./index-087b3c4b.js";import{M as F}from"./index-bee89bbd.js";import{useForm as _}from"@mantine/form";import H from"dayjs/plugin/customParseFormat";import{D as Z}from"./index-4a918b26.js";import"./index-5d893b18.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"./useUniqueId-9b451fb4.js";import"./cookieHelper-7fe78adc.js";import"slugify";import"date-fns/locale";import"lodash/throttle";const O=D.div`
1
+ import{_ as e,a as t}from"./tslib.es6-cd3045bb.js";import a,{useMemo as n,useState as r,useEffect as l,Fragment as i}from"react";import{Stack as o,Flex as c,Badge as s,Grid as d,Box as m,Input as p,Container as C,AspectRatio as u,Tabs as g,ScrollArea as b,Divider as h,SimpleGrid as E}from"@mantine/core";import{E as v,x as f,aA as y,z as w,w as x,H as k}from"./utils-0c45642f.js";import"@mantine/dates";import"./index-147ed097.js";import{G as L}from"./Onboarding-1500d3ab.js";import"./gAssets.js";import j from"dayjs";import{M}from"./screenSizeContext-f9371d3a.js";import D from"styled-components";import{t as z}from"./theme-03890c40.js";import"./isProduction-7b6caf54.js";import{u as V}from"./useTranslations-5d2ff12d.js";import"./index-2c6bee3c.js";import{useDisclosure as T}from"@mantine/hooks";import"lodash/debounce";import{S as $}from"./index-50360139.js";import"./translationsContext-9b53dee4.js";import"string-format";import{I as B}from"./index-aa8a897c.js";import{M as F}from"./index-f2a3d7a4.js";import{useForm as _}from"@mantine/form";import H from"dayjs/plugin/customParseFormat";import{D as Z}from"./index-a5bbdf9a.js";import"./index-0d108e90.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"./useUniqueId-40e78470.js";import"./cookieHelper-b704a99d.js";import"slugify";import"date-fns/locale";import"lodash/throttle";const O=D.div`
2
2
  position: relative;
3
3
  padding: 16px;
4
4
  min-height: 110px;