1"use strict";(self["webpackChunkcyrisk"]=self["webpackChunkcyrisk"]||[]).push([[9349],{29349:function(e,t,r){r.r(t),r.d(t,{default:function(){return v}});var a=r(96913);const s={id:"self-compliance-data"},n={key:1,class:"row no-pad py-5"},o={class:"col"},i={key:2,class:"row no-pad py-5"};function l(e,t,r,l,c,u){const d=(0,a.resolveComponent)("preloader"),m=(0,a.resolveComponent)("router-link"),g=(0,a.resolveComponent)("requirements"),h=(0,a.resolveComponent)("card");return(0,a.openBlock)(),(0,a.createElementBlock)("div",s,[(0,a.createVNode)(h,{class:"p-4 tweik-card",ref:"containerCard"},{default:(0,a.withCtx)(()=>[c.loading?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0})):c.noTarget?((0,a.openBlock)(),(0,a.createElementBlock)("div",n,[(0,a.createElementVNode)("div",o,[t[1]||(t[1]=(0,a.createElementVNode)("p",null," It appears you have not completed your profile. Please configure self monitoring to view this page. ",-1)),(0,a.createVNode)(m,{to:"/cloudview/defensive-security-monitoring/configure/"},{default:(0,a.withCtx)(()=>[...t[0]||(t[0]=[(0,a.createElementVNode)("span",{class:"blu-button configure-button"},[(0,a.createElementVNode)("svg",{class:"fas fa-address-card"}),(0,a.createTextVNode)(" Configure Self Monitoring ")],-1)])],void 0,!0),_:1})])])):c.targetRequirement?((0,a.openBlock)(),(0,a.createBlock)(g,{key:3,assessmentName:c.targetRequirement.assessment_name,targetID:c.target.id,type:"requirements"},null,8,["assessmentName","targetID"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",i,[...t[2]||(t[2]=[(0,a.createElementVNode)("div",{class:"col"},[(0,a.createElementVNode)("p",null,"This requirement is not available on your account.")],-1)])]))],void 0,!0),_:1},512)])}r(44114),r(18111),r(22489);var c=r(31078),u=r(63725),d=r(38317),m=r(72279),g=r(52996),h={components:{card:c.A,requirements:u.A,preloader:m.A},data(){return{loading:!0,noTarget:!1,target:null,targetRequirement:null}},watch:{$route(){this.init()}},methods:{async init(){if(this.loading=!0,this.targetRequirement=null,await this.getContinuousTarget(),!this.target)return this.noTarget=!0,void(this.loading=!1);this.noTarget=!1,await this.getRequirements();const e=this.$route.query.assessment_id;if(this.targetRequirement?.id&&String(e)!==String(this.targetRequirement.id)){const e=`assessment_id=${this.targetRequirement.id}&assessment_name=${encodeURIComponent(this.targetRequirement.assessment_name)}`;await this.$router.push(`/global-requirements/${this.$route.params.assessment_name}?${e}`)}this.loading=!1},async getContinuousTarget(){this.target=await d.A.call({action:"get",endpoint:"targets",limit:1,offset:0,queries:[{name:"is_active",value:!0}],type:"continuous"}).then(e=>e.data.results.length?g.N.targetIn(e.data.results)[0]:null).catch(e=>(console.error(e),this.catchError("Error fetching target."),null))},async getRequirements(){try{const e=await d.A.call({action:"get",endpoint:"assessments",queries:[{name:"target",value:this.target.id}],limit:9999});if(e?.data?.results){const t=this.$route.params.assessment_name?.replaceAll("-"," ").toLowerCase();this.targetRequirement=e.data.results?.filter(({assessment_name:e})=>e.toLowerCase()===t)?.sort((e,t)=>parseFloat(t.version)-parseFloat(e.version))?.[0]}}catch(e){console.error(e),this.catchError("Error fetching requirements")}}},created(){this.init()}},p=r(66262);const f=(0,p.A)(h,[["render",l],["__scopeId","data-v-5781c79c"]]);var v=f}}]);
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.