diff --git a/assets/bolt.js b/assets/bolt.js index 92f5835..30a3807 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],u=0,m=[];ue?t.substring(0,e-1)+"…":t}));var c=a("EVdn"),d=a.n(c);d()(document).ready((function(){d()(".toast").toast("show")}));var u=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(u.a);var p=new u.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"}},[t._m(0),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"])+" ")])]),t._v(" "),a("form",{staticClass:"toolbar-item toolbar-item__filter input-group",attrs:{action:t.backendPrefix}},[a("input",{staticClass:"form-control",attrs:{id:"global-search",type:"text",placeholder:t.labels["listing.placeholder_search"],name:"filter"},domProps:{value:t.filterValue}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary",attrs:{type:"submit",title:t.labels["listing.button_search"]}},[a("i",{staticClass:"fas fa-search",staticStyle:{margin:"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 ")])]),t._v(" "),a("hr"),t._v(" "),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-book fa-fw"}),t._v("\n "+t._s(t.labels["about.bolt_documentation"])+"\n ")])])])])])])};f._withStripped=!0;var g=a("Zss7"),h={name:"Toolbar",props:{siteName:String,menu:Array,labels:Object,backendPrefix:RegExp,filterValue:String},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("div",{staticClass:"toolbar-item btn-group toolbar-item__brand"},[e("img",{attrs:{src:"/assets/images/bolt_logo_dashboard.svg",alt:"⚙️ Bolt",height:"26"}})])}],!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 y={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(u.a);var w=new u.a.Store({modules:{general:y}}),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,labels:t.labels}}),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,labels:t.labels}})]:t._e()],2)])})),0)};S._withStripped=!0;var x=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--actions"},[a("a",{attrs:{href:t.item.link_new,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw fa-magic mr-2"}),a("span",[t._v(t._s(t.labels["action.new"]))])]),t._v(" "),a("a",{attrs:{href:t.item.link_listing,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw",class:t.item.icon}),t._v(" "),a("span",[t._v(t._s(t.labels["action.view"])+" "+t._s(t.item.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,"data-patience":"virtue"}},[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)};x._withStripped=!0;var k={name:"SubMenu",props:{item:Object,labels:Object}},j=Object(v.a)(k,x,[],!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,labels:Object},methods:{singleton:function(t){return t.submenu.length&&null!==t.submenu?t.submenu[0].editLink:t.link_new}}},E=Object(v.a)(D,S,[],!1,null,null,null);E.options.__file="assets/js/app/sidebar/Components/Menu/index.vue";var I=E.exports,F=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))])])};F._withStripped=!0;var $={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)}}},A=Object(v.a)($,F,[],!1,null,null,null);A.options.__file="assets/js/app/sidebar/Components/_SidebarToggler.vue";var B={name:"Sidebar",components:{"sidebar-menu":I,"sidebar-toggler":A.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)}},O=Object(v.a)(B,C,[],!1,null,null,null);O.options.__file="assets/js/app/sidebar/Components/Sidebar.vue";var T=O.exports;document.getElementById("sidebar")&&new o.a({store:w,el:"#sidebar",name:"BoltSidebar",components:{"admin-sidebar":T}});var L={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}}},P={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}}},N={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(u.a);var M=new u.a.Store({modules:{general:L,listing:P,selecting:N}}),z=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"listing-records"})};z._withStripped=!0;var q={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)(q,z,[],!1,null,null,null);R.options.__file="assets/js/app/listing/Components/Records.vue";var V=R.exports,U=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))])])])])])};U._withStripped=!0;var H={computed:{type:function(){return this.$store.getters["general/getType"]}}},Y={name:"ListingFilter",mixins:[H],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)(Y,U,[],!1,null,null,null);Z.options.__file="assets/js/app/listing/Components/Filter.vue";var J=Z.exports,G=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)};G._withStripped=!0;var W=a("t2rG"),Q=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}},[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("raw")(t._f("trim")(t.record.extras.title,62)))+"\n ")]),t._v(" "),t.record.extras.feature?a("span",{staticClass:"badge",class:"badge-"+t.record.extras.feature},[t._v(t._s(t.record.extras.feature))]):t._e(),t._v(" "),a("span",{staticClass:"listing__row--item-title-excerpt"},[t._v(t._s(t._f("raw")(t.record.extras.excerpt)))])]),t._v(" "),"normal"===t.size&&t.record.extras.image?a("div",{staticClass:"listing__row--item is-thumbnail"},[a("img",{staticStyle:{width:"108px"},attrs:{src:t.record.extras.image.thumbnail,loading:"lazy"}})]):t._e(),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,n=!!s.checked;if(Array.isArray(a)){var i=t._i(a,null);s.checked?i<0&&(t.selected=a.concat([null])):i>-1&&(t.selected=a.slice(0,i).concat(a.slice(i+1)))}else t.selected=n}}}),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?t.record.publishedAt:t.record.createdAt))+"\n ")]),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas fa-user"}),t._v(" "+t._s(t.record.authorName))]):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(" "+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 nt={name:"MetaData",props:{type:String,size:String,record:Object}},it=Object(v.a)(nt,st,[],!1,null,null,null);it.options.__file="assets/js/app/listing/Components/Table/Row/_Meta.vue";var rt=it.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,"data-patience":"virtue"}},[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.slug}},[t._v(t._s(t._f("trim")(t.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},computed:{slug:function(){return null===this.record.fieldValues.slug?"":"string"==typeof this.record.fieldValues.slug?this.record.fieldValues.slug:this.record.fieldValues.slug[Object.keys(this.record.fieldValues.slug)[0]]}},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 dt={name:"TableRow",components:{"row-checkbox":at,"row-meta":rt,"row-actions":ct.exports},mixins:[H],props:{record:Object,labels:Object},computed:{slug:function(){return null===this.record.fieldValues.slug?"":"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(){d()('.dropdown-toggle[aria-expanded="true"]').dropdown("toggle")}}},ut=Object(v.a)(dt,K,[],!1,null,null,null);ut.options.__file="assets/js/app/listing/Components/Table/Row/index.vue";var mt=ut.exports,pt={name:"ListingTable",components:{draggable:Q.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,G,[],!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,1963688328),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,backendPrefix:RegExp},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?this.backendPrefix+"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"]}}},yt=Object(v.a)(_t,ht,[],!1,null,null,null);yt.options.__file="assets/js/app/listing/Components/SelectBox.vue";var wt=yt.exports;document.getElementById("listing")&&new o.a({store:M,el:"#listing",name:"BoltListing",components:{"listing-records":V,"listing-filter":J,"listing-table":gt,"listing-select-box":wt}});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(u.a);var St=new u.a.Store({modules:{general:Ct}}),xt=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.rawVal,expression:"rawVal"}],staticClass:"form-control",class:t.getType,attrs:{id:t.id,name:t.name,type:"text",disabled:t.disabled,required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder,autofocus:1==t.autofocus},domProps:{value:t.rawVal},on:{input:function(e){e.target.composing||(t.rawVal=e.target.value)}}})])};xt._withStripped=!0;var kt={mounted:function(){this.val=this.value;var t=document.createElement("textarea");t.innerHTML=this.value,this.rawVal=t.value},data:function(){return{val:null,rawVal:null}}},jt={name:"EditorText",mixins:[kt],props:{value:String,name:String,type:String,disabled:Boolean,id:String,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean,autofocus:Boolean},data:function(){return{generate:!1}},computed:{getType:function(){return"large"===this.type?"form-control-lg":this.type}},watch:{rawVal: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,xt,[],!1,null,null,null);Dt.options.__file="assets/js/app/editor/Components/Text.vue";var Et=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: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 Ft={name:"EditorSlug",mixins:[kt],props:{value:String,name:String,prefix:String,fieldClass:String,generate:String,labels:Object,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,localize:Boolean,isNew: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})),t.shouldGenerateFromTitle(e)&&(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:{shouldGenerateFromTitle:function(t){return!!this.isNew||t.length<=0&&this.localize},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"}}},$t=Object(v.a)(Ft,It,[],!1,null,null,null);$t.options.__file="assets/js/app/editor/Components/Slug.vue";var At=$t.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: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 Ot=a("w48C"),Tt={name:"EditorDate",components:{flatPickr:a.n(Ot).a},mixins:[kt],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:Boolean,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")}},Lt=Object(v.a)(Tt,Bt,[],!1,null,null,null);Lt.options.__file="assets/js/app/editor/Components/Date.vue";var Pt=Lt.exports,Nt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"multiselect-bolt-wrapper",class:t.classname,attrs:{id:"multiselect-"+t.id}},[a("multiselect",{ref:"vselect",attrs:{"allow-empty":t.allowempty,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(t._f("raw")(e.option.value))+"\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(t._f("raw")(e.option.value))+"\n ")]:void 0}},{key:"tag",fn:function(e){return"status"!==t.name?[a("span",{class:{empty:""==e.option.value},on:{drop:function(e){return t.drop(e)},dragover:function(e){return t.allowDrop(e)}}},[a("span",{key:e.option.value,staticClass:"multiselect__tag",attrs:{id:e.option.key,draggable:!t.taggable},on:{dragstart:function(e){return t.drag(e)},dragover:function(e){return t.dragOver(e)},dragleave:function(e){return t.dragLeave(e)},dragend:function(e){return t.dragEnd(e)}}},[t.taggable?t._e():a("div",{staticClass:"multiselect__tag__drag"},[a("i",{staticClass:"fas fa-arrows-alt"})]),t._v(" "),a("span",{domProps:{innerHTML:t._s(e.option.value)}}),t._v(" "),a("i",{staticClass:"multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:(a.preventDefault(),t.removeElement(e.option))},mousedown:function(a){return a.preventDefault(),t.removeElement(e.option)}}})])])]: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)};Nt._withStripped=!0;var Mt={name:"EditorSelect",components:{Multiselect:bt.a},props:{value:Array|String,name:String,id:String,form:String,options:Array,multiple:Boolean,allowempty:Boolean,taggable:Boolean,readonly:Boolean,classname:String,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.map?this.value:[this.value],e=this.options,a=t.map((function(t){var a=e.filter((function(e){return e.key===t}));if(a)return a[0]}));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)},removeElement:function(t){this.$refs.vselect.removeElement(t)},drop:function(t){t.preventDefault();var e=t.dataTransfer.getData("text"),a=this.findDropElement(t.target).id,s=this.selected.find((function(t){return""+t.key==""+e})),n=this.selected.find((function(t){return""+t.key==""+a})),i=this.selected.indexOf(s),r=this.selected.indexOf(n),o=i0?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"},[null!==t.thumbnailImage&&""!==t.thumbnailImage?a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.thumbnailImage+"')",attrs:{href:t.previewImage}}):t._e()])])]),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:[kt],props:{filename:String,name:String,required:Boolean,readonly:Boolean,thumbnail:String,alt:String,includeAlt:Boolean,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,thumbnailImage:null,isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,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.resetImage()},updated:function(){this.resetImage(),de.a.run(".editor__image--preview",{afterShow:function(){he.a.on()},afterHide:function(){he.a.off()}})},methods:{resetImage:function(){if(!this.filenameData)return this.previewImage=null,void(this.thumbnailImage=null);this.previewImage="/thumbs/1000×1000/"+this.filenameData,this.thumbnailImage="/thumbs/400×300/"+this.filenameData},onMoveImageDown:function(){this.$emit("moveImageDown",this)},onMoveImageUp:function(){this.$emit("moveImageUp",this)},onRemoveImage:function(){this.filenameData=null,this.resetImage(),this.includeAlt&&(this.altData=""),this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this;n.a.get(this.filelist).then((function(a){be.a.prompt({title:"Select a file",inputType:"select",name:"image-selector",inputOptions:t.filterServerFiles(a.data),callback:function(t){t&&(e.filenameData=t,e.thumbnailData="/thumbs/400×300/".concat(t),e.previewData="/thumbs/1000×1000/".concat(t))}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((function(t){be.a.alert(t.response.data+"
Image did not upload."),console.warn(t),window.reEnablePatientButtons()}))},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("image",t),a.append("_csrf_token",this.token),n.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.thumbnailData="/thumbs/400×300/".concat(t.data),e.previewData="/thumbs/1000×1000/".concat(t.data),e.progress=0})).catch((function(t){be.a.alert(t.response.data.error.message),console.warn(t.response.data.error.message),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)}))}}},ye=Object(v.a)(_e,fe,[function(){var t=this.$createElement,e=this._self._c||t;return e("small",{staticClass:"dim"},[e("i",{staticClass:"fas fa-external-link-square-alt"})])}],!1,null,null,null);ye.options.__file="assets/js/app/editor/Components/Image.vue";var we=ye.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,"include-alt":!0,"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),readonly:t.readonly},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)};function Se(t){return function(t){if(Array.isArray(t))return xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return xe(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a0){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,alt:""};this.counter++,this.containerImages.push(t)}}},je=Object(v.a)(ke,Ce,[],!1,null,null,null);je.options.__file="assets/js/app/editor/Components/Imagelist.vue";var De=je.exports,Ee=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:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.value}})])};Ee._withStripped=!0;var Ie={name:"EditorEmail",props:{value:{type:String},name:{type:String},id:{type:String},required:{type:Boolean},readonly:{type:Boolean},errormessage:{type:String|Boolean},pattern:{type:String|Boolean},placeholder:String|Boolean}},Fe=Object(v.a)(Ie,Ee,[],!1,null,null,null);Fe.options.__file="assets/js/app/editor/Components/Email.vue";var $e=Fe.exports,Ae=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: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)};Ae._withStripped=!0;var Be=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}})])};Be._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}}}},Te=Object(v.a)(Oe,Be,[],!1,null,null,null);Te.options.__file="assets/js/app/editor/Components/ProgressBar.vue";var Le={name:"EditorPassword",components:{ProgressBar:Te.exports},props:{value:String,name:String,id:String,hidden:Boolean,strength:Boolean,required:Boolean,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}}}},Pe=Object(v.a)(Le,Ae,[],!1,null,null,null);Pe.options.__file="assets/js/app/editor/Components/Password.vue";var Ne=Pe.exports,Me=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)])};Me._withStripped=!0;var ze={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)}}},qe=Object(v.a)(ze,Me,[],!1,null,null,null);qe.options.__file="assets/js/app/editor/Components/ThemeSelect.vue";var Re=qe.exports,Ve=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)};Ve._withStripped=!0;var Ue={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}}},He=Object(v.a)(Ue,Ve,[],!1,null,null,null);He.options.__file="assets/js/app/editor/Components/Language.vue";var Ye=He.exports,Ze=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: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: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,"data-patience":"virtue"},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._m(0)]):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||t.readonly},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||t.readonly},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)};Ze._withStripped=!0;var Je={name:"EditorFile",mixins:[kt],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:Boolean,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;n.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"),window.reEnablePatientButtons()})).catch((function(t){console.warn(t),window.reEnablePatientButtons()}))},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),n.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.progress=0})).catch((function(t){var a=t.response.data,s="unknown error";"string"==typeof a||a instanceof String?s=a:a.error&&a.error.message&&(s=a.error.message),be.a.alert(s+"
File did not upload."),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)}))}}},Ge=Object(v.a)(Je,Ze,[function(){var t=this.$createElement,e=this._self._c||t;return e("small",{staticClass:"dim"},[e("i",{staticClass:"fas fa-external-link-square-alt"})])}],!1,null,null,null);Ge.options.__file="assets/js/app/editor/Components/File.vue";var We=Ge.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),readonly:t.readonly},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)};function Ke(t){return function(t){if(Array.isArray(t))return Xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xe(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a0){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)}}},ea=Object(v.a)(ta,Qe,[],!1,null,null,null);ea.options.__file="assets/js/app/editor/Components/Filelist.vue";var aa=ea.exports,sa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"collectionContainer",staticClass:"collection-container",attrs:{id:t.name}},[a("div",{staticClass:"expand-buttons"},[a("label",[t._v(t._s(t.labels.field_label)+":")]),t._v(" "),a("div",{staticClass:"btn-group",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-secondary btn-sm collection-expand-all"},[a("i",{staticClass:"fas fa-fw fa-expand-alt"}),t._v("\n "+t._s(t.labels.expand_all)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-secondary btn-sm collection-collapse-all"},[a("i",{staticClass:"fas fa-fw fa-compress-alt"}),t._v("\n "+t._s(t.labels.collapse_all)+"\n ")])])]),t._v(" "),t._l(t.elements,(function(e){return a("div",{key:e.hash,staticClass:"collection-item"},[a("details",{staticClass:"card",attrs:{open:"expanded"===t.variant}},[a("summary",{staticClass:"d-block"},[a("div",{staticClass:"card-header d-flex align-items-center"},[a("i",{staticClass:"card-marker-caret fa fa-caret-right"}),t._v(" "),a("div",{staticClass:"collection-item-title",attrs:{"data-label":e.label}},[a("i",{class:[e.icon,"fas fa-fw"]}),t._v("\n "+t._s(e.label)+"\n ")]),t._v(" "),a(t.compile(e.buttons),{tag:"div"})],1)]),t._v(" "),a(t.compile(e.content),{tag:"div",staticClass:"card-body"})],1)])})),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[t.templates.length>1?a("p",{staticClass:"mt-4 mb-1"},[t._v(t._s(t.labels.add_collection_item)+":")]):t._e(),t._v(" "),t.templates.length>1?a("div",{staticClass:"dropdown"},[a("button",{staticClass:"btn btn-secondary dropdown-toggle",attrs:{id:t.name+"-dropdownMenuButton",disabled:!t.allowMore,type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v(" "+t._s(t.labels.select)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-menu",attrs:{"aria-labelledby":t.name+"-dropdownMenuButton"}},t._l(t.templates,(function(e){return a("a",{key:e.label,staticClass:"dropdown-item",attrs:{"data-template":e.label},on:{click:function(e){return t.addCollectionItem(e)}}},[a("i",{class:[e.icon,"fas fa-fw"]}),t._v("\n "+t._s(e.label)+"\n ")])})),0)]):a("button",{staticClass:"btn btn-secondary btn-small",attrs:{type:"button","data-template":t.templates[0].label},on:{click:function(e){return t.addCollectionItem(e)}}},[a("i",{class:[t.templates[0].icon,"fas fa-fw"]}),t._v("\n "+t._s(t.labels.add_collection_item)+"\n ")])])])],2)};sa._withStripped=!0;var na=a("Tntk"),ia={name:"EditorCollection",props:{name:{type:String,required:!0},templates:{type:Array,required:!0},existingFields:{type:Array},labels:{type:Object,required:!0},limit:{type:Number,required:!0},variant:{type:String,required:!0}},data:function(){return{elements:this.existingFields,counter:this.existingFields.length,templateSelectName:"templateSelect"+this.id,templateSelectOptions:[],selector:{collectionContainer:"#"+this.name,item:" .collection-item",remove:" .action-remove-collection-item",moveUp:" .action-move-up-collection-item",moveDown:" .action-move-down-collection-item",expandAll:" .collection-expand-all",collapseAll:" .collection-collapse-all",editor:" #editor"}}},computed:{initialSelectValue:function(){return this.templateSelectOptions[0].key},allowMore:function(){return this.countere?t.substring(0,e-1)+"…":t}));var c=a("EVdn"),d=a.n(c);d()(document).ready((function(){d()(".toast").toast("show")}));var u=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(u.a);var p=new u.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"}},[t._m(0),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"])+" ")])]),t._v(" "),a("form",{staticClass:"toolbar-item toolbar-item__filter input-group",attrs:{action:t.backendPrefix}},[a("input",{staticClass:"form-control",attrs:{id:"global-search",type:"text",placeholder:t.labels["listing.placeholder_search"],name:"filter"},domProps:{value:t.filterValue}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary",attrs:{type:"submit",title:t.labels["listing.button_search"]}},[a("i",{staticClass:"fas fa-search",staticStyle:{margin:"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 ")])]),t._v(" "),a("hr"),t._v(" "),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-book fa-fw"}),t._v("\n "+t._s(t.labels["about.bolt_documentation"])+"\n ")])])])])])])};f._withStripped=!0;var g=a("Zss7"),h={name:"Toolbar",props:{siteName:String,menu:Array,labels:Object,backendPrefix:RegExp,filterValue:String},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("div",{staticClass:"toolbar-item btn-group toolbar-item__brand"},[e("img",{attrs:{src:"/assets/images/bolt_logo_dashboard.svg",alt:"⚙️ Bolt",height:"26"}})])}],!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 y={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(u.a);var w=new u.a.Store({modules:{general:y}}),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,labels:t.labels}}),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,labels:t.labels}})]:t._e()],2)])})),0)};S._withStripped=!0;var x=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--actions"},[a("a",{attrs:{href:t.item.link_new,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw fa-magic mr-2"}),a("span",[t._v(t._s(t.labels["action.new"]))])]),t._v(" "),a("a",{attrs:{href:t.item.link_listing,"data-patience":"virtue"}},[a("i",{staticClass:"fas fa-fw",class:t.item.icon}),t._v(" "),a("span",[t._v(t._s(t.labels["action.view"])+" "+t._s(t.item.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,"data-patience":"virtue"}},[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)};x._withStripped=!0;var k={name:"SubMenu",props:{item:Object,labels:Object}},j=Object(v.a)(k,x,[],!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,labels:Object},methods:{singleton:function(t){return t.submenu.length&&null!==t.submenu?t.submenu[0].editLink:t.link_new}}},E=Object(v.a)(D,S,[],!1,null,null,null);E.options.__file="assets/js/app/sidebar/Components/Menu/index.vue";var I=E.exports,F=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))])])};F._withStripped=!0;var $={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)}}},A=Object(v.a)($,F,[],!1,null,null,null);A.options.__file="assets/js/app/sidebar/Components/_SidebarToggler.vue";var B={name:"Sidebar",components:{"sidebar-menu":I,"sidebar-toggler":A.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)}},O=Object(v.a)(B,C,[],!1,null,null,null);O.options.__file="assets/js/app/sidebar/Components/Sidebar.vue";var T=O.exports;document.getElementById("sidebar")&&new o.a({store:w,el:"#sidebar",name:"BoltSidebar",components:{"admin-sidebar":T}});var L={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}}},P={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}}},N={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(u.a);var M=new u.a.Store({modules:{general:L,listing:P,selecting:N}}),z=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"listing-records"})};z._withStripped=!0;var q={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)(q,z,[],!1,null,null,null);R.options.__file="assets/js/app/listing/Components/Records.vue";var V=R.exports,U=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))])])])])])};U._withStripped=!0;var H={computed:{type:function(){return this.$store.getters["general/getType"]}}},Y={name:"ListingFilter",mixins:[H],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)(Y,U,[],!1,null,null,null);Z.options.__file="assets/js/app/listing/Components/Filter.vue";var J=Z.exports,G=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)};G._withStripped=!0;var W=a("t2rG"),Q=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}},[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("raw")(t._f("trim")(t.record.extras.title,62)))+"\n ")]),t._v(" "),t.record.extras.feature?a("span",{staticClass:"badge",class:"badge-"+t.record.extras.feature},[t._v(t._s(t.record.extras.feature))]):t._e(),t._v(" "),a("span",{staticClass:"listing__row--item-title-excerpt"},[t._v(t._s(t._f("raw")(t.record.extras.excerpt)))])]),t._v(" "),"normal"===t.size&&t.record.extras.image?a("div",{staticClass:"listing__row--item is-thumbnail"},[a("img",{staticStyle:{width:"108px"},attrs:{src:t.record.extras.image.thumbnail,loading:"lazy"}})]):t._e(),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,n=!!s.checked;if(Array.isArray(a)){var i=t._i(a,null);s.checked?i<0&&(t.selected=a.concat([null])):i>-1&&(t.selected=a.slice(0,i).concat(a.slice(i+1)))}else t.selected=n}}}),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?t.record.publishedAt:t.record.createdAt))+"\n ")]),t._v(" "),"normal"===t.size?a("li",[a("i",{staticClass:"fas fa-user"}),t._v(" "+t._s(t.record.authorName))]):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(" "+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 nt={name:"MetaData",props:{type:String,size:String,record:Object}},it=Object(v.a)(nt,st,[],!1,null,null,null);it.options.__file="assets/js/app/listing/Components/Table/Row/_Meta.vue";var rt=it.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,"data-patience":"virtue"}},[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.slug}},[t._v(t._s(t._f("trim")(t.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},computed:{slug:function(){return null===this.record.fieldValues.slug?"":"string"==typeof this.record.fieldValues.slug?this.record.fieldValues.slug:this.record.fieldValues.slug[Object.keys(this.record.fieldValues.slug)[0]]}},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 dt={name:"TableRow",components:{"row-checkbox":at,"row-meta":rt,"row-actions":ct.exports},mixins:[H],props:{record:Object,labels:Object},computed:{slug:function(){return null===this.record.fieldValues.slug?"":"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(){d()('.dropdown-toggle[aria-expanded="true"]').dropdown("toggle")}}},ut=Object(v.a)(dt,K,[],!1,null,null,null);ut.options.__file="assets/js/app/listing/Components/Table/Row/index.vue";var mt=ut.exports,pt={name:"ListingTable",components:{draggable:Q.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,G,[],!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,1963688328),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,backendPrefix:RegExp},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?this.backendPrefix+"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"]}}},yt=Object(v.a)(_t,ht,[],!1,null,null,null);yt.options.__file="assets/js/app/listing/Components/SelectBox.vue";var wt=yt.exports;document.getElementById("listing")&&new o.a({store:M,el:"#listing",name:"BoltListing",components:{"listing-records":V,"listing-filter":J,"listing-table":gt,"listing-select-box":wt}});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(u.a);var St=new u.a.Store({modules:{general:Ct}}),xt=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.rawVal,expression:"rawVal"}],staticClass:"form-control",class:t.getType,attrs:{id:t.id,name:t.name,type:"text",disabled:t.disabled,required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder,autofocus:1==t.autofocus},domProps:{value:t.rawVal},on:{input:function(e){e.target.composing||(t.rawVal=e.target.value)}}})])};xt._withStripped=!0;var kt={mounted:function(){this.val=this.value;var t=document.createElement("textarea");t.innerHTML=this.value,this.rawVal=t.value},data:function(){return{val:null,rawVal:null}}},jt={name:"EditorText",mixins:[kt],props:{value:String,name:String,type:String,disabled:Boolean,id:String,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,placeholder:String|Boolean,autofocus:Boolean},data:function(){return{generate:!1}},computed:{getType:function(){return"large"===this.type?"form-control-lg":this.type}},watch:{rawVal: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,xt,[],!1,null,null,null);Dt.options.__file="assets/js/app/editor/Components/Text.vue";var Et=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: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 Ft={name:"EditorSlug",mixins:[kt],props:{value:String,name:String,prefix:String,fieldClass:String,generate:String,labels:Object,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean,localize:Boolean,isNew: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})),t.shouldGenerateFromTitle(e)&&(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:{shouldGenerateFromTitle:function(t){return!!this.isNew||t.length<=0&&this.localize},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"}}},$t=Object(v.a)(Ft,It,[],!1,null,null,null);$t.options.__file="assets/js/app/editor/Components/Slug.vue";var At=$t.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: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 Ot=a("w48C"),Tt={name:"EditorDate",components:{flatPickr:a.n(Ot).a},mixins:[kt],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:Boolean,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")}},Lt=Object(v.a)(Tt,Bt,[],!1,null,null,null);Lt.options.__file="assets/js/app/editor/Components/Date.vue";var Pt=Lt.exports,Nt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"multiselect-bolt-wrapper",class:t.classname,attrs:{id:"multiselect-"+t.id}},[a("multiselect",{ref:"vselect",attrs:{"allow-empty":t.allowempty,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(t._f("raw")(e.option.value))+"\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(t._f("raw")(e.option.value))+"\n ")]:void 0}},{key:"tag",fn:function(e){return"status"!==t.name?[a("span",{class:{empty:""==e.option.value},on:{drop:function(e){return t.drop(e)},dragover:function(e){return t.allowDrop(e)}}},[a("span",{key:e.option.value,staticClass:"multiselect__tag",attrs:{id:e.option.key,draggable:!t.taggable},on:{dragstart:function(e){return t.drag(e)},dragover:function(e){return t.dragOver(e)},dragleave:function(e){return t.dragLeave(e)},dragend:function(e){return t.dragEnd(e)}}},[t.taggable?t._e():a("div",{staticClass:"multiselect__tag__drag"},[a("i",{staticClass:"fas fa-arrows-alt"})]),t._v(" "),a("span",{domProps:{innerHTML:t._s(e.option.value)}}),t._v(" "),a("i",{staticClass:"multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:(a.preventDefault(),t.removeElement(e.option))},mousedown:function(a){return a.preventDefault(),t.removeElement(e.option)}}})])])]: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)};Nt._withStripped=!0;var Mt={name:"EditorSelect",components:{Multiselect:bt.a},props:{value:Array|String,name:String,id:String,form:String,options:Array,multiple:Boolean,allowempty:Boolean,taggable:Boolean,readonly:Boolean,classname:String,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.map?this.value:[this.value],e=this.options,a=t.map((function(t){var a=e.filter((function(e){return e.key===t}));if(a)return a[0]}));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)},removeElement:function(t){this.$refs.vselect.removeElement(t)},drop:function(t){t.preventDefault();var e=t.dataTransfer.getData("text"),a=this.findDropElement(t.target).id,s=this.selected.find((function(t){return""+t.key==""+e})),n=this.selected.find((function(t){return""+t.key==""+a})),i=this.selected.indexOf(s),r=this.selected.indexOf(n),o=i0?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"},[null!==t.thumbnailImage&&""!==t.thumbnailImage?a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.thumbnailImage+"')",attrs:{href:t.previewImage}}):t._e()])])]),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:[kt],props:{filename:String,name:String,required:Boolean,readonly:Boolean,thumbnail:String,alt:String,includeAlt:Boolean,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,thumbnailImage:null,isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,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.resetImage()},updated:function(){this.resetImage(),de.a.run(".editor__image--preview",{afterShow:function(){he.a.on()},afterHide:function(){he.a.off()}})},methods:{resetImage:function(){if(!this.filenameData)return this.previewImage=null,void(this.thumbnailImage=null);this.previewImage="/thumbs/1000×1000/"+this.filenameData,this.thumbnailImage="/thumbs/400×300/"+this.filenameData},onMoveImageDown:function(){this.$emit("moveImageDown",this)},onMoveImageUp:function(){this.$emit("moveImageUp",this)},onRemoveImage:function(){this.filenameData=null,this.resetImage(),this.includeAlt&&(this.altData=""),this.$emit("remove",this)},selectUploadFile:function(){this.$refs.selectFile.click()},selectServerFile:function(){var t=this,e=this;n.a.get(this.filelist).then((function(a){be.a.prompt({title:"Select a file",inputType:"select",name:"image-selector",inputOptions:t.filterServerFiles(a.data),callback:function(t){t&&(e.filenameData=t,e.thumbnailData="/thumbs/400×300/".concat(t),e.previewData="/thumbs/1000×1000/".concat(t))}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((function(t){be.a.alert(t.response.data+"
Image did not upload."),console.warn(t),window.reEnablePatientButtons()}))},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("image",t),a.append("_csrf_token",this.token),n.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.thumbnailData="/thumbs/400×300/".concat(t.data),e.previewData="/thumbs/1000×1000/".concat(t.data),e.progress=0})).catch((function(t){be.a.alert(t.response.data.error.message),console.warn(t.response.data.error.message),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)}))}}},ye=Object(v.a)(_e,fe,[function(){var t=this.$createElement,e=this._self._c||t;return e("small",{staticClass:"dim"},[e("i",{staticClass:"fas fa-external-link-square-alt"})])}],!1,null,null,null);ye.options.__file="assets/js/app/editor/Components/Image.vue";var we=ye.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,"include-alt":!0,"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),readonly:t.readonly},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)};function Se(t){return function(t){if(Array.isArray(t))return xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return xe(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a0){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,alt:""};this.counter++,this.containerImages.push(t)}}},je=Object(v.a)(ke,Ce,[],!1,null,null,null);je.options.__file="assets/js/app/editor/Components/Imagelist.vue";var De=je.exports,Ee=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:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern,placeholder:t.placeholder},domProps:{value:t.value}})])};Ee._withStripped=!0;var Ie={name:"EditorEmail",props:{value:{type:String},name:{type:String},id:{type:String},required:{type:Boolean},readonly:{type:Boolean},errormessage:{type:String|Boolean},pattern:{type:String|Boolean},placeholder:String|Boolean}},Fe=Object(v.a)(Ie,Ee,[],!1,null,null,null);Fe.options.__file="assets/js/app/editor/Components/Email.vue";var $e=Fe.exports,Ae=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: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)};Ae._withStripped=!0;var Be=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}})])};Be._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}}}},Te=Object(v.a)(Oe,Be,[],!1,null,null,null);Te.options.__file="assets/js/app/editor/Components/ProgressBar.vue";var Le={name:"EditorPassword",components:{ProgressBar:Te.exports},props:{value:String,name:String,id:String,hidden:Boolean,strength:Boolean,required:Boolean,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}}}},Pe=Object(v.a)(Le,Ae,[],!1,null,null,null);Pe.options.__file="assets/js/app/editor/Components/Password.vue";var Ne=Pe.exports,Me=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)])};Me._withStripped=!0;var ze={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)}}},qe=Object(v.a)(ze,Me,[],!1,null,null,null);qe.options.__file="assets/js/app/editor/Components/ThemeSelect.vue";var Re=qe.exports,Ve=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)};Ve._withStripped=!0;var Ue={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}}},He=Object(v.a)(Ue,Ve,[],!1,null,null,null);He.options.__file="assets/js/app/editor/Components/Language.vue";var Ye=He.exports,Ze=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: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: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,"data-patience":"virtue"},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._m(0)]):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||t.readonly},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||t.readonly},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)};Ze._withStripped=!0;var Je={name:"EditorFile",mixins:[kt],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:Boolean,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;n.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"),window.reEnablePatientButtons()})).catch((function(t){console.warn(t),window.reEnablePatientButtons()}))},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),n.a.post(this.directory,a,s).then((function(t){e.filenameData=t.data,e.progress=0})).catch((function(t){var a=t.response.data,s="unknown error";"string"==typeof a||a instanceof String?s=a:a.error&&a.error.message&&(s=a.error.message),be.a.alert(s+"
File did not upload."),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)}))}}},Ge=Object(v.a)(Je,Ze,[function(){var t=this.$createElement,e=this._self._c||t;return e("small",{staticClass:"dim"},[e("i",{staticClass:"fas fa-external-link-square-alt"})])}],!1,null,null,null);Ge.options.__file="assets/js/app/editor/Components/File.vue";var We=Ge.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),readonly:t.readonly},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)};function Ke(t){return function(t){if(Array.isArray(t))return Xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xe(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a0){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)}}},ea=Object(v.a)(ta,Qe,[],!1,null,null,null);ea.options.__file="assets/js/app/editor/Components/Filelist.vue";var aa=ea.exports,sa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"collectionContainer",staticClass:"collection-container",attrs:{id:t.name}},[a("div",{staticClass:"expand-buttons"},[a("label",[t._v(t._s(t.labels.field_label)+":")]),t._v(" "),a("div",{staticClass:"btn-group",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-secondary btn-sm collection-expand-all"},[a("i",{staticClass:"fas fa-fw fa-expand-alt"}),t._v("\n "+t._s(t.labels.expand_all)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-secondary btn-sm collection-collapse-all"},[a("i",{staticClass:"fas fa-fw fa-compress-alt"}),t._v("\n "+t._s(t.labels.collapse_all)+"\n ")])])]),t._v(" "),t._l(t.elements,(function(e){return a("div",{key:e.hash,staticClass:"collection-item"},[a("details",{staticClass:"card",attrs:{open:"expanded"===t.variant}},[a("summary",{staticClass:"d-block"},[a("div",{staticClass:"card-header d-flex align-items-center"},[a("i",{staticClass:"card-marker-caret fa fa-caret-right"}),t._v(" "),a("div",{staticClass:"collection-item-title",attrs:{"data-label":e.label}},[a("i",{class:[e.icon,"fas fa-fw"]}),t._v("\n "+t._s(e.label)+"\n ")]),t._v(" "),a(t.compile(e.buttons),{tag:"div"})],1)]),t._v(" "),a(t.compile(e.content),{tag:"div",staticClass:"card-body"})],1)])})),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[t.templates.length>1?a("p",{staticClass:"mt-4 mb-1"},[t._v(t._s(t.labels.add_collection_item)+":")]):t._e(),t._v(" "),t.templates.length>1?a("div",{staticClass:"dropdown"},[a("button",{staticClass:"btn btn-secondary dropdown-toggle",attrs:{id:t.name+"-dropdownMenuButton",disabled:!t.allowMore,type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-fw fa-plus"}),t._v(" "+t._s(t.labels.select)+"\n ")]),t._v(" "),a("div",{staticClass:"dropdown-menu",attrs:{"aria-labelledby":t.name+"-dropdownMenuButton"}},t._l(t.templates,(function(e){return a("a",{key:e.label,staticClass:"dropdown-item",attrs:{"data-template":e.label},on:{click:function(e){return t.addCollectionItem(e)}}},[a("i",{class:[e.icon,"fas fa-fw"]}),t._v("\n "+t._s(e.label)+"\n ")])})),0)]):a("button",{staticClass:"btn btn-secondary btn-small",attrs:{type:"button","data-template":t.templates[0].label},on:{click:function(e){return t.addCollectionItem(e)}}},[a("i",{class:[t.templates[0].icon,"fas fa-fw"]}),t._v("\n "+t._s(t.labels.add_collection_item)+"\n ")])])])],2)};sa._withStripped=!0;var na=a("Tntk"),ia={name:"EditorCollection",props:{name:{type:String,required:!0},templates:{type:Array,required:!0},existingFields:{type:Array},labels:{type:Object,required:!0},limit:{type:Number,required:!0},variant:{type:String,required:!0}},data:function(){return{elements:this.existingFields,counter:this.existingFields.length,templateSelectName:"templateSelect"+this.id,templateSelectOptions:[],selector:{collectionContainer:"#"+this.name,item:" .collection-item",remove:" .action-remove-collection-item",moveUp:" .action-move-up-collection-item",moveDown:" .action-move-down-collection-item",expandAll:" .collection-expand-all",collapseAll:" .collection-collapse-all",editor:" #editor"}}},computed:{initialSelectValue:function(){return this.templateSelectOptions[0].key},allowMore:function(){return this.counter (https://boltcms.io)", "license": "MIT",