PageSourceSearch

https://app.uplify.ai/build/assets/index-mVJc1eZz.js

js uplify.ai collected 2026-10-05 13:11:12 UTC 40,050 bytes, 1 lines download raw bytes

1import{f as v,u as Yt}from"./useProfitProgress-Ds111OgC.js";import{k as pt,X as c,c as l,o as i,F as b,i as M,y as A,d as e,x as a,n as f,bS as zt,r as y,H as Gt,ad as H,b as V,m as h,e as Xt,v as C,V as Q,K as fe,aD as ye,ac as se,J as W,Q as qt,R as Ht}from"./main-CKQbcAOR.js";import{_ as dt}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{A as Qt}from"./AppHeaderStrip-DWm1fy2R.js";import{p as Jt}from"./finance_icon-CqGL--Fh.js";import"./LinaMessageStream-Zl8WZfiD.js";import"./useVoiceInput-KaMpWdYJ.js";import"./LinaOutcomeCheckin-DXfBp0aD.js";import"./VMenu-D5Dwh7EC.js";import"./VOverlay-nv6Kedq-.js";import"./forwardRefs-D3j0TLhE.js";import"./lazy-DDV_s5-s.js";import"./transition-CeUDVoY4.js";import"./dialog-transition-xTp8j8dr.js";const Zt={class:"truth-bar",role:"group","aria-label":"Profit by truth tier"},Kt={class:"truth-label"},es={class:"truth-value tnum"},ts={class:"truth-sub"},ss=["onClick"],os={key:1,class:"truth-empty"},ns={class:"truth-sub"},as={__name:"ProfitTruthBar",props:{estimated:{type:Number,default:null},verified:{type:Number,default:null},actual:{type:Number,default:null}},setup(J){const E=J,be=pt(),Z=c(()=>[{key:"estimated",label:"ESTIMATED",value:E.estimated,sub:"the plan, if you do the work",empty:"plan building…"},{key:"verified",label:"VERIFIED",value:E.verified,sub:"work you actually did",empty:"complete actions to build this"},{key:"actual",label:"ACTUAL",value:E.actual,sub:"real money, from your books",empty:"connect QuickBooks",emptyTo:"/integrations"}]);function x(U){return U==null||isNaN(U)?null:(U>=0?"+":"−")+v(Math.abs(U)).replace("$","$")+"/mo"}return(U,G)=>(i(),l("div",Zt,[(i(!0),l(b,null,M(f(Z),m=>(i(),l("div",{key:m.key,class:A(["truth-tier",`truth-tier--${m.key}`])},[e("span",Kt,a(m.label),1),x(m.value)!==null?(i(),l(b,{key:0},[e("span",es,a(x(m.value)),1),e("span",ts,a(m.sub),1)],64)):(i(),l(b,{key:1},[m.emptyTo?(i(),l("button",{key:0,type:"button",class:"truth-empty truth-empty--link",onClick:ke=>f(be).push(m.emptyTo)},a(m.empty),9,ss)):(i(),l("span",os,a(m.empty),1)),e("span",ns,a(m.sub),1)],64))],2))),128))]))}},ls=dt(as,[["__scopeId","data-v-681d8010"]]),u=J=>(qt("data-v-f7089e1d"),J=J(),Ht(),J),is={class:"pp-page"},rs={class:"ahs-left-block"},us=["src"],cs=u(()=>e("div",{class:"ahs-left-text"},[e("h1",{class:"ahs-left-title"}," Profit Progress "),e("span",{class:"ahs-left-sub"},"The proof your plan is working")],-1)),ps={key:0,class:"pp-hero"},ds={class:"pp-hero-main"},hs={class:"pp-hero-toprow"},vs=u(()=>e("span",{class:"pp-overline"},"Monthly profit",-1)),_s={class:"pp-hero-num tnum"},ms=u(()=>e("span",{class:"pp-hero-mo"}," /mo",-1)),fs={class:"pp-hero-deltarow"},ys={class:"pp-hero-sub"},bs={class:"pp-promise"},ks={key:0,class:"pp-date-adjust tnum"},gs={class:"pp-hero-lina"},ws={class:"pp-hero-bubble"},xs=u(()=>e("img",{src:"/images/onboarding/lina-explaining-stocks.png",alt:"Lina",class:"pp-lina-img"},null,-1)),Cs={class:"pp-hero-bottom"},$s=["onClick"],Fs=u(()=>e("span",{class:"pp-flex"},null,-1)),Ss={class:"pp-next-note"},Ms={key:0,class:"pp-conf-pill tnum"},Es={key:1,class:"pp-hero pp-hero--fresh"},Ts=u(()=>e("img",{src:"/images/onboarding/lina-amplifying-profit.png",alt:"Lina",class:"pp-fresh-lina"},null,-1)),As={class:"pp-fresh-body"},Ds=u(()=>e("span",{class:"pp-overline"},"Your proof page",-1)),Ls=u(()=>e("h1",{class:"pp-fresh-title"}," Your curve is waiting. ",-1)),Is=u(()=>e("p",{class:"pp-fresh-sub"}," Ten questions in the Profit Amplifier set your baseline, your goal, and the dated path between them — projected to the dollar, honest to a fault. ",-1)),Bs={class:"pp-fresh-ctarow"},Rs=u(()=>e("span",{class:"pp-fresh-hint"},"≈ 4 minutes · uses your real numbers",-1)),Ps={key:2,class:"pp-checkin"},Ns=u(()=>e("img",{src:"/images/onboarding/lina-clipboard.png",alt:"Lina with clipboard",class:"pp-checkin-lina"},null,-1)),Vs={class:"pp-checkin-body"},Ws=u(()=>e("span",{class:"pp-checkin-overline"},"Monthly check-in · 60 seconds",-1)),Us={class:"pp-checkin-title"},Os=u(()=>e("p",{class:"pp-checkin-sub"}," Tell me the real numbers — two fields, sixty seconds. This is the moment your chart earns its ✓. ",-1)),js={class:"pp-checkin-form"},Ys={class:"pp-field"},zs={class:"pp-input"},Gs=u(()=>e("span",null,"$",-1)),Xs={class:"pp-field"},qs={class:"pp-input"},Hs=u(()=>e("span",null,"$",-1)),Qs=["disabled"],Js={class:"pp-checkin-qb"}
1,Zs={key:3,class:"pp-reveal"},Ks={class:"pp-reveal-top"},eo={class:"pp-reveal-tag"},to=u(()=>e("span",{class:"pp-flex"},null,-1)),so={key:0,class:"pp-streak"},oo={class:"pp-reveal-cols"},no={class:"pp-reveal-main"},ao={class:"pp-reveal-nums"},lo=u(()=>e("span",{class:"pp-mini-label"},"MODEL SAID",-1)),io={class:"pp-reveal-num pp-blue tnum"},ro=u(()=>e("span",{class:"pp-mini-label"},"REALITY SAID",-1)),uo={class:"pp-reveal-num pp-green tnum"},co={class:"pp-acc"},po={class:"pp-acc-head"},ho=u(()=>e("span",{class:"pp-mini-label"},"MODEL ACCURACY",-1)),vo={class:"pp-acc-num tnum"},_o={class:"pp-acc-track"},mo=u(()=>e("div",{class:"pp-acc-marker"},null,-1)),fo=u(()=>e("p",{class:"pp-acc-note"}," The marker is 100% — a perfect model. Reality landed inside the honest range; the ±25% band exists for exactly this. ",-1)),yo={class:"pp-reveal-lina"},bo=u(()=>e("img",{src:"/images/onboarding/lina-cheering.png",alt:"Lina cheering"},null,-1)),ko={key:0,class:"pp-badge-card"},go=u(()=>e("img",{src:"/images/lessons/lina_after_lesson_badge.png",alt:"First Verified Win badge",class:"pp-badge-img"},null,-1)),wo=u(()=>e("div",{class:"pp-badge-title"}," First Verified Win ",-1)),xo=u(()=>e("div",{class:"pp-badge-sub"}," Reality met the model in your very first verified month. ",-1)),Co={key:4,class:"pp-summit"},$o=u(()=>e("img",{src:"/images/onboarding/lina-cheering.png",alt:"Lina cheering",class:"pp-summit-lina"},null,-1)),Fo={class:"pp-summit-body"},So=u(()=>e("span",{class:"pp-summit-tag"},"⚑ SUMMIT REACHED",-1)),Mo={class:"pp-summit-title"},Eo=u(()=>e("div",{class:"pp-summit-sub"}," Verified by real numbers, built one action at a time. The next summit is yours to name. ",-1)),To={class:"pp-summit-btns"},Ao={key:5,class:"pp-chart-card"},Do={key:0,class:"pp-ribbon"},Lo=u(()=>e("span",{class:"pp-ribbon-soft"},"Protect the habit that did it.",-1)),Io={class:"pp-chart-head"},Bo=u(()=>e("h2",{class:"pp-chart-title"}," The Journey ",-1)),Ro={class:"pp-chart-sub"},Po=u(()=>e("span",{class:"pp-flex"},null,-1)),No=u(()=>e("span",{class:"pp-swatch-dash"},null,-1)),Vo=u(()=>e("span",{class:"pp-pct-chip"},"±25%",-1)),Wo=u(()=>e("span",{class:"pp-swatch-solid"},null,-1)),Uo=u(()=>e("span",{class:"pp-swatch-dot"},null,-1)),Oo=["title"],jo={class:"pp-svg-wrap"},Yo={viewBox:"0 0 1000 400",width:"100%",style:{display:"block"}},zo=["y1","y2"],Go=["y"],Xo=["x1","x2"],qo=["x"],Ho=["d"],Qo=["y1","y2"],Jo=["d"],Zo=["d"],Ko=["d"],en=["d"],tn=["cx","cy","fill"],sn=["x","y"],on=["d"],nn=["x","y","text-anchor"],an=["cx","cy","r"],ln=["x1","x2"],rn=["cx","cy"],un=["x"],cn=["x"],pn={class:"pp-tip1"},dn={class:"pp-tip2 tnum"},hn={class:"pp-tip3 tnum"},vn={key:0,class:"pp-tip4 tnum"},_n={class:"pp-chart-foot"},mn={class:"pp-foot-wp"},fn={key:0},yn=u(()=>e("span",{class:"pp-flex"},null,-1)),bn={key:1,class:"pp-foot-goalhint"},kn={key:6,class:"pp-fresh-chart"},gn=u(()=>e("div",{class:"pp-fresh-chart-title"}," No curve yet — and that's honest. ",-1)),wn=u(()=>e("p",null,"This chart never shows made-up numbers. Set your baseline and it draws your projected path, your verified wins, and — after your first monthly check-in — the real thing.",-1)),xn=[gn,wn],Cn={key:7,class:"pp-behind"},$n=u(()=>e("img",{src:"/images/onboarding/lina-magnifying.png",alt:"Lina investigating",class:"pp-behind-lina"},null,-1)),Fn={class:"pp-behind-body"},Sn=u(()=>e("span",{class:"pp-behind-tag"},"THE HONEST READ",-1)),Mn={class:"pp-behind-l1"},En={class:"pp-behind-l2"},Tn={class:"pp-two-col"},An={key:0,class:"pp-conf-card"},Dn=u(()=>e("h3",{class:"pp-card-title"}," Projection confidence ",-1)),Ln={class:"pp-conf-top"},In={width:"72",height:"72",viewBox:"0 0 72 72"},Bn=u(()=>e("circle",{cx:"36",cy:"36",r:"26",fill:"none",stroke:"#EEF2F7","stroke-width":"8"},null,-1)),Rn=["stroke-dasharray"],Pn={x:"36",y:"41","text-anchor":"middle","font-size":"16","font-weight":"800",fill:"#304058","font-family":"Inter, sans-serif"},Nn={class:"pp-conf-label"},Vn=u(()=>e("div",{class:"pp-conf-note"}," The score climbs as reality verifies the model. ",-1)),Wn={key:0,class:"pp-growth-note"},Un={class:"pp-conf-list"},On={class:"pp-conf-f"},jn=u(()=>e("div",{class:"pp-conf-avail-label"}," AVAILABLE — RAISE YOUR SCORE ",-1)),Yn={class:"pp-conf-list"},zn=u(()=>e("span",{class:"pp-conf-mark-open"},null,-1)),Gn={class:"pp-conf-f"},Xn=["onClick"],qn={class:"pp-conf-pts muted tnum"},Hn={class:"pp-wins-card"},Qn=u(()=>e("div",{class:"pp-wins-head"},[e("h3",{class:"pp-card-title"}," The receipts "),e("span",{class:"pp-card-sub"},"Where your verified number comes from")],-1)),Jn={key:0,class:"pp-wins-empty"},Zn={class:"pp-wins-empty-text"},Kn=u(()=>e("br",null,null,-1)),ea={class:"pp-green-strong tnum"},ta=u(()=>e("br",null,null,-1)),sa={key:1,class:"pp-wins-list"},oa={class:"pp-win-body"},na={class:"pp-win-title"},aa={key:2,class:"pp-wins-foot"},la=u(()=>e("span",{class:"pp-flex"},null,-1)),ia={class:"pp-level-note tnum"},ra={key:3,class:"pp-levers"},ua=u(()=>e("div",{class:"pp-levers-label"}
1," WHERE THE PROJECTED GAIN COMES FROM ",-1)),ca={class:"pp-levers-bar"},pa=["title"],da={class:"pp-levers-legend"},ha=u(()=>e("span",{class:"pp-flex"},null,-1)),va=u(()=>e("p",{class:"pp-honesty"},[C(" Every dollar on this page comes from your numbers — nothing is invented."),e("br"),C("Estimated figures carry ±25% until a check-in verifies them. ")],-1)),_a={key:8,class:"pp-sheet-wrap"},ma={class:"pp-sheet"},fa=u(()=>e("div",{class:"pp-sheet-handle"},null,-1)),ya={class:"pp-sheet-head"},ba=u(()=>e("img",{src:"/images/onboarding/lina-clipboard.png",alt:"Lina"},null,-1)),ka=u(()=>e("div",{class:"pp-checkin-overline"}," Monthly check-in · 60 seconds ",-1)),ga={class:"pp-sheet-title"},wa={class:"pp-sheet-fields"},xa={class:"pp-field grow"},Ca=u(()=>e("label",null,"REVENUE",-1)),$a={class:"pp-input"},Fa=u(()=>e("span",null,"$",-1)),Sa={class:"pp-field grow"},Ma=u(()=>e("label",null,"PROFIT",-1)),Ea={class:"pp-input"},Ta=u(()=>e("span",null,"$",-1)),Aa=["disabled"],Da={class:"pp-sheet-qb"},La=u(()=>e("h3",{class:"pp-modal-title"}," Set your monthly profit goal ",-1)),Ia=u(()=>e("p",{class:"pp-modal-sub"}," Lina redraws the whole journey — curve, waypoints, goal day — the moment you save. ",-1)),Ba={class:"pp-input big"},Ra=u(()=>e("span",null,"$",-1)),Pa={class:"pp-modal-btns"},Na=["disabled"],Va={class:"pp-share-head"},Wa=u(()=>e("h3",{class:"pp-modal-title"}," Share this Achievement ",-1)),Ua=u(()=>e("span",{class:"pp-flex"},null,-1)),Oa={class:"pp-share-card"},ja=u(()=>e("div",{class:"pp-share-badge"},[e("img",{src:"/images/lessons/lina_after_lesson_badge.png",alt:"Achievement badge"})],-1)),Ya={class:"pp-share-title"},za={class:"pp-share-stat tnum"},Ga={class:"pp-share-sub"},Xa=u(()=>e("div",{class:"pp-share-foot"}," UPLIFY · VERIFIED BY REAL NUMBERS ",-1)),qa={class:"pp-share-btns"},Ha=18,ut=30,ct=332,Qa=904,Ja={__name:"index",setup(J){const E=pt(),{smAndDown:be}=zt(),{ensureLoaded:Z,data:x,baseline:U,stats:G,hasBaseline:m,confidence:ke,planChange:ht,verifiedChange:vt,realActualChange:_t}=Yt(),ge=y(null),Ue=y(null),oe=y(null);async function mt(){try{const t=await H("/tools/profit-amplifier/state");ge.value=(t==null?void 0:t.data)??null}catch{}}async function Te(){try{const t=await H("/profit-progress/wins");Ue.value=(t==null?void 0:t.data)??null}catch{}}async function ft(){var s;const t=(s=x.value)==null?void 0:s.current_day;if(t)try{const n=await H(`/profit-progress/day-impact/${t}`);oe.value=(n==null?void 0:n.data)??null}catch{}}Gt(async()=>{await Promise.all([Z(),mt(),Te(),yt()]),ft()});const Ae=y(!1),ne=y(!1);async function yt(){var t;try{const s=await H("/integrations/quickbooks/status");Ae.value=!!(((t=s.data)==null?void 0:t.connected)??s.connected)}catch{}}async function bt(){if(!Ae.value)return E.push("/integrations");if(!ne.value){ne.value=!0;try{await H("/integrations/quickbooks/sync",{method:"POST"}),await Z(!0),Te()}catch{}finally{ne.value=!1}}}const Oe=c(()=>{var t;return((t=x.value)==null?void 0:t.estimated_timeline)??[]}),je=c(()=>{var t;return((t=x.value)==null?void 0:t.verified_timeline)??[]}),D=c(()=>{var t;return((t=x.value)==null?void 0:t.actual_timeline)??[]}),_=c(()=>D.value.length?D.value[D.value.length-1]:null),k=c(()=>{var t,s;return Number(((s=(t=x.value)==null?void 0:t.goal)==null?void 0:s.profit_goal)??0)}),g=c(()=>{var t;return Number(((t=U.value)==null?void 0:t.monthly_profit)??0)}),Ye=c(()=>!!x.value&&!m.value),De=c(()=>{var t;return(t=x.value)!=null&&t.program_start?new Date(x.value.program_start+"T00:00:00"):new Date});function B(t){const s=Oe.value;return s.length?Number((s[Math.min(t,s.length)-1]??s[s.length-1]).profit):g.value}function ae(t){const s=je.value;return s.length?Number((s[Math.min(t,s.length)-1]??s[s.length-1]).profit):g.value}const O=c(()=>Math.max(2,Oe.value.length)),j=c(()=>{const t=Math.floor((Date.now()-De.value.getTime())/864e5);return Math.max(1,Math.min(O.value,1+Math.floor(t/7)))});function ze(t){const s=new Date(De.value);return s.setDate(s.getDate()+(t-1)*7),s.toLocaleDateString("en-US",{month:"short",day:"numeric"})}const R=c(()=>{if(!k.value)return null;for(let t=1;t<=O.value;t++)if(B(t)>=k.value)return t;return null}),Ge=c(()=>
1{if(!R.value)return null;const t=new Date(De.value);return t.setDate(t.getDate()+(R.value-1)*7),t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),L=y(!1),Xe=y(null),le=c(()=>{var n,r;const t=(r=(n=ge.value)==null?void 0:n.checkin)==null?void 0:r.due_month;return!t||!m.value||D.value.some(d=>(d.period??"").startsWith(t))?null:t}),X=c(()=>le.value?new Date(le.value+"-01T00:00:00").toLocaleDateString("en-US",{month:"long"}):""),we=c(()=>!!le.value&&!L.value),Le=c(()=>!_.value||L.value?!1:_.value.profit>ae(_.value.week)+50),qe=c(()=>!_.value||L.value?!1:_.value.profit<ae(_.value.week)-50),ie=c(()=>!!_.value&&!!k.value&&_.value.profit>=k.value),I=y(null),kt=c(()=>I.value?v(B(I.value)):v(_.value?_.value.profit:g.value)),gt=c(()=>I.value?`Week ${I.value} projection · ±25%`:_.value?`Latest check-in · ${He(_.value.period)}`:"Your Day 1 baseline — a check-in verifies it");function He(t){return new Date((t??"")+"T00:00:00").toLocaleDateString("en-US",{month:"short"})}const Ie=c(()=>!!_.value),wt=c(()=>{var t,s;if(_.value){const n=_.value.profit-g.value,r=g.value?Math.round(n/g.value*100):0;return`${n>=0?"▲ +":"▼ "}${v(n)}/mo since Day 1 · ${n>=0?"+":""}${r}%`}return`≈ +${v(((t=G.value)==null?void 0:t.verified_profit_change)??0)}/mo modeled from ${((s=G.value)==null?void 0:s.actions_completed)??0} actions`}),Be=c(()=>{if(!k.value)return{a:"Set a profit goal and I date the path to it —",g:"",b:"to the dollar."};if(ie.value)return{a:"Summit reached —",g:`${v(k.value)}/mo`,b:`crossed at Week ${_.value.week}. Name the next one.`};if(!R.value)return{a:"A goal of",g:`${v(k.value)}/mo`,b:`sits beyond this ${O.value}-week roadmap — stack more levers in the Amplifier.`};const t=Math.max(0,(R.value-j.value)*7);return{a:"On pace for",g:`${v(k.value)}/mo`,b:`by ${Ge.value} · ${t} days to go`}}),xt=c(()=>{if(ie.value)return"Summit reached. I never doubted the math — or you.";if(L.value)return"Verified. Your chart just earned its ✓ — that number is real.";if(we.value)return"One real number makes this whole chart honest. Sixty seconds — I timed it.";if(Le.value)return"You are ahead of my math. Protect the habit that got you here.";if(qe.value)return"A little under the curve — and completely fixable. See the honest read below.";const t=$e.value;return t?`Right where the model wants you. Next waypoint: ${t.title}, Week ${t.week}.`:"Every action you complete draws this curve a little higher."}),Ct=c(()=>{if(we.value||!m.value)return"";const t=new Date;return"Next check-in · "+new Date(t.getFullYear(),t.getMonth()+1,1).toLocaleDateString("en-US",{month:"short",day:"numeric"})}),xe=y("full"),$t=[["3m","3M"],["6m","6M"],["12m","12M"],["full","Full journey"]],w=c(()=>({"3m":13,"6m":26,"12m":52,full:O.value})[xe.value]??O.value),Y=y(!1),re=y(!1),q=y(!1);function S(t){return Ha+(t-1)/(w.value-1)*Qa}const Qe=c(()=>{var d;const t=[g.value];Y.value||(t.push(B(w.value)),t.push(g.value+(B(w.value)-g.value)*1.25)),re.value||t.push(g.value+Number(((d=G.value)==null?void 0:d.verified_profit_change)??0)),q.value||D.value.forEach(p=>{p.week<=w.value&&t.push(p.profit)}),ue.value&&t.push(k.value);let s=Math.min(...t),n=Math.max(...t);const r=Math.max(2500,n-s);return{min:s-r*.07,max:n+r*.09}});function F(t){const{min:s,max:n}=Qe.value;return ut+(1-(t-s)/(n-s))*ct}function Ce(t){return t.length?"M"+t.map(s=>s[0].toFixed(1)+" "+s[1].toFixed(1)).join(" L"):"M0 0"}const ue=c(()=>m.value&&w.value>=26&&!Y.value&&!!R.value&&!!k.value),Ft=c(()=>{const t=[];for(let s=1;s<=w.value;s++)t.push([S(s),F(B(s))]);return Ce(t)}),St=c(()=>{const t=[],s=[];for(let n=1;n<=w.value;n++){const r=B(n)-g.value;t.push([S(n),F(g.value+r*1.25)]),s.push([S(n),F(g.value+r*.75)])}return s.reverse(),Ce(t)+" L"+s.map(n=>n[0].toFixed(1)+" "+n[1].toFixed(1)).join(" L")+" Z"}),Mt=c(()=>{const t=Math.min(j.value,w.value,je.value.length||1),s=[];for(let n=1;n<=t;n++)s.push([S(n),F(ae(n))]);return Ce(s)}),Et=c(()=>D.value.filter(t=>t.week<=w.value)),Re=c(()=>{const t=Et.value;if(!t.length)return{line:"M0 0",area:"M0 0",dots:[]};const s=[[S(1),F(g.value)]].concat(t.map($=>[S($.week),F($.profit)])),n=Ce(s),r=s[s.length-1][0],d=ut+ct,p=n+" L"+r.toFixed(1)+" "+d+" L"+S(1).toFixed(1)+" "+d+" Z",o=t.map(($,_e)=>{const me=_e===t.length-1;return{key:"d"+$.week,x:S($.week).toFixed(1),y:F($.profit).toFixed(1),r:me?6:4.5,label:`${He($.period)} check-in · ${v($.profit)}/mo actual ✓`,landing:me&&L.value}});return{line:n,area:p,dots:o}}),Je=c(()=>ue.value?F(k.value).toFixed(1):0),K=c(()=>
1{if(!ue.value||!R.value||R.value>w.value)return null;const t=S(R.value),s=F(k.value);let n="";for(let r=0;r<10;r++){const d=-Math.PI/2+r*Math.PI/5,p=r%2===0?11:4.8;n+=(r?"L":"M")+(t+p*Math.cos(d)).toFixed(1)+" "+(s+p*Math.sin(d)).toFixed(1)}return{path:n+"Z",lblX:(t>700?t-16:t+16).toFixed(1),lblY:(s-12).toFixed(1),anchor:t>700?"end":"start",lbl:"Goal day · "+Ge.value}}),Tt=c(()=>{var n;return Y.value||!m.value?[]:[...(((n=x.value)==null?void 0:n.milestone_days)??[]).filter(r=>r.week<=w.value)].sort((r,d)=>(d.impact??0)-(r.impact??0)).slice(0,6).sort((r,d)=>r.week-d.week).map(r=>{const d=!!r.completed;return{key:"wp"+r.day,x:S(r.week).toFixed(1),y:F(B(r.week)).toFixed(1),ty:(F(B(r.week))+3.4).toFixed(1),fill:d?"#3C71B8":"#FFFFFF",check:d?"✓":"",label:`Week ${r.week} · ${r.date} — ${r.title} · ${r.lever} ≈ +${v(r.impact)}/mo${d?" ✓":""}`}})}),$e=c(()=>{var s;const t=(((s=x.value)==null?void 0:s.milestone_days)??[]).filter(n=>!n.completed&&n.week>=j.value);return t.length?t[0]:null}),At=c(()=>m.value?$e.value?`Next waypoint · Week ${$e.value.week} — ${$e.value.title}`:"All waypoints cleared — the goal star is yours.":""),Dt=c(()=>{const t=Math.max(1,Math.round(w.value/7)),s=[];for(let n=1;n<=w.value;n+=t)s.push({key:"x"+n,x:S(n).toFixed(1),label:"Wk "+n,date:ze(n)});return s}),Lt=c(()=>{const{min:t,max:s}=Qe.value,n=(s-t)/4.5,r=[1e3,2e3,2500,5e3,1e4,2e4].find(p=>p>=n)||2e4,d=[];for(let p=Math.ceil(t/r)*r;p<=s;p+=r)d.push({key:"y"+p,y:F(p).toFixed(1),ty:(F(p)+4).toFixed(1),label:p>=1e3?"$"+Math.round(p/500)/2+"k":"$"+Math.round(p)});return d}),Pe=c(()=>S(Math.min(j.value,w.value)).toFixed(1)),Ze=c(()=>m.value&&j.value<=w.value);function Ne(t){var p;const s=t.currentTarget.getBoundingClientRect();let r=(((p=t.touches)!=null&&p.length?t.touches[0].clientX:t.clientX)-s.left)/Math.max(1,s.width);r=Math.max(0,Math.min(1,r));const d=Math.max(1,Math.min(w.value,Math.round(1+r*(w.value-1))));d!==I.value&&(I.value=d)}function Ke(){I.value=null}const T=c(()=>{if(!I.value||!m.value)return null;const t=I.value,s=B(t),n=S(t),r=s-g.value,d=D.value.find(p=>p.week===t);return{x:n.toFixed(1),y:F(s).toFixed(1),tip1:`WEEK ${t} · ${ze(t).toUpperCase()}`,tip2:`${v(s)}/mo projected`,tip3:r>10?`+${v(r)}/mo of that comes from roadmap actions`:"Your Day 1 baseline — actions build from here",tip4:d?`Actual · ${v(d.profit)}/mo ✓`:"",tipStyle:{left:n/1e3*100+"%",transform:n<180?"translateX(0)":n>800?"translateX(-100%)":"translateX(-50%)"}}}),ce=y(""),P=y(""),ee=y(!1);function z(t){return parseInt(String(t).replace(/\D/g,""),10)||0}async function et(){if(!(!le.value||!z(P.value))){ee.value=!0;try{const t=ae(j.value)-g.value;await H("/profit-progress/actual",{method:"POST",body:{period_start:le.value+"-01",revenue:z(ce.value)||null,profit:z(P.value)}}),Xe.value={profit:z(P.value),model:t,month:X.value},L.value=!0,await Z(!0),Te();try{window.scrollTo({top:0,behavior:"smooth"})}catch{}}catch{}finally{ee.value=!1}}}const N=c(()=>{const t=Xe.value;if(!t)return null;const s=t.profit-g.value,n=Math.max(0,Math.round(t.model)),r=n>0?Math.round(s/n*100):null;return{month:t.month,modelSaid:"+"+v(n)+"/mo",realitySaid:"+"+v(s)+"/mo",acc:r,accText:r!==null?r+"%":"—",accW:r!==null?Math.min(100,r/120*100):0,line:r!==null&&r>=100?"Reality beat the model. I love being wrong in this direction.":"That’s a real number on the board. The model learns from every check-in.",badge:D.value.length<=1&&r!==null&&r>=75}}),tt=c(()=>{var s,n;const t=Number(((n=(s=ge.value)==null?void 0:s.checkin)==null?void 0:n.streak)??0)+(L.value?1:0);return t<=0?"":t===1?"1 month verified":`${t} months verified in a row`}),It=c(()=>!Le.value||!_.value?"":"+"+v(Math.max(0,_.value.profit-ae(_.value.week)))+"/mo"),st=c(()=>{var r,d,p;const t=((r=G.value)==null?void 0:r.actions_completed)??0,s=Math.round(j.value*((((d=G.value)==null?void 0:d.total_actions)??360)/O.value)),n=((p=oe.value)==null?void 0:p.impact_dollars)>0?` worth ≈ +${v(oe.value.impact_dollars)}/mo`:"";return{line1:`Here's the honest read: the model assumed ~${s} actions by Week ${j.value} — you've logged ${t}. That's the whole gap. Nothing is broken.`,line2:`Fastest way back on the curve: today's action${n}
1. One a day closes this steadily.`}}),ot=c(()=>{var t;return((t=ke.value)==null?void 0:t.factors)??[]}),Fe=c(()=>{var t;return Number(((t=ke.value)==null?void 0:t.score)??0)}),nt=c(()=>{var t;return((t=ke.value)==null?void 0:t.label)??""}),Bt=c(()=>(Fe.value/100*163.4).toFixed(1)),at=c(()=>{const t=n=>ot.value.some(r=>r.factor.toLowerCase().includes(n)),s=[];return t("historical data")||s.push({f:"Log monthly check-ins — 3 months of history",pts:"+4",link:"Check in",to:null}),t("market intelligence")||s.push({f:"Run Profit Scope — local market intelligence",pts:"+7",link:"Profit Scope →",to:"/tools/profit-scope-tool"}),t("ai tools")||s.push({f:"Use AI tools on roadmap actions",pts:"+2 each",link:"Tools →",to:"/tools/list"}),s}),lt=c(()=>{var s;const t=Number(((s=x.value)==null?void 0:s.growth_rate)??0);return t<=0?"":`+${t}%/mo organic growth detected — already baked into your curve.`}),Se=y(!1),Me={acquisition:{bg:"#EAF1F9",col:"#3C71B8"},retention:{bg:"#E9F7F1",col:"#2E9C77"},ascension:{bg:"#F1EDF8",col:"#7A63A5"}},te=c(()=>{var t;return((t=Ue.value)==null?void 0:t.wins)??[]}),Rt=c(()=>(Se.value?te.value:te.value.slice(0,4)).map((t,s)=>({key:"w"+s,dayLabel:"Day "+t.day,title:t.title,leverBg:(Me[t.lever]??Me.acquisition).bg,leverCol:(Me[t.lever]??Me.acquisition).col,amt:"+"+v(t.dollars)+"/mo",amtCol:t.verified_at?"#2E9C77":"#304058",vLabel:t.verified_at?`Verified at ${t.verified_at} check-in ✓`:"Modeled — verifies at your next check-in",vCol:t.verified_at?"#2E9C77":"#8296AC"}))),Pt=c(()=>{var r;const t=((r=G.value)==null?void 0:r.actions_completed)??0,s=Math.floor(t/60)+1,n=t%60;return`${n} of 60 Level ${s} actions · ${Math.round(n/60*100)}%`}),Ve=c(()=>{var d;const t=(((d=ge.value)==null?void 0:d.levers)??[]).filter(p=>p.enabled&&p.expected>0);if(!t.length)return[];const s={};t.forEach(p=>{s[p.lever]=(s[p.lever]??0)+p.expected});const n=Object.values(s).reduce((p,o)=>p+o,0),r={acquisition:["Acquisition","#3C71B8"],retention:["Retention","#46BC94"],ascension:["Ascension","#927BB7"]};return Object.entries(s).map(([p,o])=>{var $,_e,me;return{key:p,label:(($=r[p])==null?void 0:$[0])??p,col:((_e=r[p])==null?void 0:_e[1])??"#3C71B8",amt:v(o)+"/mo",w:Math.round(o/n*100)+"%",tip:`${((me=r[p])==null?void 0:me[0])??p} · ${v(o)}/mo expected`}})}),pe=y(!1),de=y(""),Ee=y(!1);function it(){de.value=k.value?String(k.value):"",pe.value=!0}async function Nt(){const t=z(de.value);if(t){Ee.value=!0;try{await H("/profit-progress/goal",{method:"POST",body:{profit_goal:t}}),pe.value=!1,await Z(!0)}catch{}finally{Ee.value=!1}}}const he=y(!1),We=y(!1),ve=c(()=>{var s;if(ie.value&&_.value)return{title:"Goal Reached",stat:v(_.value.profit)+"/mo verified",sub:`Goal was ${v(k.value)}/mo`,text:`Goal reached on Uplify: ${v(_.value.profit)}/mo verified profit — my goal was ${v(k.value)}/mo. Real numbers, no fluff.`};const t=_.value?_.value.profit-g.value:0;return{title:"First Verified Win",stat:"+"+v(t)+"/mo verified",sub:`${((s=N.value)==null?void 0:s.month)??""} check-in · reality met the model`,text:`First Verified Win on Uplify — my check-in verified +${v(t)}/mo profit growth. The chart is real. 🔥`}});function Vt(){try{navigator.clipboard.writeText(ve.value.text)}catch{}We.value=!0,setTimeout(()=>We.value=!1,2e3)}function Wt(){window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(ve.value.text),"_blank","noopener")}function Ut(){window.open("https://www.linkedin.com/sharing/share-offsite/?url="+encodeURIComponent("https://uplify.app"),"_blank","noopener")}const rt=c(()=>{if(!L.value&&!ie.value)return[];const t=["#F6851F","#FBC745","#46BC94","#3C71B8","#927BB7"];return Array.from({length:18},(s,n)=>({key:"c"+n,style:{left:3+n*5.4+"%",background:t[n%5],transform:`rotate(${n*47%360}deg)`,animationDelay:n%6*.13+.2+"s"}}))}),Ot=c(()=>we.value&&be.value),jt=c(()=>we.value&&!be.value);return(t,s)=>{var r,d,p;const n=ls;return i(),l("div",is,[V(Qt,{"lina-phrases":["This page is the proof — ask me anything","Want the math behind the curve?"]},{left:Xt(()=>[e("div",rs,[e("img",{src:f(Jt),alt:"",class:"ahs-left-icon"},null,8,us),cs])]),_:1}),f(m)?(i(),l("section",ps,[e("div",ds,[e("div",hs,[vs,e("span",{class:A(["pp-tag",Ie.value?"pp-tag--ok":"pp-tag--rep"])},a(Ie.value?"VERIFIED ✓":"REPORTED"),3)]),e("div",_s,[C(a(kt.value),1),ms]),e("div",fs,[e("span",{class:A(["pp-delta tnum",Ie.value?"pp-delta--ok":"pp-delta--mod"])},a(wt.value),3),e("span",ys,a(gt.value),1)]),e("div",bs,[C(a(Be.value.a)+" ",1),e("strong",null,a(Be.value.g),1),C(" "+a(Be.value.b)+" ",1),e("button",{type:"button",class:"pp-goal-edit",title:"Edit your profit goal",onClick:it},[V(Q,{icon:"tabler-pencil",size:"14"}
1)])]),V(n,{estimated:f(ht),verified:f(vt),actual:f(_t)},null,8,["estimated","verified","actual"]),(d=(r=f(x))==null?void 0:r.date_adjustment)!=null&&d.reason?(i(),l("div",ks,[V(Q,{icon:f(x).date_adjustment.direction==="earlier"?"tabler-trending-up":"tabler-trending-down",size:"14"},null,8,["icon"]),C(" "+a(f(x).date_adjustment.reason),1)])):h("",!0)]),e("div",gs,[e("div",ws,a(xt.value),1),xs]),e("div",Cs,[(i(),l(b,null,M($t,o=>e("button",{key:o[0],type:"button",class:A(["pp-range",{on:xe.value===o[0]}]),onClick:$=>{xe.value=o[0],I.value=null}},a(o[1]),11,$s)),64)),Fs,e("span",Ss,a(Ct.value),1),Fe.value?(i(),l("span",Ms,a(Fe.value)+"% · "+a(nt.value),1)):h("",!0)])])):Ye.value?(i(),l("section",Es,[Ts,e("div",As,[Ds,Ls,Is,e("div",Bs,[e("button",{type:"button",class:"pp-btn-orange",onClick:s[0]||(s[0]=o=>f(E).push("/tools/profit-amplifier-tool"))}," Open the Profit Amplifier → "),Rs])])])):h("",!0),jt.value?(i(),l("section",Ps,[Ns,e("div",Vs,[Ws,e("h2",Us,a(X.value)+" just closed. ",1),Os,e("div",js,[e("div",Ys,[e("label",null,a(X.value.toUpperCase())+" REVENUE",1),e("div",zs,[Gs,fe(e("input",{"onUpdate:modelValue":s[1]||(s[1]=o=>ce.value=o),inputmode:"numeric"},null,512),[[ye,ce.value]])])]),e("div",Xs,[e("label",null,a(X.value.toUpperCase())+" PROFIT",1),e("div",qs,[Hs,fe(e("input",{"onUpdate:modelValue":s[2]||(s[2]=o=>P.value=o),inputmode:"numeric"},null,512),[[ye,P.value]])])]),e("button",{type:"button",class:"pp-btn-orange",disabled:ee.value||!z(P.value),onClick:et},a(ee.value?"Logging…":`Log ${X.value} →`),9,Qs)]),e("div",Js,[e("a",{href:"#",onClick:s[3]||(s[3]=se(o=>f(E).push("/integrations"),["prevent"]))},"Connect QuickBooks instead — auto-verifies every month")])])])):h("",!0),L.value&&N.value?(i(),l("section",Zs,[(i(!0),l(b,null,M(rt.value,o=>(i(),l("span",{key:o.key,class:"pp-confetti",style:W(o.style)},null,4))),128)),e("div",Ks,[e("span",eo,a(N.value.month.toUpperCase())+" · VERIFIED ✓",1),to,tt.value?(i(),l("span",so,"🔥 "+a(tt.value),1)):h("",!0)]),e("div",oo,[e("div",no,[e("div",ao,[e("div",null,[lo,e("div",io,a(N.value.modelSaid),1)]),V(Q,{icon:"tabler-arrow-right",size:"22",color:"#B9C6D8"}),e("div",null,[ro,e("div",uo,a(N.value.realitySaid),1)])]),e("div",co,[e("div",po,[ho,e("span",vo,a(N.value.accText),1)]),e("div",_o,[e("div",{class:"pp-acc-fill",style:W({width:N.value.accW+"%"})},null,4),mo]),fo]),e("div",yo,[bo,e("span",null,a(N.value.line),1)])]),N.value.badge?(i(),l("div",ko,[go,wo,xo,e("button",{type:"button",class:"pp-btn-outline",onClick:s[4]||(s[4]=o=>he.value=!0)}," Share this Achievement ")])):h("",!0)])])):h("",!0),ie.value&&!L.value?(i(),l("section",Co,[(i(!0),l(b,null,M(rt.value,o=>(i(),l("span",{key:o.key,class:"pp-confetti",style:W(o.style)},null,4))),128)),$o,e("div",Fo,[So,e("div",Mo,a(f(v)(_.value.profit))+"/mo verified — your goal was "+a(f(v)(k.value))+". ",1),Eo,e("div",To,[e("button",{type:"button",class:"pp-btn-navy",onClick:it}," Set your next summit "),e("button",{type:"button",class:"pp-btn-outline",onClick:s[5]||(s[5]=o=>he.value=!0)}," Share this Achievement ")])])])):h("",!0),f(m)?(i(),l("section",Ao,[Le.value?(i(),l("div",Do,[V(Q,{icon:"tabler-trending-up",size:"17"}),e("span",null,"You're beating the model — "+a(It.value)+" above the verified line.",1),Lo])):h("",!0),e("div",Io,[Bo,e("span",Ro,a(xe.value==="full"?`Weekly · your full ${O.value}-week roadmap`:`Weekly · weeks 1–${w.value} of ${O.value}`),1),Po,e("button",{type:"button",class:A(["pp-layer",{off:Y.value}]),onClick:s[6]||(s[6]=o=>Y.value=!Y.value)},[No,C("Estimated"),Vo],2),e("button",{type:"button",class:A(["pp-layer",{off:re.value}]),onClick:s[7]||(s[7]=o=>re.value=!re.value)},[Wo,C("Reported ")],2),e("button",{type:"button",class:A(["pp-layer",{off:q.value||!D.value.length}]),onClick:s[8]||(s[8]=o=>q.value=!q.value)},[Uo,C("Actual ")],2),e("button",{type:"button",class:"pp-sync",title:Ae.value?"Sync your latest actuals from QuickBooks":"Connect QuickBooks to auto-verify every month",onClick:bt},[V(Q,{icon:"tabler-refresh",size:"14",class:A({"pp-spin":ne.value})},null,8,["class"]),C(a(ne.value?"Syncing…":"Sync"),1)],8,Oo)]),e("div",jo,[(i(),l("svg",Yo,[(i(!0),l(b,null,M(Lt.value,o=>(i(),l("g",{key:o.key},[e("line",{x1:"18",x2:"922",y1:o.y,y2:o.y,stroke:"#EEF2F7","stroke-width":"1"},null,8,zo),e("text",{x:"930",y:o.ty,"font-size":"11.5",fill:"#9AA8BC","font-family":"Inter, sans-serif"},a(o.label),9,Go)]))),128)),Ze.value?(i(),l("line",{key:0,x1:Pe.value,x2:Pe.value,y1:"30",y2:"362",stroke:"#D9E2EC","stroke-width":"1.5","stroke-dasharray":"3 5"},null,8,Xo)):h("",!0),Ze.value?(i(),l("text",{key:1,x:Pe.value,y:"22","text-anchor":"middle","font-size":"11","font-weight":"700",fill:"#9AA8BC","font-family":"Inter, sans-serif"},"Today",8,qo)):h("",!0),Y.value?h("",!0):(i(),l("path",{key:2,d:St.value,fill:"#3C71B8",opacity:"0.05"},null,8,Ho)),ue.value?(i(),l("line",{key:3,x1:"18",x2:"922",y1:Je.value,y2:Je.value,stroke:"#FBC745","stroke-width":"2.5","stroke-dasharray":"1 7","stroke-linecap":"round"},null,8,Qo)):h("",!0),q.value?h("",!0):(i(),l("path",{key:4,d:Re.value.area,fill:"#46BC94",opacity:"0.13"},null,8,Jo)),q.value?h("",!0):(i(),l("path",{key:5,d:Re.value.line,fill:"none",stroke:"#2E9C77","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Zo)),Y.value?h("",!0):(i(),l("path",{key:6,d:Ft.value,fill:"none",stroke:"#8FB0D9","stroke-width":"2.5","stroke-dasharray":"7 7","
1stroke-linecap":"round"},null,8,Ko)),re.value?h("",!0):(i(),l("path",{key:7,d:Mt.value,fill:"none",stroke:"#3C71B8","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,8,en)),(i(!0),l(b,null,M(Tt.value,o=>(i(),l("g",{key:o.key,style:{cursor:"pointer"}},[e("title",null,a(o.label),1),e("circle",{cx:o.x,cy:o.y,r:"7.5",fill:o.fill,stroke:"#3C71B8","stroke-width":"2.5"},null,8,tn),e("text",{x:o.x,y:o.ty,"text-anchor":"middle","font-size":"9.5","font-weight":"800",fill:"#FFFFFF","font-family":"Inter, sans-serif"},a(o.check),9,sn)]))),128)),K.value?(i(),l(b,{key:8},[e("path",{d:K.value.path,fill:"#FBC745",stroke:"#E0A50C","stroke-width":"1.5","stroke-linejoin":"round"},null,8,on),e("text",{x:K.value.lblX,y:K.value.lblY,"text-anchor":K.value.anchor,"font-size":"11.5","font-weight":"700",fill:"#B7791F","font-family":"Inter, sans-serif"},a(K.value.lbl),9,nn)],64)):h("",!0),(i(!0),l(b,null,M(q.value?[]:Re.value.dots,o=>(i(),l("circle",{key:o.key,cx:o.x,cy:o.y,r:o.r,fill:"#2E9C77",stroke:"#FFFFFF","stroke-width":"2",class:A({"pp-dot-land":o.landing})},[e("title",null,a(o.label),1)],10,an))),128)),T.value?(i(),l(b,{key:9},[e("line",{x1:T.value.x,x2:T.value.x,y1:"30",y2:"362",stroke:"#304058","stroke-width":"1"},null,8,ln),e("circle",{cx:T.value.x,cy:T.value.y,r:"5.5",fill:"#3C71B8",stroke:"#FFFFFF","stroke-width":"2"},null,8,rn)],64)):h("",!0),(i(!0),l(b,null,M(Dt.value,o=>(i(),l("g",{key:o.key},[e("text",{x:o.x,y:"379","text-anchor":"middle","font-size":"11.5",fill:"#9AA8BC","font-family":"Inter, sans-serif"},a(o.label),9,un),e("text",{x:o.x,y:"394","text-anchor":"middle","font-size":"10",fill:"#C0CBD8","font-family":"Inter, sans-serif"},a(o.date),9,cn)]))),128)),e("rect",{x:"18",y:"30",width:"904",height:"332",fill:"transparent",style:{cursor:"crosshair","touch-action":"none"},onMousemove:Ne,onMouseleave:Ke,onTouchstartPassive:Ne,onTouchmovePassive:Ne,onTouchend:Ke},null,32)])),T.value?(i(),l("div",{key:0,class:"pp-tip",style:W(T.value.tipStyle)},[e("div",pn,a(T.value.tip1),1),e("div",dn,a(T.value.tip2),1),e("div",hn,a(T.value.tip3),1),T.value.tip4?(i(),l("div",vn,a(T.value.tip4),1)):h("",!0)],4)):h("",!0)]),e("div",_n,[e("span",mn,"⚑ "+a(At.value),1),D.value.length?h("",!0):(i(),l("span",fn,"Your first check-in unlocks the Actual layer.")),yn,!ue.value&&R.value?(i(),l("span",bn,"Goal "+a(f(v)(k.value))+" is above this window — tap 6M or Full journey to see the summit.",1)):h("",!0)])])):Ye.value?(i(),l("section",kn,xn)):h("",!0),qe.value&&f(m)?(i(),l("section",Cn,[$n,e("div",Fn,[Sn,e("div",Mn,a(st.value.line1),1),e("div",En,a(st.value.line2),1),e("button",{type:"button",class:"pp-btn-blue",onClick:s[9]||(s[9]=o=>f(E).push("/dashboard"))}," Go to today's action → ")])])):h("",!0),e("div",Tn,[f(m)?(i(),l("section",An,[Dn,e("div",Ln,[(i(),l("svg",In,[Bn,e("circle",{cx:"36",cy:"36",r:"26",fill:"none",stroke:"#3C71B8","stroke-width":"8","stroke-linecap":"round","stroke-dasharray":Bt.value+" 200",transform:"rotate(-90 36 36)"},null,8,Rn),e("text",Pn,a(Fe.value),1)])),e("div",null,[e("div",Nn,a(nt.value),1),Vn])]),lt.value?(i(),l("div",Wn,[V(Q,{icon:"tabler-trending-up",size:"15"}),e("span",null,a(lt.value),1)])):h("",!0),e("div",Un,[(i(!0),l(b,null,M(ot.value,(o,$)=>(i(),l("div",{key:"ce"+$,class:"pp-conf-row"},[e("span",{class:A(["pp-conf-mark",{neg:o.points<0}])},a(o.points<0?"−":"✓"),3),e("span",On,a(o.factor),1),e("span",{class:A(["pp-conf-pts tnum",{neg:o.points<0}])},a(o.impact),3)]))),128))]),at.value.length?(i(),l(b,{key:1},[jn,e("div",Yn,[(i(!0),l(b,null,M(at.value,(o,$)=>(i(),l("div",{key:"ca"+$,class:"pp-conf-row avail"},[zn,e("span",Gn,[C(a(o.f)+" ",1),o.to?(i(),l("a",{key:0,href:"#",onClick:se(_e=>f(E).push(o.to),["prevent"])},a(o.link),9,Xn)):h("",!0)]),e("span",qn,a(o.pts),1)]))),128))])],64)):h("",!0)])):h("",!0),e("section",Hn,[Qn,te.value.length?(i(),l("div",sa,[(i(!0),l(b,null,M(Rt.value,o=>(i(),l("div",{key:o.key,class:"pp-win-row"},[e("span",{class:"pp-win-day tnum",style:W({background:o.leverBg,color:o.leverCol})},a(o.dayLabel),5),e("div",oa,[e("div",na,a(o.title),1),e("div",{class:"pp-win-v",style:W({color:o.vCol})},a(o.vLabel),5)]),e("span",{class:"pp-win-amt tnum",style:W({color:o.amtCol})},a(o.amt),5)]))),128))])):(i(),l("div",Jn,[e("div",Zn,[((p=oe.value)==null?void 0:p.impact_dollars)>0?(i(),l(b,{key:0},[C(" Your first win is one action away —"),Kn,C("today's is worth ≈ "),e("span",ea,"+"+a(f(v)(oe.value.impact_dollars))+"/mo",1),C(". ")],64)):(i(),l(b,{key:1},[C(" Your first win is one action away."),ta,C("Every dollar-carrying action lands here as a receipt. ")],64))]),e("button",{type:"button",class:"pp-btn-blue",onClick:s[10]||(s[10]=o=>f(E).push("/dashboard"))}," Do today's action → ")])),te.value.length?(i(),l("div",aa,[te.value.length>
14?(i(),l("button",{key:0,type:"button",class:"pp-wins-toggle",onClick:s[11]||(s[11]=o=>Se.value=!Se.value)},a(Se.value?"Show top 4":`All ${te.value.length} wins →`),1)):h("",!0),la,e("span",ia,a(Pt.value),1)])):h("",!0),Ve.value.length?(i(),l("div",ra,[ua,e("div",ca,[(i(!0),l(b,null,M(Ve.value,o=>(i(),l("span",{key:o.key,style:W({width:o.w,background:o.col}),title:o.tip},null,12,pa))),128))]),e("div",da,[(i(!0),l(b,null,M(Ve.value,o=>(i(),l("span",{key:o.key,class:"pp-lever-item tnum"},[e("span",{class:"pp-lever-dot",style:W({background:o.col})},null,4),C(a(o.label)+" · "+a(o.amt),1)]))),128)),ha,e("a",{href:"#",class:"pp-lever-link",onClick:s[12]||(s[12]=se(o=>f(E).push("/tools/profit-amplifier-tool"),["prevent"]))},"Tune your levers in the Amplifier →")])])):h("",!0)])]),va,Ot.value?(i(),l("div",_a,[e("div",ma,[fa,e("div",ya,[ba,e("div",null,[ka,e("div",ga,a(X.value)+" just closed. ",1)])]),e("div",wa,[e("div",xa,[Ca,e("div",$a,[Fa,fe(e("input",{"onUpdate:modelValue":s[13]||(s[13]=o=>ce.value=o),inputmode:"numeric"},null,512),[[ye,ce.value]])])]),e("div",Sa,[Ma,e("div",Ea,[Ta,fe(e("input",{"onUpdate:modelValue":s[14]||(s[14]=o=>P.value=o),inputmode:"numeric"},null,512),[[ye,P.value]])])])]),e("button",{type:"button",class:"pp-btn-orange wide",disabled:ee.value||!z(P.value),onClick:et},a(ee.value?"Logging…":`Log ${X.value} →`),9,Aa),e("div",Da,[e("a",{href:"#",onClick:s[15]||(s[15]=se(o=>f(E).push("/integrations"),["prevent"]))},"Connect QuickBooks instead")])])])):h("",!0),pe.value?(i(),l("div",{key:9,class:"pp-modal-backdrop",onClick:s[19]||(s[19]=o=>pe.value=!1)},[e("div",{class:"pp-modal",onClick:s[18]||(s[18]=se(()=>{},["stop"]))},[La,Ia,e("div",Ba,[Ra,fe(e("input",{"onUpdate:modelValue":s[16]||(s[16]=o=>de.value=o),inputmode:"numeric",placeholder:"e.g. 45,000"},null,512),[[ye,de.value]])]),e("div",Pa,[e("button",{type:"button",class:"pp-btn-text",onClick:s[17]||(s[17]=o=>pe.value=!1)}," Cancel "),e("button",{type:"button",class:"pp-btn-blue",disabled:Ee.value||!z(de.value),onClick:Nt},a(Ee.value?"Saving…":"Save goal"),9,Na)])])])):h("",!0),he.value?(i(),l("div",{key:10,class:"pp-modal-backdrop",onClick:s[22]||(s[22]=o=>he.value=!1)},[e("div",{class:"pp-modal pp-modal--share",onClick:s[21]||(s[21]=se(()=>{},["stop"]))},[e("div",Va,[Wa,Ua,e("button",{type:"button",class:"pp-x",onClick:s[20]||(s[20]=o=>he.value=!1)},[V(Q,{icon:"tabler-x",size:"16"})])]),e("div",Oa,[ja,e("div",Ya,a(ve.value.title),1),e("div",za,a(ve.value.stat),1),e("div",Ga,a(ve.value.sub),1),Xa]),e("div",qa,[e("button",{type:"button",class:"pp-btn-blue grow",onClick:Vt},a(We.value?"Copied ✓":"Copy as text"),1),e("button",{type:"button",class:"pp-btn-outline",onClick:Wt}," Share on X "),e("button",{type:"button",class:"pp-btn-outline",onClick:Ut}," LinkedIn ")])])])):h("",!0)])}}},dl=dt(Ja,[["__scopeId","data-v-f7089e1d"]]);export{dl 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.