@hhgtech/hhg-components 1.29.363-beta-1 → 1.29.363-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{LastPeriod-629c6d2e.js → LastPeriod-5a8c3943.js} +1 -1
- package/build/{MobileBottomNavigationIcon-a19ba2a4.js → MobileBottomNavigationIcon-207a698b.js} +3 -3
- package/build/{Spinner-4a032444.js → Spinner-3ba389bd.js} +1 -1
- package/build/{WhatsApp-1347df20.js → WhatsApp-a51ca5c2.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +47 -49
- 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 +0 -1
- package/build/components/atoms/inputDate/InputDate.d.ts +4 -12
- package/build/components/atoms/inputDate/InputDate.helpers.d.ts +3 -5
- package/build/components/atoms/inputMB/index.styled.d.ts +2 -2
- package/build/components.js +121 -122
- package/build/{constants-e73888d7.js → constants-fad1fffc.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-b9574056.js → core-02748f1b.js} +1 -1
- package/build/{dataTransform-36801523.js → dataTransform-67484afe.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-3d728a52.js → editor-61e1ee70.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{LastPeriod-fbf8fbf3.js → LastPeriod-f3af54fc.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-6b3bd20f.js → MobileBottomNavigationIcon-b4341308.js} +3 -3
- package/build/esm/{Spinner-a518c119.js → Spinner-0298b82b.js} +1 -1
- package/build/esm/{WhatsApp-1c47f4a0.js → WhatsApp-efa068c0.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +47 -48
- 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 +0 -1
- package/build/esm/components/atoms/inputDate/InputDate.d.ts +4 -12
- package/build/esm/components/atoms/inputDate/InputDate.helpers.d.ts +3 -5
- package/build/esm/components/atoms/inputMB/index.styled.d.ts +2 -2
- package/build/esm/components.js +98 -98
- package/build/esm/{constants-3f8c9086.js → constants-6aacdd91.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-bf7d9c08.js → core-f2d1b142.js} +1 -1
- package/build/esm/{dataTransform-59b288d4.js → dataTransform-e0374169.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-cc380bcb.js → editor-307e4245.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-98d943f7.js → healthTools-e11d8c40.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-values/zh-CN.js +855 -0
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-336c3713.js → index-02224a14.js} +15 -15
- package/build/esm/{index-45c471e2.js → index-02ea3397.js} +32 -32
- package/build/esm/{index-9eb37432.js → index-0648ed84.js} +4 -4
- package/build/esm/{index-8b03e644.js → index-09106ef1.js} +2 -2
- package/build/esm/{index-18221a27.js → index-0a4d6557.js} +2 -2
- package/build/esm/{index-0ad19085.js → index-0f103e17.js} +13 -13
- package/build/esm/{index-5115bbe8.js → index-0f5d0964.js} +1 -1
- package/build/esm/{index-03218be0.js → index-11439dc9.js} +1 -1
- package/build/esm/{index-10b5b290.js → index-11cca018.js} +3 -3
- package/build/esm/{index-722e3b57.js → index-12459101.js} +1 -1
- package/build/esm/{index-d45871a3.js → index-16ef681b.js} +1 -1
- package/build/esm/{index-7d2e7bf9.js → index-17ac470b.js} +2 -2
- package/build/esm/{index-53e0484f.js → index-1ace556a.js} +3 -3
- package/build/esm/{index-ffad68e5.js → index-210ce8b0.js} +3 -3
- package/build/esm/{index-cab2a871.js → index-237bc822.js} +2 -2
- package/build/esm/{index-c3fd4f33.js → index-23ec4c46.js} +13 -13
- package/build/esm/{index-f25c8c90.js → index-28f1bf6d.js} +6 -6
- package/build/esm/{index-0827175d.js → index-2e51f817.js} +5 -5
- package/build/esm/{index-8281b68f.js → index-362986ed.js} +2 -2
- package/build/esm/{index-27db860a.js → index-37c61b61.js} +7 -7
- package/build/esm/{index-cccfe96e.js → index-3968ffce.js} +17 -17
- package/build/esm/{index-7e119bf6.js → index-3ec65283.js} +2 -2
- package/build/esm/{index-30302950.js → index-456a994b.js} +17 -17
- package/build/esm/{index-fdec3777.js → index-557d3ed0.js} +2 -2
- package/build/esm/{index-8500185e.js → index-559a9d96.js} +5 -5
- package/build/esm/{index-a9adebb2.js → index-5a187c93.js} +3 -3
- package/build/esm/{index-73afd4b1.js → index-5aea7cba.js} +1 -1
- package/build/esm/{index-45e0fcc8.js → index-604f05de.js} +11 -11
- package/build/esm/{index-6e841f43.js → index-6559dc36.js} +2 -2
- package/build/esm/{index-27127bd9.js → index-65ac2253.js} +2 -2
- package/build/esm/{index-edbca095.js → index-69b802dc.js} +2 -2
- package/build/esm/{index-dff96f37.js → index-6bcb32b1.js} +16 -16
- package/build/esm/{index-72c4476f.js → index-6eaf9511.js} +27 -625
- package/build/esm/{index-08da9bcd.js → index-6ff9d8b1.js} +6 -6
- package/build/esm/{index-be3016c1.js → index-788c566d.js} +13 -13
- package/build/esm/{index-7e02a49f.js → index-7aee63c6.js} +1 -1
- package/build/esm/{index-b16c48d2.js → index-7afb0f71.js} +25 -25
- package/build/esm/{index-98d4a8ed.js → index-7b9e192c.js} +16 -16
- package/build/esm/{index-714514ca.js → index-88be0d54.js} +31 -31
- package/build/esm/{index-759618f3.js → index-898f2acd.js} +18 -18
- package/build/esm/{index-a9cbd573.js → index-8bc51d52.js} +17 -17
- package/build/esm/{index-cbfbc970.js → index-8ddfd18a.js} +10 -10
- package/build/esm/{index-48c3a543.js → index-93ec5b2e.js} +3 -9
- package/build/esm/{index-f49d5819.js → index-941ba2e6.js} +3 -3
- package/build/esm/{index-a850b85b.js → index-98857677.js} +7 -7
- package/build/esm/{index-8f15e5ab.js → index-9a47a4e6.js} +10 -10
- package/build/esm/{index-b23edf1c.js → index-a1fea6d1.js} +2 -2
- package/build/esm/{index-dd79f31a.js → index-adb35478.js} +1 -1
- package/build/esm/{index-be4f004c.js → index-ae8d867f.js} +16 -16
- package/build/esm/{index-a87e7614.js → index-b18c58a9.js} +2 -2
- package/build/esm/{index-b0d28c86.js → index-b20b8de7.js} +6 -6
- package/build/esm/{index-504a6907.js → index-b5c6334e.js} +2 -2
- package/build/esm/{index-a85ac951.js → index-b677c583.js} +6 -6
- package/build/esm/{index-1da1d1c7.js → index-bbfce259.js} +17 -17
- package/build/esm/{index-e3ea3d25.js → index-cb21d795.js} +22 -22
- package/build/esm/{index-73191fff.js → index-ccadcec2.js} +13 -13
- package/build/esm/{index-af2ef7b5.js → index-ceb32282.js} +1 -1
- package/build/esm/{index-ff370bf1.js → index-d1aa5e3f.js} +6 -6
- package/build/esm/{index-2f8470bb.js → index-d4646e3d.js} +32 -32
- package/build/esm/{index-3741d01f.js → index-d4fe5292.js} +3 -3
- package/build/esm/{index-9c450b30.js → index-d991f561.js} +16 -16
- package/build/esm/{index-7e1f46f2.js → index-da2b081a.js} +2 -2
- package/build/esm/index-dbc35029.js +604 -0
- package/build/esm/{index-77decacc.js → index-e93c24ae.js} +18 -18
- package/build/esm/{index-494cc118.js → index-f2b171ea.js} +21 -21
- package/build/esm/index.js +119 -119
- package/build/esm/interfaces/types/Subot.d.ts +0 -2
- package/build/esm/interfaces/types/index.d.ts +0 -14
- package/build/esm/{labelSorting-e6cfeaf9.js → labelSorting-f4fd8b95.js} +4 -4
- package/build/esm/lead.js +25 -25
- package/build/esm/{logoIcon-387f0c6e.js → logoIcon-c4dd0b72.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 +76 -75
- 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-698058bb.js → post-28dc2a06.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-e077dbf0.js → store-634ac140.js} +4 -4
- package/build/esm/subot/components/dob/utils.d.ts +2 -4
- package/build/esm/subot/components/userInfoForm/utils.d.ts +0 -2
- package/build/esm/subot.js +340 -446
- package/build/esm/surveyOrPremiumBanner.js +32 -32
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-e3d0e10e.js → surveyThankyouCard-9abc91ae.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-1e0d7db1.js → treePopoverMenu-abc4468c.js} +19 -19
- package/build/esm/{types-f1f5b658.js → types-7871a711.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-289556d6.js → useCategory-7a825ced.js} +5 -5
- package/build/esm/{useHealthToolCache-cd30911e.js → useHealthToolCache-e33e3bc1.js} +1 -1
- package/build/esm/{useMantineLocale-a4edc099.js → useMantineLocale-a0bcddb3.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-413ae27a.js → usePlacesAutocomplete-b6c107d2.js} +1 -1
- package/build/esm/{useScreenSize-d72ccba0.js → useScreenSize-f635e8cb.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-0d9e1d16.js → utils-033c7376.js} +4 -4
- package/build/esm/{utils-25be72bf.js → utils-081bb9df.js} +2 -2
- package/build/esm/{utils-3804023d.js → utils-451e874d.js} +2 -2
- package/build/esm/{utils-8bacfdec.js → utils-7554ea1d.js} +3 -3
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-d9cd9a0a.js → healthTools-d3486cb8.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n-values/zh-CN.js +866 -0
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-66464a41.js → index-03bcc518.js} +6 -6
- package/build/{index-42307958.js → index-0557f8b1.js} +16 -16
- package/build/{index-4597d53c.js → index-0608ea5e.js} +2 -9
- package/build/{index-919e2b48.js → index-0aa1fd2d.js} +25 -25
- package/build/{index-bffdf6e7.js → index-0ccabfcb.js} +7 -7
- package/build/{index-409bba66.js → index-10110bb0.js} +2 -2
- package/build/{index-eb7ce304.js → index-1094ba9f.js} +6 -6
- package/build/{index-f997a2d6.js → index-19b56561.js} +13 -13
- package/build/{index-8c612276.js → index-2053a97c.js} +5 -5
- package/build/{index-1a6c466a.js → index-236862a0.js} +16 -16
- package/build/{index-32cfdd3a.js → index-2e487c4d.js} +3 -3
- package/build/{index-3c33283d.js → index-379bc84b.js} +1 -1
- package/build/{index-df64e24f.js → index-39286805.js} +2 -2
- package/build/{index-e5df581c.js → index-43047b5b.js} +32 -32
- package/build/{index-2a5a3aa6.js → index-44c5aa9a.js} +2 -2
- package/build/{index-42946da1.js → index-477cebbf.js} +1 -1
- package/build/{index-1748e506.js → index-47e6f205.js} +1 -1
- package/build/{index-049b0c91.js → index-586247dd.js} +6 -6
- package/build/{index-cea7df83.js → index-5982a317.js} +1 -1
- package/build/{index-95ce3c17.js → index-59c050f9.js} +18 -18
- package/build/{index-1c23777a.js → index-59f36b09.js} +6 -6
- package/build/{index-caf7ac75.js → index-5d475bf7.js} +3 -3
- package/build/index-5dfb877f.js +612 -0
- package/build/{index-47fa4748.js → index-601e9d3d.js} +3 -3
- package/build/{index-35f0e932.js → index-68a9d876.js} +7 -7
- package/build/{index-dde6cf10.js → index-694ad052.js} +2 -2
- package/build/{index-195f6e5b.js → index-6d0d2d4d.js} +11 -11
- package/build/{index-5ed6e196.js → index-74fe05ae.js} +17 -17
- package/build/{index-51549a76.js → index-7a975bd0.js} +2 -2
- package/build/{index-1f7eb8a6.js → index-7a9fef76.js} +1 -1
- package/build/{index-d319dd9e.js → index-7b6cfd1b.js} +2 -2
- package/build/{index-1a106910.js → index-7e8ad157.js} +21 -21
- package/build/{index-2a1f1415.js → index-80aa9c27.js} +16 -16
- package/build/{index-05ddebba.js → index-811237e6.js} +2 -2
- package/build/{index-da7f2fff.js → index-820182ce.js} +22 -22
- package/build/{index-6805e1a3.js → index-83a94c19.js} +2 -2
- package/build/{index-97bd9308.js → index-83b294d8.js} +4 -4
- package/build/{index-76bec0b7.js → index-8cd230c0.js} +2 -2
- package/build/{index-2eae91af.js → index-8d800d85.js} +2 -2
- package/build/{index-3357816d.js → index-939e6ff2.js} +3 -3
- package/build/{index-2020f735.js → index-9a1f7bc8.js} +17 -17
- package/build/{index-67cc0791.js → index-a5839380.js} +2 -2
- package/build/{index-65f555ca.js → index-ad5d2089.js} +25 -625
- package/build/{index-d74b757f.js → index-b019a673.js} +5 -5
- package/build/{index-24fead63.js → index-b1a33709.js} +1 -1
- package/build/{index-3c6acda3.js → index-b30b70e4.js} +15 -15
- package/build/{index-5e05d913.js → index-bd051fff.js} +16 -16
- package/build/{index-762b1d06.js → index-bd05dbf6.js} +6 -6
- package/build/{index-1b70a895.js → index-c1d46b0c.js} +10 -10
- package/build/{index-cbc64d5f.js → index-c575afc3.js} +10 -10
- package/build/{index-540fe94c.js → index-c7d67076.js} +32 -32
- package/build/{index-43ae933f.js → index-d402790d.js} +1 -1
- package/build/{index-d2b401c8.js → index-d683460e.js} +2 -2
- package/build/{index-047516bf.js → index-d80e8f3d.js} +13 -13
- package/build/{index-a8e0ea94.js → index-d8ae0ca3.js} +3 -3
- package/build/{index-a9ee3fc1.js → index-dbf114c2.js} +31 -31
- package/build/{index-c09f77ca.js → index-df704fb7.js} +1 -1
- package/build/{index-eace968d.js → index-e496687e.js} +18 -18
- package/build/{index-9b582642.js → index-e4cec4f5.js} +13 -13
- package/build/{index-a95a0812.js → index-e67dced7.js} +3 -3
- package/build/{index-459e2e96.js → index-e6971cde.js} +17 -17
- package/build/{index-b68c3e2a.js → index-eece4f63.js} +2 -2
- package/build/{index-10da6d8b.js → index-f6c79b96.js} +13 -13
- package/build/{index-5992647e.js → index-f94d96b0.js} +2 -2
- package/build/{index-8cb70286.js → index-fa3f413f.js} +17 -17
- package/build/index.js +164 -165
- package/build/interfaces/types/Subot.d.ts +0 -2
- package/build/interfaces/types/index.d.ts +0 -14
- package/build/{labelSorting-76f9c19c.js → labelSorting-89b6153d.js} +4 -4
- package/build/lead.js +25 -25
- package/build/{logoIcon-6e7e979e.js → logoIcon-cbf7d0fc.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 +92 -91
- 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-538e3147.js → post-5e97326e.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-4613ec9c.js → store-389f5e92.js} +4 -4
- package/build/subot/components/dob/utils.d.ts +2 -4
- package/build/subot/components/userInfoForm/utils.d.ts +0 -2
- package/build/subot.js +344 -449
- package/build/surveyOrPremiumBanner.js +32 -32
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-55739523.js → surveyThankyouCard-8a0c8ba6.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-b46bd475.js → treePopoverMenu-1689f04d.js} +19 -19
- package/build/{types-8aa1b980.js → types-99b86a9e.js} +2 -2
- package/build/types.js +2 -3
- package/build/{useCategory-c8559667.js → useCategory-93c5eacf.js} +5 -5
- package/build/{useHealthToolCache-e14fec74.js → useHealthToolCache-24c65782.js} +1 -1
- package/build/{useMantineLocale-6426be99.js → useMantineLocale-38878107.js} +6 -6
- package/build/{usePlacesAutocomplete-2f527f55.js → usePlacesAutocomplete-7d230bda.js} +1 -1
- package/build/{useScreenSize-b501ca79.js → useScreenSize-4b3a1f5f.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-b30189c1.js → utils-117b8c86.js} +3 -3
- package/build/{utils-5447fbbf.js → utils-5cf949ba.js} +2 -2
- package/build/{utils-2a5c3c9d.js → utils-dda5c728.js} +2 -2
- package/build/{utils-b20e2a7f.js → utils-f2c7aec1.js} +4 -4
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/InputDate-ce2a409e.js +0 -416
- package/build/constants/keyCode.d.ts +0 -5
- package/build/esm/InputDate-59904635.js +0 -407
- package/build/esm/constants/keyCode.d.ts +0 -5
- /package/build/{BMI_BOYS.percentile.monthly-20c0e419.js → BMI_BOYS.percentile.monthly-4441c684.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-2cefa50b.js → BMI_BOYS.percentile.weekly-25c2cb7a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-efc6b248.js → BMI_BOYS.percentile.yearly-eeca8b15.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b6a4d115.js → BMI_BOYS.zscore.monthly-80f4de4d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-7cd0ff4b.js → BMI_BOYS.zscore.weekly-35e905fc.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-102af208.js → BMI_BOYS.zscore.yearly-07c085fd.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-b7f22c4d.js → BMI_GIRLS.percentile.monthly-5eaf96fb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-418a7ec9.js → BMI_GIRLS.percentile.weekly-fb8108eb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-f50dc5d3.js → BMI_GIRLS.percentile.yearly-d9c72d96.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-d4ab0a86.js → BMI_GIRLS.zscore.monthly-66aa4acb.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-585971a4.js → BMI_GIRLS.zscore.weekly-d7e95171.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-bb362af5.js → BMI_GIRLS.zscore.yearly-775ef5bf.js} +0 -0
- /package/build/{ChevronDown-2ad1c773.js → ChevronDown-63d43d10.js} +0 -0
- /package/build/{Close-5f56ea5c.js → Close-f1915a6a.js} +0 -0
- /package/build/{Google-0461c1cf.js → Google-dc55c745.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-a24fa8de.js → HEAD CIRCUM_BOYS.percentile.monthly-03c99ec3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-45adba61.js → HEAD CIRCUM_BOYS.percentile.weekly-65c5bf83.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-aca29074.js → HEAD CIRCUM_BOYS.percentile.yearly-18659f38.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-ed56bc06.js → HEAD CIRCUM_BOYS.zscore.monthly-21b17e91.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-4ae52976.js → HEAD CIRCUM_BOYS.zscore.weekly-11e64f91.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-6fe7f4f9.js → HEAD CIRCUM_BOYS.zscore.yearly-14242ba5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-95eb83a8.js → HEAD CIRCUM_GIRLS.percentile.monthly-1fa65080.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-bc762f79.js → HEAD CIRCUM_GIRLS.percentile.weekly-f9867f50.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-d54b5fd9.js → HEAD CIRCUM_GIRLS.percentile.yearly-25d64f11.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-fef51b91.js → HEAD CIRCUM_GIRLS.zscore.monthly-9bf216af.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-29554698.js → HEAD CIRCUM_GIRLS.zscore.weekly-8d0c415a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-2df38ac8.js → HEAD CIRCUM_GIRLS.zscore.yearly-6dd0bbbc.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-a3dcda6c.js → HEIGHT_BOYS.percentile.monthly-826b0478.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-a074b577.js → HEIGHT_BOYS.percentile.weekly-56b0cb53.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-9f119380.js → HEIGHT_BOYS.percentile.yearly-ac6ae7f2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-d3773147.js → HEIGHT_BOYS.zscore.monthly-63d744b6.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-b0c2332e.js → HEIGHT_BOYS.zscore.weekly-1824eb64.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-96816070.js → HEIGHT_BOYS.zscore.yearly-9d88a352.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-953346a2.js → HEIGHT_GIRLS.percentile.monthly-677827fd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-533cc841.js → HEIGHT_GIRLS.percentile.weekly-dddd35a9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-9dc39ab0.js → HEIGHT_GIRLS.percentile.yearly-523b20e2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-0aad1479.js → HEIGHT_GIRLS.zscore.monthly-92ed564a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-770173d8.js → HEIGHT_GIRLS.zscore.weekly-7a15849c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-6776d85d.js → HEIGHT_GIRLS.zscore.yearly-c3b39622.js} +0 -0
- /package/build/{Locale-043d083b.js → Locale-f4106b88.js} +0 -0
- /package/build/{Visible-7f3119bb.js → Visible-4c9ba084.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-6ac6ea4d.js → WEIGHT_BOYS.percentile.monthly-005a4261.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-0a785dd0.js → WEIGHT_BOYS.percentile.weekly-50f7b7fc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-e5a93b2e.js → WEIGHT_BOYS.percentile.yearly-f6dcf729.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e7700f35.js → WEIGHT_BOYS.zscore.monthly-b83f5a1b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-0fab9ea1.js → WEIGHT_BOYS.zscore.weekly-b878ac1d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-a7843c70.js → WEIGHT_BOYS.zscore.yearly-5dd601e9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1094b048.js → WEIGHT_GIRLS.percentile.monthly-364ff558.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-5691d004.js → WEIGHT_GIRLS.percentile.weekly-4b97eab1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-0ed8eda2.js → WEIGHT_GIRLS.percentile.yearly-e0be596b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-83c0ff31.js → WEIGHT_GIRLS.zscore.monthly-f04dadef.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-ac310a51.js → WEIGHT_GIRLS.zscore.weekly-4585c2c5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-cd9b5694.js → WEIGHT_GIRLS.zscore.yearly-0f4eaea4.js} +0 -0
- /package/build/{animation-b4ac0c82.js → animation-792a39d3.js} +0 -0
- /package/build/{constants-c98c9f86.js → constants-5b74bc4a.js} +0 -0
- /package/build/{constants-414d9053.js → constants-ad6fe106.js} +0 -0
- /package/build/{constants-6846ba29.js → constants-d500ce7e.js} +0 -0
- /package/build/{dataTransform-32a14da0.js → dataTransform-57249430.js} +0 -0
- /package/build/{doctor-96b9e472.js → doctor-d0f96930.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-6c6658c1.js → BMI_BOYS.percentile.monthly-848d8c92.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-dd35f97a.js → BMI_BOYS.percentile.weekly-37b5aba3.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-f0302b07.js → BMI_BOYS.percentile.yearly-92266498.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-185bfbe2.js → BMI_BOYS.zscore.monthly-d7346e1d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-44a40909.js → BMI_BOYS.zscore.weekly-95353ab5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-a3d14504.js → BMI_BOYS.zscore.yearly-0322afb9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-51802e4d.js → BMI_GIRLS.percentile.monthly-2028bf10.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-b5f0f420.js → BMI_GIRLS.percentile.weekly-6e1a93c1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-e2c8f54d.js → BMI_GIRLS.percentile.yearly-277e8f23.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-1eb5e176.js → BMI_GIRLS.zscore.monthly-9b9abfc1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-cdbc6794.js → BMI_GIRLS.zscore.weekly-77c45d3a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-1d3d9cce.js → BMI_GIRLS.zscore.yearly-2c3ac2b2.js} +0 -0
- /package/build/esm/{ChevronDown-18ccee3b.js → ChevronDown-bf252565.js} +0 -0
- /package/build/esm/{Close-fe0f87d3.js → Close-6dc7f45c.js} +0 -0
- /package/build/esm/{Google-3234b34b.js → Google-9d648182.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c40f13c4.js → HEAD CIRCUM_BOYS.percentile.monthly-55387a1e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-4f711de9.js → HEAD CIRCUM_BOYS.percentile.weekly-432517db.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-8bdb1e9c.js → HEAD CIRCUM_BOYS.percentile.yearly-e03abc9a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-6d9eb28b.js → HEAD CIRCUM_BOYS.zscore.monthly-72690cf6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-f1a33d33.js → HEAD CIRCUM_BOYS.zscore.weekly-78429dc4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-67451b1c.js → HEAD CIRCUM_BOYS.zscore.yearly-c54dd853.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-23679c6b.js → HEAD CIRCUM_GIRLS.percentile.monthly-d5bc7045.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-a17be4e2.js → HEAD CIRCUM_GIRLS.percentile.weekly-9a02fa77.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-48b8a25f.js → HEAD CIRCUM_GIRLS.percentile.yearly-2c50f067.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-41e36be2.js → HEAD CIRCUM_GIRLS.zscore.monthly-bae7dc81.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-21300a8b.js → HEAD CIRCUM_GIRLS.zscore.weekly-ba855898.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-6fd9d24e.js → HEAD CIRCUM_GIRLS.zscore.yearly-f9fd6c4f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-78259f22.js → HEIGHT_BOYS.percentile.monthly-4a7f8ce4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-df83fc33.js → HEIGHT_BOYS.percentile.weekly-9f595afe.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-7af3224f.js → HEIGHT_BOYS.percentile.yearly-a2973231.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-cacdfbfa.js → HEIGHT_BOYS.zscore.monthly-a6cf7b22.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b0785817.js → HEIGHT_BOYS.zscore.weekly-9018e42d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-66c400f8.js → HEIGHT_BOYS.zscore.yearly-827ca658.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-4b68dbac.js → HEIGHT_GIRLS.percentile.monthly-5f0b2a4d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c723a2ea.js → HEIGHT_GIRLS.percentile.weekly-3c634b52.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f2035930.js → HEIGHT_GIRLS.percentile.yearly-ae77abf9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-22e72425.js → HEIGHT_GIRLS.zscore.monthly-f03aa082.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-faceb5d1.js → HEIGHT_GIRLS.zscore.weekly-7ee74e31.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-ceebcf11.js → HEIGHT_GIRLS.zscore.yearly-d8db4db0.js} +0 -0
- /package/build/esm/{Locale-37e2792b.js → Locale-e03a67c2.js} +0 -0
- /package/build/esm/{Visible-6100a0cc.js → Visible-2b47d15f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-02261712.js → WEIGHT_BOYS.percentile.monthly-55d25732.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-e5503234.js → WEIGHT_BOYS.percentile.weekly-c835e89a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-e91dbfc3.js → WEIGHT_BOYS.percentile.yearly-53e23a84.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-51b6fc30.js → WEIGHT_BOYS.zscore.monthly-3860254c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-759480a8.js → WEIGHT_BOYS.zscore.weekly-7ca1efcc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f79a9ccb.js → WEIGHT_BOYS.zscore.yearly-d0a8cefe.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-32cd81d4.js → WEIGHT_GIRLS.percentile.monthly-fa9ed0c7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-e79a791e.js → WEIGHT_GIRLS.percentile.weekly-3b834ada.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-205b4e23.js → WEIGHT_GIRLS.percentile.yearly-69e04b62.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-8529c0e6.js → WEIGHT_GIRLS.zscore.monthly-70894904.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-a5016260.js → WEIGHT_GIRLS.zscore.weekly-76c0869b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-816fada9.js → WEIGHT_GIRLS.zscore.yearly-05a16d55.js} +0 -0
- /package/build/esm/{animation-55f49957.js → animation-8fa35678.js} +0 -0
- /package/build/esm/{constants-e80852b3.js → constants-3607e039.js} +0 -0
- /package/build/esm/{constants-4109be9f.js → constants-680289fd.js} +0 -0
- /package/build/esm/{constants-219a6453.js → constants-df44e206.js} +0 -0
- /package/build/esm/{dataTransform-067743e8.js → dataTransform-75b20d84.js} +0 -0
- /package/build/esm/{doctor-2db81095.js → doctor-2505a9d0.js} +0 -0
- /package/build/esm/{index-9103b9eb.js → index-0c587c1c.js} +0 -0
- /package/build/esm/{index-46243bb4.js → index-16433075.js} +0 -0
- /package/build/esm/{index-9c57914e.js → index-5f15c8c2.js} +0 -0
- /package/build/esm/{index-48993ecb.js → index-5fa8d494.js} +0 -0
- /package/build/esm/{index-25f78be2.js → index-6c9eb268.js} +0 -0
- /package/build/esm/{index-279a16e7.js → index-7d363470.js} +0 -0
- /package/build/esm/{index-da2d88b9.js → index-9ebf84e6.js} +0 -0
- /package/build/esm/{index-6698aa36.js → index-ffffa66c.js} +0 -0
- /package/build/esm/{index.styles-76c9a592.js → index.styles-232c46ec.js} +0 -0
- /package/build/esm/{localizeNumberFormat-401d2b4d.js → localizeNumberFormat-783155b1.js} +0 -0
- /package/build/esm/{normalizeLink-40e255bd.js → normalizeLink-ae352999.js} +0 -0
- /package/build/esm/{number-f68ef63b.js → number-9b538713.js} +0 -0
- /package/build/esm/{other-9be7cf1c.js → other-9b2ecba4.js} +0 -0
- /package/build/esm/{paths-b97cde38.js → paths-923d7b59.js} +0 -0
- /package/build/esm/{translationsContext-1cfdc69b.js → translationsContext-3cbc2341.js} +0 -0
- /package/build/esm/{tslib.es6-ae0c9cc7.js → tslib.es6-bd7c51f9.js} +0 -0
- /package/build/esm/{types-7f63c1b0.js → types-2c6721fd.js} +0 -0
- /package/build/esm/{useIsInit-5c1fb8fc.js → useIsInit-06e3f8ca.js} +0 -0
- /package/build/esm/{useOutsideClick-8e333ffd.js → useOutsideClick-9ad9763e.js} +0 -0
- /package/build/esm/{useScrollbarSize-2fb11e2b.js → useScrollbarSize-6b3b60f8.js} +0 -0
- /package/build/esm/{useUniqueId-44fdf47f.js → useUniqueId-ae6a6188.js} +0 -0
- /package/build/esm/{utils-a220d748.js → utils-e0264c2d.js} +0 -0
- /package/build/{index-9e0eb6a9.js → index-02afe710.js} +0 -0
- /package/build/{index-93b1571a.js → index-3023fc1d.js} +0 -0
- /package/build/{index-189e2348.js → index-4fbe78aa.js} +0 -0
- /package/build/{index-74e750b0.js → index-54d1787d.js} +0 -0
- /package/build/{index-ab81ccf1.js → index-80aa2faa.js} +0 -0
- /package/build/{index-6d1715f5.js → index-b85e5f4e.js} +0 -0
- /package/build/{index-317dae80.js → index-c03acf1f.js} +0 -0
- /package/build/{index-93bedae1.js → index-dcdaa5fd.js} +0 -0
- /package/build/{index.styles-0207515c.js → index.styles-324e5c01.js} +0 -0
- /package/build/{localizeNumberFormat-8cb05113.js → localizeNumberFormat-4180c447.js} +0 -0
- /package/build/{normalizeLink-888a76f2.js → normalizeLink-e450c12c.js} +0 -0
- /package/build/{number-550e9ed3.js → number-d8f66419.js} +0 -0
- /package/build/{other-076deeb8.js → other-e8ccd21a.js} +0 -0
- /package/build/{paths-9f64ad8e.js → paths-842c2150.js} +0 -0
- /package/build/{translationsContext-a7d3b749.js → translationsContext-12be2d75.js} +0 -0
- /package/build/{tslib.es6-2e23e1b2.js → tslib.es6-606ff01f.js} +0 -0
- /package/build/{types-81c1016d.js → types-3b67d131.js} +0 -0
- /package/build/{useIsInit-b473274f.js → useIsInit-f30787a2.js} +0 -0
- /package/build/{useOutsideClick-784d642f.js → useOutsideClick-a0d4def8.js} +0 -0
- /package/build/{useScrollbarSize-5c78d702.js → useScrollbarSize-1fdcbccb.js} +0 -0
- /package/build/{useUniqueId-2fd547e0.js → useUniqueId-d4e54fbf.js} +0 -0
- /package/build/{utils-7f6ff3c4.js → utils-3cb0d22b.js} +0 -0
package/build/subot.js
CHANGED
|
@@ -3,75 +3,77 @@
|
|
|
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-0608ea5e.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-606ff01f.js');
|
|
8
|
+
var index$3 = require('./index-811237e6.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-117b8c86.js');
|
|
13
13
|
var formatString = require('string-format');
|
|
14
|
-
var index$1 = require('./index-
|
|
14
|
+
var index$1 = require('./index-d8ae0ca3.js');
|
|
15
15
|
var dayjs = require('dayjs');
|
|
16
|
+
var constantsIsProduction = require('./constantsIsProduction.js');
|
|
16
17
|
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
17
18
|
var cn = require('classnames');
|
|
18
|
-
var index$
|
|
19
|
-
var index$
|
|
19
|
+
var index$c = require('./index-3023fc1d.js');
|
|
20
|
+
var index$b = require('./index-f94d96b0.js');
|
|
20
21
|
var framerMotion = require('framer-motion');
|
|
21
22
|
var styled = require('@emotion/styled');
|
|
22
|
-
var utils = require('./utils-
|
|
23
|
-
var index$4 = require('./index-
|
|
23
|
+
var utils = require('./utils-3cb0d22b.js');
|
|
24
|
+
var index$4 = require('./index-477cebbf.js');
|
|
24
25
|
var remarkable = require('remarkable');
|
|
25
26
|
var other = require('@hhgtech/icons/other');
|
|
26
27
|
var reactIntersectionObserver = require('react-intersection-observer');
|
|
27
28
|
var core = require('@mantine/core');
|
|
28
|
-
var index$5 = require('./index-
|
|
29
|
+
var index$5 = require('./index-02afe710.js');
|
|
29
30
|
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
|
|
30
|
-
var constants = require('./constants-
|
|
31
|
+
var constants = require('./constants-d500ce7e.js');
|
|
31
32
|
var uuid = require('uuid');
|
|
32
|
-
var index$6 = require('./index-
|
|
33
|
+
var index$6 = require('./index-8d800d85.js');
|
|
33
34
|
var miscTheme = require('./miscTheme.js');
|
|
34
|
-
var
|
|
35
|
-
var index$7 = require('./index-195f6e5b.js');
|
|
35
|
+
var index$7 = require('./index-6d0d2d4d.js');
|
|
36
36
|
require('@mantine/dates');
|
|
37
|
-
require('./useMantineLocale-
|
|
38
|
-
require('./index.styles-
|
|
39
|
-
require('./translationsContext-
|
|
37
|
+
require('./useMantineLocale-38878107.js');
|
|
38
|
+
require('./index.styles-324e5c01.js');
|
|
39
|
+
require('./translationsContext-12be2d75.js');
|
|
40
40
|
require('@mantine/hooks');
|
|
41
|
-
require('./other-
|
|
42
|
-
require('./index-
|
|
41
|
+
require('./other-e8ccd21a.js');
|
|
42
|
+
require('./index-2e487c4d.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-7d230bda.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
|
|
49
|
+
var Locale = require('./Locale-f4106b88.js');
|
|
50
|
+
var get = require('lodash/get');
|
|
51
|
+
var index$8 = require('./index-5dfb877f.js');
|
|
52
|
+
var index$9 = require('./index-39286805.js');
|
|
53
|
+
var index$a = require('./index-c03acf1f.js');
|
|
54
|
+
var store = require('./store-389f5e92.js');
|
|
55
|
+
var utils$1 = require('./utils-f2c7aec1.js');
|
|
55
56
|
require('date-fns/locale');
|
|
56
57
|
require('./constantsSite.js');
|
|
57
58
|
require('./constantsRiskScreener.js');
|
|
58
|
-
require('./index-
|
|
59
|
+
require('./index-80aa2faa.js');
|
|
59
60
|
require('./miscCookieHelper.js');
|
|
60
61
|
require('slugify');
|
|
61
62
|
require('./togetherApiPaths.js');
|
|
62
|
-
require('./index-
|
|
63
|
-
require('./WhatsApp-
|
|
64
|
-
require('./Spinner-
|
|
65
|
-
require('./index-
|
|
66
|
-
require('./useScreenSize-
|
|
63
|
+
require('./index-e67dced7.js');
|
|
64
|
+
require('./WhatsApp-a51ca5c2.js');
|
|
65
|
+
require('./Spinner-3ba389bd.js');
|
|
66
|
+
require('./index-d402790d.js');
|
|
67
|
+
require('./useScreenSize-4b3a1f5f.js');
|
|
67
68
|
require('@mantine/carousel');
|
|
68
|
-
require('./useUniqueId-
|
|
69
|
+
require('./useUniqueId-d4e54fbf.js');
|
|
69
70
|
require('@hhgtech/icons/core');
|
|
70
71
|
require('@mantine/notifications');
|
|
71
|
-
require('
|
|
72
|
+
require('date-fns');
|
|
73
|
+
require('react-day-picker/DayPickerInput');
|
|
72
74
|
require('zustand');
|
|
73
|
-
require('./normalizeLink-
|
|
74
|
-
require('./healthTools-
|
|
75
|
+
require('./normalizeLink-e450c12c.js');
|
|
76
|
+
require('./healthTools-d3486cb8.js');
|
|
75
77
|
|
|
76
78
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
77
79
|
|
|
@@ -86,6 +88,7 @@ var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
|
86
88
|
var isSameOrBefore__default = /*#__PURE__*/_interopDefault(isSameOrBefore);
|
|
87
89
|
var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty);
|
|
88
90
|
var PhoneInputBase__default = /*#__PURE__*/_interopDefault(PhoneInputBase);
|
|
91
|
+
var get__default = /*#__PURE__*/_interopDefault(get);
|
|
89
92
|
|
|
90
93
|
// extend fastdom
|
|
91
94
|
const fastdom = fd__default["default"].extend(fastdomPromised__default["default"]);
|
|
@@ -230,6 +233,10 @@ const subotInlineImpression = (data) => tslib_es6.__awaiter(void 0, void 0, void
|
|
|
230
233
|
catch (error) { }
|
|
231
234
|
});
|
|
232
235
|
|
|
236
|
+
const isDurgoCampaignFn = (botId) => {
|
|
237
|
+
const botIdNumber = Number(botId);
|
|
238
|
+
return constantsIsProduction.isProduction ? botIdNumber === 2629 : botIdNumber === 1092;
|
|
239
|
+
};
|
|
233
240
|
const calcAge = (value) => {
|
|
234
241
|
const birthDate = dayjs__default["default"](value);
|
|
235
242
|
const today = dayjs__default["default"]();
|
|
@@ -243,43 +250,13 @@ const calcAge = (value) => {
|
|
|
243
250
|
* Temporary hard the range of age from 1 -> 6 for Durgo Campaign at this time
|
|
244
251
|
* Ticket: https://hhgdev.atlassian.net/browse/HTO-1327
|
|
245
252
|
*/
|
|
246
|
-
const validateAge = (value, errMsg
|
|
247
|
-
const { birthDate, today } = calcAge(value);
|
|
248
|
-
if (
|
|
249
|
-
|
|
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
|
-
}
|
|
253
|
+
const validateAge = (value, errMsg) => {
|
|
254
|
+
const { birthDate, today, age } = calcAge(value);
|
|
255
|
+
if (today.month() < birthDate.month() ||
|
|
256
|
+
(today.month() === birthDate.month() && today.date() < birthDate.date())) {
|
|
257
|
+
return age >= 1 && age <= 6 ? true : errMsg;
|
|
277
258
|
}
|
|
278
|
-
|
|
279
|
-
localStorage.getItem('hhg_debug') === 'true') {
|
|
280
|
-
console.log('Log __DOB__ : ', { conditions, isValid, diff });
|
|
281
|
-
}
|
|
282
|
-
return isValid || errMsg;
|
|
259
|
+
return age >= 1 && age <= 6 ? true : errMsg;
|
|
283
260
|
};
|
|
284
261
|
|
|
285
262
|
const getDynamicScore = (node) => {
|
|
@@ -3608,239 +3585,6 @@ const useAddressMultipleLevelData = (countryCode) => {
|
|
|
3608
3585
|
};
|
|
3609
3586
|
};
|
|
3610
3587
|
|
|
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
|
-
|
|
3844
3588
|
const Location = (props) => {
|
|
3845
3589
|
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),
|
|
3846
3590
|
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" })));
|
|
@@ -4384,27 +4128,6 @@ const StyledUserInfoFormContainer = styled__default["default"].div `
|
|
|
4384
4128
|
text-decoration: none;
|
|
4385
4129
|
}
|
|
4386
4130
|
}
|
|
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
|
-
}
|
|
4408
4131
|
}
|
|
4409
4132
|
|
|
4410
4133
|
&.si-form-revamp {
|
|
@@ -4547,38 +4270,241 @@ const getTransPleaseVerifiedOtp = () => {
|
|
|
4547
4270
|
pleaseVerifiedOtp.set(Locale.LOCALE.Thailand, 'กรุณาตรวจสอบหมายเลขโทรศัพท์ของคุณ');
|
|
4548
4271
|
pleaseVerifiedOtp.set(Locale.LOCALE.PhilippinesTagalog, 'Paki-verify ang iyong numero ng telepono');
|
|
4549
4272
|
return pleaseVerifiedOtp;
|
|
4550
|
-
};
|
|
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
4273
|
};
|
|
4581
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
|
+
};
|
|
4334
|
+
var CountDown$1 = React.forwardRef(CountDown);
|
|
4335
|
+
|
|
4336
|
+
styled__default["default"].div `
|
|
4337
|
+
margin: 0 auto;
|
|
4338
|
+
background: #f7f9fc;
|
|
4339
|
+
border-radius: ${miscTheme.theme.borderRadius};
|
|
4340
|
+
${utils.MediaQueries.mbDown} {
|
|
4341
|
+
padding: 16px;
|
|
4342
|
+
}
|
|
4343
|
+
${utils.MediaQueries.tdDown} {
|
|
4344
|
+
padding: 24px;
|
|
4345
|
+
}
|
|
4346
|
+
${utils.MediaQueries.mbUp} {
|
|
4347
|
+
padding: 32px;
|
|
4348
|
+
}
|
|
4349
|
+
.user-info-form {
|
|
4350
|
+
.input-row {
|
|
4351
|
+
${utils.MediaQueries.mbDown} {
|
|
4352
|
+
margin-bottom: 16px;
|
|
4353
|
+
}
|
|
4354
|
+
${utils.MediaQueries.tdDown} {
|
|
4355
|
+
margin-bottom: 18px;
|
|
4356
|
+
}
|
|
4357
|
+
${utils.MediaQueries.mbUp} {
|
|
4358
|
+
margin-bottom: 20px;
|
|
4359
|
+
}
|
|
4360
|
+
.address-dropdown > ul {
|
|
4361
|
+
z-index: 20000;
|
|
4362
|
+
max-height: 250px;
|
|
4363
|
+
overflow-y: auto;
|
|
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
|
+
`;
|
|
4507
|
+
|
|
4582
4508
|
var _a, _b, _c, _d, _e;
|
|
4583
4509
|
const StyledPhoneCode = styled__default["default"].div `
|
|
4584
4510
|
display: flex;
|
|
@@ -4704,46 +4630,44 @@ const PhoneInputWithCode = (props) => {
|
|
|
4704
4630
|
return (React__default["default"].createElement(StyledPhoneInputWithCode, Object.assign({}, props, { flagComponent: FlagComponent })));
|
|
4705
4631
|
};
|
|
4706
4632
|
|
|
4707
|
-
const DOB = ({ action,
|
|
4708
|
-
const { id, key, label
|
|
4709
|
-
const locale =
|
|
4633
|
+
const DOB = ({ action, setValue, trigger, register, errors, botId, }) => {
|
|
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;
|
|
4710
4636
|
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
|
+
};
|
|
4711
4651
|
return (React__default["default"].createElement("div", { className: "input-row", key: id },
|
|
4712
4652
|
React__default["default"].createElement("label", { htmlFor: key }, label),
|
|
4713
|
-
React__default["default"].createElement(
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
id: 'validation.error.requiredField',
|
|
4718
|
-
defaultMessage: 'This field is required',
|
|
4719
|
-
}),
|
|
4720
|
-
},
|
|
4653
|
+
React__default["default"].createElement(StyleDatePickerInput, null,
|
|
4654
|
+
React__default["default"].createElement(index$8.DatePicker, { locale: locale || 'en-PH', displayDateFormat: index$3.DATE_FNS_DATE_FORMAT, onChange: handleOnChange }),
|
|
4655
|
+
React__default["default"].createElement("input", Object.assign({ id: id, type: "date", className: "input-date" }, register(key, {
|
|
4656
|
+
required: true,
|
|
4721
4657
|
validate: {
|
|
4722
|
-
ageRange: (value) =>
|
|
4723
|
-
f({
|
|
4658
|
+
ageRange: (value) => isDurgoCampaign
|
|
4659
|
+
? validateAge(value, f({
|
|
4724
4660
|
id: 'validation.error.requiredAgeGroup',
|
|
4725
4661
|
defaultMessage: 'Sorry, your child is not in the required Age Group.',
|
|
4726
|
-
})
|
|
4727
|
-
|
|
4728
|
-
return JSON.parse(validated_conditions);
|
|
4729
|
-
}
|
|
4730
|
-
catch (error) {
|
|
4731
|
-
return [];
|
|
4732
|
-
}
|
|
4733
|
-
})())),
|
|
4662
|
+
}))
|
|
4663
|
+
: true,
|
|
4734
4664
|
},
|
|
4735
|
-
},
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
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
|
-
} })));
|
|
4665
|
+
})))),
|
|
4666
|
+
error && (React__default["default"].createElement("p", { className: "error-message" }, dobErrMsg ||
|
|
4667
|
+
f({
|
|
4668
|
+
id: 'validation.error.requiredField',
|
|
4669
|
+
defaultMessage: 'This field is required',
|
|
4670
|
+
})))));
|
|
4747
4671
|
};
|
|
4748
4672
|
|
|
4749
4673
|
const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSubmitMeta, isFormRevamp, botId, nodeId, trackingSubmitBtn, }) => {
|
|
@@ -4801,12 +4725,6 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4801
4725
|
return;
|
|
4802
4726
|
}
|
|
4803
4727
|
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
|
-
}
|
|
4810
4728
|
});
|
|
4811
4729
|
if (data['otpPhoneNumber']) {
|
|
4812
4730
|
setVerifiedOTP(true);
|
|
@@ -4873,17 +4791,10 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4873
4791
|
return index$2.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE === action.type;
|
|
4874
4792
|
});
|
|
4875
4793
|
}, [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]);
|
|
4885
4794
|
const inputType = index$2.ELEMENT_CONTROL_INPUT_TYPE;
|
|
4886
|
-
const { register, handleSubmit, watch, formState: { errors
|
|
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);
|
|
4887
4798
|
const setSubmitData = (data) => {
|
|
4888
4799
|
const submitMeta = [];
|
|
4889
4800
|
for (const action of actions) {
|
|
@@ -4915,17 +4826,13 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4915
4826
|
value: data[action.key].label || '',
|
|
4916
4827
|
});
|
|
4917
4828
|
}
|
|
4918
|
-
else if (action.type === index$2.NodeActionType.USER_SUBMIT_DOB
|
|
4919
|
-
action.
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
control: inputType[action.type] || '',
|
|
4926
|
-
value: dayInJS.format(index$3.API_DATE_FORMAT),
|
|
4927
|
-
});
|
|
4928
|
-
}
|
|
4829
|
+
else if (action.type === index$2.NodeActionType.USER_SUBMIT_DOB) {
|
|
4830
|
+
const dobStr = data[action.key] || '';
|
|
4831
|
+
submitMeta.push({
|
|
4832
|
+
key: action.key,
|
|
4833
|
+
control: inputType[action.type] || '',
|
|
4834
|
+
value: dobStr,
|
|
4835
|
+
});
|
|
4929
4836
|
}
|
|
4930
4837
|
else if (isActionTypeOtp(action.type)) {
|
|
4931
4838
|
submitMeta.push({
|
|
@@ -5148,7 +5055,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5148
5055
|
required: true,
|
|
5149
5056
|
}, render: (props) => {
|
|
5150
5057
|
var _a;
|
|
5151
|
-
return (React__default["default"].createElement(index$
|
|
5058
|
+
return (React__default["default"].createElement(index$a.Dropdown, { id: actionAddressLever1.id, options: provinceData, onChange: (val) => {
|
|
5152
5059
|
props.field.onChange(val);
|
|
5153
5060
|
handleSelectedProvince(val);
|
|
5154
5061
|
}, 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'}` }));
|
|
@@ -5164,7 +5071,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5164
5071
|
required: true,
|
|
5165
5072
|
}, render: (props) => {
|
|
5166
5073
|
var _a;
|
|
5167
|
-
return (React__default["default"].createElement(index$
|
|
5074
|
+
return (React__default["default"].createElement(index$a.Dropdown, { id: actionAddressLever2.id, options: districtData, onChange: (val) => {
|
|
5168
5075
|
props.field.onChange(val);
|
|
5169
5076
|
handleSelectedDistrict(val);
|
|
5170
5077
|
}, 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'}` }));
|
|
@@ -5180,7 +5087,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5180
5087
|
required: true,
|
|
5181
5088
|
}, render: (props) => {
|
|
5182
5089
|
var _a;
|
|
5183
|
-
return (React__default["default"].createElement(index$
|
|
5090
|
+
return (React__default["default"].createElement(index$a.Dropdown, { id: actionAddressLever3.id, options: communeData, onChange: (val) => {
|
|
5184
5091
|
props.field.onChange(val);
|
|
5185
5092
|
}, 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'}` }));
|
|
5186
5093
|
} })),
|
|
@@ -5258,31 +5165,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5258
5165
|
case index$2.NodeActionType.USER_SUBMIT_DATE:
|
|
5259
5166
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5260
5167
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
5261
|
-
React__default["default"].createElement(
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
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
|
-
} })));
|
|
5168
|
+
React__default["default"].createElement(StyleDatePickerInput, null,
|
|
5169
|
+
React__default["default"].createElement(index$8.DatePicker, { locale: locale || 'en-PH', displayDateFormat: index$3.DATE_FNS_DATE_FORMAT, onChange: (_value) => {
|
|
5170
|
+
const dateString = dayjs__default["default"](_value).format(index$3.API_DATE_FORMAT);
|
|
5171
|
+
setValue(action.key, dateString);
|
|
5172
|
+
trigger(action.key);
|
|
5173
|
+
} }),
|
|
5174
|
+
React__default["default"].createElement("input", Object.assign({ id: action.id, type: "date", className: "input-date" }, register(action.key, { required: true })))),
|
|
5175
|
+
errors[action.key] && (React__default["default"].createElement("p", { className: "error-message" }, f({
|
|
5176
|
+
id: 'validation.error.requiredField',
|
|
5177
|
+
defaultMessage: 'This field is required',
|
|
5178
|
+
})))));
|
|
5286
5179
|
case index$2.NodeActionType.USER_SUBMIT_BMI:
|
|
5287
5180
|
return (React__default["default"].createElement("div", { key: action.id },
|
|
5288
5181
|
React__default["default"].createElement("div", { className: "input-row", key: `${action.id}-weight` },
|
|
@@ -5388,14 +5281,14 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5388
5281
|
React__default["default"].createElement("span", { className: "verify-success-label" }, f({
|
|
5389
5282
|
id: 'subot.verifyOTP.success.message',
|
|
5390
5283
|
defaultMessage: 'Verified successful',
|
|
5391
|
-
})))) : (React__default["default"].createElement(index$
|
|
5284
|
+
})))) : (React__default["default"].createElement(index$9.Button, Object.assign({ className: "submit-btn", size: isFormRevamp ? 'md' : 'lg', isLoading: isLoadingVerify, isDisabled: !sentOTP, onClick: (e) => handleVerifyOTP(e, action) }, trackingVerifyOTP), f({
|
|
5392
5285
|
id: 'subot.verifyOTP.button',
|
|
5393
5286
|
defaultMessage: 'Verify OTP',
|
|
5394
5287
|
})))))));
|
|
5395
5288
|
case index$2.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS:
|
|
5396
5289
|
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 }));
|
|
5397
5290
|
case index$2.NodeActionType.USER_SUBMIT_DOB:
|
|
5398
|
-
return (React__default["default"].createElement(DOB, {
|
|
5291
|
+
return (React__default["default"].createElement(DOB, { action: action, setValue: setValue, trigger: trigger, register: register, errors: errors, botId: botId }));
|
|
5399
5292
|
default:
|
|
5400
5293
|
return '';
|
|
5401
5294
|
}
|
|
@@ -5409,9 +5302,11 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5409
5302
|
React__default["default"].createElement("span", { className: "subot-checkbox__label" },
|
|
5410
5303
|
React__default["default"].createElement(Markdown, null, action.label)))));
|
|
5411
5304
|
case index$2.NodeActionType.USER_SUBMIT_SEND:
|
|
5305
|
+
// const disabledWhenNotVerifyed = hasOtpField ? !verifiedOTP : false
|
|
5412
5306
|
const disabled = hasConfirm ? !confirm : false;
|
|
5307
|
+
const disabledDurgoCampaign = !formState.isValid;
|
|
5413
5308
|
return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
|
|
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)));
|
|
5309
|
+
React__default["default"].createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled: isDurgoCampaign ? disabledDurgoCampaign : disabled }, trackingSubmit, { "data-response-id": action.id }), action.label)));
|
|
5415
5310
|
case index$2.NodeActionType.USER_SUBMIT_TERMS:
|
|
5416
5311
|
return (React__default["default"].createElement("div", { className: "form-terms", key: action.id },
|
|
5417
5312
|
React__default["default"].createElement(Markdown, null, action.label)));
|
|
@@ -6250,7 +6145,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6250
6145
|
React__default["default"].createElement(Close, null))),
|
|
6251
6146
|
React__default["default"].createElement(NodeContextProvider, null,
|
|
6252
6147
|
React__default["default"].createElement("div", { className: "subot-inline-revamp-container", "data-show-footer": isShowFooter },
|
|
6253
|
-
loading && !isShowFooter && React__default["default"].createElement(index$
|
|
6148
|
+
loading && !isShowFooter && React__default["default"].createElement(index$b.Loading, { className: "si-loading" }),
|
|
6254
6149
|
React__default["default"].createElement(Container$1, { onClickStart: () => {
|
|
6255
6150
|
setIsDisplayFullMobile(true);
|
|
6256
6151
|
} })),
|
|
@@ -6269,7 +6164,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6269
6164
|
}, [bgImgFullContainer]);
|
|
6270
6165
|
if (isFullContainer) {
|
|
6271
6166
|
return (React__default["default"].createElement(StyledContainerFullscreen, { style: styleFullContainer },
|
|
6272
|
-
React__default["default"].createElement(index$
|
|
6167
|
+
React__default["default"].createElement(index$c.Container, { className: "si-container" },
|
|
6273
6168
|
React__default["default"].createElement("div", { className: "si-revamp-left" },
|
|
6274
6169
|
React__default["default"].createElement(Container$t, { subotSettingData: subotSettingData }),
|
|
6275
6170
|
React__default["default"].createElement(Container$v, null)),
|