"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[7301],{134506:(e,E,l)=>{l.d(E,{A:()=>P});var n=l(296540),t=l(699784),A=l(688347),a=l(30611),r=l(151033),s=l(67668),R=l(638595);const c={...A.kO,"ipsec-vpn":"COMMON_IPSEC_VPN","wireguard-teleport-server":"LOGS_WIREGUARD_TELEPORT_SERVER"},P=({[R.j.ID]:e,[R.j.LOG]:E})=>E[r.k1.PARAMETERS]?.[a.ns.NETWORK]?.[a.jN.VPN_TYPE]?n.createElement(s.A,{label:n.createElement(t.sA,{id:e}),value:n.createElement(t.sA,{id:c[E[r.k1.PARAMETERS][a.ns.NETWORK][a.jN.VPN_TYPE]],defaultMessage:E[r.k1.PARAMETERS][a.ns.NETWORK][a.jN.VPN_TYPE]})}):null},155322:(e,E,l)=>{l.d(E,{A:()=>R});var n=l(296540),t=l(699784),A=l(30611),a=l(151033),r=l(67668),s=l(638595);const R=({[s.j.ID]:e,[s.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[A.ns.REMOTE_IP]?.[a.bP.NAME]?n.createElement(r.A,{label:n.createElement(t.sA,{id:e}),value:E[a.k1.PARAMETERS][A.ns.REMOTE_IP][a.bP.NAME]}):null},314114:(e,E,l)=>{l.d(E,{A:()=>R});var n=l(296540),t=l(699784),A=l(30611),a=l(151033),r=l(67668),s=l(638595);const R=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[A.ns.WAN_ID]?.[a.bP.NAME]?n.createElement(r.A,{label:n.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][A.ns.WAN_ID][a.bP.NAME]}):null},383664:(e,E,l)=>{l.d(E,{A:()=>s});var n=l(296540),t=l(592563),A=l(491876),a=l(35571),r=l(115829);const s=({label:e,value:E,onPress:l})=>n.createElement(a.R,null,n.createElement(A.A,null,e),n.createElement(t.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:l},n.createElement(r.A,{size:"medium",color:"inherit"},E)))},450742:(e,E,l)=>{l.d(E,{A:()=>R});var n=l(296540),t=l(699784),A=l(30611),a=l(151033),r=l(67668),s=l(638595);const R=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[A.ns.CLIENT]?.[A.MK.IP]?n.createElement(r.A,{label:n.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][A.ns.CLIENT][A.MK.IP]}):null},597162:(e,E,l)=>{l.d(E,{A:()=>R});var n=l(296540),t=l(699784),A=l(30611),a=l(151033),r=l(67668),s=l(638595);const R=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[A.ns.VPN_SERVER_ADDRESS]?.[a.bP.NAME]?n.createElement(r.A,{label:n.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][A.ns.VPN_SERVER_ADDRESS][a.bP.NAME]}):null},638595:(e,E,l)=>{var n;l.d(E,{j:()=>n}),function(e){e.ID="id",e.LOG="log"}(n||(n={}))},685568:(e,E,l)=>{l.d(E,{A:()=>R});var n=l(296540),t=l(699784),A=l(30611),a=l(151033),r=l(67668),s=l(638595);const R=({[s.j.ID]:e,[s.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[A.ns.CLIENT]?.[A.MK.RADIUS_IDENTITY]?n.createElement(r.A,{label:n.createElement(t.sA,{id:e}),value:E[a.k1.PARAMETERS][A.ns.CLIENT][A.MK.RADIUS_IDENTITY]}):null},807301:(e,E,l)=>{l.r(E),l.d(E,{default:()=>N});var n=l(296540),t=l(314114),A=l(134506),a=l(859444),r=l(597162),s=l(155322),R=l(685568),c=l(450742),P=l(979353);const N=({[P.w.LOG]:e})=>[n.createElement(a.A,{key:"vpnServerName",id:"COMMON_VPN_SERVER",log:e}),n.createElement(A.A,{key:"vpnType",id:"COMMON_VPN_TYPE",log:e}),n.createElement(r.A,{key:"vpnServerAddress",id:"LOGS_VPN_SERVER_ADDRESS",log:e}),n.createElement(t.A,{key:"wanId",id:"COMMON_WAN_ID",log:e}),n.createElement(R.A,{key:"radiusIdentity",id:"COMMON_CLIENT",log:e}),n.createElement(c.A,{key:"clientIpAddress",id:"COMMON_CLIENT_IP_ADDRESS",log:e}),n.createElement(s.A,{key:"remoteIp",id:"COMMON_REMOTE_IP_ADDRESS",log:e})]},859444:(e,E,l)=>{l.d(E,{A:()=>M});var n=l(956347),t=l(296540),A=l(928085),a=l(699784),r=l(30611),s=l(151033),R=l(959341),c=l(383664);const P=":vpn:";var N=l(638595);const M=({[N.j.LOG]:e,[N.j.ID]:E})=>{const l=(0,n.W6)(),M=(0,A.A)(R.Vy),T=(0,A.A)(`${R.X9}/${R.fW}`),d=T.concat(`/${P}`),i=(0,t.useCallback)(()=>{if("Teleport"===e[s.k1.PARAMETERS]?.[r.ns.NETWORK]?.[s.bP.ID])l.push(M);else{const E=e[s.k1.PARAMETERS]?.[r.ns.NETWORK]?.[s.bP.ID];l.push(E?d.replace(P,E):T)}},[e,l,M,T,d]);return e[s.k1.PARAMETERS]?.[r.ns.NETWORK]?.[s.bP.NAME]?t.createElement(c.A,{label:t.createElement(a.sA,{id:E}),onPress:i,value:e[s.k1.PARAMETERS][r.ns.NETWORK][s.bP.NAME]}):null}},979353:(e,E,l)=>{var n;l.d(E,{w:()=>n}),function(e){e.LOG="log"}(n||(n={}))}}]);