PageSourceSearch

https://taxease360.ai/assets/TaxReadiness-o1YIT5rU.js

js taxease360.ai collected 2026-10-05 14:26:37 UTC 7,436 bytes, 1 lines download raw bytes

1import{r as n,p as z,j as e,q as L,C as l,aU as S,H as _,U as A,S as F,ah as P,L as u,y as E,A as N,d as U}from"./index-CfXbMZ_V.js";import{P as p}from"./PortalHeader-BREe-gcq.js";import{F as Y}from"./FinleyProgressRing-nbqZ2AHM.js";import{P as q}from"./party-popper-BC37_ftB.js";import{C as b}from"./circle-BeOP31Vt.js";import{T as I}from"./trending-up-BFx2g5_7.js";import{C as H}from"./clipboard-list-bDFPgpqe.js";import{U as O}from"./user-Bu76TeJk.js";import{L as $}from"./lightbulb-B0VdmEU3.js";import{C as B}from"./clock-DmU1_sat.js";import"./chevron-left-BFeklwt6.js";const D="https://media.base44.com/images/public/6a3a4abc7ab107241011db34/422340d8d_taxease360favicon.png",v={user:O,signature:P,shield:F,form:H,upload:A,home:_,calculator:S,"trending-up":I,check:l,circle:b};function c({title:o,icon:d,iconColor:x,children:m,empty:a}){return e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-100 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(d,{size:16,className:x}),e.jsx("h3",{className:"text-sm font-bold text-gray-800",children:o})]}),a?e.jsx("p",{className:"text-xs text-gray-400 text-center py-2",children:a}):m]})}function te(){const[o,d]=n.useState(null),[x,m]=n.useState(!0),[a,w]=n.useState(null);if(n.useEffect(()=>{let s=!1;return(async()=>{try{const t=await z.functions.invoke("loadTaxReadiness",{}),r=(t==null?void 0:t.data)||t;if(s)return;if(r!=null&&r.error)throw new Error(r.error);d(r)}catch(t){s||w(t.message||"Failed to load readiness")}finally{s||m(!1)}})(),()=>{s=!0}},[]),x)return e.jsxs("div",{children:[e.jsx(p,{title:"Tax Readiness",backTo:"/portal"}),e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx(L,{className:"w-8 h-8 animate-spin text-blue-500"})})]});if(a)return e.jsxs("div",{children:[e.jsx(p,{title:"Tax Readiness",backTo:"/portal"}),e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-100 p-6 text-center",children:[e.jsx("p",{className:"text-sm text-gray-500",children:a}),e.jsx("button",{onClick:()=>window.location.reload(),className:"mt-3 text-sm font-semibold text-blue-600",children:"Try again"})]})]});const{percentage:i=0,client_type:C,completed:g=[],outstanding:f=[],recommended:j=[],waiting_on_accountant:y=[],finley_summary:k="",total_required:R=0,completed_count:T=0}=o||{},h=i===100;return e.jsxs("div",{className:"space-y-4 pb-6",children:[e.jsx(p,{title:"Tax Readiness",backTo:"/portal"}),e.jsxs("div",{className:`rounded-2xl p-5 text-white relative overflow-hidden ${h?"bg-gradient-to-br from-emerald-500 to-teal-600":"bg-gradient-to-br from-blue-600 to-cyan-500"}`,children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"bg-white rounded-2xl p-1.5 shadow-lg shrink-0",children:e.jsx(Y,{percent:i,size:72,stroke:8,label:"ready"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-2xl font-bold",children:[i,"% Ready"]}),e.jsx("p",{className:"text-sm text-white/90 mt-0.5",children:h?"You're Tax Ready!":"You're almost ready to complete your tax return."}),e.jsxs("p",{className:"text-xs text-white/70 mt-1",children:[T," of ",R," steps complete"]})]})]}),e.jsx("div",{className:"h-2 rounded-full bg-white/20 overflow-hidden mt-4",children:e.jsx("div",{className:"h-full bg-white rounded-full transition-all duration-500",style:{width:`${i}%`}})})]}),h&&e.jsxs("div",{className:"bg-white rounded-2xl border-2 border-emerald-200 p-5 text-center",children:[e.jsx(q,{className:"w-10 h-10 text-emerald-500 mx-auto mb-2"}),e.jsx("h3",{className:"text-base font-bold text-gray-900",children:"Congratulations!"}),e.jsx("p",{className:"text-sm text-gray-600 mt-1.5 leading-relaxed",children:"You're Tax Ready. Your accountant now has everything required to prepare your tax return. If they still need anything further, you'll be notified."})]}),g.length>0&&e.jsx(c,{title:"Completed",icon:l,iconColor:"text-emerald-500",children:e.jsx("div",{className:"space-y-1.5",children:g.map(s=>(v[s.icon]||l,e.jsxs("div",{className:"flex items-center gap-2.5 py-1",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-50 flex items-center justify-center shrink-0",children:e.jsx(l,{size:14,className:"text-emerald-500"})}),e.jsx("span",{className:"text-sm text-gray-500 line-through",children:s.label})]},s.id)))})}),f.length>0&&e.jsx(c,{title:"Outstanding Tasks",icon:b,iconColor:"text-amber-500",children:e.jsx("div",{className:"space-y-2.5",children:f.map(s=>{const t=v[s.icon]||b;return e.jsxs("div",{className:"flex items-center gap-3 bg-amber-50/50 rounded-xl p-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-amber-100 flex items-center justify-center shrink-0",children:e.jsx(t,{size:17,className:"text-amber-600"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-800 truncate",children:s.label}),s.sub&&e.jsx("p",{className:"text-xs text-gray-500 truncate",children:s.sub})]}),e.jsxs(u,{to:s.to,className:"shrink-0 inline-flex items-center gap-1 px-3 py-1.5 rounded-lg bg-blue-600 text-white text-xs font-semibold active:scale-95 transition-transform",children:[s.action,e.jsx(E,{size:12})]})]},s.id)})})}),j.length>0&&e.jsxs(c,{title:"Recommended",icon:$,iconColor:"text-violet-500",children:[e.jsx("p",{className:"text-xs text-gray-500 mb-3",children:C==="Individual"?"Based on your occupation, you may also be able to claim:":"You may also want to review:"}),e.jsx("div",{className:"space-y-2",children:j.map(s=>e.jsxs(u,{to:s.to,className:"flex items-center gap-3 bg-violet-50/50 rounded-xl p-3 active:scale-[0.98] transition-transform",children:[e.jsx("span",{className:"text-lg shrink-0",children:"💡"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-800 truncate",children:s.label}),s.sub&&e.jsx("p",{className:"text-xs text-gray-500 truncate",children:s.sub})]}),e.jsxs("span",{className:"shrink-0 inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-white text-violet-600 text-xs font-semibold border border-violet-100",children:[s.action,e.jsx(N,{size:11})]})]},s.id))})]}),y.length>0&&e.jsxs(c,{title:"Waiting on Accountant",icon:B,iconColor:"text-blue-400",children:[e.jsx("div",{className:"space-y-2",children:y.map((s,t)=>e.jsxs("div",{className:"flex items-center gap-2.5 py-1",children:[e.jsx(l,{size:15,className:"text-blue-400 shrink-0"}),e.jsx("span",{className:"text-sm text-gray-600",children:s.label})]},t))}),e.jsx("p",{className:"text-xs text-gray-400 mt-2 italic",children:"No action is required from you."})]}),e.jsx("div",{className:"bg-gradient-to-br from-blue-50 to-cyan-50 rounded-2xl border border-blue-100 p-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("img",{src:D,alt:"Finley",className:"w-10 h-10 rounded-xl bg-white object-contain shrink-0 border border-blue-100"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[e.jsx(U,{size:13,className:"text-blue-500"}),e.jsx("p",{className:"text-xs font-bold text-blue-700",children:"Finley says"})]}),e.jsx("p",{className:"text-sm text-gray-700 whitespace-pre-line leading-relaxed",children:k}),e.jsxs(u,{to:"/portal/finley",className:"mt-2.5 inline-flex items-center gap-1.5 text-xs font-semibold text-blue-600",children:["Ask Finley ",e.jsx(N,{size:12})]})]})]})})]})}export{te 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.