@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/subot.js
CHANGED
|
@@ -3,77 +3,75 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var index$2 = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
8
|
-
var index$3 = require('./index-
|
|
6
|
+
var index$2 = require('./index-d7592554.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-f488b2b2.js');
|
|
8
|
+
var index$3 = require('./index-50e8fd36.js');
|
|
9
9
|
var Cookies = require('js-cookie');
|
|
10
10
|
var fd = require('fastdom');
|
|
11
11
|
var fastdomPromised = require('fastdom/extensions/fastdom-promised');
|
|
12
|
-
var togetherComponentGlobalContext = require('./utils-
|
|
12
|
+
var togetherComponentGlobalContext = require('./utils-8f3e3d3c.js');
|
|
13
13
|
var formatString = require('string-format');
|
|
14
|
-
var index$1 = require('./index-
|
|
14
|
+
var index$1 = require('./index-1dd21577.js');
|
|
15
15
|
var dayjs = require('dayjs');
|
|
16
|
-
var constantsIsProduction = require('./constantsIsProduction.js');
|
|
17
16
|
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
18
17
|
var cn = require('classnames');
|
|
19
|
-
var index$
|
|
20
|
-
var index$
|
|
18
|
+
var index$b = require('./index-80d13144.js');
|
|
19
|
+
var index$a = require('./index-c5e0f64d.js');
|
|
21
20
|
var framerMotion = require('framer-motion');
|
|
22
21
|
var styled = require('@emotion/styled');
|
|
23
|
-
var utils = require('./utils-
|
|
24
|
-
var index$4 = require('./index-
|
|
22
|
+
var utils = require('./utils-827a46b5.js');
|
|
23
|
+
var index$4 = require('./index-2082b8f7.js');
|
|
25
24
|
var remarkable = require('remarkable');
|
|
26
25
|
var other = require('@hhgtech/icons/other');
|
|
27
26
|
var reactIntersectionObserver = require('react-intersection-observer');
|
|
28
27
|
var core = require('@mantine/core');
|
|
29
|
-
var index$5 = require('./index-
|
|
28
|
+
var index$5 = require('./index-8ad268bf.js');
|
|
30
29
|
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
|
|
31
|
-
var constants = require('./constants-
|
|
30
|
+
var constants = require('./constants-2998e15b.js');
|
|
32
31
|
var uuid = require('uuid');
|
|
33
|
-
var index$6 = require('./index-
|
|
32
|
+
var index$6 = require('./index-7bbbfb6e.js');
|
|
34
33
|
var miscTheme = require('./miscTheme.js');
|
|
35
|
-
var
|
|
34
|
+
var constantsIsProduction = require('./constantsIsProduction.js');
|
|
35
|
+
var index$7 = require('./index-b13fa05d.js');
|
|
36
36
|
require('@mantine/dates');
|
|
37
|
-
require('./useMantineLocale-
|
|
38
|
-
require('./index.styles-
|
|
39
|
-
require('./translationsContext-
|
|
37
|
+
require('./useMantineLocale-7934b8c5.js');
|
|
38
|
+
require('./index.styles-ba0c5cfd.js');
|
|
39
|
+
require('./translationsContext-ad7bd42b.js');
|
|
40
40
|
require('@mantine/hooks');
|
|
41
|
-
require('./other-
|
|
42
|
-
require('./index-
|
|
41
|
+
require('./other-7d3d42eb.js');
|
|
42
|
+
require('./index-760e8e45.js');
|
|
43
43
|
var isEmpty = require('lodash/isEmpty');
|
|
44
44
|
var reactHookForm = require('react-hook-form');
|
|
45
45
|
var PhoneInputBase = require('react-phone-number-input');
|
|
46
46
|
var api = require('@react-google-maps/api');
|
|
47
|
-
var usePlacesAutocomplete = require('./usePlacesAutocomplete-
|
|
47
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-730b5034.js');
|
|
48
48
|
var miscDefaultClassWrapper = require('./miscDefaultClassWrapper.js');
|
|
49
|
-
var Locale = require('./Locale-
|
|
50
|
-
var
|
|
51
|
-
var index$8 = require('./index-
|
|
52
|
-
var index$9 = require('./index-
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var utils$1 = require('./utils-f2c7aec1.js');
|
|
49
|
+
var Locale = require('./Locale-c51fbf89.js');
|
|
50
|
+
var InputDate = require('./InputDate-a6f2444f.js');
|
|
51
|
+
var index$8 = require('./index-944b7795.js');
|
|
52
|
+
var index$9 = require('./index-577198d7.js');
|
|
53
|
+
var store = require('./store-3e761bee.js');
|
|
54
|
+
var utils$1 = require('./utils-d6894655.js');
|
|
56
55
|
require('date-fns/locale');
|
|
57
56
|
require('./constantsSite.js');
|
|
58
57
|
require('./constantsRiskScreener.js');
|
|
59
|
-
require('./index-
|
|
58
|
+
require('./index-b54b052c.js');
|
|
60
59
|
require('./miscCookieHelper.js');
|
|
61
60
|
require('slugify');
|
|
62
61
|
require('./togetherApiPaths.js');
|
|
63
|
-
require('./index-
|
|
64
|
-
require('./WhatsApp-
|
|
65
|
-
require('./Spinner-
|
|
66
|
-
require('./index-
|
|
67
|
-
require('./useScreenSize-
|
|
62
|
+
require('./index-5f97737b.js');
|
|
63
|
+
require('./WhatsApp-8e6f2318.js');
|
|
64
|
+
require('./Spinner-ccf5f61b.js');
|
|
65
|
+
require('./index-bd0178b9.js');
|
|
66
|
+
require('./useScreenSize-c5222348.js');
|
|
68
67
|
require('@mantine/carousel');
|
|
69
|
-
require('./useUniqueId-
|
|
68
|
+
require('./useUniqueId-7687c8a1.js');
|
|
70
69
|
require('@hhgtech/icons/core');
|
|
71
70
|
require('@mantine/notifications');
|
|
72
|
-
require('
|
|
73
|
-
require('react-day-picker/DayPickerInput');
|
|
71
|
+
require('@emotion/react');
|
|
74
72
|
require('zustand');
|
|
75
|
-
require('./normalizeLink-
|
|
76
|
-
require('./healthTools-
|
|
73
|
+
require('./normalizeLink-121dd2e2.js');
|
|
74
|
+
require('./healthTools-e294bc9c.js');
|
|
77
75
|
|
|
78
76
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
79
77
|
|
|
@@ -88,7 +86,6 @@ var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
|
88
86
|
var isSameOrBefore__default = /*#__PURE__*/_interopDefault(isSameOrBefore);
|
|
89
87
|
var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty);
|
|
90
88
|
var PhoneInputBase__default = /*#__PURE__*/_interopDefault(PhoneInputBase);
|
|
91
|
-
var get__default = /*#__PURE__*/_interopDefault(get);
|
|
92
89
|
|
|
93
90
|
// extend fastdom
|
|
94
91
|
const fastdom = fd__default["default"].extend(fastdomPromised__default["default"]);
|
|
@@ -233,10 +230,6 @@ const subotInlineImpression = (data) => tslib_es6.__awaiter(void 0, void 0, void
|
|
|
233
230
|
catch (error) { }
|
|
234
231
|
});
|
|
235
232
|
|
|
236
|
-
const isDurgoCampaignFn = (botId) => {
|
|
237
|
-
const botIdNumber = Number(botId);
|
|
238
|
-
return constantsIsProduction.isProduction ? botIdNumber === 2629 : botIdNumber === 1092;
|
|
239
|
-
};
|
|
240
233
|
const calcAge = (value) => {
|
|
241
234
|
const birthDate = dayjs__default["default"](value);
|
|
242
235
|
const today = dayjs__default["default"]();
|
|
@@ -250,13 +243,43 @@ const calcAge = (value) => {
|
|
|
250
243
|
* Temporary hard the range of age from 1 -> 6 for Durgo Campaign at this time
|
|
251
244
|
* Ticket: https://hhgdev.atlassian.net/browse/HTO-1327
|
|
252
245
|
*/
|
|
253
|
-
const validateAge = (value, errMsg) => {
|
|
254
|
-
const { birthDate, today
|
|
255
|
-
if (
|
|
256
|
-
|
|
257
|
-
|
|
246
|
+
const validateAge = (value, errMsg, conditions) => {
|
|
247
|
+
const { birthDate, today } = calcAge(value);
|
|
248
|
+
if (!conditions || !conditions.length) {
|
|
249
|
+
return true;
|
|
250
|
+
}
|
|
251
|
+
const diff = today.diff(birthDate, 'M') / 12;
|
|
252
|
+
/**
|
|
253
|
+
* No body in future can validate
|
|
254
|
+
*/
|
|
255
|
+
if (diff < 0 || (diff === 0 && today.date() < birthDate.date())) {
|
|
256
|
+
return errMsg;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* from, to
|
|
260
|
+
* if from === null then compare 0 - to
|
|
261
|
+
* if to === null then compare from - infinity
|
|
262
|
+
*/
|
|
263
|
+
let isValid = false;
|
|
264
|
+
if (Array.isArray(conditions)) {
|
|
265
|
+
for (const cond of conditions) {
|
|
266
|
+
const { from, to } = cond || {};
|
|
267
|
+
if (!from && !to) {
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
if ((from <= diff && diff <= to) ||
|
|
271
|
+
(from <= diff && to === null) ||
|
|
272
|
+
(from === null && to <= diff)) {
|
|
273
|
+
isValid = true;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
258
277
|
}
|
|
259
|
-
|
|
278
|
+
if (typeof localStorage !== 'undefined' &&
|
|
279
|
+
localStorage.getItem('hhg_debug') === 'true') {
|
|
280
|
+
console.log('Log __DOB__ : ', { conditions, isValid, diff });
|
|
281
|
+
}
|
|
282
|
+
return isValid || errMsg;
|
|
260
283
|
};
|
|
261
284
|
|
|
262
285
|
const getDynamicScore = (node) => {
|
|
@@ -3585,6 +3608,239 @@ const useAddressMultipleLevelData = (countryCode) => {
|
|
|
3585
3608
|
};
|
|
3586
3609
|
};
|
|
3587
3610
|
|
|
3611
|
+
const CheckCircleGreen = (props) => {
|
|
3612
|
+
return (React__default["default"].createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3613
|
+
React__default["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" })));
|
|
3614
|
+
};
|
|
3615
|
+
|
|
3616
|
+
const IconEdit = (props) => {
|
|
3617
|
+
return (React__default["default"].createElement("svg", Object.assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3618
|
+
React__default["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" })));
|
|
3619
|
+
};
|
|
3620
|
+
|
|
3621
|
+
const InfoError = (props) => {
|
|
3622
|
+
return (React__default["default"].createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3623
|
+
React__default["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" })));
|
|
3624
|
+
};
|
|
3625
|
+
|
|
3626
|
+
const CountDown = ({ onFinish, onClick, isFinished, resendLabel, className }, ref) => {
|
|
3627
|
+
const [count, setCount] = React.useState(index$1.TIME_RESET_RESEND_OTP);
|
|
3628
|
+
const intervalId = React.useRef();
|
|
3629
|
+
const onFinishLatest = React.useRef();
|
|
3630
|
+
const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
3631
|
+
onFinishLatest.current = onFinish;
|
|
3632
|
+
const resetCountDown = React.useCallback(() => {
|
|
3633
|
+
let currentCount = index$1.TIME_RESET_RESEND_OTP;
|
|
3634
|
+
setCount(currentCount);
|
|
3635
|
+
clearInterval(intervalId.current);
|
|
3636
|
+
intervalId.current = setInterval(() => {
|
|
3637
|
+
var _a;
|
|
3638
|
+
currentCount = currentCount - 1;
|
|
3639
|
+
setCount(currentCount);
|
|
3640
|
+
if (currentCount === 0) {
|
|
3641
|
+
(_a = onFinishLatest.current) === null || _a === void 0 ? void 0 : _a.call(onFinishLatest, true);
|
|
3642
|
+
clearInterval(intervalId.current);
|
|
3643
|
+
}
|
|
3644
|
+
}, 1000);
|
|
3645
|
+
}, []);
|
|
3646
|
+
const cancelCountDown = React.useCallback(() => {
|
|
3647
|
+
setCount(0);
|
|
3648
|
+
clearInterval(intervalId.current);
|
|
3649
|
+
}, []);
|
|
3650
|
+
React.useImperativeHandle(ref, () => ({
|
|
3651
|
+
reset: resetCountDown,
|
|
3652
|
+
cancel: cancelCountDown,
|
|
3653
|
+
isFinished: count === 0,
|
|
3654
|
+
}));
|
|
3655
|
+
React.useEffect(() => {
|
|
3656
|
+
resetCountDown();
|
|
3657
|
+
return () => {
|
|
3658
|
+
clearInterval(intervalId.current);
|
|
3659
|
+
};
|
|
3660
|
+
}, []);
|
|
3661
|
+
return (React__default["default"].createElement("div", { className: className, onClick: onClick },
|
|
3662
|
+
resendLabel
|
|
3663
|
+
? resendLabel
|
|
3664
|
+
: f({
|
|
3665
|
+
id: 'subot.resendOTP.button',
|
|
3666
|
+
defaultMessage: 'Resend',
|
|
3667
|
+
}),
|
|
3668
|
+
count > 0 && !isFinished && ` (${count}s)`));
|
|
3669
|
+
};
|
|
3670
|
+
var CountDown$1 = React.forwardRef(CountDown);
|
|
3671
|
+
|
|
3672
|
+
styled__default["default"].div `
|
|
3673
|
+
margin: 0 auto;
|
|
3674
|
+
background: #f7f9fc;
|
|
3675
|
+
border-radius: ${miscTheme.theme.borderRadius};
|
|
3676
|
+
${utils.MediaQueries.mbDown} {
|
|
3677
|
+
padding: 16px;
|
|
3678
|
+
}
|
|
3679
|
+
${utils.MediaQueries.tdDown} {
|
|
3680
|
+
padding: 24px;
|
|
3681
|
+
}
|
|
3682
|
+
${utils.MediaQueries.mbUp} {
|
|
3683
|
+
padding: 32px;
|
|
3684
|
+
}
|
|
3685
|
+
.user-info-form {
|
|
3686
|
+
.input-row {
|
|
3687
|
+
${utils.MediaQueries.mbDown} {
|
|
3688
|
+
margin-bottom: 16px;
|
|
3689
|
+
}
|
|
3690
|
+
${utils.MediaQueries.tdDown} {
|
|
3691
|
+
margin-bottom: 18px;
|
|
3692
|
+
}
|
|
3693
|
+
${utils.MediaQueries.mbUp} {
|
|
3694
|
+
margin-bottom: 20px;
|
|
3695
|
+
}
|
|
3696
|
+
.address-dropdown > ul {
|
|
3697
|
+
z-index: 20000;
|
|
3698
|
+
max-height: 250px;
|
|
3699
|
+
overflow-y: auto;
|
|
3700
|
+
}
|
|
3701
|
+
|
|
3702
|
+
&.error {
|
|
3703
|
+
margin-bottom: 0;
|
|
3704
|
+
}
|
|
3705
|
+
}
|
|
3706
|
+
label {
|
|
3707
|
+
display: block;
|
|
3708
|
+
margin-bottom: 6px;
|
|
3709
|
+
color: ${miscTheme.theme.colors.gray600};
|
|
3710
|
+
font-size: 13px;
|
|
3711
|
+
font-weight: bold;
|
|
3712
|
+
}
|
|
3713
|
+
input[type='tel'],
|
|
3714
|
+
input[type='number'] {
|
|
3715
|
+
width: 100%;
|
|
3716
|
+
padding: 12px 16px;
|
|
3717
|
+
border: solid 1px ${miscTheme.theme.colors.gray200};
|
|
3718
|
+
background: #fff;
|
|
3719
|
+
border-radius: ${miscTheme.theme.borderRadius};
|
|
3720
|
+
|
|
3721
|
+
&[disabled] {
|
|
3722
|
+
background-color: ${miscTheme.theme.colors.gray100};
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3725
|
+
input[type='number']::-webkit-inner-spin-button,
|
|
3726
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
3727
|
+
-webkit-appearance: none;
|
|
3728
|
+
-moz-appearance: none;
|
|
3729
|
+
appearance: none;
|
|
3730
|
+
}
|
|
3731
|
+
button {
|
|
3732
|
+
width: 100%;
|
|
3733
|
+
}
|
|
3734
|
+
.error-message {
|
|
3735
|
+
display: block;
|
|
3736
|
+
padding-bottom: 20px;
|
|
3737
|
+
color: ${miscTheme.theme.colors.red700};
|
|
3738
|
+
font-weight: ${miscTheme.theme.sizes.fwRegular};
|
|
3739
|
+
}
|
|
3740
|
+
.submit-btn {
|
|
3741
|
+
padding: 12px 24px;
|
|
3742
|
+
background-color: ${miscTheme.theme.colors.primaryBase};
|
|
3743
|
+
border-radius: ${miscTheme.theme.borderRadius};
|
|
3744
|
+
color: #fff;
|
|
3745
|
+
cursor: pointer;
|
|
3746
|
+
font-size: 16px;
|
|
3747
|
+
font-weight: 700;
|
|
3748
|
+
line-height: 24px;
|
|
3749
|
+
transition: background-color 0.3s, border-color 0.3s;
|
|
3750
|
+
display: flex;
|
|
3751
|
+
justify-content: center;
|
|
3752
|
+
&:hover {
|
|
3753
|
+
background-color: ${miscTheme.theme.colors.primaryHover};
|
|
3754
|
+
}
|
|
3755
|
+
&[disabled] {
|
|
3756
|
+
background-color: ${miscTheme.theme.colors.gray200};
|
|
3757
|
+
color: #bfbfbf;
|
|
3758
|
+
cursor: not-allowed;
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
.spinner {
|
|
3762
|
+
margin-right: 20px;
|
|
3763
|
+
}
|
|
3764
|
+
}
|
|
3765
|
+
.submit-btn-row {
|
|
3766
|
+
${utils.MediaQueries.mbUp} {
|
|
3767
|
+
margin-bottom: 16px;
|
|
3768
|
+
}
|
|
3769
|
+
${utils.MediaQueries.tdDown} {
|
|
3770
|
+
margin-bottom: 14px;
|
|
3771
|
+
}
|
|
3772
|
+
${utils.MediaQueries.mbDown} {
|
|
3773
|
+
margin-bottom: 12px;
|
|
3774
|
+
}
|
|
3775
|
+
.subot-checkbox {
|
|
3776
|
+
display: flex;
|
|
3777
|
+
align-items: flex-start;
|
|
3778
|
+
margin: 0;
|
|
3779
|
+
cursor: pointer;
|
|
3780
|
+
&__input {
|
|
3781
|
+
position: relative;
|
|
3782
|
+
display: block;
|
|
3783
|
+
overflow: hidden;
|
|
3784
|
+
width: 18px;
|
|
3785
|
+
height: 18px;
|
|
3786
|
+
box-sizing: border-box;
|
|
3787
|
+
padding: 0;
|
|
3788
|
+
margin-right: 10px;
|
|
3789
|
+
&:before {
|
|
3790
|
+
position: absolute;
|
|
3791
|
+
top: 0;
|
|
3792
|
+
right: 0;
|
|
3793
|
+
bottom: 0;
|
|
3794
|
+
left: 0;
|
|
3795
|
+
display: flex;
|
|
3796
|
+
background-color: ${miscTheme.theme.colors.primaryBase};
|
|
3797
|
+
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>');
|
|
3798
|
+
background-position: center;
|
|
3799
|
+
background-repeat: no-repeat;
|
|
3800
|
+
background-size: 120%;
|
|
3801
|
+
content: '';
|
|
3802
|
+
opacity: 0;
|
|
3803
|
+
transition: 0.3s all ease;
|
|
3804
|
+
}
|
|
3805
|
+
&:checked:before {
|
|
3806
|
+
opacity: 1;
|
|
3807
|
+
transition: 0.3s all ease;
|
|
3808
|
+
}
|
|
3809
|
+
}
|
|
3810
|
+
&__label {
|
|
3811
|
+
flex: 1;
|
|
3812
|
+
font-weight: 400;
|
|
3813
|
+
line-height: 1.4;
|
|
3814
|
+
}
|
|
3815
|
+
}
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3818
|
+
`;
|
|
3819
|
+
const StyleWrapperPhoneInput = styled__default["default"].div `
|
|
3820
|
+
position: relative;
|
|
3821
|
+
|
|
3822
|
+
.PhoneInputCountry {
|
|
3823
|
+
background-color: #f2f2f2;
|
|
3824
|
+
|
|
3825
|
+
.PhoneInputCountrySelectArrow {
|
|
3826
|
+
display: none !important;
|
|
3827
|
+
}
|
|
3828
|
+
}
|
|
3829
|
+
|
|
3830
|
+
.icon-edit-phone {
|
|
3831
|
+
width: 1em;
|
|
3832
|
+
height: 1em;
|
|
3833
|
+
position: absolute;
|
|
3834
|
+
right: 16px;
|
|
3835
|
+
top: 17px;
|
|
3836
|
+
cursor: pointer;
|
|
3837
|
+
|
|
3838
|
+
path {
|
|
3839
|
+
fill: ${miscTheme.theme.colors.gray600};
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
3842
|
+
`;
|
|
3843
|
+
|
|
3588
3844
|
const Location = (props) => {
|
|
3589
3845
|
return (React__default["default"].createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3590
3846
|
React__default["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" })));
|
|
@@ -4128,6 +4384,27 @@ const StyledUserInfoFormContainer = styled__default["default"].div `
|
|
|
4128
4384
|
text-decoration: none;
|
|
4129
4385
|
}
|
|
4130
4386
|
}
|
|
4387
|
+
|
|
4388
|
+
.subot_input_date {
|
|
4389
|
+
--input-height: 46px;
|
|
4390
|
+
--input-max-width: 100%;
|
|
4391
|
+
input[type='text'] {
|
|
4392
|
+
padding: 0 !important;
|
|
4393
|
+
background-color: transparent !important;
|
|
4394
|
+
background-image: none !important;
|
|
4395
|
+
border: none !important;
|
|
4396
|
+
line-height: 0.5;
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4399
|
+
.input_date-input_container {
|
|
4400
|
+
background-color: #fff;
|
|
4401
|
+
|
|
4402
|
+
&:focus-within,
|
|
4403
|
+
&.input_date-input_shrink {
|
|
4404
|
+
--input-padding-y: 5px;
|
|
4405
|
+
}
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4131
4408
|
}
|
|
4132
4409
|
|
|
4133
4410
|
&.si-form-revamp {
|
|
@@ -4270,240 +4547,37 @@ const getTransPleaseVerifiedOtp = () => {
|
|
|
4270
4547
|
pleaseVerifiedOtp.set(Locale.LOCALE.Thailand, 'กรุณาตรวจสอบหมายเลขโทรศัพท์ของคุณ');
|
|
4271
4548
|
pleaseVerifiedOtp.set(Locale.LOCALE.PhilippinesTagalog, 'Paki-verify ang iyong numero ng telepono');
|
|
4272
4549
|
return pleaseVerifiedOtp;
|
|
4273
|
-
};
|
|
4274
|
-
|
|
4275
|
-
const CheckCircleGreen = (props) => {
|
|
4276
|
-
return (React__default["default"].createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
4277
|
-
React__default["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" })));
|
|
4278
|
-
};
|
|
4279
|
-
|
|
4280
|
-
const IconEdit = (props) => {
|
|
4281
|
-
return (React__default["default"].createElement("svg", Object.assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
4282
|
-
React__default["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" })));
|
|
4283
|
-
};
|
|
4284
|
-
|
|
4285
|
-
const InfoError = (props) => {
|
|
4286
|
-
return (React__default["default"].createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
4287
|
-
React__default["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" })));
|
|
4288
|
-
};
|
|
4289
|
-
|
|
4290
|
-
const CountDown = ({ onFinish, onClick, isFinished, resendLabel, className }, ref) => {
|
|
4291
|
-
const [count, setCount] = React.useState(index$1.TIME_RESET_RESEND_OTP);
|
|
4292
|
-
const intervalId = React.useRef();
|
|
4293
|
-
const onFinishLatest = React.useRef();
|
|
4294
|
-
const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
4295
|
-
onFinishLatest.current = onFinish;
|
|
4296
|
-
const resetCountDown = React.useCallback(() => {
|
|
4297
|
-
let currentCount = index$1.TIME_RESET_RESEND_OTP;
|
|
4298
|
-
setCount(currentCount);
|
|
4299
|
-
clearInterval(intervalId.current);
|
|
4300
|
-
intervalId.current = setInterval(() => {
|
|
4301
|
-
var _a;
|
|
4302
|
-
currentCount = currentCount - 1;
|
|
4303
|
-
setCount(currentCount);
|
|
4304
|
-
if (currentCount === 0) {
|
|
4305
|
-
(_a = onFinishLatest.current) === null || _a === void 0 ? void 0 : _a.call(onFinishLatest, true);
|
|
4306
|
-
clearInterval(intervalId.current);
|
|
4307
|
-
}
|
|
4308
|
-
}, 1000);
|
|
4309
|
-
}, []);
|
|
4310
|
-
const cancelCountDown = React.useCallback(() => {
|
|
4311
|
-
setCount(0);
|
|
4312
|
-
clearInterval(intervalId.current);
|
|
4313
|
-
}, []);
|
|
4314
|
-
React.useImperativeHandle(ref, () => ({
|
|
4315
|
-
reset: resetCountDown,
|
|
4316
|
-
cancel: cancelCountDown,
|
|
4317
|
-
isFinished: count === 0,
|
|
4318
|
-
}));
|
|
4319
|
-
React.useEffect(() => {
|
|
4320
|
-
resetCountDown();
|
|
4321
|
-
return () => {
|
|
4322
|
-
clearInterval(intervalId.current);
|
|
4323
|
-
};
|
|
4324
|
-
}, []);
|
|
4325
|
-
return (React__default["default"].createElement("div", { className: className, onClick: onClick },
|
|
4326
|
-
resendLabel
|
|
4327
|
-
? resendLabel
|
|
4328
|
-
: f({
|
|
4329
|
-
id: 'subot.resendOTP.button',
|
|
4330
|
-
defaultMessage: 'Resend',
|
|
4331
|
-
}),
|
|
4332
|
-
count > 0 && !isFinished && ` (${count}s)`));
|
|
4333
4550
|
};
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
}
|
|
4365
|
-
|
|
4366
|
-
&.error {
|
|
4367
|
-
margin-bottom: 0;
|
|
4368
|
-
}
|
|
4369
|
-
}
|
|
4370
|
-
label {
|
|
4371
|
-
display: block;
|
|
4372
|
-
margin-bottom: 6px;
|
|
4373
|
-
color: ${miscTheme.theme.colors.gray600};
|
|
4374
|
-
font-size: 13px;
|
|
4375
|
-
font-weight: bold;
|
|
4376
|
-
}
|
|
4377
|
-
input[type='tel'],
|
|
4378
|
-
input[type='number'] {
|
|
4379
|
-
width: 100%;
|
|
4380
|
-
padding: 12px 16px;
|
|
4381
|
-
border: solid 1px ${miscTheme.theme.colors.gray200};
|
|
4382
|
-
background: #fff;
|
|
4383
|
-
border-radius: ${miscTheme.theme.borderRadius};
|
|
4384
|
-
|
|
4385
|
-
&[disabled] {
|
|
4386
|
-
background-color: ${miscTheme.theme.colors.gray100};
|
|
4387
|
-
}
|
|
4388
|
-
}
|
|
4389
|
-
input[type='number']::-webkit-inner-spin-button,
|
|
4390
|
-
input[type='number']::-webkit-outer-spin-button {
|
|
4391
|
-
-webkit-appearance: none;
|
|
4392
|
-
-moz-appearance: none;
|
|
4393
|
-
appearance: none;
|
|
4394
|
-
}
|
|
4395
|
-
button {
|
|
4396
|
-
width: 100%;
|
|
4397
|
-
}
|
|
4398
|
-
.error-message {
|
|
4399
|
-
display: block;
|
|
4400
|
-
padding-bottom: 20px;
|
|
4401
|
-
color: ${miscTheme.theme.colors.red700};
|
|
4402
|
-
font-weight: ${miscTheme.theme.sizes.fwRegular};
|
|
4403
|
-
}
|
|
4404
|
-
.submit-btn {
|
|
4405
|
-
padding: 12px 24px;
|
|
4406
|
-
background-color: ${miscTheme.theme.colors.primaryBase};
|
|
4407
|
-
border-radius: ${miscTheme.theme.borderRadius};
|
|
4408
|
-
color: #fff;
|
|
4409
|
-
cursor: pointer;
|
|
4410
|
-
font-size: 16px;
|
|
4411
|
-
font-weight: 700;
|
|
4412
|
-
line-height: 24px;
|
|
4413
|
-
transition: background-color 0.3s, border-color 0.3s;
|
|
4414
|
-
display: flex;
|
|
4415
|
-
justify-content: center;
|
|
4416
|
-
&:hover {
|
|
4417
|
-
background-color: ${miscTheme.theme.colors.primaryHover};
|
|
4418
|
-
}
|
|
4419
|
-
&[disabled] {
|
|
4420
|
-
background-color: ${miscTheme.theme.colors.gray200};
|
|
4421
|
-
color: #bfbfbf;
|
|
4422
|
-
cursor: not-allowed;
|
|
4423
|
-
}
|
|
4424
|
-
|
|
4425
|
-
.spinner {
|
|
4426
|
-
margin-right: 20px;
|
|
4427
|
-
}
|
|
4428
|
-
}
|
|
4429
|
-
.submit-btn-row {
|
|
4430
|
-
${utils.MediaQueries.mbUp} {
|
|
4431
|
-
margin-bottom: 16px;
|
|
4432
|
-
}
|
|
4433
|
-
${utils.MediaQueries.tdDown} {
|
|
4434
|
-
margin-bottom: 14px;
|
|
4435
|
-
}
|
|
4436
|
-
${utils.MediaQueries.mbDown} {
|
|
4437
|
-
margin-bottom: 12px;
|
|
4438
|
-
}
|
|
4439
|
-
.subot-checkbox {
|
|
4440
|
-
display: flex;
|
|
4441
|
-
align-items: flex-start;
|
|
4442
|
-
margin: 0;
|
|
4443
|
-
cursor: pointer;
|
|
4444
|
-
&__input {
|
|
4445
|
-
position: relative;
|
|
4446
|
-
display: block;
|
|
4447
|
-
overflow: hidden;
|
|
4448
|
-
width: 18px;
|
|
4449
|
-
height: 18px;
|
|
4450
|
-
box-sizing: border-box;
|
|
4451
|
-
padding: 0;
|
|
4452
|
-
margin-right: 10px;
|
|
4453
|
-
&:before {
|
|
4454
|
-
position: absolute;
|
|
4455
|
-
top: 0;
|
|
4456
|
-
right: 0;
|
|
4457
|
-
bottom: 0;
|
|
4458
|
-
left: 0;
|
|
4459
|
-
display: flex;
|
|
4460
|
-
background-color: ${miscTheme.theme.colors.primaryBase};
|
|
4461
|
-
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>');
|
|
4462
|
-
background-position: center;
|
|
4463
|
-
background-repeat: no-repeat;
|
|
4464
|
-
background-size: 120%;
|
|
4465
|
-
content: '';
|
|
4466
|
-
opacity: 0;
|
|
4467
|
-
transition: 0.3s all ease;
|
|
4468
|
-
}
|
|
4469
|
-
&:checked:before {
|
|
4470
|
-
opacity: 1;
|
|
4471
|
-
transition: 0.3s all ease;
|
|
4472
|
-
}
|
|
4473
|
-
}
|
|
4474
|
-
&__label {
|
|
4475
|
-
flex: 1;
|
|
4476
|
-
font-weight: 400;
|
|
4477
|
-
line-height: 1.4;
|
|
4478
|
-
}
|
|
4479
|
-
}
|
|
4480
|
-
}
|
|
4481
|
-
}
|
|
4482
|
-
`;
|
|
4483
|
-
const StyleWrapperPhoneInput = styled__default["default"].div `
|
|
4484
|
-
position: relative;
|
|
4485
|
-
|
|
4486
|
-
.PhoneInputCountry {
|
|
4487
|
-
background-color: #f2f2f2;
|
|
4488
|
-
|
|
4489
|
-
.PhoneInputCountrySelectArrow {
|
|
4490
|
-
display: none !important;
|
|
4491
|
-
}
|
|
4492
|
-
}
|
|
4493
|
-
|
|
4494
|
-
.icon-edit-phone {
|
|
4495
|
-
width: 1em;
|
|
4496
|
-
height: 1em;
|
|
4497
|
-
position: absolute;
|
|
4498
|
-
right: 16px;
|
|
4499
|
-
top: 17px;
|
|
4500
|
-
cursor: pointer;
|
|
4501
|
-
|
|
4502
|
-
path {
|
|
4503
|
-
fill: ${miscTheme.theme.colors.gray600};
|
|
4504
|
-
}
|
|
4505
|
-
}
|
|
4506
|
-
`;
|
|
4551
|
+
const validateDateField = (value, isSubmitting, f, cb) => {
|
|
4552
|
+
let errMsg = f({
|
|
4553
|
+
id: 'error.day.invalid',
|
|
4554
|
+
defaultMessage: 'This date is not valid, please update.',
|
|
4555
|
+
});
|
|
4556
|
+
if (!value) {
|
|
4557
|
+
errMsg = f({
|
|
4558
|
+
id: 'validation.error.requiredField',
|
|
4559
|
+
defaultMessage: 'This field is required',
|
|
4560
|
+
});
|
|
4561
|
+
return errMsg;
|
|
4562
|
+
}
|
|
4563
|
+
if (typeof value === 'string') {
|
|
4564
|
+
const valueArr = value.split('/');
|
|
4565
|
+
if (valueArr.length === 3) {
|
|
4566
|
+
return errMsg;
|
|
4567
|
+
}
|
|
4568
|
+
else {
|
|
4569
|
+
return isSubmitting ? errMsg : true;
|
|
4570
|
+
}
|
|
4571
|
+
}
|
|
4572
|
+
const dayInJs = dayjs__default["default"](value);
|
|
4573
|
+
if (!dayInJs.isValid()) {
|
|
4574
|
+
return errMsg;
|
|
4575
|
+
}
|
|
4576
|
+
if (cb) {
|
|
4577
|
+
return cb(value);
|
|
4578
|
+
}
|
|
4579
|
+
return true;
|
|
4580
|
+
};
|
|
4507
4581
|
|
|
4508
4582
|
var _a, _b, _c, _d, _e;
|
|
4509
4583
|
const StyledPhoneCode = styled__default["default"].div `
|
|
@@ -4630,44 +4704,46 @@ const PhoneInputWithCode = (props) => {
|
|
|
4630
4704
|
return (React__default["default"].createElement(StyledPhoneInputWithCode, Object.assign({}, props, { flagComponent: FlagComponent })));
|
|
4631
4705
|
};
|
|
4632
4706
|
|
|
4633
|
-
const DOB = ({ action,
|
|
4634
|
-
const { id, key, label } = action !== null && action !== void 0 ? action : {};
|
|
4635
|
-
const locale = togetherComponentGlobalContext.GlobalData === null || togetherComponentGlobalContext.GlobalData === void 0 ? void 0 : togetherComponentGlobalContext.GlobalData.locale;
|
|
4707
|
+
const DOB = ({ action, trigger, control, locale: localeProps, labelTuples, isSubmitting, }) => {
|
|
4708
|
+
const { id, key, label, validated_message, validated_conditions } = action !== null && action !== void 0 ? action : {};
|
|
4709
|
+
const locale = localeProps || (togetherComponentGlobalContext.GlobalData === null || togetherComponentGlobalContext.GlobalData === void 0 ? void 0 : togetherComponentGlobalContext.GlobalData.locale);
|
|
4636
4710
|
const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
4637
|
-
/**
|
|
4638
|
-
* Temporary hard for Durgo Campaign at this time
|
|
4639
|
-
* Ticket: https://hhgdev.atlassian.net/browse/HTO-1327
|
|
4640
|
-
* Production is: 2629
|
|
4641
|
-
* Staging is: 1092
|
|
4642
|
-
*/
|
|
4643
|
-
const isDurgoCampaign = isDurgoCampaignFn(botId);
|
|
4644
|
-
const error = get__default["default"](errors, key);
|
|
4645
|
-
const dobErrMsg = get__default["default"](error, 'message');
|
|
4646
|
-
const handleOnChange = (_value) => {
|
|
4647
|
-
const dateString = dayjs__default["default"](_value).format(index$3.API_DATE_FORMAT);
|
|
4648
|
-
setValue(key, dateString);
|
|
4649
|
-
trigger(key);
|
|
4650
|
-
};
|
|
4651
4711
|
return (React__default["default"].createElement("div", { className: "input-row", key: id },
|
|
4652
4712
|
React__default["default"].createElement("label", { htmlFor: key }, label),
|
|
4653
|
-
React__default["default"].createElement(
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4713
|
+
React__default["default"].createElement(reactHookForm.Controller, { name: action.key, control: control, rules: {
|
|
4714
|
+
required: {
|
|
4715
|
+
value: true,
|
|
4716
|
+
message: f({
|
|
4717
|
+
id: 'validation.error.requiredField',
|
|
4718
|
+
defaultMessage: 'This field is required',
|
|
4719
|
+
}),
|
|
4720
|
+
},
|
|
4657
4721
|
validate: {
|
|
4658
|
-
ageRange: (value) =>
|
|
4659
|
-
|
|
4722
|
+
ageRange: (value) => validateDateField(value, isSubmitting, f, (value) => validateAge(value, validated_message ||
|
|
4723
|
+
f({
|
|
4660
4724
|
id: 'validation.error.requiredAgeGroup',
|
|
4661
4725
|
defaultMessage: 'Sorry, your child is not in the required Age Group.',
|
|
4662
|
-
}))
|
|
4663
|
-
|
|
4726
|
+
}), (() => {
|
|
4727
|
+
try {
|
|
4728
|
+
return JSON.parse(validated_conditions);
|
|
4729
|
+
}
|
|
4730
|
+
catch (error) {
|
|
4731
|
+
return [];
|
|
4732
|
+
}
|
|
4733
|
+
})())),
|
|
4664
4734
|
},
|
|
4665
|
-
})
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4735
|
+
}, render: ({ field, fieldState }) => {
|
|
4736
|
+
const { value, name, onChange } = field, restField = tslib_es6.__rest(field, ["value", "name", "onChange"]);
|
|
4737
|
+
const { error } = fieldState;
|
|
4738
|
+
const isError = !!error;
|
|
4739
|
+
return (React__default["default"].createElement("div", null,
|
|
4740
|
+
React__default["default"].createElement(StyleDatePickerInput, null,
|
|
4741
|
+
React__default["default"].createElement(InputDate.InputDate, Object.assign({}, restField, { defaultValue: value, onChange: (val) => {
|
|
4742
|
+
onChange(val);
|
|
4743
|
+
trigger(name);
|
|
4744
|
+
}, labelTuples: labelTuples, locale: locale, error: isError, className: "subot_input subot_input_date" }))),
|
|
4745
|
+
isError && React__default["default"].createElement("p", { className: "error-message" }, error === null || error === void 0 ? void 0 : error.message)));
|
|
4746
|
+
} })));
|
|
4671
4747
|
};
|
|
4672
4748
|
|
|
4673
4749
|
const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSubmitMeta, isFormRevamp, botId, nodeId, trackingSubmitBtn, }) => {
|
|
@@ -4725,6 +4801,12 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4725
4801
|
return;
|
|
4726
4802
|
}
|
|
4727
4803
|
data[d.key] = d.value;
|
|
4804
|
+
if ([
|
|
4805
|
+
index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DATE],
|
|
4806
|
+
index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DOB],
|
|
4807
|
+
].includes(d.control)) {
|
|
4808
|
+
data[d.key] = dayjs__default["default"](d.value, index$3.API_DATE_FORMAT).toDate();
|
|
4809
|
+
}
|
|
4728
4810
|
});
|
|
4729
4811
|
if (data['otpPhoneNumber']) {
|
|
4730
4812
|
setVerifiedOTP(true);
|
|
@@ -4791,10 +4873,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4791
4873
|
return index$2.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE === action.type;
|
|
4792
4874
|
});
|
|
4793
4875
|
}, [actions]);
|
|
4876
|
+
const { labelInputDate } = React.useMemo(() => {
|
|
4877
|
+
const { dateFormat } = (index$3.ISO_FORMAT === null || index$3.ISO_FORMAT === void 0 ? void 0 : index$3.ISO_FORMAT[locale]) || index$3.ISO_FORMAT['vi-VN'];
|
|
4878
|
+
return {
|
|
4879
|
+
dateFormat,
|
|
4880
|
+
labelInputDate: dateFormat
|
|
4881
|
+
.split('/')
|
|
4882
|
+
.map((key) => f(index$2.COMMON_DATE_TRANSLATE_KEY === null || index$2.COMMON_DATE_TRANSLATE_KEY === void 0 ? void 0 : index$2.COMMON_DATE_TRANSLATE_KEY[key])),
|
|
4883
|
+
};
|
|
4884
|
+
}, [locale, f]);
|
|
4794
4885
|
const inputType = index$2.ELEMENT_CONTROL_INPUT_TYPE;
|
|
4795
|
-
const { register, handleSubmit, watch, formState: { errors }, control, setValue, setError, clearErrors, getValues, trigger, } = reactHookForm.useForm({ defaultValues: defaultFormValues });
|
|
4796
|
-
const formState = reactHookForm.useFormState({ control });
|
|
4797
|
-
const isDurgoCampaign = isDurgoCampaignFn(botId);
|
|
4886
|
+
const { register, handleSubmit, watch, formState: { errors, isSubmitting }, control, setValue, setError, clearErrors, getValues, trigger, } = reactHookForm.useForm({ defaultValues: defaultFormValues });
|
|
4798
4887
|
const setSubmitData = (data) => {
|
|
4799
4888
|
const submitMeta = [];
|
|
4800
4889
|
for (const action of actions) {
|
|
@@ -4826,13 +4915,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4826
4915
|
value: data[action.key].label || '',
|
|
4827
4916
|
});
|
|
4828
4917
|
}
|
|
4829
|
-
else if (action.type === index$2.NodeActionType.USER_SUBMIT_DOB
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4918
|
+
else if (action.type === index$2.NodeActionType.USER_SUBMIT_DOB ||
|
|
4919
|
+
action.type === index$2.NodeActionType.USER_SUBMIT_DATE) {
|
|
4920
|
+
const dobStr = (data[action.key] || '');
|
|
4921
|
+
const dayInJS = dayjs__default["default"](dobStr);
|
|
4922
|
+
if (dayInJS.isValid()) {
|
|
4923
|
+
submitMeta.push({
|
|
4924
|
+
key: action.key,
|
|
4925
|
+
control: inputType[action.type] || '',
|
|
4926
|
+
value: dayInJS.format(index$3.API_DATE_FORMAT),
|
|
4927
|
+
});
|
|
4928
|
+
}
|
|
4836
4929
|
}
|
|
4837
4930
|
else if (isActionTypeOtp(action.type)) {
|
|
4838
4931
|
submitMeta.push({
|
|
@@ -5055,7 +5148,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5055
5148
|
required: true,
|
|
5056
5149
|
}, render: (props) => {
|
|
5057
5150
|
var _a;
|
|
5058
|
-
return (React__default["default"].createElement(index$
|
|
5151
|
+
return (React__default["default"].createElement(index$9.Dropdown, { id: actionAddressLever1.id, options: provinceData, onChange: (val) => {
|
|
5059
5152
|
props.field.onChange(val);
|
|
5060
5153
|
handleSelectedProvince(val);
|
|
5061
5154
|
}, value: props.field.value, placeholder: (actionAddressLever1 === null || actionAddressLever1 === void 0 ? void 0 : actionAddressLever1.label) || '', className: `address-dropdown ${((_a = props.field.value) === null || _a === void 0 ? void 0 : _a.value) ? '' : 'show-placeholder'}` }));
|
|
@@ -5071,7 +5164,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5071
5164
|
required: true,
|
|
5072
5165
|
}, render: (props) => {
|
|
5073
5166
|
var _a;
|
|
5074
|
-
return (React__default["default"].createElement(index$
|
|
5167
|
+
return (React__default["default"].createElement(index$9.Dropdown, { id: actionAddressLever2.id, options: districtData, onChange: (val) => {
|
|
5075
5168
|
props.field.onChange(val);
|
|
5076
5169
|
handleSelectedDistrict(val);
|
|
5077
5170
|
}, value: props.field.value, placeholder: (actionAddressLever2 === null || actionAddressLever2 === void 0 ? void 0 : actionAddressLever2.label) || '', className: `address-dropdown ${((_a = props.field.value) === null || _a === void 0 ? void 0 : _a.value) ? '' : 'show-placeholder'}` }));
|
|
@@ -5087,7 +5180,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5087
5180
|
required: true,
|
|
5088
5181
|
}, render: (props) => {
|
|
5089
5182
|
var _a;
|
|
5090
|
-
return (React__default["default"].createElement(index$
|
|
5183
|
+
return (React__default["default"].createElement(index$9.Dropdown, { id: actionAddressLever3.id, options: communeData, onChange: (val) => {
|
|
5091
5184
|
props.field.onChange(val);
|
|
5092
5185
|
}, value: props.field.value, placeholder: (actionAddressLever3 === null || actionAddressLever3 === void 0 ? void 0 : actionAddressLever3.label) || '', className: `address-dropdown ${((_a = props.field.value) === null || _a === void 0 ? void 0 : _a.value) ? '' : 'show-placeholder'}` }));
|
|
5093
5186
|
} })),
|
|
@@ -5165,17 +5258,31 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5165
5258
|
case index$2.NodeActionType.USER_SUBMIT_DATE:
|
|
5166
5259
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5167
5260
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
5168
|
-
React__default["default"].createElement(
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5261
|
+
React__default["default"].createElement(reactHookForm.Controller, { name: action.key, control: control, rules: {
|
|
5262
|
+
required: {
|
|
5263
|
+
value: true,
|
|
5264
|
+
message: f({
|
|
5265
|
+
id: 'validation.error.requiredField',
|
|
5266
|
+
defaultMessage: 'This field is required',
|
|
5267
|
+
}),
|
|
5268
|
+
},
|
|
5269
|
+
validate: {
|
|
5270
|
+
ageRange: (value) => {
|
|
5271
|
+
return validateDateField(value, isSubmitting, f);
|
|
5272
|
+
},
|
|
5273
|
+
},
|
|
5274
|
+
}, render: ({ field, fieldState }) => {
|
|
5275
|
+
const { value, name, onChange } = field, restField = tslib_es6.__rest(field, ["value", "name", "onChange"]);
|
|
5276
|
+
const { error } = fieldState;
|
|
5277
|
+
const isError = !!error;
|
|
5278
|
+
return (React__default["default"].createElement("div", null,
|
|
5279
|
+
React__default["default"].createElement(StyleDatePickerInput, null,
|
|
5280
|
+
React__default["default"].createElement(InputDate.InputDate, Object.assign({}, restField, { defaultValue: value, onChange: (val) => {
|
|
5281
|
+
onChange(val);
|
|
5282
|
+
trigger(name);
|
|
5283
|
+
}, labelTuples: labelInputDate, locale: locale, error: isError, className: "subot_input subot_input_date" }))),
|
|
5284
|
+
isError && (React__default["default"].createElement("p", { className: "error-message" }, error === null || error === void 0 ? void 0 : error.message))));
|
|
5285
|
+
} })));
|
|
5179
5286
|
case index$2.NodeActionType.USER_SUBMIT_BMI:
|
|
5180
5287
|
return (React__default["default"].createElement("div", { key: action.id },
|
|
5181
5288
|
React__default["default"].createElement("div", { className: "input-row", key: `${action.id}-weight` },
|
|
@@ -5281,14 +5388,14 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5281
5388
|
React__default["default"].createElement("span", { className: "verify-success-label" }, f({
|
|
5282
5389
|
id: 'subot.verifyOTP.success.message',
|
|
5283
5390
|
defaultMessage: 'Verified successful',
|
|
5284
|
-
})))) : (React__default["default"].createElement(index$
|
|
5391
|
+
})))) : (React__default["default"].createElement(index$8.Button, Object.assign({ className: "submit-btn", size: isFormRevamp ? 'md' : 'lg', isLoading: isLoadingVerify, isDisabled: !sentOTP, onClick: (e) => handleVerifyOTP(e, action) }, trackingVerifyOTP), f({
|
|
5285
5392
|
id: 'subot.verifyOTP.button',
|
|
5286
5393
|
defaultMessage: 'Verify OTP',
|
|
5287
5394
|
})))))));
|
|
5288
5395
|
case index$2.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS:
|
|
5289
5396
|
return (React__default["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 }));
|
|
5290
5397
|
case index$2.NodeActionType.USER_SUBMIT_DOB:
|
|
5291
|
-
return (React__default["default"].createElement(DOB, {
|
|
5398
|
+
return (React__default["default"].createElement(DOB, { key: action.key, action: action, trigger: trigger, control: control, locale: locale, labelTuples: labelInputDate, isSubmitting: isSubmitting }));
|
|
5292
5399
|
default:
|
|
5293
5400
|
return '';
|
|
5294
5401
|
}
|
|
@@ -5302,11 +5409,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5302
5409
|
React__default["default"].createElement("span", { className: "subot-checkbox__label" },
|
|
5303
5410
|
React__default["default"].createElement(Markdown, null, action.label)))));
|
|
5304
5411
|
case index$2.NodeActionType.USER_SUBMIT_SEND:
|
|
5305
|
-
// const disabledWhenNotVerifyed = hasOtpField ? !verifiedOTP : false
|
|
5306
5412
|
const disabled = hasConfirm ? !confirm : false;
|
|
5307
|
-
const disabledDurgoCampaign = !formState.isValid;
|
|
5308
5413
|
return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
|
|
5309
|
-
React__default["default"].createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled:
|
|
5414
|
+
React__default["default"].createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled: disabled }, trackingSubmit, { "data-response-id": action.id }), action.label)));
|
|
5310
5415
|
case index$2.NodeActionType.USER_SUBMIT_TERMS:
|
|
5311
5416
|
return (React__default["default"].createElement("div", { className: "form-terms", key: action.id },
|
|
5312
5417
|
React__default["default"].createElement(Markdown, null, action.label)));
|
|
@@ -6145,7 +6250,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6145
6250
|
React__default["default"].createElement(Close, null))),
|
|
6146
6251
|
React__default["default"].createElement(NodeContextProvider, null,
|
|
6147
6252
|
React__default["default"].createElement("div", { className: "subot-inline-revamp-container", "data-show-footer": isShowFooter },
|
|
6148
|
-
loading && !isShowFooter && React__default["default"].createElement(index$
|
|
6253
|
+
loading && !isShowFooter && React__default["default"].createElement(index$a.Loading, { className: "si-loading" }),
|
|
6149
6254
|
React__default["default"].createElement(Container$1, { onClickStart: () => {
|
|
6150
6255
|
setIsDisplayFullMobile(true);
|
|
6151
6256
|
} })),
|
|
@@ -6164,7 +6269,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6164
6269
|
}, [bgImgFullContainer]);
|
|
6165
6270
|
if (isFullContainer) {
|
|
6166
6271
|
return (React__default["default"].createElement(StyledContainerFullscreen, { style: styleFullContainer },
|
|
6167
|
-
React__default["default"].createElement(index$
|
|
6272
|
+
React__default["default"].createElement(index$b.Container, { className: "si-container" },
|
|
6168
6273
|
React__default["default"].createElement("div", { className: "si-revamp-left" },
|
|
6169
6274
|
React__default["default"].createElement(Container$t, { subotSettingData: subotSettingData }),
|
|
6170
6275
|
React__default["default"].createElement(Container$v, null)),
|