@hhgtech/hhg-components 1.29.569-beta-1 → 1.29.570

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 (535) hide show
  1. package/build/{InputDate-08857268.js → InputDate-9ebd52ca.js} +5 -5
  2. package/build/{LastPeriod-32f3e955.js → LastPeriod-00b0b47b.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-50cf9750.js → MobileBottomNavigationIcon-f98b485b.js} +3 -3
  4. package/build/{SiteWideBanner-7dedc50f.js → SiteWideBanner-fedd8edc.js} +13 -13
  5. package/build/{Spinner-093eba96.js → Spinner-18c90fe5.js} +1 -1
  6. package/build/{WhatsApp-63d1377c.js → WhatsApp-061da51d.js} +1 -1
  7. package/build/adapters.js +26 -20
  8. package/build/atoms.js +58 -54
  9. package/build/babyGrowth.js +90 -87
  10. package/build/cache.js +2 -2
  11. package/build/care.js +21 -21
  12. package/build/careBookingSearchBar.js +13 -13
  13. package/build/careBookingSearchBarV2.js +18 -18
  14. package/build/components.js +116 -115
  15. package/build/{constants-8065cb2e.js → constants-25b9497f.js} +1 -1
  16. package/build/{constants-4aae34c0.js → constants-b992173e.js} +1 -1
  17. package/build/constants.js +2 -2
  18. package/build/constantsRiskScreener.js +1 -1
  19. package/build/constantsSite.js +1 -1
  20. package/build/{core-ce1ccab7.js → core-c6026899.js} +1 -1
  21. package/build/{dataTransform-0f22571a.js → dataTransform-02a58a20.js} +1 -1
  22. package/build/ecom.js +4 -4
  23. package/build/{editor-cf6cafe2.js → editor-e6e9e3fb.js} +11 -11
  24. package/build/embeddedHeathToolCards_babyGrowth.js +31 -26
  25. package/build/embeddedHeathToolCards_babyPoop.js +26 -21
  26. package/build/embeddedHeathToolCards_babyVaccine.js +30 -25
  27. package/build/embeddedHeathToolCards_bmi_bmi.js +33 -28
  28. package/build/embeddedHeathToolCards_bmrBmr.js +33 -28
  29. package/build/embeddedHeathToolCards_dueDate_dueDate.js +30 -25
  30. package/build/embeddedHeathToolCards_helpers.js +2 -2
  31. package/build/embeddedHeathToolCards_ovulation_ovulation.js +30 -25
  32. package/build/embeddedHeathToolCards_pwg_pwg.js +32 -27
  33. package/build/embeddedHeathToolCards_targetHeartRate.js +35 -30
  34. package/build/esm/{InputDate-f65a6869.js → InputDate-86aca9f1.js} +5 -5
  35. package/build/esm/{LastPeriod-52712208.js → LastPeriod-0fa55988.js} +1 -1
  36. package/build/esm/{MobileBottomNavigationIcon-001c7c30.js → MobileBottomNavigationIcon-e8c6487b.js} +3 -3
  37. package/build/esm/{SiteWideBanner-7b1d8e06.js → SiteWideBanner-584af462.js} +13 -13
  38. package/build/esm/{Spinner-ea19696d.js → Spinner-bf43cb76.js} +1 -1
  39. package/build/esm/{WhatsApp-82e1ca3c.js → WhatsApp-632c14e2.js} +1 -1
  40. package/build/esm/adapters.js +26 -20
  41. package/build/esm/atoms.js +58 -54
  42. package/build/esm/babyGrowth.js +90 -87
  43. package/build/esm/cache.js +2 -2
  44. package/build/esm/care.js +21 -21
  45. package/build/esm/careBookingSearchBar.js +13 -13
  46. package/build/esm/careBookingSearchBarV2.js +18 -18
  47. package/build/esm/components.js +116 -115
  48. package/build/esm/{constants-3e7d1387.js → constants-2e7ee0b3.js} +1 -1
  49. package/build/esm/{constants-b719e705.js → constants-bc837908.js} +1 -1
  50. package/build/esm/constants.js +2 -2
  51. package/build/esm/constantsRiskScreener.js +1 -1
  52. package/build/esm/constantsSite.js +1 -1
  53. package/build/esm/{core-39483e55.js → core-b5c06568.js} +1 -1
  54. package/build/esm/{dataTransform-26318b95.js → dataTransform-20f020cf.js} +1 -1
  55. package/build/esm/ecom.js +4 -4
  56. package/build/esm/{editor-261cdaf8.js → editor-af36c0ee.js} +11 -11
  57. package/build/esm/embeddedHeathToolCards_babyGrowth.js +31 -26
  58. package/build/esm/embeddedHeathToolCards_babyPoop.js +26 -21
  59. package/build/esm/embeddedHeathToolCards_babyVaccine.js +30 -25
  60. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +33 -28
  61. package/build/esm/embeddedHeathToolCards_bmrBmr.js +33 -28
  62. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +30 -25
  63. package/build/esm/embeddedHeathToolCards_helpers.js +2 -2
  64. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +30 -25
  65. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +32 -27
  66. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +35 -30
  67. package/build/esm/footer.js +28 -22
  68. package/build/esm/gAssets.js +1 -1
  69. package/build/esm/{healthTools-74923351.js → healthTools-2375f3d7.js} +1 -1
  70. package/build/esm/healthToolsCardWrapper.js +24 -19
  71. package/build/esm/healthToolsForm.js +43 -38
  72. package/build/esm/{helpers-f9d4d699.js → helpers-13942d8c.js} +1 -1
  73. package/build/esm/hooks.js +14 -14
  74. package/build/esm/i18n.js +2 -2
  75. package/build/esm/i18nV2.js +2 -2
  76. package/build/esm/{index-0fc6da63.js → index-09409879.js} +3 -3
  77. package/build/esm/{index-0f163fb9.js → index-0948e312.js} +2 -2
  78. package/build/esm/{index-d7f2db49.js → index-0a262faf.js} +2 -2
  79. package/build/esm/{index-93413a59.js → index-0db64b4f.js} +2 -2
  80. package/build/esm/{index-e315422f.js → index-1002fab9.js} +14 -14
  81. package/build/esm/{index-f34b246a.js → index-1164f7d4.js} +1 -1
  82. package/build/esm/{index-ff5a9cbd.js → index-1486a6da.js} +20 -20
  83. package/build/esm/{index-899790b6.js → index-17856e46.js} +3 -3
  84. package/build/esm/{index-68bdec51.js → index-1f84117b.js} +7 -7
  85. package/build/esm/{index-c7e4b5b8.js → index-21bd6de5.js} +4 -4
  86. package/build/esm/{index-1303a9e9.js → index-22745456.js} +2 -2
  87. package/build/esm/{index-7293d66b.js → index-2e49b6fc.js} +2 -2
  88. package/build/esm/{index-cf36ffd5.js → index-308e99f5.js} +2 -2
  89. package/build/esm/{index-fdb6b767.js → index-33c0d916.js} +17 -17
  90. package/build/esm/{index-e9fc54e1.js → index-3895f110.js} +25 -25
  91. package/build/esm/{index-b181324f.js → index-3bd6d1a3.js} +2 -2
  92. package/build/esm/{index-f2d4a2f2.js → index-3cd77063.js} +13 -13
  93. package/build/esm/{index-dccb9506.js → index-3e9784ab.js} +1 -1
  94. package/build/esm/{index-22b31281.js → index-436b58cd.js} +1 -1
  95. package/build/esm/{index-e0195d3f.js → index-4726d97a.js} +15 -15
  96. package/build/esm/{index-290bbf41.js → index-4a538dfc.js} +7 -7
  97. package/build/esm/{index-cbfdcb39.js → index-4c5be22c.js} +1 -1
  98. package/build/esm/{index-338accdb.js → index-4fb66ae3.js} +3 -3
  99. package/build/esm/{index-78645de3.js → index-4ff88c7c.js} +2 -2
  100. package/build/esm/{index-c2390315.js → index-5237dddb.js} +3 -3
  101. package/build/esm/{index-de1d2f4b.js → index-56d1537a.js} +18 -18
  102. package/build/esm/{index-4de1a090.js → index-672802ff.js} +5 -5
  103. package/build/esm/{index-823b020d.js → index-674ad3f8.js} +16 -16
  104. package/build/esm/{index-67f2cb68.js → index-690ee4c3.js} +2 -2
  105. package/build/esm/{index-1bf05d13.js → index-6ac1e86b.js} +17 -17
  106. package/build/esm/{index-49ca1d61.js → index-6bb00382.js} +21 -21
  107. package/build/esm/{index-d07ebc08.js → index-6ffe8a54.js} +1 -1
  108. package/build/esm/{index-d9c89865.js → index-72cc3c82.js} +7 -7
  109. package/build/esm/{index-f7b4f213.js → index-759ff54d.js} +2 -2
  110. package/build/esm/{index-bd6efd60.js → index-79b6aa9a.js} +13 -13
  111. package/build/esm/{index-36a2f381.js → index-7c58eb2b.js} +11 -11
  112. package/build/esm/{index-4b0275bc.js → index-83ce36b7.js} +17 -17
  113. package/build/esm/{index-3a261dcc.js → index-86256531.js} +3 -3
  114. package/build/esm/{index-899fe463.js → index-86d17c65.js} +3 -3
  115. package/build/esm/{index-de0cab31.js → index-8878ebce.js} +4 -4
  116. package/build/esm/{index-a82cf2a4.js → index-8ea55c3a.js} +16 -16
  117. package/build/esm/{index-d9d6512c.js → index-98d2d8a9.js} +22 -22
  118. package/build/esm/{index-2e6b84ec.js → index-9acc34a7.js} +3 -3
  119. package/build/esm/{index-c220cb03.js → index-a488b4e6.js} +2 -2
  120. package/build/esm/{index-5ef4be51.js → index-a82b9bdc.js} +1 -1
  121. package/build/esm/{index-064eae61.js → index-a83d2663.js} +17 -17
  122. package/build/esm/{index-67cba53d.js → index-a9accacf.js} +9 -9
  123. package/build/esm/{index-228906bf.js → index-aac41a30.js} +3 -3
  124. package/build/esm/{index-c6b033bd.js → index-ac17facc.js} +5 -5
  125. package/build/esm/{index-8f724365.js → index-b0564176.js} +3 -3
  126. package/build/esm/{index-06ce15c7.js → index-b09d9b2e.js} +6 -6
  127. package/build/esm/{index-30db72ed.js → index-b3cddca0.js} +1411 -21
  128. package/build/esm/{index-3cdb3003.js → index-b7f9d0bb.js} +31 -31
  129. package/build/esm/{index-46e890ab.js → index-b9c6f372.js} +6 -6
  130. package/build/esm/{index-7cb9f382.js → index-bdbd4403.js} +17 -17
  131. package/build/esm/{index-3ea9e98b.js → index-c28b5511.js} +34 -34
  132. package/build/esm/{index-7985100a.js → index-c2dd68b0.js} +2 -2
  133. package/build/esm/{index-d338eb23.js → index-c6901973.js} +12 -12
  134. package/build/esm/{index-600299c7.js → index-c98bfa61.js} +14 -14
  135. package/build/esm/{index-b10a746b.js → index-ca5f175f.js} +6 -6
  136. package/build/esm/{index-bd7de61c.js → index-cff8f873.js} +1 -1
  137. package/build/esm/{index-522820f6.js → index-d491a5d8.js} +2 -2
  138. package/build/esm/{index-75547e3b.js → index-d4975c2a.js} +2 -2
  139. package/build/esm/{index-8663499e.js → index-d52d4fc9.js} +16 -16
  140. package/build/esm/{index-96a05e4e.js → index-d8c33a6a.js} +2 -2
  141. package/build/esm/{index-706b41f3.js → index-d991925d.js} +31 -31
  142. package/build/esm/{index-3ee60fb4.js → index-dc8f650b.js} +2 -2
  143. package/build/esm/{index-808e2816.js → index-dd7c098e.js} +2 -2
  144. package/build/esm/{index-1f264400.js → index-df2bf85e.js} +24 -24
  145. package/build/esm/{index-ab67d135.js → index-e1aa2251.js} +3 -3
  146. package/build/esm/{index-4cac470f.js → index-e7bcd704.js} +2 -2
  147. package/build/esm/{index-a7c0ab8f.js → index-f522da5c.js} +19 -19
  148. package/build/esm/{index-f9f312b3.js → index-fa37e9df.js} +5 -5
  149. package/build/esm/index.js +133 -132
  150. package/build/esm/{labelSorting-bf4d4562.js → labelSorting-6693dc3b.js} +4 -4
  151. package/build/esm/lead/LeadGenTranslationContext.d.ts +1 -4
  152. package/build/esm/lead/i18n/index.d.ts +1 -1
  153. package/build/esm/lead.js +5108 -444
  154. package/build/esm/leadRecaptcha.js +2 -2
  155. package/build/esm/{logoIcon-be698bb5.js → logoIcon-26941868.js} +2 -2
  156. package/build/esm/mantine.js +34 -29
  157. package/build/esm/misc.js +17 -17
  158. package/build/esm/miscGetDynamicHealthTool.js +3 -3
  159. package/build/esm/miscGetSocialList.js +6 -6
  160. package/build/esm/miscScreenSizeContext.js +1 -1
  161. package/build/esm/mobileBottomNavigation.js +5 -5
  162. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  163. package/build/esm/molecules.js +91 -90
  164. package/build/esm/moleculesArticleCard.js +5 -5
  165. package/build/esm/moleculesArticleCardV2.js +23 -17
  166. package/build/esm/navigation.js +56 -54
  167. package/build/esm/navigationLogoutPopup.js +10 -10
  168. package/build/esm/navigationProfileButton.js +31 -26
  169. package/build/esm/onboardingV2.js +35 -31
  170. package/build/esm/organisms.js +69 -68
  171. package/build/esm/{post-a5353c8e.js → post-6b391944.js} +2 -2
  172. package/build/esm/profileNavigation.js +24 -19
  173. package/build/esm/progressBar.js +1 -1
  174. package/build/esm/pwg.js +28 -23
  175. package/build/esm/{recaptchaV3-8c953825.js → recaptchaV3-34684488.js} +1 -1
  176. package/build/esm/ssoV2.js +36 -32
  177. package/build/esm/{store-37f3829b.js → store-6afbb89f.js} +3 -3
  178. package/build/esm/subot/captcha/index.d.ts +7 -10
  179. package/build/esm/subot.js +58 -51
  180. package/build/esm/surveyOrPremiumBanner.js +38 -34
  181. package/build/esm/surveyQuestionCard.js +11 -11
  182. package/build/esm/{surveyThankyouCard-50a40b37.js → surveyThankyouCard-1b913b92.js} +5 -5
  183. package/build/esm/together.js +62 -59
  184. package/build/esm/togetherApiUtils.js +6 -6
  185. package/build/esm/togetherAtoms.js +36 -31
  186. package/build/esm/togetherComponentGlobalContext.js +6 -6
  187. package/build/esm/togetherMolecules.js +56 -53
  188. package/build/esm/togetherMoleculesCardAuthor.js +28 -28
  189. package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
  190. package/build/esm/togetherMoleculesProfileDetail.js +44 -40
  191. package/build/esm/togetherOrganisms.js +53 -50
  192. package/build/esm/togetherRichTextEditor.js +20 -20
  193. package/build/esm/togetherShareBox.js +12 -12
  194. package/build/esm/{transform-35a086de.js → transform-3992daea.js} +34 -34
  195. package/build/esm/{translationsProvider-03ac207b.js → translationsProvider-0a7813b1.js} +1 -1
  196. package/build/esm/{treePopoverMenu-7d49a273.js → treePopoverMenu-2b0332f7.js} +18 -18
  197. package/build/esm/{types-5c19398b.js → types-be272abe.js} +1 -1
  198. package/build/esm/types.js +1 -1
  199. package/build/esm/{useCartCareService-66f996a0.js → useCartCareService-cefb1029.js} +1 -1
  200. package/build/esm/{useHealthToolCache-7a2e9ba8.js → useHealthToolCache-c49acdf1.js} +1 -1
  201. package/build/esm/{usePhoneValidator-3566dfd5.js → usePhoneValidator-784fe823.js} +4 -4
  202. package/build/esm/{usePlacesAutocomplete-892c6110.js → usePlacesAutocomplete-0617aed7.js} +1 -1
  203. package/build/esm/{useResolvedCaptureUrls-d0d577bf.js → useResolvedCaptureUrls-054899bd.js} +1 -1
  204. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  205. package/build/esm/{utils-477765df.js → utils-07ea3389.js} +4 -4
  206. package/build/esm/{utils-e49b4fa5.js → utils-51368802.js} +1 -1
  207. package/build/esm/{utils-6f1e4152.js → utils-a15aaf15.js} +2 -2
  208. package/build/esm/{utils-66a04a73.js → utils-dc631f93.js} +4 -4
  209. package/build/esm/{utils-3386e317.js → utils-f1f4f7e8.js} +5 -5
  210. package/build/esm/vaccination.js +28 -23
  211. package/build/footer.js +28 -22
  212. package/build/gAssets.js +1 -1
  213. package/build/{healthTools-e38bccfa.js → healthTools-2ff3afde.js} +1 -1
  214. package/build/healthToolsCardWrapper.js +24 -19
  215. package/build/healthToolsForm.js +43 -38
  216. package/build/{helpers-ffc5180c.js → helpers-7c1f5ba2.js} +1 -1
  217. package/build/hooks.js +14 -14
  218. package/build/i18n.js +2 -2
  219. package/build/i18nV2.js +1 -1
  220. package/build/{index-fd684023.js → index-02a3adbc.js} +2 -2
  221. package/build/{index-46b8be64.js → index-0a0cd148.js} +5 -5
  222. package/build/{index-b963fdc6.js → index-0cb355e9.js} +2 -2
  223. package/build/{index-43334bc5.js → index-177681f5.js} +18 -18
  224. package/build/{index-6e6593c4.js → index-19bb7271.js} +31 -31
  225. package/build/{index-8d24839c.js → index-1c1dcc52.js} +1 -1
  226. package/build/{index-7b9a044c.js → index-234d78bb.js} +4 -4
  227. package/build/{index-abd1ee07.js → index-25c6d5be.js} +25 -25
  228. package/build/{index-e2eaee59.js → index-2955fa8d.js} +9 -9
  229. package/build/{index-43df760f.js → index-2ac112e5.js} +34 -34
  230. package/build/{index-3c7de285.js → index-3230baad.js} +2 -2
  231. package/build/{index-87d465e0.js → index-32d9e76c.js} +1 -1
  232. package/build/{index-d3067c77.js → index-33cdb702.js} +17 -17
  233. package/build/{index-5e74008a.js → index-3511e1af.js} +16 -16
  234. package/build/{index-95d86eaa.js → index-3ea0608f.js} +1 -1
  235. package/build/{index-40fcb461.js → index-4157eca3.js} +2 -2
  236. package/build/{index-2ff43355.js → index-4187e37c.js} +3 -3
  237. package/build/{index-4c60ec07.js → index-42f7db47.js} +3 -3
  238. package/build/{index-65e1df12.js → index-44993a1e.js} +2 -2
  239. package/build/{index-f6b23d01.js → index-4cdc2006.js} +6 -6
  240. package/build/{index-742cf6ba.js → index-4dd08aab.js} +3 -3
  241. package/build/{index-4caa5fff.js → index-4f69a48e.js} +2 -2
  242. package/build/{index-2d8bc985.js → index-51d01acc.js} +1414 -21
  243. package/build/{index-c81a13c2.js → index-51e0829a.js} +7 -7
  244. package/build/{index-ab28235f.js → index-548d2ac1.js} +2 -2
  245. package/build/{index-e0c5a6b4.js → index-55dac945.js} +3 -3
  246. package/build/{index-2e8f8ebf.js → index-58ad97c9.js} +3 -3
  247. package/build/{index-131ba6b4.js → index-594475ad.js} +21 -21
  248. package/build/{index-e37081c5.js → index-59658a1f.js} +17 -17
  249. package/build/{index-b1b1f9c1.js → index-5ae0a209.js} +16 -16
  250. package/build/{index-69e4902e.js → index-5c94c387.js} +31 -31
  251. package/build/{index-7ec36c5f.js → index-5d9bbd65.js} +2 -2
  252. package/build/{index-8627ab1b.js → index-60bd1fba.js} +3 -3
  253. package/build/{index-06f6a945.js → index-657ed4d4.js} +2 -2
  254. package/build/{index-a824979f.js → index-669bebfa.js} +3 -3
  255. package/build/{index-a47d94e7.js → index-6c423f35.js} +14 -14
  256. package/build/{index-6f8214dc.js → index-6cd51190.js} +1 -1
  257. package/build/{index-5779d508.js → index-6ce7e646.js} +6 -6
  258. package/build/{index-655d9700.js → index-70903c8e.js} +2 -2
  259. package/build/{index-f444e30a.js → index-74a39817.js} +3 -3
  260. package/build/{index-7e007d08.js → index-75e14772.js} +13 -13
  261. package/build/{index-6c7470cb.js → index-77a042e1.js} +12 -12
  262. package/build/{index-de1d16c4.js → index-7e25b4f3.js} +7 -7
  263. package/build/{index-db4d2c5f.js → index-7f36de72.js} +2 -2
  264. package/build/{index-b328d19e.js → index-7ff1ac74.js} +16 -16
  265. package/build/{index-20f6c2f4.js → index-807fd0e4.js} +22 -22
  266. package/build/{index-1c82c2d3.js → index-83924b73.js} +2 -2
  267. package/build/{index-be455ab9.js → index-862570e8.js} +17 -17
  268. package/build/{index-778b4ce5.js → index-881501b2.js} +15 -15
  269. package/build/{index-46cc456c.js → index-93286eef.js} +2 -2
  270. package/build/{index-003b50b7.js → index-93cfde25.js} +19 -19
  271. package/build/{index-8f87f7c3.js → index-967076ad.js} +17 -17
  272. package/build/{index-90a86ef9.js → index-96c50c61.js} +2 -2
  273. package/build/{index-08a43dd1.js → index-9e2d57d8.js} +4 -4
  274. package/build/{index-4bbb737a.js → index-a0ca8856.js} +20 -20
  275. package/build/{index-881f090c.js → index-a2e9b70a.js} +1 -1
  276. package/build/{index-614f3a92.js → index-ae158063.js} +7 -7
  277. package/build/{index-404f44b0.js → index-b3f5d72d.js} +2 -2
  278. package/build/{index-481cd2fa.js → index-b5099834.js} +2 -2
  279. package/build/{index-dabd93aa.js → index-b7ce6c84.js} +3 -3
  280. package/build/{index-75c55095.js → index-ba0188a4.js} +11 -11
  281. package/build/{index-b43251d2.js → index-ba967ab3.js} +1 -1
  282. package/build/{index-82d547d1.js → index-c1b212c8.js} +5 -5
  283. package/build/{index-dc8ec7b2.js → index-c4028ca0.js} +2 -2
  284. package/build/{index-11043d70.js → index-caeeb401.js} +6 -6
  285. package/build/{index-f9d1861d.js → index-d8ef9967.js} +2 -2
  286. package/build/{index-b30dad24.js → index-dd9b1412.js} +1 -1
  287. package/build/{index-e2bb27b3.js → index-e024ff35.js} +5 -5
  288. package/build/{index-f27ce4da.js → index-ea09e421.js} +13 -13
  289. package/build/{index-38100242.js → index-ebb33f1f.js} +24 -24
  290. package/build/{index-581db9b1.js → index-ebd0ec02.js} +3 -3
  291. package/build/{index-00a7007b.js → index-ec6c4d5e.js} +17 -17
  292. package/build/{index-fbd00520.js → index-f85a4de0.js} +14 -14
  293. package/build/index.js +133 -132
  294. package/build/{labelSorting-180ba4cb.js → labelSorting-c4df0590.js} +4 -4
  295. package/build/lead/LeadGenTranslationContext.d.ts +1 -4
  296. package/build/lead/i18n/index.d.ts +1 -1
  297. package/build/lead.js +5218 -535
  298. package/build/leadRecaptcha.js +2 -2
  299. package/build/{logoIcon-20be13cb.js → logoIcon-55134dc4.js} +2 -2
  300. package/build/mantine.js +32 -27
  301. package/build/misc.js +17 -17
  302. package/build/miscGetDynamicHealthTool.js +3 -3
  303. package/build/miscGetSocialList.js +6 -6
  304. package/build/miscScreenSizeContext.js +1 -1
  305. package/build/mobileBottomNavigation.js +5 -5
  306. package/build/mobileBottomNavigationIcon.js +5 -5
  307. package/build/molecules.js +91 -90
  308. package/build/moleculesArticleCard.js +5 -5
  309. package/build/moleculesArticleCardV2.js +23 -17
  310. package/build/navigation.js +56 -54
  311. package/build/navigationLogoutPopup.js +10 -10
  312. package/build/navigationProfileButton.js +31 -26
  313. package/build/onboardingV2.js +34 -30
  314. package/build/organisms.js +69 -68
  315. package/build/{post-8382700f.js → post-ae6cd5df.js} +2 -2
  316. package/build/profileNavigation.js +24 -19
  317. package/build/progressBar.js +1 -1
  318. package/build/pwg.js +28 -23
  319. package/build/{recaptchaV3-63159c36.js → recaptchaV3-01aeba64.js} +1 -1
  320. package/build/ssoV2.js +34 -30
  321. package/build/{store-826b0ee1.js → store-738f12a2.js} +3 -3
  322. package/build/subot/captcha/index.d.ts +7 -10
  323. package/build/subot.js +58 -51
  324. package/build/surveyOrPremiumBanner.js +38 -34
  325. package/build/surveyQuestionCard.js +11 -11
  326. package/build/{surveyThankyouCard-369aeed0.js → surveyThankyouCard-c4cc9785.js} +5 -5
  327. package/build/together.js +62 -59
  328. package/build/togetherApiUtils.js +6 -6
  329. package/build/togetherAtoms.js +36 -31
  330. package/build/togetherComponentGlobalContext.js +6 -6
  331. package/build/togetherMolecules.js +56 -53
  332. package/build/togetherMoleculesCardAuthor.js +28 -28
  333. package/build/togetherMoleculesPostImagePreview.js +13 -13
  334. package/build/togetherMoleculesProfileDetail.js +44 -40
  335. package/build/togetherOrganisms.js +53 -50
  336. package/build/togetherRichTextEditor.js +20 -20
  337. package/build/togetherShareBox.js +12 -12
  338. package/build/{transform-9b22887b.js → transform-bdface58.js} +34 -34
  339. package/build/{translationsProvider-9a31152f.js → translationsProvider-8b5cb380.js} +1 -1
  340. package/build/{treePopoverMenu-8f5a8758.js → treePopoverMenu-7978e490.js} +18 -18
  341. package/build/{types-cbe5b5e9.js → types-51ba8d5f.js} +1 -1
  342. package/build/types.js +1 -1
  343. package/build/{useCartCareService-507956df.js → useCartCareService-12a23cae.js} +1 -1
  344. package/build/{useHealthToolCache-99a35777.js → useHealthToolCache-a14d6044.js} +1 -1
  345. package/build/{usePhoneValidator-e5715929.js → usePhoneValidator-a940ee56.js} +4 -4
  346. package/build/{usePlacesAutocomplete-a2f8202c.js → usePlacesAutocomplete-b97e2338.js} +1 -1
  347. package/build/{useResolvedCaptureUrls-2a1edb01.js → useResolvedCaptureUrls-b4a7e19a.js} +1 -1
  348. package/build/useTogetherAuthRequiredAction.js +9 -9
  349. package/build/{utils-bcfbb6ba.js → utils-200a6650.js} +5 -5
  350. package/build/{utils-bb1e5438.js → utils-39d3f595.js} +4 -4
  351. package/build/{utils-c899d146.js → utils-655fcf34.js} +4 -4
  352. package/build/{utils-16e69573.js → utils-bc439355.js} +2 -2
  353. package/build/{utils-114e1ca6.js → utils-c65ca307.js} +1 -1
  354. package/build/vaccination.js +28 -23
  355. package/package.json +1 -1
  356. package/build/countrySelect-c5552422.js +0 -1436
  357. package/build/esm/countrySelect-5f2fe567.js +0 -1426
  358. package/build/esm/formatTrackingData-66cd5664.js +0 -4708
  359. package/build/esm/lead/LeadGenCore.d.ts +0 -75
  360. package/build/esm/lead/LeadGenSlim.d.ts +0 -33
  361. package/build/esm/lead/i18n/leadTranslations.d.ts +0 -6
  362. package/build/esm/leadSlim.d.ts +0 -1
  363. package/build/esm/leadSlim.js +0 -457
  364. package/build/formatTrackingData-676340eb.js +0 -4757
  365. package/build/lead/LeadGenCore.d.ts +0 -75
  366. package/build/lead/LeadGenSlim.d.ts +0 -33
  367. package/build/lead/i18n/leadTranslations.d.ts +0 -6
  368. package/build/leadSlim.d.ts +0 -1
  369. package/build/leadSlim.js +0 -466
  370. /package/build/{BMI_BOYS.percentile.monthly-ec41f351.js → BMI_BOYS.percentile.monthly-7b48264a.js} +0 -0
  371. /package/build/{BMI_BOYS.percentile.weekly-babe6552.js → BMI_BOYS.percentile.weekly-129bbda2.js} +0 -0
  372. /package/build/{BMI_BOYS.percentile.yearly-f38dc134.js → BMI_BOYS.percentile.yearly-5fb02717.js} +0 -0
  373. /package/build/{BMI_BOYS.zscore.monthly-093d3209.js → BMI_BOYS.zscore.monthly-0b5978f6.js} +0 -0
  374. /package/build/{BMI_BOYS.zscore.weekly-fb26ac25.js → BMI_BOYS.zscore.weekly-711e040a.js} +0 -0
  375. /package/build/{BMI_BOYS.zscore.yearly-12724474.js → BMI_BOYS.zscore.yearly-39ce689a.js} +0 -0
  376. /package/build/{BMI_GIRLS.percentile.monthly-98627e58.js → BMI_GIRLS.percentile.monthly-8916f9e9.js} +0 -0
  377. /package/build/{BMI_GIRLS.percentile.weekly-7d6e1ed5.js → BMI_GIRLS.percentile.weekly-a5d8d437.js} +0 -0
  378. /package/build/{BMI_GIRLS.percentile.yearly-71e3bd23.js → BMI_GIRLS.percentile.yearly-7db6e19a.js} +0 -0
  379. /package/build/{BMI_GIRLS.zscore.monthly-24f3db40.js → BMI_GIRLS.zscore.monthly-76f74077.js} +0 -0
  380. /package/build/{BMI_GIRLS.zscore.weekly-a5a50706.js → BMI_GIRLS.zscore.weekly-5b8ec1fe.js} +0 -0
  381. /package/build/{BMI_GIRLS.zscore.yearly-9b2336b7.js → BMI_GIRLS.zscore.yearly-19b7d20d.js} +0 -0
  382. /package/build/{ChevronDown-08277d27.js → ChevronDown-7aa5239a.js} +0 -0
  383. /package/build/{Google-0aa53046.js → Google-e4c5b102.js} +0 -0
  384. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4eee9b4e.js → HEAD CIRCUM_BOYS.percentile.monthly-5f7ab088.js} +0 -0
  385. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-81e3479c.js → HEAD CIRCUM_BOYS.percentile.weekly-4b0643ff.js} +0 -0
  386. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-f11a72d0.js → HEAD CIRCUM_BOYS.percentile.yearly-38491538.js} +0 -0
  387. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-81a9eb32.js → HEAD CIRCUM_BOYS.zscore.monthly-06121ec5.js} +0 -0
  388. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-be1f0ad1.js → HEAD CIRCUM_BOYS.zscore.weekly-14419797.js} +0 -0
  389. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0e088655.js → HEAD CIRCUM_BOYS.zscore.yearly-2402f1cd.js} +0 -0
  390. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f0e7a932.js → HEAD CIRCUM_GIRLS.percentile.monthly-e10b9aa6.js} +0 -0
  391. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-7ff2343e.js → HEAD CIRCUM_GIRLS.percentile.weekly-dfd42fbd.js} +0 -0
  392. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-33049888.js → HEAD CIRCUM_GIRLS.percentile.yearly-570c5749.js} +0 -0
  393. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-9edda77b.js → HEAD CIRCUM_GIRLS.zscore.monthly-1a171872.js} +0 -0
  394. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2e99f6c6.js → HEAD CIRCUM_GIRLS.zscore.weekly-ddfe0d95.js} +0 -0
  395. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-57d5f62e.js → HEAD CIRCUM_GIRLS.zscore.yearly-7f73fe04.js} +0 -0
  396. /package/build/{HEIGHT_BOYS.percentile.monthly-be564b0a.js → HEIGHT_BOYS.percentile.monthly-70f949ac.js} +0 -0
  397. /package/build/{HEIGHT_BOYS.percentile.weekly-661cc4fb.js → HEIGHT_BOYS.percentile.weekly-c30b1584.js} +0 -0
  398. /package/build/{HEIGHT_BOYS.percentile.yearly-73170d04.js → HEIGHT_BOYS.percentile.yearly-1d674e57.js} +0 -0
  399. /package/build/{HEIGHT_BOYS.zscore.monthly-b9222d9b.js → HEIGHT_BOYS.zscore.monthly-7d9f3790.js} +0 -0
  400. /package/build/{HEIGHT_BOYS.zscore.weekly-03091216.js → HEIGHT_BOYS.zscore.weekly-32d669bf.js} +0 -0
  401. /package/build/{HEIGHT_BOYS.zscore.yearly-64769782.js → HEIGHT_BOYS.zscore.yearly-a3d14050.js} +0 -0
  402. /package/build/{HEIGHT_GIRLS.percentile.monthly-ab21e817.js → HEIGHT_GIRLS.percentile.monthly-31599c31.js} +0 -0
  403. /package/build/{HEIGHT_GIRLS.percentile.weekly-624f1899.js → HEIGHT_GIRLS.percentile.weekly-65421db3.js} +0 -0
  404. /package/build/{HEIGHT_GIRLS.percentile.yearly-361486e2.js → HEIGHT_GIRLS.percentile.yearly-61c1ec90.js} +0 -0
  405. /package/build/{HEIGHT_GIRLS.zscore.monthly-093817f4.js → HEIGHT_GIRLS.zscore.monthly-5c4d0cc1.js} +0 -0
  406. /package/build/{HEIGHT_GIRLS.zscore.weekly-3144902d.js → HEIGHT_GIRLS.zscore.weekly-703e5f92.js} +0 -0
  407. /package/build/{HEIGHT_GIRLS.zscore.yearly-2aaf2b22.js → HEIGHT_GIRLS.zscore.yearly-4ec4aece.js} +0 -0
  408. /package/build/{Visible-23adc06b.js → Visible-3589ecdf.js} +0 -0
  409. /package/build/{WEIGHT_BOYS.percentile.monthly-306fddae.js → WEIGHT_BOYS.percentile.monthly-3fa2caaa.js} +0 -0
  410. /package/build/{WEIGHT_BOYS.percentile.weekly-b636ff29.js → WEIGHT_BOYS.percentile.weekly-3f3ab6a6.js} +0 -0
  411. /package/build/{WEIGHT_BOYS.percentile.yearly-9020d242.js → WEIGHT_BOYS.percentile.yearly-0e8b97fd.js} +0 -0
  412. /package/build/{WEIGHT_BOYS.zscore.monthly-e03a27ab.js → WEIGHT_BOYS.zscore.monthly-e95a73e4.js} +0 -0
  413. /package/build/{WEIGHT_BOYS.zscore.weekly-ee1d3669.js → WEIGHT_BOYS.zscore.weekly-9fa69332.js} +0 -0
  414. /package/build/{WEIGHT_BOYS.zscore.yearly-bfaa8fdc.js → WEIGHT_BOYS.zscore.yearly-a3b3fd37.js} +0 -0
  415. /package/build/{WEIGHT_GIRLS.percentile.monthly-8ea574e2.js → WEIGHT_GIRLS.percentile.monthly-a60581dd.js} +0 -0
  416. /package/build/{WEIGHT_GIRLS.percentile.weekly-4762f0d4.js → WEIGHT_GIRLS.percentile.weekly-ce7d59e5.js} +0 -0
  417. /package/build/{WEIGHT_GIRLS.percentile.yearly-aefa8dc5.js → WEIGHT_GIRLS.percentile.yearly-6c2dcb5b.js} +0 -0
  418. /package/build/{WEIGHT_GIRLS.zscore.monthly-4b45292d.js → WEIGHT_GIRLS.zscore.monthly-ae847d4b.js} +0 -0
  419. /package/build/{WEIGHT_GIRLS.zscore.weekly-c6126500.js → WEIGHT_GIRLS.zscore.weekly-8fcb8eee.js} +0 -0
  420. /package/build/{WEIGHT_GIRLS.zscore.yearly-e1336d0d.js → WEIGHT_GIRLS.zscore.yearly-904f1266.js} +0 -0
  421. /package/build/{ageGenerate-3906f8ca.js → ageGenerate-cb2b7ad3.js} +0 -0
  422. /package/build/{animation-f547c73c.js → animation-116218a5.js} +0 -0
  423. /package/build/{appearance-149892d5.js → appearance-c75af09e.js} +0 -0
  424. /package/build/{constants-48fbda23.js → constants-06c26920.js} +0 -0
  425. /package/build/{constants-4b5d512b.js → constants-2b73f764.js} +0 -0
  426. /package/build/{constants-422fd344.js → constants-82549a98.js} +0 -0
  427. /package/build/{context-b554da01.js → context-b791251e.js} +0 -0
  428. /package/build/{dataTransform-b6b26189.js → dataTransform-15d1dbe9.js} +0 -0
  429. /package/build/esm/{BMI_BOYS.percentile.monthly-97a20b4d.js → BMI_BOYS.percentile.monthly-3ba45a7b.js} +0 -0
  430. /package/build/esm/{BMI_BOYS.percentile.weekly-382fe034.js → BMI_BOYS.percentile.weekly-4f198fff.js} +0 -0
  431. /package/build/esm/{BMI_BOYS.percentile.yearly-a36776dd.js → BMI_BOYS.percentile.yearly-e1c40939.js} +0 -0
  432. /package/build/esm/{BMI_BOYS.zscore.monthly-d5318e53.js → BMI_BOYS.zscore.monthly-b723f477.js} +0 -0
  433. /package/build/esm/{BMI_BOYS.zscore.weekly-c0f824a0.js → BMI_BOYS.zscore.weekly-76872082.js} +0 -0
  434. /package/build/esm/{BMI_BOYS.zscore.yearly-f10e1edc.js → BMI_BOYS.zscore.yearly-4c65f9b4.js} +0 -0
  435. /package/build/esm/{BMI_GIRLS.percentile.monthly-d1b62437.js → BMI_GIRLS.percentile.monthly-9acc6205.js} +0 -0
  436. /package/build/esm/{BMI_GIRLS.percentile.weekly-7937273c.js → BMI_GIRLS.percentile.weekly-f59f14ac.js} +0 -0
  437. /package/build/esm/{BMI_GIRLS.percentile.yearly-e315a4a3.js → BMI_GIRLS.percentile.yearly-0e3f0688.js} +0 -0
  438. /package/build/esm/{BMI_GIRLS.zscore.monthly-002269dc.js → BMI_GIRLS.zscore.monthly-b4c2b4d3.js} +0 -0
  439. /package/build/esm/{BMI_GIRLS.zscore.weekly-ef9b3638.js → BMI_GIRLS.zscore.weekly-a96f7858.js} +0 -0
  440. /package/build/esm/{BMI_GIRLS.zscore.yearly-bb3de80e.js → BMI_GIRLS.zscore.yearly-a0416fdf.js} +0 -0
  441. /package/build/esm/{ChevronDown-e7a114ab.js → ChevronDown-7abc9558.js} +0 -0
  442. /package/build/esm/{Google-08fae6e7.js → Google-fbfa5959.js} +0 -0
  443. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a8c8b0e4.js → HEAD CIRCUM_BOYS.percentile.monthly-175d0f0a.js} +0 -0
  444. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-56d55514.js → HEAD CIRCUM_BOYS.percentile.weekly-6c938980.js} +0 -0
  445. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-46e43701.js → HEAD CIRCUM_BOYS.percentile.yearly-2d8e62fd.js} +0 -0
  446. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ac9615aa.js → HEAD CIRCUM_BOYS.zscore.monthly-ca7a5051.js} +0 -0
  447. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cda1d4cc.js → HEAD CIRCUM_BOYS.zscore.weekly-65be2ed7.js} +0 -0
  448. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c18cf4b5.js → HEAD CIRCUM_BOYS.zscore.yearly-c8ba092c.js} +0 -0
  449. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a4a88b52.js → HEAD CIRCUM_GIRLS.percentile.monthly-1a1aaf27.js} +0 -0
  450. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-1826323f.js → HEAD CIRCUM_GIRLS.percentile.weekly-e67f1d9c.js} +0 -0
  451. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-d5eedc60.js → HEAD CIRCUM_GIRLS.percentile.yearly-07489c1f.js} +0 -0
  452. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-18ef25d6.js → HEAD CIRCUM_GIRLS.zscore.monthly-d38a69f2.js} +0 -0
  453. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-ff051a7c.js → HEAD CIRCUM_GIRLS.zscore.weekly-659f780b.js} +0 -0
  454. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-58cf563d.js → HEAD CIRCUM_GIRLS.zscore.yearly-1b298591.js} +0 -0
  455. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-92c3e91a.js → HEIGHT_BOYS.percentile.monthly-b723062c.js} +0 -0
  456. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-a42a1193.js → HEIGHT_BOYS.percentile.weekly-04ed64cc.js} +0 -0
  457. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-833092a4.js → HEIGHT_BOYS.percentile.yearly-1c998863.js} +0 -0
  458. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9e073c1a.js → HEIGHT_BOYS.zscore.monthly-c168ec05.js} +0 -0
  459. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-aff31605.js → HEIGHT_BOYS.zscore.weekly-02b9f313.js} +0 -0
  460. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d722a128.js → HEIGHT_BOYS.zscore.yearly-063b9a59.js} +0 -0
  461. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-572ed7f0.js → HEIGHT_GIRLS.percentile.monthly-fc2bc0f7.js} +0 -0
  462. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0475e2cb.js → HEIGHT_GIRLS.percentile.weekly-aaa0e151.js} +0 -0
  463. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8c5b8b29.js → HEIGHT_GIRLS.percentile.yearly-5d318320.js} +0 -0
  464. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-421bc7c4.js → HEIGHT_GIRLS.zscore.monthly-37dbee5f.js} +0 -0
  465. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4bb3a86d.js → HEIGHT_GIRLS.zscore.weekly-cb6f65f3.js} +0 -0
  466. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5c09f9bb.js → HEIGHT_GIRLS.zscore.yearly-41f5ca61.js} +0 -0
  467. /package/build/esm/{Visible-caa51992.js → Visible-f8dd9574.js} +0 -0
  468. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-5e4f66cd.js → WEIGHT_BOYS.percentile.monthly-aa54e3a0.js} +0 -0
  469. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-f50c7446.js → WEIGHT_BOYS.percentile.weekly-088b794b.js} +0 -0
  470. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-eb5eed88.js → WEIGHT_BOYS.percentile.yearly-213bb8ce.js} +0 -0
  471. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-52ea2bb3.js → WEIGHT_BOYS.zscore.monthly-a73caed2.js} +0 -0
  472. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-c7ae7dfd.js → WEIGHT_BOYS.zscore.weekly-f716733a.js} +0 -0
  473. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-d57fc87b.js → WEIGHT_BOYS.zscore.yearly-63919d9b.js} +0 -0
  474. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-19e46985.js → WEIGHT_GIRLS.percentile.monthly-5646fbb1.js} +0 -0
  475. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-2591859c.js → WEIGHT_GIRLS.percentile.weekly-306d88cf.js} +0 -0
  476. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-57bc4cc1.js → WEIGHT_GIRLS.percentile.yearly-efa44761.js} +0 -0
  477. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-465e668f.js → WEIGHT_GIRLS.zscore.monthly-0eb6c8a3.js} +0 -0
  478. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f3f2b59c.js → WEIGHT_GIRLS.zscore.weekly-a8058f6d.js} +0 -0
  479. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-aeb2b42f.js → WEIGHT_GIRLS.zscore.yearly-4f6015c7.js} +0 -0
  480. /package/build/esm/{ageGenerate-77d53d6e.js → ageGenerate-74c2e9c7.js} +0 -0
  481. /package/build/esm/{animation-fc6c2853.js → animation-e3175d08.js} +0 -0
  482. /package/build/esm/{appearance-281ac1d5.js → appearance-c71018df.js} +0 -0
  483. /package/build/esm/{constants-4cb42008.js → constants-7a11f46a.js} +0 -0
  484. /package/build/esm/{constants-e9e71de4.js → constants-c21d8ae3.js} +0 -0
  485. /package/build/esm/{constants-7aa048fc.js → constants-d7235689.js} +0 -0
  486. /package/build/esm/{context-874ddf6d.js → context-d81be133.js} +0 -0
  487. /package/build/esm/{dataTransform-372efcfe.js → dataTransform-c9eeac89.js} +0 -0
  488. /package/build/esm/{index-e4384b7d.js → index-12e998bf.js} +0 -0
  489. /package/build/esm/{index-3bf06e2a.js → index-1cea02c2.js} +0 -0
  490. /package/build/esm/{index-7a991928.js → index-39b9cc52.js} +0 -0
  491. /package/build/esm/{index-d95973b6.js → index-a96ebb13.js} +0 -0
  492. /package/build/esm/{index-7118c49c.js → index-c7cb0101.js} +0 -0
  493. /package/build/esm/{index-56fa1254.js → index-daa46513.js} +0 -0
  494. /package/build/esm/{index-01968d47.js → index-db6af26b.js} +0 -0
  495. /package/build/esm/{index-f0de9a8e.js → index-dfaf91b6.js} +0 -0
  496. /package/build/esm/{index-07d91836.js → index-e038ce4d.js} +0 -0
  497. /package/build/esm/{index.styles-0391c4e0.js → index.styles-c9e74348.js} +0 -0
  498. /package/build/esm/{localizeNumberFormat-bf73c745.js → localizeNumberFormat-c803156a.js} +0 -0
  499. /package/build/esm/{number-d55d7d9c.js → number-64a7542e.js} +0 -0
  500. /package/build/esm/{paths-43c28ddc.js → paths-a3ad6847.js} +0 -0
  501. /package/build/esm/{routing-c42218f5.js → routing-162621b2.js} +0 -0
  502. /package/build/esm/{shared-98eece30.js → shared-eb75e8c5.js} +0 -0
  503. /package/build/esm/{translationsContext-a1ebd15a.js → translationsContext-2ce23027.js} +0 -0
  504. /package/build/esm/{tslib.es6-27efc22b.js → tslib.es6-2430ac70.js} +0 -0
  505. /package/build/esm/{types-75876d99.js → types-d127803a.js} +0 -0
  506. /package/build/esm/{useImageAspectRatio-83db748d.js → useImageAspectRatio-b39c77ec.js} +0 -0
  507. /package/build/esm/{useOutsideClick-81700f84.js → useOutsideClick-5c34d0ee.js} +0 -0
  508. /package/build/esm/{useScrollbarSize-7e1afe9c.js → useScrollbarSize-e81eb6a3.js} +0 -0
  509. /package/build/esm/{useUniqueId-01369143.js → useUniqueId-39017eb1.js} +0 -0
  510. /package/build/esm/{utils-ccb182fe.js → utils-b29fb220.js} +0 -0
  511. /package/build/esm/{utils-c047a679.js → utils-b8b8ee25.js} +0 -0
  512. /package/build/{index-3f18bdc2.js → index-06e8844d.js} +0 -0
  513. /package/build/{index-ffee06c5.js → index-11ef464d.js} +0 -0
  514. /package/build/{index-977b4795.js → index-6d8bca56.js} +0 -0
  515. /package/build/{index-6e5f3e7c.js → index-74946e26.js} +0 -0
  516. /package/build/{index-48e1122b.js → index-7f972e73.js} +0 -0
  517. /package/build/{index-7e38b347.js → index-b0aea26f.js} +0 -0
  518. /package/build/{index-6d517a66.js → index-b57789f4.js} +0 -0
  519. /package/build/{index-5aae3065.js → index-e89c54d4.js} +0 -0
  520. /package/build/{index-31f66c70.js → index-f6d864a4.js} +0 -0
  521. /package/build/{index.styles-791687be.js → index.styles-29a1822e.js} +0 -0
  522. /package/build/{localizeNumberFormat-f6bcfd9d.js → localizeNumberFormat-e1cc74aa.js} +0 -0
  523. /package/build/{number-3d8b43b3.js → number-6fc1dfe4.js} +0 -0
  524. /package/build/{paths-632e7aad.js → paths-af560692.js} +0 -0
  525. /package/build/{routing-5ffec129.js → routing-6a52dd63.js} +0 -0
  526. /package/build/{shared-a4af7c6b.js → shared-2404a68d.js} +0 -0
  527. /package/build/{translationsContext-18f9807b.js → translationsContext-5889fc15.js} +0 -0
  528. /package/build/{tslib.es6-133289ef.js → tslib.es6-d98fb08d.js} +0 -0
  529. /package/build/{types-fd94261c.js → types-869ba50a.js} +0 -0
  530. /package/build/{useImageAspectRatio-0b4451d6.js → useImageAspectRatio-a5dc09c4.js} +0 -0
  531. /package/build/{useOutsideClick-79067ea1.js → useOutsideClick-567b4a52.js} +0 -0
  532. /package/build/{useScrollbarSize-3c797763.js → useScrollbarSize-883050ad.js} +0 -0
  533. /package/build/{useUniqueId-dbfd8fd0.js → useUniqueId-ead9ce35.js} +0 -0
  534. /package/build/{utils-6470579d.js → utils-311b8f16.js} +0 -0
  535. /package/build/{utils-c9773ecc.js → utils-6fe31363.js} +0 -0
@@ -1,75 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { TranslationValues } from "../i18n/translationsContext";
3
- import { UserInfo } from "../interfaces/types";
4
- import { LOCALE } from "../interfaces/types/Locale";
5
- import { FormatMessageFunction } from "./LeadGenTranslationContext";
6
- import './style.scss';
7
- export type Props = {
8
- apiUrl?: string;
9
- apiSubotUrl?: string;
10
- siteDomain?: string;
11
- siteId?: string;
12
- locale?: LOCALE;
13
- primaryColor?: string;
14
- DEBUG_URL?: string;
15
- forceCampaign?: any;
16
- children?: ReactNode;
17
- extraPayloadValues?: Array<{
18
- key: string;
19
- value: string;
20
- control: string;
21
- }>;
22
- excludeExitRulesHandler?: boolean;
23
- userInfo?: UserInfo | null;
24
- onClose?: () => void;
25
- onSubmit?: (value?: any) => void;
26
- formatMessage?: FormatMessageFunction;
27
- };
28
- export type LeadGenCoreProps = Props & {
29
- /** Every translation the popup shows in `locale`. */
30
- translations: TranslationValues;
31
- };
32
- /**
33
- * `LeadGen` without a source of translations: the entries that export
34
- * `LeadGen` (`lead`, `leadSlim`) pass them in.
35
- */
36
- export declare const LeadGenCore: ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues, excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, formatMessage, translations, }: LeadGenCoreProps) => React.JSX.Element;
37
- declare const LEAD_GEN_PARTS: {
38
- Heading: ({ ...rest }: import("../mantine").TextProps<HTMLParagraphElement>) => React.JSX.Element;
39
- Description: ({ ...rest }: import("../mantine").TextProps<HTMLParagraphElement>) => React.JSX.Element;
40
- Form: (props: {
41
- fillInfo: {
42
- phone?: string;
43
- email?: string;
44
- };
45
- popoverProps?: import("../mantine").PopoverProps;
46
- submitProps?: import("../mantine").ButtonProps;
47
- } & import("@mantine/core").BoxProps) => React.JSX.Element;
48
- Thankyou: ({ children, }: {
49
- children: (v: import("./components/context").ThankyouType, close: () => void) => Element;
50
- }) => Element;
51
- OtpForm: ({ ...rest }: import("@mantine/core").BoxProps) => React.JSX.Element;
52
- Close: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
53
- };
54
- export type LeadGenParts = typeof LEAD_GEN_PARTS;
55
- export interface CompoundedComponent extends React.ForwardRefExoticComponent<Props>, LeadGenParts {
56
- }
57
- /** Adds the parts of the compound form (`LeadGen.Heading`, ...) to `component`. */
58
- export declare const withLeadGenParts: <P>(component: React.FC<P>) => React.FC<P> & {
59
- Heading: ({ ...rest }: import("../mantine").TextProps<HTMLParagraphElement>) => React.JSX.Element;
60
- Description: ({ ...rest }: import("../mantine").TextProps<HTMLParagraphElement>) => React.JSX.Element;
61
- Form: (props: {
62
- fillInfo: {
63
- phone?: string;
64
- email?: string;
65
- };
66
- popoverProps?: import("../mantine").PopoverProps;
67
- submitProps?: import("../mantine").ButtonProps;
68
- } & import("@mantine/core").BoxProps) => React.JSX.Element;
69
- Thankyou: ({ children, }: {
70
- children: (v: import("./components/context").ThankyouType, close: () => void) => Element;
71
- }) => Element;
72
- OtpForm: ({ ...rest }: import("@mantine/core").BoxProps) => React.JSX.Element;
73
- Close: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
74
- };
75
- export {};
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import { TranslationValues } from "../i18n/translationsContext";
3
- import { Props } from "./LeadGenCore";
4
- export type LeadGenSlimProps = Props & {
5
- /**
6
- * The shared library translations of `locale`: what
7
- * `@hhgtech/hhg-components/i18n-values/<locale>` exports.
8
- */
9
- translations: TranslationValues;
10
- };
11
- export declare const LeadGen: React.FC<Props & {
12
- /**
13
- * The shared library translations of `locale`: what
14
- * `@hhgtech/hhg-components/i18n-values/<locale>` exports.
15
- */
16
- translations: TranslationValues;
17
- }> & {
18
- Heading: ({ ...rest }: import("../mantine").TextProps<HTMLParagraphElement>) => React.JSX.Element;
19
- Description: ({ ...rest }: import("../mantine").TextProps<HTMLParagraphElement>) => React.JSX.Element;
20
- Form: (props: {
21
- fillInfo: {
22
- phone?: string;
23
- email?: string;
24
- };
25
- popoverProps?: import("../mantine").PopoverProps;
26
- submitProps?: import("../mantine").ButtonProps;
27
- } & import("@mantine/core").BoxProps) => React.JSX.Element;
28
- Thankyou: ({ children, }: {
29
- children: (v: import("./components/context").ThankyouType, close: () => void) => Element;
30
- }) => Element;
31
- OtpForm: ({ ...rest }: import("@mantine/core").BoxProps) => React.JSX.Element;
32
- Close: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
33
- };
@@ -1,6 +0,0 @@
1
- import { TranslationValues } from "../../i18n/translationsContext";
2
- /**
3
- * Every translation lead shows in `locale`: the shared library translations
4
- * of that locale, given by the caller, with the ones of lead on top.
5
- */
6
- export declare const withLeadTranslations: (locale: string, libraryTranslations?: TranslationValues) => TranslationValues;
@@ -1 +0,0 @@
1
- export * from "./lead/LeadGenSlim";
@@ -1,457 +0,0 @@
1
- import { _ as __awaiter, a as __rest } from './tslib.es6-27efc22b.js';
2
- import React__default, { useRef, useMemo, useState, useEffect, useCallback } from 'react';
3
- import { H as Heading, D as Description, F as Form, T as Thankyou, O as OtpBlock, l as leadStore, L as LeadLog, k as clearPassiveEvent, e as checkShowPopup, g as formatTrackingData, h as TEMPLATE_ALLOW_NEWTRACKING, i as LeadGenContext, d as LeadGenTranslationProvider, C as Component, N as NewLeadPopup, j as formatFormData, w as withLeadTranslations } from './formatTrackingData-66cd5664.js';
4
- import { Portal, Box, Transition, Overlay } from '@mantine/core';
5
- import debounce from 'lodash/debounce';
6
- import { setCookie, getCookie } from './miscCookieHelper.js';
7
- import { a as getPopupWrapperDom } from './utils-c047a679.js';
8
- import { C as Close } from './index-522820f6.js';
9
- import { M as MantineProvider } from './index-3a261dcc.js';
10
- import { C as CustomStylesType } from './index-56fa1254.js';
11
- import { c as ZINDEX_SSO } from './index-bd7de61c.js';
12
- import { M as MAPPED_LOCALE } from './utils-e49b4fa5.js';
13
- import './index-30db72ed.js';
14
- import '@hhgtech/icons/other';
15
- import '@mantine/hooks';
16
- import './index-3bf06e2a.js';
17
- import './constantsDomainLocales.js';
18
- import './constantsIsProduction.js';
19
- import './index-93413a59.js';
20
- import '@emotion/styled';
21
- import '@mantine/carousel';
22
- import './index-cf36ffd5.js';
23
- import './index-68bdec51.js';
24
- import 'dayjs';
25
- import './index-e4384b7d.js';
26
- import '@mantine/notifications';
27
- import './miscTheme.js';
28
- import './shared-98eece30.js';
29
- import 'classnames';
30
- import 'uuid';
31
- import './useUniqueId-01369143.js';
32
- import './constantsSite.js';
33
- import '@emotion/react';
34
- import '@hhgtech/icons/core';
35
- import './index-2e6b84ec.js';
36
- import './index-06ce15c7.js';
37
- import '@mantine/dates';
38
- import './appearance-281ac1d5.js';
39
- import './index.styles-0391c4e0.js';
40
- import './translationsContext-a1ebd15a.js';
41
- import './index-228906bf.js';
42
- import './usePlacesAutocomplete-892c6110.js';
43
- import '@mantine/form';
44
- import './index-75547e3b.js';
45
- import './index-07d91836.js';
46
- import './index-7985100a.js';
47
- import 'framer-motion';
48
- import './index-de0cab31.js';
49
- import './routing-c42218f5.js';
50
- import './recaptchaV3-8c953825.js';
51
- import 'react-dom';
52
- import './index-5ef4be51.js';
53
- import '@hhgtech/icons/arrow';
54
- import './InputDate-f65a6869.js';
55
- import './utils-ccb182fe.js';
56
- import 'vaul';
57
- import 'date-fns/locale';
58
- import './constantsRiskScreener.js';
59
-
60
- // mount css
61
- /**
62
- * `LeadGen` without a source of translations: the entries that export
63
- * `LeadGen` (`lead`, `leadSlim`) pass them in.
64
- */
65
- const LeadGenCore = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, formatMessage, translations, }) => {
66
- var _a, _b;
67
- const scrollEventHandlerRef = useRef();
68
- const leadStartTimeRef = useRef(Date.now());
69
- const { apiUrl } = useMemo(() => {
70
- let apiUrl = apiUrlProp;
71
- if (apiUrl.includes('localhost')) {
72
- apiUrl = 'https://dev.leadgen.hellobacsi.com/';
73
- }
74
- return {
75
- apiUrl,
76
- };
77
- }, [apiUrlProp, siteDomain, siteId]);
78
- const [showCampaign, setShowCampaign] = useState(forceCampaign);
79
- const [action, setAction] = useState('');
80
- const [showThankyou, setShowThankyou] = useState(null);
81
- const [showEmpty, setShowEmpty] = useState(false);
82
- const [redirectUrl, setRedirectUrl] = useState();
83
- const currentLayout = useMemo(() => showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout, [showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout]);
84
- useEffect(() => {
85
- if (forceCampaign) {
86
- setShowCampaign(forceCampaign);
87
- setAction('SHOW');
88
- }
89
- }, [forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code]);
90
- useEffect(() => {
91
- leadStore.apiLeadUrl = apiUrl;
92
- leadStore.apiSubotUrl = apiSubotUrl;
93
- }, [apiUrl, apiSubotUrl]);
94
- const onShowPopup = (campaign, action) => {
95
- // TODO: run campaign
96
- setShowCampaign(campaign);
97
- setAction(action);
98
- };
99
- const onCloseBase = () => {
100
- document.body.classList.remove('noscroll');
101
- setShowCampaign(null);
102
- setShowThankyou(null);
103
- setAction('HIDE');
104
- onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
105
- };
106
- const onClose = (params) => __awaiter(void 0, void 0, void 0, function* () {
107
- var _c, _d;
108
- const { formRef, listBlockAdded = [], formValues: formDataObj, } = params || {};
109
- if (!showCampaign)
110
- return;
111
- LeadLog(`👋👋👋 CLOSE POPUP ${showCampaign.code} 👋👋👋`);
112
- if (!excludeExitRulesHandler) {
113
- const showAfterExit = Number((_c = showCampaign.rules.find((rule) => rule.rule == 'show_again_after_exit')) === null || _c === void 0 ? void 0 : _c.value);
114
- const expiresDay = Number((_d = showCampaign.rules.find((rule) => rule.rule == 'days_to_show_again')) === null || _d === void 0 ? void 0 : _d.value);
115
- if (showAfterExit == 0) {
116
- if (!expiresDay) {
117
- setCookie(`lead_closed_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupVersion}`, { domain: '.' + siteDomain, path: '/' });
118
- }
119
- else {
120
- setCookie(`lead_closed_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupVersion}`, { domain: '.' + siteDomain, days: expiresDay, path: '/' });
121
- }
122
- }
123
- }
124
- yield Promise.all([
125
- fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
126
- method: 'POST',
127
- headers: {
128
- 'Content-Type': 'application/json',
129
- },
130
- body: JSON.stringify({
131
- action: 'CLICK',
132
- url: location.href.toLowerCase(),
133
- title_article: document.title,
134
- cookie_id: getCookie('hhg-id') || '',
135
- duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
136
- }),
137
- }),
138
- !showThankyou &&
139
- !(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
140
- trackingCompletionForm({
141
- commonData: {
142
- cookie_id: getCookie('hhg-id') || '',
143
- ga_client_id: getCookie('_ga') || null,
144
- country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
145
- status: 'in_progress',
146
- campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
147
- total_fields: listBlockAdded.length,
148
- type: 'close',
149
- },
150
- currentLayout,
151
- formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
152
- }),
153
- ]);
154
- onCloseBase();
155
- });
156
- const onUnmount = (params) => __awaiter(void 0, void 0, void 0, function* () {
157
- const { formRef, listBlockAdded, formValues: formDataObj } = params || {};
158
- const data = formatTrackingData({
159
- commonData: {
160
- cookie_id: getCookie('hhg-id') || '',
161
- ga_client_id: getCookie('_ga') || null,
162
- country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
163
- status: 'in_progress',
164
- campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
165
- total_fields: listBlockAdded.length,
166
- type: 'close',
167
- },
168
- currentLayout,
169
- formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
170
- });
171
- const blob = new Blob([JSON.stringify(data)], { type: 'application/json' });
172
- navigator.sendBeacon(`${apiUrl}api/collection/tracking-completion`, blob);
173
- });
174
- const doImpression = (params) => {
175
- const { listBlockAdded = [] } = params || {};
176
- if (!TEMPLATE_ALLOW_NEWTRACKING.includes(currentLayout))
177
- return;
178
- const gaCookie = getCookie('_ga') || null;
179
- const cookieId = getCookie('hhg-id') || '';
180
- const data = formatTrackingData({
181
- commonData: {
182
- cookie_id: cookieId,
183
- ga_client_id: gaCookie,
184
- country_code: (MAPPED_LOCALE === null || MAPPED_LOCALE === void 0 ? void 0 : MAPPED_LOCALE[locale]) || 'VN',
185
- status: 'in_progress',
186
- campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
187
- total_fields: listBlockAdded.length,
188
- type: (params === null || params === void 0 ? void 0 : params.type) || 'impression',
189
- },
190
- currentLayout,
191
- formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: [] }),
192
- });
193
- return Promise.all([
194
- fetch(`${apiUrl}api/collection/tracking-completion`, {
195
- method: 'POST',
196
- headers: {
197
- 'Content-Type': 'application/json',
198
- },
199
- body: JSON.stringify(data),
200
- }),
201
- fetch(`${apiUrl}api/campaign/${showCampaign.code}/impression`, {
202
- method: 'POST',
203
- headers: {
204
- 'Content-Type': 'application/json',
205
- },
206
- body: JSON.stringify({
207
- action,
208
- url: location.href.toLowerCase(),
209
- title_article: document.title,
210
- cookie_id: getCookie('hhg-id'),
211
- ga_client_id: gaCookie,
212
- }),
213
- }),
214
- ]);
215
- };
216
- useEffect(() => {
217
- if (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code)
218
- return;
219
- // window.next only on nextjs page
220
- if (window.next) {
221
- const debounced = debounce((e) => {
222
- LeadLog('--🌻 routeChangeComplete', e, Date.now());
223
- const currentPath = location.pathname;
224
- // Remove floating, inline when url change
225
- onClose();
226
- clearPassiveEvent();
227
- if (document.querySelectorAll(`[data-popup-url="${currentPath}"]`).length) {
228
- LeadLog('🔥 This URL page has show popup!');
229
- }
230
- else {
231
- LeadLog('--Process checkShowPopup');
232
- checkShowPopup({
233
- leadApi: apiUrl,
234
- leadDomain: siteDomain,
235
- leadSiteId: siteId,
236
- onShowPopup,
237
- DEBUG_URL,
238
- });
239
- }
240
- if (scrollEventHandlerRef.current) {
241
- window.removeEventListener('scroll', scrollEventHandlerRef.current);
242
- }
243
- }, 500);
244
- window.next.router.events.on('routeChangeComplete', debounced);
245
- }
246
- checkShowPopup({
247
- leadApi: apiUrl,
248
- leadDomain: siteDomain,
249
- leadSiteId: siteId,
250
- onShowPopup,
251
- DEBUG_URL,
252
- });
253
- }, []);
254
- const trackingCompletionForm = useCallback((params) => __awaiter(void 0, void 0, void 0, function* () {
255
- const data = formatTrackingData(params);
256
- const { currentLayout } = params || {};
257
- if (!TEMPLATE_ALLOW_NEWTRACKING.includes(currentLayout))
258
- return;
259
- return fetch(`${apiUrl}api/collection/tracking-completion`, {
260
- method: 'POST',
261
- headers: {
262
- 'Content-Type': 'application/json',
263
- },
264
- body: JSON.stringify(data),
265
- });
266
- }), [(_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.currentLayout]);
267
- const onSubmit = (params, categoryLevel, categoryData) => __awaiter(void 0, void 0, void 0, function* () {
268
- var _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
269
- const { formRef, listBlockAdded = [], formValues: formDataObj, } = params || {};
270
- if (!formDataObj || Object.values(formDataObj).every((v) => !Boolean(v))) {
271
- setShowEmpty(true);
272
- return;
273
- }
274
- LeadLog('submitHandler', categoryLevel, categoryData);
275
- const formatedFormData = formatFormData(formRef, formDataObj);
276
- const formData = formatedFormData.map(({ key, value, control }) => ({
277
- key,
278
- value,
279
- control,
280
- }));
281
- console.log('** RYAN index.tsx 218 formData : ', formData);
282
- // Get ga_client_id from cookies
283
- const gaCookie = getCookie('_ga') || null;
284
- if (!window.intlTelInputUtils) {
285
- yield require('intl-tel-input/build/js/utils');
286
- }
287
- const commonData = {
288
- cookie_id: getCookie('hhg-id') || '',
289
- ga_client_id: gaCookie,
290
- };
291
- const data = Object.assign({ url: location.href.toLowerCase(), title_article: document.title, meta: [...formData, ...extraPayloadValues] }, commonData);
292
- // categoryLevel
293
- if (categoryLevel) {
294
- if (categoryData[categoryLevel].value_en) {
295
- data['category'] = categoryData[categoryLevel].value_en;
296
- }
297
- }
298
- const expiresDay = Number(((_f = (_e = showCampaign.rules) === null || _e === void 0 ? void 0 : _e.find((r) => r.rule === 'days_to_show_again')) === null || _f === void 0 ? void 0 : _f.value) ||
299
- 7);
300
- const showAgain = Number(((_h = (_g = showCampaign.rules) === null || _g === void 0 ? void 0 : _g.find((r) => r.rule === 'show_again_after_submit')) === null || _h === void 0 ? void 0 : _h.value) || 0);
301
- if (showAgain == 0) {
302
- LeadLog('⛔ Popup never show again!');
303
- setCookie(`lead_submited_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.targetType}`, { domain: '.' + siteDomain, path: '/' });
304
- }
305
- if (showAgain == 1) {
306
- LeadLog(`⌛ Popup will show again after ${expiresDay} days!`);
307
- setCookie(`lead_submited_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.targetType}`, { domain: '.' + siteDomain, days: expiresDay, path: '/' });
308
- }
309
- yield Promise.all([
310
- fetch(`${apiUrl}api/campaign/${showCampaign.code}/lead`, {
311
- method: 'POST',
312
- headers: {
313
- 'Content-Type': 'application/json',
314
- },
315
- body: JSON.stringify(data),
316
- }),
317
- listBlockAdded.length > 0 &&
318
- trackingCompletionForm({
319
- commonData: Object.assign(Object.assign({}, commonData), { country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN', status: 'complete', campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id, total_fields: listBlockAdded.length, type: 'submit_form' }),
320
- currentLayout,
321
- formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatedFormData }),
322
- }),
323
- ]);
324
- onSubmitProps === null || onSubmitProps === void 0 ? void 0 : onSubmitProps(formDataObj);
325
- if (redirectUrl === null || redirectUrl === void 0 ? void 0 : redirectUrl.url) {
326
- window.open(redirectUrl === null || redirectUrl === void 0 ? void 0 : redirectUrl.url, (redirectUrl === null || redirectUrl === void 0 ? void 0 : redirectUrl.target) || '_self');
327
- onClose();
328
- }
329
- if ((showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupShowThankYou) == 'notshow') {
330
- onClose();
331
- document.body.classList.remove('noscroll');
332
- return;
333
- }
334
- const thanksImg = showCampaign.thank_you_image || `${apiUrl}admin/img/thanksyou.png`;
335
- let thankTitle = (showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupThankyouTitle) || 'Thank you.';
336
- let thankDesc = (showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupThankyouDesc) || 'We appreciate your time!';
337
- let titleAlign = '';
338
- let descAlign = '';
339
- let linkText, linkNewTab, linkUrl = '';
340
- if ((showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupVersion) == '2.1') {
341
- const extra = showCampaign.extra_fields;
342
- const listBlockThankyou = JSON.parse(extra.listBlockThankyou);
343
- const titleBlock = listBlockThankyou.find((i) => i.name == 'TitleBlock');
344
- const subtitleBlock = listBlockThankyou.find((i) => i.name == 'SubtitleBlock');
345
- const linkButtonBlock = listBlockThankyou.find((i) => i.name == 'LinkButtonBlock');
346
- thankTitle = ((_j = titleBlock === null || titleBlock === void 0 ? void 0 : titleBlock.data) === null || _j === void 0 ? void 0 : _j.value) || '';
347
- titleAlign = ((_k = titleBlock === null || titleBlock === void 0 ? void 0 : titleBlock.data) === null || _k === void 0 ? void 0 : _k.align) || '';
348
- thankDesc = ((_l = subtitleBlock === null || subtitleBlock === void 0 ? void 0 : subtitleBlock.data) === null || _l === void 0 ? void 0 : _l.value) || '';
349
- descAlign = ((_m = subtitleBlock === null || subtitleBlock === void 0 ? void 0 : subtitleBlock.data) === null || _m === void 0 ? void 0 : _m.align) || '';
350
- linkText = ((_o = linkButtonBlock === null || linkButtonBlock === void 0 ? void 0 : linkButtonBlock.data) === null || _o === void 0 ? void 0 : _o.value) || '';
351
- linkNewTab = ((_p = linkButtonBlock === null || linkButtonBlock === void 0 ? void 0 : linkButtonBlock.data) === null || _p === void 0 ? void 0 : _p.newtab) || false;
352
- linkUrl = ((_q = linkButtonBlock === null || linkButtonBlock === void 0 ? void 0 : linkButtonBlock.data) === null || _q === void 0 ? void 0 : _q.url) || '';
353
- // ALWAYS SHOW THANK YOU ON COMPOUND COMP
354
- // const curLayout = currentLayout
355
- // TODO: newbuilder thank you
356
- // List layout not show thanks you
357
- // if (
358
- // ['SkinA', 'SkinB', 'Floating', 'Tab', 'CenterTab'].includes(curLayout)
359
- // ) {
360
- // isShowThanksYou = false
361
- // }
362
- }
363
- {
364
- setShowThankyou({
365
- title: thankTitle,
366
- titleAlign,
367
- subtitle: thankDesc,
368
- subtitleAlign: descAlign,
369
- link: linkUrl,
370
- linkNewTab,
371
- linkText,
372
- image: thanksImg,
373
- });
374
- }
375
- // Other
376
- // Init Insider Obj
377
- if (sessionStorage.getItem('insider_object')) {
378
- window.insider_object = JSON.parse(sessionStorage.getItem('insider_object'));
379
- }
380
- else {
381
- window.insider_object = {
382
- user: {
383
- email: '',
384
- phone_number: '',
385
- gdpr_optin: true,
386
- sms_optin: true,
387
- email_optin: true,
388
- },
389
- };
390
- }
391
- // Submit Inisder Obj
392
- formData.map((data) => {
393
- const name = data.key;
394
- const value = data.value;
395
- if (name == 'tel') {
396
- window.insider_object.user.phone_number = value;
397
- }
398
- else if (name == 'email') {
399
- window.insider_object.user.email = value;
400
- }
401
- });
402
- sessionStorage.setItem('insider_object', JSON.stringify(window.insider_object));
403
- // End Init Insider Obj
404
- // End Submit handler
405
- });
406
- useEffect(() => {
407
- if (showCampaign) {
408
- leadStartTimeRef.current = Date.now();
409
- }
410
- }, [showCampaign]);
411
- return (React__default.createElement(LeadGenContext.Provider, { value: {
412
- primaryColor,
413
- apiUrl,
414
- siteDomain,
415
- siteId,
416
- locale,
417
- redirectUrl,
418
- setRedirectUrl,
419
- } },
420
- React__default.createElement(LeadGenTranslationProvider, { locale: locale, translations: translations, formatMessage: formatMessage },
421
- React__default.createElement(MantineProvider, { locale: locale, customStyleType: CustomStylesType.LEADGEN }, children ? (React__default.createElement(Component, { campaign: showCampaign, onSubmit: onSubmit, onClose: onClose, showThankyou: showThankyou, setShowThankyou: setShowThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo }, children)) : (React__default.createElement(Portal, { target: getPopupWrapperDom() },
422
- React__default.createElement(Box, { sx: { position: 'fixed', zIndex: ZINDEX_SSO - 9e6 } },
423
- React__default.createElement(Transition, { mounted: Boolean(((_b = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _b === void 0 ? void 0 : _b.popupVersion) === '2.1'), transition: "fade", duration: 600, timingFunction: "ease", exitDuration: 200 }, (styles) => {
424
- var _a;
425
- return (React__default.createElement(Box, { style: styles }, ((_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.popupVersion) === '2.1' && (React__default.createElement(React__default.Fragment, null,
426
- !!currentLayout &&
427
- !currentLayout.includes('Inline') &&
428
- !currentLayout.includes('Sidebar') &&
429
- !currentLayout.includes('Freebie') && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
430
- React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
431
- }))))))));
432
- };
433
- const LEAD_GEN_PARTS = {
434
- Heading,
435
- Description,
436
- Form,
437
- Thankyou,
438
- OtpForm: OtpBlock,
439
- Close,
440
- };
441
- /** Adds the parts of the compound form (`LeadGen.Heading`, ...) to `component`. */
442
- const withLeadGenParts = (component) => Object.assign(component, LEAD_GEN_PARTS);
443
-
444
- /**
445
- * `LeadGen` of `@hhgtech/hhg-components/lead` for an app that already loads
446
- * the shared library translations of its locale: it takes them as a prop and
447
- * does not bundle the ones of every locale.
448
- */
449
- const _LeadGen = (_a) => {
450
- var { translations } = _a, props = __rest(_a, ["translations"]);
451
- const { locale } = props;
452
- const leadTranslations = useMemo(() => withLeadTranslations(locale, translations), [locale, translations]);
453
- return React__default.createElement(LeadGenCore, Object.assign({}, props, { translations: leadTranslations }));
454
- };
455
- const LeadGen = withLeadGenParts(_LeadGen);
456
-
457
- export { LeadGen };