PageSourceSearch

https://eventive.org/_next/static/chunks/pages/filmmarketingassistant-0eff508aceb36ebf.js

js eventive.org collected 2026-09-24 08:27:27 UTC 11,477 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{9480:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/filmmarketingassistant",function(){return a(6821)}])},6271:function(e,t,a){"use strict";var s=a(5893);a(7294),t.Z=e=>{let{isOpen:t}=e;return t?(0,s.jsxs)("div",{className:"fixed inset-0 flex items-center justify-center z-50",children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-600 opacity-50"}),(0,s.jsx)("div",{className:"relative bg-white rounded-lg px-16 py-10 shadow-md",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-5 max-w-lg text-center text-gray-600",children:[(0,s.jsx)("p",{className:"text-3xl lg:text-4xl font-bold",children:"Thank You!"}),(0,s.jsx)("p",{className:"lg:text-lg",children:"Your form has been submitted successfully. You’ll receive an email confirmation shortly."}),(0,s.jsx)("a",{href:"/",h:!0,className:"px-10 py-4 text-white bg-red-600 hover:bg-red-700 rounded-md cursor-pointer mt-6",children:"Go to Homepage"})]})})]}):null}},1959:function(e,t,a){"use strict";a.d(t,{Z:function(){return PageHeader}});var s=a(5893),i=a(1664),n=a.n(i);function PageHeader(e){let{label:t,labelHref:a=null,headline:i,subhead:l,isCaseStudies:r=!1}=e;return(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"max-w-screen-xl px-6 mx-auto text-center sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"max-w-3xl mx-auto lg:max-w-none",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold leading-6 tracking-wider text-gray-600 uppercase ".concat(r?"text-red-link":"text-gray-600"),children:a?(0,s.jsx)(n(),{href:a,className:"hover:text-gray-800",children:t}):t}),(0,s.jsx)("div",{className:"mt-2 text-3xl font-extrabold leading-9 text-gray-800 sm:text-4xl sm:leading-10 lg:text-5xl lg:leading-none ".concat(r?"mb-5":""),children:i}),r?(0,s.jsx)("div",{className:"max-w-4xl mx-auto mt-2 text-xl leading-7 text-gray-600",dangerouslySetInnerHTML:{__html:l}}):(0,s.jsx)(s.Fragment,{children:"object"==typeof l?(0,s.jsx)("div",{className:"max-w-4xl mx-auto mt-2 text-xl leading-7 text-gray-600",children:l}):(0,s.jsx)("div",{className:"max-w-4xl mx-auto mt-2 text-xl leading-7 text-gray-600",dangerouslySetInnerHTML:{__html:l}})})]})})})}},1121:function(e,t,a){"use strict";a.d(t,{Z:function(){return PageHeader}});var s=a(5893);function PageHeader(e){let{label:t,labelHref:a,headline:i,subhead:n}=e;return(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"max-w-screen-xl mx-auto sm:px-6",children:(0,s.jsxs)("div",{className:"flex flex-col-reverse lg:flex-row max-w-3xl mx-auto lg:max-w-none",children:[(0,s.jsxs)("div",{className:"lg:w-1/2 px-6 lg:px-0 flex flex-col justify-center items-center py-8 lg:pr-22 lg:py-24",children:[(0,s.jsx)("p",{className:"lg:mt-2 text-3xl leading-9 font-extrabold text-gray-800 sm:text-4xl sm:leading-10 lg:text-5xl lg:leading-none",children:i}),(0,s.jsx)("p",{className:"mt-4 lg:mt-12 text-xl leading-7 text-gray-600 mx-auto max-w-4xl",dangerouslySetInnerHTML:{__html:n}})]}),(0,s.jsx)("div",{className:"lg:w-1/2",children:(0,s.jsx)("img",{className:"object-cover lg:h-full",style:{maxHeight:"720px"},src:"/images/features/whitepaper.png",alt:"hero"})})]})})})}a(1664)},6821:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return FilmMarketingAssistant}});var s=a(5893),i=a(4184),n=a.n(i),l=a(9008),r=a.n(l),m=a(7294);a(6271);var c=a(9584);function FilmMarketingAssistant(){let[e,t]=(0,m.useState)({organization:"",first_name:"",last_name:"",email:"",terms_agree:!1}),[a,i]=(0,m.useState)(!1),[l,d]=(0,m.useState)(!1),[o,x]=(0,m.useState)(!1),[u,g]=(0,m.useState)(!1),[h,p]=(0,m.useState)(!1),[f,v]=(0,m.useState)(null);var j=null;let w=e.first_name&&e.last_name&&e.email&&e.organization&&e.terms_agree,updateValues=a=>{t({...e,...a})},saveMAUser=async()=>{try{let t=await fetch("".concat("https://api.eventive.org/","/marketing_assistant/users?api_key=").concat("27d6c3437380117f7da2c3b9213ecf64"),{method:"POST",body:JSON.stringify({first_name:e.first_name,last_name:e.last_name,email:e.email,org:e.organization,type:"film-marketing-assistant",created_at:new Date}),headers:{"Content-type":"application/json","x-eventive-client":!0}});(t=await t.json()).error?(i(!1),g(t.error.message),x(!1)):(v(t.maUser._id),j=t.maUser._id)}catch(e){throw Error(e||"An unknown error occurred.")}}
1,setCookie=(e,t,a)=>{let s=new Date;s.setTime(s.getTime()+864e5*a);let i="expires="+s.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"},getCookie=e=>{let t=e+"=",a=decodeURIComponent(document.cookie).split(";");for(let e=0;e<a.length;e++){let s=a[e];for(;" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(t))return s.substring(t.length,s.length)}return""},checkCookie=()=>{let e=getCookie("filmAssistantValid");""!==e?(v(e),i(!0)):i(!1)};(0,m.useEffect)(()=>{checkCookie()});let onSubmit=async t=>{t.preventDefault(),w&&(x(!0),g(null),await saveMAUser(),j&&grecaptcha.ready(async()=>{try{await grecaptcha.execute("6LfTBeMZAAAAACtCQDuA0QJXdXFzDpuAQ3UK5TAV",{action:"submit"})}catch(e){g(e.message),x(!1);return}({...e});try{let e=getCookie("filmAssistantValid");""===e&&(setCookie("filmAssistantValid",j,365),d(!0)),p(!0),x(!1),window.scrollTo(0,0)}catch(e){g(e.message),x(!1)}}))};return(0,s.jsxs)(c.Z,{title:"Film Marketing Assistant",useAnimatedBackground:!0,children:[(0,s.jsx)(r(),{children:(0,s.jsx)("script",{src:"https://www.google.com/recaptcha/api.js?render=".concat("6LfTBeMZAAAAACtCQDuA0QJXdXFzDpuAQ3UK5TAV")})}),(0,s.jsx)("div",{className:"bg-transparent mt-4 relative max-w-l mx-auto px-6 sm:px-6 lg:px-8 lg:max-w-screen-lg",children:(0,s.jsxs)("div",{className:"border border-black-500bg-white rounded-3xl",id:"marketing-assistant-frame-container",children:[(0,s.jsx)("div",{className:"pt-14 pb-12 text-center",id:"fma-header",children:(0,s.jsx)("div",{className:"text-3xl font-extrabold leading-9 text-gray-800 sm:text-4xl sm:leading-10 lg:text-5xl lg:leading-none",children:"Film Marketing Assistant"})}),a?(0,s.jsx)("div",{id:"marketing-assistant",children:(0,s.jsx)("iframe",{id:"filmMarketingAssistant",title:"Film Marketing Assistant",width:"100%",height:"900",allow:"microphone",src:"https://www.filmmarketingassistant.com/?id=".concat(f)})}):(0,s.jsx)("div",{id:"marketing-assistant-form",children:(0,s.jsx)("div",{className:"pb-16 px-4 sm:px-6 lg:px-8 lg:pb-24",children:(0,s.jsx)("div",{className:"relative max-w-xl mx-auto",children:(0,s.jsx)("div",{className:"embedded-content relative max-w-xl mx-auto px-6 sm:px-6 lg:px-8 lg:max-w-screen-lg",children:(0,s.jsx)("div",{children:h?(0,s.jsxs)("div",{className:"mt-12 sm:mt-24 text-center",children:[(0,s.jsx)("div",{className:"text-xl font-semibold text-gray-700 mb-2 leading-tight",children:"Thanks, we've received your information."}),(0,s.jsx)("div",{className:"inline sm:block text-gray-500",children:"Our team will be in touch via email within 1 business day."})," ",(0,s.jsxs)("div",{className:"inline sm:block text-gray-500 sm:mt-1",children:["Questions in the interim? Please"," ",(0,s.jsx)("a",{href:"#",className:"underline hover:opacity-75",onClick:e=>{e.preventDefault(),Intercom("showNewMessage","")},children:"send us a chat"}),"."]})]}):(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{children:"Finding and growing your film's audience just got easier. Eventive's Film Marketing Assistant helps you build complete marketing strategies: audience growth methods, social-media hooks and content planning, press outreach templates and distribution strategies, and more. Fill out the short form below to get started."}),(0,s.jsxs)("form",{onSubmit:onSubmit,onKeyPress:e=>{"Enter"===e.key&&e.preventDefault()},className:"mx-3 grid grid-cols-1 row-gap-6 sm:grid-cols-2 sm:col-gap-8",id:"film-marketing-assistant-form",children:[(0,s.jsxs)("div",{className:"flex items-center sm:col-span-2 mt-6 mb-2",children:[(0,s.jsx)("div",{className:"mt-5 sm:-ml-16 rounded-full h-12 w-12 p-4 flex items-center justify-center text-lg bg-red-500 text-white",children:"➜"}),(0,s.jsxs)("div",{className:"ml-4 flex gap-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"first_name",className:"block text-sm font-medium leading-5 text-gray-700",children:"First name *"}),(0,s.jsx)("div",{className:"mt-1 relative rounded-md shadow-sm",children:(0,s.jsx)("input",{id:"first_name",required:!0,value:e.first_name,onChange:e=>updateValues({first_name:e.target.value}),className:"form-input py-3 px-4 block w-full transition ease-in-out duration-150"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"last_name",className:"block text-sm font-medium leading-5 text-gray-700",children:"Last name *"}),(0,s.jsx)("div",{className:"mt-1 relative rounded-md shadow-sm",children:(0,s.jsx)("input",{id:"last_name",required:!0,value:e.last_name,onChange:e=>updateValues({last_name:e.target.value}),className:"form-input py-3 px-4 block w-full transition ease-in-out duration-150"})})]})]})]}),(0,s.jsxs)("div",{className:"sm:col-span-2",children:[(0,s.jsx)("label",{htmlFor:"organization",className:"block text-sm font-medium leading-5 text-gray-700",children:"Film/Company 
1name *"}),(0,s.jsx)("div",{className:"mt-1 relative rounded-md shadow-sm",children:(0,s.jsx)("input",{id:"organization",value:e.organization,onChange:e=>updateValues({organization:e.target.value}),className:"form-input py-3 px-4 block w-full transition ease-in-out duration-150"})})]}),(0,s.jsxs)("div",{className:"sm:col-span-2",children:[(0,s.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium leading-5 text-gray-700",children:"Email *"}),(0,s.jsx)("div",{className:"mt-1 relative rounded-md shadow-sm",children:(0,s.jsx)("input",{id:"email",required:!0,type:"email",value:e.email,onChange:e=>updateValues({email:e.target.value}),className:"form-input py-3 px-4 block w-full transition ease-in-out duration-150"})})]}),(0,s.jsx)("div",{className:"sm:col-span-2",children:(0,s.jsxs)("div",{className:"mt-1 relative rounded-md shadow-sm",children:[(0,s.jsx)("input",{id:"terms",type:"checkbox",checked:e.terms_agree,onChange:t=>updateValues({terms_agree:!e.terms_agree}),className:"form-checkbox h-4 w-4 text-red-600 transition duration-150 ease-in-out"}),(0,s.jsxs)("label",{htmlFor:"terms",className:"font-medium text-gray-700",children:["\xa0I have read and accept Eventive's\xa0",(0,s.jsx)("a",{href:"/terms",target:"_blank",className:"underline hover:opacity-75",children:"Terms of Use"})," ","and"," ",(0,s.jsx)("a",{href:"/privacy",target:"_blank",className:"underline hover:opacity-75",children:"Privacy Policy"}),"."]})]})}),(0,s.jsx)("div",{className:"mt-6 sm:col-span-2",children:(0,s.jsx)("span",{className:"w-full inline-flex rounded-md shadow-sm",children:(0,s.jsx)("button",{type:"submit",className:n()("w-full inline-flex items-center justify-center px-6 py-3 border border-transparent text-base leading-6 font-medium rounded-md text-white bg-red-600 hover:bg-red-500 focus:outline-none focus:border-red-700 focus:shadow-outline-red active:bg-red-700 transition ease-in-out duration-150",!w&&"opacity-50 select-none pointer-events-none"),children:"Submit"})})}),u?(0,s.jsxs)("div",{className:"sm:col-span-2 text-center",children:[u," Having trouble?"," ",(0,s.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),Intercom("showNewMessage","")},className:"underline hover:opacity-75",children:"Start a live chat."})]}):null]})]})})})})})})]})})]})}a(1959),a(1121),a(4298)}},function(e){e.O(0,[577,584,774,888,179],function(){return e(e.s=9480)}),_N_E=e.O()}]);

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.