1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6051],{56051:function(e,r,t){"use strict";t.d(r,{z:function(){return et}});var i=t(85893),o=t(67294),n=t(41664),a=t.n(n),s=t(55264),l=t(15928),d=t(42020),c=t(71209),f=t(9638),m=t(90734);let p=(0,t(31134).Z)("phone-call",[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var u=t(99331),g=t(23346),h=t(15452),x=t(41653),b=t(72278),y=t(62190),S=t(53645),j=t(33049);new Date(Date.now()+864e5).toISOString(),new Date(Date.now()-1728e5).toISOString();let v=[{id:"mod-1",threadId:"thread-99",channelSlug:"sports-sponsorship",threadTitle:"Unverified sponsorship agency charging registration fees",authorName:"Rohan Sharma",reportedReason:"Suspected spam/unverified claim",reportedAt:new Date().toISOString(),status:"PENDING"}],A=new Map;async function R(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",i="guest";try{var o,n,a;let{data:e}=await j.supabase.auth.getSession();t=(null==e?void 0:null===(o=e.session)||void 0===o?void 0:o.access_token)||"",i=(null==e?void 0:null===(a=e.session)||void 0===a?void 0:null===(n=a.user)||void 0===n?void 0:n.id)||"guest"}catch(e){}let s="".concat(i,":").concat(e),l=A.get(s);if(!r&&l&&Date.now()-l.timestamp<6e4)return{success:!0,data:l.data};try{let r=null,i=await fetch("/api/community/partner-profile?userId=".concat(encodeURIComponent(e||"")),{headers:t?{Authorization:"Bearer ".concat(t)}:{}});if(i.ok){let e=await i.json().catch(()=>null);r=(null==e?void 0:e.success)?e.data:null}else i.status;if(r&&r.editorial_profile){let e=r.editorial_profile,t={userId:r.id,fullName:r.full_name||"Verified Partner",email:r.email||"",phone:r.phone_number||"",role:r.role||"EditorialPartner",primaryRole:e.primaryRole||"Sports Journalist",organization:e.organization||"",designation:e.designation||"",experienceYears:e.experienceYears||0,expertiseBeats:e.expertiseBeats||[],portfolioUrl:e.portfolioUrl||"",linkedinUrl:e.linkedinUrl||"",twitterUrl:e.twitterUrl||"",instagramUrl:e.instagramUrl||"",sampleArticleUrl:e.sampleArticleUrl||"",bioSummary:e.bioSummary||"",verificationDoc:e.verificationDoc||"",status:e.status||"APPROVED",avatarUrl:r.profile_image_url||"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150",consultationRate:e.consultationRate||1499,consultationEnabled:!1!==e.consultationEnabled};return A.set(s,{data:t,timestamp:Date.now()}),{success:!0,data:t}}return{success:!1,error:"Editorial Partner profile not found."}}catch(r){let e=r instanceof Error?r.message:String(r);return{success:!1,error:"Failed to fetch partner profile: ".concat(e)}}}async function C(e){try{return{success:!0,data:v}}catch(e){return{success:!1,data:v,error:e instanceof Error?e.message:String(e)}}}async function k(e){try{return{success:!0,message:"Booking request sent successfully to ".concat(e.partnerName,"! You will receive a email/SMS confirmation shortly.")}}catch(r){let e=r instanceof Error?r.message:String(r);return{success:!1,message:"",error:"Booking failed: ".concat(e)}}}var I=t(74470),w=t(29161);let z=e=>{let{isOpen:r,onClose:t,partnerId:n,partnerName:a,partnerRole:s="Editorial Partner",consultationRate:l=1499}=e,[d,c]=(0,o.useState)(""),[f,m]=(0,o.useState)(""),[p,u]=(0,o.useState)(""),[g,h]=(0,o.useState)("Career Guidance & Sports Sponsorship"),[x,j]=(0,o.useState)(""),[v,A]=(0,o.useState)("10:00 AM - 10:30 AM"),[R,C]=(0,o.useState)(""),[z,W]=(0,o.useState)(!1),[P,T]=(0,o.useState)(null),[D,_]=(0,o.useState)(null);if(!r)return null;if(!I.Y)return(0,i.jsx)(w.h,{onClose:t,feature:"1-on-1 consultations",expertName:a});let N=async e=>{if(e.preventDefault(),!d||!f||!x){_("Please fill in your name, email, and preferred date.");return}W(!0),_(null);let r=await k({partnerId:n,partnerName:a,userName:d,userEmail:f,userPhone:p,topic:g,preferredDate:x,preferredTimeSlot:v,notes:R});W(!1),r.success?T(r.message):_(r.error||"Failed to request booking.")};return(0,i.jsx)("div",{style:{position:"fixed",inset:0,zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(15, 23, 42, 0.75)",backdropFilter:"blur(8px)",padding:"1rem"},onClick:t,children:(0,i.jsxs)("div",{style:{width:"100%",maxWidth:"540px",background:"#ffffff",borderRadius:"16px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",overflow:"hidden",border:"1px solid #e2e8f0"},onClick:e=>e.stopPropagation(),children:[(0,i.jsxs)("div",{style:{padding:"1.25rem 1.5rem",background:"linear-gradient(135deg, #0f172a 0%, #1e293b 100%)",color:"#ffffff",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.2rem"},children:[(0,i.jsx)(b.Z,{size:16,style:{color:"#f59e0b"}}),(0,i.jsx)("span",{style:{fontSize:"0.75rem",fontWeight:800,color:"#f59e0b",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Verified Advisory Call"})]}),(0,i.jsxs)("h3",{style:{margin:0,fontSize:"1.15rem",fontWeight:800,fontFamily:"Montserrat, sans-serif"},children:["Book 1-on-1 Session with ",a]})]}),(0,i.jsx)("button",{onClick:t,style:{background:"rgba(255,255,255,0.1)",border:"none",color:"#cbd5e1",borderRadius:"50%",width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:(0,i.jsx)(y.Z,{size:18})})]}),(0,i.jsx)("div",{style:{padding:"1.5rem"},children:P?(0,i.jsxs)("div",{style:{textAlign:"center",padding:"1.5rem 1rem"},children:[(0,i.jsx)(S.Z,{size:48,style:{color:"#10b981",margin:"0 auto 1rem"}}),(0,i.jsx)("h4",{style:{fontSize:"1.2rem",fontWeight:800,color:"#0f172a",margin:"0 0 0.5rem"},children:"Booking Request Sent!"}),(0,i.jsx)("p",{style:{fontSize:"0.9rem",color:"#475569",lineHeight:1.5,margin:"0 0 1.5rem"},children:P}),(0,i.jsx)("button",{onClick:t,style:{background:"#2563eb",color:"#ffffff",border:"none",padding:"0.65rem 1.5rem",borderRadius:"8px",fontWeight:700,cursor:"pointer"},children:"Done"})]}):(0,i.jsxs)("form",{onSubmit:N,style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[(0,i.jsxs)("div",{style:{padding:"0.75rem 1rem",background:"#eff6ff",border:"1px solid #bfdbfe",borderRadius:"8px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsx)("span",{style:{fontSize:"0.825rem",fontWeight:700,color:"#1e40af"},children:"30-Minute Consultation Session"}),(0,i.jsxs)("span",{style:{fontSize:"0.95rem",fontWeight:800,color:"#1e3a8a"},children:["â¹",l," / call"]})]}),D&&(0,i.jsxs)("div",{style:{padding:"0.65rem 0.85rem",background:"#fef2f2",border:"1px solid #fecaca",color:"#dc2626",borderRadius:"6px",fontSize:"0.825rem",fontWeight:600},children:["â ï¸ ",D]}),(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem"},children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{style:{display:"block",fontSize:"0.775rem",fontWeight:700,color:"#475569",marginBottom:"0.25rem"},children:"Your Name *"}),(0,i.jsx)("input",{type:"text",required:!0,value:d,onChange:e=>c(e.target.value),placeholder:"e.g. Rahul Verma",style:{width:"100%",padding:"0.55rem 0.75rem",borderRadius:"6px",border:"1px solid #cbd5e1",fontSize:"0.85rem"}})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{style:{display:"block",fontSize:"0.775rem",fontWeight:700,color:"#475569",marginBottom:"0.25rem"},children:"Your Email *"}),(0,i.jsx)("input",{type:"email",required:!0,value:f,onChange:e=>m(e.target.value),placeholder:"[email protected]",style:{width:"100%",padding:"0.55rem 0.75rem",borderRadius:"6px",border:"1px solid #cbd5e1",fontSize:"0.85rem"}})]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{style:{display:"block",fontSize:"0.775rem",fontWeight:700,color:"#475569",marginBottom:"0.25rem"},children:"Phone Number (for WhatsApp reminder)"}),(0,i.jsx)("input",{type:"tel",value:p,onChange:e=>u(e.target.value),placeholder:"+91 98765 43210",style:{width:"100%",padding:"0.55rem 0.75rem",borderRadius:"6px",border:"1px solid #cbd5e1",fontSize:"0.85rem"}})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{style:{display:"block",fontSize:"0.775rem",fontWeight:700,color:"#475569",marginBottom:"0.25rem"},children:"Consultation Topic"}),(0,i.jsxs)("select",{value:g,onChange:e=>h(e.target.value),style:{width:"100%",padding:"0.55rem 0.75rem",borderRadius:"6px",border:"1px solid #cbd5e1",fontSize:"0.85rem",background:"#ffffff"},children:[(0,i.jsx)("option",{value:"Career Guidance & Sports Sponsorship",children:"Career Guidance & Sports Sponsorship"}),(0,i.jsx)("option",{value:"Media Kit Review & PR Outreach",children:"Media Kit Review & PR Outreach"}),(0,i.jsx)("option",{value:"SAI Grants & Policy Consultation",children:"SAI Grants & Policy Consultation"}),(0,i.jsx)("option",{value:"Physiotherapy & High Performance Training",children:"Physiotherapy & High Performance Training"}),(0,i.jsx)("option",{value:"Sports Management Education Advice",children:"Sports Management Education Advice"})]})]}),(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem"},children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{style:{display:"block",fontSize:"0.775rem",fontWeight:700,color:"#475569",marginBottom:"0.25rem"},children:"Preferred Date *"}),(0,i.jsx)("input",{type:"date",required:!0,value:x,onChange:e=>j(e.target.value),style:{width:"100%",padding:"0.55rem 0.75rem",borderRadius:"6px",border:"1px solid #cbd5e1",fontSize:"0.85rem"}})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{style:{display:"block",fontSize:"0.775rem",fontWeight:700,color:"#475569",marginBottom:"0.25rem"},children:"Preferred Slot"}
1),(0,i.jsxs)("select",{value:v,onChange:e=>A(e.target.value),style:{width:"100%",padding:"0.55rem 0.75rem",borderRadius:"6px",border:"1px solid #cbd5e1",fontSize:"0.85rem",background:"#ffffff"},children:[(0,i.jsx)("option",{value:"10:00 AM - 10:30 AM",children:"10:00 AM - 10:30 AM"}),(0,i.jsx)("option",{value:"02:00 PM - 02:30 PM",children:"02:00 PM - 02:30 PM"}),(0,i.jsx)("option",{value:"06:00 PM - 06:30 PM",children:"06:00 PM - 06:30 PM"}),(0,i.jsx)("option",{value:"08:00 PM - 08:30 PM",children:"08:00 PM - 08:30 PM"})]})]})]}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{style:{display:"block",fontSize:"0.775rem",fontWeight:700,color:"#475569",marginBottom:"0.25rem"},children:["Brief Description / Questions for ",a]}),(0,i.jsx)("textarea",{rows:3,value:R,onChange:e=>C(e.target.value),placeholder:"Share any specific questions or goals you'd like to cover during the call...",style:{width:"100%",padding:"0.55rem 0.75rem",borderRadius:"6px",border:"1px solid #cbd5e1",fontSize:"0.85rem",resize:"vertical"}})]}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.75rem",marginTop:"0.5rem"},children:[(0,i.jsx)("button",{type:"button",onClick:t,style:{padding:"0.6rem 1.1rem",borderRadius:"6px",border:"1px solid #cbd5e1",background:"#ffffff",color:"#475569",fontWeight:700,fontSize:"0.85rem",cursor:"pointer"},children:"Cancel"}),(0,i.jsx)("button",{type:"submit",disabled:z,style:{padding:"0.6rem 1.25rem",borderRadius:"6px",border:"none",background:"linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%)",color:"#ffffff",fontWeight:800,fontSize:"0.85rem",cursor:"pointer",boxShadow:"0 2px 6px rgba(37,99,235,0.3)"},children:z?"Sending Request...":"Confirm Call Request â"})]})]})})]})})};var W=t(36428),P=t(33633),T=t(4270),D=t(89176),_=t(37864),N=t(23050),O=t(32413),M=t(58518),E=t(13179),L=t(93136),B=t(54635);let U=e=>{let{profile:r,onProfileUpdated:t}=e,[n,s]=(0,o.useState)("AMAS"),[l,d]=(0,o.useState)([]),[c,f]=(0,o.useState)(!1),[m,g]=(0,o.useState)(null),[x,b]=(0,o.useState)([]),[y,S]=(0,o.useState)(!1!==r.consultationEnabled),[j,v]=(0,o.useState)(r.consultationRate||1499),[A,R]=(0,o.useState)(null);(0,o.useEffect)(()=>{k()},[r.userId]);let k=async()=>{try{let e=await (0,O.S)();if(e.allAmas&&e.allAmas.length>0){let t=(r.fullName||"").toLowerCase().trim(),i=e.allAmas.filter(e=>{if(!t)return!0;let i=(e.amaHostName||"").toLowerCase();return i.includes(t)||t.includes(i)||e.authorId&&String(e.authorId)===String(r.userId)});d(i.length>0?i:e.allAmas)}}catch(e){}let e=await C(r.userId);e.success&&b(e.data)},I=async(e,i)=>{if(confirm('Are you sure you want to delete the AMA session "'.concat(i,'"?')))try{let i=await (0,L.l8)(e,{requestingUserId:r.userId,requestingUserRole:"EDITORIAL_PARTNER",requestingUserEmail:r.email});i.success?(B.l.deleteThread(e),d(r=>r.filter(r=>r.id!==e)),g("â
AMA session deleted successfully."),setTimeout(()=>g(null),4e3),t&&t()):alert(i.error||"Failed to delete AMA session.")}catch(e){alert("Network error while deleting AMA session.")}};return(0,i.jsxs)("div",{style:{marginTop:"2rem",padding:"1.5rem",background:"#0f172a",borderRadius:"16px",border:"1px solid #1e293b",color:"#ffffff"},children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"1.5rem",flexWrap:"wrap",gap:"1rem"},children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.25rem"},children:[(0,i.jsx)("span",{style:{background:"#f59e0b",color:"#0f172a",padding:"0.15rem 0.5rem",borderRadius:"4px",fontSize:"0.7rem",fontWeight:800},children:"PARTNER CONTROL CENTER"}),(0,i.jsxs)("span",{style:{color:"#94a3b8",fontSize:"0.8rem"},children:["⢠",r.fullName]})]}),(0,i.jsx)("h3",{style:{margin:0,fontSize:"1.45rem",fontWeight:800,fontFamily:"Montserrat, sans-serif",color:"#ffffff"},children:"Editorial Partner Management Dashboard"})]}),(0,i.jsxs)("div",{style:{display:"flex",gap:"0.5rem",background:"#1e293b",padding:"0.25rem",borderRadius:"8px"},children:[(0,i.jsxs)("button",{onClick:()=>s("AMAS"),style:{display:"flex",alignItems:"center",gap:"0.35rem",padding:"0.5rem 0.85rem",borderRadius:"6px",border:"none",background:"AMAS"===n?"#2563eb":"transparent",color:"AMAS"===n?"#ffffff"
1:"#94a3b8",fontWeight:700,fontSize:"0.8rem",cursor:"pointer"},children:[(0,i.jsx)(u.Z,{size:14})," Live AMAs (",l.length,")"]}),(0,i.jsxs)("button",{onClick:()=>s("MODERATION"),style:{display:"flex",alignItems:"center",gap:"0.35rem",padding:"0.5rem 0.85rem",borderRadius:"6px",border:"none",background:"MODERATION"===n?"#2563eb":"transparent",color:"MODERATION"===n?"#ffffff":"#94a3b8",fontWeight:700,fontSize:"0.8rem",cursor:"pointer"},children:[(0,i.jsx)(W.Z,{size:14})," Moderation (",x.length,")"]}),(0,i.jsxs)("button",{onClick:()=>s("CONSULTATIONS"),style:{display:"flex",alignItems:"center",gap:"0.35rem",padding:"0.5rem 0.85rem",borderRadius:"6px",border:"none",background:"CONSULTATIONS"===n?"#2563eb":"transparent",color:"CONSULTATIONS"===n?"#ffffff":"#94a3b8",fontWeight:700,fontSize:"0.8rem",cursor:"pointer"},children:[(0,i.jsx)(p,{size:14})," 1-on-1 Calls"]}),(0,i.jsxs)("button",{onClick:()=>s("ANALYTICS"),style:{display:"flex",alignItems:"center",gap:"0.35rem",padding:"0.5rem 0.85rem",borderRadius:"6px",border:"none",background:"ANALYTICS"===n?"#2563eb":"transparent",color:"ANALYTICS"===n?"#ffffff":"#94a3b8",fontWeight:700,fontSize:"0.8rem",cursor:"pointer"},children:[(0,i.jsx)(P.Z,{size:14})," Analytics"]})]})]}),m&&(0,i.jsx)("div",{style:{padding:"0.75rem 1rem",background:"rgba(16, 185, 129, 0.15)",border:"1px solid #10b981",color:"#34d399",borderRadius:"8px",marginBottom:"1.25rem",fontSize:"0.85rem",fontWeight:600},children:m}),"AMAS"===n&&(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"1rem",flexWrap:"wrap",gap:"0.75rem"},children:[(0,i.jsx)("p",{style:{margin:0,fontSize:"0.875rem",color:"#94a3b8"},children:"Schedule and host interactive Q&A sessions for channel subscribers."}),(0,i.jsxs)("button",{onClick:()=>f(!0),style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0.55rem 1.15rem",background:"#f59e0b",color:"#0f172a",border:"none",borderRadius:"8px",fontWeight:800,fontSize:"0.825rem",cursor:"pointer",boxShadow:"0 4px 14px rgba(245, 158, 11, 0.25)"},children:[(0,i.jsx)(T.Z,{size:16})," Schedule Live AMA"]})]}),(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(320px, 1fr))",gap:"1rem"},children:0===l.length?(0,i.jsxs)("div",{style:{gridColumn:"1 / -1",padding:"2.5rem",textAlign:"center",background:"#1e293b",borderRadius:"12px",color:"#94a3b8",border:"1px solid #334155"},children:[(0,i.jsx)(u.Z,{size:36,style:{color:"#f59e0b",margin:"0 auto 0.75rem"}}),(0,i.jsx)("p",{style:{margin:0,fontWeight:700,fontSize:"0.95rem",color:"#ffffff"},children:"No Live Stage AMAs scheduled yet."}),(0,i.jsx)("p",{style:{margin:"0.25rem 0 0",fontSize:"0.825rem",color:"#94a3b8"},children:'Click "+ Schedule Live AMA" above to host an interactive Q&A session.'})]}):l.map(e=>{let r="LIVE"===e.amaStatus;return(0,i.jsxs)("div",{style:{background:"#1e293b",borderRadius:"12px",border:r?"1px solid #f59e0b":"1px solid #334155",padding:"1.25rem",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem"},children:[(0,i.jsxs)("span",{style:{fontSize:"0.7rem",fontWeight:800,color:"#f59e0b",background:"rgba(245, 158, 11, 0.15)",padding:"0.15rem 0.45rem",borderRadius:"4px"},children:["k/",e.categorySlug]}),(0,i.jsx)("span",{style:{fontSize:"0.675rem",fontWeight:800,padding:"0.15rem 0.45rem",borderRadius:"4px",background:r?"rgba(245, 158, 11, 0.25)":"UPCOMING"===e.amaStatus?"rgba(59, 130, 246, 0.2)":"rgba(16, 185, 129, 0.2)",color:r?"#fef3c7":"UPCOMING"===e.amaStatus?"#60a5fa":"#34d399"},children:r?"\uD83D\uDD34 LIVE NOW":"UPCOMING"===e.amaStatus?"\uD83D\uDDD3ï¸ UPCOMING":"\uD83C\uDFC6 COMPLETED"})]}),(0,i.jsx)("h4",{style:{margin:"0 0 0.5rem",fontSize:"1rem",fontWeight:800,lineHeight:1.3,color:"#ffffff"},children:e.title}),(0,i.jsx)("p",{style:{margin:"0 0 0.75rem",fontSize:"0.8rem",color:"#94a3b8",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.body}),(0,i.jsxs)("div",{style:{fontSize:"0.75rem",color:"#cbd5e1",fontWeight:600,marginBottom:"1rem"},children:["\uD83D\uDDD3ï¸ ",(0,M.V)(e.amaStartTime)]})]}),(0,i.jsxs)("div",{style:{borderTop:"1px solid #334155",paddingTop:"0.75rem",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.3rem",fontSize:"0.75rem",color:"#94a3b8"},children:[(0,i.jsx)(D.Z,{size:14,style:{color:"#f59e0b"}})," ",e.upvotesCount," Upvotes"]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[(0,i.jsxs)(a(),{href:"/community/".concat(e.categorySlug,"/").concat(e.slug),style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.4rem 0.75rem",borderRadius:"6px",background:r?"#f59e0b":"#2563eb",color:r?"#0f172a":"#ffffff",fontSize:"0.75rem",fontWeight:800,textDecoration:"none"},children:[(0,i.jsx)(h.Z,{size:13})," ",r?"Join Q&A Stage â":"View Thread â"]}),(0,i.jsx)("button",{type:"button",onClick:()=>I(e.id,e.title),title:"Delete AMA Session",style:{padding:"0.4rem 0.65rem",borderRadius:"6px",border:"1px solid rgba(225, 29, 72, 0.4)",background:"rgba(225, 29, 72, 0.15)",color:"#f43f5e",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease"},children:(0,i.jsx)(_.Z,{size:14})})]})]})]},e.id)})})]}),"MODERATION"===n&&(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{style:{margin:"0 0 1rem",fontSize:"0.875rem",color:"#94a3b8"},children:"Review flagged posts and manage sub-community discussions under your editorial beats."}),0===x.length?(0,i.jsxs)("div",{style:{padding:"2rem",textAlign:"center",background:"#1e293b",borderRadius:"12px",color:"#94a3b8"},children:[(0,i.jsx)(N.Z,{size:32,style:{color:"#10b981",margin:"0 auto 0.5rem"}}),(0,i.jsx)("p",{style:{margin:0,fontWeight:700},children:"No pending moderation flags in your channels."})]}):(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:x.map(e=>(0,i.jsxs)("div",{style:{background:"#1e293b",borderRadius:"10px",border:"1px solid #334155",padding:"1rem",display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"1rem"},children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.25rem"},children:[(0,i.jsx)("span",{style:{fontSize:"0.7rem",fontWeight:800,color:"#ef4444",background:"rgba(239, 68, 68, 0.15)",padding:"0.15rem 0.45rem",borderRadius:"4px"},children:"FLAGGED THREAD"}),(0,i.jsxs)("span",{style:{fontSize:"0.75rem",color:"#94a3b8"},children:["k/",e.channelSlug," ⢠by ",e.authorName]})]}),(0,i.jsx)("h5",{style:{margin:"0 0 0.25rem",fontSize:"0.925rem",fontWeight:700,color:"#ffffff"},children:e.threadTitle}),(0,i.jsxs)("p",{style:{margin:0,fontSize:"0.775rem",color:"#cbd5e1"},children:["Reason: ",(0,i.jsx)("span",{style:{color:"#f87171"},children:e.reportedReason})]})]}),(0,i.jsxs)("div",{style:{display:"flex",gap:"0.5rem"},children:[(0,i.jsx)("button",{style:{padding:"0.4rem 0.75rem",borderRadius:"6px",border:"1px solid #475569",background:"#334155",color:"#ffffff",fontSize:"0.75rem",fontWeight:700,cursor:"pointer"},children:"Dismiss Flag"}),(0,i.jsx)("button",{style:{padding:"0.4rem 0.75rem",borderRadius:"6px",border:"none",background:"#dc2626",color:"#ffffff",fontSize:"0.75rem",fontWeight:700,cursor:"pointer"},children:"Lock Thread"})]})]},e.id))})]}),"CONSULTATIONS"===n&&(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),R("â
Consultation settings saved successfully."),setTimeout(()=>R(null),4e3)},style:{maxWidth:"600px"},children:[(0,i.jsx)("p",{style:{margin:"0 0 1.25rem",fontSize:"0.875rem",color:"#94a3b8"},children:"Allow athletes, young journalists, and sports managers to book 30-min 1-on-1 advisory calls with you."}),A&&(0,i.jsx)("div",{style:{padding:"0.65rem 0.85rem",background:"rgba(16, 185, 129, 0.15)",border:"1px solid #10b981",color:"#34d399",borderRadius:"6px",marginBottom:"1rem",fontSize:"0.825rem",fontWeight:600},children:A}),(0,i.jsxs)("div",{style:{background:"#1e293b",borderRadius:"12px",border:"1px solid #334155",padding:"1.25rem",display:"flex",flexDirection:"column",gap:"1rem"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h5",{style:{margin:"0 0 0.25rem",fontSize:"0.95rem",fontWeight:800,color:"#ffffff"},children:"Enable 1-on-1 Advisory Calls"}),(0,i.jsx)("p",{style:{margin:0,fontSize:"0.775rem",color:"#94a3b8"},children:'Display "Book 1-on-1 Call" button on your public author profile'})]}),(0,i.jsx)("input",{type:"checkbox",checked:y,onChange:e=>S(e.target.checked),style:{width:"20px",height:"20px",cursor:"pointer"}})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{style:{display:"block",fontSize:"0.8rem",fontWeight:700,color:"#cbd5e1",marginBottom:"0.35rem"},children:"Consultation Rate (INR per 30-min session)"}),(0,i.jsx)("input",{type:"number",value:j,onChange:e=>v(Number(e.target.value)),style:{width:"100%",padding:"0.6rem 0.85rem",borderRadius:"6px",border:"1px solid #475569",background:"#0f172a",color:"#ffffff",fontSize:"0.9rem",fontWeight:700}})]}),(0,i.jsx)("button",{type:"submit",style:{alignSelf:"flex-start",padding:"0.6rem 1.25rem",background:"#2563eb",color:"#ffffff",border:"none",borderRadius:"6px",fontWeight:800,fontSize:"0.85rem",cursor:"pointer"},children:"Save Consultation Settings"})]})]}),"ANALYTICS"===n&&(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:"1rem"},children:[(0,i.jsxs)("div",{style:{background:"#1e293b",borderRadius:"12px",padding:"1.25rem",border:"1px solid #334155"},children:[(0,i.jsx)("span",{style:{fontSize:"0.75rem",fontWeight:700,color:"#94a3b8"},children:"Total Thread Impressions"}),(0,i.jsx)("h3",{style:{margin:"0.5rem 0 0",fontSize:"1.75rem",fontWeight:800,color:"#f59e0b"},children:"14,280"})]}),(0,i.jsxs)("div",{style:{background:"#1e293b",borderRadius:"12px",padding:"1.25rem",border:"1px solid #334155"},children:[(0,i.jsx)("span",{style:{fontSize:"0.75rem",fontWeight:700,color:"#94a3b8"},children:"Community Upvotes"}),(0,i.jsx)("h3",{style:{margin:"0.5rem 0 0",fontSize:"1.75rem",fontWeight:800,color:"#34d399"},children:"1,842"})]}),(0,i.jsxs)("div",{style:{background:"#1e293b",borderRadius:"12px",padding:"1.25rem",border:"1px solid #334155"},children:[(0,i.jsx)("span",{style:{fontSize:"0.75rem",fontWeight:700,color:"#94a3b8"},children:"AMA Attendees Reach"}),(0,i.jsx)("h3",{style:{margin:"0.5rem 0 0",fontSize:"1.75rem",fontWeight:800,color:"#60a5fa"},children:"522"})]}),(0,i.jsxs)("div",{style:{background:"#1e293b",borderRadius:"12px",padding:"1.25rem",border:"1px solid #334155"},children:[(0,i.jsx)("span",{style:{fontSize:"0.75rem",fontWeight:700,color:"#94a3b8"},children:"1-on-1 Call Requests"}),(0,i.jsx)("h3",{style:{margin:"0.5rem 0 0",fontSize:"1.75rem",fontWeight:800,color:"#c084fc"},children:"18"})]})]}),(0,i.jsx)(E.t,{isOpen:c,onClose:()=>f(!1),onSuccess:()=>{f(!1),g("\uD83C\uDF89 Live AMA scheduled successfully! Posted to community & saved to PostgreSQL database."),k(),t&&t(),setTimeout(()=>g(null),5e3)},userDefaultName:r.fullName,userDefaultAvatar:r.avatarUrl})]})};var F=t(56330),Z=t.n(F),G=t(83590),H=t(26089),Y=t(1147);let V="kreedon_followed_authors";function q(){try{let e=Y.w.getItem(V);return e?JSON.parse(e):[]}catch(e){return[]}}async function J(e){if(!e)return{success:!1,isFollowing:!1,error:"Author identifier missing"};let r=e.toLowerCase(),t=q(),i=!t.includes(r);try{let e;e=i?Array.from(new Set([...t,r])):t.filter(e=>e!==r),Y.w.setItem(V,JSON.stringify(e))}catch(e){}try{var o;let{data:e}=await j.supabase.auth.getSession(),t=null==e?void 0:null===(o=e.session)||void 0===o?void 0:o.access_token;if(t){let e=await fetch("/api/community/follow-author",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({authorIdOrSlug:r,action:i?"FOLLOW":"UNFOLLOW"})}),o=await e.json().catch(()=>({}));if(e.ok&&o.success)return{success:!0,isFollowing:!!o.isFollowing}}}catch(e){}return{success:!0,isFollowing:i}}var Q=t(78865),K=t(23488),X=t(32089),$=e=>{let{name:r,posts:t,bio:n,imageUrl:a,isVerifiedEditorialPartner:s=!1,primaryRole:l="KreedOn Sports Contributor",expertiseBeats:p=[],websiteUrl:u,linkedinUrl:g,twitterUrl:h,instagramUrl:b}=e,{user:y}=(0,H._e)(),[S,j]=(0,o.useState)(!1),[v,A]=(0,o.useState)(!1),[R,C]=(0,o.useState)("Sign In to Follow Author");(0,o.useEffect)(()=>{r&&j(!!r&&q().includes(r.toLowerCase()))},[r]);let k=async()=>
1{if(!y){C("Sign In to Follow ".concat(r)),A(!0);return}j(!S);let e=await J(r);e.success&&j(e.isFollowing)};return(0,i.jsxs)("div",{className:Z().authorContainer,children:[(0,i.jsxs)("div",{className:Z().authorContainerWrapper,style:{background:"#ffffff",borderRadius:"20px",border:"1px solid #e2e8f0",boxShadow:"0 10px 30px rgba(0,0,0,0.05)",padding:"2rem 2.5rem",marginBottom:"2.5rem"},children:[(0,i.jsx)("div",{className:Z().authorImageContainer,children:(0,i.jsx)("img",{src:a||"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150",alt:r||"Author",className:Z().authorImage,style:{width:"160px",height:"160px",borderRadius:"20px",objectFit:"cover",border:"4px solid #ffffff",boxShadow:"0 8px 24px rgba(0,0,0,0.12)"}})}),(0,i.jsx)("div",{className:Z().follow,style:{position:"absolute",top:"2rem",right:"2.5rem"},children:(0,i.jsx)("button",{onClick:k,className:Z().followButton,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",background:S?"#ecfdf5":"#2563eb",color:S?"#047857":"#ffffff",border:S?"1.5px solid #a7f3d0":"none",padding:"0.55rem 1.35rem",borderRadius:"10px",fontWeight:800,fontSize:"0.85rem",cursor:"pointer",boxShadow:S?"none":"0 4px 14px rgba(37,99,235,0.3)",transition:"all 0.2s ease"},children:S?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q.Z,{size:16})," Following"]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T.Z,{size:16})," Follow Author"]})})}),(0,i.jsxs)("div",{className:Z().authorContent,style:{flex:1,minWidth:0},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.65rem",flexWrap:"wrap",marginBottom:"0.35rem"},children:[(0,i.jsx)("h2",{className:Z().authorname,style:{margin:0,fontSize:"1.85rem",fontWeight:800,color:"#0f172a",fontFamily:"Montserrat, sans-serif"},children:r}),s?(0,i.jsx)(x.Z,{size:"medium"}):(0,i.jsxs)("span",{style:{fontSize:"0.725rem",fontWeight:800,color:"#2563eb",background:"#eff6ff",border:"1px solid #bfdbfe",padding:"0.2rem 0.6rem",borderRadius:"12px",display:"inline-flex",alignItems:"center",gap:"0.25rem"},children:[(0,i.jsx)(K.Z,{size:13})," Verified Contributor"]})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem",flexWrap:"wrap",margin:"0.4rem 0 0.85rem"},children:[(0,i.jsxs)("span",{style:{fontSize:"0.875rem",fontWeight:700,color:"#475569",display:"inline-flex",alignItems:"center",gap:"0.35rem"},children:[(0,i.jsx)(X.Z,{size:15,style:{color:"#2563eb"}})," ",t," Published Articles"]}),(0,i.jsx)("span",{style:{color:"#cbd5e1"},children:"â¢"}),(0,i.jsx)("span",{style:{fontSize:"0.875rem",fontWeight:700,color:"#2563eb"},children:l})]}),(0,i.jsx)("p",{className:Z().authorBio,style:{fontSize:"0.95rem",color:"#334155",lineHeight:1.65,margin:"0 0 1.25rem",maxWidth:"850px",fontWeight:500},children:n||"".concat(r," is a valued sports writer and columnist contributing in-depth articles, analysis, and sports news coverage for KreedOn Media.")}),p&&p.length>0&&(0,i.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.45rem",marginBottom:"1.25rem"},children:p.map(e=>(0,i.jsxs)("span",{style:{background:"#f8fafc",border:"1px solid #cbd5e1",padding:"0.25rem 0.65rem",borderRadius:"12px",fontSize:"0.75rem",fontWeight:700,color:"#334155"},children:["#",e.replace(/_/g," ")]},e))}),(0,i.jsxs)("div",{style:{display:"flex",gap:"0.6rem",flexWrap:"wrap",alignItems:"center"},children:[u&&(0,i.jsxs)("a",{href:u,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.75rem",borderRadius:"8px",background:"#f8fafc",border:"1px solid #cbd5e1",color:"#1e293b",fontSize:"0.8rem",fontWeight:700,textDecoration:"none"},children:[(0,i.jsx)(d.Z,{size:14,style:{color:"#2563eb"}})," Portfolio"]}),g&&(0,i.jsxs)("a",{href:g,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.75rem",borderRadius:"8px",background:"#f8fafc",border:"1px solid #cbd5e1",color:"#1e293b",fontSize:"0.8rem",fontWeight:700,textDecoration:"none"},children:[(0,i.jsx)(c.Z,{size:14,style:{color:"#0a66c2"}})," LinkedIn"]}),h&&(0,i.jsxs)("a",{href:h,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.75rem",borderRadius:"8px",background:"#f8fafc",border:"1px solid #cbd5e1",color:"#1e293b",fontSize:"0.8rem",fontWeight:700,textDecoration:"none"},children:[(0,i.jsx)(f.Z,{size:14,style:{color:"#1da1f2"}})," Twitter / X"]}),b&&(0,i.jsxs)("a",{href:b,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.75rem",borderRadius:"8px",background:"#f8fafc",border:"1px solid #cbd5e1",color:"#1e293b",fontSize:"0.8rem",fontWeight:700,textDecoration:"none"},children:[(0,i.jsx)(m.Z,{size:14,style:{color:"#e1306c"}})," Instagram"]})]})]})]}),(0,i.jsx)(G.b,{isOpen:v,onClose:()=>A(!1),actionName:"Follow ".concat(r)})]})};let ee={SPORTS_JOURNALIST:"Sports Journalist & Media Reporter",SPORTS_ANALYST:"Sports Data Analyst & Statistician",CERTIFIED_COACH:"Certified NIS / SAI Coach",SPORTS_MEDICINE_PHYSIO:"Sports Physiotherapist & Science Specialist",SPORTS_LAWYER_POLICY:"Sports Lawyer & Policy Consultant",SPORTS_PR_TALENT_AGENT
1:"Sports PR & Athlete Talent Agent",SPORTS_IP_FOUNDER:"Sports IP Founder & Event Organizer",ESPORTS_OPS:"Esports Operations Manager",ACADEMIC_RESEARCHER:"Sports Educator & Academic Researcher",FORMER_ATHLETE:"Former National / International Athlete"},er={OLYMPICS_PARALYMPICS:"Olympics & Paralympics",CRICKET_LEAGUES:"Cricket Leagues",FOOTBALL_FUTSAL:"Football & Futsal",RACQUET_SPORTS:"Racquet Sports",COMBAT_SPORTS:"Combat Sports",MOTORSPORTS_CYCLING:"Motorsports & Cycling",ESPORTS_GAMING:"Esports & Gaming",SPORTS_BUSINESS_SPONSORSHIP:"Sports Sponsorships",GOVERNANCE_SAI_POLICIES:"SAI & Government Policies",SPORTS_SCIENCE_NUTRITION:"Sports Science & Nutrition",SPORTS_TECH_AI:"Sports Tech & AI",GRASSROOTS_YOUTH:"Grassroots & Youth Sports"},et=e=>{var r,t;let{authorData:n,children:b}=e,{user:y}=(0,H._e)(),[S,j]=(0,o.useState)(null),[v,A]=(0,o.useState)([]),[C,k]=(0,o.useState)("ARTICLES"),[I,w]=(0,o.useState)(!1),[W,P]=(0,o.useState)("PARTNER_DASHBOARD");(0,o.useEffect)(()=>{T()},[n,y]);let T=async()=>{let e=(null==n?void 0:n.databaseId)?String(n.databaseId):(null==n?void 0:n.id)||(null==n?void 0:n.slug),r=await R(e),t=null;if(r.success&&r.data&&"APPROVED"===r.data.status)t=r.data,j(r.data);else if(y&&("EDITORIAL_PARTNER"===y.role||"IP_ADMIN"===y.role)&&(y.id===e||y.name&&(null==n?void 0:n.name)&&y.name.toLowerCase()===n.name.toLowerCase())){var i;j(t={userId:y.id,fullName:y.name,email:y.email,role:"EditorialPartner",primaryRole:"SPORTS_JOURNALIST",organization:"KreedOn Media Network",designation:"Senior Sports Analyst",experienceYears:3,expertiseBeats:["OLYMPICS_PARALYMPICS","SPORTS_BUSINESS_SPONSORSHIP"],portfolioUrl:(null==n?void 0:n.url)||"https://www.kreedon.com",linkedinUrl:"https://linkedin.com",twitterUrl:"https://x.com",instagramUrl:"https://instagram.com",sampleArticleUrl:"https://www.kreedon.com",bioSummary:(null==n?void 0:n.description)||"Verified Editorial Partner and sports analyst contributing in-depth reporting across Indian sports.",status:"APPROVED",avatarUrl:y.avatarUrl||(null==n?void 0:null===(i=n.avatar)||void 0===i?void 0:i.url)||"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150",consultationRate:1499,consultationEnabled:!0})}else j(null);try{let r=await (0,O.S)();if(r.allAmas&&r.allAmas.length>0){let i=((null==n?void 0:n.name)||(null==t?void 0:t.fullName)||(null==y?void 0:y.name)||"").toLowerCase().trim(),o=r.allAmas.filter(r=>{if(!i)return!0;let t=(r.amaHostName||"").toLowerCase();return t.includes(i)||i.includes(t)||r.authorId&&String(r.authorId)===String(e)});A(o.length>0?o:r.allAmas)}}catch(e){}},D=!!(y&&S&&(y.id===S.userId||y.email&&S.email&&y.email.toLowerCase()===S.email.toLowerCase()||y.name&&(null==n?void 0:n.name)&&y.name.toLowerCase()===n.name.toLowerCase()));if(!(S&&"APPROVED"===S.status))return(0,i.jsxs)("div",{style:{width:"100%",maxWidth:"1200px",margin:"0 auto"},children:[(0,i.jsx)($,{name:(null==n?void 0:n.name)||"Author",posts:(null==n?void 0:n.totalPosts)||0,bio:(null==n?void 0:n.description)||"",imageUrl:(null==n?void 0:null===(t=n.avatar)||void 0===t?void 0:t.url)||"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150",isVerifiedEditorialPartner:!1}),b]});let _=ee[(null==S?void 0:S.primaryRole)||""]||(null==S?void 0:S.primaryRole)||"Sports Journalist";return(0,i.jsxs)("div",{style:{width:"100%",maxWidth:"1400px",margin:"0 auto",padding:"1rem",boxSizing:"border-box"},children:[D&&(0,i.jsxs)("div",{style:{marginBottom:"1rem",padding:"0.75rem 1.25rem",background:"#1e293b",borderRadius:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",color:"#ffffff",flexWrap:"wrap",gap:"0.75rem",border:"1px solid #334155"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,i.jsx)("span",{style:{background:"#f59e0b",color:"#0f172a",padding:"0.15rem 0.5rem",borderRadius:"4px",fontSize:"0.7rem",fontWeight:800},children:"MY PARTNER ACCOUNT VIEW"}),(0,i.jsx)("span",{style:{fontSize:"0.85rem",color:"#cbd5e1",fontWeight:600},children:"You are viewing your official Editorial Partner profile."})]}),(0,i.jsxs)("div",{style:{display:"flex",gap:"0.5rem",background:"#0f172a",padding:"0.2rem",borderRadius:"8px"},children:[(0,i.jsxs)("button",{onClick:()=>P("PARTNER_DASHBOARD"),style:{display:"flex",alignItems:"center",gap:"0.35rem",padding:"0.45rem 0.85rem",borderRadius:"6px",border:"none",background:"PARTNER_DASHBOARD"===W?"#2563eb":"transparent",color:"PARTNER_DASHBOARD"===W?"#ffffff"
1:"#94a3b8",fontWeight:700,fontSize:"0.775rem",cursor:"pointer"},children:[(0,i.jsx)(s.Z,{size:14})," Partner Control Center"]}),(0,i.jsxs)("button",{onClick:()=>P("PUBLIC_FAN"),style:{display:"flex",alignItems:"center",gap:"0.35rem",padding:"0.45rem 0.85rem",borderRadius:"6px",border:"none",background:"PUBLIC_FAN"===W?"#2563eb":"transparent",color:"PUBLIC_FAN"===W?"#ffffff":"#94a3b8",fontWeight:700,fontSize:"0.775rem",cursor:"pointer"},children:[(0,i.jsx)(l.Z,{size:14})," Preview as Fan"]})]})]}),(0,i.jsx)("div",{style:{background:"#ffffff",borderRadius:"16px",border:"1px solid #e2e8f0",padding:"2rem",marginBottom:"1.5rem",boxShadow:"0 4px 20px rgba(0,0,0,0.04)",width:"100%",boxSizing:"border-box"},children:(0,i.jsxs)("div",{style:{display:"flex",gap:"1.75rem",alignItems:"flex-start",flexWrap:"wrap"},children:[(0,i.jsx)("img",{src:(null==S?void 0:S.avatarUrl)||(null==n?void 0:null===(r=n.avatar)||void 0===r?void 0:r.url)||"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150",alt:(null==n?void 0:n.name)||"Author",style:{width:"120px",height:"120px",borderRadius:"50%",objectFit:"cover",border:"3.5px solid #f59e0b",boxShadow:"0 4px 16px rgba(245, 158, 11, 0.3)",flexShrink:0}}),(0,i.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap",marginBottom:"0.4rem"},children:[(0,i.jsx)("h1",{style:{margin:0,fontSize:"1.85rem",fontWeight:800,color:"#0f172a",fontFamily:"Montserrat, sans-serif",letterSpacing:"-0.02em"},children:(null==n?void 0:n.name)||(null==S?void 0:S.fullName)||"Verified Author"}),(0,i.jsx)(x.Z,{size:"medium"})]}),(0,i.jsxs)("p",{style:{margin:"0 0 0.6rem",fontSize:"0.95rem",fontWeight:700,color:"#2563eb",fontFamily:"Montserrat, sans-serif"},children:[_," ",(null==S?void 0:S.organization)?"⢠".concat(S.organization):""," ",(null==S?void 0:S.experienceYears)?"(".concat(S.experienceYears,"+ yrs experience)"):""]}),(0,i.jsx)("p",{style:{margin:"0 0 1.25rem",fontSize:"0.925rem",color:"#334155",lineHeight:1.6,maxWidth:"900px",fontWeight:500},children:(null==S?void 0:S.bioSummary)||(null==n?void 0:n.description)}),(null==S?void 0:S.expertiseBeats)&&S.expertiseBeats.length>0&&(0,i.jsx)("div",{style:{display:"flex",gap:"0.45rem",flexWrap:"wrap",marginBottom:"1.25rem"},children:S.expertiseBeats.map((e,r)=>(0,i.jsxs)("span",{style:{background:"#eff6ff",color:"#1d4ed8",border:"1px solid #bfdbfe",padding:"0.25rem 0.65rem",borderRadius:"14px",fontSize:"0.75rem",fontWeight:800},children:["#",er[e]||e.replace(/_/g," ")]},r))}),(0,i.jsxs)("div",{style:{display:"flex",gap:"0.6rem",flexWrap:"wrap",alignItems:"center"},children:[(null==S?void 0:S.portfolioUrl)&&(0,i.jsxs)("a",{href:S.portfolioUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.75rem",borderRadius:"8px",background:"#f8fafc",border:"1px solid #cbd5e1",color:"#1e293b",fontSize:"0.8rem",fontWeight:700,textDecoration:"none"},children:[(0,i.jsx)(d.Z,{size:14,style:{color:"#2563eb"}})," Website Portfolio"]}),(null==S?void 0:S.linkedinUrl)&&(0,i.jsxs)("a",{href:S.linkedinUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.75rem",borderRadius:"8px",background:"#f8fafc",border:"1px solid #cbd5e1",color:"#1e293b",fontSize:"0.8rem",fontWeight:700,textDecoration:"none"},children:[(0,i.jsx)(c.Z,{size:14,style:{color:"#0a66c2"}})," LinkedIn Profile"]}),(null==S?void 0:S.twitterUrl)&&(0,i.jsxs)("a",{href:S.twitterUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.75rem",borderRadius:"8px",background:"#f8fafc",border:"1px solid #cbd5e1",color:"#1e293b",fontSize:"0.8rem",fontWeight:700,textDecoration:"none"},children:[(0,i.jsx)(f.Z,{size:14,style:{color:"#1da1f2"}})," Twitter / X"]}),(null==S?void 0:S.instagramUrl)&&(0,i.jsxs)("a",{href:S.instagramUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.75rem",borderRadius:"8px",background:"#f8fafc",border:"1px solid #cbd5e1",color:"#1e293b",fontSize:"0.8rem",fontWeight:700,textDecoration:"none"},children:[(0,i.jsx)(m.Z,{size:14,style:{color:"#e1306c"}})," Instagram"]}),(null==S?void 0:S.consultationEnabled)&&(0,i.jsxs)("button",{onClick:()=>w(!0),style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.45rem 1rem",borderRadius:"8px",background:"linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%)",color:"#ffffff",border:"none",fontSize:"0.825rem",fontWeight:800,cursor:"pointer",boxShadow:"0 4px 12px rgba(37,99,235,0.3)",marginLeft:"auto"},children:[(0,i.jsx)(p,{size:15})," Book 1-on-1 Advisory Call (â¹",S.consultationRate,")"]})]})]})]})}),(0,i.jsxs)("div",{style:{display:"flex",gap:"0.5rem",borderBottom:"2px s
1olid #e2e8f0",marginBottom:"1.5rem",paddingBottom:"0.5rem",flexWrap:"wrap"},children:[(0,i.jsx)("button",{onClick:()=>k("ARTICLES"),style:{padding:"0.65rem 1.25rem",borderRadius:"8px",border:"none",background:"ARTICLES"===C?"#0f172a":"transparent",color:"ARTICLES"===C?"#ffffff":"#64748b",fontWeight:800,fontSize:"0.875rem",cursor:"pointer"},children:"\uD83D\uDCF0 Published Articles"}),(0,i.jsxs)("button",{onClick:()=>k("AMAS"),style:{padding:"0.65rem 1.25rem",borderRadius:"8px",border:"none",background:"AMAS"===C?"#0f172a":"transparent",color:"AMAS"===C?"#ffffff":"#64748b",fontWeight:800,fontSize:"0.875rem",cursor:"pointer"},children:["\uD83C\uDF99ï¸ Live AMAs & Q&As (",v.length,")"]}),(0,i.jsx)("button",{onClick:()=>k("CALLS"),style:{padding:"0.65rem 1.25rem",borderRadius:"8px",border:"none",background:"CALLS"===C?"#0f172a":"transparent",color:"CALLS"===C?"#ffffff":"#64748b",fontWeight:800,fontSize:"0.875rem",cursor:"pointer"},children:"\uD83D\uDCDE 1-on-1 Advisory Calls"})]}),"ARTICLES"===C&&(0,i.jsx)("div",{style:{width:"100%"},children:b}),"AMAS"===C&&(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(340px, 1fr))",gap:"1.25rem",width:"100%"},children:0===v.length?(0,i.jsxs)("div",{style:{gridColumn:"1 / -1",background:"#f8fafc",padding:"2.5rem",borderRadius:"12px",textAlign:"center",border:"1px solid #e2e8f0"},children:[(0,i.jsx)(u.Z,{size:36,style:{color:"#94a3b8",margin:"0 auto 0.75rem"}}),(0,i.jsx)("p",{style:{color:"#64748b",fontSize:"0.95rem",fontWeight:600,margin:0},children:"No active Live Stage AMAs scheduled yet by this host."})]}):v.map(e=>{let r="LIVE"===e.amaStatus;return(0,i.jsxs)("div",{style:{background:r?"linear-gradient(135deg, #0f172a 0%, #1e293b 100%)":"#ffffff",color:r?"#ffffff":"#0f172a",borderRadius:"14px",border:r?"1px solid #f59e0b":"1px solid #e2e8f0",padding:"1.5rem",boxShadow:r?"0 8px 24px rgba(245, 158, 11, 0.15)":"0 4px 14px rgba(0,0,0,0.03)",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.75rem"},children:[(0,i.jsxs)("span",{style:{fontSize:"0.675rem",fontWeight:800,color:r?"#fef3c7":"#d97706",background:r?"rgba(245, 158, 11, 0.25)":"#fef3c7",padding:"0.25rem 0.65rem",borderRadius:"6px",border:r?"1px solid rgba(245, 158, 11, 0.5)":"none",display:"inline-flex",alignItems:"center",gap:"0.35rem"},children:[r?(0,i.jsx)(u.Z,{size:12,className:"animate-pulse"}):(0,i.jsx)(g.Z,{size:12}),r?"\uD83D\uDD34 LIVE STAGE NOW":"UPCOMING"===e.amaStatus?"\uD83D\uDDD3ï¸ UPCOMING":"COMPLETED"]}),(0,i.jsx)("span",{style:{fontSize:"0.725rem",color:r?"#cbd5e1":"#64748b",fontWeight:600},children:(0,M.V)(e.amaStartTime)})]}),(0,i.jsx)("h4",{style:{margin:"0 0 0.5rem",fontSize:"1.05rem",fontWeight:800,color:r?"#ffffff":"#0f172a",lineHeight:1.35},children:e.title}),(0,i.jsx)("p",{style:{margin:"0 0 1.25rem",fontSize:"0.85rem",color:r?"#94a3b8":"#475569",lineHeight:1.5,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.body})]}),(0,i.jsxs)(a(),{href:"/community/".concat(e.categorySlug,"/").concat(e.slug),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.4rem",padding:"0.65rem 1rem",borderRadius:"8px",background:r?"linear-gradient(135deg, #f59e0b 0%, #d97706 100%)":"#0f172a",color:"#ffffff",textDecoration:"none",fontWeight:800,fontSize:"0.825rem",textAlign:"center",marginTop:"0.5rem"},children:[(0,i.jsx)(h.Z,{size:14}),r?"Join Live Stage Q&A â":"View AMA Discussion â"]})]},e.id)})}),"CALLS"===C&&(0,i.jsxs)("div",{style:{background:"#ffffff",borderRadius:"16px",border:"1px solid #e2e8f0",padding:"2.5rem 2rem",textAlign:"center",boxShadow:"0 4px 20px rgba(0,0,0,0.03)"},children:[(0,i.jsx)(p,{size:42,style:{color:"#2563eb",margin:"0 auto 1rem"}}),(0,i.jsxs)("h3",{style:{margin:"0 0 0.5rem",fontSize:"1.35rem",fontWeight:800,color:"#0f172a",fontFamily:"Montserrat, sans-serif"},children:["Book 1-on-1 Consultation Call with ",(null==n?void 0:n.name)||(null==S?void 0:S.fullName)]}),(0,i.jsx)("p",{style:{margin:"0 0 1.5rem",fontSize:"0.925rem",color:"#475569",maxWidth:"600px",marginLeft:"auto",marginRight:"auto",lineHeight:1.6},children:"Get direct 30-minute 1-on-1 guidance on sports sponsorship pitch decks, athlete grant paperwork, media kits, or career mentorship."}),(0,i.jsxs)("button",{onClick:()=>w(!0),style:{padding:"0.75rem 1.75rem",borderRadius:"8px",background:"#2563eb",color:"#ffffff",border:"none",fontWeight:800,fontSize:"0.95rem",cursor:"pointer",boxShadow:"0 4px 14px rgba(37,99,235,0.35)"},children:["Book 30-Min Call Session (â¹",(null==S?void 0:S.consultationRate)||1499,") â"]})]}),D&&"PARTNER_DASHBOARD"===W&&S&&(0,i.jsx)(U,{profile:S,onProfileUpdated:T}),S&&(0,i.jsx)(z,{isOpen:I,onClose:()=>w(!1),partnerId:S.userId,partnerName:S.fullName,partnerRole:S.primaryRole,consultationRate:S.consultationRate})]})}},23050:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});let i=(0,t(31134).Z)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},42020:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});let i=(0,t(31134).Z)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},90734:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});let i=(0,t(31134).Z)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},71209:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});let i=(0,t(31134).Z)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},36428:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});let i=(0,t(31134).Z)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]])},9638:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});let i=(0,t(31134).Z)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]])},56330:function(e){e.exports={authorContainer:"Author_authorContainer__VQCA2",authorContainerWrapper:"Author_authorContainerWrapper__5bPAk",authorImageContainer:"Author_authorImageContainer__3Enq5",authorImage:"Author_authorImage__ljxr_",authorContent:"Author_authorContent__UKqPS",authorname:"Author_authorname__iM_tQ",authorDetails:"Author_authorDetails__DwKwD",authorBio:"Author_authorBio__n69lj",moreAboutMe:"Author_moreAboutMe__TKIrJ",follow:"Author_follow__WC5Vg",followButton:"Author_followButton__zmume"}}}]);
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.