PageSourceSearch

https://driftgolf-qa.netlify.app/assets/EditFoodbevItemPage-7544ee41.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:23 UTC 1,669 bytes, 34 lines download raw bytes

1import{d as a,j as t,a as d}from"./index-4ce00ee7.js";import{g as i}from"./index-7de85521.js";import{t as s}from"./index-51f3a61d.js";import{F as p}from"./FoodbevItemForm-2270d093.js";import"./index-e629a575.js";import"./GolfClubHooks-443ca383.js";const u=i`
2  query EditFoodbevItemById($id: String!) {
3    foodbevItem: foodbevItem(id: $id) {
4      id
5      golfClubId
6      foodbevCategoryId
7      name
8      description
9      price
10      inStock
11      active
12      createdAt
13      updatedAt
14    }
15  }
16`,g=i`
17  mutation MutationUpdateFoodbevItemMutation(
18    $id: String!
19    $input: UpdateFoodbevItemInput!
20  ) {
21    updateFoodbevItem(id: $id, input: $input) {
22      id
23      golfClubId
24      foodbevCategoryId
25      name
26      description
27      price
28      inStock
29      active
30      createdAt
31      updatedAt
32    }
33  }
34`,v=()=>t.jsx("div",{children:"Loading..."}),I=({error:e})=>t.jsx("div",{className:"rw-cell-error",children:e==null?void 0:e.message}),F=({foodbevItem:e})=>{const[n,{loading:r,error:c}]=a.useMutation(g,{onCompleted:()=>{s.toast.success("FoodbevItem updated"),d.navigate(d.routes.foodbevItems())},onError:o=>{s.toast.error(o.message)}}),m=(o,l)=>{n({variables:{id:l,input:o}})};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 FoodbevItem ",e==null?void 0:e.id]})}),t.jsx("div",{className:"rw-segment-main",children:t.jsx(p,{foodbevItem:e,onSave:m,error:c,loading:r})})]})},b=a.createCell({QUERY:u,Loading:v,Failure:I,Success:F,displayName:"EditFoodbevItemCell"}),N=({id:e})=>t.jsx(b,{id:e});export{N 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.