PageSourceSearch

https://formapprovals.com/assets/Dashboard-iAeZDaQe.js

js formapprovals.com collected 2026-10-02 00:00:26 UTC 2,827 bytes, 1 lines download raw bytes

1import{J as x,K as u,j as r,S as p,g as f,T as e,P as a,L as i,k as n,M as j}from"./index-B1JCX_-d.js";import{S as g}from"./SEOHead-x5xN8jU_.js";import{E as y}from"./ErrorDisplay-DhLlAZAz.js";import{D as v}from"./PageSkeletons-PVczGScv.js";import{I as b,C as m}from"./CountUp-BfOVT2M8.js";import{e as z}from"./errors-j4AVLOck.js";import{S as w}from"./SimpleGrid-aX7H6xu-.js";import{I as D}from"./IconStar-Bta4ftEw.js";import{I as S}from"./IconHash-CbQIdYgV.js";import"./List-Bq6CPE7n.js";import"./Grid-CibHDB3Q.js";function L(){const{user:l}=x(),{data:s,isLoading:c,error:o,refetch:h}=u({queryKey:["dashboardStats"],queryFn:j});if(c)return r.jsx(v,{});if(o||!s){const t=o?z(o,"Failed to load dashboard data."):void 0;return r.jsx(y,{message:t?.error||"Failed to load dashboard data.",errorCode:t?.error_code,context:t?.context,onRetry:()=>h()})}const d=l?.user_name?.split(" ")[0];return r.jsxs(r.Fragment,{children:[r.jsx(g,{title:"Dashboard",description:"View your Form Approvals activity and usage stats.",noIndex:!0}),r.jsxs(p,{gap:"xl",children:[r.jsxs("div",{children:[r.jsxs(f,{order:1,children:["Welcome",d?`, ${d}`:""]}),r.jsx(e,{size:"md",c:"dimmed",mt:4,children:"Below are some stats about the forms you manage"})]}),r.jsxs(w,{cols:{base:1,sm:3},className:"animated zoomEffect",children:[r.jsxs(a,{component:i,to:"/my-forms/",shadow:"sm",p:"xl",radius:"md",withBorder:!0,className:"card-hover",style:{textAlign:"center",textDecoration:"none",color:"inherit",borderColor:"var(--mantine-color-gray-2)"},children:[r.jsx(n,{size:56,radius:"xl",variant:"light",color:"brand",style:{margin:"0 auto"},children:r.jsx(b,{size:28})}),r.jsx(e,{fz:48,fw:600,lh:1,mt:"md",children:r.jsx(m,{end:s.total_forms_count})}),r.jsx(e,{size:"md",mt:"xs",children:"All Forms"})]}),r.jsxs(a,{component:i,to:"/my-forms/?show=active",shadow:"sm",p:"xl",radius:"md",withBorder:!0,className:"card-hover",style:{textAlign:"center",textDecoration:"none",color:"inherit",borderColor:"var(--mantine-color-gray-2)"},children:[r.jsx(n,{size:56,radius:"xl",variant:"light",color:"pink",style:{margin:"0 auto"},children:r.jsx(D,{size:28})}),r.jsx(e,{fz:48,fw:600,lh:1,mt:"md",children:r.jsx(m,{end:s.active_forms_count})}),r.jsx(e,{size:"md",mt:"xs",children:"Active Forms"})]}),r.jsxs(a,{component:i,to:"/subscribe/",shadow:"sm",p:"xl",radius:"md",withBorder:!0,className:"card-hover",style:{textAlign:"center",textDecoration:"none",color:"inherit",borderColor:"var(--mantine-color-gray-2)"},children:[r.jsx(n,{size:56,radius:"xl",variant:"light",color:"violet",style:{margin:"0 auto"},children:r.jsx(S,{size:28})}),r.jsxs(e,{fz:48,fw:600,lh:1,mt:"md",children:[s.monthly_usage,r.jsxs(e,{span:!0,fz:"lg",fw:400,c:"dimmed",children:["/ ",s.monthly_quota]})]}),r.jsx(e,{size:"md",mt:"xs",children:"Usage this Month"})]})]})]})]})}export{L 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.