PageSourceSearch

https://www.supermotion.co/_next/static/chunks/pages/activate-d52706ef6abcf3dc.js

js supermotion.co collected 2026-10-04 21:25:12 UTC 4,659 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2675],{976:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/activate",function(){return n(9638)}])},9638:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37876),a=n(14232),o=n(27038),s=n(93262),r=n(3732),l=n(49815),c=n(35578),u=n(91600),d=n(27088),h=n(25042),x=n(69367),p=n(25947),f=n(53024),j=n(72999);n(34276);var v=n(89099),w=n(59174);function g(){let e=(0,x.useUser)(),t=(0,v.useRouter)(),n={title:"Activate License - SuperMotion",description:"Activate your SuperMotion license key.",robots:"noindex,nofollow"};a.useEffect(()=>{let{license_key:e}=t.query;console.log({license_key:e}),e&&m(e)},[t.query]);let[g,m]=a.useState(null),[y,b]=a.useState(),[k,S]=a.useState(),[A,_]=a.useState(),{isPro:C,updateProfile:T,email:z}=(0,h.xc)({revalidate:!0});return C?(0,i.jsx)(f.A,{seo:n,children:(0,i.jsx)(o.s,{w:"100vw",h:"100vh",align:"start",justify:"center",children:(0,i.jsxs)(s.T,{spacing:4,children:[(0,i.jsx)(j.w,{children:"Activate Your License"}),(0,i.jsx)(r.E,{fontSize:"sm",fontWeight:600,color:"#666",children:"\uD83C\uDF89 You're already a PRO user"}),(0,i.jsx)(u.jn,{as:"a",href:"/",children:"Back to studio"})]})})}):e?(0,i.jsx)(f.A,{seo:n,children:(0,i.jsx)(o.s,{w:"100vw",h:"100vh",align:"start",justify:"center",children:(0,i.jsxs)(s.T,{w:"100%",maxW:"400px",spacing:4,as:"form",onSubmit:e=>{e.preventDefault(),_(!0),fetch("/api/auth/activate?license_key=".concat(g,"&email=").concat(z)).then(e=>e.json()).then(e=>{console.log(e);let{success:t,message:n,isValid:i}=e;t&&i?T({tier:"pro",license_key:g}).then(e=>{var t;S("Your license key has been activated!"),setTimeout(()=>S(null),5e3),(null==(t=window)?void 0:t.plausible)&&window.plausible("Purchase"),w.zS.track(w.R2.PURCHASE)}).catch(e=>{b("Your license key is valid but there was an error while upgrading your account. Please, contact me at [email protected] to upgrade your account mannually."),setTimeout(()=>b(null),5e3)}):(b(n),setTimeout(()=>b(null),5e3))}).catch(e=>{b(e),setTimeout(()=>b(null),5e3)}).finally(e=>_(!1))},children:[(0,i.jsx)(j.w,{textTransform:"capitalize",children:"Activate your license"}),(0,i.jsx)(l.p,{placeholder:"Type in your license key...",value:g,onChange:e=>m(e.target.value),...d.C8}),(0,i.jsx)(u.jn,{w:"100%",type:"submit",isDisabled:!g,isLoading:A,children:"Activate"}),y&&(0,i.jsx)(r.E,{fontSize:"sm",color:"red.500",children:y}),k&&(0,i.jsx)(r.E,{fontSize:"sm",color:"green.500",children:k}),(0,i.jsxs)(r.E,{fontSize:"xs",fontWeight:500,color:"gray.500",children:["Don't have a license key yet?",(0,i.jsxs)(c.az,{as:"a",href:"https://supermotion.lemonsqueezy.com/checkout/buy/45618393-0127-415b-b3ca-b95b4cf119a5?desc=0&discount=1",target:"_blank",onClick:()=>{window.plausible&&window.plausible("Checkout")},children:[" ",(0,i.jsx)("u",{children:"Buy a license now"})]}),"."]})]})})}):(0,i.jsx)(f.A,{seo:n,children:(0,i.jsx)(o.s,{w:"100vw",h:"100vh",align:"start",justify:"center",children:(0,i.jsxs)(s.T,{spacing:4,children:[(0,i.jsx)(r.E,{fontSize:"sm",fontWeight:600,color:"#666",children:"Log in or create an account first."}),(0,i.jsx)(p.U,{})]})})})}},53024:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var i=n(37876),a=n(75961),o=n.n(a);n(14232);var s=n(93262),r=n(35578),l=n(34731),c=n(27088),u=n(16068),d=n(19072);function h(e){let{header:t,footer:n,allowScroll:a,seo:h,children:x}=e;return(0,i.jsxs)(i.Fragment,{children:[h&&(0,i.jsx)(d.A,{...h}),(0,i.jsx)(o(),{id:"a750d06db1664409",dynamic:[c.ZC,a?"overflow-y: auto !important;":""],children:"html,body{background:".concat(c.ZC,";color:#000f1a;").concat(a?"overflow-y: auto !important;":"","}")}),(0,i.jsxs)(s.T,{display:"inline-grid",templateRows:"60px auto auto",alignItems:"start",templateColumns:"100%",rowGap:"40px",w:"100%",maxW:"100%",minHeight:["auto","100vh","100vh","100vh"],position:"relative",bg:"backgroundBody",overflowX:"visible",overflowY:"auto",className:"hide-scrollbar",children:[null!=t?t:(0,i.jsx)(l.Ay,{isFixed:a}),(0,i.jsx)(r.az,{w:"100%",pt:"100px",children:x}),null!=n?n:(0,i.jsx)(u.A,{})]})]})}},72999:(e,t,n)=>{"use strict";n.d(t,{p:()=>s,w:()=>o});var i=n(37876);n(14232);var a=n(1129);function o(e){let{children:t,...n}=e;return(0,i.jsx)(a.D,{fontSize:"20px",fontWeight:700,textAlign:"center",color:"#aaa",...n,children:t})}function s(e){let{children:t,...n}=e;return(0,i.jsx)(a.D,{textAlign:"center",color:"#aaa",fontSize:["54px","80px","80px","80px"],fontWeight:"800",mb:"-30px",sx:{background:"linear-gradient(180deg, #aaa, #aaaaaa00 90%)",WebkitBackgroun
1dClip:"text",WebkitTextFillColor:"transparent"},...n,children:t})}}},e=>{e.O(0,[6068,636,6593,8792],()=>e(e.s=976)),_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.