!function(e){function t(t){for(var r,i,u=t[0],c=t[1],l=t[2],f=0,p=[];f<u.length;f++)i=u[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);for(s&&s(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,u=1;u<n.length;u++){var c=n[u];0!==o[c]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={24:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var u=window.webpackWPML=window.webpackWPML||[],c=u.push.bind(u);u.push=t,u=u.slice();for(var l=0;l<u.length;l++)t(u[l]);var s=c;a.push([1289,0]),n()}({1289:function(e,t,n){"use strict";n.r(t);var r=n(14),o=n.n(r),a=n(16),i=n.n(a),u=function(){function e(t){var n=this;o()(this,e),this.ajax=t,document.addEventListener("otgs-notice-added",(function(e){n.attachEvents()}))}return i()(e,[{key:"attachEvents",value:function(){var e=this,t=document.querySelectorAll(".wpml-requirements-disabled");[].forEach.call(t,(function(t){return t.onclick=function(t){return e.activatePlugin(t)}}))}},{key:"activatePlugin",value:function(e){e.preventDefault();var t=e.currentTarget;t.innerHTML=t.dataset.wpmlActivating,this.ajax.post({nonce:e.currentTarget.dataset.wpmlDisabledPluginNonce,action:"installer_activate_plugin",plugin_id:t.dataset.pluginFile},"form").then((function(n){n.error?t.innerHTML=e.currentTarget.dataset.wpmlError:t.outerHTML=t.dataset.wpmlActivated}))}}]),e}(),c=function(){function e(t){o()(this,e),this.ajaxUrl=t}return i()(e,[{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"json",n="",r=null,o=new URL(this.ajaxUrl,document.location);switch(t){case"json":n="application/json";break;case"form":n="application/x-www-form-urlencoded; charset=utf-8"}return o.searchParams.toString()?Object.keys(e).map((function(t){return o.searchParams.append(t,e[t])})):r=Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"),fetch(o,{method:"POST",body:r,headers:{"Content-Type":n},credentials:"same-origin"}).then((function(e){if(e.ok)switch(t){case"json":return e.json();case"form":return e.text();default:return e}throw new Error("Invalid Request")})).catch((function(e){console.log("There has been a problem with your fetch operation: ",e.message)}))}}]),e}();window.addEventListener("DOMContentLoaded",(function(){new u(new c(ajaxurl)).attachEvents()}))}});