PageSourceSearch

https://utsniper.com/assets/Overview-C6e8B6_A.js

js utsniper.com collected 2026-10-02 01:49:12 UTC 6,581 bytes, 1 lines download raw bytes

1import{j as e}from"./react-DmmmXvkf.js";import{a0 as v,aA as p,L as c,B as m,aB as u,o as b}from"./index-DwUXjLtJ.js";import{C as g,a as j,b as f,c as y}from"./card-C-1TkAY-.js";import{S as i}from"./skeleton-CUY0MPWm.js";import{I as w}from"./InfoTip-DMVyGFVk.js";import{Q as N}from"./QueryError-Clx5AZ-z.js";import{u as _}from"./i18n-DQg7CiDt.js";import{f as x}from"./format-DQEjml6R.js";import"./query-7r_k_-dc.js";import"./motion-BB-_2whf.js";import"./popover-C8RfFfek.js";import"./triangle-alert-D1sdAIt2.js";import"./startOfDay-BRYZsaos.js";const k=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],M=v("activity",k);const C=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],D=v("calendar-clock",C);function h({icon:a,label:o,sub:n,accent:l="text-foreground",children:r}){return e.jsxs("div",{className:"group relative rounded-2xl border border-white/[0.07] bg-card/40 p-5 transition-all hover:border-white/[0.12] hover:bg-card/60 hover:-translate-y-0.5",children:[e.jsxs("div",{className:"flex items-center gap-2.5 text-muted-foreground text-sm font-medium mb-3",children:[e.jsx("span",{className:"inline-flex items-center justify-center w-8 h-8 rounded-lg bg-primary/10 text-primary",children:e.jsx(a,{className:"w-4 h-4"})}),o]}),e.jsx("div",{className:`text-2xl font-bold ${l}`,children:r}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:n})]})}function Q(){const{data:a,isLoading:o,isError:n,refetch:l}=p(),{t:r}=_();if(o)return e.jsxs("div",{className:"space-y-6",children:[e.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:r("dashboard.overview.title")}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsx(i,{className:"h-32 bg-card rounded-xl"}),e.jsx(i,{className:"h-32 bg-card rounded-xl"}),e.jsx(i,{className:"h-32 bg-card rounded-xl"})]}),e.jsx(i,{className:"h-64 bg-card rounded-xl mt-6"})]});if(n)return e.jsxs("div",{className:"space-y-6",children:[e.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:r("dashboard.overview.title")}),e.jsx(N,{onRetry:()=>l()})]});const s=a?.subscription,d=s?.plan,t=s?.status==="active";return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:r("dashboard.overview.title")}),!t&&e.jsx(c,{href:"/pricing",children:e.jsx(m,{className:"bg-primary hover:bg-primary/90 text-white shadow-[0_0_15px_rgba(255,122,0,0.3)]",children:r("dashboard.overview.upgrade")})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[e.jsxs(h,{icon:M,label:r("dashboard.overview.subscription_status"),accent:t?"text-green-500":"text-destructive",sub:d?r("dashboard.overview.plan_prefix",{name:d.name}):r("dashboard.overview.no_active_plan"),children:[e.jsx("span",{className:"capitalize",children:s?.status||r("dashboard.overview.none")}),t&&e.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-green-500 animate-pulse align-middle ml-2"})]}),e.jsx(h,{icon:D,label:r("dashboard.overview.time_remaining"),sub:s?.endDate?r("dashboard.overview.expires_prefix",{date:x(new Date(s.endDate),"MMM d, yyyy")}):r("dashboard.overview.no_expiry"),children:a?.daysRemaining!=null?`${a.daysRemaining} ${r("dashboard.overview.days")}`:r("dashboard.overview.not_available")}),e.jsx(h,{icon:u,label:r("dashboard.overview.total_orders"),sub:r("dashboard.overview.lifetime"),children:a?.totalOrders||0})]}),e.jsxs(g,{className:"bg-card/60 backdrop-blur border-primary/20 shadow-[0_0_30px_rgba(255,122,0,0.05)]",children:[e.jsx(j,{children:e.jsxs(f,{className:"flex items-center gap-2",children:[e.jsx(b,{className:"text-primary"})," ",r("dashboard.overview.active_plan")]})}),e.jsx(y,{children:t&&d?e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-xl mb-4 text-foreground",children:d.name}),e.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground mb-6",children:[e.jsxs("li",{className:"flex justify-between border-b border-border pb-2",children:[e.jsx("span",{children:r("dashboard.overview.billing_cycle")}),e.jsx("span",{className:"font-medium text-foreground capitalize",children:d.billing})]}),e.jsxs("li",{className:"flex justify-between border-b border-border pb-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1",children:[r("dashboard.overview.concurrent_accounts"),e.jsx(w,{text:r("common.concurrentInfo")})]}),e.jsx("span",{className:"font-medium text-foreground",children:s.concurrents??d.concurrents})]}),e.jsxs("li",{className:"flex justify-between border-b border-border pb-2",children:[e.jsx("span",{children:r("dashboard.overview.start_date")}),e.jsx("span",{className:"font-medium text-foreground",children:x(new Date(s.startDate),"MMM d, yyyy")})]}),e.jsxs("li",{className:"flex justify-between pb-2",children:[e.jsx("span",{children:r("dashboard.overview.renewal")}),e.jsx("span",{className:"font-medium text-foreground",children:x(new Date(s.endDate),"MMM d, yyyy")})]})]})]}),e.jsxs("div",{className:"bg-background/50 rounded-xl p-6 border border-border flex flex-col justify-center items-center text-center",children:[e.jsx("div",{className:"mb-2 text-sm",children:r("dashboard.overview.license_managed")}),e.jsx("div",{className:"text-sm text-muted-foreground mb-6",children:r("dashboard.overview.download_latest")}),e.jsx(c,{href:"/dashboard/downloads",children:e.jsx(m,{className:"bg-primary hover:bg-primary/90",children:r("dashboard.overview.go_downloads")})})]})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-secondary text-muted-foreground mb-4",children:e.jsx(b,{className:"w-8 h-8"})}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:r("dashboard.overview.no_sub")}),e.jsx("p",{className:"text-muted-foreground mb-6 max-w-md mx-auto",children:r("dashboard.overview.no_sub_desc")}),e.jsx(c,{href:"/pricing",children:e.jsx(m,{size:"lg",className:"bg-primary hover:bg-primary/90 text-white shadow-[0_0_20px_rgba(255,122,0,0.3)]",children:r("dashboard.overview.view_plans")})})]})})]})]})}export{Q as DashboardOverview};

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.