1import{d as i,j as t,a}from"./index-4ce00ee7.js";import{g as o}from"./index-7de85521.js";import{S as r}from"./sweetalert2.all-2c1f30c7.js";import{C as m}from"./CourseConditionMain-59028e8a.js";import{u as g}from"./GolfClubHooks-443ca383.js";import"./index-e629a575.js";import"./Tooltip-b697ee1f.js";import"./trash-03bc5dcd.js";import"./RouteHandler-f8cc45bb.js";import"./not-found-a10d56df.js";import"./formatters-cb9ccf71.js";const n=o` 2 query FindGolfClubById($golfClubId: String!) { 3 golfClub: golfClub(id: $golfClubId) { 4 id 5 courseStartMessageTitle 6 courseStartMessageDescription 7 } 8 } 9`,f=o` 10 mutation updateGolfClubMutation($id: String!, $input: UpdateGolfClubInput!) { 11 updateGolfClub(id: $id, input: $input) { 12 id 13 courseStartMessageTitle 14 courseStartMessageDescription 15 } 16 } 17`,C=()=>t.jsx("div",{children:"Loading..."}),M=({error:e})=>t.jsx("div",{className:"rw-cell-error",children:e==null?void 0:e.message}),S=({golfClub:e})=>{const[l,{loading:u,error:d}]=i.useMutation(f,{onCompleted:()=>{r.fire({title:"Updated!",text:"Message has been updated successfully",icon:"success",timer:5e3}),a.navigate(a.routes.startMessage())},onError:s=>{r.fire({title:"Error",text:s.message,icon:"error",timer:5e3})},refetchQueries:[{query:n,variables:{golfClubId:e==null?void 0:e.id}}],awaitRefetchQueries:!0}),c=(s,p)=>{l({variables:{id:p,input:s}})};return t.jsx(m,{golfClub:e,onSave:c,loading:u,error:d,tab:"startMessage"})},b=i.createCell({QUERY:n,Loading:C,Failure:M,Success:S,displayName:"StartMessageCell"}),F=()=>{const e=g();return t.jsx(t.Fragment,{children:t.jsx(b,{golfClubId:e})})};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.