1import{a as R,j as e,j$ as A,G as v,dN as L,_ as S,w as r,A as o,k0 as s,B as C,b as V,ac as F,Z as E,bJ as W,d as H,z as U,av as G,t as _,aH as Y,cK as J,bz as K}from"./index-CLautiso.js";import{r as x,cB as Q,P as Z,F as B,ei as $}from"./vendor-BFrzAml_.js";import{u as M,h as T,i as N,j as g,k as P}from"./credentialLabels-Dp0pBs0b.js";import{S as X}from"./Section-DNC4BvhP.js";import{ec as k}from"./app-0SgohmKS.js";import{B as q}from"./Badge-B6UD8mPn.js";import"./dayjs-timezone-iana-plugin-B-UFEDqf.js";import"./Timestamp-BSWK-rNr.js";try{let n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="ff1e50ed-9c19-4b7d-8fa3-a66c723f81fc",n._sentryDebugIdIdentifier="sentry-dbid-ff1e50ed-9c19-4b7d-8fa3-a66c723f81fc")}catch{}const ee={en:"View profile",nl:"Bekijk profiel"},ne={en:"With you: %{activity}",nl:"Bij jullie: %{activity}"},te={en:"Confirm",nl:"Bevestigen"},ae={en:"Someone at your %{g:organization} has already answered this. Weâve refreshed the list so you can see their answer.",nl:"Iemand van je %{g:organization} heeft dit al beantwoord. We hebben de lijst ververst zodat je het antwoord kunt zien."},ie={en:"This has been changed since you were asked about it, so the request is closed and there is nothing left to answer. Weâve refreshed the list.",nl:"Dit is aangepast nadat jullie erom werd gevraagd, dus het verzoek is gesloten en er valt niets meer te beantwoorden. We hebben de lijst ververst."},oe={en:"Cannot confirm",nl:"Kan niet bevestigen"},se={en:"%{name} will be notified that %{organization} couldnât confirm â%{title}â, and canât ask you about it again unless they change it.",nl:"%{name} krijgt bericht dat %{organization} â%{title}â niet kon bevestigen, en kan het jullie pas opnieuw vragen na een aanpassing."},re={en:"Go back",nl:"Terug"},de={en:"Yes, decline",nl:"Ja, afwijzen"},ce={en:"Tell them you canât confirm this?",nl:"Laten weten dat je dit niet kunt bevestigen?"},le={en:"Nothing has been answered yet.",nl:"Er is nog niets beantwoord."},ge={en:"Nothing is waiting for an answer.",nl:"Er wacht niets op een antwoord."},me={en:"Volunteers can ask you to confirm a training, check or qualification they have listed on their profile. Confirming says you have seen evidence for it.",nl:"Vrijwilligers kunnen jullie vragen om een training, controle of kwalificatie op hun profiel te bevestigen. Bevestigen betekent dat je er bewijs van hebt gezien."},he={en:"%{smart_count} accepted application, on %{date} |||| %{smart_count} accepted applications, the latest on %{date}",nl:"%{smart_count} geaccepteerde aanmelding, op %{date} |||| %{smart_count} geaccepteerde aanmeldingen, de laatste op %{date}"},ue={en:"%{smart_count} activity report, sent on %{date} |||| %{smart_count} activity reports, the latest sent on %{date}",nl:"%{smart_count} activiteitenrapport, ingediend op %{date} |||| %{smart_count} activiteitenrapporten, het laatste ingediend op %{date}"},fe={en:"We couldnât load this list. Please reload the page to try again.",nl:"We konden deze lijst niet laden. Laad de pagina opnieuw om het nog eens te proberen."},pe={en:"Only administrators and moderators of this %{g:organization} can see its confirmation requests.",nl:"Alleen beheerders en moderators van %{g:thisOrganization} %{g:organization} kunnen de bevestigingsverzoeken zien."},be={en:"someone whose name is no longer available",nl:"iemand van wie de naam niet meer beschikbaar is"},ye={en:"â%{message}â",nl:"â%{message}â"},we={en:"Credential confirmations",nl:"Bevestigingen van kwalificaties"},je={en:"By confirming, you're saying %{organization} has seen evidence that %{name} holds this training, check or qualification as described. Your name, your role and today's date will be shown next to it on their profile.",nl:"Door te bevestigen zeg je dat %{organization} bewijs heeft gezien dat %{name} deze training, controle of kwalificatie heeft zoals beschreven. Je naam, je rol en de datum van vandaag komen ernaast te staan op hun profiel."}
1,ve={en:"Confirmed by %{name} (%{role}) on %{date}",nl:"Bevestigd door %{name} (%{role}) op %{date}"},xe={en:"Declined by %{name} (%{role}) on %{date}",nl:"Afgewezen door %{name} (%{role}) op %{date}"},ze={en:"Answered",nl:"Beantwoord"},Ce={en:"Waiting",nl:"In afwachting"},ke={en:"Showing the answers to the %{count} most recent requests.",nl:"De antwoorden op de %{count} meest recente verzoeken worden getoond."},De={en:"Showing the %{count} requests that have waited longest. Any others appear here as you answer these.",nl:"De %{count} verzoeken die het langst wachten worden getoond. Eventuele andere verschijnen hier zodra je deze beantwoordt."},Ee={en:"Asked on %{date}",nl:"Gevraagd op %{date}"},Ie={en:"Someone whose name is no longer available",nl:"Iemand van wie de naam niet meer beschikbaar is"},Ae={en:"Hasnât volunteered with %{organization} yet",nl:"Heeft nog niet als vrijwilliger bij %{organization} geholpen"},Se={en:"Confirmed",nl:"Bevestigd"},_e={en:"Declined",nl:"Afgewezen"},Be={en:"Waiting (%{count})",nl:"In afwachting (%{count})"},I={viewProfile:ee,askerHistory:ne,confirm:te,CREDENTIAL_VERIFICATION_ALREADY_DECIDED:ae,CREDENTIAL_VERIFICATION_CREDENTIAL_CHANGED:ie,decline:oe,declineConfirmBody:se,declineConfirmCancel:re,declineConfirmOk:de,declineConfirmTitle:ce,emptyDecided:le,emptyPending:ge,explanation:me,historyApplications:he,historyReports:ue,loadError:fe,loadForbidden:pe,nameUnavailable:be,note:ye,pageHeading:we,responsibility:je,statusConfirmed:ve,statusDeclined:xe,tabDecided:ze,tabPending:Ce,truncatedDecided:ke,truncatedPending:De,askedOn:Ee,askerNameUnavailable:Ie,historyNothing:Ae,badgeConfirmed:Se,badgeDeclined:_e,tabPendingCount:Be},O={[N.confirmed]:{badge:"badgeConfirmed",line:"statusConfirmed",color:"success",icon:Z},[N.declined]:{badge:"badgeDeclined",line:"statusDeclined",color:"gray",icon:Q}},Te=n=>n in O,Ne=({request:n,organizationName:a,organizationId:z,deciding:f,onDecide:m})=>{const t=R(I),c=M(),[l,p]=x.useState(!1),{credential:h,asker:i,decidedBy:y}=n,w=i.name===null?t("nameUnavailable"):i.name,j=[i.lastAcceptedAt!==null&&t("historyApplications",{smart_count:i.acceptedApplications,date:c.readableDate(i.lastAcceptedAt)}),i.lastReportedAt!==null&&t("historyReports",{smart_count:i.impactReports,date:c.readableDate(i.lastReportedAt)})].filter(Boolean),d=j.length>0?t("askerHistory",{activity:j.join("; ")}):t("historyNothing",{organization:a}),b=c.dates(h),u=Te(n.status)?O[n.status]:void 0;return e.jsxs(A,{withBorder:!0,padding:"md",radius:"md",...o(s.card(n.id)),children:[e.jsxs(v,{justify:"space-between",align:"flex-start",wrap:"nowrap",gap:"sm",children:[e.jsxs(v,{gap:"sm",wrap:"nowrap",align:"flex-start",miw:0,children:[e.jsx(L,{src:i.image,alt:"",radius:"xl",size:40,name:i.name??void 0,color:"initials"}),e.jsxs(S,{miw:0,children:[e.jsx(r,{fw:600,children:i.name??t("askerNameUnavailable")}),e.jsxs(r,{size:"sm",c:"textSecondary",children:[t("askedOn",{date:c.readableDate(n.created_at)})," · ",e.jsx("span",{...o(s.history(n.id)),children:d})]})]})]}),i.name!==null&&e.jsx(C,{component:V,to:F("userProfile",{userId:i.id,organizationId:z}),variant:"default",size:"compact-sm",rightSection:e.jsx(B,{icon:$}),className:k.profileButton,...o(s.askerProfileLink(n.id)),children:t("viewProfile")})]}),e.jsxs(A.Section,{withBorder:!0,inheritPadding:!0,py:"sm",mt:"sm",children:[e.jsxs(v,{justify:"space-between",align:"flex-start",wrap:"nowrap",gap:"sm",children:[e.jsxs(S,{miw:0,children:[e.jsx(r,{fw:600,children:h.title}),e.jsx(r,{size:"sm",c:"textSecondary",children:c.source(h)}),b&&e.jsx(r,{size:"sm",c:"textSecondary",children:b})]}),u&&e.jsx(q,{variant:"light",color:u.color,leftSection:e.jsx(B,{icon:u.icon}),className:k.badge,...o(s.outcome(n.id)),children:t(u.badge)})]}),n.message&&e.jsx(r,{size:"sm",mt:"sm",className:k.note,children:t("note",{message:n.message})})]}),m?e.jsxs(E,{gap:"sm",pt:"sm",children:[e.jsx(r,{size:"sm",c:"textSecondary",...o(s.responsibility(n.id)),children:t("responsibility",{organization:a,name:w})}),e.jsxs(v,{gap:"xs",justify:"flex-end",children:[e.jsx(C,{variant:"default",loading:f,onClick:()=>p(!0),...o(s.decline(n.id)),children:t("decline")}),e.jsx(C,{loading:f,onClick:()=>m(T.confirm),...o(s.confirm(n.id)),children:t("confirm")})]}),e.jsx(W,{open:l,onCancel:()=>p(!1),onOk:()=>{p(!1),m(T.decline)}
1,title:t("declineConfirmTitle"),okButtonLabel:t("declineConfirmOk"),okButtonProps:{color:"danger"},cancelButtonLabel:t("declineConfirmCancel"),mode:"confirm",size:"s",children:t("declineConfirmBody",{name:w,organization:a,title:h.title})})]}):u&&y&&e.jsx(r,{size:"sm",c:"textSecondary",pt:"sm",children:t(u.line,{name:y.name??t("nameUnavailable"),role:c.role(y.role),date:c.readableDate(y.at)})})]})},D=[g.pending,g.decided],Pe={[g.pending]:"tabPending",[g.decided]:"tabDecided"},Ge=()=>{const{organizationSlug:n}=H();if(!n)throw new Error("organizationSlug not found in route");const a=R(I),z=U({translations:I}),f=G(),[m,t]=x.useState(g.pending),c=f?.id,l=_.organizations.credentialVerifications.useQuery({organizationId:c??0,tab:m},{enabled:!!c,retry:Y}),p=_.organizations.decideCredentialVerification.useMutation({onSuccess:()=>l.refetch(),onError:d=>{z()(d),l.refetch()}}),h=l.data?.requests??[],[i,y]=x.useState(),w=l.data?.pendingCount;x.useEffect(()=>{w!==void 0&&y(w)},[w]);const j=l.isError?e.jsx(r,{size:"sm",c:"red",role:"alert",...o(s.loadError),children:l.error.data?.code==="FORBIDDEN"?a("loadForbidden"):a("loadError")}):l.data?h.length===0?e.jsx(r,{size:"sm",c:"textSecondary",...o(s.empty),children:m===g.pending?a("emptyPending"):a("emptyDecided")}):h.length>=P?e.jsx(r,{size:"sm",c:"textSecondary",...o(s.truncated),children:a(m===g.pending?"truncatedPending":"truncatedDecided",{count:`${P}`})}):null:e.jsx(J,{size:"sm"});return e.jsx(X,{heading:a("pageHeading"),...o(s.page),children:e.jsxs(E,{gap:"md",children:[e.jsx(r,{size:"sm",c:"textSecondary",...o(s.explanation),children:a("explanation")}),e.jsx(K,{active:D.indexOf(m),tabs:D.map(d=>({type:"BUTTON",onClick:()=>t(d),text:e.jsx("span",{...o(s.tab(d)),children:d===g.pending&&i?a("tabPendingCount",{count:String(i)}):a(Pe[d])})})),children:D.map(d=>e.jsxs(E,{gap:"sm",children:[j,f&&h.map(b=>e.jsx(Ne,{request:b,organizationName:f.name,organizationId:f.id,deciding:p.isPending&&p.variables?.requestId===b.id,onDecide:d===g.pending?u=>p.mutate({requestId:b.id,decision:u}):void 0},b.id))]},d))})]})})};export{Ge as default}; 2//# sourceMappingURL=index-71mIY2OR.js.map
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.