(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{107:function(t,e,o){"use strict";o.r(e);var n=o(220),s=o(0),i=o(23),r=o(3).a.extend({components:{dashboardPane:n.h},computed:{post:{get(){return Object(s.C)(this._id)||{}},set(t){Object(s.B)(this._id,t)}},_id(){return this.$route.query._id||""},postType(){return this.$route.params.postType||""},getPostTypeConfig(){return Object(s.k)(this.postType)},templateLoader(){const{editTemplate:t}=this.getPostTypeConfig;return t||(()=>o.e(54).then(o.bind(null,761)))},editComponents(){return Object(s.e)("post-edit-components",[]).filter(({postType:t})=>!t||t&&t.includes(this.postType))}},watch:{$route:function(){this._id||this.requestPost()}},mounted(){this.requestPost()},methods:{async requestPost(){const t=await Object(i.g)({_id:this._id,postType:this.postType,createOnEmpty:!0,depth:100});t._id!=this._id&&this.$router.replace({query:{...this.$route.query,_id:t._id}})}}}),p=o(531),d=Object(p.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(t.templateLoader,{tag:"component",attrs:{"post-id":t._id,post:t.post,"post-type":t.postType},scopedSlots:t._u([{key:"edit",fn:function(){return t._l(t.editComponents,(function(e,n){return o("dashboard-pane",{key:n,attrs:{title:e.name}},[o(e.component,{tag:"component",attrs:{"post-id":t._id},model:{value:t.post,callback:function(e){t.post=e},expression:"post"}})],1)}))},proxy:!0}])})}),[],!1,null,null,null);e.default=d.exports},531:function(t,e,o){"use strict";function n(t,e,o,n,s,i,r,p){var d,a="function"==typeof t?t.options:t;if(e&&(a.render=e,a.staticRenderFns=o,a._compiled=!0),n&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),r?(d=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__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},a._ssrRegister=d):s&&(d=p?function(){s.call(this,this.$root.$options.shadowRoot)}:s),d)if(a.functional){a._injectStyles=d;var c=a.render;a.render=function(t,e){return d.call(e),c(t,e)}}else{var u=a.beforeCreate;a.beforeCreate=u?[].concat(u,d):[d]}return{exports:t,options:a}}o.d(e,"a",(function(){return n}))}}]);