PageSourceSearch

https://linix.me/ui/static/js/async/10535.04b8c234.js

js linix.me collected 2026-10-09 03:55:25 UTC 49,302 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkbackdraft=globalThis.webpackChunkbackdraft||[]).push([["10535"],{876766:function(e,t,n){var r={"./ja-JP.ts":["271333","65266"],"./fr-CA.ts":["970177","91376"],"./ko-KR.ts":["143014","9971"],"./en-US.ts":["688804"],"./zh-CN.ts":["245198","99185"],"./zh-TW.ts":["707463","83112"],"./index.ts":["467387"]};function i(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(i)})}i.keys=()=>Object.keys(r),i.id=876766,e.exports=i},859084:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(686985);let i=new Set(["SecurityGroupTag","Geolocation","Country","SecurityZone","DynamicObject","EndPointDeviceType","ISESecurityGroupTag","LocationIP","CloudCategory","URLReputation","SIURLList","SIURLFeed"]),o=e=>{let t=[];return e.items?.length&&e.items.forEach(e=>{i.has(e.type)?t.push(e):console.error(`Unsupported ${e.category}: Type ${e.type}, UUID ${e.id}`)}),t};var c=n(25014);let a=e=>null!=e&&e.trim(),l=({searchParam:e,type:t,domainSelectId:n})=>{let r=[`text:${encodeURIComponent(e)}`],i=a(t);return i&&r.push(`types:${encodeURIComponent(i)}`),"all"===n&&r.push("includeSubDomains:true"),r},u={fetchSearchResult:async({searchCategory:e,domainSelectId:t,searchParam:i,type:c,signal:a,limit:u=200,offset:s=0})=>{let d=l({searchParam:i,type:c,domainSelectId:t});return r.Z.get(`/search/${encodeURIComponent(e)}?filter=${d.join(";")}&expanded=true&limit=${u}&offset=${s}`,{domain:"current",validate:n(794526).Z,...null!=a&&{signal:a}}).then(e=>({items:o(e),count:e.paging.count})).catch(e=>{throw e})},getISEConfig:async()=>await (0,c.ZP)({func:"SF::DirectoryServices::DirectoryServices::getISEConfig",parameters:[],validate:n(574885).Z}).then(e=>e)}},574885:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(671216).ZP)(n(908196))},794526:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(671216).ZP)(n(748194))},688804:function(e,t,n){"use strict";n.r(t),n.d(t,{messages:()=>r});let r={filterAppFilters:"Search by filter name",filterDynamicAttributes:"Filter by type",SecurityGroupTag:"Security group tags",EndPointDeviceType:"Device type",ISESecurityGroupTag:"ISE security group tags",DynamicObject:"Dynamic objects",LocationIP:"Location IP",dynamicAttributes:"Dynamic Attributes",createExternalAttribute:"+ Create external attributes",selectedSources:"Selected sources:",selectedSourcesCount:" {count, number}",any:"Any",selectedDestination:"Selected destinations and applications:",selectedDestinationCount:"{count, number}",secZoneTypeAndSubType:"({subType} Security Zone)",nameMissing:"Name is required",nameTooLong:"The maximum length is 50 characters",invalidRuleName:"The rule name must not contain any of the following characters: :, ?",duplicateRuleName:"Rule name already exists. Choose a different name.",deleteAllLabel:"Remove All {object}",filtersExpandable:"{count, plural, one {1 Filter} other {# Filters}}",applicationsExpandable:"{count, plural, one {1 Application} other {# Applications}}",disableRemove:"Cannot remove object in read-only mode",expandableLabelWithOnlyGroups:"{countGroups, number} {countGroups, plural, one {Group} other {Groups} }",expandableLabel:"{countObj, number} {countObj, plural, one {Object} other {Objects}}",expandableLabelWithObjAndGroups:"{countObj, number} {countObj, plural, one {Object} other {Objects}}, {countGroups, number} {countGroups, plural, one {Group} other {Groups} }",remove:"Remove",dynObjTitle:"Dynamic Attributes",dynamicObject:"Dynamic object",securityGroupTag:"Security group tag",discard:"Discard",save:"Save",discardChanges:"Discard changes",unsavedChangesMessage:"There are unsaved changes",continueEditing:"Continue editing",viewObjectTitle:"View {object} object",editObjectTitle:"Edit {object} object",attributeType:"Attribute Type",tag:"Tag",type:"Type",dynamicObjects:"Dynamic objects",securityGroupTags:"Security group tags",dynamicAttribute:"Dynamic attribute",nameToLongTooltip:"{overflowChars, plural, one {1 character} other {# characters}} over the {limit} character limit",override:"Override",name:"Name",description:"Description",addNewObjectTitle:"New {object} object",ok:"OK",error:"Error",unableToFetchData:"Unable to fetch data",endPointDevice:"End point device",iseSecurityGroupTag:"ISE security group tag",deviceType:"Device type",fqName:"Fully qualified name",version:"Version",objectTypeLabel:"Object type",warning:"Warning",objectsWillNotBeAdded1:"Objects with type {type} are not allowed to destination.",objectsWillNotBeAdded2:"The following objects will not be added to destination:",cancel:"Cancel"}},467387:function(e,t,n){"use strict";n.r(t),n.d(t,{MessageProvider:()=>o,useMessages:()=>c});var r=n(148262),i=n(688804);let{MessageProvider:o,useMessages:c}=(0,r.Z)(e=>n(876766)(`./${e}.ts`).then(({messages:e})=>e),i.messages)},477386:function(e,t,n){"use strict";n.r(t),n.d(t,{LIMIT:()=>ei,default:()=>eo});var r,i=n(172289),o=n(191887),c=n(573221),a=n(826750),l=n(765594),u=n(284117),s=n(210632),d=n(467387),f=((r={}).SecurityGroupTag="SecurityGroupTag",r.ISESecurityGroupTag="ISESecurityGroupTag",r.DynamicObject="DynamicObject",r.EndPointDeviceType="EndPointDeviceType",r),p=n(509268),y=n(937056),h=n(318412),b=n(192843),m=n(429644),g=n(657201),v={DYN:[]},S={DYN:[]},j=function(e){var t;return void 0!==e.name&&""!==e.name?e.name:(e.type,null!=(t=e.name)?t:"")},O=function(e,t){return null!=e&&null!=t&&(e.id&&t.id?e.id.toString()===t.id.toString()&&e.type===t.type:j(e)===j(t)&&e.type===t.type)},x=function(e){return Object.values(e).every(function(e){return e&&0===e.length})},w=function(e){var t=0;return Object.values(e).forEach(function(e){t+=e?e.length:0}),t},D="SecurityZone,SecurityGroupTag,DynamicObject,ISESecurityGroupTag,EndPointDeviceType",Z="network,Network,NetworkGroup,SecurityZone,Url,UrlGroup,CloudCategory,URLObject,URLListObject,SIURLList,SIURLFeed,DynamicObject,ISESecurityGroupTag,Geolocation,Country",T=n(247121);let C=(0,a.iv)({width:"100%",display:"inline-flex","& .DataTooltip-content":{paddingTop:5},"& .DataTooltip-element":{display:"inline-block",maxWidth:"200px",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"& .DataTooltip-elementName":{wordBreak:"break-word"},"& .DataTooltip-hoveredElement":{wordBreak:"break-word",width:"100%",maxWidth:300,height:"auto",maxHeight:240,overflowY:"auto"}});function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t,n,r,i,o,c){try{var a=e[o](c),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(r,i)}function k(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function c(e){P(o,r,i,c,a,"next",e)}function a(e){P(o,r,i,c,a,"throw",e)}c(void 0)})}}function E(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=a(0),c.throw=a(1),c.return=a(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function a(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var G=function(e){var t=e.elementName,n=e.hoveredElement;return(0,i.BX)("div",{children:[null!=t&&""!==t&&(0,i.tZ)("div",{className:"DataTooltip-elementName",children:t}),(0,i.tZ)("div",{className:"DataTooltip-hoveredElement",children:(null==n?void 0:n.data)?(0,i.tZ)("div",{css:{paddingTop:"".concat((null==n?void 0:n.data.type)===o.Fragment?"0px":"10px")},children:n.data}):null})]})};let A=function(e){var t,n,r,c=e.element,l=e.placement,u=e.hideTooltip,s=(0,d.useMessages)().message,f=(t=(0,o.useState)(),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],c=!0,a=!1;try{for(i=i.call(e);!(c=(n=i.next()).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return I(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}}
1(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],y=f[1];(0,o.useEffect)(function(){y(void 0)},[]);var h=(n=k(function(e){return E(this,function(t){switch(e.type){case"EndPointDeviceType":return[2,(0,i.BX)("div",{children:[(0,i.tZ)("div",{children:"".concat(s("type"),": ").concat(s("deviceType")," (").concat(s("endPointDevice"),")")}),e.name?(0,i.tZ)("div",{children:"".concat(s("fqName"),": ").concat(e.name)}):null,e.version?(0,i.tZ)("div",{children:"".concat(s("version"),": ").concat(e.version)}):null]})];case"ISESecurityGroupTag":return[2,(0,i.BX)("div",{children:[(0,i.tZ)("div",{children:"".concat(s("type"),": ").concat(s("iseSecurityGroupTag"))}),e.value?(0,i.tZ)("div",{children:"".concat(s("tag"),": ").concat(e.value)}):null,e.version?(0,i.tZ)("div",{children:"".concat(s("version"),": ").concat(e.version)}):null]})];case"SecurityGroupTag":return[2,(0,i.BX)("div",{children:[(0,i.tZ)("div",{children:"".concat(s("type"),": ").concat(s("securityGroupTag"))}),(0,i.tZ)("div",{children:e.value?(0,i.tZ)("div",{children:"".concat(s("tag"),": ").concat(e.value)}):null})]})];case"DynamicObject":return[2,(0,i.BX)("div",{children:[(0,i.tZ)("div",{children:"".concat(s("type"),": ").concat(s("dynamicAttribute"))}),(0,i.tZ)("div",{children:e.type?(0,i.tZ)("div",{children:"".concat(s("objectTypeLabel"),": ").concat(e.type)}):null})]})]}return[2,(0,i.tZ)("div",{children:"".concat(s("unableToFetchData"))})]})}),function(e){return n.apply(this,arguments)}),b=function(e,t){y(void 0)},m=(r=k(function(e,t){var n;return E(this,function(e){switch(e.label){case 0:return[4,h(t)];case 1:return n=e.sent(),y({id:t.id,data:n}),[2]}})}),function(e,t){return r.apply(this,arguments)});return(0,i.tZ)("div",{css:C,onMouseEnter:function(e){return m(e,c)},onMouseLeave:function(e){return b(e,c)},children:(0,i.tZ)(T.Z,{placement:l||"top",tooltipCss:(0,a.iv)({".atomic-tooltip__text":{maxHeight:"".concat(200,"px !important"),overflow:"auto !important"},zIndex:"2300 !important"}),interactive:!0,show:!u&&void 0,delay:!0,content:(0,i.tZ)(G,{elementName:c.name,hoveredElement:p}),children:function(e){var t,n;return(0,i.tZ)("div",(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={className:"DataTooltip-element",children:"".concat(c.name)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}})})};function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}let R=o.memo(function(e){var t=e.listRef,n=e.setNearBottom,r=e.listOnlyCategories,a=e.users,l=e.objects,u=e.objectType,s=e.objSelected,d=e.setObjSelected,f=e.objSourceSelected,p=e.objDestinationSelected,y=(0,o.useRef)(!1),h=(0,o.useMemo)(function(){var e,t=function(e){if(Array.isArray(e))return N(e)}(e=void 0!==a?a:l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return N(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=u.split(",").filter(function(e){return e}),i=t.filter(function(e){return n.includes(e.type)});if(r){var o=t.findIndex(function(e){return"Uncategorized"===e.name});-1!==o&&t.unshift(t.splice(o,1)[0]),i.unshift({category:"OBJECT",id:"",name:"Any (Except Uncategorized)",type:"CloudCategory"})}return i},[r,u,l,a]),b=(0,o.useCallback)(function(e,t){d((0,c.ZP)(s,function(n){var r=n.findIndex(function(e){return O(e,t)});-1!==r?e||n.splice(r,1):e&&n.push(t)}))},[s,d]),v=(0,o.useCallback)(function(e){return s.length>
1=0&&s.filter(function(t){return O(t,h[e])&&t.type===h[e].type}).length>0||f.length>=0&&f.filter(function(t){return O(t,h[e])&&t.type===h[e].type}).length>0&&p.length>=0&&p.filter(function(t){return O(t,h[e])&&t.type===h[e].type}).length>0||(f.length>=0&&f.filter(function(t){return O(t,h[e])&&t.type===h[e].type}).length>0||p.length>=0&&p.filter(function(t){return O(t,h[e])&&t.type===h[e].type}).length>0)&&"partial"},[s,h,f,p]),S=(0,o.useCallback)(function(e){return f.length>=0&&f.filter(function(t){return O(t,h[e])}).length>0&&p.length>=0&&p.filter(function(t){return O(t,h[e])}).length>0},[f,p,h]),j=(0,o.useCallback)(function(e){return s.some(function(t){return O(t,h[e])})||f.length>=0&&f.filter(function(t){return O(t,h[e])}).length>0&&p.length>=0&&p.filter(function(t){return O(t,h[e])}).length>0},[s,f,p,h]),x=(0,o.useCallback)(function(e){var t,n,r,o=e.key,c=e.index,a=e.style;return(0,i.tZ)("div",{style:(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},a),n=n={marginBottom:"5px"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),className:"acp-object-container acp-object-container-".concat(c),"data-testid":h[c].name,children:(0,i.tZ)("div",{children:(0,i.BX)("div",{onClick:function(e){e.target.className.includes("checkbox__input")||b(!j(c),h[c])},children:[(0,i.tZ)(m.Z,{children:null,checked:v(c),readOnly:!0,labelCss:{padding:"5px 5px 5px 5px!important"},disabled:S(c)}),(0,i.BX)("li",{css:{overflow:"hidden",paddingTop:"4px !important",display:"flex"},children:[(0,i.tZ)("span",{style:{flex:1},children:(0,i.tZ)(A,{element:h[c],placement:"right"})}),(0,i.tZ)("span",{css:{display:"flex",flex:"0 1",cursor:"auto",marginLeft:"auto",justifyContent:"flex-end",padding:"0 15px !important"},children:null==(r=h[c])?void 0:r.value})]})]})})},o)},[h,S,j,b,v]);return(0,i.tZ)("div",{children:(0,i.tZ)(g.aV,{ref:t,width:310,height:140,rowCount:h.length,rowHeight:35,rowRenderer:x,onScroll:function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;if(null!=n){var o=i+t>=r-105;y.current!==o&&(y.current=o,n(o))}}})})}),L=n(859084).Z;var B=n(4731),U=n(499601),F=n(396953);function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}let M=function(e){var t=e.objects,n=e.keyForObjects,r=e.disableRemove,c=e.setObjectTab,l=e.handleDeleteObject,s=(0,d.useMessages)().message,f=(0,o.useMemo)(function(){var e,r;return function(e){if(Array.isArray(e))return X(e)}(r=null!=(e=t[n])?e:[])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return X(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},[t,n]);return(0,i.tZ)(i.HY,{children:null==f?void 0:f.map(function(e,t){var o=j(e);return(0,i.BX)("div",{onContextMenu:function(e){e.preventDefault()},css:[(0,a.iv)("&:hover{background-color:",u.Z.components.table.row.hovered.bg,";}"),{paddingLeft:8,marginBottom:3,display:"flex",alignItems:"center",flex:"1 1 auto",minWidth:0}],"data-testid":o,children:[(0,i.tZ)("div",{css:{paddingLeft:"8px",display:"flex",alignItems:"center",flex:"1 1 auto",overflow:"hidden",paddingRight:0,minWidth:0,cursor:r?"inherit":"pointer"},onClick:function(){r||c(n,e)},children:(0,i.tZ)(i.HY,{children:(0,i.tZ)(A,{element:e,placement:"right"})})}),(0,i.tZ)("div",{css:{display:"flex",alignItems:"center",justifySelf:"flex-end",gap:5,height:"auto",marginRight:"10px"},children:(0,i.tZ)(F.Z,{buttonCss:{width:10},icon:"close",label:r?s("disableRemove"):s("remove"),size:"small",disabled:r,iconCss:{marginRight:10},onClick:function(){return l(e)}})})]},"".concat(o,"--").concat(e.id,"--").concat(e.original))})})};function Y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function $(){var e=Y(["\n                          &:hover {\n                            background-color: ",";\n                          }\n                          .expandable_line--class {\n                            visibility: hidden;\n                            line-height: 10px;\n                            display: flex;\n                            align-items: center;\n                            margin-right: 10px;\n                          }\n                          &:hover .expandable_line--class {\n                            visibility: visible;\n                          }\n                          display: flex;\n                          flex-direction: row;\n                          width: calc(100% - 16px);\n                          > div {\n                            display: flex;\n                            margin-left: auto;\n                            margin-right: 10px;\n                          }\n                        "]);return $=function(){return e},e}function W(){var e=Y(["\n                        > div > span {\n                          width: 100%;\n                        }\n                      "]);return W=function(){return e},e}let H=o.memo(function(e){var t=e.listRef,n=e.sourceOrDestination,r=e.setFieldValue,l=e.expanded,s=e.setExpanded,f=e.objects,y=e.setObjects,h=e.getObjectTitle,b=e.getObjectColor,m=e.save,g=e.setSelectedObjects,v=(0,p.Fg)(),S=(0,d.useMessages)().message,j="securityGroupTagSrc",x="dynamicObjectSrc",D="dynamicObjectDst",Z="iseSecurityGroupTagSrc",C="iseSecurityGroupTagDst",I="iseEndpointProfileSrc",P=(0,o.useCallback)(function(e,t){var n=[],r=[];return void 0!==e&&e.forEach(function(e){switch(e.type){case"SecurityZone":case"SecurityGroupTag":case"DynamicObject":case"EndPointDeviceType":case"ISESecurityGroupTag":n.push(e);break;case"UserGroup":case"VlanGroupTag":case"PortObjectGroup":case"NetworkGroup":case"UrlGroup":r.push(e)}}),r.length>0&&n.length>0?S("expandableLabelWithObjAndGroups",{countObj:n.length,countGroups:r.length}):r.length>0?S("expandableLabelWithOnlyGroups",{countGroups:r.length}):S("expandableLabel",{countObj:n.length})}
1,[S]),k=(0,o.useCallback)(function(e,t,n,r){r((0,c.ZP)(function(n){n[t]=e}))},[]),E=(0,o.useCallback)(function(e){if(e){var t,i,o,c,a=[];void 0!==f&&void 0!==e&&(t=null!=(c=null==(i=f[null==e?void 0:e.id])?void 0:i.findIndex(function(t){return O(t,e)}))?c:-1,null==(o=f[null==e?void 0:e.id])||o.forEach(function(e,n){n!==t&&a.push(e)})),0===a.length&&a.push(e),m(a,r,n,e),!function(t){var n=function(e,t){return e.filter(function(e){return!e.startsWith(t)})};if("source"===t){if("SecurityGroupTag"===e.type){var r,i=(null==(r=localStorage.getItem(j))?void 0:r.split(",").map(function(e){return e.trim()}))||[];i=n(i,e.id),localStorage.setItem(j,i.join(","))}else if("DynamicObject"===e.type){var o,c=(null==(o=localStorage.getItem(x))?void 0:o.split(",").map(function(e){return e.trim()}))||[];c=n(c,e.id),localStorage.setItem(x,c.join(","))}else if("EndPointDeviceType"===e.type){var a,l=(null==(a=localStorage.getItem(I))?void 0:a.split(",").map(function(e){return e.trim()}))||[];l=n(l,e.id),localStorage.setItem(I,l.join(","))}else if("ISESecurityGroupTag"===e.type){var u,s=(null==(u=localStorage.getItem(Z))?void 0:u.split(",").map(function(e){return e.trim()}))||[];s=n(s,e.id),localStorage.setItem(Z,s.join(","))}}else if("destination"===t){if("DynamicObject"===e.type){var d,f=(null==(d=localStorage.getItem(D))?void 0:d.split(",").map(function(e){return e.trim()}))||[];f=n(f,e.id),localStorage.setItem(D,f.join(","))}else if("ISESecurityGroupTag"===e.type){var p,y=(null==(p=localStorage.getItem(C))?void 0:p.split(",").map(function(e){return e.trim()}))||[];y=n(y,e.id),localStorage.setItem(C,y.join(","))}}}(n)}},[n,f,m,r]),G=(0,o.useCallback)(function(e){g((0,c.ZP)(function(t){var n;null==(n=f[e])||n.forEach(function(e){var n=t.findIndex(function(t){return O(t,e)});-1!==n&&t.splice(n,1)})})),y((0,c.ZP)(f,function(t){t[e]=[]}))},[y,f,g]),A=(0,o.useCallback)(function(e){"DYN"===e?"source"===n?(r("endPointDeviceTypes",void 0),r("networkAccessDeviceIPs",void 0),r("sourceSecurityGroupTags",void 0),r("sourceDynamicObjects",void 0)):(r("destinationSecurityGroupTags",void 0),r("destinationDynamicObjects",void 0)):console.error("Key -- ".concat(e," -- not found")),G(e)},[r,n,G]);(0,o.useEffect)(function(){var e=0,n=[];Object.keys(f).forEach(function(t){if(!(t in l)&&Object.keys(f).some(function(e){var t,n;return(null!=(n=null==(t=f[e])?void 0:t.length)?n:0)>0})){var r,i,o,c;e+=null!=(o=null==(r=f[t])?void 0:r.length)?o:0,(null!=(c=null==(i=f[t])?void 0:i.length)?c:0)!==0&&(n.push(t),e++)}}),0!==e&&s((0,c.ZP)(function(r){n.forEach(function(n){r[n]=24*e<t.current.offsetHeight})}))},[f,l,s,t]),(0,o.useEffect)(function(){var e=0,r=[];if(Object.keys(f).forEach(function(t){var n,i,o,c;(null!=(i=null==(n=f[t])?void 0:n.length)?i:0)!==0&&(e=e+(null!=(c=null==(o=f[t])?void 0:o.length)?c:0)+1,r.push(t))}),0!==e&&s((0,c.ZP)(function(n){r.forEach(function(r){n[r]="DYN"===r||24*e<t.current.offsetHeight})})),24*e>t.current.offsetHeight){if("source"===n){var i,o,a,l=["ZONE","NET","PORT","APP","USER","DYN","VLAN"];i=null!=(a=l.findIndex(function(e){return"DYN"===e}))?a:0,o=l.slice(0,i)}else{var u,d=["ZONE","NET","PORT","APP","URL","DYN"];i=null!=(u=d.findIndex(function(e){return"DYN"===e}))?u:0,o=d.slice(0,i)}var p=0;o.forEach(function(e){var t;(null!=(t=f[e])?t:[]).length>0&&p++}),setTimeout(function(){var e;return null==(e=t.current)?void 0:e.scrollTo({top:45*p,behavior:"smooth"})},1e3)}},[f,"Dynamic Attribute",s,t,n]);var N=function(e,t){};return(0,i.tZ)(i.HY,{children:void 0!==f&&0!==w(f)&&void 0!==r&&Object.keys(f).flatMap(function(e){var t;return f[e].length>0?[(0,i.tZ)("ul",{"data-testid":h(e),children:(0,i.BX)("li",{id:e+n+"List",css:(0,a.iv)({scroll:"smooth",display:"flex",alignItems:"flex-start",marginTop:5,overflow:"auto",padding:"5px 0 5px 5px !important"}),children:[(0,i.tZ)(T.Z,{content:h(e),children:function(t){var n,r;return(0,i.tZ)("div",(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({}
1,t),r=r={css:[t.css,{width:42,height:25,display:"flex",justifyContent:"center",alignItems:"center",marginRight:6,marginTop:3,borderRadius:4,backgroundColor:b(e,!1),color:b(e,!0),fontSize:v.fontSizeXs}],children:e},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}}),(0,i.tZ)(U.Z,{label:(0,i.BX)("div",{css:(0,a.iv)($(),u.Z.colors.control.bg.weak.hover),children:[(0,i.tZ)("div",{css:(0,a.iv)({display:"flex",width:"100%"}),children:P(f[e],e)}),(0,i.tZ)(F.Z,{className:"expandable_line--class",icon:"close",size:"small",onClick:function(){return A(e)}})]}),wrapperCss:(0,a.iv)({display:"flex",flexDirection:"column",borderLeft:"solid 1px ".concat(v.baseBrandColor),overflow:"hidden",flex:1},(0,a.iv)(W())),expanded:null==(t=l[e])||t,onExpansionUpdate:function(t){return k(t,e,l,s)},headerCss:(0,a.iv)({justifyContent:"start"}),children:(0,i.tZ)(M,{objects:f,setObjectTab:N,handleDeleteObject:E,setFieldValue:r,keyForObjects:e,sourceOrDestination:n,disableRemove:!1})})]})},e+n)]:[]})})});var z=n(8071),V=n(455035),_=n(907130);let q=o.memo(function(e){var t=e.objNotAllowed,n=e.setShowObjectsNotAllowedDialog;e.showObjectsNotAllowedDialog;var r=(0,d.useMessages)().message;return(0,i.tZ)(d.MessageProvider,{children:(0,i.BX)(_.Z,{width:450,onClose:function(e){n(!1),e.stopPropagation()},css:(0,a.iv)({zIndex:"5000 !important",backgroundColor:"rgba(0, 0, 0, 0.4) !important"}),children:[(0,i.tZ)(_.Z.Header,{children:(0,i.tZ)(_.Z.Title,{children:r("warning")})}),(0,i.tZ)(_.Z.Body,{children:(0,i.BX)("div",{css:(0,a.iv)({display:"flex",flexDirection:"column"}),children:[(0,i.tZ)("span",{children:r("objectsWillNotBeAdded1",{type:" Endpoint Device Type, Security Group Tag"})}),(0,i.tZ)("span",{css:(0,a.iv)({marginTop:25}),children:r("objectsWillNotBeAdded2")}),(0,i.tZ)("ul",{css:(0,a.iv)({overflow:"auto",maxHeight:200,maxWidth:325,background:u.Z.components.table.body.category.bg}),children:t.map(function(e){return(0,i.BX)("li",{css:(0,a.iv)({display:"flex",maxWidth:300,paddingLeft:"10px !important"}),children:[(0,i.tZ)(h.Z,{tooltip:(0,i.tZ)("div",{css:(0,a.iv)({wordBreak:"break-word"}),children:e.name}),children:e.name}),(0,i.BX)(h.Z,{contentCss:(0,a.iv)({fontStyle:"italic",paddingLeft:5}),tooltip:e.type,children:["(",e.type,")"]})]},"".concat(e.name,"-").concat(e.type))})})]})}),(0,i.BX)(_.Z.Footer,{children:[(0,i.tZ)(y.Z,{kind:"tertiary",onClick:function(){n(!1)},children:r("cancel")}),(0,i.tZ)(y.Z,{kind:"primary",onClick:function(){n(!1)},children:r("ok")})]})]})})});function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t,n,r,i,o,c){try{var a=e[o](c),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(r,i)}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function ee(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],c=!0,a=!1;try{for(i=i.call(e);!(c=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,t)||er(e,t)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function en(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||er(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function er(e,t){if(e){if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}}var ei=100;let eo=function(){var e=(0,d.useMessages)().message,t=(0,p.Fg)(),n=et((0,o.useState)(!0),2),r=n[0],g=n[1],T=et((0,o.useState)(!1),2),C=T[0],I=T[1],P=(0,o.useRef)(null),k=et((0,o.useState)([]),2),E=k[0],G=k[1],A=et((0,o.useState)({}),2),N=A[0],U=A[1],F=et((0,o.useState)(null),2),X=F[0],M=F[1],Y=et((0,o.useState)([]),2),$=Y[0],W=Y[1],_=et((0,o.useState)([]),2),J=_[0],er=_[1],eo=et((0,o.useState)(!1),2),ec=eo[0],ea=eo[1],el=et((0,o.useState)(!1),2),eu=el[0],es=el[1],ed=ec?[f.EndPointDeviceType,f.ISESecurityGroupTag,f.DynamicObject]:[f.SecurityGroupTag,f.DynamicObject],ef=(0,o.useRef)(null),ep=(0,o.useRef)(null),ey=et((0,o.useState)(v),2),eh=ey[0],eb=ey[1],em=(0,o.useRef)(),eg=et((0,o.useState)(""),1)[0],ev=et((0,o.useState)([]),2),eS=ev[0],ej=ev[1],eO=et((0,o.useState)([]),2),ex=eO[0],ew=eO[1],eD=et((0,o.useState)(S),2),eZ=eD[0],eT=eD[1],eC=et((0,o.useState)({}),2),eI=eC[0],eP=eC[1],ek=et((0,o.useState)({}),2),eE=ek[0],eG=ek[1],eA=et((0,o.useState)("EndPointDeviceType,DynamicObject,SecurityGroupTag,ISESecurityGroupTag"),2),eN=eA[0],eR=eA[1],eL="SecurityGroupTag,EndPointDeviceType,ISESecurityGroupTag,DynamicObject",eB=et((0,o.useState)(""),2),eU=eB[0],eF=eB[1],eX=et((0,o.useState)(!0),2),eM=eX[0],eY=eX[1],e$=et((0,o.useState)(!1),2),eW=e$[0],eH=e$[1],ez=et((0,o.useState)(0),2),eV=ez[0],e_=ez[1],eq=et((0,o.useState)(0),2),eJ=eq[0],eK=eq[1],eQ=et((0,o.useState)(0),2),e0=eQ[0],e1=eQ[1],e2=et((0,o.useState)(!0),2),e5=e2[0],e6=e2[1],e8=et((0,o.useState)(!1),2),e4=e8[0],e7=e8[1],e3=et((0,o.useState)(!1),2),e9=e3[0],te=e3[1],tt=(0,s.Z)(eU,500),tn=(0,o.useRef)(!1),tr=(0,o.useRef)(!1),ti=(0,o.useRef)(tt),to=function(e){eF(e)},tc=(0,o.useCallback)(function(e,n){return"DYN"===e?n?t.acPolicyDynObjectText:t.acPolicyDynObject:n?t.baseStrokeColor:""},[t]),ta=(0,o.useCallback)(function(t){return"DYN"===t?e("dynObjTitle"):void 0},[e]),tl="dynamicObjectSrc",tu="dynamicObjectDst",ts="securityGroupTagSrc",td="iseSecurityGroupTagSrc",tf="iseSecurityGroupTagDst",tp="iseEndpointProfileSrc",ty=(0,o.useCallback)(function(e){var t=new Set;return e.filter(function(e){return!t.has(e.id)&&(t.add(e.id),!0)})},[]);(0,o.useEffect)(function(){if(ti.current===tt||0===eV){if(!eN.trim()){G([]),eY(!1),eH(!1),g(!1),I(!1);return}var t=!0,n=new AbortController;return ti.current=tt,g(0===eV),I(eV>0),M(null),L.fetchSearchResult({searchCategory:"object",searchParam:""!==tt?tt:'""',type:eN,offset:eV,limit:ei,signal:n.signal}).then(function(e){t&&B.unstable_batchedUpdates(function(){U(function(t){var n=Q({},t);return e.items.forEach(function(e){n[e.id]=e}),n}),G(function(t){return 0===eV?ty(e.items):ty(en(t).concat(en(e.items)))}),eY(e.count>eV+e.items.length),te(!1),eH(!1),g(!1),I(!1)})}).catch(function(n){t&&"AbortError"!==n.name&&(M(e("unableToFetchData")),eY(!1),g(!1),I(!1),eH(!1))}),function(){t=!1,n.abort()}}},[ty,tt,e,eN,eJ,eV]),(0,o.useEffect)(function(){if(!tn.current){tn.current=!0;return}G([]),eY(!0),eH(!1),e_(0),eK(function(e){return e+1})},[tt]),(0,o.useEffect)(function(){G([]),eY(!0),eH(!1),e_(0),eK(function(e){return e+1})},[eN]),(0,o.useEffect)(function(){var e,t;(e=function(){var e;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=a(0),c.throw=a(1),c.return=a(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function a(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return[4,z.ZP.fetchDirectoryService()];case 1:return ea(e=t.sent().enabledServiceType===V.yR.ISE),e?eR("EndPointDeviceType,DynamicObject,ISESecurityGroupTag"):eR("DynamicObject,SecurityGroupTag"),[2]}})},t=function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function c(e){K(o,r,i,c,a,"next",e)}function a(e){K(o,r,i,c,a,"throw",e)}c(void 0)})},function(){return t.apply(this,arguments)})()},[]);var th=(0,o.useCallback)(function(e){var t=e.filter(function(e){return["SecurityGroupTag","EndPointDeviceType"].includes(e.type)}).length;return t>0&&t===e.length},[]),tb=(0,o.useCallback)(function(e,t){return $.length>0&&$.every(function(n){return e.find(function(e){return O(n,e)&&n.type===e.type&&t===e.original})})},[$]),tm=(0,o.useCallback)(function(){var e=localStorage.getItem(tl)||"",t=localStorage.getItem(tu)||"",n=localStorage.getItem(ts)||"",r=localStorage.getItem(td)||"",i=localStorage.getItem(tf)||"",o=localStorage.getItem(tp)||"",c=function(e){return N[e]||{id:e,name:"Unknown",value:null}},a=n.split(",").map(function(e){var t=e.trim(),n=c(t);return{id:t,name:n.name,value:n.value,type:"SecurityGroupTag"}}).filter(function(e){return e.id}),l=e.split(",").map(function(e){var t=e.trim(),n=c(t).name;return{id:t,name:n,type:"DynamicObject"}}).filter(function(e){return e.id}),u=t.split(",").map(function(e){var t=e.trim(),n=c(t).name;return{id:t,name:n,type:"DynamicObject"}}).filter(function(e){return e.id}),s=r.split(",").map(function(e){var t=e.trim(),n=c(t);return{id:t,name:n.name,value:n.value,type:"ISESecurityGroupTag"}}).filter(function(e){return e.id}),d=i.split(",").map(function(e){var t=e.trim(),n=c(t);return{id:t,name:n.name,value:n.value,type:"ISESecurityGroupTag"}}).filter(function(e){return e.id}),f=o.split(",").map(function(e){var t=e.trim(),n=c(t).name;return{id:t,name:n,type:"EndPointDeviceType"}}).filter(function(e){return e.id});eb({DYN:en(l).concat(en(a),en(s),en(f))}),eT({DYN:en(u).concat(en(d))}),ej(en(l).concat(en(a),en(s),en(f))),ew(en(u).concat(en(d)))},[N]);(0,o.useEffect)(function(){tr.current||(tr.current=!0,tm())},[tm]);var tg=(0,o.useCallback)(function(e,t){return"string"==typeof t?t:Array.isArray(t)&&0===t.length?[]:e},[]),tv=(0,o.useCallback)(function(e){return e.map(function(e){var t=N[e.id];return null==t?e:ee(Q({},e),{name:t.name,value:tg(e.value,t.value)})})},[tg,N]),tS=(0,o.useCallback)(function(e){return e.map(function(e){var t,n=N[e.id];return null==n?e:ee(Q({},e),{name:n.name,value:null!=(t=n.value)?t:e.value})})},[N]);(0,o.useEffect)(function(){0!==Object.keys(N).length&&(eb(function(e){return(0,c.ZP)(e,function(e){e.DYN=tv(e.DYN)})}),eT(function(e){return(0,c.ZP)(e,function(e){e.DYN=tv(e.DYN)})}),ej(function(e){return tS(e)}),ew(function(e){return tS(e)}))},[tv,tS,N]);var tj=(0,o.useCallback)(function(){return[localStorage.getItem(tl)||"",localStorage.getItem(tu)||"",localStorage.getItem(ts)||"",localStorage.getItem(td)||"",localStorage.getItem(tf)||"",localStorage.getItem(tp)||""].flatMap(function(e){return e.split(",")}).map(function(e){return e.trim()}
1).filter(Boolean)},[]),tO=(0,o.useCallback)(function(e){return tj().some(function(t){return null==e[t]})},[tj]);(0,o.useEffect)(function(){!r&&!C&&eM&&eW&&(e_(E.length),eK(function(e){return e+1}))},[eM,r,C,eW,E]),(0,o.useEffect)(function(){if(!e4&&!e9&&e5&&tO(N)){var e=!0,t=new AbortController;return e7(!0),L.fetchSearchResult({searchCategory:"object",searchParam:'""',type:eL,offset:e0,limit:ei,signal:t.signal}).then(function(t){e&&B.unstable_batchedUpdates(function(){U(function(e){var n=Q({},e);return t.items.forEach(function(e){n[e.id]=e}),n}),e6(t.count>e0+t.items.length),e1(function(e){return e+t.items.length}),te(!1),e7(!1)})}).catch(function(t){e&&"AbortError"!==t.name&&(te(!0),e7(!1))}),function(){e=!1,t.abort()}}},[eL,e5,e9,e4,e0,tO,N]);var tx=function(e,t){var n=[],r=[],i=[],o=[],c=[],a=[];"source"===t?e.forEach(function(e){e.id&&("SecurityGroupTag"===e.type?n.push("".concat(e.id)):"DynamicObject"===e.type?r.push("".concat(e.id)):"EndPointDeviceType"===e.type?a.push("".concat(e.id)):"ISESecurityGroupTag"===e.type&&o.push("".concat(e.id)))}):e.forEach(function(e){e.id&&("DynamicObject"===e.type?i.push("".concat(e.id)):"ISESecurityGroupTag"===e.type&&c.push("".concat(e.id)))});var l=function(e,t){t.length>0?localStorage.setItem(e,t.join(",")):localStorage.removeItem(e)};switch(t){case"source":l(ts,n),l(tl,r),l(td,o),l(tp,a);break;case"dest":l(tu,i),l(tf,c);break;default:return}},tw=(0,o.useCallback)(function(e){return 0===e.length&&tb(ex)||th(e)||$.length>0&&$.every(function(e){return ex.find(function(t){return O(e,t)})})},[tb,th,ex,$]),tD=function(e,t){e.currentTarget.checked?eR((0,c.ZP)(function(e){return e+","+t})):(eR((0,c.ZP)(function(e){var n=e.split(","),r=n.findIndex(function(e){return e===t});return -1!==r&&n.splice(r,1),n.filter(function(e){return""!==e}).join(",")})),W((0,c.ZP)(function(e){return e.filter(function(e){return e.type!==t})})))},tZ=(0,o.useCallback)(function(e,t,n,r){"source"===e?(eb((0,c.ZP)(function(e){var i;if(void 0!==r){var o=e[t].findIndex(function(e){return r.original?e.original&&O(e,r):!0!==e.original&&O(e,r)});o>-1&&(e[t].splice(o,1),tx(e[t],"source"))}else(null==(i=e[t])?void 0:i.some(function(e){return O(e,n)}))||""===n.name||(e[t].push(n),tx(e[t],"source"))})),ej((0,c.ZP)(function(e){if(void 0!==r){var t=e.findIndex(function(e){return O(e,r)});t>-1&&e.splice(t,1)}}))):(eT((0,c.ZP)(function(e){if(void 0!==r){var i,o,c=e[t].findIndex(function(e){return O(e,r)});c>-1&&(e[t].splice(c,1),tx(e[t],"dest"))}else(null==(i=e[t])?void 0:i.some(function(e){return O(e,n)}))||""===n.name||(null==(o=e[t])||o.push(n),tx(e[t],"dest"))})),ew((0,c.ZP)(function(e){if(void 0!==r){var t=e.findIndex(function(e){return O(e,r)});t>-1&&e.splice(t,1)}})))},[ej,ew]),tT=(0,o.useCallback)(function(e){return e?e.filter(function(e){return!0}):[]},[]),tC=(0,o.useCallback)(function(e,t,n){var r=(n||$).filter(function(t){var n;return("source"===e?D:Z).split(",").includes(t.type)&&(null==(n="source"===e?eS:ex)?void 0:n.filter(function(e){return!0!==e.original}).every(function(e){return!O(e,t)}))});if("source"!==e){var i=r.findIndex(function(e){return"Any (Except Uncategorized)"===j(e)});-1!==i&&r.splice(i,1)}return r},[$,eS,ex]),tI=(0,o.useCallback)(function(e,t,n,r,i){e.forEach(function(e,t){tZ(n,"DYN",e,r)})}
1,[tZ]),tP=(0,o.useCallback)(function(e,t,n){var r=tC(e,t,n);return t||"source"===e?en(r).concat(en(eS)):tT(en(r).concat(en(ex)))},[tC,eS,tT,ex]),tk=(0,o.useCallback)(function(e,t,n,r,i){var o=tP(n,r,i||$),c={type:"",name:"",id:""};if("source"===n){var a=i||$;ej(function(e){var t=a.filter(function(t){return!e.some(function(e){return O(e,t)})});return en(e).concat(en(t))})}else{var l=i||$;ew(function(e){var t=l.filter(function(t){return!e.some(function(e){return O(e,t)})});return en(e).concat(en(t))})}tI(en(o).concat(en([]),[null!=c?c:{}]),e,n,void 0,!0),W([])},[tP,$,tI]),tE=(0,o.useCallback)(function(e,t,n){var r=n.filter(function(e){return D.includes(e.type)});n.length>0&&r.length===n.length&&e&&tk(e,t,"source",!1,n)},[tk]),tG=(0,o.useCallback)(function(e,t,n){var r=n.filter(function(e){return Z.split(",").some(function(t){return e.type===t})});er(n.filter(function(e){return!Z.split(",").some(function(t){return e.type===t})})),r.length<n.length&&(es(!0),n=r),n.length>0&&r.length===n.length&&e&&tk(e,t,"destination",!1,n)},[tk]);return(0,i.tZ)(l.Z,{formRef:em,initialValues:eg,onSubmit:function(){},render:function(n){var o=n.values,c=n.isSubmitting,l=n.setFieldValue;return(0,i.BX)("div",{css:{display:"flex",flexFlow:"row nowrap",width:"auto !important",justifyContent:"flex-start",background:t.controlFillColor,zIndex:2,paddingLeft:"0 !important",borderBottom:"1px solid ".concat(t.dividerColorDefault)},children:[(0,i.BX)("div",{css:{display:"flex",flexDirection:"column",flex:1,width:"45%",borderLeft:"1px solid ".concat(t.dividerColorDefault)},children:[(0,i.tZ)("div",{css:{width:"65%",display:"flex",alignItems:"center",borderRight:"unset",paddingLeft:7},children:(0,i.tZ)(b.Z,{wrapperCss:(0,a.iv)({padding:7}),value:eU,onUpdate:to,disabled:!1,placeholder:e("filterAppFilters")})}),(0,i.BX)("div",{css:{display:"flex",height:"100%"},children:[(0,i.BX)("div",{css:{display:"flex",flexDirection:"column",width:"43%",maxHeight:"100%",borderRight:"1px solid ".concat(t.controlFillColorDisabled)},children:[(0,i.tZ)("div",{css:{background:u.Z.colors.base.bg.default},children:(0,i.tZ)("label",{css:{paddingLeft:"10px !important"},children:e("filterDynamicAttributes")})}),ed.map(function(t){return(0,i.tZ)(m.Z,{checked:eN.split(",").includes(t),onChange:function(e){return tD(e,t)},labelCss:(0,a.iv)({padding:"5px 5px 5px 10px !important",display:"flex !important"}),titleCss:(0,a.iv)({paddingLeft:"5px !important"}),disabled:!1,"data-testid":t,children:e(t)},t)})]}),(0,i.BX)("div",{css:{display:"flex",flexDirection:"column",width:"57%",height:"calc(100% - 21px)"},children:[(0,i.tZ)("div",{css:{background:u.Z.colors.base.bg.default},children:(0,i.tZ)("label",{css:{paddingLeft:"5px !important"},children:e("dynamicAttributes")})}),r?(0,i.tZ)(i.HY,{children:"Loading"}):null!=X&&0===E.length?(0,i.tZ)("div",{css:{padding:"8px 10px"},children:X}):(0,i.tZ)(R,{show:!0,listRef:P,objects:E,objectType:eN,objSelected:$,setObjSelected:W,objSourceSelected:eS,objDestinationSelected:ex,setNearBottom:eH})]})]})]}),(0,i.BX)("div",{css:{display:"flex",flexFlow:"row nowrap",gap:0,width:"55%",borderRight:"1px solid ".concat(t.dividerColorDefault)},children:[(0,i.BX)("div",{css:{display:"flex",flexFlow:"column",height:"100%",borderLeft:"1px solid ".concat(t.dividerColorDefault),transition:"width 500ms, height 500ms",transitionTimingFunction:"ease-out",flex:1,width:"50%"},children:[(0,i.tZ)("div",{css:{display:"flex",whiteSpace:"nowrap",paddingLeft:10,alignItems:"center",justifyContent:"space-between",height:41,borderBottom:"solid 1px ".concat(t.controlFillColorDisabled)},children:(0,i.tZ)("div",{css:{display:"flex"},children:(0,i.BX)("label",{css:{whiteSpace:"normal"},children:[e("selectedSources")," ",e("selectedSourcesCount",{count:w(eh)})]})})}),(0,i.BX)("div",{ref:ef,css:(0,a.iv)({display:"flex",flexFlow:"column",width:"100%",overflow:"auto",padding:"0 10px",height:"200px"}),children:[(0,i.tZ)("div",{css:(0,a.iv)({display:"flex",flexDirection:"column",width:"100%",flex:1,overflow:"auto",padding:"0 10px"}),children:x(eh)?(0,i.tZ)("div",{css:{display:"flex",flexDirection:"column",width:"100%",flex:1,overflow:"auto",padding:"0 10px"}
1,children:(0,i.tZ)("div",{css:{display:"flex",height:"100%",justifyContent:"center",alignItems:"center",color:t.baseStrokeColor},children:e("any")})}):(0,i.tZ)(H,{listRef:ef,sourceOrDestination:"source",setFieldValue:l,isSubmitting:c,expanded:eE,setExpanded:eG,objects:eh,setObjects:eb,setSelectedObjects:ej,getObjectTitle:ta,getObjectColor:tc,save:tI,setLoading:g},"GenerateSourceView")}),(0,i.tZ)("div",{css:{display:"flex",margin:"5px 0",alignItems:"center",justifyContent:"center"},children:(0,i.tZ)("div",{css:{display:"flex",alignItems:"center",maxWidth:"100%"},children:(0,i.tZ)(y.Z,{onClick:function(e){tE(l,o,$)},buttonCss:(0,a.iv)("align-items:center;display:flex !important;"),kind:"primary",disabled:0===$.length,children:(0,i.tZ)(h.Z,{children:"Add Sources"})})})})]})]}),(0,i.BX)("div",{css:{display:"flex",flexFlow:"column",height:"100%",borderLeft:"1px solid ".concat(t.dividerColorDefault),transition:"width 500ms, height 500ms",transitionTimingFunction:"ease-out",flex:1,width:"50%"},children:[(0,i.tZ)("div",{css:(0,a.iv)({display:"flex",whiteSpace:"nowrap",paddingLeft:10,alignItems:"center",justifyContent:"space-between",height:41,borderBottom:"solid 1px ".concat(t.controlFillColorDisabled)}),children:(0,i.tZ)("div",{children:(0,i.BX)("label",{css:{whiteSpace:"normal"},children:[e("selectedDestination")," ",e("selectedDestinationCount",{count:w(eZ)})]})})}),(0,i.BX)("div",{ref:ep,css:(0,a.iv)({display:"flex",flexDirection:"column",width:"100%",overflow:"auto",padding:"0 10px",height:"200px"}),children:[(0,i.tZ)("div",{css:(0,a.iv)({display:"flex",flexDirection:"column",width:"100%",flex:1,overflow:"auto",padding:"0 10px"}),children:x(eZ)?(0,i.tZ)("div",{css:{display:"flex",flexDirection:"column",width:"100%",flex:1,overflow:"auto",padding:"0 10px"},children:(0,i.tZ)("div",{css:{display:"flex",height:"100%",justifyContent:"center",alignItems:"center",color:t.baseStrokeColor},children:e("any")})}):(0,i.tZ)(H,{listRef:ep,sourceOrDestination:"destination",setFieldValue:l,isSubmitting:c,expanded:eI,setExpanded:eP,objects:eZ,setObjects:eT,setSelectedObjects:ew,getObjectTitle:ta,getObjectColor:tc,save:tI,setLoading:g},"GenerateDestinationView")}),(0,i.BX)("div",{css:{display:"flex",margin:"5px 0",alignItems:"center",justifyContent:"center"},children:[(0,i.tZ)("div",{css:{display:"flex",alignItems:"center",maxWidth:"100%"},children:(0,i.tZ)(y.Z,{onClick:function(e){tG(l,o,$)},buttonCss:(0,a.iv)("align-items:center;display:flex !important;"),kind:"primary",disabled:tw($)||0===$.length,"data-testid":"addToDestinationButton",children:(0,i.tZ)(h.Z,{children:"Add Destination"})})}),eu&&(0,i.tZ)(q,{objNotAllowed:J,setShowObjectsNotAllowedDialog:es,showObjectsNotAllowedDialog:eu})]})]})]})]})]})}})}},908196:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$async":true,"description":"DNS Policy Get Ise Server","definitions":{"ISEConfig":{"anyOf":[{"type":"object"},{"type":"null"}],"properties":{"dcCert_UUID":{"type":"string"},"enabled":{"type":"number"},"primary_hostname":{"type":"string"},"uuid":{"type":"string"}},"required":["uuid","enabled"]}},"type":"object","properties":{"iseConfig":{"$ref":"#/definitions/ISEConfig"}}}')},748194:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$async":true,"description":"DNS SGT Policy Search Result Data","type":"object","definitions":{"Link":{"type":"object","properties":{"self":{"type":"string"}},"required":[]},"SearchItem":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"},"category":{"type":"string","enum":["OBJECT","POLICY"]},"frequency":{"type":"number"},"metadata":{"type":"object","properties":{"domain":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"},"type":{"type":"string","enum":["Domain"]}},"required":["name","id","type"]}},"required":["domain"]}},"required":["id","name","type","category","metadata"]},"Paging":{"type":"object","properties":{"count":{"type":"number"},"limit":{"type":"number"},"offset":{"type":"number"},"pages":{"type":"number"}},"required":["count","limit","offset","pages"]}},"properties":{"links":{"$ref":"#/definitions/Link"},"items":{"type":"array","items":{"$ref":"#/definitions/SearchItem"}},"paging":{"$ref":"#/definitions/Paging"}},"required":["links","paging"]}')}}]);
2//# sourceMappingURL=10535.04b8c234.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.