text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ServicesList"],{"15bd":function(e,t,a){"use strict";a("b092")},"50e7":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"delete-modal",style:e.showFlag?"display:block":"display:none",on:{click:function(t){return e.setShowDeleteDialogFlag(!1)}}},[a("div",{staticClass:"delete-modal-content",on:{click:function(e){e.stopPropagation()}}},[a("div",{staticClass:"delete-modal-header"},[a("span",{staticClass:"close",on:{click:function(t){return e.setShowDeleteDialogFlag(!1)}}},[e._v("×")]),a("h2",[e._v("Delete "+e._s(e.item))])]),a("div",{staticClass:"delete-modal-body"},[a("form",[a("div",{staticClass:"form-group delete-modal-body__text"},[a("p",[e._v("Do you want to delete this "+e._s(e.item.toLowerCase())+"?")])]),a("button",{staticClass:"btn float-right",attrs:{type:"button"},on:{click:function(t){return e.setShowDeleteDialogFlag(!1)}}},[e._v(" Cancel ")]),a("button",{staticClass:"btn btn-danger float-right",attrs:{type:"button"},on:{click:e.deleteAction}},[e._v(" Delete ")])])])])])},r=[],i={props:["showFlag","setShowDeleteDialogFlag","item","deleteAction"]},n=i,c=(a("f9a7"),a("2877")),o=Object(c["a"])(n,s,r,!1,null,"d3f2235c",null);t["a"]=o.exports},"6c8e":function(e,t,a){},b092:function(e,t,a){},d9a3:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm"},[a("h2",{staticClass:"heading-margin"},[e._v("Services ("+e._s(e.getServicesDataLength)+")")])]),a("div",{staticClass:"col-sm"},[a("router-link",{attrs:{to:"/dashboard/services/create"}},[a("button",{staticClass:"btn btn-secondary d-block ml-auto heading-margin",attrs:{type:"button"}},[e._v(" Add Service ")])])],1)]),a("Table",{staticClass:"table-hover table-striped",attrs:{columns:e.table.columns,data:e.getServicesData,tableType:"services",setShowDeleteDialogFlag:e.setServiceDataFlags}}),a("DeleteDialog",{attrs:{showFlag:e.showFlag,item:"Service",deleteAction:e.removeService,setShowDeleteDialogFlag:e.setServiceDataFlags}})],1)},r=[],i=(a("8e6e"),a("ac6a"),a("cadf"),a("456d"),a("96cf"),a("3b8d")),n=a("bd86"),c=a("2f62"),o=a("6e87"),l=a("1011"),u=a("50e7");function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function v(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var g={data:function(){return{showFlag:!1,targetId:null,locationInDataArray:null,table:{columns:["Id","Title","Order","Featured","Published","Admin","Description","Card Image","Cover Image","Slider Image","Actions"]}}},computed:v(v({},Object(c["d"])({servicesData:function(e){return e.services.services}})),{},{getServicesData:function(){return this.servicesData.data||[]},getServicesDataLength:function(){return this.servicesData.data?this.servicesData.data.length:0}}),methods:v(v({},Object(c["b"])({fetchServices:o["a"].services.actions.FETCH_SERVICES,deleteService:o["a"].services.actions.DELETE_SERVICE})),{},{removeService:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={id:this.targetId,locationInDataArray:this.locationInDataArray},e.prev=1,e.next=4,this.deleteService(t);case 4:this.setServiceDataFlags(!1,null,null),this.notifyVue("Service Deleted Successfully","success"),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](1),this.notifyVue("Error Happened","danger");case 11:case"end":return e.stop()}}),e,this,[[1,8]])})));function t(){return e.apply(this,arguments)}return t}(),setServiceDataFlags:function(e,t,a){this.showFlag=e,this.targetId=t,this.locationInDataArray=a},notifyVue:function(e,t){this.$notifications.notify({message:"<span>".concat(e,"</span>"),horizontalAlign:"right",verticalAlign:"top",type:t})}}),components:{Table:l["a"],DeleteDialog:u["a"]},mounted:function(){var e={first:100,page:1},t={data:e,requestSource:"dashboard",showSpinner:!0};this.fetchServices(t)}},h=g,f=(a("15bd"),a("2877")),b=Object(f["a"])(h,s,r,!1,null,"dd7a09d6",null);t["default"]=b.exports},f9a7:function(e,t,a){"use strict";a("6c8e")}}]);
  //# sourceMappingURL=ServicesList.0d0e7590.js.map