"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[6438],{779005(t,e,n){var i;n.d(e,{L:()=>i}),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"}(i||(i={}))},572112(t,e,n){n.d(e,{A:()=>r,G:()=>l});var i=n(779005);const o={[i.L.XS]:{FROM:0,TO:374},[i.L.S]:{FROM:375,TO:567},[i.L.SM]:{FROM:568,TO:767},[i.L.M]:{FROM:768,TO:1023},[i.L.ML]:{FROM:1024,TO:1199},[i.L.L]:{FROM:1200,TO:1919},[i.L.XL]:{FROM:1920,TO:2559},[i.L.XXL]:{FROM:2560,TO:1/0}},l=600,r={...o,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: ${l+1}px)`,SIDE_NAVIGATION_BREAKPOINT_DOWN:`(max-width: ${l}px)`,VIEWPORT_XS:`(max-width: ${o[i.L.XS].TO}px)`,VIEWPORT_S:`(min-width: ${o[i.L.S].FROM}px) and (max-width: ${o[i.L.S].TO}px)`,VIEWPORT_SM:`(min-width: ${o[i.L.SM].FROM}px) and (max-width: ${o[i.L.SM].TO}px)`,VIEWPORT_M:`(min-width: ${o[i.L.M].FROM}px) and (max-width: ${o[i.L.M].TO}px)`,VIEWPORT_ML:`(min-width: ${o[i.L.ML].FROM}px) and (max-width: ${o[i.L.ML].TO}px)`,VIEWPORT_L:`(min-width: ${o[i.L.L].FROM}px) and (max-width: ${o[i.L.L].TO}px)`,VIEWPORT_XL:`(min-width: ${o[i.L.XL].FROM}px) and (max-width: ${o[i.L.XL].TO}px)`,VIEWPORT_XXL:`(min-width: ${o[i.L.XXL].FROM}px)`,VIEWPORT_XS_UP:`(min-width: ${o[i.L.S].FROM}px)`,VIEWPORT_S_UP:`(min-width: ${o[i.L.SM].FROM}px)`,VIEWPORT_SM_UP:`(min-width: ${o[i.L.M].FROM}px)`,VIEWPORT_M_UP:`(min-width: ${o[i.L.ML].FROM}px)`,VIEWPORT_ML_UP:`(min-width: ${o[i.L.L].FROM}px)`,VIEWPORT_L_UP:`(min-width: ${o[i.L.XL].FROM}px)`,VIEWPORT_XL_UP:`(min-width: ${o[i.L.XXL].FROM}px)`,VIEWPORT_S_DOWN:`(max-width: ${o[i.L.S].TO}px)`,VIEWPORT_SM_DOWN:`(max-width: ${o[i.L.SM].TO}px)`,VIEWPORT_M_DOWN:`(max-width: ${o[i.L.M].TO}px)`,VIEWPORT_ML_DOWN:`(max-width: ${o[i.L.ML].TO}px)`,VIEWPORT_L_DOWN:`(max-width: ${o[i.L.L].TO}px)`,VIEWPORT_XL_DOWN:`(max-width: ${o[i.L.XL].TO}px)`,VIEWPORT_XXL_DOWN:`(max-width: ${o[i.L.XXL].TO}px)`}},670180(t,e,n){var i;n.d(e,{H:()=>i}),function(t){t.FLOWS="flows",t.ACTIVITY="activity"}(i||(i={}))},296968(t,e,n){var i;n.d(e,{x:()=>i}),function(t){t.MAIN="main",t.SETTINGS="settings"}(i||(i={}))},75354(t,e,n){n.d(e,{A:()=>F});var i=n(296540),o=n(814942),l=n.n(o),r=n(776248),O=n.n(r),A=n(837407),a=n.n(A),R=n(580351),h=n.n(R),N=n(128153),d=n.n(N),E=n(258407),s=n.n(E),S=n(324837),c=n.n(S),D=n(89189),M=n.n(D),p=n(990292),u=n.n(p),L=n(127403),T=n.n(L),I=n(590517),m=n.n(I),x=n(778899),P=n.n(x),_=n(894713),w=n.n(_),$=n(296713),C=n.n($),f=n(916537);const F=({uptime:t=0})=>{const e=new Date;let n=l()(e,t);const o=t=>(n=t,n),r=O()(e,n),A=d()(e,o(u()(n,r))),R=a()(e,o(m()(n,A))),N=M()(e,o(T()(n,R))),E=c()(e,o(C()(n,N))),S=s()(e,o(w()(n,E))),D=h()(e,o(P()(n,S)));let p="DASHBOARD_DURATION_SECONDS";return r?p="DASHBOARD_DURATION_YEARS":A?p="DASHBOARD_DURATION_MONTHS":R?p="DASHBOARD_DURATION_WEEKS":N?p="DASHBOARD_DURATION_DAYS":E?p="DASHBOARD_DURATION_HOURS":S&&(p="DASHBOARD_DURATION_MINUTES"),i.createElement(f.sA,{id:p,values:{years:r,months:A,weeks:R,days:N,hours:E,minutes:S,seconds:D}})}},8795(t,e,n){n.d(e,{A:()=>D});var i=n(296540),o=n(112142),l=n(66706),r=n(71479),O=n(294303),A=n(311785);const a=(0,r.A)(O.A,(0,A.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;
    }
  }
`,R=n(132196).AH`
  overflow: visible;
`,h=({chartWidth:t,chartHeight:e,top:n,left:o,innerColor:r,outerColor:O="#fff"})=>i.createElement(a,{innerColor:r,outerColor:O},i.createElement("svg",{width:t,height:e,className:R},o&&n?i.createElement(l.A,{hasAnimation:!1,x:o,y:n}):null));var N=n(822336);const d=(0,r.A)(O.A,(0,A.A)("topA","topB","leftA","leftB","chartHeight","useFullHeightConnector"))`
  z-index: 1;
  border-left: 1px dashed ${({theme:{themeName:t}})=>N.Ay[`desktop-color-neutral-10-${t}`]};
  position: absolute;
  ${({topA:t,topB:e,leftA:n,leftB:i,chartHeight:o,useFullHeightConnector:l})=>`\n     top: ${l&&o?20:Math.min(t||0,e)}px;\n     height: ${l&&o?o-50:Math.max(t||0,e)-Math.min(t||0,e)}px;\n     left: ${((n||0)+i)/2-1}px;\n   `}
`,E=({topA:t,leftA:e,topB:n,leftB:o,chartHeight:l,useFullHeightConnector:r})=>i.createElement(d,{topA:t,topB:n,leftA:e,leftB:o,chartHeight:l,useFullHeightConnector:r}),s=(t,e,n)=>n?(t||0)+((t||0)<Math.round(e/2)?8:-8):(t||0)-8,S=(t,e)=>((t||0)+(e||0))/(e?2:1),c=(t,e,n,i)=>({maxWidth:"auto",...!i?.position&&n&&t&&e&&{position:t<Math.round(e/2)?"right":"left"},portal:!0,...i}),D=({width:t,topA:e,leftA:n,topB:l,leftB:r,chartWidth:O,chartHeight:A,hidden:a,description:R,innerColor:N,tooltipRenderCondition:d,tooltipProps:D={},useSideSwapping:M=!0,useFullHeightConnector:p=!1})=>a?null:i.createElement(i.Fragment,null,d?i.createElement(o.A,{width:t,left:s(n,O,M),top:S(e,l),description:R,hidden:a,topMargin:4,tooltipProps:c(n,O,M,D)}):null,r&&l?i.createElement(E,{topA:e,topB:l,leftA:n,leftB:r,chartHeight:A,useFullHeightConnector:p}):null,i.createElement(h,{chartWidth:O,chartHeight:A,top:e,left:n,innerColor:N}))},455155(t,e,n){n.d(e,{A:()=>h});var i=n(296540),o=n(469733),l=n(130851),r=n(765562);const O={};var A=n(71479),a=n(311785);const R=(0,A.A)("img",(0,a.A)("dimension"))`
  ${({dimension:t=22})=>`\n    height: ${t}px;\n    width: ${t}px;\n  `}
`,h=(0,i.memo)(({iconFileName:t,dimension:e,style:n={}})=>{const A=(0,o.useSelector)(l.p);return i.createElement(R,{src:O[t]||encodeURI(`${r.A.dpiPath}${t}`),dimension:e,onLoad:({target:e})=>{O[t]=e.src},onError:({currentTarget:t})=>{t.src=`${A}/dpiFallback.svg`},style:n})})},46685(t,e,n){n.d(e,{A:()=>A});var i=n(165126),o=n(860765),l=n(716654),r=n(95636),O=n(469987);const A=()=>(t,e)=>{t((0,O.z7)((0,i.A)((0,l.bq)(e()),r.xi))),t((0,O.M2)(o.B))}},239764(t,e,n){n.d(e,{A:()=>d});var i=n(296540),o=n(956347),l=n(469733),r=n(874807),O=n(15095),A=n(627440),a=n(670180),R=n(469987),h=n(361485),N=n(46685);const d=()=>{const t=(0,l.useDispatch)(),e=(0,o.W6)(),n=(0,O.A)(`${A.VO.INSIGHTS}/${a.H.FLOWS}`);return(0,i.useCallback)((i=r.P1)=>{(0,l.batch)(()=>{t((0,N.A)()),t((0,R.AL)(!0)),t((0,R.lB)(h.X)),i(t)}),e.push(n)},[t,e,n])}},140496(t,e,n){var i,o;n.d(e,{N:()=>o,e:()=>i}),function(t){t.DASHBOARD="dashboard",t.SIDE_PANEL="sidePanel"}(i||(i={})),function(t){t.DIAMETER="diameter",t.BORDER="border",t.PADDING="padding",t.SPACER="spacer",t.THICKNESS="thickness"}(o||(o={}))},223670(t,e,n){n.d(e,{A:()=>a});var i=n(296540),o=n(366702),l=n(572112),r=n(140496);const O=(t,e)=>{if(!t)return null;switch(e){case r.e.DASHBOARD:return t>=l.A.XXL.FROM?{[r.N.DIAMETER]:150,[r.N.BORDER]:null,[r.N.PADDING]:20,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:t>=l.A.XL.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:16,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:t>=l.A.L.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:t>=l.A.ML.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:t>=l.A.M.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:t>=l.A.SM.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:t>=l.A.S.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:t>=l.A.XS.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:null;case r.e.SIDE_PANEL:return{[r.N.DIAMETER]:96,[r.N.BORDER]:null,[r.N.PADDING]:0,[r.N.SPACER]:10,[r.N.THICKNESS]:10};default:return null}},A={[r.N.DIAMETER]:null,[r.N.BORDER]:null,[r.N.PADDING]:null,[r.N.SPACER]:null,[r.N.THICKNESS]:null},a=t=>{const[e,n]=(0,i.useState)(O(document.body?.getBoundingClientRect()?.width,t)||A),{width:l}=(0,o.Ay)();return(0,i.useEffect)(()=>{const e=O(l,t);e&&n(e)},[l,t]),e}},57867(t,e,n){n.d(e,{A:()=>O});var i=n(165126),o=n(512759),l=n(449256),r=n(706574);const O=()=>(t,e)=>{t((0,r.nd)((0,i.A)((0,o.rQ)(e()),l.jI)))}},640488(t,e,n){n.d(e,{A:()=>N});var i=n(296540),o=n(956347),l=n(469733),r=n(15095),O=n(296968),A=n(627440),a=n(449256),R=n(706574),h=n(57867);const N=()=>{const t=(0,l.useDispatch)(),e=(0,o.W6)(),n=(0,r.A)(`${A.VO.SYSLOG}/${O.x.MAIN}`);return(0,i.useCallback)(i=>{(0,l.batch)(()=>{t((0,h.A)()),t((0,R.ov)(!0)),t((0,R.wu)(a.pp)),t((0,R.F6)(a.pt.getRange(new Date))),t((0,R.oz)(a.fN)),i?.(t)}),e.push(n)},[t,e,n])}},195462(t,e,n){n.d(e,{Y:()=>o,v:()=>l});var i=n(847439);const o=(t,e,n=!1)=>{const o=e-1;let l=Math.ceil(t);if(Number.isNaN(l))return[];const r=l%o;return 0!==r&&(l+=o-r),(0,i.A)(e,t=>{return{value:e=t?Math.ceil(t*(l/o)):0,label:n?t%2==0&&String(e)||null:String(e)};var e}).reverse()},l=(t,e)=>{const[n]=t,i=[n],o=t.length-1;for(let n=1;n<e-1;n+=1){const l=n*o/(e-1),r=Math.floor(l).toFixed();i[n]=Math.round(t[r]+(t[Math.ceil(l).toFixed()]-t[r])*(+l-+r))}return i[e-1]=t[o],i}},668995(t,e,n){n.d(e,{h:()=>i});const i=(t,e)=>(t<<16)+e}}]);