1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[250],{135:(e,l,s)=>{Promise.resolve().then(s.bind(s,7577)),Promise.resolve().then(s.t.bind(s,7903,23)),Promise.resolve().then(s.t.bind(s,6868,23)),Promise.resolve().then(s.t.bind(s,2619,23)),Promise.resolve().then(s.t.bind(s,1402,23))},7577:(e,l,s)=>{"use strict";s.d(l,{default:()=>o});var a=s(5155),r=s(2115);let t=[{level:"altalanos",title:"Tananyagok \xe1ltal\xe1nos iskol\xe1ban tan\xedt\xf3 pedag\xf3gusok sz\xe1m\xe1ra",ages:"(8-12 \xe9ves kor k\xf6z\xf6tt)"},{level:"kozep",title:"Tananyagok k\xf6z\xe9piskol\xe1ban tan\xedt\xf3 pedag\xf3gusok sz\xe1m\xe1ra",ages:"(10-18 \xe9ves kor k\xf6z\xf6tt)"}],n=e=>e.toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,"");function o(e){let{materials:l,videoLinks:s}=e,[o,i]=(0,r.useState)(""),[c,d]=(0,r.useState)(""),[u,m]=(0,r.useState)(""),x=(0,r.useMemo)(()=>Array.from(new Set(l.flatMap(e=>e.subjects))).sort((e,l)=>e.localeCompare(l,"hu")),[l]),g=(0,r.useMemo)(()=>new Map(l.map(e=>[e.slug,n([e.title,...e.subjects,e.age,...e.keywords].join(" "))])),[l]),h=(0,r.useMemo)(()=>{let e=n(o).split(/\s+/).filter(Boolean),s=u?Number(u):null;return l.filter(l=>{let a=g.get(l.slug);if(!e.every(e=>a.includes(e))||c&&!l.subjects.includes(c))return!1;if(null!==s){let[e,a]=(e=>{var l,s;let[a,r]=null!=(s=null==(l=e.match(/\d+/g))?void 0:l.map(Number))?s:[0,99];return[a,null!=r?r:a]})(l.age);if(s<e||s>a)return!1}return!0})},[l,g,o,c,u]),p=o||c||u;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"max-w-6xl mx-auto bg-gray-50 rounded-lg p-4 sm:p-6 flex flex-col md:flex-row gap-3",children:[(0,a.jsxs)("label",{className:"flex-1",children:[(0,a.jsx)("span",{className:"sr-only",children:"Keres\xe9s"}),(0,a.jsx)("input",{type:"search",value:o,onChange:e=>i(e.target.value),placeholder:"Keres\xe9s c\xedm, tant\xe1rgy vagy kulcssz\xf3 alapj\xe1n (pl. Hold, programoz\xe1s, Mars)",className:"w-full rounded-full border border-gray-300 bg-white px-5 py-3 focus:outline-none focus:ring-2 focus:ring-[#0098DB]"})]}),(0,a.jsxs)("select",{value:c,onChange:e=>d(e.target.value),"aria-label":"Tant\xe1rgy",className:"rounded-full border border-gray-300 bg-white px-5 py-3 focus:outline-none focus:ring-2 focus:ring-[#0098DB]",children:[(0,a.jsx)("option",{value:"",children:"Minden tant\xe1rgy"}),x.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]}),(0,a.jsxs)("select",{value:u,onChange:e=>m(e.target.value),"aria-label":"Tanul\xf3k \xe9letkora",className:"rounded-full border border-gray-300 bg-white px-5 py-3 focus:outline-none focus:ring-2 focus:ring-[#0098DB]",children:[(0,a.jsx)("option",{value:"",children:"Minden koroszt\xe1ly"}),Array.from({length:15},(e,l)=>l+6).map(e=>(0,a.jsxs)("option",{value:e,children:[e," \xe9ves tanul\xf3knak"]},e))]}),p&&(0,a.jsx)("button",{type:"button",onClick:()=>{i(""),d(""),m("")},className:"rounded-full bg-gray-200 hover:bg-gray-300 text-gray-700 px-5 py-3 font-medium transition-colors",children:"T\xf6rl\xe9s"})]}),(0,a.jsxs)("p",{className:"max-w-6xl mx-auto mt-3 text-sm text-gray-600","aria-live":"polite",children:[h.length," tananyag"]}),t.map(e=>{let{level:l,title:r,ages:t}=e,n=h.filter(e=>e.level===l),o=s[l];return(0,a.jsxs)("section",{id:l,className:"max-w-6xl mx-auto mt-10 scroll-mt-24",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4 mb-6",children:[(0,a.jsxs)("h2",{className:"text-2xl",children:[(0,a.jsx)("span",{className:"font-bold",children:r}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-lg text-gray-600",children:t})]}),o&&(0,a.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"bg-[#0098DB] hover:bg-[#006BA6] text-white px-5 py-2 rounded-full font-medium transition-colors inline-flex items-center gap-2",children:[(0,a.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M8 5v14l11-7z"})}),"Vide\xf3k"]})]}),0===n.length?(0,a.jsx)("p",{className:"text-gray-600",children:"Nincs a keres\xe9snek megfelelÅ tananyag ebben a kateg\xf3ri\xe1ban."}):(0,a.jsx)("div",{className:"grid md:grid-cols-2 gap-6",children:n.map(e=>(0,a.jsxs)("article",{className:"bg-white rounded-lg shadow-sm border border-gray-100 p-5 flex flex-col",children:[(0,a.jsx)("h3",{className:"font-bold text-lg text-[#0098DB] mb-2",children:e.title}),(0,a.jsxs)("dl",{className:"text-sm text-gray-700 space-y-1 mb-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{className:"inline font-medium",children:"Tant\xe1rgy: "}),(0,a.jsx)("dd",{className:"inline",children:e.subjects.join(", ")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{className:"inline font-medium",children:"Koroszt\xe1ly: "}),(0,a.jsx)("dd",{className:"inline",children:e.age})]})]}),(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-4",children:e.keywords.join(" \xb7 ")}),(0,a.jsx)("div",{className:"mt-auto flex flex-wrap gap-2",children:e.files.map(l
1=>(0,a.jsxs)("a",{href:l.href,download:!0,"data-track":"material_download","data-track-label":"".concat(e.title," â ").concat(l.label),className:"inline-flex items-center gap-2 bg-gray-700 hover:bg-gray-800 text-white text-sm px-4 py-2 rounded-full transition-colors",children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v12m0 0l-5-5m5 5l5-5M5 20h14"})}),l.label,(0,a.jsxs)("span",{className:"text-white/60",children:[l.format,", ",l.sizeMb.toLocaleString("hu-HU")," MB"]})]},l.href))})]},e.slug))})]},l)})]})}}},e=>{e.O(0,[287,850,441,255,358],()=>e(e.s=135)),_N_E=e.O()}]);
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.