1import{e as l,j as t,T as m,C as i,i as u,B as c}from"./app-C1UQ6lHS.js";import{B as x}from"./Blocks-CeWFqQac.js";import{E as p}from"./Empty-D3OMI2as.js";import{F as s}from"./Table-CfZOP1Kk.js";import"./index-DHa_bH3j.js";import"./index-BLB4NNlZ.js";import"./useBubbleLock-JZQbFiWG.js";import"./index-CSAFN5p-.js";import"./Input-fK7TMx3P.js";const{Title:o}=m;function w(d){const{submissions:e,invitations:r}=d,{formatDate:a}=l();return t.jsx(t.Fragment,{children:t.jsxs(x,{children:[t.jsx(o,{level:2,children:"Inviti"}),r&&r.length>0&&t.jsx(t.Fragment,{children:t.jsx(s,{rowKey:"id",pagination:!1,dataSource:r,columns:[{key:"name",dataIndex:["survey","name"],title:"Questionario"},{key:"created_at",dataIndex:"created_at",title:"Invitato il",render:i.datetime(a)},{key:"user",dataIndex:["user","name"],title:"Invitato da"},{key:"started_at",dataIndex:"started_at",title:"Iniziato il",render:i.datetime(a)},{key:"$btn",render:(y,n)=>t.jsx(u,{children:t.jsx(c,{icon:"view",href:route("user.survey.invitation.answer",{id:n.survey.id,answer:!0}),children:n.started_at?"Continua":"Accetta"})})}]})}),t.jsx(o,{level:2,children:"Compilazioni"}),e&&e.length>0&&t.jsx(t.Fragment,{children:t.jsx(s,{rowKey:"id",pagination:!1,dataSource:e,columns:[{key:"name",dataIndex:["survey","name"],title:"Questionario"},{key:"started_at",dataIndex:"started_at",title:"Iniziato il",render:i.datetime(a)},{key:"submitted_at",dataIndex:"submitted_at",title:"Completato il",render:i.datetime(a)}]})}),e.length===0&&t.jsx(p,{text:"Nessun questionario compilato"})]})})}export{w 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.