"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[80798],{57218:(e,E,n)=>{n.d(E,{A:()=>I});var t=n(296540),A=n(469733),l=n(398300),a=n(845030),r=n(699784),s=n(30611),c=n(151033),i=n(383664),o=n(638595),M=n(164231),d=n(487585);const I=({[o.j.ID]:e,[o.j.LOG]:E})=>{const n=(0,A.useDispatch)(),I=(0,t.useCallback)(()=>{n((0,a.XP)({type:l.H.DEVICE,id:E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.ID]}))},[n,E]),R=(0,M.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]?t.createElement(i.A,{label:t.createElement(r.sA,{id:e}),value:R,onPress:I}):null}},164231:(e,E,n)=>{n.d(E,{A:()=>m});var t=n(296540),A=n(118818),l=n(6510),a=n(487585),r=n(469733),s=n(171073),c=n(837612),i=n(602197);const o=e=>{const E=(0,r.useDispatch)(),[n,A]=(0,t.useState)(i.g.UNKNOWN);return(0,t.useEffect)(()=>{e&&E((0,s.pI)(e)).then(({data:e})=>{A((0,c.S9)(Array.isArray(e)?e[0]:e))})},[E,e]),n};var M=n(71479),d=n(294303),I=n(566723);const R=(0,M.A)(d.A)`
  align-items: center;
  gap: ${I.kc};
`,m=({[a.U.MAC]:e,[a.U.NAME]:E,[a.U.MODEL]:n})=>{return t.createElement(R,null,t.createElement(A.A,{size:"small",variant:(r=o(e),r===i.g.CONNECTED?"success":"danger")}),(0,l.Q)({name:E,model:n,mac:e}));var r}},196898:(e,E,n)=>{n.d(E,{A:()=>c});var t=n(296540),A=n(699784),l=n(30611),a=n(151033),r=n(67668),s=n(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[l.ns.DEVICE]?.[a.bP.ID]?t.createElement(r.A,{label:t.createElement(A.sA,{id:E}),value:e[a.k1.PARAMETERS][l.ns.DEVICE][a.bP.ID]}):null},351638:(e,E,n)=>{var t,A;n.d(E,{Q:()=>A,m:()=>t}),function(e){e.APPLICATION="application",e.DEVICE="device"}(t||(t={})),function(e){e.TARGET="target"}(A||(A={}))},383664:(e,E,n)=>{n.d(E,{A:()=>s});var t=n(296540),A=n(592563),l=n(491876),a=n(35571),r=n(115829);const s=({label:e,value:E,onPress:n})=>t.createElement(a.R,null,t.createElement(l.A,null,e),t.createElement(A.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:n},t.createElement(r.A,{size:"medium",color:"inherit"},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={}))},609838:(e,E,n)=>{n.d(E,{A:()=>c});var t=n(296540),A=n(699784),l=n(30611),a=n(151033),r=n(67668),s=n(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[l.ns.DEVICE]?.[l.pq.VERSION]?t.createElement(r.A,{label:t.createElement(A.sA,{id:E}),value:e[a.k1.PARAMETERS][l.ns.DEVICE][l.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:()=>i});var t=n(296540),A=n(6510),l=n(699784),a=n(30611),r=n(151033),s=n(67668),c=n(638595);const i=({[c.j.LOG]:e,[c.j.ID]:E})=>e[r.k1.PARAMETERS]?.[a.ns.DEVICE]?.[a.pq.MODEL_NAME]?t.createElement(s.A,{label:t.createElement(l.sA,{id:E}),value:(0,A.Lm)(e[r.k1.PARAMETERS][a.ns.DEVICE][a.pq.MODEL_NAME])}):null},800070:(e,E,n)=>{n.d(E,{A:()=>c});var t=n(296540),A=n(699784),l=n(30611),a=n(151033),r=n(67668),s=n(638595);const c=({[s.j.ID]:e,[s.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[l.ns.VERSION]?.[a.bP.NAME]?t.createElement(r.A,{label:t.createElement(A.sA,{id:e}),value:E[a.k1.PARAMETERS][l.ns.VERSION][a.bP.NAME]}):null},880798:(e,E,n)=>{n.r(E),n.d(E,{default:()=>d});var t=n(296540),A=n(800070),l=n(935284),a=n(609838),r=n(57218),s=n(689210),c=n(196898),i=n(893126),o=n(979353),M=n(351638);const d=({[o.w.LOG]:e})=>[t.createElement(r.A,{key:"deviceName",id:"COMMON_DEVICE",log:e}),t.createElement(s.A,{key:"deviceModel",id:"COMMON_MODEL",log:e}),t.createElement(i.A,{key:"deviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),t.createElement(c.A,{key:"deviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e}),t.createElement(a.A,{key:"deviceVersion",id:"COMMON_VERSION",log:e}),t.createElement(A.A,{key:"version",id:"LOGS_UPDATE_VERSION",log:e}),t.createElement(l.A,{key:"releaseNotesLink",id:"COMMON_RELEASE_NOTES",target:M.m.DEVICE,log:e})]},893126:(e,E,n)=>{n.d(E,{A:()=>c});var t=n(296540),A=n(699784),l=n(30611),a=n(151033),r=n(67668),s=n(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[l.ns.DEVICE]?.[l.pq.IP]?t.createElement(r.A,{label:t.createElement(A.sA,{id:E}),value:e[a.k1.PARAMETERS][l.ns.DEVICE][l.pq.IP]}):null},935284:(e,E,n)=>{n.d(E,{A:()=>d});var t=n(999589),A=n(469733),l=n(296540),a=n(699784),r=n(187483),s=n(30611),c=n(151033),i=n(383664),o=n(638595),M=n(351638);const d=({[o.j.LOG]:e,[o.j.ID]:E,[M.Q.TARGET]:n})=>{const d=(0,A.useSelector)(r.qf),{name:I,version:R}=(0,l.useMemo)(()=>{switch(n){case M.m.APPLICATION:return{name:"network",version:e[c.k1.PARAMETERS]?.[s.ns.VERSION]?.[c.bP.NAME]};case M.m.DEVICE:return{name:e[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[s.pq.MODEL_NAME],version:e[c.k1.PARAMETERS]?.[s.ns.VERSION]?.[c.bP.ID]||e[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[s.pq.VERSION]};default:return{name:void 0,version:void 0}}},[e,n]),m=(0,l.useCallback)(()=>{I&&R&&d(I,(0,t.coerce)(R)?.version||R)},[d,I,R]);return void 0!==d&&I&&R?l.createElement(i.A,{label:l.createElement(a.sA,{id:E}),onPress:m,value:l.createElement(a.sA,{id:"COMMON_ACTION_VIEW"})}):null}},979353:(e,E,n)=>{var t;n.d(E,{w:()=>t}),function(e){e.LOG="log"}(t||(t={}))}}]);