"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[86636],{400270(e,t,a){a.d(t,{A:()=>r});var n=a(296540),l=a(629318);const r=(0,a(51946).w)(e=>(0,n.createElement)("svg",(0,l.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Zm8 8a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-4Z",fill:"currentColor",className:e.twotonedclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4h4v4H4V4ZM3 4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4Zm9 8h4v4h-4v-4Zm-1 0a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4Zm1.854-4.854L11.707 6H16v3.5a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5h-4.793l1.147-1.146a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708ZM8.293 15H3.5a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0V14h4.293l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L8.293 15Z",fill:"currentColor",className:e.baseclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Zm7 9a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4Zm1.854-4.854L11.707 6H16v3.5a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5h-4.793l1.147-1.146a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708ZM8.293 15H3.5a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0V14h4.293l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L8.293 15Z",fill:"currentColor",className:e.fillclassname})))},814879(e,t,a){a.r(t),a.d(t,{default:()=>h});var n=a(296540),l=a(705145),r=a(689965),i=a(916537),c=a(321235),m=a(791403),s=a(713590),u=a(527927),A=a(39705),O=a(741095);const d=({item:e})=>{const{specific_mac_addresses:t,ips_or_subnets:a,type:l,network_ids:r}=e;return l!==O.lP.CLIENT_MAC||t?.length?l===O.lP.IP_OR_SUBNET?n.createElement(A.A,{items:a||[],getItemKey:e=>e,renderListItem:e=>n.createElement("span",null,e),renderMultipleItemsSummary:e=>n.createElement(n.Fragment,null,e.length," ",n.createElement(i.sA,{id:"COMMON_IP_ADDRESSES",values:{count:e.length}}))}):l===O.lP.CLIENT_MAC?n.createElement(u.A,{client_macs:t}):l===O.lP.NETWORK?n.createElement(s.A,{network_ids:r}):null:n.createElement(i.sA,{id:"COMMON_ANY"})},o=({item:e})=>{const{type:t,ports:a}=e;return t&&[O.lP.IP_OR_SUBNET,O.lP.NETWORK].includes(t)&&a?.length?n.createElement(A.A,{items:a||[],getItemKey:e=>e,renderListItem:e=>n.createElement("span",null,e),renderMultipleItemsSummary:e=>n.createElement(n.Fragment,null,e.length," ",n.createElement(i.sA,{id:"COMMON_PORTS",values:{count:e.length}}))}):n.createElement(i.sA,{id:"COMMON_ANY"})},E={[O.w$.ALL]:"COMMON_ALL",[O.w$.TCP]:"COMMON_TCP",[O.w$.UDP]:"COMMON_UDP",[O.w$.TCP_AND_UDP]:"COMMON_TCP_AND_UDP"},M=({item:e})=>{const{type:t,ip_acl_protocol:a}=e;return n.createElement(i.sA,t!==O.xC.IPV4?{id:"COMMON_ALL"}:{id:a?E[a]:"COMMON_FALLBACK"})},_={[O.tZ.ALLOW]:"COMMON_ALLOW",[O.tZ.BLOCK]:"COMMON_ACTION_BLOCK"},h=({activeItem:e})=>n.createElement(r.A,null,n.createElement(c.A,{id:"COMMON_SOURCE"},n.createElement(l.A,{variant:"inherit",isTruncated:!0},n.createElement(d,{item:e.traffic_source}))),n.createElement(c.A,{id:"COMMON_SOURCE_PORT"},n.createElement(l.A,{variant:"inherit",isTruncated:!0},n.createElement(o,{item:e.traffic_source}))),n.createElement(c.A,{id:"COMMON_ACTION"},n.createElement(l.A,{variant:"inherit",isTruncated:!0},n.createElement(i.sA,{id:_[e.action]}))),n.createElement(c.A,{id:"COMMON_DESTINATION"},n.createElement(l.A,{variant:"inherit",isTruncated:!0},n.createElement(d,{item:e.traffic_destination}))),n.createElement(c.A,{id:"COMMON_DESTINATION_PORT"},n.createElement(l.A,{variant:"inherit",isTruncated:!0},n.createElement(o,{item:e.traffic_destination}))),n.createElement(c.A,{id:"COMMON_PROTOCOL"},n.createElement(l.A,{variant:"inherit",isTruncated:!0},n.createElement(M,{item:e}))),e.origin_type?n.createElement(m.A,{policy:e}):null)},383149(e,t,a){a.d(t,{A:()=>l});var n=a(885205);const l=function(e,t){return!(null==e||!e.length)&&(0,n.A)(e,t,0)>-1}},887809(e,t,a){a.d(t,{A:()=>n});const n=function(e,t,a){for(var n=-1,l=null==e?0:e.length;++n<l;)if(a(t,e[n]))return!0;return!1}},458043(e,t,a){a.d(t,{A:()=>s});var n=a(8300),l=a(383149),r=a(887809),i=a(45572),c=a(552789),m=a(764099);const s=function(e,t,a,s){var u=-1,A=l.A,O=!0,d=e.length,o=[],E=t.length;if(!d)return o;a&&(t=(0,i.A)(t,(0,c.A)(a))),s?(A=r.A,O=!1):t.length>=200&&(A=m.A,O=!1,t=new n.A(t));e:for(;++u<d;){var M=e[u],_=null==a?M:a(M);if(M=s||0!==M?M:0,O&&_==_){for(var h=E;h--;)if(t[h]===_)continue e;o.push(M)}else A(t,_,s)||o.push(M)}return o}},144757(e,t,a){a.d(t,{A:()=>c});var n=a(458043),l=a(187671),r=a(224326),i=a(153533);const c=(0,r.A)(function(e,t){return(0,i.A)(e)?(0,n.A)(e,(0,l.A)(t,1,i.A,!0)):[]})}}]);