PageSourceSearch

https://burlingtonbooks.es/wp-content/plugins/acf-bsp/dist/scripts/chunks/a286b22b3d0f218e.js?t=1789712593592

js burlingtonbooks.es collected 2026-10-01 23:51:45 UTC 9,496 bytes, 2 lines download raw bytes

vendor: 1,419 bytes, lines 1-2
1/*! For license information please see a286b22b3d0f218e.js.LICENSE.txt */
2"use strict";(self.webpackChunkacf_wpi=self.webpackChunkacf_wpi||[]).push([[218],{2218:(o,n,t)=>{function e(){var o,n,t="function"==typeof Symbol?Symbol:{},s=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function c(t,e,s,i){var c=e&&e.prototype instanceof p?e:p,_=Object.create(c.prototype);return a(_,"_invoke",function(t,e,a){var s,i,c,p=0,_=a||[],l=!1,u={p:0,n:0,v:o,a:b,f:b.bind(o,4),d:function(n,t){return s=n,i=0,c=o,u.n=t,r}};function b(t,e){for(i=t,c=e,n=0;!l&&p&&!a&&n<_.length;n++){var a,s=_[n],b=u.p,d=s[2];t>3?(a=d===e)&&(c=s[(i=s[4])?5:(i=3,3)],s[4]=s[5]=o):s[0]<=b&&((a=t<2&&b<s[1])?(i=0,u.v=e,u.n=s[1]):b<d&&(a=t<3||s[0]>e||e>d)&&(s[4]=t,s[5]=e,u.n=d,i=0))}if(a||t>1)return r;throw l=!0,e}return function(a,_,d){if(p>1)throw TypeError("Generator is already running");for(l&&1===_&&b(_,d),i=_,c=d;(n=i<2?o:c)||!l;){s||(i?i<3?(i>1&&(u.n=-1),b(i,c)):u.n=c:u.v=c);try{if(p=2,s){if(i||(a="next"),n=s[a]){if(!(n=n.call(s,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,i<2&&(i=0)}else 1===i&&(n=s.return)&&n.call(s),i<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),i=1);s=o}else if((n=(l=u.n<0)?c:t.call(e,u))!==r)break}catch(n){s=o,i=1,c=n}finally{p=1}}return{value:n,done:l}}}(t,s,i),!0),_}var r={};function p(){}function _(){}function l(){}n=Object.getPrototypeOf;
2var u=[][s]?n(n([][s]())):(a(n={},s,function(){return this}),n),b=l.prototype=p.prototype=Object.create(u);function d(o){return Object.setPrototypeOf?Object.setPrototypeOf(o,l):(o.__proto__=l,a(o,i,"GeneratorFunction")),o.prototype=Object.create(b),o}return _.prototype=l,a(b,"constructor",l),a(l,"constructor",_),_.displayName="GeneratorFunction",a(l,i,"GeneratorFunction"),a(b),a(b,i,"Generator"),a(b,s,function(){return this}),a(b,"toString",function(){return"[object Generator]"}),(e=function(){return{w:c,m:d}})()}function a(o,n,t,e){var s=Object.defineProperty;try{s({},"",{})}catch(o){s=0}a=function(o,n,t,e){function i(n,t){a(o,n,function(o){return this._invoke(n,t,o)})}n?s?s(o,n,{value:t,enumerable:!e,configurable:!e,writable:!e}):o[n]=t:(i("next",0),i("throw",1),i("return",2))},a(o,n,t,e)}function s(o,n,t,e,a,s,i){try{var c=o[s](i),r=c.value}catch(o){return void t(o)}c.done?n(r):Promise.resolve(r).then(e,a)}function i(){return c.apply(this,arguments)}function c(){var o;return o=e().m(function o(){var n,t,a,s,i,c,r,p,_,l,u,b,d,m,f,h,v,k,g;return e().w(function(o){for(;;)switch(o.n){case 0:h=function(o,n){$(o).hasClass(n)&&$(o).removeClass(n)},f=function(o,n){$(o).hasClass(n)||$(o).addClass(n)},m=function(){r.hasClass("disabled")||r.addClass("disabled"),"#"!==r.attr("href")&&r.attr("href","#")},window.location.origin,n=window.location.href,t=n.split("/"),a=t[t.length-2],s="/wp-json/bsp/v1/products/".concat(a),i=$("#bsp_book_eshop_component_general_data"),c=$(" #bsp_book_eshop_component_select_book_text"),r=$("#bsp_book_eshop_component_add_cart_button"),p=$("#bsp_book_eshop_component_image"),_=$(".bsp_book_eshop_component_image"),l=$("#bsp_book_eshop_component_available"),u=$("#bsp_book_eshop_component_variations_amount"),b=function(o,n){o.length&&o.each(function(){$(this).hasClass(n)||$(this).addClass(n)})},d=function(o){o.val()&&o.prop("checked",!1)},v=function(o,n){return o.split("-")[n]},k=function(o){o.length&&(o.length=0)},g=function(o){var n,t,e,a,s,c=!1;if(s=o[0].id,n=o[0].ean,t=o[0].url_image,e=o[0].url_default_image,a=o[0].stock_status,o[0].stock&&parseInt(o[0].stock,0),o[0].tags.forEac
2h(function(o){"tipo-d"===o.tag_slug&&(c=!0)}),n){i.find(".bsp_book_eshop_component_ean").text(n),h(r,"disabled"),t?p.attr("src",t):p.attr("src",e),c?_.addClass("product_cat-digital"):_.removeClass("product_cat-digital");var u=s.toString(),b=document.querySelectorAll("#bsp_book_eshop_component_price");Array.from(b).map(function(o){o.attributes["data-price-id"].value==u?o.classList.value="bsp_book_eshop_component_price":o.classList.value="bsp_book_eshop_component_price bsp_book_component_disabled"}),c?h(i.find(".bsp_book_eshop_component_activation_code_info, .bsp_book_eshop_component_licence_duration_info"),"bsp_book_component_disabled"):f(i.find(".bsp_book_eshop_component_activation_code_info, .bsp_book_eshop_component_licence_duration_info"),"bsp_book_component_disabled"),"instock"===a?(l.text("Disponible"),h($("#bsp_book_eshop_component_available_image"),"bsp_book_component_disabled")):(l.text("Disponible Próximamente"),l.css("color","#AC2D3D"),f($("#bsp_book_eshop_component_available_image"),"bsp_book_component_disabled"),r.text("NOTIFICARME"),r.addClass("no-stock"))}else i.find(".bsp_book_eshop_component_ean").text("Esta combinación no existe"),m();return s},fetch(s).then(function(o){return o.json()}).then(function(o){if("reader"!==o[0]){var n,t,e,a=o.filter(function(o){return"0"!==o.price&&"visible"===o.visibility}),s=[];$("input[name=eshop-component-type]").on("click",function(){var o=$("input:radio[name=eshop-component-type]:checked").val();f(i,"bsp_book_component_disabled"),h(c,"bsp_book_component_disabled"),u.attr("disabled",!0),u.val("1"),r.removeClass("added no-stock"),r.text("AÑADIR AL CARRITO"),m(),$("#bsp_book_eshop_component_variations_course").removeClass("bsp_book_component_disabled"),b($("#bsp_book_eshop_component_variations_course ul li"),"bsp_book_component_disabled"),b($("#bsp_book_eshop_component_variations_component"),"bsp_book_component_disabled"),b($("#bsp_book_eshop_component_variations_version"),"bsp_book_component_disabled"),d($("input:radio[name=eshop-component-course]:checked")),d($("input:radio[name=eshop-component-component]:checked")),d($("input:radio[name=eshop-component-version]:checked")),k(s),(n=a.filter(function(n){var t=0;
2return n.tags.forEach(function(o,n){"tipo"===v(o.tag_slug,0)&&(t=n)}),v(n.tags[t].tag_slug,1)===o})).forEach(function(o){var n=0;o.tags.forEach(function(o,t){"nivel"===v(o.tag_slug,0)&&(n=t)}),o.tags[n]&&$("#eshop-component-course-"+v(o.tags[n].tag_slug,1)).removeClass("bsp_book_component_disabled")})}),$("input[name=eshop-component-course]").on("click",function(){var o=$("input:radio[name=eshop-component-course]:checked").val();f(i,"bsp_book_component_disabled"),h(c,"bsp_book_component_disabled"),u.attr("disabled",!0),u.val("1"),r.removeClass("added no-stock"),r.text("AÑADIR AL CARRITO"),m(),$("#bsp_book_eshop_component_variations_component").removeClass("bsp_book_component_disabled"),b($("#bsp_book_eshop_component_variations_component ul li"),"bsp_book_component_disabled"),b($("#bsp_book_eshop_component_variations_version"),"bsp_book_component_disabled"),d($("input:radio[name=eshop-component-component]:checked")),d($("input:radio[name=eshop-component-version]:checked")),k(s),(t=n.filter(function(n){var t=0;
2return n.tags.forEach(function(o,n){"nivel"===v(o.tag_slug,0)&&(t=n)}),v(n.tags[t].tag_slug,1)===o})).forEach(function(o){var n=0;o.tags.forEach(function(o,t){"componente"===v(o.tag_slug,0)&&(n=t)}),o.tags[n]&&$("#eshop-component-component-"+v(o.tags[n].tag_slug,1)).removeClass("bsp_book_component_disabled")})}),$("input[name=eshop-component-component]").on("click",function(){var o=$("input:radio[name=eshop-component-component]:checked").val();f(i,"bsp_book_component_disabled"),h(c,"bsp_book_component_disabled"),u.attr("disabled",!0),u.val("1"),r.removeClass("added no-stock"),r.text("AÑADIR AL CARRITO"),m(),$("#bsp_book_eshop_component_variations_version").removeClass("bsp_book_component_disabled"),b($("#bsp_book_eshop_component_variations_version ul li"),"bsp_book_component_disabled"),d($("input:radio[name=eshop-component-version]:checked")),k(s),(e=t.filter(function(n){var t=0;return n.tags.forEach(function(o,n){"componente"===v(o.tag_slug,0)&&(t=n)}),v(n.tags[t].tag_slug,1)===o})).forEach(function(o){var n=0;
2o.tags.forEach(function(o,t){"version"===v(o.tag_slug,0)&&(n=t)}),o.tags[n]&&$("#eshop-component-version-"+v(o.tags[n].tag_slug,1)).removeClass("bsp_book_component_disabled")})}),$("input[name=eshop-component-version]").on("click",function(){var o=$("input:radio[name=eshop-component-version]:checked").val();u.attr("disabled",!0),u.val("1"),r.removeClass("added no-stock"),r.text("AÑADIR AL CARRITO"),s=e.filter(function(n){var t=0;return n.tags.forEach(function(o,n){"version"===v(o.tag_slug,0)&&(t=n)}),v(n.tags[t].tag_slug,1)===o}),f(c,"bsp_book_component_disabled"),i.removeClass("bsp_book_component_disabled");var n=u.val(),t=g(s);if(r.hasClass("no-stock")){var a=s[0].permalink?s[0].permalink:"";r.attr("href",a),r.attr("data-product_id",""),r.attr("data-quantity","")}else{u.attr("disabled",!1);var p="?add-to-cart=".concat(t,"&quantity=").concat(n);r.attr("href",p),r.attr("data-product_id",t),r.attr("data-quantity",n)}}),$("#bsp_book_eshop_component_variations_amount").on("input",function(){if(s.length){var o=$(this).val(),n=g(s),t="?add-to-cart=".concat(n,"&quantity=").concat(o);r.attr("href",t),r.attr("data-product_id",n),r.attr("data-quantity",o)}}),$("#bsp_book_eshop_component_add_cart_button").on("click",function(o){$(this).hasClass("no-stock")||o.preventDefault()})}}).catch(function(o){}).finally(function(){$("#bsp_book_eshop_component_variations_type ul li").removeClass("bsp_book_component_disabled")});case 1:return o.a(2)}},o)}),c=function(){var n=this,t=arguments;return new Promise(function(e,a){var i=o.apply(n,t);function c(o){s(i,e,a,c,r,"next",o)}function r(o){s(i,e,a,c,r,"throw",o)}c(void 0)})},c.apply(this,arguments)}t.r(n),t.d(n,{default:()=>i})}}]);

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.