diff --git a/assets/bolt.js b/assets/bolt.js index bde2ad1..1608b30 100644 --- a/assets/bolt.js +++ b/assets/bolt.js @@ -1 +1 @@ -!function(){var t,e={86869:function(t,e,a){"use strict";a(26981),a(32025),a(43734);var s=a(9669),i=a.n(s),l=(a(25703),a(19755)),n=a.n(l);a(19755);n(),window.$=n();var r=a(4631),o=a.n(r);a(96876),a(53631),a(16531),a(36702),a(54702),a(36629);window.CodeMirror=o();var c=a(70538),d=a(99490);c.Z.filter("date",(t=>{if(t)return d.ou.fromISO(String(t)).toLocaleString()})),c.Z.filter("datetime",(t=>{if(t)return d.ou.fromISO(String(t)).toLocaleString(d.ou.DATETIME_MED)})),c.Z.filter("slugify",(t=>{if(t){t=String(t);let s={delimiter:"-",lowercase:!0,transliterate:"undefined"==typeof XRegExp},i={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ă":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ő":"O","Ø":"O","Ș":"S","Ț":"T","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ă":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ő":"o","ø":"o","ș":"s","ț":"t","ù":"u","ú":"u","û":"u","ü":"u","ű":"u","ý":"y","þ":"th","ÿ":"y","©":"(c)","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"H","Ώ":"W","Ϊ":"I","Ϋ":"Y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"h","ώ":"w","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Ş":"S","İ":"I","Ğ":"G","ş":"s","ı":"i","ğ":"g","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","Ľ":"L","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","ľ":"l","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ā":"A","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"u","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u"};if(s.transliterate)for(var e in i)t=t.replace(RegExp(e,"g"),i[e]);var a=RegExp("[^a-z0-9]+","ig");return t=(t=(t=t.replace(a,s.delimiter)).replace(RegExp("["+s.delimiter+"]{2,}","g"),s.delimiter)).replace(RegExp("(^"+s.delimiter+"|"+s.delimiter+"$)","g"),""),(t=s.lowercase?t.toLowerCase():t).replace(/[^\w-]+/g,"")}})),c.Z.filter("strip",(t=>{if(t)return t.replace(/(^")|("$)/g,"")})),c.Z.filter("raw",(t=>{if(t){let e=document.createElement("textarea");return e.innerHTML=t,e.value}})),c.Z.filter("uppercase",(t=>{if(t)return t.toUpperCase()})),c.Z.filter("trim",((t,e)=>(null==e&&(e=50),t.length>e?t.substring(0,e-1)+"…":t))),n()(document).ready((function(){n()(".toast").toast("show")}));var u=a(20629);const m={toolbarColor(t,e){t.toolbarColor=e}};var p={toolbarColor:t=>t.toolbarColor},g={namespaced:!0,state:{toolbarColor:null},getters:p,actions:{toolbarColor(t,e){let{commit:a}=t;a("toolbarColor",e)}},mutations:m};c.Z.use(u.ZP);var h=new u.ZP.Store({modules:{general:g}}),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(" "),t.isImpersonator?a("div",{staticClass:"toolbar-impersonation"},[a("a",{staticClass:"btn btn-warning",attrs:{href:t.backendPrefix+"?_switch_user=_exit"}},[a("i",{staticClass:"fas fa-sign-out-alt fa-fw"}),t._v("\n "+t._s(t.labels["action.stop_impersonating"])+"\n ")])]):t._e(),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("label",{staticClass:"sr-only",attrs:{for:"global-search"}},[t._v(t._s(t.labels["general.label.search"]))]),t._v(" "),a("input",{staticClass:"form-control",attrs:{id:"global-search",type:"text",placeholder:t.labels["listing.placeholder_search"],title:t.labels["listing.placeholder_search"],name:"filter",required:""},domProps:{value:t.filterValue}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary toolbar-item__filter--button",attrs:{type:"submit",title:t.labels["listing.button_search"]}},[a("i",{staticClass:"fas fa-search"})])])]),t._v(" "),a("div",{staticClass:"toolbar-item btn-group toolbar-item__profile"},[a("button",{staticClass:"btn user profile__dropdown-toggler dropdown-toggle d-flex align-items-center",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[t.avatar?a("img",{staticClass:"rounded-circle mr-2",attrs:{src:t.avatar,alt:"User avatar"}}):a("i",{staticClass:"fas fa-user"}),t._v(t._s(t.labels["general.greeting"])+"\n "),t.isImpersonator?[t._v("\n  "),a("span",{staticStyle:{"font-style":"italic"}},[t._v("("+t._s(t.labels["general.is_impersonator"])+")")])]:t._e()],2),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;const v=a(17621);var b={name:"Toolbar",props:{siteName:String,menu:Array,labels:Object,backendPrefix:String,isImpersonator:Boolean,filterValue:String,avatar:String},computed:{contrast(){return v(this.toolbarColor).isLight()},createMenu(){return this.menu.filter((t=>!t.singleton&&t.singular_name||t.singleton&&(null===t.submenu||t.submenu.length<1)))},toolbarColor(){return this.$store.getters["general/toolbarColor"]}},created(){const t=getComputedStyle(document.body).getPropertyValue("--admin-toolbar");this.$store.dispatch("general/toolbarColor",t)}},_=a(51900),y=(0,_.Z)(b,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);y.options.__file="assets/js/app/toolbar/Components/Toolbar.vue";var w=y.exports;const C="toolbar";document.getElementById(C)&&new c.Z({store:h,el:"#"+C,name:"BoltToolbar",components:{"admin-toolbar":w}});const S={slimSidebar(t,e){t.slimSidebar=e}};var x={slimSidebar:t=>t.slimSidebar},k={namespaced:!0,state:{slimSidebar:!1},getters:x,actions:{slimSidebar(t,e){let{commit:a}=t;a("slimSidebar",e)}},mutations:S};c.Z.use(u.ZP);var D=new u.ZP.Store({modules:{general:k}}),E=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)};E._withStripped=!0;var j=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)};j._withStripped=!0;var $=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"link--menu"},[a("li",{staticClass:"link--actions"},[null!==t.item.link_new?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._e(),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._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)};$._withStripped=!0;var I={name:"SubMenu",props:{item:Object,labels:Object}},F=(0,_.Z)(I,$,[],!1,null,null,null);F.options.__file="assets/js/app/sidebar/Components/Menu/_SubMenu.vue";var B={name:"SidebarMenu",components:{"sub-menu":F.exports},props:{menu:Array,labels:Object},methods:{singleton:t=>t.submenu.length&&null!==t.submenu?t.submenu[0].editLink:t.link_new}},A=(0,_.Z)(B,j,[],!1,null,null,null);A.options.__file="assets/js/app/sidebar/Components/Menu/index.vue";var T=A.exports,P=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"admin__sidebar--slim focus-visible",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))])])};P._withStripped=!0;var Z={name:"SidebarFooter",props:{version:String,aboutLink:String,labels:Object},computed:{slim(){return!!this.$store.getters["general/slimSidebar"]&&this.$store.getters["general/slimSidebar"]}},watch:{slim(){const t=document.querySelector(".admin");this.slim?t.classList.add("is-slim"):t.classList.remove("is-slim"),localStorage.setItem("slim-sidebar",this.slim)}},methods:{slimSidebar(t){this.$store.dispatch("general/slimSidebar",t)}}},L=(0,_.Z)(Z,P,[],!1,null,null,null);L.options.__file="assets/js/app/sidebar/Components/_SidebarToggler.vue";var O={name:"Sidebar",components:{"sidebar-menu":T,"sidebar-toggler":L.exports},props:{menu:Array,version:String,aboutLink:String,labels:Object},created(){const t=JSON.parse(localStorage.getItem("slim-sidebar"));t&&this.$store.dispatch("general/slimSidebar",t)}},N=(0,_.Z)(O,E,[],!1,null,null,null);N.options.__file="assets/js/app/sidebar/Components/Sidebar.vue";var q=N.exports;const M="bolt--sidebar";document.getElementById(M)&&new c.Z({store:D,el:"#"+M,name:"BoltSidebar",components:{"admin-sidebar":q}});const z={setType(t,e){t.type=e},setRowSize(t,e){t.rowSize=e},setSorting(t,e){t.sorting=e}};var R={getType:t=>t.type,getRowSize:t=>t.rowSize,getSorting:t=>t.sorting},U={namespaced:!0,state:{type:null,rowSize:"normal",sorting:!1},getters:R,actions:{setType(t,e){let{commit:a}=t;a("setType",e)},setRowSize(t,e){let{commit:a}=t;a("setRowSize",e)},setSorting(t,e){let{commit:a}=t;a("setSorting",e)}},mutations:z};const V={setRecords(t,e){t.records=e}};const H={getRecords:t=>t.records,getOrder:t=>t.records.map((t=>t.id))};var Y={namespaced:!0,state:{records:[]},getters:H,actions:{setRecords(t,e){let{commit:a}=t;a("setRecords",e)}},mutations:V};const G={selectAll(t,e){let{commit:a}=t;a("selectAll",e)},select(t,e){let{commit:a}=t;a("select",e)},deSelect(t,e){let{commit:a}=t;a("deSelect",e)}};const J={selectAll(t,e){t.selectAll=e},select(t,e){t.selectedCount++,t.selected.push(e)},deSelect(t,e){t.selectedCount--;let a=t.selected.indexOf(e);a>-1&&t.selected.splice(a,1)}};var W={selectAll:t=>t.selectAll,selectedCount:t=>t.selectedCount,selected:t=>t.selected},K={namespaced:!0,state:{selectAll:!1,selectedCount:0,selected:[]},getters:W,actions:G,mutations:J};c.Z.use(u.ZP);var X=new u.ZP.Store({modules:{general:U,listing:Y,selecting:K}}),Q=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"listing-records"})};Q._withStripped=!0;var tt={name:"ListingRecords",props:{type:String,data:Array,labels:Object},created(){this.$store.dispatch("general/setType",this.type),this.$store.dispatch("listing/setRecords",this.data)}},et=(0,_.Z)(tt,Q,[],!1,null,null,null);et.options.__file="assets/js/app/listing/Components/Records.vue";var at=et.exports,st=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)}}},[a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.select_all))])])])]):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))])])])])])};st._withStripped=!0;var it={computed:{type(){return this.$store.getters["general/getType"]}}},lt={name:"ListingFilter",mixins:[it],props:{labels:Object},computed:{size(){return this.$store.getters["general/getRowSize"]},sorting(){return this.$store.getters["general/getSorting"]},selectAll(){return this.$store.getters["selecting/selectAll"]}},watch:{sorting(){this.sorting&&this.$store.dispatch("selecting/selectAll",!1)}},created(){const t=localStorage.getItem("listing-row-size");null!==t&&this.$store.dispatch("general/setRowSize",t)},methods:{enableSorting(t){this.$store.dispatch("general/setSorting",t)},enableSelectAll(t){this.$store.dispatch("selecting/selectAll",t)},changeSize(t){this.$store.dispatch("general/setRowSize",t),localStorage.setItem("listing-row-size",t)}}},nt=(0,_.Z)(lt,st,[],!1,null,null,null);nt.options.__file="assets/js/app/listing/Components/Filter.vue";var rt=nt.exports,ot=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)};ot._withStripped=!0;var ct=a(9980),dt=a.n(ct),ut=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",alt:t.record.extras.image.alt}})]):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)};ut._withStripped=!0;var mt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:!t.sorting,expression:"!sorting"}],key:"checkbox",staticClass:"listing--checkbox"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"custom-control-input",attrs:{id:"row-"+t.id,type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?t._i(t.selected,null)>-1:t.selected},on:{change:function(e){var a=t.selected,s=e.target,i=!!s.checked;if(Array.isArray(a)){var l=t._i(a,null);s.checked?l<0&&(t.selected=a.concat([null])):l>-1&&(t.selected=a.slice(0,l).concat(a.slice(l+1)))}else t.selected=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"row-"+t.id},on:{click:function(e){t.selected,t.selected}}})])])};mt._withStripped=!0;var pt={name:"Checkbox",props:{id:Number},data:()=>({selected:!1}),computed:{selectAll(){return this.$store.getters["selecting/selectAll"]},sorting(){return this.$store.getters["general/getSorting"]}},watch:{selectAll(){this.selected=this.selectAll},selected(){this.selected?this.$store.dispatch("selecting/select",this.id):this.$store.dispatch("selecting/deSelect",this.id)},sorting(){this.sorting&&(this.selected=!1)}}},gt=(0,_.Z)(pt,mt,[],!1,null,null,null);gt.options.__file="assets/js/app/listing/Components/Table/Row/_Checkbox.vue";var ht=gt.exports,ft=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"},[a("li",{staticClass:"text-nowrap"},[a("span",{staticClass:"status",class:"is-"+t.record.status,attrs:{title:t.record.status}}),t._v("\n "+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()])])};ft._withStripped=!0;var vt={name:"MetaData",props:{type:String,size:String,record:Object}},bt=(0,_.Z)(vt,ft,[],!1,null,null,null);bt.options.__file="assets/js/app/listing/Components/Table/Row/_Meta.vue";var _t=bt.exports,yt=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)))])])])])])};yt._withStripped=!0;var wt={name:"Actions",props:{type:String,record:Object,labels:Object},computed:{slug(){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(){}},Ct=(0,_.Z)(wt,yt,[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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"}},[a("span",{staticClass:"sr-only"},[t._v("Toggle Dropdown")])])}],!1,null,null,null);Ct.options.__file="assets/js/app/listing/Components/Table/Row/_Actions.vue";var St={name:"TableRow",components:{"row-checkbox":ht,"row-meta":_t,"row-actions":Ct.exports},mixins:[it],props:{record:Object,labels:Object},computed:{slug(){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(){return this.$store.getters["general/getRowSize"]},sorting(){return this.$store.getters["general/getSorting"]}},methods:{leave(){n()('.dropdown-toggle[aria-expanded="true"]').dropdown("toggle")}}},xt=(0,_.Z)(St,ut,[],!1,null,null,null);xt.options.__file="assets/js/app/listing/Components/Table/Row/index.vue";var kt=xt.exports,Dt={name:"ListingTable",components:{draggable:dt(),"table-row":kt},props:{labels:Object},computed:{records:{get(){return this.$store.getters["listing/getRecords"]},set(t){this.$store.dispatch("listing/setRecords",t)}}}},Et=(0,_.Z)(Dt,ot,[],!1,null,null,null);Et.options.__file="assets/js/app/listing/Components/Table/index.vue";var jt=Et.exports,$t=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()])};$t._withStripped=!0;var It=a(47907),Ft=a.n(It),Bt={name:"ListingSelectedBox",components:{Multiselect:Ft()},props:{singular:String,plural:String,labels:Object,csrftoken:String,backendPrefix:String},data(){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(){return this.selectedAction?this.backendPrefix+"bulk/"+this.selectedAction.key:""},selectedCount(){return this.$store.getters["selecting/selectedCount"]},selected(){return this.$store.getters["selecting/selected"]},order(){return this.$store.getters["listing/getOrder"]}}},At=(0,_.Z)(Bt,$t,[],!1,null,null,null);At.options.__file="assets/js/app/listing/Components/SelectBox.vue";var Tt=At.exports;const Pt="listing";document.getElementById(Pt)&&new c.Z({store:X,el:"#listing",name:"BoltListing",components:{"listing-records":at,"listing-filter":rt,"listing-table":jt,"listing-select-box":Tt}});const Zt={slimSidebar(t,e){t.slimSidebar=e}};var Lt={slimSidebar:t=>t.slimSidebar},Ot={namespaced:!0,state:{slimSidebar:!1},getters:Lt,actions:{slimSidebar(t,e){let{commit:a}=t;a("slimSidebar",e)}},mutations:Zt};c.Z.use(u.ZP);var Nt=new u.ZP.Store({modules:{general:Ot}}),qt=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,title:t.name,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)}}})])};qt._withStripped=!0;var Mt={mounted(){this.val=this.value;let t=document.createElement("textarea");t.innerHTML=this.value,this.rawVal=t.value},data:()=>({val:null,rawVal:null})},zt={name:"EditorText",mixins:[Mt],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:()=>({generate:!1}),computed:{getType(){return"large"===this.type?"form-control-lg":this.type}},watch:{rawVal(){this.generate&&this.$root.$emit("slugify-from-title")}},mounted(){this.$root.$on("generate-from-title",(t=>this.generate=t))}},Rt=(0,_.Z)(zt,qt,[],!1,null,null,null);Rt.options.__file="assets/js/app/editor/Components/Text.vue";var Ut=Rt.exports,Vt=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,title:t.name},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)])])])};Vt._withStripped=!0;var Ht={name:"EditorSlug",mixins:[Mt],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(){return{edit:!1,locked:!0,buttonText:this.$props.labels.button_locked,icon:"lock"}},mounted(){setTimeout((()=>{let t="";this.generate.split(",").forEach((e=>{t+=document.querySelector(`input[name='fields[${e}]']`).value})),this.shouldGenerateFromTitle(t)&&(this.icon="unlock",this.buttonText=this.$props.labels.button_unlocked,this.$root.$emit("generate-from-title",!0),this.generateSlug())}),0),this.$root.$on("slugify-from-title",(()=>this.generateSlug()))},methods:{shouldGenerateFromTitle(t){return!!this.isNew||t.length<=0&&this.localize},editSlug(){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(){this.$root.$emit("generate-from-title",!1);const 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(){let t="";this.generate.split(",").forEach((e=>{t=t+" "+document.querySelector(`input[name='fields[${e}]']`).value}));const 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"}}},Yt=(0,_.Z)(Ht,Vt,[],!1,null,null,null);Yt.options.__file="assets/js/app/editor/Components/Slug.vue";var Gt=Yt.exports,Jt=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","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":"","aria-label":"Date picker",onclick:"this.blur()"}},[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":"","aria-label":"Reset date",onclick:"this.blur()"}},[a("i",{staticClass:"fa fa-times"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.clear))])])])])],1)])};Jt._withStripped=!0;var Wt=a(24790),Kt={name:"EditorDate",components:{flatPickr:a.n(Wt)()},mixins:[Mt],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:()=>({config:{wrap:!0,altFormat:"F j, Y",altInput:!0,dateFormat:"Y-m-d H:i",enableTime:!1}}),created(){if("en"!==this.locale){const t=a(79948)(`./${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")},updated(){this.fixRequired()},methods:{fixRequired(){if(!this.required)return;const t=n()(this.$el).find(".editor--date.input");""===this.val?t.attr("required",!0):t.removeAttr("required"),t[0].reportValidity(),t[0].setCustomValidity("")}}},Xt=(0,_.Z)(Kt,Jt,[],!1,null,null,null);Xt.options.__file="assets/js/app/editor/Components/Date.vue";var Qt=Xt.exports,te=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:{limit:1e3,multiple:t.multiple,options:t.options,"options-limit":t.optionslimit,searchable:t.autocomplete||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)};te._withStripped=!0;var ee={name:"EditorSelect",components:{Multiselect:Ft()},props:{value:Array|String,name:String,id:String,form:String,options:Array,optionslimit:Number,multiple:Boolean,taggable:Boolean,readonly:Boolean,classname:String,autocomplete:Boolean,errormessage:String|Boolean},data:()=>({selected:[]}),computed:{sanitized(){let t;return null===this.selected?JSON.stringify([]):this.selected.map?(t=this.selected.map((t=>t.key)),JSON.stringify(t)):JSON.stringify([this.selected.key])},fieldName(){return this.name+"[]"}},mounted(){const t=this.value?this.value.map?this.value:[this.value]:[],e=this.options;let a=t.map((t=>{const a=e.filter((e=>e.key===t));if(a.length>0)return a[0]})).filter((t=>void 0!==t));0===a.length&&(a=[e[0]]),this.selected=a},methods:{addTag(t){const 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(t){t.preventDefault();const e=t.dataTransfer.getData("text"),a=this.findDropElement(t.target).id,s=this.selected.find((t=>""+t.key==""+e)),i=this.selected.find((t=>""+t.key==""+a)),l=this.selected.indexOf(s),n=this.selected.indexOf(i),r=l({val:null,config:{btns:[["formatting"],["strong","em","del"],["link"],["insertImage"],["justifyLeft","justifyCenter","justifyRight"],["unorderedList","orderedList"],["horizontalRule"],["removeformat"],["fullscreen"],["viewHTML"]]}}),mounted(){this.val=this.$options.filters.strip(this.value)}},me=(0,_.Z)(ue,ce,[],!1,null,null,null);me.options.__file="assets/js/app/editor/Components/Html.vue";var pe=me.exports,ge=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("vue-simplemde",{attrs:{id:t.name,name:t.name,configs:t.config},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}})],1)};ge._withStripped=!0;var he={name:"EditorMarkdown",components:{VueSimplemde:a(56240).Z},props:{value:String,name:String},data:()=>({val:null,config:{spellChecker:!1,status:!1,toggleFullScreen:!0}}),mounted(){this.val=this.$options.filters.strip(this.value)}},fe=(0,_.Z)(he,ge,[],!1,null,"18f5a15c",null);fe.options.__file="assets/js/app/editor/Components/Markdown.vue";var ve=fe.exports,be=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.rawVal,expression:"rawVal"}],staticClass:"form-control field--textarea",style:{height:t.styleHeight},attrs:{id:t.id,name:t.name,rows:t.rows,required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,placeholder:t.placeholder,maxlength:t.maxlength,title:t.name},domProps:{value:t.rawVal},on:{input:function(e){e.target.composing||(t.rawVal=e.target.value)}}})])};be._withStripped=!0;var _e={name:"EditorTextarea",mixins:[Mt],props:{id:String,value:String,name:String,required:Boolean,readonly:Boolean,errormessage:String|Boolean,placeholder:String|Boolean,height:String|Number,maxlength:String},data(){return{rows:!isNaN(this.height)&&this.height,styleHeight:!!isNaN(this.height)&&this.height}}},ye=(0,_.Z)(_e,be,[],!1,null,null,null);ye.options.__file="assets/js/app/editor/Components/Textarea.vue";var we=ye.exports,Ce=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"editor__embed",attrs:{id:t.name,name:t.name}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-8"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"embed-url"}},[t._v(t._s(t.labels.content_url))]),t._v(" "),a("div",{staticClass:"input-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.urlData,expression:"urlData"}],staticClass:"form-control",attrs:{name:t.name+"[url]",placeholder:t.labels.placeholder_content_url,title:t.labels.placeholder_content_url,type:"url",required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern},domProps:{value:t.urlData},on:{input:function(e){e.target.composing||(t.urlData=e.target.value)}}}),t._v(" "),a("span",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary refresh",attrs:{type:"button",disabled:t.loading,"aria-label":t.labels.refresh},on:{click:t.updateEmbed}},[a("i",{class:(t.loading?"fa-spin":"")+" fas fa-sync mr-0"})]),t._v(" "),a("button",{staticClass:"btn btn-hidden-danger remove",attrs:{type:"button","aria-label":t.labels.delete},on:{click:t.clearEmbed}},[a("i",{staticClass:"fas fa-trash mr-0"})])])])]),t._v(" "),a("div",{staticClass:"form-group form-inline"},[a("label",{attrs:{for:"embed-width-size"}},[t._v(t._s(t.labels.label_size))]),t._v(" "),a("input",{staticClass:"form-control col-2 offset-1",attrs:{name:t.name+"[width]",type:"number",readonly:t.readonly,title:t.labels.field_width},domProps:{value:t.widthData}}),t._v("\n ×\n "),a("label",{staticClass:"sr-only",attrs:{for:"embed-height-size"}},[t._v(t._s(t.labels.label_height))]),t._v(" "),a("input",{staticClass:"form-control col-2",attrs:{name:t.name+"[height]",type:"number",readonly:t.readonly,title:t.labels.field_height},domProps:{value:t.heightData}}),t._v(" "),a("label",[t._v(t._s(t.labels.label_pixel))])]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.labels.label_matched_embed))]),t._v(" "),a("input",{staticClass:"form-control title",attrs:{name:t.name+"[title]",readonly:"",title:t.labels.field_title,type:"text"},domProps:{value:t.titleData}}),t._v(" "),a("input",{staticClass:"form-control author_name",attrs:{name:t.name+"[authorname]",readonly:"",title:t.labels.field_author,type:"text"},domProps:{value:t.authornameData}}),t._v(" "),a("input",{staticClass:"author_url",attrs:{name:t.name+"[authorurl]",type:"hidden"},domProps:{value:t.authorurlData}}),t._v(" "),a("input",{staticClass:"html",attrs:{name:t.name+"[html]",type:"hidden"},domProps:{value:t.htmlData}}),t._v(" "),a("input",{staticClass:"thumbnail_url",attrs:{name:t.name+"[thumbnail]",type:"hidden"},domProps:{value:t.thumbnailData}})])]),t._v(" "),a("div",{staticClass:"col-4"},[a("label",[t._v(t._s(t.labels.label_preview))]),t._v(" "),a("div",{staticClass:"editor__image--preview"},[null!==t.previewImage&&""!==t.previewImage?a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.previewImage+"')",attrs:{href:t.previewImage}}):t._e()])])])])])};Ce._withStripped=!0;var Se=a(96486),xe=a.n(Se),ke=a(95731),De=a.n(ke),Ee={name:"EditorEmbed",mixins:[Mt],props:{embedapi:String,name:String,authorurl:String,authorname:String,height:Number|String,html:String,thumbnail:String,title:String,url:String,width:Number|String,labels:Object,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean},data(){return{authorurlData:this.authorurl,authornameData:this.authorname,heightData:this.height,htmlData:this.html,thumbnailData:this.thumbnail,titleData:this.title,urlData:this.url,widthData:this.width,loading:!1}},watch:{urlData:function(){this.updateEmbed()}},mounted(){this.previewImage=this.thumbnail},created:function(){this.debouncedFetchEmbed=xe().debounce(this.fetchEmbed,500),this.urlData&&this.updateEmbed(),this.previewImage=this.thumbnail},updated(){De().run(".editor__image--preview",{afterShow:()=>{},afterHide:()=>{}})},methods:{updateEmbed:function(){this.loading=!0,this.debouncedFetchEmbed()},clearEmbed:function(){this.urlData=""},fetchEmbed:function(){const t=new FormData;t.append("url",this.urlData),t.append("_csrf_token",document.getElementsByName("_csrf_token")[0].value),fetch(this.embedapi,{method:"POST",body:t}).then((t=>t.json())).then((t=>{this.authorurlData=t.author_url,this.authornameData=t.author_name,this.heightData=t.height,this.htmlData=t.html,this.thumbnailData=t.thumbnail_url,this.titleData=t.title,this.widthData=t.width,this.previewImage=t.thumbnail_url})).catch((t=>{console.warn(t)})).finally((()=>{this.loading=!1}))}}},je=(0,_.Z)(Ee,Ce,[],!1,null,null,null);je.options.__file="assets/js/app/editor/Components/Embed.vue";var $e=je.exports,Ie=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__image",on:{dragenter:t.onDragEnter,dragleave:t.onDragLeave,dragover:function(t){t.preventDefault()},drop:t.onDrop}},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"editor__image--dragging"},[a("i",{staticClass:"fas fa-upload"})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-3 order-md-2"},[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}},[a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.image_preview))])]):t._e()])]),t._v(" "),a("div",{staticClass:"col order-md-1"},[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:{title:t.name+" filename",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(" "),t.includeAlt?a("div",{staticClass:"input-group mb-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.altData,expression:"altData"}],staticClass:"form-control",attrs:{title:t.name+" alt",name:t.name+"[alt]",type:"text",readonly:t.readonly,pattern:t.pattern,placeholder:t.getPlaceholder},domProps:{value:t.altData},on:{input:function(e){e.target.composing||(t.altData=e.target.value)}}})]):t._e(),t._v(" "),a("div",{staticClass:"btn-toolbar",attrs:{role:"toolbar"}},[a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectUploadFile}},[a("i",{staticClass:"fas fa-fw fa-upload"}),t._v(t._s(t.labels.button_upload)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-sm btn-tertiary dropdown-toggle dropdown-toggle-split",attrs:{"aria-expanded":"false","aria-haspopup":"true","data-toggle":"dropdown",name:"image-upload-dropdown",type:"button",disabled:t.readonly}},[a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_upload_options))])]),t._v(" "),a("div",{staticClass:"dropdown-menu"},[a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",disabled: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(" "),a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",disabled:t.readonly,"data-patiance":"virtue"},on:{click:t.uploadFileFromUrl}},[a("i",{staticClass:"fas fa-fw fa-external-link-alt"}),t._v("\n "+t._s(t.labels.button_from_url)+"\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"}},[t.inImagelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isFirstInImagelist||t.readonly},on:{click:t.onMoveImageUp}},[a("i",{staticClass:"fas fa-fw fa-chevron-up"}),t._v("\n "+t._s(t.labels.button_move_up)+"\n ")]):t._e(),t._v(" "),t.inImagelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isLastInImagelist||t.readonly},on:{click:t.onMoveImageDown}},[a("i",{staticClass:"fas fa-fw fa-chevron-down"}),t._v("\n "+t._s(t.labels.button_move_down)+"\n ")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm btn-hidden-danger",attrs:{type:"button",disabled:t.readonly},on:{click:t.onRemoveImage}},[a("i",{staticClass:"fas fa-fw fa-trash"}),t._v(" "+t._s(t.labels.button_remove)+"\n ")])])]),t._v(" "),t.progress>0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__image--upload",attrs:{id:t.fieldId,title:t.name+" filename",name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};Ie._withStripped=!0;var Fe=a(70743),Be=a.n(Fe),Ae=a(31369),Te=a.n(Ae),Pe={name:"EditorImage",mixins:[Mt],props:{filename:String,name:String,id:String,required:Boolean,readonly:Boolean,thumbnail:String,alt:String,includeAlt:Boolean,directory:String,directoryurl: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(){return{previewImage:null,thumbnailImage:null,isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,altData:this.alt}},computed:{fieldId(){return this.id},fieldName(){return this.name+"[]"},token(){return this.csrfToken},acceptedExtensions(){return this.extensions.map((t=>"."+t)).join()},getPlaceholder(){return this.placeholder?this.placeholder:this.labels.placeholder_alt_text}},mounted(){this.resetImage()},updated(){this.resetImage(),De().run(".editor__image--preview",{afterShow:()=>{Be().on()},afterHide:()=>{Be().off()}})},methods:{resetImage(){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(){this.$emit("moveImageDown",this)},onMoveImageUp(){this.$emit("moveImageUp",this)},onRemoveImage(){this.filenameData=null,this.resetImage(),this.includeAlt&&(this.altData=""),this.$emit("remove",this)},selectUploadFile(){this.$refs.selectFile.click()},selectServerFile(){let t=this;i().get(this.filelist).then((e=>{Te().prompt({title:"Select a file",inputType:"select",name:"image-selector",inputOptions:this.filterServerFiles(e.data),callback:function(e){e&&(t.filenameData=e,t.thumbnailData=`/thumbs/400×300/${e}`,t.previewData=`/thumbs/1000×1000/${e}`)}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((t=>{Te().alert(t.response.data+"
Image did not upload."),console.warn(t),window.reEnablePatientButtons()}))},onDragEnter(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;const e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile(t){const e=new FormData,a={onUploadProgress:t=>{const e=Math.round(100*t.loaded/t.total);this.progress=e},headers:{"Content-Type":"multipart/form-data"}};e.append("image",t),e.append("_csrf_token",this.token),i().post(this.directory,e,a).then((t=>{this.filenameData=t.data,this.thumbnailData=`/thumbs/400×300/${t.data}`,this.previewData=`/thumbs/1000×1000/${t.data}`,this.progress=0})).catch((t=>{Te().alert(t.response.data.error.message),console.warn(t.response.data.error.message),this.progress=0}))},uploadFileFromUrl(){let t=this;const e={onUploadProgress:t=>{const e=Math.round(100*t.loaded/t.total);this.progress=e},headers:{"Content-Type":"multipart/form-data"}};Te().prompt({title:"Upload from URL",callback:function(a){if(a){const s=new FormData;s.append("url",a),s.append("_csrf_token",t.token),i().post(t.directoryurl,s,e).then((e=>{t.filenameData=e.data,t.thumbnailData=`/thumbs/400×300/${e.data}`,t.previewData=`/thumbs/1000×1000/${e.data}`,t.progress=0})).catch((e=>{Te().alert(e.response.data.error.message),console.warn(e.response.data.error.message),t.progress=0}))}}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()},filterServerFiles(t){let e=this;return t.filter((function(t){let a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},Ze=(0,_.Z)(Pe,Ie,[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);Ze.options.__file="assets/js/app/editor/Components/Image.vue";var Le=Ze.exports,Oe=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(" "),0===t.getActiveImageFields().length?a("div",[a("input",{attrs:{name:t.name,value:"",type:"hidden"}})]):t._e(),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)};Oe._withStripped=!0;var Ne={name:"EditorImage",components:{"editor-image":Le},props:{images:Array,directory:String,name:String,filelist:String,csrfToken:String,labels:Object,extensions:Array,attributesLink:String,limit:Number,readonly:Boolean},data:function(){let t=0;return this.images.forEach((function(e,a,s){s[a].id=a,t++})),{counter:t,containerImages:this.images}},computed:{allowMore:function(){return!this.readonly&&this.getActiveImageFields().length0===t,isLastInImagelist(t){return t===this.getActiveImageFields().length-1},getActiveImageFields(){return this.containerImages.filter((function(t){return!0!==t.hidden}))},getFieldNumberFromElement:t=>parseInt([...t.fieldName.matchAll(/\d+/g)].splice(-1).pop()[0]),onMoveImageDown(t){let e=this.getFieldNumberFromElement(t);if(e0){let t=this.containerImages[e],a=this.containerImages[e-1];this.containerImages.splice(e-1,2,t,a)}},onRemoveImage(t){let e=this.getFieldNumberFromElement(t),a=this.containerImages[e];a.hidden=!0,this.$set(this.containerImages,e,a)},fieldName(t){return this.name+"["+t+"]"},addImage(){let 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)}}},qe=(0,_.Z)(Ne,Oe,[],!1,null,null,null);qe.options.__file="assets/js/app/editor/Components/Imagelist.vue";var Me=qe.exports,ze=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group mb-2"},[t._m(0),t._v(" "),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}})])])};ze._withStripped=!0;var Re={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}},Ue=(0,_.Z)(Re,ze,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-prepend"},[e("div",{staticClass:"input-group-text"},[e("i",{staticClass:"far fa-envelope mr-0"})])])}],!1,null,null,null);Ue.options.__file="assets/js/app/editor/Components/Email.vue";var Ve=Ue.exports,He=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group"},[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("div",{staticClass:"input-group-append"},[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)};He._withStripped=!0;var Ye=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"progress",style:t.styleHeight},[a("div",{staticClass:"progress-bar",style:t.styleWidth,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuenow":t.value,"aria-valuemax":t.max}})])};Ye._withStripped=!0;var Ge={name:"ProgressBar",props:{max:{type:Number,default:100},value:{type:Number,default:0},height:{type:String,default:null}},computed:{styleWidth(){return{width:this.value/this.max*100+"%"}},styleHeight(){return{height:this.height||null}}}},Je=(0,_.Z)(Ge,Ye,[],!1,null,null,null);Je.options.__file="assets/js/app/editor/Components/ProgressBar.vue";var We={name:"EditorPassword",components:{ProgressBar:Je.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(t){const e=t.target,a=n()("#"+this.id)[0],s=a.getAttribute("type");"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(t){const e=t.target;if(this.strength){let t=window.zxcvbn(e.value);this.$refs.progressBar.value=t.score}}}},Ke=(0,_.Z)(We,He,[],!1,null,null,null);Ke.options.__file="assets/js/app/editor/Components/Password.vue";var Xe=Ke.exports,Qe=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)])};Qe._withStripped=!0;var ta={name:"ThemeSelect",data:()=>({themes:[{name:"Default",value:"default",colors:["#1a5597","#053b79","#0c223b","#ffffff"]},{name:"Light",value:"light",colors:["#1a5597","#053b79","#ffffff","#f9f9f9"]}]}),methods:{selectTheme(t){const e=document.querySelector("#theme"),a=`${e.getAttribute("href").split("theme-")[0]}theme-${t}.css`;e.setAttribute("href",a)}}},ea=(0,_.Z)(ta,Qe,[],!1,null,null,null);ea.options.__file="assets/js/app/editor/Components/ThemeSelect.vue";var aa=ea.exports,sa=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)};sa._withStripped=!0;var ia={name:"EditorLanguage",components:{Multiselect:Ft()},props:{label:String,locales:Array,current:String},data:()=>({locale:{}}),mounted(){if(this.current){let t=this.locales.filter((t=>t.code===this.current));t.length>0?this.locale=t[0]:this.locale=this.locales[0]}else this.locale=this.locales[0]},methods:{switchLocale(){const t=this.locale.link+location.hash;return window.location.href=t}}},la=ia,na=(0,_.Z)(la,sa,[],!1,null,null,null);na.options.__file="assets/js/app/editor/Components/Language.vue";var ra=na.exports,oa=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:{title:t.name+" filename",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:{title:t.name+" title",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}},[a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_upload_options))])]),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:{title:t.name+" filename",name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};oa._withStripped=!0;var ca={name:"EditorFile",mixins:[Mt],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(){return{isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,titleData:this.title}},computed:{fieldName(){return this.name+"[]"},token(){return this.csrfToken},acceptedExtensions(){return this.extensions.map((t=>"."+t)).join()},getPlaceholder(){return this.placeholder?this.placeholder:this.labels.placeholder_title}},methods:{onMoveFileDown(){this.$emit("moveFileDown",this)},onMoveFileUp(){this.$emit("moveFileUp",this)},onRemoveFile(){this.filenameData="",this.titleData="",this.$emit("remove",this)},selectUploadFile(){this.$refs.selectFile.click()},selectServerFile(){let t=this;i().get(this.filelist).then((e=>{Te().prompt({title:"Select a file",inputType:"select",inputOptions:this.filterServerFiles(e.data),callback:function(e){e&&(t.filenameData=e)}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((t=>{console.warn(t),window.reEnablePatientButtons()}))},onDragEnter(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;const e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile(t){const e=new FormData,a={onUploadProgress:t=>{const e=Math.round(100*t.loaded/t.total);this.progress=e},headers:{"Content-Type":"multipart/form-data"}};e.append("file",t),e.append("_csrf_token",this.token),i().post(this.directory,e,a).then((t=>{this.filenameData=t.data,this.progress=0})).catch((t=>{const e=t.response.data;let a="unknown error";"string"==typeof e||e instanceof String?a=e:e.error&&e.error.message&&(a=e.error.message),Te().alert(a+"
File did not upload."),console.warn(t),this.progress=0}))},filterServerFiles(t){let e=this;return t.filter((function(t){let a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},da=(0,_.Z)(ca,oa,[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);da.options.__file="assets/js/app/editor/Components/File.vue";var ua=da.exports,ma=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(" "),0===t.containerFiles.length?a("div",[a("input",{attrs:{name:t.name,value:"",type:"hidden"}})]):t._e(),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)};ma._withStripped=!0;var pa={name:"EditorFile",components:{"editor-file":ua},props:{files:Array,directory:String,name:String,filelist:String,csrfToken:String,labels:Object,extensions:Array,attributesLink:String,limit:Number,readonly:Boolean},data:function(){let t=0,e=this.files;return e.forEach((function(e,a,s){s[a].id=a,t++})),{counter:t,containerFiles:e}},computed:{allowMore:function(){return!this.readonly&&this.containerFiles.length0===t,isLastInFilelist(t){return t===this.containerFiles.length-1},getFieldNumberFromElement:t=>parseInt([...t.fieldName.matchAll(/\d+/g)].splice(-1).pop()[0]),onMoveFileDown(t){let e=this.getFieldNumberFromElement(t);if(e0){let t=this.containerFiles[e],a=this.containerFiles[e-1];this.containerFiles.splice(e-1,2,t,a)}},onRemoveFile(t){let e=this.getFieldNumberFromElement(t);this.containerFiles.splice(e,1)},fieldName(t){return this.name+"["+t+"]"},addFile(){let 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)}}},ga=(0,_.Z)(pa,ma,[],!1,null,null,null);ga.options.__file="assets/js/app/editor/Components/Filelist.vue";var ha=ga.exports,fa=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",class:{collapsed:"expanded"!==t.variant}},[a("div",{staticClass:"d-block summary"},[a("div",{staticClass:"card-header d-flex align-items-center"},[a("i",{staticClass:"card-marker-caret fa fa-caret-right"}),t._v(" "),a("span",{staticClass:"badge badge-secondary inline",attrs:{title:e.label}},[a("i",{class:[e.icon,"fas"]})]),t._v(" "),a("div",{staticClass:"collection-item-title",attrs:{"data-label":e.label}},[t._v("\n "+t._s(e.label)+"\n ")]),t._v(" "),a(t.compile(e.buttons),{tag:"div"})],1)]),t._v(" "),a("div",{staticClass:"card details"},[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)};fa._withStripped=!0;var va=a(81317),ba={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(){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(){return this.templateSelectOptions[0].key},allowMore:function(){return this.counterc.Z.compile(t),setAllButtonsStates(t){let e=this;t.children(e.selector.item).each((function(){e.setButtonsState(window.$(this))}))},setButtonsState(t){t.find(this.selector.moveUp).first().removeAttr("disabled"),t.find(this.selector.moveDown).first().removeAttr("disabled"),this.getPreviousCollectionItem(t)||t.find(this.selector.moveUp).first().attr("disabled","disabled"),this.getNextCollectionItem(t)||t.find(this.selector.moveDown).first().attr("disabled","disabled")},getPreviousCollectionItem:t=>0!==t.prev(".collection-item").length&&t.prev(".collection-item"),getNextCollectionItem:t=>0!==t.next(".collection-item").length&&t.next(".collection-item"),getCollectionItemFromPressedButton:t=>window.$(t).closest(".collection-item").last(),addCollectionItem(t){let e=n().extend(!0,{},this.getSelectedTemplate(t));const a=va();e.content=e.content.replace(new RegExp(e.hash,"g"),a),e.hash=a,this.elements.push(e),this.counter++},getSelectedTemplate(t){let e=(n()(t.target).attr("data-template")?n()(t.target):n()(t.target).closest("[data-template]")).attr("data-template");return this.templates.find((t=>t.label===e))}}},_a=(0,_.Z)(ba,fa,[],!1,null,null,null);_a.options.__file="assets/js/app/editor/Components/Collection.vue";var ya=_a.exports,wa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{class:["custom-control","custom-"+t.mode]},[a("input",{staticClass:"custom-control-input",attrs:{id:t.id,name:t.name,type:"checkbox",readonly:t.readonly},domProps:{checked:t.value},on:{change:function(e){t.liveValue=e.target.checked}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:t.name}},[t._v(t._s(t.label))]),t._v(" "),a("input",{attrs:{type:"hidden",name:t.name},domProps:{value:t.liveValue}})])])};wa._withStripped=!0;var Ca={name:"EditorCheckbox",props:{value:{type:Boolean},name:{type:String},id:{type:String},required:{type:Boolean},readonly:{type:Boolean},label:{type:String},mode:{type:String}},data(){return{liveValue:this.value}}},Sa=(0,_.Z)(Ca,wa,[],!1,null,null,null);Sa.options.__file="assets/js/app/editor/Components/Checkbox.vue";var xa=Sa.exports,ka={warnFor(t){const e=function(t){return n()(t).serialize()},a=e(t);n()(window).on("beforeunload",(function(s){const i=e(t);if(a!==i)return function(t){const e="It looks like you have been editing something. If you leave before saving, your changes will be lost.";return(t||window.event).returnValue=e,e}(s)})),n()(t).on("submit",(function(){n()(window).off("beforeunload")}))}};c.Z.component("editor-checkbox",xa),c.Z.component("editor-date",Qt),c.Z.component("editor-embed",$e),c.Z.component("editor-email",Ve),c.Z.component("editor-password",Xe),c.Z.component("editor-html",pe),c.Z.component("editor-image",Le),c.Z.component("editor-imagelist",Me),c.Z.component("editor-file",ua),c.Z.component("editor-filelist",ha),c.Z.component("editor-markdown",ve),c.Z.component("editor-number",oe),c.Z.component("editor-select",ie),c.Z.component("editor-slug",Gt),c.Z.component("editor-text",Ut),c.Z.component("editor-textarea",we),c.Z.component("editor-collection",ya),c.Z.component("editor-set",Set),c.Z.component("general-language",ra),c.Z.component("theme-select",aa);const Da="editor",Ea="#editor";document.getElementById(Da)&&new c.Z({store:Nt,el:Ea,name:"BoltEditor",mounted:function(){setTimeout((function(){ka.warnFor("#editor form")}),2e3)}}),c.Z.component("field-password",Xe),c.Z.component("editor-text",Ut);const ja="login-form";document.getElementById(ja)&&new c.Z({el:"#"+ja,name:"BoltLogin",components:{"editor-text":Ut,"editor-password":Xe}});Te().setDefaults({locale:"en"});let $a=n()("html").attr("lang");$a&&Te().setLocale($a),n()("*[data-confirmation]").on("click",(function(){const t=n()(this),e=n()(this).attr("href"),a=n()(this).data("confirmation");if(!t.data("confirmed"))return Te().confirm(a,(function(a){a&&e&&(window.location=e),a&&(t.attr("data-confirmed",!0),t.click())})),!1})),n()("a[data-patience], button[data-patience]").on("click",(function(){const t=n()(this),e=t.find("i");if(n()(this).attr("form")&&!n()("#"+n()(this).attr("form"))[0].checkValidity())return;const a=e.attr("class").match(/[mp][tblrxy]-[0-5]/i),s="fas fa-w fa-cog fa-spin "+(a||"");n()(this).attr("data-original-class",e.attr("class")),e.attr("class",s),window.setTimeout((function(){t.attr("disabled",!0)}),50)})),window.reEnablePatientButtons=function(){n()("*[data-original-class]").each((function(){const t=n()(this).find("i");n()(this).attr("disabled",!1),t.attr("class",n()(this).attr("data-original-class"))}))},(0,a(18515).Z)("ctrl+s, command+s",(function(){return!n()("form#editcontent")||(n()("form#editcontent button[name=save]").click(),!1)}));window.assetsVersion="5.1.3",n()(document).ready((function(){n()("html").addClass("js"),n()(".admin__sidebar").addClass("admin__sidebar--is-collapsed"),n()(".admin-sidebar-toggler").on("click",(function(){n()(".admin__sidebar").hasClass("admin__sidebar--is-collapsed")?(n()(".admin__sidebar").addClass("admin__sidebar--is-expanded").removeClass("admin__sidebar--is-collapsed"),n()(this).toggleClass("is-active")):(n()(".admin__sidebar").addClass("admin__sidebar--is-collapsed").removeClass("admin__sidebar--is-expanded"),n()(this).toggleClass("is-active"))}));let t=location.href.replace(/\/$/,"");if(location.hash){const e=t.split("#");n()('a[href="#'+e[1]+'"]').tab("show"),t=location.href.replace(/\/#/,"#"),history.replaceState(null,null,t),setTimeout((()=>{n()(window).scrollTop(0)}),50)}function e(t){const e=n()(t.target).attr("data-errormessage");t.target.setCustomValidity(e)}function a(t){t.target.setCustomValidity("")}n()('a[data-toggle="pill"]').on("click",(function(){let e;const a=n()(this).attr("href");e=t.split("#")[0]+a,history.replaceState(null,null,e)})),n()(".datetime-relative").each((function(){n()(this).text(d.ou.fromISO(n()(this).text()).toRelative())})),n()('[data-toggle="popover"]').popover(),n()('#editor button[type="submit"]').click((function(){n()("input:invalid").each((function(){var t=n()(this).closest(".tab-pane").attr("id");return n()('.nav a[href="#'+t+'"]').tab("show"),!1}))})),n()("[data-readonly]").on("keydown paste",(function(t){t.preventDefault()})),n()(".editor--date").siblings().prop("readonly",!1).attr("data-readonly","readonly"),n()(".editor--date").on("change",(t=>{const e=n()(t.target).parent().find('input[data-readonly="readonly"]');e.val()?e[0].setCustomValidity(""):e[0].setCustomValidity("Please fill out this field.")})),n()("[data-errormessage]").on("invalid",e),n()("[data-errormessage]").on("input",a),n()(".editor--date").each((function(){let t=n()(this).siblings();const s=n()(this).attr("data-errormessage");t.each((function(){n()(this).attr("data-errormessage",s).on("invalid",e).on("input",a)}))})),n()("[data-copy-to-clipboard]").on("click",(function(t){const e=n()(t.target);var a=document.createElement("input");a.setAttribute("id","copy"),e.parent().append(a),a.value=e.attr("data-copy-to-clipboard"),a.focus(),a.select(),document.execCommand("copy"),e.parent().find("#copy").remove()}))})),i().defaults.headers.common={accept:"application/vnd.api+json"}},79948:function(t,e,a){var s={"./ar.js":28696,"./at.js":6204,"./az.js":77712,"./be.js":71836,"./bg.js":48082,"./bn.js":16273,"./bs.js":36302,"./cat.js":24375,"./cs.js":34508,"./cy.js":547,"./da.js":29751,"./de.js":72805,"./default.js":63359,"./eo.js":8814,"./es.js":80969,"./et.js":87230,"./fa.js":66942,"./fi.js":65572,"./fo.js":17141,"./fr.js":80401,"./ga.js":58757,"./gr.js":73300,"./he.js":92036,"./hi.js":10184,"./hr.js":66746,"./hu.js":22833,"./id.js":88318,"./index.js":17908,"./is.js":74732,"./it.js":29088,"./ja.js":46741,"./ka.js":16638,"./km.js":4760,"./ko.js":1844,"./kz.js":57393,"./lt.js":76625,"./lv.js":87826,"./mk.js":14019,"./mn.js":31989,"./ms.js":85671,"./my.js":37767,"./nl.js":36679,"./no.js":7530,"./pa.js":96407,"./pl.js":79323,"./pt.js":6924,"./ro.js":1375,"./ru.js":88809,"./si.js":58293,"./sk.js":51781,"./sl.js":37e3,"./sq.js":2569,"./sr-cyr.js":29313,"./sr.js":31438,"./sv.js":19144,"./th.js":3845,"./tr.js":54539,"./uk.js":31193,"./uz.js":62738,"./uz_latn.js":69294,"./vn.js":59467,"./zh-tw.js":27821,"./zh.js":10799};function i(t){var e=l(t);return a(e)}function l(t){if(!a.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}i.keys=function(){return Object.keys(s)},i.resolve=l,t.exports=i,i.id=79948},62562:function(){}},a={};function s(t){var i=a[t];if(void 0!==i)return i.exports;var l=a[t]={id:t,loaded:!1,exports:{}};return e[t].call(l.exports,l,l.exports,s),l.loaded=!0,l.exports}s.m=e,t=[],s.O=function(e,a,i,l){if(!a){var n=1/0;for(d=0;d=l)&&Object.keys(s.O).every((function(t){return s.O[t](a[o])}))?a.splice(o--,1):(r=!1,l0&&t[d-1][2]>l;d--)t[d]=t[d-1];t[d]=[a,i,l]},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},s.d=function(t,e){for(var a in e)s.o(e,a)&&!s.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},s.p="/assets/",function(){var t={413:0};s.O.j=function(e){return 0===t[e]};var e=function(e,a){var i,l,n=a[0],r=a[1],o=a[2],c=0;if(n.some((function(e){return 0!==t[e]}))){for(i in r)s.o(r,i)&&(s.m[i]=r[i]);if(o)var d=o(s)}for(e&&e(a);c{if(t)return d.ou.fromISO(String(t)).toLocaleString()})),c.Z.filter("datetime",(t=>{if(t)return d.ou.fromISO(String(t)).toLocaleString(d.ou.DATETIME_MED)})),c.Z.filter("slugify",(t=>{if(t){t=String(t);let s={delimiter:"-",lowercase:!0,transliterate:"undefined"==typeof XRegExp},i={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ă":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ő":"O","Ø":"O","Ș":"S","Ț":"T","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ă":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ő":"o","ø":"o","ș":"s","ț":"t","ù":"u","ú":"u","û":"u","ü":"u","ű":"u","ý":"y","þ":"th","ÿ":"y","©":"(c)","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"H","Ώ":"W","Ϊ":"I","Ϋ":"Y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"h","ώ":"w","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Ş":"S","İ":"I","Ğ":"G","ş":"s","ı":"i","ğ":"g","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","Ľ":"L","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","ľ":"l","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ā":"A","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"u","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u"};if(s.transliterate)for(var e in i)t=t.replace(RegExp(e,"g"),i[e]);var a=RegExp("[^a-z0-9]+","ig");return t=(t=(t=t.replace(a,s.delimiter)).replace(RegExp("["+s.delimiter+"]{2,}","g"),s.delimiter)).replace(RegExp("(^"+s.delimiter+"|"+s.delimiter+"$)","g"),""),(t=s.lowercase?t.toLowerCase():t).replace(/[^\w-]+/g,"")}})),c.Z.filter("strip",(t=>{if(t)return t.replace(/(^")|("$)/g,"")})),c.Z.filter("raw",(t=>{if(t){let e=document.createElement("textarea");return e.innerHTML=t,e.value}})),c.Z.filter("uppercase",(t=>{if(t)return t.toUpperCase()})),c.Z.filter("trim",((t,e)=>(null==e&&(e=50),t.length>e?t.substring(0,e-1)+"…":t))),n()(document).ready((function(){n()(".toast").toast("show")}));var u=a(20629);const m={toolbarColor(t,e){t.toolbarColor=e}};var p={toolbarColor:t=>t.toolbarColor},g={namespaced:!0,state:{toolbarColor:null},getters:p,actions:{toolbarColor(t,e){let{commit:a}=t;a("toolbarColor",e)}},mutations:m};c.Z.use(u.ZP);var h=new u.ZP.Store({modules:{general:g}}),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(" "),t.isImpersonator?a("div",{staticClass:"toolbar-impersonation"},[a("a",{staticClass:"btn btn-warning",attrs:{href:t.backendPrefix+"?_switch_user=_exit"}},[a("i",{staticClass:"fas fa-sign-out-alt fa-fw"}),t._v("\n "+t._s(t.labels["action.stop_impersonating"])+"\n ")])]):t._e(),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("label",{staticClass:"sr-only",attrs:{for:"global-search"}},[t._v(t._s(t.labels["general.label.search"]))]),t._v(" "),a("input",{staticClass:"form-control",attrs:{id:"global-search",type:"text",placeholder:t.labels["listing.placeholder_search"],title:t.labels["listing.placeholder_search"],name:"filter",required:""},domProps:{value:t.filterValue}}),t._v(" "),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary toolbar-item__filter--button",attrs:{type:"submit",title:t.labels["listing.button_search"]}},[a("i",{staticClass:"fas fa-search"})])])]),t._v(" "),a("div",{staticClass:"toolbar-item btn-group toolbar-item__profile"},[a("button",{staticClass:"btn user profile__dropdown-toggler dropdown-toggle d-flex align-items-center",attrs:{type:"button","data-toggle":"dropdown","data-display":"static","aria-haspopup":"true","aria-expanded":"false"}},[t.avatar?a("img",{staticClass:"rounded-circle mr-2",attrs:{src:t.avatar,alt:"User avatar"}}):a("i",{staticClass:"fas fa-user"}),t._v(t._s(t.labels["general.greeting"])+"\n "),t.isImpersonator?[t._v("\n  "),a("span",{staticStyle:{"font-style":"italic"}},[t._v("("+t._s(t.labels["general.is_impersonator"])+")")])]:t._e()],2),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;const v=a(17621);var b={name:"Toolbar",props:{siteName:String,menu:Array,labels:Object,backendPrefix:String,isImpersonator:Boolean,filterValue:String,avatar:String},computed:{contrast(){return v(this.toolbarColor).isLight()},createMenu(){return this.menu.filter((t=>!t.singleton&&t.singular_name||t.singleton&&(null===t.submenu||t.submenu.length<1)))},toolbarColor(){return this.$store.getters["general/toolbarColor"]}},created(){const t=getComputedStyle(document.body).getPropertyValue("--admin-toolbar");this.$store.dispatch("general/toolbarColor",t)}},_=a(51900),y=(0,_.Z)(b,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);y.options.__file="assets/js/app/toolbar/Components/Toolbar.vue";var w=y.exports;const C="toolbar";document.getElementById(C)&&new c.Z({store:h,el:"#"+C,name:"BoltToolbar",components:{"admin-toolbar":w}});const S={slimSidebar(t,e){t.slimSidebar=e}};var x={slimSidebar:t=>t.slimSidebar},k={namespaced:!0,state:{slimSidebar:!1},getters:x,actions:{slimSidebar(t,e){let{commit:a}=t;a("slimSidebar",e)}},mutations:S};c.Z.use(u.ZP);var D=new u.ZP.Store({modules:{general:k}}),E=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)};E._withStripped=!0;var j=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)};j._withStripped=!0;var $=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"link--menu"},[a("li",{staticClass:"link--actions"},[null!==t.item.link_new?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._e(),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._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)};$._withStripped=!0;var I={name:"SubMenu",props:{item:Object,labels:Object}},F=(0,_.Z)(I,$,[],!1,null,null,null);F.options.__file="assets/js/app/sidebar/Components/Menu/_SubMenu.vue";var B={name:"SidebarMenu",components:{"sub-menu":F.exports},props:{menu:Array,labels:Object},methods:{singleton:t=>t.submenu.length&&null!==t.submenu?t.submenu[0].editLink:t.link_new}},A=(0,_.Z)(B,j,[],!1,null,null,null);A.options.__file="assets/js/app/sidebar/Components/Menu/index.vue";var T=A.exports,P=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"admin__sidebar--slim focus-visible",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))])])};P._withStripped=!0;var Z={name:"SidebarFooter",props:{version:String,aboutLink:String,labels:Object},computed:{slim(){return!!this.$store.getters["general/slimSidebar"]&&this.$store.getters["general/slimSidebar"]}},watch:{slim(){const t=document.querySelector(".admin");this.slim?t.classList.add("is-slim"):t.classList.remove("is-slim"),localStorage.setItem("slim-sidebar",this.slim)}},methods:{slimSidebar(t){this.$store.dispatch("general/slimSidebar",t)}}},L=(0,_.Z)(Z,P,[],!1,null,null,null);L.options.__file="assets/js/app/sidebar/Components/_SidebarToggler.vue";var O={name:"Sidebar",components:{"sidebar-menu":T,"sidebar-toggler":L.exports},props:{menu:Array,version:String,aboutLink:String,labels:Object},created(){const t=JSON.parse(localStorage.getItem("slim-sidebar"));t&&this.$store.dispatch("general/slimSidebar",t)}},N=(0,_.Z)(O,E,[],!1,null,null,null);N.options.__file="assets/js/app/sidebar/Components/Sidebar.vue";var q=N.exports;const M="bolt--sidebar";document.getElementById(M)&&new c.Z({store:D,el:"#"+M,name:"BoltSidebar",components:{"admin-sidebar":q}});const z={setType(t,e){t.type=e},setRowSize(t,e){t.rowSize=e},setSorting(t,e){t.sorting=e}};var R={getType:t=>t.type,getRowSize:t=>t.rowSize,getSorting:t=>t.sorting},U={namespaced:!0,state:{type:null,rowSize:"normal",sorting:!1},getters:R,actions:{setType(t,e){let{commit:a}=t;a("setType",e)},setRowSize(t,e){let{commit:a}=t;a("setRowSize",e)},setSorting(t,e){let{commit:a}=t;a("setSorting",e)}},mutations:z};const V={setRecords(t,e){t.records=e}};const H={getRecords:t=>t.records,getOrder:t=>t.records.map((t=>t.id))};var Y={namespaced:!0,state:{records:[]},getters:H,actions:{setRecords(t,e){let{commit:a}=t;a("setRecords",e)}},mutations:V};const G={selectAll(t,e){let{commit:a}=t;a("selectAll",e)},select(t,e){let{commit:a}=t;a("select",e)},deSelect(t,e){let{commit:a}=t;a("deSelect",e)}};const J={selectAll(t,e){t.selectAll=e},select(t,e){t.selectedCount++,t.selected.push(e)},deSelect(t,e){t.selectedCount--;let a=t.selected.indexOf(e);a>-1&&t.selected.splice(a,1)}};var W={selectAll:t=>t.selectAll,selectedCount:t=>t.selectedCount,selected:t=>t.selected},K={namespaced:!0,state:{selectAll:!1,selectedCount:0,selected:[]},getters:W,actions:G,mutations:J};c.Z.use(u.ZP);var X=new u.ZP.Store({modules:{general:U,listing:Y,selecting:K}}),Q=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"listing-records"})};Q._withStripped=!0;var tt={name:"ListingRecords",props:{type:String,data:Array,labels:Object},created(){this.$store.dispatch("general/setType",this.type),this.$store.dispatch("listing/setRecords",this.data)}},et=(0,_.Z)(tt,Q,[],!1,null,null,null);et.options.__file="assets/js/app/listing/Components/Records.vue";var at=et.exports,st=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)}}},[a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.select_all))])])])]):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))])])])])])};st._withStripped=!0;var it={computed:{type(){return this.$store.getters["general/getType"]}}},lt={name:"ListingFilter",mixins:[it],props:{labels:Object},computed:{size(){return this.$store.getters["general/getRowSize"]},sorting(){return this.$store.getters["general/getSorting"]},selectAll(){return this.$store.getters["selecting/selectAll"]}},watch:{sorting(){this.sorting&&this.$store.dispatch("selecting/selectAll",!1)}},created(){const t=localStorage.getItem("listing-row-size");null!==t&&this.$store.dispatch("general/setRowSize",t)},methods:{enableSorting(t){this.$store.dispatch("general/setSorting",t)},enableSelectAll(t){this.$store.dispatch("selecting/selectAll",t)},changeSize(t){this.$store.dispatch("general/setRowSize",t),localStorage.setItem("listing-row-size",t)}}},nt=(0,_.Z)(lt,st,[],!1,null,null,null);nt.options.__file="assets/js/app/listing/Components/Filter.vue";var rt=nt.exports,ot=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)};ot._withStripped=!0;var ct=a(9980),dt=a.n(ct),ut=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",alt:t.record.extras.image.alt}})]):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)};ut._withStripped=!0;var mt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:!t.sorting,expression:"!sorting"}],key:"checkbox",staticClass:"listing--checkbox"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"custom-control-input",attrs:{id:"row-"+t.id,type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?t._i(t.selected,null)>-1:t.selected},on:{change:function(e){var a=t.selected,s=e.target,i=!!s.checked;if(Array.isArray(a)){var l=t._i(a,null);s.checked?l<0&&(t.selected=a.concat([null])):l>-1&&(t.selected=a.slice(0,l).concat(a.slice(l+1)))}else t.selected=i}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"row-"+t.id},on:{click:function(e){t.selected,t.selected}}})])])};mt._withStripped=!0;var pt={name:"Checkbox",props:{id:Number},data:()=>({selected:!1}),computed:{selectAll(){return this.$store.getters["selecting/selectAll"]},sorting(){return this.$store.getters["general/getSorting"]}},watch:{selectAll(){this.selected=this.selectAll},selected(){this.selected?this.$store.dispatch("selecting/select",this.id):this.$store.dispatch("selecting/deSelect",this.id)},sorting(){this.sorting&&(this.selected=!1)}}},gt=(0,_.Z)(pt,mt,[],!1,null,null,null);gt.options.__file="assets/js/app/listing/Components/Table/Row/_Checkbox.vue";var ht=gt.exports,ft=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"},[a("li",{staticClass:"text-nowrap"},[a("span",{staticClass:"status",class:"is-"+t.record.status,attrs:{title:t.record.status}}),t._v("\n "+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()])])};ft._withStripped=!0;var vt={name:"MetaData",props:{type:String,size:String,record:Object}},bt=(0,_.Z)(vt,ft,[],!1,null,null,null);bt.options.__file="assets/js/app/listing/Components/Table/Row/_Meta.vue";var _t=bt.exports,yt=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)))])])])])])};yt._withStripped=!0;var wt={name:"Actions",props:{type:String,record:Object,labels:Object},computed:{slug(){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(){}},Ct=(0,_.Z)(wt,yt,[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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"}},[a("span",{staticClass:"sr-only"},[t._v("Toggle Dropdown")])])}],!1,null,null,null);Ct.options.__file="assets/js/app/listing/Components/Table/Row/_Actions.vue";var St={name:"TableRow",components:{"row-checkbox":ht,"row-meta":_t,"row-actions":Ct.exports},mixins:[it],props:{record:Object,labels:Object},computed:{slug(){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(){return this.$store.getters["general/getRowSize"]},sorting(){return this.$store.getters["general/getSorting"]}},methods:{leave(){n()('.dropdown-toggle[aria-expanded="true"]').dropdown("toggle")}}},xt=(0,_.Z)(St,ut,[],!1,null,null,null);xt.options.__file="assets/js/app/listing/Components/Table/Row/index.vue";var kt=xt.exports,Dt={name:"ListingTable",components:{draggable:dt(),"table-row":kt},props:{labels:Object},computed:{records:{get(){return this.$store.getters["listing/getRecords"]},set(t){this.$store.dispatch("listing/setRecords",t)}}}},Et=(0,_.Z)(Dt,ot,[],!1,null,null,null);Et.options.__file="assets/js/app/listing/Components/Table/index.vue";var jt=Et.exports,$t=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()])};$t._withStripped=!0;var It=a(47907),Ft=a.n(It),Bt={name:"ListingSelectedBox",components:{Multiselect:Ft()},props:{singular:String,plural:String,labels:Object,csrftoken:String,backendPrefix:String},data(){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(){return this.selectedAction?this.backendPrefix+"bulk/"+this.selectedAction.key:""},selectedCount(){return this.$store.getters["selecting/selectedCount"]},selected(){return this.$store.getters["selecting/selected"]},order(){return this.$store.getters["listing/getOrder"]}}},At=(0,_.Z)(Bt,$t,[],!1,null,null,null);At.options.__file="assets/js/app/listing/Components/SelectBox.vue";var Tt=At.exports;const Pt="listing";document.getElementById(Pt)&&new c.Z({store:X,el:"#listing",name:"BoltListing",components:{"listing-records":at,"listing-filter":rt,"listing-table":jt,"listing-select-box":Tt}});const Zt={slimSidebar(t,e){t.slimSidebar=e}};var Lt={slimSidebar:t=>t.slimSidebar},Ot={namespaced:!0,state:{slimSidebar:!1},getters:Lt,actions:{slimSidebar(t,e){let{commit:a}=t;a("slimSidebar",e)}},mutations:Zt};c.Z.use(u.ZP);var Nt=new u.ZP.Store({modules:{general:Ot}}),qt=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,title:t.name,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)}}})])};qt._withStripped=!0;var Mt={mounted(){this.val=this.value;let t=document.createElement("textarea");t.innerHTML=this.value,this.rawVal=t.value},data:()=>({val:null,rawVal:null})},zt={name:"EditorText",mixins:[Mt],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:()=>({generate:!1}),computed:{getType(){return"large"===this.type?"form-control-lg":this.type}},watch:{rawVal(){this.generate&&this.$root.$emit("slugify-from-title")}},mounted(){this.$root.$on("generate-from-title",(t=>this.generate=t))}},Rt=(0,_.Z)(zt,qt,[],!1,null,null,null);Rt.options.__file="assets/js/app/editor/Components/Text.vue";var Ut=Rt.exports,Vt=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,title:t.name},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)])])])};Vt._withStripped=!0;var Ht={name:"EditorSlug",mixins:[Mt],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(){return{edit:!1,locked:!0,buttonText:this.$props.labels.button_locked,icon:"lock"}},mounted(){setTimeout((()=>{let t="";this.generate.split(",").forEach((e=>{t+=document.querySelector(`input[name='fields[${e}]']`).value})),this.shouldGenerateFromTitle(t)&&(this.icon="unlock",this.buttonText=this.$props.labels.button_unlocked,this.$root.$emit("generate-from-title",!0),this.generateSlug())}),0),this.$root.$on("slugify-from-title",(()=>this.generateSlug()))},methods:{shouldGenerateFromTitle(t){return!!this.isNew||t.length<=0&&this.localize},editSlug(){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(){this.$root.$emit("generate-from-title",!1);const 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(){let t="";this.generate.split(",").forEach((e=>{t=t+" "+document.querySelector(`input[name='fields[${e}]']`).value}));const 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"}}},Yt=(0,_.Z)(Ht,Vt,[],!1,null,null,null);Yt.options.__file="assets/js/app/editor/Components/Slug.vue";var Gt=Yt.exports,Jt=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","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":"","aria-label":"Date picker",onclick:"this.blur()"}},[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":"","aria-label":"Reset date",onclick:"this.blur()"}},[a("i",{staticClass:"fa fa-times"},[a("span",{staticClass:"sr-only",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.labels.clear))])])])])],1)])};Jt._withStripped=!0;var Wt=a(24790),Kt={name:"EditorDate",components:{flatPickr:a.n(Wt)()},mixins:[Mt],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:()=>({config:{wrap:!0,altFormat:"F j, Y",altInput:!0,dateFormat:"Y-m-d H:i:S",enableTime:!1}}),created(){if("en"!==this.locale){const t=a(79948)(`./${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")},updated(){this.fixRequired()},methods:{fixRequired(){if(!this.required)return;const t=n()(this.$el).find(".editor--date.input");""===this.val?t.attr("required",!0):t.removeAttr("required"),t[0].reportValidity(),t[0].setCustomValidity("")}}},Xt=(0,_.Z)(Kt,Jt,[],!1,null,null,null);Xt.options.__file="assets/js/app/editor/Components/Date.vue";var Qt=Xt.exports,te=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:{limit:1e3,multiple:t.multiple,options:t.options,"options-limit":t.optionslimit,searchable:t.autocomplete||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)};te._withStripped=!0;var ee={name:"EditorSelect",components:{Multiselect:Ft()},props:{value:Array|String,name:String,id:String,form:String,options:Array,optionslimit:Number,multiple:Boolean,taggable:Boolean,readonly:Boolean,classname:String,autocomplete:Boolean,errormessage:String|Boolean},data:()=>({selected:[]}),computed:{sanitized(){let t;return null===this.selected?JSON.stringify([]):this.selected.map?(t=this.selected.map((t=>t.key)),JSON.stringify(t)):JSON.stringify([this.selected.key])},fieldName(){return this.name+"[]"}},mounted(){const t=this.value?this.value.map?this.value:[this.value]:[],e=this.options;let a=t.map((t=>{const a=e.filter((e=>e.key===t));if(a.length>0)return a[0]})).filter((t=>void 0!==t));0===a.length&&(a=[e[0]]),this.selected=a},methods:{addTag(t){const 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(t){t.preventDefault();const e=t.dataTransfer.getData("text"),a=this.findDropElement(t.target).id,s=this.selected.find((t=>""+t.key==""+e)),i=this.selected.find((t=>""+t.key==""+a)),l=this.selected.indexOf(s),n=this.selected.indexOf(i),r=l({val:null,config:{btns:[["formatting"],["strong","em","del"],["link"],["insertImage"],["justifyLeft","justifyCenter","justifyRight"],["unorderedList","orderedList"],["horizontalRule"],["removeformat"],["fullscreen"],["viewHTML"]]}}),mounted(){this.val=this.$options.filters.strip(this.value)}},me=(0,_.Z)(ue,ce,[],!1,null,null,null);me.options.__file="assets/js/app/editor/Components/Html.vue";var pe=me.exports,ge=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("vue-simplemde",{attrs:{id:t.name,name:t.name,configs:t.config},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}})],1)};ge._withStripped=!0;var he={name:"EditorMarkdown",components:{VueSimplemde:a(56240).Z},props:{value:String,name:String},data:()=>({val:null,config:{spellChecker:!1,status:!1,toggleFullScreen:!0}}),mounted(){this.val=this.$options.filters.strip(this.value)}},fe=(0,_.Z)(he,ge,[],!1,null,"18f5a15c",null);fe.options.__file="assets/js/app/editor/Components/Markdown.vue";var ve=fe.exports,be=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.rawVal,expression:"rawVal"}],staticClass:"form-control field--textarea",style:{height:t.styleHeight},attrs:{id:t.id,name:t.name,rows:t.rows,required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,placeholder:t.placeholder,maxlength:t.maxlength,title:t.name},domProps:{value:t.rawVal},on:{input:function(e){e.target.composing||(t.rawVal=e.target.value)}}})])};be._withStripped=!0;var _e={name:"EditorTextarea",mixins:[Mt],props:{id:String,value:String,name:String,required:Boolean,readonly:Boolean,errormessage:String|Boolean,placeholder:String|Boolean,height:String|Number,maxlength:String},data(){return{rows:!isNaN(this.height)&&this.height,styleHeight:!!isNaN(this.height)&&this.height}}},ye=(0,_.Z)(_e,be,[],!1,null,null,null);ye.options.__file="assets/js/app/editor/Components/Textarea.vue";var we=ye.exports,Ce=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"editor__embed",attrs:{id:t.name,name:t.name}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-8"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"embed-url"}},[t._v(t._s(t.labels.content_url))]),t._v(" "),a("div",{staticClass:"input-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.urlData,expression:"urlData"}],staticClass:"form-control",attrs:{name:t.name+"[url]",placeholder:t.labels.placeholder_content_url,title:t.labels.placeholder_content_url,type:"url",required:t.required,readonly:t.readonly,"data-errormessage":t.errormessage,pattern:t.pattern},domProps:{value:t.urlData},on:{input:function(e){e.target.composing||(t.urlData=e.target.value)}}}),t._v(" "),a("span",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-tertiary refresh",attrs:{type:"button",disabled:t.loading,"aria-label":t.labels.refresh},on:{click:t.updateEmbed}},[a("i",{class:(t.loading?"fa-spin":"")+" fas fa-sync mr-0"})]),t._v(" "),a("button",{staticClass:"btn btn-hidden-danger remove",attrs:{type:"button","aria-label":t.labels.delete},on:{click:t.clearEmbed}},[a("i",{staticClass:"fas fa-trash mr-0"})])])])]),t._v(" "),a("div",{staticClass:"form-group form-inline"},[a("label",{attrs:{for:"embed-width-size"}},[t._v(t._s(t.labels.label_size))]),t._v(" "),a("input",{staticClass:"form-control col-2 offset-1",attrs:{name:t.name+"[width]",type:"number",readonly:t.readonly,title:t.labels.field_width},domProps:{value:t.widthData}}),t._v("\n ×\n "),a("label",{staticClass:"sr-only",attrs:{for:"embed-height-size"}},[t._v(t._s(t.labels.label_height))]),t._v(" "),a("input",{staticClass:"form-control col-2",attrs:{name:t.name+"[height]",type:"number",readonly:t.readonly,title:t.labels.field_height},domProps:{value:t.heightData}}),t._v(" "),a("label",[t._v(t._s(t.labels.label_pixel))])]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.labels.label_matched_embed))]),t._v(" "),a("input",{staticClass:"form-control title",attrs:{name:t.name+"[title]",readonly:"",title:t.labels.field_title,type:"text"},domProps:{value:t.titleData}}),t._v(" "),a("input",{staticClass:"form-control author_name",attrs:{name:t.name+"[authorname]",readonly:"",title:t.labels.field_author,type:"text"},domProps:{value:t.authornameData}}),t._v(" "),a("input",{staticClass:"author_url",attrs:{name:t.name+"[authorurl]",type:"hidden"},domProps:{value:t.authorurlData}}),t._v(" "),a("input",{staticClass:"html",attrs:{name:t.name+"[html]",type:"hidden"},domProps:{value:t.htmlData}}),t._v(" "),a("input",{staticClass:"thumbnail_url",attrs:{name:t.name+"[thumbnail]",type:"hidden"},domProps:{value:t.thumbnailData}})])]),t._v(" "),a("div",{staticClass:"col-4"},[a("label",[t._v(t._s(t.labels.label_preview))]),t._v(" "),a("div",{staticClass:"editor__image--preview"},[null!==t.previewImage&&""!==t.previewImage?a("a",{staticClass:"editor__image--preview-image",style:"background-image: url('"+t.previewImage+"')",attrs:{href:t.previewImage}}):t._e()])])])])])};Ce._withStripped=!0;var Se=a(96486),xe=a.n(Se),ke=a(95731),De=a.n(ke),Ee={name:"EditorEmbed",mixins:[Mt],props:{embedapi:String,name:String,authorurl:String,authorname:String,height:Number|String,html:String,thumbnail:String,title:String,url:String,width:Number|String,labels:Object,required:Boolean,readonly:Boolean,errormessage:String|Boolean,pattern:String|Boolean},data(){return{authorurlData:this.authorurl,authornameData:this.authorname,heightData:this.height,htmlData:this.html,thumbnailData:this.thumbnail,titleData:this.title,urlData:this.url,widthData:this.width,loading:!1}},watch:{urlData:function(){this.updateEmbed()}},mounted(){this.previewImage=this.thumbnail},created:function(){this.debouncedFetchEmbed=xe().debounce(this.fetchEmbed,500),this.urlData&&this.updateEmbed(),this.previewImage=this.thumbnail},updated(){De().run(".editor__image--preview",{afterShow:()=>{},afterHide:()=>{}})},methods:{updateEmbed:function(){this.loading=!0,this.debouncedFetchEmbed()},clearEmbed:function(){this.urlData=""},fetchEmbed:function(){const t=new FormData;t.append("url",this.urlData),t.append("_csrf_token",document.getElementsByName("_csrf_token")[0].value),fetch(this.embedapi,{method:"POST",body:t}).then((t=>t.json())).then((t=>{this.authorurlData=t.author_url,this.authornameData=t.author_name,this.heightData=t.height,this.htmlData=t.html,this.thumbnailData=t.thumbnail_url,this.titleData=t.title,this.widthData=t.width,this.previewImage=t.thumbnail_url})).catch((t=>{console.warn(t)})).finally((()=>{this.loading=!1}))}}},je=(0,_.Z)(Ee,Ce,[],!1,null,null,null);je.options.__file="assets/js/app/editor/Components/Embed.vue";var $e=je.exports,Ie=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"editor__image",on:{dragenter:t.onDragEnter,dragleave:t.onDragLeave,dragover:function(t){t.preventDefault()},drop:t.onDrop}},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"editor__image--dragging"},[a("i",{staticClass:"fas fa-upload"})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-3 order-md-2"},[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}},[a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.image_preview))])]):t._e()])]),t._v(" "),a("div",{staticClass:"col order-md-1"},[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:{title:t.name+" filename",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(" "),t.includeAlt?a("div",{staticClass:"input-group mb-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.altData,expression:"altData"}],staticClass:"form-control",attrs:{title:t.name+" alt",name:t.name+"[alt]",type:"text",readonly:t.readonly,pattern:t.pattern,placeholder:t.getPlaceholder},domProps:{value:t.altData},on:{input:function(e){e.target.composing||(t.altData=e.target.value)}}})]):t._e(),t._v(" "),a("div",{staticClass:"btn-toolbar",attrs:{role:"toolbar"}},[a("div",{staticClass:"btn-group mr-2",attrs:{role:"group"}},[a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.readonly},on:{click:t.selectUploadFile}},[a("i",{staticClass:"fas fa-fw fa-upload"}),t._v(t._s(t.labels.button_upload)+"\n ")]),t._v(" "),a("button",{staticClass:"btn btn-sm btn-tertiary dropdown-toggle dropdown-toggle-split",attrs:{"aria-expanded":"false","aria-haspopup":"true","data-toggle":"dropdown",name:"image-upload-dropdown",type:"button",disabled:t.readonly}},[a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_upload_options))])]),t._v(" "),a("div",{staticClass:"dropdown-menu"},[a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",disabled: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(" "),a("button",{staticClass:"btn dropdown-item",attrs:{type:"button",disabled:t.readonly,"data-patiance":"virtue"},on:{click:t.uploadFileFromUrl}},[a("i",{staticClass:"fas fa-fw fa-external-link-alt"}),t._v("\n "+t._s(t.labels.button_from_url)+"\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"}},[t.inImagelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isFirstInImagelist||t.readonly},on:{click:t.onMoveImageUp}},[a("i",{staticClass:"fas fa-fw fa-chevron-up"}),t._v("\n "+t._s(t.labels.button_move_up)+"\n ")]):t._e(),t._v(" "),t.inImagelist?a("button",{staticClass:"btn btn-sm btn-tertiary",attrs:{type:"button",disabled:t.isLastInImagelist||t.readonly},on:{click:t.onMoveImageDown}},[a("i",{staticClass:"fas fa-fw fa-chevron-down"}),t._v("\n "+t._s(t.labels.button_move_down)+"\n ")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm btn-hidden-danger",attrs:{type:"button",disabled:t.readonly},on:{click:t.onRemoveImage}},[a("i",{staticClass:"fas fa-fw fa-trash"}),t._v(" "+t._s(t.labels.button_remove)+"\n ")])])]),t._v(" "),t.progress>0?a("div",{staticClass:"progress mt-3"},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:"width: "+t.progress+"%",attrs:{role:"progressbar","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}})]):t._e()])]),t._v(" "),a("input",{ref:"selectFile",staticClass:"editor__image--upload",attrs:{id:t.fieldId,title:t.name+" filename",name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};Ie._withStripped=!0;var Fe=a(70743),Be=a.n(Fe),Ae=a(31369),Te=a.n(Ae),Pe={name:"EditorImage",mixins:[Mt],props:{filename:String,name:String,id:String,required:Boolean,readonly:Boolean,thumbnail:String,alt:String,includeAlt:Boolean,directory:String,directoryurl: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(){return{previewImage:null,thumbnailImage:null,isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,altData:this.alt}},computed:{fieldId(){return this.id},fieldName(){return this.name+"[]"},token(){return this.csrfToken},acceptedExtensions(){return this.extensions.map((t=>"."+t)).join()},getPlaceholder(){return this.placeholder?this.placeholder:this.labels.placeholder_alt_text}},mounted(){this.resetImage()},updated(){this.resetImage(),De().run(".editor__image--preview",{afterShow:()=>{Be().on()},afterHide:()=>{Be().off()}})},methods:{resetImage(){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(){this.$emit("moveImageDown",this)},onMoveImageUp(){this.$emit("moveImageUp",this)},onRemoveImage(){this.filenameData=null,this.resetImage(),this.includeAlt&&(this.altData=""),this.$emit("remove",this)},selectUploadFile(){this.$refs.selectFile.click()},selectServerFile(){let t=this;i().get(this.filelist).then((e=>{Te().prompt({title:"Select a file",inputType:"select",name:"image-selector",inputOptions:this.filterServerFiles(e.data),callback:function(e){e&&(t.filenameData=e,t.thumbnailData=`/thumbs/400×300/${e}`,t.previewData=`/thumbs/1000×1000/${e}`)}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((t=>{Te().alert(t.response.data+"
Image did not upload."),console.warn(t),window.reEnablePatientButtons()}))},onDragEnter(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;const e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile(t){const e=new FormData,a={onUploadProgress:t=>{const e=Math.round(100*t.loaded/t.total);this.progress=e},headers:{"Content-Type":"multipart/form-data"}};e.append("image",t),e.append("_csrf_token",this.token),i().post(this.directory,e,a).then((t=>{this.filenameData=t.data,this.thumbnailData=`/thumbs/400×300/${t.data}`,this.previewData=`/thumbs/1000×1000/${t.data}`,this.progress=0})).catch((t=>{Te().alert(t.response.data.error.message),console.warn(t.response.data.error.message),this.progress=0}))},uploadFileFromUrl(){let t=this;const e={onUploadProgress:t=>{const e=Math.round(100*t.loaded/t.total);this.progress=e},headers:{"Content-Type":"multipart/form-data"}};Te().prompt({title:"Upload from URL",callback:function(a){if(a){const s=new FormData;s.append("url",a),s.append("_csrf_token",t.token),i().post(t.directoryurl,s,e).then((e=>{t.filenameData=e.data,t.thumbnailData=`/thumbs/400×300/${e.data}`,t.previewData=`/thumbs/1000×1000/${e.data}`,t.progress=0})).catch((e=>{Te().alert(e.response.data.error.message),console.warn(e.response.data.error.message),t.progress=0}))}}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()},filterServerFiles(t){let e=this;return t.filter((function(t){let a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},Ze=(0,_.Z)(Pe,Ie,[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);Ze.options.__file="assets/js/app/editor/Components/Image.vue";var Le=Ze.exports,Oe=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(" "),0===t.getActiveImageFields().length?a("div",[a("input",{attrs:{name:t.name,value:"",type:"hidden"}})]):t._e(),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)};Oe._withStripped=!0;var Ne={name:"EditorImage",components:{"editor-image":Le},props:{images:Array,directory:String,name:String,filelist:String,csrfToken:String,labels:Object,extensions:Array,attributesLink:String,limit:Number,readonly:Boolean},data:function(){let t=0;return this.images.forEach((function(e,a,s){s[a].id=a,t++})),{counter:t,containerImages:this.images}},computed:{allowMore:function(){return!this.readonly&&this.getActiveImageFields().length0===t,isLastInImagelist(t){return t===this.getActiveImageFields().length-1},getActiveImageFields(){return this.containerImages.filter((function(t){return!0!==t.hidden}))},getFieldNumberFromElement:t=>parseInt([...t.fieldName.matchAll(/\d+/g)].splice(-1).pop()[0]),onMoveImageDown(t){let e=this.getFieldNumberFromElement(t);if(e0){let t=this.containerImages[e],a=this.containerImages[e-1];this.containerImages.splice(e-1,2,t,a)}},onRemoveImage(t){let e=this.getFieldNumberFromElement(t),a=this.containerImages[e];a.hidden=!0,this.$set(this.containerImages,e,a)},fieldName(t){return this.name+"["+t+"]"},addImage(){let 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)}}},qe=(0,_.Z)(Ne,Oe,[],!1,null,null,null);qe.options.__file="assets/js/app/editor/Components/Imagelist.vue";var Me=qe.exports,ze=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group mb-2"},[t._m(0),t._v(" "),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}})])])};ze._withStripped=!0;var Re={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}},Ue=(0,_.Z)(Re,ze,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-prepend"},[e("div",{staticClass:"input-group-text"},[e("i",{staticClass:"far fa-envelope mr-0"})])])}],!1,null,null,null);Ue.options.__file="assets/js/app/editor/Components/Email.vue";var Ve=Ue.exports,He=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group"},[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("div",{staticClass:"input-group-append"},[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)};He._withStripped=!0;var Ye=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"progress",style:t.styleHeight},[a("div",{staticClass:"progress-bar",style:t.styleWidth,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuenow":t.value,"aria-valuemax":t.max}})])};Ye._withStripped=!0;var Ge={name:"ProgressBar",props:{max:{type:Number,default:100},value:{type:Number,default:0},height:{type:String,default:null}},computed:{styleWidth(){return{width:this.value/this.max*100+"%"}},styleHeight(){return{height:this.height||null}}}},Je=(0,_.Z)(Ge,Ye,[],!1,null,null,null);Je.options.__file="assets/js/app/editor/Components/ProgressBar.vue";var We={name:"EditorPassword",components:{ProgressBar:Je.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(t){const e=t.target,a=n()("#"+this.id)[0],s=a.getAttribute("type");"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(t){const e=t.target;if(this.strength){let t=window.zxcvbn(e.value);this.$refs.progressBar.value=t.score}}}},Ke=(0,_.Z)(We,He,[],!1,null,null,null);Ke.options.__file="assets/js/app/editor/Components/Password.vue";var Xe=Ke.exports,Qe=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)])};Qe._withStripped=!0;var ta={name:"ThemeSelect",data:()=>({themes:[{name:"Default",value:"default",colors:["#1a5597","#053b79","#0c223b","#ffffff"]},{name:"Light",value:"light",colors:["#1a5597","#053b79","#ffffff","#f9f9f9"]}]}),methods:{selectTheme(t){const e=document.querySelector("#theme"),a=`${e.getAttribute("href").split("theme-")[0]}theme-${t}.css`;e.setAttribute("href",a)}}},ea=(0,_.Z)(ta,Qe,[],!1,null,null,null);ea.options.__file="assets/js/app/editor/Components/ThemeSelect.vue";var aa=ea.exports,sa=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)};sa._withStripped=!0;var ia={name:"EditorLanguage",components:{Multiselect:Ft()},props:{label:String,locales:Array,current:String},data:()=>({locale:{}}),mounted(){if(this.current){let t=this.locales.filter((t=>t.code===this.current));t.length>0?this.locale=t[0]:this.locale=this.locales[0]}else this.locale=this.locales[0]},methods:{switchLocale(){const t=this.locale.link+location.hash;return window.location.href=t}}},la=ia,na=(0,_.Z)(la,sa,[],!1,null,null,null);na.options.__file="assets/js/app/editor/Components/Language.vue";var ra=na.exports,oa=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:{title:t.name+" filename",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:{title:t.name+" title",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}},[a("span",{staticClass:"sr-only"},[t._v(t._s(t.labels.button_upload_options))])]),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:{title:t.name+" filename",name:t.fieldName,tabindex:"-1",type:"file",accept:t.acceptedExtensions},on:{change:function(e){return t.uploadFile(e.target.files[0])}}})],1)};oa._withStripped=!0;var ca={name:"EditorFile",mixins:[Mt],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(){return{isDragging:!1,dragCount:0,progress:0,filenameData:this.filename,titleData:this.title}},computed:{fieldName(){return this.name+"[]"},token(){return this.csrfToken},acceptedExtensions(){return this.extensions.map((t=>"."+t)).join()},getPlaceholder(){return this.placeholder?this.placeholder:this.labels.placeholder_title}},methods:{onMoveFileDown(){this.$emit("moveFileDown",this)},onMoveFileUp(){this.$emit("moveFileUp",this)},onRemoveFile(){this.filenameData="",this.titleData="",this.$emit("remove",this)},selectUploadFile(){this.$refs.selectFile.click()},selectServerFile(){let t=this;i().get(this.filelist).then((e=>{Te().prompt({title:"Select a file",inputType:"select",inputOptions:this.filterServerFiles(e.data),callback:function(e){e&&(t.filenameData=e)}}),window.$(".bootbox-input").attr("name","bootbox-input"),window.reEnablePatientButtons()})).catch((t=>{console.warn(t),window.reEnablePatientButtons()}))},onDragEnter(t){return t.preventDefault(),this.dragCount++,this.isDragging=!0,!1},onDragLeave(t){t.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onDrop(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.dragCount=0;const e=t.dataTransfer.files[0];return this.uploadFile(e)},uploadFile(t){const e=new FormData,a={onUploadProgress:t=>{const e=Math.round(100*t.loaded/t.total);this.progress=e},headers:{"Content-Type":"multipart/form-data"}};e.append("file",t),e.append("_csrf_token",this.token),i().post(this.directory,e,a).then((t=>{this.filenameData=t.data,this.progress=0})).catch((t=>{const e=t.response.data;let a="unknown error";"string"==typeof e||e instanceof String?a=e:e.error&&e.error.message&&(a=e.error.message),Te().alert(a+"
File did not upload."),console.warn(t),this.progress=0}))},filterServerFiles(t){let e=this;return t.filter((function(t){let a=/(?:\.([^.]+))?$/.exec(t.text)[1];return e.extensions.includes(a)}))}}},da=(0,_.Z)(ca,oa,[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);da.options.__file="assets/js/app/editor/Components/File.vue";var ua=da.exports,ma=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(" "),0===t.containerFiles.length?a("div",[a("input",{attrs:{name:t.name,value:"",type:"hidden"}})]):t._e(),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)};ma._withStripped=!0;var pa={name:"EditorFile",components:{"editor-file":ua},props:{files:Array,directory:String,name:String,filelist:String,csrfToken:String,labels:Object,extensions:Array,attributesLink:String,limit:Number,readonly:Boolean},data:function(){let t=0,e=this.files;return e.forEach((function(e,a,s){s[a].id=a,t++})),{counter:t,containerFiles:e}},computed:{allowMore:function(){return!this.readonly&&this.containerFiles.length0===t,isLastInFilelist(t){return t===this.containerFiles.length-1},getFieldNumberFromElement:t=>parseInt([...t.fieldName.matchAll(/\d+/g)].splice(-1).pop()[0]),onMoveFileDown(t){let e=this.getFieldNumberFromElement(t);if(e0){let t=this.containerFiles[e],a=this.containerFiles[e-1];this.containerFiles.splice(e-1,2,t,a)}},onRemoveFile(t){let e=this.getFieldNumberFromElement(t);this.containerFiles.splice(e,1)},fieldName(t){return this.name+"["+t+"]"},addFile(){let 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)}}},ga=(0,_.Z)(pa,ma,[],!1,null,null,null);ga.options.__file="assets/js/app/editor/Components/Filelist.vue";var ha=ga.exports,fa=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",class:{collapsed:"expanded"!==t.variant}},[a("div",{staticClass:"d-block summary"},[a("div",{staticClass:"card-header d-flex align-items-center"},[a("i",{staticClass:"card-marker-caret fa fa-caret-right"}),t._v(" "),a("span",{staticClass:"badge badge-secondary inline",attrs:{title:e.label}},[a("i",{class:[e.icon,"fas"]})]),t._v(" "),a("div",{staticClass:"collection-item-title",attrs:{"data-label":e.label}},[t._v("\n "+t._s(e.label)+"\n ")]),t._v(" "),a(t.compile(e.buttons),{tag:"div"})],1)]),t._v(" "),a("div",{staticClass:"card details"},[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)};fa._withStripped=!0;var va=a(81317),ba={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(){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(){return this.templateSelectOptions[0].key},allowMore:function(){return this.counterc.Z.compile(t),setAllButtonsStates(t){let e=this;t.children(e.selector.item).each((function(){e.setButtonsState(window.$(this))}))},setButtonsState(t){t.find(this.selector.moveUp).first().removeAttr("disabled"),t.find(this.selector.moveDown).first().removeAttr("disabled"),this.getPreviousCollectionItem(t)||t.find(this.selector.moveUp).first().attr("disabled","disabled"),this.getNextCollectionItem(t)||t.find(this.selector.moveDown).first().attr("disabled","disabled")},getPreviousCollectionItem:t=>0!==t.prev(".collection-item").length&&t.prev(".collection-item"),getNextCollectionItem:t=>0!==t.next(".collection-item").length&&t.next(".collection-item"),getCollectionItemFromPressedButton:t=>window.$(t).closest(".collection-item").last(),addCollectionItem(t){let e=n().extend(!0,{},this.getSelectedTemplate(t));const a=va();e.content=e.content.replace(new RegExp(e.hash,"g"),a),e.hash=a,this.elements.push(e),this.counter++},getSelectedTemplate(t){let e=(n()(t.target).attr("data-template")?n()(t.target):n()(t.target).closest("[data-template]")).attr("data-template");return this.templates.find((t=>t.label===e))}}},_a=(0,_.Z)(ba,fa,[],!1,null,null,null);_a.options.__file="assets/js/app/editor/Components/Collection.vue";var ya=_a.exports,wa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{class:["custom-control","custom-"+t.mode]},[a("input",{staticClass:"custom-control-input",attrs:{id:t.id,name:t.name,type:"checkbox",readonly:t.readonly},domProps:{checked:t.value},on:{change:function(e){t.liveValue=e.target.checked}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:t.name}},[t._v(t._s(t.label))]),t._v(" "),a("input",{attrs:{type:"hidden",name:t.name},domProps:{value:t.liveValue}})])])};wa._withStripped=!0;var Ca={name:"EditorCheckbox",props:{value:{type:Boolean},name:{type:String},id:{type:String},required:{type:Boolean},readonly:{type:Boolean},label:{type:String},mode:{type:String}},data(){return{liveValue:this.value}}},Sa=(0,_.Z)(Ca,wa,[],!1,null,null,null);Sa.options.__file="assets/js/app/editor/Components/Checkbox.vue";var xa=Sa.exports,ka={warnFor(t){const e=function(t){return n()(t).serialize()},a=e(t);n()(window).on("beforeunload",(function(s){const i=e(t);if(a!==i)return function(t){const e="It looks like you have been editing something. If you leave before saving, your changes will be lost.";return(t||window.event).returnValue=e,e}(s)})),n()(t).on("submit",(function(){n()(window).off("beforeunload")}))}};c.Z.component("editor-checkbox",xa),c.Z.component("editor-date",Qt),c.Z.component("editor-embed",$e),c.Z.component("editor-email",Ve),c.Z.component("editor-password",Xe),c.Z.component("editor-html",pe),c.Z.component("editor-image",Le),c.Z.component("editor-imagelist",Me),c.Z.component("editor-file",ua),c.Z.component("editor-filelist",ha),c.Z.component("editor-markdown",ve),c.Z.component("editor-number",oe),c.Z.component("editor-select",ie),c.Z.component("editor-slug",Gt),c.Z.component("editor-text",Ut),c.Z.component("editor-textarea",we),c.Z.component("editor-collection",ya),c.Z.component("editor-set",Set),c.Z.component("general-language",ra),c.Z.component("theme-select",aa);const Da="editor",Ea="#editor";document.getElementById(Da)&&new c.Z({store:Nt,el:Ea,name:"BoltEditor",mounted:function(){setTimeout((function(){ka.warnFor("#editor form")}),2e3)}}),c.Z.component("field-password",Xe),c.Z.component("editor-text",Ut);const ja="login-form";document.getElementById(ja)&&new c.Z({el:"#"+ja,name:"BoltLogin",components:{"editor-text":Ut,"editor-password":Xe}});Te().setDefaults({locale:"en"});let $a=n()("html").attr("lang");$a&&Te().setLocale($a),n()("*[data-confirmation]").on("click",(function(){const t=n()(this),e=n()(this).attr("href"),a=n()(this).data("confirmation");if(!t.data("confirmed"))return Te().confirm(a,(function(a){a&&e&&(window.location=e),a&&(t.attr("data-confirmed",!0),t.click())})),!1})),n()("a[data-patience], button[data-patience]").on("click",(function(){const t=n()(this),e=t.find("i");if(n()(this).attr("form")&&!n()("#"+n()(this).attr("form"))[0].checkValidity())return;const a=e.attr("class").match(/[mp][tblrxy]-[0-5]/i),s="fas fa-w fa-cog fa-spin "+(a||"");n()(this).attr("data-original-class",e.attr("class")),e.attr("class",s),window.setTimeout((function(){t.attr("disabled",!0)}),50)})),window.reEnablePatientButtons=function(){n()("*[data-original-class]").each((function(){const t=n()(this).find("i");n()(this).attr("disabled",!1),t.attr("class",n()(this).attr("data-original-class"))}))},(0,a(18515).Z)("ctrl+s, command+s",(function(){return!n()("form#editcontent")||(n()("form#editcontent button[name=save]").click(),!1)}));window.assetsVersion="5.1.4",n()(document).ready((function(){n()("html").addClass("js"),n()(".admin__sidebar").addClass("admin__sidebar--is-collapsed"),n()(".admin-sidebar-toggler").on("click",(function(){n()(".admin__sidebar").hasClass("admin__sidebar--is-collapsed")?(n()(".admin__sidebar").addClass("admin__sidebar--is-expanded").removeClass("admin__sidebar--is-collapsed"),n()(this).toggleClass("is-active")):(n()(".admin__sidebar").addClass("admin__sidebar--is-collapsed").removeClass("admin__sidebar--is-expanded"),n()(this).toggleClass("is-active"))}));let t=location.href.replace(/\/$/,"");if(location.hash){const e=t.split("#");n()('a[href="#'+e[1]+'"]').tab("show"),t=location.href.replace(/\/#/,"#"),history.replaceState(null,null,t),setTimeout((()=>{n()(window).scrollTop(0)}),50)}function e(t){const e=n()(t.target).attr("data-errormessage");t.target.setCustomValidity(e)}function a(t){t.target.setCustomValidity("")}n()('a[data-toggle="pill"]').on("click",(function(){let e;const a=n()(this).attr("href");e=t.split("#")[0]+a,history.replaceState(null,null,e)})),n()(".datetime-relative").each((function(){n()(this).text(d.ou.fromISO(n()(this).text()).toRelative())})),n()('[data-toggle="popover"]').popover(),n()('#editor button[type="submit"]').click((function(){n()("input:invalid").each((function(){var t=n()(this).closest(".tab-pane").attr("id");return n()('.nav a[href="#'+t+'"]').tab("show"),!1}))})),n()("[data-readonly]").on("keydown paste",(function(t){t.preventDefault()})),n()(".editor--date").siblings().prop("readonly",!1).attr("data-readonly","readonly"),n()(".editor--date").on("change",(t=>{const e=n()(t.target).parent().find('input[data-readonly="readonly"]');e.val()?e[0].setCustomValidity(""):e[0].setCustomValidity("Please fill out this field.")})),n()("[data-errormessage]").on("invalid",e),n()("[data-errormessage]").on("input",a),n()(".editor--date").each((function(){let t=n()(this).siblings();const s=n()(this).attr("data-errormessage");t.each((function(){n()(this).attr("data-errormessage",s).on("invalid",e).on("input",a)}))})),n()("[data-copy-to-clipboard]").on("click",(function(t){const e=n()(t.target);var a=document.createElement("input");a.setAttribute("id","copy"),e.parent().append(a),a.value=e.attr("data-copy-to-clipboard"),a.focus(),a.select(),document.execCommand("copy"),e.parent().find("#copy").remove()}))})),i().defaults.headers.common={accept:"application/vnd.api+json"}},79948:function(t,e,a){var s={"./ar.js":28696,"./at.js":6204,"./az.js":77712,"./be.js":71836,"./bg.js":48082,"./bn.js":16273,"./bs.js":36302,"./cat.js":24375,"./cs.js":34508,"./cy.js":547,"./da.js":29751,"./de.js":72805,"./default.js":63359,"./eo.js":8814,"./es.js":80969,"./et.js":87230,"./fa.js":66942,"./fi.js":65572,"./fo.js":17141,"./fr.js":80401,"./ga.js":58757,"./gr.js":73300,"./he.js":92036,"./hi.js":10184,"./hr.js":66746,"./hu.js":22833,"./id.js":88318,"./index.js":17908,"./is.js":74732,"./it.js":29088,"./ja.js":46741,"./ka.js":16638,"./km.js":4760,"./ko.js":1844,"./kz.js":57393,"./lt.js":76625,"./lv.js":87826,"./mk.js":14019,"./mn.js":31989,"./ms.js":85671,"./my.js":37767,"./nl.js":36679,"./no.js":7530,"./pa.js":96407,"./pl.js":79323,"./pt.js":6924,"./ro.js":1375,"./ru.js":88809,"./si.js":58293,"./sk.js":51781,"./sl.js":37e3,"./sq.js":2569,"./sr-cyr.js":29313,"./sr.js":31438,"./sv.js":19144,"./th.js":3845,"./tr.js":54539,"./uk.js":31193,"./uz.js":62738,"./uz_latn.js":69294,"./vn.js":59467,"./zh-tw.js":27821,"./zh.js":10799};function i(t){var e=l(t);return a(e)}function l(t){if(!a.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}i.keys=function(){return Object.keys(s)},i.resolve=l,t.exports=i,i.id=79948},62562:function(){}},a={};function s(t){var i=a[t];if(void 0!==i)return i.exports;var l=a[t]={id:t,loaded:!1,exports:{}};return e[t].call(l.exports,l,l.exports,s),l.loaded=!0,l.exports}s.m=e,t=[],s.O=function(e,a,i,l){if(!a){var n=1/0;for(d=0;d=l)&&Object.keys(s.O).every((function(t){return s.O[t](a[o])}))?a.splice(o--,1):(r=!1,l0&&t[d-1][2]>l;d--)t[d]=t[d-1];t[d]=[a,i,l]},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},s.d=function(t,e){for(var a in e)s.o(e,a)&&!s.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},s.p="/assets/",function(){var t={413:0};s.O.j=function(e){return 0===t[e]};var e=function(e,a){var i,l,n=a[0],r=a[1],o=a[2],c=0;if(n.some((function(e){return 0!==t[e]}))){for(i in r)s.o(r,i)&&(s.m[i]=r[i]);if(o)var d=o(s)}for(e&&e(a);c (https://boltcms.io)", "license": "MIT",