text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-aae87952"],{"3d02":function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group bmd-form-group",class:{"has-items":t.query.s,"is-focused":t.focus}},[a("label",{staticClass:"bmd-label-floating"},[t._v("\n    Search\n  ")]),a("div",{staticClass:"input-group"},[a("input",{staticClass:"form-control",attrs:{type:"text",name:"search"},domProps:{value:t.query.s},on:{input:function(e){return t.debounceSearch(e.target.value)},focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),0!==t.query.s.length?a("div",{staticClass:"btn btn-just-icon btn-round btn-link text-dark d-inline-block input-group-append m-0",staticStyle:{height:"36px"},on:{click:function(e){t.query.s=""}}},[a("i",{staticClass:"material-icons"},[t._v("clear")])]):t._e()])])},n=[],i={props:{query:{type:Object,require:!0}},data(){return{focus:!1}},methods:{debounceSearch:_.debounce((function(t){this.query.s=t,this.query.offset=0}),300)}},r=i,l=a("2877"),o=Object(l["a"])(r,s,n,!1,null,null,null);e["a"]=o.exports},"5e0c":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"card"},[t._m(0),a("div",{staticClass:"card-body"},[a("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:t.xprops.route+".create"}}},[a("i",{staticClass:"material-icons"},[t._v("\n              add\n            ")]),t._v("\n            Add Vehicle\n          ")]),a("button",{staticClass:"btn btn-default",class:{disabled:t.loading},attrs:{type:"button",disabled:t.loading},on:{click:t.fetchIndexData}},[a("i",{staticClass:"material-icons",class:{"fa-spin":t.loading}},[t._v("\n              refresh\n            ")]),t._v("\n            Refresh\n          ")])],1),a("div",{staticClass:"card-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"table-overlay"},[a("div",{staticClass:"table-overlay-container"},[a("material-spinner"),a("span",[t._v("Loading...")])],1)]),a("datatable",{attrs:{columns:t.columns,data:t.data,total:t.total,query:t.query,xprops:t.xprops,HeaderSettings:!1,pageSizeOptions:[10,25,50,100]}},[a("global-search",{staticClass:"pull-left",attrs:{query:t.query}})],1)],1)])])])])])])},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card-header card-header-primary card-header-icon"},[a("div",{staticClass:"card-icon"},[a("i",{staticClass:"material-icons"},[t._v("assignment")])]),a("h4",{staticClass:"card-title"},[t._v("\n            Table "),a("strong",[t._v("Vehicles")])])])}],i=a("2f62"),r=a("a8cd"),l=a("dda1"),o=a("3d02"),c={components:{GlobalSearch:o["a"]},data(){return{columns:[{title:"Owner",field:"owner",thComp:l["a"]},{title:"Brand Name",field:"brand_name",thComp:l["a"]},{title:"OR Number",field:"or_no",thComp:l["a"]},{title:"CR Number",field:"cr_no",thComp:l["a"]},{title:"Plate Number",field:"plate_no",thComp:l["a"]},{title:"Max Passenger",field:"max_passenger",thComp:l["a"]},{title:"Actions",thComp:l["a"],tdComp:r["a"],visible:!0,thClass:"text-right",tdClass:"text-right td-actions",colStyle:"width: 150px;"}],query:{sort:"id",order:"desc",limit:100,s:""},xprops:{module:"DriverUsersIndex",route:"vehicle",permission_prefix:"vehicle_"}}},beforeDestroy(){this.resetState()},computed:{...Object(i["c"])("VehicleIndex",["data","total","loading"])},watch:{query:{handler(t){this.setQuery(t),this.fetchIndexData()},deep:!0}},methods:{...Object(i["b"])("VehicleIndex",["fetchIndexData","setQuery","resetState"])}},d=c,u=a("2877"),p=Object(u["a"])(d,s,n,!1,null,null,null);e["default"]=p.exports},a8cd:function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dt-action-container"},[a("router-link",{staticClass:"btn btn-just-icon btn-round btn-link text-azure",attrs:{to:{name:t.xprops.route+".show",params:{id:t.row.id}}}},[a("i",{staticClass:"material-icons"},[t._v("remove_red_eye")])]),a("router-link",{staticClass:"btn btn-just-icon btn-round btn-link text-success",attrs:{to:{name:t.xprops.route+".edit",params:{id:t.row.id}}}},[a("i",{staticClass:"material-icons"},[t._v("edit")])]),a("a",{staticClass:"btn btn-just-icon btn-round btn-link text-rose",attrs:{href:"#",type:"button"},on:{click:function(e){return e.preventDefault(),t.destroyData(t.row.id)}}},[a("i",{staticClass:"material-icons"},[t._v("delete")])])],1)},n=[],i={props:["row","xprops"],data(){return{}},created(){},methods:{destroyData(t){this.$swal({title:"Are you sure?",text:"You won't be able to revert this!",type:"warning",showCancelButton:!0,confirmButtonText:"Delete",confirmButtonColor:"#dd4b39",focusCancel:!0,reverseButtons:!0}).then(e=>{e.value&&this.$store.dispatch(this.xprops.module+"/destroyData",t).then(t=>{this.$eventHub.$emit("delete-success")})})}}},r=i,l=a("2877"),o=Object(l["a"])(r,s,n,!1,null,null,null);e["a"]=o.exports},dda1:function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",[t._v("\n  "+t._s(t.$t(t.title))+"\n")])},n=[],i={props:["title"]},r=i,l=a("2877"),o=Object(l["a"])(r,s,n,!1,null,null,null);e["a"]=o.exports}}]);
  //# sourceMappingURL=chunk-aae87952.1c21150e.js.map