"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[83425],{57218:(e,E,t)=>{t.d(E,{A:()=>P});var l=t(296540),n=t(469733),A=t(398300),a=t(845030),r=t(699784),s=t(30611),c=t(151033),M=t(383664),R=t(638595),d=t(164231),D=t(487585);const P=({[R.j.ID]:e,[R.j.LOG]:E})=>{const t=(0,n.useDispatch)(),P=(0,l.useCallback)(()=>{t((0,a.XP)({type:A.H.DEVICE,id:E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.ID]}))},[t,E]),i=(0,d.A)({[D.U.MAC]:E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.ID],[D.U.NAME]:E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.NAME],[D.U.MODEL]:E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[s.pq.MODEL_NAME]});return E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?l.createElement(M.A,{label:l.createElement(r.sA,{id:e}),value:i,onPress:P}):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),c=t(837612),M=t(602197);const R=e=>{const E=(0,r.useDispatch)(),[t,n]=(0,l.useState)(M.g.UNKNOWN);return(0,l.useEffect)(()=>{e&&E((0,s.pI)(e)).then(({data:e})=>{n((0,c.S9)(Array.isArray(e)?e[0]:e))})},[E,e]),t};var d=t(71479),D=t(294303),P=t(566723);const i=(0,d.A)(D.A)`
  align-items: center;
  gap: ${P.kc};
`,O=({[a.U.MAC]:e,[a.U.NAME]:E,[a.U.MODEL]:t})=>{return l.createElement(i,null,l.createElement(n.A,{size:"small",variant:(r=R(e),r===M.g.CONNECTED?"success":"danger")}),(0,A.Q)({name:E,model:t,mac:e}));var r}},196898:(e,E,t)=>{t.d(E,{A:()=>c});var l=t(296540),n=t(699784),A=t(30611),a=t(151033),r=t(67668),s=t(638595);const c=({[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:()=>c});var l=t(296540),n=t(699784),A=t(30611),a=t(151033),r=t(67668),s=t(638595);const c=({[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},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:()=>c});var l=t(296540),n=t(699784),A=t(30611),a=t(151033),r=t(67668),s=t(638595);const c=({[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={}))},583425:(e,E,t)=>{t.r(E),t.d(E,{default:()=>u});var l=t(296540),n=t(699784),A=t(30611),a=t(151033),r=t(67668),s=t(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[A.ns.TX_DROPPED]?.[a.bP.NAME]?l.createElement(r.A,{label:l.createElement(n.sA,{id:E}),value:e[a.k1.PARAMETERS][A.ns.TX_DROPPED][a.bP.NAME]}):null;var M=t(332586);const R=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[A.ns.RX_DROPPED]?.[a.bP.NAME]?l.createElement(r.A,{label:l.createElement(n.sA,{id:E}),value:e[a.k1.PARAMETERS][A.ns.RX_DROPPED][a.bP.NAME]}):null;var d=t(482098),D=t(609838),P=t(57218),i=t(689210),O=t(196898),m=t(893126),o=t(979353);const u=({[o.w.LOG]:e})=>[l.createElement(P.A,{key:"deviceName",id:"COMMON_DEVICE",log:e}),l.createElement(i.A,{key:"deviceModel",id:"COMMON_MODEL",log:e}),l.createElement(m.A,{key:"deviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),l.createElement(O.A,{key:"deviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e}),l.createElement(D.A,{key:"deviceVersion",id:"COMMON_VERSION",log:e}),l.createElement(d.A,{key:"port",id:"COMMON_PORT",log:e}),l.createElement(c,{key:"txDropped",id:"COMMON_TX_DROPS",log:e}),l.createElement(R,{key:"rxDropped",id:"COMMON_RX_DROPS",log:e}),l.createElement(M.A,{key:"totalFrame",id:"LOGS_REPORTING_PERIOD",log:e})]},609838:(e,E,t)=>{t.d(E,{A:()=>c});var l=t(296540),n=t(699784),A=t(30611),a=t(151033),r=t(67668),s=t(638595);const c=({[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:()=>M});var l=t(296540),n=t(6510),A=t(699784),a=t(30611),r=t(151033),s=t(67668),c=t(638595);const M=({[c.j.LOG]:e,[c.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:()=>c});var l=t(296540),n=t(699784),A=t(30611),a=t(151033),r=t(67668),s=t(638595);const c=({[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={}))}}]);