@hhgtech/hhg-components 1.29.415 → 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.
- package/build/{InputDate-58ef5472.js → InputDate-cdba1a1a.js} +3 -3
- package/build/{LastPeriod-d91118f4.js → LastPeriod-f84d3d12.js} +1 -1
- package/build/{MobileBottomNavigationIcon-14463bf3.js → MobileBottomNavigationIcon-c6690b1c.js} +3 -3
- package/build/{Spinner-6d31e75c.js → Spinner-b730fa1b.js} +1 -1
- package/build/{WhatsApp-0e38d63c.js → WhatsApp-80f3faa2.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +49 -49
- package/build/babyGrowth.js +84 -84
- package/build/cache.js +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components.js +98 -98
- package/build/{constants-3ab471e6.js → constants-1608c608.js} +5 -2
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-9b0d889e.js → core-b58b6ade.js} +1 -1
- package/build/{dataTransform-38ba6c39.js → dataTransform-21e9ae78.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-e8cae9bc.js → editor-1201c05e.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/{InputDate-5538194a.js → InputDate-bf6a9363.js} +3 -3
- package/build/esm/{LastPeriod-98f11a32.js → LastPeriod-08abd9e0.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-aa9b9ec2.js → MobileBottomNavigationIcon-f949a29e.js} +3 -3
- package/build/esm/{Spinner-c7e7d439.js → Spinner-df4fdeb5.js} +1 -1
- package/build/esm/{WhatsApp-f52d04e3.js → WhatsApp-5b241d8e.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +49 -49
- package/build/esm/babyGrowth.js +84 -84
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components.js +98 -98
- package/build/esm/{constants-aff32a83.js → constants-4f6be0b0.js} +5 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-0a6ca2ec.js → core-ad50807e.js} +1 -1
- package/build/esm/{dataTransform-88d4bea2.js → dataTransform-b5723a88.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-8798c983.js → editor-a8d53ac1.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/esm/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-8d291d00.js → healthTools-84409e98.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks/usePlacesAutocomplete.d.ts +1 -1
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-0f4ee0ab.js → index-067e8885.js} +15 -15
- package/build/esm/{index-318938e5.js → index-10e26d0d.js} +25 -25
- package/build/esm/{index-69c7ae68.js → index-16f555a0.js} +6 -6
- package/build/esm/{index-9858f292.js → index-1c8c4563.js} +32 -32
- package/build/esm/{index-70e409fc.js → index-2089f502.js} +2 -2
- package/build/esm/{index-32358681.js → index-20eab504.js} +6 -6
- package/build/esm/{index-b7616d0b.js → index-25983827.js} +1 -1
- package/build/esm/{index-f982d263.js → index-32c0c36c.js} +3 -3
- package/build/esm/{index-73dfd148.js → index-33d9cfb9.js} +3 -3
- package/build/esm/{index-5fc90873.js → index-39c0105f.js} +8 -8
- package/build/esm/{index-98b7f8c7.js → index-3b49172b.js} +6 -6
- package/build/esm/{index-b33b8aca.js → index-477b8c7a.js} +11 -11
- package/build/esm/{index-91b88d73.js → index-4851fad7.js} +17 -17
- package/build/esm/{index-75fdb3e1.js → index-5234efcb.js} +2 -2
- package/build/esm/{index-4f7118de.js → index-547339b4.js} +2 -2
- package/build/esm/{index-75b05705.js → index-5747d34b.js} +16 -16
- package/build/esm/{index-9ec6a9d0.js → index-5a7a3c1a.js} +13 -13
- package/build/esm/{index-176847b7.js → index-5ac13b18.js} +32 -32
- package/build/esm/{index-3fe1fce3.js → index-5b071622.js} +2 -2
- package/build/esm/{index-67397aa5.js → index-5bab57de.js} +6 -6
- package/build/esm/{index-bb27ae5c.js → index-6092ee9c.js} +13 -13
- package/build/esm/{index-685ae89f.js → index-6206ea8f.js} +1 -1
- package/build/esm/{index-e229f15b.js → index-66adda7e.js} +24 -24
- package/build/esm/{index-fb65650b.js → index-66f326a0.js} +2 -2
- package/build/esm/{index-c45719be.js → index-6a588d96.js} +2 -2
- package/build/esm/{index-e819d1df.js → index-6b742e45.js} +17 -17
- package/build/esm/{index-7070c415.js → index-705da63f.js} +2 -2
- package/build/esm/{index-d0700a22.js → index-715d6532.js} +2 -2
- package/build/esm/{index-dd974ad6.js → index-726402d3.js} +2 -2
- package/build/esm/{index-feefc7df.js → index-7490f2c5.js} +6 -6
- package/build/esm/{index-ede64fc9.js → index-77d1054c.js} +17 -17
- package/build/esm/{index-27a4e1d4.js → index-77efae47.js} +3 -3
- package/build/esm/{index-27617594.js → index-782ac143.js} +1 -1
- package/build/esm/{index-0331ab25.js → index-792e681e.js} +2 -2
- package/build/esm/{index-04a7e028.js → index-7b525830.js} +3 -3
- package/build/esm/{index-b34bd2e0.js → index-7dbb7127.js} +1 -1
- package/build/esm/{index-6d0441d3.js → index-819c04d5.js} +15 -15
- package/build/esm/{index-de587167.js → index-8513ba9e.js} +1 -1
- package/build/esm/{index-c85b22a7.js → index-85496ec5.js} +21 -41
- package/build/esm/{index-3b61b2a2.js → index-9116fbd2.js} +1 -1
- package/build/esm/{index-b0b4f405.js → index-915c0a01.js} +13 -13
- package/build/esm/{index-374932e6.js → index-92028dcb.js} +1 -1
- package/build/esm/{index-f27f0de6.js → index-92083a73.js} +4 -4
- package/build/esm/{index-11cac3cb.js → index-9da3e23b.js} +22 -22
- package/build/esm/{index-ff349c3b.js → index-9e29d3e3.js} +30 -30
- package/build/esm/{index-04f47cc0.js → index-a99ac287.js} +16 -16
- package/build/esm/{index-a277d650.js → index-aabf118a.js} +2 -2
- package/build/esm/{index-92773320.js → index-ae970044.js} +4 -4
- package/build/esm/{index-ae94b2f8.js → index-b45d145f.js} +17 -17
- package/build/esm/{index-4f8312e6.js → index-bc18ecff.js} +2 -2
- package/build/esm/{index-c436755a.js → index-bd9013de.js} +5 -5
- package/build/esm/{index-1caab809.js → index-c1f7b079.js} +5 -5
- package/build/esm/{index-2f61243a.js → index-c57988e9.js} +3 -3
- package/build/esm/{index-eac9db63.js → index-c71cd1be.js} +10 -10
- package/build/esm/{index-94c92cf3.js → index-ccfee79f.js} +3 -3
- package/build/esm/{index-30f9350e.js → index-ce969d66.js} +3 -3
- package/build/esm/{index-27155edd.js → index-d0b17929.js} +7 -7
- package/build/esm/{index-954861c8.js → index-d588e6bb.js} +2 -2
- package/build/esm/{index-f24f57d5.js → index-db423d7b.js} +13 -13
- package/build/esm/{index-26cfe0bb.js → index-dea22586.js} +2 -2
- package/build/esm/{index-b4aee217.js → index-dfd9f7df.js} +2 -2
- package/build/esm/{index-215f5800.js → index-e1fe3a5b.js} +1 -1
- package/build/esm/{index-90bb79b8.js → index-e2260ffa.js} +13 -13
- package/build/esm/{index-b32fe487.js → index-f27d65ec.js} +15 -15
- package/build/esm/{index-0710e23d.js → index-f5335875.js} +9 -15
- package/build/esm/{index-185648e7.js → index-f7979138.js} +3 -3
- package/build/esm/{index-bdec32bc.js → index-fb2de7c3.js} +7 -7
- package/build/esm/{index-f36ec57a.js → index-fb3af40f.js} +13 -13
- package/build/esm/index.js +119 -119
- package/build/esm/{labelSorting-7d8f17d3.js → labelSorting-edb2b18a.js} +4 -4
- package/build/esm/lead/LeadGen.helpers.d.ts +2 -2
- package/build/esm/lead/LeadGen.type.d.ts +4 -3
- package/build/esm/lead/LeadGenInline/LeadGenInline.d.ts +8 -0
- package/build/esm/lead/LeadGenInline/index.d.ts +2 -0
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +21 -15
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +1 -3
- package/build/esm/lead/index.d.ts +5 -1
- package/build/esm/lead/layouts/inline.d.ts +3 -2
- package/build/esm/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/esm/lead/newLeadPopup.d.ts +2 -1
- package/build/esm/lead/services/index.d.ts +5 -1
- package/build/esm/lead/services/index.type.d.ts +5 -0
- package/build/esm/lead/utils.d.ts +18 -0
- package/build/esm/lead.js +432 -332
- package/build/esm/{logoIcon-374f4970.js → logoIcon-7646edff.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc/cachedSystem.d.ts +5 -0
- package/build/esm/misc.js +18 -18
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +75 -75
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +47 -47
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +51 -51
- package/build/esm/{post-ecd47b07.js → post-8f42afbc.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/esm/ssoV2.js +53 -41
- package/build/esm/{store-4db51f5b.js → store-966ef305.js} +3 -3
- package/build/esm/subot.js +37 -37
- package/build/esm/surveyOrPremiumBanner.js +34 -34
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-da2ce7af.js → surveyThankyouCard-c20fa807.js} +5 -5
- package/build/esm/together.js +57 -57
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +31 -31
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +52 -52
- package/build/esm/togetherMoleculesCardAuthor.js +29 -29
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +40 -40
- package/build/esm/togetherOrganisms.js +51 -51
- package/build/esm/togetherRichTextEditor.js +18 -18
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-fd926313.js → translationsProvider-647a2db0.js} +1 -1
- package/build/esm/{treePopoverMenu-51a31cf4.js → treePopoverMenu-8c561cb3.js} +19 -19
- package/build/esm/{types-412455f0.js → types-6bed1943.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-8732f623.js → useCategory-69865f9d.js} +5 -5
- package/build/esm/{useHealthToolCache-9f834040.js → useHealthToolCache-32e3d6d9.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-446bd4ee.js → usePlacesAutocomplete-4ec2c43f.js} +4 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-d53683c9.js → utils-03be42a6.js} +2 -2
- package/build/esm/{utils-98ce346a.js → utils-ab71b4b1.js} +2 -2
- package/build/esm/{utils-f7d1e360.js → utils-c729484a.js} +5 -5
- package/build/esm/{utils-4d7ed0d7.js → utils-f4d1c5fb.js} +3 -3
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-c73ebe34.js → healthTools-85e5eb32.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks/usePlacesAutocomplete.d.ts +1 -1
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-36dab6a0.js → index-02c87bc2.js} +1 -1
- package/build/{index-09859d04.js → index-0ca0f026.js} +2 -2
- package/build/{index-bd672f38.js → index-0ee812d6.js} +1 -1
- package/build/{index-800c6cd9.js → index-0f5669eb.js} +6 -6
- package/build/{index-10ae0863.js → index-1055cd24.js} +7 -7
- package/build/{index-a13846df.js → index-1a10efaa.js} +13 -13
- package/build/{index-073cd8c2.js → index-1ffd5b21.js} +17 -17
- package/build/{index-997a2207.js → index-2265eeea.js} +1 -1
- package/build/{index-ec35fa03.js → index-24708627.js} +2 -2
- package/build/{index-c8cc0745.js → index-268b532d.js} +13 -13
- package/build/{index-d8a06556.js → index-28cbbdf4.js} +13 -13
- package/build/{index-9a54d8c5.js → index-296e15ed.js} +3 -3
- package/build/{index-016a428a.js → index-2adbe7a3.js} +3 -3
- package/build/{index-256f0f6e.js → index-2cb14b4b.js} +1 -1
- package/build/{index-76fd2e65.js → index-30a19bc1.js} +3 -3
- package/build/{index-495dc845.js → index-31b43caf.js} +5 -5
- package/build/{index-3db7b258.js → index-32ed78c5.js} +6 -6
- package/build/{index-9c4ca6bf.js → index-3867da1b.js} +11 -11
- package/build/{index-6fa141c1.js → index-3c38a412.js} +32 -32
- package/build/{index-4f86f204.js → index-415315a9.js} +3 -3
- package/build/{index-38bc90d8.js → index-429c9b6b.js} +1 -1
- package/build/{index-cee8e21b.js → index-4fa88469.js} +9 -15
- package/build/{index-6b8c94b2.js → index-58937d75.js} +3 -3
- package/build/{index-d759fabc.js → index-5e659205.js} +2 -2
- package/build/{index-132959e1.js → index-601b4ce2.js} +24 -24
- package/build/{index-0bf2c959.js → index-612cc9b9.js} +2 -2
- package/build/{index-2a3391f8.js → index-63955802.js} +2 -2
- package/build/{index-9d537b28.js → index-63ca536c.js} +15 -15
- package/build/{index-68e59121.js → index-6a8c7325.js} +3 -3
- package/build/{index-57ba5e79.js → index-6b87a7fc.js} +7 -7
- package/build/{index-4117c682.js → index-6c58b0da.js} +2 -2
- package/build/{index-724ff3bc.js → index-6ef7a536.js} +30 -30
- package/build/{index-2718d2cb.js → index-6fe359e8.js} +3 -3
- package/build/{index-3f6e67a1.js → index-72851afc.js} +2 -2
- package/build/{index-0e2ebdca.js → index-756642cb.js} +13 -13
- package/build/{index-07575f0c.js → index-7bed6df2.js} +22 -22
- package/build/{index-f8fa97dd.js → index-7fa743ce.js} +15 -15
- package/build/{index-593890f6.js → index-8bbbf05b.js} +32 -32
- package/build/{index-ec80e863.js → index-8de31573.js} +21 -41
- package/build/{index-2d6eb5f5.js → index-9f47550e.js} +2 -2
- package/build/{index-acc06c0b.js → index-a4476544.js} +2 -2
- package/build/{index-39bcd741.js → index-a7704a96.js} +4 -4
- package/build/{index-7c8b8e56.js → index-aa0d5699.js} +6 -6
- package/build/{index-acb317e2.js → index-af62f473.js} +25 -25
- package/build/{index-cc4242ae.js → index-b27ddca8.js} +13 -13
- package/build/{index-312ebc69.js → index-b4632771.js} +6 -6
- package/build/{index-b62fab2d.js → index-bd6f500a.js} +1 -1
- package/build/{index-7b4a82e1.js → index-c370ee7b.js} +16 -16
- package/build/{index-a57d707a.js → index-c40d61a0.js} +1 -1
- package/build/{index-3e1532fb.js → index-cbf09c07.js} +5 -5
- package/build/{index-bed5366c.js → index-cd2b1a11.js} +17 -17
- package/build/{index-94945a5f.js → index-cd711b45.js} +17 -17
- package/build/{index-08335f5a.js → index-d0f4b4f2.js} +2 -2
- package/build/{index-20877a0f.js → index-d6fc5f76.js} +10 -10
- package/build/{index-93d99257.js → index-d76cd192.js} +2 -2
- package/build/{index-dec3cee2.js → index-d87e96bb.js} +13 -13
- package/build/{index-30aa67da.js → index-d94aa2e3.js} +1 -1
- package/build/{index-6c6657d7.js → index-daf4d41c.js} +16 -16
- package/build/{index-4096d4a6.js → index-db657b3c.js} +17 -17
- package/build/{index-1e6e9ba1.js → index-e43f9d13.js} +8 -8
- package/build/{index-a2df0bbc.js → index-ef521b19.js} +3 -3
- package/build/{index-bfb9ecb4.js → index-f51bb35f.js} +2 -2
- package/build/{index-5ebe5b38.js → index-f5aea36a.js} +2 -2
- package/build/{index-bf7dc022.js → index-f714c7c6.js} +2 -2
- package/build/{index-09c3ae7c.js → index-f845e499.js} +15 -15
- package/build/{index-43ba38c7.js → index-fb56674a.js} +6 -6
- package/build/{index-7a85c562.js → index-fb9c6a3e.js} +4 -4
- package/build/{index-fefebab3.js → index-fc658a63.js} +2 -2
- package/build/index.js +119 -119
- package/build/{labelSorting-e63a6a77.js → labelSorting-5efd4233.js} +4 -4
- package/build/lead/LeadGen.helpers.d.ts +2 -2
- package/build/lead/LeadGen.type.d.ts +4 -3
- package/build/lead/LeadGenInline/LeadGenInline.d.ts +8 -0
- package/build/lead/LeadGenInline/index.d.ts +2 -0
- package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +21 -15
- package/build/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +1 -3
- package/build/lead/index.d.ts +5 -1
- package/build/lead/layouts/inline.d.ts +3 -2
- package/build/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/lead/newLeadPopup.d.ts +2 -1
- package/build/lead/services/index.d.ts +5 -1
- package/build/lead/services/index.type.d.ts +5 -0
- package/build/lead/utils.d.ts +18 -0
- package/build/lead.js +431 -329
- package/build/{logoIcon-63b93928.js → logoIcon-9f7c0032.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc/cachedSystem.d.ts +5 -0
- package/build/misc.js +18 -18
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +75 -75
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +47 -47
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +51 -51
- package/build/{post-68fdeea4.js → post-146fd5fe.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/ssoV2.js +51 -39
- package/build/{store-348302b3.js → store-ba505d6a.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-6650c7c4.js → surveyThankyouCard-9b26148e.js} +5 -5
- package/build/together.js +57 -57
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +31 -31
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +52 -52
- package/build/togetherMoleculesCardAuthor.js +29 -29
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +40 -40
- package/build/togetherOrganisms.js +51 -51
- package/build/togetherRichTextEditor.js +18 -18
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-d58821cd.js → translationsProvider-d88a150a.js} +1 -1
- package/build/{treePopoverMenu-5d483005.js → treePopoverMenu-4ff31bad.js} +19 -19
- package/build/{types-c48eeb81.js → types-6113ffdf.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-ecf755ad.js → useCategory-aa5f1b9e.js} +5 -5
- package/build/{useHealthToolCache-2674f4c5.js → useHealthToolCache-f3974059.js} +1 -1
- package/build/{usePlacesAutocomplete-ac40a4dd.js → usePlacesAutocomplete-7bb8ea02.js} +4 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-33c1a8a1.js → utils-15cf4bed.js} +3 -3
- package/build/{utils-3f33c852.js → utils-82bb3b31.js} +2 -2
- package/build/{utils-fd45a936.js → utils-b1712bb6.js} +2 -2
- package/build/{utils-b7c16896.js → utils-feeb55f4.js} +5 -5
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-cebb1c4d.js → BMI_BOYS.percentile.monthly-1d037709.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-17eb127a.js → BMI_BOYS.percentile.weekly-3bbb61f3.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-93a7f7c4.js → BMI_BOYS.percentile.yearly-da2c6c1f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-12e5886b.js → BMI_BOYS.zscore.monthly-fb0ece7d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-a562a272.js → BMI_BOYS.zscore.weekly-8415733b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-6eb2b149.js → BMI_BOYS.zscore.yearly-ccde3de8.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-56e35e72.js → BMI_GIRLS.percentile.monthly-8ce3df66.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-b5ddccba.js → BMI_GIRLS.percentile.weekly-71b8f9cf.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-2bf6e5fc.js → BMI_GIRLS.percentile.yearly-03be2266.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-1be7a376.js → BMI_GIRLS.zscore.monthly-c4964f7c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-a3481505.js → BMI_GIRLS.zscore.weekly-5d7413af.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-ce84f0d4.js → BMI_GIRLS.zscore.yearly-243d5a3f.js} +0 -0
- /package/build/{ChevronDown-76b71a87.js → ChevronDown-d280dae8.js} +0 -0
- /package/build/{Close-e0c87acf.js → Close-0fa9f81b.js} +0 -0
- /package/build/{Google-6251ce88.js → Google-988168e0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-da590130.js → HEAD CIRCUM_BOYS.percentile.monthly-5a50cdbb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c3357b42.js → HEAD CIRCUM_BOYS.percentile.weekly-2f4858ec.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2a03d4de.js → HEAD CIRCUM_BOYS.percentile.yearly-b595af4a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e61f4d99.js → HEAD CIRCUM_BOYS.zscore.monthly-fd0a1e09.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-285bc4e6.js → HEAD CIRCUM_BOYS.zscore.weekly-4e35b365.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-974cd65e.js → HEAD CIRCUM_BOYS.zscore.yearly-d3ab7127.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-395967f6.js → HEAD CIRCUM_GIRLS.percentile.monthly-7dc420e6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-5a730eed.js → HEAD CIRCUM_GIRLS.percentile.weekly-91e84da9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-ea99d243.js → HEAD CIRCUM_GIRLS.percentile.yearly-f487601a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f2304be7.js → HEAD CIRCUM_GIRLS.zscore.monthly-6e2a47b4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-c6e3fece.js → HEAD CIRCUM_GIRLS.zscore.weekly-195aa890.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-2c2ee3be.js → HEAD CIRCUM_GIRLS.zscore.yearly-a4f042c7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-64391dd4.js → HEIGHT_BOYS.percentile.monthly-76acdffd.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-ed0c482c.js → HEIGHT_BOYS.percentile.weekly-62bd8963.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-bc395351.js → HEIGHT_BOYS.percentile.yearly-b005b618.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-40fe8e45.js → HEIGHT_BOYS.zscore.monthly-9aa52f61.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-f9a00b96.js → HEIGHT_BOYS.zscore.weekly-f0051e9d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-1f8d99b2.js → HEIGHT_BOYS.zscore.yearly-1b4ebed9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-773c626b.js → HEIGHT_GIRLS.percentile.monthly-171d9e8e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d8615dcc.js → HEIGHT_GIRLS.percentile.weekly-6c0a1818.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-f7fa9756.js → HEIGHT_GIRLS.percentile.yearly-b08c1d43.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-cc8eee46.js → HEIGHT_GIRLS.zscore.monthly-93918315.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-744fcec6.js → HEIGHT_GIRLS.zscore.weekly-a9838718.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-08387da6.js → HEIGHT_GIRLS.zscore.yearly-750c9cec.js} +0 -0
- /package/build/{Locale-3facafc2.js → Locale-366643f6.js} +0 -0
- /package/build/{Visible-37a1bb36.js → Visible-6bf902c1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-2a7c6562.js → WEIGHT_BOYS.percentile.monthly-75d893b1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-fb16deac.js → WEIGHT_BOYS.percentile.weekly-21085ab5.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-c2347468.js → WEIGHT_BOYS.percentile.yearly-045c57ed.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-27b5db93.js → WEIGHT_BOYS.zscore.monthly-a389150a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-9a7c063a.js → WEIGHT_BOYS.zscore.weekly-f5410a6b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-077fdb59.js → WEIGHT_BOYS.zscore.yearly-b215f167.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-af183d6f.js → WEIGHT_GIRLS.percentile.monthly-c1c9483f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-1c8ece29.js → WEIGHT_GIRLS.percentile.weekly-6174746a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-f55d8aa3.js → WEIGHT_GIRLS.percentile.yearly-edad71dd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-31486c9c.js → WEIGHT_GIRLS.zscore.monthly-e735ee30.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-0b934ceb.js → WEIGHT_GIRLS.zscore.weekly-5d5f4171.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-81757ea2.js → WEIGHT_GIRLS.zscore.yearly-a29f2713.js} +0 -0
- /package/build/{animation-20bfc7a1.js → animation-cfe0ef22.js} +0 -0
- /package/build/{constants-ea5c320f.js → constants-0ed23d09.js} +0 -0
- /package/build/{constants-c059d68b.js → constants-a8611a01.js} +0 -0
- /package/build/{constants-e5b47402.js → constants-c27a8035.js} +0 -0
- /package/build/{dataTransform-7cacd22a.js → dataTransform-138b7a3d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-b1329e36.js → BMI_BOYS.percentile.monthly-78d4a592.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-c6d483ef.js → BMI_BOYS.percentile.weekly-ff9040ea.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-a135cf5e.js → BMI_BOYS.percentile.yearly-fcbd5e66.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-8980bba2.js → BMI_BOYS.zscore.monthly-8a66782b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-21f062d1.js → BMI_BOYS.zscore.weekly-4a6a951a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-c0eced76.js → BMI_BOYS.zscore.yearly-8557d199.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-baefdf8f.js → BMI_GIRLS.percentile.monthly-eb78528f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-46ddf650.js → BMI_GIRLS.percentile.weekly-4080e040.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-d8e60410.js → BMI_GIRLS.percentile.yearly-a756a0ad.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-99c3cace.js → BMI_GIRLS.zscore.monthly-0a2ccb7b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-8310134d.js → BMI_GIRLS.zscore.weekly-bec1efb4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-a6947d79.js → BMI_GIRLS.zscore.yearly-4a122321.js} +0 -0
- /package/build/esm/{ChevronDown-451a5615.js → ChevronDown-9225a593.js} +0 -0
- /package/build/esm/{Close-4acf4c82.js → Close-f1da2174.js} +0 -0
- /package/build/esm/{Google-8fcb1ebe.js → Google-eec62a77.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-5ec8621c.js → HEAD CIRCUM_BOYS.percentile.monthly-51c1f16c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-bc86f72b.js → HEAD CIRCUM_BOYS.percentile.weekly-5aad905b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7d2c3a46.js → HEAD CIRCUM_BOYS.percentile.yearly-0644b75f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ef88e92e.js → HEAD CIRCUM_BOYS.zscore.monthly-097e499d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-d7c433de.js → HEAD CIRCUM_BOYS.zscore.weekly-66f310ca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-5e80291f.js → HEAD CIRCUM_BOYS.zscore.yearly-79bf63ed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-885c68f9.js → HEAD CIRCUM_GIRLS.percentile.monthly-d51921b0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-3f2264a4.js → HEAD CIRCUM_GIRLS.percentile.weekly-16e7dd3c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1bfd23fa.js → HEAD CIRCUM_GIRLS.percentile.yearly-350d2c8d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-36c0172f.js → HEAD CIRCUM_GIRLS.zscore.monthly-f75bd64f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f83d1a17.js → HEAD CIRCUM_GIRLS.zscore.weekly-820a263a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-2092f8b7.js → HEAD CIRCUM_GIRLS.zscore.yearly-7786916e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ec480d03.js → HEIGHT_BOYS.percentile.monthly-25da1d57.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-96a5a034.js → HEIGHT_BOYS.percentile.weekly-b4eff898.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c2eb7d37.js → HEIGHT_BOYS.percentile.yearly-acddcb6b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-0c3fe32f.js → HEIGHT_BOYS.zscore.monthly-405cd241.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e9ebd290.js → HEIGHT_BOYS.zscore.weekly-5a9e7d28.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-0d045612.js → HEIGHT_BOYS.zscore.yearly-56fb7b3c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ec405052.js → HEIGHT_GIRLS.percentile.monthly-14947ae8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-794e2529.js → HEIGHT_GIRLS.percentile.weekly-85e09f7c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-569a2d0a.js → HEIGHT_GIRLS.percentile.yearly-4f645c5d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-d9e7e4f5.js → HEIGHT_GIRLS.zscore.monthly-f203b4d1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-aec243e2.js → HEIGHT_GIRLS.zscore.weekly-8bcaa5b2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-b5c7dca9.js → HEIGHT_GIRLS.zscore.yearly-78fa2691.js} +0 -0
- /package/build/esm/{Locale-a7f918a4.js → Locale-7c177439.js} +0 -0
- /package/build/esm/{Visible-98b8b34b.js → Visible-c1d4a1c9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b3434746.js → WEIGHT_BOYS.percentile.monthly-f74ba58b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ffee64f8.js → WEIGHT_BOYS.percentile.weekly-3a4fbb80.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-27ae3fbb.js → WEIGHT_BOYS.percentile.yearly-c65a32e1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-fbd57fc9.js → WEIGHT_BOYS.zscore.monthly-3ed58d1d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-988ef8e5.js → WEIGHT_BOYS.zscore.weekly-8c0fbbe8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-88357eb8.js → WEIGHT_BOYS.zscore.yearly-aa696db8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2b01a9ab.js → WEIGHT_GIRLS.percentile.monthly-cfda4fd3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-76019d1f.js → WEIGHT_GIRLS.percentile.weekly-199c8d66.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-031409d3.js → WEIGHT_GIRLS.percentile.yearly-c1df4116.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-3b049e09.js → WEIGHT_GIRLS.zscore.monthly-005a50de.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-b44b958b.js → WEIGHT_GIRLS.zscore.weekly-83f2d9a1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c5200e22.js → WEIGHT_GIRLS.zscore.yearly-9056f0e1.js} +0 -0
- /package/build/esm/{animation-f46b8247.js → animation-46c77276.js} +0 -0
- /package/build/esm/{constants-2c66227b.js → constants-12c90134.js} +0 -0
- /package/build/esm/{constants-472edf66.js → constants-290c3b11.js} +0 -0
- /package/build/esm/{constants-ec327a89.js → constants-f6a00864.js} +0 -0
- /package/build/esm/{dataTransform-22982e79.js → dataTransform-99c4fd58.js} +0 -0
- /package/build/esm/{index-89e9c0dd.js → index-19f01623.js} +0 -0
- /package/build/esm/{index-20556b49.js → index-31c06d2f.js} +0 -0
- /package/build/esm/{index-519923b8.js → index-4220b8db.js} +0 -0
- /package/build/esm/{index-8cdd7cc6.js → index-50b7813b.js} +0 -0
- /package/build/esm/{index-da3922f7.js → index-5ce211bb.js} +0 -0
- /package/build/esm/{index-8dd7e84a.js → index-65955e1c.js} +0 -0
- /package/build/esm/{index-5b6513d9.js → index-65a121e5.js} +0 -0
- /package/build/esm/{index-4e2f33d6.js → index-c635d501.js} +0 -0
- /package/build/esm/{index.styles-50a3d079.js → index.styles-e988de17.js} +0 -0
- /package/build/esm/{localizeNumberFormat-e44227dd.js → localizeNumberFormat-12cf4023.js} +0 -0
- /package/build/esm/{normalizeLink-0bb35be5.js → normalizeLink-47a460df.js} +0 -0
- /package/build/esm/{number-72f098d3.js → number-59cca451.js} +0 -0
- /package/build/esm/{paths-4d491e77.js → paths-047b41af.js} +0 -0
- /package/build/esm/{shared-94691ad3.js → shared-0d99adda.js} +0 -0
- /package/build/esm/{text-852055d1.js → text-76c3e90e.js} +0 -0
- /package/build/esm/{translationsContext-50a77d4b.js → translationsContext-0c20459e.js} +0 -0
- /package/build/esm/{tslib.es6-3d1a652f.js → tslib.es6-d2424a34.js} +0 -0
- /package/build/esm/{types-9d97254c.js → types-113c6d92.js} +0 -0
- /package/build/esm/{useIsInit-faa9f02e.js → useIsInit-35debeda.js} +0 -0
- /package/build/esm/{useOutsideClick-403d4b2e.js → useOutsideClick-5c2d5374.js} +0 -0
- /package/build/esm/{useScrollbarSize-41d67513.js → useScrollbarSize-01efff12.js} +0 -0
- /package/build/esm/{useUniqueId-983e511f.js → useUniqueId-a6170f09.js} +0 -0
- /package/build/esm/{utils-4d940c54.js → utils-369f3418.js} +0 -0
- /package/build/{index-a840f078.js → index-0a97a2ea.js} +0 -0
- /package/build/{index-e2a2f3e8.js → index-1714fb71.js} +0 -0
- /package/build/{index-2eee0e82.js → index-25e01312.js} +0 -0
- /package/build/{index-6217edc2.js → index-557376af.js} +0 -0
- /package/build/{index-66ef6216.js → index-7f7e3d7a.js} +0 -0
- /package/build/{index-14dcb2ef.js → index-a408be9a.js} +0 -0
- /package/build/{index-7200db1f.js → index-b40a3e58.js} +0 -0
- /package/build/{index-8c2eb52d.js → index-c07f3b33.js} +0 -0
- /package/build/{index.styles-4dbdb479.js → index.styles-4197eb52.js} +0 -0
- /package/build/{localizeNumberFormat-5efc3afa.js → localizeNumberFormat-22971b14.js} +0 -0
- /package/build/{normalizeLink-56ec1348.js → normalizeLink-6c154492.js} +0 -0
- /package/build/{number-610dfd10.js → number-e1ed6c68.js} +0 -0
- /package/build/{paths-255d602d.js → paths-b26c7673.js} +0 -0
- /package/build/{shared-41b258bb.js → shared-860a366c.js} +0 -0
- /package/build/{text-6261ae46.js → text-6dedba33.js} +0 -0
- /package/build/{translationsContext-6e354212.js → translationsContext-267f8dfd.js} +0 -0
- /package/build/{tslib.es6-ba32b355.js → tslib.es6-99840f8f.js} +0 -0
- /package/build/{types-9ec0d5b6.js → types-5a5ba6e3.js} +0 -0
- /package/build/{useIsInit-bc8bbac2.js → useIsInit-e9d11ec5.js} +0 -0
- /package/build/{useOutsideClick-164f08be.js → useOutsideClick-daab3358.js} +0 -0
- /package/build/{useScrollbarSize-61ae7675.js → useScrollbarSize-948f9e22.js} +0 -0
- /package/build/{useUniqueId-3c389224.js → useUniqueId-6ade25ea.js} +0 -0
- /package/build/{utils-a1525b03.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-
|
|
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-
|
|
11
|
+
var index = require('./index-fb9c6a3e.js');
|
|
12
12
|
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
13
|
-
var index$1 = require('./index-
|
|
14
|
-
var translationsContext = require('./translationsContext-
|
|
15
|
-
var utils$1 = require('./utils-
|
|
16
|
-
var index$2 = require('./index-
|
|
17
|
-
var index$3 = require('./index-
|
|
18
|
-
var index$5 = require('./index-
|
|
19
|
-
var index$4 = require('./index-
|
|
20
|
-
require('./index.styles-
|
|
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-
|
|
23
|
-
var text = require('./text-
|
|
24
|
-
require('./index-
|
|
25
|
-
var utils = require('./utils-
|
|
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-
|
|
28
|
-
var index$a = require('./index-
|
|
29
|
-
require('./index-
|
|
30
|
-
var usePlacesAutocomplete = require('./usePlacesAutocomplete-
|
|
31
|
-
var index$6 = require('./index-
|
|
32
|
-
var translationsProvider = require('./translationsProvider-
|
|
33
|
-
var Locale = require('./Locale-
|
|
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-
|
|
41
|
-
var index$8 = require('./index-
|
|
42
|
-
var index$9 = require('./index-
|
|
43
|
-
var index$b = require('./index-
|
|
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-
|
|
47
|
-
var index$c = require('./index-
|
|
48
|
-
var Close = require('./Close-
|
|
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-
|
|
50
|
+
require('./normalizeLink-6c154492.js');
|
|
51
51
|
require('@hhgtech/icons/other');
|
|
52
52
|
require('@mantine/carousel');
|
|
53
53
|
require('classnames');
|
|
54
|
-
require('./useUniqueId-
|
|
54
|
+
require('./useUniqueId-6ade25ea.js');
|
|
55
55
|
require('./constantsSite.js');
|
|
56
56
|
require('@hhgtech/icons/core');
|
|
57
|
-
require('./shared-
|
|
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-
|
|
73
|
+
require('./index-0a97a2ea.js');
|
|
74
74
|
require('slugify');
|
|
75
75
|
require('string-format');
|
|
76
76
|
require('./togetherApiPaths.js');
|
|
77
|
-
require('./constants-
|
|
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
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
.
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
//
|
|
1875
|
-
//
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
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
|
-
|
|
1998
|
-
|
|
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,147 +2070,149 @@ 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
|
-
|
|
2123
|
+
onSubmit(value) {
|
|
2018
2124
|
/** Init for FAKING function */
|
|
2019
2125
|
LeadLog('** LeadGen Submit : ', value);
|
|
2020
2126
|
return Promise.reject(value);
|
|
2021
2127
|
},
|
|
2022
|
-
|
|
2128
|
+
onImpression(value) {
|
|
2023
2129
|
/** Init for FAKING function */
|
|
2024
|
-
LeadLog('** LeadGen
|
|
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,
|
|
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 [
|
|
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: '',
|
|
2044
2142
|
subscriptionType: 'TypeA',
|
|
2045
2143
|
subscriptionPhoneType: '',
|
|
2046
|
-
subcriptionCateId: '',
|
|
2047
|
-
subcriptionCateName: '',
|
|
2048
2144
|
});
|
|
2049
2145
|
const locale = React.useMemo(() => {
|
|
2050
2146
|
return localeProps || Locale.LOCALE['PhilippinesEnglish'];
|
|
2051
2147
|
}, [localeProps]);
|
|
2052
|
-
const { url, campaign_id, cookie_id, ga_client_id, category_list, article_id, article_title, } = React.useMemo(() => ({
|
|
2053
|
-
url: location.href.toLowerCase() || '',
|
|
2054
|
-
cookie_id: miscCookieHelper.getCookie('hhg-id') || null,
|
|
2055
|
-
ga_client_id: miscCookieHelper.getCookie('_ga'),
|
|
2056
|
-
campaign_id: forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
|
|
2057
|
-
campaign_code: campaignCodeProps || (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code),
|
|
2058
|
-
category_list: categoryList,
|
|
2059
|
-
article_id: articleId,
|
|
2060
|
-
article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
|
|
2061
|
-
}), [
|
|
2062
|
-
campaignCodeProps,
|
|
2063
|
-
articleId,
|
|
2064
|
-
categoryList,
|
|
2065
|
-
forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
|
|
2066
|
-
extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
|
|
2067
|
-
subscriptionInfo === null || subscriptionInfo === void 0 ? void 0 : subscriptionInfo.subcriptionCateName,
|
|
2068
|
-
]);
|
|
2069
|
-
// const fetchCampaign = useCallback(
|
|
2070
|
-
// (campaign_code: string) => {
|
|
2071
|
-
// Service.getCampaignByCode(campaign_code).then((res) => {
|
|
2072
|
-
// const { _data } = res || {}
|
|
2073
|
-
// const { campaigns } = _data || {}
|
|
2074
|
-
// LeadLog('** LeadGen Campaign : ', campaigns)
|
|
2075
|
-
// setForceCampaign(formatCampaignDetail(campaigns))
|
|
2076
|
-
// })
|
|
2077
|
-
// },
|
|
2078
|
-
// [campaignCodeProps],
|
|
2079
|
-
// )
|
|
2080
2148
|
// TODO : Update form for LeadGen
|
|
2081
|
-
const
|
|
2149
|
+
const onSubmit = React.useCallback((data) => {
|
|
2082
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');
|
|
2083
2156
|
}, []);
|
|
2084
2157
|
const submitSubscriptionBox = React.useCallback((value) => {
|
|
2085
|
-
const data = Object.assign(Object.assign({}, value), {
|
|
2158
|
+
const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
|
|
2086
2159
|
// campaign_id,
|
|
2087
|
-
site_domain, url: (value === null || value === void 0 ? void 0 : value.url) ||
|
|
2088
|
-
// ...extraValues,
|
|
2089
|
-
article_id, category_id: subscriptionInfo.subcriptionCateId, category_name: subscriptionInfo.subcriptionCateName, 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 || '' });
|
|
2090
2161
|
return Service.postSubscriptionBoxLead({ data });
|
|
2091
2162
|
}, [
|
|
2092
2163
|
extraValues,
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
subscriptionInfo.subcriptionCateId,
|
|
2098
|
-
subscriptionInfo.subcriptionCateName,
|
|
2099
|
-
url,
|
|
2100
|
-
cookie_id,
|
|
2101
|
-
ga_client_id,
|
|
2164
|
+
extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
|
|
2165
|
+
siteDomain,
|
|
2166
|
+
articleId,
|
|
2167
|
+
categoryId,
|
|
2102
2168
|
]);
|
|
2103
|
-
const
|
|
2104
|
-
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
2169
|
+
const impressionSubscriptionBox = React.useCallback((type) => {
|
|
2105
2170
|
const impression = {
|
|
2106
2171
|
subscription_title: subscriptionInfo.subscriptionTitle,
|
|
2107
2172
|
name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
|
|
2108
2173
|
area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
|
|
2109
2174
|
phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
|
|
2110
|
-
site_domain:
|
|
2175
|
+
site_domain: siteDomain,
|
|
2111
2176
|
url: location.href.toLowerCase(),
|
|
2112
2177
|
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
2113
|
-
ga_client_id:
|
|
2114
|
-
article_title,
|
|
2115
|
-
article_id,
|
|
2116
|
-
category_id:
|
|
2117
|
-
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) || '',
|
|
2118
2183
|
type,
|
|
2119
2184
|
};
|
|
2120
2185
|
return Service.trackingSubscription(impression);
|
|
2121
2186
|
}, [
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
article_title,
|
|
2125
|
-
cookie_id,
|
|
2126
|
-
ga_client_id,
|
|
2127
|
-
subscriptionInfo.subcriptionCateId,
|
|
2128
|
-
subscriptionInfo.subcriptionCateName,
|
|
2187
|
+
articleId,
|
|
2188
|
+
categoryId,
|
|
2129
2189
|
subscriptionInfo.subscriptionTitle,
|
|
2130
|
-
|
|
2190
|
+
extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
|
|
2131
2191
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
|
|
2132
2192
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
|
|
2133
2193
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
2134
2194
|
]);
|
|
2135
2195
|
React.useEffect(() => {
|
|
2196
|
+
/** Force Campaign */
|
|
2136
2197
|
if (forceCampaignProps) {
|
|
2137
2198
|
setForceCampaign(formatCampaignDetail(forceCampaignProps));
|
|
2199
|
+
setRawForceCampaign(forceCampaignProps);
|
|
2138
2200
|
return;
|
|
2139
2201
|
}
|
|
2140
2202
|
/** For Subscription Box */
|
|
2141
|
-
if (
|
|
2203
|
+
if (categoryId) {
|
|
2142
2204
|
Service.getSubscriptionBoxInfo({
|
|
2143
|
-
category:
|
|
2144
|
-
site:
|
|
2205
|
+
category: categoryId,
|
|
2206
|
+
site: siteDomain,
|
|
2145
2207
|
slug: location === null || location === void 0 ? void 0 : location.pathname,
|
|
2146
2208
|
}).then((res) => {
|
|
2147
|
-
var _a;
|
|
2148
2209
|
const { _data } = res || {};
|
|
2149
|
-
const { item
|
|
2150
|
-
const { icon, content
|
|
2210
|
+
const { item, campaign_code, btn_type = 'zalo' } = _data || {};
|
|
2211
|
+
const { icon, content } = item || {};
|
|
2212
|
+
LeadLog('** LeadGen SubscriptionBox campaign_code : ', campaign_code);
|
|
2151
2213
|
LeadLog('** LeadGen SubscriptionBox subscription_icon : ', icon);
|
|
2152
2214
|
LeadLog('** LeadGen SubscriptionBox subscription_title : ', content);
|
|
2153
|
-
setSubscriptionInfo((prev) => {
|
|
2154
|
-
var _a, _b;
|
|
2155
|
-
return (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content, subscriptionPhoneType: btn_type, subcriptionCateId: cate_id, subcriptionCateName: (_b = (_a = category_list.filter((i) => i.termId == cate_id)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.name }));
|
|
2156
|
-
});
|
|
2215
|
+
setSubscriptionInfo((prev) => (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content, subscriptionPhoneType: btn_type })));
|
|
2157
2216
|
setForceCampaign(formatCampaignDetail({
|
|
2158
2217
|
id: 6993,
|
|
2159
2218
|
name: '',
|
|
@@ -2277,10 +2336,39 @@ const LeadGenContextProvider = (props) => {
|
|
|
2277
2336
|
});
|
|
2278
2337
|
return;
|
|
2279
2338
|
}
|
|
2280
|
-
|
|
2281
|
-
|
|
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
|
+
// })
|
|
2282
2362
|
// }
|
|
2283
|
-
}, [
|
|
2363
|
+
}, [
|
|
2364
|
+
forceCampaignProps,
|
|
2365
|
+
campaignCodeProps,
|
|
2366
|
+
categoryId,
|
|
2367
|
+
siteId,
|
|
2368
|
+
siteDomain,
|
|
2369
|
+
apiLeadUrl,
|
|
2370
|
+
DEBUG_URL,
|
|
2371
|
+
]);
|
|
2284
2372
|
React.useEffect(() => {
|
|
2285
2373
|
leadStore.apiSsoUrl = apiSsoUrl;
|
|
2286
2374
|
leadStore.apiLeadUrl = apiLeadUrl;
|
|
@@ -2291,10 +2379,16 @@ const LeadGenContextProvider = (props) => {
|
|
|
2291
2379
|
}
|
|
2292
2380
|
return (React__default["default"].createElement(LeadGenContext.Provider, { value: Object.assign(Object.assign(Object.assign({}, restProps), subscriptionInfo), { userInfo, campaign_code: campaignCodeProps, apiSsoUrl,
|
|
2293
2381
|
apiLeadUrl,
|
|
2294
|
-
apiSubotUrl, locale: localeProps,
|
|
2295
|
-
|
|
2382
|
+
apiSubotUrl, locale: localeProps, extraValues,
|
|
2383
|
+
articleId,
|
|
2384
|
+
categoryId,
|
|
2385
|
+
siteDomain,
|
|
2386
|
+
forceCampaign,
|
|
2387
|
+
rawForceCampaign,
|
|
2388
|
+
onSubmit,
|
|
2389
|
+
onImpression,
|
|
2296
2390
|
submitSubscriptionBox,
|
|
2297
|
-
|
|
2391
|
+
impressionSubscriptionBox }) },
|
|
2298
2392
|
React__default["default"].createElement(LeadGenTranslationProvider, { locale: locale }, children)));
|
|
2299
2393
|
};
|
|
2300
2394
|
const useLeadGenContext = () => {
|
|
@@ -3307,7 +3401,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3307
3401
|
const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
|
|
3308
3402
|
const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
|
|
3309
3403
|
const { submitBlock } = actionBlocks || {};
|
|
3310
|
-
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish,
|
|
3404
|
+
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impressionSubscriptionBox, } = useLeadGenContext();
|
|
3311
3405
|
const { t } = index$1.useTranslations();
|
|
3312
3406
|
const { action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
3313
3407
|
const [loading, setLoading] = React.useState(false);
|
|
@@ -3367,7 +3461,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3367
3461
|
const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
|
|
3368
3462
|
const [res] = yield Promise.all([
|
|
3369
3463
|
submitSubscriptionBox(reqValues),
|
|
3370
|
-
|
|
3464
|
+
impressionSubscriptionBox('submit_form'),
|
|
3371
3465
|
]);
|
|
3372
3466
|
const { _data } = res || {};
|
|
3373
3467
|
const { model } = _data || {};
|
|
@@ -3413,7 +3507,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3413
3507
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
|
|
3414
3508
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
3415
3509
|
]);
|
|
3416
|
-
return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () =>
|
|
3510
|
+
return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impressionSubscriptionBox('impression') },
|
|
3417
3511
|
React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
|
|
3418
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 })),
|
|
3419
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 })))));
|
|
@@ -3422,9 +3516,11 @@ const LeadGenSubscriptionBox$1 = React.memo(LeadGenSubscriptionBoxWithoutMemo);
|
|
|
3422
3516
|
|
|
3423
3517
|
const Container = () => {
|
|
3424
3518
|
const context = React.useContext(LeadGenContext);
|
|
3425
|
-
const { campaign_code, locale, siteId, siteDomain, userInfo, forceCampaign
|
|
3426
|
-
|
|
3427
|
-
|
|
3519
|
+
const { campaign_code, locale, siteId, siteDomain, userInfo, forceCampaign } = context;
|
|
3520
|
+
if (!forceCampaign || !(forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id)) {
|
|
3521
|
+
return null;
|
|
3522
|
+
}
|
|
3523
|
+
return (React__default["default"].createElement(LeadGenSubscriptionBox$1, { locale: locale, siteId: siteId, siteDomain: siteDomain, userInfo: userInfo, forceCampaign: forceCampaign, campaign_code: campaign_code }));
|
|
3428
3524
|
};
|
|
3429
3525
|
Container.displayName = 'LeadGenSubscriptionBox';
|
|
3430
3526
|
const ALLOW_LOCALE = [Locale.LOCALE.Vietnam, Locale.LOCALE.Malaysia, Locale.LOCALE.Indonesia];
|
|
@@ -4146,7 +4242,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
|
|
|
4146
4242
|
React__default["default"].createElement(index$4.Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
|
|
4147
4243
|
};
|
|
4148
4244
|
|
|
4149
|
-
const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
|
|
4245
|
+
const InlineLayout = ({ flatComponent, content, inlinePosition, doImpression, }) => {
|
|
4150
4246
|
const target = React.useMemo(() => {
|
|
4151
4247
|
if (!inlinePosition)
|
|
4152
4248
|
return null;
|
|
@@ -4251,6 +4347,9 @@ const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
|
|
|
4251
4347
|
}
|
|
4252
4348
|
}
|
|
4253
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
|
+
}
|
|
4254
4353
|
if (!inlinePosition || !target)
|
|
4255
4354
|
return null;
|
|
4256
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);
|
|
@@ -4746,15 +4845,14 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4746
4845
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = tslib_es6.__rest(_d, ["error"]);
|
|
4747
4846
|
return (React__default["default"].createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
4748
4847
|
React__default["default"].createElement(core.Input.Wrapper, { error: error },
|
|
4749
|
-
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:
|
|
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: {
|
|
4750
4849
|
root: {
|
|
4751
4850
|
a: {
|
|
4752
|
-
textDecoration: 'underline
|
|
4851
|
+
textDecoration: 'underline',
|
|
4753
4852
|
textUnderlineOffset: '3px',
|
|
4754
|
-
color: `${theme.colors.gray[7]} !important`,
|
|
4755
4853
|
},
|
|
4756
4854
|
},
|
|
4757
|
-
}
|
|
4855
|
+
} }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }, tncInputProps)))));
|
|
4758
4856
|
}
|
|
4759
4857
|
return null;
|
|
4760
4858
|
})));
|
|
@@ -5007,7 +5105,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
5007
5105
|
];
|
|
5008
5106
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
5009
5107
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
5010
|
-
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, }) => {
|
|
5011
5109
|
var _a, _b;
|
|
5012
5110
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
5013
5111
|
const { isMobile } = index$b.useScreenSize();
|
|
@@ -5407,7 +5505,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5407
5505
|
return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
|
|
5408
5506
|
}
|
|
5409
5507
|
else if (isInline) {
|
|
5410
|
-
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 }));
|
|
5411
5509
|
}
|
|
5412
5510
|
return null;
|
|
5413
5511
|
};
|
|
@@ -5500,7 +5598,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
|
5500
5598
|
return null;
|
|
5501
5599
|
}
|
|
5502
5600
|
}
|
|
5503
|
-
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, }) => {
|
|
5504
5602
|
var _a, _b;
|
|
5505
5603
|
const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
|
|
5506
5604
|
const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
|
|
@@ -5603,7 +5701,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
|
|
|
5603
5701
|
currentLayout == 'Fullscreen' ||
|
|
5604
5702
|
currentLayout == 'Sidebar' ||
|
|
5605
5703
|
currentLayout == 'Slider') {
|
|
5606
|
-
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 }));
|
|
5607
5705
|
}
|
|
5608
5706
|
else if (currentLayout.includes('Skin')) {
|
|
5609
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 }));
|
|
@@ -5695,8 +5793,10 @@ const formatTrackingData = (params) => {
|
|
|
5695
5793
|
};
|
|
5696
5794
|
|
|
5697
5795
|
// mount css
|
|
5698
|
-
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, }) => {
|
|
5699
5797
|
var _a, _b;
|
|
5798
|
+
const theme = core.useMantineTheme();
|
|
5799
|
+
console.log({ theme });
|
|
5700
5800
|
const scrollEventHandlerRef = React.useRef();
|
|
5701
5801
|
const leadStartTimeRef = React.useRef(Date.now());
|
|
5702
5802
|
const { apiUrl } = React.useMemo(() => {
|
|
@@ -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;
|