PageSourceSearch

https://applovin.com/_next/static/chunks/1861.3a8fc44d9e1ad306.js

js applovin.com collected 2026-10-01 08:34:46 UTC 33,332 bytes, 1 lines download raw bytes

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]="fc9c0ba3-b45d-40eb-9d7b-796e1a7dff00",e._sentryDebugIdIdentifier="sentry-dbid-fc9c0ba3-b45d-40eb-9d7b-796e1a7dff00")}()}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 l in a)a.hasOwnProperty(l)&&(e[l]=a[l])}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([[1861],{21861:(e,r,a)=>{a.r(r),a.d(r,{default:()=>O});var l=a(40166),n=a(38438),t=a(9952),s=a(1685),o=a(34050),i=a(26128),d=a(54978),c=a(36179),m=a(92630);let u="calendly-widget-script";function p(e){let{calendlyUrl:r,className:a=""}=e,t=(0,n.useRef)(null),[s,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=e=>{(function(e){if("https://calendly.com"!==e.origin)return!1;let r=e.data;return"object"==typeof r&&null!==r&&"calendly.event_scheduled"===r.event})(e)&&((0,m.J)(),window.location.href=(0,c.jJ)())};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]),(0,n.useEffect)(()=>{if(!r||!t.current)return;let e=!1,a=t.current;return a.innerHTML="",o(!1),(()=>{if(window.Calendly)return Promise.resolve();let e=document.getElementById(u);return new Promise((r,a)=>{let l=null!=e?e:document.createElement("script");l.addEventListener("load",()=>r(),{once:!0}),l.addEventListener("error",()=>a(Error("Calendly failed to load")),{once:!0}),e||(l.id=u,l.src="https://assets.calendly.com/assets/external/widget.js",l.async=!0,document.body.appendChild(l))})})().then(()=>{!e&&window.Calendly&&window.Calendly.initInlineWidget({parentElement:a,url:(e=>{try{let r=new URL(e);return r.searchParams.set("hide_gdpr_banner","1"),r.searchParams.set("primary_color","000103"),r.toString().replace(/\+/g,"%20")}catch(r){return e}})(r)})}).catch(()=>{e||o(!0)}),()=>{e=!0,a.innerHTML=""}},[r]),(0,l.jsx)("div",{className:"w-full ".concat(a),children:s?(0,l.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-[16px] px-[24px] text-center",children:[(0,l.jsx)("p",{className:"m-0 text-[18px] leading-[27px] font-medium",children:"We could not load the scheduler."}),(0,l.jsx)("a",{className:"rounded-[8px] bg-[var(--items-primary)] px-[20px] py-[12px] text-[16px] leading-[20px] font-semibold text-[var(--bg-canvas)] no-underline",href:r,rel:"noopener noreferrer",target:"_blank",children:"Open Calendly"})]}):(0,l.jsx)("div",{ref:t,className:"h-full w-full [&_iframe]:h-full [&_iframe]:w-full"})})}var x=a(74313),h=a(36424),g=a(18666),v=a(64712),y=a.n(v),f=a(6559),b=a(98450),_=a(28698),j=a(79323),w=a(39054),N=a(95435),k=a(13517),S=a(40086);let R={width:"100%","& .MuiInputBase-input":{color:"var(--items-primary)"},"& .MuiInputBase-input::placeholder":{color:"var(--items-secondary)",opacity:1}},C={backgroundColor:"var(--surfaces-base)",borderColor:"var(--border-weak)"},T={backgroundColor:"var(--surfaces-alert)",borderColor:"var(--border-base-alert)"},D=e=>new URLSearchParams(window.location.search).get(e)||"",A={client_verticals:[],client_verticals_other:"",company:"",firstname:"",lastname:"",monthly_paid_social_spend:"",paid_social_accounts_managed:"",phone:"",ph
1one_consent:!1,utm_campaign:"",utm_content:"",utm_keyword:"",utm_medium:"",utm_source:"",website:"",what_do_you_want_to_speak_about:""};function P(e){let{context:r,defaultAnswers:a,onBooked:t,onChangeTime:i,onSlotUnavailable:d,selection:u}=e,{t:p}=(0,S.B)(),x=(0,_.A)(c.RN),h=(0,_.A)(c.PP),v=(0,_.A)(c._D),P=(0,_.A)(c.WR),[E,F]=(0,n.useState)((null==a?void 0:a.phoneDialCode)||j.Qb),[L,M]=(0,n.useState)(""),{control:I,getValues:B,handleSubmit:O,setValue:z,watch:U,formState:{isSubmitting:q}}=(0,g.mN)({mode:"onBlur",defaultValues:{...A,...null!=a?a:{}}});(0,n.useEffect)(()=>{z("utm_campaign",D("utm_campaign")),z("utm_content",D("utm_content")),z("utm_medium",D("utm_medium")),z("utm_keyword",D("utm_keyword")),z("utm_source",D("utm_source"))},[z]);let V=U("phone"),W=!!(null==V?void 0:V.trim()),J=U("client_verticals").includes(c.$d),H=(0,b.A)(u.startTime,u.timezone),X=async e=>{M("");let a=e.phone.trim()?"".concat(E," ").concat(e.phone.trim()):"",l=e.website.trim(),n=null;try{let a=await fetch("/api/calendly/book",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({advertisingDestination:"agency",email:r.email,eventTypeUri:c.c0,firstName:e.firstname,lastName:e.lastname,notes:e.what_do_you_want_to_speak_about,startTime:u.startTime,timezone:u.timezone,url:l})});n=await a.json()}catch(e){n=null}if(!(null==n?void 0:n.success))return(null==n?void 0:n.error)==="slot_unavailable"?void d({...B(),phoneDialCode:E}):void M(p("BookingDetailsError"));(0,m.J)();try{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:r.email,phone:a,phone_consent:e.phone_consent,website:l,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:J?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:"Agencies - Strategy Call Booked"})})}catch(e){}(0,N.A)({amount:c.Ny,currency:"USD",event:k.B.DEMO_FORM_SUBMIT}),t()};return(0,l.jsxs)("div",{className:"flex h-full min-h-0 w-full flex-col",children:[(0,l.jsx)("div",{className:"shrink-0 px-[16px] pt-[24px] lg:px-[40px] lg:pt-[32px]",children:(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-[450px] flex-col gap-[20px]",children:[(0,l.jsx)("div",{className:"flex justify-center lg:hidden",children:(0,l.jsx)(o.A,{className:"h-[24px] w-auto"})}),H&&(0,l.jsxs)("div",{className:"flex items-center gap-[12px] rounded-[12px] border p-[16px]",style:{backgroundColor:"var(--surfaces-base)",borderColor:"var(--border-weak)"},children:[(0,l.jsx)(s.rS,{nsIcon:"calendar_month",nsSize:s.or.MD,style:{color:"var(--items-primary)"}}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-[2px]",children:[(0,l.jsx)("span",{className:"text-[16px] leading-[1.2] font-[600]",children:H}),(0,l.jsx)("span",{className:"text-[14px] leading-[1.4] text-[var(--items-secondary)]",children:p("BookingCallWithTeamMember",{minutes:u.durationMinutes})})]}),(0,l.jsx)("button",{type:"button",disabled:q,className:"ml-auto shrink-0 border-0 bg-transparent p-0 text-[14px] leading-[1.4] font-[600] underline transition-opacity ".concat(q?"cursor-not-allowed opacity-50":"cursor-pointer hover:opacity-70"),onClick:()=>i({...B(),phoneDialCode:E}),style:{color:"var(--items-link)"},children:p("BookingDetailsChangeTime")})]})]})}),(0,l.jsx)("div",{className:"min-h-0 flex-1 px-[16px] pb-[24px] lg:overflow-y-auto lg:px-[40px] lg:pb-[32px] lg:[scrollbar-gutter:stable]",children:(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-[450px] flex-col gap-[20px]",children:[(0,l.jsx)("h3",{className:"m-0 mt-[48px] text-center text-[28px] leading-[1.1] tracking-[-0.56px]",style:{fontFamily:"var(--font-mont), Mont, sans-serif",fontWeight:600},children:p("BookingDetailsHeading")}),(0,l.jsxs)("form",{onSubmit:O(X),className:"grid gap-[16px]",children:[(0,l.jsx)(g.xI,{control:I,name:"company",rules:{required:p("DemoFormAgencyNameRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.lx,{muiTextFieldProps:{...a,type:"text",autoComplete:"organization",sx:R},nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:p("DemoFormAgencyNameLabel"),nsPlaceholder:p("DemoFormAgencyNamePlaceholder"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,l.jsxs)("div",{className:"grid gap-[16px] md:grid-cols-2",children:[(0,l.jsx)(g.xI,{control:I,name:"firstname",rules:{required:p("DemoFormFirstNameRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.lx,{muiTextFieldProps:{...a,type:"text",autoComplete:"given-name",sx:R},nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:p("DemoFormFirstNameLabel"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,l.jsx)(g.xI,{control:I,name:"lastname",rules:{required:p("DemoFormLastNameRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.lx,{muiTextFieldProps:{...a,type:"text",autoComplete:"family-name",sx:R},nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:p("DemoFormLastNameLabel"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}})]}),(0,l.jsx)(g.xI,{control:I,name:"website",rules:{required:p("DemoFormAgencyWebsiteRequired"),validate:e=>(0,w.wv)(e,p("DemoFormAgencyWebsiteInvalid"))},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.lx,{muiTextFieldProps:{...a,type:"text",autoComplete:"url",sx:R},nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:p("DemoFormAgencyWebsiteLabel"),nsPlaceholder:p("DemoFormAgencyWebsitePlaceholder"),nsPrefix:"https://",nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,l.jsx)(g.xI,{control:I,name:"phone",render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.RD,{nsCountryDialCodes:j.F4,nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:p("DemoFormPhoneLabel"),nsSelectProps:{muiPopperProps:{disablePortal:!0},nsValue:E,onChange:(e,r)=>{let a=Array.isArray(r)?r[0]:r,l="string"==typeof a?a:null==a?void 0:a.value;l&&F(l)}},nsSize:s.or.LG,nsSubLabel:p("DemoFormOptional"),nsTextFieldProps:{muiTextFieldProps:{...a,type:"tel",autoComplete:"tel",inputMode:"numeric",onChange:e=>
1a.onChange((0,j.h2)(e.target.value)),sx:R},nsPlaceholder:"000 000 0000"},nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%","& ._lead-slot_iwtbh_385":{paddingTop:"8px"}}})}}),(0,l.jsx)(g.xI,{control:I,name:"paid_social_accounts_managed",rules:{required:p("DemoFormPaidSocialAccountsRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.mn,{muiPopperProps:{disablePortal:!0},sx:R,nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:p("DemoFormPaidSocialAccountsLabel"),nsOptions:x,nsPlaceholder:p("DemoFormSelectRange"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,onChange:(e,r)=>{let l="string"==typeof r?r:(null==r?void 0:r.value)||"";a.onChange(l)},nsInitialValue:x.find(e=>e.value===a.value)})}}),(0,l.jsx)(g.xI,{control:I,name:"monthly_paid_social_spend",rules:{required:p("DemoFormAgencySpendRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.mn,{muiPopperProps:{disablePortal:!0},sx:R,nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:p("DemoFormAgencySpendLabel"),nsOptions:h,nsPlaceholder:p("DemoFormSelectRange"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,onChange:(e,r)=>{let l="string"==typeof r?r:(null==r?void 0:r.value)||"";a.onChange(l)},nsInitialValue:h.find(e=>e.value===a.value)})}}),(0,l.jsx)(g.xI,{control:I,name:"client_verticals",rules:{validate:e=>e.length>0||p("DemoFormVerticalsRequired")},render:e=>{let{field:r,fieldState:a}=e;return(0,l.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,l.jsxs)("div",{className:"font-[600]",children:[p("DemoFormVerticalsQuestion")," ",(0,l.jsx)("span",{className:"font-[400] text-[var(--items-secondary)]",children:p("DemoFormSelectAllThatApply")})]}),(0,l.jsx)("div",{className:"flex flex-col gap-[8px]",children:v.map(e=>(0,l.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:a.invalid?{borderColor:"var(--border-base-alert)"}:void 0,children:[(0,l.jsx)(s.Sc,{checked:r.value.includes(e.value),nsTint:a.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)&&z("client_verticals_other","")},sx:{padding:0}}),(0,l.jsx)("span",{className:"text-[16px] leading-[1.2] font-[500] text-[var(--items-primary)]",children:e.label})]},e.value))}),a.error&&(0,l.jsxs)("div",{className:"flex items-center",style:{color:"var(--items-primary-alert)",gap:"var(--gap-xs)"},children:[(0,l.jsx)(s.rS,{nsIcon:"error",nsSize:s.or.XS,style:{color:"inherit"}}),(0,l.jsx)(s.Vn,{className:"m-0",style:{color:"inherit",font:"var(--typography-body-sm)"},children:a.error.message})]})]})}}),J&&(0,l.jsx)(g.xI,{control:I,name:"client_verticals_other",rules:{required:p("DemoFormVerticalOtherLabel")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.lx,{muiTextFieldProps:{...a,multiline:!0,rows:3,sx:R},nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:p("DemoFormVerticalOtherLabel"),nsPlaceholder:p("DemoFormVerticalOtherPlaceholder"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,l.jsx)(g.xI,{control:I,name:"what_do_you_want_to_speak_about",rules:{required:p("DemoFormTopicRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.mn,{muiPopperProps:{disablePortal:!0},sx:R,nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:p("DemoFormTopicLabel"),nsOptions:P,nsPlaceholder:p("DemoFormSelectTopic"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,onChange:(e,r)=>{let l="string"==typeof r?r:(null==r?void 0:r.value)||"";a.onChange(l)},nsInitialValue:P.find(e=>e.value===a.value)})}}),W&&(0,l.jsx)(g.xI,{control:I,name:"phone_consent",rules:{validate:e=>e||p("DemoFormPhoneConsentRequired")},render:e=>{let{field:r,fieldState:a}=e;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-[8px] border p-[12px]",style:a.invalid?{...C,...T}:C,children:[(0,l.jsx)("span",{className:"flex shrink-0 items-center justify-center pt-[2px]",children:(0,l.jsx)(s.Sc,{checked:r.value,nsTint:a.invalid?s.ey.ALERT:s.ey.NEUTRAL,onChange:e=>r.onChange(e.target.checked),sx:{padding:0}})}),(0,l.jsxs)("span",{className:"text-[14px] leading-[1.5] font-[500] text-[var(--items-secondary)]",children:[p("DemoFormPhoneConsentBody")," ",(0,l.jsx)("a",{className:"text-[var(--items-primary-accent)]",href:"https://legal.applovin.com/privacy/",target:"_blank",children:p("DemoFormPrivacyPolicy")}),"."," ",(0,l.jsx)("a",{className:"text-[var(--items-primary-accent)]",href:"https://legal.applovin.com/terms/",target:"_blank",children:p("DemoFormTermsOfUse")}),"."]})]}),a.error&&(0,l.jsxs)("div",{className:"flex items-center",style:{color:"var(--items-primary-alert)",gap:"var(--gap-xs)",paddingTop:"var(--padding-xs)"},children:[(0,l.jsx)(s.rS,{nsIcon:"error",nsSize:s.or.XS,style:{color:"inherit"}}),(0,l.jsx)(s.Vn,{className:"m-0",style:{color:"inherit",font:"var(--typography-body-sm)"},children:a.error.message})]})]})}}),L&&(0,l.jsxs)("div",{className:"flex items-start gap-[8px] rounded-[8px] border p-[12px]",role:"alert",style:{backgroundColor:"var(--surfaces-alert)",borderColor:"var(--border-base-alert)",color:"var(--items-primary-alert)"},children:[(0,l.jsx)(s.rS,{nsIcon:"error",nsSize:s.or.SM,style:{color:"inherit"}}),(0,l.jsx)("span",{className:"text-[14px] leading-[1.5]",children:L})]}),(0,l.jsx)(s.$n,{type:"submit",disabled:q,nsImportance:s.z_.PRIMARY,nsLabel:q?p("BookingDetailsSubmitting"):p("BookingDetailsSubmit"),nsSize:s.or.XXL,nsVariant:s.A
1k.BASIC,sx:{width:"100%",height:"48px"}}),(0,l.jsxs)("p",{className:"m-0 text-center text-[14px] leading-[21px] text-[var(--items-secondary)]",children:[p("DemoFormLegalBody")," ",(0,l.jsx)(y(),{href:"https://legal.applovin.com/privacy/",className:"text-[var(--items-secondary)] underline",target:"_blank",rel:"noopener noreferrer",children:p("DemoFormPrivacyPolicy")}),"."," ",(0,l.jsx)(y(),{href:"https://legal.applovin.com/promotional-terms/",className:"text-[var(--items-secondary)] underline",target:"_blank",rel:"noopener noreferrer",children:p("DemoFormTermsApply")}),"."]})]})]})})]})}let E={width:"100%","& .MuiInputBase-input":{color:"var(--items-primary)"},"& .MuiInputBase-input::placeholder":{color:"var(--items-secondary)",opacity:1}},F={backgroundColor:"var(--surfaces-base)",borderColor:"var(--border-weak)"},L={backgroundColor:"var(--surfaces-alert)",borderColor:"var(--border-base-alert)"},M=e=>new URLSearchParams(window.location.search).get(e)||"",I={firstname:"",lastname:"",phone:"",phone_consent:!1,utm_campaign:"",utm_content:"",utm_keyword:"",utm_medium:"",utm_source:"",what_do_you_want_to_speak_about:""};function B(e){let{context:r,defaultAnswers:a,eventValue:t=0,onBooked:i,onChangeTime:d,onSlotUnavailable:u,selection:p}=e,{t:x}=(0,S.B)(),h=(0,_.A)(c.iA),v=(0,_.A)(c.RM),w=(0,_.A)(c.WR),[R,C]=(0,n.useState)((null==a?void 0:a.phoneDialCode)||j.Qb),[T,D]=(0,n.useState)(""),A="store"===r.advertising_destination,P=!!(r.monthly_ad_spend&&(A?r.annual_store_revenue:r.annual_app_revenue)),{control:B,getValues:O,handleSubmit:z,setValue:U,watch:q,formState:{isSubmitting:V}}=(0,g.mN)({mode:"onBlur",defaultValues:{...I,...null!=a?a:{}}});(0,n.useEffect)(()=>{U("utm_campaign",M("utm_campaign")),U("utm_content",M("utm_content")),U("utm_medium",M("utm_medium")),U("utm_keyword",M("utm_keyword")),U("utm_source",M("utm_source"))},[U]);let W=q("phone"),J=!!(null==W?void 0:W.trim()),H=(0,b.A)(p.startTime,p.timezone),X=async e=>{D("");let a=e.phone.trim()?"".concat(R," ").concat(e.phone.trim()):"",l=(A?r.website:r.app_store_url)||"",n=null;try{let a=await fetch("/api/calendly/book",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({advertisingDestination:r.advertising_destination,email:r.email,eventTypeUri:(0,c.Os)(r.annual_store_revenue||r.annual_app_revenue||"",r.monthly_ad_spend||""),firstName:e.firstname,lastName:e.lastname,notes:e.what_do_you_want_to_speak_about,startTime:p.startTime,timezone:p.timezone,url:l})});n=await a.json()}catch(e){n=null}if(!(null==n?void 0:n.success))return(null==n?void 0:n.error)==="slot_unavailable"?void u({...O(),phoneDialCode:R}):void D(x("BookingDetailsError"));(0,m.J)();try{await fetch("/api/hubspot/demo-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...e,phone:a,pageUri:window.location.href,pageName:"Book a Call 2 - Strategy Call Booked"})})}catch(e){}(0,N.A)({amount:t,currency:"USD",event:k.B.DEMO_FORM_SUBMIT}),i()};return(0,l.jsxs)("div",{className:"flex h-full min-h-0 w-full flex-col",children:[(0,l.jsx)("div",{className:"shrink-0 px-[16px] pt-[24px] lg:px-[40px] lg:pt-[32px]",children:(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-[450px] flex-col gap-[20px]",children:[(0,l.jsx)("div",{className:"flex justify-center lg:hidden",children:(0,l.jsx)(o.A,{className:"h-[24px] w-auto"})}),H&&(0,l.jsxs)("div",{className:"flex items-center gap-[12px] rounded-[12px] border p-[16px]",style:{backgroundColor:"var(--surfaces-base)",borderColor:"var(--border-weak)"},children:[(0,l.jsx)(s.rS,{nsIcon:"calendar_month",nsSize:s.or.MD,style:{color:"var(--items-primary)"}}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-[2px]",children:[(0,l.jsx)("span",{className:"text-[16px] leading-[1.2] font-[600]",children:H}),(0,l.jsx)("span",{className:"text-[14px] leading-[1.4] text-[var(--items-secondary)]",children:x("BookingCallWithTeamMember",{minutes:p.durationMinutes})})]}),(0,l.jsx)("button",{type:"button",disabled:V,className:"ml-auto shrink-0 border-0 bg-transparent p-0 text-[14px] leading-[1.4] font-[600] underline transition-opacity ".concat(V?"cursor-not-allowed opacity-50":"cursor-pointer hover:opacity-70"),onClick:()=>d({...O(),phoneDialCode:R}),style:{color:"var(--items-link)"},children:x("BookingDetailsChangeTime")})]})]})}),(0,l.jsx)("div",{className:"min-h-0 flex-1 px-[16px] pb-[24px] lg:overflow-y-auto lg:px-[40px] lg:pb-[32px] lg:[scrollbar-gutter:stable]",children:(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-[450px] flex-col gap-[20px]",children:[(0,l.jsx)("h3",{className:"m-0 mt-[48px] text-center text-[28px] leading-[1.1] tracking-[-0.56px]",style:{fontFamily:"var(--font-mont), Mont, sans-serif",fontWeight:600},children:x("BookingDetailsHeading")}),(0,l.jsxs)("form",{onSubmit:z(X),className:"grid gap-[16px]",children:[(0,l.jsxs)("div",{className:"grid gap-[16px] md:grid-cols-2",children:[(0,l.jsx)(g.xI,{control:B,name:"firstname",rules:{required:x("DemoFormFirstNameRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.lx,{muiTextFieldProps:{...a,type:"text",autoComplete:"given-name",sx:E},nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:x("DemoFormFirstNameLabel"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}}),(0,l.jsx)(g.xI,{control:B,name:"lastname",rules:{required:x("DemoFormLastNameRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.lx,{muiTextFieldProps:{...a,type:"text",autoComplete:"family-name",sx:E},nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:x("DemoFormLastNameLabel"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%"}})}})]}),(0,l.jsx)(g.xI,{control:B,name:"phone",render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.RD,{nsCountryDialCodes:j.F4,nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:x("DemoFormPhoneLabel"),nsSelectProps:{muiPopperProps:{disablePortal:!0},nsValue:R,onChange:(e,r)=>{let a=Array.isArray(r)?r[0]:r,l="string"==typeof a?a:null==a?void 0:a.value;l&&C(l)}},nsSize:s.or.LG,nsSubLabel:x("DemoFormOptional"),nsTextFieldProps:{muiTextFieldProps:{...a,type:"tel",autoComplete:"tel",inputMode:"numeric",onChange:e=>
1a.onChange((0,j.h2)(e.target.value)),sx:E},nsPlaceholder:"000 000 0000"},nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,sx:{width:"100%","& ._lead-slot_iwtbh_385":{paddingTop:"8px"}}})}}),!P&&(0,l.jsxs)("div",{className:"grid gap-[16px]",children:[(0,l.jsx)(g.xI,{control:B,name:A?"annual_store_revenue":"annual_app_revenue",rules:{required:A?x("DemoFormStoreRevenueRequired"):x("DemoFormAppRevenueRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.mn,{muiPopperProps:{disablePortal:!0},sx:E,nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:A?x("DemoFormStoreRevenueLabel"):x("DemoFormAppRevenueLabel"),nsOptions:h,nsPlaceholder:x("DemoFormSelectRange"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,onChange:(e,r)=>{let l="string"==typeof r?r:(null==r?void 0:r.value)||"";a.onChange(l)},nsInitialValue:h.find(e=>e.value===a.value)})}}),(0,l.jsx)(g.xI,{control:B,name:"monthly_ad_spend",rules:{required:x("DemoFormMonthlyAdSpendRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.mn,{muiPopperProps:{disablePortal:!0},sx:E,nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:x("DemoFormMonthlyAdSpendLabel"),nsOptions:v,nsPlaceholder:x("DemoFormSelectRange"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,onChange:(e,r)=>{let l="string"==typeof r?r:(null==r?void 0:r.value)||"";a.onChange(l)},nsInitialValue:v.find(e=>e.value===a.value)})}})]}),(0,l.jsx)(g.xI,{control:B,name:"what_do_you_want_to_speak_about",rules:{required:x("DemoFormTopicRequired")},render:e=>{var r;let{field:a,fieldState:n}=e;return(0,l.jsx)(f.mn,{muiPopperProps:{disablePortal:!0},sx:E,nsErrorMessage:null==(r=n.error)?void 0:r.message,nsLabel:x("DemoFormTopicLabelAlt"),nsOptions:w,nsPlaceholder:x("DemoFormSelectOne"),nsSize:"lg",nsTint:n.invalid?s.ey.ERROR:s.ey.NEUTRAL,onChange:(e,r)=>{let l="string"==typeof r?r:(null==r?void 0:r.value)||"";a.onChange(l)},nsInitialValue:w.find(e=>e.value===a.value)})}}),J&&(0,l.jsx)(g.xI,{control:B,name:"phone_consent",rules:{validate:e=>e||x("DemoFormPhoneConsentRequired")},render:e=>{let{field:r,fieldState:a}=e;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-[8px] border p-[12px]",style:a.invalid?{...F,...L}:F,children:[(0,l.jsx)("span",{className:"flex shrink-0 items-center justify-center pt-[2px]",children:(0,l.jsx)(s.Sc,{checked:r.value,nsTint:a.invalid?s.ey.ALERT:s.ey.NEUTRAL,onChange:e=>r.onChange(e.target.checked),sx:{padding:0}})}),(0,l.jsxs)("span",{className:"text-[14px] font-[500] leading-[1.5] text-[var(--items-secondary)]",children:[x("DemoFormPhoneConsentBody")," ",(0,l.jsx)("a",{className:"text-[var(--items-primary-accent)]",href:"https://legal.applovin.com/privacy/",target:"_blank",children:x("DemoFormPrivacyPolicy")}),"."," ",(0,l.jsx)("a",{className:"text-[var(--items-primary-accent)]",href:"https://legal.applovin.com/terms/",target:"_blank",children:x("DemoFormTermsOfUse")}),"."]})]}),a.error&&(0,l.jsxs)("div",{className:"flex items-center",style:{color:"var(--items-primary-alert)",gap:"var(--gap-xs)",paddingTop:"var(--padding-xs)"},children:[(0,l.jsx)(s.rS,{nsIcon:"error",nsSize:s.or.XS,style:{color:"inherit"}}),(0,l.jsx)(s.Vn,{className:"m-0",style:{color:"inherit",font:"var(--typography-body-sm)"},children:a.error.message})]})]})}}),T&&(0,l.jsxs)("div",{className:"flex items-start gap-[8px] rounded-[8px] border p-[12px]",role:"alert",style:{backgroundColor:"var(--surfaces-alert)",borderColor:"var(--border-base-alert)",color:"var(--items-primary-alert)"},children:[(0,l.jsx)(s.rS,{nsIcon:"error",nsSize:s.or.SM,style:{color:"inherit"}}),(0,l.jsx)("span",{className:"text-[14px] leading-[1.5]",children:T})]}),(0,l.jsx)(s.$n,{type:"submit",disabled:V,nsImportance:s.z_.PRIMARY,nsLabel:V?x("BookingDetailsSubmitting"):x("BookingDetailsSubmit"),nsSize:s.or.XXL,nsVariant:s.Ak.BASIC,sx:{width:"100%",height:"48px"}}),(0,l.jsxs)("p",{className:"m-0 text-center text-[14px] leading-[21px] text-[var(--items-secondary)]",children:[x("DemoFormLegalBody")," ",(0,l.jsx)(y(),{href:"https://legal.applovin.com/privacy/",className:"text-[var(--items-secondary)] underline",target:"_blank",rel:"noopener noreferrer",children:x("DemoFormPrivacyPolicy")}),"."," ",(0,l.jsx)(y(),{href:"https://legal.applovin.com/promotional-terms/",className:"text-[var(--items-secondary)] underline",target:"_blank",rel:"noopener noreferrer",children:x("DemoFormTermsApply")}),"."]})]})]})})]})}
1function O(e){let{isOpen:r,onClose:a,brandHeadline:m,brandBody:u,formHeadline:g,prefill:v,flow:y="form",schedulerUrl:f,strategyCallContext:b,strategyCallEventValue:_=0,agencyCallContext:j}=e,{t:w}=(0,S.B)(),N=null!=m?m:w("BookACallModalBrandHeadline"),k=null!=u?u:w("BookACallModalBrandBody"),R=null!=g?g:w("BookACallModalFormHeadline"),C="scheduler"===y,T=b?(0,c.Os)(b.annual_store_revenue||b.annual_app_revenue||"",b.monthly_ad_spend||""):c.c0,[D,A]=(0,n.useState)(0),[E,F]=(0,n.useState)(null!=f?f:null),[L,M]=(0,n.useState)(null),[I,O]=(0,n.useState)(null),[z,U]=(0,n.useState)(0),[q,V]=(0,n.useState)(""),[W,J]=(0,n.useState)(null),[H,X]=(0,n.useState)(null),[G,$]=(0,n.useState)(!1),Q=(0,n.useRef)(null);(0,n.useEffect)(()=>{r||(F(null),M(null),O(null),V(""),J(null),X(null),$(!1))},[r]);let Y=(0,n.useCallback)(e=>{J(e),O(null),V(w("BookingPickerSlotTakenNotice")),U(e=>e+1)},[w]),K=(0,n.useCallback)(e=>{X(e),O(null),V(w("BookingPickerSlotTakenNotice")),U(e=>e+1)},[w]),Z=(0,n.useCallback)(e=>{X(e),V(""),O(null)},[]),ee=(0,n.useCallback)(e=>{V(""),O(e)},[]),er=(0,n.useCallback)(e=>{J(e),V(""),O(null)},[]);if((0,n.useEffect)(()=>{var e;if(!r)return;let l=e=>{"Escape"===e.key&&a()};return window.addEventListener("keydown",l),null==(e=Q.current)||e.focus(),()=>{window.removeEventListener("keydown",l)}},[r,a]),(0,n.useEffect)(()=>{if(!r)return;let e=document.body.style.overflow,a=document.documentElement.style.overflow;return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",()=>{document.body.style.overflow=e,document.documentElement.style.overflow=a}},[r]),(0,n.useEffect)(()=>{if(!r)return;let e=e=>{e.stopImmediatePropagation()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[r]),!r)return null;let ea=!!E,el=!!L,en=C&&G,et=C&&!I&&!G,es=C&&!!I&&!G,eo=(0,l.jsxs)("aside",{className:"hidden overflow-hidden rounded-[12px] lg:flex lg:flex-col",style:{background:"var(--bg-base)"},children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-[40px] px-[40px] pt-[40px]",children:[(0,l.jsx)(o.A,{className:"h-[32px] w-auto"}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-[16px]",children:[(0,l.jsx)("h2",{className:"m-0 text-[48px] leading-[1.1] tracking-[-0.96px]",style:{fontFamily:"var(--font-mont), Mont, sans-serif",fontWeight:600},children:N}),(0,l.jsx)("p",{className:"m-0 text-[16px] leading-[1.5]",children:k})]})]}),(0,l.jsx)("div",{className:"mt-auto",children:(0,l.jsx)(t.default,{src:c.gy,alt:w("BookACallModalIllustrationAlt"),width:c.fb,height:c.Oy,className:"block h-auto w-full",sizes:"522px",priority:!0})})]});return(0,l.jsx)("div",{className:"fixed inset-0 z-[9999] overflow-y-auto overscroll-contain bg-black/60 py-[24px] backdrop-blur-[2px]",onClick:a,children:(0,l.jsx)("div",{className:"wrapper-xl flex min-h-full items-center justify-center",children:(0,l.jsxs)("div",{ref:Q,"aria-label":en?w("BookACallModalAriaConfirmation"):ea||et?w("BookACallModalAriaScheduler"):es?w("BookingDetailsHeading"):R,"aria-modal":"true",className:"light-theme marketing-theme relative w-full rounded-[24px] bg-[var(--bg-canvas)] p-[8px] text-[var(--items-primary)] shadow-[0_24px_80px_rgba(0,0,0,0.45)] focus:outline-none lg:p-[16px] ".concat("lg:h-[680px] lg:max-h-[calc(100dvh-48px)] lg:max-w-[1100px] ".concat(ea||el?"max-w-[1100px]":"max-w-[530px]")),onClick:e=>e.stopPropagation(),role:"dialog",tabIndex:-1,children:[(0,l.jsx)("button",{"aria-label":w("BookACallModalClose"),className:"absolute top-[8px] right-[8px] z-[2] flex size-[40px] cursor-pointer items-center justify-center rounded-full border-0 p-0 text-[var(--items-primary)] transition-opacity hover:opacity-70 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--items-primary)] ".concat(ea||el?"bg-[var(--bg-base)] shadow-[0_2px_8px_rgba(0,0,0,0.15)]":"bg-transparent"),onClick:a,type:"button",children:(0,l.jsx)(s.rS,{nsIcon:"close",nsSize:s.or.MD})}),L?(0,l.jsx)("div",{className:"h-full min-h-0 w-full px-[16px] py-[32px] lg:overflow-y-auto lg:px-[40px] lg:py-[40px] lg:[scrollbar-gutter:stable]",children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-[450px]",children:(0,l.jsx)(d.A,{bookingDetails:L.bookingDetails,eventTypeUri:L.eventTypeUri})})}):en&&I?(0,l.jsx)(i.A,{selection:I}):ea&&E?(0,l.jsx)(p,{calendlyUrl:E,className:"h-[calc(100dvh-140px)] min-h-[560px] overflow-hidden rounded-[12px] lg:h-full lg:min-h-0"}):et?(0,l.jsxs)("div",{className:"grid h-full grid-cols-1 gap-[16px] lg:grid-cols-[522fr_530fr]",children:[eo,(0,l.jsx)("section",{className:"flex min-h-0 flex-col",children:(0,l.jsx)("div",{className:"min-h-0 flex-1 px-[16px] pt-[32px] pb-[24px] lg:overflow-y-auto lg:px-[40px] lg:pt-[40px] lg:pb-[32px] lg:[scrollbar-gutter:stable]",children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-[450px]",children:(0,l.jsx)(d.A,{eventTypeUri:T,notice:q,onSelect:ee,refreshToken:z})})})})]}):es&&I&&(b||j)?(0,l.jsxs)("div",{className:"grid h-full grid-cols-1 gap-[16px] lg:grid-cols-[522fr_530fr]",children:[eo,(0,l.jsx)("section",{className:"flex min-h-0 flex-col",children:j?(0,l.jsx)(P,{context:j,defaultAnswers:H,onBooked:()=>$(!0),onChangeTime:Z,onSlotUnavailable:K,selection:I}):(0,l.jsx)(B,{context:b,defaultAnswers:W,eventValue:_,onBooked:()=>$(!0),onChangeTime:er,onSlotUnavailable:Y,selection:I})})]}):(0,l.jsxs)("div",{className:"grid h-full grid-cols-1 gap-[16px] lg:grid-cols-[522fr_530fr]",children:[eo,(0,l.jsxs)("section",{className:"flex min-h-0 flex-col",children:[(0,l.jsx)("div",{className:"shrink-0 px-[16px] pt-[32px] lg:px-[40px] lg:pt-[40px]",children:(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-[450px] flex-col gap-[24px]",children:[(0,l.jsx)("h3",{className:"m-0 text-center text-[28px] leading-[1.1] tracking-[-0.56px] text-balance",style:{fontFamily:"var(--font-mont), Mont, sans-serif",fontWeight:600},children:R}),!C&&(0,l.jsxs)(s.tU,{value:D,onChange:(e,r)=>A(r),nsSize:s.or.LG,variant:"fullWidth",centered:!0,sx:{"& .MuiTabs-indicator":{backgroundColor:"var(--items-primary)"},"& .MuiTab-root":{color:"var(--items-secondary)",textTransform:"none",fontSize:"16px",fontWeight:600},"& .Mui-selected":{color:"var(--items-primary)"},borderBottom:"1px solid var(--border-weak)"},children:[(0,l.jsx)(s.oz,{label:w("BookACallModalTabAdvertiser"),nsSize:s.or.LG}),(0,l.jsx)(s.oz,{label:w("BookACallModalTabAgency"),nsSize:s.or.LG})]})]})}),(0,l.jsx)("div",{className:"min-h-0 flex-1 px-[16px] pt-[24px] pb-[32px] lg:overflow-y-auto lg:px-[40px] lg:pb-[40px] lg:[scrollbar-gutter:stable]",children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-[450px]",children:0===D?(0,l.jsx)(h.A,{onSchedule:M,prefill:v}):(0,l.jsx)(x.A,{onSchedule:M})})})]})]})]})})})}}}]);

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.