"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[1991],{501991(E,A,s){s.r(A),s.d(A,{default:()=>d});var R=s(274934),e=s(33325),P=s(883653),n=s(977205),N=s(459277),l=s(838025),M=s(496207),T=s(300457),I=s(980178);const d=({[I.w.LOG]:E})=>[(0,R.jsx)(n.A,{id:"COMMON_VPN_SERVER",log:E},"vpnServerName"),(0,R.jsx)(P.A,{id:"COMMON_VPN_TYPE",log:E},"vpnType"),(0,R.jsx)(N.A,{id:"LOGS_VPN_SERVER_ADDRESS",log:E},"vpnServerAddress"),(0,R.jsx)(e.A,{id:"COMMON_WAN_ID",log:E},"wanId"),(0,R.jsx)(M.A,{id:"LOGS_CLIENT_NAME",log:E},"clientName"),(0,R.jsx)(T.A,{id:"COMMON_CLIENT_IP_ADDRESS",log:E},"clientIpAddress"),(0,R.jsx)(l.A,{id:"COMMON_REMOTE_IP_ADDRESS",log:E},"remoteIp")]},980178(E,A,s){var R;s.d(A,{w:()=>R}),function(E){E.LOG="log"}(R||(R={}))},300457(E,A,s){s.d(A,{A:()=>M});var R=s(274934),e=s(470070),P=s(602764),n=s(599508),N=s(292681),l=s(412258);const M=({[l.j.LOG]:E,[l.j.ID]:A})=>E[n.k1.PARAMETERS]?.[P.ns.CLIENT]?.[P.MK.IP]?(0,R.jsx)(N.A,{label:(0,R.jsx)(e.sA,{id:A}),value:E[n.k1.PARAMETERS][P.ns.CLIENT][P.MK.IP]}):null},496207(E,A,s){s.d(A,{A:()=>a});var R=s(274934),e=s(977872),P=s(602086),n=s(590979),N=s(449339),l=s(205521),M=s(470070),T=s(602764),I=s(599508),d=s(913637),_=s(412258);const a=({[_.j.LOG]:E,[_.j.ID]:A})=>{const s=(0,e.wA)(),a=(0,P.useCallback)(()=>{s((0,l.XP)({type:E[I.k1.PARAMETERS]?.[T.ns.CLIENT]?.[T.MK.MODEL]?N.H.DEVICE:E[I.k1.PARAMETERS]?.[T.ns.CLIENT]?.[T.MK.UNIFI_DEVICE_FINGERPRINT_ICON_FILENAME]?N.H.UNIFI_DEVICE_CLIENT:N.H.CLIENT,id:E[I.k1.PARAMETERS]?.[T.ns.CLIENT]?.[I.bP.ID]}))},[s,E]);return E[I.k1.PARAMETERS]?.[T.ns.CLIENT]?.[T.MK.NAME]?(0,R.jsx)(d.A,{label:(0,R.jsx)(M.sA,{id:A}),onPress:a,value:E[I.k1.PARAMETERS][T.ns.CLIENT][T.MK.NAME],...n.A.addDataTestId(n.A.TestId.SIDE_PANEL_TRIGGER)}):null}},412258(E,A,s){var R;s.d(A,{j:()=>R}),function(E){E.ID="id",E.LOG="log"}(R||(R={}))},838025(E,A,s){s.d(A,{A:()=>M});var R=s(274934),e=s(470070),P=s(602764),n=s(599508),N=s(292681),l=s(412258);const M=({[l.j.ID]:E,[l.j.LOG]:A})=>A[n.k1.PARAMETERS]?.[P.ns.REMOTE_IP]?.[n.bP.NAME]?(0,R.jsx)(N.A,{label:(0,R.jsx)(e.sA,{id:E}),value:A[n.k1.PARAMETERS][P.ns.REMOTE_IP][n.bP.NAME]}):null},913637(E,A,s){s.d(A,{A:()=>M});var R=s(274934),e=s(266824),P=s(147045),n=s(785697),N=s(607084),l=s(156007);const M=({label:E,value:A,onPress:s,[P.L]:M})=>(0,R.jsxs)(N.R,{children:[(0,R.jsx)(n.A,{children:E}),(0,R.jsx)(e.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:s,...M&&{[P.L]:M},children:(0,R.jsx)(l.A,{size:"medium",color:"inherit",children:A})})]})},459277(E,A,s){s.d(A,{A:()=>M});var R=s(274934),e=s(470070),P=s(602764),n=s(599508),N=s(292681),l=s(412258);const M=({[l.j.LOG]:E,[l.j.ID]:A})=>E[n.k1.PARAMETERS]?.[P.ns.VPN_SERVER_ADDRESS]?.[n.bP.NAME]?(0,R.jsx)(N.A,{label:(0,R.jsx)(e.sA,{id:A}),value:E[n.k1.PARAMETERS][P.ns.VPN_SERVER_ADDRESS][n.bP.NAME]}):null},977205(E,A,s){s.d(A,{A:()=>t});var R=s(274934),e=s(602086),P=s(237725),n=s(977872),N=s(590979),l=s(43506),M=s(470070),T=s(602764),I=s(599508),d=s(969288),_=s(205521),a=s(449339),S=s(913637),O=s(412258);const t=({[O.j.LOG]:E,[O.j.ID]:A})=>{const s=(0,P.W6)(),t=(0,n.wA)(),i=(0,l.A)(d.Hp),j=(0,e.useCallback)(()=>{"Teleport"===E[I.k1.PARAMETERS]?.[T.ns.NETWORK]?.[I.bP.ID]?s.push(i):t((0,_.XP)({type:a.H.VPN_SERVER,id:E[I.k1.PARAMETERS]?.[T.ns.NETWORK]?.[I.bP.ID]??d.R6}))},[E,s,t,i]);return E[I.k1.PARAMETERS]?.[T.ns.NETWORK]?.[I.bP.NAME]?(0,R.jsx)(S.A,{label:(0,R.jsx)(M.sA,{id:A}),onPress:j,value:E[I.k1.PARAMETERS][T.ns.NETWORK][I.bP.NAME],...N.A.addDataTestId(N.A.TestId.SIDE_PANEL_TRIGGER)}):null}},883653(E,A,s){s.d(A,{A:()=>I});var R=s(274934),e=s(470070),P=s(602764),n=s(599508),N=s(712874),l=s(292681),M=s(412258);const T={...N.k,"ipsec-vpn":"COMMON_IPSEC_VPN","wireguard-teleport-server":"LOGS_WIREGUARD_TELEPORT_SERVER"},I=({[M.j.ID]:E,[M.j.LOG]:A})=>A[n.k1.PARAMETERS]?.[P.ns.NETWORK]?.[P.jN.VPN_TYPE]?(0,R.jsx)(l.A,{label:(0,R.jsx)(e.sA,{id:E}),value:(0,R.jsx)(e.sA,{id:T[A[n.k1.PARAMETERS][P.ns.NETWORK][P.jN.VPN_TYPE]],defaultMessage:A[n.k1.PARAMETERS][P.ns.NETWORK][P.jN.VPN_TYPE]})}):null},33325(E,A,s){s.d(A,{A:()=>M});var R=s(274934),e=s(470070),P=s(602764),n=s(599508),N=s(292681),l=s(412258);const M=({[l.j.LOG]:E,[l.j.ID]:A})=>E[n.k1.PARAMETERS]?.[P.ns.WAN_ID]?.[n.bP.NAME]?(0,R.jsx)(N.A,{label:(0,R.jsx)(e.sA,{id:A}),value:E[n.k1.PARAMETERS][P.ns.WAN_ID][n.bP.NAME]}):null},712874(E,A,s){s.d(A,{k:()=>e});var R=s(794721);const e={[R.G.PPTP_SERVER]:"COMMON_PPTP",[R.G.L2TP_SERVER]:"COMMON_L2TP",[R.G.WIREGUARD_SERVER]:"COMMON_WIREGUARD",[R.G.OPEN_VPN_SERVER]:"COMMON_OPEN_VPN"}}}]);