1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1692],{25028:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});var a=s(37876),r=s(8283),n=s(48230),l=s.n(n),i=s(89099),c=s(49038),d=s(97331),o=s(70360);function x(){let{isOpen:e,setIsOpen:t}=(0,o.b)(),{user:s}=(0,d.A)(),r=(0,i.useRouter)(),n=[{name:"Home",href:"/",icon:(0,a.jsx)(c.rQ8,{})},{name:"Generate Image",href:"/generate-image",icon:(0,a.jsx)(c.dkL,{})},{name:"Create Your AI",href:"/create-ai-girlfriend",icon:(0,a.jsx)(c.y8Q,{})},{name:"Premium",href:"/premium",icon:(0,a.jsx)(c.Hu1,{className:"text-yellow-400"})},{name:"Affiliate Program",href:"/affiliate-program",icon:(0,a.jsx)(c.DDN,{className:"text-green-400"})},...s?[{name:"My Chats",href:"/chats",icon:(0,a.jsx)(c.j1Q,{})},{name:"Group Chats",href:"/group-chat",icon:(0,a.jsx)(c.YXz,{})},{name:"My Companions",href:"/my-companions",icon:(0,a.jsx)(c.Mbv,{})},{name:"My Images",href:"/my-images",icon:(0,a.jsx)(c.kQE,{})}]:[]];return(0,a.jsxs)("div",{className:"hidden md:flex flex-col sticky top-0 h-screen bg-gray-800 text-white transition-all duration-300 ".concat(e?"w-48":"w-16"),children:[(0,a.jsx)("div",{className:"h-16 flex items-center justify-center border-b border-gray-700",children:(0,a.jsx)("button",{onClick:()=>t(!e),className:"focus:outline-none",children:(0,a.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e?(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"}):(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})}),(0,a.jsx)("ul",{className:"py-4 px-2 space-y-2",children:n.map(t=>(0,a.jsx)("li",{children:(0,a.jsxs)(l(),{href:t.href,className:"flex items-center py-2 ".concat(e?"px-4":"px-2 justify-center"," rounded-lg ").concat(e?"space-x-3":""," transition-colors ").concat(r.pathname===t.href?"bg-gray-700 text-pink-400":"hover:bg-gray-700 hover:text-pink-400"),children:[(0,a.jsx)("span",{className:"text-xl",children:t.icon}),e&&(0,a.jsx)("span",{className:"font-bold",children:t.name})]})},t.name))})]})}var m=s(12916),f=s(4985);function h(e){let{children:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"md:hidden min-h-screen bg-gray-900 text-white flex flex-col",children:[(0,a.jsx)(r.A,{}),(0,a.jsx)("main",{className:"flex-grow",children:t}),(0,a.jsx)(m.A,{}),(0,a.jsx)(f.A,{})]}),(0,a.jsxs)("div",{className:"hidden md:flex",children:[(0,a.jsx)(x,{}),(0,a.jsxs)("div",{className:"flex-1 min-h-screen bg-gray-900 flex flex-col",children:[(0,a.jsx)(r.A,{}),(0,a.jsx)("main",{className:"flex-grow p-4 mt-4",children:t}),(0,a.jsx)(f.A,{})]})]})]})}},70076:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/preview/[slug]",function(){return s(70960)}])},70960:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>x});var a=s(37876),r=s(89099),n=s(14232),l=s(30518),i=s(25028),c=s(48230),d=s.n(c),o=s(97331);function x(){let e=(0,r.useRouter)(),{slug:t}=e.query,{user:s}=(0,o.A)(),[c,x]=(0,n.useState)(null),[m,f]=(0,n.useState)(null),[h,u]=(0,n.use
1State)(!0);if((0,n.useEffect)(()=>{t&&void 0!==s&&(async()=>{let{data:a}=await l.supabase.from("girlfriends").select("*").eq("slug",t).single();if(a)return a.created_by&&s&&a.created_by!==s.id?e.replace("/"):(x(a),f("girlfriends"),u(!1));let{data:r}=await l.supabase.from("boyfriends").select("*").eq("slug",t).single();if(r)return r.created_by&&s&&r.created_by!==s.id?e.replace("/"):(x(r),f("boyfriends"),u(!1));let{data:n}=await l.supabase.from("anime").select("*").eq("slug",t).single();if(n)return n.created_by&&s&&n.created_by!==s.id?e.replace("/"):(x(n),f("anime"),u(!1));u(!1)})()},[t,s,e]),h)return(0,a.jsx)(i.A,{children:(0,a.jsx)("div",{className:"text-white text-center py-20 min-h-screen flex items-center justify-center bg-[#0f0f12]",children:(0,a.jsx)("div",{className:"animate-pulse",children:"Bringing your character to life..."})})});if(!c)return(0,a.jsx)(i.A,{children:(0,a.jsx)("div",{className:"text-white text-center py-20 min-h-screen flex items-center justify-center bg-[#0f0f12]",children:"Character not found."})});let b="Male"===c.gender,p={bg:b?"bg-blue-600 hover:bg-blue-700":"bg-pink-500 hover:bg-pink-600",text:b?"text-blue-400":"text-pink-400",border:b?"border-blue-500/30":"border-pink-500/30",shadow:b?"shadow-[0_10px_30px_rgba(59,130,246,0.3)]":"shadow-[0_10px_30px_rgba(236,72,153,0.3)]",badge:b?"border-blue-500/50 bg-blue-500/20 text-blue-300":"border-pink-500/50 bg-pink-500/20 text-pink-300"},g="COMPANION READY";return"anime"===m?g=b?"ANIME BF READY":"ANIME GF READY":"boyfriends"===m?g="AI BF READY":"girlfriends"===m&&(g="AI GF READY"),(0,a.jsx)(i.A,{children:(0,a.jsx)("main",{className:"min-h-screen bg-[#0f0f12] text-white flex flex-col items-center justify-center p-4 md:p-8",children:(0,a.jsxs)("div",{className:"w-full max-w-sm md:max-w-4xl bg-[#1a1a1f] rounded-[2.5rem] overflow-hidden shadow-2xl border ".concat(p.border," flex flex-col md:flex-row"),children:[(0,a.jsxs)("div",{className:"relative w-full md:w-1/2 aspect-[9/16] md:h-[650px]",children:[(0,a.jsx)("div",{className:"absolute top-6 left-6 z-10",children:(0,a.jsx)("div",{className:"px-3 py-1 rounded-full border backdrop-blur-md shadow-lg ".concat(p.badge),children:(0,a.jsxs)("span",{className:"font-bold uppercase tracking-tight text-[10px] md:text-[11px] flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"relative flex h-1.5 w-1.5",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ".concat(b?"bg-blue-400":"bg-pink-400")}),(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 ".concat(b?"bg-blue-500":"bg-pink-500")})]}),g]})})}),(0,a.jsx)("img",{src:c.profile_image,alt:c.name,className:"w-full h-full object-cover object-top"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[#1a1a1f] via-transparent to-transparent md:from-[#1a1a1f] md:via-[#1a1a1f]/20"}),(0,a.jsxs)("div",{className:"absolute bottom-8 left-8",children:[(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold mb-0.5 drop-shadow-lg",children:c.name}),(0,a.jsx)("p",{className:"".concat(p.text," font-semibold text-base drop-shadow-md"),children:c.occupation||"AI Companion"})]})]}),(0,a.jsxs)("div",{className:"w-full md:w-1/2 flex flex-col justify-center p-8 md:p-12 space-y-6",children:[(0,a.jsxs)("p",{className:"text-gray-300 italic text-center md:text-left leading-relaxed text-lg font-medium",children:['"',(e=>{if(!e)return"Ready to chat with you.";let t=e.match(/^.*?[.!?](?:\s|$)/);if(t&&t[0].length<160)return t[0].trim();if(e.length<=120)return e;let s=e.slice(0,120);return s.slice(0,Math.max(s.lastIndexOf(" "),0))+"..."})(c.description),'"']}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"bg-white/5 border border-white/5 rounded-2xl p-4 text-center",children:[(0,a.jsx)("p",{className:"text-[9px] text-gray-500 uppercase font-bold tracking-widest mb-0.5",children:"Style"}),(0,a.jsx)("p",{className:"font-bold text-sm",children:c.style})]}),(0,a.jsxs)("div",{className:"bg-white/5 border border-white/5 rounded-2xl p-4 text-center",children:[(0,a.jsx)("p",{className:"text-[9px] text-gray-500 uppercase font-bold tracking-widest mb-0.5",children:"Personality"}),(0,a.jsx)("p",{className:"font-bold text-sm",children:c.personality||"Friendly"})]})]}),(0,a.jsxs)("div",{className:"space-y-3 pt-2",children:[(0,a.jsx)(d(),{href:"/".concat("anime"===m?"ai-anime":"boyfriends"===m||(null==c?void 0:c.gender)==="Male"?"ai-boyfriend":"ai-girlfriend","/").concat(c.slug),className:"block",children:(0,a.jsx)("button",{className:"w-full ".concat(p.bg," text-white text-lg font-bold py-3.5 rounded-2xl transition-all transform hover:scale-[1.01] active:scale-95 ").concat(p.shadow),children:"START CHATTING"})}),(0,a.jsx)("button",{onClick:()=>e.push("boyfriends"===m?"/create-ai-boyfriend":"girlfriends"===m?"/create-ai-girlfriend":"anime"===m&&b?"/create-ai-boyfriend":"/create-ai-girlfriend"),className:"w-full bg-white/5 hover:bg-white/10 text-gray-400 font-bold py-3 rounded-2xl transition-colors border border-white/5 text-sm",children:"Create Another"})]})]})]})})})}}},e=>{e.O(0,[8585,4938,4403,636,6593,8792],()=>e(e.s=70076)),_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.