1import{n as i}from"./app-PlFopkv0.js";const a={data(){return{certificates:{data:[],loading:!1,page:1,per_page:30,total:0},filter:{name:"",supplier:null}}},mounted(){if(this.request!=null)for(var t in this.request)switch(t.toLowerCase()){case"name":this.filter[t]=this.request[t];break;case"supplier":this.filter[t]=this.request[t];break}this.loadAsyncCertificates()},methods:{debounceLoadCertificates:_.debounce(function(){this.certificates.page=1,this.loadAsyncCertificates()},1e3),loadAsyncCertificates(){this.certificates.loading=!0;let t=this.$query(this.filter,this.certificates.page,this.certificates.per_page);axios.post("/api/Admin/Certificates",t).then(e=>{this.certificates.data=e.data.certificates,this.certificates.total=e.data.total}).catch(e=>{this.certificates.data=[],this.certificates.total=0}).finally(e=>{this.certificates.loading=!1})},onPageChange(t){this.certificates.page=t,this.loadAsyncCertificates(),document.getElementById("vue-app").scrollIntoView()}},props:["request"]},s=null,r=null;var c=i(a,s,r,!1,null,null);const o=c.exports;export{o as default};
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.