1import{j as e,r,e as Oe}from"./vendor-BYDWwPae.js";import{a2 as We,ag as M,cU as _e,ae as P,cV as we,ar as $e,aq as R,aN as Me,a0 as m,bS as ve,aa as Ue,cW as Be,cX as Ve,bi as ze,a1 as Ge,bs as Je,cY as Se,cg as Ye,b2 as qe,cZ as He}from"./index-DJOi_ihA.js";import{P as Ke}from"./ProtectedRoute-DE3kfxTm.js";import{A as je}from"./ActionConfirmModal-B9cgvGzF.js";import{R as Xe,C as Qe}from"./ResponsiveTable-GDtaMaJQ.js";import{g as Ze,S as es}from"./StatusBadge-Cqldjj7_.js";import{a as U,b as I,i as Z}from"./accountTypeRequests.api-BcJaKTZJ.js";import{a as ss,c as ts}from"./managerQueueNavigation-Bpnshlj_.js";import{g as as}from"./queueAge-DVFA_HrR.js";import{u as ns}from"./useElementWidth-CeiBAt0k.js";import"./query-DAfX1kxE.js";import"./ui-DI4_AqlD.js";import"./utils-CXlbsO6u.js";import"./useEdgeOverflow-C9SqoLUW.js";import"./legalWorkflowRoutes-BuKcX3i5.js";const B="unassigned",A="any",K="PENDING",is=["PENDING","IN_REVIEW","APPROVED","REJECTED","CANCELLED"],T=a=>{var t;return((t=Ze(a))==null?void 0:t.label)||a},u=a=>{var t,d;return[(t=a==null?void 0:a.profile)==null?void 0:t.firstName,(d=a==null?void 0:a.profile)==null?void 0:d.lastName].filter(Boolean).join(" ").trim()||(a==null?void 0:a.email)||"â"},Ae=a=>a?new Date(a).toLocaleString("en-GB",{dateStyle:"medium",timeStyle:"short"}):"â",Ne={fresh:"text-[#6B7280]",normal:"text-[#1D4ED8]",warning:"text-amber-700",critical:"text-red-700"},ls=[{field:"createdAt",label:"Created"},{field:"status",label:"Status"}],Ce=(a,t)=>a?t==="asc"?He:Se:qe;function ye({label:a,field:t,sort:d,order:c,onSort:f}){const l=d===t,b=Ce(l,c);return e.jsxs("button",{type:"button",onClick:()=>f(t),className:m("flex items-center gap-1.5 text-[14px] font-bold leading-[140%] transition-colors",l?"text-[#305DFF]":"text-[#1F2937] hover:text-[#305DFF]"),"aria-label":`Sort by ${a}`,children:[a,e.jsx(b,{className:m("h-3.5 w-3.5",!l&&"opacity-40")})]})}function os({label:a,field:t,sort:d,order:c,onSort:f}){const l=d===t,b=Ce(l,c);return e.jsxs("button",{type:"button","aria-pressed":l,onClick:()=>f(t),className:m("flex h-8 items-center gap-1.5 rounded-full px-3 text-xs font-semibold transition-colors",l?"bg-[#EEF2FF] text-[#3730A3]":"bg-slate-100 text-slate-600 hover:bg-slate-200"),children:[a,e.jsx(b,{className:m("h-3.5 w-3.5",!l&&"opacity-40"),"aria-hidden":"true"})]})}function X({active:a,onClick:t,variant:d="solid",children:c}){return e.jsx("button",{type:"button","aria-pressed":a,onClick:t,className:m("flex h-8 items-center rounded-full px-3 text-xs font-semibold transition-colors",d==="solid"?a?"bg-[#305DFF] text-white":"bg-slate-100 text-slate-600 hover:bg-slate-200":a?"border border-[#305DFF] bg-[#EEF2FF] text-[#3730A3]":"border border-slate-200 bg-white text-slate-600 hover:bg-slate-50"),children:c})}function Q({label:a,children:t}){return e.jsxs("div",{className:"flex flex-col gap-1 sm:flex-row sm:items-start sm:gap-3",children:[e.jsx("span",{className:"shrink-0 text-xs font-semibold uppercase tracking-wide text-slate-400 sm:w-14 sm:pt-2",children:a}),e.jsx("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-2",children:t})]})}function Ee({request:a,stacked:t=!1}){const d=t?Se:Ye,c=t?"max-w-full break-words":"shrink-0";return e.jsxs("span",{className:m("flex min-w-0",t?"flex-col items-start gap-1":"items-center gap-2"),children:[e.jsx("span",{className:m("rounded-full bg-slate-100 px-2 py-0.5 text-[13px] font-medium text-slate-600",c),children:I(a.fromType)}),e.jsx(d,{className:"h-4 w-4 shrink-0 text-[#305DFF]","aria-hidden":"true"}),e.jsx("span",{className:"sr-only",children:"changes to"}),e.jsx("span",{className:m("rounded-full bg-[#EEF2FF] px-2 py-0.5 text-[13px] font-bold text-[#3730A3]",c),children:I(a.toType)})]})}function rs({request:a,staff:t,saving:d,stacked:c,onAssign:f}){const l=a.assignee;if(!Z(a.status))return e.jsx("span",{className:m("block min-w-0 text-[#1F2937]",c?"break-words":"truncate"),title:u(l),children:l?u(l):"â"});const b=[{value:B,name:"Unassigned"},...t];return l&&!t.some(x=>x.value===l.id)&&b.push({value:l.id,name:u(l),searchText:l.email}),e.jsx("div",{className:"w-full min-w-0",title:l?u(l):void 0,onClick:x=>x.stopPropagation(),onKeyDown:x=>x.stopPropagation(),children:e.jsx(ve,{size:"sm",options:b,value:(l==null?void 0:l.id)||B,disabled:d,onValueChange:x=>f(a,x),placeholder:"Unassigned"})})}function cs(){const{user:a}=We(),[t,d]=r.useState(null),[c,f]=r.useState(!0),[l,b]=r.useState(""),[x,L]=r.useState([]),[h,O]=r.useState(K),[j,V]=r.useState(A),[W,ee]=r.useState(""),[D,se]=r.useState(""),[C,ke]=r.useState("createdAt"),[E,te]=r.useState("desc"),[N,w]=r.useState(1),[o,k]=r.useState(null),[ae,z]=r.useState(""),[ne,_]=r.useState(null),[ie,$]=r.useState(null),le=r.useRef(null),[oe,Fe]=Oe();r.useEffect(()=>{if(W.trim()===D)return;const s=setTimeout(()=>{w(1),se(W.trim())},300);return()=>clearTimeout(s)},[W,D]);const F=r.useCallback(async()=>{f(!0);try{const s=await U.list({status:h||void 0,assigneeId:j===A?void 0:j,search:D||void 0,sort:C,order:E,page:N});d(s),k(n=>n&&(s.items.find(i=>i.id===n.id)||n)),b("")}catch(s){b(M(s,"Could not load the queue."))}finally{f(!1)}},[h,j,D,C,E,N]);r.useEffect(()=>{F()},[F]),r.useEffect(()=>{let s=!1;return _e.getStaffOptions().then(n=>{s||L(n.filter(i=>i==null?void 0:i.id).map(i=>({value:i.id,name:i.name||i.email,searchText:i.email})))}).catch(n=>{s||console.error("Staff options unavailable:",n)}),()=>{s=!0}},[]);const G=oe.get("requestId");r.useEffect(()=>{if(!G)return;let s=!1;return U.get(G).then(n=>{s||k(n)}).catch(n=>{s||P.error(M(n,"That request is no longer there."))}).finally(()=>
1{if(s)return;const n=new URLSearchParams(oe);n.delete("requestId"),Fe(n,{replace:!0})}),()=>{s=!0}},[G]);const v=r.useMemo(()=>o?((t==null?void 0:t.items)||[]).some(s=>s.id===o.id)?null:o:null,[t,o]),J=r.useMemo(()=>v?[v,...(t==null?void 0:t.items)||[]]:(t==null?void 0:t.items)||[],[t,v]);r.useEffect(()=>{z("")},[o==null?void 0:o.id]);const Y=r.useMemo(()=>t?Math.max(1,Math.ceil(t.total/t.pageSize)):1,[t]),re=r.useMemo(()=>[{value:A,label:"Anyone"},...a!=null&&a.id?[{value:a.id,label:"Mine"}]:[],{value:B,label:"Nobody yet"}],[a==null?void 0:a.id]),ce=r.useMemo(()=>x.filter(s=>s.value!==(a==null?void 0:a.id)),[x,a==null?void 0:a.id]),de=!re.some(s=>s.value===j),q=s=>{if(w(1),C===s){te(E==="asc"?"desc":"asc");return}ke(s),te("desc")},me=async(s,n)=>{var S,be;k(p=>(p==null?void 0:p.id)===s.id?s:p);const i=((S=t==null?void 0:t.items)==null?void 0:S.some(p=>p.id===s.id))??!1;if(n||!i){await F();return}const g=(be=t==null?void 0:t.items)==null?void 0:be.find(p=>p.id===s.id);d(p=>p&&{...p,items:p.items.map(ge=>ge.id===s.id?s:ge)}),g&&g.status!==s.status&&await F()},De=async(s,n)=>{$(s.id);try{const i=await U.update(s.id,{assigneeId:n===B?"":n});P.success(i.assignee?`Assigned to ${u(i.assignee)}`:"Nobody owns this now"),await me(i,j!==A)}catch(i){P.error(M(i,"That assignment did not go through.")),await F()}finally{$(null)}},H=async(s,n)=>{$(s.id);try{const i=ae.trim(),g=await U.update(s.id,{status:n,...i?{decisionNote:i}:{}});P.success(n==="APPROVED"?`${u(s.user)} is now ${I(s.toType)}`:`Moved to ${T(n)}`),_(null),z(""),await me(g,!!h&&h!==g.status)}catch(i){P.error(M(i,"That did not go through."))}finally{$(null)}},Pe=s=>{k(s),window.innerWidth<1024&&requestAnimationFrame(()=>{var n;return(n=le.current)==null?void 0:n.scrollIntoView({behavior:"smooth"})})},Re=[{key:"client",header:"Client",minWidth:220,grow:1.4,render:(s,{stacked:n}={})=>{var i,g,S;return e.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.jsx(Ve,{src:(g=(i=s.user)==null?void 0:i.profile)==null?void 0:g.avatar,name:u(s.user),size:"sm",className:"shrink-0"}),e.jsxs("span",{className:"block min-w-0",children:[e.jsx("span",{className:m("block text-[#1F2937]",!n&&"truncate"),children:u(s.user)}),e.jsx("span",{className:m("block text-[13px] text-[#6B7280]",!n&&"truncate"),children:(S=s.user)==null?void 0:S.email})]})]})}},{key:"company",header:"Company",minWidth:180,render:(s,{stacked:n}={})=>{var g;const i=ss((g=s.company)==null?void 0:g.id);return i?e.jsxs("a",{href:i,onClick:S=>S.stopPropagation(),className:"inline-flex min-w-0 items-center gap-1 font-medium text-[#305DFF] hover:text-[#002ED3] hover:underline",children:[e.jsx("span",{className:m("min-w-0",n?"break-words":"truncate"),children:s.company.name}),e.jsx(ze,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"})]}):e.jsx("span",{className:"text-[#9CA3AF]",children:"No company"})}},{key:"change",header:"Change",cardLabel:"Change",minWidth:210,render:(s,{stacked:n}={})=>e.jsx(Ee,{request:s,stacked:n})},{key:"status",role:"status",header:e.jsx(ye,{label:"Status",field:"status",sort:C,order:E,onSort:q}),cardLabel:"Status",minWidth:130,render:s=>e.jsx(es,{status:s.status})},{key:"createdAt",header:e.jsx(ye,{label:"Created",field:"createdAt",sort:C,order:E,onSort:q}),cardLabel:"Created",minWidth:160,render:s=>{const n=as(s.createdAt);return e.jsxs("span",{className:"block min-w-0",children:[e.jsx("span",{className:"block truncate text-[#1F2937]",children:Ae(s.createdAt)}),n&&Z(s.status)&&e.jsxs("span",{className:m("block text-[13px] font-semibold",Ne[n.tone]||Ne.fresh),children:["waiting ",n.label]})]})}},{key:"assignee",header:"Responsible",cardLabel:"Responsible",minWidth:210,render:(s,{stacked:n}={})=>e.jsx(rs,{request:s,staff:x,saving:ie===s.id,stacked:n,onAssign:De})}],xe=j===A&&!D&&N===1,he=h===K&&xe,pe=h===""&&xe,y=(t==null?void 0:t.openCount)||0,Te=()=>{w(1),O(K),V(A),ee(""),se("")},[Ie,ue]=ns(),Le=ue>0&&ue<Qe,fe=!!o||J.length>0||!t;return e.jsxs("div",{className:"flex flex-col gap-4 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 roun
1ded-2xl border border-slate-100 bg-white p-4 shadow-sm sm:p-5",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 text-slate-700",children:[e.jsx(we,{className:"h-5 w-5 text-[#305DFF]"}),e.jsx("h1",{className:"text-base font-semibold",children:"Profile Type Requests"}),y>0&&e.jsxs("span",{className:"rounded-full bg-[#EEF2FF] px-2.5 py-1 text-xs font-bold text-[#3730A3]",children:[y," waiting"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx($e,{value:W,onChange:ee,placeholder:"Search client, email or company",className:"w-full sm:w-72"}),e.jsx(R,{variant:"outline",size:"icon","aria-label":"Refresh the queue",onClick:F,disabled:c,className:"h-10 w-10 shrink-0 rounded-full",children:e.jsx(Me,{className:m("h-4 w-4",c&&"animate-spin")})})]})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs(Q,{label:"Show",children:[e.jsx(X,{active:h==="",onClick:()=>{w(1),O("")},children:"All"}),is.map(s=>e.jsx(X,{active:h===s,onClick:()=>{w(1),O(s)},children:T(s)},s))]}),e.jsxs(Q,{label:"Owner",children:[re.map(s=>e.jsx(X,{variant:"outline",active:j===s.value,onClick:()=>{w(1),V(s.value)},children:s.label},s.value)),(ce.length>0||de)&&e.jsx("div",{className:"w-52",children:e.jsx(ve,{size:"sm",options:ce,value:de?j:A,onValueChange:s=>{w(1),V(s)},placeholder:"Someone in particular"})})]}),Le&&e.jsx(Q,{label:"Sort",children:ls.map(s=>e.jsx(os,{label:s.label,field:s.field,sort:C,order:E,onSort:q},s.field))})]})]}),e.jsxs("div",{className:m("grid gap-4",fe&&"lg:grid-cols-[minmax(0,1fr)_minmax(0,380px)]"),children:[e.jsxs("div",{ref:Ie,className:"flex min-w-0 flex-col gap-3",children:[c?e.jsx("div",{className:"flex items-center justify-center rounded-2xl border border-slate-100 bg-white p-10",children:e.jsx(Ue,{className:"h-6 w-6 text-[#305DFF]"})}):l?e.jsx("p",{className:"rounded-2xl border border-slate-100 bg-white p-6 text-sm text-red-600",children:l}):e.jsxs(e.Fragment,{children:[v&&e.jsxs("div",{className:"flex items-start gap-2 rounded-xl border border-[#C7D2FE] bg-[#EEF2FF] px-3 py-2 text-[13px] text-[#3730A3]",children:[e.jsx(Be,{className:"mt-0.5 h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),e.jsxs("p",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"font-semibold",children:u(v.user)}),h&&v.status!==h?` â ${T(v.status)}, so it no longer matches â${T(h)}â.`:" â this one does not match the filters above."," ","Kept at the top while you are working on it."]}),e.jsx("button",{type:"button",onClick:()=>k(null),className:"shrink-0 rounded-md px-2 py-0.5 text-[13px] font-semibold underline-offset-2 hover:bg-white/60 hover:underline",children:"Dismiss"})]}),J.length>0&&e.jsx(Xe,{rows:J,columns:Re,getRowKey:s=>s.id,onRowClick:Pe,isRowSelected:s=>s.id===(o==null?void 0:o.id)}),!(t!=null&&t.items.length)&&e.jsx("div",{className:"rounded-2xl border border-slate-100 bg-white p-6 text-sm text-slate-500",children:he&&y>0?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"font-semibold text-slate-700",children:"Nothing new to pick up."}),e.jsx("p",{className:"mt-1 max-w-[60ch]",children:y===1?"The one request the badge above counts is already in review.":`All ${y} requests the badge above counts are already in review.`}),e.jsx(R,{variant:"outline",size:"sm",className:"mt-3",onClick:()=>{w(1),O("IN_REVIEW")},children:"Show what is in review"})]}):he||pe?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"font-semibold text-slate-700",children:pe?"No profile type requests yet.":"Nothing is waiting for a decision."}),e.jsx("p",{className:"mt-1 max-w-[60ch]",children:"A request appears here when a client asks to change their profile type from their own Profile page. You see who asked and why, hand it to whoever should decide it, and approve or decline it with a note they are shown."})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"font-semibold text-slate-700",children:"No requests match those filters."}),y>0&&e.jsx("p",{className:"mt-1",children:y===1?"One request is still waiting elsewhere in the queue.":`${y} requests are still waiting elsewhere in the queue.`}),e.jsx(R,{variant:"outline",size:"sm",className:"mt-3",onClick:Te,children:"Clear filters"})]})})]}),(t==null?void 0:t.total)>1&&e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 px-1 text-sm",children:[e.jsxs("span",{className:"text-slate-500",children:[(t.page-1)*t.pageSize+1,"â",Math.min(t.page*t.pageSize,t.total)," of ",t.total]}),Y>1&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(R,{variant:"outline",size:"sm",disabled:N<=1,onClick:()=>w(N-1),children:"Previous"}),e.jsxs("span",{className:"text-slate-500",children:["Page ",N," of ",Y]}),e.jsx(R,{variant:"outline",size:"sm",disabled:N>=Y,onClick:()=>w(N+1),children:"Next"})]})]})]}),fe&&e.jsx("aside",{ref:le,className:"h-fit self-start rounded-2xl border border-slate-100 bg-white p-4 shadow-sm lg:sticky lg:top-4 lg:max-h-[calc(100vh-2rem)] lg:overflow-y-auto",children:o?e.jsx(ds,{request:o,note:ae,onNoteChange:z,saving:ie===o.id,onMove:s=>H(o,s),onConfirm:_,onClose:()=>k(null)}):e.jsxs("div",{className:"flex flex-col items-start gap-2",children:[e.jsx("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-[#EEF2FF]",children:e.jsx(we,{className:"h-4 w-4 text-[#305DFF]","aria-hidden":"true"})}),e.jsx("p",{className:"text-sm font-semibold text-slate-700",children:"Nothing open yet"}),e.jsx("p",{className:"text-sm text-slate-500",children:"Pick a request to read what the client wrote and decide it."}),e.jsxs("ol",{className:"mt-1 list-decimal space-y-1 pl-4 text-[13px] text-slate-500",children:[e.jsx("li",{children:"Start the review, so the team can see it is being looked at."}),e.jsx("li",{children:"Hand it on with the Responsible column if it is not yours."}),e.jsx("li",{children:"Approve or decline, with a note the client is shown."})]})]})})]}),e.jsx(je,{open:ne==="APPROVED"&&!!o,onClose:()=>
1_(null),title:"Approve this change?",description:o?`${u(o.user)}'s account becomes ${I(o.toType)} the moment you approve â their profile is changed, not just this request. It cannot be undone from here; a further change means a new request.`:"",confirmLabel:"Approve and change the account",onConfirm:()=>o&&H(o,"APPROVED")}),e.jsx(je,{open:ne==="REJECTED"&&!!o,onClose:()=>_(null),title:"Decline this request?",description:o?`${u(o.user)} stays ${I(o.fromType)} and is shown your note. A declined request cannot be reopened â they would have to ask again.`:"",confirmLabel:"Decline request",tone:"danger",onConfirm:()=>o&&H(o,"REJECTED")})]})}function ds({request:a,note:t,onNoteChange:d,saving:c,onMove:f,onConfirm:l,onClose:b}){var L;const x=Z(a.status);return e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-sm font-semibold text-slate-800",children:u(a.user)}),e.jsx("a",{href:ts((L=a.user)==null?void 0:L.id),className:"text-[13px] text-[#305DFF] hover:underline",children:"Open client profile"})]}),e.jsx("button",{type:"button",onClick:b,"aria-label":"Close this request",className:"-mr-1 -mt-1 shrink-0 rounded-lg p-1 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-700",children:e.jsx(Ge,{className:"h-4 w-4","aria-hidden":"true"})})]}),e.jsxs("div",{className:"flex flex-col gap-1 rounded-[12px] bg-slate-50 p-3",children:[e.jsx("span",{className:"text-xs text-slate-500",children:"Asked to become"}),e.jsx(Ee,{request:a})]}),e.jsxs("div",{className:"flex flex-col gap-1 rounded-[12px] bg-slate-50 p-3",children:[e.jsx("span",{className:"text-xs text-slate-500",children:"Why, in their words"}),a.reason?e.jsx("p",{className:"whitespace-pre-wrap text-sm text-slate-800",children:a.reason}):e.jsx("p",{className:"text-sm italic text-slate-500",children:"They did not write one â ask in chat if it matters."})]}),x?e.jsxs("div",{className:"flex flex-col gap-3 border-t border-slate-100 pt-3",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("label",{htmlFor:"account-type-decision-note",className:"text-xs font-semibold uppercase tracking-wide text-slate-400",children:"Note for the client"}),e.jsx(Je,{id:"account-type-decision-note",rows:3,value:t,onChange:h=>d(h.target.value),placeholder:"Shown to them with the decision"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.status==="PENDING"?e.jsx("button",{type:"button",disabled:c,onClick:()=>f("IN_REVIEW"),className:"rounded-[10px] border border-amber-200 bg-amber-50 px-3 py-1.5 text-sm font-semibold text-amber-800 transition-colors hover:bg-amber-100 disabled:opacity-50",children:"Start review"}):e.jsx("button",{type:"button",disabled:c,onClick:()=>f("PENDING"),className:"rounded-[10px] border border-slate-200 bg-white px-3 py-1.5 text-sm font-semibold text-slate-700 transition-colors hover:bg-slate-50 disabled:opacity-50",children:"Put back in the queue"}),e.jsx("button",{type:"button",disabled:c,onClick:()=>l("APPROVED"),className:"rounded-[10px] border border-emerald-200 bg-emerald-50 px-3 py-1.5 text-sm font-semibold text-emerald-800 transition-colors hover:bg-emerald-100 disabled:opacity-50",children:"Approve"}),e.jsx("button",{type:"button",disabled:c||!t.trim(),onClick:()=>l("REJECTED"),title:t.trim()?void 0:"Write the note first â the client is shown it",className:"rounded-[10px] border border-red-200 bg-red-50 px-3 py-1.5 text-sm font-semibold text-red-700 transition-colors hover:bg-red-100 disabled:opacity-50",children:"Decline"})]})]}):e.jsxs("div",{className:"flex flex-col gap-1 border-t border-slate-100 pt-3 text-sm",children:[e.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-slate-400",children:"Decided"}),e.jsxs("span",{className:"text-slate-800",children:[T(a.status),a.decidedBy?` by ${u(a.decidedBy)}`:"",a.decidedAt?` · ${Ae(a.decidedAt)}`:""]}),a.decisionNote&&e.jsx("p",{className:"whitespace-pre-wrap text-slate-600",children:a.decisionNote})]})]})}function Cs(){return e.jsx(Ke,{permission:"account_type_requests.manage",children:e.jsx(cs,{})})}
1export{Cs 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.