"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[2691],{57218:(e,E,t)=>{t.d(E,{A:()=>o});var n=t(296540),l=t(469733),A=t(398300),a=t(845030),s=t(699784),r=t(30611),c=t(151033),d=t(383664),i=t(638595),M=t(164231),D=t(487585);const o=({[i.j.ID]:e,[i.j.LOG]:E})=>{const t=(0,l.useDispatch)(),o=(0,n.useCallback)(()=>{t((0,a.XP)({type:A.H.DEVICE,id:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.ID]}))},[t,E]),m=(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(d.A,{label:n.createElement(s.sA,{id:e}),value:m,onPress:o}):null}},164231:(e,E,t)=>{t.d(E,{A:()=>u});var n=t(296540),l=t(118818),A=t(6510),a=t(487585),s=t(469733),r=t(171073),c=t(837612),d=t(602197);const i=e=>{const E=(0,s.useDispatch)(),[t,l]=(0,n.useState)(d.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),o=t(566723);const m=(0,M.A)(D.A)`
  align-items: center;
  gap: ${o.kc};
`,u=({[a.U.MAC]:e,[a.U.NAME]:E,[a.U.MODEL]:t})=>{return n.createElement(m,null,n.createElement(l.A,{size:"small",variant:(s=i(e),s===d.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},302691:(e,E,t)=>{t.r(E),t.d(E,{default:()=>i});var n=t(296540),l=t(979353),A=t(482098),a=t(609838),s=t(57218),r=t(689210),c=t(196898),d=t(893126);const i=({[l.w.LOG]:e})=>[n.createElement(s.A,{key:"deviceName",id:"COMMON_DEVICE",log:e}),n.createElement(r.A,{key:"deviceModel",id:"COMMON_MODEL",log:e}),n.createElement(d.A,{key:"deviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),n.createElement(c.A,{key:"deviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e}),n.createElement(a.A,{key:"deviceVersion",id:"COMMON_VERSION",log:e}),n.createElement(A.A,{key:"port",id:"LOGS_CONNECTED_PORT",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)))},482098:(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.ID]:e,[r.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[A.ns.PORT]?.[a.bP.NAME]?n.createElement(s.A,{label:n.createElement(l.sA,{id:e}),value:E[a.k1.PARAMETERS][A.ns.PORT][a.bP.NAME]}):null},487585:(e,E,t)=>{var n;t.d(E,{U:()=>n}),function(e){e.MAC="mac",e.NAME="name",e.MODEL="model"}(n||(n={}))},609838:(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.VERSION]?n.createElement(s.A,{label:n.createElement(l.sA,{id:E}),value:e[a.k1.PARAMETERS][A.ns.DEVICE][A.pq.VERSION]}):null},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:()=>d});var n=t(296540),l=t(6510),A=t(699784),a=t(30611),s=t(151033),r=t(67668),c=t(638595);const d=({[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={}))}}]);