@hhgtech/hhg-components 1.29.396-beta-7 → 1.29.397
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-779bfa2a.js → InputDate-cb61c874.js} +7 -17
- package/build/{LastPeriod-b6657d53.js → LastPeriod-d8ddca7e.js} +1 -1
- package/build/{MobileBottomNavigationIcon-4bb5dfe1.js → MobileBottomNavigationIcon-d0bf4f2f.js} +3 -3
- package/build/{Spinner-fa06edb2.js → Spinner-09c645f2.js} +1 -1
- package/build/{WhatsApp-80fa83bf.js → WhatsApp-bd0758b4.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +48 -48
- package/build/babyGrowth.js +83 -83
- package/build/cache.js +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/drawerComponent/index.d.ts +0 -7
- package/build/components.js +97 -97
- package/build/{constants-17e228c7.js → constants-cc117e43.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-f447ff84.js → core-854a9835.js} +1 -1
- package/build/{dataTransform-05a9afa6.js → dataTransform-1a7310bf.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-25efdddc.js → editor-2ec97fb8.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{InputDate-81a85792.js → InputDate-3de0b6eb.js} +7 -17
- package/build/esm/{LastPeriod-3b69f762.js → LastPeriod-c00e7236.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-83e4ebf3.js → MobileBottomNavigationIcon-1dc5526b.js} +3 -3
- package/build/esm/{Spinner-3607c3c5.js → Spinner-37ae77a1.js} +1 -1
- package/build/esm/{WhatsApp-3d8c920b.js → WhatsApp-6cf1cba2.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +48 -48
- package/build/esm/babyGrowth.js +83 -83
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/atoms/drawerComponent/index.d.ts +0 -7
- package/build/esm/components.js +97 -97
- package/build/esm/{constants-3f929b4e.js → constants-8391efd4.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-e9660048.js → core-7ced398e.js} +1 -1
- package/build/esm/{dataTransform-05611872.js → dataTransform-33dce2b7.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-1a1d236c.js → editor-225465e9.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-ac76d965.js → healthTools-e8b13544.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-4c7efeff.js → index-023a138f.js} +32 -32
- package/build/esm/{index-4fcf3b60.js → index-02da49e4.js} +6 -6
- package/build/esm/{index-c3a34409.js → index-0527b881.js} +16 -16
- package/build/esm/{index-80a2cd4e.js → index-0914bea0.js} +4 -4
- package/build/esm/{index-96fa1f2f.js → index-0af646e0.js} +13 -13
- package/build/esm/{index-d06bdd23.js → index-0b5c7bb3.js} +5 -5
- package/build/esm/{index-6b301031.js → index-110695a5.js} +2 -2
- package/build/esm/{index-cd4f99ad.js → index-113f57fd.js} +1 -1
- package/build/esm/{index-d53234c0.js → index-12c25215.js} +1 -1
- package/build/esm/{index-4145b306.js → index-18957b53.js} +16 -16
- package/build/esm/{index-092411be.js → index-190c6d36.js} +11 -11
- package/build/esm/{index-a611ca74.js → index-27607593.js} +6 -6
- package/build/esm/{index-e81cc27d.js → index-33f4508d.js} +15 -15
- package/build/esm/{index-9ce4b64c.js → index-3d569636.js} +3 -3
- package/build/esm/{index-a46f72fb.js → index-3fbf9806.js} +2 -2
- package/build/esm/{index-b820522e.js → index-42d18aba.js} +1 -1
- package/build/esm/{index-5677d435.js → index-448c4373.js} +17 -17
- package/build/esm/{index-21155b23.js → index-48ba9a23.js} +2 -2
- package/build/esm/{index-fc5e154b.js → index-4a02282f.js} +2 -2
- package/build/esm/{index-615e9474.js → index-4a08219a.js} +1 -1
- package/build/esm/{index-865ac5cb.js → index-4c04e5bc.js} +21 -21
- package/build/esm/{index-b845a396.js → index-4e6b231b.js} +24 -24
- package/build/esm/{index-92229d2d.js → index-50f9d5f5.js} +7 -7
- package/build/esm/{index-bac666f3.js → index-52b415e3.js} +1 -1
- package/build/esm/{index-b9b772bd.js → index-54d05e87.js} +5 -5
- package/build/esm/{index-ab9b9b52.js → index-599f32ab.js} +31 -31
- package/build/esm/{index-0fb4b07a.js → index-6c00503e.js} +2 -2
- package/build/esm/{index-96ff844a.js → index-711160fd.js} +2 -2
- package/build/esm/{index-6168eba6.js → index-7132e119.js} +1 -1
- package/build/esm/{index-46751988.js → index-756725c2.js} +2 -2
- package/build/esm/{index-09cdc277.js → index-7ee37015.js} +4 -4
- package/build/esm/{index-656ed09f.js → index-847f9ab6.js} +18 -18
- package/build/esm/{index-bd08d3ce.js → index-864940b7.js} +7 -7
- package/build/esm/{index-7d2f09ff.js → index-8c21ead4.js} +3 -3
- package/build/esm/{index-43401c52.js → index-8ecb1332.js} +17 -17
- package/build/esm/{index-b6995d9b.js → index-9050f4e9.js} +2 -2
- package/build/esm/{index-8df23e39.js → index-92bb90c9.js} +3 -3
- package/build/esm/{index-2e2d98d8.js → index-98c2852d.js} +18 -18
- package/build/esm/{index-96598e9a.js → index-9e52e7ff.js} +2 -2
- package/build/esm/{index-8503e186.js → index-a09019fd.js} +2 -2
- package/build/esm/{index-0ce481f9.js → index-aac78899.js} +6 -6
- package/build/esm/{index-0dce6cba.js → index-aee74f37.js} +1 -1
- package/build/esm/{index-3fe9ef7b.js → index-b2ad799b.js} +13 -13
- package/build/esm/{index-2057a3fe.js → index-b462e743.js} +31 -31
- package/build/esm/{index-43c4bc7d.js → index-b902c3fb.js} +16 -16
- package/build/esm/{index-f8383b52.js → index-bad504c6.js} +25 -25
- package/build/esm/{index-9c9d72fe.js → index-bf06494d.js} +6 -6
- package/build/esm/{index-bf41e4e0.js → index-c07bd09a.js} +2 -2
- package/build/esm/{index-87128717.js → index-c07c34ee.js} +22 -22
- package/build/esm/{index-4ef1d6e7.js → index-c4507a0c.js} +3 -3
- package/build/esm/{index-7e2d0950.js → index-cb24aaef.js} +10 -10
- package/build/esm/{index-b4616650.js → index-ce42020e.js} +1 -1
- package/build/esm/{index-99960c4d.js → index-cfd3d75e.js} +8 -8
- package/build/esm/{index-8974660e.js → index-cff26977.js} +17 -17
- package/build/esm/{index-3d4e7c78.js → index-d4867431.js} +6 -6
- package/build/esm/{index-3f2e46f5.js → index-db5af859.js} +2 -2
- package/build/esm/{index-a1c59b7d.js → index-dbfb26ed.js} +1 -1
- package/build/esm/{index-9c70af68.js → index-dede8436.js} +16 -16
- package/build/esm/{index-d1864d80.js → index-e160727d.js} +2 -2
- package/build/esm/{index-74f90c1f.js → index-e5026fe0.js} +3 -3
- package/build/esm/{index-9d8a8f53.js → index-e7780c40.js} +17 -17
- package/build/esm/{index-297980dc.js → index-f1ce4d65.js} +13 -13
- package/build/esm/{index-bba60a1a.js → index-f340ae87.js} +2 -2
- package/build/esm/{index-ec2f6117.js → index-f37b2f4c.js} +13 -13
- package/build/esm/{index-35cd94d3.js → index-fa37e358.js} +3 -3
- package/build/esm/index.js +118 -118
- package/build/esm/{labelSorting-ef526823.js → labelSorting-76adca0e.js} +4 -4
- package/build/esm/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +0 -262
- package/build/esm/lead/layouts/lightbox/index.d.ts +1 -2
- package/build/esm/lead/services/index.d.ts +1 -2
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +132 -418
- package/build/esm/{logoIcon-5042fdf4.js → logoIcon-acedf6f6.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +17 -17
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +74 -74
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +46 -46
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +23 -23
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +50 -50
- package/build/esm/{post-79722737.js → post-a58ebf7c.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/esm/ssoV2.js +40 -52
- package/build/esm/{store-efc97669.js → store-94edb3b3.js} +3 -3
- package/build/esm/subot.js +36 -36
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-9dd3f5ee.js → surveyThankyouCard-a6a24b46.js} +5 -5
- package/build/esm/together.js +56 -56
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +51 -51
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +39 -39
- package/build/esm/togetherOrganisms.js +50 -50
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-2ae2efb3.js → translationsProvider-e2245dc2.js} +1 -1
- package/build/esm/{treePopoverMenu-97c30818.js → treePopoverMenu-7502dc2c.js} +19 -19
- package/build/esm/{types-6a5ffce6.js → types-e0d98e14.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-b4adf558.js → useCategory-f0c930aa.js} +5 -5
- package/build/esm/{useHealthToolCache-5c71e735.js → useHealthToolCache-4b8a204f.js} +1 -1
- package/build/esm/{useMantineLocale-a1772a1f.js → useMantineLocale-36230243.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-bcaf2a8d.js → usePlacesAutocomplete-cbc980ee.js} +1 -1
- package/build/esm/{useScreenSize-eb5e276a.js → useScreenSize-2bbf367e.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-b5ae04e5.js → utils-2bee2fb4.js} +2 -2
- package/build/esm/{utils-0ac9ce0d.js → utils-539deb75.js} +5 -5
- package/build/esm/{utils-d64261d1.js → utils-966f2cee.js} +3 -3
- package/build/esm/{utils-5c524612.js → utils-dbc9c0f0.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-1f4bc0e4.js → healthTools-955e57bd.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-846b5351.js → index-08fcf3aa.js} +5 -5
- package/build/{index-b3ef5b52.js → index-0e634110.js} +2 -2
- package/build/{index-261136c0.js → index-111cd51c.js} +6 -6
- package/build/{index-0f33bda5.js → index-11233691.js} +2 -2
- package/build/{index-969798c0.js → index-1676c1f6.js} +6 -6
- package/build/{index-e7de35d3.js → index-1712dc69.js} +7 -7
- package/build/{index-ce155499.js → index-1afb5492.js} +17 -17
- package/build/{index-b51dbf61.js → index-26279472.js} +2 -2
- package/build/{index-df21e0fc.js → index-27815146.js} +1 -1
- package/build/{index-59d8c32c.js → index-28ed74f1.js} +5 -5
- package/build/{index-dd0b6e17.js → index-2c5a8ca9.js} +31 -31
- package/build/{index-6f45f58f.js → index-2fa7fa9c.js} +17 -17
- package/build/{index-a626843d.js → index-37b80834.js} +4 -4
- package/build/{index-56022759.js → index-3a100f96.js} +25 -25
- package/build/{index-b883f5a2.js → index-3a3bd736.js} +2 -2
- package/build/{index-73ce98f0.js → index-45465636.js} +1 -1
- package/build/{index-24e5ce44.js → index-457ee264.js} +6 -6
- package/build/{index-7a57603b.js → index-4985c02f.js} +2 -2
- package/build/{index-0c9b7f81.js → index-4a829a3d.js} +3 -3
- package/build/{index-942bbac2.js → index-501b45c2.js} +6 -6
- package/build/{index-1de6dcce.js → index-5142eef5.js} +2 -2
- package/build/{index-bd27850d.js → index-539696ad.js} +3 -3
- package/build/{index-3464b4a8.js → index-546f0d5e.js} +16 -16
- package/build/{index-0faa4208.js → index-58052fd7.js} +2 -2
- package/build/{index-c6c64d15.js → index-605608ab.js} +22 -22
- package/build/{index-5249cdf0.js → index-6250307d.js} +15 -15
- package/build/{index-7d8e37dd.js → index-62ee4445.js} +24 -24
- package/build/{index-ff2ec13b.js → index-70de9850.js} +1 -1
- package/build/{index-f3d2ca62.js → index-789a2c8f.js} +8 -8
- package/build/{index-19b54d56.js → index-7a234e75.js} +31 -31
- package/build/{index-dd518830.js → index-7e6e1cab.js} +10 -10
- package/build/{index-e8dffb5f.js → index-7fc05b9e.js} +3 -3
- package/build/{index-0b6450b7.js → index-861663fa.js} +16 -16
- package/build/{index-e48d765b.js → index-86f8e22b.js} +1 -1
- package/build/{index-bace5fd6.js → index-88a9a7b0.js} +1 -1
- package/build/{index-cb921f9c.js → index-8df6fefb.js} +17 -17
- package/build/{index-4d4fa9c6.js → index-8e775085.js} +2 -2
- package/build/{index-cd5d3a3f.js → index-95ae1af5.js} +18 -18
- package/build/{index-87c063e6.js → index-9757b60e.js} +1 -1
- package/build/{index-8c54bd27.js → index-a0cbffda.js} +13 -13
- package/build/{index-b82e3c07.js → index-a6161efc.js} +2 -2
- package/build/{index-df8d7468.js → index-aa7f2f8e.js} +2 -2
- package/build/{index-055c1d1b.js → index-aaecebaa.js} +13 -13
- package/build/{index-3d0d6d57.js → index-aafaafd3.js} +18 -18
- package/build/{index-7c7cc39d.js → index-ab17d0f2.js} +16 -16
- package/build/{index-84e4d939.js → index-b106675e.js} +1 -1
- package/build/{index-4dbdc48a.js → index-b5f73835.js} +16 -16
- package/build/{index-82e8f4e8.js → index-b82cddb5.js} +3 -3
- package/build/{index-6a8d1bc8.js → index-ba1dfbb6.js} +11 -11
- package/build/{index-96f99a84.js → index-c6b097b8.js} +3 -3
- package/build/{index-b6a9d14a.js → index-c70382d7.js} +2 -2
- package/build/{index-37051fcd.js → index-c7da40e0.js} +6 -6
- package/build/{index-95db12a6.js → index-c826f710.js} +2 -2
- package/build/{index-2945f7cd.js → index-cbadd61d.js} +1 -1
- package/build/{index-548104f5.js → index-cbc87e7c.js} +13 -13
- package/build/{index-1966a630.js → index-cd397653.js} +13 -13
- package/build/{index-b5758bc3.js → index-cec7c2e9.js} +1 -1
- package/build/{index-0883860f.js → index-d896c731.js} +2 -2
- package/build/{index-5a4ce7c7.js → index-e151865b.js} +21 -21
- package/build/{index-ea9233a5.js → index-e180bceb.js} +17 -17
- package/build/{index-fb80022a.js → index-e36c3713.js} +7 -7
- package/build/{index-3a3656e2.js → index-ea84a11b.js} +4 -4
- package/build/{index-4f078389.js → index-ec35690d.js} +32 -32
- package/build/{index-e19f3062.js → index-f9e32d5a.js} +2 -2
- package/build/{index-6b3ad753.js → index-fa7b3e87.js} +3 -3
- package/build/index.js +118 -118
- package/build/{labelSorting-35405ca6.js → labelSorting-f89451d4.js} +4 -4
- package/build/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +0 -262
- package/build/lead/layouts/lightbox/index.d.ts +1 -2
- package/build/lead/services/index.d.ts +1 -2
- package/build/lead.css +1 -1
- package/build/lead.js +131 -417
- package/build/{logoIcon-5411410d.js → logoIcon-dfd6c2a2.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +17 -17
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +74 -74
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +46 -46
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +50 -50
- package/build/{post-51f1ddd0.js → post-9c853116.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/ssoV2.js +38 -50
- package/build/{store-270e1062.js → store-c0cc1ed3.js} +3 -3
- package/build/subot.js +35 -35
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-d4be455b.js → surveyThankyouCard-b094b0cc.js} +5 -5
- package/build/together.js +56 -56
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +51 -51
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +39 -39
- package/build/togetherOrganisms.js +50 -50
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-d0347b34.js → translationsProvider-56928a3c.js} +1 -1
- package/build/{treePopoverMenu-5bbeb7c9.js → treePopoverMenu-08beab6b.js} +19 -19
- package/build/{types-5691e86a.js → types-75b58469.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-25586edc.js → useCategory-6ae322de.js} +5 -5
- package/build/{useHealthToolCache-0b269703.js → useHealthToolCache-f6d33c9b.js} +1 -1
- package/build/{useMantineLocale-bd657418.js → useMantineLocale-3e2ab14d.js} +6 -6
- package/build/{usePlacesAutocomplete-710ceca1.js → usePlacesAutocomplete-06298b2c.js} +1 -1
- package/build/{useScreenSize-cef9e7ae.js → useScreenSize-bf9fd1ec.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-87eaa8f8.js → utils-3b31e8c3.js} +5 -5
- package/build/{utils-b9986d55.js → utils-a06acd51.js} +3 -3
- package/build/{utils-9deda092.js → utils-b8b39ab6.js} +2 -2
- package/build/{utils-859e7fac.js → utils-cac21f95.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/lead/LeadGenForm/LeadGenEmpty.d.ts +0 -8
- package/build/esm/lead/icons/NoData.d.ts +0 -3
- package/build/esm/lead/icons/index.d.ts +0 -5
- package/build/lead/LeadGenForm/LeadGenEmpty.d.ts +0 -8
- package/build/lead/icons/NoData.d.ts +0 -3
- package/build/lead/icons/index.d.ts +0 -5
- /package/build/{BMI_BOYS.percentile.monthly-fc50fa58.js → BMI_BOYS.percentile.monthly-9f152c2a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-57dc5c61.js → BMI_BOYS.percentile.weekly-97d3222c.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-ba4b7103.js → BMI_BOYS.percentile.yearly-5f0acf05.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b3c5de3e.js → BMI_BOYS.zscore.monthly-a2e1063e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-37a1d593.js → BMI_BOYS.zscore.weekly-0fba0d7f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-81c1445e.js → BMI_BOYS.zscore.yearly-8a0ed23b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-58cde51b.js → BMI_GIRLS.percentile.monthly-e761fac3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8ec9ff9b.js → BMI_GIRLS.percentile.weekly-30c96d04.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1784adda.js → BMI_GIRLS.percentile.yearly-f8abc794.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-cbb47fa4.js → BMI_GIRLS.zscore.monthly-4cc8b26d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-86686010.js → BMI_GIRLS.zscore.weekly-5daade4d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-63e0fcfa.js → BMI_GIRLS.zscore.yearly-dc817f11.js} +0 -0
- /package/build/{ChevronDown-eb5f7cb7.js → ChevronDown-8e7e32c9.js} +0 -0
- /package/build/{Close-619ec3fa.js → Close-d03cb628.js} +0 -0
- /package/build/{Google-1c9e90ec.js → Google-a9a0c01a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-adeca819.js → HEAD CIRCUM_BOYS.percentile.monthly-8af7454e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-b29d5277.js → HEAD CIRCUM_BOYS.percentile.weekly-e31113cd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-dd797f6a.js → HEAD CIRCUM_BOYS.percentile.yearly-d2ec1246.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-31cd58ba.js → HEAD CIRCUM_BOYS.zscore.monthly-64736415.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-afac8890.js → HEAD CIRCUM_BOYS.zscore.weekly-3085e7bc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b596c359.js → HEAD CIRCUM_BOYS.zscore.yearly-ca16e1b1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b05ca350.js → HEAD CIRCUM_GIRLS.percentile.monthly-76e8d246.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-c824b2d4.js → HEAD CIRCUM_GIRLS.percentile.weekly-55d95d81.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-2b00426f.js → HEAD CIRCUM_GIRLS.percentile.yearly-d1c5a180.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-a99ff3e4.js → HEAD CIRCUM_GIRLS.zscore.monthly-adfc2acd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6e88a515.js → HEAD CIRCUM_GIRLS.zscore.weekly-6b316c6e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-8f145fc2.js → HEAD CIRCUM_GIRLS.zscore.yearly-7d7c487c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-c62a089c.js → HEIGHT_BOYS.percentile.monthly-9c3b903f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-3824a2a1.js → HEIGHT_BOYS.percentile.weekly-29c1833b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-b06cca88.js → HEIGHT_BOYS.percentile.yearly-db218a30.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-466fca28.js → HEIGHT_BOYS.zscore.monthly-64e999d1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-0694570f.js → HEIGHT_BOYS.zscore.weekly-773bdf94.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-cb6bc247.js → HEIGHT_BOYS.zscore.yearly-82dc5bd6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-4b0390d3.js → HEIGHT_GIRLS.percentile.monthly-b4b00b8e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-566f5b6a.js → HEIGHT_GIRLS.percentile.weekly-7e3dc1c6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-04479cd9.js → HEIGHT_GIRLS.percentile.yearly-c696c874.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-0a84d978.js → HEIGHT_GIRLS.zscore.monthly-1e3efa55.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-33425506.js → HEIGHT_GIRLS.zscore.weekly-4c8a6df2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-9ceeb357.js → HEIGHT_GIRLS.zscore.yearly-b201f9f6.js} +0 -0
- /package/build/{Locale-55b5fb0f.js → Locale-d6ed6fd5.js} +0 -0
- /package/build/{Visible-0a8c5ee3.js → Visible-8cb29e3b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-36c999ae.js → WEIGHT_BOYS.percentile.monthly-28b8b791.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-b3dc69e0.js → WEIGHT_BOYS.percentile.weekly-cb8c252d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-68423ee2.js → WEIGHT_BOYS.percentile.yearly-642524f9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-d623af53.js → WEIGHT_BOYS.zscore.monthly-29c479ba.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-665c3ec6.js → WEIGHT_BOYS.zscore.weekly-79388d42.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-d91e3104.js → WEIGHT_BOYS.zscore.yearly-04ab41ac.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-46c685fe.js → WEIGHT_GIRLS.percentile.monthly-6e66b039.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-cbcc2d9f.js → WEIGHT_GIRLS.percentile.weekly-1300e791.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-456ace2b.js → WEIGHT_GIRLS.percentile.yearly-1015a28c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-373bc607.js → WEIGHT_GIRLS.zscore.monthly-d2e917af.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-40bdfe5a.js → WEIGHT_GIRLS.zscore.weekly-02c0d2bd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-9eb186a1.js → WEIGHT_GIRLS.zscore.yearly-af8b3d14.js} +0 -0
- /package/build/{animation-c6130717.js → animation-ea19bb57.js} +0 -0
- /package/build/{constants-9a790271.js → constants-4f94e6fd.js} +0 -0
- /package/build/{constants-870fb810.js → constants-52aef66c.js} +0 -0
- /package/build/{constants-4dd172d1.js → constants-86bdcc53.js} +0 -0
- /package/build/{dataTransform-f5f8ed67.js → dataTransform-44b74b9e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-29a2d966.js → BMI_BOYS.percentile.monthly-075f5d48.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-f9330509.js → BMI_BOYS.percentile.weekly-e566b297.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-69f7b527.js → BMI_BOYS.percentile.yearly-968ff034.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-131129ff.js → BMI_BOYS.zscore.monthly-1f7b53a2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-2b0969dc.js → BMI_BOYS.zscore.weekly-f8e35173.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-c1b9d353.js → BMI_BOYS.zscore.yearly-32275a4d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-1e54bfde.js → BMI_GIRLS.percentile.monthly-efe5bd3e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-55c62901.js → BMI_GIRLS.percentile.weekly-e328b638.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ee7e6e06.js → BMI_GIRLS.percentile.yearly-1963bfcd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-51b72c57.js → BMI_GIRLS.zscore.monthly-458782d1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-32fdcaef.js → BMI_GIRLS.zscore.weekly-ef8b1961.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-bcc934f4.js → BMI_GIRLS.zscore.yearly-f32a5313.js} +0 -0
- /package/build/esm/{ChevronDown-adc108dd.js → ChevronDown-e4cc466e.js} +0 -0
- /package/build/esm/{Close-504c9dc6.js → Close-f335d7d5.js} +0 -0
- /package/build/esm/{Google-ea5c56a6.js → Google-a40ce59d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9f33cb11.js → HEAD CIRCUM_BOYS.percentile.monthly-88877c38.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-61314f72.js → HEAD CIRCUM_BOYS.percentile.weekly-ae47f376.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-efa5fd85.js → HEAD CIRCUM_BOYS.percentile.yearly-d2873655.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c29afe81.js → HEAD CIRCUM_BOYS.zscore.monthly-ab04bb64.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-fd452b36.js → HEAD CIRCUM_BOYS.zscore.weekly-42be0c33.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-79b71f2c.js → HEAD CIRCUM_BOYS.zscore.yearly-9e0f7356.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-54efd800.js → HEAD CIRCUM_GIRLS.percentile.monthly-28147114.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-095aaba9.js → HEAD CIRCUM_GIRLS.percentile.weekly-ec14a371.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f4670a89.js → HEAD CIRCUM_GIRLS.percentile.yearly-b2227c73.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c2290a2b.js → HEAD CIRCUM_GIRLS.zscore.monthly-9e2dc52c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e8bcb29c.js → HEAD CIRCUM_GIRLS.zscore.weekly-ca8a02b2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-7f697aea.js → HEAD CIRCUM_GIRLS.zscore.yearly-ea07af92.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-4aaecff6.js → HEIGHT_BOYS.percentile.monthly-9c0fddf3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-25e54173.js → HEIGHT_BOYS.percentile.weekly-7049e16b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-cdaa1606.js → HEIGHT_BOYS.percentile.yearly-73f5111e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c27b2966.js → HEIGHT_BOYS.zscore.monthly-cdb3f14b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e6c561a8.js → HEIGHT_BOYS.zscore.weekly-6705f40a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-66386930.js → HEIGHT_BOYS.zscore.yearly-3cb76051.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-354d3989.js → HEIGHT_GIRLS.percentile.monthly-209b4861.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-bb32a201.js → HEIGHT_GIRLS.percentile.weekly-7dd27242.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-46f9564f.js → HEIGHT_GIRLS.percentile.yearly-54be350a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b409a301.js → HEIGHT_GIRLS.zscore.monthly-3a4a1089.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-ad66d60c.js → HEIGHT_GIRLS.zscore.weekly-731251d8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-0be86ac0.js → HEIGHT_GIRLS.zscore.yearly-749a8061.js} +0 -0
- /package/build/esm/{Locale-7013ca58.js → Locale-c05b4162.js} +0 -0
- /package/build/esm/{Visible-7c29ebdb.js → Visible-ce15dc3e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-fdf1df1a.js → WEIGHT_BOYS.percentile.monthly-ae9baf0d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-31c861b9.js → WEIGHT_BOYS.percentile.weekly-ea249e46.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-aca56ee3.js → WEIGHT_BOYS.percentile.yearly-e8066fa4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-6e9b4d49.js → WEIGHT_BOYS.zscore.monthly-d4af506c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8a36bffd.js → WEIGHT_BOYS.zscore.weekly-4ebd43b1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-da959536.js → WEIGHT_BOYS.zscore.yearly-9c5344f6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-c7a667ae.js → WEIGHT_GIRLS.percentile.monthly-de2f6755.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-ec98fbb3.js → WEIGHT_GIRLS.percentile.weekly-1eaa454c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-95708f4d.js → WEIGHT_GIRLS.percentile.yearly-ac8d51e9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0a2e589f.js → WEIGHT_GIRLS.zscore.monthly-f4d1616e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-cf0e9a0e.js → WEIGHT_GIRLS.zscore.weekly-169c1e67.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-09ce14dc.js → WEIGHT_GIRLS.zscore.yearly-279d9930.js} +0 -0
- /package/build/esm/{animation-b98c6d96.js → animation-7e1886f4.js} +0 -0
- /package/build/esm/{constants-71fad5dd.js → constants-82f3d21d.js} +0 -0
- /package/build/esm/{constants-eb36f380.js → constants-d33263b5.js} +0 -0
- /package/build/esm/{constants-ca41ee65.js → constants-ecd7b299.js} +0 -0
- /package/build/esm/{dataTransform-6210e978.js → dataTransform-51d2a647.js} +0 -0
- /package/build/esm/{index-f1ef5c84.js → index-2bf9e0c7.js} +0 -0
- /package/build/esm/{index-ea156363.js → index-59fcd11e.js} +0 -0
- /package/build/esm/{index-e6dd9174.js → index-743926ea.js} +0 -0
- /package/build/esm/{index-da8052b5.js → index-7beff254.js} +0 -0
- /package/build/esm/{index-c8cc02be.js → index-7fa44c0e.js} +0 -0
- /package/build/esm/{index-7d09c1f5.js → index-83b79fc6.js} +0 -0
- /package/build/esm/{index-a0aef994.js → index-85f20c91.js} +0 -0
- /package/build/esm/{index-db175cd3.js → index-f2b664b2.js} +0 -0
- /package/build/esm/{index.styles-236ce1fa.js → index.styles-ee329278.js} +0 -0
- /package/build/esm/lead/layouts/{emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/esm/{localizeNumberFormat-0787d497.js → localizeNumberFormat-3d282054.js} +0 -0
- /package/build/esm/{normalizeLink-f2e0563f.js → normalizeLink-c1b5cc6b.js} +0 -0
- /package/build/esm/{number-4b95c598.js → number-5016cef5.js} +0 -0
- /package/build/esm/{other-083471c4.js → other-a43016d1.js} +0 -0
- /package/build/esm/{paths-220a9d5b.js → paths-bec5b0c5.js} +0 -0
- /package/build/esm/{translationsContext-eff46c98.js → translationsContext-a275465e.js} +0 -0
- /package/build/esm/{tslib.es6-a91a3ba2.js → tslib.es6-30e6f9a9.js} +0 -0
- /package/build/esm/{types-d1921376.js → types-0216b206.js} +0 -0
- /package/build/esm/{useIsInit-cf303a41.js → useIsInit-46e41f1c.js} +0 -0
- /package/build/esm/{useOutsideClick-7aaa6860.js → useOutsideClick-dfa1a3dd.js} +0 -0
- /package/build/esm/{useScrollbarSize-b63b5638.js → useScrollbarSize-853656f8.js} +0 -0
- /package/build/esm/{useUniqueId-8b360b56.js → useUniqueId-3e15eabc.js} +0 -0
- /package/build/esm/{utils-c3edb47a.js → utils-1a28819a.js} +0 -0
- /package/build/{index-a42a50a4.js → index-0324e04f.js} +0 -0
- /package/build/{index-2aacdddd.js → index-0acde5e3.js} +0 -0
- /package/build/{index-3e899878.js → index-46396ba3.js} +0 -0
- /package/build/{index-949761fa.js → index-62e98f6e.js} +0 -0
- /package/build/{index-3b9d2da0.js → index-66735537.js} +0 -0
- /package/build/{index-6bf85b9a.js → index-681fd02b.js} +0 -0
- /package/build/{index-4884a7ab.js → index-b1053088.js} +0 -0
- /package/build/{index-42770e30.js → index-be96a59c.js} +0 -0
- /package/build/{index.styles-f7f3fca8.js → index.styles-31ab4468.js} +0 -0
- /package/build/lead/layouts/{emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/{localizeNumberFormat-58768f9b.js → localizeNumberFormat-e66a05f7.js} +0 -0
- /package/build/{normalizeLink-3b3ba0a5.js → normalizeLink-83d9a351.js} +0 -0
- /package/build/{number-025713e3.js → number-21785cfd.js} +0 -0
- /package/build/{other-62cd4f2e.js → other-9e4ceb9d.js} +0 -0
- /package/build/{paths-35456e7b.js → paths-9daec102.js} +0 -0
- /package/build/{translationsContext-bf042531.js → translationsContext-43dbcf8f.js} +0 -0
- /package/build/{tslib.es6-e137c099.js → tslib.es6-df8551a2.js} +0 -0
- /package/build/{types-a2ec6e0a.js → types-3325c59c.js} +0 -0
- /package/build/{useIsInit-7bb3e936.js → useIsInit-6023b3a5.js} +0 -0
- /package/build/{useOutsideClick-15366c1f.js → useOutsideClick-2401a2e4.js} +0 -0
- /package/build/{useScrollbarSize-d24864b9.js → useScrollbarSize-68754034.js} +0 -0
- /package/build/{useUniqueId-5dac0bf6.js → useUniqueId-27b130fe.js} +0 -0
- /package/build/{utils-eb06e27e.js → utils-1438d0cf.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-30e6f9a9.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, Button as Button$1, Input as Input$1, clsx, Autocomplete, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, TextInput, NumberInput as NumberInput$1, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import debounce from 'lodash/debounce';
|
|
6
6
|
import { createFormContext, useForm } from '@mantine/form';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-7ee37015.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-aee74f37.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-a275465e.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-1a28819a.js';
|
|
12
|
+
import { T as Text } from './index-a09019fd.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-190c6d36.js';
|
|
14
|
+
import { D as DatePicker } from './index-d4867431.js';
|
|
15
|
+
import { B as Button } from './index-7132e119.js';
|
|
16
|
+
import './index.styles-ee329278.js';
|
|
17
17
|
import { useClickOutside } from '@mantine/hooks';
|
|
18
|
-
import './useMantineLocale-
|
|
19
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
20
|
-
import './index-
|
|
21
|
-
import { Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
22
|
-
import './other-
|
|
23
|
-
import './index-
|
|
24
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
18
|
+
import './useMantineLocale-36230243.js';
|
|
19
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-dbfb26ed.js';
|
|
20
|
+
import './index-743926ea.js';
|
|
21
|
+
import { Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-110695a5.js';
|
|
22
|
+
import './other-a43016d1.js';
|
|
23
|
+
import './index-8c21ead4.js';
|
|
24
|
+
import { M as MAPPED_LOCALE } from './utils-dbc9c0f0.js';
|
|
25
25
|
import { DateInput } from '@mantine/dates';
|
|
26
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-
|
|
27
|
-
import { H as Heading$1 } from './index-
|
|
28
|
-
import { t as translationsMap$1 } from './translationsProvider-
|
|
29
|
-
import { L as LOCALE } from './Locale-
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-cbc980ee.js';
|
|
27
|
+
import { H as Heading$1 } from './index-f340ae87.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-e2245dc2.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-c05b4162.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
32
32
|
import styled from '@emotion/styled';
|
|
33
33
|
import { theme } from './miscTheme.js';
|
|
34
34
|
import { css } from '@emotion/react';
|
|
35
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
36
|
-
import { i as isVideo } from './index-
|
|
37
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
38
|
-
import { motion } from 'framer-motion';
|
|
35
|
+
import { T as TogetherComponentGlobalContext } from './utils-966f2cee.js';
|
|
36
|
+
import { i as isVideo } from './index-7fa44c0e.js';
|
|
37
|
+
import { u as useScreenSize } from './useScreenSize-2bbf367e.js';
|
|
39
38
|
import { createPortal } from 'react-dom';
|
|
40
|
-
import { B as Button$2 } from './index-
|
|
41
|
-
import { I as InputDate } from './InputDate-
|
|
42
|
-
import { D as DrawerComponent } from './index-
|
|
43
|
-
import { C as Close } from './Close-
|
|
39
|
+
import { B as Button$2 } from './index-9e52e7ff.js';
|
|
40
|
+
import { I as InputDate } from './InputDate-3de0b6eb.js';
|
|
41
|
+
import { D as DrawerComponent } from './index-711160fd.js';
|
|
42
|
+
import { C as Close } from './Close-f335d7d5.js';
|
|
44
43
|
import './constantsIsProduction.js';
|
|
45
|
-
import './normalizeLink-
|
|
44
|
+
import './normalizeLink-c1b5cc6b.js';
|
|
46
45
|
import './constantsDomainLocales.js';
|
|
47
46
|
import '@hhgtech/icons/other';
|
|
48
47
|
import '@mantine/carousel';
|
|
49
48
|
import 'classnames';
|
|
50
|
-
import './useUniqueId-
|
|
49
|
+
import './useUniqueId-3e15eabc.js';
|
|
51
50
|
import './constantsSite.js';
|
|
52
51
|
import '@hhgtech/icons/core';
|
|
53
52
|
import '@mantine/notifications';
|
|
@@ -64,11 +63,11 @@ import './i18n-values/tl-PH.js';
|
|
|
64
63
|
import './i18n-values/vi-VN.js';
|
|
65
64
|
import './i18n-values/vi-VN_MB.js';
|
|
66
65
|
import './i18n-values/zh-TW.js';
|
|
67
|
-
import './index-
|
|
66
|
+
import './index-2bf9e0c7.js';
|
|
68
67
|
import 'slugify';
|
|
69
68
|
import 'string-format';
|
|
70
69
|
import './togetherApiPaths.js';
|
|
71
|
-
import './constants-
|
|
70
|
+
import './constants-82f3d21d.js';
|
|
72
71
|
import 'vaul';
|
|
73
72
|
|
|
74
73
|
const LeadGenComponentContext = createContext({});
|
|
@@ -513,9 +512,9 @@ const getCampaignByCode = (campaign_code) => {
|
|
|
513
512
|
method: METHOD.GET,
|
|
514
513
|
});
|
|
515
514
|
};
|
|
516
|
-
const getSubscriptionBoxInfo = ({ category, site,
|
|
515
|
+
const getSubscriptionBoxInfo = ({ category, site, }) => {
|
|
517
516
|
return leadApi.call({
|
|
518
|
-
url: `${LEADGEN_API_PATH.V2_SUBSCRIPTION_INFO}?category=${category}&site=${site}
|
|
517
|
+
url: `${LEADGEN_API_PATH.V2_SUBSCRIPTION_INFO}?category=${category}&site=${site}`,
|
|
519
518
|
method: METHOD.GET,
|
|
520
519
|
});
|
|
521
520
|
};
|
|
@@ -2067,7 +2066,6 @@ const LeadGenContextProvider = (props) => {
|
|
|
2067
2066
|
Service.getSubscriptionBoxInfo({
|
|
2068
2067
|
category: categoryId,
|
|
2069
2068
|
site: site_domain,
|
|
2070
|
-
slug: location === null || location === void 0 ? void 0 : location.pathname,
|
|
2071
2069
|
}).then((res) => {
|
|
2072
2070
|
const { _data } = res || {};
|
|
2073
2071
|
const { item, campaign_code } = _data || {};
|
|
@@ -2283,7 +2281,7 @@ const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validating
|
|
|
2283
2281
|
}, {});
|
|
2284
2282
|
}, [listBlockAdded.map((b) => b.name).join(','), format]);
|
|
2285
2283
|
const form = useLeadForm({
|
|
2286
|
-
validateInputOnChange:
|
|
2284
|
+
validateInputOnChange: true,
|
|
2287
2285
|
validateInputOnBlur: true,
|
|
2288
2286
|
clearInputErrorOnChange: true,
|
|
2289
2287
|
validate: validateObj,
|
|
@@ -2469,66 +2467,6 @@ const PhoneInput = forwardRef((props, ref) => {
|
|
|
2469
2467
|
React__default.createElement(Phone, Object.assign({}, restProps, { id: id, ref: ref, name: name, spellCheck: false, placeholder: placeholder, defaultCountry: defaultCountry, className: "mantine-Input-input", type: "tel", "data-control": "tel" })))));
|
|
2470
2468
|
});
|
|
2471
2469
|
|
|
2472
|
-
const NoData = ({ className, style }) => {
|
|
2473
|
-
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 },
|
|
2474
|
-
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" }),
|
|
2475
|
-
React__default.createElement("path", { d: "M51.5751 26.2165V41.2537C51.5751 44.3778 49.0342 46.9187 45.8684 46.9187H19.4596C16.3355 46.9187 13.7946 44.4195 13.7529 41.2954C13.7529 41.2537 13.7529 41.2537 13.7529 41.2121V26.2165C13.7529 26.1748 13.7529 26.1748 13.7529 26.1332C13.7529 26.0498 13.7529 25.9665 13.7946 25.8832C13.8362 25.7583 13.8779 25.675 13.9195 25.55L21.0008 12.0123C21.2507 11.4708 21.7922 11.1792 22.3754 11.1792H42.911C43.4941 11.1792 43.994 11.4708 44.2856 12.0123L51.3668 25.55C51.4085 25.6333 51.4501 25.7583 51.4918 25.8832C51.5751 25.9665 51.5751 26.0915 51.5751 26.2165Z", fill: "#D5DDEA" }),
|
|
2476
|
-
React__default.createElement("path", { d: "M51.5751 26.2164V42.7949C51.5751 45.0859 49.7423 46.9187 47.4096 46.9187H17.9184C15.6274 46.9187 13.7529 45.0859 13.7529 42.7949V26.1331C13.7529 26.0498 13.7529 25.9665 13.7946 25.8832H23.2918C24.708 25.8832 25.8743 27.0078 25.8743 28.4658C25.8743 29.1739 26.1659 29.8404 26.6241 30.2986C27.124 30.7984 27.7071 31.0483 28.4569 31.0483H36.9127C38.329 31.0483 39.4953 29.9237 39.4953 28.4658C39.4953 27.7576 39.7869 27.0912 40.2451 26.633C40.7449 26.1331 41.3281 25.8832 42.0362 25.8832H51.4918C51.5751 25.9665 51.5751 26.0915 51.5751 26.2164Z", fill: "url(#paint0_linear_2578_27197)" }),
|
|
2477
|
-
React__default.createElement("path", { d: "M56.7342 17.6773C57.6774 17.6773 58.442 16.9126 58.442 15.9694C58.442 15.0262 57.6774 14.2616 56.7342 14.2616C55.791 14.2616 55.0264 15.0262 55.0264 15.9694C55.0264 16.9126 55.791 17.6773 56.7342 17.6773Z", fill: "#EAEEF9" }),
|
|
2478
|
-
React__default.createElement("path", { d: "M55.0257 12.1373C55.6698 12.1373 56.192 11.6152 56.192 10.971C56.192 10.3269 55.6698 9.80469 55.0257 9.80469C54.3816 9.80469 53.8594 10.3269 53.8594 10.971C53.8594 11.6152 54.3816 12.1373 55.0257 12.1373Z", fill: "#EAEEF9" }),
|
|
2479
|
-
React__default.createElement("path", { d: "M7.79034 15.9694C8.43449 15.9694 8.95667 15.4472 8.95667 14.803C8.95667 14.1589 8.43449 13.6367 7.79034 13.6367C7.1462 13.6367 6.62402 14.1589 6.62402 14.803C6.62402 15.4472 7.1462 15.9694 7.79034 15.9694Z", fill: "#EAEEF9" }),
|
|
2480
|
-
React__default.createElement("path", { d: "M5.16603 41.6286C6.36229 41.6286 7.33205 40.6588 7.33205 39.4625C7.33205 38.2663 6.36229 37.2965 5.16603 37.2965C3.96976 37.2965 3 38.2663 3 39.4625C3 40.6588 3.96976 41.6286 5.16603 41.6286Z", fill: "#EAEEF9" }),
|
|
2481
|
-
React__default.createElement("path", { d: "M43.0864 6.16785C43.6301 12.1024 43.9019 13.4615 42.6711 18.8361C42.2708 20.0309 41.8705 21.3396 41.0128 22.25C39.812 23.6725 37.6392 24.2984 35.8666 23.8432C34.0368 23.388 32.5501 21.7948 32.2071 19.8602C31.9212 18.6654 32.3214 17.2429 33.3507 16.5032C34.4371 15.8204 35.981 15.9911 36.8958 16.8446C37.9251 17.6981 38.3254 19.0068 38.2682 20.2585C38.211 21.5103 37.7536 22.7621 37.1246 23.8432C35.7027 26.5014 35.1173 26.4916 32.2071 30.8575", stroke: "#ABB5CC", strokeMiterlimit: "10", strokeDasharray: "4 4" }),
|
|
2482
|
-
React__default.createElement("path", { d: "M46.2749 3.95757C46.0575 4.75059 45.1881 5.03896 44.3187 4.53431C43.3769 4.10176 42.7249 3.74129 42.8698 3.02037C43.0871 2.29945 43.9565 2.22735 44.9708 2.15526C46.2024 2.01108 46.4198 3.16455 46.2749 3.95757Z", fill: "#DAE2EB" }),
|
|
2483
|
-
React__default.createElement("path", { d: "M39.2479 4.67842C39.6102 5.32726 40.6245 5.75981 41.3489 5.11098C42.1459 4.39005 42.7979 3.88541 42.4357 3.16448C42.0734 2.51565 41.4938 2.73193 40.2622 2.87611C39.2479 3.09239 38.8132 3.9575 39.2479 4.67842Z", fill: "#DAE2EB" }),
|
|
2484
|
-
React__default.createElement("path", { d: "M42.4358 2.01104C42.9429 1.93895 43.4501 2.22732 43.595 2.65987C43.6674 2.80406 43.7399 3.02034 43.7399 3.16452C43.8848 4.17381 43.5225 5.03892 42.9429 5.11102C42.2909 5.2552 41.6389 4.53428 41.5664 3.59707C41.5664 3.3087 41.5664 3.16452 41.5664 2.94824C41.6389 2.4436 41.9286 2.08313 42.4358 2.01104C42.5082 2.01104 42.4358 2.01104 42.4358 2.01104Z", fill: "#989FB0" }),
|
|
2485
|
-
React__default.createElement("path", { d: "M27.9127 37.0298C28.4405 37.0298 28.8684 36.6019 28.8684 36.0741C28.8684 35.5463 28.4405 35.1184 27.9127 35.1184C27.3849 35.1184 26.957 35.5463 26.957 36.0741C26.957 36.6019 27.3849 37.0298 27.9127 37.0298Z", fill: "#989FB0" }),
|
|
2486
|
-
React__default.createElement("path", { d: "M37.4186 37.0298C37.9464 37.0298 38.3742 36.6019 38.3742 36.0741C38.3742 35.5463 37.9464 35.1184 37.4186 35.1184C36.8908 35.1184 36.4629 35.5463 36.4629 36.0741C36.4629 36.6019 36.8908 37.0298 37.4186 37.0298Z", fill: "#989FB0" }),
|
|
2487
|
-
React__default.createElement("path", { d: "M34.2147 43.3063H31.2186C30.7536 43.3063 30.3662 42.9188 30.3662 42.4539C30.3662 41.989 30.7536 41.6016 31.2186 41.6016H34.1889C34.6538 41.6016 35.0413 41.989 35.0413 42.4539C35.0671 42.9188 34.6797 43.3063 34.2147 43.3063Z", fill: "#989FB0" }),
|
|
2488
|
-
React__default.createElement("defs", null,
|
|
2489
|
-
React__default.createElement("linearGradient", { id: "paint0_linear_2578_27197", x1: "32.6517", y1: "25.3966", x2: "32.6517", y2: "47.1455", gradientUnits: "userSpaceOnUse" },
|
|
2490
|
-
React__default.createElement("stop", { stopColor: "#FDFEFF" }),
|
|
2491
|
-
React__default.createElement("stop", { offset: "0.9964", stopColor: "#ECF0F5" })))));
|
|
2492
|
-
};
|
|
2493
|
-
|
|
2494
|
-
const libraries = ['places'];
|
|
2495
|
-
const GoogleLocationBlock = (props) => {
|
|
2496
|
-
var _a;
|
|
2497
|
-
const { inputWrapperOrder = ['label', 'input', 'description', 'error'], defaultValue, value: valueProps, onChange: onChangeProps, locale } = props, restProps = __rest(props, ["inputWrapperOrder", "defaultValue", "value", "onChange", "locale"]);
|
|
2498
|
-
const [LoadScript, setLoadScript] = useState(null);
|
|
2499
|
-
const [value, setValue] = useState(defaultValue || valueProps);
|
|
2500
|
-
const { predictions } = usePlacesAutocomplete(value, '', locale === 'tl-PH' ? 'en' : (_a = locale === null || locale === void 0 ? void 0 : locale.split('-')) === null || _a === void 0 ? void 0 : _a[0]);
|
|
2501
|
-
const onChangeAutocomplete = useCallback((s) => {
|
|
2502
|
-
setValue(s);
|
|
2503
|
-
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(s);
|
|
2504
|
-
}, []);
|
|
2505
|
-
const onClickItem = useCallback((item) => {
|
|
2506
|
-
/** For sure get value */
|
|
2507
|
-
setValue(item.value);
|
|
2508
|
-
const predCur = predictions === null || predictions === void 0 ? void 0 : predictions.find(({ description }) => description === item.value);
|
|
2509
|
-
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(item.value, predCur === null || predCur === void 0 ? void 0 : predCur.rawData);
|
|
2510
|
-
}, [onChangeProps, predictions]);
|
|
2511
|
-
useEffect(() => {
|
|
2512
|
-
setValue(valueProps);
|
|
2513
|
-
}, [valueProps]);
|
|
2514
|
-
useEffect(() => {
|
|
2515
|
-
var _a, _b, _c;
|
|
2516
|
-
// only load extra google script when not yet loaded
|
|
2517
|
-
if (!((_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.places) === null || _c === void 0 ? void 0 : _c.AutocompleteService) && !LoadScript) {
|
|
2518
|
-
import('@react-google-maps/api').then((m) => {
|
|
2519
|
-
setLoadScript(() => m.LoadScript);
|
|
2520
|
-
});
|
|
2521
|
-
}
|
|
2522
|
-
}, []);
|
|
2523
|
-
return (React__default.createElement(Autocomplete, Object.assign({ defaultValue: defaultValue, value: value, onChange: onChangeAutocomplete, data: predictions.map((pred) => {
|
|
2524
|
-
return { value: pred.description, label: pred.description };
|
|
2525
|
-
}), filter: () => true, onItemSubmit: onClickItem, inputWrapperOrder: inputWrapperOrder, zIndex: ZINDEX_SSO - 9e6 + 2, withinPortal: true, styles: { dropdown: { pointerEvents: 'auto' } }, inputContainer: (children) => {
|
|
2526
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
2527
|
-
LoadScript && (React__default.createElement(LoadScript, { googleMapsApiKey: GOOGLE_API_KEY, libraries: libraries, loadingElement: React__default.createElement(React__default.Fragment, null), style: { width: '100%' } })),
|
|
2528
|
-
children));
|
|
2529
|
-
} }, restProps)));
|
|
2530
|
-
};
|
|
2531
|
-
|
|
2532
2470
|
const formatLeadGenFormValue = (values, blocks) => {
|
|
2533
2471
|
const newValues = {};
|
|
2534
2472
|
for (const block of blocks) {
|
|
@@ -2877,22 +2815,17 @@ const TextField$1 = (props) => {
|
|
|
2877
2815
|
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
2878
2816
|
});
|
|
2879
2817
|
const [shrink, setShrink] = useState(shrinkProps);
|
|
2880
|
-
const focusInput = (target) => {
|
|
2881
|
-
const $textEl = target.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
2882
|
-
const $focusEl = $textEl.item($textEl.length - 1);
|
|
2883
|
-
if ($focusEl) {
|
|
2884
|
-
$focusEl.focus({ preventScroll: true });
|
|
2885
|
-
}
|
|
2886
|
-
};
|
|
2887
2818
|
const onClick = useCallback((e) => {
|
|
2819
|
+
setShrink(true);
|
|
2820
|
+
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
2888
2821
|
if (shrink) {
|
|
2889
|
-
e.preventDefault();
|
|
2890
|
-
focusInput(e.currentTarget);
|
|
2891
2822
|
return;
|
|
2892
2823
|
}
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2824
|
+
const $textEl = e.currentTarget.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
2825
|
+
const $focusEl = $textEl.item($textEl.length - 1);
|
|
2826
|
+
if ($focusEl) {
|
|
2827
|
+
$focusEl.focus();
|
|
2828
|
+
}
|
|
2896
2829
|
}, [shrink]);
|
|
2897
2830
|
useEffect(() => {
|
|
2898
2831
|
setShrink(shrinkProps);
|
|
@@ -2905,6 +2838,44 @@ const ChoiceField$1 = (props) => {
|
|
|
2905
2838
|
return (React__default.createElement(StyledChoiceFieldContainer$1, Object.assign({ className: clsx(className, 'choiceField') }, restProps), children));
|
|
2906
2839
|
};
|
|
2907
2840
|
|
|
2841
|
+
const libraries = ['places'];
|
|
2842
|
+
const GoogleLocationBlock = (props) => {
|
|
2843
|
+
var _a;
|
|
2844
|
+
const { inputWrapperOrder = ['label', 'input', 'description', 'error'], defaultValue, value: valueProps, onChange: onChangeProps, locale } = props, restProps = __rest(props, ["inputWrapperOrder", "defaultValue", "value", "onChange", "locale"]);
|
|
2845
|
+
const [LoadScript, setLoadScript] = useState(null);
|
|
2846
|
+
const [value, setValue] = useState(defaultValue || valueProps);
|
|
2847
|
+
const { predictions } = usePlacesAutocomplete(value, '', locale === 'tl-PH' ? 'en' : (_a = locale === null || locale === void 0 ? void 0 : locale.split('-')) === null || _a === void 0 ? void 0 : _a[0]);
|
|
2848
|
+
const onChangeAutocomplete = useCallback((s) => {
|
|
2849
|
+
setValue(s);
|
|
2850
|
+
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(s);
|
|
2851
|
+
}, []);
|
|
2852
|
+
const onClickItem = useCallback((item) => {
|
|
2853
|
+
/** For sure get value */
|
|
2854
|
+
setValue(item.value);
|
|
2855
|
+
const predCur = predictions === null || predictions === void 0 ? void 0 : predictions.find(({ description }) => description === item.value);
|
|
2856
|
+
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(item.value, predCur === null || predCur === void 0 ? void 0 : predCur.rawData);
|
|
2857
|
+
}, [onChangeProps, predictions]);
|
|
2858
|
+
useEffect(() => {
|
|
2859
|
+
setValue(valueProps);
|
|
2860
|
+
}, [valueProps]);
|
|
2861
|
+
useEffect(() => {
|
|
2862
|
+
var _a, _b, _c;
|
|
2863
|
+
// only load extra google script when not yet loaded
|
|
2864
|
+
if (!((_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.places) === null || _c === void 0 ? void 0 : _c.AutocompleteService) && !LoadScript) {
|
|
2865
|
+
import('@react-google-maps/api').then((m) => {
|
|
2866
|
+
setLoadScript(() => m.LoadScript);
|
|
2867
|
+
});
|
|
2868
|
+
}
|
|
2869
|
+
}, []);
|
|
2870
|
+
return (React__default.createElement(Autocomplete, Object.assign({ defaultValue: defaultValue, value: value, onChange: onChangeAutocomplete, data: predictions.map((pred) => {
|
|
2871
|
+
return { value: pred.description, label: pred.description };
|
|
2872
|
+
}), filter: () => true, onItemSubmit: onClickItem, inputWrapperOrder: inputWrapperOrder, zIndex: ZINDEX_SSO - 9e6 + 2, withinPortal: true, styles: { dropdown: { pointerEvents: 'auto' } }, inputContainer: (children) => {
|
|
2873
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2874
|
+
LoadScript && (React__default.createElement(LoadScript, { googleMapsApiKey: GOOGLE_API_KEY, libraries: libraries, loadingElement: React__default.createElement(React__default.Fragment, null), style: { width: '100%' } })),
|
|
2875
|
+
children));
|
|
2876
|
+
} }, restProps)));
|
|
2877
|
+
};
|
|
2878
|
+
|
|
2908
2879
|
const LeadGenForm = forwardRef((props, ref) => {
|
|
2909
2880
|
const { locale, blocks, scrollToErrorField = true, form: formProps, rules: validate, initialValues, onFinish, onFinishFailed, className, style, } = props;
|
|
2910
2881
|
const formRef = useRef(null);
|
|
@@ -2958,73 +2929,52 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
2958
2929
|
return (React__default.createElement("form", { ref: formRef, onSubmit: form.onSubmit(middlewareFinish, middlewareFinishFailed), className: className, style: style },
|
|
2959
2930
|
React__default.createElement(StyledLeadGenFormInner, { className: "leadgen-form_inputs" }, blocks.map((block, idx) => {
|
|
2960
2931
|
const { id, name: blockName, data } = block;
|
|
2961
|
-
const { placeholder
|
|
2932
|
+
const { placeholder, value: name, required, listQuestion, valueHTML, isSendMailChimp = false, } = data;
|
|
2962
2933
|
const formInputProps = form.getInputProps(name);
|
|
2963
2934
|
const { value, error } = formInputProps;
|
|
2964
2935
|
const reactKey = `${id}-${idx}`;
|
|
2965
2936
|
switch (blockName) {
|
|
2966
2937
|
case LEADGEN_BLOCK.TextBlock: {
|
|
2967
2938
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2968
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2939
|
+
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "text", "data-control": "text" }, formInputProps))));
|
|
2969
2940
|
}
|
|
2970
2941
|
case LEADGEN_BLOCK.NumberBlock: {
|
|
2971
2942
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2972
|
-
React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label:
|
|
2943
|
+
React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "number", "data-control": "number" }, formInputProps))));
|
|
2973
2944
|
}
|
|
2974
2945
|
case LEADGEN_BLOCK.EmailBlock: {
|
|
2975
2946
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2976
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2947
|
+
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, "data-control": "email" }, formInputProps))));
|
|
2977
2948
|
}
|
|
2978
2949
|
case LEADGEN_BLOCK.PhoneOtpBlock:
|
|
2979
2950
|
case LEADGEN_BLOCK.WhatsappOtpBlock:
|
|
2980
2951
|
case LEADGEN_BLOCK.ZaloOtpBlock:
|
|
2981
2952
|
case LEADGEN_BLOCK.PhoneBlock: {
|
|
2982
2953
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2983
|
-
React__default.createElement(PhoneInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2954
|
+
React__default.createElement(PhoneInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), type: "text", "data-control": "tel" }, formInputProps))));
|
|
2984
2955
|
}
|
|
2985
2956
|
case LEADGEN_BLOCK.LocationBlock: {
|
|
2986
2957
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2987
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label:
|
|
2958
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, locale: locale, "data-control": "text" }, formInputProps))));
|
|
2988
2959
|
}
|
|
2989
2960
|
case LEADGEN_BLOCK.DateBlock: {
|
|
2990
2961
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2991
|
-
React__default.createElement(DateInput, Object.assign({ locale: (MAPPED_LOCALE === null || MAPPED_LOCALE === void 0 ? void 0 : MAPPED_LOCALE[locale]) || MAPPED_LOCALE['vi-VN'], valueFormat: "DD/MM/YYYY", name: name, withAsterisk: required, label:
|
|
2962
|
+
React__default.createElement(DateInput, Object.assign({ locale: (MAPPED_LOCALE === null || MAPPED_LOCALE === void 0 ? void 0 : MAPPED_LOCALE[locale]) || MAPPED_LOCALE['vi-VN'], valueFormat: "DD/MM/YYYY", name: name, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "default", "data-control": "date" }, formInputProps))));
|
|
2992
2963
|
}
|
|
2993
2964
|
case LEADGEN_BLOCK.DropdownBlock:
|
|
2994
2965
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2995
2966
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
2996
|
-
React__default.createElement(Select$1, Object.assign({ name: name, withAsterisk: required, label:
|
|
2967
|
+
React__default.createElement(Select$1, Object.assign({ name: name, withAsterisk: required, label: placeholder, placeholder: placeholder, data: listQuestion.map((l) => ({
|
|
2997
2968
|
value: l.value,
|
|
2998
2969
|
label: l.placeholder,
|
|
2999
|
-
}))
|
|
3000
|
-
item: {
|
|
3001
|
-
paddingBlock: 12,
|
|
3002
|
-
paddingInline: 10,
|
|
3003
|
-
fontSize: 16,
|
|
3004
|
-
lineHeight: 1.5,
|
|
3005
|
-
},
|
|
3006
|
-
nothingFound: {
|
|
3007
|
-
fontSize: 54,
|
|
3008
|
-
paddingBlock: 30,
|
|
3009
|
-
},
|
|
3010
|
-
itemsWrapper: {
|
|
3011
|
-
padding: 6,
|
|
3012
|
-
},
|
|
3013
|
-
dropdown: {
|
|
3014
|
-
'.mantine-ScrollArea-scrollbar[data-orientation="vertical"]': {
|
|
3015
|
-
'--radix-scroll-area-thumb-width': '6px',
|
|
3016
|
-
width: 'var(--radix-scroll-area-thumb-width)',
|
|
3017
|
-
paddingInline: 0,
|
|
3018
|
-
},
|
|
3019
|
-
},
|
|
3020
|
-
}, maxDropdownHeight: 192 }, formInputProps))));
|
|
2970
|
+
})) }, formInputProps))));
|
|
3021
2971
|
case LEADGEN_BLOCK.CheckboxBlock: {
|
|
3022
2972
|
const formInputCheckboxProps = form.getInputProps(name, {
|
|
3023
2973
|
type: 'checkbox',
|
|
3024
2974
|
});
|
|
3025
2975
|
return (React__default.createElement(ChoiceField$1, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
3026
2976
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
3027
|
-
React__default.createElement(Checkbox$1.Group, Object.assign({ size: "md", withAsterisk: required, label:
|
|
2977
|
+
React__default.createElement(Checkbox$1.Group, Object.assign({ size: "md", withAsterisk: required, label: placeholder, value: value, sx: {
|
|
3028
2978
|
display: 'flex',
|
|
3029
2979
|
flexDirection: 'column',
|
|
3030
2980
|
flexWrap: 'wrap',
|
|
@@ -3036,7 +2986,7 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
3036
2986
|
case LEADGEN_BLOCK.RadioBlock: {
|
|
3037
2987
|
return (React__default.createElement(ChoiceField$1, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
3038
2988
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
3039
|
-
React__default.createElement(Radio$1.Group, Object.assign({ size: "md", withAsterisk: required, label:
|
|
2989
|
+
React__default.createElement(Radio$1.Group, Object.assign({ size: "md", withAsterisk: required, label: placeholder, value: value, spellCheck: true, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, inputContainer: (children) => {
|
|
3040
2990
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
3041
2991
|
} }, formInputProps), listQuestion.map((l, _index) => (React__default.createElement(Radio$1, { name: name, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
3042
2992
|
}
|
|
@@ -3655,182 +3605,6 @@ const useViewportDimensions = () => {
|
|
|
3655
3605
|
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3656
3606
|
};
|
|
3657
3607
|
|
|
3658
|
-
const StyledLeadGenLightBoxBFooter = styled.div `
|
|
3659
|
-
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3660
|
-
padding-inline: var(--spacing-x, 20px);
|
|
3661
|
-
padding-bottom: var(--spacing-y, 20px);
|
|
3662
|
-
`;
|
|
3663
|
-
const StyledLeadGenLightBoxBBody = styled.div `
|
|
3664
|
-
flex: 1;
|
|
3665
|
-
min-height: 0;
|
|
3666
|
-
overflow: auto;
|
|
3667
|
-
padding-inline: var(--spacing-y, 20px);
|
|
3668
|
-
padding-block: calc(var(--spacing-x, 20px) * 8 / 20);
|
|
3669
|
-
&::-webkit-scrollbar {
|
|
3670
|
-
width: 6px;
|
|
3671
|
-
height: 6px;
|
|
3672
|
-
}
|
|
3673
|
-
|
|
3674
|
-
&::-webkit-scrollbar-track {
|
|
3675
|
-
background-color: transparent;
|
|
3676
|
-
}
|
|
3677
|
-
|
|
3678
|
-
&::-webkit-scrollbar-thumb {
|
|
3679
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
3680
|
-
border-radius: 6px;
|
|
3681
|
-
}
|
|
3682
|
-
`;
|
|
3683
|
-
const StyledLeadGenLightBoxBHeader = styled.div `
|
|
3684
|
-
display: flex;
|
|
3685
|
-
padding-top: var(--spacing-y, 20px);
|
|
3686
|
-
padding-inline: var(--spacing-x, 20px);
|
|
3687
|
-
padding-bottom: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3688
|
-
`;
|
|
3689
|
-
const StyledLeadGenLightBoxBWrapper = styled.div `
|
|
3690
|
-
height: 100%;
|
|
3691
|
-
display: flex;
|
|
3692
|
-
flex-direction: column;
|
|
3693
|
-
`;
|
|
3694
|
-
const StyledLeadGenLightBoxB = styled.div `
|
|
3695
|
-
--spacing-x: 20px;
|
|
3696
|
-
--spacing-y: 20px;
|
|
3697
|
-
--close-width: 24px;
|
|
3698
|
-
--close-height: 24px;
|
|
3699
|
-
|
|
3700
|
-
// For old version, Wrap every thing in children
|
|
3701
|
-
&[data-type='LightBoxB_typeA'] {
|
|
3702
|
-
height: 100%;
|
|
3703
|
-
width: 100%;
|
|
3704
|
-
.leadgen-wrapper,
|
|
3705
|
-
.leadgen-inner,
|
|
3706
|
-
.leadgen-form {
|
|
3707
|
-
height: 100%;
|
|
3708
|
-
}
|
|
3709
|
-
.leadgen-content {
|
|
3710
|
-
height: 100%;
|
|
3711
|
-
display: flex;
|
|
3712
|
-
flex-direction: column;
|
|
3713
|
-
}
|
|
3714
|
-
.leadgen-header {
|
|
3715
|
-
display: none;
|
|
3716
|
-
}
|
|
3717
|
-
.leadgen-title {
|
|
3718
|
-
padding-right: calc(var(--close-width, 24px) * 50 / 24);
|
|
3719
|
-
}
|
|
3720
|
-
.leadgen-description {
|
|
3721
|
-
display: none;
|
|
3722
|
-
}
|
|
3723
|
-
.leadgen-body {
|
|
3724
|
-
flex: 1;
|
|
3725
|
-
min-height: 0;
|
|
3726
|
-
}
|
|
3727
|
-
|
|
3728
|
-
.leadgen-close_btn {
|
|
3729
|
-
top: var(--spacing-y, 20px);
|
|
3730
|
-
right: var(--spacing-x, 20px);
|
|
3731
|
-
width: var(--close-width, 24px) !important;
|
|
3732
|
-
height: var(--close-height, 24px);
|
|
3733
|
-
box-shadow: none;
|
|
3734
|
-
font-size: 24px;
|
|
3735
|
-
}
|
|
3736
|
-
|
|
3737
|
-
.leadgen-empty_footer {
|
|
3738
|
-
.leadgen-btn {
|
|
3739
|
-
flex: 1;
|
|
3740
|
-
min-width: 0;
|
|
3741
|
-
}
|
|
3742
|
-
}
|
|
3743
|
-
|
|
3744
|
-
.leadgen-form_body {
|
|
3745
|
-
overflow: auto;
|
|
3746
|
-
animation: scrolling forwards;
|
|
3747
|
-
animation-timeline: scroll(self);
|
|
3748
|
-
}
|
|
3749
|
-
@keyframes scrolling {
|
|
3750
|
-
0%,
|
|
3751
|
-
to {
|
|
3752
|
-
border-bottom: 1px solid ${theme.colors.neutral100};
|
|
3753
|
-
}
|
|
3754
|
-
}
|
|
3755
|
-
}
|
|
3756
|
-
`;
|
|
3757
|
-
const StyledMotionContainer = styled(motion.div) `
|
|
3758
|
-
position: fixed;
|
|
3759
|
-
inset: 0;
|
|
3760
|
-
z-index: ${ZINDEX_SSO + 1};
|
|
3761
|
-
background-color: #fff;
|
|
3762
|
-
`;
|
|
3763
|
-
|
|
3764
|
-
const PREFIX_CLS = 'LightBoxB_typeA';
|
|
3765
|
-
const DURATION = 1000 * 0.5;
|
|
3766
|
-
const DRAWER_STYLE = {
|
|
3767
|
-
visible: {
|
|
3768
|
-
opacity: 1,
|
|
3769
|
-
translateY: '0px',
|
|
3770
|
-
transitionProperty: 'translate',
|
|
3771
|
-
transitionDuration: '0.25s',
|
|
3772
|
-
},
|
|
3773
|
-
hidden: {
|
|
3774
|
-
opacity: 0,
|
|
3775
|
-
translateY: '100%',
|
|
3776
|
-
transitionProperty: 'translate',
|
|
3777
|
-
transitionDuration: '0.25s',
|
|
3778
|
-
},
|
|
3779
|
-
};
|
|
3780
|
-
const LeadGenLightBoxBTypeA = (props) => {
|
|
3781
|
-
const { visible, onVisible, icon, title, buttonText, blocks, children } = props, restProps = __rest(props, ["visible", "onVisible", "icon", "title", "buttonText", "blocks", "children"]);
|
|
3782
|
-
const formRef = useRef();
|
|
3783
|
-
const [open, setOpen] = useState(visible);
|
|
3784
|
-
const { height } = useViewportDimensions();
|
|
3785
|
-
usePreventScroll();
|
|
3786
|
-
const onOpenChange = useCallback((open) => {
|
|
3787
|
-
if (!open) {
|
|
3788
|
-
// Wait for duration of animation
|
|
3789
|
-
setTimeout(() => {
|
|
3790
|
-
onVisible === null || onVisible === void 0 ? void 0 : onVisible(open);
|
|
3791
|
-
}, DURATION);
|
|
3792
|
-
return;
|
|
3793
|
-
}
|
|
3794
|
-
onVisible === null || onVisible === void 0 ? void 0 : onVisible(open);
|
|
3795
|
-
}, [onVisible]);
|
|
3796
|
-
const iconComp = useMemo(() => {
|
|
3797
|
-
if (!icon) {
|
|
3798
|
-
return null;
|
|
3799
|
-
}
|
|
3800
|
-
return React__default.createElement(React__default.Fragment, null);
|
|
3801
|
-
}, [icon]);
|
|
3802
|
-
const titleComp = useMemo(() => {
|
|
3803
|
-
if (!title) {
|
|
3804
|
-
return null;
|
|
3805
|
-
}
|
|
3806
|
-
return title;
|
|
3807
|
-
}, [title]);
|
|
3808
|
-
const childrenComp = useMemo(() => {
|
|
3809
|
-
if (children) {
|
|
3810
|
-
return children;
|
|
3811
|
-
}
|
|
3812
|
-
return (React__default.createElement(StyledLeadGenLightBoxBWrapper, { className: `${PREFIX_CLS}_wrapper lightboxB_wrapper` },
|
|
3813
|
-
React__default.createElement(StyledLeadGenLightBoxBHeader, { className: `${PREFIX_CLS}_header lightboxB_header` },
|
|
3814
|
-
React__default.createElement("div", { className: "lightBoxB_header_icon" }, iconComp),
|
|
3815
|
-
React__default.createElement("div", { className: "lightBoxB_header_title" }, titleComp),
|
|
3816
|
-
React__default.createElement("div", { className: "lightBoxB_header_close", onClick: () => onOpenChange(false) },
|
|
3817
|
-
React__default.createElement(CloseButton, null))),
|
|
3818
|
-
React__default.createElement(StyledLeadGenLightBoxBBody, { className: `${PREFIX_CLS}_body lightboxB_body` },
|
|
3819
|
-
React__default.createElement(LeadGenForm, Object.assign({ ref: formRef, blocks: blocks }, restProps))),
|
|
3820
|
-
React__default.createElement(StyledLeadGenLightBoxBFooter, { className: `${PREFIX_CLS}_footer lightboxB_footer` },
|
|
3821
|
-
React__default.createElement(Button, { onClick: () => { var _a; return (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.submit(); } }, buttonText))));
|
|
3822
|
-
}, [children, onOpenChange]);
|
|
3823
|
-
useEffect(() => {
|
|
3824
|
-
setOpen(visible);
|
|
3825
|
-
}, [visible]);
|
|
3826
|
-
return (React__default.createElement(StyledMotionContainer, { animate: open ? 'visible' : 'hidden', variants: DRAWER_STYLE },
|
|
3827
|
-
React__default.createElement(StyledLeadGenLightBoxB, { "data-type": "LightBoxB_typeA", style: height ? { maxHeight: height } : undefined }, childrenComp)));
|
|
3828
|
-
};
|
|
3829
|
-
|
|
3830
|
-
const LeadGenLightBoxB = (props) => {
|
|
3831
|
-
return React__default.createElement(LeadGenLightBoxBTypeA, Object.assign({}, props));
|
|
3832
|
-
};
|
|
3833
|
-
|
|
3834
3608
|
const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkNewTab, linkText, image, }) => {
|
|
3835
3609
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
3836
3610
|
const { width: imageWidth, height: imageHeight, loaded: imageLoaded, } = useImageSize(image);
|
|
@@ -4200,7 +3974,6 @@ const StyledTextFieldContainer = styled.div `
|
|
|
4200
3974
|
outline: none !important;
|
|
4201
3975
|
border: none;
|
|
4202
3976
|
box-shadow: none;
|
|
4203
|
-
font-size: var(--input, 15px);
|
|
4204
3977
|
padding: 0 var(--phone-input-space-x, 8px);
|
|
4205
3978
|
opacity: 0;
|
|
4206
3979
|
color: ${theme.colors.gray800} !important;
|
|
@@ -4320,22 +4093,17 @@ const TextField = (props) => {
|
|
|
4320
4093
|
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
4321
4094
|
});
|
|
4322
4095
|
const [shrink, setShrink] = useState(shrinkProps);
|
|
4323
|
-
const focusInput = (target) => {
|
|
4324
|
-
const $textEl = target.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
4325
|
-
const $focusEl = $textEl.item($textEl.length - 1);
|
|
4326
|
-
if ($focusEl) {
|
|
4327
|
-
$focusEl.focus({ preventScroll: true });
|
|
4328
|
-
}
|
|
4329
|
-
};
|
|
4330
4096
|
const onClick = useCallback((e) => {
|
|
4097
|
+
setShrink(true);
|
|
4098
|
+
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
4331
4099
|
if (shrink) {
|
|
4332
|
-
e.preventDefault();
|
|
4333
|
-
focusInput(e.currentTarget);
|
|
4334
4100
|
return;
|
|
4335
4101
|
}
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4102
|
+
const $textEl = e.currentTarget.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
4103
|
+
const $focusEl = $textEl.item($textEl.length - 1);
|
|
4104
|
+
if ($focusEl) {
|
|
4105
|
+
$focusEl.focus();
|
|
4106
|
+
}
|
|
4339
4107
|
}, [shrink]);
|
|
4340
4108
|
useEffect(() => {
|
|
4341
4109
|
setShrink(shrinkProps);
|
|
@@ -4362,7 +4130,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4362
4130
|
return (React__default.createElement(React__default.Fragment, null, listBlockAdded.map((b, index) => {
|
|
4363
4131
|
var _a;
|
|
4364
4132
|
const { name = '', data = {}, id } = b || {};
|
|
4365
|
-
const { placeholder
|
|
4133
|
+
const { placeholder, value, align, listQuestion, isSendMailChimp = false, newtab, url, } = data;
|
|
4366
4134
|
const required = (_a = data.required) !== null && _a !== void 0 ? _a : true;
|
|
4367
4135
|
const formValue = (formValues === null || formValues === void 0 ? void 0 : formValues[value]) || null;
|
|
4368
4136
|
switch (name) {
|
|
@@ -4372,23 +4140,23 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4372
4140
|
return (React__default.createElement(SubtitleBlock, { key: index, align: align }, value));
|
|
4373
4141
|
case 'TextBlock':
|
|
4374
4142
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4375
|
-
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder:
|
|
4143
|
+
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: placeholder,
|
|
4376
4144
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4377
4145
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4378
|
-
label:
|
|
4146
|
+
label: placeholder, "data-control": "text", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4379
4147
|
case 'NumberBlock':
|
|
4380
4148
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4381
|
-
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder:
|
|
4149
|
+
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: placeholder,
|
|
4382
4150
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4383
4151
|
// onChange={(e) => inputOnChange('number', e)}
|
|
4384
|
-
label:
|
|
4152
|
+
label: placeholder, "data-control": "number", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4385
4153
|
case 'EmailBlock':
|
|
4386
4154
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4387
4155
|
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4388
4156
|
// type="email"
|
|
4389
|
-
placeholder:
|
|
4157
|
+
placeholder: placeholder,
|
|
4390
4158
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4391
|
-
label:
|
|
4159
|
+
label: placeholder, "data-control": "email", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4392
4160
|
case 'PhoneOtpBlock':
|
|
4393
4161
|
case 'WhatsappOtpBlock':
|
|
4394
4162
|
case 'ZaloOtpBlock':
|
|
@@ -4398,19 +4166,19 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4398
4166
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: clsx('lead-modal__form-control leadgen-form_field', {
|
|
4399
4167
|
'leadgen-form_field_error': !!error,
|
|
4400
4168
|
}) },
|
|
4401
|
-
React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label:
|
|
4169
|
+
React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label: placeholder, "data-invalid": !!error, labelProps: { htmlFor: htmlForId }, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error },
|
|
4402
4170
|
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
4403
|
-
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder:
|
|
4171
|
+
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: placeholder,
|
|
4404
4172
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4405
4173
|
id: htmlForId, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel" }, formPhoneInputWrapper))))));
|
|
4406
4174
|
}
|
|
4407
4175
|
case 'LocationBlock': {
|
|
4408
4176
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4409
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder:
|
|
4177
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: placeholder, label: placeholder, "data-control": "text", locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4410
4178
|
}
|
|
4411
4179
|
case 'DateBlock': {
|
|
4412
4180
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = __rest(_c, ["error"]);
|
|
4413
|
-
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label:
|
|
4181
|
+
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label: placeholder, "data-invalid": !!error, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error, className: "lead-modal__form-control leadgen-form_field" },
|
|
4414
4182
|
React__default.createElement(InputDate, Object.assign({ name: value, error: Boolean(error), locale: locale, "data-extra": true, "data-name": value, "data-control": "date", className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4415
4183
|
}
|
|
4416
4184
|
case 'LinkButtonBlock':
|
|
@@ -4427,7 +4195,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4427
4195
|
}, "data-name": value + '-mailchimp' })),
|
|
4428
4196
|
React__default.createElement(Checkbox.Group, Object.assign({ withAsterisk: required,
|
|
4429
4197
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4430
|
-
label:
|
|
4198
|
+
label: placeholder, size: "md", sx: {
|
|
4431
4199
|
display: 'flex',
|
|
4432
4200
|
flexDirection: 'column',
|
|
4433
4201
|
flexWrap: 'wrap',
|
|
@@ -4440,41 +4208,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4440
4208
|
isSendMailChimp && (React__default.createElement(Input$1, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
4441
4209
|
React__default.createElement(Radio.Group, Object.assign({ withAsterisk: required,
|
|
4442
4210
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4443
|
-
label:
|
|
4211
|
+
label: placeholder, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4444
4212
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4445
4213
|
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
4446
4214
|
case 'DropdownBlock':
|
|
4447
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field
|
|
4215
|
+
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field", key: index },
|
|
4448
4216
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
4449
4217
|
React__default.createElement(Select
|
|
4450
4218
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4451
4219
|
, Object.assign({
|
|
4452
4220
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4453
|
-
label:
|
|
4221
|
+
label: placeholder, placeholder: placeholder, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
4454
4222
|
value: l.value,
|
|
4455
4223
|
label: l.placeholder,
|
|
4456
|
-
})),
|
|
4457
|
-
item: {
|
|
4458
|
-
paddingBlock: 12,
|
|
4459
|
-
paddingInline: 10,
|
|
4460
|
-
fontSize: 16,
|
|
4461
|
-
lineHeight: 1.5,
|
|
4462
|
-
},
|
|
4463
|
-
nothingFound: {
|
|
4464
|
-
fontSize: 54,
|
|
4465
|
-
paddingBlock: 30,
|
|
4466
|
-
},
|
|
4467
|
-
itemsWrapper: {
|
|
4468
|
-
padding: 6,
|
|
4469
|
-
},
|
|
4470
|
-
dropdown: {
|
|
4471
|
-
'.mantine-ScrollArea-scrollbar[data-orientation="vertical"]': {
|
|
4472
|
-
'--radix-scroll-area-thumb-width': '6px',
|
|
4473
|
-
width: 'var(--radix-scroll-area-thumb-width)',
|
|
4474
|
-
paddingInline: 0,
|
|
4475
|
-
},
|
|
4476
|
-
},
|
|
4477
|
-
}, maxDropdownHeight: 192 }, form.getInputProps(value)))));
|
|
4224
|
+
})) }, form.getInputProps(value)))));
|
|
4478
4225
|
case 'TncBlock':
|
|
4479
4226
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = __rest(_d, ["error"]);
|
|
4480
4227
|
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
@@ -4727,8 +4474,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4727
4474
|
LEADGEN_LAYOUT.Sidebar,
|
|
4728
4475
|
LEADGEN_LAYOUT.Slider,
|
|
4729
4476
|
];
|
|
4730
|
-
const
|
|
4731
|
-
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
4477
|
+
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, showThankyou, campaignId, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
4732
4478
|
var _a, _b;
|
|
4733
4479
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
4734
4480
|
const { isMobile } = useScreenSize();
|
|
@@ -4763,7 +4509,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4763
4509
|
const isFullscreen = currentLayout === LEADGEN_LAYOUT.Fullscreen;
|
|
4764
4510
|
const isInPage = isInline || isSidebar;
|
|
4765
4511
|
const isDrawer = isLightBoxB && isMobile;
|
|
4766
|
-
const isNewUI = useMemo(() => CAMPAGE_CODE_LIST_APPLY_NEW_UI.includes(campaignCode), [campaignCode]);
|
|
4767
4512
|
const limitFieldsLightBoxB = isLightBoxB && listBlockAdded.length <= LEADGEN_LIMIT_LIGHTBOXB;
|
|
4768
4513
|
const hasForm = isLightBoxA
|
|
4769
4514
|
? listBlockAdded.some((item) => LEADGEN_BLOCK_INPUT.some((k) => k === (item === null || item === void 0 ? void 0 : item.name)))
|
|
@@ -4806,46 +4551,10 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4806
4551
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4807
4552
|
const onFocus = (e) => {
|
|
4808
4553
|
e.preventDefault();
|
|
4809
|
-
|
|
4810
|
-
const
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
block: 'center',
|
|
4814
|
-
behavior: 'auto',
|
|
4815
|
-
};
|
|
4816
|
-
if ($TextField.classList.contains('DropdownBlock')) {
|
|
4817
|
-
scrollIntoView.block = 'start';
|
|
4818
|
-
const tfOffsetTop = ($TextField === null || $TextField === void 0 ? void 0 : $TextField.offsetTop) || 0;
|
|
4819
|
-
const tfHeight = $TextField.clientHeight;
|
|
4820
|
-
const $ScrollableElement = getParentScroll($TextField);
|
|
4821
|
-
if ($ScrollableElement) {
|
|
4822
|
-
// https://hhgdev.atlassian.net/browse/EL-682
|
|
4823
|
-
const scrollHeight = $ScrollableElement.scrollHeight;
|
|
4824
|
-
if (scrollHeight - (tfOffsetTop + tfHeight) < 192) {
|
|
4825
|
-
scrollIntoView.block = 'end';
|
|
4826
|
-
}
|
|
4827
|
-
}
|
|
4828
|
-
}
|
|
4829
|
-
if (isMobile) {
|
|
4830
|
-
window.scrollTo(0, 0);
|
|
4831
|
-
}
|
|
4832
|
-
$TextField.scrollIntoView(scrollIntoView);
|
|
4833
|
-
}
|
|
4834
|
-
let time = 0;
|
|
4835
|
-
function requestFrame(timestamp) {
|
|
4836
|
-
if (time === 0) {
|
|
4837
|
-
time = timestamp;
|
|
4838
|
-
}
|
|
4839
|
-
if (timestamp - time <= 250) {
|
|
4840
|
-
requestAnimationFrame(requestFrame);
|
|
4841
|
-
}
|
|
4842
|
-
else {
|
|
4843
|
-
scrollIntoView();
|
|
4844
|
-
}
|
|
4845
|
-
}
|
|
4846
|
-
if (isMobile) {
|
|
4847
|
-
requestAnimationFrame(requestFrame);
|
|
4848
|
-
}
|
|
4554
|
+
setTimeout(() => {
|
|
4555
|
+
const target = e.target;
|
|
4556
|
+
target.scrollIntoView({ block: 'center', behavior: 'auto' });
|
|
4557
|
+
}, 300); // Wait a bit to let keyboard open
|
|
4849
4558
|
};
|
|
4850
4559
|
const middlewareOnSubmit = (e) => {
|
|
4851
4560
|
e.preventDefault();
|
|
@@ -4993,13 +4702,18 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4993
4702
|
'leadgen-inline': isInPage,
|
|
4994
4703
|
'leadgen-slider': isSlider,
|
|
4995
4704
|
});
|
|
4996
|
-
const PopupContainer = isDrawer ? (
|
|
4705
|
+
const PopupContainer = isDrawer ? (
|
|
4706
|
+
// <LeadGenLightBoxB
|
|
4707
|
+
// form={form}
|
|
4708
|
+
// loading={isSubmitLoading}
|
|
4709
|
+
// visible={open}
|
|
4710
|
+
// onVisible={() => onOpenChange(false)}
|
|
4711
|
+
// >
|
|
4712
|
+
// {PopupWrapper}
|
|
4713
|
+
// </LeadGenLightBoxB>
|
|
4714
|
+
React__default.createElement(DrawerComponent, { fadeFromIndex: ZINDEX_SSO - 9e6, open: open, snapPoints: [0.8, 1], activeSnapPoint: snap, setActiveSnapPoint: setSnap, onOpenChange: onOpenChange, overlayClassName: popupContainerClassName, className: "leadgen-drawer" },
|
|
4997
4715
|
PopupWrapper,
|
|
4998
|
-
React__default.createElement("div", { style: {
|
|
4999
|
-
position: 'absolute',
|
|
5000
|
-
inset: 0,
|
|
5001
|
-
zIndex: snap === 1 ? -1 : 1,
|
|
5002
|
-
}, onClick: () => setSnap(1) })))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName, style: isMobile ? { maxHeight: height } : undefined },
|
|
4716
|
+
React__default.createElement("div", { style: { position: 'absolute', inset: 0, zIndex: snap === 1 ? -1 : 1 }, onClick: () => setSnap(1) }))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName, style: isMobile ? { maxHeight: height } : undefined },
|
|
5003
4717
|
isFullscreen ? (React__default.createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
5004
4718
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
5005
4719
|
} })) : null,
|
|
@@ -5225,7 +4939,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, local
|
|
|
5225
4939
|
currentLayout == 'Fullscreen' ||
|
|
5226
4940
|
currentLayout == 'Sidebar' ||
|
|
5227
4941
|
currentLayout == 'Slider') {
|
|
5228
|
-
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (form, values) => onSubmit(form, values, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id,
|
|
4942
|
+
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (form, values) => onSubmit(form, values, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo }));
|
|
5229
4943
|
}
|
|
5230
4944
|
else if (currentLayout.includes('Skin')) {
|
|
5231
4945
|
return (React__default.createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|