1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55838,(e,t,r)=>{"use strict";var n=e.r(71645),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=n.useState,i=n.useEffect,s=n.useLayoutEffect,o=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=l({inst:{value:r,getSnapshot:t}}),a=n[0].inst,c=n[1];return s(function(){a.value=r,a.getSnapshot=t,u(a)&&c({inst:a})},[e,r,t]),i(function(){return u(a)&&c({inst:a}),e(function(){u(a)&&c({inst:a})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},2239,(e,t,r)=>{"use strict";t.exports=e.r(55838)},61921,e=>{"use strict";let t,r;var n=e.i(43476),a=e.i(71645),l=e.i(56624),i=e.i(12497);e.i(1691);var s=e.i(90121),o=e.i(22199),u=e.i(19455),c=e.i(42803),d=e.i(18566),f=e.i(21724),m=e.i(65547),p=e.i(14534);let h=({email:e,variant:t="demo"})=>{let r="review"===t,l=(0,m.useMetaPixelTracker)();return(0,a.useEffect)(()=>
1{l("ViewContent",{content_ids:[r?"ApplicationUnderReview":"EmailSent"],content_type:"product",content_name:r?"Application Under Review Page":"Email Sent Confirmation Page",value:0,currency:"USD"})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.PageTitle,{title:r?"Thanks! Application received.":"Thanks! We'll call you soon."}),(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4 p-4",children:[(0,n.jsx)("div",{className:"absolute top-12 left-1/2 transform -translate-x-1/2",children:(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsx)(c.LogoWithText,{className:"w-36"})})}),(0,n.jsx)("div",{className:"rounded-full bg-successSurface p-6",children:(0,n.jsx)(p.MailEnvelopeIcon,{className:"w-8 h-8 text-successBackground"})}),(0,n.jsx)("div",{className:"flex flex-col gap-1 items-center",children:(0,n.jsx)("span",{className:"text-defaultTextWeak text-sm",children:"Next Step"})}),(0,n.jsx)("div",{className:"flex flex-col gap-4 items-center text-center text-defaultText max-w-sm",children:r?(0,n.jsx)("p",{className:"font-semibold text-defaultTextStrong",children:"Thanks. We're reviewing your application, if we are a match one of our team will be in touch."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"font-semibold text-defaultTextStrong",children:"Thanks, we'll call you within 1 business day to schedule your demo."}),(0,n.jsxs)("p",{children:["If we can't reach you by phone, we'll email"," ",(0,n.jsx)("span",{className:"font-semibold text-defaultTextMedium",children:e})," ","with a link to book your demo."]})]})})]})]})};var x=e.i(22016),g=e.i(97355),y=e.i(43506),b=e.i(75157),w=e.i(14865),v=e.i(11802),j=e.i(2239);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],11671);var S=Object.prototype.hasOwnProperty;let E=new WeakMap,k=()=>{},T=k(),_=Object,N=e=>e===T,R=(e,t)=>({...e,...t}),O={},C={},M="undefined",P=typeof window!=M,F=typeof document!=M,L=P&&"Deno"in window,W=(e,t)=>{let r=E.get(e);return[()=>!N(t)&&e.get(t)||O,n=>{if(!N(t)){let a=e.get(t);t in C||(C[t]=a),r[5](t,R(a,n),a||O)}},r[6],()=>!N(t)&&t in C?C[t]:!N(t)&&e.get(t)||O]},D=!0,[V,I]=P&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[k,k],U={initFocus:e=>(F&&document.addEventListener("visibilitychange",e),V("focus",e),()=>{F&&document.removeEventListener("visibilitychange",e),I("focus",e)}),initReconnect:e=>{let t=()=>{D=!0,e()},r=()=>{D=!1};return V("online",t),V("offline",r),()=>{I("online",t),I("offline",r)}}},A=!a.default.useId,B=!P||L,$=B?a.useEffect:a.useLayoutEffect,G="u">typeof navigator&&navigator.connection,q=!B&&G&&(["slow-2g","2g"].includes(G.effectiveType)||G.saveData),K=new WeakMap,H=(e,t)=>e===`[object ${t}]`,z=0,J=e=>{let t,r,n=typeof e,a=_.prototype.toString.call(e),l=H(a,"Date"),i=H(a,"RegExp"),s=H(a,"Object");if(_(e)!==e||l||i)t=l?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=K.get(e))return t;if(t=++z+"~",K.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=J(e[r])+",";K.set(e,t)}if(s){t="#";let n=_.keys(e).sort();for(;!N(r=n.pop());)N(e[r])||(t+=r+":"+J(e[r])+",");K.set(e,t)}}return t},Y=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?J(e):"",t]},Q=0,X=()=>++Q;async function Z(...e){let[t,r,n,a]=e,l=R({populateCache:!0,throwOnError:!0},"boolean"==typeof a?{revalidate:a}:a||{}),i=l.populateCache,s=l.rollbackOnError,o=l.optimisticData,u=l.throwOnError;if("function"==typeof r){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(c))}return c(r);async function c(r){let a,[c]=Y(r);if(!c)return;let[d,f]=W(t,c),[m,p,h,x]=E.get(t),g=()=>{let e=m[c];return("function"==typeof l.revalidate?l.revalidate(d().data,r):!1!==l.revalidate)&&(delete h[c],delete x[c],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return g();let y=n,b=!1,w=X();p[c]=[w,0];let v=!N(o),j=d(),S=j.data,k=j._c,_=N(k)?S:k;if(v&&f({data:o="function"==typeof o?o(_,S):o,_c:_}),"function"==typeof y)try{y=y(_)}catch(e){a=e,b=!0}if(y&&"function"==typeof y.then){let e;if(y=await y.catch(e=>{a=e,b=!0}
1),w!==p[c][0]){if(b)throw a;return y}b&&v&&(e=a,"function"==typeof s?s(e):!1!==s)&&(i=!0,f({data:_,_c:T}))}if(i&&!b&&("function"==typeof i?f({data:i(y,_),error:T,_c:T}):f({data:y,error:T,_c:T})),p[c][1]=X(),Promise.resolve(g()).then(()=>{f({_c:T})}),b){if(u)throw a;return}return y}}let ee=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},et=(e,t)=>{if(!E.has(e)){let r=R(U,t),n=Object.create(null),a=Z.bind(T,e),l=k,i=Object.create(null),s=(e,t)=>{let r=i[e]||[];return i[e]=r,r.push(t),()=>{let e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},o=(t,r,n)=>{e.set(t,r);let a=i[t];if(a)for(let e of a)e(r,n)},u=()=>{if(!E.has(e)&&(E.set(e,[n,Object.create(null),Object.create(null),Object.create(null),a,o,s]),!B)){let t=r.initFocus(setTimeout.bind(T,ee.bind(T,n,0))),a=r.initReconnect(setTimeout.bind(T,ee.bind(T,n,1)));l=()=>{t&&t(),a&&a(),E.delete(e)}}};return u(),[e,a,u,l]}return[e,E.get(e)[4]]},[er,en]=et(new Map),ea=R({onLoadingSlow:k,onSuccess:k,onError:k,onErrorRetry:(e,t,r,n,a)=>{let l=r.errorRetryCount,i=a.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;(N(l)||!(i>l))&&setTimeout(n,s,a)},onDiscarded:k,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:q?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:q?5e3:3e3,compare:function e(t,r){var n,a;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((a=t.length)===r.length)for(;a--&&e(t[a],r[a]););return -1===a}if(!n||"object"==typeof t){for(n in a=0,t)if(S.call(t,n)&&++a&&!S.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===a}}return t!=t&&r!=r},isPaused:()=>!1,cache:er,mutate:en,fallback:{}},{isOnline:()=>D,isVisible:()=>{let e=F&&document.visibilityState;return N(e)||"hidden"!==e}}),el=(e,t)=>{let r=R(e,t);if(t){let{use:n,fallback:a}=e,{use:l,fallback:i}=t;n&&l&&(r.use=n.concat(l)),a&&i&&(r.fallback=R(a,i))}return r},ei=(0,a.createContext)({});var es=e.i(11671);let eo=P&&window.__SWR_DEVTOOLS_USE__,eu=eo?window.__SWR_DEVTOOLS_USE__:[],ec=e=>"function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],ed=()=>{let e=(0,a.useContext)(ei);return(0,a.useMemo)(()=>R(ea,e),[e])},ef=eu.concat(e=>(t,r,n)=>{let a=r&&((...e)=>{let[n]=Y(t),[,,,a]=E.get(er);if(n.startsWith("$inf$"))return r(...e);let l=a[n];return N(l)?r(...e):(delete a[n],l)});return e(t,a,n)});eo&&(window.__SWR_DEVTOOLS_REACT__=a.default);let em=()=>{},ep=em(),eh=(new WeakMap,a.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),ex={dedupe:!0},eg=Promise.resolve(T);eg.status="fulfilled",eg.value=T;let ey=()=>k;_.defineProperty(e=>{let{value:t}=e,r=(0,a.useContext)(ei),n="function"==typeof t,l=(0,a.useMemo)(()=>n?t(r):t,[n,r,t]),i=(0,a.useMemo)(()=>n?l:el(r,l),[n,r,l]),s=l&&l.provider,o=(0,a.useRef)(T);s&&!o.current&&(o.current=et(s(i.cache||er),l));let u=o.current;return u&&(i.cache=u[0],i.mutate=u[1]),$(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,a.createElement)(ei.Provider,R(e,{value:i}))},"defaultValue",{value:ea});let eb=(t=(e,t,r)=>{let{cache:n,compare:l,suspense:i,fallbackData:s,revalidateOnMount:o,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:m,strictServerPrefetchWarning:p}=r,[h,x,g,y]=E.get(n),[b,w]=Y(e),v=(0,a.useRef)(!1),S=(0,a.useRef)(!1),k=(0,a.useRef)(b),_=(0,a.useRef)(t),O=(0,a.useRef)(r),C=()=>O.current.isVisible()&&O.current.isOnline(),[F,L,D,V]=W(n,b),I=(0,a.useRef)({}).current,U=N(s)?N(r.fallback)?T:r.fallback[b]:s,G=(e,t)=>{for(let r in I)if("data"===r){if(!l(e[r],t[r])&&(!N(e[r])||!l(er,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},q=!v.current,K=(0,a.useMemo)(()=>{let e=F(),r=V(),n=e=>{let r=R(e);return(delete r._k,(()=>{if(!b||!t||O.current.isPaused())return!1;if(q&&!N(o))return o;let e=N(U)?r.data:U;return N(e)||u})())?{isValidating:!0,isLoading:!0,...r}:r},a=n(e),l=e===r?a:n(r),i=a;return[()=>{let e=n(F());return G(e,i)?(i.data=e.data,i.isLoading=e.isLoading,i.isValidating=e.isValidating,i.error=e.error,i):(i=e,e)},()=>l]}
1,[n,b]),H=(0,j.useSyncExternalStore)((0,a.useCallback)(e=>D(b,(t,r)=>{G(r,t)||e()}),[n,b]),K[0],K[1]),z=h[b]&&h[b].length>0,J=H.data,Q=N(J)?U&&"function"==typeof U.then?eh(U):U:J,ee=H.error,et=(0,a.useRef)(Q),er=m?N(J)?N(et.current)?Q:et.current:J:Q,en=b&&N(Q),ea=(0,a.useRef)(null);B||(0,j.useSyncExternalStore)(ey,()=>(ea.current=!1,ea),()=>(ea.current=!0,ea));let el=ea.current;p&&el&&!i&&en&&console.warn(`Missing pre-initiated data for serialized key "${b}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ei=!(!b||!t||O.current.isPaused())&&(!z||!!N(ee))&&(q&&!N(o)?o:i?!N(Q)&&u:N(Q)||u),eo=q&&ei,eu=N(H.isValidating)?eo:H.isValidating,ec=N(H.isLoading)?eo:H.isLoading,ed=(0,a.useCallback)(async e=>{let t,n,a=_.current;if(!b||!a||S.current||O.current.isPaused())return!1;let i=!0,s=e||{},o=!g[b]||!s.dedupe,u=()=>A?!S.current&&b===k.current&&v.current:b===k.current,c={isValidating:!1,isLoading:!1},d=()=>{L(c)},f=()=>{let e=g[b];e&&e[1]===n&&delete g[b]},m={isValidating:!0};N(F().data)&&(m.isLoading=!0);try{if(o&&(L(m),r.loadingTimeout&&N(F().data)&&setTimeout(()=>{i&&u()&&O.current.onLoadingSlow(b,r)},r.loadingTimeout),g[b]=[a(w),X()]),[t,n]=g[b],t=await t,o&&setTimeout(f,r.dedupingInterval),!g[b]||g[b][1]!==n)return o&&u()&&O.current.onDiscarded(b),!1;c.error=T;let e=x[b];if(!N(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return d(),o&&u()&&O.current.onDiscarded(b),!1;let s=F().data;c.data=l(s,t)?s:t,o&&u()&&O.current.onSuccess(t,b,r)}catch(r){f();let e=O.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=r,o&&u())&&(e.onError(r,b,e),(!0===t||"function"==typeof t&&t(r))&&(!O.current.revalidateOnFocus||!O.current.revalidateOnReconnect||C())&&e.onErrorRetry(r,b,e,e=>{let t=h[b];t&&t[0]&&t[0](es.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))}return i=!1,d(),!0},[b,n]),ef=(0,a.useCallback)((...e)=>Z(n,k.current,...e),[]);if($(()=>{_.current=t,O.current=r,N(J)||(et.current=J)}),$(()=>{var e;let t;if(!b)return;let r=ed.bind(T,ex),n=0;O.current.revalidateOnFocus&&(n=Date.now()+O.current.focusThrottleInterval);let a=(e=(e,t={})=>{if(e==es.FOCUS_EVENT){let e=Date.now();O.current.revalidateOnFocus&&e>n&&C()&&(n=e+O.current.focusThrottleInterval,r())}else if(e==es.RECONNECT_EVENT)O.current.revalidateOnReconnect&&C()&&r();else if(e==es.MUTATE_EVENT)return ed();else if(e==es.ERROR_REVALIDATE_EVENT)return ed(t)},(t=h[b]||(h[b]=[])).push(e),()=>{let r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.pop())});if(S.current=!1,k.current=b,v.current=!0,L({_k:w}),ei&&!g[b])if(N(Q)||B)r();else P&&typeof window.requestAnimationFrame!=M?window.requestAnimationFrame(r):setTimeout(r,1);return()=>{S.current=!0,a()}},[b]),$(()=>{let e;function t(){let t="function"==typeof c?c(F().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!F().error&&(d||O.current.isVisible())&&(f||O.current.isOnline())?ed(ex).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[c,d,f,b]),(0,a.useDebugValue)(er),i){if(!A&&B&&en)throw Error("Fallback data is required when using Suspense in SSR.");en&&(_.current=t,O.current=r,S.current=!1);let e=y[b];if(eh(!N(e)&&en?ef(e):eg),!N(ee)&&en)throw ee;let n=en?ed(ex):eg;!N(er)&&en&&(n.status="fulfilled",n.value=!0),eh(n)}return{mutate:ef,get data(){return I.data=!0,er},get error(){return I.error=!0,ee},get isValidating(){return I.isValidating=!0,eu},get isLoading(){return I.isLoading=!0,ec}}},function(...e){let r=ed(),[n,a,l]=ec(e),i=el(r,l),s=t,{use:o}=i,u=(o||[]).concat(ef);for(let e=u.length;e--;)s=u[e](s);return s(n,a||i.fetcher||null,i)}),ew=()=>{let{data:e,isLoading:t}=eb("/geo",e=>fetch(e).then(e=>e.json()).catch(()=>null));return{data:e,isLoading:t}};var ev=e.i(74832);let ej="min-h-[640px]",eS=()=>(0,n.jsx)("div",{className:(0,b.cn)("w-full animate-pulse rounded-xl bg-defaultBackground",ej)}),eE=({namespace:e,source:t,prefill:r,onBooked:l,onRegionSettled:i})=>{let{data:s,isLoading:o}=ew(),u=o?null:(0,ev.regionForCountry)(s?.country),c=(0,a.useRef)(l);(0,a.useEffect)(()=>{c.current=l},[l]);let d=(0,a.useRef)(!1);(0,a.useEffect)(()=>
1{if(d.current)return;d.current=!0;let t=!1;return(async()=>{try{let r=await (0,v.getCalApi)({namespace:e});if(t)return;r("on",{action:"bookingSuccessful",callback:()=>c.current?.()})}catch(e){console.warn("[booking] Cal embed api unavailable:",e)}})(),()=>{t=!0}},[e]);let f=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{u&&!f.current&&(f.current=!0,i?.(u))},[u,i]),(0,n.jsxs)("div",{className:"flex w-full flex-col items-center gap-3",children:[u?(0,n.jsx)(v.default,{namespace:e,calOrigin:ev.CAL_ORIGIN,calLink:(0,ev.regionById)(u).calLink,className:(0,b.cn)("w-full overflow-hidden",ej),config:{layout:"month_view",source:t,"metadata[source]":t,...r?.name?{name:r.name}:{},...r?.email?{email:r.email}:{}}}):(0,n.jsx)(eS,{}),u&&(0,n.jsxs)("p",{className:"text-sm text-defaultTextWeak",children:["Hosted by our ",(0,ev.regionById)(u).label," team"]})]})};var ek=e.i(88116),eT=e.i(73968),e_=e.i(36597);let eN=({email:e,name:t})=>{let r=(0,d.useRouter)(),l=(0,m.useMetaPixelTracker)(),i=(0,ek.useDryRun)(),s=(0,a.useSyncExternalStore)(eT.subscribeBooked,()=>(0,eT.hasBooked)(e),()=>!1);(0,a.useEffect)(()=>{i||s||l("ViewContent",{content_ids:["BookDemo"],content_type:"product",content_name:"Book Demo Page",value:0,currency:"USD"})},[]);let o=(0,a.useCallback)(()=>{(0,eT.markBooked)(e,{persist:!i}),r.replace(`/booked?${g.default.stringify({email:e,name:t,source:ev.GET_STARTED_BOOKING_SOURCE,...(0,y.dryRunParams)(i)})}`)},[r,e,t,i]),u=(0,a.useCallback)(e=>{(0,eT.rememberRegion)(e),(0,eT.rememberChannel)(ev.GET_STARTED_BOOKING_SOURCE),i||w.dataLayer.trackBookDemoViewed({region:e})},[i]);return e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.PageTitle,{title:s?"You're booked":"Book your demo"}),(0,n.jsx)("div",{className:(0,b.cn)("mx-auto flex w-full max-w-4xl flex-col items-center gap-5 px-4 py-8",s&&"h-full justify-center"),children:s?(0,n.jsx)(e_.BookedConfirmation,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{className:"text-2xl font-wide text-defaultTextStrong",children:"Book your demo"}),(0,n.jsx)(eE,{namespace:"bookDemo",source:ev.GET_STARTED_BOOKING_SOURCE,prefill:{name:t,email:e},onBooked:o,onRegionSettled:u})]})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.PageTitle,{title:"Book your demo"}),(0,n.jsxs)("div",{className:"mx-auto flex h-full w-full max-w-md flex-col items-center justify-center gap-4 px-4 py-8 text-center",children:[(0,n.jsx)("h1",{className:"text-2xl font-wide text-defaultTextStrong",children:"We couldn't find your details"}),(0,n.jsx)("p",{className:"text-defaultText",children:"This link is missing the details from your application, so we can't book you in from here."}),(0,n.jsx)(x.default,{href:"/get-started",className:"rounded-full bg-defaultSurfaceInverse px-5 py-2 text-sm text-defaultTextInverse",children:"Start your application"}),(0,n.jsxs)("p",{className:"text-sm text-defaultTextWeak",children:["Already applied?"," ",(0,n.jsx)("a",{className:"underline hover:text-defaultTextStrong",href:"mailto:[email protected]",children:"[email protected]"})]})]})]})},eR=A?e=>{e()}:a.default.startTransition,eO=(r=()=>(e,t,r={})=>{let{mutate:n}=ed(),l=(0,a.useRef)(e),i=(0,a.useRef)(t),s=(0,a.useRef)(r),o=(0,a.useRef)(0),[u,c,d]=(e=>{let[,t]=(0,a.useState)({}),r=(0,a.useRef)(!1),n=(0,a.useRef)(e),l=(0,a.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,a.useCallback)(e=>{let a=!1,i=n.current;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&i[t]!==e[t]&&(i[t]=e[t],l.current[t]&&(a=!0));a&&!r.current&&t({})},[]);return $(()=>(r.current=!1,()=>{r.current=!0})),[n,l.current,i]})({data:T,error:T,isMutating:!1}),f=u.current,m=(0,a.useCallback)(async(e,t)=>{let[r,a]=Y(l.current);if(!i.current)throw Error("Canât trigger the mutation: missing fetcher.");if(!r)throw Error("Canât trigger the mutation: missing key.");let u=R(R({populateCache:!1,throwOnError:!0},s.current),t),c=X();o.current=c,d({isMutating:!0});try{let t=await n(r,i.current(a,{arg:e}),R(u,{throwOnError:!0}));return o.current<=c&&(eR(()=>d({data:t,isMutating:!1,error:void 0})),null==u.onSuccess||u.onSuccess.call(u,t,r,u)),t}catch(e){if(o.current<=c&&(eR(()=>d({error:e,isMutating:!1})),null==u.onError||u.onError.call(u,e,r,u),u.throwOnError))throw e}},[]),p=(0,a.useCallback)(()=>{o.current=X(),d({data:T,error:T,isMutating:!1})},[]);return $(()=>{l.current=e,i.current=t,s.current=r}),{trigger:m,reset:p,get data(){return c.data=!0,f.data},get error(){return c.error=!0,f.error},get isMutating(){return c.isMutating=!0,f.isMutating}}},(...e)=>{let[t,n,a]=ec(e),l=(a.use||[]).concat(r);return eb(t,n,{...a,use:l})});var eC=e.i(55036),eM=e.i(4239),eP=e.i(61348);let eF=[{label:"We sell physical products",value:"sell_product"},{label:"We sell services",value:"sell_service"},{label:"We are an agency",value:"agency"},{label:"Other",value:"other"}
1],eL=[{label:"$0 - $1,000 /month",value:"0_1000"},{label:"$1,000 - $2,500 /month",value:"1000_2500"},{label:"$2,500 - $10,000 /month",value:"2500_10000"},{label:"$10,000 - $50,000 /month",value:"10000_50000"},{label:"$50,000 - $250,000 /month",value:"50000_250000"},{label:"$250,000+ /month",value:"250000+"}],eW=()=>{let{values:e,setFieldValue:t}=(0,i.useFormikContext)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-1.5 text-center sm:gap-2",children:[(0,n.jsx)("h1",{className:"text-pretty text-[22px] leading-tight font-wide font-wideMedium text-white sm:text-[26px]",children:"See your brand in Cuttable."}),(0,n.jsx)("p",{className:"max-w-[360px] text-pretty text-[13px] leading-snug text-defaultTextWeak sm:max-w-[340px] sm:text-sm sm:leading-relaxed",children:"For ecomm teams spending $10k+ a month on Meta. Weâll show you where Cuttable removes your creative bottleneck."})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2.5 sm:gap-3",children:[(0,n.jsx)(eC.FormElement.Row,{label:"Full name",htmlFor:"fullName",names:["fullName"],children:(0,n.jsx)(eC.FormElement.Input,{type:"text",id:"fullName",name:"fullName",placeholder:"Jane Smith",autoComplete:"name",enterKeyHint:"next"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(eC.FormElement.Row,{label:"Work email",htmlFor:"email",names:["email"],children:(0,n.jsx)(eC.FormElement.Input,{type:"email",id:"email",name:"email",placeholder:"[email protected]",autoComplete:"email",inputMode:"email",enterKeyHint:"next",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1})}),(0,n.jsx)(eM.DidYouMeanSuggestion,{value:e.email,type:"email",onClick:e=>{t("email",e)}}),(0,n.jsx)(eP.BusinessEmailWarning,{value:e.email})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(eC.FormElement.Row,{label:"Brand URL",htmlFor:"websiteUrl",names:["websiteUrl"],children:(0,n.jsx)(eC.FormElement.RestrictedInput,{type:"text",id:"websiteUrl",name:"websiteUrl",placeholder:"https://company.com",prefix:"https://",autoComplete:"work url",inputMode:"url",enterKeyHint:"done",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1})}),(0,n.jsx)(eM.DidYouMeanSuggestion,{value:e.websiteUrl,type:"url",onClick:e=>{t("websiteUrl",e)}})]}),(0,n.jsx)(eC.FormElement.Row,{label:"What do you sell?",htmlFor:"brandType",names:["brandType"],children:(0,n.jsx)(eC.FormElement.Select,{name:"brandType",placeholder:"Select...",options:eF})}),(0,n.jsx)(eC.FormElement.Row,{label:"Monthly ad spend?",htmlFor:"adSpendMonthly",names:["adSpendMonthly"],children:(0,n.jsx)(eC.FormElement.Select,{name:"adSpendMonthly",placeholder:"Select...",options:eL})})]})]})},eD=({email:e})=>{let t=(0,m.useMetaPixelTracker)();return(0,a.useEffect)(()=>{t("ViewContent",{content_ids:["AttendWebinar"],content_type:"product",content_name:"Attend Webinar Page",value:0,currency:"USD"})},[]),(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-8 p-4",children:[(0,n.jsx)("div",{className:"absolute top-12 left-1/2 transform -translate-x-1/2",children:(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsx)(c.LogoWithText,{className:"w-36"})})}),(0,n.jsx)("div",{className:"rounded-full bg-successSurface p-6",children:(0,n.jsx)(p.MailEnvelopeIcon,{className:"w-8 h-8 text-successBackground"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-1 items-center",children:[(0,n.jsx)("span",{className:"text-defaultTextWeak text-sm",children:"Next Step"}),(0,n.jsx)("span",{className:"text-defaultTextStrong font-wide text-3xl text-center",children:"Thanks for your interest in Cuttable."})]}),(0,n.jsx)("div",{className:"flex flex-col gap-4 items-center text-center text-defaultText",children:(0,n.jsxs)("span",{children:["Weâll send you an invite for our web
1inar product demo to"," ",(0,n.jsx)("span",{className:"font-semibold text-defaultTextStrong",children:e})]})})]})};var eV=e.i(12039),eI=e.i(62092),eU=e.i(37198),eA=e.i(81185);let eB=["pengtech.com"],e$=e=>eB.some(t=>e===t||e.endsWith(`.${t}`)),eG=(e,t)=>{let r=e?.trim().toLowerCase().split("@").pop()??"";if(r&&e$(r))return!0;let n=t?.trim().toLowerCase()??"";if(!n)return!1;try{let e=/^https?:\/\//.test(n)?n:`https://${n}`;return e$(new URL(e).hostname)}catch{return!1}};var eq=e.i(17711);let eK=s.object().shape({email:o.string().transform(e=>e?.trim()).email("Please enter a valid email address").required("Email is required").test("is-business-email","Please use a business email address",async e=>!e||(0,eU.isBusinessEmail)(e)),fullName:o.string().transform(e=>e?.trim()).required("Name is required"),websiteUrl:o.string().transform(e=>e?.trim()).required("Website URL is required").test("valid-website",(e,t)=>{let r=(0,eI.websiteUrlIssue)(e??"");return null===r||t.createError({message:eI.WEBSITE_URL_MESSAGES[r]})}).test("website-exists",async(e,t)=>{if(!e||null!==(0,eI.websiteUrlIssue)(e))return!0;let r=(0,eA.extractWebsiteHost)(e);return!!(!r||await (0,eA.hasWebsite)(r))||t.createError({message:(0,eA.noWebsiteMessage)(r)})}),brandType:o.string().required("Please select a brand type"),adSpendMonthly:o.string().required("Please enter your monthly ad spend"),submissionIntent:o.string().optional()}),eH=()=>{let e=(0,d.useRouter)(),t=(0,ek.useDryRun)(),{data:r}=ew(),[s,o]=(0,a.useState)(!1),[c,p]=(0,a.useState)(null),[h]=(0,l.useCookies)(["hubspotutk","_fbp","_fbc"]),x=(0,a.useRef)(!1),b=(0,a.useRef)(!1),[v,j]=(0,a.useState)(!1),S=()=>{x.current||(x.current=!0,w.dataLayer.trackGetStartedStarted())},E=(0,m.useMetaPixelTracker)();(0,a.useEffect)(()=>{E("ViewContent",{content_ids:["GetStartedForm"],content_type:"product",content_name:"Get Started Form Page",value:0,currency:"USD"})},[]);let{trigger:k}=eO("/api/auth/public/forms/get-started",async(e,{arg:t})=>{try{eG(t.email,t.websiteUrl)||E("Contact");let r=await fetch(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}});if(!r.ok)throw Error("Network response was not ok");return await r.json()}catch(e){throw console.error(e),e}}),T=async(e,t)=>{let r;if(!b.current&&!s){b.current=!0,j(!0),p("");try{let e=await t();r=["email","fullName","websiteUrl","brandType","adSpendMonthly"].some(t=>e[t])}finally{b.current=!1,j(!1)}r||_(e)}},_=async n=>{o(!0),p("");let a=null;await fetch("https://api.ipify.org?format=json").then(e=>e.json()).then(e=>{a=e.ip}).catch(e=>{console.error("Error fetching IP:",e)});try{let l=n.brandType,i=n.email,{firstName:s,lastName:o}=(0,eq.splitFullName)(n.fullName),u=n.websiteUrl,c=n.submissionIntent,d=n.adSpendMonthly,f=eG(i,u),{isIcp:m,reason:p}=(({brandType:e,adSpendMonthly:t,submissionIntent:r})=>{let n;return{isIcp:"none"===(n="attend_webinar"===r?"webinar":"agency"===e?"agency":"other"===e?"other":"sell_service"===e?"service":"2500_10000"===t?"under_review":"0_1000"===t||"1000_2500"===t?"early_stage":"none"),reason:n}})({brandType:l,adSpendMonthly:d,submissionIntent:c}),x={email:i,firstName:s,lastName:o,websiteUrl:u,brandType:l,referralSource:"",referralSourceOther:"",phoneNumber:"",submissionIntent:c,adSpendMonthly:d,context:{hutk:h?.hubspotutk,fbp:h?._fbp,fbc:h?._fbc,...(0,eV.getMarketingParams)(),is_icp:m,icp_disqualification_reason:p,...r?.country?{assigned_region:(0,ev.regionForCountry)(r.country)}:{},ipAddress:a,pageUri:window.location.href,pageName:document.title,device:window.matchMedia("(max-width: 639px)").matches?"mobile":"desktop"},options:{sendOnboardingEmail:!1}};t?console.info("[dry-run] get-started submit skipped",x):(await k(x),f||w.dataLayer.trackGetStartedSubmitted({brandType:l,adSpendMonthly:d,referralSource:"",submissionIntent:c})),t||f||!m&&"under_review"!==p||(E("SubmitApplication"),w.dataLayer.trackGetStartedCompleted({brandType:l,adSpendMonthly:d,email:i,referralSource:"",submissionIntent:c,websiteUrl:u,leadTier:m?"icp":"under_review"})),m?e.push(`/get-started?${g.default.stringify({state:"book-demo",email:i,firstname:s,lastname:o,...(0,y.dryRunParams)(t)})}`):"under_review"===p?e.push(`/get-started?${g.default.stringify({state:"under-review",email:i,firstname:s})}`):"early_stage"===p?window.location.href="https://cuttable.com/early-stage":window.location.href="https://cuttable.com/not-ready"}catch(e){p("Something went wrong. Please try again."),console.error(e)}finally{o(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.PageTitle,{title:"Get Started"}),(0,n.jsx)(i.Formik,{initialValues:{email:"",fullName:"",websiteUrl:"",brandType:"sell_product",submissionIntent:"",adSpendMonthly:""},onSubmit:(e,{validateForm:t})=>T(e,t),validationSchema:eK,validateOnChange:!1,validateOnBlur:!1,children:({values:e,errors:t,validateForm:r})=>(0,n.jsxs)(i.Form,{onFocus:S,onKeyDown:t=>{let r=t.target;if("Enter"===t.key&&"INPUT"===r.tagName)if("next"===r.enterKeyHint){t.preventDefault();let e=Array.from(t.currentTarget.querySelectorAll('input, [role="combobox"]'));e[e.indexOf(r)+1]?.focus()}else"done"===r.enterKeyHint&&(t.preventDefault(),r.blur(),e.adSpendMonthly&&t.currentTarget.requestSubmit())},className:"flex flex-col gap-6 sm:gap-8",children:[(0,n.jsx)(eW,{}),(0,n.jsxs)("div",{className:"flex flex-col items-center gap-3 sm:gap-4",children:[t&&Object.keys(t).length>0&&(0,n.jsx)("span",{className:"text-center text-sm text-dangerTextMedium",children:Object.values(t||{}).join(", ")}),c&&(0,n.jsx)("span",{className:"text-center text-sm text-dangerTextMedium",children:c}),(0,n.jsx)(u.Button,{type:"button",variant:"success",size:"sm",className:"w-full rounded-md",disabled:s||v,loading:s||v,loadingText:s?"Sending...":"Checking...",onClick:()=>T(e,r),children:"Next"}),(0,n.jsxs)("p",{className:"w-full text-xs leading-relaxed text-defaultTextWeaker",children:["By submitting this form, you agree to our"," ",(0,n.jsx)("a",{href:"https://cuttable.com/terms-of-service",target:"_blank",rel:"noreferrer",className:"text-defaultTextMedium underline transition-colors hover:text-defaultTextWeaker",children:"Terms of Service"})," ","and acknowledge that we may contact you via email with important updates, onboarding info, and occasional marketing messages."]})]})]})})]})},ez=()=>(0,n.jsxs)("div",{className:"relative flex min-h-full w-full items-center justify-center sm:p-8",children:[(0,n.jsxs)("picture",{className:"hidden sm:block",children:[(0,n.jsx)("source",{srcSet:"/m/get-started/background.webp",type:"image/webp"}),(0,n.jsx)("img",{src:"/m/get-started/background.jpg",alt:"","aria-hidden":!0,
1className:"pointer-events-none fixed inset-0 h-full w-full object-cover object-[50%_45%]"})]}),(0,n.jsx)("div",{className:"pointer-events-none fixed inset-0 hidden bg-black/70 sm:block"}),(0,n.jsx)("a",{href:"https://cuttable.com",className:"fixed left-8 top-8 z-10 hidden opacity-80 transition-opacity hover:opacity-100 sm:block","aria-label":"Cuttable",children:(0,n.jsx)(c.LogoWithText,{className:"h-auto w-24"})}),(0,n.jsxs)("div",{className:"relative z-10 flex min-h-dvh w-full max-w-[560px] flex-col bg-defaultSurface px-5 py-5 sm:min-h-0 sm:rounded-3xl sm:border sm:border-white/[0.06] sm:px-14 sm:py-14 sm:shadow-[0_24px_80px_rgba(0,0,0,0.6)]",children:[(0,n.jsx)("div",{className:"mb-5 sm:hidden",children:(0,n.jsx)(c.LogoWithText,{className:"h-auto w-24"})}),(0,n.jsx)(eH,{})]})]}),eJ=()=>{let e=(0,d.useSearchParams)(),t=e.get("state")??"fill-form",r=e.get("email")??void 0;if("book-demo"===t){let t=[e.get("firstname"),e.get("lastname")].filter(Boolean).join(" ")||void 0;return(0,n.jsx)(eN,{email:r,name:t})}return"email-sent"===t?(0,n.jsx)(h,{email:r}):"under-review"===t?(0,n.jsx)(h,{email:r,variant:"review"}):"attend-webinar"===t?(0,n.jsx)(eD,{email:r}):(0,n.jsx)(ez,{})};var eY=e.i(64021);e.s(["GetStartedPage",0,()=>(0,n.jsx)(m.MetaPixelProvider,{children:(0,n.jsx)(ek.DryRunProvider,{children:(0,n.jsx)(l.CookiesProvider,{children:(0,n.jsx)(eY.FramelessLayout,{noPadding:!0,children:(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)(ez,{}),children:(0,n.jsx)(eJ,{})})})})})})],61921)}]);
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.