@hhgtech/hhg-components 1.29.393 → 1.29.394-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-1d4ab9a2.js → InputDate-eac90f76.js} +17 -7
- package/build/{LastPeriod-e48dbfd6.js → LastPeriod-c3e011d5.js} +1 -1
- package/build/{MobileBottomNavigationIcon-c3d43f19.js → MobileBottomNavigationIcon-10bed079.js} +3 -3
- package/build/{Spinner-2b6d066f.js → Spinner-e7553de3.js} +1 -1
- package/build/{WhatsApp-b15d7e61.js → WhatsApp-e9852dad.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +54 -55
- package/build/babyGrowth.js +83 -83
- package/build/cache.js +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/drawerComponent/index.d.ts +7 -0
- package/build/components.js +146 -147
- package/build/{constants-78e9fdab.js → constants-50fcb7b4.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-46fc96e8.js → core-3173beab.js} +1 -1
- package/build/{dataTransform-cc1f45d9.js → dataTransform-fbe25d84.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-3b0619f0.js → editor-62213383.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{InputDate-b1571459.js → InputDate-d8c603b6.js} +17 -7
- package/build/esm/{LastPeriod-16f3f1ac.js → LastPeriod-e86f595d.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-4f9c5c5e.js → MobileBottomNavigationIcon-2d8779c1.js} +3 -3
- package/build/esm/{Spinner-63f5cf82.js → Spinner-da82667e.js} +1 -1
- package/build/esm/{WhatsApp-8e34c570.js → WhatsApp-f4dcedcf.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +53 -54
- package/build/esm/babyGrowth.js +83 -83
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/atoms/drawerComponent/index.d.ts +7 -0
- package/build/esm/components.js +102 -103
- package/build/esm/{constants-52c448bc.js → constants-04e464e6.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-9866ee5c.js → core-6a2d1a82.js} +1 -1
- package/build/esm/{dataTransform-7976e500.js → dataTransform-9bdd89a7.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-11032aa3.js → editor-4bcc67ac.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-8faa339a.js → healthTools-85c1f8b2.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +1 -0
- package/build/esm/i18n-values/hi-IN.js +1 -0
- package/build/esm/i18n-values/id-ID.js +1 -0
- package/build/esm/i18n-values/km-KH.js +1 -0
- package/build/esm/i18n-values/ms-MY.js +1 -0
- package/build/esm/i18n-values/my-MM.js +1 -0
- package/build/esm/i18n-values/th-TH.js +1 -0
- package/build/esm/i18n-values/tl-PH.js +1 -0
- package/build/esm/i18n-values/vi-VN.js +1 -0
- package/build/esm/i18n-values/vi-VN_MB.js +1 -0
- package/build/esm/i18n-values/zh-CN.js +1 -0
- package/build/esm/i18n-values/zh-TW.js +1 -0
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-7586f05c.js → index-029c3ca3.js} +10 -10
- package/build/esm/{index-93c24e0b.js → index-12f426e6.js} +24 -24
- package/build/esm/{index-1e6fc7e5.js → index-1523479a.js} +21 -21
- package/build/esm/{index-77dfd4c9.js → index-156e7bff.js} +25 -25
- package/build/esm/{index-9c9ec12f.js → index-1b2eedde.js} +1 -1
- package/build/esm/{index-baf31bd2.js → index-1f97d397.js} +16 -16
- package/build/esm/{index-05db92ea.js → index-264e35c4.js} +8 -8
- package/build/esm/{index-2f828882.js → index-268554a9.js} +6 -6
- package/build/esm/{index-e9c6e92e.js → index-2af05e4f.js} +18 -18
- package/build/esm/{index-bfa1bf93.js → index-2cadfcb7.js} +1 -1
- package/build/esm/{index-a4f58c14.js → index-3705efe1.js} +13 -13
- package/build/esm/{index-daf10b0d.js → index-394c446b.js} +3 -3
- package/build/esm/{index-70d774d6.js → index-3b0bbc40.js} +15 -15
- package/build/esm/{index-974f5a0c.js → index-3b1a47b6.js} +2 -2
- package/build/esm/{index-862100c0.js → index-3c33a1ed.js} +4 -4
- package/build/esm/{index-9d2ee3f6.js → index-3c4438bc.js} +6 -6
- package/build/esm/{index-bf37e716.js → index-40d6d504.js} +18 -18
- package/build/esm/{index-a8408cfb.js → index-4e14f521.js} +3 -3
- package/build/esm/{index-deb37876.js → index-52e6ab04.js} +2 -2
- package/build/esm/{index-58b6b28d.js → index-53e17ce4.js} +2 -2
- package/build/esm/{index-a773e1ec.js → index-5660b351.js} +120 -7
- package/build/esm/{index-725e1fd7.js → index-580fa91e.js} +31 -31
- package/build/esm/{index-4604bd17.js → index-5bd43b7b.js} +2 -2
- package/build/esm/{index-eb18d204.js → index-60665d56.js} +13 -13
- package/build/esm/{index-4644fb5c.js → index-61b7eece.js} +2 -2
- package/build/esm/{index-23189e9c.js → index-65ced058.js} +7 -7
- package/build/esm/{index-61cda411.js → index-683db2e9.js} +16 -16
- package/build/esm/{index-23a0a20d.js → index-6a5e323d.js} +16 -16
- package/build/esm/{index-667a4467.js → index-6e79f0d5.js} +1 -1
- package/build/esm/{index-71cba578.js → index-71fcbd33.js} +17 -17
- package/build/esm/{index-2bc3752d.js → index-84d15fea.js} +2 -2
- package/build/esm/{index-5912a195.js → index-8773b13e.js} +1 -1
- package/build/esm/{index-d85d3b86.js → index-89b55959.js} +3 -3
- package/build/esm/{index-a8fdc89b.js → index-89cd7b36.js} +7 -7
- package/build/esm/{index-69c7549d.js → index-8a42e859.js} +11 -11
- package/build/esm/{index-f5ccbbfb.js → index-8aa4f8fd.js} +13 -13
- package/build/esm/{index-bed52dfc.js → index-8d97c4d8.js} +13 -13
- package/build/esm/{index-3f68ca7e.js → index-8e9263ee.js} +22 -22
- package/build/esm/{index-4223f67a.js → index-960c8cd2.js} +2 -2
- package/build/esm/{index-d17fd724.js → index-a1230acf.js} +3 -3
- package/build/esm/{index-614c79d9.js → index-a32d2f09.js} +17 -17
- package/build/esm/{index-f1d6d905.js → index-a3f2b52a.js} +3 -3
- package/build/esm/{index-83bdc881.js → index-a73e0111.js} +2 -2
- package/build/esm/{index-9d94d5a4.js → index-a743fa8e.js} +1 -1
- package/build/esm/{index-c04ed42b.js → index-a7c10f07.js} +1 -1
- package/build/esm/{index-e94b9b57.js → index-acc24b5c.js} +4 -4
- package/build/esm/{index-3c7d33c9.js → index-aea81ad4.js} +31 -31
- package/build/esm/{index-ba90f03d.js → index-aeef32ec.js} +2 -2
- package/build/esm/{index-b9fe4352.js → index-b030b921.js} +2 -2
- package/build/esm/{index-84361f9c.js → index-b8ef2e1f.js} +2 -2
- package/build/esm/{index-f06e7aab.js → index-c105dc4b.js} +17 -17
- package/build/esm/{index-9fabd438.js → index-c8c34747.js} +6 -6
- package/build/esm/{index-15ffdbc8.js → index-ca4fb69e.js} +3 -3
- package/build/esm/{index-aec3abb3.js → index-cfd4cbfb.js} +5 -5
- package/build/esm/{index-48306c38.js → index-d0335ff2.js} +16 -16
- package/build/esm/{index-6646f661.js → index-d320eac2.js} +2 -2
- package/build/esm/{index-99db77d1.js → index-d45a5adf.js} +2 -2
- package/build/esm/{index-7278d8bd.js → index-da2812f4.js} +6 -6
- package/build/esm/{index-011f40d9.js → index-dc5801b5.js} +1 -1
- package/build/esm/{index-0004bdae.js → index-e0b2821c.js} +1 -1
- package/build/esm/{index-968b9460.js → index-e4188a84.js} +231 -147
- package/build/esm/{index-09666642.js → index-e9579c55.js} +6 -6
- package/build/esm/{index-28593b7b.js → index-eb102b34.js} +17 -17
- package/build/esm/{index-e079dd78.js → index-fb740490.js} +1 -1
- package/build/esm/index.js +118 -119
- package/build/esm/{labelSorting-f9930004.js → labelSorting-b39ffc84.js} +4 -4
- package/build/esm/lead/LeadGenForm/LeadGenEmpty.d.ts +8 -0
- package/build/esm/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +262 -0
- package/build/esm/lead/icons/NoData.d.ts +3 -0
- package/build/esm/lead/icons/index.d.ts +5 -0
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +430 -130
- package/build/esm/{logoIcon-e98ed496.js → logoIcon-01e18236.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +17 -17
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +74 -74
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +46 -46
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +23 -23
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +50 -50
- package/build/esm/{post-456af9a2.js → post-0b755807.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/esm/ssoV2.js +52 -40
- package/build/esm/{store-e2782157.js → store-5876e442.js} +3 -3
- package/build/esm/subot.js +36 -36
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-c9559f93.js → surveyThankyouCard-0894a226.js} +5 -5
- package/build/esm/together/components/molecules/createNewPostContentV2/index.styled.d.ts +7 -0
- package/build/esm/together/utils/index.d.ts +1 -0
- package/build/esm/together.js +56 -56
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +51 -51
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +39 -39
- package/build/esm/togetherOrganisms.js +50 -50
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-0b2c27e5.js → translationsProvider-e28795ee.js} +1 -1
- package/build/esm/{treePopoverMenu-918d1a6e.js → treePopoverMenu-3efdf293.js} +19 -19
- package/build/esm/{types-e65b4dd2.js → types-228fdcb3.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-96b866ea.js → useCategory-3729e7ef.js} +5 -5
- package/build/esm/{useHealthToolCache-79bbcf25.js → useHealthToolCache-e7dbf040.js} +1 -1
- package/build/esm/{useMantineLocale-f8b607e5.js → useMantineLocale-86cfb6bd.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-4085c397.js → usePlacesAutocomplete-6b824d35.js} +1 -1
- package/build/esm/{useScreenSize-c5e6f635.js → useScreenSize-3b7ab547.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-d8ef2408.js → utils-1165d255.js} +3 -3
- package/build/esm/{utils-6b08d67d.js → utils-6685e18c.js} +2 -2
- package/build/esm/{utils-06248ec1.js → utils-949c2dd7.js} +5 -5
- package/build/esm/{utils-c2a42b03.js → utils-bea15bbb.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-65d87f84.js → healthTools-c6ebcdcb.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -0
- package/build/i18n-values/hi-IN.js +1 -0
- package/build/i18n-values/id-ID.js +1 -0
- package/build/i18n-values/km-KH.js +1 -0
- package/build/i18n-values/ms-MY.js +1 -0
- package/build/i18n-values/my-MM.js +1 -0
- package/build/i18n-values/th-TH.js +1 -0
- package/build/i18n-values/tl-PH.js +1 -0
- package/build/i18n-values/vi-VN.js +1 -0
- package/build/i18n-values/vi-VN_MB.js +1 -0
- package/build/i18n-values/zh-CN.js +1 -0
- package/build/i18n-values/zh-TW.js +1 -0
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-b8e44b19.js → index-0281227a.js} +6 -6
- package/build/{index-87e49123.js → index-05786ec0.js} +1 -1
- package/build/{index-c6319fe0.js → index-082b63cf.js} +16 -16
- package/build/{index-55448476.js → index-0c6ac6d3.js} +21 -21
- package/build/{index-0fda6896.js → index-12b35ef7.js} +1 -1
- package/build/{index-d6810b0b.js → index-23c78802.js} +230 -146
- package/build/{index-b57cb091.js → index-2b290380.js} +18 -18
- package/build/{index-79326738.js → index-2bb00add.js} +6 -6
- package/build/{index-00a37b65.js → index-2cfadb0e.js} +3 -3
- package/build/{index-b995612c.js → index-326a1b85.js} +2 -2
- package/build/{index-d6f85ace.js → index-3302f186.js} +2 -2
- package/build/{index-dd8309ea.js → index-33aea2b0.js} +17 -17
- package/build/{index-b29a6317.js → index-33fe9473.js} +25 -25
- package/build/{index-8b18f250.js → index-3949ecf7.js} +2 -2
- package/build/{index-eb35ac95.js → index-40a59370.js} +2 -2
- package/build/{index-543d2511.js → index-42ab67e8.js} +6 -6
- package/build/{index-2c533187.js → index-42ef519a.js} +2 -2
- package/build/{index-4ea26945.js → index-4544011b.js} +31 -31
- package/build/{index-d505b556.js → index-46d0459d.js} +13 -13
- package/build/{index-3b8808a8.js → index-4839557f.js} +2 -2
- package/build/{index-d99d50a7.js → index-4a546aaa.js} +119 -5
- package/build/{index-9034b9e6.js → index-55ee7537.js} +8 -8
- package/build/{index-7032c044.js → index-5d58433c.js} +17 -17
- package/build/{index-512356c7.js → index-5e0a1e22.js} +5 -5
- package/build/{index-455ba929.js → index-5f54d3ca.js} +1 -1
- package/build/{index-c2c83cea.js → index-60ea7f96.js} +18 -18
- package/build/{index-801cd8da.js → index-624c47f1.js} +3 -3
- package/build/{index-c791b9ec.js → index-63ccebbc.js} +2 -2
- package/build/{index-eb22c3e2.js → index-63cec611.js} +13 -13
- package/build/{index-4a0ee76c.js → index-661c70de.js} +13 -13
- package/build/{index-6597a1df.js → index-665601f9.js} +1 -1
- package/build/{index-98445cb8.js → index-6eff4b57.js} +16 -16
- package/build/{index-8462be80.js → index-80f0280d.js} +1 -1
- package/build/{index-8e6dcfac.js → index-85339eba.js} +2 -2
- package/build/{index-539e980c.js → index-85c7d01b.js} +2 -2
- package/build/{index-3eeefbe6.js → index-89fd03cc.js} +3 -3
- package/build/{index-168db3d4.js → index-8a60b3e3.js} +24 -24
- package/build/{index-23b36c4a.js → index-a1bb1b93.js} +13 -13
- package/build/{index-30e57a09.js → index-a5cdb8e7.js} +17 -17
- package/build/{index-db2d80cd.js → index-a653be45.js} +7 -7
- package/build/{index-e2d6d695.js → index-a8936d7a.js} +3 -3
- package/build/{index-5f11686e.js → index-ad18fc64.js} +4 -4
- package/build/{index-3a0fc795.js → index-afecde01.js} +22 -22
- package/build/{index-58888ee4.js → index-b8c6a99f.js} +7 -7
- package/build/{index-5a06a61e.js → index-b9003b5c.js} +16 -16
- package/build/{index-8d88028e.js → index-bc32d7db.js} +11 -11
- package/build/{index-bc68c985.js → index-bd974cdb.js} +2 -2
- package/build/{index-450fc861.js → index-bf119c4f.js} +10 -10
- package/build/{index-04dcf27d.js → index-c059b45e.js} +1 -1
- package/build/{index-0377dc7e.js → index-c07bc945.js} +6 -6
- package/build/{index-4c08136c.js → index-c3ba195f.js} +2 -2
- package/build/{index-91b1b876.js → index-c65cc226.js} +2 -2
- package/build/{index-9cb1e2e2.js → index-c9240670.js} +1 -1
- package/build/{index-552ce358.js → index-d7508e86.js} +3 -3
- package/build/{index-8e1cd365.js → index-d7f39459.js} +17 -17
- package/build/{index-8a859dc3.js → index-debd15b4.js} +1 -1
- package/build/{index-275cc54f.js → index-e1719527.js} +16 -16
- package/build/{index-1542ca0f.js → index-e2a32540.js} +31 -31
- package/build/{index-6782022a.js → index-e96b9625.js} +2 -2
- package/build/{index-669c10b5.js → index-eb3a8fb7.js} +1 -1
- package/build/{index-2f854e4e.js → index-f2ad55d6.js} +6 -6
- package/build/{index-5396bcaa.js → index-f38d3ea8.js} +15 -15
- package/build/{index-1f6edbe3.js → index-fbf79cf3.js} +4 -4
- package/build/{index-8845b51d.js → index-ff30f6cc.js} +3 -3
- package/build/index.js +184 -185
- package/build/{labelSorting-2fc18eff.js → labelSorting-83ca9353.js} +4 -4
- package/build/lead/LeadGenForm/LeadGenEmpty.d.ts +8 -0
- package/build/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +262 -0
- package/build/lead/icons/NoData.d.ts +3 -0
- package/build/lead/icons/index.d.ts +5 -0
- package/build/lead.css +1 -1
- package/build/lead.js +429 -129
- package/build/{logoIcon-cdd03d37.js → logoIcon-368853e2.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +17 -17
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +74 -74
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +46 -46
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +50 -50
- package/build/{post-ef859c8e.js → post-d0900f6c.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/ssoV2.js +50 -38
- package/build/{store-eb9adf12.js → store-e5f7360c.js} +3 -3
- package/build/subot.js +35 -35
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-f39facc8.js → surveyThankyouCard-1a4e2df9.js} +5 -5
- package/build/together/components/molecules/createNewPostContentV2/index.styled.d.ts +7 -0
- package/build/together/utils/index.d.ts +1 -0
- package/build/together.js +56 -56
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +51 -51
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +39 -39
- package/build/togetherOrganisms.js +50 -50
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-8a2089d8.js → translationsProvider-8887ddcb.js} +1 -1
- package/build/{treePopoverMenu-ebe1cab0.js → treePopoverMenu-1f8ab1e7.js} +19 -19
- package/build/{types-e8dddf8a.js → types-6ed75177.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-362c09bd.js → useCategory-fbf6c5cd.js} +5 -5
- package/build/{useHealthToolCache-d03e8d11.js → useHealthToolCache-c555ef20.js} +1 -1
- package/build/{useMantineLocale-75898426.js → useMantineLocale-ad2063c7.js} +6 -6
- package/build/{usePlacesAutocomplete-22bc6949.js → usePlacesAutocomplete-12194665.js} +1 -1
- package/build/{useScreenSize-4820e9f4.js → useScreenSize-f4b697c0.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-05972f03.js → utils-3e3ee1a2.js} +5 -5
- package/build/{utils-41365695.js → utils-51e01fbd.js} +2 -2
- package/build/{utils-832bd0f8.js → utils-8527511b.js} +2 -2
- package/build/{utils-84982067.js → utils-c0b36380.js} +3 -3
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/index-5848ad0f.js +0 -118
- package/build/index-18f097ee.js +0 -125
- /package/build/{BMI_BOYS.percentile.monthly-3e4ba19a.js → BMI_BOYS.percentile.monthly-dc44a744.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-d1ab9376.js → BMI_BOYS.percentile.weekly-d43cfd0f.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-d21158bd.js → BMI_BOYS.percentile.yearly-3de13a2c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-7a0d30ba.js → BMI_BOYS.zscore.monthly-72df0b5d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-e243d128.js → BMI_BOYS.zscore.weekly-b1b649eb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-dfa3d277.js → BMI_BOYS.zscore.yearly-ab836117.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-7d6cd8c3.js → BMI_GIRLS.percentile.monthly-ddbaf261.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-ae9b62aa.js → BMI_GIRLS.percentile.weekly-d9827548.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-8a2036d7.js → BMI_GIRLS.percentile.yearly-7396ea15.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-887b2c85.js → BMI_GIRLS.zscore.monthly-4f3a8e09.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-d205c326.js → BMI_GIRLS.zscore.weekly-dad4e8a1.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-8660facf.js → BMI_GIRLS.zscore.yearly-f2213908.js} +0 -0
- /package/build/{ChevronDown-b2cc7c93.js → ChevronDown-4412251a.js} +0 -0
- /package/build/{Close-6021dce6.js → Close-1729d46e.js} +0 -0
- /package/build/{Google-3234d899.js → Google-65bb4096.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-d0281b2c.js → HEAD CIRCUM_BOYS.percentile.monthly-b5d1b24f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-e2ea2df9.js → HEAD CIRCUM_BOYS.percentile.weekly-0af315c5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-3477d6ed.js → HEAD CIRCUM_BOYS.percentile.yearly-d3fdee2b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-7cd5db29.js → HEAD CIRCUM_BOYS.zscore.monthly-e5ad87a0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c8e48df7.js → HEAD CIRCUM_BOYS.zscore.weekly-b80a348e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-25f953f8.js → HEAD CIRCUM_BOYS.zscore.yearly-ab5e48ac.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-562fb413.js → HEAD CIRCUM_GIRLS.percentile.monthly-7da783b3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-cf83c60e.js → HEAD CIRCUM_GIRLS.percentile.weekly-9279f3c1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-53716b8b.js → HEAD CIRCUM_GIRLS.percentile.yearly-688419ba.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-143c2edd.js → HEAD CIRCUM_GIRLS.zscore.monthly-8aea0a6c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-1e9daa1e.js → HEAD CIRCUM_GIRLS.zscore.weekly-3af39f37.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4f6a1b53.js → HEAD CIRCUM_GIRLS.zscore.yearly-02cf515c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-aac318c3.js → HEIGHT_BOYS.percentile.monthly-dec31f63.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-518519b5.js → HEIGHT_BOYS.percentile.weekly-59b73ae7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-8130485c.js → HEIGHT_BOYS.percentile.yearly-936d256c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-580b72f2.js → HEIGHT_BOYS.zscore.monthly-afd0da6b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-8b28c1d6.js → HEIGHT_BOYS.zscore.weekly-c7f65d12.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-4629bb14.js → HEIGHT_BOYS.zscore.yearly-91df91ab.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-33da77e9.js → HEIGHT_GIRLS.percentile.monthly-5d6700c0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-3ec7bfb0.js → HEIGHT_GIRLS.percentile.weekly-eb27d540.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-e434bc7a.js → HEIGHT_GIRLS.percentile.yearly-1787953d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-98dd68b9.js → HEIGHT_GIRLS.zscore.monthly-631dc0dc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-b2519dd2.js → HEIGHT_GIRLS.zscore.weekly-33174efb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-cdf109cb.js → HEIGHT_GIRLS.zscore.yearly-03d024e5.js} +0 -0
- /package/build/{Locale-541fbac2.js → Locale-39ae7840.js} +0 -0
- /package/build/{Visible-df3f13e3.js → Visible-022eb577.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-b1e96275.js → WEIGHT_BOYS.percentile.monthly-02bab776.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-2c8643f0.js → WEIGHT_BOYS.percentile.weekly-8de3b18f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-1c0edf19.js → WEIGHT_BOYS.percentile.yearly-59b8a21b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-32681435.js → WEIGHT_BOYS.zscore.monthly-abb45faa.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-1db56690.js → WEIGHT_BOYS.zscore.weekly-b1398692.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-46a6cb88.js → WEIGHT_BOYS.zscore.yearly-dc2ecbad.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-005e4aa3.js → WEIGHT_GIRLS.percentile.monthly-796acabf.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-f4319546.js → WEIGHT_GIRLS.percentile.weekly-82286158.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-6f2fdd83.js → WEIGHT_GIRLS.percentile.yearly-9004f8e1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-e90cb1b3.js → WEIGHT_GIRLS.zscore.monthly-43fb2af7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-c3385417.js → WEIGHT_GIRLS.zscore.weekly-73c20eff.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-d4c27415.js → WEIGHT_GIRLS.zscore.yearly-c8b12eb7.js} +0 -0
- /package/build/{animation-2d431e97.js → animation-6d005387.js} +0 -0
- /package/build/{constants-40b632e7.js → constants-c731fcca.js} +0 -0
- /package/build/{constants-67a2fa60.js → constants-d191ad8f.js} +0 -0
- /package/build/{constants-27c29a4c.js → constants-e5fcdc77.js} +0 -0
- /package/build/{dataTransform-741ae1c3.js → dataTransform-b3e86aaa.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-8a366cd9.js → BMI_BOYS.percentile.monthly-2029980a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-4319edce.js → BMI_BOYS.percentile.weekly-83083435.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-87004888.js → BMI_BOYS.percentile.yearly-9e0f81b7.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-8a5b4694.js → BMI_BOYS.zscore.monthly-288d32e7.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-ee27d130.js → BMI_BOYS.zscore.weekly-07d49851.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d1a616cf.js → BMI_BOYS.zscore.yearly-d5c63800.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-870c7f4d.js → BMI_GIRLS.percentile.monthly-0899ea2e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-93bb29c4.js → BMI_GIRLS.percentile.weekly-aa7030ba.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-9047eefe.js → BMI_GIRLS.percentile.yearly-eb0e2e75.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-3f63221c.js → BMI_GIRLS.zscore.monthly-b8b72364.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-7f742697.js → BMI_GIRLS.zscore.weekly-4b0793a4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-5d8c5f8a.js → BMI_GIRLS.zscore.yearly-62b2a4f4.js} +0 -0
- /package/build/esm/{ChevronDown-c7df092c.js → ChevronDown-4a30760b.js} +0 -0
- /package/build/esm/{Close-72b463e2.js → Close-1e08c38e.js} +0 -0
- /package/build/esm/{Google-c0b5424a.js → Google-d6b959f4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-8db9e360.js → HEAD CIRCUM_BOYS.percentile.monthly-41a1d1af.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-36090b84.js → HEAD CIRCUM_BOYS.percentile.weekly-0a035291.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e3b0f4a4.js → HEAD CIRCUM_BOYS.percentile.yearly-5e7cba37.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c21de8ed.js → HEAD CIRCUM_BOYS.zscore.monthly-af0b9582.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-7e00fc97.js → HEAD CIRCUM_BOYS.zscore.weekly-6ad27029.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-bdb22db9.js → HEAD CIRCUM_BOYS.zscore.yearly-0fc6243d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a06be885.js → HEAD CIRCUM_GIRLS.percentile.monthly-b31a2528.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-ada49bdb.js → HEAD CIRCUM_GIRLS.percentile.weekly-1456ccbd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-989bf106.js → HEAD CIRCUM_GIRLS.percentile.yearly-f9a5918d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-16cfbc7d.js → HEAD CIRCUM_GIRLS.zscore.monthly-d03c8f32.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-650f4be9.js → HEAD CIRCUM_GIRLS.zscore.weekly-2f4dcbbf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c584822b.js → HEAD CIRCUM_GIRLS.zscore.yearly-c591fee9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-62789cca.js → HEIGHT_BOYS.percentile.monthly-db47d700.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-97afafc3.js → HEIGHT_BOYS.percentile.weekly-470fb944.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-da2812e9.js → HEIGHT_BOYS.percentile.yearly-3d8514ab.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-3119e1e1.js → HEIGHT_BOYS.zscore.monthly-ab3b9fef.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-ba3083d2.js → HEIGHT_BOYS.zscore.weekly-0b05f06d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-e18465d7.js → HEIGHT_BOYS.zscore.yearly-4f8b76da.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-93d58b61.js → HEIGHT_GIRLS.percentile.monthly-8af8940f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-d5736eb7.js → HEIGHT_GIRLS.percentile.weekly-529b8d5a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-e27dc7ee.js → HEIGHT_GIRLS.percentile.yearly-e84ce42e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a85d14c7.js → HEIGHT_GIRLS.zscore.monthly-fede56ae.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-7dd22322.js → HEIGHT_GIRLS.zscore.weekly-fa4fd754.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-98e2c2a3.js → HEIGHT_GIRLS.zscore.yearly-8d7487e8.js} +0 -0
- /package/build/esm/{Locale-7567da9b.js → Locale-aac36404.js} +0 -0
- /package/build/esm/{Visible-303b5e26.js → Visible-cde62f3a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-e34a0e16.js → WEIGHT_BOYS.percentile.monthly-16bb3787.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-77f085c1.js → WEIGHT_BOYS.percentile.weekly-2c3bb779.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-10ea62ca.js → WEIGHT_BOYS.percentile.yearly-6269b827.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e3a25e9e.js → WEIGHT_BOYS.zscore.monthly-4f5b7858.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1beaeff8.js → WEIGHT_BOYS.zscore.weekly-a58900df.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-ff955b13.js → WEIGHT_BOYS.zscore.yearly-8748b87b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-1b11f478.js → WEIGHT_GIRLS.percentile.monthly-a27979f0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-dcaf4939.js → WEIGHT_GIRLS.percentile.weekly-7847582c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-a1f8fbb4.js → WEIGHT_GIRLS.percentile.yearly-8d35e5fe.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-dbdeb8b9.js → WEIGHT_GIRLS.zscore.monthly-29cf9907.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-6cd1c5a9.js → WEIGHT_GIRLS.zscore.weekly-e99a143f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-400781ea.js → WEIGHT_GIRLS.zscore.yearly-139a7897.js} +0 -0
- /package/build/esm/{animation-74081c1d.js → animation-fc83a703.js} +0 -0
- /package/build/esm/{constants-fa7da08d.js → constants-4baf3c0c.js} +0 -0
- /package/build/esm/{constants-d760af24.js → constants-80fe9572.js} +0 -0
- /package/build/esm/{constants-99e957b2.js → constants-f82bc91e.js} +0 -0
- /package/build/esm/{dataTransform-21b91abf.js → dataTransform-205b11b3.js} +0 -0
- /package/build/esm/{index-9a855bd2.js → index-169d467f.js} +0 -0
- /package/build/esm/{index-51ba196c.js → index-1c6b51c7.js} +0 -0
- /package/build/esm/{index-76844944.js → index-21068467.js} +0 -0
- /package/build/esm/{index-278df54b.js → index-23f09ffa.js} +0 -0
- /package/build/esm/{index-fa14f208.js → index-66f88b6a.js} +0 -0
- /package/build/esm/{index-17d70b8d.js → index-7818fff1.js} +0 -0
- /package/build/esm/{index-8503b14b.js → index-dfd08f11.js} +0 -0
- /package/build/esm/{index-e6a6c54b.js → index-f284d46f.js} +0 -0
- /package/build/esm/{index.styles-25b26121.js → index.styles-2f224e81.js} +0 -0
- /package/build/esm/lead/layouts/{ emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/esm/{localizeNumberFormat-066b2158.js → localizeNumberFormat-85ecc1f8.js} +0 -0
- /package/build/esm/{normalizeLink-2993c5ba.js → normalizeLink-853b9bd8.js} +0 -0
- /package/build/esm/{number-4c5dd2a0.js → number-89fa98fa.js} +0 -0
- /package/build/esm/{other-3b691fca.js → other-cf9902ef.js} +0 -0
- /package/build/esm/{paths-18d9804d.js → paths-9f502f6d.js} +0 -0
- /package/build/esm/{translationsContext-1dea23a6.js → translationsContext-8a8a9484.js} +0 -0
- /package/build/esm/{tslib.es6-04e96f3f.js → tslib.es6-0cb44555.js} +0 -0
- /package/build/esm/{types-fd555d7d.js → types-94ee7c0b.js} +0 -0
- /package/build/esm/{useIsInit-58d9ec1a.js → useIsInit-ab55ceb2.js} +0 -0
- /package/build/esm/{useOutsideClick-0f37568a.js → useOutsideClick-b76b3c83.js} +0 -0
- /package/build/esm/{useScrollbarSize-ea40e3e8.js → useScrollbarSize-0dc22f46.js} +0 -0
- /package/build/esm/{useUniqueId-ba1746f2.js → useUniqueId-cb108203.js} +0 -0
- /package/build/esm/{utils-56d0bd0f.js → utils-a2e416ad.js} +0 -0
- /package/build/{index-7547648f.js → index-2e94a876.js} +0 -0
- /package/build/{index-72969290.js → index-5cbe3960.js} +0 -0
- /package/build/{index-0a7505ab.js → index-6f8b7b64.js} +0 -0
- /package/build/{index-d74dca2d.js → index-7aae420b.js} +0 -0
- /package/build/{index-a08964d8.js → index-7de28bc7.js} +0 -0
- /package/build/{index-86bffa29.js → index-94ffefc0.js} +0 -0
- /package/build/{index-89aae9ce.js → index-a617d947.js} +0 -0
- /package/build/{index-f39acb16.js → index-c64e92d8.js} +0 -0
- /package/build/{index.styles-66a8e84f.js → index.styles-89309e0c.js} +0 -0
- /package/build/lead/layouts/{ emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/{localizeNumberFormat-3363f1cd.js → localizeNumberFormat-d704c91d.js} +0 -0
- /package/build/{normalizeLink-0c0500b4.js → normalizeLink-65f625d1.js} +0 -0
- /package/build/{number-db904576.js → number-55619945.js} +0 -0
- /package/build/{other-0981a64e.js → other-65b308f5.js} +0 -0
- /package/build/{paths-e2e30a70.js → paths-1ad823da.js} +0 -0
- /package/build/{translationsContext-fe91f2bd.js → translationsContext-ae79a68c.js} +0 -0
- /package/build/{tslib.es6-bbcc0ba7.js → tslib.es6-3027863f.js} +0 -0
- /package/build/{types-c40a7d8e.js → types-41305282.js} +0 -0
- /package/build/{useIsInit-3e467c59.js → useIsInit-f4a7ee08.js} +0 -0
- /package/build/{useOutsideClick-40f65f83.js → useOutsideClick-ba55d42b.js} +0 -0
- /package/build/{useScrollbarSize-5725fe24.js → useScrollbarSize-55cccdd7.js} +0 -0
- /package/build/{useUniqueId-36e878cb.js → useUniqueId-f787f1e0.js} +0 -0
- /package/build/{utils-ea9573c1.js → utils-92829c83.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-0cb44555.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback, forwardRef, useImperativeHandle, memo, useLayoutEffect } from 'react';
|
|
3
|
-
import { createStyles, Box, Button as Button$1, Input as Input$1,
|
|
3
|
+
import { createStyles, Box, Button as Button$1, Input as Input$1, Autocomplete, clsx, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, TextInput, NumberInput as NumberInput$1, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import debounce from 'lodash/debounce';
|
|
6
6
|
import { createFormContext, useForm } from '@mantine/form';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-acc24b5c.js';
|
|
8
8
|
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
9
|
-
import { u as useTranslations } from './index-
|
|
10
|
-
import { T as TranslationsContext } from './translationsContext-
|
|
11
|
-
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-
|
|
12
|
-
import { T as Text } from './index-
|
|
13
|
-
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-
|
|
14
|
-
import { D as DatePicker } from './index-
|
|
15
|
-
import { B as Button } from './index-
|
|
16
|
-
import './index.styles-
|
|
9
|
+
import { u as useTranslations } from './index-6e79f0d5.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-8a8a9484.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-a2e416ad.js';
|
|
12
|
+
import { T as Text } from './index-5bd43b7b.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-8a42e859.js';
|
|
14
|
+
import { D as DatePicker } from './index-c8c34747.js';
|
|
15
|
+
import { B as Button } from './index-1b2eedde.js';
|
|
16
|
+
import './index.styles-2f224e81.js';
|
|
17
17
|
import { useClickOutside } from '@mantine/hooks';
|
|
18
|
-
import './useMantineLocale-
|
|
19
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
20
|
-
import './index-
|
|
21
|
-
import { Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
22
|
-
import './other-
|
|
23
|
-
import './index-
|
|
24
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
18
|
+
import './useMantineLocale-86cfb6bd.js';
|
|
19
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-2cadfcb7.js';
|
|
20
|
+
import './index-7818fff1.js';
|
|
21
|
+
import { Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-52e6ab04.js';
|
|
22
|
+
import './other-cf9902ef.js';
|
|
23
|
+
import './index-4e14f521.js';
|
|
24
|
+
import { M as MAPPED_LOCALE } from './utils-6685e18c.js';
|
|
25
25
|
import { DateInput } from '@mantine/dates';
|
|
26
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-
|
|
27
|
-
import { H as Heading$1 } from './index-
|
|
28
|
-
import { t as translationsMap$1 } from './translationsProvider-
|
|
29
|
-
import { L as LOCALE } from './Locale-
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-6b824d35.js';
|
|
27
|
+
import { H as Heading$1 } from './index-b8ef2e1f.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-e28795ee.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-aac36404.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
32
32
|
import styled from '@emotion/styled';
|
|
33
33
|
import { theme } from './miscTheme.js';
|
|
34
34
|
import { css } from '@emotion/react';
|
|
35
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
36
|
-
import { i as isVideo } from './index-
|
|
37
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
35
|
+
import { T as TogetherComponentGlobalContext } from './utils-1165d255.js';
|
|
36
|
+
import { i as isVideo } from './index-169d467f.js';
|
|
37
|
+
import { u as useScreenSize } from './useScreenSize-3b7ab547.js';
|
|
38
|
+
import { motion } from 'framer-motion';
|
|
38
39
|
import { createPortal } from 'react-dom';
|
|
39
|
-
import { B as Button$2 } from './index-
|
|
40
|
-
import { I as InputDate } from './InputDate-
|
|
41
|
-
import {
|
|
42
|
-
import { C as Close } from './Close-72b463e2.js';
|
|
40
|
+
import { B as Button$2 } from './index-960c8cd2.js';
|
|
41
|
+
import { I as InputDate } from './InputDate-d8c603b6.js';
|
|
42
|
+
import { C as Close } from './Close-1e08c38e.js';
|
|
43
43
|
import './constantsIsProduction.js';
|
|
44
|
-
import './normalizeLink-
|
|
44
|
+
import './normalizeLink-853b9bd8.js';
|
|
45
45
|
import './constantsDomainLocales.js';
|
|
46
46
|
import '@hhgtech/icons/other';
|
|
47
47
|
import '@mantine/carousel';
|
|
48
48
|
import 'classnames';
|
|
49
|
-
import './useUniqueId-
|
|
49
|
+
import './useUniqueId-cb108203.js';
|
|
50
50
|
import './constantsSite.js';
|
|
51
51
|
import '@hhgtech/icons/core';
|
|
52
52
|
import '@mantine/notifications';
|
|
@@ -63,12 +63,11 @@ import './i18n-values/tl-PH.js';
|
|
|
63
63
|
import './i18n-values/vi-VN.js';
|
|
64
64
|
import './i18n-values/vi-VN_MB.js';
|
|
65
65
|
import './i18n-values/zh-TW.js';
|
|
66
|
-
import './index-
|
|
66
|
+
import './index-23f09ffa.js';
|
|
67
67
|
import 'slugify';
|
|
68
68
|
import 'string-format';
|
|
69
69
|
import './togetherApiPaths.js';
|
|
70
|
-
import './constants-
|
|
71
|
-
import 'vaul';
|
|
70
|
+
import './constants-f82bc91e.js';
|
|
72
71
|
|
|
73
72
|
const LeadGenComponentContext = createContext({});
|
|
74
73
|
|
|
@@ -2281,7 +2280,7 @@ const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validating
|
|
|
2281
2280
|
}, {});
|
|
2282
2281
|
}, [listBlockAdded.map((b) => b.name).join(','), format]);
|
|
2283
2282
|
const form = useLeadForm({
|
|
2284
|
-
validateInputOnChange:
|
|
2283
|
+
validateInputOnChange: false,
|
|
2285
2284
|
validateInputOnBlur: true,
|
|
2286
2285
|
clearInputErrorOnChange: true,
|
|
2287
2286
|
validate: validateObj,
|
|
@@ -2467,6 +2466,66 @@ const PhoneInput = forwardRef((props, ref) => {
|
|
|
2467
2466
|
React__default.createElement(Phone, Object.assign({}, restProps, { id: id, ref: ref, name: name, spellCheck: false, placeholder: placeholder, defaultCountry: defaultCountry, className: "mantine-Input-input", type: "tel", "data-control": "tel" })))));
|
|
2468
2467
|
});
|
|
2469
2468
|
|
|
2469
|
+
const NoData = ({ className, style }) => {
|
|
2470
|
+
return (React__default.createElement("svg", { width: "64", height: "55", viewBox: "0 0 64 55", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
2471
|
+
React__default.createElement("path", { d: "M32.6226 54.0001C46.2852 54.0001 57.3652 43.0033 57.3652 29.4239C57.3652 15.8446 46.2852 4.84778 32.6226 4.84778C18.9599 4.84778 7.87988 15.8446 7.87988 29.4239C7.87988 43.0033 18.9599 54.0001 32.6226 54.0001Z", fill: "#E6EAF5" }),
|
|
2472
|
+
React__default.createElement("path", { d: "M51.5751 26.2165V41.2537C51.5751 44.3778 49.0342 46.9187 45.8684 46.9187H19.4596C16.3355 46.9187 13.7946 44.4195 13.7529 41.2954C13.7529 41.2537 13.7529 41.2537 13.7529 41.2121V26.2165C13.7529 26.1748 13.7529 26.1748 13.7529 26.1332C13.7529 26.0498 13.7529 25.9665 13.7946 25.8832C13.8362 25.7583 13.8779 25.675 13.9195 25.55L21.0008 12.0123C21.2507 11.4708 21.7922 11.1792 22.3754 11.1792H42.911C43.4941 11.1792 43.994 11.4708 44.2856 12.0123L51.3668 25.55C51.4085 25.6333 51.4501 25.7583 51.4918 25.8832C51.5751 25.9665 51.5751 26.0915 51.5751 26.2165Z", fill: "#D5DDEA" }),
|
|
2473
|
+
React__default.createElement("path", { d: "M51.5751 26.2164V42.7949C51.5751 45.0859 49.7423 46.9187 47.4096 46.9187H17.9184C15.6274 46.9187 13.7529 45.0859 13.7529 42.7949V26.1331C13.7529 26.0498 13.7529 25.9665 13.7946 25.8832H23.2918C24.708 25.8832 25.8743 27.0078 25.8743 28.4658C25.8743 29.1739 26.1659 29.8404 26.6241 30.2986C27.124 30.7984 27.7071 31.0483 28.4569 31.0483H36.9127C38.329 31.0483 39.4953 29.9237 39.4953 28.4658C39.4953 27.7576 39.7869 27.0912 40.2451 26.633C40.7449 26.1331 41.3281 25.8832 42.0362 25.8832H51.4918C51.5751 25.9665 51.5751 26.0915 51.5751 26.2164Z", fill: "url(#paint0_linear_2578_27197)" }),
|
|
2474
|
+
React__default.createElement("path", { d: "M56.7342 17.6773C57.6774 17.6773 58.442 16.9126 58.442 15.9694C58.442 15.0262 57.6774 14.2616 56.7342 14.2616C55.791 14.2616 55.0264 15.0262 55.0264 15.9694C55.0264 16.9126 55.791 17.6773 56.7342 17.6773Z", fill: "#EAEEF9" }),
|
|
2475
|
+
React__default.createElement("path", { d: "M55.0257 12.1373C55.6698 12.1373 56.192 11.6152 56.192 10.971C56.192 10.3269 55.6698 9.80469 55.0257 9.80469C54.3816 9.80469 53.8594 10.3269 53.8594 10.971C53.8594 11.6152 54.3816 12.1373 55.0257 12.1373Z", fill: "#EAEEF9" }),
|
|
2476
|
+
React__default.createElement("path", { d: "M7.79034 15.9694C8.43449 15.9694 8.95667 15.4472 8.95667 14.803C8.95667 14.1589 8.43449 13.6367 7.79034 13.6367C7.1462 13.6367 6.62402 14.1589 6.62402 14.803C6.62402 15.4472 7.1462 15.9694 7.79034 15.9694Z", fill: "#EAEEF9" }),
|
|
2477
|
+
React__default.createElement("path", { d: "M5.16603 41.6286C6.36229 41.6286 7.33205 40.6588 7.33205 39.4625C7.33205 38.2663 6.36229 37.2965 5.16603 37.2965C3.96976 37.2965 3 38.2663 3 39.4625C3 40.6588 3.96976 41.6286 5.16603 41.6286Z", fill: "#EAEEF9" }),
|
|
2478
|
+
React__default.createElement("path", { d: "M43.0864 6.16785C43.6301 12.1024 43.9019 13.4615 42.6711 18.8361C42.2708 20.0309 41.8705 21.3396 41.0128 22.25C39.812 23.6725 37.6392 24.2984 35.8666 23.8432C34.0368 23.388 32.5501 21.7948 32.2071 19.8602C31.9212 18.6654 32.3214 17.2429 33.3507 16.5032C34.4371 15.8204 35.981 15.9911 36.8958 16.8446C37.9251 17.6981 38.3254 19.0068 38.2682 20.2585C38.211 21.5103 37.7536 22.7621 37.1246 23.8432C35.7027 26.5014 35.1173 26.4916 32.2071 30.8575", stroke: "#ABB5CC", strokeMiterlimit: "10", strokeDasharray: "4 4" }),
|
|
2479
|
+
React__default.createElement("path", { d: "M46.2749 3.95757C46.0575 4.75059 45.1881 5.03896 44.3187 4.53431C43.3769 4.10176 42.7249 3.74129 42.8698 3.02037C43.0871 2.29945 43.9565 2.22735 44.9708 2.15526C46.2024 2.01108 46.4198 3.16455 46.2749 3.95757Z", fill: "#DAE2EB" }),
|
|
2480
|
+
React__default.createElement("path", { d: "M39.2479 4.67842C39.6102 5.32726 40.6245 5.75981 41.3489 5.11098C42.1459 4.39005 42.7979 3.88541 42.4357 3.16448C42.0734 2.51565 41.4938 2.73193 40.2622 2.87611C39.2479 3.09239 38.8132 3.9575 39.2479 4.67842Z", fill: "#DAE2EB" }),
|
|
2481
|
+
React__default.createElement("path", { d: "M42.4358 2.01104C42.9429 1.93895 43.4501 2.22732 43.595 2.65987C43.6674 2.80406 43.7399 3.02034 43.7399 3.16452C43.8848 4.17381 43.5225 5.03892 42.9429 5.11102C42.2909 5.2552 41.6389 4.53428 41.5664 3.59707C41.5664 3.3087 41.5664 3.16452 41.5664 2.94824C41.6389 2.4436 41.9286 2.08313 42.4358 2.01104C42.5082 2.01104 42.4358 2.01104 42.4358 2.01104Z", fill: "#989FB0" }),
|
|
2482
|
+
React__default.createElement("path", { d: "M27.9127 37.0298C28.4405 37.0298 28.8684 36.6019 28.8684 36.0741C28.8684 35.5463 28.4405 35.1184 27.9127 35.1184C27.3849 35.1184 26.957 35.5463 26.957 36.0741C26.957 36.6019 27.3849 37.0298 27.9127 37.0298Z", fill: "#989FB0" }),
|
|
2483
|
+
React__default.createElement("path", { d: "M37.4186 37.0298C37.9464 37.0298 38.3742 36.6019 38.3742 36.0741C38.3742 35.5463 37.9464 35.1184 37.4186 35.1184C36.8908 35.1184 36.4629 35.5463 36.4629 36.0741C36.4629 36.6019 36.8908 37.0298 37.4186 37.0298Z", fill: "#989FB0" }),
|
|
2484
|
+
React__default.createElement("path", { d: "M34.2147 43.3063H31.2186C30.7536 43.3063 30.3662 42.9188 30.3662 42.4539C30.3662 41.989 30.7536 41.6016 31.2186 41.6016H34.1889C34.6538 41.6016 35.0413 41.989 35.0413 42.4539C35.0671 42.9188 34.6797 43.3063 34.2147 43.3063Z", fill: "#989FB0" }),
|
|
2485
|
+
React__default.createElement("defs", null,
|
|
2486
|
+
React__default.createElement("linearGradient", { id: "paint0_linear_2578_27197", x1: "32.6517", y1: "25.3966", x2: "32.6517", y2: "47.1455", gradientUnits: "userSpaceOnUse" },
|
|
2487
|
+
React__default.createElement("stop", { stopColor: "#FDFEFF" }),
|
|
2488
|
+
React__default.createElement("stop", { offset: "0.9964", stopColor: "#ECF0F5" })))));
|
|
2489
|
+
};
|
|
2490
|
+
|
|
2491
|
+
const libraries = ['places'];
|
|
2492
|
+
const GoogleLocationBlock = (props) => {
|
|
2493
|
+
var _a;
|
|
2494
|
+
const { inputWrapperOrder = ['label', 'input', 'description', 'error'], defaultValue, value: valueProps, onChange: onChangeProps, locale } = props, restProps = __rest(props, ["inputWrapperOrder", "defaultValue", "value", "onChange", "locale"]);
|
|
2495
|
+
const [LoadScript, setLoadScript] = useState(null);
|
|
2496
|
+
const [value, setValue] = useState(defaultValue || valueProps);
|
|
2497
|
+
const { predictions } = usePlacesAutocomplete(value, '', locale === 'tl-PH' ? 'en' : (_a = locale === null || locale === void 0 ? void 0 : locale.split('-')) === null || _a === void 0 ? void 0 : _a[0]);
|
|
2498
|
+
const onChangeAutocomplete = useCallback((s) => {
|
|
2499
|
+
setValue(s);
|
|
2500
|
+
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(s);
|
|
2501
|
+
}, []);
|
|
2502
|
+
const onClickItem = useCallback((item) => {
|
|
2503
|
+
/** For sure get value */
|
|
2504
|
+
setValue(item.value);
|
|
2505
|
+
const predCur = predictions === null || predictions === void 0 ? void 0 : predictions.find(({ description }) => description === item.value);
|
|
2506
|
+
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(item.value, predCur === null || predCur === void 0 ? void 0 : predCur.rawData);
|
|
2507
|
+
}, [onChangeProps, predictions]);
|
|
2508
|
+
useEffect(() => {
|
|
2509
|
+
setValue(valueProps);
|
|
2510
|
+
}, [valueProps]);
|
|
2511
|
+
useEffect(() => {
|
|
2512
|
+
var _a, _b, _c;
|
|
2513
|
+
// only load extra google script when not yet loaded
|
|
2514
|
+
if (!((_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.places) === null || _c === void 0 ? void 0 : _c.AutocompleteService) && !LoadScript) {
|
|
2515
|
+
import('@react-google-maps/api').then((m) => {
|
|
2516
|
+
setLoadScript(() => m.LoadScript);
|
|
2517
|
+
});
|
|
2518
|
+
}
|
|
2519
|
+
}, []);
|
|
2520
|
+
return (React__default.createElement(Autocomplete, Object.assign({ defaultValue: defaultValue, value: value, onChange: onChangeAutocomplete, data: predictions.map((pred) => {
|
|
2521
|
+
return { value: pred.description, label: pred.description };
|
|
2522
|
+
}), filter: () => true, onItemSubmit: onClickItem, inputWrapperOrder: inputWrapperOrder, zIndex: ZINDEX_SSO - 9e6 + 2, withinPortal: true, styles: { dropdown: { pointerEvents: 'auto' } }, inputContainer: (children) => {
|
|
2523
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2524
|
+
LoadScript && (React__default.createElement(LoadScript, { googleMapsApiKey: GOOGLE_API_KEY, libraries: libraries, loadingElement: React__default.createElement(React__default.Fragment, null), style: { width: '100%' } })),
|
|
2525
|
+
children));
|
|
2526
|
+
} }, restProps)));
|
|
2527
|
+
};
|
|
2528
|
+
|
|
2470
2529
|
const formatLeadGenFormValue = (values, blocks) => {
|
|
2471
2530
|
const newValues = {};
|
|
2472
2531
|
for (const block of blocks) {
|
|
@@ -2815,17 +2874,22 @@ const TextField$1 = (props) => {
|
|
|
2815
2874
|
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
2816
2875
|
});
|
|
2817
2876
|
const [shrink, setShrink] = useState(shrinkProps);
|
|
2877
|
+
const focusInput = (target) => {
|
|
2878
|
+
const $textEl = target.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
2879
|
+
const $focusEl = $textEl.item($textEl.length - 1);
|
|
2880
|
+
if ($focusEl) {
|
|
2881
|
+
$focusEl.focus({ preventScroll: true });
|
|
2882
|
+
}
|
|
2883
|
+
};
|
|
2818
2884
|
const onClick = useCallback((e) => {
|
|
2819
|
-
setShrink(true);
|
|
2820
|
-
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
2821
2885
|
if (shrink) {
|
|
2886
|
+
e.preventDefault();
|
|
2887
|
+
focusInput(e.currentTarget);
|
|
2822
2888
|
return;
|
|
2823
2889
|
}
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
$focusEl.focus();
|
|
2828
|
-
}
|
|
2890
|
+
setShrink(true);
|
|
2891
|
+
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
2892
|
+
focusInput(e.currentTarget);
|
|
2829
2893
|
}, [shrink]);
|
|
2830
2894
|
useEffect(() => {
|
|
2831
2895
|
setShrink(shrinkProps);
|
|
@@ -2838,44 +2902,6 @@ const ChoiceField$1 = (props) => {
|
|
|
2838
2902
|
return (React__default.createElement(StyledChoiceFieldContainer$1, Object.assign({ className: clsx(className, 'choiceField') }, restProps), children));
|
|
2839
2903
|
};
|
|
2840
2904
|
|
|
2841
|
-
const libraries = ['places'];
|
|
2842
|
-
const GoogleLocationBlock = (props) => {
|
|
2843
|
-
var _a;
|
|
2844
|
-
const { inputWrapperOrder = ['label', 'input', 'description', 'error'], defaultValue, value: valueProps, onChange: onChangeProps, locale } = props, restProps = __rest(props, ["inputWrapperOrder", "defaultValue", "value", "onChange", "locale"]);
|
|
2845
|
-
const [LoadScript, setLoadScript] = useState(null);
|
|
2846
|
-
const [value, setValue] = useState(defaultValue || valueProps);
|
|
2847
|
-
const { predictions } = usePlacesAutocomplete(value, '', locale === 'tl-PH' ? 'en' : (_a = locale === null || locale === void 0 ? void 0 : locale.split('-')) === null || _a === void 0 ? void 0 : _a[0]);
|
|
2848
|
-
const onChangeAutocomplete = useCallback((s) => {
|
|
2849
|
-
setValue(s);
|
|
2850
|
-
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(s);
|
|
2851
|
-
}, []);
|
|
2852
|
-
const onClickItem = useCallback((item) => {
|
|
2853
|
-
/** For sure get value */
|
|
2854
|
-
setValue(item.value);
|
|
2855
|
-
const predCur = predictions === null || predictions === void 0 ? void 0 : predictions.find(({ description }) => description === item.value);
|
|
2856
|
-
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(item.value, predCur === null || predCur === void 0 ? void 0 : predCur.rawData);
|
|
2857
|
-
}, [onChangeProps, predictions]);
|
|
2858
|
-
useEffect(() => {
|
|
2859
|
-
setValue(valueProps);
|
|
2860
|
-
}, [valueProps]);
|
|
2861
|
-
useEffect(() => {
|
|
2862
|
-
var _a, _b, _c;
|
|
2863
|
-
// only load extra google script when not yet loaded
|
|
2864
|
-
if (!((_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.places) === null || _c === void 0 ? void 0 : _c.AutocompleteService) && !LoadScript) {
|
|
2865
|
-
import('@react-google-maps/api').then((m) => {
|
|
2866
|
-
setLoadScript(() => m.LoadScript);
|
|
2867
|
-
});
|
|
2868
|
-
}
|
|
2869
|
-
}, []);
|
|
2870
|
-
return (React__default.createElement(Autocomplete, Object.assign({ defaultValue: defaultValue, value: value, onChange: onChangeAutocomplete, data: predictions.map((pred) => {
|
|
2871
|
-
return { value: pred.description, label: pred.description };
|
|
2872
|
-
}), filter: () => true, onItemSubmit: onClickItem, inputWrapperOrder: inputWrapperOrder, zIndex: ZINDEX_SSO - 9e6 + 2, withinPortal: true, styles: { dropdown: { pointerEvents: 'auto' } }, inputContainer: (children) => {
|
|
2873
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
2874
|
-
LoadScript && (React__default.createElement(LoadScript, { googleMapsApiKey: GOOGLE_API_KEY, libraries: libraries, loadingElement: React__default.createElement(React__default.Fragment, null), style: { width: '100%' } })),
|
|
2875
|
-
children));
|
|
2876
|
-
} }, restProps)));
|
|
2877
|
-
};
|
|
2878
|
-
|
|
2879
2905
|
const LeadGenForm = forwardRef((props, ref) => {
|
|
2880
2906
|
const { locale, blocks, scrollToErrorField = true, form: formProps, rules: validate, initialValues, onFinish, onFinishFailed, className, style, } = props;
|
|
2881
2907
|
const formRef = useRef(null);
|
|
@@ -2929,52 +2955,73 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
2929
2955
|
return (React__default.createElement("form", { ref: formRef, onSubmit: form.onSubmit(middlewareFinish, middlewareFinishFailed), className: className, style: style },
|
|
2930
2956
|
React__default.createElement(StyledLeadGenFormInner, { className: "leadgen-form_inputs" }, blocks.map((block, idx) => {
|
|
2931
2957
|
const { id, name: blockName, data } = block;
|
|
2932
|
-
const { placeholder, value: name, required, listQuestion, valueHTML, isSendMailChimp = false, } = data;
|
|
2958
|
+
const { placeholder: label, value: name, required, listQuestion, valueHTML, isSendMailChimp = false, } = data;
|
|
2933
2959
|
const formInputProps = form.getInputProps(name);
|
|
2934
2960
|
const { value, error } = formInputProps;
|
|
2935
2961
|
const reactKey = `${id}-${idx}`;
|
|
2936
2962
|
switch (blockName) {
|
|
2937
2963
|
case LEADGEN_BLOCK.TextBlock: {
|
|
2938
2964
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2939
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2965
|
+
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "text", "data-control": "text" }, formInputProps))));
|
|
2940
2966
|
}
|
|
2941
2967
|
case LEADGEN_BLOCK.NumberBlock: {
|
|
2942
2968
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2943
|
-
React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label:
|
|
2969
|
+
React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "number", "data-control": "number" }, formInputProps))));
|
|
2944
2970
|
}
|
|
2945
2971
|
case LEADGEN_BLOCK.EmailBlock: {
|
|
2946
2972
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2947
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2973
|
+
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, "data-control": "email" }, formInputProps))));
|
|
2948
2974
|
}
|
|
2949
2975
|
case LEADGEN_BLOCK.PhoneOtpBlock:
|
|
2950
2976
|
case LEADGEN_BLOCK.WhatsappOtpBlock:
|
|
2951
2977
|
case LEADGEN_BLOCK.ZaloOtpBlock:
|
|
2952
2978
|
case LEADGEN_BLOCK.PhoneBlock: {
|
|
2953
2979
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2954
|
-
React__default.createElement(PhoneInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2980
|
+
React__default.createElement(PhoneInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), type: "text", "data-control": "text" }, formInputProps))));
|
|
2955
2981
|
}
|
|
2956
2982
|
case LEADGEN_BLOCK.LocationBlock: {
|
|
2957
2983
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2958
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label:
|
|
2984
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, locale: locale, "data-control": "text" }, formInputProps))));
|
|
2959
2985
|
}
|
|
2960
2986
|
case LEADGEN_BLOCK.DateBlock: {
|
|
2961
2987
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2962
|
-
React__default.createElement(DateInput, Object.assign({ locale: (MAPPED_LOCALE === null || MAPPED_LOCALE === void 0 ? void 0 : MAPPED_LOCALE[locale]) || MAPPED_LOCALE['vi-VN'], valueFormat: "DD/MM/YYYY", name: name, withAsterisk: required, label:
|
|
2988
|
+
React__default.createElement(DateInput, Object.assign({ locale: (MAPPED_LOCALE === null || MAPPED_LOCALE === void 0 ? void 0 : MAPPED_LOCALE[locale]) || MAPPED_LOCALE['vi-VN'], valueFormat: "DD/MM/YYYY", name: name, withAsterisk: required, label: label, placeholder: " ", inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "default", "data-control": "date" }, formInputProps))));
|
|
2963
2989
|
}
|
|
2964
2990
|
case LEADGEN_BLOCK.DropdownBlock:
|
|
2965
2991
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2966
2992
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
2967
|
-
React__default.createElement(Select$1, Object.assign({ name: name, withAsterisk: required, label:
|
|
2993
|
+
React__default.createElement(Select$1, Object.assign({ name: name, withAsterisk: required, label: label, placeholder: " ", searchable: true, data: listQuestion.map((l) => ({
|
|
2968
2994
|
value: l.value,
|
|
2969
2995
|
label: l.placeholder,
|
|
2970
|
-
}))
|
|
2996
|
+
})), nothingFound: React__default.createElement(NoData, null), styles: {
|
|
2997
|
+
item: {
|
|
2998
|
+
paddingBlock: 12,
|
|
2999
|
+
paddingInline: 10,
|
|
3000
|
+
fontSize: 16,
|
|
3001
|
+
lineHeight: 1.5,
|
|
3002
|
+
},
|
|
3003
|
+
nothingFound: {
|
|
3004
|
+
fontSize: 54,
|
|
3005
|
+
paddingBlock: 30,
|
|
3006
|
+
},
|
|
3007
|
+
itemsWrapper: {
|
|
3008
|
+
padding: 6,
|
|
3009
|
+
},
|
|
3010
|
+
dropdown: {
|
|
3011
|
+
'.mantine-ScrollArea-scrollbar[data-orientation="vertical"]': {
|
|
3012
|
+
'--radix-scroll-area-thumb-width': '6px',
|
|
3013
|
+
width: 'var(--radix-scroll-area-thumb-width)',
|
|
3014
|
+
paddingInline: 0,
|
|
3015
|
+
},
|
|
3016
|
+
},
|
|
3017
|
+
}, maxDropdownHeight: 192 }, formInputProps))));
|
|
2971
3018
|
case LEADGEN_BLOCK.CheckboxBlock: {
|
|
2972
3019
|
const formInputCheckboxProps = form.getInputProps(name, {
|
|
2973
3020
|
type: 'checkbox',
|
|
2974
3021
|
});
|
|
2975
3022
|
return (React__default.createElement(ChoiceField$1, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
2976
3023
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
2977
|
-
React__default.createElement(Checkbox$1.Group, Object.assign({ size: "md", withAsterisk: required, label:
|
|
3024
|
+
React__default.createElement(Checkbox$1.Group, Object.assign({ size: "md", withAsterisk: required, label: label, value: value, sx: {
|
|
2978
3025
|
display: 'flex',
|
|
2979
3026
|
flexDirection: 'column',
|
|
2980
3027
|
flexWrap: 'wrap',
|
|
@@ -2986,7 +3033,7 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
2986
3033
|
case LEADGEN_BLOCK.RadioBlock: {
|
|
2987
3034
|
return (React__default.createElement(ChoiceField$1, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
2988
3035
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
2989
|
-
React__default.createElement(Radio$1.Group, Object.assign({ size: "md", withAsterisk: required, label:
|
|
3036
|
+
React__default.createElement(Radio$1.Group, Object.assign({ size: "md", withAsterisk: required, label: label, value: value, spellCheck: true, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, inputContainer: (children) => {
|
|
2990
3037
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
2991
3038
|
} }, formInputProps), listQuestion.map((l, _index) => (React__default.createElement(Radio$1, { name: name, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
2992
3039
|
}
|
|
@@ -3225,9 +3272,17 @@ const CloseButton = ({ onClose, containerClassName, svgClassName, }) => (React__
|
|
|
3225
3272
|
const CenterTabLayout = ({ popupId, url, newTab, imageDestkop, imageMobile, onClose, onOtherSubmit, }) => {
|
|
3226
3273
|
const { width: imageMobileWidth, height: imageMobileHeight, loaded: imageMobileLoaded, } = useImageSize(imageMobile);
|
|
3227
3274
|
const { width: imageDestkopWidth, height: imageDestkopHeight, loaded: imageDestkopLoaded, } = useImageSize(imageDestkop);
|
|
3275
|
+
useEffect(() => {
|
|
3276
|
+
if (popupId && imageMobileLoaded && imageDestkopLoaded) {
|
|
3277
|
+
document.body.classList.add('noscroll');
|
|
3278
|
+
}
|
|
3279
|
+
return () => {
|
|
3280
|
+
document.body.classList.remove('noscroll');
|
|
3281
|
+
};
|
|
3282
|
+
}, [popupId, imageMobileLoaded, imageDestkopLoaded]);
|
|
3228
3283
|
if (!imageMobileLoaded || !imageDestkopLoaded)
|
|
3229
3284
|
return null;
|
|
3230
|
-
return (React__default.createElement("div", { id: popupId, className: "lead-modal-wrapper", "data-popup-url": location.pathname, "data-popup-type": "center_tab" },
|
|
3285
|
+
return (React__default.createElement("div", { id: popupId, className: "leadgen lead-modal-wrapper", "data-popup-url": location.pathname, "data-popup-type": "center_tab" },
|
|
3231
3286
|
React__default.createElement("div", { className: "le-center-tab-popup" },
|
|
3232
3287
|
React__default.createElement("div", { style: { position: 'relative' } },
|
|
3233
3288
|
React__default.createElement("a", { className: "js-popup-other-submit", href: url, target: newTab ? 'blank' : '_parent', onClick: onOtherSubmit },
|
|
@@ -3597,6 +3652,182 @@ const useViewportDimensions = () => {
|
|
|
3597
3652
|
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3598
3653
|
};
|
|
3599
3654
|
|
|
3655
|
+
const StyledLeadGenLightBoxBFooter = styled.div `
|
|
3656
|
+
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3657
|
+
padding-inline: var(--spacing-x, 20px);
|
|
3658
|
+
padding-bottom: var(--spacing-y, 20px);
|
|
3659
|
+
`;
|
|
3660
|
+
const StyledLeadGenLightBoxBBody = styled.div `
|
|
3661
|
+
flex: 1;
|
|
3662
|
+
min-height: 0;
|
|
3663
|
+
overflow: auto;
|
|
3664
|
+
padding-inline: var(--spacing-y, 20px);
|
|
3665
|
+
padding-block: calc(var(--spacing-x, 20px) * 8 / 20);
|
|
3666
|
+
&::-webkit-scrollbar {
|
|
3667
|
+
width: 6px;
|
|
3668
|
+
height: 6px;
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
&::-webkit-scrollbar-track {
|
|
3672
|
+
background-color: transparent;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
&::-webkit-scrollbar-thumb {
|
|
3676
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
3677
|
+
border-radius: 6px;
|
|
3678
|
+
}
|
|
3679
|
+
`;
|
|
3680
|
+
const StyledLeadGenLightBoxBHeader = styled.div `
|
|
3681
|
+
display: flex;
|
|
3682
|
+
padding-top: var(--spacing-y, 20px);
|
|
3683
|
+
padding-inline: var(--spacing-x, 20px);
|
|
3684
|
+
padding-bottom: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3685
|
+
`;
|
|
3686
|
+
const StyledLeadGenLightBoxBWrapper = styled.div `
|
|
3687
|
+
height: 100%;
|
|
3688
|
+
display: flex;
|
|
3689
|
+
flex-direction: column;
|
|
3690
|
+
`;
|
|
3691
|
+
const StyledLeadGenLightBoxB = styled.div `
|
|
3692
|
+
--spacing-x: 20px;
|
|
3693
|
+
--spacing-y: 20px;
|
|
3694
|
+
--close-width: 24px;
|
|
3695
|
+
--close-height: 24px;
|
|
3696
|
+
|
|
3697
|
+
// For old version, Wrap every thing in children
|
|
3698
|
+
&[data-type='LightBoxB_typeA'] {
|
|
3699
|
+
height: 100%;
|
|
3700
|
+
width: 100%;
|
|
3701
|
+
.leadgen-wrapper,
|
|
3702
|
+
.leadgen-inner,
|
|
3703
|
+
.leadgen-form {
|
|
3704
|
+
height: 100%;
|
|
3705
|
+
}
|
|
3706
|
+
.leadgen-content {
|
|
3707
|
+
height: 100%;
|
|
3708
|
+
display: flex;
|
|
3709
|
+
flex-direction: column;
|
|
3710
|
+
}
|
|
3711
|
+
.leadgen-header {
|
|
3712
|
+
display: none;
|
|
3713
|
+
}
|
|
3714
|
+
.leadgen-title {
|
|
3715
|
+
padding-right: calc(var(--close-width, 24px) * 50 / 24);
|
|
3716
|
+
}
|
|
3717
|
+
.leadgen-description {
|
|
3718
|
+
display: none;
|
|
3719
|
+
}
|
|
3720
|
+
.leadgen-body {
|
|
3721
|
+
flex: 1;
|
|
3722
|
+
min-height: 0;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
.leadgen-close_btn {
|
|
3726
|
+
top: var(--spacing-y, 20px);
|
|
3727
|
+
right: var(--spacing-x, 20px);
|
|
3728
|
+
width: var(--close-width, 24px) !important;
|
|
3729
|
+
height: var(--close-height, 24px);
|
|
3730
|
+
box-shadow: none;
|
|
3731
|
+
font-size: 24px;
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3734
|
+
.leadgen-empty_footer {
|
|
3735
|
+
.leadgen-btn {
|
|
3736
|
+
flex: 1;
|
|
3737
|
+
min-width: 0;
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
.leadgen-form_body {
|
|
3742
|
+
overflow: auto;
|
|
3743
|
+
animation: scrolling forwards;
|
|
3744
|
+
animation-timeline: scroll(self);
|
|
3745
|
+
}
|
|
3746
|
+
@keyframes scrolling {
|
|
3747
|
+
0%,
|
|
3748
|
+
to {
|
|
3749
|
+
border-bottom: 1px solid ${theme.colors.neutral100};
|
|
3750
|
+
}
|
|
3751
|
+
}
|
|
3752
|
+
}
|
|
3753
|
+
`;
|
|
3754
|
+
const StyledMotionContainer = styled(motion.div) `
|
|
3755
|
+
position: fixed;
|
|
3756
|
+
inset: 0;
|
|
3757
|
+
z-index: ${ZINDEX_SSO + 1};
|
|
3758
|
+
background-color: #fff;
|
|
3759
|
+
`;
|
|
3760
|
+
|
|
3761
|
+
const PREFIX_CLS = 'LightBoxB_typeA';
|
|
3762
|
+
const DURATION = 1000 * 0.5;
|
|
3763
|
+
const DRAWER_STYLE = {
|
|
3764
|
+
visible: {
|
|
3765
|
+
opacity: 1,
|
|
3766
|
+
translateY: '0px',
|
|
3767
|
+
transitionProperty: 'translate',
|
|
3768
|
+
transitionDuration: '0.25s',
|
|
3769
|
+
},
|
|
3770
|
+
hidden: {
|
|
3771
|
+
opacity: 0,
|
|
3772
|
+
translateY: '100%',
|
|
3773
|
+
transitionProperty: 'translate',
|
|
3774
|
+
transitionDuration: '0.25s',
|
|
3775
|
+
},
|
|
3776
|
+
};
|
|
3777
|
+
const LeadGenLightBoxBTypeA = (props) => {
|
|
3778
|
+
const { visible, onVisible, icon, title, buttonText, blocks, children } = props, restProps = __rest(props, ["visible", "onVisible", "icon", "title", "buttonText", "blocks", "children"]);
|
|
3779
|
+
const formRef = useRef();
|
|
3780
|
+
const [open, setOpen] = useState(visible);
|
|
3781
|
+
const { height } = useViewportDimensions();
|
|
3782
|
+
usePreventScroll();
|
|
3783
|
+
const onOpenChange = useCallback((open) => {
|
|
3784
|
+
if (!open) {
|
|
3785
|
+
// Wait for duration of animation
|
|
3786
|
+
setTimeout(() => {
|
|
3787
|
+
onVisible === null || onVisible === void 0 ? void 0 : onVisible(open);
|
|
3788
|
+
}, DURATION);
|
|
3789
|
+
return;
|
|
3790
|
+
}
|
|
3791
|
+
onVisible === null || onVisible === void 0 ? void 0 : onVisible(open);
|
|
3792
|
+
}, [onVisible]);
|
|
3793
|
+
const iconComp = useMemo(() => {
|
|
3794
|
+
if (!icon) {
|
|
3795
|
+
return null;
|
|
3796
|
+
}
|
|
3797
|
+
return React__default.createElement(React__default.Fragment, null);
|
|
3798
|
+
}, [icon]);
|
|
3799
|
+
const titleComp = useMemo(() => {
|
|
3800
|
+
if (!title) {
|
|
3801
|
+
return null;
|
|
3802
|
+
}
|
|
3803
|
+
return title;
|
|
3804
|
+
}, [title]);
|
|
3805
|
+
const childrenComp = useMemo(() => {
|
|
3806
|
+
if (children) {
|
|
3807
|
+
return children;
|
|
3808
|
+
}
|
|
3809
|
+
return (React__default.createElement(StyledLeadGenLightBoxBWrapper, { className: `${PREFIX_CLS}_wrapper lightboxB_wrapper` },
|
|
3810
|
+
React__default.createElement(StyledLeadGenLightBoxBHeader, { className: `${PREFIX_CLS}_header lightboxB_header` },
|
|
3811
|
+
React__default.createElement("div", { className: "lightBoxB_header_icon" }, iconComp),
|
|
3812
|
+
React__default.createElement("div", { className: "lightBoxB_header_title" }, titleComp),
|
|
3813
|
+
React__default.createElement("div", { className: "lightBoxB_header_close", onClick: () => onOpenChange(false) },
|
|
3814
|
+
React__default.createElement(CloseButton, null))),
|
|
3815
|
+
React__default.createElement(StyledLeadGenLightBoxBBody, { className: `${PREFIX_CLS}_body lightboxB_body` },
|
|
3816
|
+
React__default.createElement(LeadGenForm, Object.assign({ ref: formRef, blocks: blocks }, restProps))),
|
|
3817
|
+
React__default.createElement(StyledLeadGenLightBoxBFooter, { className: `${PREFIX_CLS}_footer lightboxB_footer` },
|
|
3818
|
+
React__default.createElement(Button, { onClick: () => { var _a; return (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.submit(); } }, buttonText))));
|
|
3819
|
+
}, [children, onOpenChange]);
|
|
3820
|
+
useEffect(() => {
|
|
3821
|
+
setOpen(visible);
|
|
3822
|
+
}, [visible]);
|
|
3823
|
+
return (React__default.createElement(StyledMotionContainer, { animate: open ? 'visible' : 'hidden', variants: DRAWER_STYLE },
|
|
3824
|
+
React__default.createElement(StyledLeadGenLightBoxB, { "data-type": "LightBoxB_typeA", style: height ? { maxHeight: height } : undefined }, childrenComp)));
|
|
3825
|
+
};
|
|
3826
|
+
|
|
3827
|
+
const LeadGenLightBoxB = (props) => {
|
|
3828
|
+
return React__default.createElement(LeadGenLightBoxBTypeA, Object.assign({}, props));
|
|
3829
|
+
};
|
|
3830
|
+
|
|
3600
3831
|
const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkNewTab, linkText, image, }) => {
|
|
3601
3832
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
3602
3833
|
const { width: imageWidth, height: imageHeight, loaded: imageLoaded, } = useImageSize(image);
|
|
@@ -3966,6 +4197,7 @@ const StyledTextFieldContainer = styled.div `
|
|
|
3966
4197
|
outline: none !important;
|
|
3967
4198
|
border: none;
|
|
3968
4199
|
box-shadow: none;
|
|
4200
|
+
font-size: var(--input, 15px);
|
|
3969
4201
|
padding: 0 var(--phone-input-space-x, 8px);
|
|
3970
4202
|
opacity: 0;
|
|
3971
4203
|
color: ${theme.colors.gray800} !important;
|
|
@@ -4085,17 +4317,22 @@ const TextField = (props) => {
|
|
|
4085
4317
|
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
4086
4318
|
});
|
|
4087
4319
|
const [shrink, setShrink] = useState(shrinkProps);
|
|
4320
|
+
const focusInput = (target) => {
|
|
4321
|
+
const $textEl = target.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
4322
|
+
const $focusEl = $textEl.item($textEl.length - 1);
|
|
4323
|
+
if ($focusEl) {
|
|
4324
|
+
$focusEl.focus({ preventScroll: true });
|
|
4325
|
+
}
|
|
4326
|
+
};
|
|
4088
4327
|
const onClick = useCallback((e) => {
|
|
4089
|
-
setShrink(true);
|
|
4090
|
-
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
4091
4328
|
if (shrink) {
|
|
4329
|
+
e.preventDefault();
|
|
4330
|
+
focusInput(e.currentTarget);
|
|
4092
4331
|
return;
|
|
4093
4332
|
}
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
$focusEl.focus();
|
|
4098
|
-
}
|
|
4333
|
+
setShrink(true);
|
|
4334
|
+
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
4335
|
+
focusInput(e.currentTarget);
|
|
4099
4336
|
}, [shrink]);
|
|
4100
4337
|
useEffect(() => {
|
|
4101
4338
|
setShrink(shrinkProps);
|
|
@@ -4122,7 +4359,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4122
4359
|
return (React__default.createElement(React__default.Fragment, null, listBlockAdded.map((b, index) => {
|
|
4123
4360
|
var _a;
|
|
4124
4361
|
const { name = '', data = {}, id } = b || {};
|
|
4125
|
-
const { placeholder, value, align, listQuestion, isSendMailChimp = false, newtab, url, } = data;
|
|
4362
|
+
const { placeholder: label, value, align, listQuestion, isSendMailChimp = false, newtab, url, } = data;
|
|
4126
4363
|
const required = (_a = data.required) !== null && _a !== void 0 ? _a : true;
|
|
4127
4364
|
const formValue = (formValues === null || formValues === void 0 ? void 0 : formValues[value]) || null;
|
|
4128
4365
|
switch (name) {
|
|
@@ -4132,23 +4369,23 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4132
4369
|
return (React__default.createElement(SubtitleBlock, { key: index, align: align }, value));
|
|
4133
4370
|
case 'TextBlock':
|
|
4134
4371
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4135
|
-
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder:
|
|
4372
|
+
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: " ",
|
|
4136
4373
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4137
4374
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4138
|
-
label:
|
|
4375
|
+
label: label, "data-control": "text", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4139
4376
|
case 'NumberBlock':
|
|
4140
4377
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4141
|
-
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder:
|
|
4378
|
+
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: " ",
|
|
4142
4379
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4143
4380
|
// onChange={(e) => inputOnChange('number', e)}
|
|
4144
|
-
label:
|
|
4381
|
+
label: label, "data-control": "number", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4145
4382
|
case 'EmailBlock':
|
|
4146
4383
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4147
4384
|
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4148
4385
|
// type="email"
|
|
4149
|
-
placeholder:
|
|
4386
|
+
placeholder: " ",
|
|
4150
4387
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4151
|
-
label:
|
|
4388
|
+
label: label, "data-control": "email", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4152
4389
|
case 'PhoneOtpBlock':
|
|
4153
4390
|
case 'WhatsappOtpBlock':
|
|
4154
4391
|
case 'ZaloOtpBlock':
|
|
@@ -4158,19 +4395,19 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4158
4395
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: clsx('lead-modal__form-control leadgen-form_field', {
|
|
4159
4396
|
'leadgen-form_field_error': !!error,
|
|
4160
4397
|
}) },
|
|
4161
|
-
React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label:
|
|
4398
|
+
React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label: label, "data-invalid": !!error, labelProps: { htmlFor: htmlForId }, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error },
|
|
4162
4399
|
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
4163
|
-
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder:
|
|
4400
|
+
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: " ",
|
|
4164
4401
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4165
4402
|
id: htmlForId, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel" }, formPhoneInputWrapper))))));
|
|
4166
4403
|
}
|
|
4167
4404
|
case 'LocationBlock': {
|
|
4168
4405
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4169
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder:
|
|
4406
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: " ", label: label, "data-control": "text", locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4170
4407
|
}
|
|
4171
4408
|
case 'DateBlock': {
|
|
4172
4409
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = __rest(_c, ["error"]);
|
|
4173
|
-
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label:
|
|
4410
|
+
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label: label, "data-invalid": !!error, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error, className: "lead-modal__form-control leadgen-form_field" },
|
|
4174
4411
|
React__default.createElement(InputDate, Object.assign({ name: value, error: Boolean(error), locale: locale, "data-extra": true, "data-name": value, "data-control": "date", className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4175
4412
|
}
|
|
4176
4413
|
case 'LinkButtonBlock':
|
|
@@ -4187,7 +4424,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4187
4424
|
}, "data-name": value + '-mailchimp' })),
|
|
4188
4425
|
React__default.createElement(Checkbox.Group, Object.assign({ withAsterisk: required,
|
|
4189
4426
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4190
|
-
label:
|
|
4427
|
+
label: label, size: "md", sx: {
|
|
4191
4428
|
display: 'flex',
|
|
4192
4429
|
flexDirection: 'column',
|
|
4193
4430
|
flexWrap: 'wrap',
|
|
@@ -4200,20 +4437,41 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4200
4437
|
isSendMailChimp && (React__default.createElement(Input$1, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
4201
4438
|
React__default.createElement(Radio.Group, Object.assign({ withAsterisk: required,
|
|
4202
4439
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4203
|
-
label:
|
|
4440
|
+
label: label, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4204
4441
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4205
4442
|
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
4206
4443
|
case 'DropdownBlock':
|
|
4207
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field", key: index },
|
|
4444
|
+
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index },
|
|
4208
4445
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
4209
4446
|
React__default.createElement(Select
|
|
4210
4447
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4211
4448
|
, Object.assign({
|
|
4212
4449
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4213
|
-
label:
|
|
4450
|
+
label: label, placeholder: " ", searchable: true, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
4214
4451
|
value: l.value,
|
|
4215
4452
|
label: l.placeholder,
|
|
4216
|
-
}))
|
|
4453
|
+
})), nothingFound: React__default.createElement(NoData, null), styles: {
|
|
4454
|
+
item: {
|
|
4455
|
+
paddingBlock: 12,
|
|
4456
|
+
paddingInline: 10,
|
|
4457
|
+
fontSize: 16,
|
|
4458
|
+
lineHeight: 1.5,
|
|
4459
|
+
},
|
|
4460
|
+
nothingFound: {
|
|
4461
|
+
fontSize: 54,
|
|
4462
|
+
paddingBlock: 30,
|
|
4463
|
+
},
|
|
4464
|
+
itemsWrapper: {
|
|
4465
|
+
padding: 6,
|
|
4466
|
+
},
|
|
4467
|
+
dropdown: {
|
|
4468
|
+
'.mantine-ScrollArea-scrollbar[data-orientation="vertical"]': {
|
|
4469
|
+
'--radix-scroll-area-thumb-width': '6px',
|
|
4470
|
+
width: 'var(--radix-scroll-area-thumb-width)',
|
|
4471
|
+
paddingInline: 0,
|
|
4472
|
+
},
|
|
4473
|
+
},
|
|
4474
|
+
}, maxDropdownHeight: 192 }, form.getInputProps(value)))));
|
|
4217
4475
|
case 'TncBlock':
|
|
4218
4476
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = __rest(_d, ["error"]);
|
|
4219
4477
|
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
@@ -4473,7 +4731,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4473
4731
|
const [open, setOpen] = useState(!!campaignId);
|
|
4474
4732
|
const [showOtpPhone, setShowOtpPhone] = useState(null);
|
|
4475
4733
|
const [isSubmitLoading, setIsSubmitLoading] = useState(false);
|
|
4476
|
-
const [snap, setSnap] = useState(0.8)
|
|
4734
|
+
// const [snap, setSnap] = useState<string | number | null>(0.8)
|
|
4477
4735
|
const formRef = useRef();
|
|
4478
4736
|
const onClose = () => {
|
|
4479
4737
|
if (showOtpPhone) {
|
|
@@ -4543,10 +4801,46 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4543
4801
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4544
4802
|
const onFocus = (e) => {
|
|
4545
4803
|
e.preventDefault();
|
|
4546
|
-
|
|
4547
|
-
const
|
|
4548
|
-
|
|
4549
|
-
|
|
4804
|
+
function scrollIntoView() {
|
|
4805
|
+
const $Input = e.target;
|
|
4806
|
+
const $TextField = $Input.closest('.leadgen-form_field');
|
|
4807
|
+
const scrollIntoView = {
|
|
4808
|
+
block: 'center',
|
|
4809
|
+
behavior: 'auto',
|
|
4810
|
+
};
|
|
4811
|
+
if ($TextField.classList.contains('DropdownBlock')) {
|
|
4812
|
+
scrollIntoView.block = 'start';
|
|
4813
|
+
const tfOffsetTop = ($TextField === null || $TextField === void 0 ? void 0 : $TextField.offsetTop) || 0;
|
|
4814
|
+
const tfHeight = $TextField.clientHeight;
|
|
4815
|
+
const $ScrollableElement = getParentScroll($TextField);
|
|
4816
|
+
if ($ScrollableElement) {
|
|
4817
|
+
// https://hhgdev.atlassian.net/browse/EL-682
|
|
4818
|
+
const scrollHeight = $ScrollableElement.scrollHeight;
|
|
4819
|
+
if (scrollHeight - (tfOffsetTop + tfHeight) < 192) {
|
|
4820
|
+
scrollIntoView.block = 'end';
|
|
4821
|
+
}
|
|
4822
|
+
}
|
|
4823
|
+
}
|
|
4824
|
+
if (isMobile) {
|
|
4825
|
+
window.scrollTo(0, 0);
|
|
4826
|
+
}
|
|
4827
|
+
$TextField.scrollIntoView(scrollIntoView);
|
|
4828
|
+
}
|
|
4829
|
+
let time = 0;
|
|
4830
|
+
function requestFrame(timestamp) {
|
|
4831
|
+
if (time === 0) {
|
|
4832
|
+
time = timestamp;
|
|
4833
|
+
}
|
|
4834
|
+
if (timestamp - time <= 250) {
|
|
4835
|
+
requestAnimationFrame(requestFrame);
|
|
4836
|
+
}
|
|
4837
|
+
else {
|
|
4838
|
+
scrollIntoView();
|
|
4839
|
+
}
|
|
4840
|
+
}
|
|
4841
|
+
if (isMobile) {
|
|
4842
|
+
requestAnimationFrame(requestFrame);
|
|
4843
|
+
}
|
|
4550
4844
|
};
|
|
4551
4845
|
const middlewareOnSubmit = (e) => {
|
|
4552
4846
|
e.preventDefault();
|
|
@@ -4694,18 +4988,24 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4694
4988
|
'leadgen-inline': isInPage,
|
|
4695
4989
|
'leadgen-slider': isSlider,
|
|
4696
4990
|
});
|
|
4697
|
-
const PopupContainer = isDrawer ? (
|
|
4698
|
-
// <
|
|
4699
|
-
//
|
|
4700
|
-
//
|
|
4701
|
-
//
|
|
4702
|
-
//
|
|
4991
|
+
const PopupContainer = isDrawer ? (React__default.createElement(LeadGenLightBoxB, { form: form, loading: isSubmitLoading, visible: open, onVisible: () => onOpenChange(false) }, PopupWrapper)) : (
|
|
4992
|
+
// <DrawerComponent
|
|
4993
|
+
// fadeFromIndex={ZINDEX_SSO - 9e6}
|
|
4994
|
+
// open={open}
|
|
4995
|
+
// snapPoints={[0.8, 1]}
|
|
4996
|
+
// activeSnapPoint={snap}
|
|
4997
|
+
// setActiveSnapPoint={setSnap}
|
|
4998
|
+
// onOpenChange={onOpenChange}
|
|
4999
|
+
// overlayClassName={popupContainerClassName}
|
|
5000
|
+
// className="leadgen-drawer"
|
|
4703
5001
|
// >
|
|
4704
5002
|
// {PopupWrapper}
|
|
4705
|
-
//
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
5003
|
+
// <div
|
|
5004
|
+
// style={{ position: 'absolute', inset: 0, zIndex: snap === 1 ? -1 : 1 }}
|
|
5005
|
+
// onClick={() => setSnap(1)}
|
|
5006
|
+
// />
|
|
5007
|
+
// </DrawerComponent>
|
|
5008
|
+
React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName, style: isMobile ? { maxHeight: height } : undefined },
|
|
4709
5009
|
isFullscreen ? (React__default.createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
4710
5010
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
4711
5011
|
} })) : null,
|