From de06acd5dd859300d8a58841d6f2d2b778a85941 Mon Sep 17 00:00:00 2001 From: Quentin Renard Date: Fri, 6 Mar 2020 13:47:25 -0500 Subject: [PATCH] Update distributed assets --- dist/assets/admin/js/chunk-common.0ac9f937.js | 1 + dist/assets/admin/js/chunk-common.46d8cc9b.js | 1 - dist/assets/admin/twill-manifest.json | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 dist/assets/admin/js/chunk-common.0ac9f937.js delete mode 100644 dist/assets/admin/js/chunk-common.46d8cc9b.js diff --git a/dist/assets/admin/js/chunk-common.0ac9f937.js b/dist/assets/admin/js/chunk-common.0ac9f937.js new file mode 100644 index 000000000..a611418f0 --- /dev/null +++ b/dist/assets/admin/js/chunk-common.0ac9f937.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-common"],{"0429":function(e,t,n){"use strict";var i=n("5589"),a=n("22f7"),r=n("9788"),s=n("d675"),o="addBlock",l="moveBlock",c="deleteBlock",u="duplicateBlock",d="reorderBlocks",f="activateBlock",h="addBlockPreview",p="updateBlockPreviewLoading",m={ADD_BLOCK:o,MOVE_BLOCK:l,DELETE_BLOCK:c,DUPLICATE_BLOCK:u,REORDER_BLOCKS:d,ACTIVATE_BLOCK:f,ADD_BLOCK_PREVIEW:h,UPDATE_PREVIEW_LOADING:p},b=n("9aba"),g=[r["f"],r["d"],r["a"],r["b"],r["c"],r["e"],b["a"],i["e"],i["f"],i["d"],i["a"],i["b"],i["c"],s["d"],s["b"],s["a"],s["c"]],v=[b["a"]],_={REFRESH_BLOCK_PREVIEW:g,REFRESH_BLOCK_PREVIEW_ALL:v},y="updateModalAction",w="updateModalMode",O={UPDATE_MODAL_ACTION:y,UPDATE_MODAL_MODE:w},E="addToBucket",T="deleteFromBucket",C="toggleFeaturedInBucket",S="reorderBucketList",A="updateBucketsDataSource",D="updateBucketsData",P="updateBucketsFilter",x="updateBucketsDataOffset",k="updateBucketsDataPage",M="updateBucketsMaxPage",L={ADD_TO_BUCKET:E,DELETE_FROM_BUCKET:T,TOGGLE_FEATURED_IN_BUCKET:C,REORDER_BUCKET_LIST:S,UPDATE_BUCKETS_DATASOURCE:A,UPDATE_BUCKETS_DATA:D,UPDATE_BUCKETS_FILTER:P,UPDATE_BUCKETS_DATA_OFFSET:x,UPDATE_BUCKETS_DATA_PAGE:k,UPDATE_BUCKETS_MAX_PAGE:M},I="loadingRevision",j="updateRevision",R="updateRevisionContent",N="updatePreviewContent",B="updateAllRevision",F={LOADING_REV:I,UPDATE_REV:j,UPDATE_REV_CONTENT:R,UPDATE_REV_CURRENT_CONTENT:N,UPDATE_REV_ALL:B},$="updatePublishStartDate",U="updatePublishEndDate",V="updatePublishState",q="updatePublishSubmit",W="updatePublishVisibility",H="updateReviewProcess",z="updateSaveType",K={UPDATE_PUBLISH_START_DATE:$,UPDATE_PUBLISH_END_DATE:U,UPDATE_PUBLISH_STATE:V,UPDATE_PUBLISH_VISIBILITY:W,UPDATE_REVIEW_PROCESS:H,UPDATE_PUBLISH_SUBMIT:q,UPDATE_SAVE_TYPE:z},G="updateDatableData",Y="updateDatableBulk",X="replaceDatableBulk",Q="addDatableColumn",J="removeDatableColumn",Z="updateDatableOffset",ee="updateDatablePage",te="updateDatableMaxPage",ne="updateDatableNavigation",ie="updateDatableVisibility",ae="updateDatableSort",re="publishDatatable",se="featureDatatable",oe="updateDatableFilter",le="updateDatableFilterStatus",ce="clearDatableFilter",ue="updateDatableMessage",de="updateDatableLoading",fe="updateDatatableNestedDatas",he="updateDatableTracker",pe={UPDATE_DATATABLE_DATA:G,UPDATE_DATATABLE_BULK:Y,REPLACE_DATATABLE_BULK:X,ADD_DATATABLE_COLUMN:Q,REMOVE_DATATABLE_COLUMN:J,UPDATE_DATATABLE_OFFSET:Z,UPDATE_DATATABLE_PAGE:ee,UPDATE_DATATABLE_MAXPAGE:te,UPDATE_DATATABLE_NAV:ne,UPDATE_DATATABLE_VISIBLITY:ie,UPDATE_DATATABLE_SORT:ae,PUBLISH_DATATABLE:re,FEATURE_DATATABLE:se,UPDATE_DATATABLE_FILTER:oe,UPDATE_DATATABLE_FILTER_STATUS:le,CLEAR_DATATABLE_FILTER:ce,UPDATE_DATATABLE_MESSAGE:ue,UPDATE_DATATABLE_LOADING:de,UPDATE_DATATABLE_NESTED:fe,UPDATE_DATATABLE_TRACKER:he},me="updateParent",be={UPDATE_PARENT:me},ge=(n("f99e"),"emptyAttributes"),ve="updateAttributes",_e={EMPTY_OPTIONS:ge,UPDATE_OPTIONS:ve};n.d(t,"h",(function(){return i["g"]})),n.d(t,"j",(function(){return a["a"]})),n.d(t,"f",(function(){return r["i"]})),n.d(t,"b",(function(){return s["e"]})),n.d(t,"d",(function(){return m})),n.d(t,"l",(function(){return _})),n.d(t,"i",(function(){return O})),n.d(t,"g",(function(){return b["b"]})),n.d(t,"c",(function(){return L})),n.d(t,"n",(function(){return F})),n.d(t,"m",(function(){return K})),n.d(t,"e",(function(){return pe})),n.d(t,"k",(function(){return be})),n.d(t,"a",(function(){return _e}))},"0a8f":function(e,t,n){"use strict";t["a"]={modal:"s--modal",overlay:"s--overlay",editor:"s--in-editor",search:"s--search"}},"0cee":function(e,t,n){"use strict";var i=n("c292"),a=n.n(i);a.a},"0de3":function(e,t,n){},"0e7b":function(e,t,n){},"0fea":function(e,t,n){"use strict";var i=n("1548"),a=n.n(i);a.a},1071:function(e,t,n){"use strict";var i=n("fc07"),a=n.n(i);a.a},"11ed":function(e,t,n){},1249:function(e,t,n){"use strict";var i=n("63ea"),a=n.n(i);t["a"]={props:{min:{type:Number,default:0},max:{type:Number,default:0},disabled:{type:Boolean,default:!1},selected:{type:Array,default:function(){return[]}}},data:function(){return{currentValue:this.selected}},watch:{selected:function(e){this.currentValue=e}},computed:{checkedValue:{get:function(){return this.currentValue},set:function(e){a()(e,this.currentValue)||(this.currentValue=e,"undefined"!==typeof this.saveIntoStore&&this.saveIntoStore(e),this.$emit("change",e))}}},methods:{isMax:function(e){return e.length>this.max&&this.max>0},isMin:function(e){return e.length0}}}},"14bd":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dropdown",class:e.dropdownClasses,attrs:{"aria-title":e.title}},[e.fixed?n("div",{ref:"dropdown__cta"},[e._t("default")],2):e._t("default"),n("transition",{attrs:{name:"fade_move_dropdown"}},[e.active?n("div",{ref:"dropdown__position",staticClass:"dropdown__position"},[n("div",{staticClass:"dropdown__content",style:e.offsetStyle,attrs:{"data-dropdown-content":""}},[n("div",{staticClass:"dropdown__inner"},[e.arrow?n("span",{staticClass:"dropdown__arrow"}):e._e(),n("div",{staticClass:"dropdown__scroller",style:e.innerStyle},[e.title?n("span",{staticClass:"dropdown__title f--small"},[e._v(e._s(e.title))]):e._e(),e._t("dropdown__content")],2)])])]):e._e()])],2)},a=[],r={name:"A17Dropdown",props:{title:{type:String,default:""},position:{type:String,default:"bottom"},width:{type:String,default:"auto"},maxWidth:{type:Number,default:300},maxHeight:{type:Number,default:0},minWidth:{type:Number,default:0},arrow:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},offset:{type:Number,default:5},sideOffset:{type:Number,default:0},fixed:{type:Boolean,default:!1}},data:function(){return{currentPosition:this.position,currentHeight:100,currentMaxWidth:this.maxWidth,active:!1,originScrollPostion:null,scrollOffset:75}},computed:{dropdownClasses:function(){return{"dropdown--active":this.active,"dropdown--arrow":this.arrow,"dropdown--bottom":this.isPosition("bottom"),"dropdown--top":this.isPosition("top"),"dropdown--left":this.isPosition("left"),"dropdown--right":this.isPosition("right"),"dropdown--center":this.isPosition("center"),"dropdown--full":"full"===this.width,"dropdown--fixed":this.fixed}},offsetStyle:function(){return{"margin-top":this.isPosition("bottom")?this.offset+"px":"","margin-bottom":this.isPosition("top")?this.offset+"px":"",transform:this.sideOffset?"translateX("+this.sideOffset+"px)":"","max-width":this.currentMaxWidth>0&&"full"!==this.width?this.currentMaxWidth+"px":"","min-width":this.minWidth>0?this.minWidth+"px":""}},innerStyle:function(){return{"max-height":this.maxHeight>0?this.maxHeight+"px":"",overflow:this.maxHeight>0?"hidden":"","overflow-y":this.maxHeight>0?"scroll":""}}},methods:{isPosition:function(e){return-1!==this.currentPosition.indexOf(e)},reposition:function(){var e=this.$el.getBoundingClientRect().top+this.$el.offsetHeight+window.pageYOffset+this.offset,t=this.$el.getBoundingClientRect().top+window.pageYOffset-this.offset,n=window.pageYOffset+window.innerHeight;this.currentPosition!==this.position&&(this.currentPosition=this.position),this.isPosition("bottom")?e+this.currentHeight>n&&(this.currentPosition=this.currentPosition.replace(/bottom/i,"top")):this.isPosition("top")&&t-this.currentHeightwindow.innerWidth?window.innerWidth-e.left:this.maxWidth:this.isPosition("right")?this.currentMaxWidth=this.maxWidth+(window.innerWidth-e.right)>window.innerWidth?window.innerWidth-(window.innerWidth-e.right):this.maxWidth:this.currentMaxWidth=this.maxWidth>window.innerWidth?window.innerWidth:this.maxWidth},setFixedPosition:function(){var e=this.$refs.dropdown__cta.getBoundingClientRect();this.isPosition("top")?this.$refs.dropdown__position.style.bottom=Math.round(window.innerHeight-e.bottom+e.height)+"px":this.$refs.dropdown__position.style.top=Math.round(e.top+e.height)+"px",this.isPosition("left")?this.$refs.dropdown__position.style.left=Math.round(e.left)+"px":this.isPosition("right")?this.$refs.dropdown__position.style.right=Math.round(window.innerWidth-e.right)+"px":this.$refs.dropdown__position.style.left=Math.round(e.left+e.width/2)+"px"},closeFromDoc:function(e){var t=e.target;if("scroll"===e.type){if(this.$el.querySelector("[data-dropdown-content]").contains(t))return;var n=window.pageYOffset||document.documentElement.scrollTop;if(n>this.originScrollPostion-this.scrollOffset&&n-1)e.selected[n].splice(e.indexToReplace,1,o()(t[0]));else if(i)t.forEach((function(t){e.selected[n].push(o()(t))}));else{var a={};a[n]=t,e.selected=Object.assign({},e.selected,a)}e.indexToReplace=-1}})),c(i,l["h"].DESTROY_SPECIFIC_MEDIA,(function(e,t){e.selected[t.name]&&(e.selected[t.name].splice(t.index,1),0===e.selected[t.name].length&&a["a"].delete(e.selected,t.name)),e.connector=null})),c(i,l["h"].DESTROY_MEDIAS,(function(e,t){e.selected[t]&&a["a"].delete(e.selected,t),e.connector=null})),c(i,l["h"].REORDER_MEDIAS,(function(e,t){var n={};n[t.name]=t.medias,e.selected=Object.assign({},e.selected,n)})),c(i,l["h"].PROGRESS_UPLOAD_MEDIA,(function(e,t){var n=e.loading.filter((function(e){return e.id===t.id}));n.length?(n[0].error=!1,n[0].progress=t.progress):e.loading.unshift({id:t.id,name:t.name,progress:t.progress})})),c(i,l["h"].PROGRESS_UPLOAD,(function(e,t){e.uploadProgress=t})),c(i,l["h"].DONE_UPLOAD_MEDIA,(function(e,t){e.loading.forEach((function(n,i){n.id===t.id&&e.loading.splice(i,1)}))})),c(i,l["h"].ERROR_UPLOAD_MEDIA,(function(e,t){e.loading.forEach((function(n,i){n.id===t.id&&(a["a"].set(e.loading[i],"progress",0),a["a"].set(e.loading[i],"error",!0),a["a"].set(e.loading[i],"errorMessage",t.errorMessage))}))})),c(i,l["h"].UPDATE_MEDIA_CONNECTOR,(function(e,t){e.connector=t&&""!==t?t:null})),c(i,l["h"].UPDATE_MEDIA_MODE,(function(e,t){e.strict=t})),c(i,l["h"].UPDATE_MEDIA_TYPE,(function(e,t){t&&""!==t&&(e.type=t)})),c(i,l["h"].RESET_MEDIA_TYPE,(function(e){e.type=e.types[0].value})),c(i,l["h"].UPDATE_MEDIA_MAX,(function(e,t){e.max=Math.max(0,t)})),c(i,l["h"].SET_MEDIA_METADATAS,(function(e,t){var n=t.media.context,i=e.selected[n],r=t.value;function s(e){return r.locale?(e.metadatas.custom[r.id]||(e.metadatas.custom[r.id]={}),e.metadatas.custom[r.id][r.locale]=r.value):e.metadatas.custom[r.id]=r.value,e}if(t.media.hasOwnProperty("index")){var l=s(o()(i[t.media.index]));a["a"].set(i,t.media.index,l)}})),c(i,l["h"].DESTROY_MEDIA_CONNECTOR,(function(e){e.connector=null})),c(i,l["h"].SET_MEDIA_CROP,(function(e,t){var n=t.key,i=t.index,r=e.selected[n][i];function s(e){for(var n in e.crops||(e.crops={}),t.values){var i={};i.name=t.values[n].name||n,i.x=t.values[n].x,i.y=t.values[n].y,i.width=t.values[n].width,i.height=t.values[n].height,e.crops[n]=i}return e}var l=s(o()(r));a["a"].set(e.selected[n],i,l)})),i),p={state:d,getters:f,mutations:h};function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={success:null,info:null,warning:null,error:null},g={notifByVariant:function(e){return function(t){return e[t]}},notified:function(e){return 0===Object.keys(e).filter((function(t){return null!==e[t]})).length}},v=(u={},m(u,l["j"].SET_NOTIF,(function(e,t){e[t.variant]=t.message})),m(u,l["j"].CLEAR_NOTIF,(function(e,t){e[t]&&(e[t]=null)})),u),_={state:b,getters:g,mutations:v};a["a"].use(r["a"]);var y=!1;t["a"]=new r["a"].Store({modules:{notification:_,mediaLibrary:p},strict:y})},1548:function(e,t,n){},"159c":function(e,t,n){"use strict";t["a"]={methods:{openEditor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.$root.$refs.editor&&this.$root.$refs.editor.open(e)}}}},"16f9":function(e,t,n){"use strict";var i=n("bfa9"),a=function(){var e=document.querySelectorAll("[data-medialib-btn]");function t(){window["TWILL"].vm&&window["TWILL"].vm.openFreeMediaLibrary()}e.length&&Object(i["a"])(e,(function(e){e.addEventListener("click",(function(n){n.preventDefault(),t(),e.blur()}))}))};t["a"]=a},1800:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"itemlist"},[n("table",{staticClass:"itemlist__table"},[n("tbody",[e._l(e.itemsLoading,(function(t,i){return n("tr",{key:t.id,staticClass:"itemlist__row"},[n("td",{staticClass:"itemlist__cell itemlist__cell--loading",class:{"itemlist__cell--error":t.error},attrs:{colspan:e.columnsNumber}},[t.error?n("span",{staticClass:"itemlist__progressError"},[e._v("Upload Error")]):n("span",{staticClass:"itemlist__progress"},[n("span",{staticClass:"itemlist__progressBar",style:e.loadingProgress(i)})])])])})),e._l(e.items,(function(t){return n("tr",{key:t.endpointType+"_"+t.id,staticClass:"itemlist__row",class:{"s--picked":e.isSelected(t,e.keysToCheck)},on:{click:[function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey?null:(n.preventDefault(),e.toggleSelection(t))},function(n){return n.shiftKey?n.ctrlKey||n.altKey||n.metaKey?null:(n.preventDefault(),e.shiftToggleSelection(t)):null}]}},[t.hasOwnProperty("id")?n("td",{staticClass:"itemlist__cell itemlist__cell--btn"},[n("a17-checkbox",{attrs:{name:"item_list",value:t.endpointType+"_"+t.id,initialValue:e.checkedItems,theme:"bold"}})],1):e._e(),t.hasOwnProperty("thumbnail")?n("td",{staticClass:"itemlist__cell itemlist__cell--thumb"},[n("img",{attrs:{src:t.thumbnail}})]):e._e(),t.hasOwnProperty("name")?n("td",{staticClass:"itemlist__cell itemlist__cell--name"},[t.hasOwnProperty("renderHtml")?n("div",{domProps:{innerHTML:e._s(t.name)}}):n("div",[e._v(e._s(t.name))])]):e._e(),e._l(e.extraColumns,(function(i,a){return n("td",{key:a,staticClass:"itemlist__cell",class:e.rowClass(i)},["size"===i?[e._v(e._s(e._f("uppercase")(t[i])))]:[e._v(e._s(t[i]))]],2)}))],2)}))],2)])])},a=[],r=n("4e53"),s=n("df63"),o={name:"A17Itemlist",props:{keysToCheck:{type:Array,default:function(){return["id"]}}},mixins:[s["a"]],filters:r["a"],computed:{columnsNumber:function(){if(!this.items.length)return 0;var e=this.extraColumns.length,t=this.items[0];return t.hasOwnProperty("id")&&e++,t.hasOwnProperty("name")&&e++,t.hasOwnProperty("thumbnail")&&e++,e},extraColumns:function(){if(!this.items.length)return[];var e=this.items[0];return Object.keys(e).filter((function(t){return!["id","name","thumbnail","src","original","edit","crop","deleteUrl","updateUrl","updateBulkUrl","deleteBulkUrl","endpointType"].includes(t)&&"string"===typeof e[t]}))},checkedItems:function(){var e=[];return this.selectedItems.length&&this.selectedItems.forEach((function(t){e.push(t.endpointType+"_"+t.id)})),e}},methods:{rowClass:function(e){return"itemlist__cell--"+e},loadingProgress:function(e){return{width:this.itemsLoading[e].progress?this.itemsLoading[e].progress+"%":"0%"}}}},l=o,c=(n("f36b"),n("2877")),u=Object(c["a"])(l,i,a,!1,null,"ba3260ca",null);t["a"]=u.exports},"1a8d":function(e,t,n){"use strict";var i=n("0429");t["a"]={props:{type:{type:String,default:"image"}},methods:{openMediaLibrary:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.name,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;this.$store.commit(i["h"].UPDATE_MEDIA_CONNECTOR,t),this.$store.commit(i["h"].UPDATE_MEDIA_TYPE,this.type),this.$store.commit(i["h"].UPDATE_REPLACE_INDEX,n),this.$store.commit(i["h"].UPDATE_MEDIA_MAX,e),this.$root.$refs.mediaLibrary&&this.$root.$refs.mediaLibrary.open()}}}},"1ad4":function(e,t,n){},"1b5b":function(e,t,n){},"1c68":function(e,t,n){"use strict";var i=n("be93"),a=n.n(i);a.a},"1f21":function(e,t,n){"use strict";var i=n("398d"),a=n.n(i);a.a},"22bb":function(e,t,n){"use strict";var i=n("c234"),a=n.n(i);a.a},"22f7":function(e,t,n){"use strict";var i="setNotification",a="clearNotification";t["a"]={SET_NOTIF:i,CLEAR_NOTIF:a}},2732:function(e,t,n){"use strict";var i=n("b057"),a=n.n(i);a.a},2881:function(e,t,n){"use strict";var i=n("753c"),a=n.n(i);a.a},"2ac7":function(e,t,n){"use strict";var i=n("b487"),a=n.n(i);a.a},"2c83":function(e,t,n){"use strict";function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=function(e){var t,n={el:document,offset:0,duration:250,easing:"linear"},a=Date.now(),r=0,s=!1,o={linear:function(e){return e},easeIn:function(e){return e*e*e},easeOut:function(e){return--e*e*e+1},easeInOut:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}},l=window.requestAnimationFrame;for(var c in e)"undefined"!==typeof e[c]&&(n[c]=e[c]);function u(e,t){return e1?n("span",{directives:[{name:"tooltip",rawName:"v-tooltip"}],staticClass:"input__lang",attrs:{"data-tooltip-title":"Switch language"},on:{click:e.onClickLocale}},[e._v(e._s(e.displayedLocale))]):e._e(),e.note?n("span",{staticClass:"input__note f--small"},[e._v(e._s(e.note))]):e._e()]):e._e(),e.addNew?n("a",{staticClass:"input__add",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.openAddModal(t)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"add"}}),e._v(" "),n("span",{staticClass:"f--link-underlined--o"},[e._v("Add New")])]):e._e(),e._t("default"),e.error&&e.errorMessage?n("span",{staticClass:"input__errorMessage f--small",domProps:{innerHTML:e._s(e.errorMessage)}}):e._e(),e.otherLocalesError?n("span",{staticClass:"input__errorMessage f--small"},[e._v(e._s(e.errorMessageLocales))]):e._e()],2)},k=[],M={name:"A17InputFrame",mixins:[y["a"],O["a"],T["a"]],props:{addNew:{type:String,default:""}},computed:{textfieldClasses:function(){return{"input--error":this.error,"input--small":"small"===this.size}}},methods:{openAddModal:function(){this.$parent.$refs.addModal&&this.$parent.$refs.addModal.open()}}},L=M,I=(n("ae2b"),Object(l["a"])(L,x,k,!1,null,"7b0f9b44",null)),j=I.exports,R=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,name:e.name,required:e.required}},[n("div",{staticClass:"form__field",class:e.textfieldClasses},[n("input",{attrs:{type:"text",placeholder:e.placeholder,name:e.name,id:e.name,disabled:e.disabled,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete,maxlength:"7"},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}),n("a17-dropdown",{ref:"colorDropdown",staticClass:"form__field--color",attrs:{position:"bottom-right",arrow:!0,offset:15,minWidth:300,clickable:!0,sideOffset:15},on:{close:e.saveIntoStore}},[n("span",{staticClass:"form__field--colorBtn",style:e.bcgStyle,on:{click:function(t){return e.$refs.colorDropdown.toggle()}}}),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[n("a17-colorpicker",{attrs:{color:e.value},on:{change:e.updateValueFromPicker}})],1)])],1)])},N=[],B=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"colorpicker"},[n("div",{staticClass:"colorpicker__color"},[n("div",{ref:"satContainer",staticClass:"colorpicker__saturation",style:{background:e.bgColor},on:{mousedown:function(t){return e.handleMouseDown("saturation")}}},[n("div",{staticClass:"colorpicker__saturation--white"}),n("div",{staticClass:"colorpicker__saturation--black"}),n("div",{staticClass:"colorpicker__saturation-pointer",style:{top:e.satPointerTop,left:e.satPointerLeft}},[n("div",{staticClass:"colorpicker__saturation-circle"})])]),n("div",{staticClass:"colorpicker__hue colorpicker__hue--vertical"},[n("div",{ref:"hueContainer",staticClass:"colorpicker__hue-container",on:{mousedown:function(t){return e.handleMouseDown("hue")}}},[n("div",{staticClass:"colorpicker__hue-pointer",style:{top:e.huePointerTop,left:e.huePointerLeft}},[n("div",{staticClass:"colorpicker__hue-picker"})])])])])])},F=[],$=n("66cb"),U=n.n($),V=n("0f32"),q=n.n(V),W={name:"a17ColorPicker",props:{color:{type:String,required:!0},direction:{type:String,default:"vertical"}},data:function(){return{currentColor:U()(this.color),currentColorHue:U()(this.color).toHsv().h,currentTarget:"",pullDirection:""}},computed:{bgColor:function(){return"hsl(".concat(this.currentColorHue,", 100%, 50%)")},satPointerTop:function(){return-100*this.currentColor.toHsv().v+1+100+"%"},satPointerLeft:function(){return 100*this.currentColor.toHsv().s+"%"},huePointerTop:function(){return"vertical"===this.direction?0===this.currentColorHue&&"right"===this.pullDirection?0:-100*this.currentColorHue/360+100+"%":0},huePointerLeft:function(){return"vertical"===this.direction?0:0===this.currentColorHue&&"right"===this.pullDirection?"100%":100*this.currentColorHue/360+"%"}},methods:{throttle:q()((function(e,t){e(t)}),20,{leading:!0,trailing:!1}),satHandleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.satContainer;if(n){var i=n.clientWidth,a=n.clientHeight,r=n.getBoundingClientRect().left+window.pageXOffset,s=n.getBoundingClientRect().top+window.pageYOffset,o=e.pageX||(e.touches?e.touches[0].pageX:0),l=e.pageY||(e.touches?e.touches[0].pageY:0),c=o-r,u=l-s;c<0?c=0:c>i?c=i:u<0?u=0:u>a&&(u=a);var d=c/i,f=-u/a+1;f=f>0?f:0,f=f>1?1:f,this.throttle(this.onChange,{h:this.currentColorHue,s:d,v:f,a:this.currentColor.toHsv().a})}},hueHandleChange:function(e,t){!t&&e.preventDefault();var n,i,a=this.$refs.hueContainer,r=a.clientWidth,s=a.clientHeight,o=a.getBoundingClientRect().left+window.pageXOffset,l=a.getBoundingClientRect().top+window.pageYOffset,c=e.pageX||(e.touches?e.touches[0].pageX:0),u=e.pageY||(e.touches?e.touches[0].pageY:0),d=c-o,f=u-l;"vertical"===this.direction?f<0?n=360:f>s?n=0:(i=-100*f/s+100,n=360*i/100):d<0?n=0:d>r?n=360:(i=100*d/r,n=360*i/100),this.currentColorHue!==n&&this.throttle(this.onChange,{h:n,s:this.currentColor.toHsl().s,l:this.currentColor.toHsl().l,a:this.currentColor.toHsl().a,source:"hsl"})},handleMouseDown:function(e){this.currentTarget=e,"saturation"===this.currentTarget?(window.addEventListener("mousemove",this.satHandleChange),window.addEventListener("mouseup",this.satHandleChange)):(window.addEventListener("mousemove",this.hueHandleChange),window.addEventListener("mouseup",this.hueHandleChange)),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(e){this.unbindEventListeners()},unbindEventListeners:function(){"saturation"===this.currentTarget?(window.removeEventListener("mousemove",this.satHandleChange),window.removeEventListener("mouseup",this.satHandleChange)):(window.removeEventListener("mousemove",this.hueHandleChange),window.removeEventListener("mouseup",this.hueHandleChange)),window.removeEventListener("mouseup",this.handleMouseUp)},onChange:function(e){this.currentColor=U()(e),this.currentColorHue=e.h,this.$emit("change",this.currentColor.toHexString())}}},H=W,z=(n("b773"),Object(l["a"])(H,B,F,!1,null,null,null)),K=z.exports,G={name:"a17ColorField",mixins:[y["a"],O["a"],w["a"]],props:{name:{type:String,required:!0},initialValue:{default:""}},components:{"a17-colorpicker":K},data:function(){return{focused:!1,value:this.initialValue}},computed:{bcgStyle:function(){return{"background-color":""!==this.value?this.value:"transparent"}},textfieldClasses:function(){return{"s--focus":this.focused,"s--disabled":this.disabled}}},methods:{updateFromStore:function(e){"undefined"===typeof e&&(e=""),this.value!==e&&(this.value=e)},updateValueFromPicker:function(e){this.value!==e&&(this.value=e)},updateValue:function(e){this.value!==e&&(this.value=e,this.saveIntoStore())},onBlur:function(e){var t=e.target.value;this.updateValue(t),this.focused=!1},onFocus:function(){this.focused=!0},onInput:function(){}}},Y=G,X=(n("5b74"),Object(l["a"])(Y,R,N,!1,null,"947c7b02",null)),Q=X.exports,J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,locale:e.locale,size:e.size,name:e.name,"label-for":e.uniqId,required:e.required},on:{localize:e.updateLocale}},[n("div",{staticClass:"input__field",class:e.textfieldClasses},[e.hasPrefix?n("span",{staticClass:"input__prefix"},[e._v(e._s(e.prefix))]):e._e(),"textarea"===e.type?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],ref:"clone",staticClass:"input__clone",attrs:{rows:e.rows,disabled:"true"},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}):e._e(),"textarea"===e.type?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],ref:"input",attrs:{name:e.name,id:e.uniqId,placeholder:e.placeholder,disabled:e.disabled,required:e.required,readonly:e.readonly,rows:e.rows,autofocus:e.autofocus},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:[function(t){t.target.composing||(e.value=t.target.value)},e.onInput]}}):e._e(),"number"==e.type?n("input",{ref:"input",attrs:{type:"number",placeholder:e.placeholder,name:e.name,id:e.uniqId,disabled:e.disabled,maxlength:e.displayedMaxlength,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}):e._e(),"text"==e.type?n("input",{ref:"input",attrs:{type:"text",placeholder:e.placeholder,name:e.name,id:e.uniqId,disabled:e.disabled,maxlength:e.displayedMaxlength,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}):e._e(),"email"==e.type?n("input",{ref:"input",attrs:{type:"email",placeholder:e.placeholder,name:e.name,id:e.uniqId,disabled:e.disabled,maxlength:e.displayedMaxlength,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete,pattern:"[^@\\s]+@[^@\\s]+\\.[^@\\s]+"},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}):e._e(),"password"==e.type?n("input",{ref:"input",attrs:{type:"password",placeholder:e.placeholder,name:e.name,id:e.uniqId,disabled:e.disabled,maxlength:e.displayedMaxlength,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}):e._e(),e.hasMaxlength?n("span",{staticClass:"input__limit f--tiny",class:e.limitClasses},[e._v(e._s(e.counter))]):e._e()])])},Z=[],ee=n("b047"),te=n.n(ee),ne={name:"A17Textfield",mixins:[_["a"],y["a"],O["a"],T["a"],w["a"]],props:{name:{type:String,required:!0},type:{type:String,default:"text"},prefix:{type:String,default:""},maxlength:{type:Number,default:0},initialValue:{default:""},rows:{type:Number,default:5}},computed:{uniqId:function(e){return this.name+"-"+this.randKey},textfieldClasses:function(){return{"input__field--textarea":"textarea"===this.type,"input__field--small":"small"===this.size&&"textarea"===!this.type,"s--focus":this.focused,"s--disabled":this.disabled}},hasMaxlength:function(){return this.maxlength>0},hasPrefix:function(){return""!==this.prefix},displayedMaxlength:function(){return!!this.hasMaxlength&&this.maxlength},limitClasses:function(){return{"input__limit--red":this.counter<10}}},data:function(){return{value:this.initialValue,lastSavedValue:this.initialValue,focused:!1,counter:0}},watch:{initialValue:function(){this.updateValue(this.initialValue)}},methods:{updateFromStore:function(e){"undefined"===typeof e&&(e=""),this.value!==e&&this.updateValue(e)},updateValue:function(e){this.value=e,this.updateCounter(e)},updateAndSaveValue:function(e){this.updateValue(e),this.lastSavedValue=this.value,this.saveIntoStore()},updateCounter:function(e){this.maxlength>0&&(this.counter=this.maxlength-(e?e.toString().length:0))},onFocus:function(e){this.focused=!0,this.resizeTextarea(),this.$emit("focus")},onBlur:function(e){var t=e.target.value;this.updateAndSaveValue(t),this.focused=!1,this.$emit("blur",t)},onInput:te()((function(e){var t=e.target.value;this.updateAndSaveValue(t),this.$emit("change",t)}),250),resizeTextarea:function(){if("textarea"===this.type){var e=this.$refs.clone,t=15;if(e){var n=e.scrollHeight;this.$refs.input.style.minHeight="".concat(n+t,"px")}}}},mounted:function(){this.updateCounter(this.value),"textarea"===this.type&&(this.resizeTextarea(),this.$watch("value",this.resizeTextarea),this.$nextTick((function(){window.addEventListener("resize",this.resizeTextarea)})))},beforeDestroy:function(){"textarea"===this.type&&window.removeEventListener("resize",this.resizeTextarea)}},ie=ne,ae=(n("68c3"),Object(l["a"])(ie,J,Z,!1,null,"3ae3c494",null)),re=ae.exports,se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form__input form__input--hidden"},[n("input",{attrs:{type:"hidden",name:e.name,id:e.uniqId},domProps:{value:e.value}})])},oe=[],le={name:"A17HiddenField",mixins:[_["a"],y["a"],w["a"]],props:{name:{type:String,required:!0},initialValue:{default:""}},computed:{uniqId:function(){return this.name+"-"+this.randKey}},data:function(){return{value:this.initialValue}},watch:{initialValue:function(){this.value=this.initialValue}},methods:{updateFromStore:function(e){"undefined"===typeof e&&(e=""),this.value!==e&&(this.value=e)}}},ce=le,ue=Object(l["a"])(ce,se,oe,!1,null,null,null),de=ue.exports,fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,locale:e.locale,size:e.size,name:e.name,required:e.required},on:{localize:e.updateLocale}},[n("div",{staticClass:"wysiwyg__outer",class:e.textfieldClasses},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{name:e.name,type:"hidden"},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}),e.editSource?[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.activeSource,expression:"!activeSource"}],staticClass:"wysiwyg",class:e.textfieldClasses},[n("div",{ref:"editor",staticClass:"wysiwyg__editor",class:{"wysiwyg__editor--limitHeight":e.limitHeight}}),e.shouldShowCounter?n("span",{staticClass:"wysiwyg__limit f--tiny",class:e.limitClasses},[e._v(e._s(e.counter))]):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.activeSource,expression:"activeSource"}],staticClass:"form__field form__field--textarea"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],style:e.textareaHeight,attrs:{placeholder:e.placeholder,autofocus:e.autofocus},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})]),n("a17-button",{staticClass:"wysiwyg__button",attrs:{variant:"ghost"},on:{click:e.toggleSourcecode}},[e._v("Source code")])]:[n("div",{staticClass:"wysiwyg",class:e.textfieldClasses},[n("div",{ref:"editor",staticClass:"wysiwyg__editor",class:{"wysiwyg__editor--limitHeight":e.limitHeight}}),e.shouldShowCounter?n("span",{staticClass:"wysiwyg__limit f--tiny",class:e.limitClasses},[e._v(e._s(e.counter))]):e._e()])]],2)])},he=[],pe=n("2f62"),me=(n("8096"),n("14e1"),n("a753"),n("9339")),be=n.n(me);function ge(e,t,n){return ge="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=ve(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}},ge(e,t,n||e)}function ve(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=Ce(e),null===e)break;return e}function _e(e){return _e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n