!function(t){function s(a){if(o[a])return o[a].exports;var e=o[a]={exports:{},id:a,loaded:!1};return t[a].call(e.exports,e,e.exports,s),e.loaded=!0,e.exports}var o={};return s.m=t,s.c=o,s.p="",s(0)}([function(t,s,o){window.Post={el:"#post",data:function(){return{data:window.$data,post:window.$data.post,sections:[]}},created:function(){var t=[];_.forIn(this.$options.components,function(s,o){var a=s.options||{};a.section&&t.push(_.extend({name:o,priority:0},a.section))}),this.$set("sections",_.sortBy(t,"priority")),this.resource=this.$resource("api/blog/post{/id}")},ready:function(){this.tab=UIkit.tab(this.$els.tab,{connect:this.$els.content})},methods:{save:function(){var t={post:this.post,id:this.post.id};this.$broadcast("save",t),this.resource.save({id:this.post.id},t).then(function(t){var s=t.data;this.post.id||window.history.replaceState({},"",this.$url.route("admin/blog/post/edit",{id:s.post.id})),this.$set("post",s.post),this.$notify("Post saved.")},function(t){this.$notify(t.data,"danger")})}},components:{settings:o(7)}},Vue.ready(window.Post)},,,function(t,s){"use strict";t.exports={props:["post","data","form"],section:{label:"Post"}}},,,function(t,s){t.exports="<div class=\"uk-grid pk-grid-large pk-width-sidebar-large uk-form-stacked\" data-uk-grid-margin> <div class=pk-width-content> <div class=uk-form-row> <input class=\"uk-width-1-1 uk-form-large\" type=text name=title :placeholder=\"'Enter Title' | trans\" v-model=post.title v-validate:required> <p class=\"uk-form-help-block uk-text-danger\" v-show=form.title.invalid>{{ 'Title cannot be blank.' | trans }}</p> </div> <div class=uk-form-row> <v-editor id=post-content :value.sync=post.content :options=\"{markdown : post.data.markdown}\"></v-editor> </div> <div class=uk-form-row> <label for=form-post-excerpt class=uk-form-label>{{ 'Excerpt' | trans }}</label> <div class=uk-form-controls> <v-editor id=post-excerpt :value.sync=post.excerpt :options=\"{markdown : post.data.markdown, height: 250}\"></v-editor> </div> </div> </div> <div class=pk-width-sidebar> <div class=uk-panel> <div class=uk-form-row> <label for=form-image class=uk-form-label>{{ 'Image' | trans }}</label> <div class=uk-form-controls> <input-image-meta :image.sync=post.data.image class=pk-image-max-height></input-image-meta> </div> </div> <div class=uk-form-row> <label for=form-slug class=uk-form-label>{{ 'Slug' | trans }}</label> <div class=uk-form-controls> <input id=form-slug class=uk-width-1-1 type=text v-model=post.slug> </div> </div> <div class=uk-form-row> <label for=form-status class=uk-form-label>{{ 'Status' | trans }}</label> <div class=uk-form-controls> <select id=form-status class=uk-width-1-1 v-model=post.status> <option v-for=\"(id, status) in data.statuses\" :value=id>{{status}}</option> </select> </div> </div> <div class=uk-form-row v-if=data.canEditAll> <label for=form-author class=uk-form-label>{{ 'Author' | trans }}</label> <div class=uk-form-controls> <select id=form-author class=uk-width-1-1 v-model=post.user_id> <option v-for=\"author in data.authors\" :value=author.id>{{author.username}}</option> </select> </div> </div> <div class=uk-form-row> <span class=uk-form-label>{{ 'Publish on' | trans }}</span> <div class=uk-form-controls> <input-date :datetime.sync=post.date></input-date> </div> </div> <div class=uk-form-row> <span class=uk-form-label>{{ 'Restrict Access' | trans }}</span> <div class=\"uk-form-controls uk-form-controls-text\"> <p v-for=\"role in data.roles\" class=uk-form-controls-condensed> <label><input type=checkbox :value=role.id v-model=post.roles number> {{ role.name }}</label> </p> </div> </div> <div class=uk-form-row> <span class=uk-form-label>{{ 'Options' | trans }}</span> <div class=uk-form-controls> <label><input type=checkbox v-model=post.data.markdown value=1> {{ 'Enable Markdown' | trans }}</label> </div> <div class=uk-form-controls> <label><input type=checkbox v-model=post.comment_status value=1> {{ 'Enable Comments' | trans }}</label> </div> </div> </div> </div> </div>"},function(t,s,o){var a,e;a=o(3),e=o(6),t.exports=a||{},t.exports.__esModule&&(t.exports=t.exports["default"]),e&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=e)}]);