1import{r as N,j as e}from"./ui-BgAZunKE.js";import{u as v}from"./query-DfKp04n6.js";import{b as y,S as w,G as d,av as x,A as g,aw as p,p as u,i as _,aa as b,a4 as k,ax as q,ay as C,T as S,af as A,a2 as T,ab as z,a6 as U,K as E}from"./index-CD3Ytjl1.js";import{C as c,a as o}from"./card-B1ZPkgRX.js";import"./supabase-Cv5z-ElN.js";import"./vendor-BPxC6GVa.js";const I={Rocket:x,Users:U,DollarSign:z,Share2:T,BarChart3:A,CheckCircle:p,ArrowLeft:g,MessageCircle:u,TrendingUp:S,Zap:C,Shield:q,Gift:k,Star:b},O=()=>{const{dir:j}=y(),{data:i}=v({queryKey:["affiliate_page_settings"],queryFn:async()=>{const{data:a,error:t}=await E.from("affiliate_page_settings").select("*").eq("is_active",!0).limit(1).maybeSingle();if(t)throw t;return a}});N.useEffect(()=>{window.scrollTo(0,0)},[]);const s=i?.content||{},r=s.hero||{},l=s.final_cta||{},m=i?.clapital_url||"https://partners.mahmoudmasri.com",f=i?.whatsapp_inquiry_url||"#",h=a=>I[a]||b;return e.jsxs("main",{className:"bg-background text-foreground overflow-x-hidden",dir:j,children:[e.jsx(w,{pageType:"partners",title:"Ø¨Ø±ÙØ§Ù
ج Ø§ÙØ´Ø±Ø§ÙØ© ÙØ§ÙعÙ
ÙÙØ© 30%Ø Ø£ÙØ§Ø¯ÙÙ
ÙØ© Ù
ØÙ
ÙØ¯ Ù
صرÙ",description:"Ø§ÙØ¶Ù
ÙØ¨Ø±ÙاÙ
ج Ø§ÙØ´Ø±Ø§ÙØ© Ù
ع Ø£ÙØ§Ø¯ÙÙ
ÙØ© Ù
ØÙ
ÙØ¯ Ù
ØµØ±Ù ÙØ§Ø±Ø¨Ø عÙ
ÙÙØ© 30% عÙÙ ÙÙ Ø¨ÙØ¹Ø© عبر Ø±Ø§Ø¨Ø·Ù Ø§ÙØ®Ø§ØµØ بدÙ٠رأس Ù
ا٠أ٠خبرة Ø³Ø§Ø¨ÙØ©.",canonical:"https://mahmoudmasri.com/partners",ogType:"website",faqs:Array.isArray(s.faqs)?s.faqs.map(a=>({question:String(a?.question??a?.q??"").trim(),answer:String(a?.answer??a?.a??"").trim()})).filter(a=>a.question&&a.answer):void 0}),e.jsxs("section",{className:"relative min-h-[90vh] flex items-center justify-center section-padding overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 gradient-bg-hero"}),e.jsx("div",{className:"absolute inset-0 bg-grid-pattern opacity-10"}),e.jsx("div",{className:"absolute top-1/3 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[700px] h-[500px] bg-primary/10 rounded-full blur-[120px] pointer-events-none"}),e.jsxs("div",{className:"container max-w-4xl mx-auto text-center relative z-10",children:[e.jsx("span",{className:"inline-block px-5 py-2 rounded-full text-sm font-bold border border-primary/30 bg-primary/10 text-primary mb-8",children:r.badge||"Ø¨Ø±ÙØ§Ù
ج Ø§ÙØªØ³ÙÙÙ Ø¨Ø§ÙØ¹Ù
ÙÙØ©"}),e.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-7xl font-black leading-tight mb-6",children:[e.jsxs("span",{className:"text-foreground",children:[r.title_1||"اربØ"," "]}),e.jsx("span",{className:"gradient-gold-text",children:r.title_highlight||"30%"}),e.jsxs("span",{className:"text-foreground",children:[" ",r.title_2||"عÙÙ ÙÙ Ø¨ÙØ¹Ø©"]}),e.jsx("br",{}),e.jsx("span",{className:"gradient-text",children:r.title_3||"بدÙ٠رأس Ù
اÙ"})]}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto mb-10 leading-relaxed",children:r.subtitle||""}),e.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer",children:e.jsxs(d,{size:"lg",className:"btn-gold text-xl px-12 py-7 rounded-2xl font-black gap-3 shadow-2xl",children:[e.jsx(x,{className:"w-6 h-6"}),r.cta_text||"سجÙÙ Ø§ÙØ¢Ù Ù
جاÙÙØ§"]})}),e.jsx("p",{className:"text-muted-foreground/60 text-sm mt-6",children:r.footer_text||""})]})]}),s.video?.visible&&s.video?.url&&e.jsx("section",{className:"section-padding relative bg-secondary/20",children:e.jsxs("div",{className:"container max-w-4xl mx-auto text-center",children:[s.video.title_above&&e.jsx("h2",{className:"section-heading mb-10",children:e.jsx("span",{className:"gradient-text",children:s.video.title_above})}),e.jsx("div",{className:"relative rounded-2xl overflow-hidden border border-border/50 aspect-video",children:e.jsx("iframe",{src:s.video.url.replace("watch?v=","embed/").replace("youtu.be/","www.youtube.com/embed/"),className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Affiliate video"})}),s.video.title_below&&e.jsx("p",{className:"text-lg text-muted-foreground mt-6 leading-relaxed",children:s.video.title_below})]})}),(s.steps||[]).length>0&&e.jsx("section",{className:"section-padding relative",children:e.jsxs("div",{className:"container max-w-5xl mx-auto",children:[e.jsx("h2",{className:"section-heading mb-4",children:e.jsx("span",{className:"gradient-text",children:s.steps_title||""})}),e.jsx("p",{className:"section-subheading mb-16",children:s.steps_
1subtitle||""}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:(s.steps||[]).map((a,t)=>{const n=h(a.icon);return e.jsx("div",{className:"relative group",children:e.jsx(c,{className:"glass-card border-border/50 hover:border-primary/40 transition-all duration-300 h-full",children:e.jsxs(o,{className:"p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-primary/15 flex items-center justify-center mx-auto mb-6 group-hover:scale-110 transition-transform",children:e.jsx(n,{className:"w-8 h-8 text-primary"})}),e.jsx("div",{className:"text-5xl font-black text-primary/20 mb-3",children:t+1}),e.jsx("h3",{className:"text-xl font-bold text-foreground mb-3",children:a.title}),e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:a.desc})]})})},t)})})]})}),(s.benefits||[]).length>0&&e.jsx("section",{className:"section-padding relative bg-secondary/20",children:e.jsxs("div",{className:"container max-w-6xl mx-auto",children:[e.jsx("h2",{className:"section-heading mb-4",children:e.jsx("span",{className:"gradient-text",children:s.benefits_title||""})}),e.jsx("p",{className:"section-subheading mb-16",children:s.benefits_subtitle||""}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:(s.benefits||[]).map((a,t)=>{const n=h(a.icon);return e.jsx(c,{className:"glass-card border-border/50 hover:border-primary/30 transition-all duration-300",children:e.jsx(o,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0",children:e.jsx(n,{className:"w-6 h-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-foreground mb-1",children:a.title}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:a.desc})]})]})})},t)})})]})}),(s.earnings||[]).length>0&&e.jsx("section",{className:"section-padding relative",children:e.jsxs("div",{className:"container max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"section-heading mb-4",children:e.jsx("span",{className:"gradient-text",children:s.earnings_title||""})}),e.jsx("p",{className:"section-subheading mb-12",children:s.earnings_subtitle||""}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:(s.earnings||[]).map((a,t)=>e.jsx(c,{className:"glass-card border-border/50 hover:border-primary/30 transition-all",children:e.jsxs(o,{className:"p-6 flex items-center justify-between",children:[e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:"عدد اÙÙ
Ø¨ÙØ¹Ø§Øª"}),e.jsx("p",{className:"text-2xl font-black text-foreground",children:a.sales})]}),e.jsx(g,{className:"w-5 h-5 text-primary/50 rotate-180"}),e.jsxs("div",{className:"text-left",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:"أرباØÙ Ø§ÙØ´ÙØ±ÙØ©"}),e.jsx("p",{className:"text-2xl font-black gradient-gold-text",children:a.earning})]})]})},t))})]})}),(s.stats||[]).length>0&&e.jsx("section",{className:"section-padding relative bg-secondary/20",children:e.jsxs("div",{className:"container max-w-4xl mx-auto text-center",children:[e.jsx("h2",{className:"section-heading mb-12",children:e.jsx("span",{className:"gradient-text",children:s.stats_title||""})}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:(s.stats||[]).map((a,t)=>e.jsxs("div",{className:"glass-card rounded-2xl p-6 border border-border/50",children:[e.jsx("p",{className:"text-3xl md:text-4xl font-black gradient-gold-text mb-2",children:a.val}),e.jsx("p",{className:"text-muted-foreground text-sm",children:a.label})]},t))})]})}),(s.faqs||[]).length>0&&e.jsx("section",{className:"section-padding relative",children:e.jsxs("div",{className:"container max-w-3xl mx-auto",children:[e.jsx("h2",{className:"section-heading mb-12",children:e.jsx("span",{className:"gradient-text",children:s.faqs_title||""})}),(s.faqs||[]).map((a,t)=>e.jsxs("div",{className:"mb-6 glass-card rounded-2xl p-6 border border-border/50",children:[e.jsxs("h3",{className:"text-lg font-bold text-foreground mb-2 flex items-center gap-2",children:[e.jsx(p,{className:"w-5 h-5 text-primary flex-shrink-0"}),a.q]}),e.jsx("p",{className:"text-muted-foreground leading-relaxed mr-7",children:a.a})]},t))]})}),e.jsxs("section",{className:"section-padding relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 gradient-bg-hero"}),e.jsx("div",{className:"absolute inset-0 bg-grid-pattern opacity-15"}),e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[400px] bg-primary/10 rounded-full blur-[100px] pointer-events-none"}),e.jsxs("div",{className:"container max-w-4xl mx-auto text-center relative z-10",children:[e.jsxs("h2",{className:"text-4xl md:text-6xl font-black leading-tight mb-6",children:[e.jsxs("span",{className:"text-foreground",children:[l.title_1||""," "]}),e.jsx("span",{className:"gradient-gold-text",children:l.title_highlight||""}),e.jsx("br",{}),e.jsx("span",{className:"gradient-text",children:l.title_2||""})]}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto mb-10 leading-relaxed",children:l.subt
1itle||""}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[e.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer",children:e.jsxs(d,{size:"lg",className:"btn-gold text-xl px-12 py-7 rounded-2xl font-black gap-3 shadow-2xl",children:[e.jsx(x,{className:"w-6 h-6"}),l.cta_text||"سجÙÙ ÙÙ
سÙÙÙ Ø§ÙØ¢Ù"]})}),e.jsx("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:e.jsxs(d,{size:"lg",variant:"outline",className:"text-lg px-8 py-7 rounded-2xl border-primary/40 text-primary hover:bg-primary/10 font-bold gap-2",children:[e.jsx(u,{className:"w-5 h-5"}),l.secondary_cta_text||"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§"]})})]}),e.jsx("p",{className:"text-muted-foreground/60 text-sm mt-8",children:l.footer_text||""})]})]}),e.jsx(_,{})]})};export{O 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.