PageSourceSearch

https://driftgolf-qa.netlify.app/assets/GolfClubTeeBoxHolesPage-ca52d40f.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:51 UTC 3,483 bytes, 42 lines download raw bytes

1import{d as s,j as e,a as l}from"./index-4ce00ee7.js";import{g as r}from"./index-7de85521.js";import{t as n}from"./index-51f3a61d.js";import{t as d}from"./formatters-cb9ccf71.js";const h=r`
2  mutation DeleteGolfClubTeeBoxHoleMutation($id: String!) {
3    deleteGolfClubTeeBoxHole(id: $id) {
4      id
5    }
6  }
7`,o=({golfClubTeeBoxHoles:i})=>{const[c]=s.useMutation(h,{onCompleted:()=>{n.toast.success("GolfClubTeeBoxHole deleted")},onError:t=>{n.toast.error(t.message)},refetchQueries:[{query:a}],awaitRefetchQueries:!0}),u=t=>{confirm("Are you sure you want to delete golfClubTeeBoxHole "+t+"?")&&c({variables:{id:t}})};return e.jsx("div",{className:"rw-segment rw-table-wrapper-responsive",children:e.jsxs("table",{className:"rw-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Golf Club"}),e.jsx("th",{children:"Teebox Type"}),e.jsx("th",{children:"Hole number"}),e.jsx("th",{children:"Par"}),e.jsx("th",{children:"Handicap men"}),e.jsx("th",{children:"Handicap women"}),e.jsx("th",{children:"Distance"}),e.jsx("th",{children:"Teebox latitude"}),e.jsx("th",{children:"Teebox longitude"}),e.jsx("th",{children:"Pin latitude"}),e.jsx("th",{children:"Pin longitude"}),e.jsx("th",{children:"Front latitude"}),e.jsx("th",{children:"Front longitude"}),e.jsx("th",{children:"Back latitude"}),e.jsx("th",{children:"Back longitude"}),e.jsx("th",{children:"Middle latitude"}),e.jsx("th",{children:"Middle longitude"}),e.jsx("th",{children:" "})]})}),e.jsx("tbody",{children:i.map(t=>e.jsxs("tr",{children:[e.jsx("td",{children:d(t.GolfClub.name)}),e.jsx("td",{children:d(t.GolfClubTeeBox.teeType)}),e.jsx("td",{children:d(t.holeNumber)}),e.jsx("td",{children:d(t.par)}),e.jsx("td",{children:d(t.handicap)}),e.jsx("td",{children:d(t.distance)}),e.jsx("td",{children:d(t.teeboxLatitude)}),e.jsx("td",{children:d(t.teeboxLongitude)}),e.jsx("td",{children:e.jsxs("nav",{className:"rw-table-actions",children:[e.jsx(l.Link,{to:l.routes.golfClubTeeBoxHole({id:t.id}),title:"Show golfClubTeeBoxHole "+t.id+" detail",className:"rw-button rw-button-small",children:"Show"}),e.jsx(l.Link,{to:l.routes.editGolfClubTeeBoxHole({id:t.id}),title:"Edit golfClubTeeBoxHole "+t.id,className:"rw-button rw-button-small rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",title:"Delete golfClubTeeBoxHole "+t.id,className:"rw-button rw-button-small rw-button-red",onClick:()=>u(t.id),children:"Delete"})]})})]},t.id))})]})})},a=r`
8  query FindGolfClubTeeBoxHoles($id: String!) {
9    golfClubTeeBoxHoles(id: $id) {
10      id
11      golfClubId
12      teeboxId
13      greenCoordinateId
14      holeNumber
15      par
16      handicap
17      distance
18      teeboxLatitude
19      teeboxLongitude
20      active
21      createdAt
22      updatedAt
23      GolfClub {
24        name
25      }
26      GolfClubTeeBox {
27        colour
28        teeType
29      }
30      GolfClubGreenCoordinate {
31        pinLatitude
32        pinLongitude
33        frontLatitude
34        frontLongitude
35        backLatitude
36        backLongitude
37        middleLatitude
38        middleLongitude
39      }
40    }
41  }
42`,x=()=>e.jsx("div",{children:"Loading..."}),j=({golfClubTeeBoxHoles:i})=>e.jsx(o,{golfClubTeeBoxHoles:i}),b=({error:i})=>e.jsx("div",{className:"rw-cell-error",children:i==null?void 0:i.message}),m=({golfClubTeeBoxHoles:i})=>e.jsx(o,{golfClubTeeBoxHoles:i}),p=s.createCell({QUERY:a,Loading:x,Empty:j,Failure:b,Success:m,displayName:"GolfClubTeeBoxHolesCell"}),G=({id:i})=>e.jsx(p,{id:i});export{G 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.