1import{r as p,j as e,a0 as y,a1 as w,L as N,a2 as v,s as _,a3 as k,a4 as a,a5 as r}from"./index-BNrdOJig.js";import{S}from"./SiteNav-BcGgqsav.js";import{S as P}from"./SiteFooter-dnnZxriw.js";import{submitPlatformForm as q}from"./platform-submissions-D3ZGXLMB.js";import"./dropdown-menu-KsqIXfPg.js";import"./index-Dc9JXvma.js";import"./index-xFoOlCOp.js";import"./index-BgFHfwbL.js";import"./chevron-down-Bsk54EUt.js";import"./globe-BA4Wl8PS.js";import"./input-CwAqzCK4.js";import"./mail-Dg76bAst.js";const A=k({company_name:a().trim().min(1,"Company name is required").max(120),contact_name:a().trim().min(1,"Contact name is required").max(120),email:a().trim().email("Valid email is required").max(255),phone:a().trim().max(40).optional().or(r("")),website:a().trim().max(255).optional().or(r("")),industry:a().trim().max(120).optional().or(r("")),brand_description:a().trim().max(2e3).optional().or(r("")),campaign_goal:a().trim().max(2e3).optional().or(r("")),target_audience:a().trim().max(2e3).optional().or(r("")),ad_format:a().trim().max(120).optional().or(r("")),budget_range:a().trim().max(120).optional().or(r("")),start_date:a().trim().max(20).optional().or(r("")),duration:a().trim().max(120).optional().or(r("")),additional_notes:a().trim().max(2e3).optional().or(r(""))});function R(){const[s,n]=p.useState(!1),[i,t]=p.useState(!1),[m,c]=p.useState(null);async function g(x){x.preventDefault(),c(null);const f=new FormData(x.currentTarget),j=Object.fromEntries(f.entries()),o=A.safeParse(j);if(!o.success){c(o.error.issues[0]?.message??"Please check the form");return}n(!0);const b={...o.data,start_date:o.data.start_date?o.data.start_date:null},{error:h}=await _.from("ads_partner_submissions").insert(b);if(n(!1),h){c(h.message);return}q({formType:"ads-partner",subject:`Ads partner inquiry â ${o.data.company_name}`,submitterName:o.data.contact_name,submitterEmail:o.data.email,payload:b}),t(!0),window.scrollTo({top:0,behavior:"smooth"})}return e.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[e.jsx(S,{}),e.jsx("main",{className:"pt-28 md:pt-32 pb-16",children:e.jsxs("section",{className:"max-w-4xl mx-auto px-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("span",{className:"inline-flex h-12 w-12 items-center justify-center rounded-full bg-primary/15 text-primary mb-4",children:e.jsx(y,{className:"h-6 w-6"})}),e.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight",children:"Do you want to get your brand across millions of people?"}),e.jsxs("p",{className:"mt-4 text-base md:text-lg text-muted-foreground max-w-2xl mx-auto",children:["Become an advertising partner on"," ",e.jsx("span",{className:"font-semibold text-foreground",children:"MO Streams"})," ","â the music & video distribution platform. Reach fans, artists, labels, podcasters, producers and DJs through audio, banner and preâroll video ads across our music library, musicâvideo player and podcast network."]})]}),i?e.jsxs("div",{className:"mt-10 rounded-2xl border border-border bg-card/60 p-8 text-center",children:[e.jsx(w,{className:"mx-auto h-12 w-12 text-primary"}),e.jsx("h2",{className:"mt-4 text-2xl font-bold",children:"Submission received"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Thanks â our partnerships team will review your inquiry and reach out within 1â3 business days."}),e.jsx(N,{to:"/explore",className:"mt-6 inline-flex items-center gap-2 rounded-md bg-primary px-5 py-2.5 text-sm font-bold text-white",children:"Back to Library"})]}):e.jsxs("form",{onSubmit:g,className:"mt-10 rounded-2xl border border-border bg-card/60 p-6 md:p-8 space-y-5",children:[e.jsx("h2",{className:"text-xl font-bold",children:"Ads Partner Questionnaire"}),m&&e.jsx("div",{className:"rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:m}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(l,{label:"Company / Brand name *",name:"company_name",required:!0}),e.jsx(l,{label:"Contact name *",name:"contact_name",required:!0}
1),e.jsx(l,{label:"Email *",name:"email",type:"email",required:!0}),e.jsx(l,{label:"Phone",name:"phone",type:"tel"}),e.jsx(l,{label:"Website",name:"website",placeholder:"https://"}),e.jsx(l,{label:"Industry",name:"industry",placeholder:"e.g. Apparel, Auto, Beverage"})]}),e.jsx(d,{label:"Tell us about your brand",name:"brand_description",rows:3}),e.jsx(d,{label:"What is your campaign goal?",name:"campaign_goal",rows:3,placeholder:"Awareness, app installs, ticket sales, store trafficâ¦"}),e.jsx(d,{label:"Who is your target audience?",name:"target_audience",rows:3,placeholder:"Age, gender, location, music genres, interestsâ¦"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(u,{label:"Preferred ad format",name:"ad_format",options:["","Audio ad under music tracks","Preâroll video ad before music videos","Banner / display ad in player","Podcast episode sponsorship","Full package (audio + video + display)"]}),e.jsx(u,{label:"Estimated budget (USD)",name:"budget_range",options:["","Under $1,000","$1,000 â $5,000","$5,000 â $25,000","$25,000 â $100,000","$100,000+"]}),e.jsx(l,{label:"Preferred start date",name:"start_date",type:"date"}),e.jsx(u,{label:"Campaign duration",name:"duration",options:["","1 week","2 weeks","1 month","3 months","6 months","Ongoing"]})]}),e.jsx(d,{label:"Anything else we should know?",name:"additional_notes",rows:3}),e.jsx("button",{type:"submit",disabled:s,className:"w-full inline-flex items-center justify-center gap-2 rounded-md bg-primary px-6 py-3 text-sm font-bold text-white shadow-sm hover:opacity-90 disabled:opacity-60",children:s?e.jsxs(e.Fragment,{children:[e.jsx(v,{className:"h-4 w-4 animate-spin"})," Submittingâ¦"]}):e.jsx(e.Fragment,{children:"Submit Partnership Inquiry"})}),e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Submissions are reviewed by the MO Streams partnerships team. Campaigns run only after approval and payment."})]})]})}),e.jsx(P,{})]})}function l({label:s,name:n,type:i="text",required:t,placeholder:m}){return e.jsxs("label",{className:"block text-sm",children:[e.jsx("span",{className:"mb-1 inline-block font-medium",children:s}),e.jsx("input",{name:n,type:i,required:t,placeholder:m,className:"w-full rounded-md border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"})]})}function d({label:s,name:n,rows:i=3,placeholder:t}){return e.jsxs("label",{className:"block text-sm",children:[e.jsx("span",{className:"mb-1 inline-block font-medium",children:s}),e.jsx("textarea",{name:n,rows:i,placeholder:t,className:"w-full rounded-md border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"})]})}function u({label:s,name:n,options:i}){return e.jsxs("label",{className:"block text-sm",children:[e.jsx("span",{className:"mb-1 inline-block font-medium",children:s}),e.jsx("select",{name:n,className:"w-full rounded-md border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary",children:i.map(t=>e.jsx("option",{value:t,children:t||"Selectâ¦"},t))})]})}export{R as component};
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.