1import{c as q,u as $,r as b,F as c,C as e,G as P}from"./index-85vHsyJ2.js";import{u as g,c0 as y,a9 as A,F as w,x as n,bV as E}from"./main-B2dcDIOH.js";import{T as M,a as z,b as f}from"./tabs-Dm0GC7UW.js";import{P as B,F as m}from"./PortalLayout-VZrXvA-1.js";import{E as U}from"./external-link-97Iiz79J.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const D=q("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),d={pdf:{icon:w,label:"PDF",color:"text-red-400",bg:"from-red-500/20 to-rose-600/20",border:"border-red-400/40"},video:{icon:A,label:"ÎίνÏεο",color:"text-blue-400",bg:"from-blue-500/20 to-cyan-600/20",border:"border-blue-400/40"},presentation:{icon:D,label:"ΠαÏÎ¿Ï ÏιάÏειÏ",color:"text-amber-400",bg:"from-amber-500/20 to-orange-600/20",border:"border-amber-400/40"},audio:{icon:y,label:"ÎÏοÏ",color:"text-emerald-400",bg:"from-emerald-500/20 to-teal-600/20",border:"border-emerald-400/40"},other:{icon:m,label:"Îλλο",color:"text-violet-400",bg:"from-violet-500/20 to-purple-600/20",border:"border-violet-400/40"}},v="graduate-materials",V="https://upagfkqpdihpdcpjrkzt.supabase.co",j={"pdf-documents":"pdf",presentations:"presentation","audio-meditations":"audio",videos:"video","relaxation-exercises":"other",other:"other"};function I(o){let t=o.replace(/\.[^.]+$/,"");return t=t.replace(/\s*\(\d+\)\s*$/,""),t=t.replace(/[_-]/g," "),t.trim()}const Q=()=>{const o=$(),[t,N]=b.useState("all"),{data:x,isLoading:k}=g({queryKey:["graduate-materials"],queryFn:async()=>{const{data:a,error:r}=await c.from("graduate_materials").select("*").eq("is_active",!0).order("created_at",{ascending:!1});if(r)throw r;return a}}),{data:C,isLoading:_}=g({queryKey:["graduate-materials-bucket"],queryFn:async()=>{const a=Object.keys(j),r=[];for(const s of a){const{data:u,error:L}=await c.storage.from(v).list(s,{limit:100,sortBy:{column:"created_at",order:"desc"}});if(!(L||!u))for(const l of u){if(l.name===".keep"||l.name.endsWith("/")||!l.name.includes("."))continue;const h=`${s}/${l.name}`,T=`${V}/storage/v1/object/public/${v}/${h}`;r.push({id:`bucket-${h}`,title:I(l.name),description:null,category:j[s]||"other",file_url:T,thumbnail_url:null,created_at:l.created_at||new Date().toISOString(),is_active:!0})}}return r}}),p=(()=>{const a=new Set((x||[]).map(s=>s.file_url)),r=(C||[]).filter(s=>!a.has(s.file_url));return[...x||[],...r]})();b.useEffect(()=>{const a=c.channel("graduate-materials-changes").on("postgres_changes",{event:"*",schema:"public",table:"graduate_materials"},()=>{o.invalidateQueries({queryKey:["graduate-materials"]})}).subscribe();return()=>{c.removeChannel(a)}},[o]);const F=k&&_,i=t==="all"?p:p.filter(a=>a.category===t),S=a=>{const r=a.toLowerCase();return r.includes("youtube")||r.includes("vimeo")||r.endsWith(".mp4")||r.endsWith(".webm")};return e.jsx(B,{activeTab:"materials",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsxs("div",{className:"inline-flex items-center gap-3 mb-4",children:[e.jsx(m,{className:"h-8 w-8",style:{color:"var(--portal-teal)"}}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",style:{fontFamily:"'Fraunces', Georgia, serif",color:"var(--portal-text)"},children:"Î¥Î»Î¹ÎºÏ ÎÏοÏοίÏÏν"})]}),e.jsx("p",{className:"text-lg max-w-2xl mx-auto",style:{color:"var(--portal-text-2)"},children:"ΧαλάÏÏÏη, διαλογιÏμοί, ÏαÏÎ¿Ï ÏιάÏÎµÎ¹Ï ÎºÎ±Î¹ άλλα Ï Î»Î¹ÎºÎ¬ αÏοκλειÏÏικά για αÏοÏοίÏÎ¿Ï Ï."})]}),e.jsx("div",{className:"flex justify-center mb-8",children:e.jsx(M,{value:t,onValueChange:a=>N(a),children:e.jsxs(z,{className:"p-1 flex-wrap h-auto gap-1",style:{backgroundColor:"var(--portal-surface)",border:"1px solid var(--portal-border)"},children:[e.jsx(f,{value:"all",className:"text-sm",children:"Îλα"}),Object.entries(d).map(([a,r])=>e.jsx(f,{value:a,className:"text-sm",children:r.label},a))]})})}),F?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(a=>e.jsx("div",{className:"rounded-2xl h-48 animate-pulse",style:{backgroundColor:"var(--portal-surface)"}},a))}):i&&i.length>0?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:i.map(a=>{const r=d[a.category]||d.other,s=r.icon;return e.jsx("div",{className:"rounded-2xl border transition-all duration-300 hover:shadow-lg hover:scale-[1.02] group flex flex-col",style:{backgroundColor:"var(--portal-surface)",borderColor:"var(--portal-border)",boxShadow:"var(--portal-sh
6adow)"},children:e.jsxs("div",{className:"p-6 flex flex-col h-full",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center shrink-0",style:{backgroundColor:"var(--portal-canvas)"},children:e.jsx(s,{className:`h-5 w-5 ${r.color}`})}),e.jsx("div",{className:"min-w-0",children:e.jsx("h3",{className:"text-lg font-bold leading-tight line-clamp-2",style:{color:"var(--portal-text)"},children:a.title})})]}),a.description&&e.jsx("p",{className:"text-sm leading-relaxed mb-4 line-clamp-3 flex-1",style:{color:"var(--portal-text-2)"},children:a.description}),e.jsx(P,{onClick:()=>window.open(a.file_url,"_blank"),className:"mt-auto font-bold rounded-xl w-full",style:{backgroundColor:"var(--portal-teal)",color:"#fff"},children:S(a.file_url)?e.jsxs(e.Fragment,{children:[e.jsx(U,{className:"mr-2 h-4 w-4"}),"Î Ïοβολή"]}):e.jsxs(e.Fragment,{children:[e.jsx(n,{className:"mr-2 h-4 w-4"}),"ÎήÏη"]})})]})},a.id)})}):e.jsxs("div",{className:"text-center py-16",children:[e.jsx(m,{className:"h-16 w-16 mx-auto mb-4",style:{color:"var(--portal-text-3)"}}),e.jsx("p",{className:"text-lg",style:{color:"var(--portal-text-2)"},children:"Îεν Ï
ÏάÏÏει διαθÎÏιμο Ï
Î»Î¹ÎºÏ Î±ÎºÏμα."}),e.jsx("p",{className:"text-sm mt-2",style:{color:"var(--portal-text-3)"},children:"ΣÏνÏομα θα ÏÏοÏθÎÏοÏ
με Ï
Î»Î¹ÎºÏ ÎµÎ´Ï!"})]}),e.jsxs("div",{className:"mt-16 pt-10 border-t",style:{borderColor:"var(--portal-border)"},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx(E,{className:"h-6 w-6",style:{color:"var(--portal-teal)"}}),e.jsx("h2",{className:"text-2xl font-bold",style:{fontFamily:"'Fraunces', Georgia, serif",color:"var(--portal-text)"},children:"Î¥Î»Î¹ÎºÏ Î³Î¹Î± ÏίλοÏ
Ï"})]}),e.jsx("p",{className:"mb-8 text-base",style:{color:"var(--portal-text-2)"},children:"ÎοιÏάÏοÏ
Ïη ÎÎθοδο Silva με ανθÏÏÏοÏ
Ï ÏοÏ
αγαÏάÏ."}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",children:[e.jsxs("div",{className:"rounded-2xl border p-6 flex flex-col gap-4",style:{backgroundColor:"var(--portal-surface)",borderColor:"var(--portal-border)",boxShadow:"var(--portal-shadow)"},children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center bg-red-50",children:e.jsx(w,{className:"h-5 w-5 text-red-500"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-base",style:{color:"var(--portal-text)"},children:"ÎιÏαγÏγή ÏÏη ÎÎθοδο Silva"}),e.jsx("p",{className:"text-sm",style:{color:"var(--portal-text-3)"},children:"PDF · ÎαÏάλληλο για αÏÏάÏιοÏ
Ï"})]})]}),e.jsx("p",{className:"text-sm leading-relaxed",style:{color:"var(--portal-text-2)"},children:"ÎÎ½Î±Ï ÏÏνÏÎ¿Î¼Î¿Ï Î¿Î´Î·Î³ÏÏ ÏοÏ
εξηγεί Ïι είναι η ÎÎÎ¸Î¿Î´Î¿Ï Silva, ÏÏÏ Î»ÎµÎ¹ÏοÏ
Ïγεί και Ïοια αÏοÏελÎÏμαÏα ÏεÏιμÎνει κανείÏ. ÎÎ´Î±Î½Î¹ÎºÏ Î³Î¹Î± να ÏÏÎµÎ¯Î»ÎµÎ¹Ï Ïε ÏίλοÏ
Ï ÏοÏ
δεν ξÎÏοÏ
ν ÏίÏοÏα για Ïη μÎθοδο."}),e.jsxs("a",{href:"https://upagfkqpdihpdcpjrkzt.supabase.co/storage/v1/object/public/graduate-materials/pdf-documents/eisagogi-silva.pdf",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-semibold text-white mt-auto w-fit",style:{backgroundColor:"var(--portal-teal)"},children:[e.jsx(n,{className:"h-4 w-4"}),"ÎαÏÎβαÏε Ïο PDF"]})]}),e.jsxs("div",{className:"rounded-2xl border p-6 flex flex-col gap-4",style:{backgroundColor:"var(--portal-surface)",borderColor:"var(--portal-border)",boxShadow:"var(--portal-shadow)"},children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center bg-emerald-50",children:e.jsx(y,{className:"h-5 w-5 text-emerald-600"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-base",style:{color:"var(--portal-text)"},children:"ÎιÏαγÏγικÏÏ ÎιαλογιÏμÏÏ ÎλÏα"}),e.jsx("p",{className:"text-sm",style:{color:"var(--portal-text-3)"},children:"Audio · ~10 λεÏÏά"})]})]}),e.jsx("p",{className:"text-sm leading-relaxed",style:{color:"var(--portal-text-2)"},children:"Îια ÏÏνÏομη καθοδηγοÏμενη ÏαλάÏÏÏη για να βιÏÏει κάÏÎ¿Î¹Î¿Ï Ïο εÏίÏεδο άλÏα για ÏÏÏÏη ÏοÏά. Îδανική ειÏαγÏγή ÏÏη ÎÎθοδο."}),e.jsx("audio",{controls:!0,className:"w-full rounded-lg",style:{accentColor:"var(--portal-teal)"},src:"https://upagfkqpdihpdcpjrkzt.supabase.co/storage/v1/object/public/graduate-materials/audio-meditations/alpha-intro.mp3",children:"Î browser ÏοÏ
δεν Ï
ÏοÏÏηÏίζει audio."}),e.jsxs("a",{href:"https://upagfkqpdihpdcpjrkzt.supabase.co/storage/v1/object/public/graduate-materials/audio-meditations/alpha-intro.mp3",download:!0,className:"inline-flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-semibold mt-auto w-fit",style:{backgroundColor:"rgba(44,181,150,0.12)",color:"var(--portal-teal)"},children:[e.jsx(n,{className:"h-4 w-4"}),"ÎαÏÎβαÏε Ïο Audio"]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsxs("a",{href:`https://wa.me/?text=${encodeURIComponent("Îεια! ÎÎÎ»Ï Î½Î± ÏοÏ
ÏÏ
ÏÏήÏÏ Ïη ÎÎθοδο Silva â Îνα ÏÏÏγÏαμμα εκÏαίδεÏ
ÏÎ·Ï Î½Î¿Ï
ÏοÏ
μοÏ
άλλαξε Ïη ζÏή. ÎÏει εκÏαιδεÏÏει 12 εκαÏομμÏÏια ανθÏÏÏοÏ
Ï ÏαγκοÏμίÏÏ. Îάθε ÏεÏιÏÏÏÏεÏα: https://silva.gr")}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-3 rounded-xl font-semibold text-white text-sm transition-opacity hover:opacity-90",style:{backgroundColor:"#25D366"},children:[e.jsx("svg",{viewBox:"0 0 24 24",className:"h-4 w-4 fill-white",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.
6198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),"ΣÏείλε ÏÏο WhatsApp"]}),e.jsxs("a",{href:`viber://forward?text=${encodeURIComponent("Îεια! ÎÎÎ»Ï Î½Î± ÏοÏ
ÏÏ
ÏÏήÏÏ Ïη ÎÎθοδο Silva â Îνα ÏÏÏγÏαμμα εκÏαίδεÏ
ÏÎ·Ï Î½Î¿Ï
ÏοÏ
μοÏ
άλλαξε Ïη ζÏή. Îάθε ÏεÏιÏÏÏÏεÏα: https://silva.gr")}`,className:"inline-flex items-center gap-2 px-5 py-3 rounded-xl font-semibold text-white text-sm transition-opacity hover:opacity-90",style:{backgroundColor:"#7360F2"},children:[e.jsx("svg",{viewBox:"0 0 24 24",className:"h-4 w-4 fill-white",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.4 0C5.6.3 1.1 4.9.7 10.7c-.2 3.2.6 6.1 2.4 8.4v3.6c0 .3.2.5.5.5h.1l3.5-1.3c1.3.6 2.8.9 4.3.9 6 0 10.9-4.9 10.9-10.9C22.4 5.1 17.4.1 11.4 0zm5.1 16.6c-.2.6-.9 1.2-1.7 1.4-.4.1-.9.2-2.4-.5-2-.9-3.7-2.7-4.7-4.3-.4-.7-.8-1.5-.8-2.4v-.1c0-.7.3-1.3.7-1.8.3-.3.6-.5 1-.5h.4c.3 0 .6.1.8.6.3.7.9 2.3.9 2.4.1.2.1.4 0 .6-.1.2-.2.3-.3.4l-.4.4c-.2.2-.2.2-.1.4.4.7 1 1.3 1.6 1.8.5.4 1 .7 1.6.9.2.1.4.1.5-.1l.3-.4c.2-.2.4-.3.6-.2.2.1 1.5.7 1.8.9.2.1.3.2.4.3.1.3 0 .8-.2 1.2z"})}),"ΣÏείλε ÏÏο Viber"]})]})]})]})})};export{Q 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.