1(this["webpackJsonpsecuriwiser-fe"]=this["webpackJsonpsecuriwiser-fe"]||[]).push([[19],{1391:function(e,t,c){"use strict";c.r(t),c.d(t,"FindingAuditQuestion",(function(){return ce}));var s=c(10),i=c(3),a=c(8),n=c(7),r=c(0),l=c(42),d=c(37),o=c(47),j=(c(342),c(326)),u=c(324),b=c(327),m=c(352),O=c(368),h=c(26),x=c(344),v=c(178),p=c(67),f=(c(495),c.p+"static/media/logo.71133cc2.svg"),g=c.p+"static/media/logo_white.ae3d1157.svg",N=c(1),_=function(e){var t=e.num,c=e.color;return Object(N.jsx)("div",{className:"footer",children:Object(N.jsxs)("div",{className:"container",children:[Object(N.jsx)("div",{className:"blank"}),Object(N.jsx)("p",{style:{color:"white"===c?"white":"black"},children:t}),Object(N.jsx)("img",{src:"white"===c?g:f,alt:""})]})})},y=c.p+"static/media/backgrond_smoke.1a4fcf74.jpg",S=function(e){var t=e.companyName,c=e.scanResults;e.currentNum;return Object(N.jsx)("div",{className:"pdf_page conclution",children:Object(N.jsxs)("div",{className:"pdf_content",children:[Object(N.jsx)("h3",{children:"4.0 Conclusion"}),Object(N.jsxs)("div",{className:"text_container",children:[Object(N.jsxs)("p",{children:["The UK government\u2019s National Security strategy acknowledges cyber threats as one of the four major risks to national security.",Object(N.jsx)("br",{}),Object(N.jsx)("br",{}),t," is in the process of developing a robust cyber security strategy to support its future requirements.",Object(N.jsx)("br",{}),Object(N.jsx)("br",{}),null===c||void 0===c?void 0:c.length," recommendations were made following the high-level cyber security audit."]}),Object(N.jsxs)("p",{children:["Implementation of the summary report recommendations was carried out over a period of two weeks. Securiwiser is happy to report that they have not been breached since carrying out Cyber Security Audit.",Object(N.jsx)("br",{}),Object(N.jsx)("br",{}),"Furthermore, thanks to the recommendations of the summary report, Securiwiser had been able to detect and prevent potential malware attacks."]})]}),Object(N.jsx)("p",{children:"For more informations on how Securiwiser can help you establish a solid IT security foundations with our Cyber Security Audit, please email [email protected]."})]})})},A=function(e){var t;return"1"===e&&(t=Object(N.jsx)("p",{className:"category High",children:"High"})),"2"===e&&(t=Object(N.jsx)("p",{className:"category Moderate",children:"Moderate"})),"3"===e&&(t=Object(N.jsx)("p",{className:"category Low",children:"Low"})),t},w=function(e){var t=e.number;return Object(N.jsx)("div",{className:"severity",children:A(t)})};var F=function(e){return function(e){var t;switch(e){case"A":t=Object(N.jsxs)("div",{className:"title color-green",children:[Object(N.jsx)("div",{children:"3.1"}),Object(N.jsxs)("div",{children:["Objective A ",Object(N.jsx)("br",{}),"Managing Security Risks"]})]});break;case"B":t=Object(N.jsxs)("div",{className:"title color-orange",children:[Object(N.jsx)("div",{children:"3.2"}),Object(N.jsxs)("div",{children:["Objective B ",Object(N.jsx)("br",{}),"Managing Security Risks"]})]});break;case"C":t=Object(N.jsx)("div",{className:"title color-red",children:Object(N.jsx)("div",{children:"3.4 C. Detecting Cyber Security Events"})});break;case"D":t=Object(N.jsx)("div",{className:"title color-purpure",children:Object(N.jsx)("div",{children:"3.5 D. Minimising the Impact of Incidents"})});break;default:t="Invalid Key"}return Object(N.jsx)(N.Fragment,{children:t})}(e.number)};var T=function(e){var t=e.scanResults,c=e.companyname,s={};null===t||void 0===t||t.forEach((function(e){var t=e.sectionName.charAt(0).toUpperCase(),c=e.sectionName.charAt(1);s[t]||(s[t]={}),s[t][c]||(s[t][c]=[]),s[t][c].push(e)}));var i=Object.keys(s).sort(),a=6,n=0;return Object(r.useEffect)((function(){var e=function(){for(var e=Array.from(document.getElementsByClassName("pdf_page")),t=0;t<e.length;t++){var c=e[t],s=c.clientHeight,i=s%1123;if(0!==i){var a=s+(1123-i);c.style.height="".concat(a,"px")}}};return setTimeout(e,10),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(N.jsxs)("div",{children:[i.map((function(e){var t=Object.keys(s[e]).sort();return n=a++,Object(N.jsx)("div",{className:"pdf_page lastpages page_".concat(n.toString()),children:Object(N.jsxs)("div",{className:"pdf_content",children:[Object(N.jsx)(F,{number:e}),t.map((function(t){return Object(N.jsxs)("div",{className:"letter_conailer",children:[Object(N.jsx)("h2",{children:s[e][t][0].sectionName}),s[e][t].map((function(e){return Object(N.jsx)("li",{children:Object(N.jsx)("div",{className:"li_list_report",children:Object(N.jsxs)("div",{className:"chidlren",children:[e.failureTitle,Object(N.jsx)(w,{number:e.severity})]})})},e.failureTitle)}))]},t)}))]})},e)})),Object(N.jsx)(S,{companyName:c,currentNum:(n+1).toString(),scanResults:t})]})},C=c(598),k=c.p+"static/media/rigth.6ddc31b6.svg",E=c.p+"static/media/portada.7bf738b0.png",B=c.p+"static/media/pc_img.129629ca.jpg",I=c.p+"static/media/left.77a1123c.svg",R=c(50),D=c(599),L=c.n(D),M=c(398),H=c(399),q=c(400),J=c(401),U=c(402),P=Object(r.forwardRef)((function(e,t){var c,s=Object(r.useState)(null),l=Object(n.a)(s,2),d=l[0],o=l[1],j=(window.location.href.split("/").pop(),Object(r.useState)(null)),u=Object(n.a)(j,2),b=u[0],m=u[1],O=Object(r.useState)(0),x=Object(n.a)(O,2),v=x[0],p=x[1],f=Object(r.useState)(0),g=Object(n.a)(f,2),S=g[0],A=g[1],w=Object(r.useState)(0),F=Object(n.a)(w,2),D=F[0],P=F[1],z=Object(r.useState)(0),Q=Object(n.a)(z,2),W=Q[0],K=Q[1],G=Object(r.useState)("./img/D Icon.svg"),Y=Object(n.a)(G,2),Z=(Y[0],Y[1],Object(r.useState)("")),$=Object(n.a)(Z,2),V=$[0],X=$[1],ee=Object(r.useState)(0),te=Object(n.a)(ee,2),ce=te[0],se=te[1],ie=Object(r.useState)(0),ae=Object(n.a)(ie,2),ne=ae[0],re=ae[1],le=Object(r.useState)([]),de=Object(n.a)(le,2),oe=(de[0],de[1]),je=Object(r.useRef)(null);Object(r.useEffect)((function(){var t;m(e.scanResults),ue(),X(null===(t=e.name)||void 0===t?void 0:t.toUpperCase())}),[]);var ue=function(){var t=Object(R.a)(),c=Object(n.a)(t,2),s=(c[0],c[1]);Object(h.z)(s).then(function(){var t=Object(a.a)(Object(i.a)().mark((function t(c){var s;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=c.data.forms.concat(c.data.userForms),o(JSON.parse(s[e.number].sections));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())};Object(r.useEffect)((function(){var t,c;K(me("1")),se(me("2")),re(me("3"));var s=null===(t=e.scanResults)||void 0===t?void 0:t.reduce((function(e,t){return e+parseFloat(t.weight)}),0),i=null===(c=e.option)||void 0===c?void 0:c.map((function(e){return e.fields.map((function(e){return parseFloat(e.weight)}))})).flat().reduce((function(e,t){return e+t}),0);p(s),A(i),P((i-s)/i*100)}),[]);var be=function(e){var t=null===b||void 0===b?void 0:b.filter((function(t){return t.sectionName.startsWith(e)})).reduce((function(e,t){return e+parseFloat(t.weight)}),0),c=null===d||void 0===d?void 0:d.filter((function(t){return t.section_title.charAt(0).toUpperCase()===e.toUpperCase()})).flatMap((function(e){return e.fields})),s=null===c||void 0===c?void 0:c.reduce((function(e,t){var c=parseFloat(t.weight);return isNaN(c)?e:e+c}),0),i=100*(s-t)/s;return i>=90&&i<=100?Object(N.jsx)("p",{style:{color:"#13C1C2"},children:"A"}):i>
1=75&&i<=89?Object(N.jsx)("p",{style:{color:"#FDBD2C"},children:"B"}):i>=60&&i<=74?Object(N.jsx)("p",{style:{color:"#F0A702"},children:"C"}):i>=40&&i<=59?Object(N.jsx)("p",{style:{color:"#EE4A4E"},children:"D"}):Object(N.jsx)("p",{style:{color:"#E80E3E"},children:"F"})},me=function(e){return null===b||void 0===b?void 0:b.filter((function(t){return t.severity===e})).length};Object(r.useEffect)((function(){var e=null===b||void 0===b?void 0:b.slice().sort((function(e,t){var c=e.failureTitle.match(/^[A-Za-z]\d/)[0],s=t.failureTitle.match(/^[A-Za-z]\d/)[0],i=c.localeCompare(s);return 0===i?parseInt(e.failureTitle.match(/\d+$/)[0],10)-parseInt(t.failureTitle.match(/\d+$/)[0],10):i}));oe(e)}),[]);var Oe={};null===b||void 0===b||b.forEach((function(e){var t=e.sectionName.charAt(0).toUpperCase(),c=e.sectionName.charAt(1);Oe[t]||(Oe[t]={}),Oe[t][c]||(Oe[t][c]=[]),Oe[t][c].push(e)}));var he=Object.keys(Oe).sort();var xe;function ve(e){var t;switch(e){case"A":t="3.1 Objective A Managing Security Risks";break;case"B":t="3.2 Objective B Managing Security Risks";break;case"C":t="3.4 C. Detecting Cyber Security Events";break;case"D":t="3.5 D. Minimising the Impact of Incidents";break;default:t="Invalid Key"}return Object(N.jsx)(N.Fragment,{children:t})}return Object(r.useImperativeHandle)(t,(function(){return{log:function(){!function(){var e=document.querySelector(".pdf").innerHTML,t=document.createElement("div");t.innerHTML=e;var c=document.createElement("iframe");c.style.display="none",document.body.appendChild(c);var s=c.contentDocument;s.write("<html><head></head><body></body></html>"),s.body.innerHTML=t.innerHTML,setTimeout((function(){var e={margin:0,filename:"securiAudit for ".concat(V,".pdf"),image:{type:"jpeg",quality:.98},html2canvas:{scale:2},jsPDF:{unit:"px",format:[793,1123],orientation:"portrait"}};L()().set(e).from(s.body).save(),document.body.removeChild(c)}),1e3)}()}}})),Object(N.jsxs)("div",{className:"pdf",ref:je,children:[Object(N.jsxs)("div",{className:"pdf_page page_1",children:[Object(N.jsxs)("div",{className:"text",children:[" ",Object(N.jsxs)("div",{className:"container",children:[Object(N.jsx)("img",{className:"pc",src:I,alt:""}),Object(N.jsxs)("div",{className:"title",children:[Object(N.jsx)("h1",{children:"CYBER SECURITY ASSESSMENT REPORT "}),Object(N.jsxs)("h3",{children:["FOR ",null===(c=e.name)||void 0===c?void 0:c.toUpperCase()]})]}),Object(N.jsx)("img",{className:"pc",src:k,alt:""})]})]}),Object(N.jsx)("img",{className:"portada",src:E,alt:""}),Object(N.jsx)(_,{num:"",color:"black"})]}),Object(N.jsxs)("div",{className:"pdf_page page_2",children:[Object(N.jsxs)("div",{className:"pdf_content",children:[Object(N.jsx)("h1",{onClick:function(){var e=document.querySelector(".pdf").innerHTML,t=new C.default({orientation:"portrait",unit:"px",format:[794,1123]}),c=e;t.html(c,{callback:function(){t.save("archivo.pdf")}})},children:"Table of Contents"}),Object(N.jsx)("div",{className:"table_container",children:Object(N.jsxs)("table",{children:[Object(N.jsxs)("tr",{children:[Object(N.jsx)("td",{children:"1.0"}),Object(N.jsx)("td",{children:"Executive Summary"})]}),Object(N.jsxs)("tr",{children:[Object(N.jsx)("td",{children:"2.0"}),Object(N.jsx)("td",{children:"Score Overview"})]}),Object(N.jsxs)("tr",{className:"cuarto",children:[Object(N.jsx)("td",{children:"3.0"}),Object(N.jsxs)("td",{children:["Cyber Assessment Summary Recommendations",Object(N.jsx)("div",{children:Object(N.jsx)("table",{className:"second_table",children:he.map((function(e){var t=Object.keys(Oe[e]).sort();return Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("div",{className:"BLACK",style:{fontWeight:700,paddingBottom:"20px",marginTop:"20px",marginLeft:"20px",paddingLeft:"20px"},children:ve(e)}),t.map((function(t){return Object(N.jsx)("div",{style:{fontWeight:400,marginLeft:"60px"},children:Oe[e][t][0].sectionName})}))]})}))})})]})]}),Object(N.jsxs)("tr",{children:[Object(N.jsx)("td",{children:"4.0"}),Object(N.jsx)("td",{children:"Conclusion"})]})]})})]}),Object(N.jsx)(_,{num:"2",color:"black"})]}),Object(N.jsx)("div",{className:"pdf_page page_3",children:Object(N.jsxs)("div",{className:"pdf_content",children:[Object(N.jsxs)("div",{className:"top",children:[Object(N.jsx)("h1",{children:"1.0 Executive Summary"}),Object(N.jsxs)("h3",{children:["The consequence ",Object(N.jsx)("br",{}),"of poor cybersecurity can be ",Object(N.jsx)("br",{}),"vastly destructive."]}),Object(N.jsxs)("div",{className:"text",children:[Object(N.jsxs)("p",{className:"width-50",children:["Securiwiser was cordially invited to conduct a comprehensive cyber security audit and assessment for ",V,". The primary purpose of this audit was to actively assist the executive team in devising a robust and effective cyber security management strategy."]}),Object(N.jsxs)("div",{className:"width-50",children:[Object(N.jsx)("p",{children:"A summary of the recommendations made during the cyber security audit is detailed in Section 3."}),Object(N.jsx)("p",{children:"The recommendations can be categorised as Non-Technical (NT), Technical (T) and Physical (P)."})]})]})]}),Object(N.jsx)("img",{className:"pc",src:B,alt:""}),Object(N.jsx)(_,{num:"3",color:"white"})]})}),Object(N.jsxs)("div",{className:"pdf_page page_4",children:[Object(N.jsx)("div",{className:"pdf_content",children:Object(N.jsxs)("div",{className:"score_body",children:[Object(N.jsxs)("div",{className:"securi",children:[Object(N.jsxs)("div",{className:"container",children:[Object(N.jsx)("h1",{children:"Security Posture Score"}),Object(N.jsxs)("div",{children:[Object(N.jsxs)("div",{className:"text",children:[Object(N.jsx)("div",{className:"letter",children:(xe=D,xe>=90&&xe<=100?Object(N.jsx)("img",{src:M.a,alt:""}):xe>=75&&xe<=89?Object(N.jsx)("img",{src:H.a,alt:""}):xe>=60&&xe<=74?Object(N.jsx)("img",{src:q.a,alt:""}):xe>=40&&xe<=59?Object(N.jsx)("img",{src:J.a,alt:""}):Object(N.jsx)("img",{src:U.a,alt:""}))}),Object(N.jsx)("p",{className:"number",children:D.toFixed(0)})]}),Object(N.jsx)("div",{className:"scorecard_container",children:Object(N.jsx)("div",{className:"score",style:{width:"".concat((S-v)/S*100,"%")}})})]})]}),Object(N.jsxs)("div",{className:"container",children:[Object(N.jsx)("h1",{children:"Recommendations"}),Object(N.jsxs)("div",{className:"score_finding",children:[Object(N.jsxs)("div",{className:"total",children:[Object(N.jsx)("h4",{children:"Total"}),Object(N.jsx)("p",{children:null===b||void 0===b?void 0:b.length})]}),Object(N.jsxs)("div",{className:"category_container",children:[Object(N.jsxs)("div",{children:[Object(N.jsx)("p",{className:"category High",children:"High"}),Object(N.jsx)("p",{className:"number",children:W})]}),Object(N.jsxs)("div",{children:[Object(N.jsx)("p",{className:"category Moderate",children:"Moderate"}),Object(N.jsx)("p",{className:"number",children:ce})]}),Object(N.jsxs)("div",{className:"margin-0",children:[Object(N.jsx)("p",{className:"category Low",children:"Low"}),Object(N.jsx)("p",{className:"number",children:ne})]})]})]})]})]}),Object(N.jsxs)("div",{className:"option f_1",children:[be("A"),"Objective A - Managing Security Risks"]}),Object(N.jsxs)("div",{className:"option f_2",children:[be("B"),"Objective B - Protecting Against Cyber-Attacks"]}),Object(N.jsxs)("div",{className:"option f_3",children:[be("C"),"Objective C - Defending Cyber Security Events"]}),Object(N.jsxs)("div",{className:"option f_4",children:[be("D"),"Ojective D - Minimising the Impact of Incidents"]})]})}),Object(N.jsx)(_,{num:"4",color:"black"})]}),Object(N.jsxs)("div",{className:"pdf_page page_5",children:[Object(N.jsx)("h1",{children:"3.0 Cyber Assessment Summary Recommendations"}),Object(N.jsx)("div",{className:"img_container",children:Object(N.jsx)("img",{src:y,alt:""})}),Object(N.jsx)(_,{num:"5",color:"white"})]}),Object(N.jsx)(T,{scanResults:b,companyname:V})]})})),z=P,Q=c(109),W=c(153),K=c(343),G=c(338),Y=c(31),Z=c(81),$=c(168),V=c.n($),X=c(22),ee=c.n(X),te=c(125),ce=function(e){var t,d,o,f,g,_,y,S,A,w,F,T,C,k,E,B,I,D,L,P,Y,$,X,ce,se,ie,ae,ne,re,le,de,oe,je=Object(r.useState)(""),ue=Object(n.a)(je,2),be=ue[0],me=ue[1],Oe=Object(r.useState)([]),he=Object(n.a)(Oe,2),xe=he[0],ve=he[1],pe=Object(r.useState)(0),fe=Object(n.a)(pe,2),ge=fe[0],Ne=fe[1],_e=Object(r.useState)([]),ye=Object(n.a)(_e,2),Se=ye[0],Ae=ye[1],we=Object(r.useState)(!1),Fe=Object(n.a)(we,2),Te=(Fe[0],Fe[1]),Ce=Object(r.useState)(!1),ke=Object(n.a)(Ce,2),Ee=(ke[0],ke[1]),Be=Object(r.useState)(!0),Ie=Object(n.a)(Be,2),Re=Ie[0],De=Ie[1],Le=Object(r.useState)(!1),Me=Object(n.a)(Le,2),He=Me[0],qe=Me[1],Je=Object(r.useState)(""),Ue=Object(n.a)(Je,2),Pe=Ue[0],ze=Ue[1],Qe=Object(r.useState)(!1),We=Object(n.a)(Qe,2),Ke=We[0],Ge=We[1],Ye=Object(r.useState)(!1),Ze
1=Object(n.a)(Ye,2),$e=Ze[0],Ve=Ze[1],Xe=Object(r.useState)(null),et=Object(n.a)(Xe,2),tt=et[0],ct=et[1],st=Object(r.useState)(0),it=Object(n.a)(st,2),at=it[0],nt=it[1],rt=Object(r.useState)(""),lt=Object(n.a)(rt,2),dt=lt[0],ot=lt[1],jt=Object(r.useState)(0),ut=Object(n.a)(jt,2),bt=ut[0],mt=ut[1],Ot=Object(r.useState)(0),ht=Object(n.a)(Ot,2),xt=ht[0],vt=ht[1],pt=Object(r.useState)(""),ft=Object(n.a)(pt,2),gt=ft[0],Nt=ft[1],_t=Object(r.useState)([]),yt=Object(n.a)(_t,2),St=yt[0],At=yt[1],wt=Object(r.useState)(""),Ft=Object(n.a)(wt,2),Tt=Ft[0],Ct=Ft[1],kt=Object(r.useState)([]),Et=Object(n.a)(kt,2),Bt=Et[0],It=Et[1],Rt=(Object(r.useRef)(e),Object(r.useState)(0)),Dt=Object(n.a)(Rt,2),Lt=Dt[0],Mt=Dt[1],Ht=Object(r.useState)(""),qt=Object(n.a)(Ht,2),Jt=qt[0],Ut=qt[1],Pt=Object(r.useState)(0),zt=Object(n.a)(Pt,2),Qt=zt[0],Wt=zt[1],Kt=Object(r.useState)(0),Gt=Object(n.a)(Kt,2),Yt=Gt[0],Zt=Gt[1],$t=Object(r.useState)(0),Vt=Object(n.a)($t,2),Xt=Vt[0],ec=Vt[1],tc=Object(r.useState)(0),cc=Object(n.a)(tc,2),sc=cc[0],ic=cc[1],ac=Object(r.useState)([]),nc=Object(n.a)(ac,2),rc=(nc[0],nc[1]),lc=Object(r.useState)(""),dc=Object(n.a)(lc,2),oc=dc[0],jc=dc[1],uc=Object(r.useState)(""),bc=Object(n.a)(uc,2),mc=bc[0],Oc=bc[1],hc=Object(r.useState)(null),xc=Object(n.a)(hc,2),vc=xc[0],pc=xc[1],fc=Object(r.useState)(null),gc=Object(n.a)(fc,2),Nc=gc[0],_c=gc[1],yc=Object(r.useState)(null),Sc=Object(n.a)(yc,2),Ac=Sc[0],wc=Sc[1],Fc=Object(r.useState)(null),Tc=Object(n.a)(Fc,2),Cc=Tc[0],kc=Tc[1],Ec=Object(r.useState)(!1),Bc=Object(n.a)(Ec,2),Ic=(Bc[0],Bc[1],Object(r.useState)([])),Rc=Object(n.a)(Ic,2),Dc=Rc[0],Lc=Rc[1],Mc=Object(r.useState)(""),Hc=Object(n.a)(Mc,2),qc=(Hc[0],Hc[1]),Jc=Object(r.useState)(!1),Uc=Object(n.a)(Jc,2),Pc=(Uc[0],Uc[1],e.admin,e.userAccess),zc=function(e){return xe.filter((function(t){return t.severity==e})).length},Qc=Object(R.a)(),Wc=Object(n.a)(Qc,2),Kc=(Wc[0],Wc[1]),Gc=JSON.parse(localStorage.getItem("user"));Object(r.useEffect)((function(){var t,c,s,i,a,r,l=localStorage.getItem("showReport");!0,e.setActiveCompany(e.activeCompany);var d=Object(R.a)(),o=Object(n.a)(d,2),j=o[0];o[1];Ut(j.companyDetails.companyName),Xc(),ts();var u,b,m,O,h,x,v=e.userAccess;l&&(null!==v&&void 0!==v&&null!==(u=v.securiAudit)&&void 0!==u&&null!==(b=u.features)&&void 0!==b&&null!==(m=b.list)&&void 0!==m&&m.report&&nt(3),localStorage.removeItem("showReport"));(null!==v&&void 0!==v&&null!==(t=v.securiAudit)&&void 0!==t&&null!==(c=t.features)&&void 0!==c&&null!==(s=c.list)&&void 0!==s&&s.findings||l||null===v||void 0===v||null===(i=v.securiAudit)||void 0===i||null===(a=i.features)||void 0===a||null===(r=a.list)||void 0===r||!r.questionaireList||(nt(0),os(!1)),"true"===localStorage.getItem("recommendations"))&&(null!==v&&void 0!==v&&null!==(O=v.securiAudit)&&void 0!==O&&null!==(h=O.features)&&void 0!==h&&null!==(x=h.list)&&void 0!==x&&x.recommendation&&nt(2),localStorage.removeItem("recommendations"))}),[]),Object(r.useEffect)((function(){Object(a.a)(Object(i.a)().mark((function e(){var t,c;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.Z)(Kc);case 2:t=e.sent,c=t.data,rc(c);case 5:case"end":return e.stop()}}),e)})))()}),[null===(t=e.activeCompany)||void 0===t||null===(d=t.companyDetails)||void 0===d?void 0:d._id]);var Yc=Object(te.b)().socket;Object(r.useEffect)((function(){Yc&&Yc.addEventListener("message",(function(e){!function(e){if("message-emit"===e.message){var t={userFormId:e.content.userFormId,fieldId:e.content.fieldId||e.content.field_id};as(t)}if("typing"===e.type){var c=!Dc.some((function(t){return t.userId===e.user.userId}));if(c&&e.user.userId!==Gc._id&&e.isTyping&&Lc((function(t){return[].concat(Object(s.a)(t),[e.user])})),!1===e.isTyping){var i=Dc.filter((function(t){return t.userId!==e.user.userId}));Lc(i)}}}(JSON.parse(e.data))}))}),[Yc]);var Zc=function(e){var t=e.userFormId+(e.fieldId||e.field_id);Yc.send(JSON.stringify({type:"joinRoom",room:t,username:Gc.firstName,userId:Gc._id}))},$c=function(e,t){var c=e.userFormId+(e.fieldId||e.field_id),s={type:"typing",username:Gc.firstName,userId:Gc._id,room:c,isTyping:t};Yc.send(JSON.stringify(s))};Object(r.useEffect)((function(){for(var e=0;e<xe.length;e++)if(!Bt.includes(xe[e].sectionName)){var t=Bt;t.push(xe[e].sectionName),It(t)}}),[xe]);var Vc=oc?Se.filter((function(e){return e.name.toLowerCase().includes(oc.toLowerCase())})):Se,Xc=function(){var e=Object(a.a)(Object(i.a)().mark((function e(){var t,c,s;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Te(!0),t=Object(R.a)(),c=Object(n.a)(t,2),c[0],s=c[1],Object(h.G)(s).then(function(){var e=Object(a.a)(Object(i.a)().mark((function e(t){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Te(!1),ve(t.data),De(!1),0===t.data.length&&os(!0);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),es=function(e){switch(e){case 0:case 2:0===xe.length?os(!0):os(!1);break;case 1:os(0===xt);break;case 3:0===Vc.length?os(!0):os(!1)}},ts=function(){var e=Object(a.a)(Object(i.a)().mark((function e(){var t,c,s;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ee(!0),t=Object(R.a)(),c=Object(n.a)(t,2),c[0],s=c[1],Object(h.z)(s).then(function(){var e=Object(a.a)(Object(i.a)().mark((function e(t){var c;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(c=t.data.forms.concat(t.data.userForms)).sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),Ee(!1),Ae(c),JSON.parse(c[0].sections),ct(JSON.parse(c[0].sections)),vt(c.length);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),cs=function(e){Ge(!0),ze(e)},ss=function(e){var t,c,s,i,a,n;return null===(t=((null===(c=e.split(" "))||void 0===c||null===(s=c[0].split(""))||void 0===s?void 0:s[0])||"")+(null!==(i=e.split(" "))&&void 0!==i&&i[1]?null===(a=e.split(" "))||void 0===a||null===(n=a[1].split(""))||void 0===n?void 0:n[0]:""))||void 0===t?void 0:t.toUpperCase()},is=function(e){var t=Object(R.a)(),c=Object(n.a)(t,2),s=(c[0],c[1]);if(""!==dt){var i={companyId:s,userFormId:e.userFormId,fieldId:e.field_id,comment:dt,chatName:JSON.stringify(e),userId:Gc._id};Yc&&Yc.readyState===WebSocket.OPEN&&(Yc.send(JSON.stringify({type:"text",content:i})),ot(""))}else Nt("Comment cannot be empty")},as=function(e){var t={userFormId:e.userFormId,fieldId:e.fieldId||e.field_id};Object(h.H)(t).then((function(e){1===e.status&&At(e.data)})).catch((function(e){return console.error(e)}))};Object(r.useEffect)((function(){Wt(zc("1")),Zt(zc("2")),ec(zc("3"));var e=null===xe||void 0===xe?void 0:xe.reduce((function(e,t){return e+parseFloat(t.weight)}),0),t=null===tt||void 0===tt?void 0:tt.map((function(e){return e.fields.map((function(e){return parseFloat(e.weight)}))})).flat().reduce((function(e,t){return e+t}),0);Mt(e),mt(t),Ne((bt-Lt)/bt*100)}));var ns=function(e){var t=null===xe||void 0===xe?void 0:xe.filter((function(t){return t.sectionName.startsWith(e)})).reduce((function(e,t){return e+parseFloat(t.weight)}),0),c=null===tt||void 0===tt?void 0:tt.filter((function(t){return t.section_title.charAt(0).toUpperCase()===e.toUpperCase()})).flatMap((function(e){return e.fields})),s=null===c||void 0===c?void 0:c.reduce((function(e,t){var c=parseFloat(t.weight);return isNaN(c)?e:e+c}),0),i=100*(s-t)/s;return i>=90&&i<=100?Object(N.jsx)("img",{src:M.a,alt:""}):i>=75&&i<=89?Object(N.jsx)("img",{src:H.a,alt:""}):i>=60&&i<=74?Object(N.jsx)("img",{src:q.a,alt:""}):i>=40&&i<=59?Object(N.jsx)("img",{src:J.a,alt:""}):i>
1=0&&i<=39?Object(N.jsx)("img",{src:U.a,alt:""}):Object(N.jsx)(Q.a,{className:"mb-2",width:"20px"})};Object(r.useEffect)((function(){es(at),pc(ns("A")),_c(ns("B")),wc(ns("C")),kc(ns("D"))}),[at,xt,xe,Vc]),Object(r.useEffect)((function(){var e,t,c,s,i,a,n,r,l,d,o,j;null!==Pc&&void 0!==Pc&&null!==(e=Pc.securiAudit)&&void 0!==e&&null!==(t=e.features)&&void 0!==t&&null!==(c=t.list)&&void 0!==c&&c.dashboard?nt(0):null!==Pc&&void 0!==Pc&&null!==(s=Pc.securiAudit)&&void 0!==s&&null!==(i=s.features)&&void 0!==i&&null!==(a=i.list)&&void 0!==a&&a.questionaireList?nt(1):null!==Pc&&void 0!==Pc&&null!==(n=Pc.securiAudit)&&void 0!==n&&null!==(r=n.features)&&void 0!==r&&null!==(l=r.list)&&void 0!==l&&l.recommendation?nt(2):null!==Pc&&void 0!==Pc&&null!==(d=Pc.securiAudit)&&void 0!==d&&null!==(o=d.features)&&void 0!==o&&null!==(j=o.list)&&void 0!==j&&j.report?nt(3):nt(at)}),[]);var rs=Object(r.useState)(!1),ls=Object(n.a)(rs,2),ds=ls[0],os=ls[1],js=Object(r.useRef)(),us=null===(o=xe[Pe])||void 0===o?void 0:o.sectionName,bs=function(e){var t,c=null===e||void 0===e||null===(t=e.charAt(0))||void 0===t?void 0:t.toLowerCase();return{a:{backgroundColor:"#ECF8EF",color:"#6D927B"},b:{backgroundColor:"#F7EEFF",color:"#8E7C9D"},c:{backgroundColor:"#F6F0DC",color:"#988E73"},d:{backgroundColor:"#CDDDF9",color:"#688CCF"}}[c]||{backgroundColor:"black",color:"white"}}(us),ms=bs.backgroundColor,Os=bs.color;var hs;return Object(N.jsxs)("div",{className:"FindingsAudit",children:[Object(N.jsx)(v.a,{header:function(){return Object(N.jsxs)("div",{className:"findings_footer",children:[Object(N.jsx)("p",{children:"Cyber Security Assessment Report"}),Object(N.jsx)("button",{onClick:function(){js&&js.current&&(ee.a.track("securiAudit > Report > Download Report"),js.current.log(),qe(!0),setTimeout((function(){qe(!1)}),2e3))},disabled:He,className:"btn btn-block sc-theme-btn login-btn download",children:He?Object(N.jsx)("span",{className:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"}):"Download"})]})},visible:$e,style:{width:"50vw"},onHide:function(){Ve(!1),ee.a.track("securiAudit > Report > Close Report")},children:Object(N.jsx)(z,{ref:js,name:Jt,scanResults:xe,number:sc,option:tt})}),Object(N.jsxs)("div",{className:"page-tabs",children:[(null===Pc||void 0===Pc||null===(f=Pc.securiAudit)||void 0===f||null===(g=f.features)||void 0===g||null===(_=g.list)||void 0===_?void 0:_.dashboard)&&Object(N.jsx)("div",{className:0===at?"active":"",onClick:function(){nt(0),es(0),ee.a.track("securiAudit > Dashboard")},children:"Dashboard"}),(null===Pc||void 0===Pc||null===(y=Pc.securiAudit)||void 0===y||null===(S=y.features)||void 0===S||null===(A=S.list)||void 0===A?void 0:A.questionaireList)&&Object(N.jsxs)("div",{className:1===at?"active":"",onClick:function(){nt(1),es(1),ee.a.track("securiAudit > Questionnaire")},children:["Questionnaire (",xt,")"]}),(null===Pc||void 0===Pc||null===(w=Pc.securiAudit)||void 0===w||null===(F=w.features)||void 0===F||null===(T=F.list)||void 0===T?void 0:T.recommendation)&&Object(N.jsxs)("div",{className:2===at?"active":"",onClick:function(){nt(2),es(2),ee.a.track("securiAudit > Recommendations")},children:["Recommendations (",null===xe||void 0===xe?void 0:xe.length,")"]}),(null===Pc||void 0===Pc||null===(C=Pc.securiAudit)||void 0===C||null===(k=C.features)||void 0===k||null===(E=k.list)||void 0===E?void 0:E.report)&&Object(N.jsxs)("div",{className:3===at?"active":"",onClick:function(){nt(3),es(3),ee.a.track("securiAudit > Report")},children:["Report (",xt,")"]})]}),Ke&&Object(N.jsx)(G.a,{visible:Ke,position:"right",onHide:function(){return Ge(!1)},children:Object(N.jsx)("div",{className:"issue-details-component",children:Object(N.jsxs)("div",{className:"issue-middle-wrapper header",children:[Object(N.jsx)("div",{className:"d-flex justify-content-between pd-b-15 issue-slide-pane-header",children:Object(N.jsxs)("div",{className:"slidevar_header",children:[Object(N.jsxs)("h1",{onClick:function(){Ge(!1)},children:[" ",xe[Pe].failureTitle.length>100?"".concat(xe[Pe].failureTitle.slice(0,150),"..."):xe[Pe].failureTitle]}
1),Object(N.jsx)("img",{className:"mg-l-20 rigt_img_click",src:x.a,alt:"",onClick:function(){Ge(!1)}})]})}),Object(N.jsxs)("div",{className:"row_container",children:[Object(N.jsxs)("div",{className:"message_section",children:[Object(N.jsxs)("div",{className:"info_section",children:[Object(N.jsx)("p",{className:"Governance",style:{backgroundColor:ms,color:Os},children:us||"A1 Governance FAKE"}),"1"===xe[Pe].severity&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("img",{src:j.a,alt:""})," ",Object(N.jsx)("p",{className:"text_seb",children:" High"})]}),"2"===xe[Pe].severity&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("img",{src:u.default,alt:""})," ",Object(N.jsx)("p",{className:"text_seb",children:" Medium"})]}),"3"===xe[Pe].severity&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("img",{src:b.a,alt:""})," ",Object(N.jsx)("p",{className:"text_seb",children:" Low"})]})]}),Object(N.jsxs)("div",{className:"info_message",children:[xe[Pe].question&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("h4",{children:"Question"}),Object(N.jsx)("p",{children:xe[Pe].question})]}),xe[Pe].submittedAnswerString&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("h4",{children:"Answer"}),Object(N.jsx)("p",{children:xe[Pe].submittedAnswerString})]}),xe[Pe].risks&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("h4",{children:"Description"}),Object(N.jsx)("div",{dangerouslySetInnerHTML:{__html:xe[Pe].risks}})]}),xe[Pe].recommendation&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("h4",{children:"Recommendation"}),Object(N.jsx)("p",{children:xe[Pe].recommendation})]})]})]}),Object(N.jsxs)("div",{className:"issue-comment-main-div",children:[Object(N.jsx)("div",{className:"commentbox-list",children:St.length>0?St.slice().map((function(t,c){return function(t,c){var s,i,a,n=e.admin,r=e.userAccess;return n||null!==r&&void 0!==r&&r.admin||null!==r&&void 0!==r&&null!==(s=r.securiAudit)&&void 0!==s&&null!==(i=s.features)&&void 0!==i&&null!==(a=i.list)&&void 0!==a&&a.comments?Object(N.jsx)("div",{className:"row mt-3 bd-b",children:Object(N.jsx)("div",{className:"col-12",children:Object(N.jsxs)("div",{className:"d-flex",children:[t.user.profilePhoto?Object(N.jsx)("img",{className:"profile-picture",src:t.user.profilePhoto,alt:""}):Object(N.jsx)("div",{className:"user-initials-modal",children:ss(t.user.firstName)}),Object(N.jsxs)("div",{className:"d-flex mg-l-10 flex-column",children:[Object(N.jsxs)("div",{className:"d-flex",children:[Object(N.jsx)("span",{className:"tx-12 tx-capatalize tx-semibold mg-r-15",children:t.user.firstName}),Object(N.jsx)("span",{className:"tx-10 tx-gray-700",children:Object(N.jsx)(V.a,{fromNow:!0,children:t.createdAt})})]}),Object(N.jsx)("p",{className:"mg-t-5 tx-12 tx-normal",children:t.comment})]})]})})},"comment-".concat(c)):Object(N.jsx)(N.Fragment,{})}(t,c)})):Object(N.jsx)("div",{className:"non_message_container",children:Object(N.jsxs)("div",{className:"message",children:[Object(N.jsx)("div",{className:"img_container",children:Object(N.jsx)("img",{src:K.a,alt:""})}),Object(N.jsx)("p",{children:"There are no messages in this chat yet"})]})})}),Object(N.jsx)("div",{className:"issue-comment",children:Object(N.jsx)("div",{className:"row mt-3",children:Object(N.jsx)("div",{className:"col-12",children:(null===Pc||void 0===Pc||null===(B=Pc.securiAudit)||void 0===B||null===(I=B.features)||void 0===I||null===(D=I.list)||void 0===D?void 0:D.comments)&&(null===Pc||void 0===Pc||null===(L=Pc.securiAudit)||void 0===L||null===(P=L.features)||void 0===P?void 0:P.fullAccess)&&Object(N.jsxs)("div",{className:"send",children:[Dc.length>0&&Object(N.jsxs)("p",{className:"mg-t-10",style:{fontSize:"12px"},children:[Dc[0].username," ","is typing..."]}),Object(N.jsxs)("span",{className:"p-float-label",children:[Object(N.jsx)(m.a,{autoResize:!0,rows:1,cols:30,id:"username",value:dt,onChange:function(e){ot(e.target.value),Nt("")},onFocus:function(){return $c(xe[Pe],!0)},onBlur:function(){return $c(xe[Pe],!1)},onKeyPress:function(e){13===e.charCode&&(ee.a.track("securiAudit > Dashboard > Add Comment ".concat(xe[Pe].failureTitle)),is(xe[Pe]))}}),Object(N.jsx)("label",{htmlFor:"username",children:"Write a message"}),gt&&Object(N.jsx)("p",{className:"tx-danger mg-t-10",children:gt})]}),Object(N.jsx)("div",{className:"card flex flex-wrap justify-content-center gap-3",children:Object(N.jsx)(W.a,{label:"Send",onClick:function(){ee.a.track("securiAudit > Dashboard > Add Comment ".concat(xe[Pe].failureTitle)),is(xe[Pe])}})})]})})})})]})]})]})})}),0===at&&(null===Pc||void 0===Pc||null===(Y=Pc.securiAudit)||void 0===Y||null===($=Y.features)||void 0===$||null===(X=$.list)||void 0===X?void 0:X.dashboard)&&Object(N.jsxs)("div",{className:"FindingsAudit_Table Dashboard",children:[Object(N.jsxs)("div",{className:"row row-sm mg-t-15 scorecard-custom-row",children:[Object(N.jsx)("div",{className:"col-sm-12 col-lg-3",children:Object(N.jsxs)("div",{className:"card card-animated pd-20 bd-0 current",children:[Object(N.jsx)("h4",{className:"tx-16 tx-regular tx-gray-dark mg-b-12 mg-t-5",children:"Security Posture Score"}),Object(N.jsxs)("div",{className:"info_container",children:[Object(N.jsx)("div",{className:"text",children:Object(N.jsxs)("div",{className:"letter",children:[Re?Object(N.jsx)(Q.a,{className:"mb-2",width:"70px"}):(hs=ge,hs>=90&&hs<=100?Object(N.jsx)("img",{src:M.a,alt:""}):hs>=75&&hs<=89?Object(N.jsx)("img",{src:H.a,alt:""}):hs>=60&&hs<=74?Object(N.jsx)("img",{src:q.a,alt:""}):hs>=40&&hs<=59?Object(N.jsx)("img",{src:J.a,alt:""}):hs>=1&&hs<=39?Object(N.jsx)("img",{src:U.a,alt:""}):Object(N.jsx)(Q.a,{className:"mb-2"})),Re||isNaN(ge)||null===ge?Object(N.jsx)(Q.a,{className:"mb-2",width:"70px"}):Object(N.jsx)("p",{className:"number",children:ge.toFixed(0)})]})}),Object(N.jsx)("div",{className:"scorecard_container",children:Object(N.jsx)("div",{className:"score",style:{width:"".concat((bt-Lt)/bt*100,"%")}})})]}),Object(N.jsx)("a",{className:"button_border",href:"!#",onClick:function(e){e.preventDefault(),ee.a.track("securiAudit > Dashboard > Learn more"),nt(2),es(2),os(!1)},children:"Learn more"})]})}),Object(N.jsx)("div",{className:"col-sm-12 col-lg-6 ",children:Object(N.jsx)("div",{className:"card card-animated pd-20 bd-0 Vulnerability",children:Object(N.jsxs)("div",{className:"row Total",children:[Object(N.jsxs)("div",{className:"col-sm-12 col-md-6",children:[Object(N.jsx)("h4",{className:"tx-16 tx-regular tx-gray-dark mg-b-20 mg-t-5",children:"Recommendations"}),Object(N.jsxs)("div",{className:"tx-12 tx-light mg-b-30 title",children:["Total No. of Recommendations",Object(N.jsx)(Z.a,{target:".Total_Text",position:"right",content:"Total No. of Recommendations"}),Object(N.jsx)("img",{className:"mg-l-5 info_img Total_Text",src:c(337).default,alt:""})]}),Object(N.jsx)("div",{className:"tx-24 tx-bold numbre",children:Re?Object(N.jsx)(Q.a,{className:"mb-2",width:"70px"}):xe.length}),Object(N.jsx)("div",{className:"see-all-links tx-12 link tx-normal tx-blue-theme mg-t-50 mg-b-5",children:Object(N.jsxs)("a",{href:"!#",onClick:function(e){e.preventDefault(),ee.a.track("securiAudit > Dashboard > See all security issues"),nt(2),es(2)},children:["See all audit recommendation",Object(N.jsx)("i",{className:"mg-l-4 tx-10 fas fa-arrow-right"})]})})]}),Object(N.jsxs)("div",{className:"col-sm-12 col-md-6 Status",children:[Object(N.jsxs)("div",{className:"tx-12 tx-semibold mg-b-20 ",children:["Recommendation Status",Object(N.jsx)(Z.a,{target:".vulnera_text",position:"right",content:"Recommendation Status"}),Object(N.jsx)("img",{className:"mg-l-5 info_img aa vulnera_text",src:c(337).default,alt:""})]}),Object(N.jsxs)("div",{className:"severity_number",children:[Object(N.jsxs)("div",{className:"text_container",children:[" ",Object(N.jsx)("img",{src:j.a,alt:""}),"High Severity"]})," ",Re?Object(N.jsx)(Q.a,{className:"mb-2",width:"30px"}):Object(N.jsx)("b",{children:Qt})]}),Object(N.jsxs)("div",{className:"severity_number",children:[Object(N.jsxs)("div",{className:"text_container",children:[Object(N.jsx)("img",{src:u.default,alt:""}),"Medium Severity"," "]})," ",Re?Object(N.jsx)(Q.a,{className:"mb-2",width:"30px"}):Object(N.jsx)("b",{children:Yt})]}),Object(N.jsxs)("div",{className:"severity_number",children:[Object(N.jsxs)("div",{className:"text_container",children:[Object(N.jsx)("img",{src:b.a,alt:""}),"Low Severity"," "]})," ",Re?Object(N.jsx)(Q.a,{className:"mb-2",width:"30px"}):Object(N.jsx)("b",{children:Xt})]})]})]})})}),Object(N.jsx)("div",{className:"col-sm-12 col-lg-3",children:Object(N.jsxs)("div",{className:"card card-animated pd-20 bd-0 category",children:[Object(N.jsx)("h4",{className:"tx-16 tx-regular tx-gray-dark mg-b-20 mg-t-5",children:"Category Overview"}
1),Object(N.jsxs)("div",{className:"tx-12 tx-light mg-b-30",style:{marginBottom:"36px"},children:["Your category audit rating",Object(N.jsx)(Z.a,{target:".ratings_text",position:"right",content:"Your category audit rating"}),Object(N.jsx)("img",{className:"mg-l-5 info_img ratings_text",src:c(337).default,alt:""})]}),Object(N.jsxs)("div",{children:[Object(N.jsxs)("div",{className:"option option2",children:[Object(N.jsx)("span",{className:"number first",children:Re?Object(N.jsx)(Q.a,{className:"mb-2",width:"30px"}):vc})," ",Object(N.jsx)("span",{className:"Network",children:"Managing Security Risks"})]}),Object(N.jsxs)("div",{className:"option ",children:[Object(N.jsx)("span",{className:"number first",children:Re?Object(N.jsx)(Q.a,{className:"mb-2",width:"30px"}):Nc})," ",Object(N.jsx)("span",{className:"http",children:"Protecting Against Attacks"})]}),Object(N.jsxs)("div",{className:"option option2",children:[Object(N.jsx)("span",{className:"number",children:Re?Object(N.jsx)(Q.a,{className:"mb-2",width:"30px"}):Ac})," ",Object(N.jsx)("span",{className:"SSL",children:"Defending Cyber Events"})]}),Object(N.jsxs)("div",{className:"option",children:[Object(N.jsx)("span",{className:"number",children:Re?Object(N.jsx)(Q.a,{className:"mb-2",width:"30px"}):Cc})," ",Object(N.jsx)("span",{className:"DNS",children:"Minimising the Impact"})]})]})]})})]}),Object(N.jsxs)("div",{className:"row row-sm mg-t-30",children:[Object(N.jsxs)("div",{className:"col-sm-12 col-md-9",children:[Object(N.jsxs)("div",{className:"tx-16 tx-regular mg-b-5",children:["Top Recommendations"," ",Object(N.jsx)("img",{className:"mg-l-5",src:c(404),alt:""})]}),Object(N.jsx)("div",{className:"tx-12 tx-light",children:"We\u2019ve analyzed your audit results and have prioritized what you need to work on."})]}),Object(N.jsx)("div",{className:"col-sm-12 col-md-3",children:Object(N.jsxs)("button",{className:"btn btn-block sc-theme-outline-btn-a all-security-issue-btn",onClick:function(){ee.a.track("securiAudit > Dashboard > See all security issues"),nt(2),es(2)},children:["See all audit recommendation"," ",Object(N.jsx)("i",{className:"mg-l-4 mg-t-4 tx-10 fas fa-arrow-right"})]})})]}),Object(N.jsx)("div",{className:"company-details-table-main mg-t-10",children:Object(N.jsx)("div",{className:"card card-animated bd-0",children:Object(N.jsx)("div",{className:"table-responsive no-border",children:Object(N.jsxs)("div",{className:"FindingsAudit_Table margin-0 dasbhaord_nodata",children:[Object(N.jsxs)("div",{className:"FindingsAudit_Table_Top",children:[Object(N.jsx)("div",{className:"FindingsAudit_Table_Top_Box1 ",children:Object(N.jsx)("p",{children:"Category"})}),Object(N.jsx)("div",{className:"FindingsAudit_Table_Top_Box2 Table_Top_Box2audit",children:Object(N.jsx)("p",{children:"Recommendations"})}),Object(N.jsx)("div",{className:"FindingsAudit_Table_Top_Box1",children:Object(N.jsx)("p",{children:"Severity"})})]}),Object(N.jsx)("table",{children:0===Vc.length||Re?Object(N.jsx)(N.Fragment,{children:Object(N.jsx)("tbody",{children:Object(N.jsxs)("tr",{children:[Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2"})})]})})}):ds?Object(N.jsx)(N.Fragment,{children:Object(N.jsx)("td",{className:"no_data",colSpan:3,children:"No data available in table"})}):Object(N.jsx)("tbody",{className:"FindingsAudit_Scroll",children:xe.length>0&&(null===xe||void 0===xe?void 0:xe.map((function(e,t){var c=e.sectionName.charAt(0).toLowerCase(),s={a:"#ECF8EF",b:"#F7EEFF",c:"#F6F0DC",d:"#CDDDF9"}[c]||"black",i={a:"#6D927B",b:"#8E7C9",c:"#988E73",d:"#688CCF"}[c]||"black";return(""===Tt&&""===be||(Tt===e.severity||""===Tt)&&(be.trim()===e.sectionName.trim()||""===be))&&t<3&&Object(N.jsxs)("tr",{className:"FindingsAudit_Table_Bottom",onClick:function(){cs(t),Zc(e),qc(e.userFormId),as(e),ee.a.track("securiAudit > Dashboard > Open ".concat(e.failureTitle))},children:[Object(N.jsx)("td",{className:"FindingsAudit_Table_Bottom_Box1",children:Object(N.jsx)("p",{className:"Governance",style:{backgroundColor:s,color:i},children:e.sectionName})}),Object(N.jsx)("td",{className:"FindingsAudit_Table_Bottom_Box2",children:Object(N.jsx)("p",{className:"par",children:e.failureTitle})}),Object(N.jsxs)("td",{className:"FindingsAudit_Table_Bottom_Box1",children:["1"===e.severity&&Object(N.jsx)("img",{src:j.a,alt:"",className:"pl-3"}),"2"===e.severity&&Object(N.jsx)("img",{src:u.default,alt:"",className:"pl-3"}),"3"===e.severity&&Object(N.jsx)("img",{src:b.a,alt:"",className:"pl-3"})]})]},t)})))})})]})})})})]}),1===at&&(null===Pc||void 0===Pc||null===(ce=Pc.securiAudit)||void 0===ce||null===(se=ce.features)||void 0===se||null===(ie=se.list)||void 0===ie?void 0:ie.questionaireList)&&Object(N.jsx)("div",{className:"FindingsAudit_Table",children:Object(N.jsxs)("div",{children:[Object(N.jsx)("div",{className:"input_container",children:Object(N.jsxs)("span",{className:"p-input-icon-left",children:[Object(N.jsx)("i",{className:"pi pi-search pi-search_QUESTIONARE"}),Object(N.jsx)(p.a,{placeholder:"Search",value:oc,onChange:function(e){return jc(e.target.value)}})]})}),Object(N.jsxs)("table",{children:[Object(N.jsx)("thead",{className:"FindingsAudit_Table_Top",children:Object(N.jsxs)("tr",{children:[Object(N.jsx)("th",{className:"FindingsAudit_Table_Top_Box2 Table_Top_Box2quest",children:Object(N.jsx)("p",{children:"Questionnaire"})}),Object(N.jsx)("th",{className:"FindingsAudit_Table_Top_Box4",children:Object(N.jsx)("p",{children:"No. of questions"})}),Object(N.jsx)("th",{className:"FindingsAudit_Table_Top_Box4",children:Object(N.jsx)("p",{children:"Findings"})}),Object(N.jsx)("th",{className:"FindingsAudit_Table_Top_Box4",children:Object(N.jsx)("p",{children:"Actions"})})]})}),Object(N.jsx)("tbody",{children:0===Vc.length||Re?Object(N.jsx)(N.Fragment,{children:Object(N.jsxs)("tr",{className:"FindingsAudit_Table_Bottom",children:[Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2",width:"500px"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2",width:"150px"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2",width:"150px"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2",width:"150px"})})]})}):ds?Object(N.jsx)(N.Fragment,{children:Object(N.jsx)("tr",{children:Object(N.jsx)("td",{className:"no_data",children:"No data available in table"})})}):Se&&Vc.map((function(e,t){var c=0;
1JSON.parse(e.sections).forEach((function(e){e.fields.forEach((function(e){!1===e.submittedAnswer&&"Not applicable"!==e.submittedAnswerString&&c++}))}));var s=0;return JSON.parse(e.sections).forEach((function(e){s+=e.fields.length})),Object(N.jsxs)("tr",{className:"FindingsAudit_Table_Bottom",children:[Object(N.jsx)("td",{className:"FindingsAudit_Table_Bottom_Box2",children:Object(N.jsx)("p",{className:"par",children:e.name})}),Object(N.jsx)("td",{className:"FindingsAudit_Table_Bottom_Box4 padding_20px",children:Object(N.jsx)("p",{children:s})}),Object(N.jsx)("td",{className:"FindingsAudit_Table_Bottom_Box4 padding_45px",children:Object(N.jsx)("p",{children:null!==xe&&void 0!==xe&&xe.length?null===xe||void 0===xe?void 0:xe.length:c})}),Object(N.jsx)("td",{className:"FindingsAudit_Table_Bottom_Box4 button_box4",children:Object(N.jsx)(l.b,{to:"/auditQuestion?formId=".concat(e._id),children:Object(N.jsx)("button",{className:"btn finding_btn_table",onClick:function(){Ve(!0),ee.a.track("securiAudit > Questionnaire > ".concat(e.name))},children:0===c?"Start":c===s?"Edit":"Resume"})})})]},t)}))})]})]})}),2===at&&(null===Pc||void 0===Pc||null===(ae=Pc.securiAudit)||void 0===ae||null===(ne=ae.features)||void 0===ne||null===(re=ne.list)||void 0===re?void 0:re.recommendation)&&Object(N.jsx)("div",{className:"FindingsAudit_Table",children:Object(N.jsxs)("div",{className:"table_recommendations",children:[Object(N.jsxs)("div",{className:"FindingsAudit_Table_head_container",children:[Object(N.jsxs)("div",{className:"dropdow_clasificate",children:[Object(N.jsxs)("select",{name:"phaseOfLearning",id:"phaseOfLearning",className:"w-full md:w-14rem",value:be,onChange:function(e){me(e.target.value)},children:[Object(N.jsx)("option",{value:"",children:"All Sections"}),Bt.map((function(e,t){return Object(N.jsx)("option",{value:e,children:e},t)}))]}),Object(N.jsxs)("select",{name:"phaseOfLearning",id:"phaseOfLearning",className:"w-full md:w-14rem",value:Tt,onChange:function(e){Ct(e.target.value)},children:[Object(N.jsx)("option",{value:"",children:"All Severities"}),Object(N.jsx)("option",{value:"1",children:"High"}),Object(N.jsx)("option",{value:"2",children:"Medium"}),Object(N.jsx)("option",{value:"3",children:"Low"})]})]}),Object(N.jsxs)("span",{className:"p-input-icon-left",children:[Object(N.jsx)("i",{className:"pi pi-search"}),Object(N.jsx)(p.a,{placeholder:"Search",value:mc,onChange:function(e){Oc(e.target.value)}})]})]}),Object(N.jsxs)("div",{className:"FindingsAudit_Table_Top",children:[Object(N.jsx)("div",{className:"FindingsAudit_Table_Top_Box1 ",children:Object(N.jsx)("p",{children:"Section"})}),Object(N.jsx)("div",{className:"FindingsAudit_Table_Top_Box2 Table_Top_Box2audit",children:Object(N.jsx)("p",{children:"Findings"})}),Object(N.jsx)("div",{className:"FindingsAudit_Table_Top_Box1",children:Object(N.jsx)("p",{children:"Severity"})})]}),Object(N.jsx)("table",{children:0!==xe.length&&!Re||ds?ds?Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("tbody",{}),Object(N.jsx)("div",{className:"no_data",children:"No data available in table"})]}):Object(N.jsx)("tbody",{className:"FindingsAudit_Scroll",children:xe.length>0&&xe.map((function(e,t){var c=e.sectionName.charAt(0).toLowerCase(),s={a:"#ECF8EF",b:"#F7EEFF",c:"#F6F0DC",d:"#CDDDF9"}[c]||"black",i={a:"#6D927B",b:"#8E7C9",c:"#988E73",d:"#688CCF"}[c]||"black";return(Tt===e.severity||""===Tt)&&(be.trim()===e.sectionName.trim()||""===be)&&(e.failureTitle.includes(mc)||""===mc)&&Object(N.jsxs)("tr",{className:"FindingsAudit_Table_Bottom",onClick:function(){cs(t),Zc(e),qc(e.userFormId),as(e),ee.a.track("securiAudit > Recommendation > ".concat(e.failureTitle))},children:[Object(N.jsx)("td",{className:"FindingsAudit_Table_Bottom_Box1 padding_left_13px",children:Object(N.jsx)("p",{className:"Governance",style:{backgroundColor:s,color:i},children:e.sectionName})}),Object(N.jsx)("td",{className:"FindingsAudit_Table_Bottom_Box2",children:Object(N.jsx)("p",{className:"par",children:e.failureTitle})}),Object(N.jsxs)("td",{className:"FindingsAudit_Table_Bottom_Box1",children:["1"===e.severity&&Object(N.jsx)("img",{src:j.a,alt:"",className:"pl-3"}),"2"===e.severity&&Object(N.jsx)("img",{src:u.default,alt:"",className:"pl-3"}),"3"===e.severity&&Object(N.jsx)("img",{src:b.a,alt:"",className:"pl-3"})]})]},t)}))}):Object(N.jsx)(N.Fragment,{children:Object(N.jsxs)("tbody",{children:[Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2"})})]})})})]})}),3===at&&(null===Pc||void 0===Pc||null===(le=Pc.securiAudit)||void 0===le||null===(de=le.features)||void 0===de||null===(oe=de.list)||void 0===oe?void 0:oe.questionaireList)&&Object(N.jsxs)("div",{className:"FindingsAudit_Table",children:[Object(N.jsx)("div",{className:"input_container",children:Object(N.jsxs)("span",{className:"p-input-icon-left",children:[Object(N.jsx)("i",{className:"pi pi-search pi-search_QUESTIONARE"}),Object(N.jsx)(p.a,{placeholder:"Search",value:oc,onChange:function(e){return jc(e.target.value)}})]})}),Object(N.jsxs)("table",{children:[Object(N.jsx)("thead",{className:"FindingsAudit_Table_Top",children:Object(N.jsxs)("tr",{children:[Object(N.jsx)("th",{className:"FindingsAudit_Table_Top_Box2 Table_Top_Box2quest",children:Object(N.jsx)("p",{children:"Questionnaire"})}),Object(N.jsx)("th",{className:"FindingsAudit_Table_Top_Box4",children:Object(N.jsx)("p",{children:"Actions"})})]})}),Object(N.jsx)("tbody",{children:0===Vc.length||Re?Object(N.jsx)(N.Fragment,{children:Object(N.jsxs)("tr",{className:"FindingsAudit_Table_Bottom",children:[Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2",width:"500px"})}),Object(N.jsx)("td",{children:Object(N.jsx)(Q.a,{className:"mb-2",width:"150px"})})]})}):ds?Object(N.jsx)(N.Fragment,{children:Object(N.jsx)("tr",{children:Object(N.jsx)("td",{className:"no_data",children:"No data available in table"})})}):Se&&Vc.map((function(e,t){var c=Vc.length-t-1;
1JSON.parse(e.sections).forEach((function(e){e.fields.forEach((function(e){!1===e.submittedAnswer&&0}))}));return JSON.parse(e.sections).forEach((function(e){e.fields.length})),Object(N.jsxs)("tr",{className:"FindingsAudit_Table_Bottom",children:[Object(N.jsx)("td",{className:"FindingsAudit_Table_Bottom_Box2",children:Object(N.jsx)("p",{className:"par",children:e.name})}),Object(N.jsxs)("td",{className:"FindingsAudit_Table_Bottom_Box4 button_box4",children:[Object(N.jsx)(l.b,{to:"/auditQuestion?formId=".concat(e._id)}),Object(N.jsx)("img",{src:O.default,alt:"",className:"glass",onClick:function(){Ve(!0),ic(c),ee.a.track("securiAudit > Report > Open Report")}})]})]},t)}))})]})]})]})};t.default=Object(d.j)(Object(o.b)((function(e){return{user:e.session,activeCompany:e.common.activeCompany}}),(function(e){return{setActiveCompany:function(t){e(Object(Y.g)(t))}}}))(ce))},324:function(e,t,c){"use strict";c.r(t),t.default=c.p+"static/media/medium.261e93e2.svg"},326:function(e,t,c){"use strict";t.a=c.p+"static/media/hot.946ae936.svg"},327:function(e,t,c){"use strict";t.a=c.p+"static/media/low.3e21226b.svg"},337:function(e,t,c){"use strict";c.r(t),t.default=c.p+"static/media/question_info.351b74ab.svg"},342:function(e,t,c){},343:function(e,t,c){"use strict";t.a=c.p+"static/media/message.7ca01431.svg"},344:function(e,t,c){"use strict";t.a=c.p+"static/media/close_rigth.27371b5f.svg"},368:function(e,t,c){"use strict";c.r(t),t.default=c.p+"static/media/glass.6966af51.svg"},398:function(e,t,c){"use strict";t.a=c.p+"static/media/A Icon.6e7693a9.svg"},399:function(e,t,c){"use strict";t.a=c.p+"static/media/B Icon.835a96ee.svg"},400:function(e,t,c){"use strict";t.a=c.p+"static/media/C Icon.9fae6e68.svg"},401:function(e,t,c){"use strict";t.a=c.p+"static/media/D Icon.0162e66e.svg"},402:function(e,t,c){"use strict";t.a=c.p+"static/media/F Icon.9dd2586c.svg"},404:function(e,t,c){"use strict";c.r(t),t.default=c.p+"static/media/InfoIcon.5dcfac3e.svg"},495:function(e,t,c){}}]);
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.