1import{G as p,j as e,S as j,x as h}from"./app-C2W-gJie.js";import{C as g,a as f,b as C,c as b,d as F,e as v}from"./card-CcAde7NE.js";import{B as i}from"./button-DymgSzrC.js";import{L as n}from"./label-B0sa-ck_.js";import{I as m}from"./input-DLKC_Ete.js";import{F as l}from"./index-B1Ed-nJ_.js";import{F as y}from"./index-CrNDmx1m.js";import{I as d}from"./index-lFqaFyP_.js";import{t as I}from"./use-toast-BmhaTVuo.js";import"./utils-CnG2WaWI.js";import"./react-icons.esm-B5ZhNnW5.js";import"./index-DPg2Jkv3.js";import"./Combination-CEUKq8WG.js";import"./index-B6rjZS7B.js";import"./globalLogo-Dpsd8tL_.js";function q({workCategory:s}){const{data:t,setData:a,put:u,errors:o,processing:x}=p({name:s.name,slug:s.slug}),c=()=>{u(route("console.workCategories.update",s.id),{onSuccess:()=>{I({description:"æ½å·¥å®ç¸¾ã«ãã´ãªãæ´æ°ãã¾ããã"})}})};return e.jsxs(g,{children:[e.jsx(j,{title:"æ½å·¥å®ç¸¾ã«ãã´ãªç·¨é"}),e.jsx(y,{onSubmit:c,children:e.jsxs(f,{className:"w-full max-w-md",children:[e.jsx(C,{children:e.jsx(b,{children:"æ½å·¥å®ç¸¾ã«ãã´ãªç·¨é"})}),e.jsxs(F,{className:"grid items-start gap-4",children:[e.jsxs(l,{children:[e.jsx(n,{htmlFor:"name",children:"表示å"}),e.jsx(m,{type:"text",name:"name",id:"name",value:t.name,onChange:r=>a("name",r.target.value)}),e.jsx(d,{message:o.name})]}),e.jsxs(l,{children:[e.jsx(n,{htmlFor:"slug",children:"ã¹ã©ãã°"}),e.jsx(m,{type:"text",name:"slug",id:"slug",value:t.slug,onChange:r=>a("slug",r.target.value),placeholder:"ã¹ã©ãã°ã¯URLã«ä½¿ç¨ããã¾ãã"}),e.jsx(d,{message:o.slug})]})]}),e.jsxs(v,{className:"flex justify-between",children:[e.jsx(i,{asChild:!0,variant:"outline",children:e.jsx(h,{href:route("console.workCategories.index"),children:"ãã£ã³ã»ã«"})}),e.jsx(i,{type:"submit",disabled:x,children:"ä¿å"})]})]})})]})}export{q 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.