\", \" \"),\r\n userID: item.userID,\r\n asUser: item.asUser,\r\n user: item.user,\r\n jobTitle: item.jobTitle,\r\n company: item.company,\r\n }));\r\n setTestimonials(tmpList);\r\n });\r\n\r\n // console.log(testimonials);\r\n setLoading(true);\r\n await profileService\r\n .GetAllFeaturedProfilesAsync(AccountTypes.Provider)\r\n .then((x) => {\r\n var list = [];\r\n list = x;\r\n var list2 = [];\r\n for (var i = 0; i < x.length; i++) {\r\n if (list[i].profile.spType === \"Start Up\") {\r\n list[i].profile.spType = t(\"signUp.providerType.startup\");\r\n }\r\n }\r\n for (var i = 0; i < 6; i++) {\r\n list2.push(x[i]);\r\n }\r\n setProfiles(list);\r\n if (\r\n location !== null &&\r\n location !== undefined &&\r\n location.state !== null &&\r\n location.state !== undefined &&\r\n location.state.state !== null &&\r\n location.state.state !== undefined &&\r\n location.state.state.source === \"fromFeaturedSP\"\r\n ) {\r\n x.map((profiles) => {\r\n if (profiles.profile.userId === location.state.state.profile) {\r\n ValidateFeaturedProfile(profiles.profile);\r\n }\r\n });\r\n }\r\n });\r\n if (user == null) {\r\n await projectService\r\n .GetAllFeaturedAsync(false, null, currentLan)\r\n .then((x) => {\r\n setProjects(x);\r\n setProjectsList(x.featuredProjects.concat(x.featuredLinks));\r\n });\r\n } else {\r\n await projectService\r\n .GetAllFeaturedAsync(false, user.profile.userId, currentLan)\r\n .then((x) => {\r\n setProjects(x);\r\n\r\n setProjectsList(x.featuredProjects.concat(x.featuredLinks));\r\n\r\n if (\r\n location !== null &&\r\n location !== undefined &&\r\n location.state !== null &&\r\n location.state !== undefined &&\r\n location.state.state !== null &&\r\n location.state.state !== undefined &&\r\n location.state.state.source === \"fromFeaturedOpportunities\"\r\n ) {\r\n projectsList.map((project) => {\r\n if (project.projectID === location.state.state.project) {\r\n ValidateFeaturedOpportunity(project);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n loader.classList.add(\"loader--hide\");\r\n setLoading(false);\r\n };\r\n\r\n React.useEffect(() => {\r\n if (\r\n location !== null &&\r\n location !== undefined &&\r\n location.state !== null &&\r\n location.state !== undefined &&\r\n location.state.state !== null &&\r\n location.state.state !== undefined &&\r\n location.state.state.source === \"fromFeaturedOpportunities\" &&\r\n location.state.state.project == null\r\n ) {\r\n if (user === null) {\r\n history.push(\"/account/login\", {\r\n state: {\r\n source: \"fromFeaturedOpportunities\",\r\n },\r\n });\r\n } else if (user.profile.profileStatus !== ProfileStatus.Active) {\r\n } else if (\r\n user.profileTypeView.profileTypeDescription === AccountTypes.Provider\r\n ) {\r\n history.push(\"provider/search-project\");\r\n } else {\r\n ShowErrorMessage(t(\"searchOpportunities.landingPage.restriction\"));\r\n }\r\n } else if (\r\n location !== null &&\r\n location !== undefined &&\r\n location.state !== null &&\r\n location.state !== undefined &&\r\n location.state.state !== null &&\r\n location.state.state !== undefined &&\r\n location.state.state.source === \"fromFeaturedSP\" &&\r\n location.state.state.profile == null\r\n ) {\r\n if (user === null) {\r\n history.push(\"/account/login\", {\r\n state: {\r\n source: \"fromFeaturedSP\",\r\n },\r\n });\r\n } else if (user.profile.profileStatus !== ProfileStatus.Active) {\r\n } else if (\r\n user.profileTypeView.profileTypeDescription === AccountTypes.Seeker\r\n ) {\r\n history.push(\"seeker/search-provider\");\r\n } else if (\r\n user.profileTypeView.profileTypeDescription === AccountTypes.Partner\r\n ) {\r\n history.push(\"partner/search-provider\");\r\n } else {\r\n ShowErrorMessage(t(\"searchProviders.landingPage.restriction\"));\r\n }\r\n }\r\n\r\n let scrollTo = window.location.hash.replace(\"#\", \"\");\r\n Scroll.scroller.scrollTo(scrollTo, {\r\n offset: -50,\r\n duration: 1,\r\n smooth: true,\r\n delay: 0,\r\n });\r\n document.body.classList.add(\"index-page\");\r\n document.body.classList.add(\"sidebar-collapse\");\r\n document.documentElement.classList.remove(\"nav-open\");\r\n window.scrollTo(0, 0);\r\n document.body.scrollTop = 0;\r\n return function cleanup() {\r\n document.body.classList.remove(\"index-page\");\r\n document.body.classList.remove(\"sidebar-collapse\");\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, [currentLan]);\r\n\r\n function ShowErrorMessage(message) {\r\n setErrorMessage(message);\r\n setErrorAlert(!errorAlert);\r\n }\r\n\r\n async function handleNdaApprove(index) {\r\n let updatedList = projects.featuredProjects.map((item) => {\r\n if (item.projectID === index) {\r\n item.userPerformingRequestNDAApproved = true;\r\n return item;\r\n } else {\r\n return item;\r\n }\r\n });\r\n setProjects(updatedList);\r\n }\r\n async function AddProjectSeen(model) {\r\n await projectSeenService\r\n .AddProjectSeenAsync(model)\r\n .then(() => {\r\n history.push(\r\n `/provider/search-project/${model.projectId}?fromSearch=true`\r\n );\r\n })\r\n .catch((error) => {\r\n if (error.message !== undefined) {\r\n setErrorMessage(error.message);\r\n if (error.error !== null && error.error.length > 0) {\r\n for (var i = 0; i < error.error.length; i++) {\r\n if (error.error[i].languageName == currentLan) {\r\n setErrorAlert(error.error[i].error);\r\n }\r\n }\r\n }\r\n } else {\r\n setErrorAlert(error);\r\n }\r\n setErrorAlert(!errorAlert);\r\n });\r\n }\r\n async function AddDirectLinkSeen(model) {\r\n await directLinkSeenService\r\n .AddDirectLinkSeenAsync(model)\r\n .then(() => {\r\n history.push(\r\n `/provider/search-direct-links/${model.directLinkId}?fromSearch=true`\r\n );\r\n })\r\n .catch((error) => {\r\n if (error.message !== undefined) {\r\n setErrorMessage(error.message);\r\n if (error.error !== null && error.error.length > 0) {\r\n for (var i = 0; i < error.error.length; i++) {\r\n if (error.error[i].languageName == currentLan) {\r\n setErrorAlert(error.error[i].error);\r\n }\r\n }\r\n }\r\n } else {\r\n setErrorAlert(error);\r\n }\r\n setErrorAlert(!errorAlert);\r\n });\r\n }\r\n async function AddSpSeen(model) {\r\n await spSeenService\r\n .AddSpSeenAsync(model)\r\n .then((x) => {\r\n if (user.profileTypeView.profileTypeDescription === AccountTypes.Seeker)\r\n history.push(`/seeker/search-provider/search-details/${model.spId}`);\r\n else if (\r\n user.profileTypeView.profileTypeDescription === AccountTypes.Partner\r\n )\r\n history.push(`/partner/search-provider/search-details/${model.spId}`);\r\n })\r\n .catch((error) => {\r\n if (error.message !== undefined) {\r\n setErrorMessage(error.message);\r\n if (error.error !== null && error.error.length > 0) {\r\n for (var i = 0; i < error.error.length; i++) {\r\n if (error.error[i].languageName == currentLan) {\r\n setErrorAlert(error.error[i].error);\r\n }\r\n }\r\n }\r\n } else {\r\n setErrorAlert(error);\r\n }\r\n setErrorAlert(!errorAlert);\r\n });\r\n }\r\n useEffect(() => {\r\n const cards = document.querySelectorAll(\".profilesCard\");\r\n if (cards.length > 0) {\r\n const nodeArray = Array.from(cards);\r\n const maxHeight = Math.max(...nodeArray.map((card) => card.clientHeight));\r\n nodeArray.forEach((card) => {\r\n card.style.height = `${maxHeight}px`;\r\n });\r\n }\r\n }, [profiles]);\r\n useEffect(() => {\r\n const interval = setInterval(() => {\r\n setTimer(timer + 1);\r\n if (testimonialsIndex < testimonials.length - 1)\r\n setTestimonialsIndex(testimonialsIndex + 1);\r\n else setTestimonialsIndex(0);\r\n }, 3500);\r\n return () => clearInterval(interval);\r\n }, [timer]);\r\n // console.log(projects);\r\n\r\n const settings = {\r\n slidesToShow: isDesktopOrLaptop\r\n ? partners.length >= 7\r\n ? 7\r\n : partners.length\r\n : isTablet\r\n ? 4\r\n : 2,\r\n slidesToScroll: 1,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n draggable: isDesktopOrLaptop ? false : true,\r\n infinite: true,\r\n swipeToSlide: isDesktopOrLaptop ? false : true,\r\n swipe: isDesktopOrLaptop ? false : true,\r\n arrows: isDesktopOrLaptop ? true : false,\r\n };\r\n\r\n const settings2 = {\r\n className: \"slider variable-width\",\r\n slidesToShow:\r\n isDesktop || isDesktopOrLaptop || isIpadOrTablet\r\n ? projectsList && projectsList.length < 3\r\n ? projectsList.length\r\n : 3\r\n : isTablet\r\n ? projectsList && projectsList.length < 2\r\n ? projectsList.length\r\n : 2\r\n : 1,\r\n slidesToScroll: 1,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n draggable: isDesktopOrLaptop ? false : true,\r\n infinite: true,\r\n swipeToSlide: isDesktopOrLaptop ? false : true,\r\n swipe: isDesktopOrLaptop ? false : true,\r\n arrows: isDesktopOrLaptop ? true : false,\r\n };\r\n\r\n const settings3 = {\r\n className: \"slider variable-width\",\r\n // slidesToShow: isDesktopOrLaptop\r\n // ? profiles.length >= 4\r\n // ? 4\r\n // : profiles.length\r\n // : isTablet\r\n // ? 3\r\n // : isMobile\r\n // ? 1\r\n // : 2,\r\n slidesToShow: profiles.length >= 4 ? 4 : profiles.length,\r\n slidesToScroll: 1,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n draggable: isDesktopOrLaptop ? false : true,\r\n infinite: true,\r\n swipeToSlide: isDesktopOrLaptop ? false : true,\r\n swipe: isDesktopOrLaptop ? false : true,\r\n arrows: isDesktopOrLaptop ? true : false,\r\n responsive: [\r\n {\r\n breakpoint: 1500,\r\n settings: {\r\n slidesToShow: 5,\r\n slidesToScroll: 1,\r\n infinite: true,\r\n },\r\n },\r\n {\r\n breakpoint: 1475,\r\n settings: {\r\n slidesToShow: 4,\r\n slidesToScroll: 1,\r\n infinite: true,\r\n },\r\n },\r\n {\r\n breakpoint: 1020,\r\n settings: {\r\n slidesToShow: 3,\r\n slidesToScroll: 1,\r\n initialSlide: 3,\r\n },\r\n },\r\n ,\r\n {\r\n breakpoint: 800,\r\n settings: {\r\n slidesToShow: 2,\r\n slidesToScroll: 1,\r\n initialSlide: 2,\r\n },\r\n },\r\n {\r\n breakpoint: 600,\r\n settings: {\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n },\r\n },\r\n ],\r\n };\r\n\r\n const settings4 = {\r\n className: \"slider variable-width\",\r\n slidesToShow: isDesktopOrLaptop\r\n ? featuredIn.length >= 5\r\n ? 5\r\n : featuredIn.length\r\n : isTablet\r\n ? 3\r\n : isMobile\r\n ? 2\r\n : 2,\r\n slidesToScroll: 1,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n draggable: isDesktopOrLaptop ? false : true,\r\n infinite: true,\r\n swipeToSlide: isDesktopOrLaptop ? false : true,\r\n swipe: isDesktopOrLaptop ? false : true,\r\n arrows: isDesktopOrLaptop ? true : false,\r\n };\r\n\r\n // if (loading) {\r\n // return (\r\n // <>\r\n // {/*
{errorMessage}
\r\n{t(\"nda.subtitle\")}
\r\n\r\n {/* {t(\"mainPage.title\")} */}\r\n {sections[0].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.title.body.one\")} */}\r\n {sections[1].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.title.body.two\")} */}\r\n {sections[2].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.title.body.footer\")} */}\r\n {sections[3].sectionContent}\r\n
\r\n\r\n {/*\r\n \r\n
\r\n\r\n {/* {t(\"mainPage.title.footer.one\")} */}\r\n {sections[4].sectionContent}\r\n
\r\n{\r\n user === null\r\n ? history.push(\"/account/login?fillProject=true\")\r\n : user.profile.profileStatus !== ProfileStatus.Active\r\n ? e.preventDefault()\r\n : user.profileTypeView.profileTypeDescription ===\r\n AccountTypes.Provider\r\n ? history.push(\"/provider/search-project\")\r\n : ShowErrorMessage(\r\n t(\"searchOpportunities.landingPage.restriction\")\r\n );\r\n }}\r\n >\r\n {t(\"mainPage.title.footer.two\")}\r\n
\r\n {/*\r\n {/* {t(\"mainPage.partners.title\")} */}\r\n {sections[5].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.description.one\")} */}\r\n {sections[6].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.description.two\")} */}\r\n {sections[7].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.description.three\")} */}\r\n {sections[8].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.description.four\")} */}\r\n {sections[9].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.glimpse\")} */}\r\n {sections[10].sectionContent}\r\n
\r\n \r\n {\r\n if (user == null) {\r\n history.push(\r\n `/account/login?source=fromFeaturedOpportunities&project=${project.projectID}`\r\n );\r\n } else if (\r\n user != null &&\r\n user.profileTypeView\r\n .profileTypeDescription ===\r\n AccountTypes.Provider\r\n ) {\r\n setSelectedProject(\r\n project.projectID\r\n );\r\n if (\r\n project.ndaRequired &&\r\n project.ndaRequired === true &&\r\n project.userPerformingRequestNDAApproved ===\r\n false\r\n ) {\r\n setNdaMessage(project.ndaText);\r\n setNdaAlert(!ndaAlert);\r\n } else {\r\n if (project.link) {\r\n await AddDirectLinkSeen({\r\n userId: user.profile.userId,\r\n directLinkId:\r\n project.projectID,\r\n clickedExternalLink: false,\r\n });\r\n } else {\r\n await AddProjectSeen({\r\n userId: user.profile.userId,\r\n projectId: project.projectID,\r\n ndaApproved: true,\r\n });\r\n }\r\n }\r\n } else {\r\n ShowErrorMessage(\r\n t(\r\n \"searchOpportunities.landingPage.restriction\"\r\n )\r\n );\r\n }\r\n }}\r\n >\r\n {t(\"btnText.viewOpportunity\")}\r\n \r\n
\r\n {project.projectTitle}\r\n
\r\n\r\n {t(\"project.closingDate\")}{\" \"}\r\n
\r\n \r\n\r\n {project.closingDate !== null &&\r\n `${new Date(\r\n project.closingDate\r\n ).getUTCDate()}/${\r\n monthNames[\r\n new Date(\r\n project.closingDate\r\n ).getUTCMonth()\r\n ]\r\n }/${new Date(\r\n project.closingDate\r\n ).getFullYear()}` !==\r\n \"1/January/1\"\r\n ? `${new Date(\r\n project.closingDate\r\n ).getUTCDate()}/${monthNames[\r\n new Date(\r\n project.closingDate\r\n ).getUTCMonth()\r\n ].substring(0, 3)}/${new Date(\r\n project.closingDate\r\n ).getFullYear()}`\r\n : \"\"}\r\n
\r\n \r\n\r\n {t(\"addProject.budget\")}{\" \"}\r\n
\r\n \r\n\r\n {project.budget.description}\r\n
\r\n \r\n {\r\n if (user === null) {\r\n history.push(\r\n `/account/login?source=fromFeaturedOpportunities&project=${project.projectID}`\r\n );\r\n } else if (\r\n user.profile.profileStatus !==\r\n ProfileStatus.Active\r\n ) {\r\n e.preventDefault();\r\n } else if (\r\n user.profileTypeView\r\n .profileTypeDescription ===\r\n AccountTypes.Provider\r\n ) {\r\n setSelectedProject(\r\n project.projectID\r\n );\r\n if (\r\n project.nda &&\r\n project.ndaRequired === true &&\r\n project.userPerformingRequestNDAApproved ===\r\n false\r\n ) {\r\n setNdaMessage(project.ndaText);\r\n setNdaAlert(!ndaAlert);\r\n } else {\r\n if (project.link) {\r\n await AddDirectLinkSeen({\r\n userId: user.profile.userId,\r\n directLinkId:\r\n project.projectID,\r\n clickedExternalLink: false,\r\n });\r\n } else {\r\n await AddProjectSeen({\r\n userId: user.profile.userId,\r\n projectId: project.projectID,\r\n ndaApproved: true,\r\n });\r\n }\r\n }\r\n } else {\r\n ShowErrorMessage(\r\n t(\r\n \"searchOpportunities.landingPage.restriction\"\r\n )\r\n );\r\n }\r\n }}\r\n >\r\n {t(\"btnText.viewOpportunity\")}\r\n \r\n
\r\n {project.projectTitle}\r\n
\r\n\r\n {/*\r\n {t(\"project.closingDate\")}{\" \"}\r\n
\r\n \r\n\r\n {project.closingDate !== null &&\r\n `${new Date(\r\n project.closingDate\r\n ).getUTCDate()}/${\r\n monthNames[\r\n new Date(\r\n project.closingDate\r\n ).getUTCMonth()\r\n ]\r\n }/${new Date(\r\n project.closingDate\r\n ).getFullYear()}` !==\r\n \"1/January/1\"\r\n ? `${new Date(\r\n project.closingDate\r\n ).getUTCDate()}/${monthNames[\r\n new Date(\r\n project.closingDate\r\n ).getUTCMonth()\r\n ].substring(0, 3)}/${new Date(\r\n project.closingDate\r\n ).getFullYear()}`\r\n : \"\"}\r\n
\r\n \r\n\r\n {t(\"addProject.budget\")}{\" \"}\r\n
\r\n \r\n\r\n {project.budget.description}\r\n
\r\n \r\n\r\n {/* {t(\"mainPage.providers.one\")} */}\r\n {sections[11].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.providers.two\")} */}\r\n {sections[12].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.providers.three\")} */}\r\n {sections[13].sectionContent}\r\n
\r\n \r\n\r\n {profile.profile.companyName}\r\n
\r\n\r\n {t(\"profile.activeSince\")}{\" \"}\r\n {profile.profile.activeSince}\r\n
\r\n\r\n {/* {t(\"mainPage.testimonials\")} */}\r\n {sections[14].sectionContent}\r\n
\r\n\r\n {/* {t(\"mainPage.featured\")} */}\r\n {sections[15].sectionContent}\r\n
\r\n\r\n {t(\"mainPage.usaid\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"mainPage.footer\")}\r\n
\r\n \r\n{t(\"upgrade.completed.body\")}
\r\n{errorMessage}
\r\n{t(\"success.changePassword\")}
\r\n{errorMessage}
\r\n\r\n {t(\"contactUs.thankYou\")}\r\n
\r\n{t(\"contactUs.messageAlert\")}
\r\n{errorMessage}
\r\n\r\n {t(\"contactUs.inquiries.one\")}
\r\n {t(\"contactUs.inquiries.two\")}\r\n
{t(\"reset.password.alert.message\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"accountExpiredBody\")}
\r\n{t(\"upgrade.successful.parttwo\")}
\r\n{t(\"login.error.notVerified\")}
\r\n{t(\"resend.email.success.alert\")}
\r\n{errorMessage}
\r\n{t(\"renew.password.alert.body\")}
\r\n{errorMessage}
\r\n{t(\"AccountCreatedSuccessfully.description\")}
\r\n{errorMessage}
\r\n{t(\"unsubscribe.message\")}
\r\n{errorMessage}
\r\n{t(\"upgrade.successful.partone\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"createCompanyProfile.success.body\")}
\r\n{t(\"draftSuccessAlertBody\")}
\r\n{errorMessage}
\r\n{t(\"croppingTool\")}
\r\n{t(\"previewTool\")}
\r\n{t(\"verificationEmail.alert.body\")}
\r\n{VerificationErrorMessage}
\r\n{t(\"draftSuccessAlertBody\")}
\r\n{t(\"croppingTool\")}
\r\n{t(\"previewTool\")}
\r\n{t(\"editprofile.success\")}
\r\n{errorMessage}
\r\n{VerificationErrorMessage}
\r\n{errorMessage}
\r\n{line}
;\r\n })\r\n : \"\"}\r\n{t(\"Secondary.disabled.success\")}
\r\n{t(\"Secondary.disabled.failure\")}
\r\n\r\n {t(\"MakeAccountPrimaryMessage.two\")}\r\n
\r\n{message}
\r\n{errorMessage}
\r\n{successMessage}
\r\n{t(\"delete.message\")}
\r\n{t(\"confirmDeleteAlert.two\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"deactivate.message\")}
\r\n\r\n {toggleNewsletterSubscription == true\r\n ? t(\"dispatch.success.subscription\")\r\n : t(\"dispatch.success.unsubscription\")}\r\n
\r\n\r\n {toggleNotificationsSubscription == true\r\n ? t(\"alerts.success.subscription\")\r\n : t(\"alerts.success.unsubscription\")}\r\n
\r\n\r\n {toggleBrowserNotificationsSubscription == true\r\n ? t(\"notify.success.subscription\")\r\n : t(\"notify.success.unsubscription\")}\r\n
\r\n{errorMessage}
\r\n{successMessage}
\r\n{errorMessage}
\r\n{t(\"pricing.description\")}
\r\n{t(\"pricing.description.second\")}
\r\n{errorMessage}
\r\n{line}
;\r\n })\r\n : \"\"} */}\r\n{errorMessage}
\r\n{t(\"nda.subtitle\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"confidentiality.agree\")}
\r\n{errorMessage}
\r\n{message.textMessage}
*/}\r\n\r\n {message.textMessage.split(\"\\n\").map((str) => (\r\n
{str}
\r\n ))}{\" \"}\r\n \r\n \r\n {message.dateTimeSent\r\n .toString()\r\n .substring(0, 10) +\r\n \" \" +\r\n message.dateTimeSent\r\n .toString()\r\n .substring(11, 16)}\r\n \r\n\r\n {message.textMessage\r\n .split(\"\\n\")\r\n .map((str) => (\r\n
{str}
\r\n ))}{\" \"}\r\n \r\n \r\n {message.dateTimeSent\r\n .toString()\r\n .substring(0, 10) +\r\n \" \" +\r\n message.dateTimeSent\r\n .toString()\r\n .substring(11, 16)}\r\n \r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"surveyResponseSentSuccess\")}
\r\n{errorMessage}
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyTitle}{\" \"}\r\n
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyDescription}{\" \"}\r\n
\r\n\r\n {\" \"}\r\n {t(\"survey.no.found\")}{\" \"}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{message}
\r\n{t(\"publishNowSecond\")}
\r\n{t(\"editProject.success.body.unpublished\")}
\r\n ) : (\r\n{t(\"editProject.success.body.published\")}
\r\n )}\r\n{errorMessage}
\r\n{VerificationErrorMessage}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"publishNowSecond\")}
\r\n{t(\"editProject.success.body.unpublished\")}
\r\n ) : (\r\n{t(\"editProject.success.body.published\")}
\r\n )} */}\r\n{t(\"editDirectLink.success.title\")}
\r\n{initialValues.extraInfo}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"surveyResponseSentSuccess\")}
\r\n{errorMessage}
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyTitle}{\" \"}\r\n
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyDescription}{\" \"}\r\n
\r\n{question.questionText}
\r\n \r\n{question.questionText}
\r\n \r\n{question.questionText}
\r\n \r\n{question.questionText}
\r\n \r\n\r\n {\" \"}\r\n {t(\"survey.no.found\")}{\" \"}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{successMessage}
\r\n\r\n Manage your account settings (password, membership plan, payment\r\n method...)\r\n
\r\n{errorMessage}
\r\n{t(\"resendEmailSuccessful\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{successMessage}
\r\n\r\n Manage your account settings (password, membership plan, payment\r\n method...)\r\n
\r\n{errorMessage}
\r\n{message}
\r\n{t(\"surveyResponseSentSuccess\")}
\r\n{errorMessage}
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyTitle}{\" \"}\r\n
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyDescription}{\" \"}\r\n
\r\n{question.questionText}
\r\n \r\n{question.questionText}
\r\n \r\n{question.questionText}
\r\n \r\n{question.questionText}
\r\n \r\n\r\n {\" \"}\r\n {t(\"survey.no.found\")}{\" \"}\r\n
\r\n\r\n {t(\"mainPage.usaid\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"mainPage.footer\")}\r\n
\r\n \r\n{t(\"updateSheetsSuccess\")}
\r\n{t(\"updateSheetsWarning\")}
\r\n{t(\"downloadWarning\")}
\r\n{errorMessage}
\r\n\r\n {isAddMode ? t(\"addProjectType.body\") : t(\"editProjectType.body\")}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{errorMessage}
\r\n{t(\"editSystemSetup.body\")}
\r\n{errorMessage}
\r\n\r\n {isAddMode ? t(\"addCountry.success\") : t(\"editCountry.success\")}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n\r\n {isAddMode ? t(\"addBudget.success\") : t(\"editBudget.success\")}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {isAddMode\r\n ? t(\"addNbEmployee.success\")\r\n : t(\"editNbEmployee.success\")}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {isAddMode ? t(\"addSpeciality.body\") : t(\"editSpeciality.body\")}\r\n
\r\n{errorMessage}
\r\n\r\n {isAddMode ? t(\"addCategory.success\") : t(\"editCategory.success\")}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"manuallySendSurvey.success\")}
\r\n{t(\"manuallySendSurvey.noSurveys\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n{t(\"editProject.success.body.published\")}
\r\n{errorMessage}
\r\nsetUserAlert(!userAlert)}>\r\n {t(\"update.status\")}\r\n
\r\n \r\n{errorMessage}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{t(\"variable.edit.success\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"stripe.keys.success\")}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"featuredOpportunityAlert\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"featuredOpportunityAlert\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{t(\"jobSuccess\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{t(\"updateSheetsSuccess\")}
\r\n{t(\"updateSheetsWarning\")}
\r\n{errorMessage}
\r\n{t(\"croppingTool\")}
\r\n{t(\"previewTool\")}
\r\n{isAddMode ? t(\"addPartner.body\") : t(\"editPartner.body\")}
\r\n{errorMessage}
\r\n{t(\"downloadPartnerImageWarning\")}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"editOurAim.body\")}
\r\n{errorMessage}
\r\n{t(\"editUsageAndBenefits.body\")}
\r\n{errorMessage}
\r\n{t(\"editIfYouAre.body\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"editIfYouBelieveIn.body\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"croppingTool\")}
\r\n{t(\"previewTool\")}
\r\n{isAddMode ? t(\"addPerson.body\") : t(\"editPerson.body\")}
\r\n{errorMessage}
\r\n{t(\"downloadPersonImageWarning\")}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {isAddMode\r\n ? t(\"addwhoWeAreTypes.success\")\r\n : t(\"editwhoWeAreTypes.success\")}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"croppingTool\")}
\r\n{t(\"previewTool\")}
\r\n\r\n {isAddMode\r\n ? t(\"featuredIn.add.success\")\r\n : t(\"featuredIn.update.success\")}\r\n
\r\n{errorMessage}
\r\n{t(\"downloadPartnerImageWarning\")}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"mainPage.sections.update.success\")}
\r\n{errorMessage}
\r\n\", \" \"),\r\n userID: item.userID,\r\n asUser: item.asUser,\r\n user: item.user,\r\n jobTitle: item.jobTitle,\r\n company: item.company,\r\n }));\r\n setTestimonials(tmpList);\r\n });\r\n\r\n await languageService.GetAllLanguagesAsync().then((x) => {\r\n setLanguages(x);\r\n });\r\n\r\n // console.log(testimonials);\r\n setLoading(true);\r\n await profileService\r\n .GetAllFeaturedProfilesAsync(AccountTypes.Provider)\r\n .then((x) => {\r\n var list = [];\r\n list = x;\r\n var list2 = [];\r\n for (var i = 0; i < x.length; i++) {\r\n if (list[i].profile.spType === \"Start Up\") {\r\n list[i].profile.spType = t(\"signUp.providerType.startup\");\r\n }\r\n }\r\n for (var i = 0; i < 6; i++) {\r\n list2.push(x[i]);\r\n }\r\n setProfiles(list);\r\n if (\r\n location !== null &&\r\n location !== undefined &&\r\n location.state !== null &&\r\n location.state !== undefined &&\r\n location.state.state !== null &&\r\n location.state.state !== undefined &&\r\n location.state.state.source === \"fromFeaturedSP\"\r\n ) {\r\n x.map((profiles) => {\r\n if (profiles.profile.userId === location.state.state.profile) {\r\n ValidateFeaturedProfile(profiles.profile);\r\n }\r\n });\r\n }\r\n });\r\n if (user == null) {\r\n await projectService\r\n .GetAllFeaturedAsync(true, null, currentLan)\r\n .then((x) => {\r\n setProjects(x);\r\n });\r\n } else {\r\n await projectService\r\n .GetAllFeaturedAsync(true, user.profile.userId, currentLan)\r\n .then((x) => {\r\n setProjects(x);\r\n setProjectsList(x.featuredProjects.concat(x.featuredLinks));\r\n if (\r\n location !== null &&\r\n location !== undefined &&\r\n location.state !== null &&\r\n location.state !== undefined &&\r\n location.state.state !== null &&\r\n location.state.state !== undefined &&\r\n location.state.state.source === \"fromFeaturedOpportunities\"\r\n ) {\r\n projectsList.map((project) => {\r\n if (project.projectID === location.state.state.project) {\r\n ValidateFeaturedOpportunity(project);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n loader.classList.add(\"loader--hide\");\r\n setLoading(false);\r\n };\r\n\r\n React.useEffect(() => {\r\n if (\r\n location !== null &&\r\n location !== undefined &&\r\n location.state !== null &&\r\n location.state !== undefined &&\r\n location.state.state !== null &&\r\n location.state.state !== undefined &&\r\n location.state.state.source === \"fromFeaturedOpportunities\" &&\r\n location.state.state.project == null\r\n ) {\r\n if (user === null) {\r\n history.push(\"/account/login\", {\r\n state: {\r\n source: \"fromFeaturedOpportunities\",\r\n },\r\n });\r\n } else if (user.profile.profileStatus !== ProfileStatus.Active) {\r\n } else if (\r\n user.profileTypeView.profileTypeDescription === AccountTypes.Provider\r\n ) {\r\n history.push(\"provider/search-project\");\r\n } else {\r\n ShowErrorMessage(t(\"searchOpportunities.landingPage.restriction\"));\r\n }\r\n } else if (\r\n location !== null &&\r\n location !== undefined &&\r\n location.state !== null &&\r\n location.state !== undefined &&\r\n location.state.state !== null &&\r\n location.state.state !== undefined &&\r\n location.state.state.source === \"fromFeaturedSP\" &&\r\n location.state.state.profile == null\r\n ) {\r\n if (user === null) {\r\n history.push(\"/account/login\", {\r\n state: {\r\n source: \"fromFeaturedSP\",\r\n },\r\n });\r\n } else if (user.profile.profileStatus !== ProfileStatus.Active) {\r\n } else if (\r\n user.profileTypeView.profileTypeDescription === AccountTypes.Seeker ||\r\n user.profileTypeView.profileTypeDescription === AccountTypes.Partner\r\n ) {\r\n history.push(\"seeker/search-provider\");\r\n } else {\r\n ShowErrorMessage(t(\"searchProviders.landingPage.restriction\"));\r\n }\r\n }\r\n fetchData();\r\n let scrollTo = window.location.hash.replace(\"#\", \"\");\r\n Scroll.scroller.scrollTo(scrollTo, {\r\n offset: -50,\r\n duration: 1,\r\n smooth: true,\r\n delay: 0,\r\n });\r\n document.body.classList.add(\"index-page\");\r\n document.body.classList.add(\"sidebar-collapse\");\r\n document.documentElement.classList.remove(\"nav-open\");\r\n window.scrollTo(0, 0);\r\n document.body.scrollTop = 0;\r\n return function cleanup() {\r\n document.body.classList.remove(\"index-page\");\r\n document.body.classList.remove(\"sidebar-collapse\");\r\n };\r\n }, []);\r\n\r\n function ShowErrorMessage(message) {\r\n setErrorMessage(message);\r\n setErrorAlert(!errorAlert);\r\n }\r\n\r\n async function AddProjectSeen(model) {\r\n await projectSeenService\r\n .AddProjectSeenAsync(model)\r\n .then(() => {\r\n history.push(\r\n `/provider/search-project/${model.projectId}?fromSearch=true`\r\n );\r\n })\r\n .catch((error) => {\r\n if (error.message !== undefined) {\r\n setErrorMessage(error.message);\r\n if (error.error !== null && error.error.length > 0) {\r\n for (var i = 0; i < error.error.length; i++) {\r\n if (error.error[i].languageName == currentLan) {\r\n setErrorAlert(error.error[i].error);\r\n }\r\n }\r\n }\r\n } else {\r\n setErrorAlert(error);\r\n }\r\n setErrorAlert(!errorAlert);\r\n });\r\n }\r\n\r\n async function AddSpSeen(model) {\r\n await spSeenService\r\n .AddSpSeenAsync(model)\r\n .then((x) => {\r\n history.push(`/seeker/search-provider/search-details/${model.spId}`);\r\n })\r\n .catch((error) => {\r\n if (error.message !== undefined) {\r\n setErrorMessage(error.message);\r\n if (error.error !== null && error.error.length > 0) {\r\n for (var i = 0; i < error.error.length; i++) {\r\n if (error.error[i].languageName == currentLan) {\r\n setErrorAlert(error.error[i].error);\r\n }\r\n }\r\n }\r\n } else {\r\n setErrorAlert(error);\r\n }\r\n setErrorAlert(!errorAlert);\r\n });\r\n }\r\n\r\n useEffect(() => {\r\n const cards = document.querySelectorAll(\".profilesCard\");\r\n if (cards.length > 0) {\r\n const nodeArray = Array.from(cards);\r\n const maxHeight = Math.max(...nodeArray.map((card) => card.clientHeight));\r\n nodeArray.forEach((card) => {\r\n card.style.height = `${maxHeight}px`;\r\n });\r\n }\r\n }, [profiles]);\r\n\r\n useEffect(() => {\r\n const interval = setInterval(() => {\r\n setTimer(timer + 1);\r\n if (testimonialsIndex < testimonials.length - 1)\r\n setTestimonialsIndex(testimonialsIndex + 1);\r\n else setTestimonialsIndex(0);\r\n }, 2500);\r\n return () => clearInterval(interval);\r\n }, [timer]);\r\n // console.log(projects);\r\n\r\n const settings = {\r\n slidesToShow: isDesktopOrLaptop\r\n ? partners.length >= 7\r\n ? 7\r\n : partners.length\r\n : isTablet\r\n ? 4\r\n : 2,\r\n slidesToScroll: 1,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n draggable: isDesktopOrLaptop ? false : true,\r\n infinite: true,\r\n swipeToSlide: isDesktopOrLaptop ? false : true,\r\n swipe: isDesktopOrLaptop ? false : true,\r\n arrows: isDesktopOrLaptop ? true : false,\r\n };\r\n\r\n const settings2 = {\r\n className: \"slider variable-width\",\r\n slidesToShow:\r\n isDesktop || isDesktopOrLaptop || isIpadOrTablet\r\n ? projectsList && projectsList.length < 3\r\n ? projectsList.length\r\n : 3\r\n : isTablet\r\n ? projectsList && projectsList.length < 2\r\n ? projectsList.length\r\n : 2\r\n : 1,\r\n slidesToScroll: 1,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n draggable: isDesktopOrLaptop ? false : true,\r\n infinite: true,\r\n swipeToSlide: isDesktopOrLaptop ? false : true,\r\n swipe: isDesktopOrLaptop ? false : true,\r\n arrows: isDesktopOrLaptop ? true : false,\r\n };\r\n\r\n const settings3 = {\r\n // slidesToShow: isDesktopOrLaptop\r\n // ? profiles.length >= 4\r\n // ? 4\r\n // : profiles.length\r\n // : isTablet\r\n // ? 3\r\n // : isMobile\r\n // ? 1\r\n // : 2,\r\n slidesToShow: profiles.length >= 5 ? 5 : profiles.length,\r\n slidesToScroll: 1,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n draggable: isDesktopOrLaptop ? false : true,\r\n infinite: true,\r\n swipeToSlide: isDesktopOrLaptop ? false : true,\r\n swipe: isDesktopOrLaptop ? false : true,\r\n arrows: isDesktopOrLaptop ? true : false,\r\n responsive: [\r\n {\r\n breakpoint: 1500,\r\n settings: {\r\n slidesToShow: 5,\r\n slidesToScroll: 1,\r\n infinite: true,\r\n },\r\n },\r\n {\r\n breakpoint: 1475,\r\n settings: {\r\n slidesToShow: 4,\r\n slidesToScroll: 1,\r\n infinite: true,\r\n },\r\n },\r\n {\r\n breakpoint: 1020,\r\n settings: {\r\n slidesToShow: 3,\r\n slidesToScroll: 1,\r\n initialSlide: 3,\r\n },\r\n },\r\n ,\r\n {\r\n breakpoint: 800,\r\n settings: {\r\n slidesToShow: 2,\r\n slidesToScroll: 1,\r\n initialSlide: 2,\r\n },\r\n },\r\n {\r\n breakpoint: 600,\r\n settings: {\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n },\r\n },\r\n ],\r\n };\r\n\r\n const settings4 = {\r\n className: \"slider variable-width\",\r\n slidesToShow: isDesktopOrLaptop\r\n ? featuredIn.length >= 5\r\n ? 5\r\n : featuredIn.length\r\n : isTablet\r\n ? 3\r\n : isMobile\r\n ? 2\r\n : 2,\r\n slidesToScroll: 1,\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n draggable: isDesktopOrLaptop ? false : true,\r\n infinite: true,\r\n swipeToSlide: isDesktopOrLaptop ? false : true,\r\n swipe: isDesktopOrLaptop ? false : true,\r\n arrows: isDesktopOrLaptop ? true : false,\r\n };\r\n\r\n const handleUpdate = async () => {\r\n const model = {\r\n SectionCode: sectionCode,\r\n };\r\n let list = [];\r\n var regex = /(<([^>]+)>)/gi;\r\n\r\n if (languages !== null) {\r\n for (var i = 0; i < languages.length; i++) {\r\n var hasText = !!languagesName[i].replace(regex, \"\").length;\r\n if (hasText === false) {\r\n setErrorMessage(t(\"required.all\"));\r\n setErrorAlert(!errorAlert);\r\n return false;\r\n }\r\n const translation = {\r\n languageID: languages[i].languageID,\r\n name: languagesName[i],\r\n };\r\n list.push(translation);\r\n }\r\n }\r\n\r\n model[\"sectionContent\"] = list;\r\n await adminService\r\n .UpdateSectionAsync(sectionCode, model)\r\n .then((x) => {\r\n const sectionsArr = sections;\r\n for (let i = 0; i < sectionsArr.length; i++) {\r\n if (sectionsArr[i].sectionCode === sectionCode) {\r\n languagesName[0] = languagesName[0].replace(\"
\", \"\");\r\n languagesName[0] = languagesName[0].replace(\"
\", \"\");\r\n sectionsArr[i].sectionContent = languagesName[0];\r\n sectionsArr[i].sectionContentLanguages = list;\r\n }\r\n }\r\n setSections(sectionsArr);\r\n setModalAlert(!modalAlert);\r\n })\r\n .catch((error) => {\r\n setLoading(false);\r\n if (error.message !== undefined) {\r\n setErrorMessage(error.message);\r\n if (error.error !== null && error.error.length > 0) {\r\n for (var i = 0; i < error.error.length; i++) {\r\n if (error.error[i].languageName == currentLan) {\r\n setErrorMessage(error.error[i].error);\r\n }\r\n }\r\n }\r\n } else {\r\n setErrorMessage(error);\r\n }\r\n setErrorAlert(!errorAlert);\r\n });\r\n };\r\n\r\n function editInitialForm(languages, selectedSection) {\r\n var newJson = {};\r\n languages.map((x) => {\r\n var newKey = x.languageName;\r\n if (selectedSection.sectionContentLanguages != null) {\r\n for (\r\n var i = 0;\r\n i < selectedSection.sectionContentLanguages.length;\r\n i++\r\n ) {\r\n if (\r\n x.languageID ===\r\n selectedSection.sectionContentLanguages[i].languageID\r\n ) {\r\n var newVal = selectedSection.sectionContentLanguages[i];\r\n newJson[newKey] = newVal;\r\n languagesName[i] = selectedSection.sectionContentLanguages[i];\r\n }\r\n }\r\n setLanguagesName(languagesName);\r\n }\r\n });\r\n setInitialValues(newJson);\r\n }\r\n\r\n if (loading) {\r\n return (\r\n <>\r\n{errorMessage}
\r\nconsole.log(e.currentTarget.textContent)}\r\n style={\r\n rtl\r\n ? {\r\n color: \"#292929\",\r\n lineHeight: \"1.4em\",\r\n fontSize: \"40px\",\r\n fontFamily: \"SpaceGroteskMedium\",\r\n paddingTop: \"100px\",\r\n marginBottom: \"0\",\r\n textAlign: \"justify\",\r\n }\r\n : {\r\n color: \"#292929\",\r\n lineHeight: \"1.4em\",\r\n fontSize: \"40px\",\r\n fontFamily: \"SpaceGroteskMedium\",\r\n paddingTop: \"100px\",\r\n marginBottom: \"0\",\r\n }\r\n }\r\n onDoubleClick={(e) => {\r\n history.push(\r\n `${path}/edit/${sections[0].sectionCode}?sectionCode=${sections[0].sectionCode}§ionContent=${sections[0].sectionContent}`\r\n );\r\n // setLanguagesName(sections[0].sectionContentLanguages);\r\n // editInitialForm(languages, sections[0]);\r\n // setSectionCode(sections[0].sectionCode);\r\n // setSelectedSection(sections[0]);\r\n // setModalAlert(!modalAlert);\r\n }}\r\n >\r\n {/* {t(\"mainPage.title\")} */}\r\n {sections[0].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[1].sectionCode}?sectionCode=${sections[1].sectionCode}§ionContent=${sections[1].sectionContent}`\r\n );\r\n // setLanguagesName(sections[1].sectionContentLanguages);\r\n // editInitialForm(languages, sections[1]);\r\n // setSectionCode(sections[1].sectionCode);\r\n // setSelectedSection(sections[1]);\r\n // setModalAlert(!modalAlert);\r\n }}\r\n >\r\n {/* {t(\"mainPage.title.body.one\")} */}\r\n {sections[1].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[2].sectionCode}?sectionCode=${sections[2].sectionCode}§ionContent=${sections[2].sectionContent}`\r\n );\r\n // setLanguagesName(sections[2].sectionContentLanguages);\r\n // editInitialForm(languages, sections[2]);\r\n // setSectionCode(sections[2].sectionCode);\r\n // setSelectedSection(sections[2]);\r\n // setModalAlert(!modalAlert);\r\n }}\r\n >\r\n {/* {t(\"mainPage.title.body.two\")} */}\r\n {sections[2].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[3].sectionCode}?sectionCode=${sections[3].sectionCode}§ionContent=${sections[3].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.title.body.footer\")} */}\r\n {sections[3].sectionContent}\r\n
\r\n\r\n \r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[4].sectionCode}?sectionCode=${sections[4].sectionCode}§ionContent=${sections[4].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.title.footer.one\")} */}\r\n {sections[4].sectionContent}\r\n
\r\n{\r\n // user === null\r\n // ? history.push(\"/account/login\")\r\n // : user.profile.profileStatus !== ProfileStatus.Active\r\n // ? e.preventDefault()\r\n // : user.profileTypeView.profileTypeDescription ===\r\n // AccountTypes.Provider\r\n // ? history.push(\"/provider/search-project\")\r\n // : ShowErrorMessage(\r\n // t(\"searchOpportunities.landingPage.restriction\")\r\n // );\r\n // }}\r\n >\r\n {t(\"mainPage.title.footer.two\")}\r\n
\r\n {/*{\r\n history.push(\r\n `${path}/edit/${sections[5].sectionCode}?sectionCode=${sections[5].sectionCode}§ionContent=${sections[5].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.partners.title\")} */}\r\n {sections[5].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[6].sectionCode}?sectionCode=${sections[6].sectionCode}§ionContent=${sections[6].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.description.one\")} */}\r\n {sections[6].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[7].sectionCode}?sectionCode=${sections[7].sectionCode}§ionContent=${sections[7].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.description.two\")} */}\r\n {sections[7].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[8].sectionCode}?sectionCode=${sections[8].sectionCode}§ionContent=${sections[8].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.description.three\")} */}\r\n {sections[8].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[9].sectionCode}?sectionCode=${sections[9].sectionCode}§ionContent=${sections[9].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.description.four\")} */}\r\n {sections[9].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[10].sectionCode}?sectionCode=${sections[10].sectionCode}§ionContent=${sections[10].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.glimpse\")} */}\r\n {sections[10].sectionContent}\r\n
\r\n\r\n {project.projectTitle}\r\n
\r\n\r\n {/*\r\n {t(\"project.closingDate\")}{\" \"}\r\n
\r\n \r\n\r\n {project.closingDate !== null &&\r\n `${new Date(\r\n project.closingDate\r\n ).getUTCDate()}/${\r\n monthNames[\r\n new Date(\r\n project.closingDate\r\n ).getUTCMonth()\r\n ]\r\n }/${new Date(\r\n project.closingDate\r\n ).getFullYear()}` !== \"1/January/1\"\r\n ? `${new Date(\r\n project.closingDate\r\n ).getUTCDate()}/${monthNames[\r\n new Date(\r\n project.closingDate\r\n ).getUTCMonth()\r\n ].substring(0, 3)}/${new Date(\r\n project.closingDate\r\n ).getFullYear()}`\r\n : \"\"}\r\n
\r\n \r\n\r\n {t(\"addProject.budget\")}{\" \"}\r\n
\r\n \r\n\r\n {project.budget.description}\r\n
\r\n \r\n\r\n {project.projectTitle}\r\n
\r\n\r\n {/*\r\n {t(\"project.closingDate\")}{\" \"}\r\n
\r\n \r\n\r\n {project.closingDate !== null &&\r\n `${new Date(\r\n project.closingDate\r\n ).getUTCDate()}/${monthNames[\r\n new Date(\r\n project.closingDate\r\n ).getUTCMonth()\r\n ].substring(0, 3)}/${new Date(\r\n project.closingDate\r\n ).getFullYear()}` !== \"1/January/1\"\r\n ? `${new Date(\r\n project.closingDate\r\n ).getUTCDate()}/${monthNames[\r\n new Date(\r\n project.closingDate\r\n ).getUTCMonth()\r\n ].substring(0, 3)}/${new Date(\r\n project.closingDate\r\n ).getFullYear()}`\r\n : \"\"}\r\n
\r\n \r\n\r\n {t(\"addProject.budget\")}{\" \"}\r\n
\r\n \r\n\r\n {project.budget.description}\r\n
\r\n \r\n{\r\n history.push(\r\n `${path}/edit/${sections[11].sectionCode}?sectionCode=${sections[11].sectionCode}§ionContent=${sections[11].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.providers.one\")} */}\r\n {sections[11].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[12].sectionCode}?sectionCode=${sections[12].sectionCode}§ionContent=${sections[12].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.providers.two\")} */}\r\n {sections[12].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[13].sectionCode}?sectionCode=${sections[13].sectionCode}§ionContent=${sections[13].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.providers.three\")} */}\r\n {sections[13].sectionContent}\r\n
\r\n{\r\n // if (user === null) {\r\n // history.push(\r\n // `/account/login?source=fromFeaturedSP&profile=${profile.profile.userId}`\r\n // );\r\n // } else if (\r\n // user.profile.profileStatus !==\r\n // ProfileStatus.Active\r\n // ) {\r\n // e.preventDefault();\r\n // } else if (\r\n // user.profileTypeView\r\n // .profileTypeDescription ===\r\n // AccountTypes.Seeker ||\r\n // user.profileTypeView\r\n // .profileTypeDescription ===\r\n // AccountTypes.Partner\r\n // ) {\r\n // const model = {\r\n // userId: user.profile.userId,\r\n // spId: profile.profile.userId,\r\n // };\r\n // AddSpSeen(model);\r\n // } else {\r\n // ShowErrorMessage(\r\n // t(\r\n // \"searchProviders.landingPage.restriction\"\r\n // )\r\n // );\r\n // }\r\n // }}\r\n >\r\n {profile.profile.companyName}\r\n
\r\n\r\n {t(\"profile.activeSince\")}{\" \"}\r\n {profile.profile.activeSince}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[14].sectionCode}?sectionCode=${sections[14].sectionCode}§ionContent=${sections[14].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.testimonials\")} */}\r\n {sections[14].sectionContent}\r\n
\r\n{\r\n history.push(\r\n `${path}/edit/${sections[15].sectionCode}?sectionCode=${sections[15].sectionCode}§ionContent=${sections[15].sectionContent}`\r\n );\r\n }}\r\n >\r\n {/* {t(\"mainPage.featured\")} */}\r\n {sections[15].sectionContent}\r\n
\r\n\r\n {t(\"mainPage.usaid\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"mainPage.footer\")}\r\n
\r\n \r\n{t(\"testimonialAddSuccess\")}
\r\n ) : (\r\n{t(\"testimonialUpdateSuccess\")}
\r\n )}\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"editVideo.body\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{t(\"downloadVideoWarning\")}
\r\n{t(\"challenge.update.success\")}
\r\n{errorMessage}
\r\n{t(\"width.alert.body\")}
\r\n \r\n{t(\"align.alert.body\")}
\r\n \r\n{t(\"width.alert.body\")}
\r\n \r\n{t(\"align.alert.body\")}
\r\n \r\n{t(\"newsletters.update.success\")}
\r\n{errorMessage}
\r\n{t(\"width.alert.body\")}
\r\n \r\n{t(\"align.alert.body\")}
\r\n \r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"emailLog.edit.success\")}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > directLinkItemCount\r\n ? directLinkItemCount\r\n : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {directLinkItemCount}\r\n
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n\r\n {isAddMode\r\n ? t(\"newsletters.add.success\")\r\n : t(\"newsletters.update.success\")}\r\n
\r\n\r\n {t(\"newsletters.confirmation.one\")}\r\n {count}\r\n {t(\"newsletters.confirmation.two\")}\r\n
\r\n{errorMessage}
\r\n{t(\"width.alert.body\")}
\r\n \r\n{t(\"align.alert.body\")}
\r\n \r\n{errorMessage}
\r\n\r\n {t(\"newsletters.confirmation.one\")}\r\n {count}\r\n {t(\"newsletters.confirmation.two\")}\r\n
\r\n{t(\"resend.alert.body\")}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{t(\"croppingTool\")}
\r\n{t(\"previewTool\")}
\r\n{isAddMode ? t(\"addBadge.body\") : t(\"editBadge.body\")}
\r\n{errorMessage}
\r\n{t(\"croppingTool\")}
\r\n{t(\"previewTool\")}
\r\n{isAddMode ? t(\"addBadge.body\") : t(\"editBadge.body\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{errorMessage}
\r\n{t(\"confirmation.msg.badge\")}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyTitle}{\" \"}\r\n
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyDescription}{\" \"}\r\n
\r\n{question.questionText}
\r\n\r\n {\" \"}\r\n {t(\"survey.no.found\")}{\" \"}\r\n
\r\n{t(\"surveyAddSuccess\")}
\r\n ) : (\r\n{t(\"surveyUpdateSuccess\")}
\r\n )}\r\n{errorMessage}
\r\n{t(\"AddInsteadOfEdit\")}
\r\n ) : (\r\n{t(\"surveyAddSuccess\")}
\r\n )\r\n ) : bool == true ? (\r\n{t(\"AddInsteadOfEdit\")}
\r\n ) : (\r\n{t(\"surveyUpdateSuccess\")}
\r\n )}\r\n{errorMessage}
\r\n\r\n {t(\"surveyNoQuestions\")}:{\" \"}\r\n {surveyQuestionsRef.current[0].Questions.length}\r\n
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyTitle}{\" \"}\r\n
\r\n\r\n {\" \"}\r\n {surveyDetails.surveyDescription}{\" \"}\r\n
\r\n{question.questionText}
\r\n{errorMessage}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current} of {itemCount}\r\n
\r\n{t(\"surveyType.edit.success\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{isAddMode ? t(\"addPerson.body\") : t(\"editPerson.body\")}
\r\n{errorMessage}
\r\n{errorMessage}
\r\n{t(\"manuallySendSurvey.success\")}
\r\n{t(\"delete.alert.body\")}
\r\n\r\n {begin.current} -{\" \"}\r\n {end.current > itemCount ? itemCount : end.current}{\" \"}\r\n {rtl ? \"من\" : \"of\"} {itemCount}\r\n
\r\n\r\n {t(\"landingpage.ourteam\")}\r\n
\r\n\r\n {item.firstName} {item.lastName}\r\n
\r\n\r\n {item.typeId}\r\n
\r\n\r\n {item.firstName} {item.lastName}\r\n
\r\n\r\n {item.typeId}\r\n
\r\n\r\n {t(\"mainPage.usaid\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"mainPage.footer\")}\r\n
\r\n \r\n\r\n {t(\"navbar.contactUs\")}\r\n
\r\n\r\n {t(\"contactUs.inquiries.one\")}\r\n
\r\n {/*\r\n {t(\"contactUs.inquiries.two\")}\r\n
\r\n\r\n {t(\"contactUs.inquiries.three\")}\r\n
*/}\r\n\r\n {t(\"mainPage.usaid\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"mainPage.footer\")}\r\n
\r\n \r\n\r\n {t(\"mainPage.usaid\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"mainPage.footer\")}\r\n
\r\n \r\n\r\n {t(\"mainPage.usaid\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"followUs\")}\r\n
\r\n\r\n {t(\"mainPage.footer\")}\r\n
\r\n \r\n{t(\"session.messageAlert\")}
\r\n