text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["TeamList"],{"192d":function(t,e,a){"use strict";a("9c32")},"49a1":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm"},[a("h2",{staticClass:"heading-margin"},[t._v("Team ("+t._s(t.teamData.length)+")")])]),a("div",{staticClass:"col-sm"},[a("router-link",{attrs:{to:"/dashboard/team/create"}},[a("button",{staticClass:"btn btn-secondary d-block ml-auto heading-margin",attrs:{type:"button"}},[t._v(" Add Team Member ")])])],1)]),a("Table",{staticClass:"table-hover table-striped",attrs:{columns:t.table.columns,data:t.teamData,tableType:"team",setShowDeleteDialogFlag:t.setTeamDataFlags}}),a("DeleteDialog",{attrs:{showFlag:t.showFlag,item:"Team Member",deleteAction:t.removeTeam,setShowDeleteDialogFlag:t.setTeamDataFlags}})],1)},o=[],s=(a("8e6e"),a("ac6a"),a("cadf"),a("456d"),a("96cf"),a("3b8d")),r=a("bd86"),i=a("2f62"),l=a("6e87"),c=a("1011"),u=a("50e7");function d(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function m(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?d(Object(a),!0).forEach((function(e){Object(r["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var b={data:function(){return{showFlag:!1,targetId:null,locationInDataArray:null,table:{columns:["Id","Name","Title","Order","Published","Profile Image","Actions"]}}},computed:m({},Object(i["d"])({teamData:function(t){return t.team.team}})),methods:m(m({},Object(i["b"])({fetchTeam:l["a"].team.actions.FETCH_TEAM,deleteTeamMember:l["a"].team.actions.DELETE_TEAM_MEMBER})),{},{removeTeam:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={teamMemberId:this.targetId,locationInDataArray:this.locationInDataArray},t.prev=1,t.next=4,this.deleteTeamMember(e);case 4:this.setTeamDataFlags(!1,null,null),this.notifyVue("Team Deleted Successfully","success"),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),this.notifyVue("Error Happened","danger");case 11:case"end":return t.stop()}}),t,this,[[1,8]])})));function e(){return t.apply(this,arguments)}return e}(),setTeamDataFlags:function(t,e,a){this.showFlag=t,this.targetId=e,this.locationInDataArray=a},notifyVue:function(t,e){this.$notifications.notify({message:"<span>".concat(t,"</span>"),horizontalAlign:"right",verticalAlign:"top",type:e})}}),components:{Table:c["a"],DeleteDialog:u["a"]},mounted:function(){var t={requestSource:"dashboard",showSpinner:!0};this.fetchTeam(t)}},f=b,h=(a("192d"),a("2877")),g=Object(h["a"])(f,n,o,!1,null,"81840044",null);e["default"]=g.exports},"50e7":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"delete-modal",style:t.showFlag?"display:block":"display:none",on:{click:function(e){return t.setShowDeleteDialogFlag(!1)}}},[a("div",{staticClass:"delete-modal-content",on:{click:function(t){t.stopPropagation()}}},[a("div",{staticClass:"delete-modal-header"},[a("span",{staticClass:"close",on:{click:function(e){return t.setShowDeleteDialogFlag(!1)}}},[t._v("×")]),a("h2",[t._v("Delete "+t._s(t.item))])]),a("div",{staticClass:"delete-modal-body"},[a("form",[a("div",{staticClass:"form-group delete-modal-body__text"},[a("p",[t._v("Do you want to delete this "+t._s(t.item.toLowerCase())+"?")])]),a("button",{staticClass:"btn float-right",attrs:{type:"button"},on:{click:function(e){return t.setShowDeleteDialogFlag(!1)}}},[t._v(" Cancel ")]),a("button",{staticClass:"btn btn-danger float-right",attrs:{type:"button"},on:{click:t.deleteAction}},[t._v(" Delete ")])])])])])},o=[],s={props:["showFlag","setShowDeleteDialogFlag","item","deleteAction"]},r=s,i=(a("f9a7"),a("2877")),l=Object(i["a"])(r,n,o,!1,null,"d3f2235c",null);e["a"]=l.exports},"6c8e":function(t,e,a){},"9c32":function(t,e,a){},f9a7:function(t,e,a){"use strict";a("6c8e")}}]);
  //# sourceMappingURL=TeamList.c0a253d4.js.map