PageSourceSearch

https://bomaenspire.ca/_next/static/chunks/pages/my-applications/[id]-e6702b12222caa92.js

js bomaenspire.ca collected 2026-10-04 01:49:46 UTC 31,698 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2132],{2621:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>M});var l=a(37876),i=a(71834),r=a(69002),o=a(61445),n=a(47988),c=a(60774),s=a(71516),d=a(42008),p=a(82777),u=a(82097),m=a(53318),x=a(86063),g=a(28332),v=a(93032),A=a(58311),h=a(34051),j=a(40872),b=a(69233),y=a(4526),f=a(13473),N=a(23636),C=a(54587),w=a.n(C),S=a(89099),P=a(14232),k=a(34846),F=a(29152),E=a(48059),D=a(85752),B=a(58315),T=a(18452),R=a(77328),_=a.n(R),L=a(69361);let M=()=>{var e,t,a,C,R,M,W,I,U,V,O,H,q,Y,z,G;let[$,K]=(0,P.useState)("EN"),{t:X}=(0,k.Bd)(),[J,Q]=(0,P.useState)(!1),[Z,ee]=(0,P.useState)(!1),[et,ea]=(0,P.useState)([]),[el,ei]=(0,P.useState)({type:null,message:""}),[er,eo]=(0,P.useState)({}),[en,ec]=(0,P.useState)([]),[es,ed]=(0,P.useState)(!1),[ep,eu]=(0,P.useState)({stateLog:[],updateLog:[]}),[em,ex]=(0,P.useState)(0),{id:eg}=(0,S.useRouter)().query,ev=X("viewApplication.ApplicationLogHeading",{returnObjects:!0}),eA=X("myApplications.buttonText.viewApplication"),eh=[{label:X("mainMenuTitles.myApplications"),url:"/my-applications"},{label:eA,url:""},{label:er?null==er?void 0:er.applicationId:"--",url:""}];function ej(e){if(!e)return"--";let t=/^(\d{2})\/(\d{2})\/(\d{4})$/;if(t.test(e)){let[,a,l,i]=e.match(t);return"".concat(i,"-").concat(l,"-").concat(a)}let a=new Date(e);if(isNaN(a.getTime()))return"--";let l=String(a.getDate()).padStart(2,"0"),i=String(a.getMonth()+1).padStart(2,"0"),r=a.getFullYear();return"".concat(r,"-").concat(i,"-").concat(l)}(0,P.useEffect)(()=>{K(localStorage.getItem("language")||"EN")},[]);let eb=[(null==er?void 0:er.applicationStage)==="Pre-Approval"&&!!(null==er?void 0:er.participantAcceptanceDate)&&(null==er?void 0:er.participantAcceptanceDate)!=="NA"&&{fieldName:X("viewApplication.acceptanceDate"),date:D.W.formatDateFromTimestamp(er.participantAcceptanceDate)},["Post-Project","Payment"].includes(null==er?void 0:er.applicationStage)&&!!(null==er?void 0:er.pre_approval_application_submitted_date)&&{fieldName:X("viewApplication.acceptanceDate"),date:D.W.formatDateFromTimestamp(er.pre_approval_application_submitted_date)},{fieldName:X("viewApplication.expiryDate"),date:(null==er?void 0:er.preApprovalExpirationDate)?ej(er.preApprovalExpirationDate):"--"},{fieldName:X("viewApplication.eligibleCosts"),date:(null==er?void 0:er.reviewerEstimatedEligibleProject)!=null?"$ ".concat(Number(er.reviewerEstimatedEligibleProject).toLocaleString()):"--"},{fieldName:X("viewApplication.fundingAmount"),date:(null==er?void 0:er.reviewerEstimatedFundingAmount)!=null?"$ ".concat(Number(er.reviewerEstimatedFundingAmount).toLocaleString()):"--"}].filter(Boolean),ey=async e=>{if(!e.imageCDNUrl)return void eP("error","File URL is missing.");try{await (0,B.h)(e.imageCDNUrl,e.fileName||"document")}catch(e){console.error("Download error:",e),eP("error","File download failed.")}},ef=[{label:X("viewApplication.fileType"),key:"fileType"},{label:X("viewApplication.fileName"),key:"fileName"},{label:X("viewApplication.uploadTime"),key:"uploadTime"},{label:X("viewApplication.action"),key:"action",render:(e,t,a)=>(0,l.jsx)("div",{className:"flex gap-6 justify-center",children:(0,l.jsx)(w(),{src:F.A,alt:"Delete",height:20,width:20,className:"cursor-pointer",onClick:()=>ey(t)})}),align:"center"}],eN={...er,projectServiceProvider:(null==er||null==(e=er.projectServiceProvider)?void 0:e.name)||(null==er||null==(t=er.projectServiceProvider)?void 0:t.displayName)||"--"},eC=async(e,t)=>{try{let a,l="RRI"===t,i="Post-Project"===e||"Payment"===e,r=i?l?"rriPostProjectApplication":"bpePostProjectApplication":l?"rriApplication":"bpeApplication";a=i?await c.W.getFormsKey(r):await c.W.getProjectFormKeys(r),!0===a.success&&ea(a.data)}catch(e){console.error(e)}};(0,P.useEffect)(()=>{(null==er?void 0:er.applicationStage)&&eC(er.applicationStage,er.applicationType)},[null==er?void 0:er.applicationStage,null==er?void 0:er.applicationType]);let ew=async()=>{try{var e;let t=await c.W.getApplicationById(eg);eo(t.application),eS(null==(e=t.application)?void 0:e._id)}catch(e){console.error("Error",e),eP("error",e.message)}},eS=async e=>
1{try{let[t,a]=await Promise.all([c.W.fetchApplicationUpdateLogs(e),c.W.fetchApplicationStatusLogs(e)]);if((null==t?void 0:t.success)&&(null==a?void 0:a.success))eu({...ep,updateLog:t.data||[],stateLog:a.data||[]});else{let e=(null==t?void 0:t.message)||(null==a?void 0:a.message)||"Failed to fetch logs";console.error("Error",e),eP("error",e)}}catch(e){console.error("Error fetching application logs:",e),eP("error",e.message||"An unexpected error occurred")}};(0,P.useEffect)(()=>{Q(!0),Promise.all([eC(null==er?void 0:er.applicationStage,null==er?void 0:er.applicationType),ew()]).then(e=>{Q(!1)})},[eg]);let eP=(e,t)=>{ei({type:e,message:t}),setTimeout(()=>{ei({type:null,message:""})},2e3)},ek=et.reduce((e,t)=>(e[t.fieldName]=t.displayFieldLabel,e),{}),eF=null==(a=er.documents)?void 0:a.map(e=>{let t=new Date(er.updatedAt),a=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0"),r="".concat(a,"-").concat(l,"-").concat(i),o=t.getHours(),n=t.getMinutes(),c="".concat((o+11)%12+1,".").concat(n.toString().padStart(2,"0")," ").concat(o>=12?"pm":"am");return{fileType:e.fileType,fileName:e.originalFileName,uploadTime:"".concat(r," | ").concat(c),imageCDNUrl:e.imageCDNUrl}}),eE=null==(C=er.postProjectDocuments)?void 0:C.map(e=>{let t=new Date(null==e?void 0:e.createdAt),a=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0"),r="".concat(a,"-").concat(l,"-").concat(i),o=t.getHours(),n=t.getMinutes(),c="".concat((o+11)%12+1,".").concat(n.toString().padStart(2,"0")," ").concat(o>=12?"pm":"am");return{fileType:e.fileType,fileName:e.originalFileName,uploadTime:"".concat(r," | ").concat(c),imageCDNUrl:e.imageCDNUrl}}),eD=["projectEstimatedCostBusinessCase","projectEstimatedCostRetrofitCoordinator","projectActualCostBusinessCase","projectActualCostRetrofitCoordinator","businessCaseRetrofitsStatus"],eB=e=>{if(!eD.includes(null==e?void 0:e.fieldName))return!0;let t=null==e?void 0:e.condition;if(!t||"string"!=typeof t)return!0;let[a,l]=t.split(":").map(e=>e.trim()),i=null==eN?void 0:eN[a];return Array.isArray(i)?i.includes(l):i===l},eT=e=>e.filter(eB).map((t,a)=>{let{fieldName:i}=t,r=null==eN?void 0:eN[i],o="string"==typeof r&&(0,E.t_)(r)||"object"==typeof r&&null!==r,n=o?null:Array.isArray(r)?r.map((e,t)=>(0,l.jsx)(d.A,{className:"bg-gray-200 text-gray-800 px-2 py-1 rounded text-sm",children:e},t)):"number"!=typeof r&&isNaN(Number(r))?(null==r?void 0:r.toString())||"--":(e=>"number"==typeof e?"$ ".concat(e.toLocaleString()):isNaN(Number(e))?e:"$ ".concat(Number(e).toLocaleString()))(r);return(0,l.jsxs)("div",{className:"px-[24px]",children:[(0,l.jsxs)("div",{className:"flex w-full items-center gap-4 py-4",children:[(0,l.jsx)("div",{className:"w-1/2 flex items-center",children:(0,l.jsx)(p.A,{variant:"body2",color:"#00000099",className:"py-[8px]",children:ek[i]||i})}),(0,l.jsx)("div",{className:"w-1/2",children:o?(0,l.jsx)("div",{className:"py-[8px]",children:(0,E.VH)(r)}):(0,l.jsx)(p.A,{variant:"body2",color:"textPrimary",className:"py-[8px] flex flex-wrap gap-2 break-words break-all min-w-0",children:n})})]}),a!==e.length-1&&(0,l.jsx)(u.A,{component:"li",color:"backgroundVariants.lgrey",className:"list-none"})]},i)}),eR=et.reduce((e,t)=>(e[t.stepName]||(e[t.stepName]=[]),e[t.stepName].push(t),e),{}),e_=eR["Service Provider"]||[],eL=eR["Project Details"]||[],eM=(0,m.A)(s.A.breakpoints.up(1200)),eW=[{title:X("changeFrom"),value:"changedFrom"},{title:X("changeTo"),value:"changedTo"},{title:X("dateTime"),value:"dateTime"},{title:X("notes"),value:"notes"},{title:X("updatedBy"),value:"updatedBy"}],eI=[{title:X("changes"),value:"changes"},{title:X("dateTime"),value:"dateTime"},{title:X("updatedBy"),value:"updatedBy"}],eU=e=>{if(!e)return"—";let t=new Date(e),a=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0"),r=t.getHours(),o=String(t.getMinutes()).padStart(2,"0"),n="".concat((r+11)%12+1,":").concat(o," ").concat(r>=12?"pm":"am");return"".concat(a,"-").concat(l,"-").concat(i," | (").concat(n,")")},eV=0===em?eW:eI,eO={color:"#343A40",fontSize:14,fontWeight:400,fontFamily:"Roboto",border:"1px solid #E9ECEF"},eH=[{id:"totalProjectCost",label:X("totalProjectCost")},{id:"eligibleProjectCost",label:X("eligibleProjectCost")},{id:"maxFundingAmount",label:X("maxFundingAmount")}
1],eq=[{totalProjectCost:(null==er?void 0:er.projectCost)||"--",eligibleProjectCost:(null==er?void 0:er.projectEligibleCost)||"--",maxFundingAmount:(null==er?void 0:er.calculatedEligibleAmount)||"--"}],eY=[{id:"reviewerEstimatedEligibleProject",label:X("reviewerEstimatedEligibleProject")},{id:"reviewerEstimatedFundingAmount",label:X("reviewerEstimatedFundingAmount")},{id:"preApprovalExpirationDate",label:X("preApprovalExpirationDate")}],ez=[{reviewerEstimatedEligibleProject:(null==er?void 0:er.reviewerEstimatedEligibleProject)||"--",reviewerEstimatedFundingAmount:(null==er?void 0:er.reviewerEstimatedFundingAmount)||"--",preApprovalExpirationDate:ej(null==er?void 0:er.preApprovalExpirationDate)||"--"}],eG=[{id:"actualProjectCost",label:X("actualProjectCost")},{id:"actualProjectEligibleCost",label:X("actualProjectEligibleCost")},(null==er?void 0:er.applicationStage)==="Payment"?{id:"reviewerEstimatedActualProjectCost",label:X("reviewerEstimatedActualProjectCost")}:null,(null==er?void 0:er.applicationStage)==="Payment"?{id:"reviewerRecommendedFundingAmount",label:X("reviewerRecommendedFundingAmount")}:null].filter(Boolean),e$=[{actualProjectCost:(null==er?void 0:er.actualProjectCost)||"--",actualProjectEligibleCost:(null==er?void 0:er.actualProjectEligibleCost)||"--",...(null==er?void 0:er.applicationStage)==="Payment"&&{reviewerEstimatedActualProjectCost:(null==er?void 0:er.reviewerEstimatedActualProject)||"--",reviewerRecommendedFundingAmount:(null==er?void 0:er.reviewerRecomendedFundingAmount)||"--"}}],eK=["actualProjectStartDate","actualProjectEndDate","projectActualCostBusinessCase","projectActualCostRetrofitCoordinator","businessCaseRetrofitsStatus","actualProjectCost","actualProjectEligibleCost"],eX=["projectExternalFunding","projectExternalFundingSources","projectExternalFundingValue","projectOtherNRCanFunding"],eJ=eL.filter(e=>eK.includes(e.fieldName)),eQ=eL.filter(e=>eX.includes(e.fieldName)),eZ=eL.filter(e=>!eX.includes(e.fieldName)),e0=eL.filter(e=>eX.includes(e.fieldName)),e1=[{label:X("postProject.fieldName1"),value:(null==er||null==(R=er.payee)?void 0:R.fullLegalName)||"--"},{label:X("postProject.fieldName2"),value:(null==er||null==(M=er.payee)?void 0:M.address)||"--"},{label:X("postProject.fieldName4"),value:(null==er||null==(W=er.payee)?void 0:W.mobile)||"--"}];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(_(),{children:[(0,l.jsx)("meta",{name:"viewport",content:"initial-scale=1, width=device-width"}),(0,l.jsx)("title",{children:"BOMA Enspire | View Application"}),(0,l.jsx)("meta",{name:"description",content:"BOMA Enspire participant portal. Manage your building profile, access resources, track applications, and engage with program initiatives."}),(0,l.jsx)("meta",{name:"keywords",content:"BOMA Enspire portal,building retrofit dashboard,program participant area, energy efficiency resources, building performance tracking"}),(0,l.jsx)("meta",{property:"og:title",content:"BOMA Enspire Program Portal"}),(0,l.jsx)("meta",{property:"og:description",content:"Access your participant dashboard to manage building profiles, track applications, and utilize program resources"}),(0,l.jsx)("meta",{property:"og:image",content:"https://bomaenspire.ca/_next/static/media/shutterstock.d7df94fd.svg"}),(0,l.jsx)("meta",{property:"og:url",content:"https://bomaenspire.ca/"}),(0,l.jsx)("meta",{property:"og:type",content:"website"}),(0,l.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,l.jsx)("meta",{name:"twitter:title",content:"BOMA Enspire Program Portal"}),(0,l.jsx)("meta",{name:"twitter:description",content:"Your dashboard for managing building profiles, tracking applications, and accessing exclusive program resources."}),(0,l.jsx)("meta",{name:"twitter:image",content:"https://bomaenspire.ca/_next/static/media/shutterstock.d7df94fd.svg"})]}),(0,l.jsx)(o.A,{breadcrumbs:eh,children:(0,l.jsx)(o.c,{loading:J,children:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"p-[20px] md:px-[35px] py-[10px]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-[20px] md:gap-[30px] p-[20px] rounded-[10px]",style:{backgroundColor:s.A.palette.backgroundVariants.light},children:[(0,l.jsxs)(p.A,{variant:"mainH4",className:"text-center",color:"primary.main",children:[X("viewApplication.appI
1d")," ",(null==er?void 0:er.applicationId)||"--"]}),(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,l.jsx)(p.A,{variant:"mainBody3",color:"grayColors.darker",children:X("viewApplication.appStage")}),(0,l.jsx)(p.A,{variant:"text22",color:"textColors.quaternary",children:null==er?void 0:er.applicationStage})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,l.jsx)(p.A,{variant:"mainBody3",color:"grayColors.darker",children:X("viewApplication.appStatus")}),(0,l.jsx)(p.A,{variant:"mainBody2",color:"primary.contrastText",className:"".concat((e=>{switch(e){case"Application Draft Submitted":return"bg-[#174992]";case"Application Rejected":case"Ineligible For Funding":return"bg-[#EC3838]";case"Application Information Requested":case"Application Waitlisted":return"bg-[#ED901F]";case"Application Draft Approved":case"Application Submitted":return"bg-[#009639]";default:return"bg-gray-400"}})(null==er?void 0:er.applicationStatus)," px-[9px] py-[6px] font-bold rounded text-center"),children:(null==er?void 0:er.applicationStatus)||"--"})]})]}),(null==er?void 0:er.applicationStatus)==="Ineligible For Funding"&&(null==er?void 0:er.ineligibleReason)&&(0,l.jsxs)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main,borderColor:s.A.palette.grayColors.darker,borderWidth:"0.5px"},className:"rounded-[10px] py-[15px] md:py-[20px] px-[18px] md:px-[24px] flex flex-col gap-[20px]",children:[(0,l.jsx)(p.A,{variant:"mainBody2",color:"grayColors.darker",children:X("postProject.marked")}),(0,l.jsx)("div",{style:{borderColor:s.A.palette.grayColors.darker,backgroundColor:s.A.palette.grayColors.medium},className:"border rounded-[10px] p-[15px]",children:(0,l.jsx)(p.A,{variant:"mainBody3",color:"grayColors.darker",children:(0,E.dG)((null==er?void 0:er.ineligibleReason)||"N/A")})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("viewApplication.property")}),(0,l.jsxs)("div",{className:"mt-[10px] relative bg-[#1B9DF026] w-full rounded-[10px] py-[18px] pl-[24px] overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(p.A,{variant:"body3",color:"textColors.quaternary",children:(null==er||null==(I=er.property)?void 0:I.propertyId)||"--"}),(0,l.jsx)(p.A,{variant:"body4",color:"text.secondary",className:"font-medium",children:(null==er||null==(V=er.property)||null==(U=V.id)?void 0:U.propertyLocation)||"--"}),(0,l.jsx)(p.A,{variant:"body3",color:"textColors.quaternary",children:(null==eN||null==(H=eN.property)||null==(O=H.id)?void 0:O.grossFloorAreaSft)?(0,l.jsxs)(l.Fragment,{children:[null==(q=Number(null==eN||null==(z=eN.property)||null==(Y=z.id)?void 0:Y.grossFloorAreaSft))?void 0:q.toLocaleString()," ",X("viewApplication.sqFeet")]}):"--"})]}),(0,l.jsx)(w(),{src:N.A,alt:"SustainibilityIcon",className:"absolute bottom-[-2px] right-0 opacity-[.35]"})]})]}),((null==er?void 0:er.applicationStatus)==="Application Information Requested"||(null==er?void 0:er.applicationStatus)==="Application Waitlisted")&&(0,l.jsxs)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main,borderColor:s.A.palette.grayColors.darker,borderWidth:"0.5px"},className:"rounded-[10px] py-[15px] md:py-[20px] px-[18px] md:px-[24px] flex flex-col gap-[20px]",children:[(0,l.jsx)(p.A,{variant:"mainBody2",color:"grayColors.coolDark",children:X("viewApplication.notes")}),(0,l.jsx)("div",{style:{backgroundColor:s.A.palette.grayColors.medium,borderColor:s.A.palette.grayColors.darker},className:"border rounded-[10px] p-[15px]",children:(0,l.jsx)(p.A,{variant:"mainBody3",color:"grayColors.coolDark",children:(0,E.dG)(null==er?void 0:er.info)})})]}),e_.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("viewApplication.serviceProvider")}),(0,l.jsx)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main},className:"rounded-[10px] overflow-y-scroll max-h-[330px] mt-[10px]",children:eT(e_)})]}),((null==er?void 0:er.applicationStage)==="Post-Project"||(null==er?void 0:er.applicationStage)==="Payment")&&(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("projectCosting")}),(0,l.jsxs)("div",{className:"mt-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"body5",children:X("preProjectCosting")}),(0,l.jsx)(L.A,{columns:eH,tableData:eq}),(0,l.jsx)("div",{className:"mt-4"}),(0,l.jsx)(L.A,{columns:eY,tableData:ez})]}),(0,l.jsx)("div",{className:"mt-4"}),(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"body5",children:X("postProjectCosting")}),(0,l.jsx)(L.A,{columns:eG,tableData:e$})]})]})]}),((null==er?void 0:er.applicationStage)==="Pre-Project"||(null==er?void 0:er.applicationStage)==="Pre-Approval")&&eL.length>0?(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("viewApplication.projectDetails")}),(0,l.jsx)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main},className:"rounded-[10px] mt-[10px] md:mb-[30px] mb-[20px]",children:eT(eZ)}),(0,l.jsx)(p.A,{variant:"text22",children:X("viewApplication.externalFunding")}),(0,l.jsx)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main},className:"rounded-[10px] mt-[10px]",children:eT(e0)})]}):(0,l.jsxs)(l.Fragment,{children:[eL.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("viewApplication.projectDetails")}),(0,l.jsx)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main},className:"rounded-[10px] mt-[10px]",children:eT(eL.slice(0,2))})]}),eL.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("postProject.detailHeading")}),(0,l.jsx)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main},className:"rounded-[10px] mt-[10px]",children:eT(eL.slice(2).filter(e=>!eK.includes(e.fieldName)&&!eX.includes(e.fieldName)))})]})]}),((null==er?void 0:er.applicationStage)==="Post-Project"||(null==er?void 0:er.applicationStage)==="Payment")&&(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("postProject.detailHeading2")}),(0,l.jsx)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main},className:"rounded-[10px] mt-[10px] md:mb-[30px] mb-[20px]",children:eT(eJ)}),(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("viewApplication.externalFunding")}),(0,l.jsx)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main},className:"rounded-[10px] mt-[10px]",children:eT(eQ)})]})]}),((null==er?void 0:er.applicationStage)==="Post-Project"||(null==er?void 0:er.applicationStage)==="Payment")&&(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("postProject.payeeDetails")}),(0,l.jsx)("div",{style:{backgroundColor:s.A.palette.backgroundColor.main},className:"rounded-[10px] mt-[10px]",children:(0,l.jsx)(d.A,{style:{backgroundColor:s.A.palette.backgroundColor.main},className:"rounded-[10px]",children:e1.map((e,t)=>(0,l.jsxs)("div",{className:"px-[24px]",children:[(0,l.jsxs)("div",{className:"flex w-full items-center gap-4 py-4",children:[(0,l.jsx)("div",{className:"w-1/2 flex items-center",children:(0,l.jsx)(p.A,{variant:"body2",color:"textSecondary",className:"py-[8px]",children:e.label})}),(0,l.jsx)("div",{className:"w-1/2",children:(0,l.jsx)(p.A,{variant:"body2",color:"textPrimary",className:"py-[8px] flex flex-wrap gap-2 break-words break-all min-w-0",children:e.value})})]}),t!==e1.length-1&&(0,l.jsx)(u.A,{component:"li",style:{backgroundColor:s.A.palette.backgroundVariants.lgrey},className:"list-none"})]},t))})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("viewApplication.documents")}),(0,l.jsx)(n.A,{className:"mt-[10px]",rows:eF,columns:ef,scrollable:!1,title:X((null==er?void 0:er.applicationStage)==="Pre-Project"||(null==er?void 0:er.applicationStage)==="Pre-Approval"?"uploadFile":"preUploadedFiles")})]}),((null==er?void 0:er.applicationStage)==="Post-Project"||(null==er?void 0:er.applicationStage)==="Payment")&&(0,l.jsx)("div",{children:(0,l.jsx)(n.A,{className:"mt-[10px]",rows:eE,columns:ef,title:X("postUploadedFiles"),scrollable:!1})}),((null==er?void 0:er.applicationStage)==="Pre-Approval"||(null==er?void 0:er.applicationStage)==="Post-Project"||(null==er?void 0:er.applicationStage)==="Payment")&&(0,l.jsx)("div",{className:"px-[10px] pt-[15px] pb-[10px] rounded-[10px]",style:{backgroundColor:s.A.palette.grayColors.medium},children:(0,l.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,l.jsxs)("div",{className:"flex justify-between cursor-pointer",onClick:()=>ed(!es),children:[(0,l.jsx)(p.A,{variant:"mainH5",color:"textColors.meta",children:X("viewApplication.preApprovalDetails")}),(0,l.jsxs)("div",{className:"flex gap-[10px] items-center",children:[(0,l.jsx)(p.A,{variant:"button3",color:"grayColors.darker",children:X(es?"viewMore":"viewLess")}),(0,l.jsx)(w(),{src:T.A,alt:"Toggle Arrow",className:"transition-transform duration-300 ".concat(es?"rotate-180":"")})]})]}),(0,l.jsx)("div",{className:"transition-all duration-500 ease-in-out overflow-hidden ".concat(es?"max-h-0 opacity-0":"max-h-[1000px] opacity-100"," rounded-[10px]"),style:{backgroundColor:s.A.palette.backgroundVariants.light},children:eb.map((e,t)=>(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"grid grid-cols-2",children:[(0,l.jsx)(p.A,{variant:"mainBody3",className:"p-[24px]",color:"grayColors.darker",children:null==e?void 0:e.fieldName}),(0,l.jsx)(p.A,{color:"textColors.tertiary",variant:"button3",className:"text-end p-[24px]",children:null==e?void 0:e.date})]}),eb.length-1!==t&&(0,l.jsx)(u.A,{className:"bg-[".concat(s.A.palette.backgroundVariants.lgrey,"]")})]},t))}),(null==er?void 0:er.applicationStage)==="Pre-Approval"&&((null==er?void 0:er.applicationStatus)==="Application Draft Approved"||(null==er?void 0:er.applicationStatus)==="Application Submitted")&&(null==er||null==(G=er.info)?void 0:G.trim())&&(0,l.jsxs)("div",{className:"border-[0.5px] bg-[".concat(s.A.palette.backgroundColor.main,"] rounded-[10px] border-[").concat(s.A.palette.grayColors.darker,"] py-[15px] md:py-[20px] px-[18px] md:px-[24px] flex flex-col gap-[20px] mt-2"),style:{backgroundColor:s.A.palette.backgroundVariants.light},children:[(0,l.jsx)(p.A,{variant:"mainBody2",color:"grayColors.coolDark",children:X("viewApplication.draftApprovedMessage")}),(0,l.jsx)("div",{className:"border border-[".concat(s.A.palette.grayColors.darker,"] bg-[").concat(s.A.palette.grayColors.medium,"] rounded-[10px] p-[15px]"),children:(0,l.jsx)(p.A,{variant:"mainBody3",color:"grayColors.coolDark",children:(0,E.dG)(null==er?void 0:er.info)})})]})]})}),(0,l.jsxs)("div",{children:[(0,l.jsx)(p.A,{variant:"text22",children:X("viewApplication.logs")}),(0,l.jsxs)("div",{className:"mt-[10px]",children:[(0,l.jsx)(x.A,{value:em,onChange:(e,t)=>
1{ex(t)},"aria-label":"events status tab",variant:eM?"fullWidth":"scrollable",className:"w-full md:w-[715px] overflow-y-hidden ",sx:{"& .MuiTabs-indicator":{backgroundColor:"#174992"},overflowY:"hidden"},children:Object.entries(ev).map((e,t)=>{let[a,i]=e;return(0,l.jsx)(g.A,{label:(0,l.jsx)(p.A,{variant:"body5",textTransform:"none",children:i})},a)})}),(0,l.jsx)("div",{className:"mt-6",children:(0,l.jsx)(v.A,{component:A.A,elevation:0,className:"max-h-[400px] overflow-y-auto border border-[".concat(s.A.palette.backgroundVariants.greyAlt,"]"),children:(0,l.jsxs)(h.A,{stickyHeader:!0,className:"min-w-[650px]","aria-label":"application log table",children:[(0,l.jsx)(j.A,{children:(0,l.jsx)(b.A,{children:eV.map((e,t)=>(0,l.jsx)(y.A,{className:"font-['Roboto'] text-[16px] font-normal leading-[21px] border",style:{color:s.A.palette.grayColors.darker,backgroundColor:s.A.palette.backgroundColor.main,borderColor:s.A.palette.grayColors.medium},children:e.title},t))})}),(0,l.jsx)(f.A,{children:(0===em?ep.stateLog:ep.updateLog).map((e,t)=>{var a,i,r;return(0,l.jsx)(b.A,{sx:{backgroundColor:t%2==0?"#F8F9FA":"white","&:hover":{backgroundColor:"#F1F1F1"}},children:0===em?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y.A,{sx:eO,children:(null==e?void 0:e.previousApplicationStage)&&(null==e?void 0:e.changedFrom)?"".concat(e.previousApplicationStage," - ").concat(e.changedFrom):(null==e?void 0:e.previousApplicationStage)||(null==e?void 0:e.changedFrom)||"—"}),(0,l.jsx)(y.A,{sx:eO,children:(null==e?void 0:e.applicationStage)&&(null==e?void 0:e.changedTo)?"".concat(e.applicationStage," - ").concat(e.changedTo):(null==e?void 0:e.applicationStage)||(null==e?void 0:e.changedTo)||"—"}),(0,l.jsx)(y.A,{sx:eO,children:eU((null==e?void 0:e.changedAt)||(null==e?void 0:e.createdAt))}),(0,l.jsx)(y.A,{sx:eO,children:(null==e?void 0:e.notes)?(0,E.dG)(e.notes):"—"}),(0,l.jsx)(y.A,{sx:eO,children:(null==e||null==(a=e.createdBy)?void 0:a.name)||(null==e||null==(i=e.changedBy)?void 0:i.name)||"—"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y.A,{sx:eO,children:(null==e?void 0:e.details)?(0,E.dG)(e.details):"—"}),(0,l.jsx)(y.A,{sx:eO,children:eU(null==e?void 0:e.createdAt)}),(0,l.jsx)(y.A,{sx:eO,children:(null==e||null==(r=e.changedBy)?void 0:r.name)||"—"})]})},e._id||t)})})]})})})]})]})]})})})})}),Z&&(0,l.jsx)(i.A,{isOpen:Z,onClose:()=>{ee(!1),ew()},selectedApplication:er}),el.type&&(0,l.jsx)("div",{children:(0,l.jsx)(r.A,{type:el.type,message:el.message,handleToggle:!0})})]})}},15815:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-applications/[id]",function(){return a(2621)}])},18452:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l={src:"/_next/static/media/ArrowUpBgWhite.21fe9622.svg",height:35,width:35,blurWidth:0,blurHeight:0}},61445:(e,t,a)=>{"use strict";a.d(t,{c:()=>A,A:()=>h});var l=a(37876);a(14232);var i=a(4657),r=a(59480),o=a(82777),n=a(11806);let c=e=>{let{paths:t}=e;return console.log("breadcrumb component paths:-",t),(0,l.jsx)(i.A,{"aria-label":"breadcrumb",sx:{"& .MuiBreadcrumbs-separator":{fontSize:"24px",fontWeight:600,color:"text.secondary"}},children:null==t?void 0:t.map((e,a)=>{let i=a===t.length-1;return(0,l.jsx)(l.Fragment,{children:(null==e?void 0:e.url)===""?(0,l.jsx)(o.A,{color:i?"text.primary":"inherit",sx:{lineHeight:1.15,fontWeight:500},variant:"text22",children:(0,n.t)(e.label)}):(0,l.jsx)(o.A,{sx:{lineHeight:1.15,fontWeight:500},variant:"text22",children:(0,l.jsx)(r.A,{underline:"hover",color:i?"text.primary":"inherit",href:e.url,"aria-current":i?"page":void 0,children:(0,n.t)(e.label)},e.label)})})})})};var s=a(69585),d=a(89099),p=a.n(d),u=a(54587),m=a.n(u);let x={src:"/_next/static/media/backIcon.54b03511.png",height:24,width:24,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAFVBMVEUAAAAAAAAAAAAAAAAAAABMaXEAAAAtOhh2AAAAB3RSTlNREiVpWwA57jv6bwAAAAlwSFlzAAALEwAACxMBAJqcGAAAACtJREFUeJxFi7ENADAMg7Bj9/+TOzXdkAAqElQ0bj0CF9WQzvhoIV9t/PYLF6cApy0sZe8AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8};var g=a(89408),v=a(71516);let A=e=>{let{children:t,loading:a=!1}=e;return(0,l.jsx)("div",{className:"".concat(a?"h-full":""," flex flex-col grow-0 md:grow"),children:a?(0,l.jsx)("div",{className:"h-full flex flex-1 items-center justify-center flex-col",children:(0,l.jsx)(g.A,{})}):t})},h=e=>{let{children:t,breadcrumbs:a,footer:i,className:r}=e,o=i?"h-[87vh] sm:h-[90vh] md:h-full pb-[36px] md:pb-0":"max-h-[87vh] sm:max-h-[90vh] md:max-h-full";return(0,l.jsxs)("div",{className:"".concat(r," flex flex-col space-y-5 ").concat(o),children:[(0,l.jsx)("div",{className:"px-[0.5rem] pb-[0.5rem] pt-[10px] sm:px-10 sm:pb-10 flex flex-col gap-4 border-b border-[black] uppercase",children:(0,l.jsxs)("div",{className:"flex items-center gap-[10px]",children:[(0,l.jsx)("div",{className:"w-[24px] h-[24px]",children:(0,l.jsx)(s.A,{onClick:()=>(()=>
1{let e=p().asPath.split("?")[0].split("/").filter(Boolean),t="/";e[0]&&(t=e[0]),p().replace("/".concat(t))})(),className:"w-[24px] h-[24px]",sx:{padding:0},children:(0,l.jsx)(m(),{src:x,alt:"BackIcon",width:24,height:24,className:"w-full h-[24px]"})})}),(0,l.jsx)("div",{children:(0,l.jsx)(c,{paths:a})})]})}),(0,l.jsx)("div",{className:"overflow-auto ".concat(i?"max-h-[calc(100%-200px)] md:h-full grow-0 md:grow":""),children:t}),i&&(0,l.jsx)("div",{className:"border-t border-[".concat(v.A.palette.borderColors.primary,"] py-[20px] px-[0.5rem] sm:px-10 w-full flex justify-end"),children:i})]})}},69361:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var l=a(37876);a(14232);var i=a(53318),r=a(42008),o=a(93032),n=a(58311),c=a(34051),s=a(40872),d=a(69233),p=a(4526),u=a(82777),m=a(13473),x=a(73665);let g=e=>{let{columns:t,tableData:a}=e,g=(0,x.A)(),v=(0,i.A)(g.breakpoints.down("sm")),A=e=>e?"$ ".concat(parseFloat(e).toLocaleString(void 0,{minimumFractionDigits:2})):"-",h=["maxFundingAmount","eligibleProjectCost","totalProjectCost","reviewerEstimatedEligibleProject","reviewerEstimatedFundingAmount","actualProjectCost","actualProjectEligibleCost","reviewerEstimatedActualProjectCost","reviewerRecommendedFundingAmount"];return(0,l.jsx)(r.A,{children:v?(0,l.jsx)(r.A,{children:(null==a?void 0:a.length)>0?a.map((e,a)=>(0,l.jsx)(r.A,{className:"border border-[".concat(g.palette.grayColors.medium,"] rounded-[8px] p-[12px_16px] mb-[16px] bg-[").concat(g.palette.backgroundColor.main,"]"),children:t.map((a,i)=>{var o;return(0,l.jsxs)(r.A,{sx:{display:"flex",justifyContent:"space-between",borderBottom:i!==t.length-1?"1px solid #D3D3D3":"none",padding:"8px 0"},children:[(0,l.jsx)(u.A,{variant:"body2",className:"font-semibold text-[".concat(g.palette.grayColors.darker,"] w-[45%]"),children:a.label}),(0,l.jsx)(u.A,{variant:"body3",className:"w-[50%] text-right",children:(null==a?void 0:a.id)==="maxFundingAmount"?A(e[null==a?void 0:a.id]):null!=(o=e[null==a?void 0:a.id])?o:"-"})]},null==a?void 0:a.id)})},a)):(0,l.jsx)(u.A,{className:"text-center mt-2",children:"No data available"})}):(0,l.jsx)(o.A,{component:n.A,elevation:0,className:"rounded-[8px] border border-[".concat(g.palette.grayColors.medium,"]"),children:(0,l.jsxs)(c.A,{className:"border-collapse",children:[(0,l.jsx)(s.A,{children:(0,l.jsx)(d.A,{children:t.map((e,a)=>(0,l.jsx)(p.A,{sx:{width:"".concat(100/t.length,"%"),borderRight:a!==t.length-1?"1px solid #D3D3D3":"none",backgroundColor:"#F9FAFB"},children:(0,l.jsx)(u.A,{variant:"body3",className:"font-semibold text-[".concat(g.palette.grayColors.darker,"]"),children:null==e?void 0:e.label})},null==e?void 0:e.id))})}),(0,l.jsx)(m.A,{children:(null==a?void 0:a.length)>0?a.map((e,a)=>(0,l.jsx)(d.A,{children:t.map((a,i)=>{var r;return(0,l.jsx)(p.A,{sx:{borderRight:i!==t.length-1?"1px solid #D3D3D3":"none"},children:(0,l.jsx)(u.A,{variant:"body2",children:h.includes(null==a?void 0:a.id)?A(e[null==a?void 0:a.id]):null!=(r=e[null==a?void 0:a.id])?r:"-"})},null==a?void 0:a.id)})},a)):(0,l.jsx)(d.A,{children:(0,l.jsx)(p.A,{colSpan:t.length,align:"center",className:"border-b-0 text-center",children:"No data available"})})})]})})})}}},e=>{e.O(0,[9422,4808,6486,7675,8383,5820,3417,6716,7008,406,9662,7001,6063,7985,5377,6915,5059,735,1834,636,6593,8792],()=>e(e.s=15815)),_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.