"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[35242],{522453(e,t,a){a.d(t,{Ay:()=>O,v$:()=>N});var r=a(296540),n=a(469733),i=a(271856),l=a(71479),E=a(132196),d=a(811822),A=a(955161),c=a(916537),s=a(602021),o=a(566723);const _=(0,l.A)("div")`
  pointer-events: none;
`,m=E.AH`
  opacity: ${o.xN};
`,C=({warning:e,children:t})=>{return e?r.createElement(A.A,{condition:!!e,wrapper:(a=e,e=>r.createElement(i.A,{description:(0,d.Kg)(a)?r.createElement(c.sA,{id:a}):a,portal:!0,isInteractive:!(0,d.Kg)(a)},r.createElement(_,null,e)))},t):r.createElement(r.Fragment,null,t);var a},N=({disabled:e,children:t})=>e?r.createElement(_,{className:m,style:{width:"100%"}},t):r.createElement(r.Fragment,null,t),O=({disableWithWarning:e,children:t})=>{const a=(0,n.useSelector)(s.EL);return r.createElement(C,{warning:e},e?r.createElement("div",{className:a?void 0:m},t):t)}},811015(e,t,a){a.d(t,{A:()=>s});var r=a(296540),n=a(822336),i=a(705145),l=a(57527),E=a(71479),d=a(566723),A=a(916537);const c=(0,E.A)(l.A)`
  background-color: ${({theme:{themeName:e}})=>n.Ay[`desktop-color-green-06-${e}`]};
  margin-right: ${d.YC};
`,s=()=>r.createElement(c,null,r.createElement(i.A,{size:"small",color:"neutral-inverse"},r.createElement(A.sA,{id:"COMMON_MESH"})))},66648(e,t,a){a.d(t,{Ay:()=>T,KK:()=>L,gJ:()=>M});var r=a(296540),n=a(217439),i=a(822336),l=a(71479),E=a(860631),d=a(596441),A=a(943805),c=a(522453),s=a(916537),o=a(564985),_=a(765562),m=a(861951),C=a(811015),N=a(349107),O=a(294303),I=a(720572),u=a(115829);const L={CHANNEL:220,MIMO:40,STANDARD:55,CLIENTS:66},M=(0,l.A)(O.A)`
  height: ${d.I.ROW_HEIGHT-1}px;
  border-bottom: ${({theme:{themeName:e}})=>i.Ay[`desktop-border-divider-${e}`]};
  align-items: center;
  justify-content: space-between;
`,T=({channel:e,ht:t,radio:a,mimo:i,standard:l,disabled:d,mac:T,children:D,is_device_afc_supported:R,afc_enabled:h,afc_done:p,afc_initialize_timeout_at:P,is_device_outdoor_mode_supported:b,has_enabled_6Ghz:v,is_disabled_all_6ghz_radios:g,isMesh:S})=>{let B=null;const x=(0,E.gR)({afc_initialize_timeout_at:P});return a===o.sx.RADIO_6E&&b&&R&&d&&g&&v?B=r.createElement(s.sA,{id:"DEVICE_TRANSMIT_POWER_DISABLED_6GHZ_WARNING",values:{link:r.createElement(m.A,{mac:T},r.createElement(s.sA,{id:"COMMON_CLICK_TO_ENABLE"})),br:s.br}}):a===o.sx.RADIO_6E&&b&&R&&h&&void 0!==p&&!p&&!x&&!d&&v?B=r.createElement(s.sA,{id:"DEVICE_DID_NOT_RECEIVE_AFC_RESPONSE_WARNING",values:{link:r.createElement(N.A,{id:"COMMON_LEARN_MORE",href:_.A.afcArticle})}}):d&&(B=r.createElement(s.sA,{id:"DEVICE_RADIO_DISABLED_WARNING",values:{link:r.createElement(I.A,{mac:T,band:a},r.createElement(s.sA,{id:"COMMON_CLICK_TO_ENABLE"}))}})),r.createElement(c.Ay,{disableWithWarning:B},r.createElement(M,{width:"100%"},r.createElement(O.A,{width:L.CHANNEL},r.createElement(n.A,{weight:"bold"},r.createElement(s.sA,void 0!==e?{id:"COMMON_CHANNEL_RADIO_CHANNEL",values:{channel:e}}:{id:"COMMON_FALLBACK"})),r.createElement(u.A,{size:"medium"}," (",a&&A.A[a.toUpperCase()]?.frequency||r.createElement(s.sA,{id:"COMMON_FALLBACK"}),", ",t||r.createElement(s.sA,{id:"COMMON_FALLBACK"})," ",r.createElement(s.sA,{id:"COMMON_UNIT_MHZ"}),")"),S?r.createElement(C.A,null):null),r.createElement(O.A,{width:L.MIMO},r.createElement(n.A,null,i||r.createElement(s.sA,{id:"COMMON_FALLBACK"}))),r.createElement(O.A,{width:L.STANDARD},r.createElement(n.A,null,l||r.createElement(s.sA,{id:"COMMON_FALLBACK"}))),D))}},939701(e,t,a){a.d(t,{A:()=>l});var r=a(296540),n=a(916537),i=a(170459);const l=({name:e,radio_table:t,radio_table_stats:a})=>{const l=(0,i.ry)({name:e,radio_table:t,radio_table_stats:a});return r.createElement(r.Fragment,null,l&&"auto"!==l?l:r.createElement(n.sA,{id:"COMMON_AUTO"}))}},128195(e,t,a){a.d(t,{A:()=>s});var r=a(296540),n=a(178233),i=a(294303),l=a(678515),E=a(916537),d=a(170459),A=a(321235);const c=({activeItem:{radio_table:e,radio_table_stats:t,type:a,model:c,vap_table:s,stat:o},radioType:_,radioName:m,hideChUtil:C=!1,hideRadio:N=!1})=>{const{formatMessage:O}=(0,E.tz)(),{radio:I,radioStats:u}=(0,r.useMemo)(()=>({radio:e?.find(({radio:e,name:t})=>e===_&&(!m||t===m)),radioStats:t?.find(({radio:e})=>e===_)}),[e,t,m,_]),{channelUtilization:L,transmitPower:M}=(0,r.useMemo)(()=>({channelUtilization:(0,d.Lm)(t,u),transmitPower:(0,d.ZJ)(t,u,O)}),[t,u,O]),{totalPacketsRx:T,totalBytesRx:D,droppedPercentageRx:R,retryPercentageRx:h,totalPacketsTx:p,totalBytesTx:P,droppedPercentageTx:b,retryPercentageTx:v}=(0,r.useMemo)(()=>(({totalPackets:e,totalBytes:t,droppedPercentage:a,retryPercentage:r},{totalPackets:n,totalBytes:i,droppedPercentage:l,retryPercentage:E})=>({totalPacketsRx:e,totalBytesRx:t,droppedPercentageRx:a,retryPercentageRx:r,totalPacketsTx:n,totalBytesTx:i,droppedPercentageTx:l,retryPercentageTx:E}))((0,d.GI)(a,I,"rx",o),(0,d.GI)(a,I,"tx",o)),[a,I,o]);return r.createElement(i.A,{flexDirection:"column"},N?null:r.createElement(A.A,{id:"COMMON_CHANNEL"},I?r.createElement(l.A,{radio_table:e,radio_table_stats:t,model:c,vap_table:s,radio:I,hidePowerInfo:!0,textSize:"medium",textColor:"text-3"}):r.createElement(E.sA,{id:"COMMON_FALLBACK"})),r.createElement(A.A,{id:"DEVICE_PROPERTIES_LABEL_TX_EIRP"},M||r.createElement(E.sA,{id:"COMMON_FALLBACK"})),r.createElement(A.A,{id:"DEVICE_PROPERTIES_LABEL_TX_PKTS_BYTES"},p??r.createElement(E.sA,{id:"COMMON_FALLBACK"})," /"," ",P??r.createElement(E.sA,{id:"COMMON_FALLBACK"})),r.createElement(A.A,{id:"DEVICE_PROPERTIES_LABEL_RX_PKTS_BYTES"},T??r.createElement(E.sA,{id:"COMMON_FALLBACK"})," /"," ",D??r.createElement(E.sA,{id:"COMMON_FALLBACK"})),r.createElement(A.A,{id:"DEVICE_PROPERTIES_LABEL_TX_RETRY_DROPPED"},(0,n.l)(v)," / ",(0,n.l)(b)),r.createElement(A.A,{id:"DEVICE_PROPERTIES_LABEL_RX_RETRY_DROPPED"},(0,n.l)(h)," / ",(0,n.l)(R)),!C&&L?r.createElement(A.A,{id:"DEVICE_PROPERTIES_LABEL_CHANNEL_UTILIZATION"},`${L.total}% / ${L.selfRx}% / ${L.selfTx}%`):null)},s=({activeItem:e,...t})=>e?.radio_table?.length?r.createElement(c,{activeItem:e,...t}):null},321235(e,t,a){a.d(t,{A:()=>c});var r=a(296540),n=a(217439),i=a(705145),l=a(71479),E=a(916537),d=a(360113);const A=(0,l.A)(n.A)`
  white-space: nowrap;
`,c=({id:e,color:t,values:a,children:n})=>r.createElement(d.A,null,r.createElement(A,{color:"text-2",size:"medium"},r.createElement(E.sA,{id:e,values:a})),r.createElement(i.A,{color:t||"text-3",size:"medium",isTruncated:!0},n))},328787(e,t,a){a.d(t,{A:()=>o});var r=a(469733),n=a(296540),i=a(149133),l=a(855019),E=a(551753),d=a(916537),A=a(532419),c=a(765562);const s=({adopted:e})=>n.createElement(E.A,{link:c.A.virtualNetworkConnectivity},n.createElement(d.sA,{id:e?"DEVICE_FALLBACK_IP_ADOPTED_WITH_UNIFI_GATEWAY_WARNING":"DEVICE_FALLBACK_IP_NOT_ADOPTED_WARNING",values:{bold:n.createElement("strong",null,n.createElement(d.sA,{id:e?"DEVICE_WARNING_FALLBACK_IP":"DEVICE_WARNING_ADOPTION_FAILED"}))}})),o=({ip:e,adopted:t,config_network:a})=>(0,r.useSelector)(A.m9)&&(0,i.W5)(e)&&a?.type===l.NL.DHCP?n.createElement(s,{adopted:t}):null},617048(e,t,a){a.d(t,{A:()=>A});var r=a(296540),n=a(217439),i=a(741568),l=a(551753),E=a(916537),d=a(564985);const A=({radio_table_stats:e=[],isZeroWaitDfsSupported:t=!1})=>t||e.find(e=>e.radio===d.sx.RADIO_NA)?.state!==i.A.DFS_WAIT?null:r.createElement(l.A,null,r.createElement(n.A,{weight:"bold"},r.createElement(E.sA,{id:"DEVICE_PROPERTIES_AP_DFS_SCAN_WARNING_TITLE"})),r.createElement("div",null,r.createElement(n.A,{variant:"body-primary"},r.createElement(E.sA,{id:"DEVICE_PROPERTIES_AP_DFS_SCAN_WARNING_DESCRIPTION"}))))},780803(e,t,a){a.d(t,{A:()=>M});var r=a(296540),n=a(943887),i=a(741568),l=a(939701),E=a(294303),d=a(170459),A=a(768195),c=a(217439),s=a(506327),o=a(943805),_=a(66648),m=a(811015),C=a(522453),N=a(916537),O=a(566723);var I;!function(e){e.ACTIVE="ACTIVE",e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED"}(I||(I={}));const u={[I.ACTIVE]:"positive",[I.CONNECTED]:"notice",[I.DISCONNECTED]:"neutral"},L=({channel:e,ht:t,radio:a,mimo:n,standard:i,status:l,isMesh:d})=>r.createElement(C.v$,{disabled:l===I.DISCONNECTED},r.createElement(_.gJ,{width:"100%"},r.createElement(E.A,{width:10,justifyContent:"center",alignContent:"center"},r.createElement(s.A,{status:u[l]||u[I.DISCONNECTED]})),r.createElement(E.A,{width:210,gap:O.YC},r.createElement(c.A,{size:"medium",weight:"bold"},r.createElement(N.sA,void 0!==e?{id:"COMMON_CHANNEL_RADIO_CHANNEL",values:{channel:e}}:{id:"COMMON_FALLBACK"})),r.createElement(c.A,{size:"medium"}," (",a&&o.A[a.toUpperCase()]?.frequency||r.createElement(N.sA,{id:"COMMON_FALLBACK"}),", ",t||r.createElement(N.sA,{id:"COMMON_FALLBACK"})," ",r.createElement(N.sA,{id:"COMMON_UNIT_MHZ"}),")"),d?r.createElement(m.A,null):null),r.createElement(E.A,{width:40},r.createElement(c.A,{size:"medium"},n||r.createElement(N.sA,{id:"COMMON_FALLBACK"}))),r.createElement(E.A,{width:45},r.createElement(c.A,{size:"medium"},i||r.createElement(N.sA,{id:"COMMON_FALLBACK"}))))),M=({radio_table:e=[],radio_table_stats:t=[],downlink_table:a=[],isPtmpDevice:c=!1,isOnlyWirelessMeshClientDevice:s=!1,uplink:o,paddingBottom:_,isMloUplinkConnection:m=!1})=>{const C=(0,r.useCallback)((e,t)=>o?.type===A.au.WIRELESS&&e===o?.radio&&(t===o?.radio_name||s),[o?.type,o?.radio,o?.radio_name,s]),N=(0,r.useMemo)(()=>[...e].filter(({radio:e})=>e).sort(d.j3).map(({radio:i,ht:E,radio_caps:A,is_11ax:s,is_11be:o,name:_})=>{const m=a.filter(c?e=>e.name===_:e=>e.radio===i);let N=I.DISCONNECTED;return m?.some(e=>e.active)?N=I.ACTIVE:m?.some(e=>void 0!==e.active&&!e.active)&&(N=I.CONNECTED),r.createElement(L,{key:`${i}-${_}`,radio:i,channel:r.createElement(l.A,{name:_,radio_table:e,radio_table_stats:t}),ht:(0,d.Aq)({radio:i,ht:E}),mimo:(0,d.e7)(A),standard:(0,n.lT)({radio:i,is_11ax:s,is_11be:o}),status:N,isMesh:C(i,_)})}),[a,c,e,t,C]),O=(0,r.useMemo)(()=>[...e].filter(({radio:e})=>e).sort(d.j3).map(({radio:a,ht:E,radio_caps:A,is_11ax:c,is_11be:s,name:o})=>{const{state:_,bw:N}=t.find(e=>e.name===o)||{},O=_===i.A.RUN?I.ACTIVE:I.DISCONNECTED;return r.createElement(L,{key:`${a}-${o}`,radio:a,channel:r.createElement(l.A,{name:o,radio_table:e,radio_table_stats:t}),ht:(0,d.Aq)({radio:a,ht:E},{bw:N}),mimo:(0,d.e7)(A),standard:(0,n.lT)({radio:a,is_11ax:c,is_11be:s}),status:O,isMesh:C(a,o)&&!m})}),[e,t,C,m]);return r.createElement(E.A,{flexDirection:"column",paddingBottom:_},s?O:N)}}}]);