window.manufacturer_address_form=function(t){function e(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,e),u.l=!0,u.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=333)}({232:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;noption:selected",this.countryDniInputLabelDangerSelector=u+">span.text-danger",this.$countryInput.on("change",function(){return o._toggle()}),this._toggle()}return u(t,[{key:"_toggle",value:function(){var t=a(this.countryInputSelectedSelector);a(this.countryDniInputLabelDangerSelector).remove(),this.$countryDniInput.attr("required",!1),1===parseInt(t.attr("need_dni"),10)&&(this.$countryDniInput.attr("required",!0),this.$countryDniInputLabel.prepend(a('*')))}}]),t}();e.default=o},233:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];a.ajax({url:this.$countryInput.data("states-url"),method:"GET",dataType:"json",data:{id_country:this.$countryInput.val()}}).then(function(n){if(0===n.states.length)return void t.$stateSelectionBlock.fadeOut();if(t.$stateSelectionBlock.fadeIn(),!1===e){t.$countryStateSelector.empty();var r=t;a.each(n.states,function(t,e){r.$countryStateSelector.append(a("").attr("value",e).text(t))})}}).catch(function(t){void 0!==t.responseJSON&&showErrorMessage(t.responseJSON.message)})}}]),t}();e.default=o},257:function(t,e,n){"use strict";Object.defineProperty(e,"__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 */ e.default={manufacturerAddressCountrySelect:"#manufacturer_address_id_country",manufacturerAddressStateSelect:"#manufacturer_address_id_state",manufacturerAddressStateBlock:".js-manufacturer-address-state",manufacturerAddressDniInput:"#manufacturer_address_dni",manufacturerAddressDniInputLabel:'label[for="manufacturer_address_dni"]'}},333:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var u=n(233),a=r(u),o=n(257),c=r(o),i=n(232),s=r(i);/** * 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 */ (0,window.$)(document).ready(function(){new a.default(c.default.manufacturerAddressCountrySelect,c.default.manufacturerAddressStateSelect,c.default.manufacturerAddressStateBlock),new s.default(c.default.manufacturerAddressCountrySelect,c.default.manufacturerAddressDniInput,c.default.manufacturerAddressDniInputLabel)})}});