PageSourceSearch

https://driftgolf-qa.netlify.app/assets/TournamentFormatPage-d4e8147a.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:41:29 UTC 2,256 bytes, 18 lines download raw bytes

1import{d,a as r,j as e}from"./index-4ce00ee7.js";import{g as i}from"./index-7de85521.js";import{t as n}from"./index-51f3a61d.js";import{a}from"./formatters-cb9ccf71.js";const l=i`
2  mutation DeleteTournamentFormatMutation($id: String!) {
3    deleteTournamentFormat(id: $id) {
4      id
5    }
6  }
7`,m=({tournamentFormat:t})=>{const[o]=d.useMutation(l,{onCompleted:()=>{n.toast.success("TournamentFormat deleted"),r.navigate(r.routes.tournamentFormats())},onError:s=>{n.toast.error(s.message)}}),c=s=>{confirm("Are you sure you want to delete tournamentFormat "+s+"?")&&o({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:["TournamentFormat ",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:"Name"}),e.jsx("td",{children:t.name})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Description"}),e.jsx("td",{children:t.description})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Created at"}),e.jsx("td",{children:a(t.createdAt)})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Updated at"}),e.jsx("td",{children:a(t.updatedAt)})]})]})})]}),e.jsxs("nav",{className:"rw-button-group",children:[e.jsx(r.Link,{to:r.routes.editTournamentFormat({id:t.id}),className:"rw-button rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",className:"rw-button rw-button-red",onClick:()=>c(t.id),children:"Delete"})]})]})},u=i`
8  query FindTournamentFormatById($id: String!) {
9    tournamentFormat: tournamentFormat(id: $id) {
10      id
11      name
12      description
13      active
14      createdAt
15      updatedAt
16    }
17  }
18`,h=()=>e.jsx("div",{children:"Loading..."}),x=()=>e.jsx("div",{children:"TournamentFormat not found"}),j=({error:t})=>e.jsx("div",{className:"rw-cell-error",children:t==null?void 0:t.message}),T=({tournamentFormat:t})=>e.jsx(m,{tournamentFormat:t}),p=d.createCell({QUERY:u,Loading:h,Empty:x,Failure:j,Success:T,displayName:"TournamentFormatCell"}),w=({id:t})=>e.jsx(p,{id:t});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.