1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3255],{93162:function(t,a,n){var o,l;void 0!==(l="function"==typeof(o=function(){"use strict";function c(t,a,n){var o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){l(o.response,a,n)},o.onerror=function(){console.error("could not download file")},o.send()}function d(t){var a=new XMLHttpRequest;a.open("HEAD",t,!1);try{a.send()}catch(t){}return 200<=a.status&&299>=a.status}function e(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(a)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,n,o){var l=a.URL||a.webkitURL,i=document.createElement("a");n=n||t.name||"download",i.download=n,i.rel="noopener","string"==typeof t?(i.href=t,i.origin===location.origin?e(i):d(i.href)?c(t,n,o):e(i,i.target="_blank")):(i.href=l.createObjectURL(t),setTimeout(function(){l.revokeObjectURL(i.href)},4e4),setTimeout(function(){e(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,a,n){if(a=a||t.name||"download","string"!=typeof t){var o;navigator.msSaveOrOpenBlob((void 0===(o=n)?o={autoBom:!1}:"object"!=typeof o&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t),a)}else if(d(t))c(t,a,n);else{var l=document.createElement("a");l.href=t,l.target="_blank",setTimeout(function(){e(l)})}}:function(t,n,l,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return c(t,n,l);var s="application/octet-stream"===t.type,r=/constructor/i.test(a.HTMLElement)||a.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&r||o)&&"undefined"!=typeof FileReader){var h=new FileReader;h.onloadend=function(){var t=h.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},h.readAsDataURL(t)}else{var p=a.URL||a.webkitURL,m=p.createObjectURL(t);i?i.location=m:location.href=m,i=null,setTimeout(function(){p.revokeObjectURL(m)},4e4)}});a.saveAs=l.saveAs=l,t.exports=l})?o.apply(a,[]):o)&&(t.exports=l)},41006:function(t,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/company/application",function(){return n(60823)}])},80005:function(t,a,n){"use strict";n.d(a,{Z:function(){return Paginator}});var o=n(85893);function Paginator(t){let{page:a,setPage:n,size:l}=t,addPageButton=t=>(0,o.jsx)("button",{className:"mx-2 px-2 py-1 rounded ".concat(1===l?"hidden":""," ").concat(a===t?"bg-[#AD8B19] text-[#ffffff]":"text-[#ACACAC]"),onClick:()=>n(t),children:t+1},t),addEllipsis=t=>(0,o.jsx)("span",{className:"mx-2",children:"..."},t),buildInitialPages=()=>{let t=[];for(let a=1;a<5;a++)t.push(addPageButton(a));return t.push(addEllipsis("ellipsis-right")),t},buildFinalPages=()=>{let t=[addEllipsis("ellipsis-left")];for(let a=l-5;a<l-1;a++)t.push(addPageButton(a));return t},buildMiddlePages=()=>{let t=[addEllipsis("ellipsis-left")];for(let n=a-1;n<=a+1;n++)t.push(addPageButton(n));return t.push(addEllipsis("ellipsis-right")),t};return!l||l<2?null:(0,o.jsx)("div",{className:"flex justify-center my-4",children:(()=>{let t=[addPageButton(0)];if(l<=7)for(let a=1;a<l-1;a++)t.push(addPageButton(a));else{let n=[];n=a<4?buildInitialPages():a>=l-5?buildFinalPages():buildMiddlePages(),t.push(...n)}return l>1&&t.push(addPageButton(l-1)),t})()})}},88832:function(t,a,n){"use strict";var o=n(85893),l=n(4023),i=n(42746),s=n(30727),r=n(25675),u=n.n(r),h=n(67294),p=n(9198),m=n.n(p);n(35890);var g=n(22920);a.Z=t=>{let{getData:a=()=>{},filters:n,filterSelect:r,handleDateSearchData:p,handleDateSearchFilter:v,yearly:f=!1,handleCompanyNameSearchData:x,setLoa
1ding:b,set:y,forceUpdate:w,afterGetFilter:j=!1,afterGetFilterData:N=()=>{},afterGetFilterPage:S=()=>{},placeholder:D,multiSearch:k=!1,icon:E,getIcon:T}=t;(0,h.useEffect)(()=>{r&&Z(r),k&&W(n[0])},[r,k]);let A=(0,i.useTranslations)("sideBar"),C=(0,i.useTranslations)("tables"),_=(0,i.useTranslations)("buttons"),{token:F,APIURL:P}=(0,l.qD)(),M=(0,h.useMemo)(()=>new s.Z(P,F),[F,P]),[I,R]=(0,h.useState)(!1),[B,L]=(0,h.useState)(!1),[z,O]=(0,h.useState)(!1),[q,V]=(0,h.useState)(""),[U,Z]=(0,h.useState)("nameCompany"),[G,W]=(0,h.useState)({id:"",name:"",endPoint:"",credentials:[],filter:"",dataName:"",placeholder:""}),handleFilterSelect=t=>{Z(t)},handleMultiFilterSelect=t=>{W(t)},[H,X]=(0,h.useState)(null),[K,Y]=(0,h.useState)(null),handleCompanyNameSearch=()=>{L(!0),j?N(q):(b(!0),null==M||M.getList(x[0],x[1],{search:"".concat(x[2],"*").concat(q,"*"),sort:"dateInsert,desc"}).then(t=>{y(x[3],t.data.content),y("pageable",{size:t.data.totalPages})}).catch(t=>{console.error("Error fetching cities:",t)}).finally(()=>{w(),b(!1)}),V(""))},handleMultiFilterSearch=()=>{L(!0),b(!0),null==M||M.getList(G.endPoint,G.credentials,{search:"".concat(G.filter,"*").concat(q,"*"),sort:"dateInsert,desc"}).then(t=>{y(G.dataName,t.data.content),y("pageable",{size:t.data.totalPages})}).catch(t=>{console.error("Error fetching ".concat(G.dataName,":"),t)}).finally(()=>{w(),b(!1)}),V("")};return(0,o.jsxs)("div",{id:"filterButtons",className:" flex gap-[0.6rem]",children:[z&&(0,o.jsxs)(o.Fragment,{children:["nameCompany"===U&&!k&&(0,o.jsxs)("div",{id:"filterInputArea",className:"relative mb-[1rem] lg:mb-0 lg:mt-[0] rounded-xl",children:[(0,o.jsx)("input",{type:"text",className:"w-[15rem] md:w-[30rem] h-[2.813rem] rounded-lg p-[0.5rem] pr-[2rem] border border-[black] ",value:q,onChange:t=>V(t.target.value),placeholder:D,onKeyDown:t=>{"Enter"===t.key&&handleCompanyNameSearch()}}),""!=q&&(0,o.jsx)("button",{onClick:handleCompanyNameSearch,className:"absolute top-0 right-0 bottom-0 flex items-center pr-[0.5rem] hover:cursor-pointer",children:(0,o.jsx)(u(),{style:{width:"auto",height:"auto"},width:16,height:22,src:"/icon/search.svg",alt:"icon",title:"Filtrar"})})]}),k&&U===G.name&&"date"!=U&&(0,o.jsxs)("div",{id:"filterInputArea",className:"relative mb-[1rem] lg:mb-0 lg:mt-[0] rounded-xl",children:[(0,o.jsx)("input",{type:"text",className:"w-[15rem] md:w-[30rem] h-[2.813rem] rounded-lg p-[0.5rem] pr-[2rem] border border-[black] ",value:q,onChange:t=>V(t.target.value),placeholder:G.placeholder,onKeyDown:t=>{"Enter"===t.key&&handleMultiFilterSearch()}}),""!=q&&(0,o.jsx)("button",{onClick:handleMultiFilterSearch,className:"absolute top-0 right-0 bottom-0 flex items-center pr-[0.5rem] hover:cursor-pointer",children:(0,o.jsx)(u(),{style:{width:"auto",height:"auto"},width:16,height:22,src:"/icon/search.svg",alt:"icon",title:"Filtrar"})})]}),"date"===U&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{id:"startDate",className:"relative mb-[1rem] lg:mb-0 lg:mt-[0] rounded-xl",children:[(0,o.jsx)(m(),{selected:H,onChange:t=>{t&&X(t)},dateFormat:f?"yyyy":"dd/MM/yyyy",showYearPicker:f,autoComplete:"off",showPopperArrow:!0,className:"h-[2.5rem] w-[8rem] border rounded-lg border-black pl-[0.5rem] mt-[0.2rem]",placeholderText:C("startDate"),id:"startDate",name:"startDate"}),null!=H&&(0,o.jsx)("button",{onClick:()=>{X(null)},className:"absolute top-0 right-0 bottom-0 flex items-center pr-[0.5rem] hover:cursor-pointer",children:"\xd7"})]}),(0,o.jsxs)("div",{id:"endDate",className:"relative mb-[1rem] lg:mb-0 lg:mt-[0] rounded-xl",children:[(0,o.jsx)(m(),{selected:K,onChange:t=>{t&&Y(t)},dateFormat:f?"yyyy":"dd/MM/yyyy",showYearPicker:f,autoComplete:"off",showPopperArrow:!0,className:"h-[2.5rem] w-[8rem] border rounded-lg border-black pl-[0.5rem] mt-[0.2rem]",placeholderText:C("endDate"),id:"endDate",name:"endDate"}),null!=K&&(0,o.jsx)("button",{onClick:()=>{Y(null)},className:"absolute top-0 right-0 bottom-0 flex items-center pr-[0.5rem] hover:cursor-pointer",children:"\xd7"})]}),(null!=H||null!=K)&&(0,o.jsx)("button",{id:"dateSearchButton",onClick:()=>{let t="";null!=H&&null===K&&(t="".concat(v[0],">=").concat(H.toISOString().split("T")[0])),null===H&&null!=K&&(t="".concat(v[1],"<=").concat(K.toISOString().split("T")[0])),null!=H&&null!=K&&(t="".concat(v[0],">=").concat(H.toISOString().split("T")[0])+","+"".concat(v[1],"<=").concat(K.toISOString().split("T")[0])),L(!0),b(!0),null==M||M.getList(p[0],p[1],{search:t,sort:"dateInsert,desc"}).then(t=>{y(p[2],t.data.content),y("pageable",{size:t.data.totalPages})}).catch(t=>{var a,n,o,l,i,s,r,u,h;console.error("Error fetching diagnosis:",t),g.Am.error((null===(l=t.response)||void 0===l?void 0:null===(o=l.data)||void 0===o?void 0:null===(n=o.errorsDetails)||void 0===n?void 0:null===(a=n.debugMessage[0])||void 0===a?void 0:a.message)||(null===(r=t.response)||void 0===r?void 0:null===(s=r.data)||void 0===s?void 0:null===(i=s.errorsDetails)||void 0===i?void 0:i.debugMessage)||(null===(h=t.response)||void 0===h?void 0:null===(u=h.data)||void 0===u?void 0:u.message))}).finally(()=>{w(),b(!1)})},className:"border border-[#D0D5DD] bg-white rounded-xl px-[0.725rem] py-[0.625rem] hover:cursor-pointer",children:(0,o.jsx)(u(),{style:{width:"auto",height:"auto"},width:16,height:22,src:"/icon/search.svg",alt:"icon",title:"Filtrar"})})]})]}),(0,o.jsx)("button",{id:"searchButton",onClick:()=>{!0===z&&!0===B&&a(),j&&(!0===B&&(N(""),S(1)),T(!E),O(!z),L(!1),V("")),T(!E),O(!z),L(!1),V(""),Y(null),X(null)},className:"border border-[#D0D5DD] bg-white rounded-xl px-[0.725rem] py-[0.625rem] hover:cursor-pointer",children:(0,o.jsx)(u(),{style:{width:"auto",height:"auto"},width:16,height:22,src:z?"/icon/achievedFalse.svg":"/icon/search.svg",alt:"icon",className:z?"mt-[0.2rem]":"",title:z?"Cancelar Filtragem":"Filtrar"})}),n&&(0,o.jsxs)("button",{id:"filterButton",className:"relative border border-[#D0D5DD] bg-white rounded-lg flex justify-evenly gap-[0.5rem] hover:cursor-pointer font-[500] text-[0.875rem] text-[#2B434E] px-[0.5rem] py-[0.625rem]",onClick:()=>R(!I),children:[(0,o.jsx)(u(),{style:{width:"auto",height:"auto"},width:16,height:22,src:"/icon/filterLines.svg",alt:"icon"}),_("filter"),I&&(0,o.jsx)("div",{className:"absolute min-w-[10rem] top-[2.7rem] left-[-4.7rem] border border-[#ceb3b975] bg-white rounded-lg flex flex-col z-40",children:n.map(t=>(0,o.jsx)("button",{className:"cursor-pointer",onClick:()=>{handleFilterSelect(t.name),handleMultiFilterSelect(t)},children:(0,o.jsx)("div",{className:t.name===U?"hidden text-[1rem] interFont ml-[0.1rem]":"text-[1rem] rounded-lg interFont bg-white hover:bg-[#ceb3b975] p-2 min-w-[10rem] flex flex-col items-center ",children:k?A(t.name):C(t.name)})},t.id))})]})]})}},60823:function(t,a,n){"use strict";n.r(a),n.d(a,{default:function(){return Candidaturas}});var o=n(85893),l=n(67294),i=n(25675),s=n.n(i),r=n(4023),u=n(30727),h=n(25724),p=n(33299),m=n(22920),g=n(42746),v=n(80005),f=n(11163),x=n(35773),b=n(88832),y=n(74295),w=n.n(y),j=n(93162);let fetchData=async(t,a)=>{try{let n=await t.getById(a,"applications_projection"),o=n.data.companyName,l=n.data.companySituations,i=n.data.year,s=n.data.sustainabilitySurveyAnswereds.sort((t,a)=>t.order-a.order),r=n.data.applicationFinancialIndicators,u=n.data.isExcellenceCompany,h=n.data;return{companyName:o,companySituations:l,year:i,sustainabilitySurveyAnswereds:s,applicationFinancialIndicators:r,isExcellenceCompany:u,appData:h}}catch(a){var n,o,l,i,s,r,u,h,p,g,v;let t=Array.isArray(null==a?void 0:null===(l=a.response)||void 0===l?void 0:null===(o=l.data)||void 0===o?void 0:null===(n=o.errorsDetails)||void 0===n?void 0:n.debugMessage)?null==a?void 0:null===(h=a.response)||void 0===h?void 0:null===(u=h.data)||void 0===u?void 0:null===(r=u.errorsDetails)||void 0===r?void 0:null===(s=r.debugMessage)||void 0===s?void 0:null===(i=s[0])||void 0===i?void 0:i.message:null==a?void 0:null===(v=a.response)||void 0===v?void 0:null===(g=v.data)||void 0===g?void 0:null===(p=g.errorsDetails)||void 0===p?void 0:p.debugMessage;throw m.Am.error(t),a}};function ApplicationExcelExport(t){let{fileName:a,icon:n=!1,buttonName:i="",typesCriterion:h,id:p}=t,{token:m,APIURL:v}=(0,r.qD)(),x=(0,l.useMemo)(()=>new u.Z(v,m),[m,v]);(0,f.useRouter)();let[b,y]=(0,l.useState)(!1),N=(0,g.useTranslations)("titles"),S=(0,g.useTranslations)("tables");function booleanToString(t){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a?t?S("true"):S("false"):t?S("yes"):S("no")}let handleExport=async()=>{var t,n;let o,l,i,s;try{let t=await fetchData(x,String(p));o=t.appData,t.companyName,l=t.companySituations,t.year,i=t.sustainabilitySurveyAnswereds,s=t.applicationFinancialIndicators,t.isExcellenceCompany}catch(t){y(!1);return}let r=new(w()).Workbook,u=r.addWorksheet(N("indicators"));(null==(t=o)?void 0:null===(n=t.applicationFinancialIndicators)||void 0===n?void 0:n.length)>0&&(u.columns=[{header:"".concat(S("ratio")),key:"ratio",width:40,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}},{header:"".concat(S("formula")),key:"formula",width:40,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}},{header:"".concat(S("period")),key:"period",width:20,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}},{header:"".concat(S("acceptedValue")),key:"acceptedValue",width:20,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}},{header:"".concat(S("achieved")),key:"achieved",width:20,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}}
1,{header:"".concat(S("condition")),key:"condition",width:100,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}}]),s.forEach(t=>{var a,n,o;let l=u.addRow({ratio:null==t?void 0:null===(a=t.criterionRatioDetails)||void 0===a?void 0:a.ratioDescription,formula:null==t?void 0:null===(n=t.criterionRatioDetails)||void 0===n?void 0:n.form,period:null==t?void 0:t.result,acceptedValue:null==t?void 0:null===(o=t.criterionRatioDetails)||void 0===o?void 0:o.value,achieved:booleanToString(null==t?void 0:t.validResult),condition:null==t?void 0:t.observation});l.font={size:12},l.alignment={wrapText:!0}});let h=r.addWorksheet(N("esg"));h.columns=[{header:"".concat(S("description")),key:"question",width:100,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}},{header:"".concat(S("value")),key:"answer",width:50,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}}],i.forEach(t=>{if("MATRIX"===t.typeInputEsg){let a=h.addRow({question:null==t?void 0:t.question});for(let[n,o]of Object.entries(t.matrixAnswers)){let t=h.addRow({question:"\xa0\xa0\xa0\xa0\xa0".concat(n),answer:o});t.font={size:12},t.alignment={wrapText:!0},a.font={size:12},a.alignment={wrapText:!0}}}else{let a=h.addRow({question:null==t?void 0:t.question,answer:(null==t?void 0:t.answer)||booleanToString(null==t?void 0:t.checked)});a.font={size:12},a.alignment={wrapText:!0}}});let m=r.addWorksheet(N("companySituation"));m.columns=[{header:"".concat(S("description")),key:"question",width:100,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}},{header:"".concat(S("value")),key:"answer",width:50,style:{font:{size:15,bold:!0},alignment:{wrapText:!0}}}],l.forEach(t=>{for(let[a,n]of Object.entries(t)){let t=m.addRow({question:n,answer:booleanToString(!0)});t.font={size:12},t.alignment={wrapText:!0}}});let g=await r.xlsx.writeBuffer(),v=new Blob([g],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});(0,j.saveAs)(v,a.replace(/\./g,"_"))};return n?(0,o.jsxs)("button",{onClick:handleExport,className:"active:scale-95 transform ease-in-out button_Export",children:[(0,o.jsx)(s(),{className:"block md:hidden",width:30,height:35,src:"/downloadFileGold.svg",alt:"SVG"}),(0,o.jsx)(s(),{className:"hidden md:block",width:20,height:15,src:"/downloadFileGold.svg",alt:"SVG"})]}):(0,o.jsx)("button",{onClick:handleExport,className:"active:scale-95 transform ease-in-out button_Export hover:!bg-[#AD8B19FF] text-white hover:!text-white",children:(0,o.jsx)("span",{children:i})})}function Candidaturas(){var t,a,n;let i=(0,g.useTranslations)("titles"),y=(0,g.useTranslations)("tables"),w=(0,g.useTranslations)("buttons"),j=(0,g.useTranslations)("toast"),N=(0,f.useRouter)(),{data:S}=(0,p.useSession)(),{token:D,APIURL:k,setCompanyID:E,companyID:T,setLoadError:A}=(0,r.qD)(),[C,_]=(0,l.useState)({}),F=(0,l.useMemo)(()=>new u.Z(k,D),[D,k]),[,P]=(0,l.useState)(),M=(0,l.useCallback)(()=>P({}),[]),[I,R]=(0,l.useState)(0),[B,L]=(0,l.useState)(!1),set=(t,a)=>{_(n=>(n[t]=a,n))},getApplicationForView=t=>{window.location.href="application/"+t},getProcessStatusDisplayColor=(t,a)=>{switch(t){case"VALIDATED":return"font-[500] ".concat(a?"!text-[#ad8b19]":"!text-[#c73d4d]"," ");case"CREATED":return"font-[500] !text-[#7bc3c0]";default:return"font-[500] !text-[#e14847]"}},getProcessStatusDisplayName=t=>{switch(t){case"VALIDATED":return y("evaluated");case"CREATED":return y("pending");default:return y("unqualified")}},getApplicationDate=()=>{D&&(null==F||F.getList("application-launches/current").then(t=>{let a=new Date;set("closestLaunch",t.data),set("myRequest",(0,x.W4)(a)),L(!1)}).catch(t=>{console.log(t,"launches")}))},getData=()=>{if(L(!0),D){if(null===T){var t;F.getById(null==S?void 0:null===(t=S.user)||void 0===t?void 0:t.email,"company-registrations","company-details").then(t=>{localStorage.setItem("companyID",t.data.id),E(t.data.id)}).catch(t=>{E(""),console.log("errorDashboard",t)}).finally(()=>M())}""===T&&N.replace("/company/dashboard"),null!=T&&""!=T&&(null==F||F.getList("applications",[["companies",T]],{page:I,sort:"dateInsert,desc"}).then(t=>{set("applications",t.data.content),A(!1),set("pageable",{size:t.data.totalPages})}).catch(t=>{var a,n,o,l,i,s,r,u,h;A(!0),console.log(t,"applications fetch error"),m.Am.error((null===(l=t.response)||void 0===l?void 0:null===(o=l.data)||void 0===o?void 0:null===(n=o.errorsDetails)||void 0===n?void 0:null===(a=n.debugMessage[0])||void 0===a?void 0:a.message)||(null===(r=t.response)||void 0===r?void 0:null===(s=r.data)||void 0===s?void 0:null===(i=s.errorsDetails)||void 0===i?void 0:i.debugMessage)||(null===(h=t.response)||void 0===h?void 0:null===(u=h.data)||void 0===u?void 0:u.message))}).finally(()=>{M(),L(!1)}))}};(0,l.useEffect)(()=>{getApplicationDate()},[F,T]),(0,l.useEffect)(()=>{getData()},[F,I,T]);let[z,O]=(0,l.useState)(!1);return(null==C?void 0:C.applications)?(0,o.jsx)("div",{children:(0,o.jsxs)("div",{className:"table_Total",children:[(0,o.jsxs)("div",{className:"table_Title",children:[(0,o.jsxs)("h1",{className:"titulo-pagina",children:[" ",i("application")]}),(null==C?void 0:null===(t=C.closestLaunch)||void 0===t?void 0:t.year)&&(0,o.jsx)("a",{href:"/company/balance-sheet",children:(0,o.jsx)("div",{title:"As candidaturas para a distin\xe7\xe3o de Empresa Excel\xeancia do Ano ".concat(C.closestLaunch.year," est\xe3o abertas. N\xe3o perca a oportunidade! Inscreva-se logo!"),className:"font-[600] text-[#ad8b19] cursor-pointer",children:"".concat(j("applicationsOpen")).concat(C.closestLaunch.year)})}),(0,o.jsx)("div",{children:(0,o.jsx)(b.Z,{getData:getData,filterSelect:"date",handleDateSearchData:["applications",[["companies",T]],"applications"],handleDateSearchFilter:["dateInsert","dateInsert"],yearly:!0,set:set,forceUpdate:M,setLoa
1ding:L,icon:z,getIcon:O})})]}),(0,o.jsx)("hr",{className:"border-1 my-6 mt-1 "}),(0,o.jsx)("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,o.jsx)("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:(0,o.jsxs)("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:[(0,o.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,o.jsx)("thead",{className:"bg-gray-50",children:(0,o.jsxs)("tr",{children:[(0,o.jsxs)("th",{scope:"col",className:"diagnostico_head",children:[y("dateApp")," "]}),(0,o.jsxs)("th",{scope:"col",className:"diagnostico_head",children:[" ",i("balances")," "]}),(0,o.jsxs)("th",{scope:"col",className:"diagnostico_head",children:[" ",y("state")," "]}),(0,o.jsxs)("th",{scope:"col",className:"diagnostico_head",children:[" ",y("action")," "]})]})}),(0,o.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:B?(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:5,className:"diagnostico_body_block",children:(0,o.jsx)(h.Z,{})})}):(0,o.jsx)(o.Fragment,{children:null==C?void 0:null===(a=C.applications)||void 0===a?void 0:a.map((t,a)=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{className:"diagnostico_body_block",children:(0,o.jsx)("div",{className:"diagnostico_body",children:(0,x.p6)(t.dateInsert.split(" ")[0])})}),(0,o.jsx)("td",{className:"diagnostico_body_View",children:(0,o.jsx)("div",{className:"diagnostico_body",children:t.currentBalanceSheet})}),(0,o.jsx)("td",{className:"diagnostico_body_block",children:(0,o.jsx)("div",{className:"diagnostico_body ".concat(getProcessStatusDisplayColor(t.processStatus,t.excellenceCompany)),children:getProcessStatusDisplayName(t.processStatus)})}),(0,o.jsx)("td",{className:"diagnostico_body_block",children:(0,o.jsxs)("div",{className:"flex justify-center gap-2 items-center",children:[(0,o.jsx)(ApplicationExcelExport,{id:t.id,icon:!0,dataArray:[t],fileName:"".concat(i("application")," ").concat(t.nameCompany," _ ").concat((0,x.p6)(t.dateInsert.split(" ")[0])),typesCriterion:null==C?void 0:C.typesCriterion}),(0,o.jsxs)("button",{onClick:a=>{getApplicationForView(t.id||"nothing")},className:"text-green-500 hover:text-green-700",title:w("view"),children:[(0,o.jsx)(s(),{className:"block md:hidden",width:30,height:35,src:"/visualizar.svg",alt:"SVG"}),(0,o.jsx)(s(),{className:"hidden md:block",width:20,height:15,src:"/visualizar.svg",alt:"SVG"})]})]})})]},t.id))})})]}),(0,o.jsx)(v.Z,{size:null==C?void 0:null===(n=C.pageable)||void 0===n?void 0:n.size,setPage:R,page:I})]})})})]})}):(0,o.jsx)(h.Z,{})}}},function(t){t.O(0,[8869,8040,9741,9774,2888,179],function(){return t(t.s=41006)}),_N_E=t.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.