PageSourceSearch

https://driftgolf-qa.netlify.app/assets/GolfClubTeeBoxesPage-6489cef5.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:48 UTC 3,160 bytes, 31 lines download raw bytes

1import{d,j as t,a as i}from"./index-4ce00ee7.js";import{g as a}from"./index-7de85521.js";import{t as n}from"./index-51f3a61d.js";import{t as r}from"./formatters-cb9ccf71.js";const x=a`
2  mutation DeleteGolfClubTeeBoxMutation($id: String!) {
3    deleteGolfClubTeeBox(id: $id) {
4      id
5    }
6  }
7`,c=({golfClubTeeBoxes:s})=>{const[h]=d.useMutation(x,{onCompleted:()=>{n.toast.success("GolfClubTeeBox deleted")},onError:e=>{n.toast.error(e.message)},refetchQueries:[{query:o}],awaitRefetchQueries:!0}),u=e=>{confirm("Are you sure you want to delete golfClubTeeBox "+e+"?")&&h({variables:{id:e}})};return t.jsx("div",{className:"rw-segment rw-table-wrapper-responsive",children:t.jsxs("table",{className:"rw-table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Golf Club"}),t.jsx("th",{children:"Tee type"}),t.jsx("th",{children:"Colour"}),t.jsx("th",{children:"Distance total"}),t.jsx("th",{children:"Distance front"}),t.jsx("th",{children:"Distance back"}),t.jsx("th",{children:"Par total"}),t.jsx("th",{children:"Par front"}),t.jsx("th",{children:"Par back"}),t.jsx("th",{children:"Slope"}),t.jsx("th",{children:"Rating"}),t.jsx("th",{children:" "})]})}),t.jsx("tbody",{children:s.map(e=>{var l;return t.jsxs("tr",{children:[t.jsx("td",{children:r((l=e.GolfClub)==null?void 0:l.name)}),t.jsx("td",{children:r(e.teeType)}),t.jsx("td",{children:r(e.colour)}),t.jsx("td",{children:r(e.distanceTotal)}),t.jsx("td",{children:r(e.distanceFront)}),t.jsx("td",{children:r(e.distanceBack)}),t.jsx("td",{children:r(e.parTotal)}),t.jsx("td",{children:r(e.parFront)}),t.jsx("td",{children:r(e.parBack)}),t.jsx("td",{children:r(e.slope)}),t.jsx("td",{children:r(e.rating)}),t.jsx("td",{children:t.jsxs("nav",{className:"rw-table-actions",children:[t.jsx(i.Link,{to:i.routes.golfClubTeeBoxHoles({id:e.id}),title:"Show holes",className:"rw-button rw-button-small",children:"Holes"}),t.jsx(i.Link,{to:i.routes.golfClubTeeBox({id:e.id}),title:"Show golfClubTeeBox "+e.id+" detail",className:"rw-button rw-button-small",children:"Show"}),t.jsx(i.Link,{to:i.routes.editGolfClubTeeBox({id:e.id}),title:"Edit golfClubTeeBox "+e.id,className:"rw-button rw-button-small rw-button-blue",children:"Edit"}),t.jsx("button",{type:"button",title:"Delete golfClubTeeBox "+e.id,className:"rw-button rw-button-small rw-button-red",onClick:()=>u(e.id),children:"Delete"})]})})]},e.id)})})]})})},o=a`
8  query FindGolfClubTeeBoxes($id: String!) {
9    golfClubTeeBoxes(id: $id) {
10      id
11      golfClubId
12      teeType
13      colour
14      distanceTotal
15      distanceFront
16      distanceBack
17      parTotal
18      parFront
19      parBack
20      slope
21      rating
22      active
23      createdAt
24      updatedAt
25      GolfClub {
26        id
27        name
28      }
29    }
30  }
31`,j=()=>t.jsx("div",{children:"Loading..."}),m=({golfClubTeeBoxes:s})=>t.jsx(c,{golfClubTeeBoxes:s}),p=({error:s})=>t.jsx("div",{className:"rw-cell-error",children:s==null?void 0:s.message}),b=({golfClubTeeBoxes:s})=>t.jsx(c,{golfClubTeeBoxes:s}),w=d.createCell({QUERY:o,Loading:j,Empty:m,Failure:p,Success:b,displayName:"GolfClubTeeBoxesCell"}),y=({id:s})=>t.jsx(w,{id:s});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.