PageSourceSearch

https://bridgeinagric.com/_next/static/chunks/pages/training/portal/grant/review-details-406a5197ba98aff6.js

js bridgeinagric.com collected 2026-10-04 22:54:18 UTC 70,715 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[674],{48974:function(e,a,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/training/portal/grant/review-details",function(){return r(32661)}])},67214:function(e,a,r){"use strict";r.d(a,{o:function(){return l}});var s=r(85893);let l=e=>{let{title:a,value:r}=e;return(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" border px-3 py-2 rounded",children:[(0,s.jsx)("p",{className:"text-muted mb-1 pb-2",children:a}),(0,s.jsx)("span",{className:"fs-6 badge rounded-1 py-2 px-3 bg-dark-subtle bg-opacity-25 text-black text-capitalize",children:r})]})})}},25568:function(e,a,r){"use strict";var s=r(85893),l=r(67294),t=r(82175),n=r(93476),i=r(8193),o=r(62879);a.Z=e=>{let{name:a,classes:r="",getImgUrl:d,imgUrl:c,required:m,handleClearImage:u,onBlur:h}=e,[,p]=(0,t.U$)({name:a}),[x,b]=(0,l.useState)(!1),[f,N]=(0,l.useState)(null),[g,v]=(0,l.useState)(null),[j,w]=(0,l.useState)(!1),y=(0,l.useId)(),S=async e=>{var a,r;N(null);let s=null===(a=e.target.files)||void 0===a?void 0:a[0];if(s){if(s.size>10485760){N("Error: File size exceeds 10MB limit.");return}b(!0),v(0);try{let e=await M(s);d(e)}catch(a){console.log(a,"file");let e=null==a?void 0:a.message;N((null==e?void 0:null===(r=e.apierror)||void 0===r?void 0:r.message)||e.message)}finally{b(!1),v(null),e.target.value="",e.target.disabled=!1}}},M=async e=>{let a=new FormData;a.append("file",e),a.append("clientService","LOAN_REQUEST"),N("");try{var r,s,l,t;n.h.defaults.timeout=0;let e=await n.h.post("/documents/upload",a,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:e=>{let a=Math.round(100*e.loaded/e.total);v(a)}});(null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.apierror)&&N(null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(s=l.apierror)||void 0===s?void 0:s.message);let i=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.documentKey;return i}catch(e){throw e}},F=async()=>{try{w(!0);let e=await n.h.delete("/documents/delete?documentKey=".concat(c));u(),(null==e?void 0:e.status)==204||N("There was an error deleting the image"),w(!1)}catch(e){u(),w(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"custom-file-upload w-100 ".concat(f?"has-error":""),children:[(0,s.jsxs)("span",{className:"form-control upload-control d-flex justify-content-between align-items-center w-100",children:[(0,s.jsxs)("label",{htmlFor:y,className:"d-flex align-items-center ps-0 w-100 cursor-pointer pe-0 ".concat(r),children:[(0,s.jsx)("span",{className:"me-2",children:(0,s.jsx)(i.IEK,{className:"uploadtext-placeholder",size:22})}),c?(0,s.jsx)("span",{className:"truncate-text mt-1",children:c}):(0,s.jsx)("span",{className:"fs-8 uploadtext-placeholder mt-1",children:"Upload"})]}),c&&(0,s.jsx)(o.Z,{handleDeleteImage:F,deleteLoading:j})]}),(0,s.jsx)("input",{type:"file",name:a,id:y,accept:".pdf, .jpeg, .jpg, .xlsx, .xls, .csv",onChange:S,style:{display:"none"},disabled:x,required:m,onBlur:h}),x&&null!==g&&(0,s.jsx)("div",{className:"progress progress-custom-height",children:(0,s.jsxs)("div",{className:"progress-bar progress-bar-striped progress-bar-animated bg-success",role:"progressbar","aria-valuenow":g,"aria-valuemin":0,"aria-valuemax":100,style:{width:"".concat(g,"%")},children:[g.toFixed(2),"%"]})}),f&&(0,s.jsx)("p",{className:"text-danger fs-9",children:f}),(0,s.jsx)(t.Bc,{name:a,component:"div",className:"text-danger fs-9"})]}),(0,s.jsxs)("p",{className:"text-muted fs-9 d-flex justify-content-between pt-2",children:[(0,s.jsx)("span",{className:"pe-2",children:"Max. file size is 10MB"}),(0,s.jsx)("span",{className:"",children:"Only PDF, JPEG, Spreadsheet"})]})]})}},53361:function(e,a,r){"use strict";r.d(a,{a8:function(){return s},br:function(){return t},hI:function(){return o},pn:function(){return l},st:function(){return i},xW:function(){return n}});let s=["Limited Liability","Sole Proprietorship","Partnership"],l=["Primary agriculture","Agro-processing","Agribusiness (Agro chemicals, Farm machinery, marketing","Wholesale & Retail Trade, Logistics","Other"],t=["To enhance my skills","To acquire skills to gain employment","To be trained to start a new business","Network and connect with business","Just becuase the training is free","Other"],n=["The training session was too short","The curriculum and content were not relevant","The trainer did not explain the content well","I did not understand the language used for training","There were technical challenges (for online participants)","There was limited-post training support.","Other"],i=["Purchase an asset for the business","Fund an existing order","Cover day-to-day expenses","Other"],o=["Increase in output","Increase in revenue","Employ more staff","Sustain jobs for current staff","Do not anticipate any impact","Other"]},92265:function(e,a,r){"use strict";r.r(a);var s=r(85893),l=r(48911),t=r(17140),n=r(81754),i=r(55677),o=r(63597),d=r(21037),c=r(33309),m=r(67294),u=r(88767);function h(e){var a,r,h,p;let{children:x}=e,{applicantData:b,doLogout:f}=(0,n.U)(),[,N]=(0,m.useState)(0),[,g]=(0,m.useState)(!1),v=(0,u.useQuery)({queryKey:["trainingProviders",null==b?void 0:b.providerId],queryFn:e=>{let{queryKey:a}=e;return c.Z.getProvider(null==b?void 0:b.providerId)},onSuccess:(e,a)=>{(null==e?void 0:e.id)&&sessionStorage.setItem("trainingProvider",JSON.stringify(e))},refetchOnMount:"always",enabled:!!(null==b?void 0:b.providerId)});return(0,s.jsx)(l.Z,{children:(0,s.jsxs)(i.Z.Provider,{value:{provider:v.data,course:null===(r=v.data)||void 0===r?void 0:null===(a=r.course)||void 0===a?void 0:a.find(e=>(null==e?void 0:e.id)===(null==b?void 0:b.courseId)),facilitators:null===(p=v.data)||void 0===p?void 0:null===(h=p.facilitators)||void 0===h?void 0:h.filter(e=>{var a;return null==e?void 0:null===(a=e.courseIds)||void 0===a?void 0:a.includes(null==b?void 0:b.courseId)})},children:[(0,s.jsxs)("div",{className:"full-main d-flex flex-column",children:[(0,s.jsx)(t.Z,{}),(0,s.jsx)("div",{className:"flex-fill d-flex align-items-stretch w-100 p-3",children:(0,s.jsx)("div",{className:"container",children:x})})]}),(0,s.jsx)(o.Z,{onEditProfile:()=>g(!0)}),(0,s.jsx)(d.Z,{onManageAccount:()=>N(3),onLogout:f})]})})}a.default=h,h.provider=n.c},32661:function(e,a,r){"use strict";r.r(a),r.d(a,{default:function(){return U}});var s=r(85893),l=r(81754),t=r(67214),n=r(25568),i=r(11163),o=r(8369),d=r(60766),c=function(e){let{isOpen:a,onClose:r}=e,l=(0,i.useRouter)(),t=()=>{r(),l.push("/training/portal/grant")};return(0,s.jsx)(o.Z,{isOpen:a,toggle:t,size:"md",centered:!0,contentClassName:"rounded-4 overflow-hidden ",children:(0,s.jsxs)(d.Z,{className:"bg-white rounded-4 p-3 border border-2 border-tertiary position-relative ",children:[(0,s.jsx)("div",{onClick:t,className:"position-absolute",style:{right:"10px",cursor:"pointer"},children:(0,s.jsx)("img",{src:"/img/Group 72.png",alt:""})}),(0,s.jsxs)("div",{className:" text-center text-black py-5 px-4",children:[(0,s.jsx)("img",{src:"/img/Group 3.svg",alt:"",width:80}),(0,s.jsx)("p",{className:"text-tertiary fs-3 fw-bold font-montserrat pt-3 mb-0",children:"Grant application submitted"})]})]})})},m=r(55587),u=r(44122),h=r(36205),p=r(74108),x=r(31194),b=r(81691),f=r(80777),N=r(30471),g=r(97283),v=r(8260),j=r(82175),w=r(25675),y=r.n(w),S=r(67294),M=r(57333),F=r(88767),O=r(16310),A=r(53361);let D=e=>{let{name:a}=e;return(0,s.jsx)(j.Bc,{name:a,component:"div",className:"fs-9 text-danger"})},I=e=>{var a,r,l,i,o,d,c,m,b,w;let{applicantData:y,trainee:F}=e,{validateField:O,setFieldValue:I,values:E}=(0,j.u6)(),{minDate:R,maxDate:k}=(0,p.MU)(),C=Object.keys(u),[U]=(0,f.X)({key:"personnel-roles"}),[,W]=(0,f.X)({key:"grant-financial-values"}),[Y,q]=(0,f.X)({key:"grant-form-values"});(0,S.useEffect)(()=>{(null==E?void 0:E.month1Revenue)&&W(E)},[I,W,E]);let P=(e,a)=>{E[a]=e,O(a),W({...E,[a]:e})}
1,Z=e=>{I(e,null)},J=e=>{O(e)},[L]=(0,f.X)({key:"trainingProvider"}),[H,G]=(0,S.useState)(!1),[K,_]=(0,S.useState)(Array.isArray(null==E?void 0:E.fundsUsed)?E.fundsUsed:[]),[z,X]=(0,S.useState)(null),[V,Q]=(0,S.useState)(void 0);(0,S.useEffect)(()=>{Array.isArray(null==E?void 0:E.fundsUsed)&&_(E.fundsUsed)},[null==E?void 0:E.fundsUsed]);let[$,ee]=(0,S.useState)(!1);return(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("div",{className:"p-4 p-lg-5",children:(0,s.jsxs)("div",{className:"row g-3",children:[(0,s.jsx)(t.o,{title:"Name of applicant",value:null==y?void 0:y.fullName}),(0,s.jsx)(t.o,{title:"Course",value:null==F?void 0:null===(a=F.currentCourse)||void 0===a?void 0:a.title}),(0,s.jsx)(t.o,{title:"Student ID",value:null==F?void 0:F.studentId}),(0,s.jsx)(t.o,{title:"Graduation date",value:(0,v.Z)(new Date(null==F?void 0:null===(r=F.currentCourse)||void 0===r?void 0:r.courseCompletionDate),"dd MMM yyyy")}),(0,s.jsx)(t.o,{title:"Date of birth",value:(0,v.Z)(new Date(null==y?void 0:null===(l=y.personalInfo)||void 0===l?void 0:l.dateOfBirth),"dd MMM yyyy")}),(0,s.jsx)(t.o,{title:"BDS provider",value:null==L?void 0:L.name}),(0,s.jsx)("div",{className:"col-sm-6 mb-4 px-4 px-lg-5"})]})}),(0,s.jsx)("h5",{className:"fw-bold border-bottom pb-4 px-4 px-lg-5",children:"Company Identification Details"}),(0,s.jsx)("div",{className:"p-4 p-lg-5",children:(0,s.jsxs)("div",{className:"row g-3",children:[(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"registeredBusinessName",children:"Registered Business Name"}),(0,s.jsx)(j.gN,{className:"form-control w-50 fs-5",type:"text",name:"registeredBusinessName",placeholder:"Enter name",onChange:e=>{let a=e.target.value;q(e=>({...e,registeredBusinessName:a}))},onBlur:()=>J("registeredBusinessName")}),(0,s.jsx)(D,{name:"registeredBusinessName"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"ownershipStructure",children:"Ownership Structure"}),(0,s.jsxs)(j.gN,{as:"select",className:"form-select w-50",name:"ownershipStructure",onBlur:()=>J("ownershipStructure"),onChange:e=>{let a=e.target.value;q(e=>({...e,ownershipStructure:a}))},children:[(0,s.jsx)("option",{value:"",children:"Select"}),null===(i=A.a8)||void 0===i?void 0:i.map(e=>(0,s.jsx)("option",{value:null==e?void 0:e.split(" ").join("_").toLocaleUpperCase(),className:"textCapitalize",children:e},e))]}),(0,s.jsx)(D,{name:"ownershipStructure"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-4 text-muted fs-6",htmlFor:"applicantLegalOwnerOfBusiness",children:"Are you the legal owner of the business being used in this application?"}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"applicantLegalOwnerOfBusiness",onChange:e=>{let a=e.target.value;q(e=>({...e,applicantLegalOwnerOfBusiness:a}))},id:"inlineRadio1",value:"true"}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio1",children:"Yes"})]}),(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"applicantLegalOwnerOfBusiness",id:"inlineRadio2",value:"false",onClick:()=>ee(!0)}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"No"})]})]}),(0,s.jsx)(D,{name:"applicantLegalOwnerOfBusiness"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-4 text-muted fs-6",htmlFor:"wasBusinessRegisteredAfterTraining",children:"Did you register the company after completing the training?"}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"wasBusinessRegisteredAfterTraining",onCh
1ange:e=>{let a=e.target.value;q(e=>({...e,wasBusinessRegisteredAfterTraining:a}))},id:"inlineRadio1",value:"true"}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio1",children:"Yes"})]}),(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"wasBusinessRegisteredAfterTraining",id:"inlineRadio2",onChange:e=>{let a=e.target.value;q(e=>({...e,wasBusinessRegisteredAfterTraining:a}))},value:"false"}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"No"})]})]}),(0,s.jsx)(D,{name:"wasBusinessRegisteredAfterTraining"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"companyTIN",children:"Company TIN"}),(0,s.jsx)(j.gN,{className:"form-control w-50",name:"companyTIN",placeholder:"E.g P00033809474 or C00619365023",minLength:"11",maxLength:"11",onChange:e=>{let a=e.target.value;q(e=>({...e,companyTIN:a}))},onBlur:()=>J("companyTIN")}),(0,s.jsx)(D,{name:"companyTIN"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"registrationNumber",children:"Company Registration Number"}),(0,s.jsx)(j.gN,{className:"form-control w-50",type:"text",name:"registrationNumber",placeholder:"E.g BN453050622  or CS100390722",minLength:"11",onChange:e=>{let a=e.target.value;q(e=>({...e,registrationNumber:a}))},maxLength:"11",onBlur:()=>J("registrationNumber")}),(0,s.jsx)(D,{name:"registrationNumber"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"industrySectorLvl1",children:"Which category does your business fit into"}),(0,s.jsxs)(j.gN,{as:"select",className:"form-select w-50",name:"industrySectorLvl1",onBlur:()=>J("industrySectorLvl1"),onChange:e=>{let a=e.target.value;q(e=>({...e,industrySectorLvl1:a}))},children:[(0,s.jsx)("option",{value:"",children:"Select"}),null===(o=A.pn)||void 0===o?void 0:o.map(e=>(0,s.jsx)("option",{value:e,className:"textCapitalize",children:e},e))]}),(0,s.jsx)(D,{name:"industrySectorLvl1"})]})}),"Other"===E.industrySectorLvl1&&(0,s.jsx)("div",{className:"col-sm-6 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label  mb-3 text-muted fs-6",htmlFor:"otherIndustrySectorLvl1",children:"Other, please specify"}),(0,s.jsx)(j.gN,{className:"form-control",name:"otherIndustrySectorLvl1",placeholder:"Enter Text",as:"textarea",onBlur:()=>J("otherIndustrySectorLvl1")}),(0,s.jsx)(D,{name:"otherIndustrySectorLvl1"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label  mb-3 text-muted fs-6",htmlFor:"registrationDate",children:"Business Registration Date"}),(0,s.jsx)(j.gN,{className:"form-control w-50",type:"date",name:"registrationDate",placeholder:"Enter date",onChange:e=>{let a=e.target.value;q(e=>({...e,registrationDate:a}))},max:k,min:R,onBlur:()=>J("registrationDate")}),(0,s.jsx)(D,{name:"registrationDate"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"certOfIncorporationUrl",children:"Upload Certification of Incorporation"}),(0,s.jsx)(n.Z,{name:"certOfIncorporationUrl",getImgUrl:e=>{q(a=>({...a,certOfIncorporationUrl:e}))},imgUrl:null==Y?void 0:Y.certOfIncorporationUrl,handleClearImage:()=>{q(e=>({...e,certOfIncorporationUrl:""}))},onBlur:()=>J("certOfIncorporationUrl")})]})}),(0,s.jsx)("div",{className:"col-md-6 mb-3 px-4",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"currentOpAddressRegion",children:"Business Address"}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsxs)("div",{className:"col-md-4 mb-3",children:[(0,s.jsx)("label",{className:"form-label",htmlFor:"currentOpAddressRegion",children:"Region"}),(0,s.jsxs)(j.gN,{as:"select",className:"form-select",name:"currentOpAddressRegion",onBlur:()=>J("currentOpAddressRegion"),onChange:e=>{let a=e.target.value;q(e=>({...e,currentOpAddressRegion:a,currentOpAddressMMDA:""}))},children:[(0,s.jsx)("option",{value:"",children:"Select"}),null==C?void 0:C.map(e=>(0,s.jsx)("option",{value:e,children:e},e))]}),(0,s.jsx)(D,{name:"currentOpAddressRegion"})]}),(0,s.jsxs)("div",{className:"col-md-4 mb-3",children:[(0,s.jsx)("label",{className:"form-label",htmlFor:"currentOpAddressMMDA",children:"District/MMDA"}),(0,s.jsxs)(j.gN,{as:"select",className:"form-select",name:"currentOpAddressMMDA",onBlur:()=>J("currentOpAddressMMDA"),onChange:e=>{let a=e.target.value;q(e=>({...e,currentOpAddressMMDA:a}))},children:[(0,s.jsx)("option",{value:"",children:"Select"}
1),(null==E?void 0:E.currentOpAddressRegion)&&(null===(d=u[E.currentOpAddressRegion])||void 0===d?void 0:d.map(e=>(0,s.jsx)("option",{value:e,children:e},e)))]}),(0,s.jsx)(D,{name:"currentOpAddressMMDA"})]}),(0,s.jsxs)("div",{className:"col-md-4 mb-3",children:[(0,s.jsx)("label",{className:"form-label",htmlFor:"currentOpAddress",children:"Town"}),(0,s.jsx)(j.gN,{className:"form-control",name:"currentOpAddress",placeholder:"Enter address",onBlur:()=>J("currentOpAddress")}),(0,s.jsx)(D,{name:"currentOpAddress"})]})]})]})}),((null==E?void 0:E.ownershipStructure)==="SOLE_PROPRIETORSHIP"||(null==E?void 0:E.ownershipStructure)==="PARTNERSHIP")&&(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"formAUrl",children:"Upload form A (For sole proprietorships and partnerships)"}),(0,s.jsx)(n.Z,{name:"formAUrl",getImgUrl:e=>{q(a=>({...a,formAUrl:e}))},imgUrl:null==Y?void 0:Y.formAUrl,handleClearImage:()=>{q(e=>({...e,formAUrl:""}))},onBlur:()=>J("formAUrl")})]})}),(null==E?void 0:E.ownershipStructure)==="LIMITED_LIABILITY"&&(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"form3Url",children:"Upload form 3 (For limited liability company)"}),(0,s.jsx)(n.Z,{name:"form3Url",getImgUrl:e=>{q(a=>({...a,form3Url:e}))},imgUrl:null==Y?void 0:Y.form3Url,handleClearImage:()=>{q(e=>({...e,form3Url:""}))},onBlur:()=>J("form3Url")}),(0,s.jsx)(D,{name:"form3Url"})]})}),(0,s.jsxs)("div",{className:"col-md-6 mb-3 px-4",children:[(0,s.jsx)("label",{className:"form-label",htmlFor:"wasBusinessRegisteredAfterTraining",children:"What are the main products and/or services offered by your business? (Max of 150 words)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"mainProductsOffered",placeholder:"Max 150 words",as:"textarea",onBlur:()=>J("mainProductsOffered")}),(0,s.jsx)(D,{name:"mainProductsOffered"})]}),(0,s.jsxs)("div",{className:"col-md-6 mb-3 px-4",children:[(0,s.jsx)("label",{className:"form-label",htmlFor:"significantAchievements",children:"What significant milestones or achievements has your business accomplished since its inception? (Max of 150 words)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"significantAchievements",placeholder:"Max 150 words",as:"textarea",onBlur:()=>J("significantAchievements")}),(0,s.jsx)(D,{name:"significantAchievements"})]})]})}),(0,s.jsx)("h5",{className:"fw-bold border-bottom pb-4 px-4 px-lg-5",children:"Financial Details"}),(0,s.jsx)("div",{className:"p-4 p-lg-5",children:(0,s.jsx)("div",{className:"row g-3",children:(0,s.jsxs)("div",{className:"col-sm-8 mb-3 px-4 px-lg-5",children:[(0,s.jsx)("p",{className:"form-label mb-3 text-muted fs-6",children:"What is your revenue for the past 3 months?"}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-md-4 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"month1Revenue",children:"Month 1"}),(0,s.jsxs)("div",{className:"d-flex align-items-center border ps-3 rounded-2",children:[(0,s.jsxs)("span",{className:"fs-8 mb-0 text-muted d-flex align-items-center",children:[(0,s.jsx)("span",{className:"me-1",children:"GHS"}),(0,s.jsx)("span",{children:"|"})]}),(0,s.jsx)("span",{children:(0,s.jsx)(j.gN,{name:"month1Revenue",component:h.Z,placeholder:"Enter amount here"})})]}),(0,s.jsx)(D,{name:"month1Revenue"})]})}),(0,s.jsx)("div",{className:"col-md-4 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label fw-semibold",htmlFor:"month2Revenue",children:"Month 2"}),(0,s.jsxs)("div",{className:"d-flex align-items-center border ps-3 rounded-2",children:[(0,s.jsxs)("span",{className:"fs-8 mb-0 text-muted d-flex align-items-center",children:[(0,s.jsx)("span",{className:"me-1",children:"GHS"}),(0,s.jsx)("span",{children:"|"})]}),(0,s.jsx)("span",{children:(0,s.jsx)(j.gN,{name:"month2Revenue",component:h.Z,placeholder:"Enter amount here"})})]}),(0,s.jsx)(D,{name:"month2Revenue"})]})}),(0,s.jsx)("div",{className:"col-md-4 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label fw-semibold",htmlFor:"month3Revenue",children:"Month 3"}),(0,s.jsxs)("div",{className:"d-flex align-items-center border ps-3 rounded-2",children:[(0,s.jsxs)("span",{className:"fs-8 mb-0 text-muted d-flex align-items-center",children:[(0,s.jsx)("span",{className:"me-1",children:"GHS"}),(0,s.jsx)("span",{children:"|"})]}),(0,s.jsx)("span",{children:(0,s.jsx)(j.gN,{name:"month3Revenue",component:h.Z,placeholder:"Enter amount here"})})]}),(0,s.jsx)(D,{name:"month3Revenue"})]})})]})]})})}),(0,s.jsx)("h5",{className:"fw-bold border-bottom pb-4 px-4 px-lg-5",children:"Impact of the training"}),(0,s.jsx)("div",{className:"p-4 p-lg-5",children:(0,s.jsxs)("div",{className:"row g-3",children:[(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"reasonForTraining",children:"Why did you want to get training under the BRIDGE-in Agriculture program? (Select all that apply)"}),(0,s.jsx)(x.NU,{data:A.br,clearable:!0,value:E.reasonForTraining,name:"reasonForTraining",searchable:!0,onBlur:()=>J("reasonForTraining"),onChange:e=>I("reasonForTraining",e)}),(0,s.jsx)(D,{name:"reasonForTraining"})]})}),(null===(c=E.reasonForTraining)||void 0===c?void 0:c.includes("Other"))&&(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"otherReasonForTraining",children:"Other, Please Specify"}),(0,s.jsx)(j.gN,{className:"form-control",name:"otherReasonForTraining",placeholder:"Max 50 words",as:"textarea",onBlur:()=>J("otherReasonForTraining")}),(0,s.jsx)(D,{name:"otherReasonForTraining"})]})}),(0,s.jsx)("div",{className:"col-sm-6 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-4 text-muted fs-6",htmlFor:"wasTrainingHelpful",children:"Was the training helpful?"}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"wasTrainingHelpful",id:"inlineRadio1",value:"true"}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio1",children:"Yes"})]}),(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"wasTrainingHelpful",id:"inlineRadio2",value:"false"}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"No"})]})]}),(0,s.jsx)(D,{name:"wasTrainingHelpful"})]})}),"false"===E.wasTrainingHelpful&&(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:"px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"reasonNotHelpful",children:"Why did you not find it helpful? (Please select all that apply)"}),(0,s.jsx)(x.NU,{data:A.xW,clearable:!0,value:E.reasonNotHelpful,name:"reasonNotHelpful",searchable:!0,onBlur:()=>J("reasonNotHelpful"),onChange:e=>I("reasonNotHelpful",e)}),(0,s.jsx)(D,{name:"reasonNotHelpful"})]})}),(null===(m=E.reasonNotHelpful)||void 0===m?void 0:m.includes("Other"))&&(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:"px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"otherReasonNotHelpful",children:"Other, please specify (Max of 30 words)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"otherReasonNotHelpful",placeholder:"Max 50 words",as:"textarea",onBlur:()=>J("otherReasonNotHelpful")}),(0,s.jsx)(D,{name:"otherReasonNotHelpful"})]})})]})}),(0,s.jsx)("h5",{className:"fw-bold border-bottom pb-4 px-4 px-lg-5",children:"Anticipated Impact of the Grant"}),(0,s.jsx)("div",{className:"p-4 p-lg-5",children:(0,s.jsxs)("div",{className:"row g-3",children:[(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-4 text-muted fs-6",htmlFor:"purpose",children:"What is the intended use/purpose of the grant you are applying for?\xa0"}),(0,s.jsxs)(j.gN,{as:"select",className:"form-select w-50",name:"purpose",onBlur:()=>J("purpose"),children:[(0,s.jsx)("option",{value:"",children:"Select"}),null===(b=A.st)||void 0===b?void 0:b.map(e=>(0,s.jsx)(S.Fragment,{children:(0,s.jsx)("option",{value:e,children:e})},e))]}),(0,s.jsx)(D,{name:"purpose"})]})}),"Other"===E.purpose&&(0,s.jsx)("div",{className:"col-sm-6 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"otherPurpose",children:"Other, Please Specify"}),(0,s.jsx)(j.gN,{className:"form-control",name:"otherPurpose",placeholder:"Max 50 words",as:"textarea",onBlur:()=>J("otherPurpose")}),(0,s.jsx)(D,{name:"otherPurpose"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"potentialImpact",children:"What is the potential impact of the grant on your business? (select all that apply)"}),(0,s.jsx)(x.NU,{data:A.hI,clearable:!0,value:E.potentialImpact,
1name:"potentialImpact",searchable:!0,onBlur:()=>J("potentialImpact"),onChange:e=>I("potentialImpact",e)}),(0,s.jsx)(D,{name:"potentialImpact"})]})}),(null===(w=E.potentialImpact)||void 0===w?void 0:w.includes("Other"))&&(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"otherPotentialImpact",children:"Other, Please Specify"}),(0,s.jsx)(j.gN,{className:"form-control",name:"otherPotentialImpact",placeholder:"Max 50 words",as:"textarea",onBlur:()=>J("otherPotentialImpact")}),(0,s.jsx)(D,{name:"otherPotentialImpact"})]})}),(0,s.jsx)("div",{className:"col-sm-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"fundsUsed",children:"Kindly provide details of the uses of funds below:"}),(0,s.jsxs)("div",{className:"d-flex flex-column border p-3 rounded-2",children:[K.length>0&&(0,s.jsx)("div",{className:"table-responsive",children:(0,s.jsxs)("table",{className:"table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{style:{width:"10%"},children:"#"}),(0,s.jsx)("th",{style:{width:"45%"},children:"Item"}),(0,s.jsx)("th",{style:{width:"45%"},children:"Cost"}),(0,s.jsx)("th",{style:{width:"10%"}})]})}),(0,s.jsx)("tbody",{children:K.map((e,a)=>(0,s.jsxs)("tr",{className:"border-bottom",children:[(0,s.jsx)("td",{children:a+1}),(0,s.jsx)("td",{children:e.item}),(0,s.jsx)("td",{children:(0,s.jsx)(M.h3,{value:e.cost,displayType:"text",thousandSeparator:!0,prefix:"GHS "})}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:"d-flex gap-2",children:[(0,s.jsx)("button",{title:"Edit",onClick:()=>{X(e),Q(a),G(!0)},className:"btn btn-sm btn-light",children:(0,s.jsx)(N.Z,{})}),(0,s.jsx)("button",{title:"Delete",onClick:()=>{let e=[...K];e.splice(a,1),_(e),I("fundsUsed",e)},className:"btn btn-sm btn-light",children:(0,s.jsx)(g.Z,{})})]})})]},a))}),(0,s.jsx)("tfoot",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{style:{backgroundColor:"#f0f0f0"}}),(0,s.jsx)("td",{className:"fw-bold",style:{backgroundColor:"#f0f0f0"},children:"Total"}),(0,s.jsx)("td",{className:"fw-bold",style:{backgroundColor:"#f0f0f0"},children:(0,s.jsx)(M.h3,{value:K.reduce((e,a)=>e+Number(a.cost),0),displayType:"text",thousandSeparator:!0,prefix:"GHS "})}),(0,s.jsx)("td",{style:{backgroundColor:"#f0f0f0"}})]})})]})}),(0,s.jsxs)("button",{onClick:()=>G(!0),style:{width:"100%",color:"#000000"},className:"btn btn-tertiary text-center px-4 d-flex align-items-center justify-content-center  gap-2",children:[(0,s.jsx)("span",{children:"+"}),"Add item"]})]}),(0,s.jsx)(D,{name:"fundsUsed"})]})}),(0,s.jsxs)("div",{className:"col-sm-6",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"applicantRoleInBusiness",children:"How many employees do you have?"}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-md-12 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"totalEmployees",children:"Total Employees"}),(0,s.jsx)(j.gN,{className:"form-control",name:"totalEmployees",type:"number"}),(0,s.jsx)(D,{name:"totalEmployees"})]})}),(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfMales",children:"Males"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfMales",type:"number"}),(0,s.jsx)(D,{name:"numberOfMales"})]})}),(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfFemales",children:"Females"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfFemales",type:"number"}),(0,s.jsx)(D,{name:"numberOfFemales"})]})})]})]}),(0,s.jsxs)("div",{className:"col-sm-6 mb-3 ",children:[(0,s.jsx)("label",{className:"form-label mb-4 "}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfYouth",children:"Youth (18-35)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfYouth",type:"number"}),(0,s.jsx)(D,{name:"numberOfYouth"})]})}),(0,s.jsx)("div",{className:"col-md-6 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfNonYouth",children:"Non-youth (35+)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfNonYouth",type:"number"}),(0,s.jsx)(D,{name:"numberOfNonYouth"})]})})]})]}),(0,s.jsxs)("div",{className:"col-sm-6",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"numberOfSmallholderFarmers",children:"How many smallholder farmers do you engage with?"}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-md-12 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"totalSmallholderFarmers",children:"Total Smallholder Farmers"}),(0,s.jsx)(j.gN,{className:"form-control",name:"totalSmallholderFarmers",type:"number"}),(0,s.jsx)(D,{name:"totalSmallholderFarmers"})]})}),(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfMaleSmallholderFarmers",children:"Males (smallholder farmers)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfMaleSmallholderFarmers",type:"number"}),(0,s.jsx)(D,{name:"numberOfMaleSmallholderFarmers"})]})}),(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfFemaleSmallholderFarmers",children:"Females (smallholder farmers)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfFemaleSmallholderFarmers",type:"number"}),(0,s.jsx)(D,{name:"numberOfFemaleSmallholderFarmers"})]})})]})]}),(0,s.jsx)("div",{className:"col-sm-6 mb-3 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"impactOnYouthAndWomenIn6Months",children:"How is this grant intended to impact youth and women in the next 6 months? (Max of 150 words)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"impactOnYouthAndWomenIn6Months",placeholder:"Max 50 words",as:"textarea",onBlur:()=>J("impactOnYouthAndWomenIn6Months")}),(0,s.jsx)(D,{name:"impactOnYouthAndWomenIn6Months"})]})}),(0,s.jsx)("div",{className:"col-sm-6 mb-3 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"impactOnSmallholderFarmers",children:"How is this grant intended to impact smallholder farmers in the next 6 months?"}),(0,s.jsx)(j.gN,{className:"form-control",name:"impactOnSmallholderFarmers",placeholder:"Max 50 words",as:"textarea",onBlur:()=>J("impactOnSmallholderFarmers")}),(0,s.jsx)(D,{name:"impactOnSmallholderFarmers"})]})}),(0,s.jsx)("div",{className:"col-sm-6 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-4 text-muted fs-6",htmlFor:"initiativesToCreateFulfillingWorkplaceCulture",children:"What initiatives have you undertaken or are planning to undertake to create a fulfilling workplace culture in the next 6 months?"}),(0,s.jsx)(j.gN,{className:"form-control",name:"initiativesToCreateFulfillingWorkplaceCulture",placeholder:"Max 50 words",as:"textarea",onBlur:()=>J("initiativesToCreateFulfillingWorkplaceCulture")}),(0,s.jsx)(D,{name:"initiativesToCreateFulfillingWorkplaceCulture"})]})}),(0,s.jsx)("div",{className:"col-sm-6 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"initiativeForESGPractices",children:"What initiatives have you undertaken or are planning to undertake around sustainability and environmental, social and governance (ESG) practices in the next 6 months?"}),(0,s.jsx)(j.gN,{className:"form-control",name:"initiativeForESGPractices",placeholder:"Max 150 words",as:"textarea",onBlur:()=>J("initiativeForESGPractices")}),(0,s.jsx)(D,{name:"initiativeForESGPractices"})]})}),(0,s.jsx)("div",{className:"col-sm-6 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-4 text-muted fs-6",htmlFor:"doYouExpectToCreateNewJobs",children:"Do you expect to create new jobs as a result of this grant?"}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"doYouExpectToCreateNewJobs",id:"inlineRadio1",value:"true"}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio1",children:"Yes"})]}),(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"doYouExpectToCreateNewJobs",id:"inlineRadio2",value:"false"}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"No"})]})]}),(0,s.jsx)(D,{name:"doYouExpectToCreateNewJobs"})]})}),(0,s.jsx)("div",{className:"col-sm-6 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-4 text-muted fs-6",htmlFor:"doYouExpectToImpactSmallholderFarmers",children:"Do you expect to impact new smallholder farmers as a result of this grant?"}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"doYouExpectToImpactSmallholderFarmers",id:"inlineRadio1",value:"true"}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio1",children:"Yes"})]}),(0,s.jsxs)("div",{className:"form-check form-check-inline",children:[(0,s.jsx)(j.gN,{className:"form-check-input",type:"radio",name:"doYouExpectToImpactSmallholderFarmers",id:"inlineRadio2",value:"false"}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"No"})]})]}),(0,s.jsx)(D,{name:"doYouExpectToImpactSmallholderFarmers"})]})}),(null==E?void 0:E.doYouExpectToCreateNewJobs)==="true"&&(0,s.jsxs)("div",{className:"col-sm-6",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"numberOfSmallholderFarmers",children:"How many new jobs will be created?"}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-md-12 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"totalNewJobsCreated",children:"Total New Jobs"}),(0,s.jsx)(j.gN,{className:"form-control",name:"totalNewJobsCreated",type:"number"}),(0,s.jsx)(D,{name:"totalNewJobsCreated"})]})}),(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfMaleNewJobs",children:"Males (new jobs)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfMaleNewJobs",type:"number"}),(0,s.jsx)(D,{name:"numberOfMaleNewJobs"})]})}),(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfFemaleNewJobs",children:"Females (new jobs)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfFemaleNewJobs",type:"number"}),(0,s.jsx)(D,{name:"numberOfFemaleNewJobs"})]})}),(0,s.jsx)("div",{className:"col-md-6 my-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfYouthNewJobs",children:"How many are youth (18-35) (new jobs)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfYouthNewJobs",type:"number"}),(0,s.jsx)(D,{name:"numberOfYouthNewJobs"})]})}),(0,s.jsx)("div",{className:"col-md-6 my-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfNonYouthNewJobs",children:"How many are non-youth (35+) (new jobs)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfNonYouthNewJobs",type:"number"}),(0,s.jsx)(D,{name:"numberOfNonYouthNewJobs"})]})})]})]}),(null==E?void 0:E.doYouExpectToImpactSmallholderFarmers)==="true"&&(0,s.jsxs)("div",{className:"col-sm-6",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"numberOfSmallholderFarmersBeImpacted",children:"How many new smallholder farmers will be impacted?"}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-md-12 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"totalSmallholderFarmersBeImpacted",children:"Total Farmers Impacted"}),(0,s.jsx)(j.gN,{className:"form-control",name:"totalSmallholderFarmersBeImpacted",type:"number"}),(0,s.jsx)(D,{name:"totalSmallholderFarmersBeImpacted"})]})}),(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfMaleSmallholderFarmersBeImpacted",children:"Males (farmers impacted)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfMaleSmallholderFarmersBeImpacted",type:"number"}),(0,s.jsx)(D,{name:"numberOfMaleSmallholderFarmersBeImpacted"})]})}),(0,s.jsx)("div",{className:"col-md-6",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted",htmlFor:"numberOfFemaleSmallholderFarmersBeImpacted",children:"Females (farmers impacted)"}),(0,s.jsx)(j.gN,{className:"form-control",name:"numberOfFemaleSmallholderFarmersBeImpacted",type:"number"}),(0,s.jsx)(D,{name:"numberOfFemaleSmallholderFarmersBeImpacted"})]})})]})]})]})}),(0,s.jsxs)("div",{className:"px-4 px-lg-5",children:[(0,s.jsx)("h6",{className:"pb-2 px-4 px-lg-5 fw-semibold",children:"Document Upload"}),(0,s.jsx)("h6",{className:"px-4 px-lg-5",children:"Upload the following documents"})]}),(0,s.jsx)("div",{className:"px-4 px-lg-5 py-2",children:(0,s.jsxs)("div",{className:"row px-2",children:[(0,s.jsx)("div",{className:"form-group col-md-6 mb-3 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"ghanaCard",children:"Copy of your Ghana Card"}),(0,s.jsx)(n.Z,{name:"ghanaCard",getImgUrl:function(e){P(e,"ghanaCard")},imgUrl:null==E?void 0:E.ghanaCard,handleClearImage:()=>Z("ghanaCard"),onBlur:()=>J("ghanaCard")})]})}),(0,s.jsx)("div",{className:"form-group col-md-6 mb-3 ",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"doc1",children:"Business plan"}),(0,s.jsx)(n.Z,{name:"doc1",getImgUrl:function(e){P(e,"doc1")},imgUrl:null==E?void 0:E.doc1,handleClearImage:()=>Z("doc1"),onBlur:()=>J("doc1")})]})}),(0,s.jsx)("div",{className:"form-group col-md-6 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"doc2",children:"Most recent (audited) Financial statements"}),(0,s.jsx)(n.Z,{name:"doc2",getImgUrl:function(e){P(e,"doc2")},imgUrl:null==E?void 0:E.doc2,handleClearImage:()=>Z("doc2"),onBlur:()=>J("doc2")})]})}),(0,s.jsx)("div",{className:"form-group col-md-6 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"doc3",children:"Bank Statement for the past 3 months"}),(0,s.jsx)(n.Z,{name:"doc3",getImgUrl:function(e){P(e,"doc3")},imgUrl:null==E?void 0:E.doc3,handleClearImage:()=>Z("doc3"),o
1nBlur:()=>J("doc3")})]})}),(0,s.jsx)("div",{className:"form-group col-md-6 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"doc4",children:"Business permit from the local district assembly"}),(0,s.jsx)(n.Z,{name:"doc4",getImgUrl:function(e){P(e,"doc4")},imgUrl:null==E?void 0:E.doc4,handleClearImage:()=>Z("doc4"),onBlur:()=>J("doc4")})]})}),(0,s.jsx)("div",{className:"form-group col-md-6 mb-3",children:(0,s.jsxs)("div",{className:" px-3 py-2 border rounded",children:[(0,s.jsx)("label",{className:"form-label mb-3 text-muted fs-6",htmlFor:"doc5",children:"Any other relevant documentation. Eg.FDA certificate,etc"}),(0,s.jsx)(n.Z,{name:"doc5",getImgUrl:function(e){P(e,"doc5")},imgUrl:null==E?void 0:E.doc5,handleClearImage:()=>Z("doc5"),onBlur:()=>J("doc5")})]})})]})}),H&&(0,s.jsx)(B,{addItem:H,setAddItem:G,onSubmit:(e,a)=>{let r;"number"==typeof a?(r=[...K])[a]=e:r=[...K,e],_(r),I("fundsUsed",r),G(!1)},editingItem:z,editingIndex:V,setEditingItem:X}),$&&(0,s.jsx)(T,{setShowModal:ee,isOpen:!0,onClose:()=>{E.applicantLegalOwnerOfBusiness=""}})]})},E=O.Ry().shape({registrationDate:O.hT().required("Enter date"),companyTIN:O.Z_().min(11,"Should be at least 11 characters").max(11,"Should be at most 11 characters").matches(/^[A-Z]\d{9}[A-Z0-9]$/,"Should start with 1 uppercase letter and be followed by 10 numbers").transform(e=>e.toUpperCase()).nullable(),registrationNumber:O.Z_().min(11,"Should be exactly 11 characters").max(11,"Should be exactly 11 characters").matches(/^[A-Z]/,"Registration number should start with 2 uppercase alphabets").required("Enter reg. number"),currentOpAddress:O.Z_().required("Enter address"),currentOpAddressRegion:O.Z_().oneOf(["Ahafo Region","Ashanti Region","Bono Region","Bono East Region","Central Region","Eastern Region","Greater Accra Region","North East Region","Northern Region","Oti Region","Savannah Region","Upper East Region","Upper West Region","Volta Region","Western Region","Western North Region"],"Select one").required("Select one"),currentOpAddressMMDA:O.Z_().required("Select one"),industrySectorLvl1:O.Z_().oneOf(A.pn,"Select one").required("Select one"),otherIndustrySectorLvl1:O.Z_().nullable(),certOfIncorporationUrl:O.Z_().required("Select file/image"),month1Revenue:O.Rx().min(0,"Must begreater than or equal to 0").required("Enter a number"),month2Revenue:O.Rx().min(0,"Must begreater than or equal to 0").required("Enter a number"),month3Revenue:O.Rx().min(0,"Must begreater than or equal to 0").required("Enter a number"),purpose:O.Z_().required("Enter text"),otherPurpose:O.Z_().nullable(),otherPotentialImpact:O.Z_().nullable(),potentialImpact:O.IX().required("Enter text"),impactOnYouthAndWomenIn6Months:O.Z_().required("Enter text").test("maxWords","Should not be more than 150 words",e=>{if(!e)return!0;let a=e.trim().split(/\s+/);return a.length<=150}),impactOnSmallholderFarmers:O.Z_().required("Enter text").test("maxWords","Should not be more than 150 words",e=>{if(!e)return!0;let a=e.trim().split(/\s+/);return a.length<=150}),initiativesToCreateFulfillingWorkplaceCulture:O.Z_().required("Enter text").test("maxWords","Should not be more than 150 words",e=>{if(!e)return!0;let a=e.trim().split(/\s+/);return a.length<=150}),initiativeForESGPractices:O.Z_().required("Enter text").test("maxWords","Should not be more than 150 words",e=>{if(!e)return!0;let a=e.trim().split(/\s+/);return a.length<=150}),reasonForTraining:O.IX().required("Enter reason for training"),otherReasonForTraining:O.Z_().nullable().test("maxWords","Should not be more than 50 words",e=>{if(!e)return!0;let a=e.trim().split(/\s+/);return a.length<=50}),reasonNotHelpful:O.IX().nullable(),otherReasonNotHelpful:O.Z_().nullable().test("maxWords","Should not be more than 30 words",e=>{if(!e)return!0;let a=e.trim().split(/\s+/);return a.length<=30}),wasTrainingHelpful:O.Z_().oneOf(["true","false"],{message:"Select one"}).required("Select one"),ghanaCard:O.Z_().required("Select file/image"),totalEmployees:O.Rx().min(0,"Must be greater than 0").required("Enter a number").test("totalEmployeesMatch","Total employees must match the sum of males and females",(e,a)=>{let{numberOfMales:r,numberOfFemales:s}=a.parent;return e==r+s}).test("totalEmployeesMatch","Total employees must match the sum of youth and non-youth",(e,a)=>{let{numberOfYouth:r,numberOfNonYouth:s}=a.parent;return e==r+s}),numberOfMales:O.Rx().min(0,"Must be greater than or equal to 0").required("Enter a number"),numberOfFemales:O.Rx().min(0,"Must be greater than or equal to 0").required("Enter a number"),numberOfYouth:O.Rx().min(0,"Must be greater than or equal to 0").required("Enter a number"),mainProductsOffered:O.Z_().required("Enter text").test("maxWords","Should not be more than 150 words",e=>{if(!e)return!0;let a=e.trim().split(/\s+/);return a.length<=150}),numberOfNonYouth:O.Rx().min(0,"Must be greater than or equal to 0").required("Enter a number"),applicantLegalOwnerOfBusiness:O.Z_().oneOf(["true","false"],{message:"Select one"}).required("Select one"),wasBusinessRegisteredAfterTraining:O.Z_().oneOf(["true","false"],{message:"Select one"}).required("Select one"),registeredBusinessName:O.Z_().required("Enter business name"),formAUrl:O.Z_().when("ownershipStructure",{is:e=>"SOLE_PROPRIETORSHIP"===e||"PARTNERSHIP"===e,then:e=>e.required("Select file/image"),otherwise:e=>e.nullable()}),form3Url:O.Z_().when("ownershipStructure",{is:"LIMITED_LIABILITY_COMPANY",then:e=>e.required("Select file/image"),otherwise:e=>e.nullable()}),ownershipStructure:O.Z_().required("Select one"),significantAchievements:O.Z_().required("Enter text").test("maxWords","Should not be more than 150 words",e=>{if(!e)return!0;let a=e.trim().split(/\s+/);return a.length<=150}),fundsUsed:O.IX().required("Enter text"),totalSmallholderFarmers:O.Rx().min(0,"Must be greater than or equal to 0").required("Enter a number").test("totalSmallholderFarmersMatch","Total smallholder farmers must match the sum of male and female smallholder farmers",(e,a)=>{let{numberOfMaleSmallholderFarmers:r,numberOfFemaleSmallholderFarmers:s}=a.parent;return e==r+s}),numberOfMaleSmallholderFarmers:O.Rx().min(0,"Must be greater than or equal to 0").required("Enter a number"),numberOfFemaleSmallholderFarmers:O.Rx().min(0,"Must be greater than or equal to 0").required("Enter a number"),doYouExpectToCreateNewJobs:O.Z_().oneOf(["true","false"],{message:"Select one"}).required("Select one"),doYouExpectToImpactSmallholderFarmers:O.Z_().oneOf(["true","false"],{message:"Select one"}).required("Select one"),totalNewJobsCreated:O.Rx().when("doYouExpectToCreateNewJobs",{is:"true",then:e=>e.min(0,"Must be greater than or equal to 0").required("Enter a number").test("totalNewJobsCreatedMatch","Total new jobs must match the sum of male and female new jobs",(e,a)=>{let{numberOfMaleNewJobs:r,numberOfFemaleNewJobs:s}=a.parent;return e==r+s}),otherwise:e=>e.nullable()}),numberOfMaleNewJobs:O.Rx().when("doYouExpectToCreateNewJobs",{is:"true",then:e=>e.min(0,"Must be greater than or equal to 0").required("Enter a number"),otherwise:e=>e.nullable()}),numberOfFemaleNewJobs:O.Rx().when("doYouExpectToCreateNewJobs",{is:"true",then:e=>e.min(0,"Must be greater than or equal to 0").required("Enter a number"),otherwise:e=>e.nullable()}),numberOfYouthNewJobs:O.Rx().when("doYouExpectToCreateNewJobs",{is:"true",then:e=>e.min(0,"Must be greater than or equal to 0").required("Enter a number"),otherwise:e=>e.nullable()}),numberOfNonYouthNewJobs:O.Rx().when("doYouExpectToCreateNewJobs",{is:"true",then:e=>e.min(0,"Must be greater than or equal to 0").required("Enter a number"),otherwise:e=>e.nullable()}),totalSmallholderFarmersBeImpacted:O.Rx().when("doYouExpectToImpactSmallholderFarmers",{is:"true",then:e=>e.min(0,"Must be greater than or equal to 0").required("Enter a number").test("totalSmallholderFarmersBeImpactedMatch","Total smallholder farmers must match the sum of male and female smallholder farmers",(e,a)=>{let{numberOfMaleSmallholderFarmersBeImpacted:r,numberOfFemaleSmallholderFarmersBeImpacted:s}=a.parent;return e==r+s}),otherwise:e=>e.nullable()}),numberOfMaleSmallholderFarmersBeImpacted:O.Rx().when("doYouExpectToImpactSmallholderFarmers",{is:"true",then:e=>e.min(0,"Must be greater than or equal to 0").required("Enter a number"),otherwise:e=>e.nullable()}),numberOfFemaleSmallholderFarmersBeImpacted:O.Rx().when("doYouExpectToImpactSmallholderFarmers",{is:"true",then:e=>e.min(0,"Must be greater than or equal to 0").required("Enter a number"),otherwise:e=>e.nullable()})});var R=function(){let[e,a]=(0,f.X)({key:"grant-details"}),[r]=(0,f.X)({key:"grant-id"}),{applicantData:t,trainee:n}=(0,l.U)();(0,F.useQuery)({queryKey:["get-grant-details",r,null==n?void 0:n.grantId],queryFn:e=>{let{queryKey:a}=e;return m.B.getGrantDetail(a[1]?a[1]:a[2])},enabled:!0,onSuccess:e=>{a(e)}});let[i,o]=(0,f.X)({key:"grant-financial-values"}),[d,u]=(0,f.X)({key:"grant-form-values"});(0,S.useEffect)(()=>{var a,r,s,l,t,n,i,d,c,m;let{documents:h,grantImpact:p,trainingImpact:x,financialRevenue:b}=e||{};e&&o({...b,...x,...p,doc1:h&&h[0],doc2:h&&h[1],doc3:h&&h[2],doc4:h&&h[3],doc5:h&&h[4],ghanaCard:h&&h[5],wasTrainingHelpful:null==x?void 0:null===(d=x.wasTrainingHelpful)||void 0===d?void 0:d.toString(),doYouExpectToCreateNewJobs:null==p?void 0:null===(c=p.doYouExpectToCreateNewJobs)||void 0===c?void 0:c.toString(),doYouExpectToImpactSmallholderFarmers:null==p?void 0:null===(m=p.doYouExpectToImpactSmallholderFarmers)||void 0===m?void 0:m.toString()}),u({...null==e?void 0:e.business,wasBusinessRegisteredAfterTraining:null==e?void 0:null===(r=e.business)||void 0===r?void 0:null===(a=r.wasBusinessRegisteredAfterTraining)||void 0===a?void 0:a.toString(),isTrainingBusinessSameAsGrantBusiness:null==e?void 0:null===(l=e.business)||void 0===l?void 0:null===(s=l.isTrainingBusinessSameAsGrantBusiness)||void 0===s?void 0:s.toString(),isRegistered:null==e?void 0:null===(t=e.business)||void 0===t?void 0:t.isRegistered.toString(),applicantLegalOwnerOfBusiness:null==e?void 0:null===(i=e.business)||void 0===i?void 0:null===(n=i.applicantLegalOwnerOfBusiness)||void 0===n?void 0:n.toString()})},[e,o,u]);let[h,p]=(0,S.useState)(!1),[x,b]=(0,S.useState)(""),N={isTrainingBusinessSameAsGrantBusiness:null==d?void 0:d.isTrainingBusinessSameAsGrantBusiness,isRegistered:null==d?void 0:d.isRegistered,applicantLegalOwnerOfBusiness:null==d?void 0:d.applicantLegalOwnerOfBusiness,wasBusinessRegisteredAfterTraining:null==d?void 0:d.wasBusinessRegisteredAfterTraining,registeredBusinessName:null==d?void 0:d.registeredBusinessName,registrationNumber:null==d?void 0:d.registrationNumber,companyTIN:null==d?void 0:d.companyTIN,registrationDate:null==d?void 0:d.registrationDate,currentOpAddress:null==d?void 0:d.currentOpAddress,currentOpAddressRegion:null==d?void 0:d.currentOpAddressRegion,currentOpAddressMMDA:null==d?void 0:d.currentOpAddressMMDA,industrySectorLvl1:null==d?void 0:d.industrySectorLvl1,otherIndustrySectorLvl1:null==d?void 0:d.otherIndustrySectorLvl1,certOfIncorporationUrl:null==d?void 0:d.certOfIncorporationUrl,formAUrl:null==d?void 0:d.formAUrl,form3Url:null==d?void 0:d.form3Url,mainProductsOffered:null==d?void 0:d.mainProductsOffered,significantAchievements:null==d?void 0:d.significantAchievements,ownershipStructure:null==d?void 0:d.ownershipStructure,month1Revenue:null==i?void 0:i.month1Revenue,month2Revenue:null==i?void 0:i.month2Revenue,month3Revenue:null==i?void 0:i.month3Revenue,reasonForTraining:null==i?void 0:i.reasonForTraining,otherReasonForTraining:null==i?void 0:i.otherReasonForTraining,wasTrainingHelpful:null==i?void 0:i.wasTrainingHelpful,reasonNotHelpful:null==i?void 0:i.reasonNotHelpful,otherReasonNotHelpful:null==i?void 0:i.otherReasonNotHelpful,purpose:null==i?void 0:i.purpose,otherPurpose:null==i?void 0:i.otherPurpose,potentialImpact:null==i?void 0:i.potentialImpact,fundsUsed:null==i?void 0:i.fundsUsed,otherPotentialImpact:null==i?void 0:i.otherPotentialImpact,impactOnYouthAndWomenIn6Months:null==i?void 0:i.impactOnYouthAndWomenIn6Months,impactOnSmallholderFarmers:null==i?void 0:i.impactOnSmallholderFarmers,initiativesToCreateFulfillingWorkplaceCulture:null==i?void 0:i.initiativesToCreateFulfillingWorkplaceCulture,initiativeForESGPractices:null==i?void 0:i.initiativeForESGPractices,doc1:(null==i?void 0:i.doc1)||"",doc2:(null==i?void 0:i.doc2)||"",doc3:(null==i?void 0:i.doc3)||"",doc4:(null==i?void 0:i.doc4)||"",doc5:(null==i?void 0:i.doc5)||"",ghanaCard:(null==i?void 0:i.ghanaCard)||"",totalEmployees:null==i?void 0:i.totalEmployees,numberOfMales:null==i?void 0:i.numberOfMales,numberOfFemales:null==i?void 0:i.numberOfFemales,numberOfYouth:null==i?void 0:i.numberOfYouth,numberOfNonYouth:null==i?void 0:i.numberOfNonYouth,doYouExpectToCreateNewJobs:null==i?void 0:i.doYouExpectToCreateNewJobs,totalNewJobsCreated:null==i?void 0:i.totalNewJobsCreated,numberOfMaleNewJobs:null==i?void 0:i.numberOfMaleNewJobs,numberOfFemaleNewJobs:null==i?void 0:i.numberOfFemaleNewJobs,numberOfYouthNewJobs:null==i?void 0:i.numberOfYouthNewJobs,numberOfNonYouthNewJobs:null==i?void 0:i.numberOfNonYouthNewJobs,totalSmallholderFarmers:null==i?void 0:i.totalSmallholderFarmers,numberOfMaleSmallholderFarmers:null==i?void 0:i.numberOfMaleSmallholderFarmers,numberOfFemaleSmallholderFarmers:null==i?void 0:i.numberOfFemaleSmallholderFarmers,doYouExpectToImpactSmallholderFarmers:null==i?void 0:i.doYouExpectToImpactSmallholderFarmers,totalSmallholderFarmersBeImpacted:null==i?void 0:i.totalSmallholderFarmersBeImpacted,numberOfMaleSmallholderFarmersBeImpacted:null==i?void 0:i.numberOfMaleSmallholderFarmersBeImpacted,numberOfFemaleSmallholderFarmersBeImpacted:null==i?void 0:i.numberOfFemaleSmallholderFarmersBeImpacted},g=(0,F.useMutation)({mutationFn:a=>m.B.submitGrant(null==e?void 0:e.id,a),onSuccess:(e,a)=>{"failed"===e.status?b(e.message):(b(""),p(!0))},onError:e=>{b(e.message)}});return(0,s.jsx)(j.J9,{initialValues:N,validationSchema:E,onSubmit:e=>{let{reasonForTraining:a,wasTrainingHelpful:r,reasonNotHelpful:s,otherReasonForTraining:l,otherReasonNotHelpful:t,doc1:n,doc2:i,doc3:o,doc4:c,doc5:m,ghanaCard:u,totalEmployees:h,numberOfMales:p,numberOfFemales:x,numberOfYouth:b,numberOfNonYouth:f,month1Revenue:N,month2Revenue:v,month3Revenue:j,purpose:w,otherPurpose:y,potentialImpact:S,otherPotentialImpact:M,impactOnYouthAndWomenIn6Months:F,impactOnSmallholderFarmers:O,initiativesToCreateFulfillingWorkplaceCulture:A,initiativeForESGPractices:D,fundsUsed:I,totalSmallholderFarmers:E,numberOfMaleSmallholderFarmers:R,numberOfFemaleSmallholderFarmers:B,doYouExpectToCreateNewJobs:T,totalNewJobsCreated:k,numberOfMaleNewJobs:C,numberOfFemaleNewJobs:U,numberOfYouthNewJobs:W,numberOfNonYouthNewJobs:Y,doYou
1ExpectToImpactSmallholderFarmers:q,totalSmallholderFarmersBeImpacted:P,numberOfMaleSmallholderFarmersBeImpacted:Z,numberOfFemaleSmallholderFarmersBeImpacted:J}=e,L={isTrainingBusinessSameAsGrantBusiness:null==d?void 0:d.isTrainingBusinessSameAsGrantBusiness,isRegistered:null==d?void 0:d.isRegistered,wasBusinessRegisteredAfterTraining:null==d?void 0:d.wasBusinessRegisteredAfterTraining,registeredBusinessName:null==d?void 0:d.registeredBusinessName,registrationNumber:null==d?void 0:d.registrationNumber,companyTIN:null==d?void 0:d.companyTIN,registrationDate:null==d?void 0:d.registrationDate,currentOpAddress:null==d?void 0:d.currentOpAddress,currentOpAddressRegion:null==d?void 0:d.currentOpAddressRegion,currentOpAddressMMDA:null==d?void 0:d.currentOpAddressMMDA,industrySectorLvl1:null==d?void 0:d.industrySectorLvl1,otherIndustrySectorLvl1:null==d?void 0:d.otherIndustrySectorLvl1,certOfIncorporationUrl:null==d?void 0:d.certOfIncorporationUrl,mainProductsOffered:null==d?void 0:d.mainProductsOffered,significantAchievements:null==d?void 0:d.significantAchievements,applicantLegalOwnerOfBusiness:null==d?void 0:d.applicantLegalOwnerOfBusiness,formAUrl:null==d?void 0:d.formAUrl,form3Url:null==d?void 0:d.form3Url,ownershipStructure:null==d?void 0:d.ownershipStructure};g.mutate({business:L,financialRevenue:{month1Revenue:N,month2Revenue:v,month3Revenue:j},trainingImpact:{reasonForTraining:a,otherReasonForTraining:l,wasTrainingHelpful:r,reasonNotHelpful:s,otherReasonNotHelpful:t},grantImpact:{purpose:w,otherPurpose:y,potentialImpact:S,otherPotentialImpact:M,fundsUsed:I,impactOnYouthAndWomenIn6Months:F,impactOnSmallholderFarmers:O,initiativesToCreateFulfillingWorkplaceCulture:A,initiativeForESGPractices:D,totalEmployees:h,numberOfFemales:x,numberOfMales:p,numberOfNonYouth:f,numberOfYouth:b,totalSmallholderFarmers:E,numberOfMaleSmallholderFarmers:R,numberOfFemaleSmallholderFarmers:B,doYouExpectToCreateNewJobs:T,totalNewJobsCreated:k,numberOfMaleNewJobs:C,numberOfFemaleNewJobs:U,numberOfYouthNewJobs:W,numberOfNonYouthNewJobs:Y,doYouExpectToImpactSmallholderFarmers:q,totalSmallholderFarmersBeImpacted:P,numberOfMaleSmallholderFarmersBeImpacted:Z,numberOfFemaleSmallholderFarmersBeImpacted:J},documents:[n,i,o,c,m,u]})},enableReinitialize:!0,children:()=>(0,s.jsxs)(j.l0,{children:[(0,s.jsx)(I,{applicantData:t,trainee:n}),(0,s.jsx)("div",{className:"px-4 py-3",children:(0,s.jsxs)("div",{className:"d-flex justify-content-between p-md-4 p-lg-5",children:[(0,s.jsx)("div",{}),(0,s.jsx)("button",{className:"btn btn-tertiary px-4",type:"submit",children:"Submit"})]})}),(0,s.jsx)(c,{onClose:()=>p(!1),isOpen:h})]})})};let B=e=>{let{addItem:a,setAddItem:r,onSubmit:l,editingItem:t,editingIndex:n,setEditingItem:i}=e,[o,d]=(0,S.useState)({item:"",cost:""});return(0,S.useEffect)(()=>{t&&d({item:t.item,cost:t.cost.toString()})},[t]),(0,s.jsx)(b.u,{opened:a,onClose:()=>{r(!1),i(null),d({item:"",cost:""})},title:t?"Edit Item":"Add Item",children:(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),o.item&&o.cost&&(l({item:o.item,cost:Number(o.cost)},n),d({item:"",cost:""}),i(null))},className:"d-flex flex-column gap-3 border p-4 rounded-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"form-label fw-semibold",htmlFor:"item",children:"Item"}),(0,s.jsx)("input",{title:"item",className:"form-control",name:"item",type:"text",value:o.item,onChange:e=>d({...o,item:e.target.value}),required:!0})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"form-label fw-semibold",htmlFor:"item",children:"Cost (GHS)"}),(0,s.jsx)("input",{title:"cost",className:"form-control",name:"cost",type:"text",value:o.cost,onChange:e=>d({...o,cost:e.target.value}),required:!0})]}),(0,s.jsx)("button",{type:"submit",className:"btn btn-tertiary px-4 gap-2",children:t?"Update":"Submit"})]})})},T=e=>{let{isOpen:a,onClose:r,setShowModal:l}=e;return(0,s.jsxs)(b.u,{opened:a,onClose:()=>{r(),l(!1)},title:"Eligibility",children:[(0,s.jsx)("div",{className:"text-center mb-3",children:(0,s.jsx)(y(),{src:"/img/eligible.png",alt:"not-eligible",width:80,height:80})}),(0,s.jsx)("div",{children:(0,s.jsx)("p",{className:"text-center bg-danger-subtle text-danger p-3 rounded-4 border border-danger",children:"You are not eligible to apply for a grant if you are not the legal owner of a business"})})]})};var k=r(92265);function C(){return(0,s.jsx)(k.default,{children:(0,s.jsxs)("div",{className:"card",children:[(0,s.jsx)("div",{className:"card-header bg-white py-4 px-4 px-lg-5",children:(0,s.jsx)("h5",{className:"mb-0 fw-semibold",children:"Applicants details"})}),(0,s.jsx)("div",{className:"card-body p-0",children:(0,s.jsx)(R,{})})]})})}var U=C;C.provider=l.c},36205:function(e,a,r){"use strict";var s=r(85893),l=r(82175);r(67294);var t=r(57333);a.Z=e=>{let{field:a,form:r}=e,{validateField:n}=(0,l.u6)(),i=e=>{n(e)},o=e=>{null==r||r.setFieldValue(a.name,null==e?void 0:e.floatValue)};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(t.h3,{thousandSeparator:",",className:"form-control w-100 border-0 p-0 mb-0 bg-white",value:null==a?void 0:a.value,onValueChange:e=>o(e),onBlur:()=>i(null==a?void 0:a.name)})})}},62879:function(e,a,r){"use strict";var s=r(85893),l=r(67294),t=r(5434),n=r(18824);a.Z=function(e){let{handleDeleteImage:a,deleteLoading:r}=e,i=(0,l.useId)(),[o,d]=(0,l.useState)(!1),c=e=>{e==i&&d(!0),a()};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{id:i,type:"button",className:"btn btn-default border-0 pe-2 pe-lg-0",onClick:()=>c(i),children:o?(0,s.jsx)(n.Z,{color:"tertiary"}):(0,s.jsx)(t.FU5,{})})})}},74108:function(e,a,r){"use strict";r.d(a,{MU:function(){return l},rA:function(){return s}});let s=(e,a)=>{let r=new Date(e),s=r.getMonth()+1,l=a.some(e=>{let a=new Date(e.endDate).getMonth()+1;return a===s});return l},l=()=>{let e=new Date,a=e.toISOString().split("T")[0],r=new Date(e);r.setFullYear(e.getFullYear()-100);let s=r.toISOString().split("T")[0];return{minDate:s,maxDate:a}}},44122:function(e){"use strict";
1e.exports=JSON.parse('{"Ahafo Region":["Asunafo North Municipal","Tano North Municipal","Tano South Municipal","Asunafo South District","Asutifi North District","Asutifi South District"],"Ashanti Region":["Kumasi Metropolitan","Ahafo Ano North Municipal","Asante Akim Central Municipal","Asante Akim South Municipal","Asokwa Municipal","Ejisu Municipal","Asokore Mampong Municipal","Atwima Nwabiagya Municipal","Bekwai Municipal","Juaben Municipal","Obuasi Municipal","Ejura Sekyredumasi Municipal","Kwabre East Municipal","Kwadaso Municipal","Mampong Municipal","Oforikrom Municipal","Offinso Municipal","Old Tafo Municipal","Suame Municipal","Adansi Asokwa District","Adansi North District","Adansi South District","Afigya Kwabre North District","Afigya Kwabre South District","Akrofuom District","Amansie South District","Amansie Central District","Amansie West District","Ahafo Ano South East District","Ahafo Ano South West District","Asante Akim North District","Atwima Kwanwoma District","Atwima Mponua District","Obuasi East District","Atwima Nwabiagya North District","Bosome Freho District","Bosomtwe District","Offinso North District","Sekyere Afram Plains District","Sekyere Central District","Sekyere East District","Sekyere Kumawu District","Sekyere South District"],"Bono East Region":["Atebubu Amantin Municipal","Kintampo North Municipal","Nkoranza South Municipal","Techiman Municipal","Sene West District","Pru East District","Kintampo South District","Nkoranza North District","Techiman North District","Sene East District","Pru West District"],"Bono Region":["Berekum East Municipal","Dormaa Central Municipal","Jaman South Municipal","Sunyani Municipal","Wenchi Municipal","Tain District","Dormaa East District","Jaman North District","Sunyani West District","Dormaa West District","Banda District","Berekum West District"],"Central Region":["Cape Coast Metropolitan","Assin Foso Municipal","Awutu Senya East Municipal","Agona West Municipal","Efutu Municipal","Komenda-Edina-Eguafo-Abrim Municipal","Mfantsiman Municipal","Upper Denkyira East Municipal","Abura/ Asebu/ Kwamankese District","Agona East District","Ajumako/Enyan/Esiam District","Asikuma-Odoben-Brakwa-Breman District","Assin North District","Assin South District","Awutu Senya District","Ekumfi District","Gomoa Central District","Gomoa East District","Gomoa West District","Hemang Lower Denkyira District","Twifu Ati Morkwa District","Upper Denkyira West District"],"Eastern Region":["Abuakwa North Municipal","Abuakwa South Municipal","Akuapim North Municipal","Birim Central Municipal","Kwaebibirem Municipal","Kwahu West Municipal","Lower Manya Krobo Municipal","New Juaben North Municipal","New Juaben South Municipal","Nsawam Adoagyiri Municipal","Suhum Municipal","Yilo Krobo Municipal","Lower West Akim Municipal","Upper West Akim District","Achiase District","Akuapem South District","Akyemansa District","Asuogyaman District","Asene-Manso-Akroso District","Atiwa East District","Atiwa West District","Ayensuano District","Birim North District","Birim South District","Denkyembuor District","Fanteakwa North District","Fanteakwa South District","Kwahu Afram Plains North District","Kwahu Afram Plains South District","Kwahu East District","Kwahu South District","Okere District","Upper Manya Krobo District"],"Greater Accra Region":["Accra Metropolitan","Tema Metropolitan","Ablekuma Central Municipal","Ablekuma North Municipal","Ablekuma West Municipal","Ashaiman Municipal","Ayawaso Central Municipal","Ayawaso East Municipal","Ayawaso North Municipal","Ayawaso West Municipal","Ga South Municipal","Ga East Municipal","Ga West Municipal","Ga North Municipal","Ga Central Municipal","La Nkwantanang Municipal","La Dade-Kotopon Municipal","Ledzokuku Municipal","Adenta Municipal","Korle Klottey Municipal","Kpone Katamanso Municipal","Krowor Municipal","Okaikwei North Municipal","Tema West Municipal","Weija-Gbawe Municipal","Ningo Prampram District","Shai-osudoku District","Ada East District","Ada West District"],"North East Region":["West Mamprusi Municipal","Bunkpurugu Nakpanduri District","Chereponi District","Mamprugu Moagduri District","Yunyoo-Nasuan District"],"Northern Region":["Tamale Metropolitan","Nanumba North Municipal","Sagnerigu Municipal","Savelugu Municipal","Yendi Municipal","Gushegu Municipal","Kpandai District","Kumbungu District","Mion District","Nanton District","Nanumba South District","Saboba District","Tatale Sanguli District","Tolon District","Zabzugu District","Karaga District"],"Oti Region":["Krachi East Municipal","Krachi West District","Krachi Nchumuru District","Nkwanta South Municipal","Biakoye District","Jasikan District","Kadjebi District","Guan District","Nkwanta North District"],"Savannah Region":["East Gonja Municipal","West Gonja Municipal","Sawla Tuna Kalba District","Central Gonja District","North Gonja District","North East Gonja District","Bole District"],"Upper East Region":["Bolgatanga Municipal","Bawku Municipal","Tempane District","Kassena Nankana East Municipal","Bawku West District","Binduri District","Bolgatanga East District","Bongo District","Builsa North District","Builsa South District","Garu District","Kassena Nankana West District","Nabdam District","Pusiga District","Talensi District"],"Upper West Region":["Wa Municipal","Jirapa Municipal","Lawra Municipal","Wa West District","Sissala East Municipal","Dafiama Bussie Issa District","Lambussie District","Nandom District","Nadowli/Kaleo District","Sissala West District","Wa East District"],"Volta Region":["Ho Municipal","Adaklu District","Afadzato South District","Agotime-Ziope District","Akatsi North District","Akatsi South District","Anloga District","Central Tongu District","South Tongu District","Ho West District","Hohoe Municipal","Keta Municipal","Ketu North Municipal","Ketu South Municipal","Kpando Municipal","North Dayi District","North Tongu District","South Dayi District"],"Western North Region":["Sefwi Wiawso Municipal","Aowin Municipal","Bibiani Anhwiaso Bekwai Municipal","Suaman District","Bia East District","Bia West District","Bodi District","Juaboso District","Sefwi Akontombra District"],"Western Region":["Sekondi-Takoradi Metropolitan","Ahanta West Municipal","Amenfi Central District","Wassa Amenfi East Municipal","Amenfi West Municipal","Effia Kwesimintsim Municipal","Ellembelle District","Jomoro Municipal","Mpohor District","Nzema East Municipal","Prestea Huni-Valley Municipal","Wassa East District","Shama District","Tarkwa Nsuaem Municipal"]}')}},function(e){e.O(0,[1228,4617,8907,7627,1778,7237,9061,6257,1664,4201,8485,7084,2175,6310,3317,7333,8260,4151,1194,6077,9423,9774,2888,179],function(){return e(e.s=48974)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.