"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[90786],{402799(A,e,N){N.d(e,{F8:()=>t,He:()=>o,Mb:()=>T,Or:()=>r,RG:()=>c,SI:()=>a,Yw:()=>R,b3:()=>S,dQ:()=>M,hT:()=>d,o0:()=>_,qL:()=>m,rR:()=>C});var E=N(959340),O=N(135601),i=N(164815),I=N(463641),s=N(947414),n=N(449339);const r={[I.U7.SUCCESS_ROAMING]:E.A,[I.U7.FAILED_ROAMING]:O.A,[I.U7.FAILED_CONNECTION]:i.A},_={[I.U7.SUCCESS_ROAMING]:"purple-06",[I.U7.FAILED_ROAMING]:"red-06",[I.U7.FAILED_CONNECTION]:"red-06"},M={[I.U7.SUCCESS_ROAMING]:"COMMON_ROAMING",[I.U7.FAILED_ROAMING]:"ROAMING_FAILED_ROAMING",[I.U7.FAILED_CONNECTION]:"ROAMING_FAILED_CONNECTION"},o={[I.o4.SUCCESS]:"COMMON_SUCCESS",[I.o4.FAILURE]:"ROAMING_FAILURE",[I.o4.ASSOCIATION_FAILURE]:"COMMON_ASSOCIATION_FAILURE",[I.o4.AUTHENTICATION_FAILURE]:"COMMON_AUTHENTICATION_FAILURE",[I.o4.RADIUS_AUTHENTICATION_FAILURE]:"COMMON_RADIUS_AUTHENTICATION_FAILURE",[I.o4.WPA_AUTHENTICATION_FAILURE]:"COMMON_WPA_AUTHENTICATION_FAILURE",[I.o4.DHCP_TIMEOUT]:"COMMON_DHCP_TIMEOUT",[I.o4.DNS_TIMEOUT]:"COMMON_DNS_TIMEOUT",[I.o4.DNS_RESPONSE_NOT_SEEN]:"COMMON_DNS_RESPONSE_NOT_SEEN",[I.o4.TRAFFIC_FAILURE]:"COMMON_TRAFFIC_FAILURE"},C={[I.o4.SUCCESS]:s.P1,[I.o4.FAILURE]:s.P1,[I.o4.ASSOCIATION_FAILURE]:s.P1,[I.o4.AUTHENTICATION_FAILURE]:s.P1,[I.o4.RADIUS_AUTHENTICATION_FAILURE]:s.P1,[I.o4.WPA_AUTHENTICATION_FAILURE]:s.P1,[I.o4.DHCP_TIMEOUT]:s.P1,[I.o4.DNS_TIMEOUT]:s.P1,[I.o4.DNS_RESPONSE_NOT_SEEN]:s.P1,[I.o4.TRAFFIC_FAILURE]:s.P1},t=20,T=20,S=40,a=40,d=1,c=8,R=[n.H.ROAMING,n.H.ROAMING_TOPOLOGY],m=[I.U7.SUCCESS_ROAMING,I.U7.FAILED_ROAMING]},261748(A,e,N){var E;N.d(e,{A:()=>E}),function(A){A.ROAMING="roaming"}(E||(E={}))},790786(A,e,N){N.d(e,{wf:()=>w,TZ:()=>V,OX:()=>v,Z$:()=>$,GV:()=>X});var E=N(437458),O=N(274934),i=N(470070),I=N(914735);const s=({[I.D.ROAMING_COLUMN]:A})=>(0,O.jsx)(i.sA,{id:$[A]});var n=N(95032);const r=A=>(0,O.jsx)(n.A,{variant:"inherit",isTruncated:!0,...A});var _=N(463641),M=N(650632),o=N(402799),C=N(247816),t=N(100978),T=N(309130);const S=(0,C.A)(t.A)`
  align-items: center;
  gap: ${T.YC};
`;var a=N(261748);var d=N(263705),c=N(875343);const R=(0,C.A)(t.A)`
  align-items: center;
  gap: ${T.kc};
`;var m=N(974390),D=N(347625),l=N(299091);const x=(0,C.A)(t.A)`
  align-items: center;
  gap: ${T.YC};
`;var L=N(331472);const U=({[_.AX.RSSI]:A})=>(0,O.jsxs)(n.A,{isTruncated:!0,size:"medium",color:(0,L.b5)(A),children:[A," ",(0,O.jsx)(i.sA,{id:"COMMON_UNIT_DBM"})]});var j=N(938984);const h=()=>(0,O.jsx)(j.A,{size:"medium",color:"text-3",children:(0,O.jsx)(i.sA,{id:"COMMON_FALLBACK"})}),F=({[_.bE.ENDPOINT]:{[_.AX.RSSI]:A}})=>A?(0,O.jsx)(U,{rssi:A}):(0,O.jsx)(h,{}),u=(0,C.A)(t.A)`
  align-items: center;
  gap: ${T.YC};
`,G=({[_.bE.FROM_ENDPOINT]:{[_.AX.RSSI]:A},[_.bE.TO_ENDPOINT]:{[_.AX.RSSI]:e}})=>A&&e?(0,O.jsxs)(u,{children:[(0,O.jsx)(U,{rssi:A}),(0,O.jsx)(l.A,{}),(0,O.jsx)(U,{rssi:e})]}):(0,O.jsx)(h,{});var P=N(581883);const p=({[_.AX.BAND]:A})=>(0,O.jsx)(n.A,{isTruncated:!0,size:"medium",color:"text-2",children:(0,O.jsx)(i.sA,{id:P.U[A]})}),b=()=>(0,O.jsx)(j.A,{size:"medium",color:"text-3",children:(0,O.jsx)(i.sA,{id:"COMMON_FALLBACK"})}),g=({[_.bE.ENDPOINT]:{[_.AX.BAND]:A}})=>A?(0,O.jsx)(p,{band:A}):(0,O.jsx)(b,{}),z=(0,C.A)(t.A)`
  align-items: center;
  gap: ${T.YC};
`,B=({[_.bE.FROM_ENDPOINT]:{[_.AX.BAND]:A},[_.bE.TO_ENDPOINT]:{[_.AX.BAND]:e}})=>A&&e?(0,O.jsxs)(z,{children:[(0,O.jsx)(p,{band:A}),(0,O.jsx)(l.A,{}),(0,O.jsx)(p,{band:e})]}):(0,O.jsx)(b,{});var f=N(678071);const $={[E.S.CLIENT]:"COMMON_CLIENT",[E.S.EVENT]:"COMMON_EVENT",[E.S.APS]:"COMMON_APS",[E.S.RESULT]:"ROAMING_RESULT",[E.S.SIGNAL]:"COMMON_SIGNAL",[E.S.BAND]:"COMMON_BAND",[E.S.WIFI_BROADCAST]:"COMMON_WIFI_BROADCAST",[E.S.DATE_TIME]:"COMMON_DATE_TIME"},v={[E.S.CLIENT]:({[I.D.ROAMING_COLUMN]:A})=>(0,O.jsx)(r,{children:(0,O.jsx)(s,{roamingColumn:A})}),[E.S.EVENT]:({[I.D.ROAMING_COLUMN]:A})=>(0,O.jsx)(r,{children:(0,O.jsx)(s,{roamingColumn:A})}),[E.S.APS]:({[I.D.ROAMING_COLUMN]:A})=>(0,O.jsx)(r,{children:(0,O.jsx)(s,{roamingColumn:A})}),[E.S.RESULT]:({[I.D.ROAMING_COLUMN]:A})=>(0,O.jsx)(r,{children:(0,O.jsx)(s,{roamingColumn:A})}),[E.S.SIGNAL]:({[I.D.ROAMING_COLUMN]:A})=>(0,O.jsx)(r,{children:(0,O.jsx)(s,{roamingColumn:A})}),[E.S.BAND]:({[I.D.ROAMING_COLUMN]:A})=>(0,O.jsx)(r,{children:(0,O.jsx)(s,{roamingColumn:A})}),[E.S.WIFI_BROADCAST]:({[I.D.ROAMING_COLUMN]:A})=>(0,O.jsx)(r,{children:(0,O.jsx)(s,{roamingColumn:A})}),[E.S.DATE_TIME]:({[I.D.ROAMING_COLUMN]:A})=>(0,O.jsx)(r,{children:(0,O.jsx)(s,{roamingColumn:A})})},X={[E.S.CLIENT]:{size:90,minSize:60,maxSize:1/0},[E.S.EVENT]:{size:80,minSize:50,maxSize:1/0},[E.S.APS]:{size:110,minSize:120,maxSize:1/0},[E.S.RESULT]:{size:70,minSize:60,maxSize:1/0},[E.S.SIGNAL]:{size:90,minSize:60,maxSize:1/0},[E.S.BAND]:{size:90,minSize:60,maxSize:1/0},[E.S.WIFI_BROADCAST]:{size:90,minSize:60,maxSize:1/0},[E.S.DATE_TIME]:{size:90,minSize:60,maxSize:1/0}},V={[E.S.CLIENT]:({[a.A.ROAMING]:{[_.bE.CLIENT]:{[_.Sf.FINGERPRINT]:A,[_.Sf.NAME]:e,[_.Sf.MAC]:N}}})=>(0,O.jsxs)(S,{children:[(0,O.jsx)(M.A,{width:o.F8,height:o.Mb,client:{fingerprint:A}}),(0,O.jsx)(n.A,{isTruncated:!0,size:"medium",color:"text-2",children:e||N||(0,O.jsx)(i.sA,{id:"COMMON_FALLBACK"})})]}),[E.S.EVENT]:({[a.A.ROAMING]:{[_.bE.TYPE]:A}})=>(0,O.jsxs)(R,{children:[(0,c.rC)(A,(0,d.u)().themeName),(0,O.jsx)(n.A,{isTruncated:!0,size:"medium",color:"text-2",children:(0,O.jsx)(i.sA,{id:o.dQ[A]})})]}),[E.S.APS]:({[a.A.ROAMING]:{[_.bE.ENDPOINT]:{[_.AX.DEVICE_NAME]:A,[_.AX.DEVICE_MODEL]:e,[_.AX.DEVICE_MAC]:N},[_.bE.FROM_ENDPOINT]:{[_.AX.DEVICE_NAME]:E,[_.AX.DEVICE_MODEL]:I,[_.AX.DEVICE_MAC]:s},[_.bE.TO_ENDPOINT]:{[_.AX.DEVICE_NAME]:r,[_.AX.DEVICE_MODEL]:M,[_.AX.DEVICE_MAC]:C}}})=>(0,O.jsxs)(x,{children:[(0,O.jsx)(m.A,{width:o.F8,height:o.Mb,model:e||I}),(0,O.jsx)(n.A,{isTruncated:!0,size:"medium",color:"text-2",children:(0,D.Q)({name:A||E,model:e||I,mac:N||s})||(0,O.jsx)(i.sA,{id:"COMMON_FALLBACK"})}),C?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(l.A,{}),(0,O.jsx)(m.A,{width:o.F8,height:o.Mb,model:M}),(0,O.jsx)(n.A,{isTruncated:!0,size:"medium",color:"text-2",children:(0,D.Q)({name:r,model:M,mac:C})||(0,O.jsx)(i.sA,{id:"COMMON_FALLBACK"})})]}):null]}),[E.S.RESULT]:({[a.A.ROAMING]:{[_.bE.TYPE]:A,[_.bE.STATUS]:e}})=>(0,O.jsx)(n.A,{isTruncated:!0,size:"medium",color:"text-2",children:o.qL.includes(A)?(0,O.jsx)(i.sA,{id:A===_.U7.SUCCESS_ROAMING?"COMMON_SUCCESS":"ROAMING_FAILURE"}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(i.sA,{id:o.He[e]})," ",o.rR[e]?.()]})}),[E.S.SIGNAL]:({[a.A.ROAMING]:{[_.bE.ENDPOINT]:A,[_.bE.FROM_ENDPOINT]:e,[_.bE.TO_ENDPOINT]:N}})=>_.AX.RSSI in A?(0,O.jsx)(F,{endpoint:A}):(0,O.jsx)(G,{from_endpoint:e,to_endpoint:N}),[E.S.BAND]:({[a.A.ROAMING]:{[_.bE.ENDPOINT]:A,[_.bE.FROM_ENDPOINT]:e,[_.bE.TO_ENDPOINT]:N}})=>_.AX.BAND in A?(0,O.jsx)(g,{endpoint:A}):(0,O.jsx)(B,{from_endpoint:e,to_endpoint:N}),[E.S.WIFI_BROADCAST]:({[a.A.ROAMING]:{[_.bE.ENDPOINT]:{[_.AX.WLAN_NAME]:A},[_.bE.FROM_ENDPOINT]:{[_.AX.WLAN_NAME]:e},[_.bE.TO_ENDPOINT]:{[_.AX.WLAN_NAME]:N}}})=>(0,O.jsx)(n.A,{isTruncated:!0,size:"medium",color:"text-2",children:A||e||N||(0,O.jsx)(i.sA,{id:"COMMON_FALLBACK"})}),[E.S.DATE_TIME]:({[a.A.ROAMING]:{[_.bE.TIME]:A}})=>(0,O.jsx)(n.A,{isTruncated:!0,size:"medium",color:"text-2",children:A?(0,O.jsx)(f.A,{timestamp:A,showSeconds:!0}):(0,O.jsx)(i.sA,{id:"COMMON_FALLBACK"})})},w=Object.values(E.S)},914735(A,e,N){var E;N.d(e,{D:()=>E}),function(A){A.ROAMING_COLUMN="roamingColumn"}(E||(E={}))},82236(A,e,N){N.d(e,{AJ:()=>S,Bs:()=>d,DB:()=>I,IK:()=>T,LR:()=>n,M2:()=>_,OL:()=>r,P4:()=>x,U_:()=>i,Ur:()=>L,YN:()=>m,_J:()=>o,b4:()=>a,c8:()=>M,hJ:()=>C,jf:()=>c,kE:()=>R,mQ:()=>t,pB:()=>D,x2:()=>s,yj:()=>O});var E=N(404742);const O={antialias:!0,powerPreference:"high-performance",preserveDrawingBuffer:!1,stencil:!1,depth:!0,precision:"highp"},i={antialias:!1,powerPreference:"low-power",preserveDrawingBuffer:!1,stencil:!1,depth:!0,precision:"lowp"},I={current:.1,min:.1,max:.1,debounce:1e3},s={current:1,min:.5,max:1,debounce:200},n=[2,2],r=!0,_=!1,M=!1,o=!0,C="__ROAMING_TOPOLOGY_CONNECTION__",t=.2,T=1500,S=200,a={transparent:!0,opacity:t,depthWrite:!1,depthTest:!1},d={transform:!0,center:!0},c={},R={...d,transform:!1,distanceFactor:25},m={},D={...d,transform:!1,distanceFactor:25},l={},x={[E.n.LINE_OVERLAY]:l,[E.n.LINE_DIRECTION]:l,[E.n.NODE_CIRCLE]:l,[E.n.NODE_DEVICE_IMAGE]:l,[E.n.NODE_DEVICE_NAME]:l,[E.n.RADIAL_GRADIENT]:l},L={enableZoom:!0,enablePan:!0,enableRotate:!1,enableDamping:!1}},404742(A,e,N){var E;N.d(e,{n:()=>E}),function(A){A.LINE_OVERLAY="lineOverlay",A.LINE_DIRECTION="lineDirection",A.NODE_CIRCLE="nodeCircle",A.NODE_DEVICE_IMAGE="nodeDeviceImage",A.NODE_DEVICE_NAME="nodeDeviceName",A.RADIAL_GRADIENT="radialGradient"}(E||(E={}))},299091(A,e,N){N.d(e,{A:()=>s});var E=N(274934),O=N(570829),i=N(263705),I=N(814557);const s=()=>(0,E.jsx)(O.A,{style:{transform:"rotate(90deg)"},size:"original",color:I.Ay[`desktop-color-neutral-05-${(0,i.u)().themeName}`]})},875343(A,e,N){N.d(e,{AL:()=>o,Mw:()=>t,R:()=>_,er:()=>M,rC:()=>r,sq:()=>C});var E=N(602086),O=N(814557),i=N(581883),I=N(419284),s=N(402799),n=N(82236);const r=(A,e)=>{return(N=s.Or[A])?(0,E.createElement)(N,{size:"original",color:O.Ay[`desktop-color-${s.o0[A]}-${e}`]}):null;var N},_=(A,e)=>A>67?O.Ay[`desktop-color-green-06-${e}`]:A>33?O.Ay[`desktop-color-orange-06-${e}`]:O.Ay[`desktop-color-red-06-${e}`],M=A=>(0,I.b_)(A,n.mQ),o=({roamAttempts:A,highestRoamAttempts:e,sumOfRoamAttempts:N,edgeCount:E})=>E<3?s.hT:Math.max(s.hT,Math.min(s.RG,s.hT+(s.RG-s.hT)*(A/e*.7+A/N*.3))),C=(A,e)=>Math.round(A/e*100),t=({channel:A,band:e,channelWidth:N,rssi:E,formatMessage:O,separator:I=""})=>`${A?`${O({id:"COMMON_CHANNEL_ABBREVIATION"})} ${A}`:""} ${e||N?`(${e?`${O({id:i.U[e]})}${e&&N?", ":""}${N?`${N} ${O({id:"COMMON_UNIT_MHZ"})}`:""}`:""})`:""} ${E?`${I} ${E} ${O({id:"COMMON_UNIT_DBM"})}`:""}`}}]);