1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f21a24e0-eecb-442f-bb84-ade3b2728673",e._sentryDebugIdIdentifier="sentry-dbid-f21a24e0-eecb-442f-bb84-ade3b2728673")}()}catch(e){}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];if(null!=a)for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:frontend-applovin":!0})}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2216],{9952:(e,r,a)=>{a.d(r,{default:()=>t.a});var n=a(31783),t=a.n(n)},31783:(e,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var a in r)Object.defineProperty(e,a,{enumerable:!0,get:r[a]})}(r,{default:function(){return i},getImageProps:function(){return l}});let n=a(70914),t=a(61785),o=a(19998),s=n._(a(18059));function l(e){let{props:r}=(0,t.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(r))void 0===a&&delete r[e];return{props:r}}let i=o.Image},74313:(e,r,a)=>{a.d(r,{A:()=>b});var n=a(40166),t=a(38438),o=a(18666),s=a(1685),l=a(6559),i=a(64712),m=a.n(i),d=a(79323),c=a(36179),u=a(28698),p=a(95435),g=a(13517),x=a(40086);let v={width:"100%","& .MuiInputBase-input":{color:"var(--items-primary)"},"& .MuiInputBase-input::placeholder":{color:"var(--items-secondary)",opacity:1}},y={backgroundColor:"var(--surfaces-base)",borderColor:"var(--border-weak)"},h={backgroundColor:"var(--surfaces-alert)",borderColor:"var(--border-base-alert)"},_=e=>new URLSearchParams(window.location.search).get(e)||"";function b(e){let{onSchedule:r}=e,{t:a}=(0,x.B)(),i=(0,u.A)(c.RN),b=(0,u.A)(c.PP),f=(0,u.A)(c._D),R=(0,u.A)(c.WR),[F,w]=(0,t.useState)(d.Qb),{control:j,handleSubmit:P,formState:{isSubmitting:D},reset:T,setValue:N}=(0,o.mN)({defaultValues:{company:"",firstname:"",lastname:"",email:"",phone:"",ph
1one_consent:!1,website:"",paid_social_accounts_managed:"",monthly_paid_social_spend:"",client_verticals:[],client_verticals_other:"",what_do_you_want_to_speak_about:"",utm_campaign:"",utm_content:"",utm_medium:"",utm_keyword:"",utm_source:""}}),L=(0,o.FH)({control:j,name:"client_verticals",defaultValue:[]}),E=(0,o.FH)({control:j,name:"phone",defaultValue:""}),A=L.includes(c.$d),S=!!(null==E?void 0:E.trim());(0,t.useEffect)(()=>{N("utm_campaign",_("utm_campaign")),N("utm_content",_("utm_content")),N("utm_medium",_("utm_medium")),N("utm_keyword",_("utm_keyword")),N("utm_source",_("utm_source"));let e=(()=>{if("undefined"==typeof document)return"";let e=document.cookie.match(/(?:^|;\s*)axon_prefill_email=([^;]*)/);return e?decodeURIComponent(e[1]):""})();e&&N("email",e)},[N]);let k=async e=>{try{let a=e.phone.trim()?"".concat(F," ").concat(e.phone.trim()):"",n=await fetch("/api/hubspot/demo-request-agency",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({company:e.company,firstname:e.firstname,lastname:e.lastname,email:e.email,phone:a,phone_consent:e.phone_consent,website:e.website,paid_social_accounts_managed:e.paid_social_accounts_managed,monthly_paid_social_spend:e.monthly_paid_social_spend,client_verticals:e.client_verticals.join(";"),client_verticals_other:e.client_verticals.includes(c.$d)?e.client_verticals_other:void 0,what_do_you_want_to_speak_about:e.what_do_you_want_to_speak_about,utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_medium:e.utm_medium,utm_keyword:e.utm_keyword,utm_source:e.utm_source,pageUri:window.location.href,pageName:"Request Demo - Agency"})}),t=await n.json();if(!n.ok||!t.success)return void console.error("Form submission error:",t);(0,p.A)({amount:c.Ny,currency:"USD",event:g.B.DEMO_FORM_SUBMIT}),T(),w(d.Qb),r({bookingDetails:{advertisingDestination:"agency",email:e.email,firstName:e.firstname,lastName:e.lastname,notes:e.what_do_you_want_to_speak_about,url:e.website},eventTypeUri:c.c0})}catch(e){console.error("Form submission error:",e)}};return(0,n.jsxs)("form",{onSubmit:P(k),className:"grid gap-[24px]",children:[(0,n.jsx)(o.xI,{control:j,name:"company",rules:{required:a("DemoFormAgencyNameRequired")},render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.lx,{muiTextFieldProps:{...t,type:"text",autoComplete:"organization",sx:v},nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormAgencyNameLabel"),nsPlaceholder:a("DemoFormAgencyNamePlaceholder"),nsSize:"lg",nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,n.jsxs)("div",{className:"flex flex-col md:flex-row gap-[8px]",children:[(0,n.jsx)(o.xI,{control:j,name:"firstname",rules:{required:a("DemoFormFirstNameRequired")},render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.lx,{muiTextFieldProps:{...t,type:"text",autoComplete:"given-name",sx:v},nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormFirstNameLabel"),nsPlaceholder:a("DemoFormFirstNameLabel"),nsSize:"lg",nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,n.jsx)(o.xI,{control:j,name:"lastname",rules:{required:a("DemoFormLastNameRequired")},render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.lx,{muiTextFieldProps:{...t,type:"text",autoComplete:"family-name",sx:v},nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormLastNameLabel"),nsPlaceholder:a("DemoFormLastNameLabel"),nsSize:"lg",nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}})]}),(0,n.jsx)(o.xI,{control:j,name:"email",rules:{required:a("DemoFormWorkEmailRequired"),pattern:{value:/^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$/,message:a("DemoFormEmailInvalid")}},render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.lx,{muiTextFieldProps:{...t,type:"email",autoComplete:"email",sx:v},nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormWorkEmailLabel"),nsPlaceholder:a("DemoFormWorkEmailPlaceholder"),nsSize:"lg",nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,n.jsx)(o.xI,{control:j,name:"phone",render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.RD,{nsCountryDialCodes:d.F4,nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormPhoneLabel"),nsSelectProps:{muiPopperProps:{disablePortal:!0},nsValue:F,onChange:(e,r)=>{let a=Array.isArray(r)?r[0]:r,n="string"==typeof a?a:null==a?void 0:a.value;n&&w(n)}},nsSize:s.or.LG,nsSubLabel:a("DemoFormOptional"),nsTextFieldProps:{muiTextFieldProps:{...t,type:"tel",autoComplete:"tel",inputMode:"numeric",onChange:e=>{let{dialCode:r,phone:a}=(0,d.Kq)(e.target.value);r&&w(r),t.onChange(a)},sx:v},nsPlaceholder:"000 000 0000"},nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%","& ._lead-slot_iwtbh_385":{paddingTop:"8px"}}})}}),S&&(0,n.jsx)(o.xI,{control:j,name:"phone_consent",rules:{validate:e=>e||a("DemoFormPhoneConsentRequired")},render:e=>{let{field:r,fieldState:t}=e;return(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-[8px] border p-[12px]",style:t.invali
1d?{...y,...h}:y,children:[(0,n.jsx)("span",{className:"flex shrink-0 items-center justify-center pt-[2px]",children:(0,n.jsx)(s.Sc,{checked:r.value,nsTint:t.invalid?s.ey.ALERT:s.ey.NEUTRAL,onChange:e=>r.onChange(e.target.checked),sx:{padding:0}})}),(0,n.jsxs)("span",{className:"text-[14px] font-[500] leading-[1.5] text-[var(--items-secondary)]",children:[a("DemoFormPhoneConsentBody")," ",(0,n.jsx)("a",{className:"text-[var(--items-primary-accent)]",href:"https://legal.applovin.com/privacy/",target:"_blank",children:a("DemoFormPrivacyPolicy")}),". ",(0,n.jsx)("a",{className:"text-[var(--items-primary-accent)]",href:"https://legal.applovin.com/terms/",target:"_blank",children:a("DemoFormTermsOfUse")}),"."]})]}),t.error&&(0,n.jsxs)("div",{className:"flex items-center",style:{color:"var(--items-primary-alert)",gap:"var(--gap-xs)",paddingTop:"var(--padding-xs)"},children:[(0,n.jsx)(s.rS,{nsIcon:"error",nsSize:s.or.XS,style:{color:"inherit"}}),(0,n.jsx)(s.Vn,{className:"m-0",style:{color:"inherit",font:"var(--typography-body-sm)"},children:t.error.message})]})]})}}),(0,n.jsx)(o.xI,{control:j,name:"website",rules:{required:a("DemoFormAgencyWebsiteRequired"),validate:e=>((e,r)=>{let a=e.startsWith("http://")||e.startsWith("https://")?e:"https://".concat(e);try{let e=new URL(a);if(e.username||e.password||!e.hostname.replace(/\.+$/,"").includes("."))return r}catch(e){return r}return!0})(e,a("DemoFormWebsiteUrlInvalid"))},render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.lx,{muiTextFieldProps:{...t,type:"text",autoComplete:"url",sx:v},nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormAgencyWebsiteLabel"),nsPlaceholder:a("DemoFormAgencyWebsitePlaceholder"),nsPrefix:"https://",nsSize:"lg",nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,n.jsx)(o.xI,{control:j,name:"paid_social_accounts_managed",rules:{required:a("DemoFormSelectOptionRequired")},render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.mn,{muiPopperProps:{disablePortal:!0},sx:v,nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormPaidSocialAccountsLabel"),nsOptions:i,nsPlaceholder:a("DemoFormSelectRange"),nsSize:"lg",nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,onChange:(e,r)=>{let a="string"==typeof r?r:(null==r?void 0:r.value)||"";t.onChange(a)},nsInitialValue:i.find(e=>e.value===t.value)})}}),(0,n.jsx)(o.xI,{control:j,name:"monthly_paid_social_spend",render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.mn,{muiPopperProps:{disablePortal:!0},sx:v,nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormAgencySpendLabel"),nsOptions:b,nsPlaceholder:a("DemoFormSelectRange"),nsSize:"lg",nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,onChange:(e,r)=>{let a="string"==typeof r?r:(null==r?void 0:r.value)||"";t.onChange(a)},nsInitialValue:b.find(e=>e.value===t.value)})}}),(0,n.jsx)(o.xI,{control:j,name:"client_verticals",rules:{validate:e=>e.length>0||a("DemoFormVerticalsRequired")},render:e=>{let{field:r,fieldState:t}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,n.jsxs)("div",{className:"font-[600]",children:[a("DemoFormVerticalsQuestion")," ",(0,n.jsx)("span",{className:"font-[400] text-[var(--items-secondary)]",children:a("DemoFormSelectAllThatApply")})]}),(0,n.jsx)("div",{className:"flex flex-col gap-[8px]",children:f.map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-center gap-3 rounded-[8px] border border-[var(--border-weak)] bg-transparent p-[12px] transition-colors hover:bg-[var(--surfaces-base-hover)]",style:t.invalid?{borderColor:"var(--border-base-alert)"}:void 0,children:[(0,n.jsx)(s.Sc,{checked:r.value.includes(e.value),nsTint:t.invalid?s.ey.ALERT:s.ey.NEUTRAL,onChange:()=>{let a=r.value.includes(e.value)?r.value.filter(r=>r!==e.value):[...r.value,e.value];r.onChange(a),e.value===c.$d&&r.value.includes(c.$d)&&N("client_verticals_other","")},sx:{padding:0}}),(0,n.jsx)("span",{className:"text-[16px] font-[500] leading-[1.2] text-[var(--items-primary)]",children:e.label})]},e.value))}),t.error&&(0,n.jsxs)("div",{className:"flex items-center",style:{color:"var(--items-primary-alert)",gap:"var(--gap-xs)",paddingTop:"var(--padding-xs)"},children:[(0,n.jsx)(s.rS,{nsIcon:"error",nsSize:s.or.XS,style:{color:"inherit"}}),(0,n.jsx)(s.Vn,{className:"m-0",style:{color:"inherit",font:"var(--typography-body-sm)"},children:t.error.message})]})]})}}),A&&(0,n.jsx)(o.xI,{control:j,name:"client_verticals_other",rules:{required:a("DemoFormVerticalOtherLabel")},render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.lx,{muiTextFieldProps:{...t,multiline:!0,rows:3,sx:v},nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormVerticalOtherLabel"),nsPlaceholder:a("DemoFormVerticalOtherPlaceholder"),nsSize:"lg",nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,n.jsx)(o.xI,{control:j,name:"what_do_you_want_to_speak_about",rules:{required:a("DemoFormTopicRequired")},render:e=>{var r;let{field:t,fieldState:o}=e;return(0,n.jsx)(l.mn,{muiPopperProps:{disablePortal:!0},sx:v,nsErrorMessage:null==(r=o.error)?void 0:r.message,nsLabel:a("DemoFormTopicLabel"),nsOptions:R,nsPlaceholder:a("DemoFormSelectTopic"),nsSize:"lg",nsTint:o.invalid?s.ey.ERROR:s.ey.NEUTRAL,onChange:(e,r)=>{let a="string"==typeof r?r:(null==r?void 0:r.value)||"";t.onChange(a)},nsInitialValue:R.find(e=>e.value===t.value)})}}),(0,n.jsx)(s.$n,{type:"submit",nsLabel:D?a("DemoFormSubmitting"):a("DemoFormSubmit"),nsImportance:s.z_.PRIMARY,nsVariant:s.A
1k.BASIC,nsSize:s.or.XXL,disabled:D}),(0,n.jsxs)("p",{className:"text-[14px] leading-[21px] text-[var(--items-secondary)] m-0",children:[a("DemoFormLegalBody")," ",(0,n.jsx)(m(),{href:"https://legal.applovin.com/privacy/",className:"text-[var(--items-primary-accent)]",target:"_blank",rel:"noopener noreferrer",children:a("DemoFormPrivacyPolicy")}),"."," ",(0,n.jsx)(m(),{href:"https://legal.applovin.com/promotional-terms/",className:"text-[var(--items-primary-accent)]",target:"_blank",rel:"noopener noreferrer",children:a("DemoFormTermsApply")}),"."]})]})}}}]);
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.