From 03433d40683b2ce95114822dea220a78fd7d86c0 Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Tue, 25 Feb 2020 20:16:09 +0100 Subject: [PATCH] Update bolt.js --- assets/bolt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/bolt.js b/assets/bolt.js index 4ba9922..c4406cf 100644 --- a/assets/bolt.js +++ b/assets/bolt.js @@ -1 +1 @@ -!function(t){function e(e){for(var s,r,o=e[0],l=e[1],c=e[2],d=0,m=[];de?t.substring(0,e-1)+"…":t}));var c=a("EVdn"),u=a.n(c);u()(document).ready((function(){u()(".toast").toast("show")}));var d=a("L2JU"),m={namespaced:!0,state:{toolbarColor:null},getters:{toolbarColor:function(t){return t.toolbarColor}},actions:{toolbarColor:function(t,e){(0,t.commit)("toolbarColor",e)}},mutations:{toolbarColor:function(t,e){t.toolbarColor=e}}};o.a.use(d.a);var p=new d.a.Store({modules:{general:m}}),f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"admin__toolbar--body",class:t.contrast?"is-light":"is-dark",attrs:{role:"toolbar"}},[a("div",{staticClass:"toolbar-item btn-group toolbar-item__brand"},[t._m(0),t._v(" "),a("div",{staticClass:"new-item__dropdown dropdown-menu"},[a("ul",{staticClass:"toolbar-menu"},[a("li",[a("a",{attrs:{href:"https://boltcms.io/",target:"_blank"}},[a("i",{staticClass:"fas fa-globe-americas fa-fw"}),t._v("\n "+t._s(t.labels["about.visit_bolt"])+"\n ")])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://docs.bolt.cm/",target:"_blank"}},[a("i",{staticClass:"fas fa-globe-americas fa-fw"}),t._v("\n "+t._s(t.labels["about.bolt_documentation"])+"\n ")])])])])]),t._v(" "),a("div",{staticClass:"toolbar-item toolbar-item__site"},[a("a",{attrs:{href:"/",target:"_blank"}},[a("i",{staticClass:"fas fa-sign-out-alt"}),t._v(t._s(t.labels["action.view_site"])+"\n ")])]),t._v(" "),a("div",{staticClass:"toolbar-item btn-group toolbar-item__new"},[a("button",{staticClass:"btn new-item__dropdown-toggler dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-magic"}),t._v(t._s(t.labels["action.create_new"])+"…\n ")]),t._v(" "),a("div",{staticClass:"new-item__dropdown dropdown-menu"},[a("ul",t._l(t.createMenu,(function(e,s){return a("li",{key:s},[a("a",{attrs:{href:e.link_new}},[a("i",{class:"fa fa-fw "+e.icon}),t._v("\n "+t._s(e.singular_name))])])})),0)])]),t._v(" "),a("div",{staticClass:"toolbar-item btn-group toolbar-item__profile"},[a("button",{staticClass:"btn user profile__dropdown-toggler dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-user"}),t._v(t._s(t.labels["general.greeting"])+"\n ")]),t._v(" "),a("div",{staticClass:"profile__dropdown dropdown-menu dropdown-menu-right"},[a("ul",[a("li",[a("a",{attrs:{href:t.backendPrefix+"profile-edit"}},[a("i",{staticClass:"fas fa-user-edit fa-fw"}),t._v("\n "+t._s(t.labels["action.edit_profile"])+"\n ")])]),t._v(" "),a("li",[a("a",{attrs:{href:t.backendPrefix+"logout"}},[a("i",{staticClass:"fas fa-sign-out-alt fa-fw"}),t._v("\n "+t._s(t.labels["action.logout"])+"\n ")])])])])])])};f._withStripped=!0;var g=a("Zss7"),h={name:"Toolbar",props:{siteName:String,menu:Array,labels:Object,backendPrefix:RegExp},computed:{contrast:function(){return g(this.toolbarColor).isLight()},createMenu:function(){return this.menu.filter((function(t){return!t.singleton&&t.singular_name||t.singleton&&(null===t.submenu||t.submenu.length<1)}))},toolbarColor:function(){return this.$store.getters["general/toolbarColor"]}},created:function(){var t=getComputedStyle(document.body).getPropertyValue("--admin-toolbar");this.$store.dispatch("general/toolbarColor",t)}},v=a("KHd+"),b=Object(v.a)(h,f,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn brand__dropdown-toggler dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[e("img",{attrs:{src:"/assets/images/bolt_logo_dashboard.svg",alt:"⚙️ Bolt",height:"28"}})])}],!1,null,null,null);b.options.__file="assets/js/app/toolbar/Components/Toolbar.vue";var _=b.exports;document.getElementById("toolbar")&&new o.a({store:p,el:"#toolbar",name:"BoltToolbar",components:{"admin-toolbar":_}});var w={namespaced:!0,state:{slimSidebar:!1},getters:{slimSidebar:function(t){return t.slimSidebar}},actions:{slimSidebar:function(t,e){(0,t.commit)("slimSidebar",e)}},mutations:{slimSidebar:function(t,e){t.slimSidebar=e}}};o.a.use(d.a);var y=new d.a.Store({modules:{general:w}}),C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"admin__sidebar--nav"},[a("sidebar-menu",{attrs:{menu:t.menu}}),t._v(" "),a("sidebar-toggler",{attrs:{version:t.version,"about-link":t.aboutLink,labels:t.labels}}),t._v(" "),a("footer",{staticClass:"admin__sidebar--footer"},[a("a",{attrs:{href:t.aboutLink}},[t._v("Bolt v"),a("span",{staticClass:"sr-only"},[t._v("ersion ")]),t._v(t._s(t.version))])])],1)};C._withStripped=!0;var S=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"admin__sidebar--menu"},t._l(t.menu,(function(e,s){return a("li",{key:s},["separator"===e.type?a("p",{staticClass:"admin__sidebar--separator"},[t._v("\n "+t._s(e.name)+"\n ")]):e.singleton?a("a",{staticClass:"admin__sidebar--link",attrs:{href:t.singleton(e)}},[a("i",{staticClass:"fas mr-2 link--icon",class:e.icon}),a("span",{staticClass:"link--text"},[t._v(t._s(e.name))])]):a("a",{staticClass:"admin__sidebar--link",class:{"has-menu":null!==e.submenu},attrs:{href:e.link}},[a("i",{staticClass:"fas mr-2 link--icon",class:e.icon}),a("span",{staticClass:"link--text"},[t._v(t._s(e.name))]),t._v(" "),null!==e.submenu?[a("i",{staticClass:"fas fa-caret-right link--caret"}),t._v(" "),a("sub-menu",{attrs:{item:e}})]:t._e()],2)])})),0)};S._withStripped=!0;var k=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"link--menu"},[null!==t.item.link_new?a("li",{staticClass:"link--create"},[a("a",{attrs:{href:t.item.link_new}},[a("i",{staticClass:"fas fa-fw fa-magic mr-2"}),a("span",[t._v("New "+t._s(t.item.singular_name))])])]):t._e(),t._v(" "),t._l(t.item.submenu,(function(e,s){return null!==t.item.submenu?a("li",{key:s},[a("a",{attrs:{href:e.editLink}},[a("i",{staticClass:"fas fa-fw mr-2",class:e.icon}),t._v(" "),e.name?a("span",{domProps:{innerHTML:t._s(e.name)}}):a("span",[a("em",[t._v("(Untitled)")])])])]):t._e()}))],2)};k._withStripped=!0;var x={name:"SubMenu",props:{item:Object}},j=Object(v.a)(x,k,[],!1,null,null,null);j.options.__file="assets/js/app/sidebar/Components/Menu/_SubMenu.vue";var D={name:"SidebarMenu",components:{"sub-menu":j.exports},props:{menu:Array},methods:{singleton:function(t){return t.submenu.length&&null!==t.submenu?t.submenu[0].editLink:t.link_new}}},F=Object(v.a)(D,S,[],!1,null,null,null);F.options.__file="assets/js/app/sidebar/Components/Menu/index.vue";var I=F.exports,$=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"admin__sidebar--slim",on:{click:function(e){return t.slimSidebar(!t.slim)}}},[a("i",{staticClass:"fas fa-exchange-alt"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.toggler))])])};$._withStripped=!0;var E={name:"SidebarFooter",props:{version:String,aboutLink:String,labels:Object},computed:{slim:function(){return!!this.$store.getters["general/slimSidebar"]&&this.$store.getters["general/slimSidebar"]}},watch:{slim:function(){var t=document.querySelector(".admin");this.slim?t.classList.add("is-slim"):t.classList.remove("is-slim"),localStorage.setItem("slim-sidebar",this.slim)}},methods:{slimSidebar:function(t){this.$store.dispatch("general/slimSidebar",t)}}},O=Object(v.a)(E,$,[],!1,null,null,null);O.options.__file="assets/js/app/sidebar/Components/_SidebarToggler.vue";var B={name:"Sidebar",components:{"sidebar-menu":I,"sidebar-toggler":O.exports},props:{menu:Array,version:String,aboutLink:String,labels:Object},created:function(){var t=JSON.parse(localStorage.getItem("slim-sidebar"));t&&this.$store.dispatch("general/slimSidebar",t)}},T=Object(v.a)(B,C,[],!1,null,null,null);T.options.__file="assets/js/app/sidebar/Components/Sidebar.vue";var A=T.exports;document.getElementById("sidebar")&&new o.a({store:y,el:"#sidebar",name:"BoltSidebar",components:{"admin-sidebar":A}});var N={namespaced:!0,state:{type:null,rowSize:"normal",sorting:!1},getters:{getType:function(t){return t.type},getRowSize:function(t){return t.rowSize},getSorting:function(t){return t.sorting}},actions:{setType:function(t,e){(0,t.commit)("setType",e)},setRowSize:function(t,e){(0,t.commit)("setRowSize",e)},setSorting:function(t,e){(0,t.commit)("setSorting",e)}},mutations:{setType:function(t,e){t.type=e},setRowSize:function(t,e){t.rowSize=e},setSorting:function(t,e){t.sorting=e}}},L={namespaced:!0,state:{records:[]},getters:{getRecords:function(t){return t.records},getOrder:function(t){return t.records.map((function(t){return t.id}))}},actions:{setRecords:function(t,e){(0,t.commit)("setRecords",e)}},mutations:{setRecords:function(t,e){t.records=e}}},P={namespaced:!0,state:{selectAll:!1,selectedCount:0,selected:[]},getters:{selectAll:function(t){return t.selectAll},selectedCount:function(t){return t.selectedCount},selected:function(t){return t.selected}},actions:{selectAll:function(t,e){(0,t.commit)("selectAll",e)},select:function(t,e){(0,t.commit)("select",e)},deSelect:function(t,e){(0,t.commit)("deSelect",e)}},mutations:{selectAll:function(t,e){t.selectAll=e},select:function(t,e){t.selectedCount++,t.selected.push(e)},deSelect:function(t,e){t.selectedCount--;var a=t.selected.indexOf(e);a>-1&&t.selected.splice(a,1)}}};o.a.use(d.a);var M=new d.a.Store({modules:{general:N,listing:L,selecting:P}}),q=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"listing-records"})};q._withStripped=!0;var z={name:"ListingRecords",props:{type:String,data:Array,labels:Object},created:function(){this.$store.dispatch("general/setType",this.type),this.$store.dispatch("listing/setRecords",this.data)}},R=Object(v.a)(z,q,[],!1,null,null,null);R.options.__file="assets/js/app/listing/Components/Records.vue";var U=R.exports,V=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"listing__filter"},[a("ul",{staticClass:"listing__filter--controls"},["dashboard"!==t.type?a("li",[t.sorting?t._e():a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{staticClass:"custom-control-input",attrs:{id:"selectAll",type:"checkbox"},domProps:{value:t.selectAll}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"selectAll"},on:{click:function(e){return t.enableSelectAll(!t.selectAll)}}})])]):t._e(),t._v(" "),a("li",{staticClass:"control--left"},[a("button",{staticClass:"control--button",class:{"is-selected":"normal"===t.size},attrs:{title:t.labels.button_expanded},on:{click:function(e){return t.changeSize("normal")}}},[a("i",{staticClass:"fas fa-align-justify fa-fw"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_expanded))])])]),t._v(" "),a("li",[a("button",{staticClass:"control--button",class:{"is-selected":"small"===t.size},attrs:{title:t.labels.button_compact},on:{click:function(e){return t.changeSize("small")}}},[a("i",{staticClass:"fas fa-grip-lines fa-fw"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_compact))])])])])])};V._withStripped=!0;var J={computed:{type:function(){return this.$store.getters["general/getType"]}}},H={name:"ListingFilter",mixins:[J],props:{labels:Object},computed:{size:function(){return this.$store.getters["general/getRowSize"]},sorting:function(){return this.$store.getters["general/getSorting"]},selectAll:function(){return this.$store.getters["selecting/selectAll"]}},watch:{sorting:function(){this.sorting&&this.$store.dispatch("selecting/selectAll",!1)}},created:function(){var t=localStorage.getItem("listing-row-size");null!==t&&this.$store.dispatch("general/setRowSize",t)},methods:{enableSorting:function(t){this.$store.dispatch("general/setSorting",t)},enableSelectAll:function(t){this.$store.dispatch("selecting/selectAll",t)},changeSize:function(t){this.$store.dispatch("general/setRowSize",t),localStorage.setItem("listing-row-size",t)}}},Z=Object(v.a)(H,V,[],!1,null,null,null);Z.options.__file="assets/js/app/listing/Components/Filter.vue";var Y=Z.exports,Q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__records"},[a("draggable",{attrs:{handle:".listing__row--move","force-fallback":"true"},model:{value:t.records,callback:function(e){t.records=e},expression:"records"}},[a("transition-group",t._l(t.records,(function(e){return a("table-row",{key:e.id,attrs:{record:e,labels:t.labels}})})),1)],1)],1)};Q._withStripped=!0;var W=a("MQ60"),G=a.n(W),K=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition-group",{staticClass:"listing--container",class:{"is-dashboard":"dashboard"===t.type},attrs:{tag:"div"}},["dashboard"!==t.type?a("row-checkbox",{key:"select",attrs:{id:t.record.id}}):t._e(),t._v(" "),a("div",{key:"row",staticClass:"listing__row",class:"is-"+t.size,on:{mouseleave:t.leave}},["normal"===t.size&&t.record.extras.image?a("div",{staticClass:"listing__row--item is-thumbnail",style:"background-image: url('"+t.record.extras.image.thumbnail+"')"}):t._e(),t._v(" "),a("div",{staticClass:"listing__row--item is-details"},[a("a",{staticClass:"listing__row--item-title",attrs:{href:t.record.extras.editLink,title:t.slug}},[t._v("\n "+t._s(t._f("trim")(t.record.extras.title,62))+"\n ")]),t._v(" "),a("span",{staticClass:"listing__row--item-title-excerpt"},[t._v(t._s(t.record.extras.excerpt))])]),t._v(" "),a("row-meta",{attrs:{type:t.type,size:t.size,record:t.record}}),t._v(" "),a("div",{staticClass:"listing__row--item is-excerpt"},[a("span",[t._v(t._s(t.record.extras.excerpt))])]),t._v(" "),a("row-actions",{attrs:{type:t.type,record:t.record,size:t.size,labels:t.labels.actions}})],1)],1)};K._withStripped=!0;var X=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:!t.sorting,expression:"!sorting"}],key:"checkbox",staticClass:"listing--checkbox"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"custom-control-input",attrs:{id:"row-"+t.id,type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?t._i(t.selected,null)>-1:t.selected},on:{change:function(e){var a=t.selected,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.selected=a.concat([null])):n>-1&&(t.selected=a.slice(0,n).concat(a.slice(n+1)))}else t.selected=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"row-"+t.id},on:{click:function(e){t.selected,t.selected}}})])])};X._withStripped=!0;var tt={name:"Checkbox",props:{id:Number},data:function(){return{selected:!1}},computed:{selectAll:function(){return this.$store.getters["selecting/selectAll"]},sorting:function(){return this.$store.getters["general/getSorting"]}},watch:{selectAll:function(){this.selected=this.selectAll},selected:function(){this.selected?this.$store.dispatch("selecting/select",this.id):this.$store.dispatch("selecting/deSelect",this.id)},sorting:function(){this.sorting&&(this.selected=!1)}}},et=Object(v.a)(tt,X,[],!1,null,null,null);et.options.__file="assets/js/app/listing/Components/Table/Row/_Checkbox.vue";var at=et.exports,st=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__row--item is-meta"},[a("ul",{staticClass:"listing__row--list text-nowrap"},[a("li",[a("span",{staticClass:"status",class:"is-"+t.record.status,attrs:{title:t.record.status}}),t._v(t._s(t._f("date")(t.record.publishedAt))+"\n ")]),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas fa-user"}),t._v(" "+t._s(t.record.authorName)+"\n ")]):t._e(),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas",class:t.record.extras.icon}),t._v(" "),"dashboard"===t.type?[a("a",{attrs:{href:"/bolt/content/"+t.record.contentType}},[t._v("\n "+t._s(t.record.extras.singular_name))])]:[t._v(t._s(t.record.extras.singular_name))],t._v(" № "+t._s(t.record.id)+"\n ")],2):t._e()])])};st._withStripped=!0;var it={name:"MetaData",props:{type:String,size:String,record:Object}},nt=Object(v.a)(it,st,[],!1,null,null,null);nt.options.__file="assets/js/app/listing/Components/Table/Row/_Meta.vue";var rt=nt.exports,ot=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__row--item is-actions edit-actions"},[a("div",{staticClass:"btn-group"},[a("a",{staticClass:"btn btn-secondary btn-block btn-sm text-nowrap",attrs:{href:t.record.extras.editLink}},[a("i",{staticClass:"far fa-edit mr-1"}),t._v(" "+t._s(t.labels.button_edit)+"\n ")]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"edit-actions__dropdown dropdown-menu dropdown-menu-right",staticStyle:{width:"320px"}},["published"===t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.link,target:"_blank"}},[a("i",{staticClass:"fas fa-w fa-external-link-square-alt"}),t._v("\n "+t._s(t.labels.view_on_site)+"\n ")]):t._e(),t._v(" "),"published"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=published"}},[a("span",{staticClass:"status mr-1 is-published"}),t._v("\n "+t._s(t.labels.status_to_publish)+"\n ")]):t._e(),t._v(" "),"held"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=held"}},[a("span",{staticClass:"status mr-1 is-held"}),t._v("\n "+t._s(t.labels.status_to_held)+"\n ")]):t._e(),t._v(" "),"draft"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=draft"}},[a("span",{staticClass:"status mr-1 is-draft"}),t._v("\n "+t._s(t.labels.status_to_draft)+"\n ")]):t._e(),t._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.duplicateLink}},[a("i",{staticClass:"far fa-w fa-copy"}),t._v("\n "+t._s(t.labels.duplicate)+" "+t._s(t.record.extras.singular_name)+"\n ")]),t._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.deleteLink,"data-confirmation":"Are you sure you wish to delete this Content?"}},[a("i",{staticClass:"fas fa-w fa-trash"}),t._v("\n "+t._s(t.labels.delete)+" "+t._s(t.record.extras.singular_name)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-divider"}),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-link fa-w"}),t._v("\n "+t._s(t.labels.slug)+":\n "),a("code",{attrs:{title:t.record.fieldValues.slug}},[t._v(t._s(t._f("trim")(t.record.fieldValues.slug,24)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-asterisk fa-w"}),t._v("\n "+t._s(t.labels.created_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.createdAt)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"far fa-calendar-alt fa-w"}),t._v("\n "+t._s(t.labels.published_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.publishedAt)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-redo fa-w"}),t._v("\n "+t._s(t.labels.last_modified_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.modifiedAt)))])])])])])};ot._withStripped=!0;var lt={name:"Actions",props:{type:String,record:Object,labels:Object},created:function(){}},ct=Object(v.a)(lt,ot,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-sm btn-secondary edit-actions__dropdown-toggler dropdown-toggle dropdown-toggle-split",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("span",{staticClass:"sr-only"},[this._v("Toggle Dropdown")])])}],!1,null,null,null);ct.options.__file="assets/js/app/listing/Components/Table/Row/_Actions.vue";var ut={name:"TableRow",components:{"row-checkbox":at,"row-meta":rt,"row-actions":ct.exports},mixins:[J],props:{record:Object,labels:Object},computed:{slug:function(){return"string"==typeof this.record.fieldValues.slug?this.record.fieldValues.slug:this.record.fieldValues.slug[Object.keys(this.record.fieldValues.slug)[0]]},size:function(){return this.$store.getters["general/getRowSize"]},sorting:function(){return this.$store.getters["general/getSorting"]}},methods:{leave:function(){u()('.dropdown-toggle[aria-expanded="true"]').dropdown("toggle")}}},dt=Object(v.a)(ut,K,[],!1,null,null,null);dt.options.__file="assets/js/app/listing/Components/Table/Row/index.vue";var mt=dt.exports,pt={name:"ListingTable",components:{draggable:G.a,"table-row":mt},props:{labels:Object},computed:{records:{get:function(){return this.$store.getters["listing/getRecords"]},set:function(t){this.$store.dispatch("listing/setRecords",t)}}}},ft=Object(v.a)(pt,Q,[],!1,null,null,null);ft.options.__file="assets/js/app/listing/Components/Table/index.vue";var gt=ft.exports,ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{name:"card"}},[t.selectedCount>0?a("div",{staticClass:"card mb-3"},[a("div",{staticClass:"card-header"},[a("span",{staticClass:"is-primary mr-1"},[t._v(t._s(t.selectedCount))]),t._v(" "),1===t.selectedCount?[t._v(t._s(t.singular))]:[t._v(t._s(t.plural))],t._v("\n "+t._s(t.labels.selected)+"\n ")],2),t._v(" "),a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group"},[a("multiselect",{attrs:{"allow-empty":!1,multiple:!1,"show-labels":!1,label:"value","track-by":"key",options:t.options},scopedSlots:t._u([{key:"option",fn:function(e){return[a("span",{class:e.option.class}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.value)+"\n ")])]}}],null,!1,2414873864),model:{value:t.selectedAction,callback:function(e){t.selectedAction=e},expression:"selectedAction"}})],1),t._v(" "),a("form",{attrs:{action:t.postUrl,method:"post"}},[a("input",{attrs:{type:"hidden",name:"records"},domProps:{value:t.selected}}),t._v(" "),a("input",{attrs:{type:"hidden",name:"_csrf_token"},domProps:{value:t.csrftoken}}),t._v(" "),a("div",{staticClass:"form-group"},[a("button",{staticClass:"btn btn-secondary",attrs:{type:"submit",name:"bulk-action",disabled:null===t.selectedAction}},[t._v("\n "+t._s(t.labels.update_all)+"\n ")])])])])]):t._e()])};ht._withStripped=!0;var vt=a("jl8+"),bt=a.n(vt),_t={name:"ListingSelectedBox",components:{Multiselect:bt.a},props:{singular:String,plural:String,labels:Object,csrftoken:String},data:function(){return{selectedAction:null,options:[{key:"status/published",value:this.labels.status_to_published,selected:!1,class:"status mr-1 is-published"},{key:"status/draft",value:this.labels.status_to_draft,selected:!1,class:"status mr-1 is-draft"},{key:"status/held",value:this.labels.status_to_held,selected:!1,class:"status mr-1 is-held"},{key:"delete",value:this.labels.delete,selected:!1,class:"fas fa-w fa-trash"}]}},computed:{postUrl:function(){return this.selectedAction?"/bolt/bulk/"+this.selectedAction.key:""},selectedCount:function(){return this.$store.getters["selecting/selectedCount"]},selected:function(){return this.$store.getters["selecting/selected"]},order:function(){return this.$store.getters["listing/getOrder"]}}},wt=Object(v.a)(_t,ht,[],!1,null,null,null);wt.options.__file="assets/js/app/listing/Components/SelectBox.vue";var yt=wt.exports;document.getElementById("listing")&&new o.a({store:M,el:"#listing",name:"BoltListing",components:{"listing-records":U,"listing-filter":Y,"listing-table":gt,"listing-select-box":yt}});var Ct={namespaced:!0,state:{slimSidebar:!1},getters:{slimSidebar:function(t){return t.slimSidebar}},actions:{slimSidebar:function(t,e){(0,t.commit)("slimSidebar",e)}},mutations:{slimSidebar:function(t,e){t.slimSidebar=e}}};o.a.use(d.a);var St=new d.a.Store({modules:{general:Ct}}),kt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control",class:t.getType,attrs:{id:t.id,name:t.name,type:"text",disabled:1==t.disabled,required:1==t.required,readonly:1==t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}})])};kt._withStripped=!0;var xt={mounted:function(){this.val=this.value},data:function(){return{val:null}}},jt={name:"EditorText",mixins:[xt],props:{value:String,name:String,type:String,disabled:Boolean,id:String,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{generate:!1}},computed:{getType:function(){return"large"===this.type?"form-control-lg":""}},watch:{val:function(){this.generate&&this.$root.$emit("slugify-from-title")}},mounted:function(){var t=this;this.$root.$on("generate-from-title",(function(e){return t.generate=e}))}},Dt=Object(v.a)(jt,kt,[],!1,null,null,null);Dt.options.__file="assets/js/app/editor/Components/Text.vue";var Ft=Dt.exports,It=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group mb-3"},[a("div",{staticClass:"input-group-prepend"},[a("span",{staticClass:"input-group-text"},[t._v(t._s(t.prefix))])]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control",class:t.fieldClass,attrs:{name:t.name,placeholder:"…",type:"text",readonly:t.readonly||!t.edit,required:1==t.required,"data-errormessage":t.errormessage,pattern:t.pattern},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary dropdown-toggle",class:[{"btn-primary":t.edit},{"btn-secondary":!t.edit}],attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:t.readonly}},[a("i",{staticClass:"fas fa-fw",class:"fa-"+t.icon}),t._v(" "+t._s(t.buttonText)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-menu"},[t.edit?t._e():[a("button",{staticClass:"dropdown-item",on:{click:t.editSlug}},[a("i",{staticClass:"fas fa-pencil-alt fa-fw"}),t._v(" "+t._s(t.labels.button_edit)+"\n ")])],t._v(" "),t.locked?t._e():[a("button",{staticClass:"dropdown-item",on:{click:t.lockSlug}},[a("i",{staticClass:"fas fa-lock fa-fw"}),t._v(" "+t._s(t.labels.button_locked)+"\n ")])],t._v(" "),a("button",{staticClass:"dropdown-item",on:{click:function(e){return t.generateSlug()}}},[a("i",{staticClass:"fas fa-link fa-fw"}),t._v(" "+t._s(t.labels.generate_from)+"\n "+t._s(t.generate)+"\n ")])],2)])])])};It._withStripped=!0;var $t={name:"EditorSlug",mixins:[xt],props:{value:String,name:String,prefix:String,fieldClass:String,generate:String,labels:Object,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean},data:function(){return{edit:!1,locked:!1,buttonText:"Locked",icon:"lock"}},mounted:function(){var t=this;setTimeout((function(){var e="";t.generate.split(",").forEach((function(t){e+=document.querySelector("input[name='fields[".concat(t,"]']")).value})),e.length<=0&&(t.icon="unlock",t.buttonText=t.$props.labels.button_unlocked,t.$root.$emit("generate-from-title",!0))}),0),this.$root.$on("slugify-from-title",(function(){return t.generateSlug()}))},methods:{editSlug:function(){this.$root.$emit("generate-from-title",!1),this.edit=!0,this.locked=!1,this.buttonText=this.$props.labels.button_edit,this.icon="pencil-alt"},lockSlug:function(){this.$root.$emit("generate-from-title",!1);var t=this.$options.filters.slugify(this.val);this.val=t,this.edit=!1,this.locked=!0,this.buttonText=this.$props.labels.button_locked,this.icon="lock"},generateSlug:function(){var t="";this.generate.split(",").forEach((function(e){t=t+" "+document.querySelector("input[name='fields[".concat(e,"]']")).value}));var e=this.$options.filters.slugify(t);this.val=e,this.$root.$emit("generate-from-title",!0),this.edit=!1,this.locked=!1,this.buttonText=this.$props.labels.button_unlocked,this.icon="unlock"}}},Et=Object(v.a)($t,It,[],!1,null,null,null);Et.options.__file="assets/js/app/editor/Components/Slug.vue";var Ot=Et.exports,Bt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group"},[a("flat-pickr",{staticClass:"form-control editor--date",attrs:{config:t.config,disabled:t.readonly,form:t.form,name:t.name,placeholder:"Select date",required:1==t.required,"data-errormessage":t.errormessage},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary",class:{"btn-outline-secondary":t.readonly},attrs:{type:"button",disabled:t.readonly,"data-toggle":""}},[a("i",{staticClass:"fa fa-calendar"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.toggle))])])]),t._v(" "),a("button",{staticClass:"btn btn-tertiary",class:{"btn-outline-secondary":t.readonly},attrs:{type:"button",disabled:t.readonly,"data-clear":""}},[a("i",{staticClass:"fa fa-times"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.clear))])])])])],1)])};Bt._withStripped=!0;var Tt=a("w48C"),At={name:"EditorDate",components:{flatPickr:a.n(Tt).a},mixins:[xt],props:{value:{type:String,required:!1,default:""},name:{type:String,required:!0},readonly:{type:Boolean,required:!0},mode:{type:String,required:!0,default:"date"},form:{type:String,required:!0},locale:{type:String,default:"en"},labels:{type:String,default:""},required:{type:Number,required:!0},errormessage:{type:String|Boolean,required:!0}},data:function(){return{config:{wrap:!0,altFormat:"F j, Y",altInput:!0,dateFormat:"Z",enableTime:!1}}},created:function(){if("en"!==this.locale){var t=a("WqZd")("./".concat(this.locale,".js")).default[this.locale];this.config.locale=t}"datetime"===this.mode&&(this.config.enableTime=!0,this.config.altFormat="F j, Y - h:i K")},mounted:function(){}},Nt=Object(v.a)(At,Bt,[],!1,null,null,null);Nt.options.__file="assets/js/app/editor/Components/Date.vue";var Lt=Nt.exports,Pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"multiselect-"+t.id}},[a("multiselect",{attrs:{"allow-empty":!1,limit:1e3,multiple:t.multiple,options:t.options,searchable:t.taggable,"show-labels":!1,taggable:t.taggable,disabled:t.readonly,"data-errormessage":t.errormessage,label:"value","tag-placeholder":"Add this as new tag","tag-position":"bottom","track-by":"key"},on:{tag:t.addTag},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return"status"===t.name?[a("span",{staticClass:"status mr-2",class:"is-"+e.option.key}),t._v("\n "+t._s(e.option.key)+"\n ")]:void 0}},{key:"option",fn:function(e){return"status"===t.name?[a("span",{staticClass:"status mr-2",class:"is-"+e.option.key}),t._v("\n "+t._s(e.option.key)+"\n ")]:void 0}}],null,!0),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}}),t._v(" "),a("input",{attrs:{id:t.id,type:"hidden",name:t.name,form:t.form},domProps:{value:t.sanitized}})],1)};Pt._withStripped=!0;var Mt={name:"EditorSelect",components:{Multiselect:bt.a},props:{value:Array|String,name:String,id:String,form:String,options:Array,multiple:Boolean,taggable:Boolean,required:Number,readonly:Boolean,errormessage:String|Boolean},data:function(){return{selected:[]}},computed:{sanitized:function(){var t;return null===this.selected?JSON.stringify([]):this.selected.map?(t=this.selected.map((function(t){return t.key})),JSON.stringify(t)):JSON.stringify([this.selected.key])},fieldName:function(){return this.name+"[]"}},mounted:function(){var t=this.value,e=this.options,a=e.filter((function(e){return t.includes(e.key)}));0===a.length&&(a=[e[0]]),this.selected=a},methods:{addTag:function(t){var e={key:t,value:t,selected:!0};this.options.push(e),this.value.push(e),this.selected.push(e)}}},qt=Object(v.a)(Mt,Pt,[],!1,null,null,null);qt.options.__file="assets/js/app/editor/Components/Select.vue";var zt=qt.exports,Rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control",attrs:{name:t.name,type:"number",step:t.step,required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}})])};Rt._withStripped=!0;var Ut={name:"EditorNumber",mixins:[xt],props:{value:String,name:String,step:Number,type:String,disabled:Boolean,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean}},Vt=Object(v.a)(Ut,Rt,[],!1,null,null,null);Vt.options.__file="assets/js/app/editor/Components/Number.vue";var Jt=Vt.exports,Ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("trumbowyg",{attrs:{id:t.name,name:t.name,config:t.config},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}})],1)};Ht._withStripped=!0;var Zt=a("bPil"),Yt=a.n(Zt),Qt=(a("1qIj"),{name:"EditorHtml",components:{trumbowyg:Yt.a},props:{value:String,label:String,name:String},data:function(){return{val:null,config:{btns:[["formatting"],["strong","em","del"],["link"],["insertImage"],["justifyLeft","justifyCenter","justifyRight"],["unorderedList","orderedList"],["horizontalRule"],["removeformat"],["fullscreen"],["viewHTML"]]}}},mounted:function(){this.val=this.$options.filters.strip(this.value)}}),Wt=Object(v.a)(Qt,Ht,[],!1,null,null,null);Wt.options.__file="assets/js/app/editor/Components/Html.vue";var Gt=Wt.exports,Kt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("vue-simplemde",{attrs:{id:t.name,name:t.name,configs:t.config},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}})],1)};Kt._withStripped=!0;var Xt={name:"EditorMarkdown",components:{VueSimplemde:a("YjwT").a},props:{value:String,name:String},data:function(){return{val:null,config:{spellChecker:!1,status:!1,toggleFullScreen:!0}}},mounted:function(){this.val=this.$options.filters.strip(this.value)}},te=(a("I86Z"),Object(v.a)(Xt,Kt,[],!1,null,"18f5a15c",null));te.options.__file="assets/js/app/editor/Components/Markdown.vue";var ee=te.exports,ae=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control field--textarea",attrs:{name:t.name,rows:"10",required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}})])};ae._withStripped=!0;var se={name:"EditorTextarea",mixins:[xt],props:{value:String,name:String,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean}},ie=Object(v.a)(se,ae,[],!1,null,null,null);ie.options.__file="assets/js/app/editor/Components/Textarea.vue";var ne=ie.exports,re=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"editor__embed",attrs:{id:t.name,name:t.name}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-8"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"embed-url"}},[t._v(t._s(t.labels.content_url))]),t._v(" "),a("div",{staticClass:"input-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.url,expression:"url"}],staticClass:"form-control",attrs:{name:t.name+"[url]",placeholder:t.labels.placeholder_content_url,type:"url",required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern},domProps:{value:t.url},on:{input:function(e){e.target.composing||(t.url=e.target.value)}}}),t._v(" "),t._m(0)])]),t._v(" "),a("div",{staticClass:"form-group form-inline"},[a("label",{attrs:{for:"embed-width-size"}},[t._v(t._s(t.labels.label_size))]),t._v(" "),a("input",{staticClass:"form-control col-2 offset-1",attrs:{name:t.name+"[width]",type:"number",readonly:t.readonly},domProps:{value:t.widthData}}),t._v("\n ×\n "),a("label",{staticClass:"sr-only",attrs:{for:"embed-height-size"}},[t._v(t._s(t.labels.label_height))]),t._v(" "),a("input",{staticClass:"form-control col-2",attrs:{name:t.name+"[height]",type:"number",readonly:t.readonly},domProps:{value:t.heightData}}),t._v(" "),a("label",[t._v(t._s(t.labels.label_pixel))])]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.labels.label_matched_embed))]),t._v(" "),a("input",{staticClass:"form-control title",attrs:{name:t.name+"[title]",readonly:"",title:"Title",type:"text"},domProps:{value:t.titleData}}),t._v(" "),a("input",{staticClass:"form-control author_name",attrs:{name:t.name+"[authorname]",readonly:"",title:"Author",type:"text"},domProps:{value:t.authornameData}}),t._v(" "),a("input",{staticClass:"author_url",attrs:{name:t.name+"[authorurl]",type:"hidden"},domProps:{value:t.authorurlData}}),t._v(" "),a("input",{staticClass:"html",attrs:{name:t.name+"[html]",type:"hidden"},domProps:{value:t.htmlData}}),t._v(" "),a("input",{staticClass:"thumbnail_url",attrs:{name:t.name+"[thumbnail]",type:"hidden"},domProps:{value:t.thumbnailData}})])]),t._v(" "),a("div",{staticClass:"col-4"},[a("label",[t._v(t._s(t.labels.label_preview))]),t._v(" "),a("div",{staticClass:"editor__image--preview"},[a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.previewImage+"')",attrs:{href:t.previewImage}})])])])])])};re._withStripped=!0;var oe=a("LvDl"),le=a.n(oe),ce=a("SwAO"),ue=a.n(ce),de={name:"EditorEmbed",mixins:[xt],props:{embedapi:String,name:String,authorurl:String,authorname:String,height:Number|String,html:String,thumbnail:String,title:String,url:String,width:Number|String,labels:Object,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean},data:function(){return{authorurlData:this.authorurl,authornameData:this.authorname,heightData:this.height,htmlData:this.html,thumbnailData:this.thumbnail,titleData:this.title,urlData:this.url,widthData:this.width}},watch:{url:function(t){t&&this.debouncedFetchEmbed()}},mounted:function(){this.previewImage=this.thumbnail},created:function(){this.debouncedFetchEmbed=le.a.debounce(this.fetchEmbed,500),this.url&&this.debouncedFetchEmbed(),this.previewImage=this.thumbnail},updated:function(){ue.a.run(".editor__image--preview",{afterShow:function(){},afterHide:function(){}})},methods:{fetchEmbed:function(){var t=this,e=new FormData;e.append("url",this.url),e.append("_csrf_token",document.getElementsByName("_csrf_token")[0].value),fetch(this.embedapi,{method:"POST",body:e}).then((function(t){return t.json()})).then((function(e){t.authorurlData=e.author_url,t.authornameData=e.author_name,t.heightData=e.height,t.htmlData=e.html,t.thumbnailData=e.thumbnail_url,t.titleData=e.title,t.widthData=e.width,t.previewImage=e.thumbnail_url})).catch((function(t){console.warn(t)}))}}},me=Object(v.a)(de,re,[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"input-group-btn"},[e("button",{staticClass:"btn btn-default refresh",attrs:{type:"button",disabled:""}},[e("i",{staticClass:"fa fa-refresh"})])])}],!1,null,null,null);me.options.__file="assets/js/app/editor/Components/Embed.vue";var pe=me.exports,fe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__image",on:{dragenter:t.onDragEnter,dragleave:t.onDragLeave,dragover:function(t){t.preventDefault()},drop:t.onDrop}},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"editor__image--dragging"},[a("i",{staticClass:"fas fa-upload"})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-9"},[a("div",{staticClass:"input-group mb-3"},[a("input",{attrs:{name:t.name+"[media]",type:"hidden"},domProps:{value:t.media}}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:t.name+"[filename]",type:"text",placeholder:t.labels.placeholder_filename,"data-readonly":"readonly",required:1==t.required,"data-errormessage":t.errormessage},domProps:{value:t.filenameData}})]),t._v(" "),void 0!==t.altData?a("div",{staticClass:"input-group mb-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.altData,expression:"altData"}],staticClass:"form-control",attrs:{name:t.name+"[alt]",type:"text",readonly:t.readonly,pattern:t.pattern,placeholder:t.getPlaceholder},domProps:{value:t.altData},on:{input:function(e){e.target.composing||(t.altData=e.target.value)}}})]):t._e(),t._v(" "),a("div",{staticClass:"btn-toolbar",attrs:{role:"toolbar"}},[a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectUploadFile}},[a("i",{staticClass:"fas fa-fw fa-upload"}),t._v(t._s(t.labels.button_upload)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-sm btn-tertiary dropdown-toggle dropdown-toggle-split",attrs:{"aria-expanded":"false","aria-haspopup":"true","data-toggle":"dropdown",name:"image-upload-dropdown",type:"button",disabled:t.readonly}}),t._v(" "),a("div",{staticClass:"dropdown-menu"},[a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectServerFile}},[a("i",{staticClass:"fas fa-fw fa-th"}),t._v("\n "+t._s(t.labels.button_from_library)+"\n ")]),t._v(" "),t.filenameData?a("a",{staticClass:"dropdown-item",attrs:{href:t.attributesLink+"?file="+t.filenameData,target:"_blank"}},[a("i",{staticClass:"fas fa-fw fa-info-circle"}),t._v("\n "+t._s(t.labels.button_edit_attributes)+"\n ")]):t._e()])]),t._v(" "),a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[1==t.inImagelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isFirstInImagelist},on:{click:t.onMoveImageUp}},[a("i",{staticClass:"fas fa-fw fa-chevron-up"}),t._v("\n "+t._s(t.labels.button_move_up)+"\n ")]):t._e(),t._v(" "),1==t.inImagelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isLastInImagelist},on:{click:t.onMoveImageDown}},[a("i",{staticClass:"fas fa-fw fa-chevron-down"}),t._v("\n "+t._s(t.labels.button_move_down)+"\n ")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm btn-hidden-danger",attrs:{type:"button",disabled:t.readonly},on:{click:t.onRemoveImage}},[a("i",{staticClass:"fas fa-fw fa-trash"}),t._v(" "+t._s(t.labels.button_remove)+"\n ")])])]),t._v(" "),t.progress>0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()]),t._v(" "),a("div",{staticClass:"col-3"},[a("div",{staticClass:"editor__image--preview"},[a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.previewImage+"')",attrs:{href:t.previewImage}})])])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__image--upload",attrs:{name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};fe._withStripped=!0;var ge=a("eAd9"),he=a.n(ge),ve=a("JdwY"),be=a.n(ve),_e={name:"EditorImage",mixins:[xt],props:{filename:String,name:String,required:Number,readonly:Boolean,thumbnail:String,alt:String,directory:String,media:Number|String,csrfToken:String,labels:Object,filelist:String,extensions:Array,attributesLink:String,inImagelist:Boolean,isFirstInImagelist:Boolean,isLastInImagelist:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{previewImage:null,isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,thumbnailData:this.thumbnail,altData:this.alt}},computed:{fieldName:function(){return this.name+"[]"},token:function(){return this.csrfToken},acceptedExtensions:function(){return this.extensions.map((function(t){return"."+t})).join()},getPlaceholder:function(){return this.placeholder?this.placeholder:this.labels.placeholder_alt_text}},mounted:function(){this.previewImage=this.thumbnailData},updated:function(){this.previewImage=this.thumbnailData,ue.a.run(".editor__image--preview",{afterShow:function(){he.a.on()},afterHide:function(){he.a.off()}})},methods:{onMoveImageDown:function(){this.$emit("moveImageDown",this)},onMoveImageUp:function(){this.$emit("moveImageUp",this)},onRemoveImage:function(){this.previewImage=null,this.filenameData="",this.thumbnailData="",this.altData="",this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this.thumbnailData.split("?").pop(),a=this;i.a.get(this.filelist).then((function(s){be.a.prompt({title:"Select a file",inputType:"select",name:"image-selector",inputOptions:t.filterServerFiles(s.data),callback:function(t){t&&(a.filenameData=t,a.thumbnailData="/thumbs/".concat(t,"?").concat(e))}}),window.$(".bootbox-input").attr("name","bootbox-input")})).catch((function(t){console.warn(t)}))},onDragEnter:function(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave:function(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;var e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile:function(t){var e=this,a=this.thumbnailData.split("?").pop(),s=new FormData,n={onUploadProgress:function(t){var a=Math.round(100*t.loaded/t.total);e.progress=a},headers:{"Content-Type":"multipart/form-data"}};s.append("image",t),s.append("_csrf_token",this.token),i.a.post(this.directory,s,n).then((function(t){e.filenameData=t.data,e.thumbnailData="/thumbs/".concat(t.data,"?").concat(a),e.progress=0})).catch((function(t){console.warn(t),e.progress=0}))},filterServerFiles:function(t){var e=this;return t.filter((function(t){var a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},we=Object(v.a)(_e,fe,[],!1,null,null,null);we.options.__file="assets/js/app/editor/Components/Image.vue";var ye=we.exports,Ce=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__imagelist"},[t._l(t.containerImages,(function(e,s){return a("div",{key:e.id,staticClass:"form-fieldsgroup"},[!0!==e.hidden?a("editor-image",{attrs:{filename:e.filename,thumbnail:e.thumbnail,title:e.title,alt:e.alt,"attributes-link":t.attributesLink,media:e.media,directory:t.directory,filelist:t.filelist,"csrf-token":t.csrfToken,labels:t.labels,"in-imagelist":!0,name:t.fieldName(s),extensions:t.extensions,"is-first-in-imagelist":t.isFirstInImagelist(s),"is-last-in-imagelist":t.isLastInImagelist(s)},on:{remove:t.onRemoveImage,moveImageUp:t.onMoveImageUp,moveImageDown:t.onMoveImageDown}}):t._e()],1)})),t._v(" "),a("button",{staticClass:"btn btn-tertiary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addImage}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_new_image)+"\n ")])],2)};Ce._withStripped=!0;var Se={name:"EditorImage",components:{"editor-image":ye},props:{images:Array,directory:String,name:String,filelist:String,csrfToken:String,labels:Object,extensions:Array,attributesLink:String,limit:Number},data:function(){var t=0;return this.images.forEach((function(e,a,s){s[a].id=a,t++})),{counter:t,containerImages:this.images}},computed:{allowMore:function(){return this.getActiveImageFields().length0){var a=this.containerImages[e],s=this.containerImages[e-1];this.containerImages.splice(e-1,2,a,s)}},onRemoveImage:function(t){var e=this.getFieldNumberFromElement(t),a=this.containerImages[e];a.hidden=!0,this.$set(this.containerImages,e,a),0===this.getActiveImageFields().length&&this.addImage()},fieldName:function(t){return this.name+"["+t+"]"},addImage:function(){var t={inImagelist:!0,directory:this.directory,name:this.name,filelist:this.filelist,csrfToken:this.csrfToken,labels:this.labels,thumbnail:"",extensions:this.extensions,id:this.counter};this.counter++,this.containerImages.push(t)}}},ke=Object(v.a)(Se,Ce,[],!1,null,null,null);ke.options.__file="assets/js/app/editor/Components/Imagelist.vue";var xe=ke.exports,je=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("input",{staticClass:"form-control",attrs:{id:t.id,name:t.name,type:"email",required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.value}})])};je._withStripped=!0;var De={name:"EditorEmail",props:{value:{type:String},name:{type:String},id:{type:String},required:{type:Number},readonly:{type:Boolean},errormessage:{type:String|Boolean},pattern:{type:String|Boolean},placeholder:String|Boolean}},Fe=Object(v.a)(De,je,[],!1,null,null,null);Fe.options.__file="assets/js/app/editor/Components/Email.vue";var Ie=Fe.exports,$e=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group-prepend"},[a("input",{ref:"inputField",staticClass:"form-control",attrs:{id:t.id,type:"password",name:t.name,required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder,autocomplete:"new-password"},domProps:{value:t.value},on:{input:t.measureStrength}}),t._v(" "),a("i",{ref:"visibilityToggle",staticClass:"input-group-text toggle-password fas fa-eye",on:{click:t.togglePassword}})]),t._v(" "),t.strength?a("progress-bar",{ref:"progressBar",attrs:{max:4,height:"4px"}}):t._e()],1)};$e._withStripped=!0;var Ee=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress",style:this.styleHeight},[e("div",{staticClass:"progress-bar",style:this.styleWidth,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuenow":this.value,"aria-valuemax":this.max}})])};Ee._withStripped=!0;var Oe={name:"ProgressBar",props:{max:{type:Number,default:100},value:{type:Number,default:0},height:{type:String,default:null}},computed:{styleWidth:function(){return{width:this.value/this.max*100+"%"}},styleHeight:function(){return{height:this.height||null}}}},Be=Object(v.a)(Oe,Ee,[],!1,null,null,null);Be.options.__file="assets/js/app/editor/Components/ProgressBar.vue";var Te={name:"EditorPassword",components:{ProgressBar:Be.exports},props:{value:String,name:String,id:String,hidden:Boolean,strength:Number,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},mounted:function(){this.hidden||this.$refs.visibilityToggle.click(),this.value&&this.strength&&this.$refs.inputField.dispatchEvent(new Event("input"))},methods:{togglePassword:function(t){var e=t.target,a=t.target.previousElementSibling,s=a.attributes.getNamedItem("type").value;"password"===s?(a.setAttribute("type","text"),e.classList.replace("fa-eye","fa-eye-slash")):"text"===s&&(a.setAttribute("type","password"),e.classList.replace("fa-eye-slash","fa-eye"))},measureStrength:function(t){var e=t.target;if(this.strength){var a=window.zxcvbn(e.value);this.$refs.progressBar.value=a.score}}}},Ae=Object(v.a)(Te,$e,[],!1,null,null,null);Ae.options.__file="assets/js/app/editor/Components/Password.vue";var Ne=Ae.exports,Le=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"user__theme"},[a("h3",[t._v("Themes:")]),t._v(" "),a("ul",{staticClass:"user__theme--themes"},t._l(t.themes,(function(e,s){return a("li",{key:s,staticClass:"theme",on:{click:function(a){return t.selectTheme(e.value)}}},[a("h5",{staticClass:"theme--name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"theme--palette"},t._l(e.colors,(function(t,e){return a("span",{key:e,style:"background-color: "+t})})),0)])})),0)])};Le._withStripped=!0;var Pe={name:"ThemeSelect",data:function(){return{themes:[{name:"Default",value:"default",colors:["#1a5597","#053b79","#0c223b","#ffffff"]},{name:"Light",value:"light",colors:["#1a5597","#053b79","#ffffff","#f9f9f9"]}]}},methods:{selectTheme:function(t){var e=document.querySelector("#theme"),a=e.getAttribute("href").split("theme-")[0],s="".concat(a,"theme-").concat(t,".css");e.setAttribute("href",s)}}},Me=Object(v.a)(Pe,Le,[],!1,null,null,null);Me.options.__file="assets/js/app/editor/Components/ThemeSelect.vue";var qe=Me.exports,ze=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group",attrs:{id:"multiselect-localeswitcher"}},[a("label",[t._v(t._s(t.label))]),t._v(" "),a("multiselect",{attrs:{"track-by":"name",label:"localizedname",options:t.locales,searchable:!1,"show-labels":!1,limit:1},on:{input:function(e){return t.switchLocale()}},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return[a("span",{staticClass:"fp mr-1",class:e.option.flag}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.name)+"\n "),a("small",{staticStyle:{"white-space":"nowrap"}},[t._v("("+t._s(e.option.code)+")")])])]}},{key:"option",fn:function(e){return[a("span",{staticClass:"fp mr-1",class:e.option.flag}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.name)+"\n "),a("small",{staticStyle:{"white-space":"nowrap"}},[t._v("("+t._s(e.option.code)+")")])])]}}]),model:{value:t.locale,callback:function(e){t.locale=e},expression:"locale"}})],1)};ze._withStripped=!0;var Re={name:"EditorLanguage",components:{Multiselect:bt.a},props:{label:String,locales:Array,current:String},data:function(){return{locale:{}}},mounted:function(){var t=this;if(this.current){var e=this.locales.filter((function(e){return e.code===t.current}));e.length>0?this.locale=e[0]:this.locale=this.locales[0]}else this.locale=this.locales[0]},methods:{switchLocale:function(){var t=this.locale.link+location.hash;return window.location.href=t}}},Ue=Object(v.a)(Re,ze,[],!1,null,null,null);Ue.options.__file="assets/js/app/editor/Components/Language.vue";var Ve=Ue.exports,Je=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__file",on:{dragenter:t.onDragEnter,dragleave:t.onDragLeave,dragover:function(t){t.preventDefault()},drop:t.onDrop}},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"editor__file--dragging"},[a("i",{staticClass:"fas fa-upload"})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("div",{staticClass:"input-group mb-3"},[a("input",{attrs:{name:t.name+"[media]",type:"hidden"},domProps:{value:t.media}}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:t.name+"[filename]",type:"text",placeholder:t.labels.placeholder_filename,"data-readonly":"readonly",required:1==t.required,"data-errormessage":t.errormessage},domProps:{value:t.filenameData}})]),t._v(" "),a("div",{staticClass:"input-group mb-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.titleData,expression:"titleData"}],staticClass:"form-control",attrs:{name:t.name+"[title]",type:"text",required:1==t.required,readonly:t.readonly,pattern:t.pattern,placeholder:t.getPlaceholder},domProps:{value:t.titleData},on:{input:function(e){e.target.composing||(t.titleData=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-toolbar",attrs:{role:"toolbar"}},[a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectUploadFile}},[a("i",{staticClass:"fas fa-fw fa-upload"}),t._v(t._s(t.labels.button_upload)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-sm btn-tertiary dropdown-toggle dropdown-toggle-split",attrs:{"aria-expanded":"false","aria-haspopup":"true","data-toggle":"dropdown",name:"file-upload-dropdown",type:"button",disabled:t.readonly}}),t._v(" "),a("div",{staticClass:"dropdown-menu"},[a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",readonly:t.readonly},on:{click:t.selectServerFile}},[a("i",{staticClass:"fas fa-fw fa-th"}),t._v("\n "+t._s(t.labels.button_from_library)+"\n ")]),t._v(" "),t.filenameData?a("a",{staticClass:"dropdown-item",attrs:{href:t.attributesLink+"?file="+t.filenameData,target:"_blank"}},[a("i",{staticClass:"fas fa-fw fa-info-circle"}),t._v("\n "+t._s(t.labels.button_edit_attributes)+"\n ")]):t._e()])]),t._v(" "),a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[1==t.inFilelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isFirstInFilelist},on:{click:t.onMoveFileUp}},[a("i",{staticClass:"fas fa-fw fa-chevron-up"}),t._v("\n "+t._s(t.labels.button_move_up)+"\n ")]):t._e(),t._v(" "),1==t.inFilelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isLastInFilelist},on:{click:t.onMoveFileDown}},[a("i",{staticClass:"fas fa-fw fa-chevron-down"}),t._v("\n "+t._s(t.labels.button_move_down)+"\n ")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm btn-hidden-danger",attrs:{type:"button",disabled:t.readonly},on:{click:t.onRemoveFile}},[a("i",{staticClass:"fas fa-fw fa-trash"}),t._v(" "+t._s(t.labels.button_remove)+"\n ")])])]),t._v(" "),t.progress>0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__file--upload",attrs:{name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};Je._withStripped=!0;var He={name:"EditorFile",mixins:[xt],props:{name:String,filename:String,title:String,directory:String,media:String,csrfToken:String,labels:Object,filelist:String,extensions:Array,inFilelist:Boolean,isFirstInFilelist:Boolean,isLastInFilelist:Boolean,attributesLink:String,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,titleData:this.title}},computed:{fieldName:function(){return this.name+"[]"},token:function(){return this.csrfToken},acceptedExtensions:function(){return this.extensions.map((function(t){return"."+t})).join()},getPlaceholder:function(){return this.placeholder?this.placeholder:this.labels.placeholder_title}},methods:{onMoveFileDown:function(){this.$emit("moveFileDown",this)},onMoveFileUp:function(){this.$emit("moveFileUp",this)},onRemoveFile:function(){this.filenameData="",this.titleData="",this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this;i.a.get(this.filelist).then((function(a){be.a.prompt({title:"Select a file",inputType:"select",inputOptions:t.filterServerFiles(a.data),callback:function(t){t&&(e.filenameData=t)}}),window.$(".bootbox-input").attr("name","bootbox-input")})).catch((function(t){console.warn(t)}))},onDragEnter:function(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave:function(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;var e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile:function(t){var e=this,a=new FormData,s={onUploadProgress:function(t){var a=Math.round(100*t.loaded/t.total);e.progress=a},headers:{"Content-Type":"multipart/form-data"}};a.append("file",t),a.append("_csrf_token",this.token),i.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.progress=0})).catch((function(t){console.warn(t),e.progress=0}))},filterServerFiles:function(t){var e=this;return t.filter((function(t){var a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},Ze=Object(v.a)(He,Je,[],!1,null,null,null);Ze.options.__file="assets/js/app/editor/Components/File.vue";var Ye=Ze.exports,Qe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor-filelist"},[t._l(t.containerFiles,(function(e,s){return a("div",{key:e.id,staticClass:"form-fieldsgroup"},[a("editor-file",{attrs:{filename:e.filename,thumbnail:e.thumbnail,title:e.title,"attributes-link":t.attributesLink,media:e.media,directory:t.directory,filelist:t.filelist,"csrf-token":t.csrfToken,labels:t.labels,"in-filelist":!0,name:t.fieldName(s),extensions:t.extensions,"is-first-in-filelist":t.isFirstInFilelist(s),"is-last-in-filelist":t.isLastInFilelist(s)},on:{remove:t.onRemoveFile,moveFileUp:t.onMoveFileUp,moveFileDown:t.onMoveFileDown}})],1)})),t._v(" "),a("button",{staticClass:"btn btn-tertiary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addFile}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_new_file)+"\n ")])],2)};Qe._withStripped=!0;var We={name:"EditorFile",components:{"editor-file":Ye},props:{files:Array,directory:String,name:String,filelist:String,csrfToken:String,labels:Object,extensions:Array,attributesLink:String,limit:Number},data:function(){var t=0,e=this.files;return e.forEach((function(e,a,s){s[a].id=a,t++})),{counter:t,containerFiles:e}},computed:{allowMore:function(){return this.containerFiles.length0){var a=this.containerFiles[e],s=this.containerFiles[e-1];this.containerFiles.splice(e-1,2,a,s)}},onRemoveFile:function(t){var e=this.getFieldNumberFromElement(t);this.containerFiles.splice(e,1),0===this.containerFiles.length&&this.addFile()},fieldName:function(t){return this.name+"["+t+"]"},addFile:function(){var t={inFilelist:!0,directory:this.directory,name:this.name,filelist:this.filelist,csrfToken:this.csrfToken,labels:this.labels,thumbnail:"",extensions:this.extensions,id:this.counter};this.counter++,this.containerFiles.push(t)}}},Ge=Object(v.a)(We,Qe,[],!1,null,null,null);Ge.options.__file="assets/js/app/editor/Components/Filelist.vue";var Ke=Ge.exports,Xe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"collectionContainer",staticClass:"collection-container"},[t._l(t.elements,(function(t){return a("div",{key:t.id,staticClass:"collection-item"},[a(t,{tag:"div"})],1)})),t._v(" "),a("div",{staticClass:"d-flex"},[a("editor-select",{ref:"templateSelect",staticClass:"flex-grow-1 mr-2",attrs:{value:t.initialSelectValue,name:t.templateSelectName,options:t.templateSelectOptions,allowempty:!1}}),t._v(" "),a("button",{staticClass:"btn btn-secondary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addCollectionItem}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_collection_item)+"\n ")])],1)],2)};Xe._withStripped=!0;var ta=a("Tntk"),ea={name:"EditorCollection",props:{templates:{type:Array,required:!0},existingFields:{type:Array},labels:{type:Object,required:!0},limit:{type:Number,required:!0}},data:function(){var t=[];this.existingFields.forEach((function(e){t.push(o.a.compile(e.html))}));var e=[];return this.templates.forEach((function(t){e.push({key:t.label,value:t.label})})),{elements:t,counter:t.length,templateSelectName:"templateSelect"+this.id,templateSelectOptions:e,selector:{collectionContainer:".collection-container",item:".collection-item",remove:".action-remove-collection-item",moveUp:".action-move-up-collection-item",moveDown:".action-move-down-collection-item"}}},computed:{initialSelectValue:function(){return this.templateSelectOptions[0].key},allowMore:function(){return this.countere?t.substring(0,e-1)+"…":t}));var c=a("EVdn"),u=a.n(c);u()(document).ready((function(){u()(".toast").toast("show")}));var d=a("L2JU"),m={namespaced:!0,state:{toolbarColor:null},getters:{toolbarColor:function(t){return t.toolbarColor}},actions:{toolbarColor:function(t,e){(0,t.commit)("toolbarColor",e)}},mutations:{toolbarColor:function(t,e){t.toolbarColor=e}}};o.a.use(d.a);var p=new d.a.Store({modules:{general:m}}),f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"admin__toolbar--body",class:t.contrast?"is-light":"is-dark",attrs:{role:"toolbar"}},[a("div",{staticClass:"toolbar-item btn-group toolbar-item__brand"},[t._m(0),t._v(" "),a("div",{staticClass:"new-item__dropdown dropdown-menu"},[a("ul",{staticClass:"toolbar-menu"},[a("li",[a("a",{attrs:{href:"https://boltcms.io/",target:"_blank"}},[a("i",{staticClass:"fas fa-globe-americas fa-fw"}),t._v("\n "+t._s(t.labels["about.visit_bolt"])+"\n ")])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://docs.bolt.cm/",target:"_blank"}},[a("i",{staticClass:"fas fa-globe-americas fa-fw"}),t._v("\n "+t._s(t.labels["about.bolt_documentation"])+"\n ")])])])])]),t._v(" "),a("div",{staticClass:"toolbar-item toolbar-item__site"},[a("a",{attrs:{href:"/",target:"_blank"}},[a("i",{staticClass:"fas fa-sign-out-alt"}),t._v(t._s(t.labels["action.view_site"])+"\n ")])]),t._v(" "),a("div",{staticClass:"toolbar-item btn-group toolbar-item__new"},[a("button",{staticClass:"btn new-item__dropdown-toggler dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-magic"}),t._v(t._s(t.labels["action.create_new"])+"…\n ")]),t._v(" "),a("div",{staticClass:"new-item__dropdown dropdown-menu"},[a("ul",t._l(t.createMenu,(function(e,s){return a("li",{key:s},[a("a",{attrs:{href:e.link_new}},[a("i",{class:"fa fa-fw "+e.icon}),t._v("\n "+t._s(e.singular_name))])])})),0)])]),t._v(" "),a("div",{staticClass:"toolbar-item btn-group toolbar-item__profile"},[a("button",{staticClass:"btn user profile__dropdown-toggler dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-user"}),t._v(t._s(t.labels["general.greeting"])+"\n ")]),t._v(" "),a("div",{staticClass:"profile__dropdown dropdown-menu dropdown-menu-right"},[a("ul",[a("li",[a("a",{attrs:{href:t.backendPrefix+"profile-edit"}},[a("i",{staticClass:"fas fa-user-edit fa-fw"}),t._v("\n "+t._s(t.labels["action.edit_profile"])+"\n ")])]),t._v(" "),a("li",[a("a",{attrs:{href:t.backendPrefix+"logout"}},[a("i",{staticClass:"fas fa-sign-out-alt fa-fw"}),t._v("\n "+t._s(t.labels["action.logout"])+"\n ")])])])])])])};f._withStripped=!0;var g=a("Zss7"),h={name:"Toolbar",props:{siteName:String,menu:Array,labels:Object,backendPrefix:RegExp},computed:{contrast:function(){return g(this.toolbarColor).isLight()},createMenu:function(){return this.menu.filter((function(t){return!t.singleton&&t.singular_name||t.singleton&&(null===t.submenu||t.submenu.length<1)}))},toolbarColor:function(){return this.$store.getters["general/toolbarColor"]}},created:function(){var t=getComputedStyle(document.body).getPropertyValue("--admin-toolbar");this.$store.dispatch("general/toolbarColor",t)}},v=a("KHd+"),b=Object(v.a)(h,f,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn brand__dropdown-toggler dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[e("img",{attrs:{src:"/assets/images/bolt_logo_dashboard.svg",alt:"⚙️ Bolt",height:"28"}})])}],!1,null,null,null);b.options.__file="assets/js/app/toolbar/Components/Toolbar.vue";var _=b.exports;document.getElementById("toolbar")&&new o.a({store:p,el:"#toolbar",name:"BoltToolbar",components:{"admin-toolbar":_}});var w={namespaced:!0,state:{slimSidebar:!1},getters:{slimSidebar:function(t){return t.slimSidebar}},actions:{slimSidebar:function(t,e){(0,t.commit)("slimSidebar",e)}},mutations:{slimSidebar:function(t,e){t.slimSidebar=e}}};o.a.use(d.a);var y=new d.a.Store({modules:{general:w}}),C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"admin__sidebar--nav"},[a("sidebar-menu",{attrs:{menu:t.menu}}),t._v(" "),a("sidebar-toggler",{attrs:{version:t.version,"about-link":t.aboutLink,labels:t.labels}}),t._v(" "),a("footer",{staticClass:"admin__sidebar--footer"},[a("a",{attrs:{href:t.aboutLink}},[t._v("Bolt v"),a("span",{staticClass:"sr-only"},[t._v("ersion ")]),t._v(t._s(t.version))])])],1)};C._withStripped=!0;var S=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"admin__sidebar--menu"},t._l(t.menu,(function(e,s){return a("li",{key:s},["separator"===e.type?a("p",{staticClass:"admin__sidebar--separator"},[t._v("\n "+t._s(e.name)+"\n ")]):e.singleton?a("a",{staticClass:"admin__sidebar--link",attrs:{href:t.singleton(e)}},[a("i",{staticClass:"fas mr-2 link--icon",class:e.icon}),a("span",{staticClass:"link--text"},[t._v(t._s(e.name))])]):a("a",{staticClass:"admin__sidebar--link",class:{"has-menu":null!==e.submenu},attrs:{href:e.link}},[a("i",{staticClass:"fas mr-2 link--icon",class:e.icon}),a("span",{staticClass:"link--text"},[t._v(t._s(e.name))]),t._v(" "),null!==e.submenu?[a("i",{staticClass:"fas fa-caret-right link--caret"}),t._v(" "),a("sub-menu",{attrs:{item:e}})]:t._e()],2)])})),0)};S._withStripped=!0;var k=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"link--menu"},[null!==t.item.link_new?a("li",{staticClass:"link--create"},[a("a",{attrs:{href:t.item.link_new}},[a("i",{staticClass:"fas fa-fw fa-magic mr-2"}),a("span",[t._v("New "+t._s(t.item.singular_name))])])]):t._e(),t._v(" "),t._l(t.item.submenu,(function(e,s){return null!==t.item.submenu?a("li",{key:s},[a("a",{attrs:{href:e.editLink}},[a("i",{staticClass:"fas fa-fw mr-2",class:e.icon}),t._v(" "),e.name?a("span",{domProps:{innerHTML:t._s(e.name)}}):a("span",[a("em",[t._v("(Untitled)")])])])]):t._e()}))],2)};k._withStripped=!0;var x={name:"SubMenu",props:{item:Object}},j=Object(v.a)(x,k,[],!1,null,null,null);j.options.__file="assets/js/app/sidebar/Components/Menu/_SubMenu.vue";var D={name:"SidebarMenu",components:{"sub-menu":j.exports},props:{menu:Array},methods:{singleton:function(t){return t.submenu.length&&null!==t.submenu?t.submenu[0].editLink:t.link_new}}},F=Object(v.a)(D,S,[],!1,null,null,null);F.options.__file="assets/js/app/sidebar/Components/Menu/index.vue";var I=F.exports,$=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"admin__sidebar--slim",on:{click:function(e){return t.slimSidebar(!t.slim)}}},[a("i",{staticClass:"fas fa-exchange-alt"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.toggler))])])};$._withStripped=!0;var E={name:"SidebarFooter",props:{version:String,aboutLink:String,labels:Object},computed:{slim:function(){return!!this.$store.getters["general/slimSidebar"]&&this.$store.getters["general/slimSidebar"]}},watch:{slim:function(){var t=document.querySelector(".admin");this.slim?t.classList.add("is-slim"):t.classList.remove("is-slim"),localStorage.setItem("slim-sidebar",this.slim)}},methods:{slimSidebar:function(t){this.$store.dispatch("general/slimSidebar",t)}}},B=Object(v.a)(E,$,[],!1,null,null,null);B.options.__file="assets/js/app/sidebar/Components/_SidebarToggler.vue";var O={name:"Sidebar",components:{"sidebar-menu":I,"sidebar-toggler":B.exports},props:{menu:Array,version:String,aboutLink:String,labels:Object},created:function(){var t=JSON.parse(localStorage.getItem("slim-sidebar"));t&&this.$store.dispatch("general/slimSidebar",t)}},T=Object(v.a)(O,C,[],!1,null,null,null);T.options.__file="assets/js/app/sidebar/Components/Sidebar.vue";var A=T.exports;document.getElementById("sidebar")&&new o.a({store:y,el:"#sidebar",name:"BoltSidebar",components:{"admin-sidebar":A}});var N={namespaced:!0,state:{type:null,rowSize:"normal",sorting:!1},getters:{getType:function(t){return t.type},getRowSize:function(t){return t.rowSize},getSorting:function(t){return t.sorting}},actions:{setType:function(t,e){(0,t.commit)("setType",e)},setRowSize:function(t,e){(0,t.commit)("setRowSize",e)},setSorting:function(t,e){(0,t.commit)("setSorting",e)}},mutations:{setType:function(t,e){t.type=e},setRowSize:function(t,e){t.rowSize=e},setSorting:function(t,e){t.sorting=e}}},L={namespaced:!0,state:{records:[]},getters:{getRecords:function(t){return t.records},getOrder:function(t){return t.records.map((function(t){return t.id}))}},actions:{setRecords:function(t,e){(0,t.commit)("setRecords",e)}},mutations:{setRecords:function(t,e){t.records=e}}},P={namespaced:!0,state:{selectAll:!1,selectedCount:0,selected:[]},getters:{selectAll:function(t){return t.selectAll},selectedCount:function(t){return t.selectedCount},selected:function(t){return t.selected}},actions:{selectAll:function(t,e){(0,t.commit)("selectAll",e)},select:function(t,e){(0,t.commit)("select",e)},deSelect:function(t,e){(0,t.commit)("deSelect",e)}},mutations:{selectAll:function(t,e){t.selectAll=e},select:function(t,e){t.selectedCount++,t.selected.push(e)},deSelect:function(t,e){t.selectedCount--;var a=t.selected.indexOf(e);a>-1&&t.selected.splice(a,1)}}};o.a.use(d.a);var M=new d.a.Store({modules:{general:N,listing:L,selecting:P}}),q=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"listing-records"})};q._withStripped=!0;var z={name:"ListingRecords",props:{type:String,data:Array,labels:Object},created:function(){this.$store.dispatch("general/setType",this.type),this.$store.dispatch("listing/setRecords",this.data)}},R=Object(v.a)(z,q,[],!1,null,null,null);R.options.__file="assets/js/app/listing/Components/Records.vue";var U=R.exports,V=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"listing__filter"},[a("ul",{staticClass:"listing__filter--controls"},["dashboard"!==t.type?a("li",[t.sorting?t._e():a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{staticClass:"custom-control-input",attrs:{id:"selectAll",type:"checkbox"},domProps:{value:t.selectAll}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"selectAll"},on:{click:function(e){return t.enableSelectAll(!t.selectAll)}}})])]):t._e(),t._v(" "),a("li",{staticClass:"control--left"},[a("button",{staticClass:"control--button",class:{"is-selected":"normal"===t.size},attrs:{title:t.labels.button_expanded},on:{click:function(e){return t.changeSize("normal")}}},[a("i",{staticClass:"fas fa-align-justify fa-fw"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_expanded))])])]),t._v(" "),a("li",[a("button",{staticClass:"control--button",class:{"is-selected":"small"===t.size},attrs:{title:t.labels.button_compact},on:{click:function(e){return t.changeSize("small")}}},[a("i",{staticClass:"fas fa-grip-lines fa-fw"}),t._v(" "),a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_compact))])])])])])};V._withStripped=!0;var J={computed:{type:function(){return this.$store.getters["general/getType"]}}},H={name:"ListingFilter",mixins:[J],props:{labels:Object},computed:{size:function(){return this.$store.getters["general/getRowSize"]},sorting:function(){return this.$store.getters["general/getSorting"]},selectAll:function(){return this.$store.getters["selecting/selectAll"]}},watch:{sorting:function(){this.sorting&&this.$store.dispatch("selecting/selectAll",!1)}},created:function(){var t=localStorage.getItem("listing-row-size");null!==t&&this.$store.dispatch("general/setRowSize",t)},methods:{enableSorting:function(t){this.$store.dispatch("general/setSorting",t)},enableSelectAll:function(t){this.$store.dispatch("selecting/selectAll",t)},changeSize:function(t){this.$store.dispatch("general/setRowSize",t),localStorage.setItem("listing-row-size",t)}}},Z=Object(v.a)(H,V,[],!1,null,null,null);Z.options.__file="assets/js/app/listing/Components/Filter.vue";var Y=Z.exports,Q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__records"},[a("draggable",{attrs:{handle:".listing__row--move","force-fallback":"true"},model:{value:t.records,callback:function(e){t.records=e},expression:"records"}},[a("transition-group",t._l(t.records,(function(e){return a("table-row",{key:e.id,attrs:{record:e,labels:t.labels}})})),1)],1)],1)};Q._withStripped=!0;var W=a("MQ60"),G=a.n(W),K=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition-group",{staticClass:"listing--container",class:{"is-dashboard":"dashboard"===t.type},attrs:{tag:"div"}},["dashboard"!==t.type?a("row-checkbox",{key:"select",attrs:{id:t.record.id}}):t._e(),t._v(" "),a("div",{key:"row",staticClass:"listing__row",class:"is-"+t.size,on:{mouseleave:t.leave}},["normal"===t.size&&t.record.extras.image?a("div",{staticClass:"listing__row--item is-thumbnail",style:"background-image: url('"+t.record.extras.image.thumbnail+"')"}):t._e(),t._v(" "),a("div",{staticClass:"listing__row--item is-details"},[a("a",{staticClass:"listing__row--item-title",attrs:{href:t.record.extras.editLink,title:t.slug}},[t._v("\n "+t._s(t._f("trim")(t.record.extras.title,62))+"\n ")]),t._v(" "),a("span",{staticClass:"listing__row--item-title-excerpt"},[t._v(t._s(t.record.extras.excerpt))])]),t._v(" "),a("row-meta",{attrs:{type:t.type,size:t.size,record:t.record}}),t._v(" "),a("div",{staticClass:"listing__row--item is-excerpt"},[a("span",[t._v(t._s(t.record.extras.excerpt))])]),t._v(" "),a("row-actions",{attrs:{type:t.type,record:t.record,size:t.size,labels:t.labels.actions}})],1)],1)};K._withStripped=!0;var X=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:!t.sorting,expression:"!sorting"}],key:"checkbox",staticClass:"listing--checkbox"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"custom-control-input",attrs:{id:"row-"+t.id,type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?t._i(t.selected,null)>-1:t.selected},on:{change:function(e){var a=t.selected,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.selected=a.concat([null])):n>-1&&(t.selected=a.slice(0,n).concat(a.slice(n+1)))}else t.selected=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"row-"+t.id},on:{click:function(e){t.selected,t.selected}}})])])};X._withStripped=!0;var tt={name:"Checkbox",props:{id:Number},data:function(){return{selected:!1}},computed:{selectAll:function(){return this.$store.getters["selecting/selectAll"]},sorting:function(){return this.$store.getters["general/getSorting"]}},watch:{selectAll:function(){this.selected=this.selectAll},selected:function(){this.selected?this.$store.dispatch("selecting/select",this.id):this.$store.dispatch("selecting/deSelect",this.id)},sorting:function(){this.sorting&&(this.selected=!1)}}},et=Object(v.a)(tt,X,[],!1,null,null,null);et.options.__file="assets/js/app/listing/Components/Table/Row/_Checkbox.vue";var at=et.exports,st=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__row--item is-meta"},[a("ul",{staticClass:"listing__row--list text-nowrap"},[a("li",[a("span",{staticClass:"status",class:"is-"+t.record.status,attrs:{title:t.record.status}}),t._v(t._s(t._f("date")(t.record.publishedAt))+"\n ")]),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas fa-user"}),t._v(" "+t._s(t.record.authorName)+"\n ")]):t._e(),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas",class:t.record.extras.icon}),t._v(" "),"dashboard"===t.type?[a("a",{attrs:{href:"/bolt/content/"+t.record.contentType}},[t._v("\n "+t._s(t.record.extras.singular_name))])]:[t._v(t._s(t.record.extras.singular_name))],t._v(" № "+t._s(t.record.id)+"\n ")],2):t._e()])])};st._withStripped=!0;var it={name:"MetaData",props:{type:String,size:String,record:Object}},nt=Object(v.a)(it,st,[],!1,null,null,null);nt.options.__file="assets/js/app/listing/Components/Table/Row/_Meta.vue";var rt=nt.exports,ot=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listing__row--item is-actions edit-actions"},[a("div",{staticClass:"btn-group"},[a("a",{staticClass:"btn btn-secondary btn-block btn-sm text-nowrap",attrs:{href:t.record.extras.editLink}},[a("i",{staticClass:"far fa-edit mr-1"}),t._v(" "+t._s(t.labels.button_edit)+"\n ")]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"edit-actions__dropdown dropdown-menu dropdown-menu-right",staticStyle:{width:"320px"}},["published"===t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.link,target:"_blank"}},[a("i",{staticClass:"fas fa-w fa-external-link-square-alt"}),t._v("\n "+t._s(t.labels.view_on_site)+"\n ")]):t._e(),t._v(" "),"published"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=published"}},[a("span",{staticClass:"status mr-1 is-published"}),t._v("\n "+t._s(t.labels.status_to_publish)+"\n ")]):t._e(),t._v(" "),"held"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=held"}},[a("span",{staticClass:"status mr-1 is-held"}),t._v("\n "+t._s(t.labels.status_to_held)+"\n ")]):t._e(),t._v(" "),"draft"!==t.record.status?a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.statusLink+"&status=draft"}},[a("span",{staticClass:"status mr-1 is-draft"}),t._v("\n "+t._s(t.labels.status_to_draft)+"\n ")]):t._e(),t._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.duplicateLink}},[a("i",{staticClass:"far fa-w fa-copy"}),t._v("\n "+t._s(t.labels.duplicate)+" "+t._s(t.record.extras.singular_name)+"\n ")]),t._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:t.record.extras.deleteLink,"data-confirmation":"Are you sure you wish to delete this Content?"}},[a("i",{staticClass:"fas fa-w fa-trash"}),t._v("\n "+t._s(t.labels.delete)+" "+t._s(t.record.extras.singular_name)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-divider"}),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-link fa-w"}),t._v("\n "+t._s(t.labels.slug)+":\n "),a("code",{attrs:{title:t.record.fieldValues.slug}},[t._v(t._s(t._f("trim")(t.record.fieldValues.slug,24)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-asterisk fa-w"}),t._v("\n "+t._s(t.labels.created_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.createdAt)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"far fa-calendar-alt fa-w"}),t._v("\n "+t._s(t.labels.published_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.publishedAt)))])]),t._v(" "),a("span",{staticClass:"dropdown-item-text"},[a("i",{staticClass:"fas fa-redo fa-w"}),t._v("\n "+t._s(t.labels.last_modified_on)+":\n "),a("strong",[t._v(t._s(t._f("datetime")(t.record.modifiedAt)))])])])])])};ot._withStripped=!0;var lt={name:"Actions",props:{type:String,record:Object,labels:Object},created:function(){}},ct=Object(v.a)(lt,ot,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-sm btn-secondary edit-actions__dropdown-toggler dropdown-toggle dropdown-toggle-split",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("span",{staticClass:"sr-only"},[this._v("Toggle Dropdown")])])}],!1,null,null,null);ct.options.__file="assets/js/app/listing/Components/Table/Row/_Actions.vue";var ut={name:"TableRow",components:{"row-checkbox":at,"row-meta":rt,"row-actions":ct.exports},mixins:[J],props:{record:Object,labels:Object},computed:{slug:function(){return"string"==typeof this.record.fieldValues.slug?this.record.fieldValues.slug:this.record.fieldValues.slug[Object.keys(this.record.fieldValues.slug)[0]]},size:function(){return this.$store.getters["general/getRowSize"]},sorting:function(){return this.$store.getters["general/getSorting"]}},methods:{leave:function(){u()('.dropdown-toggle[aria-expanded="true"]').dropdown("toggle")}}},dt=Object(v.a)(ut,K,[],!1,null,null,null);dt.options.__file="assets/js/app/listing/Components/Table/Row/index.vue";var mt=dt.exports,pt={name:"ListingTable",components:{draggable:G.a,"table-row":mt},props:{labels:Object},computed:{records:{get:function(){return this.$store.getters["listing/getRecords"]},set:function(t){this.$store.dispatch("listing/setRecords",t)}}}},ft=Object(v.a)(pt,Q,[],!1,null,null,null);ft.options.__file="assets/js/app/listing/Components/Table/index.vue";var gt=ft.exports,ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{name:"card"}},[t.selectedCount>0?a("div",{staticClass:"card mb-3"},[a("div",{staticClass:"card-header"},[a("span",{staticClass:"is-primary mr-1"},[t._v(t._s(t.selectedCount))]),t._v(" "),1===t.selectedCount?[t._v(t._s(t.singular))]:[t._v(t._s(t.plural))],t._v("\n "+t._s(t.labels.selected)+"\n ")],2),t._v(" "),a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group"},[a("multiselect",{attrs:{"allow-empty":!1,multiple:!1,"show-labels":!1,label:"value","track-by":"key",options:t.options},scopedSlots:t._u([{key:"option",fn:function(e){return[a("span",{class:e.option.class}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.value)+"\n ")])]}}],null,!1,2414873864),model:{value:t.selectedAction,callback:function(e){t.selectedAction=e},expression:"selectedAction"}})],1),t._v(" "),a("form",{attrs:{action:t.postUrl,method:"post"}},[a("input",{attrs:{type:"hidden",name:"records"},domProps:{value:t.selected}}),t._v(" "),a("input",{attrs:{type:"hidden",name:"_csrf_token"},domProps:{value:t.csrftoken}}),t._v(" "),a("div",{staticClass:"form-group"},[a("button",{staticClass:"btn btn-secondary",attrs:{type:"submit",name:"bulk-action",disabled:null===t.selectedAction}},[t._v("\n "+t._s(t.labels.update_all)+"\n ")])])])])]):t._e()])};ht._withStripped=!0;var vt=a("jl8+"),bt=a.n(vt),_t={name:"ListingSelectedBox",components:{Multiselect:bt.a},props:{singular:String,plural:String,labels:Object,csrftoken:String},data:function(){return{selectedAction:null,options:[{key:"status/published",value:this.labels.status_to_published,selected:!1,class:"status mr-1 is-published"},{key:"status/draft",value:this.labels.status_to_draft,selected:!1,class:"status mr-1 is-draft"},{key:"status/held",value:this.labels.status_to_held,selected:!1,class:"status mr-1 is-held"},{key:"delete",value:this.labels.delete,selected:!1,class:"fas fa-w fa-trash"}]}},computed:{postUrl:function(){return this.selectedAction?"/bolt/bulk/"+this.selectedAction.key:""},selectedCount:function(){return this.$store.getters["selecting/selectedCount"]},selected:function(){return this.$store.getters["selecting/selected"]},order:function(){return this.$store.getters["listing/getOrder"]}}},wt=Object(v.a)(_t,ht,[],!1,null,null,null);wt.options.__file="assets/js/app/listing/Components/SelectBox.vue";var yt=wt.exports;document.getElementById("listing")&&new o.a({store:M,el:"#listing",name:"BoltListing",components:{"listing-records":U,"listing-filter":Y,"listing-table":gt,"listing-select-box":yt}});var Ct={namespaced:!0,state:{slimSidebar:!1},getters:{slimSidebar:function(t){return t.slimSidebar}},actions:{slimSidebar:function(t,e){(0,t.commit)("slimSidebar",e)}},mutations:{slimSidebar:function(t,e){t.slimSidebar=e}}};o.a.use(d.a);var St=new d.a.Store({modules:{general:Ct}}),kt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control",class:t.getType,attrs:{id:t.id,name:t.name,type:"text",disabled:1==t.disabled,required:1==t.required,readonly:1==t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}})])};kt._withStripped=!0;var xt={mounted:function(){this.val=this.value},data:function(){return{val:null}}},jt={name:"EditorText",mixins:[xt],props:{value:String,name:String,type:String,disabled:Boolean,id:String,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{generate:!1}},computed:{getType:function(){return"large"===this.type?"form-control-lg":""}},watch:{val:function(){this.generate&&this.$root.$emit("slugify-from-title")}},mounted:function(){var t=this;this.$root.$on("generate-from-title",(function(e){return t.generate=e}))}},Dt=Object(v.a)(jt,kt,[],!1,null,null,null);Dt.options.__file="assets/js/app/editor/Components/Text.vue";var Ft=Dt.exports,It=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group mb-3"},[a("div",{staticClass:"input-group-prepend"},[a("span",{staticClass:"input-group-text"},[t._v(t._s(t.prefix))])]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control",class:t.fieldClass,attrs:{name:t.name,placeholder:"…",type:"text",readonly:t.readonly||!t.edit,required:1==t.required,"data-errormessage":t.errormessage,pattern:t.pattern},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary dropdown-toggle",class:[{"btn-primary":t.edit},{"btn-secondary":!t.edit}],attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:t.readonly}},[a("i",{staticClass:"fas fa-fw",class:"fa-"+t.icon}),t._v(" "+t._s(t.buttonText)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-menu"},[t.edit?t._e():[a("button",{staticClass:"dropdown-item",attrs:{type:"button"},on:{click:t.editSlug}},[a("i",{staticClass:"fas fa-pencil-alt fa-fw"}),t._v(" "+t._s(t.labels.button_edit)+"\n ")])],t._v(" "),t.locked?t._e():[a("button",{staticClass:"dropdown-item",attrs:{type:"button"},on:{click:t.lockSlug}},[a("i",{staticClass:"fas fa-lock fa-fw"}),t._v(" "+t._s(t.labels.button_locked)+"\n ")])],t._v(" "),a("button",{staticClass:"dropdown-item",attrs:{type:"button"},on:{click:t.generateSlug}},[a("i",{staticClass:"fas fa-link fa-fw"}),t._v(" "+t._s(t.labels.generate_from)+"\n "+t._s(t.generate)+"\n ")])],2)])])])};It._withStripped=!0;var $t={name:"EditorSlug",mixins:[xt],props:{value:String,name:String,prefix:String,fieldClass:String,generate:String,labels:Object,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean},data:function(){return{edit:!1,locked:!0,buttonText:this.$props.labels.button_locked,icon:"lock"}},mounted:function(){var t=this;setTimeout((function(){var e="";t.generate.split(",").forEach((function(t){e+=document.querySelector("input[name='fields[".concat(t,"]']")).value})),e.length<=0&&(t.icon="unlock",t.buttonText=t.$props.labels.button_unlocked,t.$root.$emit("generate-from-title",!0))}),0),this.$root.$on("slugify-from-title",(function(){return t.generateSlug()}))},methods:{editSlug:function(){this.$root.$emit("generate-from-title",!1),this.edit=!0,this.locked=!1,this.buttonText=this.$props.labels.button_edit,this.icon="pencil-alt"},lockSlug:function(){this.$root.$emit("generate-from-title",!1);var t=this.$options.filters.slugify(this.val);this.val=t,this.edit=!1,this.locked=!0,this.buttonText=this.$props.labels.button_locked,this.icon="lock"},generateSlug:function(){var t="";this.generate.split(",").forEach((function(e){t=t+" "+document.querySelector("input[name='fields[".concat(e,"]']")).value}));var e=this.$options.filters.slugify(t);this.val=e,this.$root.$emit("generate-from-title",!0),this.edit=!1,this.locked=!1,this.buttonText=this.$props.labels.button_unlocked,this.icon="unlock"}}},Et=Object(v.a)($t,It,[],!1,null,null,null);Et.options.__file="assets/js/app/editor/Components/Slug.vue";var Bt=Et.exports,Ot=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group"},[a("flat-pickr",{staticClass:"form-control editor--date",attrs:{config:t.config,disabled:t.readonly,form:t.form,name:t.name,placeholder:"Select date",required:1==t.required,"data-errormessage":t.errormessage},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary",class:{"btn-outline-secondary":t.readonly},attrs:{type:"button",disabled:t.readonly,"data-toggle":""}},[a("i",{staticClass:"fa fa-calendar"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.toggle))])])]),t._v(" "),a("button",{staticClass:"btn btn-tertiary",class:{"btn-outline-secondary":t.readonly},attrs:{type:"button",disabled:t.readonly,"data-clear":""}},[a("i",{staticClass:"fa fa-times"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.clear))])])])])],1)])};Ot._withStripped=!0;var Tt=a("w48C"),At={name:"EditorDate",components:{flatPickr:a.n(Tt).a},mixins:[xt],props:{value:{type:String,required:!1,default:""},name:{type:String,required:!0},readonly:{type:Boolean,required:!0},mode:{type:String,required:!0,default:"date"},form:{type:String,required:!0},locale:{type:String,default:"en"},labels:{type:String,default:""},required:{type:Number,required:!0},errormessage:{type:String|Boolean,required:!0}},data:function(){return{config:{wrap:!0,altFormat:"F j, Y",altInput:!0,dateFormat:"Z",enableTime:!1}}},created:function(){if("en"!==this.locale){var t=a("WqZd")("./".concat(this.locale,".js")).default[this.locale];this.config.locale=t}"datetime"===this.mode&&(this.config.enableTime=!0,this.config.altFormat="F j, Y - h:i K")},mounted:function(){}},Nt=Object(v.a)(At,Ot,[],!1,null,null,null);Nt.options.__file="assets/js/app/editor/Components/Date.vue";var Lt=Nt.exports,Pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"multiselect-"+t.id}},[a("multiselect",{attrs:{"allow-empty":!1,limit:1e3,multiple:t.multiple,options:t.options,searchable:t.taggable,"show-labels":!1,taggable:t.taggable,disabled:t.readonly,"data-errormessage":t.errormessage,label:"value","tag-placeholder":"Add this as new tag","tag-position":"bottom","track-by":"key"},on:{tag:t.addTag},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return"status"===t.name?[a("span",{staticClass:"status mr-2",class:"is-"+e.option.key}),t._v("\n "+t._s(e.option.key)+"\n ")]:void 0}},{key:"option",fn:function(e){return"status"===t.name?[a("span",{staticClass:"status mr-2",class:"is-"+e.option.key}),t._v("\n "+t._s(e.option.key)+"\n ")]:void 0}}],null,!0),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}}),t._v(" "),a("input",{attrs:{id:t.id,type:"hidden",name:t.name,form:t.form},domProps:{value:t.sanitized}})],1)};Pt._withStripped=!0;var Mt={name:"EditorSelect",components:{Multiselect:bt.a},props:{value:Array|String,name:String,id:String,form:String,options:Array,multiple:Boolean,taggable:Boolean,required:Number,readonly:Boolean,errormessage:String|Boolean},data:function(){return{selected:[]}},computed:{sanitized:function(){var t;return null===this.selected?JSON.stringify([]):this.selected.map?(t=this.selected.map((function(t){return t.key})),JSON.stringify(t)):JSON.stringify([this.selected.key])},fieldName:function(){return this.name+"[]"}},mounted:function(){var t=this.value,e=this.options,a=e.filter((function(e){return t.includes(e.key)}));0===a.length&&(a=[e[0]]),this.selected=a},methods:{addTag:function(t){var e={key:t,value:t,selected:!0};this.options.push(e),this.value.push(e),this.selected.push(e)}}},qt=Object(v.a)(Mt,Pt,[],!1,null,null,null);qt.options.__file="assets/js/app/editor/Components/Select.vue";var zt=qt.exports,Rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control",attrs:{name:t.name,type:"number",step:t.step,required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}})])};Rt._withStripped=!0;var Ut={name:"EditorNumber",mixins:[xt],props:{value:String,name:String,step:Number,type:String,disabled:Boolean,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean}},Vt=Object(v.a)(Ut,Rt,[],!1,null,null,null);Vt.options.__file="assets/js/app/editor/Components/Number.vue";var Jt=Vt.exports,Ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("trumbowyg",{attrs:{id:t.name,name:t.name,config:t.config},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}})],1)};Ht._withStripped=!0;var Zt=a("bPil"),Yt=a.n(Zt),Qt=(a("1qIj"),{name:"EditorHtml",components:{trumbowyg:Yt.a},props:{value:String,label:String,name:String},data:function(){return{val:null,config:{btns:[["formatting"],["strong","em","del"],["link"],["insertImage"],["justifyLeft","justifyCenter","justifyRight"],["unorderedList","orderedList"],["horizontalRule"],["removeformat"],["fullscreen"],["viewHTML"]]}}},mounted:function(){this.val=this.$options.filters.strip(this.value)}}),Wt=Object(v.a)(Qt,Ht,[],!1,null,null,null);Wt.options.__file="assets/js/app/editor/Components/Html.vue";var Gt=Wt.exports,Kt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("vue-simplemde",{attrs:{id:t.name,name:t.name,configs:t.config},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}})],1)};Kt._withStripped=!0;var Xt={name:"EditorMarkdown",components:{VueSimplemde:a("YjwT").a},props:{value:String,name:String},data:function(){return{val:null,config:{spellChecker:!1,status:!1,toggleFullScreen:!0}}},mounted:function(){this.val=this.$options.filters.strip(this.value)}},te=(a("I86Z"),Object(v.a)(Xt,Kt,[],!1,null,"18f5a15c",null));te.options.__file="assets/js/app/editor/Components/Markdown.vue";var ee=te.exports,ae=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"form-control field--textarea",attrs:{name:t.name,rows:"10",required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.val},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}})])};ae._withStripped=!0;var se={name:"EditorTextarea",mixins:[xt],props:{value:String,name:String,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean}},ie=Object(v.a)(se,ae,[],!1,null,null,null);ie.options.__file="assets/js/app/editor/Components/Textarea.vue";var ne=ie.exports,re=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"editor__embed",attrs:{id:t.name,name:t.name}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-8"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"embed-url"}},[t._v(t._s(t.labels.content_url))]),t._v(" "),a("div",{staticClass:"input-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.url,expression:"url"}],staticClass:"form-control",attrs:{name:t.name+"[url]",placeholder:t.labels.placeholder_content_url,type:"url",required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern},domProps:{value:t.url},on:{input:function(e){e.target.composing||(t.url=e.target.value)}}}),t._v(" "),t._m(0)])]),t._v(" "),a("div",{staticClass:"form-group form-inline"},[a("label",{attrs:{for:"embed-width-size"}},[t._v(t._s(t.labels.label_size))]),t._v(" "),a("input",{staticClass:"form-control col-2 offset-1",attrs:{name:t.name+"[width]",type:"number",readonly:t.readonly},domProps:{value:t.widthData}}),t._v("\n ×\n "),a("label",{staticClass:"sr-only",attrs:{for:"embed-height-size"}},[t._v(t._s(t.labels.label_height))]),t._v(" "),a("input",{staticClass:"form-control col-2",attrs:{name:t.name+"[height]",type:"number",readonly:t.readonly},domProps:{value:t.heightData}}),t._v(" "),a("label",[t._v(t._s(t.labels.label_pixel))])]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.labels.label_matched_embed))]),t._v(" "),a("input",{staticClass:"form-control title",attrs:{name:t.name+"[title]",readonly:"",title:"Title",type:"text"},domProps:{value:t.titleData}}),t._v(" "),a("input",{staticClass:"form-control author_name",attrs:{name:t.name+"[authorname]",readonly:"",title:"Author",type:"text"},domProps:{value:t.authornameData}}),t._v(" "),a("input",{staticClass:"author_url",attrs:{name:t.name+"[authorurl]",type:"hidden"},domProps:{value:t.authorurlData}}),t._v(" "),a("input",{staticClass:"html",attrs:{name:t.name+"[html]",type:"hidden"},domProps:{value:t.htmlData}}),t._v(" "),a("input",{staticClass:"thumbnail_url",attrs:{name:t.name+"[thumbnail]",type:"hidden"},domProps:{value:t.thumbnailData}})])]),t._v(" "),a("div",{staticClass:"col-4"},[a("label",[t._v(t._s(t.labels.label_preview))]),t._v(" "),a("div",{staticClass:"editor__image--preview"},[a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.previewImage+"')",attrs:{href:t.previewImage}})])])])])])};re._withStripped=!0;var oe=a("LvDl"),le=a.n(oe),ce=a("SwAO"),ue=a.n(ce),de={name:"EditorEmbed",mixins:[xt],props:{embedapi:String,name:String,authorurl:String,authorname:String,height:Number|String,html:String,thumbnail:String,title:String,url:String,width:Number|String,labels:Object,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean},data:function(){return{authorurlData:this.authorurl,authornameData:this.authorname,heightData:this.height,htmlData:this.html,thumbnailData:this.thumbnail,titleData:this.title,urlData:this.url,widthData:this.width}},watch:{url:function(t){t&&this.debouncedFetchEmbed()}},mounted:function(){this.previewImage=this.thumbnail},created:function(){this.debouncedFetchEmbed=le.a.debounce(this.fetchEmbed,500),this.url&&this.debouncedFetchEmbed(),this.previewImage=this.thumbnail},updated:function(){ue.a.run(".editor__image--preview",{afterShow:function(){},afterHide:function(){}})},methods:{fetchEmbed:function(){var t=this,e=new FormData;e.append("url",this.url),e.append("_csrf_token",document.getElementsByName("_csrf_token")[0].value),fetch(this.embedapi,{method:"POST",body:e}).then((function(t){return t.json()})).then((function(e){t.authorurlData=e.author_url,t.authornameData=e.author_name,t.heightData=e.height,t.htmlData=e.html,t.thumbnailData=e.thumbnail_url,t.titleData=e.title,t.widthData=e.width,t.previewImage=e.thumbnail_url})).catch((function(t){console.warn(t)}))}}},me=Object(v.a)(de,re,[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"input-group-btn"},[e("button",{staticClass:"btn btn-default refresh",attrs:{type:"button",disabled:""}},[e("i",{staticClass:"fa fa-refresh"})])])}],!1,null,null,null);me.options.__file="assets/js/app/editor/Components/Embed.vue";var pe=me.exports,fe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__image",on:{dragenter:t.onDragEnter,dragleave:t.onDragLeave,dragover:function(t){t.preventDefault()},drop:t.onDrop}},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"editor__image--dragging"},[a("i",{staticClass:"fas fa-upload"})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-9"},[a("div",{staticClass:"input-group mb-3"},[a("input",{attrs:{name:t.name+"[media]",type:"hidden"},domProps:{value:t.media}}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:t.name+"[filename]",type:"text",placeholder:t.labels.placeholder_filename,"data-readonly":"readonly",required:1==t.required,"data-errormessage":t.errormessage},domProps:{value:t.filenameData}})]),t._v(" "),void 0!==t.altData?a("div",{staticClass:"input-group mb-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.altData,expression:"altData"}],staticClass:"form-control",attrs:{name:t.name+"[alt]",type:"text",readonly:t.readonly,pattern:t.pattern,placeholder:t.getPlaceholder},domProps:{value:t.altData},on:{input:function(e){e.target.composing||(t.altData=e.target.value)}}})]):t._e(),t._v(" "),a("div",{staticClass:"btn-toolbar",attrs:{role:"toolbar"}},[a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectUploadFile}},[a("i",{staticClass:"fas fa-fw fa-upload"}),t._v(t._s(t.labels.button_upload)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-sm btn-tertiary dropdown-toggle dropdown-toggle-split",attrs:{"aria-expanded":"false","aria-haspopup":"true","data-toggle":"dropdown",name:"image-upload-dropdown",type:"button",disabled:t.readonly}}),t._v(" "),a("div",{staticClass:"dropdown-menu"},[a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectServerFile}},[a("i",{staticClass:"fas fa-fw fa-th"}),t._v("\n "+t._s(t.labels.button_from_library)+"\n ")]),t._v(" "),t.filenameData?a("a",{staticClass:"dropdown-item",attrs:{href:t.attributesLink+"?file="+t.filenameData,target:"_blank"}},[a("i",{staticClass:"fas fa-fw fa-info-circle"}),t._v("\n "+t._s(t.labels.button_edit_attributes)+"\n ")]):t._e()])]),t._v(" "),a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[1==t.inImagelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isFirstInImagelist},on:{click:t.onMoveImageUp}},[a("i",{staticClass:"fas fa-fw fa-chevron-up"}),t._v("\n "+t._s(t.labels.button_move_up)+"\n ")]):t._e(),t._v(" "),1==t.inImagelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isLastInImagelist},on:{click:t.onMoveImageDown}},[a("i",{staticClass:"fas fa-fw fa-chevron-down"}),t._v("\n "+t._s(t.labels.button_move_down)+"\n ")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm btn-hidden-danger",attrs:{type:"button",disabled:t.readonly},on:{click:t.onRemoveImage}},[a("i",{staticClass:"fas fa-fw fa-trash"}),t._v(" "+t._s(t.labels.button_remove)+"\n ")])])]),t._v(" "),t.progress>0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()]),t._v(" "),a("div",{staticClass:"col-3"},[a("div",{staticClass:"editor__image--preview"},[a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.previewImage+"')",attrs:{href:t.previewImage}})])])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__image--upload",attrs:{name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};fe._withStripped=!0;var ge=a("eAd9"),he=a.n(ge),ve=a("JdwY"),be=a.n(ve),_e={name:"EditorImage",mixins:[xt],props:{filename:String,name:String,required:Number,readonly:Boolean,thumbnail:String,alt:String,directory:String,media:Number|String,csrfToken:String,labels:Object,filelist:String,extensions:Array,attributesLink:String,inImagelist:Boolean,isFirstInImagelist:Boolean,isLastInImagelist:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{previewImage:null,isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,thumbnailData:this.thumbnail,altData:this.alt}},computed:{fieldName:function(){return this.name+"[]"},token:function(){return this.csrfToken},acceptedExtensions:function(){return this.extensions.map((function(t){return"."+t})).join()},getPlaceholder:function(){return this.placeholder?this.placeholder:this.labels.placeholder_alt_text}},mounted:function(){this.previewImage=this.thumbnailData},updated:function(){this.previewImage=this.thumbnailData,ue.a.run(".editor__image--preview",{afterShow:function(){he.a.on()},afterHide:function(){he.a.off()}})},methods:{onMoveImageDown:function(){this.$emit("moveImageDown",this)},onMoveImageUp:function(){this.$emit("moveImageUp",this)},onRemoveImage:function(){this.previewImage=null,this.filenameData="",this.thumbnailData="",void 0!==this.altData&&(this.altData=""),this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this.thumbnailData.split("?").pop(),a=this;i.a.get(this.filelist).then((function(s){be.a.prompt({title:"Select a file",inputType:"select",name:"image-selector",inputOptions:t.filterServerFiles(s.data),callback:function(t){t&&(a.filenameData=t,a.thumbnailData="/thumbs/".concat(t,"?").concat(e))}}),window.$(".bootbox-input").attr("name","bootbox-input")})).catch((function(t){console.warn(t)}))},onDragEnter:function(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave:function(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;var e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile:function(t){var e=this,a=this.thumbnailData.split("?").pop(),s=new FormData,n={onUploadProgress:function(t){var a=Math.round(100*t.loaded/t.total);e.progress=a},headers:{"Content-Type":"multipart/form-data"}};s.append("image",t),s.append("_csrf_token",this.token),i.a.post(this.directory,s,n).then((function(t){e.filenameData=t.data,e.thumbnailData="/thumbs/".concat(t.data,"?").concat(a),e.progress=0})).catch((function(t){console.warn(t),e.progress=0}))},filterServerFiles:function(t){var e=this;return t.filter((function(t){var a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},we=Object(v.a)(_e,fe,[],!1,null,null,null);we.options.__file="assets/js/app/editor/Components/Image.vue";var ye=we.exports,Ce=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__imagelist"},[t._l(t.containerImages,(function(e,s){return a("div",{key:e.id,staticClass:"form-fieldsgroup"},[!0!==e.hidden?a("editor-image",{attrs:{filename:e.filename,thumbnail:e.thumbnail,title:e.title,alt:e.alt,"attributes-link":t.attributesLink,media:e.media,directory:t.directory,filelist:t.filelist,"csrf-token":t.csrfToken,labels:t.labels,"in-imagelist":!0,name:t.fieldName(s),extensions:t.extensions,"is-first-in-imagelist":t.isFirstInImagelist(s),"is-last-in-imagelist":t.isLastInImagelist(s)},on:{remove:t.onRemoveImage,moveImageUp:t.onMoveImageUp,moveImageDown:t.onMoveImageDown}}):t._e()],1)})),t._v(" "),a("button",{staticClass:"btn btn-tertiary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addImage}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_new_image)+"\n ")])],2)};Ce._withStripped=!0;var Se={name:"EditorImage",components:{"editor-image":ye},props:{images:Array,directory:String,name:String,filelist:String,csrfToken:String,labels:Object,extensions:Array,attributesLink:String,limit:Number},data:function(){var t=0;return this.images.forEach((function(e,a,s){s[a].id=a,t++})),{counter:t,containerImages:this.images}},computed:{allowMore:function(){return this.getActiveImageFields().length0){var a=this.containerImages[e],s=this.containerImages[e-1];this.containerImages.splice(e-1,2,a,s)}},onRemoveImage:function(t){var e=this.getFieldNumberFromElement(t),a=this.containerImages[e];a.hidden=!0,this.$set(this.containerImages,e,a),0===this.getActiveImageFields().length&&this.addImage()},fieldName:function(t){return this.name+"["+t+"]"},addImage:function(){var t={inImagelist:!0,directory:this.directory,name:this.name,filelist:this.filelist,csrfToken:this.csrfToken,labels:this.labels,thumbnail:"",extensions:this.extensions,id:this.counter};this.counter++,this.containerImages.push(t)}}},ke=Object(v.a)(Se,Ce,[],!1,null,null,null);ke.options.__file="assets/js/app/editor/Components/Imagelist.vue";var xe=ke.exports,je=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("input",{staticClass:"form-control",attrs:{id:t.id,name:t.name,type:"email",required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.value}})])};je._withStripped=!0;var De={name:"EditorEmail",props:{value:{type:String},name:{type:String},id:{type:String},required:{type:Number},readonly:{type:Boolean},errormessage:{type:String|Boolean},pattern:{type:String|Boolean},placeholder:String|Boolean}},Fe=Object(v.a)(De,je,[],!1,null,null,null);Fe.options.__file="assets/js/app/editor/Components/Email.vue";var Ie=Fe.exports,$e=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group-prepend"},[a("input",{ref:"inputField",staticClass:"form-control",attrs:{id:t.id,type:"password",name:t.name,required:1==t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder,autocomplete:"new-password"},domProps:{value:t.value},on:{input:t.measureStrength}}),t._v(" "),a("i",{ref:"visibilityToggle",staticClass:"input-group-text toggle-password fas fa-eye",on:{click:t.togglePassword}})]),t._v(" "),t.strength?a("progress-bar",{ref:"progressBar",attrs:{max:4,height:"4px"}}):t._e()],1)};$e._withStripped=!0;var Ee=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress",style:this.styleHeight},[e("div",{staticClass:"progress-bar",style:this.styleWidth,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuenow":this.value,"aria-valuemax":this.max}})])};Ee._withStripped=!0;var Be={name:"ProgressBar",props:{max:{type:Number,default:100},value:{type:Number,default:0},height:{type:String,default:null}},computed:{styleWidth:function(){return{width:this.value/this.max*100+"%"}},styleHeight:function(){return{height:this.height||null}}}},Oe=Object(v.a)(Be,Ee,[],!1,null,null,null);Oe.options.__file="assets/js/app/editor/Components/ProgressBar.vue";var Te={name:"EditorPassword",components:{ProgressBar:Oe.exports},props:{value:String,name:String,id:String,hidden:Boolean,strength:Boolean,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},mounted:function(){this.hidden||this.$refs.visibilityToggle.click(),this.value&&this.strength&&this.$refs.inputField.dispatchEvent(new Event("input"))},methods:{togglePassword:function(t){var e=t.target,a=t.target.previousElementSibling,s=a.attributes.getNamedItem("type").value;"password"===s?(a.setAttribute("type","text"),e.classList.replace("fa-eye","fa-eye-slash")):"text"===s&&(a.setAttribute("type","password"),e.classList.replace("fa-eye-slash","fa-eye"))},measureStrength:function(t){var e=t.target;if(this.strength){var a=window.zxcvbn(e.value);this.$refs.progressBar.value=a.score}}}},Ae=Object(v.a)(Te,$e,[],!1,null,null,null);Ae.options.__file="assets/js/app/editor/Components/Password.vue";var Ne=Ae.exports,Le=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"user__theme"},[a("h3",[t._v("Themes:")]),t._v(" "),a("ul",{staticClass:"user__theme--themes"},t._l(t.themes,(function(e,s){return a("li",{key:s,staticClass:"theme",on:{click:function(a){return t.selectTheme(e.value)}}},[a("h5",{staticClass:"theme--name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"theme--palette"},t._l(e.colors,(function(t,e){return a("span",{key:e,style:"background-color: "+t})})),0)])})),0)])};Le._withStripped=!0;var Pe={name:"ThemeSelect",data:function(){return{themes:[{name:"Default",value:"default",colors:["#1a5597","#053b79","#0c223b","#ffffff"]},{name:"Light",value:"light",colors:["#1a5597","#053b79","#ffffff","#f9f9f9"]}]}},methods:{selectTheme:function(t){var e=document.querySelector("#theme"),a=e.getAttribute("href").split("theme-")[0],s="".concat(a,"theme-").concat(t,".css");e.setAttribute("href",s)}}},Me=Object(v.a)(Pe,Le,[],!1,null,null,null);Me.options.__file="assets/js/app/editor/Components/ThemeSelect.vue";var qe=Me.exports,ze=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group",attrs:{id:"multiselect-localeswitcher"}},[a("label",[t._v(t._s(t.label))]),t._v(" "),a("multiselect",{attrs:{"track-by":"name",label:"localizedname",options:t.locales,searchable:!1,"show-labels":!1,limit:1},on:{input:function(e){return t.switchLocale()}},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return[a("span",{staticClass:"fp mr-1",class:e.option.flag}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.name)+"\n "),a("small",{staticStyle:{"white-space":"nowrap"}},[t._v("("+t._s(e.option.code)+")")])])]}},{key:"option",fn:function(e){return[a("span",{staticClass:"fp mr-1",class:e.option.flag}),t._v(" "),a("span",[t._v("\n "+t._s(e.option.name)+"\n "),a("small",{staticStyle:{"white-space":"nowrap"}},[t._v("("+t._s(e.option.code)+")")])])]}}]),model:{value:t.locale,callback:function(e){t.locale=e},expression:"locale"}})],1)};ze._withStripped=!0;var Re={name:"EditorLanguage",components:{Multiselect:bt.a},props:{label:String,locales:Array,current:String},data:function(){return{locale:{}}},mounted:function(){var t=this;if(this.current){var e=this.locales.filter((function(e){return e.code===t.current}));e.length>0?this.locale=e[0]:this.locale=this.locales[0]}else this.locale=this.locales[0]},methods:{switchLocale:function(){var t=this.locale.link+location.hash;return window.location.href=t}}},Ue=Object(v.a)(Re,ze,[],!1,null,null,null);Ue.options.__file="assets/js/app/editor/Components/Language.vue";var Ve=Ue.exports,Je=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__file",on:{dragenter:t.onDragEnter,dragleave:t.onDragLeave,dragover:function(t){t.preventDefault()},drop:t.onDrop}},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"editor__file--dragging"},[a("i",{staticClass:"fas fa-upload"})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("div",{staticClass:"input-group mb-3"},[a("input",{attrs:{name:t.name+"[media]",type:"hidden"},domProps:{value:t.media}}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:t.name+"[filename]",type:"text",placeholder:t.labels.placeholder_filename,"data-readonly":"readonly",required:1==t.required,"data-errormessage":t.errormessage},domProps:{value:t.filenameData}})]),t._v(" "),a("div",{staticClass:"input-group mb-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.titleData,expression:"titleData"}],staticClass:"form-control",attrs:{name:t.name+"[title]",type:"text",required:1==t.required,readonly:t.readonly,pattern:t.pattern,placeholder:t.getPlaceholder},domProps:{value:t.titleData},on:{input:function(e){e.target.composing||(t.titleData=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-toolbar",attrs:{role:"toolbar"}},[a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectUploadFile}},[a("i",{staticClass:"fas fa-fw fa-upload"}),t._v(t._s(t.labels.button_upload)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-sm btn-tertiary dropdown-toggle dropdown-toggle-split",attrs:{"aria-expanded":"false","aria-haspopup":"true","data-toggle":"dropdown",name:"file-upload-dropdown",type:"button",disabled:t.readonly}}),t._v(" "),a("div",{staticClass:"dropdown-menu"},[a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",readonly:t.readonly},on:{click:t.selectServerFile}},[a("i",{staticClass:"fas fa-fw fa-th"}),t._v("\n "+t._s(t.labels.button_from_library)+"\n ")]),t._v(" "),t.filenameData?a("a",{staticClass:"dropdown-item",attrs:{href:t.attributesLink+"?file="+t.filenameData,target:"_blank"}},[a("i",{staticClass:"fas fa-fw fa-info-circle"}),t._v("\n "+t._s(t.labels.button_edit_attributes)+"\n ")]):t._e()])]),t._v(" "),a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[1==t.inFilelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isFirstInFilelist},on:{click:t.onMoveFileUp}},[a("i",{staticClass:"fas fa-fw fa-chevron-up"}),t._v("\n "+t._s(t.labels.button_move_up)+"\n ")]):t._e(),t._v(" "),1==t.inFilelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isLastInFilelist},on:{click:t.onMoveFileDown}},[a("i",{staticClass:"fas fa-fw fa-chevron-down"}),t._v("\n "+t._s(t.labels.button_move_down)+"\n ")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm btn-hidden-danger",attrs:{type:"button",disabled:t.readonly},on:{click:t.onRemoveFile}},[a("i",{staticClass:"fas fa-fw fa-trash"}),t._v(" "+t._s(t.labels.button_remove)+"\n ")])])]),t._v(" "),t.progress>0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__file--upload",attrs:{name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};Je._withStripped=!0;var He={name:"EditorFile",mixins:[xt],props:{name:String,filename:String,title:String,directory:String,media:String,csrfToken:String,labels:Object,filelist:String,extensions:Array,inFilelist:Boolean,isFirstInFilelist:Boolean,isLastInFilelist:Boolean,attributesLink:String,required:Number,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean},data:function(){return{isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,titleData:this.title}},computed:{fieldName:function(){return this.name+"[]"},token:function(){return this.csrfToken},acceptedExtensions:function(){return this.extensions.map((function(t){return"."+t})).join()},getPlaceholder:function(){return this.placeholder?this.placeholder:this.labels.placeholder_title}},methods:{onMoveFileDown:function(){this.$emit("moveFileDown",this)},onMoveFileUp:function(){this.$emit("moveFileUp",this)},onRemoveFile:function(){this.filenameData="",this.titleData="",this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this;i.a.get(this.filelist).then((function(a){be.a.prompt({title:"Select a file",inputType:"select",inputOptions:t.filterServerFiles(a.data),callback:function(t){t&&(e.filenameData=t)}}),window.$(".bootbox-input").attr("name","bootbox-input")})).catch((function(t){console.warn(t)}))},onDragEnter:function(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave:function(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;var e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile:function(t){var e=this,a=new FormData,s={onUploadProgress:function(t){var a=Math.round(100*t.loaded/t.total);e.progress=a},headers:{"Content-Type":"multipart/form-data"}};a.append("file",t),a.append("_csrf_token",this.token),i.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.progress=0})).catch((function(t){console.warn(t),e.progress=0}))},filterServerFiles:function(t){var e=this;return t.filter((function(t){var a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},Ze=Object(v.a)(He,Je,[],!1,null,null,null);Ze.options.__file="assets/js/app/editor/Components/File.vue";var Ye=Ze.exports,Qe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor-filelist"},[t._l(t.containerFiles,(function(e,s){return a("div",{key:e.id,staticClass:"form-fieldsgroup"},[a("editor-file",{attrs:{filename:e.filename,thumbnail:e.thumbnail,title:e.title,"attributes-link":t.attributesLink,media:e.media,directory:t.directory,filelist:t.filelist,"csrf-token":t.csrfToken,labels:t.labels,"in-filelist":!0,name:t.fieldName(s),extensions:t.extensions,"is-first-in-filelist":t.isFirstInFilelist(s),"is-last-in-filelist":t.isLastInFilelist(s)},on:{remove:t.onRemoveFile,moveFileUp:t.onMoveFileUp,moveFileDown:t.onMoveFileDown}})],1)})),t._v(" "),a("button",{staticClass:"btn btn-tertiary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addFile}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_new_file)+"\n ")])],2)};Qe._withStripped=!0;var We={name:"EditorFile",components:{"editor-file":Ye},props:{files:Array,directory:String,name:String,filelist:String,csrfToken:String,labels:Object,extensions:Array,attributesLink:String,limit:Number},data:function(){var t=0,e=this.files;return e.forEach((function(e,a,s){s[a].id=a,t++})),{counter:t,containerFiles:e}},computed:{allowMore:function(){return this.containerFiles.length0){var a=this.containerFiles[e],s=this.containerFiles[e-1];this.containerFiles.splice(e-1,2,a,s)}},onRemoveFile:function(t){var e=this.getFieldNumberFromElement(t);this.containerFiles.splice(e,1),0===this.containerFiles.length&&this.addFile()},fieldName:function(t){return this.name+"["+t+"]"},addFile:function(){var t={inFilelist:!0,directory:this.directory,name:this.name,filelist:this.filelist,csrfToken:this.csrfToken,labels:this.labels,thumbnail:"",extensions:this.extensions,id:this.counter};this.counter++,this.containerFiles.push(t)}}},Ge=Object(v.a)(We,Qe,[],!1,null,null,null);Ge.options.__file="assets/js/app/editor/Components/Filelist.vue";var Ke=Ge.exports,Xe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"collectionContainer",staticClass:"collection-container"},[t._l(t.elements,(function(t){return a("div",{key:t.id,staticClass:"collection-item"},[a(t,{tag:"div"})],1)})),t._v(" "),a("div",{staticClass:"d-flex"},[a("editor-select",{ref:"templateSelect",staticClass:"flex-grow-1 mr-2",attrs:{value:t.initialSelectValue,name:t.templateSelectName,options:t.templateSelectOptions,allowempty:!1}}),t._v(" "),a("button",{staticClass:"btn btn-secondary",attrs:{type:"button",disabled:!t.allowMore},on:{click:t.addCollectionItem}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v("\n "+t._s(t.labels.add_collection_item)+"\n ")])],1)],2)};Xe._withStripped=!0;var ta=a("Tntk"),ea={name:"EditorCollection",props:{templates:{type:Array,required:!0},existingFields:{type:Array},labels:{type:Object,required:!0},limit:{type:Number,required:!0}},data:function(){var t=[];this.existingFields.forEach((function(e){t.push(o.a.compile(e.html))}));var e=[];return this.templates.forEach((function(t){e.push({key:t.label,value:t.label})})),{elements:t,counter:t.length,templateSelectName:"templateSelect"+this.id,templateSelectOptions:e,selector:{collectionContainer:".collection-container",item:".collection-item",remove:".action-remove-collection-item",moveUp:".action-move-up-collection-item",moveDown:".action-move-down-collection-item"}}},computed:{initialSelectValue:function(){return this.templateSelectOptions[0].key},allowMore:function(){return this.counter