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