@hhgtech/hhg-components 1.29.394-beta-2 → 1.29.395
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-eac90f76.js → InputDate-fc12be26.js} +7 -17
- package/build/{LastPeriod-c3e011d5.js → LastPeriod-f79b5164.js} +1 -1
- package/build/{MobileBottomNavigationIcon-10bed079.js → MobileBottomNavigationIcon-cd4ec4f2.js} +3 -3
- package/build/{Spinner-e7553de3.js → Spinner-cb9e87ee.js} +1 -1
- package/build/{WhatsApp-e9852dad.js → WhatsApp-15bbd681.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +55 -54
- package/build/babyGrowth.js +83 -83
- package/build/cache.js +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/drawerComponent/index.d.ts +0 -7
- package/build/components.js +147 -146
- package/build/{constants-50fcb7b4.js → constants-d472f11c.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-3173beab.js → core-e3d62143.js} +1 -1
- package/build/{dataTransform-fbe25d84.js → dataTransform-a492e3be.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-62213383.js → editor-8ec0a4db.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-d8c603b6.js → InputDate-602f65e7.js} +7 -17
- package/build/esm/{LastPeriod-e86f595d.js → LastPeriod-58eaee50.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-2d8779c1.js → MobileBottomNavigationIcon-8ef484de.js} +3 -3
- package/build/esm/{Spinner-da82667e.js → Spinner-79a88fe7.js} +1 -1
- package/build/esm/{WhatsApp-f4dcedcf.js → WhatsApp-12d95fb8.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +54 -53
- package/build/esm/babyGrowth.js +83 -83
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/atoms/drawerComponent/index.d.ts +0 -7
- package/build/esm/components.js +103 -102
- package/build/esm/{constants-04e464e6.js → constants-1e984837.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-6a2d1a82.js → core-503d0e19.js} +1 -1
- package/build/esm/{dataTransform-9bdd89a7.js → dataTransform-851fe21a.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-4bcc67ac.js → editor-dc662240.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-85c1f8b2.js → healthTools-42f6cb06.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 +0 -1
- package/build/esm/i18n-values/hi-IN.js +0 -1
- package/build/esm/i18n-values/id-ID.js +0 -1
- package/build/esm/i18n-values/km-KH.js +0 -1
- package/build/esm/i18n-values/ms-MY.js +0 -1
- package/build/esm/i18n-values/my-MM.js +0 -1
- package/build/esm/i18n-values/th-TH.js +0 -1
- package/build/esm/i18n-values/tl-PH.js +0 -1
- package/build/esm/i18n-values/vi-VN.js +0 -1
- package/build/esm/i18n-values/vi-VN_MB.js +0 -1
- package/build/esm/i18n-values/zh-CN.js +0 -1
- package/build/esm/i18n-values/zh-TW.js +0 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-d320eac2.js → index-0056050c.js} +2 -2
- package/build/esm/{index-2af05e4f.js → index-08f34ff2.js} +18 -18
- package/build/esm/{index-6a5e323d.js → index-15466f63.js} +16 -16
- package/build/esm/{index-3b0bbc40.js → index-17634690.js} +15 -15
- package/build/esm/{index-ca4fb69e.js → index-1d1c153c.js} +3 -3
- package/build/esm/{index-c105dc4b.js → index-1ea52ac0.js} +17 -17
- package/build/esm/{index-3705efe1.js → index-2021b3c1.js} +13 -13
- package/build/esm/{index-156e7bff.js → index-21607c99.js} +25 -25
- package/build/esm/{index-5660b351.js → index-238f0df7.js} +7 -120
- package/build/esm/{index-eb102b34.js → index-27e47866.js} +17 -17
- package/build/esm/{index-8e9263ee.js → index-2ec8dc46.js} +22 -22
- package/build/esm/{index-a73e0111.js → index-304b48b8.js} +2 -2
- package/build/esm/{index-394c446b.js → index-37da7797.js} +3 -3
- package/build/esm/{index-2cadfcb7.js → index-57001be3.js} +1 -1
- package/build/esm/{index-5bd43b7b.js → index-5c0e8412.js} +2 -2
- package/build/esm/{index-d0335ff2.js → index-5c13dc6e.js} +16 -16
- package/build/esm/{index-a3f2b52a.js → index-62749f00.js} +3 -3
- package/build/esm/{index-8d97c4d8.js → index-694ed585.js} +13 -13
- package/build/esm/{index-4e14f521.js → index-6a7dde31.js} +3 -3
- package/build/esm/{index-1523479a.js → index-6adac14f.js} +21 -21
- package/build/esm/{index-acc24b5c.js → index-6b1727a2.js} +4 -4
- package/build/esm/{index-d45a5adf.js → index-713619a6.js} +2 -2
- package/build/esm/{index-cfd4cbfb.js → index-77dab0fe.js} +5 -5
- package/build/esm/{index-8aa4f8fd.js → index-78dddce6.js} +13 -13
- package/build/esm/{index-a32d2f09.js → index-7fef2002.js} +17 -17
- package/build/esm/{index-53e17ce4.js → index-8184d2b2.js} +2 -2
- package/build/esm/{index-a743fa8e.js → index-837d93d2.js} +1 -1
- package/build/esm/{index-264e35c4.js → index-8c190b12.js} +8 -8
- package/build/esm/{index-65ced058.js → index-8df3750e.js} +7 -7
- package/build/esm/{index-61b7eece.js → index-8eed7b63.js} +2 -2
- package/build/esm/{index-1b2eedde.js → index-966f3431.js} +1 -1
- package/build/esm/{index-3c4438bc.js → index-a31be151.js} +6 -6
- package/build/esm/{index-e4188a84.js → index-a497ef67.js} +147 -231
- package/build/esm/{index-60665d56.js → index-a6a2c6fb.js} +13 -13
- package/build/esm/{index-40d6d504.js → index-a77b0610.js} +18 -18
- package/build/esm/{index-b030b921.js → index-a84d28d5.js} +2 -2
- package/build/esm/{index-a1230acf.js → index-a89ca14c.js} +3 -3
- package/build/esm/{index-12f426e6.js → index-ab281b8b.js} +24 -24
- package/build/esm/{index-da2812f4.js → index-ac5cb397.js} +6 -6
- package/build/esm/index-ae09d6db.js +118 -0
- package/build/esm/{index-aeef32ec.js → index-af7a0b48.js} +2 -2
- package/build/esm/{index-029c3ca3.js → index-b131d036.js} +10 -10
- package/build/esm/{index-683db2e9.js → index-b4681e39.js} +16 -16
- package/build/esm/{index-89b55959.js → index-b631b150.js} +3 -3
- package/build/esm/{index-268554a9.js → index-b74df050.js} +6 -6
- package/build/esm/{index-580fa91e.js → index-ba3fc512.js} +31 -31
- package/build/esm/{index-1f97d397.js → index-bc1a843d.js} +16 -16
- package/build/esm/{index-dc5801b5.js → index-c00fe542.js} +1 -1
- package/build/esm/{index-e9579c55.js → index-c14e1320.js} +6 -6
- package/build/esm/{index-a7c10f07.js → index-c3c35151.js} +1 -1
- package/build/esm/{index-89cd7b36.js → index-c73a0c60.js} +7 -7
- package/build/esm/{index-b8ef2e1f.js → index-c807b0bb.js} +2 -2
- package/build/esm/{index-3c33a1ed.js → index-c9060602.js} +4 -4
- package/build/esm/{index-aea81ad4.js → index-d26d4613.js} +31 -31
- package/build/esm/{index-52e6ab04.js → index-d722456d.js} +2 -2
- package/build/esm/{index-e0b2821c.js → index-da28a165.js} +1 -1
- package/build/esm/{index-c8c34747.js → index-de4ba53a.js} +6 -6
- package/build/esm/{index-8773b13e.js → index-e032ebdc.js} +1 -1
- package/build/esm/{index-fb740490.js → index-e745710b.js} +1 -1
- package/build/esm/{index-84d15fea.js → index-ec274641.js} +2 -2
- package/build/esm/{index-8a42e859.js → index-ed1b642a.js} +11 -11
- package/build/esm/{index-71fcbd33.js → index-f1d3e579.js} +17 -17
- package/build/esm/{index-3b1a47b6.js → index-f789dae3.js} +2 -2
- package/build/esm/{index-6e79f0d5.js → index-f8dbf8e4.js} +1 -1
- package/build/esm/{index-960c8cd2.js → index-f9473851.js} +2 -2
- package/build/esm/index.js +119 -118
- package/build/esm/{labelSorting-b39ffc84.js → labelSorting-038ca47e.js} +4 -4
- package/build/esm/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +0 -262
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +129 -421
- package/build/esm/{logoIcon-01e18236.js → logoIcon-60510914.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-0b755807.js → post-4cdb64fd.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/esm/ssoV2.js +40 -52
- package/build/esm/{store-5876e442.js → store-a147d34d.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-0894a226.js → surveyThankyouCard-d77f3101.js} +5 -5
- package/build/esm/together/components/molecules/createNewPostContentV2/index.styled.d.ts +0 -7
- 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-e28795ee.js → translationsProvider-bb4a8191.js} +1 -1
- package/build/esm/{treePopoverMenu-3efdf293.js → treePopoverMenu-3c09d18e.js} +19 -19
- package/build/esm/{types-228fdcb3.js → types-2ac9ccf9.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-3729e7ef.js → useCategory-95d061fe.js} +5 -5
- package/build/esm/{useHealthToolCache-e7dbf040.js → useHealthToolCache-6ea42c9e.js} +1 -1
- package/build/esm/{useMantineLocale-86cfb6bd.js → useMantineLocale-738fc2b0.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-6b824d35.js → usePlacesAutocomplete-bff32c4f.js} +1 -1
- package/build/esm/{useScreenSize-3b7ab547.js → useScreenSize-e572cdeb.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-bea15bbb.js → utils-2139a37f.js} +2 -2
- package/build/esm/{utils-949c2dd7.js → utils-71fab448.js} +5 -5
- package/build/esm/{utils-6685e18c.js → utils-8ddecfa9.js} +2 -2
- package/build/esm/{utils-1165d255.js → utils-c0714c25.js} +3 -3
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-c6ebcdcb.js → healthTools-8cc86c2e.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 +0 -1
- package/build/i18n-values/hi-IN.js +0 -1
- package/build/i18n-values/id-ID.js +0 -1
- package/build/i18n-values/km-KH.js +0 -1
- package/build/i18n-values/ms-MY.js +0 -1
- package/build/i18n-values/my-MM.js +0 -1
- package/build/i18n-values/th-TH.js +0 -1
- package/build/i18n-values/tl-PH.js +0 -1
- package/build/i18n-values/vi-VN.js +0 -1
- package/build/i18n-values/vi-VN_MB.js +0 -1
- package/build/i18n-values/zh-CN.js +0 -1
- package/build/i18n-values/zh-TW.js +0 -1
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-12b35ef7.js → index-037289ae.js} +1 -1
- package/build/{index-c9240670.js → index-0535210b.js} +1 -1
- package/build/{index-5d58433c.js → index-0fa88470.js} +17 -17
- package/build/{index-63cec611.js → index-1cf38580.js} +13 -13
- package/build/{index-debd15b4.js → index-1e7df97e.js} +1 -1
- package/build/{index-a8936d7a.js → index-21308aef.js} +3 -3
- package/build/{index-a1bb1b93.js → index-24d6833c.js} +13 -13
- package/build/{index-bc32d7db.js → index-2505a385.js} +11 -11
- package/build/{index-661c70de.js → index-265dbfc8.js} +13 -13
- package/build/{index-0281227a.js → index-2b633262.js} +6 -6
- package/build/{index-2bb00add.js → index-2ed4f902.js} +6 -6
- package/build/{index-55ee7537.js → index-3405d280.js} +8 -8
- package/build/{index-80f0280d.js → index-3463357d.js} +1 -1
- package/build/{index-0c6ac6d3.js → index-39f52073.js} +21 -21
- package/build/{index-60ea7f96.js → index-3cc91040.js} +18 -18
- package/build/{index-c65cc226.js → index-3e30f43e.js} +2 -2
- package/build/{index-eb3a8fb7.js → index-46e11d17.js} +1 -1
- package/build/{index-a653be45.js → index-4d08b61f.js} +7 -7
- package/build/{index-f38d3ea8.js → index-50399c69.js} +15 -15
- package/build/{index-d7508e86.js → index-50b1eef5.js} +3 -3
- package/build/{index-8a60b3e3.js → index-526bc8b7.js} +24 -24
- package/build/{index-624c47f1.js → index-52a845a4.js} +3 -3
- package/build/{index-33aea2b0.js → index-53fb12f7.js} +17 -17
- package/build/{index-33fe9473.js → index-5805b3ec.js} +25 -25
- package/build/{index-2b290380.js → index-5a971e8e.js} +18 -18
- package/build/{index-23c78802.js → index-5aa6e32c.js} +146 -230
- package/build/{index-a5cdb8e7.js → index-5cc0648e.js} +17 -17
- package/build/{index-e96b9625.js → index-65877f7f.js} +2 -2
- package/build/{index-fbf79cf3.js → index-65984000.js} +4 -4
- package/build/{index-afecde01.js → index-6f4e9376.js} +22 -22
- package/build/{index-3302f186.js → index-77fdc39c.js} +2 -2
- package/build/{index-e2a32540.js → index-7b39ca5a.js} +31 -31
- package/build/{index-4a546aaa.js → index-7da7f107.js} +5 -119
- package/build/{index-bf119c4f.js → index-7dcea0bb.js} +10 -10
- package/build/{index-b8c6a99f.js → index-8027d859.js} +7 -7
- package/build/{index-05786ec0.js → index-8cb21bf0.js} +1 -1
- package/build/{index-42ab67e8.js → index-8cd605a4.js} +6 -6
- package/build/{index-326a1b85.js → index-8f5dfec3.js} +2 -2
- package/build/{index-c3ba195f.js → index-90a33d63.js} +2 -2
- package/build/{index-89fd03cc.js → index-9a8b67e3.js} +3 -3
- package/build/{index-46d0459d.js → index-9b576850.js} +13 -13
- package/build/{index-5e0a1e22.js → index-9e846c33.js} +5 -5
- package/build/{index-42ef519a.js → index-a98012d1.js} +2 -2
- package/build/{index-4544011b.js → index-ae53eeda.js} +31 -31
- package/build/{index-082b63cf.js → index-ae76aeb3.js} +16 -16
- package/build/{index-3949ecf7.js → index-afa2b601.js} +2 -2
- package/build/{index-ad18fc64.js → index-b0a12329.js} +4 -4
- package/build/{index-bd974cdb.js → index-b8ef9b27.js} +2 -2
- package/build/{index-f2ad55d6.js → index-c31a6ab5.js} +6 -6
- package/build/{index-d7f39459.js → index-c4288d81.js} +17 -17
- package/build/{index-85c7d01b.js → index-c4ecc316.js} +2 -2
- package/build/{index-4839557f.js → index-da80faa7.js} +2 -2
- package/build/{index-5f54d3ca.js → index-dbb1bebb.js} +1 -1
- package/build/{index-c059b45e.js → index-dc4e5b57.js} +1 -1
- package/build/{index-b9003b5c.js → index-e1251fad.js} +16 -16
- package/build/{index-85339eba.js → index-e1b23425.js} +2 -2
- package/build/{index-e1719527.js → index-e6d09057.js} +16 -16
- package/build/{index-ff30f6cc.js → index-e8bdf884.js} +3 -3
- package/build/{index-c07bc945.js → index-ecfed0d6.js} +6 -6
- package/build/{index-665601f9.js → index-efbe5dd2.js} +1 -1
- package/build/{index-40a59370.js → index-eff2e9c9.js} +2 -2
- package/build/index-f337b4a8.js +125 -0
- package/build/{index-2cfadb0e.js → index-faaa418b.js} +3 -3
- package/build/{index-6eff4b57.js → index-fc0eb3be.js} +16 -16
- package/build/{index-63ccebbc.js → index-fd327f0c.js} +2 -2
- package/build/index.js +185 -184
- package/build/{labelSorting-83ca9353.js → labelSorting-c9059bb9.js} +4 -4
- package/build/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +0 -262
- package/build/lead.css +1 -1
- package/build/lead.js +128 -420
- package/build/{logoIcon-368853e2.js → logoIcon-2f519cbc.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-d0900f6c.js → post-a3532f10.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/ssoV2.js +38 -50
- package/build/{store-e5f7360c.js → store-7039961b.js} +3 -3
- package/build/subot.js +35 -35
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-1a4e2df9.js → surveyThankyouCard-a517374c.js} +5 -5
- package/build/together/components/molecules/createNewPostContentV2/index.styled.d.ts +0 -7
- 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-8887ddcb.js → translationsProvider-f2a3687b.js} +1 -1
- package/build/{treePopoverMenu-1f8ab1e7.js → treePopoverMenu-7054a35f.js} +19 -19
- package/build/{types-6ed75177.js → types-16068ff8.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-fbf6c5cd.js → useCategory-5be6ce06.js} +5 -5
- package/build/{useHealthToolCache-c555ef20.js → useHealthToolCache-2a4c9939.js} +1 -1
- package/build/{useMantineLocale-ad2063c7.js → useMantineLocale-0181b664.js} +6 -6
- package/build/{usePlacesAutocomplete-12194665.js → usePlacesAutocomplete-e11e1d43.js} +1 -1
- package/build/{useScreenSize-f4b697c0.js → useScreenSize-5240f3ae.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-3e3ee1a2.js → utils-1057ad4d.js} +5 -5
- package/build/{utils-51e01fbd.js → utils-9d2704c6.js} +2 -2
- package/build/{utils-8527511b.js → utils-c1e7ebc0.js} +2 -2
- package/build/{utils-c0b36380.js → utils-eaf83096.js} +3 -3
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/lead/LeadGenForm/LeadGenEmpty.d.ts +0 -8
- package/build/esm/lead/icons/NoData.d.ts +0 -3
- package/build/esm/lead/icons/index.d.ts +0 -5
- package/build/esm/together/utils/index.d.ts +0 -1
- package/build/lead/LeadGenForm/LeadGenEmpty.d.ts +0 -8
- package/build/lead/icons/NoData.d.ts +0 -3
- package/build/lead/icons/index.d.ts +0 -5
- package/build/together/utils/index.d.ts +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-dc44a744.js → BMI_BOYS.percentile.monthly-5e7a7d21.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-d43cfd0f.js → BMI_BOYS.percentile.weekly-abe9fb43.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-3de13a2c.js → BMI_BOYS.percentile.yearly-b84043f6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-72df0b5d.js → BMI_BOYS.zscore.monthly-11bd8873.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-b1b649eb.js → BMI_BOYS.zscore.weekly-13579b6b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-ab836117.js → BMI_BOYS.zscore.yearly-7ec2f26b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-ddbaf261.js → BMI_GIRLS.percentile.monthly-2043a009.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d9827548.js → BMI_GIRLS.percentile.weekly-10661219.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7396ea15.js → BMI_GIRLS.percentile.yearly-f1ba055f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-4f3a8e09.js → BMI_GIRLS.zscore.monthly-818d02de.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-dad4e8a1.js → BMI_GIRLS.zscore.weekly-ffa1becc.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-f2213908.js → BMI_GIRLS.zscore.yearly-248d1f00.js} +0 -0
- /package/build/{ChevronDown-4412251a.js → ChevronDown-a8f20798.js} +0 -0
- /package/build/{Close-1729d46e.js → Close-3dee5eb4.js} +0 -0
- /package/build/{Google-65bb4096.js → Google-d7b3fb6f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b5d1b24f.js → HEAD CIRCUM_BOYS.percentile.monthly-659fdd75.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-0af315c5.js → HEAD CIRCUM_BOYS.percentile.weekly-b857c60a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-d3fdee2b.js → HEAD CIRCUM_BOYS.percentile.yearly-455204fc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e5ad87a0.js → HEAD CIRCUM_BOYS.zscore.monthly-20d49e4e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b80a348e.js → HEAD CIRCUM_BOYS.zscore.weekly-c71c1b67.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-ab5e48ac.js → HEAD CIRCUM_BOYS.zscore.yearly-9d400bdf.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-7da783b3.js → HEAD CIRCUM_GIRLS.percentile.monthly-25107f5d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-9279f3c1.js → HEAD CIRCUM_GIRLS.percentile.weekly-d22b4ba9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-688419ba.js → HEAD CIRCUM_GIRLS.percentile.yearly-f81b47b8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-8aea0a6c.js → HEAD CIRCUM_GIRLS.zscore.monthly-9dac5192.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-3af39f37.js → HEAD CIRCUM_GIRLS.zscore.weekly-2a4de654.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-02cf515c.js → HEAD CIRCUM_GIRLS.zscore.yearly-169cbe2e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-dec31f63.js → HEIGHT_BOYS.percentile.monthly-0dd808c8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-59b73ae7.js → HEIGHT_BOYS.percentile.weekly-5093ce73.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-936d256c.js → HEIGHT_BOYS.percentile.yearly-6bb333f9.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-afd0da6b.js → HEIGHT_BOYS.zscore.monthly-63892e13.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-c7f65d12.js → HEIGHT_BOYS.zscore.weekly-5ffcba95.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-91df91ab.js → HEIGHT_BOYS.zscore.yearly-9c0c11d4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-5d6700c0.js → HEIGHT_GIRLS.percentile.monthly-53c268db.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-eb27d540.js → HEIGHT_GIRLS.percentile.weekly-54c3cfc8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-1787953d.js → HEIGHT_GIRLS.percentile.yearly-e6a80d29.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-631dc0dc.js → HEIGHT_GIRLS.zscore.monthly-64e1c783.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-33174efb.js → HEIGHT_GIRLS.zscore.weekly-c850968a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-03d024e5.js → HEIGHT_GIRLS.zscore.yearly-36146fa2.js} +0 -0
- /package/build/{Locale-39ae7840.js → Locale-88496264.js} +0 -0
- /package/build/{Visible-022eb577.js → Visible-5d07546b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-02bab776.js → WEIGHT_BOYS.percentile.monthly-ea3e2766.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-8de3b18f.js → WEIGHT_BOYS.percentile.weekly-a9a02d1f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-59b8a21b.js → WEIGHT_BOYS.percentile.yearly-a748d552.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-abb45faa.js → WEIGHT_BOYS.zscore.monthly-f85ca094.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b1398692.js → WEIGHT_BOYS.zscore.weekly-5c8b4958.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-dc2ecbad.js → WEIGHT_BOYS.zscore.yearly-ff5f37bb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-796acabf.js → WEIGHT_GIRLS.percentile.monthly-6b44cdbf.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-82286158.js → WEIGHT_GIRLS.percentile.weekly-db014a3a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-9004f8e1.js → WEIGHT_GIRLS.percentile.yearly-28d618d0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-43fb2af7.js → WEIGHT_GIRLS.zscore.monthly-a6572603.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-73c20eff.js → WEIGHT_GIRLS.zscore.weekly-6a50107a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-c8b12eb7.js → WEIGHT_GIRLS.zscore.yearly-d3b1b039.js} +0 -0
- /package/build/{animation-6d005387.js → animation-70de288d.js} +0 -0
- /package/build/{constants-d191ad8f.js → constants-2a1dedfc.js} +0 -0
- /package/build/{constants-e5fcdc77.js → constants-a52d8bc7.js} +0 -0
- /package/build/{constants-c731fcca.js → constants-fd080c68.js} +0 -0
- /package/build/{dataTransform-b3e86aaa.js → dataTransform-60ff96e1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-2029980a.js → BMI_BOYS.percentile.monthly-f868265e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-83083435.js → BMI_BOYS.percentile.weekly-70165c6e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-9e0f81b7.js → BMI_BOYS.percentile.yearly-ea04f4ef.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-288d32e7.js → BMI_BOYS.zscore.monthly-c37b9ec4.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-07d49851.js → BMI_BOYS.zscore.weekly-290b30dd.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d5c63800.js → BMI_BOYS.zscore.yearly-28119ee2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-0899ea2e.js → BMI_GIRLS.percentile.monthly-20315b0a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-aa7030ba.js → BMI_GIRLS.percentile.weekly-69bbfd7b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-eb0e2e75.js → BMI_GIRLS.percentile.yearly-68aa4e79.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-b8b72364.js → BMI_GIRLS.zscore.monthly-53760c29.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-4b0793a4.js → BMI_GIRLS.zscore.weekly-05cc67da.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-62b2a4f4.js → BMI_GIRLS.zscore.yearly-5e31f5a5.js} +0 -0
- /package/build/esm/{ChevronDown-4a30760b.js → ChevronDown-f2b7c27e.js} +0 -0
- /package/build/esm/{Close-1e08c38e.js → Close-7a83967c.js} +0 -0
- /package/build/esm/{Google-d6b959f4.js → Google-99e06df8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-41a1d1af.js → HEAD CIRCUM_BOYS.percentile.monthly-55f8f39f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-0a035291.js → HEAD CIRCUM_BOYS.percentile.weekly-6343de83.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-5e7cba37.js → HEAD CIRCUM_BOYS.percentile.yearly-322bf824.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-af0b9582.js → HEAD CIRCUM_BOYS.zscore.monthly-d6e472c2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6ad27029.js → HEAD CIRCUM_BOYS.zscore.weekly-c8166f4f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-0fc6243d.js → HEAD CIRCUM_BOYS.zscore.yearly-c5bf924e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b31a2528.js → HEAD CIRCUM_GIRLS.percentile.monthly-b987eb52.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-1456ccbd.js → HEAD CIRCUM_GIRLS.percentile.weekly-1dfcdad2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f9a5918d.js → HEAD CIRCUM_GIRLS.percentile.yearly-baab7647.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-d03c8f32.js → HEAD CIRCUM_GIRLS.zscore.monthly-354f642c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-2f4dcbbf.js → HEAD CIRCUM_GIRLS.zscore.weekly-f1bf5aad.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c591fee9.js → HEAD CIRCUM_GIRLS.zscore.yearly-f8413045.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-db47d700.js → HEIGHT_BOYS.percentile.monthly-89325647.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-470fb944.js → HEIGHT_BOYS.percentile.weekly-aaab57cb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3d8514ab.js → HEIGHT_BOYS.percentile.yearly-e177183d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-ab3b9fef.js → HEIGHT_BOYS.zscore.monthly-a78c2e2a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-0b05f06d.js → HEIGHT_BOYS.zscore.weekly-b68e6b79.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-4f8b76da.js → HEIGHT_BOYS.zscore.yearly-31c6712a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8af8940f.js → HEIGHT_GIRLS.percentile.monthly-a6feb85a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-529b8d5a.js → HEIGHT_GIRLS.percentile.weekly-d24f3dd1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-e84ce42e.js → HEIGHT_GIRLS.percentile.yearly-9e60e51c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-fede56ae.js → HEIGHT_GIRLS.zscore.monthly-1cd29116.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-fa4fd754.js → HEIGHT_GIRLS.zscore.weekly-a95b1607.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-8d7487e8.js → HEIGHT_GIRLS.zscore.yearly-d1ee58dc.js} +0 -0
- /package/build/esm/{Locale-aac36404.js → Locale-e37edea6.js} +0 -0
- /package/build/esm/{Visible-cde62f3a.js → Visible-675fa92b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-16bb3787.js → WEIGHT_BOYS.percentile.monthly-abc23c30.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-2c3bb779.js → WEIGHT_BOYS.percentile.weekly-6c756b20.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-6269b827.js → WEIGHT_BOYS.percentile.yearly-3e772832.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4f5b7858.js → WEIGHT_BOYS.zscore.monthly-01cd4a9e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-a58900df.js → WEIGHT_BOYS.zscore.weekly-da6a708e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-8748b87b.js → WEIGHT_BOYS.zscore.yearly-e15e6eed.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a27979f0.js → WEIGHT_GIRLS.percentile.monthly-3d01ae32.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-7847582c.js → WEIGHT_GIRLS.percentile.weekly-558bddbf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8d35e5fe.js → WEIGHT_GIRLS.percentile.yearly-176576c3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-29cf9907.js → WEIGHT_GIRLS.zscore.monthly-f95a3ce4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-e99a143f.js → WEIGHT_GIRLS.zscore.weekly-668444ba.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-139a7897.js → WEIGHT_GIRLS.zscore.yearly-218eb559.js} +0 -0
- /package/build/esm/{animation-fc83a703.js → animation-365cf7d0.js} +0 -0
- /package/build/esm/{constants-80fe9572.js → constants-4a3e6669.js} +0 -0
- /package/build/esm/{constants-f82bc91e.js → constants-5b713e5a.js} +0 -0
- /package/build/esm/{constants-4baf3c0c.js → constants-c6cbd6b8.js} +0 -0
- /package/build/esm/{dataTransform-205b11b3.js → dataTransform-72d9c084.js} +0 -0
- /package/build/esm/{index-1c6b51c7.js → index-1850d594.js} +0 -0
- /package/build/esm/{index-21068467.js → index-18c6be13.js} +0 -0
- /package/build/esm/{index-7818fff1.js → index-2bf5f78a.js} +0 -0
- /package/build/esm/{index-169d467f.js → index-2ce468ee.js} +0 -0
- /package/build/esm/{index-f284d46f.js → index-311edc1b.js} +0 -0
- /package/build/esm/{index-23f09ffa.js → index-a225ce93.js} +0 -0
- /package/build/esm/{index-dfd08f11.js → index-be290ad5.js} +0 -0
- /package/build/esm/{index-66f88b6a.js → index-e41e9e9c.js} +0 -0
- /package/build/esm/{index.styles-2f224e81.js → index.styles-2ae2bbf8.js} +0 -0
- /package/build/esm/lead/layouts/{emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/esm/{localizeNumberFormat-85ecc1f8.js → localizeNumberFormat-d59db151.js} +0 -0
- /package/build/esm/{normalizeLink-853b9bd8.js → normalizeLink-dc941d98.js} +0 -0
- /package/build/esm/{number-89fa98fa.js → number-3dbd5a3f.js} +0 -0
- /package/build/esm/{other-cf9902ef.js → other-cef0261a.js} +0 -0
- /package/build/esm/{paths-9f502f6d.js → paths-2bbcf72d.js} +0 -0
- /package/build/esm/{translationsContext-8a8a9484.js → translationsContext-f94ca99c.js} +0 -0
- /package/build/esm/{tslib.es6-0cb44555.js → tslib.es6-b97b9ccd.js} +0 -0
- /package/build/esm/{types-94ee7c0b.js → types-cb6a987c.js} +0 -0
- /package/build/esm/{useIsInit-ab55ceb2.js → useIsInit-2050867e.js} +0 -0
- /package/build/esm/{useOutsideClick-b76b3c83.js → useOutsideClick-4b5e00d9.js} +0 -0
- /package/build/esm/{useScrollbarSize-0dc22f46.js → useScrollbarSize-2d07896b.js} +0 -0
- /package/build/esm/{useUniqueId-cb108203.js → useUniqueId-0499a705.js} +0 -0
- /package/build/esm/{utils-a2e416ad.js → utils-1a4cbdae.js} +0 -0
- /package/build/{index-6f8b7b64.js → index-079d5fc4.js} +0 -0
- /package/build/{index-5cbe3960.js → index-533f3d32.js} +0 -0
- /package/build/{index-a617d947.js → index-93e10656.js} +0 -0
- /package/build/{index-2e94a876.js → index-ae2a1c0e.js} +0 -0
- /package/build/{index-c64e92d8.js → index-c4a9e670.js} +0 -0
- /package/build/{index-7de28bc7.js → index-f1064487.js} +0 -0
- /package/build/{index-94ffefc0.js → index-f65dc62b.js} +0 -0
- /package/build/{index-7aae420b.js → index-fd7ba516.js} +0 -0
- /package/build/{index.styles-89309e0c.js → index.styles-7e0b347b.js} +0 -0
- /package/build/lead/layouts/{emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/{localizeNumberFormat-d704c91d.js → localizeNumberFormat-32defeda.js} +0 -0
- /package/build/{normalizeLink-65f625d1.js → normalizeLink-4f6bff54.js} +0 -0
- /package/build/{number-55619945.js → number-a3af3e32.js} +0 -0
- /package/build/{other-65b308f5.js → other-c84abbc7.js} +0 -0
- /package/build/{paths-1ad823da.js → paths-6cad97fb.js} +0 -0
- /package/build/{translationsContext-ae79a68c.js → translationsContext-778e8e71.js} +0 -0
- /package/build/{tslib.es6-3027863f.js → tslib.es6-7b54318f.js} +0 -0
- /package/build/{types-41305282.js → types-1897ec38.js} +0 -0
- /package/build/{useIsInit-f4a7ee08.js → useIsInit-291cefb0.js} +0 -0
- /package/build/{useOutsideClick-ba55d42b.js → useOutsideClick-34c2ff7b.js} +0 -0
- /package/build/{useScrollbarSize-55cccdd7.js → useScrollbarSize-1f0e2534.js} +0 -0
- /package/build/{useUniqueId-f787f1e0.js → useUniqueId-6ebe2cda.js} +0 -0
- /package/build/{utils-92829c83.js → utils-38a21716.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-b97b9ccd.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback, forwardRef, useImperativeHandle, memo, useLayoutEffect } from 'react';
|
|
3
|
-
import { createStyles, Box, Button as Button$1, Input as Input$1,
|
|
3
|
+
import { createStyles, Box, Button as Button$1, Input as Input$1, clsx, Autocomplete, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, TextInput, NumberInput as NumberInput$1, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import debounce from 'lodash/debounce';
|
|
6
6
|
import { createFormContext, useForm } from '@mantine/form';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-6b1727a2.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-f8dbf8e4.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-f94ca99c.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-1a4cbdae.js';
|
|
12
|
+
import { T as Text } from './index-5c0e8412.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-ed1b642a.js';
|
|
14
|
+
import { D as DatePicker } from './index-de4ba53a.js';
|
|
15
|
+
import { B as Button } from './index-966f3431.js';
|
|
16
|
+
import './index.styles-2ae2bbf8.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-738fc2b0.js';
|
|
19
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-57001be3.js';
|
|
20
|
+
import './index-2bf5f78a.js';
|
|
21
|
+
import { Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-d722456d.js';
|
|
22
|
+
import './other-cef0261a.js';
|
|
23
|
+
import './index-6a7dde31.js';
|
|
24
|
+
import { M as MAPPED_LOCALE } from './utils-8ddecfa9.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-bff32c4f.js';
|
|
27
|
+
import { H as Heading$1 } from './index-c807b0bb.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-bb4a8191.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-e37edea6.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
32
32
|
import styled from '@emotion/styled';
|
|
33
33
|
import { theme } from './miscTheme.js';
|
|
34
34
|
import { css } from '@emotion/react';
|
|
35
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
36
|
-
import { i as isVideo } from './index-
|
|
37
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
38
|
-
import { motion } from 'framer-motion';
|
|
35
|
+
import { T as TogetherComponentGlobalContext } from './utils-c0714c25.js';
|
|
36
|
+
import { i as isVideo } from './index-2ce468ee.js';
|
|
37
|
+
import { u as useScreenSize } from './useScreenSize-e572cdeb.js';
|
|
39
38
|
import { createPortal } from 'react-dom';
|
|
40
|
-
import { B as Button$2 } from './index-
|
|
41
|
-
import { I as InputDate } from './InputDate-
|
|
42
|
-
import {
|
|
39
|
+
import { B as Button$2 } from './index-f9473851.js';
|
|
40
|
+
import { I as InputDate } from './InputDate-602f65e7.js';
|
|
41
|
+
import { D as DrawerComponent } from './index-ae09d6db.js';
|
|
42
|
+
import { C as Close } from './Close-7a83967c.js';
|
|
43
43
|
import './constantsIsProduction.js';
|
|
44
|
-
import './normalizeLink-
|
|
44
|
+
import './normalizeLink-dc941d98.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-0499a705.js';
|
|
50
50
|
import './constantsSite.js';
|
|
51
51
|
import '@hhgtech/icons/core';
|
|
52
52
|
import '@mantine/notifications';
|
|
@@ -63,11 +63,12 @@ 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-a225ce93.js';
|
|
67
67
|
import 'slugify';
|
|
68
68
|
import 'string-format';
|
|
69
69
|
import './togetherApiPaths.js';
|
|
70
|
-
import './constants-
|
|
70
|
+
import './constants-5b713e5a.js';
|
|
71
|
+
import 'vaul';
|
|
71
72
|
|
|
72
73
|
const LeadGenComponentContext = createContext({});
|
|
73
74
|
|
|
@@ -2280,7 +2281,7 @@ const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validating
|
|
|
2280
2281
|
}, {});
|
|
2281
2282
|
}, [listBlockAdded.map((b) => b.name).join(','), format]);
|
|
2282
2283
|
const form = useLeadForm({
|
|
2283
|
-
validateInputOnChange:
|
|
2284
|
+
validateInputOnChange: true,
|
|
2284
2285
|
validateInputOnBlur: true,
|
|
2285
2286
|
clearInputErrorOnChange: true,
|
|
2286
2287
|
validate: validateObj,
|
|
@@ -2466,66 +2467,6 @@ const PhoneInput = forwardRef((props, ref) => {
|
|
|
2466
2467
|
React__default.createElement(Phone, Object.assign({}, restProps, { id: id, ref: ref, name: name, spellCheck: false, placeholder: placeholder, defaultCountry: defaultCountry, className: "mantine-Input-input", type: "tel", "data-control": "tel" })))));
|
|
2467
2468
|
});
|
|
2468
2469
|
|
|
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
|
-
|
|
2529
2470
|
const formatLeadGenFormValue = (values, blocks) => {
|
|
2530
2471
|
const newValues = {};
|
|
2531
2472
|
for (const block of blocks) {
|
|
@@ -2874,22 +2815,17 @@ const TextField$1 = (props) => {
|
|
|
2874
2815
|
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
2875
2816
|
});
|
|
2876
2817
|
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
|
-
};
|
|
2884
2818
|
const onClick = useCallback((e) => {
|
|
2819
|
+
setShrink(true);
|
|
2820
|
+
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
2885
2821
|
if (shrink) {
|
|
2886
|
-
e.preventDefault();
|
|
2887
|
-
focusInput(e.currentTarget);
|
|
2888
2822
|
return;
|
|
2889
2823
|
}
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2824
|
+
const $textEl = e.currentTarget.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
2825
|
+
const $focusEl = $textEl.item($textEl.length - 1);
|
|
2826
|
+
if ($focusEl) {
|
|
2827
|
+
$focusEl.focus();
|
|
2828
|
+
}
|
|
2893
2829
|
}, [shrink]);
|
|
2894
2830
|
useEffect(() => {
|
|
2895
2831
|
setShrink(shrinkProps);
|
|
@@ -2902,6 +2838,44 @@ const ChoiceField$1 = (props) => {
|
|
|
2902
2838
|
return (React__default.createElement(StyledChoiceFieldContainer$1, Object.assign({ className: clsx(className, 'choiceField') }, restProps), children));
|
|
2903
2839
|
};
|
|
2904
2840
|
|
|
2841
|
+
const libraries = ['places'];
|
|
2842
|
+
const GoogleLocationBlock = (props) => {
|
|
2843
|
+
var _a;
|
|
2844
|
+
const { inputWrapperOrder = ['label', 'input', 'description', 'error'], defaultValue, value: valueProps, onChange: onChangeProps, locale } = props, restProps = __rest(props, ["inputWrapperOrder", "defaultValue", "value", "onChange", "locale"]);
|
|
2845
|
+
const [LoadScript, setLoadScript] = useState(null);
|
|
2846
|
+
const [value, setValue] = useState(defaultValue || valueProps);
|
|
2847
|
+
const { predictions } = usePlacesAutocomplete(value, '', locale === 'tl-PH' ? 'en' : (_a = locale === null || locale === void 0 ? void 0 : locale.split('-')) === null || _a === void 0 ? void 0 : _a[0]);
|
|
2848
|
+
const onChangeAutocomplete = useCallback((s) => {
|
|
2849
|
+
setValue(s);
|
|
2850
|
+
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(s);
|
|
2851
|
+
}, []);
|
|
2852
|
+
const onClickItem = useCallback((item) => {
|
|
2853
|
+
/** For sure get value */
|
|
2854
|
+
setValue(item.value);
|
|
2855
|
+
const predCur = predictions === null || predictions === void 0 ? void 0 : predictions.find(({ description }) => description === item.value);
|
|
2856
|
+
onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(item.value, predCur === null || predCur === void 0 ? void 0 : predCur.rawData);
|
|
2857
|
+
}, [onChangeProps, predictions]);
|
|
2858
|
+
useEffect(() => {
|
|
2859
|
+
setValue(valueProps);
|
|
2860
|
+
}, [valueProps]);
|
|
2861
|
+
useEffect(() => {
|
|
2862
|
+
var _a, _b, _c;
|
|
2863
|
+
// only load extra google script when not yet loaded
|
|
2864
|
+
if (!((_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.places) === null || _c === void 0 ? void 0 : _c.AutocompleteService) && !LoadScript) {
|
|
2865
|
+
import('@react-google-maps/api').then((m) => {
|
|
2866
|
+
setLoadScript(() => m.LoadScript);
|
|
2867
|
+
});
|
|
2868
|
+
}
|
|
2869
|
+
}, []);
|
|
2870
|
+
return (React__default.createElement(Autocomplete, Object.assign({ defaultValue: defaultValue, value: value, onChange: onChangeAutocomplete, data: predictions.map((pred) => {
|
|
2871
|
+
return { value: pred.description, label: pred.description };
|
|
2872
|
+
}), filter: () => true, onItemSubmit: onClickItem, inputWrapperOrder: inputWrapperOrder, zIndex: ZINDEX_SSO - 9e6 + 2, withinPortal: true, styles: { dropdown: { pointerEvents: 'auto' } }, inputContainer: (children) => {
|
|
2873
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2874
|
+
LoadScript && (React__default.createElement(LoadScript, { googleMapsApiKey: GOOGLE_API_KEY, libraries: libraries, loadingElement: React__default.createElement(React__default.Fragment, null), style: { width: '100%' } })),
|
|
2875
|
+
children));
|
|
2876
|
+
} }, restProps)));
|
|
2877
|
+
};
|
|
2878
|
+
|
|
2905
2879
|
const LeadGenForm = forwardRef((props, ref) => {
|
|
2906
2880
|
const { locale, blocks, scrollToErrorField = true, form: formProps, rules: validate, initialValues, onFinish, onFinishFailed, className, style, } = props;
|
|
2907
2881
|
const formRef = useRef(null);
|
|
@@ -2955,73 +2929,52 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
2955
2929
|
return (React__default.createElement("form", { ref: formRef, onSubmit: form.onSubmit(middlewareFinish, middlewareFinishFailed), className: className, style: style },
|
|
2956
2930
|
React__default.createElement(StyledLeadGenFormInner, { className: "leadgen-form_inputs" }, blocks.map((block, idx) => {
|
|
2957
2931
|
const { id, name: blockName, data } = block;
|
|
2958
|
-
const { placeholder
|
|
2932
|
+
const { placeholder, value: name, required, listQuestion, valueHTML, isSendMailChimp = false, } = data;
|
|
2959
2933
|
const formInputProps = form.getInputProps(name);
|
|
2960
2934
|
const { value, error } = formInputProps;
|
|
2961
2935
|
const reactKey = `${id}-${idx}`;
|
|
2962
2936
|
switch (blockName) {
|
|
2963
2937
|
case LEADGEN_BLOCK.TextBlock: {
|
|
2964
2938
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2965
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2939
|
+
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "text", "data-control": "text" }, formInputProps))));
|
|
2966
2940
|
}
|
|
2967
2941
|
case LEADGEN_BLOCK.NumberBlock: {
|
|
2968
2942
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2969
|
-
React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label:
|
|
2943
|
+
React__default.createElement(NumberInput$1, Object.assign({ name: value, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "number", "data-control": "number" }, formInputProps))));
|
|
2970
2944
|
}
|
|
2971
2945
|
case LEADGEN_BLOCK.EmailBlock: {
|
|
2972
2946
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2973
|
-
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2947
|
+
React__default.createElement(TextInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, "data-control": "email" }, formInputProps))));
|
|
2974
2948
|
}
|
|
2975
2949
|
case LEADGEN_BLOCK.PhoneOtpBlock:
|
|
2976
2950
|
case LEADGEN_BLOCK.WhatsappOtpBlock:
|
|
2977
2951
|
case LEADGEN_BLOCK.ZaloOtpBlock:
|
|
2978
2952
|
case LEADGEN_BLOCK.PhoneBlock: {
|
|
2979
2953
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2980
|
-
React__default.createElement(PhoneInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label:
|
|
2954
|
+
React__default.createElement(PhoneInput, Object.assign({ name: name, spellCheck: false, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), type: "text", "data-control": "tel" }, formInputProps))));
|
|
2981
2955
|
}
|
|
2982
2956
|
case LEADGEN_BLOCK.LocationBlock: {
|
|
2983
2957
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2984
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label:
|
|
2958
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ name: name, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, locale: locale, "data-control": "text" }, formInputProps))));
|
|
2985
2959
|
}
|
|
2986
2960
|
case LEADGEN_BLOCK.DateBlock: {
|
|
2987
2961
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
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:
|
|
2962
|
+
React__default.createElement(DateInput, Object.assign({ locale: (MAPPED_LOCALE === null || MAPPED_LOCALE === void 0 ? void 0 : MAPPED_LOCALE[locale]) || MAPPED_LOCALE['vi-VN'], valueFormat: "DD/MM/YYYY", name: name, withAsterisk: required, label: placeholder, placeholder: placeholder, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, type: "default", "data-control": "date" }, formInputProps))));
|
|
2989
2963
|
}
|
|
2990
2964
|
case LEADGEN_BLOCK.DropdownBlock:
|
|
2991
2965
|
return (React__default.createElement(TextField$1, { key: reactKey, shrink: !!value, className: "leadgen-form_input" },
|
|
2992
2966
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
2993
|
-
React__default.createElement(Select$1, Object.assign({ name: name, withAsterisk: required, label:
|
|
2967
|
+
React__default.createElement(Select$1, Object.assign({ name: name, withAsterisk: required, label: placeholder, placeholder: placeholder, data: listQuestion.map((l) => ({
|
|
2994
2968
|
value: l.value,
|
|
2995
2969
|
label: l.placeholder,
|
|
2996
|
-
}))
|
|
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))));
|
|
2970
|
+
})) }, formInputProps))));
|
|
3018
2971
|
case LEADGEN_BLOCK.CheckboxBlock: {
|
|
3019
2972
|
const formInputCheckboxProps = form.getInputProps(name, {
|
|
3020
2973
|
type: 'checkbox',
|
|
3021
2974
|
});
|
|
3022
2975
|
return (React__default.createElement(ChoiceField$1, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
3023
2976
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
3024
|
-
React__default.createElement(Checkbox$1.Group, Object.assign({ size: "md", withAsterisk: required, label:
|
|
2977
|
+
React__default.createElement(Checkbox$1.Group, Object.assign({ size: "md", withAsterisk: required, label: placeholder, value: value, sx: {
|
|
3025
2978
|
display: 'flex',
|
|
3026
2979
|
flexDirection: 'column',
|
|
3027
2980
|
flexWrap: 'wrap',
|
|
@@ -3033,7 +2986,7 @@ const LeadGenForm = forwardRef((props, ref) => {
|
|
|
3033
2986
|
case LEADGEN_BLOCK.RadioBlock: {
|
|
3034
2987
|
return (React__default.createElement(ChoiceField$1, { className: "leadgen-form_input leadgen-form_input_checkbox", key: reactKey },
|
|
3035
2988
|
isSendMailChimp && (React__default.createElement("div", { style: { display: 'none' }, "data-name": name + '-mailchimp' })),
|
|
3036
|
-
React__default.createElement(Radio$1.Group, Object.assign({ size: "md", withAsterisk: required, label:
|
|
2989
|
+
React__default.createElement(Radio$1.Group, Object.assign({ size: "md", withAsterisk: required, label: placeholder, value: value, spellCheck: true, inputWrapperOrder: LEADGEN_ORDER_INPUT_WRAPPER, inputContainer: (children) => {
|
|
3037
2990
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
3038
2991
|
} }, formInputProps), listQuestion.map((l, _index) => (React__default.createElement(Radio$1, { name: name, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
3039
2992
|
}
|
|
@@ -3652,182 +3605,6 @@ const useViewportDimensions = () => {
|
|
|
3652
3605
|
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3653
3606
|
};
|
|
3654
3607
|
|
|
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
|
-
|
|
3831
3608
|
const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkNewTab, linkText, image, }) => {
|
|
3832
3609
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
3833
3610
|
const { width: imageWidth, height: imageHeight, loaded: imageLoaded, } = useImageSize(image);
|
|
@@ -4197,7 +3974,6 @@ const StyledTextFieldContainer = styled.div `
|
|
|
4197
3974
|
outline: none !important;
|
|
4198
3975
|
border: none;
|
|
4199
3976
|
box-shadow: none;
|
|
4200
|
-
font-size: var(--input, 15px);
|
|
4201
3977
|
padding: 0 var(--phone-input-space-x, 8px);
|
|
4202
3978
|
opacity: 0;
|
|
4203
3979
|
color: ${theme.colors.gray800} !important;
|
|
@@ -4317,22 +4093,17 @@ const TextField = (props) => {
|
|
|
4317
4093
|
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(false);
|
|
4318
4094
|
});
|
|
4319
4095
|
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
|
-
};
|
|
4327
4096
|
const onClick = useCallback((e) => {
|
|
4097
|
+
setShrink(true);
|
|
4098
|
+
onChangeShrink === null || onChangeShrink === void 0 ? void 0 : onChangeShrink(true);
|
|
4328
4099
|
if (shrink) {
|
|
4329
|
-
e.preventDefault();
|
|
4330
|
-
focusInput(e.currentTarget);
|
|
4331
4100
|
return;
|
|
4332
4101
|
}
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4102
|
+
const $textEl = e.currentTarget.querySelectorAll('input:not([disabled]):not([type="submit"]),select:not([disabled]),textarea:not([disabled])');
|
|
4103
|
+
const $focusEl = $textEl.item($textEl.length - 1);
|
|
4104
|
+
if ($focusEl) {
|
|
4105
|
+
$focusEl.focus();
|
|
4106
|
+
}
|
|
4336
4107
|
}, [shrink]);
|
|
4337
4108
|
useEffect(() => {
|
|
4338
4109
|
setShrink(shrinkProps);
|
|
@@ -4359,7 +4130,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4359
4130
|
return (React__default.createElement(React__default.Fragment, null, listBlockAdded.map((b, index) => {
|
|
4360
4131
|
var _a;
|
|
4361
4132
|
const { name = '', data = {}, id } = b || {};
|
|
4362
|
-
const { placeholder
|
|
4133
|
+
const { placeholder, value, align, listQuestion, isSendMailChimp = false, newtab, url, } = data;
|
|
4363
4134
|
const required = (_a = data.required) !== null && _a !== void 0 ? _a : true;
|
|
4364
4135
|
const formValue = (formValues === null || formValues === void 0 ? void 0 : formValues[value]) || null;
|
|
4365
4136
|
switch (name) {
|
|
@@ -4369,23 +4140,23 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4369
4140
|
return (React__default.createElement(SubtitleBlock, { key: index, align: align }, value));
|
|
4370
4141
|
case 'TextBlock':
|
|
4371
4142
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4372
|
-
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder:
|
|
4143
|
+
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: placeholder,
|
|
4373
4144
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4374
4145
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4375
|
-
label:
|
|
4146
|
+
label: placeholder, "data-control": "text", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4376
4147
|
case 'NumberBlock':
|
|
4377
4148
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4378
|
-
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder:
|
|
4149
|
+
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: placeholder,
|
|
4379
4150
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4380
4151
|
// onChange={(e) => inputOnChange('number', e)}
|
|
4381
|
-
label:
|
|
4152
|
+
label: placeholder, "data-control": "number", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4382
4153
|
case 'EmailBlock':
|
|
4383
4154
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4384
4155
|
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4385
4156
|
// type="email"
|
|
4386
|
-
placeholder:
|
|
4157
|
+
placeholder: placeholder,
|
|
4387
4158
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4388
|
-
label:
|
|
4159
|
+
label: placeholder, "data-control": "email", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4389
4160
|
case 'PhoneOtpBlock':
|
|
4390
4161
|
case 'WhatsappOtpBlock':
|
|
4391
4162
|
case 'ZaloOtpBlock':
|
|
@@ -4395,19 +4166,19 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4395
4166
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: clsx('lead-modal__form-control leadgen-form_field', {
|
|
4396
4167
|
'leadgen-form_field_error': !!error,
|
|
4397
4168
|
}) },
|
|
4398
|
-
React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label:
|
|
4169
|
+
React__default.createElement(Input$1.Wrapper, { size: "md", withAsterisk: required, label: placeholder, "data-invalid": !!error, labelProps: { htmlFor: htmlForId }, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error },
|
|
4399
4170
|
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
4400
|
-
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder:
|
|
4171
|
+
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: placeholder,
|
|
4401
4172
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4402
4173
|
id: htmlForId, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel" }, formPhoneInputWrapper))))));
|
|
4403
4174
|
}
|
|
4404
4175
|
case 'LocationBlock': {
|
|
4405
4176
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4406
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder:
|
|
4177
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: placeholder, label: placeholder, "data-control": "text", locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4407
4178
|
}
|
|
4408
4179
|
case 'DateBlock': {
|
|
4409
4180
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = __rest(_c, ["error"]);
|
|
4410
|
-
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label:
|
|
4181
|
+
return (React__default.createElement(Input$1.Wrapper, { key: index, size: "md", withAsterisk: required, label: placeholder, "data-invalid": !!error, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error, className: "lead-modal__form-control leadgen-form_field" },
|
|
4411
4182
|
React__default.createElement(InputDate, Object.assign({ name: value, error: Boolean(error), locale: locale, "data-extra": true, "data-name": value, "data-control": "date", className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4412
4183
|
}
|
|
4413
4184
|
case 'LinkButtonBlock':
|
|
@@ -4424,7 +4195,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4424
4195
|
}, "data-name": value + '-mailchimp' })),
|
|
4425
4196
|
React__default.createElement(Checkbox.Group, Object.assign({ withAsterisk: required,
|
|
4426
4197
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4427
|
-
label:
|
|
4198
|
+
label: placeholder, size: "md", sx: {
|
|
4428
4199
|
display: 'flex',
|
|
4429
4200
|
flexDirection: 'column',
|
|
4430
4201
|
flexWrap: 'wrap',
|
|
@@ -4437,41 +4208,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4437
4208
|
isSendMailChimp && (React__default.createElement(Input$1, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
4438
4209
|
React__default.createElement(Radio.Group, Object.assign({ withAsterisk: required,
|
|
4439
4210
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4440
|
-
label:
|
|
4211
|
+
label: placeholder, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4441
4212
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4442
4213
|
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
4443
4214
|
case 'DropdownBlock':
|
|
4444
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field
|
|
4215
|
+
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field", key: index },
|
|
4445
4216
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
4446
4217
|
React__default.createElement(Select
|
|
4447
4218
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4448
4219
|
, Object.assign({
|
|
4449
4220
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4450
|
-
label:
|
|
4221
|
+
label: placeholder, placeholder: placeholder, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
4451
4222
|
value: l.value,
|
|
4452
4223
|
label: l.placeholder,
|
|
4453
|
-
})),
|
|
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)))));
|
|
4224
|
+
})) }, form.getInputProps(value)))));
|
|
4475
4225
|
case 'TncBlock':
|
|
4476
4226
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = __rest(_d, ["error"]);
|
|
4477
4227
|
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
@@ -4731,7 +4481,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4731
4481
|
const [open, setOpen] = useState(!!campaignId);
|
|
4732
4482
|
const [showOtpPhone, setShowOtpPhone] = useState(null);
|
|
4733
4483
|
const [isSubmitLoading, setIsSubmitLoading] = useState(false);
|
|
4734
|
-
|
|
4484
|
+
const [snap, setSnap] = useState(0.8);
|
|
4735
4485
|
const formRef = useRef();
|
|
4736
4486
|
const onClose = () => {
|
|
4737
4487
|
if (showOtpPhone) {
|
|
@@ -4801,46 +4551,10 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4801
4551
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4802
4552
|
const onFocus = (e) => {
|
|
4803
4553
|
e.preventDefault();
|
|
4804
|
-
|
|
4805
|
-
const
|
|
4806
|
-
|
|
4807
|
-
|
|
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
|
-
}
|
|
4554
|
+
setTimeout(() => {
|
|
4555
|
+
const target = e.target;
|
|
4556
|
+
target.scrollIntoView({ block: 'center', behavior: 'auto' });
|
|
4557
|
+
}, 300); // Wait a bit to let keyboard open
|
|
4844
4558
|
};
|
|
4845
4559
|
const middlewareOnSubmit = (e) => {
|
|
4846
4560
|
e.preventDefault();
|
|
@@ -4988,24 +4702,18 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4988
4702
|
'leadgen-inline': isInPage,
|
|
4989
4703
|
'leadgen-slider': isSlider,
|
|
4990
4704
|
});
|
|
4991
|
-
const PopupContainer = isDrawer ? (
|
|
4992
|
-
// <
|
|
4993
|
-
//
|
|
4994
|
-
//
|
|
4995
|
-
//
|
|
4996
|
-
//
|
|
4997
|
-
// setActiveSnapPoint={setSnap}
|
|
4998
|
-
// onOpenChange={onOpenChange}
|
|
4999
|
-
// overlayClassName={popupContainerClassName}
|
|
5000
|
-
// className="leadgen-drawer"
|
|
4705
|
+
const PopupContainer = isDrawer ? (
|
|
4706
|
+
// <LeadGenLightBoxB
|
|
4707
|
+
// form={form}
|
|
4708
|
+
// loading={isSubmitLoading}
|
|
4709
|
+
// visible={open}
|
|
4710
|
+
// onVisible={() => onOpenChange(false)}
|
|
5001
4711
|
// >
|
|
5002
4712
|
// {PopupWrapper}
|
|
5003
|
-
//
|
|
5004
|
-
|
|
5005
|
-
|
|
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 },
|
|
4713
|
+
// </LeadGenLightBoxB>
|
|
4714
|
+
React__default.createElement(DrawerComponent, { fadeFromIndex: ZINDEX_SSO - 9e6, open: open, snapPoints: [0.8, 1], activeSnapPoint: snap, setActiveSnapPoint: setSnap, onOpenChange: onOpenChange, overlayClassName: popupContainerClassName, className: "leadgen-drawer" },
|
|
4715
|
+
PopupWrapper,
|
|
4716
|
+
React__default.createElement("div", { style: { position: 'absolute', inset: 0, zIndex: snap === 1 ? -1 : 1 }, onClick: () => setSnap(1) }))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName, style: isMobile ? { maxHeight: height } : undefined },
|
|
5009
4717
|
isFullscreen ? (React__default.createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
5010
4718
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
5011
4719
|
} })) : null,
|