1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6c0d0f30-9f0b-433b-93ef-d64670d1aea1",e._sentryDebugIdIdentifier="sentry-dbid-6c0d0f30-9f0b-433b-93ef-d64670d1aea1")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[675],{62447:function(e,t,r){r.d(t,{bZ:function(){return u},cq:function(){return i},d2:function(){return a},eo:function(){return s}});var l=r(54465),n=r(15503);let o=null,a=()=>{let e=n.default.publicKeyStripe;return o||(o=(0,l.J)(e)),o},i=async e=>{try{let t=await a(),{error:r}=await t.redirectToCheckout(e);if(r)return{ok:!1,messageError:r.message};return{ok:!0}}catch(e){return{ok:!1,messageError:null==e?void 0:e.message}}};function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EUR",r=new Intl.NumberFormat(["es-ES"],{style:"currency",currency:t,currencyDisplay:"symbol"}).formatToParts(e),l=!0;return r.forEach(e=>{"decimal"===e.type&&(l=!1)}),l?e:Math.round(100*e)}let s=e=>e.map(e=>{let{book:t,total:r}=e;return{quantity:1,price_data:{currency:"EUR",unit_amount:u(r),product_data:{images:[t.mainImg],name:t.title}}}})},25214:function(e,t,r){var l=r(85893);r(67294),r(77090);var n=r(98631),o=r(15503);t.Z=e=>{let{id:t,className:r,src:a,alt:i,width:u,height:s,title:c,onClick:d,index:f,addCdnPrefix:v,withBorder:g,isPreview:p,loading:h="lazy",sizes:b="100vw"}=e,m=a;return(v||a.includes("no-image"))&&(m="".concat(o.Sw).concat(a)),!g||a.includes("no-image")||(m=p?"".concat(a,"&border=1,3000"):"".concat(a,"&border=2,3000"),[".jpg?",".png?",".jpeg?"].every(e=>m.includes(e))||(m=p?"".concat(a,"?border=1,3000"):"".concat(a,"?border=2,3000"))),(0,l.jsx)(n.ZP,{sizes:b,className:"img ".concat("lazy"===h?"lazyload":""," blur-up ").concat(r),htmlAttributes:{onClick:()=>{d&&d(f)},id:t,src:a,loading:h,title:c,alt:i,srcSet:m,className:"img ".concat("lazy"===h?"lazyload":""," blur-up ").concat(r)},imgixParams:{w:u,h:s},src:m,height:Number(s),width:Number(u)})}},72272:function(e,t,r){r.r(t);var l=r(85893);r(67294);var n=r(51580);t.default=e=>{let{height:t,width:r,strokeWidth:o,color:a="red",secondaryColor:i="white",ariaLabel:u}=e;return(0,l.jsx)(n.iT,{ariaLabel:u,height:t,width:r,strokeWidth:o,color:a,secondaryColor:i})}},29756:function(e,t,r){r.d(t,{G:function(){return n}});var l=r(77606);let n=e=>"book"===e?l.ly.singularBook:"ebook"===e?l.ly.singulareBook:null},66602:function(e,t,r){r.d(t,{a:function(){return a},d:function(){return i}});var l=r(76249),n=r(1747),o=r(53174);let a=async()=>{try{let{query:e}=(0,n.in)(),{data:{getArea:t}}=await e({query:l.GX,fetchPolicy:"cache-first"});return{ok:!!t,data:t}}catch(e){return{ok:!1,messageError:null==e?void 0:e.message}}},i=async()=>{try{var e;let{query:t}=(0,n.in)(),{data:r}=await t({query:o.Ld,fetchPolicy:"cache-first",variables:{limit:1,skip:0}});return{ok:!0,data:null===(e=r.getNewBanners)||void 0===e?void 0:e[0]}}catch(e){return{ok:!1}}}},66175:function(e,t,r){r.r(t);var l=r(85893);r(67294);var n=r(86735);t.default=e=>{let{onBlur:t,onClick:r,value:o,style:a,type:i="button",noStyle:u,tagLike:s,className:c,active:d,iconLeft:f,title:v,aria:g,iconClass:p,children:h,iconRight:b}=e;return(0,l.jsxs)("button",{onBlur:t,onClick:r,value:o,style:a,type:i,className:"".concat(u||s?"button":"button default"," ").concat(d?"active":""," ").concat(c||"").concat(f?" iconLeft":"").concat(s?" tag":""),title:v,"aria-label":g||"",children:[f&&p?(0,l.jsx)(n.Z,{className:p}):null,h,b&&p?(0,l.jsx)(n.Z,{className:p}):null]})}},5485:function(e,t,r){r.d(t,{Z:function(){return o}});var l=r(11163),n=r(67294);function o(){let{replace:e,route:t}=(0,l.useRouter)();(0,n.useEffect)(()=>{e(t,null,{shallow:!0}).catch(console.error)},[])}},45937:function(e,t,r){r.d(t,{Z:function(){return s}});var l=r(11163),n=r(67294),o=r(15503),a=r(76249);let i=(0,r(14671).Z)(e=>({filters:{},order:"",doTheSearch:!1,filterOpen:!1,setFilters:t=>{e(e=>({...e,filters:{...t}}))},setOrder:t=>{e(e=>({...e,order:t}))},setDoTheSearch:t=>{e(e=>({...e,doTheSearch:t}))},setOpenFilter:t=>{e(e=>({...e,openFiler:t}))},clearFilter:()=>{e(e=>({...e,filters:{}}))}}));var u=r(72076),s=()=>{let[e,t,r,s,c,d,f,v,g]=i(e=>[e.order,e.filters,e.doTheSearch,e.filterOpen,e.setOrder,e.setFilters,e.clearFilter,e.setDoTheSearch,e.setOpenFilter]),{asPath:p}=(0,l.useRouter)(),{isTheActualPageSave:h,pageScrollPosition:b}=(0,u.Z)(),m=(0,n.useRef)(null),[y,{data:k}]=(0,a.Jg)({fetchPolicy:"cache-first"}),S=e=>{v(e)},N=(e,r,l,n)=>{if(S(l),Object.keys(t).length&&n)return;let{...o}=t;if("Tags"===e.prop){if((null==o?void 0:o[e.prop])||(o[e.prop]=[]),r)for(let t=0;t<e.value.length;t+=1){let{prop:r,items:l}=e.value[t],n=o[e.prop].find(e=>e.prop===r),a=!0;for(let t=0;t<l.length;t+=1){let i=l[t];n||(a=!1,n={prop:r,items:[]}),-1===n.items.findIndex(e=>e===i)&&n.items.push(i),a||o[e.prop].push(n)}}else o[e.prop]=Object.keys(e.value).length>0?e.value:null}else e.value&&(o[e.prop]=e.value.length>0?e.value:null);null===o[e.prop]&&delete o[e.prop],d({...o})};return(0,n.useEffect)(()=>{var e,r,l,n,o,a;let i=null==k?void 0:k.getAreaName;if(!i)return;let u=t&&JSON.parse(JSON.stringify(t)),s=null==u?void 0:u["\xc1reas"];if(s){let e=s.indexOf(null==i?void 0:null===(n=i.id)||void 0===n?void 0:n.toString());-1===e?s.push(null==i?void 0:null===(o=i.id)||void 0===o?void 0:o.toString()):s.splice(e,1)}else(s=[]).push(null==i?void 0:null===(a=i.id)||void 0===a?void 0:a.toString());N({prop:"\xc1reas",value:s},null===(e=m.current)||void 0===e?void 0:e.pushData,null===(r=m.current)||void 0===r?void 0:r.doTheSearch,null===(l=m.current)||void 0===l?void 0:l.keepInitialValueIfExist),m.current=null},[null==k?void 0:k.getAreaName]),{changeFilters:N,resetFilter:()=>{f(),setTimeout(()=>{S(!1)},700)},resetOrder:()=>{""!==e&&c("")},changeOrder:(t,r,l)=>{S(l),e&&r||c(t)},getOrder:()=>e,getDoTheSearch:()=>r,getFilters:()=>t,keepFiltersAndOrder:()=>{var e;return h()?1:o.default.allProductCategoriesFull.includes(p.replace("/",""))&&(null==b?void 0:b.pageName)&&!o.default.allProductCategoriesFull.includes(null==b?void 0:null===(e=b.pageName)||void 0===e?void 0:e.replace("/",""))?2:0},changeDoTheSearch:S,changeFilterArea:(e,t,r,l)=>{m.current={doTheSearch:t,keepInitialValueIfExist:r,pushData:l},y({variables:{id:e}}).catch(console.error)},existFilter:()=>{var e,r,l,n,o;let a=null==t?void 0:null===(e=t.CategorÃas)||void 0===e?void 0:e.length,i=null==t?void 0:null===(r=t.Tags)||void 0===r?void 0:r.length,u=null==t?void 0:null===(l=t.Ãreas)||void 0===l?void 0:l.length,s=null==t?void 0:null===(n=t.Precio)||void 0===n?void 0:n.length,c=null==t?void 0:null===(o=t.Precio)||void 0===o?void 0:o.length;return!!a||!!i||!!u||!!s||!!c},setOpenFilter:g,doTheSearch:r,filter:t,order:e,filterOpen:s}}},72076:function(e,t,r){r.d(t,{Z:function(){return a}});var l=r(11163),n=r(60374);let o=(0,r(14671).Z)(e=>({pageScrollPosition:null,scrollbarValues:null,saveScrollPosition:(t,r)=>
1{e(e=>{var l;return{...e,pageScrollPosition:{pageName:t,Y:r||(null==e?void 0:null===(l=e.scrollbarValues)||void 0===l?void 0:l.scrollTop)}}})},setScrollbarValues:t=>{e(e=>({...e,scrollbarValues:t}))},setScrollPosition:t=>{e(e=>({...e,pageScrollPosition:t}))}}));var a=()=>{let{asPath:e}=(0,l.useRouter)(),[t,r,a,i,u]=o(e=>[e.pageScrollPosition,e.scrollbarValues,e.saveScrollPosition,e.setScrollbarValues,e.setScrollPosition],n.Z);return{pageScrollPosition:t,scrollbarValues:r,savePageAndScrollPosition:()=>{a(e)},setScrollbarValues:i,isTheActualPageSave:()=>(null==t?void 0:t.pageName)===e,setScrollPosition:u}}},26410:function(e,t,r){r.d(t,{C5:function(){return a},_3:function(){return n},_8:function(){return u},fQ:function(){return s},vX:function(){return i}});var l,n,o=r(42222);(l=n||(n={})).basket="basket",l.areaOfInterest="areaOfInterest",l.areaOfInterestName="areaOfInterestName",l.myurl="myurl",l.noSubscriptionToNewsletter="noSubscriptionToNewsletter",l.addressBasket="addressBasket";let a=()=>!0,i=e=>{if(!a())return null;let t=(0,o.get)(e);return t&&("string"!=typeof t||"null"!==t&&"undefined"!==t)?t:null},u=(e,t)=>{(0,o.set)(e,t)},s=e=>{(0,o.remove)(e)}}}]);
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.