1import{c as Y,u as q,j as e,D as me,a as ue,b as pe,N as J,d as H,B as Q,L as x,C as he,e as y,f as be,M as F,g as Z,A as fe,h as je,S as ge,i as Ne,k as D,l as P,r as l,O as we,m as W,n as ye,o as ee,p as Ce,q as ve,F as ke,s as se,t as h,v as z,T as Se,I as _e,w as Ae,x as De,y as te,z as R,E as Oe,G as Ie,H as Le,R as Te,J as U,K as Ee,P as Ge,Q as $e,U as Re,V as Be,W as Me,X as B}from"./index-CVeLaOLD.js";import{D as ae,G as M,g as Ue,a as g,b as Fe,c as Pe,d as ze,r as He,e as We,I as Ke,f as Ve,T as Xe,h as Ye,i as qe,j as Je,k as Qe,l as Ze}from"./GuideMarkdown--o8w0w-k.js";import{M as es,p as ss,e as ts,c as as}from"./index-DYhOx1Zu.js";import{S as ns}from"./send-C5CPYUHs.js";import"./docs-content-CXZ7Ugx6.js";/** 2 * @license lucide-react v0.525.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ls=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rs=Y("chevron-left",ls);/** 7 * @license lucide-react v0.525.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const cs=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],os=Y("lightbulb",cs);function is(){const{categoryId:s,slug:t}=q();return e.jsx("aside",{className:me,children:e.jsxs("div",{className:ue,children:[e.jsx("p",{className:pe,children:"Documentation"}),e.jsxs(J,{to:"/docs",end:!0,className:({isActive:n})=>H(n),children:[e.jsx(Q,{className:"w-[18px] h-[18px]"}),e.jsx("span",{children:"All guides"}),e.jsx("span",{className:"ml-auto text-[11px] font-bold text-slate-400",children:M})]}),ae.map(n=>{const a=Ue(n.id);if(a.length===0)return null;const c=s===n.id,d=n.icon,r=c?he:y;return e.jsxs("div",{children:[e.jsxs(x,{to:g(a[0]),className:H(!1),children:[e.jsx(d,{className:"w-[18px] h-[18px]"}),e.jsx("span",{className:c?"text-slate-900 font-semibold":void 0,children:n.label}),e.jsxs("span",{className:"ml-auto flex items-center gap-2 text-[11px] font-bold text-slate-400",children:[a.length,e.jsx(r,{className:"w-3.5 h-3.5"})]})]}),c&&e.jsx("div",{className:"ml-[23px] my-0.5 border-l border-border pl-3",children:a.map(i=>e.jsx(x,{to:g(i),className:be(i.slug===t),children:i.title},i.slug))})]},n.id)}),e.jsx("div",{className:"border-t border-border pt-3 mt-2",children:e.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2.5 px-3 py-2 rounded-lg text-[13.5px] font-medium text-slate-600 transition-colors hover:bg-slate-100 hover:text-slate-900",children:[e.jsx(F,{className:"w-[17px] h-[17px]"}),"Contact support"]})})]})})}function ds({onOpenSearch:s}){const{isAuthenticated:t,isLoading:n}=Z();return e.jsx("header",{className:"sticky top-0 z-20 bg-surface border-b border-border",children:e.jsxs("div",{className:"flex items-center gap-5 h-16 px-6",children:[e.jsxs(x,{to:"/docs",className:"flex items-center gap-2.5",children:[e.jsx("img",{src:fe,alt:"Moneylogz",className:"w-[34px] h-[34px] rounded-[9px]"}),e.jsx("span",{className:"text-lg font-extrabold tracking-tight text-slate-900",children:"Moneylogz"}),e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-brand bg-brand-soft border border-blue-100 rounded-md px-1.5 py-[3px]",children:"Docs"})]}),e.jsx("nav",{className:"hidden md:flex items-center gap-1 ml-2",children:e.jsx(J,{to:"/docs",end:!0,className:({isActive:a})=>["px-3 py-2 rounded-lg text-sm transition-colors",a?"bg-brand-soft text-brand font-semibold":"text-slate-600 font-medium hover:bg-slate-100"].join(" "),children:"Guides"})}),e.jsxs("button",{type:"button",onClick:s,className:je,children:[e.jsx(ge,{className:"w-4 h-4"}),e.jsxs("span",{children:["Search ",M," guidesâ¦"]}),e.jsx("kbd",{className:`${Ne} ml-auto`,children:"âK"})]}),e.jsxs("div",{className:"ml-auto flex items-center gap-2.5",children:[!n&&!t&&e.jsx(x,{to:"/login",className:"h-[38px] inline-flex items-center px-3 rounded-lg text-sm font-semibold text-slate-600 transition-colors hover:bg-slate-100",children:"Sign in"}),e.jsxs(x,{to:"/documents",className:D,children:["Open app",e.jsx(P,{className:"w-[15px] h-[15px]"})]})]})]})})}function xs(){const[s,t]=l.useState(!1);return l.useEffect(()=>{const n=a=>{a.key.toLowerCase()!=="k"||!(a.metaKey||a.ctrlKey)||(a.preventDefault(),t(c=>!c))};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[]),e.jsxs("div",{className:"min-h-screen bg-canvas text-slate-900",children:[e.jsx(ds,{onOpenSearch:()=>t(!0)}),e.jsxs("div",{className:"flex",children:[e.jsx(is,{}),e.jsx(we,{})]}),e.jsx(Fe,{open:s,onClose:()=>t(!1)})]})}const A="all";function ms({selected:s,onSelect:t}){const n=Pe();return e.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-4",children:[e.jsxs("button",{type:"button",onClick:()=>t(A),"aria-pressed":s===A,className:W(s===A),children:["All ",e.jsx("span",{className:"text-[11px] font-bold opacity-70",children:M})]}),ae.filter(a=>(n[a.id]??0)>0).map(a=>e.jsxs("button",{type:"button",onClick:()=>t(a.id),"aria-pressed":s===a.id,className:W(s===a.id),children:[a.label," ",e.jsx("span",{className:"text-[11px] font-bold opacity-70",children:n[a.id]})]},a.id))]})}function ne({guide:s}){const t=s.tags[0];return t?e.jsx("span",{className:`${ee} ${Ce[t]??"bg-surface-muted text-slate-600"}`,children:ye[t]??t}):null}function us({guide:s}){return e.jsxs(x,{to:g(s),className:ve,children:[e.jsx("span",{className:"w-[26px] h-[26px] flex-none rounded-[7px] bg-surface-muted text-slate-500 flex items-center justify-center",children:e.jsx(ke,{className:"w-3.5 h-3.5"})}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-sm font-semibold text-slate-900",children:s.title}),s.summary!==""&&e.jsx("span",{className:"block text-[12.5px] text-slate-500 mt-px",children:s.summary})]}),e.jsxs("span",{className:"ml-auto flex items-center gap-3",children:[e.jsx(ne,{guide:s}),e.jsxs("span",{className:"hidden sm:inline-flex items-center gap-1.5 text-xs text-slate-500
11whitespace-nowrap",children:[e.jsx(se,{className:"w-3 h-3"}),s.readMinutes," min"]}),e.jsx(y,{className:"w-[15px] h-[15px] text-slate-400"})]})]})}function ps({category:s,guides:t}){if(t.length===0)return null;const n=s.icon;return e.jsxs("section",{className:"mb-7",children:[e.jsxs("div",{className:"flex items-center gap-2.5 mb-2.5",children:[e.jsx("span",{className:"w-[30px] h-[30px] flex-none rounded-lg bg-brand-soft text-brand flex items-center justify-center",children:e.jsx(n,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-bold tracking-[-0.01em] text-slate-900",children:s.label}),e.jsx("p",{className:"text-[12.5px] text-slate-500",children:s.description})]}),e.jsxs(x,{to:g(t[0]),className:"ml-auto inline-flex items-center gap-1.5 text-[12.5px] font-semibold text-brand",children:["See all ",t.length,e.jsx(y,{className:"w-3.5 h-3.5"})]})]}),e.jsx("div",{className:h,children:t.map(a=>e.jsx(us,{guide:a},a.slug))})]})}const hs=[{title:"Add your documents",detail:"Upload, or let Gmail import them."},{title:"Connect your accounts",detail:"Bring in bank and card transactions."},{title:"Match and export",detail:"Confirm matches, sync to Sheets."}];function bs(s){const t=Date.parse(s);return Number.isNaN(t)?"â":new Date(t).toLocaleDateString("en-GB",{day:"2-digit",month:"short"}).toUpperCase()}function fs(){const s=ze[0],t=He(3);return e.jsxs("aside",{className:"w-[270px] flex-none hidden xl:block",children:[e.jsxs("div",{className:`${h} p-4 mb-4`,children:[e.jsx("h3",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-slate-400 mb-3",children:"Start here"}),e.jsx("ol",{className:"list-none",children:hs.map((n,a)=>e.jsxs("li",{className:"flex gap-2.5 py-2 border-b border-dashed border-border last:border-b-0",children:[e.jsx("span",{className:"w-5 h-5 flex-none rounded-full bg-brand text-white text-[11px] font-bold flex items-center justify-center mt-px",children:a+1}),e.jsxs("span",{children:[e.jsx("span",{className:"block text-[13.5px] font-semibold text-slate-900",children:n.title}),e.jsx("span",{className:"block text-xs text-slate-500",children:n.detail})]})]},n.title))}),s&&e.jsxs(x,{to:g(s),className:`${D} w-full mt-3.5`,children:["Open the setup guide",e.jsx(P,{className:"w-3.5 h-3.5"})]})]}),t.length>0&&e.jsxs("div",{className:`${h} p-4 mb-4`,children:[e.jsx("h3",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-slate-400 mb-3",children:"Whatâs new"}),t.map(n=>e.jsxs(x,{to:g(n),className:"flex gap-2.5 py-2 border-b border-border last:border-b-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 w-11 flex-none pt-0.5",children:bs(n.updated)}),e.jsx("span",{className:"text-[13px] font-medium text-slate-700",children:n.title})]},n.slug))]}),e.jsxs("div",{className:`${h} p-4`,children:[e.jsxs("div",{className:"flex gap-3 items-start",children:[e.jsx("span",{className:"w-[34px] h-[34px] flex-none rounded-[9px] bg-brand-soft text-brand flex items-center justify-center",children:e.jsx(F,{className:"w-[18px] h-[18px]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-slate-900",children:"Canât find it?"}),e.jsx("p",{className:"text-[12.5px] text-slate-500 mt-0.5 leading-snug",children:"Tell us what you were looking for â we reply within one business day."})]})]}),e.jsx("a",{href:"mailto:[email protected]",className:`${z} w-full mt-3`,children:"Contact support"})]})]})}function js(){const[s,t]=l.useState(A),n=We().filter(a=>s===A||a.category.id===s);return l.useEffect(()=>{document.title="User guides â Moneylogz Docs"},[]),e.jsxs("main",{className:"flex-1 min-w-0 px-6 lg:px-8 pt-8 pb-14",children:[e.jsxs("nav",{className:"flex items-center gap-2 text-[13px] text-slate-500 mb-3.5",children:[e.jsx("span",{children:"Docs"}),e.jsx(y,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"text-slate-900 font-semibold",children:"All guides"})]}),e.jsxs("header",{className:"mb-5",children:[e.jsx("h1",{className:"text-[26px] font-extrabold tracking-[-0.025em] text-slate-900 mb-1.5",children:"User guides"}),e.jsx("p",{className:"text-slate-600 text-[14.5px] max-w-[640px]",children:"Everything you can do in Moneylogz, written as short walkthroughs. Grouped exactly like the appâs menu, so what you read maps to what you see."})]}),e.jsxs("div",{className:"flex gap-6 items-start",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx(ms,{selected:s,onSelect:t}),n.map(a=>e.jsx(ps,{category:a.category,guides:a.guides},a.category.id))]}),e.jsx(fs,{})]})]})}const gs={...Ke,p:({children:s})=>e.jsx(e.Fragment,{children:s})},Ns=/\n[ \t]*\n/;function O({content:s}){const t=s.split(Ns).filter(n=>n.trim()!=="");return e.jsx(e.Fragment,{children:t.map((n,a)=>{const c=e.jsx(es,{components:gs,children:n});return a===0?e.jsx(l.Fragment,{children:c},a):e.jsx("span",{className:"block mt-2",children:c},a)})})}const ws={info:_e,tip:os,warn:Se};function ys({block:s}){const t=ws[s.variant];return e.jsxs("div",{className:`flex gap-3 rounded-xl border px-4 py-3.5 my-4 text-sm leading-relaxed ${Ae[s.variant]}`,children:[e.jsx(t,{className:"w-[18px] h-[18px] flex-none mt-0.5"}),e.jsxs("div",{children:[s.title!==""&&e.jsx("b",{className:"block text-[13.5px] font-bold mb-0.5",children:e.jsx(O,{content:s.title})}),e.jsx(O,{content:s.content})]})]})}function Cs({block:s}){return e.jsx("ol",{className:"list-none my-2 mb-4",children:s.steps.map((t,n)=>e.jsxs("li",{className:"relative ml-3.5 pl-10 pb-5 border-l-2 border-border last:border-transparent last:pb-1",children:[e.jsx("span",{className:"absolute -left-[15px] -top-0.5 w-7 h-7 rounded-full bg-brand text-white text-[13px] font-bold flex items-center justify-center ring-4 ring-canvas",children:n+1}),e.jsx("h4",{className:"text-[15.5px] font-bold text-slate-900 mb-1 leading-snug",children:e.jsx(O,{content:t.title})}),t.body!==""&&e.jsx("p",{className:"text-[14.5px] text-slate-700 leading-relaxed",children:e.jsx(O,{content:t.body})})]},`${t.title}-${n}`))})}function vs({block:s}){return e.jsxs("figure",{className:"my-4",children:[e.jsxs("div",{className:"rounded-xl border border-border overflow-hidden shadow-card bg-surface",children:[e.jsxs("div",{className:"h-8 bg-surface-2 border-b border-border flex items-center gap-1.5 px-3",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-border"}),e.jsx("span",{className:"w-2 h-2 rounded-full bg-border"}),e.jsx("span",{className:"w-2 h-2 rounded-full bg-border"}),e.jsx("span",{className:"ml-2 text-[11.5px] text-slate-500",children:"app.moneylogz.com"})]}),s.src!==""?e.jsx("img",{src:s.src,alt:s.alt,loading:"lazy",className:"w-full block"}):e.jsxs("div",{className:"flex min-h-[180px]",children:[e.jsxs("div",{className:"w-[74px] flex-none border-r border-border p-2.5 space-y-2",children:[e.jsx("div",{className:"h-1.5 rounded bg-surface-muted w-4/5"}),e.jsx("div",{className:"h-1.5 rounded bg-brand-soft w-[88%]"}),e.jsx("div",{className:"h-1.5 rounded bg-surface-muted w-3/5"}),e.jsx("div",{className:"h-1.5 rounded bg-surface-muted w-[72%]"})]}),e.jsxs("div",{className:"flex-1 p-3 space-y-2.5",children:[e.jsx("div",{className:"h-2 rounded bg-surface-muted w-1/3"}),e.jsx("div",{className:"h-9 rounded-lg bg-surface-2 border border-border"}),e.jsx("div",{className:"h-9 rounded-lg bg-brand-soft border border-blue-100"}),e.jsx("div",{className:"h-9 rounded-lg bg-surface-2 border border-border"})]})]})]}),s.caption!==""&&e.jsx("figcaption",{className:"text-[12.5px] text-slate-500 mt-2",children:e.jsx(O,{content:s.caption})})]})}function ks({blocks:s,slugFor:t}){return e.jsx(e.Fragment,{children:s.map((n,a)=>n.type==="callout"?e.jsx(ys,{block:n},a):n.type==="steps"?e.jsx(Cs,{block:n},a):n.type==="figure"?e.jsx(vs,{block:n},a):e.jsx(Ve,{content:n.content,slugFor:t},a))})}function Ss({headings:s,appRoute:t,appRouteLabel:n}){const[a,c]=l.useState(s[0]?.slug??"");return l.useEffect(()=>{if(s.length===0)return;const d=new IntersectionObserver(r=>{const i=r.filter(p=>p.isIntersecting).sort((p,f)=>p.boundingClientRect.top-f.boundingClientRect.top)[0];i?.target.id&&c(i.target.id)},{rootMargin:"-80px 0px -70% 0px",threshold:0});for(const r of s){const i=document.getElementById(r.slug);i&&d.observe(i)}return()=>d.disconnect()},[s]),s.length===0?null:e.jsxs("aside",{className:"w-[236px] flex-none hidden xl:block sticky top-[88px] self-start",children:[e.jsx("h3",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-slate-400 mb-2.5",children:"On this page"}),e.jsx("nav",{children:s.map(d=>e.jsx("a",{href:`#${d.slug}`,className:De(d.slug===a,d.depth===3),children:d.text},d.slug))}),t&&e.jsxs("div",{className:`${h} p-3.5 mt-5`,children:[e.jsx("p",{className:"text-[13.5px] font-bold text-slate-900 mb-1",children:"Try it in the app"}),e.jsxs("p",{className:"text-[12.5px] text-slate-500 leading-snug mb-2.5",children:["Open ",n??"the app"," and follow along."]}),e.jsxs(x,{to:t,className:"flex items-center justify-center gap-1.5 h-9 rounded-lg bg-brand text-white text-[13px] font-semibold transition-colors hover:bg-brand-hover",children:["Open ",n??"the app",e.jsx(P,{className:"w-3.5 h-3.5"})]})]})]})}const K=1e3,le=s=>s?{headers:{Authorization:`Bearer ${s}`}}:void 0,_s=async({publicId:s,category:t,slug:n,helpful:a,token:c})=>{const{data:d}=await te.post("/docs/feedback",{publicId:s,category:t,slug:n,helpful:a},le(c)),r=d?.data?.publicId;if(typeof r!="string"||r==="")throw new Error("The feedback service did not return an identifier for this answer.");return r},As=async({publicId:s,comment:t,token:n})=>{await te.patch(`/docs/feedback/${encodeURIComponent(s)}/comment`,{comment:t},le(n))},S=(s,t)=>console.warn(`[docs-feedback] ${s}`,t),V=s=>s instanceof Oe?s.statusCode:void 0;function Ds(s,t){const{isAuthenticated:n,isLoading:a,getAccessTokenSilently:c}=Z(),[d,r]=l.useState("idle"),[i,p]=l.useState(null),[f,w]=l.useState(""),N=l.useRef(null),u=l.useRef(null),[C,m]=l.useState(null),j=`${s}/${t}`,v=l.useRef(j);v.current!==j&&(v.current=j,r("idle"),p(null),w(""),N.current=null,u.current=null,m(null));const k=l.useCallback(o=>v.current===o?!0:(S(`discarded a response for ${o}; the reader moved to ${v.current}`),!1),[]),I=l.useCallback(async()=>
11{if(!a&&!n)return null;try{return await c()}catch(o){return S("could not read an access token; submitting anonymously",o),null}},[n,a,c]),L=l.useCallback(async(o,E)=>{const _=j,G=E??crypto.randomUUID();p(o),r("saving");const $=await I();try{const b=await _s({publicId:G,category:s,slug:t,helpful:o,token:$});if(!k(_))return;N.current=b,u.current=null,m(null),r(o?"thanks-yes":"details")}catch(b){if(R("docs_guide_feedback_failed",{slug:t,stage:"vote",statusCode:V(b)}),S(`could not record a ${o?"yes":"no"} answer for ${t}`,b),!k(_))return;u.current={kind:"vote",helpful:o,publicId:G},m("vote"),r("error")}},[j,s,t,I,k]),T=l.useCallback(async o=>{const E=j,_=N.current;if(_===null){S(`no stored answer to attach a comment to for ${t}`),m("vote"),r("error");return}r("sending");const G=await I();try{if(await As({publicId:_,comment:o,token:G}),R("docs_guide_feedback_comment",{slug:t,commentLength:o.length}),!k(E))return;u.current=null,m(null),r("thanks-no")}catch($){const b=V($);if(R("docs_guide_feedback_failed",{slug:t,stage:"comment",statusCode:b}),S(`could not store the comment for ${t}`,$),!k(E))return;if(b!==void 0&&b>=400&&b<500){S(`not offering a retry for ${t}; the comment was refused with ${b}`),u.current=null,m(null),r("thanks-no");return}u.current={kind:"comment",comment:o},m("comment"),r("error")}},[j,t,I,k]),ce=l.useCallback(async()=>{await T(f.trim())},[f,T]),oe=l.useCallback(async o=>{R("docs_guide_feedback",{slug:t,helpful:o}),await L(o)},[t,L]),ie=l.useCallback(()=>{u.current=null,m(null),r("thanks-no")},[]),de=l.useCallback(async()=>{const o=u.current;if(o!==null){if(o.kind==="vote"){await L(o.helpful,o.publicId);return}await T(o.comment)}},[L,T]),xe=l.useCallback(()=>{const o=u.current;if(u.current=null,m(null),o?.kind==="comment"){r("details");return}p(null),r("idle")},[]);return{status:d,failedStage:C,vote:i,comment:f,setComment:w,submit:oe,sendComment:ce,skip:ie,retry:de,dismiss:xe}}function X(s,t){return[z,s?"bg-brand-soft border-blue-100 text-brand":"",t?"opacity-50":""].filter(Boolean).join(" ")}function Os({category:s,slug:t}){const{status:n,failedStage:a,vote:c,comment:d,setComment:r,submit:i,sendComment:p,skip:f,retry:w,dismiss:N}=Ds(s,t),u=n==="saving",C=n==="sending",m=n!=="idle"&&n!=="error",j=n==="details"||n==="sending";return n==="thanks-yes"||n==="thanks-no"?e.jsxs("div",{className:`${h} flex items-center gap-3.5 px-4 py-4 mt-9`,children:[e.jsx("span",{className:"w-[34px] h-[34px] flex-none rounded-[9px] bg-badge-green text-badge-green-text flex items-center justify-center",children:e.jsx(Ie,{className:"w-[18px] h-[18px]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[14.5px] font-semibold text-slate-900",children:n==="thanks-yes"?"Thanks â that helps us prioritise.":"Thanks â weâll use this to improve the guide."}),n==="thanks-no"&&e.jsxs("p",{className:"text-[13px] text-slate-500 mt-0.5",children:["If youâre stuck right now,"," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-brand font-semibold",children:"contact support"})," ","and weâll reply within one business day."]})]})]}):n==="error"?e.jsxs("div",{className:`${h} flex items-center gap-3.5 px-4 py-4 mt-9`,children:[e.jsx("span",{className:"w-[34px] h-[34px] flex-none rounded-[9px] bg-badge-red text-badge-red-text flex items-center justify-center",children:e.jsx(Le,{className:"w-[18px] h-[18px]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[14.5px] font-semibold text-slate-900",children:a==="comment"?"We couldnât send your comment.":"Was this guide helpful?"}),e.jsx("p",{className:"text-[13px] text-badge-red-text mt-0.5",children:a==="comment"?"Your answer was saved. Check your connection and try again.":"We couldnât save your answer. Check your connection and try again."})]}),e.jsxs("span",{className:"ml-auto flex gap-2",children:[e.jsx("button",{type:"button",onClick:N,className:z,children:"Dismiss"}),e.jsxs("button",{type:"button",onClick:w,className:D,children:[e.jsx(Te,{className:"w-[15px] h-[15px]"}),"Try again"]})]})]}):e.jsxs("div",{className:`${h} px-4 py-4 mt-9`,children:[e.jsxs("div",{className:"flex items-center gap-3.5",children:[e.jsx(F,{className:"w-5 h-5 text-brand"}),e.jsx("span",{className:"text-[14.5px] font-semibold text-slate-900",children:"Was this guide helpful?"}),e.jsxs("span",{className:"ml-auto flex gap-2",children:[e.jsxs("button",{type:"button",onClick:()=>i(!0),disabled:m,className:X(c===!0,m&&c!==!0),children:[u&&c===!0?e.jsx(U,{className:"w-[15px] h-[15px] animate-spin"}):e.jsx(Xe,{className:"w-[15px] h-[15px]"}),"Yes"]}),e.jsxs("button",{type:"button",onClick:()=>i(!1),disabled:m,className:X(c===!1,m&&c!==!1),children:[u&&c===!1?e.jsx(U,{className:"w-[15px] h-[15px] animate-spin"}):e.jsx(Ye,{className:"w-[15px] h-[15px]"}),"No"]})]})]}),j&&e.jsxs("div",{className:"mt-3.5 pt-3.5 border-t border-border",children:[e.jsx("label",{htmlFor:"guide-feedback-comment",className:"block text-[13.5px] font-semibold text-slate-900 mb-0.5",children:"Sorry to hear that. What was missing or wrong?"}),e.jsx("p",{className:"text-[12.5px] text-slate-500 mb-2",children:"Optional â a sentence or tw
11o helps us fix the guide. Please donât include account numbers or other personal details."}),e.jsx("textarea",{id:"guide-feedback-comment",value:d,onChange:v=>r(v.target.value),maxLength:K,disabled:C,placeholder:"e.g. It doesnât say what happens to a document that was auto-matched to the wrong transactionâ¦",className:Ee}),e.jsxs("div",{className:"flex items-center gap-3 mt-2.5",children:[e.jsxs("span",{className:"text-xs text-slate-400",children:[d.length," / ",K]}),e.jsx("button",{type:"button",onClick:f,disabled:C,className:"text-[13.5px] font-semibold text-slate-500 px-1.5 transition-colors hover:text-slate-900 disabled:opacity-50",children:"Skip"}),e.jsx("button",{type:"button",onClick:p,disabled:C||d.trim()==="",className:`${D} ml-auto disabled:opacity-50`,children:C?e.jsxs(e.Fragment,{children:[e.jsx(U,{className:"w-[15px] h-[15px] animate-spin"}),"Sendingâ¦"]}):e.jsxs(e.Fragment,{children:["Send feedback",e.jsx(ns,{className:"w-[15px] h-[15px]"})]})})]})]})]})}function Is({previous:s,next:t}){return!s&&!t?null:e.jsxs("nav",{className:"flex gap-3 mt-6 pt-5 border-t border-border",children:[s&&e.jsxs(x,{to:g(s),className:`${h} flex-1 px-3.5 py-3`,children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.08em] text-slate-400 mb-1",children:[e.jsx(rs,{className:"w-3.5 h-3.5"}),"Previous"]}),e.jsx("span",{className:"block text-sm font-semibold text-slate-900",children:s.title})]}),t&&e.jsxs(x,{to:g(t),className:`${h} flex-1 px-3.5 py-3 text-right ${s?"":"ml-auto"}`,children:[e.jsxs("span",{className:"flex items-center justify-end gap-1.5 text-[11px] font-bold uppercase tracking-[0.08em] text-slate-400 mb-1",children:["Next",e.jsx(y,{className:"w-3.5 h-3.5"})]}),e.jsx("span",{className:"block text-sm font-semibold text-slate-900",children:t.title})]})]})}function Ls({guides:s}){return s.length===0?null:e.jsxs("section",{children:[e.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-slate-400 mt-8 mb-3",children:"Related guides"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:s.map(t=>e.jsxs(x,{to:g(t),className:`${h} p-3.5`,children:[e.jsx("span",{className:"block text-sm font-semibold text-slate-900 mb-1",children:t.title}),e.jsx("span",{className:"block text-[12.5px] text-slate-500 leading-snug",children:t.summary})]},t.slug))})]})}function re(){return e.jsxs("main",{className:"flex-1 min-w-0 px-6 lg:px-8 pt-16 pb-20 text-center",children:[e.jsx("span",{className:"w-14 h-14 rounded-2xl bg-surface-muted text-slate-400 flex items-center justify-center mx-auto mb-4",children:e.jsx(Ge,{className:"w-6 h-6"})}),e.jsx("h1",{className:"text-2xl font-bold text-slate-900 mb-2",children:"We couldnât find that guide"}),e.jsxs("p",{className:"text-slate-600 text-[14.5px] max-w-[440px] mx-auto mb-6",children:["The link may be out of date, or the guide may have been renamed. All ",M," ","guides are listed on the documentation home page."]}),e.jsxs(x,{to:"/docs",className:`${D} mx-auto`,children:[e.jsx(Q,{className:"w-[15px] h-[15px]"}),"Browse all guides"]})]})}const Ts={"home/a-tour-of-the-home-screen":"dashboard/a-tour-of-the-dashboard-screen","home/what-needs-your-attention":"dashboard/what-needs-your-attention"};function Es(s,t){return typeof s!="string"||typeof t!="string"||s===""||t===""?null:Ts[`${s}/${t}`]??null}function Gs(s){const t=Date.parse(s);return Number.isNaN(t)?null:new Date(t).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})}function $s(){const{categoryId:s="",slug:t=""}=q(),n=$e(),a=qe(s,t),c=a?null:Es(s,t),d=l.useMemo(()=>a?ss(a.body):[],[a]),r=l.useMemo(()=>a?ts(a.body):[],[a]);if(l.useEffect(()=>{a&&(document.title=`${a.title} â Moneylogz Docs`)},[a]),l.useEffect(()=>{if(!a)return;const N=window.location.hash.replace("#","");if(N===""){window.scrollTo({top:0});return}document.getElementById(N)?.scrollIntoView()},[a]),!a)return c!==null?e.jsx(Re,{to:{pathname:`/docs/${c}`,search:n.search,hash:n.hash},replace:!0}):e.jsx(re,{});const i=Je(a.category),{previous:p,next:f}=Qe(a),w=Gs(a.updated);return e.jsxs("main",{className:"flex-1 min-w-0 flex gap-8 px-6 lg:px-8 pt-7 pb-16",children:[e.jsxs("article",{className:"flex-1 min-w-0",children:[e.jsxs("nav",{className:"flex items-center gap-1.5 text-[13px] text-slate-500 mb-3.5",children:[e.jsx(x,{to:"/docs",children:"Docs"}),e.jsx(y,{className:"w-3.5 h-3.5"}),i&&e.jsx("span",{children:i.label}),e.jsx(y,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"text-slate-900 font-semibold",children:a.title})]}),e.jsx("h1",{className:"text-[32px] leading-tight font-extrabold tracking-[-0.03em] text-slate-900 mb-2.5",children:a.title}),a.summary!==""&&e.jsx("p",{className:"text-[16.5px] text-slate-600 leading-relaxed mb-4",children:a.summary}),e.jsxs("div",{className:"flex items-center gap-2.5 flex-wrap pb-5 mb-6 border-b border-border",children:[i&&e.jsx("span",{className:`${ee} bg-badge-blue text-badge-blue-text`,children:i.label}),e.jsx(ne,{guide:a}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[12.5px] text-slate-500",children:[e.jsx(se,{className:"w-3.5 h-3.5"}),a.readMinutes," min read"]}),w&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-border",children:"â¢"}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[12.5px] text-slate-500",children:[e.jsx(Be,{className:"w-3.5 h-3.5"}),"Updated ",w]})]})]}),e.jsx(ks,{blocks:d,slugFor:as()}),e.jsx(Os,{category:a.category,slug:a.slug}),e.jsx(Ls,{guides:Ze(a)}),e.jsx(Is,{previous:p,next:f})]}),e.jsx(Ss,{headings:r,appRoute:i?.appRoute,appRouteLabel:i?.label})]})}function Ps(){return e.jsx(Me,{children:e.jsxs(B,{element:e.jsx(xs,{}),children:[e.jsx(B,{index:!0,element:e.jsx(js,{})}),e.jsx(B,{path:":categoryId/:slug",element:e.jsx($s,{})}),e.jsx(B,{path:"*",element:e.jsx(re,{})})]})})}export{Ps 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.