PageSourceSearch

https://driftgolf-qa.netlify.app/assets/EditScorecardEventPage-084b7d6a.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:57 UTC 1,632 bytes, 30 lines download raw bytes

1import{d as s,j as t,a as d}from"./index-4ce00ee7.js";import{g as n}from"./index-7de85521.js";import{t as r}from"./index-51f3a61d.js";import{S as u}from"./ScorecardEventForm-75ce8bc2.js";import"./index-e629a575.js";const E=n`
2  query EditScorecardEventById($id: String!) {
3    scorecardEvent: scorecardEvent(id: $id) {
4      id
5      golfclubId
6      scorecardId
7      gameplayUserId
8      tournamentEventId
9      active
10      createdAt
11      updatedAt
12    }
13  }
14`,p=n`
15  mutation UpdateScorecardEventMutation(
16    $id: String!
17    $input: UpdateScorecardEventInput!
18  ) {
19    updateScorecardEvent(id: $id, input: $input) {
20      id
21      golfclubId
22      scorecardId
23      gameplayUserId
24      tournamentEventId
25      active
26      createdAt
27      updatedAt
28    }
29  }
30`,g=()=>t.jsx("div",{children:"Loading..."}),v=({error:e})=>t.jsx("div",{className:"rw-cell-error",children:e==null?void 0:e.message}),S=({scorecardEvent:e})=>{const[c,{loading:i,error:o}]=s.useMutation(p,{onCompleted:()=>{r.toast.success("ScorecardEvent updated"),d.navigate(d.routes.scorecardEvents())},onError:a=>{r.toast.error(a.message)}}),l=(a,m)=>{c({variables:{id:m,input:a}})};return t.jsxs("div",{className:"rw-segment",children:[t.jsx("header",{className:"rw-segment-header",children:t.jsxs("h2",{className:"rw-heading rw-heading-secondary",children:["Edit ScorecardEvent ",e==null?void 0:e.id]})}),t.jsx("div",{className:"rw-segment-main",children:t.jsx(u,{scorecardEvent:e,onSave:l,error:o,loading:i})})]})},x=s.createCell({QUERY:E,Loading:g,Failure:v,Success:S,displayName:"EditScorecardEventCell"}),A=({id:e})=>t.jsx(x,{id:e});export{A 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.