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