1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[157],{34724:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/join/[code]",function(){return a(86170)}])},86170:function(e,t,a){"use strict";a.r(t);var s=a(97458),i=a(30189),n=a(78685),l=a(52983),r=a(25415),c=a(1873),o=a(70725),d=a(14483),u=a(32109);const h=()=>{const e=(0,i.useRouter)(),{code:t}=e.query,[a,n]=(0,l.useState)(!1),{state:u}=(0,c.x8)(),{isLoading:h}=d.S.user.me.useQuery(void 0,{onSuccess(e){(null===e||void 0===e?void 0:e.onboarded)&&n(!0)}}),{mutate:m,status:x,isLoading:f,data:j}=d.S.project.joinProject.useMutation({onError(t){r.ZP.error("Couldn't join project"),console.error(t),e.push("/home")},onSuccess(){r.ZP.success("Joined project")}});return(0,l.useEffect)((()=>{"success"===x&&(h||f||((a||"done"===u.kind)&&e.push("/".concat(j.url)),c.ok.getState().setShowModal("onboard")))}),[x,a,h,f,j,u.kind]),(0,l.useEffect)((()=>{t&&"string"===typeof t&&m({slug:t})}),[t]),(0,s.jsxs)(s.Fragment,{children:[!f&&(0,s.jsx)(o.Z,{}),(0,s.jsx)("div",{className:"flex h-screen w-full items-center justify-center bg-amethyst-900",children:(0,s.jsx)("div",{className:"flex h-full flex-col items-center justify-center",children:(0,s.jsx)("div",{className:"animate-pulse rounded-full bg-red-500 p-4"})})})]})};t.default=()=>{const{status:e}=(0,n.useSession)();return"unauthenticated"===e?(0,s.jsx)(u.default,{callbackUrl:window.location.href}):(0,s.jsx)(h,{})}},32109:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return p}});var s=a(97458),i=a(58642),n=a(10126),l=a.n(n),r=a(30189),c=a(78685),o=a(70618),d=a(63150),u=a(37303),h=a(22300);const m=()=>(0,s.jsx)(i.E.img,{initial:{opacity:0}
1,animate:{opacity:1},transition:{ease:"easeIn",duration:3,delay:.5},src:"/time.png",className:"-ml-8 md:scale-150 xl:scale-100"}),x=l()((()=>a.e(551).then(a.bind(a,54551)).then((e=>e.Timestamp))),{loadableGenerated:{webpack:()=>[54551]}}),f=e=>{let{callbackUrl:t}=e;return(0,s.jsxs)("div",{className:"flex h-screen max-h-screen w-full max-w-screen-sm items-center justify-center overflow-hidden bg-amethyst-900 bg-cover sm:hidden",style:{backgroundImage:"url('/landingBgMobile.png')"},children:[(0,s.jsx)(x,{direction:"up"}),(0,s.jsx)("div",{className:"flex flex-1 flex-col items-center justify-center",children:(0,s.jsx)("div",{className:"flex flex-col items-center px-4",children:(0,s.jsx)(j,{callbackUrl:t})})}),(0,s.jsx)(x,{direction:"down"})]})},j=e=>{let{callbackUrl:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-16 flex flex-col items-center",children:(0,s.jsxs)(i.E.div,{className:"-mt-24 mb-8 sm:mb-12 sm:-mt-36",initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeInOut",duration:2},children:[(0,s.jsx)(h.T,{className:"hidden h-24 w-24 text-gray-50 sm:block xl:h-24 xl:w-24"}),(0,s.jsx)(h.q,{className:"h-16 w-16 sm:hidden"})]})}),(0,s.jsx)(i.E.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{ease:"anticipate",duration:2},className:"relative mt-16",children:(0,s.jsxs)("button",{onClick:()=>{(0,c.signIn)("google",{callbackUrl:t})},className:"flex items-center space-x-4 rounded-md border-4 border-amethyst-800/40 bg-gradient-to-r from-amethyst-500 to-amethyst-500/90 px-6 py-2.5 text-gray-50 shadow-xl transition-all duration-500 hover:scale-110 hover:to-amethyst-300",children:[(0,s.jsxs)("svg",{className:"h-6 w-6",viewBox:"0 0 128 128",children:[(0,s.jsx)("path",{fill:"white",d:"M44.59 4.21a63.28 63.28 0 004.33 120.9 67.6 67.6 0 0032.36.35 57.13 57.13 0 0025.9-13.46 57.44 57.44 0 0016-26.26 74.33 74.33 0 001.61-33.58H65.27v24.69h34.47a29.72 29.72 0 01-12.66 19.52 36.16 36.16 0 01-13.93 5.5 41.29 41.29 0 01-15.1 0A37.16 37.16 0 0144 95.74a39.3 39.3 0 01-14.5-19.42 38.31 38.31 0 010-24.63 39.25 39.25 0 019.18-14.91A37.17 37.17 0 0176.13 27a34.28 34.28 0 0113.64 8q5.83-5.8 11.64-11.63c2-2.09 4.18-4.08 6.15-6.22A61.22 61.22 0 0087.2 4.59a64 64 0 00-42.61-.38z"}),(0,s.jsx)("path",{fill:"white",d:"M44.59 4.21a64 64 0 0142.61.37 61.22 61.22 0 0120.35 12.62c-2 2.14-4.11 4.14-6.15 6.22Q95.58 29.23 89.77 35a34.28 34.28 0 00-13.64-8 37.17 37.17 0 00-37.46 9.74 39.25 39.25 0 00-9.18 14.91L8.76 35.6A63.53 63.53 0 0144.59 4.21z"}),(0,s.jsx)("path",{fill:"white",d:"M3.26 51.5a62.93 62.93 0 015.5-15.9l20.73 16.09a38.31 38.31 0 000 24.63q-10.36 8-20.73 16.08a63.33 63.33 0 01-5.5-40.9z"}),(0,s.jsx)("path",{fill:"white",d:"M65.27 52.15h59.52a74.33 74.33 0 01-1.61 33.58 57.44 57.44 0 01-16 26.26c-6.69-5.22-13.41-10.4-20.1-15.62a29.72 29.72 0 0012.66-19.54H65.27c-.01-8.22 0-16.45 0-24.68z"}),(0,s.jsx)("path",{fill:"white",d:"M8.75 92.4q10.37-8 20.73-16.08A39.3 39.3 0 0044 95.74a37.16 37.16 0 0014.08 6.08 41.29 41.29 0 0015.1 0 36.16 36.16 0 0013.93-5.5c6.69 5.22 13.41 10.4 20.1 15.62a57.13 57.13 0 01-25.9 13.47 67.6 67.6 0 01-32.36-.35 63 63 0 01-23-11.59A63.73 63.73 0 018.75 92.4z"})]}),(0,s.jsx)("span",{children:"Sign in with Google"})]})})]})};var p=!0;t.default=e=>{let{callbackUrl:t}=e;const a=(0,r.useRouter)(),i=t||a.query.callbackUrl||"/home";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.PB,{title:"Scalar.video - Let your creativity run wild on an infinite canvas.",description:"The collaborative video editor that breaks the boundaries of creativity, enabling you to craft infinite possibilities with your team.",canonical:"https://scalar.video",openGraph:{url:"https://www.url.ie/a",title:"Scalar.video - Let your creativity run wild on an infinite canvas.",description:"The collaborative video editor that breaks the boundaries of creativity, enabling you to craft infinite possibilities with your team.",images:[{url:"https://scalar.video/og.jpg",width:1800,height:1013,alt:"Og Image Alt",type:"image/jpeg"}]}}),(0,s.jsx)(f,{callbackUrl:i}),(0,s.jsx)(d.q,{}),(0,s.jsx)("div",{className:"hidden h-screen w-full max-w-[100vw] flex-col items-center justify-center overflow-hidden bg-amethyst-900 bg-cover sm:flex",style:{backgroundImage:"url('/landingBgDesktop.png')"},children:(0,s.jsx)("div",{className:"flex w-full flex-col items-center justify-center",children:(0,s.jsxs)(u.m,{children:[(0,s.jsx)(u.m.Layer,{children:(0,s.jsx)(m,{})}),(0,s.jsx)(u.m.Layer,{className:"z-20 flex flex-col items-center justify-center",children:(0,s.jsx)(j,{callbackUrl:i})})]})})})]})}}},function(e){e.O(0,[880,807,953,556,725,774,888,179],(function(){return t=34724,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.