window.translation_settings=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=539)}({0:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},1:function(e,t,n){"use strict";t.__esModule=!0;var r=n(19),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ t.default=a},5:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},538:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),f=r(u),a=window.$,c=function(){function e(){(0,i.default)(this,e),a(".js-translation-type").on("change",this.toggleFields.bind(this)),a(".js-email-content-type").on("change",this.toggleEmailFields.bind(this)),this.toggleFields()}return(0,f.default)(e,[{key:"toggleFields",value:function(){var e=a(".js-translation-type").val(),t=a(".js-module-form-group"),n=a(".js-email-form-group"),r=a(".js-theme-form-group"),o=r.find("select"),i=o.find(".js-no-theme"),u=o.find("option:not(.js-no-theme):first");switch(e){case"back":case"others":this._hide(t,n,r);break;case"themes":i.is(":selected")&&o.val(u.val()),this._hide(t,n,i),this._show(r);break;case"modules":this._hide(n,r),this._show(t);break;case"mails":this._hide(t,r),this._show(n)}this.toggleEmailFields()}},{key:"toggleEmailFields",value:function(){if("mails"===a(".js-translation-type").val()){var e=a(".js-email-form-group").find("select").val(),t=a(".js-theme-form-group"),n=t.find(".js-no-theme");"body"===e?(n.prop("selected",!0),this._show(n,t)):this._hide(n,t)}}},{key:"_hide",value:function(){for(var e=arguments.length,t=Array(e),n=0;n * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ (0,window.$)(function(){new o.default})},6:function(e,t,n){var r=n(11),o=n(17),i=n(13),u=Object.defineProperty;t.f=n(2)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},7:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},8:function(e,t,n){var r=n(5),o=n(3),i=n(15),u=n(10),f=function(e,t,n){var a,c,s,l=e&f.F,d=e&f.G,p=e&f.S,h=e&f.P,v=e&f.B,y=e&f.W,_=d?o:o[t]||(o[t]={}),g=_.prototype,w=d?r:p?r[t]:(r[t]||{}).prototype;d&&(n=t);for(a in n)(c=!l&&w&&void 0!==w[a])&&a in _||(s=c?w[a]:n[a],_[a]=d&&"function"!=typeof w[a]?n[a]:v&&c?i(s,r):y&&w[a]==s?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(s):h&&"function"==typeof s?i(Function.call,s):s,h&&((_.virtual||(_.virtual={}))[a]=s,e&f.R&&g&&!g[a]&&u(g,a,s)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f}});