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