PageSourceSearch

https://driftgolf-qa.netlify.app/assets/EditTournamentPayoutTypePage-6ba0b15b.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:41:34 UTC 1,608 bytes, 26 lines download raw bytes

1import{d as o,j as e,a as s}from"./index-4ce00ee7.js";import{g as i}from"./index-7de85521.js";import{t as n}from"./index-51f3a61d.js";import{T as p}from"./TournamentPayoutTypeForm-3995c72a.js";import"./index-e629a575.js";const T=i`
2  query EditTournamentPayoutTypeById($id: String!) {
3    tournamentPayoutType: tournamentPayoutType(id: $id) {
4      id
5      name
6      description
7      active
8      createdAt
9      updatedAt
10    }
11  }
12`,l=i`
13  mutation UpdateTournamentPayoutTypeMutation(
14    $id: String!
15    $input: UpdateTournamentPayoutTypeInput!
16  ) {
17    updateTournamentPayoutType(id: $id, input: $input) {
18      id
19      name
20      description
21      active
22      createdAt
23      updatedAt
24    }
25  }
26`,y=()=>e.jsx("div",{children:"Loading..."}),g=({error:t})=>e.jsx("div",{className:"rw-cell-error",children:t==null?void 0:t.message}),P=({tournamentPayoutType:t})=>{const[d,{loading:r,error:u}]=o.useMutation(l,{onCompleted:()=>{n.toast.success("TournamentPayoutType updated"),s.navigate(s.routes.tournamentPayoutTypes())},onError:a=>{n.toast.error(a.message)}}),m=(a,c)=>{d({variables:{id:c,input:a}})};return 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:["Edit TournamentPayoutType ",t==null?void 0:t.id]})}),e.jsx("div",{className:"rw-segment-main",children:e.jsx(p,{tournamentPayoutType:t,onSave:m,error:u,loading:r})})]})},x=o.createCell({QUERY:T,Loading:y,Failure:g,Success:P,displayName:"EditTournamentPayoutTypeCell"}),A=({id:t})=>e.jsx(x,{id:t});export{A 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.