"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[5302],{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})},995812:(e,t,l)=>{l.d(t,{J8:()=>E,Jq:()=>r,nG:()=>a});var n=l(768195);const r=[n.W4.UDMB,n.W4.UDR,n.W4.UXMAX,n.W4.UDR7],E=[n.W4.UDRULT,n.W4.UCGMAX,n.W4.UDMPRO,n.W4.UXGB,n.W4.UXGPRO,n.W4.UDMPROSE,n.W4.UDW,n.W4.UDMPROMAX,n.W4.UDMA6A8,n.W4.UXGA6AA],a=[n.W4.UDMENT,n.W4.UXGENT]},232819:(e,t,l)=>{l.d(t,{M:()=>c});var n=l(801081),r=l(87485),E=l(25553),a=l(731183);const o=(0,E.uh)((0,a.W)()),c=(0,n.Mz)(o,r.kh)},621538:(e,t,l)=>{l.r(t),l.d(t,{default:()=>_l});var n=l(296540),r=l(469733),E=l(198494),a=l(451723),o=l(792072),c=l(407652),i=l(765051),s=l(469987),m=l(403998),u=l(716654),N=l(71479),I=l(294303),O=l(566723);const T=(0,N.A)(I.A)`
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  gap: ${O.kc};
  padding: ${O.Ln};
`;var _,C=l(146398),S=l(582724),A=l(282556);!function(e){e.INTL_NUMBER_FORMAT="intlNumberFormat"}(_||(_={}));const d={[_.INTL_NUMBER_FORMAT]:void 0},R=(0,n.createContext)(d);var L=l(513035),P=l(752263),M=l(215454),G=l(523275),g=l(840279),f=l(731971),p=l(618489),h=l(274750),H=l(217439),W=l(822336),D=l(998837),w=l(629318);const F=(0,l(51946).w)(e=>(0,n.createElement)("svg",(0,w.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})));var k=l(675544),v=l(705145),U=l(459449),b=l(286388),y=l(249738);const B=(0,N.A)(I.A)`
  width: 100%;
  justify-content: space-between;
`,x=(0,N.A)(I.A)`
  flex-direction: column;
  gap: ${O.YC};
  > p {
    text-align: end;
  }
`,z=(0,N.A)(I.A)`
  align-items: center;
  gap: ${O.YC};
  > :first-child {
    min-width: ${O.Er};
    justify-content: center;
  }
`,$=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},Y=(0,n.memo)(({flowsTab:e,flowsOverviewAllowedCountByRisk:t,flowsOverviewBlockedCountByRisk:l})=>{const E=(0,r.useDispatch)(),{themeName:a}=(0,D.u)(),{intlNumberFormat:o}=(0,n.useContext)(R),c=t[L.fq.LOW]||0,m=t[L.fq.MEDIUM]||0,u=t[L.fq.HIGH]||0,N=l[L.nC.LOW]||0,I=l[L.nC.MEDIUM]||0,O=l[L.nC.HIGH]||0,{allTrafficTotalFlows:T,allTrafficLowPercentage:_,allTrafficSuspiciousPercentage:C,allTrafficConcerningPercentage:S,totalBlocked:A,blockedTrafficLowPercentage:d,blockedTrafficSuspiciousPercentage:P,blockedTrafficConcerningPercentage:M}=(0,n.useMemo)(()=>({...(e=>({allTrafficTotalFlows:e,allTrafficLowPercentage:c/e*100||0,allTrafficSuspiciousPercentage:m/e*100||0,allTrafficConcerningPercentage:u/e*100||0}))(c+m+u),...(e=>({totalBlocked:e,blockedTrafficLowPercentage:N/e*100||0,blockedTrafficSuspiciousPercentage:I/e*100||0,blockedTrafficConcerningPercentage:O/e*100||0}))(N+I+O)}),[c,m,u,N,I,O]),{totalColor:G,lowColor:g,suspiciousColor:f,concerningColor:h,blockedColor:w}=(0,n.useMemo)(()=>({totalColor:W.Ay[`desktop-color-aqua-06-${a}`],lowColor:W.Ay[`desktop-color-green-06-${a}`],suspiciousColor:W.Ay[`desktop-color-orange-06-${a}`],concerningColor:W.Ay[`desktop-color-red-06-${a}`],blockedColor:W.Ay[`desktop-color-red-04-${a}`]}),[a]),Y=(0,n.useCallback)(()=>{E((0,y.p)([(0,s.Ce)([b.GD.LOW])]))},[E]),J=(0,n.useCallback)(()=>{E((0,y.p)([(0,s.Ce)([b.GD.MEDIUM])]))},[E]),K=(0,n.useCallback)(()=>{E((0,y.p)([(0,s.Ce)([b.GD.HIGH])]))},[E]);return n.createElement(p.z1,null,n.createElement(p.IT,null,n.createElement(p.Nt,{header:!0},n.createElement(H.A,{size:"medium",color:"text-1",weight:"bold"},n.createElement(U.sA,{id:"FLOWS_FLOW_SUMMARY"}))),n.createElement(B,null,e===i.L1.ALL_FLOWS?n.createElement(n.Fragment,{key:i.L1.ALL_FLOWS},n.createElement(x,null,n.createElement(z,null,n.createElement(F,{size:"original",color:G}),n.createElement(H.A,{size:"medium",color:"text-2"},n.createElement(U.sA,{id:"COMMON_TOTAL"}))),n.createElement(z,null,n.createElement(p.NP,null,n.createElement(p.GJ,{color:g}),n.createElement(p.GJ,null),n.createElement(p.GJ,null)),n.createElement(H.A,{size:"medium",color:"text-2"},n.createElement(U.sA,{id:"COMMON_LOW"}))),n.createElement(z,null,n.createElement(p.NP,null,n.createElement(p.GJ,{color:f}),n.createElement(p.GJ,{color:f}),n.createElement(p.GJ,null)),n.createElement(H.A,{size:"medium",color:"text-2"},n.createElement(U.sA,{id:"COMMON_SUSPICIOUS"}))),n.createElement(z,null,n.createElement(p.NP,null,n.createElement(p.GJ,{color:h}),n.createElement(p.GJ,{color:h}),n.createElement(p.GJ,{color:h})),n.createElement(H.A,{size:"medium",color:"text-2"},n.createElement(U.sA,{id:"COMMON_CONCERNING"})))),n.createElement(x,{alignItems:"end"},n.createElement(v.A,{size:"medium",color:"text-3"},o.format(T)),n.createElement(p.es,{size:"medium",color:"text-3",onClick:Y},o.format(c)," (",$(_),"%)"),n.createElement(p.es,{size:"medium",color:"text-3",onClick:J},o.format(m)," (",$(C),"%)"),n.createElement(p.es,{size:"medium",color:"text-3",onClick:K},o.format(u)," (",$(S),"%)"))):n.createElement(n.Fragment,{key:i.L1.BLOCKED},n.createElement(x,null,n.createElement(z,null,n.createElement(k.A,{size:"original",color:w}),n.createElement(H.A,{size:"medium",color:"text-2"},n.createElement(U.sA,{id:"FLOWS_TOTAL_BLOCKED"}))),n.createElement(z,null,n.createElement(p.NP,null,n.createElement(p.GJ,{color:g}),n.createElement(p.GJ,null),n.createElement(p.GJ,null)),n.createElement(H.A,{size:"medium",color:"text-2"},n.createElement(U.sA,{id:"COMMON_LOW"}))),n.createElement(z,null,n.createElement(p.NP,null,n.createElement(p.GJ,{color:f}),n.createElement(p.GJ,{color:f}),n.createElement(p.GJ,null)),n.createElement(H.A,{size:"medium",color:"text-2"},n.createElement(U.sA,{id:"COMMON_SUSPICIOUS"}))),n.createElement(z,null,n.createElement(p.NP,null,n.createElement(p.GJ,{color:h}),n.createElement(p.GJ,{color:h}),n.createElement(p.GJ,{color:h})),n.createElement(H.A,{size:"medium",color:"text-2"},n.createElement(U.sA,{id:"COMMON_CONCERNING"})))),n.createElement(x,{alignItems:"end"},n.createElement(v.A,{size:"medium",color:"text-3"},o.format(A)),n.createElement(p.es,{size:"medium",color:"text-3",onClick:Y},o.format(N)," (",$(d),"%)"),n.createElement(p.es,{size:"medium",color:"text-3",onClick:J},o.format(I)," (",$(P),"%)"),n.createElement(p.es,{size:"medium",color:"text-3",onClick:K},o.format(O)," (",$(M),"%)"))))))});var J=l(703447),K=l(845030),V=l(398300),X=l(758649),Z=l(184683);const j=(0,N.A)(I.A)`
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: ${O.kc};
`,q=(0,n.memo)(({flowsOverviewType:e})=>{const{id:t,icon:l}=(0,n.useMemo)(()=>({id:Z.Bh[e],icon:Z.nz[e]}),[e]);return n.createElement(j,null,(0,n.createElement)(l,{size:"large",color:W.Ay[`desktop-color-ublue-03-${(0,D.u)().themeName}`],variant:"fill"}),n.createElement(H.A,{size:"medium",color:"text-2"},n.createElement(U.sA,{id:t})))});const Q=function({id:e,flowsOverviewType:t,data:l=[],children:E,customOnClick:a}){const o=(0,r.useDispatch)(),c=(0,n.useCallback)(()=>{a?a():o((0,K.XP)({type:V.H.FLOWS_OVERVIEW,id:t}))},[o,t,a]);return n.createElement(p.z1,null,n.createElement(p.IT,null,n.createElement(p.Nt,{header:!0},n.createElement(H.A,{size:"medium",color:"text-1",weight:"bold"},n.createElement(U.sA,{id:e})),l.length>h.hG?n.createElement(X.A,{type:"button",variant:"inline",size:"medium",onClick:c},n.createElement(U.sA,{id:"COMMON_SEE_MORE"})):null),l.length?E((e=>e.slice(0,h.hG))(l)):n.createElement(q,{flowsOverviewType:t})))};const ee=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)(R),E=(0,n.useCallback)(e=>()=>{t((0,K.XP)({type:V.H.CLIENT,id:e}))},[t]),a=(0,n.useCallback)(e=>()=>{t((0,y.p)([(0,s.Tt)([e])]))},[t]);return n.createElement(Q,{id:Z.kd[L.rN.TOP_AFFECTED_CLIENTS],data:e,flowsOverviewType:L.rN.TOP_AFFECTED_CLIENTS},e=>e.map(e=>n.createElement(p.Nt,{key:JSON.stringify(e)},n.createElement(p.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:h.pC,height:h.sh}),n.createElement(p.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(U.sA,{id:"COMMON_UNKNOWN"}))),n.createElement(p.es,{size:"medium",color:"text-3",onClick:a(e[L.S6.CLIENT_MAC])},l.format(e[L.S6.COUNT]||0)))))};var te=l(323030);const le=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)(R),E=(0,n.useCallback)(e=>()=>{t((0,y.p)([(0,s.$D)([e])]))},[t]);return n.createElement(Q,{id:Z.kd[L.rN.TOP_AFFECTED_REGIONS],data:e,flowsOverviewType:L.rN.TOP_AFFECTED_REGIONS},e=>e.map(e=>n.createElement(p.Nt,{key:JSON.stringify(e)},n.createElement(p.yJ,null,e[L.rL.REGION]?n.createElement(te.A,{countryCode:e[L.rL.REGION],width:h.mS,height:h.lz}):null,n.createElement(v.A,{size:"medium",color:"text-2",isTruncated:!0},e[L.rL.REGION]?n.createElement(U.sA,{id:`COUNTRY_${e[L.rL.REGION]}`,defaultMessage:e[L.rL.REGION]}):n.createElement(U.sA,{id:"COMMON_UNKNOWN"}))),n.createElement(p.es,{size:"medium",color:"text-3",onClick:E(e[L.rL.REGION])},l.format(e[L.rL.COUNT]||0)))))};var ne=l(956347),re=l(668995),Ee=l(455155),ae=l(903216),oe=l(15095),ce=l(627440),ie=l(670180),se=l(260411),me=l(120205),ue=l(767974),Ne=l(601242),Ie=l(739177);const Oe=Ie.i8[Ie.Ut];const Te=function({data:e}){const t=(0,r.useDispatch)(),l=(0,oe.A)(`${ce.VO.INSIGHTS}/${ie.H.ACTIVITY}`),E=(0,ne.W6)(),a=(0,n.useCallback)(()=>{t((0,se.P7)(me.f.CLIENTS)),Oe&&t((0,se.Xy)({startDate:Oe.range.startDate,endDate:Oe.range.endDate,preset:Oe.id})),E.push(l)},[t,E,l]),o=(0,n.useCallback)(e=>()=>{t((0,se.yJ)([{[ue.wA.CAT]:e[L.YF.CATEGORY_ID],[ue.wA.APP]:e[L.YF.APPLICATION_ID]}])),t((0,se.P7)(me.f.APPS)),Oe&&t((0,se.Xy)({startDate:Oe.range.startDate,endDate:Oe.range.endDate,preset:Oe.id})),E.push(l)},[t,E,l]);return n.createElement(Q,{id:Z.kd[L.rN.TOP_APPS],data:e,flowsOverviewType:L.rN.TOP_APPS,customOnClick:a},e=>e.map(e=>{return t=(0,Ne.HH)((0,re.h)(e[L.YF.CATEGORY_ID],e[L.YF.APPLICATION_ID])),n.createElement(p.Nt,{key:JSON.stringify(e)},n.createElement(p.yJ,null,n.createElement(Ee.A,{iconFileName:t?.iconFileName,dimension:h.H2}),n.createElement(p.es,{size:"medium",color:"text-2",isTruncated:!0,onClick:o(e)},t?.name||n.createElement(U.sA,{id:"COMMON_UNKNOWN"}))),n.createElement(v.A,{size:"medium",color:"text-3"},(0,ae.FI)(e[L.YF.BYTES]||0)));var t}))};const _e=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)(R),E=(0,n.useCallback)(e=>()=>{t((0,K.XP)({type:V.H.CLIENT,id:e}))},[t]),a=(0,n.useCallback)(e=>()=>{t((0,y.p)([(0,s.Tt)([e])]))},[t]);return n.createElement(Q,{id:Z.kd[L.rN.TOP_CLIENTS],data:e,flowsOverviewType:L.rN.TOP_CLIENTS},e=>e.map(e=>n.createElement(p.Nt,{key:JSON.stringify(e)},n.createElement(p.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:h.pC,height:h.sh}),n.createElement(p.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(U.sA,{id:"COMMON_UNKNOWN"}))),n.createElement(p.es,{size:"medium",color:"text-3",onClick:a(e[L.ng.CLIENT_MAC])},l.format(e[L.ng.COUNT]||0)))))};var Ce=l(620637),Se=l(596421);const Ae=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)(R),E=(0,n.useCallback)(e=>()=>{t((0,y.p)([(0,s.LV)([(0,Ce.isValidIp)(e)?{[b.u9.IP]:e}:{[b.u9.DOMAINS]:[e]}])]))},[t]);return n.createElement(Q,{id:Z.kd[L.rN.TOP_DESTINATIONS],data:e,flowsOverviewType:L.rN.TOP_DESTINATIONS},e=>e.map(e=>n.createElement(p.Nt,{key:JSON.stringify(e)},n.createElement(p.yJ,null,e[L.Cs.MOST_FREQUENT_REGION]?n.createElement(te.A,{countryCode:e[L.Cs.MOST_FREQUENT_REGION],width:h.mS,height:h.lz}):null,n.createElement(v.A,{size:"medium",color:"text-2",isTruncated:!0},n.createElement(Se.A,null,e[L.Cs.DESTINATION]))),n.createElement(p.es,{size:"medium",color:"text-3",onClick:E(e[L.Cs.DESTINATION])},l.format(e[L.Cs.COUNT]||0)))))};const de=function({data:e}){const t=(0,r.useDispatch)(),{intlNumberFormat:l}=(0,n.useContext)(R),E=(0,n.useCallback)(e=>()=>{t((0,y.p)([(0,s.DC)([e])]))},[t]);return n.createElement(Q,{id:Z.kd[L.rN.TOP_TRIGGERED_POLICIES],data:e,flowsOverviewType:L.rN.TOP_TRIGGERED_POLICIES},e=>e.map(e=>n.createElement(p.Nt,{key:JSON.stringify(e)},n.createElement(v.A,{size:"medium",color:"text-2",isTruncated:!0},e[L.B9.POLICY_NAME]),n.createElement(p.es,{size:"medium",color:"text-3",onClick:E(e[L.B9.POLICY_TYPE])},l.format(e[L.B9.COUNT]||0)))))},Re=(0,n.memo)(({flowsOverviewFetchParams:e})=>{const t=(0,r.useSelector)(u.zB),l=(0,r.useSelector)((0,n.useMemo)(()=>(0,f.v)(e),[e])),E=(0,r.useSelector)(M.sL),{areAllFlowsSupported:o}=(0,a.A)(),c=(0,n.useMemo)(()=>o&&E&&(0,P.G)(E,h.je),[o,E]);return n.createElement(p.$6,{flowsOverviewTopByRegionSupported:c},n.createElement(Y,{flowsTab:t,flowsOverviewAllowedCountByRisk:l[L.gl.ALLOWED_COUNT_BY_RISK]||(0,G.A)(),flowsOverviewBlockedCountByRisk:l[L.gl.BLOCKED_COUNT_BY_RISK]||(0,G.A)()}),t===i.L1.ALL_FLOWS?n.createElement(n.Fragment,{key:i.L1.ALL_FLOWS},n.createElement(Ae,{data:l[L.gl.TOP_ALL_COUNT_BY_DESTINATION]||(0,g.A)()}),n.createElement(_e,{data:l[L.gl.TOP_ALL_COUNT_BY_CLIENT]||(0,g.A)()}),n.createElement(Te,{data:l[L.gl.TOP_ALL_TRAFFIC_BY_APPLICATION]||(0,g.A)()})):n.createElement(n.Fragment,{key:i.L1.BLOCKED},n.createElement(de,{data:l[L.gl.TOP_BLOCKED_COUNT_BY_POLICY]||(0,g.A)()}),n.createElement(ee,{data:l[L.gl.TOP_BLOCKED_COUNT_BY_CLIENT]||(0,g.A)()}),c?n.createElement(le,{data:l[L.gl.TOP_BLOCKED_COUNT_BY_REGION]||(0,g.A)()}):null))});var Le=l(73300),Pe=l(644659);const Me=()=>{const e=(0,r.useSelector)(Le.jz),t=(0,r.useSelector)(A.zi),l=(0,n.useMemo)(()=>({[_.INTL_NUMBER_FORMAT]:new Intl.NumberFormat(t,{notation:"standard"})}),[t]);return(0,S.A)([(0,C.X)(e)],n.createElement(R.Provider,{value:l},n.createElement(Re,{flowsOverviewFetchParams:e})))},Ge=(0,n.memo)(()=>{const e=(0,r.useSelector)(Pe.t),t=(0,r.useSelector)(o.K7);return(0,r.useSelector)(u.Lw)&&e&&t?n.createElement(Me,null):null});var ge=l(958178),fe=l(388287),pe=l(609950),he=l(707362),He=l(634229),We=l(175165),De=l(213584),we=l(793155),Fe=l(592510),ke=l(259412);const ve=()=>{const e=(0,r.useDispatch)(),t=(0,n.useRef)(!0),l=(0,r.useSelector)(u.uK),E=(0,r.useSelector)(u.dC),a=(0,r.useSelector)((0,n.useMemo)(()=>(0,De.OJ)(l),[l])),c=(0,r.useSelector)(o.Ty);return(0,n.useEffect)(()=>{t.current&&!a&&(e((0,ke.b)({queryParams:E})),c&&e((0,We.mW)()),e((0,we.b)(void 0,{crudCacheStrategy:{type:Fe.e.CACHE}})),e((0,he.MI)()),e((0,He.Sk)()),t.current=!1)},[e,a,c,E]),null};var Ue=l(64741),be=l(429252),ye=l.n(be),Be=l(165126),xe=l(860765),ze=l(398417),$e=l(127041),Ye=l(371715),Je=l(222723),Ke=l(648410);const Ve={leading:!0},Xe=()=>{const e=(0,r.useDispatch)(),t=(0,r.useSelector)(u.uK),l=(0,r.useSelector)((0,n.useMemo)(()=>(0,De.gg)(t),[t])),a=(0,r.useSelector)(u.cJ),o=(0,r.useSelector)(u.GD),c=(0,r.useSelector)((0,n.useMemo)(()=>(0,De.xV)(t),[t])),i=(0,r.useSelector)(u.zB),{tablePresets:m}=(0,r.useSelector)(E.Gm),N=(0,r.useSelector)(Ke.it),I=(0,n.useMemo)(()=>V.H.FLOWS===N,[N]),{rowsPerPage:O}=(0,n.useMemo)(()=>m[i],[m,i]),T=(0,n.useCallback)(t=>{(0,r.batch)(()=>{I&&e((0,K.K5)()),e((0,Ye.lB)((0,Je.f)(t))),e((0,s.M2)(xe.B)),e((0,$e.Y)({data:{...t,[b.DU.PAGE_NUMBER]:xe.B}}))})},[e,I]),_=(0,n.useMemo)(()=>(0,Ue.A)(T,1500,Ve),[T]),C=(0,n.useCallback)((t,l)=>{e((0,$e.Y)({data:{...t,[b.DU.PAGE_NUMBER]:l}}))},[e]),S=(0,n.useRef)(t),A=ye()((0,Be.A)(S.current,b.DU.PAGE_NUMBER),(0,Be.A)(t,b.DU.PAGE_NUMBER));return(0,n.useEffect)(()=>{o?(e((0,s.AL)(!1)),_(t)):A||(e((0,s.M2)(xe.B)),S.current=t,_(t))},[e,_,t,A,o]),(0,n.useEffect)(()=>{const e=(0,ze.G0)(a,O);(0,ze.Oi)({isNextPageUnloaded:(0,ze.$z)(c,e),allPagesLoaded:l,isSearchApplied:!1,areParamsEqual:A})&&C(t,e)},[C,O,A,l,t,c,e,a]),null},Ze=(0,N.A)(I.A)`
  width: 100%;
  height: 100%;
  overflow: hidden;
`;var je=l(905410),qe=l(249304),Qe=l(42222);const et=e=>e,tt=({header:{id:e}})=>Qe.rs[e](e),lt=e=>Qe.E1[e],nt=({column:{id:e},getValue:t})=>Qe.Iq[e](t()),rt=Qe.WP.map(e=>({id:e,accessorFn:et,header:tt,cell:nt,...lt(e),enableResizing:!0,enableSorting:!1})),Et="FLOWS_TABLE_WRAPPER_CLASSNAME",at="FLOWS_TABLE_HEADER_CLASSNAME",ot="FLOWS_TABLE_ROW_CLASSNAME",ct={wrapperFlexProps:{padding:"0px"},rowOptions:[{value:25,default:!1},{value:50,default:!1},{value:100,default:!0}]},it={columns:rt,wrapperClassName:Et,headerClassName:at,rowClassName:ot,stickyHeader:!0},st=(0,N.A)(I.A)`
  width: 100%;
  height: 100%;
  overflow: auto;
  flex-direction: column;
  position: relative;
  .${Et} {
    width: 100%;
  }
  .${at} {
    > tr {
      > th {
        height: 24px !important;
        > div {
          height: 24px !important;
        }
        padding: 0 ${O.kc};
      }
    }
  }
  .${ot} {
    height: 24px !important;
    > td {
      padding: 0 ${O.kc};
      > div {
        white-space: pre-line;
      }
    }
  }
`,mt=(0,N.A)(I.A,{shouldForwardProp:e=>"flowsLoading"!==e})`
  width: 100%;
  position: sticky;
  left: 0;
  right: 0;
  top: ${({flowsLoading:e})=>e?"5%":O.tr};
`,ut=(0,N.A)(I.A)`
  width: 100%;
  flex-direction: column;
  gap: ${O.YC};
`;var Nt;!function(e){e.TITLE="title",e.DESCRIPTION="description",e.FILTER_DESCRIPTION="filterDescription",e.COLUMNS_DESCRIPTION="columnsDescription"}(Nt||(Nt={}));const It={[i.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"},[i.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"},[i.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"},[i.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"}},Ot=(0,n.memo)(()=>{const e=(0,r.useDispatch)(),t=(0,r.useSelector)(u.zB),l=(0,n.useCallback)(()=>{e((0,s.jo)(c.RI[t]))},[e,t]);return n.createElement(ut,null,n.createElement(H.A,{color:"text-1",size:"medium",weight:"bold"},n.createElement(U.sA,{id:"COMMON_NO_MATCH"})),n.createElement(H.A,{color:"text-2",size:"medium"},n.createElement(U.sA,{id:It[t][Nt.COLUMNS_DESCRIPTION],values:{resetLink:n.createElement(X.A,{type:"button",onClick:l,variant:"inline"},n.createElement(U.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})))});var Tt,_t=l(256856),Ct=l(23797),St=l(731183),At=l(457311),dt=l(602021),Rt=l(316144),Lt=l(52361),Pt=l(532419),Mt=l(302167),Gt=l(34683),gt=l(995812),ft=l(232819),pt=l(171073),ht=l(53648);!function(e){e.LOW="low",e.HIGH="high",e.ENTERPRISE="ENTERPRISE"}(Tt||(Tt={}));const Ht="EMPTY_FLOWS_DONUT_TITLE_CLASSNAME",Wt="EMPTY_FLOWS_DONUT_DESCRIPTION_CLASSNAME",Dt={[ht._.BOTCC]:{[Tt.LOW]:1,[Tt.HIGH]:1,[Tt.ENTERPRISE]:1},[ht._.EMERGING_WORM]:{[Tt.LOW]:10,[Tt.HIGH]:10,[Tt.ENTERPRISE]:13},[ht._.EMERGING_MALWARE]:{[Tt.LOW]:17803,[Tt.HIGH]:17803,[Tt.ENTERPRISE]:30593},[ht._.EMERGING_MOBILE]:{[Tt.LOW]:1699,[Tt.HIGH]:1699,[Tt.ENTERPRISE]:5249},[ht._.EMERGING_P2P]:{[Tt.LOW]:87,[Tt.HIGH]:87,[Tt.ENTERPRISE]:89},[ht._.TOR]:{[Tt.LOW]:995,[Tt.HIGH]:995,[Tt.ENTERPRISE]:995},[ht._.EMERGING_EXPLOIT]:{[Tt.LOW]:1634,[Tt.HIGH]:1634,[Tt.ENTERPRISE]:1031},[ht._.EMERGING_SHELLCODE]:{[Tt.LOW]:59,[Tt.HIGH]:59,[Tt.ENTERPRISE]:59},[ht._.EMERGING_DOS]:{[Tt.LOW]:59,[Tt.HIGH]:59,[Tt.ENTERPRISE]:80},[ht._.EMERGING_ATTACK_RESPONSE]:{[Tt.LOW]:652,[Tt.HIGH]:652,[Tt.ENTERPRISE]:788},[ht._.EMERGING_SCAN]:{[Tt.LOW]:293,[Tt.HIGH]:293,[Tt.ENTERPRISE]:350},[ht._.EMERGING_RPC]:{[Tt.LOW]:83,[Tt.HIGH]:83,[Tt.ENTERPRISE]:83},[ht._.EMERGING_ACTIVEX]:{[Tt.LOW]:182,[Tt.HIGH]:182,[Tt.ENTERPRISE]:234},[ht._.EMERGING_DNS]:{[Tt.LOW]:21,[Tt.HIGH]:21,[Tt.ENTERPRISE]:24},[ht._.EMERGING_GAMES]:{[Tt.LOW]:24,[Tt.HIGH]:24,[Tt.ENTERPRISE]:31},[ht._.EMERGING_SQL]:{[Tt.LOW]:191,[Tt.HIGH]:191,[Tt.ENTERPRISE]:191},[ht._.EMERGING_USERAGENT]:{[Tt.LOW]:289,[Tt.HIGH]:289,[Tt.ENTERPRISE]:445},[ht._.EMERGING_WEBAPPS]:{[Tt.LOW]:5041,[Tt.HIGH]:5041,[Tt.ENTERPRISE]:5256},[ht._.EMERGING_WEBCLIENT]:{[Tt.LOW]:500,[Tt.HIGH]:500,[Tt.ENTERPRISE]:1253},[ht._.EMERGING_WEBSERVER]:{[Tt.LOW]:672,[Tt.HIGH]:672,[Tt.ENTERPRISE]:726},[ht._.CIARMY]:{[Tt.LOW]:100,[Tt.HIGH]:100,[Tt.ENTERPRISE]:100},[ht._.COMPROMISED]:{[Tt.LOW]:24,[Tt.HIGH]:24,[Tt.ENTERPRISE]:24},[ht._.DSHIELD]:{[Tt.LOW]:1,[Tt.HIGH]:1,[Tt.ENTERPRISE]:1},[ht._.EMERGING_FTP]:{[Tt.LOW]:58,[Tt.HIGH]:58,[Tt.ENTERPRISE]:58},[ht._.EMERGING_ICMP]:{[Tt.LOW]:0,[Tt.HIGH]:0,[Tt.ENTERPRISE]:0},[ht._.EMERGING_IMAP]:{[Tt.LOW]:17,[Tt.HIGH]:17,[Tt.ENTERPRISE]:17},[ht._.EMERGING_MISC]:{[Tt.LOW]:21,[Tt.HIGH]:21,[Tt.ENTERPRISE]:21},[ht._.EMERGING_NETBIOS]:{[Tt.LOW]:392,[Tt.HIGH]:392,[Tt.ENTERPRISE]:489},[ht._.EMERGING_POP3]:{[Tt.LOW]:9,[Tt.HIGH]:9,[Tt.ENTERPRISE]:9},[ht._.EMERGING_SMTP]:{[Tt.LOW]:17,[Tt.HIGH]:17,[Tt.ENTERPRISE]:17},[ht._.EMERGING_SNMP]:{[Tt.LOW]:16,[Tt.HIGH]:16,[Tt.ENTERPRISE]:20},[ht._.EMERGING_TELNET]:{[Tt.LOW]:8,[Tt.HIGH]:8,[Tt.ENTERPRISE]:8},[ht._.EMERGING_TFTP]:{[Tt.LOW]:13,[Tt.HIGH]:13,[Tt.ENTERPRISE]:13},[ht._.EMERGING_VOIP]:{[Tt.LOW]:16,[Tt.HIGH]:16,[Tt.ENTERPRISE]:16},[ht._.DARKWEB]:{[Tt.LOW]:0,[Tt.HIGH]:0,[Tt.ENTERPRISE]:0},[ht._.MALICIOUS_HOST]:{[Tt.LOW]:0,[Tt.HIGH]:0,[Tt.ENTERPRISE]:0},[ht._.EXPLOIT_KIT]:{[Tt.LOW]:0,[Tt.HIGH]:852,[Tt.ENTERPRISE]:2102},[ht._.ADWARE_PUP]:{[Tt.LOW]:0,[Tt.HIGH]:927,[Tt.ENTERPRISE]:1651},[ht._.BOTCC_PORTGROUPED]:{[Tt.LOW]:0,[Tt.HIGH]:0,[Tt.ENTERPRISE]:0},[ht._.PHISHING]:{[Tt.LOW]:0,[Tt.HIGH]:3383,[Tt.ENTERPRISE]:11465},[ht._.THREATVIEW_CS_C2]:{[Tt.LOW]:0,[Tt.HIGH]:17,[Tt.ENTERPRISE]:17},[ht._.THREE_CORESEC]:{[Tt.LOW]:0,[Tt.HIGH]:9,[Tt.ENTERPRISE]:9},[ht._.CHAT]:{[Tt.LOW]:11,[Tt.HIGH]:67,[Tt.ENTERPRISE]:67},[ht._.COINMINER]:{[Tt.LOW]:0,[Tt.HIGH]:29,[Tt.ENTERPRISE]:47},[ht._.CURRENT_EVENTS]:{[Tt.LOW]:0,[Tt.HIGH]:56,[Tt.ENTERPRISE]:58},[ht._.DROP]:{[Tt.LOW]:0,[Tt.HIGH]:55,[Tt.ENTERPRISE]:55},[ht._.INAPPROPRIATE]:{[Tt.LOW]:0,[Tt.HIGH]:0,[Tt.ENTERPRISE]:1},[ht._.JA3]:{[Tt.LOW]:0,[Tt.HIGH]:102,[Tt.ENTERPRISE]:112},[ht._.SCADA]:{[Tt.LOW]:0,[Tt.HIGH]:90,[Tt.ENTERPRISE]:290},[ht._.INFO]:{[Tt.LOW]:14,[Tt.HIGH]:7016,[Tt.ENTERPRISE]:7175},[ht._.ICMP_INFO]:{[Tt.LOW]:0,[Tt.HIGH]:14,[Tt.ENTERPRISE]:14},[ht._.HUNTING]:{[Tt.LOW]:33,[Tt.HIGH]:15136,[Tt.ENTERPRISE]:26278},[ht._.POLICY]:{[Tt.LOW]:28,[Tt.HIGH]:1291,[Tt.ENTERPRISE]:1569}},wt=(0,N.A)(I.A)`
  flex-direction: column;
  background: ${({theme:{themeName:e}})=>W.Ay[`desktop-color-neutral-01-${e}`]};
  gap: ${O.Ln};
  padding: ${O.xO};
  width: 600px;
  height: fit-content;
  position: relative;
  left: 0;
  right: 0;
`,Ft=(0,N.A)(I.A)`
  align-items: center;
  gap: ${O.YC};
`,kt=(0,N.A)(I.A)`
  gap: ${O.S2};
  .${Ht}, .${Wt} {
    font-size: 12px;
  }
  align-items: center;
`,vt=(0,N.A)(I.A)`
  gap: ${O.kc};
  flex-direction: column;
  width: 100%;
`,Ut=(0,N.A)(I.A)`
  justify-content: space-between;
  width: 100%;
`,bt=(0,N.A)(I.A)`
  gap: ${O.kc};
  align-items: center;
  width: 50%;
`,yt=(0,N.A)(I.A)`
  min-width: 6px;
  min-height: 6px;
  border-radius: 1px;
`,Bt=(0,N.A)(I.A)`
  width: 160px;
  height: 16px;
  background-color: ${({theme:{themeName:e}})=>W.Ay[`desktop-color-neutral-02-${e}`]};
  border-radius: ${W.Ay["desktop-radius-base"]};
`,xt=(0,N.A)(I.A)`
  width: 100%;
  gap: ${O.S2};
`,zt=(0,N.A)(I.A)`
  width: 50%;
  justify-content: space-between;
  background: ${({theme:{themeName:e}})=>W.Ay[`desktop-color-neutral-00-${e}`]};
  padding: ${O.YC} ${O.kc};
`,$t=(0,N.A)(I.A)`
  width: 100%;
  flex-direction: column;
  gap: ${O.kc};
`,Yt=(0,N.A)(I.A)`
  width: 100%;
  justify-content: space-between;
`,Jt=e=>({nameId:t,signatures:l})=>n.createElement($t,null,n.createElement(Yt,null,n.createElement(U.sA,{id:t})),n.createElement(Yt,null,n.createElement(U.sA,{id:"FLOWS_SIGNATURES"}),n.createElement("span",null,e.format(l)))),Kt=()=>{const e=(0,r.useDispatch)(),{formatMessage:t}=(0,U.tz)(),{themeName:l}=(0,D.u)(),a=(0,r.useSelector)(A.zi),o=(0,r.useSelector)(E.BQ),c=(0,r.useSelector)(dt.hq),{rule_count:i=0,update_time:s,is_activating:m}=(0,r.useSelector)(Pt.Q2),{memory_optimized:u}=(0,r.useSelector)(Mt.y4),N=(0,r.useSelector)(ft.M),I=(0,r.useSelector)(Pt.$x),O=(0,Rt.Ad)(I),T=(0,n.useMemo)(()=>O?Tt.ENTERPRISE:gt.J8.includes(I)?u?Tt.LOW:Tt.HIGH:void 0,[O,I,u]),{numberFormat:_,dateTimeFormat:C}=(0,n.useMemo)(()=>({numberFormat:new Intl.NumberFormat(a,{notation:"standard"}),dateTimeFormat:new Intl.DateTimeFormat(a,{hourCycle:o,timeZone:c,day:"numeric",month:"short",hour:"numeric",minute:"numeric"})}),[a,o,c]),{donutItems:d,listItems:R}=(0,n.useMemo)(()=>Gt.J.reduce((e,t,r)=>{const E=m?W.Ay[`desktop-color-neutral-05-${l}`]:(0,Lt.f)((0,Lt.B)(r),4),a=N.filter(({category_group:e})=>e===t).reduce((e,{value:t})=>e+(Dt[t][T]||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(bt,{key:t},n.createElement(yt,{background:E}),m?n.createElement(Bt,null):n.createElement(H.A,{size:"small",color:"text-3"},n.createElement(U.sA,{id:Gt.h[t]})))),e},{donutItems:[],listItems:[]}),[i,N,l,m,T]),L=n.createElement(U.sA,{id:O?"COMMON_CYBERSECURE_ENTERPRISE_FULL_NAME":"COMMON_CYBERSECURE_ENHANCED_FULL_NAME"});return(0,n.useEffect)(()=>{e((0,pt.Uc)(void 0,{crudCacheStrategy:{type:Fe.e.CACHE}}))},[e]),(0,S.A)([(0,At.Uc)(void 0,{crudCacheStrategy:{type:Fe.e.CACHE}}),(0,St.W)(void 0,{crudCacheStrategy:{type:Fe.e.CACHE}})],n.createElement(wt,null,n.createElement(Ft,null,n.createElement(_t.A,{size:"original",isActive:!0}),n.createElement(H.A,{size:"medium",color:"text-2"},m?L:n.createElement(U.sA,{id:"FLOWS_NO_THREATS_DETECTED_BY_CYBERSECURE",values:{subscription:L}}))),n.createElement(kt,null,n.createElement(Ct.A,{items:d,renderTooltipMessage:Jt(_),title:m?`${t({id:"COMMON_ACTIVATING"})}...`:t({id:"COMMON_TOTAL_SIGNATURES"}),description:m?void 0:_.format(i),size:130,titleClassName:Ht,descriptionClassName:Wt,portalTooltip:!0}),n.createElement(vt,null,R.map((e,t,l)=>t%2==0?n.createElement(Ut,{key:d[t].id},e,l[t+1]):null))),n.createElement(xt,null,n.createElement(zt,null,n.createElement(H.A,{size:"small",color:"text-2"},n.createElement(U.sA,{id:"COMMON_LAST_UPDATED"})),n.createElement(H.A,{size:"small",color:"text-3"},m?n.createElement(U.sA,{id:"COMMON_UPDATING"}):s?C.format(s):n.createElement(U.sA,{id:"COMMON_UNKNOWN"}))))))};var Vt=l(503793);const Xt=(0,n.memo)(({flowsTab:e})=>n.createElement(ut,null,n.createElement(H.A,{color:"text-1",size:"medium",weight:"bold"},n.createElement(U.sA,{id:It[e][Nt.TITLE]})),n.createElement(H.A,{color:"text-2",size:"medium"},n.createElement(U.sA,{id:It[e][Nt.DESCRIPTION]}))));var Zt=l(95636);const jt=(0,n.memo)(({flowsTab:e})=>{const t=(0,r.useDispatch)(),l=(0,r.useSelector)(u.bq),E=(0,n.useCallback)(()=>{t((0,s.z7)((0,Be.A)(l,Zt.x)))},[t,l]);return n.createElement(ut,null,n.createElement(H.A,{color:"text-1",size:"medium",weight:"bold"},n.createElement(U.sA,{id:"COMMON_NO_MATCH"})),n.createElement(H.A,{color:"text-2",size:"medium"},n.createElement(U.sA,{id:It[e][Nt.FILTER_DESCRIPTION],values:{resetLink:n.createElement(X.A,{type:"button",onClick:E,variant:"inline"},n.createElement(U.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})))}),qt=(0,n.memo)(()=>{const e=(0,r.useSelector)(u.zB),t=(0,r.useSelector)(u._S),{isSubscribed:l}=(0,Vt.g)(),E=t?Xt:jt;switch(e){case i.L1.THREATS:return l&&t?n.createElement(Kt,null):n.createElement(E,{flowsTab:e});case i.L1.ALL_FLOWS:case i.L1.BLOCKED:case i.L1.NEXT_AI:default:return n.createElement(E,{flowsTab:e})}});var Qt=l(749177),el=l(329991),tl=l(604482);const ll=(0,n.memo)(()=>n.createElement(el.A,{...(0,Qt.A)(tl.g1.INSIGHTS)?{position:"relative",left:`-${O.Tj}`}:{}})),nl=(0,n.memo)(({flowsLoading:e,hasFlowsColumns:t})=>n.createElement(mt,{flowsLoading:e},e?n.createElement(ll,null):t?n.createElement(qt,null):n.createElement(Ot,null)));var rl=l(775699),El=l(415246);const al=()=>{const e=(0,r.useDispatch)(),t=(0,r.useSelector)(u.zB),{tablePresets:l}=(0,r.useSelector)(E.Gm),{sizes:a}=(0,n.useMemo)(()=>l[t],[l,t]),o=(0,n.useCallback)(n=>{e((0,rl.dR)({[El.lR.TABLE_PRESETS]:{...l,[t]:{...l[t],sizes:n}}}))},[e,t,l]),c=(0,n.useMemo)(()=>(0,Ue.A)(o,500),[o]);return[a,(0,n.useCallback)(e=>{c(e)},[c])]},ol=()=>{const e=(0,r.useSelector)(u.uK);return{flows:(0,r.useSelector)((0,n.useMemo)(()=>(0,De.WD)(e),[e])),flowsTotalElements:(0,r.useSelector)((0,n.useMemo)(()=>(0,De.tE)(e),[e])),flowsOrMore:(0,r.useSelector)((0,n.useMemo)(()=>(0,De.QI)(e),[e])),flowsLoading:(0,r.useSelector)((0,n.useMemo)(()=>(0,De.OJ)(e),[e]))}};var cl=l(666638),il=l(816271);const sl=({flows:e,flowsPageNumber:t,columnVisibility:l,initialColumnSize:E,onColumnSizingChange:a})=>{const o=(0,r.useDispatch)(),c=(0,n.useCallback)(e=>{o((0,K.XP)({type:V.H.FLOWS,id:e[b.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)(xe.B))},[o]),u=(0,il.A)([V.H.FLOWS]);return{onRenderTable:(0,n.useCallback)(({pageNumber:t,rowsPerPage:r})=>n.createElement(cl.A,{data:e,columnVisibility:l,onRowClick:c,pageSize:r,pageIndex:t,activeRows:u,initialColumnSize:E,onColumnSizingChange:a,...it}),[e,u,l,E,a,c]),onPageChanged:i,onRowsChanged:m}},ml=(0,n.memo)(()=>{const e=(0,r.useSelector)(u.bB),t=(0,r.useSelector)(u.cJ),l=(0,r.useSelector)(u.Zm),{flows:E,flowsTotalElements:a,flowsOrMore:o,flowsLoading:c}=ol(),i=(0,n.useMemo)(()=>Qe.WP.reduce((t,l)=>(t[l]=e.includes(l),t),{}),[e]),[s,m]=al(),{onRenderTable:N,onPageChanged:I,onRowsChanged:O}=sl({flows:E,flowsPageNumber:t,columnVisibility:i,initialColumnSize:s,onColumnSizingChange:m}),T=(0,n.useCallback)(t=>n.createElement(st,null,N(t),E.length&&e.length?null:n.createElement(nl,{flowsLoading:c,hasFlowsColumns:Boolean(e.length)})),[N,c,E.length,e.length]);return n.createElement(je.A,{...ct,section:"COMMON_FLOWS",tableType:qe.l.FLOWS,itemCount:a,unknownCount:o,onRenderTable:T,onPageChanged:I,onRowsChanged:O,pageNumber:t,keepPaginationWhileLoading:Boolean(l)})}),ul=(0,n.memo)(()=>(ve(),Xe(),n.createElement(Ze,null,n.createElement(ml,null)))),Nl=(0,n.memo)(()=>{const e=(0,r.useSelector)(u.FW),t=(0,r.useSelector)(Pe.t),l=(0,r.useSelector)(ge.o);return e?t?n.createElement(fe.A,null):l?n.createElement(pe.A,null):n.createElement(ul,null):n.createElement(ul,null)}),Il=(0,n.memo)(()=>n.createElement(T,null,n.createElement(Ge,null),n.createElement(Nl,null)));var Ol=l(153171);const Tl=(0,n.memo)(()=>{const e=(0,r.useDispatch)(),{areAllFlowsSupported:t,areAllFlowsEnabled:l}=(0,a.A)(),N=(0,r.useSelector)(u.x7),I=(0,r.useSelector)(o.Ty),O=(0,r.useSelector)(u.zB),{tablePresets:T}=(0,r.useSelector)(E.Gm),_=(0,n.useCallback)(e=>!!I||![Ol.u.FILE_NAME,Ol.u.FILE_PATH,Ol.u.FILE_SIZE,Ol.u.FILE_TYPE,Ol.u.URL,Ol.u.QUERY].includes(e),[I]);return(0,n.useEffect)(()=>{if(!N){let n=[];const E=[],a=Qe.WP.filter(_),o={[m.Y.AVAILABLE_COLUMNS]:a};if(E.push((0,s.gG)(a)),t&&l){const{columns:e}=T[O];n=(e.length?e:c.RI[O]).filter(_),o[m.Y.COLUMNS]=n,E.push((0,s.jo)(n))}else{const e=i.L1.BLOCKED,{columns:t}=T[e];n=(t.length?t:c.RI[e]).filter(_),o[m.Y.TAB]=e,o[m.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))}},[_,N,e,T,O,t,l,I]),N?n.createElement(Il,null):null}),_l=()=>n.createElement(Tl,null)},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]}}]);