@hhgtech/hhg-components 1.29.412-beta-8 → 1.29.413

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 (515) hide show
  1. package/build/{InputDate-6c6ebb31.js → InputDate-3b3443d5.js} +3 -3
  2. package/build/{LastPeriod-fc8cad02.js → LastPeriod-5cab8b13.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-c755f230.js → MobileBottomNavigationIcon-43f21847.js} +3 -3
  4. package/build/{Spinner-d3dcd745.js → Spinner-2f59daf3.js} +1 -1
  5. package/build/{WhatsApp-51b4f1d7.js → WhatsApp-2e375021.js} +1 -1
  6. package/build/adapters.js +20 -20
  7. package/build/atoms.js +49 -49
  8. package/build/babyGrowth.js +84 -84
  9. package/build/cache.js +2 -2
  10. package/build/care.js +17 -17
  11. package/build/careBookingSearchBar.js +14 -14
  12. package/build/careBookingSearchBarV2.js +15 -15
  13. package/build/components.js +98 -98
  14. package/build/{constants-131fb94f.js → constants-1e485a70.js} +1 -1
  15. package/build/constants.js +3 -3
  16. package/build/constantsDomainLocales.js +1 -1
  17. package/build/constantsRiskScreener.js +2 -2
  18. package/build/constantsSite.js +2 -2
  19. package/build/{core-e1921356.js → core-ae6da2b2.js} +1 -1
  20. package/build/{dataTransform-26ea11d9.js → dataTransform-d57d9dff.js} +1 -1
  21. package/build/ecom.js +4 -4
  22. package/build/{editor-feb723be.js → editor-858847e6.js} +11 -11
  23. package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
  24. package/build/embeddedHeathToolCards_babyPoop.js +20 -20
  25. package/build/embeddedHeathToolCards_babyVaccine.js +23 -23
  26. package/build/embeddedHeathToolCards_bmi_bmi.js +26 -26
  27. package/build/embeddedHeathToolCards_bmrBmr.js +26 -26
  28. package/build/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
  29. package/build/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
  30. package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
  31. package/build/embeddedHeathToolCards_targetHeartRate.js +28 -28
  32. package/build/esm/{InputDate-a5d849d3.js → InputDate-10321ce2.js} +3 -3
  33. package/build/esm/{LastPeriod-8d38c01d.js → LastPeriod-d1172b27.js} +1 -1
  34. package/build/esm/{MobileBottomNavigationIcon-a5667a21.js → MobileBottomNavigationIcon-5ad017ef.js} +3 -3
  35. package/build/esm/{Spinner-8a66d20e.js → Spinner-f7f06e85.js} +1 -1
  36. package/build/esm/{WhatsApp-e1dfa8ff.js → WhatsApp-10e4b59b.js} +1 -1
  37. package/build/esm/adapters.js +20 -20
  38. package/build/esm/atoms.js +49 -49
  39. package/build/esm/babyGrowth.js +84 -84
  40. package/build/esm/cache.js +2 -2
  41. package/build/esm/care.js +17 -17
  42. package/build/esm/careBookingSearchBar.js +14 -14
  43. package/build/esm/careBookingSearchBarV2.js +15 -15
  44. package/build/esm/components.js +98 -98
  45. package/build/esm/{constants-c21e031e.js → constants-963ae56f.js} +1 -1
  46. package/build/esm/constants.js +3 -3
  47. package/build/esm/constantsDomainLocales.js +1 -1
  48. package/build/esm/constantsRiskScreener.js +2 -2
  49. package/build/esm/constantsSite.js +2 -2
  50. package/build/esm/{core-6d0ad9c5.js → core-9a8235e4.js} +1 -1
  51. package/build/esm/{dataTransform-5067fd5c.js → dataTransform-dc6a21e7.js} +1 -1
  52. package/build/esm/ecom.js +4 -4
  53. package/build/esm/{editor-13496dc6.js → editor-69425869.js} +11 -11
  54. package/build/esm/embeddedHeathToolCards_babyGrowth.js +24 -24
  55. package/build/esm/embeddedHeathToolCards_babyPoop.js +20 -20
  56. package/build/esm/embeddedHeathToolCards_babyVaccine.js +23 -23
  57. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +26 -26
  58. package/build/esm/embeddedHeathToolCards_bmrBmr.js +26 -26
  59. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
  60. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
  61. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
  62. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +28 -28
  63. package/build/esm/footer.js +22 -22
  64. package/build/esm/gAssets.js +2 -2
  65. package/build/esm/{healthTools-f9e64cd4.js → healthTools-1a21b12d.js} +1 -1
  66. package/build/esm/healthToolsCardWrapper.js +19 -19
  67. package/build/esm/healthToolsForm.js +34 -34
  68. package/build/esm/hooks.js +13 -13
  69. package/build/esm/i18n.js +2 -2
  70. package/build/esm/i18nV2.js +2 -2
  71. package/build/esm/{index-59cc220d.js → index-01d5c7d3.js} +1 -1
  72. package/build/esm/{index-75d1d017.js → index-074a166c.js} +2 -2
  73. package/build/esm/{index-737cabd1.js → index-09a4eb57.js} +13 -13
  74. package/build/esm/{index-3f85da9d.js → index-09d7c3b0.js} +10 -10
  75. package/build/esm/{index-634e2d44.js → index-0b3634d7.js} +22 -22
  76. package/build/esm/{index-a5c319fa.js → index-0dc401d6.js} +6 -6
  77. package/build/esm/{index-c4c4c97d.js → index-10beee7c.js} +13 -13
  78. package/build/esm/{index-f5b98bc9.js → index-12354707.js} +16 -16
  79. package/build/esm/{index-16f5d17b.js → index-15308963.js} +3 -3
  80. package/build/esm/{index-5fd31bc4.js → index-1a4f429f.js} +32 -32
  81. package/build/esm/{index-80b0a850.js → index-21bfbdb2.js} +2 -2
  82. package/build/esm/{index-03081934.js → index-2286e68a.js} +4 -4
  83. package/build/esm/{index-8ab7bb86.js → index-30ff6c50.js} +13 -13
  84. package/build/esm/{index-085d73d6.js → index-37267e2b.js} +2 -2
  85. package/build/esm/{index-68ae12de.js → index-3783248a.js} +3 -3
  86. package/build/esm/{index-59cdeb32.js → index-3b9c78cb.js} +3 -3
  87. package/build/esm/{index-409000de.js → index-3c0933c1.js} +2 -2
  88. package/build/esm/{index-459c447f.js → index-40b68d98.js} +41 -21
  89. package/build/esm/{index-63e05229.js → index-416f7db8.js} +4 -4
  90. package/build/esm/{index-8c3bb157.js → index-4215241c.js} +2 -2
  91. package/build/esm/{index-f2b248ca.js → index-4a4067f9.js} +7 -7
  92. package/build/esm/{index-f6825ee0.js → index-4b408044.js} +13 -13
  93. package/build/esm/{index-ff21a99f.js → index-55dd41e9.js} +5 -5
  94. package/build/esm/{index-f1cc26c3.js → index-5b1bd3d5.js} +6 -6
  95. package/build/esm/{index-735b60f8.js → index-5b4f0a8c.js} +1 -1
  96. package/build/esm/{index-0ebe8442.js → index-60a78641.js} +2 -2
  97. package/build/esm/{index-4e2e4e69.js → index-60d2f1ce.js} +3 -3
  98. package/build/esm/{index-80310216.js → index-62662de6.js} +2 -2
  99. package/build/esm/{index-f7cf4310.js → index-63e5ef79.js} +15 -15
  100. package/build/esm/{index-3fc65d8b.js → index-645d2dff.js} +1 -1
  101. package/build/esm/{index-6be392d2.js → index-64ed9d82.js} +5 -5
  102. package/build/esm/{index-2f6f4c5d.js → index-6a698aee.js} +3 -3
  103. package/build/esm/{index-a26b8a5f.js → index-6ab41b81.js} +3 -3
  104. package/build/esm/{index-d64eb06f.js → index-725dcbe8.js} +2 -2
  105. package/build/esm/{index-dafa0092.js → index-7bd6e7a9.js} +2 -2
  106. package/build/esm/{index-3f9bb12a.js → index-7d35a8d8.js} +17 -17
  107. package/build/esm/{index-623307f1.js → index-80a01c22.js} +30 -30
  108. package/build/esm/{index-2c8378d4.js → index-84f15d10.js} +6 -6
  109. package/build/esm/{index-476c5696.js → index-85b30b6e.js} +17 -17
  110. package/build/esm/{index-ced83c10.js → index-86f792fe.js} +6 -6
  111. package/build/esm/{index-7f20bb1a.js → index-8826ec34.js} +15 -15
  112. package/build/esm/{index-bc21db68.js → index-8f09b680.js} +16 -16
  113. package/build/esm/{index-985e9ebc.js → index-8f8de6e3.js} +17 -17
  114. package/build/esm/{index-32878534.js → index-97029355.js} +13 -13
  115. package/build/esm/{index-14b4cee5.js → index-9960902f.js} +3 -3
  116. package/build/esm/{index-4ccbd117.js → index-a5adfae1.js} +24 -24
  117. package/build/esm/{index-e0041c23.js → index-a6b7b8d0.js} +1 -1
  118. package/build/esm/{index-341ba580.js → index-abcb3534.js} +3 -3
  119. package/build/esm/{index-09ecfa6a.js → index-ae4606d1.js} +7 -7
  120. package/build/esm/{index-8e8c5a9e.js → index-b702de5f.js} +146 -183
  121. package/build/esm/{index-6dafd443.js → index-b830090f.js} +17 -17
  122. package/build/esm/{index-29772ba4.js → index-bb3d787e.js} +25 -25
  123. package/build/esm/{index-9ff0cf43.js → index-bc1dbe41.js} +2 -2
  124. package/build/esm/{index-2399a013.js → index-c1d5dcb6.js} +15 -15
  125. package/build/esm/{index-3b33b40f.js → index-c96990d7.js} +1 -1
  126. package/build/esm/{index-75fce3bb.js → index-cb3e9043.js} +1 -1
  127. package/build/esm/{index-979d2c03.js → index-cf82878a.js} +11 -11
  128. package/build/esm/{index-54389cf3.js → index-d7f3892a.js} +8 -8
  129. package/build/esm/{index-76afc39f.js → index-e8332e04.js} +6 -6
  130. package/build/esm/{index-4f8229cf.js → index-ec51c679.js} +2 -2
  131. package/build/esm/{index-10a95428.js → index-efbab58a.js} +2 -2
  132. package/build/esm/{index-cf5cb232.js → index-f8f14c59.js} +1 -1
  133. package/build/esm/{index-a4162648.js → index-f934f5f1.js} +2 -2
  134. package/build/esm/{index-f3cc5998.js → index-fb3df44b.js} +3 -3
  135. package/build/esm/{index-2642ce8e.js → index-fba58aa1.js} +13 -13
  136. package/build/esm/{index-a6801024.js → index-ff113681.js} +32 -32
  137. package/build/esm/{index-3f46807c.js → index-ff6e9582.js} +2 -2
  138. package/build/esm/{index-585d6722.js → index-ffd8a900.js} +1 -1
  139. package/build/esm/index.js +119 -119
  140. package/build/esm/{labelSorting-32f56bfc.js → labelSorting-0834b777.js} +4 -4
  141. package/build/esm/lead/LeadGen.helpers.d.ts +2 -2
  142. package/build/esm/lead/LeadGen.type.d.ts +0 -3
  143. package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +12 -19
  144. package/build/esm/lead/index.d.ts +1 -5
  145. package/build/esm/lead/layouts/inline.d.ts +2 -3
  146. package/build/esm/lead/layouts/lightbox/index.d.ts +1 -2
  147. package/build/esm/lead/newLeadPopup.d.ts +1 -2
  148. package/build/esm/lead/services/index.d.ts +0 -4
  149. package/build/esm/lead/utils.d.ts +0 -18
  150. package/build/esm/lead.js +310 -411
  151. package/build/esm/{logoIcon-c7fc9271.js → logoIcon-cc77df44.js} +2 -2
  152. package/build/esm/mantine.js +26 -26
  153. package/build/esm/misc.js +18 -18
  154. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  155. package/build/esm/miscGetSocialList.js +8 -8
  156. package/build/esm/miscScreenSizeContext.js +1 -1
  157. package/build/esm/mobileBottomNavigation.js +5 -5
  158. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  159. package/build/esm/molecules.js +75 -75
  160. package/build/esm/moleculesArticleCard.js +6 -6
  161. package/build/esm/moleculesArticleCardV2.js +17 -17
  162. package/build/esm/navigation.js +47 -47
  163. package/build/esm/navigationLogoutPopup.js +11 -11
  164. package/build/esm/navigationProfileButton.js +27 -27
  165. package/build/esm/onboardingV2.js +30 -30
  166. package/build/esm/organisms.js +51 -51
  167. package/build/esm/{post-48cc796c.js → post-8361eda3.js} +2 -2
  168. package/build/esm/profileNavigation.js +20 -20
  169. package/build/esm/progressBar.js +1 -1
  170. package/build/esm/pwg.js +23 -23
  171. package/build/esm/ssoV2/api/featureFlag.d.ts +1 -2
  172. package/build/esm/ssoV2.js +41 -53
  173. package/build/esm/{store-8cd47c51.js → store-c778da5f.js} +3 -3
  174. package/build/esm/subot.js +37 -37
  175. package/build/esm/surveyOrPremiumBanner.js +34 -34
  176. package/build/esm/surveyQuestionCard.js +11 -11
  177. package/build/esm/{surveyThankyouCard-55274bd6.js → surveyThankyouCard-e94dce6e.js} +5 -5
  178. package/build/esm/together.js +57 -57
  179. package/build/esm/togetherApiUtils.js +4 -4
  180. package/build/esm/togetherAtoms.js +31 -31
  181. package/build/esm/togetherComponentGlobalContext.js +4 -4
  182. package/build/esm/togetherMolecules.js +52 -52
  183. package/build/esm/togetherMoleculesCardAuthor.js +29 -29
  184. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  185. package/build/esm/togetherMoleculesProfileDetail.js +40 -40
  186. package/build/esm/togetherOrganisms.js +51 -51
  187. package/build/esm/togetherRichTextEditor.js +18 -18
  188. package/build/esm/togetherShareBox.js +10 -10
  189. package/build/esm/{translationsProvider-612ea09c.js → translationsProvider-3ebf538c.js} +1 -1
  190. package/build/esm/{treePopoverMenu-6f668f38.js → treePopoverMenu-4285da5b.js} +19 -19
  191. package/build/esm/{types-a46b4f3f.js → types-df21b720.js} +2 -2
  192. package/build/esm/types.js +2 -2
  193. package/build/esm/{useCategory-abc625ee.js → useCategory-26632e37.js} +5 -5
  194. package/build/esm/{useHealthToolCache-e17ad3b7.js → useHealthToolCache-4b607fc6.js} +1 -1
  195. package/build/esm/{usePlacesAutocomplete-a4468628.js → usePlacesAutocomplete-1d8e67a7.js} +1 -1
  196. package/build/esm/useTogetherAuthRequiredAction.js +10 -10
  197. package/build/esm/{utils-000dd726.js → utils-1e9d7448.js} +5 -5
  198. package/build/esm/{utils-44f48240.js → utils-4c7de83b.js} +2 -2
  199. package/build/esm/{utils-a637805a.js → utils-b4ba8268.js} +3 -3
  200. package/build/esm/{utils-95958c71.js → utils-c342182a.js} +2 -2
  201. package/build/esm/vaccination.js +22 -22
  202. package/build/footer.js +22 -22
  203. package/build/gAssets.js +2 -2
  204. package/build/{healthTools-3335b4e9.js → healthTools-7c7979dd.js} +1 -1
  205. package/build/healthToolsCardWrapper.js +19 -19
  206. package/build/healthToolsForm.js +34 -34
  207. package/build/hooks.js +13 -13
  208. package/build/i18n.js +2 -2
  209. package/build/i18nV2.js +1 -1
  210. package/build/{index-dc6b3909.js → index-00144aed.js} +3 -3
  211. package/build/{index-4a24e68e.js → index-0061b2ca.js} +32 -32
  212. package/build/{index-d3b6e6f7.js → index-04ac208c.js} +6 -6
  213. package/build/{index-3b98cb92.js → index-076d78b5.js} +1 -1
  214. package/build/{index-d24a0cf1.js → index-0d566362.js} +6 -6
  215. package/build/{index-40f1afe4.js → index-0f379286.js} +3 -3
  216. package/build/{index-b1492e9c.js → index-0f8690a7.js} +25 -25
  217. package/build/{index-97ad94dd.js → index-11c51c5b.js} +22 -22
  218. package/build/{index-d3b9cb34.js → index-1fbe06f4.js} +8 -8
  219. package/build/{index-73109c0b.js → index-1fe369de.js} +13 -13
  220. package/build/{index-fe0a4059.js → index-25274e37.js} +1 -1
  221. package/build/{index-ca7f9fd1.js → index-27e63625.js} +17 -17
  222. package/build/{index-8c9b0d6c.js → index-2e0c2d5b.js} +13 -13
  223. package/build/{index-ae748b6c.js → index-31ba4f00.js} +2 -2
  224. package/build/{index-66e1cb05.js → index-349aeb3b.js} +7 -7
  225. package/build/{index-5d8c17ea.js → index-36ed4a81.js} +30 -30
  226. package/build/{index-182afb8b.js → index-3775f98f.js} +13 -13
  227. package/build/{index-aedf272b.js → index-37a56d84.js} +3 -3
  228. package/build/{index-e00b61ed.js → index-3f1d3420.js} +3 -3
  229. package/build/{index-563197e1.js → index-47481972.js} +4 -4
  230. package/build/{index-1ceb1779.js → index-4bd2782e.js} +2 -2
  231. package/build/{index-25b5f7aa.js → index-4c81156b.js} +2 -2
  232. package/build/{index-8b107f77.js → index-59c3e010.js} +10 -10
  233. package/build/{index-ac198134.js → index-5d29a18f.js} +16 -16
  234. package/build/{index-88ce40f2.js → index-60e67c05.js} +5 -5
  235. package/build/{index-eb21ceff.js → index-6647ec83.js} +41 -21
  236. package/build/{index-8ce571ff.js → index-6d47098b.js} +3 -3
  237. package/build/{index-4ee5b94a.js → index-7c941941.js} +32 -32
  238. package/build/{index-73054ceb.js → index-8179f250.js} +1 -1
  239. package/build/{index-d7cfbe60.js → index-82534326.js} +2 -2
  240. package/build/{index-7661433e.js → index-86c18fb9.js} +3 -3
  241. package/build/{index-22f50b45.js → index-97e86501.js} +3 -3
  242. package/build/{index-ba9dc8f8.js → index-98e55554.js} +1 -1
  243. package/build/{index-ced840f1.js → index-9bad2cc0.js} +6 -6
  244. package/build/{index-278250e7.js → index-9c8ce554.js} +2 -2
  245. package/build/{index-746b921f.js → index-a0f32bb8.js} +15 -15
  246. package/build/{index-0b54668c.js → index-a8c200e7.js} +13 -13
  247. package/build/{index-65499ee8.js → index-ab247efa.js} +17 -17
  248. package/build/{index-1d445b8d.js → index-abb626f5.js} +6 -6
  249. package/build/{index-dd5bd6d1.js → index-acd58702.js} +13 -13
  250. package/build/{index-36dc06ba.js → index-ae81d15d.js} +7 -7
  251. package/build/{index-08dfc17f.js → index-af22252f.js} +3 -3
  252. package/build/{index-d1fbaed6.js → index-b11d31a1.js} +17 -17
  253. package/build/{index-d3d8679b.js → index-b2994cce.js} +5 -5
  254. package/build/{index-c078f7b9.js → index-b2df9b85.js} +13 -13
  255. package/build/{index-f0883038.js → index-b8b3fe36.js} +2 -2
  256. package/build/{index-3392f4d3.js → index-b971c9ab.js} +4 -4
  257. package/build/{index-92d69e6f.js → index-bedaf7bf.js} +2 -2
  258. package/build/{index-1de1f468.js → index-c2bcf48e.js} +11 -11
  259. package/build/{index-2e7f4b7f.js → index-c40094b8.js} +24 -24
  260. package/build/{index-ffe1d9b2.js → index-d1878827.js} +3 -3
  261. package/build/{index-bb398810.js → index-d19b5d14.js} +2 -2
  262. package/build/{index-a49b6f4c.js → index-d913e14f.js} +2 -2
  263. package/build/{index-d1f92334.js → index-d9af315e.js} +6 -6
  264. package/build/{index-aef4b94a.js → index-daff4cdf.js} +1 -1
  265. package/build/{index-ff5a2d68.js → index-df2966a1.js} +2 -2
  266. package/build/{index-f351f8e9.js → index-df348b95.js} +2 -2
  267. package/build/{index-11ff5438.js → index-e14e7423.js} +1 -1
  268. package/build/{index-7375af23.js → index-e46e6749.js} +2 -2
  269. package/build/{index-e5e94b39.js → index-e53243c0.js} +16 -16
  270. package/build/{index-a8d87b93.js → index-e5636945.js} +146 -183
  271. package/build/{index-98b21ed8.js → index-e99a9fee.js} +2 -2
  272. package/build/{index-04392321.js → index-eacefc40.js} +1 -1
  273. package/build/{index-7e50fa55.js → index-f01cffd3.js} +2 -2
  274. package/build/{index-085e4e78.js → index-f15202c3.js} +15 -15
  275. package/build/{index-14902d49.js → index-f4503547.js} +15 -15
  276. package/build/{index-aad461ef.js → index-f645df94.js} +1 -1
  277. package/build/{index-e52af98d.js → index-fc5c3e3e.js} +17 -17
  278. package/build/index.js +119 -119
  279. package/build/{labelSorting-dfb3fa81.js → labelSorting-119075e3.js} +4 -4
  280. package/build/lead/LeadGen.helpers.d.ts +2 -2
  281. package/build/lead/LeadGen.type.d.ts +0 -3
  282. package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +12 -19
  283. package/build/lead/index.d.ts +1 -5
  284. package/build/lead/layouts/inline.d.ts +2 -3
  285. package/build/lead/layouts/lightbox/index.d.ts +1 -2
  286. package/build/lead/newLeadPopup.d.ts +1 -2
  287. package/build/lead/services/index.d.ts +0 -4
  288. package/build/lead/utils.d.ts +0 -18
  289. package/build/lead.js +308 -411
  290. package/build/{logoIcon-936f2572.js → logoIcon-13d79ea4.js} +2 -2
  291. package/build/mantine.js +24 -24
  292. package/build/misc.js +18 -18
  293. package/build/miscGetDynamicHealthTool.js +4 -4
  294. package/build/miscGetSocialList.js +8 -8
  295. package/build/miscScreenSizeContext.js +1 -1
  296. package/build/mobileBottomNavigation.js +5 -5
  297. package/build/mobileBottomNavigationIcon.js +5 -5
  298. package/build/molecules.js +75 -75
  299. package/build/moleculesArticleCard.js +6 -6
  300. package/build/moleculesArticleCardV2.js +17 -17
  301. package/build/navigation.js +47 -47
  302. package/build/navigationLogoutPopup.js +11 -11
  303. package/build/navigationProfileButton.js +27 -27
  304. package/build/onboardingV2.js +29 -29
  305. package/build/organisms.js +51 -51
  306. package/build/{post-baf676b8.js → post-80893856.js} +2 -2
  307. package/build/profileNavigation.js +20 -20
  308. package/build/progressBar.js +1 -1
  309. package/build/pwg.js +23 -23
  310. package/build/ssoV2/api/featureFlag.d.ts +1 -2
  311. package/build/ssoV2.js +39 -51
  312. package/build/{store-f55d7076.js → store-fb7b74be.js} +3 -3
  313. package/build/subot.js +36 -36
  314. package/build/surveyOrPremiumBanner.js +34 -34
  315. package/build/surveyQuestionCard.js +11 -11
  316. package/build/{surveyThankyouCard-400477aa.js → surveyThankyouCard-459771d7.js} +5 -5
  317. package/build/together.js +57 -57
  318. package/build/togetherApiUtils.js +4 -4
  319. package/build/togetherAtoms.js +31 -31
  320. package/build/togetherComponentGlobalContext.js +4 -4
  321. package/build/togetherMolecules.js +52 -52
  322. package/build/togetherMoleculesCardAuthor.js +29 -29
  323. package/build/togetherMoleculesPostImagePreview.js +11 -11
  324. package/build/togetherMoleculesProfileDetail.js +40 -40
  325. package/build/togetherOrganisms.js +51 -51
  326. package/build/togetherRichTextEditor.js +18 -18
  327. package/build/togetherShareBox.js +10 -10
  328. package/build/{translationsProvider-122a086f.js → translationsProvider-16beacfa.js} +1 -1
  329. package/build/{treePopoverMenu-f931909a.js → treePopoverMenu-bc5ce43d.js} +19 -19
  330. package/build/{types-c0048144.js → types-86be4a34.js} +2 -2
  331. package/build/types.js +2 -2
  332. package/build/{useCategory-16f5dd2f.js → useCategory-d36a8a5a.js} +5 -5
  333. package/build/{useHealthToolCache-cd87c34b.js → useHealthToolCache-b1cebe1e.js} +1 -1
  334. package/build/{usePlacesAutocomplete-bd1a84ed.js → usePlacesAutocomplete-796ccf6d.js} +1 -1
  335. package/build/useTogetherAuthRequiredAction.js +10 -10
  336. package/build/{utils-0bc8fe4d.js → utils-1c9bd3de.js} +2 -2
  337. package/build/{utils-a5468e63.js → utils-4fbe2e9b.js} +3 -3
  338. package/build/{utils-00eb4d03.js → utils-60687ead.js} +2 -2
  339. package/build/{utils-45b89526.js → utils-b736cb8f.js} +5 -5
  340. package/build/vaccination.js +22 -22
  341. package/package.json +1 -1
  342. package/build/components/mantine/checkbox/index.styles.d.ts +0 -16
  343. package/build/components/mantine/radio/index.styles.d.ts +0 -15
  344. package/build/esm/components/mantine/checkbox/index.styles.d.ts +0 -16
  345. package/build/esm/components/mantine/radio/index.styles.d.ts +0 -15
  346. package/build/esm/lead/LeadGenInline/LeadGenInline.d.ts +0 -8
  347. package/build/esm/lead/LeadGenInline/index.d.ts +0 -2
  348. package/build/esm/lead/services/index.type.d.ts +0 -5
  349. package/build/esm/misc/cachedSystem.d.ts +0 -5
  350. package/build/lead/LeadGenInline/LeadGenInline.d.ts +0 -8
  351. package/build/lead/LeadGenInline/index.d.ts +0 -2
  352. package/build/lead/services/index.type.d.ts +0 -5
  353. package/build/misc/cachedSystem.d.ts +0 -5
  354. /package/build/{BMI_BOYS.percentile.monthly-899879ce.js → BMI_BOYS.percentile.monthly-9b7a2b78.js} +0 -0
  355. /package/build/{BMI_BOYS.percentile.weekly-dfc590c1.js → BMI_BOYS.percentile.weekly-96305c2a.js} +0 -0
  356. /package/build/{BMI_BOYS.percentile.yearly-e840108a.js → BMI_BOYS.percentile.yearly-caa0c3b1.js} +0 -0
  357. /package/build/{BMI_BOYS.zscore.monthly-32f5513b.js → BMI_BOYS.zscore.monthly-5ab24053.js} +0 -0
  358. /package/build/{BMI_BOYS.zscore.weekly-f00068a0.js → BMI_BOYS.zscore.weekly-4110a92d.js} +0 -0
  359. /package/build/{BMI_BOYS.zscore.yearly-dc0486bb.js → BMI_BOYS.zscore.yearly-d960fd31.js} +0 -0
  360. /package/build/{BMI_GIRLS.percentile.monthly-9d61e9ea.js → BMI_GIRLS.percentile.monthly-a4f1d386.js} +0 -0
  361. /package/build/{BMI_GIRLS.percentile.weekly-3a9bdeac.js → BMI_GIRLS.percentile.weekly-23768f9b.js} +0 -0
  362. /package/build/{BMI_GIRLS.percentile.yearly-06f45575.js → BMI_GIRLS.percentile.yearly-2c01fc3b.js} +0 -0
  363. /package/build/{BMI_GIRLS.zscore.monthly-15da5120.js → BMI_GIRLS.zscore.monthly-08792957.js} +0 -0
  364. /package/build/{BMI_GIRLS.zscore.weekly-f769abb9.js → BMI_GIRLS.zscore.weekly-6dd2e45a.js} +0 -0
  365. /package/build/{BMI_GIRLS.zscore.yearly-b22a697e.js → BMI_GIRLS.zscore.yearly-aa748f43.js} +0 -0
  366. /package/build/{ChevronDown-f7818eb9.js → ChevronDown-f96088fe.js} +0 -0
  367. /package/build/{Close-b41a2e8b.js → Close-3e78128a.js} +0 -0
  368. /package/build/{Google-035f0841.js → Google-76de486c.js} +0 -0
  369. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-13e88c12.js → HEAD CIRCUM_BOYS.percentile.monthly-c4aa2118.js} +0 -0
  370. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-09f202f5.js → HEAD CIRCUM_BOYS.percentile.weekly-fcfb9197.js} +0 -0
  371. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-1dd10752.js → HEAD CIRCUM_BOYS.percentile.yearly-77a01c1f.js} +0 -0
  372. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-89dc64bc.js → HEAD CIRCUM_BOYS.zscore.monthly-9dfd0d50.js} +0 -0
  373. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b63f7720.js → HEAD CIRCUM_BOYS.zscore.weekly-d681750a.js} +0 -0
  374. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0acbaa7c.js → HEAD CIRCUM_BOYS.zscore.yearly-2ca5011f.js} +0 -0
  375. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-9aaf8473.js → HEAD CIRCUM_GIRLS.percentile.monthly-eb78d394.js} +0 -0
  376. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-23b6a710.js → HEAD CIRCUM_GIRLS.percentile.weekly-8909aa7b.js} +0 -0
  377. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c609c2e9.js → HEAD CIRCUM_GIRLS.percentile.yearly-3298e290.js} +0 -0
  378. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-960d4731.js → HEAD CIRCUM_GIRLS.zscore.monthly-b75c30e8.js} +0 -0
  379. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ecc88970.js → HEAD CIRCUM_GIRLS.zscore.weekly-c49a4b82.js} +0 -0
  380. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-82e3b7be.js → HEAD CIRCUM_GIRLS.zscore.yearly-2da8a2b1.js} +0 -0
  381. /package/build/{HEIGHT_BOYS.percentile.monthly-8875db87.js → HEIGHT_BOYS.percentile.monthly-73ca409c.js} +0 -0
  382. /package/build/{HEIGHT_BOYS.percentile.weekly-651a2b5d.js → HEIGHT_BOYS.percentile.weekly-1ebda785.js} +0 -0
  383. /package/build/{HEIGHT_BOYS.percentile.yearly-8373e03c.js → HEIGHT_BOYS.percentile.yearly-2a509058.js} +0 -0
  384. /package/build/{HEIGHT_BOYS.zscore.monthly-6baabf8d.js → HEIGHT_BOYS.zscore.monthly-555c8a43.js} +0 -0
  385. /package/build/{HEIGHT_BOYS.zscore.weekly-88a204f0.js → HEIGHT_BOYS.zscore.weekly-c0cb9f95.js} +0 -0
  386. /package/build/{HEIGHT_BOYS.zscore.yearly-81a48a65.js → HEIGHT_BOYS.zscore.yearly-d0c4d7d0.js} +0 -0
  387. /package/build/{HEIGHT_GIRLS.percentile.monthly-efd68201.js → HEIGHT_GIRLS.percentile.monthly-06530ada.js} +0 -0
  388. /package/build/{HEIGHT_GIRLS.percentile.weekly-dd6cc74d.js → HEIGHT_GIRLS.percentile.weekly-2e88488c.js} +0 -0
  389. /package/build/{HEIGHT_GIRLS.percentile.yearly-f09b6235.js → HEIGHT_GIRLS.percentile.yearly-5bd14c2b.js} +0 -0
  390. /package/build/{HEIGHT_GIRLS.zscore.monthly-61cf1863.js → HEIGHT_GIRLS.zscore.monthly-e326022b.js} +0 -0
  391. /package/build/{HEIGHT_GIRLS.zscore.weekly-e3542759.js → HEIGHT_GIRLS.zscore.weekly-5fba4f55.js} +0 -0
  392. /package/build/{HEIGHT_GIRLS.zscore.yearly-44d467f2.js → HEIGHT_GIRLS.zscore.yearly-2a46691f.js} +0 -0
  393. /package/build/{Locale-ef55c16b.js → Locale-0cf4ef33.js} +0 -0
  394. /package/build/{Visible-98a4d791.js → Visible-88cb1247.js} +0 -0
  395. /package/build/{WEIGHT_BOYS.percentile.monthly-281bacec.js → WEIGHT_BOYS.percentile.monthly-ff6a7678.js} +0 -0
  396. /package/build/{WEIGHT_BOYS.percentile.weekly-13cab054.js → WEIGHT_BOYS.percentile.weekly-eb6212c8.js} +0 -0
  397. /package/build/{WEIGHT_BOYS.percentile.yearly-7b077ec3.js → WEIGHT_BOYS.percentile.yearly-298d7225.js} +0 -0
  398. /package/build/{WEIGHT_BOYS.zscore.monthly-951b0af7.js → WEIGHT_BOYS.zscore.monthly-21e5d70d.js} +0 -0
  399. /package/build/{WEIGHT_BOYS.zscore.weekly-2e3ba4f0.js → WEIGHT_BOYS.zscore.weekly-2e9d562d.js} +0 -0
  400. /package/build/{WEIGHT_BOYS.zscore.yearly-59cbdf73.js → WEIGHT_BOYS.zscore.yearly-67670041.js} +0 -0
  401. /package/build/{WEIGHT_GIRLS.percentile.monthly-43562ebf.js → WEIGHT_GIRLS.percentile.monthly-8f2aee08.js} +0 -0
  402. /package/build/{WEIGHT_GIRLS.percentile.weekly-d370a594.js → WEIGHT_GIRLS.percentile.weekly-a8f30313.js} +0 -0
  403. /package/build/{WEIGHT_GIRLS.percentile.yearly-e4aacb08.js → WEIGHT_GIRLS.percentile.yearly-5af24aa4.js} +0 -0
  404. /package/build/{WEIGHT_GIRLS.zscore.monthly-c8952b8d.js → WEIGHT_GIRLS.zscore.monthly-fdd95600.js} +0 -0
  405. /package/build/{WEIGHT_GIRLS.zscore.weekly-518a2754.js → WEIGHT_GIRLS.zscore.weekly-76f5c2af.js} +0 -0
  406. /package/build/{WEIGHT_GIRLS.zscore.yearly-e5347a1c.js → WEIGHT_GIRLS.zscore.yearly-a76150cf.js} +0 -0
  407. /package/build/{animation-9065e5af.js → animation-bc3fdfd6.js} +0 -0
  408. /package/build/{constants-5eff4fe0.js → constants-324abbca.js} +0 -0
  409. /package/build/{constants-7b3371e7.js → constants-4a2f642d.js} +0 -0
  410. /package/build/{constants-01156702.js → constants-9bb14bc5.js} +0 -0
  411. /package/build/{dataTransform-49595c9c.js → dataTransform-eba5fb0f.js} +0 -0
  412. /package/build/esm/{BMI_BOYS.percentile.monthly-3528f5fd.js → BMI_BOYS.percentile.monthly-eed3e422.js} +0 -0
  413. /package/build/esm/{BMI_BOYS.percentile.weekly-caa444a6.js → BMI_BOYS.percentile.weekly-c420da11.js} +0 -0
  414. /package/build/esm/{BMI_BOYS.percentile.yearly-e77400ce.js → BMI_BOYS.percentile.yearly-3419e507.js} +0 -0
  415. /package/build/esm/{BMI_BOYS.zscore.monthly-4ca65742.js → BMI_BOYS.zscore.monthly-955a610a.js} +0 -0
  416. /package/build/esm/{BMI_BOYS.zscore.weekly-71172ebc.js → BMI_BOYS.zscore.weekly-997eb290.js} +0 -0
  417. /package/build/esm/{BMI_BOYS.zscore.yearly-f6a9ef54.js → BMI_BOYS.zscore.yearly-102c102b.js} +0 -0
  418. /package/build/esm/{BMI_GIRLS.percentile.monthly-67950d52.js → BMI_GIRLS.percentile.monthly-016b56dc.js} +0 -0
  419. /package/build/esm/{BMI_GIRLS.percentile.weekly-e7bc6afe.js → BMI_GIRLS.percentile.weekly-e7cae23b.js} +0 -0
  420. /package/build/esm/{BMI_GIRLS.percentile.yearly-f8e2d904.js → BMI_GIRLS.percentile.yearly-f6687f86.js} +0 -0
  421. /package/build/esm/{BMI_GIRLS.zscore.monthly-58e2be1d.js → BMI_GIRLS.zscore.monthly-fb983b2f.js} +0 -0
  422. /package/build/esm/{BMI_GIRLS.zscore.weekly-d5aa7413.js → BMI_GIRLS.zscore.weekly-c15f1bf6.js} +0 -0
  423. /package/build/esm/{BMI_GIRLS.zscore.yearly-927fe969.js → BMI_GIRLS.zscore.yearly-6d9c01cc.js} +0 -0
  424. /package/build/esm/{ChevronDown-c37f2a70.js → ChevronDown-9995d667.js} +0 -0
  425. /package/build/esm/{Close-4c0472f1.js → Close-d91cfc66.js} +0 -0
  426. /package/build/esm/{Google-afa995f2.js → Google-6d1809d2.js} +0 -0
  427. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-e29d440c.js → HEAD CIRCUM_BOYS.percentile.monthly-78366b0c.js} +0 -0
  428. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-fd15d8b2.js → HEAD CIRCUM_BOYS.percentile.weekly-9f381e19.js} +0 -0
  429. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f1db02f1.js → HEAD CIRCUM_BOYS.percentile.yearly-cf4f528d.js} +0 -0
  430. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c77d9773.js → HEAD CIRCUM_BOYS.zscore.monthly-0fb9b03d.js} +0 -0
  431. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-30157017.js → HEAD CIRCUM_BOYS.zscore.weekly-e1d5673e.js} +0 -0
  432. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e034e1df.js → HEAD CIRCUM_BOYS.zscore.yearly-bf1a885f.js} +0 -0
  433. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1e17c5da.js → HEAD CIRCUM_GIRLS.percentile.monthly-9b82cf67.js} +0 -0
  434. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e8600a9f.js → HEAD CIRCUM_GIRLS.percentile.weekly-5b368864.js} +0 -0
  435. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-42562710.js → HEAD CIRCUM_GIRLS.percentile.yearly-f4a5c1e4.js} +0 -0
  436. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-f32ea83e.js → HEAD CIRCUM_GIRLS.zscore.monthly-f0aab0e4.js} +0 -0
  437. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-503760e7.js → HEAD CIRCUM_GIRLS.zscore.weekly-b330180f.js} +0 -0
  438. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b664c4fb.js → HEAD CIRCUM_GIRLS.zscore.yearly-36077b15.js} +0 -0
  439. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-28b4ba71.js → HEIGHT_BOYS.percentile.monthly-1ecdd7b1.js} +0 -0
  440. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1357b218.js → HEIGHT_BOYS.percentile.weekly-60c072a1.js} +0 -0
  441. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-40ec2963.js → HEIGHT_BOYS.percentile.yearly-fa78754d.js} +0 -0
  442. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a94a821b.js → HEIGHT_BOYS.zscore.monthly-af8b22cc.js} +0 -0
  443. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-0892910f.js → HEIGHT_BOYS.zscore.weekly-896c274a.js} +0 -0
  444. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3e990ff5.js → HEIGHT_BOYS.zscore.yearly-24ad9700.js} +0 -0
  445. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-aa305c0c.js → HEIGHT_GIRLS.percentile.monthly-1a9a7705.js} +0 -0
  446. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-6197a217.js → HEIGHT_GIRLS.percentile.weekly-1deb2eff.js} +0 -0
  447. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ff1a4040.js → HEIGHT_GIRLS.percentile.yearly-fe191ba8.js} +0 -0
  448. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-5caa888c.js → HEIGHT_GIRLS.zscore.monthly-29100de5.js} +0 -0
  449. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-57dce66b.js → HEIGHT_GIRLS.zscore.weekly-ea6c8bd8.js} +0 -0
  450. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-2569c3ee.js → HEIGHT_GIRLS.zscore.yearly-b3739291.js} +0 -0
  451. /package/build/esm/{Locale-11cdb7de.js → Locale-c6602a1d.js} +0 -0
  452. /package/build/esm/{Visible-d50e3279.js → Visible-a3d0bc69.js} +0 -0
  453. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-1ce4fe1a.js → WEIGHT_BOYS.percentile.monthly-4a643374.js} +0 -0
  454. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-fdc4858e.js → WEIGHT_BOYS.percentile.weekly-dfb9b852.js} +0 -0
  455. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-fed8b8c4.js → WEIGHT_BOYS.percentile.yearly-48546187.js} +0 -0
  456. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-02faa503.js → WEIGHT_BOYS.zscore.monthly-45a40377.js} +0 -0
  457. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8295da57.js → WEIGHT_BOYS.zscore.weekly-eb5ac698.js} +0 -0
  458. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bdf3211b.js → WEIGHT_BOYS.zscore.yearly-c87aba91.js} +0 -0
  459. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-b6f65b67.js → WEIGHT_GIRLS.percentile.monthly-36e19b98.js} +0 -0
  460. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-d090aaea.js → WEIGHT_GIRLS.percentile.weekly-eb2bcce6.js} +0 -0
  461. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bfd2acd7.js → WEIGHT_GIRLS.percentile.yearly-a6074520.js} +0 -0
  462. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b71882f1.js → WEIGHT_GIRLS.zscore.monthly-44a1b487.js} +0 -0
  463. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ed671a89.js → WEIGHT_GIRLS.zscore.weekly-358d3c36.js} +0 -0
  464. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a5641095.js → WEIGHT_GIRLS.zscore.yearly-cf8543fc.js} +0 -0
  465. /package/build/esm/{animation-1e3258d7.js → animation-0f531fe5.js} +0 -0
  466. /package/build/esm/{constants-3dee60cc.js → constants-522b9ea7.js} +0 -0
  467. /package/build/esm/{constants-5ef0ba25.js → constants-e30aa64e.js} +0 -0
  468. /package/build/esm/{constants-193eefd7.js → constants-f9d731d3.js} +0 -0
  469. /package/build/esm/{dataTransform-b015b2a9.js → dataTransform-952fd6f5.js} +0 -0
  470. /package/build/esm/{index-a870f848.js → index-2306e61b.js} +0 -0
  471. /package/build/esm/{index-00992c0c.js → index-236b4486.js} +0 -0
  472. /package/build/esm/{index-d4b881e6.js → index-35f0b741.js} +0 -0
  473. /package/build/esm/{index-6f3e4010.js → index-3794729d.js} +0 -0
  474. /package/build/esm/{index-2475d562.js → index-49803a2e.js} +0 -0
  475. /package/build/esm/{index-8b2d0535.js → index-ceaa635b.js} +0 -0
  476. /package/build/esm/{index-77eaeab8.js → index-d5ab2b78.js} +0 -0
  477. /package/build/esm/{index-ccc32391.js → index-f22059a6.js} +0 -0
  478. /package/build/esm/{index.styles-166ce722.js → index.styles-15ba3038.js} +0 -0
  479. /package/build/esm/{localizeNumberFormat-25906ecc.js → localizeNumberFormat-38fe44d0.js} +0 -0
  480. /package/build/esm/{normalizeLink-3d605556.js → normalizeLink-384bc1f9.js} +0 -0
  481. /package/build/esm/{number-5db27ccb.js → number-5b350541.js} +0 -0
  482. /package/build/esm/{paths-ef91fe8c.js → paths-f9fb40fb.js} +0 -0
  483. /package/build/esm/{shared-ebc4437a.js → shared-fb21e1a4.js} +0 -0
  484. /package/build/esm/{text-be6e4aed.js → text-59a87359.js} +0 -0
  485. /package/build/esm/{translationsContext-5d78293a.js → translationsContext-686297cf.js} +0 -0
  486. /package/build/esm/{tslib.es6-11102b31.js → tslib.es6-b72daa1a.js} +0 -0
  487. /package/build/esm/{types-0a519ff0.js → types-b30100d5.js} +0 -0
  488. /package/build/esm/{useIsInit-01d537c6.js → useIsInit-747a23b6.js} +0 -0
  489. /package/build/esm/{useOutsideClick-488d4472.js → useOutsideClick-910d3203.js} +0 -0
  490. /package/build/esm/{useScrollbarSize-167aa808.js → useScrollbarSize-bad48069.js} +0 -0
  491. /package/build/esm/{useUniqueId-e97427dd.js → useUniqueId-fc5768de.js} +0 -0
  492. /package/build/esm/{utils-74bbb259.js → utils-153f2f04.js} +0 -0
  493. /package/build/{index-33e37ec9.js → index-03a1dfa5.js} +0 -0
  494. /package/build/{index-22b1489e.js → index-1fbf5b46.js} +0 -0
  495. /package/build/{index-4e523baf.js → index-38505499.js} +0 -0
  496. /package/build/{index-e2524af5.js → index-4e9754a8.js} +0 -0
  497. /package/build/{index-915961f2.js → index-503a6ee8.js} +0 -0
  498. /package/build/{index-75960180.js → index-52c1a8a8.js} +0 -0
  499. /package/build/{index-0aad059d.js → index-559721ac.js} +0 -0
  500. /package/build/{index-4cb33437.js → index-b409609f.js} +0 -0
  501. /package/build/{index.styles-b277d461.js → index.styles-90d0628e.js} +0 -0
  502. /package/build/{localizeNumberFormat-d272aabc.js → localizeNumberFormat-a9ab7ebd.js} +0 -0
  503. /package/build/{normalizeLink-0f0cdcfc.js → normalizeLink-b687d725.js} +0 -0
  504. /package/build/{number-d3b9063f.js → number-4fd75e51.js} +0 -0
  505. /package/build/{paths-1d82c2d4.js → paths-d0f7481b.js} +0 -0
  506. /package/build/{shared-12fecc1c.js → shared-4e37a3d0.js} +0 -0
  507. /package/build/{text-f49342fc.js → text-3e6acf61.js} +0 -0
  508. /package/build/{translationsContext-32bab3d5.js → translationsContext-ffa516bd.js} +0 -0
  509. /package/build/{tslib.es6-1410702e.js → tslib.es6-bd9d8302.js} +0 -0
  510. /package/build/{types-a3354f48.js → types-40508363.js} +0 -0
  511. /package/build/{useIsInit-52e88dbd.js → useIsInit-6ca9d3a9.js} +0 -0
  512. /package/build/{useOutsideClick-df37a945.js → useOutsideClick-e9d6129f.js} +0 -0
  513. /package/build/{useScrollbarSize-da5ef5ec.js → useScrollbarSize-490fdd2f.js} +0 -0
  514. /package/build/{useUniqueId-780302e8.js → useUniqueId-4f37ba5e.js} +0 -0
  515. /package/build/{utils-900cf77a.js → utils-28ea2538.js} +0 -0
package/build/lead.js CHANGED
@@ -2,59 +2,59 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('./tslib.es6-1410702e.js');
5
+ var tslib_es6 = require('./tslib.es6-bd9d8302.js');
6
6
  var React = require('react');
7
7
  var core = require('@mantine/core');
8
8
  var debounce = require('lodash/debounce');
9
9
  var form = require('@mantine/form');
10
10
  var dayjs = require('dayjs');
11
- var index = require('./index-3392f4d3.js');
11
+ var index = require('./index-b971c9ab.js');
12
12
  var miscCookieHelper = require('./miscCookieHelper.js');
13
- var index$1 = require('./index-73054ceb.js');
14
- var translationsContext = require('./translationsContext-32bab3d5.js');
15
- var utils$1 = require('./utils-900cf77a.js');
16
- var index$2 = require('./index-e00b61ed.js');
17
- var index$3 = require('./index-a8d87b93.js');
18
- var index$5 = require('./index-ced840f1.js');
19
- var index$4 = require('./index-22f50b45.js');
20
- require('./index.styles-b277d461.js');
13
+ var index$1 = require('./index-8179f250.js');
14
+ var translationsContext = require('./translationsContext-ffa516bd.js');
15
+ var utils$1 = require('./utils-28ea2538.js');
16
+ var index$2 = require('./index-3f1d3420.js');
17
+ var index$3 = require('./index-e5636945.js');
18
+ var index$5 = require('./index-9bad2cc0.js');
19
+ var index$4 = require('./index-97e86501.js');
20
+ require('./index.styles-90d0628e.js');
21
21
  var hooks = require('@mantine/hooks');
22
- require('./index-d3b9cb34.js');
23
- var text = require('./text-f49342fc.js');
24
- require('./index-7661433e.js');
25
- var utils = require('./utils-0bc8fe4d.js');
22
+ require('./index-1fbe06f4.js');
23
+ var text = require('./text-3e6acf61.js');
24
+ require('./index-86c18fb9.js');
25
+ var utils = require('./utils-1c9bd3de.js');
26
26
  var dates = require('@mantine/dates');
27
- var index$7 = require('./index-ae748b6c.js');
28
- var index$a = require('./index-11ff5438.js');
29
- require('./index-0aad059d.js');
30
- var usePlacesAutocomplete = require('./usePlacesAutocomplete-bd1a84ed.js');
31
- var index$6 = require('./index-25b5f7aa.js');
32
- var translationsProvider = require('./translationsProvider-122a086f.js');
33
- var Locale = require('./Locale-ef55c16b.js');
27
+ var index$7 = require('./index-31ba4f00.js');
28
+ var index$a = require('./index-e14e7423.js');
29
+ require('./index-559721ac.js');
30
+ var usePlacesAutocomplete = require('./usePlacesAutocomplete-796ccf6d.js');
31
+ var index$6 = require('./index-4c81156b.js');
32
+ var translationsProvider = require('./translationsProvider-16beacfa.js');
33
+ var Locale = require('./Locale-0cf4ef33.js');
34
34
  var uuid = require('uuid');
35
35
  var constantsDomainLocales = require('./constantsDomainLocales.js');
36
36
  var PhoneInputBase = require('react-phone-number-input');
37
37
  var styled = require('@emotion/styled');
38
38
  var miscTheme = require('./miscTheme.js');
39
39
  var react = require('@emotion/react');
40
- var togetherComponentGlobalContext = require('./utils-a5468e63.js');
41
- var index$8 = require('./index-aedf272b.js');
42
- var index$9 = require('./index-22b1489e.js');
43
- var index$b = require('./index-1ceb1779.js');
40
+ var togetherComponentGlobalContext = require('./utils-4fbe2e9b.js');
41
+ var index$8 = require('./index-37a56d84.js');
42
+ var index$9 = require('./index-1fbf5b46.js');
43
+ var index$b = require('./index-4bd2782e.js');
44
44
  var framerMotion = require('framer-motion');
45
45
  var ReactDOM = require('react-dom');
46
- var InputDate = require('./InputDate-6c6ebb31.js');
47
- var index$c = require('./index-bb398810.js');
48
- var Close = require('./Close-b41a2e8b.js');
46
+ var InputDate = require('./InputDate-3b3443d5.js');
47
+ var index$c = require('./index-d19b5d14.js');
48
+ var Close = require('./Close-3e78128a.js');
49
49
  require('./constantsIsProduction.js');
50
- require('./normalizeLink-0f0cdcfc.js');
50
+ require('./normalizeLink-b687d725.js');
51
51
  require('@hhgtech/icons/other');
52
52
  require('@mantine/carousel');
53
53
  require('classnames');
54
- require('./useUniqueId-780302e8.js');
54
+ require('./useUniqueId-4f37ba5e.js');
55
55
  require('./constantsSite.js');
56
56
  require('@hhgtech/icons/core');
57
- require('./shared-12fecc1c.js');
57
+ require('./shared-4e37a3d0.js');
58
58
  require('@mantine/notifications');
59
59
  require('date-fns/locale');
60
60
  require('./constantsRiskScreener.js');
@@ -70,11 +70,11 @@ require('./i18n-values/vi-VN.js');
70
70
  require('./i18n-values/vi-VN_MB.js');
71
71
  require('./i18n-values/zh-SG.js');
72
72
  require('./i18n-values/zh-TW.js');
73
- require('./index-915961f2.js');
73
+ require('./index-503a6ee8.js');
74
74
  require('slugify');
75
75
  require('string-format');
76
76
  require('./togetherApiPaths.js');
77
- require('./constants-7b3371e7.js');
77
+ require('./constants-4a2f642d.js');
78
78
  require('vaul');
79
79
 
80
80
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -152,6 +152,33 @@ const LEADGEN_BLOCK_INPUT = [
152
152
  LEADGEN_BLOCK.CheckboxBlock,
153
153
  LEADGEN_BLOCK.TncBlock,
154
154
  ];
155
+ const leadGenFieldNamePhone = (listBlockAdded) => {
156
+ return listBlockAdded
157
+ .filter(({ name }) => [
158
+ LEADGEN_BLOCK.PhoneBlock,
159
+ LEADGEN_BLOCK.PhoneOtpBlock,
160
+ LEADGEN_BLOCK.WhatsappOtpBlock,
161
+ LEADGEN_BLOCK.ZaloOtpBlock,
162
+ ].includes(name))
163
+ .map(({ data }) => data.value);
164
+ };
165
+ const leadGenFieldRequired = (blocks) => {
166
+ if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
167
+ return [];
168
+ }
169
+ return blocks
170
+ .map(({ data, name, id }) => {
171
+ const { required, value } = data;
172
+ if (name === LEADGEN_BLOCK.TncBlock && id && required) {
173
+ return `TNC-${id}`;
174
+ }
175
+ if (required) {
176
+ return value;
177
+ }
178
+ return;
179
+ })
180
+ .filter(Boolean);
181
+ };
155
182
  const SSO_MAP_LEAD = ['name', 'email', 'birthday', 'phone', 'gender'];
156
183
  const LEAD_LOCALE_DATA$1 = {
157
184
  'vi-VN': {
@@ -234,33 +261,6 @@ const mappingSSOToLead = (userInfoProps) => {
234
261
  return;
235
262
  }
236
263
  };
237
- const leadGenFieldNamePhone = (listBlockAdded) => {
238
- return listBlockAdded
239
- .filter(({ name }) => [
240
- LEADGEN_BLOCK.PhoneBlock,
241
- LEADGEN_BLOCK.PhoneOtpBlock,
242
- LEADGEN_BLOCK.WhatsappOtpBlock,
243
- LEADGEN_BLOCK.ZaloOtpBlock,
244
- ].includes(name))
245
- .map(({ data }) => data.value);
246
- };
247
- const leadGenFieldRequired = (blocks) => {
248
- if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
249
- return [];
250
- }
251
- return blocks
252
- .map(({ data, name, id }) => {
253
- const { required, value } = data;
254
- if (name === LEADGEN_BLOCK.TncBlock && id && required) {
255
- return `TNC-${id}`;
256
- }
257
- if (required) {
258
- return value;
259
- }
260
- return;
261
- })
262
- .filter(Boolean);
263
- };
264
264
  const formatCampaignDetail = (campaign) => {
265
265
  if (!campaign) {
266
266
  return {};
@@ -407,55 +407,6 @@ const formatLeadGenFormValue = (values = {}, blocks) => {
407
407
  return newValues;
408
408
  };
409
409
 
410
- const TIMEOUT = 30 * 60 * 1000;
411
- const WAITING_FIRST_RESP = 'waitingTheFirstResponse';
412
- const CachedSystem = {
413
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
414
- cached: {},
415
- clearCached: (prefix) => {
416
- console.log(CachedSystem.cached);
417
- Object.keys(CachedSystem.cached)
418
- .filter((k) => k.startsWith(prefix))
419
- .forEach((key) => {
420
- console.log(key);
421
- CachedSystem.cached[key] = undefined;
422
- });
423
- },
424
- withCached: (key, fnResponse, timeout = TIMEOUT) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
425
- if (CachedSystem.cached[key] === WAITING_FIRST_RESP) {
426
- return new Promise((resolve) => {
427
- const startDate = new Date().getTime();
428
- const intervalId = setInterval(() => {
429
- const currentDate = new Date().getTime();
430
- if (currentDate - startDate > 3000) {
431
- clearInterval(intervalId);
432
- }
433
- if (typeof CachedSystem.cached[key] === 'object') {
434
- resolve(CachedSystem.cached[key]);
435
- clearInterval(intervalId);
436
- }
437
- }, 100);
438
- });
439
- }
440
- if (typeof CachedSystem.cached[key] === 'object') {
441
- return CachedSystem.cached[key];
442
- }
443
- CachedSystem.cached[key] = 'waitingTheFirstResponse';
444
- try {
445
- const result = yield fnResponse();
446
- CachedSystem.cached[key] = result;
447
- setTimeout(() => {
448
- CachedSystem.cached[key] = undefined;
449
- }, timeout);
450
- return result;
451
- }
452
- catch (err) {
453
- CachedSystem.cached[key] = undefined;
454
- return Promise.reject(err);
455
- }
456
- }),
457
- };
458
-
459
410
  class Store {
460
411
  constructor() {
461
412
  this.apiSsoUrl = 'https://staging-id.hellobacsi.com/';
@@ -465,8 +416,6 @@ class Store {
465
416
  }
466
417
  const leadStore = new Store();
467
418
 
468
- const LEADGEN_CACHE_KEY = 'LeadGen_';
469
- const LEADGEN_CACHE_TIME = 5 * 60 * 1000; // 5 minutes
470
419
  const METHOD = {
471
420
  GET: 'get',
472
421
  POST: 'POST',
@@ -653,19 +602,7 @@ const trackingSubscription = (data) => {
653
602
  data,
654
603
  });
655
604
  };
656
- function getCampaigns({ url, siteId, apiLeadUrl, }) {
657
- const ga_client_id = miscCookieHelper.getCookie('_ga') || null;
658
- const AS_PATH = `${apiLeadUrl || leadStore.apiLeadUrl}api/campaign/${siteId}`;
659
- return CachedSystem.withCached(LEADGEN_CACHE_KEY + AS_PATH, () => fetch(AS_PATH, {
660
- method: 'POST',
661
- headers: { 'Content-Type': 'application/json' },
662
- body: JSON.stringify({ url, ga_client_id }),
663
- })
664
- .then((res) => res.json())
665
- .then(({ _data }) => (_data === null || _data === void 0 ? void 0 : _data.campaigns) || []), LEADGEN_CACHE_TIME);
666
- }
667
605
  const Service = {
668
- getCampaigns,
669
606
  campaignGetById,
670
607
  getCampaignByCode,
671
608
  getSubscriptionBoxInfo,
@@ -1718,6 +1655,12 @@ const getTranslations = (locale) => {
1718
1655
  return translationsMap['en-PH'];
1719
1656
  };
1720
1657
 
1658
+ const LeadGenTranslationProvider = (props) => {
1659
+ const { locale, children } = props;
1660
+ const translationContextValue = React.useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
1661
+ return (React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: translationContextValue }, children));
1662
+ };
1663
+
1721
1664
  // import mockLeadData from './mockLeadData'
1722
1665
  const listCampaignScheduled = [];
1723
1666
  const listCampaignScheduledToActivated = [];
@@ -1893,167 +1836,167 @@ function clearPassiveEvent() {
1893
1836
  LEAD_SCROLL_EVENT = null;
1894
1837
  }
1895
1838
  }
1896
- function getCurrentCampaign({ campaigns = [], leadDomain, leadCurrentUrl, }) {
1897
- if (!miscCookieHelper.getCookie('hhg-id')) {
1898
- miscCookieHelper.setCookie('hhg-id', uuid.v1(), { domain: `.${leadDomain}`, path: '/' });
1899
- LeadLog('😍 Set HHG ID cookie');
1900
- }
1901
- // TODO: HP-534 Filter desktop
1902
- let campaignsDevice = [];
1903
- if (isMobile()) {
1904
- campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
1905
- }
1906
- else {
1907
- campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
1908
- }
1909
- LeadLog(`👓 campaignsDevice`, campaignsDevice);
1910
- LeadLog('--listCampaignScheduled', listCampaignScheduled);
1911
- LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
1912
- LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
1913
- LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
1914
- LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
1915
- LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
1916
- // Check links
1917
- let listLinksObj = campaignsDevice
1918
- .map((i, index) => i.targets
1919
- .filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
1920
- .map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
1921
- .flat(1) || [];
1922
- // Check list link match current href
1923
- listLinksObj = listLinksObj.filter((i) => {
1924
- var _a;
1925
- const target = new URL(String(i.target).toLowerCase());
1926
- if (i.option == 'exact_match')
1927
- // FOR TEST LOCAL:
1928
- // return Boolean(location.pathname === target.pathname)
1929
- return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
1930
- if (i.option == 'start_with') {
1931
- // FOR TEST LOCAL:
1932
- // if (location.pathname.includes(target.pathname)) {
1933
- if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
1934
- const listExcluding = i.sub_target
1935
- .filter((i) => i.option == 'excluding')
1936
- .map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
1937
- return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
1938
- }
1939
- else {
1940
- return false;
1941
- }
1942
- }
1943
- });
1944
- // Check tags
1945
- const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
1946
- const listTags = listMetaTag.map((i) => i.content);
1947
- let listCampaignHasTag = [];
1948
- let listTagsObj = [];
1949
- if (listTags && listTags.length) {
1950
- listCampaignHasTag = campaignsDevice
1951
- .map((i, index) => i.targets
1952
- .filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
1953
- .map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
1954
- .flat(1);
1955
- listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
1956
- }
1957
- const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
1958
- const cookieKeys = document.cookie.split('; ').map((i) => i.split('=')[0]);
1959
- const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
1960
- LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
1961
- const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
1962
- LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
1963
- const listCampaignSubmitedClosed = [
1964
- ...listCampaignCodeSubmited,
1965
- ...listCampaignCodeClosed,
1966
- ];
1967
- const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
1968
- const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
1969
- return !hasSubmited;
1970
- });
1971
- const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
1972
- // .sort(
1973
- // (a, b) =>
1974
- // (listCampaignValid[a.campaignIndex]?.score || 0) -
1975
- // (listCampaignValid[b.campaignIndex]?.score || 0),
1976
- // )
1977
- LeadLog('--listCampaignValid : ', listCampaignValid);
1978
- if (listCampaignValid && listCampaignValid.length) {
1979
- const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
1980
- return CAMPAIGN_SHOW;
1981
- }
1982
- else {
1983
- LeadLog('🚧 No lead campaigns on current URL, tags');
1984
- return null;
1985
- }
1986
- }
1987
- function addEventShowCurrentCampaign({ campaign: CAMPAIGN_SHOW, onShowPopup, }) {
1988
- var _a, _b;
1989
- LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
1990
- const { rules } = CAMPAIGN_SHOW;
1991
- // CHECK RULE TRIGGER POPUP
1992
- const timeoutRule = Number((_a = rules.find((i) => i.rule == 'time')) === null || _a === void 0 ? void 0 : _a.value);
1993
- LeadLog(`timeoutRule`, timeoutRule);
1994
- const scrollRule = Number((_b = rules.find((i) => i.rule == 'scroll')) === null || _b === void 0 ? void 0 : _b.value);
1995
- LeadLog(`scrollRule`, scrollRule);
1996
- let impressionAction = 'TIME';
1997
- if (Number.isInteger(timeoutRule)) {
1998
- impressionAction = 'TIME';
1999
- LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
2000
- timeoutRef = setTimeout(() => {
2001
- onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
2002
- }, timeoutRule * 1000);
2003
- return { campaign: CAMPAIGN_SHOW, action: impressionAction };
2004
- }
2005
- if (Number.isInteger(scrollRule)) {
2006
- impressionAction = 'SCROLL';
2007
- LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
2008
- const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
2009
- document.querySelector('body');
2010
- const pct = $p.getBoundingClientRect().top;
2011
- const pb = $p.offsetHeight;
2012
- LeadLog(`👓 Element check scroll: `, $p);
2013
- LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
2014
- const wt = window.pageYOffset || document.documentElement.scrollTop;
2015
- let percent = 0;
2016
- if (wt >= pct) {
2017
- percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
2018
- }
2019
- LeadLog('---Scroll', percent, scrollRule);
2020
- // TODO: CHECK FOOTER HEIGHT
2021
- if (percent >= scrollRule) {
2022
- window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
2023
- onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
2024
- }
2025
- };
2026
- window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
2027
- passive: true,
2028
- });
2029
- }
2030
- }
2031
1839
  function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
2032
1840
  // clear previous passive event, check for new condition
2033
1841
  clearPassiveEvent();
2034
- let leadCurrentUrl = DEBUG_URL;
2035
- if (typeof window !== 'undefined') {
2036
- const { location } = window;
2037
- leadCurrentUrl = leadCurrentUrl || location.href.toLowerCase();
2038
- }
2039
- Service.getCampaigns({
2040
- url: leadCurrentUrl,
2041
- siteId: leadSiteId,
2042
- apiLeadUrl: leadApi,
1842
+ const leadCurrentUrl = DEBUG_URL ||
1843
+ ('https://' +
1844
+ location.hostname +
1845
+ location.pathname +
1846
+ location.search).toLowerCase();
1847
+ fetch(leadApi + 'api/campaign/' + leadSiteId, {
1848
+ method: 'POST',
1849
+ headers: {
1850
+ 'Content-Type': 'application/json',
1851
+ },
1852
+ body: JSON.stringify({
1853
+ url: leadCurrentUrl,
1854
+ ga_client_id: miscCookieHelper.getCookie('_ga') || null,
1855
+ }),
1856
+ })
1857
+ .then((response) => {
1858
+ return response.json();
1859
+ // return mockLeadData || response.json()
2043
1860
  })
2044
- .then((campRes) => {
2045
- LeadLog('List campagin: ', campRes);
1861
+ .then((data) => {
1862
+ var _a, _b, _c, _d;
1863
+ LeadLog('List campagin: ', data);
2046
1864
  LEAD_RESET_VAR();
2047
- const campaigns = (campRes || [])
2048
- .filter(filterFnCampaign)
2049
- .filter(fillterApprearanceTimeCampaign);
2050
- const campaign = getCurrentCampaign({
2051
- campaigns,
2052
- leadCurrentUrl,
2053
- leadDomain,
2054
- });
2055
- if (campaign && (campaign === null || campaign === void 0 ? void 0 : campaign.id)) {
2056
- addEventShowCurrentCampaign({ campaign, onShowPopup });
1865
+ if (data._status == 1) {
1866
+ const campaigns = (((_b = (_a = data._data) === null || _a === void 0 ? void 0 : _a.campaigns) === null || _b === void 0 ? void 0 : _b.filter(filterFnCampaign)) || []).filter(fillterApprearanceTimeCampaign);
1867
+ if (!miscCookieHelper.getCookie('hhg-id')) {
1868
+ miscCookieHelper.setCookie('hhg-id', uuid.v1(), {
1869
+ domain: '.' + leadDomain,
1870
+ path: '/',
1871
+ });
1872
+ LeadLog('😍 Set HHG ID cookie');
1873
+ }
1874
+ // getCookie('hhg-id')
1875
+ // TODO: HP-534 Filter desktop
1876
+ let campaignsDevice = [];
1877
+ if (isMobile()) {
1878
+ campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
1879
+ }
1880
+ else {
1881
+ campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
1882
+ }
1883
+ LeadLog(`👓 campaignsDevice`, campaignsDevice);
1884
+ LeadLog('--listCampaignScheduled', listCampaignScheduled);
1885
+ LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
1886
+ LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
1887
+ LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
1888
+ LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
1889
+ LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
1890
+ // Check links
1891
+ let listLinksObj = campaignsDevice
1892
+ .map((i, index) => i.targets
1893
+ .filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
1894
+ .map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
1895
+ .flat(1);
1896
+ // Check list link match current href
1897
+ listLinksObj = listLinksObj.filter((i) => {
1898
+ var _a;
1899
+ const target = new URL(String(i.target).toLowerCase());
1900
+ if (i.option == 'exact_match')
1901
+ // FOR TEST LOCAL:
1902
+ // return Boolean(location.pathname === target.pathname)
1903
+ return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
1904
+ if (i.option == 'start_with') {
1905
+ // FOR TEST LOCAL:
1906
+ // if (location.pathname.includes(target.pathname)) {
1907
+ if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
1908
+ const listExcluding = i.sub_target
1909
+ .filter((i) => i.option == 'excluding')
1910
+ .map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
1911
+ return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
1912
+ }
1913
+ else {
1914
+ return false;
1915
+ }
1916
+ }
1917
+ });
1918
+ // Check tags
1919
+ const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
1920
+ const listTags = listMetaTag.map((i) => i.content);
1921
+ let listCampaignHasTag = [];
1922
+ let listTagsObj = [];
1923
+ if (listTags && listTags.length) {
1924
+ listCampaignHasTag = campaignsDevice
1925
+ .map((i, index) => i.targets
1926
+ .filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
1927
+ .map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
1928
+ .flat(1);
1929
+ listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
1930
+ }
1931
+ const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
1932
+ const cookieKeys = document.cookie
1933
+ .split('; ')
1934
+ .map((i) => i.split('=')[0]);
1935
+ const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
1936
+ LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
1937
+ const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
1938
+ LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
1939
+ const listCampaignSubmitedClosed = [
1940
+ ...listCampaignCodeSubmited,
1941
+ ...listCampaignCodeClosed,
1942
+ ];
1943
+ const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
1944
+ const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
1945
+ return !hasSubmited;
1946
+ });
1947
+ const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
1948
+ // .sort(
1949
+ // (a, b) =>
1950
+ // (listCampaignValid[a.campaignIndex]?.score || 0) -
1951
+ // (listCampaignValid[b.campaignIndex]?.score || 0),
1952
+ // )
1953
+ LeadLog('--listCampaignValid : ', listCampaignValid);
1954
+ if (listCampaignValid && listCampaignValid.length) {
1955
+ const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
1956
+ LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
1957
+ const { rules } = CAMPAIGN_SHOW;
1958
+ // CHECK RULE TRIGGER POPUP
1959
+ const timeoutRule = Number((_c = rules.find((i) => i.rule == 'time')) === null || _c === void 0 ? void 0 : _c.value);
1960
+ LeadLog(`timeoutRule`, timeoutRule);
1961
+ const scrollRule = Number((_d = rules.find((i) => i.rule == 'scroll')) === null || _d === void 0 ? void 0 : _d.value);
1962
+ LeadLog(`scrollRule`, scrollRule);
1963
+ let impressionAction = 'TIME';
1964
+ if (Number.isInteger(timeoutRule)) {
1965
+ impressionAction = 'TIME';
1966
+ LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
1967
+ timeoutRef = setTimeout(() => {
1968
+ onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
1969
+ }, timeoutRule * 1000);
1970
+ }
1971
+ if (Number.isInteger(scrollRule)) {
1972
+ impressionAction = 'SCROLL';
1973
+ LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
1974
+ const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
1975
+ document.querySelector('body');
1976
+ const pct = $p.getBoundingClientRect().top;
1977
+ const pb = $p.offsetHeight;
1978
+ LeadLog(`👓 Element check scroll: `, $p);
1979
+ LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
1980
+ const wt = window.pageYOffset || document.documentElement.scrollTop;
1981
+ let percent = 0;
1982
+ if (wt >= pct) {
1983
+ percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
1984
+ }
1985
+ LeadLog('---Scroll', percent, scrollRule);
1986
+ // TODO: CHECK FOOTER HEIGHT
1987
+ if (percent >= scrollRule) {
1988
+ window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
1989
+ onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
1990
+ }
1991
+ };
1992
+ window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
1993
+ passive: true,
1994
+ });
1995
+ }
1996
+ }
1997
+ else {
1998
+ LeadLog('🚧 No lead campaigns on current URL, tags');
1999
+ }
2057
2000
  }
2058
2001
  })
2059
2002
  .catch((err) => {
@@ -2070,72 +2013,31 @@ const LeadLog = (...params) => {
2070
2013
  }
2071
2014
  };
2072
2015
 
2073
- const LeadGenInlineWithoutMemo = (props) => {
2074
- const [campaign, setCampaign] = React.useState();
2075
- const { forceCampaign, apiUrl, apiLeadUrl, siteId, siteDomain, DEBUG_URL } = props;
2076
- React.useEffect(() => {
2077
- if (forceCampaign) {
2078
- setCampaign(forceCampaign);
2079
- return;
2080
- }
2081
- (() => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
2082
- const campaign = yield leadGenInlineGetCampaign({
2083
- siteId,
2084
- siteDomain,
2085
- apiLeadUrl: apiUrl || apiLeadUrl || '',
2086
- url: DEBUG_URL,
2087
- });
2088
- if (campaign) {
2089
- setCampaign(campaign);
2090
- }
2091
- }))();
2092
- }, [forceCampaign, DEBUG_URL, apiUrl, apiLeadUrl, siteId, siteDomain]);
2093
- if (!campaign || !(campaign === null || campaign === void 0 ? void 0 : campaign.id)) {
2094
- return null;
2095
- }
2096
- return (React__default["default"].createElement(LeadGen, Object.assign({}, props, { forceCampaign: campaign, apiUrl: apiUrl || apiLeadUrl, flatComponent: true })));
2097
- };
2098
- const LeadGenInline = React.memo(LeadGenInlineWithoutMemo);
2099
- function leadGenInlineGetCampaign(props) {
2100
- var _a;
2101
- return tslib_es6.__awaiter(this, void 0, void 0, function* () {
2102
- const { url, apiLeadUrl, siteId, siteDomain } = props;
2103
- const campaigns = yield Service.getCampaigns({ url, apiLeadUrl, siteId });
2104
- const campaignsInline = (_a = (campaigns || [])) === null || _a === void 0 ? void 0 : _a.filter(({ extra_fields }) => {
2105
- const { currentLayout } = extra_fields || {};
2106
- return currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.includes('Inline');
2107
- });
2108
- return getCurrentCampaign({
2109
- campaigns: campaignsInline,
2110
- leadCurrentUrl: url,
2111
- leadDomain: siteDomain,
2112
- });
2113
- });
2114
- }
2115
-
2116
- const LeadGenTranslationProvider = (props) => {
2117
- const { locale, children } = props;
2118
- const translationContextValue = React.useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
2119
- return (React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: translationContextValue }, children));
2120
- };
2121
-
2122
2016
  const LeadGenContext = React.createContext({
2123
- onSubmit(value) {
2017
+ submit(value) {
2124
2018
  /** Init for FAKING function */
2125
2019
  LeadLog('** LeadGen Submit : ', value);
2126
2020
  return Promise.reject(value);
2127
2021
  },
2128
- onImpression(value) {
2022
+ submitSubscriptionBox(value) {
2129
2023
  /** Init for FAKING function */
2130
- LeadLog('** LeadGen Impression : ', value);
2024
+ LeadLog('** LeadGen SubmitSubscriptionBox : ', value);
2025
+ return Promise.reject(value);
2026
+ },
2027
+ impression(type) {
2028
+ /** Init for FAKING function */
2029
+ LeadLog('** LeadGen Impression : ', type);
2131
2030
  return Promise.reject();
2132
2031
  },
2032
+ /** For Subscription Box */
2033
+ subscriptionIcon: '',
2034
+ subscriptionTitle: '',
2035
+ subscriptionPhoneType: '',
2133
2036
  });
2134
2037
  const LeadGenContextProvider = (props) => {
2135
- const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues, siteId, siteDomain, DEBUG_URL = '', children, articleId, categoryId, userInfo } = props, restProps = tslib_es6.__rest(props, ["campaign_code", "apiSsoUrl", "apiLeadUrl", "apiSubotUrl", "locale", "forceCampaign", "extraValues", "siteId", "siteDomain", "DEBUG_URL", "children", "articleId", "categoryId", "userInfo"]);
2038
+ const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues, articleId = 1, categoryId = 1, siteDomain: site_domain, children, userInfo } = props, restProps = tslib_es6.__rest(props, ["campaign_code", "apiSsoUrl", "apiLeadUrl", "apiSubotUrl", "locale", "forceCampaign", "extraValues", "articleId", "categoryId", "siteDomain", "children", "userInfo"]);
2136
2039
  const { t } = index$1.useTranslations();
2137
- const [rawForceCampaign, setRawForceCampaign] = React.useState(forceCampaignProps);
2138
- const [forceCampaign, setForceCampaign] = React.useState(() => formatCampaignDetail(forceCampaignProps));
2040
+ const [forceCampaign, setForceCampaign] = React.useState(forceCampaignProps);
2139
2041
  const [subscriptionInfo, setSubscriptionInfo] = React.useState({
2140
2042
  subscriptionIcon: '',
2141
2043
  subscriptionTitle: '',
@@ -2145,65 +2047,98 @@ const LeadGenContextProvider = (props) => {
2145
2047
  const locale = React.useMemo(() => {
2146
2048
  return localeProps || Locale.LOCALE['PhilippinesEnglish'];
2147
2049
  }, [localeProps]);
2050
+ const { url, campaign_id, cookie_id, ga_client_id, category_id, article_id, article_title, category_name, } = React.useMemo(() => ({
2051
+ url: location.href.toLowerCase() || '',
2052
+ cookie_id: miscCookieHelper.getCookie('hhg-id') || null,
2053
+ ga_client_id: miscCookieHelper.getCookie('_ga'),
2054
+ campaign_id: forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
2055
+ campaign_code: campaignCodeProps || (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code),
2056
+ category_id: categoryId,
2057
+ article_id: articleId,
2058
+ article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
2059
+ category_name: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name) || '',
2060
+ }), [
2061
+ campaignCodeProps,
2062
+ articleId,
2063
+ categoryId,
2064
+ forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
2065
+ extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
2066
+ extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
2067
+ ]);
2068
+ // const fetchCampaign = useCallback(
2069
+ // (campaign_code: string) => {
2070
+ // Service.getCampaignByCode(campaign_code).then((res) => {
2071
+ // const { _data } = res || {}
2072
+ // const { campaigns } = _data || {}
2073
+ // LeadLog('** LeadGen Campaign : ', campaigns)
2074
+ // setForceCampaign(formatCampaignDetail(campaigns))
2075
+ // })
2076
+ // },
2077
+ // [campaignCodeProps],
2078
+ // )
2148
2079
  // TODO : Update form for LeadGen
2149
- const onSubmit = React.useCallback((data) => {
2080
+ const submit = React.useCallback((data) => {
2150
2081
  return Service.postSubscriptionBoxLead({ data });
2151
- }, [forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.blocks]);
2152
- const onImpression = React.useCallback((value) => {
2153
- //
2154
- console.log('** RYAN LeadGenContext.tsx 188 value : ', value);
2155
- return Promise.resolve('dfdfdf');
2156
2082
  }, []);
2157
2083
  const submitSubscriptionBox = React.useCallback((value) => {
2158
2084
  const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
2159
2085
  // campaign_id,
2160
- site_domain: siteDomain, url: (value === null || value === void 0 ? void 0 : value.url) || location.href.toLowerCase() || '', cookie_id: miscCookieHelper.getCookie('hhg-id') || null, ga_client_id: miscCookieHelper.getCookie('_ga') }), extraValues), { article_id: articleId, category_id: categoryId, article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '' });
2086
+ site_domain, url: (value === null || value === void 0 ? void 0 : value.url) || url, cookie_id, ga_client_id: (value === null || value === void 0 ? void 0 : value.ga_client_id) || ga_client_id }), extraValues), { article_id,
2087
+ category_id,
2088
+ article_title });
2161
2089
  return Service.postSubscriptionBoxLead({ data });
2162
2090
  }, [
2163
2091
  extraValues,
2164
- extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
2165
- siteDomain,
2166
- articleId,
2167
- categoryId,
2092
+ site_domain,
2093
+ campaign_id,
2094
+ article_id,
2095
+ article_title,
2096
+ category_id,
2097
+ url,
2098
+ cookie_id,
2099
+ ga_client_id,
2168
2100
  ]);
2169
- const impressionSubscriptionBox = React.useCallback((type) => {
2101
+ const impression = React.useCallback((type) => {
2102
+ const gaCookie = miscCookieHelper.getCookie('_ga') || null;
2170
2103
  const impression = {
2171
2104
  subscription_title: subscriptionInfo.subscriptionTitle,
2172
2105
  name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
2173
2106
  area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
2174
2107
  phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
2175
- site_domain: siteDomain,
2108
+ site_domain: constantsDomainLocales.domainLocales[locale],
2176
2109
  url: location.href.toLowerCase(),
2177
2110
  cookie_id: miscCookieHelper.getCookie('hhg-id'),
2178
- ga_client_id: miscCookieHelper.getCookie('_ga') || null,
2179
- article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
2180
- article_id: articleId,
2181
- category_id: categoryId,
2182
- category_name: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name) || '',
2111
+ ga_client_id: gaCookie,
2112
+ article_title,
2113
+ article_id,
2114
+ category_id,
2115
+ category_name,
2183
2116
  type,
2184
2117
  };
2185
2118
  return Service.trackingSubscription(impression);
2186
2119
  }, [
2187
- articleId,
2120
+ campaign_id,
2121
+ url,
2122
+ article_title,
2123
+ cookie_id,
2124
+ ga_client_id,
2188
2125
  categoryId,
2126
+ article_id,
2189
2127
  subscriptionInfo.subscriptionTitle,
2190
- extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
2191
2128
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
2192
2129
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
2193
2130
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
2194
2131
  ]);
2195
2132
  React.useEffect(() => {
2196
- /** Force Campaign */
2197
2133
  if (forceCampaignProps) {
2198
2134
  setForceCampaign(formatCampaignDetail(forceCampaignProps));
2199
- setRawForceCampaign(forceCampaignProps);
2200
2135
  return;
2201
2136
  }
2202
2137
  /** For Subscription Box */
2203
2138
  if (categoryId) {
2204
2139
  Service.getSubscriptionBoxInfo({
2205
2140
  category: categoryId,
2206
- site: siteDomain,
2141
+ site: site_domain,
2207
2142
  slug: location === null || location === void 0 ? void 0 : location.pathname,
2208
2143
  }).then((res) => {
2209
2144
  const { _data } = res || {};
@@ -2336,39 +2271,10 @@ const LeadGenContextProvider = (props) => {
2336
2271
  });
2337
2272
  return;
2338
2273
  }
2339
- if (campaignCodeProps) {
2340
- Service.getCampaignByCode(campaignCodeProps).then((res) => {
2341
- const { _data } = res || {};
2342
- const { campaigns } = _data || {};
2343
- LeadLog('** LeadGen Campaign : ', campaigns);
2344
- setForceCampaign(formatCampaignDetail(campaigns));
2345
- setRawForceCampaign(campaigns);
2346
- });
2347
- return;
2348
- }
2349
- // /** For LeadGen */
2350
- // if (!leadStore.campaigns?.length) {
2351
- // checkShowPopup({
2352
- // leadApi: apiLeadUrl,
2353
- // leadDomain: siteDomain,
2354
- // leadSiteId: siteId,
2355
- // onShowPopup(campaign: any, action: string) {
2356
- // console.log('** RYAN LeadGenContext.tsx 421 action : ', action)
2357
- // setForceCampaign(formatCampaignDetail(campaign))
2358
- // setRawForceCampaign(campaign)
2359
- // },
2360
- // DEBUG_URL,
2361
- // })
2274
+ // if (campaignCodeProps) {
2275
+ // fetchCampaign(campaignCodeProps)
2362
2276
  // }
2363
- }, [
2364
- forceCampaignProps,
2365
- campaignCodeProps,
2366
- categoryId,
2367
- siteId,
2368
- siteDomain,
2369
- apiLeadUrl,
2370
- DEBUG_URL,
2371
- ]);
2277
+ }, [forceCampaignProps, campaignCodeProps, categoryId]);
2372
2278
  React.useEffect(() => {
2373
2279
  leadStore.apiSsoUrl = apiSsoUrl;
2374
2280
  leadStore.apiLeadUrl = apiLeadUrl;
@@ -2381,14 +2287,10 @@ const LeadGenContextProvider = (props) => {
2381
2287
  apiLeadUrl,
2382
2288
  apiSubotUrl, locale: localeProps, extraValues,
2383
2289
  articleId,
2384
- categoryId,
2385
- siteDomain,
2386
- forceCampaign,
2387
- rawForceCampaign,
2388
- onSubmit,
2389
- onImpression,
2290
+ categoryId, siteDomain: site_domain, forceCampaign,
2291
+ submit,
2390
2292
  submitSubscriptionBox,
2391
- impressionSubscriptionBox }) },
2293
+ impression }) },
2392
2294
  React__default["default"].createElement(LeadGenTranslationProvider, { locale: locale }, children)));
2393
2295
  };
2394
2296
  const useLeadGenContext = () => {
@@ -3401,7 +3303,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3401
3303
  const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
3402
3304
  const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
3403
3305
  const { submitBlock } = actionBlocks || {};
3404
- const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impressionSubscriptionBox, } = useLeadGenContext();
3306
+ const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impression, } = useLeadGenContext();
3405
3307
  const { t } = index$1.useTranslations();
3406
3308
  const { action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
3407
3309
  const [loading, setLoading] = React.useState(false);
@@ -3461,7 +3363,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3461
3363
  const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
3462
3364
  const [res] = yield Promise.all([
3463
3365
  submitSubscriptionBox(reqValues),
3464
- impressionSubscriptionBox('submit_form'),
3366
+ impression('submit_form'),
3465
3367
  ]);
3466
3368
  const { _data } = res || {};
3467
3369
  const { model } = _data || {};
@@ -3507,7 +3409,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3507
3409
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
3508
3410
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
3509
3411
  ]);
3510
- return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impressionSubscriptionBox('impression') },
3412
+ return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impression('impression') },
3511
3413
  React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
3512
3414
  showThankyou && (React__default["default"].createElement(LeadGenThankYou, { image: Object.assign(Object.assign({}, thankyouImage), { src: thankyouImage.src || `${apiLeadUrl}admin/img/thanksyou.png` }), title: thankyouTitle, description: thankyouDescription, button: thankyouButton })),
3513
3415
  !showThankyou && (React__default["default"].createElement(LeadGenSubscriptionBoxA, { loading: loading, image: subscriptionIcon || image, title: subscription_title, submitText: (_c = submitBlock === null || submitBlock === void 0 ? void 0 : submitBlock.data) === null || _c === void 0 ? void 0 : _c.value, blocks: listBlockAdded, locale: locale, form: form, rules: validateObj, onFinish: middlewareOnSubmit })))));
@@ -4242,7 +4144,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
4242
4144
  React__default["default"].createElement(index$4.Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
4243
4145
  };
4244
4146
 
4245
- const InlineLayout = ({ flatComponent, content, inlinePosition, doImpression, }) => {
4147
+ const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
4246
4148
  const target = React.useMemo(() => {
4247
4149
  if (!inlinePosition)
4248
4150
  return null;
@@ -4347,9 +4249,6 @@ const InlineLayout = ({ flatComponent, content, inlinePosition, doImpression, })
4347
4249
  }
4348
4250
  }
4349
4251
  }, [inlinePosition]);
4350
- if (!!flatComponent) {
4351
- return (React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content));
4352
- }
4353
4252
  if (!inlinePosition || !target)
4354
4253
  return null;
4355
4254
  return ReactDOM.createPortal(React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content), target);
@@ -5105,7 +5004,7 @@ const LEADGEN_SHOW_HEADER = [
5105
5004
  ];
5106
5005
  // const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
5107
5006
  const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
5108
- const LightboxLayout = ({ flatComponent, popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
5007
+ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
5109
5008
  var _a, _b;
5110
5009
  const { primaryColor } = React.useContext(LeadGenContext$1);
5111
5010
  const { isMobile } = index$b.useScreenSize();
@@ -5505,7 +5404,7 @@ const LightboxLayout = ({ flatComponent, popupId, extraFields, onClose: onCloseP
5505
5404
  return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
5506
5405
  }
5507
5406
  else if (isInline) {
5508
- return (React__default["default"].createElement(InlineLayout, { flatComponent: flatComponent, action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
5407
+ return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
5509
5408
  }
5510
5409
  return null;
5511
5410
  };
@@ -5598,7 +5497,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
5598
5497
  return null;
5599
5498
  }
5600
5499
  }
5601
- const NewLeadPopup = ({ flatComponent, campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
5500
+ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
5602
5501
  var _a, _b;
5603
5502
  const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
5604
5503
  const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
@@ -5701,7 +5600,7 @@ const NewLeadPopup = ({ flatComponent, campaign, action, onSubmit, onClose, onUn
5701
5600
  currentLayout == 'Fullscreen' ||
5702
5601
  currentLayout == 'Sidebar' ||
5703
5602
  currentLayout == 'Slider') {
5704
- return (React__default["default"].createElement(LightboxLayout, { flatComponent: flatComponent, popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
5603
+ return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
5705
5604
  }
5706
5605
  else if (currentLayout.includes('Skin')) {
5707
5606
  return (React__default["default"].createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
@@ -5793,7 +5692,7 @@ const formatTrackingData = (params) => {
5793
5692
  };
5794
5693
 
5795
5694
  // mount css
5796
- const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, flatComponent, }) => {
5695
+ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, }) => {
5797
5696
  var _a, _b;
5798
5697
  const theme = core.useMantineTheme();
5799
5698
  console.log({ theme });
@@ -6135,7 +6034,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
6135
6034
  !!currentLayout &&
6136
6035
  !currentLayout.includes('Inline') &&
6137
6036
  !currentLayout.includes('Sidebar') && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
6138
- React__default["default"].createElement(NewLeadPopup, { flatComponent: flatComponent, campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
6037
+ React__default["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 })))));
6139
6038
  }))))))));
6140
6039
  };
6141
6040
  const LeadGen = _LeadGen;
@@ -6147,6 +6046,4 @@ LeadGen.OtpForm = OtpBlock$1;
6147
6046
  LeadGen.Close = Close.Close;
6148
6047
 
6149
6048
  exports.LeadGen = LeadGen;
6150
- exports.LeadGenInline = LeadGenInline;
6151
6049
  exports.LeadGenSubscriptionBox = LeadGenSubscriptionBox;
6152
- exports.leadGenInlineGetCampaign = leadGenInlineGetCampaign;