PageSourceSearch

https://driftgolf-qa.netlify.app/assets/TournamentHandicapTypesPage-86b32656.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:41:33 UTC 2,490 bytes, 20 lines download raw bytes

1import{d,j as e,a as n}from"./index-4ce00ee7.js";import{g as r}from"./index-7de85521.js";import{t as i}from"./index-51f3a61d.js";import{t as a,c as h}from"./formatters-cb9ccf71.js";const m=r`
2  mutation DeleteTournamentHandicapTypeMutation($id: String!) {
3    deleteTournamentHandicapType(id: $id) {
4      id
5    }
6  }
7`,c=({tournamentHandicapTypes:s})=>{const[o]=d.useMutation(m,{onCompleted:()=>{i.toast.success("TournamentHandicapType deleted")},onError:t=>{i.toast.error(t.message)},refetchQueries:[{query:l}],awaitRefetchQueries:!0}),u=t=>{confirm("Are you sure you want to delete tournamentHandicapType "+t+"?")&&o({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:"Use handicap"}),e.jsx("th",{children:"Handicap max"}),e.jsx("th",{children:" "})]})}),e.jsx("tbody",{children:s.map(t=>e.jsxs("tr",{children:[e.jsx("td",{children:a(t.id)}),e.jsx("td",{children:a(t.name)}),e.jsx("td",{children:a(t.description)}),e.jsx("td",{children:h(t.useHandicap)}),e.jsx("td",{children:a(t.handicapMax)}),e.jsx("td",{children:e.jsxs("nav",{className:"rw-table-actions",children:[e.jsx(n.Link,{to:n.routes.tournamentHandicapType({id:t.id}),title:"Show tournamentHandicapType "+t.id+" detail",className:"rw-button rw-button-small",children:"Show"}),e.jsx(n.Link,{to:n.routes.editTournamentHandicapType({id:t.id}),title:"Edit tournamentHandicapType "+t.id,className:"rw-button rw-button-small rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",title:"Delete tournamentHandicapType "+t.id,className:"rw-button rw-button-small rw-button-red",onClick:()=>u(t.id),children:"Delete"})]})})]},t.id))})]})})},l=r`
8  query FindTournamentHandicapTypes {
9    tournamentHandicapTypes {
10      id
11      name
12      description
13      useHandicap
14      handicapMax
15      active
16      createdAt
17      updatedAt
18    }
19  }
20`,p=()=>e.jsx("div",{children:"Loading..."}),x=({tournamentHandicapTypes:s})=>e.jsx(c,{tournamentHandicapTypes:s}),j=({error:s})=>e.jsx("div",{className:"rw-cell-error",children:s==null?void 0:s.message}),T=({tournamentHandicapTypes:s})=>e.jsx(c,{tournamentHandicapTypes:s}),b=d.createCell({QUERY:l,Loading:p,Empty:x,Failure:j,Success:T,displayName:"TournamentHandicapTypesCell"}),g=()=>e.jsx(b,{});export{g 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.