PageSourceSearch

https://taxease360.ai/assets/ClientForms-DXk02Cur.js

js taxease360.ai collected 2026-10-05 14:26:35 UTC 2,225 bytes, 1 lines download raw bytes

1import{u as d,r as l,p as m,j as t,q as o,F as c,y as n}from"./index-CfXbMZ_V.js";import{P as p}from"./PortalHeader-BREe-gcq.js";import"./chevron-left-BFeklwt6.js";const u={sent:"bg-blue-100 text-blue-700",viewed:"bg-gray-100 text-gray-600",in_progress:"bg-amber-100 text-amber-700",started:"bg-amber-100 text-amber-700",submitted:"bg-emerald-100 text-emerald-700",completed:"bg-emerald-100 text-emerald-700",draft:"bg-gray-100 text-gray-500",expired:"bg-red-100 text-red-600",cancelled:"bg-gray-100 text-gray-400"};function f(){const i=d(),[s,r]=l.useState(null);l.useEffect(()=>{m.entities.FormInstance.list("-created_date",200).then(e=>{r((e||[]).filter(a=>!a.archived))}).catch(()=>r([]))},[]);const x=e=>{e.status==="submitted"||e.status==="completed"||i(`/portal/fill-form/${e.id}`)};return t.jsxs("div",{className:"space-y-4 pb-10",children:[t.jsx(p,{title:"My Forms",backTo:"/portal"}),s?s.length===0?t.jsxs("div",{className:"text-center py-16 space-y-2",children:[t.jsx(c,{size:40,className:"text-gray-300 mx-auto"}),t.jsx("p",{className:"text-sm text-gray-400",children:"No forms assigned to you yet."})]}):t.jsx("div",{className:"space-y-2",children:s.map(e=>{const a=e.status==="submitted"||e.status==="completed";return t.jsxs("button",{onClick:()=>x(e),className:`w-full text-left rounded-2xl border bg-white p-4 flex items-center gap-3 ${a?"opacity-70":"hover:border-blue-300"}`,children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-50 flex items-center justify-center shrink-0",children:t.jsx(c,{size:18,className:"text-blue-600"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"font-semibold text-gray-900 truncate",children:e.title}),t.jsxs("p",{className:"text-xs text-gray-400 truncate",children:[e.template_name||"Form",e.expires_at?` · expires ${new Date(e.expires_at).toLocaleDateString()}`:""]})]}),t.jsx("span",{className:`text-[10px] font-bold px-2 py-1 rounded-full whitespace-nowrap ${u[e.status]||"bg-gray-100 text-gray-500"}`,children:e.status.replace("_"," ")}),t.jsx(n,{size:18,className:"text-gray-300"})]},e.id)})}):t.jsx("div",{className:"flex justify-center py-16",children:t.jsx(o,{className:"animate-spin text-blue-600"})})]})}export{f 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.