1import{S as de,i as he,a as fe,b as pe,af as se,d as v,t as L,h as V,ag as ae,ah as ne,ai as le,q as p,n as A,o as f,a2 as ve,an as xe,r as g,u as k,w as E,y as b,z as $,ct as re,j as me,k as _e,Q as ee,N as Ce,G as B,b7 as oe,R,H,O as U,aL as we,aI as ke,aX as ye,bB as Ee,aQ as $e,W as Ae,c8 as Ie,c as Y,p as Q,x as X,A as K,B as j,C as De,b6 as Te,D as ge,aK as ie,as as ce,bF as W,bN as J,bE as Z,F as te}from"./index-BhuTsbqy.js";import{g as ze}from"./globals-D0QH3NT1.js";import{h as Se}from"./icons-C5S32XN9.js";import{G as be,H as Pe,I as Le}from"./icon-map-DqdxPJl3.js";function Ve(c){pe(c,"svelte-1u0ypx7",`.g-menu.svelte-1u0ypx7{anchor-name:var(--anchor);anchor-scope:var(--anchor)}.popover.svelte-1u0ypx7{display:none;position-anchor:var(--anchor);position:fixed;inset:auto;margin:0;inset:auto;transition-behavior:allow-discrete;border:none;top:anchor(bottom);transition:display 150ms,\r 2 scale 150ms;&:popover-open {\r 3 display: block;\r 4 scale: 1;\r 5\r 6 @starting-style {\r 7 display: block;\r 8 scale: 0.7;\r 9 }\r 10 };&.left {\r 11 right: anchor(right);\r 12 transform-origin: right top;\r 13 };&.right {\r 14 left: anchor(left);\r 15 transform-origin: left top;\r 16 }}`)}const Me=c=>({}),ue=c=>({});function Ne(c){let e,t,r,o,i,h,a,l,u;const C=c[5].default,d=se(C,c,c[4],null),w=c[5].content,s=se(w,c,c[4],ue);return{c(){e=b("div"),t=b("button"),d&&d.c(),r=$(),o=b("dialog"),s&&s.c(),this.h()},l(n){e=g(n,"DIV",{class:!0,style:!0});var m=k(e);t=g(m,"BUTTON",{popovertarget:!0});var I=k(t);d&&d.l(I),I.forEach(v),r=E(m),o=g(m,"DIALOG",{id:!0,popover:!0,class:!0});var D=k(o);s&&s.l(D),D.forEach(v),m.forEach(v),this.h()},h(){p(t,"popovertarget",c[1]),p(o,"id",c[1]),p(o,"popover",""),p(o,"class",i="popover shadow-4 "+c[0]+" svelte-1u0ypx7"),p(e,"class",h="g-menu "+c[0]+" svelte-1u0ypx7"),xe(e,"--anchor","--"+c[1])},m(n,m){A(n,e,m),f(e,t),d&&d.m(t,null),f(e,r),f(e,o),s&&s.m(o,null),a=!0,l||(u=ve(o,"click",c[2]),l=!0)},p(n,[m]){d&&d.p&&(!a||m&16)&&ae(d,C,n,n[4],a?le(C,n[4],m,null):ne(n[4]),null),s&&s.p&&(!a||m&16)&&ae(s,w,n,n[4],a?le(w,n[4],m,Me):ne(n[4]),ue),(!a||m&1&&i!==(i="popover shadow-4 "+n[0]+" svelte-1u0ypx7"))&&p(o,"class",i),(!a||m&1&&h!==(h="g-menu "+n[0]+" svelte-1u0ypx7"))&&p(e,"class",h)},i(n){a||(V(d,n),V(s,n),a=!0)},o(n){L(d,n),L(s,n),a=!1},d(n){n&&v(e),d&&d.d(n),s&&s.d(n),l=!1,u()}}}let Ge=0;function Be(c,e,t){let{$$slots:r={},$$scope:o}=e,{direction:i="right"}=e,{persistent:h=!1}=e;const a=`g-menu-${Ge++}`;function l(u){if(h)return;u.currentTarget.hidePopover()}return c.$$set=u=>{"direction"in u&&t(0,i=u.direction),"persistent"in u&&t(3,h=u.persistent),"$$scope"in u&&t(4,o=u.$$scope)},[i,a,l,h,o,r]}class He extends de{constructor(e){super(),he(this,e,Be,Ne,fe,{direction:0,persistent:3},Ve)}}const{window:Re}=ze;function Oe(c){pe(c,"svelte-1hnhdau",'main.svelte-1hnhdau.svelte-1hnhdau{--xs-rows:auto 1fr auto;min-height:100dvh}.menu.svelte-1hnhdau.svelte-1hnhdau{max-width:582px}.menu.svelte-1hnhdau .g-btn.svelte-1hnhdau{flex-grow:1;max-width:50%}.header.svelte-1hnhdau.svelte-1hnhdau{background-color:var(--bg);position:sticky;top:0;z-index:5;height:108px;border-bottom:1px solid var(--grey-7)}.cdl-logo.svelte-1hnhdau.svelte-1hnhdau{width:200px}.sectigo-logo.svelte-1hnhdau.svelte-1hnhdau{width:clamp(64px, 1vw, 98px)}.loader.svelte-1hnhdau.svelte-1hnhdau{display:grid;place-content:center}.loader.svelte-1hnhdau .card.svelte-1hnhdau{width:350px;height:350px;display:flex;align-items:center;justify-content:center;flex-direction:column}.content.svelte-1hnhdau>.container.svelte-1hnhdau{--xs-columns:1fr;--md-columns:1.6fr 1fr}.footer.svelte-1hnhdau.svelte-1hnhdau{--xs-columns:1fr 1fr;--xs-area:"A1 A1" "A2 A3";--md-columns:1fr 139px 119px;--md-area:"A1 A2 A3"}.footer.svelte-1hnhdau img.svelte-1hnhdau{width:70%}@media(max-width: 576px){main.svelte-1hnhdau.svelte-1hnhdau{padding-bottom:10rem}.header.svelte-1hnhdau.svelte-1hnhdau{padding-inline:var(--size-4);height:85px}.header.svelte-1hnhdau .container.svelte-1hnhdau{gap:var(--size-2)}.cdl-logo.svelte-1hnhdau.svelte-1hnhdau{width:113px}}')}function je(c){let e,t,r,o,i,h,a,l,u;r=new He({props:{$$slots:{content:[Fe],default:[qe]},$$scope:{ctx:c}}});const C=[Ye,Ue],d=[];function w(s,n){return s[1]?0:1}return a=w(c),l=d[a]=C[a](c),{c(){e=b("div"),t=b("div"),K(r.$$.fragment),o=$(),i=b("span"),h=$(),l.c(),this.h()},l(s){e=g(s,"DIV",{class:!0});var n=k(e);t=g(n,"DIV",{class:!0});var m=k(t);X(r.$$.fragment,m),o=E(m),i=g(m,"SPAN",{class:!0}
16),k(i).forEach(v),h=E(m),l.l(m),m.forEach(v),n.forEach(v),this.h()},h(){p(i,"class","ml-auto"),p(t,"class","container d-flex align-center gap-3 svelte-1hnhdau"),p(e,"class","header d-flex align-center svelte-1hnhdau")},m(s,n){A(s,e,n),f(e,t),Q(r,t,null),f(t,o),f(t,i),f(t,h),d[a].m(t,null),u=!0},p(s,n){const m={};n&1024&&(m.$$scope={dirty:n,ctx:s}),r.$set(m);let I=a;a=w(s),a===I?d[a].p(s,n):(me(),L(d[I],1,1,()=>{d[I]=null}),_e(),l=d[a],l?l.p(s,n):(l=d[a]=C[a](s),l.c()),V(l,1),l.m(t,null))},i(s){u||(V(r.$$.fragment,s),V(l),u=!0)},o(s){L(r.$$.fragment,s),L(l),u=!1},d(s){s&&v(e),Y(r),d[a].d()}}}function qe(c){let e,t;return{c(){e=b("img"),this.h()},l(r){e=g(r,"IMG",{class:!0,id:!0,src:!0,width:!0,alt:!0}),this.h()},h(){p(e,"class","cdl-logo svelte-1hnhdau"),p(e,"id","lo-c"),ge(e.src,t="/img/cabecera/CDL-LogoSecundario-RGB.svg")||p(e,"src",t),p(e,"width","200"),p(e,"alt","Casa del libro")},m(r,o){A(r,e,o)},p:j,d(r){r&&v(e)}}}function Fe(c){let e,t,r,o="Proceso de compra",i,h,a,l,u,C,d,w="¿Estás seguro que quieres salir del proceso de compra?",s,n,m,I="Continuar aquÃ",D,T,M,S;return a=new be({props:{use:Pe}}),{c(){e=b("div"),t=b("div"),r=b("span"),r.textContent=o,i=$(),h=b("button"),K(a.$$.fragment),l=$(),u=b("hr"),C=$(),d=b("p"),d.textContent=w,s=$(),n=b("div"),m=b("button"),m.textContent=I,D=$(),T=b("a"),M=H("Si, salir"),this.h()},l(x){e=g(x,"DIV",{slot:!0,class:!0});var _=k(e);t=g(_,"DIV",{class:!0});var P=k(t);r=g(P,"SPAN",{class:!0,"data-svelte-h":!0}),R(r)!=="svelte-ptpojp"&&(r.textContent=o),i=E(P),h=g(P,"BUTTON",{type:!0,class:!0});var z=k(h);X(a.$$.fragment,z),z.forEach(v),P.forEach(v),l=E(_),u=g(_,"HR",{class:!0}),C=E(_),d=g(_,"P",{class:!0,"data-svelte-h":!0}),R(d)!=="svelte-13k2gze"&&(d.textContent=w),s=E(_),n=g(_,"DIV",{class:!0});var N=k(n);m=g(N,"BUTTON",{class:!0,"data-svelte-h":!0}),R(m)!=="svelte-1wmp544"&&(m.textContent=I),D=E(N),T=g(N,"A",{id:!0,href:!0,class:!0});var y=k(T);M=B(y,"Si, salir"),y.forEach(v),N.forEach(v),_.forEach(v),this.h()},h(){p(r,"class","f-w-6 text-m"),p(h,"type","button"),p(h,"class","icon-button"),p(t,"class","d-flex justify-between mb-4"),p(u,"class","my-4"),p(d,"class","mb-2 f-w-7 text-m"),p(m,"class","g-btn outlined svelte-1hnhdau"),p(T,"id","sa-c"),p(T,"href",c[9]),p(T,"class","g-btn brand svelte-1hnhdau"),p(n,"class","d-flex flex-nowrap gap-3 mt-4"),p(e,"slot","content"),p(e,"class","menu card pa-6 svelte-1hnhdau")},m(x,_){A(x,e,_),f(e,t),f(t,r),f(t,i),f(t,h),Q(a,h,null),f(e,l),f(e,u),f(e,C),f(e,d),f(e,s),f(e,n),f(n,m),f(n,D),f(n,T),f(T,M),S=!0},p:j,i(x){S||(V(a.$$.fragment,x),S=!0)},o(x){L(a.$$.fragment,x),S=!1},d(x){x&&v(e),Y(a)}}}function Ue(c){let e,t,r,o,i,h,a="|",l,u,C,d,w;return t=new be({props:{use:Le,size:"1.5em"}}),{c(){e=b("p"),K(t.$$.fragment),r=H(`\r 17 Compra Segura`),i=$(),h=b("span"),h.textContent=a,l=$(),u=b("img"),this.h()},l(s){e=g(s,"P",{class:!0});var n=k(e);X(t.$$.fragment,n),r=B(n,`\r 18 Compra Segura`),n.forEach(v),i=E(s),h=g(s,"SPAN",{class:!0,"data-svelte-h":!0}),R(h)!=="svelte-18dn867"&&(h.textContent=a),l=E(s),u=g(s,"IMG",{class:!0,src:!0,width:!0,alt:!0}),this.h()},h(){p(e,"class","text-xs fluid f-w-6 d-flex align-center gap-1"),p(h,"class","grey-4-text"),p(u,"class","sectigo-logo svelte-1hnhdau"),ge(u.src,C="/img/securedbysectigo.png")||p(u,"src",C),p(u,"width","98px"),p(u,"alt","secured by sectigo")},m(s,n){A(s,e,n),Q(t,e,null),f(e,r),A(s,i,n),A(s,h,n),A(s,l,n),A(s,u,n),w=!0},p:j,i(s){w||(V(t.$$.fragment,s),s&&(o||W(()=>{o=J(e,Z,{duration:100}),o.start()})),s&&(d||W(()=>{d=J(u,Z,{duration:100,delay:100}),d.start()})),w=!0)},o(s){L(t.$$.fragment,s),w=!1},d(s){s&&(v(e),v(i),v(h),v(l),v(u)),Y(t)}}}function Ye(c){let e,t,r,o=ie("artÃculo",c[2])+"",i,h,a,l,u="|",C,d,w,s,n,m=ce(c[3].total)+"",I,D,T,M="Impuestos incluidos",S;return{c(){e=b("p"),t=H(c[2]),r=$(),i=H(o),a=$(),l=b("span"),l.textContent=u,C=$(),d=b("div"),w=b("p"),s=H(`Total\r 19 `),n=b("span"),I=H(m),D=$(),T=b("p"),T.textContent=M,this.h()},l(x){e=g(x,"P",{class:!0});var _=k(e);t=B(_,c[2]),r=E(_),i=B(_,o),_.forEach(v),a=E(x),l=g(x,"SPAN",{class:!0,"data-svelte-h":!0}),R(l)!=="svelte-18dn867"&&(l.textContent=u),C=E(x),d=g(x,"DIV",{class:!0});var P=k(d);w=g(P,"P",{class:!0});var z=k(w);s=B(z,`Total\r 20 `),n=g(z,"SPAN",{class:!0});var N=k(n);
20I=B(N,m),N.forEach(v),z.forEach(v),D=E(P),T=g(P,"P",{"data-svelte-h":!0}),R(T)!=="svelte-ne2zm1"&&(T.textContent=M),P.forEach(v),this.h()},h(){p(e,"class","f-w-6"),p(l,"class","grey-4-text"),p(n,"class","accent-text text-xl f-w-4 ml-2"),p(w,"class","f-w-6"),p(d,"class","hidden-xs hidden-sm")},m(x,_){A(x,e,_),f(e,t),f(e,r),f(e,i),A(x,a,_),A(x,l,_),A(x,C,_),A(x,d,_),f(d,w),f(w,s),f(w,n),f(n,I),f(d,D),f(d,T)},p(x,_){_&4&&te(t,x[2]),_&4&&o!==(o=ie("artÃculo",x[2])+"")&&te(i,o),_&8&&m!==(m=ce(x[3].total)+"")&&te(I,m)},i(x){x&&(h||W(()=>{h=J(e,Z,{duration:100}),h.start()})),x&&(S||W(()=>{S=J(d,Z,{duration:100,delay:100}),S.start()}))},o:j,d(x){x&&(v(e),v(a),v(l),v(C),v(d))}}}function Qe(c){let e,t,r,o,i,h;return i=new Te({props:{component:c[0]}}),{c(){e=b("div"),t=b("div"),r=$(),o=b("div"),K(i.$$.fragment),this.h()},l(a){e=g(a,"DIV",{class:!0});var l=k(e);t=g(l,"DIV",{id:!0}),k(t).forEach(v),r=E(l),o=g(l,"DIV",{class:!0});var u=k(o);X(i.$$.fragment,u),u.forEach(v),l.forEach(v),this.h()},h(){p(t,"id","cOptmzCheckout"),p(o,"class","container d-grid gap-4 mt-4 svelte-1hnhdau"),p(e,"class","content svelte-1hnhdau")},m(a,l){A(a,e,l),f(e,t),f(e,r),f(e,o),Q(i,o,null),h=!0},p(a,l){const u={};l&1&&(u.component=a[0]),i.$set(u)},i(a){h||(V(i.$$.fragment,a),h=!0)},o(a){L(i.$$.fragment,a),h=!1},d(a){a&&v(e),Y(i)}}}function Xe(c){let e,t,r,o,i,h="Tu cesta está vacÃa",a;return r=new De({props:{icon:Se,size:40,class:"s-7-text"}}),{c(){e=b("div"),t=b("div"),K(r.$$.fragment),o=$(),i=b("strong"),i.textContent=h,this.h()},l(l){e=g(l,"DIV",{class:!0});var u=k(e);t=g(u,"DIV",{class:!0});var C=k(t);X(r.$$.fragment,C),o=E(C),i=g(C,"STRONG",{class:!0,"data-svelte-h":!0}),R(i)!=="svelte-1uxhbrl"&&(i.textContent=h),C.forEach(v),u.forEach(v),this.h()},h(){p(i,"class","f-size-4 s-7-text"),p(t,"class","card svelte-1hnhdau"),p(e,"class","loader content svelte-1hnhdau")},m(l,u){A(l,e,u),f(e,t),Q(r,t,null),f(t,o),f(t,i),a=!0},p:j,i(l){a||(V(r.$$.fragment,l),a=!0)},o(l){L(r.$$.fragment,l),a=!1},d(l){l&&v(e),Y(r)}}}function Ke(c){let e,t='<div class="card svelte-1hnhdau"><div class="loading"></div></div>';return{c(){e=b("div"),e.innerHTML=t,this.h()},l(r){e=g(r,"DIV",{class:!0,"data-svelte-h":!0}),R(e)!=="svelte-zhs3tv"&&(e.innerHTML=t),this.h()},h(){p(e,"class","loader content svelte-1hnhdau")},m(r,o){A(r,e,o)},p:j,i:j,o:j,d(r){r&&v(e)}}}function We(c){let e,t,r,o,i,h,a,l,u,C,d,w,s,n,m='<img src="/img/footer/plan_avanza_logo.png" alt="plan avanza" loading="lazy" class="svelte-1hnhdau"/>',I,D,T='<img src="/img/footer/gobierno_logo.png" alt="gobierno logo" loading="lazy" class="svelte-1hnhdau"/>',M,S,x,_=!re&&je(c);const P=[Ke,Xe,Qe],z=[];function N(y,O){return y[4]?0:!y[5].length&&!y[6]?1:2}return o=N(c),i=z[o]=P[o](c),{c(){e=$(),t=b("main"),_&&_.c(),r=$(),i.c(),h=$(),a=b("div"),l=b("area-1"),u=H("© "),C=H(c[7]),d=H(" Casa del Libro. Todos los derechos reservados. "),w=H(oe),s=$(),n=b("area-2"),n.innerHTML=m,I=$(),D=b("area-3"),D.innerHTML=T,this.h()},l(y){Ce("svelte-11f1j7u",document.head).forEach(v),e=E(y),t=g(y,"MAIN",{class:!0});var G=k(t);_&&_.l(G),r=E(G),i.l(G),h=E(G),a=g(G,"DIV",{class:!0});var q=k(a);l=g(q,"AREA-1",{class:!0});var F=k(l);u=B(F,"© "),C=B(F,c[7]),d=B(F," Casa del Libro. Todos los derechos reservados. "),w=B(F,oe),F.forEach(v),s=E(q),n=g(q,"AREA-2",{class:!0,"data-svelte-h":!0}),R(n)!=="svelte-1x55sa2"&&(n.innerHTML=m),I=E(q),D=g(q,"AREA-3",{class:!0,"data-svelte-h":!0}),R(D)!=="svelte-1h5z84o"&&(D.innerHTML=T),q.forEach(v),G.forEach(v),this.h()},h(){document.title="Libros e eBooks, descuentos y envÃos gratis | Casa del Libro",ee(l,"class","text-xxs grey-7-text"),ee(n,"class","d-flex align-end"),ee(D,"class","d-flex align-end justify-end"),p(a,"class","footer container d-grid gap-2 pb-2 px-4 svelte-1hnhdau"),p(t,"class","mx-n4 d-grid svelte-1hnhdau")},m(y,O){A(y,e,O),A(y,t,O),_&&_.m(t,null),f(t,r),z[o].m(t,null),f(t,h),f(t,a),f(a,l),f(l,u),f(l,C),f(l,d),f(l,w),f(a,s),f(a,n),f(a,I),f(a,D),M=!0,S||(x=ve(Re,"scroll",c[8]),S=!0)},p(y,[O]){re||_.p(y,O);let G=o;o=N(y),o===G?z[o].p(y,O):(me(),L(z[G],1,1,()=>{z[G]=null}),_e(),i=z[o],i?i.p(y,O):(i=z[o]=P[o](y),i.c()),V(i,1),i.m(t,h))},i(y){M||(V(_),V(i),M=!0)},o(y){L(_),L(i),M=!1},d(y){y&&(v(e),v(t)),_&&_.d(),z[o].d(),S=!1,x()}}}function Je(c,e,t){let r,o,i,h,a;U(c,we,s=>t(2,r=s)),U(c,ke,s=>t(3,o=s)),U(c,ye,s=>t(4,i=s)),U(c,Ee,s=>t(5,h=s)),U(c,$e,s=>t(6,a=s));let{component:l}=e;const u=new Date().getFullYear();let C=!1;function d(){location.pathname==="/checkout"&&t(1,C=window.scrollY>120)}Ae(()=>{Ie()});const w=`${location.origin}/`;return c.$$set=s=>{"component"in s&&t(0,l=s.component)},[l,C,r,o,i,h,a,u,d,w]}class at extends de{constructor(e){super(),he(this,e,Je,We,fe,{component:0},Oe)}}export{at as default};
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.