1import{S as f,a as w}from"./ShowAcceptedInvitations.62005eac.js";import{r as a,u as g,e as r,a as l,j as e}from"./app.c9201d71.js";import{A as N}from"./AppLayoutTranscriptor.9bf0eb38.js";import"./index.0579b088.js";import"./useTypedPage.74e17070.js";import"./js.cookie.29e697a2.js";import"./transition.acf5e87a.js";import"./index.6c8bb89f.js";import"./Modal.59c9d62c.js";import"./SessionActivityContext.1b308dbc.js";import"./sweetalert2.all.fd5dff52.js";function H(){const[s,h]=a.exports.useState([]),[d,p]=a.exports.useState([]),n=g(),[o,t]=a.exports.useState(!1);a.exports.useEffect(()=>{m(),u()},[o]);const m=()=>{r.get(n("pending-invitation")).then(i=>{h(i.data.pendingInvitations)}).catch(i=>{console.error("pending-invitations.invitation error:",i)})},u=()=>{r.get(n("accepted-invitation")).then(i=>{p(i.data.acceptedInvitations)}).catch(i=>{console.error("accepted-invitations.invitation error:",i)})},v=i=>{r.post(n("accept-invitation"),{id:i.id}).then(()=>{console.log("Accept invitation successful"),t(!0)}).catch(c=>{console.error("Accept invitation error:",c)})},x=i=>{r.post(n("decline-invitation"),{id:i.id}).then(()=>{console.log("Decline invitation successful"),t(!0)}).catch(c=>{console.error("Decline invitation error:",c)})};return l(N,{title:"Dashboard",renderHeader:()=>e("h2",{className:"font-semibold text-xl text-gray-800 leading-tight",children:"Dashboard"}),children:[e("div",{className:"pt-12",children:e("div",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8",children:e("div",{className:"bg-white overflow-hidden shadow-xl sm:rounded-lg",children:l("div",{className:"p-4",children:[e("h2",{className:"text-xl mb-4",children:"Initial demo screens"}),l("ul",{children:[e("li",{children:e("a",{href:"/workflow/transcribe",children:"Screen 1: Human Transcription"})}),e("li",{children:e("a",{href:"/workflow/clinical-educator-transcript",children:"Screen 2.1: Clinical Educator - Transcript"})}),e("li",{children:e("a",{href:"/workflow/clinical-educator-abstract",children:"Screen 2.2: Clinical Educator - Abstract"})}),e("li",{children:e("a",{href:"/workflow/clinical-educator-questions",children:"Screen 2.3: Clinical Educator - Questions"})}),e("li",{children:e("a",{href:"/workflow/clinical-educator-summary",children:"Screen 2.4: Clinical Educator - Summary"})}),e("li",{children:e("a",{href:"/workflow/translate",children:"Screen 3.1: Human Translation"})}),e("li",{children:e("a",{href:"/workflow/translate-final",children:"Screen 4.1: Final Translation"})})]})]})})})}),d.length>0&&e(f,{acceptedInvitation:d,reloadComponent:o,setReloadComponent:t})||e("div",{className:"py-6",children:e("div",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8",children:e("div",{className:"bg-white overflow-hidden shadow-xl sm:rounded-lg",children:e("h2",{className:"py-6 text-xl pl-6",children:"You have no accepted invitations."})})})}),s.length>0&&e(w,{pendingInvitation:s,handleAccept:v,handleDecline:x,reloadComponent:o,setReloadComponent:t})||e("div",{className:"",children:e("div",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8",children:e("div",{className:"bg-white overflow-hidden shadow-xl sm:rounded-lg",children:e("h2",{className:"py-6 text-xl pl-6",children:"You have no pending invitations."})})})})]})}export{H 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.