PageSourceSearch

https://driftgolf-qa.netlify.app/assets/GolfClubTeeBoxHolePage-6147d4f5.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:50 UTC 3,019 bytes, 25 lines download raw bytes

1import{d as n,a as d,j as e}from"./index-4ce00ee7.js";import{g as l}from"./index-7de85521.js";import{t as r}from"./index-51f3a61d.js";import{a as i}from"./formatters-cb9ccf71.js";const o=l`
2  mutation DeleteGolfClubTeeBoxHoleMutation($id: String!) {
3    deleteGolfClubTeeBoxHole(id: $id) {
4      id
5    }
6  }
7`,h=({golfClubTeeBoxHole:t})=>{const[c]=n.useMutation(o,{onCompleted:()=>{r.toast.success("GolfClubTeeBoxHole deleted"),d.navigate(d.routes.golfClubTeeBoxHoles())},onError:s=>{r.toast.error(s.message)}}),a=s=>{confirm("Are you sure you want to delete golfClubTeeBoxHole "+s+"?")&&c({variables:{id:s}})};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rw-segment",children:[e.jsx("header",{className:"rw-segment-header",children:e.jsxs("h2",{className:"rw-heading rw-heading-secondary",children:["GolfClubTeeBoxHole ",t.id," Detail"]})}),e.jsx("table",{className:"rw-table",children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Id"}),e.jsx("td",{children:t.id})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Golf club id"}),e.jsx("td",{children:t.golfClubId})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Teebox id"}),e.jsx("td",{children:t.teeboxId})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hole number"}),e.jsx("td",{children:t.holeNumber})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Par"}),e.jsx("td",{children:t.par})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Handicap"}),e.jsx("td",{children:t.handicap})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Distance"}),e.jsx("td",{children:t.distance})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Teebox latitude"}),e.jsx("td",{children:t.teeboxLatitude})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Teebox longitude"}),e.jsx("td",{children:t.teeboxLongitude})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Created at"}),e.jsx("td",{children:i(t.createdAt)})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Updated at"}),e.jsx("td",{children:i(t.updatedAt)})]})]})})]}),e.jsxs("nav",{className:"rw-button-group",children:[e.jsx(d.Link,{to:d.routes.editGolfClubTeeBoxHole({id:t.id}),className:"rw-button rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",className:"rw-button rw-button-red",onClick:()=>a(t.id),children:"Delete"})]})]})},x=l`
8  query FindGolfClubTeeBoxHoleById($id: String!) {
9    golfClubTeeBoxHole: golfClubTeeBoxHole(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    }
24  }
25`,j=()=>e.jsx("div",{children:"Loading..."}),u=()=>e.jsx("div",{children:"GolfClubTeeBoxHole not found"}),m=({error:t})=>e.jsx("div",{className:"rw-cell-error",children:t==null?void 0:t.message}),b=({golfClubTeeBoxHole:t})=>e.jsx(h,{golfClubTeeBoxHole:t}),p=n.createCell({QUERY:x,Loading:j,Empty:u,Failure:m,Success:b,displayName:"GolfClubTeeBoxHoleCell"}),w=({id:t})=>e.jsx(p,{id:t});export{w 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.