PageSourceSearch

https://driftgolf-qa.netlify.app/assets/EditTournamentHandicapTypePage-519703ff.js

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

1import{d,j as e,a as n}from"./index-4ce00ee7.js";import{g as s}from"./index-7de85521.js";import{t as i}from"./index-51f3a61d.js";import{T as u}from"./TournamentHandicapTypeForm-f73f08d0.js";import"./index-e629a575.js";const T=s`
2  query EditTournamentHandicapTypeById($id: String!) {
3    tournamentHandicapType: tournamentHandicapType(id: $id) {
4      id
5      name
6      description
7      useHandicap
8      handicapMax
9      active
10      createdAt
11      updatedAt
12    }
13  }
14`,l=s`
15  mutation UpdateTournamentHandicapTypeMutation(
16    $id: String!
17    $input: UpdateTournamentHandicapTypeInput!
18  ) {
19    updateTournamentHandicapType(id: $id, input: $input) {
20      id
21      name
22      description
23      useHandicap
24      handicapMax
25      active
26      createdAt
27      updatedAt
28    }
29  }
30`,g=()=>e.jsx("div",{children:"Loading..."}),x=({error:a})=>e.jsx("div",{className:"rw-cell-error",children:a==null?void 0:a.message}),h=({tournamentHandicapType:a})=>{const[r,{loading:o,error:c}]=d.useMutation(l,{onCompleted:()=>{i.toast.success("TournamentHandicapType updated"),n.navigate(n.routes.tournamentHandicapTypes())},onError:t=>{i.toast.error(t.message)}}),p=(t,m)=>{r({variables:{id:m,input:t}})};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 TournamentHandicapType ",a==null?void 0:a.id]})}),e.jsx("div",{className:"rw-segment-main",children:e.jsx(u,{tournamentHandicapType:a,onSave:p,error:c,loading:o})})]})},y=d.createCell({QUERY:T,Loading:g,Failure:x,Success:h,displayName:"EditTournamentHandicapTypeCell"}),A=({id:a})=>e.jsx(y,{id:a});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.