"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[84322],{57218:(e,t,E)=>{E.d(t,{A:()=>d});var n=E(296540),l=E(469733),a=E(398300),r=E(845030),A=E(699784),s=E(30611),c=E(151033),i=E(383664),u=E(638595),m=E(164231),o=E(487585);const d=({[u.j.ID]:e,[u.j.LOG]:t})=>{const E=(0,l.useDispatch)(),d=(0,n.useCallback)(()=>{E((0,r.XP)({type:a.H.DEVICE,id:t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.ID]}))},[E,t]),M=(0,m.A)({[o.U.MAC]:t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.ID],[o.U.NAME]:t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.NAME],[o.U.MODEL]:t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[s.pq.MODEL_NAME]});return t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?n.createElement(i.A,{label:n.createElement(A.sA,{id:e}),value:M,onPress:d}):null}},164231:(e,t,E)=>{E.d(t,{A:()=>D});var n=E(296540),l=E(118818),a=E(6510),r=E(487585),A=E(469733),s=E(171073),c=E(837612),i=E(602197);const u=e=>{const t=(0,A.useDispatch)(),[E,l]=(0,n.useState)(i.g.UNKNOWN);return(0,n.useEffect)(()=>{e&&t((0,s.pI)(e)).then(({data:e})=>{l((0,c.S9)(Array.isArray(e)?e[0]:e))})},[t,e]),E};var m=E(71479),o=E(294303),d=E(566723);const M=(0,m.A)(o.A)`
  align-items: center;
  gap: ${d.kc};
`,D=({[r.U.MAC]:e,[r.U.NAME]:t,[r.U.MODEL]:E})=>{return n.createElement(M,null,n.createElement(l.A,{size:"small",variant:(A=u(e),A===i.g.CONNECTED?"success":"danger")}),(0,a.Q)({name:t,model:E,mac:e}));var A}},196898:(e,t,E)=>{E.d(t,{A:()=>c});var n=E(296540),l=E(699784),a=E(30611),r=E(151033),A=E(67668),s=E(638595);const c=({[s.j.LOG]:e,[s.j.ID]:t})=>e[r.k1.PARAMETERS]?.[a.ns.DEVICE]?.[r.bP.ID]?n.createElement(A.A,{label:n.createElement(l.sA,{id:t}),value:e[r.k1.PARAMETERS][a.ns.DEVICE][r.bP.ID]}):null},383664:(e,t,E)=>{E.d(t,{A:()=>s});var n=E(296540),l=E(592563),a=E(491876),r=E(35571),A=E(115829);const s=({label:e,value:t,onPress:E})=>n.createElement(r.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:E},n.createElement(A.A,{size:"medium",color:"inherit"},t)))},487585:(e,t,E)=>{var n;E.d(t,{U:()=>n}),function(e){e.MAC="mac",e.NAME="name",e.MODEL="model"}(n||(n={}))},584322:(e,t,E)=>{E.r(t),E.d(t,{default:()=>R});var n=E(296540),l=E(469733),a=E(282556),r=E(699784),A=E(30611),s=E(151033),c=E(602021),i=E(198494),u=E(67668),m=E(638595);const o=({[m.j.ID]:e,[m.j.LOG]:t})=>{const E=(0,l.useSelector)(i.BQ),o=(0,l.useSelector)(c.hq),d=(0,l.useSelector)(a.zi),M=Date.parse(t[s.k1.PARAMETERS]?.[A.ns.LAST_SUCCESS_DATE_TIME]?.[s.bP.NAME]);return Number.isNaN(M)?null:n.createElement(u.A,{label:n.createElement(r.sA,{id:e}),value:new Intl.DateTimeFormat(d,{day:"numeric",month:"short",hour:"numeric",minute:"numeric",second:"numeric",timeZone:o,hourCycle:E}).format(M)})};var d=E(609838),M=E(57218),D=E(689210),I=E(196898),S=E(893126),C=E(979353);const R=({[C.w.LOG]:e})=>[n.createElement(M.A,{key:"deviceName",id:"COMMON_DEVICE",log:e}),n.createElement(D.A,{key:"deviceModel",id:"COMMON_MODEL",log:e}),n.createElement(S.A,{key:"deviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),n.createElement(I.A,{key:"deviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e}),n.createElement(d.A,{key:"deviceVersion",id:"COMMON_VERSION",log:e}),n.createElement(o,{key:"lastSuccessDateTime",id:"LOGS_LAST_SUCCESSFUL_CONFIGURATION",log:e})]},609838:(e,t,E)=>{E.d(t,{A:()=>c});var n=E(296540),l=E(699784),a=E(30611),r=E(151033),A=E(67668),s=E(638595);const c=({[s.j.LOG]:e,[s.j.ID]:t})=>e[r.k1.PARAMETERS]?.[a.ns.DEVICE]?.[a.pq.VERSION]?n.createElement(A.A,{label:n.createElement(l.sA,{id:t}),value:e[r.k1.PARAMETERS][a.ns.DEVICE][a.pq.VERSION]}):null},638595:(e,t,E)=>{var n;E.d(t,{j:()=>n}),function(e){e.ID="id",e.LOG="log"}(n||(n={}))},689210:(e,t,E)=>{E.d(t,{A:()=>i});var n=E(296540),l=E(6510),a=E(699784),r=E(30611),A=E(151033),s=E(67668),c=E(638595);const i=({[c.j.LOG]:e,[c.j.ID]:t})=>e[A.k1.PARAMETERS]?.[r.ns.DEVICE]?.[r.pq.MODEL_NAME]?n.createElement(s.A,{label:n.createElement(a.sA,{id:t}),value:(0,l.Lm)(e[A.k1.PARAMETERS][r.ns.DEVICE][r.pq.MODEL_NAME])}):null},893126:(e,t,E)=>{E.d(t,{A:()=>c});var n=E(296540),l=E(699784),a=E(30611),r=E(151033),A=E(67668),s=E(638595);const c=({[s.j.LOG]:e,[s.j.ID]:t})=>e[r.k1.PARAMETERS]?.[a.ns.DEVICE]?.[a.pq.IP]?n.createElement(A.A,{label:n.createElement(l.sA,{id:t}),value:e[r.k1.PARAMETERS][a.ns.DEVICE][a.pq.IP]}):null},979353:(e,t,E)=>{var n;E.d(t,{w:()=>n}),function(e){e.LOG="log"}(n||(n={}))}}]);