1import{t as S,u as E,j as e}from"./index-CX5aAo7M.js";import{e as R,P as r,r as C,f as F,T,R as P,g as O,a as c,F as q,b as U,h as L,i as _,j as w,k as D}from"./recursos-seo-D3g12bQQ.js";import{S as $}from"./search-CWYo_1gb.js";import"./GlobalFooter-C-ufSFAC.js";import"./map-pin-DO-S9une.js";import"./play-C53O02IG.js";function K(){const[t,f]=S(),b=t.get("q")??"",a=t.get("tema")??"",o=t.get("formato")??"",d=t.toString().length>0;E(R(d));const i=r.filter(s=>C(s,b,a,o)),n=i.filter(s=>s.format==="episodio"),m=i.filter(s=>s.format==="clip"),g=r.find(s=>s.id==="7xLN2Eh0Kp0"),p=`${F}${t.toString()?`?${t.toString()}`:""}`,j=Object.entries(T).filter(([s])=>r.some(l=>l.topic===s));function x(s,l){const N=new URLSearchParams;for(const u of["q","tema","formato"]){const y=u===s?l:t.get(u);y&&N.set(u,y)}f(N,{replace:s==="q"})}const v=()=>f(new URLSearchParams),h=`min-h-12 w-full min-w-0 rounded-xl border border-white/20 bg-[#161616] px-4 py-3 text-base text-white ${U}`;return e.jsxs(P,{children:[e.jsxs("header",{children:[e.jsx(O,{children:"Recursos gratuitos · Podcast Didactys"}),e.jsx("h1",{className:"max-w-4xl text-4xl font-bold leading-tight tracking-tight sm:text-5xl",style:{fontFamily:c},children:"Podcast Didactys: conversaciones sobre educación y universidad"}),e.jsx("p",{className:"mt-6 max-w-3xl text-base leading-relaxed text-white/70 sm:text-lg",children:"Entrevistas, experiencias de alumnos y conversaciones sobre la preparación del acceso a la universidad. Escucha a quienes ya han recorrido ese camino y descubre distintas formas de vivir la educación."}),e.jsxs("div",{className:"mt-6 flex flex-wrap gap-3 text-sm text-white/80",children:[e.jsxs("span",{className:"rounded-full border border-white/15 px-4 py-2",children:[r.filter(s=>s.format==="episodio").length," episodios"]}),e.jsxs("span",{className:"rounded-full border border-white/15 px-4 py-2",children:[r.filter(s=>s.format==="clip").length," clips y vÃdeos breves"]})]})]}),!d&&g&&e.jsx(q,{video:g,returnTo:p}),e.jsxs("section",{"aria-labelledby":"podcast-biblioteca",className:"mt-12",children:[e.jsx("h2",{id:"podcast-biblioteca",className:"mb-6 text-3xl font-semibold",style:{fontFamily:c},children:"Encuentra tu próxima conversación"}),e.jsxs("form",{role:"search","aria-label":"Buscar en el podcast",onSubmit:s=>s.preventDefault(),className:"grid gap-4 rounded-2xl border border-white/10 bg-white/[0.035] p-5 sm:grid-cols-2 lg:grid-cols-[2fr_1fr_1fr]",children:[e.jsxs("div",{className:"min-w-0 sm:col-span-2 lg:col-span-1",children:[e.jsx("label",{htmlFor:"podcast-q",className:"mb-2 block text-sm font-medium text-white/80",children:"Buscar por tÃtulo o contenido"}),e.jsxs("div",{className:"relative",children:[e.jsx($,{className:"pointer-events-none absolute left-4 top-4 text-white/45",size:18,"aria-hidden":"true"}),e.jsx("input",{id:"podcast-q",type:"search",name:"q",maxLength:300,value:b,onChange:s=>x("q",s.target.value),placeholder:"Universidad, experiencias, estudioâ¦",className:`${h} pl-11`})]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("label",{htmlFor:"podcast-formato",className:"mb-2 block text-sm font-medium text-white/80",children:"Formato"}),e.jsxs("select",{id:"podcast-formato",name:"formato",value:o,onChange:s=>x("formato",s.target.value),className:h,children:[e.jsx("option",{value:"",children:"Todos los formatos"}),e.jsx("option",{value:"episodio",children:"Episodios"}),e.jsx("option",{value:"clip",children:"Clips y vÃdeos breves"}),o&&!["episodio","clip"].includes(o)&&e.jsx("option",{value:o,children:"Formato no disponible"})]})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("label",{htmlFor:"podcast-tema",className:"mb-2 block text-sm font-medium text-white/80",children:"Tema"}),e.jsxs("select",{id:"podcast-tema",name:"tema",value:a,onChange:s=>x("tema",s.target.value),className:h,children:[e.jsx("option",{value:"",children:"Todos los temas"}),j.map(([s,l])=>e.jsx("option",{value:s,children:l},s)),a&&!j.some(([s])=>s===a)&&e.jsx("option",{value:a,children:"Tema no disponible"})]})]})]}),e.jsxs("div",{className:"my-6 flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("p",{role:"status","aria-live":"polite",className:"text-sm text-white/65",children:[i.length," ",i.length===1?"vÃdeo encontrado":"vÃdeos encontrados"]}),d&&e.jsx("button",{type:"button",onClick:v,className:`${L} !min-h-10 !py-2`,children:"Limpiar filtros"})]}),!i.length&&e.jsx(_,{onClear:v}),n.length>0&&e.jsxs("section",{"aria-labelledby":"podcast-episodios",children:[e.jsxs("h2",{id:"podcast-episodios",className:"mb-5 text-2xl font-semibold",style:{fontFamily:c},children:["Episodios ",e.jsxs("span",{className:"text-lg font-normal text-white/50",children:["(",n.length,")"]})]}),e.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.map(s=>e.jsx(w,{video:s,returnTo:p},s.id))})]}),m.length>0&&e.jsxs("section",{"aria-labelledby":"podcast-clips",className:n.length?"mt-12":"",children:[e.jsxs("h2",{id:"podcast-clips",className:"mb-5 text-2xl font-semibold",style:{fontFamily:c},children:["Clips y vÃdeos breves ",e.jsxs("span",{className:"text-lg font-normal text-white/50",children:["(",m.length,")"]})]}),e.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:m.map(s=>e.jsx(w,{video:s,returnTo:p},s.id))})]})]}),e.jsx(D,{current:"podcast"})]})}
1export{K 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.