PageSourceSearch

https://driftgolf-qa.netlify.app/assets/GolfClubPage-096c0975.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:39 UTC 3,976 bytes, 33 lines download raw bytes

1import{d as n,a as r,j as e}from"./index-4ce00ee7.js";import{g as c}from"./index-7de85521.js";import{t as d}from"./index-51f3a61d.js";import{b as a,c as o,a as i}from"./formatters-cb9ccf71.js";const x=c`
2  mutation DeleteGolfClubMutation($id: String!) {
3    deleteGolfClub(id: $id) {
4      id
5    }
6  }
7`,j=({golfClub:s})=>{const[l]=n.useMutation(x,{onCompleted:()=>{d.toast.success("GolfClub deleted"),r.navigate(r.routes.golfClubs())},onError:t=>{d.toast.error(t.message)}}),h=t=>{confirm("Are you sure you want to delete golfClub "+t+"?")&&l({variables:{id:t}})};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:["GolfClub ",s.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:s.id})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Name"}),e.jsx("td",{children:s.name})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Address1"}),e.jsx("td",{children:s.address1})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Address2"}),e.jsx("td",{children:s.address2})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"City"}),e.jsx("td",{children:s.city})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"State province"}),e.jsx("td",{children:s.stateProvince})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Country"}),e.jsx("td",{children:s.country})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Postal code"}),e.jsx("td",{children:s.postalCode})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Phone number"}),e.jsx("td",{children:s.phoneNumber})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Website"}),e.jsx("td",{children:s.website})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hole count"}),e.jsx("td",{children:s.holeCount})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Course type"}),e.jsx("td",{children:a(s.courseType)})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Latitude"}),e.jsx("td",{children:s.latitude})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Longitude"}),e.jsx("td",{children:s.longitude})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Drift enabled"}),e.jsx("td",{children:o(s.driftEnabled)})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Course Description"}),e.jsx("td",{children:s.courseDescription})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Course Start Message Title"}),e.jsx("td",{children:s.courseStartMessageTitle})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Course Start Message Description"}),e.jsx("td",{children:s.courseStartMessageDescription})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Created at"}),e.jsx("td",{children:i(s.createdAt)})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Updated at"}),e.jsx("td",{children:i(s.updatedAt)})]})]})})]}),e.jsxs("nav",{className:"rw-button-group",children:[e.jsx(r.Link,{to:r.routes.editGolfClub({id:s.id}),className:"rw-button rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",className:"rw-button rw-button-red",onClick:()=>h(s.id),children:"Delete"})]})]})},u=c`
8  query FindGolfClubById($id: String!) {
9    golfClub: golfClub(id: $id) {
10      id
11      name
12      address1
13      address2
14      city
15      stateProvince
16      country
17      postalCode
18      phoneNumber
19      website
20      holeCount
21      courseType
22      latitude
23      longitude
24      driftEnabled
25      courseDescription
26      courseStartMessageTitle
27      courseStartMessageDescription
28      active
29      createdAt
30      updatedAt
31    }
32  }
33`,m=()=>e.jsx("div",{children:"Loading..."}),p=()=>e.jsx("div",{children:"GolfClub not found"}),y=({error:s})=>e.jsx("div",{className:"rw-cell-error",children:s==null?void 0:s.message}),b=({golfClub:s})=>e.jsx(j,{golfClub:s}),w=n.createCell({QUERY:u,Loading:m,Empty:p,Failure:y,Success:b,displayName:"GolfClubCell"}),E=({id:s})=>e.jsx(w,{id:s});export{E 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.