"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[97662],{418309(e,t,i){i.d(t,{A:()=>A});var s=i(274934),a=i(906701),r=i(100978),o=i(535322),l=i(893762),n=i(766022),_=i(382583),d=i(725870),m=i(924453),p=i(664613),c=i(597377),u=i(643334),v=i(667758),x=i(303008);const A=({name:e,model:t,ip:i,ipv6:A,lan_ip:j,mac:b,connection_network_id:h,displayable_version:E,uptime:w,systemStatsMem:H,sys_stats:I,type:k,total_used_power:y,imei:M,eSimEid:O,deviceState:f,ethernet_overrides:C,port_table:g,uplink:S,device_mode_override:T})=>(0,s.jsx)(o.A,{children:(0,s.jsxs)(r.A,{height:"100%",flexDirection:"column",children:[(0,s.jsx)(c.A,{ip:i,lan_ip:j,type:k,ethernet_overrides:C,port_table:g,uplink:S,device_mode_override:T}),(0,s.jsx)(a.A,{ipv6_address:A}),(0,s.jsx)(_.A,{connection_network_id:h}),(0,s.jsx)(m.A,{mac:b}),(0,s.jsx)(u.A,{name:e,model:t,mac:b,type:k,displayable_version:E,uptime:w,deviceState:f}),(0,s.jsx)(l.A,{uptime:w}),(0,s.jsx)(d.A,{systemStatsMem:H}),(0,s.jsx)(p.A,{sys_stats:I}),(0,s.jsx)(n.A,{totalPower:y}),M?(0,s.jsx)(x.A,{imei:M}):null,O?(0,s.jsx)(v.A,{eid:O}):null]})})},816004(e,t,i){i.r(t),i.d(t,{default:()=>E});var s=i(274934),a=i(309130),r=i(100978),o=i(808202),l=i(470280),n=i(837625),_=i(872926),d=i(23377),m=i(189042),p=i(383550),c=i(260067),u=i(326084),v=i(686318),x=i(241615),A=i(418309),j=i(352879),b=i(216082),h=i(463872);const E=({activeItem:e,activeItem:{adopted:t,name:i,type:E,mac:w,model:H,shortname:I,uplink:k,vap_table:y,uptime:M,last_seen:O,radio_table:f,radio_table_stats:C,stat:g,detailed_states:{device_near_power_limit:S}={device_near_power_limit:!1},total_used_power:T,total_max_power:D,ip:G,ipv6:F,lan_ip:L,displayable_version:N,"system-stats":R,sys_stats:B,support_wifi6e:P,config_network:W,deviceState:V,mbb:z,mbb_overrides:U,ethernet_overrides:q,port_table:J,device_mode_override:K,fw3_caps:Q}})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.A,{activeItem:e,showPortOverview:!0,hidePortsButton:!0,overviewChildren:(0,s.jsx)(c.A,{uplink:k,type:E,mac:w,radio_table:f,radio_table_stats:C,vap_table:y,support_wifi6e:P,deviceState:V}),children:(0,s.jsxs)(r.A,{flexDirection:"column",gap:a.kc,children:[(0,s.jsx)(m.A,{activeItem:e,showPortsButton:!0,showCaptureButton:!0}),z?(0,s.jsx)(n.A,{mac:w,deviceState:V,mbb:z,mbb_overrides:U,fw3_caps:Q}):null]})}),(0,s.jsx)(_.A,{ip:G,adopted:t,config_network:W}),z?(0,s.jsx)(h.A,{imei:z?.imei,eId:z?.esim?.eid,model:H}):null,(0,s.jsx)(o.A,{mac:w,type:E,model:H,device_near_power_limit:Boolean(S),total_used_power:T||0,total_max_power:D||0}),(0,s.jsx)(j.A,{mac:w}),(0,s.jsx)(u.A,{stat:g,mac:w,uplink:k,uptime:M,last_seen:O}),(0,s.jsx)(A.A,{name:i,model:H,type:E,ip:G,ethernet_overrides:q,port_table:J,ipv6:F,lan_ip:L,mac:w,connection_network_id:e.connection_network_id,displayable_version:N,uptime:M,systemStatsMem:R?.mem,sys_stats:B,total_used_power:T,imei:z?.imei,eSimEid:z?.esim?.eid,uplink:k,device_mode_override:K}),(0,s.jsx)(d.A,{activeItem:e}),(0,s.jsx)(x.A,{radio_table:f,radio_table_stats:C,type:E,stat:g||{},support_wifi6e:P}),z?(0,s.jsx)(l.F,{sim:z?.sim,radio:z?.radio,mbb_overrides:U}):null,(0,s.jsx)(v.S,{vap_table:y,radio_table:f}),(0,s.jsx)(b.A,{shortname:I})]})},61322(e,t,i){i.d(t,{I:()=>s});const s={HEADER_HEIGHT:32,ROW_HEIGHT:32,EDIT_FIELD_HEIGHT:36,getHeight(e,t,i,s){return Math.min((s||this.ROW_HEIGHT)*e+(i??this.HEADER_HEIGHT),(s||this.ROW_HEIGHT)*t+(i??this.HEADER_HEIGHT))},getEditContainerHeight(e,t,i){return Math.min((i||this.EDIT_FIELD_HEIGHT)*e,(i||this.EDIT_FIELD_HEIGHT)*t)}}},112104(e,t,i){i.d(t,{A:()=>d});var s=i(274934),a=i(602086),r=i(179102),o=i(526744),l=i(309130),n=i(100978),_=i(470070);const d=(e,t={})=>{const{formatMessage:i}=(0,_.tz)(),[d,m]=(0,a.useState)(!1),{defaultCount:p,label:{singular:c,plural:u}}=(0,a.useMemo)(()=>({defaultCount:t.defaultCount||6,label:{singular:i({id:t.label?.singular||"COMMON_DEVICE"}),plural:i({id:t.label?.plural||"COMMON_DEVICES"})}}),[t,i]),v=(0,a.useCallback)(()=>{m(e=>!e)},[]);return{rowLimit:e>p&&!d?p:e,renderFooter:e>p?(0,s.jsx)(n.A,{marginTop:l.kc,children:(0,s.jsxs)(r.A,{size:"medium",children:[(0,s.jsx)(_.sA,{id:"COMMON_ADV_TABLE_FOOTER",values:{length:e>p&&!d?p:e,total:e,singular:c,plural:u}}),(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsxs)(o.A,{type:"button",variant:"inline",onClick:v,children:[(0,s.jsx)(_.sA,{id:"COMMON_SHOW"})," ",(0,s.jsx)(_.sA,{id:d?"COMMON_LESS":"COMMON_ALL"})]})]})]})}):null,setExpand:m}}}}]);