1import{d as o,j as e,a as i}from"./index-4ce00ee7.js";import{g as a}from"./index-7de85521.js";import{t as r}from"./index-51f3a61d.js";import{t as n}from"./formatters-cb9ccf71.js";const u=a` 2 mutation DeleteTournamentCompetitionTypeMutation($id: String!) { 3 deleteTournamentCompetitionType(id: $id) { 4 id 5 } 6 } 7`,d=({tournamentCompetitionTypes:s})=>{const[c]=o.useMutation(u,{onCompleted:()=>{r.toast.success("TournamentCompetitionType deleted")},onError:t=>{r.toast.error(t.message)},refetchQueries:[{query:l}],awaitRefetchQueries:!0}),m=t=>{confirm("Are you sure you want to delete tournamentCompetitionType "+t+"?")&&c({variables:{id:t}})};return e.jsx("div",{className:"rw-segment rw-table-wrapper-responsive",children:e.jsxs("table",{className:"rw-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Id"}),e.jsx("th",{children:"Name"}),e.jsx("th",{children:"Description"}),e.jsx("th",{children:"Â "})]})}),e.jsx("tbody",{children:s.map(t=>e.jsxs("tr",{children:[e.jsx("td",{children:n(t.id)}),e.jsx("td",{children:n(t.name)}),e.jsx("td",{children:n(t.description)}),e.jsx("td",{children:e.jsxs("nav",{className:"rw-table-actions",children:[e.jsx(i.Link,{to:i.routes.tournamentCompetitionType({id:t.
7id}),title:"Show tournamentCompetitionType "+t.id+" detail",className:"rw-button rw-button-small",children:"Show"}),e.jsx(i.Link,{to:i.routes.editTournamentCompetitionType({id:t.id}),title:"Edit tournamentCompetitionType "+t.id,className:"rw-button rw-button-small rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",title:"Delete tournamentCompetitionType "+t.id,className:"rw-button rw-button-small rw-button-red",onClick:()=>m(t.id),children:"Delete"})]})})]},t.id))})]})})},l=a` 8 query FindTournamentCompetitionTypes { 9 tournamentCompetitionTypes { 10 id 11 name 12 description 13 active 14 createdAt 15 updatedAt 16 } 17 } 18`,p=()=>e.jsx("div",{children:"Loading..."}),h=({tournamentCompetitionTypes:s})=>e.jsx(d,{tournamentCompetitionTypes:s}),x=({error:s})=>e.jsx("div",{className:"rw-cell-error",children:s==null?void 0:s.message}),j=({tournamentCompetitionTypes:s})=>e.jsx(d,{tournamentCompetitionTypes:s}),T=o.createCell({QUERY:l,Loading:p,Empty:h,Failure:x,Success:j,displayName:"TournamentCompetitionTypesCell"}),E=()=>e.jsx(T,{});export{E 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.