"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[10876],{895499(e,t,a){a.d(t,{_:()=>r});var n=a(691189),_=a(771805);const l="usgSettingsDefaults",s=`${_.w}/settings/usg/defaults`,r=(e={},t={})=>(0,n.Kd)(l,s,l,e,t)},543791(e,t,a){a.d(t,{A:()=>s});var n=a(296540),_=a(271856),l=a(916537);const s=({show:e,children:t,position:a})=>n.createElement(_.A,{position:a||"topStart",description:e?n.createElement(l.sA,{id:"DEVICE_DISABLE_GLOBAL_SWITCH_SETTINGS"}):void 0},n.createElement("span",null,t))},349665(e,t,a){a.d(t,{A:()=>s});var n=a(296540),_=a(705228),l=a(294303);const s=({maxWidth:e,label:t,children:a,...s})=>n.createElement(l.A,{flexDirection:"column",width:"100%",maxWidth:"settingsGridContent"===e?_.ng:e,...s},t,a)},553432(e,t,a){a.d(t,{A:()=>r});var n=a(296540),_=a(454195),l=a(566723),s=a(294303);const r=e=>n.createElement(s.A,{paddingTop:l.YC,paddingBottom:l.YC,gap:l.Ln,rowGap:l.YC,flexWrap:"wrap",minHeight:_.b,alignItems:"center",...e})},410876(e,t,a){a.d(t,{q:()=>re,A:()=>ie});var n=a(82960),_=a(469733),l=a(296540),s=a(720903),r=a(951272),E=a(54227),i=a(314714),c=a(870443),m=a(883840),A=a(464265),o=a(860631),O=a(566723),u=a(543791),d=a(553432),T=a(137625),C=a(242366),S=a(317672),N=a(349665),I=a(143811),M=a(821580),g=a(294303),p=a(845030),h=a(916537),L=a(801081),R=a(25553),b=a(87485),v=a(895499);const D=(0,R.uh)((0,v._)()),f=(0,L.Mz)(D,b.i6);var U=a(823881),P=a(302167),V=a(881314),k=a(457311),F=a(598796),G=a(780811),w=a(546391),x=a(413089),B=a(217439),y=a(349107),Y=a(765562);const H=({disabled:e})=>{const{values:t,setFieldValue:a}=(0,r.j7)(),[n,_]=(0,l.useState)(!1);return l.createElement(N.A,null,l.createElement(S.A,{htmlFor:"nat_auto",tooltip:l.createElement(h.sA,{id:"DEVICE_NAT_GLOBAL_NAT_SETTINGS_TOOLTIP",values:{link:l.createElement(y.A,{noWrap:!0,id:"COMMON_LEARN_MORE",href:Y.A.customNatArticle})}}),tooltipProps:{isInteractive:!0}},l.createElement(h.sA,{id:"DEVICE_NAT_GLOBAL_NAT_SETTINGS"})),l.createElement(g.A,{alignItems:"center",gap:O.Ln},l.createElement(M.A,null,l.createElement(I.A,{type:"realCheckbox",name:"nat_auto",checked:t.nat_mode===U.xH.AUTO,onChange:({target:{checked:e}})=>{a("nat_mode",e?U.xH.AUTO:U.xH.CUSTOM)},disabled:e},l.createElement(h.sA,{id:"COMMON_VALUE_AUTO"}))),t.nat_mode!==U.xH.AUTO?l.createElement(d.A,null,l.createElement(I.A,{type:"radio",name:"nat_mode",value:U.xH.CUSTOM,disabled:e,vertical:!0},l.createElement(h.sA,{id:"COMMON_CUSTOM"})),l.createElement(T.A,{title:"DEVICE_NAT_DISABLE_CONFIRMATION_TITLE",buttonMessage:"COMMON_ACTION_DISABLE",body:l.createElement(g.A,{flexDirection:"column",gap:O.kc},l.createElement(B.A,{color:"inherit",size:"inherit"},l.createElement(h.sA,{id:"DEVICE_NAT_DISABLE_CONFIRMATION_BODY_PART_ONE"})),l.createElement(B.A,{color:"inherit",size:"inherit"},l.createElement(h.sA,{id:"DEVICE_NAT_DISABLE_CONFIRMATION_BODY_PART_TWO"}))),isOpen:n,handleClose:()=>{_(!1)},handleConfirm:()=>{a("nat_mode",U.xH.OFF)},buttonVariant:"danger"},l.createElement(I.A,{type:"radio",name:"nat_mode",value:U.xH.OFF,disabled:e,vertical:!0,onChange:()=>{_(!0)}},l.createElement(h.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"}],j=c.A.object().shape({[W]:c.A.boolean(),...Object.fromEntries(K.map(({label:e,value:t})=>[t,c.A.number().label(e).when([W],{is:e=>!e,then:c.A.number().max(1209600).min(1).required()})]))}),z="80px",q=(0,a(71479).A)("div")`
  display: grid;
  grid-template-columns: repeat(4, minmax(${z}, 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: ${z};
  }
`,X=({})=>{const{values:e}=(0,r.j7)();return l.createElement(C.A,null,l.createElement(M.A,null,l.createElement(I.A,{name:`firewall_state_timeouts.${W}`,type:"realCheckbox"},l.createElement(h.sA,{id:"COMMON_AUTO_FIREWALL_STATE_TIMEOUTS"}))),e.firewall_state_timeouts[W]?null:l.createElement(q,null,K.map(({label:e,value:t})=>l.createElement(I.A,{key:t,full:!0,name:`firewall_state_timeouts.${t}`,type:"number",variant:"secondary",label:e}))))};var $;!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"}($||($={}));const Q=Object.values($),J={[$.FTP]:"DEVICE_CONNTRACK_MODULES_FTP",[$.H323]:"DEVICE_CONNTRACK_MODULES_H323",[$.SIP]:"DEVICE_CONNTRACK_MODULES_SIP",[$.GRE]:"DEVICE_CONNTRACK_MODULES_GRE",[$.PPTP]:"DEVICE_CONNTRACK_MODULES_PPTP",[$.TFTP]:"DEVICE_CONNTRACK_MODULES_TFTP"},Z=()=>{const{formatMessage:e}=(0,h.tz)(),t=(0,l.useMemo)(()=>Q.map(t=>({value:t,label:e({id:J[t]})})),[e]);return l.createElement(N.A,null,l.createElement(S.A,{tooltip:l.createElement(h.sA,{id:"DEVICE_CONNTRACK_MODULES_DESC"}),tooltipProps:{portal:!0},htmlFor:"firewall_connection_tracking_modules"},l.createElement(h.sA,{id:"DEVICE_CONNTRACK_MODULES"})),l.createElement(I.A,{type:"picklist",name:"firewall_connection_tracking_modules",options:t,triggerButtonText:"COMMON_SELECT"}))},ee=(e,t)=>({...e,...Object.fromEntries(Object.values($).map(e=>[e,t.firewall_connection_tracking_modules.includes(e)]))}),te=e=>({firewall_connection_tracking_modules:Object.values($).filter(t=>t in e&&!!e[t])});var ae=a(366188),ne=a(423378);const _e=({})=>{const e=(0,_.useSelector)(ae.Ct),t=(0,l.useMemo)(()=>e.filter(ne.gw).map(({_id:e,name:t})=>({label:t,value:e})),[e]);return l.createElement(N.A,null,l.createElement(S.A,{htmlFor:"nat_excluded_network_ids",tooltip:l.createElement(h.sA,{id:"DEVICE_NAT_EXCLUDED_NETWORKS_TOOLTIP"})},l.createElement(h.sA,{id:"DEVICE_NAT_EXCLUDED_NETWORKS"})),l.createElement(I.A,{type:"picklist",name:"nat_excluded_network_ids",options:t,triggerButtonText:"COMMON_ACTION_SELECT_NETWORKS",selectAllText:"COMMON_ACTION_SELECT_ALL",truncateLabels:!0,isWindowed:!0,isFullWidth:!0}))};var le=a(398146);const se=()=>l.createElement(M.A,null,l.createElement(I.A,{type:"realCheckbox",name:"ikev2_seamless_rekeying",tooltipMessage:l.createElement(h.sA,{id:"DEVICE_IKEV2_SEAMLESS_REKEYING_TOOLTIP"})},l.createElement(h.sA,{id:"COMMON_IKEV2_SEAMLESS_REKEYING"}))),re="services",Ee=(0,r.bk)({enableReinitialize:!0,mapPropsToValues:({usgSettings:e,globalNatSettings:t,usgSettingsDefaults:a,ipsecSettings:n,activeItem:{jumboframe_enabled:_=!1,flowctrl_enabled:l=!1,snmp_contact:s,snmp_location:r}})=>{const{mss_clamp_mss:E,mss_clamp:i,arp_cache_timeout:c,arp_cache_base_reachable:A,echo_server:o,dns_verification:O}=e;return{jumboframe_enabled:_,flowctrl_enabled:l,snmpEnabled:Boolean(s||r),snmp_contact:s,snmp_location:r,usgSettings:{mss_clamp:i||V.DEFAULT_GATEWAY_SETTINGS.mss_clamp,mss_clamp_mss:E||V.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss,arp_cache_timeout:c||"normal",arp_cache_base_reachable:A||V.DEFAULT_GATEWAY_SETTINGS.arp_cache_base_reachable,echo_server:o||V.DEFAULT_GATEWAY_SETTINGS.echo_server,dns_verification:O||a?.dns_verification},firewall_state_timeouts:(u=e,d=a,{[W]:(u?.timeout_setting_preference||d?.timeout_setting_preference||m.C.AUTO)===m.C.AUTO,...Object.fromEntries(K.map(e=>[e.value,u[e.value]??d[e.value]??0]))}),...te(e),nat_mode:t.mode,nat_excluded_network_ids:t.excluded_network_ids||[],ikev2_seamless_rekeying:n?.ikev2_reauthentication_method===U.Xn.MAKE_BEFORE_BREAK};var u,d},validationSchema:c.A.object().shape({jumboframe_enabled:c.A.boolean(),flowctrl_enabled:c.A.boolean(),...le.U,usgSettings:c.A.object().shape({mss_clamp:c.A.string(),mss_clamp_mss:c.A.number().when("mss_clamp",{is:U.xO.CUSTOM,then:c.A.number().label("DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING").required().min(V.DEFAULT_GATEWAY_SETTINGS.min_mss_clamp_mss,l.createElement(h.sA,{id:"DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING_VALIDATION_LABEL",values:{min:V.DEFAULT_GATEWAY_SETTINGS.min_mss_clamp_mss,max:V.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss}})).max(V.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss,l.createElement(h.sA,{id:"DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING_VALIDATION_LABEL",values:{min:V.DEFAULT_GATEWAY_SETTINGS.min_mss_clamp_mss,max:V.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss}}))}),arp_cache_timeout:c.A.string(),arp_cache_base_reachable:c.A.number().when("arp_cache_timeout",{is:"custom",then:c.A.number().label("COMMON_ARP_CACHE_TIMEOUT").required().min(1).max(V.DEFAULT_GATEWAY_SETTINGS.max_arp_cache_base_reachable)}),echo_server:c.A.string().label("DEVICE_PROPERTIES_VALUES_ECHO_SERVER_IP_OR_HOSTNAME").required().matches(w.yA,{message:l.createElement(h.sA,{id:"COMMON_VALIDATION_HOSTNAME_OR_IPV4"})}).matches(w.oo,{message:l.createElement(h.sA,{id:"COMMON_VALIDATION_ECHO_SERVER",values:{name:l.createElement(h.sA,{id:"COMMON_INTERNET_VERIFICATION_SERVER_LABEL"})}})}),dns_verification:c.A.object().shape({setting_preference:c.A.string(),primary_dns_server:c.A.string().when("setting_preference",{is:m.C.MANUAL,then:c.A.string().label("COMMON_PRIMARY_DNS_SERVER").required().matches(w.zF,{message:l.createElement(h.sA,{id:"COMMON_VALIDATION_VALID_IPV4"})}).notOneOf([c.A.ref("secondary_dns_server")],l.createElement(h.sA,{id:"DEVICES_PRIMARY_SECONDARY_DNS_CANNOT_BE_EQUAL"}))}),secondary_dns_server:c.A.string().when("setting_preference",{is:m.C.MANUAL,then:c.A.string().label("COMMON_SECONDARY_DNS_SERVER").required().matches(w.zF,{message:l.createElement(h.sA,{id:"COMMON_VALIDATION_VALID_IPV4"})}).notOneOf([c.A.ref("primary_dns_server")],l.createElement(h.sA,{id:"DEVICES_PRIMARY_SECONDARY_DNS_CANNOT_BE_EQUAL"}))}),domain:c.A.string().when("setting_preference",{is:m.C.MANUAL,then:c.A.string().label("COMMON_DOMAIN").required().matches(w.yA,{message:l.createElement(h.sA,{id:"COMMON_DOMAIN_VALIDATION"})})})})}),firewall_state_timeouts:j,nat_excluded_network_ids:c.A.array().when("nat_mode",{is:U.xH.CUSTOM,then:c.A.array().required().min(1,l.createElement(h.sA,{id:"COMMON_VALIDATION_NETWORK"}))})}),handleSubmit:(e,{resetForm:t})=>{t({values:e})}}),ie=(0,n.Zz)((0,_.connect)(e=>({usgSettings:(0,P.oP)(e),usgSettingsDefaults:f(e),globalSwitchSettings:(0,P.zu)(e),globalNatSettings:(0,P._k)(e),ipsecSettings:(0,P.gX)(e)}),{fetchSettings:k.Uc}),Ee)(function({values:e,dirty:t,isValid:a,setFormInvalid:n,resetForm:r,setFormDirty:c,setFieldValue:L,activeItem:R,globalSwitchSettings:b,isGlobalSwitchSettingsEnabled:D}){const f=(0,_.useDispatch)(),P=(0,A.A)(F.Xj.WAN_SLA),w=(0,A.A)(F.Xj.IPSEC_IKEV2_RE_AUTH_METHOD),[B,y]=(0,l.useState)(!1),Y=(0,o.nN)(R),j=((0,G.Tbi)(R)||(0,G.moU)(R)&&(0,G.rm3)(R)||(0,G.tUS)(R)||(0,G.ueF)(R)||(0,G.X36)(R))&&D;(0,l.useEffect)(()=>{w&&f((0,k.Yy)()),f((0,v._)()),f((0,k.Uc)())},[f,w]),(0,l.useEffect)(()=>{const{usgSettings:t,snmpEnabled:a,snmp_location:n,snmp_contact:_,...l}=e;f((0,p.uo)({services:()=>({snmp_location:a?n:"",snmp_contact:a?_:"",...l})}));const E=(i=e.firewall_state_timeouts,c=(0,s.A)(t),{...c,timeout_setting_preference:i[W]?m.C.AUTO:m.C.MANUAL,...Object.fromEntries(i[W]?[]:K.map(e=>[e.value,i[e.value]]))});var i,c;E.dns_verification?.setting_preference&&E.dns_verification.setting_preference!==m.C.MANUAL&&(delete E.dns_verification.primary_dns_server,delete E.dns_verification.secondary_dns_server,delete E.dns_verification.domain),f((0,p.Oo)({services:async()=>{await Promise.all([f((0,k.fU)(ee(E,e))),f((0,k.ht)({mode:e.nat_mode,excluded_network_ids:e.nat_excluded_network_ids})),w?f((0,k.Py)({ikev2_reauthentication_method:e.ikev2_seamless_rekeying?U.Xn.MAKE_BEFORE_BREAK:U.Xn.BREAK_BEFORE_MAKE})):void 0].filter(x.z)),await f((0,k.Uc)()),await r({values:e})}})),f((0,p.rW)({services:r}))},[f,w,r,e]),(0,l.useEffect)(()=>{c("services",t),n("services",!a)},[t,a,c,n]);const z=(0,l.useCallback)(({target:{name:e,checked:t}})=>{t&&L("usgSettings.mss_clamp",e)},[L]),q=(0,l.useCallback)(({target:{name:e,checked:t}})=>{t&&L("usgSettings.arp_cache_timeout",e)},[L]),$=(0,l.useCallback)(({target:{checked:e}})=>L("jumboframe_enabled",e),[L]),Q=((0,l.useCallback)(({target:{checked:e}})=>L("flowctrl_enabled",e),[L]),(0,l.useCallback)(()=>{L("usgSettings.echo_server",V.DEFAULT_GATEWAY_SETTINGS.echo_server)},[L])),J=(0,l.useCallback)(()=>{y(!0)},[]),te=(0,l.useCallback)(()=>{L("usgSettings.echo_server",V.DEFAULT_GATEWAY_SETTINGS.echo_server),y(!1)},[L]),ae=(0,l.useCallback)(()=>{y(!1)},[]),ne=(0,l.useCallback)(()=>{L("usgSettings.echo_server",""),y(!1)},[L]),re=(0,l.useCallback)(e=>{L("usgSettings.dns_verification.setting_preference",e)},[L]),Ee=e.usgSettings.echo_server!==V.DEFAULT_GATEWAY_SETTINGS.echo_server;return l.createElement(C.A,null,Y?l.createElement(u.A,{show:!!j},l.createElement(M.A,null,l.createElement(i.A,{id:"jumboframe_enabled",checked:j?b.jumboframe_enabled:e.jumboframe_enabled,disabled:j,onChange:$},l.createElement(h.sA,{id:"COMMON_JUMBO_FRAMES"})))):null,null,(0,o.A6)(R)?l.createElement(le.A,null):null,l.createElement(N.A,null,l.createElement(S.A,{htmlFor:"mssClampingAuto"},l.createElement(h.sA,{id:"COMMON_MSS_CLAMPING"})),l.createElement(d.A,null,l.createElement(E.A,{id:"mssClampingAuto",checked:e.usgSettings.mss_clamp===U.xO.AUTO,name:U.xO.AUTO,onChange:z},l.createElement(h.sA,{id:"COMMON_VALUE_AUTO"})),l.createElement(E.A,{id:"mssClampingDisabled",checked:e.usgSettings.mss_clamp===U.xO.DISABLED,name:U.xO.DISABLED,onChange:z},l.createElement(h.sA,{id:"COMMON_DISABLED"})),l.createElement(E.A,{id:"mssClampingCustom",checked:e.usgSettings.mss_clamp===U.xO.CUSTOM,name:U.xO.CUSTOM,onChange:z},l.createElement(h.sA,{id:"COMMON_CUSTOM"})))),e.usgSettings.mss_clamp===U.xO.CUSTOM?l.createElement(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,l.createElement(N.A,null,l.createElement(S.A,{tooltip:l.createElement(h.sA,{id:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_TIMEOUT_CUSTOM_TOOLTIP"})},l.createElement(h.sA,{id:"COMMON_ARP_CACHE_TIMEOUT"})),l.createElement(d.A,null,l.createElement(E.A,{id:"normal",checked:"normal"===e.usgSettings.arp_cache_timeout,name:"normal",onChange:q},l.createElement(h.sA,{id:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_NORMAL"})),l.createElement(E.A,{id:"min-dhcp-lease",checked:"min-dhcp-lease"===e.usgSettings.arp_cache_timeout,name:"min-dhcp-lease",onChange:q},l.createElement(h.sA,{id:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_MIN_DHCP_LEASE"})),l.createElement(E.A,{id:"custom",checked:"custom"===e.usgSettings.arp_cache_timeout,name:"custom",onChange:q,className:"infoRadio"},l.createElement(h.sA,{id:"COMMON_CUSTOM"})))),"custom"===e.usgSettings.arp_cache_timeout?l.createElement(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,P?null:l.createElement(l.Fragment,null,l.createElement(N.A,null,l.createElement(S.A,{tooltip:l.createElement(h.sA,{id:"COMMON_INTERNET_VERIFICATION_SERVER_DESC"})},l.createElement(h.sA,{id:"COMMON_INTERNET_VERIFICATION_SERVER_LABEL"})),l.createElement(d.A,null,l.createElement(E.A,{id:V.DEFAULT_GATEWAY_SETTINGS.echo_server,checked:e.usgSettings.echo_server===V.DEFAULT_GATEWAY_SETTINGS.echo_server,onChange:Q},V.DEFAULT_GATEWAY_SETTINGS.echo_server),l.createElement(T.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:ae,handleCancel:ne,handleConfirm:te,isOpen:B},l.createElement(E.A,{id:"customEchoServer",checked:Ee,onChange:J,className:"infoRadio"},l.createElement(h.sA,{id:"COMMON_CUSTOM"}))))),Ee?l.createElement(I.A,{full:!0,variant:"secondary",label:"DEVICE_PROPERTIES_VALUES_ECHO_SERVER_PLACEHOLDER",name:"usgSettings.echo_server"}):null,l.createElement(N.A,null,l.createElement(S.A,{tooltip:l.createElement(h.sA,{id:"DEVICE_DNS_VERIFICATION_DESCRIPTION"})},l.createElement(h.sA,{id:"DEVICE_DNS_VERIFICATION"})),l.createElement(d.A,null,l.createElement(E.A,{id:"usgSettings.dns_verification.auto",checked:e.usgSettings.dns_verification?.setting_preference===m.C.AUTO,onChange:()=>re(m.C.AUTO)},l.createElement(h.sA,{id:"COMMON_AUTO"})),l.createElement(E.A,{id:"usgSettings.dns_verification.manual",checked:e.usgSettings.dns_verification?.setting_preference===m.C.MANUAL,onChange:()=>re(m.C.MANUAL)},l.createElement(h.sA,{id:"COMMON_CUSTOM"})))),e.usgSettings.dns_verification?.setting_preference===m.C.MANUAL?l.createElement(l.Fragment,null,l.createElement(g.A,{gap:O.Ln,width:"100%"},l.createElement(g.A,{flex:"1 1 0"},l.createElement(I.A,{full:!0,variant:"secondary",label:"COMMON_PRIMARY_DNS_SERVER",name:"usgSettings.dns_verification.primary_dns_server"})),l.createElement(g.A,{flex:"1 1 0"},l.createElement(I.A,{full:!0,variant:"secondary",label:"COMMON_SECONDARY_DNS_SERVER",name:"usgSettings.dns_verification.secondary_dns_server"}))),l.createElement(I.A,{full:!0,variant:"secondary",label:"COMMON_DOMAIN",name:"usgSettings.dns_verification.domain"})):null),l.createElement(X,null),l.createElement(H,null),e?.nat_mode===U.xH.CUSTOM?l.createElement(_e,null):null,l.createElement(Z,null),w?l.createElement(se,null):null)})},464265(e,t,a){a.d(t,{A:()=>s});var n=a(296540),_=a(469733),l=a(792072);const s=e=>(0,_.useSelector)((0,n.useMemo)(()=>(0,l.jN)(e),[e]))},413089(e,t,a){function n(e){return Boolean(e)}a.d(t,{z:()=>n})}}]);