"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[57204],{682e3(t,e,n){var O;n.d(e,{L:()=>O}),function(t){t.XS="XS",t.S="S",t.SM="SM",t.M="M",t.ML="ML",t.L="L",t.XL="XL",t.XXL="XXL"}(O||(O={}))},588769(t,e,n){n.d(e,{A:()=>A,G:()=>i});var O=n(682e3);const E={[O.L.XS]:{FROM:0,TO:374},[O.L.S]:{FROM:375,TO:567},[O.L.SM]:{FROM:568,TO:767},[O.L.M]:{FROM:768,TO:1023},[O.L.ML]:{FROM:1024,TO:1199},[O.L.L]:{FROM:1200,TO:1919},[O.L.XL]:{FROM:1920,TO:2559},[O.L.XXL]:{FROM:2560,TO:1/0}},i=600,A={...E,DASHBOARD:{LAYOUT:{MOBILE:"(max-width: 767px)",DESKTOP:"(min-width: 768px)"},CHART:{MOBILE:"(max-width: 1419px)",DESKTOP:"(min-width: 1420px)"},BAND_SELECTOR:{MOBILE:"(max-width: 1119px)",DESKTOP:"(min-width: 1120px)"}},SIDE_NAVIGATION_BREAKPOINT_UP:`(min-width: ${i+1}px)`,SIDE_NAVIGATION_BREAKPOINT_DOWN:`(max-width: ${i}px)`,VIEWPORT_XS:`(max-width: ${E[O.L.XS].TO}px)`,VIEWPORT_S:`(min-width: ${E[O.L.S].FROM}px) and (max-width: ${E[O.L.S].TO}px)`,VIEWPORT_SM:`(min-width: ${E[O.L.SM].FROM}px) and (max-width: ${E[O.L.SM].TO}px)`,VIEWPORT_M:`(min-width: ${E[O.L.M].FROM}px) and (max-width: ${E[O.L.M].TO}px)`,VIEWPORT_ML:`(min-width: ${E[O.L.ML].FROM}px) and (max-width: ${E[O.L.ML].TO}px)`,VIEWPORT_L:`(min-width: ${E[O.L.L].FROM}px) and (max-width: ${E[O.L.L].TO}px)`,VIEWPORT_XL:`(min-width: ${E[O.L.XL].FROM}px) and (max-width: ${E[O.L.XL].TO}px)`,VIEWPORT_XXL:`(min-width: ${E[O.L.XXL].FROM}px)`,VIEWPORT_XS_UP:`(min-width: ${E[O.L.S].FROM}px)`,VIEWPORT_S_UP:`(min-width: ${E[O.L.SM].FROM}px)`,VIEWPORT_SM_UP:`(min-width: ${E[O.L.M].FROM}px)`,VIEWPORT_M_UP:`(min-width: ${E[O.L.ML].FROM}px)`,VIEWPORT_ML_UP:`(min-width: ${E[O.L.L].FROM}px)`,VIEWPORT_L_UP:`(min-width: ${E[O.L.XL].FROM}px)`,VIEWPORT_XL_UP:`(min-width: ${E[O.L.XXL].FROM}px)`,VIEWPORT_S_DOWN:`(max-width: ${E[O.L.S].TO}px)`,VIEWPORT_SM_DOWN:`(max-width: ${E[O.L.SM].TO}px)`,VIEWPORT_M_DOWN:`(max-width: ${E[O.L.M].TO}px)`,VIEWPORT_ML_DOWN:`(max-width: ${E[O.L.ML].TO}px)`,VIEWPORT_L_DOWN:`(max-width: ${E[O.L.L].TO}px)`,VIEWPORT_XL_DOWN:`(max-width: ${E[O.L.XL].TO}px)`,VIEWPORT_XXL_DOWN:`(max-width: ${E[O.L.XXL].TO}px)`}},897513(t,e,n){var O;n.d(e,{H:()=>O}),function(t){t.FLOWS="flows",t.ACTIVITY="activity",t.MULTICAST="multicast"}(O||(O={}))},603761(t,e,n){var O;n.d(e,{x:()=>O}),function(t){t.MAIN="main",t.SETTINGS="settings"}(O||(O={}))},599299(t,e,n){n.d(e,{A:()=>f});var O=n(274934),E=n(780597),i=n.n(E),A=n(587039),o=n.n(A),T=n(995044),R=n.n(T),S=n(335996),I=n.n(S),a=n(208632),N=n.n(a),D=n(20300),r=n.n(D),s=n(42242),l=n.n(s),M=n(855920),d=n.n(M),_=n(124139),h=n.n(_),c=n(902928),L=n.n(c),P=n(875748),u=n.n(P),C=n(582456),p=n.n(C),U=n(601334),m=n.n(U),x=n(789732),w=n.n(x),F=n(470070);const f=({uptime:t=0})=>{const e=new Date;let n=i()(e,t);const E=t=>(n=t,n),A=o()(e,n),T=N()(e,E(h()(n,A))),S=R()(e,E(u()(n,T))),a=d()(e,E(L()(n,S))),D=l()(e,E(w()(n,a))),s=r()(e,E(m()(n,D))),M=I()(e,E(p()(n,s)));let _="DASHBOARD_DURATION_SECONDS";return A?_="DASHBOARD_DURATION_YEARS":T?_="DASHBOARD_DURATION_MONTHS":S?_="DASHBOARD_DURATION_WEEKS":a?_="DASHBOARD_DURATION_DAYS":D?_="DASHBOARD_DURATION_HOURS":s&&(_="DASHBOARD_DURATION_MINUTES"),(0,O.jsx)(F.sA,{id:_,values:{years:A,months:T,weeks:S,days:a,hours:D,minutes:s,seconds:M}})}},842758(t,e,n){n.d(e,{A:()=>N});var O=n(274934),E=n(602086),i=n(977872),A=n(890932),o=n(726831);const T={};var R=n(247816),S=n(291508);const I=(0,R.A)("img",(0,S.A)("dimension"))`
  ${({dimension:t=22})=>`\n    height: ${t}px;\n    width: ${t}px;\n  `}
`;var a;!function(t){t.ICON_FILE_NAME="iconFileName",t.DIMENSION="dimension",t.STYLE="style"}(a||(a={}));const N=(0,E.memo)(({[a.ICON_FILE_NAME]:t,[a.DIMENSION]:e,[a.STYLE]:n={}})=>{const R=(0,i.d4)(A.p),S=(0,E.useMemo)(()=>T[t]||encodeURI(`${o.A.dpiPath}${t}`),[t]),N=(0,E.useCallback)(({target:e})=>{T[t]=e.src},[t]),D=(0,E.useCallback)(({currentTarget:t})=>{t.src=`${R}/dpiFallback.svg`},[R]);return(0,O.jsx)(I,{src:S,dimension:e,onLoad:N,onError:D,style:n})})},808601(t,e,n){n.d(e,{A:()=>d});var O=n(274934),E=n(761047),i=n(141651),A=n(247816),o=n(100978),T=n(291508);const R=(0,A.A)(o.A,(0,T.A)("innerColor","outerColor"))`
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  g {
    transition: unset;
  }
  circle {
    &:first-child {
      ${({outerColor:t})=>t?`fill: ${t};`:""}
    }
    &:last-child {
      ${({innerColor:t})=>t?`fill: ${t};`:""}
      r: 4.5;
    }
  }
`,S=n(409844).AH`
  overflow: visible;
`,I=({chartWidth:t,chartHeight:e,top:n,left:E,innerColor:A,outerColor:o="#fff"})=>(0,O.jsx)(R,{innerColor:A,outerColor:o,children:(0,O.jsx)("svg",{width:t,height:e,className:S,children:E&&n?(0,O.jsx)(i.A,{hasAnimation:!1,x:E,y:n}):null})});var a=n(505817);const N=[20,10,30,50],D=(0,A.A)(o.A,(0,T.A)("topA","topB","leftA","leftB","chartHeight","useFullHeightConnector","chartMargin"))`
  z-index: 1;
  border-left: 1px dashed
    ${({theme:{themeName:t}})=>a.Ay[`desktop-color-neutral-10-${t}`]};
  position: absolute;
  ${({topA:t,topB:e,leftA:n,leftB:O,chartHeight:E,useFullHeightConnector:i,chartMargin:A})=>`\n     top: ${i&&E?20-(A?(N?.[0]||0)-(A?.[0]||0):0):Math.min(t||0,e)}px;\n     height: ${i&&E?E-(50-(A?(N?.[0]||0)-(A?.[0]||0)+((N?.[2]||0)-(A?.[2]||0)):0)):Math.max(t||0,e)-Math.min(t||0,e)}px;\n     left: ${((n||0)+O)/2-1}px;\n   `}
`,r=({topA:t,leftA:e,topB:n,leftB:E,chartHeight:i,useFullHeightConnector:A,chartMargin:o})=>(0,O.jsx)(D,{topA:t,topB:n,leftA:e,leftB:E,chartHeight:i,useFullHeightConnector:A,chartMargin:o}),s=(t,e,n)=>n?(t||0)+((t||0)<Math.round(e/2)?8:-8):(t||0)-8,l=(t,e)=>((t||0)+(e||0))/(e?2:1),M=(t,e,n,O)=>({maxWidth:"auto",...!O?.position&&n&&t&&e&&{position:t<Math.round(e/2)?"right":"left"},portal:!0,...O}),d=({width:t=258,topA:e,leftA:n,topB:i,leftB:A,chartWidth:o,chartHeight:T,hidden:R,description:S,innerColor:a,tooltipRenderCondition:N,tooltipProps:D={},useSideSwapping:d=!0,useFullHeightConnector:_=!1,chartMargin:h})=>R?null:(0,O.jsxs)(O.Fragment,{children:[N?(0,O.jsx)(E.A,{width:t,left:s(n,o,d),top:l(e,i),description:S,hidden:R,topMargin:4,tooltipProps:M(n,o,d,D)}):null,A&&i?(0,O.jsx)(r,{topA:e,topB:i,leftA:n,leftB:A,chartHeight:T,useFullHeightConnector:_,chartMargin:h}):null,(0,O.jsx)(I,{chartWidth:o,chartHeight:T,top:e,left:n,innerColor:a})]})},403224(t,e,n){n.d(e,{A:()=>T});var O=n(487763),E=n(310758),i=n(356823),A=n(838823),o=n(450734);const T=()=>(t,e)=>{t((0,o.z7)((0,O.A)((0,i.bq)(e()),A.xi))),t((0,o.M2)(E.B2))}},322935(t,e,n){n.d(e,{w:()=>i});var O=n(436910),E=n(271524);const i=[O.E[E.U.ONE_HOUR],O.E[E.U.ONE_DAY],O.E[E.U.ONE_WEEK],O.E[E.U.ONE_MONTH]]},265453(t,e,n){n.d(e,{A:()=>N});var O=n(602086),E=n(237725),i=n(977872),A=n(947414),o=n(101134),T=n(104997),R=n(897513),S=n(450734),I=n(573230),a=n(403224);const N=()=>{const t=(0,i.wA)(),e=(0,E.W6)(),n=(0,o.A)(`${T.VO.INSIGHTS}/${R.H.FLOWS}`);return(0,O.useCallback)((O=A.P1)=>{(0,i.vA)(()=>{t((0,a.A)()),t((0,S.AL)(!0)),t((0,S.lB)(I.X)),O(t)}),e.push(n)},[t,e,n])}},726640(t,e,n){n.d(e,{A:()=>A});var O=n(977872),E=n(291935),i=n(167933);const A=()=>{const t=(0,O.d4)(i.K7),e=(0,O.d4)(i.xJ),n=(0,O.d4)(i.BZ),{enabled_allowed_traffic:A}=(0,O.d4)(E.fu),o=t||e;return{areAllFlowsSupported:o,areAllFlowsEnabled:o&&A,showExternalDiskMessage:e&&!n,isFlowsDownloadAvailable:!e||n}}},413688(t,e,n){var O,E;n.d(e,{j:()=>E,r:()=>O}),function(t){t.SPECIFIC_FLOWS="specificFlows",t.SPECIFIC_FLOWS_LOADING="specificFlowsLoading",t.BASE_FETCH_PARAMS="baseFetchParams"}(O||(O={})),function(t){t.MAC="mac",t.PAGE_SIZE="pageSize",t.FLOWS_DATE_RANGE_ENTRY_PRESET="flowsDateRangeEntryPreset",t.SOURCES="sources",t.DESTINATIONS="destinations",t.SERVICES="services",t.RISKS="risks",t.ACTIONS="actions",t.EXCEPT_FOR="exceptFor",t.TIMESTAMP_FROM="timestampFrom",t.TIMESTAMP_TO="timestampTo"}(E||(E={}))},969281(t,e,n){n.d(e,{A2:()=>E,RR:()=>A,gI:()=>i});var O=n(93344);const E="specific-flows",i=O.gI,A=O.RR},723644(t,e,n){n.d(e,{w:()=>S,y:()=>R});var O=n(222102),E=n(15989),i=n(211299),A=n(401042),o=n(260623);const T=t=>(0,O.Mz)((t=>e=>e.models[(0,o.dC)(t)]||{})(t),e=>(0,E.Al)(e,{data:t},{compareFunction:o.Gw,excludePlaceholders:!0})),R=t=>(0,O.Mz)(T(t),A.kh),S=t=>(0,O.Mz)(T(t),i.wH)},138185(t,e,n){n.d(e,{A:()=>L});var O=n(602086),E=n(977872),i=n(653159),A=n(260623);const o={},T={},R={},S=[],I=[],a=[],N=[],D=[],r=[];var s=n(782988),l=n(29472),M=n(774366),d=n(969281);const _=(t={},e={})=>(0,l.sU)((0,A.dC)(t.data),d.gI,t,{method:M.A.POST,idField:d.RR,fetchConfig:{getAllPostResponse:!0},additionalPayloadSelectors:{[s.bI.PAGE_NUMBER]:{},[s.bI.TOTAL_PAGE_COUNT]:{},[s.bI.TOTAL_ELEMENT_COUNT]:{},[s.bI.OR_MORE]:{}},compareFunction:A.Gw,...e});var h=n(723644),c=n(413688);const L=({[c.j.MAC]:t,[c.j.PAGE_SIZE]:e,[c.j.FLOWS_DATE_RANGE_ENTRY_PRESET]:n,[c.j.SOURCES]:s=S,[c.j.DESTINATIONS]:l=I,[c.j.SERVICES]:M=a,[c.j.RISKS]:d=N,[c.j.ACTIONS]:L=D,[c.j.EXCEPT_FOR]:P=r,[c.j.TIMESTAMP_FROM]:u,[c.j.TIMESTAMP_TO]:C})=>{const p=(0,E.wA)(),U=(0,O.useMemo)(()=>(0,A.C3)(t,e,n),[t,e,n]),m=(0,O.useMemo)(()=>(0,A.t1)(U,s,l,M,d,L,P,u||U[i.DU.TIMESTAMP_FROM],C||U[i.DU.TIMESTAMP_TO]),[U,s,l,M,d,L,P,u,C]),x=(0,O.useMemo)(()=>(0,A.dC)(m),[m]),w=(0,O.useMemo)(()=>(0,A.dC)(U),[U]),F=(0,O.useMemo)(()=>o[t],[t]),f=(0,E.d4)((0,O.useMemo)(()=>(0,h.y)(m),[m])),g=(0,E.d4)((0,O.useMemo)(()=>(0,h.w)(m),[m])),H=(0,E.d4)((0,O.useMemo)(()=>(0,h.y)(F),[F]));return(0,O.useEffect)(()=>{R[x]||(R[x]=!0,p(_({data:m})).then(()=>{o[t]={...m}}).finally(()=>{R[x]=!1}))},[p,m,x,t]),(0,O.useEffect)(()=>{!t||w===x||T[w]||R[w]||(R[w]=!0,p(_({data:U})).then(()=>{T[w]=!0}).finally(()=>{R[w]=!1}))},[t,p,U,w,x]),(0,O.useMemo)(()=>({[c.r.SPECIFIC_FLOWS]:f.length||!g?f:H,[c.r.SPECIFIC_FLOWS_LOADING]:g,[c.r.BASE_FETCH_PARAMS]:U}),[f,H,g,U])}},260623(t,e,n){n.d(e,{C3:()=>I,Gw:()=>R,dC:()=>S,t1:()=>a});var O=n(396489),E=n.n(O),i=n(653159),A=n(310758),o=n(322935),T=n(969281);const R=({queryParams:t},{queryParams:e})=>E()(t,e),S=t=>[T.A2,JSON.stringify(t)].join(),I=(t,e,n)=>({[i.DU.RISK]:[],[i.DU.ACTION]:[],[i.DU.DIRECTION]:[],[i.DU.PROTOCOL]:[],[i.DU.SERVICE]:[],[i.DU.POLICY]:[],[i.DU.POLICY_TYPE]:[],[i.DU.SOURCE_HOST]:[],[i.DU.SOURCE_MAC]:[t],[i.DU.SOURCE_IP]:[],[i.DU.SOURCE_PORT]:[],[i.DU.SOURCE_NETWORK_ID]:[],[i.DU.SOURCE_DOMAIN]:[],[i.DU.SOURCE_REGION]:[],[i.DU.SOURCE_ZONE_ID]:[],[i.DU.DESTINATION_HOST]:[],[i.DU.DESTINATION_MAC]:[],[i.DU.DESTINATION_IP]:[],[i.DU.DESTINATION_PORT]:[],[i.DU.DESTINATION_NETWORK_ID]:[],[i.DU.DESTINATION_DOMAIN]:[],[i.DU.DESTINATION_REGION]:[],[i.DU.DESTINATION_ZONE_ID]:[],[i.DU.IN_NETWORK_ID]:[],[i.DU.OUT_NETWORK_ID]:[],[i.DU.NEXT_AI_QUERY]:[],[i.DU.EXCEPT_FOR]:[],[i.DU.TIMESTAMP_FROM]:o.w.find(({id:t})=>t===n)?.getRange(new Date).startDate.getTime()||0,[i.DU.TIMESTAMP_TO]:o.w.find(({id:t})=>t===n)?.getRange(new Date).endDate.getTime()||0,[i.DU.PAGE_NUMBER]:A.B2,[i.DU.SEARCH_TEXT]:"",[i.DU.PAGE_SIZE]:e,[i.DU.SKIP_COUNT]:!0}),a=(t,e,n,O,E,A,o,T,R)=>({...t,[i.DU.SOURCE_HOST]:e.map(t=>({[i.Lv.MAC]:t[i.XU.MAC],[i.Lv.IP]:t[i.XU.IP],[i.Lv.DOMAIN]:t[i.XU.DOMAINS]?.[0]})),[i.DU.DESTINATION_HOST]:n.map(t=>({[i.EZ.MAC]:t[i.u9.MAC],[i.EZ.IP]:t[i.u9.IP],[i.EZ.DOMAIN]:t[i.u9.DOMAINS]?.[0]})),[i.DU.SERVICE]:O,[i.DU.RISK]:E,[i.DU.ACTION]:A,[i.DU.EXCEPT_FOR]:o,[i.DU.TIMESTAMP_FROM]:T,[i.DU.TIMESTAMP_TO]:R})},770445(t,e,n){var O,E;n.d(e,{N:()=>E,e:()=>O}),function(t){t.DASHBOARD="dashboard",t.SIDE_PANEL="sidePanel"}(O||(O={})),function(t){t.DIAMETER="diameter",t.BORDER="border",t.PADDING="padding",t.SPACER="spacer",t.THICKNESS="thickness"}(E||(E={}))},481894(t,e,n){n.d(e,{A:()=>R});var O=n(602086),E=n(303853),i=n(588769),A=n(770445);const o=(t,e)=>{if(!t)return null;switch(e){case A.e.DASHBOARD:return t>=i.A.XXL.FROM?{[A.N.DIAMETER]:150,[A.N.BORDER]:null,[A.N.PADDING]:20,[A.N.SPACER]:15,[A.N.THICKNESS]:10}:t>=i.A.XL.FROM?{[A.N.DIAMETER]:130,[A.N.BORDER]:null,[A.N.PADDING]:16,[A.N.SPACER]:15,[A.N.THICKNESS]:10}:t>=i.A.L.FROM?{[A.N.DIAMETER]:130,[A.N.BORDER]:null,[A.N.PADDING]:12,[A.N.SPACER]:15,[A.N.THICKNESS]:10}:t>=i.A.ML.FROM?{[A.N.DIAMETER]:130,[A.N.BORDER]:null,[A.N.PADDING]:12,[A.N.SPACER]:15,[A.N.THICKNESS]:10}:t>=i.A.M.FROM?{[A.N.DIAMETER]:130,[A.N.BORDER]:null,[A.N.PADDING]:12,[A.N.SPACER]:15,[A.N.THICKNESS]:10}:t>=i.A.SM.FROM?{[A.N.DIAMETER]:130,[A.N.BORDER]:null,[A.N.PADDING]:12,[A.N.SPACER]:15,[A.N.THICKNESS]:10}:t>=i.A.S.FROM?{[A.N.DIAMETER]:130,[A.N.BORDER]:null,[A.N.PADDING]:12,[A.N.SPACER]:15,[A.N.THICKNESS]:10}:t>=i.A.XS.FROM?{[A.N.DIAMETER]:130,[A.N.BORDER]:null,[A.N.PADDING]:12,[A.N.SPACER]:15,[A.N.THICKNESS]:10}:null;case A.e.SIDE_PANEL:return{[A.N.DIAMETER]:96,[A.N.BORDER]:null,[A.N.PADDING]:0,[A.N.SPACER]:10,[A.N.THICKNESS]:10};default:return null}},T={[A.N.DIAMETER]:null,[A.N.BORDER]:null,[A.N.PADDING]:null,[A.N.SPACER]:null,[A.N.THICKNESS]:null},R=t=>{const[e,n]=(0,O.useState)(o(document.body?.getBoundingClientRect()?.width,t)||T),{width:i}=(0,E.Ay)();return(0,O.useEffect)(()=>{const e=o(i,t);e&&n(e)},[i,t]),e}},453026(t,e,n){n.d(e,{A:()=>o});var O=n(487763),E=n(898236),i=n(238227),A=n(298285);const o=()=>(t,e)=>{t((0,A.nd)((0,O.A)((0,E.rQ)(e()),i.jI)))}},148925(t,e,n){n.d(e,{A:()=>a});var O=n(602086),E=n(237725),i=n(977872),A=n(101134),o=n(603761),T=n(104997),R=n(238227),S=n(298285),I=n(453026);const a=()=>{const t=(0,i.wA)(),e=(0,E.W6)(),n=(0,A.A)(`${T.VO.SYSLOG}/${o.x.MAIN}`);return(0,O.useCallback)(O=>{(0,i.vA)(()=>{t((0,I.A)()),t((0,S.X7)(!0)),t((0,S.wi)(!0)),t((0,S.wu)(R.pp)),t((0,S.F6)(R.pt.getRange(new Date))),t((0,S.oz)(R.fN)),O?.(t)}),e.push(n)},[t,e,n])}}}]);