"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[99594],{22169:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(296540),l=n(217439),r=n(699784),i=n(115829),o=n(39705),s=n(294303);const c=({ipv6:e,size:t="inherit",color:n="inherit"})=>{const c=e?.[0];return c?a.createElement(s.A,{width:"100%",justifyContent:"flex-end"},a.createElement(i.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:n,size:t},c),e?.length>1?a.createElement(o.A,{items:e,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>a.createElement(a.Fragment,null,e),renderMultipleItemsSummary:()=>null}):null):a.createElement(l.A,{size:t,color:n},a.createElement(r.sA,{id:"COMMON_FALLBACK"}))}},23514:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(772559),l=n(448951),r=n(929008);const i=function(e){return e&&e.length?(0,a.A)(e,r.A,l.A):void 0}},39705:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(296540),l=n(705145),r=n(699784),i=n(115829),o=n(424135),s=n(819127);const c=function({items:e,renderMultipleItemsSummary:t,renderListItem:n,renderNoItems:c,getItemKey:m,enabled:d=!0,showListMarkers:E,cursorType:A,isInteractive:u}){const p=d?"inherit":"disabled";return e.length>1?a.createElement(o.A,{tooltip:a.createElement(s.A,{items:e,getItemKey:m,renderItem:n,showListMarkers:E,isInteractive:u,cursorType:A})},a.createElement(i.A,{color:p,cursorType:A},t(e))):1===e.length?a.createElement(i.A,{color:p,cursorType:A},n(e[0])):c?a.createElement(a.Fragment,null,c()):a.createElement(l.A,{isTruncated:!0,color:p},a.createElement(r.sA,{id:"COMMON_FALLBACK"}))}},53715:(e,t,n)=>{n.d(t,{A:()=>C});var a=n(469733),l=n(296540),r=n(927099),i=n(758649),o=n(71479),s=n(132196),c=n(398300),m=n(566723),d=n(845030),E=n(699784),A=n(360113);const u=(0,o.A)(i.A)`
  height: 24px;
  display: block;
  padding: 0;
`,p=s.AH`
  margin-left: ${m.kc};
  overflow: hidden;
`,_=s.AH`
  display: inline-block !important;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
`,C=(0,l.memo)(({uplinkMac:e,uplinkName:t,label:n="COMMON_DEVICE"})=>{const i=(0,a.useDispatch)(),o=(0,l.useCallback)(t=>{t.preventDefault(),t.stopPropagation(),i((0,d.XP)({type:c.H.DEVICE,id:e}))},[i,e]);return l.createElement(A.A,null,l.createElement(r.A,{color:"secondary",size:"body"},l.createElement(E.sA,{id:n})),l.createElement(u,{variant:"link",size:"medium",onClick:o,wrapClassName:p,contentClassName:_},t))})},120401:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(296540),l=n(927099),r=n(777916),i=n(137298),o=n(699784),s=n(360113);const c=(0,a.memo)(({rx_packets:e,rx_bytes:t})=>a.createElement(s.A,null,a.createElement(l.A,{color:"secondary",size:"body"},a.createElement(o.sA,{id:"COMMON_DOWN_PKTS_BYTES"})),a.createElement(l.A,{color:"tertiary",size:"body"},e&&t?a.createElement(a.Fragment,null,a.createElement(r.A,{size:"body",type:"number",input:e,color:"tertiary"})," / ",(0,i.z3)(t)):"- / -")))},123786:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(296540),l=n(927099),r=n(777916),i=n(137298),o=n(699784),s=n(360113);const c=(0,a.memo)(({tx_packets:e,tx_bytes:t})=>a.createElement(s.A,null,a.createElement(l.A,{color:"secondary",size:"body"},a.createElement(o.sA,{id:"COMMON_UP_PKTS_BYTES"})),a.createElement(l.A,{color:"tertiary",size:"body"},e&&t?a.createElement(a.Fragment,null,a.createElement(r.A,{size:"body",type:"number",input:e,color:"tertiary"})," / ",(0,i.z3)(t)):"- / -")))},141046:(e,t,n)=>{n.d(t,{A:()=>a});const a=(e,t)=>!!t.current&&e.composedPath().includes(t.current)},146784:(e,t,n)=>{n.d(t,{A:()=>A});var a=n(296540),l=n(349424),r=n(217439),i=n(383653),o=n(568560),s=n(22169),c=n(294303),m=n(699784),d=n(348466),E=n(360113);const A=(0,a.memo)(({ipv6_address:e=[],wan_dhcpv6_pd_size:t})=>{const{globalAddresses:n,linkLocalAddress:A}=(0,a.useMemo)(()=>{const t=[];let n=null;for(let a=0;a<e.length;a+=1){const r=e[a];new l.Address6(r).isLinkLocal()?n=r?.split(d.Ed)?.[0]:t.push(r.split(d.Ed)?.[0])}return{globalAddresses:t,linkLocalAddress:n}},[e]);return n.length?a.createElement(a.Fragment,null,a.createElement(E.A,null,a.createElement(r.A,{color:"text-2",size:"medium"},a.createElement(m.sA,{id:"COMMON_IPV6_ADDRESS"})),a.createElement(o.A,{ipv6:n,size:"medium",color:"text-3"})),t?a.createElement(E.A,null,a.createElement(r.A,{color:"text-2",size:"medium"},a.createElement(m.sA,{id:"COMMON_IPV6_PREFIX"})),a.createElement(c.A,{flex:"1",minWidth:"0",justifyContent:"flex-end"},a.createElement(s.A,{ipv6:[`${(0,i.Gh)(n[0],t)}/${t}`],color:"text-3",size:"medium"}))):null,A?a.createElement(E.A,null,a.createElement(r.A,{color:"text-2",size:"medium"},a.createElement(m.sA,{id:"COMMON_IPV6_LINK_LOCAL"})),a.createElement(o.A,{ipv6:[A],size:"medium",color:"text-3"})):null):null})},245135:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ve});var a,l=n(296540),r=n(860631),i=n(617048),o=n(780811),s=n(837612),c=n(768195),m=n(971492),d=n(328787),E=n(32100),A=n(469733),u=n(325898),p=n(963070),_=n(217439),C=n(705145),I=n(628291),v=n(178233),h=n(6510),y=n(596441),O=n(398300),b=n(566723),g=n(598447),M=n(294303),N=n(6176),f=n(689965),D=n(845030),k=n(699784),T=n(444232);!function(e){e.NAME="name",e.SIGNAL="signal",e.LINK_QUALITY="linkQuality"}(a||(a={}));const x=({active_sta_table:e})=>{const t=(0,A.useDispatch)(),{motif:n}=(0,u.A)(),r=(0,A.useSelector)(T.Ib),i=e.map(({mac:e,throughput:t,signal:n,linkscore:a},l)=>{const i=r.get(e);return{id:`${e}-${l}`,mac:e,name:i?.name,model:i?.model,type:i?.type,throughput:t,signal:n,linkQuality:a}}),o=(0,l.useCallback)(({mac:e})=>{t((0,D.XP)({type:O.H.DEVICE,id:e}))},[t]),s=[{id:a.NAME,sortable:!1,minWidth:120,label:l.createElement(k.sA,{id:"DEVICE_MESH_CHILD"}),renderCell:({name:e,model:t,mac:n})=>l.createElement(M.A,{alignItems:"center",justifyContent:"center",gap:b.kc},l.createElement(M.A,{alignItems:"center",justifyContent:"center",minWidth:25,maxWidth:25,height:25},l.createElement(N.A,{model:t})),l.createElement(C.A,{isTruncated:!0,color:"inherit",size:"medium"},(0,h.Q)({name:e,model:t,mac:n})))},{id:a.SIGNAL,sortable:!1,minWidth:75,label:l.createElement(k.sA,{id:"COMMON_SIGNAL"}),renderCell:({signal:e})=>void 0!==e?l.createElement(g.A,{signal:e}):l.createElement(_.A,{color:"inherit",size:"medium"},l.createElement(k.sA,{id:"COMMON_FALLBACK"}))},{id:a.LINK_QUALITY,label:l.createElement(k.sA,{id:"COMMON_LINK_QUALITY"}),renderCell:({linkQuality:e})=>l.createElement(_.A,{color:"inherit",size:"medium",style:{color:e?(0,I.L)(e,n):void 0}},e?(0,v.A)(e):l.createElement(k.sA,{id:"COMMON_FALLBACK"})),minWidth:75,sortable:!1}];return l.createElement(f.A,null,l.createElement(M.A,{height:"100%",flexDirection:"column"},l.createElement(p.A,{items:i,disableColumnFilters:!0,columns:s,rowHeight:y.I.ROW_HEIGHT,rowOffset:0,onRowClick:o,truncateHeaderCells:!0})))};var L=n(532419),R=n(855913),w=n(86571);const S=({activeItem:e})=>{const t=(0,A.useSelector)(L.ID);return l.createElement(f.A,{type:f.I.ACCORDION,items:[{id:"uplink",label:l.createElement(w.A,{id:"COMMON_PARENT_DEVICE"}),openByDefault:!0,renderContent:()=>l.createElement(R.A,{activeItem:e,devices:t})}]})};var z=n(927099),P=n(71479),H=n(370969),F=n(243322),K=n(602197),V=n(218234),G=n(683086),W=n(281884),B=n(236037),$=n(130648),U=n(188912),Y=n(780803);const j=(0,P.A)("div")`
  padding: ${b.YC};
`,q=({activeItem:e,activeItem:{mac:t,model:n,deviceState:a=K.g.CONNECTED,uplink:r,peer_to_peer_mode:i,port_table:m=[],radio_table:d,radio_table_stats:E,downlink_table:A}})=>{const u=i===c.tO.AP&&r?.type===c.au.WIRE,p=(0,l.useMemo)(()=>(0,o.DAR)({model:n}),[n]),_=(0,o.sit)(e),C=(0,s.YP)(e),I=(0,l.useMemo)(()=>(0,W.H)(a,r?.type),[a,r?.type]),v=(0,o.Fh5)(e),y=(0,l.useMemo)(()=>!v&&!p,[v,p]);return l.createElement(f.A,null,l.createElement(M.A,{height:"100%",flexDirection:"column",gap:b.kc},l.createElement(M.A,{gap:b.kc},l.createElement(j,null,l.createElement(N.A,{width:32,height:32,model:n})),l.createElement(M.A,{flexDirection:"column"},l.createElement(z.A,{weight:"bold",size:"body"},(0,h.Lm)(n)),r?l.createElement(l.Fragment,null,u?l.createElement(M.A,{alignItems:"center"},l.createElement(F.A,{color:"text-3"},l.createElement(k.sA,{id:"COMMON_CONNECTED_TO"}))," ",l.createElement(H.E,{device:e,maxWidth:195,separatePortNumber:!0})):null,u?null:l.createElement(U.A,{activeItem:e,connectionStatus:I})):null)),r?.type===c.au.WIRELESS?l.createElement($.A,{activeItem:e,connectionStatus:I}):null,C&&!y?l.createElement(Y.A,{radio_table:d,radio_table_stats:E,downlink_table:A,isOnlyWirelessMeshClientDevice:p,isPtmpDevice:_,uplink:r,paddingBottom:m.length>1?b.kc:void 0}):null,m.length>1?l.createElement(V.A,{activeItem:e,disableOnPortClick:!0,showFullScreenDiagramButton:!1,useBubbleWrapper:!1,multipleDisplayedDevicesData:[],isStacking:!1}):null,l.createElement(B.A,{activeItem:e}),m.length?l.createElement(G.A,{mac:t}):null))};var Q=n(146784),X=n(479369),Z=n(321235),J=n(999063),ee=n(329708),te=n(32753),ne=n(723544),ae=n(205830),le=n(400242),re=n(500045);const ie={[c.tO.AP]:l.createElement(k.sA,{id:"DEVICE_PARENT"}),[c.tO.STATION]:l.createElement(k.sA,{id:"DEVICE_CHILD"})},oe=({mac:e,model:t,ip:n,ipv6:a,lan_ip:r,displayable_version:i,uptime:s,sys_stats:m,peer_to_peer_mode:d,systemStatsMem:E,ubb_pairing_state:u,type:p})=>{const _=(0,A.useDispatch)(),C=(0,l.useMemo)(()=>(0,o.Xuz)({model:t})||(0,o.CdX)({model:t}),[t]),I=(0,o.Fh5)({ubb_pairing_state:u,peer_to_peer_mode:d,type:p,model:t}),v=d||(I?c.tO.AP:c.tO.STATION),h=!C;return(0,l.useEffect)(()=>{_((0,X.y)())},[_]),l.createElement(f.A,null,l.createElement(M.A,{height:"100%",flexDirection:"column"},l.createElement(ee.A,{model:t}),l.createElement(le.A,{ip:n,lan_ip:r}),l.createElement(Q.A,{ipv6_address:a}),l.createElement(ne.A,{mac:e}),l.createElement(re.A,{displayable_version:i}),h?l.createElement(Z.A,{id:"DEVICE_MODE"},ie[v]):null,l.createElement(J.A,{uptime:s}),l.createElement(te.A,{systemStatsMem:E}),l.createElement(ae.A,{sys_stats:m,withTooltip:!0})))};var se=n(564985),ce=n(128195);const me=({activeItem:e})=>{const t=(0,A.useSelector)((0,l.useMemo)(()=>(0,L.I4)(e.mac),[e.mac])),{radio_table:n}=e,a=(0,l.useMemo)(()=>(0,o.CdX)({model:e.model,type:e.type}),[e.model,e.type]),r=!a,i=(0,o.IOl)(e)||(0,o.vyh)({model:e.model,type:e.type})||a,s=a,c=(0,l.useMemo)(()=>(0,o.CdX)({model:t?.model,type:t?.type}),[t?.model,t?.type]);return l.createElement(f.A,{type:f.I.ACCORDION,items:[{id:"radios",openByDefault:!0,label:l.createElement(w.A,{id:"DEVICE_HEADER_AIR_STATS"}),renderContent:()=>l.createElement(M.A,{flexDirection:"column",gap:b.kc},r&&!c?l.createElement(l.Fragment,null,l.createElement(z.A,{weight:"bold",size:"body"},l.createElement(k.sA,{id:"COMMON_RADIO_BAND_NA"})),l.createElement(ce.A,{activeItem:e,radioType:se.sx.RADIO_NA,hideChUtil:!0,hideRadio:!0})):null,i&&!s?l.createElement(l.Fragment,null,l.createElement(z.A,{weight:"bold",size:"body"},l.createElement(k.sA,{id:"DEVICE_HEADER_RADIO60G_SHORT"})),l.createElement(ce.A,{activeItem:e,radioType:se.sx.RADIO_AD,hideChUtil:!0,hideRadio:!0})):null,i&&s?(n||[]).filter(e=>e.radio===se.sx.RADIO_AD).map(t=>l.createElement("div",{key:t.name},l.createElement(z.A,{weight:"bold",size:"body"},l.createElement(k.sA,{id:"DEVICE_HEADER_RADIO60G_SHORT"})),l.createElement(ce.A,{activeItem:e,radioType:t.radio,radioName:t.name,hideChUtil:!0,hideRadio:!0}))):null)}]})};var de=n(150556),Ee=n(782558),Ae=n(336549),ue=n(806720),pe=n(144367),_e=n(53715);const Ce=({activeItem:e})=>{const{active_sta_table:t}=e,n=t?.[0],a=(0,A.useSelector)((0,l.useMemo)(()=>(0,T.Hh)(n.mac),[n.mac]));return n?l.createElement(f.A,{type:f.I.ACCORDION,items:[{id:"radios",openByDefault:!0,label:l.createElement(w.A,{id:"COMMON_MESH_PARENT"}),renderContent:()=>l.createElement(M.A,{flexDirection:"column"},a?l.createElement(_e.A,{uplinkMac:n.mac,uplinkName:(0,h.Q)(a),label:"COMMON_DEVICE"}):l.createElement(Z.A,{id:"COMMON_DEVICE"},l.createElement(_.A,{color:"text-3",size:"medium"},l.createElement(k.sA,{id:"COMMON_FALLBACK"}))),l.createElement(Ae.A,{signal:n?.signal}),l.createElement(de.A,{tx_rate:n.tx_rate}),l.createElement(Ee.A,{rx_rate:n.rx_rate}),l.createElement(pe.A,{capacity:n.capacity,withTooltip:!0}),l.createElement(ue.A,{distance:n.distance}))}]}):null};var Ie=n(772317);const ve=({activeItem:e,activeItem:{adopted:t,ip:n,config_network:a,peer_to_peer_mode:A,stat:u,mac:p,type:_,uplink:C,uptime:I,last_seen:v,radio_table_stats:h,deviceState:y,model:O,ipv6:b,lan_ip:g,displayable_version:M,sys_stats:N,ubb_pairing_state:f,active_sta_table:D,shortname:k}})=>{const T=(0,s.YP)(e),L=(0,r.CW)(e,m.A.DFS_BACKGROUND_SCAN),R=(0,o.Fh5)(e)&&C?.type===c.au.WIRE;return l.createElement(l.Fragment,null,l.createElement(q,{activeItem:e}),l.createElement(d.A,{ip:n,adopted:t,config_network:a}),l.createElement(i.A,{radio_table_stats:h,isZeroWaitDfsSupported:L}),T?l.createElement(E.A,{stat:u,mac:p,uplink:C,uptime:I,last_seen:v,deviceState:y}):null,T?l.createElement(l.Fragment,null,R&&D?.length?l.createElement(x,{active_sta_table:D}):null,l.createElement(oe,{mac:p,model:O,ip:n,ipv6:b,lan_ip:g,displayable_version:M,uptime:I,sys_stats:N,peer_to_peer_mode:A,systemStatsMem:e["system-stats"]?.mem,type:_,ubb_pairing_state:f}),R&&(e.uplink?.mac||e.uplink?.uplink_mac)?l.createElement(S,{activeItem:e}):null,!R&&D?.length?l.createElement(Ce,{activeItem:e}):null,l.createElement(me,{activeItem:e}),l.createElement(Ie.A,{shortname:k})):null)}},284428:(e,t,n)=>{n.d(t,{Im:()=>s,iL:()=>c,mQ:()=>i,pv:()=>r,q:()=>o});var a=n(296540),l=n(451449);function r(){return(0,a.useContext)(l.I)}function i(){return r().fields}function o(){return r().tooltipPopovers}function s(){return r().tooltipIcons}function c(){return r().labels}},329708:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(296540),l=n(927099),r=n(6510),i=n(699784),o=n(360113);const s=({model:e})=>a.createElement(o.A,null,a.createElement(l.A,{color:"secondary",size:"body"},a.createElement(i.sA,{id:"COMMON_MODEL"})),a.createElement(l.A,{color:"tertiary",size:"body"},(0,r.Lm)(e)))},353899:(e,t,n)=>{n.d(t,{A:()=>A});var a=n(296540);(0,n(349005).A)(".tooltip-container__vRGVdKCu{display:inline-block}.tooltip__vRGVdKCu{border-radius:8px;cursor:default;padding:0}.tooltip__vRGVdKCu .content__vRGVdKCu{padding-bottom:12px;padding-top:8px}.modal-header__vRGVdKCu{font-family:var(--desktop-font-family-default);font-size:var(--desktop-font-size-medium);font-weight:var(--desktop-font-weight-semibold);line-height:20px}");var l=n(722860),r=n(159318),i=n(325898),o=n(141046),s=n(271856),c=n(255905),m=n(136283);const d=(0,l.c)({"tooltip-container":"tooltip-container__vRGVdKCu",tooltip:"tooltip__vRGVdKCu",content:"content__vRGVdKCu","modal-header":"modal-header__vRGVdKCu"}),E=100*r.Uq["desktop-sizing-base"],A=e=>{const{children:t,position:n,portal:l,offset:r,autoPosition:A,tooltipClassName:u,width:p=E,title:_,headerClassName:C,contentClassName:I,footerClassName:v,body:h,actions:y=[],allowOverflow:O,onRequestClose:b,showHeaderClose:g=!0,motif:M,rootClose:N=!0,isOpen:f,className:D,style:k,...T}=e,x=(0,a.useRef)(null),L=(0,a.useRef)(null),[R,w]=(0,a.useState)(!1),{motif:S}=(0,i.A)(M),z="boolean"==typeof f,P=y.map(({onClick:e,...t})=>({...t,onClick:t=>e&&e(t,w)})),H={padding:0,margin:0,...k},F=(0,a.useCallback)(e=>b?b(e,w):w(!1),[b,w]);return(0,a.useEffect)(()=>{const e=e=>{!(0,o.A)(e,L)&&N&&F(e)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[z,F,N]),a.createElement(s.A,{ref:L,isOpen:z?f:R,className:d.concat(D)("tooltip-container"),tooltipClassName:d.concat(u)("tooltip"),maxWidth:E,width:p,onClick:e=>{z||(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),w(!0))},position:n,portal:l,offset:r,motif:S,autoPosition:A,isInteractive:!0,description:a.createElement("div",{ref:x,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},style:H},a.createElement(c.A.Provider,{value:{motif:"dark"}},a.createElement(m.A,{title:_,headerClassName:d.concat(C)("modal-header"),contentClassName:d.concat(I)("content"),footerClassName:v,actions:P,allowOverflow:O,onRequestClose:g?F:void 0},h))),...T},t)}},424135:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(296540),l=n(566723),r=n(294303);const i=({children:e,tooltip:t})=>a.createElement(r.A,{maxWidth:"100%",overflow:"hidden",gap:l.YC,alignItems:"center"},a.createElement(r.A,{flex:1,overflow:"hidden"},e),t)},448951:(e,t,n)=>{n.d(t,{A:()=>a});const a=function(e,t){return e>t}},451449:(e,t,n)=>{n.d(t,{I:()=>a});const a=(0,n(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},500045:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(296540),l=n(927099),r=n(699784),i=n(360113);const o=({displayable_version:e,flexProps:t})=>e?a.createElement(i.A,{flexProps:t},a.createElement(l.A,{color:"secondary",size:"body"},a.createElement(r.sA,{id:"COMMON_DEVICE_VERSION"})),a.createElement(l.A,{color:"tertiary",size:"body"},e)):null},530813:(e,t,n)=>{n.d(t,{A:()=>A,d:()=>E});var a=n(296540),l=n(217439),r=n(705145),i=n(71479),o=n(311785),s=n(566723),c=n(699784),m=n(795097),d=n(294303);const E=(0,i.A)(m.A,(0,o.A)("showListMarkers","gap"))`
  padding-left: ${({showListMarkers:e})=>e?s.Ln:0};
  display: flex;
  flex-direction: column;
  gap: ${({gap:e})=>e??s.YC};

  > li {
    list-style-type: ${({showListMarkers:e})=>e?"disc":"none"};
  }
`;const A=function({items:e,getItemKey:t,renderItem:n,maxItemCount:i=20,renderShowMore:o,showListMarkers:m,listGap:A}){return a.createElement(d.A,{flexDirection:"column",gap:s.YC},a.createElement(E,{showListMarkers:m,gap:A},e.slice(0,i).map((e,l)=>a.createElement("li",{key:t(e,l)},a.createElement(r.A,{variant:"inherit",isTruncated:!0},n(e))))),i&&e.length>i?o?o(e):a.createElement(l.A,{variant:"inherit"},a.createElement(c.sA,{id:"COMMON_X_MORE",values:{count:e.length-i}})):null)}},568560:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(469733),l=n(296540),r=n(217439),i=n(895795),o=n(383653),s=n(742920),c=n(115829),m=n(39705),d=n(294303),E=n(675359),A=n(699784),u=n(348466);const p=({ipv6:e=[],enabled:t=!0,size:n="inherit",color:p="inherit",showOnlyPrefix:_=!1})=>{const C=(0,a.useDispatch)(),I=(0,l.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{C((0,E.ox)({icon:s.C.success,message:"COMMON_COPIED_TO_CLIPBOARD"}))})},[C]),v=(0,l.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),I(e)},[I]),h=(0,l.useMemo)(()=>(e=>{const t=e=>(0,o.G8)(e)?0:(0,o.ZV)(e)?1:2;return e.sort((e,n)=>t(e)-t(n))})(e||[]).map(e=>{const[t,n]=e.split(u.Ed);return _?`${(0,o.Gh)(t,Number(n))}/${n}`:(0,o.z2)(e)}),[e,_]),y=h?.[0];return y?l.createElement(d.A,{maxWidth:"100%",justifyContent:"flex-end"},l.createElement(c.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?p:"disabled",size:n},y),h?.length>1?l.createElement(m.A,{items:h,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>l.createElement(l.Fragment,null,e,l.createElement(i.A,{size:"original",actionable:!0,onClick:t=>v(e,t)})),renderMultipleItemsSummary:()=>null}):l.createElement(i.A,{size:"original",actionable:!0,onClick:e=>v(y,e)})):l.createElement(r.A,{size:n,color:t?p:"disabled"},l.createElement(A.sA,{id:"COMMON_FALLBACK"}))}},596441:(e,t,n)=>{n.d(t,{I:()=>a});const a={HEADER_HEIGHT:32,ROW_HEIGHT:32,EDIT_FIELD_HEIGHT:36,getHeight(e,t,n,a){return Math.min((a||this.ROW_HEIGHT)*e+(n??this.HEADER_HEIGHT),(a||this.ROW_HEIGHT)*t+(n??this.HEADER_HEIGHT))},getEditContainerHeight(e,t,n){return Math.min((n||this.EDIT_FIELD_HEIGHT)*e,(n||this.EDIT_FIELD_HEIGHT)*t)}}},598447:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(296540),l=n(217439),r=n(38937),i=n(699784);const o=({signal:e,...t})=>e?a.createElement(l.A,{size:"medium",color:(0,r.a5)(e),...t},e," ",a.createElement(i.sA,{id:"COMMON_UNIT_DBM"})):a.createElement(l.A,{size:"medium",color:"inherit",...t},a.createElement(i.sA,{id:"COMMON_FALLBACK"}))},617048:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(296540),l=n(217439),r=n(741568),i=n(551753),o=n(699784),s=n(564985);const c=({radio_table_stats:e=[],isZeroWaitDfsSupported:t=!1})=>t||e.find(e=>e.radio===s.sx.RADIO_NA)?.state!==r.A.DFS_WAIT?null:a.createElement(i.A,null,a.createElement(l.A,{weight:"bold"},a.createElement(o.sA,{id:"DEVICE_PROPERTIES_AP_DFS_SCAN_WARNING_TITLE"})),a.createElement("div",null,a.createElement(l.A,{variant:"body-primary"},a.createElement(o.sA,{id:"DEVICE_PROPERTIES_AP_DFS_SCAN_WARNING_DESCRIPTION"}))))},723544:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(296540),l=n(927099),r=n(699784),i=n(360113);const o=({mac:e,compact:t=!1})=>e?a.createElement(i.A,{compact:t},a.createElement(l.A,{color:"secondary",size:"body"},a.createElement(r.sA,{id:"COMMON_MAC_ADDRESS"})),a.createElement(l.A,{color:"tertiary",size:"body"},e)):null},766624:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(296540),l=n(271856),r=n(709690),i=n(284428),o=n(566723);const s=({description:e,isInteractive:t,portal:n=!0,cursorType:s,title:c,position:m,width:d,iconProps:E,disabled:A=!1})=>{const u=(0,i.Im)()||A,p=(0,i.q)();return a.createElement(l.A,{description:e,portal:n,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:s,title:c,position:m,width:d,disableHover:p},a.createElement(r.A,{isActive:!0,size:"original",opacity:u?o.xN:void 0,...E}))}},772559:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(761882);const l=function(e,t,n){for(var l=-1,r=e.length;++l<r;){var i=e[l],o=t(i);if(null!=o&&(void 0===s?o==o&&!(0,a.A)(o):n(o,s)))var s=o,c=i}return c}},780803:(e,t,n)=>{n.d(t,{A:()=>g});var a=n(296540),l=n(943887),r=n(741568),i=n(939701),o=n(294303),s=n(170459),c=n(768195),m=n(927099),d=n(118818),E=n(943805),A=n(66648),u=n(811015),p=n(522453),_=n(699784);const C=10,I=210,v=40,h=45;var y;!function(e){e.ACTIVE="ACTIVE",e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED"}(y||(y={}));const O={[y.ACTIVE]:"success",[y.CONNECTED]:"warning",[y.DISCONNECTED]:"neutral"},b=({channel:e,ht:t,radio:n,mimo:l,standard:r,status:i,isMesh:s})=>a.createElement(p.v$,{disabled:i===y.DISCONNECTED},a.createElement(A.gJ,{width:"100%"},a.createElement(o.A,{width:C,justifyContent:"center",alignContent:"center"},a.createElement(d.A,{size:"small",variant:O[i]||O[y.DISCONNECTED]})),a.createElement(o.A,{width:I},a.createElement(m.A,{size:"body",weight:"bold"},void 0!==e?a.createElement(_.sA,{id:"COMMON_CHANNEL_RADIO_CHANNEL",values:{channel:e}}):a.createElement(_.sA,{id:"COMMON_FALLBACK"})),a.createElement(m.A,{size:"body"}," (",n&&E.A[n.toUpperCase()]?.frequency||a.createElement(_.sA,{id:"COMMON_FALLBACK"}),", ",t||a.createElement(_.sA,{id:"COMMON_FALLBACK"})," ",a.createElement(_.sA,{id:"COMMON_UNIT_MHZ"}),")"),s?a.createElement(u.A,null):null),a.createElement(o.A,{width:v},a.createElement(m.A,{size:"body"},l||a.createElement(_.sA,{id:"COMMON_FALLBACK"}))),a.createElement(o.A,{width:h},a.createElement(m.A,{size:"body"},r||a.createElement(_.sA,{id:"COMMON_FALLBACK"}))))),g=({radio_table:e=[],radio_table_stats:t=[],downlink_table:n=[],isPtmpDevice:m=!1,isOnlyWirelessMeshClientDevice:d=!1,uplink:E,paddingBottom:A})=>{const u=(0,a.useCallback)((e,t)=>E?.type===c.au.WIRELESS&&e===E?.radio&&t===E?.radio_name,[E?.type,E?.radio,E?.radio_name]),p=(0,a.useMemo)(()=>[...e].filter(({radio:e})=>e).sort(s.j3).map(({radio:r,ht:o,radio_caps:c,is_11ax:d,is_11be:E,name:A})=>{const p=m?n.filter(e=>e.name===A):n.filter(e=>e.radio===r);let _=y.DISCONNECTED;return p?.some(e=>e.active)?_=y.ACTIVE:p?.some(e=>void 0!==e.active&&!e.active)&&(_=y.CONNECTED),a.createElement(b,{key:`${r}-${A}`,radio:r,channel:a.createElement(i.A,{name:A,radio_table:e,radio_table_stats:t}),ht:(0,s.Aq)({radio:r,ht:o}),mimo:(0,s.e7)(c),standard:(0,l.lT)({radio:r,is_11ax:d,is_11be:E}),status:_,isMesh:u(r,A)})}),[n,m,e,t,u]),_=(0,a.useMemo)(()=>[...e].filter(({radio:e})=>e).sort(s.j3).map(({radio:n,ht:o,radio_caps:c,is_11ax:m,is_11be:d,name:E})=>{const A=t.find(e=>e.name===E),p=A?.state===r.A.RUN?y.ACTIVE:y.DISCONNECTED;return a.createElement(b,{key:`${n}-${E}`,radio:n,channel:a.createElement(i.A,{name:E,radio_table:e,radio_table_stats:t}),ht:A?.bw||(0,s.Aq)({radio:n,ht:o}),mimo:(0,s.e7)(c),standard:(0,l.lT)({radio:n,is_11ax:m,is_11be:d}),status:p,isMesh:u(n,E)})}),[e,t,u]);return a.createElement(o.A,{flexDirection:"column",paddingBottom:A},d?_:p)}},795097:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(71479),l=n(566723);const r=(0,a.A)("ul")`
  padding-left: ${l.Er};
  margin-bottom: 0;
  margin-top: 0;
`},819127:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(296540),l=n(766624),r=n(530813);const i=function({items:e,getItemKey:t,renderItem:n,maxItemCount:i,renderShowMore:o,showListMarkers:s,title:c,position:m,isInteractive:d,cursorType:E,listGap:A}){return a.createElement(l.A,{title:c,position:m,isInteractive:d,cursorType:E,description:a.createElement(r.A,{items:e,getItemKey:t,renderItem:n,maxItemCount:i,listGap:A,renderShowMore:o,showListMarkers:s})})}},855913:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(469733),l=n(296540),r=n(294303),i=n(699784),o=n(927806),s=n(768195),c=n(532419),m=n(150556),d=n(782558),E=n(123786),A=n(336549),u=n(927099),p=n(360113);const _=({activeItem:e,devices:t})=>{const{poe_power:n}=(0,o.$Y)({device:e,devices:t})||{poe_power:void 0};return l.createElement(p.A,null,l.createElement(u.A,{color:"secondary",size:"body"},l.createElement(i.sA,{id:"DEVICE_PROPERTY_UPLINK_POWER"})),l.createElement(u.A,{color:"tertiary",size:"body"},l.createElement(i.sA,{...+n>0?{id:"COMMON_UNIT_WATTS_SHORT",values:{value:n}}:{id:"COMMON_FALLBACK"}})))};var C=n(258117),I=n(120401),v=n(53715);const h=({activeItem:e,devices:t})=>{const{formatMessage:n}=(0,i.tz)(),u=(0,a.useSelector)((0,l.useMemo)(()=>(0,c.I4)(e.mac),[e.mac])),p=(0,o.q$)(e)||{};return l.createElement(r.A,{height:"100%",flexDirection:"column"},u?.mac?l.createElement(v.A,{uplinkMac:u.mac,uplinkName:(0,o.Jz)(e,u,n),label:"COMMON_DEVICE"}):null,p.type===s.au.WIRE?l.createElement(l.Fragment,null,l.createElement(C.A,{uplink:p}),l.createElement(_,{activeItem:e,devices:t})):l.createElement(l.Fragment,null,l.createElement(A.A,{signal:p.signal}),l.createElement(m.A,{tx_rate:p.tx_rate}),l.createElement(d.A,{rx_rate:p.rx_rate})),l.createElement(I.A,{rx_packets:p.rx_packets,rx_bytes:p.rx_bytes}),l.createElement(E.A,{tx_packets:p.tx_packets,tx_bytes:p.tx_bytes}))}}}]);