"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[81873],{57218:(e,E,t)=>{t.d(E,{A:()=>u});var n=t(296540),l=t(469733),a=t(398300),A=t(845030),s=t(699784),r=t(30611),c=t(151033),i=t(383664),d=t(638595),M=t(164231),D=t(487585);const u=({[d.j.ID]:e,[d.j.LOG]:E})=>{const t=(0,l.useDispatch)(),u=(0,n.useCallback)(()=>{t((0,A.XP)({type:a.H.DEVICE,id:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.ID]}))},[t,E]),o=(0,M.A)({[D.U.MAC]:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.ID],[D.U.NAME]:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.NAME],[D.U.MODEL]:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[r.pq.MODEL_NAME]});return E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?n.createElement(i.A,{label:n.createElement(s.sA,{id:e}),value:o,onPress:u}):null}},164231:(e,E,t)=>{t.d(E,{A:()=>m});var n=t(296540),l=t(118818),a=t(6510),A=t(487585),s=t(469733),r=t(171073),c=t(837612),i=t(602197);const d=e=>{const E=(0,s.useDispatch)(),[t,l]=(0,n.useState)(i.g.UNKNOWN);return(0,n.useEffect)(()=>{e&&E((0,r.pI)(e)).then(({data:e})=>{l((0,c.S9)(Array.isArray(e)?e[0]:e))})},[E,e]),t};var M=t(71479),D=t(294303),u=t(566723);const o=(0,M.A)(D.A)`
  align-items: center;
  gap: ${u.kc};
`,m=({[A.U.MAC]:e,[A.U.NAME]:E,[A.U.MODEL]:t})=>{return n.createElement(o,null,n.createElement(l.A,{size:"small",variant:(s=d(e),s===i.g.CONNECTED?"success":"danger")}),(0,a.Q)({name:E,model:t,mac:e}));var s}},196898:(e,E,t)=>{t.d(E,{A:()=>c});var n=t(296540),l=t(699784),a=t(30611),A=t(151033),s=t(67668),r=t(638595);const c=({[r.j.LOG]:e,[r.j.ID]:E})=>e[A.k1.PARAMETERS]?.[a.ns.DEVICE]?.[A.bP.ID]?n.createElement(s.A,{label:n.createElement(l.sA,{id:E}),value:e[A.k1.PARAMETERS][a.ns.DEVICE][A.bP.ID]}):null},281873:(e,E,t)=>{t.r(E),t.d(E,{default:()=>c});var n=t(296540),l=t(57218),a=t(689210),A=t(196898),s=t(893126),r=t(979353);const c=({[r.w.LOG]:e})=>[n.createElement(l.A,{key:"deviceName",id:"COMMON_DEVICE",log:e}),n.createElement(a.A,{key:"deviceModel",id:"COMMON_MODEL",log:e}),n.createElement(s.A,{key:"deviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),n.createElement(A.A,{key:"deviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e})]},383664:(e,E,t)=>{t.d(E,{A:()=>r});var n=t(296540),l=t(592563),a=t(491876),A=t(35571),s=t(115829);const r=({label:e,value:E,onPress:t})=>n.createElement(A.R,null,n.createElement(a.A,null,e),n.createElement(l.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:t},n.createElement(s.A,{size:"medium",color:"inherit"},E)))},487585:(e,E,t)=>{var n;t.d(E,{U:()=>n}),function(e){e.MAC="mac",e.NAME="name",e.MODEL="model"}(n||(n={}))},638595:(e,E,t)=>{var n;t.d(E,{j:()=>n}),function(e){e.ID="id",e.LOG="log"}(n||(n={}))},689210:(e,E,t)=>{t.d(E,{A:()=>i});var n=t(296540),l=t(6510),a=t(699784),A=t(30611),s=t(151033),r=t(67668),c=t(638595);const i=({[c.j.LOG]:e,[c.j.ID]:E})=>e[s.k1.PARAMETERS]?.[A.ns.DEVICE]?.[A.pq.MODEL_NAME]?n.createElement(r.A,{label:n.createElement(a.sA,{id:E}),value:(0,l.Lm)(e[s.k1.PARAMETERS][A.ns.DEVICE][A.pq.MODEL_NAME])}):null},893126:(e,E,t)=>{t.d(E,{A:()=>c});var n=t(296540),l=t(699784),a=t(30611),A=t(151033),s=t(67668),r=t(638595);const c=({[r.j.LOG]:e,[r.j.ID]:E})=>e[A.k1.PARAMETERS]?.[a.ns.DEVICE]?.[a.pq.IP]?n.createElement(s.A,{label:n.createElement(l.sA,{id:E}),value:e[A.k1.PARAMETERS][a.ns.DEVICE][a.pq.IP]}):null},979353:(e,E,t)=>{var n;t.d(E,{w:()=>n}),function(e){e.LOG="log"}(n||(n={}))}}]);