PageSourceSearch

https://driftgolf-qa.netlify.app/assets/TournamentPlayerPage-cfbedc53.js

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

1import{d as a,a as r,j as e}from"./index-4ce00ee7.js";import{g as l}from"./index-7de85521.js";import{t as n}from"./index-51f3a61d.js";import{b as c,a as d}from"./formatters-cb9ccf71.js";const u=l`
2  mutation DeleteTournamentPlayerMutation($id: String!) {
3    deleteTournamentPlayer(id: $id) {
4      id
5    }
6  }
7`,h=({tournamentPlayer:t})=>{const[i]=a.useMutation(u,{onCompleted:()=>{n.toast.success("TournamentPlayer deleted"),r.navigate(r.routes.tournamentPlayers())},onError:s=>{n.toast.error(s.message)}}),o=s=>{confirm("Are you sure you want to delete tournamentPlayer "+s+"?")&&i({variables:{id:s}})};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rw-segment",children:[e.jsx("header",{className:"rw-segment-header",children:e.jsxs("h2",{className:"rw-heading rw-heading-secondary",children:["TournamentPlayer ",t.id," Detail"]})}),e.jsx("table",{className:"rw-table",children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Id"}),e.jsx("td",{children:t.id})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Golf club id"}),e.jsx("td",{children:t.golfClubId})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Tournament id"}),e.jsx("td",{children:t.tournamentId})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Gameplay user id"}),e.jsx("td",{children:t.gameplayUserId})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Player status"}),e.jsx("td",{children:c(t.playerStatus)})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Created at"}),e.jsx("td",{children:d(t.createdAt)})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Updated at"}),e.jsx("td",{children:d(t.updatedAt)})]})]})})]}),e.jsxs("nav",{className:"rw-button-group",children:[e.jsx(r.Link,{to:r.routes.editTournamentPlayer({id:t.id}),className:"rw-button rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",className:"rw-button rw-button-red",onClick:()=>o(t.id),children:"Delete"})]})]})},m=l`
8  query FindTournamentPlayerById($id: String!) {
9    tournamentPlayer: tournamentPlayer(id: $id) {
10      id
11      golfClubId
12      tournamentId
13      gameplayUserId
14      playerStatus
15      active
16      createdAt
17      updatedAt
18    }
19  }
20`,x=()=>e.jsx("div",{children:"Loading..."}),j=()=>e.jsx("div",{children:"TournamentPlayer not found"}),y=({error:t})=>e.jsx("div",{className:"rw-cell-error",children:t==null?void 0:t.message}),g=({tournamentPlayer:t})=>e.jsx(h,{tournamentPlayer:t}),p=a.createCell({QUERY:m,Loading:x,Empty:j,Failure:y,Success:g,displayName:"TournamentPlayerCell"}),E=({id:t})=>e.jsx(p,{id: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.