"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[59857],{825792(e,t,n){n.d(t,{A:()=>o});var l=n(602086),i=n(141992);const o=(0,n(272338).w)(e=>(0,l.createElement)("svg",(0,i.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("path",{d:"M9.644 8.596a.5.5 0 0 0 .707-.707L7.108 4.646a.5.5 0 0 0-.707 0L3.158 7.89a.5.5 0 0 0 .707.707l2.39-2.39v8.959c0 .185.224.335.5.335s.5-.15.5-.335V6.207l2.39 2.389Zm6.487 2.808a.5.5 0 0 1 .707.707l-3.243 3.243a.5.5 0 0 1-.707 0l-3.243-3.243a.5.5 0 0 1 .707-.707l2.39 2.39V4.836c0-.185.224-.335.5-.335s.5.15.5.335v8.958l2.39-2.389Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{d:"M9.644 8.596a.5.5 0 0 0 .707-.707L7.108 4.646a.5.5 0 0 0-.707 0L3.157 7.89a.5.5 0 0 0 .707.707l2.391-2.39v8.959c0 .185.224.335.5.335s.5-.15.5-.335V6.207l2.39 2.389Zm6.487 2.808a.5.5 0 0 1 .707.707l-3.243 3.243a.5.5 0 0 1-.707 0L9.645 12.11a.5.5 0 0 1 .707-.707l2.39 2.39V4.836c0-.185.224-.335.5-.335s.5.15.5.335v8.958l2.39-2.389Z",fill:"currentColor",className:e.fillclassname})))},566732(e,t,n){n.d(t,{A:()=>o});var l=n(602086),i=n(141992);const o=(0,n(272338).w)(e=>(0,l.createElement)("svg",(0,i.d)({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm5.03 7.99-5.31 5.3a.996.996 0 0 1-1.41 0l-3.16-3.16c-.2-.2-.2-.51 0-.71.09-.1.22-.14.35-.14.13 0 .26.04.35.14l3.17 3.17 5.3-5.31c.2-.19.51-.19.71 0 .1.1.14.23.14.36 0 .12-.04.25-.14.35Z",fill:"currentColor",className:e.twotonedclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12c0-4.963-4.037-9-9-9s-9 4.037-9 9 4.037 9 9 9 9-4.037 9-9ZM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm15.028-2.009a.498.498 0 0 0 0-.708.502.502 0 0 0-.708 0l-5.303 5.304-3.163-3.164a.498.498 0 0 0-.708 0 .5.5 0 0 0 0 .707l3.164 3.164a1 1 0 0 0 1.414 0l5.304-5.303Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("g",{clipPath:"url(#CheckmarkIconL_svg__a)"},(0,l.createElement)("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm4.851 8.191-5.127 5.127a.999.999 0 0 1-1.414 0l-.354-.354-2.633-2.633a.75.75 0 0 1 .017-1.077c.299-.282.776-.252 1.066.038l2.611 2.611 4.751-4.751c.29-.29.767-.32 1.066-.038a.75.75 0 0 1 .017 1.077Z",fill:"currentColor",className:e.fillclassname})),(0,l.createElement)("defs",null,(0,l.createElement)("clipPath",{id:"CheckmarkIconL_svg__a"},(0,l.createElement)("path",{fill:"currentColor",transform:"translate(2 2)",className:e.fillclassname,d:"M0 0h20v20H0z"})))))},535322(e,t,n){n.d(t,{A:()=>_,I:()=>l});var l,i=n(274934),o=n(814557),r=n(158885),A=n(247816),a=n(565527),s=n(309130),c=n(100978),d=n(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(l||(l={}));const m=(0,A.A)(c.A,(0,d.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||o.Ay[n===a.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${a.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${a.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:t})=>t||(e?`0 ${s.Ln}`:s.Ln)};
  margin-bottom: ${({marginBottom:e})=>e||s.Ln};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>o.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,I=(0,A.A)(r.A,(0,d.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||o.Ay[n===a.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${a.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${a.S.LIGHT}`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:t}})=>e||o.Ay[t===a.S.DARK?`desktop-color-neutral-01-${a.S.DARK}`:`desktop-color-neutral-00-${a.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${s.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${s.Ln} ${s.Ln};
      }
    }
  }
`,_=({type:e,marginBottom:t,margin:n,padding:o,flex:r,width:A,nested:a,...s})=>"items"in s?(0,i.jsx)(I,{marginBottom:t,margin:n,padding:o,flex:r,nested:a,...s}):(0,i.jsx)(m,{nested:a,width:A,marginBottom:t,margin:n,padding:o,flex:r,isButtonList:e===l.BUTTON_LIST,...s,children:s.children})},559857(e,t,n){n.r(t),n.d(t,{default:()=>Z});var l=n(274934),i=n(193296),o=n(271656),r=n(720770),A=n(247816),a=n(100978);const s=(0,A.A)(a.A)`
  flex-direction: column;
`;var c=n(808571),d=n(814557),m=n(263705),I=n(938984),_=n(470070),D=n(535322),O=n(309130);const T=(0,A.A)(a.A)`
  gap: ${O.xO};
`,h=(0,A.A)(a.A)`
  background-color: ${({theme:{themeName:e}})=>d.Ay[`desktop-color-aqua-01-${e}`]};
  padding: 6px;
  border-radius: ${O.YC};
  height: fit-content;
  justify-content: center;
  align-items: center;
`,L=(0,A.A)(a.A)`
  flex-direction: column;
`,u=()=>(0,l.jsx)(D.A,{children:(0,l.jsxs)(T,{children:[(0,l.jsx)(h,{children:(0,l.jsx)(c.A,{size:"original",color:d.Ay[`desktop-color-aqua-06-${(0,m.u)().themeName}`]})}),(0,l.jsxs)(L,{children:[(0,l.jsx)(I.A,{color:"text-1",size:"medium",weight:"bold",children:(0,l.jsx)(_.sA,{id:"DASHBOARD_PERFORMANCE_DEGRADATION_STATUS_IS_ACTIVE"})}),(0,l.jsx)(I.A,{color:"text-2",size:"medium",children:(0,l.jsx)(_.sA,{id:"DASHBOARD_DEGRADATION_STATUS_DESCRIPTION"})})]})]})});var g=n(602086),E=n(566732),x=n(853777),N=n(954702),C=n(237725),p=n(43506),R=n(969288),S=n(726831),B=n(613842);const f=(0,A.A)(a.A)`
  flex-direction: column;
  gap: ${O.Ln};
`,$=(0,A.A)(a.A)`
  flex-direction: column;
  gap: ${O.Ln};
`,k=(0,A.A)(a.A)`
  flex-direction: column;
  gap: ${O.kc};
`,j=(0,A.A)(a.A)`
  align-items: center;
  gap: ${O.kc};
`,M=(0,A.A)(a.A)`
  flex-direction: column;
  gap: ${O.xO};
`,b=(0,A.A)(a.A)`
  align-items: center;
  gap: ${O.kc};
`,v=(0,A.A)(a.A)`
  align-items: center;
  gap: ${O.kc};
`;var G;!function(e){e.LABEL_ID="labelId",e.ACTION_ID="actionId",e.ACTION="action"}(G||(G={}));var P=n(987133),w=n(825792),F=n(341786);const U={[i.ck.IPS]:P.A,[i.ck.DPI]:F.A,[i.ck.TRAFFIC_LOGGING]:w.A},H={[i.ck.IPS]:"COMMON_INTRUSION_PREVENTION",[i.ck.DPI]:"COMMON_TRAFFIC_IDENTIFICATION",[i.ck.TRAFFIC_LOGGING]:"COMMON_TRAFFIC_LOGGING"},y={[G.LABEL_ID]:void 0,[G.ACTION_ID]:void 0,[G.ACTION]:void 0},z=({[i.il.APPLIED_ACTIONS]:e,[i.il.RECOMMENDED_ACTIONS]:t})=>{const{themeName:n}=(0,m.u)(),o=(0,C.W6)(),r=(0,p.A)(`${R.bB}/${R.Uy.CYBERSECURE}`),A=(0,g.useMemo)(()=>Object.entries(e),[e]),a=(0,g.useCallback)(()=>{o.push(r)},[o,r]),s=(0,g.useMemo)(()=>{const e={[i.M7.LIMITED_TO_IMPORTANT]:{[G.LABEL_ID]:"DASHBOARD_DEGRADATION_STATUS_IPS_LIMITED_TO_IMPORTANT",[G.ACTION_ID]:"DASHBOARD_FULL_PROTECTION",[G.ACTION]:a},[i.M7.LIMITED_TO_CRITICAL]:{[G.LABEL_ID]:"DASHBOARD_DEGRADATION_STATUS_IPS_LIMITED_TO_CRITICAL",[G.ACTION_ID]:"DASHBOARD_FULL_PROTECTION",[G.ACTION]:a}},t={[i.l_.LIMITED_TO_TRAFFIC_ONLY]:{[G.LABEL_ID]:"DASHBOARD_DEGRADATION_STATUS_DPI_LIMITED_TO_TRAFFIC_ONLY"},[i.l_.DISABLED]:{[G.LABEL_ID]:"DASHBOARD_DEGRADATION_STATUS_DPI_DISABLED"}},n={[i.mA.LIMITED_TO_BLOCKED_ONLY]:{[G.LABEL_ID]:"DASHBOARD_DEGRADATION_STATUS_TRAFFIC_LOGGING_LIMITED_TO_BLOCKED_ONLY"},[i.mA.DISABLED]:{[G.LABEL_ID]:"DASHBOARD_DEGRADATION_STATUS_TRAFFIC_LOGGING_DISABLED"}};return{[i.ck.IPS]:e,[i.ck.DPI]:t,[i.ck.TRAFFIC_LOGGING]:n}},[a]),c=(0,g.useMemo)(()=>({[i.Ab.UPGRADE_CONSOLE]:{[G.LABEL_ID]:"DASHBOARD_UPGRADE_CONSOLE",[G.ACTION_ID]:"COMMON_LEARN_MORE",[G.ACTION]:()=>{B.A.open(S.A.storeCloudGateways)}},[i.Ab.DISABLE_PROTECT]:{[G.LABEL_ID]:"DASHBOARD_DISABLE_PROTECT",[G.ACTION_ID]:"COMMON_LEARN_MORE",[G.ACTION]:()=>{B.A.open(S.A.storeUnvr)}}}),[]);return A.some(([e,t])=>t.length)||t.length?(0,l.jsx)(D.A,{children:(0,l.jsxs)(f,{children:[(0,l.jsxs)($,{children:[(0,l.jsx)(I.A,{size:"medium",weight:"bold",color:"text-1",children:(0,l.jsx)(_.sA,{id:"DASHBOARD_CURRENTLY_APPLIED"})}),A.map(e=>{const[t,i]=e;return(0,l.jsxs)(k,{children:[(0,l.jsxs)(j,{children:[(0,g.createElement)(U[t],{size:"original"}),(0,l.jsx)(I.A,{size:"medium",color:"text-2",children:(0,l.jsx)(_.sA,{id:H[t]})})]}),i.map(e=>{const{[G.LABEL_ID]:i,[G.ACTION_ID]:o,[G.ACTION]:r}=s[t][e]||y;return i?(0,l.jsx)(M,{children:(0,l.jsxs)(b,{children:[(0,l.jsx)(E.A,{size:"original",variant:"fill",color:d.Ay[`desktop-color-green-06-${n}`]}),(0,l.jsxs)(v,{children:[(0,l.jsx)(I.A,{size:"medium",color:"text-2",children:(0,l.jsx)(_.sA,{id:i})}),o&&r?(0,l.jsx)(N.A,{type:"button",fontSize:"medium",onClick:r,children:(0,l.jsx)(_.sA,{id:o})}):null]})]},e)}):null})]},t)})]}),t.length?(0,l.jsxs)($,{children:[(0,l.jsx)(I.A,{size:"medium",weight:"bold",color:"text-1",children:(0,l.jsx)(_.sA,{id:"DASHBOARD_RECOMMENDED_ACTIONS"})}),(0,l.jsx)(M,{children:t.map(e=>{const{[G.LABEL_ID]:t,[G.ACTION_ID]:i,[G.ACTION]:o}=c[e]||y;return t?(0,l.jsxs)(b,{children:[(0,l.jsx)(x.A,{size:"original",variant:"fill",color:d.Ay[`desktop-color-aqua-06-${n}`]}),(0,l.jsxs)(v,{children:[(0,l.jsx)(I.A,{size:"medium",color:"text-2",children:(0,l.jsx)(_.sA,{id:t})}),i&&o?(0,l.jsx)(N.A,{type:"button",fontSize:"medium",onClick:o,children:(0,l.jsx)(_.sA,{id:i})}):null]})]},e):null})})]}):null]})}):null},Z=({activeItem:{[i.il.APPLIED_ACTIONS]:e=(0,o.A)(),[i.il.RECOMMENDED_ACTIONS]:t=(0,r.A)()}})=>(0,l.jsxs)(s,{children:[(0,l.jsx)(u,{}),(0,l.jsx)(z,{applied_actions:e,recommended_actions:t})]})}}]);