1import{m as l,j as t,L as p,t as c}from"./app-DrhNqQpY.js";import{A as u}from"./article-category-form-D5I3pFN4.js";import{C as h,a as x,b as f,c as j,d as C}from"./card-Bh3sW591.js";import{A as g}from"./app-layout-CzA7Cx6l.js";/* empty css */import"./button-D5vRJR7r.js";import"./index-CZp3sFea.js";import"./checkbox-D3wm4Nr2.js";import"./index-BHKM-FOP.js";import"./index-BFJZ-WOH.js";import"./index-BDCeYmta.js";import"./index-BYq89IhF.js";import"./check-BUxTNiqs.js";import"./createLucideIcon-DXYqXsUl.js";import"./input-Cj8GVgBm.js";import"./label-DfwUtSWl.js";import"./textarea-7upZO3nG.js";import"./x-D7GU2cVG.js";import"./chevron-right-OIYA5Avx.js";import"./users-4aPOEPUn.js";const b=[{title:"Admin",href:"/admin"},{title:"Categories",href:"/admin/article-categories"},{title:"Edit",href:"#"}];function G({category:i}){const{data:e,setData:r,put:s,processing:a,errors:o}=l({name:i.name,slug:i.slug,description:i.description??"",is_active:i.is_active}),m=n=>{n.preventDefault(),s(route("admin.article-categories.update",i.id),{onError:d=>{c(d)}})};return t.jsxs(g,{breadcrumbs:b,children:[t.jsx(p,{title:`Edit ${i.name}`}),t.jsxs("div",{className:"flex h-full flex-1 flex-col gap-6 p-4 md:p-6",children:[t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-semibold tracking-tight",children:"Edit category"}),t.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:["Update â",i.name,"â. Changing the name updates how it appears in public News filters."]})]}),t.jsxs(h,{children:[t.jsxs(x,{children:[t.jsx(f,{children:"Category details"}),t.jsxs(j,{children:[i.articles_count," article(s) currently use this category."]})]}),t.jsx(C,{children:t.jsx(u,{mode:"edit",data:e,errors:o,processing:a,onSubmit:m,onChange:r,submitLabel:"Save changes",articlesCount:i.articles_count})})]})]})]})}export{G 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.