PageSourceSearch

https://oeneo.ai/assets/index-DkvW8XvV.js

js oeneo.ai collected 2026-10-05 16:12:59 UTC 9,059 bytes, 1 lines download raw bytes

1import{k as h,R as i,N0 as w,m as e,bj as k,o as y,Gy as f,Gz as N,a5 as c,GD as b,a3 as d,O as m,N1 as C,N2 as D,t as x,N3 as I,N4 as z,xK as A,GA as G,N5 as S,N6 as E,N7 as L,N8 as T,N9 as B,Na as H,Nb as M,Nc as P,Nd as R,Ne as F,Nf as U,Ng as q,Nh as O,Ni as V,Nj as $,Nk as K,Nl as Q,Nm as J,Nn as j,No as W,Np as X,Nq as Y}from"./main-BVeaUmEJ.js";import{B as g}from"./badge-jVzWArNv.js";import{E as Z,a as ee,b as ae,c as se,d as re}from"./empty-CAPKPhtk.js";import{S as o}from"./skeleton-ChuuxPGC.js";import{I as ne}from"./IconChartBar-BYpsA-rq.js";import{I as te}from"./IconCalendar-ftKr-l-K.js";import{I as u}from"./IconArrowRight-C3mkZMZZ.js";import{I as ie}from"./IconClock-Bd0oeuhd.js";const oe=[["path",{d:"M7 12l5 5l10 -10",key:"svg-0"}],["path",{d:"M2 12l5 5m5 -5l5 -5",key:"svg-1"}]],le=h("outline","checks","Checks",oe);const ce=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],de=h("outline","dots-vertical","DotsVertical",ce);const me=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],he=h("outline","external-link","ExternalLink",me),xe=new Intl.NumberFormat("en-US"),ue=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"});function v(a){return xe.format(a)}function ge(a,s){return a?a.charAt(0).toUpperCase()+a.slice(1):s.freePlan}function p(a,s){return a==="active"?s.statusActive:!a||a==="none"?s.statusNone:a.charAt(0).toUpperCase()+a.slice(1)}function ve(a,s){return a?ue.format(new Date(a)):s.noRenewal}function pe(a,s){return[{id:"credits",label:s.remainingCredits,value:v(a.credits),description:s.availableBalance,actionLabel:s.viewCredits},{id:"plan",label:s.currentPlan,value:ge(a.currentPlan,s),description:p(a.subscriptionStatus,s),actionLabel:s.upgrade},{id:"renewal",label:s.renewal,value:ve(a.subscriptionEndAt,s),description:a.subscriptionEndAt?p(a.subscriptionStatus,s):s.statusUnknown,actionLabel:s.viewBilling},{id:"monthly-generations",label:s.monthlyGenerations,value:v(a.monthlyGenerations),description:s.completedGenerations,actionLabel:s.usageDetails}]}function t(a){if(a==="credits")return i.DashboardCredits;if(a==="plan")return i.Pricing;if(a==="renewal")return i.DashboardBilling}const fe=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}),l={text2image:j(),image2image:W()},Ne={credits:{icon:y,iconClassName:"bg-accent-emerald-bg text-accent-emerald",valueClassName:"text-accent-emerald",actionHref:t("credits")},plan:{icon:k,iconClassName:"bg-primary/10 text-primary",valueClassName:"text-foreground",actionHref:t("plan")},renewal:{icon:te,iconClassName:"bg-accent-sky-bg text-accent-sky",valueClassName:"text-foreground",actionHref:t("renewal")},"monthly-generations":{icon:ne,iconClassName:"bg-accent-violet-bg text-accent-violet",valueClassName:"text-accent-violet",actionHref:t("monthly-generations")}},be=[{title:j(),description:J(),href:"/ai-image-generator",icon:x,iconClassName:"bg-primary/10 text-primary"}];function je(){return{availableBalance:K(),completedGenerations:$(),currentPlan:V(),freePlan:O(),monthlyGenerations:q(),noRenewal:U(),remainingCredits:F(),renewal:R(),statusActive:P(),statusNone:M(),statusUnknown:H(),upgrade:B(),usageDetails:T(),viewBilling:L(),viewCredits:E()}}function _e(a){return fe.format(new Date(a))}function we({data:a}){const s=pe(a,je());return e.jsx("div",{className:"grid grid-cols-1 gap-4 @xl/main:grid-cols-2 @5xl/main:grid-cols-4",children:s.map(r=>{const n=Ne[r.id],_=n.icon;return e.jsxs(f,{className:"min-h-40 gap-3 py-5 shadow-sm",children:[e.jsx(N,{className:"gap-3",children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-sm font-medium text-muted-foreground",children:r.label}),e.jsx("div",{className:c("mt-4 text-3xl font-semibold tracking-tight tabular-nums",n.valueClassName),children:r.value})]}),e.jsx("div",{className:c("flex size-11 shrink-0 items-center justify-center rounded-lg",n.iconClassName),children:e.jsx(_,{className:"size-5"})})]})}),e.jsx(b,{className:"mt-auto",children:e.jsxs("div",{className:"flex min-h-8 items-center justify-between gap-3",children:[e.jsx("p",{className:"min-w-0 truncate text-sm text-muted-foreground",children:r.description}),r.actionLabel&&n.actionHref?e.jsxs(d,{variant:"ghost",size:"sm",render:e.jsx(m,{to:n.actionHref}),className:"-mr-2 shrink-0 px-2 text-primary",children:[r.actionLabel,e.
1jsx(u,{className:"size-4"})]}):null]})})]},r.id)})})}function ke({item:a}){const s=a.outputImages[0];return e.jsxs("article",{className:"min-w-0 overflow-hidden rounded-lg border bg-background shadow-sm",children:[e.jsx("div",{className:"aspect-[4/3] overflow-hidden bg-muted",children:s?e.jsx("img",{src:s.url,alt:a.prompt??l[a.taskType]??a.taskType,className:"size-full object-cover transition-transform duration-300 hover:scale-[1.03]",loading:"lazy"}):e.jsx("div",{className:"flex size-full items-center justify-center text-muted-foreground",children:e.jsx(x,{className:"size-8"})})}),e.jsxs("div",{className:"flex flex-col gap-3 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(g,{variant:"secondary",className:"min-w-0 truncate",children:l[a.taskType]??a.taskType}),e.jsx("span",{className:"-mr-1 flex size-6 shrink-0 items-center justify-center text-muted-foreground","aria-hidden":"true",children:e.jsx(de,{className:"size-4"})})]}),e.jsx("p",{className:"line-clamp-2 min-h-10 text-sm font-medium leading-5",children:a.prompt??l[a.taskType]??a.taskType}),e.jsxs("div",{className:"flex items-center justify-between gap-3 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5",children:[e.jsx(ie,{className:"size-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:_e(a.createdAt)})]}),e.jsxs(g,{variant:"outline",className:"shrink-0 gap-1 text-xs",children:[e.jsx(le,{className:"size-3"}),Q()]})]})]})]})}function ye({items:a}){return e.jsxs("section",{className:"rounded-xl border bg-card py-4 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 px-4",children:[e.jsx("h2",{className:"text-base font-medium",children:C()}),e.jsxs(d,{variant:"ghost",size:"sm",render:e.jsx(m,{to:"/ai-image-generator"}),children:[D(),e.jsx(he,{className:"size-4"})]})]}),e.jsx("div",{className:"px-4 pt-4",children:a.length>0?e.jsx("div",{className:"grid grid-cols-1 gap-4 @xl/main:grid-cols-2 @4xl/main:grid-cols-5",children:a.map(s=>e.jsx(ke,{item:s},s.id))}):e.jsxs(Z,{className:"min-h-64 border",children:[e.jsxs(ee,{children:[e.jsx(ae,{variant:"icon",children:e.jsx(x,{})}),e.jsx(se,{children:I()}),e.jsx(re,{children:z()})]}),e.jsxs(d,{render:e.jsx(m,{to:"/ai-image-generator"}),children:[A(),e.jsx(u,{className:"size-4"})]})]})})]})}function Ce(){return e.jsxs(f,{className:"gap-4 py-4 shadow-sm",children:[e.jsx(N,{children:e.jsx(G,{children:S()})}),e.jsx(b,{children:e.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl/main:grid-cols-2 @5xl/main:grid-cols-5",children:be.map(a=>{const s=a.icon;return e.jsxs("a",{href:a.href,className:"group flex min-h-24 items-center gap-4 roun
1ded-lg border bg-background p-4 transition-colors hover:bg-muted/50",children:[e.jsx("div",{className:c("flex size-12 shrink-0 items-center justify-center rounded-lg",a.iconClassName),children:e.jsx(s,{className:"size-5"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"font-medium",children:a.title}),e.jsx("p",{className:"mt-1 line-clamp-2 text-sm text-muted-foreground",children:a.description})]}),e.jsx(u,{className:"size-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"})]},a.title)})})})]})}function De(){return e.jsxs("div",{className:"flex flex-col gap-4 lg:gap-6",children:[e.jsx("div",{className:"grid grid-cols-1 gap-4 @xl/main:grid-cols-2 @5xl/main:grid-cols-5",children:Array.from({length:5},(a,s)=>e.jsx(o,{className:"h-40 rounded-xl"},s))}),e.jsx(o,{className:"h-96 rounded-xl"}),e.jsx(o,{className:"h-36 rounded-xl"})]})}function Ie(){const{data:a,isLoading:s}=w();return s?e.jsx(De,{}):a?e.jsxs("div",{className:"flex flex-col gap-4 lg:gap-6",children:[e.jsx(we,{data:a}),e.jsx(ye,{items:a.recentGenerations}),e.jsx(Ce,{})]}):null}function He(){return e.jsx(e.Fragment,{children:e.jsx("div",{className:"flex flex-1 flex-col",children:e.jsx("div",{className:"@container/main flex flex-1 flex-col gap-2",children:e.jsx("div",{className:"flex flex-col gap-4 py-4 lg:gap-6 lg:py-6",children:e.jsxs("div",{className:"px-4 lg:px-6",children:[e.jsxs("div",{className:"mb-4 lg:mb-6",children:[e.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:X()}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:Y()})]}),e.jsx(Ie,{})]})})})})})}export{He as component};

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.