@hhgtech/hhg-components 1.29.414 → 1.29.416-beta-1

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-2450cdc3.js → InputDate-cdba1a1a.js} +3 -3
  2. package/build/{LastPeriod-f7a00767.js → LastPeriod-f84d3d12.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-2c2925fa.js → MobileBottomNavigationIcon-c6690b1c.js} +3 -3
  4. package/build/{Spinner-2d6176f4.js → Spinner-b730fa1b.js} +1 -1
  5. package/build/{WhatsApp-b59cf4a4.js → WhatsApp-80f3faa2.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-e73c3489.js → constants-1608c608.js} +5 -2
  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-142f47f1.js → core-b58b6ade.js} +1 -1
  20. package/build/{dataTransform-336e13af.js → dataTransform-21e9ae78.js} +1 -1
  21. package/build/ecom.js +4 -4
  22. package/build/{editor-34cb2766.js → editor-1201c05e.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-d7a62dfe.js → InputDate-bf6a9363.js} +3 -3
  33. package/build/esm/{LastPeriod-ecf2b009.js → LastPeriod-08abd9e0.js} +1 -1
  34. package/build/esm/{MobileBottomNavigationIcon-9343f89b.js → MobileBottomNavigationIcon-f949a29e.js} +3 -3
  35. package/build/esm/{Spinner-bb8cf11c.js → Spinner-df4fdeb5.js} +1 -1
  36. package/build/esm/{WhatsApp-2b1acb81.js → WhatsApp-5b241d8e.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-c1f4a1a2.js → constants-4f6be0b0.js} +5 -2
  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-4e16b9f7.js → core-ad50807e.js} +1 -1
  51. package/build/esm/{dataTransform-7a8ce18a.js → dataTransform-b5723a88.js} +1 -1
  52. package/build/esm/ecom.js +4 -4
  53. package/build/esm/{editor-0f2e51a6.js → editor-a8d53ac1.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-17e63b68.js → healthTools-84409e98.js} +1 -1
  66. package/build/esm/healthToolsCardWrapper.js +19 -19
  67. package/build/esm/healthToolsForm.js +34 -34
  68. package/build/esm/hooks/usePlacesAutocomplete.d.ts +1 -1
  69. package/build/esm/hooks.js +13 -13
  70. package/build/esm/i18n.js +2 -2
  71. package/build/esm/i18nV2.js +2 -2
  72. package/build/esm/{index-223dd26f.js → index-067e8885.js} +15 -15
  73. package/build/esm/{index-32350ec1.js → index-10e26d0d.js} +25 -25
  74. package/build/esm/{index-ee39db81.js → index-16f555a0.js} +6 -6
  75. package/build/esm/{index-b3dbab58.js → index-1c8c4563.js} +32 -32
  76. package/build/esm/{index-799489a8.js → index-2089f502.js} +2 -2
  77. package/build/esm/{index-664a450d.js → index-20eab504.js} +6 -6
  78. package/build/esm/{index-1215bc9f.js → index-25983827.js} +1 -1
  79. package/build/esm/{index-95bec2a3.js → index-32c0c36c.js} +3 -3
  80. package/build/esm/{index-4ddab84e.js → index-33d9cfb9.js} +3 -3
  81. package/build/esm/{index-6ae951d5.js → index-39c0105f.js} +8 -8
  82. package/build/esm/{index-80f8dfd1.js → index-3b49172b.js} +6 -6
  83. package/build/esm/{index-6e8d7d0b.js → index-477b8c7a.js} +11 -11
  84. package/build/esm/{index-0d505406.js → index-4851fad7.js} +17 -17
  85. package/build/esm/{index-d6ec7353.js → index-5234efcb.js} +2 -2
  86. package/build/esm/{index-a73bd578.js → index-547339b4.js} +2 -2
  87. package/build/esm/{index-4afdc75d.js → index-5747d34b.js} +16 -16
  88. package/build/esm/{index-20a5bb17.js → index-5a7a3c1a.js} +13 -13
  89. package/build/esm/{index-76e673c7.js → index-5ac13b18.js} +32 -32
  90. package/build/esm/{index-613a8cfa.js → index-5b071622.js} +2 -2
  91. package/build/esm/{index-3b56ed67.js → index-5bab57de.js} +6 -6
  92. package/build/esm/{index-ade3e4b4.js → index-6092ee9c.js} +13 -13
  93. package/build/esm/{index-a0a5a00b.js → index-6206ea8f.js} +1 -1
  94. package/build/esm/{index-eb241484.js → index-66adda7e.js} +24 -24
  95. package/build/esm/{index-2953a674.js → index-66f326a0.js} +2 -2
  96. package/build/esm/{index-cc3edb30.js → index-6a588d96.js} +2 -2
  97. package/build/esm/{index-4ed9d391.js → index-6b742e45.js} +17 -17
  98. package/build/esm/{index-a5768260.js → index-705da63f.js} +2 -2
  99. package/build/esm/{index-b79e3e8d.js → index-715d6532.js} +2 -2
  100. package/build/esm/{index-42f52871.js → index-726402d3.js} +2 -2
  101. package/build/esm/{index-aebb1ac3.js → index-7490f2c5.js} +6 -6
  102. package/build/esm/{index-18cf2cbc.js → index-77d1054c.js} +17 -17
  103. package/build/esm/{index-871dee36.js → index-77efae47.js} +3 -3
  104. package/build/esm/{index-908c9e0d.js → index-782ac143.js} +1 -1
  105. package/build/esm/{index-233138ba.js → index-792e681e.js} +2 -2
  106. package/build/esm/{index-6c6bf90f.js → index-7b525830.js} +3 -3
  107. package/build/esm/{index-71de2bcc.js → index-7dbb7127.js} +1 -1
  108. package/build/esm/{index-a3e2216d.js → index-819c04d5.js} +15 -15
  109. package/build/esm/{index-3d8ec525.js → index-8513ba9e.js} +1 -1
  110. package/build/esm/{index-8b39751d.js → index-85496ec5.js} +21 -41
  111. package/build/esm/{index-f8759bee.js → index-9116fbd2.js} +1 -1
  112. package/build/esm/{index-ef13fcdb.js → index-915c0a01.js} +13 -13
  113. package/build/esm/{index-6482e49b.js → index-92028dcb.js} +1 -1
  114. package/build/esm/{index-663490b0.js → index-92083a73.js} +4 -4
  115. package/build/esm/{index-6af0e302.js → index-9da3e23b.js} +22 -22
  116. package/build/esm/{index-ddb0580e.js → index-9e29d3e3.js} +30 -30
  117. package/build/esm/{index-42d152dd.js → index-a99ac287.js} +16 -16
  118. package/build/esm/{index-0a6fc41a.js → index-aabf118a.js} +2 -2
  119. package/build/esm/{index-2cbb6421.js → index-ae970044.js} +4 -4
  120. package/build/esm/{index-a807bf74.js → index-b45d145f.js} +17 -17
  121. package/build/esm/{index-c2e91e69.js → index-bc18ecff.js} +2 -2
  122. package/build/esm/{index-452051cb.js → index-bd9013de.js} +5 -5
  123. package/build/esm/{index-9220423b.js → index-c1f7b079.js} +5 -5
  124. package/build/esm/{index-7f1ed00b.js → index-c57988e9.js} +3 -3
  125. package/build/esm/{index-21b14232.js → index-c71cd1be.js} +10 -10
  126. package/build/esm/{index-92ed0334.js → index-ccfee79f.js} +3 -3
  127. package/build/esm/{index-77532f63.js → index-ce969d66.js} +3 -3
  128. package/build/esm/{index-420665a0.js → index-d0b17929.js} +7 -7
  129. package/build/esm/{index-e053201b.js → index-d588e6bb.js} +2 -2
  130. package/build/esm/{index-3559c4ea.js → index-db423d7b.js} +13 -13
  131. package/build/esm/{index-c0f27429.js → index-dea22586.js} +2 -2
  132. package/build/esm/{index-f880dc21.js → index-dfd9f7df.js} +2 -2
  133. package/build/esm/{index-6430b388.js → index-e1fe3a5b.js} +1 -1
  134. package/build/esm/{index-4d6ab67c.js → index-e2260ffa.js} +13 -13
  135. package/build/esm/{index-a3514fcc.js → index-f27d65ec.js} +15 -15
  136. package/build/esm/{index-2a289da8.js → index-f5335875.js} +9 -15
  137. package/build/esm/{index-b9b69385.js → index-f7979138.js} +3 -3
  138. package/build/esm/{index-1ba37571.js → index-fb2de7c3.js} +7 -7
  139. package/build/esm/{index-cf0a3778.js → index-fb3af40f.js} +13 -13
  140. package/build/esm/index.js +119 -119
  141. package/build/esm/{labelSorting-6a07a56f.js → labelSorting-edb2b18a.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.js +414 -314
  155. package/build/esm/{logoIcon-c2c6fe01.js → logoIcon-7646edff.js} +2 -2
  156. package/build/esm/mantine.js +26 -26
  157. package/build/esm/misc/cachedSystem.d.ts +5 -0
  158. package/build/esm/misc.js +18 -18
  159. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  160. package/build/esm/miscGetSocialList.js +8 -8
  161. package/build/esm/miscScreenSizeContext.js +1 -1
  162. package/build/esm/mobileBottomNavigation.js +5 -5
  163. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  164. package/build/esm/molecules.js +75 -75
  165. package/build/esm/moleculesArticleCard.js +6 -6
  166. package/build/esm/moleculesArticleCardV2.js +17 -17
  167. package/build/esm/navigation.js +47 -47
  168. package/build/esm/navigationLogoutPopup.js +11 -11
  169. package/build/esm/navigationProfileButton.js +27 -27
  170. package/build/esm/onboardingV2.js +30 -30
  171. package/build/esm/organisms.js +51 -51
  172. package/build/esm/{post-e546d5d4.js → post-8f42afbc.js} +2 -2
  173. package/build/esm/profileNavigation.js +20 -20
  174. package/build/esm/progressBar.js +1 -1
  175. package/build/esm/pwg.js +23 -23
  176. package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
  177. package/build/esm/ssoV2.js +53 -41
  178. package/build/esm/{store-b4a996e2.js → store-966ef305.js} +3 -3
  179. package/build/esm/subot.js +37 -37
  180. package/build/esm/surveyOrPremiumBanner.js +34 -34
  181. package/build/esm/surveyQuestionCard.js +11 -11
  182. package/build/esm/{surveyThankyouCard-55874e25.js → surveyThankyouCard-c20fa807.js} +5 -5
  183. package/build/esm/together.js +57 -57
  184. package/build/esm/togetherApiUtils.js +4 -4
  185. package/build/esm/togetherAtoms.js +31 -31
  186. package/build/esm/togetherComponentGlobalContext.js +4 -4
  187. package/build/esm/togetherMolecules.js +52 -52
  188. package/build/esm/togetherMoleculesCardAuthor.js +29 -29
  189. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  190. package/build/esm/togetherMoleculesProfileDetail.js +40 -40
  191. package/build/esm/togetherOrganisms.js +51 -51
  192. package/build/esm/togetherRichTextEditor.js +18 -18
  193. package/build/esm/togetherShareBox.js +10 -10
  194. package/build/esm/{translationsProvider-83c169fa.js → translationsProvider-647a2db0.js} +1 -1
  195. package/build/esm/{treePopoverMenu-0ff56700.js → treePopoverMenu-8c561cb3.js} +19 -19
  196. package/build/esm/{types-d9fe3189.js → types-6bed1943.js} +2 -2
  197. package/build/esm/types.js +2 -2
  198. package/build/esm/{useCategory-3973a193.js → useCategory-69865f9d.js} +5 -5
  199. package/build/esm/{useHealthToolCache-c58ca506.js → useHealthToolCache-32e3d6d9.js} +1 -1
  200. package/build/esm/{usePlacesAutocomplete-dba4a9a1.js → usePlacesAutocomplete-4ec2c43f.js} +4 -2
  201. package/build/esm/useTogetherAuthRequiredAction.js +10 -10
  202. package/build/esm/{utils-ff9d08dd.js → utils-03be42a6.js} +2 -2
  203. package/build/esm/{utils-571711a7.js → utils-ab71b4b1.js} +2 -2
  204. package/build/esm/{utils-af71a160.js → utils-c729484a.js} +5 -5
  205. package/build/esm/{utils-88e98fd0.js → utils-f4d1c5fb.js} +3 -3
  206. package/build/esm/vaccination.js +22 -22
  207. package/build/footer.js +22 -22
  208. package/build/gAssets.js +2 -2
  209. package/build/{healthTools-8fcbf9cb.js → healthTools-85e5eb32.js} +1 -1
  210. package/build/healthToolsCardWrapper.js +19 -19
  211. package/build/healthToolsForm.js +34 -34
  212. package/build/hooks/usePlacesAutocomplete.d.ts +1 -1
  213. package/build/hooks.js +13 -13
  214. package/build/i18n.js +2 -2
  215. package/build/i18nV2.js +1 -1
  216. package/build/{index-7f031a12.js → index-02c87bc2.js} +1 -1
  217. package/build/{index-605988c9.js → index-0ca0f026.js} +2 -2
  218. package/build/{index-6c909f71.js → index-0ee812d6.js} +1 -1
  219. package/build/{index-32ff06ec.js → index-0f5669eb.js} +6 -6
  220. package/build/{index-dcddc40b.js → index-1055cd24.js} +7 -7
  221. package/build/{index-d52172cd.js → index-1a10efaa.js} +13 -13
  222. package/build/{index-b4ffee63.js → index-1ffd5b21.js} +17 -17
  223. package/build/{index-e9201988.js → index-2265eeea.js} +1 -1
  224. package/build/{index-097b73ee.js → index-24708627.js} +2 -2
  225. package/build/{index-ab0aecdf.js → index-268b532d.js} +13 -13
  226. package/build/{index-d75145b9.js → index-28cbbdf4.js} +13 -13
  227. package/build/{index-85aea174.js → index-296e15ed.js} +3 -3
  228. package/build/{index-7371e42a.js → index-2adbe7a3.js} +3 -3
  229. package/build/{index-3652c464.js → index-2cb14b4b.js} +1 -1
  230. package/build/{index-1c843fb8.js → index-30a19bc1.js} +3 -3
  231. package/build/{index-49973bc7.js → index-31b43caf.js} +5 -5
  232. package/build/{index-204a2ad8.js → index-32ed78c5.js} +6 -6
  233. package/build/{index-2f16facd.js → index-3867da1b.js} +11 -11
  234. package/build/{index-b9d7f71f.js → index-3c38a412.js} +32 -32
  235. package/build/{index-33e29259.js → index-415315a9.js} +3 -3
  236. package/build/{index-2b50e942.js → index-429c9b6b.js} +1 -1
  237. package/build/{index-d62fced9.js → index-4fa88469.js} +9 -15
  238. package/build/{index-b955105d.js → index-58937d75.js} +3 -3
  239. package/build/{index-98602f9c.js → index-5e659205.js} +2 -2
  240. package/build/{index-002cff3a.js → index-601b4ce2.js} +24 -24
  241. package/build/{index-050b9c5b.js → index-612cc9b9.js} +2 -2
  242. package/build/{index-02a489d8.js → index-63955802.js} +2 -2
  243. package/build/{index-3ca3ddbf.js → index-63ca536c.js} +15 -15
  244. package/build/{index-a167563e.js → index-6a8c7325.js} +3 -3
  245. package/build/{index-cd8dbd4b.js → index-6b87a7fc.js} +7 -7
  246. package/build/{index-a1ebbcf2.js → index-6c58b0da.js} +2 -2
  247. package/build/{index-0d874567.js → index-6ef7a536.js} +30 -30
  248. package/build/{index-e09c89e1.js → index-6fe359e8.js} +3 -3
  249. package/build/{index-68615221.js → index-72851afc.js} +2 -2
  250. package/build/{index-0c674f5d.js → index-756642cb.js} +13 -13
  251. package/build/{index-8d49789b.js → index-7bed6df2.js} +22 -22
  252. package/build/{index-18387a84.js → index-7fa743ce.js} +15 -15
  253. package/build/{index-9368aafc.js → index-8bbbf05b.js} +32 -32
  254. package/build/{index-632f001a.js → index-8de31573.js} +21 -41
  255. package/build/{index-7eca4986.js → index-9f47550e.js} +2 -2
  256. package/build/{index-992eb4a3.js → index-a4476544.js} +2 -2
  257. package/build/{index-a4d319f4.js → index-a7704a96.js} +4 -4
  258. package/build/{index-c7f729c9.js → index-aa0d5699.js} +6 -6
  259. package/build/{index-f985b319.js → index-af62f473.js} +25 -25
  260. package/build/{index-adb92a94.js → index-b27ddca8.js} +13 -13
  261. package/build/{index-f54ae3b8.js → index-b4632771.js} +6 -6
  262. package/build/{index-f29e9558.js → index-bd6f500a.js} +1 -1
  263. package/build/{index-72dfeaab.js → index-c370ee7b.js} +16 -16
  264. package/build/{index-3b64494c.js → index-c40d61a0.js} +1 -1
  265. package/build/{index-dbb95235.js → index-cbf09c07.js} +5 -5
  266. package/build/{index-e9faf187.js → index-cd2b1a11.js} +17 -17
  267. package/build/{index-40eae545.js → index-cd711b45.js} +17 -17
  268. package/build/{index-14d583f2.js → index-d0f4b4f2.js} +2 -2
  269. package/build/{index-f46f9b08.js → index-d6fc5f76.js} +10 -10
  270. package/build/{index-c3db379e.js → index-d76cd192.js} +2 -2
  271. package/build/{index-6a6f0306.js → index-d87e96bb.js} +13 -13
  272. package/build/{index-b823faed.js → index-d94aa2e3.js} +1 -1
  273. package/build/{index-3f4406de.js → index-daf4d41c.js} +16 -16
  274. package/build/{index-c5f6b721.js → index-db657b3c.js} +17 -17
  275. package/build/{index-6d3687b7.js → index-e43f9d13.js} +8 -8
  276. package/build/{index-f3a410ea.js → index-ef521b19.js} +3 -3
  277. package/build/{index-6526eafd.js → index-f51bb35f.js} +2 -2
  278. package/build/{index-e5454498.js → index-f5aea36a.js} +2 -2
  279. package/build/{index-e274b7a0.js → index-f714c7c6.js} +2 -2
  280. package/build/{index-84832bc4.js → index-f845e499.js} +15 -15
  281. package/build/{index-8c965662.js → index-fb56674a.js} +6 -6
  282. package/build/{index-df0bb039.js → index-fb9c6a3e.js} +4 -4
  283. package/build/{index-67d60135.js → index-fc658a63.js} +2 -2
  284. package/build/index.js +119 -119
  285. package/build/{labelSorting-cc600168.js → labelSorting-5efd4233.js} +4 -4
  286. package/build/lead/LeadGen.helpers.d.ts +2 -2
  287. package/build/lead/LeadGen.type.d.ts +3 -0
  288. package/build/lead/LeadGenInline/LeadGenInline.d.ts +8 -0
  289. package/build/lead/LeadGenInline/index.d.ts +2 -0
  290. package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +19 -12
  291. package/build/lead/index.d.ts +5 -1
  292. package/build/lead/layouts/inline.d.ts +3 -2
  293. package/build/lead/layouts/lightbox/index.d.ts +2 -1
  294. package/build/lead/newLeadPopup.d.ts +2 -1
  295. package/build/lead/services/index.d.ts +4 -0
  296. package/build/lead/services/index.type.d.ts +5 -0
  297. package/build/lead/utils.d.ts +18 -0
  298. package/build/lead.js +414 -312
  299. package/build/{logoIcon-0a117d46.js → logoIcon-9f7c0032.js} +2 -2
  300. package/build/mantine.js +24 -24
  301. package/build/misc/cachedSystem.d.ts +5 -0
  302. package/build/misc.js +18 -18
  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 +75 -75
  309. package/build/moleculesArticleCard.js +6 -6
  310. package/build/moleculesArticleCardV2.js +17 -17
  311. package/build/navigation.js +47 -47
  312. package/build/navigationLogoutPopup.js +11 -11
  313. package/build/navigationProfileButton.js +27 -27
  314. package/build/onboardingV2.js +29 -29
  315. package/build/organisms.js +51 -51
  316. package/build/{post-52f54e2f.js → post-146fd5fe.js} +2 -2
  317. package/build/profileNavigation.js +20 -20
  318. package/build/progressBar.js +1 -1
  319. package/build/pwg.js +23 -23
  320. package/build/ssoV2/api/featureFlag.d.ts +2 -1
  321. package/build/ssoV2.js +51 -39
  322. package/build/{store-e689152a.js → store-ba505d6a.js} +3 -3
  323. package/build/subot.js +36 -36
  324. package/build/surveyOrPremiumBanner.js +34 -34
  325. package/build/surveyQuestionCard.js +11 -11
  326. package/build/{surveyThankyouCard-c43b12d8.js → surveyThankyouCard-9b26148e.js} +5 -5
  327. package/build/together.js +57 -57
  328. package/build/togetherApiUtils.js +4 -4
  329. package/build/togetherAtoms.js +31 -31
  330. package/build/togetherComponentGlobalContext.js +4 -4
  331. package/build/togetherMolecules.js +52 -52
  332. package/build/togetherMoleculesCardAuthor.js +29 -29
  333. package/build/togetherMoleculesPostImagePreview.js +11 -11
  334. package/build/togetherMoleculesProfileDetail.js +40 -40
  335. package/build/togetherOrganisms.js +51 -51
  336. package/build/togetherRichTextEditor.js +18 -18
  337. package/build/togetherShareBox.js +10 -10
  338. package/build/{translationsProvider-bc9d804c.js → translationsProvider-d88a150a.js} +1 -1
  339. package/build/{treePopoverMenu-3e0404a8.js → treePopoverMenu-4ff31bad.js} +19 -19
  340. package/build/{types-77be4eec.js → types-6113ffdf.js} +2 -2
  341. package/build/types.js +2 -2
  342. package/build/{useCategory-f29c91a5.js → useCategory-aa5f1b9e.js} +5 -5
  343. package/build/{useHealthToolCache-1c9fd3c3.js → useHealthToolCache-f3974059.js} +1 -1
  344. package/build/{usePlacesAutocomplete-f35d6e60.js → usePlacesAutocomplete-7bb8ea02.js} +4 -2
  345. package/build/useTogetherAuthRequiredAction.js +10 -10
  346. package/build/{utils-6bdfb61a.js → utils-15cf4bed.js} +3 -3
  347. package/build/{utils-9bc02405.js → utils-82bb3b31.js} +2 -2
  348. package/build/{utils-011c0e91.js → utils-b1712bb6.js} +2 -2
  349. package/build/{utils-83c71cbf.js → utils-feeb55f4.js} +5 -5
  350. package/build/vaccination.js +22 -22
  351. package/package.json +1 -1
  352. /package/build/{BMI_BOYS.percentile.monthly-b4faa860.js → BMI_BOYS.percentile.monthly-1d037709.js} +0 -0
  353. /package/build/{BMI_BOYS.percentile.weekly-3ba814df.js → BMI_BOYS.percentile.weekly-3bbb61f3.js} +0 -0
  354. /package/build/{BMI_BOYS.percentile.yearly-f4338b7a.js → BMI_BOYS.percentile.yearly-da2c6c1f.js} +0 -0
  355. /package/build/{BMI_BOYS.zscore.monthly-66d8b375.js → BMI_BOYS.zscore.monthly-fb0ece7d.js} +0 -0
  356. /package/build/{BMI_BOYS.zscore.weekly-137023bb.js → BMI_BOYS.zscore.weekly-8415733b.js} +0 -0
  357. /package/build/{BMI_BOYS.zscore.yearly-a9a22b26.js → BMI_BOYS.zscore.yearly-ccde3de8.js} +0 -0
  358. /package/build/{BMI_GIRLS.percentile.monthly-40d3eee1.js → BMI_GIRLS.percentile.monthly-8ce3df66.js} +0 -0
  359. /package/build/{BMI_GIRLS.percentile.weekly-9952207b.js → BMI_GIRLS.percentile.weekly-71b8f9cf.js} +0 -0
  360. /package/build/{BMI_GIRLS.percentile.yearly-15acf170.js → BMI_GIRLS.percentile.yearly-03be2266.js} +0 -0
  361. /package/build/{BMI_GIRLS.zscore.monthly-045a1f3f.js → BMI_GIRLS.zscore.monthly-c4964f7c.js} +0 -0
  362. /package/build/{BMI_GIRLS.zscore.weekly-e6706011.js → BMI_GIRLS.zscore.weekly-5d7413af.js} +0 -0
  363. /package/build/{BMI_GIRLS.zscore.yearly-59219080.js → BMI_GIRLS.zscore.yearly-243d5a3f.js} +0 -0
  364. /package/build/{ChevronDown-c0ebcad8.js → ChevronDown-d280dae8.js} +0 -0
  365. /package/build/{Close-8822588e.js → Close-0fa9f81b.js} +0 -0
  366. /package/build/{Google-52c1192f.js → Google-988168e0.js} +0 -0
  367. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-0c543b9e.js → HEAD CIRCUM_BOYS.percentile.monthly-5a50cdbb.js} +0 -0
  368. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1454c62c.js → HEAD CIRCUM_BOYS.percentile.weekly-2f4858ec.js} +0 -0
  369. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-14221a61.js → HEAD CIRCUM_BOYS.percentile.yearly-b595af4a.js} +0 -0
  370. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-6adc1056.js → HEAD CIRCUM_BOYS.zscore.monthly-fd0a1e09.js} +0 -0
  371. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-f69c08eb.js → HEAD CIRCUM_BOYS.zscore.weekly-4e35b365.js} +0 -0
  372. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-f07b8bdb.js → HEAD CIRCUM_BOYS.zscore.yearly-d3ab7127.js} +0 -0
  373. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-c3184bd8.js → HEAD CIRCUM_GIRLS.percentile.monthly-7dc420e6.js} +0 -0
  374. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e674d15d.js → HEAD CIRCUM_GIRLS.percentile.weekly-91e84da9.js} +0 -0
  375. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-18247323.js → HEAD CIRCUM_GIRLS.percentile.yearly-f487601a.js} +0 -0
  376. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f8924dec.js → HEAD CIRCUM_GIRLS.zscore.monthly-6e2a47b4.js} +0 -0
  377. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-d20cce05.js → HEAD CIRCUM_GIRLS.zscore.weekly-195aa890.js} +0 -0
  378. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-e6426d54.js → HEAD CIRCUM_GIRLS.zscore.yearly-a4f042c7.js} +0 -0
  379. /package/build/{HEIGHT_BOYS.percentile.monthly-db562663.js → HEIGHT_BOYS.percentile.monthly-76acdffd.js} +0 -0
  380. /package/build/{HEIGHT_BOYS.percentile.weekly-3d57e461.js → HEIGHT_BOYS.percentile.weekly-62bd8963.js} +0 -0
  381. /package/build/{HEIGHT_BOYS.percentile.yearly-9603b0da.js → HEIGHT_BOYS.percentile.yearly-b005b618.js} +0 -0
  382. /package/build/{HEIGHT_BOYS.zscore.monthly-959d557c.js → HEIGHT_BOYS.zscore.monthly-9aa52f61.js} +0 -0
  383. /package/build/{HEIGHT_BOYS.zscore.weekly-41a88700.js → HEIGHT_BOYS.zscore.weekly-f0051e9d.js} +0 -0
  384. /package/build/{HEIGHT_BOYS.zscore.yearly-3cf74487.js → HEIGHT_BOYS.zscore.yearly-1b4ebed9.js} +0 -0
  385. /package/build/{HEIGHT_GIRLS.percentile.monthly-eb92e6fd.js → HEIGHT_GIRLS.percentile.monthly-171d9e8e.js} +0 -0
  386. /package/build/{HEIGHT_GIRLS.percentile.weekly-b96b7097.js → HEIGHT_GIRLS.percentile.weekly-6c0a1818.js} +0 -0
  387. /package/build/{HEIGHT_GIRLS.percentile.yearly-753f5811.js → HEIGHT_GIRLS.percentile.yearly-b08c1d43.js} +0 -0
  388. /package/build/{HEIGHT_GIRLS.zscore.monthly-109e9692.js → HEIGHT_GIRLS.zscore.monthly-93918315.js} +0 -0
  389. /package/build/{HEIGHT_GIRLS.zscore.weekly-cf668088.js → HEIGHT_GIRLS.zscore.weekly-a9838718.js} +0 -0
  390. /package/build/{HEIGHT_GIRLS.zscore.yearly-a455ca33.js → HEIGHT_GIRLS.zscore.yearly-750c9cec.js} +0 -0
  391. /package/build/{Locale-ad67764b.js → Locale-366643f6.js} +0 -0
  392. /package/build/{Visible-0900e756.js → Visible-6bf902c1.js} +0 -0
  393. /package/build/{WEIGHT_BOYS.percentile.monthly-244eee9a.js → WEIGHT_BOYS.percentile.monthly-75d893b1.js} +0 -0
  394. /package/build/{WEIGHT_BOYS.percentile.weekly-706bb6a9.js → WEIGHT_BOYS.percentile.weekly-21085ab5.js} +0 -0
  395. /package/build/{WEIGHT_BOYS.percentile.yearly-4ca0bb16.js → WEIGHT_BOYS.percentile.yearly-045c57ed.js} +0 -0
  396. /package/build/{WEIGHT_BOYS.zscore.monthly-7f4f6f1d.js → WEIGHT_BOYS.zscore.monthly-a389150a.js} +0 -0
  397. /package/build/{WEIGHT_BOYS.zscore.weekly-6ff91768.js → WEIGHT_BOYS.zscore.weekly-f5410a6b.js} +0 -0
  398. /package/build/{WEIGHT_BOYS.zscore.yearly-d8c91411.js → WEIGHT_BOYS.zscore.yearly-b215f167.js} +0 -0
  399. /package/build/{WEIGHT_GIRLS.percentile.monthly-93b3fcd1.js → WEIGHT_GIRLS.percentile.monthly-c1c9483f.js} +0 -0
  400. /package/build/{WEIGHT_GIRLS.percentile.weekly-50fc8295.js → WEIGHT_GIRLS.percentile.weekly-6174746a.js} +0 -0
  401. /package/build/{WEIGHT_GIRLS.percentile.yearly-a55e2dfb.js → WEIGHT_GIRLS.percentile.yearly-edad71dd.js} +0 -0
  402. /package/build/{WEIGHT_GIRLS.zscore.monthly-cfa8d179.js → WEIGHT_GIRLS.zscore.monthly-e735ee30.js} +0 -0
  403. /package/build/{WEIGHT_GIRLS.zscore.weekly-174529f1.js → WEIGHT_GIRLS.zscore.weekly-5d5f4171.js} +0 -0
  404. /package/build/{WEIGHT_GIRLS.zscore.yearly-472ee0b9.js → WEIGHT_GIRLS.zscore.yearly-a29f2713.js} +0 -0
  405. /package/build/{animation-f98f7be4.js → animation-cfe0ef22.js} +0 -0
  406. /package/build/{constants-5c7e7b94.js → constants-0ed23d09.js} +0 -0
  407. /package/build/{constants-9dfd8e58.js → constants-a8611a01.js} +0 -0
  408. /package/build/{constants-62a930d3.js → constants-c27a8035.js} +0 -0
  409. /package/build/{dataTransform-f3458ddb.js → dataTransform-138b7a3d.js} +0 -0
  410. /package/build/esm/{BMI_BOYS.percentile.monthly-d81faf37.js → BMI_BOYS.percentile.monthly-78d4a592.js} +0 -0
  411. /package/build/esm/{BMI_BOYS.percentile.weekly-c0a180c1.js → BMI_BOYS.percentile.weekly-ff9040ea.js} +0 -0
  412. /package/build/esm/{BMI_BOYS.percentile.yearly-2c71c69f.js → BMI_BOYS.percentile.yearly-fcbd5e66.js} +0 -0
  413. /package/build/esm/{BMI_BOYS.zscore.monthly-ab115475.js → BMI_BOYS.zscore.monthly-8a66782b.js} +0 -0
  414. /package/build/esm/{BMI_BOYS.zscore.weekly-72deeb0f.js → BMI_BOYS.zscore.weekly-4a6a951a.js} +0 -0
  415. /package/build/esm/{BMI_BOYS.zscore.yearly-4fc57689.js → BMI_BOYS.zscore.yearly-8557d199.js} +0 -0
  416. /package/build/esm/{BMI_GIRLS.percentile.monthly-d6c9fe58.js → BMI_GIRLS.percentile.monthly-eb78528f.js} +0 -0
  417. /package/build/esm/{BMI_GIRLS.percentile.weekly-f1658e86.js → BMI_GIRLS.percentile.weekly-4080e040.js} +0 -0
  418. /package/build/esm/{BMI_GIRLS.percentile.yearly-4826bd42.js → BMI_GIRLS.percentile.yearly-a756a0ad.js} +0 -0
  419. /package/build/esm/{BMI_GIRLS.zscore.monthly-3fbb7d97.js → BMI_GIRLS.zscore.monthly-0a2ccb7b.js} +0 -0
  420. /package/build/esm/{BMI_GIRLS.zscore.weekly-34fe7c5d.js → BMI_GIRLS.zscore.weekly-bec1efb4.js} +0 -0
  421. /package/build/esm/{BMI_GIRLS.zscore.yearly-b2382d89.js → BMI_GIRLS.zscore.yearly-4a122321.js} +0 -0
  422. /package/build/esm/{ChevronDown-d9fdd713.js → ChevronDown-9225a593.js} +0 -0
  423. /package/build/esm/{Close-de34c565.js → Close-f1da2174.js} +0 -0
  424. /package/build/esm/{Google-6dc0d9cd.js → Google-eec62a77.js} +0 -0
  425. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c25cb829.js → HEAD CIRCUM_BOYS.percentile.monthly-51c1f16c.js} +0 -0
  426. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-4abc8ae1.js → HEAD CIRCUM_BOYS.percentile.weekly-5aad905b.js} +0 -0
  427. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-60cf9ae3.js → HEAD CIRCUM_BOYS.percentile.yearly-0644b75f.js} +0 -0
  428. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-84203fca.js → HEAD CIRCUM_BOYS.zscore.monthly-097e499d.js} +0 -0
  429. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-340ae55f.js → HEAD CIRCUM_BOYS.zscore.weekly-66f310ca.js} +0 -0
  430. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-5be3f3d1.js → HEAD CIRCUM_BOYS.zscore.yearly-79bf63ed.js} +0 -0
  431. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-52a92f61.js → HEAD CIRCUM_GIRLS.percentile.monthly-d51921b0.js} +0 -0
  432. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-ea4b4a9a.js → HEAD CIRCUM_GIRLS.percentile.weekly-16e7dd3c.js} +0 -0
  433. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-2a50c39c.js → HEAD CIRCUM_GIRLS.percentile.yearly-350d2c8d.js} +0 -0
  434. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-f1c6824c.js → HEAD CIRCUM_GIRLS.zscore.monthly-f75bd64f.js} +0 -0
  435. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-592f1db3.js → HEAD CIRCUM_GIRLS.zscore.weekly-820a263a.js} +0 -0
  436. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a9b49454.js → HEAD CIRCUM_GIRLS.zscore.yearly-7786916e.js} +0 -0
  437. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ce935278.js → HEIGHT_BOYS.percentile.monthly-25da1d57.js} +0 -0
  438. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-6f0721e0.js → HEIGHT_BOYS.percentile.weekly-b4eff898.js} +0 -0
  439. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-67ea9fb4.js → HEIGHT_BOYS.percentile.yearly-acddcb6b.js} +0 -0
  440. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-2e379bfe.js → HEIGHT_BOYS.zscore.monthly-405cd241.js} +0 -0
  441. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-5f9af3af.js → HEIGHT_BOYS.zscore.weekly-5a9e7d28.js} +0 -0
  442. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-40f25731.js → HEIGHT_BOYS.zscore.yearly-56fb7b3c.js} +0 -0
  443. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-207a9633.js → HEIGHT_GIRLS.percentile.monthly-14947ae8.js} +0 -0
  444. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-fc6f24cb.js → HEIGHT_GIRLS.percentile.weekly-85e09f7c.js} +0 -0
  445. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-e6677432.js → HEIGHT_GIRLS.percentile.yearly-4f645c5d.js} +0 -0
  446. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-18b548de.js → HEIGHT_GIRLS.zscore.monthly-f203b4d1.js} +0 -0
  447. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-537a04c5.js → HEIGHT_GIRLS.zscore.weekly-8bcaa5b2.js} +0 -0
  448. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-39d445ef.js → HEIGHT_GIRLS.zscore.yearly-78fa2691.js} +0 -0
  449. /package/build/esm/{Locale-f790f969.js → Locale-7c177439.js} +0 -0
  450. /package/build/esm/{Visible-c0655254.js → Visible-c1d4a1c9.js} +0 -0
  451. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-801e855e.js → WEIGHT_BOYS.percentile.monthly-f74ba58b.js} +0 -0
  452. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-2f98cfab.js → WEIGHT_BOYS.percentile.weekly-3a4fbb80.js} +0 -0
  453. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-36f6db78.js → WEIGHT_BOYS.percentile.yearly-c65a32e1.js} +0 -0
  454. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ec5c45a4.js → WEIGHT_BOYS.zscore.monthly-3ed58d1d.js} +0 -0
  455. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-504be958.js → WEIGHT_BOYS.zscore.weekly-8c0fbbe8.js} +0 -0
  456. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-1b0759aa.js → WEIGHT_BOYS.zscore.yearly-aa696db8.js} +0 -0
  457. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-9ed383de.js → WEIGHT_GIRLS.percentile.monthly-cfda4fd3.js} +0 -0
  458. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3ca3d5f0.js → WEIGHT_GIRLS.percentile.weekly-199c8d66.js} +0 -0
  459. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-1f50c118.js → WEIGHT_GIRLS.percentile.yearly-c1df4116.js} +0 -0
  460. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-8304350e.js → WEIGHT_GIRLS.zscore.monthly-005a50de.js} +0 -0
  461. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-7eaf74e7.js → WEIGHT_GIRLS.zscore.weekly-83f2d9a1.js} +0 -0
  462. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-dc124629.js → WEIGHT_GIRLS.zscore.yearly-9056f0e1.js} +0 -0
  463. /package/build/esm/{animation-6525a8ba.js → animation-46c77276.js} +0 -0
  464. /package/build/esm/{constants-a1998f96.js → constants-12c90134.js} +0 -0
  465. /package/build/esm/{constants-e83c4835.js → constants-290c3b11.js} +0 -0
  466. /package/build/esm/{constants-19687a3a.js → constants-f6a00864.js} +0 -0
  467. /package/build/esm/{dataTransform-a816c62f.js → dataTransform-99c4fd58.js} +0 -0
  468. /package/build/esm/{index-17b2e787.js → index-19f01623.js} +0 -0
  469. /package/build/esm/{index-75a8e1d9.js → index-31c06d2f.js} +0 -0
  470. /package/build/esm/{index-bbd26363.js → index-4220b8db.js} +0 -0
  471. /package/build/esm/{index-ab21e8cf.js → index-50b7813b.js} +0 -0
  472. /package/build/esm/{index-46de244d.js → index-5ce211bb.js} +0 -0
  473. /package/build/esm/{index-461f72c9.js → index-65955e1c.js} +0 -0
  474. /package/build/esm/{index-1d5359d8.js → index-65a121e5.js} +0 -0
  475. /package/build/esm/{index-73d49015.js → index-c635d501.js} +0 -0
  476. /package/build/esm/{index.styles-05fc133d.js → index.styles-e988de17.js} +0 -0
  477. /package/build/esm/{localizeNumberFormat-d6dc554a.js → localizeNumberFormat-12cf4023.js} +0 -0
  478. /package/build/esm/{normalizeLink-8db8cf91.js → normalizeLink-47a460df.js} +0 -0
  479. /package/build/esm/{number-16fb6967.js → number-59cca451.js} +0 -0
  480. /package/build/esm/{paths-9e2e6286.js → paths-047b41af.js} +0 -0
  481. /package/build/esm/{shared-887e5430.js → shared-0d99adda.js} +0 -0
  482. /package/build/esm/{text-48aef61b.js → text-76c3e90e.js} +0 -0
  483. /package/build/esm/{translationsContext-40d5537d.js → translationsContext-0c20459e.js} +0 -0
  484. /package/build/esm/{tslib.es6-107c23d7.js → tslib.es6-d2424a34.js} +0 -0
  485. /package/build/esm/{types-b3dd17dd.js → types-113c6d92.js} +0 -0
  486. /package/build/esm/{useIsInit-21e41918.js → useIsInit-35debeda.js} +0 -0
  487. /package/build/esm/{useOutsideClick-92a43854.js → useOutsideClick-5c2d5374.js} +0 -0
  488. /package/build/esm/{useScrollbarSize-83c6ab6a.js → useScrollbarSize-01efff12.js} +0 -0
  489. /package/build/esm/{useUniqueId-17d236b9.js → useUniqueId-a6170f09.js} +0 -0
  490. /package/build/esm/{utils-50ee2849.js → utils-369f3418.js} +0 -0
  491. /package/build/{index-785fe918.js → index-0a97a2ea.js} +0 -0
  492. /package/build/{index-3b6b4aac.js → index-1714fb71.js} +0 -0
  493. /package/build/{index-e54b95b0.js → index-25e01312.js} +0 -0
  494. /package/build/{index-914f1ae3.js → index-557376af.js} +0 -0
  495. /package/build/{index-034cefcd.js → index-7f7e3d7a.js} +0 -0
  496. /package/build/{index-80681439.js → index-a408be9a.js} +0 -0
  497. /package/build/{index-0b41df81.js → index-b40a3e58.js} +0 -0
  498. /package/build/{index-602e6169.js → index-c07f3b33.js} +0 -0
  499. /package/build/{index.styles-90997e57.js → index.styles-4197eb52.js} +0 -0
  500. /package/build/{localizeNumberFormat-1052a141.js → localizeNumberFormat-22971b14.js} +0 -0
  501. /package/build/{normalizeLink-935ea0d1.js → normalizeLink-6c154492.js} +0 -0
  502. /package/build/{number-61f6f307.js → number-e1ed6c68.js} +0 -0
  503. /package/build/{paths-bab694f2.js → paths-b26c7673.js} +0 -0
  504. /package/build/{shared-a2f1ce7d.js → shared-860a366c.js} +0 -0
  505. /package/build/{text-af5ab4c9.js → text-6dedba33.js} +0 -0
  506. /package/build/{translationsContext-a73ceb20.js → translationsContext-267f8dfd.js} +0 -0
  507. /package/build/{tslib.es6-5033cbef.js → tslib.es6-99840f8f.js} +0 -0
  508. /package/build/{types-4ce4f15d.js → types-5a5ba6e3.js} +0 -0
  509. /package/build/{useIsInit-6563d2c6.js → useIsInit-e9d11ec5.js} +0 -0
  510. /package/build/{useOutsideClick-12b7c9d2.js → useOutsideClick-daab3358.js} +0 -0
  511. /package/build/{useScrollbarSize-854ca661.js → useScrollbarSize-948f9e22.js} +0 -0
  512. /package/build/{useUniqueId-d1da65c9.js → useUniqueId-6ade25ea.js} +0 -0
  513. /package/build/{utils-8e23afe2.js → utils-b6a1148e.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-5033cbef.js');
5
+ var tslib_es6 = require('./tslib.es6-99840f8f.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-df0bb039.js');
11
+ var index = require('./index-fb9c6a3e.js');
12
12
  var miscCookieHelper = require('./miscCookieHelper.js');
13
- var index$1 = require('./index-e9201988.js');
14
- var translationsContext = require('./translationsContext-a73ceb20.js');
15
- var utils$1 = require('./utils-8e23afe2.js');
16
- var index$2 = require('./index-e5454498.js');
17
- var index$3 = require('./index-d62fced9.js');
18
- var index$5 = require('./index-c7f729c9.js');
19
- var index$4 = require('./index-f3a410ea.js');
20
- require('./index.styles-90997e57.js');
13
+ var index$1 = require('./index-2265eeea.js');
14
+ var translationsContext = require('./translationsContext-267f8dfd.js');
15
+ var utils$1 = require('./utils-b6a1148e.js');
16
+ var index$2 = require('./index-f5aea36a.js');
17
+ var index$3 = require('./index-4fa88469.js');
18
+ var index$5 = require('./index-aa0d5699.js');
19
+ var index$4 = require('./index-ef521b19.js');
20
+ require('./index.styles-4197eb52.js');
21
21
  var hooks = require('@mantine/hooks');
22
- require('./index-6d3687b7.js');
23
- var text = require('./text-af5ab4c9.js');
24
- require('./index-e09c89e1.js');
25
- var utils = require('./utils-011c0e91.js');
22
+ require('./index-e43f9d13.js');
23
+ var text = require('./text-6dedba33.js');
24
+ require('./index-6fe359e8.js');
25
+ var utils = require('./utils-b1712bb6.js');
26
26
  var dates = require('@mantine/dates');
27
- var index$7 = require('./index-02a489d8.js');
28
- var index$a = require('./index-6c909f71.js');
29
- require('./index-034cefcd.js');
30
- var usePlacesAutocomplete = require('./usePlacesAutocomplete-f35d6e60.js');
31
- var index$6 = require('./index-050b9c5b.js');
32
- var translationsProvider = require('./translationsProvider-bc9d804c.js');
33
- var Locale = require('./Locale-ad67764b.js');
27
+ var index$7 = require('./index-63955802.js');
28
+ var index$a = require('./index-0ee812d6.js');
29
+ require('./index-7f7e3d7a.js');
30
+ var usePlacesAutocomplete = require('./usePlacesAutocomplete-7bb8ea02.js');
31
+ var index$6 = require('./index-612cc9b9.js');
32
+ var translationsProvider = require('./translationsProvider-d88a150a.js');
33
+ var Locale = require('./Locale-366643f6.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-6bdfb61a.js');
41
- var index$8 = require('./index-7371e42a.js');
42
- var index$9 = require('./index-914f1ae3.js');
43
- var index$b = require('./index-68615221.js');
40
+ var togetherComponentGlobalContext = require('./utils-15cf4bed.js');
41
+ var index$8 = require('./index-2adbe7a3.js');
42
+ var index$9 = require('./index-557376af.js');
43
+ var index$b = require('./index-72851afc.js');
44
44
  var framerMotion = require('framer-motion');
45
45
  var ReactDOM = require('react-dom');
46
- var InputDate = require('./InputDate-2450cdc3.js');
47
- var index$c = require('./index-67d60135.js');
48
- var Close = require('./Close-8822588e.js');
46
+ var InputDate = require('./InputDate-cdba1a1a.js');
47
+ var index$c = require('./index-fc658a63.js');
48
+ var Close = require('./Close-0fa9f81b.js');
49
49
  require('./constantsIsProduction.js');
50
- require('./normalizeLink-935ea0d1.js');
50
+ require('./normalizeLink-6c154492.js');
51
51
  require('@hhgtech/icons/other');
52
52
  require('@mantine/carousel');
53
53
  require('classnames');
54
- require('./useUniqueId-d1da65c9.js');
54
+ require('./useUniqueId-6ade25ea.js');
55
55
  require('./constantsSite.js');
56
56
  require('@hhgtech/icons/core');
57
- require('./shared-a2f1ce7d.js');
57
+ require('./shared-860a366c.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-785fe918.js');
73
+ require('./index-0a97a2ea.js');
74
74
  require('slugify');
75
75
  require('string-format');
76
76
  require('./togetherApiPaths.js');
77
- require('./constants-62a930d3.js');
77
+ require('./constants-c27a8035.js');
78
78
  require('vaul');
79
79
 
80
80
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -152,33 +152,6 @@ 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
- };
182
155
  const SSO_MAP_LEAD = ['name', 'email', 'birthday', 'phone', 'gender'];
183
156
  const LEAD_LOCALE_DATA$1 = {
184
157
  'vi-VN': {
@@ -261,6 +234,33 @@ const mappingSSOToLead = (userInfoProps) => {
261
234
  return;
262
235
  }
263
236
  };
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,6 +407,55 @@ 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
+
410
459
  class Store {
411
460
  constructor() {
412
461
  this.apiSsoUrl = 'https://staging-id.hellobacsi.com/';
@@ -416,6 +465,8 @@ class Store {
416
465
  }
417
466
  const leadStore = new Store();
418
467
 
468
+ const LEADGEN_CACHE_KEY = 'LeadGen_';
469
+ const LEADGEN_CACHE_TIME = 5 * 60 * 1000; // 5 minutes
419
470
  const METHOD = {
420
471
  GET: 'get',
421
472
  POST: 'POST',
@@ -602,7 +653,19 @@ const trackingSubscription = (data) => {
602
653
  data,
603
654
  });
604
655
  };
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
+ }
605
667
  const Service = {
668
+ getCampaigns,
606
669
  campaignGetById,
607
670
  getCampaignByCode,
608
671
  getSubscriptionBoxInfo,
@@ -1655,12 +1718,6 @@ const getTranslations = (locale) => {
1655
1718
  return translationsMap['en-PH'];
1656
1719
  };
1657
1720
 
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
-
1664
1721
  // import mockLeadData from './mockLeadData'
1665
1722
  const listCampaignScheduled = [];
1666
1723
  const listCampaignScheduledToActivated = [];
@@ -1836,167 +1893,167 @@ function clearPassiveEvent() {
1836
1893
  LEAD_SCROLL_EVENT = null;
1837
1894
  }
1838
1895
  }
1839
- function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
1840
- // clear previous passive event, check for new condition
1841
- clearPassiveEvent();
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()
1860
- })
1861
- .then((data) => {
1862
- var _a, _b, _c, _d;
1863
- LeadLog('List campagin: ', data);
1864
- LEAD_RESET_VAR();
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));
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]);
1879
1938
  }
1880
1939
  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));
1940
+ return false;
1930
1941
  }
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
- }
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);
1996
2018
  }
1997
- else {
1998
- LeadLog('🚧 No lead campaigns on current URL, tags');
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);
1999
2024
  }
2025
+ };
2026
+ window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
2027
+ passive: true,
2028
+ });
2029
+ }
2030
+ }
2031
+ function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
2032
+ // clear previous passive event, check for new condition
2033
+ 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,
2043
+ })
2044
+ .then((campRes) => {
2045
+ LeadLog('List campagin: ', campRes);
2046
+ 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 });
2000
2057
  }
2001
2058
  })
2002
2059
  .catch((err) => {
@@ -2013,31 +2070,72 @@ const LeadLog = (...params) => {
2013
2070
  }
2014
2071
  };
2015
2072
 
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
+
2016
2122
  const LeadGenContext = React.createContext({
2017
- submit(value) {
2123
+ onSubmit(value) {
2018
2124
  /** Init for FAKING function */
2019
2125
  LeadLog('** LeadGen Submit : ', value);
2020
2126
  return Promise.reject(value);
2021
2127
  },
2022
- submitSubscriptionBox(value) {
2128
+ onImpression(value) {
2023
2129
  /** Init for FAKING function */
2024
- LeadLog('** LeadGen SubmitSubscriptionBox : ', value);
2025
- return Promise.reject(value);
2026
- },
2027
- impression(type) {
2028
- /** Init for FAKING function */
2029
- LeadLog('** LeadGen Impression : ', type);
2130
+ LeadLog('** LeadGen Impression : ', value);
2030
2131
  return Promise.reject();
2031
2132
  },
2032
- /** For Subscription Box */
2033
- subscriptionIcon: '',
2034
- subscriptionTitle: '',
2035
- subscriptionPhoneType: '',
2036
2133
  });
2037
2134
  const LeadGenContextProvider = (props) => {
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"]);
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"]);
2039
2136
  const { t } = index$1.useTranslations();
2040
- const [forceCampaign, setForceCampaign] = React.useState(forceCampaignProps);
2137
+ const [rawForceCampaign, setRawForceCampaign] = React.useState(forceCampaignProps);
2138
+ const [forceCampaign, setForceCampaign] = React.useState(() => formatCampaignDetail(forceCampaignProps));
2041
2139
  const [subscriptionInfo, setSubscriptionInfo] = React.useState({
2042
2140
  subscriptionIcon: '',
2043
2141
  subscriptionTitle: '',
@@ -2047,98 +2145,65 @@ const LeadGenContextProvider = (props) => {
2047
2145
  const locale = React.useMemo(() => {
2048
2146
  return localeProps || Locale.LOCALE['PhilippinesEnglish'];
2049
2147
  }, [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
- // )
2079
2148
  // TODO : Update form for LeadGen
2080
- const submit = React.useCallback((data) => {
2149
+ const onSubmit = React.useCallback((data) => {
2081
2150
  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');
2082
2156
  }, []);
2083
2157
  const submitSubscriptionBox = React.useCallback((value) => {
2084
2158
  const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
2085
2159
  // campaign_id,
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 });
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 || '' });
2089
2161
  return Service.postSubscriptionBoxLead({ data });
2090
2162
  }, [
2091
2163
  extraValues,
2092
- site_domain,
2093
- campaign_id,
2094
- article_id,
2095
- article_title,
2096
- category_id,
2097
- url,
2098
- cookie_id,
2099
- ga_client_id,
2164
+ extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
2165
+ siteDomain,
2166
+ articleId,
2167
+ categoryId,
2100
2168
  ]);
2101
- const impression = React.useCallback((type) => {
2102
- const gaCookie = miscCookieHelper.getCookie('_ga') || null;
2169
+ const impressionSubscriptionBox = React.useCallback((type) => {
2103
2170
  const impression = {
2104
2171
  subscription_title: subscriptionInfo.subscriptionTitle,
2105
2172
  name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
2106
2173
  area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
2107
2174
  phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
2108
- site_domain: constantsDomainLocales.domainLocales[locale],
2175
+ site_domain: siteDomain,
2109
2176
  url: location.href.toLowerCase(),
2110
2177
  cookie_id: miscCookieHelper.getCookie('hhg-id'),
2111
- ga_client_id: gaCookie,
2112
- article_title,
2113
- article_id,
2114
- category_id,
2115
- category_name,
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) || '',
2116
2183
  type,
2117
2184
  };
2118
2185
  return Service.trackingSubscription(impression);
2119
2186
  }, [
2120
- campaign_id,
2121
- url,
2122
- article_title,
2123
- cookie_id,
2124
- ga_client_id,
2187
+ articleId,
2125
2188
  categoryId,
2126
- article_id,
2127
2189
  subscriptionInfo.subscriptionTitle,
2190
+ extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
2128
2191
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
2129
2192
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
2130
2193
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
2131
2194
  ]);
2132
2195
  React.useEffect(() => {
2196
+ /** Force Campaign */
2133
2197
  if (forceCampaignProps) {
2134
2198
  setForceCampaign(formatCampaignDetail(forceCampaignProps));
2199
+ setRawForceCampaign(forceCampaignProps);
2135
2200
  return;
2136
2201
  }
2137
2202
  /** For Subscription Box */
2138
2203
  if (categoryId) {
2139
2204
  Service.getSubscriptionBoxInfo({
2140
2205
  category: categoryId,
2141
- site: site_domain,
2206
+ site: siteDomain,
2142
2207
  slug: location === null || location === void 0 ? void 0 : location.pathname,
2143
2208
  }).then((res) => {
2144
2209
  const { _data } = res || {};
@@ -2271,10 +2336,39 @@ const LeadGenContextProvider = (props) => {
2271
2336
  });
2272
2337
  return;
2273
2338
  }
2274
- // if (campaignCodeProps) {
2275
- // fetchCampaign(campaignCodeProps)
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
+ // })
2276
2362
  // }
2277
- }, [forceCampaignProps, campaignCodeProps, categoryId]);
2363
+ }, [
2364
+ forceCampaignProps,
2365
+ campaignCodeProps,
2366
+ categoryId,
2367
+ siteId,
2368
+ siteDomain,
2369
+ apiLeadUrl,
2370
+ DEBUG_URL,
2371
+ ]);
2278
2372
  React.useEffect(() => {
2279
2373
  leadStore.apiSsoUrl = apiSsoUrl;
2280
2374
  leadStore.apiLeadUrl = apiLeadUrl;
@@ -2287,10 +2381,14 @@ const LeadGenContextProvider = (props) => {
2287
2381
  apiLeadUrl,
2288
2382
  apiSubotUrl, locale: localeProps, extraValues,
2289
2383
  articleId,
2290
- categoryId, siteDomain: site_domain, forceCampaign,
2291
- submit,
2384
+ categoryId,
2385
+ siteDomain,
2386
+ forceCampaign,
2387
+ rawForceCampaign,
2388
+ onSubmit,
2389
+ onImpression,
2292
2390
  submitSubscriptionBox,
2293
- impression }) },
2391
+ impressionSubscriptionBox }) },
2294
2392
  React__default["default"].createElement(LeadGenTranslationProvider, { locale: locale }, children)));
2295
2393
  };
2296
2394
  const useLeadGenContext = () => {
@@ -3303,7 +3401,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3303
3401
  const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
3304
3402
  const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
3305
3403
  const { submitBlock } = actionBlocks || {};
3306
- const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impression, } = useLeadGenContext();
3404
+ const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impressionSubscriptionBox, } = useLeadGenContext();
3307
3405
  const { t } = index$1.useTranslations();
3308
3406
  const { action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
3309
3407
  const [loading, setLoading] = React.useState(false);
@@ -3363,7 +3461,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3363
3461
  const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
3364
3462
  const [res] = yield Promise.all([
3365
3463
  submitSubscriptionBox(reqValues),
3366
- impression('submit_form'),
3464
+ impressionSubscriptionBox('submit_form'),
3367
3465
  ]);
3368
3466
  const { _data } = res || {};
3369
3467
  const { model } = _data || {};
@@ -3409,7 +3507,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3409
3507
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
3410
3508
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
3411
3509
  ]);
3412
- return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impression('impression') },
3510
+ return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impressionSubscriptionBox('impression') },
3413
3511
  React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
3414
3512
  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 })),
3415
3513
  !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 })))));
@@ -4144,7 +4242,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
4144
4242
  React__default["default"].createElement(index$4.Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
4145
4243
  };
4146
4244
 
4147
- const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
4245
+ const InlineLayout = ({ flatComponent, content, inlinePosition, doImpression, }) => {
4148
4246
  const target = React.useMemo(() => {
4149
4247
  if (!inlinePosition)
4150
4248
  return null;
@@ -4249,6 +4347,9 @@ const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
4249
4347
  }
4250
4348
  }
4251
4349
  }, [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
+ }
4252
4353
  if (!inlinePosition || !target)
4253
4354
  return null;
4254
4355
  return ReactDOM.createPortal(React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content), target);
@@ -4744,15 +4845,14 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
4744
4845
  const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = tslib_es6.__rest(_d, ["error"]);
4745
4846
  return (React__default["default"].createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
4746
4847
  React__default["default"].createElement(core.Input.Wrapper, { error: error },
4747
- React__default["default"].createElement(index$3.Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default["default"].createElement(index$2.Text, { as: "span", size: "c1", variant: "secondary", dangerouslySetInnerHTML: { __html: data.valueHTML }, styles: (theme) => ({
4848
+ React__default["default"].createElement(index$3.Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default["default"].createElement(index$2.Text, { as: "span", size: "c1", variant: "secondary", dangerouslySetInnerHTML: { __html: data.valueHTML }, styles: {
4748
4849
  root: {
4749
4850
  a: {
4750
- textDecoration: 'underline !important',
4851
+ textDecoration: 'underline',
4751
4852
  textUnderlineOffset: '3px',
4752
- color: `${theme.colors.gray[7]} !important`,
4753
4853
  },
4754
4854
  },
4755
- }) }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }, tncInputProps)))));
4855
+ } }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }, tncInputProps)))));
4756
4856
  }
4757
4857
  return null;
4758
4858
  })));
@@ -5005,7 +5105,7 @@ const LEADGEN_SHOW_HEADER = [
5005
5105
  ];
5006
5106
  // const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
5007
5107
  const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
5008
- 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, }) => {
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, }) => {
5009
5109
  var _a, _b;
5010
5110
  const { primaryColor } = React.useContext(LeadGenContext$1);
5011
5111
  const { isMobile } = index$b.useScreenSize();
@@ -5405,7 +5505,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
5405
5505
  return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
5406
5506
  }
5407
5507
  else if (isInline) {
5408
- return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
5508
+ return (React__default["default"].createElement(InlineLayout, { flatComponent: flatComponent, action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
5409
5509
  }
5410
5510
  return null;
5411
5511
  };
@@ -5498,7 +5598,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
5498
5598
  return null;
5499
5599
  }
5500
5600
  }
5501
- const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
5601
+ const NewLeadPopup = ({ flatComponent, campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
5502
5602
  var _a, _b;
5503
5603
  const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
5504
5604
  const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
@@ -5601,7 +5701,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
5601
5701
  currentLayout == 'Fullscreen' ||
5602
5702
  currentLayout == 'Sidebar' ||
5603
5703
  currentLayout == 'Slider') {
5604
- 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 }));
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 }));
5605
5705
  }
5606
5706
  else if (currentLayout.includes('Skin')) {
5607
5707
  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 }));
@@ -5693,7 +5793,7 @@ const formatTrackingData = (params) => {
5693
5793
  };
5694
5794
 
5695
5795
  // mount css
5696
- const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, }) => {
5796
+ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, flatComponent, }) => {
5697
5797
  var _a, _b;
5698
5798
  const theme = core.useMantineTheme();
5699
5799
  console.log({ theme });
@@ -6035,7 +6135,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
6035
6135
  !!currentLayout &&
6036
6136
  !currentLayout.includes('Inline') &&
6037
6137
  !currentLayout.includes('Sidebar') && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
6038
- 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 })))));
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 })))));
6039
6139
  }))))))));
6040
6140
  };
6041
6141
  const LeadGen = _LeadGen;
@@ -6047,4 +6147,6 @@ LeadGen.OtpForm = OtpBlock$1;
6047
6147
  LeadGen.Close = Close.Close;
6048
6148
 
6049
6149
  exports.LeadGen = LeadGen;
6150
+ exports.LeadGenInline = LeadGenInline;
6050
6151
  exports.LeadGenSubscriptionBox = LeadGenSubscriptionBox;
6152
+ exports.leadGenInlineGetCampaign = leadGenInlineGetCampaign;