PageSourceSearch

https://ai-fitness-body-simulator.vercel.app/_next/static/chunks/0bu9xhiy1qch_.js

js ai-fitness-body-simulator.vercel.app collected 2026-10-03 06:12:51 UTC 14,203 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,76331,e=>{"use strict";e.s(["standaloneConfig",0,{appId:"cmq6d4d270006dsu4g3gh5651",name:"ai-fitness-body-simulator",templateId:"ai-image",config:{systemPrompt:"You are an artistic AI that generates photorealistic image renderings based on text prompts.",aspectRatio:"1:1",model:"nano-banana-2-edit",creditCost:12,modelEndpoint:"https://api.muapi.ai/api/v1/nano-banana-2-edit",theme:"emerald",userParams:[{key:"prompt",label:"Prompt",type:"textarea",defaultValue:"",options:[],optionsText:"",min:0,max:100,step:1,maxInputs:1},{key:"images_list",label:"Images List",type:"image_list",defaultValue:[],options:[],optionsText:"",min:0,max:100,step:1,maxInputs:5},{key:"aspect_ratio",label:"Aspect Ratio",type:"enum",defaultValue:"Auto",options:["1:1","1:4","1:8","2:3","3:2","3:4","4:1","4:3","4:5","5:4","8:1","9:16","16:9","21:9"],optionsText:"1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9",min:0,max:100,step:1,maxInputs:1},{key:"google_search",label:"Google Search",type:"boolean",defaultValue:!1,options:[],optionsText:"",min:0,max:100,step:1,maxInputs:1},{key:"resolution",label:"Resolution",type:"enum",defaultValue:"1k",options:["1k","2k","4k"],optionsText:"1k, 2k, 4k",min:0,max:100,step:1,maxInputs:1,costModifiersText:"0, 6, 6",costModifiers:[0,6,6]},{key:"output_format",label:"Output Format",type:"enum",defaultValue:"jpg",options:["jpg","png"],optionsText:"jpg, png",min:0,max:100,step:1,maxInputs:1}],editModel:"",editModelEndpoint:""}}])},96524,e=>{"use strict";var t=e.i(43476),a=e.i(76331),s=e.i(17255),r=e.i(71645),i=e.i(90468),l=e.i(40238),o=e.i(11152),d=e.i(69620),n=e.i(81949),c=e.i(5766);e.s(["default",0,function(){let e,x,p,{data:m,status:u}=(0,s.useSession)(),[b,h]=(0,r.useState)([]),[g,f]=(0,r.useState)(null),[j,y]=(0,r.useState)(!0);(0,r.useEffect)(()=>{"authenticated"===u?n.default.get(`/api/creations?appId=${a.standaloneConfig.appId}`).then(({data:e})=>{h(e.filter(e=>"completed"===e.status)||[])}).catch(e=>console.error(e)).finally(()=>y(!1)):"unauthenticated"===u&&y(!1)},[u]);let v=(e,t)=>{let a=`/api/download?url=${encodeURIComponent(e)}`,s=document.createElement("a");s.href=a,s.download=t||`creation_${Date.now()}.png`,document.body.appendChild(s),s.click(),document.body.removeChild(s)},w=(e,t)=>{let a=document.createElement("a"),s=new Blob([e],{type:"text/plain"});a.href=URL.createObjectURL(s),a.download=t||`transcript_${Date.now()}.txt`,document.body.appendChild(a),a.click(),document.body.removeChild(a)};return(0,t.jsxs)("div",{className:"flex min-h-dvh flex-col bg-bg-page select-none text-primary-text overflow-hidden",children:[(0,t.jsx)(c.Toaster,{position:"top-right"}),(0,t.jsx)(i.default,{}),(0,t.jsxs)("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 py-8 sm:px-6 lg:px-8 flex flex-col gap-6 overflow-y-auto scrollbar-subtle",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("h1",{className:"text-2xl font-black tracking-tight uppercase",children:[a.standaloneConfig.name," Gallery"]}),(0,t.jsx)("p",{className:"text-xs text-secondary-text",children:"Browse and retrieve your completed predictions, custom chats, and speech transcripts."})]}),"unauthenticated"===u?(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center text-center py-20 bg-bg-card/20 rounded border border-divider/30",children:[(0,t.jsx)(o.FaImage,{className:"text-4xl opacity-20 mb-4"}),(0,t.jsx)("h3",{className:"text-sm font-extrabold uppercase",children:"Access Denied"}),(0,t.jsx)("p",{className:"text-xs text-secondary-text max-w-xs mt-2",children:"You must sign in with your Google account to view your generation gallery history."})]}):j?(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center py-20",children:(0,t.jsx)("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"})}):0===b.length?(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center text-center py-20 bg-bg-card/20 rounded border border-divider/30",children:[(0,t.jsx)(o.FaImage,{className:"text-4xl opacity-20 mb-4"}),(0,t.jsx)("h3",{className:"text-sm font-extrabold uppercase",children:"No creations saved"}),(0,t.jsx)("p",{className:"text-xs text-secondary-text max-w-xs mt-2",children:"Your completed generations will automatically appear here once generated in the workspace."})]}):(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6",children:b.map(e=>{let a=e.app?.templateId||"ai-image",s=e.app?.name||"AI Image Studio";if("ai-chat"===a)return(0,t.jsxs)("div",{className:"group relative bg-bg-card border border-divider/50 rounded p-5 flex flex-col justify-between h-56 
1shadow-lg hover:shadow-2xl hover:shadow-primary/5 hover:-translate-y-1 transition-all duration-300 cursor-pointer",onClick:()=>f(e),children:[(0,t.jsxs)("div",{className:"space-y-3 flex-1 overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-[9px] uppercase tracking-wider font-extrabold px-2 py-0.5 rounded bg-amber-500/10 text-amber-500 border border-amber-500/20",children:s}),(0,t.jsx)(o.FaRobot,{className:"text-amber-500 text-xs"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("p",{className:"text-[10px] text-secondary-text font-semibold truncate",children:["Prompt: ",e.prompt]}),(0,t.jsx)("p",{className:"text-xs text-primary-text font-medium line-clamp-4 leading-relaxed bg-bg-page/40 p-2.5 rounded border border-divider/30",children:e.resultImage})]})]}),(0,t.jsxs)("div",{className:"border-t border-divider/30 pt-3 flex items-center justify-between text-[10px] text-secondary-text",children:[(0,t.jsx)("span",{children:new Date(e.createdAt).toLocaleDateString()}),(0,t.jsx)("span",{className:"text-primary font-bold",children:"View Chat →"})]})]},e.id);if("audio-transcribe"===a){let a=e.inputImage?e.inputImage.split("/").pop():"audio_recording";return(0,t.jsxs)("div",{className:"group relative bg-bg-card border border-divider/50 rounded p-5 flex flex-col justify-between h-56 shadow-lg hover:shadow-2xl hover:shadow-primary/5 hover:-translate-y-1 transition-all duration-300 cursor-pointer",onClick:()=>f(e),children:[(0,t.jsxs)("div",{className:"space-y-3 flex-1 overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-[9px] uppercase tracking-wider font-extrabold px-2 py-0.5 rounded bg-blue-500/10 text-blue-500 border border-blue-500/20",children:s}),(0,t.jsx)(o.FaMicrophone,{className:"text-blue-500 text-xs"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("p",{className:"text-[10px] text-secondary-text font-semibold truncate",children:["Audio: ",a]}),(0,t.jsx)("p",{className:"text-xs text-primary-text font-medium line-clamp-4 leading-relaxed bg-bg-page/40 p-2.5 rounded border border-divider/30",children:e.resultImage})]})]}),(0,t.jsxs)("div",{className:"border-t border-divider/30 pt-3 flex items-center justify-between text-[10px] text-secondary-text",children:[(0,t.jsx)("span",{children:new Date(e.createdAt).toLocaleDateString()}),(0,t.jsxs)("button",{onClick:t=>{t.stopPropagation(),w(e.resultImage,`transcript_${e.id}.txt`)},className:"text-primary hover:text-primary-hover font-bold flex items-center gap-1",children:[(0,t.jsx)(o.FaDownload,{size:9})," Download"]})]})]},e.id)}return(0,t.jsxs)("div",{className:"group relative bg-bg-card border border-divider/50 rounded overflow-hidden shadow-lg hover:shadow-2xl hover:shadow-primary/5 hover:-translate-y-1 transition-all duration-300 cursor-pointer",onClick:()=>f(e),children:[(0,t.jsx)("div",{className:"aspect-square bg-bg-page overflow-hidden",children:(0,t.jsx)("img",{src:e.resultImage,alt:e.prompt,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"})}),(0,t.jsxs)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity p-4 flex flex-col justify-end space-y-2",children:[(0,t.jsx)("span",{className:"self-start text-[9px] uppercase tracking-wider font-extrabold px-2 py-0.5 rounded bg-primary/20 text-primary border border-primary/30",children:s}),(0,t.jsx)("p",{className:"text-xs font-bold text-white truncate",children:e.prompt}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"text-[9px] uppercase tracking-wider font-extrabold text-primary",children:["Aspect: ",e.aspectRatio]}),(0,t.jsx)("button",{onClick:t=>{t.stopPropagation(),v(e.resultImage,`art_${e.id}.png`)},className:"bg-primary hover:bg-primary-hover text-white rounded-full p-2 transition-colors active:scale-95 flex items-center justify-center",children:(0,t.jsx)(o.FaDownload,{size:10})})]})]})]},e.id)})})]}),g&&(x="ai-chat"===(e=g.app?.templateId||"ai-image"),p="audio-transcribe"===e,(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center px-6",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm",onClick:()=>f(null)}),(0,t.jsxs)("div",{className:"relative bg-bg-card border border-divider max-w-3xl w-full rounded-lg overflow-hidden shadow-2xl animate-scale-up",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-divider/50",children:[(0,t.jsxs)("span",{className:"text-xs font-extrabold uppercase tracking-widest text-primary",children:[g.app?.name||"Workspace"," Output"]}),(0,t.jsx)("button",{onClick:()=>f(null),className:"p-1 hover:bg-bg-page rounded-full text-secondary-text hover:text-primary-text transition-colors",children:(0,t.jsx)(d.IoClose,{size:20})})]}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row max-h-[75vh] overflow-y-auto",children:[x?(0,t.jsxs)("div",{className:"flex-1 bg-bg-page flex flex-col gap-4 p-6 min-h-[300px] overflow-y-auto max-h-[50vh]",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 max-w-[85%] ml-auto flex-row-reverse",children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white shrink-0",children:(0,t.jsx)(o.FaUser,{size:12})}),(0,t.jsx)("div",{className:"rounded-xl p-3 text-xs leading-relaxed font-medium bg-primary/10 border border-primary/20 text-primary-text",children:g.prompt})]}),(0,t.jsxs)("div",{className:"flex items-start gap-3 max-w-[85%] mr-auto",children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-full bg-zinc-700 flex items-center justify-center text-white shrink-0",children:(0,t.jsx)(o.FaRobot,{size:12})}),(0,t.jsx)("div",{className:"rounded-xl p-3 text-xs leading-relaxed font-medium bg-bg-card border border-divider/40 text-secondary-text whitespace-pre-wrap",children:g.resultImage})]})]}):p?(0,t.jsxs)("div",{className:"flex-1 bg-bg-page flex flex-col gap-4 p-6 min-h-[300px] overflow-y-auto max-h-[50vh]",children:[(0,t.jsx)("span",{className:"text-[10px] uppercase font-bold text-secondary-text tracking-widest",children:"Source Audio"}),(0,t.jsx)("audio",{controls:!0,src:g.inputImage,className:"w-full accent-primary bg-bg-card border border-divider/40 rounded p-1"}),(0,t.jsx)("span",{className:"text-[10px] uppercase font-bold text-secondary-text tracking-widest mt-2",children:"Transcript"}),(0,t.jsx)("div",{className:"bg-bg-card border border-divider/40 rounded p-4 text-xs leading-relaxed font-medium text-secondary-text whitespace-pre-wrap overflow-y-auto flex-1 max-h-[240px]",children:g.resultImage})]}):(0,t.jsx)("div",{className:"flex-1 bg-black flex items-center justify-center p-4",children:(0,t.jsx)("img",{src:g.resultImage,alt:g.prompt,className:"max-h-[50vh] object-contain rounded"})}),(0,t.jsxs)("div",{className:"w-full md:w-80 border-t md:border-t-0 md:border-l border-divider/50 p-6 flex flex-col justify-between gap-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"text-[10px] uppercase font-bold text-secondary-text tracking-widest",children:"Prompt / Config"}),(0,t.jsx)("p",{className:"text-xs font-semibold leading-relaxed line-clamp-3",children:g.prompt})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 border-t border-divider/30 pt-4 text-xs",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block text-[9px] uppercase font-bold text-secondary-text tracking-wider",children:"Type"}),(0,t.jsx)("span",{className:"font-bold uppercase tracking-wider",children:e.replace("ai-","")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block text-[9px] uppercase font-bold text-secondary-text tracking-wider",children:"Cost Charge"}),(0,t.jsxs)("span",{className:"font-bold",children:[g.creditCost," credits"]})]})]})]}),(0,t.jsx)("div",{className:"space-y-2",children:x||p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:()=>{var e;return e=g.resultImage,void(navigator.clipboard.writeText(e),c.default.success("Copied to clipboard!"))},className:"w-full bg-bg-page hover:bg-bg-card text-primary-text border border-divider py-3 rounded-full text-xs font-bold transition-all shadow-md flex items-center justify-center gap-2 active:scale-[0.98]",children:[(0,t.jsx)(o.FaCopy,{className:"text-xs"}),(0,t.jsx)("span",{children:"Copy Output Text"})]}),(0,t.jsxs)("button",{onClick:()=>w(g.resultImage,`output_${g.id}.txt`),className:"w-full bg-primary hover:bg-primary-hover text-white py-3 rounded-full text-xs font-bold transition-all shadow-md flex items-center justify-center gap-2 active:scale-[0.98]",children:[(0,t.jsx)(o.FaDownload,{className:"text-xs"}),(0,t.jsx)("span",{children:"Download Transcript (.txt)"})]})]}):(0,t.jsxs)("button",{onClick:()=>v(g.resultImage,`art_${g.id}.png`),className:"w-full bg-primary hover:bg-primary-hover text-white py-3 rounded-full text-xs font-bold transition-all shadow-md flex items-center justify-center gap-2 active:scale-[0.98]",children:[(0,t.jsx)(o.FaDownload,{className:"text-xs"}),(0,t.jsx)("span",{children:"Download High-Definition"})]})})]})]})]})]})),(0,t.jsx)(l.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.