"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[46496],{55983:(e,t,E)=>{E.d(t,{Ai:()=>a,Ar:()=>A,Qv:()=>s,ZP:()=>c,aY:()=>r,p6:()=>l});var n=E(448547);const l="alarm-manager",r="control-plane",a=`${r}/integrations`,A=`${r}/backups`,s="admins",c=Object.values(n.Kr)},57218:(e,t,E)=>{E.d(t,{A:()=>R});var n=E(296540),l=E(469733),r=E(398300),a=E(845030),A=E(699784),s=E(30611),c=E(151033),i=E(383664),o=E(638595),M=E(164231),D=E(487585);const R=({[o.j.ID]:e,[o.j.LOG]:t})=>{const E=(0,l.useDispatch)(),R=(0,n.useCallback)(()=>{E((0,a.XP)({type:r.H.DEVICE,id:t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.ID]}))},[E,t]),d=(0,M.A)({[D.U.MAC]:t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.ID],[D.U.NAME]:t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.NAME],[D.U.MODEL]:t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[s.pq.MODEL_NAME]});return t[c.k1.PARAMETERS]?.[s.ns.DEVICE]?n.createElement(i.A,{label:n.createElement(A.sA,{id:e}),value:d,onPress:R}):null}},163414:(e,t,E)=>{E.d(t,{A:()=>O});var n=E(296540),l=E(956347),r=E(469733),a=E(705145),A=E(592563),s=E(834316),c=E(15095),i=E(699784),o=E(187483),M=E(556456),D=E(55983),R=E(30611),d=E(151033),u=E(559874),m=E(67668),I=E(638595);const O=({[I.j.ID]:e,[I.j.LOG]:t})=>{const E=(0,l.W6)(),O=(0,r.useSelector)(o.W1),S=(0,r.useSelector)(o.TP),P=(0,r.useSelector)(M.yE),N=(0,c.A)(D.Qv),C=(0,n.useCallback)(()=>{P?E.push(N):window.location.href=(0,s.SK)(S)},[S,N,E,P]),T=t[d.k1.PARAMETERS]?.[R.ns.ADMIN]?.[d.bP.NAME]||t[d.k1.PARAMETERS]?.[R.ns.USER]?.[d.bP.NAME],v=T?.toLowerCase()==="Unknown".toLowerCase(),k=T?.toLowerCase()==="WiFi Doctor".toLowerCase(),b=v?"Auto Update":T;return b?n.createElement(m.A,{label:n.createElement(i.sA,{id:e}),value:n.createElement(n.Fragment,null,O||v||k?n.createElement(u.A,null,b):n.createElement(A.A,{fontSize:"medium",type:"button",onPress:C},n.createElement(a.A,{size:"medium",color:"inherit",isTruncated:!0},b)))}):null}},164231:(e,t,E)=>{E.d(t,{A:()=>u});var n=E(296540),l=E(118818),r=E(6510),a=E(487585),A=E(469733),s=E(171073),c=E(837612),i=E(602197);const o=e=>{const t=(0,A.useDispatch)(),[E,l]=(0,n.useState)(i.g.UNKNOWN);return(0,n.useEffect)(()=>{e&&t((0,s.pI)(e)).then(({data:e})=>{l((0,c.S9)(Array.isArray(e)?e[0]:e))})},[t,e]),E};var M=E(71479),D=E(294303),R=E(566723);const d=(0,M.A)(D.A)`
  align-items: center;
  gap: ${R.kc};
`,u=({[a.U.MAC]:e,[a.U.NAME]:t,[a.U.MODEL]:E})=>{return n.createElement(d,null,n.createElement(l.A,{size:"small",variant:(A=o(e),A===i.g.CONNECTED?"success":"danger")}),(0,r.Q)({name:t,model:E,mac:e}));var A}},196898:(e,t,E)=>{E.d(t,{A:()=>c});var n=E(296540),l=E(699784),r=E(30611),a=E(151033),A=E(67668),s=E(638595);const c=({[s.j.LOG]:e,[s.j.ID]:t})=>e[a.k1.PARAMETERS]?.[r.ns.DEVICE]?.[a.bP.ID]?n.createElement(A.A,{label:n.createElement(l.sA,{id:t}),value:e[a.k1.PARAMETERS][r.ns.DEVICE][a.bP.ID]}):null},383664:(e,t,E)=>{E.d(t,{A:()=>s});var n=E(296540),l=E(592563),r=E(491876),a=E(35571),A=E(115829);const s=({label:e,value:t,onPress:E})=>n.createElement(a.R,null,n.createElement(r.A,null,e),n.createElement(l.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:E},n.createElement(A.A,{size:"medium",color:"inherit"},t)))},487585:(e,t,E)=>{var n;E.d(t,{U:()=>n}),function(e){e.MAC="mac",e.NAME="name",e.MODEL="model"}(n||(n={}))},546496:(e,t,E)=>{E.r(t),E.d(t,{default:()=>o});var n=E(296540),l=E(609838),r=E(57218),a=E(689210),A=E(196898),s=E(893126),c=E(163414),i=E(979353);const o=({[i.w.LOG]:e})=>[n.createElement(r.A,{key:"deviceName",id:"COMMON_DEVICE",log:e}),n.createElement(a.A,{key:"deviceModel",id:"COMMON_MODEL",log:e}),n.createElement(s.A,{key:"deviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),n.createElement(A.A,{key:"deviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e}),n.createElement(l.A,{key:"deviceVersion",id:"COMMON_VERSION",log:e}),n.createElement(c.A,{key:"admin",id:"LOGS_ADOPTED_BY",log:e})]},556456:(e,t,E)=>{E.d(t,{XU:()=>D,YQ:()=>R,aB:()=>M,g0:()=>O,jO:()=>d,tx:()=>o,yB:()=>i,yE:()=>m,zn:()=>I});var n=E(801081),l=E(874807),r=E(187483),a=E(448547),A=E(524332),s=E(55983);const c=(0,n.Mz)(r.kb,e=>e[a.C2.SWAI_ROUTES]||[]),i=(0,n.Mz)(c,e=>e.filter(e=>s.ZP.every(t=>!e[A.rR.PATH].startsWith(t)))),o=(0,n.Mz)(i,e=>e.filter(e=>!e[A.rR.IS_HIDDEN])),M=(0,n.Mz)(c,e=>e.filter(e=>e[A.rR.PATH].startsWith(a.Kr.SETTINGS))),D=(0,n.Mz)(M,e=>e.filter(e=>!e[A.rR.IS_HIDDEN])),R=(0,n.Mz)(c,e=>e.filter(e=>e[A.rR.PATH].startsWith(a.Kr.SYSLOG))),d=(0,n.Mz)(R,e=>e.filter(e=>!e[A.rR.IS_HIDDEN])),u=e=>(0,n.Mz)(c,t=>t.some(t=>t[A.rR.PATH].includes(e)&&!t[A.rR.IS_HIDDEN])),m=(0,n.Mz)(u(s.aY),e=>e),I=(0,n.Mz)(u(s.p6),e=>e),O=(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})},609838:(e,t,E)=>{E.d(t,{A:()=>c});var n=E(296540),l=E(699784),r=E(30611),a=E(151033),A=E(67668),s=E(638595);const c=({[s.j.LOG]:e,[s.j.ID]:t})=>e[a.k1.PARAMETERS]?.[r.ns.DEVICE]?.[r.pq.VERSION]?n.createElement(A.A,{label:n.createElement(l.sA,{id:t}),value:e[a.k1.PARAMETERS][r.ns.DEVICE][r.pq.VERSION]}):null},638595:(e,t,E)=>{var n;E.d(t,{j:()=>n}),function(e){e.ID="id",e.LOG="log"}(n||(n={}))},689210:(e,t,E)=>{E.d(t,{A:()=>i});var n=E(296540),l=E(6510),r=E(699784),a=E(30611),A=E(151033),s=E(67668),c=E(638595);const i=({[c.j.LOG]:e,[c.j.ID]:t})=>e[A.k1.PARAMETERS]?.[a.ns.DEVICE]?.[a.pq.MODEL_NAME]?n.createElement(s.A,{label:n.createElement(r.sA,{id:t}),value:(0,l.Lm)(e[A.k1.PARAMETERS][a.ns.DEVICE][a.pq.MODEL_NAME])}):null},893126:(e,t,E)=>{E.d(t,{A:()=>c});var n=E(296540),l=E(699784),r=E(30611),a=E(151033),A=E(67668),s=E(638595);const c=({[s.j.LOG]:e,[s.j.ID]:t})=>e[a.k1.PARAMETERS]?.[r.ns.DEVICE]?.[r.pq.IP]?n.createElement(A.A,{label:n.createElement(l.sA,{id:t}),value:e[a.k1.PARAMETERS][r.ns.DEVICE][r.pq.IP]}):null},979353:(e,t,E)=>{var n;E.d(t,{w:()=>n}),function(e){e.LOG="log"}(n||(n={}))}}]);