@hhgtech/hhg-components 1.29.388-beta-7 → 1.29.389
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-652556c9.js → InputDate-87f8c1b3.js} +7 -17
- package/build/{LastPeriod-6a5de106.js → LastPeriod-28ba00b9.js} +1 -1
- package/build/{MobileBottomNavigationIcon-bdcf7bb3.js → MobileBottomNavigationIcon-fa56ca01.js} +3 -3
- package/build/{Spinner-3b647ece.js → Spinner-e7e02cfe.js} +1 -1
- package/build/{WhatsApp-10c89a89.js → WhatsApp-e653c162.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +55 -54
- package/build/babyGrowth.js +83 -83
- 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/atoms/drawerComponent/index.d.ts +0 -7
- package/build/components.js +147 -146
- package/build/{constants-81c40f40.js → constants-896f72f9.js} +1 -1
- 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-c0bc14cc.js → core-aa9fa8ab.js} +1 -1
- package/build/{dataTransform-98ae99e1.js → dataTransform-3817b774.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-6b599a97.js → editor-05588dda.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{InputDate-5bcb86a3.js → InputDate-615ba5e2.js} +7 -17
- package/build/esm/{LastPeriod-fe954c90.js → LastPeriod-200478fc.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-5cb590c5.js → MobileBottomNavigationIcon-13cd2989.js} +3 -3
- package/build/esm/{Spinner-dbe201c0.js → Spinner-4479b373.js} +1 -1
- package/build/esm/{WhatsApp-1fe40b98.js → WhatsApp-409f931f.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +54 -53
- package/build/esm/babyGrowth.js +83 -83
- 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/atoms/drawerComponent/index.d.ts +0 -7
- package/build/esm/components.js +103 -102
- package/build/esm/{constants-f484f3ca.js → constants-77b68157.js} +1 -1
- 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-02ae4f4e.js → core-2674ae08.js} +1 -1
- package/build/esm/{dataTransform-36c31719.js → dataTransform-462b5cde.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-4d6a4eb3.js → editor-71c3aa69.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-4ac8be44.js → healthTools-37774743.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- 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-95140e4a.js → index-016217ee.js} +1 -1
- package/build/esm/{index-dae6ebeb.js → index-0289cdd9.js} +10 -10
- package/build/esm/{index-784eb4dd.js → index-08660fac.js} +4 -4
- package/build/esm/{index-d0078e14.js → index-09ad2aa2.js} +31 -31
- package/build/esm/{index-0ac04e19.js → index-0f12b2d4.js} +6 -6
- package/build/esm/{index-84dc1521.js → index-0f7de548.js} +2 -2
- package/build/esm/{index-77074c6a.js → index-100b8fef.js} +2 -2
- package/build/esm/{index-6422ec3b.js → index-16a67639.js} +1 -1
- package/build/esm/{index-f08a5b5a.js → index-16ea46d5.js} +16 -16
- package/build/esm/{index-72b2fc31.js → index-1a496de3.js} +18 -18
- package/build/esm/{index-bd9df969.js → index-21c06378.js} +13 -13
- package/build/esm/{index-575cb748.js → index-32acb2f4.js} +13 -13
- package/build/esm/{index-59db9118.js → index-34ac9a2f.js} +2 -2
- package/build/esm/{index-e3715e01.js → index-3ad646f6.js} +1 -1
- package/build/esm/{index-16c95a37.js → index-3eb9d92d.js} +1 -1
- package/build/esm/{index-4cc8a074.js → index-4475acb6.js} +2 -2
- package/build/esm/{index-da06c585.js → index-465537c2.js} +6 -6
- package/build/esm/{index-ae748858.js → index-502a1d87.js} +13 -13
- package/build/esm/{index-62a86081.js → index-515f29b1.js} +2 -2
- package/build/esm/{index-07d9dac7.js → index-52702963.js} +6 -6
- package/build/esm/{index-1074bc28.js → index-5311d99c.js} +11 -11
- package/build/esm/{index-9b71873c.js → index-5a863f88.js} +2 -2
- package/build/esm/{index-beca1793.js → index-5ca93207.js} +3 -3
- package/build/esm/{index-ba35ee70.js → index-5da83c88.js} +17 -17
- package/build/esm/{index-2ce66db5.js → index-61212648.js} +2 -2
- package/build/esm/{index-d73b8935.js → index-6122b824.js} +13 -13
- package/build/esm/{index-14041d7b.js → index-673c9a11.js} +31 -31
- package/build/esm/{index-c46e490a.js → index-765bf52e.js} +5 -5
- package/build/esm/index-765eb0d2.js +118 -0
- package/build/esm/{index-1c96fa6c.js → index-7800c5dd.js} +1 -1
- package/build/esm/{index-203ecd93.js → index-7d267048.js} +1 -1
- package/build/esm/{index-6c619762.js → index-86020b2e.js} +15 -15
- package/build/esm/{index-41fceb5a.js → index-88a04d15.js} +3 -3
- package/build/esm/{index-4375f5b2.js → index-8d560086.js} +3 -3
- package/build/esm/{index-3e53d0b3.js → index-8e68eee3.js} +2 -2
- package/build/esm/{index-070f0f61.js → index-92fc43b4.js} +2 -2
- package/build/esm/{index-9e0f72f7.js → index-951c4df4.js} +2 -2
- package/build/esm/{index-d350cf3e.js → index-95bbc314.js} +39 -82
- package/build/esm/{index-5778972d.js → index-987662b4.js} +16 -16
- package/build/esm/{index-0333d8bd.js → index-9e4ab7c8.js} +1 -1
- package/build/esm/{index-1c38678f.js → index-a4402894.js} +17 -17
- package/build/esm/{index-1d79cdcd.js → index-a716e179.js} +3 -3
- package/build/esm/{index-ae0c4fc3.js → index-a7869f59.js} +7 -7
- package/build/esm/{index-e5807ca9.js → index-ab371329.js} +17 -17
- package/build/esm/{index-d7c7ee0b.js → index-ae6b88da.js} +2 -2
- package/build/esm/{index-f39e9b7e.js → index-b1b4ad8b.js} +1 -1
- package/build/esm/{index-2b66935a.js → index-b20a76e6.js} +2 -2
- package/build/esm/{index-1fef2f63.js → index-b5213b11.js} +8 -8
- package/build/esm/{index-733a2e58.js → index-b8df80c6.js} +1 -1
- package/build/esm/{index-5972402f.js → index-c051cec1.js} +25 -25
- package/build/esm/{index-2aa4872e.js → index-c98a4e4f.js} +7 -7
- package/build/esm/{index-1b16536b.js → index-ca0714af.js} +7 -120
- package/build/esm/{index-a52713db.js → index-cdcd1530.js} +3 -3
- package/build/esm/{index-27608357.js → index-ce072898.js} +16 -16
- package/build/esm/{index-30cb564d.js → index-d9fd6c89.js} +18 -18
- package/build/esm/{index-d7a67909.js → index-dd48bd54.js} +3 -3
- package/build/esm/{index-e112046a.js → index-e73dae1b.js} +4 -4
- package/build/esm/{index-54caf436.js → index-ea4c8de0.js} +6 -6
- package/build/esm/{index-38739260.js → index-ee572246.js} +40 -32
- package/build/esm/{index-7436d57b.js → index-f138772f.js} +16 -16
- package/build/esm/{index-023f357b.js → index-f17c9113.js} +6 -6
- package/build/esm/{index-5686e092.js → index-f4113b79.js} +24 -24
- package/build/esm/{index-93bb70c1.js → index-f9edaf24.js} +17 -17
- package/build/esm/{index-cae40c32.js → index-fd36464c.js} +22 -22
- package/build/esm/{index-4566b27a.js → index-fd795a7e.js} +2 -2
- package/build/esm/index.js +119 -118
- package/build/esm/{labelSorting-8011c754.js → labelSorting-a6fc8d96.js} +4 -4
- package/build/esm/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +0 -262
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +130 -471
- package/build/esm/{logoIcon-e08874c6.js → logoIcon-cc80d228.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +17 -17
- 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 +74 -74
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +46 -46
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +23 -23
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +50 -50
- package/build/esm/{post-35a2d6b7.js → post-c060c20b.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/esm/ssoV2.js +40 -52
- package/build/esm/{store-cb14b160.js → store-071ad73c.js} +3 -3
- package/build/esm/subot.js +36 -36
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-f544b518.js → surveyThankyouCard-e0e79d13.js} +5 -5
- package/build/esm/together/components/molecules/postContent/index.d.ts +1 -2
- package/build/esm/together/components/molecules/postContent/index.styled.d.ts +0 -10
- package/build/esm/together.js +56 -56
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +51 -51
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +39 -39
- package/build/esm/togetherOrganisms.js +50 -50
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-f1ba11d9.js → translationsProvider-1db16188.js} +1 -1
- package/build/esm/{treePopoverMenu-90c481b5.js → treePopoverMenu-ff4c26b8.js} +19 -19
- package/build/esm/{types-2d331726.js → types-3d1dde84.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-7c2c90a5.js → useCategory-b178124b.js} +5 -5
- package/build/esm/{useHealthToolCache-6b7563f1.js → useHealthToolCache-12abe69e.js} +1 -1
- package/build/esm/{useMantineLocale-8184f8ba.js → useMantineLocale-c9dfea51.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-04625a50.js → usePlacesAutocomplete-ac647a08.js} +1 -1
- package/build/esm/{useScreenSize-24b7423b.js → useScreenSize-7b7fab73.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-bc065dac.js → utils-2fbec0dd.js} +2 -2
- package/build/esm/{utils-7cdabcba.js → utils-9f858cbd.js} +5 -5
- package/build/esm/{utils-82d312f2.js → utils-e43cff87.js} +3 -3
- package/build/esm/{utils-0ce918b5.js → utils-ee503436.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-bdb9fa39.js → healthTools-4fda6f2b.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-d6eada9e.js → index-00b329bb.js} +1 -1
- package/build/{index-c1c97b33.js → index-0424fc42.js} +2 -2
- package/build/{index-a15001c9.js → index-050eaf6f.js} +2 -2
- package/build/{index-0e0e2c08.js → index-0569bb5c.js} +25 -25
- package/build/{index-5cbd874d.js → index-0e0f3432.js} +5 -5
- package/build/{index-a68ded47.js → index-16e87dee.js} +6 -6
- package/build/{index-4f9ca5f3.js → index-1abaa221.js} +24 -24
- package/build/{index-bdaa66d4.js → index-23356c58.js} +3 -3
- package/build/{index-12e93db3.js → index-31a3425e.js} +1 -1
- package/build/{index-b4e54ff8.js → index-415365da.js} +40 -32
- package/build/{index-1b934b11.js → index-447621fb.js} +7 -7
- package/build/{index-b62b7b1c.js → index-56d7d1cf.js} +16 -16
- package/build/{index-89b6db6d.js → index-580f83f3.js} +7 -7
- package/build/{index-0764ddc9.js → index-5818ad40.js} +6 -6
- package/build/{index-7b2a2980.js → index-58fad0be.js} +3 -3
- package/build/{index-b7c5df62.js → index-59f4e1e1.js} +4 -4
- package/build/index-5e3795e9.js +125 -0
- package/build/{index-4df9d9c9.js → index-6120c990.js} +3 -3
- package/build/{index-bcd025d0.js → index-62278a68.js} +8 -8
- package/build/{index-4d21c399.js → index-63958aa8.js} +18 -18
- package/build/{index-fa98d3a9.js → index-63fdaaa3.js} +2 -2
- package/build/{index-2ba27845.js → index-6755128a.js} +1 -1
- package/build/{index-d8495faa.js → index-6a9eaa4b.js} +3 -3
- package/build/{index-eaf75ef1.js → index-6c0c674c.js} +6 -6
- package/build/{index-1fe3ae0a.js → index-73606006.js} +31 -31
- package/build/{index-3f9364f6.js → index-74c27c07.js} +17 -17
- package/build/{index-0dac8c55.js → index-7ae6f89d.js} +6 -6
- package/build/{index-080cd3fb.js → index-7ce8f8e6.js} +2 -2
- package/build/{index-fdfb6396.js → index-80935629.js} +6 -6
- package/build/{index-c9613db6.js → index-853a24da.js} +15 -15
- package/build/{index-89fd85e3.js → index-863004ec.js} +2 -2
- package/build/{index-87a3bb81.js → index-8bf372fa.js} +2 -2
- package/build/{index-57babd83.js → index-90f43261.js} +5 -119
- package/build/{index-1ab506d5.js → index-936a10d1.js} +2 -2
- package/build/{index-14839f61.js → index-950ea5ea.js} +17 -17
- package/build/{index-4318417f.js → index-9afc3a02.js} +38 -81
- package/build/{index-a741dd16.js → index-a00311af.js} +2 -2
- package/build/{index-819941b6.js → index-a2b31a06.js} +17 -17
- package/build/{index-54f2f158.js → index-a5492634.js} +2 -2
- package/build/{index-96016167.js → index-a6c13252.js} +11 -11
- package/build/{index-3cd90732.js → index-b05b3ea0.js} +1 -1
- package/build/{index-579db866.js → index-b799a299.js} +2 -2
- package/build/{index-36e88ab3.js → index-c35ab8b3.js} +13 -13
- package/build/{index-cfb82435.js → index-c7c5d4a3.js} +1 -1
- package/build/{index-314c69e9.js → index-ca95ec7d.js} +4 -4
- package/build/{index-a0e404c4.js → index-ccdf85bc.js} +1 -1
- package/build/{index-dbad2df6.js → index-d16b8465.js} +1 -1
- package/build/{index-18341b2e.js → index-d975d49d.js} +22 -22
- package/build/{index-82cf6632.js → index-dca5aede.js} +16 -16
- package/build/{index-2841b66a.js → index-e1fa1dbf.js} +2 -2
- package/build/{index-0be0878a.js → index-e3ed6a70.js} +13 -13
- package/build/{index-a52896e6.js → index-e59a2991.js} +13 -13
- package/build/{index-ffe19087.js → index-e5e37445.js} +1 -1
- package/build/{index-38ba0668.js → index-e959920f.js} +10 -10
- package/build/{index-93232b0c.js → index-eb267dc3.js} +3 -3
- package/build/{index-2e4a2dae.js → index-ec213a4d.js} +2 -2
- package/build/{index-cca7a3b4.js → index-ed0bff17.js} +1 -1
- package/build/{index-5235dc84.js → index-ee28a432.js} +13 -13
- package/build/{index-4c9ae4bd.js → index-f2b66ec2.js} +2 -2
- package/build/{index-bfcaeaa8.js → index-f7f78ca1.js} +18 -18
- package/build/{index-fab3c7d6.js → index-f86f6999.js} +31 -31
- package/build/{index-21473288.js → index-f8821258.js} +17 -17
- package/build/{index-c5b73da0.js → index-f935db8f.js} +16 -16
- package/build/{index-64461f2c.js → index-f9c72711.js} +3 -3
- package/build/{index-5931ae31.js → index-ff64c394.js} +16 -16
- package/build/index.js +185 -184
- package/build/{labelSorting-eea942f1.js → labelSorting-02f92233.js} +4 -4
- package/build/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +0 -262
- package/build/lead.css +1 -1
- package/build/lead.js +129 -470
- package/build/{logoIcon-7ea90a77.js → logoIcon-f273dbb5.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +17 -17
- 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 +74 -74
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +46 -46
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +50 -50
- package/build/{post-6163d6b0.js → post-ff8a6e33.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/ssoV2.js +38 -50
- package/build/{store-ce201e1f.js → store-492fce17.js} +3 -3
- package/build/subot.js +35 -35
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-ede7b8bc.js → surveyThankyouCard-05c7eee9.js} +5 -5
- package/build/together/components/molecules/postContent/index.d.ts +1 -2
- package/build/together/components/molecules/postContent/index.styled.d.ts +0 -10
- package/build/together.js +56 -56
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +51 -51
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +39 -39
- package/build/togetherOrganisms.js +50 -50
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-d1a52a91.js → translationsProvider-3112929b.js} +1 -1
- package/build/{treePopoverMenu-2f0fa711.js → treePopoverMenu-d7abb91f.js} +19 -19
- package/build/{types-98a30a50.js → types-c7ae98de.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-bb98d5f0.js → useCategory-f5efeb5a.js} +5 -5
- package/build/{useHealthToolCache-d234865a.js → useHealthToolCache-0bc54654.js} +1 -1
- package/build/{useMantineLocale-218b21e0.js → useMantineLocale-807dde46.js} +6 -6
- package/build/{usePlacesAutocomplete-1de9d0c5.js → usePlacesAutocomplete-f3b8b4d5.js} +1 -1
- package/build/{useScreenSize-a074c41f.js → useScreenSize-bbf830a0.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-4eda77e4.js → utils-4a63989c.js} +2 -2
- package/build/{utils-2e78f99f.js → utils-711c5ace.js} +5 -5
- package/build/{utils-f879073f.js → utils-d6bc0a7b.js} +2 -2
- package/build/{utils-05816bad.js → utils-ec2edce5.js} +3 -3
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/hooks/useViewportDimensions.d.ts +0 -4
- package/build/esm/lead/LeadGenForm/LeadGenEmpty.d.ts +0 -8
- package/build/esm/lead/icons/NoData.d.ts +0 -3
- package/build/esm/lead/icons/index.d.ts +0 -5
- package/build/esm/misc/getParentScroll.d.ts +0 -1
- package/build/hooks/useViewportDimensions.d.ts +0 -4
- package/build/lead/LeadGenForm/LeadGenEmpty.d.ts +0 -8
- package/build/lead/icons/NoData.d.ts +0 -3
- package/build/lead/icons/index.d.ts +0 -5
- package/build/misc/getParentScroll.d.ts +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-34305529.js → BMI_BOYS.percentile.monthly-ceada89b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-66f04e21.js → BMI_BOYS.percentile.weekly-e13f85cd.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0ef5538a.js → BMI_BOYS.percentile.yearly-51176efb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-85604ac1.js → BMI_BOYS.zscore.monthly-ff2cf9e2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-dbec95a5.js → BMI_BOYS.zscore.weekly-375562a1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-7656b9d9.js → BMI_BOYS.zscore.yearly-e5d25b45.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-cf94be91.js → BMI_GIRLS.percentile.monthly-f13c202b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-ecc92ae5.js → BMI_GIRLS.percentile.weekly-77a3a666.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-098e5634.js → BMI_GIRLS.percentile.yearly-54a13712.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-57cf7fb3.js → BMI_GIRLS.zscore.monthly-e9b6247c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-cc906e3f.js → BMI_GIRLS.zscore.weekly-bd803d57.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-62d11b2e.js → BMI_GIRLS.zscore.yearly-28014156.js} +0 -0
- /package/build/{ChevronDown-0624d7d1.js → ChevronDown-b10cb5dd.js} +0 -0
- /package/build/{Close-5044a6a7.js → Close-9416a644.js} +0 -0
- /package/build/{Google-1785101f.js → Google-4a24fd0e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b1380f83.js → HEAD CIRCUM_BOYS.percentile.monthly-a362df5d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-2a7a76a7.js → HEAD CIRCUM_BOYS.percentile.weekly-22c2c4b0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-5e32bc9e.js → HEAD CIRCUM_BOYS.percentile.yearly-304380ea.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-5e7225a6.js → HEAD CIRCUM_BOYS.zscore.monthly-5e29dc94.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c99875e7.js → HEAD CIRCUM_BOYS.zscore.weekly-a7535b0f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-a9c39134.js → HEAD CIRCUM_BOYS.zscore.yearly-35ed5be5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-a151940a.js → HEAD CIRCUM_GIRLS.percentile.monthly-90797c50.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a891a1e7.js → HEAD CIRCUM_GIRLS.percentile.weekly-60317e1a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4297a9bd.js → HEAD CIRCUM_GIRLS.percentile.yearly-e35c342b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-20c42cf7.js → HEAD CIRCUM_GIRLS.zscore.monthly-1c9bda12.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6cc32de9.js → HEAD CIRCUM_GIRLS.zscore.weekly-b94de72b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-c6d128fe.js → HEAD CIRCUM_GIRLS.zscore.yearly-1a37d458.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-fe89dfa5.js → HEIGHT_BOYS.percentile.monthly-3824c88e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-5217bb7f.js → HEIGHT_BOYS.percentile.weekly-e4bc223b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-cf994a53.js → HEIGHT_BOYS.percentile.yearly-f252d63c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-daed5772.js → HEIGHT_BOYS.zscore.monthly-ed6c4548.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-0de80832.js → HEIGHT_BOYS.zscore.weekly-4789cb83.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-26bb775d.js → HEIGHT_BOYS.zscore.yearly-d9223156.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-2c0ec86f.js → HEIGHT_GIRLS.percentile.monthly-9b063eac.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-2d356f48.js → HEIGHT_GIRLS.percentile.weekly-9d736299.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-8710cc32.js → HEIGHT_GIRLS.percentile.yearly-7d557fdc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-e7fc3c32.js → HEIGHT_GIRLS.zscore.monthly-82ad3fad.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-d7c6af89.js → HEIGHT_GIRLS.zscore.weekly-50ff7472.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-156e0b81.js → HEIGHT_GIRLS.zscore.yearly-9ed59975.js} +0 -0
- /package/build/{Locale-249a9d7e.js → Locale-42db704b.js} +0 -0
- /package/build/{Visible-ce364d40.js → Visible-5db2478c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-760f3646.js → WEIGHT_BOYS.percentile.monthly-a47ec748.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-25e5ec70.js → WEIGHT_BOYS.percentile.weekly-9c0988b9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-f141346b.js → WEIGHT_BOYS.percentile.yearly-0150afa1.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-936ed4b6.js → WEIGHT_BOYS.zscore.monthly-44286b15.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-a5d2c037.js → WEIGHT_BOYS.zscore.weekly-037526f1.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-b54e6f5f.js → WEIGHT_BOYS.zscore.yearly-3ab58d83.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-525bf98f.js → WEIGHT_GIRLS.percentile.monthly-ca1df585.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-aeb446db.js → WEIGHT_GIRLS.percentile.weekly-eb9b5030.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-298ca5c2.js → WEIGHT_GIRLS.percentile.yearly-5259c60d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-c3cea765.js → WEIGHT_GIRLS.zscore.monthly-ab0c357a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-48a15af0.js → WEIGHT_GIRLS.zscore.weekly-46dc1a29.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-acada0f3.js → WEIGHT_GIRLS.zscore.yearly-3aca5e72.js} +0 -0
- /package/build/{animation-81cb4396.js → animation-aa10e3e1.js} +0 -0
- /package/build/{constants-d82f58c4.js → constants-446a9e51.js} +0 -0
- /package/build/{constants-e95e5721.js → constants-57004569.js} +0 -0
- /package/build/{constants-30959d60.js → constants-6be0d789.js} +0 -0
- /package/build/{dataTransform-3762e718.js → dataTransform-918588a1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-4fd2b18e.js → BMI_BOYS.percentile.monthly-e7a1da66.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-83f8065e.js → BMI_BOYS.percentile.weekly-17b31b88.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-741b8a91.js → BMI_BOYS.percentile.yearly-43fe2413.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-709c0078.js → BMI_BOYS.zscore.monthly-89369bf3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-a934ec02.js → BMI_BOYS.zscore.weekly-2bd6bd40.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-704e97e6.js → BMI_BOYS.zscore.yearly-0441a954.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-918b657f.js → BMI_GIRLS.percentile.monthly-8a996b87.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-aeb1d153.js → BMI_GIRLS.percentile.weekly-2a167f91.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-05c17c04.js → BMI_GIRLS.percentile.yearly-875a652a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-f107be19.js → BMI_GIRLS.zscore.monthly-9c02e67f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-14447903.js → BMI_GIRLS.zscore.weekly-35076e23.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-7d580228.js → BMI_GIRLS.zscore.yearly-c10fd0ea.js} +0 -0
- /package/build/esm/{ChevronDown-14de34f1.js → ChevronDown-4fe9d429.js} +0 -0
- /package/build/esm/{Close-c426e7ce.js → Close-99b72780.js} +0 -0
- /package/build/esm/{Google-50facff2.js → Google-019b4d3b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f1c94a3d.js → HEAD CIRCUM_BOYS.percentile.monthly-a360840e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-5bb7a6f8.js → HEAD CIRCUM_BOYS.percentile.weekly-db3b5041.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7bf11cd4.js → HEAD CIRCUM_BOYS.percentile.yearly-187795ca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-eac956a6.js → HEAD CIRCUM_BOYS.zscore.monthly-dc66b863.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-908a6bfb.js → HEAD CIRCUM_BOYS.zscore.weekly-68936251.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-60d957d3.js → HEAD CIRCUM_BOYS.zscore.yearly-f97ae423.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0bea8670.js → HEAD CIRCUM_GIRLS.percentile.monthly-7bb4d280.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5b0e13e7.js → HEAD CIRCUM_GIRLS.percentile.weekly-23c13e5e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-7e867d1d.js → HEAD CIRCUM_GIRLS.percentile.yearly-a87aedb2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-2da78224.js → HEAD CIRCUM_GIRLS.zscore.monthly-7aff811e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-7f258a04.js → HEAD CIRCUM_GIRLS.zscore.weekly-656c316e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d26ea285.js → HEAD CIRCUM_GIRLS.zscore.yearly-bd880425.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-cfc8b272.js → HEIGHT_BOYS.percentile.monthly-07ade9df.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-92097c21.js → HEIGHT_BOYS.percentile.weekly-1400be53.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3f75ab55.js → HEIGHT_BOYS.percentile.yearly-735151d0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-71e5ea57.js → HEIGHT_BOYS.zscore.monthly-6b662e95.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-7ff7c7a5.js → HEIGHT_BOYS.zscore.weekly-837df066.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-89ff1779.js → HEIGHT_BOYS.zscore.yearly-33b1617f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1c10d5b3.js → HEIGHT_GIRLS.percentile.monthly-db16db83.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-a5b1f99c.js → HEIGHT_GIRLS.percentile.weekly-4598aa7e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-b057fef2.js → HEIGHT_GIRLS.percentile.yearly-87b5aae7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-bd934549.js → HEIGHT_GIRLS.zscore.monthly-1ee892f0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-54ae2b62.js → HEIGHT_GIRLS.zscore.weekly-412d3ef6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-be054f54.js → HEIGHT_GIRLS.zscore.yearly-7c9a2bc1.js} +0 -0
- /package/build/esm/{Locale-092ebed3.js → Locale-6ccc3e0a.js} +0 -0
- /package/build/esm/{Visible-24260e6f.js → Visible-e993cc4f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-3e54142a.js → WEIGHT_BOYS.percentile.monthly-078dfc0b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-28a68982.js → WEIGHT_BOYS.percentile.weekly-f7b4eb3e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d9584b50.js → WEIGHT_BOYS.percentile.yearly-9fb643ae.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-69eb87b8.js → WEIGHT_BOYS.zscore.monthly-9bf7c029.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-403bac92.js → WEIGHT_BOYS.zscore.weekly-64674f74.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-64a5217f.js → WEIGHT_BOYS.zscore.yearly-860dd73e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-dec40a87.js → WEIGHT_GIRLS.percentile.monthly-476d3d80.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c50de791.js → WEIGHT_GIRLS.percentile.weekly-cb6937e4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f4139e84.js → WEIGHT_GIRLS.percentile.yearly-f265fc4c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-4e80759a.js → WEIGHT_GIRLS.zscore.monthly-01d245cf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c06d77a3.js → WEIGHT_GIRLS.zscore.weekly-90c27fb1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-8dc57a33.js → WEIGHT_GIRLS.zscore.yearly-0eeefab5.js} +0 -0
- /package/build/esm/{animation-6b88d211.js → animation-56670782.js} +0 -0
- /package/build/esm/{constants-677db9e5.js → constants-9a46d35a.js} +0 -0
- /package/build/esm/{constants-3fd81a2c.js → constants-bb2bf0d4.js} +0 -0
- /package/build/esm/{constants-f260bf07.js → constants-f0f97d88.js} +0 -0
- /package/build/esm/{dataTransform-8b8d2fdd.js → dataTransform-68f5c30e.js} +0 -0
- /package/build/esm/{index-c5c7abf9.js → index-41bb2629.js} +0 -0
- /package/build/esm/{index-ff67a928.js → index-424885e1.js} +0 -0
- /package/build/esm/{index-04a242d8.js → index-4e074af0.js} +0 -0
- /package/build/esm/{index-32ea9012.js → index-78c2ff0e.js} +0 -0
- /package/build/esm/{index-7888b7ff.js → index-bf0932bc.js} +0 -0
- /package/build/esm/{index-73c6c482.js → index-d92e7436.js} +0 -0
- /package/build/esm/{index-9647067d.js → index-dba295af.js} +0 -0
- /package/build/esm/{index-2212b776.js → index-e38b3b0a.js} +0 -0
- /package/build/esm/{index.styles-635e509e.js → index.styles-37b6b692.js} +0 -0
- /package/build/esm/lead/layouts/{emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/esm/{localizeNumberFormat-850e9912.js → localizeNumberFormat-d96ad079.js} +0 -0
- /package/build/esm/{normalizeLink-1f462ad6.js → normalizeLink-6bdb51d3.js} +0 -0
- /package/build/esm/{number-eb3ea55c.js → number-2188a072.js} +0 -0
- /package/build/esm/{other-829ffb93.js → other-951986c7.js} +0 -0
- /package/build/esm/{paths-318af2e1.js → paths-1ef618c2.js} +0 -0
- /package/build/esm/{translationsContext-003eb5fd.js → translationsContext-2d5707b7.js} +0 -0
- /package/build/esm/{tslib.es6-d5ababc0.js → tslib.es6-1efe3bfa.js} +0 -0
- /package/build/esm/{types-b88443ef.js → types-284409e4.js} +0 -0
- /package/build/esm/{useIsInit-b3d16c05.js → useIsInit-0704989e.js} +0 -0
- /package/build/esm/{useOutsideClick-e7ae3737.js → useOutsideClick-315b39fe.js} +0 -0
- /package/build/esm/{useScrollbarSize-e1505626.js → useScrollbarSize-5092706f.js} +0 -0
- /package/build/esm/{useUniqueId-053f7b3f.js → useUniqueId-01be3e3b.js} +0 -0
- /package/build/esm/{utils-f6c43418.js → utils-98243371.js} +0 -0
- /package/build/{index-0ef8a2fe.js → index-2a230719.js} +0 -0
- /package/build/{index-8ca7ab9c.js → index-3ce83f09.js} +0 -0
- /package/build/{index-f458e2fb.js → index-76f4bf34.js} +0 -0
- /package/build/{index-6b977691.js → index-7dd4ab7e.js} +0 -0
- /package/build/{index-b00cd323.js → index-86094a8c.js} +0 -0
- /package/build/{index-ad78945a.js → index-a18a17d7.js} +0 -0
- /package/build/{index-cd83160c.js → index-b6c080b7.js} +0 -0
- /package/build/{index-751a2081.js → index-b91bfedd.js} +0 -0
- /package/build/{index.styles-c30fa84d.js → index.styles-bd885a33.js} +0 -0
- /package/build/lead/layouts/{emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/{localizeNumberFormat-73816722.js → localizeNumberFormat-7b0e147b.js} +0 -0
- /package/build/{normalizeLink-6ddeb441.js → normalizeLink-ce5dbac7.js} +0 -0
- /package/build/{number-4f2d596f.js → number-e97eda17.js} +0 -0
- /package/build/{other-328cdac9.js → other-e2c99074.js} +0 -0
- /package/build/{paths-82e4b82d.js → paths-0ed88ffa.js} +0 -0
- /package/build/{translationsContext-df560897.js → translationsContext-971bd138.js} +0 -0
- /package/build/{tslib.es6-9ec96040.js → tslib.es6-77f5a1ac.js} +0 -0
- /package/build/{types-21fe1bdb.js → types-59d8b78b.js} +0 -0
- /package/build/{useIsInit-3c5007fb.js → useIsInit-cf117a90.js} +0 -0
- /package/build/{useOutsideClick-698f8739.js → useOutsideClick-09cceb6f.js} +0 -0
- /package/build/{useScrollbarSize-92e6dc33.js → useScrollbarSize-34d5f0ae.js} +0 -0
- /package/build/{useUniqueId-a9687d96.js → useUniqueId-2c955881.js} +0 -0
- /package/build/{utils-f0cb3c72.js → utils-e6d374e4.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-1efe3bfa.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback, forwardRef, useImperativeHandle, memo } from 'react';
|
|
3
|
-
import { createStyles, Box, Button as Button$1, Input as Input$1,
|
|
3
|
+
import { createStyles, Box, Button as Button$1, Input as Input$1, clsx, Autocomplete, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, TextInput, NumberInput as NumberInput$1, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import debounce from 'lodash/debounce';
|
|
6
6
|
import { createFormContext, useForm } from '@mantine/form';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-08660fac.js';
|
|
8
8
|
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
9
|
-
import { u as useTranslations } from './index-
|
|
10
|
-
import { T as TranslationsContext } from './translationsContext-
|
|
11
|
-
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-
|
|
12
|
-
import { T as Text } from './index-
|
|
13
|
-
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-
|
|
14
|
-
import { D as DatePicker } from './index-
|
|
15
|
-
import { B as Button } from './index-
|
|
16
|
-
import './index.styles-
|
|
9
|
+
import { u as useTranslations } from './index-b1b4ad8b.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-2d5707b7.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-98243371.js';
|
|
12
|
+
import { T as Text } from './index-5a863f88.js';
|
|
13
|
+
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-5311d99c.js';
|
|
14
|
+
import { D as DatePicker } from './index-52702963.js';
|
|
15
|
+
import { B as Button } from './index-7d267048.js';
|
|
16
|
+
import './index.styles-37b6b692.js';
|
|
17
17
|
import { useClickOutside } from '@mantine/hooks';
|
|
18
|
-
import './useMantineLocale-
|
|
19
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
20
|
-
import './index-
|
|
21
|
-
import { Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
22
|
-
import './other-
|
|
23
|
-
import './index-
|
|
24
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
18
|
+
import './useMantineLocale-c9dfea51.js';
|
|
19
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-16a67639.js';
|
|
20
|
+
import './index-41bb2629.js';
|
|
21
|
+
import { Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-92fc43b4.js';
|
|
22
|
+
import './other-951986c7.js';
|
|
23
|
+
import './index-dd48bd54.js';
|
|
24
|
+
import { M as MAPPED_LOCALE } from './utils-ee503436.js';
|
|
25
25
|
import { DateInput } from '@mantine/dates';
|
|
26
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-
|
|
27
|
-
import { H as Heading$1 } from './index-
|
|
28
|
-
import { t as translationsMap$1 } from './translationsProvider-
|
|
29
|
-
import { L as LOCALE } from './Locale-
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-ac647a08.js';
|
|
27
|
+
import { H as Heading$1 } from './index-0f7de548.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-1db16188.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-6ccc3e0a.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
32
32
|
import styled from '@emotion/styled';
|
|
33
33
|
import { theme } from './miscTheme.js';
|
|
34
34
|
import { css } from '@emotion/react';
|
|
35
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
36
|
-
import { i as isVideo } from './index-
|
|
37
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
38
|
-
import { motion } from 'framer-motion';
|
|
35
|
+
import { T as TogetherComponentGlobalContext } from './utils-e43cff87.js';
|
|
36
|
+
import { i as isVideo } from './index-dba295af.js';
|
|
37
|
+
import { u as useScreenSize } from './useScreenSize-7b7fab73.js';
|
|
39
38
|
import { createPortal } from 'react-dom';
|
|
40
|
-
import { B as Button$2 } from './index-
|
|
41
|
-
import { I as InputDate } from './InputDate-
|
|
42
|
-
import {
|
|
39
|
+
import { B as Button$2 } from './index-34ac9a2f.js';
|
|
40
|
+
import { I as InputDate } from './InputDate-615ba5e2.js';
|
|
41
|
+
import { D as DrawerComponent } from './index-765eb0d2.js';
|
|
42
|
+
import { C as Close } from './Close-99b72780.js';
|
|
43
43
|
import './constantsIsProduction.js';
|
|
44
|
-
import './normalizeLink-
|
|
44
|
+
import './normalizeLink-6bdb51d3.js';
|
|
45
45
|
import './constantsDomainLocales.js';
|
|
46
46
|
import '@hhgtech/icons/other';
|
|
47
47
|
import '@mantine/carousel';
|
|
48
48
|
import 'classnames';
|
|
49
|
-
import './useUniqueId-
|
|
49
|
+
import './useUniqueId-01be3e3b.js';
|
|
50
50
|
import './constantsSite.js';
|
|
51
51
|
import '@hhgtech/icons/core';
|
|
52
52
|
import '@mantine/notifications';
|
|
@@ -63,11 +63,12 @@ import './i18n-values/tl-PH.js';
|
|
|
63
63
|
import './i18n-values/vi-VN.js';
|
|
64
64
|
import './i18n-values/vi-VN_MB.js';
|
|
65
65
|
import './i18n-values/zh-TW.js';
|
|
66
|
-
import './index-
|
|
66
|
+
import './index-424885e1.js';
|
|
67
67
|
import 'slugify';
|
|
68
68
|
import 'string-format';
|
|
69
69
|
import './togetherApiPaths.js';
|
|
70
|
-
import './constants-
|
|
70
|
+
import './constants-bb2bf0d4.js';
|
|
71
|
+
import 'vaul';
|
|
71
72
|
|
|
72
73
|
const LeadGenComponentContext = createContext({});
|
|
73
74
|
|
|
@@ -2280,7 +2281,7 @@ const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validating
|
|
|
2280
2281
|
}, {});
|
|
2281
2282
|
}, [listBlockAdded.map((b) => b.name).join(','), format]);
|
|
2282
2283
|
const form = useLeadForm({
|
|
2283
|
-
validateInputOnChange:
|
|
2284
|
+
validateInputOnChange: true,
|
|
2284
2285
|
validateInputOnBlur: true,
|
|
2285
2286
|
clearInputErrorOnChange: true,
|
|
2286
2287
|
validate: validateObj,
|
|
@@ -2466,66 +2467,6 @@ const PhoneInput = forwardRef((props, ref) => {
|
|
|
2466
2467
|
React__default.createElement(Phone, Object.assign({}, restProps, { id: id, ref: ref, name: name, spellCheck: false, placeholder: placeholder, defaultCountry: defaultCountry, className: "mantine-Input-input", type: "tel", "data-control": "tel" })))));
|
|
2467
2468
|
});
|
|
2468
2469
|
|
|
2469
|
-
const NoData = ({ className, style }) => {
|
|
2470
|
-
return (React__default.createElement("svg", { width: "64", height: "55", viewBox: "0 0 64 55", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
2471
|
-
React__default.createElement("path", { d: "M32.6226 54.0001C46.2852 54.0001 57.3652 43.0033 57.3652 29.4239C57.3652 15.8446 46.2852 4.84778 32.6226 4.84778C18.9599 4.84778 7.87988 15.8446 7.87988 29.4239C7.87988 43.0033 18.9599 54.0001 32.6226 54.0001Z", fill: "#E6EAF5" }),
|
|
2472
|
-
React__default.createElement("path", { d: "M51.5751 26.2165V41.2537C51.5751 44.3778 49.0342 46.9187 45.8684 46.9187H19.4596C16.3355 46.9187 13.7946 44.4195 13.7529 41.2954C13.7529 41.2537 13.7529 41.2537 13.7529 41.2121V26.2165C13.7529 26.1748 13.7529 26.1748 13.7529 26.1332C13.7529 26.0498 13.7529 25.9665 13.7946 25.8832C13.8362 25.7583 13.8779 25.675 13.9195 25.55L21.0008 12.0123C21.2507 11.4708 21.7922 11.1792 22.3754 11.1792H42.911C43.4941 11.1792 43.994 11.4708 44.2856 12.0123L51.3668 25.55C51.4085 25.6333 51.4501 25.7583 51.4918 25.8832C51.5751 25.9665 51.5751 26.0915 51.5751 26.2165Z", fill: "#D5DDEA" }),
|
|
2473
|
-
React__default.createElement("path", { d: "M51.5751 26.2164V42.7949C51.5751 45.0859 49.7423 46.9187 47.4096 46.9187H17.9184C15.6274 46.9187 13.7529 45.0859 13.7529 42.7949V26.1331C13.7529 26.0498 13.7529 25.9665 13.7946 25.8832H23.2918C24.708 25.8832 25.8743 27.0078 25.8743 28.4658C25.8743 29.1739 26.1659 29.8404 26.6241 30.2986C27.124 30.7984 27.7071 31.0483 28.4569 31.0483H36.9127C38.329 31.0483 39.4953 29.9237 39.4953 28.4658C39.4953 27.7576 39.7869 27.0912 40.2451 26.633C40.7449 26.1331 41.3281 25.8832 42.0362 25.8832H51.4918C51.5751 25.9665 51.5751 26.0915 51.5751 26.2164Z", fill: "url(#paint0_linear_2578_27197)" }),
|
|
2474
|
-
React__default.createElement("path", { d: "M56.7342 17.6773C57.6774 17.6773 58.442 16.9126 58.442 15.9694C58.442 15.0262 57.6774 14.2616 56.7342 14.2616C55.791 14.2616 55.0264 15.0262 55.0264 15.9694C55.0264 16.9126 55.791 17.6773 56.7342 17.6773Z", fill: "#EAEEF9" }),
|
|
2475
|
-
React__default.createElement("path", { d: "M55.0257 12.1373C55.6698 12.1373 56.192 11.6152 56.192 10.971C56.192 10.3269 55.6698 9.80469 55.0257 9.80469C54.3816 9.80469 53.8594 10.3269 53.8594 10.971C53.8594 11.6152 54.3816 12.1373 55.0257 12.1373Z", fill: "#EAEEF9" }),
|
|
2476
|
-
React__default.createElement("path", { d: "M7.79034 15.9694C8.43449 15.9694 8.95667 15.4472 8.95667 14.803C8.95667 14.1589 8.43449 13.6367 7.79034 13.6367C7.1462 13.6367 6.62402 14.1589 6.62402 14.803C6.62402 15.4472 7.1462 15.9694 7.79034 15.9694Z", fill: "#EAEEF9" }),
|
|
2477
|
-
React__default.createElement("path", { d: "M5.16603 41.6286C6.36229 41.6286 7.33205 40.6588 7.33205 39.4625C7.33205 38.2663 6.36229 37.2965 5.16603 37.2965C3.96976 37.2965 3 38.2663 3 39.4625C3 40.6588 3.96976 41.6286 5.16603 41.6286Z", fill: "#EAEEF9" }),
|
|
2478
|
-
React__default.createElement("path", { d: "M43.0864 6.16785C43.6301 12.1024 43.9019 13.4615 42.6711 18.8361C42.2708 20.0309 41.8705 21.3396 41.0128 22.25C39.812 23.6725 37.6392 24.2984 35.8666 23.8432C34.0368 23.388 32.5501 21.7948 32.2071 19.8602C31.9212 18.6654 32.3214 17.2429 33.3507 16.5032C34.4371 15.8204 35.981 15.9911 36.8958 16.8446C37.9251 17.6981 38.3254 19.0068 38.2682 20.2585C38.211 21.5103 37.7536 22.7621 37.1246 23.8432C35.7027 26.5014 35.1173 26.4916 32.2071 30.8575", stroke: "#ABB5CC", strokeMiterlimit: "10", strokeDasharray: "4 4" }),
|
|
2479
|
-
React__default.createElement("path", { d: "M46.2749 3.95757C46.0575 4.75059 45.1881 5.03896 44.3187 4.53431C43.3769 4.10176 42.7249 3.74129 42.8698 3.02037C43.0871 2.29945 43.9565 2.22735 44.9708 2.15526C46.2024 2.01108 46.4198 3.16455 46.2749 3.95757Z", fill: "#DAE2EB" }),
|
|
2480
|
-
React__default.createElement("path", { d: "M39.2479 4.67842C39.6102 5.32726 40.6245 5.75981 41.3489 5.11098C42.1459 4.39005 42.7979 3.88541 42.4357 3.16448C42.0734 2.51565 41.4938 2.73193 40.2622 2.87611C39.2479 3.09239 38.8132 3.9575 39.2479 4.67842Z", fill: "#DAE2EB" }),
|
|
2481
|
-
React__default.createElement("path", { d: "M42.4358 2.01104C42.9429 1.93895 43.4501 2.22732 43.595 2.65987C43.6674 2.80406 43.7399 3.02034 43.7399 3.16452C43.8848 4.17381 43.5225 5.03892 42.9429 5.11102C42.2909 5.2552 41.6389 4.53428 41.5664 3.59707C41.5664 3.3087 41.5664 3.16452 41.5664 2.94824C41.6389 2.4436 41.9286 2.08313 42.4358 2.01104C42.5082 2.01104 42.4358 2.01104 42.4358 2.01104Z", fill: "#989FB0" }),
|
|
2482
|
-
React__default.createElement("path", { d: "M27.9127 37.0298C28.4405 37.0298 28.8684 36.6019 28.8684 36.0741C28.8684 35.5463 28.4405 35.1184 27.9127 35.1184C27.3849 35.1184 26.957 35.5463 26.957 36.0741C26.957 36.6019 27.3849 37.0298 27.9127 37.0298Z", fill: "#989FB0" }),
|
|
2483
|
-
React__default.createElement("path", { d: "M37.4186 37.0298C37.9464 37.0298 38.3742 36.6019 38.3742 36.0741C38.3742 35.5463 37.9464 35.1184 37.4186 35.1184C36.8908 35.1184 36.4629 35.5463 36.4629 36.0741C36.4629 36.6019 36.8908 37.0298 37.4186 37.0298Z", fill: "#989FB0" }),
|
|
2484
|
-
React__default.createElement("path", { d: "M34.2147 43.3063H31.2186C30.7536 43.3063 30.3662 42.9188 30.3662 42.4539C30.3662 41.989 30.7536 41.6016 31.2186 41.6016H34.1889C34.6538 41.6016 35.0413 41.989 35.0413 42.4539C35.0671 42.9188 34.6797 43.3063 34.2147 43.3063Z", fill: "#989FB0" }),
|
|
2485
|
-
React__default.createElement("defs", null,
|
|
2486
|
-
React__default.createElement("linearGradient", { id: "paint0_linear_2578_27197", x1: "32.6517", y1: "25.3966", x2: "32.6517", y2: "47.1455", gradientUnits: "userSpaceOnUse" },
|
|
2487
|
-
React__default.createElement("stop", { stopColor: "#FDFEFF" }),
|
|
2488
|
-
React__default.createElement("stop", { offset: "0.9964", stopColor: "#ECF0F5" })))));
|
|
2489
|
-
};
|
|
2490
|
-
|
|
2491
|
-
const libraries = ['places'];
|
|
2492
|
-
const GoogleLocationBlock = (props) => {
|
|
2493
|
-
var _a;
|
|
2494
|
-
const { inputWrapperOrder = ['label', 'input', 'description', 'error'], defaultValue, value: valueProps, onChange: onChangeProps, locale } = props, restProps = __rest(props, ["inputWrapperOrder", "defaultValue", "value", "onChange", "locale"]);
|
|
2495
|
-
const [LoadScript, setLoadScript] = useState(null);
|
|
2496
|
-
const [value, setValue] = useState(defaultValue || valueProps);
|
|
2497
|
-
const { predictions } = usePlacesAutocomplete(value, '', locale === 'tl-PH' ? 'en' : (_a = locale === null || locale === void 0 ? void 0 : locale.split('-')) === null || _a === void 0 ? void 0 : _a[0]);
|
|
2498
|
-
const onChangeAutocomplete = useCallback((s) => {
|
|
2499
|
-
setValue(s);
|
|
2500
|
-
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(s);
|
|
2501
|
-
}, []);
|
|
2502
|
-
const onClickItem = useCallback((item) => {
|
|
2503
|
-
/** For sure get value */
|
|
2504
|
-
setValue(item.value);
|
|
2505
|
-
const predCur = predictions === null || predictions === void 0 ? void 0 : predictions.find(({ description }) => description === item.value);
|
|
2506
|
-
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(item.value, predCur === null || predCur === void 0 ? void 0 : predCur.rawData);
|
|
2507
|
-
}, [onChangeProps, predictions]);
|
|
2508
|
-
useEffect(() => {
|
|
2509
|
-
setValue(valueProps);
|
|
2510
|
-
}, [valueProps]);
|
|
2511
|
-
useEffect(() => {
|
|
2512
|
-
var _a, _b, _c;
|
|
2513
|
-
// only load extra google script when not yet loaded
|
|
2514
|
-
if (!((_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.places) === null || _c === void 0 ? void 0 : _c.AutocompleteService) && !LoadScript) {
|
|
2515
|
-
import('@react-google-maps/api').then((m) => {
|
|
2516
|
-
setLoadScript(() => m.LoadScript);
|
|
2517
|
-
});
|
|
2518
|
-
}
|
|
2519
|
-
}, []);
|
|
2520
|
-
return (React__default.createElement(Autocomplete, Object.assign({ defaultValue: defaultValue, value: value, onChange: onChangeAutocomplete, data: predictions.map((pred) => {
|
|
2521
|
-
return { value: pred.description, label: pred.description };
|
|
2522
|
-
}), filter: () => true, onItemSubmit: onClickItem, inputWrapperOrder: inputWrapperOrder, zIndex: ZINDEX_SSO - 9e6 + 2, withinPortal: true, styles: { dropdown: { pointerEvents: 'auto' } }, inputContainer: (children) => {
|
|
2523
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
2524
|
-
LoadScript && (React__default.createElement(LoadScript, { googleMapsApiKey: GOOGLE_API_KEY, libraries: libraries, loadingElement: React__default.createElement(React__default.Fragment, null), style: { width: '100%' } })),
|
|
2525
|
-
children));
|
|
2526
|
-
} }, restProps)));
|
|
2527
|
-
};
|
|
2528
|
-
|
|
2529
2470
|
const formatLeadGenFormValue = (values, blocks) => {
|
|
2530
2471
|
const newValues = {};
|
|
2531
2472
|
for (const block of blocks) {
|
|
@@ -2874,22 +2815,17 @@ const TextField$1 = (props) => {
|
|
|
2874
2815
|
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
2875
2816
|
});
|
|
2876
2817
|
const [shrink, setShrink] = useState(shrinkProps);
|
|
2877
|
-
const focusInput = (target) => {
|
|
2878
|
-
const $textEl = target.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
2879
|
-
const $focusEl = $textEl.item($textEl.length - 1);
|
|
2880
|
-
if ($focusEl) {
|
|
2881
|
-
$focusEl.focus({ preventScroll: true });
|
|
2882
|
-
}
|
|
2883
|
-
};
|
|
2884
2818
|
const onClick = useCallback((e) => {
|
|
2819
|
+
setShrink(true);
|
|
2820
|
+
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
2885
2821
|
if (shrink) {
|
|
2886
|
-
e.preventDefault();
|
|
2887
|
-
focusInput(e.currentTarget);
|
|
2888
2822
|
return;
|
|
2889
2823
|
}
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2824
|
+
const $textEl = e.currentTarget.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
2825
|
+
const $focusEl = $textEl.item($textEl.length - 1);
|
|
2826
|
+
if ($focusEl) {
|
|
2827
|
+
$focusEl.focus();
|
|
2828
|
+
}
|
|
2893
2829
|
}, [shrink]);
|
|
2894
2830
|
useEffect(() => {
|
|
2895
2831
|
setShrink(shrinkProps);
|
|
@@ -2902,6 +2838,44 @@ const ChoiceField$1 = (props) => {
|
|
|
2902
2838
|
return (React__default.createElement(StyledChoiceFieldContainer$1, Object.assign({ className: clsx(className, 'choiceField') }, restProps), children));
|
|
2903
2839
|
};
|
|
2904
2840
|
|
|
2841
|
+
const libraries = ['places'];
|
|
2842
|
+
const GoogleLocationBlock = (props) => {
|
|
2843
|
+
var _a;
|
|
2844
|
+
const { inputWrapperOrder = ['label', 'input', 'description', 'error'], defaultValue, value: valueProps, onChange: onChangeProps, locale } = props, restProps = __rest(props, ["inputWrapperOrder", "defaultValue", "value", "onChange", "locale"]);
|
|
2845
|
+
const [LoadScript, setLoadScript] = useState(null);
|
|
2846
|
+
const [value, setValue] = useState(defaultValue || valueProps);
|
|
2847
|
+
const { predictions } = usePlacesAutocomplete(value, '', locale === 'tl-PH' ? 'en' : (_a = locale === null || locale === void 0 ? void 0 : locale.split('-')) === null || _a === void 0 ? void 0 : _a[0]);
|
|
2848
|
+
const onChangeAutocomplete = useCallback((s) => {
|
|
2849
|
+
setValue(s);
|
|
2850
|
+
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(s);
|
|
2851
|
+
}, []);
|
|
2852
|
+
const onClickItem = useCallback((item) => {
|
|
2853
|
+
/** For sure get value */
|
|
2854
|
+
setValue(item.value);
|
|
2855
|
+
const predCur = predictions === null || predictions === void 0 ? void 0 : predictions.find(({ description }) => description === item.value);
|
|
2856
|
+
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(item.value, predCur === null || predCur === void 0 ? void 0 : predCur.rawData);
|
|
2857
|
+
}, [onChangeProps, predictions]);
|
|
2858
|
+
useEffect(() => {
|
|
2859
|
+
setValue(valueProps);
|
|
2860
|
+
}, [valueProps]);
|
|
2861
|
+
useEffect(() => {
|
|
2862
|
+
var _a, _b, _c;
|
|
2863
|
+
// only load extra google script when not yet loaded
|
|
2864
|
+
if (!((_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.places) === null || _c === void 0 ? void 0 : _c.AutocompleteService) && !LoadScript) {
|
|
2865
|
+
import('@react-google-maps/api').then((m) => {
|
|
2866
|
+
setLoadScript(() => m.LoadScript);
|
|
2867
|
+
});
|
|
2868
|
+
}
|
|
2869
|
+
}, []);
|
|
2870
|
+
return (React__default.createElement(Autocomplete, Object.assign({ defaultValue: defaultValue, value: value, onChange: onChangeAutocomplete, data: predictions.map((pred) => {
|
|
2871
|
+
return { value: pred.description, label: pred.description };
|
|
2872
|
+
}), filter: () => true, onItemSubmit: onClickItem, inputWrapperOrder: inputWrapperOrder, zIndex: ZINDEX_SSO - 9e6 + 2, withinPortal: true, styles: { dropdown: { pointerEvents: 'auto' } }, inputContainer: (children) => {
|
|
2873
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2874
|
+
LoadScript && (React__default.createElement(LoadScript, { googleMapsApiKey: GOOGLE_API_KEY, libraries: libraries, loadingElement: React__default.createElement(React__default.Fragment, null), style: { width: '100%' } })),
|
|
2875
|
+
children));
|
|
2876
|
+
} }, restProps)));
|
|
2877
|
+
};
|
|
2878
|
+
|
|
2905
2879
|
const LeadGenForm = forwardRef((props, ref) => {
|
|
2906
2880
|
const { locale, blocks, scrollToErrorField = true, form: formProps, rules: validate, initialValues, onFinish, onFinishFailed, className, style, } = props;
|
|
2907
2881
|
const formRef = useRef(null);
|
|
@@ -2955,73 +2929,52 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
2955
2929
|
return (React__default.createElement("form", { ref: formRef, onSubmit: form.onSubmit(middlewareFinish, middlewareFinishFailed), className: className, style: style },
|
|
2956
2930
|
React__default.createElement(StyledLeadGenFormInner, { className: "leadgen-form_inputs" }, blocks.map((block, idx) => {
|
|
2957
2931
|
const { id, name: blockName, data } = block;
|
|
2958
|
-
const { placeholder
|
|
2932
|
+
const { placeholder, value: name, required, listQuestion, valueHTML, isSendMailChimp = false, } = data;
|
|
2959
2933
|
const formInputProps = form.getInputProps(name);
|
|
2960
2934
|
const { value, error } = formInputProps;
|
|
2961
2935
|
const reactKey = `${id}-${idx}`;
|
|
2962
2936
|
switch (blockName) {
|
|
2963
2937
|
case LEADGEN_BLOCK.TextBlock: {
|
|
2964
2938
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2965
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2939
|
+
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "text", "data-control": "text" }, formInputProps))));
|
|
2966
2940
|
}
|
|
2967
2941
|
case LEADGEN_BLOCK.NumberBlock: {
|
|
2968
2942
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2969
|
-
React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label:
|
|
2943
|
+
React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "number", "data-control": "number" }, formInputProps))));
|
|
2970
2944
|
}
|
|
2971
2945
|
case LEADGEN_BLOCK.EmailBlock: {
|
|
2972
2946
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2973
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2947
|
+
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, "data-control": "email" }, formInputProps))));
|
|
2974
2948
|
}
|
|
2975
2949
|
case LEADGEN_BLOCK.PhoneOtpBlock:
|
|
2976
2950
|
case LEADGEN_BLOCK.WhatsappOtpBlock:
|
|
2977
2951
|
case LEADGEN_BLOCK.ZaloOtpBlock:
|
|
2978
2952
|
case LEADGEN_BLOCK.PhoneBlock: {
|
|
2979
2953
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2980
|
-
React__default.createElement(PhoneInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2954
|
+
React__default.createElement(PhoneInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), type: "text", "data-control": "text" }, formInputProps))));
|
|
2981
2955
|
}
|
|
2982
2956
|
case LEADGEN_BLOCK.LocationBlock: {
|
|
2983
2957
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2984
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label:
|
|
2958
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, locale: locale, "data-control": "text" }, formInputProps))));
|
|
2985
2959
|
}
|
|
2986
2960
|
case LEADGEN_BLOCK.DateBlock: {
|
|
2987
2961
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2988
|
-
React__default.createElement(DateInput, Object.assign({ locale: (MAPPED_LOCALE === null || MAPPED_LOCALE === void 0 ? void 0 : MAPPED_LOCALE[locale]) || MAPPED_LOCALE['vi-VN'], valueFormat: "DD/MM/YYYY", name: name, withAsterisk: required, label:
|
|
2962
|
+
React__default.createElement(DateInput, Object.assign({ locale: (MAPPED_LOCALE === null || MAPPED_LOCALE === void 0 ? void 0 : MAPPED_LOCALE[locale]) || MAPPED_LOCALE['vi-VN'], valueFormat: "DD/MM/YYYY", name: name, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "default", "data-control": "date" }, formInputProps))));
|
|
2989
2963
|
}
|
|
2990
2964
|
case LEADGEN_BLOCK.DropdownBlock:
|
|
2991
2965
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2992
2966
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
2993
|
-
React__default.createElement(Select$1, Object.assign({ name: name, withAsterisk: required, label:
|
|
2967
|
+
React__default.createElement(Select$1, Object.assign({ name: name, withAsterisk: required, label: placeholder, placeholder: placeholder, data: listQuestion.map((l) => ({
|
|
2994
2968
|
value: l.value,
|
|
2995
2969
|
label: l.placeholder,
|
|
2996
|
-
}))
|
|
2997
|
-
item: {
|
|
2998
|
-
paddingBlock: 12,
|
|
2999
|
-
paddingInline: 10,
|
|
3000
|
-
fontSize: 16,
|
|
3001
|
-
lineHeight: 1.5,
|
|
3002
|
-
},
|
|
3003
|
-
nothingFound: {
|
|
3004
|
-
fontSize: 54,
|
|
3005
|
-
paddingBlock: 30,
|
|
3006
|
-
},
|
|
3007
|
-
itemsWrapper: {
|
|
3008
|
-
padding: 6,
|
|
3009
|
-
},
|
|
3010
|
-
dropdown: {
|
|
3011
|
-
'.mantine-ScrollArea-scrollbar[data-orientation="vertical"]': {
|
|
3012
|
-
'--radix-scroll-area-thumb-width': '6px',
|
|
3013
|
-
width: 'var(--radix-scroll-area-thumb-width)',
|
|
3014
|
-
paddingInline: 0,
|
|
3015
|
-
},
|
|
3016
|
-
},
|
|
3017
|
-
}, maxDropdownHeight: 192 }, formInputProps))));
|
|
2970
|
+
})) }, formInputProps))));
|
|
3018
2971
|
case LEADGEN_BLOCK.CheckboxBlock: {
|
|
3019
2972
|
const formInputCheckboxProps = form.getInputProps(name, {
|
|
3020
2973
|
type: 'checkbox',
|
|
3021
2974
|
});
|
|
3022
2975
|
return (React__default.createElement(ChoiceField$1, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
3023
2976
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
3024
|
-
React__default.createElement(Checkbox$1.Group, Object.assign({ size: "md", withAsterisk: required, label:
|
|
2977
|
+
React__default.createElement(Checkbox$1.Group, Object.assign({ size: "md", withAsterisk: required, label: placeholder, value: value, sx: {
|
|
3025
2978
|
display: 'flex',
|
|
3026
2979
|
flexDirection: 'column',
|
|
3027
2980
|
flexWrap: 'wrap',
|
|
@@ -3033,7 +2986,7 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
3033
2986
|
case LEADGEN_BLOCK.RadioBlock: {
|
|
3034
2987
|
return (React__default.createElement(ChoiceField$1, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
3035
2988
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
3036
|
-
React__default.createElement(Radio$1.Group, Object.assign({ size: "md", withAsterisk: required, label:
|
|
2989
|
+
React__default.createElement(Radio$1.Group, Object.assign({ size: "md", withAsterisk: required, label: placeholder, value: value, spellCheck: true, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, inputContainer: (children) => {
|
|
3037
2990
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
3038
2991
|
} }, formInputProps), listQuestion.map((l, _index) => (React__default.createElement(Radio$1, { name: name, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
3039
2992
|
}
|
|
@@ -3272,17 +3225,9 @@ const CloseButton = ({ onClose, containerClassName, svgClassName, }) => (React__
|
|
|
3272
3225
|
const CenterTabLayout = ({ popupId, url, newTab, imageDestkop, imageMobile, onClose, onOtherSubmit, }) => {
|
|
3273
3226
|
const { width: imageMobileWidth, height: imageMobileHeight, loaded: imageMobileLoaded, } = useImageSize(imageMobile);
|
|
3274
3227
|
const { width: imageDestkopWidth, height: imageDestkopHeight, loaded: imageDestkopLoaded, } = useImageSize(imageDestkop);
|
|
3275
|
-
useEffect(() => {
|
|
3276
|
-
if (popupId && imageMobileLoaded && imageDestkopLoaded) {
|
|
3277
|
-
document.body.classList.add('noscroll');
|
|
3278
|
-
}
|
|
3279
|
-
return () => {
|
|
3280
|
-
document.body.classList.remove('noscroll');
|
|
3281
|
-
};
|
|
3282
|
-
}, [popupId, imageMobileLoaded, imageDestkopLoaded]);
|
|
3283
3228
|
if (!imageMobileLoaded || !imageDestkopLoaded)
|
|
3284
3229
|
return null;
|
|
3285
|
-
return (React__default.createElement("div", { id: popupId, className: "
|
|
3230
|
+
return (React__default.createElement("div", { id: popupId, className: "lead-modal-wrapper", "data-popup-url": location.pathname, "data-popup-type": "center_tab" },
|
|
3286
3231
|
React__default.createElement("div", { className: "le-center-tab-popup" },
|
|
3287
3232
|
React__default.createElement("div", { style: { position: 'relative' } },
|
|
3288
3233
|
React__default.createElement("a", { className: "js-popup-other-submit", href: url, target: newTab ? 'blank' : '_parent', onClick: onOtherSubmit },
|
|
@@ -3348,223 +3293,6 @@ const FloatingLayout = ({ popupId, url, title, urlText, titleAlign, subtitle, su
|
|
|
3348
3293
|
React__default.createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" }))))));
|
|
3349
3294
|
};
|
|
3350
3295
|
|
|
3351
|
-
// https://hhgdev.atlassian.net/browse/EL-657
|
|
3352
|
-
const useViewportDimensions = () => {
|
|
3353
|
-
const dimensionsRef = useRef({ width: 0, height: 0 });
|
|
3354
|
-
const [dimensions, setDimensions] = useState(() => ({
|
|
3355
|
-
width: window.screen.availWidth,
|
|
3356
|
-
height: window.screen.availHeight,
|
|
3357
|
-
}));
|
|
3358
|
-
useEffect(() => {
|
|
3359
|
-
var _a;
|
|
3360
|
-
function visualViewport(e) {
|
|
3361
|
-
if (dimensionsRef.current.width === e.target.width &&
|
|
3362
|
-
dimensionsRef.current.height === e.target.height) {
|
|
3363
|
-
return;
|
|
3364
|
-
}
|
|
3365
|
-
const newDimensions = {
|
|
3366
|
-
width: e.target.width,
|
|
3367
|
-
height: e.target.height,
|
|
3368
|
-
};
|
|
3369
|
-
dimensionsRef.current = newDimensions;
|
|
3370
|
-
setDimensions(newDimensions);
|
|
3371
|
-
}
|
|
3372
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3373
|
-
return () => {
|
|
3374
|
-
var _a;
|
|
3375
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3376
|
-
};
|
|
3377
|
-
}, []);
|
|
3378
|
-
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3379
|
-
};
|
|
3380
|
-
|
|
3381
|
-
const StyledLeadGenLightBoxBFooter = styled.div `
|
|
3382
|
-
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3383
|
-
padding-inline: var(--spacing-x, 20px);
|
|
3384
|
-
padding-bottom: var(--spacing-y, 20px);
|
|
3385
|
-
`;
|
|
3386
|
-
const StyledLeadGenLightBoxBBody = styled.div `
|
|
3387
|
-
flex: 1;
|
|
3388
|
-
min-height: 0;
|
|
3389
|
-
overflow: auto;
|
|
3390
|
-
padding-inline: var(--spacing-y, 20px);
|
|
3391
|
-
padding-block: calc(var(--spacing-x, 20px) * 8 / 20);
|
|
3392
|
-
&::-webkit-scrollbar {
|
|
3393
|
-
width: 6px;
|
|
3394
|
-
height: 6px;
|
|
3395
|
-
}
|
|
3396
|
-
|
|
3397
|
-
&::-webkit-scrollbar-track {
|
|
3398
|
-
background-color: transparent;
|
|
3399
|
-
}
|
|
3400
|
-
|
|
3401
|
-
&::-webkit-scrollbar-thumb {
|
|
3402
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
3403
|
-
border-radius: 6px;
|
|
3404
|
-
}
|
|
3405
|
-
`;
|
|
3406
|
-
const StyledLeadGenLightBoxBHeader = styled.div `
|
|
3407
|
-
display: flex;
|
|
3408
|
-
padding-top: var(--spacing-y, 20px);
|
|
3409
|
-
padding-inline: var(--spacing-x, 20px);
|
|
3410
|
-
padding-bottom: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3411
|
-
`;
|
|
3412
|
-
const StyledLeadGenLightBoxBWrapper = styled.div `
|
|
3413
|
-
height: 100%;
|
|
3414
|
-
display: flex;
|
|
3415
|
-
flex-direction: column;
|
|
3416
|
-
`;
|
|
3417
|
-
const StyledLeadGenLightBoxB = styled.div `
|
|
3418
|
-
--spacing-x: 20px;
|
|
3419
|
-
--spacing-y: 20px;
|
|
3420
|
-
--close-width: 24px;
|
|
3421
|
-
--close-height: 24px;
|
|
3422
|
-
|
|
3423
|
-
// For old version, Wrap every thing in children
|
|
3424
|
-
&[data-type='LightBoxB_typeA'] {
|
|
3425
|
-
height: 100%;
|
|
3426
|
-
width: 100%;
|
|
3427
|
-
.leadgen-wrapper,
|
|
3428
|
-
.leadgen-inner,
|
|
3429
|
-
.leadgen-form {
|
|
3430
|
-
height: 100%;
|
|
3431
|
-
}
|
|
3432
|
-
.leadgen-content {
|
|
3433
|
-
height: 100%;
|
|
3434
|
-
display: flex;
|
|
3435
|
-
flex-direction: column;
|
|
3436
|
-
}
|
|
3437
|
-
.leadgen-header {
|
|
3438
|
-
display: none;
|
|
3439
|
-
}
|
|
3440
|
-
.leadgen-title {
|
|
3441
|
-
padding-right: calc(var(--close-width, 24px) * 50 / 24);
|
|
3442
|
-
}
|
|
3443
|
-
.leadgen-description {
|
|
3444
|
-
display: none;
|
|
3445
|
-
}
|
|
3446
|
-
.leadgen-body {
|
|
3447
|
-
flex: 1;
|
|
3448
|
-
min-height: 0;
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
|
-
.leadgen-close_btn {
|
|
3452
|
-
top: var(--spacing-y, 20px);
|
|
3453
|
-
right: var(--spacing-x, 20px);
|
|
3454
|
-
width: var(--close-width, 24px) !important;
|
|
3455
|
-
height: var(--close-height, 24px);
|
|
3456
|
-
box-shadow: none;
|
|
3457
|
-
font-size: 24px;
|
|
3458
|
-
}
|
|
3459
|
-
|
|
3460
|
-
.leadgen-empty_footer {
|
|
3461
|
-
.leadgen-btn {
|
|
3462
|
-
flex: 1;
|
|
3463
|
-
min-width: 0;
|
|
3464
|
-
}
|
|
3465
|
-
}
|
|
3466
|
-
|
|
3467
|
-
.leadgen-form_body {
|
|
3468
|
-
overflow: auto;
|
|
3469
|
-
animation: scrolling forwards;
|
|
3470
|
-
animation-timeline: scroll(self);
|
|
3471
|
-
}
|
|
3472
|
-
@keyframes scrolling {
|
|
3473
|
-
0%,
|
|
3474
|
-
to {
|
|
3475
|
-
border-bottom: 1px solid ${theme.colors.neutral100};
|
|
3476
|
-
}
|
|
3477
|
-
}
|
|
3478
|
-
}
|
|
3479
|
-
`;
|
|
3480
|
-
const StyledMotionContainer = styled(motion.div) `
|
|
3481
|
-
position: fixed;
|
|
3482
|
-
inset: 0;
|
|
3483
|
-
z-index: ${ZINDEX_SSO + 1};
|
|
3484
|
-
background-color: #fff;
|
|
3485
|
-
`;
|
|
3486
|
-
|
|
3487
|
-
const PREFIX_CLS = 'LightBoxB_typeA';
|
|
3488
|
-
const DURATION = 1000 * 0.5;
|
|
3489
|
-
const DRAWER_STYLE = {
|
|
3490
|
-
visible: {
|
|
3491
|
-
opacity: 1,
|
|
3492
|
-
translateY: '0px',
|
|
3493
|
-
transitionProperty: 'translate',
|
|
3494
|
-
transitionDuration: '0.25s',
|
|
3495
|
-
},
|
|
3496
|
-
hidden: {
|
|
3497
|
-
opacity: 0,
|
|
3498
|
-
translateY: '100%',
|
|
3499
|
-
transitionProperty: 'translate',
|
|
3500
|
-
transitionDuration: '0.25s',
|
|
3501
|
-
},
|
|
3502
|
-
};
|
|
3503
|
-
const LeadGenLightBoxBTypeA = (props) => {
|
|
3504
|
-
const { visible, onVisible, icon, title, buttonText, blocks, children } = props, restProps = __rest(props, ["visible", "onVisible", "icon", "title", "buttonText", "blocks", "children"]);
|
|
3505
|
-
const formRef = useRef();
|
|
3506
|
-
const [open, setOpen] = useState(visible);
|
|
3507
|
-
const { height } = useViewportDimensions();
|
|
3508
|
-
const onOpenChange = useCallback((open) => {
|
|
3509
|
-
if (!open) {
|
|
3510
|
-
// Wait for duration of animation
|
|
3511
|
-
setTimeout(() => {
|
|
3512
|
-
onVisible === null || onVisible === void 0 ? void 0 : onVisible(open);
|
|
3513
|
-
}, DURATION);
|
|
3514
|
-
return;
|
|
3515
|
-
}
|
|
3516
|
-
onVisible === null || onVisible === void 0 ? void 0 : onVisible(open);
|
|
3517
|
-
}, [onVisible]);
|
|
3518
|
-
const iconComp = useMemo(() => {
|
|
3519
|
-
if (!icon) {
|
|
3520
|
-
return null;
|
|
3521
|
-
}
|
|
3522
|
-
return React__default.createElement(React__default.Fragment, null);
|
|
3523
|
-
}, [icon]);
|
|
3524
|
-
const titleComp = useMemo(() => {
|
|
3525
|
-
if (!title) {
|
|
3526
|
-
return null;
|
|
3527
|
-
}
|
|
3528
|
-
return title;
|
|
3529
|
-
}, [title]);
|
|
3530
|
-
const childrenComp = useMemo(() => {
|
|
3531
|
-
if (children) {
|
|
3532
|
-
return children;
|
|
3533
|
-
}
|
|
3534
|
-
return (React__default.createElement(StyledLeadGenLightBoxBWrapper, { className: `${PREFIX_CLS}_wrapper lightboxB_wrapper` },
|
|
3535
|
-
React__default.createElement(StyledLeadGenLightBoxBHeader, { className: `${PREFIX_CLS}_header lightboxB_header` },
|
|
3536
|
-
React__default.createElement("div", { className: "lightBoxB_header_icon" }, iconComp),
|
|
3537
|
-
React__default.createElement("div", { className: "lightBoxB_header_title" }, titleComp),
|
|
3538
|
-
React__default.createElement("div", { className: "lightBoxB_header_close", onClick: () => onOpenChange(false) },
|
|
3539
|
-
React__default.createElement(CloseButton, null))),
|
|
3540
|
-
React__default.createElement(StyledLeadGenLightBoxBBody, { className: `${PREFIX_CLS}_body lightboxB_body` },
|
|
3541
|
-
React__default.createElement(LeadGenForm, Object.assign({ ref: formRef, blocks: blocks }, restProps))),
|
|
3542
|
-
React__default.createElement(StyledLeadGenLightBoxBFooter, { className: `${PREFIX_CLS}_footer lightboxB_footer` },
|
|
3543
|
-
React__default.createElement(Button, { onClick: () => { var _a; return (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.submit(); } }, buttonText))));
|
|
3544
|
-
}, [children, onOpenChange]);
|
|
3545
|
-
useEffect(() => {
|
|
3546
|
-
setOpen(visible);
|
|
3547
|
-
}, [visible]);
|
|
3548
|
-
return (React__default.createElement(StyledMotionContainer, { animate: open ? 'visible' : 'hidden', variants: DRAWER_STYLE },
|
|
3549
|
-
React__default.createElement(StyledLeadGenLightBoxB, { "data-type": "LightBoxB_typeA", style: height ? { maxHeight: height } : undefined }, childrenComp)));
|
|
3550
|
-
};
|
|
3551
|
-
|
|
3552
|
-
const LeadGenLightBoxB = (props) => {
|
|
3553
|
-
return React__default.createElement(LeadGenLightBoxBTypeA, Object.assign({}, props));
|
|
3554
|
-
};
|
|
3555
|
-
|
|
3556
|
-
const getParentScroll = (element) => {
|
|
3557
|
-
const parent = element.parentElement;
|
|
3558
|
-
const isScrollable = ['scroll', 'auto'].includes(window.getComputedStyle(parent).overflowY);
|
|
3559
|
-
if (parent === document.body) {
|
|
3560
|
-
return null;
|
|
3561
|
-
}
|
|
3562
|
-
if (isScrollable) {
|
|
3563
|
-
return parent;
|
|
3564
|
-
}
|
|
3565
|
-
return getParentScroll(parent);
|
|
3566
|
-
};
|
|
3567
|
-
|
|
3568
3296
|
const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkNewTab, linkText, image, }) => {
|
|
3569
3297
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
3570
3298
|
const { width: imageWidth, height: imageHeight, loaded: imageLoaded, } = useImageSize(image);
|
|
@@ -3934,7 +3662,6 @@ const StyledTextFieldContainer = styled.div `
|
|
|
3934
3662
|
outline: none !important;
|
|
3935
3663
|
border: none;
|
|
3936
3664
|
box-shadow: none;
|
|
3937
|
-
font-size: var(--input, 15px);
|
|
3938
3665
|
padding: 0 var(--phone-input-space-x, 8px);
|
|
3939
3666
|
opacity: 0;
|
|
3940
3667
|
color: ${theme.colors.gray800} !important;
|
|
@@ -4054,22 +3781,17 @@ const TextField = (props) => {
|
|
|
4054
3781
|
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
4055
3782
|
});
|
|
4056
3783
|
const [shrink, setShrink] = useState(shrinkProps);
|
|
4057
|
-
const focusInput = (target) => {
|
|
4058
|
-
const $textEl = target.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
4059
|
-
const $focusEl = $textEl.item($textEl.length - 1);
|
|
4060
|
-
if ($focusEl) {
|
|
4061
|
-
$focusEl.focus({ preventScroll: true });
|
|
4062
|
-
}
|
|
4063
|
-
};
|
|
4064
3784
|
const onClick = useCallback((e) => {
|
|
3785
|
+
setShrink(true);
|
|
3786
|
+
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
4065
3787
|
if (shrink) {
|
|
4066
|
-
e.preventDefault();
|
|
4067
|
-
focusInput(e.currentTarget);
|
|
4068
3788
|
return;
|
|
4069
3789
|
}
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
3790
|
+
const $textEl = e.currentTarget.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
3791
|
+
const $focusEl = $textEl.item($textEl.length - 1);
|
|
3792
|
+
if ($focusEl) {
|
|
3793
|
+
$focusEl.focus();
|
|
3794
|
+
}
|
|
4073
3795
|
}, [shrink]);
|
|
4074
3796
|
useEffect(() => {
|
|
4075
3797
|
setShrink(shrinkProps);
|
|
@@ -4096,7 +3818,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4096
3818
|
return (React__default.createElement(React__default.Fragment, null, listBlockAdded.map((b, index) => {
|
|
4097
3819
|
var _a;
|
|
4098
3820
|
const { name = '', data = {}, id } = b || {};
|
|
4099
|
-
const { placeholder
|
|
3821
|
+
const { placeholder, value, align, listQuestion, isSendMailChimp = false, newtab, url, } = data;
|
|
4100
3822
|
const required = (_a = data.required) !== null && _a !== void 0 ? _a : true;
|
|
4101
3823
|
const formValue = (formValues === null || formValues === void 0 ? void 0 : formValues[value]) || null;
|
|
4102
3824
|
switch (name) {
|
|
@@ -4106,23 +3828,23 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4106
3828
|
return (React__default.createElement(SubtitleBlock, { key: index, align: align }, value));
|
|
4107
3829
|
case 'TextBlock':
|
|
4108
3830
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4109
|
-
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder:
|
|
3831
|
+
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: placeholder,
|
|
4110
3832
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4111
3833
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4112
|
-
label:
|
|
3834
|
+
label: placeholder, "data-control": "text", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4113
3835
|
case 'NumberBlock':
|
|
4114
3836
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4115
|
-
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder:
|
|
3837
|
+
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: placeholder,
|
|
4116
3838
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4117
3839
|
// onChange={(e) => inputOnChange('number', e)}
|
|
4118
|
-
label:
|
|
3840
|
+
label: placeholder, "data-control": "number", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4119
3841
|
case 'EmailBlock':
|
|
4120
3842
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4121
3843
|
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4122
3844
|
// type="email"
|
|
4123
|
-
placeholder:
|
|
3845
|
+
placeholder: placeholder,
|
|
4124
3846
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4125
|
-
label:
|
|
3847
|
+
label: placeholder, "data-control": "email", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4126
3848
|
case 'PhoneOtpBlock':
|
|
4127
3849
|
case 'WhatsappOtpBlock':
|
|
4128
3850
|
case 'ZaloOtpBlock':
|
|
@@ -4132,19 +3854,19 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4132
3854
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: clsx('lead-modal__form-control leadgen-form_field', {
|
|
4133
3855
|
'leadgen-form_field_error': !!error,
|
|
4134
3856
|
}) },
|
|
4135
|
-
React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label:
|
|
3857
|
+
React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label: placeholder, "data-invalid": !!error, labelProps: { htmlFor: htmlForId }, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error },
|
|
4136
3858
|
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
4137
|
-
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder:
|
|
3859
|
+
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: placeholder,
|
|
4138
3860
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4139
3861
|
id: htmlForId, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel" }, formPhoneInputWrapper))))));
|
|
4140
3862
|
}
|
|
4141
3863
|
case 'LocationBlock': {
|
|
4142
3864
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4143
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder:
|
|
3865
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: placeholder, label: placeholder, "data-control": "text", locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4144
3866
|
}
|
|
4145
3867
|
case 'DateBlock': {
|
|
4146
3868
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = __rest(_c, ["error"]);
|
|
4147
|
-
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label:
|
|
3869
|
+
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label: placeholder, "data-invalid": !!error, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error, className: "lead-modal__form-control leadgen-form_field" },
|
|
4148
3870
|
React__default.createElement(InputDate, Object.assign({ name: value, error: Boolean(error), locale: locale, "data-extra": true, "data-name": value, "data-control": "date", className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4149
3871
|
}
|
|
4150
3872
|
case 'LinkButtonBlock':
|
|
@@ -4161,7 +3883,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4161
3883
|
}, "data-name": value + '-mailchimp' })),
|
|
4162
3884
|
React__default.createElement(Checkbox.Group, Object.assign({ withAsterisk: required,
|
|
4163
3885
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4164
|
-
label:
|
|
3886
|
+
label: placeholder, size: "md", sx: {
|
|
4165
3887
|
display: 'flex',
|
|
4166
3888
|
flexDirection: 'column',
|
|
4167
3889
|
flexWrap: 'wrap',
|
|
@@ -4174,41 +3896,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4174
3896
|
isSendMailChimp && (React__default.createElement(Input$1, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
4175
3897
|
React__default.createElement(Radio.Group, Object.assign({ withAsterisk: required,
|
|
4176
3898
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4177
|
-
label:
|
|
3899
|
+
label: placeholder, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4178
3900
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4179
3901
|
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
4180
3902
|
case 'DropdownBlock':
|
|
4181
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field
|
|
3903
|
+
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field", key: index },
|
|
4182
3904
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
4183
3905
|
React__default.createElement(Select
|
|
4184
3906
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4185
3907
|
, Object.assign({
|
|
4186
3908
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4187
|
-
label:
|
|
3909
|
+
label: placeholder, placeholder: placeholder, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
4188
3910
|
value: l.value,
|
|
4189
3911
|
label: l.placeholder,
|
|
4190
|
-
})),
|
|
4191
|
-
item: {
|
|
4192
|
-
paddingBlock: 12,
|
|
4193
|
-
paddingInline: 10,
|
|
4194
|
-
fontSize: 16,
|
|
4195
|
-
lineHeight: 1.5,
|
|
4196
|
-
},
|
|
4197
|
-
nothingFound: {
|
|
4198
|
-
fontSize: 54,
|
|
4199
|
-
paddingBlock: 30,
|
|
4200
|
-
},
|
|
4201
|
-
itemsWrapper: {
|
|
4202
|
-
padding: 6,
|
|
4203
|
-
},
|
|
4204
|
-
dropdown: {
|
|
4205
|
-
'.mantine-ScrollArea-scrollbar[data-orientation="vertical"]': {
|
|
4206
|
-
'--radix-scroll-area-thumb-width': '6px',
|
|
4207
|
-
width: 'var(--radix-scroll-area-thumb-width)',
|
|
4208
|
-
paddingInline: 0,
|
|
4209
|
-
},
|
|
4210
|
-
},
|
|
4211
|
-
}, maxDropdownHeight: 192 }, form.getInputProps(value)))));
|
|
3912
|
+
})) }, form.getInputProps(value)))));
|
|
4212
3913
|
case 'TncBlock':
|
|
4213
3914
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = __rest(_d, ["error"]);
|
|
4214
3915
|
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
@@ -4468,7 +4169,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4468
4169
|
const [open, setOpen] = useState(!!campaignId);
|
|
4469
4170
|
const [showOtpPhone, setShowOtpPhone] = useState(null);
|
|
4470
4171
|
const [isSubmitLoading, setIsSubmitLoading] = useState(false);
|
|
4471
|
-
|
|
4172
|
+
const [snap, setSnap] = useState(0.8);
|
|
4472
4173
|
const formRef = useRef();
|
|
4473
4174
|
const onClose = () => {
|
|
4474
4175
|
if (showOtpPhone) {
|
|
@@ -4536,46 +4237,10 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4536
4237
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4537
4238
|
const onFocus = (e) => {
|
|
4538
4239
|
e.preventDefault();
|
|
4539
|
-
|
|
4540
|
-
const
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
block: 'center',
|
|
4544
|
-
behavior: 'auto',
|
|
4545
|
-
};
|
|
4546
|
-
if ($TextField.classList.contains('DropdownBlock')) {
|
|
4547
|
-
scrollIntoView.block = 'start';
|
|
4548
|
-
const tfOffsetTop = ($TextField === null || $TextField === void 0 ? void 0 : $TextField.offsetTop) || 0;
|
|
4549
|
-
const tfHeight = $TextField.clientHeight;
|
|
4550
|
-
const $ScrollableElement = getParentScroll($TextField);
|
|
4551
|
-
if ($ScrollableElement) {
|
|
4552
|
-
// https://hhgdev.atlassian.net/browse/EL-682
|
|
4553
|
-
const scrollHeight = $ScrollableElement.scrollHeight;
|
|
4554
|
-
if (scrollHeight - (tfOffsetTop + tfHeight) < 192) {
|
|
4555
|
-
scrollIntoView.block = 'end';
|
|
4556
|
-
}
|
|
4557
|
-
}
|
|
4558
|
-
}
|
|
4559
|
-
if (isMobile) {
|
|
4560
|
-
window.scrollTo(0, 0);
|
|
4561
|
-
}
|
|
4562
|
-
$TextField.scrollIntoView(scrollIntoView);
|
|
4563
|
-
}
|
|
4564
|
-
let time = 0;
|
|
4565
|
-
function requestFrame(timestamp) {
|
|
4566
|
-
if (time === 0) {
|
|
4567
|
-
time = timestamp;
|
|
4568
|
-
}
|
|
4569
|
-
if (timestamp - time <= 250) {
|
|
4570
|
-
requestAnimationFrame(requestFrame);
|
|
4571
|
-
}
|
|
4572
|
-
else {
|
|
4573
|
-
scrollIntoView();
|
|
4574
|
-
}
|
|
4575
|
-
}
|
|
4576
|
-
if (isMobile) {
|
|
4577
|
-
requestAnimationFrame(requestFrame);
|
|
4578
|
-
}
|
|
4240
|
+
setTimeout(() => {
|
|
4241
|
+
const target = e.target;
|
|
4242
|
+
target.scrollIntoView({ block: 'center', behavior: 'auto' });
|
|
4243
|
+
}, 300); // Wait a bit to let keyboard open
|
|
4579
4244
|
};
|
|
4580
4245
|
const middlewareOnSubmit = (e) => {
|
|
4581
4246
|
e.preventDefault();
|
|
@@ -4723,24 +4388,18 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4723
4388
|
'leadgen-inline': isInPage,
|
|
4724
4389
|
'leadgen-slider': isSlider,
|
|
4725
4390
|
});
|
|
4726
|
-
const PopupContainer = isDrawer ? (
|
|
4727
|
-
// <
|
|
4728
|
-
//
|
|
4729
|
-
//
|
|
4730
|
-
//
|
|
4731
|
-
//
|
|
4732
|
-
// setActiveSnapPoint={setSnap}
|
|
4733
|
-
// onOpenChange={onOpenChange}
|
|
4734
|
-
// overlayClassName={popupContainerClassName}
|
|
4735
|
-
// className="leadgen-drawer"
|
|
4391
|
+
const PopupContainer = isDrawer ? (
|
|
4392
|
+
// <LeadGenLightBoxB
|
|
4393
|
+
// form={form}
|
|
4394
|
+
// loading={isSubmitLoading}
|
|
4395
|
+
// visible={open}
|
|
4396
|
+
// onVisible={() => onOpenChange(false)}
|
|
4736
4397
|
// >
|
|
4737
4398
|
// {PopupWrapper}
|
|
4738
|
-
//
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
// </DrawerComponent>
|
|
4743
|
-
React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
4399
|
+
// </LeadGenLightBoxB>
|
|
4400
|
+
React__default.createElement(DrawerComponent, { fadeFromIndex: ZINDEX_SSO - 9e6, open: open, snapPoints: [0.8, 1], activeSnapPoint: snap, setActiveSnapPoint: setSnap, onOpenChange: onOpenChange, overlayClassName: popupContainerClassName, className: "leadgen-drawer" },
|
|
4401
|
+
PopupWrapper,
|
|
4402
|
+
React__default.createElement("div", { style: { position: 'absolute', inset: 0, zIndex: snap === 1 ? -1 : 1 }, onClick: () => setSnap(1) }))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
4744
4403
|
isFullscreen ? (React__default.createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
4745
4404
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
4746
4405
|
} })) : null,
|