PageSourceSearch

https://ofmai.ai/_next/static/chunks/7b7a0abdaff55392.js

js ofmai.ai collected 2026-10-05 13:53:34 UTC 16,394 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,970065,e=>{"use strict";var s=e.i(843476),a=e.i(271645),t=e.i(647163);let l=a.forwardRef(({className:e,...a},l)=>(0,s.jsx)("div",{ref:l,className:(0,t.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...a}));l.displayName="Card";let r=a.forwardRef(({className:e,...a},l)=>(0,s.jsx)("div",{ref:l,className:(0,t.cn)("flex flex-col space-y-1.5 p-6",e),...a}));r.displayName="CardHeader";let i=a.forwardRef(({className:e,...a},l)=>(0,s.jsx)("h3",{ref:l,className:(0,t.cn)("text-2xl font-semibold leading-none tracking-tight",e),...a}));i.displayName="CardTitle";let n=a.forwardRef(({className:e,...a},l)=>(0,s.jsx)("p",{ref:l,className:(0,t.cn)("text-sm text-muted-foreground",e),...a}));n.displayName="CardDescription";let c=a.forwardRef(({className:e,...a},l)=>(0,s.jsx)("div",{ref:l,className:(0,t.cn)("p-6 pt-0",e),...a}));c.displayName="CardContent";let d=a.forwardRef(({className:e,...a},l)=>(0,s.jsx)("div",{ref:l,className:(0,t.cn)("flex items-center p-6 pt-0",e),...a}));d.displayName="CardFooter",e.s(["Card",()=>l,"CardContent",()=>c,"CardDescription",()=>n,"CardFooter",()=>d,"CardHeader",()=>r,"CardTitle",()=>i])},278716,e=>{"use strict";var s=e.i(618975);e.s(["Video",()=>s.default])},39312,e=>{"use strict";let s=(0,e.i(475254).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",()=>s],39312)},761911,e=>{"use strict";var s=e.i(98740);e.s(["Users",()=>s.default])},263488,e=>{"use strict";let s=(0,e.i(475254).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",()=>s],263488)},98919,e=>{"use strict";let s=(0,e.i(475254).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["Shield",()=>s],98919)},882293,e=>{"use strict";let s=(0,e.i(475254).default)("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["UserCheck",()=>s],882293)},802909,e=>{"use strict";var s=e.i(843476),a=e.i(217255),t=e.i(271645),l=e.i(618566),r=e.i(167881),i=e.i(23750),n=e.i(10708),c=e.i(970065),d=e.i(263488),o=e.i(283086),m=e.i(39312),x=e.i(278716),u=e.i(761911),h=e.i(98919),p=e.i(735501),f=e.i(882293),g=e.i(846696),b=e.i(985728),j=e.i(919742);let N=[{url:"https://hiddn2-public.s3.us-east-1.amazonaws.com/ofmai/cmjmmycvi003dnn3pqtf999gl_00001.mp4",label:"Strip AI"},{url:"https://hiddn2-public.s3.us-east-1.amazonaws.com/ofmai/cmjn37q3d004rnn3pt00cu2qr_00001-audio.mp4",label:"Dancing"},{url:"https://hiddn2-public.s3.us-east-1.amazonaws.com/ofmai/cmjm12xkb002jnn3pt5kmddcw_00001.mp4",label:"Cowgirl"}];function v({url:e,label:a}){return(0,s.jsxs)("div",{className:"relative aspect-[9/16] rounded-xl overflow-hidden bg-card border border-border",children:[(0,s.jsx)("video",{src:e,muted:!0,loop:!0,playsInline:!0,autoPlay:!0,className:"w-full h-full object-cover"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
1parent to-transparent"}),(0,s.jsx)("div",{className:"absolute bottom-3 left-3",children:(0,s.jsx)("span",{className:"text-xs font-medium text-white/90 bg-black/40 backdrop-blur-sm px-2 py-1 rounded-full",children:a})})]})}function w(e){return e>=1e3?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k+`:e.toString()}function y({partner:e,email:a,setEmail:t,isLoading:l,handleEmailSignIn:c,handleGoogleSignIn:o}){return(0,s.jsxs)("div",{className:"w-full space-y-4",children:[e&&(0,s.jsxs)("div",{className:"text-center space-y-1 pb-2",children:[(0,s.jsxs)("h2",{className:"text-xl font-bold",children:[e.name," × OFMAI"]}),(0,s.jsxs)("p",{className:"text-sm text-primary font-medium",children:["🎁 ",e.monthlyCredits," free credits/month included"]})]}),(0,s.jsxs)(r.Button,{variant:"outline",className:"w-full h-11",onClick:o,disabled:l,children:[(0,s.jsx)("svg",{className:"mr-2 h-4 w-4","aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"})}),"Continue with Google"]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,s.jsx)("span",{className:"w-full border-t"})}),(0,s.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,s.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with email"})})]}),(0,s.jsxs)("form",{onSubmit:c,className:"space-y-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n.Label,{htmlFor:"email",children:"Email address"}),(0,s.jsx)(i.Input,{id:"email",type:"email",placeholder:"[email protected]",value:a,onChange:e=>t(e.target.value),disabled:l,required:!0})]}),(0,s.jsxs)(r.Button,{className:"w-full h-11",type:"submit",disabled:l,children:[(0,s.jsx)(d.Mail,{className:"mr-2 h-4 w-4"}),"Sign in with Email"]})]}),(0,s.jsx)("p",{className:"text-center text-xs text-muted-foreground pt-1",children:"By clicking continue, you agree to our Terms of Service."})]})}function k(){let{t:e}=(0,b.useTranslation)(),{isFanVue:k,isFanvueConnected:C,fanvueStatusLoading:_}=(0,j.useFanVue)(),[S,I]=(0,t.useState)(""),[A,E]=(0,t.useState)(!1),[F,M]=(0,t.useState)(null),[B,O]=(0,t.useState)(null),{data:U,status:D}=(0,a.useSession)(),R=(0,l.useSearchParams)(),z=(0,l.useRouter)(),T=R.get("error");(0,t.useEffect)(()=>{"authenticated"===D&&z.push("/")},[D,z]),(0,t.useEffect)(()=>{"DisposableEmail"===T&&g.toast.error("Access Denied",{description:"Disposable email addresses are not allowed. Please use a valid email provider."}),"NotWhitelisted"===T&&g.toast.error("Access Restricted",{description:"This environment is closed. Only invited email addresses can sign in."}),"OAuthDenied"===T&&g.toast.error(e("auth.oauth_denied_title"),{description:e("auth.oauth_denied_desc")}),"OAuthCodeExpired"===T&&g.toast.error(e("auth.oauth_code_expired_title"),{description:e("auth.oauth_code_expired_desc")}),"OAuthStateExpired"===T&&g.toast.error(e("auth.oauth_state_expired_title"),{description:e("auth.oauth_state_expired_desc")})},[T]),(0,t.useEffect)(()=>{let e=R.get("ref");e&&localStorage.setItem("ofmai_referral",e.toUpperCase())},[R]),(0,t.useEffect)(()=>{let e=R.get("partner");e&&(localStorage.setItem("ofmai_partner",e),fetch(`/api/partnership?slug=${encodeURIComponent(e)}`).then(e=>e.ok?e.json():null).then(e=>{e&&M(e)}).catch(()=>{}))},[R]),(0,t.useEffect)(()=>{R.get("partner")&&fetch("/api/stats").then(e=>e.json()).then(O).catch(()=>{})},[R]);let q=async e=>{e.preventDefault(),E(!0);try{let e=await (0,a.signIn)("email",{email:S,callbackUrl:"/",redirect:!1});if(e?.url){let s=new URL(e.url,window.location.origin).searchParams.get("error");if("DisposableEmail"===s||"NotWhitelisted"===s)return void z.push(e.url)}e?.ok&&!e?.error?(g.toast.success("Check your email",{description:"A sign in link has been sent to your email address."}),I("")):g.toast.error("Something went wrong")}catch(e){console.error(e),g.toast.error("An unexpected error occurred")}finally{E(!1)}},G=()=>{E(!0),(0,a.signIn)("google",{callbackUrl:"/"})},H=[{icon:x.Video,title:"HD Photo & Video",desc:"Photorealistic NSFW images and HD videos from custom prompts. Expert mode gives you full control over every generation."},{icon:u.Users,title:e("landing.feat_character_title"),desc:e("landing.feat_character_desc")},{icon:o.Sparkles,title:e("landing.feat_fast_title"),desc:e("landing.feat_fast_desc")},{icon:h.Shield,title:e("landing.feat_privacy_title"),desc:e("landing.feat_privacy_desc")}];return F?(0,s.jsxs)("div",{className:"min-h-screen bg-background text-foreground flex flex-col lg:flex-row",children:[(0,s.jsxs)("div",{id:"mobile-auth",className:"lg:hidden px-5 py-8 border-b border-border bg-card/20",children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-4 mb-6",children:[F.logo?(0,s.jsx)("img",{src:F.logo,alt:F.name,className:"h-10 w-auto object-contain"}):(0,s.jsx)("div",{className:"h-10 w-10 rounded-xl bg-muted flex items-center justify-center font-bold",children:F.name.charAt(0)}),(0,s.jsx)("span",{className:"text-xl text-muted-foreground",children:"×"}),(0,s.jsx)("img",{src:"/logo.png",alt:"OFMAI",className:"h-10 w-auto object-contain"})]}),(0,s.jsx)(y,{partner:F,email:S,setEmail:I,isLoading:A,handleEmailSignIn:q,handleGoogleSignIn:G})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto px-6 md:px-12 py-10 space-y-14",children:[(0,s.jsxs)("div",{className:"hidden lg:flex items-center gap-4",children:[F.logo?(0,s.jsx)("img",{src:F.logo,alt:F.name,className:"h-12 w-auto object-contain"}):(0,s.jsx)("div",{className:"h-12 w-12 rounded-xl bg-muted flex items-center justify-center text-lg font-bold",children:F.name.charAt(0)}),(0,s.jsx)("span",{className:"text-2xl text-muted-foreground font-light",children:"×"}),(0,s.jsx)("img",{src:"/logo.png",alt:"OFMAI",className:"h-12 w-auto object-contain"})]}),(0,s.jsxs)("div",{className:"space-y-5 max-w-xl",children:[(0,s.jsxs)("div",{className:"hidden lg:inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-primary/10 border border-primary/20 text-sm text-primary font-medium",children:[(0,s.jsx)(m.Zap,{className:"w-3.5 h-3.5"}),e("landing.badge")]}),(0,s.jsxs)("h1",{className:"text-3xl md:text-5xl font-bold leading-tight",children:[e("landing.hero_title")," ",(0,s.jsxs)("span",{className:"bg-gradient-to-r from-primary via-purple-500 to-pink-500 bg-clip-text text-transparent",children:[F.name," Creators"]})]}),(0,s.jsx)("p",{className:"text-lg text-muted-foreground leading-relaxed",children:e("landing.hero_subtitle")}),B&&(B.totalGenerations>0||B.totalUsers>0)&&(0,s.jsxs)("div",{className:"flex flex-wrap gap-5 pt-1",children:[B.totalGenerations>0&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,s.jsx)(p.ImageIcon,{className:"w-4 h-4 text-primary"}),(0,s.jsx)("span",{className:"font-bold text-foreground",children:w(B.totalGenerations)}),(0,s.jsx)("span",{className:"text-sm",children:e("landing.stat_generations")})]}),B.totalUsers>0&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,s.jsx)(f.UserCheck,{className:"w-4 h-4 text-primary"}),(0,s.jsx)("span",{className:"font-bold text-foreground",children:w(B.totalUsers)}),(0,s.jsx)("span",{className:"text-sm",children:e("landing.stat_users")})]})]})]}),(0,s.jsxs)("div",{className:"space-y-5",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-bold mb-1",children:e("landing.showcase_title")}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:e("landing.showcase_subtitle")})]}),(0,s.jsx)("div",{className:"grid grid-cols-3 gap-3",children:N.map(e=>(0,s.jsx)(v,{url:e.url,label:e.label},e.label))})]}),(0,s.jsxs)("div",{className:"space-y-5 pb-4",children:[(0,s.jsx)("h2",{className:"text-xl font-bold",children:e("landing.features_title")}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:H.map(e=>(0,s.jsxs)("div",{className:"flex gap-4 p-4 rounded-xl border border-border bg-card/30",children:[(0,s.jsx)("div",{className:"w-10 h-10 shrink-0 rounded-lg bg-primary/10 flex items-center justify-center",children:(0,s.jsx)(e.icon,{className:"w-5 h-5 text-primary"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold mb-1 text-sm",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:e.desc})]})]},e.title))})]}),(0,s.jsx)("div",{className:"lg:hidden pb-10 pt-2",children:(0,s.jsxs)(r.Button,{className:"w-full h-12 text-base font-semibold gradient-bg shadow-lg shadow-primary/20",onClick:()=>document.getElementById("mobile-auth")?.scrollIntoView({behavior:"smooth"}),children:[(0,s.jsx)(o.Sparkles,{className:"w-4 h-4 mr-2 fill-current"}),"Get Started — Sign In"]})})]}),(0,s.jsx)("div",{className:"hidden lg:flex lg:w-[400px] shrink-0 sticky top-0 h-screen items-center justify-center p-10 border-l border-border bg-card/10",children:(0,s.jsx)(y,{partner:F,email:S,setEmail:I,isLoading:A,handleEmailSignIn:q,handleGoogleSignIn:G})})]}):(0,s.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:(0,s.jsxs)(c.Card,{className:"w-full max-w-md border-primary/20 bg-card/50 backdrop-blur",children:[(0,s.jsxs)(c.CardHeader,{className:"text-center space-y-2",children:[(0,s.jsx)("img",{src:"/logo.png",alt:"OFMAI",className:"mx-auto h-14 w-auto mb-2"}),(0,s.jsx)(c.CardTitle,{className:"text-2xl font-bold",children:"Welcome to OFMAI"}),(0,s.jsx)(c.CardDescription,{children:"Sign in to start creating with AI"})]}),(0,s.jsx)(c.CardContent,{className:"space-y-4",children:k?(0,s.jsxs)(r.Button,{className:"w-full h-12 text-black font-semibold text-base",style:{backgroundColor:"#49F264"},onClick:()=>{E(!0),window.location.href="/api/oauth/fanvue"},disabled:A,children:[(0,s.jsx)("img",{src:"https://cdn.brandfetch.io/id4XyrmESf/w/319/h/312/theme/dark/logo.png?c=1bxid64Mup7aczewSAYMX&t=1772352625035",alt:"FanVue",className:"mr-2 h-5 w-5 object-contain"}),e("auth.login_with_fanvue")]}):(0,s.jsxs)(s.Fragment,{children:[!C&&!_&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.Button,{className:"w-full h-12 text-black font-semibold text-base",style:{backgroundColor:"#49F264"},onClick:()=>{E(!0),window.location.href="/api/oauth/fanvue"},disabled:A,children:[(0,s.jsx)("img",{src:"https://cdn.brandfetch.io/id4XyrmESf/w/319/h/312/theme/dark/logo.png?c=1bxid64Mup7aczewSAYMX&t=1772352625035",alt:"FanVue",className:"mr-2 h-5 w-5 object-contain"}),e("auth.continue_with_fanvue")]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,s.jsx)("span",{className:"w-full border-t"})}),(0,s.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,s.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"Or"})})]})]}),(0,s.jsxs)(r.Button,{variant:"outline",className:"w-full h-11",onClick:G,disabled:A,children:[(0,s.jsx)("svg",{className:"mr-2 h-4 w-4","aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"})}),"Continue with Google"]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,s.jsx)("span",{className:"w-full border-t"})}),(0,s.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,s.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with email"})})]}),(0,s.jsxs)("form",{onSubmit:q,className:"space-y-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n.Label,{htmlFor:"email",children:"Email address"}),(0,s.jsx)(i.Input,{id:"email",type:"email",placeholder:"[email protected]",value:S,onChange:e=>I(e.target.value),disabled:A,required:!0})]}),(0,s.jsxs)(r.Button,{className:"w-full h-11",type:"submit",disabled:A,children:[(0,s.jsx)(d.Mail,{className:"mr-2 h-4 w-4"}),"Sign in with Email"]})]})]})}),(0,s.jsx)(c.CardFooter,{className:"justify-center text-sm text-muted-foreground",children:"By clicking continue, you agree to our Terms of Service."})]})})}function C(){return(0,s.jsx)(t.Suspense,{fallback:(0,s.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:"Loading..."}),children:(0,s.jsx)(k,{})})}e.s(["default",()=>C])}]);

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.