@hhgtech/hhg-components 1.29.427 → 1.29.428-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{GeneralInfo-93abc611.js → GeneralInfo-1aa0091e.js} +85 -77
- package/build/{InputDate-3d59e1f4.js → InputDate-1d0ab729.js} +5 -5
- package/build/{LastPeriod-5a251a32.js → LastPeriod-52e72d62.js} +1 -1
- package/build/{MobileBottomNavigationIcon-08195b91.js → MobileBottomNavigationIcon-f77d8b9b.js} +3 -3
- package/build/{Spinner-887cab59.js → Spinner-35c88da9.js} +1 -1
- package/build/{WhatsApp-b3f88cd2.js → WhatsApp-68a6393b.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +49 -49
- package/build/babyGrowth.js +85 -85
- package/build/cache.js +2 -2
- package/build/care/interfaces/types.d.ts +2 -1
- package/build/care.js +19 -20
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/cardCollapse/index.d.ts +2 -1
- package/build/components/molecules/index.d.ts +1 -0
- package/build/components/molecules/productDetail/generalInfo/index.styled.d.ts +0 -4
- package/build/components/molecules/sumaryInfo/index.d.ts +13 -0
- package/build/components/molecules/sumaryInfo/index.styled.d.ts +25 -0
- package/build/components/organisms/clinicInfo/index.d.ts +1 -1
- package/build/components/organisms/clinicInfo/index.styled.d.ts +7 -0
- package/build/components/organisms/map/index.d.ts +1 -1
- package/build/components.js +102 -102
- package/build/{constants-788956bf.js → constants-e258961a.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-66e75676.js → core-0102830e.js} +1 -1
- package/build/{dataTransform-99529324.js → dataTransform-7ba5c8d2.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-d7f79cd9.js → editor-eaf8d32d.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/{GeneralInfo-fc336c41.js → GeneralInfo-e9e87c34.js} +85 -78
- package/build/esm/{InputDate-8326336a.js → InputDate-036d702a.js} +5 -5
- package/build/esm/{LastPeriod-34ba01a8.js → LastPeriod-083a680a.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-56ace6a0.js → MobileBottomNavigationIcon-3516a7cc.js} +3 -3
- package/build/esm/{Spinner-6a6125b4.js → Spinner-d55b953b.js} +1 -1
- package/build/esm/{WhatsApp-ee1858ec.js → WhatsApp-2ce6f672.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +49 -49
- package/build/esm/babyGrowth.js +85 -85
- package/build/esm/cache.js +2 -2
- package/build/esm/care/interfaces/types.d.ts +2 -1
- package/build/esm/care.js +17 -18
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/atoms/cardCollapse/index.d.ts +2 -1
- package/build/esm/components/molecules/index.d.ts +1 -0
- package/build/esm/components/molecules/productDetail/generalInfo/index.styled.d.ts +0 -4
- package/build/esm/components/molecules/sumaryInfo/index.d.ts +13 -0
- package/build/esm/components/molecules/sumaryInfo/index.styled.d.ts +25 -0
- package/build/esm/components/organisms/clinicInfo/index.d.ts +1 -1
- package/build/esm/components/organisms/clinicInfo/index.styled.d.ts +7 -0
- package/build/esm/components/organisms/map/index.d.ts +1 -1
- package/build/esm/components.js +101 -102
- package/build/esm/{constants-fd71093a.js → constants-72d3ed69.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-1ac63738.js → core-fdea0eed.js} +1 -1
- package/build/esm/{dataTransform-d889e974.js → dataTransform-c7566396.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-1a5d9bbe.js → editor-27f5f633.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/esm/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-3f8d77f1.js → healthTools-0ac21095.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks/useFocusFieldOnDevice.d.ts +12 -0
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/icons/Email.d.ts +4 -0
- package/build/esm/{index-c4603656.js → index-00e7cea7.js} +25 -25
- package/build/esm/{index-25d3f798.js → index-01206782.js} +2 -2
- package/build/esm/{index-e13d2a0b.js → index-02975605.js} +32 -32
- package/build/esm/{index-d9c7e1fa.js → index-03a16dd1.js} +14 -14
- package/build/esm/{index-b73cc9bb.js → index-058b0967.js} +22 -22
- package/build/esm/{index-1b86bf6d.js → index-065816f6.js} +1 -1
- package/build/esm/{index-23813f53.js → index-07809b8a.js} +8 -8
- package/build/esm/{index-b23e3d84.js → index-090dea91.js} +2 -2
- package/build/esm/{index-de7489e0.js → index-0c235141.js} +2 -2
- package/build/esm/{index-72df2997.js → index-1b5b102d.js} +2 -2
- package/build/esm/{index-f676e2d1.js → index-25d3efd8.js} +13 -13
- package/build/esm/{index-d1c88cad.js → index-3831fb94.js} +3 -3
- package/build/esm/{index-03f73da7.js → index-39ca557b.js} +13 -13
- package/build/esm/{index-8472f622.js → index-3afde005.js} +17 -17
- package/build/esm/{index-6e5266fd.js → index-419ca2b8.js} +2 -2
- package/build/esm/{index-180e2418.js → index-49281ab1.js} +4 -4
- package/build/esm/{index-77919c55.js → index-4b4257f2.js} +13 -13
- package/build/esm/{index-76cb3bf9.js → index-4d2b3b0a.js} +1 -1
- package/build/esm/{index-b2244b8c.js → index-54e60938.js} +17 -17
- package/build/esm/{index-32f8c02a.js → index-58c50818.js} +16 -16
- package/build/esm/{index-b128e368.js → index-5c4c2c55.js} +13 -13
- package/build/esm/{index-b8bb8a3a.js → index-5cadde94.js} +6 -6
- package/build/esm/{index-988869bd.js → index-5f11422b.js} +2 -2
- package/build/esm/{index-172636d0.js → index-5f7fe6da.js} +3 -3
- package/build/esm/{index-44c93da0.js → index-5fa79508.js} +2 -2
- package/build/esm/{index-d3c26ec8.js → index-60aae241.js} +1 -1
- package/build/esm/{index-28dd1269.js → index-61b5768c.js} +6 -6
- package/build/esm/{index-309e9f9f.js → index-6524dc07.js} +1 -1
- package/build/esm/{index-bbe7fb31.js → index-6fb373b9.js} +3 -3
- package/build/esm/{index-ff613e3c.js → index-77272775.js} +2 -2
- package/build/esm/{index-730be82a.js → index-807319c5.js} +10 -10
- package/build/esm/{index-2cafddf2.js → index-812eff27.js} +33 -33
- package/build/esm/{index-637eab7e.js → index-827507f9.js} +15 -15
- package/build/esm/{index-9cba8ad6.js → index-85e80779.js} +2 -2
- package/build/esm/{index-a9596fae.js → index-89cf8199.js} +8 -8
- package/build/esm/{index-b3402064.js → index-8a1c0f96.js} +2 -2
- package/build/esm/{index-10a3302b.js → index-8e31f657.js} +2 -2
- package/build/esm/{index-50c381ee.js → index-8f27a513.js} +7 -7
- package/build/esm/{index-692fcadd.js → index-93dfda98.js} +6 -6
- package/build/esm/{index-715f1b76.js → index-96e84d05.js} +2 -2
- package/build/esm/{index-d6dd1738.js → index-9d9bf01d.js} +13 -13
- package/build/esm/{index-b38f9031.js → index-9f1d761c.js} +15 -15
- package/build/esm/{index-4d175bdb.js → index-a4126464.js} +4 -4
- package/build/esm/{index-bfcbce67.js → index-a5524300.js} +21 -21
- package/build/esm/{index-90b3f818.js → index-a5e8193e.js} +5 -5
- package/build/esm/{index-f75164ff.js → index-af9852ed.js} +2 -2
- package/build/esm/{index-d51b9cbc.js → index-afcd2e11.js} +2 -2
- package/build/esm/{index-0ab349fa.js → index-afe6085f.js} +1 -1
- package/build/esm/{index-57d4de8b.js → index-b19b6df1.js} +15 -15
- package/build/esm/{index-bdfb6bc2.js → index-b2d6d634.js} +2 -2
- package/build/esm/{index-5cdf8648.js → index-b519315f.js} +16 -16
- package/build/esm/{index-88936e48.js → index-b7e85a3c.js} +18 -16
- package/build/esm/{index-eab9b438.js → index-bcbb877b.js} +13 -13
- package/build/esm/{index-b1d889c2.js → index-bd23ee73.js} +17 -17
- package/build/esm/{index-8555a2d7.js → index-c5df37f6.js} +3 -4
- package/build/esm/{index-6f7896ab.js → index-c7c54d0f.js} +1 -1
- package/build/esm/{index-48a8302e.js → index-c86117e4.js} +3 -3
- package/build/esm/{index-ad5eee1e.js → index-cf2d56cf.js} +1 -1
- package/build/esm/{index-5f0def29.js → index-d1cf6769.js} +11 -11
- package/build/esm/{index-4e1785cc.js → index-d29ed174.js} +32 -32
- package/build/esm/{index-ef272348.js → index-d55c2070.js} +3 -3
- package/build/esm/{index-3a76cf45.js → index-db50ac52.js} +1 -1
- package/build/esm/{index-12d87d17.js → index-e545a30c.js} +6 -6
- package/build/esm/{index-08e5fde6.js → index-ea6b1992.js} +3 -3
- package/build/esm/{index-3facb6db.js → index-f4d17a9c.js} +17 -17
- package/build/esm/{index-0e690575.js → index-f5ef03a8.js} +7 -7
- package/build/esm/{index-e2cca724.js → index-f918bc9e.js} +76 -37
- package/build/esm/{index-8fb467f3.js → index-fb363ecd.js} +3 -3
- package/build/esm/{index-e8dd38f9.js → index-fcc457ed.js} +2 -2
- package/build/esm/index.js +122 -123
- package/build/esm/{labelSorting-31a0869a.js → labelSorting-0e328a23.js} +4 -4
- package/build/esm/lead/layouts/lightbox/formContainer.d.ts +5 -1
- package/build/esm/lead.js +233 -203
- package/build/esm/{logoIcon-89c4b0f0.js → logoIcon-f8041ffb.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc.js +19 -19
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +77 -77
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +47 -47
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +56 -57
- package/build/esm/{post-346a7c41.js → post-3bf2ae55.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/esm/ssoV2.js +53 -41
- package/build/esm/{store-e855406b.js → store-81441535.js} +3 -3
- package/build/esm/subot.js +37 -37
- package/build/esm/surveyOrPremiumBanner.js +34 -34
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-fa508b6f.js → surveyThankyouCard-5accfb82.js} +5 -5
- package/build/esm/together.js +57 -57
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +31 -31
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +52 -52
- package/build/esm/togetherMoleculesCardAuthor.js +29 -29
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +40 -40
- package/build/esm/togetherOrganisms.js +51 -51
- package/build/esm/togetherRichTextEditor.js +18 -18
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-fa5aabc3.js → translationsProvider-e510e7ff.js} +1 -1
- package/build/esm/{treePopoverMenu-00263469.js → treePopoverMenu-879aca94.js} +19 -19
- package/build/esm/{index-28c80f38.js → types-7c8fb601.js} +16 -3
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-6f4ae8a8.js → useCategory-a393324b.js} +5 -5
- package/build/esm/{useHealthToolCache-00c01705.js → useHealthToolCache-76f052de.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-d46c4ce9.js → usePlacesAutocomplete-8ba5c917.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-05e11879.js → utils-8d13ecca.js} +3 -3
- package/build/esm/{utils-92cc31a6.js → utils-cfb9b5cd.js} +2 -2
- package/build/esm/{utils-7acfa91f.js → utils-e142ccf1.js} +5 -5
- package/build/esm/{utils-f6310d82.js → utils-f6dd420c.js} +2 -2
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-c2dfad7b.js → healthTools-f8138d8c.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks/useFocusFieldOnDevice.d.ts +12 -0
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/icons/Email.d.ts +4 -0
- package/build/{index-293afdde.js → index-010356fa.js} +2 -2
- package/build/{index-52ee73d6.js → index-01294060.js} +6 -6
- package/build/{index-6ce3a5a5.js → index-0133d1fb.js} +1 -1
- package/build/{index-76581e00.js → index-0240275c.js} +13 -13
- package/build/{index-fed762c4.js → index-07d7bd32.js} +2 -2
- package/build/{index-7b21ca61.js → index-08e83020.js} +2 -2
- package/build/{index-91244928.js → index-11d614b1.js} +13 -13
- package/build/{index-26a24305.js → index-152c04ba.js} +1 -1
- package/build/{index-4d996251.js → index-1949a1f0.js} +7 -7
- package/build/{index-85e9cf69.js → index-238a3f93.js} +32 -32
- package/build/{index-53bef5a5.js → index-2547ba44.js} +18 -16
- package/build/{index-24fe38f7.js → index-275f57ff.js} +4 -4
- package/build/{index-1b96abc7.js → index-285c523c.js} +16 -16
- package/build/{index-3c9a3781.js → index-2be42333.js} +2 -2
- package/build/{index-2ab7a34d.js → index-2e25ef31.js} +14 -14
- package/build/{index-115407e2.js → index-2fdbb2e8.js} +11 -11
- package/build/{index-1e9b97a1.js → index-3131cb0f.js} +1 -1
- package/build/{index-51fc0ddd.js → index-382c891c.js} +3 -3
- package/build/{index-24968946.js → index-3f12ad5f.js} +2 -2
- package/build/{index-0044fd51.js → index-42d7dbf3.js} +3 -3
- package/build/{index-96fb4841.js → index-4703eca3.js} +32 -32
- package/build/{index-df1221e3.js → index-4cc88ab6.js} +3 -3
- package/build/{index-77176185.js → index-4e9ee460.js} +2 -2
- package/build/{index-860a5232.js → index-51bea6e4.js} +2 -2
- package/build/{index-149e0b12.js → index-5210a867.js} +3 -3
- package/build/{index-515c907b.js → index-555f65d8.js} +2 -2
- package/build/{index-f351629e.js → index-611609d6.js} +6 -6
- package/build/{index-1859b03e.js → index-62be6901.js} +32 -32
- package/build/{index-2dce82b4.js → index-6a1b67b8.js} +16 -16
- package/build/{index-3df258ac.js → index-6acd9ff0.js} +17 -17
- package/build/{index-a9b275f8.js → index-6b80d135.js} +15 -15
- package/build/{index-b902e728.js → index-6bd6120a.js} +17 -17
- package/build/{index-28dd211d.js → index-7fc84058.js} +7 -7
- package/build/{index-26836aa4.js → index-815ad42f.js} +6 -6
- package/build/{index-043f9add.js → index-84a852c1.js} +13 -13
- package/build/{index-c424faf2.js → index-858931f0.js} +2 -2
- package/build/{index-5ec81cca.js → index-8db0e27b.js} +1 -1
- package/build/{index-a72da3a5.js → index-8f6aa622.js} +1 -1
- package/build/{index-1db811a4.js → index-95cd3f2e.js} +3 -3
- package/build/{index-83e82160.js → index-97cd0baa.js} +3 -4
- package/build/{index-7026b771.js → index-9aa54329.js} +2 -2
- package/build/{index-483f547f.js → index-9fcd8e65.js} +6 -6
- package/build/{index-010f3437.js → index-a6238ac3.js} +2 -2
- package/build/{index-e408943d.js → index-a7910e07.js} +2 -2
- package/build/{index-07f6de54.js → index-b144cab6.js} +3 -3
- package/build/{index-140610cf.js → index-b27284b8.js} +3 -3
- package/build/{index-9ce6bd75.js → index-b6a7058e.js} +22 -22
- package/build/{index-e10d066a.js → index-b74050b3.js} +13 -13
- package/build/{index-53ad16eb.js → index-c1290a00.js} +17 -17
- package/build/{index-66453094.js → index-c4f137fe.js} +2 -2
- package/build/{index-79e5f2e1.js → index-c7aece21.js} +13 -13
- package/build/{index-6e57c671.js → index-ca704529.js} +25 -25
- package/build/{index-f6dd9a00.js → index-cd259a64.js} +10 -10
- package/build/{index-be0c8ea5.js → index-cf4a7449.js} +1 -1
- package/build/{index-b29f9002.js → index-d5af774d.js} +4 -4
- package/build/{index-ddd2b7cb.js → index-d8d00e05.js} +13 -13
- package/build/{index-177de806.js → index-ddddbadc.js} +15 -15
- package/build/{index-d53d9ac9.js → index-de52b8bb.js} +1 -1
- package/build/{index-bac4b5c7.js → index-e5e6718b.js} +1 -1
- package/build/{index-1d762606.js → index-e7405658.js} +15 -15
- package/build/{index-5d7a2ba1.js → index-e7e8b1ae.js} +2 -2
- package/build/{index-3db34d6c.js → index-e9c3e5a7.js} +77 -38
- package/build/{index-48d24f2f.js → index-ed26b14f.js} +2 -2
- package/build/{index-4bfdfeb9.js → index-f23a4b83.js} +5 -5
- package/build/{index-b2cd317a.js → index-f28a371e.js} +21 -21
- package/build/{index-bb77e0cd.js → index-f7ef3765.js} +8 -8
- package/build/{index-20ccf63a.js → index-f8d2290b.js} +8 -8
- package/build/{index-e6b20055.js → index-fb65c286.js} +17 -17
- package/build/{index-29ce9a07.js → index-fcb174ce.js} +2 -2
- package/build/index.js +125 -125
- package/build/{labelSorting-4cee9bbc.js → labelSorting-043e8b38.js} +4 -4
- package/build/lead/layouts/lightbox/formContainer.d.ts +5 -1
- package/build/lead.js +232 -202
- package/build/{logoIcon-f56bf940.js → logoIcon-6df48d89.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc.js +19 -19
- 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 +78 -77
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +47 -47
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +56 -57
- package/build/{post-b8905e14.js → post-c17cfed7.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/ssoV2.js +51 -39
- package/build/{store-82899e30.js → store-03772418.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-39b7683e.js → surveyThankyouCard-fee0f621.js} +5 -5
- package/build/together.js +57 -57
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +31 -31
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +52 -52
- package/build/togetherMoleculesCardAuthor.js +29 -29
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +40 -40
- package/build/togetherOrganisms.js +51 -51
- package/build/togetherRichTextEditor.js +18 -18
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-0b51ff63.js → translationsProvider-f36b5822.js} +1 -1
- package/build/{treePopoverMenu-78c06344.js → treePopoverMenu-f06dbcc4.js} +19 -19
- package/build/{index-dc718f8c.js → types-889d3099.js} +16 -2
- package/build/types.js +2 -2
- package/build/{useCategory-b6c13615.js → useCategory-7f90a915.js} +5 -5
- package/build/{useHealthToolCache-2e84a9a1.js → useHealthToolCache-388fabe4.js} +1 -1
- package/build/{usePlacesAutocomplete-913a2bbb.js → usePlacesAutocomplete-9721f94b.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-2efdc789.js → utils-89323f82.js} +5 -5
- package/build/{utils-2268104e.js → utils-a3ddb569.js} +2 -2
- package/build/{utils-b66de92a.js → utils-a723729a.js} +3 -3
- package/build/{utils-6884a13e.js → utils-f4d7438b.js} +2 -2
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/esm/types-00d7999a.js +0 -16
- package/build/types-333bb648.js +0 -19
- /package/build/{BMI_BOYS.percentile.monthly-3182980b.js → BMI_BOYS.percentile.monthly-aabd8ad7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-720e507a.js → BMI_BOYS.percentile.weekly-a0570a7e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-9fc3e4fc.js → BMI_BOYS.percentile.yearly-f6f71504.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-937a3608.js → BMI_BOYS.zscore.monthly-0c3ec584.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-cc4765cf.js → BMI_BOYS.zscore.weekly-0f38f669.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-a5aa26f9.js → BMI_BOYS.zscore.yearly-8e8ca54a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-9154325d.js → BMI_GIRLS.percentile.monthly-2c06efa1.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-75fa4fe1.js → BMI_GIRLS.percentile.weekly-65d16387.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-fa3bbaa5.js → BMI_GIRLS.percentile.yearly-a076b251.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-d4f6555a.js → BMI_GIRLS.zscore.monthly-532c96bd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-7b4ac587.js → BMI_GIRLS.zscore.weekly-b76fab1d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-3fd8583f.js → BMI_GIRLS.zscore.yearly-8f22c3cb.js} +0 -0
- /package/build/{ChevronDown-31394f3b.js → ChevronDown-c22d84ff.js} +0 -0
- /package/build/{Close-4799a06b.js → Close-40582baa.js} +0 -0
- /package/build/{Google-beae4537.js → Google-069ae090.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-0d8e3720.js → HEAD CIRCUM_BOYS.percentile.monthly-86fd06c7.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-51f91d71.js → HEAD CIRCUM_BOYS.percentile.weekly-38d9ae38.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-81a73b39.js → HEAD CIRCUM_BOYS.percentile.yearly-11e7db44.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-0bbbaf83.js → HEAD CIRCUM_BOYS.zscore.monthly-9a9ad66e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-2951fc8d.js → HEAD CIRCUM_BOYS.zscore.weekly-aa5fbaae.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-1088a397.js → HEAD CIRCUM_BOYS.zscore.yearly-ada152ed.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f8aa2f5e.js → HEAD CIRCUM_GIRLS.percentile.monthly-bd2fd5a7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-75de85be.js → HEAD CIRCUM_GIRLS.percentile.weekly-f4072ffd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-1695e1fa.js → HEAD CIRCUM_GIRLS.percentile.yearly-d5476f23.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-95ec62e5.js → HEAD CIRCUM_GIRLS.zscore.monthly-4f180105.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-0d415d5a.js → HEAD CIRCUM_GIRLS.zscore.weekly-62e4689a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-a12927bb.js → HEAD CIRCUM_GIRLS.zscore.yearly-65c0a218.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-445ff735.js → HEIGHT_BOYS.percentile.monthly-281aae42.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-5f94dc21.js → HEIGHT_BOYS.percentile.weekly-eda57b57.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-ce5176c9.js → HEIGHT_BOYS.percentile.yearly-293d01fd.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-cbc53f91.js → HEIGHT_BOYS.zscore.monthly-bfb04e53.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-4e8fb661.js → HEIGHT_BOYS.zscore.weekly-389c15b8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-fe5c23f0.js → HEIGHT_BOYS.zscore.yearly-dd94afdc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-a51e22cf.js → HEIGHT_GIRLS.percentile.monthly-2556e50a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-e2aa9993.js → HEIGHT_GIRLS.percentile.weekly-bd731df1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-afd7dafe.js → HEIGHT_GIRLS.percentile.yearly-ee457c1b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-6af97c53.js → HEIGHT_GIRLS.zscore.monthly-f5a3de20.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-f9c16e85.js → HEIGHT_GIRLS.zscore.weekly-8ed74087.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-ff7784de.js → HEIGHT_GIRLS.zscore.yearly-331d3cb8.js} +0 -0
- /package/build/{Locale-a7b25e7b.js → Locale-a1b1ec82.js} +0 -0
- /package/build/{Visible-38e68c7a.js → Visible-a014ab48.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-8710a71d.js → WEIGHT_BOYS.percentile.monthly-aa96bb70.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-89fcfea6.js → WEIGHT_BOYS.percentile.weekly-d696d106.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-d61fdf28.js → WEIGHT_BOYS.percentile.yearly-3726a234.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-639676b6.js → WEIGHT_BOYS.zscore.monthly-54aed401.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-4865285b.js → WEIGHT_BOYS.zscore.weekly-14e71d1c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-a6c9c1cf.js → WEIGHT_BOYS.zscore.yearly-de572448.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-2346a793.js → WEIGHT_GIRLS.percentile.monthly-70412c05.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-8fca2225.js → WEIGHT_GIRLS.percentile.weekly-5bf4cc3b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-807e8d8c.js → WEIGHT_GIRLS.percentile.yearly-9909c4e6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-6a9f14fe.js → WEIGHT_GIRLS.zscore.monthly-519b5bdd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-66fba245.js → WEIGHT_GIRLS.zscore.weekly-08b61afc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-82e26c22.js → WEIGHT_GIRLS.zscore.yearly-ceba94d2.js} +0 -0
- /package/build/{ageGenerate-6c3aec30.js → ageGenerate-62226049.js} +0 -0
- /package/build/{animation-f47d0d8e.js → animation-267ce396.js} +0 -0
- /package/build/{constants-bfe95ffe.js → constants-1e48d93f.js} +0 -0
- /package/build/{constants-62860b8d.js → constants-310b07b8.js} +0 -0
- /package/build/{constants-c75d902a.js → constants-cdc5ae49.js} +0 -0
- /package/build/{dataTransform-771b908e.js → dataTransform-55ece460.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-235c1c53.js → BMI_BOYS.percentile.monthly-1ace03d1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-28969efa.js → BMI_BOYS.percentile.weekly-5f12c187.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7d304920.js → BMI_BOYS.percentile.yearly-715b92c7.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-47544a72.js → BMI_BOYS.zscore.monthly-63bbcafc.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-1f4cbada.js → BMI_BOYS.zscore.weekly-9594b326.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-bbace95e.js → BMI_BOYS.zscore.yearly-42560c41.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-60eafef7.js → BMI_GIRLS.percentile.monthly-dfbbb804.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-44bf1634.js → BMI_GIRLS.percentile.weekly-56d2e18b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-12896de4.js → BMI_GIRLS.percentile.yearly-e28a1a30.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-7efe5890.js → BMI_GIRLS.zscore.monthly-7d492112.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-9c59bb61.js → BMI_GIRLS.zscore.weekly-37169a4c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-019c3234.js → BMI_GIRLS.zscore.yearly-41193d88.js} +0 -0
- /package/build/esm/{ChevronDown-764cfaf6.js → ChevronDown-5e816a12.js} +0 -0
- /package/build/esm/{Close-2e915864.js → Close-1b4b3f6e.js} +0 -0
- /package/build/esm/{Google-b4455e55.js → Google-ab5b71ac.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-ed07c77c.js → HEAD CIRCUM_BOYS.percentile.monthly-4d9d2f73.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-fb57c63f.js → HEAD CIRCUM_BOYS.percentile.weekly-f9477642.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-b43aac88.js → HEAD CIRCUM_BOYS.percentile.yearly-5701a057.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ba7145e7.js → HEAD CIRCUM_BOYS.zscore.monthly-6a0ba66b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a9ba5f80.js → HEAD CIRCUM_BOYS.zscore.weekly-dbd57db9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-2c83135e.js → HEAD CIRCUM_BOYS.zscore.yearly-32d4f4ec.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b08f4b1d.js → HEAD CIRCUM_GIRLS.percentile.monthly-85927c27.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-3627409d.js → HEAD CIRCUM_GIRLS.percentile.weekly-4e144e68.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-444a9c03.js → HEAD CIRCUM_GIRLS.percentile.yearly-d15d725e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e2701d4f.js → HEAD CIRCUM_GIRLS.zscore.monthly-5f4fc5ed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-bcd0aab2.js → HEAD CIRCUM_GIRLS.zscore.weekly-7a2bffc7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-29db1907.js → HEAD CIRCUM_GIRLS.zscore.yearly-ef47e424.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-43e7e59f.js → HEIGHT_BOYS.percentile.monthly-6244b439.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-19b257be.js → HEIGHT_BOYS.percentile.weekly-0c2227c8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-668fcf77.js → HEIGHT_BOYS.percentile.yearly-e24be4fb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-fd14b7c3.js → HEIGHT_BOYS.zscore.monthly-9d29a23b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c8d2b1d2.js → HEIGHT_BOYS.zscore.weekly-2d4e2e5c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-a5f00d1b.js → HEIGHT_BOYS.zscore.yearly-e13ea868.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c6df4473.js → HEIGHT_GIRLS.percentile.monthly-d228f5f7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-9978fc8c.js → HEIGHT_GIRLS.percentile.weekly-18fccae8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-99b2e650.js → HEIGHT_GIRLS.percentile.yearly-3989d75f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-21078f04.js → HEIGHT_GIRLS.zscore.monthly-cd3ae6cc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-012bc693.js → HEIGHT_GIRLS.zscore.weekly-4ea9b63a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-e8477a5b.js → HEIGHT_GIRLS.zscore.yearly-c39b2269.js} +0 -0
- /package/build/esm/{Locale-26533594.js → Locale-5be8188a.js} +0 -0
- /package/build/esm/{Visible-f8cd4096.js → Visible-8d4ecff1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-4787dc64.js → WEIGHT_BOYS.percentile.monthly-cd8b3e55.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-1ba2225c.js → WEIGHT_BOYS.percentile.weekly-b8c1202b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-dabd5d77.js → WEIGHT_BOYS.percentile.yearly-7f3e066b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-b7ef36cd.js → WEIGHT_BOYS.zscore.monthly-3808b3b8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b557b32b.js → WEIGHT_BOYS.zscore.weekly-df4d230b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-d5281dd8.js → WEIGHT_BOYS.zscore.yearly-df32e99f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-098b5209.js → WEIGHT_GIRLS.percentile.monthly-047f2926.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9b5d91c9.js → WEIGHT_GIRLS.percentile.weekly-a998da7b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-1d37af50.js → WEIGHT_GIRLS.percentile.yearly-1cffc87c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-12eca1e9.js → WEIGHT_GIRLS.zscore.monthly-9e7ebcaf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-0a09b9c5.js → WEIGHT_GIRLS.zscore.weekly-2a695ed4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9c89caf9.js → WEIGHT_GIRLS.zscore.yearly-fa3600ed.js} +0 -0
- /package/build/esm/{ageGenerate-9e80f99e.js → ageGenerate-83c2ce64.js} +0 -0
- /package/build/esm/{animation-ccc2601c.js → animation-91b1e83d.js} +0 -0
- /package/build/esm/{constants-76adad82.js → constants-768d67b8.js} +0 -0
- /package/build/esm/{constants-7d835b03.js → constants-7dd2be5f.js} +0 -0
- /package/build/esm/{constants-a9177a50.js → constants-ae115b9f.js} +0 -0
- /package/build/esm/{dataTransform-69d64624.js → dataTransform-1444acc6.js} +0 -0
- /package/build/esm/{index-8bc6e382.js → index-453d72c1.js} +0 -0
- /package/build/esm/{index-7777067c.js → index-68bed127.js} +0 -0
- /package/build/esm/{index-97001998.js → index-7ef4b69d.js} +0 -0
- /package/build/esm/{index-e38d4db6.js → index-99d47c00.js} +0 -0
- /package/build/esm/{index-c1b50df4.js → index-c070f843.js} +0 -0
- /package/build/esm/{index-d04a2341.js → index-d22dd163.js} +0 -0
- /package/build/esm/{index-45155d38.js → index-d72c5be3.js} +0 -0
- /package/build/esm/{index-e2660f71.js → index-ebc0208c.js} +0 -0
- /package/build/esm/{index.styles-8a4b3af1.js → index.styles-a80ccc56.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0e80078b.js → localizeNumberFormat-1793a13f.js} +0 -0
- /package/build/esm/{normalizeLink-e61bca8b.js → normalizeLink-dbd854ae.js} +0 -0
- /package/build/esm/{number-ea0f5c61.js → number-fb459821.js} +0 -0
- /package/build/esm/{paths-04da3bdb.js → paths-6fbd4b6a.js} +0 -0
- /package/build/esm/{shared-f5de135e.js → shared-08588d98.js} +0 -0
- /package/build/esm/{text-158cf5bd.js → text-fe36a7f8.js} +0 -0
- /package/build/esm/{translationsContext-883824d9.js → translationsContext-e45c090d.js} +0 -0
- /package/build/esm/{tslib.es6-a619fa37.js → tslib.es6-7b2139eb.js} +0 -0
- /package/build/esm/{types-339fbfe6.js → types-cd5ea76c.js} +0 -0
- /package/build/esm/{useIsInit-f3d9be2f.js → useIsInit-75b17972.js} +0 -0
- /package/build/esm/{useOutsideClick-969aa54b.js → useOutsideClick-ca21582a.js} +0 -0
- /package/build/esm/{useScrollbarSize-abd0d390.js → useScrollbarSize-8fe78db5.js} +0 -0
- /package/build/esm/{useUniqueId-49b412f9.js → useUniqueId-582a9b8b.js} +0 -0
- /package/build/esm/{utils-870609dc.js → utils-1e0330c1.js} +0 -0
- /package/build/{index-b3f4142d.js → index-0ee700a4.js} +0 -0
- /package/build/{index-9b8880c6.js → index-2232c1b1.js} +0 -0
- /package/build/{index-1b2777f7.js → index-27d7affb.js} +0 -0
- /package/build/{index-c878b24b.js → index-2994da93.js} +0 -0
- /package/build/{index-c20fff5e.js → index-2b2c0dd9.js} +0 -0
- /package/build/{index-0e9f69bb.js → index-53811047.js} +0 -0
- /package/build/{index-3dac41ab.js → index-c96a83af.js} +0 -0
- /package/build/{index-e115a5fe.js → index-cfbd71f1.js} +0 -0
- /package/build/{index.styles-da48fc81.js → index.styles-1ca4a2c2.js} +0 -0
- /package/build/{localizeNumberFormat-a61caeed.js → localizeNumberFormat-5fee20a1.js} +0 -0
- /package/build/{normalizeLink-b57c525b.js → normalizeLink-791a2900.js} +0 -0
- /package/build/{number-84e0e85f.js → number-2811edb2.js} +0 -0
- /package/build/{paths-bb1adf12.js → paths-47bd7b41.js} +0 -0
- /package/build/{shared-712db6ef.js → shared-f89c53a2.js} +0 -0
- /package/build/{text-5ca13f79.js → text-c781d461.js} +0 -0
- /package/build/{translationsContext-bb2a10a6.js → translationsContext-96803826.js} +0 -0
- /package/build/{tslib.es6-080a907c.js → tslib.es6-da217af3.js} +0 -0
- /package/build/{types-f82a8a14.js → types-cd8cd4cc.js} +0 -0
- /package/build/{useIsInit-3b24f1a8.js → useIsInit-47154c0d.js} +0 -0
- /package/build/{useOutsideClick-7f8a964b.js → useOutsideClick-cb592ec2.js} +0 -0
- /package/build/{useScrollbarSize-e9efb301.js → useScrollbarSize-3b5d9d25.js} +0 -0
- /package/build/{useUniqueId-d04c07b6.js → useUniqueId-64f321a3.js} +0 -0
- /package/build/{utils-0f1586ab.js → utils-1e0c7e54.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-7b2139eb.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback, forwardRef, useImperativeHandle, memo, useLayoutEffect } from 'react';
|
|
3
3
|
import { createStyles, Box, useMantineTheme, Button as Button$1, Autocomplete, Input as Input$1, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, Flex, clsx, TextInput, NumberInput as NumberInput$1, rem, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import debounce from 'lodash/debounce';
|
|
5
5
|
import { createFormContext, useForm } from '@mantine/form';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-49281ab1.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-
|
|
17
|
-
import { useIntersection } from '@mantine/hooks';
|
|
18
|
-
import './index-
|
|
19
|
-
import { G as GlobalTextStyleNew, C as CustomStylesType, F as FontWeight } from './text-
|
|
20
|
-
import './index-
|
|
21
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
9
|
+
import { u as useTranslations } from './index-afe6085f.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-e45c090d.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-1e0330c1.js';
|
|
12
|
+
import { T as Text } from './index-8e31f657.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-89cf8199.js';
|
|
14
|
+
import { D as DatePicker } from './index-e545a30c.js';
|
|
15
|
+
import { B as Button } from './index-c86117e4.js';
|
|
16
|
+
import './index.styles-a80ccc56.js';
|
|
17
|
+
import { useIntersection, useScrollLock } from '@mantine/hooks';
|
|
18
|
+
import './index-07809b8a.js';
|
|
19
|
+
import { G as GlobalTextStyleNew, C as CustomStylesType, F as FontWeight } from './text-fe36a7f8.js';
|
|
20
|
+
import './index-d55c2070.js';
|
|
21
|
+
import { M as MAPPED_LOCALE } from './utils-cfb9b5cd.js';
|
|
22
22
|
import { DateInput } from '@mantine/dates';
|
|
23
|
-
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
24
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
25
|
-
import './index-
|
|
26
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-
|
|
27
|
-
import { H as Heading$1 } from './index-
|
|
28
|
-
import { t as translationsMap$1 } from './translationsProvider-
|
|
29
|
-
import { L as LOCALE } from './Locale-
|
|
23
|
+
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-8a1c0f96.js';
|
|
24
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-6524dc07.js';
|
|
25
|
+
import './index-99d47c00.js';
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-8ba5c917.js';
|
|
27
|
+
import { H as Heading$1 } from './index-0c235141.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-e510e7ff.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-5be8188a.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
32
32
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
33
33
|
import styled from '@emotion/styled';
|
|
34
34
|
import { theme } from './miscTheme.js';
|
|
35
|
-
import { u as useTextStyles, C as ChoiceField, T as TextField, E as ErrorIcon } from './index-
|
|
36
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
37
|
-
import { M as MantineProvider } from './index-
|
|
38
|
-
import { i as isVideo } from './index-
|
|
39
|
-
import { u as useScreenSize } from './index-
|
|
35
|
+
import { u as useTextStyles, C as ChoiceField, T as TextField, E as ErrorIcon } from './index-96e84d05.js';
|
|
36
|
+
import { T as TogetherComponentGlobalContext } from './utils-8d13ecca.js';
|
|
37
|
+
import { M as MantineProvider } from './index-3831fb94.js';
|
|
38
|
+
import { i as isVideo } from './index-453d72c1.js';
|
|
39
|
+
import { u as useScreenSize } from './index-419ca2b8.js';
|
|
40
40
|
import { motion } from 'framer-motion';
|
|
41
41
|
import { createPortal } from 'react-dom';
|
|
42
42
|
import { ChevronDown } from '@hhgtech/icons/arrow';
|
|
43
43
|
import { MapPin } from '@hhgtech/icons/core';
|
|
44
|
-
import { I as InputDate } from './InputDate-
|
|
45
|
-
import { D as DrawerComponent } from './index-
|
|
46
|
-
import { C as Close } from './Close-
|
|
44
|
+
import { I as InputDate } from './InputDate-036d702a.js';
|
|
45
|
+
import { D as DrawerComponent } from './index-c5df37f6.js';
|
|
46
|
+
import { C as Close } from './Close-1b4b3f6e.js';
|
|
47
47
|
import './constantsIsProduction.js';
|
|
48
|
-
import './normalizeLink-
|
|
48
|
+
import './normalizeLink-dbd854ae.js';
|
|
49
49
|
import '@hhgtech/icons/other';
|
|
50
50
|
import '@mantine/carousel';
|
|
51
51
|
import 'classnames';
|
|
52
|
-
import './useUniqueId-
|
|
52
|
+
import './useUniqueId-582a9b8b.js';
|
|
53
53
|
import './constantsSite.js';
|
|
54
|
-
import './shared-
|
|
54
|
+
import './shared-08588d98.js';
|
|
55
55
|
import '@mantine/notifications';
|
|
56
56
|
import 'date-fns/locale';
|
|
57
57
|
import './constantsRiskScreener.js';
|
|
@@ -68,11 +68,11 @@ import './i18n-values/vi-VN_MB.js';
|
|
|
68
68
|
import './i18n-values/zh-SG.js';
|
|
69
69
|
import './i18n-values/zh-TW.js';
|
|
70
70
|
import '@emotion/react';
|
|
71
|
-
import './index-
|
|
71
|
+
import './index-7ef4b69d.js';
|
|
72
72
|
import 'slugify';
|
|
73
73
|
import 'string-format';
|
|
74
74
|
import './togetherApiPaths.js';
|
|
75
|
-
import './constants-
|
|
75
|
+
import './constants-7dd2be5f.js';
|
|
76
76
|
import 'vaul';
|
|
77
77
|
|
|
78
78
|
const LeadGenComponentContext = createContext({});
|
|
@@ -3268,6 +3268,26 @@ const FloatingLayout = ({ popupId, url, title, urlText, titleAlign, subtitle, su
|
|
|
3268
3268
|
React__default.createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" }))))));
|
|
3269
3269
|
};
|
|
3270
3270
|
|
|
3271
|
+
function isMac() {
|
|
3272
|
+
return testPlatform(/^Mac/);
|
|
3273
|
+
}
|
|
3274
|
+
function isIPhone() {
|
|
3275
|
+
return testPlatform(/^iPhone/);
|
|
3276
|
+
}
|
|
3277
|
+
function isIPad() {
|
|
3278
|
+
return (testPlatform(/^iPad/) ||
|
|
3279
|
+
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
3280
|
+
(isMac() && navigator.maxTouchPoints > 1));
|
|
3281
|
+
}
|
|
3282
|
+
function isIOS() {
|
|
3283
|
+
return isIPhone() || isIPad();
|
|
3284
|
+
}
|
|
3285
|
+
function testPlatform(re) {
|
|
3286
|
+
return typeof window !== 'undefined' && window.navigator != null
|
|
3287
|
+
? re.test(window.navigator.platform)
|
|
3288
|
+
: undefined;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3271
3291
|
function useScrollTo() {
|
|
3272
3292
|
const scrollTo = useCallback((element, to, duration = 500) => {
|
|
3273
3293
|
if (!element)
|
|
@@ -3291,35 +3311,6 @@ function useScrollTo() {
|
|
|
3291
3311
|
return scrollTo;
|
|
3292
3312
|
}
|
|
3293
3313
|
|
|
3294
|
-
const useViewportDimensions = () => {
|
|
3295
|
-
const dimensionsRef = useRef({ width: 0, height: 0 });
|
|
3296
|
-
const [dimensions, setDimensions] = useState(() => ({
|
|
3297
|
-
width: window.screen.availWidth,
|
|
3298
|
-
height: window.screen.availHeight,
|
|
3299
|
-
}));
|
|
3300
|
-
useEffect(() => {
|
|
3301
|
-
var _a;
|
|
3302
|
-
function visualViewport(e) {
|
|
3303
|
-
if (dimensionsRef.current.width === e.target.width &&
|
|
3304
|
-
dimensionsRef.current.height === e.target.height) {
|
|
3305
|
-
return;
|
|
3306
|
-
}
|
|
3307
|
-
const newDimensions = {
|
|
3308
|
-
width: e.target.width,
|
|
3309
|
-
height: e.target.height,
|
|
3310
|
-
};
|
|
3311
|
-
dimensionsRef.current = newDimensions;
|
|
3312
|
-
setDimensions(newDimensions);
|
|
3313
|
-
}
|
|
3314
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3315
|
-
return () => {
|
|
3316
|
-
var _a;
|
|
3317
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3318
|
-
};
|
|
3319
|
-
}, []);
|
|
3320
|
-
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3321
|
-
};
|
|
3322
|
-
|
|
3323
3314
|
// Default handling for Safari & Chrome
|
|
3324
3315
|
function useViewportPushedByKeyboard(threshold = 20) {
|
|
3325
3316
|
const ref = useRef(null);
|
|
@@ -3364,25 +3355,102 @@ function useKeyboardOpen(isAndroid = false) {
|
|
|
3364
3355
|
return keyOpen;
|
|
3365
3356
|
}
|
|
3366
3357
|
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3358
|
+
const useFocusFieldOnDevice = (isMobile, isEnable, gapToCheckAvai = 0) => {
|
|
3359
|
+
const isIos = isIOS();
|
|
3360
|
+
const popupContentRef = useRef(null);
|
|
3361
|
+
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
3362
|
+
const [bottomSpacing, setBottomSpacing] = useState(0);
|
|
3363
|
+
const [isScrolling, setIsScrolling] = useState(false);
|
|
3364
|
+
const keyOpen = useKeyboardOpen();
|
|
3365
|
+
const isPushedRef = useRef(isPushed);
|
|
3366
|
+
const keyOpenRef = useRef(keyOpen);
|
|
3367
|
+
const bottomSpacingRef = useRef(bottomSpacing);
|
|
3368
|
+
const isScrollingRef = useRef(false);
|
|
3369
|
+
const gapBottomSpace = useRef(40);
|
|
3370
|
+
const initialHeight = useRef(0);
|
|
3371
|
+
const scrollTo = useScrollTo();
|
|
3372
|
+
const handlePopupContentScroll = (formRef) => {
|
|
3373
|
+
if (!isScrollingRef.current && !!(formRef === null || formRef === void 0 ? void 0 : formRef.target)) {
|
|
3374
|
+
const focusableElements = formRef.target.querySelectorAll('input, textarea, select, button, [tabindex]:not([tabindex="-1"])');
|
|
3375
|
+
focusableElements.forEach((el) => {
|
|
3376
|
+
if (el === document.activeElement) {
|
|
3377
|
+
el.blur();
|
|
3378
|
+
}
|
|
3379
|
+
});
|
|
3380
|
+
}
|
|
3381
|
+
};
|
|
3382
|
+
const handleFocus = (e) => {
|
|
3383
|
+
if (!isMobile || !isIos || !isEnable)
|
|
3384
|
+
return;
|
|
3385
|
+
setTimeout(() => {
|
|
3386
|
+
var _a, _b;
|
|
3387
|
+
if (!isPushedRef.current &&
|
|
3388
|
+
keyOpenRef.current &&
|
|
3389
|
+
popupContentRef.current) {
|
|
3390
|
+
const input = e.target;
|
|
3391
|
+
const rect = input.getBoundingClientRect();
|
|
3392
|
+
const inputHeight = rect.height;
|
|
3393
|
+
const inputTop = rect.top;
|
|
3394
|
+
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3395
|
+
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
3396
|
+
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
3397
|
+
const currentScrollY = popupContentRef.current.scrollTop;
|
|
3398
|
+
const viewPort = (isErrorDevice
|
|
3399
|
+
? window.innerHeight * 0.4
|
|
3400
|
+
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height) - gapToCheckAvai;
|
|
3401
|
+
if (currentTop >= viewPort) {
|
|
3402
|
+
const gap = currentTop - viewPort;
|
|
3403
|
+
const targetScrollY = currentScrollY + gap;
|
|
3404
|
+
if (!isNaN(targetScrollY)) {
|
|
3405
|
+
setIsScrolling(true);
|
|
3406
|
+
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
3407
|
+
setTimeout(() => {
|
|
3408
|
+
setIsScrolling(false);
|
|
3409
|
+
}, 500);
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
}, 300);
|
|
3414
|
+
};
|
|
3415
|
+
useEffect(() => {
|
|
3416
|
+
initialHeight.current = window.innerHeight;
|
|
3417
|
+
}, []);
|
|
3418
|
+
useEffect(() => {
|
|
3419
|
+
isPushedRef.current = isPushed;
|
|
3420
|
+
}, [isPushed]);
|
|
3421
|
+
useEffect(() => {
|
|
3422
|
+
keyOpenRef.current = keyOpen;
|
|
3423
|
+
}, [keyOpen]);
|
|
3424
|
+
useEffect(() => {
|
|
3425
|
+
bottomSpacingRef.current = bottomSpacing;
|
|
3426
|
+
}, [bottomSpacing]);
|
|
3427
|
+
useEffect(() => {
|
|
3428
|
+
setBottomSpacing(isMobile && isIos && isEnable
|
|
3429
|
+
? !isPushed && keyOpen
|
|
3430
|
+
? (() => {
|
|
3431
|
+
var _a;
|
|
3432
|
+
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3433
|
+
const isErrorDevice = visualHeight === initialHeight.current;
|
|
3434
|
+
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
3435
|
+
})()
|
|
3436
|
+
: 0
|
|
3437
|
+
: 0);
|
|
3438
|
+
}, [isPushed, keyOpen, isMobile, isIos, isEnable]);
|
|
3439
|
+
useEffect(() => {
|
|
3440
|
+
isScrollingRef.current = isScrolling;
|
|
3441
|
+
}, [isScrolling]);
|
|
3442
|
+
return {
|
|
3443
|
+
popupContentRef,
|
|
3444
|
+
bottomRef,
|
|
3445
|
+
bottomStyle: {
|
|
3446
|
+
height: `${bottomSpacing}px`,
|
|
3447
|
+
width: '100%',
|
|
3448
|
+
transition: 'height .2s ease',
|
|
3449
|
+
},
|
|
3450
|
+
handleFocus,
|
|
3451
|
+
handlePopupContentScroll,
|
|
3452
|
+
};
|
|
3453
|
+
};
|
|
3386
3454
|
|
|
3387
3455
|
function chain(...callbacks) {
|
|
3388
3456
|
return (...args) => {
|
|
@@ -3639,6 +3707,35 @@ function isInput(target) {
|
|
|
3639
3707
|
(target instanceof HTMLElement && target.isContentEditable));
|
|
3640
3708
|
}
|
|
3641
3709
|
|
|
3710
|
+
const useViewportDimensions = () => {
|
|
3711
|
+
const dimensionsRef = useRef({ width: 0, height: 0 });
|
|
3712
|
+
const [dimensions, setDimensions] = useState(() => ({
|
|
3713
|
+
width: window.screen.availWidth,
|
|
3714
|
+
height: window.screen.availHeight,
|
|
3715
|
+
}));
|
|
3716
|
+
useEffect(() => {
|
|
3717
|
+
var _a;
|
|
3718
|
+
function visualViewport(e) {
|
|
3719
|
+
if (dimensionsRef.current.width === e.target.width &&
|
|
3720
|
+
dimensionsRef.current.height === e.target.height) {
|
|
3721
|
+
return;
|
|
3722
|
+
}
|
|
3723
|
+
const newDimensions = {
|
|
3724
|
+
width: e.target.width,
|
|
3725
|
+
height: e.target.height,
|
|
3726
|
+
};
|
|
3727
|
+
dimensionsRef.current = newDimensions;
|
|
3728
|
+
setDimensions(newDimensions);
|
|
3729
|
+
}
|
|
3730
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3731
|
+
return () => {
|
|
3732
|
+
var _a;
|
|
3733
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3734
|
+
};
|
|
3735
|
+
}, []);
|
|
3736
|
+
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3737
|
+
};
|
|
3738
|
+
|
|
3642
3739
|
const StyledLeadGenLightBoxBFooter = styled.div `
|
|
3643
3740
|
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3644
3741
|
padding-inline: var(--spacing-x, 20px);
|
|
@@ -4269,7 +4366,7 @@ const StyledFormContainer = styled.div `
|
|
|
4269
4366
|
*
|
|
4270
4367
|
*/
|
|
4271
4368
|
const FormContainer = (_a) => {
|
|
4272
|
-
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer } = _a, restProps = __rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer"]);
|
|
4369
|
+
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer, isLightBoxA, bottomStyle, popupContentRef, handlePopupContentScroll } = _a, restProps = __rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer", "isLightBoxA", "bottomStyle", "popupContentRef", "handlePopupContentScroll"]);
|
|
4273
4370
|
const HeaderContent = (React__default.createElement("div", { className: "leadgen-form_header" },
|
|
4274
4371
|
iconComponent,
|
|
4275
4372
|
React__default.createElement(Text, { as: "h2", size: 'h4', variant: "primary", weight: 'semiBold', className: "leadgen-title", "data-align": titleAlign }, title),
|
|
@@ -4279,13 +4376,13 @@ const FormContainer = (_a) => {
|
|
|
4279
4376
|
}
|
|
4280
4377
|
return (React__default.createElement(StyledFormContainer, Object.assign({ className: clsx(className, 'leadgen-form_container'), style: style }, restProps),
|
|
4281
4378
|
React__default.createElement("div", { className: "leadgen-form_wrapper" },
|
|
4282
|
-
|
|
4379
|
+
header ? (React__default.createElement("div", { className: "leadgen-form_scrollable", ref: popupContentRef, onScroll: handlePopupContentScroll },
|
|
4283
4380
|
header,
|
|
4284
4381
|
HeaderContent,
|
|
4285
|
-
React__default.createElement("div", { className: "leadgen-form_body" }, children)
|
|
4286
|
-
|
|
4382
|
+
React__default.createElement("div", { className: "leadgen-form_body" }, children),
|
|
4383
|
+
isLightBoxA && React__default.createElement("div", { style: bottomStyle }))) : (React__default.createElement(React__default.Fragment, null,
|
|
4287
4384
|
HeaderContent,
|
|
4288
|
-
React__default.createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4385
|
+
React__default.createElement("div", { className: "leadgen-form_body", ref: popupContentRef, onScroll: handlePopupContentScroll }, children))),
|
|
4289
4386
|
React__default.createElement("div", { className: "leadgen-form_footer" }, footer))));
|
|
4290
4387
|
};
|
|
4291
4388
|
|
|
@@ -4481,7 +4578,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4481
4578
|
});
|
|
4482
4579
|
}
|
|
4483
4580
|
};
|
|
4484
|
-
const { height } = useViewportDimensions();
|
|
4485
4581
|
// usePreventScroll()
|
|
4486
4582
|
const formActiveTime = useRef(0);
|
|
4487
4583
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
@@ -4520,19 +4616,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4520
4616
|
userInfo,
|
|
4521
4617
|
format: (_a = (ISO_FORMAT[locale] || ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4522
4618
|
});
|
|
4523
|
-
const popupContentRef =
|
|
4524
|
-
const isIos = isIOS();
|
|
4525
|
-
const keyOpen = useKeyboardOpen();
|
|
4526
|
-
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
4527
|
-
const [bottomSpacing, setBottomSpacing] = useState(0);
|
|
4528
|
-
const bottomSpacingRef = useRef(bottomSpacing);
|
|
4529
|
-
const isPushedRef = useRef(isPushed);
|
|
4530
|
-
const keyOpenRef = useRef(keyOpen);
|
|
4531
|
-
const [isScrolling, setIsScrolling] = useState(false);
|
|
4532
|
-
const isScrollingRef = useRef(false);
|
|
4533
|
-
const gapBottomSpace = useRef(40);
|
|
4534
|
-
const initialHeight = useRef(0);
|
|
4535
|
-
const scrollTo = useScrollTo();
|
|
4619
|
+
const { bottomRef, bottomStyle, handlePopupContentScroll, handleFocus, popupContentRef, } = useFocusFieldOnDevice(isMobile, isLightBoxB || isLightBoxA, isLightBoxA ? 85 : 0);
|
|
4536
4620
|
const handleDoImpression = useCallback((type = 'impression') => doImpression({
|
|
4537
4621
|
formValues: form.values,
|
|
4538
4622
|
formActiveTime: formActiveTime.current,
|
|
@@ -4546,7 +4630,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4546
4630
|
return null;
|
|
4547
4631
|
}
|
|
4548
4632
|
useEffect(() => {
|
|
4549
|
-
initialHeight.current = window.innerHeight;
|
|
4550
4633
|
(isLightBox || isSlider) && handleDoImpression();
|
|
4551
4634
|
if (isLightBox || isFullscreen) {
|
|
4552
4635
|
document.body.classList.add('noscroll');
|
|
@@ -4556,18 +4639,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4556
4639
|
}
|
|
4557
4640
|
clearCacheUsedEmailOrPhone();
|
|
4558
4641
|
}, []);
|
|
4559
|
-
useEffect(() => {
|
|
4560
|
-
isPushedRef.current = isPushed;
|
|
4561
|
-
}, [isPushed]);
|
|
4562
|
-
useEffect(() => {
|
|
4563
|
-
keyOpenRef.current = keyOpen;
|
|
4564
|
-
}, [keyOpen]);
|
|
4565
|
-
useEffect(() => {
|
|
4566
|
-
bottomSpacingRef.current = bottomSpacing;
|
|
4567
|
-
}, [bottomSpacing]);
|
|
4568
|
-
useEffect(() => {
|
|
4569
|
-
isScrollingRef.current = isScrolling;
|
|
4570
|
-
}, [isScrolling]);
|
|
4571
4642
|
useEffect(() => {
|
|
4572
4643
|
formRef.current && setLastFormRef(formRef.current);
|
|
4573
4644
|
}, [formRef.current]);
|
|
@@ -4595,18 +4666,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4595
4666
|
}
|
|
4596
4667
|
return () => clearInterval(intervalId);
|
|
4597
4668
|
}, [showThankyou]);
|
|
4598
|
-
useEffect(() => {
|
|
4599
|
-
setBottomSpacing(isMobile && isIos && isLightBoxB
|
|
4600
|
-
? !isPushed && keyOpen
|
|
4601
|
-
? (() => {
|
|
4602
|
-
var _a;
|
|
4603
|
-
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4604
|
-
const isErrorDevice = visualHeight === initialHeight.current;
|
|
4605
|
-
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
4606
|
-
})()
|
|
4607
|
-
: 0
|
|
4608
|
-
: 0);
|
|
4609
|
-
}, [isPushed, keyOpen, isMobile, isIos, isLightBoxB]);
|
|
4610
4669
|
const listBlockAddedRequired = useMemo(() => leadGenFieldRequired(listBlockAdded), listBlockAdded);
|
|
4611
4670
|
const disabledButtonSubmit = useMemo(() => {
|
|
4612
4671
|
if (listBlockAddedRequired.length) {
|
|
@@ -4614,47 +4673,11 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4614
4673
|
}
|
|
4615
4674
|
return false;
|
|
4616
4675
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4617
|
-
const handlePopupContentScroll = () => {
|
|
4618
|
-
if (!isScrollingRef.current) {
|
|
4619
|
-
const active = document.activeElement;
|
|
4620
|
-
if (formRef.current && formRef.current.contains(active)) {
|
|
4621
|
-
active.blur();
|
|
4622
|
-
}
|
|
4623
|
-
}
|
|
4624
|
-
};
|
|
4625
4676
|
const onFocus = (e) => {
|
|
4626
4677
|
// EL-926 Temporary turn off handling focus form on mobile to fix scrolling bug on lightbox A
|
|
4627
4678
|
// return false
|
|
4628
4679
|
e.preventDefault();
|
|
4629
|
-
|
|
4630
|
-
return;
|
|
4631
|
-
setTimeout(() => {
|
|
4632
|
-
var _a, _b;
|
|
4633
|
-
if (!isPushedRef.current && keyOpenRef.current) {
|
|
4634
|
-
const input = e.target;
|
|
4635
|
-
const rect = input.getBoundingClientRect();
|
|
4636
|
-
const inputHeight = rect.height;
|
|
4637
|
-
const inputTop = rect.top;
|
|
4638
|
-
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4639
|
-
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
4640
|
-
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
4641
|
-
const currentScrollY = popupContentRef.current.scrollTop;
|
|
4642
|
-
const viewPort = isErrorDevice
|
|
4643
|
-
? window.innerHeight * 0.4
|
|
4644
|
-
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height;
|
|
4645
|
-
if (currentTop >= viewPort) {
|
|
4646
|
-
const gap = currentTop - viewPort;
|
|
4647
|
-
const targetScrollY = currentScrollY + gap;
|
|
4648
|
-
if (!isNaN(targetScrollY)) {
|
|
4649
|
-
setIsScrolling(true);
|
|
4650
|
-
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
4651
|
-
setTimeout(() => {
|
|
4652
|
-
setIsScrolling(false);
|
|
4653
|
-
}, 500);
|
|
4654
|
-
}
|
|
4655
|
-
}
|
|
4656
|
-
}
|
|
4657
|
-
}, 300);
|
|
4680
|
+
handleFocus(e);
|
|
4658
4681
|
};
|
|
4659
4682
|
const middlewareOnSubmit = (e) => {
|
|
4660
4683
|
e.preventDefault();
|
|
@@ -4778,14 +4801,10 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4778
4801
|
const PopupEmpty = showEmpty && (React__default.createElement(EmptyComponent, { onClose: onClose, onContinue: () => setShowEmpty(false) }));
|
|
4779
4802
|
const PopupForm = (React__default.createElement(LeadFormProvider, { form: form },
|
|
4780
4803
|
React__default.createElement("form", { ref: formRef, className: "leadgen-form", onFocus: onFocus, onSubmit: middlewareOnSubmit },
|
|
4781
|
-
React__default.createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm },
|
|
4804
|
+
React__default.createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm, isLightBoxA: isLightBoxA, bottomStyle: bottomStyle, popupContentRef: popupContentRef, handlePopupContentScroll: handlePopupContentScroll },
|
|
4782
4805
|
React__default.createElement("div", { className: "leadgen-form_inner" },
|
|
4783
4806
|
React__default.createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit, hasSubmitBtn: Boolean(ButtonSubmit), isSubmitLoading: isSubmitLoading, disabledButtonSubmit: disabledButtonSubmit })))),
|
|
4784
|
-
React__default.createElement("div", { style:
|
|
4785
|
-
height: `${bottomSpacing}px`,
|
|
4786
|
-
width: '100%',
|
|
4787
|
-
transition: 'height .2s ease',
|
|
4788
|
-
} })));
|
|
4807
|
+
isLightBoxB && React__default.createElement("div", { style: bottomStyle })));
|
|
4789
4808
|
const PopupOtp = showOtpPhone && (React__default.createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
4790
4809
|
setShowOtpPhone(null);
|
|
4791
4810
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
@@ -4796,7 +4815,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4796
4815
|
});
|
|
4797
4816
|
} }));
|
|
4798
4817
|
const PopupThankYou = showThankyou && (React__default.createElement(ThankyouPopup, { title: showThankyou.title, titleAlign: showThankyou.titleAlign, subtitle: showThankyou.subtitle, subtitleAlign: showThankyou.subtitleAlign, link: showThankyou.link, linkNewTab: showThankyou.linkNewTab, linkText: showThankyou.linkText, image: showThankyou.image }));
|
|
4799
|
-
const PopupContent = (React__default.createElement("div", { ref: popupContentRef, className: clsx('leadgen-content', {
|
|
4818
|
+
const PopupContent = (React__default.createElement("div", { ref: isLightBoxB ? popupContentRef : undefined, className: clsx('leadgen-content', {
|
|
4800
4819
|
'leadgen-content_small': limitFieldsLightBoxB,
|
|
4801
4820
|
}), onScroll: handlePopupContentScroll },
|
|
4802
4821
|
!headerInsideFormContainer && PopupHeader,
|
|
@@ -4842,7 +4861,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4842
4861
|
position: 'absolute',
|
|
4843
4862
|
inset: 0,
|
|
4844
4863
|
zIndex: snap === 1 ? -1 : 1,
|
|
4845
|
-
}, onClick: () => setSnap(1) })))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName
|
|
4864
|
+
}, onClick: () => setSnap(1) })))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
4846
4865
|
isFullscreen ? (React__default.createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
4847
4866
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
4848
4867
|
} })) : null,
|
|
@@ -5148,6 +5167,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5148
5167
|
var _a, _b;
|
|
5149
5168
|
const scrollEventHandlerRef = useRef();
|
|
5150
5169
|
const leadStartTimeRef = useRef(Date.now());
|
|
5170
|
+
const [, setScrollLocked] = useScrollLock();
|
|
5151
5171
|
const { apiUrl } = useMemo(() => {
|
|
5152
5172
|
let apiUrl = apiUrlProp;
|
|
5153
5173
|
if (apiUrl.includes('localhost')) {
|
|
@@ -5163,6 +5183,9 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5163
5183
|
const [showEmpty, setShowEmpty] = useState(false);
|
|
5164
5184
|
const [redirectUrl, setRedirectUrl] = useState();
|
|
5165
5185
|
const currentLayout = useMemo(() => showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout, [showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout]);
|
|
5186
|
+
const layoutUseOverlay = useMemo(() => !!currentLayout &&
|
|
5187
|
+
!currentLayout.includes('Inline') &&
|
|
5188
|
+
!currentLayout.includes('Sidebar'), [currentLayout]);
|
|
5166
5189
|
useEffect(() => {
|
|
5167
5190
|
if (forceCampaign) {
|
|
5168
5191
|
setShowCampaign(forceCampaign);
|
|
@@ -5182,6 +5205,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5182
5205
|
document.body.classList.remove('noscroll');
|
|
5183
5206
|
setShowCampaign(null);
|
|
5184
5207
|
setShowThankyou(null);
|
|
5208
|
+
setScrollLocked(false);
|
|
5185
5209
|
setAction('HIDE');
|
|
5186
5210
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
5187
5211
|
};
|
|
@@ -5203,36 +5227,41 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5203
5227
|
}
|
|
5204
5228
|
}
|
|
5205
5229
|
}
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
body: JSON.stringify({
|
|
5213
|
-
action: 'CLICK',
|
|
5214
|
-
url: location.href.toLowerCase(),
|
|
5215
|
-
title_article: document.title,
|
|
5216
|
-
cookie_id: getCookie('hhg-id') || '',
|
|
5217
|
-
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5218
|
-
}),
|
|
5219
|
-
}),
|
|
5220
|
-
!showThankyou &&
|
|
5221
|
-
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5222
|
-
trackingCompletionForm({
|
|
5223
|
-
commonData: {
|
|
5224
|
-
cookie_id: getCookie('hhg-id') || '',
|
|
5225
|
-
ga_client_id: getCookie('_ga') || null,
|
|
5226
|
-
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5227
|
-
status: 'in_progress',
|
|
5228
|
-
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5229
|
-
total_fields: listBlockAdded.length,
|
|
5230
|
-
type: 'close',
|
|
5230
|
+
try {
|
|
5231
|
+
yield Promise.all([
|
|
5232
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
|
|
5233
|
+
method: 'POST',
|
|
5234
|
+
headers: {
|
|
5235
|
+
'Content-Type': 'application/json',
|
|
5231
5236
|
},
|
|
5232
|
-
|
|
5233
|
-
|
|
5237
|
+
body: JSON.stringify({
|
|
5238
|
+
action: 'CLICK',
|
|
5239
|
+
url: location.href.toLowerCase(),
|
|
5240
|
+
title_article: document.title,
|
|
5241
|
+
cookie_id: getCookie('hhg-id') || '',
|
|
5242
|
+
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5243
|
+
}),
|
|
5234
5244
|
}),
|
|
5235
|
-
|
|
5245
|
+
!showThankyou &&
|
|
5246
|
+
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5247
|
+
trackingCompletionForm({
|
|
5248
|
+
commonData: {
|
|
5249
|
+
cookie_id: getCookie('hhg-id') || '',
|
|
5250
|
+
ga_client_id: getCookie('_ga') || null,
|
|
5251
|
+
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5252
|
+
status: 'in_progress',
|
|
5253
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5254
|
+
total_fields: listBlockAdded.length,
|
|
5255
|
+
type: 'close',
|
|
5256
|
+
},
|
|
5257
|
+
currentLayout,
|
|
5258
|
+
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
5259
|
+
}),
|
|
5260
|
+
]);
|
|
5261
|
+
}
|
|
5262
|
+
catch (err) {
|
|
5263
|
+
console.log(err);
|
|
5264
|
+
}
|
|
5236
5265
|
onCloseBase();
|
|
5237
5266
|
});
|
|
5238
5267
|
const onUnmount = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -5490,6 +5519,9 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5490
5519
|
leadStartTimeRef.current = Date.now();
|
|
5491
5520
|
}
|
|
5492
5521
|
}, [showCampaign]);
|
|
5522
|
+
useEffect(() => {
|
|
5523
|
+
setScrollLocked(layoutUseOverlay);
|
|
5524
|
+
}, [layoutUseOverlay]);
|
|
5493
5525
|
return (React__default.createElement(LeadGenContext$1.Provider, { value: {
|
|
5494
5526
|
primaryColor,
|
|
5495
5527
|
apiUrl,
|
|
@@ -5505,9 +5537,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5505
5537
|
React__default.createElement(Transition, { mounted: Boolean(((_b = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _b === void 0 ? void 0 : _b.popupVersion) === '2.1'), transition: "fade", duration: 600, timingFunction: "ease", exitDuration: 200 }, (styles) => {
|
|
5506
5538
|
var _a;
|
|
5507
5539
|
return (React__default.createElement(Box, { style: styles }, ((_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.popupVersion) === '2.1' && (React__default.createElement(React__default.Fragment, null,
|
|
5508
|
-
|
|
5509
|
-
!currentLayout.includes('Inline') &&
|
|
5510
|
-
!currentLayout.includes('Sidebar') && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5540
|
+
layoutUseOverlay && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5511
5541
|
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5512
5542
|
}))))))));
|
|
5513
5543
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { memo, useMemo } from 'react';
|
|
2
|
-
import { C as CommonGAssets } from './index-
|
|
3
|
-
import { I as ImageWrap } from './index-
|
|
2
|
+
import { C as CommonGAssets } from './index-99d47c00.js';
|
|
3
|
+
import { I as ImageWrap } from './index-419ca2b8.js';
|
|
4
4
|
|
|
5
5
|
const _LogoIcon = ({ type, width, height }) => {
|
|
6
6
|
const data = useMemo(() => {
|