@hhgtech/hhg-components 1.29.363-beta-2 → 1.29.363-beta-3
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-a6f2444f.js +416 -0
- package/build/{LastPeriod-5a8c3943.js → LastPeriod-f1a6a8db.js} +1 -1
- package/build/{MobileBottomNavigationIcon-207a698b.js → MobileBottomNavigationIcon-d81a8501.js} +3 -3
- package/build/{Spinner-3ba389bd.js → Spinner-ccf5f61b.js} +1 -1
- package/build/{WhatsApp-a51ca5c2.js → WhatsApp-8e6f2318.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 +12 -4
- package/build/components/atoms/inputDate/InputDate.helpers.d.ts +5 -3
- package/build/components/atoms/inputMB/index.styled.d.ts +2 -2
- package/build/components.js +122 -121
- package/build/constants/keyCode.d.ts +5 -0
- package/build/{constants-fad1fffc.js → constants-c581fdb7.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-02748f1b.js → core-9a86588a.js} +1 -1
- package/build/{dataTransform-67484afe.js → dataTransform-8f1f0c24.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-61e1ee70.js → editor-88b85ba4.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-51af2684.js +407 -0
- package/build/esm/{LastPeriod-f3af54fc.js → LastPeriod-319bb9db.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-b4341308.js → MobileBottomNavigationIcon-f4e58b49.js} +3 -3
- package/build/esm/{Spinner-0298b82b.js → Spinner-3e658dc8.js} +1 -1
- package/build/esm/{WhatsApp-efa068c0.js → WhatsApp-fb45494c.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 +12 -4
- package/build/esm/components/atoms/inputDate/InputDate.helpers.d.ts +5 -3
- package/build/esm/components/atoms/inputMB/index.styled.d.ts +2 -2
- package/build/esm/components.js +98 -98
- package/build/esm/constants/keyCode.d.ts +5 -0
- package/build/esm/{constants-6aacdd91.js → constants-cf525f2a.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-f2d1b142.js → core-2d90dd0b.js} +1 -1
- package/build/esm/{dataTransform-e0374169.js → dataTransform-a235d71c.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-307e4245.js → editor-7cfa5b18.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-e11d8c40.js → healthTools-79a6e24d.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-ccadcec2.js → index-02219477.js} +13 -13
- package/build/esm/{index-5a187c93.js → index-03576769.js} +3 -3
- package/build/esm/{index-210ce8b0.js → index-060e985e.js} +3 -3
- package/build/esm/{index-11cca018.js → index-09684923.js} +3 -3
- package/build/esm/{index-b5c6334e.js → index-171c2e31.js} +2 -2
- package/build/esm/{index-d4646e3d.js → index-18a0efcc.js} +32 -32
- package/build/esm/{index-8ddfd18a.js → index-19508fe9.js} +10 -10
- package/build/esm/{index-788c566d.js → index-1d983e56.js} +13 -13
- package/build/esm/{index-8bc51d52.js → index-1f68943e.js} +17 -17
- package/build/esm/{index-93ec5b2e.js → index-2296e02a.js} +9 -3
- package/build/esm/{index-65ac2253.js → index-24967b27.js} +2 -2
- package/build/esm/{index-b18c58a9.js → index-2affa750.js} +2 -2
- package/build/esm/{index-0a4d6557.js → index-2e9fc653.js} +2 -2
- package/build/esm/{index-cb21d795.js → index-303addaf.js} +22 -22
- package/build/esm/{index-9a47a4e6.js → index-309bb1fb.js} +10 -10
- package/build/esm/{index-3ec65283.js → index-3d4a4d89.js} +2 -2
- package/build/esm/{index-7afb0f71.js → index-3d8a002f.js} +25 -25
- package/build/esm/{index-604f05de.js → index-48bf9bbd.js} +11 -11
- package/build/esm/{index-11439dc9.js → index-4aa74099.js} +1 -1
- package/build/esm/{index-2e51f817.js → index-4c1d4b7b.js} +5 -5
- package/build/esm/{index-da2b081a.js → index-51171df6.js} +2 -2
- package/build/esm/{index-7b9e192c.js → index-522f0c69.js} +16 -16
- package/build/esm/{index-bbfce259.js → index-534ad49d.js} +17 -17
- package/build/esm/{index-0648ed84.js → index-55d42654.js} +4 -4
- package/build/esm/{index-b677c583.js → index-5624d938.js} +6 -6
- package/build/esm/{index-f2b171ea.js → index-56376857.js} +21 -21
- package/build/esm/{index-02ea3397.js → index-5abd5301.js} +32 -32
- package/build/esm/{index-6bcb32b1.js → index-66ef1e57.js} +16 -16
- package/build/esm/{index-5aea7cba.js → index-682678ce.js} +1 -1
- package/build/esm/{index-0f103e17.js → index-6a741290.js} +13 -13
- package/build/esm/{index-23ec4c46.js → index-6e83cdbb.js} +13 -13
- package/build/esm/{index-6ff9d8b1.js → index-757a455a.js} +6 -6
- package/build/esm/{index-adb35478.js → index-767dd0b2.js} +1 -1
- package/build/esm/{index-ae8d867f.js → index-771899ae.js} +16 -16
- package/build/esm/{index-ceb32282.js → index-7bd543d5.js} +1 -1
- package/build/esm/{index-6eaf9511.js → index-7be6e487.js} +625 -27
- package/build/esm/{index-d4fe5292.js → index-7d757fc7.js} +3 -3
- package/build/esm/{index-12459101.js → index-7fe11f88.js} +1 -1
- package/build/esm/{index-237bc822.js → index-804da9e4.js} +2 -2
- package/build/esm/{index-98857677.js → index-807ae9a6.js} +7 -7
- package/build/esm/{index-898f2acd.js → index-890e8872.js} +18 -18
- package/build/esm/{index-6559dc36.js → index-89eca5e6.js} +2 -2
- package/build/esm/{index-17ac470b.js → index-8aafd8bc.js} +2 -2
- package/build/esm/{index-557d3ed0.js → index-8c09d7b4.js} +2 -2
- package/build/esm/{index-02224a14.js → index-94ccb6f4.js} +15 -15
- package/build/esm/{index-d1aa5e3f.js → index-a1ca2db9.js} +6 -6
- package/build/esm/{index-a1fea6d1.js → index-a595cbbc.js} +2 -2
- package/build/esm/{index-d991f561.js → index-ad8189db.js} +16 -16
- package/build/esm/{index-16ef681b.js → index-aff2c1ad.js} +1 -1
- package/build/esm/{index-362986ed.js → index-b4b5c686.js} +2 -2
- package/build/esm/{index-69b802dc.js → index-b627eaf0.js} +2 -2
- package/build/esm/{index-37c61b61.js → index-b6f97965.js} +7 -7
- package/build/esm/{index-559a9d96.js → index-b7f005a0.js} +5 -5
- package/build/esm/{index-e93c24ae.js → index-ca42e594.js} +18 -18
- package/build/esm/{index-0f5d0964.js → index-da3960e8.js} +1 -1
- package/build/esm/{index-7aee63c6.js → index-e18908df.js} +1 -1
- package/build/esm/{index-b20b8de7.js → index-e3528c22.js} +6 -6
- package/build/esm/{index-456a994b.js → index-e85b3808.js} +17 -17
- package/build/esm/{index-3968ffce.js → index-e96c012b.js} +17 -17
- package/build/esm/{index-88be0d54.js → index-f050371f.js} +31 -31
- package/build/esm/{index-09106ef1.js → index-f140ddab.js} +2 -2
- package/build/esm/{index-28f1bf6d.js → index-f6efc532.js} +6 -6
- package/build/esm/{index-941ba2e6.js → index-f93ed548.js} +3 -3
- package/build/esm/{index-1ace556a.js → index-fa6eab31.js} +3 -3
- package/build/esm/index.js +119 -119
- package/build/esm/interfaces/types/Subot.d.ts +2 -0
- package/build/esm/interfaces/types/index.d.ts +14 -0
- package/build/esm/{labelSorting-f4fd8b95.js → labelSorting-e7dafad7.js} +4 -4
- package/build/esm/lead.js +25 -25
- package/build/esm/{logoIcon-c4dd0b72.js → logoIcon-60f4814c.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-28dc2a06.js → post-060f811d.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.js +29 -29
- package/build/esm/{store-634ac140.js → store-586dee6f.js} +4 -4
- package/build/esm/subot/components/dob/utils.d.ts +4 -2
- package/build/esm/subot/components/userInfoForm/utils.d.ts +2 -0
- package/build/esm/subot.js +446 -340
- package/build/esm/surveyOrPremiumBanner.js +32 -32
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-9abc91ae.js → surveyThankyouCard-c737d201.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-abc4468c.js → treePopoverMenu-26cce3af.js} +19 -19
- package/build/esm/{types-7871a711.js → types-a45736bc.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-7a825ced.js → useCategory-e2f313db.js} +5 -5
- package/build/esm/{useHealthToolCache-e33e3bc1.js → useHealthToolCache-36957b6c.js} +1 -1
- package/build/esm/{useMantineLocale-a0bcddb3.js → useMantineLocale-4ff5a689.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-b6c107d2.js → usePlacesAutocomplete-6015f4c1.js} +1 -1
- package/build/esm/{useScreenSize-f635e8cb.js → useScreenSize-910c8178.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-451e874d.js → utils-225848a7.js} +2 -2
- package/build/esm/{utils-7554ea1d.js → utils-265c227d.js} +3 -3
- package/build/esm/{utils-033c7376.js → utils-6918da4d.js} +4 -4
- package/build/esm/{utils-081bb9df.js → utils-da9b7f54.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-d3486cb8.js → healthTools-e294bc9c.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-eece4f63.js → index-02f69dfc.js} +2 -2
- package/build/{index-59c050f9.js → index-0732cbb1.js} +18 -18
- package/build/{index-83b294d8.js → index-1082cfde.js} +4 -4
- package/build/{index-939e6ff2.js → index-195f30a9.js} +3 -3
- package/build/{index-586247dd.js → index-1aac163c.js} +6 -6
- package/build/{index-d8ae0ca3.js → index-1dd21577.js} +3 -3
- package/build/{index-477cebbf.js → index-2082b8f7.js} +1 -1
- package/build/{index-df704fb7.js → index-222ab92f.js} +1 -1
- package/build/{index-d683460e.js → index-2a6dcca0.js} +2 -2
- package/build/{index-820182ce.js → index-2b137365.js} +22 -22
- package/build/{index-5d475bf7.js → index-3e2d03d4.js} +3 -3
- package/build/{index-601e9d3d.js → index-3ead85b4.js} +3 -3
- package/build/{index-694ad052.js → index-3ed3c53b.js} +2 -2
- package/build/{index-1094ba9f.js → index-40fbb92d.js} +6 -6
- package/build/{index-b019a673.js → index-4246c6f6.js} +5 -5
- package/build/{index-8cd230c0.js → index-48bd20be.js} +2 -2
- package/build/{index-b1a33709.js → index-4c830091.js} +1 -1
- package/build/{index-379bc84b.js → index-4cfe9cf3.js} +1 -1
- package/build/{index-811237e6.js → index-50e8fd36.js} +2 -2
- package/build/{index-b30b70e4.js → index-5ccc4f10.js} +15 -15
- package/build/{index-7a9fef76.js → index-5d82a67f.js} +1 -1
- package/build/{index-19b56561.js → index-5ee487c2.js} +13 -13
- package/build/{index-e6971cde.js → index-5f06352f.js} +17 -17
- package/build/{index-e67dced7.js → index-5f97737b.js} +3 -3
- package/build/{index-0aa1fd2d.js → index-67a3d93e.js} +25 -25
- package/build/{index-68a9d876.js → index-6816c75e.js} +7 -7
- package/build/{index-74fe05ae.js → index-6a03b331.js} +17 -17
- package/build/{index-0557f8b1.js → index-6c357272.js} +16 -16
- package/build/{index-ad5d2089.js → index-7100e8ec.js} +625 -25
- package/build/{index-2e487c4d.js → index-760e8e45.js} +3 -3
- package/build/{index-8d800d85.js → index-7bbbfb6e.js} +2 -2
- package/build/{index-e4cec4f5.js → index-7fe2aa2e.js} +13 -13
- package/build/{index-dbf114c2.js → index-8083b641.js} +31 -31
- package/build/{index-c7d67076.js → index-80f5bfe9.js} +32 -32
- package/build/{index-44c5aa9a.js → index-8250d2c6.js} +2 -2
- package/build/{index-fa3f413f.js → index-87db1cc3.js} +17 -17
- package/build/{index-bd05dbf6.js → index-8859df44.js} +6 -6
- package/build/{index-f6c79b96.js → index-88670b39.js} +13 -13
- package/build/{index-39286805.js → index-944b7795.js} +2 -2
- package/build/{index-83a94c19.js → index-98e3e7c9.js} +2 -2
- package/build/{index-c575afc3.js → index-997ac4e2.js} +10 -10
- package/build/{index-43047b5b.js → index-9c3d4488.js} +32 -32
- package/build/{index-9a1f7bc8.js → index-a1fc24a7.js} +17 -17
- package/build/{index-236862a0.js → index-a8a739e2.js} +16 -16
- package/build/{index-0ccabfcb.js → index-a9aae3f0.js} +7 -7
- package/build/{index-bd051fff.js → index-aab0760b.js} +16 -16
- package/build/{index-c1d46b0c.js → index-abc61ed7.js} +10 -10
- package/build/{index-d80e8f3d.js → index-b135b21f.js} +13 -13
- package/build/{index-6d0d2d4d.js → index-b13fa05d.js} +11 -11
- package/build/{index-7b6cfd1b.js → index-b1cf1ae4.js} +2 -2
- package/build/{index-5982a317.js → index-b2fdb8e7.js} +1 -1
- package/build/{index-7a975bd0.js → index-b5975fac.js} +2 -2
- package/build/{index-80aa9c27.js → index-b854657c.js} +16 -16
- package/build/{index-10110bb0.js → index-bb30d5ef.js} +2 -2
- package/build/{index-d402790d.js → index-bd0178b9.js} +1 -1
- package/build/{index-e496687e.js → index-bd683117.js} +18 -18
- package/build/{index-f94d96b0.js → index-c5e0f64d.js} +2 -2
- package/build/{index-03bcc518.js → index-c797ac77.js} +6 -6
- package/build/{index-a5839380.js → index-d64c4110.js} +2 -2
- package/build/{index-0608ea5e.js → index-d7592554.js} +9 -2
- package/build/{index-59f36b09.js → index-e05f2182.js} +6 -6
- package/build/{index-47e6f205.js → index-ea3eb257.js} +1 -1
- package/build/{index-2053a97c.js → index-ec415a76.js} +5 -5
- package/build/{index-7e8ad157.js → index-f78977b5.js} +21 -21
- package/build/index.js +165 -164
- package/build/interfaces/types/Subot.d.ts +2 -0
- package/build/interfaces/types/index.d.ts +14 -0
- package/build/{labelSorting-89b6153d.js → labelSorting-aaaff1d8.js} +4 -4
- package/build/lead.js +25 -25
- package/build/{logoIcon-cbf7d0fc.js → logoIcon-657590dd.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-5e97326e.js → post-9e490dce.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2.js +27 -27
- package/build/{store-389f5e92.js → store-3e761bee.js} +4 -4
- package/build/subot/components/dob/utils.d.ts +4 -2
- package/build/subot/components/userInfoForm/utils.d.ts +2 -0
- package/build/subot.js +449 -344
- package/build/surveyOrPremiumBanner.js +32 -32
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-8a0c8ba6.js → surveyThankyouCard-e41b3e2b.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-1689f04d.js → treePopoverMenu-778b036b.js} +19 -19
- package/build/{types-99b86a9e.js → types-356d8d71.js} +2 -2
- package/build/types.js +3 -2
- package/build/{useCategory-93c5eacf.js → useCategory-43855c38.js} +5 -5
- package/build/{useHealthToolCache-24c65782.js → useHealthToolCache-282d18c1.js} +1 -1
- package/build/{useMantineLocale-38878107.js → useMantineLocale-7934b8c5.js} +6 -6
- package/build/{usePlacesAutocomplete-7d230bda.js → usePlacesAutocomplete-730b5034.js} +1 -1
- package/build/{useScreenSize-4b3a1f5f.js → useScreenSize-c5222348.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-5cf949ba.js → utils-0ff94298.js} +2 -2
- package/build/{utils-117b8c86.js → utils-8f3e3d3c.js} +3 -3
- package/build/{utils-f2c7aec1.js → utils-d6894655.js} +4 -4
- package/build/{utils-dda5c728.js → utils-f771e347.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/index-dbc35029.js +0 -604
- package/build/index-5dfb877f.js +0 -612
- /package/build/{BMI_BOYS.percentile.monthly-4441c684.js → BMI_BOYS.percentile.monthly-a4d9fd19.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-25c2cb7a.js → BMI_BOYS.percentile.weekly-85267981.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-eeca8b15.js → BMI_BOYS.percentile.yearly-a32f9ee1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-80f4de4d.js → BMI_BOYS.zscore.monthly-f4119906.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-35e905fc.js → BMI_BOYS.zscore.weekly-2d401799.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-07c085fd.js → BMI_BOYS.zscore.yearly-7c3c7f30.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-5eaf96fb.js → BMI_GIRLS.percentile.monthly-29651ee5.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-fb8108eb.js → BMI_GIRLS.percentile.weekly-d3a4f946.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-d9c72d96.js → BMI_GIRLS.percentile.yearly-fcfc91db.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-66aa4acb.js → BMI_GIRLS.zscore.monthly-a6a25633.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-d7e95171.js → BMI_GIRLS.zscore.weekly-de7779a2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-775ef5bf.js → BMI_GIRLS.zscore.yearly-d6a1f6cf.js} +0 -0
- /package/build/{ChevronDown-63d43d10.js → ChevronDown-6531aa1f.js} +0 -0
- /package/build/{Close-f1915a6a.js → Close-4ddbac1d.js} +0 -0
- /package/build/{Google-dc55c745.js → Google-700400f2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-03c99ec3.js → HEAD CIRCUM_BOYS.percentile.monthly-37ad44c9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-65c5bf83.js → HEAD CIRCUM_BOYS.percentile.weekly-87d71733.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-18659f38.js → HEAD CIRCUM_BOYS.percentile.yearly-70b034ea.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-21b17e91.js → HEAD CIRCUM_BOYS.zscore.monthly-c7cb356f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-11e64f91.js → HEAD CIRCUM_BOYS.zscore.weekly-384d9a2c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-14242ba5.js → HEAD CIRCUM_BOYS.zscore.yearly-9a0fe23b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-1fa65080.js → HEAD CIRCUM_GIRLS.percentile.monthly-044f0f62.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-f9867f50.js → HEAD CIRCUM_GIRLS.percentile.weekly-77dfa6f4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-25d64f11.js → HEAD CIRCUM_GIRLS.percentile.yearly-f2ac05a8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-9bf216af.js → HEAD CIRCUM_GIRLS.zscore.monthly-60d7be85.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8d0c415a.js → HEAD CIRCUM_GIRLS.zscore.weekly-b7474e6b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-6dd0bbbc.js → HEAD CIRCUM_GIRLS.zscore.yearly-f13bf5c5.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-826b0478.js → HEIGHT_BOYS.percentile.monthly-998fad4e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-56b0cb53.js → HEIGHT_BOYS.percentile.weekly-d6e77201.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-ac6ae7f2.js → HEIGHT_BOYS.percentile.yearly-c31cc49c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-63d744b6.js → HEIGHT_BOYS.zscore.monthly-9ecef1f6.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-1824eb64.js → HEIGHT_BOYS.zscore.weekly-346c9656.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-9d88a352.js → HEIGHT_BOYS.zscore.yearly-89bcf640.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-677827fd.js → HEIGHT_GIRLS.percentile.monthly-cdce1e8b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-dddd35a9.js → HEIGHT_GIRLS.percentile.weekly-56dcc304.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-523b20e2.js → HEIGHT_GIRLS.percentile.yearly-ec3c63fd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-92ed564a.js → HEIGHT_GIRLS.zscore.monthly-7309ba52.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-7a15849c.js → HEIGHT_GIRLS.zscore.weekly-819c29d6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-c3b39622.js → HEIGHT_GIRLS.zscore.yearly-dc8ba990.js} +0 -0
- /package/build/{Locale-f4106b88.js → Locale-c51fbf89.js} +0 -0
- /package/build/{Visible-4c9ba084.js → Visible-3fa18693.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-005a4261.js → WEIGHT_BOYS.percentile.monthly-2df132f7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-50f7b7fc.js → WEIGHT_BOYS.percentile.weekly-27ffe651.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-f6dcf729.js → WEIGHT_BOYS.percentile.yearly-12f06f76.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b83f5a1b.js → WEIGHT_BOYS.zscore.monthly-e41ae838.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b878ac1d.js → WEIGHT_BOYS.zscore.weekly-0328b9c9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-5dd601e9.js → WEIGHT_BOYS.zscore.yearly-d70f8937.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-364ff558.js → WEIGHT_GIRLS.percentile.monthly-6de5d446.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-4b97eab1.js → WEIGHT_GIRLS.percentile.weekly-b6693a79.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e0be596b.js → WEIGHT_GIRLS.percentile.yearly-d81be214.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-f04dadef.js → WEIGHT_GIRLS.zscore.monthly-ff84c3d8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-4585c2c5.js → WEIGHT_GIRLS.zscore.weekly-3fd1e742.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-0f4eaea4.js → WEIGHT_GIRLS.zscore.yearly-e8c7f1aa.js} +0 -0
- /package/build/{animation-792a39d3.js → animation-99a1ec5f.js} +0 -0
- /package/build/{constants-ad6fe106.js → constants-23b17225.js} +0 -0
- /package/build/{constants-d500ce7e.js → constants-2998e15b.js} +0 -0
- /package/build/{constants-5b74bc4a.js → constants-6584d4ca.js} +0 -0
- /package/build/{dataTransform-57249430.js → dataTransform-830b300c.js} +0 -0
- /package/build/{doctor-d0f96930.js → doctor-9b713a65.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-848d8c92.js → BMI_BOYS.percentile.monthly-ce743692.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-37b5aba3.js → BMI_BOYS.percentile.weekly-600c3c2a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-92266498.js → BMI_BOYS.percentile.yearly-ffa8758e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-d7346e1d.js → BMI_BOYS.zscore.monthly-4e2ad946.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-95353ab5.js → BMI_BOYS.zscore.weekly-5613e9b7.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-0322afb9.js → BMI_BOYS.zscore.yearly-d920c0d8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-2028bf10.js → BMI_GIRLS.percentile.monthly-af502964.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-6e1a93c1.js → BMI_GIRLS.percentile.weekly-ba6f39aa.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-277e8f23.js → BMI_GIRLS.percentile.yearly-67fa9bdc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-9b9abfc1.js → BMI_GIRLS.zscore.monthly-f6d16df9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-77c45d3a.js → BMI_GIRLS.zscore.weekly-8fe3b2a8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-2c3ac2b2.js → BMI_GIRLS.zscore.yearly-3a5e9e7e.js} +0 -0
- /package/build/esm/{ChevronDown-bf252565.js → ChevronDown-68e9e43b.js} +0 -0
- /package/build/esm/{Close-6dc7f45c.js → Close-d53f143b.js} +0 -0
- /package/build/esm/{Google-9d648182.js → Google-664c0453.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-55387a1e.js → HEAD CIRCUM_BOYS.percentile.monthly-5b79dbf1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-432517db.js → HEAD CIRCUM_BOYS.percentile.weekly-0629439b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e03abc9a.js → HEAD CIRCUM_BOYS.percentile.yearly-607ff187.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-72690cf6.js → HEAD CIRCUM_BOYS.zscore.monthly-1fd7b22c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-78429dc4.js → HEAD CIRCUM_BOYS.zscore.weekly-4b0b4146.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c54dd853.js → HEAD CIRCUM_BOYS.zscore.yearly-e753ee79.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-d5bc7045.js → HEAD CIRCUM_GIRLS.percentile.monthly-cec62477.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-9a02fa77.js → HEAD CIRCUM_GIRLS.percentile.weekly-a6b65d48.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-2c50f067.js → HEAD CIRCUM_GIRLS.percentile.yearly-77b43e00.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-bae7dc81.js → HEAD CIRCUM_GIRLS.zscore.monthly-4ba494ac.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-ba855898.js → HEAD CIRCUM_GIRLS.zscore.weekly-1843dd18.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-f9fd6c4f.js → HEAD CIRCUM_GIRLS.zscore.yearly-1c83424a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-4a7f8ce4.js → HEIGHT_BOYS.percentile.monthly-47c635ee.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-9f595afe.js → HEIGHT_BOYS.percentile.weekly-f425658e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-a2973231.js → HEIGHT_BOYS.percentile.yearly-29c558bb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a6cf7b22.js → HEIGHT_BOYS.zscore.monthly-901f09ff.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-9018e42d.js → HEIGHT_BOYS.zscore.weekly-375e3ec3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-827ca658.js → HEIGHT_BOYS.zscore.yearly-4bb77b8e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-5f0b2a4d.js → HEIGHT_GIRLS.percentile.monthly-e1a2f4a1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-3c634b52.js → HEIGHT_GIRLS.percentile.weekly-bb7cfe2c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ae77abf9.js → HEIGHT_GIRLS.percentile.yearly-d48d4855.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-f03aa082.js → HEIGHT_GIRLS.zscore.monthly-8d415bdf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-7ee74e31.js → HEIGHT_GIRLS.zscore.weekly-f9740cdb.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d8db4db0.js → HEIGHT_GIRLS.zscore.yearly-16f0319f.js} +0 -0
- /package/build/esm/{Locale-e03a67c2.js → Locale-0c6f4f1e.js} +0 -0
- /package/build/esm/{Visible-2b47d15f.js → Visible-78644c80.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-55d25732.js → WEIGHT_BOYS.percentile.monthly-389b70e2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-c835e89a.js → WEIGHT_BOYS.percentile.weekly-3dbad53a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-53e23a84.js → WEIGHT_BOYS.percentile.yearly-f52ff1d0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-3860254c.js → WEIGHT_BOYS.zscore.monthly-ade4f845.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7ca1efcc.js → WEIGHT_BOYS.zscore.weekly-f000b7f2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-d0a8cefe.js → WEIGHT_BOYS.zscore.yearly-88d5b4aa.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-fa9ed0c7.js → WEIGHT_GIRLS.percentile.monthly-481dee73.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3b834ada.js → WEIGHT_GIRLS.percentile.weekly-9f119e6b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-69e04b62.js → WEIGHT_GIRLS.percentile.yearly-c4a62877.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-70894904.js → WEIGHT_GIRLS.zscore.monthly-01f89152.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-76c0869b.js → WEIGHT_GIRLS.zscore.weekly-7198198f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-05a16d55.js → WEIGHT_GIRLS.zscore.yearly-a65e7605.js} +0 -0
- /package/build/esm/{animation-8fa35678.js → animation-3de7535a.js} +0 -0
- /package/build/esm/{constants-3607e039.js → constants-39aa4e4c.js} +0 -0
- /package/build/esm/{constants-df44e206.js → constants-6804ab68.js} +0 -0
- /package/build/esm/{constants-680289fd.js → constants-7aea8f29.js} +0 -0
- /package/build/esm/{dataTransform-75b20d84.js → dataTransform-02136fa9.js} +0 -0
- /package/build/esm/{doctor-2505a9d0.js → doctor-d0c2c602.js} +0 -0
- /package/build/esm/{index-0c587c1c.js → index-2945fede.js} +0 -0
- /package/build/esm/{index-5fa8d494.js → index-5b8f80f8.js} +0 -0
- /package/build/esm/{index-6c9eb268.js → index-612507b6.js} +0 -0
- /package/build/esm/{index-9ebf84e6.js → index-76bf389e.js} +0 -0
- /package/build/esm/{index-ffffa66c.js → index-7fe46b3e.js} +0 -0
- /package/build/esm/{index-5f15c8c2.js → index-87c25d59.js} +0 -0
- /package/build/esm/{index-7d363470.js → index-b6c77bab.js} +0 -0
- /package/build/esm/{index-16433075.js → index-c71b6cd1.js} +0 -0
- /package/build/esm/{index.styles-232c46ec.js → index.styles-4f8d22a2.js} +0 -0
- /package/build/esm/{localizeNumberFormat-783155b1.js → localizeNumberFormat-f45ff9e9.js} +0 -0
- /package/build/esm/{normalizeLink-ae352999.js → normalizeLink-57e1635d.js} +0 -0
- /package/build/esm/{number-9b538713.js → number-388bef20.js} +0 -0
- /package/build/esm/{other-9b2ecba4.js → other-de514aeb.js} +0 -0
- /package/build/esm/{paths-923d7b59.js → paths-34f24683.js} +0 -0
- /package/build/esm/{translationsContext-3cbc2341.js → translationsContext-673fbdbf.js} +0 -0
- /package/build/esm/{tslib.es6-bd7c51f9.js → tslib.es6-5b1c0444.js} +0 -0
- /package/build/esm/{types-2c6721fd.js → types-3e61ed8a.js} +0 -0
- /package/build/esm/{useIsInit-06e3f8ca.js → useIsInit-68675b7a.js} +0 -0
- /package/build/esm/{useOutsideClick-9ad9763e.js → useOutsideClick-f50e44f5.js} +0 -0
- /package/build/esm/{useScrollbarSize-6b3b60f8.js → useScrollbarSize-975e9554.js} +0 -0
- /package/build/esm/{useUniqueId-ae6a6188.js → useUniqueId-401868c0.js} +0 -0
- /package/build/esm/{utils-e0264c2d.js → utils-53cad475.js} +0 -0
- /package/build/{index-dcdaa5fd.js → index-4aa5318d.js} +0 -0
- /package/build/{index-c03acf1f.js → index-577198d7.js} +0 -0
- /package/build/{index-3023fc1d.js → index-80d13144.js} +0 -0
- /package/build/{index-02afe710.js → index-8ad268bf.js} +0 -0
- /package/build/{index-4fbe78aa.js → index-9522ae56.js} +0 -0
- /package/build/{index-80aa2faa.js → index-b54b052c.js} +0 -0
- /package/build/{index-b85e5f4e.js → index-caa60b6c.js} +0 -0
- /package/build/{index-54d1787d.js → index-ed0f00ba.js} +0 -0
- /package/build/{index.styles-324e5c01.js → index.styles-ba0c5cfd.js} +0 -0
- /package/build/{localizeNumberFormat-4180c447.js → localizeNumberFormat-7bb7ba17.js} +0 -0
- /package/build/{normalizeLink-e450c12c.js → normalizeLink-121dd2e2.js} +0 -0
- /package/build/{number-d8f66419.js → number-2943239d.js} +0 -0
- /package/build/{other-e8ccd21a.js → other-7d3d42eb.js} +0 -0
- /package/build/{paths-842c2150.js → paths-83370a42.js} +0 -0
- /package/build/{translationsContext-12be2d75.js → translationsContext-ad7bd42b.js} +0 -0
- /package/build/{tslib.es6-606ff01f.js → tslib.es6-f488b2b2.js} +0 -0
- /package/build/{types-3b67d131.js → types-c3b0272a.js} +0 -0
- /package/build/{useIsInit-f30787a2.js → useIsInit-712fba30.js} +0 -0
- /package/build/{useOutsideClick-a0d4def8.js → useOutsideClick-fa7cabb7.js} +0 -0
- /package/build/{useScrollbarSize-1fdcbccb.js → useScrollbarSize-4c0f7a54.js} +0 -0
- /package/build/{useUniqueId-d4e54fbf.js → useUniqueId-7687c8a1.js} +0 -0
- /package/build/{utils-3cb0d22b.js → utils-827a46b5.js} +0 -0
package/build/esm/subot.js
CHANGED
|
@@ -1,76 +1,74 @@
|
|
|
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-2296e02a.js';
|
|
3
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-5b1c0444.js';
|
|
4
|
+
import { f as basePath, G as GA_TOKEN_COOKIE, A as API_DATE_FORMAT, I as ISO_FORMAT, g as SSO_URL } from './index-8c09d7b4.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-265c227d.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-060e985e.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-060e985e.js';
|
|
12
12
|
import dayjs from 'dayjs';
|
|
13
|
-
import { isProduction } from './constantsIsProduction.js';
|
|
14
13
|
import { MAP_DOMAIN_BY_LOCALE } from './constantsDomainLocales.js';
|
|
15
14
|
import cn from 'classnames';
|
|
16
|
-
import { C as Container$w } from './index-
|
|
17
|
-
import { L as Loading } from './index-
|
|
15
|
+
import { C as Container$w } from './index-87c25d59.js';
|
|
16
|
+
import { L as Loading } from './index-804da9e4.js';
|
|
18
17
|
import { motion } from 'framer-motion';
|
|
19
18
|
import styled from '@emotion/styled';
|
|
20
|
-
import { M as MediaQueries } from './utils-
|
|
21
|
-
import { B as Button } from './index-
|
|
19
|
+
import { M as MediaQueries } from './utils-53cad475.js';
|
|
20
|
+
import { B as Button } from './index-e18908df.js';
|
|
22
21
|
import { Remarkable } from 'remarkable';
|
|
23
22
|
import { ArrowRight } from '@hhgtech/icons/other';
|
|
24
23
|
import { useInView } from 'react-intersection-observer';
|
|
25
24
|
import { Box, Textarea } from '@mantine/core';
|
|
26
|
-
import { C as CommonGAssets } from './index-
|
|
25
|
+
import { C as CommonGAssets } from './index-2945fede.js';
|
|
27
26
|
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
28
|
-
import { d as LEAD_TOKEN_COOKIE } from './constants-
|
|
27
|
+
import { d as LEAD_TOKEN_COOKIE } from './constants-7aea8f29.js';
|
|
29
28
|
import { v4 } from 'uuid';
|
|
30
|
-
import { T as Text } from './index-
|
|
29
|
+
import { T as Text } from './index-b627eaf0.js';
|
|
31
30
|
import { theme } from './miscTheme.js';
|
|
32
|
-
import {
|
|
31
|
+
import { isProduction } from './constantsIsProduction.js';
|
|
32
|
+
import { S as Select } from './index-48bf9bbd.js';
|
|
33
33
|
import '@mantine/dates';
|
|
34
|
-
import './useMantineLocale-
|
|
35
|
-
import './index.styles-
|
|
36
|
-
import './translationsContext-
|
|
34
|
+
import './useMantineLocale-4ff5a689.js';
|
|
35
|
+
import './index.styles-4f8d22a2.js';
|
|
36
|
+
import './translationsContext-673fbdbf.js';
|
|
37
37
|
import '@mantine/hooks';
|
|
38
|
-
import './other-
|
|
39
|
-
import './index-
|
|
38
|
+
import './other-de514aeb.js';
|
|
39
|
+
import './index-f93ed548.js';
|
|
40
40
|
import isEmpty from 'lodash/isEmpty';
|
|
41
|
-
import { Controller, useForm
|
|
41
|
+
import { Controller, useForm } 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-6015f4c1.js';
|
|
45
45
|
import { setDefaultClass } from './miscDefaultClassWrapper.js';
|
|
46
|
-
import { L as LOCALE } from './Locale-
|
|
47
|
-
import
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import { g as getURLwithSSOTracking } from './utils-033c7376.js';
|
|
46
|
+
import { L as LOCALE } from './Locale-0c6f4f1e.js';
|
|
47
|
+
import { I as InputDate } from './InputDate-51af2684.js';
|
|
48
|
+
import { B as Button$1 } from './index-51171df6.js';
|
|
49
|
+
import { D as Dropdown } from './index-7fe46b3e.js';
|
|
50
|
+
import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-586dee6f.js';
|
|
51
|
+
import { g as getURLwithSSOTracking } from './utils-6918da4d.js';
|
|
53
52
|
import 'date-fns/locale';
|
|
54
53
|
import './constantsSite.js';
|
|
55
54
|
import './constantsRiskScreener.js';
|
|
56
|
-
import './index-
|
|
55
|
+
import './index-76bf389e.js';
|
|
57
56
|
import './miscCookieHelper.js';
|
|
58
57
|
import 'slugify';
|
|
59
58
|
import './togetherApiPaths.js';
|
|
60
|
-
import './index-
|
|
61
|
-
import './WhatsApp-
|
|
62
|
-
import './Spinner-
|
|
63
|
-
import './index-
|
|
64
|
-
import './useScreenSize-
|
|
59
|
+
import './index-03576769.js';
|
|
60
|
+
import './WhatsApp-fb45494c.js';
|
|
61
|
+
import './Spinner-3e658dc8.js';
|
|
62
|
+
import './index-4aa74099.js';
|
|
63
|
+
import './useScreenSize-910c8178.js';
|
|
65
64
|
import '@mantine/carousel';
|
|
66
|
-
import './useUniqueId-
|
|
65
|
+
import './useUniqueId-401868c0.js';
|
|
67
66
|
import '@hhgtech/icons/core';
|
|
68
67
|
import '@mantine/notifications';
|
|
69
|
-
import '
|
|
70
|
-
import 'react-day-picker/DayPickerInput';
|
|
68
|
+
import '@emotion/react';
|
|
71
69
|
import 'zustand';
|
|
72
|
-
import './normalizeLink-
|
|
73
|
-
import './healthTools-
|
|
70
|
+
import './normalizeLink-57e1635d.js';
|
|
71
|
+
import './healthTools-79a6e24d.js';
|
|
74
72
|
|
|
75
73
|
// extend fastdom
|
|
76
74
|
const fastdom = fd.extend(fastdomPromised);
|
|
@@ -215,10 +213,6 @@ const subotInlineImpression = (data) => __awaiter(void 0, void 0, void 0, functi
|
|
|
215
213
|
catch (error) { }
|
|
216
214
|
});
|
|
217
215
|
|
|
218
|
-
const isDurgoCampaignFn = (botId) => {
|
|
219
|
-
const botIdNumber = Number(botId);
|
|
220
|
-
return isProduction ? botIdNumber === 2629 : botIdNumber === 1092;
|
|
221
|
-
};
|
|
222
216
|
const calcAge = (value) => {
|
|
223
217
|
const birthDate = dayjs(value);
|
|
224
218
|
const today = dayjs();
|
|
@@ -232,13 +226,43 @@ const calcAge = (value) => {
|
|
|
232
226
|
* Temporary hard the range of age from 1 -> 6 for Durgo Campaign at this time
|
|
233
227
|
* Ticket: https://hhgdev.atlassian.net/browse/HTO-1327
|
|
234
228
|
*/
|
|
235
|
-
const validateAge = (value, errMsg) => {
|
|
236
|
-
const { birthDate, today
|
|
237
|
-
if (
|
|
238
|
-
|
|
239
|
-
|
|
229
|
+
const validateAge = (value, errMsg, conditions) => {
|
|
230
|
+
const { birthDate, today } = calcAge(value);
|
|
231
|
+
if (!conditions || !conditions.length) {
|
|
232
|
+
return true;
|
|
233
|
+
}
|
|
234
|
+
const diff = today.diff(birthDate, 'M') / 12;
|
|
235
|
+
/**
|
|
236
|
+
* No body in future can validate
|
|
237
|
+
*/
|
|
238
|
+
if (diff < 0 || (diff === 0 && today.date() < birthDate.date())) {
|
|
239
|
+
return errMsg;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* from, to
|
|
243
|
+
* if from === null then compare 0 - to
|
|
244
|
+
* if to === null then compare from - infinity
|
|
245
|
+
*/
|
|
246
|
+
let isValid = false;
|
|
247
|
+
if (Array.isArray(conditions)) {
|
|
248
|
+
for (const cond of conditions) {
|
|
249
|
+
const { from, to } = cond || {};
|
|
250
|
+
if (!from && !to) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
if ((from <= diff && diff <= to) ||
|
|
254
|
+
(from <= diff && to === null) ||
|
|
255
|
+
(from === null && to <= diff)) {
|
|
256
|
+
isValid = true;
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
240
260
|
}
|
|
241
|
-
|
|
261
|
+
if (typeof localStorage !== 'undefined' &&
|
|
262
|
+
localStorage.getItem('hhg_debug') === 'true') {
|
|
263
|
+
console.log('Log __DOB__ : ', { conditions, isValid, diff });
|
|
264
|
+
}
|
|
265
|
+
return isValid || errMsg;
|
|
242
266
|
};
|
|
243
267
|
|
|
244
268
|
const getDynamicScore = (node) => {
|
|
@@ -3567,6 +3591,239 @@ const useAddressMultipleLevelData = (countryCode) => {
|
|
|
3567
3591
|
};
|
|
3568
3592
|
};
|
|
3569
3593
|
|
|
3594
|
+
const CheckCircleGreen = (props) => {
|
|
3595
|
+
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),
|
|
3596
|
+
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" })));
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
const IconEdit = (props) => {
|
|
3600
|
+
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),
|
|
3601
|
+
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" })));
|
|
3602
|
+
};
|
|
3603
|
+
|
|
3604
|
+
const InfoError = (props) => {
|
|
3605
|
+
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),
|
|
3606
|
+
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" })));
|
|
3607
|
+
};
|
|
3608
|
+
|
|
3609
|
+
const CountDown = ({ onFinish, onClick, isFinished, resendLabel, className }, ref) => {
|
|
3610
|
+
const [count, setCount] = useState(TIME_RESET_RESEND_OTP);
|
|
3611
|
+
const intervalId = useRef();
|
|
3612
|
+
const onFinishLatest = useRef();
|
|
3613
|
+
const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
|
|
3614
|
+
onFinishLatest.current = onFinish;
|
|
3615
|
+
const resetCountDown = useCallback(() => {
|
|
3616
|
+
let currentCount = TIME_RESET_RESEND_OTP;
|
|
3617
|
+
setCount(currentCount);
|
|
3618
|
+
clearInterval(intervalId.current);
|
|
3619
|
+
intervalId.current = setInterval(() => {
|
|
3620
|
+
var _a;
|
|
3621
|
+
currentCount = currentCount - 1;
|
|
3622
|
+
setCount(currentCount);
|
|
3623
|
+
if (currentCount === 0) {
|
|
3624
|
+
(_a = onFinishLatest.current) === null || _a === void 0 ? void 0 : _a.call(onFinishLatest, true);
|
|
3625
|
+
clearInterval(intervalId.current);
|
|
3626
|
+
}
|
|
3627
|
+
}, 1000);
|
|
3628
|
+
}, []);
|
|
3629
|
+
const cancelCountDown = useCallback(() => {
|
|
3630
|
+
setCount(0);
|
|
3631
|
+
clearInterval(intervalId.current);
|
|
3632
|
+
}, []);
|
|
3633
|
+
useImperativeHandle(ref, () => ({
|
|
3634
|
+
reset: resetCountDown,
|
|
3635
|
+
cancel: cancelCountDown,
|
|
3636
|
+
isFinished: count === 0,
|
|
3637
|
+
}));
|
|
3638
|
+
useEffect(() => {
|
|
3639
|
+
resetCountDown();
|
|
3640
|
+
return () => {
|
|
3641
|
+
clearInterval(intervalId.current);
|
|
3642
|
+
};
|
|
3643
|
+
}, []);
|
|
3644
|
+
return (React__default.createElement("div", { className: className, onClick: onClick },
|
|
3645
|
+
resendLabel
|
|
3646
|
+
? resendLabel
|
|
3647
|
+
: f({
|
|
3648
|
+
id: 'subot.resendOTP.button',
|
|
3649
|
+
defaultMessage: 'Resend',
|
|
3650
|
+
}),
|
|
3651
|
+
count > 0 && !isFinished && ` (${count}s)`));
|
|
3652
|
+
};
|
|
3653
|
+
var CountDown$1 = forwardRef(CountDown);
|
|
3654
|
+
|
|
3655
|
+
styled.div `
|
|
3656
|
+
margin: 0 auto;
|
|
3657
|
+
background: #f7f9fc;
|
|
3658
|
+
border-radius: ${theme.borderRadius};
|
|
3659
|
+
${MediaQueries.mbDown} {
|
|
3660
|
+
padding: 16px;
|
|
3661
|
+
}
|
|
3662
|
+
${MediaQueries.tdDown} {
|
|
3663
|
+
padding: 24px;
|
|
3664
|
+
}
|
|
3665
|
+
${MediaQueries.mbUp} {
|
|
3666
|
+
padding: 32px;
|
|
3667
|
+
}
|
|
3668
|
+
.user-info-form {
|
|
3669
|
+
.input-row {
|
|
3670
|
+
${MediaQueries.mbDown} {
|
|
3671
|
+
margin-bottom: 16px;
|
|
3672
|
+
}
|
|
3673
|
+
${MediaQueries.tdDown} {
|
|
3674
|
+
margin-bottom: 18px;
|
|
3675
|
+
}
|
|
3676
|
+
${MediaQueries.mbUp} {
|
|
3677
|
+
margin-bottom: 20px;
|
|
3678
|
+
}
|
|
3679
|
+
.address-dropdown > ul {
|
|
3680
|
+
z-index: 20000;
|
|
3681
|
+
max-height: 250px;
|
|
3682
|
+
overflow-y: auto;
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3685
|
+
&.error {
|
|
3686
|
+
margin-bottom: 0;
|
|
3687
|
+
}
|
|
3688
|
+
}
|
|
3689
|
+
label {
|
|
3690
|
+
display: block;
|
|
3691
|
+
margin-bottom: 6px;
|
|
3692
|
+
color: ${theme.colors.gray600};
|
|
3693
|
+
font-size: 13px;
|
|
3694
|
+
font-weight: bold;
|
|
3695
|
+
}
|
|
3696
|
+
input[type='tel'],
|
|
3697
|
+
input[type='number'] {
|
|
3698
|
+
width: 100%;
|
|
3699
|
+
padding: 12px 16px;
|
|
3700
|
+
border: solid 1px ${theme.colors.gray200};
|
|
3701
|
+
background: #fff;
|
|
3702
|
+
border-radius: ${theme.borderRadius};
|
|
3703
|
+
|
|
3704
|
+
&[disabled] {
|
|
3705
|
+
background-color: ${theme.colors.gray100};
|
|
3706
|
+
}
|
|
3707
|
+
}
|
|
3708
|
+
input[type='number']::-webkit-inner-spin-button,
|
|
3709
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
3710
|
+
-webkit-appearance: none;
|
|
3711
|
+
-moz-appearance: none;
|
|
3712
|
+
appearance: none;
|
|
3713
|
+
}
|
|
3714
|
+
button {
|
|
3715
|
+
width: 100%;
|
|
3716
|
+
}
|
|
3717
|
+
.error-message {
|
|
3718
|
+
display: block;
|
|
3719
|
+
padding-bottom: 20px;
|
|
3720
|
+
color: ${theme.colors.red700};
|
|
3721
|
+
font-weight: ${theme.sizes.fwRegular};
|
|
3722
|
+
}
|
|
3723
|
+
.submit-btn {
|
|
3724
|
+
padding: 12px 24px;
|
|
3725
|
+
background-color: ${theme.colors.primaryBase};
|
|
3726
|
+
border-radius: ${theme.borderRadius};
|
|
3727
|
+
color: #fff;
|
|
3728
|
+
cursor: pointer;
|
|
3729
|
+
font-size: 16px;
|
|
3730
|
+
font-weight: 700;
|
|
3731
|
+
line-height: 24px;
|
|
3732
|
+
transition: background-color 0.3s, border-color 0.3s;
|
|
3733
|
+
display: flex;
|
|
3734
|
+
justify-content: center;
|
|
3735
|
+
&:hover {
|
|
3736
|
+
background-color: ${theme.colors.primaryHover};
|
|
3737
|
+
}
|
|
3738
|
+
&[disabled] {
|
|
3739
|
+
background-color: ${theme.colors.gray200};
|
|
3740
|
+
color: #bfbfbf;
|
|
3741
|
+
cursor: not-allowed;
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
.spinner {
|
|
3745
|
+
margin-right: 20px;
|
|
3746
|
+
}
|
|
3747
|
+
}
|
|
3748
|
+
.submit-btn-row {
|
|
3749
|
+
${MediaQueries.mbUp} {
|
|
3750
|
+
margin-bottom: 16px;
|
|
3751
|
+
}
|
|
3752
|
+
${MediaQueries.tdDown} {
|
|
3753
|
+
margin-bottom: 14px;
|
|
3754
|
+
}
|
|
3755
|
+
${MediaQueries.mbDown} {
|
|
3756
|
+
margin-bottom: 12px;
|
|
3757
|
+
}
|
|
3758
|
+
.subot-checkbox {
|
|
3759
|
+
display: flex;
|
|
3760
|
+
align-items: flex-start;
|
|
3761
|
+
margin: 0;
|
|
3762
|
+
cursor: pointer;
|
|
3763
|
+
&__input {
|
|
3764
|
+
position: relative;
|
|
3765
|
+
display: block;
|
|
3766
|
+
overflow: hidden;
|
|
3767
|
+
width: 18px;
|
|
3768
|
+
height: 18px;
|
|
3769
|
+
box-sizing: border-box;
|
|
3770
|
+
padding: 0;
|
|
3771
|
+
margin-right: 10px;
|
|
3772
|
+
&:before {
|
|
3773
|
+
position: absolute;
|
|
3774
|
+
top: 0;
|
|
3775
|
+
right: 0;
|
|
3776
|
+
bottom: 0;
|
|
3777
|
+
left: 0;
|
|
3778
|
+
display: flex;
|
|
3779
|
+
background-color: ${theme.colors.primaryBase};
|
|
3780
|
+
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>');
|
|
3781
|
+
background-position: center;
|
|
3782
|
+
background-repeat: no-repeat;
|
|
3783
|
+
background-size: 120%;
|
|
3784
|
+
content: '';
|
|
3785
|
+
opacity: 0;
|
|
3786
|
+
transition: 0.3s all ease;
|
|
3787
|
+
}
|
|
3788
|
+
&:checked:before {
|
|
3789
|
+
opacity: 1;
|
|
3790
|
+
transition: 0.3s all ease;
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3793
|
+
&__label {
|
|
3794
|
+
flex: 1;
|
|
3795
|
+
font-weight: 400;
|
|
3796
|
+
line-height: 1.4;
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
}
|
|
3800
|
+
}
|
|
3801
|
+
`;
|
|
3802
|
+
const StyleWrapperPhoneInput = styled.div `
|
|
3803
|
+
position: relative;
|
|
3804
|
+
|
|
3805
|
+
.PhoneInputCountry {
|
|
3806
|
+
background-color: #f2f2f2;
|
|
3807
|
+
|
|
3808
|
+
.PhoneInputCountrySelectArrow {
|
|
3809
|
+
display: none !important;
|
|
3810
|
+
}
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3813
|
+
.icon-edit-phone {
|
|
3814
|
+
width: 1em;
|
|
3815
|
+
height: 1em;
|
|
3816
|
+
position: absolute;
|
|
3817
|
+
right: 16px;
|
|
3818
|
+
top: 17px;
|
|
3819
|
+
cursor: pointer;
|
|
3820
|
+
|
|
3821
|
+
path {
|
|
3822
|
+
fill: ${theme.colors.gray600};
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
`;
|
|
3826
|
+
|
|
3570
3827
|
const Location = (props) => {
|
|
3571
3828
|
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
3829
|
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 +4367,27 @@ const StyledUserInfoFormContainer = styled.div `
|
|
|
4110
4367
|
text-decoration: none;
|
|
4111
4368
|
}
|
|
4112
4369
|
}
|
|
4370
|
+
|
|
4371
|
+
.subot_input_date {
|
|
4372
|
+
--input-height: 46px;
|
|
4373
|
+
--input-max-width: 100%;
|
|
4374
|
+
input[type='text'] {
|
|
4375
|
+
padding: 0 !important;
|
|
4376
|
+
background-color: transparent !important;
|
|
4377
|
+
background-image: none !important;
|
|
4378
|
+
border: none !important;
|
|
4379
|
+
line-height: 0.5;
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4382
|
+
.input_date-input_container {
|
|
4383
|
+
background-color: #fff;
|
|
4384
|
+
|
|
4385
|
+
&:focus-within,
|
|
4386
|
+
&.input_date-input_shrink {
|
|
4387
|
+
--input-padding-y: 5px;
|
|
4388
|
+
}
|
|
4389
|
+
}
|
|
4390
|
+
}
|
|
4113
4391
|
}
|
|
4114
4392
|
|
|
4115
4393
|
&.si-form-revamp {
|
|
@@ -4252,240 +4530,37 @@ const getTransPleaseVerifiedOtp = () => {
|
|
|
4252
4530
|
pleaseVerifiedOtp.set(LOCALE.Thailand, 'กรุณาตรวจสอบหมายเลขโทรศัพท์ของคุณ');
|
|
4253
4531
|
pleaseVerifiedOtp.set(LOCALE.PhilippinesTagalog, 'Paki-verify ang iyong numero ng telepono');
|
|
4254
4532
|
return pleaseVerifiedOtp;
|
|
4255
|
-
};
|
|
4256
|
-
|
|
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
4533
|
};
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
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
|
-
`;
|
|
4534
|
+
const validateDateField = (value, isSubmitting, f, cb) => {
|
|
4535
|
+
let errMsg = f({
|
|
4536
|
+
id: 'error.day.invalid',
|
|
4537
|
+
defaultMessage: 'This date is not valid, please update.',
|
|
4538
|
+
});
|
|
4539
|
+
if (!value) {
|
|
4540
|
+
errMsg = f({
|
|
4541
|
+
id: 'validation.error.requiredField',
|
|
4542
|
+
defaultMessage: 'This field is required',
|
|
4543
|
+
});
|
|
4544
|
+
return errMsg;
|
|
4545
|
+
}
|
|
4546
|
+
if (typeof value === 'string') {
|
|
4547
|
+
const valueArr = value.split('/');
|
|
4548
|
+
if (valueArr.length === 3) {
|
|
4549
|
+
return errMsg;
|
|
4550
|
+
}
|
|
4551
|
+
else {
|
|
4552
|
+
return isSubmitting ? errMsg : true;
|
|
4553
|
+
}
|
|
4554
|
+
}
|
|
4555
|
+
const dayInJs = dayjs(value);
|
|
4556
|
+
if (!dayInJs.isValid()) {
|
|
4557
|
+
return errMsg;
|
|
4558
|
+
}
|
|
4559
|
+
if (cb) {
|
|
4560
|
+
return cb(value);
|
|
4561
|
+
}
|
|
4562
|
+
return true;
|
|
4563
|
+
};
|
|
4489
4564
|
|
|
4490
4565
|
var _a, _b, _c, _d, _e;
|
|
4491
4566
|
const StyledPhoneCode = styled.div `
|
|
@@ -4612,44 +4687,46 @@ const PhoneInputWithCode = (props) => {
|
|
|
4612
4687
|
return (React__default.createElement(StyledPhoneInputWithCode, Object.assign({}, props, { flagComponent: FlagComponent })));
|
|
4613
4688
|
};
|
|
4614
4689
|
|
|
4615
|
-
const DOB = ({ action,
|
|
4616
|
-
const { id, key, label } = action !== null && action !== void 0 ? action : {};
|
|
4617
|
-
const locale = GlobalData === null || GlobalData === void 0 ? void 0 : GlobalData.locale;
|
|
4690
|
+
const DOB = ({ action, trigger, control, locale: localeProps, labelTuples, isSubmitting, }) => {
|
|
4691
|
+
const { id, key, label, validated_message, validated_conditions } = action !== null && action !== void 0 ? action : {};
|
|
4692
|
+
const locale = localeProps || (GlobalData === null || GlobalData === void 0 ? void 0 : GlobalData.locale);
|
|
4618
4693
|
const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
|
|
4619
|
-
/**
|
|
4620
|
-
* Temporary hard for Durgo Campaign at this time
|
|
4621
|
-
* Ticket: https://hhgdev.atlassian.net/browse/HTO-1327
|
|
4622
|
-
* Production is: 2629
|
|
4623
|
-
* Staging is: 1092
|
|
4624
|
-
*/
|
|
4625
|
-
const isDurgoCampaign = isDurgoCampaignFn(botId);
|
|
4626
|
-
const error = get(errors, key);
|
|
4627
|
-
const dobErrMsg = get(error, 'message');
|
|
4628
|
-
const handleOnChange = (_value) => {
|
|
4629
|
-
const dateString = dayjs(_value).format(API_DATE_FORMAT);
|
|
4630
|
-
setValue(key, dateString);
|
|
4631
|
-
trigger(key);
|
|
4632
|
-
};
|
|
4633
4694
|
return (React__default.createElement("div", { className: "input-row", key: id },
|
|
4634
4695
|
React__default.createElement("label", { htmlFor: key }, label),
|
|
4635
|
-
React__default.createElement(
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4696
|
+
React__default.createElement(Controller, { name: action.key, control: control, rules: {
|
|
4697
|
+
required: {
|
|
4698
|
+
value: true,
|
|
4699
|
+
message: f({
|
|
4700
|
+
id: 'validation.error.requiredField',
|
|
4701
|
+
defaultMessage: 'This field is required',
|
|
4702
|
+
}),
|
|
4703
|
+
},
|
|
4639
4704
|
validate: {
|
|
4640
|
-
ageRange: (value) =>
|
|
4641
|
-
|
|
4705
|
+
ageRange: (value) => validateDateField(value, isSubmitting, f, (value) => validateAge(value, validated_message ||
|
|
4706
|
+
f({
|
|
4642
4707
|
id: 'validation.error.requiredAgeGroup',
|
|
4643
4708
|
defaultMessage: 'Sorry, your child is not in the required Age Group.',
|
|
4644
|
-
}))
|
|
4645
|
-
|
|
4709
|
+
}), (() => {
|
|
4710
|
+
try {
|
|
4711
|
+
return JSON.parse(validated_conditions);
|
|
4712
|
+
}
|
|
4713
|
+
catch (error) {
|
|
4714
|
+
return [];
|
|
4715
|
+
}
|
|
4716
|
+
})())),
|
|
4646
4717
|
},
|
|
4647
|
-
})
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4718
|
+
}, render: ({ field, fieldState }) => {
|
|
4719
|
+
const { value, name, onChange } = field, restField = __rest(field, ["value", "name", "onChange"]);
|
|
4720
|
+
const { error } = fieldState;
|
|
4721
|
+
const isError = !!error;
|
|
4722
|
+
return (React__default.createElement("div", null,
|
|
4723
|
+
React__default.createElement(StyleDatePickerInput, null,
|
|
4724
|
+
React__default.createElement(InputDate, Object.assign({}, restField, { defaultValue: value, onChange: (val) => {
|
|
4725
|
+
onChange(val);
|
|
4726
|
+
trigger(name);
|
|
4727
|
+
}, labelTuples: labelTuples, locale: locale, error: isError, className: "subot_input subot_input_date" }))),
|
|
4728
|
+
isError && React__default.createElement("p", { className: "error-message" }, error === null || error === void 0 ? void 0 : error.message)));
|
|
4729
|
+
} })));
|
|
4653
4730
|
};
|
|
4654
4731
|
|
|
4655
4732
|
const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSubmitMeta, isFormRevamp, botId, nodeId, trackingSubmitBtn, }) => {
|
|
@@ -4707,6 +4784,12 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4707
4784
|
return;
|
|
4708
4785
|
}
|
|
4709
4786
|
data[d.key] = d.value;
|
|
4787
|
+
if ([
|
|
4788
|
+
ELEMENT_CONTROL_INPUT_TYPE[NodeActionType.USER_SUBMIT_DATE],
|
|
4789
|
+
ELEMENT_CONTROL_INPUT_TYPE[NodeActionType.USER_SUBMIT_DOB],
|
|
4790
|
+
].includes(d.control)) {
|
|
4791
|
+
data[d.key] = dayjs(d.value, API_DATE_FORMAT).toDate();
|
|
4792
|
+
}
|
|
4710
4793
|
});
|
|
4711
4794
|
if (data['otpPhoneNumber']) {
|
|
4712
4795
|
setVerifiedOTP(true);
|
|
@@ -4773,10 +4856,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4773
4856
|
return NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE === action.type;
|
|
4774
4857
|
});
|
|
4775
4858
|
}, [actions]);
|
|
4859
|
+
const { labelInputDate } = useMemo(() => {
|
|
4860
|
+
const { dateFormat } = (ISO_FORMAT === null || ISO_FORMAT === void 0 ? void 0 : ISO_FORMAT[locale]) || ISO_FORMAT['vi-VN'];
|
|
4861
|
+
return {
|
|
4862
|
+
dateFormat,
|
|
4863
|
+
labelInputDate: dateFormat
|
|
4864
|
+
.split('/')
|
|
4865
|
+
.map((key) => f(COMMON_DATE_TRANSLATE_KEY === null || COMMON_DATE_TRANSLATE_KEY === void 0 ? void 0 : COMMON_DATE_TRANSLATE_KEY[key])),
|
|
4866
|
+
};
|
|
4867
|
+
}, [locale, f]);
|
|
4776
4868
|
const inputType = ELEMENT_CONTROL_INPUT_TYPE;
|
|
4777
|
-
const { register, handleSubmit, watch, formState: { errors }, control, setValue, setError, clearErrors, getValues, trigger, } = useForm({ defaultValues: defaultFormValues });
|
|
4778
|
-
const formState = useFormState({ control });
|
|
4779
|
-
const isDurgoCampaign = isDurgoCampaignFn(botId);
|
|
4869
|
+
const { register, handleSubmit, watch, formState: { errors, isSubmitting }, control, setValue, setError, clearErrors, getValues, trigger, } = useForm({ defaultValues: defaultFormValues });
|
|
4780
4870
|
const setSubmitData = (data) => {
|
|
4781
4871
|
const submitMeta = [];
|
|
4782
4872
|
for (const action of actions) {
|
|
@@ -4808,13 +4898,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4808
4898
|
value: data[action.key].label || '',
|
|
4809
4899
|
});
|
|
4810
4900
|
}
|
|
4811
|
-
else if (action.type === NodeActionType.USER_SUBMIT_DOB
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4901
|
+
else if (action.type === NodeActionType.USER_SUBMIT_DOB ||
|
|
4902
|
+
action.type === NodeActionType.USER_SUBMIT_DATE) {
|
|
4903
|
+
const dobStr = (data[action.key] || '');
|
|
4904
|
+
const dayInJS = dayjs(dobStr);
|
|
4905
|
+
if (dayInJS.isValid()) {
|
|
4906
|
+
submitMeta.push({
|
|
4907
|
+
key: action.key,
|
|
4908
|
+
control: inputType[action.type] || '',
|
|
4909
|
+
value: dayInJS.format(API_DATE_FORMAT),
|
|
4910
|
+
});
|
|
4911
|
+
}
|
|
4818
4912
|
}
|
|
4819
4913
|
else if (isActionTypeOtp(action.type)) {
|
|
4820
4914
|
submitMeta.push({
|
|
@@ -5147,17 +5241,31 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5147
5241
|
case NodeActionType.USER_SUBMIT_DATE:
|
|
5148
5242
|
return (React__default.createElement("div", { className: "input-row", key: action.id },
|
|
5149
5243
|
React__default.createElement("label", { htmlFor: action.key }, action.label),
|
|
5150
|
-
React__default.createElement(
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5244
|
+
React__default.createElement(Controller, { name: action.key, control: control, rules: {
|
|
5245
|
+
required: {
|
|
5246
|
+
value: true,
|
|
5247
|
+
message: f({
|
|
5248
|
+
id: 'validation.error.requiredField',
|
|
5249
|
+
defaultMessage: 'This field is required',
|
|
5250
|
+
}),
|
|
5251
|
+
},
|
|
5252
|
+
validate: {
|
|
5253
|
+
ageRange: (value) => {
|
|
5254
|
+
return validateDateField(value, isSubmitting, f);
|
|
5255
|
+
},
|
|
5256
|
+
},
|
|
5257
|
+
}, render: ({ field, fieldState }) => {
|
|
5258
|
+
const { value, name, onChange } = field, restField = __rest(field, ["value", "name", "onChange"]);
|
|
5259
|
+
const { error } = fieldState;
|
|
5260
|
+
const isError = !!error;
|
|
5261
|
+
return (React__default.createElement("div", null,
|
|
5262
|
+
React__default.createElement(StyleDatePickerInput, null,
|
|
5263
|
+
React__default.createElement(InputDate, Object.assign({}, restField, { defaultValue: value, onChange: (val) => {
|
|
5264
|
+
onChange(val);
|
|
5265
|
+
trigger(name);
|
|
5266
|
+
}, labelTuples: labelInputDate, locale: locale, error: isError, className: "subot_input subot_input_date" }))),
|
|
5267
|
+
isError && (React__default.createElement("p", { className: "error-message" }, error === null || error === void 0 ? void 0 : error.message))));
|
|
5268
|
+
} })));
|
|
5161
5269
|
case NodeActionType.USER_SUBMIT_BMI:
|
|
5162
5270
|
return (React__default.createElement("div", { key: action.id },
|
|
5163
5271
|
React__default.createElement("div", { className: "input-row", key: `${action.id}-weight` },
|
|
@@ -5270,7 +5378,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5270
5378
|
case NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS:
|
|
5271
5379
|
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
5380
|
case NodeActionType.USER_SUBMIT_DOB:
|
|
5273
|
-
return (React__default.createElement(DOB, {
|
|
5381
|
+
return (React__default.createElement(DOB, { key: action.key, action: action, trigger: trigger, control: control, locale: locale, labelTuples: labelInputDate, isSubmitting: isSubmitting }));
|
|
5274
5382
|
default:
|
|
5275
5383
|
return '';
|
|
5276
5384
|
}
|
|
@@ -5284,11 +5392,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5284
5392
|
React__default.createElement("span", { className: "subot-checkbox__label" },
|
|
5285
5393
|
React__default.createElement(Markdown, null, action.label)))));
|
|
5286
5394
|
case NodeActionType.USER_SUBMIT_SEND:
|
|
5287
|
-
// const disabledWhenNotVerifyed = hasOtpField ? !verifiedOTP : false
|
|
5288
5395
|
const disabled = hasConfirm ? !confirm : false;
|
|
5289
|
-
const disabledDurgoCampaign = !formState.isValid;
|
|
5290
5396
|
return (React__default.createElement("div", { className: "submit-btn-row", key: action.id },
|
|
5291
|
-
React__default.createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled:
|
|
5397
|
+
React__default.createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled: disabled }, trackingSubmit, { "data-response-id": action.id }), action.label)));
|
|
5292
5398
|
case NodeActionType.USER_SUBMIT_TERMS:
|
|
5293
5399
|
return (React__default.createElement("div", { className: "form-terms", key: action.id },
|
|
5294
5400
|
React__default.createElement(Markdown, null, action.label)));
|