1"use strict";(self["webpackChunkcyrisk"]=self["webpackChunkcyrisk"]||[]).push([[2614],{1544:function(e,t,a){a.d(t,{x:function(){return o}});const o={US:/^\d{5}$/,CA:/^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/,ET:/^\d{4}$/}},63106:function(e,t,a){a.d(t,{A:function(){return N}});var o=a(96913);const l={id:"autocomplete-wrapper"},s={id:"targetMap",ref:"targetMap"};function n(e,t,a,n,i,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",l,[(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>i.input=e),ref:"autocomplete",placeholder:"Start typing...",id:"search-location",name:"search-location","aria-label":"search location",type:"text"},null,512),[[o.vModelText,i.input]]),(0,o.createElementVNode)("div",s,null,512)])}a(18111),a(20116);const i="AIzaSyAU4_odVdwg8TMWYTetHPh7fnaexUordZE",r="gmapsCallback";let d,c,p=!!window.google;const u=new Promise((e,t)=>{d=e,c=t});function m(){if(p)return u;p=!0,window[r]=()=>d(window.google);const e=document.createElement("script");return e.async=!0,e.defer=!0,e.src=`https://maps.googleapis.com/maps/api/js?key=${i}&callback=${r}&libraries=places`,e.onerror=c,document.querySelector("head").appendChild(e),u}var h={data(){return{autocomplete:null,input:"",isAppended:!1,addressComponents:{subpremise:"short_name",street_number:"short_name",route:"long_name",locality:"long_name",administrative_area_level_1:"long_name",administrative_area_level_2:"short_name",country:"short_name",postal_code:"short_name",neighborhood:"short_name",sublocality_level_1:"short_name"}}},methods:{formatResult(e){const t={};for(let s=0;s<e.address_components.length;s++){const a=e.address_components[s].types[0];if(this.addressComponents[a]){const o=e.address_components[s][this.addressComponents[a]];t[a]=o}}let a;a=t["locality"]?t["locality"]:!t["locality"]&&t["neighborhood"]?t["neighborhood"]:!t["neighborhood"]&&t["sublocality_level_1"]?t["sublocality_level_1"]:!t["sublocality_level_1"]&&t["administrative_area_level_2"]?t["administrative_area_level_2"]:"Not Provided";const o={street_number:t["street_number"]?t["street_number"]:"Not Provided",route:t["route"]?t["route"]:"Not Provided",locality:a,postal_code:t["postal_code"]?t["postal_code"]:null,state_code:t["administrative_area_level_1"]?t["administrative_area_level_1"]:null,country_code:t["country"]?t["country"]:null},l=e.address_components.find(e=>e.short_name===o.state_code);return l&&(o["state_display"]=l.long_name),o}},async mounted(){try{const e=await m(),t={types:["address"]};this.autocomplete=new e.maps.places.Autocomplete(this.$refs.autocomplete,t),this.autocomplete.addListener("place_changed",()=>{const e=this.autocomplete.getPlace();this.$emit("location-change",this.formatResult(e))})}catch(e){console.error(e),this.catchError("Error loading Google Maps.")}}},V=a(66262);const g=(0,V.A)(h,[["render",n],["__scopeId","data-v-51512748"]]);var N=g},66028:function(e,t,a){a.d(t,{A:function(){return u}});var o=a(96913);const l={class:"info"},s={key:0,class:"mr-2"};function n(e,t,a,n,i,r){const d=(0,o.resolveComponent)("dx-scroll-view"),c=(0,o.resolveComponent)("dx-popup");return(0,o.openBlock)(),(0,o.createElementBlock)("div",l,[(0,o.createElementVNode)("div",{onClick:t[0]||(t[0]=(...e)=>r.open&&r.open(...e)),id:"info-popup-open",name:"info-popup-open","aria-label":"open info popup",class:"button-wrapper"},[a.message?((0,o.openBlock)(),(0,o.createElementBlock)("span",s,(0,o.toDisplayString)(a.message),1)):(0,o.createCommentVNode)("",!0),t[2]||(t[2]=(0,o.createElementVNode)("svg",{class:"fas fa-question-circle"},null,-1))]),(0,o.createVNode)(c,{height:r.computeHeight,width:r.computeWidth,title:a.title,visible:i.popupOpen,"onUpdate:visible":t[1]||(t[1]=e=>i.popupOpen=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,null,{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(e.$slots,"default",{},void 0,!0)],void 0,!0),_:3})],void 0,!0),_:3},8,["height","width","title","visible"])])}var i=a(679),r=a(7628),d={components:{DxPopup:i.jF,DxScrollView:r.$},props:{title:{type:String,default:""},height:Number,width:Number,message:String},data(){return{popupOpen:!1}},computed:{computeHeight(){return this.height?this.gPopupHeight(this.height):null},computeWidth(){return this.width?this.gPopupWidth(this.width):null}},methods:{open(){this.popupOpen=this.toggle(this.popupOpen)}}},c=a(66262);const p=(0,c.A)(d,[["render",n],["__scopeId","data-v-1877ee54"]]);var u=p},30649:function(e,t,a){a.r(t),a.d(t,{default:function(){return Wa}});var o=a(96913);const l={class:"card h-100"};function s(e,t,a,s,n,i){const r=(0,o.resolveComponent)("threat-intel-panel");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{id:"asset-inventory",class:"p-4",style:(0,o.normalizeStyle)({height:i.getLowerContentHeight})},[(0,o.createElementVNode)("div",l,[(0,o.createVNode)(r)])],4)}const n={ref:"assetInventoryPanel",id:"asset-inventory-panel"},i={ref:"topContent",id:"top-content",class:"row no-pad text-left pb-2"},r={class:"col-5 pb-2 align-self-center"},d={class:"col"},c={class:"d-flex justify-content-end"},p={class:"col-6 align-self-right"}
1,u={class:"col-04 text-right align-self-center"},m={key:1,id:"bottom-content"},h={key:0,id:"assets-wrapper"},V={key:1,class:"p-4"},g={key:2,class:"p-4"};function N(e,t,a,l,s,N){const _=(0,o.resolveComponent)("DxTextBox"),v=(0,o.resolveComponent)("import-assets"),f=(0,o.resolveComponent)("add-asset-button"),E=(0,o.resolveComponent)("preloader"),y=(0,o.resolveComponent)("asset"),x=(0,o.resolveComponent)("dx-scroll-view");return(0,o.openBlock)(),(0,o.createElementBlock)("div",n,[(0,o.createElementVNode)("div",i,[(0,o.createElementVNode)("div",r,[(0,o.createElementVNode)("h1",null,[t[0]||(t[0]=(0,o.createElementVNode)("i",{class:"fas fa-fingerprint mr-2"},null,-1)),(0,o.createTextVNode)((0,o.toDisplayString)(N.getTitle),1)])]),(0,o.createElementVNode)("div",d,[(0,o.createElementVNode)("div",c,[t[1]||(t[1]=(0,o.createElementVNode)("span",{class:"align-self-center"},"Search: ",-1)),(0,o.createElementVNode)("div",p,[(0,o.createVNode)(_,{placeholder:"Search...","input-attr":{name:"search-text",id:"search-text","aria-label":"enter search-text"},mode:"search","value-change-event":"keyup",onValueChanged:N.search},null,8,["onValueChanged"])])])]),(0,o.createElementVNode)("div",null,[(0,o.createVNode)(v,{onUp
1date:N.init},null,8,["onUpdate"])]),(0,o.createElementVNode)("div",u,[(0,o.createVNode)(f,{class:"d-inline-block",onUpdate:N.init},null,8,["onUpdate"])])],512),s.loading?((0,o.openBlock)(),(0,o.createBlock)(E,{key:0,size:.8})):(0,o.createCommentVNode)("",!0),s.loading?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",m,[(0,o.createVNode)(x,{onInitialized:N.saveScrollViewInstance,ref:"customerScrollView","scroll-by-content":!0,"scroll-by-thumb":!0,height:N.computeHeight,onReachBottom:N.getNext},{default:(0,o.withCtx)(()=>[s.assets.length?((0,o.openBlock)(),(0,o.createElementBlock)("div",h,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(s.assets,(e,t)=>((0,o.openBlock)(),(0,o.createBlock)(y,{key:t,asset:e,onUpdate:N.init},null,8,["asset","onUpdate"]))),128))])):s.searchString?((0,o.openBlock)(),(0,o.createElementBlock)("div",g,"No results matching query")):((0,o.openBlock)(),(0,o.createElementBlock)("div",V,[t[2]||(t[2]=(0,o.createTextVNode)(" You have not configured any assets yet.",-1)),t[3]||(t[3]=(0,o.createElementVNode)("br",null,null,-1)),(0,o.createVNode)(f,{class:"d-inline-block",isLink:!0,onUpdate:N.init},null,8,["onUpdate"]),t[4]||(t[4]=(0,o.createTextVNode)(".",-1)),t[5]||(t[5]=(0,o.createElementVNode)("br",null,null,-1)),t[6]||(t[6]=(0,o.createElementVNode)("br",null,null,-1)),t[7]||(t[7]=(0,o.createTextVNode)(" You may also click the blue plus sign ( ",-1)),t[8]||(t[8]=(0,o.createElementVNode)("span",{id:"add-target-button",class:"fas fa-plus-square blue"},null,-1)),t[9]||(t[9]=(0,o.createTextVNode)(" ), ",-1)),t[10]||(t[10]=(0,o.createElementVNode)("br",null,null,-1)),t[11]||(t[11]=(0,o.createTextVNode)(" in the upper right corner of this page,",-1)),t[12]||(t[12]=(0,o.createElementVNode)("br",null,null,-1)),t[13]||(t[13]=(0,o.createTextVNode)(" at any time to add a new asset. ",-1))]))],void 0,!0),_:1},8,["onInitialized","height","onReachBottom"])]))],512)}a(44114);const _={id:"add-CSV"},v={key:0},f={key:1},E={id:"file-input",class:"file-input-wrapper"},y={class:"row no-pad"},x={class:"col"},b={key:0,class:"error mt-1"},w={class:"col text-right"},k={id:"help-popup"},C={class:"row pb-2 px-3"},B={class:"lang-ul"};function A(e,t,a,l,s,n){const i=(0,o.resolveComponent)("preloader"),r=(0,o.resolveComponent)("infos"),d=(0,o.resolveComponent)("dx-scroll-view"),c=(0,o.resolveComponent)("DxPopup");return(0,o.openBlock)(),(0,o.createElementBlock)("div",_,[a.isLink?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:0,id:"add-CSV-button",name:"add-csv-btn","aria-label":"import csv",role:"button",onClick:t[0]||(t[0]=e=>s.popupVisible=!s.popupVisible),class:"import-csv-button","data-toggle":"tooltip",title:"Import CSV"},"CSV")),s.popupVisible?((0,o.openBlock)(),(0,o.createBlock)(c,{key:1,visible:s.popupVisible,"onUpdate:visible":t[3]||(t[3]=e=>s.popupVisible=e),"drag-enabled":!1,hideOnOutsideClick:!0,"show-title":!0,height:e.gPopupHeight(250),width:e.gPopupWidth(410),title:"Import Assets CSV"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,null,{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",null,[s.loading?((0,o.openBlock)(),(0,o.createElementBlock)("div",v,[(0,o.createVNode)(i,{size:.8,padding:1,message:"Importing..."})])):(0,o.createCommentVNode)("",!0),s.loading?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",f,[(0,o.createElementVNode)("div",E,[(0,o.createElementVNode)("div",y,[(0,o.createElementVNode)("div",x,[t[5]||(t[5]=(0,o.createElementVNode)("label",null,"Select File: ",-1)),(0,o.createElementVNode)("input",{type:"file",class:"file",ref:"file",onChange:t[1]||(t[1]=e=>n.selectFile()),name:"import-assets",id:"import-assets","aria-label":"import assets"},null,544),s.error?((0,o.openBlock)(),(0,o.createElementBlock)("div",b,(0,o.toDisplayString)(s.error),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",w,[(0,o.createVNode)(r,{height:e.gPopupHeight(600),width:e.gPopupWidth(1e3),"drag-enabled":!1,title:"Assets Import CSV help",class:"blue",message:"Help"},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",k,[t[7]||(t[7]=(0,o.createElementVNode)("div",{class:"row px-2"},[(0,o.createElementVNode)("h2",{class:"px-2"},[(0,o.createTextVNode)(" CSV template: "),(0,o.createElementVNode)("a",{download:"Assets CSV template.csv",href:"./Assets-CSV-template.csv"}," download ")])],-1)),t[8]||(t[8]=(0,o.createElementVNode)("hr",null,null,-1)),t[9]||(t[9]=(0,o.createElementVNode)("div",{class:"row pb-2 px-3"},[(0,o.createElementVNode)("h2",null,"Required headers:"),(0,o.createElementVNode)("b",{class:"px-1"},[(0,o.createTextVNode)(" name"),(0,o.createElementVNode)("span",{id:"obligatory"},"*"),(0,o.createTextVNode)(", type"),(0,o.createElementVNode)("span",{id:"obligatory"},"*"),(0,o.createTextVNode)(", asset_status"),(0,o.createElementVNode)("span",{id:"obligatory"},"*"),(0,o.createTextVNode)(", vendor"),(0,o.createElementVNode)("span",{id:"obligatory"},"*"),(0,o.createTextVNode)(", product"),(0,o.createElementVNode)("span",{id:"obligatory"},"*"),(0,o.createTextVNode)(", version"),(0,o.createElementVNode)("span",{id:"obligatory"}
1,"*")])],-1)),t[10]||(t[10]=(0,o.createElementVNode)("div",{class:"row pb-2 px-3"},[(0,o.createElementVNode)("h2",null,"Valid asset types:"),(0,o.createElementVNode)("b",{class:"px-1"},'"Application", "Hardware", "Cloud Resource", "Operating System"')],-1)),t[11]||(t[11]=(0,o.createElementVNode)("div",{class:"row pb-2 px-3"},[(0,o.createElementVNode)("h2",null,"Asset status options:"),(0,o.createElementVNode)("b",{class:"px-1"},'"Not Ready", "Available", "Active", "Broken", "Decommissioned", "Inactive", "Maintenance/Repair", "Missing"')],-1)),t[12]||(t[12]=(0,o.createElementVNode)("div",{class:"row pb-2 px-3"},[(0,o.createElementVNode)("h2",null,"Dates:"),(0,o.createElementVNode)("b",{class:"px-1"},[(0,o.createTextVNode)("format must be YYYY-mm-dd "),(0,o.createElementVNode)("span",{class:"font-weight-normal"},"(Eg. 2022-12-31) "),(0,o.createTextVNode)("or YYYY/mm/dd "),(0,o.createElementVNode)("span",{class:"font-weight-normal"},"(Eg. 2021/11/19)")])],-1)),(0,o.createElementVNode)("div",C,[t[6]||(t[6]=(0,o.createElementVNode)("h2",{class:"d-block w-100"},"Valid Languages:",-1)),(0,o.createElementVNode)("ul",B,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(n.vaildLanguages,(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{key:t},(0,o.toDisplayString)(e.name),1))),128))])])])],void 0,!0),_:1},8,["height","width"])])])]),(0,o.createElementVNode)("div",{id:"submit-assets",name:"submit-assets","aria-label":"submit assets",role:"button",class:"submitAssets blu-button",onClick:t[2]||(t[2]=(...e)=>n.submitAsset&&n.submitAsset(...e))}," Submit ")]))])],void 0,!0),_:1})],void 0,!0),_:1},8,["visible","height","width"])):(0,o.createCommentVNode)("",!0),(0,o.createVNode)(c,{visible:s.errorPopupOpen,"onUpdate:visible":t[4]||(t[4]=e=>s.errorPopupOpen=e),"drag-enabled":!1,hideOnOutsideClick:!0,"show-title":!0,height:e.gPopupHeight(600),width:e.gPopupWidth(500),title:"File Errors"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,null,{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",null,[t[13]||(t[13]=(0,o.createElementVNode)("h1",{class:"mb-4"},[(0,o.createElementVNode)("span",{class:"error"},"File Error!"),(0,o.createTextVNode)(" The file you are trying to upload has the following errors: ")],-1)),(0,o.createElementVNode)("ul",null,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(s.fileErrors,(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{class:"error mb-2",key:t},(0,o.toDisplayString)(e),1))),128))])])],void 0,!0),_:1})],void 0,!0),_:1},8,["visible","height","width"])])}a(74423),a(18111),a(20116),a(13579),a(64979);var D=a(92259),S=a.n(D),L=a(38317),T=a(72279),P=a(679),I=a(66028),O=JSON.parse('{"fs":["text/csv","text/plain","application/vnd.ms-excel","application/vnd.msexcel","application/excel","text/x-csv","application/csv","application/x-csv","text/comma-separated-names","text/x-comma-separated-names","text/tab-separated-names"],"Tj":["name","tag","vendor","product","version","model","type","update","edition","language","description","owner_department","owner_title","asset_loc_location_name","asset_loc_country_code","asset_loc_locality","asset_loc_postal_code","asset_loc_route","asset_loc_state_code","asset_loc_street_number","purchase_date","cost","end_of_life","order_num","supplier","supplier_loc_location_name","supplier_loc_country_code","supplier_loc_locality","supplier_loc_postal_code","supplier_loc_route","supplier_loc_state_code","supplier_loc_street_number","asset_status","warranty_start_date","warranty_duration","warranty_expiration","last_audit","next_audit"],"R":["Application","Hardware","Cloud Resource","Operating System"],"pt":["purchase_date","end_of_life","warranty_start_date","warranty_expiration","last_audit","next_audit"],"xJ":["Not Ready","Available","Active","Broken","Decommissioned","Inactive","Maintenance/Repair","Missing"],"eo":[{"id":"AF","name":"Afrikaans"},{"id":"SQ","name":"Albanian"},{"id":"AR","name":"Arabic"},{"id":"HY","name":"Armenian"},{"id":"EU","name":"Basque"},{"id":"BN","name":"Bengali"},{"id":"BG","name":"Bulgarian"},{"id":"CA","name":"Catalan"},{"id":"KM","name":"Cambodian"},{"id":"ZH","name":"Chinese (Mandarin)"},{"id":"HR","name":"Croatian"},{"id":"CS","name":"Czech"},{"id":"DA","name":"Danish"},{"id":"NL","name":"Dutch"},{"id":"EN","name":"English"},{"id":"ET","name":"Estonian"},{"id":"FJ","name":"Fijian"},{"id":"FI","name":"Finnish"},{"id":"FR","name":"French"},{"id":"KA","name":"Georgian"},{"id":"DE","name":"German"},{"id":"EL","name":"Greek"},{"id":"GU","name":"Gujarati"}
1,{"id":"HE","name":"Hebrew"},{"id":"HI","name":"Hindi"},{"id":"HU","name":"Hungarian"},{"id":"IS","name":"Icelandic"},{"id":"ID","name":"Indonesian"},{"id":"GA","name":"Irish"},{"id":"IT","name":"Italian"},{"id":"JA","name":"Japanese"},{"id":"JW","name":"Javanese"},{"id":"KO","name":"Korean"},{"id":"LA","name":"Latin"},{"id":"LV","name":"Latvian"},{"id":"LT","name":"Lithuanian"},{"id":"MK","name":"Macedonian"},{"id":"MS","name":"Malay"},{"id":"ML","name":"Malayalam"},{"id":"MT","name":"Maltese"},{"id":"MI","name":"Maori"},{"id":"MR","name":"Marathi"},{"id":"MN","name":"Mongolian"},{"id":"NE","name":"Nepali"},{"id":"NO","name":"Norwegian"},{"id":"FA","name":"Persian"},{"id":"PL","name":"Polish"},{"id":"PT","name":"Portuguese"},{"id":"PA","name":"Punjabi"},{"id":"QU","name":"Quechua"},{"id":"RO","name":"Romanian"},{"id":"RU","name":"Russian"},{"id":"SM","name":"Samoan"},{"id":"SR","name":"Serbian"},{"id":"SK","name":"Slovak"},{"id":"SL","name":"Slovenian"},{"id":"ES","name":"Spanish"},{"id":"SW","name":"Swahili"},{"id":"SV","name":"Swedish "},{"id":"TA","name":"Tamil"},{"id":"TT","name":"Tatar"},{"id":"TE","name":"Telugu"},{"id":"TH","name":"Thai"},{"id":"BO","name":"Tibetan"},{"id":"TO","name":"Tongan"},{"id":"TR","name":"Turkish"},{"id":"UK","name":"Ukrainian"},{"id":"UR","name":"Urdu"},{"id":"UZ","name":"Uzbek"},{"id":"VI","name":"Vietnamese"},{"id":"CY","name":"Welsh"},{"id":"XH","name":"Xhosa"}]}'),U=a(7628),$=a(18017),F={props:{isLink:Boolean},components:{preloader:T.A,DxPopup:P.jF,infos:I.A,DxScrollView:U.$},data(){return{file:null,fileIsValid:!0,fileErrors:[],errorPopupOpen:!1,error:"",data:null,name:"",loading:!0,popupVisible:!1}},computed:{vaildLanguages(){return O.eo}},methods:{init(){this.file=null,this.fileIsValid=!0,this.error="",this.loading=!1},async submitAsset(){if(this.postErrors=null,this.file||(this.error="Please select a file."),this.file&&this.fileIsValid){this.loading=!0;for(const e of this.data)await L.A.call({action:"post",endpoint:"threat_intel",params:e}).catch(e=>{console.error(e),this.catchError("Error uploading threat intel assets")});this.$emit("update"),this.popupVisible=!1,this.loading=!1}},fixKeys(e){return e.trim().replace(" ","_")},validateHeaders(e){for(const t of Object.keys(e[0])){const e=this.fixKeys(t);if(!O.Tj.includes(e))return this.fileErrors.push(`Invalid header in csv file! "${t}"`),!1}return!0},idiotProofData(e){if(this.fileErrors=[],e.length){if(this.validateHeaders(e)){for(const t in e){const a=parseInt(t)+2;for(const o of Object.keys(e[t])){const l=this.fixKeys(o);e[t][l]=e[t][o],l!==o&&delete e[t][o];const s=["asset_status","asset_name","vendor","type","product"];if(s.includes(o)&&!e[t][o]&&this.fileErrors.push(`Row ${a}, ${o} is required`),e[t][o]){if(O.pt.includes(o)){const l=/^\d{4}[/-]\d{2}[/-]\d{2}$/,s=Date.parse(e[t][o]);(e[t][o]&&null===e[t][o].match(l)||isNaN(s))&&this.fileErrors.push(`Row ${a}, Column: ${o}: Invalid date "${e[t][o]}" ( Use YYYY-MM-DD format instead ).`)}o.includes("supplier_loc_")&&(e[t].supplier_locations=this.fixSupplierLocations(e[t])),o.includes("asset_loc_")&&(e[t].asset_locations=this.fixAssetLocations(e[t])),"type"!==o||this.validateType(e[t][o])||this.fileErrors.push(`Row ${a}: Invalid type "${e[t][o]}" ( Allowed: "Application", "Hardware", "Cloud Resource", "Operating System" ).`),"asset_status"!==o||this.validateStatus(e[t][o])||this.fileErrors.push(`Row ${a}: Invalid status "${e[t].asset_status}" ( Allowed: "Not Ready", "Available", "Active", "Broken", "Decommissioned", "Inactive", "Maintenance/Repair", "Missing" ).`),"language"===o&&(this.validateLanguage(e[t][o])?e[t][o]=this.translateLanguage((0,$.zg)(e[t][o],["capitalize"])):this.fileErrors.push(`Row ${a}: Invalid language ( see help for list of valid languages )`)),"cost"!==o&&"warranty_duration"!==o||isNaN(e[t][o])&&this.fileErrors.push(`Row ${a}: ${o} is not a number`)}else"cost"!==o&&"warranty_duration"!==o||(e[t][o]=0),O.pt.includes(o)&&(e[t][o]=null)}e[t].supplier_locations||(e[t]["supplier_locations"]=[]),e[t].asset_locations||(e[t]["asset_locations"]=[])}return e}}else this.fileErrors.push("File is empty!")},async selectFile(){if(this.error="",this.file=this.$refs.file.files[0],this.fileIsValid=this.validateFile(this.file),this.fileIsValid)try{this.data=await this.read(this.file).catch(e=>{console.error(e),this.catchError("Error reading file. Please try again.")});const e=await S()({trim:!0,flatKeys:!0}).fromString(this.data).then(e=>e);if(this.data=this.idiotProofData(e),this.fileErrors.length)throw this.errorPopupOpen=!0,"File errors detected"}catch(e){console.error(e),this.catchError("Error reading file. Please try again."),this.file=null}else this.error="Invalid file type. Please select a valid .csv file."},read(e){const t=new FileReader;return new Promise((a,o)=>{t.onerror=()=>{t.abort(),o(new DOMException("Problem parsing input file."))},t.onload=()=>{a(t.result)},t.readAsText(e)})},validateFile(e){return!!O.fs.includes(e.type)},validateType(e){return!!O.R.includes(e)},validateStatus(e){return!!O.xJ.includes(e)},validateLanguage(e){return!!O.eo.some(t=>t.name===e)},translateLanguage(e){return O.eo.find(t=>t.name===e).id},fixSupplierLocations(e){return[{location_name:e.supplier_loc_location_name,country_code:e.supplier_loc_country_code,locality:e.supplier_loc_locality,postal_code:e.supplier_loc_postal_code,route:e.supplier_loc_route,state_code:e.supplier_loc_state_code,street_number:e.supplier_loc_street_number}]},fixAssetLocations(e){return[{location_name:e.asset_loc_location_name,country_code:e.asset_loc_country_code,locality:e.asset_loc_locality,postal_code:e.asset_loc_postal_code,route:e.asset_loc_route,state_code:e.asset_loc_state_code,street_number:e.asset_loc_street_number}]}},created(){this.init()}},M=a(66262);const G=(0,M.A)(F,[["render",A],["__scopeId","data-v-57b8fb89"]]);var R=G;const H={class:"asset text-left p-2"},q={key:1,class:"row no-pad"},j={class:"col align-self-center"},z={class:"pointer"},W={key:0,class:"intel-alert"},Y={class:"pointer"},J={class:"col-2 text-right crud-icons"},K={key:0,class:"px-3"},Z={class:"row no-pad asset-detail px-2 py-2"},Q={class:"col pr-3"},X={class:"col px-2"},ee={class:"col pl-2"},te={key:1},ae={class:"row no-pad asset-detail px-2 py-3"},oe={class:"col pr-3"},le={class:"col pl-2"},se={key:1},ne={class:"col pr-3"},ie={key:0,class:"px-2 pb-3"},re={key:0,class:"px-3"},de={key:0,class:"feed-results my-2"},ce={key:0,class:"pagination"},pe=["id","name","aria-label","onClick"],ue={key:1,class:"px-2 my-2"},me={id:"consent-modal"},he={class:"consent-buttons"};function Ve(e,t,a,l,s,n){const i=(0,o.resolveComponent)("preloader"),r=(0,o.resolveComponent)("edit-asset-button"),d=(0,o.resolveComponent)("collapse-transition"),c=(0,o.resolveComponent)("DxScrollView"),p=(0,o.resolveComponent)("threat-feed-panel"),u=(0,o.resolveComponent)("dx-popup");return(0,o.openBlock)(),(0,o.createElementBlock)("div",H,[s.loading?((0,o.openBlock)(),(0,o.createBlock)(i,{key:0,size:.45,padding:.3,message:"none"})):((0,o.openBlock)(),(0,o.createElementBlock)("div",q,[(0,o.createElementVNode)("div",j,[(0,o.createElementVNode)("p",z,[(0,o.createElementVNode)("span",{id:"toggle-info-open",name:"toggle-info-open","aria-label":"toggle info open",role:"button",onClick:t[0]||(t[0]=e=>s.infoOpen=!s.infoOpen)},[(0,o.withDirectives)((0,o.createElementVNode)("span",null,[...t[9]||(t[9]=[(0,o.createElementVNode)("svg",{class:"mx-2 fas fa-plus-square toggle blue"},null,-1)])],512),[[o.vShow,!s.threatFeedOpen&&!s.infoOpen]]),(0,o.withDirectives)((0,o.createElementVNode)("span",null,[...t[10]||(t[10]=[(0,o.createElementVNode)("svg",{class:"mx-2 fas fa-minus-square toggle blue"},null,-1)])],512),[[o.vShow,s.threatFeedOpen||s.infoOpen]]),(0,o.createElementVNode)("strong",null,(0,o.toDisplayString)(a.asset.name),1),s.threatAnalysis.count?((0,o.openBlock)(),(0,o.createElementBlock)("span",W,(0,o.toDisplayString)(s.threatAnalysis.count)+" alerts ",1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("span",{class:"p-2 ml-2",id:"toggle-info",name:"toggle-info","aria-label":"toggle info",role:"button",onClick:t[1]||(t[1]=e=>s.infoOpen=!s.infoOpen)},[(0,o.createElementVNode)("strong",Y,[t[11]||(t[11]=(0,o.createElementVNode)("i",{class:"fas fa-info-circle blue"},null,-1)),t[12]||(t[12]=(0,o.createTextVNode)(" Asset Info ",-1)),(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(["fas",{"fa-caret-right":!s.infoOpen,"fas fa-caret-down":s.infoOpen}])},null,2)])])])]),(0,o.createElementVNode)("div",J,[(0,o.createVNode)(r,{asset:a.asset,class:"d-inline-block",onUpdate:t[2]||(t[2]=t=>e.$emit("update"))},null,8,["asset"]),(0,o.createElementVNode)("div",{class:"icon-box tool-button",id:"delete-consent",name:"delete-consent","aria-label":"delete consent",role:"button",onClick:t[3]||(t[3]=e=>s.deleteConsent=!s.deleteConsent)},[...t[13]||(t[13]=[(0,o.createElementVNode)("i",{style:{cursor:"pointer"},class:"error fa fa-times-circle pointer","data-toggle":"tooltip",title:"Delete Customer"},null,-1),(0,o.createElementVNode)("label",null,"Delete",-1)])])])])),(0,o.createVNode)(d,null,{default:(0,o.withCtx)(()=>[s.infoOpen?((0,o.openBlock)(),(0,o.createElementBlock)("div",K,[(0,o.createElementVNode)("div",Z,[(0,o.createElementVNode)("div",Q,[t[14]||(t[14]=(0,o.createElementVNode)("h2",{class:"small"},"Asset Primary Details",-1)),t[15]||(t[15]=(0,o.createElementVNode)("hr",{class:"small-hr"},null,-1)),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(n.fields(["name","asset_status","vendor","type","product"],a.asset),(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:t},[(0,o.createElementVNode)("strong",null,(0,o.toDisplayString)(e.label)+":",1),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.value),1)]))),128))]),(0,o.createElementVNode)("div",X,[t[16]||(t[16]=(0,o.createElementVNode)("h2",{class:"small"},"Asset Additional",-1)),t[17]||(t[17]=(0,o.createElementVNode)("hr",{class:"small-hr"},null,-1)),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(n.fields(["model","version","edition","update","language","tag"],a.asset),(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:t},[(0,o.createElementVNode)("strong",null,(0,o.toDisplayString)(e.label)+":",1),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.value),1)]))),128))]),(0,o.createElementVNode)("div",ee,[t[18]||(t[18]=(0,o.createElementVNode)("h2",{class:"small"},"Asset Location",-1)),t[19]||(t[19]=(0,o.createElementVNode)("hr",{class:"small-hr"},null,-1)),a.asset.asset_locations&&a.asset.asset_locations.length?((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:0},(0,o.renderList)(n.fields(["location_name","street_number","route","locality","state_code","postal_code","country_code"],a.asset.asset_locations[0]),(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:t},[(0,o.createElementVNode)("strong",null,(0,o.toDisplayString)(e.label)+":",1),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.value),1)]))),128)):((0,o.openBlock)(),(0,o.createElementBlock)("span",te,"Not Provided"))])]),(0,o.createElementVNode)("div",ae,[(0,o.createElementVNode)("div",oe,[t[20]||(t[20]=(0,o.createElementVNode)("h2",{class:"small"},"Purchase Details",-1)),t[21]||(t[21]=(0,o.createElementVNode)("hr",{class:"small-hr"},null,-1)),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(n.fields(["owner_title","owner_department","cost","purchase_date","order_num","supplier"],a.asset),(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:t},[(0,o.createElementVNode)("strong",null,(0,o.toDisplayString)(e.label)+":",1),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.value),1)]))),128))]),(0,o.createElementVNode)("div",le,[t[22]||(t[22]=(0,o.createElementVNode)("h2",{class:"small"},"Supplier Location",-1)),t[23]||(t[23]=(0,o.createElementVNode)("hr",{class:"small-hr"},null,-1)),a.asset.supplier_locations&&a.asset.supplier_locations.length?((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:0},(0,o.renderList)(n.fields(["location_name","street_number","route","locality","state_code","postal_code","country_code"],a.asset.supplier_locations[0]),(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:t},[(0,o.createElementVNode)("strong",null,(0,o.toDisplayString)(e.label)+":",1),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.value),1)]))),128)):((0,o.openBlock)(),(0,o.createElementBlock)("span",se,"Not Provided"))]),(0,o.createElementVNode)("div",ne,[t[24]||(t[24]=(0,o.createElementVNode)("h2",{class:"small"},"Warranty Details",-1)),t[25]||(t[25]=(0,o.createElementVNode)("hr",{class:"small-hr"},null,-1)),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(n.fields(["warranty_start_date","
1warranty_duration","warranty_expiration","end_of_life","last_audit","purchase_date"],a.asset),(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:t},[(0,o.createElementVNode)("strong",null,(0,o.toDisplayString)(e.label)+":",1),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.value),1)]))),128))])]),a.asset.description?((0,o.openBlock)(),(0,o.createElementBlock)("div",ie,[t[27]||(t[27]=(0,o.createElementVNode)("h2",{class:"small"},"Description",-1)),t[28]||(t[28]=(0,o.createElementVNode)("hr",{class:"small-hr"},null,-1)),(0,o.createElementVNode)("span",null,[t[26]||(t[26]=(0,o.createElementVNode)("strong",null,"Description:",-1)),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(a.asset.description),1)])])):(0,o.createCommentVNode)("",!0)])):(0,o.createCommentVNode)("",!0)],void 0,!0),_:1}),(0,o.createVNode)(d,null,{default:(0,o.withCtx)(()=>[s.threatFeedOpen?((0,o.openBlock)(),(0,o.createElementBlock)("div",re,[t[32]||(t[32]=(0,o.createElementVNode)("h2",{class:"small"},"Threat Feed Alerts",-1)),t[33]||(t[33]=(0,o.createElementVNode)("hr",{class:"small-hr"},null,-1)),s.threatAnalysis.feed_results&&s.threatAnalysis.feed_results.length?((0,o.openBlock)(),(0,o.createElementBlock)("div",de,[(0,o.createVNode)(c,{direction:"horizontal"},{default:(0,o.withCtx)(()=>[s.threatAnalysis.pages&&s.threatAnalysis.pages.length>1?((0,o.openBlock)(),(0,o.createElementBlock)("div",ce,[s.threatAnalysis.previous?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,id:"get-page",name:"get-page","aria-label":"get-page",role:"button",onClick:t[4]||(t[4]=e=>n.getPage(s.threatAnalysis.previous,s.current_page-1)),class:"mr-1 blu-button"},[...t[29]||(t[29]=[(0,o.createElementVNode)("i",{class:"fas fa-angle-double-left"},null,-1)])])):(0,o.createCommentVNode)("",!0),s.threatAnalysis.pages?((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:1},(0,o.renderList)(s.threatAnalysis.pages,(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["blu-button mr-1",{current:s.current_page==t+1}]),key:t,id:"get-page-"+t,name:"get-page-"+t,"aria-label":"get page "+t,role:"button",onClick:a=>n.getPage(e,t+1)},(0,o.toDisplayString)(t+1),11,pe))),128)):(0,o.createCommentVNode)("",!0),s.threatAnalysis.next?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:2,id:"get-page",name:"get-page","aria-label":"get page",role:"button",onClick:t[5]||(t[5]=e=>n.getPage(s.threatAnalysis.next,s.current_page+1)),class:"blu-button"},[...t[30]||(t[30]=[(0,o.createElementVNode)("i",{class:"fas fa-angle-double-right"},null,-1)])])):(0,o.createCommentVNode)("",!0)])):(0,o.createCommentVNode)("",!0)],void 0,!0),_:1}),(0,o.createVNode)(o.Transition,{name:"fade",mode:"out-in"},{default:(0,o.withCtx)(()=>[s.updatingPage?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(p,{key:0,asset:s.threatAnalysis},null,8,["asset"]))],void 0,!0),_:1})])):((0,o.openBlock)(),(0,o.createElementBlock)("div",ue,[...t[31]||(t[31]=[(0,o.createElementVNode)("p",null,[(0,o.createElementVNode)("strong",null,"No alerts found")],-1)])]))])):(0,o.createCommentVNode)("",!0)],void 0,!0),_:1}),s.deleteConsent?((0,o.openBlock)(),(0,o.createBlock)(u,{key:2,visible:s.deleteConsent,"onUpdate:visible":t[8]||(t[8]=e=>s.deleteConsent=e),"drag-enabled":!1,hideOnOutsideClick:!0,"show-title":!1,width:"450",height:"200"},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",me,[(0,o.createElementVNode)("h6",null,"Are you sure you want to delete "+(0,o.toDisplayString)(a.asset.name)+"?",1),(0,o.createElementVNode)("div",he,[(0,o.createElementVNode)("div",{id:"delete-asset",name:"delete-asset","aria-label":"delete asset",role:"button",onClick:t[6]||(t[6]=e=>n.deleteItem()),class:"blank-button"}," Delete "),(0,o.createElementVNode)("div",{id:"cancel-asset-del",name:"cancel-asset-del","aria-label":"cancel asset delete",role:"button",onClick:t[7]||(t[7]=e=>s.deleteConsent=!1),class:"blank-button"}," Cancel ")])])],void 0,!0),_:1},8,["visible"])):(0,o.createCommentVNode)("",!0)])}const ge={class:"threat-feed-panel p-2"},Ne=["href"];function _e(e,t,a,l,s,n){return(0,o.openBlock)(),(0,o.createElementBlock)("div",ge,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.asset.feed_results,(e,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("p",{class:"feed-item py-1",key:a},[(0,o.createTextVNode)((0,o.toDisplayString)(n.prettyPublishedDate)+" ",1),(0,o.createElementVNode)("a",{target:"_blank",class:"d-block",href:e.Link},[(0,o.createTextVNode)((0,o.toDisplayString)(e.Name)+" ",1),t[0]||(t[0]=(0,o.createElementVNode)("i",{class:"fas fa-external-link-alt"},null,-1))],8,Ne)]))),128))])}var ve={props:{asset:Object},computed:{prettyPublishedDate(){return(0,$.XF)(this.threat.PubDate)}}};const fe=(0,M.A)(ve,[["render",_e],["__scopeId","data-v-8d8cf6fe"]]
1);var Ee=fe;const ye={class:"edit-asset-button"};function xe(e,t,a,l,s,n){const i=(0,o.resolveComponent)("add-edit-asset"),r=(0,o.resolveComponent)("dx-scroll-view"),d=(0,o.resolveComponent)("DxPopup");return(0,o.openBlock)(),(0,o.createElementBlock)("div",ye,[(0,o.createElementVNode)("div",{class:"icon-box",id:"toggle-popup",name:"toggle-popup","aria-label":"toggle-popup",role:"button",onClick:t[0]||(t[0]=e=>s.popupVisible=!s.popupVisible)},[...t[4]||(t[4]=[(0,o.createElementVNode)("i",{"data-toggle":"tooltip",title:"Edit",id:"edit-btn-4",class:"fas fa-edit edit-icon"},null,-1),(0,o.createElementVNode)("label",null,"Edit",-1)])]),s.popupVisible?((0,o.openBlock)(),(0,o.createBlock)(d,{key:0,onHiding:t[2]||(t[2]=t=>e.$emit("update")),visible:s.popupVisible,"onUpdate:visible":t[3]||(t[3]=e=>s.popupVisible=e),"drag-enabled":!1,hideOnOutsideClick:!1,"show-title":!0,title:"Add Asset"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(r,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(i,{existingAsset:a.asset,onUpdate:t[1]||(t[1]=t=>e.$emit("update"))},null,8,["existingAsset"])],void 0,!0),_:1})],void 0,!0),_:1},8,["visible"])):(0,o.createCommentVNode)("",!0)])}const be={id:"add-edit-asset"},we={key:1,class:"asset-fields"},ke={class:"row no-pad"},Ce={class:"col-6 px-2"},Be={class:"asset-field pb-2"},Ae={class:"col-3 px-2"},De={class:"asset-field pb-2"},Se={class:"row no-pad"},Le={class:"col-3 px-2"},Te={class:"asset-field pb-2"},Pe={class:"col-3 px-2"},Ie={class:"asset-field pb-2"},Oe={class:"col-3 px-2"},Ue={class:"asset-field pb-2"},$e={class:"row pt-4"},Fe={class:"col-3"},Me={key:0},Ge={class:"row no-pad"},Re={class:"col-2 px-2"},He={class:"asset-field pb-2"},qe={class:"col-2 px-2"},je={class:"asset-field pb-2"},ze={class:"col-2 px-2 pt-1"},We={class:"asset-field pb-2"},Ye={class:"col-2 px-2 pt-1"},Je={class:"asset-field pb-2"},Ke={class:"col-2 px-2 pt-1"},Ze={class:"asset-field pb-2"},Qe={class:"col-2 px-2 pt-1"},Xe={class:"asset-field pb-2"},et={class:"asset-field px-2 pt-2"},tt={class:"row pt-4"},at={class:"col-3"},ot={key:0,class:"row no-pad pt-2"},lt={class:"col-12 px-2"},st={class:"asset-field pb-2"},nt={class:"row pt-3"},it={class:"col-3"},rt={key:0,class:"row no-pad"},dt={class:"col-2 px-2"},ct={class:"asset-field pb-2"},pt={class:"col-2 px-2"},ut={class:"asset-field pb-2"},mt={class:"col-2 px-2"},ht={class:"asset-field pb-2"},Vt={class:"col-2 px-2"},gt={class:"asset-field pb-2"},Nt={class:"col-2 px-2"},_t={class:"asset-field pb-2"},vt={class:"col-2 px-2"},ft={class:"asset-field pb-2"},Et={class:"row pt-3"},yt={class:"col-3"},xt={key:0,class:"row no-pad pt-2"},bt={class:"col-12 px-2"},wt={class:"asset-field pb-2"},kt={class:"row pt-3"},Ct={class:"col-3"},Bt={key:0,class:"row no-pad pt-2"},At={class:"col-3 px-2"},Dt={class:"asset-field pb-2"},St={class:"col-3 px-2"},Lt={class:"asset-field pb-2"},Tt={class:"col-3 px-2"},Pt={class:"asset-field pb-2"},It={class:"col-3 px-2"},Ot={class:"asset-field pb-2"},Ut={class:"col-6 px-2"},$t={class:"asset-field pb-2"},Ft={class:"col-6 px-2"},Mt={class:"asset-field pb-2"},Gt={class:"pt-3 pr-2 row no-pad"},Rt={class:"col-3"};function Ht(e,t,a,l,s,n){const i=(0,o.resolveComponent)("preloader"),r=(0,o.resolveComponent)("dx-required-rule"),d=(0,o.resolveComponent)("dx-string-length-rule"),c=(0,o.resolveComponent)("dx-validator"),p=(0,o.resolveComponent)("dx-text-box"),u=(0,o.resolveComponent)("DxSelectBox"),m=(0,o.resolveComponent)("dx-text-area"),h=(0,o.resolveComponent)("collapse-transition"),V=(0,o.resolveComponent)("asset-location"),g=(0,o.resolveComponent)("dx-number-box"),N=(0,o.resolveComponent)("DxDateBox"),_=(0,o.resolveComponent)("dx-validation-summary"),v=(0,o.resolveComponent)("dx-validation-group");return(0,o.openBlock)(),(0,o.createElementBlock)("div",be,[s.submitting?((0,o.openBlock)(),(0,o.createBlock)(i,{key:0})):((0,o.openBlock)(),(0,o.createElementBlock)("div",we,[(0,o.createVNode)(v,{ref:"add-asset",id:"assetGroup"},{default:(0,o.withCtx)(()=>[t[67]||(t[67]=(0,o.createElementVNode)("div",{class:"row py-1"},[(0,o.createElementVNode)("div",{class:"col-12"},[(0,o.createElementVNode)("h5",null,"Asset Primary Details")])],-1)),t[68]||(t[68]=(0,o.createElementVNode)("hr",null,null,-1)),(0,o.createElementVNode)("div",ke,[(0,o.createElementVNode)("div",Ce,[(0,o.createElementVNode)("div",Be,[t[37]||(t[37]=(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)(" Asset Name: "),(0,o.createElementVNode)("span",{class:"smaller error required-marker"},[(0,o.createElementVNode)("i",{class:"smaller align-top fas fa-asterisk"})])],-1)),(0,o.createVNode)(p,{id:"name-dx","input-attr":{name:"asset-name",id:"asset-name","aria-label":"enter asset-name"},autocomplete:"off",modelValue:s.asset.name,"onUpdate:modelValue":t[0]||(t[0]=e=>s.asset.name=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(r,{message:"Name is required"}),(0,o.createVNode)(d,{max:255,message:"Please limit asset name to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",Ae,[(0,o.createElementVNode)("div",De,[t[38]||(t[38]=(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)("Asset status: "),(0,o.createElementVNode)("span",{class:"smaller error required-marker"},[(0,o.createElementVNode)("i",{class:"smaller align-top fas fa-asterisk"})])],-1)),(0,o.createVNode)(u,{autocomplete:"off",id:"asset_status_dx","input-attr":{name:"asset_status",id:"asset_status","aria-label":"enter asset_status"},modelValue:s.asset.asset_status,"onUpdate:modelValue":t[1]||(t[1]=e=>s.asset.asset_status=e),items:s.validStatus},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(r,{message:"Status is required"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue","items"])])])]),(0,o.createElementVNode)("div",Se,[(0,o.createElementVNode)("div",Le,[(0,o.createElementVNode)("div",Te,[t[39]||(t[39]=(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)("Vendor:"),(0,o.createElementVNode)("span",{class:"smaller error required-marker"},[(0,o.createElementVNode)("i",{class:"smaller align-top fas fa-asterisk"})])],-1)),(0,o.createVNode)(p,{id:"vendor-dx","input-attr":{name:"vendor",id:"vendor","aria-label":"enter vendor"},autocomplete:"off",modelValue:s.asset.vendor,"onUpdate:modelValue":t[2]||(t[2]=e=>s.asset.vendor=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(r,{message:"Vendor is required"}),(0,o.createVNode)(d,{max:255,message:"Please limit asset vendor to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",Pe,[(0,o.createElementVNode)("div",Ie,[t[40]||(t[40]=(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)("Type: "),(0,o.createElementVNode)("span",{class:"smaller error required-marker"},[(0,o.createElementVNode)("i",{class:"smaller align-top fas fa-asterisk"})])],-1)),(0,o.createVNode)(u,{autocomplete:"off",id:"typedx","input-attr":{name:"type",id:"type","aria-label":"enter type"},modelValue:s.asset.type,"onUpdate:modelValue":t[3]||(t[3]=e=>s.asset.type=e),items:s.types},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(r,{message:"Type is required"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue","items"])])]),(0,o.createElementVNode)("div",Oe,[(0,o.createElementVNode)("div",Ue,[t[41]||(t[41]=(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)("Product: "),(0,o.createElementVNode)("span",{class:"smaller error required-marker"},[(0,o.createElementVNode)("i",{class:"smaller align-top fas fa-asterisk"})])],-1)),(0,o.createVNode)(p,{id:"product-dx","input-attr":{name:"product",id:"product","aria-label":"enter product"},autocomplete:"off",modelValue:s.asset.product,"onUpdate:modelValue":t[4]||(t[4]=e=>s.asset.product=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(r,{message:"Product is required"}),(0,o.createVNode)(d,{max:255,message:"Please limit asset product to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])])]),(0,o.createElementVNode)("div",$e,[(0,o.createElementVNode)("div",Fe,[(0,o.createElementVNode)("h5",{class:"pointer",id:"toggle-ad
1ditional",name:"toggle-additional","aria-label":"toggle additional",role:"button",onClick:t[5]||(t[5]=e=>s.sections.additional=!s.sections.additional)},[t[42]||(t[42]=(0,o.createTextVNode)(" Asset Additional ",-1)),(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(["fas",{"fa-caret-right":!s.sections.additional,"fas fa-caret-down":s.sections.additional}])},null,2)])])]),t[69]||(t[69]=(0,o.createElementVNode)("hr",null,null,-1)),(0,o.createElementVNode)("div",null,[(0,o.createVNode)(h,null,{default:(0,o.withCtx)(()=>[s.sections.additional?((0,o.openBlock)(),(0,o.createElementBlock)("div",Me,[(0,o.createElementVNode)("div",Ge,[(0,o.createElementVNode)("div",Re,[(0,o.createElementVNode)("div",He,[t[43]||(t[43]=(0,o.createElementVNode)("span",null,"Model:",-1)),(0,o.createVNode)(p,{id:"model-dx","input-attr":{name:"model",id:"model","aria-label":"enter model"},autocomplete:"off",modelValue:s.asset.model,"onUpdate:modelValue":t[6]||(t[6]=e=>s.asset.model=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Please limit asset model to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",qe,[(0,o.createElementVNode)("div",je,[t[44]||(t[44]=(0,o.createElementVNode)("span",null,"Version: ",-1)),(0,o.createVNode)(p,{id:"version-dx","input-attr":{name:"version",id:"version","aria-label":"enter version"},autocomplete:"off",modelValue:s.asset.version,"onUpdate:modelValue":t[7]||(t[7]=e=>s.asset.version=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Please limit asset version to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",ze,[(0,o.createElementVNode)("div",We,[t[45]||(t[45]=(0,o.createElementVNode)("span",null,"Edition:",-1)),(0,o.createVNode)(p,{id:"edition-dx","input-attr":{name:"edition",id:"edition","aria-label":"enter edition"},autocomplete:"off",modelValue:s.asset.edition,"onUpdate:modelValue":t[8]||(t[8]=e=>s.asset.edition=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Please limit asset edition to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",Ye,[(0,o.createElementVNode)("div",Je,[t[46]||(t[46]=(0,o.createElementVNode)("span",null,"Update:",-1)),(0,o.createVNode)(p,{id:"update-dx","input-attr":{name:"update",id:"update","aria-label":"enter update"},autocomplete:"off",modelValue:s.asset.update,"onUpdate:modelValue":t[9]||(t[9]=e=>s.asset.update=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Please limit asset update to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",Ke,[(0,o.createElementVNode)("div",Ze,[t[47]||(t[47]=(0,o.createElementVNode)("span",null,"Language:",-1)),(0,o.createVNode)(u,{autocomplete:"off","search-enabled":!0,id:"languagedx","input-attr":{name:"language",id:"language","aria-label":"enter language"},modelValue:s.asset.language,"onUpdate:modelValue":t[10]||(t[10]=e=>s.asset.language=e),"data-source":s.languages,"display-expr":"name","value-expr":"id"},null,8,["modelValue","data-source"])])]),(0,o.createElementVNode)("div",Qe,[(0,o.createElementVNode)("div",Xe,[t[48]||(t[48]=(0,o.createElementVNode)("span",null,"Tag:",-1)),(0,o.createVNode)(p,{id:"tag-dx","input-attr":{name:"tag",id:"tag","aria-label":"enter tag"},autocomplete:"off",modelValue:s.asset.tag,"onUpdate:modelValue":t[11]||(t[11]=e=>s.asset.tag=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Please limit asset tag to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])])]),(0,o.createElementVNode)("div",et,[t[49]||(t[49]=(0,o.createElementVNode)("span",null,"Description:",-1)),(0,o.createVNode)(m,{label:"description",width:"100%",id:"description-dx","input-attr":{name:"description",id:"description","aria-label":"enter description"},modelValue:s.asset.description,"onUpdate:modelValue":t[12]||(t[12]=e=>s.asset.description=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:4096,message:"Please limit asset description to no more that 4096 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])])):(0,o.createCommentVNode)("",!0)],void 0,!0),_:1})]),(0,o.createElementVNode)("div",tt,[(0,o.createElementVNode)("div",at,[(0,o.createElementVNode)("h5",{class:"pointer",id:"toggle-assetLocation",name:"toggle-assetLocation","aria-label":"toggle assetLocation",role:"button",onClick:t[13]||(t[13]=e=>s.sections.assetLocation=!s.sections.assetLocation)}
1,[t[50]||(t[50]=(0,o.createTextVNode)(" Asset Location ",-1)),(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(["fas",{"fa-caret-right":!s.sections.assetLocation,"fas fa-caret-down":s.sections.assetLocation}])},null,2)])])]),t[70]||(t[70]=(0,o.createElementVNode)("hr",null,null,-1)),(0,o.createElementVNode)("div",null,[(0,o.createVNode)(h,null,{default:(0,o.withCtx)(()=>[s.sections.assetLocation?((0,o.openBlock)(),(0,o.createElementBlock)("div",ot,[(0,o.createElementVNode)("div",lt,[(0,o.createElementVNode)("div",st,[(0,o.createVNode)(V,{onLocationDeleted:t[14]||(t[14]=t=>e.$emit("locationDeleted")),addressIn:n.getAddress("asset_locations"),onUpdate:t[15]||(t[15]=e=>n.updateAddress(e,"asset_locations")),type:"asset"},null,8,["addressIn"])])])])):(0,o.createCommentVNode)("",!0)],void 0,!0),_:1})]),(0,o.createElementVNode)("div",nt,[(0,o.createElementVNode)("div",it,[(0,o.createElementVNode)("h5",{class:"pointer",id:"toggle-purchaseDetails",name:"toggle-purchaseDetails","aria-label":"toggle purchaseDetails",role:"button",onClick:t[16]||(t[16]=e=>s.sections.purchaseDetails=!s.sections.purchaseDetails)},[t[51]||(t[51]=(0,o.createTextVNode)(" Purchase Details ",-1)),(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(["fas",{"fa-caret-right":!s.sections.purchaseDetails,"fas fa-caret-down":s.sections.purchaseDetails}])},null,2)])])]),t[71]||(t[71]=(0,o.createElementVNode)("hr",null,null,-1)),(0,o.createElementVNode)("div",null,[(0,o.createVNode)(h,null,{default:(0,o.withCtx)(()=>[s.sections.purchaseDetails?((0,o.openBlock)(),(0,o.createElementBlock)("div",rt,[(0,o.createElementVNode)("div",dt,[(0,o.createElementVNode)("div",ct,[t[52]||(t[52]=(0,o.createElementVNode)("span",null,"Owner title:",-1)),(0,o.createVNode)(p,{autocomplete:"off",id:"owner_title_dx","input-attr":{name:"owner_title",id:"owner_title","aria-label":"enter owner_title"},modelValue:s.asset.owner_title,"onUpdate:modelValue":t[17]||(t[17]=e=>s.asset.owner_title=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Please limit owner title to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",pt,[(0,o.createElementVNode)("div",ut,[t[53]||(t[53]=(0,o.createElementVNode)("span",null,"Owner department:",-1)),(0,o.createVNode)(p,{autocomplete:"off",id:"owner_department-dx","input-attr":{name:"owner_department",id:"owner_department","aria-label":"enter owner_department"},modelValue:s.asset.owner_department,"onUpdate:modelValue":t[18]||(t[18]=e=>s.asset.owner_department=e),"display-expr":"name"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Please limit owner department to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",mt,[(0,o.createElementVNode)("div",ht,[t[54]||(t[54]=(0,o.createElementVNode)("span",null,"Cost:",-1)),(0,o.createVNode)(g,{id:"cost-dx","input-attr":{name:"cost",id:"cost","aria-label":"enter cost"},modelValue:s.asset.cost,"onUpdate:modelValue":t[19]||(t[19]=e=>s.asset.cost=e),format:"$ #,##0.##",max:2147483649,min:0},null,8,["modelValue"])])]),(0,o.createElementVNode)("div",Vt,[(0,o.createElementVNode)("div",gt,[t[55]||(t[55]=(0,o.createElementVNode)("span",null,"Purchase date:",-1)),(0,o.createVNode)(N,{type:"date","display-format":"yyyy-MM-dd",name:"purchase_date_dx",id:"purchase_date_dx","input-attr":{name:"purchase_date",id:"purchase_date","aria-label":"enter purchase_date"},modelValue:s.asset.purchase_date,"onUpdate:modelValue":t[20]||(t[20]=e=>s.asset.purchase_date=e),"show-clear-button":!0},null,8,["modelValue"])])]),(0,o.createElementVNode)("div",Nt,[(0,o.createElementVNode)("div",_t,[t[56]||(t[56]=(0,o.createElementVNode)("span",null,"Order number:",-1)),(0,o.createVNode)(p,{id:"order_num-dx","input-attr":{name:"order_num",id:"order_num","aria-label":"enter order_num"},autocomplete:"off",modelValue:s.asset.order_num,"onUpdate:modelValue":t[21]||(t[21]=e=>s.asset.order_num=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Please limit order numer to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",vt,[(0,o.createElementVNode)("div",ft,[t[57]||(t[57]=(0,o.createElementVNode)("span",null,"Supplier:",-1)),(0,o.createVNode)(p,{autocomplete:"off",id:"supplier-dx","input-attr":{name:"supplier",id:"supplier","aria-label":"enter supplier"},modelValue:s.asset.supplier,"onUpdate:modelValue":t[22]||(t[22]=e=>s.asset.supplier=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,{validationGroup:"assetGroup"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Please limit supplier to no more than 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])])])):(0,o.createCommentVNode)("",!0)],void 0,!0),_:1})]),(0,o.createElementVNode)("div",Et,[(0,o.createElementVNode)("div",yt,[(0,o.createElementVNode)("h5",{class:"pointer",id:"toggle-supplierLocations",name:"toggle-supplierLocations","aria-label":"toggle supplierLocations",role:"button",onClick:t[23]||(t[23]=e=>s.sections.supplierLocations=!s.sections.supplierLocations)},[t[58]||(t[58]=(0,o.createTextVNode)(" Supplier Location ",-1)),(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(["fas",{"fa-caret-right":!s.sections.supplierLocations,"fas fa-caret-down":s.sections.supplierLocations}])},null,2)])])]),t[72]||(t[72]=(0,o.createElementVNode)("hr",null,null,-1)),(0,o.createElementVNode)("div",null,[(0,o.createVNode)(h,null,{default:(0,o.withCtx)(()=>[s.sections.supplierLocations?((0,o.openBlock)(),(0,o.createElementBlock)("div",xt,[(0,o.createElementVNode)("div",bt,[(0,o.createElementVNode)("div",wt,[(0,o.createVNode)(V,{onLocationDeleted:t[24]||(t[24]=t=>e.$emit("locationDeleted")),addressIn:n.getAddress("supplier_locations"),onUpdate:t[25]||(t[25]=e=>n.updateAddress(e,"supplier_locations")),type:"supplier"},null,8,["addressIn"])])])])):(0,o.createCommentVNode)("",!0)],void 0,!0),_:1})]),(0,o.createElementVNode)("div",kt,[(0,o.createElementVNode)("div",Ct,[(0,o.createElementVNode)("h5",{class:"pointer",id:"toggle-warrantyDetails",name:"toggle-warrantyDetails","aria-label":"toggle warrantyDetails",role:"button",onClick:t[26]||(t[26]=e=>s.sections.warrantyDetails=!s.sections.warrantyDetails)},[t[59]||(t[59]=(0,o.createTextVNode)(" Warranty Details ",-1)),(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(["fas",{"fa-caret-right":!s.sections.warrantyDetails,"fas fa-caret-down":s.sections.warrantyDetails}])},null,2)])])]),t[73]||(t[73]=(0,o.createElementVNode)("hr",null,null,-1)),(0,o.createElementVNode)("div",null,[(0,o.createVNode)(h,null,{default:(0,o.withCtx)(()=>[s.sections.warrantyDetails?((0,o.openBlock)(),(0,o.createElementBlock)("div",Bt,[(0,o.createElementVNode)("div",At,[(0,o.createElementVNode)("div",Dt,[t[60]||(t[60]=(0,o.createElementVNode)("span",null,"Warranty start date:",-1)),(0,o.createVNode)(N,{type:"date","display-format":"yyyy-MM-dd",name:"warranty_start_date_dx",id:"warranty_start_date_dx","input-attr":{name:"warranty_start_date",id:"warranty_start_date","aria-label":"enter warranty_start_date"}
1,modelValue:s.asset.warranty_start_date,"onUpdate:modelValue":t[27]||(t[27]=e=>s.asset.warranty_start_date=e),"show-clear-button":!0,onChange:t[28]||(t[28]=e=>n.warrantyupdate(e)),onFocusOut:t[29]||(t[29]=e=>n.warrantyupdate(e))},null,8,["modelValue"])])]),(0,o.createElementVNode)("div",St,[(0,o.createElementVNode)("div",Lt,[t[61]||(t[61]=(0,o.createElementVNode)("span",null,"Warranty duration (months):",-1)),(0,o.createVNode)(g,{modelValue:s.asset.warranty_duration,"onUpdate:modelValue":t[30]||(t[30]=e=>s.asset.warranty_duration=e),id:"warranty_duration_dx","input-attr":{name:"warranty_duration",id:"warranty_duration","aria-label":"enter warranty_duration"},max:2147483647,min:0,onChange:t[31]||(t[31]=e=>n.warrantyupdate(e))},null,8,["modelValue"])])]),(0,o.createElementVNode)("div",Tt,[(0,o.createElementVNode)("div",Pt,[t[62]||(t[62]=(0,o.createElementVNode)("span",null,"Warranty expiration date:",-1)),(0,o.createVNode)(N,{type:"date","display-format":"yyyy-MM-dd",name:"warranty_expiration_dx",id:"warranty_expiration_dx","input-attr":{name:"warranty_expiration",id:"warranty_expiration","aria-label":"enter warranty_expiration"},modelValue:s.asset.warranty_expiration,"onUpdate:modelValue":t[32]||(t[32]=e=>s.asset.warranty_expiration=e),"show-clear-button":!0,min:s.asset.warranty_start_date},null,8,["modelValue","min"])])]),(0,o.createElementVNode)("div",It,[(0,o.createElementVNode)("div",Ot,[t[63]||(t[63]=(0,o.createElementVNode)("span",null,"End of life:",-1)),(0,o.createVNode)(N,{type:"date","display-format":"yyyy-MM-dd",name:"end_of_life_dx",id:"end_of_life_dx","input-attr":{name:"end_of_life",id:"end_of_life","aria-label":"enter end_of_life"},modelValue:s.asset.end_of_life,"onUpdate:modelValue":t[33]||(t[33]=e=>s.asset.end_of_life=e),"show-clear-button":!0,min:s.asset.warranty_start_date},null,8,["modelValue","min"])])]),(0,o.createElementVNode)("div",Ut,[(0,o.createElementVNode)("div",$t,[t[64]||(t[64]=(0,o.createElementVNode)("span",null,"Last audit:",-1)),(0,o.createVNode)(N,{type:"date","display-format":"yyyy-MM-dd",name:"last_audit_dx",id:"last_audit_dx","input-attr":{name:"last_audit",id:"last_audit","aria-label":"enter last_audit"},modelValue:s.asset.last_audit,"onUpdate:modelValue":t[34]||(t[34]=e=>s.asset.last_audit=e),"show-clear-button":!0,min:s.asset.purchase_date},null,8,["modelValue","min"])])]),(0,o.createElementVNode)("div",Ft,[(0,o.createElementVNode)("div",Mt,[t[65]||(t[65]=(0,o.createElementVNode)("span",null,"Next audit:",-1)),(0,o.createVNode)(N,{type:"date",name:"next_audit_dx",id:"next_audit_dx","input-attr":{name:"next_audit",id:"next_audit","aria-label":"enter next_audit"},"display-format":"yyyy-MM-dd",modelValue:s.asset.next_audit,"onUpdate:modelValue":t[35]||(t[35]=e=>s.asset.next_audit=e),"show-clear-button":!0,min:s.asset.purchase_date},null,8,["modelValue","min"])])])])):(0,o.createCommentVNode)("",!0)],void 0,!0),_:1})]),(0,o.createVNode)(_,{class:"validation-summary",id:"summary",ref:"validationSummary",validationGroup:"assetGroup"},null,512),(0,o.createElementVNode)("div",Gt,[t[66]||(t[66]=(0,o.createElementVNode)("div",{class:"col-9"},null,-1)),(0,o.createElementVNode)("div",Rt,[(0,o.createElementVNode)("div",{id:"submit-asset",name:"submit-asset","aria-label":"submit asset",role:"button",class:"text-center blu-button",onClick:t[36]||(t[36]=(...e)=>n.submit&&n.submit(...e))}," Submit ")])])],void 0,!0),_:1},512)]))])}a(22489),a(69112),a(33110);var qt=a(22440),jt=a(97043),zt=a(40464),Wt=a(54737),Yt=a(78313);const Jt={class:"asset-location"},Kt={class:"row no-pad"},Zt={class:"col-9"},Qt={class:"pb-3"},Xt={style:{display:"inline-block"}},ea=["onClick"],ta={class:"col align-self-center pt-2 px-3"},aa={key:0,class:"add-new-location"},oa={class:"row py-1"},la={class:"col-6 required align-self-center"},sa={class:"row py-1"},na={class:"col-12 align-self-center"},ia={class:"row py-1"},ra={class:"col required align-self-center"},da={class:"col input-col required align-self-center"},ca={class:"col required align-self-center"},pa={class:"col required align-self-center"},ua={class:"col required align-self-center"},ma={class:"row py-1"},ha={class:"col-4 required align-self-center"},Va={class:"col-2 align-self-center pt-4"},ga={id:"delete-consent"},Na={class:"mb-2 text-center"},_a={key:0},va={id:"consent-button-wrap"};function fa(e,t,a,l,s,n){const i=(0,o.resolveComponent)("preloader"),r=(0,o.resolveComponent)("DxSelectBox"),d=(0,o.resolveComponent)("dx-string-length-rule"),c=(0,o.resolveComponent)("dx-validator"),p=(0,o.resolveComponent)("dx-text-box"),u=(0,o.resolveComponent)("google-auto-complete"),m=(0,o.resolveComponent)("dx-pattern-rule"),h=(0,o.resolveComponent)("dx-select-box"),V=(0,o.resolveComponent)("collapse-transition"),g=(0,o.resolveComponent)("dx-popup");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Jt,[s.loading?((0,o.openBlock)(),(0,o.createBlock)(i,{key:0})):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createElementVNode)("div",Kt,[(0,o.createElementVNode)("div",Zt,[t[14]||(t[14]=(0,o.createElementVNode)("label",null,"Select Existing Location:",-1)),(0,o.createElementVNode)("div",Qt,[(0,o.createVNode)(r,{autocomplete:"off",items:s.locations,"item-template":"item","display-expr":n.existingDisplayExpr,onValueChanged:n.updateLocation,"show-clear-button":!0,value:s.address,disabled:s.addNewOpen,id:"assetLocationDx","input-attr":{name:"assetLocation",id:"assetLocation","aria-label":"enter assetLocation"}},{item:(0,o.withCtx)(({data:e})=>[(0,o.createElementVNode)("div",null,[(0,o.createElementVNode)("div",Xt,[(0,o.createTextVNode)((0,o.toDisplayString)(n.displayAddress(e))+" ",1),(0,o.createElementVNode)("span",{id:"open-del-consent",name:"open-del-consent","aria-label":"open delete consent",onClick:t=>n.openDeleteConsent(e),role:"button"},[...t[13]||(t[13]=[(0,o.createElementVNode)("i",{class:"error fas fa-times-circle"},null,-1)])],8,ea)])])]),_:1},8,["items","display-expr","onValueChanged","value","disabled"])])]),(0,o.createElementVNode)("div",ta,[s.addNewOpen?((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:1,id:"cancel-add-new-loc",name:"cancel-add-new-loc","aria-label":"cancel add new location",role:"button",class:"red-button",onClick:t[1]||(t[1]=(...e)=>n.cancelAddNew&&n.cancelAddNew(...e))},"Cancel")):((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:0,class:"blu-button",id:"create-loc",name:"create-loc","aria-label":"create new location",role:"button",onClick:t[0]||(t[0]=(...e)=>n.createNewLocation&&n.createNewLocation(...e))}," Add New Location "))])]),(0,o.createVNode)(V,null,{default:(0,o.withCtx)(()=>[s.addNewOpen?((0,o.openBlock)(),(0,o.createElementBlock)("div",aa,[(0,o.createElementVNode)("div",oa,[(0,o.createElementVNode)("div",la,[(0,o.createElementVNode)("div",null,[t[15]||(t[15]=(0,o.createElementVNode)("label",null,"Location Name:",-1)),(0,o.createVNode)(p,{id:"location_name-dx","input-attr":{name:"location_name",id:"location_name","aria-label":"enter location_name"},autocomplete:"off",modelValue:s.address.location_name,"onUpdate:modelValue":t[2]||(t[2]=e=>s.address.location_name=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Location name may not exceed 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])])]),(0,o.createElementVNode)("div",sa,[(0,o.createElementVNode)("div",na,[t[16]||(t[16]=(0,o.createElementVNode)("label",null,"Quick Set Location:Â ",-1)),(0,o.createVNode)(u,{onLocationChange:n.quickSet},null,8,["onLocationChange"])])]),(0,o.createElementVNode)("div",ia,[(0,o.createElementVNode)("div",ra,[t[17]||(t[17]=(0,o.createElementVNode)("label",null,"Street Number:",-1)),(0,o.createVNode)(p,{id:"street_number_dx","input-attr":{name:"street_number",id:"street_number","aria-label":"enter street_number"},autocomplete:"off",modelValue:s.address.street_number,"onUpdate:modelValue":t[3]||(t[3]=e=>s.address.street_number=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Street number may not exceed 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])]),(0,o.createElementVNode)("div",da,[t[18]||(t[18]=(0,o.createElementVNode)("label",null,"Street Name:",-1)),(0,o.createVNode)(p,{id:"route-dx","input-attr":{name:"route",id:"route","aria-label":"enter route"},autocomplete:"off",modelValue:s.address.route,"onUpdate:modelValue":t[4]||(t[4]=e=>s.address.route=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"Street name may not exceed 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])]),(0,o.createElementVNode)("div",ca,[t[19]||(t[19]=(0,o.createElementVNode)("label",null,"City:",-1)),(0,o.createVNode)(p,{id:"locality","input-attr":{name:"locality",id:"locality","aria-label":"enter locality"},autocomplete:"off",modelValue:s.address.locality,"onUpdate:modelValue":t[5]||(t[5]=e=>s.address.locality=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{max:255,message:"City may not exceed 255 characters"})],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])]),(0,o.createElementVNode)("div",pa,[t[20]||(t[20]=(0,o.createElementVNode)("label",null,"State / Province:",-1)),(0,o.createVNode)(p,{id:"state_code_dx","input-attr":{name:"state_code",id:"state_code","aria-label":"enter state_code"},autocomplete:"off",modelValue:s.address.state_code,"onUpdate:modelValue":t[6]||(t[6]=e=>s.address.state_code=e)},null,8,["modelValue"])]),(0,o.createElementVNode)("div",ua,[t[21]||(t[21]=(0,o.createElementVNode)("label",null,"Zip / Postal Code:",-1)),(0,o.createVNode)(p,{autocomplete:"off",id:"postal_code","input-attr":{name:"postal_code",id:"postal_code","aria-label":"enter postal_code"},modelValue:s.address.postal_code,"onUpdate:modelValue":t[7]||(t[7]=e=>s.address.postal_code=e)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(c,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(m,{pattern:n.zipPattern,message:"Invalid zip code"},null,8,["pattern"])],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",ma,[(0,o.createElementVNode)("div",ha,[t[22]||(t[22]=(0,o.createElementVNode)("label",null,"Country:",-1)),(0,o.createVNode)(h,{modelValue:s.address.country_code,"onUpdate:modelValue":t[8]||(t[8]=e=>s.address.country_code=e),id:"country_code_dx","input-attr":{name:"country_code",id:"c
1ountry_code","aria-label":"enter country_code"},items:s.countries,"display-expr":"name","value-expr":"alpha2","search-enabled":!0,"show-data-before-search":!0},null,8,["modelValue","items"])]),(0,o.createElementVNode)("div",Va,[(0,o.createElementVNode)("span",{id:"submit-loc",name:"submit-loc","aria-label":"submit location",role:"button",onClick:t[9]||(t[9]=(...e)=>n.submitLocation&&n.submitLocation(...e)),class:"blu-button"},"Submit Location")])])])):(0,o.createCommentVNode)("",!0)],void 0,!0),_:1})],64)),(0,o.createVNode)(g,{id:"q-locations-consent-modal",height:e.gPopupHeight(200),width:e.gPopupWidth(400),visible:s.deleteConsentOpen,"onUpdate:visible":t[12]||(t[12]=e=>s.deleteConsentOpen=e),"show-title":!1},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",ga,[(0,o.createElementVNode)("div",Na,[t[23]||(t[23]=(0,o.createTextVNode)(" Are you sure you want to delete ",-1)),s.deleteItem?((0,o.openBlock)(),(0,o.createElementBlock)("strong",_a,(0,o.toDisplayString)(s.deleteItem.location_name),1)):(0,o.createCommentVNode)("",!0)]),t[24]||(t[24]=(0,o.createElementVNode)("div",{class:"text-center"}," Note: This location will be removed from all other assets. Deletion is permanent and occurs immediately. ",-1)),(0,o.createElementVNode)("div",va,[(0,o.createElementVNode)("a",{id:"delete-loc",name:"delete-loc","aria-label":"delete location",role:"button",onClick:t[10]||(t[10]=(...e)=>n.deleteLocation&&n.deleteLocation(...e)),class:"delete-button"},"Delete"),(0,o.createElementVNode)("a",{id:"delete-loc-cancel",name:"delete-loc-cancel","aria-label":"cancel location delete",role:"button",onClick:t[11]||(t[11]=e=>s.deleteConsentOpen=!1),class:"delete-button"},"Cancel")])])],void 0,!0),_:1},8,["height","width","visible"])])}var Ea=a(30623),ya=a(63106),xa=a(1544),ba={components:{DxTextBox:qt.HA,DxValidator:jt.Z2,DxPatternRule:jt.zu,DxStringLengthRule:jt.Wx,DxSelectBox:Wt.ad,googleAutoComplete:ya.A,DxPopup:P.jF,preloader:T.A,CollapseTransition:Yt.ZQ},props:{addressIn:Object,type:String},data(){return{locations:[],address:null,states:Ea.xP,countries:Ea.Xr,deleteItem:null,deleteConsentOpen:!1,addNewOpen:!1,loading:!0,locationTemplate:{country_code:"",locality:"",postal_code:"",route:"",state_code:"",street_number:"",location_name:"",type:this.type}}},computed:{zipPattern(){return xa.x[this.address.country_code]?xa.x[this.address.country_code]:""}},watch:{address:{deep:!0,handler(){this.$emit("update",this.address)}}},methods:{conjoin(e,t){const a=[];for(const o of e)t[o]&&a.push(t[o]);return a},displayAddress(e){const t=Object.assign({},e),a=["street_number","route"],o=["state_code","postal_code"],l=["location_name","streetAddress","locality","stateZip","country_code"];return t["streetAddress"]=this.conjoin(a,t).join(" "),t["stateZip"]=this.conjoin(o,t).join(" "),this.truncate(this.conjoin(l,t).join(", "),100)},createNewLocation(){this.address=JSON.parse(JSON.stringify(this.locationTemplate)),this.addNewOpen=!0},cancelAddNew(){this.addNewOpen=!1},async submitLocation(){this.loading=!0,this.address["type"]=this.type,await L.A.call({action:"post",endpoint:"asset_locations",params:this.address}).then(e=>{this.dialog("Location added successfully"),this.address=e.data,this.addNewOpen=!1,this.locations.push(e.data)}).catch(e=>{console.error(e),this.catchError("Error adding threat intel location.")}),this.loading=!1},async deleteLocation(){this.deleteConsentOpen=!1,this.loading=!0,await L.A.call({action:"delete",endpoint:"asset_locations",ID:this.deleteItem.id}).then(()=>{this.dialog("Location deleted successfully"),this.locations=this.locations.filter(e=>e.id!=this.deleteItem.id),this.address.id===this.deleteItem.id&&(this.addNewOpen=!1,this.address=null)}).catch(e=>{console.error(e),this.catchError("Error deleting threat intel location.")}),this.loading=!1,this.$emit("locationDeleted")},openDeleteConsent(e){this.deleteConsentOpen=!0,this.deleteItem=e},existingDisplayExpr(e){if(!this.addNewOpen){if(e)return this.displayAddress(e);if(this.address&&this.address.id)return this.displayAddress(this.address)}return"Select..."},updateLocation(e){e&&e.value?this.address=e.value:this.address=null}
1,async init(){this.loading=!0,await this.getLocations(),this.addressIn&&(this.address=this.addressIn),this.loading=!1},getLocations(){return new Promise(e=>{L.A.call({action:"get",endpoint:"asset_locations",queries:[{name:"type",value:this.type}],limit:9999}).then(t=>{this.locations=t.data.results,e(this.locations)}).catch(e=>{console.error(e),this.catchError("Error fetching threat intel asset locations.")})})},quickSet(e){for(const t in e)this.address[t]=e[t]}},created(){this.init()}};const wa=(0,M.A)(ba,[["render",fa],["__scopeId","data-v-7f0eb5a6"]]);var ka=wa,Ca=a(40925),Ba={props:{existingAsset:Object},components:{preloader:T.A,DxStringLengthRule:jt.Wx,DxValidator:jt.Z2,DxValidationSummary:qt.US,DxTextBox:qt.HA,DxTextArea:qt.R$,DxNumberBox:qt.py,DxRequiredRule:jt.az,DxValidationGroup:zt.A,DxSelectBox:Wt.ad,DxDateBox:qt.oq,CollapseTransition:Yt.ZQ,AssetLocation:ka},data(){return{popupVisible:!1,submitting:!1,group:null,asset:null,sections:{additional:!1,assetLocation:!1,purchaseDetails:!1,supplierLocations:!1,warrantyDetails:!1},assetTemplate:{supplier_locations:[],asset_locations:[],name:null,tag:"",type:null,vendor:null,product:null,version:null,model:"",update:"",edition:"",language:null,description:"",owner_department:"",owner_title:"",serial:"",purchase_date:null,cost:0,end_of_life:null,order_num:null,supplier:"",asset_status:null,warranty_start_date:null,warranty_duration:0,warranty_expiration:null,last_audit:null,next_audit:null,created_datetime:null,updated_datetime:null},types:[],languages:[],validStatus:[],location:{},locationTemplate:{country_code:"",locality:"",postal_code:"",route:"",state_code:"",street_number:"",location_name:""}}},created(){this.types=O.R,this.languages=O.eo,this.validStatus=O.xJ,this.existingAsset?this.asset=this.existingAsset:this.asset=JSON.parse(JSON.stringify(this.assetTemplate))},methods:{fixUnsubmittedLocations(){const e=["supplier_locations","asset_locations"];for(const t of e)this.asset[t]&&(this.asset[t]=this.asset[t].filter(e=>e.id))},getAddress(e){return this.asset[e]&&this.asset[e].length?this.asset[e][0]:null},updateAddress(e,t){this.asset[t]=e?[e]:[]},saveGroupInstance(e){this.group=e.component},quickSet(e){this.location=e,this.asset.supplier_loc=[this.location]},addmonths(e,t){const a=parseInt(e),o=t.toString(),l=new Date(o);return l.setMonth(l.getMonth()+a),l},warrantyupdate(){this.asset.warranty_duration&&this.asset.warranty_start_date&&(this.asset.warranty_expiration=null,this.asset.warranty_expiration=this.addmonths(this.asset.warranty_duration,this.asset.warranty_start_date))},fixDates(){const e=["end_of_life","warranty_start_date","warranty_expiration","last_audit","purchase_date","next_audit"];for(const t of e)this.asset[t]&&this.asset[t]instanceof Date&&(this.asset[t]=this.asset[t].toISOString().split("T")[0])},async submit(){const e=Ca.A.validateGroup("assetGroup");e.isValid&&(this.submitting=!0,this.fixDates(),this.fixUnsubmittedLocations(),await L.A.call({action:this.existingAsset?"put":"post",endpoint:"threat_intel",ID:this.asset.id,params:this.asset}).then(()=>{this.dialog("Asset added successfully"),this.asset=JSON.parse(JSON.stringify(this.assetTemplate)),this.popupVisible=this.submitting=!1}
1).catch(e=>{console.error(e),this.catchError("Error adding asset")}),this.$emit("update"))}}};const Aa=(0,M.A)(Ba,[["render",Ht],["__scopeId","data-v-6424171e"]]);var Da=Aa,Sa={props:{asset:Object},components:{DxPopup:P.jF,DxScrollView:U.$,addEditAsset:Da},data(){return{popupVisible:!1}},methods:{}};const La=(0,M.A)(Sa,[["render",xe],["__scopeId","data-v-b23d2904"]]);var Ta=La,Pa={components:{CollapseTransition:Yt.ZQ,preloader:T.A,DxPopup:P.jF,threatFeedPanel:Ee,editAssetButton:Ta,DxScrollView:U.$},props:{asset:Object},data(){return{deleteConsent:!1,threatFeedOpen:!1,threatAnalysis:null,loading:!0,updatingPage:!1,current_page:1,formatted_cost:0,infoOpen:!1}},methods:{init(){this.getThreatAnalysis()},async getThreatAnalysis(){this.loading=!0,await L.A.call({endpoint:"threat_analysis",action:"get",ID:this.asset.id,queries:[{name:"limit",value:10}]}).then(e=>{this.threatAnalysis=e.data,this.threatAnalysis.next=e.data.next,this.threatAnalysis.previous=e.data.previous,this.threatAnalysis.pages=e.data.pages}).catch(e=>{console.error(e),this.catchError("Error fetching threat analysis.")}),this.loading=!1},async deleteItem(){await L.A.call({endpoint:"threat_intel",ID:this.asset.id,action:"delete"}).then(()=>{this.dialog("Asset deleted successfully")}).catch(e=>{console.error(e),this.catchError("Error deleting asset.")}),this.deleteConsent=!1,this.$emit("update",!0)},async getPage(e,t){this.updatingPage=!0,this.current_page=t,await L.A.call({custom:e,action:"get"}).then(e=>{this.threatAnalysis.feed_results=e.data.feed_results,this.threatAnalysis.next=e.data.next,this.threatAnalysis.previous=e.data.previous,this.threatAnalysis.pages=e.data.pages}).catch(e=>{console.error(e),this.catchError("Error fetching next page of assets.")}),this.updatingPage=!1},costFormat(e){return(0,$.Cj)(e)},fields(e,t){const a=[];for(const o of e){const e=(0,$.zg)(o,["capitalize","noUnderscores"]);t[o]?"cost"===o?a.push({label:e,value:this.costFormat(t[o])}):a.push({label:e,value:t[o]}):a.push({label:e,value:"Not Provided"})}return a}},created(){this.init()}};const Ia=(0,M.A)(Pa,[["render",Ve],["__scopeId","data-v-0a7c6dcd"]]);var Oa=Ia;const Ua={id:"add-asset"};function $a(e,t,a,l,s,n){const i=(0,o.resolveComponent)("add-edit-asset"),r=(0,o.resolveComponent)("dx-scroll-view"),d=(0,o.resolveComponent)("DxPopup");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Ua,[a.isLink?((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:1,class:"fake-link",id:"add-asset-popup",name:"add-asset-popup","aria-label":"add asset popup",role:"button",onClick:t[1]||(t[1]=e=>s.popupVisible=!s.popupVisible)}," Click here to start adding assets. ")):((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:0,id:"add-target-button",name:"add-target-btn","aria-label":"add target button",role:"button",onClick:t[0]||(t[0]=e=>s.popupVisible=!s.popupVisible),"data-toggle":"tooltip",title:"Add New"},[...t[4]||(t[4]=[(0,o.createElementVNode)("svg",{class:"fas fa-plus-square add-asset-button"},null,-1)])])),s.popupVisible?((0,o.openBlock)(),(0,o.createBlock)(d,{key:2,visible:s.popupVisible,"onUpdate:visible":t[3]||(t[3]=e=>s.popupVisible=e),"drag-enabled":!1,hideOnOutsideClick:!1,"show-title":!0,title:"Add Asset"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(r,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(i,{onUpdate:t[2]||(t[2]=t=>{e.$emit("update"),s.popupVisible=!1})})],void 0,!0),_:1})],void 0,!0),_:1},8,["visible"])):(0,o.createCommentVNode)("",!0)])}var Fa={props:{isLink:Boolean},components:{DxPopup:P.jF,DxScrollView:U.$,addEditAsset:Da},data(){return{popupVisible:!1}},methods:{}};const Ma=(0,M.A)(Fa,[["render",$a],["__scopeId","data-v-0a85b76a"]]);var Ga=Ma,Ra={components:{DxScrollView:U.$,DxTextBox:qt.HA,asset:Oa,preloader:T.A,importAssets:R,AddAssetButton:Ga},data(){return{loading:!0,assets:null,scrollViewInstance:null,searchString:"",searchKey:0,next:null,types:["all","application","hardware","operating system"],filter:"all"}},computed:{computeHeight(){return this.$store.getters.windowWidth,this.$store.getters.windowHeight,this.$refs.assetInventoryPanel&&this.$refs.topContent?this.$refs.assetInventoryPanel.clientHeight-this.$refs.topContent.clientHeight:0},getTitle(){return"asset-inventory"===this.$route?.name?"Asset Inventory":"Threat Intelligence"}},methods:{init(){this.loading=!0,this.getAssets()},async getAssets(){const e=[];this.searchString.length>2&&e.push({name:"search",value:this.searchString}),this.searchKey++;const t=this.searchKey;await L.A.call({action:"get",endpoint:"threat_intel",queries:e,limit:25}).then(e=>{this.searchKey===t&&(this.next=e.data.next,this.assets=e.data.results,this.loading=!1)}).catch(e=>{console.error(e),this.catchError("Error fetching threat intel assets.")})},getNext(e){this.next?(e.component.refresh(),L.A.call({custom:this.next,action:"get"}).then(t=>{this.next=t.data.next,this.assets.push(...t.data.results),e.component.release(),this.scrollViewInstance.update(
1)}).catch(t=>{e.component.release(),console.error(t),this.catchError("Error fetching next page of assets.")})):e.component.release(!0)},saveScrollViewInstance(e){this.scrollViewInstance=e.component},search(e){this.searchString=e.value,this.init()}},created(){this.init()}};const Ha=(0,M.A)(Ra,[["render",N],["__scopeId","data-v-7ca7ca7d"]]);var qa=Ha,ja={components:{threatIntelPanel:qa},computed:{getLowerContentHeight(){return this.$store.getters.lowerContentHeight?`${this.$store.getters.lowerContentHeight}px`:"auto"}}};const za=(0,M.A)(ja,[["render",s],["__scopeId","data-v-8b4726be"]]);var Wa=za}}]);
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.