"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[2159],{920611:(e,t,a)=>{a.r(t),a.d(t,{default:()=>qe});var r=a(296540),l=a(860923),n=a(582724),c=a(413357),s=a(834959),o=a(566723),i=a(499207),m=a(867627),E=a(469733),d=a(801081),u=a(25553),A=a(87485);const N=(0,u.uh)((0,i.R)()),h=(0,d.Mz)(N,A.i6);var C=a(548643),O=a(217439),I=a(162420),R=a(998837),g=a(822336),v=a(459449),p=a(71479),f=a(294303);const S=(0,p.A)(f.A)`
  width: 100%;
  gap: ${o.xO};
  padding: ${o.xO};
  border-radius: 8px;
  background: ${({theme:{themeName:e}})=>g.Ay[`desktop-color-input-bg-generic-enabled-${e}`]};
`,_=(0,r.memo)(()=>r.createElement(S,null,r.createElement(I.A,{variant:"fill",color:g.Ay[`desktop-color-ublue-04-${(0,R.u)().themeName}`]}),r.createElement(O.A,{size:"medium",color:"text-2"},r.createElement(v.sA,{id:"SCORE_NOTICE"}))));var M=a(256856),w=a(84980),T=a(629318),b=a(51946);const k=(0,b.w)(e=>(0,r.createElement)("svg",(0,T.d)({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,r.createElement)("rect",{x:4,y:3,width:17,height:18,rx:1,fill:"currentColor",className:e.twotonedclassname}),(0,r.createElement)("path",{d:"M20 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3h1v3h15V4H5v3h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H4V4a1 1 0 0 1 1-1h15Z",fill:"currentColor",className:e.baseclassname}),(0,r.createElement)("path",{d:"M11 7h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Zm0 3h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Zm0 7h3a.5.5 0 0 0 0-1h-3a.5.5 0 0 0 0 1Zm3-3h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 1 0 1ZM4 9v2h-.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1H5V9H4Zm0 6v-2h1v2h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H4Z",fill:"currentColor",className:e.baseclassname}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3h1.5a.5.5 0 0 0 0-1h-2a.5.5 0 0 1 0-1H4v-2h1.5a.5.5 0 0 0 0-1h-2a.5.5 0 0 1 0-1H4V9h1.5a.5.5 0 0 0 0-1h-2a.5.5 0 0 1 0-1H4V4a1 1 0 0 1 1-1h15Zm-6 4h-3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1Zm-3 3h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Zm0 7h3a.5.5 0 0 0 0-1h-3a.5.5 0 0 0 0 1Zm3-3h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 1 0 1Z",fill:"currentColor",className:e.fillclassname})));var D,G=a(583011);!function(e){e.A="A",e.B="B",e.C="C",e.D="D",e.F="F"}(D||(D={}));const y=(0,p.A)(f.A,{shouldForwardProp:e=>!["large","scoreGrade"].includes(e)})`
  border-radius: ${g.Ay["desktop-radius-base"]};
  ${({large:e=!1})=>`\n    width: ${e?56:20}px;\n    height: ${e?56:20}px;\n  `}
  ${({scoreGrade:e,theme:{themeName:t}})=>{let a,r;switch(e){case D.A:a=G.A.motifs[t]["desktop-color-green-06"],r=G.A.motifs[t]["desktop-color-green-01"];break;case D.B:a=G.A.motifs[t]["desktop-color-lime-06"],r=G.A.motifs[t]["desktop-color-lime-01"];break;case D.C:a=G.A.motifs[t]["desktop-color-orange-06"],r=G.A.motifs[t]["desktop-color-orange-01"];break;case D.D:case D.F:a=G.A.motifs[t]["desktop-color-red-06"],r=G.A.motifs[t]["desktop-color-red-01"]}return`\n    color: ${a};\n    background-color: ${r};\n  `}}
  justify-content: center;
  align-items: center;
`,L=(0,r.memo)(y),H=(0,p.A)(f.A)`
  padding: ${o.Ln};
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  border: ${({theme:{themeName:e}})=>g.Ay[`desktop-border-divider-${e}`]};
`,P=(0,p.A)(f.A)`
  flex-direction: column;
  align-items: center;
  gap: ${o.S2};
`,x=(0,p.A)(f.A)`
  width: ${98}px;
  flex-direction: column;
  align-items: center;
  gap: ${o.kc};
`,Z=(0,r.memo)(({network_security_vulnerability:e,network_security_hardening:t,network_security_logging:a})=>r.createElement(P,null,r.createElement(f.A,null,r.createElement(x,null,r.createElement(O.A,{size:"medium",color:"text-3"},r.createElement(v.sA,{id:"SCORE_VULNERABILITY"})),r.createElement(f.A,{alignItems:"center",justifyContent:"center",gap:o.xO},r.createElement(M.A,{size:"original"}),r.createElement(L,{scoreGrade:e},r.createElement(O.A,{size:"small",color:"inherit"},e)))),r.createElement(x,null,r.createElement(O.A,{size:"medium",color:"text-3"},r.createElement(v.sA,{id:"SCORE_HARDENING"})),r.createElement(f.A,{alignItems:"center",justifyContent:"center",gap:o.xO},r.createElement(w.A,{size:"original"}),r.createElement(L,{scoreGrade:t},r.createElement(O.A,{size:"small",color:"inherit"},t)))),r.createElement(x,null,r.createElement(O.A,{size:"medium",color:"text-3"},r.createElement(v.sA,{id:"COMMON_LOGGING"})),r.createElement(f.A,{alignItems:"center",justifyContent:"center",gap:o.xO},r.createElement(k,{size:"original"}),r.createElement(L,{scoreGrade:a},r.createElement(O.A,{size:"small",color:"inherit"},a))))))),z=(0,r.memo)(({overall_score:e})=>r.createElement(P,null,r.createElement(L,{scoreGrade:e,large:!0},r.createElement(O.A,{size:"xlarge-4",color:"inherit"},e)))),U=(0,b.w)(e=>(0,r.createElement)("svg",(0,T.d)({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,r.createElement)("path",{fill:"currentColor",className:e.twotonedclassname,d:"M3.5 4.5h17v13h-17z"}),(0,r.createElement)("path",{d:"M17.824 7.676a.6.6 0 0 1 0 .848l-2.013 2.014a1.92 1.92 0 0 1-1.358.562h-1.366a.72.72 0 0 0-.51.21l-1.626 1.628a1.92 1.92 0 0 1-1.358.562H8.347a.72.72 0 0 0-.51.21l-.813.814a.6.6 0 1 1-.848-.848l.813-.814a1.92 1.92 0 0 1 1.358-.562h1.246a.72.72 0 0 0 .51-.21l1.626-1.628a1.92 1.92 0 0 1 1.358-.562h1.366a.72.72 0 0 0 .51-.21l2.013-2.014a.6.6 0 0 1 .848 0Z",fill:"currentColor",className:e.baseclassname}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 18.1a.5.5 0 0 1 0-1H3V5a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v12.1h.5a.5.5 0 0 1 0 1h-19Zm17.5-1H4V5h16v12.1Z",fill:"currentColor",className:e.baseclassname}),(0,r.createElement)("path",{d:"M10 19.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5Z",fill:"currentColor",className:e.baseclassname}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 17.6a.5.5 0 0 0 .5.5h19a.5.5 0 0 0 0-1H21V5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12.1h-.5a.5.5 0 0 0-.5.5Zm8.5 1.4a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm7.324-10.476a.6.6 0 1 0-.848-.848l-2.014 2.013a.72.72 0 0 1-.509.211h-1.366c-.51 0-.998.202-1.358.562l-1.627 1.627a.72.72 0 0 1-.509.211H8.347c-.51 0-.998.202-1.358.562l-.813.814a.6.6 0 0 0 .848.848l.814-.813a.72.72 0 0 1 .509-.211h1.246c.51 0 .998-.202 1.358-.562l1.627-1.627a.72.72 0 0 1 .509-.211h1.366c.51 0 .998-.202 1.358-.562l2.013-2.014Z",fill:"currentColor",className:e.fillclassname}))),V=(0,b.w)(e=>(0,r.createElement)("svg",(0,T.d)({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 15a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm-6 3H4v2h2v-2Zm7 0v2h-2v-2h2Zm7 0h-2v2h2v-2Z",fill:"currentColor",className:e.twotonedclassname}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 4.025A5.01 5.01 0 0 1 16.975 8.5H12.5V4.025Zm0 5.475h4.475a5.01 5.01 0 0 1-4.475 4.475V9.5Zm-1-5.475V8.5H7.025A5.01 5.01 0 0 1 11.5 4.025Zm0 5.475H7.025a5.01 5.01 0 0 0 4.475 4.475V9.5ZM18 9a6 6 0 0 1-5.5 5.98V17h.5a1 1 0 0 1 1 1v.5h3V18a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-.5h-3v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-.5H7v.5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v.5h3V18a1 1 0 0 1 1-1h.5v-2.02A6 6 0 1 1 18 9ZM6 18v2H4v-2h2Zm7 2v-2h-2v2h2Zm7-2v2h-2v-2h2Z",fill:"currentColor",className:e.baseclassname}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 3v5.479H6.022A6 6 0 0 1 11.501 3Zm6.479 5.479H12.5V3a6 6 0 0 1 5.479 5.479Zm-6.478 6.479v-5.48H6.02a6.002 6.002 0 0 0 5.48 5.48Zm6.478-5.48a6.002 6.002 0 0 1-5.479 5.48v-5.48h5.479ZM21 17.98a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v.25h-3v-.25a1 1 0 0 0-1-1h-.25v-2.046a5.917 5.917 0 0 1-1.5 0v2.046H11a1 1 0 0 0-1 1v.25H7v-.25a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-.25h3v.25a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-.25h3v.25a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Z",fill:"currentColor",className:e.fillclassname})));var $=a(329128);const Y=(0,r.memo)(({network_performance_score:e,network_performance_design:t,network_performance_updates:a})=>r.createElement(P,null,r.createElement(f.A,null,r.createElement(x,null,r.createElement(O.A,{size:"medium",color:"text-3"},r.createElement(v.sA,{id:"COMMON_PERFORMANCE"})),r.createElement(f.A,{alignItems:"center",justifyContent:"center",gap:o.xO},r.createElement(U,{size:"original"}),r.createElement(L,{scoreGrade:e},r.createElement(O.A,{size:"small",color:"inherit"},e)))),r.createElement(x,null,r.createElement(O.A,{size:"medium",color:"text-3"},r.createElement(v.sA,{id:"SCORE_DESIGN"})),r.createElement(f.A,{alignItems:"center",justifyContent:"center",gap:o.xO},r.createElement(V,{size:"original"}),r.createElement(L,{scoreGrade:t},r.createElement(O.A,{size:"small",color:"inherit"},t)))),r.createElement(x,null,r.createElement(O.A,{size:"medium",color:"text-3"},r.createElement(v.sA,{id:"COMMON_UPDATES"})),r.createElement(f.A,{alignItems:"center",justifyContent:"center",gap:o.xO},r.createElement($.A,{size:"original"}),r.createElement(L,{scoreGrade:a},r.createElement(O.A,{size:"small",color:"inherit"},a))))))),B=(0,r.memo)(({network_security_vulnerability:e,network_security_hardening:t,network_security_logging:a,overall_score:l,network_performance_score:n,network_performance_design:c,network_performance_updates:s})=>r.createElement(H,{gap:o.xO},r.createElement(O.A,{size:"medium",color:"text-1"},r.createElement(v.sA,{id:"SCORE_NEXT_AI_SITE_GRADE"})),r.createElement(f.A,{width:"100%",justifyContent:"space-evenly"},r.createElement(Z,{network_security_vulnerability:e,network_security_hardening:t,network_security_logging:a}),r.createElement(z,{overall_score:l}),r.createElement(Y,{network_performance_score:n,network_performance_design:c,network_performance_updates:s}))));var F=a(653943),j=a(524100),K=a(919952);const W=(0,d.Mz)(e=>e[K.U.SCORE],e=>e[j.Z.FILTERS]);var q=a(526609),X=a(558935);const J={[j.N.ALL]:!1,[j.N.ACTIVE]:!1,[j.N.DISMISSED]:!1,[j.N.VULNERABILITY]:!1,[j.N.HARDENING]:!1,[j.N.LOGGING]:!1,[j.N.PERFORMANCE]:!1,[j.N.DESIGN]:!1,[j.N.UPDATES]:!1},Q=(0,r.memo)(({subscores:e})=>{const t=(0,E.useDispatch)(),a=(0,E.useSelector)(W),l=(0,r.useCallback)(e=>({target:{checked:r}})=>{var l;t((0,q.O)(e===j.N.ALL?r?X.d:a:(l={...a,[e]:r,[j.N.ALL]:!1},Object.values(l).some(Boolean)?l:X.d)))},[t,a]),n=(0,r.useCallback)(e=>{e.every(({checked:e})=>!e)&&t((0,q.O)(X.d))},[t]),c=(0,r.useMemo)(()=>{const t={...J},n=[],c=e.length;for(let s=0;s<c&&!Object.values(t).every(Boolean);s+=1){const c=e[s];t[j.N.ALL]||(n[0]={id:j.N.ALL,checked:a[j.N.ALL],children:r.createElement(v.sA,{id:"COMMON_ALL"}),onChange:l(j.N.ALL)},t[j.N.ALL]=!0),t[j.N.ACTIVE]||c.dismissed||(n[1]={id:j.N.ACTIVE,checked:a[j.N.ACTIVE],children:r.createElement(v.sA,{id:"COMMON_ACTIVE"}),onChange:l(j.N.ACTIVE)},t[j.N.ACTIVE]=!0),!t[j.N.DISMISSED]&&c.dismissed&&(n[2]={id:j.N.DISMISSED,checked:a[j.N.DISMISSED],children:r.createElement(v.sA,{id:"SCORE_DISMISSED"}),onChange:l(j.N.DISMISSED)},t[j.N.DISMISSED]=!0),t[j.N.VULNERABILITY]||c.subcategory!==C.fn.VULNERABILITY||(n[3]={id:j.N.VULNERABILITY,checked:a[j.N.VULNERABILITY],children:r.createElement(v.sA,{id:"SCORE_VULNERABILITY"}),onChange:l(j.N.VULNERABILITY)},t[j.N.VULNERABILITY]=!0),t[j.N.HARDENING]||c.subcategory!==C.fn.HARDENING||(n[4]={id:j.N.HARDENING,checked:a[j.N.HARDENING],children:r.createElement(v.sA,{id:"SCORE_HARDENING"}),onChange:l(j.N.HARDENING)},t[j.N.HARDENING]=!0),t[j.N.LOGGING]||c.subcategory!==C.fn.LOGGING||(n[5]={id:j.N.LOGGING,checked:a[j.N.LOGGING],children:r.createElement(v.sA,{id:"COMMON_LOGGING"}),onChange:l(j.N.LOGGING)},t[j.N.LOGGING]=!0),t[j.N.PERFORMANCE]||c.subcategory!==C.fn.PERFORMANCE||(n[6]={id:j.N.PERFORMANCE,checked:a[j.N.PERFORMANCE],children:r.createElement(v.sA,{id:"COMMON_PERFORMANCE"}),onChange:l(j.N.PERFORMANCE)},t[j.N.PERFORMANCE]=!0),t[j.N.DESIGN]||c.subcategory!==C.fn.DESIGN||(n[7]={id:j.N.DESIGN,checked:a[j.N.DESIGN],children:r.createElement(v.sA,{id:"SCORE_DESIGN"}),onChange:l(j.N.DESIGN)},t[j.N.DESIGN]=!0),t[j.N.UPDATES]||c.subcategory!==C.fn.UPDATES||(n[8]={id:j.N.UPDATES,checked:a[j.N.UPDATES],children:r.createElement(v.sA,{id:"COMMON_UPDATES"}),onChange:l(j.N.UPDATES)},t[j.N.UPDATES]=!0)}return n.filter(Boolean)},[l,e,a]);return(0,r.useEffect)(()=>{n(c)},[c,n]),r.createElement(f.A,{gap:o.kc},r.createElement(F.A,{variant:"list",direction:"row",full:!1,items:c}))});var ee,te=a(432589),ae=a(845030),re=a(398300),le=a(73162),ne=a(592510),ce=a(457311),se=a(816271),oe=a(396660);!function(e){e.DESCRIPTION="description",e.PATH="path",e.CATEGORY="category",e.ID="id",e.SCORE="score"}(ee||(ee={}));var ie=a(581890),me=a(490313);const Ee=({id:e,dismissed:t})=>r.createElement(O.A,{size:"medium",color:t?"disabled":"text-2"},r.createElement(v.sA,{id:ie.vl[e]?.[me.uw.TRANSLATION_ID]||"COMMON_UNKNOWN"}));var de=a(271856),ue=a(758649),Ae=a(897547),Ne=a(946330),he=a(840279);const Ce=({id:e,dismissed:t})=>{const{formatMessage:a}=(0,v.tz)(),l=(0,Ne.A)(ie.vl[e]?.[me.uw.RECOMMENDATION_PATHS]),n=(0,r.useMemo)(()=>ie.vl[e]?.[me.uw.VISUAL_RECOMMENDATION_PATHS]||(0,he.A)(),[e]),c=(0,r.useCallback)(e=>t=>{t.stopPropagation(),e()},[]),s=(0,r.useCallback)((n,s)=>n.reduce((n,i,m,E)=>[...n,0!==m?r.createElement(Ae.A,{key:`icon-${e}-${i}`,style:{margin:`0 ${o.YC}`}}):null,m!==E.length-1?r.createElement("span",{key:`span-${e}-${i}`},a({id:ie.j0[i]||"COMMON_UNKNOWN"})):r.createElement(ue.A,{key:`button-${e}-${i}`,type:"button",variant:"inline",disabled:t,onClick:c(l[s][0])},r.createElement(O.A,{color:"inherit",size:"inherit"},r.createElement(v.sA,{id:ie.j0[i]})))],[]),[e,t,a,c,l]),i=(0,r.useMemo)(()=>{switch(n.length){case 0:return r.createElement(v.sA,{id:"COMMON_FALLBACK"});case 1:return s(n[0],0);default:return r.createElement(f.A,{alignItems:"center",gap:o.kc},r.createElement(de.A,{width:"100%",maxWidth:"max-content",portal:!0,delay:1,disableHover:t,isInteractive:!0,description:r.createElement(f.A,{flexDirection:"column"},n.map((e,t)=>r.createElement(O.A,{key:e.join(),size:"small",color:"text-2"},s(e,t))))},r.createElement(I.A,{size:"original",isActive:!0})),r.createElement(O.A,{style:{position:"relative",top:"1px"},size:"medium",color:t?"disabled":"text-2"},r.createElement(v.sA,{id:"SCORE_PATH",values:{paths:n.length}})))}},[t,s,n]);return r.createElement(O.A,{size:"medium",color:t?"disabled":"text-2"},i)},Oe=({subcategory:e,dismissed:t})=>r.createElement(O.A,{size:"medium",color:t?"disabled":"text-2"},r.createElement(v.sA,{id:ie.z$[e]||"COMMON_UNKNOWN"})),Ie=({id:e,dismissed:t})=>r.createElement(O.A,{size:"medium",color:t?"disabled":"text-2"},e||r.createElement(v.sA,{id:"COMMON_UNKNOWN"}));var Re=a(427640);const ge=(0,r.memo)(({score:e})=>r.createElement(O.A,{size:"medium",style:{color:(0,Re.O)(e)}},-Math.abs(e)));var ve=a(302792);const pe=(0,r.memo)(({id:e})=>{const t=(0,E.useDispatch)(),[a,l]=(0,r.useState)(!1),n=(0,r.useCallback)(a=>{a.stopPropagation(),l(!0),t((0,ve.G)(e)).finally(()=>{l(!1)})},[t,e]);return r.createElement(ue.A,{type:"button",variant:"inline",onClick:n,disabled:a},r.createElement(v.sA,{id:"COMMON_ACTION_RESTORE"}))}),fe=({id:e,score:t,dismissed:a})=>a?r.createElement(pe,{id:e}):r.createElement(ge,{score:t}),Se={[ee.DESCRIPTION]:"COMMON_DESCRIPTION",[ee.PATH]:"SCORE_PATH",[ee.CATEGORY]:"COMMON_CATEGORY",[ee.ID]:"COMMON_ID",[ee.SCORE]:"COMMON_SCORE"},_e={[ee.DESCRIPTION]:126,[ee.PATH]:96,[ee.CATEGORY]:46,[ee.ID]:28,[ee.SCORE]:36},Me={[ee.DESCRIPTION]:88,[ee.PATH]:76,[ee.CATEGORY]:46,[ee.ID]:28,[ee.SCORE]:36},we={[ee.DESCRIPTION]:Ee,[ee.PATH]:Ce,[ee.CATEGORY]:Oe,[ee.ID]:Ie,[ee.SCORE]:fe},Te={[ee.DESCRIPTION]:({id:e},t)=>t({id:ie.vl[e]?.[me.uw.TRANSLATION_ID]||"COMMON_UNKNOWN"}),[ee.PATH]:({id:e})=>(ie.vl[e]?.[me.uw.VISUAL_RECOMMENDATION_PATHS]||(0,he.A)()).flat().length,[ee.CATEGORY]:({subcategory:e},t)=>t({id:ie.z$[e]||"COMMON_UNKNOWN"}),[ee.ID]:({id:e})=>e,[ee.SCORE]:({score:e,dismissed:t})=>-Math.abs(t?1/0:e)},be=e=>e,ke=e=>({size:_e[e],minSize:Me[e]}),De=({header:{id:e}})=>r.createElement(v.sA,{id:Se[e],values:{paths:1}}),Ge=({column:{id:e},getValue:t})=>we[e](t()),ye=(e,t)=>(0,oe.l0)(a=>Te[e](a,t)),Le=e=>Object.values(ee).map(t=>({id:t,accessorFn:be,...ke(t),header:De,cell:Ge,compare:ye(t,e)})),He=(0,p.A)(f.A)`
  width: 100%;
  overflow: auto;
  > div {
    width: 100%;
    > table > tbody > tr > td:first-child {
      padding-left: ${o.YC};
    }
  }
`,Pe=[[j.N.ALL,()=>!0],[j.N.ACTIVE,({dismissed:e})=>!e],[j.N.DISMISSED,({dismissed:e})=>e],[j.N.VULNERABILITY,({subcategory:e})=>e===C.fn.VULNERABILITY],[j.N.HARDENING,({subcategory:e})=>e===C.fn.HARDENING],[j.N.LOGGING,({subcategory:e})=>e===C.fn.LOGGING],[j.N.PERFORMANCE,({subcategory:e})=>e===C.fn.PERFORMANCE],[j.N.DESIGN,({subcategory:e})=>e===C.fn.DESIGN],[j.N.UPDATES,({subcategory:e})=>e===C.fn.UPDATES]],xe=(0,r.memo)(({subscores:e})=>{const t=(0,E.useDispatch)(),a=(0,r.useRef)(null),l=(0,E.useSelector)(W),n=(0,r.useRef)((0,v.tz)().formatMessage).current,c=(0,r.useMemo)(()=>Le(n),[n]),s=(0,r.useMemo)(()=>e.filter(e=>Pe.some(([t,a])=>!!l[t]&&a(e))),[e,l]);(0,r.useEffect)(()=>{t((0,ce.Uc)(void 0,{crudCacheStrategy:{type:ne.e.CACHE}}))},[t]);const i=(0,r.useCallback)(({id:e})=>{t((0,le.Z)({queryParams:{subscoreId:e}},{crudCacheStrategy:{type:ne.e.CACHE}})),t((0,ae.XP)({type:re.H.SCORE,id:e}))},[t]),m=(0,se.A)([re.H.SCORE]);return r.createElement(He,{ref:a},r.createElement(te.A,{data:s,width:"100%",columns:c,rowStyle:o.gc,virtualize:!0,activeRows:m,onRowClick:i,parentRef:a}))});var Ze=a(1643),ze=a(874807);const Ue=(0,r.memo)(({subscores:e})=>{const t=(0,E.useDispatch)(),a=(0,r.useRef)((e=>{const t=new Map,a=e.length;for(let r=0;r<a;r+=1){const a=e[r].id;t.set(a,(0,le.Z)({queryParams:{subscoreId:a}},{crudCacheStrategy:{type:ne.e.CACHE}}))}return t})(e)),l=(0,r.useRef)(void 0),n=(0,r.useRef)(void 0),c=(0,r.useCallback)(()=>{l.current&&clearTimeout(l.current),n.current&&clearTimeout(n.current)},[]),s=(0,r.useCallback)(e=>{a.current.delete(e)},[]),o=(0,r.useCallback)(()=>{if(a.current.size){const{value:[e,r]}=a.current[Symbol.iterator]().next();t(r).then(ze.A).catch(ze.A).finally(()=>{s(e),n.current=setTimeout(()=>{(0,Ze.A)(o)},1e3)})}else c()},[t,c,s]),i=(0,r.useCallback)(()=>{l.current=setTimeout(o,1e3)},[o]);return(0,r.useEffect)(()=>(i(),c),[i,c]),null}),Ve=(0,p.A)(f.A)`
  flex-direction: column;
  padding: ${o.Ln};
  gap: ${o.xO};
  border-radius: 8px;
  border: ${({theme:{themeName:e}})=>g.Ay[`desktop-border-divider-${e}`]};
  overflow: auto;
`;var $e=a(27075);const Ye=(0,p.A)(f.A)`
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: ${o.Ln};
  gap: ${o.YC};
`,Be=(0,r.memo)(()=>{const{themeName:e}=(0,R.u)();return r.createElement(Ye,null,r.createElement($e.A,{size:"original",variant:"fill",color:g.Ay[`desktop-color-green-05-${e}`]}),r.createElement(O.A,{size:"medium",style:{color:g.Ay[`desktop-color-green-05-${e}`]}},r.createElement(v.sA,{id:"COMMON_EVERYTHING_IS_GREAT"})))}),Fe=(0,r.memo)(({subscores:e})=>e.length?r.createElement(Ve,null,r.createElement(Q,{subscores:e}),r.createElement(xe,{subscores:e}),r.createElement(Ue,{subscores:e})):r.createElement(Be,null)),je=(0,p.A)(f.A)`
  height: 100%;
  justify-content: center;
  min-width: 780px;
`,Ke=(0,p.A)(f.A)`
  width: 980px;
  flex-direction: column;
  align-items: center;
  gap: ${o.Ln};
  > div {
    width: 100%;
  }
`,We=(0,r.memo)(()=>{const e=(0,E.useSelector)(h);return r.createElement(je,null,r.createElement(Ke,null,e[C.IZ.SUBSCORES].length?r.createElement(_,null):null,r.createElement(B,{network_security_vulnerability:e[C.IZ.NETWORK_SECURITY_VULNERABILITY],network_security_hardening:e[C.IZ.NETWORK_SECURITY_HARDENING],network_security_logging:e[C.IZ.NETWORK_SECURITY_LOGGING],overall_score:e[C.IZ.OVERALL_SCORE],network_performance_score:e[C.IZ.NETWORK_PERFORMANCE_SCORE],network_performance_design:e[C.IZ.NETWORK_PERFORMANCE_DESIGN],network_performance_updates:e[C.IZ.NETWORK_PERFORMANCE_UPDATES]}),r.createElement(Fe,{subscores:e[C.IZ.SUBSCORES]})))}),qe=(0,r.memo)(()=>(0,n.A)([(0,c.Zi)(s.B.SCORE),(0,i.R)()],r.createElement(l.A,{mainPanelProps:{margin:o.Ln,overflow:"auto !important"}},r.createElement(We,null)),{trackingName:m.c.SCORE}))},1643:(e,t,a)=>{a.d(t,{A:()=>n});const r="undefined"!=typeof window&&window.requestIdleCallback,l=(e,t)=>r?window.requestIdleCallback(a=>a.timeRemaining()<=1&&!a.didTimeout?l(e,t):e(),t):e(),n=l}}]);