"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[31067],{57218:(e,E,n)=>{n.d(E,{A:()=>P});var t=n(296540),l=n(469733),A=n(398300),a=n(845030),s=n(699784),r=n(30611),c=n(151033),M=n(383664),R=n(638595),d=n(164231),i=n(487585);const P=({[R.j.ID]:e,[R.j.LOG]:E})=>{const n=(0,l.useDispatch)(),P=(0,t.useCallback)(()=>{n((0,a.XP)({type:A.H.DEVICE,id:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.ID]}))},[n,E]),o=(0,d.A)({[i.U.MAC]:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.ID],[i.U.NAME]:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.NAME],[i.U.MODEL]:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[r.pq.MODEL_NAME]});return E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?t.createElement(M.A,{label:t.createElement(s.sA,{id:e}),value:o,onPress:P}):null}},164231:(e,E,n)=>{n.d(E,{A:()=>u});var t=n(296540),l=n(118818),A=n(6510),a=n(487585),s=n(469733),r=n(171073),c=n(837612),M=n(602197);const R=e=>{const E=(0,s.useDispatch)(),[n,l]=(0,t.useState)(M.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 d=n(71479),i=n(294303),P=n(566723);const o=(0,d.A)(i.A)`
  align-items: center;
  gap: ${P.kc};
`,u=({[a.U.MAC]:e,[a.U.NAME]:E,[a.U.MODEL]:n})=>{return t.createElement(o,null,t.createElement(l.A,{size:"small",variant:(s=R(e),s===M.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},357244:(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.ID]:e,[r.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[A.ns.DURATION]?.[a.bP.NAME]?t.createElement(s.A,{label:t.createElement(l.sA,{id:e}),value:E[a.k1.PARAMETERS][A.ns.DURATION][a.bP.NAME]}):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)))},431067:(e,E,n)=>{n.r(E),n.d(E,{default:()=>P});var t=n(296540),l=n(574860),A=n(839064),a=n(357244),s=n(609838),r=n(57218),c=n(689210),M=n(196898),R=n(893126),d=n(898394),i=n(979353);const P=({[i.w.LOG]:e})=>[t.createElement(r.A,{key:"deviceName",id:"COMMON_DEVICE",log:e}),t.createElement(c.A,{key:"deviceModel",id:"COMMON_MODEL",log:e}),t.createElement(R.A,{key:"deviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),t.createElement(M.A,{key:"deviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e}),t.createElement(s.A,{key:"deviceVersion",id:"COMMON_VERSION",log:e}),t.createElement(A.A,{key:"uplinkName",id:"LOGS_CONNECTED_DEVICE",log:e}),t.createElement(l.A,{key:"uplinkPort",id:"LOGS_CONNECTED_PORT",log:e}),t.createElement(d.A,{key:"count",id:"LOGS_RECONNECTIONS",log:e}),t.createElement(a.A,{key:"duration",id:"LOGS_RECONNECTING_PERIOD",log: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={}))},574860:(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.ID]:e,[r.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[A.ns.UPLINK]?.[A.Wc.PORT]?t.createElement(s.A,{label:t.createElement(l.sA,{id:e}),value:E[a.k1.PARAMETERS][A.ns.UPLINK][A.Wc.PORT]}):null},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:()=>M});var t=n(296540),l=n(6510),A=n(699784),a=n(30611),s=n(151033),r=n(67668),c=n(638595);const M=({[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},839064:(e,E,n)=>{n.d(E,{A:()=>P});var t=n(469733),l=n(296540),A=n(398300),a=n(845030),s=n(699784),r=n(30611),c=n(151033),M=n(383664),R=n(638595),d=n(164231),i=n(487585);const P=({[R.j.ID]:e,[R.j.LOG]:E})=>{const n=(0,t.useDispatch)(),P=(0,l.useCallback)(()=>{n((0,a.XP)({type:A.H.DEVICE,id:E[c.k1.PARAMETERS]?.[r.ns.UPLINK]?.[c.bP.ID]}))},[n,E]),o=(0,d.A)({[i.U.MAC]:E[c.k1.PARAMETERS]?.[r.ns.UPLINK]?.[c.bP.ID],[i.U.NAME]:E[c.k1.PARAMETERS]?.[r.ns.UPLINK]?.[c.bP.NAME],[i.U.MODEL]:void 0});return E[c.k1.PARAMETERS]?.[r.ns.UPLINK]?.[c.bP.NAME]||E[c.k1.PARAMETERS]?.[r.ns.UPLINK]?.[c.bP.ID]?l.createElement(M.A,{label:l.createElement(s.sA,{id:e}),onPress:P,value:o}):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},898394:(e,E,n)=>{n.d(E,{A:()=>r});var t=n(296540),l=n(699784),A=n(30611),a=n(151033),s=n(67668);const r=({id:e,log:E,customCount:n})=>n||E[a.k1.PARAMETERS]?.[A.ns.COUNT]?t.createElement(s.A,{label:t.createElement(l.sA,{id:e}),value:n||E[a.k1.PARAMETERS]?.[A.ns.COUNT]?.[a.bP.NAME]}):null},979353:(e,E,n)=>{var t;n.d(E,{w:()=>t}),function(e){e.LOG="log"}(t||(t={}))}}]);