import _ from "lodash";
import Link from "next/link";
import { useRouter } from "next/router";
import useTranslation from "next-translate/useTranslation";
import { formatDates } from "../../../utils";
let RepLPAQuestionnaireCheck_enforcement = (props) => {
let { t } = useTranslation();
const { formObj, currentView, setSubmitBack } = props;
const repFormData = formObj.representationForm.values;
return (
<>
{_.has(repFormData, "procedureType") && (
<>
{repFormData.representationOnBehalfOf == "Yes" && (
)}
>
)}
{_.has(repFormData, "enterToView") && (
<>
>
)}
{_.has(repFormData, "enterNeighbouringLandToViewSite") && (
<>
{repFormData.enterNeighbouringLandToViewSite == "Yes" && (
)}
>
)}
{_.has(repFormData, "enterNeighbouringLandAccessRequired") && (
<>
{repFormData.enterNeighbouringLandAccessRequired ==
"Yes" && (
)}
>
)}
{_.has(repFormData, "healthAndSafetyIssues") && (
<>
{repFormData.healthAndSafetyIssues == "Yes" && (
)}
>
)}
{_.has(repFormData, "LPAcontactDetails") && (
<>
>
)}
{_.has(repFormData, "LPAcaseFileAndReps") && (
<>
>
)}
{_.has(repFormData, "LPAldpAndMap") && (
<>
>
)}
{_.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") && (
<>
24d. No development shall take place until a scheme
to enable the provision of gigabit capable broadband
infrastructure from the site boundary to the
dwellings/buildings hereby permitted has been
submitted to and agreed in writing by the local
planning authority. Development shall be carried out
in accordance with the approved details. Reason: To
support the roll-out of digital communications
infrastructure across Wales in accordance with
Policy 13 of Future Wales.
{repFormData.developmentNotTakePlaceBroadband}
{
setSubmitBack();
}}
>
{t("newappeal:change-link-label")}
{" "}
{/* {FieldsTranslations(
rows[0].value
)} */}
{repFormData.developmentNotTakePlaceBroadband == "Yes" && (
)}
>
)}
{_.has(repFormData, "developmentAnyOtherConditions") && (
<>
{repFormData.developmentAnyOtherConditions == "Yes" && (
)}
>
)}
{_.has(repFormData, "copyOfApplicantsCertificate") && (
<>
{repFormData.copyOfApplicantsCertificate == "Yes" && (
)}
>
)}
{_.has(repFormData, "advertismentGiven") && (
<>
{repFormData.advertismentGiven == "Yes" && (
)}
>
)}
{_.has(repFormData, "copyOfLetterOfAppealNotification") && (
<>
{repFormData.copyOfLetterOfAppealNotification == "Yes" && (
)}
>
)}
{_.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_enforcement;