"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[15302],{34683:(e,t,l)=>{l.d(t,{J:()=>E,h:()=>r});var n=l(53648);const r={[n.C.BOTS_AND_THREATS_INTELLIGENCE]:"COMMON_BOTNETS_AND_THREAT_INTELLIGENCE",[n.C.HACKING]:"COMMON_HACKING_AND_EXPLOITS",[n.C.ATTACKS_AND_RECONNAISSANCE]:"COMMON_ATTACKS_AND_RECONNAISSANCE",[n.C.P2P]:"COMMON_PEER_TO_PEER_AND_DARK_WEB",[n.C.VIRUS_MALWARE]:"COMMON_VIRUSES_MALWARE_AND_SPYWARE",[n.C.PROTOCOL_VULNERABILITIES]:"COMMON_VIRUS_PROTOCOL_VULNERABILITIES",[n.C.DIAGNOSTICS]:"COMMON_DIAGNOSTICS"},E=[n.C.BOTS_AND_THREATS_INTELLIGENCE,n.C.VIRUS_MALWARE,n.C.HACKING,n.C.P2P,n.C.ATTACKS_AND_RECONNAISSANCE,n.C.PROTOCOL_VULNERABILITIES,n.C.DIAGNOSTICS]},127041:(e,t,l)=>{l.d(t,{Y:()=>i});var n=l(717905),r=l(691189),E=l(887831),a=l(222723),o=l(655773),c=l(143053);const i=(e={},t={})=>(0,r.sU)((0,a.f)(e.data),o.gI,e,{method:E.A.POST,idField:o.RR,fetchConfig:{getAllPostResponse:!0},additionalPayloadSelectors:{[n.bI.PAGE_NUMBER]:{},[n.bI.TOTAL_PAGE_COUNT]:{},[n.bI.TOTAL_ELEMENT_COUNT]:{},[n.bI.OR_MORE]:{}},failureToast:c.X,compareFunction:a.G,...t})},143053:(e,t,l)=>{l.d(t,{X:()=>E,o:()=>a});var n=l(742920),r=l(286388);const E=()=>({icon:n.C.danger,message:"COMMON_LOG_API_ERROR"}),a={[r.DU.RISK]:[],[r.DU.ACTION]:[],[r.DU.DIRECTION]:[],[r.DU.PROTOCOL]:[],[r.DU.POLICY]:[],[r.DU.POLICY_TYPE]:[],[r.DU.SERVICE]:[],[r.DU.SOURCE_HOST]:[],[r.DU.SOURCE_MAC]:[],[r.DU.SOURCE_IP]:[],[r.DU.SOURCE_PORT]:[],[r.DU.SOURCE_NETWORK_ID]:[],[r.DU.SOURCE_DOMAIN]:[],[r.DU.SOURCE_ZONE_ID]:[],[r.DU.SOURCE_REGION]:[],[r.DU.DESTINATION_HOST]:[],[r.DU.DESTINATION_MAC]:[],[r.DU.DESTINATION_IP]:[],[r.DU.DESTINATION_PORT]:[],[r.DU.DESTINATION_NETWORK_ID]:[],[r.DU.DESTINATION_DOMAIN]:[],[r.DU.DESTINATION_ZONE_ID]:[],[r.DU.DESTINATION_REGION]:[],[r.DU.IN_NETWORK_ID]:[],[r.DU.OUT_NETWORK_ID]:[],[r.DU.NEXT_AI_QUERY]:[],[r.DU.EXCEPT_FOR]:[],[r.DU.SEARCH_TEXT]:"",[r.DU.TIMESTAMP_FROM]:0,[r.DU.TIMESTAMP_TO]:0,[r.DU.PAGE_NUMBER]:0,[r.DU.PAGE_SIZE]:0,[r.DU.SKIP_COUNT]:!1}},232819:(e,t,l)=>{l.d(t,{M:()=>c});var n=l(801081),r=l(25553),E=l(87485),a=l(731183);const o=(0,r.uh)((0,a.W)()),c=(0,n.Mz)(o,E.kh)},618489:(e,t,l)=>{l.d(t,{$6:()=>c,GJ:()=>N,IT:()=>s,NP:()=>I,Nt:()=>m,es:()=>O,yJ:()=>u,z1:()=>i});var n=l(822336),r=l(705145),E=l(71479),a=l(566723),o=l(294303);const c=(0,E.A)(o.A)`
  width: 100%;
  > div {
    max-width: ${({flowsOverviewTopByRegionSupported:e})=>100/(e?4:3)}%;
  }
  gap: ${a.Ln};
`,i=(0,E.A)(o.A)`
  width: 100%;
  min-width: 230px;
  padding: ${a.Ln};
  border: ${({theme:{themeName:e}})=>n.Ay[`desktop-border-divider-${e}`]};
  border-radius: ${n.Ay["desktop-radius-base"]};
`,s=(0,E.A)(o.A)`
  width: 100%;
  flex-direction: column;
  gap: ${a.YC};
`,m=(0,E.A)(o.A,{shouldForwardProp:e=>"header"!==e})`
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: ${a.Er};
  white-space: nowrap;
  ${({header:e=!1})=>e?`margin-bottom: ${a.kc};`:""}
`,u=(0,E.A)(o.A)`
  gap: ${a.YC};
  align-items: center;
  width: 100%;
  overflow: hidden;
`,O=(0,E.A)(r.A)`
  width: fit-content;
  cursor: pointer;
  &:hover {
    color: ${({theme:{themeName:e}})=>n.Ay[`desktop-color-ublue-06-${e}`]};
  }
`,I=(0,E.A)(o.A)`
  gap: 2px;
`,N=(0,E.A)(o.A,{shouldForwardProp:e=>"color"!==e})`
  width: 4px;
  height: 4px;
  background-color: ${({color:e,theme:{themeName:t}})=>e||n.Ay[`desktop-color-neutral-02-${t}`]};
  border-radius: 1px;
`},621538:(e,t,l)=>{l.r(t),l.d(t,{default:()=>Nl});var n=l(296540),r=l(469733),E=l(451723),a=l(198494),o=l(792072),c=l(716654),i=l(403998),s=l(469987),m=l(153171),u=l(42222),O=l(282556),I=l(582724),N=l(146398),T=l(73300),_=l(752263),C=l(523275),S=l(840279),d=l(765051),A=l(215454),R=l(731971),L=l(513035),P=l(705145),M=l(249738),p=l(758649),g=l(217439),G=l(398300),h=l(845030),f=l(699784),D=l(822336),w=l(998837),H=l(184683),W=l(71479),U=l(566723),F=l(294303);const k=(0,W.A)(F.A)`
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: ${U.kc};
`,v=(0,n.memo)(({flowsOverviewType:e})=>{const{id:t,icon:l}=(0,n.useMemo)(()=>({id:H.Bh[e],icon:H.nz[e]}),[e]);return n.createElement(k,null,(0,n.createElement)(l,{size:"large",color:D.Ay[`desktop-color-ublue-03-${(0,w.u)().themeName}`],variant:"fill"}),n.createElement(g.A,{size:"medium",color:"text-2"},n.createElement(f.sA,{id:t})))});var b=l(274750);var y=l(618489);const B=function({id:e,flowsOverviewType:t,data:l=[],children:E,customOnClick:a}){const o=(0,r.useDispatch)(),c=(0,n.useCallback)(()=>{a?a():o((0,h.XP)({type:G.H.FLOWS_OVERVIEW,id:t}))},[o,t,a]);return n.createElement(y.z1,null,n.createElement(y.IT,null,n.createElement(y.Nt,{header:!0},n.createElement(g.A,{size:"medium",color:"text-1",weight:"bold"},n.createElement(f.sA,{id:e})),l.length>b.hG?n.createElement(p.A,{type:"button",variant:"inline",size:"medium",onClick:c},n.createElement(f.sA,{id:"COMMON_SEE_MORE"})):null),l.length?E((e=>e.slice(0,b.hG))(l)):n.createElement(v,{flowsOverviewType:t})))};var x;!function(e){e.INTL_NUMBER_FORMAT="intlNumberFormat"}(x||(x={}));const z={[x.INTL_NUMBER_FORMAT]:void 0},$=(0,n.createContext)(z);const Y=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)($),E=(0,n.useCallback)(e=>()=>{t((0,M.p)([(0,s.DC)([e])]))},[t]);return n.createElement(B,{id:H.kd[L.rN.TOP_TRIGGERED_POLICIES],data:e,flowsOverviewType:L.rN.TOP_TRIGGERED_POLICIES},e=>e.map(e=>n.createElement(y.Nt,{key:JSON.stringify(e)},n.createElement(P.A,{size:"medium",color:"text-2",isTruncated:!0},e[L.B9.POLICY_NAME]),n.createElement(y.es,{size:"medium",color:"text-3",onClick:E(e[L.B9.POLICY_TYPE])},l.format(e[L.B9.COUNT]||0)))))};var K=l(620637),J=l(596421),V=l(323030),X=l(286388);const Z=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)($),E=(0,n.useCallback)(e=>()=>{t((0,M.p)([(0,s.LV)([(0,K.isValidIp)(e)?{[X.u9.IP]:e}:{[X.u9.DOMAINS]:[e]}])]))},[t]);return n.createElement(B,{id:H.kd[L.rN.TOP_DESTINATIONS],data:e,flowsOverviewType:L.rN.TOP_DESTINATIONS},e=>e.map(e=>n.createElement(y.Nt,{key:JSON.stringify(e)},n.createElement(y.yJ,null,e[L.Cs.MOST_FREQUENT_REGION]?n.createElement(V.A,{countryCode:e[L.Cs.MOST_FREQUENT_REGION],width:b.mS,height:b.lz}):null,n.createElement(P.A,{size:"medium",color:"text-2",isTruncated:!0},n.createElement(J.A,null,e[L.Cs.DESTINATION]))),n.createElement(y.es,{size:"medium",color:"text-3",onClick:E(e[L.Cs.DESTINATION])},l.format(e[L.Cs.COUNT]||0)))))};var j=l(703447);const q=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)($),E=(0,n.useCallback)(e=>()=>{t((0,h.XP)({type:G.H.CLIENT,id:e}))},[t]),a=(0,n.useCallback)(e=>()=>{t((0,M.p)([(0,s.Tt)([e])]))},[t]);return n.createElement(B,{id:H.kd[L.rN.TOP_CLIENTS],data:e,flowsOverviewType:L.rN.TOP_CLIENTS},e=>e.map(e=>n.createElement(y.Nt,{key:JSON.stringify(e)},n.createElement(y.yJ,null,n.createElement(j.A,{client:{fingerprint:e[L.ng.CLIENT_FINGERPRINT],icon_filename:e[L.ng.ICON_FILENAME],icon_resolutions:e[L.ng.ICON_RESOLUTIONS]},width:b.pC,height:b.sh}),n.createElement(y.es,{size:"medium",color:"text-2",isTruncated:!0,onClick:E(e[L.ng.CLIENT_MAC])},e[L.ng.CLIENT_NAME]||e[L.ng.CLIENT_MAC]||n.createElement(f.sA,{id:"COMMON_UNKNOWN"}))),n.createElement(y.es,{size:"medium",color:"text-3",onClick:a(e[L.ng.CLIENT_MAC])},l.format(e[L.ng.COUNT]||0)))))};var Q=l(956347),ee=l(903216),te=l(668995),le=l(15095),ne=l(601242),re=l(455155),Ee=l(627440),ae=l(670180),oe=l(767974),ce=l(739177),ie=l(260411),se=l(120205);const me=ce.i8[ce.Ut];const ue=function({data:e}){const t=(0,r.useDispatch)(),l=(0,le.A)(`${Ee.VO.INSIGHTS}/${ae.H.ACTIVITY}`),E=(0,Q.W6)(),a=(0,n.useCallback)(()=>{t((0,ie.P7)(se.f.CLIENTS)),me&&t((0,ie.Xy)({startDate:me.range.startDate,endDate:me.range.endDate,preset:me.id})),E.push(l)},[t,E,l]),o=(0,n.useCallback)(e=>()=>{t((0,ie.yJ)([{[oe.wA.CAT]:e[L.YF.CATEGORY_ID],[oe.wA.APP]:e[L.YF.APPLICATION_ID]}])),t((0,ie.P7)(se.f.APPS)),me&&t((0,ie.Xy)({startDate:me.range.startDate,endDate:me.range.endDate,preset:me.id})),E.push(l)},[t,E,l]);return n.createElement(B,{id:H.kd[L.rN.TOP_APPS],data:e,flowsOverviewType:L.rN.TOP_APPS,customOnClick:a},e=>e.map(e=>{return t=(0,ne.HH)((0,te.h)(e[L.YF.CATEGORY_ID],e[L.YF.APPLICATION_ID])),n.createElement(y.Nt,{key:JSON.stringify(e)},n.createElement(y.yJ,null,n.createElement(re.A,{iconFileName:t?.iconFileName,dimension:b.H2}),n.createElement(y.es,{size:"medium",color:"text-2",isTruncated:!0,onClick:o(e)},t?.name||n.createElement(f.sA,{id:"COMMON_UNKNOWN"}))),n.createElement(P.A,{size:"medium",color:"text-3"},(0,ee.FI)(e[L.YF.BYTES]||0)));var t}))};const Oe=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)($),E=(0,n.useCallback)(e=>()=>{t((0,M.p)([(0,s.$D)([e])]))},[t]);return n.createElement(B,{id:H.kd[L.rN.TOP_AFFECTED_REGIONS],data:e,flowsOverviewType:L.rN.TOP_AFFECTED_REGIONS},e=>e.map(e=>n.createElement(y.Nt,{key:JSON.stringify(e)},n.createElement(y.yJ,null,e[L.rL.REGION]?n.createElement(V.A,{countryCode:e[L.rL.REGION],width:b.mS,height:b.lz}):null,n.createElement(P.A,{size:"medium",color:"text-2",isTruncated:!0},e[L.rL.REGION]?n.createElement(f.sA,{id:`COUNTRY_${e[L.rL.REGION]}`,defaultMessage:e[L.rL.REGION]}):n.createElement(f.sA,{id:"COMMON_UNKNOWN"}))),n.createElement(y.es,{size:"medium",color:"text-3",onClick:E(e[L.rL.REGION])},l.format(e[L.rL.COUNT]||0)))))};const Ie=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)($),E=(0,n.useCallback)(e=>()=>{t((0,h.XP)({type:G.H.CLIENT,id:e}))},[t]),a=(0,n.useCallback)(e=>()=>{t((0,M.p)([(0,s.Tt)([e])]))},[t]);return n.createElement(B,{id:H.kd[L.rN.TOP_AFFECTED_CLIENTS],data:e,flowsOverviewType:L.rN.TOP_AFFECTED_CLIENTS},e=>e.map(e=>n.createElement(y.Nt,{key:JSON.stringify(e)},n.createElement(y.yJ,null,n.createElement(j.A,{client:{fingerprint:e[L.S6.CLIENT_FINGERPRINT],icon_filename:e[L.S6.ICON_FILENAME],icon_resolutions:e[L.S6.ICON_RESOLUTIONS]},width:b.pC,height:b.sh}),n.createElement(y.es,{size:"medium",color:"text-2",isTruncated:!0,onClick:E(e[L.S6.CLIENT_MAC])},e[L.S6.CLIENT_NAME]||e[L.S6.CLIENT_MAC]||n.createElement(f.sA,{id:"COMMON_UNKNOWN"}))),n.createElement(y.es,{size:"medium",color:"text-3",onClick:a(e[L.S6.CLIENT_MAC])},l.format(e[L.S6.COUNT]||0)))))};var Ne=l(675544),Te=l(629318);const _e=(0,l(51946).w)(e=>(0,n.createElement)("svg",(0,Te.d)({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("path",{d:"M11.77 9.978a.72.72 0 0 0 1.018-1.018l-4.67-4.67a.72.72 0 0 0-1.018 0L2.43 8.96a.72.72 0 0 0 1.018 1.018L6.89 6.535v12.902c0 .267.323.483.72.483.397 0 .72-.216.72-.483v-12.9l3.44 3.441Zm8.782 4.044a.72.72 0 0 1 1.018 1.018l-4.67 4.67a.72.72 0 0 1-1.018 0l-4.671-4.67a.72.72 0 0 1 1.018-1.018l3.443 3.443V4.563c0-.267.322-.483.72-.483.397 0 .72.216.72.483v12.9l3.44-3.44Z",fill:"currentColor",className:e.baseclassname}),(0,n.createElement)("path",{d:"M11.77 9.978a.72.72 0 0 0 1.018-1.018l-4.67-4.67a.72.72 0 0 0-1.018 0L2.43 8.96a.72.72 0 0 0 1.018 1.018L6.89 6.535v12.902c0 .267.323.483.72.483.397 0 .72-.216.72-.483v-12.9l3.44 3.441Zm8.782 4.044a.72.72 0 0 1 1.018 1.018l-4.67 4.67a.72.72 0 0 1-1.018 0l-4.671-4.67a.72.72 0 0 1 1.018-1.018l3.443 3.443V4.563c0-.267.322-.483.72-.483.397 0 .72.216.72.483v12.9l3.44-3.44Z",fill:"currentColor",className:e.fillclassname}))),Ce=e=>{if(0===e)return"0";const t=Math.floor(10*e)/10;if(0===t)return"<0.1";const[l,n]=String(t).split(".");return n&&"0"!==n?(Math.round(100*e)/100).toFixed(2).slice(0,-1):l},Se=(0,W.A)(F.A)`
  width: 100%;
  justify-content: space-between;
`,de=(0,W.A)(F.A)`
  flex-direction: column;
  gap: ${U.YC};
  > p {
    text-align: end;
  }
`,Ae=(0,W.A)(F.A)`
  align-items: center;
  gap: ${U.YC};
  > :first-child {
    min-width: ${U.Er};
    justify-content: center;
  }
`,Re=(0,n.memo)(({flowsTab:e,flowsOverviewAllowedCountByRisk:t,flowsOverviewBlockedCountByRisk:l})=>{const E=(0,r.useDispatch)(),{themeName:a}=(0,w.u)(),{intlNumberFormat:o}=(0,n.useContext)($),c=t[L.fq.LOW]||0,i=t[L.fq.MEDIUM]||0,m=t[L.fq.HIGH]||0,u=l[L.nC.LOW]||0,O=l[L.nC.MEDIUM]||0,I=l[L.nC.HIGH]||0,{allTrafficTotalFlows:N,allTrafficLowPercentage:T,allTrafficSuspiciousPercentage:_,allTrafficConcerningPercentage:C,totalBlocked:S,blockedTrafficLowPercentage:A,blockedTrafficSuspiciousPercentage:R,blockedTrafficConcerningPercentage:p}=(0,n.useMemo)(()=>({...(e=>({allTrafficTotalFlows:e,allTrafficLowPercentage:c/e*100||0,allTrafficSuspiciousPercentage:i/e*100||0,allTrafficConcerningPercentage:m/e*100||0}))(c+i+m),...(e=>({totalBlocked:e,blockedTrafficLowPercentage:u/e*100||0,blockedTrafficSuspiciousPercentage:O/e*100||0,blockedTrafficConcerningPercentage:I/e*100||0}))(u+O+I)}),[c,i,m,u,O,I]),{totalColor:G,lowColor:h,suspiciousColor:H,concerningColor:W,blockedColor:U}=(0,n.useMemo)(()=>({totalColor:D.Ay[`desktop-color-aqua-06-${a}`],lowColor:D.Ay[`desktop-color-green-06-${a}`],suspiciousColor:D.Ay[`desktop-color-orange-06-${a}`],concerningColor:D.Ay[`desktop-color-red-06-${a}`],blockedColor:D.Ay[`desktop-color-red-04-${a}`]}),[a]),F=(0,n.useCallback)(()=>{E((0,M.p)([(0,s.Ce)([X.GD.LOW])]))},[E]),k=(0,n.useCallback)(()=>{E((0,M.p)([(0,s.Ce)([X.GD.MEDIUM])]))},[E]),v=(0,n.useCallback)(()=>{E((0,M.p)([(0,s.Ce)([X.GD.HIGH])]))},[E]);return n.createElement(y.z1,null,n.createElement(y.IT,null,n.createElement(y.Nt,{header:!0},n.createElement(g.A,{size:"medium",color:"text-1",weight:"bold"},n.createElement(f.sA,{id:"FLOWS_FLOW_SUMMARY"}))),n.createElement(Se,null,e===d.L1.ALL_FLOWS?n.createElement(n.Fragment,{key:d.L1.ALL_FLOWS},n.createElement(de,null,n.createElement(Ae,null,n.createElement(_e,{size:"original",color:G}),n.createElement(g.A,{size:"medium",color:"text-2"},n.createElement(f.sA,{id:"COMMON_TOTAL"}))),n.createElement(Ae,null,n.createElement(y.NP,null,n.createElement(y.GJ,{color:h}),n.createElement(y.GJ,null),n.createElement(y.GJ,null)),n.createElement(g.A,{size:"medium",color:"text-2"},n.createElement(f.sA,{id:"COMMON_LOW"}))),n.createElement(Ae,null,n.createElement(y.NP,null,n.createElement(y.GJ,{color:H}),n.createElement(y.GJ,{color:H}),n.createElement(y.GJ,null)),n.createElement(g.A,{size:"medium",color:"text-2"},n.createElement(f.sA,{id:"COMMON_SUSPICIOUS"}))),n.createElement(Ae,null,n.createElement(y.NP,null,n.createElement(y.GJ,{color:W}),n.createElement(y.GJ,{color:W}),n.createElement(y.GJ,{color:W})),n.createElement(g.A,{size:"medium",color:"text-2"},n.createElement(f.sA,{id:"COMMON_CONCERNING"})))),n.createElement(de,{alignItems:"end"},n.createElement(P.A,{size:"medium",color:"text-3"},o.format(N)),n.createElement(y.es,{size:"medium",color:"text-3",onClick:F},o.format(c)," (",Ce(T),"%)"),n.createElement(y.es,{size:"medium",color:"text-3",onClick:k},o.format(i)," (",Ce(_),"%)"),n.createElement(y.es,{size:"medium",color:"text-3",onClick:v},o.format(m)," (",Ce(C),"%)"))):n.createElement(n.Fragment,{key:d.L1.BLOCKED},n.createElement(de,null,n.createElement(Ae,null,n.createElement(Ne.A,{size:"original",color:U}),n.createElement(g.A,{size:"medium",color:"text-2"},n.createElement(f.sA,{id:"FLOWS_TOTAL_BLOCKED"}))),n.createElement(Ae,null,n.createElement(y.NP,null,n.createElement(y.GJ,{color:h}),n.createElement(y.GJ,null),n.createElement(y.GJ,null)),n.createElement(g.A,{size:"medium",color:"text-2"},n.createElement(f.sA,{id:"COMMON_LOW"}))),n.createElement(Ae,null,n.createElement(y.NP,null,n.createElement(y.GJ,{color:H}),n.createElement(y.GJ,{color:H}),n.createElement(y.GJ,null)),n.createElement(g.A,{size:"medium",color:"text-2"},n.createElement(f.sA,{id:"COMMON_SUSPICIOUS"}))),n.createElement(Ae,null,n.createElement(y.NP,null,n.createElement(y.GJ,{color:W}),n.createElement(y.GJ,{color:W}),n.createElement(y.GJ,{color:W})),n.createElement(g.A,{size:"medium",color:"text-2"},n.createElement(f.sA,{id:"COMMON_CONCERNING"})))),n.createElement(de,{alignItems:"end"},n.createElement(P.A,{size:"medium",color:"text-3"},o.format(S)),n.createElement(y.es,{size:"medium",color:"text-3",onClick:F},o.format(u)," (",Ce(A),"%)"),n.createElement(y.es,{size:"medium",color:"text-3",onClick:k},o.format(O)," (",Ce(R),"%)"),n.createElement(y.es,{size:"medium",color:"text-3",onClick:v},o.format(I)," (",Ce(p),"%)"))))))}),Le=(0,n.memo)(({flowsOverviewFetchParams:e})=>{const t=(0,r.useSelector)(c.zB),l=(0,r.useSelector)((0,n.useMemo)(()=>(0,R.v)(e),[e])),a=(0,r.useSelector)(A.sL),{areAllFlowsSupported:o}=(0,E.A)(),i=(0,n.useMemo)(()=>o&&a&&(0,_.G)(a,b.je),[o,a]);return n.createElement(y.$6,{flowsOverviewTopByRegionSupported:i},n.createElement(Re,{flowsTab:t,flowsOverviewAllowedCountByRisk:l[L.gl.ALLOWED_COUNT_BY_RISK]||(0,C.A)(),flowsOverviewBlockedCountByRisk:l[L.gl.BLOCKED_COUNT_BY_RISK]||(0,C.A)()}),t===d.L1.ALL_FLOWS?n.createElement(n.Fragment,{key:d.L1.ALL_FLOWS},n.createElement(Z,{data:l[L.gl.TOP_ALL_COUNT_BY_DESTINATION]||(0,S.A)()}),n.createElement(q,{data:l[L.gl.TOP_ALL_COUNT_BY_CLIENT]||(0,S.A)()}),n.createElement(ue,{data:l[L.gl.TOP_ALL_TRAFFIC_BY_APPLICATION]||(0,S.A)()})):n.createElement(n.Fragment,{key:d.L1.BLOCKED},n.createElement(Y,{data:l[L.gl.TOP_BLOCKED_COUNT_BY_POLICY]||(0,S.A)()}),n.createElement(Ie,{data:l[L.gl.TOP_BLOCKED_COUNT_BY_CLIENT]||(0,S.A)()}),i?n.createElement(Oe,{data:l[L.gl.TOP_BLOCKED_COUNT_BY_REGION]||(0,S.A)()}):null))});var Pe=l(644659);const Me=()=>{const e=(0,r.useSelector)(T.jz),t=(0,r.useSelector)(O.zi),l=(0,n.useMemo)(()=>({[x.INTL_NUMBER_FORMAT]:new Intl.NumberFormat(t,{notation:"standard"})}),[t]);return(0,I.A)([(0,N.X)(e)],n.createElement($.Provider,{value:l},n.createElement(Le,{flowsOverviewFetchParams:e})))},pe=(0,n.memo)(()=>{const e=(0,r.useSelector)(Pe.t),t=(0,r.useSelector)(o.K7);return(0,r.useSelector)(c.Lw)&&e&&t?n.createElement(Me,null):null}),ge=(0,W.A)(F.A)`
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  gap: ${U.kc};
  padding: ${U.Ln};
`,Ge=(0,W.A)(F.A)`
  width: 100%;
  height: 100%;
  overflow: hidden;
`;var he=l(165126),fe=l(64741),De=l(429252),we=l.n(De),He=l(371715),We=l(960407),Ue=l(22252),Fe=l(860765),ke=l(222723),ve=l(213584),be=l(127041);const ye={leading:!0},Be=()=>{const e=(0,r.useDispatch)(),t=(0,r.useSelector)(c.uK),l=(0,r.useSelector)((0,n.useMemo)(()=>(0,ve.gg)(t),[t])),E=(0,r.useSelector)(c.cJ),o=(0,r.useSelector)(c.GD),i=(0,r.useSelector)((0,n.useMemo)(()=>(0,ve.xV)(t),[t])),m=(0,r.useSelector)(c.zB),{tablePresets:u}=(0,r.useSelector)(a.Gm),O=(0,r.useSelector)(We.it),I=(0,n.useMemo)(()=>G.H.FLOWS===O,[O]),{rowsPerPage:N}=(0,n.useMemo)(()=>u[m],[u,m]),T=(0,n.useCallback)(t=>{(0,r.batch)(()=>{I&&e((0,h.K5)()),e((0,He.lB)((0,ke.f)(t))),e((0,s.M2)(Fe.B)),e((0,be.Y)({data:{...t,[X.DU.PAGE_NUMBER]:Fe.B}}))})},[e,I]),_=(0,n.useMemo)(()=>(0,fe.A)(T,1500,ye),[T]),C=(0,n.useCallback)((t,l)=>{e((0,be.Y)({data:{...t,[X.DU.PAGE_NUMBER]:l}}))},[e]),S=(0,n.useRef)(t),d=we()((0,he.A)(S.current,X.DU.PAGE_NUMBER),(0,he.A)(t,X.DU.PAGE_NUMBER));return(0,n.useEffect)(()=>{o?(e((0,s.AL)(!1)),_(t)):d||(e((0,s.M2)(Fe.B)),S.current=t,_(t))},[e,_,t,d,o]),(0,n.useEffect)(()=>{const e=(0,Ue.G0)(E,N);(0,Ue.Oi)({isNextPageUnloaded:(0,Ue.$z)(i,e),allPagesLoaded:l,isSearchApplied:!1,areParamsEqual:d})&&C(t,e)},[C,N,d,l,t,i,e,E]),null};var xe=l(592510),ze=l(175165),$e=l(634229),Ye=l(259412),Ke=l(707362),Je=l(793155);const Ve=()=>{const e=(0,r.useDispatch)(),t=(0,n.useRef)(!0),l=(0,r.useSelector)(c.uK),E=(0,r.useSelector)(c.dC),a=(0,r.useSelector)((0,n.useMemo)(()=>(0,ve.OJ)(l),[l])),i=(0,r.useSelector)(o.Ty);return(0,n.useEffect)(()=>{t.current&&!a&&(e((0,Ye.b)({queryParams:E})),i&&e((0,ze.mW)()),e((0,Je.b)(void 0,{crudCacheStrategy:{type:xe.e.CACHE}})),e((0,Ke.MI)()),e((0,$e.Sk)()),t.current=!1)},[e,a,i,E]),null};var Xe=l(249304),Ze=l(905410),je=l(83604),qe=l(816271);const Qe=e=>e,et=({header:{id:e}})=>u.rs[e](e),tt=e=>u.E1[e],lt=({column:{id:e},getValue:t})=>u.Iq[e](t()),nt=u.WP.map(e=>({id:e,accessorFn:Qe,header:et,cell:lt,...tt(e),enableResizing:!0,enableSorting:!1})),rt="FLOWS_TABLE_WRAPPER_CLASSNAME",Et="FLOWS_TABLE_HEADER_CLASSNAME",at="FLOWS_TABLE_ROW_CLASSNAME",ot={wrapperFlexProps:{padding:"0px"},rowOptions:[{value:25,default:!1},{value:50,default:!1},{value:100,default:!0}]},ct={columns:nt,wrapperClassName:rt,headerClassName:Et,rowClassName:at,stickyHeader:!0},it=(0,W.A)(F.A)`
  width: 100%;
  height: 100%;
  overflow: auto;
  flex-direction: column;
  position: relative;
  .${rt} {
    width: 100%;
  }
  .${Et} {
    > tr {
      > th {
        height: 24px !important;
        > div {
          height: 24px !important;
        }
        padding: 0 ${U.kc};
      }
    }
  }
  .${at} {
    height: 24px !important;
    > td {
      padding: 0 ${U.kc};
      > div {
        white-space: pre-line;
      }
    }
  }
`,st=({flows:e,flowsPageNumber:t,columnVisibility:l,initialColumnSize:E,onColumnSizingChange:a})=>{const o=(0,r.useDispatch)(),c=(0,n.useCallback)(e=>{o((0,h.XP)({type:G.H.FLOWS,id:e[X.eq.ID]}))},[o]),i=(0,n.useCallback)(e=>{e!==t&&o((0,s.M2)(e))},[o,t]),m=(0,n.useCallback)(()=>{o((0,s.M2)(Fe.B))},[o]),u=(0,qe.A)([G.H.FLOWS]);return{onRenderTable:(0,n.useCallback)(({pageNumber:t,rowsPerPage:r})=>n.createElement(it,null,n.createElement(je.A,{data:e,columnVisibility:l,onRowClick:c,pageSize:r,pageIndex:t,activeRows:u,initialColumnSize:E,onColumnSizingChange:a,...ct})),[e,u,l,E,a,c]),onPageChanged:i,onRowsChanged:m}},mt=()=>{const e=(0,r.useSelector)(c.uK);return{flows:(0,r.useSelector)((0,n.useMemo)(()=>(0,ve.WD)(e),[e])),flowsTotalElementCount:(0,r.useSelector)((0,n.useMemo)(()=>(0,ve.TI)(e),[e])),flowsOrMore:(0,r.useSelector)((0,n.useMemo)(()=>(0,ve.QI)(e),[e])),flowsLoading:(0,r.useSelector)((0,n.useMemo)(()=>(0,ve.OJ)(e),[e]))}};var ut=l(415246),Ot=l(789768);const It=()=>{const e=(0,r.useDispatch)(),t=(0,r.useSelector)(c.zB),{tablePresets:l}=(0,r.useSelector)(a.Gm),{sizes:E}=(0,n.useMemo)(()=>l[t],[l,t]),o=(0,n.useCallback)(n=>{e((0,Ot.dR)({[ut.lR.TABLE_PRESETS]:{...l,[t]:{...l[t],sizes:n}}}))},[e,t,l]),i=(0,n.useMemo)(()=>(0,fe.A)(o,500),[o]);return[E,(0,n.useCallback)(e=>{i(e)},[i])]};var Nt;!function(e){e.TITLE="title",e.DESCRIPTION="description",e.FILTER_DESCRIPTION="filterDescription",e.COLUMNS_DESCRIPTION="columnsDescription"}(Nt||(Nt={}));const Tt={[d.L1.ALL_FLOWS]:{[Nt.TITLE]:"FLOWS_NO_FLOWS_TITLE",[Nt.DESCRIPTION]:"FLOWS_NO_FLOWS_DESCRIPTION",[Nt.FILTER_DESCRIPTION]:"FLOWS_NO_FLOWS_FILTER_DESCRIPTION",[Nt.COLUMNS_DESCRIPTION]:"FLOWS_NO_FLOWS_COLUMNS_DESCRIPTION"},[d.L1.BLOCKED]:{[Nt.TITLE]:"FLOWS_NO_BLOCKED_FLOWS_TITLE",[Nt.DESCRIPTION]:"FLOWS_NO_BLOCKED_FLOWS_DESCRIPTION",[Nt.FILTER_DESCRIPTION]:"FLOWS_NO_BLOCKED_FLOWS_FILTER_DESCRIPTION",[Nt.COLUMNS_DESCRIPTION]:"FLOWS_NO_BLOCKED_FLOWS_COLUMNS_DESCRIPTION"},[d.L1.THREATS]:{[Nt.TITLE]:"FLOWS_NO_THREATS_TITLE",[Nt.DESCRIPTION]:"FLOWS_NO_THREATS_DESCRIPTION",[Nt.FILTER_DESCRIPTION]:"FLOWS_NO_THREATS_FILTER_DESCRIPTION",[Nt.COLUMNS_DESCRIPTION]:"FLOWS_NO_THREATS_COLUMNS_DESCRIPTION"},[d.L1.NEXT_AI]:{[Nt.TITLE]:"FLOWS_NO_NEXT_AI_FLOWS_TITLE",[Nt.DESCRIPTION]:"FLOWS_NO_NEXT_AI_DESCRIPTION",[Nt.FILTER_DESCRIPTION]:"FLOWS_NO_NEXT_AI_FLOWS_FILTER_DESCRIPTION",[Nt.COLUMNS_DESCRIPTION]:"FLOWS_NO_NEXT_AI_FLOWS_COLUMNS_DESCRIPTION"}},_t=(0,W.A)(F.A,{shouldForwardProp:e=>"flowsLoading"!==e})`
  width: 100%;
  position: sticky;
  left: 0;
  right: 0;
  top: ${({flowsLoading:e})=>e?"5%":U.tr};
`,Ct=(0,W.A)(F.A)`
  width: 100%;
  flex-direction: column;
  gap: ${U.YC};
`;var St=l(407652);const dt=(0,n.memo)(()=>{const e=(0,r.useDispatch)(),t=(0,r.useSelector)(c.zB),l=(0,n.useCallback)(()=>{e((0,s.jo)(St.RI[t]))},[e,t]);return n.createElement(Ct,null,n.createElement(g.A,{color:"text-1",size:"medium",weight:"bold"},n.createElement(f.sA,{id:"COMMON_NO_MATCH"})),n.createElement(g.A,{color:"text-2",size:"medium"},n.createElement(f.sA,{id:Tt[t][Nt.COLUMNS_DESCRIPTION],values:{resetLink:n.createElement(p.A,{type:"button",onClick:l,variant:"inline"},n.createElement(f.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})))});var At=l(329991);const Rt=(0,n.memo)(()=>{const e=(0,r.useSelector)(c.Lw);return n.createElement(At.A,{position:"relative",left:`-${U.Tj}`,...e?{top:U.YC}:{}})});var Lt,Pt=l(503793),Mt=l(23797),pt=l(256856),gt=l(316144),Gt=l(34683),ht=l(302167),ft=l(457311),Dt=l(232819),wt=l(731183),Ht=l(602021),Wt=l(532419),Ut=l(171073),Ft=l(52361),kt=l(780811);!function(e){e.LOW="low",e.HIGH="high",e.ENTERPRISE="ENTERPRISE"}(Lt||(Lt={}));var vt=l(53648);const bt="EMPTY_FLOWS_DONUT_TITLE_CLASSNAME",yt="EMPTY_FLOWS_DONUT_DESCRIPTION_CLASSNAME",Bt={[vt._.BOTCC]:{[Lt.LOW]:1,[Lt.HIGH]:1,[Lt.ENTERPRISE]:1},[vt._.EMERGING_WORM]:{[Lt.LOW]:10,[Lt.HIGH]:10,[Lt.ENTERPRISE]:13},[vt._.EMERGING_MALWARE]:{[Lt.LOW]:17803,[Lt.HIGH]:17803,[Lt.ENTERPRISE]:30593},[vt._.EMERGING_MOBILE]:{[Lt.LOW]:1699,[Lt.HIGH]:1699,[Lt.ENTERPRISE]:5249},[vt._.EMERGING_P2P]:{[Lt.LOW]:87,[Lt.HIGH]:87,[Lt.ENTERPRISE]:89},[vt._.TOR]:{[Lt.LOW]:995,[Lt.HIGH]:995,[Lt.ENTERPRISE]:995},[vt._.EMERGING_EXPLOIT]:{[Lt.LOW]:1634,[Lt.HIGH]:1634,[Lt.ENTERPRISE]:1031},[vt._.EMERGING_SHELLCODE]:{[Lt.LOW]:59,[Lt.HIGH]:59,[Lt.ENTERPRISE]:59},[vt._.EMERGING_DOS]:{[Lt.LOW]:59,[Lt.HIGH]:59,[Lt.ENTERPRISE]:80},[vt._.EMERGING_ATTACK_RESPONSE]:{[Lt.LOW]:652,[Lt.HIGH]:652,[Lt.ENTERPRISE]:788},[vt._.EMERGING_SCAN]:{[Lt.LOW]:293,[Lt.HIGH]:293,[Lt.ENTERPRISE]:350},[vt._.EMERGING_RPC]:{[Lt.LOW]:83,[Lt.HIGH]:83,[Lt.ENTERPRISE]:83},[vt._.EMERGING_ACTIVEX]:{[Lt.LOW]:182,[Lt.HIGH]:182,[Lt.ENTERPRISE]:234},[vt._.EMERGING_DNS]:{[Lt.LOW]:21,[Lt.HIGH]:21,[Lt.ENTERPRISE]:24},[vt._.EMERGING_GAMES]:{[Lt.LOW]:24,[Lt.HIGH]:24,[Lt.ENTERPRISE]:31},[vt._.EMERGING_SQL]:{[Lt.LOW]:191,[Lt.HIGH]:191,[Lt.ENTERPRISE]:191},[vt._.EMERGING_USERAGENT]:{[Lt.LOW]:289,[Lt.HIGH]:289,[Lt.ENTERPRISE]:445},[vt._.EMERGING_WEBAPPS]:{[Lt.LOW]:5041,[Lt.HIGH]:5041,[Lt.ENTERPRISE]:5256},[vt._.EMERGING_WEBCLIENT]:{[Lt.LOW]:500,[Lt.HIGH]:500,[Lt.ENTERPRISE]:1253},[vt._.EMERGING_WEBSERVER]:{[Lt.LOW]:672,[Lt.HIGH]:672,[Lt.ENTERPRISE]:726},[vt._.CIARMY]:{[Lt.LOW]:100,[Lt.HIGH]:100,[Lt.ENTERPRISE]:100},[vt._.COMPROMISED]:{[Lt.LOW]:24,[Lt.HIGH]:24,[Lt.ENTERPRISE]:24},[vt._.DSHIELD]:{[Lt.LOW]:1,[Lt.HIGH]:1,[Lt.ENTERPRISE]:1},[vt._.EMERGING_FTP]:{[Lt.LOW]:58,[Lt.HIGH]:58,[Lt.ENTERPRISE]:58},[vt._.EMERGING_ICMP]:{[Lt.LOW]:0,[Lt.HIGH]:0,[Lt.ENTERPRISE]:0},[vt._.EMERGING_IMAP]:{[Lt.LOW]:17,[Lt.HIGH]:17,[Lt.ENTERPRISE]:17},[vt._.EMERGING_MISC]:{[Lt.LOW]:21,[Lt.HIGH]:21,[Lt.ENTERPRISE]:21},[vt._.EMERGING_NETBIOS]:{[Lt.LOW]:392,[Lt.HIGH]:392,[Lt.ENTERPRISE]:489},[vt._.EMERGING_POP3]:{[Lt.LOW]:9,[Lt.HIGH]:9,[Lt.ENTERPRISE]:9},[vt._.EMERGING_SMTP]:{[Lt.LOW]:17,[Lt.HIGH]:17,[Lt.ENTERPRISE]:17},[vt._.EMERGING_SNMP]:{[Lt.LOW]:16,[Lt.HIGH]:16,[Lt.ENTERPRISE]:20},[vt._.EMERGING_TELNET]:{[Lt.LOW]:8,[Lt.HIGH]:8,[Lt.ENTERPRISE]:8},[vt._.EMERGING_TFTP]:{[Lt.LOW]:13,[Lt.HIGH]:13,[Lt.ENTERPRISE]:13},[vt._.EMERGING_VOIP]:{[Lt.LOW]:16,[Lt.HIGH]:16,[Lt.ENTERPRISE]:16},[vt._.DARKWEB]:{[Lt.LOW]:0,[Lt.HIGH]:0,[Lt.ENTERPRISE]:0},[vt._.MALICIOUS_HOST]:{[Lt.LOW]:0,[Lt.HIGH]:0,[Lt.ENTERPRISE]:0},[vt._.EXPLOIT_KIT]:{[Lt.LOW]:0,[Lt.HIGH]:852,[Lt.ENTERPRISE]:2102},[vt._.ADWARE_PUP]:{[Lt.LOW]:0,[Lt.HIGH]:927,[Lt.ENTERPRISE]:1651},[vt._.BOTCC_PORTGROUPED]:{[Lt.LOW]:0,[Lt.HIGH]:0,[Lt.ENTERPRISE]:0},[vt._.PHISHING]:{[Lt.LOW]:0,[Lt.HIGH]:3383,[Lt.ENTERPRISE]:11465},[vt._.THREATVIEW_CS_C2]:{[Lt.LOW]:0,[Lt.HIGH]:17,[Lt.ENTERPRISE]:17},[vt._.THREE_CORESEC]:{[Lt.LOW]:0,[Lt.HIGH]:9,[Lt.ENTERPRISE]:9},[vt._.CHAT]:{[Lt.LOW]:11,[Lt.HIGH]:67,[Lt.ENTERPRISE]:67},[vt._.COINMINER]:{[Lt.LOW]:0,[Lt.HIGH]:29,[Lt.ENTERPRISE]:47},[vt._.CURRENT_EVENTS]:{[Lt.LOW]:0,[Lt.HIGH]:56,[Lt.ENTERPRISE]:58},[vt._.DROP]:{[Lt.LOW]:0,[Lt.HIGH]:55,[Lt.ENTERPRISE]:55},[vt._.INAPPROPRIATE]:{[Lt.LOW]:0,[Lt.HIGH]:0,[Lt.ENTERPRISE]:1},[vt._.JA3]:{[Lt.LOW]:0,[Lt.HIGH]:102,[Lt.ENTERPRISE]:112},[vt._.SCADA]:{[Lt.LOW]:0,[Lt.HIGH]:90,[Lt.ENTERPRISE]:290},[vt._.INFO]:{[Lt.LOW]:14,[Lt.HIGH]:7016,[Lt.ENTERPRISE]:7175},[vt._.ICMP_INFO]:{[Lt.LOW]:0,[Lt.HIGH]:14,[Lt.ENTERPRISE]:14},[vt._.HUNTING]:{[Lt.LOW]:33,[Lt.HIGH]:15136,[Lt.ENTERPRISE]:26278},[vt._.POLICY]:{[Lt.LOW]:28,[Lt.HIGH]:1291,[Lt.ENTERPRISE]:1569}},xt=(0,W.A)(F.A)`
  flex-direction: column;
  background: ${({theme:{themeName:e}})=>D.Ay[`desktop-color-neutral-01-${e}`]};
  gap: ${U.Ln};
  padding: ${U.xO};
  width: 600px;
  height: fit-content;
  position: relative;
  left: 0;
  right: 0;
`,zt=(0,W.A)(F.A)`
  align-items: center;
  gap: ${U.YC};
`,$t=(0,W.A)(F.A)`
  gap: ${U.S2};
  .${bt}, .${yt} {
    font-size: 12px;
  }
  align-items: center;
`,Yt=(0,W.A)(F.A)`
  gap: ${U.kc};
  flex-direction: column;
  width: 100%;
`,Kt=(0,W.A)(F.A)`
  justify-content: space-between;
  width: 100%;
`,Jt=(0,W.A)(F.A)`
  gap: ${U.kc};
  align-items: center;
  width: 50%;
`,Vt=(0,W.A)(F.A)`
  min-width: 6px;
  min-height: 6px;
  border-radius: 1px;
`,Xt=(0,W.A)(F.A)`
  width: 160px;
  height: 16px;
  background-color: ${({theme:{themeName:e}})=>D.Ay[`desktop-color-neutral-02-${e}`]};
  border-radius: ${D.Ay["desktop-radius-base"]};
`,Zt=(0,W.A)(F.A)`
  width: 100%;
  gap: ${U.S2};
`,jt=(0,W.A)(F.A)`
  width: 50%;
  justify-content: space-between;
  background: ${({theme:{themeName:e}})=>D.Ay[`desktop-color-neutral-00-${e}`]};
  padding: ${U.YC} ${U.kc};
`,qt=(0,W.A)(F.A)`
  width: 100%;
  flex-direction: column;
  gap: ${U.kc};
`,Qt=(0,W.A)(F.A)`
  width: 100%;
  justify-content: space-between;
`,el=e=>({nameId:t,signatures:l})=>n.createElement(qt,null,n.createElement(Qt,null,n.createElement(f.sA,{id:t})),n.createElement(Qt,null,n.createElement(f.sA,{id:"FLOWS_SIGNATURES"}),n.createElement("span",null,e.format(l)))),tl=()=>{const e=(0,r.useDispatch)(),{formatMessage:t}=(0,f.tz)(),{themeName:l}=(0,w.u)(),E=(0,r.useSelector)(O.zi),o=(0,r.useSelector)(a.BQ),c=(0,r.useSelector)(Ht.hq),{rule_count:i=0,update_time:s,is_activating:m}=(0,r.useSelector)(Wt.Q2),{memory_optimized:u}=(0,r.useSelector)(ht.y4),N=(0,r.useSelector)(Dt.M),T=(0,r.useSelector)(Wt.$x),_=(0,gt.Ad)(T),C=(0,n.useMemo)(()=>_?Lt.ENTERPRISE:(0,kt.joB)(T)?.ipsLimits?.memoryWarningPercentage?u?Lt.LOW:Lt.HIGH:void 0,[_,T,u]),{numberFormat:S,dateTimeFormat:d}=(0,n.useMemo)(()=>({numberFormat:new Intl.NumberFormat(E,{notation:"standard"}),dateTimeFormat:new Intl.DateTimeFormat(E,{hourCycle:o,timeZone:c,day:"numeric",month:"short",hour:"numeric",minute:"numeric"})}),[E,o,c]),{donutItems:A,listItems:R}=(0,n.useMemo)(()=>Gt.J.reduce((e,t,r)=>{const E=m?D.Ay[`desktop-color-neutral-05-${l}`]:(0,Ft.f)((0,Ft.B)(r),4),a=N.filter(({category_group:e})=>e===t).reduce((e,{value:t})=>e+(Bt[t][C]||0),0);return e.donutItems.push({id:t,signatures:a,nameId:Gt.h[t],value:a/i*100,color:E}),e.listItems.push(n.createElement(Jt,{key:t},n.createElement(Vt,{background:E}),m?n.createElement(Xt,null):n.createElement(g.A,{size:"small",color:"text-3"},n.createElement(f.sA,{id:Gt.h[t]})))),e},{donutItems:[],listItems:[]}),[i,N,l,m,C]),L=n.createElement(f.sA,{id:_?"COMMON_CYBERSECURE_ENTERPRISE_FULL_NAME":"COMMON_CYBERSECURE_ENHANCED_FULL_NAME"});return(0,n.useEffect)(()=>{e((0,Ut.Uc)(void 0,{crudCacheStrategy:{type:xe.e.CACHE}}))},[e]),(0,I.A)([(0,ft.Uc)(void 0,{crudCacheStrategy:{type:xe.e.CACHE}}),(0,wt.W)(void 0,{crudCacheStrategy:{type:xe.e.CACHE}})],n.createElement(xt,null,n.createElement(zt,null,n.createElement(pt.A,{size:"original",isActive:!0}),n.createElement(g.A,{size:"medium",color:"text-2"},m?L:n.createElement(f.sA,{id:"FLOWS_NO_THREATS_DETECTED_BY_CYBERSECURE",values:{subscription:L}}))),n.createElement($t,null,n.createElement(Mt.A,{items:A,renderTooltipMessage:el(S),title:m?`${t({id:"COMMON_ACTIVATING"})}...`:t({id:"COMMON_TOTAL_SIGNATURES"}),description:m?void 0:S.format(i),size:130,titleClassName:bt,descriptionClassName:yt,portalTooltip:!0}),n.createElement(Yt,null,R.map((e,t,l)=>t%2==0?n.createElement(Kt,{key:A[t].id},e,l[t+1]):null))),n.createElement(Zt,null,n.createElement(jt,null,n.createElement(g.A,{size:"small",color:"text-2"},n.createElement(f.sA,{id:"COMMON_LAST_UPDATED"})),n.createElement(g.A,{size:"small",color:"text-3"},m?n.createElement(f.sA,{id:"COMMON_UPDATING"}):s?d.format(s):n.createElement(f.sA,{id:"COMMON_UNKNOWN"}))))))};var ll=l(95636);const nl=(0,n.memo)(({flowsTab:e})=>{const t=(0,r.useDispatch)(),l=(0,r.useSelector)(c.bq),E=(0,n.useCallback)(()=>{t((0,s.z7)((0,he.A)(l,ll.x)))},[t,l]);return n.createElement(Ct,null,n.createElement(g.A,{color:"text-1",size:"medium",weight:"bold"},n.createElement(f.sA,{id:"COMMON_NO_MATCH"})),n.createElement(g.A,{color:"text-2",size:"medium"},n.createElement(f.sA,{id:Tt[e][Nt.FILTER_DESCRIPTION],values:{resetLink:n.createElement(p.A,{type:"button",onClick:E,variant:"inline"},n.createElement(f.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})))}),rl=(0,n.memo)(({flowsTab:e})=>n.createElement(Ct,null,n.createElement(g.A,{color:"text-1",size:"medium",weight:"bold"},n.createElement(f.sA,{id:Tt[e][Nt.TITLE]})),n.createElement(g.A,{color:"text-2",size:"medium"},n.createElement(f.sA,{id:Tt[e][Nt.DESCRIPTION]})))),El=(0,n.memo)(()=>{const e=(0,r.useSelector)(c.zB),t=(0,r.useSelector)(c._S),{isSubscribed:l}=(0,Pt.g)(),E=t?rl:nl;switch(e){case d.L1.THREATS:return l&&t?n.createElement(tl,null):n.createElement(E,{flowsTab:e});case d.L1.ALL_FLOWS:case d.L1.BLOCKED:case d.L1.NEXT_AI:default:return n.createElement(E,{flowsTab:e})}}),al=(0,n.memo)(({flowsLoading:e,hasFlowsColumns:t})=>n.createElement(_t,{flowsLoading:e},e?n.createElement(Rt,null):t?n.createElement(El,null):n.createElement(dt,null))),ol=(0,n.memo)(()=>{const e=(0,r.useSelector)(c.bB),t=(0,r.useSelector)(c.cJ),l=(0,r.useSelector)(c.Zm),{flows:E,flowsTotalElementCount:a,flowsOrMore:o,flowsLoading:i}=mt(),s=(0,n.useMemo)(()=>u.WP.reduce((t,l)=>(t[l]=e.includes(l),t),{}),[e]),[m,O]=It(),{onRenderTable:I,onPageChanged:N,onRowsChanged:T}=st({flows:E,flowsPageNumber:t,columnVisibility:s,initialColumnSize:m,onColumnSizingChange:O});return E.length&&e.length?n.createElement(Ze.A,{...ot,section:"COMMON_FLOWS",tableType:Xe.l.FLOWS,itemCount:a,unknownCount:o,onRenderTable:I,onPageChanged:N,onRowsChanged:T,pageNumber:t,keepPaginationWhileLoading:Boolean(l)}):n.createElement(al,{flowsLoading:i,hasFlowsColumns:Boolean(e.length)})}),cl=(0,n.memo)(()=>(Ve(),Be(),n.createElement(Ge,null,n.createElement(ol,null))));var il=l(958178),sl=l(609950),ml=l(388287);const ul=(0,n.memo)(()=>{const e=(0,r.useSelector)(c.FW),t=(0,r.useSelector)(Pe.t),l=(0,r.useSelector)(il.o);return e?t?n.createElement(ml.A,null):l?n.createElement(sl.A,null):n.createElement(cl,null):n.createElement(cl,null)}),Ol=(0,n.memo)(()=>n.createElement(ge,null,n.createElement(pe,null),n.createElement(ul,null))),Il=(0,n.memo)(()=>{const e=(0,r.useDispatch)(),{areAllFlowsSupported:t,areAllFlowsEnabled:l}=(0,E.A)(),O=(0,r.useSelector)(c.x7),I=(0,r.useSelector)(o.Ty),N=(0,r.useSelector)(c.zB),{tablePresets:T}=(0,r.useSelector)(a.Gm),_=(0,n.useCallback)(e=>!!I||![m.u.FILE_NAME,m.u.FILE_PATH,m.u.FILE_SIZE,m.u.FILE_TYPE,m.u.URL,m.u.QUERY].includes(e),[I]);return(0,n.useEffect)(()=>{if(!O){let n=[];const E=[],a=u.WP.filter(_),o={[i.Y.AVAILABLE_COLUMNS]:a};if(E.push((0,s.gG)(a)),t&&l){const{columns:e}=T[N];n=(e.length?e:St.RI[N]).filter(_),o[i.Y.COLUMNS]=n,E.push((0,s.jo)(n))}else{const e=d.L1.BLOCKED,{columns:t}=T[e];n=(t.length?t:St.RI[e]).filter(_),o[i.Y.TAB]=e,o[i.Y.COLUMNS]=n,E.push((0,s.t5)(e)),E.push((0,s.jo)(n))}E.push((0,s.P8)(o)),(0,r.batch)(()=>{E.forEach(e)}),e((0,s.v9)(!0))}},[_,O,e,T,N,t,l,I]),O?n.createElement(Ol,null):null}),Nl=()=>n.createElement(Il,null)},675544:(e,t,l)=>{l.d(t,{A:()=>E});var n=l(296540),r=l(629318);const E=(0,l(51946).w)(e=>(0,n.createElement)("svg",(0,r.d)({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("circle",{cx:12,cy:12,r:10,fill:"currentColor",className:e.twotonedclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12a9 9 0 0 1-15 6.708L18.707 5.999A8.967 8.967 0 0 1 21 12ZM5.291 19.416l-.015-.014A9.963 9.963 0 0 1 2 12C2 6.477 6.477 2 12 2a9.963 9.963 0 0 1 7.416 3.291A9.963 9.963 0 0 1 22 12c0 5.523-4.477 10-10 10a9.963 9.963 0 0 1-6.709-2.584ZM5.292 18 18.001 5.292A9 9 0 0 0 5.293 18Z",fill:"currentColor",className:e.baseclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 0 1-12.85 6.363L18.364 7.151A7.965 7.965 0 0 1 20 12ZM5.727 19.788A9.958 9.958 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12a9.96 9.96 0 0 0 2.302 6.384c.427.514.904.984 1.424 1.404Zm-.003-2.826L16.962 5.724A8 8 0 0 0 5.724 16.962Z",fill:"currentColor",className:e.fillclassname})))},731183:(e,t,l)=>{l.d(t,{W:()=>c,T:()=>o});var n=l(691189);const r="value",E="ips/available-categories",a=`/v2/api/site/{site}/settings/${E}`,o=(e=!1,t={},l={})=>(0,n.t9)(E,(e=>`${a}?memoryOptimized=${e}`)(e),t,{idField:r,...l}),c=(e={},t={})=>(0,n.t9)(E,a,e,{idField:r,...t})}}]);