PageSourceSearch

https://www.casadellibro.com/assets/1790062628720/EstantePublico-BtvTMBNG.js

js casadellibro.com collected 2026-09-24 07:42:47 UTC 4,665 bytes, 1 lines download raw bytes

1import{S as T,i as V,a as A,d as _,t as h,h as d,j as P,k as q,n as b,q as v,r as E,u as I,y,O as g,J as O,W as j,E as k,c as H,p as U,x as z,A as N,w as S,z as D,R as C,B as $}from"./index-BhuTsbqy.js";import{e as B,d as J,b as K}from"./wishlist-Buloz4Xl.js";import R from"./MiListaDeDeseos-Bf5hEDig.js";import W from"./MisLibrosLeidos-38IfCXuY.js";import"./ShareDialog-OsD0Unfi.js";import"./CDialog-CVvxAT0Q.js";import"./Switch-DpEmGPDv.js";import"./FilterToolbar-OHGTtSm0.js";import"./Paginator-Bzk9bJV3.js";import"./CMAColors-BcxhgR_3.js";import"./EstanteVacio-C77hCWSM.js";import"./NombreEstanteDialog-CMtQ6aYC.js";import"./core-BcPUBYCp.js";import"./RemoveDialog-DkVcwGKe.js";import"./GForm-20ium-Vm.js";import"./GLabel-CBcjoLJ4.js";import"./ProductEstante-RTISX2BM.js";import"./CMenu-BVIK_msz.js";import"./icons-C5S32XN9.js";import"./CompactProduct-BtAHCr0b.js";import"./CDLImg-uJr3C_ap.js";import"./Rating-Cm7EEkaW.js";import"./Topos-CNcl3hgp.js";import"./globals-D0QH3NT1.js";import"./ProductPrice-DXhz4Kem.js";import"./Swiper-JV98mOmD.js";import"./ExpandedProduct-BlQ-URb0.js";import"./await_block-E_mp8YE9.js";import"./product-CJYjoF_b.js";import"./product-DGcivCMc.js";import"./MoveProductDialog-CIxH-XyX.js";import"./Tooltip-DJ4F-K-c.js";import"./icon-map-DqdxPJl3.js";function L(a){let t,s,e,i;const o=[G,F],c=[];function n(r,u){return r[5]?0:1}return t=n(a),s=c[t]=o[t](a),{c(){s.c(),e=k()},l(r){s.l(r),e=k()},m(r,u){c[t].m(r,u),b(r,e,u),i=!0},p(r,u){s.p(r,u)},i(r){i||(d(s),i=!0)},o(r){h(s),i=!1},d(r){r&&_(e),c[t].d(r)}}}function F(a){let t,s,e,i,o,c,n=a[3]==="privada"&&w(),r=a[3]==="noExiste"&&M();const u=[X,Q],f=[];function p(l,m){return l[3]!=="visible"?0:1}return e=p(a),i=f[e]=u[e](a),{c(){n&&n.c(),t=D(),r&&r.c(),s=D(),i.c(),o=k()},l(l){n&&n.l(l),t=S(l),r&&r.l(l),s=S(l),i.l(l),o=k()},m(l,m){n&&n.m(l,m),b(l,t,m),r&&r.m(l,m),b(l,s,m),f[e].m(l,m),b(l,o,m),c=!0},p(l,m){l[3]==="privada"?n||(n=w(),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),l[3]==="noExiste"?r||(r=M(),r.c(),r.m(s.parentNode,s)):r&&(r.d(1),r=null);let x=e;e=p(l),e===x?f[e].p(l,m):(P(),h(f[x],1,1,()=>{f[x]=null}),q(),i=f[e],i?i.p(l,m):(i=f[e]=u[e](l),i.c()),d(i,1),i.m(o.parentNode,o))},i(l){c||(d(i),c=!0)},o(l){h(i),c=!1},d(l){l&&(_(t),_(s),_(o)),n&&n.d(l),r&&r.d(l),f[e].d(l)}}}function G(a){let t,s;return t=new W({props:{dec:a[4].params.id}}),{c(){N(t.$$.fragment)},l(e){z(t.$$.fragment,e)},m(e,i){U(t,e,i),s=!0},p(e,i){const o={};i&16&&(o.dec=e[4].params.id),t.$set(o)},i(e){s||(d(t.$$.fragment,e),s=!0)},o(e){h(t.$$.fragment,e),s=!1},d(e){H(t,e)}}}function w(a){let t,s="Esta lista es privada. Para acceder a ella, solicita al propietario que la establezca como Pública.";return{c(){t=y("h2"),t.textContent=s,this.h()},l(e){t=E(e,"H2",{class:!0,"data-svelte-h":!0}),C(t)!=="svelte-1u2o950"&&(t.textContent=s),this.h()},h(){v(t,"class","text-center")},m(e,i){b(e,t,i)},d(e){e&&_(t)}}}function M(a){let t,s="Lo sentimos, no hemos podido encontrar esta lista.";return{c(){t=y("h2"),t.textContent=s,this.h()},l(e){t=E(e,"H2",{class:!0,"data-svelte-h":!0}),C(t)!=="svelte-s3oas5"&&(t.textContent=s),this.h()},h(){v(t,"class","text-center")},m(e,i){b(e,t,i)},d(e){e&&_(t)}}}function Q(a){let t,s;return t=new R({props:{idEstante:a[1],idUsuario:a[2],isPublic:!0}}),{c(){N(t.$$.fragment)},l(e){z(t.$$.fragment,e)},m(e,i){U(t,e,i),s=!0},p(e,i){const o={};i&2&&(o.idEstante=e[1]),i&4&&(o.idUsuario=e[2]),t.$set(o)},i(e){s||(d(t.$$.fragment,e),s=!0)},o(e){h(t.$$.fragment,e),s=!1},d(e){H(t,e)}}}function X(a){let t,s='<a href="/libros" class="accent-text">Descubre nuestra librería</a>';return{c(){t=y("div"),t.innerHTML=s,this.h()},l(e){t=E(e,"DIV",{class:!0,"data-svelte-h":!0}),C(t)!=="svelte-3fb8by"&&(t.innerHTML=s),this.h()},h(){v(t,"class","mt-4 text-center")},m(e,i){b(e,t,i)},p:$,i:$,o:$,d(e){e&&_(t)}}}function Y(a){let t,s,e=!a[0]&&L(a);return{c(){t=y("div"),e&&e.c(),this.h()},l(i){t=E(i,"DIV",{class:!0});var o=I(t);e&&e.l(o),o.forEach(_),this.h()},h(){v(t,"class","shelve container")},m(i,o){b(i,t,o),e&&e.m(t,null),s=!0},p(i,[o]){i[0]?e&&(P(),h(e,1,1,()=>{e=null}),q()):e?(e.p(i,o),o&1&&d(e,1)):(e=L(i),e.c(),d(e,1),e.m(t,null))},i(i){s||(d(e),s=!0)},o(i){h(e),s=!1},d(i){i&&_(t),e&&e.d()}}}function Z(a,t,s){let e,i,o;g(a,B,p=>s(6,i=p)),g(a,O,p=>s(4,o=p));let c=!0,n="",r="";const u={0:"visible",1:"visible",2:"privada",3:"noExiste"},f=o.query.librosleidos;return j(async()=>{const p=await J(o.params.id);f||(s(1,n=p.idEstante),s(2,r=p.idUsuario),await K(n,1,"1",r)),s(0,c=!1)}),a.$$.update=()=>{a.$$.dirty&64&&s(3,e=i?u[i.estadoVisualizacion]:"noExiste")},[c,n,r,e,o,f,i]}class He extends T{constructor(t){super(),V(this,t,Z,Y,A,{})}}export{He 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.