Files
b2b.redline.com.pl/admin086k8e6t9/themes/new-theme/public/manufacturer_address_form.bundle.js
2025-06-24 14:14:35 +02:00

49 lines
12 KiB
JavaScript

window.manufacturer_address_form=function(t){function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=502)}({0:function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},1:function(t,n,e){"use strict";n.__esModule=!0;var r=e(19),u=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,u.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},10:function(t,n,e){var r=e(6),u=e(12);t.exports=e(2)?function(t,n,e){return r.f(t,n,u(1,e))}:function(t,n,e){return t[n]=e,t}},11:function(t,n,e){var r=e(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},12:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},13:function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t))return t;var e,u;if(n&&"function"==typeof(e=t.toString)&&!r(u=e.call(t)))return u;if("function"==typeof(e=t.valueOf)&&!r(u=e.call(t)))return u;if(!n&&"function"==typeof(e=t.toString)&&!r(u=e.call(t)))return u;throw TypeError("Can't convert object to primitive value")}},141:function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var u=e(0),o=r(u),c=e(1),i=r(c),a=window.$,f=function(){function t(n,e,r){var u=this;(0,o.default)(this,t),this.$countryDniInput=a(e),this.$countryDniInputLabel=a(r),this.$countryInput=a(n),this.countryInputSelectedSelector=n+">option:selected",this.countryDniInputLabelDangerSelector=r+">span.text-danger",this.$countryDniInput.attr("required")||(this.$countryInput.on("change",function(){return u.toggle()}),this.toggle())}return(0,i.default)(t,[{key:"toggle",value:function(){a(this.countryDniInputLabelDangerSelector).remove(),this.$countryDniInput.prop("required",!1),1===parseInt(a(this.countryInputSelectedSelector).attr("need_dni"),10)&&(this.$countryDniInput.prop("required",!0),this.$countryDniInputLabel.prepend(a('<span class="text-danger">*</span>')))}}]),t}();n.default=f},142:function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var u=e(67),o=r(u),c=e(0),i=r(c),a=e(1),f=r(a),s=window.$,l=function(){function t(n,e,r){var u=this;return(0,i.default)(this,t),this.$stateSelectionBlock=s(r),this.$countryStateSelector=s(e),this.$countryInput=s(n),this.$countryInput.on("change",function(){return u.change()}),{}}return(0,f.default)(t,[{key:"change",value:function(){var t=this,n=this.$countryInput.val();""!==n&&s.get({url:this.$countryInput.data("states-url"),dataType:"json",data:{id_country:n}}).then(function(n){t.$countryStateSelector.empty(),(0,o.default)(n.states).forEach(function(e){t.$countryStateSelector.append(s("<option></option>").attr("value",n.states[e]).text(e))}),t.toggle()}).catch(function(t){void 0!==t.responseJSON&&showErrorMessage(t.responseJSON.message)})}},{key:"toggle",value:function(){this.$countryStateSelector.find("option").length>0?(this.$stateSelectionBlock.fadeIn(),this.$stateSelectionBlock.removeClass("d-none")):this.$stateSelectionBlock.fadeOut()}}]),t}();n.default=l},15:function(t,n,e){var r=e(18);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,u){return t.call(n,e,r,u)}}return function(){return t.apply(n,arguments)}}},16:function(t,n,e){var r=e(4),u=e(5).document,o=r(u)&&r(u.createElement);t.exports=function(t){return o?u.createElement(t):{}}},17:function(t,n,e){t.exports=!e(2)&&!e(7)(function(){return 7!=Object.defineProperty(e(16)("div"),"a",{get:function(){return 7}}).a})},18:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},19:function(t,n,e){t.exports={default:e(20),__esModule:!0}},2:function(t,n,e){t.exports=!e(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},20:function(t,n,e){e(21);var r=e(3).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},21:function(t,n,e){var r=e(8);r(r.S+r.F*!e(2),"Object",{defineProperty:e(6).f})},22:function(t,n,e){var r=e(51),u=e(38);t.exports=function(t){return r(u(t))}},27:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},3:function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},34:function(t,n,e){var r=e(55),u=e(49);t.exports=Object.keys||function(t){return r(t,u)}},38:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},39:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4:function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},408:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* 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.md.
* 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://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
n.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"]'}},43:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},46:function(t,n,e){var r=e(38);t.exports=function(t){return Object(r(t))}},47:function(t,n,e){var r=e(50)("keys"),u=e(43);t.exports=function(t){return r[t]||(r[t]=u(t))}},48:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},49:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},5:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},50:function(t,n,e){var r=e(5),u=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return u[t]||(u[t]={})}},502:function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var u=e(142),o=r(u),c=e(408),i=r(c),a=e(141),f=r(a);/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* 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.md.
* 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://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
(0,window.$)(document).ready(function(){new o.default(i.default.manufacturerAddressCountrySelect,i.default.manufacturerAddressStateSelect,i.default.manufacturerAddressStateBlock),new f.default(i.default.manufacturerAddressCountrySelect,i.default.manufacturerAddressDniInput,i.default.manufacturerAddressDniInputLabel)})},51:function(t,n,e){var r=e(48);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},55:function(t,n,e){var r=e(27),u=e(22),o=e(58)(!1),c=e(47)("IE_PROTO");t.exports=function(t,n){var e,i=u(t),a=0,f=[];for(e in i)e!=c&&r(i,e)&&f.push(e);for(;n.length>a;)r(i,e=n[a++])&&(~o(f,e)||f.push(e));return f}},56:function(t,n,e){var r=e(39),u=Math.min;t.exports=function(t){return t>0?u(r(t),9007199254740991):0}},58:function(t,n,e){var r=e(22),u=e(56),o=e(59);t.exports=function(t){return function(n,e,c){var i,a=r(n),f=u(a.length),s=o(c,f);if(t&&e!=e){for(;f>s;)if((i=a[s++])!=i)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}}},59:function(t,n,e){var r=e(39),u=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?u(t+n,0):o(t,n)}},6:function(t,n,e){var r=e(11),u=e(17),o=e(13),c=Object.defineProperty;n.f=e(2)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),u)try{return c(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},67:function(t,n,e){t.exports={default:e(82),__esModule:!0}},7:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},76:function(t,n,e){var r=e(8),u=e(3),o=e(7);t.exports=function(t,n){var e=(u.Object||{})[t]||Object[t],c={};c[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",c)}},8:function(t,n,e){var r=e(5),u=e(3),o=e(15),c=e(10),i=function(t,n,e){var a,f,s,l=t&i.F,p=t&i.G,d=t&i.S,y=t&i.P,v=t&i.B,h=t&i.W,_=p?u:u[n]||(u[n]={}),b=_.prototype,x=p?r:d?r[n]:(r[n]||{}).prototype;p&&(e=n);for(a in e)(f=!l&&x&&void 0!==x[a])&&a in _||(s=f?x[a]:e[a],_[a]=p&&"function"!=typeof x[a]?e[a]:v&&f?o(s,r):h&&x[a]==s?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(s):y&&"function"==typeof s?o(Function.call,s):s,y&&((_.virtual||(_.virtual={}))[a]=s,t&i.R&&b&&!b[a]&&c(b,a,s)))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,t.exports=i},82:function(t,n,e){e(86),t.exports=e(3).Object.keys},86:function(t,n,e){var r=e(46),u=e(34);e(76)("keys",function(){return function(t){return u(r(t))}})}});