import{r as e}from"./rolldown-runtime-DCMCV6zW.js";import{pt as t}from"./vendor-primevue-DsBxnwSO.js";import"./vendor-firebase-CdLSXhbt.js";import{$ as n,A as r,Bt as i,D as a,Et as o,F as s,L as c,P as l,ht as u}from"./vendor-vue-core-D3IvUUeM.js";import"./vendor-other-C_YjAAj3.js";import"./useFeatureFlags-Bfb3fghV.js";import"./api-Ckh8-1rW.js";import"./colorUtil-DCPbkdH3.js";import{n as d}from"./vendor-i18n-CHjQVoSH.js";import"./i18n-C2nvaQjh.js";import"./vendor-reka-ui-djAAohzU.js";import{t as f}from"./Button-CJj3KtkO.js";import{_n as p}from"./dialogService-Daa_oID7.js";import"./systemStatsStore-CSnXy46l.js";import"./useErrorHandling-BfFOVBcK.js";import{t as m}from"./dialogStore-CBXn_TDV.js";import"./useCopyToClipboard-DcMopO23.js";import"./vendor-tiptap-CjhX_1DY.js";import"./vendor-markdown-CyF8uRn7.js";import"./markdownRendererUtil-DU6rKHAL.js";import"./useExternalLink-C8tDmXU8.js";var h={class:`flex w-full max-w-[360px] flex-col rounded-2xl border border-border-default bg-base-background`},g={class:`flex h-12 items-center justify-between border-b border-border-default px-4`},_={class:`m-0 text-sm font-normal text-base-foreground`},v=[`aria-label`],y={class:`px-4 py-4`},b={class:`m-0 text-sm text-muted-foreground`},x={class:`flex items-center justify-end gap-4 px-4 py-4`},S=c({__name:`RevokeInviteDialogContent`,props:{inviteId:{}},setup(e){let c=m(),S=p(),C=t(),{t:w}=d(),T=o(!1);function onCancel(){c.closeDialog({key:`revoke-invite`})}async function onRevoke(){T.value=!0;try{await S.revokeInvite(e.inviteId),c.closeDialog({key:`revoke-invite`})}catch(e){C.add({severity:`error`,summary:w(`g.error`),detail:e instanceof Error?e.message:void 0,life:3e3})}finally{T.value=!1}}return(e,t)=>(n(),r(`div`,h,[a(`div`,g,[a(`h2`,_,i(e.$t(`workspacePanel.revokeInviteDialog.title`)),1),a(`button`,{class:`cursor-pointer rounded border-none bg-transparent p-0 text-muted-foreground transition-colors hover:text-base-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-secondary-foreground`,"aria-label":e.$t(`g.close`),onClick:onCancel},t[0]||=[a(`i`,{class:`pi pi-times size-4`},null,-1)],8,v)]),a(`div`,y,[a(`p`,b,i(e.$t(`workspacePanel.revokeInviteDialog.message`)),1)]),a(`div`,x,[s(f,{variant:`muted-textonly`,onClick:onCancel},{default:u(()=>[l(i(e.$t(`g.cancel`)),1)]),_:1}),s(f,{variant:`destructive`,size:`lg`,loading:T.value,onClick:onRevoke},{default:u(()=>[l(i(e.$t(`workspacePanel.revokeInviteDialog.revoke`)),1)]),_:1},8,[`loading`])])]))}});export{S as default};
//# sourceMappingURL=RevokeInviteDialogContent-BE3YNEv_.js.map