PageSourceSearch

https://aishudash-zzzaadkh.manus.space/assets/ShortcutCompanionPage-vzZ0rFMF.js

js aishudash-zzzaadkh.manus.space collected 2026-10-03 05:01:06 UTC 11,540 bytes, 1 lines download raw bytes

1import{cN as j,u as C,r as i,j as e,n as o,b4 as w,a6 as P,M as p,t as m,$ as g,aj as S}from"./vendor-react-CSjVeD5C.js";import{t as v}from"./index-DCu_4ttF.js";import"./vendor-misc-DNIZ_o8-.js";import"./vendor-ui-BQCqNqg0.js";import"./vendor-charts-CTZ3m9kf.js";import"./vendor-ai-CwA6B3_0.js";const N=Array.from({length:25},(d,s)=>({id:s,x:Math.random()*100,y:Math.random()*100,size:Math.random()*3+1,delay:Math.random()*5,duration:4+Math.random()*5}));function A(){const{id:d}=j(),[,s]=C(),x=parseInt(d||"0"),c=i.useRef(null),[r,u]=i.useState(!1),[y,k]=i.useState("chat"),{data:t,isLoading:b}=v.shortcut.getShortcutCharacter.useQuery({characterId:x},{enabled:!!x});if(i.useEffect(()=>{c.current&&t?.heroVideoUrl&&(c.current.src=t.heroVideoUrl,c.current.load())},[t?.heroVideoUrl]),b)return e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:39",className:"min-h-screen bg-[#050508] flex items-center justify-center",children:e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:40",className:"w-8 h-8 rounded-full border-2 border-[#FF4B6E] border-t-transparent animate-spin"})});if(!t)return e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:47",className:"min-h-screen bg-[#050508] flex flex-col items-center justify-center gap-4",children:[e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:48",className:"text-white/40 text-lg",children:"Character not found"}),e.jsx("button",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:49",onClick:()=>s("/soul-select"),className:"px-6 py-2 rounded-xl bg-white/10 text-white/60 text-sm hover:bg-white/20 transition-colors",children:"Start Over"})]});const h=t.heroVideoUrl,n=t.emotionImages,l=t.profilePhotoUrl||n?.neutral||t.sourcePhotoUrl;return e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:64",className:"min-h-screen bg-[#050508] overflow-hidden relative",children:[e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:66",className:"absolute inset-0 pointer-events-none",children:N.map(a=>e.jsx(o.div,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:68",className:"absolute rounded-full",style:{left:`${a.x}%`,top:`${a.y}%`,width:a.size,height:a.size,backgroundColor:a.id%3===0?"rgba(255,75,110,0.3)":a.id%3===1?"rgba(167,139,250,0.3)":"rgba(255,143,171,0.2)"},animate:{y:[0,-15,0],opacity:[.2,.7,.2]},transition:{duration:a.duration,delay:a.delay,repeat:1/0,ease:"easeInOut"}},a.id))}),e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:90",className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,75,110,0.08) 0%, transparent 70%)"}}),e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:98",className:"relative z-20 flex items-center justify-between px-6 pt-6 pb-2",children:[e.jsxs("button",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:99",onClick:()=>s("/companions"),className:"flex items-center gap-2 text-white/40 hover:text-white/70 transition-colors text-sm",children:[e.jsx(w,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:103",className:"w-4 h-4"}),e.jsx("span",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:104",children:"My Companions"})]}),e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:106",className:"flex items-center gap-3",children:e.jsx("button",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:107",className:"w-8 h-8 rounded-full bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition-colors",children:e.jsx(P,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:108",className:"w-4 h-4 text-white/40"})})})]}),e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:114",className:"relative z-10 flex items-start justify-center gap-4 px-4 pt-4 pb-8 min-h-[calc(100vh-80px)]",children:[e.jsxs(o.div,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:119",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7},className:"flex flex-col items-center gap-4 flex-shrink-0",style:{width:"min(340px, 90vw)"}
1,children:[e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:127",className:"text-center",children:[e.jsx("h1",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:128",className:"text-2xl font-bold text-white tracking-tight",children:t.name}),e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:129",className:"text-white/30 text-sm mt-1 capitalize",children:[t.soulArchetype||"Companion"," · Age ",t.age]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:135",className:"relative rounded-3xl overflow-hidden",style:{width:"min(300px, 85vw)",aspectRatio:"9/16",maxHeight:"520px",boxShadow:"0 0 60px rgba(255,75,110,0.15), 0 0 120px rgba(167,139,250,0.08)"},children:[h?e.jsxs(e.Fragment,{children:[e.jsx("video",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:146",ref:c,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,onCanPlay:()=>u(!0),className:"w-full h-full object-cover",style:{opacity:r?1:0,transition:"opacity 0.8s ease"}}),!r&&l&&e.jsx("img",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:157",src:l,alt:t.name,className:"absolute inset-0 w-full h-full object-cover"})]}):e.jsx("img",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:165",src:l||"",alt:t.name,className:"w-full h-full object-cover"}),e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:173",className:"absolute bottom-0 left-0 right-0 h-32 pointer-events-none",style:{background:"linear-gradient(to top, rgba(5,5,8,0.9) 0%, transparent 100%)"}}),h&&r&&e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:180",className:"absolute top-3 left-3 flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-black/40 backdrop-blur-sm border border-white/10",children:[e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:181",className:"w-1.5 h-1.5 rounded-full bg-[#FF4B6E] animate-pulse"}),e.jsx("span",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:182",className:"text-white/70 text-xs font-medium",children:"LIVE"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:187",className:"absolute bottom-4 left-4 right-4",children:[e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:188",className:"text-white font-semibold text-lg",children:t.name}),t.personalityNote&&e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:190",className:"text-white/50 text-xs mt-0.5 line-clamp-2",children:t.personalityNote})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:196",className:"flex items-center gap-3",children:[e.jsxs(o.button,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:197",whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>s("/"),className:"flex items-center gap-2 px-5 py-2.5 rounded-2xl text-white font-medium text-sm",style:{background:"linear-gradient(135deg, #FF4B6E, #A78BFA)"},children:[e.jsx(p,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:204",className:"w-4 h-4"}),"Talk to ",t.name]}),e.jsx(o.button,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:207",whileHover:{scale:1.05},whileTap:{scale:.95},className:"w-10 h-10 rounded-2xl bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition-colors",children:e.jsx(m,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:212",className:"w-4 h-4 text-white/40"})})]}),n&&Object.keys(n).length>0&&e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:218",className:"w-full",children:[e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:219",className:"text-white/20 text-xs text-center mb-2 tracking-widest uppercase",children:"Expressions"}),e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:220",className:"flex gap-2 justify-center flex-wrap",children:Object.entries(n).map(([a,f])=>e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:222",className:"flex flex-col items-center gap-1",children:[e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:223",className:"w-10 h-10 rounded-xl overflow-hidden border border-white/10",style:{boxShadow:"0 0 8px rgba(255,75,110,0.1)"}
1,children:e.jsx("img",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:227",src:f,alt:a,className:"w-full h-full object-cover"})}),e.jsx("span",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:229",className:"text-white/20 text-[9px] capitalize",children:a})]},a))})]})]}),e.jsxs(o.div,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:238",initial:{opacity:0,x:30},animate:{opacity:1,x:0},transition:{delay:.3,duration:.6},className:"hidden lg:flex flex-col w-64 min-h-[520px] rounded-2xl border border-white/5 bg-white/[0.02] items-center justify-center gap-3 mt-16",children:[e.jsx("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:244",className:"w-10 h-10 rounded-full border border-white/10 flex items-center justify-center",children:e.jsx(g,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:245",className:"w-5 h-5 text-white/20"})}),e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:247",className:"text-white/20 text-sm text-center px-4",children:["Memories &",e.jsx("br",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:248"}),"Photos"]}),e.jsx("button",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:250",onClick:()=>s("/photos"),className:"mt-2 px-4 py-1.5 rounded-xl bg-white/5 border border-white/10 text-white/30 text-xs hover:bg-white/10 transition-colors",children:"View Gallery"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:260",className:"lg:hidden fixed bottom-0 left-0 right-0 z-30 flex items-center justify-around px-6 py-4 bg-[#050508]/90 backdrop-blur-xl border-t border-white/5",children:[e.jsxs("button",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:261",onClick:()=>s("/"),className:"flex flex-col items-center gap-1",children:[e.jsx(p,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:265",className:"w-5 h-5 text-[#FF4B6E]"}),e.jsx("span",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:266",className:"text-[10px] text-white/40",children:"Chat"})]}),e.jsxs("button",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:268",onClick:()=>s("/memories"),className:"flex flex-col items-center gap-1",children:[e.jsx(m,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:272",className:"w-5 h-5 text-white/30"}),e.jsx("span",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:273",className:"text-[10px] text-white/40",children:"Memories"})]}),e.jsxs("button",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:275",onClick:()=>s("/photos"),className:"flex flex-col items-center gap-1",children:[e.jsx(g,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:279",className:"w-5 h-5 text-white/30"}),e.jsx("span",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:280",className:"text-[10px] text-white/40",children:"Photos"})]}),e.jsxs("button",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:282",onClick:()=>s("/voice"),className:"flex flex-col items-center gap-1",children:[e.jsx(S,{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:286",className:"w-5 h-5 text-white/30"}),e.jsx("span",{"data-loc":"client/src/pages/ShortcutCompanionPage.tsx:287",className:"text-[10px] text-white/40",children:"Voice"})]})]})]})}export{A as default};

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.