diff --git a/src/main/resources/freemarker/templates/generated/main.js b/src/main/resources/freemarker/templates/generated/main.js index 45071d94..93ec99a1 100644 --- a/src/main/resources/freemarker/templates/generated/main.js +++ b/src/main/resources/freemarker/templates/generated/main.js @@ -1 +1 @@ -!function(){"use strict";var e={1958:function(e,n,r){var i=r(8963),t=r(3609),a=(r(3218),r(9559)),s=r(9714),c=r(4187),o=r(5671),l=r(3144),d="maven",u="https://pkg.go.dev/",h="https://www.npmjs.com/package/",g="https://pypi.org/project/",v="__ISSUE_ID__",x="pkg:",p=["oss-index"],j="https://maven.repository.redhat.com/ga/",f=function(e){return"oss-index"===e?"https://ossindex.sonatype.org/user/register":""},m=function(e,n){var r=T.fromString(e),i=function(e){var n="";return e.namespace&&(n=e.type===d?"".concat(e.namespace,":"):"".concat(e.namespace,"/")),n+"".concat(e.name)}(r);return n?i+"@".concat(r.version):i},y=function(e){var n=T.fromString(e),r=j;if(n.namespace){var i,t=null===(i=n.namespace)||void 0===i?void 0:i.replace(/\./g,"/");return"".concat(j).concat(t,"/").concat(n.name,"/").concat(n.version)}return r},I=function(e){var n=T.fromString(e);switch(n.type){case d:var r=n.version;if(null!==r&&void 0!==r&&r.includes("redhat")){var i,t=null===(i=n.namespace)||void 0===i?void 0:i.replace(/\./g,"/");return"".concat(j).concat(t,"/").concat(n.name,"/").concat(n.version)}return"".concat("https://central.sonatype.com/artifact/").concat(n.namespace,"/").concat(n.name,"/").concat(n.version);case"golang":var a=n.version;return null!==a&&void 0!==a&&a.match(/v\d\.\d.\d-\d{14}-\w{12}/)?"".concat(u).concat(n.namespace,"/").concat(n.name):"".concat(u).concat(n.namespace,"/").concat(n.name,"@").concat(n.version);case"npm":return n.namespace?"".concat(h).concat(n.namespace,"/").concat(n.name,"/v/").concat(n.version):"".concat(h).concat(n.name,"/v/").concat(n.version);case"pypi":return n.namespace?"".concat(g).concat(n.namespace,"/").concat(n.name,"/").concat(n.version):"".concat(g).concat(n.name,"/").concat(n.version);default:return n.toString()}},b=function(e){var n=T.fromString(e).version;return n||""},C=function(e,n,r){switch(e){case"snyk":return r.snykIssueTemplate.replace(v,n);case"oss-index":return r.ossIssueTemplate.replace(v,n);case"osv-nvd":return r.nvdIssueTemplate.replace(v,n)}},M=function(e){return e.toLowerCase().replace(/./,(function(e){return e.toUpperCase()}))},T=function(){function e(n,r,i,t){(0,o.Z)(this,e),this.type=void 0,this.namespace=void 0,this.name=void 0,this.version=void 0,this.type=n,this.namespace=r,this.name=i,this.version=t}return(0,l.Z)(e,[{key:"toString",value:function(){var e=this.name;return this.version&&(e+="@".concat(this.version)),this.namespace?"".concat(x).concat(this.type,"/").concat(this.namespace,"/").concat(e):"".concat(x).concat(this.type,"/").concat(e)}}],[{key:"fromString",value:function(n){var r=n.replace(x,""),i=r.indexOf("?");-1!==i&&(r=r.substring(0,i));var t,a,s=r.substring(0,r.indexOf("/")),c=r.split("/");c.length>2&&(t=c.slice(1,c.length-1).join("/")),-1!==r.indexOf("@")&&(a=r.substring(r.indexOf("@")+1));var o=c[c.length-1];return a&&(o=o.substring(0,o.indexOf("@"))),new e(s,t,o,a)}}]),e}();function A(e){var n=[];return Object.keys(e.providers).forEach((function(r){var i=e.providers[r].sources;void 0!==i&&Object.keys(i).length>0?Object.keys(i).forEach((function(e){n.push({provider:r,source:e,report:i[e]})})):"trusted-content"!==r&&n.push({provider:r,source:r,report:{}})})),n.sort((function(e,n){return 0===Object.keys(e.report).length&&0===Object.keys(n.report).length?""===f(e.provider)?""===f(n.provider)?0:-1:1:Object.keys(n.report).length-Object.keys(e.report).length}))}function S(e){return void 0===e?"unknown":e.provider!==e.source?"$item.provider/$item.source":e.provider}function w(e){var n;return!(!e.remediation||!(e.remediation.fixedIn||null!==(n=e.remediation)&&void 0!==n&&n.trustedContent))}function D(e){var n=[];return e.map((function(e){return{dependencyRef:e.ref,vulnerabilities:e.issues||[]}})).forEach((function(e){var r;null===(r=e.vulnerabilities)||void 0===r||r.forEach((function(r){r.cves&&r.cves.length>0?r.cves.forEach((function(i){n.push({id:i,dependencyRef:e.dependencyRef,vulnerability:r})})):n.push({id:r.id,dependencyRef:e.dependencyRef,vulnerability:r})}))})),n.sort((function(e,n){return n.vulnerability.cvssScore-e.vulnerability.cvssScore}))}var N=r(3442),P=r(3324),k=r(6363),O=r(8437),Z=r(6798),L=r(2996),z=r(3020),E=r(4223),B=r(1858),F=r(493),R=r(7065),G=r(7941),H=r(2355),U=r(8485),Y=r(9090),J=r(2570),_=r(7806),V=r(5859),W=["#800000","#FF0000","#FFA500","#5BA352"],Q=function(e){var n,r,i,t,a,s=e.summary,c=null!==(n=null===s||void 0===s?void 0:s.critical)&&void 0!==n?n:0,o=null!==(r=null===s||void 0===s?void 0:s.high)&&void 0!==r?r:0,l=null!==(i=null===s||void 0===s?void 0:s.medium)&&void 0!==i?i:0,d=null!==(t=null===s||void 0===s?void 0:s.low)&&void 0!==t?t:0,u=null!==(a=null===s||void 0===s?void 0:s.total)&&void 0!==a?a:0,h=c+o+l+d>0,g=h?W:["#D5F5E3"],v=[{name:"Critical: ".concat(c),symbol:{type:"square",fill:W[0]}},{name:"High: ".concat(o),symbol:{type:"square",fill:W[1]}},{name:"Medium: ".concat(l),symbol:{type:"square",fill:W[2]}},{name:"Low: ".concat(d),symbol:{type:"square",fill:W[3]}}];return(0,V.jsx)("div",{children:(0,V.jsx)(E.e,{style:{paddingBottom:"inherit",padding:"0"},children:(0,V.jsx)(J.b,{children:(0,V.jsx)("div",{style:{height:"230px",width:"350px"},children:(0,V.jsx)(_.H,{constrainToVisibleArea:!0,data:h?[{x:"Critical",y:c},{x:"High",y:o},{x:"Medium",y:l},{x:"Low",y:d}]:[{x:"Empty",y:1e-10}],labels:function(e){var n=e.datum;return"".concat(n.x,": ").concat(n.y)},legendData:v,legendOrientation:"vertical",legendPosition:"right",padding:{left:20,right:140},subTitle:"Unique vulnerabilities",title:"".concat(u),width:350,colorScale:g})})})})})},K=r(6155),q="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxM3B4IiB2aWV3Qm94PSIwIDAgMTIgMTMiIGlkPSJTZWN1cml0eUNoZWNrSWNvbiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5Db21iaW5lZCBTaGFwZTwvdGl0bGU+CiAgICA8ZyBpZD0iTXVsdGktdmVuZG9yIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iT3ZlcnZpZXctQ29weSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEyMDcsIC05OTMpIiBmaWxsPSIjM0U4NjM1Ij4KICAgICAgICAgICAgPGcgaWQ9IkRldGFpbHMtb2YtZGVwZW5kZW5jeS1jb20uZ2l0aHViIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MjcsIDgxOSkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IkRlcGVuZGVuY3ktMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMTQ0KSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc4MC4xNzI4LCAyNCkiPgogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMy4yKSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iSWNvbnMvMi4tU2l6ZS1zbS9BY3Rpb25zL2NoZWNrIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLCAyLjgpIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTAuNTU2NTc4OSwwIEMxMC43OTA2MjQ5LDAgMTAuOTc5MzMyMiwwLjE4MTU0Mjk2OSAxMC45NzkzMzIyLDAuNDA2MjUgTDEwLjk3OTMzMjIsNS43NDA4MjAzMSBDMTAuOTc5MzMyMiw5Ljc1IDYuMjQwODE5MDcsMTMgNS40OTU3OTI5NiwxMyBDNC43NTA3NjY4NCwxMyAwLDkuNzUgMCw1LjczOTU1MDc4IEwwLDAuNDA2MjUgQzAsMC4xODE1NDI5NjkgMC4xODg3MDcyNzIsMCAwLjQyMjc1MzMwNCwwIFogTTguNTQyNzc4ODMsMy4xMTc4MjY2NyBMNC43OTEyOTYxLDYuODkwODczNTMgTDMuMDM5ODEzMzgsNS4xMjkzMjQ0IEMyLjg4MzYwOSw0Ljk3MjIwNjgzIDIuNjMwMzI4MTIsNC45NzIyMDY4MyAyLjQ3NDEyMzc1LDUuMTI5MzI0NCBMMS45MDg0NDkzOCw1LjY5ODI2NTU2IEMxLjc1MjI0NTAxLDUuODU1MzgzMTIgMS43NTIyNDUwMSw2LjExMDEwNDQ5IDEuOTA4NDQ5MzgsNi4yNjcyMDY3MSBMNC41MDg0NTc5Nyw4Ljg4MjE1OTkxIEM0LjY2NDY0NzA4LDkuMDM5Mjc3NDcgNC45MTc5MTI3LDkuMDM5Mjc3NDcgNS4wNzQxMzIzMyw4Ljg4MjE3NTI1IEw5LjY3NDE0MjgyLDQuMjU1NzA4OTggQzkuODMwMzQ3Miw0LjA5ODU5MTQxIDkuODMwMzQ3MiwzLjg0Mzg3MDA0IDkuNjc0MTQyODIsMy42ODY3Njc4MiBMOS4xMDg0Njg0NiwzLjExNzgyNjY3IEM4Ljk1MjI2NDA4LDIuOTYwNzI0NDQgOC42OTg5ODMyLDIuOTYwNzI0NDQgOC41NDI3Nzg4MywzLjExNzgyNjY3IFoiIGlkPSJDb21iaW5lZC1TaGFwZSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=",X=function(e){var n=e.report;return(0,V.jsxs)(s.r,{hasGutter:!0,children:[(0,V.jsxs)(N.D,{headingLevel:"h3",size:N.H["2xl"],style:{paddingLeft:"15px"},children:[(0,V.jsx)(P.J,{isInline:!0,status:"info",children:(0,V.jsx)(Y.ZP,{style:{fill:"#f0ab00"}})}),"\xa0Red Hat Overview of security Issues"]}),(0,V.jsx)(k.i,{}),(0,V.jsx)(c.P,{children:(0,V.jsxs)(O.Z,{isFlat:!0,isFullHeight:!0,children:[(0,V.jsx)(Z.O,{children:(0,V.jsx)(L.l,{children:(0,V.jsx)(z.M,{style:{fontSize:"large"},children:"Vendor Issues"})})}),(0,V.jsxs)(E.e,{children:[(0,V.jsx)(B.g,{children:(0,V.jsx)(F.b,{children:(0,V.jsx)(z.M,{children:"Below is a list of dependencies affected with CVE."})})}),(0,V.jsx)(R.o,{isAutoFit:!0,style:{paddingTop:"10px"},children:A(n).map((function(e,n){return(0,V.jsxs)(B.g,{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,V.jsx)(V.Fragment,{children:(0,V.jsx)(z.M,{style:{fontSize:"large"},children:S(e)})}),(0,V.jsx)(F.b,{children:(0,V.jsx)(Q,{summary:e.report.summary})})]},n)}))})]}),(0,V.jsx)(k.i,{})]})}),(0,V.jsxs)(c.P,{md:6,children:[(0,V.jsx)(O.Z,{isFlat:!0,children:(0,V.jsxs)(B.g,{children:[(0,V.jsx)(L.l,{component:"h4",children:(0,V.jsxs)(z.M,{style:{fontSize:"large"},children:[(0,V.jsx)(P.J,{isInline:!0,status:"info",children:(0,V.jsx)(K.ZP,{style:{fill:"#cc0000"}})}),"\xa0 Red Hat Remediations"]})}),(0,V.jsx)(E.e,{children:(0,V.jsx)(F.b,{children:(0,V.jsx)(G.aV,{isPlain:!0,children:A(n).map((function(e,n){return Object.keys(e.report).length>0?(0,V.jsxs)(H.H,{children:[(0,V.jsx)(P.J,{isInline:!0,status:"success",children:(0,V.jsx)("img",{src:q,alt:"Security Check Icon"})}),"\xa0",e.report.summary.remediations," remediations are available from Red Hat for ",e.provider]}):(0,V.jsxs)(H.H,{children:[(0,V.jsx)(P.J,{isInline:!0,status:"success",children:(0,V.jsx)("img",{src:q,alt:"Security Check Icon"})}),"\xa0 There are no available Red Hat remediations for your SBOM at this time for ",e.provider]})}))})})})]})}),"\xa0"]}),(0,V.jsxs)(c.P,{md:6,children:[(0,V.jsx)(O.Z,{isFlat:!0,children:(0,V.jsxs)(B.g,{children:[(0,V.jsx)(L.l,{component:"h4",children:(0,V.jsx)(z.M,{style:{fontSize:"large"},children:"Join to explore Red Hat TPA"})}),(0,V.jsx)(E.e,{children:(0,V.jsx)(F.b,{children:(0,V.jsxs)(G.aV,{isPlain:!0,children:[(0,V.jsx)(H.H,{children:"Check out our new Trusted Profile Analyzer to get visibility and insight into your software risk profile, for instance by exploring vulnerabilites or analyzing SBOMs."}),(0,V.jsx)(H.H,{children:(0,V.jsx)("a",{href:"https://console.redhat.com/application-services/trusted-content",target:"_blank",rel:"noopener noreferrer",children:(0,V.jsx)(U.zx,{variant:"primary",size:"sm",children:"Take me there"})})})]})})})]})}),"\xa0"]})]})},$=r(2933),ee=function(e){var n=e.report,r=Object.keys(n.providers).map((function(e){return n.providers[e].status})).filter((function(e){return!e.ok&&!(!(n=e).ok&&401===n.code&&"Unauthenticated"===n.message&&p.includes(n.name));var n}));return(0,V.jsx)(V.Fragment,{children:r.map((function(e,n){return(0,V.jsx)($.b,{variant:e.code>=500?$.U.danger:e.code>=400?$.U.warning:void 0,title:"".concat(M(e.name),": ").concat(e.message)},n)}))})},ne=r(885),re=r(6081),ie=r(4817),te=r(6467),ae=r(1413),se=r(9809),ce=r(382),oe=r(8521),le=r(2e3),de=r(6989),ue=r(2401),he=r(6496),ge=r(8987),ve=r(9623),xe=r(9626),pe=r(205),je=r(3610),fe=r(7990),me=r(5091),ye=r(6056),Ie=r(1915),be=r(1178),Ce=r(7102),Me=r(2982),Te=r(1917),Ae=function(e){return e[e.SET_PAGE=0]="SET_PAGE",e[e.SET_SORT_BY=1]="SET_SORT_BY",e}(Ae||{}),Se={changed:!1,currentPage:{page:1,perPage:10},sortBy:void 0},we=function(e,n){switch(n.type){case Ae.SET_PAGE:var r=n.payload;return(0,ae.Z)((0,ae.Z)({},e),{},{changed:!0,currentPage:{page:r.page,perPage:r.perPage}});case Ae.SET_SORT_BY:var i=n.payload;return(0,ae.Z)((0,ae.Z)({},e),{},{changed:!0,sortBy:{index:i.index,direction:i.direction}});default:return e}},De=r(9960),Ne=r(500),Pe=function(e){var n,r=e.count,i=e.params,t=e.isTop,a=(e.isCompact,e.perPageOptions),s=e.onChange,c=function(){return i.perPage||10};return(0,V.jsx)(De.t,{itemCount:r,page:i.page||1,perPage:c(),onPageInput:function(e,n){s({page:n,perPage:c()})},onSetPage:function(e,n){s({page:n,perPage:c()})},onPerPageSelect:function(e,n){s({page:1,perPage:n})},widgetId:"pagination-options-menu",variant:t?De.a.top:De.a.bottom,perPageOptions:(n=a||[10,20,50,100],n.map((function(e){return{title:String(e),value:e}}))),toggleTemplate:function(e){return(0,V.jsx)(Ne.v,(0,ae.Z)({},e))}})},ke=function(e){var n=e.name,r=e.showVersion,i=void 0!==r&&r;return(0,V.jsx)(V.Fragment,{children:(0,V.jsx)("a",{href:I(n),target:"_blank",rel:"noreferrer",children:m(n,i)})})},Oe=r(164),Ze=r(5020),Le=r(8649),ze=r(7514),Ee=function(e){var n=e.numRenderedColumns,r=e.isLoading,i=void 0!==r&&r,t=e.isError,a=void 0!==t&&t,s=e.isNoData,c=void 0!==s&&s,o=e.errorEmptyState,l=void 0===o?null:o,d=e.noDataEmptyState,u=void 0===d?null:d,h=e.children,g=(0,V.jsxs)(se.u,{variant:se.I.sm,children:[(0,V.jsx)(oe.k,{icon:Le.ZP,color:ze.a.value}),(0,V.jsx)(N.D,{headingLevel:"h2",size:"lg",children:"Unable to connect"}),(0,V.jsx)(le.B,{children:"There was an error retrieving data. Check your connection and try again."})]}),v=(0,V.jsxs)(se.u,{variant:se.I.sm,children:[(0,V.jsx)(oe.k,{icon:Ze.ZP}),(0,V.jsx)(N.D,{headingLevel:"h2",size:"lg",children:"No data available"}),(0,V.jsx)(le.B,{children:"No data available to be shown here."})]});return(0,V.jsx)(V.Fragment,{children:i?(0,V.jsx)(ye.p,{children:(0,V.jsx)(fe.Tr,{children:(0,V.jsx)(Ie.Td,{colSpan:n,children:(0,V.jsx)(J.b,{children:(0,V.jsx)(Oe.$,{size:"xl"})})})})}):a?(0,V.jsx)(ye.p,{"aria-label":"Table error",children:(0,V.jsx)(fe.Tr,{children:(0,V.jsx)(Ie.Td,{colSpan:n,children:(0,V.jsx)(J.b,{children:l||g})})})}):c?(0,V.jsx)(ye.p,{"aria-label":"Table no data",children:(0,V.jsx)(fe.Tr,{children:(0,V.jsx)(Ie.Td,{colSpan:n,children:(0,V.jsx)(J.b,{children:u||v})})})}):h})},Be=function(e){var n=e.packageName;e.cves;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(P.J,{isInline:!0,status:"success",children:(0,V.jsx)("img",{src:q,alt:"Security Check Icon"})}),"\xa0",(0,V.jsx)("a",{href:y(n),target:"_blank",rel:"noreferrer",children:b(n)})]})},Fe=function(){var e=dn().providerPrivateData;return{hideIssue:function(n,r){return!(!e||-1===e.indexOf(n))&&r}}},Re=function(e){var n,r,i,t=e.sourceName,a=e.vulnerability,s=Fe(),c=dn();return(0,V.jsx)(V.Fragment,{children:s.hideIssue(t,a.unique)?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("a",{href:c.snykSignup,target:"_blank",rel:"noreferrer",children:"Sign up for a Snyk account"})," ","to learn about the vulnerabilities found"]}):"snyk"!==t||null!==(null===(n=a.remediation)||void 0===n?void 0:n.fixedIn)&&0!==(null===(r=a.remediation)||void 0===r||null===(i=r.fixedIn)||void 0===i?void 0:i.length)?(0,V.jsx)("a",{href:C(t,a.id,c),target:"_blank",rel:"noreferrer",children:a.id}):(0,V.jsx)("p",{})})},Ge=r(736),He=r(5351),Ue=r(975),Ye=r(6647),Je=function(e){var n,r=e.vulnerability;switch(r.severity){case"CRITICAL":case"HIGH":n=Ge.n9.danger;break;default:n=Ge.n9.warning}return(0,V.jsx)(V.Fragment,{children:(0,V.jsx)(He.P,{hasGutter:!0,children:(0,V.jsx)(Ue.J,{isFilled:!0,children:(0,V.jsx)(Ye.E,{title:"".concat(r.cvssScore,"/10"),"aria-label":"cvss-score",value:r.cvssScore,min:0,max:10,size:Ye.L.sm,variant:n,measureLocation:Ge.nK.none})})})})},_e=r(313),Ve=function(e){var n,r=e.vulnerability;switch(r.severity){case"CRITICAL":n="#800000";break;case"HIGH":n="#FF0000";break;case"MEDIUM":n="#FFA500";break;case"LOW":n="#5BA352";break;default:n="grey"}return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(P.J,{isInline:!0,children:(0,V.jsx)(_e.ZP,{style:{fill:n,height:"13px"}})}),"\xa0",M(r.severity)]})},We=function(e){var n,r,i=e.id,t=dn();return(0,V.jsx)("a",{href:(n=i,r=t,r.cveIssueTemplate.replace(v,n)),target:"_blank",rel:"noreferrer",children:i})},Qe=r(4150),Ke=function(e){var n=e.title,r=i.useState(!1),t=(0,ne.Z)(r,2),a=t[0],s=t[1];return(0,V.jsx)(Qe.L,{variant:Qe.S.truncate,toggleText:a?"Show less":"Show more",onToggle:function(e,n){s(n)},isExpanded:a,children:n})},qe=function(e){var n,r,i,t,a,s=e.item,c=e.providerName,o=e.rowIndex;a=s.vulnerability.cves&&s.vulnerability.cves.length>0?s.vulnerability.cves:[s.vulnerability.id];var l=Fe().hideIssue(c,s.vulnerability.unique),d=dn();return(0,V.jsxs)(fe.Tr,{children:[l?(0,V.jsx)(V.Fragment,{children:(0,V.jsx)(Ie.Td,{colSpan:3,children:(0,V.jsx)("a",{href:d.snykSignup,target:"_blank",rel:"noreferrer",children:"Sign up for a Snyk account to learn about the vulnerabilities found"})})}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ie.Td,{children:a.map((function(e,n){return(0,V.jsx)("p",{children:(0,V.jsx)(We,{id:e})},n)}))}),(0,V.jsx)(Ie.Td,{children:(0,V.jsx)(Ke,{title:s.vulnerability.title})}),(0,V.jsx)(Ie.Td,{noPadding:!0,children:(0,V.jsx)(Ve,{vulnerability:s.vulnerability})})]}),(0,V.jsx)(Ie.Td,{children:(0,V.jsx)(Je,{vulnerability:s.vulnerability})}),(0,V.jsx)(Ie.Td,{children:(0,V.jsx)(ke,{name:s.dependencyRef,showVersion:!0})}),(0,V.jsx)(Ie.Td,{children:null!==(n=s.vulnerability.remediation)&&void 0!==n&&n.trustedContent?(0,V.jsx)(Be,{cves:s.vulnerability.cves||[],packageName:null===(r=s.vulnerability.remediation)||void 0===r||null===(i=r.trustedContent)||void 0===i?void 0:i.ref},o):null!==(t=s.vulnerability.remediation)&&void 0!==t&&t.fixedIn?(0,V.jsx)(Re,{sourceName:c,vulnerability:s.vulnerability}):w(s.vulnerability)?null:(0,V.jsx)("span",{})})]},o)},Xe=function(e){var n=e.providerName,r=e.transitiveDependencies;return(0,V.jsx)(O.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,V.jsxs)(xe.i,{variant:pe.B.compact,children:[(0,V.jsx)(je.h,{children:(0,V.jsxs)(fe.Tr,{children:[(0,V.jsx)(me.Th,{width:15,children:"Vulnerability ID"}),(0,V.jsx)(me.Th,{width:20,children:"Description"}),(0,V.jsx)(me.Th,{width:10,children:"Severity"}),(0,V.jsx)(me.Th,{width:15,children:"CVSS Score"}),(0,V.jsx)(me.Th,{width:20,children:"Transitive Dependency"}),(0,V.jsx)(me.Th,{width:20,children:"Remediation"})]})}),(0,V.jsx)(Ee,{isNoData:0===r.length,numRenderedColumns:7,children:D(r).map((function(e,r){return(0,V.jsx)(ye.p,{children:(0,V.jsx)(qe,{item:e,providerName:n,rowIndex:r})},r)}))})]})})},$e=function(e){var n=e.providerName,r=e.dependency,i=e.vulnerabilities;return(0,V.jsx)(O.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,V.jsxs)(xe.i,{variant:pe.B.compact,children:[(0,V.jsx)(je.h,{children:(0,V.jsxs)(fe.Tr,{children:[(0,V.jsx)(me.Th,{width:15,children:"Vulnerability ID"}),(0,V.jsx)(me.Th,{width:20,children:"Description"}),(0,V.jsx)(me.Th,{width:10,children:"Severity"}),(0,V.jsx)(me.Th,{width:15,children:"CVSS Score"}),(0,V.jsx)(me.Th,{width:20,children:"Direct Dependency"}),(0,V.jsx)(me.Th,{width:20,children:"Remediation"})]})}),(0,V.jsx)(Ee,{isNoData:0===i.length,numRenderedColumns:6,children:null===i||void 0===i?void 0:i.map((function(e,i){var t=[];return e.cves&&e.cves.length>0?e.cves.forEach((function(e){return t.push(e)})):e.unique&&t.push(e.id),(0,V.jsx)(ye.p,{children:t.map((function(t,a){return(0,V.jsx)(qe,{item:{id:e.id,dependencyRef:r.ref,vulnerability:e},providerName:n,rowIndex:i},"".concat(i,"-").concat(a))}))},i)}))})]})})},en=r(3566),nn=function(e){var n=e.vulnerabilities,r=void 0===n?[]:n,i=e.transitiveDependencies,t=void 0===i?[]:i,a={CRITICAL:0,HIGH:0,MEDIUM:0,LOW:0};return r.length>0?r.forEach((function(e){var n=e.severity;a.hasOwnProperty(n)&&a[n]++})):null===t||void 0===t||t.forEach((function(e){var n;null===(n=e.issues)||void 0===n||n.forEach((function(e){var n=e.severity;a.hasOwnProperty(n)&&a[n]++}))})),(0,V.jsxs)(en.B,{children:[a.CRITICAL>0&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(P.J,{isInline:!0,children:(0,V.jsx)(_e.ZP,{style:{fill:"#800000",height:"13px"}})}),"\xa0",a.CRITICAL,"\xa0"]}),a.HIGH>0&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(P.J,{isInline:!0,children:(0,V.jsx)(_e.ZP,{style:{fill:"#FF0000",height:"13px"}})}),"\xa0",a.HIGH,"\xa0"]}),a.MEDIUM>0&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(P.J,{isInline:!0,children:(0,V.jsx)(_e.ZP,{style:{fill:"#FFA500",height:"13px"}})}),"\xa0",a.MEDIUM,"\xa0"]}),a.LOW>0&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(P.J,{isInline:!0,children:(0,V.jsx)(_e.ZP,{style:{fill:"#5BA352",height:"13px"}})}),"\xa0",a.LOW]})]})},rn=r(6934),tn=function(e){var n,r,i=e.dependency,t=null===(n=i.issues)||void 0===n?void 0:n.some((function(e){return w(e)})),a=(null===(r=i.transitive)||void 0===r?void 0:r.some((function(e){var n;return null===(n=e.issues)||void 0===n?void 0:n.some((function(e){return w(e)}))})))||!1;return(0,V.jsx)(V.Fragment,{children:t||a?"Yes":"No"})},an=function(e){var n=e.name,r=e.dependencies,t=(0,i.useState)(""),a=(0,ne.Z)(t,2),s=a[0],c=a[1],o=function(e){var n=(0,i.useReducer)(we,(0,ae.Z)((0,ae.Z)({},Se),{},{currentPage:e&&e.page?(0,ae.Z)({},e.page):(0,ae.Z)({},Se.currentPage),sortBy:e&&e.sortBy?(0,ae.Z)({},e.sortBy):Se.sortBy})),r=(0,ne.Z)(n,2),t=r[0],a=r[1],s=(0,i.useCallback)((function(e){var n;a({type:Ae.SET_PAGE,payload:{page:e.page>=1?e.page:1,perPage:null!==(n=e.perPage)&&void 0!==n?n:Se.currentPage.perPage}})}),[]),c=(0,i.useCallback)((function(e,n,r,i){a({type:Ae.SET_SORT_BY,payload:{index:n,direction:r}})}),[]);return{page:t.currentPage,sortBy:t.sortBy,changePage:s,changeSortBy:c}}(),l=o.page,d=o.sortBy,u=o.changePage,h=o.changeSortBy,g=function(e){var n=e.items,r=e.currentSortBy,t=e.currentPage,a=e.filterItem,s=e.compareToByColumn;return(0,i.useMemo)((function(){var e,i=(0,Me.Z)(n||[]).filter(a),c=!1;return e=(0,Me.Z)(i).sort((function(e,n){var i=s(e,n,null===r||void 0===r?void 0:r.index);return 0!==i&&(c=!0),i})),c&&(null===r||void 0===r?void 0:r.direction)===Te.B.desc&&(e=e.reverse()),{pageItems:e.slice((t.page-1)*t.perPage,t.page*t.perPage),filteredItems:i}}),[n,t,r,s,a])}({items:r,currentPage:l,currentSortBy:d,compareToByColumn:function(e,n,r){return 1===r?e.ref.localeCompare(n.ref):0},filterItem:function(e){var n=!0;return s&&s.trim().length>0&&(n=-1!==e.ref.toLowerCase().indexOf(s.toLowerCase())),n}}),v=g.pageItems,x=g.filteredItems,p={name:"Dependency Name",version:"Current Version",direct:"Direct Vulnerabilities",transitive:"Transitive Vulnerabilities",rhRemediation:"Remediation available"},j=i.useState({"siemur/test-space":"name"}),m=(0,ne.Z)(j,2),y=m[0],I=m[1],C=function(e,n,r,i){return{isExpanded:y[e.ref]===n,onToggle:function(){return function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=(0,ae.Z)({},y);r?i[e.ref]=n:delete i[e.ref],I(i)}(e,n,y[e.ref]!==n)},expandId:"compound-expandable-example",rowIndex:r,columnIndex:i}};return(0,V.jsx)(O.Z,{children:(0,V.jsx)(E.e,{children:(0,V.jsx)("div",{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:""!==f(n)&&void 0===r?(0,V.jsx)("div",{children:(0,V.jsxs)(se.u,{variant:se.I.sm,children:[(0,V.jsx)(ce.t,{icon:(0,V.jsx)(oe.k,{icon:Ze.ZP}),titleText:"Set up "+n,headingLevel:"h2"}),(0,V.jsxs)(le.B,{children:["You need to provide a valid credentials to see ",n," data. You can use the button below to sing-up for ",n,". If you have already signed up, enter your credentials in your extension settings and then regenerate the Dependency Analytics report."]}),(0,V.jsx)("br",{}),(0,V.jsx)("br",{}),(0,V.jsx)("a",{href:f(n),target:"_blank",rel:"noopener noreferrer",children:(0,V.jsxs)(U.zx,{variant:"primary",size:"sm",children:["Sign up for ",n]})})]})}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(de.o,{children:(0,V.jsxs)(ue.c,{children:[(0,V.jsx)(he.R,{toggleIcon:(0,V.jsx)(Ce.ZP,{}),breakpoint:"xl",children:(0,V.jsx)(ge.E,{variant:"search-filter",children:(0,V.jsx)(ve.M,{style:{width:"250px"},placeholder:"Filter by Dependency name",value:s,onChange:function(e,n){return c(n)},onClear:function(){return c("")}})})}),(0,V.jsx)(ge.E,{variant:ge.A.pagination,align:{default:"alignRight"},children:(0,V.jsx)(Pe,{isTop:!0,count:x.length,params:l,onChange:u})})]})}),(0,V.jsxs)(xe.i,{"aria-label":"Compound expandable table",variant:pe.B.compact,children:[(0,V.jsx)(je.h,{children:(0,V.jsxs)(fe.Tr,{children:[(0,V.jsx)(me.Th,{width:25,sort:{columnIndex:1,sortBy:(0,ae.Z)({},d),onSort:h},children:p.name}),(0,V.jsx)(me.Th,{children:p.version}),(0,V.jsx)(me.Th,{children:p.direct}),(0,V.jsx)(me.Th,{children:p.transitive}),(0,V.jsx)(me.Th,{children:p.rhRemediation})]})}),(0,V.jsx)(Ee,{isNoData:0===x.length,numRenderedColumns:8,noDataEmptyState:(0,V.jsxs)(se.u,{variant:se.I.sm,children:[(0,V.jsx)(ce.t,{icon:(0,V.jsx)(oe.k,{icon:rn.ZP}),titleText:"No results found",headingLevel:"h2"}),(0,V.jsx)(le.B,{children:"Clear all filters and try again."})]}),children:null===v||void 0===v?void 0:v.map((function(e,r){var i,t,a,s,c,o=y[e.ref],l=!!o;return null!==(i=e.issues)&&void 0!==i&&i.length||null!==(t=e.transitive)&&void 0!==t&&t.length?(0,V.jsxs)(ye.p,{isExpanded:l,children:[(0,V.jsxs)(fe.Tr,{children:[(0,V.jsx)(Ie.Td,{width:30,dataLabel:p.name,component:"th",children:(0,V.jsx)(ke,{name:e.ref})}),(0,V.jsx)(Ie.Td,{width:15,dataLabel:p.version,children:b(e.ref)}),(0,V.jsx)(Ie.Td,{width:15,dataLabel:p.direct,compoundExpand:C(e,"direct",r,2),children:null!==(a=e.issues)&&void 0!==a&&a.length?(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,V.jsx)("div",{style:{width:"25px"},children:null===(s=e.issues)||void 0===s?void 0:s.length}),(0,V.jsx)(k.i,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,V.jsx)(nn,{vulnerabilities:e.issues})]}):0}),(0,V.jsx)(Ie.Td,{width:15,dataLabel:p.transitive,compoundExpand:C(e,"transitive",r,3),children:null!==(c=e.transitive)&&void 0!==c&&c.length?(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,V.jsx)("div",{style:{width:"25px"},children:e.transitive.map((function(e){var n;return null===(n=e.issues)||void 0===n?void 0:n.length})).reduce((function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}))}),(0,V.jsx)(k.i,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,V.jsx)(nn,{transitiveDependencies:e.transitive})]}):0}),(0,V.jsx)(Ie.Td,{width:15,dataLabel:p.rhRemediation,children:(0,V.jsx)(tn,{dependency:e})})]}),l?(0,V.jsx)(fe.Tr,{isExpanded:l,children:(0,V.jsx)(Ie.Td,{dataLabel:p[o],noPadding:!0,colSpan:6,children:(0,V.jsx)(be.G,{children:(0,V.jsx)("div",{className:"pf-v5-u-m-md",children:"direct"===o&&e.issues&&e.issues.length>0?(0,V.jsx)($e,{providerName:n,dependency:e,vulnerabilities:e.issues}):"transitive"===o&&e.transitive&&e.transitive.length>0?(0,V.jsx)(Xe,{providerName:n,transitiveDependencies:e.transitive}):null})})})}):null]},e.ref):null}))})]}),(0,V.jsx)(Pe,{isTop:!1,count:x.length,params:l,onChange:u})]})})})})},sn=function(e){var n=A(e.report),r=i.useState(S(n[0])),t=(0,ne.Z)(r,2),s=t[0],c=t[1],o=i.useState(!0),l=(0,ne.Z)(o,1)[0],d=n.map((function(e){var n=S(e);return(0,V.jsx)(re.O,{eventKey:n,title:(0,V.jsx)(ie.T,{children:n}),"aria-label":"".concat(n," source"),children:(0,V.jsx)(a.NP,{variant:a.Dk.default,children:(0,V.jsx)(an,{name:n,dependencies:e.report.dependencies})})})}));return(0,V.jsx)("div",{children:(0,V.jsx)(te.m,{activeKey:s,onSelect:function(e,n){c(n)},"aria-label":"Providers",role:"region",variant:l?"light300":"default",isBox:!0,children:d})})},cn=function(e){var n=e.report,r=i.useState(Object.keys(n)[0]||""),t=(0,ne.Z)(r,2),o=t[0],l=t[1],d=i.useState(!0),u=(0,ne.Z)(d,1)[0],h=Object.entries(n).map((function(e){var n=(0,ne.Z)(e,2),r=n[0],i=n[1];return(0,V.jsxs)(re.O,{eventKey:r,title:(0,V.jsx)(ie.T,{children:m(r,!0)}),"aria-label":"".concat(r," source"),children:[(0,V.jsx)(ee,{report:i}),(0,V.jsx)(a.NP,{variant:a.Dk.light,children:(0,V.jsx)(s.r,{hasGutter:!0,children:(0,V.jsx)(c.P,{children:(0,V.jsx)(X,{report:i})})})}),(0,V.jsx)(a.NP,{variant:a.Dk.default,children:(0,V.jsx)(sn,{report:i})})]})}));return(0,V.jsx)("div",{children:(0,V.jsx)(te.m,{activeKey:o,onSelect:function(e,n){l(n)},"aria-label":"Providers",role:"region",variant:u?"light300":"default",isBox:!0,children:h})})},on=window.appData,ln=(0,i.createContext)(on),dn=function(){return(0,i.useContext)(ln)};var un=function(){return(0,V.jsx)(ln.Provider,{value:on,children:(e=on.report,"object"===typeof e&&null!==e&&Object.keys(e).every((function(n){return"scanned"in e[n]&&"providers"in e[n]&&"object"===typeof e[n].scanned&&"object"===typeof e[n].providers}))?(0,V.jsx)(a.NP,{variant:a.Dk.default,children:(0,V.jsx)(cn,{report:on.report})}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ee,{report:on.report}),(0,V.jsx)(a.NP,{variant:a.Dk.light,children:(0,V.jsx)(s.r,{hasGutter:!0,children:(0,V.jsx)(c.P,{children:(0,V.jsx)(X,{report:on.report})})})}),(0,V.jsx)(a.NP,{variant:a.Dk.default,children:(0,V.jsx)(sn,{report:on.report})})]}))});var e},hn=function(e){e&&e instanceof Function&&r.e(736).then(r.bind(r,599)).then((function(n){var r=n.getCLS,i=n.getFID,t=n.getFCP,a=n.getLCP,s=n.getTTFB;r(e),i(e),t(e),a(e),s(e)}))};t.createRoot(document.getElementById("root")).render((0,V.jsx)(i.StrictMode,{children:(0,V.jsx)(un,{})})),hn()}},n={};function r(i){var t=n[i];if(void 0!==t)return t.exports;var a=n[i]={id:i,loaded:!1,exports:{}};return e[i](a,a.exports,r),a.loaded=!0,a.exports}r.m=e,function(){var e=[];r.O=function(n,i,t,a){if(!i){var s=1/0;for(d=0;d=a)&&Object.keys(r.O).every((function(e){return r.O[e](i[o])}))?i.splice(o--,1):(c=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[i,t,a]}}(),r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var i in n)r.o(n,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},r.e=function(){return Promise.resolve()},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={179:0};r.O.j=function(n){return 0===e[n]};var n=function(n,i){var t,a,s=i[0],c=i[1],o=i[2],l=0;if(s.some((function(n){return 0!==e[n]}))){for(t in c)r.o(c,t)&&(r.m[t]=c[t]);if(o)var d=o(r)}for(n&&n(i);l2&&(t=c.slice(1,c.length-1).join("/")),-1!==r.indexOf("@")&&(a=r.substring(r.indexOf("@")+1));var o=c[c.length-1];return a&&(o=o.substring(0,o.indexOf("@"))),new e(s,t,o,a)}}]),e}();function A(e){var n=[];return Object.keys(e.providers).forEach((function(r){var i=e.providers[r].sources;void 0!==i&&Object.keys(i).length>0?Object.keys(i).forEach((function(e){n.push({provider:r,source:e,report:i[e]})})):"trusted-content"!==r&&n.push({provider:r,source:r,report:{}})})),n.sort((function(e,n){return 0===Object.keys(e.report).length&&0===Object.keys(n.report).length?""===f(e.provider)?""===f(n.provider)?0:-1:1:Object.keys(n.report).length-Object.keys(e.report).length}))}function S(e){return void 0===e?"unknown":e.provider!==e.source?"$item.provider/$item.source":e.provider}function D(e){var n;return!(!e.remediation||!(e.remediation.fixedIn||null!==(n=e.remediation)&&void 0!==n&&n.trustedContent))}function w(e){var n=[];return e.map((function(e){return{dependencyRef:e.ref,vulnerabilities:e.issues||[]}})).forEach((function(e){var r;null===(r=e.vulnerabilities)||void 0===r||r.forEach((function(r){r.cves&&r.cves.length>0?r.cves.forEach((function(i){n.push({id:i,dependencyRef:e.dependencyRef,vulnerability:r})})):n.push({id:r.id,dependencyRef:e.dependencyRef,vulnerability:r})}))})),n.sort((function(e,n){return n.vulnerability.cvssScore-e.vulnerability.cvssScore}))}var N=r(3442),P=r(3324),k=r(6363),O=r(8437),Z=r(6798),L=r(2996),z=r(3020),E=r(4223),B=r(1858),F=r(493),R=r(7065),G=r(7941),H=r(2355),U=r(8485),Y=r(9090),J=r(2570),V=r(7806),_=r(5859),W=["#800000","#FF0000","#FFA500","#5BA352"],Q=function(e){var n,r,i,t,a,s=e.summary,c=null!==(n=null===s||void 0===s?void 0:s.critical)&&void 0!==n?n:0,o=null!==(r=null===s||void 0===s?void 0:s.high)&&void 0!==r?r:0,l=null!==(i=null===s||void 0===s?void 0:s.medium)&&void 0!==i?i:0,d=null!==(t=null===s||void 0===s?void 0:s.low)&&void 0!==t?t:0,u=null!==(a=null===s||void 0===s?void 0:s.total)&&void 0!==a?a:0,h=c+o+l+d>0,g=h?W:["#D5F5E3"],v=[{name:"Critical: ".concat(c),symbol:{type:"square",fill:W[0]}},{name:"High: ".concat(o),symbol:{type:"square",fill:W[1]}},{name:"Medium: ".concat(l),symbol:{type:"square",fill:W[2]}},{name:"Low: ".concat(d),symbol:{type:"square",fill:W[3]}}];return(0,_.jsx)("div",{children:(0,_.jsx)(E.e,{style:{paddingBottom:"inherit",padding:"0"},children:(0,_.jsx)(J.b,{children:(0,_.jsx)("div",{style:{height:"230px",width:"350px"},children:(0,_.jsx)(V.H,{constrainToVisibleArea:!0,data:h?[{x:"Critical",y:c},{x:"High",y:o},{x:"Medium",y:l},{x:"Low",y:d}]:[{x:"Empty",y:1e-10}],labels:function(e){var n=e.datum;return"".concat(n.x,": ").concat(n.y)},legendData:v,legendOrientation:"vertical",legendPosition:"right",padding:{left:20,right:140},subTitle:"Unique vulnerabilities",title:"".concat(u),width:350,colorScale:g})})})})})},K=r(6155),q="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxM3B4IiB2aWV3Qm94PSIwIDAgMTIgMTMiIGlkPSJTZWN1cml0eUNoZWNrSWNvbiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5Db21iaW5lZCBTaGFwZTwvdGl0bGU+CiAgICA8ZyBpZD0iTXVsdGktdmVuZG9yIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iT3ZlcnZpZXctQ29weSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEyMDcsIC05OTMpIiBmaWxsPSIjM0U4NjM1Ij4KICAgICAgICAgICAgPGcgaWQ9IkRldGFpbHMtb2YtZGVwZW5kZW5jeS1jb20uZ2l0aHViIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MjcsIDgxOSkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IkRlcGVuZGVuY3ktMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMTQ0KSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc4MC4xNzI4LCAyNCkiPgogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMy4yKSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iSWNvbnMvMi4tU2l6ZS1zbS9BY3Rpb25zL2NoZWNrIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLCAyLjgpIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTAuNTU2NTc4OSwwIEMxMC43OTA2MjQ5LDAgMTAuOTc5MzMyMiwwLjE4MTU0Mjk2OSAxMC45NzkzMzIyLDAuNDA2MjUgTDEwLjk3OTMzMjIsNS43NDA4MjAzMSBDMTAuOTc5MzMyMiw5Ljc1IDYuMjQwODE5MDcsMTMgNS40OTU3OTI5NiwxMyBDNC43NTA3NjY4NCwxMyAwLDkuNzUgMCw1LjczOTU1MDc4IEwwLDAuNDA2MjUgQzAsMC4xODE1NDI5NjkgMC4xODg3MDcyNzIsMCAwLjQyMjc1MzMwNCwwIFogTTguNTQyNzc4ODMsMy4xMTc4MjY2NyBMNC43OTEyOTYxLDYuODkwODczNTMgTDMuMDM5ODEzMzgsNS4xMjkzMjQ0IEMyLjg4MzYwOSw0Ljk3MjIwNjgzIDIuNjMwMzI4MTIsNC45NzIyMDY4MyAyLjQ3NDEyMzc1LDUuMTI5MzI0NCBMMS45MDg0NDkzOCw1LjY5ODI2NTU2IEMxLjc1MjI0NTAxLDUuODU1MzgzMTIgMS43NTIyNDUwMSw2LjExMDEwNDQ5IDEuOTA4NDQ5MzgsNi4yNjcyMDY3MSBMNC41MDg0NTc5Nyw4Ljg4MjE1OTkxIEM0LjY2NDY0NzA4LDkuMDM5Mjc3NDcgNC45MTc5MTI3LDkuMDM5Mjc3NDcgNS4wNzQxMzIzMyw4Ljg4MjE3NTI1IEw5LjY3NDE0MjgyLDQuMjU1NzA4OTggQzkuODMwMzQ3Miw0LjA5ODU5MTQxIDkuODMwMzQ3MiwzLjg0Mzg3MDA0IDkuNjc0MTQyODIsMy42ODY3Njc4MiBMOS4xMDg0Njg0NiwzLjExNzgyNjY3IEM4Ljk1MjI2NDA4LDIuOTYwNzI0NDQgOC42OTg5ODMyLDIuOTYwNzI0NDQgOC41NDI3Nzg4MywzLjExNzgyNjY3IFoiIGlkPSJDb21iaW5lZC1TaGFwZSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=",X=function(e){var n=e.report;return(0,_.jsxs)(s.r,{hasGutter:!0,children:[(0,_.jsxs)(N.D,{headingLevel:"h3",size:N.H["2xl"],style:{paddingLeft:"15px"},children:[(0,_.jsx)(P.J,{isInline:!0,status:"info",children:(0,_.jsx)(Y.ZP,{style:{fill:"#f0ab00"}})}),"\xa0Red Hat Overview of security Issues"]}),(0,_.jsx)(k.i,{}),(0,_.jsx)(c.P,{children:(0,_.jsxs)(O.Z,{isFlat:!0,isFullHeight:!0,children:[(0,_.jsx)(Z.O,{children:(0,_.jsx)(L.l,{children:(0,_.jsx)(z.M,{style:{fontSize:"large"},children:"Vendor Issues"})})}),(0,_.jsxs)(E.e,{children:[(0,_.jsx)(B.g,{children:(0,_.jsx)(F.b,{children:(0,_.jsx)(z.M,{children:"Below is a list of dependencies affected with CVE."})})}),(0,_.jsx)(R.o,{isAutoFit:!0,style:{paddingTop:"10px"},children:A(n).map((function(e,n){return(0,_.jsxs)(B.g,{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(z.M,{style:{fontSize:"large"},children:S(e)})}),(0,_.jsx)(F.b,{children:(0,_.jsx)(Q,{summary:e.report.summary})})]},n)}))})]}),(0,_.jsx)(k.i,{})]})}),(0,_.jsxs)(c.P,{md:6,children:[(0,_.jsx)(O.Z,{isFlat:!0,children:(0,_.jsxs)(B.g,{children:[(0,_.jsx)(L.l,{component:"h4",children:(0,_.jsxs)(z.M,{style:{fontSize:"large"},children:[(0,_.jsx)(P.J,{isInline:!0,status:"info",children:(0,_.jsx)(K.ZP,{style:{fill:"#cc0000"}})}),"\xa0 Red Hat Remediations"]})}),(0,_.jsx)(E.e,{children:(0,_.jsx)(F.b,{children:(0,_.jsx)(G.aV,{isPlain:!0,children:A(n).map((function(e,n){return Object.keys(e.report).length>0?(0,_.jsxs)(H.H,{children:[(0,_.jsx)(P.J,{isInline:!0,status:"success",children:(0,_.jsx)("img",{src:q,alt:"Security Check Icon"})}),"\xa0",e.report.summary.remediations," remediations are available from Red Hat for ",e.provider]}):(0,_.jsxs)(H.H,{children:[(0,_.jsx)(P.J,{isInline:!0,status:"success",children:(0,_.jsx)("img",{src:q,alt:"Security Check Icon"})}),"\xa0 There are no available Red Hat remediations for your SBOM at this time for ",e.provider]})}))})})})]})}),"\xa0"]}),(0,_.jsxs)(c.P,{md:6,children:[(0,_.jsx)(O.Z,{isFlat:!0,children:(0,_.jsxs)(B.g,{children:[(0,_.jsx)(L.l,{component:"h4",children:(0,_.jsx)(z.M,{style:{fontSize:"large"},children:"Join to explore Red Hat TPA"})}),(0,_.jsx)(E.e,{children:(0,_.jsx)(F.b,{children:(0,_.jsxs)(G.aV,{isPlain:!0,children:[(0,_.jsx)(H.H,{children:"Check out our new Trusted Profile Analyzer to get visibility and insight into your software risk profile, for instance by exploring vulnerabilites or analyzing SBOMs."}),(0,_.jsx)(H.H,{children:(0,_.jsx)("a",{href:"https://console.redhat.com/application-services/trusted-content",target:"_blank",rel:"noopener noreferrer",children:(0,_.jsx)(U.zx,{variant:"primary",size:"sm",children:"Take me there"})})})]})})})]})}),"\xa0"]})]})},$=r(2933),ee=function(e){var n=e.report,r=Object.keys(n.providers).map((function(e){return n.providers[e].status})).filter((function(e){return!e.ok&&!(!(n=e).ok&&401===n.code&&"Unauthenticated"===n.message&&p.includes(n.name));var n}));return(0,_.jsx)(_.Fragment,{children:r.map((function(e,n){return(0,_.jsx)($.b,{variant:e.code>=500?$.U.danger:e.code>=400?$.U.warning:void 0,title:"".concat(M(e.name),": ").concat(e.message)},n)}))})},ne=r(885),re=r(6081),ie=r(4817),te=r(6467),ae=r(1413),se=r(9809),ce=r(382),oe=r(8521),le=r(2e3),de=r(6989),ue=r(2401),he=r(6496),ge=r(8987),ve=r(9623),xe=r(9626),pe=r(205),je=r(3610),fe=r(7990),me=r(5091),ye=r(6056),Ie=r(1915),be=r(1178),Ce=r(7102),Me=r(2982),Te=r(1917),Ae=function(e){return e[e.SET_PAGE=0]="SET_PAGE",e[e.SET_SORT_BY=1]="SET_SORT_BY",e}(Ae||{}),Se={changed:!1,currentPage:{page:1,perPage:10},sortBy:void 0},De=function(e,n){switch(n.type){case Ae.SET_PAGE:var r=n.payload;return(0,ae.Z)((0,ae.Z)({},e),{},{changed:!0,currentPage:{page:r.page,perPage:r.perPage}});case Ae.SET_SORT_BY:var i=n.payload;return(0,ae.Z)((0,ae.Z)({},e),{},{changed:!0,sortBy:{index:i.index,direction:i.direction}});default:return e}},we=r(9960),Ne=r(500),Pe=function(e){var n,r=e.count,i=e.params,t=e.isTop,a=(e.isCompact,e.perPageOptions),s=e.onChange,c=function(){return i.perPage||10};return(0,_.jsx)(we.t,{itemCount:r,page:i.page||1,perPage:c(),onPageInput:function(e,n){s({page:n,perPage:c()})},onSetPage:function(e,n){s({page:n,perPage:c()})},onPerPageSelect:function(e,n){s({page:1,perPage:n})},widgetId:"pagination-options-menu",variant:t?we.a.top:we.a.bottom,perPageOptions:(n=a||[10,20,50,100],n.map((function(e){return{title:String(e),value:e}}))),toggleTemplate:function(e){return(0,_.jsx)(Ne.v,(0,ae.Z)({},e))}})},ke=function(e){var n=e.name,r=e.showVersion,i=void 0!==r&&r;return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("a",{href:I(n),target:"_blank",rel:"noreferrer",children:m(n,i)})})},Oe=r(164),Ze=r(5020),Le=r(8649),ze=r(7514),Ee=function(e){var n=e.numRenderedColumns,r=e.isLoading,i=void 0!==r&&r,t=e.isError,a=void 0!==t&&t,s=e.isNoData,c=void 0!==s&&s,o=e.errorEmptyState,l=void 0===o?null:o,d=e.noDataEmptyState,u=void 0===d?null:d,h=e.children,g=(0,_.jsxs)(se.u,{variant:se.I.sm,children:[(0,_.jsx)(oe.k,{icon:Le.ZP,color:ze.a.value}),(0,_.jsx)(N.D,{headingLevel:"h2",size:"lg",children:"Unable to connect"}),(0,_.jsx)(le.B,{children:"There was an error retrieving data. Check your connection and try again."})]}),v=(0,_.jsxs)(se.u,{variant:se.I.sm,children:[(0,_.jsx)(oe.k,{icon:Ze.ZP}),(0,_.jsx)(N.D,{headingLevel:"h2",size:"lg",children:"No data available"}),(0,_.jsx)(le.B,{children:"No data available to be shown here."})]});return(0,_.jsx)(_.Fragment,{children:i?(0,_.jsx)(ye.p,{children:(0,_.jsx)(fe.Tr,{children:(0,_.jsx)(Ie.Td,{colSpan:n,children:(0,_.jsx)(J.b,{children:(0,_.jsx)(Oe.$,{size:"xl"})})})})}):a?(0,_.jsx)(ye.p,{"aria-label":"Table error",children:(0,_.jsx)(fe.Tr,{children:(0,_.jsx)(Ie.Td,{colSpan:n,children:(0,_.jsx)(J.b,{children:l||g})})})}):c?(0,_.jsx)(ye.p,{"aria-label":"Table no data",children:(0,_.jsx)(fe.Tr,{children:(0,_.jsx)(Ie.Td,{colSpan:n,children:(0,_.jsx)(J.b,{children:u||v})})})}):h})},Be=function(e){var n=e.packageName;e.cves;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(P.J,{isInline:!0,status:"success",children:(0,_.jsx)("img",{src:q,alt:"Security Check Icon"})}),"\xa0",(0,_.jsx)("a",{href:y(n),target:"_blank",rel:"noreferrer",children:b(n)})]})},Fe=function(){var e=dn().providerPrivateData;return{hideIssue:function(n,r){return!(!e||-1===e.indexOf(n))&&r}}},Re=function(e){var n,r,i,t=e.sourceName,a=e.vulnerability,s=Fe(),c=dn();return(0,_.jsx)(_.Fragment,{children:s.hideIssue(t,a.unique)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("a",{href:c.snykSignup,target:"_blank",rel:"noreferrer",children:"Sign up for a Snyk account"})," ","to learn about the vulnerabilities found"]}):"snyk"!==t||null!==(null===(n=a.remediation)||void 0===n?void 0:n.fixedIn)&&0!==(null===(r=a.remediation)||void 0===r||null===(i=r.fixedIn)||void 0===i?void 0:i.length)?(0,_.jsx)("a",{href:C(t,a.id,c),target:"_blank",rel:"noreferrer",children:a.id}):(0,_.jsx)("p",{})})},Ge=r(736),He=r(5351),Ue=r(975),Ye=r(6647),Je=function(e){var n,r=e.vulnerability;switch(r.severity){case"CRITICAL":case"HIGH":n=Ge.n9.danger;break;default:n=Ge.n9.warning}return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(He.P,{hasGutter:!0,children:(0,_.jsx)(Ue.J,{isFilled:!0,children:(0,_.jsx)(Ye.E,{title:"".concat(r.cvssScore,"/10"),"aria-label":"cvss-score",value:r.cvssScore,min:0,max:10,size:Ye.L.sm,variant:n,measureLocation:Ge.nK.none})})})})},Ve=r(313),_e=function(e){var n,r=e.vulnerability;switch(r.severity){case"CRITICAL":n="#800000";break;case"HIGH":n="#FF0000";break;case"MEDIUM":n="#FFA500";break;case"LOW":n="#5BA352";break;default:n="grey"}return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(P.J,{isInline:!0,children:(0,_.jsx)(Ve.ZP,{style:{fill:n,height:"13px"}})}),"\xa0",M(r.severity)]})},We=function(e){var n,r,i=e.id,t=dn();return(0,_.jsx)("a",{href:(n=i,r=t,r.cveIssueTemplate.replace(v,n)),target:"_blank",rel:"noreferrer",children:i})},Qe=r(4150),Ke=function(e){var n=e.title,r=i.useState(!1),t=(0,ne.Z)(r,2),a=t[0],s=t[1];return(0,_.jsx)(Qe.L,{variant:Qe.S.truncate,toggleText:a?"Show less":"Show more",onToggle:function(e,n){s(n)},isExpanded:a,children:n})},qe=function(e){var n,r,i,t,a,s=e.item,c=e.providerName,o=e.rowIndex;a=s.vulnerability.cves&&s.vulnerability.cves.length>0?s.vulnerability.cves:[s.vulnerability.id];var l=Fe().hideIssue(c,s.vulnerability.unique),d=dn();return(0,_.jsxs)(fe.Tr,{children:[l?(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Ie.Td,{colSpan:3,children:(0,_.jsx)("a",{href:d.snykSignup,target:"_blank",rel:"noreferrer",children:"Sign up for a Snyk account to learn about the vulnerabilities found"})})}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Ie.Td,{children:a.map((function(e,n){return(0,_.jsx)("p",{children:(0,_.jsx)(We,{id:e})},n)}))}),(0,_.jsx)(Ie.Td,{children:(0,_.jsx)(Ke,{title:s.vulnerability.title})}),(0,_.jsx)(Ie.Td,{noPadding:!0,children:(0,_.jsx)(_e,{vulnerability:s.vulnerability})})]}),(0,_.jsx)(Ie.Td,{children:(0,_.jsx)(Je,{vulnerability:s.vulnerability})}),(0,_.jsx)(Ie.Td,{children:(0,_.jsx)(ke,{name:s.dependencyRef,showVersion:!0})}),(0,_.jsx)(Ie.Td,{children:null!==(n=s.vulnerability.remediation)&&void 0!==n&&n.trustedContent?(0,_.jsx)(Be,{cves:s.vulnerability.cves||[],packageName:null===(r=s.vulnerability.remediation)||void 0===r||null===(i=r.trustedContent)||void 0===i?void 0:i.ref},o):null!==(t=s.vulnerability.remediation)&&void 0!==t&&t.fixedIn?(0,_.jsx)(Re,{sourceName:c,vulnerability:s.vulnerability}):D(s.vulnerability)?null:(0,_.jsx)("span",{})})]},o)},Xe=function(e){var n=e.providerName,r=e.transitiveDependencies;return(0,_.jsx)(O.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,_.jsxs)(xe.i,{variant:pe.B.compact,children:[(0,_.jsx)(je.h,{children:(0,_.jsxs)(fe.Tr,{children:[(0,_.jsx)(me.Th,{width:15,children:"Vulnerability ID"}),(0,_.jsx)(me.Th,{width:20,children:"Description"}),(0,_.jsx)(me.Th,{width:10,children:"Severity"}),(0,_.jsx)(me.Th,{width:15,children:"CVSS Score"}),(0,_.jsx)(me.Th,{width:20,children:"Transitive Dependency"}),(0,_.jsx)(me.Th,{width:20,children:"Remediation"})]})}),(0,_.jsx)(Ee,{isNoData:0===r.length,numRenderedColumns:7,children:w(r).map((function(e,r){return(0,_.jsx)(ye.p,{children:(0,_.jsx)(qe,{item:e,providerName:n,rowIndex:r})},r)}))})]})})},$e=function(e){var n=e.providerName,r=e.dependency,i=e.vulnerabilities;return(0,_.jsx)(O.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,_.jsxs)(xe.i,{variant:pe.B.compact,children:[(0,_.jsx)(je.h,{children:(0,_.jsxs)(fe.Tr,{children:[(0,_.jsx)(me.Th,{width:15,children:"Vulnerability ID"}),(0,_.jsx)(me.Th,{width:20,children:"Description"}),(0,_.jsx)(me.Th,{width:10,children:"Severity"}),(0,_.jsx)(me.Th,{width:15,children:"CVSS Score"}),(0,_.jsx)(me.Th,{width:20,children:"Direct Dependency"}),(0,_.jsx)(me.Th,{width:20,children:"Remediation"})]})}),(0,_.jsx)(Ee,{isNoData:0===i.length,numRenderedColumns:6,children:null===i||void 0===i?void 0:i.map((function(e,i){var t=[];return e.cves&&e.cves.length>0?e.cves.forEach((function(e){return t.push(e)})):e.unique&&t.push(e.id),(0,_.jsx)(ye.p,{children:t.map((function(t,a){return(0,_.jsx)(qe,{item:{id:e.id,dependencyRef:r.ref,vulnerability:e},providerName:n,rowIndex:i},"".concat(i,"-").concat(a))}))},i)}))})]})})},en=r(3566),nn=function(e){var n=e.vulnerabilities,r=void 0===n?[]:n,i=e.transitiveDependencies,t=void 0===i?[]:i,a={CRITICAL:0,HIGH:0,MEDIUM:0,LOW:0};return r.length>0?r.forEach((function(e){var n=e.severity;a.hasOwnProperty(n)&&a[n]++})):null===t||void 0===t||t.forEach((function(e){var n;null===(n=e.issues)||void 0===n||n.forEach((function(e){var n=e.severity;a.hasOwnProperty(n)&&a[n]++}))})),(0,_.jsxs)(en.B,{children:[a.CRITICAL>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(P.J,{isInline:!0,children:(0,_.jsx)(Ve.ZP,{style:{fill:"#800000",height:"13px"}})}),"\xa0",a.CRITICAL,"\xa0"]}),a.HIGH>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(P.J,{isInline:!0,children:(0,_.jsx)(Ve.ZP,{style:{fill:"#FF0000",height:"13px"}})}),"\xa0",a.HIGH,"\xa0"]}),a.MEDIUM>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(P.J,{isInline:!0,children:(0,_.jsx)(Ve.ZP,{style:{fill:"#FFA500",height:"13px"}})}),"\xa0",a.MEDIUM,"\xa0"]}),a.LOW>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(P.J,{isInline:!0,children:(0,_.jsx)(Ve.ZP,{style:{fill:"#5BA352",height:"13px"}})}),"\xa0",a.LOW]})]})},rn=r(6934),tn=function(e){var n,r,i=e.dependency,t=null===(n=i.issues)||void 0===n?void 0:n.some((function(e){return D(e)})),a=(null===(r=i.transitive)||void 0===r?void 0:r.some((function(e){var n;return null===(n=e.issues)||void 0===n?void 0:n.some((function(e){return D(e)}))})))||!1;return(0,_.jsx)(_.Fragment,{children:t||a?"Yes":"No"})},an=function(e){var n=e.name,r=e.dependencies,t=(0,i.useState)(""),a=(0,ne.Z)(t,2),s=a[0],c=a[1],o=function(e){var n=(0,i.useReducer)(De,(0,ae.Z)((0,ae.Z)({},Se),{},{currentPage:e&&e.page?(0,ae.Z)({},e.page):(0,ae.Z)({},Se.currentPage),sortBy:e&&e.sortBy?(0,ae.Z)({},e.sortBy):Se.sortBy})),r=(0,ne.Z)(n,2),t=r[0],a=r[1],s=(0,i.useCallback)((function(e){var n;a({type:Ae.SET_PAGE,payload:{page:e.page>=1?e.page:1,perPage:null!==(n=e.perPage)&&void 0!==n?n:Se.currentPage.perPage}})}),[]),c=(0,i.useCallback)((function(e,n,r,i){a({type:Ae.SET_SORT_BY,payload:{index:n,direction:r}})}),[]);return{page:t.currentPage,sortBy:t.sortBy,changePage:s,changeSortBy:c}}(),l=o.page,d=o.sortBy,u=o.changePage,h=o.changeSortBy,g=function(e){var n=e.items,r=e.currentSortBy,t=e.currentPage,a=e.filterItem,s=e.compareToByColumn;return(0,i.useMemo)((function(){var e,i=(0,Me.Z)(n||[]).filter(a),c=!1;return e=(0,Me.Z)(i).sort((function(e,n){var i=s(e,n,null===r||void 0===r?void 0:r.index);return 0!==i&&(c=!0),i})),c&&(null===r||void 0===r?void 0:r.direction)===Te.B.desc&&(e=e.reverse()),{pageItems:e.slice((t.page-1)*t.perPage,t.page*t.perPage),filteredItems:i}}),[n,t,r,s,a])}({items:r,currentPage:l,currentSortBy:d,compareToByColumn:function(e,n,r){return 1===r?e.ref.localeCompare(n.ref):0},filterItem:function(e){var n=!0;return s&&s.trim().length>0&&(n=-1!==e.ref.toLowerCase().indexOf(s.toLowerCase())),n}}),v=g.pageItems,x=g.filteredItems,p={name:"Dependency Name",version:"Current Version",direct:"Direct Vulnerabilities",transitive:"Transitive Vulnerabilities",rhRemediation:"Remediation available"},j=i.useState({"siemur/test-space":"name"}),m=(0,ne.Z)(j,2),y=m[0],I=m[1],C=function(e,n,r,i){return{isExpanded:y[e.ref]===n,onToggle:function(){return function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=(0,ae.Z)({},y);r?i[e.ref]=n:delete i[e.ref],I(i)}(e,n,y[e.ref]!==n)},expandId:"compound-expandable-example",rowIndex:r,columnIndex:i}};return(0,_.jsx)(O.Z,{children:(0,_.jsx)(E.e,{children:(0,_.jsx)("div",{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:""!==f(n)&&void 0===r?(0,_.jsx)("div",{children:(0,_.jsxs)(se.u,{variant:se.I.sm,children:[(0,_.jsx)(ce.t,{icon:(0,_.jsx)(oe.k,{icon:Ze.ZP}),titleText:"Set up "+n,headingLevel:"h2"}),(0,_.jsxs)(le.B,{children:["You need to provide a valid credentials to see ",n," data. You can use the button below to sing-up for ",n,". If you have already signed up, enter your credentials in your extension settings and then regenerate the Dependency Analytics report."]}),(0,_.jsx)("br",{}),(0,_.jsx)("br",{}),(0,_.jsx)("a",{href:f(n),target:"_blank",rel:"noopener noreferrer",children:(0,_.jsxs)(U.zx,{variant:"primary",size:"sm",children:["Sign up for ",n]})})]})}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(de.o,{children:(0,_.jsxs)(ue.c,{children:[(0,_.jsx)(he.R,{toggleIcon:(0,_.jsx)(Ce.ZP,{}),breakpoint:"xl",children:(0,_.jsx)(ge.E,{variant:"search-filter",children:(0,_.jsx)(ve.M,{style:{width:"250px"},placeholder:"Filter by Dependency name",value:s,onChange:function(e,n){return c(n)},onClear:function(){return c("")}})})}),(0,_.jsx)(ge.E,{variant:ge.A.pagination,align:{default:"alignRight"},children:(0,_.jsx)(Pe,{isTop:!0,count:x.length,params:l,onChange:u})})]})}),(0,_.jsxs)(xe.i,{"aria-label":"Compound expandable table",variant:pe.B.compact,children:[(0,_.jsx)(je.h,{children:(0,_.jsxs)(fe.Tr,{children:[(0,_.jsx)(me.Th,{width:25,sort:{columnIndex:1,sortBy:(0,ae.Z)({},d),onSort:h},children:p.name}),(0,_.jsx)(me.Th,{children:p.version}),(0,_.jsx)(me.Th,{children:p.direct}),(0,_.jsx)(me.Th,{children:p.transitive}),(0,_.jsx)(me.Th,{children:p.rhRemediation})]})}),(0,_.jsx)(Ee,{isNoData:0===x.length,numRenderedColumns:8,noDataEmptyState:(0,_.jsxs)(se.u,{variant:se.I.sm,children:[(0,_.jsx)(ce.t,{icon:(0,_.jsx)(oe.k,{icon:rn.ZP}),titleText:"No results found",headingLevel:"h2"}),(0,_.jsx)(le.B,{children:"Clear all filters and try again."})]}),children:null===v||void 0===v?void 0:v.map((function(e,r){var i,t,a,s,c,o=y[e.ref],l=!!o;return null!==(i=e.issues)&&void 0!==i&&i.length||null!==(t=e.transitive)&&void 0!==t&&t.length?(0,_.jsxs)(ye.p,{isExpanded:l,children:[(0,_.jsxs)(fe.Tr,{children:[(0,_.jsx)(Ie.Td,{width:30,dataLabel:p.name,component:"th",children:(0,_.jsx)(ke,{name:e.ref})}),(0,_.jsx)(Ie.Td,{width:15,dataLabel:p.version,children:b(e.ref)}),(0,_.jsx)(Ie.Td,{width:15,dataLabel:p.direct,compoundExpand:C(e,"direct",r,2),children:null!==(a=e.issues)&&void 0!==a&&a.length?(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,_.jsx)("div",{style:{width:"25px"},children:null===(s=e.issues)||void 0===s?void 0:s.length}),(0,_.jsx)(k.i,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,_.jsx)(nn,{vulnerabilities:e.issues})]}):0}),(0,_.jsx)(Ie.Td,{width:15,dataLabel:p.transitive,compoundExpand:C(e,"transitive",r,3),children:null!==(c=e.transitive)&&void 0!==c&&c.length?(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,_.jsx)("div",{style:{width:"25px"},children:e.transitive.map((function(e){var n;return null===(n=e.issues)||void 0===n?void 0:n.length})).reduce((function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}))}),(0,_.jsx)(k.i,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,_.jsx)(nn,{transitiveDependencies:e.transitive})]}):0}),(0,_.jsx)(Ie.Td,{width:15,dataLabel:p.rhRemediation,children:(0,_.jsx)(tn,{dependency:e})})]}),l?(0,_.jsx)(fe.Tr,{isExpanded:l,children:(0,_.jsx)(Ie.Td,{dataLabel:p[o],noPadding:!0,colSpan:6,children:(0,_.jsx)(be.G,{children:(0,_.jsx)("div",{className:"pf-v5-u-m-md",children:"direct"===o&&e.issues&&e.issues.length>0?(0,_.jsx)($e,{providerName:n,dependency:e,vulnerabilities:e.issues}):"transitive"===o&&e.transitive&&e.transitive.length>0?(0,_.jsx)(Xe,{providerName:n,transitiveDependencies:e.transitive}):null})})})}):null]},e.ref):null}))})]}),(0,_.jsx)(Pe,{isTop:!1,count:x.length,params:l,onChange:u}),"osv-nvd"===n&&(0,_.jsx)("div",{children:(0,_.jsx)("p",{children:"Disclaimer:This Product uses data from the NVD API but is not endorsed or certified by the NVD"})})]})})})})},sn=function(e){var n=A(e.report),r=i.useState(S(n[0])),t=(0,ne.Z)(r,2),s=t[0],c=t[1],o=i.useState(!0),l=(0,ne.Z)(o,1)[0],d=n.map((function(e){var n=S(e);return(0,_.jsx)(re.O,{eventKey:n,title:(0,_.jsx)(ie.T,{children:n}),"aria-label":"".concat(n," source"),children:(0,_.jsx)(a.NP,{variant:a.Dk.default,children:(0,_.jsx)(an,{name:n,dependencies:e.report.dependencies})})})}));return(0,_.jsx)("div",{children:(0,_.jsx)(te.m,{activeKey:s,onSelect:function(e,n){c(n)},"aria-label":"Providers",role:"region",variant:l?"light300":"default",isBox:!0,children:d})})},cn=function(e){var n=e.report,r=i.useState(Object.keys(n)[0]||""),t=(0,ne.Z)(r,2),o=t[0],l=t[1],d=i.useState(!0),u=(0,ne.Z)(d,1)[0],h=Object.entries(n).map((function(e){var n=(0,ne.Z)(e,2),r=n[0],i=n[1];return(0,_.jsxs)(re.O,{eventKey:r,title:(0,_.jsx)(ie.T,{children:m(r,!0)}),"aria-label":"".concat(r," source"),children:[(0,_.jsx)(ee,{report:i}),(0,_.jsx)(a.NP,{variant:a.Dk.light,children:(0,_.jsx)(s.r,{hasGutter:!0,children:(0,_.jsx)(c.P,{children:(0,_.jsx)(X,{report:i})})})}),(0,_.jsx)(a.NP,{variant:a.Dk.default,children:(0,_.jsx)(sn,{report:i})})]})}));return(0,_.jsx)("div",{children:(0,_.jsx)(te.m,{activeKey:o,onSelect:function(e,n){l(n)},"aria-label":"Providers",role:"region",variant:u?"light300":"default",isBox:!0,children:h})})},on=window.appData,ln=(0,i.createContext)(on),dn=function(){return(0,i.useContext)(ln)};var un=function(){return(0,_.jsx)(ln.Provider,{value:on,children:(e=on.report,"object"===typeof e&&null!==e&&Object.keys(e).every((function(n){return"scanned"in e[n]&&"providers"in e[n]&&"object"===typeof e[n].scanned&&"object"===typeof e[n].providers}))?(0,_.jsx)(a.NP,{variant:a.Dk.default,children:(0,_.jsx)(cn,{report:on.report})}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ee,{report:on.report}),(0,_.jsx)(a.NP,{variant:a.Dk.light,children:(0,_.jsx)(s.r,{hasGutter:!0,children:(0,_.jsx)(c.P,{children:(0,_.jsx)(X,{report:on.report})})})}),(0,_.jsx)(a.NP,{variant:a.Dk.default,children:(0,_.jsx)(sn,{report:on.report})})]}))});var e},hn=function(e){e&&e instanceof Function&&r.e(736).then(r.bind(r,599)).then((function(n){var r=n.getCLS,i=n.getFID,t=n.getFCP,a=n.getLCP,s=n.getTTFB;r(e),i(e),t(e),a(e),s(e)}))};t.createRoot(document.getElementById("root")).render((0,_.jsx)(i.StrictMode,{children:(0,_.jsx)(un,{})})),hn()}},n={};function r(i){var t=n[i];if(void 0!==t)return t.exports;var a=n[i]={id:i,loaded:!1,exports:{}};return e[i](a,a.exports,r),a.loaded=!0,a.exports}r.m=e,function(){var e=[];r.O=function(n,i,t,a){if(!i){var s=1/0;for(d=0;d=a)&&Object.keys(r.O).every((function(e){return r.O[e](i[o])}))?i.splice(o--,1):(c=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[i,t,a]}}(),r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var i in n)r.o(n,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},r.e=function(){return Promise.resolve()},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={179:0};r.O.j=function(n){return 0===e[n]};var n=function(n,i){var t,a,s=i[0],c=i[1],o=i[2],l=0;if(s.some((function(n){return 0!==e[n]}))){for(t in c)r.o(c,t)&&(r.m[t]=c[t]);if(o)var d=o(r)}for(n&&n(i);l + {name === 'osv-nvd' && ( +
+

Disclaimer:This Product uses data from the NVD API but is not endorsed or certified by the NVD

+
+ )} )}