PageSourceSearch

https://www.casadellibro.com/assets/1790062628720/FollowSaga-DdErb8K3.js

js casadellibro.com collected 2026-09-24 07:41:26 UTC 5,165 bytes, 1 lines download raw bytes

1import{S as X,i as Y,a as Z,X as H,Y as N,c as R,t as P,h as B,Z as U,p as T,x as z,A as G,B as J,al as L,d as $,j as M,k as Q,n as I,E as j,c0 as W,C as x,bh as ee,F as K,q as v,o as _,a2 as te,r as C,u as O,w as E,R as q,G as D,y as k,z as y,H as F,_ as A}from"./index-BhuTsbqy.js";import ae from"./BasePanel-Dfqrwdbl.js";import{G as ne}from"./GForm-20ium-Vm.js";import{E as se}from"./EmailInput-CruwHLOx.js";import{R as le}from"./RGPD-Dg9EFmVn.js";import"./CMAColors-BcxhgR_3.js";import{b as ie}from"./alarmas-CLzlM83_.js";import"./CSidebar-Bf60iYQj.js";import"./core-BcPUBYCp.js";import"./GLabel-CBcjoLJ4.js";function re(o){let e,t,i,u,f,a,r,n;return r=new ne({props:{onsubmit:o[6],$$slots:{default:[ce]},$$scope:{ctx:o}}}),{c(){e=k("p"),t=F("Recibe novedades de "),i=k("b"),u=F(o[1]),f=F(" directamente en tu email"),a=y(),G(r.$$.fragment),this.h()},l(s){e=C(s,"P",{class:!0});var l=O(e);t=D(l,"Recibe novedades de "),i=C(l,"B",{});var d=O(i);u=D(d,o[1]),d.forEach($),f=D(l," directamente en tu email"),l.forEach($),a=E(s),z(r.$$.fragment,s),this.h()},h(){v(e,"class","mb-4 f-size-4 f-serif text-center")},m(s,l){I(s,e,l),_(e,t),_(e,i),_(i,u),_(e,f),I(s,a,l),T(r,s,l),n=!0},p(s,l){(!n||l&2)&&K(u,s[1]);const d={};l&4108&&(d.$$scope={dirty:l,ctx:s}),r.$set(d)},i(s){n||(B(r.$$.fragment,s),n=!0)},o(s){P(r.$$.fragment,s),n=!1},d(s){s&&($(e),$(a)),R(r,s)}}}function oe(o){let e,t,i,u,f="¡HECHO!",a,r,n="Te has suscrito a las novedades de",s,l,d,w,h,S="¡OK!",c,p,m;return t=new x({props:{icon:ee,size:70,class:"brand-text"}}),{c(){e=k("div"),G(t.$$.fragment),i=y(),u=k("p"),u.textContent=f,a=y(),r=k("p"),r.textContent=n,s=y(),l=k("p"),d=F(o[1]),w=y(),h=k("button"),h.textContent=S,this.h()},l(g){e=C(g,"DIV",{class:!0});var b=O(e);z(t.$$.fragment,b),i=E(b),u=C(b,"P",{class:!0,"data-svelte-h":!0}),q(u)!=="svelte-1l51bww"&&(u.textContent=f),a=E(b),r=C(b,"P",{"data-svelte-h":!0}),q(r)!=="svelte-v8my2u"&&(r.textContent=n),s=E(b),l=C(b,"P",{class:!0,"data-saga-name":!0});var V=O(l);d=D(V,o[1]),V.forEach($),w=E(b),h=C(b,"BUTTON",{class:!0,"data-svelte-h":!0}),q(h)!=="svelte-1d2vwga"&&(h.textContent=S),b.forEach($),this.h()},h(){v(u,"class","f-size-5 f-serif"),v(l,"class","f-w-5"),v(l,"data-saga-name",o[1]),v(h,"class","btn secondary mt-4 full-width"),v(e,"class","text-center")},m(g,b){I(g,e,b),T(t,e,null),_(e,i),_(e,u),_(e,a),_(e,r),_(e,s),_(e,l),_(l,d),_(e,w),_(e,h),c=!0,p||(m=te(h,"click",o[8]),p=!0)},p(g,b){(!c||b&2)&&K(d,g[1]),(!c||b&2)&&v(l,"data-saga-name",g[1])},i(g){c||(B(t.$$.fragment,g),c=!0)},o(g){P(t.$$.fragment,g),c=!1},d(g){g&&$(e),R(t),p=!1,m()}}}function ce(o){let e,t,i,u,f,a,r,n,s="enviar",l;function d(c){o[9](c)}let w={};o[2].email!==void 0&&(w.email=o[2].email),t=new se({props:w}),H.push(()=>N(t,"email",d));function h(c){o[10](c)}let S={type:7,origen:"suscripcion-saga"};return o[2]!==void 0&&(S.rgpd=o[2]),f=new le({props:S}),H.push(()=>N(f,"rgpd",h)),{c(){e=k("div"),G(t.$$.fragment),u=y(),G(f.$$.fragment),r=y(),n=k("button"),n.textContent=s,this.h()},l(c){e=C(c,"DIV",{class:!0});var p=O(e);z(t.$$.fragment,p),u=E(p),z(f.$$.fragment,p),r=E(p),n=C(p,"BUTTON",{class:!0,type:!0,"data-svelte-h":!0}),q(n)!=="svelte-10cmh8x"&&(n.textContent=s),p.forEach($),this.h()},h(){v(n,"class","g-btn brand medium"),v(n,"type","submit"),A(n,"loading",o[3]),v(e,"class","d-grid gap-3")},m(c,p){I(c,e,p),T(t,e,null),_(e,u),T(f,e,null),_(e,r),_(e,n),l=!0},p(c,p){const m={};!i&&p&4&&(i=!0,m.email=c[2].email,U(()=>i=!1)),t.$set(m);const g={};!a&&p&4&&(a=!0,g.rgpd=c[2],U(()=>a=!1)),f.$set(g),(!l||p&8)&&A(n,"loading",c[3])},i(c){l||(B(t.$$.fragment,c),B(f.$$.fragment,c),l=!0)},o(c){P(t.$$.fragment,c),P(f.$$.fragment,c),l=!1},d(c){c&&$(e),R(t),R(f)}}}function ue(o){let e,t,i,u;const f=[oe,re],a=[];function r(n,s){return n[4]?0:1}return e=r(o),t=a[e]=f[e](o),{c(){t.c(),i=j()},l(n){t.l(n),i=j()},m(n,s){a[e].m(n,s),I(n,i,s),u=!0},p(n,s){let l=e;e=r(n),e===l?a[e].p(n,s):(M(),P(a[l],1,1,()=>{a[l]=null}),Q(),t=a[e],t?t.p(n,s):(t=a[e]=f[e](n),t.c()),B(t,1),t.m(i.parentNode,i))},i(n){u||(B(t),u=!0)},o(n){P(t),u=!1},d(n){n&&$(i),a[e].d(n)}}}function fe(o){let e,t,i;function u(a){o[11](a)}let f={title:"Seguir la saga",$$slots:{default:[ue]},$$scope:{ctx:o}};return o[5]!==void 0&&(f.active=o[5]),e=new ae({props:f}),H.push(()=>N(e,"active",u)),{c(){G(e.$$.fragment)},l(a){z(e.$$.fragment,a)},m(a,r){T(e,a,r),i=!0},p(a,[r]){const n={};r&4158&&(n.$$scope={dirty:r,ctx:a}),!t&&r&32&&(t=!0,n.active=a[5],U(()=>t=!1)),e.$set(n)},i(a){i||(B(e.$$.fragment,a),i=!0)},o(a){P(e.$$.fragment,a),i=!1},d(a){R(e,a)}}}function me(o,e,t){let i,u=J,f=()=>(u(),u=W(a,m=>t(5,i=m)),a);o.$$.on_destroy.push(()=>u());let{active:a}=e;f();let{idSubcoleccion:r}=e,{title:n=""}=e,s={},l=!1,d=!1;async function w(){t(3,l=!0),await ie(r,s),t(3,l=!1),t(4,d=!0)}const h=()=>L(a,i=!1,i);function S(m){o.$$.not_equal(s.email,m)&&(s.email=m,t(2,s))}function c(m){s=m,t(2,s)}function p(m){i=m,a.set(i)}return o.$$set=m=>{"active"in m&&f(t(0,a=m.active)),"idSubcoleccion"in m&&t(7,r=m.idSubcoleccion),"title"in m&&t(1,n=m.title)},[a,n,s,l,d,i,w,r,h,S,c,p]}class we extends X{constructor(e){super(),Y(this,e,me,fe,Z,{active:0,idSubcoleccion:7,title:1})}}export{we 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.