PageSourceSearch

https://www.casadellibro.com/assets/1790062628720/PanelFormatos-DTmpjwoI.js

js casadellibro.com collected 2026-09-24 07:41:33 UTC 5,597 bytes, 3 lines download raw bytes

1import{S as J,i as K,a as Q,X as W,Y as x,c as M,t as S,h as g,Z as ee,p as X,x as Y,A as Z,O as te,b$ as le,B,d as f,j as I,k as U,n as h,E as T,c0 as ae,e as q,f as se,F as V,o as E,q as m,r as $,u as y,G as C,w as F,y as A,H as P,z as O,R as re,C as ne,a2 as ie}from"./index-BhuTsbqy.js";import ce from"./BasePanel-Dfqrwdbl.js";import{N as oe}from"./product-CJYjoF_b.js";import{h as ue}from"./icons-C5S32XN9.js";import"./CSidebar-Bf60iYQj.js";import"./product-DGcivCMc.js";function R(c,t,i){const a=c.slice();a[6]=t[i];const e=new oe({...a[6],precios:a[6].listaPrecios});a[7]=e;const n=a[6].idTipoFichaUnica===9;return a[8]=n,a}function j(c){let t,i,a=q(c[1]),e=[];for(let s=0;s<a.length;s+=1)e[s]=G(R(c,a,s));const n=s=>S(e[s],1,1,()=>{e[s]=null});return{c(){for(let s=0;s<e.length;s+=1)e[s].c();t=T()},l(s){for(let r=0;r<e.length;r+=1)e[r].l(s);t=T()},m(s,r){for(let l=0;l<e.length;l+=1)e[l]&&e[l].m(s,r);h(s,t,r),i=!0},p(s,r){if(r&2){a=q(s[1]);let l;for(l=0;l<a.length;l+=1){const o=R(s,a,l);e[l]?(e[l].p(o,r),g(e[l],1)):(e[l]=G(o),e[l].c(),g(e[l],1),e[l].m(t.parentNode,t))}for(I(),l=a.length;l<e.length;l+=1)n(l);U()}},i(s){if(!i){for(let r=0;r<a.length;r+=1)g(e[r]);i=!0}},o(s){e=e.filter(Boolean);for(let r=0;r<e.length;r+=1)S(e[r]);i=!1},d(s){s&&f(t),se(e,s)}}}function fe(c){let t,i=c[7].precio.TACHADO+"",a,e,n,s=c[7].precio.FINAL+"",r;return{c(){t=A("s"),a=P(i),e=O(),n=A("span"),r=P(s),this.h()},l(l){t=$(l,"S",{class:!0});var o=y(t);a=C(o,i),o.forEach(f),e=F(l),n=$(l,"SPAN",{class:!0});var b=y(n);r=C(b,s),b.forEach(f),this.h()},h(){m(t,"class","s-5-text"),m(n,"class","f-w-5")},m(l,o){h(l,t,o),E(t,a),h(l,e,o),h(l,n,o),E(n,r)},p(l,o){o&2&&i!==(i=l[7].precio.TACHADO+"")&&V(a,i),o&2&&s!==(s=l[7].precio.FINAL+"")&&V(r,s)},d(l){l&&(f(t),f(e),f(n))}}}function _e(c){let t,i=c[7].precio.USADO_DESDE+"",a;return{c(){t=A("span"),a=P(i),this.h()},l(e){t=$(e,"SPAN",{class:!0});var n=y(t);a=C(n,i),n.forEach(f),this.h()},h(){m(t,"class","f-w-5")},m(e,n){h(e,t,n),E(t,a)},p(e,n){n&2&&i!==(i=e[7].precio.USADO_DESDE+"")&&V(a,i)},d(e){e&&f(t)}}}function pe(c){let t,i,a,e,n,s,r,l,o,b;s=new ne({props:{icon:ue,size:16}});function p(){return c[4](c[7])}return{c(){t=A("a"),i=P("Ver detalles"),e=O(),n=A("button"),Z(s.$$.fragment),r=P(`\r
2						Añadir a la cesta`),this.h()},l(_){t=$(_,"A",{href:!0});var v=y(t);i=C(v,"Ver detalles"),v.forEach(f),e=F(_),n=$(_,"BUTTON",{class:!0,title:!0});var D=y(n);Y(s.$$.fragment,D),r=C(D,`\r
3						Añadir a la cesta`),D.forEach(f),this.h()},h(){m(t,"href",a=c[7].url),m(n,"class","btn accent ml-auto"),m(n,"title","Añadir a la cesta")},m(_,v){h(_,t,v),E(t,i),h(_,e,v),h(_,n,v),X(s,n,null),E(n,r),l=!0,o||(b=ie(n,"click",p),o=!0)},p(_,v){c=_,(!l||v&2&&a!==(a=c[7].url))&&m(t,"href",a)},i(_){l||(g(s.$$.fragment,_),l=!0)},o(_){S(s.$$.fragment,_),l=!1},d(_){_&&(f(t),f(e),f(n)),M(s),o=!1,b()}}}function de(c){let t,i="(Nuevos y de 2ª mano)",a,e,n,s;return{c(){t=A("small"),t.textContent=i,a=O(),e=A("a"),n=P("Ver disponibles"),this.h()},l(r){t=$(r,"SMALL",{"data-svelte-h":!0}),re(t)!=="svelte-wdre3c"&&(t.textContent=i),a=F(r),e=$(r,"A",{href:!0,class:!0});var l=y(e);n=C(l,"Ver disponibles"),l.forEach(f),this.h()},h(){m(e,"href",s=c[7].url),m(e,"class","btn secondary")},m(r,l){h(r,t,l),h(r,a,l),h(r,e,l),E(e,n)},p(r,l){l&2&&s!==(s=r[7].url)&&m(e,"href",s)},i:B,o:B,d(r){r&&(f(t),f(a),f(e))}}}function G(c){let t,i=c[7].encuadernacion+"",a,e,n,s,r,l,o,b,p,_;function v(u,d){return u[8]?_e:fe}let D=v(c),k=D(c);const H=[de,pe],N=[];function L(u,d){return u[8]?0:1}return l=L(c),o=N[l]=H[l](c),{c(){t=A("div"),a=P(i),e=O(),n=A("p"),k.c(),s=O(),r=A("div"),o.c(),b=O(),p=A("hr"),this.h()},l(u){t=$(u,"DIV",{class:!0});var d=y(t);a=C(d,i),e=F(d),n=$(d,"P",{class:!0});var w=y(n);k.l(w),w.forEach(f),d.forEach(f),s=F(u),r=$(u,"DIV",{class:!0});var z=y(r);o.l(z),z.forEach(f),b=F(u),p=$(u,"HR",{class:!0}),this.h()},h(){m(n,"class","ml-auto"),m(t,"class","d-flex"),m(r,"class","d-flex align-center gap-2"),m(p,"class","my-4")},m(u,d){h(u,t,d),E(t,a),E(t,e),E(t,n),k.m(n,null),h(u,s,d),h(u,r,d),N[l].m(r,null),h(u,b,d),h(u,p,d),_=!0},p(u,d){(!_||d&2)&&i!==(i=u[7].encuadernacion+"")&&V(a,i),D===(D=v(u))&&k?k.p(u,d):(k.d(1),k=D(u),k&&(k.c(),k.m(n,null)));let w=l;l=L(u),l===w?N[l].p(u,d):(I(),S(N[w],1,1,()=>{N[w]=null}),U(),o=N[l],o?o.p(u,d):(o=N[l]=H[l](u),o.c()),g(o,1),o.m(r,null))},i(u){_||(g(o),_=!0)},o(u){S(o),_=!1},d(u){u&&(f(t),f(s),f(r),f(b),f(p)),k.d(),N[l].d()}}}function he(c){let t,i,a=c[1]&&j(c);return{c(){a&&a.c(),t=T()},l(e){a&&a.l(e),t=T()},m(e,n){a&&a.m(e,n),h(e,t,n),i=!0},p(e,n){e[1]?a?(a.p(e,n),n&2&&g(a,1)):(a=j(e),a.c(),g(a,1),a.m(t.parentNode,t)):a&&(I(),S(a,1,1,()=>{a=null}),U())},i(e){i||(g(a),i=!0)},o(e){S(a),i=!1},d(e){e&&f(t),a&&a.d(e)}}}function me(c){let t,i,a;function e(s){c[5](s)}let n={title:"Formatos disponibles",$$slots:{default:[he]},$$scope:{ctx:c}};return c[2]!==void 0&&(n.active=c[2]),t=new ce({props:n}
3),W.push(()=>x(t,"active",e)),{c(){Z(t.$$.fragment)},l(s){Y(t.$$.fragment,s)},m(s,r){X(t,s,r),a=!0},p(s,[r]){const l={};r&2050&&(l.$$scope={dirty:r,ctx:s}),!i&&r&4&&(i=!0,l.active=s[2],ee(()=>i=!1)),t.$set(l)},i(s){a||(g(t.$$.fragment,s),a=!0)},o(s){S(t.$$.fragment,s),a=!1},d(s){M(t,s)}}}function be(c,t,i){let a,e,n,s=B,r=()=>(s(),s=ae(l,p=>i(2,n=p)),l);te(c,le,p=>i(3,e=p)),c.$$.on_destroy.push(()=>s());let{active:l}=t;r();const o=p=>p.addToCart();function b(p){n=p,l.set(n)}return c.$$set=p=>{"active"in p&&r(i(0,l=p.active))},c.$$.update=()=>{c.$$.dirty&8&&i(1,a=e?.otrasEdicionesFichaUnica)},[l,a,n,e,o,b]}class ye extends J{constructor(t){super(),K(this,t,be,me,Q,{active:0})}}export{ye 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.