import{u as x,b as j,j as t,L as f,cS as g}from"./vendor-BKmmeuxg.js";import{I as h}from"./input-error-LaPr_4wd.js";import{L as v}from"./loading-button-BnTVAMJ7.js";import{B as b}from"./button-BpNwv2aE.js";import{C as L}from"./card-D9_SJYq6.js";import{I as N}from"./input-DM0goJrn.js";import{L as S}from"./label-HmIcv5Yx.js";import{S as i}from"./separator-_3LZ_wAA.js";import{D}from"./layout-DkwBWm5d.js";import"./utils-DxSsnXxD.js";import"./index-WW_1X1qx.js";import"./sidebar-BYcYxQeZ.js";import"./sheet-DSvHVmaW.js";import"./tooltip-BsX7Z6vz.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";import"./appearance-D2z3xcjR.js";import"./dropdown-menu-DO-po5c1.js";import"./app-BytVvUs_.js";/* empty css            */import"./language-BFZ7KItL.js";import"./notification-CYMPYbAP.js";import"./popover-B4kBsMuI.js";import"./scroll-area-C8HGru-R.js";import"./app-logo-CmnEIwal.js";import"./accordion-CNBvFN43.js";import"./route-B4ZMN77y.js";import"./avatar-j28afJTV.js";import"./use-lang-YfV87_zl.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};
