(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{510:function(t,e,s){"use strict";s.r(e);var n=s(220),o=s(0),i=s(71),r=s(3).a.extend({components:{factorLink:n.u},props:{postId:{type:String,default:""}},data:()=>({factorBtn:n.b}),computed:{editText(){return this.meta&&this.meta.nameSingle?`Edit ${this.meta.nameSingle}`:"Edit"},meta(){return this.post.postType?Object(o.k)(this.post.postType):{}},post(){return this.postId?Object(o.C)(this.postId):{}},author(){return this.post&&this.post.author?this.post.author:[]},accessLevel(){const{accessLevel:t}=Object(i.b)();return t||0},canEdit(){return this.accessLevel>100||this.author.includes(Object(i.g)())}}}),a=s(531),c=Object(a.a)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.postId&&t.canEdit?s("factor-link",{staticClass:"edit",attrs:{btn:"default",size:"tiny",path:"/dashboard/posts/"+t.post.postType+"/edit",query:{_id:t.post._id}}},[t._v(t._s(t.editText))]):t._e()}),[],!1,null,null,null);e.default=c.exports},531:function(t,e,s){"use strict";function n(t,e,s,n,o,i,r,a){var c,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=s,d._compiled=!0),n&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),r?(c=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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(d.functional){d._injectStyles=c;var p=d.render;d.render=function(t,e){return c.call(e),p(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:d}}s.d(e,"a",(function(){return n}))}}]);