"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[34285],{55983(e,t,E){E.d(t,{Ai:()=>a,Ar:()=>A,Qv:()=>s,ZP:()=>i,aY:()=>r,p6:()=>l});var n=E(448547);const l="alarm-manager",r="control-plane",a=`${r}/integrations`,A=`${r}/backups`,s="admins",i=Object.values(n.Kr)},556456(e,t,E){E.d(t,{XU:()=>T,YQ:()=>I,aB:()=>R,g0:()=>N,jO:()=>M,tx:()=>o,yB:()=>c,yE:()=>d,zn:()=>u});var n=E(801081),l=E(874807),r=E(187483),a=E(448547),A=E(524332),s=E(55983);const i=(0,n.Mz)(r.kb,e=>e[a.C2.SWAI_ROUTES]||[]),c=(0,n.Mz)(i,e=>e.filter(e=>s.ZP.every(t=>!e[A.rR.PATH].startsWith(t)))),o=(0,n.Mz)(c,e=>e.filter(e=>!e[A.rR.IS_HIDDEN])),R=(0,n.Mz)(i,e=>e.filter(e=>e[A.rR.PATH].startsWith(a.Kr.SETTINGS))),T=(0,n.Mz)(R,e=>e.filter(e=>!e[A.rR.IS_HIDDEN])),I=(0,n.Mz)(i,e=>e.filter(e=>e[A.rR.PATH].startsWith(a.Kr.SYSLOG))),M=(0,n.Mz)(I,e=>e.filter(e=>!e[A.rR.IS_HIDDEN])),S=e=>(0,n.Mz)(i,t=>t.some(t=>t[A.rR.PATH].includes(e)&&!t[A.rR.IS_HIDDEN])),d=(0,n.Mz)(S(s.aY),e=>e),u=(0,n.Mz)(S(s.p6),e=>e),N=(0,n.Mz)(r.nx,e=>e[a.Y7.ROUTES_ADAPTER]||{[A.bh.ROUTES]:[],[A.bh.ADD_ROUTES_LISTENER]:l.P1,[A.bh.REMOVE_ROUTES_LISTENER]:l.P1,[A.bh.ON_ROUTE_CONTAINER_ADDED]:l.P1,[A.bh.ON_ROUTE_CONTAINER_REMOVED]:l.P1})},634285(e,t,E){E.r(t),E.d(t,{default:()=>c});var n=E(296540),l=E(979353),r=E(992264),a=E(275872),A=E(450742),s=E(999616),i=E(163414);const c=({[l.w.LOG]:e})=>[n.createElement(i.A,{key:"admin",id:"COMMON_USER",log:e}),n.createElement(r.A,{key:"clientName",id:"LOGS_CLIENT_NAME",log:e}),n.createElement(s.A,{key:"clientHostname",id:"LOGS_CLIENT_HOSTNAME",log:e}),n.createElement(A.A,{key:"clientIpAddress",id:"COMMON_CLIENT_IP_ADDRESS",log:e}),n.createElement(a.A,{key:"clientMacAddress",id:"LOGS_CLIENT_MAC_ADDRESS",log:e})]},979353(e,t,E){var n;E.d(t,{w:()=>n}),function(e){e.LOG="log"}(n||(n={}))},163414(e,t,E){E.d(t,{A:()=>N});var n=E(296540),l=E(956347),r=E(469733),a=E(705145),A=E(592563),s=E(834316),i=E(15095),c=E(916537),o=E(187483),R=E(556456),T=E(55983),I=E(30611),M=E(151033),S=E(559874),d=E(67668),u=E(638595);const N=({[u.j.ID]:e,[u.j.LOG]:t})=>{const E=(0,l.W6)(),N=(0,r.useSelector)(o.W1),m=(0,r.useSelector)(o.TP),P=(0,r.useSelector)(R.yE),L=(0,i.A)(T.Qv),D=(0,n.useCallback)(()=>{P?E.push(L):window.location.href=(0,s.SK)(m)},[m,L,E,P]),O=t[M.k1.PARAMETERS]?.[I.ns.ADMIN]?.[M.bP.NAME]||t[M.k1.PARAMETERS]?.[I.ns.USER]?.[M.bP.NAME],C=O?.toLowerCase()==="Unknown".toLowerCase(),_=O?.toLowerCase()==="WiFi Doctor".toLowerCase(),k=C?"Auto Update":O;return k?n.createElement(d.A,{label:n.createElement(c.sA,{id:e}),value:n.createElement(n.Fragment,null,N||C||_?n.createElement(S.A,null,k):n.createElement(A.A,{fontSize:"medium",type:"button",onPress:D},n.createElement(a.A,{size:"medium",color:"inherit",isTruncated:!0},k)))}):null}},999616(e,t,E){E.d(t,{A:()=>i});var n=E(296540),l=E(916537),r=E(30611),a=E(151033),A=E(67668),s=E(638595);const i=({[s.j.LOG]:e,[s.j.ID]:t})=>e[a.k1.PARAMETERS]?.[r.ns.CLIENT]?.[r.MK.HOSTNAME]?n.createElement(A.A,{label:n.createElement(l.sA,{id:t}),value:e[a.k1.PARAMETERS][r.ns.CLIENT][r.MK.HOSTNAME]}):null},450742(e,t,E){E.d(t,{A:()=>i});var n=E(296540),l=E(916537),r=E(30611),a=E(151033),A=E(67668),s=E(638595);const i=({[s.j.LOG]:e,[s.j.ID]:t})=>e[a.k1.PARAMETERS]?.[r.ns.CLIENT]?.[r.MK.IP]?n.createElement(A.A,{label:n.createElement(l.sA,{id:t}),value:e[a.k1.PARAMETERS][r.ns.CLIENT][r.MK.IP]}):null},275872(e,t,E){E.d(t,{A:()=>i});var n=E(296540),l=E(916537),r=E(30611),a=E(151033),A=E(67668),s=E(638595);const i=({[s.j.LOG]:e,[s.j.ID]:t})=>e[a.k1.PARAMETERS]?.[r.ns.CLIENT]?.[a.bP.ID]?n.createElement(A.A,{label:n.createElement(l.sA,{id:t}),value:e[a.k1.PARAMETERS][r.ns.CLIENT][a.bP.ID]}):null},992264(e,t,E){E.d(t,{A:()=>T});var n=E(469733),l=E(296540),r=E(968906),a=E(398300),A=E(845030),s=E(916537),i=E(30611),c=E(151033),o=E(383664),R=E(638595);const T=({[R.j.LOG]:e,[R.j.ID]:t})=>{const E=(0,n.useDispatch)(),T=(0,l.useCallback)(()=>{E((0,A.XP)({type:e[c.k1.PARAMETERS]?.[i.ns.CLIENT]?.[i.MK.MODEL]?a.H.DEVICE:a.H.CLIENT,id:e[c.k1.PARAMETERS]?.[i.ns.CLIENT]?.[c.bP.ID]}))},[E,e]);return e[c.k1.PARAMETERS]?.[i.ns.CLIENT]?.[i.MK.NAME]?l.createElement(o.A,{label:l.createElement(s.sA,{id:t}),onPress:T,value:e[c.k1.PARAMETERS][i.ns.CLIENT][i.MK.NAME],...r.A.addDataTestId(r.A.TestId.SIDE_PANEL_TRIGGER)}):null}},638595(e,t,E){var n;E.d(t,{j:()=>n}),function(e){e.ID="id",e.LOG="log"}(n||(n={}))},383664(e,t,E){E.d(t,{A:()=>i});var n=E(296540),l=E(592563),r=E(199582),a=E(491876),A=E(35571),s=E(115829);const i=({label:e,value:t,onPress:E,[r.L]:i})=>n.createElement(A.R,null,n.createElement(a.A,null,e),n.createElement(l.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:E,...i&&{[r.L]:i}},n.createElement(s.A,{size:"medium",color:"inherit"},t)))}}]);