@hhgtech/hhg-components 1.29.418 → 1.29.419-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-c9e54a91.js → InputDate-68ca6fc5.js} +14 -21
- package/build/{LastPeriod-879fdfd5.js → LastPeriod-b25f76ef.js} +1 -1
- package/build/{MobileBottomNavigationIcon-29955b8d.js → MobileBottomNavigationIcon-fafafa85.js} +3 -3
- package/build/{Spinner-ae620f00.js → Spinner-29698294.js} +1 -1
- package/build/{WhatsApp-c2e443b9.js → WhatsApp-885562d4.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +52 -50
- package/build/babyGrowth.js +85 -84
- package/build/cache.js +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/icons/ErrorIcon.d.ts +4 -0
- package/build/components/atoms/index.d.ts +1 -0
- package/build/components/atoms/searchInput/index.d.ts +17 -0
- package/build/components/mantine/phoneInput/PhoneInput.d.ts +1 -1
- package/build/components/mantine/styles.d.ts +12 -0
- package/build/components/mantine/theme/input.d.ts +7 -6
- package/build/components/mantine/theme/text.d.ts +51 -0
- package/build/components/molecules/cardListItem/index.d.ts +13 -0
- package/build/components/molecules/cardListItem/index.styled.d.ts +9 -0
- package/build/components/molecules/index.d.ts +3 -0
- package/build/components/molecules/list/Content.d.ts +8 -0
- package/build/components/molecules/list/Item.d.ts +4 -0
- package/build/components/molecules/list/ListProvider.d.ts +3 -0
- package/build/components/molecules/list/ListQuickFilter.d.ts +7 -0
- package/build/components/molecules/list/LoadMore.d.ts +8 -0
- package/build/components/molecules/list/Pagination.d.ts +2 -0
- package/build/components/molecules/list/Search.d.ts +8 -0
- package/build/components/molecules/list/context.d.ts +4 -0
- package/build/components/molecules/list/index.d.ts +18 -0
- package/build/components/molecules/list/type.d.ts +36 -0
- package/build/components/molecules/list/useList.d.ts +22 -0
- package/build/components/molecules/quickFilter/index.d.ts +9 -0
- package/build/components/molecules/quickFilter/index.styled.d.ts +5 -0
- package/build/components.js +107 -99
- package/build/{constants-91f2a6ec.js → constants-766de565.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-cee15e58.js → core-8e73ac7f.js} +1 -1
- package/build/{dataTransform-b9985389.js → dataTransform-175a3682.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-38959afb.js → editor-2747965a.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/{InputDate-dbede396.js → InputDate-fec94e39.js} +14 -21
- package/build/esm/{LastPeriod-3a8ce81b.js → LastPeriod-6a0e101c.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-95f8b694.js → MobileBottomNavigationIcon-6e3cd223.js} +3 -3
- package/build/esm/{Spinner-7106ae77.js → Spinner-b4948434.js} +1 -1
- package/build/esm/{WhatsApp-1eb79b9f.js → WhatsApp-a0cd9c13.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +49 -49
- package/build/esm/babyGrowth.js +85 -84
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/atoms/icons/ErrorIcon.d.ts +4 -0
- package/build/esm/components/atoms/index.d.ts +1 -0
- package/build/esm/components/atoms/searchInput/index.d.ts +17 -0
- package/build/esm/components/mantine/phoneInput/PhoneInput.d.ts +1 -1
- package/build/esm/components/mantine/styles.d.ts +12 -0
- package/build/esm/components/mantine/theme/input.d.ts +7 -6
- package/build/esm/components/mantine/theme/text.d.ts +51 -0
- package/build/esm/components/molecules/cardListItem/index.d.ts +13 -0
- package/build/esm/components/molecules/cardListItem/index.styled.d.ts +9 -0
- package/build/esm/components/molecules/index.d.ts +3 -0
- package/build/esm/components/molecules/list/Content.d.ts +8 -0
- package/build/esm/components/molecules/list/Item.d.ts +4 -0
- package/build/esm/components/molecules/list/ListProvider.d.ts +3 -0
- package/build/esm/components/molecules/list/ListQuickFilter.d.ts +7 -0
- package/build/esm/components/molecules/list/LoadMore.d.ts +8 -0
- package/build/esm/components/molecules/list/Pagination.d.ts +2 -0
- package/build/esm/components/molecules/list/Search.d.ts +8 -0
- package/build/esm/components/molecules/list/context.d.ts +4 -0
- package/build/esm/components/molecules/list/index.d.ts +18 -0
- package/build/esm/components/molecules/list/type.d.ts +36 -0
- package/build/esm/components/molecules/list/useList.d.ts +22 -0
- package/build/esm/components/molecules/quickFilter/index.d.ts +9 -0
- package/build/esm/components/molecules/quickFilter/index.styled.d.ts +5 -0
- package/build/esm/components.js +99 -98
- package/build/esm/{constants-78b10870.js → constants-bb10024b.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-bfed8857.js → core-8a2d6088.js} +1 -1
- package/build/esm/{dataTransform-bcdc73f7.js → dataTransform-61de94c8.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-adc9d183.js → editor-47606d9f.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/esm/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-bd097aa5.js → healthTools-764fee4f.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/icons/CurrentLocation.d.ts +4 -0
- package/build/esm/icons/Search2.d.ts +4 -0
- package/build/esm/icons/index.d.ts +3 -1
- package/build/esm/{index-b9f57aa7.js → index-0a5693c1.js} +13 -13
- package/build/esm/{index-8c902e04.js → index-0bad6b36.js} +2 -2
- package/build/esm/{index-bdf6245a.js → index-11b34b1c.js} +15 -15
- package/build/esm/{index-d83df005.js → index-120ba15d.js} +13 -13
- package/build/esm/{index-9d21916e.js → index-29e1f94e.js} +13 -13
- package/build/esm/{index-1d3457e3.js → index-29f75d77.js} +2 -2
- package/build/esm/{index-ae917316.js → index-2ad3e681.js} +4 -4
- package/build/esm/{index-cf685e8f.js → index-2d6a701d.js} +3 -3
- package/build/esm/{index-de491ad4.js → index-2efafeab.js} +2 -2
- package/build/esm/{index-f402f20c.js → index-2fd47d2e.js} +2 -2
- package/build/esm/{index-e25a50a7.js → index-303c7f1c.js} +2 -2
- package/build/esm/{index-c314e49c.js → index-36d11d19.js} +10 -10
- package/build/esm/{index-52a25f04.js → index-38ab4ef0.js} +16 -16
- package/build/esm/{index-26ec0ccc.js → index-39e83066.js} +5 -5
- package/build/esm/{index-6058338e.js → index-3ad4c2b8.js} +22 -22
- package/build/esm/{index-660b41f1.js → index-3af9aa6a.js} +17 -17
- package/build/esm/{index-2e613a95.js → index-3befc5c1.js} +1 -1
- package/build/esm/{index-a2f0cb1d.js → index-41001924.js} +1 -1
- package/build/esm/{index-c8cbbe59.js → index-421188d7.js} +7 -141
- package/build/esm/{index-1af7cea2.js → index-46c65bca.js} +2 -2
- package/build/esm/{index-38a06ee1.js → index-48f309f9.js} +2 -2
- package/build/esm/{index-6c4303e3.js → index-49478ae8.js} +357 -27
- package/build/esm/{index-417b0181.js → index-4a6ec4a2.js} +1 -1
- package/build/esm/{index-7dc69559.js → index-4f81dbd5.js} +15 -15
- package/build/esm/{index-21e97511.js → index-52433b5d.js} +6 -6
- package/build/esm/{index-bb3f4527.js → index-539fd016.js} +3 -3
- package/build/esm/{index-5f7213b5.js → index-5469d13f.js} +6 -6
- package/build/esm/{index-da9b3560.js → index-564e9a8d.js} +1 -1
- package/build/esm/{index-788c119c.js → index-5871b2dd.js} +21 -21
- package/build/esm/{index-cbdfe04b.js → index-61b26bbb.js} +16 -16
- package/build/esm/{index-b6d4a2ed.js → index-638dab8a.js} +13 -13
- package/build/esm/{index-11755303.js → index-69938083.js} +1 -1
- package/build/esm/{index-a318f8d8.js → index-6a2ca5f4.js} +1 -1
- package/build/esm/{index-3dd7f3bf.js → index-6a3d20c1.js} +3 -3
- package/build/esm/{index-65057179.js → index-6ab8d58a.js} +30 -30
- package/build/esm/{index-6c0dc808.js → index-78f1581c.js} +1 -1
- package/build/esm/{index-eebfb54e.js → index-78fe08df.js} +2 -2
- package/build/esm/{index-ceb8b8bf.js → index-7970f1b8.js} +2 -2
- package/build/esm/{index-1708f86a.js → index-7d04c0c0.js} +2 -2
- package/build/esm/{index-50786b24.js → index-80a7b5d5.js} +7 -7
- package/build/esm/{index-20e98e68.js → index-819f8df7.js} +17 -17
- package/build/esm/{index-b4e79297.js → index-888ddec8.js} +32 -32
- package/build/esm/{index-b0dd85e7.js → index-91f2dd8d.js} +2 -2
- package/build/esm/{index-5bf11acd.js → index-9485507e.js} +9 -9
- package/build/esm/{index-0c0ac05f.js → index-95a9f864.js} +1 -1
- package/build/esm/{index-613e2960.js → index-9f2df5e3.js} +4 -4
- package/build/esm/{index-82c84a53.js → index-9f579ccc.js} +7 -7
- package/build/esm/{index-1dc66a92.js → index-a3991831.js} +3 -3
- package/build/esm/{index-1dfa8721.js → index-a52a7c0a.js} +2 -2
- package/build/esm/{index-0bbd27f5.js → index-b1e3f947.js} +6 -6
- package/build/esm/{index-8cf5e40e.js → index-b5ac0148.js} +3 -3
- package/build/esm/{index-ae8dcfc8.js → index-b7e161e6.js} +13 -13
- package/build/esm/{index-27f4e35e.js → index-b7ff5c4f.js} +2 -2
- package/build/esm/index-b9d16d7f.js +438 -0
- package/build/esm/{index-0ebe57cc.js → index-bdff2ead.js} +11 -11
- package/build/esm/{index-9cdad777.js → index-cdc909e2.js} +3 -3
- package/build/esm/{index-81e60fe2.js → index-d0ff0f33.js} +3 -3
- package/build/esm/{index-e6f9eb2d.js → index-d2b92371.js} +15 -15
- package/build/esm/{index-46c913ce.js → index-d412c3e2.js} +6 -6
- package/build/esm/{index-a95b8ba0.js → index-dc0e0d39.js} +13 -13
- package/build/esm/{index-23f97b77.js → index-e24c7f31.js} +2 -2
- package/build/esm/{index-546c521c.js → index-e2c81cdc.js} +18 -27
- package/build/esm/{index-aaf96a65.js → index-e332685c.js} +17 -17
- package/build/esm/{index-8e615057.js → index-e68839f2.js} +6 -6
- package/build/esm/{index-6b8ab535.js → index-e69bf3a5.js} +17 -17
- package/build/esm/{index-6a03cb12.js → index-f27e8f3a.js} +2 -2
- package/build/esm/{index-17ce0065.js → index-f2b86e2f.js} +32 -32
- package/build/esm/{index-d1a664c7.js → index-f2f75555.js} +25 -25
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +127 -121
- package/build/esm/{labelSorting-28e6306e.js → labelSorting-5b1f54a4.js} +4 -4
- package/build/esm/lead/layouts/lightbox/fields/textField/context.d.ts +8 -0
- package/build/esm/lead/layouts/lightbox/fields/textField/index.d.ts +19 -2
- package/build/esm/lead/layouts/lightbox/fields/textField/index.styled.d.ts +4 -0
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +254 -471
- package/build/esm/{localizeNumberFormat-3bc9c323.js → localizeNumberFormat-3e0bd7c2.js} +15 -1
- package/build/esm/{logoIcon-fe92076f.js → logoIcon-ed7518ac.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc/localizeNumberFormat.d.ts +1 -0
- package/build/esm/misc/utils.d.ts +5 -0
- package/build/esm/misc.js +19 -18
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +77 -75
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +47 -47
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +51 -51
- package/build/esm/{post-ec2894e8.js → post-93572606.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/esm/ssoV2.js +54 -42
- package/build/esm/{store-53b561bd.js → store-318021a0.js} +3 -3
- package/build/esm/subot.js +37 -37
- package/build/esm/surveyOrPremiumBanner.js +34 -34
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-410d6c05.js → surveyThankyouCard-efdd2478.js} +5 -5
- package/build/esm/{text-1962e9fb.js → text-9556acd7.js} +60 -10
- package/build/esm/together.js +57 -57
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +31 -31
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +52 -52
- package/build/esm/togetherMoleculesCardAuthor.js +29 -29
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +40 -40
- package/build/esm/togetherOrganisms.js +51 -51
- package/build/esm/togetherRichTextEditor.js +18 -18
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-7f13bbeb.js → translationsProvider-29762575.js} +1 -1
- package/build/esm/{treePopoverMenu-0bc9b572.js → treePopoverMenu-b8636f94.js} +19 -19
- package/build/esm/{types-08181fb5.js → types-ca2625f6.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-fdaa4285.js → useCategory-c675f5e0.js} +5 -5
- package/build/esm/{useHealthToolCache-0df97913.js → useHealthToolCache-7c77b984.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-aa0779ff.js → usePlacesAutocomplete-97751620.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-8d7411e8.js → utils-1c5f9f28.js} +2 -2
- package/build/esm/{utils-fb03ac58.js → utils-21099ca6.js} +3 -3
- package/build/esm/{utils-300644b9.js → utils-253cee56.js} +5 -5
- package/build/esm/{utils-6b907537.js → utils-be8e2668.js} +2 -2
- package/build/esm/{utils-778daa2b.js → utils-ce6dad59.js} +18 -1
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-0d0aeffc.js → healthTools-51bb2124.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/icons/CurrentLocation.d.ts +4 -0
- package/build/icons/Search2.d.ts +4 -0
- package/build/icons/index.d.ts +3 -1
- package/build/{index-eb6151fd.js → index-059f8b1a.js} +15 -15
- package/build/{index-a9af5e7e.js → index-08f326ae.js} +6 -6
- package/build/{index-62c8e788.js → index-0ed2890b.js} +17 -17
- package/build/{index-99b9d42a.js → index-0f47bb79.js} +3 -3
- package/build/{index-f06ce4d3.js → index-10b18993.js} +4 -4
- package/build/{index-16575b03.js → index-122a8cd1.js} +3 -3
- package/build/{index-10a7a3bf.js → index-1541777c.js} +3 -3
- package/build/index-184afe37.js +467 -0
- package/build/{index-4de21d3a.js → index-22c16af9.js} +1 -1
- package/build/{index-c07cae2c.js → index-24000d2c.js} +30 -30
- package/build/{index-d3682a66.js → index-275c940b.js} +2 -2
- package/build/{index-716ab4f9.js → index-293ef1fc.js} +3 -3
- package/build/{index-a76f8d25.js → index-296f0f36.js} +17 -17
- package/build/{index-c7cc6fcd.js → index-2bb796ef.js} +10 -10
- package/build/{index-4b50645c.js → index-3066c585.js} +359 -24
- package/build/{index-2890f16e.js → index-30a772f4.js} +2 -2
- package/build/{index-26b923a7.js → index-36e9cb3d.js} +2 -2
- package/build/{index-36979039.js → index-3a075ff3.js} +1 -1
- package/build/{index-0047fb5c.js → index-3efda538.js} +2 -2
- package/build/{index-c4db35b3.js → index-49ebf8b7.js} +13 -13
- package/build/{index-7ad9dc6a.js → index-4a319278.js} +2 -2
- package/build/{index-61316819.js → index-4c3ca68f.js} +1 -1
- package/build/{index-67edd8f9.js → index-579dbc09.js} +7 -7
- package/build/{index-66e5ff70.js → index-57d10501.js} +3 -3
- package/build/{index-81d09967.js → index-58813d9c.js} +6 -6
- package/build/{index-b5318017.js → index-58965cc3.js} +25 -25
- package/build/{index-69b25196.js → index-5a634392.js} +2 -2
- package/build/{index-776f6bc7.js → index-5ec5e423.js} +9 -9
- package/build/{index-a9a02ae8.js → index-6449317f.js} +13 -13
- package/build/{index-666659e2.js → index-674527a1.js} +3 -3
- package/build/{index-ad451da8.js → index-69c8bc1a.js} +15 -15
- package/build/{index-f241bd03.js → index-836812e6.js} +5 -140
- package/build/{index-85006380.js → index-848ab8f1.js} +6 -6
- package/build/{index-e01cb1e6.js → index-8a75450f.js} +16 -16
- package/build/{index-f059e18e.js → index-8de4dbf5.js} +17 -17
- package/build/{index-b10baccb.js → index-8e66218d.js} +15 -15
- package/build/{index-32f81084.js → index-8f594ca4.js} +2 -2
- package/build/{index-9069d432.js → index-8f7fbc9d.js} +13 -13
- package/build/{index-f1ca9a6c.js → index-900940cb.js} +21 -21
- package/build/{index-a19bc6c8.js → index-90471bcc.js} +2 -2
- package/build/{index-c9319026.js → index-90d56006.js} +6 -6
- package/build/{index-83f5fad3.js → index-92a0433f.js} +1 -1
- package/build/{index-479e436f.js → index-93e64ec2.js} +2 -2
- package/build/{index-051f0683.js → index-95a9d9a7.js} +7 -7
- package/build/{index-df731c60.js → index-9c48a9f9.js} +16 -16
- package/build/{index-d6dac02b.js → index-9de9270d.js} +5 -5
- package/build/{index-30a3597d.js → index-9f8c85a9.js} +1 -1
- package/build/{index-5c196a38.js → index-a303795b.js} +1 -1
- package/build/{index-8777d7b3.js → index-a84edf34.js} +17 -17
- package/build/{index-90ac7a26.js → index-b59679af.js} +2 -2
- package/build/{index-6cdd2f9a.js → index-bae23ddf.js} +18 -27
- package/build/{index-b51ad59b.js → index-c5a77ea8.js} +4 -4
- package/build/{index-87f1c08b.js → index-c7b03f0a.js} +2 -2
- package/build/{index-97339731.js → index-cd5cd850.js} +2 -2
- package/build/{index-9df235cb.js → index-cdb42750.js} +22 -22
- package/build/{index-68836eb3.js → index-d0638a5e.js} +13 -13
- package/build/{index-cdb6b049.js → index-d1330bf8.js} +1 -1
- package/build/{index-7739e3c0.js → index-d86112d6.js} +13 -13
- package/build/{index-c47fc92a.js → index-e1a8ca86.js} +2 -2
- package/build/{index-4ef00256.js → index-e235bbaf.js} +32 -32
- package/build/{index-33647386.js → index-e32ec494.js} +2 -2
- package/build/{index-033f3708.js → index-e360176a.js} +11 -11
- package/build/{index-1b78b706.js → index-e725f4d4.js} +6 -6
- package/build/{index-133e833c.js → index-ec34644f.js} +1 -1
- package/build/{index-97723ce3.js → index-ef993f10.js} +32 -32
- package/build/{index-621acee0.js → index-f67f3e1a.js} +13 -13
- package/build/{index-d9e8d4bb.js → index-f9f5ca4a.js} +2 -2
- package/build/{index-2fbe3d5c.js → index-ff19a2e7.js} +3 -3
- package/build/index.css +1 -1
- package/build/index.js +140 -123
- package/build/{labelSorting-dda18bee.js → labelSorting-59fd6605.js} +4 -4
- package/build/lead/layouts/lightbox/fields/textField/context.d.ts +8 -0
- package/build/lead/layouts/lightbox/fields/textField/index.d.ts +19 -2
- package/build/lead/layouts/lightbox/fields/textField/index.styled.d.ts +4 -0
- package/build/lead.css +1 -1
- package/build/lead.js +253 -470
- package/build/{localizeNumberFormat-81e345e7.js → localizeNumberFormat-80c74272.js} +15 -0
- package/build/{logoIcon-41884c8a.js → logoIcon-9f1ef465.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc/localizeNumberFormat.d.ts +1 -0
- package/build/misc/utils.d.ts +5 -0
- package/build/misc.js +21 -18
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +82 -75
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +47 -47
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +51 -51
- package/build/{post-9fc5b62b.js → post-efcbf0ab.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/ssoV2.js +52 -40
- package/build/{store-a13cb8eb.js → store-18d774ad.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-4c3fd141.js → surveyThankyouCard-1fc1bd7e.js} +5 -5
- package/build/{text-5a087312.js → text-9871cd45.js} +60 -9
- package/build/together.js +57 -57
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +31 -31
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +52 -52
- package/build/togetherMoleculesCardAuthor.js +29 -29
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +40 -40
- package/build/togetherOrganisms.js +51 -51
- package/build/togetherRichTextEditor.js +18 -18
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-d2eda6ca.js → translationsProvider-cf9b82c8.js} +1 -1
- package/build/{treePopoverMenu-7c30be25.js → treePopoverMenu-6b34fdce.js} +19 -19
- package/build/{types-3157a346.js → types-efa0d00c.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-520eff9c.js → useCategory-d7a305df.js} +5 -5
- package/build/{useHealthToolCache-18dad3a0.js → useHealthToolCache-91d3e9d6.js} +1 -1
- package/build/{usePlacesAutocomplete-cabb5d7d.js → usePlacesAutocomplete-32f0b027.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-2e68f2e4.js → utils-6e36a6f5.js} +2 -2
- package/build/{utils-e15dec9d.js → utils-8801613f.js} +3 -3
- package/build/{utils-2a738644.js → utils-bbfb7fdd.js} +5 -5
- package/build/{utils-17caafcc.js → utils-ccbeca9e.js} +2 -2
- package/build/{utils-b7357ffc.js → utils-fb640cd6.js} +18 -0
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/esm/index-5f40c88a.js +0 -262
- package/build/index-c26a485b.js +0 -270
- /package/build/{BMI_BOYS.percentile.monthly-b1880d70.js → BMI_BOYS.percentile.monthly-d43a9782.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-7ef94885.js → BMI_BOYS.percentile.weekly-20f69096.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-6f7f1b5a.js → BMI_BOYS.percentile.yearly-86ae090b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-79ff6ff7.js → BMI_BOYS.zscore.monthly-4c1c62b0.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-def54d64.js → BMI_BOYS.zscore.weekly-1d66b244.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-5881aa85.js → BMI_BOYS.zscore.yearly-be7f6f65.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-9a33d48f.js → BMI_GIRLS.percentile.monthly-192fc32f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-4ecb2b67.js → BMI_GIRLS.percentile.weekly-4c4df308.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1acdc246.js → BMI_GIRLS.percentile.yearly-b8235699.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-d3143964.js → BMI_GIRLS.zscore.monthly-acf5dcee.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-db59b9f2.js → BMI_GIRLS.zscore.weekly-ba4f67ac.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-8d674831.js → BMI_GIRLS.zscore.yearly-c59f4d52.js} +0 -0
- /package/build/{ChevronDown-ffd2a6ea.js → ChevronDown-f542f8ac.js} +0 -0
- /package/build/{Close-f532645a.js → Close-303207ff.js} +0 -0
- /package/build/{Google-1927a431.js → Google-b6eb9dad.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7f96ee78.js → HEAD CIRCUM_BOYS.percentile.monthly-edbd42c2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f556d14b.js → HEAD CIRCUM_BOYS.percentile.weekly-428440cf.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-279ada0c.js → HEAD CIRCUM_BOYS.percentile.yearly-9bb04f1c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-72ba5121.js → HEAD CIRCUM_BOYS.zscore.monthly-74161006.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-add8e701.js → HEAD CIRCUM_BOYS.zscore.weekly-7f762743.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-40ffe3da.js → HEAD CIRCUM_BOYS.zscore.yearly-20974e45.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-dadae1f8.js → HEAD CIRCUM_GIRLS.percentile.monthly-02fc24a9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-04f0ae90.js → HEAD CIRCUM_GIRLS.percentile.weekly-00429686.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-08579ba6.js → HEAD CIRCUM_GIRLS.percentile.yearly-4991c72a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-45d6bac0.js → HEAD CIRCUM_GIRLS.zscore.monthly-5352f2a8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ab85e6e8.js → HEAD CIRCUM_GIRLS.zscore.weekly-623f8e5f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b5166667.js → HEAD CIRCUM_GIRLS.zscore.yearly-aabb0ed7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-cebf5600.js → HEIGHT_BOYS.percentile.monthly-b53a8198.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-c1cb80c4.js → HEIGHT_BOYS.percentile.weekly-fc16ab4e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-327ceda9.js → HEIGHT_BOYS.percentile.yearly-0ef49ac4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-b62f551e.js → HEIGHT_BOYS.zscore.monthly-93462a99.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-f7f8c5da.js → HEIGHT_BOYS.zscore.weekly-fd74c5b5.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-0fa8e618.js → HEIGHT_BOYS.zscore.yearly-5d65caae.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-a8f51384.js → HEIGHT_GIRLS.percentile.monthly-c956d125.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-460d71d0.js → HEIGHT_GIRLS.percentile.weekly-9dfd2a8d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-bc58e4c0.js → HEIGHT_GIRLS.percentile.yearly-63582626.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-57da76e4.js → HEIGHT_GIRLS.zscore.monthly-6f4dc606.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-6e4f6736.js → HEIGHT_GIRLS.zscore.weekly-7520fe31.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-9d499bd2.js → HEIGHT_GIRLS.zscore.yearly-7923f033.js} +0 -0
- /package/build/{Locale-e5adc6cc.js → Locale-d3abde01.js} +0 -0
- /package/build/{Visible-eedf6718.js → Visible-fdf7693d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-c8400fd0.js → WEIGHT_BOYS.percentile.monthly-5324d774.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-3ad54ef5.js → WEIGHT_BOYS.percentile.weekly-f52a93fc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-d83cd51b.js → WEIGHT_BOYS.percentile.yearly-183b7a3f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-0e3c402f.js → WEIGHT_BOYS.zscore.monthly-8f441a6f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-8fe80755.js → WEIGHT_BOYS.zscore.weekly-a21ed9dc.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-be4a82b5.js → WEIGHT_BOYS.zscore.yearly-fc60357b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-06781312.js → WEIGHT_GIRLS.percentile.monthly-e0f8efe1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-52f19560.js → WEIGHT_GIRLS.percentile.weekly-7bffc9a7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-c1e717b1.js → WEIGHT_GIRLS.percentile.yearly-8c2477c1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-d515facb.js → WEIGHT_GIRLS.zscore.monthly-de4c49f9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-615508b5.js → WEIGHT_GIRLS.zscore.weekly-f409d760.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-cedb4820.js → WEIGHT_GIRLS.zscore.yearly-0f99ea17.js} +0 -0
- /package/build/{animation-46f8f4a7.js → animation-1f0e1592.js} +0 -0
- /package/build/{constants-223e0935.js → constants-23b5a733.js} +0 -0
- /package/build/{constants-2bcf1ac0.js → constants-70c284c8.js} +0 -0
- /package/build/{constants-a5e2f723.js → constants-ffe4f5e5.js} +0 -0
- /package/build/{dataTransform-1740d619.js → dataTransform-b3e2f783.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-b4a6f31b.js → BMI_BOYS.percentile.monthly-e4634f9e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-946545dc.js → BMI_BOYS.percentile.weekly-59c59e40.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-a215fdc9.js → BMI_BOYS.percentile.yearly-ea4171af.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-dda94cbd.js → BMI_BOYS.zscore.monthly-ccdbb860.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-ef1d3b36.js → BMI_BOYS.zscore.weekly-7460a1a9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-eddb4421.js → BMI_BOYS.zscore.yearly-634dbfe0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-e3aa3d05.js → BMI_GIRLS.percentile.monthly-719fc41e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-c8b01654.js → BMI_GIRLS.percentile.weekly-585ce60c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-a9decd0f.js → BMI_GIRLS.percentile.yearly-baeef424.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-6910826c.js → BMI_GIRLS.zscore.monthly-ce620a32.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-d133b8bf.js → BMI_GIRLS.zscore.weekly-64dfafe2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e95f7d14.js → BMI_GIRLS.zscore.yearly-d7d6ecec.js} +0 -0
- /package/build/esm/{ChevronDown-b3f50955.js → ChevronDown-02ac0d48.js} +0 -0
- /package/build/esm/{Close-21630c6e.js → Close-6964f421.js} +0 -0
- /package/build/esm/{Google-8e12b67f.js → Google-373c02e1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a3a6703d.js → HEAD CIRCUM_BOYS.percentile.monthly-2f5a9858.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-80127b97.js → HEAD CIRCUM_BOYS.percentile.weekly-89181eee.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-601a49d0.js → HEAD CIRCUM_BOYS.percentile.yearly-cb6ba025.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-1723ad56.js → HEAD CIRCUM_BOYS.zscore.monthly-e304b697.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-d2916f72.js → HEAD CIRCUM_BOYS.zscore.weekly-dc474b15.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-95a4bd05.js → HEAD CIRCUM_BOYS.zscore.yearly-198dfe81.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-42cd26cf.js → HEAD CIRCUM_GIRLS.percentile.monthly-eeda0b30.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4552af4f.js → HEAD CIRCUM_GIRLS.percentile.weekly-06aacf99.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-338d8046.js → HEAD CIRCUM_GIRLS.percentile.yearly-5f5269aa.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-4d299658.js → HEAD CIRCUM_GIRLS.zscore.monthly-f32b7c70.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-8e88ecce.js → HEAD CIRCUM_GIRLS.zscore.weekly-d9d093b6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-09c4aa72.js → HEAD CIRCUM_GIRLS.zscore.yearly-71014787.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-58b040cc.js → HEIGHT_BOYS.percentile.monthly-eb29e1d5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-88857deb.js → HEIGHT_BOYS.percentile.weekly-8f147129.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-dc507f71.js → HEIGHT_BOYS.percentile.yearly-f1569bb6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-7a87e440.js → HEIGHT_BOYS.zscore.monthly-7bf95a9d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-61774ceb.js → HEIGHT_BOYS.zscore.weekly-d571e01c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-8e0efb75.js → HEIGHT_BOYS.zscore.yearly-9efbacd6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-372e6894.js → HEIGHT_GIRLS.percentile.monthly-314c14cf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-d2157cf2.js → HEIGHT_GIRLS.percentile.weekly-ffe30427.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-522e7840.js → HEIGHT_GIRLS.percentile.yearly-5b5fb544.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c621094f.js → HEIGHT_GIRLS.zscore.monthly-1de7619b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-be6a3cc9.js → HEIGHT_GIRLS.zscore.weekly-17b68156.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-ad461fdd.js → HEIGHT_GIRLS.zscore.yearly-665b4a59.js} +0 -0
- /package/build/esm/{Locale-965fa186.js → Locale-5e840eb9.js} +0 -0
- /package/build/esm/{Visible-2fc7624b.js → Visible-3916a028.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-e0c95211.js → WEIGHT_BOYS.percentile.monthly-8c2afa61.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-fe3ed2fb.js → WEIGHT_BOYS.percentile.weekly-120ba1a3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d8c22773.js → WEIGHT_BOYS.percentile.yearly-ecfc3a52.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-85f8003a.js → WEIGHT_BOYS.zscore.monthly-20f8cd20.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-f55b9bd6.js → WEIGHT_BOYS.zscore.weekly-0b125d66.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-eca21073.js → WEIGHT_BOYS.zscore.yearly-c7c411b4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-8501a562.js → WEIGHT_GIRLS.percentile.monthly-80f1be99.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b0b83269.js → WEIGHT_GIRLS.percentile.weekly-5174ccf5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-72cf9cbf.js → WEIGHT_GIRLS.percentile.yearly-abca6a8b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-a9df94fd.js → WEIGHT_GIRLS.zscore.monthly-33cba92b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-3704aed1.js → WEIGHT_GIRLS.zscore.weekly-dc3a13e8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d83305bf.js → WEIGHT_GIRLS.zscore.yearly-edd21e28.js} +0 -0
- /package/build/esm/{animation-5174b01c.js → animation-abff79e1.js} +0 -0
- /package/build/esm/{constants-28468b7b.js → constants-1fda8c88.js} +0 -0
- /package/build/esm/{constants-cb2bfb9f.js → constants-378b36a6.js} +0 -0
- /package/build/esm/{constants-5d223d24.js → constants-9ad73a0e.js} +0 -0
- /package/build/esm/{dataTransform-c5dc5d98.js → dataTransform-2068d763.js} +0 -0
- /package/build/esm/{index-eeb70947.js → index-10628007.js} +0 -0
- /package/build/esm/{index-d7f673c6.js → index-391c3659.js} +0 -0
- /package/build/esm/{index-e391a240.js → index-83ac62d5.js} +0 -0
- /package/build/esm/{index-417ea696.js → index-b5f1922a.js} +0 -0
- /package/build/esm/{index-40f2480d.js → index-b8d0efc2.js} +0 -0
- /package/build/esm/{index-bd2e8c86.js → index-c37a9827.js} +0 -0
- /package/build/esm/{index-22ccfcea.js → index-d8c1b6a5.js} +0 -0
- /package/build/esm/{index-443ad3d2.js → index-e6142002.js} +0 -0
- /package/build/esm/{index.styles-1b4356be.js → index.styles-7fd25fc3.js} +0 -0
- /package/build/esm/{normalizeLink-ab71a2fd.js → normalizeLink-ee918625.js} +0 -0
- /package/build/esm/{number-430ec721.js → number-fc88fb8e.js} +0 -0
- /package/build/esm/{paths-926d4e91.js → paths-41bee9c1.js} +0 -0
- /package/build/esm/{shared-c5d890ab.js → shared-306f242d.js} +0 -0
- /package/build/esm/{translationsContext-cca25e5e.js → translationsContext-f3d56104.js} +0 -0
- /package/build/esm/{tslib.es6-af0ab658.js → tslib.es6-54c227c4.js} +0 -0
- /package/build/esm/{types-8855eae2.js → types-345f6209.js} +0 -0
- /package/build/esm/{useIsInit-917a0ee5.js → useIsInit-213fcf64.js} +0 -0
- /package/build/esm/{useOutsideClick-4cd41035.js → useOutsideClick-6bd57e5a.js} +0 -0
- /package/build/esm/{useScrollbarSize-e73fef16.js → useScrollbarSize-d12c4591.js} +0 -0
- /package/build/esm/{useUniqueId-d828c537.js → useUniqueId-b76ebd23.js} +0 -0
- /package/build/{index-ddba1b15.js → index-055a2688.js} +0 -0
- /package/build/{index-db268a43.js → index-155f6fb9.js} +0 -0
- /package/build/{index-f0f1f02f.js → index-217dd573.js} +0 -0
- /package/build/{index-9a54a91e.js → index-51171e07.js} +0 -0
- /package/build/{index-e0c3f0b0.js → index-518cf14d.js} +0 -0
- /package/build/{index-3b1d7cf8.js → index-9c89f9a0.js} +0 -0
- /package/build/{index-cd69b395.js → index-ae8b0703.js} +0 -0
- /package/build/{index-3feb56a5.js → index-d7bba9c7.js} +0 -0
- /package/build/{index.styles-02fd1572.js → index.styles-8b58b9b8.js} +0 -0
- /package/build/{normalizeLink-b1fc9b22.js → normalizeLink-488fae85.js} +0 -0
- /package/build/{number-3c91fcfc.js → number-6fcece0f.js} +0 -0
- /package/build/{paths-0a487f72.js → paths-4f80abd6.js} +0 -0
- /package/build/{shared-75532602.js → shared-0a66d8a1.js} +0 -0
- /package/build/{translationsContext-071de1b3.js → translationsContext-e635f33c.js} +0 -0
- /package/build/{tslib.es6-e4fc76e6.js → tslib.es6-4ff8cc87.js} +0 -0
- /package/build/{types-8d45378e.js → types-a5129529.js} +0 -0
- /package/build/{useIsInit-886da50c.js → useIsInit-8547d45c.js} +0 -0
- /package/build/{useOutsideClick-eda56ab5.js → useOutsideClick-31b00072.js} +0 -0
- /package/build/{useScrollbarSize-93d754b8.js → useScrollbarSize-69c9c1ea.js} +0 -0
- /package/build/{useUniqueId-a5187284.js → useUniqueId-fa53a5d7.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-54c227c4.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback, forwardRef, useImperativeHandle, memo, useLayoutEffect } from 'react';
|
|
3
|
-
import { createStyles, Box, Button as Button$1, Input as Input$1,
|
|
3
|
+
import { createStyles, Box, useMantineTheme, Button as Button$1, Autocomplete, clsx, Input as Input$1, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, Flex, TextInput, NumberInput as NumberInput$1, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import debounce from 'lodash/debounce';
|
|
5
5
|
import { createFormContext, useForm } from '@mantine/form';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-9f2df5e3.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-564e9a8d.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-f3d56104.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-ce6dad59.js';
|
|
12
|
+
import { T as Text } from './index-e24c7f31.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-9485507e.js';
|
|
14
|
+
import { D as DatePicker } from './index-5469d13f.js';
|
|
15
|
+
import { B as Button } from './index-2d6a701d.js';
|
|
16
|
+
import './index.styles-7fd25fc3.js';
|
|
17
17
|
import { useIntersection, useClickOutside } from '@mantine/hooks';
|
|
18
|
-
import './index-
|
|
19
|
-
import { C as CustomStylesType } from './text-
|
|
20
|
-
import './index-
|
|
21
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
18
|
+
import './index-e2c81cdc.js';
|
|
19
|
+
import { G as GlobalTextStyleNew, C as CustomStylesType } from './text-9556acd7.js';
|
|
20
|
+
import './index-cdc909e2.js';
|
|
21
|
+
import { M as MAPPED_LOCALE } from './utils-1c5f9f28.js';
|
|
22
22
|
import { DateInput } from '@mantine/dates';
|
|
23
|
-
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
24
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
25
|
-
import './index-
|
|
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-
|
|
23
|
+
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-78fe08df.js';
|
|
24
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-95a9f864.js';
|
|
25
|
+
import './index-b8d0efc2.js';
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-97751620.js';
|
|
27
|
+
import { H as Heading$1 } from './index-0bad6b36.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-29762575.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-5e840eb9.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
32
32
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
33
33
|
import styled from '@emotion/styled';
|
|
34
34
|
import { theme } from './miscTheme.js';
|
|
35
35
|
import { css } from '@emotion/react';
|
|
36
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
37
|
-
import { M as MantineProvider } from './index-
|
|
38
|
-
import { i as isVideo } from './index-
|
|
39
|
-
import { u as useScreenSize } from './index-
|
|
36
|
+
import { T as TogetherComponentGlobalContext } from './utils-21099ca6.js';
|
|
37
|
+
import { M as MantineProvider } from './index-6a3d20c1.js';
|
|
38
|
+
import { i as isVideo } from './index-10628007.js';
|
|
39
|
+
import { u as useScreenSize } from './index-f27e8f3a.js';
|
|
40
40
|
import { motion } from 'framer-motion';
|
|
41
41
|
import { createPortal } from 'react-dom';
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
42
|
+
import { ChevronDown } from '@hhgtech/icons/arrow';
|
|
43
|
+
import { MapPin } from '@hhgtech/icons/core';
|
|
44
|
+
import { I as InputDate } from './InputDate-fec94e39.js';
|
|
45
|
+
import { D as DrawerComponent } from './index-7d04c0c0.js';
|
|
46
|
+
import { C as Close } from './Close-6964f421.js';
|
|
45
47
|
import './constantsIsProduction.js';
|
|
46
|
-
import './normalizeLink-
|
|
48
|
+
import './normalizeLink-ee918625.js';
|
|
47
49
|
import '@hhgtech/icons/other';
|
|
48
50
|
import '@mantine/carousel';
|
|
49
51
|
import 'classnames';
|
|
50
|
-
import './useUniqueId-
|
|
52
|
+
import './useUniqueId-b76ebd23.js';
|
|
51
53
|
import './constantsSite.js';
|
|
52
|
-
import '
|
|
53
|
-
import './shared-c5d890ab.js';
|
|
54
|
+
import './shared-306f242d.js';
|
|
54
55
|
import '@mantine/notifications';
|
|
55
56
|
import 'date-fns/locale';
|
|
56
57
|
import './constantsRiskScreener.js';
|
|
@@ -66,11 +67,11 @@ import './i18n-values/vi-VN.js';
|
|
|
66
67
|
import './i18n-values/vi-VN_MB.js';
|
|
67
68
|
import './i18n-values/zh-SG.js';
|
|
68
69
|
import './i18n-values/zh-TW.js';
|
|
69
|
-
import './index-
|
|
70
|
+
import './index-b5f1922a.js';
|
|
70
71
|
import 'slugify';
|
|
71
72
|
import 'string-format';
|
|
72
73
|
import './togetherApiPaths.js';
|
|
73
|
-
import './constants-
|
|
74
|
+
import './constants-378b36a6.js';
|
|
74
75
|
import 'vaul';
|
|
75
76
|
|
|
76
77
|
const LeadGenComponentContext = createContext({});
|
|
@@ -2548,10 +2549,11 @@ const LeadGenThankYou = ({ image, title, description, showButton = false, button
|
|
|
2548
2549
|
const { htmlText: titleText, align: titleAlign } = title;
|
|
2549
2550
|
const { htmlText: descriptionText, align: descriptionAlign } = description;
|
|
2550
2551
|
const { htmlText: buttonText, newtab, url, onClick } = button;
|
|
2552
|
+
const theme = useMantineTheme();
|
|
2551
2553
|
return (React__default.createElement(StyledLeadGenThankYou, { className: className, style: style },
|
|
2552
2554
|
React__default.createElement("img", { src: src, alt: "", className: "leadgen-thankyou_image leadgen-image" }),
|
|
2553
|
-
React__default.createElement(
|
|
2554
|
-
React__default.createElement(
|
|
2555
|
+
React__default.createElement(Text, { size: "h4", weight: "bold", "data-align": titleAlign, variant: "primary" }, titleText),
|
|
2556
|
+
React__default.createElement(Text, { size: "p2", "data-align": descriptionAlign, color: theme.colors.gray[6] }, descriptionText),
|
|
2555
2557
|
!!buttonText && showButton && (React__default.createElement(Button$1, { component: url ? 'a' : 'button', target: newtab ? '_blank' : undefined, href: url, size: "lg", variant: "filled", className: "leadgen-thankyoue_btn leadgen-btn", onClick: onClick }, buttonText))));
|
|
2556
2558
|
};
|
|
2557
2559
|
|
|
@@ -2586,17 +2588,11 @@ const StyledLeadGenSubscriptionBoxHeader = styled.div `
|
|
|
2586
2588
|
flex: 1;
|
|
2587
2589
|
min-width: 0;
|
|
2588
2590
|
color: ${theme.colors.gray600};
|
|
2589
|
-
font-size: 17px;
|
|
2590
|
-
font-weight: 400;
|
|
2591
|
-
line-height: 24px;
|
|
2592
|
-
letter-spacing: -0.4px;
|
|
2593
2591
|
b {
|
|
2594
2592
|
color: #111111;
|
|
2595
2593
|
font-weight: 700;
|
|
2596
2594
|
}
|
|
2597
2595
|
${MediaQueries.mbUp} {
|
|
2598
|
-
font-size: 20px;
|
|
2599
|
-
line-height: 28px;
|
|
2600
2596
|
b {
|
|
2601
2597
|
font-weight: 500;
|
|
2602
2598
|
}
|
|
@@ -2675,13 +2671,12 @@ const StyledLeadGenSubscriptionBox = styled.div `
|
|
|
2675
2671
|
`;
|
|
2676
2672
|
const StyledLeadGenSubscriptionBoxA = styled.div `
|
|
2677
2673
|
.leadgen-form_input {
|
|
2678
|
-
--phone-select:
|
|
2674
|
+
--phone-select: 65px;
|
|
2679
2675
|
.PhoneInput {
|
|
2680
|
-
--phone-select:
|
|
2676
|
+
--phone-select: 65px;
|
|
2681
2677
|
.PhoneInputCountry {
|
|
2682
2678
|
margin-top: 1px;
|
|
2683
2679
|
pointer-events: none;
|
|
2684
|
-
.PhoneInputCountryIconImg,
|
|
2685
2680
|
.PhoneInputArrowContainer {
|
|
2686
2681
|
display: none;
|
|
2687
2682
|
}
|
|
@@ -2690,14 +2685,22 @@ const StyledLeadGenSubscriptionBoxA = styled.div `
|
|
|
2690
2685
|
}
|
|
2691
2686
|
`;
|
|
2692
2687
|
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
const id = idProps || v1() + name;
|
|
2696
|
-
return (React__default.createElement(Input$1.Wrapper, { size: "md", label: label, labelElement: labelElement, labelProps: Object.assign({ htmlFor: id }, labelProps), description: description, descriptionProps: descriptionProps, withAsterisk: withAsterisk, inputMode: inputMode, inputContainer: inputContainer, inputWrapperOrder: inputWrapperOrder, error: error, "data-invalid": !!error, className: className, classNames: classNames, style: style, styles: styles },
|
|
2697
|
-
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
2698
|
-
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" })))));
|
|
2688
|
+
var useTextStyles = createStyles((theme) => {
|
|
2689
|
+
return GlobalTextStyleNew(theme)[CustomStylesType.LEADGEN];
|
|
2699
2690
|
});
|
|
2700
2691
|
|
|
2692
|
+
const ErrorIcon = (_a) => {
|
|
2693
|
+
var { size } = _a, rest = __rest(_a, ["size"]);
|
|
2694
|
+
const props = Object.assign({ width: size, height: size }, rest);
|
|
2695
|
+
return (React__default.createElement("svg", Object.assign({ width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
2696
|
+
React__default.createElement("path", { d: "M5.996 6.513q.163 0 .282-.12a.38.38 0 0 0 .118-.28V3.937q0-.15-.118-.268a.4.4 0 0 0-.282-.119.4.4 0 0 0-.281.12.38.38 0 0 0-.119.28v2.175q0 .15.119.269.12.119.281.119m0 1.862a.43.43 0 0 0 .3-.112.4.4 0 0 0 .125-.313.4.4 0 0 0-.125-.3.4.4 0 0 0-.3-.125.4.4 0 0 0-.3.125.4.4 0 0 0-.125.3.4.4 0 0 0 .125.313.43.43 0 0 0 .3.112m0 2.375a4.6 4.6 0 0 1-1.856-.375 4.8 4.8 0 0 1-1.506-1.012A4.8 4.8 0 0 1 1.62 7.857 4.6 4.6 0 0 1 1.246 6q0-.987.375-1.856t1.013-1.506A4.8 4.8 0 0 1 4.14 1.625a4.6 4.6 0 0 1 1.856-.375q.988 0 1.857.375Q8.72 2 9.359 2.638q.637.637 1.012 1.506T10.747 6t-.375 1.857A4.8 4.8 0 0 1 9.36 9.363a4.8 4.8 0 0 1-1.506 1.012q-.87.375-1.857.375", fill: "#F44D2C" })));
|
|
2697
|
+
};
|
|
2698
|
+
ErrorIcon.defaultProps = {
|
|
2699
|
+
size: 18,
|
|
2700
|
+
color: theme.colors.gray600,
|
|
2701
|
+
activeColor: theme.colors.primaryBase,
|
|
2702
|
+
};
|
|
2703
|
+
|
|
2701
2704
|
const NoData = ({ className, style }) => {
|
|
2702
2705
|
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 },
|
|
2703
2706
|
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" }),
|
|
@@ -2780,13 +2783,12 @@ const StyledLeadGenFormInner = styled.div `
|
|
|
2780
2783
|
}
|
|
2781
2784
|
`;
|
|
2782
2785
|
|
|
2783
|
-
const
|
|
2786
|
+
const TextFieldContext = createContext({});
|
|
2787
|
+
|
|
2788
|
+
const cssInputNotShrink = css `
|
|
2784
2789
|
height: 100% !important;
|
|
2785
2790
|
min-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
2786
|
-
color: ${theme.colors.gray800};
|
|
2787
|
-
font-size: var(--input, 15px);
|
|
2788
2791
|
line-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
2789
|
-
letter-spacing: -0.3px;
|
|
2790
2792
|
border: none !important;
|
|
2791
2793
|
border-radius: 0 !important;
|
|
2792
2794
|
outline: none !important;
|
|
@@ -2799,34 +2801,28 @@ const cssInputNotShrink$1 = css `
|
|
|
2799
2801
|
color: ${theme.colors.gray400};
|
|
2800
2802
|
}
|
|
2801
2803
|
`;
|
|
2802
|
-
const cssInputShrink
|
|
2804
|
+
const cssInputShrink = css `
|
|
2803
2805
|
height: auto !important;
|
|
2804
2806
|
cursor: text;
|
|
2805
2807
|
opacity: 1;
|
|
2806
2808
|
transition: 0.1s ease-in-out all;
|
|
2807
2809
|
`;
|
|
2808
|
-
const cssLabelNotShrink
|
|
2810
|
+
const cssLabelNotShrink = css `
|
|
2809
2811
|
position: absolute;
|
|
2810
2812
|
top: calc(var(--container-height) / 2);
|
|
2811
2813
|
left: var(--space-x, 16px);
|
|
2812
|
-
color: ${theme.colors.gray400};
|
|
2813
|
-
font-size: var(--label-not-shrink, 15px);
|
|
2814
|
-
font-weight: 400;
|
|
2815
|
-
line-height: calc(var(--container-height, 56px) * 18 / 56);
|
|
2816
2814
|
margin: 0;
|
|
2817
2815
|
z-index: 1;
|
|
2818
2816
|
cursor: pointer;
|
|
2819
2817
|
transform: translateY(-50%);
|
|
2820
2818
|
transition: 0.125s ease-in all;
|
|
2821
2819
|
`;
|
|
2822
|
-
const cssLabelShrink
|
|
2823
|
-
|
|
2824
|
-
font-size: var(--label-shrink, 12px);
|
|
2825
|
-
top: calc(var(--container-height) * 7 / 56);
|
|
2820
|
+
const cssLabelShrink = css `
|
|
2821
|
+
top: var(--space-y-shrink, 6px);
|
|
2826
2822
|
transform: none;
|
|
2827
2823
|
transition: 0.125s ease-out all;
|
|
2828
2824
|
`;
|
|
2829
|
-
const cssWrapperInputNotShrink
|
|
2825
|
+
const cssWrapperInputNotShrink = css `
|
|
2830
2826
|
min-height: var(--container-height, 56px);
|
|
2831
2827
|
display: flex;
|
|
2832
2828
|
align-items: flex-end;
|
|
@@ -2850,22 +2846,22 @@ const cssWrapperInputNotShrink$1 = css `
|
|
|
2850
2846
|
border-color: ${theme.colors.gray200};
|
|
2851
2847
|
}
|
|
2852
2848
|
`;
|
|
2853
|
-
const cssWrapperInputShrink
|
|
2849
|
+
const cssWrapperInputShrink = css `
|
|
2854
2850
|
height: auto;
|
|
2855
2851
|
min-height: var(--container-height, 56px);
|
|
2856
|
-
padding-block: var(--space-y-shrink,
|
|
2852
|
+
padding-block: var(--space-y-shrink, 6px);
|
|
2857
2853
|
cursor: text;
|
|
2858
2854
|
pointer-events: auto;
|
|
2859
2855
|
`;
|
|
2860
|
-
const cssInputWrapperError
|
|
2856
|
+
const cssInputWrapperError = css `
|
|
2861
2857
|
color: ${theme.colors.red800};
|
|
2862
2858
|
font-size: 12px;
|
|
2863
2859
|
line-height: 1.5;
|
|
2864
2860
|
`;
|
|
2865
|
-
const StyledTextFieldContainer
|
|
2861
|
+
const StyledTextFieldContainer = styled.div `
|
|
2866
2862
|
--space-x: 16px;
|
|
2867
2863
|
--space-y-not-shrink: 15px;
|
|
2868
|
-
--space-y-shrink:
|
|
2864
|
+
--space-y-shrink: 6px;
|
|
2869
2865
|
--container-height: 56px;
|
|
2870
2866
|
--label-not-shrink: 16px;
|
|
2871
2867
|
--label-shrink: 12px;
|
|
@@ -2897,11 +2893,11 @@ const StyledTextFieldContainer$1 = styled.div `
|
|
|
2897
2893
|
}
|
|
2898
2894
|
|
|
2899
2895
|
.mantine-InputWrapper-label {
|
|
2900
|
-
${cssLabelNotShrink
|
|
2896
|
+
${cssLabelNotShrink}
|
|
2901
2897
|
}
|
|
2902
2898
|
|
|
2903
2899
|
.mantine-Input-wrapper {
|
|
2904
|
-
${cssWrapperInputNotShrink
|
|
2900
|
+
${cssWrapperInputNotShrink}
|
|
2905
2901
|
|
|
2906
2902
|
+ .mantine-Popover-dropdown[data-position="bottom-start"] {
|
|
2907
2903
|
left: 0 !important;
|
|
@@ -2914,17 +2910,16 @@ const StyledTextFieldContainer$1 = styled.div `
|
|
|
2914
2910
|
}
|
|
2915
2911
|
|
|
2916
2912
|
.mantine-Input-input {
|
|
2917
|
-
${cssInputNotShrink
|
|
2913
|
+
${cssInputNotShrink}
|
|
2918
2914
|
}
|
|
2919
2915
|
|
|
2920
|
-
&.textField_shrink
|
|
2921
|
-
&:focus-within {
|
|
2916
|
+
&.textField_shrink {
|
|
2922
2917
|
.mantine-InputWrapper-label {
|
|
2923
|
-
${cssLabelShrink
|
|
2918
|
+
${cssLabelShrink}
|
|
2924
2919
|
}
|
|
2925
2920
|
|
|
2926
2921
|
.mantine-Input-wrapper {
|
|
2927
|
-
${cssWrapperInputShrink
|
|
2922
|
+
${cssWrapperInputShrink}
|
|
2928
2923
|
&.mantine-Select-wrapper {
|
|
2929
2924
|
.mantine-Select-rightSection {
|
|
2930
2925
|
pointer-events: auto !important;
|
|
@@ -2933,7 +2928,7 @@ const StyledTextFieldContainer$1 = styled.div `
|
|
|
2933
2928
|
}
|
|
2934
2929
|
|
|
2935
2930
|
.mantine-Input-input {
|
|
2936
|
-
${cssInputShrink
|
|
2931
|
+
${cssInputShrink}
|
|
2937
2932
|
}
|
|
2938
2933
|
|
|
2939
2934
|
&:has(.PhoneInput) {
|
|
@@ -2975,6 +2970,7 @@ const StyledTextFieldContainer$1 = styled.div `
|
|
|
2975
2970
|
outline: none !important;
|
|
2976
2971
|
border: none;
|
|
2977
2972
|
box-shadow: none;
|
|
2973
|
+
font-size: var(--input, 15px);
|
|
2978
2974
|
padding: 0 var(--phone-input-space-x, 8px);
|
|
2979
2975
|
opacity: 0;
|
|
2980
2976
|
color: ${theme.colors.gray800} !important;
|
|
@@ -2992,8 +2988,20 @@ const StyledTextFieldContainer$1 = styled.div `
|
|
|
2992
2988
|
);
|
|
2993
2989
|
}
|
|
2994
2990
|
}
|
|
2991
|
+
|
|
2992
|
+
.icon {
|
|
2993
|
+
position: absolute;
|
|
2994
|
+
top: calc(var(--container-height) / 2);
|
|
2995
|
+
right: var(--space-x, 16px);
|
|
2996
|
+
transform: translateY(-50%);
|
|
2997
|
+
transition: 0.125s ease-in all;
|
|
2998
|
+
&.shrink {
|
|
2999
|
+
top: calc(var(--container-height) / 2 - 4px);
|
|
3000
|
+
transform: translateY(0);
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
2995
3003
|
`;
|
|
2996
|
-
const StyledChoiceFieldContainer
|
|
3004
|
+
const StyledChoiceFieldContainer = styled.div `
|
|
2997
3005
|
&.leadgen-form_checkbox,
|
|
2998
3006
|
&.leadgen-form_radio {
|
|
2999
3007
|
width: 100%;
|
|
@@ -3056,12 +3064,32 @@ const StyledChoiceFieldContainer$1 = styled.div `
|
|
|
3056
3064
|
}
|
|
3057
3065
|
|
|
3058
3066
|
.mantine-InputWrapper-error {
|
|
3059
|
-
${cssInputWrapperError
|
|
3067
|
+
${cssInputWrapperError}
|
|
3060
3068
|
}
|
|
3069
|
+
`;
|
|
3070
|
+
styled.div `
|
|
3071
|
+
position: absolute;
|
|
3072
|
+
top: calc(var(--container-height) / 2);
|
|
3073
|
+
right: var(--space-x, 16px);
|
|
3061
3074
|
`;
|
|
3062
3075
|
|
|
3063
|
-
const TextField
|
|
3064
|
-
const { shrink: shrinkProps, onChangeShrink,
|
|
3076
|
+
const TextField = (props) => {
|
|
3077
|
+
const { shrink: shrinkProps, onChangeShrink, children, className } = props, restProps = __rest(props, ["shrink", "onChangeShrink", "children", "className"]);
|
|
3078
|
+
const [shrink, setShrink] = useState(shrinkProps);
|
|
3079
|
+
useEffect(() => {
|
|
3080
|
+
setShrink(shrinkProps);
|
|
3081
|
+
}, [shrinkProps]);
|
|
3082
|
+
return (React__default.createElement(TextFieldContext.Provider, Object.assign({ value: {
|
|
3083
|
+
shrinkProps,
|
|
3084
|
+
shrink,
|
|
3085
|
+
setShrink,
|
|
3086
|
+
onChangeShrink,
|
|
3087
|
+
} }, restProps),
|
|
3088
|
+
React__default.createElement(StyledTextFieldContainer, Object.assign({ shrink: shrink, className: clsx(className, 'textField', { textField_shrink: !!shrink }) }, restProps), children)));
|
|
3089
|
+
};
|
|
3090
|
+
const TextFieldControl = (props) => {
|
|
3091
|
+
const { shrink, shrinkProps, onChangeShrink, setShrink } = useContext(TextFieldContext);
|
|
3092
|
+
const { children } = props;
|
|
3065
3093
|
const containerRef = useClickOutside(() => {
|
|
3066
3094
|
if (shrinkProps) {
|
|
3067
3095
|
return;
|
|
@@ -3069,7 +3097,12 @@ const TextField$1 = (props) => {
|
|
|
3069
3097
|
setShrink(false);
|
|
3070
3098
|
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
3071
3099
|
});
|
|
3072
|
-
const
|
|
3100
|
+
// const inputInside = useMemo(() => {
|
|
3101
|
+
// containerRef.current.querySelectorAll(
|
|
3102
|
+
// 'input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])',
|
|
3103
|
+
// )
|
|
3104
|
+
// }, [containerRef.current])
|
|
3105
|
+
// console.log({ containerRef })
|
|
3073
3106
|
const focusInput = (target) => {
|
|
3074
3107
|
const $textEl = target.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
3075
3108
|
const $focusEl = $textEl.item($textEl.length - 1);
|
|
@@ -3090,18 +3123,25 @@ const TextField$1 = (props) => {
|
|
|
3090
3123
|
useEffect(() => {
|
|
3091
3124
|
setShrink(shrinkProps);
|
|
3092
3125
|
}, [shrinkProps]);
|
|
3093
|
-
return (React__default.createElement(
|
|
3094
|
-
|
|
3126
|
+
return (React__default.createElement("div", { ref: containerRef, onClick: onClick, className: "textField_wrapper" }, typeof children === 'function' ? children(!!shrink) : children));
|
|
3127
|
+
};
|
|
3128
|
+
const TextFieldIcon = ({ Icon }) => {
|
|
3129
|
+
const { shrink } = useContext(TextFieldContext);
|
|
3130
|
+
const theme = useMantineTheme();
|
|
3131
|
+
return Icon ? (React__default.createElement(Icon, { className: `icon ${!!shrink ? 'shrink' : ''}`, shrink: shrink, size: 24, color: theme.colors.gray[9] })) : null;
|
|
3095
3132
|
};
|
|
3096
|
-
|
|
3133
|
+
TextField.Control = TextFieldControl;
|
|
3134
|
+
TextField.Icon = TextFieldIcon;
|
|
3135
|
+
const ChoiceField = (props) => {
|
|
3097
3136
|
const { children, className } = props, restProps = __rest(props, ["children", "className"]);
|
|
3098
|
-
return (React__default.createElement(StyledChoiceFieldContainer
|
|
3137
|
+
return (React__default.createElement(StyledChoiceFieldContainer, Object.assign({ className: clsx(className, 'choiceField') }, restProps), children));
|
|
3099
3138
|
};
|
|
3100
3139
|
|
|
3101
3140
|
const LeadGenForm = forwardRef((props, ref) => {
|
|
3102
3141
|
const { locale, blocks, scrollToErrorField = true, form: formProps, rules: validate, initialValues, onFinish, onFinishFailed, className, style, } = props;
|
|
3103
3142
|
const formRef = useRef(null);
|
|
3104
3143
|
const form = formProps || useForm({ initialValues, validate });
|
|
3144
|
+
const { classes } = useTextStyles();
|
|
3105
3145
|
const middlewareFinish = useCallback((values, event) => {
|
|
3106
3146
|
/** Set `touched` all values for validation when submiting */
|
|
3107
3147
|
form.setTouched(blocks.reduce((touched, { data }) => {
|
|
@@ -3157,34 +3197,55 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
3157
3197
|
const reactKey = `${id}-${idx}`;
|
|
3158
3198
|
switch (blockName) {
|
|
3159
3199
|
case LEADGEN_BLOCK.TextBlock: {
|
|
3160
|
-
return (React__default.createElement(TextField
|
|
3161
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "text", "data-control": "text" }, formInputProps
|
|
3200
|
+
return (React__default.createElement(TextField, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
3201
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "text", "data-control": "text" }, formInputProps, { error: error && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
3202
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
3203
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, error))) }))))));
|
|
3162
3204
|
}
|
|
3163
3205
|
case LEADGEN_BLOCK.NumberBlock: {
|
|
3164
|
-
return (React__default.createElement(TextField
|
|
3165
|
-
React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "number", "data-control": "number" }, formInputProps
|
|
3206
|
+
return (React__default.createElement(TextField, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
3207
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "number", "data-control": "number" }, formInputProps, { error: error && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
3208
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
3209
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, error))) }))))));
|
|
3166
3210
|
}
|
|
3167
3211
|
case LEADGEN_BLOCK.EmailBlock: {
|
|
3168
|
-
return (React__default.createElement(TextField
|
|
3169
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, "data-control": "email" }, formInputProps
|
|
3212
|
+
return (React__default.createElement(TextField, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
3213
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, "data-control": "email" }, formInputProps, { error: error && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
3214
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
3215
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, error))) }))))));
|
|
3170
3216
|
}
|
|
3171
3217
|
case LEADGEN_BLOCK.PhoneOtpBlock:
|
|
3172
3218
|
case LEADGEN_BLOCK.WhatsappOtpBlock:
|
|
3173
3219
|
case LEADGEN_BLOCK.ZaloOtpBlock:
|
|
3174
3220
|
case LEADGEN_BLOCK.PhoneBlock: {
|
|
3175
|
-
return (React__default.createElement(TextField
|
|
3176
|
-
|
|
3221
|
+
return (React__default.createElement(TextField, { key: reactKey, shrink: !!value, className: clsx('leadgen-form_input', {
|
|
3222
|
+
'leadgen-form_field_error': !!error,
|
|
3223
|
+
}) },
|
|
3224
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(Input$1.Wrapper, { withAsterisk: required, "data-invalid": !!error, label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), inputWrapperOrder: [
|
|
3225
|
+
'label',
|
|
3226
|
+
'input',
|
|
3227
|
+
'description',
|
|
3228
|
+
'error',
|
|
3229
|
+
], error: error && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
3230
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
3231
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, error))) },
|
|
3232
|
+
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
3233
|
+
React__default.createElement(Phone, Object.assign({ className: `mantine-Input-input ${classes.p2}`, name: name, spellCheck: false, placeholder: " ", defaultCountry: (locale
|
|
3234
|
+
? MAPPED_LOCALE[locale] || 'VN'
|
|
3235
|
+
: 'VN'), type: "text", "data-control": "tel" }, formInputProps))))))));
|
|
3177
3236
|
}
|
|
3178
3237
|
case LEADGEN_BLOCK.LocationBlock: {
|
|
3179
|
-
return (React__default.createElement(TextField
|
|
3180
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, locale: locale, "data-control": "text" }, formInputProps
|
|
3238
|
+
return (React__default.createElement(TextField, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
3239
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, locale: locale, "data-control": "text" }, formInputProps, { error: error && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
3240
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
3241
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, error))) }))));
|
|
3181
3242
|
}
|
|
3182
3243
|
case LEADGEN_BLOCK.DateBlock: {
|
|
3183
|
-
return (React__default.createElement(TextField
|
|
3244
|
+
return (React__default.createElement(TextField, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
3184
3245
|
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: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "default", "data-control": "date" }, formInputProps))));
|
|
3185
3246
|
}
|
|
3186
3247
|
case LEADGEN_BLOCK.DropdownBlock:
|
|
3187
|
-
return (React__default.createElement(TextField
|
|
3248
|
+
return (React__default.createElement(TextField, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
3188
3249
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
3189
3250
|
React__default.createElement(Select$1, Object.assign({ name: name, withAsterisk: required, label: label, placeholder: " ", searchable: true, data: listQuestion.map((l) => ({
|
|
3190
3251
|
value: l.value,
|
|
@@ -3215,7 +3276,7 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
3215
3276
|
const formInputCheckboxProps = form.getInputProps(name, {
|
|
3216
3277
|
type: 'checkbox',
|
|
3217
3278
|
});
|
|
3218
|
-
return (React__default.createElement(ChoiceField
|
|
3279
|
+
return (React__default.createElement(ChoiceField, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
3219
3280
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
3220
3281
|
React__default.createElement(Checkbox$1.Group, Object.assign({ size: "md", withAsterisk: required, label: label, value: value, sx: {
|
|
3221
3282
|
display: 'flex',
|
|
@@ -3227,14 +3288,14 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
3227
3288
|
} }, formInputCheckboxProps), listQuestion.map((l, _idx) => (React__default.createElement(Checkbox$1, { name: name, key: _idx, value: l.value, label: l.placeholder, "data-control": "checkbox" }))))));
|
|
3228
3289
|
}
|
|
3229
3290
|
case LEADGEN_BLOCK.RadioBlock: {
|
|
3230
|
-
return (React__default.createElement(ChoiceField
|
|
3291
|
+
return (React__default.createElement(ChoiceField, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
3231
3292
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
3232
3293
|
React__default.createElement(Radio$1.Group, Object.assign({ size: "md", withAsterisk: required, label: label, value: value, spellCheck: true, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, inputContainer: (children) => {
|
|
3233
3294
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
3234
3295
|
} }, formInputProps), listQuestion.map((l, _index) => (React__default.createElement(Radio$1, { name: name, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
3235
3296
|
}
|
|
3236
3297
|
case LEADGEN_BLOCK.TncBlock:
|
|
3237
|
-
return (React__default.createElement(ChoiceField
|
|
3298
|
+
return (React__default.createElement(ChoiceField, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
3238
3299
|
React__default.createElement(Input$1.Wrapper, { error: error },
|
|
3239
3300
|
React__default.createElement(Checkbox$1, Object.assign({ value: value, name: 'TNC-' + id, label: React__default.createElement("p", { className: "lead-modal__tnc-link", dangerouslySetInnerHTML: { __html: valueHTML } }), className: "tnc-block", "data-control": "checkbox" }, formInputProps)))));
|
|
3240
3301
|
default: {
|
|
@@ -3257,10 +3318,7 @@ const LeadGenSubscriptionBoxA = (props) => {
|
|
|
3257
3318
|
React__default.createElement("img", { src: image, alt: "" })));
|
|
3258
3319
|
}, [image]);
|
|
3259
3320
|
const titleComp = useMemo(() => {
|
|
3260
|
-
|
|
3261
|
-
return (React__default.createElement("p", { className: "leadgen-title", dangerouslySetInnerHTML: { __html: title } }));
|
|
3262
|
-
}
|
|
3263
|
-
return React__default.createElement("p", { className: "leadgen-title" }, title);
|
|
3321
|
+
return (React__default.createElement(Text, { size: "h4", weight: "regular", className: "leadgen-title", dangerouslySetInnerHTML: { __html: title } }));
|
|
3264
3322
|
}, [title]);
|
|
3265
3323
|
return (React__default.createElement(StyledLeadGenSubscriptionBoxA, { className: "subcription_box_A" },
|
|
3266
3324
|
React__default.createElement(StyledLeadGenSubscriptionBoxHeader, { className: "leadgen-subscription_box_header" },
|
|
@@ -4263,332 +4321,11 @@ const EmptyComponent = ({ onClose, onContinue, }) => {
|
|
|
4263
4321
|
|
|
4264
4322
|
const SubtitleBlock = ({ children, align, }) => (React__default.createElement("p", { className: `lead-modal__description ${'le-text-align-' + (align || '')} ${LEAD_CLASS}` }, children));
|
|
4265
4323
|
|
|
4266
|
-
const cssInputNotShrink = css `
|
|
4267
|
-
height: 100% !important;
|
|
4268
|
-
min-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
4269
|
-
color: ${theme.colors.gray800};
|
|
4270
|
-
font-size: var(--input, 15px);
|
|
4271
|
-
line-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
4272
|
-
letter-spacing: -0.3px;
|
|
4273
|
-
border: none !important;
|
|
4274
|
-
border-radius: 0 !important;
|
|
4275
|
-
outline: none !important;
|
|
4276
|
-
box-shadow: none !important;
|
|
4277
|
-
padding: 0;
|
|
4278
|
-
cursor: pointer;
|
|
4279
|
-
opacity: 0;
|
|
4280
|
-
|
|
4281
|
-
::placeholder {
|
|
4282
|
-
color: ${theme.colors.gray400};
|
|
4283
|
-
}
|
|
4284
|
-
`;
|
|
4285
|
-
const cssInputShrink = css `
|
|
4286
|
-
height: auto !important;
|
|
4287
|
-
cursor: text;
|
|
4288
|
-
opacity: 1;
|
|
4289
|
-
transition: 0.1s ease-in-out all;
|
|
4290
|
-
`;
|
|
4291
|
-
const cssLabelNotShrink = css `
|
|
4292
|
-
position: absolute;
|
|
4293
|
-
top: calc(var(--container-height) / 2);
|
|
4294
|
-
left: var(--space-x, 16px);
|
|
4295
|
-
color: ${theme.colors.gray400};
|
|
4296
|
-
font-size: var(--label-not-shrink, 15px);
|
|
4297
|
-
font-weight: 500;
|
|
4298
|
-
line-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
4299
|
-
letter-spacing: -0.3px;
|
|
4300
|
-
margin: 0;
|
|
4301
|
-
z-index: 1;
|
|
4302
|
-
cursor: pointer;
|
|
4303
|
-
transform: translateY(-50%);
|
|
4304
|
-
transition: 0.125s ease-in all;
|
|
4305
|
-
`;
|
|
4306
|
-
const cssLabelShrink = css `
|
|
4307
|
-
color: ${theme.colors.gray400};
|
|
4308
|
-
font-size: var(--label-shrink, 12px);
|
|
4309
|
-
line-height: calc(var(--container-height, 56px) * 18 / 56);
|
|
4310
|
-
letter-spacing: -0.2px;
|
|
4311
|
-
top: calc(var(--container-height) * 7 / 56);
|
|
4312
|
-
transform: none;
|
|
4313
|
-
transition: 0.125s ease-out all;
|
|
4314
|
-
`;
|
|
4315
|
-
const cssWrapperInputNotShrink = css `
|
|
4316
|
-
min-height: var(--container-height, 56px);
|
|
4317
|
-
display: flex;
|
|
4318
|
-
align-items: flex-end;
|
|
4319
|
-
border: 1px solid ${theme.colors.gray200};
|
|
4320
|
-
border-radius: 8px;
|
|
4321
|
-
background-color: #fff;
|
|
4322
|
-
padding-inline: var(--space-x, 16px);
|
|
4323
|
-
padding-block: var(--space-y-not-shrink, 16px);
|
|
4324
|
-
cursor: pointer;
|
|
4325
|
-
pointer-events: none;
|
|
4326
|
-
|
|
4327
|
-
&:has(.mantine-Input-rightSection) {
|
|
4328
|
-
padding-right: var(--container-height, 56px);
|
|
4329
|
-
}
|
|
4330
|
-
|
|
4331
|
-
.mantine-Input-icon {
|
|
4332
|
-
display: none;
|
|
4333
|
-
}
|
|
4334
|
-
|
|
4335
|
-
.mantine-NumberInput-control {
|
|
4336
|
-
border-color: ${theme.colors.gray200};
|
|
4337
|
-
}
|
|
4338
|
-
`;
|
|
4339
|
-
const cssWrapperInputShrink = css `
|
|
4340
|
-
height: auto;
|
|
4341
|
-
min-height: var(--container-height, 56px);
|
|
4342
|
-
padding-block: var(--space-y-shrink, 7px);
|
|
4343
|
-
cursor: text;
|
|
4344
|
-
pointer-events: auto;
|
|
4345
|
-
`;
|
|
4346
|
-
const cssInputWrapperError = css `
|
|
4347
|
-
color: ${theme.colors.red800};
|
|
4348
|
-
font-size: 12px;
|
|
4349
|
-
line-height: 1.5;
|
|
4350
|
-
`;
|
|
4351
|
-
const StyledTextFieldContainer = styled.div `
|
|
4352
|
-
--space-x: 16px;
|
|
4353
|
-
--space-y-not-shrink: 15px;
|
|
4354
|
-
--space-y-shrink: 7px;
|
|
4355
|
-
--container-height: 56px;
|
|
4356
|
-
--label-not-shrink: 16px;
|
|
4357
|
-
--label-shrink: 12px;
|
|
4358
|
-
--input: 15px;
|
|
4359
|
-
|
|
4360
|
-
position: relative;
|
|
4361
|
-
min-width: 100px;
|
|
4362
|
-
max-width: 100%;
|
|
4363
|
-
display: inline-block;
|
|
4364
|
-
|
|
4365
|
-
.textField_wrapper {
|
|
4366
|
-
display: inline-block;
|
|
4367
|
-
width: 100%;
|
|
4368
|
-
cursor: pointer;
|
|
4369
|
-
}
|
|
4370
|
-
|
|
4371
|
-
.mantine-InputWrapper-root {
|
|
4372
|
-
&[data-invalid='true'] {
|
|
4373
|
-
.mantine-Input-wrapper {
|
|
4374
|
-
border-color: ${theme.colors.red400};
|
|
4375
|
-
}
|
|
4376
|
-
}
|
|
4377
|
-
|
|
4378
|
-
.mantine-Input-wrapper {
|
|
4379
|
-
&:has([data-invalid]) {
|
|
4380
|
-
border-color: ${theme.colors.red400};
|
|
4381
|
-
}
|
|
4382
|
-
}
|
|
4383
|
-
}
|
|
4384
|
-
|
|
4385
|
-
.mantine-InputWrapper-label {
|
|
4386
|
-
${cssLabelNotShrink}
|
|
4387
|
-
}
|
|
4388
|
-
|
|
4389
|
-
.mantine-Input-wrapper {
|
|
4390
|
-
${cssWrapperInputNotShrink}
|
|
4391
|
-
|
|
4392
|
-
+ .mantine-Popover-dropdown[data-position="bottom-start"] {
|
|
4393
|
-
left: 0 !important;
|
|
4394
|
-
}
|
|
4395
|
-
+ .mantine-Popover-dropdown[data-position='top-start'] {
|
|
4396
|
-
top: unset !important;
|
|
4397
|
-
left: 0 !important;
|
|
4398
|
-
bottom: 100% !important;
|
|
4399
|
-
}
|
|
4400
|
-
}
|
|
4401
|
-
|
|
4402
|
-
.mantine-Input-input {
|
|
4403
|
-
${cssInputNotShrink}
|
|
4404
|
-
}
|
|
4405
|
-
|
|
4406
|
-
&.textField_shrink,
|
|
4407
|
-
&:focus-within {
|
|
4408
|
-
.mantine-InputWrapper-label {
|
|
4409
|
-
${cssLabelShrink}
|
|
4410
|
-
}
|
|
4411
|
-
|
|
4412
|
-
.mantine-Input-wrapper {
|
|
4413
|
-
${cssWrapperInputShrink}
|
|
4414
|
-
&.mantine-Select-wrapper {
|
|
4415
|
-
.mantine-Select-rightSection {
|
|
4416
|
-
pointer-events: auto !important;
|
|
4417
|
-
}
|
|
4418
|
-
}
|
|
4419
|
-
}
|
|
4420
|
-
|
|
4421
|
-
.mantine-Input-input {
|
|
4422
|
-
${cssInputShrink}
|
|
4423
|
-
}
|
|
4424
|
-
|
|
4425
|
-
&:has(.PhoneInput) {
|
|
4426
|
-
.mantine-InputWrapper-label {
|
|
4427
|
-
left: var(--space-x, 16px);
|
|
4428
|
-
}
|
|
4429
|
-
.PhoneInput {
|
|
4430
|
-
.PhoneInputInput {
|
|
4431
|
-
opacity: 1;
|
|
4432
|
-
}
|
|
4433
|
-
}
|
|
4434
|
-
}
|
|
4435
|
-
}
|
|
4436
|
-
|
|
4437
|
-
&:focus-within {
|
|
4438
|
-
.mantine-Input-wrapper {
|
|
4439
|
-
transition: 0.25s linear border;
|
|
4440
|
-
border-color: ${theme.colors.primary600};
|
|
4441
|
-
box-shadow: 0 0 4px ${theme.colors.primary200};
|
|
4442
|
-
}
|
|
4443
|
-
}
|
|
4444
|
-
|
|
4445
|
-
.PhoneInput {
|
|
4446
|
-
--phone-select: 75px;
|
|
4447
|
-
--phone-input-space-x: 8px;
|
|
4448
|
-
width: 100%;
|
|
4449
|
-
opacity: 1;
|
|
4450
|
-
border: none;
|
|
4451
|
-
.PhoneInputCountry {
|
|
4452
|
-
background-color: transparent;
|
|
4453
|
-
border: none;
|
|
4454
|
-
padding: 0;
|
|
4455
|
-
width: var(--phone-select, 75px);
|
|
4456
|
-
}
|
|
4457
|
-
.PhoneInputInput {
|
|
4458
|
-
flex: 1;
|
|
4459
|
-
min-width: 0;
|
|
4460
|
-
line-height: 1.5;
|
|
4461
|
-
outline: none !important;
|
|
4462
|
-
border: none;
|
|
4463
|
-
box-shadow: none;
|
|
4464
|
-
font-size: var(--input, 15px);
|
|
4465
|
-
padding: 0 var(--phone-input-space-x, 8px);
|
|
4466
|
-
opacity: 0;
|
|
4467
|
-
color: ${theme.colors.gray800} !important;
|
|
4468
|
-
:focus {
|
|
4469
|
-
color: ${theme.colors.gray800} !important;
|
|
4470
|
-
}
|
|
4471
|
-
}
|
|
4472
|
-
}
|
|
4473
|
-
|
|
4474
|
-
&:has(.PhoneInput) {
|
|
4475
|
-
.mantine-InputWrapper-label {
|
|
4476
|
-
left: calc(
|
|
4477
|
-
var(--space-x, 16px) + var(--phone-select, 75px) +
|
|
4478
|
-
var(--phone-input-space-x, 8px)
|
|
4479
|
-
);
|
|
4480
|
-
}
|
|
4481
|
-
}
|
|
4482
|
-
`;
|
|
4483
|
-
const StyledChoiceFieldContainer = styled.div `
|
|
4484
|
-
&.leadgen-form_checkbox,
|
|
4485
|
-
&.leadgen-form_radio {
|
|
4486
|
-
width: 100%;
|
|
4487
|
-
}
|
|
4488
|
-
|
|
4489
|
-
&.leadgen-form_dropdown {
|
|
4490
|
-
width: calc(50% - 12px);
|
|
4491
|
-
}
|
|
4492
|
-
|
|
4493
|
-
.mantine-InputWrapper-root {
|
|
4494
|
-
display: block;
|
|
4495
|
-
}
|
|
4496
|
-
|
|
4497
|
-
.mantine-InputWrapper-label {
|
|
4498
|
-
margin-bottom: 0.5rem;
|
|
4499
|
-
color: ${theme.colors.gray800};
|
|
4500
|
-
font-size: 16px;
|
|
4501
|
-
font-weight: 400;
|
|
4502
|
-
line-height: 1.5;
|
|
4503
|
-
}
|
|
4504
|
-
|
|
4505
|
-
.mantine-Radio-root,
|
|
4506
|
-
.mantine-Checkbox-root {
|
|
4507
|
-
gap: 8px;
|
|
4508
|
-
min-width: calc(50% - 4px);
|
|
4509
|
-
|
|
4510
|
-
// input[type='radio'],
|
|
4511
|
-
// input[type='checkbox'] {
|
|
4512
|
-
// border-color: ${theme.colors.gray600};
|
|
4513
|
-
// width: 18px;
|
|
4514
|
-
// height: 18px;
|
|
4515
|
-
// }
|
|
4516
|
-
// input[type='checkbox'] {
|
|
4517
|
-
// border-radius: 4px;
|
|
4518
|
-
// }
|
|
4519
|
-
|
|
4520
|
-
// &[data-checked='true'] {
|
|
4521
|
-
// input[type='radio'],
|
|
4522
|
-
// input[type='checkbox'] {
|
|
4523
|
-
// border-color: ${theme.colors.primary600};
|
|
4524
|
-
// }
|
|
4525
|
-
|
|
4526
|
-
// input[type='radio'] {
|
|
4527
|
-
// background-color: white;
|
|
4528
|
-
// }
|
|
4529
|
-
// }
|
|
4530
|
-
|
|
4531
|
-
.mantine-Checkbox-input {
|
|
4532
|
-
&:checked {
|
|
4533
|
-
border-color: ${theme.colors.primary600};
|
|
4534
|
-
}
|
|
4535
|
-
}
|
|
4536
|
-
}
|
|
4537
|
-
|
|
4538
|
-
.leadgen-choiceContainer {
|
|
4539
|
-
display: flex;
|
|
4540
|
-
flex-wrap: wrap;
|
|
4541
|
-
align-items: flex-start;
|
|
4542
|
-
gap: 8px;
|
|
4543
|
-
}
|
|
4544
|
-
|
|
4545
|
-
.mantine-InputWrapper-error {
|
|
4546
|
-
${cssInputWrapperError}
|
|
4547
|
-
}
|
|
4548
|
-
`;
|
|
4549
|
-
|
|
4550
|
-
const TextField = (props) => {
|
|
4551
|
-
const { shrink: shrinkProps, onChangeShrink, className, children } = props, restProps = __rest(props, ["shrink", "onChangeShrink", "className", "children"]);
|
|
4552
|
-
const containerRef = useClickOutside(() => {
|
|
4553
|
-
if (shrinkProps) {
|
|
4554
|
-
return;
|
|
4555
|
-
}
|
|
4556
|
-
setShrink(false);
|
|
4557
|
-
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
4558
|
-
});
|
|
4559
|
-
const [shrink, setShrink] = useState(shrinkProps);
|
|
4560
|
-
const focusInput = (target) => {
|
|
4561
|
-
const $textEl = target.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
4562
|
-
const $focusEl = $textEl.item($textEl.length - 1);
|
|
4563
|
-
if ($focusEl) {
|
|
4564
|
-
$focusEl.focus({ preventScroll: true });
|
|
4565
|
-
}
|
|
4566
|
-
};
|
|
4567
|
-
const onClick = useCallback((e) => {
|
|
4568
|
-
if (shrink) {
|
|
4569
|
-
e.preventDefault();
|
|
4570
|
-
focusInput(e.currentTarget);
|
|
4571
|
-
return;
|
|
4572
|
-
}
|
|
4573
|
-
setShrink(true);
|
|
4574
|
-
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
4575
|
-
focusInput(e.currentTarget);
|
|
4576
|
-
}, [shrink]);
|
|
4577
|
-
useEffect(() => {
|
|
4578
|
-
setShrink(shrinkProps);
|
|
4579
|
-
}, [shrinkProps]);
|
|
4580
|
-
return (React__default.createElement(StyledTextFieldContainer, Object.assign({ shrink: shrink, className: clsx(className, 'textField', { textField_shrink: !!shrink }) }, restProps),
|
|
4581
|
-
React__default.createElement("div", { ref: containerRef, onClick: onClick, className: "textField_wrapper" }, children)));
|
|
4582
|
-
};
|
|
4583
|
-
const ChoiceField = (props) => {
|
|
4584
|
-
const { children, className } = props, restProps = __rest(props, ["children", "className"]);
|
|
4585
|
-
return (React__default.createElement(StyledChoiceFieldContainer, Object.assign({ className: clsx(className, 'choiceField') }, restProps), children));
|
|
4586
|
-
};
|
|
4587
|
-
|
|
4588
4324
|
const TitleBlock = ({ children, align, }) => (React__default.createElement("h2", { className: `lead-modal__title ${'le-text-align-' + (align || '')} ${LEAD_CLASS}` }, children));
|
|
4589
4325
|
|
|
4590
4326
|
const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, }) => {
|
|
4591
4327
|
const { t } = useTranslations();
|
|
4328
|
+
const { classes } = useTextStyles();
|
|
4592
4329
|
const form = useLeadFormContext();
|
|
4593
4330
|
const formValues = form.values;
|
|
4594
4331
|
const labelTuples = useMemo(() => {
|
|
@@ -4609,23 +4346,47 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4609
4346
|
return (React__default.createElement(SubtitleBlock, { key: index, align: align }, value));
|
|
4610
4347
|
case 'TextBlock':
|
|
4611
4348
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4612
|
-
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: " ",
|
|
4349
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: " ",
|
|
4613
4350
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4614
4351
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4615
|
-
label: label, "data-control": "text", "data-lead-control": name, "data-is-required": required, inputWrapperOrder: [
|
|
4352
|
+
label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-control": "text", "data-lead-control": name, "data-is-required": required, inputWrapperOrder: [
|
|
4353
|
+
'label',
|
|
4354
|
+
'input',
|
|
4355
|
+
'description',
|
|
4356
|
+
'error',
|
|
4357
|
+
] }, form.getInputProps(value), { name: value, error: form.errors[value] && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
4358
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
4359
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, form.errors[value]))) }))))));
|
|
4616
4360
|
case 'NumberBlock':
|
|
4617
4361
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4618
|
-
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: " ",
|
|
4362
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: " ",
|
|
4619
4363
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4620
4364
|
// onChange={(e) => inputOnChange('number', e)}
|
|
4621
|
-
label: label, "data-control": "number", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: [
|
|
4365
|
+
label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-control": "number", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: [
|
|
4366
|
+
'label',
|
|
4367
|
+
'input',
|
|
4368
|
+
'description',
|
|
4369
|
+
'error',
|
|
4370
|
+
] }, form.getInputProps(value), { error: form.errors[value] && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
4371
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
4372
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, form.errors[value]))) }))))));
|
|
4622
4373
|
case 'EmailBlock':
|
|
4623
4374
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4624
|
-
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4375
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4625
4376
|
// type="email"
|
|
4626
4377
|
placeholder: " ",
|
|
4627
4378
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4628
|
-
label: label, "data-control": "email", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: [
|
|
4379
|
+
label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-control": "email", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: [
|
|
4380
|
+
'label',
|
|
4381
|
+
'input',
|
|
4382
|
+
'description',
|
|
4383
|
+
'error',
|
|
4384
|
+
] }, form.getInputProps(value), { error: form.errors[value] && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
4385
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
4386
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, form.errors[value]))), styles: (theme) => ({
|
|
4387
|
+
input: GlobalTextStyleNew(theme)[CustomStylesType.LEADGEN]
|
|
4388
|
+
.p2,
|
|
4389
|
+
}) }))))));
|
|
4629
4390
|
case 'PhoneOtpBlock':
|
|
4630
4391
|
case 'WhatsappOtpBlock':
|
|
4631
4392
|
case 'ZaloOtpBlock':
|
|
@@ -4635,19 +4396,38 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4635
4396
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: clsx('lead-modal__form-control leadgen-form_field', {
|
|
4636
4397
|
'leadgen-form_field_error': !!error,
|
|
4637
4398
|
}) },
|
|
4638
|
-
React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label: label, "data-invalid": !!error, labelProps: { htmlFor: htmlForId }, inputWrapperOrder: [
|
|
4399
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-invalid": !!error, labelProps: { htmlFor: htmlForId }, inputWrapperOrder: [
|
|
4400
|
+
'label',
|
|
4401
|
+
'input',
|
|
4402
|
+
'description',
|
|
4403
|
+
'error',
|
|
4404
|
+
], error: form.errors[value] && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
4405
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
4406
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, form.errors[value]))) },
|
|
4639
4407
|
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
4640
|
-
React__default.createElement(Phone, Object.assign({ className:
|
|
4408
|
+
React__default.createElement(Phone, Object.assign({ className: `mantine-Input-input ${classes.p2}`, name: value, spellCheck: false, type: "tel", placeholder: " ",
|
|
4641
4409
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4642
|
-
id: htmlForId, defaultCountry: (locale
|
|
4410
|
+
id: htmlForId, defaultCountry: (locale
|
|
4411
|
+
? MAPPED_LOCALE[locale] || 'VN'
|
|
4412
|
+
: 'VN'), "data-control": "tel", "data-lead-control": name, "data-is-required": required }, formPhoneInputWrapper))))))));
|
|
4643
4413
|
}
|
|
4644
4414
|
case 'LocationBlock': {
|
|
4645
4415
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4646
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: " ", label: label, "data-control": "text", "data-lead-control": name, "data-is-required": required, locale: locale, inputWrapperOrder: [
|
|
4416
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: " ", label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-control": "text", "data-lead-control": name, "data-is-required": required, locale: locale, inputWrapperOrder: [
|
|
4417
|
+
'label',
|
|
4418
|
+
'input',
|
|
4419
|
+
'description',
|
|
4420
|
+
'error',
|
|
4421
|
+
] }, form.getInputProps(value), { error: form.errors[value] && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
4422
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
4423
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, form.errors[value]))) })))),
|
|
4424
|
+
React__default.createElement(TextField.Icon, { Icon: MapPin })));
|
|
4647
4425
|
}
|
|
4648
4426
|
case 'DateBlock': {
|
|
4649
4427
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = __rest(_c, ["error"]);
|
|
4650
|
-
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label: label, "data-invalid": !!error, inputWrapperOrder: ['label', 'input', 'description', 'error'], error:
|
|
4428
|
+
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label: React__default.createElement(Text, { size: "p2", variant: "primary" }, label), "data-invalid": !!error, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: form.errors[value] && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
4429
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
4430
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, form.errors[value]))), className: "lead-modal__form-control leadgen-form_field" },
|
|
4651
4431
|
React__default.createElement(InputDate, Object.assign({ name: value, error: Boolean(error), locale: locale, "data-extra": true, "data-name": value, "data-control": "date", "data-lead-control": name, "data-is-required": required, className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4652
4432
|
}
|
|
4653
4433
|
case 'LinkButtonBlock':
|
|
@@ -4664,7 +4444,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4664
4444
|
}, "data-name": value + '-mailchimp' })),
|
|
4665
4445
|
React__default.createElement(Checkbox.Group, Object.assign({ withAsterisk: required,
|
|
4666
4446
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4667
|
-
label: label, size: "md", sx: {
|
|
4447
|
+
label: React__default.createElement(Text, { size: "p2", variant: "primary" }, label), size: "md", sx: {
|
|
4668
4448
|
display: 'flex',
|
|
4669
4449
|
flexDirection: 'column',
|
|
4670
4450
|
flexWrap: 'wrap',
|
|
@@ -4677,41 +4457,44 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4677
4457
|
isSendMailChimp && (React__default.createElement(Input$1, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
4678
4458
|
React__default.createElement(Radio.Group, Object.assign({ withAsterisk: required,
|
|
4679
4459
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4680
|
-
label: label, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4460
|
+
label: React__default.createElement(Text, { size: "p2", variant: "primary" }, label), size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4681
4461
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4682
4462
|
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio", "data-lead-control": name, "data-is-required": required }))))));
|
|
4683
4463
|
case 'DropdownBlock':
|
|
4684
4464
|
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index },
|
|
4685
|
-
React__default.createElement(
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
, Object.assign({
|
|
4465
|
+
React__default.createElement(TextField.Control, null, (shrink) => (React__default.createElement(React__default.Fragment, null,
|
|
4466
|
+
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name, "data-is-required": required }),
|
|
4467
|
+
React__default.createElement(Select
|
|
4689
4468
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
label:
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
fontSize: 54,
|
|
4702
|
-
paddingBlock: 30,
|
|
4703
|
-
},
|
|
4704
|
-
itemsWrapper: {
|
|
4705
|
-
padding: 6,
|
|
4706
|
-
},
|
|
4707
|
-
dropdown: {
|
|
4708
|
-
'.mantine-ScrollArea-scrollbar[data-orientation="vertical"]': {
|
|
4709
|
-
'--radix-scroll-area-thumb-width': '6px',
|
|
4710
|
-
width: 'var(--radix-scroll-area-thumb-width)',
|
|
4711
|
-
paddingInline: 0,
|
|
4469
|
+
, Object.assign({
|
|
4470
|
+
// className="lead-modal__form-control leadgen-form_field"
|
|
4471
|
+
label: React__default.createElement(Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), placeholder: " ", searchable: true, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
4472
|
+
value: l.value,
|
|
4473
|
+
label: l.placeholder,
|
|
4474
|
+
})), nothingFound: React__default.createElement(NoData, null), rightSection: React__default.createElement(TextField.Icon, { Icon: ChevronDown }), styles: {
|
|
4475
|
+
item: {
|
|
4476
|
+
paddingBlock: 12,
|
|
4477
|
+
paddingInline: 10,
|
|
4478
|
+
fontSize: 16,
|
|
4479
|
+
lineHeight: 1.5,
|
|
4712
4480
|
},
|
|
4713
|
-
|
|
4714
|
-
|
|
4481
|
+
nothingFound: {
|
|
4482
|
+
fontSize: 54,
|
|
4483
|
+
paddingBlock: 30,
|
|
4484
|
+
},
|
|
4485
|
+
itemsWrapper: {
|
|
4486
|
+
padding: 6,
|
|
4487
|
+
},
|
|
4488
|
+
dropdown: {
|
|
4489
|
+
'.mantine-ScrollArea-scrollbar[data-orientation="vertical"]': {
|
|
4490
|
+
'--radix-scroll-area-thumb-width': '6px',
|
|
4491
|
+
width: 'var(--radix-scroll-area-thumb-width)',
|
|
4492
|
+
paddingInline: 0,
|
|
4493
|
+
},
|
|
4494
|
+
},
|
|
4495
|
+
}, maxDropdownHeight: 192 }, form.getInputProps(value), { error: form.errors[value] && (React__default.createElement(Flex, { align: 'center', gap: 4 },
|
|
4496
|
+
React__default.createElement(ErrorIcon, { size: 12 }),
|
|
4497
|
+
React__default.createElement(Text, { size: "c1", variant: "error" }, form.errors[value]))) })))))));
|
|
4715
4498
|
case 'TncBlock':
|
|
4716
4499
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = __rest(_d, ["error"]);
|
|
4717
4500
|
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|