import _ from "lodash";
import useTranslation from "next-translate/useTranslation";
import { formatDates, updateLinks } from "../../../utils";
let RepLPAQuestionnaireCheck_enforcement = (props) => {
let { t } = useTranslation();
const {
formObj,
currentView,
setSubmitBack,
showQuestionnaireSection,
setShowQuestionnaireSection,
setRepresentationSubmit,
questionnaireCount,
} = props;
let repFormData = formObj.representationForm.values;
repFormData = updateLinks(repFormData);
return (
<>
{/* Section 1 Appeal procedure and site visit */}
<>
{t("myrepresentations:enf-section-heading-one")}
<>
{(repFormData.procedureType == "Hearing" ||
repFormData.procedureType == "Inquiry") && (
)}
>
<>
>
<>
{repFormData.enterNeighbouringLandToViewSite == "Yes" && (
)}
>
<>
{repFormData.enterNeighbouringLandAccessRequired != "Yes" &&
repFormData.enforcementNoticePlan != null && (
)}
>
<>
{repFormData.healthAndSafetyIssues == "Yes" && (
)}
>
<>
>
>
{/* Section 2 Deemed Application Fee */}
<>
{t("myrepresentations:enf-section-heading-two")}
<>
>
<>
{repFormData.feeExempt == "Yes" && (
)}
>
>
{/* Section 3 Planning History and Current Status */}
<>
{t("myrepresentations:enf-section-heading-three")}
<>
{repFormData.previousGrantedCerts == "Yes" && (
)}
>
<>
{repFormData.stopNoticeServed == "Yes" && (
)}
>
<>
{repFormData.relatedCases == "Yes" && (
)}
>
<>
{repFormData.previousEnforcement == "Yes" && (
)}
>
<>
{repFormData.subjectArticle4 == "Yes" && (
)}
>
<>
{repFormData.previousPDRRestriction == "Yes" && (
)}
>
>
{/* Section 4 Supporting Documents */}
<>
{t("myrepresentations:enf-section-heading-four")}
<>
>
<>
>
<>
>
>
{/* Section 5 */}
<>
{t("myrepresentations:enf-section-heading-five")}
<>
>
<>
{repFormData.ROW == "Yes" && (
)}
>
<>
{repFormData.conservationArea == "Yes" && (
)}
>
<>
{repFormData.affectListedBuilding == "Yes" && (
)}
>
<>
{repFormData.TPO == "Yes" && (
)}
>
<>
{repFormData.natureConservationSite == "Yes" && (
)}
>
<>
{repFormData.protectedSpecies == "Yes" && (
)}
>
<>
>
<>
{repFormData.floodingIssue == "Yes" && (
)}
>
<>
{repFormData.governmentDepartmentComments == "Yes" && (
)}
>
>
{/* Section 6 */}
<>
{t("myrepresentations:enf-section-heading-six")}
<>
32. {t("myrepresentations:enf-section-question-31")}
{repFormData.developmentNotBeginLaterThanFiveYears}
>
<>
{repFormData.developmentCarriedOutInAccordance == "Yes" && (
)}
>
<>
>
<>
{repFormData.developmentNotTakePlaceBroadband == "Yes" && (
)}
>
<>
{repFormData.developmentAnyOtherConditions == "Yes" && (
)}
>
>
{/* Section 7 Before sending, have you attached or provided a web link to: */}
{t("myrepresentations:s78-section-heading-five-sub")}
<>
{repFormData.copyOfEnforcementNotice == "No" && (
)}
>
<>
{repFormData.enforcementNoticePlan != "Yes" &&
repFormData.enforcementNoticePlan != null && (
)}
>
<>
{repFormData.listOfNotifiedOfEnforcement != "Yes" &&
repFormData.enforcementNoticePlan != null && (
)}
>
<>
{repFormData.copyOfLetterOfAppealNotification == "No" && (
)}
>
<>
{repFormData.lpaEIAOS == "No" && (
)}
>
<>
{repFormData.detailsOfOtherAppeals == "Yes" && (
)}
>
<>
{repFormData.detailsOfPreviousAppeals == "Yes" && (
)}
>
<>
{repFormData.otherRelevantInformation == "Yes" && (
)}
>
{/* Section 9 Declaration */}
<>
{t("myrepresentations:enf-section-heading-eight")}
<>
>
<>
>
<>
>
>
>
);
};
export default RepLPAQuestionnaireCheck_enforcement;