@hhgtech/hhg-components 1.29.402 → 1.29.403-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 (529) hide show
  1. package/build/{InputDate-67ffe3ac.js → InputDate-d948c741.js} +3 -3
  2. package/build/{LastPeriod-470b5a3a.js → LastPeriod-5d603918.js} +1 -1
  3. package/build/{Locale-c6661f1a.js → Locale-70a6c4b3.js} +1 -1
  4. package/build/{MobileBottomNavigationIcon-2e8b07fc.js → MobileBottomNavigationIcon-7ca00a15.js} +3 -3
  5. package/build/{Spinner-fb8508c3.js → Spinner-9d7c27c2.js} +1 -1
  6. package/build/{WhatsApp-0550652f.js → WhatsApp-6432dd03.js} +1 -1
  7. package/build/adapters.js +19 -19
  8. package/build/atoms.js +48 -48
  9. package/build/babyGrowth.js +83 -83
  10. package/build/cache.js +2 -2
  11. package/build/care.js +17 -17
  12. package/build/careBookingSearchBar.js +14 -14
  13. package/build/careBookingSearchBarV2.js +15 -15
  14. package/build/components/molecules/impressionTrackingWrapper/index.d.ts +9 -0
  15. package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +3 -1
  16. package/build/components/navigationV2/index.d.ts +13 -1
  17. package/build/components/organisms/navigationProfileButton/index.d.ts +2 -1
  18. package/build/components.js +97 -97
  19. package/build/{constants-ab799375.js → constants-5ceb2038.js} +1 -1
  20. package/build/{constants-1de7952c.js → constants-c6f7c8b7.js} +1 -1
  21. package/build/constants.js +3 -3
  22. package/build/constantsDomainLocales.js +3 -3
  23. package/build/constantsRiskScreener.js +2 -2
  24. package/build/constantsSite.js +2 -2
  25. package/build/{core-ef14789d.js → core-37678a80.js} +1 -1
  26. package/build/{dataTransform-25557600.js → dataTransform-daf8168d.js} +1 -1
  27. package/build/ecom.js +4 -4
  28. package/build/{editor-30a816d5.js → editor-fe36b3ac.js} +11 -11
  29. package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
  30. package/build/embeddedHeathToolCards_babyPoop.js +19 -19
  31. package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
  32. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
  33. package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
  34. package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  35. package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  36. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
  37. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
  38. package/build/esm/{InputDate-93c5e459.js → InputDate-54971665.js} +3 -3
  39. package/build/esm/{LastPeriod-b83426ec.js → LastPeriod-6350da27.js} +1 -1
  40. package/build/esm/{Locale-d66f3a35.js → Locale-cc92b1a5.js} +1 -1
  41. package/build/esm/{MobileBottomNavigationIcon-9154c653.js → MobileBottomNavigationIcon-ff2ebbab.js} +3 -3
  42. package/build/esm/{Spinner-8d172e17.js → Spinner-563b6fc9.js} +1 -1
  43. package/build/esm/{WhatsApp-6c807beb.js → WhatsApp-1a27b7d6.js} +1 -1
  44. package/build/esm/adapters.js +19 -19
  45. package/build/esm/atoms.js +48 -48
  46. package/build/esm/babyGrowth.js +83 -83
  47. package/build/esm/cache.js +2 -2
  48. package/build/esm/care.js +17 -17
  49. package/build/esm/careBookingSearchBar.js +14 -14
  50. package/build/esm/careBookingSearchBarV2.js +15 -15
  51. package/build/esm/components/molecules/impressionTrackingWrapper/index.d.ts +9 -0
  52. package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +3 -1
  53. package/build/esm/components/navigationV2/index.d.ts +13 -1
  54. package/build/esm/components/organisms/navigationProfileButton/index.d.ts +2 -1
  55. package/build/esm/components.js +97 -97
  56. package/build/esm/{constants-1ce79c4b.js → constants-37beb95c.js} +1 -1
  57. package/build/esm/{constants-44a758f4.js → constants-5f9838ce.js} +1 -1
  58. package/build/esm/constants.js +3 -3
  59. package/build/esm/constantsDomainLocales.js +3 -3
  60. package/build/esm/constantsRiskScreener.js +2 -2
  61. package/build/esm/constantsSite.js +2 -2
  62. package/build/esm/{core-bb5eeda6.js → core-aab428d9.js} +1 -1
  63. package/build/esm/{dataTransform-a0af498d.js → dataTransform-772dd0f1.js} +1 -1
  64. package/build/esm/ecom.js +4 -4
  65. package/build/esm/{editor-296581b7.js → editor-7aab4beb.js} +11 -11
  66. package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
  67. package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
  68. package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
  69. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
  70. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
  71. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  72. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  73. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
  74. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
  75. package/build/esm/footer.js +21 -21
  76. package/build/esm/gAssets.js +2 -2
  77. package/build/esm/{healthTools-e6af67e9.js → healthTools-79b37bba.js} +1 -1
  78. package/build/esm/healthToolsCardWrapper.js +18 -18
  79. package/build/esm/healthToolsForm.js +33 -33
  80. package/build/esm/hooks.js +13 -13
  81. package/build/esm/i18n/translationKeys.d.ts +1 -1
  82. package/build/esm/i18n-values/en-PH.js +7 -0
  83. package/build/esm/i18n-values/hi-IN.js +7 -0
  84. package/build/esm/i18n-values/id-ID.js +7 -0
  85. package/build/esm/i18n-values/km-KH.js +7 -0
  86. package/build/esm/i18n-values/ms-MY.js +7 -0
  87. package/build/esm/i18n-values/my-MM.js +7 -0
  88. package/build/esm/i18n-values/th-TH.js +7 -0
  89. package/build/esm/i18n-values/tl-PH.js +7 -0
  90. package/build/esm/i18n-values/vi-VN.js +7 -0
  91. package/build/esm/i18n-values/vi-VN_MB.js +7 -0
  92. package/build/esm/i18n-values/{zh-CN.js → zh-SG.js} +9 -2
  93. package/build/esm/i18n-values/zh-TW.js +7 -0
  94. package/build/esm/i18n.js +3 -2
  95. package/build/esm/i18nV2.js +2 -2
  96. package/build/esm/{index-b3d8b128.js → index-01387477.js} +18 -18
  97. package/build/esm/{index-44e575be.js → index-036b1709.js} +2 -2
  98. package/build/esm/{index-66848657.js → index-04bc9b82.js} +15 -15
  99. package/build/esm/{index-571f47ff.js → index-0620f77b.js} +24 -24
  100. package/build/esm/{index-c26fffb5.js → index-0790b030.js} +13 -13
  101. package/build/esm/{index-db00fff1.js → index-0a8086ff.js} +31 -31
  102. package/build/esm/{index-43f8236b.js → index-0a992e73.js} +16 -16
  103. package/build/esm/{index-282d718f.js → index-1394601b.js} +2 -2
  104. package/build/esm/{index-b4498fcc.js → index-15fb2582.js} +3 -3
  105. package/build/esm/{index-21f64a4d.js → index-173d05b7.js} +22 -22
  106. package/build/esm/{index-3ad5fa37.js → index-1b89fdf7.js} +18 -18
  107. package/build/esm/{index-8490f612.js → index-1c6180ce.js} +2 -2
  108. package/build/esm/{index-06f14c1f.js → index-2085378a.js} +2 -2
  109. package/build/esm/{index-8aac2805.js → index-2e0d741c.js} +2 -2
  110. package/build/esm/{index-3e0d83fd.js → index-30897a47.js} +2 -2
  111. package/build/esm/{index-d0a137c8.js → index-345aa924.js} +2 -2
  112. package/build/esm/{index-10a82486.js → index-34b1a269.js} +21 -21
  113. package/build/esm/{index-e9dc7648.js → index-3b5a6644.js} +18 -18
  114. package/build/esm/{index-8c9bac8b.js → index-3c71000c.js} +1 -1
  115. package/build/esm/{index-a7c5c23f.js → index-4288aebc.js} +6 -6
  116. package/build/esm/{index-e8904085.js → index-4376868f.js} +3 -3
  117. package/build/esm/{index-0bd9d2a5.js → index-4a14c4e2.js} +7 -7
  118. package/build/esm/{index-f151c217.js → index-4a28ccf2.js} +3 -3
  119. package/build/esm/{index-dc25a628.js → index-4cc25dc4.js} +17 -17
  120. package/build/esm/{index-03267752.js → index-591ac007.js} +16 -16
  121. package/build/esm/{index-ebabe771.js → index-5a3722b2.js} +4 -4
  122. package/build/esm/{index-1f43c861.js → index-5cd44826.js} +5 -5
  123. package/build/esm/{index-0d2bab3b.js → index-6a4d2aa7.js} +2 -2
  124. package/build/esm/{index-90bd827d.js → index-7335ca28.js} +3 -3
  125. package/build/esm/{index-b276a790.js → index-78355ee5.js} +2 -2
  126. package/build/esm/{index-be4cf09d.js → index-7ab965ac.js} +1 -1
  127. package/build/esm/{index-878de0b3.js → index-7cf7f15a.js} +1 -1
  128. package/build/esm/{index-8f1bdb43.js → index-7e41d2a3.js} +3 -3
  129. package/build/esm/{index-70a1642d.js → index-81f91377.js} +11 -11
  130. package/build/esm/{index-872110dc.js → index-86bdca7a.js} +32 -32
  131. package/build/esm/{index-0cad27be.js → index-88b3bd92.js} +1 -1
  132. package/build/esm/{index-9e8f52d7.js → index-8d4bfade.js} +13 -13
  133. package/build/esm/{index-ae3f7020.js → index-913cb549.js} +25 -25
  134. package/build/esm/{index-22c8bd62.js → index-932f5d04.js} +1 -1
  135. package/build/esm/{index-7e63be44.js → index-9a065ac1.js} +13 -13
  136. package/build/esm/{index-a8aef664.js → index-9d40a70e.js} +2 -2
  137. package/build/esm/{index-e0337e4f.js → index-9db8753b.js} +13 -13
  138. package/build/esm/{index-703b551a.js → index-9efec73c.js} +2 -2
  139. package/build/esm/{index-0e04697d.js → index-a8a9415e.js} +17 -17
  140. package/build/esm/{index-f87618fa.js → index-b3ddf2c6.js} +1 -1
  141. package/build/esm/{index-3b5ccfc0.js → index-b4f4ec1d.js} +1 -1
  142. package/build/esm/{index-7b2adace.js → index-b734d35f.js} +6 -6
  143. package/build/esm/{index-f8d01876.js → index-b99c0ad3.js} +16 -16
  144. package/build/esm/{index-f21074eb.js → index-c5bfbdd5.js} +17 -17
  145. package/build/esm/{index-a18a92c9.js → index-c711964d.js} +4 -4
  146. package/build/esm/{index-5dc9c599.js → index-c927ff58.js} +5 -5
  147. package/build/esm/{index-0f74b8cb.js → index-c92eb53d.js} +3 -3
  148. package/build/esm/{index-25bf0d9d.js → index-ccf0780a.js} +2 -2
  149. package/build/esm/{index-a670cbef.js → index-ce2dca16.js} +6 -6
  150. package/build/esm/{index-baddb2b4.js → index-d53fac8e.js} +16 -16
  151. package/build/esm/{index-f16e6912.js → index-d67d655a.js} +10 -10
  152. package/build/esm/{index-9d55c9d9.js → index-d67de9c8.js} +48 -142
  153. package/build/esm/{index-fc644071.js → index-db73839b.js} +1 -1
  154. package/build/esm/{index-1c9e9b74.js → index-e4f2a7ff.js} +7 -7
  155. package/build/esm/{index-6635520d.js → index-e5b5c68a.js} +6 -6
  156. package/build/esm/{index-50a6a5d1.js → index-e5bcaad3.js} +1 -1
  157. package/build/esm/{index-092d00a3.js → index-e75b3d16.js} +6 -6
  158. package/build/esm/{index-ee2df990.js → index-f103fdb9.js} +5 -5
  159. package/build/esm/{index-193d45aa.js → index-f3f8a2a1.js} +114 -14
  160. package/build/esm/{index-c96858e6.js → index-fc6dc50a.js} +2 -2
  161. package/build/esm/index.js +118 -118
  162. package/build/esm/interfaces/constants/domainLocales.d.ts +2 -2
  163. package/build/esm/interfaces/types/Locale.d.ts +1 -1
  164. package/build/esm/interfaces/types/index.d.ts +1 -1
  165. package/build/esm/{labelSorting-e5d4543c.js → labelSorting-e64427f2.js} +4 -4
  166. package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +15 -9
  167. package/build/esm/lead/layouts/inline.d.ts +5 -3
  168. package/build/esm/lead/layouts/lightbox/index.d.ts +2 -1
  169. package/build/esm/lead/services/index.d.ts +14 -0
  170. package/build/esm/lead.js +312 -128
  171. package/build/esm/{logoIcon-028913dd.js → logoIcon-a03cf9fb.js} +2 -2
  172. package/build/esm/mantine.js +25 -25
  173. package/build/esm/misc.js +17 -17
  174. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  175. package/build/esm/miscGetSocialList.js +8 -8
  176. package/build/esm/miscScreenSizeContext.js +1 -1
  177. package/build/esm/mobileBottomNavigation.js +5 -5
  178. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  179. package/build/esm/molecules.js +74 -74
  180. package/build/esm/moleculesArticleCard.js +6 -6
  181. package/build/esm/moleculesArticleCardV2.js +16 -16
  182. package/build/esm/navigation.js +46 -46
  183. package/build/esm/navigationLogoutPopup.js +9 -9
  184. package/build/esm/navigationProfileButton.js +30 -23
  185. package/build/esm/onboardingV2.js +29 -29
  186. package/build/esm/organisms.js +50 -50
  187. package/build/esm/{post-e9fe15f8.js → post-e1e2d56d.js} +2 -2
  188. package/build/esm/profileNavigation.js +19 -19
  189. package/build/esm/progressBar.js +1 -1
  190. package/build/esm/pwg.js +22 -22
  191. package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
  192. package/build/esm/ssoV2.js +52 -40
  193. package/build/esm/{store-2e2ab65a.js → store-9d7b1d22.js} +3 -3
  194. package/build/esm/subot.js +36 -36
  195. package/build/esm/surveyOrPremiumBanner.js +33 -33
  196. package/build/esm/surveyQuestionCard.js +10 -10
  197. package/build/esm/{surveyThankyouCard-bb45e1bd.js → surveyThankyouCard-5cdd8163.js} +5 -5
  198. package/build/esm/together.js +56 -56
  199. package/build/esm/togetherApiUtils.js +4 -4
  200. package/build/esm/togetherAtoms.js +30 -30
  201. package/build/esm/togetherComponentGlobalContext.js +4 -4
  202. package/build/esm/togetherMolecules.js +51 -51
  203. package/build/esm/togetherMoleculesCardAuthor.js +28 -28
  204. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  205. package/build/esm/togetherMoleculesProfileDetail.js +39 -39
  206. package/build/esm/togetherOrganisms.js +50 -50
  207. package/build/esm/togetherRichTextEditor.js +17 -17
  208. package/build/esm/togetherShareBox.js +10 -10
  209. package/build/esm/{translationsProvider-50360420.js → translationsProvider-bc217705.js} +3 -2
  210. package/build/esm/{treePopoverMenu-687d32a0.js → treePopoverMenu-de9131b6.js} +19 -19
  211. package/build/esm/{types-c1130ac4.js → types-2227d292.js} +2 -2
  212. package/build/esm/types.js +2 -2
  213. package/build/esm/{useCategory-4bf8de5d.js → useCategory-774492e3.js} +7 -7
  214. package/build/esm/{useHealthToolCache-2ba765ea.js → useHealthToolCache-b01aad27.js} +1 -1
  215. package/build/esm/{useMantineLocale-3cf49008.js → useMantineLocale-29bfac8c.js} +8 -8
  216. package/build/esm/{usePlacesAutocomplete-ed12ac6b.js → usePlacesAutocomplete-ab7aebb1.js} +1 -1
  217. package/build/esm/{useScreenSize-a92a9419.js → useScreenSize-a114e74c.js} +2 -2
  218. package/build/esm/useTogetherAuthRequiredAction.js +10 -10
  219. package/build/esm/{utils-803e26a6.js → utils-0010a87f.js} +5 -5
  220. package/build/esm/{utils-c779dd3d.js → utils-8ddf61ca.js} +2 -2
  221. package/build/esm/{utils-4efed82e.js → utils-94c01f5c.js} +2 -2
  222. package/build/esm/{utils-7d0b551e.js → utils-a371733e.js} +3 -3
  223. package/build/esm/vaccination.js +21 -21
  224. package/build/footer.js +21 -21
  225. package/build/gAssets.js +2 -2
  226. package/build/{healthTools-e74db509.js → healthTools-3d731021.js} +1 -1
  227. package/build/healthToolsCardWrapper.js +18 -18
  228. package/build/healthToolsForm.js +33 -33
  229. package/build/hooks.js +13 -13
  230. package/build/i18n/translationKeys.d.ts +1 -1
  231. package/build/i18n-values/en-PH.js +7 -0
  232. package/build/i18n-values/hi-IN.js +7 -0
  233. package/build/i18n-values/id-ID.js +7 -0
  234. package/build/i18n-values/km-KH.js +7 -0
  235. package/build/i18n-values/ms-MY.js +7 -0
  236. package/build/i18n-values/my-MM.js +7 -0
  237. package/build/i18n-values/th-TH.js +7 -0
  238. package/build/i18n-values/tl-PH.js +7 -0
  239. package/build/i18n-values/vi-VN.js +7 -0
  240. package/build/i18n-values/vi-VN_MB.js +7 -0
  241. package/build/i18n-values/{zh-CN.js → zh-SG.js} +9 -2
  242. package/build/i18n-values/zh-TW.js +7 -0
  243. package/build/i18n.js +3 -2
  244. package/build/i18nV2.js +1 -1
  245. package/build/{index-4534946a.js → index-009312be.js} +1 -1
  246. package/build/{index-b090eec3.js → index-091e347a.js} +2 -2
  247. package/build/{index-050a270b.js → index-0d62a83a.js} +7 -7
  248. package/build/{index-20f5cfe4.js → index-0e58a2ac.js} +2 -2
  249. package/build/{index-881c47f5.js → index-18474f60.js} +2 -2
  250. package/build/{index-ca77c680.js → index-1c3789f1.js} +1 -1
  251. package/build/{index-2ce4f4eb.js → index-1cfa86c9.js} +17 -17
  252. package/build/{index-2cee03ab.js → index-1d392d86.js} +4 -4
  253. package/build/{index-59c774a0.js → index-28470b6a.js} +17 -17
  254. package/build/{index-3768e39f.js → index-28e07277.js} +1 -1
  255. package/build/{index-bcb8a9f1.js → index-331540e2.js} +2 -2
  256. package/build/{index-5dd64df6.js → index-34ef9c29.js} +3 -3
  257. package/build/{index-8874551c.js → index-357bd6e8.js} +143 -237
  258. package/build/{index-2c87c546.js → index-360389ac.js} +6 -6
  259. package/build/{index-744a87f3.js → index-396295f1.js} +22 -22
  260. package/build/{index-71b569d9.js → index-3a6e2da9.js} +11 -11
  261. package/build/{index-c41a2a48.js → index-401728c6.js} +2 -2
  262. package/build/{index-fe93dd8b.js → index-4a59907d.js} +3 -3
  263. package/build/{index-3406e829.js → index-59abd72a.js} +1 -1
  264. package/build/{index-adb6c6d5.js → index-5e713c78.js} +17 -17
  265. package/build/{index-50c1bfbc.js → index-60038df7.js} +2 -2
  266. package/build/{index-3d7e1dd3.js → index-62e00eaa.js} +2 -2
  267. package/build/{index-dab28688.js → index-6753686c.js} +32 -32
  268. package/build/{index-f0a0331f.js → index-73d9a05d.js} +3 -3
  269. package/build/{index-746596a0.js → index-7a0c999e.js} +25 -25
  270. package/build/{index-4f4ba0a8.js → index-81dc1e55.js} +1 -1
  271. package/build/{index-3b0a2479.js → index-84357bce.js} +16 -16
  272. package/build/{index-b81c269b.js → index-85856440.js} +123 -20
  273. package/build/{index-47cfb19b.js → index-87ca6203.js} +3 -3
  274. package/build/{index-1f234442.js → index-87edf39c.js} +2 -2
  275. package/build/{index-6a1e186d.js → index-8eaf5b01.js} +13 -13
  276. package/build/{index-ba9bce1f.js → index-913f7fdf.js} +3 -3
  277. package/build/{index-5f6c750b.js → index-96725862.js} +2 -2
  278. package/build/{index-79cf629b.js → index-98dbc8c5.js} +5 -5
  279. package/build/{index-6ade5916.js → index-99b52968.js} +1 -1
  280. package/build/{index-689f4355.js → index-9b9cd01e.js} +5 -5
  281. package/build/{index-ce149746.js → index-a30e8f20.js} +5 -5
  282. package/build/{index-bd2f99d3.js → index-a58689ca.js} +2 -2
  283. package/build/{index-7b7d474a.js → index-a9e8849e.js} +16 -16
  284. package/build/{index-75f70f79.js → index-b7e689e1.js} +13 -13
  285. package/build/{index-d5adf67a.js → index-b8b3cdb0.js} +2 -2
  286. package/build/{index-8ec9f980.js → index-b9ec8dbf.js} +10 -10
  287. package/build/{index-e1eb1ae6.js → index-bb4738b2.js} +18 -18
  288. package/build/{index-7a410af2.js → index-bd5c3972.js} +2 -2
  289. package/build/{index-f33829fe.js → index-bd9e1388.js} +15 -15
  290. package/build/{index-a3c7205b.js → index-c640d4f7.js} +21 -21
  291. package/build/{index-e5314b10.js → index-c92fae4d.js} +7 -7
  292. package/build/{index-2076e957.js → index-cc8a6730.js} +13 -13
  293. package/build/{index-063f89e4.js → index-d04dc5f4.js} +31 -31
  294. package/build/{index-e32d8ee8.js → index-d0ba45dd.js} +6 -6
  295. package/build/{index-24338ab8.js → index-d95dcb2e.js} +1 -1
  296. package/build/{index-c1f9826a.js → index-dbce5c24.js} +6 -6
  297. package/build/{index-c0b2ea34.js → index-e47e676d.js} +24 -24
  298. package/build/{index-cb9f7cd1.js → index-e5b979ef.js} +16 -16
  299. package/build/{index-31b49abb.js → index-e85cce1c.js} +2 -2
  300. package/build/{index-4691b825.js → index-ea3fd17a.js} +4 -4
  301. package/build/{index-2aff761c.js → index-eb4a69da.js} +6 -6
  302. package/build/{index-902998c7.js → index-ed6d561f.js} +3 -3
  303. package/build/{index-ebd567fe.js → index-f230514e.js} +18 -18
  304. package/build/{index-e6f5b01d.js → index-f3c423e4.js} +6 -6
  305. package/build/{index-52f518fc.js → index-f67f40df.js} +18 -18
  306. package/build/{index-40e5c4aa.js → index-f852b0a9.js} +13 -13
  307. package/build/{index-d9d0233e.js → index-f8f7c91f.js} +1 -1
  308. package/build/{index-2dcee304.js → index-f9ce1272.js} +1 -1
  309. package/build/{index-a2ac5bb2.js → index-ffee41cb.js} +16 -16
  310. package/build/index.js +118 -118
  311. package/build/interfaces/constants/domainLocales.d.ts +2 -2
  312. package/build/interfaces/types/Locale.d.ts +1 -1
  313. package/build/interfaces/types/index.d.ts +1 -1
  314. package/build/{labelSorting-7107d76b.js → labelSorting-92e70b7f.js} +4 -4
  315. package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +15 -9
  316. package/build/lead/layouts/inline.d.ts +5 -3
  317. package/build/lead/layouts/lightbox/index.d.ts +2 -1
  318. package/build/lead/services/index.d.ts +14 -0
  319. package/build/lead.js +311 -127
  320. package/build/{logoIcon-05e7d336.js → logoIcon-4b198173.js} +2 -2
  321. package/build/mantine.js +22 -22
  322. package/build/misc.js +17 -17
  323. package/build/miscGetDynamicHealthTool.js +4 -4
  324. package/build/miscGetSocialList.js +8 -8
  325. package/build/miscScreenSizeContext.js +1 -1
  326. package/build/mobileBottomNavigation.js +5 -5
  327. package/build/mobileBottomNavigationIcon.js +5 -5
  328. package/build/molecules.js +74 -74
  329. package/build/moleculesArticleCard.js +6 -6
  330. package/build/moleculesArticleCardV2.js +16 -16
  331. package/build/navigation.js +46 -46
  332. package/build/navigationLogoutPopup.js +9 -9
  333. package/build/navigationProfileButton.js +30 -23
  334. package/build/onboardingV2.js +28 -28
  335. package/build/organisms.js +50 -50
  336. package/build/{post-1067b79d.js → post-53465f7c.js} +2 -2
  337. package/build/profileNavigation.js +19 -19
  338. package/build/progressBar.js +1 -1
  339. package/build/pwg.js +22 -22
  340. package/build/ssoV2/api/featureFlag.d.ts +2 -1
  341. package/build/ssoV2.js +50 -38
  342. package/build/{store-1f54641f.js → store-0550f5b2.js} +3 -3
  343. package/build/subot.js +35 -35
  344. package/build/surveyOrPremiumBanner.js +33 -33
  345. package/build/surveyQuestionCard.js +10 -10
  346. package/build/{surveyThankyouCard-c7976c91.js → surveyThankyouCard-dbc0a7f0.js} +5 -5
  347. package/build/together.js +56 -56
  348. package/build/togetherApiUtils.js +4 -4
  349. package/build/togetherAtoms.js +30 -30
  350. package/build/togetherComponentGlobalContext.js +4 -4
  351. package/build/togetherMolecules.js +51 -51
  352. package/build/togetherMoleculesCardAuthor.js +28 -28
  353. package/build/togetherMoleculesPostImagePreview.js +11 -11
  354. package/build/togetherMoleculesProfileDetail.js +39 -39
  355. package/build/togetherOrganisms.js +50 -50
  356. package/build/togetherRichTextEditor.js +17 -17
  357. package/build/togetherShareBox.js +10 -10
  358. package/build/{translationsProvider-f5eb62fb.js → translationsProvider-361c5523.js} +3 -2
  359. package/build/{treePopoverMenu-81dcc2fb.js → treePopoverMenu-ef172913.js} +19 -19
  360. package/build/{types-5b1915d0.js → types-cbfcff12.js} +2 -2
  361. package/build/types.js +2 -2
  362. package/build/{useCategory-dbc7493b.js → useCategory-85469d75.js} +7 -7
  363. package/build/{useHealthToolCache-d04dee20.js → useHealthToolCache-5ab960d2.js} +1 -1
  364. package/build/{useMantineLocale-99977b2c.js → useMantineLocale-6eb82e7b.js} +8 -8
  365. package/build/{usePlacesAutocomplete-a724c682.js → usePlacesAutocomplete-0d6367a9.js} +1 -1
  366. package/build/{useScreenSize-024eee79.js → useScreenSize-a6009025.js} +2 -2
  367. package/build/useTogetherAuthRequiredAction.js +10 -10
  368. package/build/{utils-24309a20.js → utils-0cad0440.js} +2 -2
  369. package/build/{utils-2ad45ccf.js → utils-510b1c51.js} +3 -3
  370. package/build/{utils-81f4dc9f.js → utils-b574c99b.js} +2 -2
  371. package/build/{utils-034228be.js → utils-bcd2084c.js} +5 -5
  372. package/build/vaccination.js +21 -21
  373. package/package.json +1 -1
  374. /package/build/{BMI_BOYS.percentile.monthly-0f0e8950.js → BMI_BOYS.percentile.monthly-4395fe1e.js} +0 -0
  375. /package/build/{BMI_BOYS.percentile.weekly-6ca5cfd8.js → BMI_BOYS.percentile.weekly-8c459a73.js} +0 -0
  376. /package/build/{BMI_BOYS.percentile.yearly-d5dd265f.js → BMI_BOYS.percentile.yearly-f58cad30.js} +0 -0
  377. /package/build/{BMI_BOYS.zscore.monthly-af6471a6.js → BMI_BOYS.zscore.monthly-00bbf4d7.js} +0 -0
  378. /package/build/{BMI_BOYS.zscore.weekly-bd53fb96.js → BMI_BOYS.zscore.weekly-6f9a67fe.js} +0 -0
  379. /package/build/{BMI_BOYS.zscore.yearly-6a8635e8.js → BMI_BOYS.zscore.yearly-a6ea2efc.js} +0 -0
  380. /package/build/{BMI_GIRLS.percentile.monthly-b28425d2.js → BMI_GIRLS.percentile.monthly-ef2615ef.js} +0 -0
  381. /package/build/{BMI_GIRLS.percentile.weekly-36193f76.js → BMI_GIRLS.percentile.weekly-821a12ed.js} +0 -0
  382. /package/build/{BMI_GIRLS.percentile.yearly-c37c6bb6.js → BMI_GIRLS.percentile.yearly-eebc3d4d.js} +0 -0
  383. /package/build/{BMI_GIRLS.zscore.monthly-e785f7fb.js → BMI_GIRLS.zscore.monthly-895a7bc3.js} +0 -0
  384. /package/build/{BMI_GIRLS.zscore.weekly-988b1c9a.js → BMI_GIRLS.zscore.weekly-dcb79bdd.js} +0 -0
  385. /package/build/{BMI_GIRLS.zscore.yearly-04c202f8.js → BMI_GIRLS.zscore.yearly-1239ee47.js} +0 -0
  386. /package/build/{ChevronDown-3676e93a.js → ChevronDown-4cc9dff4.js} +0 -0
  387. /package/build/{Close-43ee1c1b.js → Close-245aac38.js} +0 -0
  388. /package/build/{Google-d182206e.js → Google-bc267d12.js} +0 -0
  389. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-03b27715.js → HEAD CIRCUM_BOYS.percentile.monthly-1b80b835.js} +0 -0
  390. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-196467fc.js → HEAD CIRCUM_BOYS.percentile.weekly-70015bfc.js} +0 -0
  391. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-eaf66dde.js → HEAD CIRCUM_BOYS.percentile.yearly-fb1af53a.js} +0 -0
  392. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-5ddad122.js → HEAD CIRCUM_BOYS.zscore.monthly-e65e1d67.js} +0 -0
  393. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d86fb0f8.js → HEAD CIRCUM_BOYS.zscore.weekly-34a911fc.js} +0 -0
  394. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b6b3f27f.js → HEAD CIRCUM_BOYS.zscore.yearly-f09fed8f.js} +0 -0
  395. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-2c4f561e.js → HEAD CIRCUM_GIRLS.percentile.monthly-8c3465c9.js} +0 -0
  396. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-dd2ff4f7.js → HEAD CIRCUM_GIRLS.percentile.weekly-e5ec5922.js} +0 -0
  397. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-1bd44bba.js → HEAD CIRCUM_GIRLS.percentile.yearly-ca22afe8.js} +0 -0
  398. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-4bda5db5.js → HEAD CIRCUM_GIRLS.zscore.monthly-e917e66c.js} +0 -0
  399. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-d22c28c4.js → HEAD CIRCUM_GIRLS.zscore.weekly-3d3b41a2.js} +0 -0
  400. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-150114e8.js → HEAD CIRCUM_GIRLS.zscore.yearly-faee63dd.js} +0 -0
  401. /package/build/{HEIGHT_BOYS.percentile.monthly-5b9bfc7d.js → HEIGHT_BOYS.percentile.monthly-9293cb63.js} +0 -0
  402. /package/build/{HEIGHT_BOYS.percentile.weekly-93d468ba.js → HEIGHT_BOYS.percentile.weekly-13fd4bef.js} +0 -0
  403. /package/build/{HEIGHT_BOYS.percentile.yearly-b1a7ed6f.js → HEIGHT_BOYS.percentile.yearly-5d83c783.js} +0 -0
  404. /package/build/{HEIGHT_BOYS.zscore.monthly-8e05042a.js → HEIGHT_BOYS.zscore.monthly-4ed85a7c.js} +0 -0
  405. /package/build/{HEIGHT_BOYS.zscore.weekly-5996389e.js → HEIGHT_BOYS.zscore.weekly-3bbf7870.js} +0 -0
  406. /package/build/{HEIGHT_BOYS.zscore.yearly-974dbf12.js → HEIGHT_BOYS.zscore.yearly-7c55ed5b.js} +0 -0
  407. /package/build/{HEIGHT_GIRLS.percentile.monthly-9ce96b3c.js → HEIGHT_GIRLS.percentile.monthly-cac61e2e.js} +0 -0
  408. /package/build/{HEIGHT_GIRLS.percentile.weekly-057f240f.js → HEIGHT_GIRLS.percentile.weekly-d8d3a591.js} +0 -0
  409. /package/build/{HEIGHT_GIRLS.percentile.yearly-b1a82027.js → HEIGHT_GIRLS.percentile.yearly-323edfa6.js} +0 -0
  410. /package/build/{HEIGHT_GIRLS.zscore.monthly-c258b871.js → HEIGHT_GIRLS.zscore.monthly-e914ae10.js} +0 -0
  411. /package/build/{HEIGHT_GIRLS.zscore.weekly-e7c9b122.js → HEIGHT_GIRLS.zscore.weekly-9a0f07c9.js} +0 -0
  412. /package/build/{HEIGHT_GIRLS.zscore.yearly-54e927c1.js → HEIGHT_GIRLS.zscore.yearly-4d6e2748.js} +0 -0
  413. /package/build/{Visible-95461448.js → Visible-65b3772a.js} +0 -0
  414. /package/build/{WEIGHT_BOYS.percentile.monthly-b92e599b.js → WEIGHT_BOYS.percentile.monthly-a69d6f2b.js} +0 -0
  415. /package/build/{WEIGHT_BOYS.percentile.weekly-9483202e.js → WEIGHT_BOYS.percentile.weekly-9f2662c2.js} +0 -0
  416. /package/build/{WEIGHT_BOYS.percentile.yearly-e12a495f.js → WEIGHT_BOYS.percentile.yearly-a203c0d4.js} +0 -0
  417. /package/build/{WEIGHT_BOYS.zscore.monthly-07d3e811.js → WEIGHT_BOYS.zscore.monthly-1edf575d.js} +0 -0
  418. /package/build/{WEIGHT_BOYS.zscore.weekly-9c41e1c2.js → WEIGHT_BOYS.zscore.weekly-ce8a0799.js} +0 -0
  419. /package/build/{WEIGHT_BOYS.zscore.yearly-b5a6b07e.js → WEIGHT_BOYS.zscore.yearly-bd276514.js} +0 -0
  420. /package/build/{WEIGHT_GIRLS.percentile.monthly-a625e91d.js → WEIGHT_GIRLS.percentile.monthly-21030a3f.js} +0 -0
  421. /package/build/{WEIGHT_GIRLS.percentile.weekly-50d3d18c.js → WEIGHT_GIRLS.percentile.weekly-d677ec65.js} +0 -0
  422. /package/build/{WEIGHT_GIRLS.percentile.yearly-3dbcab37.js → WEIGHT_GIRLS.percentile.yearly-ee70a23c.js} +0 -0
  423. /package/build/{WEIGHT_GIRLS.zscore.monthly-052de283.js → WEIGHT_GIRLS.zscore.monthly-2a8de13a.js} +0 -0
  424. /package/build/{WEIGHT_GIRLS.zscore.weekly-0304ddc7.js → WEIGHT_GIRLS.zscore.weekly-2b41e781.js} +0 -0
  425. /package/build/{WEIGHT_GIRLS.zscore.yearly-8a4af2fc.js → WEIGHT_GIRLS.zscore.yearly-7be8e0ed.js} +0 -0
  426. /package/build/{animation-4181334d.js → animation-c55499ef.js} +0 -0
  427. /package/build/{constants-67f1c1a7.js → constants-8b6be3c9.js} +0 -0
  428. /package/build/{constants-fde8e1b6.js → constants-deecb035.js} +0 -0
  429. /package/build/{dataTransform-463ec7c6.js → dataTransform-a3aae755.js} +0 -0
  430. /package/build/esm/{BMI_BOYS.percentile.monthly-0f987438.js → BMI_BOYS.percentile.monthly-ff7b3e9e.js} +0 -0
  431. /package/build/esm/{BMI_BOYS.percentile.weekly-94619144.js → BMI_BOYS.percentile.weekly-615f4694.js} +0 -0
  432. /package/build/esm/{BMI_BOYS.percentile.yearly-a3e6a596.js → BMI_BOYS.percentile.yearly-d4f16d13.js} +0 -0
  433. /package/build/esm/{BMI_BOYS.zscore.monthly-5a4de73f.js → BMI_BOYS.zscore.monthly-bed92afc.js} +0 -0
  434. /package/build/esm/{BMI_BOYS.zscore.weekly-e0ccc680.js → BMI_BOYS.zscore.weekly-e82e1719.js} +0 -0
  435. /package/build/esm/{BMI_BOYS.zscore.yearly-6259d48b.js → BMI_BOYS.zscore.yearly-49a6ccff.js} +0 -0
  436. /package/build/esm/{BMI_GIRLS.percentile.monthly-c8a2f7b0.js → BMI_GIRLS.percentile.monthly-3acdc610.js} +0 -0
  437. /package/build/esm/{BMI_GIRLS.percentile.weekly-84020e17.js → BMI_GIRLS.percentile.weekly-b6f17817.js} +0 -0
  438. /package/build/esm/{BMI_GIRLS.percentile.yearly-b26bc2da.js → BMI_GIRLS.percentile.yearly-c9dba861.js} +0 -0
  439. /package/build/esm/{BMI_GIRLS.zscore.monthly-1cca48d8.js → BMI_GIRLS.zscore.monthly-c6b1f1b3.js} +0 -0
  440. /package/build/esm/{BMI_GIRLS.zscore.weekly-2f948ef8.js → BMI_GIRLS.zscore.weekly-bdf3bed1.js} +0 -0
  441. /package/build/esm/{BMI_GIRLS.zscore.yearly-6951eb0c.js → BMI_GIRLS.zscore.yearly-d6a20cdd.js} +0 -0
  442. /package/build/esm/{ChevronDown-3ac1406c.js → ChevronDown-c5f6bb14.js} +0 -0
  443. /package/build/esm/{Close-17ff85ca.js → Close-5c5384f6.js} +0 -0
  444. /package/build/esm/{Google-69447578.js → Google-4f9b0c98.js} +0 -0
  445. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-10c43e03.js → HEAD CIRCUM_BOYS.percentile.monthly-912a7691.js} +0 -0
  446. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-6d265c6c.js → HEAD CIRCUM_BOYS.percentile.weekly-4d3af0c6.js} +0 -0
  447. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-651b7863.js → HEAD CIRCUM_BOYS.percentile.yearly-f92cb6f3.js} +0 -0
  448. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-24aebf5f.js → HEAD CIRCUM_BOYS.zscore.monthly-24a29157.js} +0 -0
  449. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-85003772.js → HEAD CIRCUM_BOYS.zscore.weekly-d09d69b0.js} +0 -0
  450. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-5d799bf4.js → HEAD CIRCUM_BOYS.zscore.yearly-d5477151.js} +0 -0
  451. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-171262e7.js → HEAD CIRCUM_GIRLS.percentile.monthly-ac321890.js} +0 -0
  452. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-7b2f08bb.js → HEAD CIRCUM_GIRLS.percentile.weekly-8a2ef7ae.js} +0 -0
  453. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-02ca680f.js → HEAD CIRCUM_GIRLS.percentile.yearly-99457b97.js} +0 -0
  454. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-78ba93e4.js → HEAD CIRCUM_GIRLS.zscore.monthly-9b1b0e6d.js} +0 -0
  455. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-1b3d2e84.js → HEAD CIRCUM_GIRLS.zscore.weekly-45ca06fd.js} +0 -0
  456. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-193adc49.js → HEAD CIRCUM_GIRLS.zscore.yearly-34bd31c8.js} +0 -0
  457. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-c64753ce.js → HEIGHT_BOYS.percentile.monthly-72f361c0.js} +0 -0
  458. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-6c28fe0a.js → HEIGHT_BOYS.percentile.weekly-7a7de049.js} +0 -0
  459. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-eefdb67a.js → HEIGHT_BOYS.percentile.yearly-b90b798b.js} +0 -0
  460. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-dda9d0d0.js → HEIGHT_BOYS.zscore.monthly-e82d39b1.js} +0 -0
  461. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-7f2ba8b0.js → HEIGHT_BOYS.zscore.weekly-78ed2e95.js} +0 -0
  462. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-0ffa8881.js → HEIGHT_BOYS.zscore.yearly-e2efffe0.js} +0 -0
  463. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e8291e32.js → HEIGHT_GIRLS.percentile.monthly-b9f1da28.js} +0 -0
  464. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-9fbf10d2.js → HEIGHT_GIRLS.percentile.weekly-d2dd9883.js} +0 -0
  465. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-82649515.js → HEIGHT_GIRLS.percentile.yearly-19fe4db1.js} +0 -0
  466. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-8c913348.js → HEIGHT_GIRLS.zscore.monthly-07be6792.js} +0 -0
  467. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f40f4ea2.js → HEIGHT_GIRLS.zscore.weekly-65d6d6df.js} +0 -0
  468. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-4490bfe0.js → HEIGHT_GIRLS.zscore.yearly-eea385c2.js} +0 -0
  469. /package/build/esm/{Visible-3205e4d9.js → Visible-5f7d0290.js} +0 -0
  470. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-ecd63c2a.js → WEIGHT_BOYS.percentile.monthly-65bbcc1b.js} +0 -0
  471. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-7101cd47.js → WEIGHT_BOYS.percentile.weekly-98072958.js} +0 -0
  472. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-538c1f35.js → WEIGHT_BOYS.percentile.yearly-55af546d.js} +0 -0
  473. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ef6d5e32.js → WEIGHT_BOYS.zscore.monthly-6771430f.js} +0 -0
  474. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-ae26b922.js → WEIGHT_BOYS.zscore.weekly-b8c069b3.js} +0 -0
  475. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-8a3e3ad8.js → WEIGHT_BOYS.zscore.yearly-6c64327d.js} +0 -0
  476. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-819eac3b.js → WEIGHT_GIRLS.percentile.monthly-4f33b8ef.js} +0 -0
  477. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-6e7f4f28.js → WEIGHT_GIRLS.percentile.weekly-57266a5c.js} +0 -0
  478. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9da1f5e7.js → WEIGHT_GIRLS.percentile.yearly-15fc0a6d.js} +0 -0
  479. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-c5fad87a.js → WEIGHT_GIRLS.zscore.monthly-c3a4c0ad.js} +0 -0
  480. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-a2343c87.js → WEIGHT_GIRLS.zscore.weekly-ea888936.js} +0 -0
  481. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9df486d2.js → WEIGHT_GIRLS.zscore.yearly-fe570dbe.js} +0 -0
  482. /package/build/esm/{animation-d78bce40.js → animation-cfd0c12d.js} +0 -0
  483. /package/build/esm/{constants-f0d695be.js → constants-4ffd8a46.js} +0 -0
  484. /package/build/esm/{constants-bf245cfc.js → constants-50aac636.js} +0 -0
  485. /package/build/esm/{dataTransform-b06549ef.js → dataTransform-f499c8e3.js} +0 -0
  486. /package/build/esm/{index-86928e1c.js → index-09a8ff2c.js} +0 -0
  487. /package/build/esm/{index-553a8acd.js → index-2c748aa5.js} +0 -0
  488. /package/build/esm/{index-a0256d40.js → index-3d2fa54b.js} +0 -0
  489. /package/build/esm/{index-08e71721.js → index-5ca269e8.js} +0 -0
  490. /package/build/esm/{index-7a64cf8c.js → index-81ba4049.js} +0 -0
  491. /package/build/esm/{index-f4fd0a19.js → index-d09f8f30.js} +0 -0
  492. /package/build/esm/{index-23cfa29e.js → index-d21964bb.js} +0 -0
  493. /package/build/esm/{index-e18e8904.js → index-edb99bd2.js} +0 -0
  494. /package/build/esm/{index.styles-f9fed606.js → index.styles-c1d5edcf.js} +0 -0
  495. /package/build/esm/{localizeNumberFormat-6ed13ae9.js → localizeNumberFormat-c169319f.js} +0 -0
  496. /package/build/esm/{normalizeLink-d94e4b86.js → normalizeLink-9ab73f28.js} +0 -0
  497. /package/build/esm/{number-1af06f44.js → number-91d37a17.js} +0 -0
  498. /package/build/esm/{other-40404e5b.js → other-09ed6743.js} +0 -0
  499. /package/build/esm/{paths-a4786e69.js → paths-71fb0d42.js} +0 -0
  500. /package/build/esm/{translationsContext-c6c49512.js → translationsContext-80296006.js} +0 -0
  501. /package/build/esm/{tslib.es6-c5c88a1a.js → tslib.es6-17e8f260.js} +0 -0
  502. /package/build/esm/{types-81949c69.js → types-33be5ed9.js} +0 -0
  503. /package/build/esm/{useIsInit-30f5f78e.js → useIsInit-02223d80.js} +0 -0
  504. /package/build/esm/{useOutsideClick-6787788b.js → useOutsideClick-e53e2671.js} +0 -0
  505. /package/build/esm/{useScrollbarSize-55e0077a.js → useScrollbarSize-67a93567.js} +0 -0
  506. /package/build/esm/{useUniqueId-f3059730.js → useUniqueId-4e081294.js} +0 -0
  507. /package/build/esm/{utils-08e14341.js → utils-3b7b07ed.js} +0 -0
  508. /package/build/{index-bfa52b7e.js → index-01c39785.js} +0 -0
  509. /package/build/{index-e147368a.js → index-09792b31.js} +0 -0
  510. /package/build/{index-fc6206bb.js → index-1f4ed0e4.js} +0 -0
  511. /package/build/{index-69d6b55a.js → index-3a8ba2e5.js} +0 -0
  512. /package/build/{index-e8f27a51.js → index-672b3d2a.js} +0 -0
  513. /package/build/{index-fb29ea2e.js → index-771b9c2f.js} +0 -0
  514. /package/build/{index-6bf92899.js → index-a8655854.js} +0 -0
  515. /package/build/{index-3310c89c.js → index-ffa93961.js} +0 -0
  516. /package/build/{index.styles-ad0e2a1c.js → index.styles-57027370.js} +0 -0
  517. /package/build/{localizeNumberFormat-1e9ffba9.js → localizeNumberFormat-a1950e5f.js} +0 -0
  518. /package/build/{normalizeLink-29ad1a48.js → normalizeLink-ca3e1d63.js} +0 -0
  519. /package/build/{number-a1d1a3e8.js → number-039a5701.js} +0 -0
  520. /package/build/{other-a24227cb.js → other-6fb8ed8f.js} +0 -0
  521. /package/build/{paths-ba427992.js → paths-2f7ff671.js} +0 -0
  522. /package/build/{translationsContext-88001140.js → translationsContext-33ed03c9.js} +0 -0
  523. /package/build/{tslib.es6-2e1003f0.js → tslib.es6-4fd050ee.js} +0 -0
  524. /package/build/{types-a9fd2be7.js → types-6f570257.js} +0 -0
  525. /package/build/{useIsInit-aa8fcf21.js → useIsInit-c651386c.js} +0 -0
  526. /package/build/{useOutsideClick-d6024eed.js → useOutsideClick-dc78be2e.js} +0 -0
  527. /package/build/{useScrollbarSize-b0a1940c.js → useScrollbarSize-a3f32115.js} +0 -0
  528. /package/build/{useUniqueId-5d011c4f.js → useUniqueId-e5f62660.js} +0 -0
  529. /package/build/{utils-72b35cc7.js → utils-1cb2c010.js} +0 -0
package/build/lead.js CHANGED
@@ -2,56 +2,56 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('./tslib.es6-2e1003f0.js');
5
+ var tslib_es6 = require('./tslib.es6-4fd050ee.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-4691b825.js');
11
+ var index = require('./index-ea3fd17a.js');
12
12
  var miscCookieHelper = require('./miscCookieHelper.js');
13
- var index$1 = require('./index-2dcee304.js');
14
- var translationsContext = require('./translationsContext-88001140.js');
15
- var utils$1 = require('./utils-72b35cc7.js');
16
- var index$2 = require('./index-b090eec3.js');
17
- var index$3 = require('./index-71b569d9.js');
18
- var index$5 = require('./index-2c87c546.js');
19
- var index$4 = require('./index-6ade5916.js');
20
- require('./index.styles-ad0e2a1c.js');
13
+ var index$1 = require('./index-f9ce1272.js');
14
+ var translationsContext = require('./translationsContext-33ed03c9.js');
15
+ var utils$1 = require('./utils-1cb2c010.js');
16
+ var index$2 = require('./index-091e347a.js');
17
+ var index$3 = require('./index-3a6e2da9.js');
18
+ var index$5 = require('./index-360389ac.js');
19
+ var index$4 = require('./index-99b52968.js');
20
+ require('./index.styles-57027370.js');
21
21
  var hooks = require('@mantine/hooks');
22
- require('./useMantineLocale-99977b2c.js');
23
- var index$9 = require('./index-4f4ba0a8.js');
24
- require('./index-fb29ea2e.js');
25
- var index$7 = require('./index-689f4355.js');
26
- require('./other-a24227cb.js');
27
- require('./index-5dd64df6.js');
28
- var utils = require('./utils-81f4dc9f.js');
22
+ require('./useMantineLocale-6eb82e7b.js');
23
+ var index$9 = require('./index-81dc1e55.js');
24
+ require('./index-771b9c2f.js');
25
+ var index$7 = require('./index-9b9cd01e.js');
26
+ require('./other-6fb8ed8f.js');
27
+ require('./index-34ef9c29.js');
28
+ var utils = require('./utils-b574c99b.js');
29
29
  var dates = require('@mantine/dates');
30
- var usePlacesAutocomplete = require('./usePlacesAutocomplete-a724c682.js');
31
- var index$6 = require('./index-3d7e1dd3.js');
32
- var translationsProvider = require('./translationsProvider-f5eb62fb.js');
33
- var Locale = require('./Locale-c6661f1a.js');
30
+ var usePlacesAutocomplete = require('./usePlacesAutocomplete-0d6367a9.js');
31
+ var index$6 = require('./index-62e00eaa.js');
32
+ var translationsProvider = require('./translationsProvider-361c5523.js');
33
+ var Locale = require('./Locale-70a6c4b3.js');
34
34
  var uuid = require('uuid');
35
+ var constantsDomainLocales = require('./constantsDomainLocales.js');
35
36
  var PhoneInputBase = require('react-phone-number-input');
36
37
  var styled = require('@emotion/styled');
37
38
  var miscTheme = require('./miscTheme.js');
38
39
  var react = require('@emotion/react');
39
- var togetherComponentGlobalContext = require('./utils-2ad45ccf.js');
40
- var index$8 = require('./index-6bf92899.js');
41
- var useScreenSize = require('./useScreenSize-024eee79.js');
40
+ var togetherComponentGlobalContext = require('./utils-510b1c51.js');
41
+ var index$8 = require('./index-a8655854.js');
42
+ var useScreenSize = require('./useScreenSize-a6009025.js');
42
43
  var framerMotion = require('framer-motion');
43
44
  var ReactDOM = require('react-dom');
44
- var index$a = require('./index-bcb8a9f1.js');
45
- var InputDate = require('./InputDate-67ffe3ac.js');
46
- var index$b = require('./index-c41a2a48.js');
47
- var Close = require('./Close-43ee1c1b.js');
45
+ var index$a = require('./index-331540e2.js');
46
+ var InputDate = require('./InputDate-d948c741.js');
47
+ var index$b = require('./index-401728c6.js');
48
+ var Close = require('./Close-245aac38.js');
48
49
  require('./constantsIsProduction.js');
49
- require('./normalizeLink-29ad1a48.js');
50
- require('./constantsDomainLocales.js');
50
+ require('./normalizeLink-ca3e1d63.js');
51
51
  require('@hhgtech/icons/other');
52
52
  require('@mantine/carousel');
53
53
  require('classnames');
54
- require('./useUniqueId-5d011c4f.js');
54
+ require('./useUniqueId-e5f62660.js');
55
55
  require('./constantsSite.js');
56
56
  require('@hhgtech/icons/core');
57
57
  require('@mantine/notifications');
@@ -67,12 +67,13 @@ require('./i18n-values/th-TH.js');
67
67
  require('./i18n-values/tl-PH.js');
68
68
  require('./i18n-values/vi-VN.js');
69
69
  require('./i18n-values/vi-VN_MB.js');
70
+ require('./i18n-values/zh-SG.js');
70
71
  require('./i18n-values/zh-TW.js');
71
- require('./index-69d6b55a.js');
72
+ require('./index-3a8ba2e5.js');
72
73
  require('slugify');
73
74
  require('string-format');
74
75
  require('./togetherApiPaths.js');
75
- require('./constants-fde8e1b6.js');
76
+ require('./constants-deecb035.js');
76
77
  require('vaul');
77
78
 
78
79
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -187,11 +188,6 @@ const LEAD_TIMEZONE_DATA = {
187
188
  9: 'Asia/Manila', // Philippines / Filipinos Site
188
189
  };
189
190
 
190
- const LEADGEN_ACTIONS = {
191
- SHOW: 'SHOW',
192
- SCROLL: 'SCROLL',
193
- TIME: 'TIME',
194
- };
195
191
  var LEADGEN_LAYOUT;
196
192
  (function (LEADGEN_LAYOUT) {
197
193
  LEADGEN_LAYOUT["LightBoxA"] = "LightBoxA";
@@ -590,6 +586,13 @@ const campaignPostImpression = ({ code, action, title_article, ga_client_id, coo
590
586
  },
591
587
  });
592
588
  };
589
+ const trackingSubscription = (data) => {
590
+ return leadApi.call({
591
+ url: `api/collection/tracking-subscription`,
592
+ method: METHOD.POST,
593
+ data,
594
+ });
595
+ };
593
596
  const Service = {
594
597
  campaignGetById,
595
598
  getCampaignByCode,
@@ -597,6 +600,7 @@ const Service = {
597
600
  postSubscriptionBoxLead,
598
601
  postUserInfoFromLeadGen,
599
602
  campaignPostImpression,
603
+ trackingSubscription,
600
604
  validateEmailOrPhoneOnSubot,
601
605
  validateEmailOrPhoneOnLeadGen,
602
606
  validatePhoneNumberOnLeadGen,
@@ -1630,7 +1634,7 @@ const translationsMap = {
1630
1634
  'my-MM': myMM,
1631
1635
  'km-KH': kmKH,
1632
1636
  'zh-TW': zhTW,
1633
- 'zh-CN': zhTW,
1637
+ 'zh-SG': zhTW,
1634
1638
  'th-TH': thTH,
1635
1639
  'tl-PH': enPH,
1636
1640
  };
@@ -2011,27 +2015,30 @@ const LeadGenContext = React.createContext({
2011
2015
  LeadLog('** LeadGen SubmitSubscriptionBox : ', value);
2012
2016
  return Promise.reject(value);
2013
2017
  },
2014
- impression(value) {
2018
+ impression(type) {
2015
2019
  /** Init for FAKING function */
2016
- LeadLog('** LeadGen Impression : ', value);
2017
- return Promise.reject(value);
2020
+ LeadLog('** LeadGen Impression : ', type);
2021
+ return Promise.reject();
2018
2022
  },
2019
2023
  /** For Subscription Box */
2020
2024
  subscriptionIcon: '',
2021
2025
  subscriptionTitle: '',
2026
+ subscriptionPhoneType: '',
2022
2027
  });
2023
2028
  const LeadGenContextProvider = (props) => {
2024
- const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues, articleId = 1, categoryId = 1, siteDomain: site_domain, children } = props, restProps = tslib_es6.__rest(props, ["campaign_code", "apiSsoUrl", "apiLeadUrl", "apiSubotUrl", "locale", "forceCampaign", "extraValues", "articleId", "categoryId", "siteDomain", "children"]);
2029
+ 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"]);
2030
+ const { t } = index$1.useTranslations();
2025
2031
  const [forceCampaign, setForceCampaign] = React.useState(forceCampaignProps);
2026
2032
  const [subscriptionInfo, setSubscriptionInfo] = React.useState({
2027
2033
  subscriptionIcon: '',
2028
2034
  subscriptionTitle: '',
2029
2035
  subscriptionType: 'TypeA',
2036
+ subscriptionPhoneType: '',
2030
2037
  });
2031
2038
  const locale = React.useMemo(() => {
2032
2039
  return localeProps || Locale.LOCALE['PhilippinesEnglish'];
2033
2040
  }, [localeProps]);
2034
- const { url, campaign_id, campaign_code, cookie_id, ga_client_id, category_id, article_id, article_title, } = React.useMemo(() => ({
2041
+ const { url, campaign_id, cookie_id, ga_client_id, category_id, article_id, article_title, category_name, } = React.useMemo(() => ({
2035
2042
  url: location.href.toLowerCase() || '',
2036
2043
  cookie_id: miscCookieHelper.getCookie('hhg-id') || null,
2037
2044
  ga_client_id: miscCookieHelper.getCookie('_ga'),
@@ -2040,27 +2047,33 @@ const LeadGenContextProvider = (props) => {
2040
2047
  category_id: categoryId,
2041
2048
  article_id: articleId,
2042
2049
  article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
2050
+ category_name: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name) || '',
2043
2051
  }), [
2044
2052
  campaignCodeProps,
2045
2053
  articleId,
2046
2054
  categoryId,
2047
2055
  forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
2048
2056
  extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
2057
+ extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
2049
2058
  ]);
2050
- const fetchCampaign = React.useCallback((campaign_code) => {
2051
- Service.getCampaignByCode(campaign_code).then((res) => {
2052
- const { _data } = res || {};
2053
- const { campaigns } = _data || {};
2054
- LeadLog('** LeadGen Campaign : ', campaigns);
2055
- setForceCampaign(formatCampaignDetail(campaigns));
2056
- });
2057
- }, [campaignCodeProps]);
2059
+ // const fetchCampaign = useCallback(
2060
+ // (campaign_code: string) => {
2061
+ // Service.getCampaignByCode(campaign_code).then((res) => {
2062
+ // const { _data } = res || {}
2063
+ // const { campaigns } = _data || {}
2064
+ // LeadLog('** LeadGen Campaign : ', campaigns)
2065
+ // setForceCampaign(formatCampaignDetail(campaigns))
2066
+ // })
2067
+ // },
2068
+ // [campaignCodeProps],
2069
+ // )
2058
2070
  // TODO : Update form for LeadGen
2059
2071
  const submit = React.useCallback((data) => {
2060
2072
  return Service.postSubscriptionBoxLead({ data });
2061
2073
  }, []);
2062
2074
  const submitSubscriptionBox = React.useCallback((value) => {
2063
- const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), { campaign_id,
2075
+ const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
2076
+ // campaign_id,
2064
2077
  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,
2065
2078
  category_id,
2066
2079
  article_title });
@@ -2076,33 +2089,36 @@ const LeadGenContextProvider = (props) => {
2076
2089
  cookie_id,
2077
2090
  ga_client_id,
2078
2091
  ]);
2079
- const impression = React.useCallback((value) => {
2092
+ const impression = React.useCallback((type) => {
2093
+ const gaCookie = miscCookieHelper.getCookie('_ga') || null;
2080
2094
  const impression = {
2081
- url: (value === null || value === void 0 ? void 0 : value.url) || url,
2082
- action: (value === null || value === void 0 ? void 0 : value.action) || LEADGEN_ACTIONS.SCROLL,
2083
- code: (value === null || value === void 0 ? void 0 : value.code) || campaign_code,
2084
- title_article: (value === null || value === void 0 ? void 0 : value.title_article) || article_title,
2085
- cookie_id: (value === null || value === void 0 ? void 0 : value.cookie_id) || cookie_id,
2086
- ga_client_id: (value === null || value === void 0 ? void 0 : value.ga_client_id) || ga_client_id,
2087
- referrer: value === null || value === void 0 ? void 0 : value.referrer,
2088
- extra: Object.assign(Object.assign(Object.assign({}, value === null || value === void 0 ? void 0 : value.extra), { cookie_id,
2089
- article_id, subscription_title: subscriptionInfo.subscriptionTitle, subscription_type: subscriptionInfo.subscriptionType }), extraValues),
2095
+ subscription_title: subscriptionInfo.subscriptionTitle,
2096
+ name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
2097
+ area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
2098
+ phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
2099
+ site_domain: constantsDomainLocales.domainLocales[locale],
2100
+ url: location.href.toLowerCase(),
2101
+ cookie_id: miscCookieHelper.getCookie('hhg-id'),
2102
+ ga_client_id: gaCookie,
2103
+ article_title,
2104
+ article_id,
2105
+ category_id,
2106
+ category_name,
2107
+ type,
2090
2108
  };
2091
- if (!impression.extra.subscription_title) {
2092
- delete impression.extra.subscription_title;
2093
- }
2094
- return Service.campaignPostImpression(impression);
2109
+ return Service.trackingSubscription(impression);
2095
2110
  }, [
2096
- extraValues,
2097
2111
  campaign_id,
2098
2112
  url,
2099
- campaign_code,
2100
2113
  article_title,
2101
2114
  cookie_id,
2102
2115
  ga_client_id,
2116
+ categoryId,
2103
2117
  article_id,
2104
2118
  subscriptionInfo.subscriptionTitle,
2105
- subscriptionInfo.subscriptionType,
2119
+ userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
2120
+ userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
2121
+ userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
2106
2122
  ]);
2107
2123
  React.useEffect(() => {
2108
2124
  if (forceCampaignProps) {
@@ -2117,21 +2133,138 @@ const LeadGenContextProvider = (props) => {
2117
2133
  slug: location === null || location === void 0 ? void 0 : location.pathname,
2118
2134
  }).then((res) => {
2119
2135
  const { _data } = res || {};
2120
- const { item, campaign_code } = _data || {};
2136
+ const { item, campaign_code, btn_type = 'zalo' } = _data || {};
2121
2137
  const { icon, content } = item || {};
2122
2138
  LeadLog('** LeadGen SubscriptionBox campaign_code : ', campaign_code);
2123
2139
  LeadLog('** LeadGen SubscriptionBox subscription_icon : ', icon);
2124
2140
  LeadLog('** LeadGen SubscriptionBox subscription_title : ', content);
2125
- setSubscriptionInfo((prev) => (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content })));
2126
- if (campaign_code) {
2127
- fetchCampaign(campaign_code);
2128
- }
2141
+ setSubscriptionInfo((prev) => (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content, subscriptionPhoneType: btn_type })));
2142
+ setForceCampaign(formatCampaignDetail({
2143
+ id: 6993,
2144
+ name: '',
2145
+ code: '49qvztwzzlfvmk6',
2146
+ site: {
2147
+ id: index$7.LOCALE_SPECS[locale].SITE_ID || 1,
2148
+ name: constantsDomainLocales.domainLocales[locale],
2149
+ },
2150
+ thank_you_image: 'https://cdn-lead.hellohealthgroup.com/2025/05/1747009374_68213f5e5fa5a9.58533462.png',
2151
+ extra_fields: {
2152
+ actionBlocks: `{"submitBlock":{"data":{"value":"${t('subscriptionBox.ctaBtn')}"}},"linkButtonBlock":{"data":{"value":"Join now","url":"","newtab":true}}}`,
2153
+ currentLayout: 'LightBoxB',
2154
+ imageBlocks: '{"imageMobile":{"data":{"url":"","newtab":true}},"imageDesktop":{"data":{"url":"","newtab":true}},"imageBackground":{"data":{}},"imageOverlayMobile":{"data":{}},"imageOverlayDesktop":{"data":{}},"imageThankYou":{"data":{}}}',
2155
+ listBlockAdded: `[{"name":"TextBlock","id":"c9be7202-05af-4d62-94bb-0001f8ad50de","data":{"placeholder":"${t('subscriptionBox.name')}","value":"name","required":true, "requiredMessage": "${t('subscriptionBox.nameRequire')}"}},{"name":"PhoneBlock","id":1744087889773,"data":{"value":"phone","required":true,"requiredMessage": "${t('subscriptionBox.phoneRequire')}","placeholder":"${t('subscriptionBox.phone')}"}}]`,
2156
+ listBlockThankyou: `[{"name":"TitleBlock","id":"c74d5525-b7ae-4714-b5f1-552f50160ac1","data":{"value":"${t('subscriptionBox.thankyouTitle')}","align":"center"}},{"name":"SubtitleBlock","id":"f9a6ac63-b532-41d4-9c2e-3f3e71124e05","data":{"value":"${t('subscriptionBox.thankyou')}","align":"center"}}]`,
2157
+ textBlocks: '{"titleBlock":{"data":{"value":"VN - Campaign SUBSCRIPTION BOX "}},"subtitleBlock":{"data":{"value":"Sample description"}}}',
2158
+ },
2159
+ total_lead: 0,
2160
+ total_submit: 0,
2161
+ total_click: 0,
2162
+ started_at: null,
2163
+ ended_at: null,
2164
+ created_at: '2025-04-08 04:54:32',
2165
+ updated_at: '2025-05-12 00:22:54',
2166
+ site_logo: 'https://hhg-common.hellobacsi.com/common/logo/hellobacsi.png',
2167
+ custom_logo: null,
2168
+ status: 1,
2169
+ formatted_status: 1,
2170
+ creator: 'admin@hellohealthgroup.com',
2171
+ total_impression: 4237940,
2172
+ conversion_rate: 0,
2173
+ total_visitor: 0,
2174
+ total_habit_exit: 0,
2175
+ total_intentional_exit: 0,
2176
+ trigger_type: 'on_landing',
2177
+ targets: [
2178
+ {
2179
+ is_import: 0,
2180
+ option: 'start_with',
2181
+ sub_target: [],
2182
+ target: 'https://hellobacsi.com/sample',
2183
+ type: 1,
2184
+ },
2185
+ ],
2186
+ forms: [
2187
+ {
2188
+ control: 'TextBlock',
2189
+ default: null,
2190
+ name: 'TextBlock',
2191
+ options: [],
2192
+ required: 1,
2193
+ },
2194
+ {
2195
+ control: 'PhoneBlock',
2196
+ default: null,
2197
+ name: 'PhoneBlock',
2198
+ options: [],
2199
+ required: 1,
2200
+ requiredMessage: t('subscriptionBox.phoneRequire'),
2201
+ },
2202
+ ],
2203
+ rules: [
2204
+ {
2205
+ rule: 'campaign_popup_exit',
2206
+ value: '7',
2207
+ },
2208
+ {
2209
+ rule: 'site_popup_exit',
2210
+ value: '7',
2211
+ },
2212
+ {
2213
+ rule: 'show_again_after_submit',
2214
+ value: '0',
2215
+ },
2216
+ {
2217
+ rule: 'show_again_after_exit',
2218
+ value: '0',
2219
+ },
2220
+ {
2221
+ rule: 'appearance_time',
2222
+ value: {
2223
+ endTime: null,
2224
+ startTime: null,
2225
+ },
2226
+ },
2227
+ {
2228
+ rule: 'exclude_sponsored',
2229
+ value: '1',
2230
+ },
2231
+ {
2232
+ rule: 'exclude_sponsored_list',
2233
+ value: [],
2234
+ },
2235
+ {
2236
+ rule: 'days_to_show_again',
2237
+ value: '7',
2238
+ },
2239
+ {
2240
+ rule: 'time',
2241
+ value: '3',
2242
+ },
2243
+ ],
2244
+ is_scheduled: true,
2245
+ last_step: null,
2246
+ kpis: {
2247
+ lead: 500,
2248
+ },
2249
+ forever: 1,
2250
+ is_target_import: 0,
2251
+ is_expired: 0,
2252
+ score: 6,
2253
+ price: 2.5,
2254
+ type: 0,
2255
+ is_testing_running: 0,
2256
+ campaign_group_id: 0,
2257
+ bot_id: [],
2258
+ }));
2259
+ // if (campaign_code) {
2260
+ // fetchCampaign(campaign_code)
2261
+ // }
2129
2262
  });
2130
2263
  return;
2131
2264
  }
2132
- if (campaignCodeProps) {
2133
- fetchCampaign(campaignCodeProps);
2134
- }
2265
+ // if (campaignCodeProps) {
2266
+ // fetchCampaign(campaignCodeProps)
2267
+ // }
2135
2268
  }, [forceCampaignProps, campaignCodeProps, categoryId]);
2136
2269
  React.useEffect(() => {
2137
2270
  leadStore.apiSsoUrl = apiSsoUrl;
@@ -2141,7 +2274,7 @@ const LeadGenContextProvider = (props) => {
2141
2274
  if (!forceCampaign || !(forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id)) {
2142
2275
  return null;
2143
2276
  }
2144
- return (React__default["default"].createElement(LeadGenContext.Provider, { value: Object.assign(Object.assign(Object.assign({}, restProps), subscriptionInfo), { campaign_code: campaignCodeProps, apiSsoUrl,
2277
+ return (React__default["default"].createElement(LeadGenContext.Provider, { value: Object.assign(Object.assign(Object.assign({}, restProps), subscriptionInfo), { userInfo, campaign_code: campaignCodeProps, apiSsoUrl,
2145
2278
  apiLeadUrl,
2146
2279
  apiSubotUrl, locale: localeProps, extraValues,
2147
2280
  articleId,
@@ -2156,6 +2289,39 @@ const useLeadGenContext = () => {
2156
2289
  return Object.assign(Object.assign({}, context), { apiSsoUrl: context.apiSsoUrl || leadStore.apiSsoUrl, apiLeadUrl: context.apiLeadUrl || leadStore.apiLeadUrl, apiSubotUrl: context.apiSubotUrl || leadStore.apiSubotUrl });
2157
2290
  };
2158
2291
 
2292
+ const ImpressionTrackingWrapper = ({ children, stayDuration = 1, onImpression, dependency = '', }) => {
2293
+ const { ref, entry } = hooks.useIntersection({
2294
+ threshold: 1,
2295
+ });
2296
+ const [tracked, setTracked] = React.useState(false);
2297
+ React.useEffect(() => {
2298
+ let timer = null;
2299
+ let count = 1;
2300
+ if ((entry === null || entry === void 0 ? void 0 : entry.isIntersecting) && !tracked) {
2301
+ timer = setInterval(() => {
2302
+ console.log('TESTING SUBSCRIPTION TRACKING COUNT =', count);
2303
+ if (count >= stayDuration) {
2304
+ setTracked(true);
2305
+ }
2306
+ else {
2307
+ count += 1;
2308
+ }
2309
+ }, stayDuration * 1000);
2310
+ }
2311
+ return () => clearInterval(timer);
2312
+ }, [entry === null || entry === void 0 ? void 0 : entry.isIntersecting, tracked]);
2313
+ React.useEffect(() => {
2314
+ if (tracked) {
2315
+ onImpression();
2316
+ console.log('TESTING SUBSCRIPTION CALL API');
2317
+ }
2318
+ }, [tracked]);
2319
+ React.useEffect(() => {
2320
+ setTracked(false);
2321
+ }, [dependency]);
2322
+ return (React__default["default"].createElement(core.Box, { "data-impression": true, ref: ref }, children));
2323
+ };
2324
+
2159
2325
  // eslint-disable-next-line @typescript-eslint/no-var-requires
2160
2326
  const customParseFormat = require('dayjs/plugin/customParseFormat');
2161
2327
  dayjs__default["default"].extend(customParseFormat);
@@ -2192,7 +2358,7 @@ const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validating
2192
2358
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2193
2359
  block) => {
2194
2360
  return (value) => {
2195
- var _a;
2361
+ var _a, _b;
2196
2362
  const isBLockRequired = (_a = block === null || block === void 0 ? void 0 : block.data) === null || _a === void 0 ? void 0 : _a.required;
2197
2363
  if (!formRef.current.isTouched(name))
2198
2364
  return;
@@ -2200,7 +2366,7 @@ const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validating
2200
2366
  typeof value === 'undefined' ||
2201
2367
  (Array.isArray(value) && value.length === 0)) {
2202
2368
  return isBLockRequired
2203
- ? t('validator.required')
2369
+ ? ((_b = block === null || block === void 0 ? void 0 : block.data) === null || _b === void 0 ? void 0 : _b.requiredMessage) || t('validator.required')
2204
2370
  : cb === null || cb === void 0 ? void 0 : cb(value);
2205
2371
  }
2206
2372
  return cb === null || cb === void 0 ? void 0 : cb(value);
@@ -2449,12 +2615,25 @@ const StyledLeadGenSubscriptionBox = styled__default["default"].div `
2449
2615
  border: 1px solid ${miscTheme.theme.colors.neutral100};
2450
2616
  background: linear-gradient(
2451
2617
  180.71deg,
2452
- #7bc2ff -18.54%,
2453
- #e3f2ff 17.12%,
2454
- #ffffff 99.25%
2618
+ rgba(44, 183, 66, 0.8) -18.54%,
2619
+ rgba(44, 183, 66, 0.1) 17.12%,
2620
+ rgba(44, 183, 66, 0) 99.25%
2455
2621
  );
2456
2622
  border-radius: 12px;
2457
2623
  margin-inline: auto;
2624
+ &[data-phone-type='zalo'] {
2625
+ background: linear-gradient(
2626
+ 180.71deg,
2627
+ #7bc2ff -18.54%,
2628
+ #e3f2ff 17.12%,
2629
+ #ffffff 99.25%
2630
+ );
2631
+ }
2632
+ &[data-phone-type]:not([data-phone-type='zalo']) {
2633
+ .leadgen-btn {
2634
+ background-color: #2cb742 !important;
2635
+ }
2636
+ }
2458
2637
  .leadgen-form_inputs {
2459
2638
  .leadgen-form_input {
2460
2639
  width: 100%;
@@ -3130,10 +3309,9 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3130
3309
  const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
3131
3310
  const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
3132
3311
  const { submitBlock } = actionBlocks || {};
3133
- const { apiLeadUrl, subscriptionIcon, subscriptionTitle, submitSubscriptionBox, impression, onFinish, } = useLeadGenContext();
3312
+ const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impression, } = useLeadGenContext();
3134
3313
  const { t } = index$1.useTranslations();
3135
3314
  const { action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
3136
- const refContainer = React.useRef(null);
3137
3315
  const [loading, setLoading] = React.useState(false);
3138
3316
  const [showThankyou, setShowThankyou] = React.useState(false);
3139
3317
  const validatingEmailRef = React.useRef(false);
@@ -3153,17 +3331,6 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3153
3331
  t('leadgen.message.title.default');
3154
3332
  }, [subscriptionTitle, (_b = (_a = textBlocks === null || textBlocks === void 0 ? void 0 : textBlocks.titleBlock) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.value]);
3155
3333
  const { image: thankyouImage, title: thankyouTitle, description: thankyouDescription, button: thankyouButton, } = ThankYouBlock || {};
3156
- const intersectionObserverCallback = React.useCallback((entries) => {
3157
- entries.forEach((entry) => {
3158
- const { isIntersecting, target } = entry;
3159
- if (!showThankyou &&
3160
- isIntersecting &&
3161
- target === refContainer.current) {
3162
- impression();
3163
- }
3164
- });
3165
- }, [impression, showThankyou]);
3166
- const IObserver = new IntersectionObserver(intersectionObserverCallback);
3167
3334
  const middlewareOnSubmit = React.useCallback((values) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
3168
3335
  const newValues = {
3169
3336
  subscription_title,
@@ -3200,7 +3367,11 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3200
3367
  setLoading(true);
3201
3368
  try {
3202
3369
  const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
3203
- const { _data } = (yield submitSubscriptionBox(reqValues)) || {};
3370
+ const [res] = yield Promise.all([
3371
+ submitSubscriptionBox(reqValues),
3372
+ impression('submit_form'),
3373
+ ]);
3374
+ const { _data } = res || {};
3204
3375
  const { model } = _data || {};
3205
3376
  if (model && (model === null || model === void 0 ? void 0 : model.id)) {
3206
3377
  setShowThankyou(true);
@@ -3244,16 +3415,8 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
3244
3415
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
3245
3416
  userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
3246
3417
  ]);
3247
- React.useEffect(() => {
3248
- if (refContainer.current) {
3249
- IObserver.observe(refContainer.current);
3250
- }
3251
- return () => {
3252
- IObserver.disconnect();
3253
- };
3254
- }, [categoryId]);
3255
- return (React__default["default"].createElement("div", { ref: refContainer },
3256
- React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-type": "subscription_box_A" },
3418
+ return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impression('impression') },
3419
+ React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
3257
3420
  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 })),
3258
3421
  !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 })))));
3259
3422
  };
@@ -3268,8 +3431,12 @@ const Container = () => {
3268
3431
  return (React__default["default"].createElement(LeadGenSubscriptionBox$1, { locale: locale, siteId: siteId, siteDomain: siteDomain, userInfo: userInfo, forceCampaign: forceCampaign, campaign_code: campaign_code }));
3269
3432
  };
3270
3433
  Container.displayName = 'LeadGenSubscriptionBox';
3434
+ const ALLOW_LOCALE = [Locale.LOCALE.Vietnam, Locale.LOCALE.Malaysia, Locale.LOCALE.Indonesia];
3271
3435
  const LeadGenSubscriptionBoxContainer = (props) => {
3272
- const { apiUrl, apiSubotUrl } = props;
3436
+ const { apiUrl, apiSubotUrl, locale } = props;
3437
+ if (!ALLOW_LOCALE.includes(locale)) {
3438
+ return null;
3439
+ }
3273
3440
  return (React__default["default"].createElement(LeadGenContextProvider, Object.assign({}, props, { apiLeadUrl: apiUrl, apiSubotUrl: apiSubotUrl }),
3274
3441
  React__default["default"].createElement(Container, null)));
3275
3442
  };
@@ -3900,7 +4067,8 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
3900
4067
  React__default["default"].createElement(index$4.Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
3901
4068
  };
3902
4069
 
3903
- const InlineLayout = ({ content, inlinePosition, }) => {
4070
+ const InlineLayout = ({ action, content, inlinePosition, campaignCode, }) => {
4071
+ const { apiUrl } = React.useContext(LeadGenContext$1);
3904
4072
  const target = React.useMemo(() => {
3905
4073
  if (!inlinePosition)
3906
4074
  return null;
@@ -4007,7 +4175,22 @@ const InlineLayout = ({ content, inlinePosition, }) => {
4007
4175
  }, [inlinePosition]);
4008
4176
  if (!inlinePosition || !target)
4009
4177
  return null;
4010
- return ReactDOM.createPortal(content, target);
4178
+ return ReactDOM.createPortal(React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
4179
+ const gaCookie = miscCookieHelper.getCookie('_ga') || null;
4180
+ fetch(`${apiUrl}api/campaign/${campaignCode}/impression`, {
4181
+ method: 'POST',
4182
+ headers: {
4183
+ 'Content-Type': 'application/json',
4184
+ },
4185
+ body: JSON.stringify({
4186
+ action,
4187
+ url: location.href.toLowerCase(),
4188
+ title_article: document.title,
4189
+ cookie_id: miscCookieHelper.getCookie('hhg-id'),
4190
+ ga_client_id: gaCookie,
4191
+ }),
4192
+ });
4193
+ }) }, content), target);
4011
4194
  };
4012
4195
 
4013
4196
  const SideBarLayout = ({ content }) => {
@@ -4774,7 +4957,7 @@ const LEADGEN_SHOW_HEADER = [
4774
4957
  ];
4775
4958
  // const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
4776
4959
  const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
4777
- const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, }) => {
4960
+ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
4778
4961
  var _a, _b;
4779
4962
  const { primaryColor } = React.useContext(LeadGenContext$1);
4780
4963
  const { isMobile } = useScreenSize.useScreenSize();
@@ -5109,7 +5292,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
5109
5292
  return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
5110
5293
  }
5111
5294
  else if (isInline) {
5112
- return (React__default["default"].createElement(InlineLayout, { content: PopupContainer, inlinePosition: extraFields.popupInlinePosition }));
5295
+ return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition }));
5113
5296
  }
5114
5297
  return null;
5115
5298
  };
@@ -5207,19 +5390,20 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, showThan
5207
5390
  const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
5208
5391
  React.useEffect(() => {
5209
5392
  const gaCookie = miscCookieHelper.getCookie('_ga') || null;
5210
- fetch(`${apiUrl}api/campaign/${code}/impression`, {
5211
- method: 'POST',
5212
- headers: {
5213
- 'Content-Type': 'application/json',
5214
- },
5215
- body: JSON.stringify({
5216
- action,
5217
- url: location.href.toLowerCase(),
5218
- title_article: document.title,
5219
- cookie_id: miscCookieHelper.getCookie('hhg-id'),
5220
- ga_client_id: gaCookie,
5221
- }),
5222
- });
5393
+ !currentLayout.includes('Inline') &&
5394
+ fetch(`${apiUrl}api/campaign/${code}/impression`, {
5395
+ method: 'POST',
5396
+ headers: {
5397
+ 'Content-Type': 'application/json',
5398
+ },
5399
+ body: JSON.stringify({
5400
+ action,
5401
+ url: location.href.toLowerCase(),
5402
+ title_article: document.title,
5403
+ cookie_id: miscCookieHelper.getCookie('hhg-id'),
5404
+ ga_client_id: gaCookie,
5405
+ }),
5406
+ });
5223
5407
  }, []);
5224
5408
  const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
5225
5409
  const { currentLayout } = extra_fields;
@@ -5321,7 +5505,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, showThan
5321
5505
  currentLayout == 'Fullscreen' ||
5322
5506
  currentLayout == 'Sidebar' ||
5323
5507
  currentLayout == 'Slider') {
5324
- return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, 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 }));
5508
+ return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, 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 }));
5325
5509
  }
5326
5510
  else if (currentLayout.includes('Skin')) {
5327
5511
  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 }));