@hhgtech/hhg-components 1.29.361 → 1.29.362-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/InputDate-e23dea6a.js +387 -0
- package/build/{LastPeriod-0343f7fc.js → LastPeriod-357443f0.js} +1 -1
- package/build/{MobileBottomNavigationIcon-925c3b0d.js → MobileBottomNavigationIcon-5bde2710.js} +3 -3
- package/build/{Spinner-7bd6c35a.js → Spinner-73b4c4a1.js} +1 -1
- package/build/{WhatsApp-3c960a24.js → WhatsApp-29881ac8.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +49 -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/atoms/index.d.ts +1 -0
- package/build/components/atoms/inputDate/InputDate.d.ts +25 -0
- package/build/components/atoms/inputDate/InputDate.helpers.d.ts +13 -0
- package/build/components/atoms/inputDate/InputDate.styled.d.ts +5 -0
- package/build/components/atoms/inputDate/index.d.ts +1 -0
- package/build/components/mantine/phoneInput/PhoneInput.d.ts +15 -0
- package/build/components/mantine/phoneInput/index.d.ts +1 -0
- 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 +122 -121
- package/build/{constants-652c014e.js → constants-9a84ce9f.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-a8bc1a58.js → core-21c6f95b.js} +1 -1
- package/build/{dataTransform-16c7d725.js → dataTransform-a7efac3c.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-41482f4f.js → editor-6b155062.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-86119dfd.js +378 -0
- package/build/esm/{LastPeriod-3cf4f693.js → LastPeriod-b3d6bbc2.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-76493605.js → MobileBottomNavigationIcon-e7ae8a4a.js} +3 -3
- package/build/esm/{Spinner-96ba8cab.js → Spinner-d99c754c.js} +1 -1
- package/build/esm/{WhatsApp-68632cb6.js → WhatsApp-690f4774.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +48 -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/atoms/index.d.ts +1 -0
- package/build/esm/components/atoms/inputDate/InputDate.d.ts +25 -0
- package/build/esm/components/atoms/inputDate/InputDate.helpers.d.ts +13 -0
- package/build/esm/components/atoms/inputDate/InputDate.styled.d.ts +5 -0
- package/build/esm/components/atoms/inputDate/index.d.ts +1 -0
- package/build/esm/components/mantine/phoneInput/PhoneInput.d.ts +15 -0
- package/build/esm/components/mantine/phoneInput/index.d.ts +1 -0
- 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 +98 -98
- package/build/esm/{constants-67a53542.js → constants-8e8405a7.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-0565b874.js → core-96612eae.js} +1 -1
- package/build/esm/{dataTransform-55e8f570.js → dataTransform-555d0fb9.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-d198341c.js → editor-0d5100ca.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-362411e3.js → healthTools-29a83507.js} +1 -1
- 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-values/id-ID.js +3 -3
- package/build/esm/i18n-values/km-KH.js +4 -4
- package/build/esm/i18n-values/ms-MY.js +3 -3
- package/build/esm/i18n-values/my-MM.js +4 -4
- package/build/esm/i18n-values/th-TH.js +4 -4
- package/build/esm/i18n-values/tl-PH.js +3 -3
- package/build/esm/i18n-values/zh-TW.js +4 -4
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-3f9d0ba7.js → index-040bb3b8.js} +2 -2
- package/build/esm/{index-fb3d48ed.js → index-04d3c87e.js} +16 -16
- package/build/esm/{index-f058690f.js → index-06bca06c.js} +17 -17
- package/build/esm/{index-4e99aa5a.js → index-0b20c6f4.js} +17 -17
- package/build/esm/{index-c3774225.js → index-0c4129fe.js} +18 -11
- package/build/esm/{index-ce02c891.js → index-0fcd93a0.js} +5 -5
- package/build/esm/{index-475d6bd2.js → index-21e89b5c.js} +13 -13
- package/build/esm/{index-478f7d90.js → index-22f39808.js} +1 -1
- package/build/esm/{index-04828fa0.js → index-27d9fda5.js} +25 -25
- package/build/esm/{index-1b95110c.js → index-2aa860e4.js} +2 -2
- package/build/esm/{index-13a5f6e1.js → index-2cded5d6.js} +7 -7
- package/build/esm/{index-95440f30.js → index-30c63026.js} +16 -16
- package/build/esm/{index-d4433859.js → index-354908dd.js} +6 -6
- package/build/esm/{index-128eb47a.js → index-373a7c02.js} +15 -15
- package/build/esm/{index-33088cf6.js → index-3b007683.js} +16 -16
- package/build/esm/{index-c57db015.js → index-3b5c822a.js} +7 -7
- package/build/esm/{index-1e81fcab.js → index-3f38a004.js} +3 -3
- package/build/esm/{index-68df179a.js → index-44ff7f05.js} +9 -3
- package/build/esm/{index-c4b343f5.js → index-45d4e8db.js} +21 -21
- package/build/esm/{index-e96aa5ad.js → index-4abf7a86.js} +31 -31
- package/build/esm/{index-8ae2f88e.js → index-4e1e7214.js} +5 -5
- package/build/esm/{index-95664037.js → index-4ed95c1b.js} +2 -2
- package/build/esm/{index-b662b352.js → index-52bc2c66.js} +2 -2
- package/build/esm/{index-cba75f1e.js → index-53a095b8.js} +16 -16
- package/build/esm/{index-1177eb14.js → index-559588e9.js} +69 -42
- package/build/esm/{index-499a1f40.js → index-5d481985.js} +3 -3
- package/build/esm/{index-f58d1299.js → index-5d8ecfc5.js} +4 -4
- package/build/esm/{index-1bb99493.js → index-74caed99.js} +2 -2
- package/build/esm/{index-cb13d6e7.js → index-7ffbee45.js} +1 -1
- package/build/esm/{index-f042164f.js → index-83296db9.js} +3 -3
- package/build/esm/{index-2c5de049.js → index-8673a64c.js} +22 -22
- package/build/esm/{index-b509ff92.js → index-86ab1268.js} +6 -6
- package/build/esm/{index-7d4d62ab.js → index-88b1b525.js} +1 -1
- package/build/esm/{index-607ccbda.js → index-92689cd2.js} +1 -1
- package/build/esm/{index-0bd5655b.js → index-9a38304d.js} +2 -2
- package/build/esm/{index-f8cefaa8.js → index-9c9f2f43.js} +18 -18
- package/build/esm/{index-5b29ac68.js → index-a0dfca2d.js} +2 -2
- package/build/esm/{index-057e4881.js → index-a1380637.js} +2 -2
- package/build/esm/{index-d31f37cf.js → index-a17f3aae.js} +2 -2
- package/build/esm/{index-592013d2.js → index-a2bb5bfe.js} +1 -1
- package/build/esm/{index-88bde2a7.js → index-a3d165a5.js} +2 -2
- package/build/esm/{index-f4515e36.js → index-a90b2458.js} +3 -3
- package/build/esm/{index-4b7f9d72.js → index-bb34ef16.js} +2 -2
- package/build/esm/{index-64d57a17.js → index-bf0caab2.js} +32 -32
- package/build/esm/{index-da3f54f7.js → index-c25c1d80.js} +3 -3
- package/build/esm/{index-d0ada2a7.js → index-c5f8361e.js} +13 -13
- package/build/esm/{index-230e765d.js → index-c772ef64.js} +625 -27
- package/build/esm/{index-3d51b2f8.js → index-cbac3c8b.js} +18 -18
- package/build/esm/{index-bc710053.js → index-d19720ec.js} +6 -6
- package/build/esm/{index-2b2ebc80.js → index-d1a2dc8f.js} +3 -3
- package/build/esm/{index-80d4b01f.js → index-d92fd6a2.js} +16 -16
- package/build/esm/{index-4497abdd.js → index-dd045bbe.js} +13 -13
- package/build/esm/{index-c4640b20.js → index-df4c3e38.js} +2 -2
- package/build/esm/{index-8c82e15e.js → index-dffc09d6.js} +6 -6
- package/build/esm/{index-8e69b183.js → index-e53afe5a.js} +1 -1
- package/build/esm/{index-ff486557.js → index-e85ba9a1.js} +13 -13
- package/build/esm/{index-2d430cec.js → index-eab122ac.js} +17 -17
- package/build/esm/{index-1aa0ac8b.js → index-f0989c46.js} +10 -10
- package/build/esm/{index-e7631b76.js → index-f14dba41.js} +2 -2
- package/build/esm/{index-15d0874c.js → index-f17b2c0b.js} +2 -2
- package/build/esm/{index-2a527344.js → index-f3c0171f.js} +1 -1
- package/build/esm/{index-ad3dbb96.js → index-f40ba809.js} +6 -6
- package/build/esm/{index-21f49df0.js → index-f58f85e6.js} +1 -1
- package/build/esm/{index-81097236.js → index-fd74e24a.js} +11 -11
- package/build/esm/index.js +119 -119
- package/build/esm/interfaces/types/index.d.ts +14 -0
- package/build/esm/{labelSorting-396ffb2f.js → labelSorting-bd5aa4c1.js} +4 -4
- package/build/esm/lead/LeadGenForm/LeadGenForm.d.ts +41 -0
- package/build/esm/lead/LeadGenForm/LeadGenForm.styled.d.ts +5 -0
- package/build/esm/lead/LeadGenForm/LeadGenThankYou.d.ts +20 -0
- package/build/esm/lead/LeadGenForm/index.d.ts +1 -0
- package/build/esm/lead/LeadGenForm/textField/index.d.ts +13 -0
- package/build/esm/lead/LeadGenForm/textField/index.styled.d.ts +11 -0
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +25 -0
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContext.d.ts +25 -0
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxWrapper.d.ts +30 -0
- package/build/esm/lead/LeadGenSubscriptionBox/index.d.ts +1 -0
- package/build/esm/lead/helpers.d.ts +51 -1
- package/build/esm/lead/index.d.ts +2 -1
- package/build/esm/lead/services/index.d.ts +14 -0
- package/build/esm/lead.js +1295 -372
- package/build/esm/{logoIcon-6616b938.js → logoIcon-b9eecd1b.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 +75 -76
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +45 -45
- 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 +49 -49
- package/build/esm/{post-fc479ef3.js → post-9846aef1.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 +51 -39
- package/build/esm/{store-9f4d56db.js → store-bf8836f8.js} +4 -4
- package/build/esm/subot.js +359 -296
- package/build/esm/surveyOrPremiumBanner.js +32 -32
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-b52b307e.js → surveyThankyouCard-b61f0123.js} +5 -5
- package/build/esm/together.js +55 -55
- 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 +50 -50
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +38 -38
- package/build/esm/togetherOrganisms.js +49 -49
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{treePopoverMenu-70cb9bb4.js → treePopoverMenu-15d9bd20.js} +19 -19
- package/build/esm/{types-60b800da.js → types-cde9bc2c.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-2fe8d914.js → useCategory-1426f7b9.js} +5 -5
- package/build/esm/{useHealthToolCache-50bef818.js → useHealthToolCache-6870431f.js} +1 -1
- package/build/esm/{useMantineLocale-921259d6.js → useMantineLocale-b5ac651f.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-ac7f16b4.js → usePlacesAutocomplete-50acf800.js} +1 -1
- package/build/esm/{useScreenSize-f3cae5ca.js → useScreenSize-a28b4666.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-6133a65e.js → utils-12a31cb9.js} +4 -4
- package/build/esm/{utils-feb3b992.js → utils-367f0dcc.js} +2 -2
- package/build/esm/{utils-b544b20b.js → utils-9d793dd1.js} +3 -3
- package/build/esm/{utils-f3410716.js → utils-d2c01699.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-218a35dc.js → healthTools-4337a50e.js} +1 -1
- 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-values/id-ID.js +3 -3
- package/build/i18n-values/km-KH.js +4 -4
- package/build/i18n-values/ms-MY.js +3 -3
- package/build/i18n-values/my-MM.js +4 -4
- package/build/i18n-values/th-TH.js +4 -4
- package/build/i18n-values/tl-PH.js +3 -3
- package/build/i18n-values/zh-TW.js +4 -4
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-f872862d.js → index-0242fe02.js} +1 -1
- package/build/{index-dcd84c5f.js → index-06c3ff36.js} +21 -21
- package/build/{index-087550cd.js → index-103cad59.js} +7 -7
- package/build/{index-9c4a1855.js → index-1ac10c6b.js} +1 -1
- package/build/{index-698cec71.js → index-1d8b8c26.js} +10 -10
- package/build/{index-b4f11316.js → index-1fe512f4.js} +2 -2
- package/build/{index-5133a8dd.js → index-238ca08b.js} +6 -6
- package/build/{index-e431673b.js → index-23ec9433.js} +5 -5
- package/build/{index-634558df.js → index-2b37d33b.js} +3 -3
- package/build/{index-0c679c0b.js → index-320810e6.js} +1 -1
- package/build/{index-6def6d97.js → index-32506323.js} +1 -1
- package/build/{index-22ed3ded.js → index-33b228fc.js} +16 -16
- package/build/{index-d5d39264.js → index-37f3be44.js} +4 -4
- package/build/{index-ad1c4df2.js → index-37f776f1.js} +25 -25
- package/build/{index-71612045.js → index-3aa1a989.js} +17 -17
- package/build/{index-6cc871c9.js → index-3b6660eb.js} +5 -5
- package/build/{index-d8b3d33a.js → index-3b8276cc.js} +625 -25
- package/build/{index-99100f43.js → index-454ade61.js} +13 -13
- package/build/{index-1b9b42da.js → index-4c1dd52a.js} +9 -2
- package/build/{index-65132afa.js → index-4ffb3638.js} +1 -1
- package/build/{index-b345223d.js → index-525e869d.js} +32 -32
- package/build/{index-7230a09a.js → index-54e3b699.js} +2 -2
- package/build/{index-9c721c28.js → index-58a8bdf2.js} +6 -6
- package/build/{index-1122d17c.js → index-5c4203a4.js} +3 -3
- package/build/{index-6fb88de3.js → index-5e9e4d1e.js} +6 -6
- package/build/{index-d02ead41.js → index-657b769b.js} +7 -7
- package/build/{index-96c99b22.js → index-67092c9a.js} +18 -11
- package/build/{index-1cc5a94d.js → index-683218b9.js} +17 -17
- package/build/{index-145f9be6.js → index-6c75936d.js} +2 -2
- package/build/{index-14f9169e.js → index-6e4a438d.js} +2 -2
- package/build/{index-96e052eb.js → index-71b9fa92.js} +13 -13
- package/build/{index-4f5430c4.js → index-782d9e64.js} +13 -13
- package/build/{index-3001d3fe.js → index-7a6003de.js} +2 -2
- package/build/{index-719d80d5.js → index-80dc4358.js} +3 -3
- package/build/{index-1224b5ae.js → index-80e99032.js} +3 -3
- package/build/{index-79821f7a.js → index-81d22a08.js} +2 -2
- package/build/{index-e84adbfd.js → index-8baab458.js} +69 -42
- package/build/{index-eac09680.js → index-8ef60f0d.js} +2 -2
- package/build/{index-0f5de5ae.js → index-9306bea1.js} +1 -1
- package/build/{index-db91c68b.js → index-94335a8f.js} +1 -1
- package/build/{index-62ff575b.js → index-997a1c89.js} +17 -17
- package/build/{index-06ed88b5.js → index-a1276ce0.js} +2 -2
- package/build/{index-15429239.js → index-a8adc4ca.js} +2 -2
- package/build/{index-d0928213.js → index-a967f6d7.js} +16 -16
- package/build/{index-59d6a0ff.js → index-aab18904.js} +18 -18
- package/build/{index-163c96d5.js → index-ac93bf1f.js} +31 -31
- package/build/{index-5a0fac03.js → index-b60eb3f4.js} +3 -3
- package/build/{index-f2101397.js → index-c3bd9589.js} +16 -16
- package/build/{index-6b55279a.js → index-c649a78a.js} +2 -2
- package/build/{index-35cc432a.js → index-c6a646d8.js} +16 -16
- package/build/{index-961e7ee8.js → index-d23edcf6.js} +15 -15
- package/build/{index-2606e965.js → index-d5238da3.js} +11 -11
- package/build/{index-923622b3.js → index-d52b07ed.js} +13 -13
- package/build/{index-f5db5fd8.js → index-dd7fb33c.js} +1 -1
- package/build/{index-2f40200a.js → index-dffeb868.js} +3 -3
- package/build/{index-5fe6fe35.js → index-e1cd9976.js} +2 -2
- package/build/{index-e56ec41a.js → index-e25131d3.js} +2 -2
- package/build/{index-3e16c033.js → index-e6a6c79b.js} +18 -18
- package/build/{index-8639ea28.js → index-eb44e13b.js} +16 -16
- package/build/{index-9aa2e0dc.js → index-ece994b7.js} +6 -6
- package/build/{index-9977674c.js → index-f265793c.js} +2 -2
- package/build/{index-9986db2c.js → index-f50d84b1.js} +6 -6
- package/build/{index-188279e8.js → index-f86b9846.js} +22 -22
- package/build/{index-c0bfad65.js → index-ffd9187e.js} +2 -2
- package/build/index.js +165 -164
- package/build/interfaces/types/index.d.ts +14 -0
- package/build/{labelSorting-01953a48.js → labelSorting-4c943307.js} +4 -4
- package/build/lead/LeadGenForm/LeadGenForm.d.ts +41 -0
- package/build/lead/LeadGenForm/LeadGenForm.styled.d.ts +5 -0
- package/build/lead/LeadGenForm/LeadGenThankYou.d.ts +20 -0
- package/build/lead/LeadGenForm/index.d.ts +1 -0
- package/build/lead/LeadGenForm/textField/index.d.ts +13 -0
- package/build/lead/LeadGenForm/textField/index.styled.d.ts +11 -0
- package/build/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +25 -0
- package/build/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContext.d.ts +25 -0
- package/build/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxWrapper.d.ts +30 -0
- package/build/lead/LeadGenSubscriptionBox/index.d.ts +1 -0
- package/build/lead/helpers.d.ts +51 -1
- package/build/lead/index.d.ts +2 -1
- package/build/lead/services/index.d.ts +14 -0
- package/build/lead.js +1296 -372
- package/build/{logoIcon-c39eb8e1.js → logoIcon-4cb3d441.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 +91 -92
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +45 -45
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +49 -49
- package/build/{post-dbf6629a.js → post-944ca073.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 +49 -37
- package/build/{store-dd66327a.js → store-75b0c686.js} +4 -4
- package/build/subot.js +363 -300
- package/build/surveyOrPremiumBanner.js +32 -32
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-7b567cd7.js → surveyThankyouCard-20c6ecd6.js} +5 -5
- package/build/together.js +55 -55
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +50 -50
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +38 -38
- package/build/togetherOrganisms.js +49 -49
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{treePopoverMenu-26d2fbdb.js → treePopoverMenu-0b4e3c93.js} +19 -19
- package/build/{types-e2e6d111.js → types-a2d7599b.js} +2 -2
- package/build/types.js +3 -2
- package/build/{useCategory-06840f82.js → useCategory-081b0b4c.js} +5 -5
- package/build/{useHealthToolCache-3bf91c4c.js → useHealthToolCache-3681725a.js} +1 -1
- package/build/{useMantineLocale-2114adc5.js → useMantineLocale-e957a29a.js} +6 -6
- package/build/{usePlacesAutocomplete-1cba30f3.js → usePlacesAutocomplete-75ed28fa.js} +1 -1
- package/build/{useScreenSize-8cf53ce7.js → useScreenSize-f452c1dc.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-441f1d86.js → utils-13146977.js} +2 -2
- package/build/{utils-6cbf1a6f.js → utils-b304c5bd.js} +4 -4
- package/build/{utils-2550e6ef.js → utils-da927478.js} +2 -2
- package/build/{utils-cf190a58.js → utils-f214ac64.js} +3 -3
- package/build/vaccination.js +21 -21
- package/package.json +3 -3
- package/build/esm/index-b2cee507.js +0 -604
- package/build/index-573cbda9.js +0 -612
- /package/build/{BMI_BOYS.percentile.monthly-d83c828b.js → BMI_BOYS.percentile.monthly-737643fc.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-5712c249.js → BMI_BOYS.percentile.weekly-ef91eacb.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-528c4f00.js → BMI_BOYS.percentile.yearly-be8b45a8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-3c8ff1a3.js → BMI_BOYS.zscore.monthly-79fba00f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-d4289a56.js → BMI_BOYS.zscore.weekly-5ddfc087.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-f17c45e2.js → BMI_BOYS.zscore.yearly-d377913c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-fe4e2320.js → BMI_GIRLS.percentile.monthly-8340afb9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-4878dcbf.js → BMI_GIRLS.percentile.weekly-e78972dc.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-89ac0b92.js → BMI_GIRLS.percentile.yearly-723a6bcd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-e2eabcea.js → BMI_GIRLS.zscore.monthly-01665144.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-b25ed8de.js → BMI_GIRLS.zscore.weekly-d8a9fcd3.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-4e15f477.js → BMI_GIRLS.zscore.yearly-d5bb0616.js} +0 -0
- /package/build/{ChevronDown-3c6e14b0.js → ChevronDown-ea198d8c.js} +0 -0
- /package/build/{Close-f693cc9f.js → Close-23d6560f.js} +0 -0
- /package/build/{Google-eb637b90.js → Google-ee95b9cd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-d33fc0f0.js → HEAD CIRCUM_BOYS.percentile.monthly-6f5e4cb9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c92d73c2.js → HEAD CIRCUM_BOYS.percentile.weekly-3a60cd7c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7a95f65f.js → HEAD CIRCUM_BOYS.percentile.yearly-631bd48b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-83d545b8.js → HEAD CIRCUM_BOYS.zscore.monthly-5b97dfbe.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-2fb1d6ab.js → HEAD CIRCUM_BOYS.zscore.weekly-7007aa3b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-a0d71256.js → HEAD CIRCUM_BOYS.zscore.yearly-85291bb6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-8853aad2.js → HEAD CIRCUM_GIRLS.percentile.monthly-719c6a1c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b34ef316.js → HEAD CIRCUM_GIRLS.percentile.weekly-03d1cb81.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-b4ff6c75.js → HEAD CIRCUM_GIRLS.percentile.yearly-d62e57cf.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-6321ee38.js → HEAD CIRCUM_GIRLS.zscore.monthly-dad2d1d0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-17748712.js → HEAD CIRCUM_GIRLS.zscore.weekly-4e924933.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-09ae6e3a.js → HEAD CIRCUM_GIRLS.zscore.yearly-1e950b60.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-22b3d949.js → HEIGHT_BOYS.percentile.monthly-8913d177.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-6c80b23e.js → HEIGHT_BOYS.percentile.weekly-f78eebea.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-fa152acc.js → HEIGHT_BOYS.percentile.yearly-0c911cd7.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-788f8c7e.js → HEIGHT_BOYS.zscore.monthly-13491ce2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-31f14aad.js → HEIGHT_BOYS.zscore.weekly-0d9decae.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-2fd9ba60.js → HEIGHT_BOYS.zscore.yearly-2946bbfd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-d686e30c.js → HEIGHT_GIRLS.percentile.monthly-56860c32.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-9b18a0f2.js → HEIGHT_GIRLS.percentile.weekly-de989f24.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-b2a7062b.js → HEIGHT_GIRLS.percentile.yearly-4f47e1f2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-684a9561.js → HEIGHT_GIRLS.zscore.monthly-7d97493e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-32377636.js → HEIGHT_GIRLS.zscore.weekly-6243c7dd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-37714834.js → HEIGHT_GIRLS.zscore.yearly-85dfd4b9.js} +0 -0
- /package/build/{Locale-bbd9f39e.js → Locale-49a6c721.js} +0 -0
- /package/build/{Visible-c59d8dab.js → Visible-08ef6396.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-4643d745.js → WEIGHT_BOYS.percentile.monthly-2da3a9dd.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-ba8ac0cb.js → WEIGHT_BOYS.percentile.weekly-6a96fa02.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-96c501b6.js → WEIGHT_BOYS.percentile.yearly-1c0ac232.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-5d852cd2.js → WEIGHT_BOYS.zscore.monthly-09aac688.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b34698cf.js → WEIGHT_BOYS.zscore.weekly-9d3b8f80.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-9ccc7e7b.js → WEIGHT_BOYS.zscore.yearly-112809dd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-0ca4429c.js → WEIGHT_GIRLS.percentile.monthly-d442eff9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-d0434a98.js → WEIGHT_GIRLS.percentile.weekly-71acaefb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-280d0a0c.js → WEIGHT_GIRLS.percentile.yearly-10e619c8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-a40ed4a3.js → WEIGHT_GIRLS.zscore.monthly-43af6015.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-e3e331fa.js → WEIGHT_GIRLS.zscore.weekly-2b54b8b3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-35d9ebec.js → WEIGHT_GIRLS.zscore.yearly-dab72451.js} +0 -0
- /package/build/{animation-3949e444.js → animation-02d429a8.js} +0 -0
- /package/build/{constants-0148aad4.js → constants-608c17a1.js} +0 -0
- /package/build/{constants-5013fb7a.js → constants-b91c21de.js} +0 -0
- /package/build/{constants-547046fb.js → constants-e9b24ebc.js} +0 -0
- /package/build/{dataTransform-d84e197c.js → dataTransform-ba1abb02.js} +0 -0
- /package/build/{doctor-f961435d.js → doctor-bbde0960.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-71888f5e.js → BMI_BOYS.percentile.monthly-2bd078db.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-6d5666ff.js → BMI_BOYS.percentile.weekly-0c8c11a7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-d01dc4f6.js → BMI_BOYS.percentile.yearly-aaf37922.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-d1fbd616.js → BMI_BOYS.zscore.monthly-dc7f736a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-0375f4cd.js → BMI_BOYS.zscore.weekly-eb1b6260.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8119d63b.js → BMI_BOYS.zscore.yearly-181103a2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-38943c36.js → BMI_GIRLS.percentile.monthly-ce3cb84c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-c3c5d285.js → BMI_GIRLS.percentile.weekly-dde3e758.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-7d9277fd.js → BMI_GIRLS.percentile.yearly-c9699e7f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-ff480ca7.js → BMI_GIRLS.zscore.monthly-9b8ca0c2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-86c3db3e.js → BMI_GIRLS.zscore.weekly-a5f67367.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-ccee74c6.js → BMI_GIRLS.zscore.yearly-832138ec.js} +0 -0
- /package/build/esm/{ChevronDown-7b9b567f.js → ChevronDown-07a096fe.js} +0 -0
- /package/build/esm/{Close-33544ec7.js → Close-ca80e505.js} +0 -0
- /package/build/esm/{Google-0988bb5f.js → Google-f06650a4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-e100a02f.js → HEAD CIRCUM_BOYS.percentile.monthly-71efcac3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-b502fe8c.js → HEAD CIRCUM_BOYS.percentile.weekly-6e3fc589.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-2473f9ed.js → HEAD CIRCUM_BOYS.percentile.yearly-dc05fa24.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-daab2fe2.js → HEAD CIRCUM_BOYS.zscore.monthly-9ad0fe19.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a57acb63.js → HEAD CIRCUM_BOYS.zscore.weekly-621b79f8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-2bc751fb.js → HEAD CIRCUM_BOYS.zscore.yearly-7018f29e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-30ed33ee.js → HEAD CIRCUM_GIRLS.percentile.monthly-5c0e2139.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-76165ef7.js → HEAD CIRCUM_GIRLS.percentile.weekly-720f94b1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1dbb5731.js → HEAD CIRCUM_GIRLS.percentile.yearly-f0fbf777.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-179b45b0.js → HEAD CIRCUM_GIRLS.zscore.monthly-1f4ef0dd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-824a1542.js → HEAD CIRCUM_GIRLS.zscore.weekly-78022988.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-20dd7416.js → HEAD CIRCUM_GIRLS.zscore.yearly-aca676b3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-e6a6c894.js → HEIGHT_BOYS.percentile.monthly-3a0a4653.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1c6dc135.js → HEIGHT_BOYS.percentile.weekly-7e3addae.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-1098b3ce.js → HEIGHT_BOYS.percentile.yearly-adf860e1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e56ce8ca.js → HEIGHT_BOYS.zscore.monthly-d333b701.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-9f5093d9.js → HEIGHT_BOYS.zscore.weekly-cc280dd1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-9314c992.js → HEIGHT_BOYS.zscore.yearly-c025f5ba.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-86f7ba70.js → HEIGHT_GIRLS.percentile.monthly-88ee8780.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-a4190b3a.js → HEIGHT_GIRLS.percentile.weekly-6a9349ae.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-dd90b78c.js → HEIGHT_GIRLS.percentile.yearly-4f3106c2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-03dcd04c.js → HEIGHT_GIRLS.zscore.monthly-cff101a3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-70c35d73.js → HEIGHT_GIRLS.zscore.weekly-2f3b0814.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-a924f196.js → HEIGHT_GIRLS.zscore.yearly-893c5f6d.js} +0 -0
- /package/build/esm/{Locale-e3d80799.js → Locale-a047b32f.js} +0 -0
- /package/build/esm/{Visible-46ee87b5.js → Visible-adb7d30c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-38addb24.js → WEIGHT_BOYS.percentile.monthly-b7ec4b8d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-7455df0c.js → WEIGHT_BOYS.percentile.weekly-1ba3ba54.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-080c96db.js → WEIGHT_BOYS.percentile.yearly-12aaf175.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-2bfbd5fe.js → WEIGHT_BOYS.zscore.monthly-2ecadfeb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6a6bcc55.js → WEIGHT_BOYS.zscore.weekly-94fd9df1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-eee3c72a.js → WEIGHT_BOYS.zscore.yearly-a9a49523.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-7f552d45.js → WEIGHT_GIRLS.percentile.monthly-5d32077a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-d489658c.js → WEIGHT_GIRLS.percentile.weekly-ea5164d5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-55de3f8c.js → WEIGHT_GIRLS.percentile.yearly-d00bf954.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-4866a40f.js → WEIGHT_GIRLS.zscore.monthly-ff548130.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-a516076f.js → WEIGHT_GIRLS.zscore.weekly-68e49b6b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-23364a40.js → WEIGHT_GIRLS.zscore.yearly-776574df.js} +0 -0
- /package/build/esm/{animation-cdc3b9e2.js → animation-8dac6a57.js} +0 -0
- /package/build/esm/{constants-487af9a7.js → constants-103648cb.js} +0 -0
- /package/build/esm/{constants-c3ebcf04.js → constants-44b6bfd0.js} +0 -0
- /package/build/esm/{constants-b5162987.js → constants-eaae9820.js} +0 -0
- /package/build/esm/{dataTransform-4277e194.js → dataTransform-d432c05c.js} +0 -0
- /package/build/esm/{doctor-36dd281d.js → doctor-9fde3f21.js} +0 -0
- /package/build/esm/{index-3e1cfac7.js → index-038cf88b.js} +0 -0
- /package/build/esm/{index-af3d6891.js → index-0465826c.js} +0 -0
- /package/build/esm/{index-3a41f28a.js → index-0688cf27.js} +0 -0
- /package/build/esm/{index-92ab9005.js → index-0f6364d8.js} +0 -0
- /package/build/esm/{index-c889b9a1.js → index-38fd1b90.js} +0 -0
- /package/build/esm/{index-db0c0a03.js → index-4c9916fd.js} +0 -0
- /package/build/esm/{index-256332cd.js → index-e9415462.js} +0 -0
- /package/build/esm/{index-2a7c39fd.js → index-e962a389.js} +0 -0
- /package/build/esm/{index.styles-612b88c3.js → index.styles-c59d389f.js} +0 -0
- /package/build/esm/{localizeNumberFormat-6d21d26e.js → localizeNumberFormat-f19bc68c.js} +0 -0
- /package/build/esm/{normalizeLink-0fcb0a30.js → normalizeLink-6da98ce7.js} +0 -0
- /package/build/esm/{number-8b731ca0.js → number-d430cbd0.js} +0 -0
- /package/build/esm/{other-28b72baa.js → other-41db008a.js} +0 -0
- /package/build/esm/{paths-c2be4081.js → paths-311c22ac.js} +0 -0
- /package/build/esm/{translationsContext-1053b855.js → translationsContext-ba5f494a.js} +0 -0
- /package/build/esm/{tslib.es6-cf8bdaac.js → tslib.es6-32e42d64.js} +0 -0
- /package/build/esm/{types-87d39c14.js → types-0825b0ba.js} +0 -0
- /package/build/esm/{useIsInit-05b253f1.js → useIsInit-ff72f859.js} +0 -0
- /package/build/esm/{useOutsideClick-66e40b60.js → useOutsideClick-0e442a52.js} +0 -0
- /package/build/esm/{useScrollbarSize-b10ed395.js → useScrollbarSize-452047f9.js} +0 -0
- /package/build/esm/{useUniqueId-0e02bf45.js → useUniqueId-823f1e39.js} +0 -0
- /package/build/esm/{utils-504d3f05.js → utils-7fb93baf.js} +0 -0
- /package/build/{index-39346954.js → index-5b5fc77d.js} +0 -0
- /package/build/{index-cd3fb76b.js → index-6f7c3612.js} +0 -0
- /package/build/{index-fb535be1.js → index-70b2b053.js} +0 -0
- /package/build/{index-923f26b6.js → index-7ac7f32a.js} +0 -0
- /package/build/{index-cf900508.js → index-9331d939.js} +0 -0
- /package/build/{index-bd496d8c.js → index-cab280f4.js} +0 -0
- /package/build/{index-8b67cf13.js → index-e37c25cd.js} +0 -0
- /package/build/{index-82f545d4.js → index-fafc5723.js} +0 -0
- /package/build/{index.styles-e5ced70d.js → index.styles-4a986730.js} +0 -0
- /package/build/{localizeNumberFormat-9f426dee.js → localizeNumberFormat-57a2785b.js} +0 -0
- /package/build/{normalizeLink-33d996e8.js → normalizeLink-7d23a12d.js} +0 -0
- /package/build/{number-94ed4ba9.js → number-94ec5143.js} +0 -0
- /package/build/{other-27ab7df9.js → other-9ac11fe7.js} +0 -0
- /package/build/{paths-85dc5bbe.js → paths-20ba5391.js} +0 -0
- /package/build/{translationsContext-1c7e3b11.js → translationsContext-b2f1d78c.js} +0 -0
- /package/build/{tslib.es6-46c06add.js → tslib.es6-94aa0f76.js} +0 -0
- /package/build/{types-db73911f.js → types-95610d73.js} +0 -0
- /package/build/{useIsInit-7bc542dc.js → useIsInit-7598a19e.js} +0 -0
- /package/build/{useOutsideClick-2fb8d081.js → useOutsideClick-b4989226.js} +0 -0
- /package/build/{useScrollbarSize-1ccf571e.js → useScrollbarSize-d0f021bf.js} +0 -0
- /package/build/{useUniqueId-02c73cab.js → useUniqueId-cbb1e25c.js} +0 -0
- /package/build/{utils-06faab5a.js → utils-534b1e9b.js} +0 -0
package/build/esm/subot.js
CHANGED
|
@@ -1,76 +1,75 @@
|
|
|
1
|
-
import React__default, { createContext, useContext, useRef, useState, useEffect, useCallback, useMemo, forwardRef,
|
|
2
|
-
import { d as NodeType, E as ELEMENT_CONTROL_INPUT_TYPE, f as NodeActionType, c as NodePosition, e as NodeFinalTypes, g as NodeMultipleOptions, N as NodeIntentType, F as FULL_KEY_ADDRESS } from './index-
|
|
3
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
4
|
-
import { f as basePath, G as GA_TOKEN_COOKIE,
|
|
1
|
+
import React__default, { createContext, useContext, useRef, useState, useEffect, useCallback, useMemo, forwardRef, useImperativeHandle, memo } from 'react';
|
|
2
|
+
import { d as NodeType, E as ELEMENT_CONTROL_INPUT_TYPE, f as NodeActionType, c as NodePosition, e as NodeFinalTypes, g as NodeMultipleOptions, N as NodeIntentType, F as FULL_KEY_ADDRESS, C as COMMON_DATE_TRANSLATE_KEY } from './index-44ff7f05.js';
|
|
3
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-32e42d64.js';
|
|
4
|
+
import { f as basePath, G as GA_TOKEN_COOKIE, I as ISO_FORMAT, g as SSO_URL } from './index-a1380637.js';
|
|
5
5
|
import Cookies from 'js-cookie';
|
|
6
6
|
import fd from 'fastdom';
|
|
7
7
|
import fastdomPromised from 'fastdom/extensions/fastdom-promised';
|
|
8
|
-
import { G as GlobalData, c as callApi, u as locale, T as TogetherComponentGlobalContext } from './utils-
|
|
8
|
+
import { G as GlobalData, c as callApi, u as locale, T as TogetherComponentGlobalContext } from './utils-9d793dd1.js';
|
|
9
9
|
import formatString from 'string-format';
|
|
10
|
-
import { a as getUserIdFromCookie, b as getSubotCookieId, c as getUserInfoFromCookie, d as getWindowId, o as overrideParamsByQuery, e as checkUntilFinished, g as getHelloSitesUrl, f as checkMobile, h as clickAndOpenInNewTab, i as formatUrlWithEncrypedGa, T as TIME_RESET_RESEND_OTP, j as isFakeEmail, s as ssoIntents, k as getHhgIdFromCookie } from './index-
|
|
11
|
-
export { T as TIME_RESET_RESEND_OTP, f as checkMobile, e as checkUntilFinished, h as clickAndOpenInNewTab, i as formatUrlWithEncrypedGa, g as getHelloSitesUrl, k as getHhgIdFromCookie, b as getSubotCookieId, a as getUserIdFromCookie, c as getUserInfoFromCookie, d as getWindowId, j as isFakeEmail, o as overrideParamsByQuery, s as ssoIntents } from './index-
|
|
10
|
+
import { a as getUserIdFromCookie, b as getSubotCookieId, c as getUserInfoFromCookie, d as getWindowId, o as overrideParamsByQuery, e as checkUntilFinished, g as getHelloSitesUrl, f as checkMobile, h as clickAndOpenInNewTab, i as formatUrlWithEncrypedGa, T as TIME_RESET_RESEND_OTP, j as isFakeEmail, s as ssoIntents, k as getHhgIdFromCookie } from './index-a90b2458.js';
|
|
11
|
+
export { T as TIME_RESET_RESEND_OTP, f as checkMobile, e as checkUntilFinished, h as clickAndOpenInNewTab, i as formatUrlWithEncrypedGa, g as getHelloSitesUrl, k as getHhgIdFromCookie, b as getSubotCookieId, a as getUserIdFromCookie, c as getUserInfoFromCookie, d as getWindowId, j as isFakeEmail, o as overrideParamsByQuery, s as ssoIntents } from './index-a90b2458.js';
|
|
12
12
|
import dayjs from 'dayjs';
|
|
13
13
|
import { isProduction } from './constantsIsProduction.js';
|
|
14
14
|
import { MAP_DOMAIN_BY_LOCALE } from './constantsDomainLocales.js';
|
|
15
15
|
import cn from 'classnames';
|
|
16
|
-
import { C as Container$w } from './index-
|
|
17
|
-
import { L as Loading } from './index-
|
|
16
|
+
import { C as Container$w } from './index-e9415462.js';
|
|
17
|
+
import { L as Loading } from './index-f17b2c0b.js';
|
|
18
18
|
import { motion } from 'framer-motion';
|
|
19
19
|
import styled from '@emotion/styled';
|
|
20
|
-
import { M as MediaQueries } from './utils-
|
|
21
|
-
import { B as Button } from './index-
|
|
20
|
+
import { M as MediaQueries } from './utils-7fb93baf.js';
|
|
21
|
+
import { B as Button } from './index-88b1b525.js';
|
|
22
22
|
import { Remarkable } from 'remarkable';
|
|
23
23
|
import { ArrowRight } from '@hhgtech/icons/other';
|
|
24
24
|
import { useInView } from 'react-intersection-observer';
|
|
25
25
|
import { Box, Textarea } from '@mantine/core';
|
|
26
|
-
import { C as CommonGAssets } from './index-
|
|
26
|
+
import { C as CommonGAssets } from './index-0f6364d8.js';
|
|
27
27
|
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
28
|
-
import { d as LEAD_TOKEN_COOKIE } from './constants-
|
|
28
|
+
import { d as LEAD_TOKEN_COOKIE } from './constants-44b6bfd0.js';
|
|
29
29
|
import { v4 } from 'uuid';
|
|
30
|
-
import { T as Text } from './index-
|
|
30
|
+
import { T as Text } from './index-2aa860e4.js';
|
|
31
31
|
import { theme } from './miscTheme.js';
|
|
32
|
-
import { S as Select } from './index-
|
|
32
|
+
import { S as Select } from './index-fd74e24a.js';
|
|
33
33
|
import '@mantine/dates';
|
|
34
|
-
import './useMantineLocale-
|
|
35
|
-
import './index.styles-
|
|
36
|
-
import './translationsContext-
|
|
34
|
+
import './useMantineLocale-b5ac651f.js';
|
|
35
|
+
import './index.styles-c59d389f.js';
|
|
36
|
+
import './translationsContext-ba5f494a.js';
|
|
37
37
|
import '@mantine/hooks';
|
|
38
|
-
import './other-
|
|
39
|
-
import './index-
|
|
38
|
+
import './other-41db008a.js';
|
|
39
|
+
import './index-d1a2dc8f.js';
|
|
40
40
|
import isEmpty from 'lodash/isEmpty';
|
|
41
41
|
import { Controller, useForm, useFormState } from 'react-hook-form';
|
|
42
42
|
import PhoneInputBase, { getCountryCallingCode, isPossiblePhoneNumber, parsePhoneNumber } from 'react-phone-number-input';
|
|
43
43
|
import { LoadScript } from '@react-google-maps/api';
|
|
44
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY, a as GOOGLE_API_LANGUAGE } from './usePlacesAutocomplete-
|
|
44
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY, a as GOOGLE_API_LANGUAGE } from './usePlacesAutocomplete-50acf800.js';
|
|
45
45
|
import { setDefaultClass } from './miscDefaultClassWrapper.js';
|
|
46
|
-
import { L as LOCALE } from './Locale-
|
|
46
|
+
import { L as LOCALE } from './Locale-a047b32f.js';
|
|
47
47
|
import get from 'lodash/get';
|
|
48
|
-
import {
|
|
49
|
-
import { B as Button$1 } from './index-
|
|
50
|
-
import { D as Dropdown } from './index-
|
|
51
|
-
import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-
|
|
52
|
-
import { g as getURLwithSSOTracking } from './utils-
|
|
48
|
+
import { I as InputDate } from './InputDate-86119dfd.js';
|
|
49
|
+
import { B as Button$1 } from './index-f14dba41.js';
|
|
50
|
+
import { D as Dropdown } from './index-e962a389.js';
|
|
51
|
+
import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-bf8836f8.js';
|
|
52
|
+
import { g as getURLwithSSOTracking } from './utils-12a31cb9.js';
|
|
53
53
|
import 'date-fns/locale';
|
|
54
54
|
import './constantsSite.js';
|
|
55
55
|
import './constantsRiskScreener.js';
|
|
56
|
-
import './index-
|
|
56
|
+
import './index-0688cf27.js';
|
|
57
57
|
import './miscCookieHelper.js';
|
|
58
58
|
import 'slugify';
|
|
59
59
|
import './togetherApiPaths.js';
|
|
60
|
-
import './index-
|
|
61
|
-
import './WhatsApp-
|
|
62
|
-
import './Spinner-
|
|
63
|
-
import './index-
|
|
64
|
-
import './useScreenSize-
|
|
60
|
+
import './index-83296db9.js';
|
|
61
|
+
import './WhatsApp-690f4774.js';
|
|
62
|
+
import './Spinner-d99c754c.js';
|
|
63
|
+
import './index-e53afe5a.js';
|
|
64
|
+
import './useScreenSize-a28b4666.js';
|
|
65
65
|
import '@mantine/carousel';
|
|
66
|
-
import './useUniqueId-
|
|
66
|
+
import './useUniqueId-823f1e39.js';
|
|
67
67
|
import '@hhgtech/icons/core';
|
|
68
68
|
import '@mantine/notifications';
|
|
69
|
-
import '
|
|
70
|
-
import 'react-day-picker/DayPickerInput';
|
|
69
|
+
import '@emotion/react';
|
|
71
70
|
import 'zustand';
|
|
72
|
-
import './normalizeLink-
|
|
73
|
-
import './healthTools-
|
|
71
|
+
import './normalizeLink-6da98ce7.js';
|
|
72
|
+
import './healthTools-29a83507.js';
|
|
74
73
|
|
|
75
74
|
// extend fastdom
|
|
76
75
|
const fastdom = fd.extend(fastdomPromised);
|
|
@@ -3567,6 +3566,239 @@ const useAddressMultipleLevelData = (countryCode) => {
|
|
|
3567
3566
|
};
|
|
3568
3567
|
};
|
|
3569
3568
|
|
|
3569
|
+
const CheckCircleGreen = (props) => {
|
|
3570
|
+
return (React__default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3571
|
+
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.333 8A6.67 6.67 0 0 1 8 1.333 6.67 6.67 0 0 1 14.667 8 6.67 6.67 0 0 1 8 14.667 6.67 6.67 0 0 1 1.333 8m2.467.467 2.393 2.393c.26.26.687.26.94 0l5.06-5.06a.664.664 0 1 0-.94-.94L6.667 9.447 4.74 7.527a.664.664 0 1 0-.94.94", fill: "#00B16A" })));
|
|
3572
|
+
};
|
|
3573
|
+
|
|
3574
|
+
const IconEdit = (props) => {
|
|
3575
|
+
return (React__default.createElement("svg", Object.assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3576
|
+
React__default.createElement("path", { d: "M19.1719 2C18.4481 2 17.7244 2.27562 17.1719 2.82812L16 4L20 8L21.1719 6.82812C22.2759 5.72412 22.2759 3.93313 21.1719 2.82812C20.6194 2.27562 19.8956 2 19.1719 2ZM14.5 5.5L3 17V21H7L18.5 9.5L14.5 5.5Z", fill: "#2685F1" })));
|
|
3577
|
+
};
|
|
3578
|
+
|
|
3579
|
+
const InfoError = (props) => {
|
|
3580
|
+
return (React__default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3581
|
+
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1.333A6.67 6.67 0 0 0 1.333 8 6.67 6.67 0 0 0 8 14.667 6.67 6.67 0 0 0 14.667 8 6.67 6.67 0 0 0 8 1.333m0 7.334A.67.67 0 0 1 7.333 8V5.333c0-.366.3-.666.667-.666s.667.3.667.666V8c0 .367-.3.667-.667.667M7.333 10v1.333h1.334V10z", fill: "#F44D2C" })));
|
|
3582
|
+
};
|
|
3583
|
+
|
|
3584
|
+
const CountDown = ({ onFinish, onClick, isFinished, resendLabel, className }, ref) => {
|
|
3585
|
+
const [count, setCount] = useState(TIME_RESET_RESEND_OTP);
|
|
3586
|
+
const intervalId = useRef();
|
|
3587
|
+
const onFinishLatest = useRef();
|
|
3588
|
+
const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
|
|
3589
|
+
onFinishLatest.current = onFinish;
|
|
3590
|
+
const resetCountDown = useCallback(() => {
|
|
3591
|
+
let currentCount = TIME_RESET_RESEND_OTP;
|
|
3592
|
+
setCount(currentCount);
|
|
3593
|
+
clearInterval(intervalId.current);
|
|
3594
|
+
intervalId.current = setInterval(() => {
|
|
3595
|
+
var _a;
|
|
3596
|
+
currentCount = currentCount - 1;
|
|
3597
|
+
setCount(currentCount);
|
|
3598
|
+
if (currentCount === 0) {
|
|
3599
|
+
(_a = onFinishLatest.current) === null || _a === void 0 ? void 0 : _a.call(onFinishLatest, true);
|
|
3600
|
+
clearInterval(intervalId.current);
|
|
3601
|
+
}
|
|
3602
|
+
}, 1000);
|
|
3603
|
+
}, []);
|
|
3604
|
+
const cancelCountDown = useCallback(() => {
|
|
3605
|
+
setCount(0);
|
|
3606
|
+
clearInterval(intervalId.current);
|
|
3607
|
+
}, []);
|
|
3608
|
+
useImperativeHandle(ref, () => ({
|
|
3609
|
+
reset: resetCountDown,
|
|
3610
|
+
cancel: cancelCountDown,
|
|
3611
|
+
isFinished: count === 0,
|
|
3612
|
+
}));
|
|
3613
|
+
useEffect(() => {
|
|
3614
|
+
resetCountDown();
|
|
3615
|
+
return () => {
|
|
3616
|
+
clearInterval(intervalId.current);
|
|
3617
|
+
};
|
|
3618
|
+
}, []);
|
|
3619
|
+
return (React__default.createElement("div", { className: className, onClick: onClick },
|
|
3620
|
+
resendLabel
|
|
3621
|
+
? resendLabel
|
|
3622
|
+
: f({
|
|
3623
|
+
id: 'subot.resendOTP.button',
|
|
3624
|
+
defaultMessage: 'Resend',
|
|
3625
|
+
}),
|
|
3626
|
+
count > 0 && !isFinished && ` (${count}s)`));
|
|
3627
|
+
};
|
|
3628
|
+
var CountDown$1 = forwardRef(CountDown);
|
|
3629
|
+
|
|
3630
|
+
styled.div `
|
|
3631
|
+
margin: 0 auto;
|
|
3632
|
+
background: #f7f9fc;
|
|
3633
|
+
border-radius: ${theme.borderRadius};
|
|
3634
|
+
${MediaQueries.mbDown} {
|
|
3635
|
+
padding: 16px;
|
|
3636
|
+
}
|
|
3637
|
+
${MediaQueries.tdDown} {
|
|
3638
|
+
padding: 24px;
|
|
3639
|
+
}
|
|
3640
|
+
${MediaQueries.mbUp} {
|
|
3641
|
+
padding: 32px;
|
|
3642
|
+
}
|
|
3643
|
+
.user-info-form {
|
|
3644
|
+
.input-row {
|
|
3645
|
+
${MediaQueries.mbDown} {
|
|
3646
|
+
margin-bottom: 16px;
|
|
3647
|
+
}
|
|
3648
|
+
${MediaQueries.tdDown} {
|
|
3649
|
+
margin-bottom: 18px;
|
|
3650
|
+
}
|
|
3651
|
+
${MediaQueries.mbUp} {
|
|
3652
|
+
margin-bottom: 20px;
|
|
3653
|
+
}
|
|
3654
|
+
.address-dropdown > ul {
|
|
3655
|
+
z-index: 20000;
|
|
3656
|
+
max-height: 250px;
|
|
3657
|
+
overflow-y: auto;
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
&.error {
|
|
3661
|
+
margin-bottom: 0;
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
label {
|
|
3665
|
+
display: block;
|
|
3666
|
+
margin-bottom: 6px;
|
|
3667
|
+
color: ${theme.colors.gray600};
|
|
3668
|
+
font-size: 13px;
|
|
3669
|
+
font-weight: bold;
|
|
3670
|
+
}
|
|
3671
|
+
input[type='tel'],
|
|
3672
|
+
input[type='number'] {
|
|
3673
|
+
width: 100%;
|
|
3674
|
+
padding: 12px 16px;
|
|
3675
|
+
border: solid 1px ${theme.colors.gray200};
|
|
3676
|
+
background: #fff;
|
|
3677
|
+
border-radius: ${theme.borderRadius};
|
|
3678
|
+
|
|
3679
|
+
&[disabled] {
|
|
3680
|
+
background-color: ${theme.colors.gray100};
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
input[type='number']::-webkit-inner-spin-button,
|
|
3684
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
3685
|
+
-webkit-appearance: none;
|
|
3686
|
+
-moz-appearance: none;
|
|
3687
|
+
appearance: none;
|
|
3688
|
+
}
|
|
3689
|
+
button {
|
|
3690
|
+
width: 100%;
|
|
3691
|
+
}
|
|
3692
|
+
.error-message {
|
|
3693
|
+
display: block;
|
|
3694
|
+
padding-bottom: 20px;
|
|
3695
|
+
color: ${theme.colors.red700};
|
|
3696
|
+
font-weight: ${theme.sizes.fwRegular};
|
|
3697
|
+
}
|
|
3698
|
+
.submit-btn {
|
|
3699
|
+
padding: 12px 24px;
|
|
3700
|
+
background-color: ${theme.colors.primaryBase};
|
|
3701
|
+
border-radius: ${theme.borderRadius};
|
|
3702
|
+
color: #fff;
|
|
3703
|
+
cursor: pointer;
|
|
3704
|
+
font-size: 16px;
|
|
3705
|
+
font-weight: 700;
|
|
3706
|
+
line-height: 24px;
|
|
3707
|
+
transition: background-color 0.3s, border-color 0.3s;
|
|
3708
|
+
display: flex;
|
|
3709
|
+
justify-content: center;
|
|
3710
|
+
&:hover {
|
|
3711
|
+
background-color: ${theme.colors.primaryHover};
|
|
3712
|
+
}
|
|
3713
|
+
&[disabled] {
|
|
3714
|
+
background-color: ${theme.colors.gray200};
|
|
3715
|
+
color: #bfbfbf;
|
|
3716
|
+
cursor: not-allowed;
|
|
3717
|
+
}
|
|
3718
|
+
|
|
3719
|
+
.spinner {
|
|
3720
|
+
margin-right: 20px;
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
.submit-btn-row {
|
|
3724
|
+
${MediaQueries.mbUp} {
|
|
3725
|
+
margin-bottom: 16px;
|
|
3726
|
+
}
|
|
3727
|
+
${MediaQueries.tdDown} {
|
|
3728
|
+
margin-bottom: 14px;
|
|
3729
|
+
}
|
|
3730
|
+
${MediaQueries.mbDown} {
|
|
3731
|
+
margin-bottom: 12px;
|
|
3732
|
+
}
|
|
3733
|
+
.subot-checkbox {
|
|
3734
|
+
display: flex;
|
|
3735
|
+
align-items: flex-start;
|
|
3736
|
+
margin: 0;
|
|
3737
|
+
cursor: pointer;
|
|
3738
|
+
&__input {
|
|
3739
|
+
position: relative;
|
|
3740
|
+
display: block;
|
|
3741
|
+
overflow: hidden;
|
|
3742
|
+
width: 18px;
|
|
3743
|
+
height: 18px;
|
|
3744
|
+
box-sizing: border-box;
|
|
3745
|
+
padding: 0;
|
|
3746
|
+
margin-right: 10px;
|
|
3747
|
+
&:before {
|
|
3748
|
+
position: absolute;
|
|
3749
|
+
top: 0;
|
|
3750
|
+
right: 0;
|
|
3751
|
+
bottom: 0;
|
|
3752
|
+
left: 0;
|
|
3753
|
+
display: flex;
|
|
3754
|
+
background-color: ${theme.colors.primaryBase};
|
|
3755
|
+
background-image: url('data:image/svg+xml,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z" fill="%232D87F3" stroke="%232D87F3" stroke-width="2"/><path d="M15.5714 8L9.67857 14L7 11.2727" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
|
|
3756
|
+
background-position: center;
|
|
3757
|
+
background-repeat: no-repeat;
|
|
3758
|
+
background-size: 120%;
|
|
3759
|
+
content: '';
|
|
3760
|
+
opacity: 0;
|
|
3761
|
+
transition: 0.3s all ease;
|
|
3762
|
+
}
|
|
3763
|
+
&:checked:before {
|
|
3764
|
+
opacity: 1;
|
|
3765
|
+
transition: 0.3s all ease;
|
|
3766
|
+
}
|
|
3767
|
+
}
|
|
3768
|
+
&__label {
|
|
3769
|
+
flex: 1;
|
|
3770
|
+
font-weight: 400;
|
|
3771
|
+
line-height: 1.4;
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
}
|
|
3776
|
+
`;
|
|
3777
|
+
const StyleWrapperPhoneInput = styled.div `
|
|
3778
|
+
position: relative;
|
|
3779
|
+
|
|
3780
|
+
.PhoneInputCountry {
|
|
3781
|
+
background-color: #f2f2f2;
|
|
3782
|
+
|
|
3783
|
+
.PhoneInputCountrySelectArrow {
|
|
3784
|
+
display: none !important;
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
.icon-edit-phone {
|
|
3789
|
+
width: 1em;
|
|
3790
|
+
height: 1em;
|
|
3791
|
+
position: absolute;
|
|
3792
|
+
right: 16px;
|
|
3793
|
+
top: 17px;
|
|
3794
|
+
cursor: pointer;
|
|
3795
|
+
|
|
3796
|
+
path {
|
|
3797
|
+
fill: ${theme.colors.gray600};
|
|
3798
|
+
}
|
|
3799
|
+
}
|
|
3800
|
+
`;
|
|
3801
|
+
|
|
3570
3802
|
const Location = (props) => {
|
|
3571
3803
|
return (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3572
3804
|
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.167 7.72A5.83 5.83 0 0 1 10 1.889a5.83 5.83 0 0 1 5.833 5.833c0 3.475-3.683 8.267-5.191 10.092-.334.4-.942.4-1.275 0-1.517-1.825-5.2-6.617-5.2-10.092m3.75 0a2.084 2.084 0 1 0 4.168 0 2.084 2.084 0 0 0-4.168 0", fill: "#ADB3BC" })));
|
|
@@ -4110,6 +4342,27 @@ const StyledUserInfoFormContainer = styled.div `
|
|
|
4110
4342
|
text-decoration: none;
|
|
4111
4343
|
}
|
|
4112
4344
|
}
|
|
4345
|
+
|
|
4346
|
+
.subot_input_date {
|
|
4347
|
+
--input-height: 46px;
|
|
4348
|
+
--input-max-width: 100%;
|
|
4349
|
+
input[type='text'] {
|
|
4350
|
+
padding: 0 !important;
|
|
4351
|
+
background-color: transparent !important;
|
|
4352
|
+
background-image: none !important;
|
|
4353
|
+
border: none !important;
|
|
4354
|
+
line-height: 0.5;
|
|
4355
|
+
}
|
|
4356
|
+
|
|
4357
|
+
.input_date-input_container {
|
|
4358
|
+
background-color: #fff;
|
|
4359
|
+
|
|
4360
|
+
&:focus-within,
|
|
4361
|
+
&.input_date-input_shrink {
|
|
4362
|
+
--input-padding-y: 5px;
|
|
4363
|
+
}
|
|
4364
|
+
}
|
|
4365
|
+
}
|
|
4113
4366
|
}
|
|
4114
4367
|
|
|
4115
4368
|
&.si-form-revamp {
|
|
@@ -4254,239 +4507,6 @@ const getTransPleaseVerifiedOtp = () => {
|
|
|
4254
4507
|
return pleaseVerifiedOtp;
|
|
4255
4508
|
};
|
|
4256
4509
|
|
|
4257
|
-
const CheckCircleGreen = (props) => {
|
|
4258
|
-
return (React__default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
4259
|
-
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.333 8A6.67 6.67 0 0 1 8 1.333 6.67 6.67 0 0 1 14.667 8 6.67 6.67 0 0 1 8 14.667 6.67 6.67 0 0 1 1.333 8m2.467.467 2.393 2.393c.26.26.687.26.94 0l5.06-5.06a.664.664 0 1 0-.94-.94L6.667 9.447 4.74 7.527a.664.664 0 1 0-.94.94", fill: "#00B16A" })));
|
|
4260
|
-
};
|
|
4261
|
-
|
|
4262
|
-
const IconEdit = (props) => {
|
|
4263
|
-
return (React__default.createElement("svg", Object.assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
4264
|
-
React__default.createElement("path", { d: "M19.1719 2C18.4481 2 17.7244 2.27562 17.1719 2.82812L16 4L20 8L21.1719 6.82812C22.2759 5.72412 22.2759 3.93313 21.1719 2.82812C20.6194 2.27562 19.8956 2 19.1719 2ZM14.5 5.5L3 17V21H7L18.5 9.5L14.5 5.5Z", fill: "#2685F1" })));
|
|
4265
|
-
};
|
|
4266
|
-
|
|
4267
|
-
const InfoError = (props) => {
|
|
4268
|
-
return (React__default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
4269
|
-
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1.333A6.67 6.67 0 0 0 1.333 8 6.67 6.67 0 0 0 8 14.667 6.67 6.67 0 0 0 14.667 8 6.67 6.67 0 0 0 8 1.333m0 7.334A.67.67 0 0 1 7.333 8V5.333c0-.366.3-.666.667-.666s.667.3.667.666V8c0 .367-.3.667-.667.667M7.333 10v1.333h1.334V10z", fill: "#F44D2C" })));
|
|
4270
|
-
};
|
|
4271
|
-
|
|
4272
|
-
const CountDown = ({ onFinish, onClick, isFinished, resendLabel, className }, ref) => {
|
|
4273
|
-
const [count, setCount] = useState(TIME_RESET_RESEND_OTP);
|
|
4274
|
-
const intervalId = useRef();
|
|
4275
|
-
const onFinishLatest = useRef();
|
|
4276
|
-
const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
|
|
4277
|
-
onFinishLatest.current = onFinish;
|
|
4278
|
-
const resetCountDown = useCallback(() => {
|
|
4279
|
-
let currentCount = TIME_RESET_RESEND_OTP;
|
|
4280
|
-
setCount(currentCount);
|
|
4281
|
-
clearInterval(intervalId.current);
|
|
4282
|
-
intervalId.current = setInterval(() => {
|
|
4283
|
-
var _a;
|
|
4284
|
-
currentCount = currentCount - 1;
|
|
4285
|
-
setCount(currentCount);
|
|
4286
|
-
if (currentCount === 0) {
|
|
4287
|
-
(_a = onFinishLatest.current) === null || _a === void 0 ? void 0 : _a.call(onFinishLatest, true);
|
|
4288
|
-
clearInterval(intervalId.current);
|
|
4289
|
-
}
|
|
4290
|
-
}, 1000);
|
|
4291
|
-
}, []);
|
|
4292
|
-
const cancelCountDown = useCallback(() => {
|
|
4293
|
-
setCount(0);
|
|
4294
|
-
clearInterval(intervalId.current);
|
|
4295
|
-
}, []);
|
|
4296
|
-
useImperativeHandle(ref, () => ({
|
|
4297
|
-
reset: resetCountDown,
|
|
4298
|
-
cancel: cancelCountDown,
|
|
4299
|
-
isFinished: count === 0,
|
|
4300
|
-
}));
|
|
4301
|
-
useEffect(() => {
|
|
4302
|
-
resetCountDown();
|
|
4303
|
-
return () => {
|
|
4304
|
-
clearInterval(intervalId.current);
|
|
4305
|
-
};
|
|
4306
|
-
}, []);
|
|
4307
|
-
return (React__default.createElement("div", { className: className, onClick: onClick },
|
|
4308
|
-
resendLabel
|
|
4309
|
-
? resendLabel
|
|
4310
|
-
: f({
|
|
4311
|
-
id: 'subot.resendOTP.button',
|
|
4312
|
-
defaultMessage: 'Resend',
|
|
4313
|
-
}),
|
|
4314
|
-
count > 0 && !isFinished && ` (${count}s)`));
|
|
4315
|
-
};
|
|
4316
|
-
var CountDown$1 = forwardRef(CountDown);
|
|
4317
|
-
|
|
4318
|
-
styled.div `
|
|
4319
|
-
margin: 0 auto;
|
|
4320
|
-
background: #f7f9fc;
|
|
4321
|
-
border-radius: ${theme.borderRadius};
|
|
4322
|
-
${MediaQueries.mbDown} {
|
|
4323
|
-
padding: 16px;
|
|
4324
|
-
}
|
|
4325
|
-
${MediaQueries.tdDown} {
|
|
4326
|
-
padding: 24px;
|
|
4327
|
-
}
|
|
4328
|
-
${MediaQueries.mbUp} {
|
|
4329
|
-
padding: 32px;
|
|
4330
|
-
}
|
|
4331
|
-
.user-info-form {
|
|
4332
|
-
.input-row {
|
|
4333
|
-
${MediaQueries.mbDown} {
|
|
4334
|
-
margin-bottom: 16px;
|
|
4335
|
-
}
|
|
4336
|
-
${MediaQueries.tdDown} {
|
|
4337
|
-
margin-bottom: 18px;
|
|
4338
|
-
}
|
|
4339
|
-
${MediaQueries.mbUp} {
|
|
4340
|
-
margin-bottom: 20px;
|
|
4341
|
-
}
|
|
4342
|
-
.address-dropdown > ul {
|
|
4343
|
-
z-index: 20000;
|
|
4344
|
-
max-height: 250px;
|
|
4345
|
-
overflow-y: auto;
|
|
4346
|
-
}
|
|
4347
|
-
|
|
4348
|
-
&.error {
|
|
4349
|
-
margin-bottom: 0;
|
|
4350
|
-
}
|
|
4351
|
-
}
|
|
4352
|
-
label {
|
|
4353
|
-
display: block;
|
|
4354
|
-
margin-bottom: 6px;
|
|
4355
|
-
color: ${theme.colors.gray600};
|
|
4356
|
-
font-size: 13px;
|
|
4357
|
-
font-weight: bold;
|
|
4358
|
-
}
|
|
4359
|
-
input[type='tel'],
|
|
4360
|
-
input[type='number'] {
|
|
4361
|
-
width: 100%;
|
|
4362
|
-
padding: 12px 16px;
|
|
4363
|
-
border: solid 1px ${theme.colors.gray200};
|
|
4364
|
-
background: #fff;
|
|
4365
|
-
border-radius: ${theme.borderRadius};
|
|
4366
|
-
|
|
4367
|
-
&[disabled] {
|
|
4368
|
-
background-color: ${theme.colors.gray100};
|
|
4369
|
-
}
|
|
4370
|
-
}
|
|
4371
|
-
input[type='number']::-webkit-inner-spin-button,
|
|
4372
|
-
input[type='number']::-webkit-outer-spin-button {
|
|
4373
|
-
-webkit-appearance: none;
|
|
4374
|
-
-moz-appearance: none;
|
|
4375
|
-
appearance: none;
|
|
4376
|
-
}
|
|
4377
|
-
button {
|
|
4378
|
-
width: 100%;
|
|
4379
|
-
}
|
|
4380
|
-
.error-message {
|
|
4381
|
-
display: block;
|
|
4382
|
-
padding-bottom: 20px;
|
|
4383
|
-
color: ${theme.colors.red700};
|
|
4384
|
-
font-weight: ${theme.sizes.fwRegular};
|
|
4385
|
-
}
|
|
4386
|
-
.submit-btn {
|
|
4387
|
-
padding: 12px 24px;
|
|
4388
|
-
background-color: ${theme.colors.primaryBase};
|
|
4389
|
-
border-radius: ${theme.borderRadius};
|
|
4390
|
-
color: #fff;
|
|
4391
|
-
cursor: pointer;
|
|
4392
|
-
font-size: 16px;
|
|
4393
|
-
font-weight: 700;
|
|
4394
|
-
line-height: 24px;
|
|
4395
|
-
transition: background-color 0.3s, border-color 0.3s;
|
|
4396
|
-
display: flex;
|
|
4397
|
-
justify-content: center;
|
|
4398
|
-
&:hover {
|
|
4399
|
-
background-color: ${theme.colors.primaryHover};
|
|
4400
|
-
}
|
|
4401
|
-
&[disabled] {
|
|
4402
|
-
background-color: ${theme.colors.gray200};
|
|
4403
|
-
color: #bfbfbf;
|
|
4404
|
-
cursor: not-allowed;
|
|
4405
|
-
}
|
|
4406
|
-
|
|
4407
|
-
.spinner {
|
|
4408
|
-
margin-right: 20px;
|
|
4409
|
-
}
|
|
4410
|
-
}
|
|
4411
|
-
.submit-btn-row {
|
|
4412
|
-
${MediaQueries.mbUp} {
|
|
4413
|
-
margin-bottom: 16px;
|
|
4414
|
-
}
|
|
4415
|
-
${MediaQueries.tdDown} {
|
|
4416
|
-
margin-bottom: 14px;
|
|
4417
|
-
}
|
|
4418
|
-
${MediaQueries.mbDown} {
|
|
4419
|
-
margin-bottom: 12px;
|
|
4420
|
-
}
|
|
4421
|
-
.subot-checkbox {
|
|
4422
|
-
display: flex;
|
|
4423
|
-
align-items: flex-start;
|
|
4424
|
-
margin: 0;
|
|
4425
|
-
cursor: pointer;
|
|
4426
|
-
&__input {
|
|
4427
|
-
position: relative;
|
|
4428
|
-
display: block;
|
|
4429
|
-
overflow: hidden;
|
|
4430
|
-
width: 18px;
|
|
4431
|
-
height: 18px;
|
|
4432
|
-
box-sizing: border-box;
|
|
4433
|
-
padding: 0;
|
|
4434
|
-
margin-right: 10px;
|
|
4435
|
-
&:before {
|
|
4436
|
-
position: absolute;
|
|
4437
|
-
top: 0;
|
|
4438
|
-
right: 0;
|
|
4439
|
-
bottom: 0;
|
|
4440
|
-
left: 0;
|
|
4441
|
-
display: flex;
|
|
4442
|
-
background-color: ${theme.colors.primaryBase};
|
|
4443
|
-
background-image: url('data:image/svg+xml,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z" fill="%232D87F3" stroke="%232D87F3" stroke-width="2"/><path d="M15.5714 8L9.67857 14L7 11.2727" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
|
|
4444
|
-
background-position: center;
|
|
4445
|
-
background-repeat: no-repeat;
|
|
4446
|
-
background-size: 120%;
|
|
4447
|
-
content: '';
|
|
4448
|
-
opacity: 0;
|
|
4449
|
-
transition: 0.3s all ease;
|
|
4450
|
-
}
|
|
4451
|
-
&:checked:before {
|
|
4452
|
-
opacity: 1;
|
|
4453
|
-
transition: 0.3s all ease;
|
|
4454
|
-
}
|
|
4455
|
-
}
|
|
4456
|
-
&__label {
|
|
4457
|
-
flex: 1;
|
|
4458
|
-
font-weight: 400;
|
|
4459
|
-
line-height: 1.4;
|
|
4460
|
-
}
|
|
4461
|
-
}
|
|
4462
|
-
}
|
|
4463
|
-
}
|
|
4464
|
-
`;
|
|
4465
|
-
const StyleWrapperPhoneInput = styled.div `
|
|
4466
|
-
position: relative;
|
|
4467
|
-
|
|
4468
|
-
.PhoneInputCountry {
|
|
4469
|
-
background-color: #f2f2f2;
|
|
4470
|
-
|
|
4471
|
-
.PhoneInputCountrySelectArrow {
|
|
4472
|
-
display: none !important;
|
|
4473
|
-
}
|
|
4474
|
-
}
|
|
4475
|
-
|
|
4476
|
-
.icon-edit-phone {
|
|
4477
|
-
width: 1em;
|
|
4478
|
-
height: 1em;
|
|
4479
|
-
position: absolute;
|
|
4480
|
-
right: 16px;
|
|
4481
|
-
top: 17px;
|
|
4482
|
-
cursor: pointer;
|
|
4483
|
-
|
|
4484
|
-
path {
|
|
4485
|
-
fill: ${theme.colors.gray600};
|
|
4486
|
-
}
|
|
4487
|
-
}
|
|
4488
|
-
`;
|
|
4489
|
-
|
|
4490
4510
|
var _a, _b, _c, _d, _e;
|
|
4491
4511
|
const StyledPhoneCode = styled.div `
|
|
4492
4512
|
display: flex;
|
|
@@ -4612,9 +4632,9 @@ const PhoneInputWithCode = (props) => {
|
|
|
4612
4632
|
return (React__default.createElement(StyledPhoneInputWithCode, Object.assign({}, props, { flagComponent: FlagComponent })));
|
|
4613
4633
|
};
|
|
4614
4634
|
|
|
4615
|
-
const DOB = ({ action, setValue, trigger, register, errors, botId, }) => {
|
|
4635
|
+
const DOB = ({ action, setValue, trigger, register, errors, botId, isDirty, isSubmitted, locale: localeProps, dateFormat, label: inputDateLabel, }) => {
|
|
4616
4636
|
const { id, key, label } = action !== null && action !== void 0 ? action : {};
|
|
4617
|
-
const locale = GlobalData === null || GlobalData === void 0 ? void 0 : GlobalData.locale;
|
|
4637
|
+
const locale = localeProps || (GlobalData === null || GlobalData === void 0 ? void 0 : GlobalData.locale);
|
|
4618
4638
|
const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
|
|
4619
4639
|
/**
|
|
4620
4640
|
* Temporary hard for Durgo Campaign at this time
|
|
@@ -4626,23 +4646,38 @@ const DOB = ({ action, setValue, trigger, register, errors, botId, }) => {
|
|
|
4626
4646
|
const error = get(errors, key);
|
|
4627
4647
|
const dobErrMsg = get(error, 'message');
|
|
4628
4648
|
const handleOnChange = (_value) => {
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
trigger(key);
|
|
4649
|
+
setValue(action.key, _value);
|
|
4650
|
+
trigger(action.key);
|
|
4632
4651
|
};
|
|
4633
4652
|
return (React__default.createElement("div", { className: "input-row", key: id },
|
|
4634
4653
|
React__default.createElement("label", { htmlFor: key }, label),
|
|
4635
4654
|
React__default.createElement(StyleDatePickerInput, null,
|
|
4636
|
-
React__default.createElement(
|
|
4655
|
+
React__default.createElement(InputDate, { label: inputDateLabel, locale: locale, onChange: handleOnChange, error: Boolean(error && (isDirty || isSubmitted)), className: "subot_input subot_input_date" }),
|
|
4637
4656
|
React__default.createElement("input", Object.assign({ id: id, type: "date", className: "input-date" }, register(key, {
|
|
4638
|
-
required: true,
|
|
4639
4657
|
validate: {
|
|
4640
|
-
ageRange: (value) =>
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4658
|
+
ageRange: (value) => {
|
|
4659
|
+
if (value === null || !value) {
|
|
4660
|
+
return f({
|
|
4661
|
+
id: 'validation.error.requiredField',
|
|
4662
|
+
defaultMessage: 'This field is required',
|
|
4663
|
+
});
|
|
4664
|
+
}
|
|
4665
|
+
const dayInJs = typeof value === 'string'
|
|
4666
|
+
? dayjs(value, dateFormat, true)
|
|
4667
|
+
: dayjs(value);
|
|
4668
|
+
if (!dayInJs.isValid()) {
|
|
4669
|
+
return f({
|
|
4670
|
+
id: 'error.day.invalid',
|
|
4671
|
+
defaultMessage: 'This date is not valid, please update.',
|
|
4672
|
+
});
|
|
4673
|
+
}
|
|
4674
|
+
return isDurgoCampaign
|
|
4675
|
+
? validateAge(value, f({
|
|
4676
|
+
id: 'validation.error.requiredAgeGroup',
|
|
4677
|
+
defaultMessage: 'Sorry, your child is not in the required Age Group.',
|
|
4678
|
+
}))
|
|
4679
|
+
: true;
|
|
4680
|
+
},
|
|
4646
4681
|
},
|
|
4647
4682
|
})))),
|
|
4648
4683
|
error && (React__default.createElement("p", { className: "error-message" }, dobErrMsg ||
|
|
@@ -4773,8 +4808,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4773
4808
|
return NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE === action.type;
|
|
4774
4809
|
});
|
|
4775
4810
|
}, [actions]);
|
|
4811
|
+
const { dateFormat, labelInputDate } = useMemo(() => {
|
|
4812
|
+
const { dateFormat } = (ISO_FORMAT === null || ISO_FORMAT === void 0 ? void 0 : ISO_FORMAT[locale]) || ISO_FORMAT['vi-VN'];
|
|
4813
|
+
return {
|
|
4814
|
+
dateFormat,
|
|
4815
|
+
labelInputDate: dateFormat
|
|
4816
|
+
.split('/')
|
|
4817
|
+
.map((key) => f(COMMON_DATE_TRANSLATE_KEY === null || COMMON_DATE_TRANSLATE_KEY === void 0 ? void 0 : COMMON_DATE_TRANSLATE_KEY[key])),
|
|
4818
|
+
};
|
|
4819
|
+
}, [locale, f]);
|
|
4776
4820
|
const inputType = ELEMENT_CONTROL_INPUT_TYPE;
|
|
4777
|
-
const { register, handleSubmit, watch, formState: { errors }, control, setValue, setError, clearErrors, getValues, trigger, } = useForm({ defaultValues: defaultFormValues });
|
|
4821
|
+
const { register, handleSubmit, watch, formState: { errors, isDirty, isSubmitted }, control, setValue, setError, clearErrors, getValues, trigger, } = useForm({ defaultValues: defaultFormValues });
|
|
4778
4822
|
const formState = useFormState({ control });
|
|
4779
4823
|
const isDurgoCampaign = isDurgoCampaignFn(botId);
|
|
4780
4824
|
const setSubmitData = (data) => {
|
|
@@ -5079,7 +5123,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5079
5123
|
}))))))));
|
|
5080
5124
|
};
|
|
5081
5125
|
const renderFormInput = (action, index) => {
|
|
5082
|
-
var _a;
|
|
5126
|
+
var _a, _b;
|
|
5083
5127
|
if (!action.key) {
|
|
5084
5128
|
return null;
|
|
5085
5129
|
}
|
|
@@ -5148,16 +5192,35 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5148
5192
|
return (React__default.createElement("div", { className: "input-row", key: action.id },
|
|
5149
5193
|
React__default.createElement("label", { htmlFor: action.key }, action.label),
|
|
5150
5194
|
React__default.createElement(StyleDatePickerInput, null,
|
|
5151
|
-
React__default.createElement(
|
|
5152
|
-
|
|
5153
|
-
setValue(action.key, dateString);
|
|
5195
|
+
React__default.createElement(InputDate, { label: labelInputDate, locale: locale, onChange: (val) => {
|
|
5196
|
+
setValue(action.key, val);
|
|
5154
5197
|
trigger(action.key);
|
|
5155
|
-
} }),
|
|
5156
|
-
React__default.createElement("input", Object.assign({ id: action.id, type: "date", className: "input-date" }, register(action.key, {
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5198
|
+
}, error: Boolean(errors[action.key] && (isDirty || isSubmitted)), className: "subot_input subot_input_date" }),
|
|
5199
|
+
React__default.createElement("input", Object.assign({ id: action.id, type: "date", className: "input-date" }, register(action.key, {
|
|
5200
|
+
validate: {
|
|
5201
|
+
validDate: (value) => {
|
|
5202
|
+
if (value === null || !value) {
|
|
5203
|
+
return f({
|
|
5204
|
+
id: 'validation.error.requiredField',
|
|
5205
|
+
defaultMessage: 'This field is required',
|
|
5206
|
+
});
|
|
5207
|
+
}
|
|
5208
|
+
const dayInJs = typeof value === 'string'
|
|
5209
|
+
? dayjs(value, dateFormat, true)
|
|
5210
|
+
: dayjs(value);
|
|
5211
|
+
if (!dayInJs.isValid()) {
|
|
5212
|
+
return f({
|
|
5213
|
+
id: 'error.day.invalid',
|
|
5214
|
+
defaultMessage: 'This date is not valid, please update.',
|
|
5215
|
+
});
|
|
5216
|
+
}
|
|
5217
|
+
else {
|
|
5218
|
+
return true;
|
|
5219
|
+
}
|
|
5220
|
+
},
|
|
5221
|
+
},
|
|
5222
|
+
})))),
|
|
5223
|
+
errors[action.key] && (isDirty || isSubmitted) && (React__default.createElement("p", { className: "error-message" }, (_b = errors === null || errors === void 0 ? void 0 : errors[action.key]) === null || _b === void 0 ? void 0 : _b.message))));
|
|
5161
5224
|
case NodeActionType.USER_SUBMIT_BMI:
|
|
5162
5225
|
return (React__default.createElement("div", { key: action.id },
|
|
5163
5226
|
React__default.createElement("div", { className: "input-row", key: `${action.id}-weight` },
|
|
@@ -5270,7 +5333,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5270
5333
|
case NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS:
|
|
5271
5334
|
return (React__default.createElement(GoogleAddressField$1, { action: action, control: control, formError: errors[action.key], key: action.id, initValue: defaultFormValues === null || defaultFormValues === void 0 ? void 0 : defaultFormValues[action.key], onChange: setValue }));
|
|
5272
5335
|
case NodeActionType.USER_SUBMIT_DOB:
|
|
5273
|
-
return (React__default.createElement(DOB, { action: action, setValue: setValue, trigger: trigger, register: register, errors: errors, botId: botId }));
|
|
5336
|
+
return (React__default.createElement(DOB, { action: action, setValue: setValue, trigger: trigger, register: register, errors: errors, botId: botId, isDirty: isDirty, isSubmitted: isSubmitted, locale: locale, dateFormat: dateFormat, label: labelInputDate }));
|
|
5274
5337
|
default:
|
|
5275
5338
|
return '';
|
|
5276
5339
|
}
|