PageSourceSearch

https://itembo.com/assets/SponsorsPage-BjMGYiOI.js

js itembo.com collected 2026-10-02 23:52:12 UTC 14,039 bytes, 2 lines download raw bytes

1import{j as e}from"./vendor-ui-core-f4RPl4TF.js";import{L as _}from"./vendor-react-DzMUrXFC.js";import{s as g,S,f as y,C as F}from"./main-COU9NYKu.js";import{I as w}from"./image-with-skeleton-ClrWBc8I.js";import{a as b}from"./vendor-query-CelRYDLG.js";import{B as A}from"./badge-check-DHp0v0wF.js";import"./vendor-supabase-B3U3ReBo.js";import"./vendor-charts-w47NHhQX.js";import"./vendor-ui-extra-gWUI_Cot.js";import"./vendor-motion-DTL9cwpm.js";import"./vendor-forms-BIjZt7Hz.js";import"./skeleton-mN3nSIbC.js";function T(){return b({queryKey:["sponsorsOverview"],queryFn:async()=>{var r,x;const[{data:l},{data:d},{data:i,error:c},{data:s,error:m}]=await Promise.all([g.rpc("get_public_sponsors_with_balance"),g.from("tracks").select("streams").eq("is_sponsored",!0),g.rpc("get_public_cashout_stats"),g.rpc("get_public_sponsor_pool")]);c&&console.error("Error fetching public cashout stats:",c),m&&console.error("Error fetching public sponsor pool:",m);const t=(l||[]).length,o=(d||[]).reduce((h,p)=>h+(p.streams||0),0);return{poolPaidOut:Number((r=i==null?void 0:i[0])==null?void 0:r.total_payouts)||0,poolAvailable:Number((x=s==null?void 0:s[0])==null?void 0:x.total_pool)||0,streamsFunded:o,activeSponsors:t}},staleTime:5*60*1e3})}function C(){return b({queryKey:["topSponsorsShowcase"],queryFn:async()=>{const{data:l,error:d}=await g.rpc("get_public_sponsors_with_balance");if(d||!l)return console.error("Error fetching sponsors:",d),[];const i=l.slice(0,20),c=i.map(o=>o.id),{data:s}=await g.rpc("get_profiles_by_ids",{p_ids:c}),m=new Map((s==null?void 0:s.map(o=>[o.id,o]))||[]);return(await Promise.all(i.map(async o=>{const r=m.get(o.id),{data:x}=await g.from("tracks").select("id, streams").eq("sponsor_id",o.id).eq("is_sponsored",!0),h=(x==null?void 0:x.reduce((u,v)=>u+v.streams,0))||0,p=(x==null?void 0:x.length)||0,f=(r==null?void 0:r.is_verified)===!0&&(r!=null&&r.verification_expiry?new Date(r.verification_expiry)>new Date:!1);return{id:o.id,name:o.name,username:(r==null?void 0:r.username)||null,display_name:(r==null?void 0:r.display_name)||o.name,avatar_url:(r==null?void 0:r.avatar_url)||o.avatar_url,company_name:o.company_name,wallet_balance:Number(o.wallet_balance)||0,show_wallet_balance:o.show_wallet_balance,total_sponsored_streams:h,sponsored_tracks_count:p,is_verified:f}}))).sort((o,r)=>r.total_sponsored_streams-o.total_sponsored_streams).slice(0,6)},staleTime:5*60*1e3})}function D(l={}){const{search:d="",sortBy:i="balance",verifiedOnly:c=!1,page:s=1,limit:m=12}=l;return b({queryKey:["findSponsors",d,i,c,s,m],queryFn:async()=>{const{data:t,error:o}=await g.rpc("get_findable_sponsors");if(o||!t)return console.error("Error fetching sponsors:",o),{data:[],total:0,hasMore:!1,currentPage:s,totalPages:1};const r=t.map(a=>a.id),{data:x}=await g.rpc("get_profiles_by_ids",{p_ids:r}),h=new Map((x||[]).map(a=>[a.id,a]));let p=t.map(a=>{const n=h.get(a.id);return{id:a.id,name:a.name,display_name:(n==null?void 0:n.display_name)||a.name,username:(n==null?void 0:n.username)||null,avatar_url:(n==null?void 0:n.avatar_url)||a.avatar_url,company_name:a.company_name,wallet_balance:Number(a.wallet_balance)||0,show_wallet_balance:a.show_wallet_balance??!0,total_sponsored_streams:Number(a.total_sponsored_streams)||0,sponsored_tracks_count:Number(a.sponsored_tracks_count)||0,is_verified:!!a.is_verified,created_at:a.created_at,email:""}});if(d){const a=d.toLowerCase();p=p.filter(n=>{var j,N,B,k;return((j=n.name)==null?void 0:j.toLowerCase().includes(a))||((N=n.display_name)==null?void 0:N.toLowerCase().includes(a))||((B=n.company_name)==null?void 0:B.toLowerCase().includes(a))||((k=n.username)==null?void 0:k.toLowerCase().includes(a))})}switch(c&&(p=p.filter(a=>a.is_verified)),i){case"balance":p.sort((a,n)=>n.wallet_balance-a.wallet_balance);break;case"joinDate":p.sort((a,n)=>new Date(n.created_at).getTime()-new Date(a.created_at).getTime());break;case"sponsoredTracks":p.sort((a,n)=>n.sponsored_tracks_count-a.sponsored_tracks_count);break;case"alphabetical":p.sort((a,n)=>a.display_name.localeCompare(n.display_name));break}const f=p.length,u=(s-1)*m;return{data:p.slice(u,u+m),total:f,hasMore:u+m<f,currentPage:s,totalPages:Math.max(1,Math.ceil(f/m))}},staleTime:2*60*1e3})}function q(){return b({queryKey:["verifiedSponsors"],queryFn:async()=>{const{data:l,error:d}=await g.from("public_profiles_safe").select("id, username, display_name, avatar_url, is_verified, verification_expiry").eq("role","sponsor").eq("is_verified",!0);if(d)return console.error("Error fetching verified sponsors:",d),[];const i=new Date,c=(l||[]).filter(s=>s.verification_expiry&&new Date(s.verification_expiry)>i).map(s=>({id:s.id,username:s.username,display_name:s.display_name,avatar_url:s.avatar_url,is_verified:!0})).slice(0,8);return console.log("Verified sponsors loaded:",c.length),c},staleTime:5*60*1e3})}const E=F.STREAM_PAYMENT_NAIRA,M=[{title:"Powerful Brand Positioning",body:"Sponsor artists who speak directly to your target audience. Your brand gets associated with fresh, real, and authentic voices fans already love."},{title:"Next-Level CSR",body:"Support grassroots talent and give underrepresented artists a real shot at success — equity, opportunity and empowerment."},{title:"Direct Fan Engagement",body:"Every time a fan streams a sponsored track, they see your brand's impact — a genuine, non-intrusive form of advertising."},{title:"Affordable & Transparent",body:`For just ₦${E} per valid stream, you fund real talent. Track your wallet and see where your sponsorship is going, in real time.`},{title:"Access New Talent",body:"Many talented artists never get a shot with major labels. With PayStreem, you be
1come their bridge to visibility."},{title:"Cultural Impact",body:"Join a movement that values authentic expression and supports the next generation of creative voices."}];function L(){const{data:l}=T(),{data:d}=C(),{data:i}=D({sortBy:"joinDate",limit:4}),{data:c}=q(),s=(d||[]).slice(0,3),m=((i==null?void 0:i.data)||[]).slice(0,4);return e.jsxs(e.Fragment,{children:[e.jsx(S,{title:"For Sponsors - Support Independent Artists on PayStreem",description:"Sponsor emerging artists and support the music industry. Fund tracks for ₦50 per stream, discover new talent, and track your impact with real-time analytics.",url:"https://www.paystreem.com/sponsors",type:"website"}),e.jsxs("div",{className:"bg-[#17143A] px-5 pt-8 pb-6 sm:px-10 sm:pt-14 sm:pb-11 lg:px-14 lg:pt-14 lg:pb-[46px]",children:[e.jsx("h1",{className:"font-archivo font-black text-3xl sm:text-4xl lg:text-[50px] leading-tight [font-stretch:80%] tracking-tight text-white max-w-[20ch] text-balance mb-3.5",children:"Sponsor music"}),e.jsxs("p",{className:"text-sm sm:text-base leading-relaxed text-[#C9C5E8] max-w-[52ch]",children:["₦",E," per valid stream, paid straight to the artist."]}),e.jsxs("div",{className:"mt-7 lg:mt-9 pt-5 lg:pt-7 border-t border-white/[0.14] flex flex-col sm:flex-row sm:items-end gap-6 lg:gap-14",children:[e.jsxs("div",{className:"flex flex-col gap-2 lg:gap-2.5",children:[e.jsx("span",{className:"text-[11px] lg:text-[13px] font-medium text-[#9A96C4]",children:"Sponsor pool paid out to artists"}),e.jsx("span",{className:"font-jetbrains font-bold text-4xl lg:text-[54px] leading-none text-[#E9B949] tracking-tight tabular-nums",children:y((l==null?void 0:l.poolPaidOut)||0)})]}),e.jsxs("div",{className:"flex gap-6 sm:gap-10 pb-0 sm:pb-1.5",children:[e.jsxs("div",{className:"flex flex-col gap-1.5 lg:gap-[7px]",children:[e.jsx("span",{className:"text-[11px] lg:text-xs font-medium text-[#8B88A3]",children:"Pool available now"}),e.jsx("span",{className:"font-jetbrains font-medium text-base lg:text-xl text-white tracking-tight",children:y((l==null?void 0:l.poolAvailable)||0)})]}),e.jsxs("div",{className:"flex flex-col gap-1.5 lg:gap-[7px]",children:[e.jsx("span",{className:"text-[11px] lg:text-xs font-medium text-[#8B88A3]",children:"Streams funded"}),e.jsx("span",{className:"font-jetbrains font-medium text-base lg:text-xl text-white tracking-tight",children:((l==null?void 0:l.streamsFunded)||0).toLocaleString()})]}),e.jsxs("div",{className:"flex flex-col gap-1.5 lg:gap-[7px]",children:[e.jsx("span",{className:"text-[11px] lg:text-xs font-medium text-[#8B88A3]",children:"Active sponsors"}),e.jsx("span",{className:"font-jetbrains font-medium text-base lg:text-xl text-white tracking-tight",children:(l==null?void 0:l.activeSponsors)||0})]})]})]})]}),s.length>0&&e.jsxs("div",{className:"bg-white px-5 py-8 sm:px-10 sm:py-12 lg:px-14 lg:py-[52px]",children:[e.jsx("h2",{className:"font-archivo font-black text-2xl lg:text-[32px] [font-stretch:82%] tracking-tight text-[#1E1B4B] mb-5 lg:mb-[26px]",children:"Top sponsors"}),e.jsx("div",{className:"border-t border-[#1E1B4B]/[0.14]",children:s.map(t=>e.jsxs(_,{to:`/profiles/${t.username||t.id}`,className:"grid grid-cols-[46px_1fr] sm:grid-cols-[64px_1.4fr_1fr_.7fr_1fr] gap-3 sm:gap-6 items-center py-4 sm:py-[18px] border-b border-[#1E1B4B]/10",children:[e.jsx("span",{className:"w-[46px] h-[46px] sm:w-16 sm:h-16 rounded-full overflow-hidden bg-[#F1F1F8] block",children:t.avatar_url&&e.jsx(w,{src:t.avatar_url,alt:t.display_name})}),e.jsxs("div",{className:"min-w-0 flex flex-col gap-1 sm:gap-1.5",children:[e.jsxs("span",{className:"flex items-center gap-1.5 font-archivo font-bold text-base sm:text-lg text-[#1E1B4B] truncate",children:[t.display_name||t.name,t.is_verified&&e.jsx(A,{className:"h-[15px] w-[15px] shrink-0 text-[#5A31D8]"})]}),t.company_name&&e.jsx("span",{className:"text-[13px] text-[#6E6B8A] truncate",children:t.company_name})]}),e.jsxs("div",{className:"hidden sm:flex flex-col gap-1",children:[e.jsx("span",{className:"font-jetbrains font-medium text-[15px] text-[#1E1B4B]",children:t.total_sponsored_streams.toLocaleStr
1ing()}),e.jsx("span",{className:"text-xs text-[#8B88A3]",children:"streams funded"})]}),e.jsxs("div",{className:"hidden sm:flex flex-col gap-1",children:[e.jsx("span",{className:"font-jetbrains font-medium text-[15px] text-[#1E1B4B]",children:t.sponsored_tracks_count}),e.jsx("span",{className:"text-xs text-[#8B88A3]",children:"tracks"})]}),e.jsxs("div",{className:"hidden sm:flex flex-col gap-1",children:[e.jsx("span",{className:"font-jetbrains font-medium text-[15px] text-[#5A31D8]",children:t.show_wallet_balance!==!1?y(t.wallet_balance):"Hidden"}),e.jsx("span",{className:"text-xs text-[#8B88A3]",children:"wallet"})]})]},t.id))})]}),m.length>0&&e.jsxs("div",{className:"bg-[#F2F1F7] px-5 py-8 sm:px-10 sm:py-12 lg:px-14 lg:py-[52px]",children:[e.jsx("h2",{className:"font-archivo font-black text-2xl lg:text-[32px] [font-stretch:82%] tracking-tight text-[#1E1B4B] mb-5 lg:mb-[26px]",children:"Taking pitches now"}),e.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 lg:gap-6",children:m.map(t=>e.jsxs(_,{to:`/profiles/${t.username||t.id}`,className:"bg-white border border-[#1E1B4B]/[0.14] rounded-[3px] p-4 lg:p-6 flex flex-col gap-2.5 lg:gap-3",children:[e.jsx("span",{className:"w-10 h-10 lg:w-[52px] lg:h-[52px] rounded-full overflow-hidden bg-[#F1F1F8] block",children:t.avatar_url&&e.jsx(w,{src:t.avatar_url,alt:t.display_name})}),e.jsx("span",{className:"font-archivo font-bold text-sm lg:text-[17px] text-[#1E1B4B] truncate",children:t.display_name||t.name}),t.company_name&&e.jsx("span",{className:"hidden lg:block text-[13px] leading-snug text-[#6E6B8A]",children:t.company_name}),e.jsxs("span",{className:"font-jetbrains text-[11px] lg:text-xs text-[#8B88A3]",children:[t.total_sponsored_streams.toLocaleString()," streams,"," ",t.sponsored_tracks_count," tracks"]})]},t.id))})]}),e.jsxs("div",{className:"bg-white px-5 py-8 sm:px-10 sm:py-12 lg:px-14 lg:py-[52px]",children:[e.jsx("h2",{className:"font-archivo font-black text-2xl lg:text-[32px] [font-stretch:82%] tracking-tight text-[#1E1B4B] mb-5 lg:mb-[26px]",children:"What a sponsorship covers"}),e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-px bg-[#1E1B4B]/[0.14]",children:M.map(t=>e.jsxs("div",{className:"bg-white p-5 lg:p-7",children:[e.jsx("h3",{className:"font-archivo font-bold text-base lg:text-[19px] leading-tight text-[#1E1B4B] mb-2 lg:mb-2.5",children:t.title}),e.jsx("p",{className:"text-sm lg:text-[14px] leading-relaxed text-[#6E6B8A]",children:t.body})]},t.title))})]}),c&&c.length>0&&e.jsxs("div",{className:"bg-[#F2F1F7] px-5 py-8 sm:px-10 sm:py-12 lg:px-14 lg:py-[52px]",children:[e.jsx("h2",{className:"font-archivo font-black text-2xl lg:text-[32px] [font-stretch:82%] tracking-tight text-[#1E1B4B] mb-5 lg:mb-[26px]",children:"Verified sponsors"}),e.jsx("div",{className:"flex flex-wrap gap-3 lg:gap-4",children:c.map(t=>e.jsxs(_,{to:`/profiles/${t.username||t.id}`,className:"flex items-center gap-2.5 bg-white border border-[#1E1B4B]/[0.14] rounded-full py-[9px] pl-[9px] pr-[18px]",children:[e.jsx("span",{className:"w-[34px] h-[34px] rounded-full overflow-hidden bg-[#F1F1F8] block",children:t.avatar_url&&e.jsx(w,{src:t.avatar_url,alt:t.display_name})}),e.jsx("span",{className:"font-archivo font-semibold text-sm text-[#1E1B4B]",children:t.display_name})]},t.id))})]}),e.jsxs("div",{className:"bg-[#5A31D8] px-5 py-8 sm:px-10 sm:py-12 lg:px-14 lg:py-14 flex flex-col lg:flex-row items-center justify-between gap-6 lg:gap-12",children:[e.jsx("h2",{className:"font-archivo font-black text-2xl lg:text-[40px] leading-tight lg:leading-[1.04] [font-stretch:80%] tracking-tight text-white max-w-[22ch] text-balance text-center lg:text-left",children:"Fund a track this week and watch the credits land in real time."}),e.jsxs("div",{className:"w-full lg:w-[290px] shrink-0 flex flex-col gap-[11px]",children:[e.jsx(_,{to:"/register/sponsor",className:"text-center font-archivo font-bold text-sm text-[#1E1B4B] bg-white rounded-[2px] py-[18px]",children:"Become a sponsor"}),e.jsx(_,{to:"/login",className:"text-center font-archivo font-semibold text-sm text-white border border-white/[0.42] rounded-[2px] py-[18px]",children:"Log in"})]})]})]})}function U(){return e.jsx(L,{})}export{U as default};
2//# sourceMappingURL=SponsorsPage-BjMGYiOI.js.map

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.