PageSourceSearch

https://driftgolf-qa.netlify.app/assets/EditGolfClubGreenCoordinatePage-5535a863.js

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

1import{d as a,j as t,a as i}from"./index-4ce00ee7.js";import{g as n}from"./index-7de85521.js";import{t as o}from"./index-51f3a61d.js";import{G as m}from"./GolfClubGreenCoordinateForm-60723098.js";import"./index-e629a575.js";const C=n`
2  query EditGolfClubGreenCoordinateById($id: String!) {
3    golfClubGreenCoordinate: golfClubGreenCoordinate(id: $id) {
4      id
5      golfClubId
6      holeNumber
7      pinLatitude
8      pinLongitude
9      frontLatitude
10      frontLongitude
11      backLatitude
12      backLongitude
13      middleLatitude
14      middleLongitude
15      active
16      createdAt
17      updatedAt
18    }
19  }
20`,p=n`
21  mutation UpdateGolfClubGreenCoordinateMutation(
22    $id: String!
23    $input: UpdateGolfClubGreenCoordinateInput!
24  ) {
25    updateGolfClubGreenCoordinate(id: $id, input: $input) {
26      id
27      golfClubId
28      holeNumber
29      pinLatitude
30      pinLongitude
31      frontLatitude
32      frontLongitude
33      backLatitude
34      backLongitude
35      middleLatitude
36      middleLongitude
37      active
38      createdAt
39      updatedAt
40    }
41  }
42`,g=()=>t.jsx("div",{children:"Loading..."}),G=({error:e})=>t.jsx("div",{className:"rw-cell-error",children:e==null?void 0:e.message}),f=({golfClubGreenCoordinate:e})=>{const[r,{loading:s,error:l}]=a.useMutation(p,{onCompleted:()=>{o.toast.success("GolfClubGreenCoordinate updated"),i.navigate(i.routes.golfClubGreenCoordinates())},onError:d=>{o.toast.error(d.message)}}),u=(d,c)=>{r({variables:{id:c,input:d}})};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 GolfClubGreenCoordinate ",e==null?void 0:e.id]})}),t.jsx("div",{className:"rw-segment-main",children:t.jsx(m,{golfClubGreenCoordinate:e,onSave:u,error:l,loading:s})})]})},L=a.createCell({QUERY:C,Loading:g,Failure:G,Success:f,displayName:"EditGolfClubGreenCoordinateCell"}),j=({id:e})=>t.jsx(L,{id:e});export{j 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.