1import{r as o,j as e}from"./ui-BgAZunKE.js";import{a0 as g,q as j,a as v,r as m,a6 as N,B as y,az as w,aA as k,aO as _,aj as x,aI as I,aP as T,aQ as S,aR as E,m as z,aS as L,aH as R}from"./index-CD3Ytjl1.js";import"./supabase-Cv5z-ElN.js";import"./query-DfKp04n6.js";import"./vendor-BPxC6GVa.js";const B={facebook:R,instagram:L,linkedin:z,twitter:E,youtube:S,tiktok:T,telegram:I,website:x},C=(s,r)=>{const[t,l]=o.useState(0);return o.useEffect(()=>{if(!r||s===0)return;let n=0;const d=s/1800*16,a=setInterval(()=>{n+=d,n>=s?(l(s),clearInterval(a)):l(Math.floor(n))},16);return()=>clearInterval(a)},[s,r]),t},F=({value:s,label:r,icon:t,trigger:l})=>{const n=C(s,l);return e.jsxs("div",{className:"glass-card neon-border rounded-2xl p-6 text-center flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/20 flex items-center justify-center",children:e.jsx(t,{className:"w-6 h-6 text-primary"})}),e.jsxs("div",{className:"text-4xl font-black gradient-text",children:[n.toLocaleString("ar-EG"),"+"]}),e.jsx("div",{className:"text-muted-foreground text-sm font-medium",children:r})]})},O={facebook:"Facebook",instagram:"Instagram",linkedin:"LinkedIn",twitter:"Twitter / X",youtube:"YouTube",tiktok:"TikTok",telegram:"Telegram",website:"اÙÙ
ÙÙØ¹ Ø§ÙØ¥ÙÙØªØ±ÙÙÙ"},P=()=>{const{data:s=[]}=_();return s.length?e.jsx("div",{className:"flex justify-center gap-3 mt-4",children:s.map(r=>{const t=B[r.platform]||x,n=`Ù
ØÙ
ÙØ¯ Ù
صر٠عÙÙ ${O[r.platform]||r.platform||"اÙÙ
ÙÙØ¹"}`;return e.jsxs("a",{href:r.url,target:"_blank",rel:"noopener noreferrer","aria-label":n,title:n,className:"w-10 h-10 rounded-xl bg-muted/50 border border-border flex items-center justify-center text-muted-foreground hover:text-primary hover:border-primary/30 hover:bg-primary/10 transition-all",children:[e.jsx(t,{className:"w-5 h-5","aria-hidden":"true"}),e.jsx("span",{className:"sr-only",children:n})]},r.id)})}):null},H=()=>{const{data:s}=g(),{data:r={}}=j("trainer_profile",s?.id),{t}=v(),l=o.useRef(null),[n,d]=o.useState(!1);o.useEffect(()=>{const i=new IntersectionObserver(([h])=>{h.isIntersecting&&d(!0)},{threshold:.3});return l.current&&i.observe(l.current),()=>i.disconnect()},[]);const a=s||{name:"Ù
ØÙ
ÙØ¯ Ù
صرÙ",title:"Ø®Ø¨ÙØ± Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ§ÙØªØ¯Ø±ÙØ¨ Ø§ÙØªÙÙÙ",bio:"Ù
درب ÙÙ
ستشار ÙÙ Ù
Ø¬Ø§Ù Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠Ù
ع Ø£ÙØ«Ø± Ù
Ù 5 سÙÙØ§Øª Ù
Ù Ø§ÙØ®Ø¨Ø±Ø©.",students_count:2500,workshops_count:150,cities_count:15,projects_count:80,photo_url:null},c=m(a,"name",r),u=m(a,"title",r),p=m(a,"bio",r),f=[{value:a.students_count,label:t("trainer.stat.students"),icon:N},{value:a.workshops_count,label:t("trainer.stat.workshops"),icon:y},{value:a.cities_count,label:t("trainer.stat.cities"),icon:w},{value:a.projects_count,label:t("trainer.stat.projects"),icon:k}],b=[t("trainer.tags.prompt"),t("trainer.tags.certified"),t("trainer.tags.consultant")];return e.jsxs("section",{id:"trainer",className:"section-padding relative overflow-hidden",ref:l,children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/5 via-transparent to-accent/5 pointer-events-none"}),e.jsxs("div",{className:"container max-w-6xl mx-auto relative z-10",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("span",{className:"text-primary font-bold text-sm uppercase tracking-widest mb-3 block",children:t("trainer.subtitle")}),e.jsxs("h2",{className:"section-heading",children:[t("trainer.heading")," ",e.jsx("span",{className:"gradient-text",children:t("trainer.heading_highlight")})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center mb-16",children:[e.jsxs("div",{className:"flex flex-col items-center order-1 md:order-2 gap-4",children:[e.jsxs("div",{className:"relative w-72 h-72 md:w-80 md:h-80",children:[e.jsx("div",{className:"absolute inset-0 rounded-3xl bg-gradient-to-br from-primary/30 to-accent/20 blur-xl"}),a.photo_url?e.jsx("img",{src:a.photo_url,alt:c,className:"relative z-10 w-full h-full object-cover rounded-3xl neon-border",loading:"lazy"}):e.jsxs("div",{className:"relative z-10 w-full h-full rounded-3xl neon-border glass-card flex flex-col items-center justify-center gap-4",children:[e.jsx("div",{className:"w-24 h-24 rounded-full bg-primary/20 flex items-center justify-center",children:e.jsx("span",{className:"text-4xl font-black gradient-text",children:c.charAt(0)})}),e.jsxs("div",{className:"text-center px-6",children:[e.jsx("p",{className:"font-bold text-foreground text-xl",children:c}),e.jsx("p",{className:"text-primary text-sm mt-1",children:u})]})]})]}),e.jsx(P,{})]}),e.jsxs("div",{className:"order-2 md:order-1",children:[e.jsx("p",{className:"text-3xl font-black text-foreground mb-2",children:c}),e.jsx("p",{className:"text-primary font-semibold mb-6",children:u}),e.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg whitespace-pre-line",children:p}),e.jsx("div",{className:"flex flex-wrap gap-3 mt-8",children:b.map(i=>e.jsx("span",{className:"px-4 py-2 rounded-full bg-primary/10 border border-primary/20 text-primary text-sm font-medium",children:i},i))})]})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:f.map(i=>e.jsx(F,{value:i.value,label:i.label,icon:i.icon,trigger:n},i.label))})]})]})};export{H 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.