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