"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[63933],{75064(_,T,E){E.d(T,{Q8:()=>N,VE:()=>A,X9:()=>i,z8:()=>t});var e=E(603526),L=E(570866);const A=_=>{switch(_){case e.RY.ACCEPT:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_ACTION_ACCEPT";case e.RY.DROP:return"COMMON_DROP";case e.RY.REJECT:return"SETTINGS_SECURITY_REJECT";default:return"COMMON_UNKNOWN"}},i=_=>`SETTINGS_SECURITY_ICMP_TYPENAME_${(_||"none").replace(L.zl,"_").toUpperCase()}`,t=_=>{switch(_){case e.zT.GUEST_IN:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_GUEST_IN";case e.zT.GUEST_LOCAL:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_GUEST_LOCAL";case e.zT.GUEST_OUT:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_GUEST_OUT";case e.zT.LAN_IN:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_LAN_IN";case e.zT.LAN_LOCAL:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_LAN_LOCAL";case e.zT.LAN_OUT:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_LAN_OUT";case e.zT.WAN_IN:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_WAN_IN";case e.zT.WAN_LOCAL:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_WAN_LOCAL";case e.zT.WAN_OUT:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_WAN_OUT";case e.zc.GUESTV6_IN:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_GUESTV6_IN";case e.zc.GUESTV6_LOCAL:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_GUESTV6_LOCAL";case e.zc.GUESTV6_OUT:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_GUESTV6_OUT";case e.zc.LANV6_IN:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_LANV6_IN";case e.zc.LANV6_LOCAL:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_LANV6_LOCAL";case e.zc.LANV6_OUT:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_LANV6_OUT";case e.zc.WANV6_IN:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_WANV6_IN";case e.zc.WANV6_LOCAL:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_WANV6_LOCAL";case e.zc.WANV6_OUT:return"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_RULESET_WANV6_OUT";default:return"COMMON_UNKNOWN"}},N=_=>{const T=Math.min(..._.map(({rule_index:_})=>_));return _.map((_,E)=>({..._,rule_index:T+E}))}},612389(_,T,E){E.d(T,{A:()=>s});var e=E(274934),L=E(814557),A=E(938984),i=E(247816),t=E(263705),N=E(309130),I=E(100978);const n=(0,i.A)(A.A)`
  line-height: 20px;
`,s=({icon:_,description:T,action:E,footer:A,background:i,...s})=>{const{themeName:r}=(0,t.u)();return(0,e.jsxs)(I.A,{flexGrow:1,borderRadius:N.YC,padding:N.kc,background:i||L.Ay[`desktop-color-neutral-01-${r}`],gap:N.kc,flexDirection:"column",...s,children:[(0,e.jsxs)(I.A,{flexGrow:1,gap:N.kc,children:[_,T?(0,e.jsx)(n,{size:"medium",children:T}):null,E?(0,e.jsx)(I.A,{marginLeft:"auto",children:(0,e.jsx)(n,{size:"medium",children:E})}):null]}),A]})}},753959(_,T,E){E.d(T,{A:()=>N});var e=E(274934),L=E(814557),A=E(853777),i=E(263705),t=E(612389);const N=({children:_,icon:T,background:E,...N})=>{const{themeName:I}=(0,i.u)();return(0,e.jsx)(t.A,{icon:T||(0,e.jsx)(A.A,{variant:"fill",size:"original",color:L.Ay[`desktop-color-ublue-06-${I}`]}),description:_,background:E,...N})}},535322(_,T,E){E.d(T,{A:()=>S,I:()=>e});var e,L=E(274934),A=E(814557),i=E(158885),t=E(247816),N=E(565527),I=E(309130),n=E(100978),s=E(291508);!function(_){_.ACCORDION="accordion",_.BUTTON_LIST="buttonList"}(e||(e={}));const r=(0,t.A)(n.A,(0,s.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:_,nested:T,theme:{themeName:E}})=>_||A.Ay[E===N.S.DARK?`desktop-color-neutral-${T?"00":"01"}-${N.S.DARK}`:`desktop-color-neutral-${T?"01":"00"}-${N.S.LIGHT}`]};
  padding: ${({isButtonList:_,padding:T})=>T||(_?`0 ${I.Ln}`:I.Ln)};
  margin-bottom: ${({marginBottom:_})=>_||I.Ln};
  ${({margin:_})=>_?`margin: ${_};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:_="100%"})=>_};
  flex: ${({flex:_=0})=>_};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:_})=>_?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:_}})=>A.Ay[`desktop-border-divider-${_}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,R=(0,t.A)(i.A,(0,s.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:_,nested:T,theme:{themeName:E}})=>_||A.Ay[E===N.S.DARK?`desktop-color-neutral-${T?"00":"01"}-${N.S.DARK}`:`desktop-color-neutral-${T?"01":"00"}-${N.S.LIGHT}`]};
  margin-bottom: ${({theme:_,marginBottom:T})=>T||_.spacing["spacing-l"]};
  ${({margin:_})=>_?`margin: ${_};`:""}
  ${({padding:_})=>_?`padding: ${_};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:_=0})=>_};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:_,theme:{themeName:T}})=>_||A.Ay[T===N.S.DARK?`desktop-color-neutral-01-${N.S.DARK}`:`desktop-color-neutral-00-${N.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${I.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${I.Ln} ${I.Ln};
      }
    }
  }
`,S=({type:_,marginBottom:T,margin:E,padding:A,flex:i,width:t,nested:N,...I})=>"items"in I?(0,L.jsx)(R,{marginBottom:T,margin:E,padding:A,flex:i,nested:N,...I}):(0,L.jsx)(r,{nested:N,width:t,marginBottom:T,margin:E,padding:A,flex:i,isButtonList:_===e.BUTTON_LIST,...I,children:I.children})},376892(_,T,E){E.d(T,{A:()=>i});var e=E(274934),L=E(938984),A=E(470070);const i=({id:_,children:T,values:E})=>(0,e.jsxs)(L.A,{color:"text-1",weight:"bold",size:"medium",children:[_?(0,e.jsx)(A.sA,{id:_,values:E}):null,T]})},963933(_,T,E){E.r(T),E.d(T,{default:()=>W});var e=E(274934),L=E(602086),A=E(535322),i=E(376892),t=E(792929),N=E(470070),I=E(603526),n=E(25878),s=E(108478),r=E(360275);const R="field",S=/{(.*)}/,o=_=>[{id:R,label:(0,e.jsx)(N.sA,{id:_})}],l=({list:_=[],columnName:T})=>{const E=_.map(_=>({field:_}));return(0,e.jsx)(t.A,{idField:R,items:E,columns:o(T),disableColumnFilters:!0,disableHover:!0})},c=(0,L.memo)(({list:_,columnName:T,title:E})=>_?.length>1?(0,e.jsx)(A.A,{type:A.I.ACCORDION,items:[{id:E,label:(0,e.jsx)(i.A,{id:E}),renderContent:()=>(0,e.jsx)(l,{list:_,columnName:T}),openByDefault:!0}]}):null);var d=E(753959);const O=(0,L.memo)(({activeItem:_})=>{const[T,E]=(_=>{const{rule_index:T,name:E,ruleset:e,state_established:L,state_invalid:A,state_related:i,protocol:t,protocol_v6:N,firewall_rule_action:R,src_address_list:o,src_port_list:l,dst_address_list:c,dst_port_list:d}=_,O={SETTINGS_FIREWALL_RULE_INFO_WAN_LOCAL_ACCEPT:[I.zT.WAN_LOCAL,I.zc.WANV6_LOCAL].includes(e)&&R===I.RY.ACCEPT&&L&&i,SETTINGS_FIREWALL_RULE_INFO_WAN_IN_ACCEPT:[I.zT.WAN_IN,I.zc.WANV6_IN].includes(e)&&R===I.RY.ACCEPT&&L&&i,SETTINGS_FIREWALL_RULE_INFO_BLOCK_INVALID_TRAFFIC:[I.zT.WAN_LOCAL,I.zT.WAN_IN,I.zc.WANV6_LOCAL,I.zc.WANV6_IN].includes(e)&&R===I.RY.DROP&&A,SETTINGS_FIREWALL_RULE_INFO_BLOCK_ALL_OTHER_TRAFFIC_LOCAL:[I.zT.WAN_LOCAL,I.zc.WANV6_LOCAL].includes(e)&&R===I.RY.DROP&&!A,SETTINGS_FIREWALL_RULE_INFO_BLOCK_ALL_OTHER_TRAFFIC_IN:[I.zT.WAN_IN,I.zc.WANV6_IN].includes(e)&&R===I.RY.DROP&&!A,SETTINGS_FIREWALL_RULE_INFO_WANV6_LOCAL_ICMP_NEIGHBOR_SOLICITATIONS:e===I.zc.WANV6_LOCAL&&R===I.RY.ACCEPT&&N===n.j.IPV6_ICMP&&E.toLowerCase().includes("neighbor solicitations"),SETTINGS_FIREWALL_RULE_INFO_WANV6_LOCAL_ICMP_NEIGHBOR_ADVERTISEMENTS:e===I.zc.WANV6_LOCAL&&R===I.RY.ACCEPT&&N===n.j.IPV6_ICMP&&E.toLowerCase().includes("neighbor advertisements"),SETTINGS_FIREWALL_RULE_INFO_ROUTER_ADVERTISEMENTS:e===I.zc.WANV6_LOCAL&&R===I.RY.ACCEPT&&N===n.j.IPV6_ICMP&&E.toLowerCase().includes("router advertisements"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_LINK_LOCAL_DHCP_V6:e===I.zc.WANV6_LOCAL&&R===I.RY.ACCEPT&&N===n.j.UDP&&!!o?.includes("fe80::/10"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_DHCPV6_WANV6_LOCAL:e===I.zc.WANV6_LOCAL&&R===I.RY.ACCEPT&&N===n.j.UDP&&!!l?.includes("547"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_DHCPV6_GUESTV6_LOCAL:e===I.zc.GUESTV6_LOCAL&&R===I.RY.ACCEPT&&N===n.j.UDP&&!!l?.includes("546"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_PUBLIC_DNS:e===I.zT.GUEST_IN&&R===I.RY.ACCEPT&&t===s.x.TCP_UDP&&!!d?.includes("53"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_HOTSPOT_PORTAL:e===I.zT.GUEST_IN&&R===I.RY.ACCEPT&&t===s.x.TCP&&!!d?.includes("443"),SETTINGS_FIREWALL_RULE_INFO_BLOCK_RESTRICTED_TRAFFIC:e===I.zT.GUEST_IN&&R===I.RY.DROP&&E.toLowerCase().includes("restricted"),SETTINGS_FIREWALL_RULE_INFO_UCI:e===I.zc.WANV6_LOCAL&&E.toLowerCase().includes("uci"),SETTINGS_FIREWALL_RULE_INFO_PRE_AUTH_HOTSPOT:e===I.zT.GUEST_IN&&R===I.RY.ACCEPT&&E.toLowerCase().includes("allow packets"),SETTINGS_FIREWALL_RULE_INFO_V4_BLOCK_VIRTUAL_NETWORK_TRAFFIC:e===I.zT.GUEST_IN&&R===I.RY.DROP&&E.toLowerCase().includes("block virtual network"),SETTINGS_FIREWALL_RULE_INFO_V6_BLOCK_VIRTUAL_NETWORK_TRAFFIC:e===I.zc.GUESTV6_IN&&R===I.RY.DROP&&E.toLowerCase().includes("block virtual network"),SETTINGS_FIREWALL_RULE_INFO_BLOCK_TRAFFIC_TO_VPN_SERVERS:e===I.zT.GUEST_IN&&R===I.RY.DROP&&E.toLowerCase().includes("block traffic to vpn servers"),SETTINGS_FIREWALL_RULE_INFO_BLOCK_TRAFFIC_FOR_UNAUTHORIZED_GUESTS:e===I.zT.GUEST_IN&&R===I.RY.DROP&&E.toLowerCase().includes("block unauthorized traffic"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_DNS_V4:e===I.zT.GUEST_LOCAL&&R===I.RY.ACCEPT&&t===s.x.TCP_UDP&&!!d?.includes("53"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_DNS_V6:e===I.zc.GUESTV6_LOCAL&&R===I.RY.ACCEPT&&N===n.j.UDP&&!!d?.includes("53"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_ICMP_V4:e===I.zT.GUEST_LOCAL&&R===I.RY.ACCEPT&&t===s.x.ICMP,SETTINGS_FIREWALL_RULE_INFO_ALLOW_ICMP_V6:e===I.zc.GUESTV6_LOCAL&&R===I.RY.ACCEPT&&N===n.j.IPV6_ICMP,SETTINGS_FIREWALL_RULE_INFO_ALLOW_DHCP_v4:e===I.zT.GUEST_LOCAL&&R===I.RY.ACCEPT&&t===s.x.UDP&&!!d?.includes("67"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_RADIUS_AUTHENTICATION:e===I.zT.GUEST_LOCAL&&R===I.RY.ACCEPT&&t===s.x.UDP&&!!d?.includes("1812"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_RADIUS_ACCOUNTING:e===I.zT.GUEST_LOCAL&&R===I.RY.ACCEPT&&t===s.x.UDP&&!!d?.includes("1813"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_HOTSPOT_PORTAL_AUTHENTICATION:e===I.zT.GUEST_IN&&R===I.RY.ACCEPT&&E.toLowerCase().includes("hotspot portal authentication"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_HOTSPOT_PORTAL_REDIRECTS:e===I.zT.GUEST_LOCAL&&R===I.RY.ACCEPT&&E.toLowerCase().includes("hotspot portal redirects"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_NETWORK_TRAFFIC:[I.zT.GUEST_IN,I.zT.GUEST_OUT,I.zT.LAN_IN,I.zT.LAN_OUT,I.zc.GUESTV6_IN,I.zc.GUESTV6_OUT].includes(e)&&R===I.RY.ACCEPT&&E.toLowerCase().includes("allow network")&&String(T).startsWith(String(r._.ACCOUNTING_PREDEFINED_RULES)),SETTINGS_FIREWALL_RULE_INFO_ALLOW_VIRTUAL_NETWORK_TRAFFIC:e===I.zc.LANV6_OUT&&R===I.RY.ACCEPT&&E.toLowerCase().includes("allow virtual network"),SETTINGS_FIREWALL_RULE_INFO_LAN_IN_BLOCK_VIRTUAL_NETWORK_TRAFFIC:[I.zT.LAN_IN,I.zc.LANV6_IN].includes(e)&&R===I.RY.DROP&&E.toLowerCase().includes("isolate ipv"),SETTINGS_FIREWALL_RULE_INFO_BLOCK_NETWORK_INTERNET_ACCESS:[I.zT.LAN_IN,I.zT.GUEST_IN,I.zc.GUESTV6_IN].includes(e)&&R===I.RY.DROP&&(E.toLowerCase().includes("block network")||E.toLowerCase().includes("block internet")),SETTINGS_FIREWALL_RULE_INFO_ALLOW_IPSEC:e===I.zT.WAN_LOCAL&&R===I.RY.ACCEPT&&t===s.x.UDP&&E.toLowerCase().includes("allow ipsec"),SETTINGS_FIREWALL_RULE_INFO_SITE_TO_SITE_IPSEC_VPN:e===I.zT.WAN_IN&&R===I.RY.ACCEPT&&E.toLowerCase().includes("ipsec site-to-site"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_PORT_FORWARD:e===I.zT.WAN_IN&&R===I.RY.ACCEPT&&t===s.x.TCP_UDP&&E.toLowerCase().startsWith("allow port forward"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_ESP:e===I.zT.WAN_LOCAL&&R===I.RY.ACCEPT&&t===s.x.ESP,SETTINGS_FIREWALL_RULE_INFO_ALLOW_L2TP:e===I.zT.WAN_LOCAL&&R===I.RY.ACCEPT&&t===s.x.UDP&&!!d?.includes("1701"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_OPEN_VPN:e===I.zT.WAN_LOCAL&&R===I.RY.ACCEPT&&t===s.x.UDP&&E.toLowerCase().includes("openvpn"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_WIREGUARD:e===I.zT.WAN_LOCAL&&R===I.RY.ACCEPT&&t===s.x.UDP&&E.toLowerCase().includes("wireguard"),SETTINGS_FIREWALL_RULE_INFO_ALLOW_UNIFI_TALK:e===I.zT.WAN_LOCAL&&E.toLowerCase().includes("unifi talk"),SETTINGS_FIREWALL_RULE_INFO_QUIC:[I.zT.LAN_IN,I.zT.GUEST_IN,I.zc.LANV6_IN,I.zc.GUESTV6_IN].includes(e)&&(t===s.x.UDP||N===n.j.UDP)&&R===I.RY.DROP&&E.toLowerCase().includes("quic")},C={SETTINGS_FIREWALL_RULE_INFO_ALLOW_NETWORK_TRAFFIC:{network:o?.[0]||c?.[0]},SETTINGS_FIREWALL_RULE_INFO_BLOCK_NETWORK_INTERNET_ACCESS:{network:o?.[0]||c?.[0]},SETTINGS_FIREWALL_RULE_INFO_ALLOW_PORT_FORWARD:{name:E.match(S)?.[1]}},a=Object.keys(O).filter(_=>O[_]);if(0===a.length)return["",{}];const U=a[0];return[U,C[U]||{}]})(_);return T?(0,e.jsx)(A.A,{children:(0,e.jsx)(d.A,{padding:"0",background:void 0,children:(0,e.jsx)(N.sA,{id:T,values:E})})}):null});var C=E(938984),a=E(834700),U=E(75064),u=E(828196);const h=({activeItem:_})=>{const{firewall_rule_action:T,ruleset:E,protocol:i,protocol_v6:t,rule_index:n,src_address_list:s,dst_address_list:r,dst_port_list:R,src_port_list:S,state_established:o,state_invalid:l,state_related:c,state_new:d,ipsec:O}=_;let h=(0,e.jsx)(N.sA,{id:"COMMON_FALLBACK"});1===s?.length?[h]=s:s?.length>1&&(h=(0,e.jsx)(N.sA,{id:"COMMON_MULTIPLE"}));let W=(0,e.jsx)(N.sA,{id:"COMMON_FALLBACK"});1===S?.length?[W]=S:S?.length>1&&(W=(0,e.jsx)(N.sA,{id:"COMMON_MULTIPLE"}));let G=(0,e.jsx)(N.sA,{id:"COMMON_FALLBACK"});1===r?.length?[G]=r:r?.length>1&&(G=(0,e.jsx)(N.sA,{id:"COMMON_MULTIPLE"}));let F=(0,e.jsx)(N.sA,{id:"COMMON_FALLBACK"});1===R?.length?[F]=R:R?.length>1&&(F=(0,e.jsx)(N.sA,{id:"COMMON_MULTIPLE"}));const P=((_,T,E,e)=>{const L=[];return _&&L.push("SETTINGS_SECURITY_ESTABLISHED"),T&&L.push("SETTINGS_SECURITY_INVALID"),e&&L.push("COMMON_NEW"),E&&L.push("SETTINGS_SECURITY_RELATED"),L})(o,l,c,d),M=P.length?P.map((_,T)=>(0,e.jsxs)(L.Fragment,{children:[T>0&&", ",(0,e.jsx)(N.sA,{id:_})]},_)):(0,e.jsx)(N.sA,{id:"COMMON_FALLBACK"});return(0,e.jsxs)(A.A,{children:[(0,e.jsx)(u.A,{id:"SETTINGS_SECURITY_RULE_TYPE",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:(0,e.jsx)(N.sA,{id:"COMMON_ADVANCED"})})}),(0,e.jsx)(u.A,{id:"COMMON_TYPE",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:(0,e.jsx)(N.sA,{id:(0,U.z8)(E)})})}),(0,e.jsx)(u.A,{id:"COMMON_ACTION",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:(0,e.jsx)(N.sA,{id:(0,U.VE)(T)})})}),(0,e.jsx)(u.A,{id:"COMMON_PROTOCOL",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:(0,e.jsx)(N.sA,{id:(0,a.Wi)(i||t)})})}),(0,e.jsx)(u.A,{id:"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_FORM_ADVANCED_FIELD_STATES",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:M})}),O?(0,e.jsx)(u.A,{id:"COMMON_MATCH_IPSEC",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:(x=O,(0,e.jsx)(N.sA,x===I.V1.MATCH_IPSEC?{id:"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_IPSEC_MATCH_IPSEC"}:x===I.V1.MATCH_NON_IPSEC?{id:"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_IPSEC_MATCH_NON_IPSEC"}:{id:"SETTINGS_INTERNET_THREAT_MANAGEMENT_FIREWALL_RULES_IPSEC_DONT_MATCH"}))})}):null,(0,e.jsx)(u.A,{id:"SETTINGS_SECURITY_SOURCE_IP_ADDRESS",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:h})}),(0,e.jsx)(u.A,{id:"SETTINGS_SECURITY_SOURCE_PORT",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:W})}),(0,e.jsx)(u.A,{id:"SETTINGS_SECURITY_DESTINATION_IP_ADDRESS",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:G})}),(0,e.jsx)(u.A,{id:"SETTINGS_SECURITY_DESTINATION_PORT",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:F})}),(0,e.jsx)(u.A,{id:"COMMON_ID",children:(0,e.jsx)(C.A,{size:"inherit",color:"inherit",weight:"inherit",children:n})})]});var x},W=({activeItem:_})=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O,{activeItem:_}),(0,e.jsx)(h,{activeItem:_}),(0,e.jsx)(c,{list:_.src_address_list,columnName:"COMMON_SUBNET",title:"COMMON_SOURCE_NETWORKS"}),(0,e.jsx)(c,{list:_.src_port_list,columnName:"COMMON_PORT",title:"SETTINGS_SECURITY_SOURCE_PORTS"}),(0,e.jsx)(c,{list:_.dst_address_list,columnName:"COMMON_SUBNET",title:"SETTINGS_SECURITY_DESTINATION_NETWORKS"}),(0,e.jsx)(c,{list:_.dst_port_list,columnName:"COMMON_PORT",title:"SETTINGS_SECURITY_DESTINATION_PORTS"})]})},828196(_,T,E){E.d(T,{A:()=>n});var e=E(274934),L=E(938984),A=E(95032),i=E(247816),t=E(470070),N=E(664092);const I=(0,i.A)(L.A)`
  white-space: nowrap;
`,n=({id:_,color:T,values:E,children:L})=>(0,e.jsxs)(N.A,{children:[(0,e.jsx)(I,{color:"text-2",size:"medium",children:(0,e.jsx)(t.sA,{id:_,values:E})}),(0,e.jsx)(A.A,{color:T||"text-3",size:"medium",isTruncated:!0,children:L})]})},664092(_,T,E){E.d(T,{A:()=>I});var e=E(274934),L=E(247816),A=E(309130),i=E(100978),t=E(291508);const N=(0,L.A)(i.A,(0,t.A)("valueMaxWidth","keyMinWidth","compact"))`
  &:not(:last-child) {
    ${({compact:_})=>_?"":`margin-bottom: ${A.kc};`}
  }
  & > {
    &:nth-child(1) {
      min-width: ${({keyMinWidth:_})=>_}px;
    }
    &:nth-child(2) {
      max-width: ${({valueMaxWidth:_})=>_}px;
    }
  }
`,I=({children:_,valueMaxWidth:T=215,keyMinWidth:E=0,flexProps:L={},compact:i=!1})=>(0,e.jsx)(N,{width:"100%",justifyContent:"space-between",gap:A.kc,height:i?void 0:24,valueMaxWidth:T,keyMinWidth:E,compact:i,...L,children:_})}}]);