1"use strict";(self["webpackChunkappwork_vue_starter"]=self["webpackChunkappwork_vue_starter"]||[]).push([[3878],{3878:function(t,e,s){s.r(e),s.d(e,{default:function(){return m}});var a=function(){var t=this,e=t._self._c;return e("div",[t._m(0),t._v(" "),e("div",{staticClass:"d-flex mt-5",staticStyle:{gap:"0.5rem"}},[e("b-input",{staticStyle:{width:"10rem"},attrs:{type:"date",name:"dateFrom",title:"Start date"},model:{value:t.dateFrom,callback:function(e){t.dateFrom=e},expression:"dateFrom"}}),t._v(" "),e("b-input",{staticStyle:{width:"10rem"},attrs:{type:"date",name:"dateTo",title:"End date"},model:{value:t.dateTo,callback:function(e){t.dateTo=e},expression:"dateTo"}}),t._v(" "),e("b-button",{staticStyle:{width:"10rem"},attrs:{variant:"primary"},on:{click:t.getErrors}},[t._v("Run query")])],1),t._v(" "),t.results?e("div",{staticClass:"card card-body p-0 mt-3"},[e("b-button",{attrs:{variant:"primary"},on:{click:t.exportResults}},[t._v("Export (xlsx)")])],1):t._e(),t._v(" "),t.results?e("div",{staticClass:"card card-body p-0 mt-3"},[e("b-table",{ref:"dataTable",attrs:{fields:t.fields,items:t.results.metrics,"empty-text":"loading...",striped:"",hover:"",responsive:""}})],1):t._e()])},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-4"},[e("h4",{staticClass:"font-weight-bold mb-2"},[e("span",{staticClass:"text-muted font-weight-light"},[t._v("Administration")]),t._v(" "),e("span",{staticClass:"material-icons md-14 arrow-east"},[t._v("east")]),t._v("\n Tools "),e("span",{staticClass:"material-icons md-14 arrow-east"},[t._v("east")]),t._v("\n Queries "),e("span",{staticClass:"material-icons md-14 arrow-east"},[t._v("east")]),t._v("\n Brooks Running - Place Order Errors\n ")])])}],i=(s(18111),s(22489),s(61701),s(28097)),l=s(2566),o={name:"QueriesEntryUrls",metaInfo:{title:"Queries - Brooks - Place Order Errors"},data(){return{clients:[],dateFrom:i.c9.now().minus({days:30}).toFormat("yyyy-LL-dd"),dateTo:i.c9.now().toFormat("yyyy-LL-dd"),loading:!1,formsSelected:null,results:null,fields:[{key:"stage",label:"Stage",sortable:!0,thStyle:"width: 8rem;"},{key:"locale",label:"Locale",sortable:!0,thStyle:"width: 8rem;"},{key:"PlaceOrderError",label:"Error",sortable:!0,tdClass:"tdStyle"},{key:"sessions",label:"Sessions (unique)",sortable:!0,thStyle:"width: 8rem;"}]}},methods:{async reload(){this.loading=!0,this.clients=this.$root?.me?.grants?.combined?.filter(t=>-1!==t.name.indexOf("brooksrunning.")).map(t=>t.client_hash),this.loading=!1},async getErrors(){this.clients?.length&&(this.results=(await this.$api.post("/metrics/brooks/placeordererrors",{from:this.dateFrom,to:this.dateTo,clients:this.clients},this.$root.client.client_hash)).data)},async exportResults(){this.clients?.length&&await(0,l.RG)(await this.$api.post("/metrics/brooks/placeordererrors",{from:this.dateFrom,to:this.dateTo,clients:this.clients,format:"xlsx"},this.$root.client.client_hash,{responseType:"blob"}))}},watch:{"$root.client":{handler(){this.$root.client&&this.reload()},immediate:!0}}},n=o,d=s(81656),c=(0,d.A)(n,a,r,!1,null,"8b9f1e72",null),m=c.exports}}]); 2//# sourceMappingURL=3878.76be0194.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.