(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2626],{86753:function(e,t,a){Promise.resolve().then(a.bind(a,54604))},54604:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return v}});var r=a(57437),n=a(87208),i=a(90312),s=a(90809),l=a(21132),o=a(40399),c=a(44638),d=a(84576),u=a(43003),m=a(11528),g=a(76636),f=a(18624),p=a(44839),h=a(5186),b=a(69842),x=a(16463),w=a(2265),j=a(81215);function v(){let[e,t]=(0,w.useState)(!1),[a,v]=(0,w.useState)(null),[y,C]=(0,w.useState)(!1),k=(0,x.useRouter)();(0,w.useEffect)(()=>{(async()=>{window.oneSignalInitialized||(await j.Z.init({appId:"5c1e5239-29eb-4e8c-90eb-821cac3a6cd1",serviceWorkerPath:"/OneSignalSDKWorker.js",allowLocalhostAsSecureOrigin:!0,safari_web_id:"web.onesignal.auto.2c53d929-118c-4db5-ba77-650d97dbe49e",notifyButton:{enable:!1}}),window.oneSignalInitialized=!0,console.log("OneSignal initialized successfully"))})()},[]);let N=async t=>{let a,r;if(t.preventDefault(),v(null),t.target instanceof HTMLFormElement){let e=new FormData(t.target);a=e.get("email"),r=e.get("password")}else{var n,i;a=null===(n=document.querySelector('input[name="email"]'))||void 0===n?void 0:n.value,r=null===(i=document.querySelector('input[name="password"]'))||void 0===i?void 0:i.value}if(!a||!r){v("Please provide both email and password.");return}try{if(e){let e=(await (0,h.Xb)(c.I8,a,r)).user,t=a.split("@")[0];await (0,b.pl)((0,b.JU)(c.db,"users",e.uid),{email:e.email,firstName:t,username:t,createdAt:new Date,clipbooklm:"true"}),console.log("Account created successfully"),o.m.signup(e.uid);try{j.Z.User.addEmail(e.email),j.Z.User.addAlias("userId",e.uid),(0,o.F)(e.email),console.log("User subscribed to OneSignal")}catch(e){console.error("OneSignal subscription error:",e)}}else{let e=(await (0,h.e5)(c.I8,a,r)).user,t=(0,b.JU)(c.db,"users",e.uid);if(!(await (0,b.QT)(t)).exists()){let r=a.split("@")[0];await (0,b.pl)(t,{email:e.email,firstName:r,username:r,createdAt:new Date}),console.log("User document created for existing user")}o.m.login(e.uid),console.log("Signed in successfully")}k.push("/")}catch(e){v(e.message),console.error("Authentication error:",e)}},S=async e=>{var t;e.preventDefault();let a=null===(t=document.querySelector('input[name="email"]'))||void 0===t?void 0:t.value;if(!a){v("Please enter your email address first.");return}try{await (0,h.LS)(c.I8,a),C(!0),v(null)}catch(e){v(e.message),console.error("Password reset error:",e)}};return(0,r.jsxs)("main",{className:"overflow-hidden bg-gray-50",children:[(0,r.jsx)(i.d,{}),(0,r.jsx)("div",{className:"isolate flex min-h-dvh items-center justify-center p-4 sm:p-6 lg:p-8",children:(0,r.jsxs)("div",{className:"w-full max-w-md rounded-xl bg-white shadow-md ring-1 ring-black/5",children:[a&&(0,r.jsx)("div",{className:"mx-5 mt-5 rounded-lg bg-red-50 p-4 text-sm text-red-700",children:a}),y&&(0,r.jsx)("div",{className:"mx-5 mt-5 rounded-lg bg-green-50 p-4 text-sm text-green-700",children:"Password reset email sent! Please check your inbox."}),(0,r.jsxs)("form",{className:"p-5 sm:p-7 md:p-11",onSubmit:N,children:[(0,r.jsx)("div",{className:"flex items-start",children:(0,r.jsx)(s.r,{href:"/",title:"Home",children:(0,r.jsx)(l.Mark,{className:"h-9 fill-black"})})}),(0,r.jsx)("h1",{className:"mt-8 text-base/6 font-medium",children:"Welcome back!"}),(0,r.jsx)("p",{className:"mt-1 text-sm/5 text-gray-600",children:e?"Create your account to get started.":"Sign in to your account to continue."}),(0,r.jsxs)(d.Field,{className:"mt-8 space-y-3",children:[(0,r.jsx)(u.Label,{className:"text-sm/5 font-medium",children:"Email"}),(0,r.jsx)(m.Input,{required:!0,autoFocus:!0,type:"email",name:"email",className:(0,p.W)("block w-full rounded-lg border border-transparent shadow ring-1 ring-black/10","px-[calc(theme(spacing.2)-1px)] py-[calc(theme(spacing[1.5])-1px)] text-base/6 sm:text-sm/6","focus:outline focus:outline-2 focus:-outline-offset-1 focus:outline-black")})]}),(0,r.jsxs)(d.Field,{className:"mt-8 space-y-3",children:[(0,r.jsx)(u.Label,{className:"text-sm/5 font-medium",children:"Password"}),(0,r.jsx)(m.Input,{required:!0,type:"password",name:"password",className:(0,p.W)("block w-full rounded-lg border border-transparent shadow ring-1 ring-black/10","px-[calc(theme(spacing.2)-1px)] py-[calc(theme(spacing[1.5])-1px)] text-base/6 sm:text-sm/6","focus:outline focus:outline-2 focus:-outline-offset-1 focus:outline-black")})]}),(0,r.jsxs)("div",{className:"mt-8 flex items-center justify-between text-sm/5",children:[(0,r.jsxs)(d.Field,{className:"flex items-center gap-3",children:[(0,r.jsx)(g.Checkbox,{name:"remember-me",className:(0,p.W)("group block size-4 rounded border border-transparent shadow ring-1 ring-black/10 focus:outline-none","data-[checked]:bg-black data-[checked]:ring-black","focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-black"),children:(0,r.jsx)(f.Z,{className:"fill-white opacity-0 group-data-[checked]:opacity-100"})}),(0,r.jsx)(u.Label,{children:"Remember me"})]}),(0,r.jsx)(s.r,{href:"#",onClick:S,className:"font-medium hover:text-gray-600",children:"Forgot password?"})]}),(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)(n.z,{type:"submit",className:"w-full py-3 text-lg font-semibold",style:{minHeight:"44px"},children:e?"Get Started":"Sign in"})})]}),(0,r.jsxs)("div",{className:"m-1.5 rounded-lg bg-gray-50 py-4 text-center text-sm/5 ring-1 ring-black/5",children:[e?"Already a member?":"Not a member?"," ",(0,r.jsx)("button",{className:"font-medium hover:text-gray-600",onClick:()=>t(!e),children:e?"Sign in instead":"Create an account"})]})]})})]})}},87208:function(e,t,a){"use strict";a.d(t,{z:function(){return o}});var r=a(57437),n=a(42084),i=a(44839),s=a(90809);let l={primary:(0,i.W)("inline-flex items-center justify-center px-4 py-[calc(theme(spacing.2)-1px)]","rounded-full border border-transparent bg-gray-950 shadow-md","whitespace-nowrap text-base font-medium text-white","data-[disabled]:bg-gray-950 data-[hover]:bg-gray-800 data-[disabled]:opacity-40"),secondary:(0,i.W)("relative inline-flex items-center justify-center px-4 py-[calc(theme(spacing.2)-1px)]","rounded-full border border-transparent bg-white/15 shadow-md ring-1 ring-[#D15052]/15","after:absolute after:inset-0 after:rounded-full after:shadow-[inset_0_0_2px_1px_#ffffff4d]","whitespace-nowrap text-base font-medium text-gray-950","data-[disabled]:bg-white/15 data-[hover]:bg-white/20 data-[disabled]:opacity-40"),outline:(0,i.W)("inline-flex items-center justify-center px-2 py-[calc(theme(spacing.[1.5])-1px)]","rounded-lg border border-transparent shadow ring-1 ring-black/10","whitespace-nowrap text-sm font-medium text-gray-950","data-[disabled]:bg-transparent data-[hover]:bg-gray-50 data-[disabled]:opacity-40")};function o(e){let{variant:t="primary",className:a,...o}=e;return(a=(0,i.W)(a,l[t]),void 0===o.href)?(0,r.jsx)(n.Button,{...o,className:a}):(0,r.jsx)(s.r,{...o,className:a})}},90312:function(e,t,a){"use strict";a.d(t,{d:function(){return s},p:function(){return i}});var r=a(57437),n=a(44839);function i(e){let{className:t,...a}=e;return(0,r.jsx)("div",{...a,className:(0,n.W)(t,"bg-[linear-gradient(115deg,var(--tw-gradient-stops))] from-[#fff1be] from-[28%] via-[#ffa07a] via-[70%] to-[#dc143c] sm:bg-[linear-gradient(145deg,var(--tw-gradient-stops))]")})}function s(){return(0,r.jsx)("div",{className:"relative mx-auto max-w-7xl",children:(0,r.jsx)("div",{className:(0,n.W)("absolute -right-60 -top-44 h-60 w-[36rem] transform-gpu md:right-0","bg-[linear-gradient(115deg,var(--tw-gradient-stops))] from-[#fff1be] from-[28%] via-[#ffa07a] via-[70%] to-[#dc143c]","rotate-[-10deg] rounded-full blur-3xl")})})}},90809:function(e,t,a){"use strict";a.d(t,{r:function(){return s}});var r=a(57437),n=a(8362),i=a(87138);let s=(0,a(2265).forwardRef)(function(e,t){return(0,r.jsx)(n.DataInteractive,{children:(0,r.jsx)(i.default,{ref:t,...e})})})},21132:function(e,t,a){"use strict";a.r(t),a.d(t,{Logo:function(){return o},Mark:function(){return c}});var r=a(57437),n=a(44839),i=a(1459),s=a(66648),l={src:"/_next/static/media/logo.20cc8390.svg",height:330,width:330,blurWidth:0,blurHeight:0};function o(e){let{className:t}=e,a={duration:.5,ease:"easeInOut"};return(0,r.jsxs)(i.E.div,{className:"flex items-center",variants:{idle:{},active:{}},initial:"idle",whileHover:"active",children:[(0,r.jsx)(i.E.div,{variants:{idle:{scale:1,opacity:1},active:{scale:[1,1.05],opacity:[1,.8,1],transition:{...a,delay:0}}},children:(0,r.jsx)(s.default,{src:l,alt:"Logo",width:34,height:34,className:(0,n.W)("object-contain",t)})}),(0,r.jsx)(i.E.svg,{width:"120",height:"20",viewBox:"0 0 818 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,n.W)(t,"overflow-visible ml-2"),children:(0,r.jsx)(i.E.path,{d:"M79.8 153.8C38.6 153.8 2.98023e-08 124.2 2.98023e-08 80.4C2.98023e-08 34.6 33 0.199998 78 0.199998C121.2 0.199998 156.2 33.6 156.2 76C156.2 119.8 122.2 153.8 79.8 153.8ZM78.6 120.6C102 120.6 118.4 100.8 118.4 77.2C118.4 54 101.8 33.4 78 33.4C54.4 33.4 37.8 53.2 37.8 76.6C37.8 101 54.4 120.6 78.6 120.6ZM228.756 151H189.756L140.356 3H179.156L208.956 106.8H209.356L239.356 3H278.356L228.756 151ZM361.092 151H278.892V3H361.092V36.2H315.092V59.2H359.692V92.4H315.092V117.8H361.092V151ZM482.556 151H439.356L405.156 103.2H404.756V151H368.556V3H416.956C432.356 3 444.156 5 451.956 8.39999C467.956 15.6 479.156 33 479.156 54C479.156 77.4 465.156 96.6 442.356 100.6L482.556 151ZM404.756 77.4H418.756C433.756 77.4 442.956 70.4 442.956 56.2C442.956 43.4 433.356 36.2 419.156 36.2H404.756V77.4ZM565.82 151H484.22V3H522.02V117.8H565.82V151ZM707.136 151H666.136L658.936 129.6H607.536L599.736 151H559.136L618.536 3H648.336L707.136 151ZM648.936 99.6L633.736 49.2L633.136 49L617.936 99.6H648.936ZM742.498 151H706.298V3H756.298C772.098 2.79999 783.898 5 791.698 8.6C807.698 16 817.698 33 817.698 53C817.698 80.4 802.498 104.6 760.098 104.6H742.498V151ZM742.498 71.4H758.698C773.898 71.4 781.498 66.2 781.498 53.6C781.498 41.6 774.098 36.2 757.298 36.2H742.498V71.4Z",fill:"black",variants:{idle:{scale:1,opacity:1},active:{scale:[1,1.05],opacity:[1,.8,1],transition:{...a,delay:.1}}}})})]})}function c(e){let{className:t}=e;return(0,r.jsx)(i.E.div,{variants:{idle:{scale:1,opacity:1},active:{scale:[1,1.05],opacity:[1,.8,1],transition:{duration:.5,ease:"easeInOut",delay:0}}},children:(0,r.jsx)(s.default,{src:l,alt:"Logo",width:34,height:34,className:(0,n.W)("object-contain",t)})})}},40399:function(e,t,a){"use strict";a.d(t,{F:function(){return o},m:function(){return c}});var r=a(78645),n=a(91738),i=a(22170),s=a.n(i);!async function(){!function(){try{r.S1("182a293af8498349d54ae917eab440c2",{}),console.log("Amplitude initialized successfully")}catch(e){console.error("Failed to initialize Amplitude:",e)}}()}();let l=(0,n.k)({sampleRate:1});function o(e){e?r.Iv(e):r.mc()}r.IH(l);let c={clickGetStarted:e=>{r.j("Get Started",{userId:e})},createNewProject:e=>{r.j("Create New Project",{userId:e})},openExistingProject:(e,t)=>{r.j("Open Existing Project",{projectId:e,userId:t})},downloadProject:(e,t)=>{r.j("Download",{projectId:e,userId:t})},shareTwitter:(e,t)=>{r.j("Share on Twitter",{projectId:e,userId:t})},shareLinkedIn:(e,t)=>{r.j("Share on LinkedIn",{projectId:e,userId:t})},viewBlogPost:(e,t)=>{r.j("Generate Blog Post",{postId:e,userId:t})},login:e=>{r.j("User Login",{userId:e})},signup:e=>{r.j("User Signup",{userId:e})},viewPricingPage:e=>{r.j("View Pricing Page",{userId:e})},selectPricingTier:(e,t)=>{r.j("Select Pricing Tier",{tierName:e,userId:t})},applyCoupon:(e,t)=>{r.j("Apply Coupon",{couponCode:e,userId:t})},startCheckout:(e,t,a)=>{r.j("Start Checkout",{tierName:e,price:t,userId:a})},checkoutError:(e,t)=>{r.j("Checkout Error",{errorMessage:e,userId:t})},downgradeSubscription:e=>{r.j("Downgrade Subscription",{userId:e})},initiateDowngrade:e=>{r.j("Initiate Downgrade",{userId:e})},cancelDowngrade:e=>{r.j("Cancel Downgrade",{userId:e})},proceedToFinalCancellation:e=>{r.j("Proceed to Final Cancellation",{userId:e})},confirmCancellation:e=>{r.j("Confirm Cancellation",{userId:e})},cancellationSuccess:e=>{r.j("Cancellation Success",{userId:e})},cancellationError:(e,t)=>{r.j("Cancellation Error",{errorMessage:e,userId:t})},contactSales:e=>{r.j("Contact Sales",{userId:e})},changeLanguage:(e,t)=>{r.j("Change Language",{languageCode:e,userId:t})},createProjectError:(e,t,a)=>{r.j("Create Project Error",{errorMessage:e,youtubeUrl:t,userId:a})},invalidYouTubeURL:(e,t)=>{r.j("Invalid YouTube URL",{urlEntered:e,userId:t})},submitFeatureRequest:(e,t)=>{r.j("Submit Feature Request",{description:e,userId:t})},copyArticleToClipboard:(e,t)=>{r.j("Copy Article to Clipboard",{articleId:e,userId:t})},changeAspectRatio:(e,t)=>{r.j("Change Aspect Ratio",{aspectRatio:e,userId:t})},changeDesiredLength:(e,t)=>{r.j("Change Desired Length",{length:e,userId:t})},changeContentType:(e,t)=>{r.j("Change Content Type",{contentType:e,userId:t})},updatePromptAdjustment:(e,t)=>{r.j("Update Prompt Adjustment",{promptAdjustment:e,userId:t})},upgradeSuccess:(e,t)=>{r.j("Upgrade Success",{tierName:e,userId:t})},openInStudio:(e,t)=>{r.j("Open in Studio",{videoId:e,userId:t})},pageView:e=>{d(e)}},d=s()(e=>{r.j("[Amplitude] Page Viewed",{url:e})},1e3,{leading:!0,trailing:!1})},44638:function(e,t,a){"use strict";a.d(t,{I8:function(){return o},db:function(){return c},wk:function(){return d}});var r=a(15236),n=a(5186),i=a(69842),s=a(68116);let l=(0,r.ZF)({apiKey:"AIzaSyCZIAW0EO5lQhX-iJD82wr_w3tv6TLe0V0",authDomain:"rizeo-40249.firebaseapp.com",projectId:"rizeo-40249",storageBucket:"rizeo-40249.appspot.com",messagingSenderId:"848133434953",appId:"1:848133434953:web:38473e054dc621af40d998",measurementId:"G-YPXFZGEBNT"}),o=(0,n.v0)(l),c=(0,i.ad)(l),d=(0,s.$C)(l)},18624:function(e,t,a){"use strict";var r=a(2265);let n=r.forwardRef(function({title:e,titleId:t,...a},n){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))});t.Z=n}},function(e){e.O(0,[4358,4533,8896,5336,5700,99,9150,7779,2971,7023,1744],function(){return e(e.s=86753)}),_N_E=e.O()}]);