PageSourceSearch

https://www.modocheto.ai/_next/static/immutable/chunks/448poxpn-6nm2.js

js modocheto.ai collected 2026-10-05 14:37:41 UTC 12,767 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f38d26f4-c539-d01a-6967-1bf67573d0d2")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,395408,e=>{"use strict";var r=e.i(843476),t=e.i(271645);e.s(["BackToTop",0,function({color:e}){let[n,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=()=>a(window.scrollY>500);return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,r.jsx)("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),"aria-label":"Volver arriba",className:`fixed bottom-6 right-5 z-50 p-3 rounded-full shadow-lg text-white transition-all duration-300 hover:scale-110 active:scale-95 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-4 pointer-events-none"}`,style:{backgroundColor:e},children:(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"})})})}])},436219,e=>{"use strict";var r=e.i(271645);e.s(["default",0,function(){return(0,r.useEffect)(()=>{if("u"<typeof document||!document.querySelector(".instagram-media"))return;let e=window,r=()=>{try{e.instgrm?.Embeds?.process()}catch{}};if(e.instgrm?.Embeds)return void r();let t="instagram-embed-js",n=document.getElementById(t);if(n){n.addEventListener("load",r),r();return}let a=document.createElement("script");a.id=t,a.async=!0,a.src="https://www.instagram.com/embed.js",a.onload=r,document.body.appendChild(a)},[]),null}])},106926,e=>{"use strict";var r=e.i(843476),t=e.i(271645);e.s(["MobileToc",0,function({items:e,activeColor:n}){let[a,o]=(0,t.useState)(!1);return e.length?(0,r.jsxs)("div",{className:"lg:hidden mb-8 rounded-xl border border-border/60 overflow-hidden",children:[(0,r.jsxs)("button",{onClick:()=>o(e=>!e),className:"w-full flex items-center justify-between px-4 py-3 bg-muted/50 text-sm font-semibold text-foreground hover:bg-muted transition-colors",children:[(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[(0,r.jsx)("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zM3.75 12h.007v.008H3.75V12zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm-.375 5.25h.007v.008H3.75v-.008zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})}),"Contenido del artículo"]}),(0,r.jsx)("svg",{className:`w-4 h-4 text-muted-foreground transition-transform duration-200 ${a?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),(0,r.jsx)("div",{className:`transition-all duration-200 overflow-hidden ${a?"max-h-96":"max-h-0"}`,children:(0,r.jsx)("ul",{className:"px-4 py-3 space-y-1 overflow-y-auto max-h-72",children:e.map(e=>(0,r.jsx)("li",{className:3===e.level?"pl-4":"",children:(0,r.jsxs)("a",{href:`#${e.id}`,onClick:()=>o(!1),className:"flex items-start gap-2 text-[13px] py-1 text-muted-foreground hover:text-foreground transition-colors",children:[(0,r.jsx)("span",{className:"w-1 h-1 rounded-full mt-2 flex-shrink-0",style:{backgroundColor:n}}),e.text]})},e.id))})})]}):null}])},936380,e=>{"use strict";var r=e.i(843476),t=e.i(271645);e.s(["ReadingProgress",0,function({color:e}){let[n,a]=(0,t.useState)(0);return(0,t.useEffect)(()=>{let e=()=>{let e=window.scrollY,r=document.documentElement.scrollHeight-window.innerHeight;a(r>0?Math.min(100,e/r*100):0)};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[]),(0,r.jsx)("div",{className:"fixed top-0 left-0 z-[200] h-[3px] pointer-events-none transition-none",style:{width:`${n}%`,backgroundColor:e}})}])},586902,e=>{"use strict";var r=e.i(843476),t=e.i(271645);e.s(["TableOfContents",0,function({items:e,activeColor:n}){let[a,o]=(0,t.useState)(()=>e[0]?.id??"");return((0,t.useEffect)(()=>
2{if(!e.length)return;let r=e.map(e=>document.getElementById(e.id)).filter(e=>!!e);if(!r.length)return;let t=()=>{let e=document.documentElement.scrollHeight;if(window.innerHeight+window.scrollY>=e-4)return void o(r[r.length-1].id);let t=r[0].id;for(let e of r)if(e.getBoundingClientRect().top-120<=0)t=e.id;else break;o(t)};t();let n=!1,a=()=>{n||(n=!0,requestAnimationFrame(()=>{t(),n=!1}))};return window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[e]),e.length)?(0,r.jsxs)("nav",{"aria-label":"Tabla de contenidos",children:[(0,r.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-widest text-muted-foreground mb-4",children:"En este artículo"}),(0,r.jsx)("ul",{className:"space-y-0.5",children:e.map(e=>(0,r.jsx)("li",{className:3===e.level?"pl-4":"",children:(0,r.jsx)("a",{href:`#${e.id}`,className:"block text-[13px] leading-snug py-1.5 pl-3 border-l-2 transition-all",style:a===e.id?{color:n,borderColor:n,fontWeight:600}:{color:"var(--color-muted-foreground)",borderColor:"transparent"},children:e.text})},e.id))})]}):null}])},151863,e=>{"use strict";var r=e.i(843476),t=e.i(271645),n=e.i(228380),a=e.i(793479),o=e.i(519455);let i={aprueba:{titulo:"Una vez al mes, lo que de verdad cambia",entradilla:"Convocatorias que salen en el BOE, temarios nuevos y lo que hemos aprendido preparando exámenes. Sin relleno y sin vender nada.",consent:"Quiero recibir la newsletter mensual.",boton:"Suscribirme",exito:"Te hemos enviado un correo para confirmar. Sin ese clic no te llega nada."},modocheto:{titulo:"Una al mes. Solo lo que mola.",entradilla:"Convocatorias del BOE, temarios nuevos y trucos que funcionan. Una al mes, y si no aporta no la mandamos.",consent:"Quiero la newsletter mensual.",boton:"Apuntarme",exito:"Mira tu correo y confirma. Sin ese clic no te mandamos nada."}},s={invalid_email:"Ese correo no parece válido. Revísalo.",consent_required:"Marca la casilla para poder suscribirte.",invalid_origen:"Algo va mal por nuestra parte. Inténtalo más tarde.",invalid_json:"Algo va mal por nuestra parte. Inténtalo más tarde."};e.s(["AltaNewsletter",0,function({origen:e,className:l}){let d=i[n.currentBrand.key],[c,u]=(0,t.useState)(""),[m,p]=(0,t.useState)(!1),[f,h]=(0,t.useState)("inicio"),[x,g]=(0,t.useState)(null);async function v(r){r.preventDefault(),g(null),h("enviando");try{let r=await fetch("/api/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,consent:m,origen:e})}),t=await r.json().catch(()=>({}));if(!r.ok){g(s[t?.error]??"No hemos podido suscribirte. Inténtalo en un rato."),h("inicio");return}h("hecho")}catch{g("No hemos podido conectar. Revisa tu conexión e inténtalo otra vez."),h("inicio")}
2}return"hecho"===f?(0,r.jsxs)("div",{className:`rounded-2xl border border-border bg-surface p-6 ${l??""}`,role:"status",children:[(0,r.jsx)("p",{className:"font-display text-lg font-bold text-foreground",children:"Casi está"}),(0,r.jsx)("p",{className:"mt-2 font-body text-sm text-muted-foreground",children:d.exito})]}):(0,r.jsxs)("form",{onSubmit:v,className:`rounded-2xl border border-border bg-surface p-6 ${l??""}`,children:[(0,r.jsx)("h2",{className:"font-display text-xl font-bold tracking-tight text-foreground",children:d.titulo}),(0,r.jsx)("p",{className:"mt-2 font-body text-sm leading-relaxed text-muted-foreground",children:d.entradilla}),(0,r.jsxs)("div",{className:"mt-4 flex flex-col gap-2 sm:flex-row",children:[(0,r.jsx)("label",{htmlFor:"newsletter-email",className:"sr-only",children:"Tu correo electrónico"}),(0,r.jsx)(a.Input,{id:"newsletter-email",type:"email",inputMode:"email",autoComplete:"email",required:!0,maxLength:254,placeholder:"[email protected]",value:c,onChange:e=>u(e.target.value),"aria-describedby":x?"newsletter-error":void 0,"aria-invalid":!!x||void 0,className:"sm:flex-1"}),(0,r.jsx)(o.Button,{type:"submit",disabled:"enviando"===f,children:"enviando"===f?"Enviando…":d.boton})]}),(0,r.jsxs)("label",{className:"mt-3 flex cursor-pointer items-start gap-2 font-body text-xs text-muted-foreground",children:[(0,r.jsx)("input",{type:"checkbox",checked:m,onChange:e=>p(e.target.checked),className:"mt-0.5 h-4 w-4 rounded border-input accent-[var(--color-brand-primary)]"}),(0,r.jsxs)("span",{children:[d.consent," Puedes darte de baja de un clic en cualquier correo."," ",(0,r.jsx)("a",{href:"/privacidad",className:"text-brand-primary underline underline-offset-2",children:"Política de privacidad"}),"."]})]}),x&&(0,r.jsx)("p",{id:"newsletter-error",role:"alert",className:"mt-3 font-body text-sm text-brand-status-error",children:x})]})}])},120021,e=>{"use strict";var r=e.i(843476),t=e.i(618566),n=e.i(172393),a=e.i(228380);e.s(["default",0,function(){let e,o,i,s,l=(0,t.usePathname)(),d=(e=l.split("/").filter(Boolean),o=[{name:"Inicio",url:`https://${a.currentBrand.domain}`}],i={planificador:"Planificador",tests:"Tests",repositorio:"Repositorio",desarrolla:"Desarrolla",alertas:"Alertas",blog:"Blog",dashboard:"Dashboard"},s="",e.forEach(e=>{s+=`/${e}`;let r=i[e]||e.charAt(0).toUpperCase()+e.slice(1).replace(/-/g," ");o.push({name:r,url:`https://${a.currentBrand.domain}${s}`})}),o);return"/"===l||l.startsWith("/repositorio/tema/")?null:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,n.serializeJsonLd)((0,n.generateBreadcrumbSchema)(d))},suppressHydrationWarning:!0})})}])},793479,e=>{"use strict";var r=e.i(843476),t=e.i(271645),n=e.i(975157);let a=t.forwardRef(({className:e,type:t,...a},o)=>(0,r.jsx)("input",{type:t,className:(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
2ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));a.displayName="Input",e.s(["Input",0,a])},172393,e=>{"use strict";var r=e.i(228380);r.currentBrand.domain,r.currentBrand.name,r.currentBrand.meta.description,r.currentBrand.assets.pwaIcon512,r.currentBrand.key,r.currentBrand.name,r.currentBrand.meta.description,r.currentBrand.assets.ogImage,r.currentBrand.name,r.currentBrand.meta.description,r.currentBrand.name,r.currentBrand.meta.description,r.currentBrand.name,r.currentBrand.name,r.currentBrand.assets.ogImage,r.currentBrand.name,r.currentBrand.name,r.currentBrand.name,["Historia de España","Lengua Castellana","Matemáticas","Biología","Economía","Física","Química","Geografía"].map(e=>({"@type":"Offer",itemOffered:{"@type":"Course",name:`Selectividad ${e}`,provider:{"@type":"Organization",name:r.currentBrand.name}},price:"0",priceCurrency:"EUR"})),["Guardia Civil","Policía Nacional","Correos","Auxiliar Administrativo","Auxilio Judicial","Agente de Hacienda Pública","Inspector Médico"].map(e=>({"@type":"Offer",itemOffered:{"@type":"Course",name:`Oposiciones ${e}`,provider:{"@type":"Organization",name:r.currentBrand.name}},price:"0",priceCurrency:"EUR"})),["MIR","FIR","EIR"].map(e=>({"@type":"Offer",itemOffered:{"@type":"Course",name:e,provider:{"@type":"Organization",name:r.currentBrand.name}},price:"0",priceCurrency:"EUR"})),["Cambridge PET","Cambridge FCE","Cambridge KET","TOEFL","IELTS","DELE"].map(e=>({"@type":"Offer",itemOffered:{"@type":"Course",name:e,provider:{"@type":"Organization",name:r.currentBrand.name}},price:"0",priceCurrency:"EUR"})),["Carné de conducir DGT","Ciudadanía española","PER náutico"].map(e=>({"@type":"Offer",itemOffered:{"@type":"Course",name:e,provider:{"@type":"Organization",name:r.currentBrand.name}},price:"0",priceCurrency:"EUR"})),e.s(["generateBreadcrumbSchema",0,function(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.filter(e=>(e.name||"").trim()&&(e.url||"").trim()).map((e,r)=>({"@type":"ListItem",position:r+1,name:e.name.trim().slice(0,110),item:e.url.trim()}))}},"generateFAQSchema",0,function(e){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))}},"serializeJsonLd",0,function(e){return JSON.stringify(e)}])}]);
3
4//# debugId=f38d26f4-c539-d01a-6967-1bf67573d0d2

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.