1import{d as l,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 n,a as i}from"./formatters-cb9ccf71.js";const x=c` 2 mutation DeleteGameplayUserMutation($id: String!) { 3 deleteGameplayUser(id: $id) { 4 id 5 } 6 } 7`,j=({gameplayUser:t})=>{const[a]=l.useMutation(x,{onCompleted:()=>{d.toast.success("GameplayUser deleted"),r.navigate(r.routes.gameplayUsers())},onError:s=>{d.toast.error(s.message)}}),h=s=>{confirm("Are you sure you want to delete gameplayUser "+s+"?")&&a({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:["Gameplay User ",t.email," 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:"First name"}),e.jsx("td",{children:t.firstName})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Last name"}),e.jsx("td",{children:t.lastName})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Email"}),e.jsx("td",{children:t.email})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Username"}),e.jsx("td",{children:t.username})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Birth year"}),e.jsx("td",{children:t.birthYear})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Club 150yds"}),e.jsx("td",{children:n(t.club150yard)})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"City"}),e.jsx("td",{children:t.city})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"State province"}),e.jsx("td",{children:t.stateProvince})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Country"}),e.jsx("td",{children:t.country})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Handedness"}),e.jsx("td",{children:t.handedness})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Gender"}),e.jsx("td",{children:t.gender})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Handicap"}),e.jsx("td",{children:t.handicap})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Ball flight"}),e.jsx("td",{children:n(t.ballFlight)})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Role"}),e.jsx("td",{children:t.role})]}),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(r.Link,{to:r.routes.editGameplayUser({id:t.id}),className:"rw-button rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",className:"rw-button rw-button-red",onClick:()=>h(t.id),children:"Delete"})]})]})},o=c` 8 query FindGameplayUserById($id: String!) { 9 gameplayUser: gameplayUser(id: $id) { 10 id 11 firstName 12 lastName 13 email 14 username 15 birthYear 16 club150yard 17 city 18 stateProvince 19 country 20 hashedPassword 21 salt 22 resetToken 23 resetTokenExpiresAt 24 handedness 25 gender 26 handicap 27 ballFlight 28 role 29 active 30 createdAt 31 updatedAt 32 } 33 } 34`,m=()=>e.jsx("div",{children:"Loading..."}),u=()=>e.jsx("div",{children:"GameplayUser not found"}),b=({error:t})=>e.jsx("div",{className:"rw-cell-error",children:t==null?void 0:t.message}),p=({gameplayUser:t})=>e.jsx(j,{gameplayUser:t}),y=l.createCell({QUERY:o,Loading:m,Empty:u,Failure:b,Success:p,displayName:"GameplayUserCell"}),f=({id:t})=>e.jsx(y,{id:t});export{f 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.