1import{d as s,j as t,a as d}from"./index-4ce00ee7.js";import{g as o}from"./index-7de85521.js";import{t as r}from"./index-51f3a61d.js";import{S as m}from"./ScorecardHoleForm-c46977a3.js";import"./index-e629a575.js";const p=o` 2 query EditScorecardHoleById($id: String!) { 3 scorecardHole: scorecardHole(id: $id) { 4 id 5 scorecardId 6 gameplayUserId 7 golfclubId 8 teeboxId 9 teeboxholeId 10 score 11 netScore 12 putts 13 fairway 14 sand 15 gir 16 teeClub 17 active 18 createdAt 19 updatedAt 20 } 21 } 22`,g=o` 23 mutation UpdateScorecardHoleMutation( 24 $id: String! 25 $input: UpdateScorecardHoleInput! 26 ) { 27 updateScorecardHole(id: $id, input: $input) { 28 id 29 scorecardId 30 gameplayUserId 31 golfclubId 32 teeboxId 33 teeboxholeId 34 score 35 netScore 36 putts 37 fairway 38 sand 39 gir 40 teeClub 41 active 42 createdAt 43 updatedAt 44 } 45 } 46`,S=()=>t.jsx("div",{children:"Loading..."}),x=({error:e})=>t.jsx("div",{className:"rw-cell-error",children:e==null?void 0:e.message}),h=({scorecardHole:e})=>{const[c,{loading:i,error:l}]=s.useMutation(g,{onCompleted:()=>{r.toast.success("ScorecardHole updated"),d.navigate(d.routes.scorecardHoles())},onError:a=>{r.toast.error(a.message)}}),n=(a,u)=>{c({variables:{id:u,input:a}})};return t.jsxs("div",{className:"rw-segment",children:[t.jsx("header",{className:"rw-segment-header",children:t.jsxs("h2",{className:"rw-heading rw-heading-secondary",children:["Edit ScorecardHole ",e==null?void 0:e.id]})}),t.jsx("div",{className:"rw-segment-main",children:t.jsx(m,{scorecardHole:e,onSave:n,error:l,loading:i})})]})},I=s.createCell({QUERY:p,Loading:S,Failure:x,Success:h,displayName:"EditScorecardHoleCell"}),v=({id:e})=>t.jsx(I,{id:e});export{v 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.