@hhgtech/hhg-components 1.29.426 → 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-33df41f3.js → GeneralInfo-1aa0091e.js} +85 -77
- package/build/{InputDate-e1678502.js → InputDate-1d0ab729.js} +5 -5
- package/build/{LastPeriod-09b44044.js → LastPeriod-52e72d62.js} +1 -1
- package/build/{MobileBottomNavigationIcon-7095b1ca.js → MobileBottomNavigationIcon-f77d8b9b.js} +3 -3
- package/build/{Spinner-cdd47253.js → Spinner-35c88da9.js} +1 -1
- package/build/{WhatsApp-3f6f47cb.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/atoms/drawerBottom/styled.d.ts +2 -0
- package/build/components/atoms/drawerComponent/index.styled.d.ts +2 -0
- 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-5c5df249.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-9bfc8d59.js → core-0102830e.js} +1 -1
- package/build/{dataTransform-c079832b.js → dataTransform-7ba5c8d2.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-37dd1de4.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-26c3fa46.js → GeneralInfo-e9e87c34.js} +85 -78
- package/build/esm/{InputDate-5a457f47.js → InputDate-036d702a.js} +5 -5
- package/build/esm/{LastPeriod-d3a3b0e1.js → LastPeriod-083a680a.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-de7bd863.js → MobileBottomNavigationIcon-3516a7cc.js} +3 -3
- package/build/esm/{Spinner-e2372478.js → Spinner-d55b953b.js} +1 -1
- package/build/esm/{WhatsApp-57fb5cfa.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/atoms/drawerBottom/styled.d.ts +2 -0
- package/build/esm/components/atoms/drawerComponent/index.styled.d.ts +2 -0
- 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-e74c67ee.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-52cf6c6f.js → core-fdea0eed.js} +1 -1
- package/build/esm/{dataTransform-0fafa03e.js → dataTransform-c7566396.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-1b19a260.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-5d6fc4f7.js → healthTools-0ac21095.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks/useDrawerDrag.d.ts +5 -0
- 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-985cb859.js → index-00e7cea7.js} +25 -25
- package/build/esm/{index-9dc7c12c.js → index-01206782.js} +2 -2
- package/build/esm/{index-42da6aa3.js → index-02975605.js} +32 -32
- package/build/esm/{index-b4e3eda4.js → index-03a16dd1.js} +14 -14
- package/build/esm/{index-96921955.js → index-058b0967.js} +22 -22
- package/build/esm/{index-60134cc0.js → index-065816f6.js} +1 -1
- package/build/esm/{index-74e79996.js → index-07809b8a.js} +8 -8
- package/build/esm/{index-c49753f1.js → index-090dea91.js} +2 -2
- package/build/esm/{index-d9b10070.js → index-0c235141.js} +2 -2
- package/build/esm/{index-a928937d.js → index-1b5b102d.js} +2 -2
- package/build/esm/{index-6d75b8d6.js → index-25d3efd8.js} +13 -13
- package/build/esm/{index-3d9af6c1.js → index-3831fb94.js} +3 -3
- package/build/esm/{index-08b3741a.js → index-39ca557b.js} +13 -13
- package/build/esm/{index-c11edefc.js → index-3afde005.js} +17 -17
- package/build/esm/{index-6e6adf66.js → index-419ca2b8.js} +2 -2
- package/build/esm/{index-cdb792e1.js → index-49281ab1.js} +4 -4
- package/build/esm/{index-0650583c.js → index-4b4257f2.js} +13 -13
- package/build/esm/{index-d9447bed.js → index-4d2b3b0a.js} +1 -1
- package/build/esm/{index-2827bed4.js → index-54e60938.js} +17 -17
- package/build/esm/{index-410911c7.js → index-58c50818.js} +16 -16
- package/build/esm/{index-7c758c38.js → index-5c4c2c55.js} +13 -13
- package/build/esm/{index-e9b6c737.js → index-5cadde94.js} +6 -6
- package/build/esm/{index-ee2b5506.js → index-5f11422b.js} +2 -2
- package/build/esm/{index-032b0e1c.js → index-5f7fe6da.js} +3 -3
- package/build/esm/{index-9749fab7.js → index-5fa79508.js} +2 -2
- package/build/esm/{index-7a93ded9.js → index-60aae241.js} +1 -1
- package/build/esm/{index-b145dc48.js → index-61b5768c.js} +6 -6
- package/build/esm/{index-bf0c286c.js → index-6524dc07.js} +1 -1
- package/build/esm/{index-b8d247e6.js → index-6fb373b9.js} +3 -3
- package/build/esm/{index-454aabe6.js → index-77272775.js} +2 -2
- package/build/esm/{index-d9c45c9f.js → index-807319c5.js} +10 -10
- package/build/esm/{index-d9018f5a.js → index-812eff27.js} +33 -33
- package/build/esm/{index-ed121b65.js → index-827507f9.js} +15 -15
- package/build/esm/{index-c5d523f7.js → index-85e80779.js} +2 -2
- package/build/esm/{index-caa5e1d0.js → index-89cf8199.js} +8 -8
- package/build/esm/{index-20c22407.js → index-8a1c0f96.js} +2 -2
- package/build/esm/{index-60042364.js → index-8e31f657.js} +2 -2
- package/build/esm/{index-4b29e07a.js → index-8f27a513.js} +7 -7
- package/build/esm/{index-d8b0a239.js → index-93dfda98.js} +6 -6
- package/build/esm/{index-2db6f2db.js → index-96e84d05.js} +2 -2
- package/build/esm/{index-ec73a304.js → index-9d9bf01d.js} +13 -13
- package/build/esm/{index-1fe21035.js → index-9f1d761c.js} +15 -15
- package/build/esm/{index-ee87b5ad.js → index-a4126464.js} +4 -4
- package/build/esm/{index-45a8b774.js → index-a5524300.js} +21 -21
- package/build/esm/{index-b57790fe.js → index-a5e8193e.js} +5 -5
- package/build/esm/{index-d9cac89e.js → index-af9852ed.js} +2 -2
- package/build/esm/{index-316175b3.js → index-afcd2e11.js} +2 -2
- package/build/esm/{index-4d014b3b.js → index-afe6085f.js} +1 -1
- package/build/esm/{index-11aeba79.js → index-b19b6df1.js} +15 -15
- package/build/esm/{index-5833c193.js → index-b2d6d634.js} +2 -2
- package/build/esm/{index-101b3499.js → index-b519315f.js} +16 -16
- package/build/esm/{index-63465c91.js → index-b7e85a3c.js} +18 -16
- package/build/esm/{index-802c372d.js → index-bcbb877b.js} +13 -13
- package/build/esm/{index-12ec0a3b.js → index-bd23ee73.js} +17 -17
- package/build/esm/{index-304b4db7.js → index-c5df37f6.js} +30 -5
- package/build/esm/{index-058bca94.js → index-c7c54d0f.js} +1 -1
- package/build/esm/{index-0c17e028.js → index-c86117e4.js} +3 -3
- package/build/esm/{index-00da1525.js → index-cf2d56cf.js} +1 -1
- package/build/esm/{index-39422a01.js → index-d1cf6769.js} +11 -11
- package/build/esm/{index-b2bc4bcc.js → index-d29ed174.js} +32 -32
- package/build/esm/{index-2e5cbf2e.js → index-d55c2070.js} +3 -3
- package/build/esm/{index-a41cfe2d.js → index-db50ac52.js} +1 -1
- package/build/esm/{index-ddcc418c.js → index-e545a30c.js} +6 -6
- package/build/esm/{index-6c099508.js → index-ea6b1992.js} +3 -3
- package/build/esm/{index-1071a7c6.js → index-f4d17a9c.js} +17 -17
- package/build/esm/{index-93da46ac.js → index-f5ef03a8.js} +7 -7
- package/build/esm/{index-4c3cb3db.js → index-f918bc9e.js} +86 -39
- package/build/esm/{index-c2b2d889.js → index-fb363ecd.js} +3 -3
- package/build/esm/{index-09ed05be.js → index-fcc457ed.js} +2 -2
- package/build/esm/index.js +122 -123
- package/build/esm/{labelSorting-de358037.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-d9d4bc06.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-c7a8594d.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-e0b283c7.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-545a6cba.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-9a10fdda.js → translationsProvider-e510e7ff.js} +1 -1
- package/build/esm/{treePopoverMenu-ce29ee8f.js → treePopoverMenu-879aca94.js} +19 -19
- package/build/esm/{index-f55d816e.js → types-7c8fb601.js} +16 -3
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-0825d841.js → useCategory-a393324b.js} +5 -5
- package/build/esm/{useHealthToolCache-5614673b.js → useHealthToolCache-76f052de.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-144e699e.js → usePlacesAutocomplete-8ba5c917.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-ef2933c6.js → utils-8d13ecca.js} +3 -3
- package/build/esm/{utils-c53fcf83.js → utils-cfb9b5cd.js} +2 -2
- package/build/esm/{utils-ae73b940.js → utils-e142ccf1.js} +5 -5
- package/build/esm/{utils-e683e0f3.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-5cc29a36.js → healthTools-f8138d8c.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks/useDrawerDrag.d.ts +5 -0
- 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-6ad36085.js → index-010356fa.js} +2 -2
- package/build/{index-db069b14.js → index-01294060.js} +6 -6
- package/build/{index-9cf6bba2.js → index-0133d1fb.js} +1 -1
- package/build/{index-dcc613b0.js → index-0240275c.js} +13 -13
- package/build/{index-166fc9e3.js → index-07d7bd32.js} +2 -2
- package/build/{index-abebcb8f.js → index-08e83020.js} +2 -2
- package/build/{index-0fbea502.js → index-11d614b1.js} +13 -13
- package/build/{index-e3348be4.js → index-152c04ba.js} +1 -1
- package/build/{index-ef228eb1.js → index-1949a1f0.js} +7 -7
- package/build/{index-a8c6911a.js → index-238a3f93.js} +32 -32
- package/build/{index-74796821.js → index-2547ba44.js} +18 -16
- package/build/{index-df0a3489.js → index-275f57ff.js} +4 -4
- package/build/{index-876cff4f.js → index-285c523c.js} +16 -16
- package/build/{index-9ff5efc9.js → index-2be42333.js} +2 -2
- package/build/{index-d910803f.js → index-2e25ef31.js} +14 -14
- package/build/{index-8d8bf92e.js → index-2fdbb2e8.js} +11 -11
- package/build/{index-bb02207c.js → index-3131cb0f.js} +1 -1
- package/build/{index-00aad594.js → index-382c891c.js} +3 -3
- package/build/{index-2ff5a28e.js → index-3f12ad5f.js} +2 -2
- package/build/{index-98c98ab1.js → index-42d7dbf3.js} +3 -3
- package/build/{index-cc880fec.js → index-4703eca3.js} +32 -32
- package/build/{index-b11b7d02.js → index-4cc88ab6.js} +3 -3
- package/build/{index-260360c6.js → index-4e9ee460.js} +2 -2
- package/build/{index-8fd5c568.js → index-51bea6e4.js} +2 -2
- package/build/{index-3002af38.js → index-5210a867.js} +3 -3
- package/build/{index-3e044992.js → index-555f65d8.js} +2 -2
- package/build/{index-b63dfa26.js → index-611609d6.js} +6 -6
- package/build/{index-f16261e5.js → index-62be6901.js} +32 -32
- package/build/{index-199c89df.js → index-6a1b67b8.js} +16 -16
- package/build/{index-989ffe5b.js → index-6acd9ff0.js} +17 -17
- package/build/{index-9bf1b448.js → index-6b80d135.js} +15 -15
- package/build/{index-db218ffe.js → index-6bd6120a.js} +17 -17
- package/build/{index-9994b331.js → index-7fc84058.js} +7 -7
- package/build/{index-9f1cdc55.js → index-815ad42f.js} +6 -6
- package/build/{index-139fd08e.js → index-84a852c1.js} +13 -13
- package/build/{index-3410e311.js → index-858931f0.js} +2 -2
- package/build/{index-2b28624b.js → index-8db0e27b.js} +1 -1
- package/build/{index-58b44711.js → index-8f6aa622.js} +1 -1
- package/build/{index-25d36901.js → index-95cd3f2e.js} +3 -3
- package/build/{index-5ad60b94.js → index-97cd0baa.js} +30 -4
- package/build/{index-15563bd8.js → index-9aa54329.js} +2 -2
- package/build/{index-d22852e9.js → index-9fcd8e65.js} +6 -6
- package/build/{index-b2d03164.js → index-a6238ac3.js} +2 -2
- package/build/{index-d01fe558.js → index-a7910e07.js} +2 -2
- package/build/{index-833531e0.js → index-b144cab6.js} +3 -3
- package/build/{index-8aec6f01.js → index-b27284b8.js} +3 -3
- package/build/{index-29eaf784.js → index-b6a7058e.js} +22 -22
- package/build/{index-04fe745c.js → index-b74050b3.js} +13 -13
- package/build/{index-3eacc909.js → index-c1290a00.js} +17 -17
- package/build/{index-eff42b3a.js → index-c4f137fe.js} +2 -2
- package/build/{index-ec2885b9.js → index-c7aece21.js} +13 -13
- package/build/{index-a88fc4ba.js → index-ca704529.js} +25 -25
- package/build/{index-9c19af73.js → index-cd259a64.js} +10 -10
- package/build/{index-4728cfac.js → index-cf4a7449.js} +1 -1
- package/build/{index-db7e59cb.js → index-d5af774d.js} +4 -4
- package/build/{index-c3405459.js → index-d8d00e05.js} +13 -13
- package/build/{index-43d3e97e.js → index-ddddbadc.js} +15 -15
- package/build/{index-32bc0f0b.js → index-de52b8bb.js} +1 -1
- package/build/{index-f41092d3.js → index-e5e6718b.js} +1 -1
- package/build/{index-a7678a2d.js → index-e7405658.js} +15 -15
- package/build/{index-596f3add.js → index-e7e8b1ae.js} +2 -2
- package/build/{index-95211105.js → index-e9c3e5a7.js} +87 -40
- package/build/{index-49fb7c56.js → index-ed26b14f.js} +2 -2
- package/build/{index-4727ab55.js → index-f23a4b83.js} +5 -5
- package/build/{index-2b488294.js → index-f28a371e.js} +21 -21
- package/build/{index-d56eadcf.js → index-f7ef3765.js} +8 -8
- package/build/{index-82dd03cc.js → index-f8d2290b.js} +8 -8
- package/build/{index-a21b1251.js → index-fb65c286.js} +17 -17
- package/build/{index-5300240a.js → index-fcb174ce.js} +2 -2
- package/build/index.js +125 -125
- package/build/{labelSorting-d4dcc7dc.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-659e66a6.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-cbcedabc.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-eb428ea0.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-4aeb01c3.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-d049e991.js → translationsProvider-f36b5822.js} +1 -1
- package/build/{treePopoverMenu-6affa405.js → treePopoverMenu-f06dbcc4.js} +19 -19
- package/build/{index-05fe1b4f.js → types-889d3099.js} +16 -2
- package/build/types.js +2 -2
- package/build/{useCategory-7d57cd98.js → useCategory-7f90a915.js} +5 -5
- package/build/{useHealthToolCache-246b0f34.js → useHealthToolCache-388fabe4.js} +1 -1
- package/build/{usePlacesAutocomplete-c32bf17e.js → usePlacesAutocomplete-9721f94b.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-3fe71f5c.js → utils-89323f82.js} +5 -5
- package/build/{utils-adc63aa6.js → utils-a3ddb569.js} +2 -2
- package/build/{utils-8a08eae3.js → utils-a723729a.js} +3 -3
- package/build/{utils-160b7394.js → utils-f4d7438b.js} +2 -2
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/esm/types-6787a58f.js +0 -16
- package/build/types-639ef7d1.js +0 -19
- /package/build/{BMI_BOYS.percentile.monthly-8e45a824.js → BMI_BOYS.percentile.monthly-aabd8ad7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-323620ad.js → BMI_BOYS.percentile.weekly-a0570a7e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-6f9eaa4a.js → BMI_BOYS.percentile.yearly-f6f71504.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-1d80b18f.js → BMI_BOYS.zscore.monthly-0c3ec584.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-0af9f6d2.js → BMI_BOYS.zscore.weekly-0f38f669.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-b98c005e.js → BMI_BOYS.zscore.yearly-8e8ca54a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-dff53b86.js → BMI_GIRLS.percentile.monthly-2c06efa1.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-e810fb69.js → BMI_GIRLS.percentile.weekly-65d16387.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-669b6da0.js → BMI_GIRLS.percentile.yearly-a076b251.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-8f5e014e.js → BMI_GIRLS.zscore.monthly-532c96bd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-40cce3d2.js → BMI_GIRLS.zscore.weekly-b76fab1d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-ce7134aa.js → BMI_GIRLS.zscore.yearly-8f22c3cb.js} +0 -0
- /package/build/{ChevronDown-a7378163.js → ChevronDown-c22d84ff.js} +0 -0
- /package/build/{Close-96810934.js → Close-40582baa.js} +0 -0
- /package/build/{Google-2db0df14.js → Google-069ae090.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-89bee83d.js → HEAD CIRCUM_BOYS.percentile.monthly-86fd06c7.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-2f163b68.js → HEAD CIRCUM_BOYS.percentile.weekly-38d9ae38.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-a87edb12.js → HEAD CIRCUM_BOYS.percentile.yearly-11e7db44.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-29b30bb3.js → HEAD CIRCUM_BOYS.zscore.monthly-9a9ad66e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-90797686.js → HEAD CIRCUM_BOYS.zscore.weekly-aa5fbaae.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-06315595.js → HEAD CIRCUM_BOYS.zscore.yearly-ada152ed.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-c03585ba.js → HEAD CIRCUM_GIRLS.percentile.monthly-bd2fd5a7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-7db20874.js → HEAD CIRCUM_GIRLS.percentile.weekly-f4072ffd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-17c11195.js → HEAD CIRCUM_GIRLS.percentile.yearly-d5476f23.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-8fbbe61e.js → HEAD CIRCUM_GIRLS.zscore.monthly-4f180105.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-9cc5c295.js → HEAD CIRCUM_GIRLS.zscore.weekly-62e4689a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0c5018bb.js → HEAD CIRCUM_GIRLS.zscore.yearly-65c0a218.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-1f5fe004.js → HEIGHT_BOYS.percentile.monthly-281aae42.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-3b4084e6.js → HEIGHT_BOYS.percentile.weekly-eda57b57.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-3fa489d5.js → HEIGHT_BOYS.percentile.yearly-293d01fd.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-cc064781.js → HEIGHT_BOYS.zscore.monthly-bfb04e53.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-1ef4b42b.js → HEIGHT_BOYS.zscore.weekly-389c15b8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-b4ef023e.js → HEIGHT_BOYS.zscore.yearly-dd94afdc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-25a15c42.js → HEIGHT_GIRLS.percentile.monthly-2556e50a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-789c6ccf.js → HEIGHT_GIRLS.percentile.weekly-bd731df1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-62557d2b.js → HEIGHT_GIRLS.percentile.yearly-ee457c1b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-407089a5.js → HEIGHT_GIRLS.zscore.monthly-f5a3de20.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-9e7da2ed.js → HEIGHT_GIRLS.zscore.weekly-8ed74087.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-f449a088.js → HEIGHT_GIRLS.zscore.yearly-331d3cb8.js} +0 -0
- /package/build/{Locale-fdc48ed4.js → Locale-a1b1ec82.js} +0 -0
- /package/build/{Visible-7f7ffb06.js → Visible-a014ab48.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-f8d643f4.js → WEIGHT_BOYS.percentile.monthly-aa96bb70.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-6c545811.js → WEIGHT_BOYS.percentile.weekly-d696d106.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-6383c35f.js → WEIGHT_BOYS.percentile.yearly-3726a234.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-ac3f2ccb.js → WEIGHT_BOYS.zscore.monthly-54aed401.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-c0579632.js → WEIGHT_BOYS.zscore.weekly-14e71d1c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-aa3887c0.js → WEIGHT_BOYS.zscore.yearly-de572448.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-f9928f7d.js → WEIGHT_GIRLS.percentile.monthly-70412c05.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-1879fccb.js → WEIGHT_GIRLS.percentile.weekly-5bf4cc3b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-67257ba8.js → WEIGHT_GIRLS.percentile.yearly-9909c4e6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b2bc974a.js → WEIGHT_GIRLS.zscore.monthly-519b5bdd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-dbf74edf.js → WEIGHT_GIRLS.zscore.weekly-08b61afc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-e32661de.js → WEIGHT_GIRLS.zscore.yearly-ceba94d2.js} +0 -0
- /package/build/{ageGenerate-9b423ce1.js → ageGenerate-62226049.js} +0 -0
- /package/build/{animation-72df2912.js → animation-267ce396.js} +0 -0
- /package/build/{constants-a9594d70.js → constants-1e48d93f.js} +0 -0
- /package/build/{constants-12a05b1b.js → constants-310b07b8.js} +0 -0
- /package/build/{constants-b96c6815.js → constants-cdc5ae49.js} +0 -0
- /package/build/{dataTransform-91655a5c.js → dataTransform-55ece460.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-56e1c2ad.js → BMI_BOYS.percentile.monthly-1ace03d1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-c9935872.js → BMI_BOYS.percentile.weekly-5f12c187.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-e066021f.js → BMI_BOYS.percentile.yearly-715b92c7.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-b6ac5272.js → BMI_BOYS.zscore.monthly-63bbcafc.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-ec89debb.js → BMI_BOYS.zscore.weekly-9594b326.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-a2e1ea65.js → BMI_BOYS.zscore.yearly-42560c41.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-0a026e1d.js → BMI_GIRLS.percentile.monthly-dfbbb804.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-745099f9.js → BMI_GIRLS.percentile.weekly-56d2e18b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-46ffdfc2.js → BMI_GIRLS.percentile.yearly-e28a1a30.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-237190cc.js → BMI_GIRLS.zscore.monthly-7d492112.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-5072ac10.js → BMI_GIRLS.zscore.weekly-37169a4c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-6387216e.js → BMI_GIRLS.zscore.yearly-41193d88.js} +0 -0
- /package/build/esm/{ChevronDown-e5dd7174.js → ChevronDown-5e816a12.js} +0 -0
- /package/build/esm/{Close-494bdd15.js → Close-1b4b3f6e.js} +0 -0
- /package/build/esm/{Google-14adb65c.js → Google-ab5b71ac.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-d0526ad7.js → HEAD CIRCUM_BOYS.percentile.monthly-4d9d2f73.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-9f7566d3.js → HEAD CIRCUM_BOYS.percentile.weekly-f9477642.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-ce0a7564.js → HEAD CIRCUM_BOYS.percentile.yearly-5701a057.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-32f9bde3.js → HEAD CIRCUM_BOYS.zscore.monthly-6a0ba66b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a8c33ecd.js → HEAD CIRCUM_BOYS.zscore.weekly-dbd57db9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-7afe3872.js → HEAD CIRCUM_BOYS.zscore.yearly-32d4f4ec.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-5aea6cbc.js → HEAD CIRCUM_GIRLS.percentile.monthly-85927c27.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-50d1073c.js → HEAD CIRCUM_GIRLS.percentile.weekly-4e144e68.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-7b4996ca.js → HEAD CIRCUM_GIRLS.percentile.yearly-d15d725e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3740e03b.js → HEAD CIRCUM_GIRLS.zscore.monthly-5f4fc5ed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-2f8a55b8.js → HEAD CIRCUM_GIRLS.zscore.weekly-7a2bffc7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-e951bbc5.js → HEAD CIRCUM_GIRLS.zscore.yearly-ef47e424.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-828a2019.js → HEIGHT_BOYS.percentile.monthly-6244b439.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-0ba28ca0.js → HEIGHT_BOYS.percentile.weekly-0c2227c8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-73c044ec.js → HEIGHT_BOYS.percentile.yearly-e24be4fb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-3a9333ce.js → HEIGHT_BOYS.zscore.monthly-9d29a23b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-8b22d8f9.js → HEIGHT_BOYS.zscore.weekly-2d4e2e5c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-0b5fc138.js → HEIGHT_BOYS.zscore.yearly-e13ea868.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-dd34fa46.js → HEIGHT_GIRLS.percentile.monthly-d228f5f7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-4cc3ad40.js → HEIGHT_GIRLS.percentile.weekly-18fccae8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-44ee8e20.js → HEIGHT_GIRLS.percentile.yearly-3989d75f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-0aa15ed5.js → HEIGHT_GIRLS.zscore.monthly-cd3ae6cc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-bfcafc1c.js → HEIGHT_GIRLS.zscore.weekly-4ea9b63a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-e9812703.js → HEIGHT_GIRLS.zscore.yearly-c39b2269.js} +0 -0
- /package/build/esm/{Locale-1adbd058.js → Locale-5be8188a.js} +0 -0
- /package/build/esm/{Visible-83e8581a.js → Visible-8d4ecff1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-f5b1ef7e.js → WEIGHT_BOYS.percentile.monthly-cd8b3e55.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-83f3ad53.js → WEIGHT_BOYS.percentile.weekly-b8c1202b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-873f842b.js → WEIGHT_BOYS.percentile.yearly-7f3e066b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-79698915.js → WEIGHT_BOYS.zscore.monthly-3808b3b8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-2852b623.js → WEIGHT_BOYS.zscore.weekly-df4d230b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-40a3b57a.js → WEIGHT_BOYS.zscore.yearly-df32e99f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-3c0abf82.js → WEIGHT_GIRLS.percentile.monthly-047f2926.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-461242b8.js → WEIGHT_GIRLS.percentile.weekly-a998da7b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-88c2d887.js → WEIGHT_GIRLS.percentile.yearly-1cffc87c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-72da1180.js → WEIGHT_GIRLS.zscore.monthly-9e7ebcaf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-036955bd.js → WEIGHT_GIRLS.zscore.weekly-2a695ed4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-87c8435c.js → WEIGHT_GIRLS.zscore.yearly-fa3600ed.js} +0 -0
- /package/build/esm/{ageGenerate-f973e47c.js → ageGenerate-83c2ce64.js} +0 -0
- /package/build/esm/{animation-96eba5b5.js → animation-91b1e83d.js} +0 -0
- /package/build/esm/{constants-32613d9d.js → constants-768d67b8.js} +0 -0
- /package/build/esm/{constants-3ba45268.js → constants-7dd2be5f.js} +0 -0
- /package/build/esm/{constants-6fdeff2a.js → constants-ae115b9f.js} +0 -0
- /package/build/esm/{dataTransform-34f2a53a.js → dataTransform-1444acc6.js} +0 -0
- /package/build/esm/{index-9ddf68e2.js → index-453d72c1.js} +0 -0
- /package/build/esm/{index-5cfa8618.js → index-68bed127.js} +0 -0
- /package/build/esm/{index-5a149ebd.js → index-7ef4b69d.js} +0 -0
- /package/build/esm/{index-d21e5ac4.js → index-99d47c00.js} +0 -0
- /package/build/esm/{index-76caeba3.js → index-c070f843.js} +0 -0
- /package/build/esm/{index-dd7df557.js → index-d22dd163.js} +0 -0
- /package/build/esm/{index-bb9d388d.js → index-d72c5be3.js} +0 -0
- /package/build/esm/{index-ccf330be.js → index-ebc0208c.js} +0 -0
- /package/build/esm/{index.styles-90350fcf.js → index.styles-a80ccc56.js} +0 -0
- /package/build/esm/{localizeNumberFormat-498e26c3.js → localizeNumberFormat-1793a13f.js} +0 -0
- /package/build/esm/{normalizeLink-351b5950.js → normalizeLink-dbd854ae.js} +0 -0
- /package/build/esm/{number-3b47fa37.js → number-fb459821.js} +0 -0
- /package/build/esm/{paths-4947f363.js → paths-6fbd4b6a.js} +0 -0
- /package/build/esm/{shared-9f63c003.js → shared-08588d98.js} +0 -0
- /package/build/esm/{text-594e9ab1.js → text-fe36a7f8.js} +0 -0
- /package/build/esm/{translationsContext-5c3203aa.js → translationsContext-e45c090d.js} +0 -0
- /package/build/esm/{tslib.es6-ca7ad81a.js → tslib.es6-7b2139eb.js} +0 -0
- /package/build/esm/{types-5adb0499.js → types-cd5ea76c.js} +0 -0
- /package/build/esm/{useIsInit-381625b1.js → useIsInit-75b17972.js} +0 -0
- /package/build/esm/{useOutsideClick-7f5ed040.js → useOutsideClick-ca21582a.js} +0 -0
- /package/build/esm/{useScrollbarSize-d35457b9.js → useScrollbarSize-8fe78db5.js} +0 -0
- /package/build/esm/{useUniqueId-91e55ec9.js → useUniqueId-582a9b8b.js} +0 -0
- /package/build/esm/{utils-6bddb1bf.js → utils-1e0330c1.js} +0 -0
- /package/build/{index-02f667dd.js → index-0ee700a4.js} +0 -0
- /package/build/{index-d588c0b6.js → index-2232c1b1.js} +0 -0
- /package/build/{index-122192c1.js → index-27d7affb.js} +0 -0
- /package/build/{index-a57a88a1.js → index-2994da93.js} +0 -0
- /package/build/{index-91761b24.js → index-2b2c0dd9.js} +0 -0
- /package/build/{index-2e5494b7.js → index-53811047.js} +0 -0
- /package/build/{index-c0eb867f.js → index-c96a83af.js} +0 -0
- /package/build/{index-7e34c103.js → index-cfbd71f1.js} +0 -0
- /package/build/{index.styles-87ede8e8.js → index.styles-1ca4a2c2.js} +0 -0
- /package/build/{localizeNumberFormat-581a281e.js → localizeNumberFormat-5fee20a1.js} +0 -0
- /package/build/{normalizeLink-1db650d8.js → normalizeLink-791a2900.js} +0 -0
- /package/build/{number-2e860c52.js → number-2811edb2.js} +0 -0
- /package/build/{paths-d98fa465.js → paths-47bd7b41.js} +0 -0
- /package/build/{shared-8e7704fe.js → shared-f89c53a2.js} +0 -0
- /package/build/{text-c450bd39.js → text-c781d461.js} +0 -0
- /package/build/{translationsContext-71b1f423.js → translationsContext-96803826.js} +0 -0
- /package/build/{tslib.es6-292d3bbc.js → tslib.es6-da217af3.js} +0 -0
- /package/build/{types-45985c68.js → types-cd8cd4cc.js} +0 -0
- /package/build/{useIsInit-dad1cccf.js → useIsInit-47154c0d.js} +0 -0
- /package/build/{useOutsideClick-4ce86e4e.js → useOutsideClick-cb592ec2.js} +0 -0
- /package/build/{useScrollbarSize-c384e150.js → useScrollbarSize-3b5d9d25.js} +0 -0
- /package/build/{useUniqueId-a9c31762.js → useUniqueId-64f321a3.js} +0 -0
- /package/build/{utils-cd06f4bb.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(() => {
|