"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:()=>Tl});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(318686),ae=l(455155),oe=l(903216),ce=l(15095),ie=l(627440),se=l(670180),me=l(260411),ue=l(120205),Ne=l(767974),Ie=l(739177);const Oe=Ie.i8[Ie.Ut];const Te=function({data:e}){const t=(0,r.useDispatch)(),l=(0,ce.A)(`${ie.VO.INSIGHTS}/${se.H.ACTIVITY}`),E=(0,ne.W6)(),a=(0,n.useCallback)(()=>{t((0,me.P7)(ue.f.CLIENTS)),Oe&&t((0,me.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,me.yJ)([{[Ne.wA.CAT]:e[L.YF.CATEGORY_ID],[Ne.wA.APP]:e[L.YF.APPLICATION_ID]}])),t((0,me.P7)(ue.f.APPS)),Oe&&t((0,me.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=Ee.Z6[(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(ae.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,oe.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);const Ke={leading:!0},Ve=()=>{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),{rowsPerPage:N}=(0,n.useMemo)(()=>m[i],[m,i]),I=(0,n.useCallback)(t=>{(0,r.batch)(()=>{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]),O=(0,n.useMemo)(()=>(0,Ue.A)(I,1500,Ke),[I]),T=(0,n.useCallback)((t,l)=>{e((0,$e.Y)({data:{...t,[b.DU.PAGE_NUMBER]:l}}))},[e]),_=(0,n.useRef)(t),C=ye()((0,Be.A)(_.current,b.DU.PAGE_NUMBER),(0,Be.A)(t,b.DU.PAGE_NUMBER));return(0,n.useEffect)(()=>{o?(e((0,s.AL)(!1)),O(t)):C||(e((0,s.M2)(xe.B)),_.current=t,O(t))},[e,O,t,C,o]),(0,n.useEffect)(()=>{const e=(0,ze.G0)(a,N);(0,ze.Oi)({isNextPageUnloaded:(0,ze.$z)(c,e),allPagesLoaded:l,isSearchApplied:!1,areParamsEqual:C})&&T(t,e)},[T,N,C,l,t,c,e,a]),null},Xe=(0,N.A)(I.A)`
  width: 100%;
  height: 100%;
  overflow: hidden;
`;var Ze=l(905410),je=l(249304),qe=l(889188);const Qe=e=>e,et=({header:{id:e}})=>qe.rs[e](e),tt=e=>qe.E1[e],lt=({column:{id:e},getValue:t})=>qe.Iq[e](t()),nt=qe.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,N.A)(I.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 ${O.kc};
      }
    }
  }
  .${at} {
    height: 24px !important;
    > td {
      padding: 0 ${O.kc};
      > div {
        white-space: pre-line;
      }
    }
  }
`,st=(0,N.A)(I.A,{shouldForwardProp:e=>"flowsLoading"!==e})`
  width: 100%;
  position: sticky;
  left: 0;
  right: 0;
  top: ${({flowsLoading:e})=>e?"5":"10"}%;
`,mt=(0,N.A)(I.A)`
  width: 100%;
  flex-direction: column;
  gap: ${O.YC};
  align-items: center;
`;var ut;!function(e){e.TITLE="title",e.DESCRIPTION="description",e.FILTER_DESCRIPTION="filterDescription",e.COLUMNS_DESCRIPTION="columnsDescription"}(ut||(ut={}));const Nt={[i.L1.ALL_FLOWS]:{[ut.TITLE]:"FLOWS_NO_FLOWS_TITLE",[ut.DESCRIPTION]:"FLOWS_NO_FLOWS_DESCRIPTION",[ut.FILTER_DESCRIPTION]:"FLOWS_NO_FLOWS_FILTER_DESCRIPTION",[ut.COLUMNS_DESCRIPTION]:"FLOWS_NO_FLOWS_COLUMNS_DESCRIPTION"},[i.L1.BLOCKED]:{[ut.TITLE]:"FLOWS_NO_BLOCKED_FLOWS_TITLE",[ut.DESCRIPTION]:"FLOWS_NO_BLOCKED_FLOWS_DESCRIPTION",[ut.FILTER_DESCRIPTION]:"FLOWS_NO_BLOCKED_FLOWS_FILTER_DESCRIPTION",[ut.COLUMNS_DESCRIPTION]:"FLOWS_NO_BLOCKED_FLOWS_COLUMNS_DESCRIPTION"},[i.L1.THREATS]:{[ut.TITLE]:"FLOWS_NO_THREATS_TITLE",[ut.DESCRIPTION]:"FLOWS_NO_THREATS_DESCRIPTION",[ut.FILTER_DESCRIPTION]:"FLOWS_NO_THREATS_FILTER_DESCRIPTION",[ut.COLUMNS_DESCRIPTION]:"FLOWS_NO_THREATS_COLUMNS_DESCRIPTION"},[i.L1.NEXT_AI]:{[ut.TITLE]:"FLOWS_NO_NEXT_AI_FLOWS_TITLE",[ut.DESCRIPTION]:"FLOWS_NO_NEXT_AI_DESCRIPTION",[ut.FILTER_DESCRIPTION]:"FLOWS_NO_NEXT_AI_FLOWS_FILTER_DESCRIPTION",[ut.COLUMNS_DESCRIPTION]:"FLOWS_NO_NEXT_AI_FLOWS_COLUMNS_DESCRIPTION"}},It=(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(mt,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:Nt[t][ut.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 Ot,Tt=l(256856),_t=l(23797),Ct=l(731183),St=l(457311),At=l(602021),dt=l(316144),Rt=l(52361),Lt=l(532419),Pt=l(302167),Mt=l(34683),Gt=l(995812),gt=l(232819),ft=l(171073),pt=l(53648);!function(e){e.LOW="low",e.HIGH="high",e.ENTERPRISE="ENTERPRISE"}(Ot||(Ot={}));const ht="EMPTY_FLOWS_DONUT_TITLE_CLASSNAME",Ht="EMPTY_FLOWS_DONUT_DESCRIPTION_CLASSNAME",Wt={[pt._.BOTCC]:{[Ot.LOW]:1,[Ot.HIGH]:1,[Ot.ENTERPRISE]:1},[pt._.EMERGING_WORM]:{[Ot.LOW]:10,[Ot.HIGH]:10,[Ot.ENTERPRISE]:13},[pt._.EMERGING_MALWARE]:{[Ot.LOW]:17803,[Ot.HIGH]:17803,[Ot.ENTERPRISE]:30593},[pt._.EMERGING_MOBILE]:{[Ot.LOW]:1699,[Ot.HIGH]:1699,[Ot.ENTERPRISE]:5249},[pt._.EMERGING_P2P]:{[Ot.LOW]:87,[Ot.HIGH]:87,[Ot.ENTERPRISE]:89},[pt._.TOR]:{[Ot.LOW]:995,[Ot.HIGH]:995,[Ot.ENTERPRISE]:995},[pt._.EMERGING_EXPLOIT]:{[Ot.LOW]:1634,[Ot.HIGH]:1634,[Ot.ENTERPRISE]:1031},[pt._.EMERGING_SHELLCODE]:{[Ot.LOW]:59,[Ot.HIGH]:59,[Ot.ENTERPRISE]:59},[pt._.EMERGING_DOS]:{[Ot.LOW]:59,[Ot.HIGH]:59,[Ot.ENTERPRISE]:80},[pt._.EMERGING_ATTACK_RESPONSE]:{[Ot.LOW]:652,[Ot.HIGH]:652,[Ot.ENTERPRISE]:788},[pt._.EMERGING_SCAN]:{[Ot.LOW]:293,[Ot.HIGH]:293,[Ot.ENTERPRISE]:350},[pt._.EMERGING_RPC]:{[Ot.LOW]:83,[Ot.HIGH]:83,[Ot.ENTERPRISE]:83},[pt._.EMERGING_ACTIVEX]:{[Ot.LOW]:182,[Ot.HIGH]:182,[Ot.ENTERPRISE]:234},[pt._.EMERGING_DNS]:{[Ot.LOW]:21,[Ot.HIGH]:21,[Ot.ENTERPRISE]:24},[pt._.EMERGING_GAMES]:{[Ot.LOW]:24,[Ot.HIGH]:24,[Ot.ENTERPRISE]:31},[pt._.EMERGING_SQL]:{[Ot.LOW]:191,[Ot.HIGH]:191,[Ot.ENTERPRISE]:191},[pt._.EMERGING_USERAGENT]:{[Ot.LOW]:289,[Ot.HIGH]:289,[Ot.ENTERPRISE]:445},[pt._.EMERGING_WEBAPPS]:{[Ot.LOW]:5041,[Ot.HIGH]:5041,[Ot.ENTERPRISE]:5256},[pt._.EMERGING_WEBCLIENT]:{[Ot.LOW]:500,[Ot.HIGH]:500,[Ot.ENTERPRISE]:1253},[pt._.EMERGING_WEBSERVER]:{[Ot.LOW]:672,[Ot.HIGH]:672,[Ot.ENTERPRISE]:726},[pt._.CIARMY]:{[Ot.LOW]:100,[Ot.HIGH]:100,[Ot.ENTERPRISE]:100},[pt._.COMPROMISED]:{[Ot.LOW]:24,[Ot.HIGH]:24,[Ot.ENTERPRISE]:24},[pt._.DSHIELD]:{[Ot.LOW]:1,[Ot.HIGH]:1,[Ot.ENTERPRISE]:1},[pt._.EMERGING_FTP]:{[Ot.LOW]:58,[Ot.HIGH]:58,[Ot.ENTERPRISE]:58},[pt._.EMERGING_ICMP]:{[Ot.LOW]:0,[Ot.HIGH]:0,[Ot.ENTERPRISE]:0},[pt._.EMERGING_IMAP]:{[Ot.LOW]:17,[Ot.HIGH]:17,[Ot.ENTERPRISE]:17},[pt._.EMERGING_MISC]:{[Ot.LOW]:21,[Ot.HIGH]:21,[Ot.ENTERPRISE]:21},[pt._.EMERGING_NETBIOS]:{[Ot.LOW]:392,[Ot.HIGH]:392,[Ot.ENTERPRISE]:489},[pt._.EMERGING_POP3]:{[Ot.LOW]:9,[Ot.HIGH]:9,[Ot.ENTERPRISE]:9},[pt._.EMERGING_SMTP]:{[Ot.LOW]:17,[Ot.HIGH]:17,[Ot.ENTERPRISE]:17},[pt._.EMERGING_SNMP]:{[Ot.LOW]:16,[Ot.HIGH]:16,[Ot.ENTERPRISE]:20},[pt._.EMERGING_TELNET]:{[Ot.LOW]:8,[Ot.HIGH]:8,[Ot.ENTERPRISE]:8},[pt._.EMERGING_TFTP]:{[Ot.LOW]:13,[Ot.HIGH]:13,[Ot.ENTERPRISE]:13},[pt._.EMERGING_VOIP]:{[Ot.LOW]:16,[Ot.HIGH]:16,[Ot.ENTERPRISE]:16},[pt._.DARKWEB]:{[Ot.LOW]:0,[Ot.HIGH]:0,[Ot.ENTERPRISE]:0},[pt._.MALICIOUS_HOST]:{[Ot.LOW]:0,[Ot.HIGH]:0,[Ot.ENTERPRISE]:0},[pt._.EXPLOIT_KIT]:{[Ot.LOW]:0,[Ot.HIGH]:852,[Ot.ENTERPRISE]:2102},[pt._.ADWARE_PUP]:{[Ot.LOW]:0,[Ot.HIGH]:927,[Ot.ENTERPRISE]:1651},[pt._.BOTCC_PORTGROUPED]:{[Ot.LOW]:0,[Ot.HIGH]:0,[Ot.ENTERPRISE]:0},[pt._.PHISHING]:{[Ot.LOW]:0,[Ot.HIGH]:3383,[Ot.ENTERPRISE]:11465},[pt._.THREATVIEW_CS_C2]:{[Ot.LOW]:0,[Ot.HIGH]:17,[Ot.ENTERPRISE]:17},[pt._.THREE_CORESEC]:{[Ot.LOW]:0,[Ot.HIGH]:9,[Ot.ENTERPRISE]:9},[pt._.CHAT]:{[Ot.LOW]:11,[Ot.HIGH]:67,[Ot.ENTERPRISE]:67},[pt._.COINMINER]:{[Ot.LOW]:0,[Ot.HIGH]:29,[Ot.ENTERPRISE]:47},[pt._.CURRENT_EVENTS]:{[Ot.LOW]:0,[Ot.HIGH]:56,[Ot.ENTERPRISE]:58},[pt._.DROP]:{[Ot.LOW]:0,[Ot.HIGH]:55,[Ot.ENTERPRISE]:55},[pt._.INAPPROPRIATE]:{[Ot.LOW]:0,[Ot.HIGH]:0,[Ot.ENTERPRISE]:1},[pt._.JA3]:{[Ot.LOW]:0,[Ot.HIGH]:102,[Ot.ENTERPRISE]:112},[pt._.SCADA]:{[Ot.LOW]:0,[Ot.HIGH]:90,[Ot.ENTERPRISE]:290},[pt._.INFO]:{[Ot.LOW]:14,[Ot.HIGH]:7016,[Ot.ENTERPRISE]:7175},[pt._.ICMP_INFO]:{[Ot.LOW]:0,[Ot.HIGH]:14,[Ot.ENTERPRISE]:14},[pt._.HUNTING]:{[Ot.LOW]:33,[Ot.HIGH]:15136,[Ot.ENTERPRISE]:26278},[pt._.POLICY]:{[Ot.LOW]:28,[Ot.HIGH]:1291,[Ot.ENTERPRISE]:1569}},Dt=(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};
  margin: 0 auto;
  width: 600px;
  height: fit-content;
`,wt=(0,N.A)(I.A)`
  align-items: center;
  gap: ${O.YC};
`,Ft=(0,N.A)(I.A)`
  gap: ${O.S2};
  .${ht}, .${Ht} {
    font-size: 12px;
  }
  align-items: center;
`,kt=(0,N.A)(I.A)`
  gap: ${O.kc};
  flex-direction: column;
  width: 100%;
`,vt=(0,N.A)(I.A)`
  justify-content: space-between;
  width: 100%;
`,Ut=(0,N.A)(I.A)`
  gap: ${O.kc};
  align-items: center;
  width: 50%;
`,bt=(0,N.A)(I.A)`
  min-width: 6px;
  min-height: 6px;
  border-radius: 1px;
`,yt=(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"]};
`,Bt=(0,N.A)(I.A)`
  width: 100%;
  gap: ${O.S2};
`,xt=(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};
`,zt=(0,N.A)(I.A)`
  width: 100%;
  flex-direction: column;
  gap: ${O.kc};
`,$t=(0,N.A)(I.A)`
  width: 100%;
  justify-content: space-between;
`,Yt=e=>({nameId:t,signatures:l})=>n.createElement(zt,null,n.createElement($t,null,n.createElement(U.sA,{id:t})),n.createElement($t,null,n.createElement(U.sA,{id:"FLOWS_SIGNATURES"}),n.createElement("span",null,e.format(l)))),Jt=()=>{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)(At.hq),{rule_count:i=0,update_time:s,is_activating:m}=(0,r.useSelector)(Lt.Q2),{memory_optimized:u}=(0,r.useSelector)(Pt.y4),N=(0,r.useSelector)(gt.M),I=(0,r.useSelector)(Lt.$x),O=(0,dt.Ad)(I),T=(0,n.useMemo)(()=>O?Ot.ENTERPRISE:Gt.J8.includes(I)?u?Ot.LOW:Ot.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)(()=>Mt.J.reduce((e,t,r)=>{const E=m?W.Ay[`desktop-color-neutral-05-${l}`]:(0,Rt.f)((0,Rt.B)(r),4),a=N.filter(({category_group:e})=>e===t).reduce((e,{value:t})=>e+(Wt[t][T]||0),0);return e.donutItems.push({id:t,signatures:a,nameId:Mt.h[t],value:a/i*100,color:E}),e.listItems.push(n.createElement(Ut,{key:t},n.createElement(bt,{background:E}),m?n.createElement(yt,null):n.createElement(H.A,{size:"small",color:"text-3"},n.createElement(U.sA,{id:Mt.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,ft.Uc)(void 0,{crudCacheStrategy:{type:Fe.e.CACHE}}))},[e]),(0,S.A)([(0,St.Uc)(void 0,{crudCacheStrategy:{type:Fe.e.CACHE}}),(0,Ct.W)(void 0,{crudCacheStrategy:{type:Fe.e.CACHE}})],n.createElement(Dt,null,n.createElement(wt,null,n.createElement(Tt.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(Ft,null,n.createElement(_t.A,{items:d,renderTooltipMessage:Yt(_),title:m?`${t({id:"COMMON_ACTIVATING"})}...`:t({id:"COMMON_TOTAL_SIGNATURES"}),description:m?void 0:_.format(i),size:130,titleClassName:ht,descriptionClassName:Ht,portalTooltip:!0}),n.createElement(kt,null,R.map((e,t,l)=>t%2==0?n.createElement(vt,{key:d[t].id},e,l[t+1]):null))),n.createElement(Bt,null,n.createElement(xt,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 Kt=l(503793);const Vt=(0,n.memo)(({flowsTab:e})=>n.createElement(mt,null,n.createElement(H.A,{color:"text-1",size:"medium",weight:"bold"},n.createElement(U.sA,{id:Nt[e][ut.TITLE]})),n.createElement(H.A,{color:"text-2",size:"medium"},n.createElement(U.sA,{id:Nt[e][ut.DESCRIPTION]}))));var Xt=l(95636);const Zt=(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,Xt.x)))},[t,l]);return n.createElement(mt,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:Nt[e][ut.FILTER_DESCRIPTION],values:{resetLink:n.createElement(X.A,{type:"button",onClick:E,variant:"inline"},n.createElement(U.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})))}),jt=(0,n.memo)(()=>{const e=(0,r.useSelector)(u.zB),t=(0,r.useSelector)(u._S),{isSubscribed:l}=(0,Kt.g)(),E=t?Vt:Zt;switch(e){case i.L1.THREATS:return l&&t?n.createElement(Jt,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),Qt=l(329991),el=l(604482);const tl=(0,n.memo)(()=>n.createElement(Qt.A,{...(0,qt.A)(el.g1.INSIGHTS)?{position:"relative",left:`-${O.Tj}`}:{}})),ll=(0,n.memo)(({flowsLoading:e,hasFlowsColumns:t})=>n.createElement(st,{flowsLoading:e},e?n.createElement(tl,null):t?n.createElement(jt,null):n.createElement(It,null)));var nl=l(775699),rl=l(415246);const El=()=>{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,nl.dR)({[rl.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])]},al=()=>{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 ol=l(432589),cl=l(816271);const il=({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,cl.A)([V.H.FLOWS]);return{onRenderTable:(0,n.useCallback)(({pageNumber:t,rowsPerPage:r})=>n.createElement(ol.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}},sl=(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}=al(),i=(0,n.useMemo)(()=>qe.WP.reduce((t,l)=>(t[l]=e.includes(l),t),{}),[e]),[s,m]=El(),{onRenderTable:N,onPageChanged:I,onRowsChanged:O}=il({flows:E,flowsPageNumber:t,columnVisibility:i,initialColumnSize:s,onColumnSizingChange:m}),T=(0,n.useCallback)(t=>n.createElement(it,null,N(t),E.length&&e.length?null:n.createElement(ll,{flowsLoading:c,hasFlowsColumns:Boolean(e.length)})),[N,c,E.length,e.length]);return n.createElement(Ze.A,{...ot,section:"COMMON_FLOWS",tableType:je.l.FLOWS,itemCount:a,unknownCount:o,onRenderTable:T,onPageChanged:I,onRowsChanged:O,pageNumber:t,keepPaginationWhileLoading:Boolean(l)})}),ml=(0,n.memo)(()=>(ve(),Ve(),n.createElement(Xe,null,n.createElement(sl,null)))),ul=(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(ml,null):n.createElement(ml,null)}),Nl=(0,n.memo)(()=>n.createElement(T,null,n.createElement(Ge,null),n.createElement(ul,null)));var Il=l(153171);const Ol=(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||![Il.u.FILE_NAME,Il.u.FILE_PATH,Il.u.FILE_SIZE,Il.u.FILE_TYPE,Il.u.URL,Il.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(Nl,null):null}),Tl=()=>n.createElement(Ol,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]}}]);