text: !function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=680)}([function(t,e){t.exports=function(t,e,n,i,s,a){var r,o=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(r=t,o=t.default);var u,l="function"==typeof o?o.options:o;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),s&&(l._scopeId=s),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=i),u){var d=l.functional,p=d?l.render:l.beforeCreate;d?(l._injectStyles=u,l.render=function(t,e){return u.call(e),p(t,e)}):l.beforeCreate=p?[].concat(p,u):[u]}return{esModule:r,exports:o,options:l}}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var s=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(i),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(a).concat([s]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},s=0;s<this.length;s++){var a=this[s][0];"number"==typeof a&&(i[a]=!0)}for(s=0;s<t.length;s++){var r=t[s];"number"==typeof r[0]&&i[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),e.push(r))}},e}},function(t,e,n){var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var s=n(100),a={},r=i&&(document.head||document.getElementsByTagName("head")[0]),o=null,c=0,u=!1,l=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t){for(var e=0;e<t.length;e++){var n=t[e],i=a[n.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](n.parts[s]);for(;s<n.parts.length;s++)i.parts.push(_(n.parts[s]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var r=[];for(s=0;s<n.parts.length;s++)r.push(_(n.parts[s]));a[n.id]={id:n.id,refs:1,parts:r}}}}function m(){var t=document.createElement("style");return t.type="text/css",r.appendChild(t),t}function _(t){var e,n,i=document.querySelector("style["+p+'~="'+t.id+'"]');if(i){if(u)return l;i.parentNode.removeChild(i)}if(f){var s=c++;i=o||(o=m()),e=g.bind(null,i,s,!1),n=g.bind(null,i,s,!0)}else i=m(),e=function(t,e){var n=e.css,i=e.media,s=e.sourceMap;i&&t.setAttribute("media",i);d.ssrId&&t.setAttribute(p,e.id);s&&(n+="\n/*# sourceURL="+s.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */");if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}t.exports=function(t,e,n,i){u=n,d=i||{};var r=s(t,e);return h(r),function(e){for(var n=[],i=0;i<r.length;i++){var o=r[i];(c=a[o.id]).refs--,n.push(c)}e?h(r=s(t,e)):r=[];for(i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete a[c.id]}}}};var v=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function g(t,e,n,i){var s=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,s);else{var a=document.createTextNode(s),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t&&t.__esModule?t:{default:t}}(n(69));var s={data:function(){return{}},computed:{task_start_field:function(){return!!PM_Vars.is_pro&&this.getSettings("task_start_field",!1)},is_single_list:function(){return this.$store.state.projectTaskLists.is_single_list},is_single_task:function(){return this.$store.state.projectTaskLists.is_single_task},can_create_list:function(){return this.user_can("create_list")},can_create_task:function(){return this.user_can("create_task")},isArchivedPage:function(){return"task_lists_archive"==this.$route.name||"task_lists_archive_pagination"==this.$route.name}},methods:{can_complete_task:function(t){return!!this.isArchivedTaskList(t)||!t.meta.can_complete_task},can_edit_task_list:function(t){var e=PM_Vars.current_user;return!!this.is_manager()||t.creator.data.id==e.ID},can_edit_task:function(t){var e=PM_Vars.current_user;return!!this.is_manager()||(!(void 0!==t.id||!this.can_create_task)||t.creator.data.id==e.ID)},isInboxList:function(t){return this.isInbox(t)},isInbox:function(t){return this.$store.state.project.list_inbox==t&1},isArchivedList:function(t){return"archived"===t.status},isArchivedTaskList:function(t){return void 0!==t.task_list&&"archived"===t.task_list.data.status},getProgressStyle:function(t){return void 0===t?0:{width:this.getProgressPercent(t)+"%"}},getProgressPercent:function(t){if(void 0===t)return 0;var e=parseInt(t.meta.total_incomplete_tasks)+parseInt(t.meta.total_complete_tasks),n=100*t.meta.total_complete_tasks/e;return isNaN(n)?0:n.toFixed(0)},getLists:function(t){var e=this,n={condition:{with:"incomplete_tasks",per_page:this.getSettings("list_per_page",10),page:this.setCurrentPageNumber(),status:"task_lists_archive"==this.$route.name||"task_lists_archive_pagination"==this.$route.name?0:1},callback:!1},i=(t=jQuery.extend(!0,n,t),pm_apply_filters("before_get_task_list",t.condition)),s=this.generateConditions(i),a={url:e.base_url+"/pm/v2/projects/"+e.$route.params.project_id+"/task-lists?"+s,success:function(n){n.data.map(function(t,n){e.addMetaList(t),void 0!==t.incomplete_tasks&&t.incomplete_tasks.data.map(function(t){e.addTaskMeta(t)}),void 0!==t.complete_tasks&&t.complete_tasks.data.map(function(t){e.addTaskMeta(t)})}),e.$root.$store.state.projectTaskListLoaded=!0,e.$store.commit("projectTaskLists/setLists",n.data),e.$store.commit("projectTaskLists/setListsMeta",n.meta.pagination),e.listTemplateAction(),"function"==typeof t.callback&&t.callback.call(e,n.data)},error:function(t){t.responseJSON.message.map(function(t,e){pm.Toastr.error(t)})}};e.httpRequest(a)},getList:function(t){var e=this,n=(t=jQuery.extend(!0,{condition:{with:"incomplete_tasks"},list_id:!1,callback:!1},t),e.generateConditions(t.condition)),i={type:"GET",url:e.base_url+"/pm/v2/projects/"+e.project_id+"/task-lists/"+t.list_id+"?"+n,success:function(n){e.addMetaList(n.data),void 0!==n.data.comments&&n.data.comments.data.map(function(t){e.addListCommentMeta(t)}),void 0!==n.data.incomplete_tasks&&n.data.incomplete_tasks.data.map(function(t){e.addTaskMeta(t)}),void 0!==n.data.complete_tasks&&n.data.complete_tasks.data.map(function(t){e.addTaskMeta(t)}),"function"==typeof t.callback&&t.callback.call(e,n),pm.NProgress.done()}};t.list_id&&e.httpRequest(i)},addList:function(t){var e=this,n=(t=jQuery.extend(!0,{data:{order:0},callback:!1},t),pm_apply_filters("before_task_list_save",t.data)),i={url:e.base_url+"/pm/v2/projects/"+e.project_id+"/task-lists",data:n,type:"POST",success:function(n){e.addMetaList(n.data),n.data.incomplete_tasks={data:[]},e.$store.commit("projectTaskLists/afterNewList",n.data),e.$store.commit("projectTaskLists/afterNewListupdateListsMeta"),e.$store.commit("updateProjectMeta","total_task_lists"),e.$store.commit("updateProjectMeta","total_activities"),e.showHideListForm(!1),pm.Toastr.success(n.message),"function"==typeof t.callback&&t.callback.call(e,n),pmBus.$emit("pm_after_create_list",n)},error:function(n){if(500==n.status&&n.responseJSON.message.map(function(t,e){pm.Toastr.error(t)}),400==n.status){var i=n.responseJSON.data.params;for(var s in i)pm.Toastr.error(i[s][0])}"function"==typeof t.callback&&t.callback.call(e,n)}};e.httpRequest(i)},updateList:function(t){var e=this,n=(t=jQuery.extend(!0,{data:{id:0},callback:!1},t),pm_apply_filters("before_task_list_save",t.data)),i={url:e.base_url+"/pm/v2/projects/"+e.project_id+"/task-lists/"+n.id+"/update?with=comments,incomplete_tasks",data:n,type:"POST",success:function(n){e.addMetaList(n.data),pm.Toastr.success(n.message),e.$store.commit("projectTaskLists/afterUpdateList",n.data),e.showHideListForm(!1,e.list),"function"==typeof t.callback&&t.callback.call(e,n),e.$store.commit("updateProjectMeta","total_activities"),pmBus.$emit("pm_after_update_list",n)},error:function(n){if(500==n.status&&n.responseJSON.message.map(function(t,e){pm.Toastr.error(t)}),400==n.status){var i=n.responseJSON.data.params;for(var s in i)pm.Toastr.error(i[s][0])}"function"==typeof t.callback&&t.callback.call(e,n)}};e.httpRequest(i)},modifyList:function(t){var e={data:t};this.updateList(e)},deleteList:function(t){if(confirm(this.__("Are you sure?","wedevs-project-manager"))){var e=this,n=(t=jQuery.extend(!0,{list_id:!1,callback:!1},t),{url:e.base_url+"/pm/v2/projects/"+e.project_id+"/task-lists/"+t.list_id+"/delete",type:"POST",success:function(n){e.$store.commit("projectTaskLists/afterDeleteList",t.list_id),pm.Toastr.success(n.message),e.listTemplateAction(),e.$store.commit("decrementProjectMeta","total_task_lists"),e.$store.commit("updateProjectMeta","total_activities"),"function"==typeof t.callback&&t.callback.call(e,n)},error:function(t){t.responseJSON.message.map(function(t,e){pm.Toastr.error(t)})}});t.list_id&&e.httpRequest(n)}},getTask:function(t){var e=this,n={condition:{with:""},task_id:!1,project_id:void 0===this.$route.params.project_id?t.project_id:this.$route.params.project_id,callback:!1},i=(t=jQuery.extend(!0,n,t),e.generateConditions(t.condition)),s={type:"GET",url:e.base_url+"/pm/v2/projects/"+t.project_id+"/tasks/"+t.task_id+"?"+i,success:function(n){"function"==typeof t.callback&&t.callback.call(e,n),pm.NProgress.done()}};t.task_id&&e.httpRequest(s)},addTask:function(t,e){var n=this;e=e||{};void 0===(t=jQuery.extend(!0,{data:{},callback:!1},t)).data.board_id&&(t.data.board_id=this.getInboxId(),t.data.list_id=this.getInboxId());var i=pm_apply_filters("before_task_save",t.data);i=pm.hooks.applyFilters("before_task_save",i);var s={url:n.base_url+"/pm/v2/projects/"+t.data.project_id+"/tasks",type:"POST",data:i,success:function(i){n.addTaskMeta(i.data),n.$store.commit("projectTaskLists/afterNewTask",{list_id:t.data.list_id,task:i.data,list:e}),n.$store.commit("updateProjectMeta","total_activities"),pm.Toastr.success(i.message),n.showHideTaskFrom(!1,n.list,n.task),"function"==typeof t.callback&&t.callback(n,i),pmBus.$emit("pm_after_create_task",i,t),n.$emit("pm_after_create_task",i,t)},error:function(e){if(500==e.status&&e.responseJSON.message.map(function(t,e){pm.Toastr.error(t)}),400==e.status){var i=e.responseJSON.data.params;for(var s in i)pm.Toastr.error(i[s][0])}"function"==typeof t.callback&&t.callback(n,e)}};n.httpRequest(s)},updateTask:function(t){var e=this,n={data:{project_id:e.project_id?e.project_id:""},callback:!1},i=(t=jQuery.extend(!0,n,t),pm_apply_filters("before_task_save",t.data)),s=(i=pm.hooks.applyFilters("before_task_save",i),{url:e.base_url+"/pm/v2/projects/"+t.data.project_id+"/tasks/"+t.data.task_id+"/update",type:"POST",data:i,success:function(n){e.addTaskMeta(n.data),e.$store.commit("projectTaskLists/afterUpdateTask",{list_id:t.data.list_id,task:n.data}),e.$store.commit("updateProjectMeta","total_activities"),pm.Toastr.success(n.message),e.showHideTaskFrom(!1,e.list,e.task),"function"==typeof t.callback&&t.callback(e,n),pmBus.$emit("pm_after_update_task",n,t)},error:function(n){if(500==n.status&&n.responseJSON.message.map(function(t,e){pm.Toastr.error(t)}),400==n.status){var i=n.responseJSON.data.params;for(var s in i)pm.Toastr.error(i[s][0])}"function"==typeof t.callback&&t.callback.call(e,n)}});e.httpRequest(s)},modifyTask:function(t){if(void 0!==t.id){var e={data:t};this.updateTask(e)}},deleteTask:function(t){if(confirm(this.__("Are you sure?","wedevs-project-manager"))){var e=this,n=(t=jQuery.extend(!0,{callback:!1},t),{url:e.base_url+"/pm/v2/projects/"+e.project_id+"/tasks/"+t.task.id+"/delete",type:"POST",success:function(n){e.$store.commit("projectTaskLists/afterDeleteTask",{task:t.task,list:t.list}),pm.Toastr.success(n.message),e.$store.commit("updateProjectMeta","total_activities"),"function"==typeof t.callback&&t.callback.call(e,n)},error:function(t){t.responseJSON.message.map(function(t,e){pm.Toastr.error(t)})}});this.httpRequest(n)}},addComment:function(t){var e=this,n="",i=(t=jQuery.extend(!0,{data:{},callback:!1},t),new FormData);n=e.project_id?e.project_id:t.data.project_id,i.append("content",t.data.content),i.append("mentioned_users",t.data.mentioned_users),i.append("commentable_id",t.data.commentable_id),i.append("commentable_type",t.data.commentable_type),i.append("notify_users",t.data.notify_users),i.append("is_admin",PM_Vars.is_admin),t.data.deleted_files.map(function(t){i.append("files_to_delete[]",t)}),t.data.files.map(function(t){if(void 0===t.attachment_id){var n=e.dataURLtoFile(t.thumb,t.name);i.append("files[]",n)}});var s={url:e.base_url+"/pm/v2/projects/"+n+"/comments",type:"POST",data:i,cache:!1,contentType:!1,processData:!1,success:function(n){e.addListCommentMeta(n.data),e.$root.$emit("after_comment"),pm.Toastr.success(n.message),e.$store.commit("updateProjectMeta","total_activities"),"function"==typeof t.callback&&t.callback.call(e,n)},error:function(n){if(500==n.status&&n.responseJSON.message.map(function(t,e){pm.Toastr.error(t)}),400==n.status){var i=n.responseJSON.data.params;for(var s in i)pm.Toastr.error(i[s][0])}"function"==typeof t.callback&&t.callback.call(e,n)}};e.httpRequest(s)},updateComment:function(t){var e=this,n="",i=(t=jQuery.extend(!0,{data:{},callback:!1},t),new FormData);n=e.project_id?e.project_id:t.data.project_id,i.append("content",t.data.content),i.append("mentioned_users",t.data.mentioned_users),i.append("commentable_id",t.data.commentable_id),i.append("commentable_type",t.data.commentable_type),i.append("notify_users",t.data.notify_users),t.data.deleted_files.map(function(t){i.append("files_to_delete[]",t)}),t.data.files.map(function(t){if(void 0===t.attachment_id){var n=e.dataURLtoFile(t.thumb,t.name);i.append("files[]",n)}});var s={url:e.base_url+"/pm/v2/projects/"+n+"/comments/"+t.data.id,type:"POST",data:i,cache:!1,contentType:!1,processData:!1,success:function(n){e.addListCommentMeta(n.data),pm.Toastr.success(n.message),e.$root.$emit("after_comment"),e.$store.commit("updateProjectMeta","total_activities"),"function"==typeof t.callback&&t.callback.call(e,n)},error:function(n){500==n.status&&n.responseJSON.message.map(function(t,e){pm.Toastr.error(t)}),"function"==typeof t.callback&&t.callback.call(e,n)}};e.httpRequest(s)},showHideListForm:function(t,e){e=e||!1;(e=!jQuery.isEmptyObject(e)&&e)&&void 0!==e.edit_mode?"toggle"===t?this.$store.commit("projectTaskLists/showHideListFormStatus",{status:!e.edit_mode,list:e}):this.$store.commit("projectTaskLists/showHideListFormStatus",{status:t,list:e}):this.$store.commit("projectTaskLists/showHideListFormStatus",{status:t,list:!1})},showHideTaskFrom:function(t,e,n){e=e||!1;(n=n||!1)&&(n.edit_mode="toggle"===t?!n.edit_mode:t),e&&(e.show_task_form="toggle"===t?!e.show_task_form:t)},setCurrentPageNumber:function(){var t=this.$route.params.current_page_number?this.$route.params.current_page_number:1;return this.current_page_number=t,t},addMetaList:function(t){var e=this.$store.state.projectTaskLists.expandListIds;t.edit_mode=!1,t.show_task_form=!1,t.task_loading_status=!1,t.expand=-1===e.findIndex(function(e){return e==t.id}),t.moreMenu=!1},addTaskMeta:function(t){t.edit_mode=!1,t.moreMenu=!1},addListCommentMeta:function(t){t.edit_mode=!1},showHideListCommentEditForm:function(t){t.edit_mode=!t.edit_mode},isIncompleteLoadMoreActive:function(t){if(void 0!==this.$route.query.filterTask&&"active"==this.$route.query.filterTask&&"complete"==this.$route.query.status)return!1;if(void 0===t.incomplete_tasks)return!1;var e=t.meta.total_incomplete_tasks;return t.incomplete_tasks.data.length!==e},loadMoreIncompleteTasks:function(t,e){if(e=e||!1,!t.task_loading_status){var n=this;t.task_loading_status=!0;t.meta.total_incomplete_tasks;var i=this.getSettings("incomplete_tasks_per_page",10),s={condition:{with:"incomplete_tasks",incomplete_task_page:Math.ceil(t.incomplete_tasks.data.length/i)+1},list_id:t.id,callback:function(i){n.$store.commit("projectTaskLists/setTasks",i.data),t.task_loading_status=!1,"function"==typeof e&&e(i)}};this.getList(s)}},isCompleteLoadMoreActive:function(t){if(void 0===t.complete_tasks)return!1;var e=t.meta.total_complete_tasks;return t.complete_tasks.data.length!==e},loadMoreCompleteTasks:function(t,e){if(!t.task_loading_status){t.task_loading_status=!0;var n=this.getSettings("complete_tasks_per_page",10),i={condition:{with:"complete_tasks",complete_task_page:Math.ceil(t.complete_tasks.data.length/n)+1},list_id:t.id,callback:function(n){this.$store.commit("projectTaskLists/setTasks",n.data),void 0!==e&&e(n),t.task_loading_status=!1}};this.getList(i)}},shortDateFormat:function(t){if(""!=t){return pm.Moment(t).format(String("MMM DD"))}},dateTimeFormat:function(t){if(""!=t){var e="MMMM DD YYYY",n="h:mm:ss a";"Y-m-d"==PM_Vars.wp_date_format?e="YYYY-MM-DD":"m/d/Y"==PM_Vars.wp_date_format?e="MM/DD/YYYY":"d/m/Y"==PM_Vars.wp_date_format&&(e="DD/MM/YYYY"),"g:i a"==PM_Vars.wp_time_format?n="h:m a":"g:i A"==PM_Vars.wp_time_format?n="h:m A":"H:i"==PM_Vars.wp_time_format&&(n="HH:m");var i=String(e+", "+n);return pm.Moment(t).format(i)}},getIndex:function(t,e,n){var i=!1;return t.map(function(t,s){t[n]==e&&(i=s)}),i},taskOrder:function(t){this.taskReceive(t)},showHideTaskCommentEditForm:function(t,e){var n=this.getIndex(this.$store.state.projectTaskLists.lists,t.post_parent,"ID"),i=(this.getIndex(this.$store.state.projectTaskLists.lists[n].tasks,t.ID,"ID"),this.getIndex(this.task.comments,e,"comment_ID")),s=this;this.task.comments[i].edit_mode?PM_Component_jQuery.slide(e,function(){s.task.comments[i].edit_mode=!1}):(s.task.comments[i].edit_mode=!0,pm.Vue.nextTick(function(){PM_Component_jQuery.slide(e)}))},get_project_users_by_role:function(t){return this.$store.state.projectTaskLists.project_users.filter(function(e){return e.role==t})},get_project_users_id_by_role:function(t){var e=[];return this.$store.state.projectTaskLists.projectTaskLists.project_users.map(function(n){n.role==t&&e.push(n.id),void 0===t&&e.push(n.id)}),e},getUsers:function(t){if(!t)return[];var e=t.map(function(t){return parseInt(t)});return this.$store.state.projectTaskLists.projectTaskLists.project_users.filter(function(t){return e.indexOf(parseInt(t.id))>=0})},taskDateWrap:function(t){if(!t)return"";if(t=new Date(t),t=pm.Moment(t).format("YYYY-MM-DD"),!pm.Moment(t).isValid())return!1;var e=pm.Moment().format("YYYY-MM-DD"),n=pm.Moment(t).format("YYYY-MM-DD");return pm.Moment(e).isSameOrBefore(n)?"pm-current-date":"pm-due-date"},completedTaskWrap:function(t){if(!t)return!1;if(t=new Date(t),t=pm.Moment(t).format("YYYY-MM-DD"),!pm.Moment(t).isValid())return!1;var e=pm.Moment().format("YYYY-MM-DD"),n=pm.Moment(t).format("YYYY-MM-DD");return!pm.Moment(e).isSameOrBefore(n)&&"pm-task-done"},isBetweenDate:function(t,e,n){return!!(t&&e&&n)},taskDoneUndone:function(t){var e=this,n={data:{task_id:"",status:0,project_id:e.project_id?e.project_id:""},callback:!1},i=(t=jQuery.extend(!0,n,t),{url:e.base_url+"/pm/v2/projects/"+t.data.project_id+"/tasks/"+t.data.task_id+"/change-status",type:"POST",data:t.data,success:function(n){"function"==typeof t.callback&&t.callback(n),e.$store.commit("updateProjectMeta","total_activities")}});e.httpRequest(i)},isEmptyObject:function(t){return 0===(0,i.default)(t).length},singleTask:function(t,e){this.$store.commit("projectTaskLists/single_task_popup",{task:t})},listTemplateAction:function(){var t,e;this.$store.state.projectTaskLists.lists.length?(t=!1,e=!0):(t=!0,e=!1),this.$store.commit("projectTaskLists/balankTemplateStatus",t),this.$store.commit("projectTaskLists/listTemplateStatus",e)},is_assigned:function(t){return!0},privateClass:function(t){if(void 0!==t)return"1"==t?"dashicons dashicons-lock":"dashicons dashicons-unlock"},listLockUnlock:function(t){if(!this.isArchivedList(t)){var e=this,n={is_private:"0"==t.meta.privacy?1:0},i={url:e.base_url+"/pm/v2/projects/"+e.project_id+"/task-lists/privacy/"+t.id,type:"POST",data:n,success:function(i){e.$store.commit("projectTaskLists/updateListPrivacy",{privacy:n.is_private,project_id:e.project_id,list_id:t.id})},error:function(t){}};e.httpRequest(i)}},TaskLockUnlock:function(t){if(!this.isArchivedTaskList(t)){var e=this,n={is_private:"0"==t.meta.privacy?1:0},i={url:e.base_url+"/pm/v2/projects/"+e.project_id+"/tasks/privacy/"+t.id,type:"POST",data:n,success:function(i){e.$store.commit("projectTaskLists/updateTaskPrivacy",{privacy:n.is_private,project_id:e.project_id,task_id:t.id,list_id:t.task_list_id})},error:function(t){t.responseJSON.message.map(function(t,e){pm.Toastr.error(t)})}};e.httpRequest(i)}},taskTimeWrap:function(t){if(this.getSettings("task_start_field",!1)){if(void 0===t.due_date&&void 0===t.start_at)return!1;if(!t.due_date.date&&!t.start_at.date)return!1}else{if(void 0===t.due_date)return!1;if(!t.due_date.date)return!1}return!0},getMatches:function(t,e,n){n||(n=1);for(var i,s=[];i=e.exec(t);)s.push(i[n]);return s},taskReceive:function(t,e){var n=this,i={url:n.base_url+"/pm/v2/projects/"+n.project_id+"/tasks/sorting",type:"POST",data:t,success:function(i){i.data.task.data&&n.addTaskMeta(i.data.task.data),"1"==t.receive&&n.$store.commit("projectTaskLists/receiveTask",{receive:t,res:i.data}),void 0!==e&&e(i,t)},error:function(t){}};n.httpRequest(i)},listOrder:function(t){this.$store.commit("projectTaskLists/listOrdering",t);var e={url:this.base_url+"/pm/v2/projects/"+this.project_id+"/lists/sorting",type:"POST",data:t,success:function(t){},error:function(t){}};this.httpRequest(e)},showHideTaskMoreMenu:function(t,e){e=e||{},t.moreMenu=!t.moreMenu;var n=void 0===e.complete_tasks?[]:e.complete_tasks.data,i=void 0===e.incomplete_tasks?[]:e.incomplete_tasks.data;n.forEach(function(e){t.id!=e.id&&(e.moreMenu=!1)}),i.forEach(function(e){t.id!=e.id&&(e.moreMenu=!1)})}}};e.default=s},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=!n(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(36)("wks"),s=n(25),a=n(5).Symbol,r="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=r&&a[t]||(r?a:s)("Symbol."+t))}).store=i},function(t,e,n){var i=n(5),s=n(3),a=n(92),r=n(13),o=n(11),c=function(t,e,n){var u,l,d,p=t&c.F,f=t&c.G,h=t&c.S,m=t&c.P,_=t&c.B,v=t&c.W,g=f?s:s[e]||(s[e]={}),b=g.prototype,y=f?i:h?i[e]:(i[e]||{}).prototype;for(u in f&&(n=e),n)(l=!p&&y&&void 0!==y[u])&&o(g,u)||(d=l?y[u]:n[u],g[u]=f&&"function"!=typeof y[u]?n[u]:_&&l?a(d,i):v&&y[u]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((g.virtual||(g.virtual={}))[u]=d,t&c.R&&b&&!b[u]&&r(b,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var i=n(20),s=n(53),a=n(32),r=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),s)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(56),s=n(33);t.exports=function(t){return i(s(t))}},function(t,e,n){var i=n(9),s=n(21);t.exports=n(6)?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(57),s=n(0)(i.a,null,!1,null,null,null);e.default=s.exports},function(t,e,n){var i=n(8),s=n(3),a=n(14);t.exports=function(t,e){var n=(s.Object||{})[t]||Object[t],r={};r[t]=e(n),i(i.S+i.F*a(function(){n(1)}),"Object",r)}},function(t,e,n){var i=n(55),s=n(37);t.exports=Object.keys||function(t){return i(t,s)}},function(t,e,n){"use strict";var i=n(70),s=n(128),a=n(0)(i.a,s.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(80),s=n(171),a=n(0)(i.a,s.a,!1,null,null,null);e.default=a.exports},function(t,e,n){var i=n(10);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(33);t.exports=function(t){return Object(i(t))}},,function(t,e){t.exports=!0},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},,function(t,e){t.exports={}},function(t,e,n){"use strict";(function(t){var i,s,a,r=v(n(130)),o=v(n(133)),c=v(n(136)),u=v(n(139)),l=v(n(142)),d=v(n(145)),p=v(n(147)),f=v(n(150)),h=v(n(69)),m=v(n(71)),_=v(n(59));function v(t){return t&&t.__esModule?t:{default:t}}!function(n,r){"object"==(0,_.default)(e)&&"object"==(0,_.default)(t)?t.exports=r():(s=[],void 0===(a="function"==typeof(i=r)?i.apply(e,s):i)||(t.exports=a))}(0,function(){return function(t){function e(i){if(n[i])return n[i].exports;var s=n[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||(0,m.default)(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=66)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(10),s=n(43),a=n(31),r=m.default;e.f=n(1)?m.default:function(t,e,n){if(i(t),e=a(e,!0),i(n),s)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(77),s=n(21);t.exports=function(t){return i(s(t))}},function(t,e,n){var i=n(9),s=n(52),a=n(18),r=n(55),o=n(53),c=function t(e,n,c){var u,l,d,p,f=e&t.F,h=e&t.G,m=e&t.P,_=e&t.B,v=h?i:e&t.S?i[n]||(i[n]={}):(i[n]||{}).prototype,g=h?s:s[n]||(s[n]={}),b=g.prototype||(g.prototype={});for(u in h&&(c=n),c)d=((l=!f&&v&&void 0!==v[u])?v:c)[u],p=_&&l?o(d,i):m&&"function"==typeof d?o(Function.call,d):d,v&&r(v,u,d,e&t.U),g[u]!=d&&a(g,u,p),m&&b[u]!=d&&(b[u]=d)};i.core=s,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var i=n(3),s=n(15);t.exports=n(1)?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(29)("wks"),s=n(16),a=n(0).Symbol,r="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=r&&a[t]||(r?a:s)("Symbol."+t))}).store=i},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var i=n(13);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==(void 0===t?"undefined":(0,_.default)(t))?null!==t:"function"==typeof t}},function(t,e,n){var i=n(48),s=n(22);t.exports=h.default||function(t){return i(t,s)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var i=n(109),s=n(110);t.exports=n(35)?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==(void 0===t?"undefined":(0,_.default)(t))?null!==t:"function"==typeof t}},function(t,e,n){var i=n(8);t.exports=function(t,e){return!!t&&i(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(0),s=n(11),a=n(74),r=n(6),o=function t(e,n,o){var c,u,l,d=e&t.F,p=e&t.G,f=e&t.S,h=e&t.P,m=e&t.B,_=e&t.W,v=p?s:s[n]||(s[n]={}),g=v.prototype,b=p?i:f?i[n]:(i[n]||{}).prototype;for(c in p&&(o=n),o)(u=!d&&b&&void 0!==b[c])&&c in v||(l=u?b[c]:o[c],v[c]=p&&"function"!=typeof b[c]?o[c]:m&&u?a(l,i):_&&b[c]==l?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):h&&"function"==typeof l?a(Function.call,l):l,h&&((v.virtual||(v.virtual={}))[c]=l,e&t.R&&g&&!g[c]&&r(g,c,l)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,t.exports=o},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(3).f,s=n(2),a=n(7)("toStringTag");t.exports=function(t,e,n){t&&!s(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){var i=n(29)("keys"),s=n(16);t.exports=function(t){return i[t]||(i[t]=s(t))}},function(t,e,n){var i=n(0),s=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return s[t]||(s[t]={})}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(13);t.exports=function(t,e){if(!i(t))return t;var n,s;if(e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;if("function"==typeof(n=t.valueOf)&&!i(s=n.call(t)))return s;if(!e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(0),s=n(11),a=n(25),r=n(33),o=n(3).f;t.exports=function(t){var e=s.Symbol||(s.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||o(e,t,{value:r.f(t)})}},function(t,e,n){e.f=n(7)},function(t,e,n){var i=n(53),s=n(36),a=n(57),r=n(37),o=n(104);t.exports=function(t,e){var n=1==t,c=2==t,u=3==t,l=4==t,d=6==t,p=5==t||d,f=e||o;return function(e,o,h){for(var m,_,v=a(e),g=s(v),b=i(o,h,3),y=r(g.length),k=0,w=n?f(e,y):c?f(e,0):void 0;y>k;k++)if((p||k in g)&&(_=b(m=g[k],k,v),t))if(n)w[k]=_;else if(_)switch(t){case 3:return!0;case 5:return m;case 6:return k;case 2:w.push(m)}else if(l)return!1;return d?-1:u||l?l:w}}},function(t,e,n){t.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(51);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(56),s=Math.min;t.exports=function(t){return t>0?s(i(t),9007199254740991):0}},function(t,e,n){var i=n(111)("wks"),s=n(58),a=n(9).Symbol,r="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=r&&a[t]||(r?a:s)("Symbol."+t))}).store=i},function(t,e,n){function i(t){return!(0===t||(!Array.isArray(t)||0!==t.length)&&t)}function s(t){return function(){return!t.apply(void 0,arguments)}}function a(t,e,n,i){return t.filter(function(t){return function(t,e){return void 0===t&&(t="undefined"),null===t&&(t="null"),!1===t&&(t="false"),-1!==t.toString().toLowerCase().indexOf(e.trim())}(i(t,n),e)})}function r(t){return t.filter(function(t){return!t.$isLabel})}function o(t,e){return function(n){return n.reduce(function(n,i){return i[t]&&i[t].length?(n.push({$groupLabel:i[e],$isLabel:!0}),n.concat(i[t])):n},[])}}var c=n(65),u=n.n(c),l=n(59),d=(n.n(l),n(122)),p=(n.n(d),n(64)),f=n.n(p),h=n(120),m=(n.n(h),n(121)),_=(n.n(m),n(117)),v=(n.n(_),n(123)),g=(n.n(v),n(118)),b=(n.n(g),n(119)),y=(n.n(b),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce(function(t,e){return e(t)},t)}});e.a={data:function(){return{search:"",isOpen:!1,prefferedOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},value:{type:null,default:function(){return[]}},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default:function(t,e){return i(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default:function(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1}},mounted:function(){this.multiple||this.clearOnSelect||console.warn("[Vue-Multiselect warn]: ClearOnSelect and Multiple props can’t be both set to false."),!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue:function(){return this.value||0===this.value?Array.isArray(this.value)?this.value:[this.value]:[]},filteredOptions:function(){var t=this.search||"",e=t.toLowerCase().trim(),n=this.options.concat();return n=this.internalSearch?this.groupValues?this.filterAndFlat(n,e,this.label):a(n,e,this.label,this.customLabel):this.groupValues?o(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(s(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&("bottom"===this.tagPosition?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys:function(){var t=this;return this.trackBy?this.internalValue.map(function(e){return e[t.trackBy]}):this.internalValue},optionKeys:function(){var t=this;return(this.groupValues?this.flatAndStrip(this.options):this.options).map(function(e){return t.customLabel(e,t.label).toString().toLowerCase()})},currentOptionLabel:function(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:function(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("input",this.multiple?[]:null))},search:function(){this.$emit("search-change",this.search,this.id)}},methods:{getValue:function(){return this.multiple?this.internalValue:0===this.internalValue.length?null:this.internalValue[0]},filterAndFlat:function(t,e,n){return y(function(t,e,n,i,s){return function(r){return r.map(function(r){var o;if(!r[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];var c=a(r[n],t,e,s);return c.length?(o={},f()(o,i,r[i]),f()(o,n,c),o):[]})}}(e,n,this.groupValues,this.groupLabel,this.customLabel),o(this.groupValues,this.groupLabel))(t)},flatAndStrip:function(t){return y(o(this.groupValues,this.groupLabel),r)(t)},updateSearch:function(t){this.search=t},isExistingOption:function(t){return!!this.options&&this.optionKeys.indexOf(t)>-1},isSelected:function(t){var e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},getOptionLabel:function(t){if(i(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;var e=this.customLabel(t,this.label);return i(e)?"":e},select:function(t,e){if(t.$isLabel&&this.groupSelect)this.selectGroup(t);else if(!(-1!==this.blockKeys.indexOf(e)||this.disabled||t.$isDisabled||t.$isLabel)&&(!this.max||!this.multiple||this.internalValue.length!==this.max)&&("Tab"!==e||this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t))return void("Tab"!==e&&this.removeElement(t));this.$emit("select",t,this.id),this.multiple?this.$emit("input",this.internalValue.concat([t]),this.id):this.$emit("input",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup:function(t){var e=this,n=this.options.find(function(n){return n[e.groupLabel]===t.$groupLabel});if(n)if(this.wholeGroupSelected(n)){this.$emit("remove",n[this.groupValues],this.id);var i=this.internalValue.filter(function(t){return-1===n[e.groupValues].indexOf(t)});this.$emit("input",i,this.id)}else{var a=n[this.groupValues].filter(s(this.isSelected));this.$emit("select",a,this.id),this.$emit("input",this.internalValue.concat(a),this.id)}},wholeGroupSelected:function(t){return t[this.groupValues].every(this.isSelected)},removeElement:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.disabled){if(!this.allowEmpty&&this.internalValue.length<=1)return void this.deactivate();var n="object"===u()(t)?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.$emit("remove",t,this.id),this.multiple){var i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("input",i,this.id)}else this.$emit("input",null,this.id);this.closeOnSelect&&e&&this.deactivate()}},removeLastElement:function(){-1===this.blockKeys.indexOf("Delete")&&0===this.search.length&&Array.isArray(this.internalValue)&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate:function(){var t=this;this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&0===this.pointer&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.$nextTick(function(){return t.$refs.search.focus()})):this.$el.focus(),this.$emit("open",this.id))},deactivate:function(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search.blur():this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle:function(){this.isOpen?this.deactivate():this.activate()},adjustPosition:function(){if("undefined"!=typeof window){var t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||"below"===this.openDirection||"bottom"===this.openDirection?(this.prefferedOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.prefferedOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}}}},function(t,e,n){var i=n(59);n.n(i),e.a={data:function(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition:function(){return this.pointer*this.optionHeight},visibleElements:function(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions:function(){this.pointerAdjust()},isOpen:function(){this.pointerDirty=!1}},methods:{optionHighlight:function(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight:function(t,e){var n=this;if(!this.groupSelect)return["multiselect__option--disabled"];var i=this.options.find(function(t){return t[n.groupLabel]===e.$groupLabel});return[this.groupSelect?"multiselect__option--group":"multiselect__option--disabled",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(i)}]},addPointerElement:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Enter").key;this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward:function(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward:function(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset:function(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust:function(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet:function(t){this.pointer=t,this.pointerDirty=!0}}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(13),s=n(0).document,a=i(s)&&i(s.createElement);t.exports=function(t){return a?s.createElement(t):{}}},function(t,e,n){t.exports=!n(1)&&!n(12)(function(){return 7!=Object.defineProperty(n(42)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(25),s=n(23),a=n(49),r=n(6),o=n(2),c=n(24),u=n(79),l=n(27),d=n(86),p=n(7)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,m,_,v,g){u(n,e,m);var b,y,k,w=function(t){if(!f&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",j="values"==_,C=!1,M=t.prototype,S=M[p]||M["@@iterator"]||_&&M[_],T=S||w(_),P=_?j?w("entries"):T:void 0,O="Array"==e&&M.entries||S;if(O&&(k=d(O.call(new t)))!==Object.prototype&&(l(k,x,!0),i||o(k,p)||r(k,p,h)),j&&S&&"values"!==S.name&&(C=!0,T=function(){return S.call(this)}),i&&!g||!f&&!C&&M[p]||r(M,p,T),c[e]=T,c[x]=h,_)if(b={values:j?T:w("values"),keys:v?T:w("keys"),entries:P},g)for(y in b)y in M||a(M,y,b[y]);else s(s.P+s.F*(f||C),e,b);return b}},function(t,e,n){var i=n(10),s=n(83),a=n(22),r=n(28)("IE_PROTO"),o=function(){},c=function(){var t,e=n(42)("iframe"),i=a.length;for(e.style.display="none",n(76).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c.prototype[a[i]];return c()};t.exports=f.default||function(t,e){var n;return null!==t?(o.prototype=i(t),n=new o,o.prototype=null,n[r]=t):n=c(),void 0===e?n:s(n,e)}},function(t,e,n){var i=n(48),s=n(22).concat("length","prototype");e.f=p.default||function(t){return i(t,s)}},function(t,e){e.f=d.default},function(t,e,n){var i=n(2),s=n(4),a=n(73)(!1),r=n(28)("IE_PROTO");t.exports=function(t,e){var n,o=s(t),c=0,u=[];for(n in o)n!=r&&i(o,n)&&u.push(n);for(;e.length>c;)i(o,n=e[c++])&&(~a(u,n)||u.push(n));return u}},function(t,e,n){t.exports=n(6)},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(50);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,s){return t.call(e,n,i,s)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(51);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(9),s=n(18),a=n(107),r=n(58)("src"),o=Function.toString,c=(""+o).split("toString");n(52).inspectSource=function(t){return o.call(t)},(t.exports=function(t,e,n,o){var u="function"==typeof n;u&&(a(n,"name")||s(n,"name",e)),t[e]!==n&&(u&&(a(n,r)||s(n,r,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:o?t[e]?t[e]=n:s(t,e,n):(delete t[e],s(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[r]||o.call(this)})},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(17);t.exports=function(t){return Object(i(t))}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){var i=n(5),s=n(34)(5),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),i(i.P+i.F*a,"Array",{find:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),n(99)("find")},function(t,e,n){var i=n(67),s=n(126),a=function(t){n(124)},r=n(125)(i.a,s.a,!1,a,null,null);e.a=r.exports},function(t,e,n){t.exports=n(68)},function(t,e,n){t.exports=n(69)},function(t,e,n){t.exports=n(70)},function(t,e,n){var i=n(61);t.exports=function(t,e,n){return e in t?i(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){function i(t){return(i="function"==typeof r&&"symbol"==(void 0===a?"undefined":(0,_.default)(a))?function(t){return void 0===t?"undefined":(0,_.default)(t)}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":void 0===t?"undefined":(0,_.default)(t)})(t)}function s(e){return"function"==typeof r&&"symbol"===i(a)?t.exports=s=function(t){return i(t)}:t.exports=s=function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":i(t)},s(e)}var a=n(63),r=n(62);t.exports=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(60),s=n(39),a=n(40);n.d(e,"Multiselect",function(){return i.a}),n.d(e,"multiselectMixin",function(){return s.a}),n.d(e,"pointerMixin",function(){return a.a}),e.default=i.a},function(t,e,n){var i=n(39),s=n(40);e.a={name:"vue-multiselect",mixins:[i.a,s.a],props:{name:{type:String,default:""},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:function(t){return"and ".concat(t," more")}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{isSingleLabelVisible:function(){return this.singleValue&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible:function(){return!(this.internalValue.length||this.searchable&&this.isOpen)},visibleValues:function(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue:function(){return this.internalValue[0]},deselectLabelText:function(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText:function(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText:function(){return this.showLabels?this.selectLabel:""},selectGroupLabelText:function(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText:function(){return this.showLabels?this.selectedLabel:""},inputStyle:function(){if(this.multiple&&this.value&&this.value.length)return this.isOpen?{width:"auto"}:{width:"0",position:"absolute",padding:"0"}},contentStyle:function(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove:function(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.prefferedOpenDirection},showSearchInput:function(){return this.searchable&&(!this.hasSingleSelectedSlot||!this.visibleSingleValue&&0!==this.visibleSingleValue||this.isOpen)}}}},function(t,e,n){n(92);var i=n(11).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){n(95),n(93),n(96),n(97),t.exports=n(11).Symbol},function(t,e,n){n(94),n(98),t.exports=n(33).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var i=n(4),s=n(89),a=n(88);t.exports=function(t){return function(e,n,r){var o,c=i(e),u=s(c.length),l=a(r,u);if(t&&n!=n){for(;u>l;)if((o=c[l++])!=o)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var i=n(71);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,s){return t.call(e,n,i,s)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(14),s=n(47),a=n(26);t.exports=function(t){var e=i(t),n=s.f;if(n)for(var r,o=n(t),c=a.f,u=0;o.length>u;)c.call(t,r=o[u++])&&e.push(r);return e}},function(t,e,n){t.exports=n(0).document&&document.documentElement},function(t,e,n){var i=n(41);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(41);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(45),s=n(15),a=n(27),r={};n(6)(r,n(7)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(r,{next:s(1,n)}),a(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var i=n(14),s=n(4);t.exports=function(t,e){for(var n,a=s(t),r=i(a),o=r.length,c=0;o>c;)if(a[n=r[c++]]===e)return n}},function(t,e,n){var i=n(16)("meta"),s=n(13),a=n(2),r=n(3).f,o=0,c=l.default||function(){return!0},d=!n(12)(function(){return c((0,u.default)({}))}),p=function(t){r(t,i,{value:{i:"O"+ ++o,w:{}}})},f=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!s(t))return"symbol"==(void 0===t?"undefined":(0,_.default)(t))?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!c(t))return"F";if(!e)return"E";p(t)}return t[i].i},getWeak:function(t,e){if(!a(t,i)){if(!c(t))return!0;if(!e)return!1;p(t)}return t[i].w},onFreeze:function(t){return d&&f.NEED&&c(t)&&!a(t,i)&&p(t),t}}},function(t,e,n){var i=n(3),s=n(10),a=n(14);t.exports=n(1)?c.default:function(t,e){s(t);for(var n,r=a(e),o=r.length,c=0;o>c;)i.f(t,n=r[c++],e[n]);return t}},function(t,e,n){var i=n(26),s=n(15),a=n(4),r=n(31),c=n(2),u=n(43),l=o.default;e.f=n(1)?l:function(t,e){if(t=a(t),e=r(e,!0),u)try{return l(t,e)}catch(t){}if(c(t,e))return s(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(4),s=n(46).f,a={}.toString,r="object"==("undefined"==typeof window?"undefined":(0,_.default)(window))&&window&&p.default?(0,p.default)(window):[];t.exports.f=function(t){return r&&"[object Window]"==a.call(t)?function(t){try{return s(t)}catch(t){return r.slice()}}(t):s(i(t))}},function(t,e,n){var i=n(2),s=n(90),a=n(28)("IE_PROTO"),o=Object.prototype;t.exports=r.default||function(t){return t=s(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},function(t,e,n){var i=n(30),s=n(21);t.exports=function(t){return function(e,n){var a,r,o=String(s(e)),c=i(n),u=o.length;return c<0||c>=u?t?"":void 0:(a=o.charCodeAt(c))<55296||a>56319||c+1===u||(r=o.charCodeAt(c+1))<56320||r>57343?t?o.charAt(c):a:t?o.slice(c,c+2):r-56320+(a-55296<<10)+65536}}},function(t,e,n){var i=n(30),s=Math.max,a=Math.min;t.exports=function(t,e){return(t=i(t))<0?s(t+e,0):a(t,e)}},function(t,e,n){var i=n(30),s=Math.min;t.exports=function(t){return t>0?s(i(t),9007199254740991):0}},function(t,e,n){var i=n(21);t.exports=function(t){return Object(i(t))}},function(t,e,n){var i=n(72),s=n(80),a=n(24),r=n(4);t.exports=n(44)(Array,"Array",function(t,e){this._t=r(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,s(1)):s(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var i=n(23);i(i.S+i.F*!n(1),"Object",{defineProperty:n(3).f})},function(t,e){},function(t,e,n){var i=n(87)(!0);n(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var i=n(0),s=n(2),a=n(1),r=n(23),o=n(49),c=n(82).KEY,u=n(12),l=n(29),d=n(27),p=n(16),f=n(7),h=n(33),m=n(32),v=n(81),g=n(75),b=n(78),y=n(10),k=n(4),w=n(31),x=n(15),j=n(45),C=n(85),M=n(84),S=n(3),T=n(14),P=M.f,O=S.f,$=C.f,L=i.Symbol,D=i.JSON,A=D&&D.stringify,E=f("_hidden"),F=f("toPrimitive"),R={}.propertyIsEnumerable,V=l("symbol-registry"),N=l("symbols"),I=l("op-symbols"),H=Object.prototype,U="function"==typeof L,Y=i.QObject,B=!Y||!Y.prototype||!Y.prototype.findChild,q=a&&u(function(){return 7!=j(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=P(H,e);i&&delete H[e],O(t,e,n),i&&t!==H&&O(H,e,i)}:O,Q=function(t){var e=N[t]=j(L.prototype);return e._k=t,e},z=U&&"symbol"==(0,_.default)(L.iterator)?function(t){return"symbol"==(void 0===t?"undefined":(0,_.default)(t))}:function(t){return t instanceof L},G=function t(e,n,i){return e===H&&t(I,n,i),y(e),n=w(n,!0),y(i),s(N,n)?(i.enumerable?(s(e,E)&&e[E][n]&&(e[E][n]=!1),i=j(i,{enumerable:x(0,!1)})):(s(e,E)||O(e,E,x(1,{})),e[E][n]=!0),q(e,n,i)):O(e,n,i)},J=function(t,e){y(t);for(var n,i=g(e=k(e)),s=0,a=i.length;a>s;)G(t,n=i[s++],e[n]);return t},W=function(t){var e=R.call(this,t=w(t,!0));return!(this===H&&s(N,t)&&!s(I,t))&&(!(e||!s(this,t)||!s(N,t)||s(this,E)&&this[E][t])||e)},K=function(t,e){if(t=k(t),e=w(e,!0),t!==H||!s(N,e)||s(I,e)){var n=P(t,e);return!n||!s(N,e)||s(t,E)&&t[E][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=$(k(t)),i=[],a=0;n.length>a;)s(N,e=n[a++])||e==E||e==c||i.push(e);return i},Z=function(t){for(var e,n=t===H,i=$(n?I:k(t)),a=[],r=0;i.length>r;)!s(N,e=i[r++])||n&&!s(H,e)||a.push(N[e]);return a};U||(o((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0);return a&&B&&q(H,t,{configurable:!0,set:function e(n){this===H&&e.call(I,n),s(this,E)&&s(this[E],t)&&(this[E][t]=!1),q(this,t,x(1,n))}}),Q(t)}).prototype,"toString",function(){return this._k}),M.f=K,S.f=G,n(46).f=C.f=X,n(26).f=W,n(47).f=Z,a&&!n(25)&&o(H,"propertyIsEnumerable",W,!0),h.f=function(t){return Q(f(t))}),r(r.G+r.W+r.F*!U,{Symbol:L});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)f(tt[et++]);for(tt=T(f.store),et=0;tt.length>et;)m(tt[et++]);r(r.S+r.F*!U,"Symbol",{for:function(t){return s(V,t+="")?V[t]:V[t]=L(t)},keyFor:function(t){if(z(t))return v(V,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),r(r.S+r.F*!U,"Object",{create:function(t,e){return void 0===e?j(t):J(j(t),e)},defineProperty:G,defineProperties:J,getOwnPropertyDescriptor:K,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),D&&r(r.S+r.F*(!U||u(function(){var t=L();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!z(t)){for(var e,n,i=[t],s=1;arguments.length>s;)i.push(arguments[s++]);return"function"==typeof(e=i[1])&&(n=e),!n&&b(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!z(e))return e}),i[1]=e,A.apply(D,i)}}}),L.prototype[F]||n(6)(L.prototype,F,L.prototype.valueOf),d(L,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(t,e,n){n(32)("asyncIterator")},function(t,e,n){n(32)("observable")},function(t,e,n){n(91);for(var i=n(0),s=n(6),a=n(24),r=n(7)("toStringTag"),o=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var u=o[c],l=i[u],d=l&&l.prototype;d&&!d[r]&&s(d,r,u),a[u]=a.Array}},function(t,e,n){var i=n(38)("unscopables"),s=Array.prototype;void 0==s[i]&&n(18)(s,i,{}),t.exports=function(t){s[i][t]=!0}},function(t,e,n){var i=n(19);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var i=n(115),s=n(37),a=n(114);t.exports=function(t){return function(e,n,r){var o,c=i(e),u=s(c.length),l=a(r,u);if(t&&n!=n){for(;u>l;)if((o=c[l++])!=o)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var i=n(50),s=n(57),a=n(36),r=n(37);t.exports=function(t,e,n,o,c){i(e);var u=s(t),l=a(u),d=r(u.length),p=c?d-1:0,f=c?-1:1;if(n<2)for(;;){if(p in l){o=l[p],p+=f;break}if(p+=f,c?p<0:d<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:d>p;p+=f)p in l&&(o=e(o,l[p],p,u));return o}},function(t,e,n){var i=n(19),s=n(54),a=n(38)("species");t.exports=function(t){var e;return s(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!s(e.prototype)||(e=void 0),i(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var i=n(103);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){var i=n(19),s=n(9).document,a=i(s)&&i(s.createElement);t.exports=function(t){return a?s.createElement(t):{}}},function(t,e,n){var i=n(18),s=n(55),a=n(8),r=n(17),o=n(38);t.exports=function(t,e,n){var c=o(t),u=n(r,c,""[t]),l=u[0],d=u[1];a(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(s(String.prototype,t,l),i(RegExp.prototype,c,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)}))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(35)&&!n(8)(function(){return 7!=Object.defineProperty(n(105)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(100),s=n(108),a=n(116),r=m.default;e.f=n(35)?m.default:function(t,e,n){if(i(t),e=a(e,!0),i(n),s)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(9),s=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return s[t]||(s[t]={})}},function(t,e,n){var i=n(5),s=n(17),a=n(8),r=n(113),o="["+r+"]",c=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),l=function(t,e,n){var s={},o=a(function(){return!!r[t]()||"​"!="​"[t]()}),c=s[t]=o?e(d):r[t];n&&(s[n]=c),i(i.P+i.F*o,"String",s)},d=l.trim=function(t,e){return t=String(s(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=l},function(t,e){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(t,e,n){var i=n(56),s=Math.max,a=Math.min;t.exports=function(t,e){return(t=i(t))<0?s(t+e,0):a(t,e)}},function(t,e,n){var i=n(36),s=n(17);t.exports=function(t){return i(s(t))}},function(t,e,n){var i=n(19);t.exports=function(t,e){if(!i(t))return t;var n,s;if(e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;if("function"==typeof(n=t.valueOf)&&!i(s=n.call(t)))return s;if(!e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(5),s=n(34)(2);i(i.P+i.F*!n(20)([].filter,!0),"Array",{filter:function(t){return s(this,t,arguments[1])}})},function(t,e,n){var i=n(5),s=n(101)(!1),a=[].indexOf,r=!!a&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(r||!n(20)(a)),"Array",{indexOf:function(t){return r?a.apply(this,arguments)||0:s(this,t,arguments[1])}})},function(t,e,n){var i=n(5);i(i.S,"Array",{isArray:n(54)})},function(t,e,n){var i=n(5),s=n(34)(1);i(i.P+i.F*!n(20)([].map,!0),"Array",{map:function(t){return s(this,t,arguments[1])}})},function(t,e,n){var i=n(5),s=n(102);i(i.P+i.F*!n(20)([].reduce,!0),"Array",{reduce:function(t){return s(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){n(106)("search",1,function(t,e,n){return[function(n){var i=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,i):new RegExp(n)[e](String(i))},n]})},function(t,e,n){n(112)("trim",function(t){return function(){return t(this,3)}})},function(t,e){},function(t,e){t.exports=function(t,e,n,i,s,a){var r,o=t=t||{},c=(0,_.default)(t.default);"object"!==c&&"function"!==c||(r=t,o=t.default);var u,l="function"==typeof o?o.options:o;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),s&&(l._scopeId=s),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=i),u){var d=l.functional,p=d?l.render:l.beforeCreate;d?(l._injectStyles=u,l.render=function(t,e){return u.call(e),p(t,e)}):l.beforeCreate=p?[].concat(p,u):[u]}return{esModule:r,exports:o,options:l}}},function(t,e,n){var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"multiselect",class:{"multiselect--active":t.isOpen,"multiselect--disabled":t.disabled,"multiselect--above":t.isAbove},attrs:{tabindex:t.searchable?-1:t.tabindex},on:{focus:function(e){t.activate()},blur:function(e){!t.searchable&&t.deactivate()},keydown:[function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,"ArrowDown")?e.target!==e.currentTarget?null:(e.preventDefault(),void t.pointerForward()):null},function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,"ArrowUp")?e.target!==e.currentTarget?null:(e.preventDefault(),void t.pointerBackward()):null},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")||!t._k(e.keyCode,"tab",9,e.key,"Tab")?(e.stopPropagation(),e.target!==e.currentTarget?null:void t.addPointerElement(e)):null}],keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,"Escape"))return null;t.deactivate()}}},[t._t("caret",[n("div",{staticClass:"multiselect__select",on:{mousedown:function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}}})],{toggle:t.toggle}),t._v(" "),t._t("clear",null,{search:t.search}),t._v(" "),n("div",{ref:"tags",staticClass:"multiselect__tags"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visibleValues.length>0,expression:"visibleValues.length > 0"}],staticClass:"multiselect__tags-wrap"},[t._l(t.visibleValues,function(e){return[t._t("tag",[n("span",{staticClass:"multiselect__tag"},[n("span",{domProps:{textContent:t._s(t.getOptionLabel(e))}}),t._v(" "),n("i",{staticClass:"multiselect__tag-icon",attrs:{"aria-hidden":"true",tabindex:"1"},on:{keydown:function(n){if(!("button"in n)&&t._k(n.keyCode,"enter",13,n.key,"Enter"))return null;n.preventDefault(),t.removeElement(e)},mousedown:function(n){n.preventDefault(),t.removeElement(e)}}})])],{option:e,search:t.search,remove:t.removeElement})]})],2),t._v(" "),t.internalValue&&t.internalValue.length>t.limit?[t._t("limit",[n("strong",{staticClass:"multiselect__strong",domProps:{textContent:t._s(t.limitText(t.internalValue.length-t.limit))}})])]:t._e(),t._v(" "),n("transition",{attrs:{name:"multiselect__loading"}},[t._t("loading",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"multiselect__spinner"})])],2),t._v(" "),n("input",{directives:[{name:"show",rawName:"v-show",value:t.isOpen&&t.searchable,expression:"isOpen && searchable"}],ref:"search",staticClass:"multiselect__input",style:t.inputStyle,attrs:{name:t.name,id:t.id,type:"text",autocomplete:"off",placeholder:t.placeholder,disabled:t.disabled,tabindex:t.tabindex},domProps:{value:t.search},on:{input:function(e){t.updateSearch(e.target.value)},focus:function(e){e.preventDefault(),t.activate()},blur:function(e){e.preventDefault(),t.deactivate()},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,"Escape"))return null;t.deactivate()},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,"ArrowDown"))return null;e.preventDefault(),t.pointerForward()},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,"ArrowUp"))return null;e.preventDefault(),t.pointerBackward()},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),e.stopPropagation(),e.target!==e.currentTarget?null:void t.addPointerElement(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete"]))return null;e.stopPropagation(),t.removeLastElement()}]}}),t._v(" "),t.isSingleLabelVisible?n("span",{staticClass:"multiselect__single",on:{mousedown:function(e){return e.preventDefault(),t.toggle(e)}}},[t._t("singleLabel",[[t._v(t._s(t.currentOptionLabel))]],{option:t.singleValue})],2):t._e(),t._v(" "),t.isPlaceholderVisible?n("span",{on:{mousedown:function(e){return e.preventDefault(),t.toggle(e)}}},[t._t("placeholder",[n("span",{staticClass:"multiselect__single"},[t._v("\n            "+t._s(t.placeholder)+"\n          ")])])],2):t._e()],2),t._v(" "),n("transition",{attrs:{name:"multiselect"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],ref:"list",staticClass:"multiselect__content-wrapper",style:{maxHeight:t.optimizedHeight+"px"},on:{focus:t.activate,mousedown:function(t){t.preventDefault()}}},[n("ul",{staticClass:"multiselect__content",style:t.contentStyle},[t._t("beforeList"),t._v(" "),t.multiple&&t.max===t.internalValue.length?n("li",[n("span",{staticClass:"multiselect__option"},[t._t("maxElements",[t._v("Maximum of "+t._s(t.max)+" options selected. First remove a selected option to select another.")])],2)]):t._e(),t._v(" "),!t.max||t.internalValue.length<t.max?t._l(t.filteredOptions,function(e,i){return n("li",{key:i,staticClass:"multiselect__element"},[e&&(e.$isLabel||e.$isDisabled)?t._e():n("span",{staticClass:"multiselect__option",class:t.optionHighlight(i,e),attrs:{"data-select":e&&e.isTag?t.tagPlaceholder:t.selectLabelText,"data-selected":t.selectedLabelText,"data-deselect":t.deselectLabelText},on:{click:function(n){n.stopPropagation(),t.select(e)},mouseenter:function(e){if(e.target!==e.currentTarget)return null;t.pointerSet(i)}}},[t._t("option",[n("span",[t._v(t._s(t.getOptionLabel(e)))])],{option:e,search:t.search})],2),t._v(" "),e&&(e.$isLabel||e.$isDisabled)?n("span",{staticClass:"multiselect__option",class:t.groupHighlight(i,e),attrs:{"data-select":t.groupSelect&&t.selectGroupLabelText,"data-deselect":t.groupSelect&&t.deselectGroupLabelText},on:{mouseenter:function(e){if(e.target!==e.currentTarget)return null;t.groupSelect&&t.pointerSet(i)},mousedown:function(n){n.preventDefault(),t.selectGroup(e)}}},[t._t("option",[n("span",[t._v(t._s(t.getOptionLabel(e)))])],{option:e,search:t.search})],2):t._e()])}):t._e(),t._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:t.showNoResults&&0===t.filteredOptions.length&&t.search&&!t.loading,expression:"showNoResults && (filteredOptions.length === 0 && search && !loading)"}]},[n("span",{staticClass:"multiselect__option"},[t._t("noResult",[t._v("No elements found. Consider changing the search query.")])],2)]),t._v(" "),t._t("afterList")],2)])])],2)},staticRenderFns:[]};e.a=i}])})}).call(e,n(129)(t))},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(74),s=n(157);var a=function(t){n(155)},r=n(0)(i.a,s.a,!1,a,null,null);e.default=r.exports},function(t,e,n){var i=n(10);t.exports=function(t,e){if(!i(t))return t;var n,s;if(e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;if("function"==typeof(n=t.valueOf)&&!i(s=n.call(t)))return s;if(!e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(36)("keys"),s=n(25);t.exports=function(t){return i[t]||(i[t]=s(t))}},function(t,e,n){var i=n(3),s=n(5),a=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(24)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(20),s=n(62),a=n(37),r=n(35)("IE_PROTO"),o=function(){},c=function(){var t,e=n(54)("iframe"),i=a.length;for(e.style.display="none",n(111).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c.prototype[a[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(o.prototype=i(t),n=new o,o.prototype=null,n[r]=t):n=c(),void 0===e?n:s(n,e)}},function(t,e,n){var i=n(9).f,s=n(11),a=n(7)("toStringTag");t.exports=function(t,e,n){t&&!s(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){e.f=n(7)},function(t,e,n){var i=n(5),s=n(3),a=n(24),r=n(41),o=n(9).f;t.exports=function(t){var e=s.Symbol||(s.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||o(e,t,{value:r.f(t)})}},function(t,e,n){t.exports={default:n(101),__esModule:!0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},,function(t,e,n){"use strict";e.__esModule=!0;var i=function(t){return t&&t.__esModule?t:{default:t}}(n(71));e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},,,,,function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e,n){t.exports=!n(6)&&!n(14)(function(){return 7!=Object.defineProperty(n(54)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(10),s=n(5).document,a=i(s)&&i(s.createElement);t.exports=function(t){return a?s.createElement(t):{}}},function(t,e,n){var i=n(11),s=n(12),a=n(105)(!1),r=n(35)("IE_PROTO");t.exports=function(t,e){var n,o=s(t),c=0,u=[];for(n in o)n!=r&&i(o,n)&&u.push(n);for(;e.length>c;)i(o,n=e[c++])&&(~a(u,n)||u.push(n));return u}},function(t,e,n){var i=n(44);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var i=n(58),s=n.n(i);function a(){var t={};return weDevs_PM_Components.map(function(e,n){e.property.mixins?e.property.mixins.push(s.a):e.property.mixins=[s.a],t[e.component]=e.property}),t}var r={props:{hook:{type:String,required:!0},actionData:{type:[Object,Array,String,Number],default:function(){return{}}}},components:a(),render:function(t){this.$options.components=a();var e=[],n=this;return weDevs_PM_Components.map(function(t,i){t.hook==n.hook&&e.push(Vue.compile("<"+t.component+' :actionData="actionData"></'+t.component+">").render.call(n))}),t("span",{class:"pm-action-wrap"},e)}};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(n(59)),s=a(n(4));function a(t){return t&&t.__esModule?t:{default:t}}e.default={data:function(){return{base_url:PM_Vars.base_url+"/"+PM_Vars.rest_api_prefix,project_id:void 0!==this.$route&&parseInt(this.$route.params.project_id),current_user:PM_Vars.current_user,avatar_url:PM_Vars.avatar_url,text:PM_Vars.text,PM_Vars:PM_Vars,pm:pm,taskLists:s.default,currentDate:pm.Moment(new Date).format("YYYY-MM-DD"),randomNumber:[]}},created:function(){setLocaleData(PM_Vars.language.pm)},methods:{is_array:function(t){if("[object Array]"==Object.prototype.toString.call(t))return!0},is_object:function(t){if("[object Object]"==Object.prototype.toString.call(t))return!0},secondsToHms:function(t){return t=Number(t),{hour:Math.floor(t/3600),minute:Math.floor(t%3600/60),second:Math.floor(t%3600%60)}},hexToRgb:function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{0:parseInt(e[1],16),1:parseInt(e[2],16),2:parseInt(e[3],16)}:null},getTextColor:function(t){if("object"!==(void 0===t?"undefined":(0,i.default)(t))&&(t=this.hexToRgb(t)),null===t)return"";t[0],t[1],t[2];return Math.round((299*parseInt(t[0])+587*parseInt(t[1])+114*parseInt(t[2]))/1e3)>185?"#848484":"white"},getInboxId:function(){return this.$store.state.project.list_inbox},getUniqueRandomNumber:function(){var t=Math.floor(1e5*Math.random())+1;if(-1===this.randomNumber.indexOf(t))return this.randomNumber.push(t),t;this.getUniqueRandomNumber()},enableDisable:function(t,e){e=e||"",this[t]=""==e?!this[t]:e},__:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t,e){return __(t,e)}),sprintf:sprintf,user_can:function(t){return pmUserCan(t,this.$store.state.project)},is_user_in_project:function(){return pmIsUserInProject(this.$store.state.project)},is_manager:function(t){t=t||this.$store.state.project;return pmIsManager(t)},has_manage_capability:function(){return pmHasManageCapability()},has_create_capability:function(){return pmHasCreateCapability()},intersect:function(t,e){for(var n={},i=[],s=0;s<e.length;s++)n[e[s]]=!0;for(var a=0;a<t.length;a++)n[t[a]]&&i.push(t[a]);return i},can_edit_comment:function(t){var e=PM_Vars.current_user;return"task_activity"!=t.commentable_type&&(!!this.is_manager()||t.creator.data.id==e.ID)},pad2:function(t){return(t<10?"0":"")+t},stringToTime:function(t){var e=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%3600%60;return{hours:this.pad2(e),minutes:this.pad2(n),seconds:this.pad2(i)}},getFullDate:function(t){if(t)return t=new Date(t.replace(/-/g,"/")),pm.Moment(t).format("dddd, MMMM D YYYY, H:mm:ss")},getFullDateCustom:function(t){if(t)return t=new Date(t.replace(/-/g,"/")),pm.Moment(t).format("dddd, MMMM D YYYY")},relativeDate:function(t){if(t)return t=new Date(t.replace(/-/g,"/")),pm.Moment(t).fromNow()},shortDateFormat:function(t){if(t){t=new Date(t.replace(/-/g,"/")),t=pm.Moment(t).format("YYYY-MM-DD");return pm.Moment(t).format(String("DD MMM"))}},shortTimeFormat:function(t){if(t){t=new Date(t.replace(/-/g,"/"));return pm.Moment(t).format(String("hh:mm a"))}},ucfirst:function(t){return""==t||void 0===t?"":t.replace(/\w/,function(t){return t.toUpperCase()})},dateTimeFormat:function(t){if(t)return t=new Date(t.replace(/-/g,"/")),pm.Moment(t).format("hh:mm a")},dateFormat:function(t,e){e=e||"MMM D";if(t)return t=new Date(t.replace(/-/g,"/")),pm.Moment(t).format(e)},taskDateFormat:function(t){if(t)return t=new Date(t.replace(/-/g,"/")),pm.Moment(t).format("MMM D")},dateISO8601Format:function(t){return pm.Moment(t).format()},getSettings:function(t,e,n){e=void 0!==e&&e,n=void 0!==n&&n,PM_Vars.settings;return n?void 0===PM_Vars.settings[n]?e:void 0===PM_Vars.settings[n][t]?e:"true"===PM_Vars.settings[n][t]||"false"!==PM_Vars.settings[n][t]&&PM_Vars.settings[n][t]:void 0===PM_Vars.settings[t]?e:"true"==PM_Vars.settings[t]||"false"!=PM_Vars.settings[t]&&PM_Vars.settings[t]},dataURLtoFile:function(t,e){for(var n=t.split(","),i=n[0].match(/:(.*?);/)[1],s=atob(n[1]),a=s.length,r=new Uint8Array(a);a--;)r[a]=s.charCodeAt(a);return new File([r],e,{type:i})},httpRequest:function(t){return void 0===t.data&&(t.data={is_admin:PM_Vars.is_admin}),t.data.is_admin=void 0===t.data.is_admin?PM_Vars.is_admin:t.data.is_admin,t.beforeSend=void 0===t.beforeSend?function(t){t.setRequestHeader("Authorization_name",btoa("mslweiew")),t.setRequestHeader("Authorization_password",btoa("1$%#$8sgf&*FBI")),t.setRequestHeader("X-WP-Nonce",PM_Vars.permission)}:t.beforeSend,jQuery.ajax(t)},registerStore:function(t,e){if(void 0===e)return!1;if(void 0!==e)var n=e.mutations||{},i=e.state||{};this.$store.registerModule(t,{namespaced:!0,state:i,mutations:n})},newProject:function(t){var e=this;t=jQuery.extend(!0,{data:{title:"",categories:"",description:"",notify_users:"",assignees:"",status:"incomplete"}},t);t=pm_apply_filters("before_project_save",t);var n={type:"POST",url:this.base_url+"/pm/v2/projects/",data:t.data,success:function(n){jQuery("#pm-project-dialog").dialog("destroy"),e.$root.$store.commit("newProject",n.data),e.showHideProjectForm(!1),e.resetSelectedUsers(),pm.Toastr.success(n.message),"function"==typeof t.callback&&t.callback(n)},error:function(e){if(400==e.status){var n=e.responseJSON.data.params;for(var i in n)pm.Toastr.error(n[i][0])}500==e.status&&e.responseJSON.message.map(function(t,e){pm.Toastr.error(t)}),"function"==typeof t.callback&&t.callback(e)}};this.httpRequest(n)},formatUsers:function(t){var e=[];return t.map(function(t,n){e.push({user_id:t.id,role_id:t.roles.data[0].id})}),e},updateProject:function(t){var e=this;t=jQuery.extend(!0,{data:{status:"incomplete"},callback:!1},t);t=pm_apply_filters("before_project_save",t);var n={type:"POST",url:this.base_url+"/pm/v2/projects/"+t.data.id+"/update",data:t.data,success:function(n){e.$root.$store.commit("updateProject",n.data),pm.Toastr.success(n.message),e.showHideProjectForm(!1),jQuery("#pm-project-dialog").dialog("close"),e.resetSelectedUsers(),e.$store.commit("updateProjectMeta","total_activities"),"function"==typeof t.callback&&t.callback.call(e,n)},error:function(n){if(400==n.status){var i=n.responseJSON.data.params;for(var s in i)pm.Toastr.error(i[s][0])}500==n.status&&n.responseJSON.message.map(function(t,e){pm.Toastr.error(t)}),"function"==typeof t.callback&&t.callback.call(e,n)}};this.httpRequest(n)},resetSelectedUsers:function(){this.$root.$store.commit("resetSelectedUsers")},getProjects:function(t){var e=this,n={conditions:{status:"",project_transform:!0,per_page:this.getSettings("project_per_page",10),page:this.setCurrentPageNumber(),category:void 0!==this.$route.query.category?this.$route.query.category:""}},i=(t=jQuery.extend(!0,n,t),pm_apply_filters("before_get_project",t.conditions));i=e.generateConditions(i);var s={url:e.base_url+"/pm/v2/projects?"+i,data:t.conditions,success:function(n){n.data.map(function(t){e.addProjectMeta(t)}),e.$store.commit("setProjects",{projects:n.data}),e.$store.commit("setProjectsMeta",n.meta),pm.NProgress.done(),void 0!==t.callback&&t.callback(n.data),pmProjects=n.data}};e.httpRequest(s)},searchProjects:function(t){var e=this,n={conditions:{status:"",project_transform:!0,per_page:this.getSettings("project_per_page",10),page:this.setCurrentPageNumber(),category:void 0!==this.$route.query.category?this.$route.query.category:""}},i=(t=jQuery.extend(!0,n,t),pm_apply_filters("before_get_project",t.conditions));i=e.generateConditions(i);var s={url:e.base_url+"/pm/v2/projects/search?"+i,data:t.conditions,success:function(n){n.data.map(function(t){e.addProjectMeta(t)}),void 0!==t.callback&&t.callback(n.data)}};e.httpRequest(s)},setCurrentPageNumber:function(){var t=this.$route.params.current_page_number?this.$route.params.current_page_number:1;return this.current_page_number=t,t},getProject:function(t){var e=this,n={conditions:{},project_id:this.project_id,callback:!1},i=(t=jQuery.extend(!0,n,t),e.generateConditions(t.conditions));void 0!==t.project_id&&e.httpRequest({url:e.base_url+"/pm/v2/projects/"+t.project_id+"?"+i,success:function(n){"function"==typeof t.callback&&t.callback.call(e,n)},error:function(t){404===t.status&&pm.Toastr.success(t.responseJSON.message),e.$router.push({name:"project_lists"})}})},getUsers:function(t){var e=this,n=(t=jQuery.extend(!0,{data:{},conditions:{},callback:!1},t),e.generateConditions(t.conditions));void 0!==t.data.id&&e.httpRequest({url:e.base_url+"/pm/v2/users/?"+n,data:t.data,success:function(n){"function"==typeof t.callback&&t.callback.call(e,n)}})},getUser:function(t){var e=this,n=(t=jQuery.extend(!0,{data:{},conditions:{},callback:!1},t),e.generateConditions(t.conditions));void 0!==t.data.user_id&&e.httpRequest({url:e.base_url+"/pm/v2/users/"+t.data.user_id+"?"+n,success:function(n){"function"==typeof t.callback&&t.callback.call(e,n)}})},get_search_user:function(t){var e=this,n=(t=jQuery.extend(!0,{data:{},conditions:{},callback:!1},t),e.generateConditions(t.conditions)),i={url:e.base_url+"/pm/v2/users/search?"+n,success:function(n){"function"==typeof t.callback&&t.callback.call(e,n)}};return e.httpRequest(i)},getGloabalProject:function(t){var e={callback:function(t){this.addProjectMeta(t.data),this.$root.$store.commit("setProject",t.data),this.$root.$store.commit("setProjectMeta",t.meta),this.$root.$store.commit("setProjectUsers",t.data.assignees.data),pmBus.$emit("pm_after_fetch_project",t.data)}};t&&(e.project_id=t,this.project_id=t),this.$root.$store.state.project_switch=!1;var n=this.$root.$store.state.project;n.hasOwnProperty("id")&&n.id===this.project_id?pmBus.$emit("pm_after_fetch_project",n):(this.$root.$store.commit("setDefaultLoaded"),this.getProject(e))},addProjectMeta:function(t){t.edit_mode=!1,t.settings_hide=!1},getProjectCategories:function(t){t=t||!1;var e=this,n=0,i=e.$root.$store.state.categories;if(void 0!==e.$root.$store.state.categoryMeta.pagination&&(n=e.$root.$store.state.categoryMeta.pagination.total_pages),i.length&&1==n)return i;var s={per_page:-1,type:"project"};s=e.generateConditions(s);this.httpRequest({url:e.base_url+"/pm/v2/categories?"+s,success:function(n){e.$root.$store.commit("setCategories",n.data),e.$root.$store.commit("setCategoryMeta",n.meta),t&&t(n.data)}})},getRoles:function(t){t=t||!1;var e=this,n=e.$root.$store.state.roles;if(n.length)return t&&t(n),n;e.httpRequest({url:e.base_url+"/pm/v2/roles",success:function(n){e.$root.$store.commit("setRoles",n.data),t&&t(n.data)}})},getIndex:function(t,e,n){var i=!1;return jQuery.each(t,function(t,s){s[n]===e&&(i=t)}),i},showHideProjectForm:function(t){this.$store.commit("showHideProjectForm",t)},deleteFile:function(t,e){this.httpRequest({url:this.base_url+"/pm/v2/projects/"+this.project_id+"/files/"+t+"/delete",type:"POST",success:function(t){void 0!==e&&e(t.data)}})},userTaskProfileUrl:function(t){return this.myTaskRedirect(t)},getQueryParams:function(t){var e="";return jQuery.each(t,function(t,n){Array.isArray(n)?n.map(function(n,i){e=e+t+"="+n+"&"}):e=e+t+"="+n+"&"}),jQuery.each(this.$route.query,function(t,n){Array.isArray(n)?n.map(function(n,i){e=e+t+"="+n+"&"}):e=e+t+"="+n+"&"}),e=e.slice(0,-1)},setQuery:function(t){var e={};return jQuery.each(this.$route.query,function(t,n){Array.isArray(n)?(e[t]=[],n.map(function(n,i){e[t].push(n)})):n&&(e[t]=[n])}),jQuery.each(t,function(t,n){n?e[t]=[n]:delete e[t]}),e},pmDateISO8601Format:function(t,e){t=new Date(t+" "+e);return pm.Moment(t).format()},deleteProject:function(t,e){if(confirm(this.__("Are you sure to delete this project?","wedevs-project-manager"))){var n=this,i={url:n.base_url+"/pm/v2/projects/"+t+"/delete",type:"POST",success:function(i){n.$store.commit("afterDeleteProject",t),n.$store.commit("afterDeleteProjectCount",{project:e}),pm.Toastr.success(i.message);var s=n.$store.state.pagination.total_pages;!n.project_id&&n.$store.state.projects.length||(n.$router.push({name:"project_lists"}),s>1&&void 0===n.$route.params.current_page_number&&n.getProjects())}};n.httpRequest(i)}},addUserMeta:function(t){t.roles.data.length||(t.roles={data:[{description:"Co-Worker for project manager",id:2,title:"Co-Worker"}]})},projects_view_class:function(){return"grid_view"===this.$store.state.projects_view?"pm-project-grid":"pm-project-list"},generateConditions:function(t){var e="";return jQuery.isEmptyObject(t)?"":(jQuery.each(t,function(t,n){t&&(e=e+t+"="+n+"&")}),e.slice(0,-1))},getGlobalMilestones:function(t){var e=this,n=this.$root.$store.state.milestones;if(e.$root.$store.state.milestones_load)return"function"==typeof t&&t.call(e,n),n;var i={data:{status:1},url:e.base_url+"/pm/v2/projects/"+e.project_id+"/milestones",success:function(n){e.$root.$store.commit("setMilestones",n.data),"function"==typeof t&&t.call(e,n.data)}};e.httpRequest(i)},loadingStart:function(t,e){e=jQuery.extend(!0,{text:"",percent:"",duration:"",zIndex:"",setRelative:!1},e);jQuery("#"+t).preloader(e)},loadingStop:function(t){jQuery("#"+t).preloader("remove")},arrayDiffer:function(t,e){var n=[];return t.forEach(function(t){e.indexOf(t)>-1&&n.push(t)}),n},saveSettings:function(t,e,n,i){t=this.formatSettings(t),e=e||!1;i=i||!1;var s={url:e?this.base_url+"/pm/v2/projects/"+e+"/settings":this.base_url+"/pm/v2/settings",data:{settings:t,id:i},type:"POST",success:function(t){pm.Toastr.success(t.message),void 0!==n&&n(t.data)}};this.httpRequest(s)},saveTrelloImportedData:function(t,e,n,i){var s={url:this.base_url+"/pm/v2/"+n,xhr:function(){var t=new window.XMLHttpRequest;return t.addEventListener("progress",function(t){t.lengthComputable},!1),t},data:t,type:"POST",success:function(t){void 0!==i&&i(t,e)}};this.httpRequest(s)},deleteProjectSettings:function(t,e){e=e||{};var n={url:this.base_url+"/pm/v2/projects/"+this.project_id+"/delete/"+t+"/settings",data:{id:t},type:"POST",success:function(t){void 0!==e.callback&&e.callback(t.data)}};this.httpRequest(n)},formatSettings:function(t){var e=[];return jQuery.each(t,function(t,n){e.push({key:t,value:n})}),e},getViewType:function(t){if(this.$store.state.is_need_fetch_view_type){var e=this,n={url:e.base_url+"/pm/v2/projects/"+this.project_id+"/settings?key=list_view_type",data:{},type:"GET",success:function(n){e.$store.commit("is_need_fetch_view_type",!1),n.length?e.setViewType(n.data.value):e.setViewType("list"),void 0!==t&&t(n.data)}};e.httpRequest(n)}else t({value:this.$store.state.listView})},setViewType:function(t){this.$store.commit("listViewType",t)},getClients:function(){this.$store.state.project;return this.$store.state.project.assignees.data.filter(function(t){return!!t.roles.data.filter(function(t){return"client"==t.slug}).length})},myTaskRedirect:function(t){var e=PM_Vars.current_user.ID;return!!this.canShowMyTaskRedirect(t)&&(PM_Vars.is_pro?t==e?this.$router.resolve({name:"mytask-tasks"}).href:this.$router.resolve({name:"mytask-tasks",params:{user_id:t}}).href:this.$router.resolve({name:"my-tasks"}).href)},canShowMyTaskRedirect:function(t){var e=PM_Vars.current_user.ID;return!!this.has_manage_capability()||e==t},fileDownload:function(t){window.location.href=this.base_url+"/pm/v2/projects/"+this.project_id+"/files/"+t+"/users/"+PM_Vars.current_user.ID+"/download"},getDownloadUrl:function(t,e){return e=e||this.project_id,this.base_url+"/pm/v2/projects/"+e+"/files/"+t+"/users/"+PM_Vars.current_user.ID+"/download"},copy:function(t){var e=$("<input>");$("body").append(e),e.val(t).select(),document.execCommand("copy"),e.remove()},deleteSettings:function(t,e){e=e||!1,PM_Vars.settings;return void 0===PM_Vars.settings[t]?e:PM_Vars.settings[t]},getAssetUrl:function(t){return PM_Vars.assets_url+t},closePopper:function(){jQuery("body").trigger("click")},exportCsvFile:function(t,e){if("html/csv"===t.getResponseHeader("Content-type")){var n="",i=t.getResponseHeader("Content-Disposition");if(i&&-1!==i.indexOf("attachment")){var s=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i);null!=s&&s[1]&&(n=s[1].replace(/['"]/g,""))}var a=t.getResponseHeader("Content-Type"),r="function"==typeof File?new File([e],n,{type:a}):new Blob([e],{type:a});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(r,n);else{var o=window.URL||window.webkitURL,c=o.createObjectURL(r);if(n){var u=document.createElement("a");void 0===u.download?window.location=c:(u.href=c,u.download=n,document.body.appendChild(u),u.click())}else window.location=c;setTimeout(function(){o.revokeObjectURL(c)},100)}}}}}},function(t,e,n){"use strict";e.__esModule=!0;var i=r(n(107)),s=r(n(116)),a="function"==typeof s.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};function r(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof s.default&&"symbol"===a(i.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e,n){"use strict";var i=n(24),s=n(8),a=n(61),r=n(13),o=n(28),c=n(110),u=n(40),l=n(63),d=n(7)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,h,m,_,v){c(n,e,h);var g,b,y,k=function(t){if(!p&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",x="values"==m,j=!1,C=t.prototype,M=C[d]||C["@@iterator"]||m&&C[m],S=M||k(m),T=m?x?k("entries"):S:void 0,P="Array"==e&&C.entries||M;if(P&&(y=l(P.call(new t)))!==Object.prototype&&y.next&&(u(y,w,!0),i||"function"==typeof y[d]||r(y,d,f)),x&&M&&"values"!==M.name&&(j=!0,S=function(){return M.call(this)}),i&&!v||!p&&!j&&C[d]||r(C,d,S),o[e]=S,o[w]=f,m)if(g={values:x?S:k("values"),keys:_?S:k("keys"),entries:T},v)for(b in g)b in C||a(C,b,g[b]);else s(s.P+s.F*(p||j),e,g);return g}},function(t,e,n){t.exports=n(13)},function(t,e,n){var i=n(9),s=n(20),a=n(17);t.exports=n(6)?Object.defineProperties:function(t,e){s(t);for(var n,r=a(e),o=r.length,c=0;o>c;)i.f(t,n=r[c++],e[n]);return t}},function(t,e,n){var i=n(11),s=n(22),a=n(35)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=s(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},function(t,e,n){"use strict";var i=n(5),s=n(11),a=n(6),r=n(8),o=n(61),c=n(65).KEY,u=n(14),l=n(36),d=n(40),p=n(25),f=n(7),h=n(41),m=n(42),_=n(118),v=n(119),g=n(20),b=n(10),y=n(12),k=n(32),w=n(21),x=n(39),j=n(66),C=n(68),M=n(9),S=n(17),T=C.f,P=M.f,O=j.f,$=i.Symbol,L=i.JSON,D=L&&L.stringify,A=f("_hidden"),E=f("toPrimitive"),F={}.propertyIsEnumerable,R=l("symbol-registry"),V=l("symbols"),N=l("op-symbols"),I=Object.prototype,H="function"==typeof $,U=i.QObject,Y=!U||!U.prototype||!U.prototype.findChild,B=a&&u(function(){return 7!=x(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=T(I,e);i&&delete I[e],P(t,e,n),i&&t!==I&&P(I,e,i)}:P,q=function(t){var e=V[t]=x($.prototype);return e._k=t,e},Q=H&&"symbol"==typeof $.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof $},z=function(t,e,n){return t===I&&z(N,e,n),g(t),e=k(e,!0),g(n),s(V,e)?(n.enumerable?(s(t,A)&&t[A][e]&&(t[A][e]=!1),n=x(n,{enumerable:w(0,!1)})):(s(t,A)||P(t,A,w(1,{})),t[A][e]=!0),B(t,e,n)):P(t,e,n)},G=function(t,e){g(t);for(var n,i=_(e=y(e)),s=0,a=i.length;a>s;)z(t,n=i[s++],e[n]);return t},J=function(t){var e=F.call(this,t=k(t,!0));return!(this===I&&s(V,t)&&!s(N,t))&&(!(e||!s(this,t)||!s(V,t)||s(this,A)&&this[A][t])||e)},W=function(t,e){if(t=y(t),e=k(e,!0),t!==I||!s(V,e)||s(N,e)){var n=T(t,e);return!n||!s(V,e)||s(t,A)&&t[A][e]||(n.enumerable=!0),n}},K=function(t){for(var e,n=O(y(t)),i=[],a=0;n.length>a;)s(V,e=n[a++])||e==A||e==c||i.push(e);return i},X=function(t){for(var e,n=t===I,i=O(n?N:y(t)),a=[],r=0;i.length>r;)!s(V,e=i[r++])||n&&!s(I,e)||a.push(V[e]);return a};H||(o(($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===I&&e.call(N,n),s(this,A)&&s(this[A],t)&&(this[A][t]=!1),B(this,t,w(1,n))};return a&&Y&&B(I,t,{configurable:!0,set:e}),q(t)}).prototype,"toString",function(){return this._k}),C.f=W,M.f=z,n(67).f=j.f=K,n(26).f=J,n(38).f=X,a&&!n(24)&&o(I,"propertyIsEnumerable",J,!0),h.f=function(t){return q(f(t))}),r(r.G+r.W+r.F*!H,{Symbol:$});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)f(Z[tt++]);for(var et=S(f.store),nt=0;et.length>nt;)m(et[nt++]);r(r.S+r.F*!H,"Symbol",{for:function(t){return s(R,t+="")?R[t]:R[t]=$(t)},keyFor:function(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),r(r.S+r.F*!H,"Object",{create:function(t,e){return void 0===e?x(t):G(x(t),e)},defineProperty:z,defineProperties:G,getOwnPropertyDescriptor:W,getOwnPropertyNames:K,getOwnPropertySymbols:X}),L&&r(r.S+r.F*(!H||u(function(){var t=$();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],s=1;arguments.length>s;)i.push(arguments[s++]);if(n=e=i[1],(b(e)||void 0!==t)&&!Q(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Q(e))return e}),i[1]=e,D.apply(L,i)}}),$.prototype[E]||n(13)($.prototype,E,$.prototype.valueOf),d($,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(t,e,n){var i=n(25)("meta"),s=n(10),a=n(11),r=n(9).f,o=0,c=Object.isExtensible||function(){return!0},u=!n(14)(function(){return c(Object.preventExtensions({}))}),l=function(t){r(t,i,{value:{i:"O"+ ++o,w:{}}})},d=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[i].i},getWeak:function(t,e){if(!a(t,i)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[i].w},onFreeze:function(t){return u&&d.NEED&&c(t)&&!a(t,i)&&l(t),t}}},function(t,e,n){var i=n(12),s=n(67).f,a={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return r&&"[object Window]"==a.call(t)?function(t){try{return s(t)}catch(t){return r.slice()}}(t):s(i(t))}},function(t,e,n){var i=n(55),s=n(37).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,s)}},function(t,e,n){var i=n(26),s=n(21),a=n(12),r=n(32),o=n(11),c=n(53),u=Object.getOwnPropertyDescriptor;e.f=n(6)?u:function(t,e){if(t=a(t),e=r(e,!0),c)try{return u(t,e)}catch(t){}if(o(t,e))return s(!i.f.call(t,e),t[e])}},function(t,e,n){t.exports={default:n(123),__esModule:!0}},function(t,e,n){"use strict";var i=n(46),s=n.n(i);e.a={watch:{content:{handler:function(t){""==t.html&&(tinymce.get(this.editor_id).setContent(t.html),tinymce.get(this.editor_id).save())},deep:!0}},props:["editor_id","content"],mounted:function(){var t,e=this;tinymce.get(this.editor_id)&&tinymce.execCommand("mceRemoveEditor",!1,this.editor_id);var n=(t={selector:"textarea#"+e.editor_id,menubar:!1,placeholder:e.__("Write a comment...","wedevs-project-manager"),branding:!1},s()(t,"menubar",!1),s()(t,"auto_focus",e.editor_id),s()(t,"setup",function(t){t.on("change",function(){e.content.html=t.getContent().replace(/&nbsp;/gi,"")}),t.on("keyup",function(n){e.content.html=t.getContent().replace(/&nbsp;/gi,"")}),t.on("NodeChange",function(){e.content.html=t.getContent()}),t.on("init",function(){t.selection.select(t.getBody(),!0),t.selection.collapse(!1)})}),s()(t,"external_plugins",PM_Vars.todo_list_text_editor.external_plugins),s()(t,"fontsize_formats","10px 11px 13px 14px 16px 18px 22px 25px 30px 36px 40px 45px 50px 60px 65px 70px 75px 80px"),s()(t,"font_formats","Arial=arial,helvetica,sans-serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Lucida=Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;"),s()(t,"plugins",PM_Vars.todo_list_text_editor.plugins),s()(t,"toolbar1","shortcodes bold italic strikethrough bullist numlist alignleft aligncenter alignjustify alignright link textcolor blockquote underline forecolor"),s()(t,"toolbar2","formatselect forecolor backcolor underline blockquote hr code"),s()(t,"toolbar3","fontselect fontsizeselect removeformat undo redo"),t);PmProComment.hasOwnProperty("mentions")&&(PmProComment.mentions.source=e.$store.state.project_users,n=jQuery.extend(n,PmProComment)),tinymce.init(n)}}},function(t,e,n){t.exports={default:n(126),__esModule:!0}},function(t,e,n){"use strict";var i=n(73),s=n(154),a=n(0)(i.a,s.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";Vue.directive("pm-uploader",{inserted:function(t,e,n){new PM_Uploader(t,"pm-upload-container",n.context)}}),Vue.directive("pm-upload-container",{inserted:function(t,e,n){}}),e.a={props:{files:{type:Array,default:function(){return[]}},delete:{type:Array,default:function(){return[]}},single:{type:Boolean,default:!1}},methods:{fileUploaded:function(t){void 0===this.files&&(this.files=[]),this.files.push(t.res.file)},deletefile:function(t){if(confirm(this.text.are_you_sure)){var e=this.getIndex(this.files,t,"id");!1!==e&&(this.files.splice(e,1),this.delete.push(t))}}}}},function(t,e,n){"use strict";e.a={props:{value:{type:[Array],default:function(){return[]}},users:{type:[Array],default:function(){return this.$root.$store.state.project_users}}},data:function(){return{notify_users:this.value,select_all:!1}},watch:{notify_users:function(t){this.assain_users.length==t.length&&(this.select_all=!0),this.assain_users.length!==t.length&&(this.select_all=!1),this.$emit("input",t)},value:function(t){this.notify_users=t}},computed:{assain_users:function(){var t=this;return this.users.filter(function(e){return e.id!==t.current_user.ID})}},methods:{select_all_user:function(){var t=this;this.select_all?(this.notify_users=[],this.assain_users.forEach(function(e){t.notify_users.push(e.id)})):this.notify_users=[]}}}},function(t,e,n){"use strict";var i=n(46),s=n.n(i),a=n(163),r=n(15),o=n(4),c=n.n(o),u=n(29),l=n.n(u),d=n(97),p=n(18);Vue.directive("activity-load-more",{bind:function(t,e,n){jQuery(t).bind("scroll",function(){jQuery(this).scrollTop()+jQuery(this).innerHeight()>=jQuery(this)[0].scrollHeight&&n.context.loadMoreActivity(n.context)})}}),e.a=s()({props:{taskId:{type:[Number,Boolean,String],default:function(){return!1}},projectId:{type:[Number,Boolean,String],default:function(){return!1}}},data:function(){return{loading:!0,is_task_title_edit_mode:!1,is_task_details_edit_mode:!1,is_task_date_edit_mode:!1,is_enable_multi_select:!1,task_description:"",update_description:__("Update Description","wedevs-project-manager"),task_id:this.$route.params.task_id,list:{},task:{},assigned_to:[],isActiveMenu:!1,activityPage:2,activityLoading:!1,allActivityLoaded:!1,content:{html:""},description_show_spinner:!1,show_spinner_status:!1,show_spinner:!1,taskUpdating:!1,truckTitleUpdate:""}},mixins:[c.a],computed:{doActionData:function(){return{task:this.task,assignees:this.project_users,list:this.list,is_single_task_open:!0}},project_users:function(){return this.$root.$store.state.project_users.forEach(function(t){pm.Vue.set(t,"img")}),this.$root.$store.state.project_users},task_users:function(){return jQuery.isEmptyObject(this.$store.state.projectTaskLists.task)?[]:this.$store.state.projectTaskLists.task.assignees.data},task_assign:{get:function(){return this.assigned_to=this.task.assignees.data.map(function(t){return t.id}),void 0===this.task.assignees?[]:this.task.assignees.data},set:function(t){if(!this.show_spinner){var e=this;this.assigned_to=t.map(function(t){return t.id}),this.task.assignees.data=t,this.updateTaskElement(this.task,function(t){pmBus.$emit("after_update_single_task_user",{beforeUpdate:e.task,afterUpdate:t.data}),e.task.assignees.data=t.data.assignees.data})}}},isTaskLock:function(){return PM_Vars.is_pro&&this.can_edit_task(this.task)&&this.user_can("view_private_task")&&"0"==this.task.meta.privacy},isTaskUnlock:function(){return PM_Vars.is_pro&&this.can_edit_task(this.task)&&this.user_can("view_private_task")&&"1"==this.task.meta.privacy},showdescriptionfield:function(){return!this.isArchivedTaskList(this.task)&&(!this.task.description.content&&!this.is_task_details_edit_mode)}},components:{"task-comments":a.a,multiselect:l.a,"do-action":r.default,"activity-parser":d.default,"text-editor":p.a},created:function(){var t=this;this.getSelfTask(),this.getGloabalProject(this.projectId),window.addEventListener("click",this.windowActivity),this.$store.commit("isSigleTask",!0),pm.Vue.nextTick(function(){jQuery("body").addClass("pm-block-content")}),jQuery(document).keyup(function(e){if(27===e.keyCode){var n=jQuery(e.target).closest(".new-subtask-form").find(".input-area"),i=jQuery(e.target).closest("#pm-single-task-wrap");n.length||i.length||t.closePopup()}})},destroyed:function(){this.task={},this.list={}},methods:{updateTaskTitle:function(t){this.truckTitleUpdate!=t.title&&this.updateTaskElement(t)},callBackDatePickerForm:function(t){var e={id:"singleTask",field:"datepicker_from",date:t};this.fromDate(e)},callBackDatePickerTo:function(t){var e={id:"singleTask",field:"datepicker_to",date:t};this.fromDate(e)},submitDescription:function(t){t.description.content=this.content.html.trim(),this.description_show_spinner=!0,this.updateTaskElement(t)},closeDescriptionEditor:function(){this.description_show_spinner=!1,this.is_task_details_edit_mode=!1,tinymce.execCommand("mceRemoveEditor",!1,"task-description-editor")},loadMoreActivity:function(t){if(!this.allActivityLoaded&&!this.activityLoading){var e={url:t.base_url+"/pm/v2/projects/"+t.project_id+"/tasks/"+t.task.id+"/activity",type:"POST",data:{activityPage:this.activityPage},success:function(e){t.activityLoading=!1,t.activityPage=t.activityPage+1,void 0===t.task.activities?(pm.Vue.set(t.task,"activities",{}),pm.Vue.set(t.task.activities,"data",e.data)):t.task.activities.data=t.task.activities.data.concat(e.data),e.data.length||(t.allActivityLoaded=!0)},error:function(t){}};this.activityLoading=!0,t.httpRequest(e)}},showMenu:function(t){this.isActiveMenu=void 0!==t?t:!this.isActiveMenu},selfDeleteTask:function(){var t=this;this.deleteTask({task:this.task,list:this.task.task_list.data,callback:function(e){t.closePopup(),void 0!==t.task.activities?t.task.activities.data.unshift(e.activity.data):t.task.activities={data:[e.activity.data]}}})},copyUrl:function(t){pmBus.$emit("pm_generate_task_url",t),pm.Toastr.success(this.__("Copied!","wedevs-project-manager")),this.isActiveMenu=!1},lineThrough:function(t){if(t.status)return"pm-line-through"},singleTaskDoneUndone:function(){if(!this.isArchivedTaskList(this.task)&&!this.can_complete_task(this.task)){var t=this,e=this.task.status?0:1;this.show_spinner_status=!0;var n={data:{task_id:this.task.id?this.task.id:this.taskId,status:e,project_id:this.task.project_id},callback:function(n){t.task.status="1"==e,void 0!==t.task.activities?t.task.activities.data.unshift(n.activity.data):t.task.activities={data:[n.activity.data]},t.show_spinner_status=!1,pmBus.$emit("pm_after_task_doneUndone",n)}};this.taskDoneUndone(n)}},getSelfTask:function(){var t=this,e={condition:{with:"boards,comments,activities"},task_id:t.task_id?t.task_id:this.taskId,project_id:t.projectId?t.projectId:t.project_id,callback:function(e){if(void 0===e.data)return pm.Toastr.error(e.message),void t.$router.go(-1);t.content.html=e.data.description.html,t.addMeta(e.data),t.task=e.data,t.truckTitleUpdate=e.data.title,t.loading=!1}};this.getTask(e)},addMeta:function(t){t.edit_mode=!1,"complete"===t.status?t.status=!0:t.status=!1,t.comments.data.map(function(t){t.edit_mode=!1})},has_task_permission:function(){return this.can_edit_task(this.task)},isEnableMultiSelect:function(){var t=this;return!this.isArchivedTaskList(this.task)&&(!!this.can_edit_task(this.task)&&(this.is_enable_multi_select=!this.is_enable_multi_select,void pm.Vue.nextTick(function(){t.$refs.assingTask.$el.focus()})))},fromDate:function(t){if("singleTask"==t.id&&"datepicker_from"==t.field){if(this.task.due_date.date){var e=new Date(t.date),n=new Date(this.task.due_date.date),i=pm.Moment(n).isBefore(e);if(this.task_start_field&&i)return void pm.Toastr.error("Invalid date range!")}this.task.start_at.date=t.date,this.updateTaskElement(this.task)}if("singleTask"==t.id&&"datepicker_to"==t.field){if(this.task.start_at.date){e=new Date(this.task.start_at.date),n=new Date(t.date),i=pm.Moment(n).isBefore(e);if(this.task_start_field&&i)return void pm.Toastr.error("Invalid date range!")}var s=this.task,a=(e=new Date(s.start_at),new Date(t.date));this.$store.state.projectTaskLists.permissions.task_start_field?e<=a&&(s.due_date.date=t.date,this.updateTaskElement(s)):(s.due_date.date=t.date,this.updateTaskElement(s))}},updateTaskPrivacy:function(t,e){t.task_privacy=e,this.updateTaskElement(t)},isTaskDetailsEditMode:function(){this.isArchivedTaskList(this.task)&&(this.is_task_details_edit_mode=!1),this.can_edit_task(this.task)?(this.task_description=this.task.description.content,this.is_task_details_edit_mode=!0):this.is_task_details_edit_mode=!1,pm.Vue.nextTick(function(){jQuery(".pm-desc-field").focus()})},updateDescription:function(t,e){13==e.keyCode&&e.shiftKey||this.task_description.trim()!=t.description.content&&(t.description.content=this.task_description.trim(),this.is_task_details_edit_mode=!1,this.updateTaskElement(t))},closePopup:function(){pmBus.$emit("pm_after_close_single_task_modal")},singleTaskTitle:function(t){return t.completed?"pm-task-complete":"pm-task-incomplete"},updateTaskElement:function(t,e){if(!this.isArchivedTaskList(this.task)){var n=new Date(t.start_at.date),i=new Date(t.due_date.date),s=pm.Moment(i).isBefore(n),a=this.project_id?this.project_id:t.project_id;if(t.start_at.date&&t.due_date.date&&this.task_start_field&&s)pm.Toastr.error(__("Invalid date range!","wedevs-project-manager"));else{var r={title:t.title,description:t.description.content,estimation:t.estimation,start_at:t.start_at?t.start_at.date:"",due_date:t.due_date?t.due_date.date:"",complexity:t.complexity,priority:t.priority,order:t.order,payable:t.payable,recurrent:t.recurrent,status:t.status?1:0,category_id:t.category_id,assignees:0==this.assigned_to.length?[0]:this.assigned_to},o=this,c={url:this.base_url+"/pm/v2/projects/"+a+"/tasks/"+t.id+"/update",data:r,type:"POST",success:function(t){pmBus.$emit("pm_after_update_single_task",t),o.is_task_title_edit_mode=!1,o.closeDescriptionEditor(),o.task.description=t.data.description,o.$store.commit("updateProjectMeta","total_activities"),void 0!==o.task.activities?o.task.activities.data.unshift(t.activity.data):o.task.activities={data:[t.activity.data]},o.show_spinner=!1,void 0!==e&&e(t)},error:function(t){t.responseJSON.message.map(function(t,e){pm.Toastr.error(t)})}};this.show_spinner=!0,this.httpRequest(c)}}},isTaskTitleEditMode:function(){return this.isArchivedTaskList(this.task)?this.is_task_title_edit_mode=!1:this.can_edit_task(this.task)?this.is_task_title_edit_mode=!0:this.is_task_title_edit_mode=!1},isTaskDateEditMode:function(){return this.isArchivedTaskList(this.task)?this.is_task_date_edit_mode=!1:this.can_edit_task(this.task)?void(this.is_task_date_edit_mode=!0):(this.is_task_date_edit_mode=!1,this.is_task_date_edit_mode)},windowActivity:function(t){var e=jQuery(t.target).hasClass("pm-task-title-activity"),n=jQuery(t.target).closest("#description-wrap"),i=jQuery(t.target).closest("#pm-multiselect-single-task"),s=jQuery(t.target).closest("#pm-action-menu"),a=jQuery(t.target).closest(".popup-container"),r=jQuery(t.target).closest("#ui-datepicker-div"),o=jQuery(t.target).closest(".ui-datepicker-buttonpane"),c=jQuery(t.target).hasClass("ui-icon"),u=jQuery(t.target).closest("#pm-single-task-wrap");r.length||o.length||c||(!a.length&&jQuery(".popup-container").length&&u.length&&this.closePopup(),s.length||this.showMenu(!1),e||(this.is_task_title_edit_mode=!1),n.length||this.closeDescriptionEditor(),i.length||(this.is_enable_multi_select=!1),this.datePickerDispaly(t))},datePickerDispaly:function(t){jQuery(t.target).closest("#pm-calendar-wrap").length||(this.is_task_date_edit_mode=!1)},singleTaskLockUnlock:function(t){if(!this.isArchivedTaskList(t)){var e=this,n={is_private:"0"==t.meta.privacy?1:0},i={url:e.base_url+"/pm/v2/projects/"+t.project_id+"/tasks/privacy/"+t.id,type:"POST",data:n,success:function(i){t.meta.privacy=n.is_private,n.is_private?pm.Toastr.success(e.__("Task marked as private","wedevs-project-manager")):pm.Toastr.success(e.__("Task visible for co-worker","wedevs-project-manager")),e.isActiveMenu=!1},error:function(t){t.responseJSON.message.map(function(t,e){pm.Toastr.error(t)})}};e.httpRequest(i)}},cratedDateFormat:function(t){if(""!=t){t=new Date(t),t=pm.Moment(t).format("YYYY-MM-DD");return pm.Moment(t).format(String("MMM D, YYYY"))}}}},"destroyed",function(){pmBus.$emit("pm_before_destroy_single_task",this.task),jQuery("body").removeClass("pm-block-content")})},function(t,e,n){"use strict";var i=n(166),s=n(4),a=n.n(s);e.a={props:["comments","task"],mixins:[a.a],data:function(){return{currnet_user_id:PM_Vars.current_user.ID,avatar_url:PM_Vars.avatar_url,commentFormMeta:{activeNewCommentField:!1}}},created:function(){window.addEventListener("click",this.windowActivity)},components:{"task-comment-form":i.a},methods:{lcommentLiBodyClass:function(t){return t?"comment-li-body":""},windowActivity:function(t){jQuery(t.target).closest(".comment-action-arrow").length||this.comments.forEach(function(t){pm.Vue.set(t,"actionMode",!1)})},showActionMenu:function(t){if(this.isArchivedTaskList(this.task))return!1;void 0===t.actionMode?pm.Vue.set(t,"actionMode",!0):t.actionMode=!t.actionMode},showHideNewCommentField:function(){if(this.isArchivedTaskList(this.task))return!1;this.commentFormMeta.activeNewCommentField=!this.commentFormMeta.activeNewCommentField},commentDate:function(t){return void 0!==t.created_at?pm.Moment(t.created_at.datetime).fromNow():""},showHideTaskCommentForm:function(t){t.edit_mode=!t.edit_mode},current_user_can_edit_delete:function(t,e){return"pm_activity"!=t.comment_type&&(!!e.can_del_edit||t.user_id==this.currnet_user_id&&""==t.comment_type)},deleteTaskComment:function(t){if(confirm(this.__("Are you sure?","wedevs-project-manager"))){var e=this,n={url:e.base_url+"/pm/v2/projects/"+e.project_id+"/comments/"+t+"/delete",type:"POST",success:function(n){var i=e.getIndex(e.comments,t,"id");pm.Toastr.success(n.message),e.comments.splice(i,1),e.$store.commit("updateProjectMeta","total_activities")}};this.httpRequest(n)}}}}},function(t,e,n){"use strict";var i=n(18),s=n(72),a=n(31),r=n(29),o=n.n(r),c=n(4),u=n.n(c);e.a={props:{comment:{type:[Object],default:function(){return{}}},comments:{type:[Array],default:function(){return[]}},task:{type:[Object],default:function(){return{id:!1}}},commentFormMeta:{type:[Object],default:function(){}}},mixins:[u.a],data:function(){return{submit_disabled:!1,show_spinner:!1,content:{html:void 0===this.comment.content?"":this.comment.content},task_id:void 0!==this.task.id&&this.task.id,files:void 0===this.comment.files?[]:this.comment.files.data,deleted_files:[],mentioned_user_ids:null,add_new_comment:__("Post Comment","wedevs-project-manager"),update_comment:__("Update Comment","wedevs-project-manager"),notify_users:[],fileUploaderAttr:{onlyButton:!0,buttonText:__("Attach","wedevs-project-manager")},activeNotifyUsers:!1}},components:{"text-editor":i.a,"file-uploader":s.a,notifyUser:a.default,multiselect:o.a},created:function(){window.addEventListener("click",this.windowActivity)},watch:{content:{handler:function(t){this.comment.content=t.html},deep:!0}},computed:{project_users:function(){return this.$root.$store.state.project_users},editor_id:function(){return"pm-comment-editor"+(void 0===this.comment.id?"":"-"+this.comment.id)}},methods:{windowActivity:function(t){jQuery(t.target).closest(".notify-users").length||(this.activeNotifyUsers=!1)},notifyUserButton:function(){this.activeNotifyUsers=!this.activeNotifyUsers,this.activeNotifyUsers&&pm.Vue.nextTick(function(){jQuery(".notify-users").find(".multiselect__input").show().focus()})},hideCommentForm:function(){void 0!==this.comment.edit_mode&&(this.comment.edit_mode=!1),void 0===this.commentFormMeta.activeNewCommentField?pm.Vue.set(this.commentFormMeta,"activeNewCommentField",!1):this.commentFormMeta.activeNewCommentField=!1},taskCommentAction:function(){if(this.mentioned_user_ids=this.getMatches(this.comment.content,/data-pm-user-id=":(.+?):"/g,1),!this.submit_disabled&&void 0!==this.content.html&&""!=this.content.html){this.submit_disabled=!0,this.show_spinner=!0;var t=this,e=[];this.notify_users.map(function(t){e.push(t.id)});var n={data:{commentable_id:t.task_id,content:t.content.html,commentable_type:"task",deleted_files:t.deleted_files||[],mentioned_users:t.mentioned_user_ids,files:t.files||[],project_id:t.task.project_id,notify_users:e}};void 0!==this.comment.id?(n.data.id=this.comment.id,n.callback=function(e){var n=t.getIndex(t.comments,t.comment.id,"id");t.comments.splice(n,1,e.data),void 0!==t.task.activities?t.task.activities.data.unshift(e.activity.data):t.task.activities={data:[e.activity.data]},t.submit_disabled=!1,t.show_spinner=!1},t.updateComment(n)):(n.callback=function(e){t.comments.push(e.data),t.submit_disabled=!1,t.show_spinner=!1,t.content.html="",t.comment.content="",t.notify_users=[],t.files=[],t.deleted_files=[],void 0!==t.task.activities?t.task.activities.data.unshift(e.activity.data):t.task.activities={data:[e.activity.data]}},t.addComment(n))}}}}},function(t,e,n){"use strict";e.a={props:{activity:{type:Object,required:!0},page:{type:String,default:""}},data:function(){return{}},computed:{parseMessage:function(){for(var t=this.activity,e=this.fetchIdentifiers(t.message),n=0;n<e.length;n++){var i=e[n].replace(/\{\{|\}\}/g,""),s=this.isLinkable(i);t.message=s?t.message.replace(e[n],s):t.message.replace(e[n],this.getIdentifierValue(i))}return t.message}},methods:{fetchIdentifiers:function(t){var e=/\{\{[a-zA-Z._0-9\$]*\}\}/g,n=[];do{var i=e.exec(t);i&&n.push(i[0])}while(i);return n},linkableIdentifiers:function(){var t=this.activity;return{"actor.data.display_name":"<a href='"+this.actor_url()+"'>"+t.actor.data.display_name+"</a>","meta.project_title":"<a href='"+this.resolve_url()+"'>"+t.meta.project_title+"</a>","meta.project_title_old":"<a href='"+this.resolve_url()+"'>"+t.meta.project_title_old+"</a>","meta.old_project_title":"<a href='"+this.resolve_url()+"'>"+t.meta.old_project_title+"</a>","meta.project_title_new":"<a href='"+this.resolve_url()+"'>"+t.meta.project_title_new+"</a>","meta.discussion_board_title":"<a href='"+this.resolve_url()+"'>"+t.meta.discussion_board_title+"</a>","meta.deleted_discussion_board_title":"<strong>"+t.meta.deleted_discussion_board_title+"</strong>","meta.discussion_board_title_old":"<a href='"+this.resolve_url()+"'>"+t.meta.discussion_board_title_old+"</a>","meta.discussion_board_title_new":"<a href='"+this.resolve_url()+"'>"+t.meta.discussion_board_title_new+"</a>","meta.task_list_title":"<a href='"+this.resolve_url()+"'>"+t.meta.task_list_title+"</a>","meta.deleted_task_list_title":"<strong>"+t.meta.deleted_task_list_title+"</strong>","meta.task_list_title_old":"<a href='"+this.resolve_url()+"'>"+t.meta.task_list_title_old+"</a>","meta.task_list_title_new":"<a href='"+this.resolve_url()+"'>"+t.meta.task_list_title_new+"</a>","meta.milestone_title":"<a href='"+this.resolve_url()+"'>"+t.meta.milestone_title+"</a>","meta.deleted_milestone_title":"<strong>"+t.meta.deleted_milestone_title+"</strong>","meta.milestone_title_old":"<a href='"+this.resolve_url()+"'>"+t.meta.milestone_title_old+"</a>","meta.milestone_title_new":"<a href='"+this.resolve_url()+"'>"+t.meta.milestone_title_new+"</a>","meta.task_title":"<a href='"+this.resolve_url()+"'>"+t.meta.task_title+"</a>","meta.deleted_task_title":"<strong>"+t.meta.deleted_task_title+"</strong>","meta.task_title_old":"<a href='"+this.resolve_url()+"'>"+t.meta.task_title_old+"</a>","meta.task_title_new":"<a href='"+this.resolve_url()+"'>"+t.meta.task_title_new+"</a>","meta.file_title":"<a href='"+this.resolve_url()+"'>"+t.meta.file_title+"</a>","meta.file_title_old":"<a href='"+this.resolve_url()+"'>"+t.meta.file_title_old+"</a>","meta.file_title_new":"<a href='"+this.resolve_url()+"'>"+t.meta.file_title_new+"</a>","meta.task_status_old":"<strong>"+t.meta.task_status_old+"</strong>","meta.task_status_new":"<strong>"+t.meta.task_status_new+"</strong>","meta.project_status_new":"<strong>"+t.meta.project_status_new+"</strong>","meta.project_status_old":"<strong>"+t.meta.project_status_old+"</strong>","meta.task_start_at_new":null!==t.meta.task_start_at_new?"<strong>"+pm.Moment(t.meta.task_start_at_new).format("MMMM Do YYYY")+"</strong>":"<strong>...</strong>","meta.task_start_at_old":null!==t.meta.task_start_at_old?"<strong>"+pm.Moment(t.meta.task_start_at_old).format("MMMM Do YYYY")+"</strong>":"<strong>...</strong>","meta.task_due_date_new":null!==t.meta.task_due_date_new?"<strong>"+pm.Moment(t.meta.task_due_date_new).format("MMMM Do YYYY")+"</strong>":"<strong>...</strong>","meta.task_due_date_old":null!==t.meta.task_due_date_old?"<strong>"+pm.Moment(t.meta.task_due_date_old).format("MMMM Do YYYY")+"</strong>":"<strong>...</strong>"}},isLinkable:function(t){this.activity;var e=this.linkableIdentifiers();for(var n in e)if(n===t)return e[n];return!1},getIdentifierValue:function(t){for(var e=t.split("."),n=0,i=e[n],s=this.activity;n<e.length;)s=s[i],i=e[n+=1];return s},resolve_url:function(){var t,e=this.activity.resource_type,n=this.activity.resource_id,i=this.activity.meta,s=this.activity.project.data.id;switch(e){case"task":t="project"==this.page?this.$router.resolve({name:"activity_single_task",params:{project_id:s,task_id:n}}).href:this.$router.resolve({name:"lists_single_task",params:{project_id:s,task_id:n}}).href;break;case"project":t=this.$router.resolve({name:"pm_overview",params:{project_id:n}}).href,"duplicate_project"==this.activity.action&&(t=this.$router.resolve({name:"pm_overview",params:{project_id:i.old_project_id}}).href);break;case"milestone":t=this.$router.resolve({name:"milestones",params:{project_id:s}}).href;break;case"discussion_board":t=this.$router.resolve({name:"individual_discussions",params:{project_id:s,discussion_id:n}}).href;break;case"task_list":t=this.$router.resolve({name:"single_list",params:{project_id:s,list_id:n}}).href;break;case"file":t=this.$router.resolve({name:"singleFile",params:{project_id:s,fileId:n,folder_id:i.parent}}).href;break;default:t="#"}return t},actor_url:function(){var t=PM_Vars.current_user.ID,e=this.activity.actor.data.id;return PM_Vars.is_pro?e==t?this.$router.resolve({name:"mytask-tasks"}).href:null==e?"javascript:void(0)":this.$router.resolve({name:"mytask-tasks",params:{user_id:e}}).href:this.$router.resolve({name:"my-tasks"}).href}}}},,function(t,e,n){"use strict";var i=n(43),s=n.n(i);e.a={props:["total_pages","current_page_number","component_name"],data:function(){return{route_query:this.$route.query}},watch:{$route:function(t){this.route_query=t.query}},methods:{setParams:function(t){var e=s()({},this.$route.params);return e.current_page_number=t,e},pageClass:function(t){return t==this.current_page_number?"page-numbers current":"page-numbers"}}}},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{}},methods:{getProgects:function(t){var e={url:this.base_url+"/pm/v2/projects",type:"GET",success:function(e){void 0!==t&&t(e)}};this.httpRequest(e)},save_map_users:function(t,e){var n={url:this.base_url+"/pm/v2/save_users_map_name",data:{usernames:t},type:"POST",success:function(t){pm.Toastr.success("User mapping completed"),void 0!==e&&e()}};this.httpRequest(n)}}}},function(t,e,n){"use strict";e.a={props:["value","dependency"],data:function(){return{dateValue:""}},created:function(){if(!this.value)return"";var t=new Date(this.value);t=pm.Moment(t).format("YYYY-MM-DD"),this.dateValue=t},mounted:function(){var t=this,e="pm-datepickter-from"==t.dependency?"maxDate":"minDate";jQuery(t.$el).datepicker({dateFormat:"yy-mm-dd",changeYear:!0,changeMonth:!0,numberOfMonths:1,onClose:function(n){jQuery("."+t.dependency).datepicker("option",e,n)},onSelect:function(e){t.$emit("input",e)}}),jQuery(t.$el).on("change",function(){var e=jQuery(t.$el).val();t.$emit("input",e)})}}},function(t,e,n){"use strict";var i=n(181),s=n.n(i),a=n(183),r=n(187),o=n(192),c=n(196),u=n(90),l=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"];e.a={name:"Sketch",mixins:[s.a],components:{saturation:r.a,hue:o.a,alpha:c.a,"ed-in":a.a,checkboard:u.a},props:{presetColors:{type:Array,default:function(){return l}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex:function(){return this.colors.hex.replace("#","")},activeColor:function(){var t=this.colors.rgba;return"rgba("+[t.r,t.g,t.b,t.a].join(",")+")"}},methods:{handlePreset:function(t){this.colorChange({hex:t,source:"hex"})},childChange:function(t){this.colorChange(t)},inputChange:function(t){t&&(t.hex?this.isValidHex(t.hex)&&this.colorChange({hex:t.hex,source:"hex"}):(t.r||t.g||t.b||t.a)&&this.colorChange({r:t.r||this.colors.rgba.r,g:t.g||this.colors.rgba.g,b:t.b||this.colors.rgba.b,a:t.a||this.colors.rgba.a,source:"rgba"}))}}}},function(t,e,n){"use strict";e.a={name:"editableInput",props:{label:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(t){if(!(void 0!==this.max&&+t>this.max))return t;this.$refs.input.value=this.max}}},methods:{update:function(t){this.handleChange(t.target.value)},handleChange:function(t){var e={};e[this.label]=t,void 0===e.hex&&void 0===e["#"]?this.$emit("change",e):t.length>5&&this.$emit("change",e)},handleBlur:function(t){console.log(t)},handleKeyDown:function(t){var e=this.val,n=Number(e);if(n){var i=this.arrowOffset||1;38===t.keyCode&&(e=n+i,this.handleChange(e),t.preventDefault()),40===t.keyCode&&(e=n-i,this.handleChange(e),t.preventDefault())}},handleDrag:function(t){console.log(t)},handleMouseDown:function(t){console.log(t)}}}},function(t,e,n){"use strict";var i=n(190),s=n.n(i);e.a={name:"Saturation",props:{value:Object},computed:{colors:function(){return this.value},bgColor:function(){return"hsl("+this.colors.hsv.h+", 100%, 50%)"},pointerTop:function(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft:function(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:s()(function(t,e){t(e)},20,{leading:!0,trailing:!1}),handleChange:function(t,e){!e&&t.preventDefault();var n=this.$refs.container,i=n.clientWidth,s=n.clientHeight,a=n.getBoundingClientRect().left+window.pageXOffset,r=n.getBoundingClientRect().top+window.pageYOffset,o=(t.pageX||(t.touches?t.touches[0].pageX:0))-a,c=(t.pageY||(t.touches?t.touches[0].pageY:0))-r;o<0?o=0:o>i?o=i:c<0?c=0:c>s&&(c=s);var u=o/i,l=-c/s+1;l=(l=l>0?l:0)>1?1:l,this.throttle(this.onChange,{h:this.colors.hsv.h,s:u,v:l,a:this.colors.hsv.a,source:"hsva"})},onChange:function(t){this.$emit("change",t)},handleMouseDown:function(t){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(t){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(t,e,n){"use strict";e.a={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:function(){return{oldHue:0,pullDirection:""}},computed:{colors:function(){var t=this.value.hsl.h;return 0!==t&&t-this.oldHue>0&&(this.pullDirection="right"),0!==t&&t-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=t,this.value},directionClass:function(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop:function(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft:function(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange:function(t,e){!e&&t.preventDefault();var n,i=this.$refs.container,s=i.clientWidth,a=i.clientHeight,r=i.getBoundingClientRect().left+window.pageXOffset,o=i.getBoundingClientRect().top+window.pageYOffset,c=(t.pageX||(t.touches?t.touches[0].pageX:0))-r,u=(t.pageY||(t.touches?t.touches[0].pageY:0))-o;"vertical"===this.direction?(n=u<0?360:u>a?0:360*(-100*u/a+100)/100,this.colors.hsl.h!==n&&this.$emit("change",{h:n,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(n=c<0?0:c>s?360:360*(100*c/s)/100,this.colors.hsl.h!==n&&this.$emit("change",{h:n,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))},handleMouseDown:function(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(t){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(t,e,n){"use strict";var i=n(90);e.a={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:i.a},computed:{colors:function(){return this.value},gradientColor:function(){var t=this.colors.rgba,e=[t.r,t.g,t.b].join(",");return"linear-gradient(to right, rgba("+e+", 0) 0%, rgba("+e+", 1) 100%)"}},methods:{handleChange:function(t,e){!e&&t.preventDefault();var n,i=this.$refs.container,s=i.clientWidth,a=i.getBoundingClientRect().left+window.pageXOffset,r=(t.pageX||(t.touches?t.touches[0].pageX:0))-a;n=r<0?0:r>s?1:Math.round(100*r/s)/100,this.colors.a!==n&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:n,source:"rgba"})},handleMouseDown:function(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(t,e,n){"use strict";var i=n(91),s=n(201);var a=function(t){n(199)},r=n(0)(i.a,s.a,!1,a,null,null);e.a=r.exports},function(t,e,n){"use strict";var i={};e.a={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle:function(){return{"background-image":"url("+function(t,e,n){var s=t+","+e+","+n;if(i[s])return i[s];var a=function(t,e,n){if("undefined"==typeof document)return null;var i=document.createElement("canvas");i.width=i.height=2*n;var s=i.getContext("2d");if(!s)return null;return s.fillStyle=t,s.fillRect(0,0,i.width,i.height),s.fillStyle=e,s.fillRect(0,0,n,n),s.translate(n,n),s.fillRect(0,0,n,n),i.toDataURL()}(t,e,n);return i[s]=a,a}(this.white,this.grey,this.size)+")"}}}}},function(t,e,n){var i=n(103);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,s){return t.call(e,n,i,s)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(34),s=Math.min;t.exports=function(t){return t>0?s(i(t),9007199254740991):0}},function(t,e,n){"use strict";var i=n(109)(!0);n(60)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(78),s=n(169),a=n(0)(i.a,s.a,!1,null,null,null);e.default=a.exports},,,function(t,e){t.exports=function(t,e){for(var n=[],i={},s=0;s<e.length;s++){var a=e[s],r=a[0],o={id:t+":"+s,css:a[1],media:a[2],sourceMap:a[3]};i[r]?i[r].parts.push(o):n.push(i[r]={id:r,parts:[o]})}return n}},function(t,e,n){n(102),t.exports=n(3).Object.assign},function(t,e,n){var i=n(8);i(i.S+i.F,"Object",{assign:n(104)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var i=n(17),s=n(38),a=n(26),r=n(22),o=n(56),c=Object.assign;t.exports=!c||n(14)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i})?function(t,e){for(var n=r(t),c=arguments.length,u=1,l=s.f,d=a.f;c>u;)for(var p,f=o(arguments[u++]),h=l?i(f).concat(l(f)):i(f),m=h.length,_=0;m>_;)d.call(f,p=h[_++])&&(n[p]=f[p]);return n}:c},function(t,e,n){var i=n(12),s=n(93),a=n(106);t.exports=function(t){return function(e,n,r){var o,c=i(e),u=s(c.length),l=a(r,u);if(t&&n!=n){for(;u>l;)if((o=c[l++])!=o)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var i=n(34),s=Math.max,a=Math.min;t.exports=function(t,e){return(t=i(t))<0?s(t+e,0):a(t,e)}},function(t,e,n){t.exports={default:n(108),__esModule:!0}},function(t,e,n){n(94),n(112),t.exports=n(41).f("iterator")},function(t,e,n){var i=n(34),s=n(33);t.exports=function(t){return function(e,n){var a,r,o=String(s(e)),c=i(n),u=o.length;return c<0||c>=u?t?"":void 0:(a=o.charCodeAt(c))<55296||a>56319||c+1===u||(r=o.charCodeAt(c+1))<56320||r>57343?t?o.charAt(c):a:t?o.slice(c,c+2):r-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var i=n(39),s=n(21),a=n(40),r={};n(13)(r,n(7)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(r,{next:s(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var i=n(5).document;t.exports=i&&i.documentElement},function(t,e,n){n(113);for(var i=n(5),s=n(13),a=n(28),r=n(7)("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<o.length;c++){var u=o[c],l=i[u],d=l&&l.prototype;d&&!d[r]&&s(d,r,u),a[u]=a.Array}},function(t,e,n){"use strict";var i=n(114),s=n(115),a=n(28),r=n(12);t.exports=n(60)(Array,"Array",function(t,e){this._t=r(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,s(1)):s(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(117),__esModule:!0}},function(t,e,n){n(64),n(120),n(121),n(122),t.exports=n(3).Symbol},function(t,e,n){var i=n(17),s=n(38),a=n(26);t.exports=function(t){var e=i(t),n=s.f;if(n)for(var r,o=n(t),c=a.f,u=0;o.length>u;)c.call(t,r=o[u++])&&e.push(r);return e}},function(t,e,n){var i=n(44);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e){},function(t,e,n){n(42)("asyncIterator")},function(t,e,n){n(42)("observable")},function(t,e,n){n(124),t.exports=n(3).Object.keys},function(t,e,n){var i=n(22),s=n(17);n(16)("keys",function(){return function(t){return s(i(t))}})},,function(t,e,n){n(127);var i=n(3).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){var i=n(8);i(i.S+i.F*!n(6),"Object",{defineProperty:n(9).f})},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content.html,expression:"content.html"}],attrs:{id:t.editor_id},domProps:{value:t.content.html},on:{input:function(e){e.target.composing||t.$set(t.content,"html",e.target.value)}}})},staticRenderFns:[]};e.a=i},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){t.exports={default:n(131),__esModule:!0}},function(t,e,n){n(132),t.exports=n(3).Object.getPrototypeOf},function(t,e,n){var i=n(22),s=n(63);n(16)("getPrototypeOf",function(){return function(t){return s(i(t))}})},function(t,e,n){t.exports={default:n(134),__esModule:!0}},function(t,e,n){n(135);var i=n(3).Object;t.exports=function(t,e){return i.getOwnPropertyDescriptor(t,e)}},function(t,e,n){var i=n(12),s=n(68).f;n(16)("getOwnPropertyDescriptor",function(){return function(t,e){return s(i(t),e)}})},function(t,e,n){t.exports={default:n(137),__esModule:!0}},function(t,e,n){n(138);var i=n(3).Object;t.exports=function(t,e){return i.defineProperties(t,e)}},function(t,e,n){var i=n(8);i(i.S+i.F*!n(6),"Object",{defineProperties:n(62)})},function(t,e,n){t.exports={default:n(140),__esModule:!0}},function(t,e,n){n(141),t.exports=n(3).Object.preventExtensions},function(t,e,n){var i=n(10),s=n(65).onFreeze;n(16)("preventExtensions",function(t){return function(e){return t&&i(e)?t(s(e)):e}})},function(t,e,n){t.exports={default:n(143),__esModule:!0}},function(t,e,n){n(144),t.exports=n(3).Object.isExtensible},function(t,e,n){var i=n(10);n(16)("isExtensible",function(t){return function(e){return!!i(e)&&(!t||t(e))}})},function(t,e,n){t.exports={default:n(146),__esModule:!0}},function(t,e,n){n(64),t.exports=n(3).Object.getOwnPropertySymbols},function(t,e,n){t.exports={default:n(148),__esModule:!0}},function(t,e,n){n(149);var i=n(3).Object;t.exports=function(t){return i.getOwnPropertyNames(t)}},function(t,e,n){n(16)("getOwnPropertyNames",function(){return n(66).f})},function(t,e,n){t.exports={default:n(151),__esModule:!0}},function(t,e,n){n(152);var i=n(3).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,n){var i=n(8);i(i.S,"Object",{create:n(39)})},,function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pm-attachment-items"},[n("div",{attrs:{id:"pm-upload-container"}},[n("div",{staticClass:"pm-upload-filelist"},t._l(t.files,function(e){return n("div",{key:e.id,staticClass:"pm-uploaded-item"},[n("div",{staticClass:"attachment-file"},[n("a",{staticClass:"pm-uploaded-img",attrs:{href:e.url,target:"_blank"}},[n("img",{staticClass:"pm-uploaded-file",attrs:{src:e.thumb,alt:e.name}})]),t._v(" "),n("span",{staticClass:"icon-pm-cross",on:{click:function(n){n.preventDefault(),t.deletefile(e.id)}}})])])}))])])},staticRenderFns:[]};e.a=i},function(t,e,n){var i=n(156);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("6e700c10",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".pm-small-title input[type=checkbox]{margin:-3px 0 0!important}.pm-user-list input[type=checkbox]{margin:-1px 0 0!important}",""])},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.assain_users.length?n("div",{staticClass:"notify-users"},[n("h2",{staticClass:"pm-box-title"},[t._v(" \n        "+t._s(t.__("Notify users","wedevs-project-manager"))+"               \n        "),n("label",{staticClass:"pm-small-title",attrs:{for:"select-all"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.select_all,expression:"select_all"}],staticClass:"pm-toggle-checkbox",attrs:{type:"checkbox",id:"select-all"},domProps:{checked:Array.isArray(t.select_all)?t._i(t.select_all,null)>-1:t.select_all},on:{change:[function(e){var n=t.select_all,i=e.target,s=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.select_all=n.concat([null])):a>-1&&(t.select_all=n.slice(0,a).concat(n.slice(a+1)))}else t.select_all=s},function(e){t.select_all_user()}]}}),t._v(" \n            "+t._s(t.__("Select all","wedevs-project-manager"))+"\n        ")])]),t._v(" "),n("ul",{staticClass:"pm-user-list"},[t._l(t.assain_users,function(e){return n("li",{key:e.id},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.notify_users,expression:"notify_users"}],ref:"users",refInFor:!0,attrs:{type:"checkbox"},domProps:{value:e.id,checked:Array.isArray(t.notify_users)?t._i(t.notify_users,e.id)>-1:t.notify_users},on:{change:function(n){var i=t.notify_users,s=n.target,a=!!s.checked;if(Array.isArray(i)){var r=e.id,o=t._i(i,r);s.checked?o<0&&(t.notify_users=i.concat([r])):o>-1&&(t.notify_users=i.slice(0,o).concat(i.slice(o+1)))}else t.notify_users=a}}}),t._v(" \n                "+t._s(e.display_name)+"\n            ")])])}),t._v(" "),n("div",{staticClass:"clearfix"})],2)]):t._e()},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(75),s=n(170);var a=function(t){n(159),n(161)},r=n(0)(i.a,s.a,!1,a,null,null);e.default=r.exports},function(t,e,n){var i=n(160);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("6b5ebad5",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".task-list-title-wrap .list-title{font-size:12px;text-transform:uppercase}",""])},function(t,e,n){var i=n(162);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("62bba8ff",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".pm-line-through{text-decoration:line-through}.pm-block-content{overflow:hidden}",""])},function(t,e,n){"use strict";var i=n(76),s=n(168);var a=function(t){n(164)},r=n(0)(i.a,s.a,!1,a,null,null);e.a=r.exports},function(t,e,n){var i=n(165);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("0f394e60",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".pm-task-comment-wrap .comment-content-ul .icon-pm-down-arrow{cursor:pointer}.pm-task-comment-wrap .comment-content-ul .icon-pm-down-arrow:hover:before{color:#444}.pm-task-comment-wrap .comment-action-ul li a{display:block}.pm-task-comment-thumb{height:80px;width:80px}",""])},function(t,e,n){"use strict";var i=n(77),s=n(167),a=n(0)(i.a,s.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"pm-comment-form-vue pm-comment-form",on:{submit:function(e){e.preventDefault(),t.taskCommentAction()}}},[n("div",{staticClass:"item message pm-sm-col-12 "},[n("text-editor",{attrs:{editor_id:t.editor_id,content:t.content}})],1),t._v(" "),t.files.length?n("span",{staticClass:"attach-text"},[t._v(t._s("Attach Files","wedevs-project-manager"))]):t._e(),t._v(" "),n("file-uploader",{attrs:{files:t.files,delete:t.deleted_files}}),t._v(" "),n("div",{staticClass:"pm-flex"},[n("div",{staticClass:"comment-action-chunk"},[t.comment.edit_mode?t._e():n("input",{staticClass:"pm-button pm-primary",attrs:{disabled:t.submit_disabled,type:"submit",id:""},domProps:{value:t.add_new_comment}}),t._v(" "),t.comment.edit_mode?n("input",{staticClass:"pm-button pm-primary",attrs:{disabled:t.submit_disabled,type:"submit",id:""},domProps:{value:t.update_comment}}):t._e(),t._v(" "),n("a",{staticClass:"pm-button pm-secondary pm-button-cancel",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.hideCommentForm()}}},[t._v(t._s(t.__("Cancel","wedevs-project-manager")))]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.show_spinner,expression:"show_spinner"}],staticClass:"pm-spinner"})]),t._v(" "),n("div",{staticClass:"comment-action-chunk"},[n("a",{directives:[{name:"pm-uploader",rawName:"v-pm-uploader"}],staticClass:"pm-button pm-secondary",attrs:{href:"#"}},[n("span",{staticClass:"icon-pm-clip"}),t._v("\n                  "+t._s(t.__("Attach","wedevs-project-manager"))+"\n              ")]),t._v(" "),n("div",{staticClass:"notify-users"},[n("a",{staticClass:"pm-button pm-secondary pm-button-nofity-user",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.notifyUserButton()}}},[n("span",{staticClass:"icon-pm-single-user"}),t._v("\n                      "+t._s(t.__("Notify user","wedevs-project-manager"))+"\n                  ")]),t._v(" "),t.activeNotifyUsers?n("div",{staticClass:"pm-multiselect-top pm-multiselect-single-task"},[n("div",{staticClass:"pm-multiselect-content"},[n("div",{staticClass:"assign-to"},[t._v(t._s(t.__("Assign to","wedevs-project-manager")))]),t._v(" "),n("multiselect",{attrs:{options:t.project_users,multiple:!0,"close-on-select":!1,"clear-on-select":!0,"show-labels":!0,searchable:!0,placeholder:t.__("Search User","wedevs-project-manager"),"select-label":"","selected-label":"selected","deselect-label":"",label:"display_name","track-by":"id","allow-empty":!0},scopedSlots:t._u([{key:"option",fn:function(e){return[n("img",{staticClass:"option__image",attrs:{src:e.option.avatar_url,alt:"No Man’s Sky"}}),t._v(" "),n("div",{staticClass:"option__desc"},[n("span",{staticClass:"option__title"},[t._v(t._s(e.option.display_name))])])]}}]),model:{value:t.notify_users,callback:function(e){t.notify_users=e},expression:"notify_users"}})],1)]):t._e()])])])],1)},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pm-task-comment-wrap"},[n("div",{staticClass:"discuss-text pm-h2"},[t._v(t._s(t.__("Discussion","wedevs-project-manager")))]),t._v(" "),n("div",{staticClass:"comment-content"},[t.comments.length?n("ul",{staticClass:"comment-content-ul"},t._l(t.comments,function(e){return n("li",{key:"tasks-comments-"+e.id,class:"comment-li pm-fade-out-"+e.id},[n("div",{class:t.lcommentLiBodyClass(e.edit_mode)},[n("div",{staticClass:"comment-header"},[n("div",{staticClass:"pm-avatar"},[n("a",{attrs:{href:t.myTaskRedirect(e.creator.data.id),title:e.creator.data.display_name}},[n("img",{staticClass:"avatar avatar-96 photo",attrs:{alt:e.creator.data.display_name,src:e.creator.data.avatar_url,height:"96",width:"96"}})])]),t._v(" "),e.edit_mode?t._e():n("div",{staticClass:"author-date"},[n("span",{staticClass:"pm-author"},[n("a",{attrs:{href:t.myTaskRedirect(e.creator.data.id),title:e.creator.data.display_name}},[t._v("\n                                    "+t._s(t.ucfirst(e.creator.data.display_name))+"\n                                ")])]),t._v(" "),n("span",{staticClass:"pm-date"},[n("time",{attrs:{datetime:t.dateISO8601Format(e.created_at.datetime),title:t.getFullDate(e.created_at.date+" "+e.created_at.time)}},[t._v(t._s(t.relativeDate(e.created_at.datetime)))])])]),t._v(" "),!e.edit_mode&&t.can_edit_comment(e)?n("div",{staticClass:"icon-pm-down-arrow comment-action-arrow",on:{click:function(n){n.preventDefault(),t.showActionMenu(e)}}},[e.actionMode?n("div",{staticClass:"pm-popup-menu comment-action"},[n("ul",{staticClass:"comment-action-ul"},[n("li",[n("a",{attrs:{href:"#"},on:{click:function(n){n.preventDefault(),t.showHideTaskCommentForm(e)}}},[n("span",{staticClass:"icon-pm-pencil"}),t._v(" "),n("span",{staticClass:"comment-action-edit"},[t._v(t._s(t.__("Edit","wedevs-project-manager")))])])]),t._v(" "),n("li",[n("a",{attrs:{href:"#"},on:{click:function(n){n.preventDefault(),t.deleteTaskComment(e.id)}}},[n("span",{staticClass:"icon-pm-delete"}),t._v(" "),n("span",{staticClass:"comment-action-delete"},[t._v(t._s(t.__("Delete","wedevs-project-manager")))])])])])]):t._e()]):t._e()]),t._v(" "),e.edit_mode?t._e():n("div",{staticClass:"pm-comment-content"},[n("div",{domProps:{innerHTML:t._s(e.content)}}),t._v(" "),e.files.data.length?n("ul",{staticClass:"pm-attachments"},t._l(e.files.data,function(t){return n("li",{key:t.id},[n("pm-file",{attrs:{file:t}})],1)})):t._e()]),t._v(" "),t.can_edit_comment(e)?n("transition",{attrs:{name:"slide"}},[e.edit_mode?n("div",{staticClass:"pm-comment-edit-form"},[n("task-comment-form",{attrs:{task:t.task,comment:e,comments:t.comments,commentFormMeta:t.commentFormMeta}})],1):t._e()]):t._e()],1)])})):t._e(),t._v(" "),t.isArchivedTaskList(t.task)?t._e():n("div",{staticClass:"pm-flex comment-field-content"},[n("div",{staticClass:"pm-avatar comment-field-avatar"},[n("a",{attrs:{href:"#/my-tasks"}},[n("img",{staticClass:"avatar",attrs:{src:t.PM_Vars.avatar_url}})])]),t._v(" "),n("div",{staticClass:"comment-field"},[t.commentFormMeta.activeNewCommentField?t._e():n("div",{staticClass:"comment-field-text pm-light-font",on:{click:function(e){e.preventDefault(),t.showHideNewCommentField()}}},[t._v(t._s(t.__("Add a comment","wedevs-project-manager")))]),t._v(" "),t.commentFormMeta.activeNewCommentField?n("task-comment-form",{attrs:{task:t.task,comment:{},comments:t.comments,commentFormMeta:t.commentFormMeta}}):t._e()],1)])])])},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement;return(this._self._c||t)("span",{domProps:{innerHTML:this._s(this.parseMessage)}})},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"pm-single-task-wrap"}},[n("div",{staticClass:"nonsortable"},[t.loading?n("div",{staticClass:"modal-mask half-modal pm-task-modal modal-transition"},[t._m(0)]):n("div",{staticClass:"popup-mask"},[n("div",{staticClass:"popup-container"},[n("span",{staticClass:"close-modal"},[n("a",{on:{click:function(e){e.preventDefault(),t.closePopup()}}},[n("span",{staticClass:"dashicons dashicons-no"})])]),t._v(" "),n("div",{directives:[{name:"activity-load-more",rawName:"v-activity-load-more"}],staticClass:"popup-body"},[n("div",{staticClass:"pm-single-task-header"},[n("div",{staticClass:"task-complete-incomplete",class:{disable:t.can_complete_task(t.task)}},[t.task.status?n("a",{staticClass:"completed",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.singleTaskDoneUndone()}}},[t.show_spinner_status?t._e():n("span",{staticClass:"icon-pm-completed pm-font-size-16"}),t._v(" "),t.show_spinner_status?n("span",{staticClass:"pm-spinner"}):t._e(),t._v("\n                                "+t._s(t.__("Completed","wedevs-project-manager"))+"\n                            ")]):t._e(),t._v(" "),t.task.status?t._e():n("a",{staticClass:"incomplete",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.singleTaskDoneUndone()}}},[t.show_spinner_status?t._e():n("span",{staticClass:"icon-pm-incomplete pm-font-size-16"}),t._v(" "),t.show_spinner_status?n("span",{staticClass:"pm-spinner"}):t._e(),t._v("\n                                "+t._s(t.__("Mark Complete","wedevs-project-manager"))+"\n                            ")])]),t._v(" "),n("div",{staticClass:"created-by"},[n("span",{staticClass:"pm-light-color"},[t._v(t._s(t.__("Created by","wedevs-project-manager")))]),t._v(" "),n("span",{staticClass:"pm-dark-color"},[t._v(t._s(t.ucfirst(t.task.creator.data.display_name)))]),t._v(" "),n("span",{staticClass:"pm-light-color"},[t._v(t._s(t.__("on","wedevs-project-manager")))]),t._v(" "),n("span",{staticClass:"pm-dark-color",attrs:{title:t.getFullDate(t.task.created_at.datetime)}},[t._v(t._s(t.cratedDateFormat(t.task.created_at.date)))])]),t._v(" "),n("div",{staticClass:"task-action",attrs:{id:"pm-action-menu"}},[n("span",{staticClass:"icon-pm-more-options pm-font-size-16",staticStyle:{"font-size":"17px"},on:{click:function(e){e.preventDefault(),t.showMenu()}}}),t._v(" "),t.isActiveMenu?n("div",{staticClass:"action-menu"},[n("ul",{staticClass:"action-menu-ul"},[n("li",{staticClass:"pm-dark-hover"},[n("a",{staticClass:"pm-dark-hover title-anchor-menu-a icon-pm-copy pm-font-size-13",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.copyUrl(t.task)}}},[n("span",{staticClass:"title-anchor-menu"},[t._v(t._s(t.__("Copy Link","wedevs-project-manager")))])])]),t._v(" "),t.PM_Vars.is_pro&&t.can_edit_task(t.task)&&t.user_can("view_private_task")?n("li",{staticClass:"pm-dark-hover"},["1"==t.task.meta.privacy?n("a",{staticClass:"pm-dark-hover title-anchor-menu-a icon-pm-private pm-font-size-13",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.singleTaskLockUnlock(t.task)}}},[n("span",{staticClass:"action-menu-span title-anchor-menu"},[t._v(t._s(t.__("Make Visible","wedevs-project-manager")))])]):t._e(),t._v(" "),"0"==t.task.meta.privacy?n("a",{staticClass:"pm-dark-hover title-anchor-menu-a icon-pm-unlock pm-font-size-13",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.singleTaskLockUnlock(t.task)}}},[n("span",{staticClass:"action-menu-span title-anchor-menu"},[t._v(t._s(t.__("Make Private","wedevs-project-manager")))])]):t._e()]):t._e(),t._v(" "),t.can_edit_task(t.task)||t.isArchivedTaskList(t.task)?n("li",[n("a",{staticClass:"pm-dark-hover title-anchor-menu-a icon-pm-delete pm-font-size-13",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.selfDeleteTask({task:t.task,list:t.list})}}},[n("span",{staticClass:"action-menu-span title-anchor-menu"},[t._v(t._s(t.__("Delete","wedevs-project-manager")))])])]):t._e()])]):t._e()])]),t._v(" "),n("div",{class:t.singleTaskTitle(t.task)+" task-title-wrap"},[n("div",{staticClass:"task-title-text"},[t.is_task_title_edit_mode&&t.can_edit_task(t.task)?n("span",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.task.title,expression:"task.title"}],staticClass:"pm-task-title-activity pm-task-title-field",attrs:{type:"text"},domProps:{value:t.task.title},on:{blur:function(e){t.updateTaskTitle(t.task)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.updateTaskTitle(t.task)},input:function(e){e.target.composing||t.$set(t.task,"title",e.target.value)}}}),t._v(" "),t.show_spinner?n("span",{staticClass:"pm-spinner"}):t._e()]):t._e(),t._v(" "),t.is_task_title_edit_mode?t._e():n("span",{class:t.lineThrough(t.task)+" pm-task-title-activity pm-task-title-span",on:{click:function(e){e.preventDefault(),t.isTaskTitleEditMode()}}},[t._v("\n                                "+t._s(t.ucfirst(t.task.title))+"\n                            ")])])]),t._v(" "),t.task.task_list.data?n("div",{staticClass:"task-list-title-wrap"},[n("div",{staticClass:"task-list-title-text"},[n("span",[t._v("\n                                "+t._s(t.__("Task List:","wedevs-project-manager"))+"\n                            ")]),t._v(" "),n("strong",{staticClass:"list-title"},[t._v("\n                                "+t._s(t.task.task_list.data.title)+"\n                            ")])])]):t._e(),t._v(" "),n("div",{staticClass:"pm-flex options-wrap"},[n("div",{staticClass:"pm-flex assigne-users"},[t._l(t.task.assignees.data,function(e){return t.task.assignees.data.length?n("div",{key:e.id,staticClass:"pm-assigned-user"},[n("a",{attrs:{href:t.userTaskProfileUrl(e.id),title:e.display_name}},[n("img",{staticClass:"avatar avatar-48 photo",attrs:{alt:e.display_name,src:e.avatar_url,height:"48",width:"48"}})])]):t._e()}),t._v(" "),t.has_task_permission()?n("div",{attrs:{id:"pm-multiselect-single-task"}},[n("span",{staticClass:"icon-pm-user",on:{click:function(e){e.preventDefault(),t.isEnableMultiSelect()}}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.is_enable_multi_select,expression:"is_enable_multi_select"}],staticClass:"pm-multiselect pm-multiselect-single-task"},[n("div",{staticClass:"pm-multiselect-content"},[n("div",{staticClass:"assign-to"},[t._v(t._s(t.__("Assign to","wedevs-project-manager")))]),t._v(" "),n("multiselect",{ref:"assingTask",attrs:{id:"assingTask",options:t.project_users,multiple:!0,"close-on-select":!1,"clear-on-select":!0,"show-labels":!0,searchable:!0,placeholder:t.__("Search User","wedevs-project-manager"),"select-label":"","selected-label":"selected","deselect-label":"",label:"display_name","track-by":"id","allow-empty":!0},scopedSlots:t._u([{key:"option",fn:function(e){return[n("img",{staticClass:"option__image",attrs:{src:e.option.avatar_url}}),t._v(" "),n("div",{staticClass:"option__desc"},[n("span",{staticClass:"option__title"},[t._v(t._s(e.option.display_name))])])]}}]),model:{value:t.task_assign,callback:function(e){t.task_assign=e},expression:"task_assign"}})],1)])]):t._e()],2),t._v(" "),n("div",{staticClass:"pm-flex option-icon-groups"},[n("do-action",{attrs:{hook:"single_task_action",actionData:t.task}}),t._v(" "),t.isTaskLock?n("span",{staticClass:"icon-pm-unlock pm-dark-hover pm-font-size-16",attrs:{title:t.__("Task is visible for co-worker","wedevs-project-manager")},on:{click:function(e){e.preventDefault(),t.singleTaskLockUnlock(t.task)}}}):t._e(),t._v(" "),t.isTaskUnlock?n("span",{staticClass:"icon-pm-private pm-dark-hover pm-font-size-16",on:{click:function(e){e.preventDefault(),t.singleTaskLockUnlock(t.task)}}}):t._e(),t._v(" "),t.has_task_permission()?n("span",{directives:[{name:"pm-tooltip",rawName:"v-pm-tooltip"}],staticClass:"individual-group-icon calendar-group icon-pm-calendar pm-font-size-16",attrs:{id:"pm-calendar-wrap",title:t.__("Date","wedevs-project-manager")},on:{click:function(e){e.preventDefault(),t.isTaskDateEditMode()}}},[t.task.start_at.date||t.task.due_date.date?n("span",{class:t.taskDateWrap(t.task.due_date.date)+" pm-task-date-wrap pm-date-window"},[t.task_start_field?n("span",{attrs:{title:t.getFullDate(t.task.start_at.datetime)}},[t._v("\n                                        "+t._s(t.dateFormat(t.task.start_at.date))+"\n                                    ")]):t._e(),t._v(" "),t.task_start_field&&t.task.start_at.date&&t.task.due_date.date?n("span",[t._v("–")]):t._e(),t._v(" "),t.task.due_date?n("span",{attrs:{title:t.getFullDate(t.task.due_date.datetime)}},[t._v("\n\n                                        "+t._s(t.dateFormat(t.task.due_date.date))+"\n                                    ")]):t._e()]):t._e(),t._v(" "),t.task.start_at.date||t.task.due_date.date?t._e():n("span",{staticClass:"pm-task-date-wrap pm-date-window"},[n("span",{class:t.task.status?t.completedTaskWrap(t.task.start_at.date,t.task.due_date.date):t.taskDateWrap(t.task.start_at.date,t.task.due_date.date),on:{click:function(e){e.preventDefault(),t.isTaskDateEditMode()}}})]),t._v(" "),t.is_task_date_edit_mode&&t.can_edit_task(t.task)?n("div",{staticClass:"task-date"},[t.task_start_field?n("pm-content-datepicker",{staticClass:"pm-datepicker-from pm-inline-date-picker-from",attrs:{callback:t.callBackDatePickerForm,dependency:"pm-datepickter-to"},model:{value:t.task.start_at.date,callback:function(e){t.$set(t.task.start_at,"date",e)},expression:"task.start_at.date"}}):t._e(),t._v(" "),n("pm-content-datepicker",{staticClass:"pm-datepicker-to pm-inline-date-picker-to",attrs:{dependency:"pm-datepickter-from",callback:t.callBackDatePickerTo},model:{value:t.task.due_date.date,callback:function(e){t.$set(t.task.due_date,"date",e)},expression:"task.due_date.date"}})],1):t._e()]):t._e(),t._v(" "),n("do-action",{attrs:{hook:"single_task_inline",actionData:t.doActionData}})],1)]),t._v(" "),n("div",{staticClass:"description-wrap",attrs:{id:"description-wrap"}},[t.showdescriptionfield&&t.has_task_permission()?n("div",{staticClass:"action-content pm-flex",on:{click:function(e){e.preventDefault(),t.isTaskDetailsEditMode()}}},[n("span",[n("span",{staticClass:"icon-pm-align-left"}),t._v(" "),n("span",{staticClass:"task-description"},[t._v(t._s(t.__("Description","wedevs-project-manager")))])]),t._v(" "),n("span",{staticClass:"icon-pm-pencil"})]):n("div",{staticClass:"task-details"},[t.is_task_details_edit_mode?t._e():n("div",{staticClass:"pm-des-area pm-desc-content"},[""!=t.task.description.content?n("div",{staticClass:"pm-task-description",domProps:{innerHTML:t._s(t.task.description.html)}}):t._e(),t._v(" "),t.can_edit_task(t.task)&&!t.isArchivedTaskList(t.task)?n("a",{staticClass:"task-description-edit-icon",attrs:{title:t.update_description},on:{click:function(e){e.preventDefault(),t.isTaskDetailsEditMode()}}},[n("i",{staticClass:"fa fa-pencil",staticStyle:{"font-size":"16px"},attrs:{"aria-hidden":"true"}})]):t._e()]),t._v(" "),t.is_task_details_edit_mode&&t.can_edit_task(t.task)&&!t.isArchivedTaskList(t.task)?n("div",{staticClass:"item detail"},[t.is_task_details_edit_mode?n("text-editor",{attrs:{editor_id:"task-description-editor",content:t.content}}):t._e(),t._v(" "),n("div",{staticClass:"task-description-action"},[n("a",{staticClass:"pm-button pm-primary",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.submitDescription(t.task)}}},[t._v(t._s(t.__("Update","wedevs-project-manager")))]),t._v(" "),n("a",{staticClass:"pm-button pm-secondary",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.closeDescriptionEditor(t.task)}}},[t._v(t._s(t.__("Cancel","wedevs-project-manager")))]),t._v(" "),t.description_show_spinner?n("span",{staticClass:"pm-spinner"}):t._e()])],1):t._e(),t._v(" "),n("div",{staticClass:"clearfix pm-clear"}),t._v(" "),n("do-action",{attrs:{hook:"aftre_single_task_details",actionData:t.doActionData}})],1)]),t._v(" "),n("do-action",{attrs:{hook:"aftre_single_task_content",actionData:t.doActionData}}),t._v(" "),n("div",{staticClass:"discuss-wrap"},[n("task-comments",{attrs:{task:t.task,comments:t.task.comments.data}})],1),t._v(" "),n("div",{staticClass:"task-activities"},[n("span",{staticClass:"activity-title pm-h2"},[t._v(t._s(t.__("Activity","wedevs-project-manager")))]),t._v(" "),n("ul",{staticClass:"single-task-activity-ul"},t._l(t.task.activities.data,function(e){return n("li",{key:e.id},[n("div",{staticClass:"activity-li-content"},[n("div",{staticClass:"activity-actor"},[n("img",{staticClass:"activity-author-image",attrs:{src:e.actor.data.avatar_url}})]),t._v(" "),n("div",{staticClass:"activity-content"},[n("activity-parser",{attrs:{activity:e}}),t._v(" "),n("span",{staticClass:"activity-watch-wrap"},[n("span",{staticClass:"activity-watch-icon icon-pm-watch"}),t._v(" "),n("span",{staticClass:"activity-form-now",attrs:{title:t.getFullDate(e.committed_at.datetime)}},[t._v(t._s(t.relativeDate(e.committed_at.datetime)))])])],1)])])})),t._v(" "),t.activityLoading?n("div",{staticClass:"pm-data-load-before"},[t._m(1)]):t._e()])],1)])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"pm-data-load-before"},[e("div",{staticClass:"loadmoreanimation"},[e("div",{staticClass:"load-spinner"},[e("div",{staticClass:"rect1"}),this._v(" "),e("div",{staticClass:"rect2"}),this._v(" "),e("div",{staticClass:"rect3"}),this._v(" "),e("div",{staticClass:"rect4"}),this._v(" "),e("div",{staticClass:"rect5"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"loadmoreanimation"},[e("div",{staticClass:"load-spinner"},[e("div",{staticClass:"rect1"}),this._v(" "),e("div",{staticClass:"rect2"}),this._v(" "),e("div",{staticClass:"rect3"}),this._v(" "),e("div",{staticClass:"rect4"}),this._v(" "),e("div",{staticClass:"rect5"})])])}]};e.a=i},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.total_pages>1?n("div",{staticClass:"pm-pagination-wrap"},[n("div",{staticClass:"pm-pagination-inner"},[parseInt(t.current_page_number)>1?n("router-link",{staticClass:"pm-pagination-btn prev page-numbers",attrs:{to:{name:t.component_name,params:t.setParams(parseInt(t.current_page_number)-1),query:t.route_query}}},[t._v("\n            ←\n        ")]):t._e(),t._v(" "),t._l(t.total_pages,function(e){return n("router-link",{key:e,class:t.pageClass(e)+" pm-pagination-btn",attrs:{to:{name:t.component_name,params:t.setParams(e),query:t.route_query}}},[t._v("\n            "+t._s(e)+"\n        ")])}),t._v(" "),parseInt(t.current_page_number)<parseInt(t.total_pages)?n("router-link",{staticClass:"pm-pagination-btn next page-numbers",attrs:{to:{name:t.component_name,params:t.setParams(parseInt(t.current_page_number)+1),query:t.route_query}}},[t._v("\n            →\n        ")]):t._e()],2),t._v(" "),n("div",{staticClass:"pm-clearfix"})]):t._e()},staticRenderFns:[]};e.a=i},,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(84),s=n(177),a=n(0)(i.a,s.a,!1,null,null,null);e.default=a.exports},function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement;return(this._self._c||t)("input",{staticClass:"pm-datepicker",attrs:{type:"text"},domProps:{value:this.dateValue}})},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(85),s=n(203);var a=function(t){n(179)},r=n(0)(i.a,s.a,!1,a,null,null);e.default=r.exports},function(t,e,n){var i=n(180);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("70b79605",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".vc-sketch{position:relative;width:200px;padding:10px 10px 0;box-sizing:initial;background:#fff;border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.15),0 8px 16px rgba(0,0,0,.15)}.vc-sketch-saturation-wrap{width:100%;padding-bottom:75%;position:relative;overflow:hidden}.vc-sketch-controls{display:flex}.vc-sketch-sliders{padding:4px 0;flex:1}.vc-sketch-sliders .vc-alpha-gradient,.vc-sketch-sliders .vc-hue{border-radius:2px}.vc-sketch-alpha-wrap,.vc-sketch-hue-wrap{position:relative;height:10px}.vc-sketch-alpha-wrap{margin-top:4px;overflow:hidden}.vc-sketch-color-wrap{width:24px;height:24px;position:relative;margin-top:4px;margin-left:4px;border-radius:3px}.vc-sketch-active-color{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),inset 0 0 4px rgba(0,0,0,.25);z-index:2}.vc-sketch-color-wrap .vc-checkerboard{background-size:auto}.vc-sketch-field{display:flex;padding-top:4px}.vc-sketch-field .vc-input__input{width:80%;padding:4px 10% 3px;border:none;box-shadow:inset 0 0 0 1px #ccc;font-size:11px}.vc-sketch-field .vc-input__label{display:block;text-align:center;font-size:11px;color:#222;padding-top:3px;padding-bottom:4px;text-transform:capitalize}.vc-sketch-field--single{flex:1;padding-left:6px}.vc-sketch-field--double{flex:2}.vc-sketch-presets{margin-right:-10px;margin-left:-10px;padding-left:10px;padding-top:10px;border-top:1px solid #eee}.vc-sketch-presets-color{border-radius:3px;overflow:hidden;position:relative;display:inline-block;margin:0 10px 10px 0;vertical-align:top;cursor:pointer;width:16px;height:16px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.vc-sketch__disable-alpha .vc-sketch-color-wrap{height:10px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t&&t.__esModule?t:{default:t}}(n(182));function s(t,e){var n,s=t&&t.a;!(n=t&&t.hsl?(0,i.default)(t.hsl):t&&t.hex&&t.hex.length>0?(0,i.default)(t.hex):(0,i.default)(t))||void 0!==n._a&&null!==n._a||n.setAlpha(s||1);var a=n.toHsl(),r=n.toHsv();return 0===a.s&&(r.h=a.h=t.h||t.hsl&&t.hsl.h||e||0),{hsl:a,hex:n.toHexString().toUpperCase(),rgba:n.toRgb(),hsv:r,oldHue:t.h||e||a.h,source:t.source,a:t.a||n.getAlpha()}}e.default={props:["value"],data:function(){return{val:s(this.value)}},computed:{colors:{get:function(){return this.val},set:function(t){this.val=t,this.$emit("input",t)}}},watch:{value:function(t){this.val=s(t)}},methods:{colorChange:function(t,e){this.oldHue=this.colors.hsl.h,this.colors=s(t,e||this.oldHue)},isValidHex:function(t){return(0,i.default)(t).isValid()},simpleCheckForValidColor:function(t){for(var e=["r","g","b","a","h","s","l","v"],n=0,i=0,s=0;s<e.length;s++){var a=e[s];t[a]&&(n++,isNaN(t[a])||i++)}if(n===i)return t}}}},function(t,e,n){var i;!function(s){var a=/^\s+/,r=/\s+$/,o=0,c=s.round,u=s.min,l=s.max,d=s.random;function p(t,e){if(t=t||"",e=e||{},t instanceof p)return t;if(!(this instanceof p))return new p(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,i=null,o=null,c=null,d=!1,p=!1;"string"==typeof t&&(t=function(t){t=t.replace(a,"").replace(r,"").toLowerCase();var e,n=!1;if(O[t])t=O[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=I.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=I.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=I.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=I.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=I.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=I.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=I.hex8.exec(t))return{r:E(e[1]),g:E(e[2]),b:E(e[3]),a:N(e[4]),format:n?"name":"hex8"};if(e=I.hex6.exec(t))return{r:E(e[1]),g:E(e[2]),b:E(e[3]),format:n?"name":"hex"};if(e=I.hex4.exec(t))return{r:E(e[1]+""+e[1]),g:E(e[2]+""+e[2]),b:E(e[3]+""+e[3]),a:N(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=I.hex3.exec(t))return{r:E(e[1]+""+e[1]),g:E(e[2]+""+e[2]),b:E(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==typeof t&&(H(t.r)&&H(t.g)&&H(t.b)?(e=function(t,e,n){return{r:255*D(t,255),g:255*D(e,255),b:255*D(n,255)}}(t.r,t.g,t.b),d=!0,p="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(i=R(t.s),o=R(t.v),e=function(t,e,n){t=6*D(t,360),e=D(e,100),n=D(n,100);var i=s.floor(t),a=t-i,r=n*(1-e),o=n*(1-a*e),c=n*(1-(1-a)*e),u=i%6;return{r:255*[n,o,r,r,c,n][u],g:255*[c,n,n,o,r,r][u],b:255*[r,r,c,n,n,o][u]}}(t.h,i,o),d=!0,p="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(i=R(t.s),c=R(t.l),e=function(t,e,n){var i,s,a;function r(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=D(t,360),e=D(e,100),n=D(n,100),0===e)i=s=a=n;else{var o=n<.5?n*(1+e):n+e-n*e,c=2*n-o;i=r(c,o,t+1/3),s=r(c,o,t),a=r(c,o,t-1/3)}return{r:255*i,g:255*s,b:255*a}}(t.h,i,c),d=!0,p="hsl"),t.hasOwnProperty("a")&&(n=t.a));return n=L(n),{ok:d,format:t.format||p,r:u(255,l(e.r,0)),g:u(255,l(e.g,0)),b:u(255,l(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=o++}function f(t,e,n){t=D(t,255),e=D(e,255),n=D(n,255);var i,s,a=l(t,e,n),r=u(t,e,n),o=(a+r)/2;if(a==r)i=s=0;else{var c=a-r;switch(s=o>.5?c/(2-a-r):c/(a+r),a){case t:i=(e-n)/c+(e<n?6:0);break;case e:i=(n-t)/c+2;break;case n:i=(t-e)/c+4}i/=6}return{h:i,s:s,l:o}}function h(t,e,n){t=D(t,255),e=D(e,255),n=D(n,255);var i,s,a=l(t,e,n),r=u(t,e,n),o=a,c=a-r;if(s=0===a?0:c/a,a==r)i=0;else{switch(a){case t:i=(e-n)/c+(e<n?6:0);break;case e:i=(n-t)/c+2;break;case n:i=(t-e)/c+4}i/=6}return{h:i,s:s,v:o}}function m(t,e,n,i){var s=[F(c(t).toString(16)),F(c(e).toString(16)),F(c(n).toString(16))];return i&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function _(t,e,n,i){return[F(V(i)),F(c(t).toString(16)),F(c(e).toString(16)),F(c(n).toString(16))].join("")}function v(t,e){e=0===e?0:e||10;var n=p(t).toHsl();return n.s-=e/100,n.s=A(n.s),p(n)}function g(t,e){e=0===e?0:e||10;var n=p(t).toHsl();return n.s+=e/100,n.s=A(n.s),p(n)}function b(t){return p(t).desaturate(100)}function y(t,e){e=0===e?0:e||10;var n=p(t).toHsl();return n.l+=e/100,n.l=A(n.l),p(n)}function k(t,e){e=0===e?0:e||10;var n=p(t).toRgb();return n.r=l(0,u(255,n.r-c(-e/100*255))),n.g=l(0,u(255,n.g-c(-e/100*255))),n.b=l(0,u(255,n.b-c(-e/100*255))),p(n)}function w(t,e){e=0===e?0:e||10;var n=p(t).toHsl();return n.l-=e/100,n.l=A(n.l),p(n)}function x(t,e){var n=p(t).toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,p(n)}function j(t){var e=p(t).toHsl();return e.h=(e.h+180)%360,p(e)}function C(t){var e=p(t).toHsl(),n=e.h;return[p(t),p({h:(n+120)%360,s:e.s,l:e.l}),p({h:(n+240)%360,s:e.s,l:e.l})]}function M(t){var e=p(t).toHsl(),n=e.h;return[p(t),p({h:(n+90)%360,s:e.s,l:e.l}),p({h:(n+180)%360,s:e.s,l:e.l}),p({h:(n+270)%360,s:e.s,l:e.l})]}function S(t){var e=p(t).toHsl(),n=e.h;return[p(t),p({h:(n+72)%360,s:e.s,l:e.l}),p({h:(n+216)%360,s:e.s,l:e.l})]}function T(t,e,n){e=e||6,n=n||30;var i=p(t).toHsl(),s=360/n,a=[p(t)];for(i.h=(i.h-(s*e>>1)+720)%360;--e;)i.h=(i.h+s)%360,a.push(p(i));return a}function P(t,e){e=e||6;for(var n=p(t).toHsv(),i=n.h,s=n.s,a=n.v,r=[],o=1/e;e--;)r.push(p({h:i,s:s,v:a})),a=(a+o)%1;return r}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,i=this.toRgb();return t=i.r/255,e=i.g/255,n=i.b/255,.2126*(t<=.03928?t/12.92:s.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:s.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:s.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=L(t),this._roundA=c(100*this._a)/100,this},toHsv:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=h(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),i=c(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+i+"%)":"hsva("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),i=c(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+i+"%)":"hsla("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return m(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,i,s){var a=[F(c(t).toString(16)),F(c(e).toString(16)),F(c(n).toString(16)),F(V(i))];if(s&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*D(this._r,255))+"%",g:c(100*D(this._g,255))+"%",b:c(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%)":"rgba("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&($[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+_(this._r,this._g,this._b,this._a),n=e,i=this._gradientType?"GradientType = 1, ":"";if(t){var s=p(t);n="#"+_(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0;return e||!i||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},p.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]="a"===i?t[i]:R(t[i]));t=n}return p(t,e)},p.equals=function(t,e){return!(!t||!e)&&p(t).toRgbString()==p(e).toRgbString()},p.random=function(){return p.fromRatio({r:d(),g:d(),b:d()})},p.mix=function(t,e,n){n=0===n?0:n||50;var i=p(t).toRgb(),s=p(e).toRgb(),a=n/100;return p({r:(s.r-i.r)*a+i.r,g:(s.g-i.g)*a+i.g,b:(s.b-i.b)*a+i.b,a:(s.a-i.a)*a+i.a})},p.readability=function(t,e){var n=p(t),i=p(e);return(s.max(n.getLuminance(),i.getLuminance())+.05)/(s.min(n.getLuminance(),i.getLuminance())+.05)},p.isReadable=function(t,e,n){var i,s,a=p.readability(t,e);switch(s=!1,(i=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+i.size){case"AAsmall":case"AAAlarge":s=a>=4.5;break;case"AAlarge":s=a>=3;break;case"AAAsmall":s=a>=7}return s},p.mostReadable=function(t,e,n){var i,s,a,r,o=null,c=0;s=(n=n||{}).includeFallbackColors,a=n.level,r=n.size;for(var u=0;u<e.length;u++)(i=p.readability(t,e[u]))>c&&(c=i,o=p(e[u]));return p.isReadable(t,o,{level:a,size:r})||!s?o:(n.includeFallbackColors=!1,p.mostReadable(t,["#fff","#000"],n))};var O=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=p.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(O);function L(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function D(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=u(e,l(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),s.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function A(t){return u(1,l(0,t))}function E(t){return parseInt(t,16)}function F(t){return 1==t.length?"0"+t:""+t}function R(t){return t<=1&&(t=100*t+"%"),t}function V(t){return s.round(255*parseFloat(t)).toString(16)}function N(t){return E(t)/255}var I=function(){var t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function H(t){return!!I.CSS_UNIT.exec(t)}void 0!==t&&t.exports?t.exports=p:void 0===(i=function(){return p}.call(e,n,e,t))||(t.exports=i)}(Math)},function(t,e,n){"use strict";var i=n(86),s=n(186);var a=function(t){n(184)},r=n(0)(i.a,s.a,!1,a,null,null);e.a=r.exports},function(t,e,n){var i=n(185);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("3b0e2736",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".vc-editable-input{position:relative}.vc-input__input{padding:0;border:0;outline:none}.vc-input__label{text-transform:capitalize}",""])},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-editable-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-label":t.value},domProps:{value:t.val},on:{keydown:t.handleKeyDown,input:[function(e){e.target.composing||(t.val=e.target.value)},t.update]}}),t._v(" "),n("span",{staticClass:"vc-input__label"},[t._v(t._s(t.label))]),t._v(" "),n("span",{staticClass:"vc-input__desc"},[t._v(t._s(t.desc))])])},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";var i=n(87),s=n(191);var a=function(t){n(188)},r=n(0)(i.a,s.a,!1,a,null,null);e.a=r.exports},function(t,e,n){var i=n(189);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("7b0ac1ed",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".vc-saturation,.vc-saturation--black,.vc-saturation--white{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0}.vc-saturation--white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.vc-saturation--black{background:linear-gradient(0deg,#000,transparent)}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transform:translate(-2px,-2px)}",""])},function(t,e,n){(function(e){var n="Expected a function",i=NaN,s="[object Symbol]",a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,p=l||d||Function("return this")(),f=Object.prototype.toString,h=Math.max,m=Math.min,_=function(){return p.Date.now()};function v(t,e,i){var s,a,r,o,c,u,l=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new TypeError(n);function v(e){var n=s,i=a;return s=a=void 0,l=e,o=t.apply(i,n)}function y(t){var n=t-u;return void 0===u||n>=e||n<0||p&&t-l>=r}function k(){var t=_();if(y(t))return w(t);c=setTimeout(k,function(t){var n=e-(t-u);return p?m(n,r-(t-l)):n}(t))}function w(t){return c=void 0,f&&s?v(t):(s=a=void 0,o)}function x(){var t=_(),n=y(t);if(s=arguments,a=this,u=t,n){if(void 0===c)return function(t){return l=t,c=setTimeout(k,e),d?v(t):o}(u);if(p)return c=setTimeout(k,e),v(u)}return void 0===c&&(c=setTimeout(k,e)),o}return e=b(e)||0,g(i)&&(d=!!i.leading,r=(p="maxWait"in i)?h(b(i.maxWait)||0,e):r,f="trailing"in i?!!i.trailing:f),x.cancel=function(){void 0!==c&&clearTimeout(c),l=0,s=u=a=c=void 0},x.flush=function(){return void 0===c?o:w(_())},x}function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function b(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&f.call(t)==s}(t))return i;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=o.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):r.test(t)?i:+t}t.exports=function(t,e,i){var s=!0,a=!0;if("function"!=typeof t)throw new TypeError(n);return g(i)&&(s="leading"in i?!!i.leading:s,a="trailing"in i?!!i.trailing:a),v(t,e,{leading:s,maxWait:e,trailing:a})}}).call(e,n(51))},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",staticClass:"vc-saturation",style:{background:t.bgColor},on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-saturation--white"}),t._v(" "),n("div",{staticClass:"vc-saturation--black"}),t._v(" "),n("div",{staticClass:"vc-saturation-pointer",style:{top:t.pointerTop,left:t.pointerLeft}},[n("div",{staticClass:"vc-saturation-circle"})])])},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";var i=n(88),s=n(195);var a=function(t){n(193)},r=n(0)(i.a,s.a,!1,a,null,null);e.a=r.exports},function(t,e,n){var i=n(194);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("30760d08",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".vc-hue{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;margin:0 2px;position:relative;height:100%}.vc-hue-pointer{z-index:2;position:absolute}.vc-hue-picker{cursor:pointer;margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;transform:translateX(-2px)}",""])},function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:["vc-hue",this.directionClass]},[e("div",{ref:"container",staticClass:"vc-hue-container",on:{mousedown:this.handleMouseDown,touchmove:this.handleChange,touchstart:this.handleChange}},[e("div",{staticClass:"vc-hue-pointer",style:{top:this.pointerTop,left:this.pointerLeft}},[e("div",{staticClass:"vc-hue-picker"})])])])},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";var i=n(89),s=n(202);var a=function(t){n(197)},r=n(0)(i.a,s.a,!1,a,null,null);e.a=r.exports},function(t,e,n){var i=n(198);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("5e1e168d",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".vc-alpha,.vc-alpha-checkboard-wrap{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-checkboard-wrap{overflow:hidden}.vc-alpha-gradient{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-container{cursor:pointer;position:relative;z-index:2;height:100%;margin:0 3px}.vc-alpha-pointer{z-index:2;position:absolute}.vc-alpha-picker{cursor:pointer;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;margin-top:1px;transform:translateX(-2px)}",""])},function(t,e,n){var i=n(200);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("44547006",i,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".vc-checkerboard{position:absolute;top:0;right:0;bottom:0;left:0;background-size:contain}",""])},function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"vc-checkerboard",style:this.bgStyle})},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"vc-alpha"},[e("div",{staticClass:"vc-alpha-checkboard-wrap"},[e("checkboard")],1),this._v(" "),e("div",{staticClass:"vc-alpha-gradient",style:{background:this.gradientColor}}),this._v(" "),e("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:this.handleMouseDown,touchmove:this.handleChange,touchstart:this.handleChange}},[e("div",{staticClass:"vc-alpha-pointer",style:{left:100*this.colors.a+"%"}},[e("div",{staticClass:"vc-alpha-picker"})])])])},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vc-sketch",t.disableAlpha?"vc-sketch__disable-alpha":""]},[n("div",{staticClass:"vc-sketch-saturation-wrap"},[n("saturation",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-controls"},[n("div",{staticClass:"vc-sketch-sliders"},[n("div",{staticClass:"vc-sketch-hue-wrap"},[n("hue",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-sketch-alpha-wrap"},[n("alpha",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1)]),t._v(" "),n("div",{staticClass:"vc-sketch-color-wrap"},[n("div",{staticClass:"vc-sketch-active-color",style:{background:t.activeColor}}),t._v(" "),n("checkboard")],1)]),t._v(" "),t.disableFields?t._e():n("div",{staticClass:"vc-sketch-field"},[n("div",{staticClass:"vc-sketch-field--double"},[n("ed-in",{attrs:{label:"hex",value:t.hex},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"r",value:t.colors.rgba.r},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"g",value:t.colors.rgba.g},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"b",value:t.colors.rgba.b},on:{change:t.inputChange}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"a",value:t.colors.a,"arrow-offset":.01,max:1},on:{change:t.inputChange}})],1)]),t._v(" "),n("div",{staticClass:"vc-sketch-presets"},t._l(t.presetColors,function(e){return n("div",{key:e,staticClass:"vc-sketch-presets-color",style:{background:e},on:{click:function(n){t.handlePreset(e)}}})}))])},staticRenderFns:[]};e.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=o(n(4)),s=o(n(58)),a=o(n(83)),r=o(n(158));function o(t){return t&&t.__esModule?t:{default:t}}n.p=PM_Vars.dir_url+"views/assets/js/",pm.hooks=wp&&wp.hooks?wp.hooks:wedevsPMWPHook;var c=n(178);pm.color=c.default,pm.Multiselect=n(29);var u=n(681);pm.commonComponents=u.default,Vue.use(VTooltip),pm.SingleTask=r.default,PmMixin.projectTaskLists=i.default,PmMixin.mixins=s.default,PmMixin.settings=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={pagination:n(19),datePicker:n(176)}}]);