vendor: 4,374 bytes, lines 1-2
1/*! For license information please see 676.b66b4ca0.js.LICENSE.txt */ 2"use strict";(self.webpackChunkSE=self.webpackChunkSE||[]).push([[676],{4676:function(t,e,r){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new P(n||[]);return i(a,"_invoke",{value:L(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var h={};function p(){}function v(){}function y(){}var g={};l(g,s,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(x([])));b&&b!==e&&r.call(b,s)&&(g=b);var w=y.prototype=p.prototype=Object.create(g);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function o(i,a,s,c){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,s,c)}),(function(t){o("throw",t,s,c)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function L(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function z(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(z,this),this.reset(!0)}function x(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(T.prototype),l(T.prototype,c,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
vendor: 4,464 bytes, line 2
2ise);var a=new T(d(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(w),l(w,u,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=x,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function i(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function s(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),Object.defineProperty(t,h(n.key),n)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=d(t);if(e){var i=d(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,r)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function f(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===n(e)?e:String(e)}r(9070),r(2222),r(2564),r(1058),r(4678),r(7941),r(8862),r(6992),r(1539),r(8783),r(3948),r(285),r(1637),r(1703),r(6647),r(6649),r(6078),r(2526),r(1817),r(9653),r(8304),r(4812),r(489),r(1299),r(2419),r(8011),r(8674),r(2165),r(2443),r(3680),r(3706),r(2703),r(9554),r(7658),r(4747),r(8309),r(5069),r(7042);var p=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var v=r(6599),y=r(5495),g=p(r(7652)),m=r(4097);r(2711),r(7347),r(3923);var b=r(988),w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(p,t);var e,r,n,i,d,h=u(p);function p(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return f(l(t=h.call.apply(h,[this].concat(r))),"updateSize",!1),f(l(t),"storage",null),t}return e=p,r=[{key:"connect",value:function(){var t=this;try{this.storage=this.loadPreviousSize(),null!==this.storage?(this.printSelectedSize(),this.showSelectSizes(!1),this.get
2Similars(this.storage.data)):this.showSelectSizes();var e=b.Modal.getOrCreateInstance("#modalAllAvailableSizes"),r=document.querySelector("#product-detail--size-selector");document.addEventListener("updateSize",(function(){t.updateSize=!0})),null==r||r.addEventListener("hidden.bs.dropdown",(function(){setTimeout((function(){!0!==t.updateSize&&e.show()}),1500)}),{once:!0})}catch(t){console.error("Error en el trigger del modal allAvailableSizes",t)}}},{key:"getSimilarProducts",value:(d=a(o().mark((function t(e){var r,n,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a={rate_id:parseInt(e.currentTarget.dataset.rateId),market:e.currentTarget.dataset.market,path_market:e.currentTarget.dataset.pathMarket,locale:e.currentTarget.dataset.locale,vertical:e.currentTarget.dataset.vertical,vertical_id:parseInt(e.currentTarget.dataset.verticalId),product_price:parseFloat(e.currentTarget.dataset.productPrice),only_for_collectives:JSON.parse(e.currentTarget.dataset.onlyForCollectives),array_parent_category_id:JSON.parse(e.currentTarget.dataset.arrayParentCategoryId),size_id:parseInt(e.currentTarget.dataset.sizeId),path_files,is_kids:e.currentTarget.dataset.isKids,product_type_id:""===e.currentTarget.dataset.productTypeId?null:parseInt(e.currentTarget.dataset.productTypeId),brand_id:""===e.currentTarget.dataset.brandId?null:parseInt(e.currentTarget.dataset.brandId),region_size:JSON.parse(e.currentTarget.dataset.regionSize),currency:e.currentTarget.dataset.currency,size_label:e.currentTarget.dataset.sizeLabel,subsidiaries:e.currentTarget.dataset.subsidiaries},this.saveSizeInStorage(a),this.showSelectSizes(!1),this.printSelectedSize(),null===(r=this.loadingSizesTarget)||void 0===r||r.classList.remove("d-none"),null===(n=this.similarProductsTarget)||void 0===n||n.classList.add("d-none"),null===(i=this.notAvailableTarget)||void 0===i||i.classList.add("d-none"),this.getSimilars(a);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"createCarrousel",value:function(){var t=this;new g.default(".similar-products",{modules:[m.Navigation],slidesPerView:3,slidesPerGroup:3,spaceBetween:16,breakpoints:{320:{slidesPerView:1,slidesPerGroup:1},520:{slidesPerView:2,slidesPerGroup:2},769:{slidesPerView:3,slidesPerGroup:3}},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{init:function(){var e;null===(e=t.similarProductsTarget)||void 0===e||e.classList.remove("d-none")}}}).update()}},{key:"showModalAvailabilitySize",value:function(){b.Modal.getOrCreateInstance("#modalAllAvailableSizes").show()}},{key:"printSelectedSize",value:function(){var t;this.preselectedSizeTarget.querySelector("#sizeLabel").innerText="".concat(null===(t=this.storage)||void 0===t?void 0:t.data.size_label)}},{key:"loadPreviousSize",value:function(){var t=sessionStorage.getItem("similarSizeData");return null!==t?JSON.parse(t):null}},{key:"saveSizeInStorage",value:function(t){this.storage={data:t},null!==this.storage&&sessionStorage.removeItem("similarSizeData"),sessionStorage.setItem("similarSizeData",JSON.stringify(this.storage))}},{key:"showSelectSizes",value:function(){var t,e,r,n,o,i;arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?(null===(o=this.selectSizeTarget.classList)||void 0===o||o.add("d-none"),null===(i=this.preselectedSizeTarget.classList)||void 0===i||i.remove("d-none")):(null===(t=this.selectSizeTarget.classList)||void 0===t||t.remove("d-none"),null===(e=this.preselectedSizeTarget.classList)||void 0===e||e.add("d-none"),null===(r=this.similarProductsTarget.classList)||void 0===r||r.add("d-none"),null===(n=this.notAvailableTarget.classList)||void 0===n||n.add("d-none"))}},{key:"getSimilars",value:(i=a(o().mark((function t(e){var r,n,i,a,s,c,u,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={url:new URL("".concat(path_atland,"/ajax/get-similar-products")),mode:y.FetchTypes.Mode.CORS},n=new y.Fetch(r),t.next=4,n.postJSON(JSON.stringify(e));case 4:(i=t.sent)instanceof Error?(null===(a=this.loadingSizesTarget)||void 0===a||a.classList.add("d-none"),null===(s=this.notAvailableTarget)||void 0===s||s.classList.remove("d-none")):(null===(c=this.loadingSizesTarget)||void 0===c||c.classList.add("d-none"),i.content?(this.similarProductsTarget.innerHTML=i.content,this.createCarrousel()):(null===(u=this.loadingSizesTarget)||void 0===u||u.classList.add("d-none"),null===(l=this.notAvailableTarget)||void 0===l||l.classList.remove("d-none")));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})}],r&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),p}(v.Controller);f(w,"targets",["notAvailable","loadingSizes","similarProducts","preselectedSize","selectSize"]),e.default=w}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.