Files
drmaterac.pl/iadmin/themes/new-theme/public/manufacturer_address_form.bundle.js
2025-03-21 20:24:43 +01:00

99 lines
14 KiB
JavaScript

(()=>{var t={53021:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(99663)),u=o(r(22600));function o(t){return t&&t.__esModule?t:{default:t}}
/**
* 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)
*/var a=window.$,i=function(){function t(e,r,u){var o=this;(0,n.default)(this,t),this.$countryDniInput=a(r),this.$countryDniInputLabel=a(u),this.$countryInput=a(e),this.countryInputSelectedSelector=e+">option:selected",this.countryDniInputLabelDangerSelector=u+">span.text-danger",this.$countryDniInput.attr("required")||(this.$countryInput.on("change",(function(){return o.toggle()})),this.toggle())}return(0,u.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}();e.default=i},30850:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(r(88902)),u=a(r(99663)),o=a(r(22600));function a(t){return t&&t.__esModule?t:{default:t}}
/**
* 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)
*/var i=window.$,c=function(){function t(e,r,n){var o=this;return(0,u.default)(this,t),this.$stateSelectionBlock=i(n),this.$countryStateSelector=i(r),this.$countryInput=i(e),this.$countryInput.on("change",(function(){return o.change()})),{}}return(0,o.default)(t,[{key:"change",value:function(){var t=this,e=this.$countryInput.val();""!==e&&i.get({url:this.$countryInput.data("states-url"),dataType:"json",data:{id_country:e}}).then((function(e){t.$countryStateSelector.empty(),(0,n.default)(e.states).forEach((function(r){t.$countryStateSelector.append(i("<option></option>").attr("value",e.states[r]).text(r))})),t.toggle()})).catch((function(t){void 0!==t.responseJSON&&window.showErrorMessage(t.responseJSON.message)}))}},{key:"toggle",value:function(){this.$stateSelectionBlock.toggleClass("d-none",!this.$countryStateSelector.find("option").length>0)}}]),t}();e.default=c},89395:(t,e)=>{"use strict";Object.defineProperty(e,"__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)
*/
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"]'}},32242:(t,e,r)=>{t.exports={default:r(33391),__esModule:!0}},88902:(t,e,r)=>{t.exports={default:r(98613),__esModule:!0}},99663:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},22600:(t,e,r)=>{"use strict";e.__esModule=!0;var n,u=r(32242),o=(n=u)&&n.__esModule?n:{default:n};e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,o.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},33391:(t,e,r)=>{r(31477);var n=r(34579).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},98613:(t,e,r)=>{r(40961),t.exports=r(34579).Object.keys},85663:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},12159:(t,e,r)=>{var n=r(36727);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},57428:(t,e,r)=>{var n=r(7932),u=r(78728),o=r(16531);t.exports=function(t){return function(e,r,a){var i,c=n(e),s=u(c.length),f=o(a,s);if(t&&r!=r){for(;s>f;)if((i=c[f++])!=i)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}}},32894:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},34579:t=>{var e=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)},19216:(t,e,r)=>{var n=r(85663);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,u){return t.call(e,r,n,u)}}return function(){return t.apply(e,arguments)}}},8333:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},89666:(t,e,r)=>{t.exports=!r(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},97467:(t,e,r)=>{var n=r(36727),u=r(33938).document,o=n(u)&&n(u.createElement);t.exports=function(t){return o?u.createElement(t):{}}},73338:t=>{t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},83856:(t,e,r)=>{var n=r(33938),u=r(34579),o=r(19216),a=r(41818),i=r(27069),c=function(t,e,r){var s,f,l,p=t&c.F,d=t&c.G,v=t&c.S,y=t&c.P,h=t&c.B,_=t&c.W,g=d?u:u[e]||(u[e]={}),x=g.prototype,b=d?n:v?n[e]:(n[e]||{}).prototype;for(s in d&&(r=e),r)(f=!p&&b&&void 0!==b[s])&&i(g,s)||(l=f?b[s]:r[s],g[s]=d&&"function"!=typeof b[s]?r[s]:h&&f?o(l,n):_&&b[s]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):y&&"function"==typeof l?o(Function.call,l):l,y&&((g.virtual||(g.virtual={}))[s]=l,t&c.R&&x&&!x[s]&&a(x,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},7929:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},33938:t=>{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)},27069:t=>{var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},41818:(t,e,r)=>{var n=r(4743),u=r(83101);t.exports=r(89666)?function(t,e,r){return n.f(t,e,u(1,r))}:function(t,e,r){return t[e]=r,t}},33758:(t,e,r)=>{t.exports=!r(89666)&&!r(7929)((function(){return 7!=Object.defineProperty(r(97467)("div"),"a",{get:function(){return 7}}).a}))},50799:(t,e,r)=>{var n=r(32894);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},36727:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},16227:t=>{t.exports=!0},4743:(t,e,r)=>{var n=r(12159),u=r(33758),o=r(33206),a=Object.defineProperty;e.f=r(89666)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),u)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},12963:(t,e,r)=>{var n=r(27069),u=r(7932),o=r(57428)(!1),a=r(58989)("IE_PROTO");t.exports=function(t,e){var r,i=u(t),c=0,s=[];for(r in i)r!=a&&n(i,r)&&s.push(r);for(;e.length>c;)n(i,r=e[c++])&&(~o(s,r)||s.push(r));return s}},46162:(t,e,r)=>{var n=r(12963),u=r(73338);t.exports=Object.keys||function(t){return n(t,u)}},12584:(t,e,r)=>{var n=r(83856),u=r(34579),o=r(7929);t.exports=function(t,e){var r=(u.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},83101:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},58989:(t,e,r)=>{var n=r(20250)("keys"),u=r(65730);t.exports=function(t){return n[t]||(n[t]=u(t))}},20250:(t,e,r)=>{var n=r(34579),u=r(33938),o="__core-js_shared__",a=u[o]||(u[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(16227)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},16531:(t,e,r)=>{var n=r(11052),u=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?u(t+e,0):o(t,e)}},11052:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},7932:(t,e,r)=>{var n=r(50799),u=r(8333);t.exports=function(t){return n(u(t))}},78728:(t,e,r)=>{var n=r(11052),u=Math.min;t.exports=function(t){return t>0?u(n(t),9007199254740991):0}},66530:(t,e,r)=>{var n=r(8333);t.exports=function(t){return Object(n(t))}},33206:(t,e,r)=>{var n=r(36727);t.exports=function(t,e){if(!n(t))return t;var r,u;if(e&&"function"==typeof(r=t.toString)&&!n(u=r.call(t)))return u;if("function"==typeof(r=t.valueOf)&&!n(u=r.call(t)))return u;if(!e&&"function"==typeof(r=t.toString)&&!n(u=r.call(t)))return u;throw TypeError("Can't convert object to primitive value")}},65730:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},31477:(t,e,r)=>{var n=r(83856);n(n.S+n.F*!r(89666),"Object",{defineProperty:r(4743).f})},40961:(t,e,r)=>{var n=r(66530),u=r(46162);r(12584)("keys",(function(){return function(t){return u(n(t))}}))}},e={};function r(n){var u=e[n];if(void 0!==u)return u.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}(()=>{"use strict";var t=u(r(30850)),e=u(r(89395)),n=u(r(53021));function u(t){return t&&t.__esModule?t:{default:t}}
/**
* 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 t.default(e.default.manufacturerAddressCountrySelect,e.default.manufacturerAddressStateSelect,e.default.manufacturerAddressStateBlock),new n.default(e.default.manufacturerAddressCountrySelect,e.default.manufacturerAddressDniInput,e.default.manufacturerAddressDniInputLabel)}))})(),window.manufacturer_address_form={}})();