@hhgtech/hhg-components 1.29.411 → 1.29.412-beta-2

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 (513) hide show
  1. package/build/{InputDate-e4e90f85.js → InputDate-ed79b015.js} +3 -3
  2. package/build/{LastPeriod-74ff4403.js → LastPeriod-42816b8b.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-04839fbc.js → MobileBottomNavigationIcon-8619c39e.js} +3 -3
  4. package/build/{Spinner-b87681f5.js → Spinner-0a0906dc.js} +1 -1
  5. package/build/{WhatsApp-24ce5167.js → WhatsApp-edbf66f7.js} +1 -1
  6. package/build/adapters.js +19 -19
  7. package/build/atoms.js +48 -48
  8. package/build/babyGrowth.js +83 -83
  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/navigationV2/components/atoms/searchInput/index.d.ts +1 -0
  14. package/build/components/navigationV2/index.d.ts +2 -1
  15. package/build/components.js +97 -97
  16. package/build/{constants-5c84ab9f.js → constants-0aaecc73.js} +1 -1
  17. package/build/constants.js +3 -3
  18. package/build/constantsDomainLocales.js +1 -1
  19. package/build/constantsRiskScreener.js +2 -2
  20. package/build/constantsSite.js +2 -2
  21. package/build/{core-bbf77e50.js → core-3c79cf8b.js} +1 -1
  22. package/build/{dataTransform-fe77e544.js → dataTransform-ca295670.js} +1 -1
  23. package/build/ecom.js +4 -4
  24. package/build/{editor-3e0ebcbc.js → editor-678d906b.js} +11 -11
  25. package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
  26. package/build/embeddedHeathToolCards_babyPoop.js +19 -19
  27. package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
  28. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
  29. package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
  30. package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  31. package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  32. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
  33. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
  34. package/build/esm/{InputDate-8e83c671.js → InputDate-0bbec559.js} +3 -3
  35. package/build/esm/{LastPeriod-6f10a30a.js → LastPeriod-3dd9d643.js} +1 -1
  36. package/build/esm/{MobileBottomNavigationIcon-756994f7.js → MobileBottomNavigationIcon-20ec3809.js} +3 -3
  37. package/build/esm/{Spinner-0875f549.js → Spinner-240948a1.js} +1 -1
  38. package/build/esm/{WhatsApp-5572e0e0.js → WhatsApp-1d0093d1.js} +1 -1
  39. package/build/esm/adapters.js +19 -19
  40. package/build/esm/atoms.js +48 -48
  41. package/build/esm/babyGrowth.js +83 -83
  42. package/build/esm/cache.js +2 -2
  43. package/build/esm/care.js +17 -17
  44. package/build/esm/careBookingSearchBar.js +14 -14
  45. package/build/esm/careBookingSearchBarV2.js +15 -15
  46. package/build/esm/components/navigationV2/components/atoms/searchInput/index.d.ts +1 -0
  47. package/build/esm/components/navigationV2/index.d.ts +2 -1
  48. package/build/esm/components.js +97 -97
  49. package/build/esm/{constants-3220826e.js → constants-22bf5acc.js} +1 -1
  50. package/build/esm/constants.js +3 -3
  51. package/build/esm/constantsDomainLocales.js +1 -1
  52. package/build/esm/constantsRiskScreener.js +2 -2
  53. package/build/esm/constantsSite.js +2 -2
  54. package/build/esm/{core-4a625e8e.js → core-6ab12e45.js} +1 -1
  55. package/build/esm/{dataTransform-150a8653.js → dataTransform-387ab1df.js} +1 -1
  56. package/build/esm/ecom.js +4 -4
  57. package/build/esm/{editor-8b7e162c.js → editor-93f4cca9.js} +11 -11
  58. package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
  59. package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
  60. package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
  61. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
  62. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
  63. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  64. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  65. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
  66. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
  67. package/build/esm/footer.js +21 -21
  68. package/build/esm/gAssets.js +2 -2
  69. package/build/esm/{healthTools-b5e819d8.js → healthTools-a6938099.js} +1 -1
  70. package/build/esm/healthToolsCardWrapper.js +18 -18
  71. package/build/esm/healthToolsForm.js +33 -33
  72. package/build/esm/hooks.js +13 -13
  73. package/build/esm/i18n.js +2 -2
  74. package/build/esm/i18nV2.js +2 -2
  75. package/build/esm/{index-e502a6b5.js → index-0061ed46.js} +2 -2
  76. package/build/esm/{index-97a7cdc0.js → index-01add604.js} +1 -1
  77. package/build/esm/{index-d5e895ad.js → index-07b00729.js} +16 -16
  78. package/build/esm/{index-d1c22940.js → index-09f17ac2.js} +3 -3
  79. package/build/esm/{index-0f411182.js → index-1293880c.js} +17 -17
  80. package/build/esm/{index-f1fa454f.js → index-18509ee4.js} +16 -16
  81. package/build/esm/{index-2c656823.js → index-193f73db.js} +24 -24
  82. package/build/esm/{index-0f5a1bcf.js → index-24ff1b39.js} +16 -16
  83. package/build/esm/{index-223679b2.js → index-25a90043.js} +2 -2
  84. package/build/esm/{index-c8ed6cc5.js → index-31c505ff.js} +2 -2
  85. package/build/esm/{index-70b78475.js → index-323122ff.js} +2 -2
  86. package/build/esm/{index-9a532d03.js → index-3293b6d7.js} +4 -4
  87. package/build/esm/{index-123576f7.js → index-3a63c163.js} +13 -13
  88. package/build/esm/{index-3d3699e7.js → index-3d6fe6ea.js} +145 -136
  89. package/build/esm/{index-0860bccb.js → index-40eaa481.js} +2 -2
  90. package/build/esm/{index-62fbdf6b.js → index-40ed5b08.js} +10 -10
  91. package/build/esm/{index-d0a80cba.js → index-43b49421.js} +1 -1
  92. package/build/esm/{index-1619d1a5.js → index-457d76c7.js} +3 -3
  93. package/build/esm/{index-d58464d2.js → index-46576e24.js} +2 -2
  94. package/build/esm/{index-0fedc2dc.js → index-49547dd9.js} +6 -6
  95. package/build/esm/{index-34947503.js → index-4e1b366e.js} +2 -2
  96. package/build/esm/{index-a389f82a.js → index-505bf495.js} +3 -3
  97. package/build/esm/{index-44d19256.js → index-552328f5.js} +6 -6
  98. package/build/esm/{index-970e7687.js → index-57832acf.js} +6 -6
  99. package/build/esm/{index-6ff85c8f.js → index-5786325f.js} +2 -2
  100. package/build/esm/{index-b2ed79bd.js → index-651960be.js} +17 -17
  101. package/build/esm/{index-aa16537e.js → index-6c1d5e44.js} +13 -13
  102. package/build/esm/{index-a60848dc.js → index-6e6d1bb0.js} +31 -31
  103. package/build/esm/{index-55ac1c18.js → index-6f3f14b8.js} +2 -2
  104. package/build/esm/{index-449db7b6.js → index-70883c59.js} +5 -5
  105. package/build/esm/{index-379aecb1.js → index-71dd6c95.js} +17 -17
  106. package/build/esm/{index-c39fb9e9.js → index-73be0d60.js} +5 -5
  107. package/build/esm/{index-076307f1.js → index-7bc4f0c5.js} +11 -11
  108. package/build/esm/{index-d6c75838.js → index-7d2dae6f.js} +7 -7
  109. package/build/esm/{index-45f08c05.js → index-7e81d925.js} +15 -15
  110. package/build/esm/{index-48859499.js → index-84262003.js} +106 -106
  111. package/build/esm/{index-2636bf75.js → index-8866edcb.js} +32 -32
  112. package/build/esm/{index-78923559.js → index-98411bb0.js} +6 -6
  113. package/build/esm/{index-e8244d4d.js → index-998bba67.js} +7 -7
  114. package/build/esm/{index-e8dc7545.js → index-9c2fb6cc.js} +2 -2
  115. package/build/esm/{index-0a2a5433.js → index-9fff2952.js} +2 -2
  116. package/build/esm/{index-666fcbe7.js → index-a0e9affe.js} +18 -18
  117. package/build/esm/{index-57967e14.js → index-a2cc229f.js} +1 -1
  118. package/build/esm/{index-55d078f5.js → index-a2d6d225.js} +4 -4
  119. package/build/esm/{index-baf1d5dc.js → index-ac5c3e73.js} +1 -1
  120. package/build/esm/{index-4824b835.js → index-ad67e887.js} +2 -2
  121. package/build/esm/{index-b08c7a4d.js → index-adeaf5df.js} +25 -25
  122. package/build/esm/{index-2a28185d.js → index-ae969513.js} +1 -1
  123. package/build/esm/{index-a71ffc99.js → index-af45a977.js} +18 -18
  124. package/build/esm/{index-4f3486bb.js → index-bc04fec2.js} +6 -6
  125. package/build/esm/{index-49162ec0.js → index-bf147454.js} +1 -1
  126. package/build/esm/{index-6066a12e.js → index-bff29283.js} +1 -1
  127. package/build/esm/{index-5fa8194f.js → index-c9d5f51d.js} +13 -13
  128. package/build/esm/{index-67a0f278.js → index-cbc20386.js} +22 -22
  129. package/build/esm/{index-3bc901ec.js → index-d5e632ad.js} +21 -21
  130. package/build/esm/{index-6df4228a.js → index-d8ae332d.js} +3 -3
  131. package/build/esm/{index-66c3f472.js → index-e0d12d52.js} +2 -2
  132. package/build/esm/{index-8786e237.js → index-e6f48688.js} +16 -16
  133. package/build/esm/{index-5a1dcdb4.js → index-ea97eb49.js} +3 -3
  134. package/build/esm/{index-ccebd981.js → index-eb01d17e.js} +1 -1
  135. package/build/esm/{index-490f65c9.js → index-ee85c770.js} +2 -2
  136. package/build/esm/{index-79d03a1b.js → index-f4c0a637.js} +1 -1
  137. package/build/esm/{index-e195207d.js → index-f7dcf2b7.js} +17 -17
  138. package/build/esm/{index-4de7ed4b.js → index-fa4ece5a.js} +3 -3
  139. package/build/esm/{index-027e2396.js → index-fb80c0d3.js} +13 -13
  140. package/build/esm/index.js +118 -118
  141. package/build/esm/{labelSorting-95cedd6f.js → labelSorting-d32e85e1.js} +4 -4
  142. package/build/esm/lead/LeadGen.helpers.d.ts +2 -2
  143. package/build/esm/lead/LeadGen.type.d.ts +3 -0
  144. package/build/esm/lead/LeadGenInline/LeadGenInline.d.ts +8 -0
  145. package/build/esm/lead/LeadGenInline/index.d.ts +2 -0
  146. package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +19 -12
  147. package/build/esm/lead/index.d.ts +5 -1
  148. package/build/esm/lead/layouts/inline.d.ts +3 -2
  149. package/build/esm/lead/layouts/lightbox/index.d.ts +2 -1
  150. package/build/esm/lead/newLeadPopup.d.ts +2 -1
  151. package/build/esm/lead/services/index.d.ts +4 -0
  152. package/build/esm/lead/services/index.type.d.ts +5 -0
  153. package/build/esm/lead/utils.d.ts +18 -0
  154. package/build/esm/lead.css +1 -1
  155. package/build/esm/lead.js +413 -309
  156. package/build/esm/{logoIcon-de126466.js → logoIcon-bf16bc9e.js} +2 -2
  157. package/build/esm/mantine.js +25 -25
  158. package/build/esm/misc/cachedSystem.d.ts +5 -0
  159. package/build/esm/misc.js +17 -17
  160. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  161. package/build/esm/miscGetSocialList.js +8 -8
  162. package/build/esm/miscScreenSizeContext.js +1 -1
  163. package/build/esm/mobileBottomNavigation.js +5 -5
  164. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  165. package/build/esm/molecules.js +74 -74
  166. package/build/esm/moleculesArticleCard.js +6 -6
  167. package/build/esm/moleculesArticleCardV2.js +16 -16
  168. package/build/esm/navigation.js +48 -48
  169. package/build/esm/navigationLogoutPopup.js +9 -9
  170. package/build/esm/navigationProfileButton.js +26 -26
  171. package/build/esm/onboardingV2.js +29 -29
  172. package/build/esm/organisms.js +50 -50
  173. package/build/esm/{post-e1298e96.js → post-a4c5a627.js} +2 -2
  174. package/build/esm/profileNavigation.js +19 -19
  175. package/build/esm/progressBar.js +1 -1
  176. package/build/esm/pwg.js +22 -22
  177. package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
  178. package/build/esm/ssoV2.js +52 -40
  179. package/build/esm/{store-e75fb3cf.js → store-d6c8b226.js} +3 -3
  180. package/build/esm/subot.js +36 -36
  181. package/build/esm/surveyOrPremiumBanner.js +33 -33
  182. package/build/esm/surveyQuestionCard.js +10 -10
  183. package/build/esm/{surveyThankyouCard-cc8c7962.js → surveyThankyouCard-fe8a9feb.js} +5 -5
  184. package/build/esm/together.js +56 -56
  185. package/build/esm/togetherApiUtils.js +4 -4
  186. package/build/esm/togetherAtoms.js +30 -30
  187. package/build/esm/togetherComponentGlobalContext.js +4 -4
  188. package/build/esm/togetherMolecules.js +51 -51
  189. package/build/esm/togetherMoleculesCardAuthor.js +28 -28
  190. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  191. package/build/esm/togetherMoleculesProfileDetail.js +39 -39
  192. package/build/esm/togetherOrganisms.js +50 -50
  193. package/build/esm/togetherRichTextEditor.js +17 -17
  194. package/build/esm/togetherShareBox.js +10 -10
  195. package/build/esm/{translationsProvider-a5f9639b.js → translationsProvider-e069443f.js} +1 -1
  196. package/build/esm/{treePopoverMenu-81f6bffa.js → treePopoverMenu-bfdf959e.js} +19 -19
  197. package/build/esm/{types-f795d27d.js → types-69c5efb6.js} +2 -2
  198. package/build/esm/types.js +2 -2
  199. package/build/esm/{useCategory-a72bfc82.js → useCategory-f873a41b.js} +5 -5
  200. package/build/esm/{useHealthToolCache-a3fecd60.js → useHealthToolCache-991d03b0.js} +1 -1
  201. package/build/esm/{useMantineLocale-572c08b8.js → useMantineLocale-67d4f2b9.js} +6 -6
  202. package/build/esm/{usePlacesAutocomplete-b4445b4f.js → usePlacesAutocomplete-9317e0ff.js} +1 -1
  203. package/build/esm/{useScreenSize-b88cb8e8.js → useScreenSize-4385d138.js} +2 -2
  204. package/build/esm/useTogetherAuthRequiredAction.js +10 -10
  205. package/build/esm/{utils-9fbfea6f.js → utils-4f20ccfb.js} +3 -3
  206. package/build/esm/{utils-90396b9d.js → utils-7af182bc.js} +2 -2
  207. package/build/esm/{utils-d35af81f.js → utils-ad82bf19.js} +5 -5
  208. package/build/esm/{utils-9dc9a220.js → utils-b2e5e5ad.js} +2 -2
  209. package/build/esm/vaccination.js +21 -21
  210. package/build/footer.js +21 -21
  211. package/build/gAssets.js +2 -2
  212. package/build/{healthTools-b2cc182b.js → healthTools-a92bd8b2.js} +1 -1
  213. package/build/healthToolsCardWrapper.js +18 -18
  214. package/build/healthToolsForm.js +33 -33
  215. package/build/hooks.js +13 -13
  216. package/build/i18n.js +2 -2
  217. package/build/i18nV2.js +1 -1
  218. package/build/{index-1008420d.js → index-00ffa650.js} +1 -1
  219. package/build/{index-5a7b040b.js → index-01000f4b.js} +2 -2
  220. package/build/{index-25a66e5f.js → index-05199167.js} +1 -1
  221. package/build/{index-418ba164.js → index-0a71128d.js} +17 -17
  222. package/build/{index-2eab3c59.js → index-0c06baa2.js} +3 -3
  223. package/build/{index-3fc8d95b.js → index-0c1ca66b.js} +24 -24
  224. package/build/{index-a42fcf53.js → index-0e2e9008.js} +16 -16
  225. package/build/{index-e55cedf4.js → index-12cc92e9.js} +1 -1
  226. package/build/{index-df8df3f3.js → index-13cd06ea.js} +2 -2
  227. package/build/{index-077e1cd9.js → index-176486c9.js} +16 -16
  228. package/build/{index-3d352fc3.js → index-19b0b4b8.js} +17 -17
  229. package/build/{index-a3dfd6bd.js → index-213df21d.js} +17 -17
  230. package/build/{index-9de51a83.js → index-256fe4f5.js} +16 -16
  231. package/build/{index-dd0d3d44.js → index-3a2acb2b.js} +3 -3
  232. package/build/{index-517edd90.js → index-3d895c07.js} +18 -18
  233. package/build/{index-d641ed56.js → index-3dddfe93.js} +13 -13
  234. package/build/{index-d0dea1a9.js → index-410b848b.js} +7 -7
  235. package/build/{index-26fcbff2.js → index-514e4159.js} +16 -16
  236. package/build/{index-404d7f7f.js → index-57c64d51.js} +6 -6
  237. package/build/{index-b6626a57.js → index-5a7bdf69.js} +2 -2
  238. package/build/{index-5c6c317d.js → index-5c730c6b.js} +10 -10
  239. package/build/{index-fdfc0480.js → index-5d53ab0d.js} +6 -6
  240. package/build/{index-d1d6e311.js → index-609cb1a5.js} +6 -6
  241. package/build/{index-46af9def.js → index-739a497b.js} +2 -2
  242. package/build/{index-8f2889b3.js → index-768587ff.js} +105 -105
  243. package/build/{index-92ecbcd7.js → index-775b5a8c.js} +2 -2
  244. package/build/{index-3767af08.js → index-7c8d88f3.js} +1 -1
  245. package/build/{index-4edb3958.js → index-83340a9a.js} +2 -2
  246. package/build/{index-edf4e2b3.js → index-871bf383.js} +11 -11
  247. package/build/{index-97d6040f.js → index-8a2f123e.js} +4 -4
  248. package/build/{index-4ef6beb2.js → index-8b43b3c7.js} +3 -3
  249. package/build/{index-5ff1f039.js → index-8cd6aa6b.js} +1 -1
  250. package/build/{index-52857c2e.js → index-8fb6f679.js} +5 -5
  251. package/build/{index-5b7f0734.js → index-996f8d94.js} +2 -2
  252. package/build/{index-3a2005aa.js → index-9c0b2dfe.js} +22 -22
  253. package/build/{index-2f6f1072.js → index-a4ff28b4.js} +6 -6
  254. package/build/{index-fb28307b.js → index-a5edd727.js} +32 -32
  255. package/build/{index-1cc983bc.js → index-aaf7d20f.js} +2 -2
  256. package/build/{index-61054438.js → index-ac11f7ce.js} +18 -18
  257. package/build/{index-10dbeb20.js → index-afafc12f.js} +21 -21
  258. package/build/{index-1d5d83a7.js → index-b41934c6.js} +7 -7
  259. package/build/{index-6b0dfbda.js → index-b421ebe7.js} +13 -13
  260. package/build/{index-e783827f.js → index-bd53408d.js} +3 -3
  261. package/build/{index-eb89f025.js → index-becae264.js} +2 -2
  262. package/build/{index-c75be869.js → index-c5630247.js} +6 -6
  263. package/build/{index-580d1185.js → index-c750e792.js} +1 -1
  264. package/build/{index-37e7e79d.js → index-c957b7d7.js} +13 -13
  265. package/build/{index-e7fe85a8.js → index-c96695aa.js} +15 -15
  266. package/build/{index-f9facafe.js → index-ca3f0ba8.js} +31 -31
  267. package/build/{index-e1c8db4a.js → index-d7fdb813.js} +5 -5
  268. package/build/{index-575b00cb.js → index-d8dbfd8f.js} +25 -25
  269. package/build/{index-bf00c47a.js → index-db76af5d.js} +2 -2
  270. package/build/{index-c19c34f9.js → index-dbb1f91e.js} +1 -1
  271. package/build/{index-4fc88401.js → index-dc5ced87.js} +2 -2
  272. package/build/{index-cfa5a340.js → index-e029c70d.js} +4 -4
  273. package/build/{index-1b64fe74.js → index-e1336821.js} +2 -2
  274. package/build/{index-95c85663.js → index-e787aa67.js} +2 -2
  275. package/build/{index-3147fb59.js → index-e8e77e72.js} +17 -17
  276. package/build/{index-998ca905.js → index-e9125e2f.js} +222 -212
  277. package/build/{index-e367d8db.js → index-ec6df9a6.js} +2 -2
  278. package/build/{index-171ad8f9.js → index-eca3fc01.js} +1 -1
  279. package/build/{index-3b5ae660.js → index-ee0fc7a1.js} +13 -13
  280. package/build/{index-add168a9.js → index-eef792eb.js} +3 -3
  281. package/build/{index-ed198068.js → index-f17a3d3c.js} +1 -1
  282. package/build/{index-d22a4582.js → index-f90805e0.js} +3 -3
  283. package/build/index.js +118 -118
  284. package/build/{labelSorting-ac146fd1.js → labelSorting-ba40954c.js} +4 -4
  285. package/build/lead/LeadGen.helpers.d.ts +2 -2
  286. package/build/lead/LeadGen.type.d.ts +3 -0
  287. package/build/lead/LeadGenInline/LeadGenInline.d.ts +8 -0
  288. package/build/lead/LeadGenInline/index.d.ts +2 -0
  289. package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +19 -12
  290. package/build/lead/index.d.ts +5 -1
  291. package/build/lead/layouts/inline.d.ts +3 -2
  292. package/build/lead/layouts/lightbox/index.d.ts +2 -1
  293. package/build/lead/newLeadPopup.d.ts +2 -1
  294. package/build/lead/services/index.d.ts +4 -0
  295. package/build/lead/services/index.type.d.ts +5 -0
  296. package/build/lead/utils.d.ts +18 -0
  297. package/build/lead.css +1 -1
  298. package/build/lead.js +413 -307
  299. package/build/{logoIcon-7ed5fe74.js → logoIcon-839ec647.js} +2 -2
  300. package/build/mantine.js +22 -22
  301. package/build/misc/cachedSystem.d.ts +5 -0
  302. package/build/misc.js +17 -17
  303. package/build/miscGetDynamicHealthTool.js +4 -4
  304. package/build/miscGetSocialList.js +8 -8
  305. package/build/miscScreenSizeContext.js +1 -1
  306. package/build/mobileBottomNavigation.js +5 -5
  307. package/build/mobileBottomNavigationIcon.js +5 -5
  308. package/build/molecules.js +74 -74
  309. package/build/moleculesArticleCard.js +6 -6
  310. package/build/moleculesArticleCardV2.js +16 -16
  311. package/build/navigation.js +49 -48
  312. package/build/navigationLogoutPopup.js +9 -9
  313. package/build/navigationProfileButton.js +26 -26
  314. package/build/onboardingV2.js +28 -28
  315. package/build/organisms.js +50 -50
  316. package/build/{post-d25c4a01.js → post-ad9d4cd8.js} +2 -2
  317. package/build/profileNavigation.js +19 -19
  318. package/build/progressBar.js +1 -1
  319. package/build/pwg.js +22 -22
  320. package/build/ssoV2/api/featureFlag.d.ts +2 -1
  321. package/build/ssoV2.js +50 -38
  322. package/build/{store-a297f047.js → store-e15ac771.js} +3 -3
  323. package/build/subot.js +35 -35
  324. package/build/surveyOrPremiumBanner.js +33 -33
  325. package/build/surveyQuestionCard.js +10 -10
  326. package/build/{surveyThankyouCard-139a765c.js → surveyThankyouCard-9fd2e394.js} +5 -5
  327. package/build/together.js +56 -56
  328. package/build/togetherApiUtils.js +4 -4
  329. package/build/togetherAtoms.js +30 -30
  330. package/build/togetherComponentGlobalContext.js +4 -4
  331. package/build/togetherMolecules.js +51 -51
  332. package/build/togetherMoleculesCardAuthor.js +28 -28
  333. package/build/togetherMoleculesPostImagePreview.js +11 -11
  334. package/build/togetherMoleculesProfileDetail.js +39 -39
  335. package/build/togetherOrganisms.js +50 -50
  336. package/build/togetherRichTextEditor.js +17 -17
  337. package/build/togetherShareBox.js +10 -10
  338. package/build/{translationsProvider-0f656d0b.js → translationsProvider-9e02aca0.js} +1 -1
  339. package/build/{treePopoverMenu-72ed51e3.js → treePopoverMenu-3039725f.js} +19 -19
  340. package/build/{types-d8dcb067.js → types-e1d556ba.js} +2 -2
  341. package/build/types.js +2 -2
  342. package/build/{useCategory-d9b732f5.js → useCategory-84daabf6.js} +5 -5
  343. package/build/{useHealthToolCache-e2d64e98.js → useHealthToolCache-dc226c20.js} +1 -1
  344. package/build/{useMantineLocale-ba80f594.js → useMantineLocale-41665618.js} +6 -6
  345. package/build/{usePlacesAutocomplete-3b7b5088.js → usePlacesAutocomplete-1fdd7997.js} +1 -1
  346. package/build/{useScreenSize-12d02c34.js → useScreenSize-903a492c.js} +2 -2
  347. package/build/useTogetherAuthRequiredAction.js +10 -10
  348. package/build/{utils-0a8f7676.js → utils-7ea786dd.js} +3 -3
  349. package/build/{utils-43c8c1cc.js → utils-a3659307.js} +2 -2
  350. package/build/{utils-51f5a5b1.js → utils-c700f985.js} +2 -2
  351. package/build/{utils-850b757b.js → utils-c91e08b4.js} +5 -5
  352. package/build/vaccination.js +21 -21
  353. package/package.json +1 -1
  354. /package/build/{BMI_BOYS.percentile.monthly-0b7d9697.js → BMI_BOYS.percentile.monthly-74992e75.js} +0 -0
  355. /package/build/{BMI_BOYS.percentile.weekly-2cb57ee8.js → BMI_BOYS.percentile.weekly-582ef7a6.js} +0 -0
  356. /package/build/{BMI_BOYS.percentile.yearly-f569a1b2.js → BMI_BOYS.percentile.yearly-460165ca.js} +0 -0
  357. /package/build/{BMI_BOYS.zscore.monthly-a82e1f15.js → BMI_BOYS.zscore.monthly-a01bcf2d.js} +0 -0
  358. /package/build/{BMI_BOYS.zscore.weekly-166db77a.js → BMI_BOYS.zscore.weekly-de430b2a.js} +0 -0
  359. /package/build/{BMI_BOYS.zscore.yearly-4ab9256a.js → BMI_BOYS.zscore.yearly-b0bc4bdf.js} +0 -0
  360. /package/build/{BMI_GIRLS.percentile.monthly-b93b31ee.js → BMI_GIRLS.percentile.monthly-55ae7f36.js} +0 -0
  361. /package/build/{BMI_GIRLS.percentile.weekly-37ca8d0e.js → BMI_GIRLS.percentile.weekly-98c30f99.js} +0 -0
  362. /package/build/{BMI_GIRLS.percentile.yearly-944f186e.js → BMI_GIRLS.percentile.yearly-1b06aacd.js} +0 -0
  363. /package/build/{BMI_GIRLS.zscore.monthly-d59b27cc.js → BMI_GIRLS.zscore.monthly-5ce4888b.js} +0 -0
  364. /package/build/{BMI_GIRLS.zscore.weekly-bfdddc98.js → BMI_GIRLS.zscore.weekly-dddf08f7.js} +0 -0
  365. /package/build/{BMI_GIRLS.zscore.yearly-6db3f48a.js → BMI_GIRLS.zscore.yearly-08731830.js} +0 -0
  366. /package/build/{ChevronDown-e4fab9f7.js → ChevronDown-f9205b1d.js} +0 -0
  367. /package/build/{Close-ee6dddff.js → Close-59b9c491.js} +0 -0
  368. /package/build/{Google-5c0305bc.js → Google-89065f38.js} +0 -0
  369. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-36582288.js → HEAD CIRCUM_BOYS.percentile.monthly-2790e28c.js} +0 -0
  370. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-8fed48ee.js → HEAD CIRCUM_BOYS.percentile.weekly-19ce6a75.js} +0 -0
  371. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-b612f439.js → HEAD CIRCUM_BOYS.percentile.yearly-c98aa498.js} +0 -0
  372. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-2ea4f849.js → HEAD CIRCUM_BOYS.zscore.monthly-352ae196.js} +0 -0
  373. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c097f1e7.js → HEAD CIRCUM_BOYS.zscore.weekly-2c9ee27d.js} +0 -0
  374. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-ca6d05be.js → HEAD CIRCUM_BOYS.zscore.yearly-e6f6fffb.js} +0 -0
  375. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-8d3ec039.js → HEAD CIRCUM_GIRLS.percentile.monthly-ddba165a.js} +0 -0
  376. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-045364f9.js → HEAD CIRCUM_GIRLS.percentile.weekly-1264b883.js} +0 -0
  377. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-b086a4dc.js → HEAD CIRCUM_GIRLS.percentile.yearly-83ab5bca.js} +0 -0
  378. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-8a5e608e.js → HEAD CIRCUM_GIRLS.zscore.monthly-f8ae4c1e.js} +0 -0
  379. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-72768c0c.js → HEAD CIRCUM_GIRLS.zscore.weekly-4d5e3970.js} +0 -0
  380. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-12a1807a.js → HEAD CIRCUM_GIRLS.zscore.yearly-d5c4400f.js} +0 -0
  381. /package/build/{HEIGHT_BOYS.percentile.monthly-fdb50a6e.js → HEIGHT_BOYS.percentile.monthly-40cfbf9a.js} +0 -0
  382. /package/build/{HEIGHT_BOYS.percentile.weekly-1cdbd7fc.js → HEIGHT_BOYS.percentile.weekly-4cfb9809.js} +0 -0
  383. /package/build/{HEIGHT_BOYS.percentile.yearly-ae60fbe2.js → HEIGHT_BOYS.percentile.yearly-c6c3da07.js} +0 -0
  384. /package/build/{HEIGHT_BOYS.zscore.monthly-416e3b98.js → HEIGHT_BOYS.zscore.monthly-60edad28.js} +0 -0
  385. /package/build/{HEIGHT_BOYS.zscore.weekly-5841ec32.js → HEIGHT_BOYS.zscore.weekly-bc2fbc48.js} +0 -0
  386. /package/build/{HEIGHT_BOYS.zscore.yearly-46fa3807.js → HEIGHT_BOYS.zscore.yearly-86c1dde5.js} +0 -0
  387. /package/build/{HEIGHT_GIRLS.percentile.monthly-a1a09d3c.js → HEIGHT_GIRLS.percentile.monthly-44704c06.js} +0 -0
  388. /package/build/{HEIGHT_GIRLS.percentile.weekly-b415b4fe.js → HEIGHT_GIRLS.percentile.weekly-61ee7bd8.js} +0 -0
  389. /package/build/{HEIGHT_GIRLS.percentile.yearly-bc777d34.js → HEIGHT_GIRLS.percentile.yearly-1befcb61.js} +0 -0
  390. /package/build/{HEIGHT_GIRLS.zscore.monthly-184bce10.js → HEIGHT_GIRLS.zscore.monthly-1de060e1.js} +0 -0
  391. /package/build/{HEIGHT_GIRLS.zscore.weekly-ebf20453.js → HEIGHT_GIRLS.zscore.weekly-41ce21f7.js} +0 -0
  392. /package/build/{HEIGHT_GIRLS.zscore.yearly-5047a3ae.js → HEIGHT_GIRLS.zscore.yearly-0b86ad95.js} +0 -0
  393. /package/build/{Locale-f4ef93df.js → Locale-a20bc2bb.js} +0 -0
  394. /package/build/{Visible-b268617c.js → Visible-00a88ea6.js} +0 -0
  395. /package/build/{WEIGHT_BOYS.percentile.monthly-9ca324fa.js → WEIGHT_BOYS.percentile.monthly-214aacdd.js} +0 -0
  396. /package/build/{WEIGHT_BOYS.percentile.weekly-93441d0d.js → WEIGHT_BOYS.percentile.weekly-36921182.js} +0 -0
  397. /package/build/{WEIGHT_BOYS.percentile.yearly-fde380b1.js → WEIGHT_BOYS.percentile.yearly-1f1bbcfb.js} +0 -0
  398. /package/build/{WEIGHT_BOYS.zscore.monthly-010099f8.js → WEIGHT_BOYS.zscore.monthly-dfdded5b.js} +0 -0
  399. /package/build/{WEIGHT_BOYS.zscore.weekly-8ccbb9f1.js → WEIGHT_BOYS.zscore.weekly-de0c7c94.js} +0 -0
  400. /package/build/{WEIGHT_BOYS.zscore.yearly-e5c4d856.js → WEIGHT_BOYS.zscore.yearly-180c2581.js} +0 -0
  401. /package/build/{WEIGHT_GIRLS.percentile.monthly-0b41640f.js → WEIGHT_GIRLS.percentile.monthly-61aec809.js} +0 -0
  402. /package/build/{WEIGHT_GIRLS.percentile.weekly-5130013e.js → WEIGHT_GIRLS.percentile.weekly-bbd9e34c.js} +0 -0
  403. /package/build/{WEIGHT_GIRLS.percentile.yearly-aaa00b21.js → WEIGHT_GIRLS.percentile.yearly-5f3f741e.js} +0 -0
  404. /package/build/{WEIGHT_GIRLS.zscore.monthly-69dec2bc.js → WEIGHT_GIRLS.zscore.monthly-ebd17dec.js} +0 -0
  405. /package/build/{WEIGHT_GIRLS.zscore.weekly-97cf045f.js → WEIGHT_GIRLS.zscore.weekly-0dd2e885.js} +0 -0
  406. /package/build/{WEIGHT_GIRLS.zscore.yearly-08d28942.js → WEIGHT_GIRLS.zscore.yearly-2bc83e67.js} +0 -0
  407. /package/build/{animation-6926a72d.js → animation-d7bbfd05.js} +0 -0
  408. /package/build/{constants-c93fb1cc.js → constants-0d7afde6.js} +0 -0
  409. /package/build/{constants-54dd8859.js → constants-4ae51090.js} +0 -0
  410. /package/build/{constants-b5b1126d.js → constants-bba20592.js} +0 -0
  411. /package/build/{dataTransform-0d41cf32.js → dataTransform-c6ded749.js} +0 -0
  412. /package/build/esm/{BMI_BOYS.percentile.monthly-1ef2d698.js → BMI_BOYS.percentile.monthly-db18d48a.js} +0 -0
  413. /package/build/esm/{BMI_BOYS.percentile.weekly-2342ee3b.js → BMI_BOYS.percentile.weekly-9125f743.js} +0 -0
  414. /package/build/esm/{BMI_BOYS.percentile.yearly-a4dd3fef.js → BMI_BOYS.percentile.yearly-94192a1b.js} +0 -0
  415. /package/build/esm/{BMI_BOYS.zscore.monthly-93b887a9.js → BMI_BOYS.zscore.monthly-666c6d56.js} +0 -0
  416. /package/build/esm/{BMI_BOYS.zscore.weekly-32c49983.js → BMI_BOYS.zscore.weekly-b9fd6593.js} +0 -0
  417. /package/build/esm/{BMI_BOYS.zscore.yearly-dcf38f34.js → BMI_BOYS.zscore.yearly-6388cef4.js} +0 -0
  418. /package/build/esm/{BMI_GIRLS.percentile.monthly-f8b98abf.js → BMI_GIRLS.percentile.monthly-7effde6f.js} +0 -0
  419. /package/build/esm/{BMI_GIRLS.percentile.weekly-828d89f5.js → BMI_GIRLS.percentile.weekly-f913327d.js} +0 -0
  420. /package/build/esm/{BMI_GIRLS.percentile.yearly-9d2e52a2.js → BMI_GIRLS.percentile.yearly-88a7bdf9.js} +0 -0
  421. /package/build/esm/{BMI_GIRLS.zscore.monthly-af5a213a.js → BMI_GIRLS.zscore.monthly-bec30098.js} +0 -0
  422. /package/build/esm/{BMI_GIRLS.zscore.weekly-57bd1909.js → BMI_GIRLS.zscore.weekly-573384f3.js} +0 -0
  423. /package/build/esm/{BMI_GIRLS.zscore.yearly-187dd659.js → BMI_GIRLS.zscore.yearly-22f3b1f1.js} +0 -0
  424. /package/build/esm/{ChevronDown-ccc75c5d.js → ChevronDown-150a1256.js} +0 -0
  425. /package/build/esm/{Close-132a19cc.js → Close-39dfda08.js} +0 -0
  426. /package/build/esm/{Google-25700cf6.js → Google-b11fe21a.js} +0 -0
  427. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-d93bbf84.js → HEAD CIRCUM_BOYS.percentile.monthly-f614c6fc.js} +0 -0
  428. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-a51a5ef9.js → HEAD CIRCUM_BOYS.percentile.weekly-9eb6bfbe.js} +0 -0
  429. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-517b4d6c.js → HEAD CIRCUM_BOYS.percentile.yearly-e3b8abc0.js} +0 -0
  430. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-183fdae4.js → HEAD CIRCUM_BOYS.zscore.monthly-f32bfabb.js} +0 -0
  431. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-85bc0542.js → HEAD CIRCUM_BOYS.zscore.weekly-fba22281.js} +0 -0
  432. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-162b5d93.js → HEAD CIRCUM_BOYS.zscore.yearly-f6721740.js} +0 -0
  433. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-c7e02da7.js → HEAD CIRCUM_GIRLS.percentile.monthly-f8725b7c.js} +0 -0
  434. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-a26cb00f.js → HEAD CIRCUM_GIRLS.percentile.weekly-97387772.js} +0 -0
  435. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-c301a540.js → HEAD CIRCUM_GIRLS.percentile.yearly-c2dedbdc.js} +0 -0
  436. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3d879884.js → HEAD CIRCUM_GIRLS.zscore.monthly-7c689a78.js} +0 -0
  437. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-658da8bd.js → HEAD CIRCUM_GIRLS.zscore.weekly-bc100ec7.js} +0 -0
  438. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-2630e7a1.js → HEAD CIRCUM_GIRLS.zscore.yearly-6113b2c7.js} +0 -0
  439. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b0aab6b3.js → HEIGHT_BOYS.percentile.monthly-e5678958.js} +0 -0
  440. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-fdb38e5f.js → HEIGHT_BOYS.percentile.weekly-913a0b50.js} +0 -0
  441. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-d14be247.js → HEIGHT_BOYS.percentile.yearly-18af7378.js} +0 -0
  442. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-369d34b9.js → HEIGHT_BOYS.zscore.monthly-8284876a.js} +0 -0
  443. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-91b06662.js → HEIGHT_BOYS.zscore.weekly-6a87c59c.js} +0 -0
  444. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f3179030.js → HEIGHT_BOYS.zscore.yearly-b48ee328.js} +0 -0
  445. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-a1fbd0a9.js → HEIGHT_GIRLS.percentile.monthly-ebc399f1.js} +0 -0
  446. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-66cec243.js → HEIGHT_GIRLS.percentile.weekly-47580eaa.js} +0 -0
  447. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-b71597b5.js → HEIGHT_GIRLS.percentile.yearly-951d639b.js} +0 -0
  448. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-59df61a8.js → HEIGHT_GIRLS.zscore.monthly-0640f32b.js} +0 -0
  449. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4c0e1a6b.js → HEIGHT_GIRLS.zscore.weekly-ac6176b9.js} +0 -0
  450. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-9528238a.js → HEIGHT_GIRLS.zscore.yearly-767a1454.js} +0 -0
  451. /package/build/esm/{Locale-ecb80974.js → Locale-7e8c3193.js} +0 -0
  452. /package/build/esm/{Visible-3444dd68.js → Visible-26c970af.js} +0 -0
  453. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b96914b0.js → WEIGHT_BOYS.percentile.monthly-d542e6af.js} +0 -0
  454. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-22de2a7d.js → WEIGHT_BOYS.percentile.weekly-36e32ce3.js} +0 -0
  455. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b5dbbb3f.js → WEIGHT_BOYS.percentile.yearly-7fb16b1d.js} +0 -0
  456. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-b74a5f43.js → WEIGHT_BOYS.zscore.monthly-adbdfdd1.js} +0 -0
  457. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-88fd2a94.js → WEIGHT_BOYS.zscore.weekly-3f1f6b51.js} +0 -0
  458. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-e20ba6c5.js → WEIGHT_BOYS.zscore.yearly-8d1b094f.js} +0 -0
  459. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-3944b1a7.js → WEIGHT_GIRLS.percentile.monthly-1518c4b2.js} +0 -0
  460. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-2790fcb9.js → WEIGHT_GIRLS.percentile.weekly-4647e8b7.js} +0 -0
  461. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-5c65a85c.js → WEIGHT_GIRLS.percentile.yearly-75c03fa2.js} +0 -0
  462. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0c8f4f21.js → WEIGHT_GIRLS.zscore.monthly-208c2b04.js} +0 -0
  463. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f22aa2f3.js → WEIGHT_GIRLS.zscore.weekly-82bd4d43.js} +0 -0
  464. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-3c344cfd.js → WEIGHT_GIRLS.zscore.yearly-e979ffc3.js} +0 -0
  465. /package/build/esm/{animation-24e5f58b.js → animation-9f88ebc3.js} +0 -0
  466. /package/build/esm/{constants-8956c848.js → constants-69692e4e.js} +0 -0
  467. /package/build/esm/{constants-f00dc6f9.js → constants-74cdf592.js} +0 -0
  468. /package/build/esm/{constants-ec5add3a.js → constants-cc8260ef.js} +0 -0
  469. /package/build/esm/{dataTransform-c3f6a587.js → dataTransform-bb7c1b26.js} +0 -0
  470. /package/build/esm/{index-8528d78b.js → index-0fce55ff.js} +0 -0
  471. /package/build/esm/{index-450360f1.js → index-3dd16ecf.js} +0 -0
  472. /package/build/esm/{index-3a5c2863.js → index-4f2dc29a.js} +0 -0
  473. /package/build/esm/{index-50a4cfcb.js → index-93e56e81.js} +0 -0
  474. /package/build/esm/{index-3a01846d.js → index-bd7ec512.js} +0 -0
  475. /package/build/esm/{index-73dcec2a.js → index-d8a842a1.js} +0 -0
  476. /package/build/esm/{index-a0a1eedd.js → index-e07488f1.js} +0 -0
  477. /package/build/esm/{index-f9644665.js → index-e3e99d15.js} +0 -0
  478. /package/build/esm/{index.styles-cc839a9f.js → index.styles-084c59ef.js} +0 -0
  479. /package/build/esm/{localizeNumberFormat-29d40682.js → localizeNumberFormat-f4b6c47a.js} +0 -0
  480. /package/build/esm/{normalizeLink-3a1f7ea5.js → normalizeLink-936d90eb.js} +0 -0
  481. /package/build/esm/{number-2e11be8f.js → number-224a42c3.js} +0 -0
  482. /package/build/esm/{other-4b9f6896.js → other-ecd44617.js} +0 -0
  483. /package/build/esm/{paths-8ba2d170.js → paths-579d0032.js} +0 -0
  484. /package/build/esm/{translationsContext-f88f9c85.js → translationsContext-1f3f9575.js} +0 -0
  485. /package/build/esm/{tslib.es6-666f5038.js → tslib.es6-ab554322.js} +0 -0
  486. /package/build/esm/{types-f0849b58.js → types-2d4d27c5.js} +0 -0
  487. /package/build/esm/{useIsInit-f365ee9e.js → useIsInit-ea8b816c.js} +0 -0
  488. /package/build/esm/{useOutsideClick-45af01df.js → useOutsideClick-c4e5a727.js} +0 -0
  489. /package/build/esm/{useScrollbarSize-86e69b14.js → useScrollbarSize-eca6089a.js} +0 -0
  490. /package/build/esm/{useUniqueId-b491ed22.js → useUniqueId-7d263389.js} +0 -0
  491. /package/build/esm/{utils-ee90d7b0.js → utils-1e5d7b0f.js} +0 -0
  492. /package/build/{index-25d3f9d0.js → index-1c7d1db5.js} +0 -0
  493. /package/build/{index-8764b0c1.js → index-20c4211d.js} +0 -0
  494. /package/build/{index-1e86b50b.js → index-5987ef8d.js} +0 -0
  495. /package/build/{index-043f106d.js → index-76b35a39.js} +0 -0
  496. /package/build/{index-b20fd7fb.js → index-9ec91ab1.js} +0 -0
  497. /package/build/{index-9b6f9005.js → index-d6720486.js} +0 -0
  498. /package/build/{index-91b1d3ac.js → index-e93bb180.js} +0 -0
  499. /package/build/{index-595d0943.js → index-fe50d571.js} +0 -0
  500. /package/build/{index.styles-8385bdd2.js → index.styles-1627ae94.js} +0 -0
  501. /package/build/{localizeNumberFormat-4785b390.js → localizeNumberFormat-2e6de276.js} +0 -0
  502. /package/build/{normalizeLink-db758106.js → normalizeLink-f5a31cb7.js} +0 -0
  503. /package/build/{number-9cddf28f.js → number-df5f349e.js} +0 -0
  504. /package/build/{other-6fa145ba.js → other-0dadd1e0.js} +0 -0
  505. /package/build/{paths-5426a473.js → paths-88b3a03a.js} +0 -0
  506. /package/build/{translationsContext-ce78b682.js → translationsContext-b427e34a.js} +0 -0
  507. /package/build/{tslib.es6-b1e149fb.js → tslib.es6-80cd01ec.js} +0 -0
  508. /package/build/{types-427efcb2.js → types-4dc6d77a.js} +0 -0
  509. /package/build/{useIsInit-ac2852aa.js → useIsInit-048d2d0e.js} +0 -0
  510. /package/build/{useOutsideClick-961ec2ba.js → useOutsideClick-4b24cb4a.js} +0 -0
  511. /package/build/{useScrollbarSize-e2c17612.js → useScrollbarSize-276c45bd.js} +0 -0
  512. /package/build/{useUniqueId-9619ad78.js → useUniqueId-9af8c712.js} +0 -0
  513. /package/build/{utils-3abc945c.js → utils-f6f80ca7.js} +0 -0
package/build/lead.js CHANGED
@@ -2,55 +2,55 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('./tslib.es6-b1e149fb.js');
5
+ var tslib_es6 = require('./tslib.es6-80cd01ec.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-97d6040f.js');
11
+ var index = require('./index-8a2f123e.js');
12
12
  var miscCookieHelper = require('./miscCookieHelper.js');
13
- var index$1 = require('./index-171ad8f9.js');
14
- var translationsContext = require('./translationsContext-ce78b682.js');
15
- var utils$1 = require('./utils-3abc945c.js');
16
- var index$2 = require('./index-df8df3f3.js');
17
- var index$3 = require('./index-edf4e2b3.js');
18
- var index$5 = require('./index-fdfc0480.js');
19
- var index$4 = require('./index-c19c34f9.js');
20
- require('./index.styles-8385bdd2.js');
13
+ var index$1 = require('./index-eca3fc01.js');
14
+ var translationsContext = require('./translationsContext-b427e34a.js');
15
+ var utils$1 = require('./utils-f6f80ca7.js');
16
+ var index$2 = require('./index-13cd06ea.js');
17
+ var index$3 = require('./index-871bf383.js');
18
+ var index$5 = require('./index-5d53ab0d.js');
19
+ var index$4 = require('./index-dbb1f91e.js');
20
+ require('./index.styles-1627ae94.js');
21
21
  var hooks = require('@mantine/hooks');
22
- require('./useMantineLocale-ba80f594.js');
23
- var index$9 = require('./index-25a66e5f.js');
24
- require('./index-595d0943.js');
25
- var index$7 = require('./index-bf00c47a.js');
26
- require('./other-6fa145ba.js');
27
- require('./index-2eab3c59.js');
28
- var utils = require('./utils-51f5a5b1.js');
22
+ require('./useMantineLocale-41665618.js');
23
+ var index$9 = require('./index-05199167.js');
24
+ require('./index-fe50d571.js');
25
+ var index$7 = require('./index-db76af5d.js');
26
+ require('./other-0dadd1e0.js');
27
+ require('./index-0c06baa2.js');
28
+ var utils = require('./utils-c700f985.js');
29
29
  var dates = require('@mantine/dates');
30
- var usePlacesAutocomplete = require('./usePlacesAutocomplete-3b7b5088.js');
31
- var index$6 = require('./index-e367d8db.js');
32
- var translationsProvider = require('./translationsProvider-0f656d0b.js');
33
- var Locale = require('./Locale-f4ef93df.js');
30
+ var usePlacesAutocomplete = require('./usePlacesAutocomplete-1fdd7997.js');
31
+ var index$6 = require('./index-ec6df9a6.js');
32
+ var translationsProvider = require('./translationsProvider-9e02aca0.js');
33
+ var Locale = require('./Locale-a20bc2bb.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-0a8f7676.js');
41
- var index$8 = require('./index-8764b0c1.js');
42
- var useScreenSize = require('./useScreenSize-12d02c34.js');
40
+ var togetherComponentGlobalContext = require('./utils-7ea786dd.js');
41
+ var index$8 = require('./index-20c4211d.js');
42
+ var useScreenSize = require('./useScreenSize-903a492c.js');
43
43
  var framerMotion = require('framer-motion');
44
44
  var ReactDOM = require('react-dom');
45
- var InputDate = require('./InputDate-e4e90f85.js');
46
- var index$a = require('./index-46af9def.js');
47
- var Close = require('./Close-ee6dddff.js');
45
+ var InputDate = require('./InputDate-ed79b015.js');
46
+ var index$a = require('./index-739a497b.js');
47
+ var Close = require('./Close-59b9c491.js');
48
48
  require('./constantsIsProduction.js');
49
- require('./normalizeLink-db758106.js');
49
+ require('./normalizeLink-f5a31cb7.js');
50
50
  require('@hhgtech/icons/other');
51
51
  require('@mantine/carousel');
52
52
  require('classnames');
53
- require('./useUniqueId-9619ad78.js');
53
+ require('./useUniqueId-9af8c712.js');
54
54
  require('./constantsSite.js');
55
55
  require('@hhgtech/icons/core');
56
56
  require('@mantine/notifications');
@@ -68,11 +68,11 @@ require('./i18n-values/vi-VN.js');
68
68
  require('./i18n-values/vi-VN_MB.js');
69
69
  require('./i18n-values/zh-SG.js');
70
70
  require('./i18n-values/zh-TW.js');
71
- require('./index-043f106d.js');
71
+ require('./index-76b35a39.js');
72
72
  require('slugify');
73
73
  require('string-format');
74
74
  require('./togetherApiPaths.js');
75
- require('./constants-c93fb1cc.js');
75
+ require('./constants-0d7afde6.js');
76
76
  require('vaul');
77
77
 
78
78
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -150,33 +150,6 @@ const LEADGEN_BLOCK_INPUT = [
150
150
  LEADGEN_BLOCK.CheckboxBlock,
151
151
  LEADGEN_BLOCK.TncBlock,
152
152
  ];
153
- const leadGenFieldNamePhone = (listBlockAdded) => {
154
- return listBlockAdded
155
- .filter(({ name }) => [
156
- LEADGEN_BLOCK.PhoneBlock,
157
- LEADGEN_BLOCK.PhoneOtpBlock,
158
- LEADGEN_BLOCK.WhatsappOtpBlock,
159
- LEADGEN_BLOCK.ZaloOtpBlock,
160
- ].includes(name))
161
- .map(({ data }) => data.value);
162
- };
163
- const leadGenFieldRequired = (blocks) => {
164
- if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
165
- return [];
166
- }
167
- return blocks
168
- .map(({ data, name, id }) => {
169
- const { required, value } = data;
170
- if (name === LEADGEN_BLOCK.TncBlock && id && required) {
171
- return `TNC-${id}`;
172
- }
173
- if (required) {
174
- return value;
175
- }
176
- return;
177
- })
178
- .filter(Boolean);
179
- };
180
153
  const SSO_MAP_LEAD = ['name', 'email', 'birthday', 'phone', 'gender'];
181
154
  const LEAD_LOCALE_DATA$1 = {
182
155
  'vi-VN': {
@@ -259,6 +232,33 @@ const mappingSSOToLead = (userInfoProps) => {
259
232
  return;
260
233
  }
261
234
  };
235
+ const leadGenFieldNamePhone = (listBlockAdded) => {
236
+ return listBlockAdded
237
+ .filter(({ name }) => [
238
+ LEADGEN_BLOCK.PhoneBlock,
239
+ LEADGEN_BLOCK.PhoneOtpBlock,
240
+ LEADGEN_BLOCK.WhatsappOtpBlock,
241
+ LEADGEN_BLOCK.ZaloOtpBlock,
242
+ ].includes(name))
243
+ .map(({ data }) => data.value);
244
+ };
245
+ const leadGenFieldRequired = (blocks) => {
246
+ if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
247
+ return [];
248
+ }
249
+ return blocks
250
+ .map(({ data, name, id }) => {
251
+ const { required, value } = data;
252
+ if (name === LEADGEN_BLOCK.TncBlock && id && required) {
253
+ return `TNC-${id}`;
254
+ }
255
+ if (required) {
256
+ return value;
257
+ }
258
+ return;
259
+ })
260
+ .filter(Boolean);
261
+ };
262
262
  const formatCampaignDetail = (campaign) => {
263
263
  if (!campaign) {
264
264
  return {};
@@ -405,6 +405,55 @@ const formatLeadGenFormValue = (values = {}, blocks) => {
405
405
  return newValues;
406
406
  };
407
407
 
408
+ const TIMEOUT = 30 * 60 * 1000;
409
+ const WAITING_FIRST_RESP = 'waitingTheFirstResponse';
410
+ const CachedSystem = {
411
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
412
+ cached: {},
413
+ clearCached: (prefix) => {
414
+ console.log(CachedSystem.cached);
415
+ Object.keys(CachedSystem.cached)
416
+ .filter((k) => k.startsWith(prefix))
417
+ .forEach((key) => {
418
+ console.log(key);
419
+ CachedSystem.cached[key] = undefined;
420
+ });
421
+ },
422
+ withCached: (key, fnResponse, timeout = TIMEOUT) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
423
+ if (CachedSystem.cached[key] === WAITING_FIRST_RESP) {
424
+ return new Promise((resolve) => {
425
+ const startDate = new Date().getTime();
426
+ const intervalId = setInterval(() => {
427
+ const currentDate = new Date().getTime();
428
+ if (currentDate - startDate > 3000) {
429
+ clearInterval(intervalId);
430
+ }
431
+ if (typeof CachedSystem.cached[key] === 'object') {
432
+ resolve(CachedSystem.cached[key]);
433
+ clearInterval(intervalId);
434
+ }
435
+ }, 100);
436
+ });
437
+ }
438
+ if (typeof CachedSystem.cached[key] === 'object') {
439
+ return CachedSystem.cached[key];
440
+ }
441
+ CachedSystem.cached[key] = 'waitingTheFirstResponse';
442
+ try {
443
+ const result = yield fnResponse();
444
+ CachedSystem.cached[key] = result;
445
+ setTimeout(() => {
446
+ CachedSystem.cached[key] = undefined;
447
+ }, timeout);
448
+ return result;
449
+ }
450
+ catch (err) {
451
+ CachedSystem.cached[key] = undefined;
452
+ return Promise.reject(err);
453
+ }
454
+ }),
455
+ };
456
+
408
457
  class Store {
409
458
  constructor() {
410
459
  this.apiSsoUrl = 'https://staging-id.hellobacsi.com/';
@@ -414,6 +463,8 @@ class Store {
414
463
  }
415
464
  const leadStore = new Store();
416
465
 
466
+ const LEADGEN_CACHE_KEY = 'LeadGen_';
467
+ const LEADGEN_CACHE_TIME = 5 * 60 * 1000; // 5 minutes
417
468
  const METHOD = {
418
469
  GET: 'get',
419
470
  POST: 'POST',
@@ -600,7 +651,24 @@ const trackingSubscription = (data) => {
600
651
  data,
601
652
  });
602
653
  };
654
+ function getCampaigns({ url: urlProps, siteId, apiLeadUrl, }) {
655
+ let url = urlProps || '';
656
+ if (typeof window !== 'undefined') {
657
+ const { location } = window;
658
+ url = url || location.href.toLowerCase();
659
+ }
660
+ const ga_client_id = miscCookieHelper.getCookie('_ga') || null;
661
+ const AS_PATH = `${apiLeadUrl || leadStore.apiLeadUrl}api/campaign/${siteId}`;
662
+ return CachedSystem.withCached(LEADGEN_CACHE_KEY + AS_PATH, () => fetch(AS_PATH, {
663
+ method: 'POST',
664
+ headers: { 'Content-Type': 'application/json' },
665
+ body: JSON.stringify({ url, ga_client_id }),
666
+ })
667
+ .then((res) => res.json())
668
+ .then(({ _data }) => (_data === null || _data === void 0 ? void 0 : _data.campaigns) || []), LEADGEN_CACHE_TIME);
669
+ }
603
670
  const Service = {
671
+ getCampaigns,
604
672
  campaignGetById,
605
673
  getCampaignByCode,
606
674
  getSubscriptionBoxInfo,
@@ -1653,12 +1721,6 @@ const getTranslations = (locale) => {
1653
1721
  return translationsMap['en-PH'];
1654
1722
  };
1655
1723
 
1656
- const LeadGenTranslationProvider = (props) => {
1657
- const { locale, children } = props;
1658
- const translationContextValue = React.useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
1659
- return (React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: translationContextValue }, children));
1660
- };
1661
-
1662
1724
  // import mockLeadData from './mockLeadData'
1663
1725
  const listCampaignScheduled = [];
1664
1726
  const listCampaignScheduledToActivated = [];
@@ -1834,167 +1896,163 @@ function clearPassiveEvent() {
1834
1896
  LEAD_SCROLL_EVENT = null;
1835
1897
  }
1836
1898
  }
1837
- function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
1838
- // clear previous passive event, check for new condition
1839
- clearPassiveEvent();
1840
- const leadCurrentUrl = DEBUG_URL ||
1841
- ('https://' +
1842
- location.hostname +
1843
- location.pathname +
1844
- location.search).toLowerCase();
1845
- fetch(leadApi + 'api/campaign/' + leadSiteId, {
1846
- method: 'POST',
1847
- headers: {
1848
- 'Content-Type': 'application/json',
1849
- },
1850
- body: JSON.stringify({
1851
- url: leadCurrentUrl,
1852
- ga_client_id: miscCookieHelper.getCookie('_ga') || null,
1853
- }),
1854
- })
1855
- .then((response) => {
1856
- return response.json();
1857
- // return mockLeadData || response.json()
1858
- })
1859
- .then((data) => {
1860
- var _a, _b, _c, _d;
1861
- LeadLog('List campagin: ', data);
1862
- LEAD_RESET_VAR();
1863
- if (data._status == 1) {
1864
- 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);
1865
- if (!miscCookieHelper.getCookie('hhg-id')) {
1866
- miscCookieHelper.setCookie('hhg-id', uuid.v1(), {
1867
- domain: '.' + leadDomain,
1868
- path: '/',
1869
- });
1870
- LeadLog('😍 Set HHG ID cookie');
1871
- }
1872
- // getCookie('hhg-id')
1873
- // TODO: HP-534 Filter desktop
1874
- let campaignsDevice = [];
1875
- if (isMobile()) {
1876
- campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
1899
+ function getCurrentCampaign({ campaigns, leadDomain, leadCurrentUrl, }) {
1900
+ if (!miscCookieHelper.getCookie('hhg-id')) {
1901
+ miscCookieHelper.setCookie('hhg-id', uuid.v1(), { domain: `.${leadDomain}`, path: '/' });
1902
+ LeadLog('😍 Set HHG ID cookie');
1903
+ }
1904
+ // TODO: HP-534 Filter desktop
1905
+ let campaignsDevice = [];
1906
+ if (isMobile()) {
1907
+ campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
1908
+ }
1909
+ else {
1910
+ campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
1911
+ }
1912
+ LeadLog(`👓 campaignsDevice`, campaignsDevice);
1913
+ LeadLog('--listCampaignScheduled', listCampaignScheduled);
1914
+ LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
1915
+ LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
1916
+ LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
1917
+ LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
1918
+ LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
1919
+ // Check links
1920
+ let listLinksObj = campaignsDevice
1921
+ .map((i, index) => i.targets
1922
+ .filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
1923
+ .map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
1924
+ .flat(1);
1925
+ // Check list link match current href
1926
+ listLinksObj = listLinksObj.filter((i) => {
1927
+ var _a;
1928
+ const target = new URL(String(i.target).toLowerCase());
1929
+ if (i.option == 'exact_match')
1930
+ // FOR TEST LOCAL:
1931
+ // return Boolean(location.pathname === target.pathname)
1932
+ return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
1933
+ if (i.option == 'start_with') {
1934
+ // FOR TEST LOCAL:
1935
+ // if (location.pathname.includes(target.pathname)) {
1936
+ if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
1937
+ const listExcluding = i.sub_target
1938
+ .filter((i) => i.option == 'excluding')
1939
+ .map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
1940
+ return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
1877
1941
  }
1878
1942
  else {
1879
- campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
1880
- }
1881
- LeadLog(`👓 campaignsDevice`, campaignsDevice);
1882
- LeadLog('--listCampaignScheduled', listCampaignScheduled);
1883
- LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
1884
- LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
1885
- LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
1886
- LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
1887
- LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
1888
- // Check links
1889
- let listLinksObj = campaignsDevice
1890
- .map((i, index) => i.targets
1891
- .filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
1892
- .map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
1893
- .flat(1);
1894
- // Check list link match current href
1895
- listLinksObj = listLinksObj.filter((i) => {
1896
- var _a;
1897
- const target = new URL(String(i.target).toLowerCase());
1898
- if (i.option == 'exact_match')
1899
- // FOR TEST LOCAL:
1900
- // return Boolean(location.pathname === target.pathname)
1901
- return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
1902
- if (i.option == 'start_with') {
1903
- // FOR TEST LOCAL:
1904
- // if (location.pathname.includes(target.pathname)) {
1905
- if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
1906
- const listExcluding = i.sub_target
1907
- .filter((i) => i.option == 'excluding')
1908
- .map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
1909
- return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
1910
- }
1911
- else {
1912
- return false;
1913
- }
1914
- }
1915
- });
1916
- // Check tags
1917
- const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
1918
- const listTags = listMetaTag.map((i) => i.content);
1919
- let listCampaignHasTag = [];
1920
- let listTagsObj = [];
1921
- if (listTags && listTags.length) {
1922
- listCampaignHasTag = campaignsDevice
1923
- .map((i, index) => i.targets
1924
- .filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
1925
- .map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
1926
- .flat(1);
1927
- listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
1943
+ return false;
1928
1944
  }
1929
- const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
1930
- const cookieKeys = document.cookie
1931
- .split('; ')
1932
- .map((i) => i.split('=')[0]);
1933
- const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
1934
- LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
1935
- const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
1936
- LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
1937
- const listCampaignSubmitedClosed = [
1938
- ...listCampaignCodeSubmited,
1939
- ...listCampaignCodeClosed,
1940
- ];
1941
- const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
1942
- const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
1943
- return !hasSubmited;
1944
- });
1945
- const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
1946
- // .sort(
1947
- // (a, b) =>
1948
- // (listCampaignValid[a.campaignIndex]?.score || 0) -
1949
- // (listCampaignValid[b.campaignIndex]?.score || 0),
1950
- // )
1951
- LeadLog('--listCampaignValid : ', listCampaignValid);
1952
- if (listCampaignValid && listCampaignValid.length) {
1953
- const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
1954
- LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
1955
- const { rules } = CAMPAIGN_SHOW;
1956
- // CHECK RULE TRIGGER POPUP
1957
- const timeoutRule = Number((_c = rules.find((i) => i.rule == 'time')) === null || _c === void 0 ? void 0 : _c.value);
1958
- LeadLog(`timeoutRule`, timeoutRule);
1959
- const scrollRule = Number((_d = rules.find((i) => i.rule == 'scroll')) === null || _d === void 0 ? void 0 : _d.value);
1960
- LeadLog(`scrollRule`, scrollRule);
1961
- let impressionAction = 'TIME';
1962
- if (Number.isInteger(timeoutRule)) {
1963
- impressionAction = 'TIME';
1964
- LeadLog(' SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
1965
- timeoutRef = setTimeout(() => {
1966
- onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
1967
- }, timeoutRule * 1000);
1968
- }
1969
- if (Number.isInteger(scrollRule)) {
1970
- impressionAction = 'SCROLL';
1971
- LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
1972
- const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
1973
- document.querySelector('body');
1974
- const pct = $p.getBoundingClientRect().top;
1975
- const pb = $p.offsetHeight;
1976
- LeadLog(`👓 Element check scroll: `, $p);
1977
- LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
1978
- const wt = window.pageYOffset || document.documentElement.scrollTop;
1979
- let percent = 0;
1980
- if (wt >= pct) {
1981
- percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
1982
- }
1983
- LeadLog('---Scroll', percent, scrollRule);
1984
- // TODO: CHECK FOOTER HEIGHT
1985
- if (percent >= scrollRule) {
1986
- window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
1987
- onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
1988
- }
1989
- };
1990
- window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
1991
- passive: true,
1992
- });
1993
- }
1945
+ }
1946
+ });
1947
+ // Check tags
1948
+ const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
1949
+ const listTags = listMetaTag.map((i) => i.content);
1950
+ let listCampaignHasTag = [];
1951
+ let listTagsObj = [];
1952
+ if (listTags && listTags.length) {
1953
+ listCampaignHasTag = campaignsDevice
1954
+ .map((i, index) => i.targets
1955
+ .filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
1956
+ .map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
1957
+ .flat(1);
1958
+ listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
1959
+ }
1960
+ const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
1961
+ const cookieKeys = document.cookie.split('; ').map((i) => i.split('=')[0]);
1962
+ const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
1963
+ LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
1964
+ const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
1965
+ LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
1966
+ const listCampaignSubmitedClosed = [
1967
+ ...listCampaignCodeSubmited,
1968
+ ...listCampaignCodeClosed,
1969
+ ];
1970
+ const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
1971
+ const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
1972
+ return !hasSubmited;
1973
+ });
1974
+ const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
1975
+ // .sort(
1976
+ // (a, b) =>
1977
+ // (listCampaignValid[a.campaignIndex]?.score || 0) -
1978
+ // (listCampaignValid[b.campaignIndex]?.score || 0),
1979
+ // )
1980
+ LeadLog('--listCampaignValid : ', listCampaignValid);
1981
+ if (listCampaignValid && listCampaignValid.length) {
1982
+ const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
1983
+ return CAMPAIGN_SHOW;
1984
+ }
1985
+ else {
1986
+ LeadLog('🚧 No lead campaigns on current URL, tags');
1987
+ return null;
1988
+ }
1989
+ }
1990
+ function addEventShowCurrentCampaign({ campaign: CAMPAIGN_SHOW, onShowPopup, }) {
1991
+ var _a, _b;
1992
+ LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
1993
+ const { rules } = CAMPAIGN_SHOW;
1994
+ // CHECK RULE TRIGGER POPUP
1995
+ const timeoutRule = Number((_a = rules.find((i) => i.rule == 'time')) === null || _a === void 0 ? void 0 : _a.value);
1996
+ LeadLog(`timeoutRule`, timeoutRule);
1997
+ const scrollRule = Number((_b = rules.find((i) => i.rule == 'scroll')) === null || _b === void 0 ? void 0 : _b.value);
1998
+ LeadLog(`scrollRule`, scrollRule);
1999
+ let impressionAction = 'TIME';
2000
+ if (Number.isInteger(timeoutRule)) {
2001
+ impressionAction = 'TIME';
2002
+ LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
2003
+ timeoutRef = setTimeout(() => {
2004
+ onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
2005
+ }, timeoutRule * 1000);
2006
+ return { campaign: CAMPAIGN_SHOW, action: impressionAction };
2007
+ }
2008
+ if (Number.isInteger(scrollRule)) {
2009
+ impressionAction = 'SCROLL';
2010
+ LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
2011
+ const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
2012
+ document.querySelector('body');
2013
+ const pct = $p.getBoundingClientRect().top;
2014
+ const pb = $p.offsetHeight;
2015
+ LeadLog(`👓 Element check scroll: `, $p);
2016
+ LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
2017
+ const wt = window.pageYOffset || document.documentElement.scrollTop;
2018
+ let percent = 0;
2019
+ if (wt >= pct) {
2020
+ percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
1994
2021
  }
1995
- else {
1996
- LeadLog('🚧 No lead campaigns on current URL, tags');
2022
+ LeadLog('---Scroll', percent, scrollRule);
2023
+ // TODO: CHECK FOOTER HEIGHT
2024
+ if (percent >= scrollRule) {
2025
+ window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
2026
+ onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
1997
2027
  }
2028
+ };
2029
+ window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
2030
+ passive: true,
2031
+ });
2032
+ }
2033
+ }
2034
+ function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
2035
+ // clear previous passive event, check for new condition
2036
+ clearPassiveEvent();
2037
+ const leadCurrentUrl = DEBUG_URL;
2038
+ Service.getCampaigns({
2039
+ url: DEBUG_URL,
2040
+ siteId: leadSiteId,
2041
+ apiLeadUrl: leadApi,
2042
+ })
2043
+ .then((campRes) => {
2044
+ LeadLog('List campagin: ', campRes);
2045
+ LEAD_RESET_VAR();
2046
+ const campaigns = (campRes || [])
2047
+ .filter(filterFnCampaign)
2048
+ .filter(fillterApprearanceTimeCampaign);
2049
+ const campaign = getCurrentCampaign({
2050
+ campaigns,
2051
+ leadCurrentUrl,
2052
+ leadDomain,
2053
+ });
2054
+ if (campaign) {
2055
+ addEventShowCurrentCampaign({ campaign, onShowPopup });
1998
2056
  }
1999
2057
  })
2000
2058
  .catch((err) => {
@@ -2011,31 +2069,71 @@ const LeadLog = (...params) => {
2011
2069
  }
2012
2070
  };
2013
2071
 
2072
+ const LeadGenInlineWithoutMemo = (props) => {
2073
+ const [campaign, setCampaign] = React.useState();
2074
+ const { forceCampaign, apiUrl, apiLeadUrl, siteId, siteDomain, DEBUG_URL } = props;
2075
+ React.useEffect(() => {
2076
+ if (forceCampaign) {
2077
+ setCampaign(forceCampaign);
2078
+ return;
2079
+ }
2080
+ (() => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
2081
+ const campaign = yield leadGenInlineGetCampaign({
2082
+ siteId,
2083
+ siteDomain,
2084
+ apiLeadUrl: apiUrl || apiLeadUrl || '',
2085
+ url: DEBUG_URL,
2086
+ });
2087
+ if (campaign) {
2088
+ setCampaign(campaign);
2089
+ }
2090
+ }))();
2091
+ }, [forceCampaign, DEBUG_URL, apiUrl, apiLeadUrl, siteId, siteDomain]);
2092
+ if (!campaign || !(campaign === null || campaign === void 0 ? void 0 : campaign.id)) {
2093
+ return null;
2094
+ }
2095
+ return (React__default["default"].createElement(LeadGen, Object.assign({}, props, { forceCampaign: campaign, apiUrl: apiUrl || apiLeadUrl, flatComponent: true })));
2096
+ };
2097
+ const LeadGenInline = React.memo(LeadGenInlineWithoutMemo);
2098
+ function leadGenInlineGetCampaign(props) {
2099
+ return tslib_es6.__awaiter(this, void 0, void 0, function* () {
2100
+ const { url, apiLeadUrl, siteId, siteDomain } = props;
2101
+ const campaigns = yield Service.getCampaigns({ url, apiLeadUrl, siteId });
2102
+ const campaignsInline = campaigns.filter(({ extra_fields }) => {
2103
+ const { currentLayout } = extra_fields || {};
2104
+ return currentLayout.includes('Inline');
2105
+ });
2106
+ return getCurrentCampaign({
2107
+ campaigns: campaignsInline,
2108
+ leadCurrentUrl: url,
2109
+ leadDomain: siteDomain,
2110
+ });
2111
+ });
2112
+ }
2113
+
2114
+ const LeadGenTranslationProvider = (props) => {
2115
+ const { locale, children } = props;
2116
+ const translationContextValue = React.useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
2117
+ return (React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: translationContextValue }, children));
2118
+ };
2119
+
2014
2120
  const LeadGenContext = React.createContext({
2015
- submit(value) {
2121
+ onSubmit(value) {
2016
2122
  /** Init for FAKING function */
2017
2123
  LeadLog('** LeadGen Submit : ', value);
2018
2124
  return Promise.reject(value);
2019
2125
  },
2020
- submitSubscriptionBox(value) {
2021
- /** Init for FAKING function */
2022
- LeadLog('** LeadGen SubmitSubscriptionBox : ', value);
2023
- return Promise.reject(value);
2024
- },
2025
- impression(type) {
2126
+ onImpression(value) {
2026
2127
  /** Init for FAKING function */
2027
- LeadLog('** LeadGen Impression : ', type);
2128
+ LeadLog('** LeadGen Impression : ', value);
2028
2129
  return Promise.reject();
2029
2130
  },
2030
- /** For Subscription Box */
2031
- subscriptionIcon: '',
2032
- subscriptionTitle: '',
2033
- subscriptionPhoneType: '',
2034
2131
  });
2035
2132
  const LeadGenContextProvider = (props) => {
2036
- 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"]);
2133
+ 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"]);
2037
2134
  const { t } = index$1.useTranslations();
2038
- const [forceCampaign, setForceCampaign] = React.useState(forceCampaignProps);
2135
+ const [rawForceCampaign, setRawForceCampaign] = React.useState(forceCampaignProps);
2136
+ const [forceCampaign, setForceCampaign] = React.useState(() => formatCampaignDetail(forceCampaignProps));
2039
2137
  const [subscriptionInfo, setSubscriptionInfo] = React.useState({
2040
2138
  subscriptionIcon: '',
2041
2139
  subscriptionTitle: '',
@@ -2045,98 +2143,65 @@ const LeadGenContextProvider = (props) => {
2045
2143
  const locale = React.useMemo(() => {
2046
2144
  return localeProps || Locale.LOCALE['PhilippinesEnglish'];
2047
2145
  }, [localeProps]);
2048
- const { url, campaign_id, cookie_id, ga_client_id, category_id, article_id, article_title, category_name, } = React.useMemo(() => ({
2049
- url: location.href.toLowerCase() || '',
2050
- cookie_id: miscCookieHelper.getCookie('hhg-id') || null,
2051
- ga_client_id: miscCookieHelper.getCookie('_ga'),
2052
- campaign_id: forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
2053
- campaign_code: campaignCodeProps || (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code),
2054
- category_id: categoryId,
2055
- article_id: articleId,
2056
- article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
2057
- category_name: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name) || '',
2058
- }), [
2059
- campaignCodeProps,
2060
- articleId,
2061
- categoryId,
2062
- forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
2063
- extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
2064
- extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
2065
- ]);
2066
- // const fetchCampaign = useCallback(
2067
- // (campaign_code: string) => {
2068
- // Service.getCampaignByCode(campaign_code).then((res) => {
2069
- // const { _data } = res || {}
2070
- // const { campaigns } = _data || {}
2071
- // LeadLog('** LeadGen Campaign : ', campaigns)
2072
- // setForceCampaign(formatCampaignDetail(campaigns))
2073
- // })
2074
- // },
2075
- // [campaignCodeProps],
2076
- // )
2077
2146
  // TODO : Update form for LeadGen
2078
- const submit = React.useCallback((data) => {
2147
+ const onSubmit = React.useCallback((data) => {
2079
2148
  return Service.postSubscriptionBoxLead({ data });
2149
+ }, [forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.blocks]);
2150
+ const onImpression = React.useCallback((value) => {
2151
+ //
2152
+ console.log('** RYAN LeadGenContext.tsx 188 value : ', value);
2153
+ return Promise.resolve('dfdfdf');
2080
2154
  }, []);
2081
2155
  const submitSubscriptionBox = React.useCallback((value) => {
2082
2156
  const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
2083
2157
  // campaign_id,
2084
- 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,
2085
- category_id,
2086
- article_title });
2158
+ 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 || '' });
2087
2159
  return Service.postSubscriptionBoxLead({ data });
2088
2160
  }, [
2089
2161
  extraValues,
2090
- site_domain,
2091
- campaign_id,
2092
- article_id,
2093
- article_title,
2094
- category_id,
2095
- url,
2096
- cookie_id,
2097
- ga_client_id,
2162
+ extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
2163
+ siteDomain,
2164
+ articleId,
2165
+ categoryId,
2098
2166
  ]);
2099
- const impression = React.useCallback((type) => {
2100
- const gaCookie = miscCookieHelper.getCookie('_ga') || null;
2167
+ const impressionSubscriptionBox = React.useCallback((type) => {
2101
2168
  const impression = {
2102
2169
  subscription_title: subscriptionInfo.subscriptionTitle,
2103
2170
  name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
2104
2171
  area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
2105
2172
  phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
2106
- site_domain: constantsDomainLocales.domainLocales[locale],
2173
+ site_domain: siteDomain,
2107
2174
  url: location.href.toLowerCase(),
2108
2175
  cookie_id: miscCookieHelper.getCookie('hhg-id'),
2109
- ga_client_id: gaCookie,
2110
- article_title,
2111
- article_id,
2112
- category_id,
2113
- category_name,
2176
+ ga_client_id: miscCookieHelper.getCookie('_ga') || null,
2177
+ article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
2178
+ article_id: articleId,
2179
+ category_id: categoryId,
2180
+ category_name: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name) || '',
2114
2181
  type,
2115
2182
  };
2116
2183
  return Service.trackingSubscription(impression);
2117
2184
  }, [
2118
- campaign_id,
2119
- url,
2120
- article_title,
2121
- cookie_id,
2122
- ga_client_id,
2185
+ articleId,
2123
2186
  categoryId,
2124
- article_id,
2125
2187
  subscriptionInfo.subscriptionTitle,
2188
+ extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
2126
2189
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
2127
2190
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
2128
2191
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
2129
2192
  ]);
2130
2193
  React.useEffect(() => {
2194
+ /** Force Campaign */
2131
2195
  if (forceCampaignProps) {
2132
2196
  setForceCampaign(formatCampaignDetail(forceCampaignProps));
2197
+ setRawForceCampaign(forceCampaignProps);
2133
2198
  return;
2134
2199
  }
2135
2200
  /** For Subscription Box */
2136
2201
  if (categoryId) {
2137
2202
  Service.getSubscriptionBoxInfo({
2138
2203
  category: categoryId,
2139
- site: site_domain,
2204
+ site: siteDomain,
2140
2205
  slug: location === null || location === void 0 ? void 0 : location.pathname,
2141
2206
  }).then((res) => {
2142
2207
  const { _data } = res || {};
@@ -2269,10 +2334,39 @@ const LeadGenContextProvider = (props) => {
2269
2334
  });
2270
2335
  return;
2271
2336
  }
2272
- // if (campaignCodeProps) {
2273
- // fetchCampaign(campaignCodeProps)
2337
+ if (campaignCodeProps) {
2338
+ Service.getCampaignByCode(campaignCodeProps).then((res) => {
2339
+ const { _data } = res || {};
2340
+ const { campaigns } = _data || {};
2341
+ LeadLog('** LeadGen Campaign : ', campaigns);
2342
+ setForceCampaign(formatCampaignDetail(campaigns));
2343
+ setRawForceCampaign(campaigns);
2344
+ });
2345
+ return;
2346
+ }
2347
+ // /** For LeadGen */
2348
+ // if (!leadStore.campaigns?.length) {
2349
+ // checkShowPopup({
2350
+ // leadApi: apiLeadUrl,
2351
+ // leadDomain: siteDomain,
2352
+ // leadSiteId: siteId,
2353
+ // onShowPopup(campaign: any, action: string) {
2354
+ // console.log('** RYAN LeadGenContext.tsx 421 action : ', action)
2355
+ // setForceCampaign(formatCampaignDetail(campaign))
2356
+ // setRawForceCampaign(campaign)
2357
+ // },
2358
+ // DEBUG_URL,
2359
+ // })
2274
2360
  // }
2275
- }, [forceCampaignProps, campaignCodeProps, categoryId]);
2361
+ }, [
2362
+ forceCampaignProps,
2363
+ campaignCodeProps,
2364
+ categoryId,
2365
+ siteId,
2366
+ siteDomain,
2367
+ apiLeadUrl,
2368
+ DEBUG_URL,
2369
+ ]);
2276
2370
  React.useEffect(() => {
2277
2371
  leadStore.apiSsoUrl = apiSsoUrl;
2278
2372
  leadStore.apiLeadUrl = apiLeadUrl;
@@ -2285,10 +2379,14 @@ const LeadGenContextProvider = (props) => {
2285
2379
  apiLeadUrl,
2286
2380
  apiSubotUrl, locale: localeProps, extraValues,
2287
2381
  articleId,
2288
- categoryId, siteDomain: site_domain, forceCampaign,
2289
- submit,
2382
+ categoryId,
2383
+ siteDomain,
2384
+ forceCampaign,
2385
+ rawForceCampaign,
2386
+ onSubmit,
2387
+ onImpression,
2290
2388
  submitSubscriptionBox,
2291
- impression }) },
2389
+ impressionSubscriptionBox }) },
2292
2390
  React__default["default"].createElement(LeadGenTranslationProvider, { locale: locale }, children)));
2293
2391
  };
2294
2392
  const useLeadGenContext = () => {
@@ -3325,7 +3423,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3325
3423
  const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
3326
3424
  const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
3327
3425
  const { submitBlock } = actionBlocks || {};
3328
- const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impression, } = useLeadGenContext();
3426
+ const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impressionSubscriptionBox, } = useLeadGenContext();
3329
3427
  const { t } = index$1.useTranslations();
3330
3428
  const { action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
3331
3429
  const [loading, setLoading] = React.useState(false);
@@ -3385,7 +3483,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3385
3483
  const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
3386
3484
  const [res] = yield Promise.all([
3387
3485
  submitSubscriptionBox(reqValues),
3388
- impression('submit_form'),
3486
+ impressionSubscriptionBox('submit_form'),
3389
3487
  ]);
3390
3488
  const { _data } = res || {};
3391
3489
  const { model } = _data || {};
@@ -3431,7 +3529,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3431
3529
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
3432
3530
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
3433
3531
  ]);
3434
- return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impression('impression') },
3532
+ return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impressionSubscriptionBox('impression') },
3435
3533
  React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
3436
3534
  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 })),
3437
3535
  !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 })))));
@@ -4165,7 +4263,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
4165
4263
  React__default["default"].createElement(index$4.Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
4166
4264
  };
4167
4265
 
4168
- const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
4266
+ const InlineLayout = ({ flatComponent, content, inlinePosition, doImpression, }) => {
4169
4267
  const target = React.useMemo(() => {
4170
4268
  if (!inlinePosition)
4171
4269
  return null;
@@ -4270,6 +4368,9 @@ const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
4270
4368
  }
4271
4369
  }
4272
4370
  }, [inlinePosition]);
4371
+ if (!!flatComponent) {
4372
+ return (React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content));
4373
+ }
4273
4374
  if (!inlinePosition || !target)
4274
4375
  return null;
4275
4376
  return ReactDOM.createPortal(React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content), target);
@@ -4816,7 +4917,10 @@ const StyledFormContainer = styled__default["default"].div `
4816
4917
  .leadgen-form_body {
4817
4918
  flex: 1;
4818
4919
  min-height: 0;
4819
- overflow: auto;
4920
+ ${utils$1.MediaQueries.mbUp} {
4921
+ overflow: auto;
4922
+ }
4923
+
4820
4924
  &::-webkit-scrollbar {
4821
4925
  width: 6px;
4822
4926
  height: 6px;
@@ -5039,7 +5143,7 @@ const LEADGEN_SHOW_HEADER = [
5039
5143
  ];
5040
5144
  // const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
5041
5145
  const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
5042
- 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, }) => {
5146
+ 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, }) => {
5043
5147
  var _a, _b;
5044
5148
  const { primaryColor } = React.useContext(LeadGenContext$1);
5045
5149
  const { isMobile } = useScreenSize.useScreenSize();
@@ -5439,7 +5543,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
5439
5543
  return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
5440
5544
  }
5441
5545
  else if (isInline) {
5442
- return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
5546
+ return (React__default["default"].createElement(InlineLayout, { flatComponent: flatComponent, action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
5443
5547
  }
5444
5548
  return null;
5445
5549
  };
@@ -5532,7 +5636,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
5532
5636
  return null;
5533
5637
  }
5534
5638
  }
5535
- const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
5639
+ const NewLeadPopup = ({ flatComponent, campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
5536
5640
  var _a, _b;
5537
5641
  const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
5538
5642
  const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
@@ -5635,7 +5739,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
5635
5739
  currentLayout == 'Fullscreen' ||
5636
5740
  currentLayout == 'Sidebar' ||
5637
5741
  currentLayout == 'Slider') {
5638
- 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 }));
5742
+ 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 }));
5639
5743
  }
5640
5744
  else if (currentLayout.includes('Skin')) {
5641
5745
  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 }));
@@ -5727,7 +5831,7 @@ const formatTrackingData = (params) => {
5727
5831
  };
5728
5832
 
5729
5833
  // mount css
5730
- const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, }) => {
5834
+ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, flatComponent, }) => {
5731
5835
  var _a, _b;
5732
5836
  const scrollEventHandlerRef = React.useRef();
5733
5837
  const leadStartTimeRef = React.useRef(Date.now());
@@ -6066,7 +6170,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
6066
6170
  !!currentLayout &&
6067
6171
  !currentLayout.includes('Inline') &&
6068
6172
  !currentLayout.includes('Sidebar') && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
6069
- 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 })))));
6173
+ 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 })))));
6070
6174
  })))))));
6071
6175
  };
6072
6176
  const LeadGen = _LeadGen;
@@ -6078,4 +6182,6 @@ LeadGen.OtpForm = OtpBlock$1;
6078
6182
  LeadGen.Close = Close.Close;
6079
6183
 
6080
6184
  exports.LeadGen = LeadGen;
6185
+ exports.LeadGenInline = LeadGenInline;
6081
6186
  exports.LeadGenSubscriptionBox = LeadGenSubscriptionBox;
6187
+ exports.leadGenInlineGetCampaign = leadGenInlineGetCampaign;