PageSourceSearch

https://mstudio.ai/build/assets/BookACallPage.BXrI7p_Z.js

js mstudio.ai collected 2026-10-05 12:17:10 UTC 7,899 bytes, 1 lines download raw bytes

1import{r as w}from"./rolldown-runtime.C1f3BsDW.js";import"./inertia.BE4YqsTM.js";import"./http.DWpeO7Ui.js";import{Kt as C,Qr as z,Xt as k,Y as S,dr as F,dt as T,gr as A,h as P}from"./icons.ChOq_Y4q.js";import{t as q}from"./react-core.CAMe6Z4j.js";import"./utils.CgzVjNgC.js";import"./state.L8kQliOB.js";import{H as I,Tt as g,k as E}from"./entry-client.DX3aUoe5.js";import{n as b,r as L}from"./input.GzdAc1Aj.js";import"./dist.CoNAZqlp.js";import"./dist.DxccqHSW.js";import"./dist.D4237Rk6.js";import"./dist.BhzTvz6X.js";import"./es2015.Cr2X04_P.js";import"./dist.C1cc-Zbw.js";import"./badge.CK53iWwP.js";import"./dropdown-menu.D1MnQ7U0.js";import{t as R}from"./SEO.gPDL2mFy.js";import"./useRoute.D5WEuP_a.js";import"./useStartCreatingHref.BVwqKiRT.js";import"./logo.7ZVhR9ER.js";import{t as W}from"./Footer.Ccp81B1O.js";import{t as B}from"./Header.C54sFzrK.js";/* empty css                   */var x=w(z(),1),e=w(q(),1),Y=[{value:"yes",label:"Yes, it is finished"},{value:"almost",label:"Almost done"},{value:"need_help",label:"I need help with the script"},{value:"not_yet",label:"Not yet"}],D=[{value:"hour",label:"Within the next hour"},{value:"today",label:"Later today"},{value:"tomorrow",label:"Tomorrow"},{value:"this_week",label:"This week"}];function ue({consentWording:i,privacyUrl:m,termsUrl:l}){const[s,a]=x.useState(!1),[n,p]=x.useState(null),[y,j]=x.useState({}),[r,N]=x.useState({name:"",email:"",phone:"",script_status:"",call_when:"",about:"",call_consent:!1,sms_consent:!1,website:""}),o=(t,u)=>N(h=>({...h,[t]:u})),c=t=>y[t]?.[0],_=async t=>{t.preventDefault(),a(!0),j({});try{const{data:u}=await I.store(r);p(u.message)}catch(u){const h=u?.response?.data?.errors;h?(j(h),g.error("Please check the highlighted fields.")):g.error("Could not send your request. Try again, or email [email protected].")}finally{a(!1)}};return(0,e.jsxs)("div",{className:"min-h-screen bg-zinc-950 text-zinc-100",children:[(0,e.jsx)(R,{title:"Book a call about your script",description:"Tell us about your script and we'll call you to plan how to turn it into a film."}),(0,e.jsx)(B,{}),(0,e.jsxs)("main",{className:"mx-auto w-full max-w-2xl px-5 pb-24 pt-28",children:[(0,e.jsxs)("div",{className:"mb-10 text-center",children:[(0,e.jsx)("div",{className:"mx-auto mb-5 flex h-12 w-12 items-center justify-center rounded-xl bg-zinc-900 ring-1 ring-zinc-800",children:(0,e.jsx)(F,{className:"h-6 w-6 text-amber-400"})}),(0,e.jsx)("h1",{className:"text-3xl font-semibold tracking-tight sm:text-4xl",children:"Book a call about your script"}),(0,e.jsx)("p",{className:"mx-auto mt-3 max-w-lg text-zinc-400",children:"Tell us what you're making. We'll call you and plan how to turn it into a film — storyboards, shots, voices and sound. Fifteen minutes, nothing to prepare."})]}),n?(0,e.jsxs)("div",{className:"rounded-xl border border-emerald-800/60 bg-emerald-950/40 p-8 text-center",role:"status","aria-live":"polite",children:[(0,e.jsx)(A,{className:"mx-auto mb-4 h-10 w-10 text-emerald-400"}),(0,e.jsx)("h2",{className:"text-xl font-medium",children:n}),(0,e.jsxs)("p",{className:"mt-2 text-sm text-zinc-400",children:["We'll ring from ",(0,e.jsx)("span",{className:"font-mono",children:"+1 218 541 2683"})," ","— worth saving so you know it's us."]})]}):(0,e.jsxs)("form",{onSubmit:_,noValidate:!0,className:"space-y-6",children:[(0,e.jsx)(d,{label:"Your name",htmlFor:"name",error:c("name"),children:(0,e.jsx)(b,{id:"name",icon:(0,e.jsx)(P,{className:"h-4 w-4"}),value:r.name,onChange:t=>o("name",t.target.value),placeholder:"Your name",autoComplete:"name",required:!0})}),(0,e.jsx)(d,{label:"Email",htmlFor:"email",error:c("email"),children:(0,e.jsx)(b,{id:"email",type:"email",icon:(0,e.jsx)(C,{className:"h-4 w-4"}),value:r.email,onChange:t=>o("email",t.target.value),placeholder:"[email protected]",autoComplete:"email",required:!0})}),(0,e.jsx)(d,{label:"Phone number",htmlFor:"phone",error:c("phone"),hint:"Include your country code so we ring the right place.",children:(0,e.jsx)(b,{id:"phone",type:"tel",icon:(0,e.jsx)(T,{className:"h-4 w-4"}),value:r.phone,onChange:t=>o("phone",t.target.value),placeholder:"+1 555 123 4567",autoComplete:"tel",required:!0})}),(0,e.jsx)(d,{label:"Do you have a finished script?",htmlFor:"script_status",error:c("script_status"),children:(0,e.jsx)(f,{name:"script_status",options:Y,value:r.script_status,onChange:t=>o("script_status",t)})}),(0,e.jsx)(d,{label:"When can we call you?",htmlFor:"call_when",error:c("call_when"),children:(0,e.jsx)(f,{name:"call_when",options:D,value:r.call_when,onChange:t=>o("call_when",t)})}),(0,e.jsx)(d,{label:"Anything about the film?",htmlFor:"about",error:c("about"),optional:!0,children:(0,e.jsx)(L,{id:"about",rows:3,value:r.about,onChange:t=>o("about",t.target.value),placeholder:"A drama about two brothers, about 90 pages."})}),(0,e.jsxs)("div",{className:"hidden","aria-hidden":"true",children:[(0,e.jsx)("label",{htmlFor:"website",children:"Leave this empty"}),(0,e.jsx)("input",{id:"website",type:"text",tabIndex:-1,autoComplete:"off",value:r.website,onChange:t=>o("website",t.target.value)})]}),(0,e.jsxs)("fieldset",{className:"rounded-xl border border-zinc-800 bg-zinc-900/50 p-5",children:[(0,e.jsx)("legend",{className:"px-2 text-sm font-medium text-zinc-300",children:"Calls and texts"}),(0,e.jsx)(v,{id:"call_consent",checked:r.call_consent,onChange:t=>o("call_consent",t),error:c("call_consent"),children:i}),(0,e.jsx)(v,{id:"sms_consent",checked:r.sms_consent,onChange:t=>o("sms_consent",t),error:c("sms_consent"),className:"mt-4",children:"I agree to re
1ceive text messages from mStudio at the number above, including automated messages about my call. Reply STOP to opt out at any time."}),(0,e.jsxs)("p",{className:"mt-4 text-xs leading-relaxed text-zinc-500",children:["See our"," ",(0,e.jsx)("a",{href:m,className:"underline hover:text-zinc-300",children:"Privacy Policy"})," ","and"," ",(0,e.jsx)("a",{href:l,className:"underline hover:text-zinc-300",children:"Terms of Service"}),"."]})]}),(0,e.jsx)(E,{type:"submit",disabled:s,className:"w-full justify-center",children:s?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(k,{className:"h-4 w-4 animate-spin"}),"Sending…"]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(S,{className:"h-4 w-4"}),"Request my call"]})})]})]}),(0,e.jsx)(W,{})]})}function d({label:i,htmlFor:m,error:l,hint:s,optional:a,children:n}){return(0,e.jsxs)("div",{children:[(0,e.jsxs)("label",{htmlFor:m,className:"mb-2 flex items-baseline gap-2 text-sm font-medium text-zinc-300",children:[i,a&&(0,e.jsx)("span",{className:"text-xs font-normal text-zinc-500",children:"optional"})]}),n,s&&!l&&(0,e.jsx)("p",{className:"mt-1.5 text-xs text-zinc-500",children:s}),l&&(0,e.jsx)("p",{className:"mt-1.5 text-xs text-red-400",role:"alert",children:l})]})}function f({name:i,options:m,value:l,onChange:s}){return(0,e.jsx)("div",{className:"grid gap-2 sm:grid-cols-2",children:m.map(a=>{const n=l===a.value;return(0,e.jsxs)("label",{className:`flex cursor-pointer items-center gap-3 rounded-lg border px-4 py-3 text-sm transition-colors duration-150 ${n?"border-amber-500/60 bg-amber-500/10 text-zinc-100":"border-zinc-800 bg-zinc-900/40 text-zinc-300 hover:border-zinc-700"}`,children:[(0,e.jsx)("input",{type:"radio",name:i,value:a.value,checked:n,onChange:()=>s(a.value),className:"h-4 w-4 shrink-0 accent-amber-500"}),a.label]},a.value)})})}function v({id:i,checked:m,onChange:l,error:s,className:a="",children:n}){return(0,e.jsxs)("div",{className:a,children:[(0,e.jsxs)("label",{htmlFor:i,className:"flex cursor-pointer items-start gap-3",children:[(0,e.jsx)("input",{id:i,type:"checkbox",checked:m,onChange:p=>l(p.target.checked),className:"mt-0.5 h-4 w-4 shrink-0 accent-amber-500"}),(0,e.jsx)("span",{className:"text-xs leading-relaxed text-zinc-400",children:n})]}),s&&(0,e.jsx)("p",{className:"ml-7 mt-1.5 text-xs text-red-400",role:"alert",children:s})]})}export{ue 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.