@hhgtech/hhg-components 1.29.343 → 1.29.344-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{LastPeriod-304cc191.js → LastPeriod-5dff357a.js} +1 -1
- package/build/{MobileBottomNavigationIcon-b85d1605.js → MobileBottomNavigationIcon-e726d2de.js} +3 -3
- package/build/{Spinner-49bac424.js → Spinner-9b3d39c3.js} +1 -1
- package/build/{WhatsApp-1cd8d4df.js → WhatsApp-1fc7872a.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +47 -47
- 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/navigationV2/components/molecules/navigationBar/index.styled.d.ts +2 -0
- package/build/components/navigationV2/hooks/useNavConfig.d.ts +1 -0
- package/build/components/navigationV2/types.d.ts +1 -1
- package/build/components.js +91 -91
- package/build/{constants-e44003d5.js → constants-eb5fd335.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-5483ea51.js → core-fdb250b9.js} +1 -1
- package/build/{dataTransform-c69ef5db.js → dataTransform-a46bd0a9.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-742b759d.js → editor-85028411.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/{LastPeriod-bf500978.js → LastPeriod-6ee310e9.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-8944ece4.js → MobileBottomNavigationIcon-8c3f5567.js} +3 -3
- package/build/esm/{Spinner-709ca6b9.js → Spinner-eb091d9c.js} +1 -1
- package/build/esm/{WhatsApp-0d9155f4.js → WhatsApp-5fc19684.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +47 -47
- 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/navigationV2/components/molecules/navigationBar/index.styled.d.ts +2 -0
- package/build/esm/components/navigationV2/hooks/useNavConfig.d.ts +1 -0
- package/build/esm/components/navigationV2/types.d.ts +1 -1
- package/build/esm/components.js +91 -91
- package/build/esm/{constants-cef86263.js → constants-e6a63c15.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-938ff907.js → core-5d8fdea3.js} +1 -1
- package/build/esm/{dataTransform-26b9f643.js → dataTransform-7f179367.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-2af44121.js → editor-c883368a.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/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks/useCSSFocusPopupHelper.d.ts +1 -0
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-44e0fdd4.js → index-035bc1ec.js} +15 -15
- package/build/esm/{index-91a2eccf.js → index-08ee45be.js} +3 -3
- package/build/esm/{index-e8d8a8b4.js → index-0d8c5b0f.js} +2 -2
- package/build/esm/{index-eac453b2.js → index-1360f2de.js} +1 -1
- package/build/esm/{index-5ef99f4b.js → index-1713a0e1.js} +24 -24
- package/build/esm/{index-edd98830.js → index-17ac735f.js} +1 -1
- package/build/esm/{index-77fec9d7.js → index-1b413ad9.js} +5 -5
- package/build/esm/{index-8edd6215.js → index-1c5a42dc.js} +4 -4
- package/build/esm/{index-f5b56512.js → index-1e62bc1d.js} +3 -3
- package/build/esm/{index-ac444850.js → index-27b94427.js} +2 -2
- package/build/esm/{index-a2be6a4e.js → index-2c1077a4.js} +24 -24
- package/build/esm/{index-99285f6d.js → index-30f6be79.js} +15 -15
- package/build/esm/{index-be81a626.js → index-336e6168.js} +16 -16
- package/build/esm/{index-f602bb13.js → index-3c6d1121.js} +13 -13
- package/build/esm/{index-240b7763.js → index-3d4d4456.js} +16 -16
- package/build/esm/{index-64b550b4.js → index-40e55859.js} +1 -1
- package/build/esm/{index-1e0c72b0.js → index-45f4da27.js} +31 -31
- package/build/esm/{index-8f8e96a0.js → index-4e05aff5.js} +18 -18
- package/build/esm/{index-9998f6bf.js → index-501e585d.js} +2 -2
- package/build/esm/{index-36914dd0.js → index-5226c12f.js} +2 -2
- package/build/esm/{index-dbdc359c.js → index-533d71b3.js} +16 -16
- package/build/esm/{index-c587e0f0.js → index-53acd19b.js} +2 -2
- package/build/esm/{index-2b3ccdf7.js → index-5876ca0e.js} +21 -21
- package/build/esm/{index-d1cfc060.js → index-5a78d3a3.js} +6 -6
- package/build/esm/{index-2e41ac6b.js → index-60383232.js} +12 -12
- package/build/esm/{index-eda60bb5.js → index-604f3c6b.js} +5 -5
- package/build/esm/{index-65bdc8df.js → index-6727fdf2.js} +16 -16
- package/build/esm/{index-5335d3d9.js → index-67e1486d.js} +2 -2
- package/build/esm/{index-d967ca78.js → index-6ab01743.js} +17 -17
- package/build/esm/{index-f6cf5e01.js → index-720d16b7.js} +13 -13
- package/build/esm/{index-9c2c33dc.js → index-7cf499e2.js} +2 -2
- package/build/esm/{index-85708071.js → index-7f61ef44.js} +2 -2
- package/build/esm/{index-067e0be1.js → index-926b6794.js} +1 -1
- package/build/esm/{index-b4c31a96.js → index-9288f210.js} +7 -7
- package/build/esm/{index-8591b22e.js → index-95f4797b.js} +3 -3
- package/build/esm/{index-f57e46cf.js → index-98d57734.js} +30 -30
- package/build/esm/{index-61ae34af.js → index-9cbb9490.js} +6 -6
- package/build/esm/{index-9a3e3fd8.js → index-9dd393f9.js} +68 -42
- package/build/esm/{index-c7543b04.js → index-a43ed922.js} +18 -11
- package/build/esm/{index-eb1fa728.js → index-a57eaf50.js} +2 -2
- package/build/esm/{index-7e6a1f56.js → index-a82d0bf6.js} +20 -20
- package/build/esm/{index-78d97aba.js → index-ad9437c2.js} +3 -3
- package/build/esm/{index-6cafc410.js → index-ae7b3ac0.js} +6 -6
- package/build/esm/{index-e4b6aa21.js → index-b76437f7.js} +18 -18
- package/build/esm/{index-c49ef076.js → index-cd3ecb0d.js} +1 -1
- package/build/esm/{index-4150ae7f.js → index-d023c95a.js} +13 -13
- package/build/esm/{index-d33dd701.js → index-d0e03136.js} +1 -1
- package/build/esm/{index-b0c80fc5.js → index-d38d6cf1.js} +6 -6
- package/build/esm/{index-8a426614.js → index-d8cbd450.js} +3 -3
- package/build/esm/{index-65dd888a.js → index-e6868b4d.js} +2 -2
- package/build/esm/{index-ba8ba659.js → index-e6cefe31.js} +3 -3
- package/build/esm/{index-7a9ed950.js → index-eae28d92.js} +2 -2
- package/build/esm/{index-fd8aa171.js → index-eb828ee9.js} +1 -1
- package/build/esm/{index-9cc1d754.js → index-efd620c5.js} +2 -2
- package/build/esm/{index-15d3f436.js → index-f49ca638.js} +7 -7
- package/build/esm/{index-5d84831b.js → index-f570ff76.js} +3 -3
- package/build/esm/{index-59b48bf1.js → index-f76edb1e.js} +17 -17
- package/build/esm/{index-67fadae7.js → index-f9976aa8.js} +2 -2
- package/build/esm/{index-7c65f196.js → index-fd7c6715.js} +18 -18
- package/build/esm/{index-2d69c8bb.js → index-fde759ed.js} +1 -1
- package/build/esm/{index-484e459e.js → index-fe80dcbb.js} +1 -1
- package/build/esm/{index-c4d47b77.js → index-feaff298.js} +13 -13
- package/build/esm/index.js +113 -113
- package/build/esm/{labelSorting-37f7aa83.js → labelSorting-ebc88787.js} +4 -4
- package/build/esm/lead/components/form/formContext.d.ts +3 -1
- package/build/esm/lead/components/index.d.ts +3 -2
- package/build/esm/lead/helpers.d.ts +3 -0
- package/build/esm/lead/index.d.ts +2 -0
- package/build/esm/lead/layouts/lightbox/formContext.d.ts +3 -1
- package/build/esm/lead/layouts/lightbox/index.d.ts +3 -2
- package/build/esm/lead/newLeadPopup.d.ts +3 -2
- package/build/esm/lead.js +105 -65
- package/build/esm/{logoIcon-5f337c82.js → logoIcon-0508f2cd.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +16 -16
- 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 +69 -69
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +40 -40
- 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 +44 -44
- package/build/esm/{post-b2b38759.js → post-464e4d7f.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 +48 -36
- package/build/esm/{store-96b76ace.js → store-5804ad9a.js} +4 -4
- package/build/esm/subot.js +33 -33
- package/build/esm/surveyOrPremiumBanner.js +31 -31
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-9bafbcd5.js → surveyThankyouCard-17b7192d.js} +5 -5
- package/build/esm/together.js +53 -53
- 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 +48 -48
- package/build/esm/togetherMoleculesCardAuthor.js +27 -27
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +37 -37
- package/build/esm/togetherOrganisms.js +47 -47
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{treePopoverMenu-0d6baa0d.js → treePopoverMenu-323549e3.js} +19 -19
- package/build/esm/{types-a586f061.js → types-0b7fae34.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-16f60353.js → useCategory-9edfeb26.js} +5 -5
- package/build/esm/{useHealthToolCache-ddc094ca.js → useHealthToolCache-ed4013e3.js} +1 -1
- package/build/esm/{useMantineLocale-19c891e6.js → useMantineLocale-850125d6.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-8c4362e3.js → usePlacesAutocomplete-e19b097d.js} +1 -1
- package/build/esm/{useScreenSize-fdb63765.js → useScreenSize-501097b1.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-063d5573.js → utils-965d1297.js} +2 -2
- package/build/esm/{utils-67076710.js → utils-ca8df74f.js} +3 -3
- package/build/esm/{utils-643ff46f.js → utils-e15c3562.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks/useCSSFocusPopupHelper.d.ts +1 -0
- package/build/hooks.js +13 -13
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-81e8c0de.js → index-07deabeb.js} +17 -17
- package/build/{index-1e983dd8.js → index-087c2d66.js} +13 -13
- package/build/{index-6029a01b.js → index-10d87307.js} +1 -1
- package/build/{index-843c271f.js → index-11e6ec13.js} +5 -5
- package/build/{index-5c246510.js → index-12c8584b.js} +2 -2
- package/build/{index-96d423c9.js → index-1adacd25.js} +2 -2
- package/build/{index-197fbeb3.js → index-1c012ebe.js} +3 -3
- package/build/{index-8699b66c.js → index-2487c567.js} +6 -6
- package/build/{index-2ac115e3.js → index-28a5acdf.js} +15 -15
- package/build/{index-8b1155ec.js → index-2aff4e40.js} +18 -18
- package/build/{index-2ce3e7bc.js → index-2f37516a.js} +21 -21
- package/build/{index-21a68306.js → index-32344460.js} +13 -13
- package/build/{index-1eb2ab08.js → index-3547d1e6.js} +13 -13
- package/build/{index-3929881f.js → index-3ab64b54.js} +18 -11
- package/build/{index-5c87f309.js → index-4a4ba8f9.js} +24 -24
- package/build/{index-01db0c7f.js → index-4aa63849.js} +6 -6
- package/build/{index-ec7dad8d.js → index-5a6ea59e.js} +2 -2
- package/build/{index-e5d6997a.js → index-5fef0a0a.js} +4 -4
- package/build/{index-25c93132.js → index-687cafb8.js} +2 -2
- package/build/{index-26a751d1.js → index-6da65365.js} +1 -1
- package/build/{index-9c04ee42.js → index-6f2c16f3.js} +3 -3
- package/build/{index-f71c2632.js → index-764292ac.js} +1 -1
- package/build/{index-e675f3a8.js → index-772de186.js} +1 -1
- package/build/{index-90640190.js → index-77b0812d.js} +18 -18
- package/build/{index-762bd00b.js → index-7a4d1835.js} +30 -30
- package/build/{index-7560a414.js → index-7a5fee57.js} +2 -2
- package/build/{index-56179009.js → index-7e1cda79.js} +6 -6
- package/build/{index-5428d8f8.js → index-80529d09.js} +16 -16
- package/build/{index-61c9257b.js → index-810bf2a1.js} +3 -3
- package/build/{index-6f8b7493.js → index-85ce4dd1.js} +1 -1
- package/build/{index-bdea9c15.js → index-8712a2dd.js} +7 -7
- package/build/{index-ae89ca58.js → index-8a41b3d6.js} +3 -3
- package/build/{index-a5faf07b.js → index-8ca0e720.js} +1 -1
- package/build/{index-fe163f2f.js → index-90d0f19f.js} +20 -20
- package/build/{index-ffe3b7c6.js → index-9190566f.js} +5 -5
- package/build/{index-1034f70f.js → index-9c2d7c0c.js} +2 -2
- package/build/{index-cf3b430b.js → index-9e902100.js} +1 -1
- package/build/{index-619a5616.js → index-9fcb4603.js} +18 -18
- package/build/{index-aab9eb54.js → index-a1a0a2a9.js} +2 -2
- package/build/{index-2f9eb4f9.js → index-a27fcbf6.js} +2 -2
- package/build/{index-9ecb90ef.js → index-a2a2f3b6.js} +7 -7
- package/build/{index-cbe52605.js → index-a7e12627.js} +3 -3
- package/build/{index-565abc24.js → index-a808fa03.js} +1 -1
- package/build/{index-1b3f97a8.js → index-afd783b8.js} +1 -1
- package/build/{index-a1657ef7.js → index-bb48665b.js} +2 -2
- package/build/{index-f6e9d263.js → index-c0b6cbd7.js} +6 -6
- package/build/{index-0ccd763b.js → index-ca1b6da5.js} +24 -24
- package/build/{index-cc793e43.js → index-d03306dd.js} +2 -2
- package/build/{index-c4d0951c.js → index-d0e3d781.js} +16 -16
- package/build/{index-a5969f59.js → index-d13bdd60.js} +16 -16
- package/build/{index-d06ebc65.js → index-d178a938.js} +12 -12
- package/build/{index-7c52ca31.js → index-d20c72d3.js} +2 -2
- package/build/{index-2d7676d9.js → index-d6800e15.js} +68 -42
- package/build/{index-ff3a5a51.js → index-d783fa52.js} +31 -31
- package/build/{index-bb3c2da0.js → index-dba4216f.js} +15 -15
- package/build/{index-2ccbc1f7.js → index-e47a6eab.js} +3 -3
- package/build/{index-6cd19d07.js → index-ea18e5c0.js} +2 -2
- package/build/{index-3d29b855.js → index-ea8a00aa.js} +16 -16
- package/build/{index-cbc9339c.js → index-ec8e58d9.js} +2 -2
- package/build/{index-40247059.js → index-f0bcdcef.js} +3 -3
- package/build/{index-e04fa64a.js → index-f697baca.js} +13 -13
- package/build/{index-8f8f8f64.js → index-f792d204.js} +17 -17
- package/build/index.js +113 -113
- package/build/{labelSorting-f9e8c405.js → labelSorting-35e7b4d1.js} +4 -4
- package/build/lead/components/form/formContext.d.ts +3 -1
- package/build/lead/components/index.d.ts +3 -2
- package/build/lead/helpers.d.ts +3 -0
- package/build/lead/index.d.ts +2 -0
- package/build/lead/layouts/lightbox/formContext.d.ts +3 -1
- package/build/lead/layouts/lightbox/index.d.ts +3 -2
- package/build/lead/newLeadPopup.d.ts +3 -2
- package/build/lead.js +104 -64
- package/build/{logoIcon-a2804db9.js → logoIcon-005dd68b.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +16 -16
- 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 +69 -69
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +40 -40
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +44 -44
- package/build/{post-e9324c25.js → post-3ce7da62.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 +47 -35
- package/build/{store-74a275aa.js → store-f22cb50f.js} +4 -4
- package/build/subot.js +32 -32
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-a7b7d3e9.js → surveyThankyouCard-e5ca22d5.js} +5 -5
- package/build/together.js +53 -53
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +48 -48
- package/build/togetherMoleculesCardAuthor.js +27 -27
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +37 -37
- package/build/togetherOrganisms.js +47 -47
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{treePopoverMenu-f295eadb.js → treePopoverMenu-79bb92cc.js} +19 -19
- package/build/{types-2a0bcd73.js → types-9525af19.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-e9764e9e.js → useCategory-c48fc415.js} +5 -5
- package/build/{useHealthToolCache-22128a90.js → useHealthToolCache-78ffd7b2.js} +1 -1
- package/build/{useMantineLocale-1f3267ee.js → useMantineLocale-ffe711ec.js} +6 -6
- package/build/{usePlacesAutocomplete-dbc4646f.js → usePlacesAutocomplete-ad4a6e5d.js} +1 -1
- package/build/{useScreenSize-829622f9.js → useScreenSize-cf15cc47.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-962e7eb5.js → utils-0aaf44ff.js} +2 -2
- package/build/{utils-54f5d5d6.js → utils-e29415a2.js} +2 -2
- package/build/{utils-ca452207.js → utils-e8fb0ba8.js} +3 -3
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-954dccf0.js → BMI_BOYS.percentile.monthly-8c9f6a20.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-f30ba705.js → BMI_BOYS.percentile.weekly-9e6669ce.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-2daea544.js → BMI_BOYS.percentile.yearly-490ae27c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-92a6e65e.js → BMI_BOYS.zscore.monthly-8afec292.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-834f4ced.js → BMI_BOYS.zscore.weekly-1d70df0d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-9cc8e8fd.js → BMI_BOYS.zscore.yearly-194adfbb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-698ac44b.js → BMI_GIRLS.percentile.monthly-be679825.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-062df9b3.js → BMI_GIRLS.percentile.weekly-811e7404.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-dc406020.js → BMI_GIRLS.percentile.yearly-31d0dacc.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-5a24ea71.js → BMI_GIRLS.zscore.monthly-60ff7ba8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-6d1f91fc.js → BMI_GIRLS.zscore.weekly-003c14ed.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-507fe396.js → BMI_GIRLS.zscore.yearly-7d64b57d.js} +0 -0
- /package/build/{ChevronDown-7820ec61.js → ChevronDown-4d4ac6e7.js} +0 -0
- /package/build/{Close-6a2ba15a.js → Close-74eccdd3.js} +0 -0
- /package/build/{Google-f5f20be0.js → Google-c47033eb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5ba4c958.js → HEAD CIRCUM_BOYS.percentile.monthly-b07097aa.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-6dd20a60.js → HEAD CIRCUM_BOYS.percentile.weekly-41105e14.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-d2cac553.js → HEAD CIRCUM_BOYS.percentile.yearly-0457fce2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-5739733c.js → HEAD CIRCUM_BOYS.zscore.monthly-8fc076e5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-abb49e95.js → HEAD CIRCUM_BOYS.zscore.weekly-bc5715b4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-30adac4a.js → HEAD CIRCUM_BOYS.zscore.yearly-b1a8f069.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-624d5eda.js → HEAD CIRCUM_GIRLS.percentile.monthly-04c1b685.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b26469ff.js → HEAD CIRCUM_GIRLS.percentile.weekly-813e06d8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-eb6fd80b.js → HEAD CIRCUM_GIRLS.percentile.yearly-00f236c5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-09f79658.js → HEAD CIRCUM_GIRLS.zscore.monthly-b6147537.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b07835a7.js → HEAD CIRCUM_GIRLS.zscore.weekly-18fb4230.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3db48124.js → HEAD CIRCUM_GIRLS.zscore.yearly-df9f95e8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-1c768c4d.js → HEIGHT_BOYS.percentile.monthly-875b13ab.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-e9c01ed7.js → HEIGHT_BOYS.percentile.weekly-629978e2.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-a7e259a3.js → HEIGHT_BOYS.percentile.yearly-9904eda8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-ff2071c3.js → HEIGHT_BOYS.zscore.monthly-baff1b96.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-e6cdd367.js → HEIGHT_BOYS.zscore.weekly-29d7a9b1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-dfeed6aa.js → HEIGHT_BOYS.zscore.yearly-1648af58.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-a1bd4e9a.js → HEIGHT_GIRLS.percentile.monthly-db96d2d1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-edc25bbf.js → HEIGHT_GIRLS.percentile.weekly-a203c8a1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-a7a96cbe.js → HEIGHT_GIRLS.percentile.yearly-b701a1d7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-a2fa4bf5.js → HEIGHT_GIRLS.zscore.monthly-b24f3dc0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-b1ee6345.js → HEIGHT_GIRLS.zscore.weekly-c7d46f18.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-b9b63a16.js → HEIGHT_GIRLS.zscore.yearly-b66b0820.js} +0 -0
- /package/build/{Locale-a02bbc2a.js → Locale-d1dcc266.js} +0 -0
- /package/build/{Visible-b0b66c9d.js → Visible-90d65efc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-d6a311b3.js → WEIGHT_BOYS.percentile.monthly-0e4204b9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-132f3b22.js → WEIGHT_BOYS.percentile.weekly-7ae563ae.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-24f118f1.js → WEIGHT_BOYS.percentile.yearly-02de9e57.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-81b0fd10.js → WEIGHT_BOYS.zscore.monthly-adba5d23.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-38bcdea1.js → WEIGHT_BOYS.zscore.weekly-b475e144.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-6547309d.js → WEIGHT_BOYS.zscore.yearly-3676607c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-bc8584aa.js → WEIGHT_GIRLS.percentile.monthly-cd65514c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-619c6760.js → WEIGHT_GIRLS.percentile.weekly-39659d99.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-18dd2b2e.js → WEIGHT_GIRLS.percentile.yearly-42794a89.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-c56e26ff.js → WEIGHT_GIRLS.zscore.monthly-e710ee4a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-64fffb64.js → WEIGHT_GIRLS.zscore.weekly-a703c1e0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-912edcc0.js → WEIGHT_GIRLS.zscore.yearly-dbbad39d.js} +0 -0
- /package/build/{animation-4d7ea86c.js → animation-6fc06f01.js} +0 -0
- /package/build/{constants-c01829ea.js → constants-2043fdff.js} +0 -0
- /package/build/{constants-e47a1e86.js → constants-8d1654a2.js} +0 -0
- /package/build/{constants-8b10b19d.js → constants-95e980e5.js} +0 -0
- /package/build/{dataTransform-8bf74aab.js → dataTransform-08971fd0.js} +0 -0
- /package/build/{doctor-08136eef.js → doctor-22c963e4.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-65bfaf32.js → BMI_BOYS.percentile.monthly-0cdf8a3e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-5eb329e2.js → BMI_BOYS.percentile.weekly-62a4687a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-db070482.js → BMI_BOYS.percentile.yearly-1e74b649.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-087bfb31.js → BMI_BOYS.zscore.monthly-ac5ced65.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-388797af.js → BMI_BOYS.zscore.weekly-5d55818d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-38cac998.js → BMI_BOYS.zscore.yearly-e59590f7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-d6ebeacb.js → BMI_GIRLS.percentile.monthly-c0abe544.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-d84a53a7.js → BMI_GIRLS.percentile.weekly-76073e98.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-281fc04f.js → BMI_GIRLS.percentile.yearly-735ef55c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-86006aa6.js → BMI_GIRLS.zscore.monthly-5ff15fe7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-43ccf401.js → BMI_GIRLS.zscore.weekly-5996455b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-52a522b8.js → BMI_GIRLS.zscore.yearly-72c135a5.js} +0 -0
- /package/build/esm/{ChevronDown-da0beccb.js → ChevronDown-2f6ef9ee.js} +0 -0
- /package/build/esm/{Close-e79a04cc.js → Close-4d730645.js} +0 -0
- /package/build/esm/{Google-285fa3ae.js → Google-36c61129.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-05bc6559.js → HEAD CIRCUM_BOYS.percentile.monthly-260f9263.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-a73b144f.js → HEAD CIRCUM_BOYS.percentile.weekly-7f8c6399.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-347aeb65.js → HEAD CIRCUM_BOYS.percentile.yearly-ca2fe4cc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-bc829992.js → HEAD CIRCUM_BOYS.zscore.monthly-1afd34fc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-f33d258a.js → HEAD CIRCUM_BOYS.zscore.weekly-612b5b37.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-8537f596.js → HEAD CIRCUM_BOYS.zscore.yearly-ffb75f8b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-5f9f57f9.js → HEAD CIRCUM_GIRLS.percentile.monthly-00abc33e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-abf55b5b.js → HEAD CIRCUM_GIRLS.percentile.weekly-b956ec66.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-362af6f6.js → HEAD CIRCUM_GIRLS.percentile.yearly-9632a1f3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-45809109.js → HEAD CIRCUM_GIRLS.zscore.monthly-b682bfe8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3ff25304.js → HEAD CIRCUM_GIRLS.zscore.weekly-8eacca0d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-9ff36c49.js → HEAD CIRCUM_GIRLS.zscore.yearly-7e25a01a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-535672a5.js → HEIGHT_BOYS.percentile.monthly-dcc14fe8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-355bbb50.js → HEIGHT_BOYS.percentile.weekly-3df11a71.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-0c66b3a8.js → HEIGHT_BOYS.percentile.yearly-6c2b560c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b896b3db.js → HEIGHT_BOYS.zscore.monthly-3b6eda27.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-9b9c43b9.js → HEIGHT_BOYS.zscore.weekly-5bd267d2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f98d61e1.js → HEIGHT_BOYS.zscore.yearly-2e95b95b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-3d1c4b42.js → HEIGHT_GIRLS.percentile.monthly-0aa33c53.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-3158dafb.js → HEIGHT_GIRLS.percentile.weekly-c4ee6adc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-0ab836c1.js → HEIGHT_GIRLS.percentile.yearly-d8552f25.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-55422516.js → HEIGHT_GIRLS.zscore.monthly-f7caa3fd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-76ef39ee.js → HEIGHT_GIRLS.zscore.weekly-bcbf7eb3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-7cb0421d.js → HEIGHT_GIRLS.zscore.yearly-38d952f9.js} +0 -0
- /package/build/esm/{Locale-2342195e.js → Locale-4b56a605.js} +0 -0
- /package/build/esm/{Visible-7bf25b68.js → Visible-d00ae98b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-2baff03a.js → WEIGHT_BOYS.percentile.monthly-b298f3c5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-aa69fd3e.js → WEIGHT_BOYS.percentile.weekly-e87efb5f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-359eea59.js → WEIGHT_BOYS.percentile.yearly-df0f49b7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-32168d19.js → WEIGHT_BOYS.zscore.monthly-190d275e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-2fa3d21d.js → WEIGHT_BOYS.zscore.weekly-6bda35f1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-855a52a0.js → WEIGHT_BOYS.zscore.yearly-f1bb4914.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2dc93062.js → WEIGHT_GIRLS.percentile.monthly-9135b407.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-68b43ec1.js → WEIGHT_GIRLS.percentile.weekly-8fda37b2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-1d60cab6.js → WEIGHT_GIRLS.percentile.yearly-2ae9997c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0c16de7b.js → WEIGHT_GIRLS.zscore.monthly-fab6ca52.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-15816e9f.js → WEIGHT_GIRLS.zscore.weekly-17d8775b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-443eb52e.js → WEIGHT_GIRLS.zscore.yearly-28c9d98d.js} +0 -0
- /package/build/esm/{animation-6e0cbd64.js → animation-ff53f61f.js} +0 -0
- /package/build/esm/{constants-96119869.js → constants-3ce85bec.js} +0 -0
- /package/build/esm/{constants-11e4d3c2.js → constants-b2b36e80.js} +0 -0
- /package/build/esm/{constants-2cadb127.js → constants-dc14269d.js} +0 -0
- /package/build/esm/{dataTransform-35e0f5ef.js → dataTransform-a0f97659.js} +0 -0
- /package/build/esm/{doctor-2d4b6823.js → doctor-c9957c60.js} +0 -0
- /package/build/esm/{index-bb8e1155.js → index-0161dbda.js} +0 -0
- /package/build/esm/{index-312b80e5.js → index-47f93128.js} +0 -0
- /package/build/esm/{index-b29d2819.js → index-7b74ca32.js} +0 -0
- /package/build/esm/{index-3a4052c7.js → index-830c091f.js} +0 -0
- /package/build/esm/{index-b05b9d7a.js → index-88de98db.js} +0 -0
- /package/build/esm/{index-521a997e.js → index-9df99a81.js} +0 -0
- /package/build/esm/{index-dcd89642.js → index-ab7941ba.js} +0 -0
- /package/build/esm/{index-0518d529.js → index-f510a459.js} +0 -0
- /package/build/esm/{index-f3277a5c.js → index-fddd0a7f.js} +0 -0
- /package/build/esm/{index.styles-0fb6722d.js → index.styles-96f9e18e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-3ab8c369.js → localizeNumberFormat-18165d09.js} +0 -0
- /package/build/esm/{normalizeLink-cd53b9d6.js → normalizeLink-283fcb7b.js} +0 -0
- /package/build/esm/{other-6ba313a1.js → other-7fd66ceb.js} +0 -0
- /package/build/esm/{paths-b05ee12a.js → paths-b47d3612.js} +0 -0
- /package/build/esm/{translationsContext-1afbf924.js → translationsContext-a4d5ef98.js} +0 -0
- /package/build/esm/{tslib.es6-69e90f6a.js → tslib.es6-46bc9308.js} +0 -0
- /package/build/esm/{types-247f9176.js → types-05ae7d64.js} +0 -0
- /package/build/esm/{useIsInit-959d29f5.js → useIsInit-e4818906.js} +0 -0
- /package/build/esm/{useOutsideClick-5f6e7dc6.js → useOutsideClick-ed80433d.js} +0 -0
- /package/build/esm/{useScrollbarSize-eeafb87f.js → useScrollbarSize-dda09249.js} +0 -0
- /package/build/esm/{useUniqueId-8ea18781.js → useUniqueId-924f27a7.js} +0 -0
- /package/build/esm/{utils-fd96839b.js → utils-2ed3ab9a.js} +0 -0
- /package/build/{index-f8d0223d.js → index-4ec13838.js} +0 -0
- /package/build/{index-f5793751.js → index-8fbea5d8.js} +0 -0
- /package/build/{index-95dcdc49.js → index-91ee72e6.js} +0 -0
- /package/build/{index-819262c1.js → index-9754029b.js} +0 -0
- /package/build/{index-24ce8087.js → index-ad8ecb32.js} +0 -0
- /package/build/{index-5cf20542.js → index-ae3cbd75.js} +0 -0
- /package/build/{index-67502390.js → index-cfa29a85.js} +0 -0
- /package/build/{index-be98edaf.js → index-dec72c3d.js} +0 -0
- /package/build/{index-cec80035.js → index-fb0a391d.js} +0 -0
- /package/build/{index.styles-01fbdd8b.js → index.styles-31234eab.js} +0 -0
- /package/build/{localizeNumberFormat-34737d62.js → localizeNumberFormat-41073043.js} +0 -0
- /package/build/{normalizeLink-510ecf87.js → normalizeLink-1ed384a8.js} +0 -0
- /package/build/{other-fac3524f.js → other-0641ac17.js} +0 -0
- /package/build/{paths-53476d41.js → paths-c0121342.js} +0 -0
- /package/build/{translationsContext-62c8a5cd.js → translationsContext-d98fb79b.js} +0 -0
- /package/build/{tslib.es6-12078094.js → tslib.es6-b5687cee.js} +0 -0
- /package/build/{types-e9f79dcc.js → types-4a0a5b21.js} +0 -0
- /package/build/{useIsInit-1aa04459.js → useIsInit-0d4ce04b.js} +0 -0
- /package/build/{useOutsideClick-3cb22098.js → useOutsideClick-fdb296be.js} +0 -0
- /package/build/{useScrollbarSize-ad85056f.js → useScrollbarSize-82908afd.js} +0 -0
- /package/build/{useUniqueId-12fc7e1b.js → useUniqueId-34a9aa74.js} +0 -0
- /package/build/{utils-495e1f78.js → utils-19882009.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { LOCALE } from "../interfaces/types";
|
|
3
|
-
export declare const NewLeadPopup: ({ campaign, action, onSubmit, onClose, showThankyou, locale, showEmpty, setShowEmpty, }: {
|
|
2
|
+
import { LOCALE, UserInfo } from "../interfaces/types";
|
|
3
|
+
export declare const NewLeadPopup: ({ campaign, action, onSubmit, onClose, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }: {
|
|
4
4
|
campaign: any;
|
|
5
5
|
action?: string;
|
|
6
6
|
onSubmit?: (currentForm: HTMLFormElement, values?: Record<string, any>, categoryLevel?: number, categoryData?: {
|
|
@@ -23,4 +23,5 @@ export declare const NewLeadPopup: ({ campaign, action, onSubmit, onClose, showT
|
|
|
23
23
|
locale?: LOCALE;
|
|
24
24
|
showEmpty?: boolean;
|
|
25
25
|
setShowEmpty?: Dispatch<SetStateAction<boolean>>;
|
|
26
|
+
userInfo?: UserInfo | null;
|
|
26
27
|
}) => React.JSX.Element;
|
package/build/esm/lead.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
2
|
-
import React__default, { createContext,
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-46bc9308.js';
|
|
2
|
+
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback } from 'react';
|
|
3
3
|
import { createStyles, Box, Autocomplete, clsx, Input as Input$1, TextInput, NumberInput as NumberInput$1, Button as Button$2, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import debounce from 'lodash/debounce';
|
|
6
6
|
import { createFormContext } from '@mantine/form';
|
|
7
|
-
import { u as useTranslations } from './index-
|
|
8
|
-
import { T as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { u as useTranslations } from './index-17ac735f.js';
|
|
8
|
+
import { T as TranslationsContext } from './translationsContext-a4d5ef98.js';
|
|
9
|
+
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
10
|
+
import { b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-2ed3ab9a.js';
|
|
11
|
+
import { T as Text } from './index-53acd19b.js';
|
|
12
|
+
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput } from './index-60383232.js';
|
|
13
|
+
import { D as DatePicker } from './index-d38d6cf1.js';
|
|
14
|
+
import { M as MAPPED_LOCALE } from './utils-965d1297.js';
|
|
12
15
|
import '@mantine/dates';
|
|
13
|
-
import { Z as ZINDEX_SSO } from './index-
|
|
14
|
-
import './index-
|
|
15
|
-
import { C as CommonGAssets } from './index-
|
|
16
|
-
import './useMantineLocale-
|
|
17
|
-
import { B as Button$1 } from './index-
|
|
18
|
-
import './index.styles-
|
|
19
|
-
import { T as TranslationsContext } from './translationsContext-1afbf924.js';
|
|
16
|
+
import { Z as ZINDEX_SSO } from './index-27b94427.js';
|
|
17
|
+
import './index-926b6794.js';
|
|
18
|
+
import { C as CommonGAssets } from './index-830c091f.js';
|
|
19
|
+
import './useMantineLocale-850125d6.js';
|
|
20
|
+
import { B as Button$1 } from './index-eb828ee9.js';
|
|
21
|
+
import './index.styles-96f9e18e.js';
|
|
20
22
|
import { useClickOutside } from '@mantine/hooks';
|
|
21
|
-
import
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { H as Heading$1 } from './index-9c2c33dc.js';
|
|
23
|
+
import './other-7fd66ceb.js';
|
|
24
|
+
import './index-d8cbd450.js';
|
|
25
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-e19b097d.js';
|
|
26
|
+
import { B as Button } from './index-f9976aa8.js';
|
|
27
|
+
import { H as Heading$1 } from './index-7cf499e2.js';
|
|
27
28
|
import { v1 } from 'uuid';
|
|
28
|
-
import { i as isVideo } from './index-
|
|
29
|
-
import { D as DrawerComponent } from './index-
|
|
30
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
29
|
+
import { i as isVideo } from './index-9df99a81.js';
|
|
30
|
+
import { D as DrawerComponent } from './index-5226c12f.js';
|
|
31
|
+
import { u as useScreenSize } from './useScreenSize-501097b1.js';
|
|
31
32
|
import { createPortal } from 'react-dom';
|
|
32
33
|
import { css } from '@emotion/react';
|
|
33
34
|
import styled from '@emotion/styled';
|
|
34
35
|
import { theme } from './miscTheme.js';
|
|
35
|
-
import {
|
|
36
|
-
import { C as Close } from './Close-e79a04cc.js';
|
|
36
|
+
import { C as Close } from './Close-4d730645.js';
|
|
37
37
|
import '@hhgtech/icons/other';
|
|
38
38
|
import '@mantine/carousel';
|
|
39
|
-
import './Locale-
|
|
39
|
+
import './Locale-4b56a605.js';
|
|
40
40
|
import 'classnames';
|
|
41
|
-
import './useUniqueId-
|
|
41
|
+
import './useUniqueId-924f27a7.js';
|
|
42
42
|
import './constantsSite.js';
|
|
43
43
|
import '@hhgtech/icons/core';
|
|
44
44
|
import 'date-fns/locale';
|
|
@@ -135,6 +135,42 @@ const LEAD_TIMEZONE_DATA = {
|
|
|
135
135
|
9: 'Asia/Manila', // Philippines / Filipinos Site
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
+
const SSO_MAP_LEAD = ['name', 'email', 'birthday', 'phone', 'gender'];
|
|
139
|
+
const mappingSSOToLead = (userInfoProps) => {
|
|
140
|
+
try {
|
|
141
|
+
const { id, area_code } = userInfoProps;
|
|
142
|
+
if (!userInfoProps || !id) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const user = {};
|
|
146
|
+
for (const ssoKey of SSO_MAP_LEAD) {
|
|
147
|
+
if (ssoKey in userInfoProps &&
|
|
148
|
+
typeof (userInfoProps === null || userInfoProps === void 0 ? void 0 : userInfoProps[ssoKey]) !== 'undefined') {
|
|
149
|
+
const initValue = userInfoProps[ssoKey];
|
|
150
|
+
if (ssoKey === 'birthday') {
|
|
151
|
+
const dob = dayjs(initValue, 'YYYY-MM-DD', true);
|
|
152
|
+
if (dob.isValid()) {
|
|
153
|
+
user.birthday = dob;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
else if (ssoKey === 'gender') {
|
|
157
|
+
user.gender = initValue.toString();
|
|
158
|
+
}
|
|
159
|
+
else if (ssoKey === 'phone' && typeof area_code !== 'undefined') {
|
|
160
|
+
user.phone = area_code + initValue;
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
user[ssoKey] = initValue;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return Object.values(user).length ? user : undefined;
|
|
168
|
+
}
|
|
169
|
+
catch (error) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
138
174
|
class Store {
|
|
139
175
|
constructor() {
|
|
140
176
|
this.apiLeadUrl = 'https://dev.leadgen.hellobacsi.com/';
|
|
@@ -353,8 +389,9 @@ const clearCacheUsedEmailOrPhone = () => {
|
|
|
353
389
|
|
|
354
390
|
// You can give context variables any name
|
|
355
391
|
const [LeadFormProvider$1, useLeadFormContext$1, useLeadForm$1] = createFormContext();
|
|
356
|
-
const useLeadFormConfig$1 = ({ listBlockAdded = [], validatingPhoneRef, validatingEmailRef, campaignId, campaign_subot_id = [], }) => {
|
|
392
|
+
const useLeadFormConfig$1 = ({ listBlockAdded = [], validatingPhoneRef, validatingEmailRef, campaignId, campaign_subot_id = [], userInfo: userInfoProps, }) => {
|
|
357
393
|
const { t } = useTranslations();
|
|
394
|
+
const initialValues = useMemo(() => mappingSSOToLead(userInfoProps), [userInfoProps === null || userInfoProps === void 0 ? void 0 : userInfoProps.id]);
|
|
358
395
|
useEffect(() => {
|
|
359
396
|
if (!window.intlTelInputUtils) {
|
|
360
397
|
require('intl-tel-input/build/js/utils');
|
|
@@ -514,13 +551,14 @@ const useLeadFormConfig$1 = ({ listBlockAdded = [], validatingPhoneRef, validati
|
|
|
514
551
|
validateInputOnChange: true,
|
|
515
552
|
clearInputErrorOnChange: true,
|
|
516
553
|
validate: validateObj,
|
|
554
|
+
initialValues,
|
|
517
555
|
});
|
|
518
556
|
const formRef = useRef(form);
|
|
519
557
|
formRef.current = form;
|
|
520
558
|
return { form, validateObj };
|
|
521
559
|
};
|
|
522
560
|
|
|
523
|
-
const Component = ({ campaign, onClose: onCloseProp, onOtherSubmit, onSubmit, showThankyou, setShowThankyou, locale, children, showEmpty, setShowEmpty, }) => {
|
|
561
|
+
const Component = ({ campaign, onClose: onCloseProp, onOtherSubmit, onSubmit, showThankyou, setShowThankyou, locale, children, showEmpty, setShowEmpty, userInfo, }) => {
|
|
524
562
|
var _a, _b;
|
|
525
563
|
const extraFields = campaign.extra_fields;
|
|
526
564
|
const campaignId = campaign.id;
|
|
@@ -538,6 +576,7 @@ const Component = ({ campaign, onClose: onCloseProp, onOtherSubmit, onSubmit, sh
|
|
|
538
576
|
validatingEmailRef,
|
|
539
577
|
campaignId,
|
|
540
578
|
campaign_subot_id,
|
|
579
|
+
userInfo,
|
|
541
580
|
});
|
|
542
581
|
const [showOtpPhone, setShowOtpPhone] = useState(null);
|
|
543
582
|
const [formRef, setFormRef] = useState(null);
|
|
@@ -1547,8 +1586,9 @@ const GoogleLocation = (props) => {
|
|
|
1547
1586
|
|
|
1548
1587
|
// You can give context variables any name
|
|
1549
1588
|
const [LeadFormProvider, useLeadFormContext, useLeadForm] = createFormContext();
|
|
1550
|
-
const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validatingEmailRef, campaignId, campaign_subot_id = [], }) => {
|
|
1589
|
+
const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validatingEmailRef, campaignId, campaign_subot_id = [], userInfo: userInfoProps, }) => {
|
|
1551
1590
|
const { t } = useTranslations();
|
|
1591
|
+
const initialValues = useMemo(() => mappingSSOToLead(userInfoProps), [userInfoProps === null || userInfoProps === void 0 ? void 0 : userInfoProps.id]);
|
|
1552
1592
|
const validateObj = useMemo(() => {
|
|
1553
1593
|
const InputBlocks = [
|
|
1554
1594
|
'TextBlock',
|
|
@@ -1704,6 +1744,7 @@ const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validating
|
|
|
1704
1744
|
validateInputOnChange: true,
|
|
1705
1745
|
clearInputErrorOnChange: true,
|
|
1706
1746
|
validate: validateObj,
|
|
1747
|
+
initialValues,
|
|
1707
1748
|
});
|
|
1708
1749
|
const formRef = useRef(form);
|
|
1709
1750
|
formRef.current = form;
|
|
@@ -2053,7 +2094,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
2053
2094
|
const formValues = form.values;
|
|
2054
2095
|
return (React__default.createElement(React__default.Fragment, null, listBlockAdded.map((b, index) => {
|
|
2055
2096
|
var _a;
|
|
2056
|
-
const { name = '', data = {} } = b || {};
|
|
2097
|
+
const { name = '', data = {}, id } = b || {};
|
|
2057
2098
|
const { placeholder, value, align, listQuestion, isSendMailChimp = false, newtab, url, } = data;
|
|
2058
2099
|
const required = (_a = data.required) !== null && _a !== void 0 ? _a : true;
|
|
2059
2100
|
const formValue = (formValues === null || formValues === void 0 ? void 0 : formValues[value]) || null;
|
|
@@ -2063,20 +2104,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
2063
2104
|
case 'SubtitleBlock':
|
|
2064
2105
|
return (React__default.createElement(SubtitleBlock, { key: index, align: align }, value));
|
|
2065
2106
|
case 'TextBlock':
|
|
2066
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2067
|
-
React__default.createElement(TextInput, Object.assign({
|
|
2107
|
+
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2108
|
+
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: placeholder,
|
|
2068
2109
|
// className="lead-modal__form-control leadgen-form_field"
|
|
2069
2110
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
2070
2111
|
label: placeholder, "data-control": "text", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
2071
2112
|
case 'NumberBlock':
|
|
2072
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2073
|
-
React__default.createElement(NumberInput$1, Object.assign({
|
|
2113
|
+
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2114
|
+
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: placeholder,
|
|
2074
2115
|
// className="lead-modal__form-control leadgen-form_field"
|
|
2075
2116
|
// onChange={(e) => inputOnChange('number', e)}
|
|
2076
2117
|
label: placeholder, "data-control": "number", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
2077
2118
|
case 'EmailBlock':
|
|
2078
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2079
|
-
React__default.createElement(TextInput, Object.assign({
|
|
2119
|
+
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2120
|
+
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
2080
2121
|
// type="email"
|
|
2081
2122
|
placeholder: placeholder,
|
|
2082
2123
|
// className="lead-modal__form-control leadgen-form_field"
|
|
@@ -2085,28 +2126,24 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
2085
2126
|
case 'WhatsappOtpBlock':
|
|
2086
2127
|
case 'ZaloOtpBlock':
|
|
2087
2128
|
case 'PhoneBlock': {
|
|
2088
|
-
const
|
|
2129
|
+
const htmlForId = popupId + '-' + value + '-' + index;
|
|
2089
2130
|
const _b = form.getInputProps(value), { error } = _b, formPhoneInputWrapper = __rest(_b, ["error"]);
|
|
2090
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: clsx('lead-modal__form-control leadgen-form_field', {
|
|
2131
|
+
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: clsx('lead-modal__form-control leadgen-form_field', {
|
|
2091
2132
|
'leadgen-form_field_error': !!error,
|
|
2092
2133
|
}) },
|
|
2093
|
-
React__default.createElement(Input$1.Wrapper,
|
|
2094
|
-
htmlFor: id,
|
|
2095
|
-
}, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, formPhoneInputWrapper, { error: error }),
|
|
2134
|
+
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 },
|
|
2096
2135
|
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
2097
|
-
React__default.createElement(Phone, { className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: placeholder,
|
|
2098
|
-
form.setFieldValue(value, v);
|
|
2099
|
-
},
|
|
2136
|
+
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: placeholder,
|
|
2100
2137
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
2101
|
-
id:
|
|
2138
|
+
id: htmlForId, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel" }, formPhoneInputWrapper))))));
|
|
2102
2139
|
}
|
|
2103
2140
|
case 'LocationBlock': {
|
|
2104
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2105
|
-
React__default.createElement(GoogleLocation, Object.assign({ withAsterisk: required,
|
|
2141
|
+
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2142
|
+
React__default.createElement(GoogleLocation, Object.assign({ withAsterisk: required, name: value, placeholder: placeholder, label: placeholder, "data-control": "text", locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
2106
2143
|
}
|
|
2107
2144
|
case 'DateBlock':
|
|
2108
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2109
|
-
React__default.createElement(DatePicker, Object.assign({ clearable: true, withAsterisk: required,
|
|
2145
|
+
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2146
|
+
React__default.createElement(DatePicker, Object.assign({ clearable: true, withAsterisk: required, type: "default", name: value, placeholder: placeholder, label: placeholder, inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
2110
2147
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2111
2148
|
children,
|
|
2112
2149
|
React__default.createElement("input", { type: "hidden", "data-control": "date", name: value, value: formValue })));
|
|
@@ -2119,13 +2156,13 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
2119
2156
|
onOtherSubmit === null || onOtherSubmit === void 0 ? void 0 : onOtherSubmit();
|
|
2120
2157
|
} }, value))));
|
|
2121
2158
|
case 'CheckboxBlock':
|
|
2122
|
-
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox" },
|
|
2159
|
+
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox", key: index },
|
|
2123
2160
|
isSendMailChimp && (React__default.createElement("div", { style: {
|
|
2124
2161
|
display: 'none',
|
|
2125
2162
|
}, "data-name": value + '-mailchimp' })),
|
|
2126
2163
|
React__default.createElement(Checkbox.Group, Object.assign({ withAsterisk: required,
|
|
2127
2164
|
// className="lead-modal__form-control leadgen-form_field"
|
|
2128
|
-
|
|
2165
|
+
label: placeholder, size: "md", sx: {
|
|
2129
2166
|
display: 'flex',
|
|
2130
2167
|
flexDirection: 'column',
|
|
2131
2168
|
flexWrap: 'wrap',
|
|
@@ -2134,27 +2171,29 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
2134
2171
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
2135
2172
|
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Checkbox, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "checkbox" }))))));
|
|
2136
2173
|
case 'RadioBlock':
|
|
2137
|
-
return (React__default.createElement(ChoiceField, { className: "leadgen-form_radio" },
|
|
2174
|
+
return (React__default.createElement(ChoiceField, { className: "leadgen-form_radio", key: index },
|
|
2138
2175
|
isSendMailChimp && (React__default.createElement(Input$1, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
2139
2176
|
React__default.createElement(Radio.Group, Object.assign({ withAsterisk: required,
|
|
2140
2177
|
// className="lead-modal__form-control leadgen-form_field"
|
|
2141
|
-
|
|
2178
|
+
label: placeholder, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
2142
2179
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
2143
2180
|
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
2144
2181
|
case 'DropdownBlock':
|
|
2145
|
-
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
2182
|
+
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field", key: index },
|
|
2146
2183
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
2147
|
-
React__default.createElement(Select
|
|
2184
|
+
React__default.createElement(Select
|
|
2185
|
+
// className="lead-modal__form-control leadgen-form_field"
|
|
2186
|
+
, Object.assign({
|
|
2148
2187
|
// className="lead-modal__form-control leadgen-form_field"
|
|
2149
2188
|
label: placeholder, placeholder: placeholder, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
2150
2189
|
value: l.value,
|
|
2151
2190
|
label: l.placeholder,
|
|
2152
2191
|
})) }, form.getInputProps(value)))));
|
|
2153
2192
|
case 'TncBlock':
|
|
2154
|
-
const _c = form.getInputProps(`TNC-${
|
|
2155
|
-
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox" },
|
|
2193
|
+
const _c = form.getInputProps(`TNC-${id}`), { error } = _c, tncInputProps = __rest(_c, ["error"]);
|
|
2194
|
+
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
2156
2195
|
React__default.createElement(Input$1.Wrapper, { error: error },
|
|
2157
|
-
React__default.createElement(Checkbox, Object.assign({ name: 'TNC-' +
|
|
2196
|
+
React__default.createElement(Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default.createElement("p", { className: "lead-modal__tnc-link", dangerouslySetInnerHTML: { __html: data.valueHTML } }), className: "tnc-block", "data-control": "checkbox" }, tncInputProps)))));
|
|
2158
2197
|
}
|
|
2159
2198
|
return null;
|
|
2160
2199
|
})));
|
|
@@ -2298,7 +2337,7 @@ const EmptyIcon = (props) => {
|
|
|
2298
2337
|
// image: campaignShow.image
|
|
2299
2338
|
// imageDestkop: campaignShow.image_desktop
|
|
2300
2339
|
const LEADGEN_LIMIT_LIGHTBOXB = 6;
|
|
2301
|
-
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, showThankyou, campaignId, campaign_subot_id, locale, showEmpty, setShowEmpty, }) => {
|
|
2340
|
+
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, showThankyou, campaignId, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
2302
2341
|
var _a, _b, _c;
|
|
2303
2342
|
const { t } = useTranslations();
|
|
2304
2343
|
const { isMobile } = useScreenSize();
|
|
@@ -2366,6 +2405,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
2366
2405
|
validatingEmailRef,
|
|
2367
2406
|
campaignId,
|
|
2368
2407
|
campaign_subot_id,
|
|
2408
|
+
userInfo,
|
|
2369
2409
|
});
|
|
2370
2410
|
const middlewareOnSubmit = (e) => {
|
|
2371
2411
|
e.preventDefault();
|
|
@@ -3006,7 +3046,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
|
3006
3046
|
return null;
|
|
3007
3047
|
}
|
|
3008
3048
|
}
|
|
3009
|
-
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, locale, showEmpty, setShowEmpty, }) => {
|
|
3049
|
+
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
3010
3050
|
var _a, _b;
|
|
3011
3051
|
const { apiUrl, siteDomain } = useContext(LeadGenContext);
|
|
3012
3052
|
useEffect(() => {
|
|
@@ -3125,7 +3165,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, local
|
|
|
3125
3165
|
currentLayout == 'Fullscreen' ||
|
|
3126
3166
|
currentLayout == 'Sidebar' ||
|
|
3127
3167
|
currentLayout == 'Slider') {
|
|
3128
|
-
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (form, values) => onSubmit(form, values, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty }));
|
|
3168
|
+
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (form, values) => onSubmit(form, values, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo }));
|
|
3129
3169
|
}
|
|
3130
3170
|
else if (currentLayout.includes('Skin')) {
|
|
3131
3171
|
return (React__default.createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|
|
@@ -3134,7 +3174,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, local
|
|
|
3134
3174
|
};
|
|
3135
3175
|
|
|
3136
3176
|
// mount css
|
|
3137
|
-
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, }) => {
|
|
3177
|
+
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, }) => {
|
|
3138
3178
|
var _a;
|
|
3139
3179
|
const scrollEventHandlerRef = useRef();
|
|
3140
3180
|
const leadStartTimeRef = useRef(Date.now());
|
|
@@ -3402,7 +3442,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, apiSubotUrl,
|
|
|
3402
3442
|
}
|
|
3403
3443
|
}, [showCampaign]);
|
|
3404
3444
|
return (React__default.createElement(LeadGenContext.Provider, { value: { apiUrl, siteDomain, siteId, locale } },
|
|
3405
|
-
React__default.createElement(TranslationsContext.Provider, { value: { locale, values: getTranslations(locale) } }, children ? (React__default.createElement(Component, { campaign: showCampaign, onSubmit: onSubmit, onClose: onClose, showThankyou: showThankyou, setShowThankyou: setShowThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty }, children)) : (React__default.createElement(Portal, { target: getPopupWrapperDom() },
|
|
3445
|
+
React__default.createElement(TranslationsContext.Provider, { value: { locale, values: getTranslations(locale) } }, children ? (React__default.createElement(Component, { campaign: showCampaign, onSubmit: onSubmit, onClose: onClose, showThankyou: showThankyou, setShowThankyou: setShowThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo }, children)) : (React__default.createElement(Portal, { target: getPopupWrapperDom() },
|
|
3406
3446
|
React__default.createElement(Box, { sx: { position: 'fixed', zIndex: ZINDEX_SSO - 9e6 } },
|
|
3407
3447
|
React__default.createElement(Transition, { mounted: Boolean(((_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.popupVersion) === '2.1'), transition: "fade", duration: 600, timingFunction: "ease" }, (styles) => {
|
|
3408
3448
|
var _a;
|
|
@@ -3410,7 +3450,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, apiSubotUrl,
|
|
|
3410
3450
|
!!showCampaign.extra_fields.currentLayout &&
|
|
3411
3451
|
!showCampaign.extra_fields.currentLayout.includes('Inline') &&
|
|
3412
3452
|
!showCampaign.extra_fields.currentLayout.includes('Sidebar') && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
3413
|
-
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty })))));
|
|
3453
|
+
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
3414
3454
|
})))))));
|
|
3415
3455
|
};
|
|
3416
3456
|
const LeadGen = _LeadGen;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { memo, useMemo } from 'react';
|
|
2
|
-
import { C as CommonGAssets } from './index-
|
|
3
|
-
import { I as ImageWrap } from './useScreenSize-
|
|
2
|
+
import { C as CommonGAssets } from './index-830c091f.js';
|
|
3
|
+
import { I as ImageWrap } from './useScreenSize-501097b1.js';
|
|
4
4
|
|
|
5
5
|
const _LogoIcon = ({ type, width, height }) => {
|
|
6
6
|
const data = useMemo(() => {
|
package/build/esm/mantine.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { g as getMantineThemeOverride, h as StyledTextArea, D as DEBOUNCED_TIME, i as StyledSliderWrapper, j as StyledSlider } from './index-
|
|
2
|
-
export { k as Accordion, A as Anchor, b as AspectRatio, a as Avatar, B as Breadcrumbs, l as Carousel, c as CentralCarousel, d as Checkbox, e as ChipButton, I as Input, O as OTP, P as Phone, n as Popover, R as Radio, S as Select, m as emotionCache, g as getMantineThemeOverride, t as themeColors } from './index-
|
|
3
|
-
export { D as DatePicker } from './index-
|
|
4
|
-
export { T as Text } from './index-
|
|
5
|
-
import { B as Button } from './index-
|
|
6
|
-
export { B as Button } from './index-
|
|
7
|
-
export { I as Indicator } from './index-
|
|
1
|
+
import { g as getMantineThemeOverride, h as StyledTextArea, D as DEBOUNCED_TIME, i as StyledSliderWrapper, j as StyledSlider } from './index-60383232.js';
|
|
2
|
+
export { k as Accordion, A as Anchor, b as AspectRatio, a as Avatar, B as Breadcrumbs, l as Carousel, c as CentralCarousel, d as Checkbox, e as ChipButton, I as Input, O as OTP, P as Phone, n as Popover, R as Radio, S as Select, m as emotionCache, g as getMantineThemeOverride, t as themeColors } from './index-60383232.js';
|
|
3
|
+
export { D as DatePicker } from './index-d38d6cf1.js';
|
|
4
|
+
export { T as Text } from './index-53acd19b.js';
|
|
5
|
+
import { B as Button } from './index-eb828ee9.js';
|
|
6
|
+
export { B as Button } from './index-eb828ee9.js';
|
|
7
|
+
export { I as Indicator } from './index-fde759ed.js';
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
|
-
export { M as Modal } from './index-
|
|
10
|
-
import { _ as __rest } from './tslib.es6-
|
|
9
|
+
export { M as Modal } from './index-7f61ef44.js';
|
|
10
|
+
import { _ as __rest } from './tslib.es6-46bc9308.js';
|
|
11
11
|
import { MantineProvider as MantineProvider$1, Badge as Badge$1, LoadingOverlay as LoadingOverlay$1, clsx, Title, Text, Button as Button$1 } from '@mantine/core';
|
|
12
12
|
import { theme } from './miscTheme.js';
|
|
13
|
-
export { S as Spoiler } from './index-
|
|
13
|
+
export { S as Spoiler } from './index-08ee45be.js';
|
|
14
14
|
import { useDebouncedValue } from '@mantine/hooks';
|
|
15
|
-
export { S as Switch } from './index-
|
|
16
|
-
import { u as useMantineLocale, N as NotificationsHandler } from './useMantineLocale-
|
|
17
|
-
export { M as MAPPED_LOCALE, g as getHeadingStyles, s as showNotification, u as useMantineLocale } from './useMantineLocale-
|
|
18
|
-
export { O as OTHER_THEME_CONFIG } from './other-
|
|
19
|
-
export { T as Tabs } from './index-
|
|
15
|
+
export { S as Switch } from './index-88de98db.js';
|
|
16
|
+
import { u as useMantineLocale, N as NotificationsHandler } from './useMantineLocale-850125d6.js';
|
|
17
|
+
export { M as MAPPED_LOCALE, g as getHeadingStyles, s as showNotification, u as useMantineLocale } from './useMantineLocale-850125d6.js';
|
|
18
|
+
export { O as OTHER_THEME_CONFIG } from './other-7fd66ceb.js';
|
|
19
|
+
export { T as Tabs } from './index-d8cbd450.js';
|
|
20
20
|
import '@hhgtech/icons/other';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-830c091f.js';
|
|
22
22
|
import './constantsDomainLocales.js';
|
|
23
|
-
import './Locale-
|
|
23
|
+
import './Locale-4b56a605.js';
|
|
24
24
|
import './constantsIsProduction.js';
|
|
25
|
-
import './useScreenSize-
|
|
25
|
+
import './useScreenSize-501097b1.js';
|
|
26
26
|
import '@emotion/styled';
|
|
27
|
-
import './utils-
|
|
27
|
+
import './utils-2ed3ab9a.js';
|
|
28
28
|
import '@mantine/carousel';
|
|
29
|
-
import './index-
|
|
30
|
-
import './index-
|
|
29
|
+
import './index-926b6794.js';
|
|
30
|
+
import './index-27b94427.js';
|
|
31
31
|
import 'date-fns/locale';
|
|
32
32
|
import './constantsSite.js';
|
|
33
33
|
import './constantsRiskScreener.js';
|
|
34
34
|
import 'classnames';
|
|
35
|
-
import './useUniqueId-
|
|
35
|
+
import './useUniqueId-924f27a7.js';
|
|
36
36
|
import '@hhgtech/icons/core';
|
|
37
37
|
import '@mantine/dates';
|
|
38
|
-
import './index.styles-
|
|
39
|
-
import './index-
|
|
40
|
-
import './translationsContext-
|
|
38
|
+
import './index.styles-96f9e18e.js';
|
|
39
|
+
import './index-17ac735f.js';
|
|
40
|
+
import './translationsContext-a4d5ef98.js';
|
|
41
41
|
import '@mantine/notifications';
|
|
42
42
|
import 'dayjs';
|
|
43
43
|
|
package/build/esm/misc.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export { a as ageGenerate, c as convertLocalizedStringToNumber, l as localizeNumberFormat } from './localizeNumberFormat-
|
|
2
|
-
export { h as fadeIn, a as slideInDown, b as slideInLeft, c as slideInRight, s as slideInUp, e as slideOutDown, f as slideOutLeft, g as slideOutRight, d as slideOutUp } from './animation-
|
|
1
|
+
export { a as ageGenerate, c as convertLocalizedStringToNumber, l as localizeNumberFormat } from './localizeNumberFormat-18165d09.js';
|
|
2
|
+
export { h as fadeIn, a as slideInDown, b as slideInLeft, c as slideInRight, s as slideInUp, e as slideOutDown, f as slideOutLeft, g as slideOutRight, d as slideOutUp } from './animation-ff53f61f.js';
|
|
3
3
|
export { deleteCookie, getCookie, setCookie } from './miscCookieHelper.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@mantine/core';
|
|
6
|
-
import './useMantineLocale-
|
|
7
|
-
import './index-
|
|
8
|
-
import './index-
|
|
6
|
+
import './useMantineLocale-850125d6.js';
|
|
7
|
+
import './index-926b6794.js';
|
|
8
|
+
import './index-830c091f.js';
|
|
9
9
|
export { MBTheme, theme } from './miscTheme.js';
|
|
10
|
-
export { B as Breakpoints, M as MediaQueries, S as Screens, f as formatUrlWithPageParam, g as getBoundariesFromMediaQueryKey, a as getPopupWrapperDom, b as getWrapperDomWithSelector, m as makeParams, c as safeEncodeURI, s as startCase, t as toggleNoScroll } from './utils-
|
|
11
|
-
import './index-
|
|
12
|
-
export { a as abbreviateNumber, f as formatPill } from './dataTransform-
|
|
13
|
-
export { d as getCareApiDomain, g as getCurrentBaseUrl, a as getCurrentSsoUrl, c as getDiscoverApiDomain, b as getTogetherApiDomain } from './normalizeLink-
|
|
10
|
+
export { B as Breakpoints, M as MediaQueries, S as Screens, f as formatUrlWithPageParam, g as getBoundariesFromMediaQueryKey, a as getPopupWrapperDom, b as getWrapperDomWithSelector, m as makeParams, c as safeEncodeURI, s as startCase, t as toggleNoScroll } from './utils-2ed3ab9a.js';
|
|
11
|
+
import './index-27b94427.js';
|
|
12
|
+
export { a as abbreviateNumber, f as formatPill } from './dataTransform-a0f97659.js';
|
|
13
|
+
export { d as getCareApiDomain, g as getCurrentBaseUrl, a as getCurrentSsoUrl, c as getDiscoverApiDomain, b as getTogetherApiDomain } from './normalizeLink-283fcb7b.js';
|
|
14
14
|
export { formatHealthTool, getDynamicHealthTool, getDynamicHealthToolWithCache } from './miscGetDynamicHealthTool.js';
|
|
15
15
|
export { getSocialList } from './miscGetSocialList.js';
|
|
16
16
|
export { ScreenSizeContext, ScreenSizeContextProvider, getWindowSizeGroups } from './miscScreenSizeContext.js';
|
|
17
17
|
import 'dayjs';
|
|
18
18
|
import '@emotion/react';
|
|
19
|
-
import './tslib.es6-
|
|
19
|
+
import './tslib.es6-46bc9308.js';
|
|
20
20
|
import '@mantine/notifications';
|
|
21
|
-
import './other-
|
|
22
|
-
import './Locale-
|
|
21
|
+
import './other-7fd66ceb.js';
|
|
22
|
+
import './Locale-4b56a605.js';
|
|
23
23
|
import './constantsDomainLocales.js';
|
|
24
24
|
import './constantsIsProduction.js';
|
|
25
25
|
import 'date-fns/locale';
|
|
26
26
|
import './constantsSite.js';
|
|
27
27
|
import './constantsRiskScreener.js';
|
|
28
|
-
import './core-
|
|
29
|
-
import './WhatsApp-
|
|
30
|
-
import './index-
|
|
31
|
-
import './index-
|
|
28
|
+
import './core-5d8fdea3.js';
|
|
29
|
+
import './WhatsApp-5fc19684.js';
|
|
30
|
+
import './index-95f4797b.js';
|
|
31
|
+
import './index-0161dbda.js';
|
|
32
32
|
import 'js-cookie';
|
|
33
33
|
import 'uuid';
|
|
34
34
|
import 'lodash/throttle';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as __awaiter } from './tslib.es6-
|
|
2
|
-
import { e as normalizeLinkSlash, c as getDiscoverApiDomain } from './normalizeLink-
|
|
3
|
-
import { g as getDataWithCache } from './core-
|
|
1
|
+
import { a as __awaiter } from './tslib.es6-46bc9308.js';
|
|
2
|
+
import { e as normalizeLinkSlash, c as getDiscoverApiDomain } from './normalizeLink-283fcb7b.js';
|
|
3
|
+
import { g as getDataWithCache } from './core-5d8fdea3.js';
|
|
4
4
|
import './constantsDomainLocales.js';
|
|
5
|
-
import './Locale-
|
|
5
|
+
import './Locale-4b56a605.js';
|
|
6
6
|
import './constantsIsProduction.js';
|
|
7
7
|
|
|
8
8
|
const formatHealthTool = (healthTool, locale) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { _ as __rest } from './tslib.es6-
|
|
3
|
-
import { W as WhatsApp, I as Instagram } from './WhatsApp-
|
|
4
|
-
import { S as SocialType } from './index-
|
|
5
|
-
import { g as getHelloSitesUrl } from './index-
|
|
6
|
-
import { C as CommonGAssets } from './index-
|
|
7
|
-
import { L as LOCALE } from './Locale-
|
|
8
|
-
import './index-
|
|
9
|
-
import './index-
|
|
2
|
+
import { _ as __rest } from './tslib.es6-46bc9308.js';
|
|
3
|
+
import { W as WhatsApp, I as Instagram } from './WhatsApp-5fc19684.js';
|
|
4
|
+
import { S as SocialType } from './index-926b6794.js';
|
|
5
|
+
import { g as getHelloSitesUrl } from './index-95f4797b.js';
|
|
6
|
+
import { C as CommonGAssets } from './index-830c091f.js';
|
|
7
|
+
import { L as LOCALE } from './Locale-4b56a605.js';
|
|
8
|
+
import './index-0161dbda.js';
|
|
9
|
+
import './index-27b94427.js';
|
|
10
10
|
import 'date-fns/locale';
|
|
11
11
|
import './constantsSite.js';
|
|
12
12
|
import './constantsDomainLocales.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { createContext, useState, useEffect, useMemo } from 'react';
|
|
2
2
|
import throttle from 'lodash/throttle';
|
|
3
|
-
import { B as Breakpoints } from './utils-
|
|
3
|
+
import { B as Breakpoints } from './utils-2ed3ab9a.js';
|
|
4
4
|
|
|
5
5
|
const ScreenSizeContext = createContext({
|
|
6
6
|
isInit: true,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-46bc9308.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { M as MobileBottomNavigationIcon, S as StyledMobileBottomNavigation } from './MobileBottomNavigationIcon-
|
|
4
|
-
import './index-
|
|
3
|
+
import { M as MobileBottomNavigationIcon, S as StyledMobileBottomNavigation } from './MobileBottomNavigationIcon-8c3f5567.js';
|
|
4
|
+
import './index-53acd19b.js';
|
|
5
5
|
import '@mantine/core';
|
|
6
|
-
import './other-
|
|
6
|
+
import './other-7fd66ceb.js';
|
|
7
7
|
import './miscTheme.js';
|
|
8
8
|
import '@emotion/react';
|
|
9
9
|
import '@emotion/styled';
|
|
10
|
-
import './utils-
|
|
10
|
+
import './utils-2ed3ab9a.js';
|
|
11
11
|
|
|
12
12
|
const MobileBottomNavigationWrapper = (_a) => {
|
|
13
13
|
var { children, isCollapsed = false, template = 'homepage' } = _a, rest = __rest(_a, ["children", "isCollapsed", "template"]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-46bc9308.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-53acd19b.js';
|
|
4
4
|
import './miscTheme.js';
|
|
5
|
-
export { M as MobileBottomNavigationIcon } from './MobileBottomNavigationIcon-
|
|
5
|
+
export { M as MobileBottomNavigationIcon } from './MobileBottomNavigationIcon-8c3f5567.js';
|
|
6
6
|
import '@mantine/core';
|
|
7
|
-
import './other-
|
|
7
|
+
import './other-7fd66ceb.js';
|
|
8
8
|
import '@emotion/react';
|
|
9
9
|
import '@emotion/styled';
|
|
10
|
-
import './utils-
|
|
10
|
+
import './utils-2ed3ab9a.js';
|