window.manufacturer=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].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,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},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=332)}({1:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},10:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n ")),t=t.concat(o)}),t}}]),e}();t.default=a},11:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n",{action:t.data("url"),method:o?i:"POST"}).appendTo("body");o||a.append(r("",{type:"_hidden",name:"_method",value:i})),a.submit()}})}}]),e}();t.default=a},13:function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ var n=e.$,i=function(e,t){n.post(e).then(function(){return window.location.assign(t)})};t.default=i}).call(t,n(1))},15:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n",{action:e,method:"POST"}).appendTo("body").submit()}}]),e}();t.default=r}).call(t,n(1))},17:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventEmitter=void 0;var i=n(19),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.EventEmitter=new o.default},18:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&c.length>a&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=c.length,i(u)}return e}function l(){for(var e=[],t=0;t0&&(r=t[0]),r instanceof Error)throw r;var a=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw a.context=r,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)m(l,this,t);else for(var c=l.length,u=f(l,c),n=0;n=0;r--)if(n[r]===t||n[r].listener===t){a=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():d(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,r=Object.keys(n);for(i=0;i=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return u(this,e,!0)},o.prototype.rawListeners=function(e){return u(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):s.call(e,t)},o.prototype.listenerCount=s,o.prototype.eventNames=function(){return this._eventsCount>0?h(this._events):[]}},29:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});/** * 2007-2019 PrestaShop and Contributors * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ var o=window.$,r=function e(t){var n=t.tokenFieldSelector,r=t.options,a=void 0===r?{}:r;i(this,e),o(n).tokenfield(a)};t.default=r},3:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;ncode',"mce-i-none":'format_color_text',"mce-i-bold":'format_bold',"mce-i-italic":'format_italic',"mce-i-underline":'format_underlined',"mce-i-strikethrough":'format_strikethrough',"mce-i-blockquote":'format_quote',"mce-i-link":'link',"mce-i-alignleft":'format_align_left',"mce-i-aligncenter":'format_align_center',"mce-i-alignright":'format_align_right',"mce-i-alignjustify":'format_align_justify',"mce-i-bullist":'format_list_bulleted',"mce-i-numlist":'format_list_numbered',"mce-i-image":'image',"mce-i-table":'grid_on',"mce-i-media":'video_library',"mce-i-browse":'attachment',"mce-i-checkbox":''};r.each(e,function(e,t){r("."+e).replaceWith(t)})}},{key:"handleCounterTiny",value:function(e){var t=r("#"+e),n=t.attr("counter"),i=t.attr("counter_type"),o=tinyMCE.activeEditor.getBody().textContent.length;t.parent().find("span.currentLength").text(o),"recommended"!==i&&o>n?t.parent().find("span.maxLength").addClass("text-danger"):t.parent().find("span.maxLength").removeClass("text-danger")}}]),e}();t.default=a},332:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var o=n(15),r=i(o),a=n(29),l=i(a),c=n(54),u=i(c),s=n(3),f=i(s),d=n(8),v=i(d),h=n(5),p=i(h),m=n(7),g=i(m),y=n(16),b=i(y),_=n(12),w=i(_),k=n(11),C=i(k),x=n(9),j=i(x),E=n(10),T=i(E),O=n(18),L=i(O),M=n(43),P=i(M),S=n(31),A=i(S),B=n(6),I=i(B);(0,window.$)(function(){["manufacturer","manufacturer_address"].forEach(function(e){var t=new f.default(e);t.addExtension(new T.default),t.addExtension(new g.default),t.addExtension(new v.default),t.addExtension(new p.default),t.addExtension(new b.default),t.addExtension(new w.default),t.addExtension(new C.default),t.addExtension(new j.default),t.addExtension(new I.default)}),new r.default,new P.default,new A.default,new l.default({tokenFieldSelector:"input.js-taggable-field",options:{createTokensOnBlur:!0}}),new u.default,new L.default("#manufacturer_shop_association").enableAutoCheckChildren()})},43:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ var o=window.$,r=function e(){i(this,e),o(document).on("click",".js-form-submit-btn",function(e){e.preventDefault();var t=o(this);if(!t.data("form-confirm-message")||!1!==confirm(t.data("form-confirm-message"))){var n=o("
",{action:t.data("form-submit-url"),method:"POST"});t.data("form-csrf-token")&&n.append(o("",{type:"_hidden",name:"_csrf_token",value:t.data("form-csrf-token")})),n.appendTo("body").submit()}})};t.default=r},6:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0?t._enableBulkActionsBtn(e):t._disableBulkActionsBtn(e)})}},{key:"_enableBulkActionsBtn",value:function(e){e.getContainer().find(".js-bulk-actions-btn").prop("disabled",!1)}},{key:"_disableBulkActionsBtn",value:function(e){e.getContainer().find(".js-bulk-actions-btn").prop("disabled",!0)}}]),e}();t.default=a}});