PageSourceSearch

https://www.panoraysapp.com/2576d2b08ed66f11.db715ba0e13376b4.js

js panoraysapp.com collected 2026-09-25 14:49:39 UTC 27,298 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksurface_ui=self.webpackChunksurface_ui||[]).push([["343"],{20545:function(e,t,n){n.d(t,{Z:()=>g});var i=n(7409),a=n(85893),r=n(56604),s=n(22905),o=n(80372),l=n(40102),d=n(78855),c=n(70987);n(57485);var p=n(42727),u=n(43912),x=n(4378),h=n(75620);let m=(0,i._)({pending:{position:"relative",display:"flex",alignItems:"center"},noData:{display:"flex",alignItems:"center"},grade:({small:e,color:t})=>(0,i._)({color:t,fontSize:"19px"},e&&{fontSize:"14px",fontWeight:"bold"}),symbol:({small:e})=>(0,i._)({height:"24px",width:"24px",color:u.T$},e&&{height:"20px",width:"20px",color:u.T$}),centerColumn:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%"},noDataIcon:e=>({color:e.palette.neutral.main})},x.O),g=({data:e,color:t,indicator:n,small:i})=>{let u,{t:x}=(0,p.useTranslation)("surfaceUIAssessment");return u=e.breached?(0,a.jsx)(c.u,{title:x("riskRating.supplierBreachedToolTip"),children:(0,a.jsx)(l.Z,{sx:m.symbol({small:i})})}):(null==e?void 0:e.evaluationType)===h.h.NONE||(null==e?void 0:e.isNonDomain)?(0,a.jsx)(c.u,{title:x("riskRating.supplierInformationalToolTip"),children:(0,a.jsx)(d.Box,{sx:m.noData,children:(0,a.jsx)(o.Z,{sx:m.noDataIcon})})}):"PENDING"===e.status?(0,a.jsx)(c.u,{title:x("riskRating.gradePendingToolTip"),children:(0,a.jsx)(r.Z,{sx:m.symbol({small:i})})}):-1===e.grade?(0,a.jsx)(c.u,{title:x("riskRating.gradeWarningToolTip"),children:(0,a.jsx)(s.Z,{sx:m.symbol({small:i})})}):"PENDING_CHANGES"===e.status?(0,a.jsxs)(d.Box,{sx:m.pending,children:[n&&(0,a.jsx)(c.u,{title:x("riskRating.gradePendingToolTip"),children:(0,a.jsx)(r.Z,{sx:m.smallIcon})}),(0,a.jsx)(d.Typography,{variant:"body2",sx:m.grade({small:i,color:t}),children:e.grade})]}):"SHOWN"===e.status?(0,a.jsx)(d.Typography,{variant:"body2",sx:m.grade({small:i,color:t}),children:e.grade}):(0,a.jsx)(c.u,{title:x("riskRating.gradeWarningToolTip"),children:(0,a.jsx)(s.Z,{className:m.symbol({small:i})})}),(0,a.jsx)(d.Box,{sx:m.centerColumn,children:u})}},98357:function(e,t,n){n.d(t,{Z:()=>eL});var i=n(7409),a=n(99282),r=n(85893),s=n(78855),o=n(70987),l=n(57485),d=n.n(l),c=n(52293),p=n(42727);let u="inventoryManagement";var x=n(41609),h=n.n(x),m=n(22905),g=n(49696),S=n(10649),v=n(43228),E=n(19484),f=n(20322),y=n(93574),T=n(43912),_=n(42822),C=n(75620),I=n(26660),j=n(36535);let b={btn:{margin:"0 10px"},msgContainer:({hasError:e})=>(0,i._)({position:"absolute",left:"30px",display:"flex",flexDirection:"row",alignItems:"center"},e&&{color:T.Q6}),msg:{marginLeft:"5px"},errorIcon:{color:T.Q6,fontSize:"16px"},warningIcon:{color:T.er,fontSize:"20px"}},R=({onClose:e,reset:t,refetchSuppliers:n})=>{var i,a;let{t:l}=(0,p.useTranslation)("surfaceUIConnection","surfaceUICommon"),d=(0,v.I0)(),x=(0,c.qo)(),T=(0,S.useQueryClient)(),R=(0,E.useLocation)(),{mutate:N}=(0,S.useMutation)(_.c$,{onSuccess:()=>{var i;d((0,f.PV)({key:l("surfaceUIConnection:inventoryManagement.licenseUpdateSuccess",{licenseType:l(`surfaceUICommon:evaluationTypes.${x.license}`),count:null==(i=x.selectedSuppliers)?void 0:i.length}),type:j.Z.SUCCESS}
1)),t(),T.invalidateQueries([I.t.ACTUAL_LICENSES]),T.invalidateQueries([_.H1,{licenseType:C.h.NONE}]),T.invalidateQueries([_.H1,{licenseType:[C.h.NONE,C.h.INVENTORY_PLUS]}]),n(),d((0,y.tT)({location:R})),e()},onError:()=>{d((0,f.PV)({key:l("surfaceUIConnection:inventoryManagement.licenseUpdateError"),type:j.Z.ERROR}))}}),A=(null==(i=x.error)?void 0:i.type)==="ERROR",M=A||h()(x.selectedSuppliers)||!x.license;return(0,r.jsxs)(o.kX,{children:[x.error&&(0,r.jsxs)(s.Box,{sx:b.msgContainer({hasError:A}),children:[A?(0,r.jsx)(m.Z,{sx:b.errorIcon}):(0,r.jsx)(g.Z,{sx:b.warningIcon}),(0,r.jsx)(s.Typography,{"data-ptaction":`${u}ErrorMessage`,variant:"body2",sx:b.msg,children:null==(a=x.error)?void 0:a.msg})]}),(0,r.jsx)(o.zx,{"data-ptaction":`${u}Cancel`,onClick:e,color:"shadow",size:"large",variant:"outlined",sx:b.btn,children:l("surfaceUICommon:cancel")}),(0,r.jsx)(o.zx,{"data-ptaction":`${u}Apply`,onClick:()=>N({data:{evaluation_type:x.license},ids:x.selectedSuppliers}),color:"secondary",size:"large",variant:"contained",disabled:M,children:l("surfaceUICommon:apply")})]})};var N=n(98913),A=n.n(N),M=n(24350),k=n.n(M),w=n(21253);let P={marginRight:"35px"},D=({sx:e={}})=>(0,r.jsx)(s.Skeleton,{sx:[P,e],variant:"rectangular"}),O={opacity:.2,backgroundImage:`repeating-linear-gradient(45deg, ${T.Sn} 0, ${T.Sn} 0.5px, transparent 0, transparent 16%)`},U={cardContainer:({isDisabled:e=!1}={})=>({width:"390px",height:"120px",margin:"16px 0",borderRadius:"4px","&.MuiPaper-root":(0,i._)({border:`1px solid ${T.d6}`,height:"120px",padding:"12px 8px",display:"flex",flexDirection:"row",alignItems:"flex-start",width:"100%"},e&&{opacity:.4})}),licenseSummaryContainer:{marginTop:"16px"},licenseSummary:{color:T.Qy,"& strong":{fontWeight:600}},linearProgressContainer:{display:"flex",flexDirection:"row",marginTop:"8px"},linearProgress:({current:e=0,afterSelection:t=0,total:n=0,isExceeding:a=!1})=>(0,i._)({width:"260px",height:"8px",borderRadius:"8px 0 0 8px"},a&&{backgroundColor:T.Q6},!a&&{background:`linear-gradient(to right, ${T.ek} ${e/n*100}%, ${T.Ix} 0%, ${T.Ix} ${100*t/n}%, ${T.ac} 0%)`}),overusageLinearProgress:({current:e=0,afterSelection:t=0,total:n=0,isExceeding:a=!1})=>(0,i._)({position:"relative",width:"50px",height:"8px",marginLeft:"2px",borderRadius:"0 8px 8px 0"},a&&{backgroundColor:T.Q6},!a&&{background:`linear-gradient(to right, ${T.ek} ${e/n*100}%, ${T.Ix} 0%, ${T.Ix} ${100*t/n}%, ${T.ac} 0%)`}
1),overusageBackground:(0,i._)({position:"absolute",height:"100%",width:"100%",borderRadius:"0 8px 8px 0",backgroundSize:"16px 9px"},O)},L=({children:e})=>(0,r.jsx)(s.Typography,{variant:"caption",sx:U.licenseSummary,children:e}),V=({licenseKey:e,licenseData:t={},selectedSupplierCount:n=0,isLoading:d,disabled:x})=>{var h;let{t:m}=(0,p.useTranslation)("surfaceUIConnection"),{setValue:g}=(0,c.Gc)(),{field:S}=(0,c.bc)({name:"license"}),v=S.value===e,E=t.actual+(v?n:0),f=null!=(h=t.purchased)?h:0,y=t.actual-f,T=v?y+n:0,_=y>0,C=T>0,I=x||_;return((0,l.useEffect)(()=>{v&&(C?g("error",{msg:m("inventoryManagement.licenseExceedingError",{licenseBuffer:100,count:T-0}),type:"ERROR"}):g("error",null))},[v,C,0,T]),d)?(0,r.jsx)(D,{sx:U.cardContainer()}):(0,r.jsxs)(s.Card,{sx:U.cardContainer({isDisabled:I}),children:[(0,r.jsx)(o.Y8,(0,a._)((0,i._)({color:"secondary","data-ptaction":`${u}SelectLicense`,"data-ptvalue":e},S),{value:e,checked:v,disabled:I})),(0,r.jsxs)(s.Box,{padding:"10px 0",children:[(0,r.jsx)(s.Typography,{variant:"body2",children:m(`surfaceUICommon:evaluationTypes.${e}`)}),(0,r.jsx)(s.Box,{sx:U.licenseSummaryContainer,children:(0,r.jsx)(w.UG,{components:{p:L},children:m("inventoryManagement.licenseSummary",{usagePercentage:Math.round(E/t.purchased*100),actual:E,purchased:t.purchased})})}),(0,r.jsxs)(s.Box,{sx:U.linearProgressContainer,children:[(0,r.jsx)(s.Box,{sx:U.linearProgress({current:t.actual,afterSelection:v?t.actual+n:0,total:t.purchased,isExceeding:_})}),(0,r.jsx)(s.Box,{sx:[U.overusageLinearProgress({current:y,afterSelection:T,total:0,isExceeding:_||C}
1)],children:(0,r.jsx)(s.Box,{sx:U.overusageBackground})})]})]})]})};var $=n(84022);let B="30px",Z={container:{position:"relative",height:"100%",width:"450px",backgroundColor:T.xP,overflow:"unset"},cardsWithHeader:{height:"100%",padding:"24px 0px 24px 32px"},cardsContainer:{marginTop:"8px",paddingRight:"32px",height:`calc(100% - ${B})`,overflow:"scroll"},bottomSection:{backgroundColor:T.dM,position:"sticky",bottom:0,height:B},description:{display:"flex",height:"100%",alignItems:"center",flexDirection:"row",justifyContent:"space-around"},colorDescription:{display:"flex",flexDirection:"row",alignItems:"center"},overusageColor:(0,i._)({backgroundSize:"16px 10px"},O),bottomSectionText:{color:T.ld},bottomSectionColor:({color:e})=>({backgroundColor:e,borderRadius:"10px",height:"10px",width:"10px",marginRight:"6px"})},H=({suppliers:e})=>{let{t}=(0,p.useTranslation)("surfaceUIConnection"),{isLoading:n,licensesData:i={}}=(0,$.ZP)({inventoryOptions:{enabled:!1},showAllCards:!1}),{control:a}=(0,c.Gc)(),o=(0,c.qo)({name:"selectedSuppliers",control:a}),d=(0,l.useMemo)(()=>(null==e?void 0:e.some(e=>{var t;return(null==(t=e.assets)?void 0:t.length)===0&&o.includes(e.supplier_id)}))||!1,[e,o]),x=(0,l.useMemo)(()=>k()(e,"supplier_id"),[e]),m=(0,l.useMemo)(()=>null==o?void 0:o.reduce((e,t)=>x[t].evaluation_type===C.h.INVENTORY_PLUS?e+1:e,0),[x,o]);return(0,r.jsxs)(s.Box,{sx:Z.container,children:[(0,r.jsxs)(s.Box,{sx:Z.cardsWithHeader,children:[(0,r.jsx)(s.Typography,{variant:"body2","data-ptaction":`${u}SelectedCount`,"data-ptvalue":`selectedCount${o.length}`,children:t("inventoryManagement.licensingTitle",{count:o.length})}),(0,r.jsx)(s.Box,{sx:Z.cardsContainer,children:n?A()(4,e=>(0,r.jsx)(V,{isLoading:n},e)):Object.keys(i).filter(e=>{var t;return(null==(t=i[e])?void 0:t.purchased)!==I.v}).map(e=>(0,r.jsx)(V,{licenseKey:e,licenseData:i[e],selectedSupplierCount:e===C.h.INVENTORY_PLUS?o.length-m:o.length,disabled:h()(o)||d&&e!==C.h.ASSESSMENT},e))})]}),(0,r.jsxs)(s.Box,{sx:Z.bottomSection,children:[(0,r.jsx)(s.Divider,{}),(0,r.jsxs)(s.Box,{sx:Z.description,children:[(0,r.jsxs)(s.Box,{sx:Z.colorDescription,children:[(0,r.jsx)(s.Box,{sx:Z.bottomSectionColor({color:T.ek})}),(0,r.jsx)(s.Typography,{variant:"caption",sx:Z.bottomSectionText,children:t("inventoryManagement.currentDescription")})]}),(0,r.jsxs)(s.Box,{sx:Z.colorDescription,children:[(0,r.jsx)(s.Box,{sx:Z.bottomSectionColor({color:T.Ix})}),(0,r.jsx)(s.Typography,{variant:"caption",sx:Z.bottomSectionText,children:t("inventoryManagement.expectedDescription")})]}),(0,r.jsxs)(s.Box,{sx:Z.colorDescription,children:[(0,r.jsx)(s.Box,{sx:[Z.bottomSectionColor({color:T.CG}),Z.overusageColor]}),(0,r.jsx)(s.Typography,{variant:"caption",sx:Z.bottomSectionText,children:t("inventoryManagement.additionalDescription")})]})]})]})]})};var G=n(44908),F=n.n(G),Y=n(18446),z=n.n(Y),W=n(59242),Q=n.n(W),J=n(79521),X=n(44603),q=n(75746),K=n(49823);let ee=({businessImpact:e})=>(0,r.jsx)(K.Z,{businessImpact:e,boxSize:10,justify:"flex-start",showTooltip:!0});var et=n(81763),en=n.n(et),ei=n(19057),ea=n(20545),er=n(14369);let es=({row:e,thresholds:t})=>{let{original:{grade:n,status:i,breached:a,evaluation_type:o}}=e,{isNonDomain:l}=(0,ei.Z)(e.original),d=n||"inventory";return d=-1!==d?d:"pending",(0,r.jsx)(s.Box,{"data-ptaction":"supplierRating","data-ptvalue":d,children:(0,r.jsx)(ea.Z,{data:{grade:n,status:i,breached:a,evaluationType:o,thresholds:t,isNonDomain:l},color:en()(n)&&(0,er._n)(n,t),small:!0,indicator:!0})})};var eo=n(33033);let el=d().lazy(()=>Promise.resolve().then(n.t.bind(n,27973,23))),ed=({name:e,logo:t})=>(0,r.jsxs)(s.Box,{display:"flex",flexDirection:"row",alignItems:"center",width:"inherit",children:[(0,r.jsx)(eo.Z,{logo:t}),(0,r.jsx)(s.Box,{marginLeft:"13px",width:"80%",children:(0,r.jsx)(l.Suspense,{fallback:(0,r.jsx)(s.Box,{}),children:(0,r.jsx)(el,{children:e})})})]}),ec=({open:e,handleCancel:t,handleConfirm:n})=>{let{t:i}=(0,p.useTranslation)("surfaceUIConnection");return(0,r.jsxs)(o.WV,{open:e,maxWidth:"sm",onClose:t,"data-ptaction":"convertLimitationModal",children:[(0,r.jsx)(o.$N,{title:i("inventoryManagement.convertAmountLimitation.title")}),(0,r.jsx)(o.cZ,{children:i("inventoryManagement.convertAmountLimitation.description",{maxAmount:500})}),(0,r.jsxs)(o.kX,{children:[(0,r.jsx)(o.zx,{onClick:t,color:"shadow",variant:"outlined",children:i("inventoryManagement.convertAmountLimitation.buttons.cancel")}),(0,r.jsx)(o.zx,{onClick:n,children:i("inventoryManagement.convertAmountLimitation.buttons.confirm")})]})]})},ep={borderRadius:"4px"},eu={margin:"auto 10px"},ex={marginLeft:"20%"},eh=()=>(0,r.jsxs)(s.Box,{display:"flex",children:[(0,r.jsx)(s.Skeleton,{"data-ptaction":"skeleton",color:"dark",variant:"rectangular",width:"40px",height:"40px",margin:"auto",sx:ep}),(0,r.jsx)(s.Skeleton,{"data-ptaction":"skeleton",color:"dark",variant:"rectangular",width:"80px",height:"15px",sx:eu})]}),em=()=>(0,r.jsx)(s.Skeleton,{"data-ptaction":"skeleton",color:"dark",variant:"rectangular",width:"80px",height:"10px",sx:ex});var eg=n(78128),eS=n.n(eg),ev=n(95497),eE=n.n(ev);let ef={marginRight:"35px"},ey=()=>(0,r.jsx)(s.Skeleton,{width:"90px",height:"45px",sx:ef});var eT=n(57790);let e_={marginLeft:"32px",display:"flex",alignItems:"center"},eC={fontSize:"16px",minWidth:"95px",marginRight:"30px"},eI={marginRight:"25px"},ej={marginRight:"15px"},eb=({isLoading:e,supplierCount:t,headers:n})=>{var i,a;let{t:o}=(0,p.useTranslation)("surfaceUIConnection"),d=(0,l.useMemo)(()=>Object.keys(eT.Z.businessImpact).map(e=>({value:Number(e),label:o(eT.Z.businessImpact[e])})),[o]);return(0,r.jsxs)(s.Box,{sx:e_,children:[e?(0,r.jsx)(ey,{}):(0,r.jsx)(s.Typography,{"data-ptaction":`${u}
1SupplierCount`,"data-ptvalue":t,variant:"body2",sx:eC,component:"span",children:o("inventoryManagement.supplierCount",{count:t})}),(0,r.jsx)(s.Box,{"data-ptaction":`${u}BusinessImpactFilter`,children:(0,r.jsx)(eS(),{onChange:e=>{var t;return null==(t=n.businessImpact)?void 0:t.setFilter(e)},header:o("inventoryManagement.filters.businessImpact"),options:d,selectedValues:(null==(i=n.businessImpact)?void 0:i.filterValue)||[],sx:eI})}),(0,r.jsx)(eE(),{placeholder:o("surfaceUICommon:topNav.search.label"),onSearchChange:e=>{var t;return null==(t=n.name)?void 0:t.setFilter(e)},value:(null==(a=n.name)?void 0:a.filterValue)||"",sx:ej})]})};var eR=n(42944),eN=n(39127);let eA={tableContainer:{flex:1,"& th":{paddingBottom:"0","&:nth-of-type(1)":{width:"30px"},"&:nth-of-type(2)":{width:"250px"},"&:nth-of-type(3)":{width:"30%"},"&:nth-of-type(4)":{width:"25%"}},"& td":{height:"56px",padding:"0 16px","&:nth-of-type(2)":{width:"200px"},"&:nth-of-type(3)":{width:"25%"},"&:nth-of-type(4)":{width:"25%"}}},table:({isEmptyState:e})=>(0,a._)((0,i._)({},!e&&{height:"100%"}),{overflow:"hidden"}),tableBody:{overflow:"scroll"}},eM=Q()([(0,eN.Z)(["supplierDelete","supplierUpdate"]),(0,v.$j)(e=>({thresholds:e.appConfig.threshold}))])(({suppliers:e,isLoading:t,thresholds:n})=>{let{t:x}=(0,p.useTranslation)("surfaceUIConnection"),{setValue:m,getValues:g}=(0,c.Gc)(),S=(0,l.useMemo)(()=>({columns:(({t:e,isLoading:t,thresholds:n})=>[{id:"selection",Header:({getToggleAllRowsSelectedProps:e,rows:n,selectedFlatRows:s,toggleRowSelected:c})=>{let[p,x]=(0,l.useState)(!1);return(0,r.jsxs)(d().Fragment,{children:[(0,r.jsx)(o.XZ,(0,a._)((0,i._)((0,a._)((0,i._)({},e()),{onClick:e=>{if(500===s.length)e.stopPropagation(),e.preventDefault(),n.forEach(e=>c(e.id,!1));else if(n.length>500)e.stopPropagation(),e.preventDefault(),x(!0);else{let{checked:t}=e.target;t?n.forEach(e=>null==e?void 0:e.toggleRowSelected(!0)):n.forEach(e=>null==e?void 0:e.toggleRowSelected(!1))}}}),h()(s)&&{indeterminate:!1}),{disabled:t,"data-ptaction":`${u}SelectAll`})),(0,r.jsx)(ec,{open:p,handleCancel:()=>{x(!1)},handleConfirm:()=>{x(!1);let e=500-s.length;n.filter(e=>!e.isSelected).slice(0,e).forEach(e=>c(e.id))}})]})},Cell:({row:n,selectedFlatRows:l})=>{let d=500===l.length&&!n.isSelected;return(0,r.jsx)(o.u,{title:d&&e("inventoryManagement.convertAmountLimitation.checkboxTooltip",{maxAmount:500}),children:(0,r.jsx)(s.Box,{children:(0,r.jsx)(o.XZ,(0,a._)((0,i._)({"data-ptaction":`${u}SelectRow`},n.getToggleRowSelectedProps()),{disabled:t||d}))})})}},{id:"name",accessor:"name",isSortable:!0,Header:e("surfaceUIConnection:inventoryManagement.nameHeader"),Cell:({row:e})=>{let{original:{name:n,logo:i}}=e;return t?(0,r.jsx)(eh,{}):(0,r.jsx)(ed,{logo:i,name:n})}},{id:"businessImpact",accessor:"business_impact",filter:"includesValue",isSortable:!0,Header:e("surfaceUIConnection:inventoryManagement.businessImpactHeader"),Cell:({row:e})=>{let{original:{_id:n,business_impact:i}}=e;return t?(0,r.jsx)(em,{}):(0,r.jsx)(ee,{id:n,businessImpact:i})}},{Header:e("surfaceUICommon:postureRating"),accessor:"grade",isSortable:!0,Cell:({row:e})=>(0,r.jsx)(es,{row:e,thresholds:n})}])({t:x,isLoading:t,thresholds:n}),data:t?Array.from(Array(10),()=>({supplier_id:Math.random()})):e||[],getRowId:e=>e.supplier_id,disableSortRemove:!0,initialState:{hiddenColumns:[],sortBy:[{id:"grade",desc:!1}]}}),[e,x,t,n]),{getTableBodyProps:v,headerGroups:E,rows:f,prepareRow:y,selectedFlatRows:T,toggleAllRowsSelected:_,state:{filters:C}}=(0,J.useTable)(S,J.useFilters,J.useSortBy,J.useRowSelect),I=(0,l.useMemo)(()=>k()(E[0].headers,"id"),[E]);return(0,l.useEffect)(()=>{_(!1),m("selectedSuppliers",[])},[C]),(0,l.useEffect)(()=>{z()(T,g("selectedSuppliers"))||m("selectedSuppliers",F()(T.map(e=>e.id)))},[T]),(0,r.jsxs)(d().Fragment,{children:[(0,r.jsx)(eb,{isLoading:t,supplierCount:f.length,headers:I}),(0,r.jsxs)(s.TableContainer,{"data-ptaction":`${u}SuppliersTable`,sx:eA.tableContainer,children:[(0,r.jsxs)(s.Table,{sx:eA.table({isEmptyState:h()(f)}),children:[(0,r.jsx)(s.TableHead,{children:E.map(e=>(0,r.jsx)(s.TableRow,(0,a._)((0,i._)({}
1,e.getHeaderGroupProps()),{children:e.headers.map(e=>(0,r.jsxs)(s.TableCell,(0,a._)((0,i._)({"data-ptaction":`${u}${e.render("Header")}`},e.getHeaderProps(e.getSortByToggleProps({title:void 0}))),{children:[e.render("Header"),e.isSortable&&(0,r.jsx)(s.TableSortLabel,{className:eA.sortIcon,active:e.isSorted,direction:e.isSortedDesc?"desc":"asc"})]})))})))}),!h()(f)&&(0,r.jsx)(s.TableBody,(0,a._)((0,i._)({sx:eA.tableBody},v()),{children:(0,r.jsx)(X.Z,{children:({height:e,width:t})=>(0,r.jsx)(q.Z,{height:e,width:t,rowCount:f.length,rowHeight:56,rowRenderer:function({index:e,style:t}){let n=f[e];return y(n),(0,r.jsx)(s.TableRow,(0,a._)((0,i._)({},n.getRowProps({style:t})),{children:n.cells.map(e=>(0,r.jsx)(s.TableCell,(0,a._)((0,i._)({},e.getCellProps()),{children:e.render("Cell")})))}))}})})}))]}),!t&&h()(f)&&(0,r.jsx)(eR.Z,{})]})]})});var ek=n(97174);let ew=["supplier_id","name","business_impact","logo","assets","breached","status","grade","evaluation_type","grade"],eP={selectedSuppliers:[],license:null},eD={height:"90%",maxHeight:"880px",maxWidth:"1150px",overflowY:"unset"},eO={display:"flex",flexDirection:"row",height:"100%",margin:"0 -32px",overflowY:"hidden"},eU={display:"flex",flexDirection:"column",flexGrow:1,minWidth:0,marginTop:"25px"},eL=d().memo(({isOpen:e,onClose:t})=>{let{t:n}=(0,p.useTranslation)("surfaceUIConnection"),{data:l=[],isLoading:d,refetch:x}=(0,_.BR)({fields:ew,licenseType:[C.h.NONE,C.h.INVENTORY_PLUS]},(0,a._)((0,i._)({},ek.AL),{refetchOnMount:!0})),h=(0,c.cI)({defaultValues:eP,mode:"onBlur"}),m=()=>{t(),h.reset()};return(0,r.jsx)(c.RV,(0,a._)((0,i._)({},h),{children:(0,r.jsxs)(o.WV,{"data-ptaction":`${u}Modal`,open:e,onClose:m,maxWidth:"xl",PaperProps:{sx:eD},children:[(0,r.jsx)(o.$N,{"data-ptaction":`${u}Title`,title:n("inventoryManagement.title"),subTitle:n("inventoryManagement.description")}),(0,r.jsx)(s.Divider,{}),(0,r.jsx)(o.cZ,{children:(0,r.jsxs)(s.Box,{sx:eO,children:[(0,r.jsx)(s.Box,{"data-ptaction":`${u}SuppliersSection`,sx:eU,children:(0,r.jsx)(eM,{suppliers:l,isLoading:d})}),(0,r.jsx)(s.Divider,{orientation:"vertical"}),(0,r.jsx)(H,{suppliers:l})]})}),(0,r.jsx)(s.Divider,{}),(0,r.jsx)(R,{onClose:m,reset:h.reset,refetchSuppliers:x})]})}))})},32306:function(e,t,n){n.d(t,{Z:()=>p});var i=n(7409),a=n(99282),r=n(43228),s=n(53072),o=n(42822),l=n(97174),d=n(75620),c=n(41775);let p=()=>{let e=(0,r.v9)(s.P$),{supplierCreate:t,supplierUpdate:n,ownSupplierUpdate:p}=(0,c.Z)(["supplierCreate","supplierUpdate","ownSupplierUpdate"]),{data:{count:u}={},isLoading:x}=(0,o.Dy)({licenseType:[d.h.NONE,d.h.INVENTORY_PLUS]},(0,a._)((0,i._)({enabled:!0},l.AL),{refetchOnMount:"always"}));return!e&&t&&(n||p)&&!x&&u>0}},4378:function(e,t,n){n.d(t,{O:()=>i});let i={smallIcon:{height:"12px",width:"12px",color:n(43912).T$,position:"absolute",left:"-20"}}},1942:function(e,t,n){n.d(t,{J7:()=>s,L$:()=>c,Lw:()=>o,TN:()=>u,XA:()=>d,fw:()=>l,gt:()=>x,lD:()=>r,w:()=>p,ys:()=>h});var i,a=n(68072);let r=2;var s=((i={}).large="large",i.medium="medium",i.small="small",i);let o="-",l=3,d="FREE",c={companyName:{value:"",error:null},primaryDomain:{value:"",error:null},asset:{value:"",error:null},isNonDomain:!1},p={[a.hL.PENDING]:"surfaceUIConnection:error.alreadyEvaluating",[a.hL.REJECTED]:"surfaceUIConnection:error.alreadyEvaluatingRejected",[a.hL.ARCHIVED]:"surfaceUIConnection:error.alreadyEvaluatingArchived",[a.hL.APPROVED]:"surfaceUIConnection:error.alreadyEvaluatingApproved",[a.hL.CONTINGENT]:"surfaceUIConnection:error.alreadyEvaluatingLimitedTime",[a.hL.RE_EVALUATION]:"surfaceUIConnection:error.alreadyEvaluatingReEvaluation"},u={[a.Ac.ARCHIVED_OR_REJECTED]:"surfaceUISupplierManagement:segment.archivedRejected",[a.Ac.ASSESSMENT_NOT_COMLETE]:"surfaceUISupplierManagement:segment.scanNotFinished",[a.Ac.HAS_ASSESSMEMT]:"surfaceUISupplierManagement:segment.canCreate",[a.Ac.IS_FREEMIUM]:"surfaceUISupplierManagement:segment.isFreemium",[a.Ac.NO_ASSESSMENT]:"surfaceUISupplierManagement:segment.noAssessment"},x=3,h="own_Supplier:read"},68072:function(e,t,n){n.d(t,{Ac:()=>c,g7:()=>o,hL:()=>d,iP:()=>l});var i,a,r,s,o=((i={})[i.SELECT_COMPANY_STEP=0]="SELECT_COMPANY_STEP",i[i.SELECT_LICENCE_STEP=1]="SELECT_LICENCE_STEP",i),l=((a={}
1).POST_COMPANY="POST_COMPANY",a.GET_SUPPLIER="supplier",a.GET_COMPANY="GET_COMPANY",a.GET_RISK="GET_RISK",a.GET_OPTIONS="GET_OPTIONS",a.GET_USER_DATA="GET_USER_DATA",a),d=((r={}).PENDING="PENDING",r.APPROVED="APPROVED",r.REJECTED="REJECTED",r.ARCHIVED="ARCHIVED",r.CONTINGENT="CONTINGENT",r.RE_EVALUATION="RE_EVALUATION",r),c=((s={}).HAS_ASSESSMEMT="HAS_ASSESSMEMT",s.ARCHIVED_OR_REJECTED="ARCHIVED_OR_REJECTED",s.ASSESSMENT_NOT_COMLETE="ASSESSMENT_NOT_COMLETE",s.IS_FREEMIUM="IS_FREEMIUM",s.NO_ASSESSMENT="NO_ASSESSMENT",s)},82091:function(e,t,n){n.d(t,{Ew:()=>S,LI:()=>f,M0:()=>y,_T:()=>m,_Z:()=>v,ax:()=>g,ei:()=>x,n3:()=>u,qR:()=>h,yw:()=>E});var i=n(7409),a=n(19484),r=n(1942),s=n(68072),o=n(53072),l=n(76742),d=n.n(l),c=n(38990),p=n(73432);let u=(e,t=!1)=>e&&t?d().FREE_OFFERING.path:d().ADD_SUPPLIER.path;function x(e){let{user:{accountInfo:{active_portfolio:t}},data:{portfolio:{data:n={}}}}=e;if(null==t?void 0:t.length){let e=t.map(e=>n[e]).filter(e=>!!e);if(e.length>0)return e}let i=Object.values(n),a=function(e){let t=e.find(e=>e.is_default);return t?t._id:null}(i);return a?[n[a]]:i.length>0?[i[0]]:[]}function h(e,t){let n=x(t),{license:a,asset:s,domain:o,isPrivate:l,_id:d,company_name:c}=e,u=(null==o?void 0:o.length)?o:s?[s]:[],h=l&&0===u.length?{no_assessment:!0,display_in_auto_complete:!1}:{};return(0,i._)({supplier_id:d,name:c,business_impact:r.fw,portfolios:Object.fromEntries(n.map(e=>[e.name,!0])),evaluation_type:a,assets:u},p.OM[a],l?{display_in_auto_complete:!1}:{},h)}let m=e=>(0,c.cj)(e)?null:"surfaceUISupplierManagement:validDomainError",g=e=>(0,c.R$)(e)?null:"surfaceUISupplierManagement:validDomainError",S=e=>(0,c.wD)(e)?null:"surfaceUICommon:providerName.invalid",v=(e,t)=>{var n,i,a;let r=(e.isNonDomain?!t||(null==(n=e.asset.value)?void 0:n.length):null==(i=e.primaryDomain.value)?void 0:i.length)&&(null==(a=e.companyName.value)?void 0:a.length),s=e.companyName.error||(e.isNonDomain?e.asset.error:e.primaryDomain.error);return r&&!s},E=(e,t,n,i)=>n?r.TN[s.Ac.IS_FREEMIUM]:e?r.TN[s.Ac.ARCHIVED_OR_REJECTED]:i?r.TN[s.Ac.NO_ASSESSMENT]:t?r.TN[s.Ac.HAS_ASSESSMEMT]:r.TN[s.Ac.ASSESSMENT_NOT_COMLETE],f=(e,t,n,i)=>{var a,s;return t===n?"surfaceUIConnection:error.alreadyEvaluatingSelf":(null==i||null==(a=i.response)?void 0:a.status)===403?"surfaceUIConnection:error.supplierInOtherPortfolio":e?r.w[null==e||null==(s=e.approval)?void 0:s.status]:null};function y(e,t){let n=new Set(e),i=d().SUPPLIER_ASSESSMENT.permissions.mustInclude.map(o.J_).find(e=>n.has(e)),s=n.has(r.ys);return i&&!s?(0,a.generatePath)(d().EDIT_SUPPLIER.path,{supplierId:t}):(0,a.generatePath)(d().SUPPLIER_MANAGEMENT.path)}},71836:function(e,t,n){n.d(t,{S9:()=>o.S9,at:()=>o.at,vV:()=>l});var i=n(7409),a=n(10649),r=n(97174),s=n(36853),o=n(33545);let l=e=>(0,a.useQuery)([s.$],()=>(0,o.xs)(e),(0,i._)({},r.AL))},36853:function(e,t,n){n.d(t,{$:()=>i,s:()=>a});let i="FETCH_OTP",a="PUBLIC_EMAIL_VERIFICATION"},33545:function(e,t,n){n.d(t,{IS:()=>d,S9:()=>o,at:()=>l,xs:()=>s});var i=n(76150),a=n(98848),r=n(54340);let s=e=>(0,i._)(function*(){let t=yield(0,r.Um)(),{data:n}=yield t.openid.getOtp(e);return n||[]})(),o=e=>(0,i._)(function*(){let t=yield(0,r.Um)(),{data:n}=yield t.openid.postOtp(e);return n})(),l=e=>(0,i._)(function*(){var{id:t}=e,n=(0,a._)(e,["id"]);let i=yield(0,r.Um)(),{data:s}=yield i.openid.putOtp(t,n);return s})(),d=e=>(0,i._)(function*(){let t=yield(0,r.Um)(),{data:n}=yield t.openid.getPublicEmailVerification(e);return n})()},38990:function(e,t,n){n.d(t,{R$:()=>u,cj:()=>p,hM:()=>x,wD:()=>d});var i=n(75373),a=n(18029),r=n.n(a),s=n(43347),o=n(74299),l=n(15596);let d=e=>{let t=new RegExp(l.vD),n=i.Z.sanitize(e,{ALLOWED_TAGS:[]});return!!(e&&!t.test(e)&&n===e&&e.length<=l.vN)},c=/^(http|https):\/\//i,p=e=>{if(!e||c.test(e)||!(0,o.hS)(e))return!1;let t=(0,s.parse)(e.toLowerCase());return t.tldExists&&!!t.domain&&!t.subdomain},u=e=>{if(!e)return!1;let t=(0,o.Vy)(e);return t?!(0,o.Ns)(t)||!(0,o.Y$)(t.address):(0,o.hS)(e)},x=e=>t=>{if(!t)return!0;let n=(0,o.Vy)(t);if(!n)return!!(0,o.hS)(t)||e&&e("addAssetsDialog.textField.validation.notValidAsset")||!1;let i=(0,o.Ns)(n)?(0,o.Y$)(n.address):null;return i?e&&e("addAssetsDialog.textField.validation.notValidAssetAddress",{ipType:r()(i)})||!1:!!(0,o.t0)(t)||e&&e("addAssetsDialog.textField.validation.notValidIpRange")||!1}},74299:function(e,t,n){n.d(t,{Ns:()=>g,Ri:()=>E,Vy:()=>m,Y$:()=>S,hS:()=>v,t0:()=>h});var i=n(1831),a=n(78861),r=n(91417),s=n(74971),o=n.n(s),l=n(56512),d=n.n(l),c=n(37785);let p=e=>"ipv4"===e.kind(),u=/_/g,x=[{ip:"0.0.0.0",mask:8,isValid:!1},{ip:"0.0.0.0",mask:32,isValid:!1},{ip:"10.0.0.0",mask:8,isValid:!1},{ip:"100.64.0.0",mask:10,isValid:!1},{ip:"127.0.0.0",mask:8,isValid:!1},{ip:"169.254.0.0",mask:16,isValid:!1},{ip:"172.16.0.0",mask:12,isValid:!1},{ip:"192.0.0.0",mask:24,isValid:!1},{ip:"192.0.0.0",mask:29,isValid:!1},{ip:"192.0.0.8",mask:32,isValid:!1},{ip:"192.0.0.9",mask:32,isValid:!1},{ip:"192.0.0.10",mask:32,isValid:!1},{ip:"192.0.0.170",mask:32,isValid:!1},{ip:"192.0.0.171",mask:32,isValid:!1},{ip:"192.0.2.0",mask:24,isValid:!1},{ip:"192.31.196.0",mask:24,isValid:!0},{ip:"192.52.193.0",mask:24,isValid:!0},{ip:"192.88.99.0",mask:24,isValid:!1},{ip:"192.168.0.0",mask:16,isValid:!1},{ip:"192.175.48.0",mask:24,isValid:!0},{ip:"198.18.0.0",mask:15,isValid:!1},{ip:"198.51.100.0",mask:24,isValid:!1},{ip:"203.0.113.0",mask:24,isValid:!1},{ip:"240.0.0.0",mask:4,isValid:!1},{ip:"255.255.255.255",mask:32,isValid:!1}].filter(e=>!e.isValid).map(e=>d().IPv4.parseCIDR(`${e.ip}/${e.mask}`)),h=e=>(0,a.Z)(e,4)||(0,i.Z)(e,4)&&(e=>{let t=d().IPv4.networkAddressFromCIDR(e).toString();return e.split("/")[0]===t})(e);function m(e){try{try{return{address:d().parse(e),isRange:!1,mask:null}}catch(n){let t=d().parseCIDR(e);return{address:t[0],isRange:!1,ipRange:!0,mask:t[1].toString()}}}catch(e){return null}}let g=e=>{let t="string"==typeof e?m(e):e;return!!t&&!!p(t.address)&&x.some(e=>p(t.address)&&t.address.match(e))},S=e=>e.range(),v=e=>
1{let t=o().toUnicode(e);if(!(0,r.Z)(t,{allow_underscores:!0}))return!1;let n=t.replace(u,"");if(!c.ZP.isValid(n))return!1;let i=c.ZP.parse(n);return"tld"in i&&!!i.tld&&t.includes(i.tld)},E=e=>h(e)&&!g(e)||v(e)}}]);
2//# sourceMappingURL=2576d2b08ed66f11.db715ba0e13376b4.js.map

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.