1"use strict";(self.webpackChunksymmetra=self.webpackChunksymmetra||[]).push([[357],{58592(e,n,t){var c=t(12379),r=t.n(c),l=t(81364),o=t.n(l)()(r());o.push([e.id,".title-val {\n font-style: italic;\n}\n\n.status-row {\n margin-top: 10px;\n}\n\n.enabled-look {\n color: rgb(0, 120, 212);\n}\n\n.disabled-look {\n color: grey\n}\n\n.enabled-state-icon {\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.comment-box {\n margin-top: 30px;\n}\n\n.btn-surround {\n margin-top: 10px;\n}\n\n.btn-apply {\n margin-right: 10px;\n}\n\n.policy-batch-panel-wj-dropdown-panel {\n z-index: 2501 !important;\n}",""]);const s=o;t.d(n,["A",0,s])},23668(e,n,t){t.d(n,{A:()=>q});var c=t(77810),r=t(46186),l=t.n(r),o=t(82155),s=t.n(o),a=t(27433),i=t.n(a),u=t(88626),d=t.n(u),p=t(8990),f=t.n(p),m=t(89827),C=t.n(m),g=t(58592),h={};h.styleTagTransform=C(),h.setAttributes=d(),h.insert=i().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=f();l()(g.A,h);g.A&&g.A.locals&&g.A.locals;var _=t(47299),y=t(57696),A=t(13647),R=t(45149),S=t(43934),b=t(19699),v=t(86170),F=t(53072),I=t(3113),P=t(54278),k=t(49434),w=t(51025),D=t(18032),O=t(86379),N=t(19218),E=t(84529),T=t(74342),B=t(38873),M=t(54123),x=t(97300),G=t(77444),K=t(91406),j=t(26940),L=t(64028),W=t(8467),H=t(16605),U=t(52595),V=t(9806);const z=t(98210),$=e=>{const[n,t]=c.useState(""),[r,l]=(c.useRef(""),c.useState(null)),o=c.useRef(null),s=c.useRef(null),a=c.useRef(null),i=c.useRef(null),[u]=c.useState([]),[d]=c.useState(R.A.Spinner),[p,f]=c.useState(null),m=c.useRef(null),[C,g]=c.useState(null),h=c.useRef(null),[$,q]=c.useState(null),J=c.useRef(null),Q=e=>{J.current=e,q(e)},Y=c.useRef(null),X=c.useRef(null),Z=c.useRef(null),ee=c.useRef(null),ne=c.useRef(null),te=c.useRef(null),ce=c.useRef(null),re=c.useRef(null),le=c.useRef(null),oe=c.useRef(null),se=c.useRef(null),ae=c.useRef(null),ie=c.useRef(null),ue=async(e=!1)=>{const n=new Promise((n,t)=>{ne.current?.applyExistingFilters(e).then(t=>{0==t&&0==e&&de(!1,e),n(!0)}).catch(()=>{n(!1)})});return await n},de=async(e=!0,n=!1)=>{ee.current?.showLoading();const t=await(ee.current?.buildCoreNavigation(ne.current?.getFiltersNav()));A.A$(O.Sw+z.api.enforce.grid,t).then(async t=>{t.data.map(e=>e.rowSelected=!1);const c=await A.$c(t);ee.current?.setItemsSource(c?t.data:[],n,e).then(()=>{})}).catch(e=>{A.lz(e,"Enforcement._querySCP"),ee.current?.enableGridComponents()})},pe=()=>{const e=ee.current?.getCheckedBoxes(),n=ee.current?.getSelectAllChecked(),t=0===e.length&&!1===n;(0,V.A)("#rbutton_Refresh").prop("disabled",t)},fe=c.useRef(()=>{});fe.current=e=>{re.current&&re.current?.storeProvidersFilter(z.cache.enforcementDrillInFilterCacheKey,T.k4,le.current?.getCurrentFilter(),T._q).then(e=>{_e(null,!0)})};const me=c.useMemo(()=>(0,E.debounce)(e=>{fe.current(e)},750),[]),Ce=()=>{setTimeout(()=>{(0,V.A)(".wj-content-in").parent().addClass("wj-active-content")},100),ae&&ae.current?.loadItems()},ge=()=>{ie&&ie.current?.loadItems()},he=()=>{if(oe&&oe.current){const e=h.current&&h.current.filter(e=>"pg_scp_scn_acc_"==e.type_of.substring(0,15));1==oe.current?.control.selectedIndex?e&&e.length>0?Ce():ge():2==oe.current?.control.selectedIndex&&ge()}else setTimeout(()=>Ce(),2e3)},_e=async(e,n=!1)=>
1{if(ue(),n){const e=await(ne.current?.getFiltersNav());ye(n?e:null)}},ye=async(e=null)=>{e?(Q(await(0,x.Oq)(e)),he()):re?(Q([re.current?.getProvidersWynFilter()]),he()):he()};c.useEffect(()=>((0,x.K6)("pg_scp_").then(e=>{var n;n=e,h.current=n,g(n)}),(0,V.A)("#rbutton_Refresh").prop("disabled",!0),ce.current=setInterval(pe,4e3),ue(!0).then(()=>{setTimeout(()=>ye(),4e3),setTimeout(()=>{le.current?.loadControl()},300)}),()=>{clearInterval(ce.current)}),[]);const Ae=C&&C.filter(e=>"pg_scp_scn_acc_"==e.type_of.substring(0,15));return c.createElement(c.Fragment,null,c.createElement(S.nD,{key:"SCP-MAIN-ACC",showIcons:!0,autoSwitch:!0,isAnimated:!0,allowCollapseAll:!1,allowExpandMany:!0,ref:te},c.createElement(S.Fv,{key:"scpMain-RIBBON-ACCORDION-RIBB"},(0,N.Fi)("scpMain-RIBBON-ACCORDION-HDR"," ",[z.pag.gbl.SUM,(0,N.Fi)("scpMain-RIBBON-ACCORDION-SUMHDR_DESC"," ",[],"desc")],"main-pane wj-state-active"),(0,N.Fi)("scpMain-RIBBON","",[c.createElement(_.A,{key:"scpMain-inf-cont",navType:j.EI,icons:null,wynType:"pg_scp_gut_",onClick:async()=>{await(ne.current?.clearFilters()),re.current?.resetPanel(),le.current?.setSelectionToFirstOption(),_e(null,!0)},setPageSelection:e.setPageSelection})],"wj-content-in")),c.createElement(S.Fv,{key:"AccordionPane-PROV"},(0,N.Fi)("scpMain-RIBBON-ACCORDION-PROVHDR"," ",[z.pag.gbl.PROVS,(0,N.Fi)("scpMain-RIBBON-ACCORDION-PROVHDR_DESC"," ",[],"desc")],"wj-state-active"),(0,N.Fi)("scpMain-PROVIDER","",[c.createElement(M.Ay,{key:"ProviderPods",ref:re,onClicked:me,startActive:!0,providerFieldName:z.cols.cfld.provider_C,iconFloatClass:"u-fl-left provider-margin",loadType:M.C8.DATA,pageType:L.g.POLICY})],"pad-b-10 pad-sides-10 wj-content-in")),Ae&&Ae.length>0&&c.createElement(S.Fv,{key:"scpMain-WynAccordion-Wyn-SCN"},(0,N.Fi)("scpMain-RIBBON-WynAccordion-HDR-Wyn-SCN"," ",[z.pag.gbl.VIS,(0,N.Fi)("scpMain-RIBBON-WynAccordion-Wyn-SCN"," ",[],"desc")],"main-pane wj-state-active"),(0,N.Fi)("scpMain-RIBBON-Wyn-SCN","",[(0,x.CA)("pg_scp_scn_acc_","pg_scp_scn_acc1_","scpMain",C,$,null,he,ae,ie,oe)],"container-fluid tabbed-no-scroll wj-content-in")),c.createElement(S.Fv,{key:"AccordionPane-DATA"},(0,N.Fi)("scpMain-GRAPH-ACCORDION-DATAHDR"," ",[z.pag.gbl.DATA,(0,N.Fi)("scpMain-GRAPH-ACCORDION-DATAHDR_DESC"," ",[],"desc")],"wj-state-active"),(0,N.Fi)("scpMain-GRID-WRAP","",[(0,N.Fi)("scpMain-GRID-WRAP","",[c.createElement(U.A,{ref:le,resetCoulumns:()=>ee.current?.resetCoulumns(!0),templateCacheKey:z.cache.enforcementTemplateFilterCacheKey,onChangeBubble:(e,n)=>{((e,n)=>{(0,G.b)(z.cache.enforcementTemplateFilterCacheKey,re.current?.getProvidersFilter(z.cache.enforcementDrillInFilterCacheKey,T.k4),n,B.RF.DEFAULT).then(e=>{n&&n.sorting&&ee.current?.setSorting(n.sorting),_e(null,!0)})})(0,n)}}),c.createElement(v.A,{ref:ee,key:"risksMain-GRID",gridCacheKey:z.cache.enforcementFlexGridCacheKey,headerTitle:le.current?.getCurrentFilter()?.header,columnArgs:[(e,n,t,c,r,u)=>{Y.current?.resetComboBox().then(()=>{var d;Y.current?.setActiveState(n),Y.current?.setSubTitle(t),d=e,o.current=d,l(d),s.current=c,a.current=r,i.current=u,Y.current?.openDetailPanel()})},pe],onPageChange:()=>{de(!0,!0)},onSorting:e=>{de(!0,!0)},onSelectionChange:async e=>{if(!m.current||m.current&&e!==m.current){await(ee.current?.buildCoreNavigation(ne.current?.getFiltersNav()));Z.current&&(Z.current?.infosRowClickLoad(e),setTimeout(()=>{Z.current?.openDetailPanel()},200))}},onFilterClick:()=>{ne.current?.openPanel()},onExportData:async e=>{A.A$(O.Sw+z.api.enforce.grid,await(ee.current?.buildCoreNavigation(ne.current?.getFiltersNav(),P.GF(ee.current?.getNavigation().total_size,e)))).then(async n=>{const t=await A.$c(n);ee.current?.setExportItemsSource(t?n.data:[],e),t||P.JL()}).catch(e=>{A.lz(e,"Enforcement._tf_onExportData"),ee.current?.enableGridComponents()})},hasGrouping:!0,hasSearch:!0,initLoad:()=>{de(!1,!0)},selectionMode:y.Qc.Row,isAdmin:e.isAdmin,providerKey:z.cols.cfld.provider_C,severityKey:z.cols.cfld.severity_C,selectAllCheckBoxRef:"chkRowSelect",hasCheckBoxColumn:!0,checkBoxField:z.cols.cfld.int_id_C,blockedSelectionColumns:["rowSelected",z.cols.cfld.display_C,z.cols.cfld.enforce_C,z.cols.cfld.alert_C,z.cols.cfld.ignored_C,z.cols.cfld.compcontrol_C,z.cols.cfld.vendor_url_C,z.cols.cfld.action_url_C],headerBtnCTRLS:[(0,N.nl)("f-erteruytuytu","Batch Update",null,"header-button stdbtn",{onClick:()=>{const e=ee.current?.getCheckedBoxes();e.length>0&&X.current?.setIntIds(e);const n=ee.current?.getCheckedBoxes(z.cols.cfld.info_id_C);n.length>0&&X.current?.setInfoIds(n),X.current?.openDetailPanel()},id:"rbutton_Refresh"},c.createElement(K.hmA,{className:"stdbtn-svg"}))]})])],"wj-content-in"))),c.createElement(w.A,{key:"BatchUpdateToolPanel",ref:X,theme:e.theme,isAdmin:e.isAdmin,onApprove:e=>{const n=ee.current?.getItemsSource();n.items.map(n=>{const t=e.filter(e=>e[z.cols.cfld.info_id_C]==n[z.cols.cfld.info_id_C]);t.length>0&&(n[z.cols.cfld.alert_C]=t[0][z.cols.cfld.alert_C],n[z.cols.cfld.enforce_C]=t[0][z.cols.cfld.enforce_C],n[z.cols.cfld.ignored_C]=t[0][z.cols.cfld.ignored_C],n[z.cols.cfld.display_C]=t[0][z.cols.cfld.display_C],n[z.cols.cfld.compcontrol_C]=t[0][z.cols.cfld.compcontrol_C])}),X.current?.getPanelConfirmationToast(),X.current?.dismissPanel(),setTimeout(()=>{(0,V.A)(".oSpinner").fadeOut(1e3)},200)}}),c.createElement(k.Ay,{key:"CommentToolPanel",ref:Y,theme:e.theme,panelType:r,onApprove:()=>(()=>{const e=Y.current?._commentTextAreaRef.current?.value,n=Y.current?._MenuRef.current?.control?Y.current?._MenuRef.current?.control?.selectedItem?.key:"";i.current?s.current(i.current,e,n,o.current,Y.current?.activeState).then(e=>{const n=ee.current?.getItemsSource();n.items.map(n=>{n[z.cols.cfld.info_id_C]==e[z.cols.cfld.info_id_C]&&(n[z.cols.cfld.alert_C]=e[z.cols.cfld.alert_C],n[z.cols.cfld.enforce_C]=e[z.cols.cfld.enforce_C],n[z.cols.cfld.ignored_C]=e[z.cols.cfld.ignored_C],n[z.cols.cfld.display_C]=e[z.cols.cfld.display_C],n[z.cols.cfld.compcontrol_C]=e[z.cols.cfld.compcontrol_C])}),ee.current?.setItemsSource(n)}):s.current(e,n,o.current,Y.current?.activeState),Y.current?.getPanelConfirmationToast()})()}
1),c.createElement(b.Ay,{key:"scpMain-GRID-ACCORDION-FTP",ref:ne,theme:e.theme,filterOptions:D.Jh.filterOptions,onFilter:e=>{const n=ee.current?.getNavigation();n.page=0,ee.current?.setNavigation(n),e&&I.Ks(ne.current?.getFilters().filters,z.cache.enforcementFlexGridFilterCacheKey),de(e)},cacheKey:z.cache.enforcementFlexGridFilterCacheKey,filterPanelType:b.jk.RISKS,dynamicFields:[z.cols.cfld.provider_C,z.cols.cfld.workload_C]}),c.createElement(F.A,{key:"RiskDetailPanel",ref:Z,theme:e.theme,isAdmin:e.isAdmin,onDismiss:()=>{ee.current?.clearSelection()},displayStatus:p?R.A.Items:R.A.Empty,setPageSelection:e.setPageSelection}),c.createElement(H.A,{key:"enforcement-batch-PANEL",keyfix:"enforcement-batch-PANEL",theme:e.theme,title:z.pag.enforce.batchUpdateProcessing,ref:se,clswrapname:"enforcement-batch-panel-process--wj-popout",okTextOverride:z.pag.gbl.APP,ctrls:[c.createElement(W.A,{key:"scpMain.GSpinner",size:W.c.LG,loadOnMount:!0})]}))};$.displayName="Enforcement";const q=c.memo($)}}]);
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.