HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode/public/assets/admin/js/main-form.39aa8e28.js
(function(e){function t(t){for(var i,a,s=t[0],c=t[1],l=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);u&&u(t);while(p.length)p.shift()();return r.push.apply(r,l||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var c=n[s];0!==o[c]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={"main-form":0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=i,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var u=c;r.push([2,"chunk-vendors","chunk-common"]),n()})({"0bd3":function(e,t,n){"use strict";var i=n("a298"),o=n.n(i);o.a},"109f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block__body"},[n("a17-wysiwyg-tiptap",{attrs:{name:e.fieldName("html"),label:"Body",options:{modules:{toolbar:["table"],syntax:!1}},placeholder:"Insert your table",editSource:"true",inStore:"value"}})],1)},o=[],r=n("f0f8"),a={name:"A17Bodytable",mixins:[r["a"]]},s=a,c=n("2877"),l=Object(c["a"])(s,i,o,!1,null,null,null);t["default"]=l.exports},1322:function(e,t,n){},1591:function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="1591"},2:function(e,t,n){e.exports=n("f618")},"25a5":function(e,t,n){},"25ba":function(e,t,n){},2741:function(e,t,n){},2774:function(e,t,n){"use strict";var i=n("e689"),o=n.n(i);o.a},"2d34":function(e,t,n){"use strict";var i=n("e718"),o=n.n(i);o.a},"2f7f":function(e,t,n){"use strict";var i=n("3d14"),o=n.n(i);o.a},"33d8":function(e,t,n){"use strict";var i=n("5886"),o=n.n(i);o.a},3565:function(e,t,n){"use strict";var i=n("d43d"),o=n.n(i);o.a},"3a97":function(e,t,n){},"3d14":function(e,t,n){},"3f1c":function(e,t,n){},"3fee":function(e,t,n){"use strict";var i=n("3f1c"),o=n.n(i);o.a},"548b":function(e,t,n){},5886:function(e,t,n){},"611f":function(e,t,n){"use strict";var i=n("7de1"),o=n.n(i);o.a},"62c8":function(e,t,n){"use strict";var i=n("a8c7"),o=n.n(i);o.a},"6b23":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block__body"},[n("a17-locale",{attrs:{type:"a17-textfield",attributes:{label:"Title",name:e.fieldName("text"),type:"text",maxlength:250,inStore:"value"}}})],1)},o=[],r=n("f0f8"),a={name:"A17Title",mixins:[r["a"]]},s=a,c=n("2877"),l=Object(c["a"])(s,i,o,!1,null,null,null);t["default"]=l.exports},"6b9b":function(e,t,n){"use strict";var i=n("c830"),o=n.n(i);o.a},"7de1":function(e,t,n){},"7ebf":function(e,t,n){"use strict";var i=n("faa7"),o=n.n(i);o.a},"80d1":function(e,t,n){},"912f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block__body"},[n("a17-wysiwyg",{attrs:{name:e.fieldName("html"),inStore:"value"}})],1)},o=[],r=n("f0f8"),a={name:"A17Bodytext",mixins:[r["a"]]},s=a,c=n("2877"),l=Object(c["a"])(s,i,o,!1,null,null,null);t["default"]=l.exports},9748:function(e,t,n){var i={"./Block.vue":"ecec","./BlockImage.vue":"ac09","./BlockTable.vue":"109f","./BlockTitle.vue":"6b23","./BlockWysiwyg.vue":"912f"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="9748"},9881:function(e,t,n){"use strict";var i=n("f3e7"),o=n.n(i);o.a},"98a8":function(e,t,n){},9922:function(e,t,n){"use strict";var i=n("98a8"),o=n.n(i);o.a},a298:function(e,t,n){},a70b:function(e,t,n){"use strict";var i=n("548b"),o=n.n(i);o.a},a8c7:function(e,t,n){},ac09:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block__body"},[n("a17-inputframe",{attrs:{label:"Image",name:"medias.image"}},[n("a17-mediafield",{attrs:{name:e.fieldName("image"),"crop-context":"image"}})],1)],1)},o=[],r=n("f0f8"),a={name:"A17Image",mixins:[r["a"]]},s=a,c=n("2877"),l=Object(c["a"])(s,i,o,!1,null,null,null);t["default"]=l.exports},ac28:function(e,t,n){},af57:function(e,t,n){"use strict";var i=n("25a5"),o=n.n(i);o.a},b0c8:function(e,t,n){"use strict";var i=n("80d1"),o=n.n(i);o.a},b62f:function(e,t,n){"use strict";var i=n("1322"),o=n.n(i);o.a},ba98:function(e,t,n){},c830:function(e,t,n){},d43d:function(e,t,n){},d5be:function(e,t,n){"use strict";var i=n("fdff"),o=n.n(i);o.a},da0c:function(e,t,n){"use strict";var i=n("ac28"),o=n.n(i);o.a},e005:function(e,t,n){"use strict";var i=n("3a97"),o=n.n(i);o.a},e431:function(e,t,n){"use strict";var i=n("ba98"),o=n.n(i);o.a},e689:function(e,t,n){},e718:function(e,t,n){},e8f1:function(e,t,n){"use strict";var i=n("25ba"),o=n.n(i);o.a},ecec:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block",class:e.blockClasses},[n("div",{staticClass:"block__header",on:{dblclick:function(t){return t.preventDefault(),e.toggleExpand()}}},[n("span",{staticClass:"block__handle"}),n("div",{staticClass:"block__toggle"},[e.withMoveDropdown?n("a17-dropdown",{ref:e.moveDropdown,staticClass:"f--small",attrs:{position:"bottom-left",maxHeight:270}},[n("span",{staticClass:"block__counter f--tiny",on:{click:function(t){return e.$refs[e.moveDropdown].toggle()}}},[e._v(e._s(e.index+1))]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[e._t("dropdown-numbers")],2)]):n("span",{staticClass:"block__counter f--tiny"},[e._v(e._s(e.index+1))]),n("span",{staticClass:"block__title"},[e._v(e._s(e.block.title))])],1),n("div",{staticClass:"block__actions"},[e._t("block-actions"),e.withAddDropdown?n("a17-dropdown",{ref:e.addDropdown,attrs:{position:"bottom-right"},on:{open:function(t){e.hover=!0},close:function(t){e.hover=!1}}},[n("a17-button",{attrs:{variant:"icon","data-action":""},on:{click:function(t){return e.$refs[e.addDropdown].toggle()}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"add"}})]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[e._t("dropdown-add")],2)],1):e._e(),n("a17-button",{attrs:{variant:"icon","data-action":"","aria-expanded":e.visible?"true":"false"},on:{click:function(t){return e.toggleExpand()}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"expand"}})]),n("a17-dropdown",{ref:e.actionsDropdown,attrs:{position:"bottom-right"},on:{open:function(t){e.hover=!0},close:function(t){e.hover=!1}}},[n("a17-button",{attrs:{variant:"icon"},on:{click:function(t){return e.$refs[e.actionsDropdown].toggle()}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"more-dots"}})]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[e._t("dropdown-action")],2)],1)],2)]),n("div",{staticClass:"block__content",attrs:{"aria-hidden":!e.visible||null}},[n(""+e.block.type,e._b({key:"`form_${block.type}_${block.id}`",tag:"component",attrs:{name:e.componentName(e.block.id)}},"component",e.block.attributes,!1)),n("a17-inputframe",{attrs:{size:"small",label:"",name:"block."+e.block.id}})],1)])},o=[],r=n("4e53"),a={name:"A17Block",props:{index:{type:Number,default:0},opened:{type:Boolean,default:!0},closed:{type:Boolean,default:!1},size:{type:String,default:""},block:{type:Object,default:function(){return{}}}},data:function(){return{visible:!0,hover:!1,withMoveDropdown:!0,withAddDropdown:!0}},filters:r["a"],computed:{blockClasses:function(){return[this.visible?"block--open":"",this.hover?"block--focus":"",this.size?"block--".concat(this.size):""]},moveDropdown:function(){return"moveBlock".concat(this.index,"Dropdown")},actionsDropdown:function(){return"action".concat(this.block.id,"Dropdown")},addDropdown:function(){return"add".concat(this.block.id,"Dropdown")}},watch:{opened:function(){this.opened||(this.visible=!1)},closed:function(){this.closed||(this.visible=!0)}},methods:{toggleExpand:function(){this.visible=!this.visible,this.$emit("expand",this.visible)},componentName:function(e){return"blocks["+e+"]"}},beforeMount:function(){this.$slots["dropdown-numbers"]||(this.withMoveDropdown=!1),this.$slots["dropdown-add"]||(this.withAddDropdown=!1)}},s=a,c=(n("2d34"),n("3fee"),n("2877")),l=Object(c["a"])(s,i,o,!1,null,"751399b0",null);t["default"]=l.exports},f3e7:function(e,t,n){},f618:function(e,t,n){"use strict";n.r(t);var i=n("a026"),o=n("2f62"),r=n("1539"),a=n("0429"),s=n("f1af"),c=n("f99e"),l=n("b171"),u=(n("878a"),n("16f9")),d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stickyNav"},[n("div",{staticClass:"container"},[n("div",{staticClass:"stickyNav__nav"},[e.navItems.length>1?n("div",{staticClass:"stickyNav__links"},e._l(e.navItems,(function(t,i){return n("a",{key:t.fieldset,class:{"s--on":t.active},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.scrollToFieldset(i)}}},[e._v(e._s(t.label))])})),0):e._e(),e._t("title")],2),n("div",{staticClass:"stickyNav__actions"},[e._t("actions")],2)])])},p=[],f=n("b047"),v=n.n(f),b=n("2c83"),h={name:"A17StickyNav",props:{items:{type:Array,default:function(){return[]}}},data:function(){return{lastScrollPos:0,topOffset:70,ticking:!1,navItems:this.items,clickedFieldset:-1,fieldset:[]}},methods:{getFieldsetPosition:function(){var e=this;this.lastScrollPos=window.pageYOffset,this.navItems.forEach((function(t,n){var o=e.fieldset[n],r=o?o.getBoundingClientRect().top+e.lastScrollPos:0;i["a"].set(t,"position",r)}))},setActiveItems:function(){var e=this,t=0;this.navItems.forEach((function(n,o){var r=n.position-e.topOffset<e.lastScrollPos;i["a"].set(n,"active",!1),r&&o>0&&(t=o)})),this.clickedFieldset>=0?i["a"].set(e.navItems[e.clickedFieldset],"active",!0):i["a"].set(e.navItems[t],"active",!0)},refresh:function(){var e=this;e.clickedFieldset=-1,this.getFieldsetPosition(),this.setActiveItems(),e.ticking=!1},_resize:v()((function(){this.lastScrollPos=window.pageYOffset,this.refresh()}),200),_scroll:function(){var e=this;this.lastScrollPos=window.pageYOffset,e.ticking||window.requestAnimationFrame((function(){e.refresh(),e.ticking=!1})),e.ticking=!0},scrollToFieldset:function(e){var t=this,n=this.navItems[e].position-this.topOffset+1;this.dispose(),this.clickedFieldset=e,this.getFieldsetPosition(),this.setActiveItems(),Object(b["a"])({offset:n,easing:"easeOut",onComplete:function(){t.init()}})},init:function(){window.addEventListener("scroll",this._scroll),window.addEventListener("resize",this._resize)},dispose:function(){window.removeEventListener("scroll",this._scroll),window.removeEventListener("resize",this._resize)}},mounted:function(){var e=this;this.navItems.forEach((function(t,n){var i=document.querySelector("#"+t.fieldset);i?e.fieldset.push(i):e.fieldset.push(null)})),this.refresh(),this.init()},beforeDestroy:function(){this.dispose()}},m=h,_=(n("7ebf"),n("2877")),g=Object(_["a"])(m,d,p,!1,null,"1a811cfe",null),w=g.exports,y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"titleEditor",class:e.titleEditorClasses},[n("div",{staticClass:"titleEditor__preview"},[n("h2",{staticClass:"titleEditor__title",class:{"titleEditor__title-only":!e.permalink}},[e.editableTitle?n("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.$refs.editModal.open()}}},[n("span",{staticClass:"f--underlined--o"},[e._v(e._s(e.title))]),e._v(" "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"edit"}})]):n("span",[e._v(e._s(e.customTitle?e.customTitle:e.title))])]),!e.permalink&&!e.customPermalink||e.showModal?e._e():n("a",{staticClass:"titleEditor__permalink f--small",attrs:{href:e.fullUrl,target:"_blank"}},[n("span",{staticClass:"f--note f--external f--underlined--o"},[e._v(e._s(e._f("prettierUrl")(e.visibleUrl)))])]),e.showModal?n("span",{staticClass:"titleEditor__permalink f--small f--note f--external f--underlined--o"},[e._v(e._s(e._f("prettierUrl")(e.visibleUrl)))]):e._e(),n("a17-modal",{ref:"editModal",staticClass:"modal--form",attrs:{title:e.modalTitle,forceLock:e.disabled}},[n("a17-langmanager"),n("form",{ref:"modalForm",attrs:{action:"#"},on:{submit:function(t){return t.preventDefault(),e.update(t)}}},[e._t("modal-form"),n("a17-modal-validation",{attrs:{mode:e.mode},on:{disable:e.lockModal}})],2)],1)],1),e._t("default")],2)},O=[],k=n("4e53"),P=n("3b37"),E=n("6d94"),C=n("f03e"),j=n("7d9f");function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T={name:"A17TitleEditor",mixins:[C["a"],j["a"]],components:{"a17-modal-validation":E["a"],"a17-langmanager":P["a"]},props:{modalTitle:{type:String,default:function(){return this.$trans("modal.update.title")}},warningMessage:{type:String,default:"Missing title"},showModal:{type:Boolean,default:!1},name:{default:"title"},editableTitle:{type:Boolean,default:!0},customTitle:{type:String,default:""},customPermalink:{type:String,default:""}},data:function(){return{disabled:!1}},mounted:function(){this.showModal&&this.$refs.editModal.open()},computed:S(S({titleEditorClasses:function(){return{"titleEditor--error":this.error||this.title===this.warningMessage}},mode:function(){return this.showModal?"done":this.title.length>0?"update":"create"},fullUrl:function(){return this.customPermalink||this.baseUrl.replace("{language}",this.currentLocale.value).replace("{preview}/",this.published?"":"admin-preview/")+this.permalink},visibleUrl:function(){return this.customPermalink||this.baseUrl.replace("{language}",this.currentLocale.value).replace("{preview}/","")+this.permalink},title:function(){var e=this.fieldValueByName(this.name)?this.fieldValueByName(this.name):"",t="string"===typeof e?e:e[this.currentLocale.value];return t||this.warningMessage},permalink:function(){return this.fieldValueByName("slug")[this.currentLocale.value]}},Object(o["c"])({baseUrl:function(e){return e.form.baseUrl},currentLocale:function(e){return e.language.active},languages:function(e){return e.language.all},fields:function(e){return e.form.fields},published:function(e){return e.publication.published}})),Object(o["b"])(["fieldValueByName"])),filters:k["a"],methods:{update:function(){this.$refs.editModal.hide()},lockModal:function(e){this.disabled=e}}},L=T,B=(n("33d8"),Object(_["a"])(L,y,O,!1,null,"4e050f8e",null)),A=B.exports,x=n("4168"),I=n("75fb"),R=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"publisher__wrapper"},[e.withPublicationToggle?n("a17-switcher",{attrs:{title:e.$trans("publisher.switcher-title","Status"),name:"publish_state",textEnabled:e.textEnabled,textDisabled:e.textDisabled}}):e._e(),e._t("default"),e.reviewProcess&&e.reviewProcess.length?n("a17-reviewaccordion",{attrs:{options:e.reviewProcess,name:"review_process",value:e.reviewProcessCompleteValues,open:e.openStates["A17Reviewaccordion"]},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.review-status")))]):e._e(),e.visibility&&e.visibilityOptions&&e.visibilityOptions.length?n("a17-radioaccordion",{attrs:{radios:e.visibilityOptions,name:"visibility",value:e.visibility,open:e.openStates["A17Radioaccordion"]},on:{open:e.openCloseAccordion,change:e.updateVisibility}},[e._v(e._s(e.$trans("publisher.visibility")))]):e._e(),e.languages&&e.showLanguages&&e.languages.length>1?n("a17-checkboxaccordion",{attrs:{options:e.languages,name:"active_languages",value:e.publishedLanguagesValues,open:e.openStates["A17Checkboxaccordion"]},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.languages")))]):e._e(),e.withPublicationTimeframe?n("a17-pubaccordion",{attrs:{"date-display-format":e.dateDisplayFormat,"date-format":e.dateFormat,date_24h:e.date_24h,open:e.openStates["A17Pubaccordion"]},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.published-on")))]):e._e(),e.revisions.length?n("a17-revaccordion",{attrs:{open:e.openStates["A17Revisions"],revisions:e.revisions},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.revisions")))]):e._e(),e.parents.length?n("a17-parentaccordion",{attrs:{open:e.openStates["A17Parents"],parents:e.parents,value:e.parentId},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.parent-page")))]):e._e(),e.revisions.length?n("div",{staticClass:"publisher__item"},[n("a",{staticClass:"publisher__link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.openPreview(t)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"preview"}}),n("span",{staticClass:"f--link-underlined--o"},[e._v(e._s(e.$trans("publisher.preview")))])])]):e._e(),n("div",{staticClass:"publisher__item publisher__item--btns"},[n("a17-multibutton",{attrs:{options:e.submitOptions,type:"submit",message:e.submitDisableMessage},on:{"button-clicked":e.buttonClicked}})],1)],2)},V=[],M=n("2569"),N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"switcher",class:e.switcherClasses},[n("h4",{staticClass:"switcher__title"},[e._v(e._s(e.title))]),n("label",{staticClass:"switcher__button",attrs:{for:e.name+"_live"}},[e.isChecked?n("span",{staticClass:"switcher__label"},[e._v(e._s(e.formatTextEnabled))]):e._e(),e.isChecked?e._e():n("span",{staticClass:"switcher__label"},[e._v(e._s(e.formatTextDisabled))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.checkedValue,expression:"checkedValue"}],attrs:{type:"checkbox",disabled:e.disabled,name:e.name,id:e.name+"_live",value:"live"},domProps:{checked:Array.isArray(e.checkedValue)?e._i(e.checkedValue,"live")>-1:e.checkedValue},on:{change:function(t){var n=e.checkedValue,i=t.target,o=!!i.checked;if(Array.isArray(n)){var r="live",a=e._i(n,r);i.checked?a<0&&(e.checkedValue=n.concat([r])):a>-1&&(e.checkedValue=n.slice(0,a).concat(n.slice(a+1)))}else e.checkedValue=o}}}),n("span",{staticClass:"switcher__switcher"})])])},U=[],F=n("0d3e"),z=n.n(F);function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G={name:"A17Toggle",props:{name:{type:String,default:""},title:{default:"Status"},disabled:{type:Boolean,default:!1},textEnabled:{type:String,default:"Live"},textDisabled:{type:String,default:"Draft"},textExpired:{type:String,default:"Expired"},textScheduled:{type:String,default:"Scheduled"}},filters:k["a"],computed:K({switcherClasses:function(){return[this.isChecked?"switcher--active":"",this.formatTextEnabled?"switcher--".concat(this.$options.filters.lowercase(this.formatTextEnabled)):""]},isChecked:function(){return this.published},formatTextEnabled:function(){var e=z()(this.startDate,new Date),t=z()(this.endDate,new Date);return this.endDate&&t<0?this.textExpired:this.startDate&&e>0?this.textScheduled:this.textEnabled},formatTextDisabled:function(){return this.textDisabled},checkedValue:{get:function(){return this.published},set:function(e){this.$store.commit(a["m"].UPDATE_PUBLISH_STATE,e),this.$emit("change",e)}}},Object(o["c"])({startDate:function(e){return e.publication.startDate},endDate:function(e){return e.publication.endDate},published:function(e){return e.publication.published}}))},q=G,Y=(n("9922"),Object(_["a"])(q,N,U,!1,null,"2e81738b",null)),Z=Y.exports,J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e._v(e._s(e.currentLabel))]),n("a17-radiogroup",{attrs:{name:e.name,radios:e.radios,initialValue:e.currentValue},on:{change:e.changeValue}})],1)},X=[],Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"accordion",class:e.visibilityClasses},[n("button",{staticClass:"accordion__trigger",attrs:{type:"button","aria-expanded":e.visible?"true":"false"},on:{click:e.onClickVisibility}},[e._t("accordion__title"),n("span",{staticClass:"accordion__value"},[e._t("accordion__value")],2),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})],2),n("transition",{attrs:{css:!1,duration:275},on:{"before-enter":e.beforeEnter,"before-leave":e.beforeLeave,enter:e.enter,leave:e.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"accordion__dropdown",attrs:{"aria-hidden":!e.visible}},[n("div",{staticClass:"accordion__list"},[e._t("default")],2)])])],1)},ee=[],te=n("5a57"),ne={name:"A17Accordion",mixins:[te["a"]],watch:{open:function(){this.visible!==this.open&&(this.visible=this.open)}},methods:{getMaxHeight:function(){return Math.min(250,this.$el.querySelector(".accordion__list").clientHeight+1)},beforeEnter:function(e){e.style.maxHeight="0px"},enter:function(e,t){e.style.maxHeight=this.getMaxHeight()+"px"},beforeLeave:function(e,t){e.style.maxHeight=this.getMaxHeight()+"px"},leave:function(e,t){e.style.maxHeight="0px"}}},ie=ne,oe=(n("e005"),n("62c8"),Object(_["a"])(ie,Q,ee,!1,null,"0dd10376",null)),re=oe.exports,ae={name:"A17Radioaccordion",components:{"a17-accordion":re},mixins:[te["a"]],props:{value:{default:""},title:{default:""},name:{default:""},radios:{default:function(){return[]}}},data:function(){return{currentValue:this.value}},computed:{currentLabel:function(){var e=this.radios.filter(this.isSameValue);return e.length?e[0].label:""}},methods:{isSameValue:function(e){return e.value===this.currentValue},changeValue:function(e){this.currentValue=e,this.$emit("change",e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)}}},se=ae,ce=Object(_["a"])(se,J,X,!1,null,null,null),le=ce.exports,ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e._v(e._s(e.currentLabel))]),n("a17-checkboxgroup",{attrs:{name:e.name,options:e.currentOptions,selected:e.currentValue},on:{change:e.changeValue}})],1)},de=[],pe={name:"A17Reviewaccordion",components:{"a17-accordion":re},mixins:[te["a"]],props:{value:{default:function(){return[]}},title:{type:String,default:""},name:{type:String,default:""},options:{default:function(){return[]}}},data:function(){return{currentOptions:this.options,currentValue:this.value}},computed:{currentLabel:function(){var e="Pending approval",t=this.currentValue[this.currentValue.length-1];return this.currentValue.length&&this.options.forEach((function(n){n.value===t&&(e=n.display)})),e}},methods:{changeValue:function(e){this.currentValue=e,this.$store.commit(a["m"].UPDATE_REVIEW_PROCESS,e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)}}},fe=pe,ve=Object(_["a"])(fe,ue,de,!1,null,null,null),be=ve.exports,he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e._v(e._s(e.currentLabel))]),n("a17-checkboxgroup",{attrs:{name:e.name,options:e.options,selected:e.currentValue,min:1},on:{change:e.changeValue}})],1)},me=[],_e={name:"A17Checkboxaccordion",components:{"a17-accordion":re},mixins:[te["a"]],props:{value:{default:function(){return[]}},title:{type:String,default:""},name:{type:String,default:""},options:{default:function(){return[]}}},data:function(){return{currentValue:this.value}},watch:{value:function(e){this.currentValue=e}},computed:{currentLabel:function(){return this.currentValue.length+" "+this.$trans("publisher.languages-published")}},methods:{changeValue:function(e){this.currentValue=e,this.$store.commit(a["g"].PUBLISH_LANG,e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)}}},ge=_e,we=Object(_["a"])(ge,he,me,!1,null,null,null),ye=we.exports,Oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default"),e._v(" "),n("span",{staticClass:"f--small f--note"},[e._v("("+e._s(e.revisions.length)+")")])],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e._v(e._s(e.$trans("publisher.last-edit"))+" "),n("timeago",{attrs:{"auto-update":1,datetime:new Date(e.revisions[0].datetime)}})],1),n("div",{staticClass:"revaccordion__scroller"},[n("ul",{staticClass:"revaccordion__list"},e._l(e.revisions,(function(t,i){return n("li",{key:t.id,staticClass:"revaccordion__item"},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e.openPreview(t.id)}}},[n("span",{staticClass:"revaccordion__author"},[e._v(e._s(t.author))]),n("span",{staticClass:"revaccordion__datetime"},[0===i?n("span",{staticClass:"tag"},[e._v(e._s(e.$trans("publisher.current")))]):e._e(),e._v(" "+e._s(e._f("formatDate")(t.datetime)))])])])})),0)])])},ke=[],Pe={name:"A17Revisions",components:{"a17-accordion":re},mixins:[te["a"]],props:{revisions:{default:function(){return[]}}},filters:k["a"],methods:{notifyOpen:function(e){this.$emit("open",e,this.$options.name)},openPreview:function(e){this.$root.$refs.preview&&this.$root.$refs.preview.open(parseInt(e))}}},Ee=Pe,Ce=(n("6b9b"),Object(_["a"])(Ee,Oe,ke,!1,null,"042fcdcb",null)),je=Ce.exports,De=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e.startDate?[e._v(" "+e._s(e._f("formatDateWithFormat")(e.startDate,e.dateDisplayFormat))+" ")]:[e._v(" "+e._s(e.defaultStartDate)+" ")]],2),n("div",{staticClass:"accordion__fields"},[n("a17-datepicker",{attrs:{name:"publish_date","place-holder":e.$trans("publisher.start-date"),time_24hr:e.date_24h,altFormat:e.dateFormat,initialValue:e.startDate,maxDate:e.endDate,enableTime:!0,allowInput:!0,staticMode:!0,clear:!0},on:{open:e.openStartCalendar,close:e.closeCalendar,input:e.updateStartDate}}),n("a17-datepicker",{attrs:{name:"end_date","place-holder":e.$trans("publisher.end-date"),time_24hr:e.date_24h,altFormat:e.dateFormat,initialValue:e.endDate,minDate:e.startDate,enableTime:!0,allowInput:!0,staticMode:!0,clear:!0},on:{open:e.openEndCalendar,close:e.closeCalendar,input:e.updateEndDate}})],1)])},Se=[];function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be={name:"A17Pubaccordion",components:{"a17-accordion":re},mixins:[te["a"]],props:{defaultStartDate:{type:String,default:function(){return this.$trans("publisher.immediate")}},defaultEndDate:{type:String,default:""},dateDisplayFormat:{type:String,default:"MMM, DD, YYYY, "+Object(M["b"])()},dateFormat:{type:String,default:null},date_24h:{type:Boolean,default:Object(M["c"])()}},filters:k["a"],computed:Te({},Object(o["c"])({startDate:function(e){return e.publication.startDate},endDate:function(e){return e.publication.endDate}})),methods:{updateStartDate:function(e){this.$store.commit(a["m"].UPDATE_PUBLISH_START_DATE,e)},updateEndDate:function(e){this.$store.commit(a["m"].UPDATE_PUBLISH_END_DATE,e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)},openCalendar:function(){setTimeout((function(){var e=document.querySelectorAll(".accordion.s--open, .accordion.s--open .accordion__dropdown");e.forEach((function(e){e.style.overflow="visible"}))}),10)},openStartCalendar:function(){this.openCalendar()},openEndCalendar:function(){this.openCalendar()},closeCalendar:function(){var e=document.querySelectorAll(".accordion.s--open, .accordion.s--open .accordion__dropdown");e.forEach((function(e){e.style.overflow=""}))}}},Ae=Be,xe=Object(_["a"])(Ae,De,Se,!1,null,null,null),Ie=xe.exports,Re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},domProps:{innerHTML:e._s(e.currentLabel)},slot:"accordion__value"}),n("div",{staticClass:"accordion__fields"},[n("a17-select",{attrs:{name:"parent_id",options:e.options,selected:e.currentValue,size:"small"},on:{change:e.updateSelected}})],1)])},Ve=[],Me=function(e,t){var n=[];function i(e){return Array(e+1).join(t)+" "}function o(e,t){e.forEach((function(e){var r={};if(r.value=e.id,e.edit&&(r.edit=e.edit),r.label=i(t)+e.name,n.push(r),e.children&&e.children.length){var a=t+1;o(e.children,a)}}))}return o(e,0),n};function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze={name:"A17Parents",components:{"a17-accordion":re},mixins:[te["a"]],props:{value:{default:0},parents:{default:function(){return[]}}},computed:Ue({currentLabel:function(){var e=this.options.filter(this.isSameValue);return e.length?e[0].label:""},options:function(){var e=Me(this.parents,"&nbsp;&nbsp;&nbsp;"),t={value:0,label:"(No parent)"};return e.unshift(t),e}},Object(o["c"])({currentValue:function(e){return e.parents.active}})),methods:{isSameValue:function(e){return e.value===this.currentValue},updateSelected:function(e){this.$store.commit(a["k"].UPDATE_PARENT,e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)}}},We=ze,Ke=(n("2774"),Object(_["a"])(We,Re,Ve,!1,null,"5a88e420",null)),He=Ke.exports,Ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"multibutton"},[n("a17-dropdown",{ref:"submitDown",attrs:{position:"bottom-right",width:"full",offset:0}},[e.isDisabled(e.options[0])?n("a17-button",{attrs:{type:"button",variant:"validate",disabled:!0}},[e._v(e._s(e.options[0].text))]):n("a17-button",{attrs:{type:e.type,name:e.options[0].name,variant:"validate"},on:{click:function(t){return e.buttonClicked(e.options[0].name)}}},[e._v(e._s(e.options[0].text))]),e.hasValidOptions?n("button",{staticClass:"multibutton__trigger",attrs:{type:"button"},on:{click:function(t){return e.$refs.submitDown.toggle()}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})]):e._e(),e.otherOptions.length?n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[n("ul",e._l(e.otherOptions,(function(t){return n("li",{key:t.name},[e.isDisabled(t)?n("button",{attrs:{type:"button",disabled:""}},[e._v(e._s(t.text))]):n("button",{attrs:{type:e.type,name:t.name},on:{click:function(n){return e.buttonClicked(t.name)}}},[e._v(e._s(t.text))])])})),0)]):e._e()],1)],1)},qe=[],Ye={name:"A17Multibutton",props:{type:{default:"button"},message:{type:String,default:""},options:{default:function(){return[]}}},data:function(){return{}},computed:{otherOptions:function(){return this.options.length?this.options.slice(1):[]},hasValidOptions:function(){var e=this.options.filter((function(e){return!e.hasOwnProperty("disabled")||!1===e.disabled})),t=Boolean(e.length>0);return!t&&this.message&&this.$store.commit(a["j"].SET_NOTIF,{message:this.message,variant:"success"}),t}},methods:{isDisabled:function(e){return!!e.hasOwnProperty("disabled")&&!0===e.disabled},buttonClicked:function(e){this.$emit("button-clicked",e)}}},Ze=Ye,Je=(n("b0c8"),Object(_["a"])(Ze,Ge,qe,!1,null,"40868c5c",null)),Xe=Je.exports;function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nt={name:"A17Publisher",components:{"a17-switcher":Z,"a17-radioaccordion":le,"a17-checkboxaccordion":ye,"a17-reviewaccordion":be,"a17-revaccordion":je,"a17-parentaccordion":He,"a17-pubaccordion":Ie,"a17-multibutton":Xe},props:{showLanguages:{type:Boolean,default:!0},dateFormat:{type:String,default:null},dateDisplayFormat:{type:String,default:"MMM, DD, YYYY, "+Object(M["b"])()},date_24h:{type:Boolean,default:Object(M["c"])()}},data:function(){return{singleOpen:!0,openStates:{A17Reviewaccordion:!1,A17Radioaccordion:!1,A17Checkboxaccordion:!1,A17Revisions:!1,A17Pubaccordion:!1,A17Parents:!1}}},filters:k["a"],computed:et(et({reviewProcessCompleteValues:function(){var e=[];return this.reviewProcessComplete.length&&this.reviewProcessComplete.forEach((function(t){e.push(t.value)})),e},submitOptions:function(){return this.$store.getters.getSubmitOptions},publishedLanguagesValues:function(){var e=[];return this.publishedLanguages.length&&this.publishedLanguages.forEach((function(t){e.push(t.value)})),e}},Object(o["c"])({languages:function(e){return e.language.all},revisions:function(e){return e.revision.all},parentId:function(e){return e.parents.active},parents:function(e){return e.parents.all},published:function(e){return e.publication.published},publishSubmit:function(e){return e.publication.publishSubmit},textEnabled:function(e){return e.publication.publishedLabel},textDisabled:function(e){return e.publication.draftLabel},withPublicationToggle:function(e){return e.publication.withPublicationToggle},withPublicationTimeframe:function(e){return e.publication.withPublicationTimeframe},visibility:function(e){return e.publication.visibility},visibilityOptions:function(e){return e.publication.visibilityOptions},reviewProcess:function(e){return e.publication.reviewProcess},submitDisableMessage:function(e){return e.publication.submitDisableMessage}})),Object(o["b"])(["publishedLanguages","reviewProcessComplete"])),methods:{buttonClicked:function(e){this.$store.commit(a["m"].UPDATE_SAVE_TYPE,e)},openCloseAccordion:function(e,t){if(this.singleOpen)if(e)for(var n in this.openStates)this.openStates[n]=n===t;else this.openStates[t]=!1},openPreview:function(){this.$root.$refs.preview&&this.$root.$refs.preview.open(0)},updateVisibility:function(e){this.$store.commit(a["m"].UPDATE_PUBLISH_VISIBILITY,e)},openMoveToTrashModal:function(){this.$parent.$refs.moveToTrashModal.open()}}},it=nt,ot=(n("e8f1"),Object(_["a"])(it,R,V,!1,null,"6d7750c6",null)),rt=ot.exports,at=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.parents.length||e.hasUrl?n("div",{staticClass:"pagenav"},[e.parents.length?n("div",{staticClass:"pagenav__form"},[n("a17-vselect",{attrs:{name:"parents_sources",placeholder:e.placeholder,size:"large",searchable:!0,options:e.options},on:{change:e.gotoUrl}})],1):e._e(),e.hasUrl?n("nav",{staticClass:"pagenav__nav"},[e.previousUrl?n("a",{staticClass:"pagenav__btn",attrs:{href:e.previousUrl}},[e._v("← "+e._s(e.previousLabel))]):n("span",{staticClass:"pagenav__btn"},[e._v("← "+e._s(e.previousLabel))]),e.nextUrl?n("a",{staticClass:"pagenav__btn",attrs:{href:e.nextUrl}},[e._v(e._s(e.nextLabel)+" →")]):n("span",{staticClass:"pagenav__btn"},[e._v(e._s(e.nextLabel)+" →")])]):e._e()]):e._e()},st=[];function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt={name:"A17PageNav",props:{previousLabel:{type:String,default:"Previous page"},nextLabel:{type:String,default:"Next page"},previousUrl:{type:String,default:""},nextUrl:{type:String,default:""},placeholder:{type:String,default:""}},data:function(){return{}},computed:lt({hasUrl:function(){return this.previousUrl||this.nextUrl},options:function(){return Me(this.parents,"–")}},Object(o["c"])({parents:function(e){return e.parents.all}})),methods:{gotoUrl:function(e){e.edit&&(window.location.href=e.edit)}},beforeMount:function(){}},pt=dt,ft=(n("ffdb"),Object(_["a"])(pt,at,st,!1,null,"761dbeaa",null)),vt=ft.exports,bt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"content"},[n("draggable",{staticClass:"content__container",attrs:{options:e.dragOptions},model:{value:e.blocks,callback:function(t){e.blocks=t},expression:"blocks"}},[n("transition-group",{attrs:{name:"draggable_list",tag:"div"}},e._l(e.blocks,(function(t,i){return n("div",{key:t.id,staticClass:"content__item"},[n("a17-block",{ref:"blockList",refInFor:!0,attrs:{block:t,index:i,opened:e.opened,closed:e.closed},on:{expand:e.setOpened}},[e._l(e.availableBlocks,(function(t){return[e.availableBlocks.length?n("button",{key:t.component,attrs:{slot:"dropdown-add",type:"button"},on:{click:function(n){return e.addBlock(t,i+1)}},slot:"dropdown-add"},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:t.icon}}),e._v(" "+e._s(t.title))]):e._e()]})),n("div",{attrs:{slot:"dropdown-action"},slot:"dropdown-action"},[e.opened?n("button",{attrs:{type:"button"},on:{click:function(t){return e.collapseAllBlocks()}}},[e._v(e._s(e.$trans("fields.block-editor.collapse-all","Collapse all")))]):n("button",{attrs:{type:"button"},on:{click:function(t){return e.expandAllBlocks()}}},[e._v(e._s(e.$trans("fields.block-editor.expand-all","Expand all")))]),e.editor?n("button",{attrs:{type:"button"},on:{click:function(t){return e.openEditor(i)}}},[e._v(e._s(e.$trans("fields.block-editor.open-in-editor","Open in editor")))]):e._e(),n("button",{attrs:{type:"button"},on:{click:function(t){return e.duplicateBlock(i)}}},[e._v(e._s(e.$trans("fields.block-editor.create-another","Create another")))]),n("button",{attrs:{type:"button"},on:{click:function(t){return e.deleteBlock(i)}}},[e._v(e._s(e.$trans("fields.block-editor.delete","Delete")))])]),e._l(e.blocks.length,(function(t){return n("button",{key:t,attrs:{slot:"dropdown-numbers",type:"button"},on:{click:function(n){return e.moveBlock(i,t-1)}},slot:"dropdown-numbers"},[e._v(e._s(t))])}))],2)],1)})),0)],1),n("div",{staticClass:"content__actions"},[e.availableBlocks.length?n("a17-dropdown",{ref:"blocksDropdown",attrs:{position:"top-center",arrow:!0,offset:10,maxHeight:430}},[n("a17-button",{attrs:{size:"small",variant:"action"},on:{click:function(t){return e.$refs.blocksDropdown.toggle()}}},[e._v(e._s(e.title))]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},e._l(e.availableBlocks,(function(t){return n("button",{key:t.component,attrs:{type:"button"},on:{click:function(n){return e.addBlock(t,-1)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"content__icon",attrs:{symbol:t.icon}}),e._v(e._s(t.title))])})),0)],1):e._e(),n("div",{staticClass:"content__secondaryActions"},[e.editor?n("a",{staticClass:"f--link f--link-underlined--o",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.openEditor(-1)}}},[e._v(e._s(e.$trans("fields.block-editor.open-in-editor","Open in editor")))]):e._e()])],1)],1)},ht=[],mt=n("1980"),_t=n.n(mt),gt=n("5420"),wt=n("159c"),yt=n("ecec");function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Et={name:"A17Content",components:{"a17-block":yt["default"],draggable:_t.a},mixins:[gt["a"],wt["a"]],props:{title:{type:String,default:""}},data:function(){return{opened:!0,closed:!1,handle:".block__handle"}},computed:kt({blocks:{get:function(){return this.savedBlocks},set:function(e){this.$store.commit(a["d"].REORDER_BLOCKS,e)}}},Object(o["c"])({editor:function(e){return e.content.editor},savedBlocks:function(e){return e.content.blocks},availableBlocks:function(e){return e.content.available}})),methods:{setOpened:function(e){var t=this.$refs.blockList.every((function(e){return!e.visible}));t&&(this.opened=!1,this.closed=!0),e&&(this.opened=!0)},addDropdownId:function(e){return"addBlock".concat(e,"Dropdown")},toggleDropdown:function(e){var t=this.addDropdownId(e),n=this.$refs[t][0];n&&n.toggle()},moveBlock:function(e,t){e!==t&&this.$store.commit(a["d"].MOVE_BLOCK,{oldIndex:e,newIndex:t})},addBlock:function(e,t){this.opened=!0;var n={title:e.title,type:e.component,icon:e.icon,attributes:e.attributes};this.$store.commit(a["d"].ADD_BLOCK,{block:n,index:t})},duplicateBlock:function(e){this.opened=!0,this.$store.commit(a["d"].DUPLICATE_BLOCK,e)},deleteBlock:function(e){var t=this;this.$root.$refs.warningContentEditor?this.$root.$refs.warningContentEditor.open((function(){t.$store.commit(a["d"].DELETE_BLOCK,e)})):this.$store.commit(a["d"].DELETE_BLOCK,e)},collapseAllBlocks:function(){this.opened=!1,this.closed=!0},expandAllBlocks:function(){this.opened=!0,this.closed=!1}},mounted:function(){var e=this;this.$nextTick((function(){e.savedBlocks.length>3&&e.collapseAllBlocks()}))}},Ct=Et,jt=(n("b62f"),Object(_["a"])(Ct,bt,ht,!1,null,"4165f148",null)),Dt=jt.exports,St=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"content"},[n("draggable",{staticClass:"content__content",attrs:{options:e.dragOptions},model:{value:e.blocks,callback:function(t){e.blocks=t},expression:"blocks"}},[n("transition-group",{attrs:{name:"draggable_list",tag:"div"}},e._l(e.blocks,(function(t,i){return n("div",{key:t.id,staticClass:"content__item"},[n("a17-block",{attrs:{block:t,index:i,size:e.blockSize,opened:e.opened},on:{open:e.setOpened}},[e.hasRemainingBlocks?n("a17-button",{attrs:{slot:"block-actions",variant:"icon","data-action":""},on:{click:function(t){return e.duplicateBlock(i)}},slot:"block-actions"},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"add"}})]):e._e(),n("div",{attrs:{slot:"dropdown-action"},slot:"dropdown-action"},[n("button",{attrs:{type:"button"},on:{click:function(t){return e.collapseAllBlocks()}}},[e._v("Collapse All")]),n("button",{attrs:{type:"button"},on:{click:function(t){return e.deleteBlock(i)}}},[e._v("Delete")]),e.hasRemainingBlocks?n("button",{attrs:{type:"button"},on:{click:function(t){return e.duplicateBlock(i)}}},[e._v("Duplicate")]):e._e()])],1)],1)})),0)],1),n("div",{staticClass:"content__trigger"},[e.hasRemainingBlocks&&e.blockType.trigger?n("a17-button",{class:e.triggerClass,attrs:{variant:e.triggerVariant,size:e.triggerSize},on:{click:function(t){return e.addBlock()}}},[e._v(e._s(e.blockType.trigger))]):e._e(),n("div",{staticClass:"content__note f--note f--small"},[e._t("default")],2)],1)],1)},$t=[];function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var At={name:"A17Repeater",components:{"a17-block":yt["default"],draggable:_t.a},mixins:[gt["a"]],props:{type:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{opened:!0,handle:".block__handle"}},computed:Lt({triggerVariant:function(){return this.inContentEditor?"aslink":"action"},triggerSize:function(){return this.inContentEditor?"small":""},triggerClass:function(){return this.inContentEditor?"content__button":""},blockSize:function(){return this.inContentEditor?"small":""},inContentEditor:function(){return"undefined"!==typeof this.$parent.repeaterName},hasRemainingBlocks:function(){return!this.blockType.hasOwnProperty("max")||this.blockType.max>this.blocks.length},blockType:function(){return this.availableBlocks[this.type]?this.availableBlocks[this.type]:{}},blocks:{get:function(){return this.savedBlocks.hasOwnProperty(this.name)&&this.savedBlocks[this.name]||[]},set:function(e){this.$store.commit(a["f"].REORDER_FORM_BLOCKS,{type:this.type,name:this.name,blocks:e})}}},Object(o["c"])({savedBlocks:function(e){return e.repeaters.repeaters},availableBlocks:function(e){return e.repeaters.availableRepeaters}})),methods:{setOpened:function(e){this.opened=e},addBlock:function(){this.opened=!0,this.$store.commit(a["f"].ADD_FORM_BLOCK,{type:this.type,name:this.name})},duplicateBlock:function(e){this.opened=!0,this.$store.commit(a["f"].DUPLICATE_FORM_BLOCK,{type:this.type,name:this.name,index:e})},deleteBlock:function(e){this.$store.commit(a["f"].DELETE_FORM_BLOCK,{type:this.type,name:this.name,index:e})},collapseAllBlocks:function(){this.opened=!1}},mounted:function(){var e=this;this.$nextTick((function(){e.savedBlocks.length>0&&e.collapseAllBlocks()}))}},xt=At,It=(n("af57"),Object(_["a"])(xt,St,$t,!1,null,"f570ad32",null)),Rt=It.exports,Vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-inputframe",{attrs:{error:e.error,note:e.note,locale:e.locale,label:e.label,name:e.name,required:e.required},on:{localize:e.updateLocale}},[n("div",{staticClass:"form__field",class:e.textfieldClasses},[n("input",{attrs:{type:"search",placeholder:e.placeholder,name:e.name,id:e.name,disabled:e.disabled,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete},domProps:{value:e.address},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}),e.showMap?n("div",{staticClass:"form__field--showMap"},[n("a",{attrs:{href:"#",type:"button"},on:{click:function(t){return t.preventDefault(),e.toggleMap(t)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"location"}}),n("span",{domProps:{innerHTML:e._s(e.mapMessage)}})])]):e._e(),n("input",{attrs:{type:"hidden",name:e.name+"__lat"},domProps:{value:e.lat}}),n("input",{attrs:{type:"hidden",name:e.name+"__lng"},domProps:{value:e.lng}})]),e.showMap?n("div",{directives:[{name:"show",rawName:"v-show",value:e.isMapOpen,expression:"isMapOpen"}],staticClass:"form__mapContainer"}):e._e()])},Mt=[],Nt=n("63ea"),Ut=n.n(Nt),Ft=n("da6f"),zt=n("67ff"),Wt=n("7a77"),Kt={show:window.$trans("fields.map.show"),hide:window.$trans("fields.map.hide")},Ht="https://maps.googleapis.com/maps/api/js?libraries=places&key=",Gt=window["TWILL"].hasOwnProperty("APIKEYS")&&window["TWILL"].APIKEYS.hasOwnProperty("googleMapApi")?window["TWILL"].APIKEYS.googleMapApi:null,qt={name:"A17Locationfield",mixins:[Ft["a"],C["a"],j["a"],zt["a"]],props:{type:{type:String,default:"text"},zoom:{type:Number,default:15},showMap:{type:Boolean,default:!0},openMap:{type:Boolean,default:!1},initialLat:{type:Number,default:null},initialLng:{type:Number,default:null}},data:function(){return{map:null,autocompletePlace:null,markers:[],address:"",beforeFocusAddress:"",lat:this.initialLat,lng:this.initialLng,focused:!1,isMapOpen:this.openMap,mapMessage:this.openMap?Kt.hide:Kt.show}},computed:{value:{get:function(){return{latlng:this.lat+"|"+this.lng,address:this.address}},set:function(e){var t=e.latlng.split("|");this.lat=parseFloat(t[0]),this.lng=parseFloat(t[t.length-1]),this.address=e.address}},textfieldClasses:function(){return{"s--focus":this.focused,"s--disabled":this.disabled}}},methods:{updateFromStore:function(e){if(!Ut()(e,this.value)&&(this.value=e,this.clearMarkers(),""===this.address&&(this.lat=this.initialLat,this.lng=this.initialLng),this.lat&&this.lng&&this.map)){var t={lat:this.lat,lng:this.lng};this.addMarker(t),this.map.panTo(t)}},onFocus:function(e){this.focused=!0,this.beforeFocusAddress=this.address,this.$emit("focus")},onBlur:function(e){this.focused=!1,""===this.address&&(this.clearMarkers(),this.lat=this.initialLat,this.lng=this.initialLng),this.beforeFocusAddress!==this.address&&this.saveIntoStore(),this.$emit("blur")},onInput:function(e){var t=e.target.value;this.address=t,this.$emit("change",t)},onPlaceChanged:function(){var e=this.autocompletePlace.getPlace();if(this.clearMarkers(),this.clearLatLng(),e.geometry){var t=e.geometry.location;this.address=e.formatted_address,this.setLatLng(t),this.map&&(this.addMarker(t),this.map.panTo(t),this.map.setZoom(this.zoom))}this.beforeFocusAddress=this.address,this.saveIntoStore()},clearMarkers:function(){for(var e=0;e<this.markers.length;e++)this.markers[e]&&this.markers[e].setMap(null);this.markers=[]},clearLatLng:function(){this.lat=0,this.lng=0},addMarker:function(e){var t=new google.maps.Marker({position:e,map:this.map});this.markers.push(t)},setLatLng:function(e){this.lat=e.lat(),this.lng=e.lng()},toggleMap:function(){this.isMapOpen=!this.isMapOpen,this.mapMessage=this.isMapOpen?Kt.hide:Kt.show,this.map||"undefined"===typeof google||this.$nextTick((function(){this.initMap()}))},initMap:function(){var e=this.lat+this.lng,t={zoom:e?this.zoom:1,center:new google.maps.LatLng(this.lat,this.lng),mapTypeControl:!1,panControl:!1,zoomControl:!1,streetViewControl:!1},n=document.createElement("div");n.className="form__map",this.$el.querySelector(".form__mapContainer").appendChild(n),this.map=new google.maps.Map(n,t),e&&this.addMarker(new google.maps.LatLng(this.lat,this.lng))},initGeocoder:function(){var e=this;if(this.autocompletePlace=new google.maps.places.Autocomplete(this.$el.querySelector('input[type="search"]')),google.maps.event.addListener(this.autocompletePlace,"place_changed",this.onPlaceChanged),""===this.address&&this.lat&&this.lng){var t=new google.maps.Geocoder,n={lat:this.lat,lng:this.lng};t.geocode({location:n},(function(t,n){"OK"===n?t[1]?e.address=t[1].formatted_address:console.error("Geocoding - No results found"):console.error("Geocoding - Geocoder failed due to: "+n)}))}},initGoogleApi:function(){this.initGeocoder(),this.showMap&&this.isMapOpen&&this.initMap()}},mounted:function(){var e=this;if("undefined"!==typeof google)this.initGoogleApi();else{var t="google-map-api-script",n=Ht+Gt;Object(Wt["a"])(t,n,"text/javascript").then((function(){e.initGoogleApi()}))}},beforeDestroy:function(){"undefined"!==typeof google&&google.maps.event.clearListeners(this.autocompletePlace,"place_changed",this.onPlaceChanged)}},Yt=qt,Zt=(n("3565"),Object(_["a"])(Yt,Vt,Mt,!1,null,"e145ff86",null)),Jt=Zt.exports,Xt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.keepAlive?[n("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}]},[e._t("default")],2)]:[e.open?n("div",[e._t("default")],2):e._e()]],2)},Qt=[],en=n("b8ce"),tn=n.n(en);function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an={name:"A17ConnectorField",props:{fieldName:{type:String,required:!0},requiredFieldValues:{default:""},inModal:{type:Boolean,default:!1},keepAlive:{type:Boolean,default:!1},isValueEqual:{type:Boolean,default:!0}},computed:on(on({storedValue:function(){return this.inModal?this.modalFieldValueByName(this.fieldName):this.fieldValueByName(this.fieldName)}},Object(o["b"])(["fieldValueByName","modalFieldValueByName"])),Object(o["c"])({fields:function(e){return e.form.fields},modalFields:function(e){return e.form.modalFields}})),data:function(){return{open:!1}},watch:{storedValue:function(e){this.toggleVisibility(e)}},methods:{toggleVisibility:function(e){var t=tn()(e),n=tn()(this.requiredFieldValues);Array.isArray(n)&&n.sort(),Array.isArray(t)&&t.sort(),this.isValueEqual?this.open=Ut()(t,n):this.open=!Ut()(t,n)}},mounted:function(){var e=this;this.$nextTick((function(){e.toggleVisibility(this.storedValue)}))}},sn=an,cn=Object(_["a"])(sn,Xt,Qt,!1,null,null,null),ln=cn.exports,un=n("f389"),dn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"overlay",class:e.overlayClasses},[n("div",{staticClass:"overlay__window"},[e.overlayTitle?n("header",{staticClass:"overlay__header"},[e._v(" "+e._s(e.overlayTitle)+" "),n("button",{staticClass:"overlay__close",attrs:{type:"button"},on:{click:e.hide}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"close_modal"}}),n("span",{staticClass:"overlay__closeLabel"},[e._v(e._s(e.$trans("overlay.close")))])])]):e._e(),e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!hidden"}],staticClass:"overlay__content"},[e._t("default")],2):e._e()])])},pn=[],fn=n("0a8f");function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(n),!0).forEach((function(t){hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mn=document.documentElement,_n=fn["a"].overlay,gn=fn["a"].modal,wn={name:"A17Overlay",props:{title:{type:String,default:""},revisionTitle:{type:String,default:function(){return this.$trans("previewer.revision-history")}},forceClose:{type:Boolean,default:!1},forceLock:{type:Boolean,default:!1},mode:{type:String,default:""}},data:function(){return{active:!1,hidden:!0,locked:!1}},computed:bn({activeRevision:function(){return Object.keys(this.currentRevision).length},overlayTitle:function(){return this.activeRevision?this.revisionTitle:this.title},overlayClasses:function(){return{"overlay--active":this.active,"overlay--hidden":this.hidden}}},Object(o["c"])({currentRevision:function(e){return e.revision.active}})),methods:{open:function(e){this.active&&!this.hidden||(this.active=!0,this.hidden=!1,mn.classList.add(_n),window.addEventListener("keyup",this.keyPressed),this.$emit("open"))},mask:function(){mn.classList.remove(_n),window.removeEventListener("keyup",this.keyPressed),this.$emit("close")},hide:function(){this.active&&(this.locked||(this.forceClose?this.close():(this.hidden=!0,this.mask())))},close:function(e){this.active&&(this.locked||(this.active=!1,this.mask()))},keyPressed:function(e){if(27===e.which||27===e.keyCode){if(mn.classList.contains(gn))return;this.hide(),this.$emit("esc-key")}}},beforeDestroy:function(){this.$el.parentNode&&(this.active&&window.removeEventListener("keyup",this.keyPressed),this.$el.parentNode.removeChild(this.$el))}},yn=wn,On=(n("d5be"),Object(_["a"])(yn,dn,pn,!1,null,"b7b05f42",null)),kn=On.exports,Pn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-overlay",{ref:"overlay",attrs:{title:e.$trans("previewer.title")}},[e.revisions.length?n("div",{staticClass:"previewer",class:{"previewer--loading":e.loading}},[e.activeRevision?n("a17-button",{staticClass:"previewer__restore",attrs:{variant:"warning",size:"small"},on:{click:e.restoreRevision}},[e._v(e._s(e.$trans("previewer.restore")))]):e._e(),!e.activeRevision&&e.editor?n("a17-button",{staticClass:"previewer__restore",attrs:{variant:"editor",size:"small"},on:{click:e.openEditor}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"hide--xsmall",attrs:{symbol:"editor"}}),e._v(e._s(e.$trans("previewer.editor")))]):e._e(),n("div",{staticClass:"previewer__frame"},[n("div",{staticClass:"previewer__inner"},[n("div",{staticClass:"previewer__nav"},[n("div",{staticClass:"previewer__revisions"},[e.slipScreen?n("span",{staticClass:"tag tag--revision"},[e._v(e._s(e.$trans("previewer.past-revision")))]):e._e(),n("a17-dropdown",{ref:"previewRevisionsDropdown",attrs:{position:"bottom-left",maxWidth:400,maxHeight:300}},[n("a17-button",{staticClass:"previewer__trigger",on:{click:function(t){return e.$refs.previewRevisionsDropdown.toggle()}}},[e.activeRevision?[e._v(" "+e._s(e._f("formatDate")(e.currentRevision.datetime))+" ("+e._s(e.currentRevision.author)+") "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})]:[e._v(" "+e._s(e.$trans("previewer.last-edit"))+" "),n("timeago",{attrs:{"auto-update":1,datetime:new Date(e.revisions[0].datetime)}}),e._v(" "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})]],2),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},e._l(e.revisions,(function(t,i){return n("button",{key:t.id,staticClass:"previewerRevision",class:{"previewerRevision--active":e.currentRevision.id===t.id},attrs:{type:"button"},on:{click:function(n){return e.toggleRevision(t.id)}}},[n("span",{staticClass:"previewerRevision__author"},[e._v(e._s(t.author))]),n("span",{staticClass:"previewerRevision__datetime"},[0===i?n("span",{staticClass:"tag"},[e._v(e._s(e.$trans("previewer.current-revision")))]):e._e(),e._v(" "+e._s(e._f("formatDate")(t.datetime)))])])})),0)],1)],1),e.slipScreen?e._e():n("ul",{staticClass:"previewer__breakpoints"},e._l(e.breakpoints,(function(t){return n("li",{key:t.size,staticClass:"previewer__breakpoint",class:{"s--active":e.activeBreakpoint===t.size}},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e.resizePreview(t.size)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:t.name}})])])})),0),e.activeRevision?n("div",{staticClass:"previewer__compare"},[e.slipScreen?n("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.singleView(t)}}},[n("span",{staticClass:"previewer__compareLabel"},[e._v(e._s(e.$trans("previewer.single-view")))]),e._v(" "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"revision-single"}})]):n("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.compareView(t)}}},[n("span",{staticClass:"previewer__compareLabel"},[e._v(e._s(e.$trans("previewer.compare-view")))]),e._v(" "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"revision-compare"}})])]):e._e()]),n("div",{staticClass:"previewer__content"},[n("div",{staticClass:"previewer__iframe"},[n("a17-iframe",{attrs:{content:e.activeRevision?e.activeContent:e.currentContent,size:e.activeBreakpoint,scrollPosition:e.scrollPosition},on:{scrollDoc:e.setIframeScroll}})],1),e.slipScreen?n("div",{staticClass:"previewer__iframe"},[n("div",{staticClass:"previewer__iframeInfos"},[n("span",{staticClass:"tag tag--revision"},[e._v(e._s(e.$trans("previewer.current-revision")))]),e._v(e._s(e.$trans("previewer.unsaved")))]),n("a17-iframe",{attrs:{content:e.currentContent,scrollPosition:e.scrollPosition},on:{scrollDoc:e.setIframeScroll}})],1):e._e()])])])],1):e._e()])},En=[],Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("iframe",{staticClass:"previewerframe",style:{width:e.size>0?e.size+"px":""},attrs:{srcdoc:e.content,frameborder:"0"},on:{load:e.loadPreview}})},jn=[],Dn={name:"A17previewerFrame",props:{size:{type:Number,default:0},content:{type:String,default:""},scrollPosition:{type:Number,default:0}},data:function(){return{currentScroll:this.scrollPosition}},watch:{scrollPosition:function(e){this.$el.contentWindow.scrollTo(0,e)}},methods:{loadPreview:function(e){for(var t=this,n=e.target,i=n.contentDocument.querySelectorAll("a:not(.sf-dump-toggle),button"),o=0;o<i.length;o++)i[o].setAttribute("disabled","disabled"),i[o].style.pointerEvents="none",i[o].onclick=function(){return!1};n.contentDocument.addEventListener("scroll",(function(e){var i=n.contentWindow.pageYOffset;i!==t.currentScroll&&(t.$emit("scrollDoc",i),t.currentScroll=i)})),this.$el.contentWindow.scrollTo(0,this.currentScroll)}}},Sn=Dn,$n=(n("a70b"),Object(_["a"])(Sn,Cn,jn,!1,null,"7b1f8f6c",null)),Tn=$n.exports;function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){An(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xn={name:"A17Previewer",components:{"a17-iframe":Tn},data:function(){return{loadedCurrent:!1,slipScreen:!1,activeBreakpoint:1280,lastActiveBreakpoint:1280,scrollPosition:0,breakpoints:[{size:1280,name:"preview-desktop"},{size:1024,name:"preview-tablet-h"},{size:768,name:"preview-tablet-v"},{size:320,name:"preview-mobile"}]}},filters:k["a"],computed:Bn({activeRevision:function(){return Object.keys(this.currentRevision).length}},Object(o["c"])({editor:function(e){return e.content.editor},loading:function(e){return e.revision.loading},currentRevision:function(e){return e.revision.active},activeContent:function(e){return e.revision.activeContent},currentContent:function(e){return e.revision.currentContent},revisions:function(e){return e.revision.all},restoreRevisionUrl:function(e){return e.form.restoreUrl}})),methods:{open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this;function n(){t.$refs.overlay&&t.$refs.overlay.open(),t.singleView()}this.loadedCurrent=!1,this.activeBreakpoint=1280,this.lastActiveBreakpoint=1280,e?this.previewRevision(e,(function(){n()})):this.previewCurrent((function(){n()}))},close:function(){this.$refs.overlay.close()},openEditor:function(){var e=this.$root.$refs;e.preview&&e.preview.close(),e.editor&&e.editor.open()},restoreRevision:function(){window.location.href=this.restoreRevisionUrl+"?revisionId="+this.currentRevision.id},resizePreview:function(e){this.activeBreakpoint=parseInt(e),this.lastActiveBreakpoint=parseInt(e)},previewCurrent:function(e){this.$store.commit(a["n"].UPDATE_REV,0),this.loadCurrent(e)},loadCurrent:function(e){var t=this;this.loadedCurrent?e&&"function"===typeof e&&e():(this.loadedCurrent=!0,this.$store.dispatch(s["a"].GET_CURRENT).then((function(){e&&"function"===typeof e&&e()}),(function(e){t.$store.commit(a["f"].SET_FORM_ERRORS,e.response.data),t.$store.commit(a["j"].SET_NOTIF,{message:"Your submission could not be validated, please fix and retry",variant:"error"})})))},toggleRevision:function(e){if(this.activeRevision&&this.currentRevision.id===e)return this.singleView(),void this.previewCurrent();this.previewRevision(e)},previewRevision:function(e,t){var n=this;this.$store.commit(a["n"].UPDATE_REV,e),this.$store.dispatch(s["a"].GET_REVISION).then((function(){t&&"function"===typeof t&&t()}),(function(e){n.$store.commit(a["j"].SET_NOTIF,{message:"Invalid revision.",variant:"error"})}))},compareView:function(){this.activeBreakpoint=0,this.slipScreen=!0,this.activeRevision&&this.loadCurrent()},singleView:function(){this.activeBreakpoint=this.lastActiveBreakpoint,this.slipScreen=!1},setIframeScroll:function(e){this.scrollPosition=e}}},In=xn,Rn=(n("0bd3"),Object(_["a"])(In,Pn,En,!1,null,"617a3800",null)),Vn=Rn.exports,Mn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-overlay",{ref:"overlay",attrs:{title:e.$trans("editor.title")},on:{close:e.closeEditor,open:e.openEditor}},[n("div",{staticClass:"editor"},[e.revisions.length?n("a17-button",{staticClass:"editor__leave",attrs:{variant:"editor",size:"small"},on:{click:e.openPreview}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"hide--xsmall",attrs:{symbol:"preview"}}),e._v(e._s(e.$trans("fields.block-editor.preview","Preview")))]):e._e(),n("div",{staticClass:"editor__frame"},[n("div",{staticClass:"editor__inner"},[n("div",{ref:"sidebar",staticClass:"editor__sidebar",class:e.sidebarClass},[n("a17-editorsidebar",{on:{delete:e.deleteBlock,save:e.saveBlock,cancel:e.cancelBlock}},[e._v(e._s(e.$trans("fields.block-editor.add-content","Add content")))])],1),n("div",{staticClass:"editor__resizer",on:{mousedown:e.resize}},[n("span")]),n("div",{staticClass:"editor__preview",class:e.previewClass,style:e.previewStyle},[n("a17-editorpreview",{ref:"previews",on:{select:e.selectBlock,delete:e.deleteBlock,unselect:e.unselectBlock,add:e.addBlock}}),e.loading?n("a17-spinner",{attrs:{visible:!0}},[e._v(e._s(e.$trans("fields.block-editor.loading","Loading"))+"…")]):e._e()],1)])])],1)])},Nn=[],Un=n("66cb"),Fn=n.n(Un),zn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"editorSidebar"},[e._l(e.blocks,(function(t,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.isBlockActive(t.id),expression:"isBlockActive(block.id)"}],key:t.id,staticClass:"editorSidebar__item"},[n("div",{staticClass:"editorSidebar__title"},[n("div",{staticClass:"editorSidebar__blockTitle"},[n("a17-dropdown",{ref:e.moveDropdown(i),refInFor:!0,staticClass:"f--small",attrs:{position:"bottom-left",maxHeight:270}},[n("span",{staticClass:"editorSidebar__counter f--tiny",on:{click:function(t){return e.toggleDropdown(i)}}},[e._v(e._s(i+1))]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},e._l(e.blocks.length,(function(t){return n("button",{key:t,attrs:{type:"button"},on:{click:function(n){return e.moveBlock(i,t-1)}}},[e._v(e._s(t))])})),0)]),e._v(e._s(e.activeBlock.title)+" ")],1),n("span",[n("a",{staticClass:"f--small f--note f--underlined",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.deleteBlock(i)}}},[e._v(e._s(e.$trans("editor.delete")))])])]),n("div",{staticClass:"editorSidebar__body"},[n("a17-inputframe",{attrs:{label:"",name:"block."+t.id}}),n(""+t.type,e._b({key:"`editor_${block.type}_${block.id}`",tag:"component",attrs:{name:e.componentName(t.id)}},"component",t.attributes,!1))],1)])})),e.hasBlockActive?[n("div",{staticClass:"editorSidebar__actions"},[n("a17-button",{attrs:{variant:"action"},on:{click:function(t){return e.saveBlock()}}},[e._v(e._s(e.$trans("editor.done")))]),n("a17-button",{attrs:{variant:"secondary"},on:{click:function(t){return e.cancelBlock()}}},[e._v(e._s(e.$trans("editor.cancel")))])],1)]:[n("div",{staticClass:"editorSidebar__list"},[n("h4",{staticClass:"editorSidebar__title"},[e._t("default")],2),e.availableBlocks.length?n("draggable",{attrs:{options:{group:{name:"editorBlocks",pull:"clone",put:!1},handle:".editorSidebar__button"}},model:{value:e.availableBlocks,callback:function(t){e.availableBlocks=t},expression:"availableBlocks"}},e._l(e.availableBlocks,(function(t){return n("div",{key:t.component,staticClass:"editorSidebar__button",attrs:{"data-title":t.title,"data-icon":t.icon,"data-component":t.component}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:t.icon}}),e._v(e._s(t.title)+" ")])})),0):e._e()],1),n("div",{staticClass:"editorSidebar__actions"},[e.isSubmitDisabled(e.submitOptions[0])?n("a17-button",{attrs:{variant:"validate",disabled:!0}},[e._v(e._s(e.submitOptions[0].text))]):n("a17-button",{attrs:{name:e.submitOptions[0].name,variant:"validate"},on:{click:function(t){return e.saveForm(e.submitOptions[0].name)}}},[e._v(e._s(e.submitOptions[0].text))])],1)]],2)},Wn=[];function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){Gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qn={name:"A17editorsidebar",components:{draggable:_t.a},mixins:[gt["a"]],data:function(){return{}},computed:Hn({hasBlockActive:function(){return Object.keys(this.activeBlock).length>0},submitOptions:function(){return this.$store.getters.getSubmitOptions}},Object(o["c"])({activeBlock:function(e){return e.content.active},availableBlocks:function(e){return e.content.available},blocks:function(e){return e.content.blocks}})),methods:{isSubmitDisabled:function(e){return!!e.hasOwnProperty("disabled")&&!0===e.disabled},toggleDropdown:function(e){if(this.blocks.length>1){var t=this.moveDropdown(e);this.$refs[t].length&&this.$refs[t][0].toggle()}},moveDropdown:function(e){return"move".concat(e,"Dropdown")},isBlockActive:function(e){return!!this.hasBlockActive&&e===this.activeBlock.id},componentName:function(e){return"blocks["+e+"]"},moveBlock:function(e,t){e!==t&&this.$store.commit(a["d"].MOVE_BLOCK,{oldIndex:e,newIndex:t})},saveBlock:function(){this.$emit("save")},cancelBlock:function(){this.$emit("cancel")},deleteBlock:function(e){this.$emit("delete",e)},saveForm:function(e){this.$store.commit(a["m"].UPDATE_SAVE_TYPE,e),this.$root.submitForm&&this.$root.submitForm()}},mounted:function(){}},Yn=qn,Zn=(n("611f"),n("e431"),Object(_["a"])(Yn,zn,Wn,!1,null,"0f6c2e43",null)),Jn=Zn.exports,Xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"editorPreview",attrs:{editorPreviewClass:e.editorPreviewClass},on:{mousedown:e.unselectBlock}},[e.blocks.length?e._e():n("div",{staticClass:"editorPreview__empty"},[n("b",[e._v("Drag and drop content from the left navigation")])]),n("draggable",{staticClass:"editorPreview__content",attrs:{options:{group:"editorBlocks",handle:e.handle}},on:{add:e.onAdd,update:e.onUpdate},model:{value:e.blocks,callback:function(t){e.blocks=t},expression:"blocks"}},e._l(e.blocks,(function(t,i){return n("div",{key:t.id,ref:t.id,refInFor:!0,staticClass:"editorPreview__item",class:{"editorPreview__item--active":e.isBlockActive(t.id),"editorPreview__item--hover":e.activeItem===i},on:{mousedown:function(e){e.stopPropagation()}}},[n("div",{staticClass:"editorPreview__frame"},[n("a17-editor-iframe",{attrs:{block:t},on:{loaded:e.resizeIframe}})],1),n("div",{staticClass:"editorPreview__protector editorPreview__dragger",on:{click:function(t){return t.preventDefault(),e.selectBlock(i)}}}),n("div",{staticClass:"editorPreview__header"},[n("a17-buttonbar",{attrs:{variant:"visible"}},[e.blocks.length>1?n("a17-dropdown",{ref:e.moveDropdown(i),refInFor:!0,staticClass:"f--small",attrs:{position:"bottom-left",maxHeight:270},on:{open:function(t){e.activeItem=i},close:function(t){e.activeItem=-1}}},[n("button",{attrs:{type:"button"},on:{click:function(t){return e.toggleDropdown(i)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"drag"}})]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},e._l(e.blocks.length,(function(t){return n("button",{key:t,attrs:{type:"button"},on:{click:function(n){return e.moveBlock(i,t-1)}}},[e._v(e._s(t))])})),0)]):e._e(),n("button",{attrs:{type:"button"},on:{click:function(t){return e.deleteBlock(i)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"trash"}})])],1)],1)])})),0)],1)},Qn=[],ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"editorIframe"},[""===e.preview?n("div",{staticClass:"editorIframe__empty"},[e._v(" "+e._s(e.title)+" ")]):e._e(),n("iframe",{ref:"frame",attrs:{srcdoc:e.preview},on:{load:e.loadedPreview}})])},ti=[];function ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach((function(t){oi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ri={name:"A17editoriframe",props:{block:{type:Object,default:function(){return{}}}},computed:ii(ii({preview:function(){return this.previewsById(this.block.id)||""},title:function(){return this.block.title||""}},Object(o["b"])(["previewsById"])),Object(o["c"])({savedBlocks:function(e){return e.content.blocks}})),methods:{setIframeHeight:function(){var e=this;this.$refs.frame&&window.requestAnimationFrame((function(){e.$refs.frame.style.height=e.$refs.frame.contentWindow.document.body.scrollHeight+"px"}))},loadedPreview:function(e){this.$refs.frame&&this.$refs.frame.srcdoc&&(this.$emit("loaded",this.$refs.frame),this.setIframeHeight())},handleResize:function(){this.setIframeHeight()}},mounted:function(){window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)}},ai=ri,si=(n("da0c"),Object(_["a"])(ai,ei,ti,!1,null,"2fa81c14",null)),ci=si.exports;function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){di(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pi={name:"A17editorpreview",components:{draggable:_t.a,"a17-editor-iframe":ci},mixins:[gt["a"]],data:function(){return{activeItem:-1,blocksLoaded:0,handle:".editorPreview__dragger"}},computed:ui({blocks:{get:function(){return this.savedBlocks},set:function(e){}},hasBlockActive:function(){return Object.keys(this.activeBlock).length},editorPreviewClass:function(){return{"editorPreview--loading":this.loading}}},Object(o["c"])({loading:function(e){return e.content.loading},activeBlock:function(e){return e.content.active},savedBlocks:function(e){return e.content.blocks}})),methods:{toggleDropdown:function(e){if(this.blocks.length>1){var t=this.moveDropdown(e);this.$refs[t].length&&this.$refs[t][0].toggle()}},moveDropdown:function(e){return"movePreview".concat(e,"Dropdown")},moveBlock:function(e,t){e!==t&&this.$store.commit(a["d"].MOVE_BLOCK,{oldIndex:e,newIndex:t})},onAdd:function(e){var t=e.item,n={};n.title=t.getAttribute("data-title"),n.component=t.getAttribute("data-component"),n.icon=t.getAttribute("data-icon"),this.addBlock(n,Math.max(0,e.newIndex))},onUpdate:function(e){this.$store.commit(a["d"].MOVE_BLOCK,{oldIndex:e.oldIndex,newIndex:e.newIndex})},isBlockActive:function(e){return!!this.hasBlockActive&&e===this.activeBlock.id},addBlock:function(e,t){var n={title:e.title,type:e.component,icon:e.icon,attributes:e.attributes};this.$store.commit(a["d"].ADD_BLOCK,{block:n,index:t}),this.$emit("add",t)},deleteBlock:function(e){this.$emit("delete",e)},selectBlock:function(e){this.$emit("select",e)},unselectBlock:function(){this.$emit("unselect")},resizeIframe:function(e){var t=e.contentWindow.document.body;t.style.overflow="hidden";var n=window.getComputedStyle(t),i=n.getPropertyValue("margin-top"),o=n.getPropertyValue("margin-bottom"),r=t.scrollHeight+parseInt(i)+parseInt(o);e.height=r+"px"},resizeAllIframes:function(){var e=this,t=this.$el.querySelectorAll("iframe");t.forEach((function(t){e.resizeIframe(t)}))},_resize:v()((function(){this.resizeAllIframes()}),200),init:function(){window.addEventListener("resize",this._resize)},dispose:function(){window.removeEventListener("resize",this._resize)}},mounted:function(){this.init()},beforeDestroy:function(){this.dispose()}},fi=pi,vi=(n("2f7f"),Object(_["a"])(fi,Xn,Qn,!1,null,"3082648e",null)),bi=vi.exports,hi=n("64e5"),mi=n("0644"),_i=n.n(mi);function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach((function(t){yi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oi,ki=document.documentElement,Pi=fn["a"].editor,Ei={name:"A17Editor",components:{"a17-editorsidebar":Jn,"a17-editorpreview":bi,"a17-spinner":hi["a"]},props:{bgColor:{type:String,default:"#FFFFFF"}},data:function(){return{isWatching:!1,unSubscribe:function(){return null}}},computed:wi({blocks:{get:function(){return this.savedBlocks},set:function(e){this.$store.commit(a["d"].REORDER_BLOCKS,e)}},hasBlockActive:function(){return Object.keys(this.activeBlock).length>0},previewClass:function(){var e=Fn()(this.bgColor);return{"editor__preview--dark":e.getBrightness()<180,"editor__preview--loading":this.loading}},sidebarClass:function(){return{"editor__sidebar--mobile":this.hasBlockActive}},previewStyle:function(){return{"background-color":this.bgColor}}},Object(o["c"])({loading:function(e){return e.content.loading},activeBlock:function(e){return e.content.active},savedBlocks:function(e){return e.content.blocks},availableBlocks:function(e){return e.content.available},revisions:function(e){return e.revision.all}})),watch:{loading:function(e){var t=this;e||t.$nextTick((function(){setTimeout((function(){t.scrollToActive()}),250)}))}},methods:{open:function(e){this.getAllPreviews(),e>=0&&(this.selectBlock(e),this.scrollToActive()),this.$refs.overlay.open()},close:function(e){this.$refs.overlay.close()},openEditor:function(){ki.classList.add(Pi)},closeEditor:function(){this.unselectBlock(),ki.classList.remove(Pi)},scrollToActive:function(){if(this.hasBlockActive){var e=this.$refs.previews.$refs[this.activeBlock.id];if(e){var t=e[0].offsetTop,n=this.$el.querySelector(".editorPreview__content");n.scrollTop=Math.max(0,t-20)}}},isBlockActive:function(e){return!!this.hasBlockActive&&e===this.activeBlock.id},openPreview:function(){this.$root.$refs.preview&&this.$root.$refs.preview.open()},resize:function(){var e=this;window.addEventListener("mousemove",e.resizeSidebar,!1),window.addEventListener("mouseup",e.stopResizeSidebar,!1)},resizeSidebar:function(e){var t=this.$refs.sidebar,n=window.innerWidth;t&&(t.style.width=(e.clientX-t.offsetLeft)/n*100+"%")},stopResizeSidebar:function(){var e=this;window.removeEventListener("mousemove",e.resizeSidebar,!1),window.removeEventListener("mouseup",e.stopResizeSidebar,!1),this.$refs.previews.resizeAllIframes()},saveBlock:function(){this.hasBlockActive&&this.getPreview(),this.unselectBlock()},addBlock:function(e){this.selectBlock(e),this.getPreview(e)},deleteBlock:function(e){var t=this;this.$root.$refs.warningContentEditor?this.$root.$refs.warningContentEditor.open((function(){t.unselectBlock(),t.$store.commit(a["d"].DELETE_BLOCK,e)})):(this.unselectBlock(),this.$store.commit(a["d"].DELETE_BLOCK,e))},cancelBlock:function(){this.hasBlockActive&&(window["TWILL"].hasOwnProperty("PREVSTATE")&&this.$store.replaceState(window["TWILL"].PREVSTATE),this.getPreview()),this.unselectBlock()},getBlockId:function(e){return"undefined"===typeof this.blocks[e]?0:this.blocks[e].id},getAllPreviews:function(){this.$store.dispatch(s["a"].GET_ALL_PREVIEWS)},getPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.$store.dispatch(s["a"].GET_PREVIEW,e)},selectBlock:function(e){var t=this,n=this.getBlockId(e);n&&(this.isBlockActive(n)?this.unselectBlock():(window["TWILL"].PREVSTATE=_i()(this.$store.state),this.$store.commit(a["d"].ACTIVATE_BLOCK,e),this.isWatching||(this.isWatching=!0,this.unSubscribe=this.$store.subscribe((function(e,n){a["l"].REFRESH_BLOCK_PREVIEW.includes(e.type)&&(a["l"].REFRESH_BLOCK_PREVIEW_ALL.includes(e.type)?t.getAllPreviews():t.getPreview())})))))},unselectBlock:function(){this.unSubscribe(),this.isWatching=!1,window["TWILL"].hasOwnProperty("PREVSTATE")&&delete window["TWILL"].PREVSTATE,this.hasBlockActive&&this.$store.commit(a["d"].ACTIVATE_BLOCK,-1)}},mounted:function(){}},Ci=Ei,ji=(n("9881"),Object(_["a"])(Ci,Mn,Nn,!1,null,"cc4b6c2e",null)),Di=ji.exports,Si=n("2e01"),$i=n("54d3"),Ti=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-modal",{ref:"modal",staticClass:"modal--form",attrs:{title:e.modalTitle,forceClose:!0}},[n("form",{attrs:{action:e.formCreate},on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[e._t("default"),n("a17-modal-validation",{attrs:{"is-disable":!0}})],2)])},Li=[],Bi={name:"A17ModalAdd",props:{name:{type:String,default:""},modalTitle:{type:String,default:"Add new"},formCreate:{type:String,default:"#"}},components:{"a17-modal-validation":E["a"]},methods:{open:function(){this.$refs.modal&&this.$refs.modal.open()},submit:function(e){var t=this;this.$store.commit(a["f"].UPDATE_FORM_LOADING,!0);var n=document.activeElement.name;this.$nextTick((function(){this.$store.dispatch(s["a"].CREATE_FORM_IN_MODAL,{name:this.name,endpoint:this.formCreate,method:"post"}).then((function(){t.$refs.modal&&t.$refs.modal.close(),t.$nextTick((function(){t.$store.commit(a["j"].SET_NOTIF,{message:"Your content has been added",variant:"success"}),"create-another"===n&&t.$refs.modal&&t.$refs.modal.open()}))}),(function(e){t.$store.commit(a["j"].SET_NOTIF,{message:"Your content can not be added, please retry",variant:"error"})}))}))}}},Ai=Bi,xi=Object(_["a"])(Ai,Ti,Li,!1,null,null,null),Ii=xi.exports,Ri=n("ce72");function Vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mi,Ni,Ui={withPublicationToggle:window["TWILL"].STORE.publication.withPublicationToggle||!1,published:window["TWILL"].STORE.publication.published||!1,publishSubmit:window["TWILL"].STORE.publication.published||!window["TWILL"].STORE.publication.withPublicationToggle?"update":"live",publishedLabel:window["TWILL"].STORE.publication.publishedLabel||"Live",draftLabel:window["TWILL"].STORE.publication.draftLabel||"Draft",withPublicationTimeframe:window["TWILL"].STORE.publication.withPublicationTimeframe||!1,startDate:window["TWILL"].STORE.publication.startDate||null,endDate:window["TWILL"].STORE.publication.endDate||null,visibility:window["TWILL"].STORE.publication.visibility||!1,reviewProcess:window["TWILL"].STORE.publication.reviewProcess||[],createWithoutModal:window["TWILL"].STORE.publication.createWithoutModal||!1,saveType:void 0,visibilityOptions:[{value:"public",label:"Public"},{value:"private",label:"Private"}],submitDisableMessage:window["TWILL"].STORE.publication.submitDisableMessage||"",submitOptions:window["TWILL"].STORE.publication.submitOptions||{draft:[{name:"save",text:window.$trans("publisher.save","Save as draft"),disabled:!1},{name:"save-close",text:window.$trans("publisher.save-close","Save as draft and close"),disabled:!1},{name:"save-new",text:window.$trans("publisher.save-new","Save as draft and create new"),disabled:!1},{name:"cancel",text:window.$trans("publisher.cancel","Cancel"),disabled:!1}],live:[{name:"publish",text:window.$trans("publisher.publish","Publish"),disabled:!1},{name:"publish-close",text:window.$trans("publisher.publish-close","Publish and close"),disabled:!1},{name:"publish-new",text:window.$trans("publisher.publish-new","Publish and create new"),disabled:!1},{name:"cancel",text:window.$trans("publisher.cancel","Cancel"),disabled:!1}],update:[{name:"update",text:window.$trans("publisher.update","Update"),disabled:!1},{name:"update-close",text:window.$trans("publisher.update-close","Update and close"),disabled:!1},{name:"update-new",text:window.$trans("publisher.update-new","Update and create new"),disabled:!1},{name:"cancel",text:window.$trans("publisher.cancel","Cancel"),disabled:!1}]}},Fi={reviewProcessComplete:function(e){return e.reviewProcess.filter((function(e){return e.checked}))},getSubmitOptions:function(e){return e.createWithoutModal?e.submitOptions.draft:e.published||!e.withPublicationToggle?e.submitOptions[e.publishSubmit]:e.submitOptions.draft},isEnabledSubmitOption:function(e,t){return function(e){var n=!0,i={},o=t.getSubmitOptions.filter((function(t){return t.name===e}));return o.length&&(i=o[0]),i.hasOwnProperty("disabled")&&(n=!i.disabled),n}},getSaveType:function(e,t){return e.saveType||t.getSubmitOptions[0].name}},zi=(Oi={},Vi(Oi,a["m"].UPDATE_PUBLISH_START_DATE,(function(e,t){e.startDate=t})),Vi(Oi,a["m"].UPDATE_PUBLISH_END_DATE,(function(e,t){e.endDate=t})),Vi(Oi,a["m"].UPDATE_PUBLISH_STATE,(function(e,t){e.published=t})),Vi(Oi,a["m"].UPDATE_PUBLISH_SUBMIT,(function(e){e.publishSubmit=e.published||!e.withPublicationToggle?"update":"live"})),Vi(Oi,a["m"].UPDATE_PUBLISH_VISIBILITY,(function(e,t){e.visibility=t})),Vi(Oi,a["m"].UPDATE_REVIEW_PROCESS,(function(e,t){var n="",i=-1;t.length&&(n=t[t.length-1],e.reviewProcess.forEach((function(e,t){e.value===n&&(i=t)}))),e.reviewProcess.forEach((function(e,t){e.checked=t<=i,e.disabled=!(t===i||t===i+1)}))})),Vi(Oi,a["m"].UPDATE_SAVE_TYPE,(function(e,t){e.saveType=t})),Oi),Wi={state:Ui,getters:Fi,mutations:zi},Ki=n("bc3a"),Hi=n.n(Ki),Gi=n("727d"),qi={getBlockPreview:function(e,t,n,i){Hi.a.post(e,t).then((function(e){n&&"function"===typeof n&&n(e.data)}),(function(e){var t={message:"Block preview request error.",value:e};Object(Gi["a"])("CONTENT",t),i&&"function"===typeof i&&i(e)}))}},Yi=n("9170");function Zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ji={loading:!1,editor:window["TWILL"].STORE.form.editor||!1,available:window["TWILL"].STORE.form.content||{},blocks:window["TWILL"].STORE.form.blocks||[],previews:window["TWILL"].STORE.form.previews||{},active:{}},Xi={previewsById:function(e){return function(t){return e.previews[t]?e.previews[t]:""}}};function Qi(){return Date.now()}var eo=(Mi={},Zi(Mi,a["d"].ADD_BLOCK,(function(e,t){var n=t.block;n.id=Qi(),t.index>-1?e.blocks.splice(t.index,0,n):e.blocks.push(n)})),Zi(Mi,a["d"].MOVE_BLOCK,(function(e,t){if(t.newIndex>=e.blocks.length){var n=t.newIndex-e.blocks.length;while(1+n--)e.blocks.push(void 0)}e.blocks.splice(t.newIndex,0,e.blocks.splice(t.oldIndex,1)[0])})),Zi(Mi,a["d"].DELETE_BLOCK,(function(e,t){var n=e.blocks[t].id;n&&i["a"].delete(e.previews,n),e.blocks.splice(t,1)})),Zi(Mi,a["d"].DUPLICATE_BLOCK,(function(e,t){var n=Object.assign({},e.blocks[t]);n.id=Qi(),e.blocks.splice(t+1,0,n)})),Zi(Mi,a["d"].REORDER_BLOCKS,(function(e,t){e.blocks=t})),Zi(Mi,a["d"].ACTIVATE_BLOCK,(function(e,t){e.blocks[t]?e.active=e.blocks[t]:e.active={}})),Zi(Mi,a["d"].ADD_BLOCK_PREVIEW,(function(e,t){i["a"].set(e.previews,t.id,t.html)})),Zi(Mi,a["d"].UPDATE_PREVIEW_LOADING,(function(e,t){e.loading=!e.loading})),Mi);function to(e,t,n,i){if(e.hasOwnProperty("id")){var o=Object(Yi["a"])(e,n);n.language.all.length>1&&(o.activeLanguage=n.language.active.value),Object(Yi["e"])(o)?(t(a["d"].ADD_BLOCK_PREVIEW,{id:e.id,html:""}),i&&"function"===typeof i&&i()):qi.getBlockPreview(n.form.blockPreviewUrl,o,(function(n){t(a["d"].ADD_BLOCK_PREVIEW,{id:e.id,html:n}),i&&"function"===typeof i&&i()}),(function(e){}))}}var no,io,oo=(Ni={},Zi(Ni,s["a"].GET_PREVIEW,(function(e){var t=e.commit,n=e.state,i=e.rootState,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=o>=0?n.blocks[o]:{};n.active.hasOwnProperty("id")&&-1===o&&(r=n.active),to(r,t,i)})),Zi(Ni,s["a"].GET_ALL_PREVIEWS,(function(e){var t=e.commit,n=e.state,i=e.rootState;if(n.blocks.length&&!n.loading){t(a["d"].UPDATE_PREVIEW_LOADING,!0);var o=0;n.blocks.forEach((function(e){to(e,t,i,(function(){o++,o===n.blocks.length&&t(a["d"].UPDATE_PREVIEW_LOADING,!0)}))}))}})),Ni),ro={state:Ji,getters:Xi,mutations:eo,actions:oo},ao=n("c5ec"),so={getRevisionContent:function(e,t,n,i){Hi.a.put(e,t).then((function(e){n&&"function"===typeof n&&n(e.data)}),(function(e){var t={message:"Preview request error.",value:e};Object(Gi["a"])("REVISION",t),i&&"function"===typeof i&&i(e)}))}};function co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lo,uo={loading:!1,active:{},activeContent:"",currentContent:"",all:window["TWILL"].STORE.revisions||[]},po={},fo=(no={},co(no,a["n"].LOADING_REV,(function(e){e.loading=!0})),co(no,a["n"].UPDATE_REV,(function(e,t){function n(e){return e.id===t}var i=e.all.findIndex(n);e.active=-1!==i?e.all[i]:{}})),co(no,a["n"].UPDATE_REV_CONTENT,(function(e,t){e.loading=!1,e.activeContent=t})),co(no,a["n"].UPDATE_REV_CURRENT_CONTENT,(function(e,t){e.loading=!1,e.currentContent=t})),co(no,a["n"].UPDATE_REV_ALL,(function(e,t){e.all=t})),no),vo=(io={},co(io,s["a"].GET_CURRENT,(function(e){var t=e.commit,n=e.rootState;return new Promise((function(e,i){t(a["n"].LOADING_REV);var o=Object(Yi["b"])(n);n.language.all.length>1&&(o.activeLanguage=n.language.active.value),so.getRevisionContent(n.form.previewUrl,o,(function(n){t(a["n"].UPDATE_REV_CURRENT_CONTENT,n),e()}),(function(e){i(e)}))}))})),co(io,s["a"].GET_REVISION,(function(e){var t=e.commit,n=e.state,i=e.rootState;return new Promise((function(e,o){t(a["n"].LOADING_REV);var r=0;r=0===Object.keys(n.active).length?n.all[0].id:n.active.id;var s={revisionId:r};i.language.all.length>1&&(s.activeLanguage=i.language.active.value),so.getRevisionContent(i.form.previewUrl,s,(function(n){t(a["n"].UPDATE_REV_CONTENT,n),e()}),(function(e){o(e)}))}))})),io),bo={state:uo,getters:po,actions:vo,mutations:fo},ho=n("38c2");function mo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _o={repeaters:window["TWILL"].STORE.form.repeaters||{},availableRepeaters:window["TWILL"].STORE.form.availableRepeaters||{}},go={};function wo(){return Date.now()}var yo=(lo={},mo(lo,a["f"].ADD_FORM_BLOCK,(function(e,t){var n=t.name,i=t.type,o={},r=e.availableRepeaters[i],a=!e.repeaters[n];if(r)if(o.id=wo(),o.type=r.component,o.title=r.title,a){var s={};s[n]=[],s[n].push(o),e.repeaters=Object.assign({},e.repeaters,s)}else e.repeaters[n].push(o)})),mo(lo,a["f"].DELETE_FORM_BLOCK,(function(e,t){e.repeaters[t.name].splice(t.index,1)})),mo(lo,a["f"].DUPLICATE_FORM_BLOCK,(function(e,t){var n=Object.assign({},e.repeaters[t.name][t.index]);n.id=wo(),e.repeaters[t.name].splice(t.index+1,0,n)})),mo(lo,a["f"].REORDER_FORM_BLOCKS,(function(e,t){var n={};n[t.name]=t.blocks,e.repeaters=Object.assign({},e.repeaters,n)})),lo),Oo={state:_o,getters:go,mutations:yo};function ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Po={active:window["TWILL"].STORE.parentId||0,all:window["TWILL"].STORE.parents||[]},Eo={},Co=ko({},a["k"].UPDATE_PARENT,(function(e,t){e.active=t||0})),jo={state:Po,getters:Eo,mutations:Co},Do=n("f451"),So=n("4868"),$o=n("f0f8");function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){Bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}i["a"].use(Si["a"]),i["a"].use($i["a"]),r["a"].registerModule("form",Ri["a"]),r["a"].registerModule("publication",Wi),r["a"].registerModule("content",ro),r["a"].registerModule("language",ao["a"]),r["a"].registerModule("revision",bo),r["a"].registerModule("browser",ho["a"]),r["a"].registerModule("repeaters",Oo),r["a"].registerModule("parents",jo),r["a"].registerModule("attributes",Do["a"]),i["a"].component("a17-fieldset",I["a"]),i["a"].component("a17-publisher",rt),i["a"].component("a17-title-editor",A),i["a"].component("a17-content",Dt),i["a"].component("a17-page-nav",vt),i["a"].component("a17-langswitcher",x["a"]),i["a"].component("a17-sticky-nav",w),i["a"].component("a17-spinner",hi["a"]),i["a"].component("a17-repeater",Rt),i["a"].component("a17-browser",un["a"]),i["a"].component("a17-connectorfield",ln),i["a"].component("a17-locationfield",Jt),i["a"].component("a17-overlay",kn),i["a"].component("a17-previewer",Vn),i["a"].component("a17-editor",Di),i["a"].component("a17-modal-add",Ii);var Ao=n("9748");Ao.keys().map((function(e){var t=e.replace(/customs\//,""),n=t.match(/\w+/)[0].replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase();if("block"!==n)return i["a"].component("a17-"+n,Ao(e).default)})),"undefined"!==typeof window["TWILL"].TWILL_BLOCKS_COMPONENTS&&window["TWILL"].TWILL_BLOCKS_COMPONENTS.map((function(e){return i["a"].component("a17-block-"+e,{template:"#a17-block-"+e,mixins:[$o["a"]]})}));var xo=n("1591");xo.keys().map((function(e){var t=e.match(/\w+/)[0].replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase();return i["a"].component("a17-"+t,xo(e).default)})),window["TWILL"].vm=window.vm=new i["a"]({store:r["a"],el:"#app",mixins:[So["a"],wt["a"]],data:function(){return{unSubscribe:function(){return null},isFormUpdated:!1}},computed:Lo(Lo({},Object(o["c"])({loading:function(e){return e.form.loading},editor:function(e){return e.content.editor},isCustom:function(e){return e.form.isCustom}})),Object(o["b"])(["getSaveType","isEnabledSubmitOption"])),methods:{submitForm:function(e){var t=this;this.loading||(this.isFormUpdated=!1,this.$store.commit(a["f"].UPDATE_FORM_LOADING,!0),this.unSubscribe(),this.$nextTick((function(){var e=t.getSaveType||document.activeElement.name;t.isEnabledSubmitOption(e)?t.$store.dispatch(s["a"].SAVE_FORM,e).then((function(){t.mutationsSubscribe()})):(t.$store.commit(a["f"].UPDATE_FORM_LOADING,!1),t.mutationsSubscribe())})))},confirmExit:function(e){if(this.isFormUpdated&&!this.isCustom)return"message";void 0!==window.event?window.event.cancelBubble=!0:e.cancelBubble=!0},mutationsSubscribe:function(){var e=this;this.unSubscribe=this.$store.subscribe((function(t,n){c["a"].includes(t.type)&&(e.isFormUpdated=!0,e.unSubscribe())}))}},mounted:function(){var e=this;this.$nextTick((function(){window.onbeforeunload=e.confirmExit,e.mutationsSubscribe()}))},beforeDestroy:function(){this.unSubscribe()},created:function(){Object(u["a"])()}}),document.addEventListener("DOMContentLoaded",l["a"])},faa7:function(e,t,n){},fdff:function(e,t,n){},ffdb:function(e,t,n){"use strict";var i=n("2741"),o=n.n(i);o.a}});