PageSourceSearch

https://driftgolf-qa.netlify.app/assets/EditFoodbevCategoryPage-1a114fa1.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:18 UTC 1,609 bytes, 28 lines download raw bytes

1import{d as s,j as t,a}from"./index-4ce00ee7.js";import{g as i}from"./index-7de85521.js";import{t as d}from"./index-51f3a61d.js";import{F as g}from"./FoodbevCategoryForm-e9d58680.js";import"./index-e629a575.js";import"./GolfClubHooks-443ca383.js";const p=i`
2  query EditFoodbevCategoryById($id: String!) {
3    foodbevCategory: foodbevCategory(id: $id) {
4      id
5      golfClubId
6      name
7      description
8      active
9      createdAt
10      updatedAt
11    }
12  }
13`,u=i`
14  mutation UpdateFoodbevCategoryMutation(
15    $id: String!
16    $input: UpdateFoodbevCategoryInput!
17  ) {
18    updateFoodbevCategory(id: $id, input: $input) {
19      id
20      golfClubId
21      name
22      description
23      active
24      createdAt
25      updatedAt
26    }
27  }
28`,v=()=>t.jsx("div",{children:"Loading..."}),C=({error:e})=>t.jsx("div",{className:"rw-cell-error",children:e==null?void 0:e.message}),F=({foodbevCategory:e})=>{const[r,{loading:n,error:c}]=s.useMutation(u,{onCompleted:()=>{d.toast.success("FoodbevCategory updated"),a.navigate(a.routes.foodbevCategories())},onError:o=>{d.toast.error(o.message)}}),l=(o,m)=>{r({variables:{id:m,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 FoodbevCategory ",e==null?void 0:e.id]})}),t.jsx("div",{className:"rw-segment-main",children:t.jsx(g,{foodbevCategory:e,onSave:l,error:c,loading:n})})]})},b=s.createCell({QUERY:p,Loading:v,Failure:C,Success:F,displayName:"EditFoodbevCategoryCell"}),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.