"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[22784],{779263(e,s,_){_.d(s,{_:()=>l});var t=_(29472),n=_(290454);const i="usgSettingsDefaults",a=`${n.w}/settings/usg/defaults`,l=(e={},s={})=>(0,t.Kd)(i,a,i,e,s)},144312(e,s,_){_.d(s,{A:()=>a});var t=_(274934),n=_(125799),i=_(470070);const a=({show:e,children:s,position:_})=>(0,t.jsx)(n.A,{position:_||"topStart",description:e?(0,t.jsx)(i.sA,{id:"DEVICE_DISABLE_GLOBAL_SWITCH_SETTINGS"}):void 0,children:(0,t.jsx)("span",{children:s})})},597750(e,s,_){_.d(s,{A:()=>a});var t=_(274934),n=_(486061),i=_(100978);const a=({maxWidth:e,label:s,children:_,...a})=>(0,t.jsxs)(i.A,{flexDirection:"column",width:"100%",maxWidth:"settingsGridContent"===e?n.ng:e,...a,children:[s,_]})},787481(e,s,_){_.d(s,{A:()=>l});var t=_(274934),n=_(833466),i=_(309130),a=_(100978);const l=e=>(0,t.jsx)(a.A,{paddingTop:i.YC,paddingBottom:i.YC,gap:i.Ln,rowGap:i.YC,flexWrap:"wrap",minHeight:n.b,alignItems:"center",...e})},322784(e,s,_){_.d(s,{q:()=>re,A:()=>ce});var t=_(274934),n=_(418398),i=_(977872),a=_(602086),l=_(943126),r=_(843871),A=_(956976),c=_(762705),E=_(950804),o=_(364905),d=_(871808),m=_(586566),O=_(309130),T=_(144312),C=_(787481),u=_(250266),S=_(89469),N=_(164487),h=_(597750),I=_(120197),M=_(796091),g=_(100978),x=_(205521),p=_(470070),L=_(222102),j=_(656466),R=_(401042),b=_(779263);const v=(0,j.uh)((0,b._)()),D=(0,L.Mz)(v,R.i6);var f=_(448108),U=_(291935),P=_(642013),V=_(598990),F=_(95857),k=_(956978),G=_(570866),w=_(976888),B=_(938984),y=_(793442),Y=_(726831);const H=({disabled:e})=>{const{values:s,setFieldValue:_}=(0,r.j7)(),[n,i]=(0,a.useState)(!1);return(0,t.jsxs)(h.A,{children:[(0,t.jsx)(N.A,{htmlFor:"nat_auto",tooltip:(0,t.jsx)(p.sA,{id:"DEVICE_NAT_GLOBAL_NAT_SETTINGS_TOOLTIP",values:{link:(0,t.jsx)(y.A,{noWrap:!0,id:"COMMON_LEARN_MORE",href:Y.A.customNatArticle})}}),tooltipProps:{isInteractive:!0},children:(0,t.jsx)(p.sA,{id:"DEVICE_NAT_GLOBAL_NAT_SETTINGS"})}),(0,t.jsxs)(g.A,{alignItems:"center",gap:O.Ln,children:[(0,t.jsx)(M.A,{children:(0,t.jsx)(I.A,{type:"realCheckbox",name:"nat_auto",checked:s.nat_mode===f.xH.AUTO,onChange:({target:{checked:e}})=>{_("nat_mode",e?f.xH.AUTO:f.xH.CUSTOM)},disabled:e,children:(0,t.jsx)(p.sA,{id:"COMMON_VALUE_AUTO"})})}),s.nat_mode!==f.xH.AUTO?(0,t.jsxs)(C.A,{children:[(0,t.jsx)(I.A,{type:"radio",name:"nat_mode",value:f.xH.CUSTOM,disabled:e,vertical:!0,children:(0,t.jsx)(p.sA,{id:"COMMON_CUSTOM"})}),(0,t.jsx)(u.A,{title:"DEVICE_NAT_DISABLE_CONFIRMATION_TITLE",buttonMessage:"COMMON_ACTION_DISABLE",body:(0,t.jsxs)(g.A,{flexDirection:"column",gap:O.kc,children:[(0,t.jsx)(B.A,{color:"inherit",size:"inherit",children:(0,t.jsx)(p.sA,{id:"DEVICE_NAT_DISABLE_CONFIRMATION_BODY_PART_ONE"})}),(0,t.jsx)(B.A,{color:"inherit",size:"inherit",children:(0,t.jsx)(p.sA,{id:"DEVICE_NAT_DISABLE_CONFIRMATION_BODY_PART_TWO"})})]}),isOpen:n,handleClose:()=>{i(!1)},handleConfirm:()=>{_("nat_mode",f.xH.OFF)},buttonVariant:"danger",children:(0,t.jsx)(I.A,{type:"radio",name:"nat_mode",value:f.xH.OFF,disabled:e,vertical:!0,onChange:()=>{i(!0)},children:(0,t.jsx)(p.sA,{id:"COMMON_OFF"})})})]}):null]})]})},W="auto_enabled",K=[{label:"IPS_VALUES_CATEGORY_EMERGING_ICMP",value:"icmp_timeout"},{label:"COMMON_OTHER",value:"other_timeout"},{label:"COMMON_TCP_CLOSE",value:"tcp_close_timeout"},{label:"COMMON_TCP_CLOSE_WAIT",value:"tcp_close_wait_timeout"},{label:"COMMON_TCP_ESTABLISHED",value:"tcp_established_timeout"},{label:"COMMON_TCP_FIN_WAIT",value:"tcp_fin_wait_timeout"},{label:"COMMON_TCP_LAST_ACK",value:"tcp_last_ack_timeout"},{label:"COMMON_TCP_SYN_RECV",value:"tcp_syn_recv_timeout"},{label:"COMMON_TCP_SYN_SENT",value:"tcp_syn_sent_timeout"},{label:"COMMON_TCP_TIME_WAIT",value:"tcp_time_wait_timeout"},{label:"COMMON_UDP_OTHER",value:"udp_other_timeout"},{label:"COMMON_UDP_STREAM",value:"udp_stream_timeout"}],z=E.A.object().shape({[W]:E.A.boolean(),...Object.fromEntries(K.map(({label:e,value:s})=>[s,E.A.number().label(e).when([W],{is:e=>!e,then:E.A.number().max(1209600).min(1).required()})]))}),q="80px",X=(0,_(247816).A)("div")`
  display: grid;
  grid-template-columns: repeat(4, minmax(${q}, 1fr));
  grid-gap: ${O.kc};

  // Since labels come from the Input component from uic, target and style them ourselves
  div[class^='label'] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: ${q};
  }
`,$=({})=>{const{values:e}=(0,r.j7)();return(0,t.jsxs)(S.A,{children:[(0,t.jsx)(M.A,{children:(0,t.jsx)(I.A,{name:`firewall_state_timeouts.${W}`,type:"realCheckbox",children:(0,t.jsx)(p.sA,{id:"COMMON_AUTO_FIREWALL_STATE_TIMEOUTS"})})}),e.firewall_state_timeouts[W]?null:(0,t.jsx)(X,{children:K.map(({label:e,value:s})=>(0,t.jsx)(I.A,{full:!0,name:`firewall_state_timeouts.${s}`,type:"number",variant:"secondary",label:e},s))})]})};var Q;!function(e){e.FTP="ftp_module",e.H323="h323_module",e.SIP="sip_module",e.GRE="gre_module",e.PPTP="pptp_module",e.TFTP="tftp_module"}(Q||(Q={}));const J=Object.values(Q),Z={[Q.FTP]:"DEVICE_CONNTRACK_MODULES_FTP",[Q.H323]:"DEVICE_CONNTRACK_MODULES_H323",[Q.SIP]:"DEVICE_CONNTRACK_MODULES_SIP",[Q.GRE]:"DEVICE_CONNTRACK_MODULES_GRE",[Q.PPTP]:"DEVICE_CONNTRACK_MODULES_PPTP",[Q.TFTP]:"DEVICE_CONNTRACK_MODULES_TFTP"},ee=()=>{const{formatMessage:e}=(0,p.tz)(),s=(0,a.useMemo)(()=>J.map(s=>({value:s,label:e({id:Z[s]})})),[e]);return(0,t.jsxs)(h.A,{children:[(0,t.jsx)(N.A,{tooltip:(0,t.jsx)(p.sA,{id:"DEVICE_CONNTRACK_MODULES_DESC"}),tooltipProps:{portal:!0},htmlFor:"firewall_connection_tracking_modules",children:(0,t.jsx)(p.sA,{id:"DEVICE_CONNTRACK_MODULES"})}),(0,t.jsx)(I.A,{type:"picklist",name:"firewall_connection_tracking_modules",options:s,triggerButtonText:"COMMON_SELECT"})]})},se=(e,s)=>({...e,...Object.fromEntries(Object.values(Q).map(e=>[e,s.firewall_connection_tracking_modules.includes(e)]))}),_e=e=>({firewall_connection_tracking_modules:Object.values(Q).filter(s=>s in e&&!!e[s])});var te=_(197571),ne=_(29919);const ie=({})=>{const e=(0,i.d4)(te.Ct),s=(0,a.useMemo)(()=>e.filter(ne.gw).map(({_id:e,name:s})=>({label:s,value:e})),[e]);return(0,t.jsxs)(h.A,{children:[(0,t.jsx)(N.A,{htmlFor:"nat_excluded_network_ids",tooltip:(0,t.jsx)(p.sA,{id:"DEVICE_NAT_EXCLUDED_NETWORKS_TOOLTIP"}),children:(0,t.jsx)(p.sA,{id:"DEVICE_NAT_EXCLUDED_NETWORKS"})}),(0,t.jsx)(I.A,{type:"picklist",name:"nat_excluded_network_ids",options:s,triggerButtonText:"COMMON_ACTION_SELECT_NETWORKS",selectAllText:"COMMON_ACTION_SELECT_ALL",truncateLabels:!0,isWindowed:!0,isFullWidth:!0})]})};var ae=_(183743);const le=()=>(0,t.jsx)(M.A,{children:(0,t.jsx)(I.A,{type:"realCheckbox",name:"ikev2_seamless_rekeying",tooltipMessage:(0,t.jsx)(p.sA,{id:"DEVICE_IKEV2_SEAMLESS_REKEYING_TOOLTIP"}),children:(0,t.jsx)(p.sA,{id:"COMMON_IKEV2_SEAMLESS_REKEYING"})})}),re="services",Ae=(0,r.bk)({enableReinitialize:!0,mapPropsToValues:({usgSettings:e,globalNatSettings:s,usgSettingsDefaults:_,ipsecSettings:t,activeItem:{jumboframe_enabled:n=!1,flowctrl_enabled:i=!1,snmp_contact:a,snmp_location:l}})=>{const{mss_clamp_mss:r,mss_clamp:A,arp_cache_timeout:c,arp_cache_base_reachable:E,echo_server:d,dns_verification:m}=e;return{jumboframe_enabled:n,flowctrl_enabled:i,snmpEnabled:Boolean(a||l),snmp_contact:a,snmp_location:l,usgSettings:{mss_clamp:A||P.DEFAULT_GATEWAY_SETTINGS.mss_clamp,mss_clamp_mss:r||P.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss,arp_cache_timeout:c||"normal",arp_cache_base_reachable:E||P.DEFAULT_GATEWAY_SETTINGS.arp_cache_base_reachable,echo_server:d||P.DEFAULT_GATEWAY_SETTINGS.echo_server,dns_verification:m||_?.dns_verification},firewall_state_timeouts:(O=e,T=_,{[W]:(O?.timeout_setting_preference||T?.timeout_setting_preference||o.C.AUTO)===o.C.AUTO,...Object.fromEntries(K.map(e=>[e.value,O[e.value]??T[e.value]??0]))}),..._e(e),nat_mode:s.mode,nat_excluded_network_ids:s.excluded_network_ids||[],ikev2_seamless_rekeying:t?.ikev2_reauthentication_method===f.Xn.MAKE_BEFORE_BREAK};var O,T},validationSchema:E.A.object().shape({jumboframe_enabled:E.A.boolean(),flowctrl_enabled:E.A.boolean(),...ae.U,usgSettings:E.A.object().shape({mss_clamp:E.A.string(),mss_clamp_mss:E.A.number().when("mss_clamp",{is:f.xO.CUSTOM,then:E.A.number().label("DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING").required().min(P.DEFAULT_GATEWAY_SETTINGS.min_mss_clamp_mss,(0,t.jsx)(p.sA,{id:"DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING_VALIDATION_LABEL",values:{min:P.DEFAULT_GATEWAY_SETTINGS.min_mss_clamp_mss,max:P.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss}})).max(P.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss,(0,t.jsx)(p.sA,{id:"DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING_VALIDATION_LABEL",values:{min:P.DEFAULT_GATEWAY_SETTINGS.min_mss_clamp_mss,max:P.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss}}))}),arp_cache_timeout:E.A.string(),arp_cache_base_reachable:E.A.number().when("arp_cache_timeout",{is:"custom",then:E.A.number().label("COMMON_ARP_CACHE_TIMEOUT").required().min(1).max(P.DEFAULT_GATEWAY_SETTINGS.max_arp_cache_base_reachable)}),echo_server:E.A.string().label("DEVICE_PROPERTIES_VALUES_ECHO_SERVER_IP_OR_HOSTNAME").required().matches(G.yA,{message:(0,t.jsx)(p.sA,{id:"COMMON_VALIDATION_HOSTNAME_OR_IPV4"})}).matches(G.oo,{message:(0,t.jsx)(p.sA,{id:"COMMON_VALIDATION_ECHO_SERVER",values:{name:(0,t.jsx)(p.sA,{id:"COMMON_INTERNET_VERIFICATION_SERVER_LABEL"})}})}),dns_verification:E.A.object().shape({setting_preference:E.A.string(),primary_dns_server:E.A.string().when("setting_preference",{is:o.C.MANUAL,then:E.A.string().label("COMMON_PRIMARY_DNS_SERVER").required().matches(G.zF,{message:(0,t.jsx)(p.sA,{id:"COMMON_VALIDATION_VALID_IPV4"})}).notOneOf([E.A.ref("secondary_dns_server")],(0,t.jsx)(p.sA,{id:"DEVICES_PRIMARY_SECONDARY_DNS_CANNOT_BE_EQUAL"}))}),secondary_dns_server:E.A.string().when("setting_preference",{is:o.C.MANUAL,then:E.A.string().label("COMMON_SECONDARY_DNS_SERVER").required().matches(G.zF,{message:(0,t.jsx)(p.sA,{id:"COMMON_VALIDATION_VALID_IPV4"})}).notOneOf([E.A.ref("primary_dns_server")],(0,t.jsx)(p.sA,{id:"DEVICES_PRIMARY_SECONDARY_DNS_CANNOT_BE_EQUAL"}))}),domain:E.A.string().when("setting_preference",{is:o.C.MANUAL,then:E.A.string().label("COMMON_DOMAIN").required().matches(G.yA,{message:(0,t.jsx)(p.sA,{id:"COMMON_DOMAIN_VALIDATION"})})})})}),firewall_state_timeouts:z,nat_excluded_network_ids:E.A.array().when("nat_mode",{is:f.xH.CUSTOM,then:E.A.array().required().min(1,(0,t.jsx)(p.sA,{id:"COMMON_VALIDATION_NETWORK"}))})}),handleSubmit:(e,{resetForm:s})=>{s({values:e})}}),ce=(0,n.Zz)((0,i.Ng)(e=>({usgSettings:(0,U.oP)(e),usgSettingsDefaults:D(e),globalSwitchSettings:(0,U.zu)(e),globalNatSettings:(0,U._k)(e),ipsecSettings:(0,U.gX)(e)}),{fetchSettings:V.Uc}),Ae)(function({values:e,dirty:s,isValid:_,setFormInvalid:n,resetForm:r,setFormDirty:E,setFieldValue:L,activeItem:j,globalSwitchSettings:R,isGlobalSwitchSettingsEnabled:v}){const D=(0,i.wA)(),U=(0,d.A)(F.Xj.WAN_SLA),G=(0,d.A)(F.Xj.IPSEC_IKEV2_RE_AUTH_METHOD),[B,y]=(0,a.useState)(!1),Y=(0,m.nN)(j),z=((0,k.Tbi)(j)||(0,k.moU)(j)&&(0,k.rm3)(j)||(0,k.tUS)(j)||(0,k.ueF)(j)||(0,k.X36)(j))&&v;(0,a.useEffect)(()=>{G&&D((0,V.Yy)()),D((0,b._)()),D((0,V.Uc)())},[D,G]),(0,a.useEffect)(()=>{const{usgSettings:s,snmpEnabled:_,snmp_location:t,snmp_contact:n,...i}=e;D((0,x.uo)({services:()=>({snmp_location:_?t:"",snmp_contact:_?n:"",...i})}));const a=(A=e.firewall_state_timeouts,c=(0,l.A)(s),{...c,timeout_setting_preference:A[W]?o.C.AUTO:o.C.MANUAL,...Object.fromEntries(A[W]?[]:K.map(e=>[e.value,A[e.value]]))});var A,c;a.dns_verification?.setting_preference&&a.dns_verification.setting_preference!==o.C.MANUAL&&(delete a.dns_verification.primary_dns_server,delete a.dns_verification.secondary_dns_server,delete a.dns_verification.domain),D((0,x.Oo)({services:async()=>{await Promise.all([D((0,V.fU)(se(a,e))),D((0,V.ht)({mode:e.nat_mode,excluded_network_ids:e.nat_excluded_network_ids})),G?D((0,V.Py)({ikev2_reauthentication_method:e.ikev2_seamless_rekeying?f.Xn.MAKE_BEFORE_BREAK:f.Xn.BREAK_BEFORE_MAKE})):void 0].filter(w.z)),await D((0,V.Uc)()),await r({values:e})}})),D((0,x.rW)({services:r}))},[D,G,r,e]),(0,a.useEffect)(()=>{E("services",s),n("services",!_)},[s,_,E,n]);const q=(0,a.useCallback)(({target:{name:e,checked:s}})=>{s&&L("usgSettings.mss_clamp",e)},[L]),X=(0,a.useCallback)(({target:{name:e,checked:s}})=>{s&&L("usgSettings.arp_cache_timeout",e)},[L]),Q=(0,a.useCallback)(({target:{checked:e}})=>L("jumboframe_enabled",e),[L]),J=((0,a.useCallback)(({target:{checked:e}})=>L("flowctrl_enabled",e),[L]),(0,a.useCallback)(()=>{L("usgSettings.echo_server",P.DEFAULT_GATEWAY_SETTINGS.echo_server)},[L])),Z=(0,a.useCallback)(()=>{y(!0)},[]),_e=(0,a.useCallback)(()=>{L("usgSettings.echo_server",P.DEFAULT_GATEWAY_SETTINGS.echo_server),y(!1)},[L]),te=(0,a.useCallback)(()=>{y(!1)},[]),ne=(0,a.useCallback)(()=>{L("usgSettings.echo_server",""),y(!1)},[L]),re=(0,a.useCallback)(e=>{L("usgSettings.dns_verification.setting_preference",e)},[L]),Ae=e.usgSettings.echo_server!==P.DEFAULT_GATEWAY_SETTINGS.echo_server;return(0,t.jsxs)(S.A,{children:[Y?(0,t.jsx)(T.A,{show:!!z,children:(0,t.jsx)(M.A,{children:(0,t.jsx)(c.A,{id:"jumboframe_enabled",checked:z?R.jumboframe_enabled:e.jumboframe_enabled,disabled:z,onChange:Q,children:(0,t.jsx)(p.sA,{id:"COMMON_JUMBO_FRAMES"})})})}):null,null,(0,m.A6)(j)?(0,t.jsx)(ae.A,{}):null,(0,t.jsxs)(h.A,{children:[(0,t.jsx)(N.A,{htmlFor:"mssClampingAuto",children:(0,t.jsx)(p.sA,{id:"COMMON_MSS_CLAMPING"})}),(0,t.jsxs)(C.A,{children:[(0,t.jsx)(A.A,{id:"mssClampingAuto",checked:e.usgSettings.mss_clamp===f.xO.AUTO,name:f.xO.AUTO,onChange:q,children:(0,t.jsx)(p.sA,{id:"COMMON_VALUE_AUTO"})}),(0,t.jsx)(A.A,{id:"mssClampingDisabled",checked:e.usgSettings.mss_clamp===f.xO.DISABLED,name:f.xO.DISABLED,onChange:q,children:(0,t.jsx)(p.sA,{id:"COMMON_DISABLED"})}),(0,t.jsx)(A.A,{id:"mssClampingCustom",checked:e.usgSettings.mss_clamp===f.xO.CUSTOM,name:f.xO.CUSTOM,onChange:q,children:(0,t.jsx)(p.sA,{id:"COMMON_CUSTOM"})})]})]}),e.usgSettings.mss_clamp===f.xO.CUSTOM?(0,t.jsx)(I.A,{full:!0,variant:"secondary",placeholder:"DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING_PLACEHOLDER",label:"DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING",name:"usgSettings.mss_clamp_mss"}):null,(0,t.jsxs)(h.A,{children:[(0,t.jsx)(N.A,{tooltip:(0,t.jsx)(p.sA,{id:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_TIMEOUT_CUSTOM_TOOLTIP"}),children:(0,t.jsx)(p.sA,{id:"COMMON_ARP_CACHE_TIMEOUT"})}),(0,t.jsxs)(C.A,{children:[(0,t.jsx)(A.A,{id:"normal",checked:"normal"===e.usgSettings.arp_cache_timeout,name:"normal",onChange:X,children:(0,t.jsx)(p.sA,{id:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_NORMAL"})}),(0,t.jsx)(A.A,{id:"min-dhcp-lease",checked:"min-dhcp-lease"===e.usgSettings.arp_cache_timeout,name:"min-dhcp-lease",onChange:X,children:(0,t.jsx)(p.sA,{id:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_MIN_DHCP_LEASE"})}),(0,t.jsx)(A.A,{id:"custom",checked:"custom"===e.usgSettings.arp_cache_timeout,name:"custom",onChange:X,className:"infoRadio",children:(0,t.jsx)(p.sA,{id:"COMMON_CUSTOM"})})]})]}),"custom"===e.usgSettings.arp_cache_timeout?(0,t.jsx)(I.A,{full:!0,variant:"secondary",label:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_TIMEOUT_LABEL",placeholder:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_TIMEOUT_PLACEHOLDER",name:"usgSettings.arp_cache_base_reachable",type:"number"}):null,U?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h.A,{children:[(0,t.jsx)(N.A,{tooltip:(0,t.jsx)(p.sA,{id:"COMMON_INTERNET_VERIFICATION_SERVER_DESC"}),children:(0,t.jsx)(p.sA,{id:"COMMON_INTERNET_VERIFICATION_SERVER_LABEL"})}),(0,t.jsxs)(C.A,{children:[(0,t.jsx)(A.A,{id:P.DEFAULT_GATEWAY_SETTINGS.echo_server,checked:e.usgSettings.echo_server===P.DEFAULT_GATEWAY_SETTINGS.echo_server,onChange:J,children:P.DEFAULT_GATEWAY_SETTINGS.echo_server}),(0,t.jsx)(u.A,{title:"COMMON_INTERNET_VERIFICATION_SERVER_INLINE_LABEL",message:"COMMON_INTERNET_VERIFICATION_SERVER_INLINE_DESC",cancelButtonMessage:"COMMON_INTERNET_VERIFICATION_SERVER_INLINE_DECLINE",buttonMessage:"COMMON_INTERNET_VERIFICATION_SERVER_INLINE_CONFIRM",handleClose:te,handleCancel:ne,handleConfirm:_e,isOpen:B,children:(0,t.jsx)(A.A,{id:"customEchoServer",checked:Ae,onChange:Z,className:"infoRadio",children:(0,t.jsx)(p.sA,{id:"COMMON_CUSTOM"})})})]})]}),Ae?(0,t.jsx)(I.A,{full:!0,variant:"secondary",label:"DEVICE_PROPERTIES_VALUES_ECHO_SERVER_PLACEHOLDER",name:"usgSettings.echo_server"}):null,(0,t.jsxs)(h.A,{children:[(0,t.jsx)(N.A,{tooltip:(0,t.jsx)(p.sA,{id:"DEVICE_DNS_VERIFICATION_DESCRIPTION"}),children:(0,t.jsx)(p.sA,{id:"DEVICE_DNS_VERIFICATION"})}),(0,t.jsxs)(C.A,{children:[(0,t.jsx)(A.A,{id:"usgSettings.dns_verification.auto",checked:e.usgSettings.dns_verification?.setting_preference===o.C.AUTO,onChange:()=>re(o.C.AUTO),children:(0,t.jsx)(p.sA,{id:"COMMON_AUTO"})}),(0,t.jsx)(A.A,{id:"usgSettings.dns_verification.manual",checked:e.usgSettings.dns_verification?.setting_preference===o.C.MANUAL,onChange:()=>re(o.C.MANUAL),children:(0,t.jsx)(p.sA,{id:"COMMON_CUSTOM"})})]})]}),e.usgSettings.dns_verification?.setting_preference===o.C.MANUAL?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g.A,{gap:O.Ln,width:"100%",children:[(0,t.jsx)(g.A,{flex:"1 1 0",children:(0,t.jsx)(I.A,{full:!0,variant:"secondary",label:"COMMON_PRIMARY_DNS_SERVER",name:"usgSettings.dns_verification.primary_dns_server"})}),(0,t.jsx)(g.A,{flex:"1 1 0",children:(0,t.jsx)(I.A,{full:!0,variant:"secondary",label:"COMMON_SECONDARY_DNS_SERVER",name:"usgSettings.dns_verification.secondary_dns_server"})})]}),(0,t.jsx)(I.A,{full:!0,variant:"secondary",label:"COMMON_DOMAIN",name:"usgSettings.dns_verification.domain"})]}):null]}),(0,t.jsx)($,{}),(0,t.jsx)(H,{}),e?.nat_mode===f.xH.CUSTOM?(0,t.jsx)(ie,{}):null,(0,t.jsx)(ee,{}),G?(0,t.jsx)(le,{}):null]})})},871808(e,s,_){_.d(s,{A:()=>a});var t=_(602086),n=_(977872),i=_(167933);const a=e=>(0,n.d4)((0,t.useMemo)(()=>(0,i.jN)(e),[e]))},976888(e,s,_){function t(e){return Boolean(e)}_.d(s,{z:()=>t})}}]);