!function(e){function t(t){for(var i,a,s=t[0],c=t[1],u=t[2],d=0,h=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&h.push(o[a][0]),o[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(l&&l(t);h.length;)h.shift()();return r.push.apply(r,u||[]),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={3: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.webpackWPML=window.webpackWPML||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var l=c;r.push([1303,0]),n()}({1303:function(e,t,n){"use strict";n.r(t);var i=n(15),o=n.n(i),r=n(18),a=n.n(r),s=n(147),c=function(){function e(){o()(this,e),this.ajaxUrl=ajaxurl,this.tools=new s.a}return a()(e,[{key:"init",value:function(){var e=this;this.mainNotice=document.querySelector(".js-classic-editor-notice"),this.mainNotice&&(this.nonce=this.mainNotice.dataset.nonce,this.action=this.mainNotice.dataset.action,this.mainNotice.querySelector(".js-minimize").onclick=function(){return e.minimize()},this.mainNotice.querySelector(".js-request-activation").onclick=function(){return e.requestActivation()}),this.minimizedNotice=document.querySelector(".js-classic-editor-notice-minimized"),this.minimizedNotice&&(this.minimizedNotice.querySelector(".js-maximize").onclick=function(){return e.maximize()})}},{key:"minimize",value:function(){this.tools.hide(this.mainNotice,!0),this.tools.show(this.minimizedNotice,!0),this.ajax({command:"minimize"})}},{key:"maximize",value:function(){this.tools.show(this.mainNotice,!0),this.tools.hide(this.minimizedNotice,!0),this.ajax({command:"maximize"})}},{key:"requestActivation",value:function(){var e=this;this.ajax({command:"requestActivation",manager:this.mainNotice.querySelector(".js-translation-managers").value}).then((function(t){return e.activationResponse(t)}))}},{key:"activationResponse",value:function(e){alert(e)}},{key:"ajax",value:function(e){e.nonce=this.nonce,e.action=this.action;var t=Object.keys(e).map((function(t){return t+"="+e[t]})).join("&");return fetch(this.ajaxUrl,{method:"POST",body:t,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},credentials:"same-origin"}).then((function(e){if(!e.ok)throw new Error(e.statusText);return e.json()})).then((function(e){return e.data.message}))}}]),e}();document.addEventListener("DOMContentLoaded",(function(){(new c).init()}))},147:function(e,t,n){"use strict";var i=n(15),o=n.n(i),r=n(18),a=n.n(r),s=function(){function e(){o()(this,e),this.SCROLL_TO_TOP=1,this.SCROLL_TO_BOTTOM=2}return a()(e,[{key:"show",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&(e.style.display=null),e.classList.remove("hidden")}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&(e.style.display="none"),e.classList.add("hidden")}},{key:"showSpinner",value:function(e){e.classList.add("is-active")}},{key:"hideSpinner",value:function(e){e.classList.remove("is-active")}},{key:"enableElement",value:function(e){e.classList.remove("disabled")}},{key:"disableElement",value:function(e){e.classList.add("disabled")}},{key:"scrollTo",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.SCROLL_TO_TOP,i=arguments.length>2?arguments[2]:void 0,o=e.getBoundingClientRect();t=this.SCROLL_TO_BOTTOM===n?window.scrollY-window.innerHeight+o.top+o.height:window.scrollY+o.top;var r=document.scrollingElement||document.documentElement,a=r.scrollTop,s=t-a,c=+new Date,u=function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},l=function e(){var n=+new Date-c;r.scrollTop=parseInt(u(n,a,s,i)),n<i?requestAnimationFrame(e):r.scrollTop=t};l()}}]),e}();t.a=s}});