import _ from "lodash";
import useTranslation from "next-translate/useTranslation";
import { formatDates, updateLinks } from "../../../utils";
let RepLPAQuestionnaireCheck_s78 = (props) => {
let { t } = useTranslation();
const {
formObj,
currentView,
setSubmitBack,
showQuestionnaireSection,
setShowQuestionnaireSection,
setRepresentationSubmit,
questionnaireCount,
} = props;
let repFormData = formObj.representationForm.values;
repFormData = updateLinks(repFormData);
return (
<>
{showQuestionnaireSection}
{_.has(repFormData, "procedureType") && (
<>
{repFormData.representationOnBehalfOf == "Yes" && (
)}
>
)}
{_.has(repFormData, "enterToView") && (
<>
>
)}
{_.has(repFormData, "enterNeighbouringLandToViewSite") && (
<>
{repFormData.enterNeighbouringLandToViewSite == "Yes" && (
)}
>
)}
{_.has(repFormData, "enterNeighbouringLandAccessRequired") && (
<>
{repFormData.enterNeighbouringLandAccessRequired ==
"No" && (
)}
>
)}
{_.has(repFormData, "healthAndSafetyIssues") && (
<>
{repFormData.healthAndSafetyIssues == "Yes" && (
)}
>
)}
<>
>
<>
>
<>
>
<>
>
{_.has(repFormData, "LPAintentionToSubmitFullStatement") && (
<>
>
)}
{_.has(repFormData, "AONB") && (
<>
>
)}
{_.has(repFormData, "ROW") && (
<>
{repFormData.ROW == "Yes" && (
)}
>
)}
{_.has(repFormData, "conservationArea") && (
<>
{repFormData.conservationArea == "Yes" && (
)}
>
)}
{_.has(repFormData, "affectListedBuilding") && (
<>
{repFormData.affectListedBuilding == "Yes" && (
)}
>
)}
{_.has(repFormData, "TPO") && (
<>
{repFormData.TPO == "Yes" && (
)}
>
)}
{_.has(repFormData, "natureConservationSite") && (
<>
{repFormData.natureConservationSite == "Yes" && (
)}
>
)}
{_.has(repFormData, "protectedSpecies") && (
<>
{repFormData.protectedSpecies == "Yes" && (
)}
>
)}
{_.has(repFormData, "gypsyTravellerInvolvment") && (
<>
>
)}
{_.has(repFormData, "governmentDepartmentComments") && (
<>
{repFormData.governmentDepartmentComments == "Yes" && (
)}
>
)}
{_.has(repFormData, "developmentNotBeginLaterThanFiveYears") && (
<>
>
)}
{_.has(repFormData, "developmentCarriedOutInAccordance") && (
<>
{repFormData.developmentCarriedOutInAccordance == "Yes" && (
)}
>
)}
{_.has(repFormData, "developmentNotTakePlaceBiodiversity") && (
<>
>
)}
{_.has(repFormData, "developmentNotTakePlaceBroadband") && (
<>
{repFormData.developmentNotTakePlaceBroadband == "Yes" && (
)}
>
)}
{_.has(repFormData, "developmentAnyOtherConditions") && (
<>
{repFormData.developmentAnyOtherConditions == "Yes" && (
)}
>
)}
{_.has(repFormData, "copyOfApplicantsCertificate") && (
<>
{repFormData.copyOfApplicantsCertificate == "No" && (
)}
>
)}
{_.has(repFormData, "advertismentGiven") && (
<>
{repFormData.advertismentGiven == "No" && (
)}
>
)}
{_.has(repFormData, "copyOfLetterOfAppealNotification") && (
<>
{repFormData.copyOfLetterOfAppealNotification == "No" && (
)}
>
)}
{_.has(repFormData, "lpaEIAOS") && (
<>
{repFormData.lpaEIAOS == "Yes" && (
)}
>
)}
{_.has(repFormData, "advertismentConsentDiscontinuanceNotice") && (
<>
{repFormData.lpaEIAOS == "Yes" && (
)}
>
)}
{_.has(repFormData, "detailsOfOtherAppeals") && (
<>
{repFormData.detailsOfOtherAppeals == "Yes" && (
)}
>
)}
{_.has(repFormData, "detailsOfPreviousAppeals") && (
<>
{repFormData.detailsOfPreviousAppeals == "Yes" && (
)}
>
)}
{_.has(repFormData, "otherRelevantInformation") && (
<>
{repFormData.otherRelevantInformation == "Yes" && (
)}
>
)}
{_.has(repFormData, "signedDate") && (
<>
>
)}
{_.has(repFormData, "caseOfficer") && (
<>
>
)}
{_.has(repFormData, "onBehalfOfLPA") && (
<>
>
)}
>
);
};
export default RepLPAQuestionnaireCheck_s78;