"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[16385],{164231:(e,n,t)=>{t.d(n,{A:()=>N});var a=t(296540),l=t(118818),s=t(6510),A=t(487585),E=t(469733),r=t(171073),c=t(837612),i=t(602197);const u=e=>{const n=(0,E.useDispatch)(),[t,l]=(0,a.useState)(i.g.UNKNOWN);return(0,a.useEffect)(()=>{e&&n((0,r.pI)(e)).then(({data:e})=>{l((0,c.S9)(Array.isArray(e)?e[0]:e))})},[n,e]),t};var o=t(71479),M=t(294303),d=t(566723);const m=(0,o.A)(M.A)`
  align-items: center;
  gap: ${d.kc};
`,N=({[A.U.MAC]:e,[A.U.NAME]:n,[A.U.MODEL]:t})=>{return a.createElement(m,null,a.createElement(l.A,{size:"small",variant:(E=u(e),E===i.g.CONNECTED?"success":"danger")}),(0,s.Q)({name:n,model:t,mac:e}));var E}},228122:(e,n,t)=>{t.d(n,{A:()=>c});var a=t(296540),l=t(699784),s=t(30611),A=t(151033),E=t(67668),r=t(638595);const c=({[r.j.ID]:e,[r.j.LOG]:n})=>n[A.k1.PARAMETERS]?.[s.ns.CHANNEL]?.[A.bP.NAME]?a.createElement(E.A,{label:a.createElement(l.sA,{id:e}),value:n[A.k1.PARAMETERS][s.ns.CHANNEL][A.bP.NAME]}):null},383664:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(296540),l=t(592563),s=t(491876),A=t(35571),E=t(115829);const r=({label:e,value:n,onPress:t})=>a.createElement(A.R,null,a.createElement(s.A,null,e),a.createElement(l.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:t},a.createElement(E.A,{size:"medium",color:"inherit"},n)))},487585:(e,n,t)=>{var a;t.d(n,{U:()=>a}),function(e){e.MAC="mac",e.NAME="name",e.MODEL="model"}(a||(a={}))},516385:(e,n,t)=>{t.r(n),t.d(n,{default:()=>S});var a=t(296540),l=t(804220),s=t(228122),A=t(469733),E=t(398300),r=t(845030),c=t(699784),i=t(30611),u=t(151033),o=t(383664),M=t(638595),d=t(487585),m=t(164231);const N=({[M.j.LOG]:e,[M.j.ID]:n})=>{const t=e[u.k1.PARAMETERS]?.[i.ns.BSSID]?.[u.bP.NAME],l=(0,A.useDispatch)(),s=(0,a.useCallback)(()=>{l((0,r.XP)({type:E.H.DEVICE,id:t}))},[l,t]),N=(0,m.A)({[d.U.MAC]:e[u.k1.PARAMETERS]?.[i.ns.BSSID]?.[u.bP.ID],[d.U.NAME]:e[u.k1.PARAMETERS]?.[i.ns.BSSID]?.[u.bP.NAME],[d.U.MODEL]:void 0});return t?a.createElement(o.A,{label:a.createElement(c.sA,{id:n}),value:N,onPress:s}):null};var P=t(979353);const S=({[P.w.LOG]:e})=>[a.createElement(l.A,{key:"wifiName",id:"COMMON_WIFI_NAME",log:e}),a.createElement(N,{key:"bssid",id:"COMMON_BSSID",log:e}),a.createElement(s.A,{key:"channel",id:"COMMON_CHANNEL",log:e})]},638595:(e,n,t)=>{var a;t.d(n,{j:()=>a}),function(e){e.ID="id",e.LOG="log"}(a||(a={}))},804220:(e,n,t)=>{t.d(n,{A:()=>m});var a=t(956347),l=t(469733),s=t(296540),A=t(928085),E=t(398300),r=t(845030),c=t(699784),i=t(30611),u=t(151033),o=t(959341),M=t(383664),d=t(638595);const m=({[d.j.LOG]:e,[d.j.ID]:n})=>{const t=(0,a.W6)(),m=(0,l.useDispatch)(),N=(0,A.A)(o._L),P=e[u.k1.PARAMETERS]?.[i.ns.WLAN]?.[u.bP.NAME]||e[u.k1.PARAMETERS]?.[i.ns.ESSID]?.[u.bP.NAME],S=e[u.k1.PARAMETERS]?.[i.ns.WLAN]?.[u.bP.ID]||e[u.k1.PARAMETERS]?.[i.ns.ESSID]?.[u.bP.ID],k=(0,s.useCallback)(()=>{S?m((0,r.XP)({type:E.H.WIFI,id:S})):t.push(N)},[S,m,t,N]);return P?s.createElement(M.A,{label:s.createElement(c.sA,{id:n}),onPress:k,value:P}):null}},979353:(e,n,t)=>{var a;t.d(n,{w:()=>a}),function(e){e.LOG="log"}(a||(a={}))}}]);