1import{d as o,j as t,a}from"./index-4ce00ee7.js";import{g as d}from"./index-7de85521.js";import{t as i}from"./index-51f3a61d.js";import{G as p}from"./GolfClubForm-c18a0a46.js";import"./index-e629a575.js";const m=d` 2 query EditGolfClubById($id: String!) { 3 golfClub: golfClub(id: $id) { 4 id 5 name 6 address1 7 address2 8 city 9 stateProvince 10 country 11 postalCode 12 phoneNumber 13 website 14 holeCount 15 courseType 16 latitude 17 longitude 18 driftEnabled 19 courseDescription 20 courseStartMessageTitle 21 courseStartMessageDescription 22 active 23 createdAt 24 updatedAt 25 } 26 } 27`,g=d` 28 mutation UpdateGolfClubMutation($id: String!, $input: UpdateGolfClubInput!) { 29 updateGolfClub(id: $id, input: $input) { 30 id 31 name 32 address1 33 address2 34 city 35 stateProvince 36 country 37 postalCode 38 phoneNumber 39 website 40 holeCount 41 courseType 42 latitude 43 longitude 44 driftEnabled 45 courseDescription 46 courseStartMessageTitle 47 courseStartMessageDescription 48 active 49 createdAt 50 updatedAt 51 } 52 } 53`,C=()=>t.jsx("div",{children:"Loading..."}),b=({error:e})=>t.jsx("div",{className:"rw-cell-error",children:e==null?void 0:e.message}),f=({golfClub:e})=>{const[r,{loading:n,error:l}]=o.useMutation(g,{onCompleted:()=>{i.toast.success("GolfClub updated"),a.navigate(a.routes.golfClubs())},onError:s=>{i.toast.error(s.message)}}),c=(s,u)=>{r({variables:{id:u,input:s}})};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 GolfClub ",e==null?void 0:e.id]})}),t.jsx("div",{className:"rw-segment-main",children:t.jsx(p,{golfClub:e,onSave:c,error:l,loading:n})})]})},h=o.createCell({QUERY:m,Loading:C,Failure:b,Success:f,displayName:"EditGolfClubCell"}),y=({id:e})=>t.jsx(h,{id:e});export{y 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.