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