@hhgtech/hhg-components 1.29.351-beta-1 → 1.29.352
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/{LastPeriod-0c87f604.js → LastPeriod-a1aac84f.js} +1 -1
- package/build/{MobileBottomNavigationIcon-dacda9b5.js → MobileBottomNavigationIcon-a478c231.js} +3 -3
- package/build/{Spinner-b1260331.js → Spinner-d698b9b8.js} +1 -1
- package/build/{WhatsApp-e36fa113.js → WhatsApp-25114a37.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +47 -47
- 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 -1
- package/build/components/atoms/googleLocation/index.d.ts +7 -0
- package/build/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -2
- package/build/components/navigationV2/hooks/useNavConfig.d.ts +0 -1
- package/build/components/navigationV2/types.d.ts +1 -1
- package/build/components.js +95 -95
- package/build/{constants-ca169c5a.js → constants-9e4cc182.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-cf6e2af8.js → core-88b18312.js} +1 -1
- package/build/{dataTransform-69f7d427.js → dataTransform-1a34b2d9.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-18b9a893.js → editor-21960545.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/{LastPeriod-2875ffc2.js → LastPeriod-814a83aa.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-3b168be7.js → MobileBottomNavigationIcon-a14ea6c0.js} +3 -3
- package/build/esm/{Spinner-c771ed5f.js → Spinner-63b6e515.js} +1 -1
- package/build/esm/{WhatsApp-82f6685c.js → WhatsApp-8ae53f13.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +47 -47
- 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 -1
- package/build/esm/components/atoms/googleLocation/index.d.ts +7 -0
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -2
- package/build/esm/components/navigationV2/hooks/useNavConfig.d.ts +0 -1
- package/build/esm/components/navigationV2/types.d.ts +1 -1
- package/build/esm/components.js +95 -95
- package/build/esm/{constants-25ae899e.js → constants-39004c38.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-9a48dabc.js → core-7c56e1ab.js} +1 -1
- package/build/esm/{dataTransform-23043966.js → dataTransform-f4eab95f.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-de6642e2.js → editor-1363dd5e.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/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks/useCSSFocusPopupHelper.d.ts +0 -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-18cf18ca.js → index-06da0f65.js} +11 -11
- package/build/esm/{index-e2bfb2cb.js → index-0ce83a3d.js} +2 -2
- package/build/esm/{index-80af9731.js → index-0e13b7c2.js} +32 -32
- package/build/esm/{index-c34b3b5c.js → index-10c9da74.js} +16 -12
- package/build/esm/{index-72287a1e.js → index-11a3c7e2.js} +24 -24
- package/build/esm/{index-8767c2da.js → index-17f78da1.js} +16 -16
- package/build/esm/{index-be48c27e.js → index-1994f50b.js} +13 -13
- package/build/esm/{index-45d270af.js → index-1d9e853a.js} +3 -3
- package/build/esm/{index-d021d300.js → index-2360a528.js} +6 -6
- package/build/esm/{index-5688184e.js → index-239067c8.js} +2 -2
- package/build/esm/{index-7e9f7887.js → index-2b3b972d.js} +2 -2
- package/build/esm/{index-6d7f28dd.js → index-2c1c0db7.js} +1 -1
- package/build/esm/{index-9df48d36.js → index-3248744e.js} +1 -1
- package/build/esm/{index-a8a96beb.js → index-353bc863.js} +6 -6
- package/build/esm/{index-b7a759a5.js → index-390f903e.js} +3 -3
- package/build/esm/{index-b699bc6a.js → index-3960bcd4.js} +1 -1
- package/build/esm/{index-a4a09e75.js → index-3eb3cc56.js} +2 -2
- package/build/esm/{index-977a3ce3.js → index-404e639b.js} +18 -18
- package/build/esm/{index-63abdccd.js → index-47b10849.js} +2 -2
- package/build/esm/{index-1142e3d3.js → index-482b21c3.js} +16 -16
- package/build/esm/{index-351f9a0c.js → index-49d3d319.js} +2 -2
- package/build/esm/{index-ea222e0d.js → index-4e63da8b.js} +4 -4
- package/build/esm/{index-fd5c91de.js → index-4f0741ae.js} +1 -1
- package/build/esm/{index-ffbb311f.js → index-5a92bd81.js} +31 -31
- package/build/esm/{index-93dfd4e1.js → index-5d16c4a4.js} +2 -2
- package/build/esm/{index-7085c360.js → index-5db04017.js} +17 -17
- package/build/esm/{index-8630e312.js → index-5f22e761.js} +11 -18
- package/build/esm/{index-d6e68b7a.js → index-61e7a6c8.js} +6 -6
- package/build/esm/{index-075ba1e1.js → index-654d2f03.js} +15 -15
- package/build/esm/{index-70726722.js → index-65895e98.js} +2 -2
- package/build/esm/{index-d4c65e28.js → index-6696c80e.js} +1 -1
- package/build/esm/{index-d5401d04.js → index-66f0469e.js} +2 -2
- package/build/esm/{index-c61a5d08.js → index-6920f2e7.js} +1 -1
- package/build/esm/{index-4b466fad.js → index-6ea55015.js} +1 -1
- package/build/esm/{index-8c90d872.js → index-75b51cfd.js} +16 -16
- package/build/esm/{index-d51287ef.js → index-7e9a7034.js} +17 -17
- package/build/esm/{index-08a1606a.js → index-7fbf2f17.js} +1 -1
- package/build/esm/{index-2355bf06.js → index-80703bdc.js} +48 -75
- package/build/esm/{index-d433c3d7.js → index-82b4b81d.js} +3 -3
- package/build/esm/{index-f3538c90.js → index-84f5e91f.js} +22 -22
- package/build/esm/{index-f7236114.js → index-895950d8.js} +2 -2
- package/build/esm/{index-e4fea84c.js → index-8dd2e87c.js} +2 -2
- package/build/esm/{index-a3f242de.js → index-94f999b7.js} +18 -18
- package/build/esm/{index-4d85e9fa.js → index-9963d708.js} +2 -2
- package/build/esm/{index-78ac23bf.js → index-a62582a7.js} +24 -24
- package/build/esm/{index-63b7926a.js → index-a9ce71e9.js} +2 -2
- package/build/esm/{index-ba1c001e.js → index-aa228f39.js} +21 -21
- package/build/esm/{index-ddd68f2b.js → index-ab1f5d78.js} +13 -13
- package/build/esm/{index-cd8d5fb2.js → index-b8f30871.js} +16 -16
- package/build/esm/{index-f0bf6c7a.js → index-ce33a9ef.js} +13 -13
- package/build/esm/{index-72416d52.js → index-d4bd030a.js} +5 -5
- package/build/esm/{index-6a0c99ff.js → index-da22cd09.js} +13 -13
- package/build/esm/{index-c3938494.js → index-dc213a5a.js} +16 -16
- package/build/esm/{index-f8313571.js → index-de372a84.js} +7 -7
- package/build/esm/{index-56a0dca0.js → index-e2782fc8.js} +3 -3
- package/build/esm/{index-57119a2f.js → index-e2a22dd0.js} +6 -6
- package/build/esm/{index-724296c1.js → index-e48402de.js} +6 -6
- package/build/esm/{index-a7dcdbd0.js → index-e79629c6.js} +1 -1
- package/build/esm/{index-0538915a.js → index-ea254a93.js} +5 -5
- package/build/esm/{index-96b168c1.js → index-ed825feb.js} +3 -3
- package/build/esm/{index-0215aa3a.js → index-ee2c4138.js} +7 -7
- package/build/esm/{index-81804294.js → index-efe902e9.js} +17 -17
- package/build/esm/{index-ae6bf889.js → index-f2c4758a.js} +7 -19
- package/build/esm/{index-99c76287.js → index-f6824395.js} +3 -3
- package/build/esm/index.js +116 -116
- package/build/esm/interfaces/healthTools.d.ts +0 -1
- package/build/esm/{labelSorting-3ac74bd0.js → labelSorting-61fc320e.js} +4 -4
- package/build/esm/lead/helpers.d.ts +0 -31
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +183 -290
- package/build/esm/{logoIcon-da9c0bc9.js → logoIcon-171edbf1.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 +73 -73
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +45 -45
- 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 +49 -49
- package/build/esm/{post-86875f57.js → post-68d98a9f.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/index.d.ts +0 -1
- package/build/esm/ssoV2/utils.d.ts +0 -6
- package/build/esm/ssoV2.js +56 -50
- package/build/esm/{store-208e5bec.js → store-cb1d7cbc.js} +4 -4
- package/build/esm/subot.js +42 -43
- package/build/esm/surveyOrPremiumBanner.js +31 -31
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-f7880df0.js → surveyThankyouCard-6a5aefb6.js} +5 -5
- package/build/esm/together.js +55 -55
- 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 +50 -50
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +38 -38
- package/build/esm/togetherOrganisms.js +49 -49
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{treePopoverMenu-fbfdb43e.js → treePopoverMenu-da38a200.js} +19 -19
- package/build/esm/{types-4d4636f1.js → types-dd290dda.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-7bbc646e.js → useCategory-df7c6ff8.js} +5 -5
- package/build/esm/{useHealthToolCache-91bfc4c2.js → useHealthToolCache-5331ca8a.js} +1 -1
- package/build/esm/{useMantineLocale-2f880379.js → useMantineLocale-4ae0a2e9.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-79c27577.js → usePlacesAutocomplete-aeb122a9.js} +1 -1
- package/build/esm/{useScreenSize-b689324f.js → useScreenSize-c9f8c12b.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-7cf2e241.js → utils-1469161a.js} +2 -2
- package/build/esm/{utils-c616d3df.js → utils-19af7afb.js} +2 -2
- package/build/esm/{utils-1ef10b87.js → utils-8a48b37a.js} +3 -3
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks/useCSSFocusPopupHelper.d.ts +0 -1
- package/build/hooks.js +13 -13
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-cd7f4e33.js → index-01830242.js} +2 -2
- package/build/{index-a3c67dcf.js → index-025db731.js} +2 -2
- package/build/{index-cff968db.js → index-0339ed72.js} +6 -6
- package/build/{index-9e4e4f3c.js → index-0bd46048.js} +7 -7
- package/build/{index-136c16c8.js → index-0cef9b9a.js} +16 -16
- package/build/{index-bf4b5ae2.js → index-0e4242b9.js} +1 -1
- package/build/{index-3c7dbe4d.js → index-10b4e32c.js} +13 -13
- package/build/{index-3ddb12d3.js → index-14511fcf.js} +3 -3
- package/build/{index-bdbf0a5a.js → index-1bd5871e.js} +1 -1
- package/build/{index-00e31dc7.js → index-1d94b9be.js} +1 -1
- package/build/{index-046685a6.js → index-257709d7.js} +2 -2
- package/build/{index-5c2d9a9b.js → index-2e341264.js} +31 -31
- package/build/{index-71148417.js → index-3c31eadc.js} +1 -1
- package/build/{index-be4367ae.js → index-425dce6c.js} +15 -15
- package/build/{index-9462f653.js → index-44ac6688.js} +6 -6
- package/build/{index-b4f6f804.js → index-474db621.js} +7 -7
- package/build/{index-e3f36531.js → index-4babfbd1.js} +16 -16
- package/build/{index-05e6202a.js → index-599e1444.js} +1 -1
- package/build/{index-611b7c83.js → index-5c7d3fc2.js} +3 -3
- package/build/{index-f6064fa3.js → index-5ec0c0cf.js} +16 -16
- package/build/{index-9022ed3c.js → index-5ef1e51d.js} +5 -5
- package/build/{index-5e7965b6.js → index-60f5fa47.js} +13 -13
- package/build/{index-7d793ec4.js → index-633d6a83.js} +1 -1
- package/build/{index-8e28098d.js → index-6bad3690.js} +6 -6
- package/build/{index-422e1365.js → index-714624e0.js} +2 -2
- package/build/{index-faf96499.js → index-74c29c71.js} +2 -2
- package/build/{index-6156831d.js → index-754665a0.js} +2 -2
- package/build/{index-5cbb04b0.js → index-76864270.js} +6 -6
- package/build/{index-56485788.js → index-7edb8bdd.js} +2 -2
- package/build/{index-62548512.js → index-8069a672.js} +17 -17
- package/build/{index-8e0ed6f2.js → index-81f8ff6c.js} +2 -2
- package/build/{index-133ec2f8.js → index-83986002.js} +17 -17
- package/build/{index-3c1ebd51.js → index-83c6c74f.js} +4 -4
- package/build/{index-eab1da9a.js → index-86b0fb5e.js} +3 -3
- package/build/{index-82baad1d.js → index-8fdd302f.js} +1 -1
- package/build/{index-92c94b94.js → index-92a40dca.js} +18 -18
- package/build/{index-f91d4f9b.js → index-92c55ecd.js} +11 -11
- package/build/{index-3f8f553c.js → index-937d01e6.js} +13 -13
- package/build/{index-01199c59.js → index-9bf84a09.js} +6 -6
- package/build/{index-dab1cb47.js → index-a077e1e5.js} +2 -2
- package/build/{index-f01067ba.js → index-a104df47.js} +2 -2
- package/build/{index-e6c26fc2.js → index-a41474d9.js} +7 -19
- package/build/{index-431fa632.js → index-a82f2acd.js} +3 -3
- package/build/{index-761f2bbb.js → index-a8fe018b.js} +22 -22
- package/build/{index-2048156a.js → index-ab0aa789.js} +16 -16
- package/build/{index-79d2fc4e.js → index-acecb393.js} +21 -21
- package/build/{index-d71f7cfc.js → index-b4923775.js} +1 -1
- package/build/{index-084e0df1.js → index-b4ae6a08.js} +18 -18
- package/build/{index-e4b4f6e4.js → index-b51d5abb.js} +32 -32
- package/build/{index-70de7321.js → index-b55f25e3.js} +13 -13
- package/build/{index-69e6de3a.js → index-b5b35b9e.js} +3 -3
- package/build/{index-ec7f237b.js → index-c37906d6.js} +24 -24
- package/build/{index-9f602174.js → index-c9f1d83d.js} +24 -24
- package/build/{index-9f669237.js → index-ca021270.js} +3 -3
- package/build/{index-7a3a5929.js → index-ce01ba5f.js} +1 -1
- package/build/{index-9e7d1f56.js → index-d1d6c84a.js} +11 -18
- package/build/{index-0a07827e.js → index-dd659c2e.js} +17 -17
- package/build/{index-df980c7e.js → index-def43d80.js} +16 -16
- package/build/{index-a6f688f6.js → index-e31f6e11.js} +16 -12
- package/build/{index-f5477e08.js → index-e531fdb9.js} +2 -2
- package/build/{index-ce7f45bf.js → index-f03f7d78.js} +48 -75
- package/build/{index-72671071.js → index-f9c69b53.js} +2 -2
- package/build/{index-ce7e00ca.js → index-fcaa98de.js} +5 -5
- package/build/{index-5d43260b.js → index-fd224585.js} +2 -2
- package/build/index.js +116 -116
- package/build/interfaces/healthTools.d.ts +0 -1
- package/build/{labelSorting-481c7f81.js → labelSorting-819611b4.js} +4 -4
- package/build/lead/helpers.d.ts +0 -31
- package/build/lead.css +1 -1
- package/build/lead.js +183 -290
- package/build/{logoIcon-1dded2a1.js → logoIcon-dd3fb1f0.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 +73 -73
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +45 -45
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +49 -49
- package/build/{post-55130c86.js → post-0284569e.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/index.d.ts +0 -1
- package/build/ssoV2/utils.d.ts +0 -6
- package/build/ssoV2.js +71 -65
- package/build/{store-2b136a1f.js → store-2dfb95a7.js} +4 -4
- package/build/subot.js +41 -42
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-1197c929.js → surveyThankyouCard-88de075b.js} +5 -5
- package/build/together.js +55 -55
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +50 -50
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +38 -38
- package/build/togetherOrganisms.js +49 -49
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{treePopoverMenu-e057488c.js → treePopoverMenu-8d89b1c1.js} +19 -19
- package/build/{types-c4ab840e.js → types-13298ffd.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-044304b6.js → useCategory-b85216e4.js} +5 -5
- package/build/{useHealthToolCache-68e6225b.js → useHealthToolCache-f22b5ca7.js} +1 -1
- package/build/{useMantineLocale-681887a6.js → useMantineLocale-186a7a2e.js} +6 -6
- package/build/{usePlacesAutocomplete-61107b84.js → usePlacesAutocomplete-e11b5d31.js} +1 -1
- package/build/{useScreenSize-e44ff92b.js → useScreenSize-a3a79b0d.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-0ad9aa89.js → utils-393d426f.js} +3 -3
- package/build/{utils-429eb4e6.js → utils-e8201721.js} +2 -2
- package/build/{utils-d60203c1.js → utils-edcc3072.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/lead/layouts/lightbox/emptyComponent.d.ts +0 -6
- package/build/esm/lead/layouts/lightbox/fields/googleLocationBlock.d.ts +0 -7
- package/build/esm/lead/layouts/lightbox/formContainer.d.ts +0 -17
- package/build/esm/lead/layouts/lightbox/headerImage.d.ts +0 -11
- package/build/esm/utils-fcc22029.js +0 -55
- package/build/lead/layouts/lightbox/emptyComponent.d.ts +0 -6
- package/build/lead/layouts/lightbox/fields/googleLocationBlock.d.ts +0 -7
- package/build/lead/layouts/lightbox/formContainer.d.ts +0 -17
- package/build/lead/layouts/lightbox/headerImage.d.ts +0 -11
- package/build/utils-0ccea534.js +0 -61
- /package/build/{BMI_BOYS.percentile.monthly-38fdfcf3.js → BMI_BOYS.percentile.monthly-8e0ea9d9.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-11e5b68b.js → BMI_BOYS.percentile.weekly-41af2c32.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-9f3013f8.js → BMI_BOYS.percentile.yearly-d528efac.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-ab152b5e.js → BMI_BOYS.zscore.monthly-a9529130.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-755750c3.js → BMI_BOYS.zscore.weekly-05e2046e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-3a7f13b4.js → BMI_BOYS.zscore.yearly-42b3e28c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-a263f531.js → BMI_GIRLS.percentile.monthly-2e809d2c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8ad3a67c.js → BMI_GIRLS.percentile.weekly-07bb8c8f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-647a8db0.js → BMI_GIRLS.percentile.yearly-2b192379.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-1db27e68.js → BMI_GIRLS.zscore.monthly-82efd56d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-726a04b2.js → BMI_GIRLS.zscore.weekly-ff8a41a8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-83c5fe25.js → BMI_GIRLS.zscore.yearly-0586e7f4.js} +0 -0
- /package/build/{ChevronDown-15899ea8.js → ChevronDown-18004c02.js} +0 -0
- /package/build/{Close-5609ab8d.js → Close-0568fb44.js} +0 -0
- /package/build/{Google-f28db01e.js → Google-4ca828e3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-93f792e5.js → HEAD CIRCUM_BOYS.percentile.monthly-adab6b97.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-6888ab2d.js → HEAD CIRCUM_BOYS.percentile.weekly-5cd41026.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-29acef81.js → HEAD CIRCUM_BOYS.percentile.yearly-79d8ad0b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-857fb5a2.js → HEAD CIRCUM_BOYS.zscore.monthly-3863e673.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-1e0f470f.js → HEAD CIRCUM_BOYS.zscore.weekly-f06a8034.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-524a0d7d.js → HEAD CIRCUM_BOYS.zscore.yearly-19547bd9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-db176836.js → HEAD CIRCUM_GIRLS.percentile.monthly-b7da927e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-9c96f8bd.js → HEAD CIRCUM_GIRLS.percentile.weekly-f9820fe6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-11cd49b0.js → HEAD CIRCUM_GIRLS.percentile.yearly-1bc3bdbc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-01829ce8.js → HEAD CIRCUM_GIRLS.zscore.monthly-5fa365b4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-5ea492b9.js → HEAD CIRCUM_GIRLS.zscore.weekly-bbe9d1a3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d6664abb.js → HEAD CIRCUM_GIRLS.zscore.yearly-e5fec742.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-611d3286.js → HEIGHT_BOYS.percentile.monthly-4efd5762.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-0da208c0.js → HEIGHT_BOYS.percentile.weekly-f0509c2c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-f39eb767.js → HEIGHT_BOYS.percentile.yearly-58ff82b5.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-b2bb8b3d.js → HEIGHT_BOYS.zscore.monthly-ebe41d34.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-c1259604.js → HEIGHT_BOYS.zscore.weekly-31355ffc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-737046d7.js → HEIGHT_BOYS.zscore.yearly-513f64d0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-e40770c9.js → HEIGHT_GIRLS.percentile.monthly-42006384.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-32e35024.js → HEIGHT_GIRLS.percentile.weekly-81d92540.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-bd45d6f8.js → HEIGHT_GIRLS.percentile.yearly-e254685c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-1ea3be55.js → HEIGHT_GIRLS.zscore.monthly-64b70da9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-fcafae18.js → HEIGHT_GIRLS.zscore.weekly-1ffb1b5a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-51953ecf.js → HEIGHT_GIRLS.zscore.yearly-91eef0a8.js} +0 -0
- /package/build/{Locale-9a9c25ba.js → Locale-1dc04f47.js} +0 -0
- /package/build/{Visible-3e6362ef.js → Visible-70dea909.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-77a4ac1a.js → WEIGHT_BOYS.percentile.monthly-64a8da94.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-05a3f734.js → WEIGHT_BOYS.percentile.weekly-a31a4c36.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-b9a64616.js → WEIGHT_BOYS.percentile.yearly-812aa384.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-50cf0d34.js → WEIGHT_BOYS.zscore.monthly-1044e684.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b70b5b4f.js → WEIGHT_BOYS.zscore.weekly-6d4de872.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-6715be4d.js → WEIGHT_BOYS.zscore.yearly-9ccb55eb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-d2755260.js → WEIGHT_GIRLS.percentile.monthly-1322c6be.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-91f3d597.js → WEIGHT_GIRLS.percentile.weekly-006313a9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-eb8d0f7c.js → WEIGHT_GIRLS.percentile.yearly-200f583d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-d6a9ea18.js → WEIGHT_GIRLS.zscore.monthly-d7c2fe01.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-8c06163c.js → WEIGHT_GIRLS.zscore.weekly-5b0e285c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-0d274875.js → WEIGHT_GIRLS.zscore.yearly-0a97614e.js} +0 -0
- /package/build/{animation-2965d3fe.js → animation-3e9788a8.js} +0 -0
- /package/build/{constants-85011c6d.js → constants-2fb9ac98.js} +0 -0
- /package/build/{constants-62df9928.js → constants-400db16c.js} +0 -0
- /package/build/{constants-ad9c3894.js → constants-531edda7.js} +0 -0
- /package/build/{dataTransform-2b78acf3.js → dataTransform-04c8e22d.js} +0 -0
- /package/build/{doctor-9c2cc449.js → doctor-de6aea7b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-2b8f295a.js → BMI_BOYS.percentile.monthly-f43c6e96.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-e5bf2e65.js → BMI_BOYS.percentile.weekly-bd9a3868.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-ce87ffbd.js → BMI_BOYS.percentile.yearly-6325d18e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-4fd82101.js → BMI_BOYS.zscore.monthly-b2a3b551.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-8c153610.js → BMI_BOYS.zscore.weekly-227edd41.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-11279be6.js → BMI_BOYS.zscore.yearly-5de0a4e7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-2f570a7b.js → BMI_GIRLS.percentile.monthly-63132e1c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-565cc5df.js → BMI_GIRLS.percentile.weekly-d3b84160.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-eeff7908.js → BMI_GIRLS.percentile.yearly-6ddaf0a2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-99cdd814.js → BMI_GIRLS.zscore.monthly-8d1a54de.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-4f73229e.js → BMI_GIRLS.zscore.weekly-35e87abd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-76d5210e.js → BMI_GIRLS.zscore.yearly-3d7c362e.js} +0 -0
- /package/build/esm/{ChevronDown-c3b7acfc.js → ChevronDown-a8e2a73e.js} +0 -0
- /package/build/esm/{Close-763d013a.js → Close-aed097ca.js} +0 -0
- /package/build/esm/{Google-c19a0256.js → Google-de8528b8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-1a5ba1df.js → HEAD CIRCUM_BOYS.percentile.monthly-a038b57e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-ceb5e0e8.js → HEAD CIRCUM_BOYS.percentile.weekly-81e92307.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f85040db.js → HEAD CIRCUM_BOYS.percentile.yearly-3be8e6b0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-41dd67a5.js → HEAD CIRCUM_BOYS.zscore.monthly-143385c0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a13e3426.js → HEAD CIRCUM_BOYS.zscore.weekly-cccc277b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-7689391d.js → HEAD CIRCUM_BOYS.zscore.yearly-33ccfb13.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-2ece417e.js → HEAD CIRCUM_GIRLS.percentile.monthly-ddb58eb3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-74480197.js → HEAD CIRCUM_GIRLS.percentile.weekly-6c371885.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a53c0242.js → HEAD CIRCUM_GIRLS.percentile.yearly-45021a27.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-42d4ddca.js → HEAD CIRCUM_GIRLS.zscore.monthly-987d97d3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f56a4ced.js → HEAD CIRCUM_GIRLS.zscore.weekly-a3e8af4b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-3b671928.js → HEAD CIRCUM_GIRLS.zscore.yearly-83735b25.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-217e3f58.js → HEIGHT_BOYS.percentile.monthly-59b69e40.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-c7040460.js → HEIGHT_BOYS.percentile.weekly-eb4a0132.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-7f11e114.js → HEIGHT_BOYS.percentile.yearly-d2a59856.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-3ecbf3af.js → HEIGHT_BOYS.zscore.monthly-4cb95077.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-656f6afd.js → HEIGHT_BOYS.zscore.weekly-997df1ff.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-e7e70ba5.js → HEIGHT_BOYS.zscore.yearly-1fe03f99.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-00021b65.js → HEIGHT_GIRLS.percentile.monthly-54c8d8b5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-fed985d0.js → HEIGHT_GIRLS.percentile.weekly-76a48717.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f69f7c5a.js → HEIGHT_GIRLS.percentile.yearly-826c245d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c155ed03.js → HEIGHT_GIRLS.zscore.monthly-d129ad6f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-cb626fc4.js → HEIGHT_GIRLS.zscore.weekly-5f72efb6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-ab488e2d.js → HEIGHT_GIRLS.zscore.yearly-1468f9ff.js} +0 -0
- /package/build/esm/{Locale-9b494286.js → Locale-64252d6f.js} +0 -0
- /package/build/esm/{Visible-e5349501.js → Visible-00f85a18.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c8cb4ccb.js → WEIGHT_BOYS.percentile.monthly-f91e8f5b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-93944aaa.js → WEIGHT_BOYS.percentile.weekly-211256c3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-1ae9d26e.js → WEIGHT_BOYS.percentile.yearly-6729258f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-d800d1f3.js → WEIGHT_BOYS.zscore.monthly-20b510f9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-37eaa6fd.js → WEIGHT_BOYS.zscore.weekly-5aae922a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-69644237.js → WEIGHT_BOYS.zscore.yearly-c6f033ff.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a5671b63.js → WEIGHT_GIRLS.percentile.monthly-1dde6d3e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f2207a78.js → WEIGHT_GIRLS.percentile.weekly-4e309892.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-d929d29f.js → WEIGHT_GIRLS.percentile.yearly-920cdcc9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-1f54c6a1.js → WEIGHT_GIRLS.zscore.monthly-e37e4580.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-2b45b152.js → WEIGHT_GIRLS.zscore.weekly-17a1f58b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c43a4f43.js → WEIGHT_GIRLS.zscore.yearly-1fae4d3c.js} +0 -0
- /package/build/esm/{animation-f91edf91.js → animation-a52444b1.js} +0 -0
- /package/build/esm/{constants-aeae9501.js → constants-2483d488.js} +0 -0
- /package/build/esm/{constants-9deb1413.js → constants-b0019567.js} +0 -0
- /package/build/esm/{constants-84344d5e.js → constants-ece6384f.js} +0 -0
- /package/build/esm/{dataTransform-f555c9cc.js → dataTransform-de5ffd2d.js} +0 -0
- /package/build/esm/{doctor-d288792c.js → doctor-e2971278.js} +0 -0
- /package/build/esm/{index-75bfe19f.js → index-2d65f62b.js} +0 -0
- /package/build/esm/{index-8d0259ad.js → index-555a9046.js} +0 -0
- /package/build/esm/{index-0c911426.js → index-5723a550.js} +0 -0
- /package/build/esm/{index-29a3b52a.js → index-5760cf41.js} +0 -0
- /package/build/esm/{index-f07c00bd.js → index-a2012af4.js} +0 -0
- /package/build/esm/{index-80a9c9eb.js → index-bcc8e400.js} +0 -0
- /package/build/esm/{index-0e99d20e.js → index-c1c31ee1.js} +0 -0
- /package/build/esm/{index-c484ee95.js → index-d36244a4.js} +0 -0
- /package/build/esm/{index-3b2e5262.js → index-faec40ea.js} +0 -0
- /package/build/esm/{index.styles-4f9afc01.js → index.styles-af8036e9.js} +0 -0
- /package/build/esm/{localizeNumberFormat-ebaff9fc.js → localizeNumberFormat-cbb71beb.js} +0 -0
- /package/build/esm/{normalizeLink-356a4e59.js → normalizeLink-3041abfd.js} +0 -0
- /package/build/esm/{number-b1a85de9.js → number-50e4e16e.js} +0 -0
- /package/build/esm/{other-9a23db32.js → other-c0e87e58.js} +0 -0
- /package/build/esm/{paths-60eca75f.js → paths-52df891e.js} +0 -0
- /package/build/esm/{translationsContext-6915a82a.js → translationsContext-6bfa920d.js} +0 -0
- /package/build/esm/{tslib.es6-cfddefe9.js → tslib.es6-9e18a176.js} +0 -0
- /package/build/esm/{types-f38dc69f.js → types-14ef6770.js} +0 -0
- /package/build/esm/{useIsInit-7e51de55.js → useIsInit-79d74d60.js} +0 -0
- /package/build/esm/{useOutsideClick-557246e7.js → useOutsideClick-b217d478.js} +0 -0
- /package/build/esm/{useScrollbarSize-d3cb6879.js → useScrollbarSize-7acd8adc.js} +0 -0
- /package/build/esm/{useUniqueId-edcccf6c.js → useUniqueId-90ff9a41.js} +0 -0
- /package/build/esm/{utils-339046f6.js → utils-d19d3707.js} +0 -0
- /package/build/{index-fee7b6c8.js → index-17038e67.js} +0 -0
- /package/build/{index-e596adb8.js → index-309c5fb1.js} +0 -0
- /package/build/{index-a63d22cb.js → index-55519f95.js} +0 -0
- /package/build/{index-2f7efba5.js → index-7606962c.js} +0 -0
- /package/build/{index-caea59ad.js → index-c211aa89.js} +0 -0
- /package/build/{index-6b665cd9.js → index-c8701cef.js} +0 -0
- /package/build/{index-dcbac626.js → index-d24e19c4.js} +0 -0
- /package/build/{index-9eb89a78.js → index-dafa4033.js} +0 -0
- /package/build/{index-f9edb43e.js → index-e78d4514.js} +0 -0
- /package/build/{index.styles-8510d50e.js → index.styles-4f86fb84.js} +0 -0
- /package/build/{localizeNumberFormat-92b7aec0.js → localizeNumberFormat-5b4b0b65.js} +0 -0
- /package/build/{normalizeLink-11adaff0.js → normalizeLink-99f64956.js} +0 -0
- /package/build/{number-9759d3f3.js → number-7d1306b9.js} +0 -0
- /package/build/{other-2bd39cad.js → other-a0397a80.js} +0 -0
- /package/build/{paths-2ed17c3a.js → paths-02448ffd.js} +0 -0
- /package/build/{translationsContext-239790ff.js → translationsContext-7e9db077.js} +0 -0
- /package/build/{tslib.es6-ba92c8a7.js → tslib.es6-e12bf489.js} +0 -0
- /package/build/{types-fa3f2caf.js → types-a637e7f9.js} +0 -0
- /package/build/{useIsInit-9255576d.js → useIsInit-f313d20a.js} +0 -0
- /package/build/{useOutsideClick-bbd76b55.js → useOutsideClick-940e96ba.js} +0 -0
- /package/build/{useScrollbarSize-8af8a20d.js → useScrollbarSize-848ae770.js} +0 -0
- /package/build/{useUniqueId-11c1fa8a.js → useUniqueId-be4d9d62.js} +0 -0
- /package/build/{utils-b20c27f3.js → utils-53589b9e.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-9e18a176.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback } from 'react';
|
|
3
|
-
import { createStyles, Box,
|
|
3
|
+
import { createStyles, Box, Autocomplete, clsx, Input as Input$1, TextInput, NumberInput as NumberInput$1, Button as Button$2, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import debounce from 'lodash/debounce';
|
|
6
6
|
import { createFormContext } from '@mantine/form';
|
|
7
|
-
import { u as useTranslations } from './index-
|
|
8
|
-
import { T as TranslationsContext } from './translationsContext-
|
|
7
|
+
import { u as useTranslations } from './index-4f0741ae.js';
|
|
8
|
+
import { T as TranslationsContext } from './translationsContext-6bfa920d.js';
|
|
9
9
|
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
10
|
-
import { b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-
|
|
11
|
-
import { T as Text } from './index-
|
|
12
|
-
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput
|
|
13
|
-
import { D as DatePicker } from './index-
|
|
14
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
10
|
+
import { b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-d19d3707.js';
|
|
11
|
+
import { T as Text } from './index-9963d708.js';
|
|
12
|
+
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput } from './index-06da0f65.js';
|
|
13
|
+
import { D as DatePicker } from './index-2360a528.js';
|
|
14
|
+
import { M as MAPPED_LOCALE } from './utils-1469161a.js';
|
|
15
15
|
import '@mantine/dates';
|
|
16
|
-
import { Z as ZINDEX_SSO } from './index-
|
|
17
|
-
import './index-
|
|
18
|
-
import './index-
|
|
19
|
-
import './useMantineLocale-
|
|
20
|
-
import { B as Button$1 } from './index-
|
|
21
|
-
import './index.styles-
|
|
16
|
+
import { Z as ZINDEX_SSO } from './index-5d16c4a4.js';
|
|
17
|
+
import './index-2c1c0db7.js';
|
|
18
|
+
import { C as CommonGAssets } from './index-555a9046.js';
|
|
19
|
+
import './useMantineLocale-4ae0a2e9.js';
|
|
20
|
+
import { B as Button$1 } from './index-6ea55015.js';
|
|
21
|
+
import './index.styles-af8036e9.js';
|
|
22
22
|
import { useClickOutside } from '@mantine/hooks';
|
|
23
|
-
import './other-
|
|
24
|
-
import './index-
|
|
25
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-
|
|
26
|
-
import { B as Button } from './index-
|
|
27
|
-
import { H as Heading$1 } from './index-
|
|
23
|
+
import './other-c0e87e58.js';
|
|
24
|
+
import './index-e2782fc8.js';
|
|
25
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-aeb122a9.js';
|
|
26
|
+
import { B as Button } from './index-8dd2e87c.js';
|
|
27
|
+
import { H as Heading$1 } from './index-895950d8.js';
|
|
28
28
|
import { v1 } from 'uuid';
|
|
29
|
-
import { i as isVideo } from './index-
|
|
30
|
-
import { D as DrawerComponent } from './index-
|
|
31
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
29
|
+
import { i as isVideo } from './index-5760cf41.js';
|
|
30
|
+
import { D as DrawerComponent } from './index-f2c4758a.js';
|
|
31
|
+
import { u as useScreenSize } from './useScreenSize-c9f8c12b.js';
|
|
32
32
|
import { createPortal } from 'react-dom';
|
|
33
33
|
import { css } from '@emotion/react';
|
|
34
34
|
import styled from '@emotion/styled';
|
|
35
35
|
import { theme } from './miscTheme.js';
|
|
36
|
-
import { C as Close } from './Close-
|
|
36
|
+
import { C as Close } from './Close-aed097ca.js';
|
|
37
37
|
import '@hhgtech/icons/other';
|
|
38
38
|
import '@mantine/carousel';
|
|
39
|
-
import './Locale-
|
|
39
|
+
import './Locale-64252d6f.js';
|
|
40
40
|
import 'classnames';
|
|
41
|
-
import './useUniqueId-
|
|
41
|
+
import './useUniqueId-90ff9a41.js';
|
|
42
42
|
import './constantsSite.js';
|
|
43
43
|
import '@hhgtech/icons/core';
|
|
44
44
|
import 'date-fns/locale';
|
|
@@ -135,54 +135,8 @@ const LEAD_TIMEZONE_DATA = {
|
|
|
135
135
|
9: 'Asia/Manila', // Philippines / Filipinos Site
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
-
const LEADGEN_LAYOUT = {
|
|
139
|
-
LightBoxA: 'LightBoxA',
|
|
140
|
-
LightBoxB: 'LightBoxB',
|
|
141
|
-
SkinA: 'SkinA',
|
|
142
|
-
SkinB: 'SkinB',
|
|
143
|
-
Floating: 'Floating',
|
|
144
|
-
Tab: 'Tab',
|
|
145
|
-
InlineA: 'InlineA',
|
|
146
|
-
InlineB: 'InlineB',
|
|
147
|
-
CenterTab: 'CenterTab',
|
|
148
|
-
Sidebar: 'Sidebar',
|
|
149
|
-
Fullscreen: 'Fullscreen',
|
|
150
|
-
Slider: 'Slider',
|
|
151
|
-
};
|
|
152
|
-
const LEADGEN_BLOCK = {
|
|
153
|
-
TextBlock: 'TextBlock',
|
|
154
|
-
NumberBlock: 'NumberBlock',
|
|
155
|
-
DateBlock: 'DateBlock',
|
|
156
|
-
EmailBlock: 'EmailBlock',
|
|
157
|
-
PhoneBlock: 'PhoneBlock',
|
|
158
|
-
PhoneOtpBlock: 'PhoneOtpBlock',
|
|
159
|
-
WhatsappOtpBlock: 'WhatsappOtpBlock',
|
|
160
|
-
ZaloOtpBlock: 'ZaloOtpBlock',
|
|
161
|
-
LocationBlock: 'LocationBlock',
|
|
162
|
-
LinkButtonBlock: 'LinkButtonBlock',
|
|
163
|
-
RadioBlock: 'RadioBlock',
|
|
164
|
-
DropdownBlock: 'DropdownBlock',
|
|
165
|
-
CheckboxBlock: 'CheckboxBlock',
|
|
166
|
-
TncBlock: 'TncBlock',
|
|
167
|
-
};
|
|
168
|
-
const LEADGEN_BLOCK_IN_FORM = [
|
|
169
|
-
LEADGEN_BLOCK.TextBlock,
|
|
170
|
-
LEADGEN_BLOCK.NumberBlock,
|
|
171
|
-
LEADGEN_BLOCK.DateBlock,
|
|
172
|
-
LEADGEN_BLOCK.EmailBlock,
|
|
173
|
-
LEADGEN_BLOCK.PhoneBlock,
|
|
174
|
-
LEADGEN_BLOCK.PhoneOtpBlock,
|
|
175
|
-
LEADGEN_BLOCK.WhatsappOtpBlock,
|
|
176
|
-
LEADGEN_BLOCK.ZaloOtpBlock,
|
|
177
|
-
LEADGEN_BLOCK.LocationBlock,
|
|
178
|
-
LEADGEN_BLOCK.RadioBlock,
|
|
179
|
-
LEADGEN_BLOCK.DropdownBlock,
|
|
180
|
-
LEADGEN_BLOCK.CheckboxBlock,
|
|
181
|
-
LEADGEN_BLOCK.TncBlock,
|
|
182
|
-
];
|
|
183
138
|
const SSO_MAP_LEAD = ['name', 'email', 'birthday', 'phone', 'gender'];
|
|
184
139
|
const mappingSSOToLead = (userInfoProps) => {
|
|
185
|
-
var _a, _b;
|
|
186
140
|
try {
|
|
187
141
|
const { id, area_code } = userInfoProps;
|
|
188
142
|
if (!userInfoProps || !id) {
|
|
@@ -210,10 +164,6 @@ const mappingSSOToLead = (userInfoProps) => {
|
|
|
210
164
|
}
|
|
211
165
|
}
|
|
212
166
|
}
|
|
213
|
-
if (((_a = user === null || user === void 0 ? void 0 : user.email) === null || _a === void 0 ? void 0 : _a.includes('@hhg.com')) ||
|
|
214
|
-
((_b = user === null || user === void 0 ? void 0 : user.email) === null || _b === void 0 ? void 0 : _b.includes('@facebook.com'))) {
|
|
215
|
-
delete user.email;
|
|
216
|
-
}
|
|
217
167
|
return Object.values(user).length ? user : undefined;
|
|
218
168
|
}
|
|
219
169
|
catch (error) {
|
|
@@ -1452,7 +1402,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
|
|
|
1452
1402
|
const { width: imageWidth, height: imageHeight, loaded: imageLoaded, } = useImageSize(image);
|
|
1453
1403
|
if (!imageLoaded)
|
|
1454
1404
|
return null;
|
|
1455
|
-
return (React__default.createElement("div", { className: "lead-modal__thank-you
|
|
1405
|
+
return (React__default.createElement("div", { className: "lead-modal__thank-you" },
|
|
1456
1406
|
React__default.createElement("div", { style: { width: '100%' } },
|
|
1457
1407
|
React__default.createElement("img", { src: image, style: {
|
|
1458
1408
|
maxHeight: 162,
|
|
@@ -1596,28 +1546,8 @@ const SideBarLayout = ({ content }) => {
|
|
|
1596
1546
|
return (React__default.createElement(React__default.Fragment, null, targets.map((target) => createPortal(content, getWrapperDomWithSelector(target, 'sidebar-lead-modal-wrapper')))));
|
|
1597
1547
|
};
|
|
1598
1548
|
|
|
1599
|
-
const EmptyIcon = (props) => {
|
|
1600
|
-
const { className, style } = props;
|
|
1601
|
-
return (React__default.createElement("svg", { width: "160", height: "160", viewBox: "0 0 160 160", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
1602
|
-
React__default.createElement("path", { d: "M79.9974 113.333C98.4069 113.333 113.331 98.4096 113.331 80.0001C113.331 61.5906 98.4069 46.6667 79.9974 46.6667C61.5879 46.6667 46.6641 61.5906 46.6641 80.0001C46.6641 98.4096 61.5879 113.333 79.9974 113.333Z", fill: "#F44D2C" }),
|
|
1603
|
-
React__default.createElement("path", { d: "M92.434 95.0004C91.7771 95.0004 91.1213 94.7499 90.6194 94.249L65.7521 69.3807C64.7493 68.3779 64.7493 66.7542 65.7521 65.7524C66.7549 64.7507 68.3786 64.7497 69.3804 65.7524L94.2487 90.6208C95.2515 91.6235 95.2515 93.2473 94.2487 94.249C93.7468 94.7499 93.0909 95.0004 92.434 95.0004Z", fill: "white" }),
|
|
1604
|
-
React__default.createElement("path", { d: "M67.5648 95C66.9079 95 66.252 94.7496 65.7501 94.2487C64.7474 93.2459 64.7474 91.6222 65.7501 90.6204L90.6185 65.7521C91.6212 64.7493 93.245 64.7493 94.2467 65.7521C95.2485 66.7549 95.2495 68.3786 94.2467 69.3804L69.3794 94.2487C68.8786 94.7496 68.2217 95 67.5648 95Z", fill: "white" })));
|
|
1605
|
-
};
|
|
1606
|
-
|
|
1607
|
-
const EmptyComponent = ({ onClose, onContinue, }) => {
|
|
1608
|
-
const { t } = useTranslations();
|
|
1609
|
-
return (React__default.createElement("div", { className: "leadgen-empty" },
|
|
1610
|
-
React__default.createElement("div", { className: "leadgen-empty_body" },
|
|
1611
|
-
React__default.createElement("div", { className: "leadgen-empty_wrapper" },
|
|
1612
|
-
React__default.createElement(EmptyIcon, { className: "leadgen-empty_image" }),
|
|
1613
|
-
React__default.createElement("h5", { className: "leadgen-empty_title" }, t('lead.empty.title')))),
|
|
1614
|
-
React__default.createElement("div", { className: "leadgen-empty_footer" },
|
|
1615
|
-
React__default.createElement(Button$2, { onClick: onClose, size: "lg", variant: "default", fullWidth: false, className: "leadgen-btn leadgen-btn_empty_cancel" }, t('lead.empty.cancel')),
|
|
1616
|
-
React__default.createElement(Button$2, { onClick: onContinue, size: "lg", variant: "filled", fullWidth: false, className: "leadgen-btn leadgen-btn_empty_again" }, t('lead.empty.submitAgain')))));
|
|
1617
|
-
};
|
|
1618
|
-
|
|
1619
1549
|
const libraries = ['places'];
|
|
1620
|
-
const
|
|
1550
|
+
const GoogleLocation = (props) => {
|
|
1621
1551
|
var _a;
|
|
1622
1552
|
const { inputWrapperOrder = ['label', 'input', 'description', 'error'], defaultValue, value: valueProps, onChange: onChangeProps, locale } = props, restProps = __rest(props, ["inputWrapperOrder", "defaultValue", "value", "onChange", "locale"]);
|
|
1623
1553
|
const [LoadScript, setLoadScript] = useState(null);
|
|
@@ -1647,7 +1577,7 @@ const GoogleLocationBlock = (props) => {
|
|
|
1647
1577
|
}, []);
|
|
1648
1578
|
return (React__default.createElement(Autocomplete, Object.assign({ defaultValue: defaultValue, value: value, onChange: onChangeAutocomplete, data: predictions.map((pred) => {
|
|
1649
1579
|
return { value: pred.description, label: pred.description };
|
|
1650
|
-
}), filter: () => true, onItemSubmit: onClickItem, inputWrapperOrder: inputWrapperOrder,
|
|
1580
|
+
}), filter: () => true, onItemSubmit: onClickItem, inputWrapperOrder: inputWrapperOrder, inputContainer: (children) => {
|
|
1651
1581
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1652
1582
|
LoadScript && (React__default.createElement(LoadScript, { googleMapsApiKey: GOOGLE_API_KEY, libraries: libraries, loadingElement: React__default.createElement(React__default.Fragment, null), style: { width: '100%' } })),
|
|
1653
1583
|
children));
|
|
@@ -2209,7 +2139,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
2209
2139
|
}
|
|
2210
2140
|
case 'LocationBlock': {
|
|
2211
2141
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2212
|
-
React__default.createElement(
|
|
2142
|
+
React__default.createElement(GoogleLocation, Object.assign({ withAsterisk: required, name: value, placeholder: placeholder, label: placeholder, "data-control": "text", locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
2213
2143
|
}
|
|
2214
2144
|
case 'DateBlock':
|
|
2215
2145
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
@@ -2269,90 +2199,6 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
2269
2199
|
})));
|
|
2270
2200
|
};
|
|
2271
2201
|
|
|
2272
|
-
const StyledFormContainer = styled.div `
|
|
2273
|
-
height: 100%;
|
|
2274
|
-
.leadgen-form_wrapper {
|
|
2275
|
-
height: 100%;
|
|
2276
|
-
display: flex;
|
|
2277
|
-
flex-direction: column;
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
.leadgen-form_body {
|
|
2281
|
-
flex: 1;
|
|
2282
|
-
min-height: 0;
|
|
2283
|
-
overflow: auto;
|
|
2284
|
-
&::-webkit-scrollbar {
|
|
2285
|
-
width: 6px;
|
|
2286
|
-
height: 6px;
|
|
2287
|
-
}
|
|
2288
|
-
|
|
2289
|
-
&::-webkit-scrollbar-track {
|
|
2290
|
-
background-color: transparent;
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
&::-webkit-scrollbar-thumb {
|
|
2294
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
2295
|
-
border-radius: 6px;
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
|
|
2299
|
-
&[data-hidden-form='true'] {
|
|
2300
|
-
.leadgen-form_body {
|
|
2301
|
-
display: none;
|
|
2302
|
-
}
|
|
2303
|
-
}
|
|
2304
|
-
|
|
2305
|
-
[data-align='right'] {
|
|
2306
|
-
text-align: right;
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
[data-align='center'] {
|
|
2310
|
-
text-align: center;
|
|
2311
|
-
}
|
|
2312
|
-
`;
|
|
2313
|
-
/**
|
|
2314
|
-
*
|
|
2315
|
-
* Use this component inside <form></form> tag
|
|
2316
|
-
*
|
|
2317
|
-
*/
|
|
2318
|
-
const FormContainer = (_a) => {
|
|
2319
|
-
var { title, titleAlign, description, descriptionAlign, className, style, children, footer } = _a, restProps = __rest(_a, ["title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "footer"]);
|
|
2320
|
-
if (!title && !description) {
|
|
2321
|
-
return null;
|
|
2322
|
-
}
|
|
2323
|
-
return (React__default.createElement(StyledFormContainer, Object.assign({ className: clsx(className, 'leadgen-form_container'), style: style }, restProps),
|
|
2324
|
-
React__default.createElement("div", { className: "leadgen-form_wrapper" },
|
|
2325
|
-
React__default.createElement("div", { className: "leadgen-form_header" },
|
|
2326
|
-
React__default.createElement("h2", { title: title, className: "leadgen-title", "data-align": titleAlign }, title),
|
|
2327
|
-
React__default.createElement("p", { title: description, className: "leadgen-description", "data-align": descriptionAlign, dangerouslySetInnerHTML: { __html: description } })),
|
|
2328
|
-
React__default.createElement("div", { className: "leadgen-form_body" }, children),
|
|
2329
|
-
React__default.createElement("div", { className: "leadgen-form_footer" }, footer))));
|
|
2330
|
-
};
|
|
2331
|
-
|
|
2332
|
-
const StyleHeaderImage = styled.div `
|
|
2333
|
-
position: relative;
|
|
2334
|
-
overflow: hidden;
|
|
2335
|
-
width: 100%;
|
|
2336
|
-
height: 100%;
|
|
2337
|
-
padding-top: ${({ paddingTop }) => paddingTop}%;
|
|
2338
|
-
.leadgen-header_image_feature {
|
|
2339
|
-
position: absolute;
|
|
2340
|
-
inset: 0;
|
|
2341
|
-
min-width: 100%;
|
|
2342
|
-
min-height: 100%;
|
|
2343
|
-
max-width: 100%;
|
|
2344
|
-
max-height: 100%;
|
|
2345
|
-
object-fit: cover;
|
|
2346
|
-
object-position: center;
|
|
2347
|
-
}
|
|
2348
|
-
`;
|
|
2349
|
-
const HeaderImage = ({ src, ratio = 3 / 2, className, style, }) => {
|
|
2350
|
-
if (!src) {
|
|
2351
|
-
return null;
|
|
2352
|
-
}
|
|
2353
|
-
return (React__default.createElement(StyleHeaderImage, { paddingTop: (1 / ratio) * 100, className: clsx(className, 'leadgen-header_image'), style: style }, isVideo(src) ? (React__default.createElement("video", { muted: true, autoPlay: true, loop: true, className: "leadgen-header_image_feature leadgen-header_image_video", src: src })) : (React__default.createElement("img", { src: src, draggable: "false", alt: "", className: "leadgen-header_image_feature leadgen-header_image_image" }))));
|
|
2354
|
-
};
|
|
2355
|
-
|
|
2356
2202
|
const OtpBlock = ({ otpData, onSuccess, autoSendWhenOpen, }) => {
|
|
2357
2203
|
const { t } = useTranslations();
|
|
2358
2204
|
const phone = otpData.phone;
|
|
@@ -2453,48 +2299,47 @@ const OtpBlock = ({ otpData, onSuccess, autoSendWhenOpen, }) => {
|
|
|
2453
2299
|
sendOtp();
|
|
2454
2300
|
}
|
|
2455
2301
|
}, []);
|
|
2456
|
-
return (React__default.createElement(
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2302
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2303
|
+
React__default.createElement("form", { onSubmit: (e) => {
|
|
2304
|
+
e.preventDefault();
|
|
2305
|
+
submitOtp();
|
|
2306
|
+
}, className: "lead-phone-otp-form" },
|
|
2307
|
+
React__default.createElement(Heading$1, { tag: "h3", fontWeight: "bold", style: { marginBottom: 4 } }, t('lead.otp.title')),
|
|
2308
|
+
React__default.createElement(Text, { size: "p1", color: theme.colors.gray600 }, t('lead.otp.desc', { phone: displayPhone })),
|
|
2309
|
+
React__default.createElement(Input, { ref: inputRef, name: '_' + name + '-otp', spellCheck: false, type: "number", placeholder: t('lead.otp.phonePlaceholder'), className: "lead-modal__form-control", label: t('lead.otp.phoneLabel'), "data-control": "otp", withAsterisk: true, pattern: "[0-9]*", value: otp, maxLength: 6, onChange: (v) => {
|
|
2310
|
+
setIsDirty(true);
|
|
2311
|
+
setOtp(v);
|
|
2312
|
+
if (isDirty && !v)
|
|
2313
|
+
setErrorMsg('OTP is required');
|
|
2314
|
+
else
|
|
2315
|
+
setErrorMsg(undefined);
|
|
2316
|
+
}, error: isDirty ? errorMsg : undefined }),
|
|
2317
|
+
React__default.createElement(Button, { size: "md", color: "primary", className: `lead-modal__btn ${LEAD_CLASS}`,
|
|
2318
|
+
// onClick={() => submitOtp()}
|
|
2319
|
+
disabled: !otp, isLoading: isSubmitLoading }, t('lead.otp.verify')),
|
|
2320
|
+
React__default.createElement(Button, { type: "button", size: "md", color: "transparent", className: `lead-modal__btn lead-phone-otp-button ${LEAD_CLASS}`, onClick: () => {
|
|
2321
|
+
sendOtp();
|
|
2322
|
+
}, disabled: !!resendTimer }, t('lead.otp.resend', {
|
|
2323
|
+
timer: resendTimer ? ` (${resendTimer}s)` : '',
|
|
2324
|
+
})))));
|
|
2325
|
+
};
|
|
2326
|
+
|
|
2327
|
+
const EmptyIcon = (props) => {
|
|
2328
|
+
const { className, style } = props;
|
|
2329
|
+
return (React__default.createElement("svg", { width: "160", height: "160", viewBox: "0 0 160 160", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
2330
|
+
React__default.createElement("path", { d: "M79.9974 113.333C98.4069 113.333 113.331 98.4096 113.331 80.0001C113.331 61.5906 98.4069 46.6667 79.9974 46.6667C61.5879 46.6667 46.6641 61.5906 46.6641 80.0001C46.6641 98.4096 61.5879 113.333 79.9974 113.333Z", fill: "#F44D2C" }),
|
|
2331
|
+
React__default.createElement("path", { d: "M92.434 95.0004C91.7771 95.0004 91.1213 94.7499 90.6194 94.249L65.7521 69.3807C64.7493 68.3779 64.7493 66.7542 65.7521 65.7524C66.7549 64.7507 68.3786 64.7497 69.3804 65.7524L94.2487 90.6208C95.2515 91.6235 95.2515 93.2473 94.2487 94.249C93.7468 94.7499 93.0909 95.0004 92.434 95.0004Z", fill: "white" }),
|
|
2332
|
+
React__default.createElement("path", { d: "M67.5648 95C66.9079 95 66.252 94.7496 65.7501 94.2487C64.7474 93.2459 64.7474 91.6222 65.7501 90.6204L90.6185 65.7521C91.6212 64.7493 93.245 64.7493 94.2467 65.7521C95.2485 66.7549 95.2495 68.3786 94.2467 69.3804L69.3794 94.2487C68.8786 94.7496 68.2217 95 67.5648 95Z", fill: "white" })));
|
|
2479
2333
|
};
|
|
2480
2334
|
|
|
2481
2335
|
// url: imageBlocks.imageMobile.data.url
|
|
2482
2336
|
// newTab: imageBlocks.imageMobile.data.newtab
|
|
2483
2337
|
// image: campaignShow.image
|
|
2484
2338
|
// imageDestkop: campaignShow.image_desktop
|
|
2485
|
-
const LEADGEN_LAYOUT_NOT_SHOW_IN_MOBILE = [
|
|
2486
|
-
LEADGEN_LAYOUT.Fullscreen,
|
|
2487
|
-
LEADGEN_LAYOUT.Slider,
|
|
2488
|
-
];
|
|
2489
2339
|
const LEADGEN_LIMIT_LIGHTBOXB = 6;
|
|
2490
|
-
const LEADGEN_SHOW_HEADER = [
|
|
2491
|
-
'LightBoxA',
|
|
2492
|
-
'InlineA',
|
|
2493
|
-
LEADGEN_LAYOUT.Sidebar,
|
|
2494
|
-
LEADGEN_LAYOUT.Slider,
|
|
2495
|
-
];
|
|
2496
2340
|
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, showThankyou, campaignId, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
2497
|
-
var _a;
|
|
2341
|
+
var _a, _b, _c;
|
|
2342
|
+
const { t } = useTranslations();
|
|
2498
2343
|
const { isMobile } = useScreenSize();
|
|
2499
2344
|
const [open, setOpen] = useState(!!campaignId);
|
|
2500
2345
|
const [showOtpPhone, setShowOtpPhone] = useState(null);
|
|
@@ -2509,36 +2354,42 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
2509
2354
|
onCloseProp === null || onCloseProp === void 0 ? void 0 : onCloseProp();
|
|
2510
2355
|
}
|
|
2511
2356
|
};
|
|
2512
|
-
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
2513
2357
|
const listBlockAdded = JSON.parse(extraFields.listBlockAdded);
|
|
2514
2358
|
const actionBlocks = JSON.parse(extraFields.actionBlocks);
|
|
2359
|
+
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
2515
2360
|
const popUpSubmitText = actionBlocks.submitBlock.data.value;
|
|
2516
2361
|
const currentPath = location.pathname;
|
|
2517
|
-
const
|
|
2518
|
-
const
|
|
2519
|
-
const
|
|
2520
|
-
const isSidebar = currentLayout === LEADGEN_LAYOUT.Sidebar;
|
|
2362
|
+
const isInPage = currentLayout.includes('Inline') || currentLayout === 'Sidebar';
|
|
2363
|
+
const isSlider = currentLayout === 'Slider';
|
|
2364
|
+
const isDrawer = currentLayout.includes('LightBoxB') && isMobile;
|
|
2521
2365
|
const isLightBox = currentLayout.includes('LightBox');
|
|
2522
|
-
const
|
|
2523
|
-
|
|
2524
|
-
const
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2366
|
+
const isSmallLightBoxB = currentLayout === 'LightBoxB' &&
|
|
2367
|
+
listBlockAdded.length <= LEADGEN_LIMIT_LIGHTBOXB;
|
|
2368
|
+
const isShowHeader = showOtpPhone || !!imageMobile || !!imageDesktop;
|
|
2369
|
+
const isFormSubmit = currentLayout === 'LightBoxA'
|
|
2370
|
+
? listBlockAdded.some((item) => [
|
|
2371
|
+
'TextBlock',
|
|
2372
|
+
'NumberBlock',
|
|
2373
|
+
'DateBlock',
|
|
2374
|
+
'EmailBlock',
|
|
2375
|
+
'PhoneBlock',
|
|
2376
|
+
'PhoneOtpBlock',
|
|
2377
|
+
'WhatsappOtpBlock',
|
|
2378
|
+
'ZaloOtpBlock',
|
|
2379
|
+
'LocationBlock',
|
|
2380
|
+
'RadioBlock',
|
|
2381
|
+
'DropdownBlock',
|
|
2382
|
+
'CheckboxBlock',
|
|
2383
|
+
'TncBlock',
|
|
2384
|
+
].some((k) => k === (item === null || item === void 0 ? void 0 : item.name)))
|
|
2531
2385
|
: true;
|
|
2532
|
-
const showHeader = !!imageMobile || !!imageDesktop;
|
|
2533
|
-
const onlyHeader = !title && !description;
|
|
2534
|
-
const showButtonClose = !isInline;
|
|
2535
2386
|
if (window.innerWidth < 769 &&
|
|
2536
|
-
|
|
2387
|
+
['Fullscreen', 'Slider'].includes(currentLayout)) {
|
|
2537
2388
|
console.log('😎 Not show fullscreen, slider on mobile ');
|
|
2538
2389
|
return null;
|
|
2539
2390
|
}
|
|
2540
2391
|
useEffect(() => {
|
|
2541
|
-
if (
|
|
2392
|
+
if (currentLayout.includes('LightBox') || currentLayout == 'Fullscreen') {
|
|
2542
2393
|
document.body.classList.add('noscroll');
|
|
2543
2394
|
}
|
|
2544
2395
|
if (!window.intlTelInputUtils) {
|
|
@@ -2572,9 +2423,9 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
2572
2423
|
if (Object.keys(form.errors).length)
|
|
2573
2424
|
return;
|
|
2574
2425
|
let newShowOtpPhone = null;
|
|
2575
|
-
if (listBlockAdded.findIndex((x) => x.name ===
|
|
2426
|
+
if (listBlockAdded.findIndex((x) => x.name === 'PhoneOtpBlock') > -1) {
|
|
2576
2427
|
// not submit yet, open otp
|
|
2577
|
-
const fieldName = (_b = (_a = listBlockAdded.find((x) => x.name ===
|
|
2428
|
+
const fieldName = (_b = (_a = listBlockAdded.find((x) => x.name === 'PhoneOtpBlock')) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.value;
|
|
2578
2429
|
if ((_c = v[fieldName]) === null || _c === void 0 ? void 0 : _c.startsWith('+')) {
|
|
2579
2430
|
newShowOtpPhone = {
|
|
2580
2431
|
phone: v[fieldName],
|
|
@@ -2582,9 +2433,9 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
2582
2433
|
};
|
|
2583
2434
|
}
|
|
2584
2435
|
}
|
|
2585
|
-
if (listBlockAdded.findIndex((x) => x.name ===
|
|
2436
|
+
if (listBlockAdded.findIndex((x) => x.name === 'WhatsappOtpBlock') > -1) {
|
|
2586
2437
|
// not submit yet, open otp
|
|
2587
|
-
const fieldName = (_e = (_d = listBlockAdded.find((x) => x.name ===
|
|
2438
|
+
const fieldName = (_e = (_d = listBlockAdded.find((x) => x.name === 'WhatsappOtpBlock')) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.value;
|
|
2588
2439
|
if ((_f = v[fieldName]) === null || _f === void 0 ? void 0 : _f.startsWith('+')) {
|
|
2589
2440
|
newShowOtpPhone = {
|
|
2590
2441
|
phone: v[fieldName],
|
|
@@ -2592,9 +2443,9 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
2592
2443
|
};
|
|
2593
2444
|
}
|
|
2594
2445
|
}
|
|
2595
|
-
if (listBlockAdded.findIndex((x) => x.name ===
|
|
2446
|
+
if (listBlockAdded.findIndex((x) => x.name === 'ZaloOtpBlock') > -1) {
|
|
2596
2447
|
// not submit yet, open otp
|
|
2597
|
-
const fieldName = (_h = (_g = listBlockAdded.find((x) => x.name ===
|
|
2448
|
+
const fieldName = (_h = (_g = listBlockAdded.find((x) => x.name === 'ZaloOtpBlock')) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.value;
|
|
2598
2449
|
if ((_j = v[fieldName]) === null || _j === void 0 ? void 0 : _j.startsWith('+')) {
|
|
2599
2450
|
newShowOtpPhone = {
|
|
2600
2451
|
phone: v[fieldName],
|
|
@@ -2632,82 +2483,124 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
2632
2483
|
}
|
|
2633
2484
|
};
|
|
2634
2485
|
const { width: imageBackgroundWidth, height: imageBackgroundHeight, loaded: imageBackgroundLoaded, } = useImageSize(imageBackground);
|
|
2635
|
-
const { loaded: imageMobileLoaded } = useImageSize(imageMobile);
|
|
2636
|
-
const { loaded: imageDesktopLoaded } = useImageSize(imageDesktop);
|
|
2486
|
+
const { width: imageMobileWidth, height: imageMobileHeight, loaded: imageMobileLoaded, } = useImageSize(imageMobile);
|
|
2487
|
+
const { width: imageDesktopWidth, height: imageDesktopHeight, loaded: imageDesktopLoaded, } = useImageSize(imageDesktop);
|
|
2637
2488
|
const renderAfterImageSizes = imageMobileLoaded &&
|
|
2638
2489
|
imageDesktopLoaded &&
|
|
2639
|
-
(
|
|
2640
|
-
const ButtonSubmit = !((_a = actionBlocks === null || actionBlocks === void 0 ? void 0 : actionBlocks.submitBlock) === null || _a === void 0 ? void 0 : _a.isHide) && (React__default.createElement(Button$2, { size: "lg", id: "lead-submit", type: "submit", variant: "filled", className:
|
|
2641
|
-
const LinkButtonBlock = listBlockAdded.filter(({ name }) => name ==
|
|
2490
|
+
(currentLayout == 'Fullscreen' ? imageBackgroundLoaded : true);
|
|
2491
|
+
const ButtonSubmit = !((_a = actionBlocks === null || actionBlocks === void 0 ? void 0 : actionBlocks.submitBlock) === null || _a === void 0 ? void 0 : _a.isHide) && (React__default.createElement(Button$2, { size: "lg", id: "lead-submit", type: "submit", variant: "filled", className: clsx(`lead-modal__btn ${LEAD_CLASS}`, 'leadgen-btn leadgen-btn_action'), loading: isSubmitLoading }, popUpSubmitText));
|
|
2492
|
+
const LinkButtonBlock = listBlockAdded.filter(({ name }) => name == 'LinkButtonBlock');
|
|
2642
2493
|
const ButtonLink = !!(LinkButtonBlock === null || LinkButtonBlock === void 0 ? void 0 : LinkButtonBlock.length) && (React__default.createElement(React__default.Fragment, null, LinkButtonBlock.map((item, index) => {
|
|
2643
2494
|
var _a, _b, _c;
|
|
2644
|
-
return (React__default.createElement(Button$2, { key: `${item.name}-${index}`, component: "a", href: (_a = item === null || item === void 0 ? void 0 : item.data) === null || _a === void 0 ? void 0 : _a.url, target: ((_b = item === null || item === void 0 ? void 0 : item.data) === null || _b === void 0 ? void 0 : _b.newtab) ? '_blank' : undefined, size: "lg", variant: "filled", className:
|
|
2495
|
+
return (React__default.createElement(Button$2, { key: `${item.name}-${index}`, component: "a", href: (_a = item === null || item === void 0 ? void 0 : item.data) === null || _a === void 0 ? void 0 : _a.url, target: ((_b = item === null || item === void 0 ? void 0 : item.data) === null || _b === void 0 ? void 0 : _b.newtab) ? '_blank' : undefined, size: "lg", variant: "filled", className: clsx(`lead-modal__btn ${LEAD_CLASS}`, 'leadgen-btn leadgen-btn_action'), onClick: () => {
|
|
2645
2496
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
2646
2497
|
onOtherSubmit === null || onOtherSubmit === void 0 ? void 0 : onOtherSubmit();
|
|
2647
2498
|
} }, (_c = item === null || item === void 0 ? void 0 : item.data) === null || _c === void 0 ? void 0 : _c.value));
|
|
2648
2499
|
})));
|
|
2649
|
-
const PopupHeader =
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2500
|
+
const PopupHeader = (React__default.createElement("header", { className: clsx('lead-modal__header', {
|
|
2501
|
+
'leadgen-header': isLightBox,
|
|
2502
|
+
'leadgen-header_hidden': !isShowHeader,
|
|
2503
|
+
}) }, showOtpPhone ? (React__default.createElement("img", { src: CommonGAssets.getAssetPath('lead-otp-thumb.png'), draggable: "false", alt: "", style: {
|
|
2504
|
+
width: '100%',
|
|
2505
|
+
minHeight: '150px',
|
|
2506
|
+
backgroundColor: '#f2f2f2',
|
|
2507
|
+
}, loading: "lazy" })) : (React__default.createElement(React__default.Fragment, null, ['LightBoxA', 'InlineA', 'Sidebar', 'Slider'].includes(currentLayout) ? (imageMobile ? (isVideo(imageMobile) ? (React__default.createElement("video", { className: "lead-modal__image lead-modal-image-cover", muted: true, autoPlay: true, loop: true },
|
|
2508
|
+
React__default.createElement("source", { src: imageMobile, type: "video/mp4" }))) : (React__default.createElement("img", { draggable: "false", className: "lead-modal__image lead-modal-image-cover", src: imageMobile, style: {
|
|
2509
|
+
aspectRatio: `${imageMobileWidth}/${imageMobileHeight}`,
|
|
2510
|
+
}, alt: "" }))) : null) : (React__default.createElement(React__default.Fragment, null,
|
|
2511
|
+
imageDesktop ? (isVideo(imageDesktop) ? (React__default.createElement("video", { className: "le-only-desktop lead-modal__image lead-modal-image-cover", muted: true, autoPlay: true, loop: true },
|
|
2512
|
+
React__default.createElement("source", { src: imageDesktop, type: "video/mp4" }))) : (React__default.createElement("img", { draggable: "false", className: "le-only-desktop lead-modal__image lead-modal-image-cover", style: {
|
|
2513
|
+
objectFit: 'cover',
|
|
2514
|
+
aspectRatio: `${imageDesktopWidth}/${imageDesktopHeight}`,
|
|
2515
|
+
}, src: imageDesktop, alt: "" }))) : null,
|
|
2516
|
+
imageMobile ? (isVideo(imageMobile) ? (React__default.createElement("video", { className: "le-only-mobile lead-modal__image lead-modal-image-cover", muted: true, autoPlay: true, loop: true },
|
|
2517
|
+
React__default.createElement("source", { src: imageMobile, type: "video/mp4" }))) : (React__default.createElement("img", { draggable: "false", className: "le-only-mobile lead-modal__image lead-modal-image-cover", src: imageMobile, alt: "", style: {
|
|
2518
|
+
aspectRatio: `${imageMobileWidth}/${imageMobileHeight}`,
|
|
2519
|
+
} }))) : null))))));
|
|
2520
|
+
const PopupEmpty = showEmpty && (React__default.createElement("div", { className: "leadgen-empty" },
|
|
2521
|
+
React__default.createElement("div", { className: "leadgen-empty_body" },
|
|
2522
|
+
React__default.createElement("div", { className: "leadgen-empty_wrapper" },
|
|
2523
|
+
React__default.createElement(EmptyIcon, { className: "leadgen-empty_image" }),
|
|
2524
|
+
React__default.createElement("h5", { className: "leadgen-empty_title" }, t('lead.empty.title')))),
|
|
2525
|
+
React__default.createElement("div", { className: "leadgen-empty_footer" },
|
|
2526
|
+
React__default.createElement(Button$2, { onClick: onClose, size: "lg", variant: "default", fullWidth: false, className: "leadgen-btn leadgen-btn_empty_cancel" }, t('lead.empty.cancel')),
|
|
2527
|
+
React__default.createElement(Button$2, { onClick: () => setShowEmpty(false), size: "lg", variant: "filled", fullWidth: false, className: "leadgen-btn leadgen-btn_empty_again" }, t('lead.empty.submitAgain')))));
|
|
2528
|
+
const PopupFormTitle = (React__default.createElement("h2", { title: title, className: clsx(LEAD_CLASS, `lead-modal__title`, `le-text-align-${(_b = textBlocks.titleBlock.data) === null || _b === void 0 ? void 0 : _b.align}`, { 'leadgen-title': isLightBox }) }, title));
|
|
2529
|
+
const PopupFormDescription = (React__default.createElement("p", { title: textBlocks.subtitleBlock.data.value, className: clsx(LEAD_CLASS, `lead-modal__description`, `le-text-align-${(_c = textBlocks.subtitleBlock.data) === null || _c === void 0 ? void 0 : _c.align}`, { 'leadgen-description': isLightBox }) }, textBlocks.subtitleBlock.data.value));
|
|
2653
2530
|
const PopupForm = (React__default.createElement(LeadFormProvider, { form: form },
|
|
2654
|
-
React__default.createElement("form", { ref: formRef, className:
|
|
2655
|
-
|
|
2531
|
+
React__default.createElement("form", { ref: formRef, className: clsx(`lead-modal__form ${popupId}`, {
|
|
2532
|
+
'leadgen-form': isLightBox,
|
|
2533
|
+
}), onSubmit: middlewareOnSubmit },
|
|
2534
|
+
React__default.createElement("div", { className: clsx('lead-modal__form-header', {
|
|
2535
|
+
'leadgen-form_header': isLightBox,
|
|
2536
|
+
}) },
|
|
2537
|
+
PopupFormTitle,
|
|
2538
|
+
PopupFormDescription),
|
|
2539
|
+
React__default.createElement("div", { className: clsx('lead-modal__form-control-wrapper', {
|
|
2540
|
+
'leadgen-form_body': isLightBox,
|
|
2541
|
+
}), "data-hidden": !isFormSubmit },
|
|
2656
2542
|
React__default.createElement("div", { className: "leadgen-form_inner" },
|
|
2657
|
-
React__default.createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit })))
|
|
2658
|
-
|
|
2659
|
-
setShowOtpPhone(null);
|
|
2660
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(formRef.current, form.values);
|
|
2661
|
-
} }));
|
|
2543
|
+
React__default.createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit }))),
|
|
2544
|
+
React__default.createElement("div", { className: "leadgen-form_footer" }, isFormSubmit ? ButtonSubmit : ButtonLink))));
|
|
2662
2545
|
const PopupThankYou = showThankyou && (React__default.createElement(ThankyouPopup, { title: showThankyou.title, titleAlign: showThankyou.titleAlign, subtitle: showThankyou.subtitle, subtitleAlign: showThankyou.subtitleAlign, link: showThankyou.link, linkNewTab: showThankyou.linkNewTab, linkText: showThankyou.linkText, image: showThankyou.image }));
|
|
2663
|
-
const
|
|
2664
|
-
|
|
2665
|
-
}) },
|
|
2546
|
+
const popupContentClassName = clsx('lead-modal__content', `le-newbuilder-${currentLayout}`, 'leadPopupContent', { 'leadgen-content': isLightBox });
|
|
2547
|
+
const PopupContent = (React__default.createElement("div", { className: popupContentClassName },
|
|
2666
2548
|
PopupHeader,
|
|
2667
|
-
|
|
2549
|
+
React__default.createElement("div", { className: "leadgen-inner" },
|
|
2668
2550
|
PopupThankYou,
|
|
2669
2551
|
!showThankyou && (React__default.createElement(React__default.Fragment, null,
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2552
|
+
showOtpPhone && (React__default.createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
2553
|
+
setShowOtpPhone(null);
|
|
2554
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(formRef.current, form.values);
|
|
2555
|
+
} })),
|
|
2556
|
+
showEmpty && PopupEmpty,
|
|
2557
|
+
React__default.createElement("div", { "data-hidden": !!showOtpPhone || !!showEmpty, className: clsx('lead-modal__body le-newbuilder-overlay', {
|
|
2558
|
+
'leadgen-body': isLightBox,
|
|
2559
|
+
}) }, PopupForm))))));
|
|
2560
|
+
const PopupWrapper = (React__default.createElement("div", { className: clsx(`lead-modal__wrapper le-newbuilder-wrap-${currentLayout}`, {
|
|
2561
|
+
'leadgen-wrapper': isLightBox,
|
|
2562
|
+
'leadgen-wrapper_small': isSmallLightBoxB,
|
|
2563
|
+
}) },
|
|
2564
|
+
!currentLayout.includes('Inline') && (React__default.createElement(CloseButton, { onClose: () => onOpenChange(false), containerClassName: clsx('close-button-top-right', {
|
|
2565
|
+
'leadgen-close_btn': isLightBox,
|
|
2566
|
+
}) })),
|
|
2567
|
+
PopupContent));
|
|
2673
2568
|
const styleOverlay = useMemo(() => {
|
|
2674
|
-
let styleContent = `.
|
|
2569
|
+
let styleContent = `.le-newbuilder-overlay {background-repeat: no-repeat;background-size: cover;background-position:center;}`;
|
|
2675
2570
|
if (isMobile && imageOverlayMobile) {
|
|
2676
|
-
styleContent += `.
|
|
2571
|
+
styleContent += `.le-newbuilder-overlay {background-image: url(${imageOverlayMobile});}`;
|
|
2677
2572
|
}
|
|
2678
2573
|
if (!isMobile && imageOverlayDesktop) {
|
|
2679
|
-
styleContent += `@media screen and (min-width:768px) {.
|
|
2574
|
+
styleContent += `@media screen and (min-width:768px) {.le-newbuilder-overlay {background-image: url(${imageOverlayDesktop});}}`;
|
|
2680
2575
|
}
|
|
2681
2576
|
return styleContent;
|
|
2682
2577
|
}, [isMobile, imageOverlayDesktop, imageOverlayMobile]);
|
|
2683
|
-
const
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
}) },
|
|
2688
|
-
showButtonClose && (React__default.createElement(CloseButton, { onClose: () => onOpenChange(false), containerClassName: "leadgen-close_btn" })),
|
|
2689
|
-
PopupContent)));
|
|
2690
|
-
const popupContainerClassName = clsx('leadgen', `leadgen-${currentLayout}`, {
|
|
2691
|
-
'leadgen-lightbox': isLightBox,
|
|
2692
|
-
'leadgen-inline': isInPage,
|
|
2693
|
-
'leadgen-slider': isSlider,
|
|
2578
|
+
const popupContainerClassName = clsx('lead-modal lead-modal-wrapper modal--animate-scale', `leadgen-${currentLayout}`, {
|
|
2579
|
+
'le-buider-inline': !!isInPage,
|
|
2580
|
+
'le-buider-slider': !!isSlider,
|
|
2581
|
+
leadgen: isLightBox,
|
|
2694
2582
|
});
|
|
2695
|
-
const PopupContainer = isDrawer ? (React__default.createElement(DrawerComponent, {
|
|
2583
|
+
const PopupContainer = isDrawer ? (React__default.createElement(DrawerComponent, { open: open, snapPoints: [0.8, 1], activeSnapPoint: snap, setActiveSnapPoint: setSnap, onOpenChange: onOpenChange, overlayClassName: popupContainerClassName, className: "leadgen-drawer" },
|
|
2584
|
+
React__default.createElement("style", { dangerouslySetInnerHTML: { __html: styleOverlay } }),
|
|
2696
2585
|
PopupWrapper,
|
|
2697
|
-
React__default.createElement("div", { style: { position: 'absolute', inset: 0, zIndex: snap === 1 ? -1 : 1 }, onClick: () => setSnap(1) }))) : (React__default.createElement(
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2586
|
+
React__default.createElement("div", { className: "", style: { position: 'absolute', inset: 0, zIndex: snap === 1 ? -1 : 1 }, onClick: () => setSnap(1) }))) : (React__default.createElement(React__default.Fragment, null,
|
|
2587
|
+
React__default.createElement("style", { dangerouslySetInnerHTML: { __html: styleOverlay } }),
|
|
2588
|
+
React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
2589
|
+
currentLayout == 'Fullscreen' ? (React__default.createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
2590
|
+
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
2591
|
+
} })) : null,
|
|
2592
|
+
PopupWrapper)));
|
|
2702
2593
|
if (!renderAfterImageSizes)
|
|
2703
2594
|
return null;
|
|
2704
|
-
if (
|
|
2595
|
+
if (currentLayout.includes('LightBox') ||
|
|
2596
|
+
currentLayout == 'Fullscreen' ||
|
|
2597
|
+
currentLayout == 'Slider') {
|
|
2705
2598
|
return PopupContainer;
|
|
2706
2599
|
}
|
|
2707
|
-
else if (
|
|
2600
|
+
else if (currentLayout == 'Sidebar') {
|
|
2708
2601
|
return React__default.createElement(SideBarLayout, { content: PopupContainer });
|
|
2709
2602
|
}
|
|
2710
|
-
else if (
|
|
2603
|
+
else if (currentLayout.includes('Inline')) {
|
|
2711
2604
|
return (React__default.createElement(InlineLayout, { content: PopupContainer, inlinePosition: extraFields.popupInlinePosition }));
|
|
2712
2605
|
}
|
|
2713
2606
|
return null;
|