"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[95171],{756594(e,i,s){s.d(i,{Ay:()=>N,W9:()=>E,v$:()=>h});var t=s(274934),d=s(977872),r=s(548941),a=s(247816),n=s(409844),A=s(82939),l=s(408402),o=s(470070),_=s(897166),c=s(309130);const x=(0,a.A)("div")`
  pointer-events: none;
`,C=n.AH`
  opacity: ${c.xN};
`,E=({warning:e,children:i})=>{return e?(0,t.jsx)(l.A,{condition:!!e,wrapper:(s=e,e=>(0,t.jsx)(r.A,{description:(0,A.Kg)(s)?(0,t.jsx)(o.sA,{id:s}):s,portal:!0,isInteractive:!(0,A.Kg)(s),children:(0,t.jsx)(x,{children:e})})),children:i}):(0,t.jsx)(t.Fragment,{children:i});var s},h=({disabled:e,children:i})=>e?(0,t.jsx)(x,{className:C,style:{width:"100%"},children:i}):(0,t.jsx)(t.Fragment,{children:i}),N=({disableWithWarning:e,children:i})=>{const s=(0,d.d4)(_.EL);return(0,t.jsx)(E,{warning:e,children:e?(0,t.jsx)("div",{className:s?void 0:C,children:i}):i})}},398658(e,i,s){s.d(i,{A:()=>o});var t=s(274934),d=s(505817),r=s(179102),a=s(717218),n=s(263705),A=s(309130),l=s(470070);const o=()=>{const{themeName:e}=(0,n.u)();return(0,t.jsx)(a.A,{style:{backgroundColor:d.Ay[`desktop-color-green-06-${e}`],marginRight:A.YC},children:(0,t.jsx)(r.A,{size:"small",color:"neutral-inverse",children:(0,t.jsx)(l.sA,{id:"COMMON_MESH"})})})}},348871(e,i,s){s.d(i,{Ay:()=>M,KK:()=>m,gJ:()=>I});var t=s(274934),d=s(179102),r=s(505817),a=s(247816),n=s(586566),A=s(61322),l=s(345272),o=s(756594),_=s(470070),c=s(561614),x=s(726831),C=s(186086),E=s(398658),h=s(793442),N=s(100978),j=s(865655),O=s(156007);const m={CHANNEL:220,MIMO:40,STANDARD:55,CLIENTS:66},I=(0,a.A)(N.A)`
  height: ${A.I.ROW_HEIGHT-1}px;
  border-bottom: ${({theme:{themeName:e}})=>r.Ay[`desktop-border-divider-${e}`]};
  align-items: center;
  justify-content: space-between;
`,M=({channel:e,ht:i,radio:s,mimo:r,standard:a,disabled:A,mac:M,children:u,is_device_afc_supported:L,afc_enabled:T,afc_done:D,afc_initialize_timeout_at:R,is_device_outdoor_mode_supported:p,has_enabled_6Ghz:P,is_disabled_all_6ghz_radios:v,isMesh:b})=>{let g=null;const S=(0,n.gR)({afc_initialize_timeout_at:R});return s===c.sx.RADIO_6E&&p&&L&&A&&v&&P?g=(0,t.jsx)(_.sA,{id:"DEVICE_TRANSMIT_POWER_DISABLED_6GHZ_WARNING",values:{link:(0,t.jsx)(C.A,{mac:M,children:(0,t.jsx)(_.sA,{id:"COMMON_CLICK_TO_ENABLE"})}),br:_.br}}):s===c.sx.RADIO_6E&&p&&L&&T&&void 0!==D&&!D&&!S&&!A&&P?g=(0,t.jsx)(_.sA,{id:"DEVICE_DID_NOT_RECEIVE_AFC_RESPONSE_WARNING",values:{link:(0,t.jsx)(h.A,{id:"COMMON_LEARN_MORE",href:x.A.afcArticle})}}):A&&(g=(0,t.jsx)(_.sA,{id:"DEVICE_RADIO_DISABLED_WARNING",values:{link:(0,t.jsx)(j.A,{mac:M,band:s,children:(0,t.jsx)(_.sA,{id:"COMMON_CLICK_TO_ENABLE"})})}})),(0,t.jsx)(o.Ay,{disableWithWarning:g,children:(0,t.jsxs)(I,{width:"100%",children:[(0,t.jsxs)(N.A,{width:m.CHANNEL,alignItems:"center",children:[(0,t.jsx)(d.A,{weight:"bold",children:(0,t.jsx)(_.sA,void 0!==e?{id:"COMMON_CHANNEL_RADIO_CHANNEL",values:{channel:e}}:{id:"COMMON_FALLBACK"})}),(0,t.jsxs)(O.A,{size:"medium",children:[" (",s&&l.A[s.toUpperCase()]?.frequency||(0,t.jsx)(_.sA,{id:"COMMON_FALLBACK"}),", ",i||(0,t.jsx)(_.sA,{id:"COMMON_FALLBACK"})," ",(0,t.jsx)(_.sA,{id:"COMMON_UNIT_MHZ"}),")"]}),b?(0,t.jsx)(E.A,{}):null]}),(0,t.jsx)(N.A,{width:m.MIMO,children:(0,t.jsx)(d.A,{children:r||(0,t.jsx)(_.sA,{id:"COMMON_FALLBACK"})})}),(0,t.jsx)(N.A,{width:m.STANDARD,children:(0,t.jsx)(d.A,{children:a||(0,t.jsx)(_.sA,{id:"COMMON_FALLBACK"})})}),u]})})}},420240(e,i,s){s.d(i,{A:()=>a});var t=s(274934),d=s(470070),r=s(175650);const a=({name:e,radio_table:i,radio_table_stats:s})=>{const a=(0,r.ry)({name:e,radio_table:i,radio_table_stats:s});return(0,t.jsx)(t.Fragment,{children:a&&"auto"!==a?a:(0,t.jsx)(d.sA,{id:"COMMON_AUTO"})})}},431660(e,i,s){s.d(i,{A:()=>c});var t=s(274934),d=s(602086),r=s(662986),a=s(100978),n=s(92684),A=s(470070),l=s(175650),o=s(828196);const _=({activeItem:{radio_table:e,radio_table_stats:i,type:s,model:_,vap_table:c,stat:x},radioType:C,radioName:E,hideChUtil:h=!1,hideRadio:N=!1})=>{const{formatMessage:j}=(0,A.tz)(),{radio:O,radioStats:m}=(0,d.useMemo)(()=>({radio:e?.find(({radio:e,name:i})=>e===C&&(!E||i===E)),radioStats:i?.find(({radio:e})=>e===C)}),[e,i,E,C]),{channelUtilization:I,transmitPower:M}=(0,d.useMemo)(()=>({channelUtilization:(0,l.Lm)(i,m),transmitPower:(0,l.ZJ)(i,m,j)}),[i,m,j]),{totalPacketsRx:u,totalBytesRx:L,droppedPercentageRx:T,retryPercentageRx:D,totalPacketsTx:R,totalBytesTx:p,droppedPercentageTx:P,retryPercentageTx:v}=(0,d.useMemo)(()=>(({totalPackets:e,totalBytes:i,droppedPercentage:s,retryPercentage:t},{totalPackets:d,totalBytes:r,droppedPercentage:a,retryPercentage:n})=>({totalPacketsRx:e,totalBytesRx:i,droppedPercentageRx:s,retryPercentageRx:t,totalPacketsTx:d,totalBytesTx:r,droppedPercentageTx:a,retryPercentageTx:n}))((0,l.GI)(s,O,"rx",x),(0,l.GI)(s,O,"tx",x)),[s,O,x]);return(0,t.jsxs)(a.A,{flexDirection:"column",children:[N?null:(0,t.jsx)(o.A,{id:"COMMON_CHANNEL",children:O?(0,t.jsx)(n.A,{radio_table:e,radio_table_stats:i,model:_,vap_table:c,radio:O,hidePowerInfo:!0,textSize:"medium",textColor:"text-3"}):(0,t.jsx)(A.sA,{id:"COMMON_FALLBACK"})}),(0,t.jsx)(o.A,{id:"DEVICE_PROPERTIES_LABEL_TX_EIRP",children:M||(0,t.jsx)(A.sA,{id:"COMMON_FALLBACK"})}),(0,t.jsxs)(o.A,{id:"DEVICE_PROPERTIES_LABEL_TX_PKTS_BYTES",children:[R??(0,t.jsx)(A.sA,{id:"COMMON_FALLBACK"})," /"," ",p??(0,t.jsx)(A.sA,{id:"COMMON_FALLBACK"})]}),(0,t.jsxs)(o.A,{id:"DEVICE_PROPERTIES_LABEL_RX_PKTS_BYTES",children:[u??(0,t.jsx)(A.sA,{id:"COMMON_FALLBACK"})," /"," ",L??(0,t.jsx)(A.sA,{id:"COMMON_FALLBACK"})]}),(0,t.jsxs)(o.A,{id:"DEVICE_PROPERTIES_LABEL_TX_RETRY_DROPPED",children:[(0,r.l)(v)," / ",(0,r.l)(P)]}),(0,t.jsxs)(o.A,{id:"DEVICE_PROPERTIES_LABEL_RX_RETRY_DROPPED",children:[(0,r.l)(D)," / ",(0,r.l)(T)]}),!h&&I?(0,t.jsx)(o.A,{id:"DEVICE_PROPERTIES_LABEL_CHANNEL_UTILIZATION",children:`${I.total}% / ${I.selfRx}% / ${I.selfTx}%`}):null]})},c=({activeItem:e,...i})=>e?.radio_table?.length?(0,t.jsx)(_,{activeItem:e,...i}):null},275247(e,i,s){s.d(i,{A:()=>A});var t=s(274934),d=s(179102),r=s(320509),a=s(470070),n=s(664092);const A=({rx_rate:e})=>e>0?(0,t.jsxs)(n.A,{children:[(0,t.jsx)(d.A,{color:"text-2",size:"medium",children:(0,t.jsx)(a.sA,{id:"COMMON_RX_RATE"})}),(0,t.jsx)(d.A,{color:"text-3",size:"medium",children:(0,r.Up)(e)})]}):null},206945(e,i,s){s.d(i,{A:()=>A});var t=s(274934),d=s(179102),r=s(320509),a=s(470070),n=s(664092);const A=({tx_rate:e})=>e>0?(0,t.jsxs)(n.A,{children:[(0,t.jsx)(d.A,{color:"text-2",size:"medium",children:(0,t.jsx)(a.sA,{id:"COMMON_TX_RATE"})}),(0,t.jsx)(d.A,{color:"text-3",size:"medium",children:(0,r.Up)(e)})]}):null},828196(e,i,s){s.d(i,{A:()=>o});var t=s(274934),d=s(179102),r=s(775250),a=s(247816),n=s(470070),A=s(664092);const l=(0,a.A)(d.A)`
  white-space: nowrap;
`,o=({id:e,color:i,values:s,children:d})=>(0,t.jsxs)(A.A,{children:[(0,t.jsx)(l,{color:"text-2",size:"medium",children:(0,t.jsx)(n.sA,{id:e,values:s})}),(0,t.jsx)(r.A,{color:i||"text-3",size:"medium",isTruncated:!0,children:d})]})},781964(e,i,s){s.d(i,{A:()=>o,c:()=>l});var t=s(274934),d=s(602086),r=s(179102),a=s(331472),n=s(470070),A=s(664092);const l=({signal:e,color:i,size:s})=>(0,t.jsxs)(r.A,{size:s||"medium",color:i||(0,a.b5)(e),children:[e," ",(0,t.jsx)(n.sA,{id:"COMMON_UNIT_DBM"})]}),o=(0,d.memo)(e=>(0,t.jsxs)(A.A,{children:[(0,t.jsx)(r.A,{color:"text-2",size:"medium",children:(0,t.jsx)(n.sA,{id:"COMMON_SIGNAL"})}),(0,t.jsx)(l,{...e})]}))},872926(e,i,s){s.d(i,{A:()=>c});var t=s(274934),d=s(977872),r=s(810024),a=s(589650),n=s(748094),A=s(470070),l=s(754924),o=s(726831);const _=({adopted:e})=>(0,t.jsx)(n.A,{link:o.A.virtualNetworkConnectivity,children:(0,t.jsx)(A.sA,{id:e?"DEVICE_FALLBACK_IP_ADOPTED_WITH_UNIFI_GATEWAY_WARNING":"DEVICE_FALLBACK_IP_NOT_ADOPTED_WARNING",values:{bold:(0,t.jsx)("strong",{children:(0,t.jsx)(A.sA,{id:e?"DEVICE_WARNING_FALLBACK_IP":"DEVICE_WARNING_ADOPTION_FAILED"})})}})}),c=({ip:e,adopted:i,config_network:s})=>(0,d.d4)(l.m9)&&(0,r.W5)(e)&&s?.type===a.NL.DHCP?(0,t.jsx)(_,{adopted:i}):null},754895(e,i,s){s.d(i,{A:()=>l});var t=s(274934),d=s(179102),r=s(134123),a=s(748094),n=s(470070),A=s(561614);const l=({radio_table_stats:e=[],isZeroWaitDfsSupported:i=!1})=>i||e.find(e=>e.radio===A.sx.RADIO_NA)?.state!==r.A.DFS_WAIT?null:(0,t.jsxs)(a.A,{children:[(0,t.jsx)(d.A,{weight:"bold",children:(0,t.jsx)(n.sA,{id:"DEVICE_PROPERTIES_AP_DFS_SCAN_WARNING_TITLE"})}),(0,t.jsx)("div",{children:(0,t.jsx)(d.A,{variant:"body-primary",children:(0,t.jsx)(n.sA,{id:"DEVICE_PROPERTIES_AP_DFS_SCAN_WARNING_DESCRIPTION"})})})]})},931080(e,i,s){s.d(i,{A:()=>u});var t=s(274934),d=s(602086),r=s(293668),a=s(134123),n=s(420240),A=s(100978),l=s(175650),o=s(857780),_=s(179102),c=s(306212),x=s(345272),C=s(348871),E=s(398658),h=s(756594),N=s(470070),j=s(309130),O=s(156007);var m;!function(e){e.ACTIVE="ACTIVE",e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED"}(m||(m={}));const I={[m.ACTIVE]:"positive",[m.CONNECTED]:"notice",[m.DISCONNECTED]:"neutral"},M=({channel:e,ht:i,radio:s,mimo:d,standard:r,status:a,isMesh:n})=>(0,t.jsx)(h.v$,{disabled:a===m.DISCONNECTED,children:(0,t.jsxs)(C.gJ,{width:"100%",children:[(0,t.jsx)(A.A,{width:10,justifyContent:"center",alignContent:"center",children:(0,t.jsx)(c.A,{status:I[a]||I[m.DISCONNECTED]})}),(0,t.jsxs)(A.A,{width:210,gap:j.YC,alignItems:"center",children:[(0,t.jsx)(_.A,{size:"medium",weight:"bold",children:(0,t.jsx)(N.sA,void 0!==e?{id:"COMMON_CHANNEL_RADIO_CHANNEL",values:{channel:e}}:{id:"COMMON_FALLBACK"})}),(0,t.jsxs)(O.A,{size:"medium",children:[" (",s&&x.A[s.toUpperCase()]?.frequency||(0,t.jsx)(N.sA,{id:"COMMON_FALLBACK"}),", ",i||(0,t.jsx)(N.sA,{id:"COMMON_FALLBACK"})," ",(0,t.jsx)(N.sA,{id:"COMMON_UNIT_MHZ"}),")"]}),n?(0,t.jsx)(E.A,{}):null]}),(0,t.jsx)(A.A,{width:40,children:(0,t.jsx)(_.A,{size:"medium",children:d||(0,t.jsx)(N.sA,{id:"COMMON_FALLBACK"})})}),(0,t.jsx)(A.A,{width:45,children:(0,t.jsx)(_.A,{size:"medium",children:r||(0,t.jsx)(N.sA,{id:"COMMON_FALLBACK"})})})]})}),u=({radio_table:e=[],radio_table_stats:i=[],downlink_table:s=[],isPtmpDevice:_=!1,isOnlyWirelessMeshClientDevice:c=!1,uplink:x,paddingBottom:C,isMloUplinkConnection:E=!1})=>{const h=(0,d.useCallback)((e,i)=>x?.type===o.au.WIRELESS&&e===x?.radio&&(i===x?.radio_name||c),[x?.type,x?.radio,x?.radio_name,c]),N=(0,d.useMemo)(()=>[...e].filter(({radio:e})=>e).sort(l.j3).map(({radio:d,ht:a,radio_caps:A,is_11ax:o,is_11be:c,name:x})=>{const C=s.filter(_?e=>e.name===x:e=>e.radio===d);let E=m.DISCONNECTED;return C?.some(e=>e.active)?E=m.ACTIVE:C?.some(e=>void 0!==e.active&&!e.active)&&(E=m.CONNECTED),(0,t.jsx)(M,{radio:d,channel:(0,t.jsx)(n.A,{name:x,radio_table:e,radio_table_stats:i}),ht:(0,l.Aq)({radio:d,ht:a}),mimo:(0,l.e7)(A),standard:(0,r.lT)({radio:d,is_11ax:o,is_11be:c}),status:E,isMesh:h(d,x)},`${d}-${x}`)}),[s,_,e,i,h]),j=(0,d.useMemo)(()=>[...e].filter(({radio:e})=>e).sort(l.j3).map(({radio:s,ht:d,radio_caps:A,is_11ax:o,is_11be:_,name:c})=>{const{state:x,bw:C}=i.find(e=>e.name===c)||{},N=x===a.A.RUN?m.ACTIVE:m.DISCONNECTED;return(0,t.jsx)(M,{radio:s,channel:(0,t.jsx)(n.A,{name:c,radio_table:e,radio_table_stats:i}),ht:(0,l.Aq)({radio:s,ht:d},{bw:C}),mimo:(0,l.e7)(A),standard:(0,r.lT)({radio:s,is_11ax:o,is_11be:_}),status:N,isMesh:h(s,c)&&!E},`${s}-${c}`)}),[e,i,h,E]);return(0,t.jsx)(A.A,{flexDirection:"column",paddingBottom:C,children:c?j:N})}}}]);