import{u as x,b as j,j as t,L as f,dQ as g}from"./vendor-rThclpOQ.js";import{I as h}from"./input-error-Br4ngfdE.js";import{L as v}from"./loading-button-DKhpmf6V.js";import{B as b}from"./button-ZcsoqUQn.js";import{C as L}from"./card-HXna_7vU.js";import{I as N}from"./input-BeqyurrI.js";import{L as S}from"./label-CtY1vfZY.js";import{S as i}from"./separator-Cir9hccx.js";import{D}from"./layout-Dtu8Rjtg.js";import"./utils-8KAaAB9H.js";import"./index-DquVdLUg.js";import"./sidebar-Buyv7mEV.js";import"./sheet-BfC102Vr.js";import"./tooltip-WOIaUmuC.js";import"./main-CC75Iw88.js";import"./sonner-CgbrDmPW.js";import"./index-CWNIUFqh.js";import"./appearance-Bwg83W1G.js";import"./dropdown-menu-Cm0H42C1.js";import"./app-BsPpMpSR.js";/* empty css            */import"./language-BmlkXzFK.js";import"./notification-Bti7isEF.js";import"./popover-otAaS-4X.js";import"./scroll-area-BCwyUKIK.js";import"./app-logo-Bj2M2lhk.js";import"./accordion-by19KtHq.js";import"./route-B4ZMN77y.js";import"./avatar-BsP_s7dr.js";import"./use-lang-BK6P2WMc.js";const I=({property:s})=>{const{props:m}=x(),{translate:n}=m,{button:e}=n,{data:a,setData:p,put:l,errors:d,processing:c}=j(s.properties),u=r=>{r.preventDefault(),l(route("language.property.update",s.id))};return t.jsx("div",{className:"md:px-3",children:t.jsx(L,{className:"p-4 sm:p-6",children:t.jsxs("form",{onSubmit:u,className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsx("h2",{className:"text-xl font-semibold",children:s.name}),t.jsx(f,{href:route("language.edit",s.language.code),children:t.jsxs(b,{children:[t.jsx(g,{}),e.back]})})]}),t.jsx(i,{}),t.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2",children:Object.entries(a).map(([r,B])=>t.jsxs("div",{children:[t.jsx(S,{children:r}),t.jsx(N,{name:r,value:a[r],placeholder:"Enter value",onChange:o=>p(o.target.name,o.target.value)}),t.jsx(h,{message:d[r]})]},r))}),t.jsx(i,{}),t.jsx("div",{className:"flex items-center justify-end",children:t.jsx(v,{loading:c,children:e.save})})]})})})};I.layout=s=>t.jsx(D,{children:s});export{I as default};
