import{aT as p,j as e,aR as u,aS as n,dU as x,aK as g}from"./react-vendor-xYZnmIII.js";import{B as h,E as j,F as f,G as b,H as N,a as v}from"./ui-components-CQM92IK3.js";import{D as y}from"./layout-DC6VQ8xV.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./main-CnGu8e_N.js";import"./theme-colors-CLpwvDr4.js";import"./appearance-5ivIjthu.js";import"./language-C7bQIqs2.js";import"./notification-C3MPMjX2.js";import"./app-logo-BQGZ7CFC.js";import"./route-D0xh7FtZ.js";import"./use-lang-Dg6I_Fym.js";const w=({language:a})=>{const{props:d}=p(),{translate:l}=d,{settings:t,button:c}=l,m=a.properties.reduce((s,r)=>(s[r.group]||(s[r.group]=[]),s[r.group].push(r),s),{});return e.jsxs("div",{className:"md:px-3",children:[e.jsx(u,{title:t.translation_update}),e.jsxs("div",{className:"mb-6 flex items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",children:t.language_properties}),e.jsx("p",{className:"text-gray-500",children:t.translate_language_properties})]}),e.jsx(n,{href:route("language.index"),children:e.jsxs(h,{children:[e.jsx(x,{}),c.back]})})]}),e.jsx("div",{className:"space-y-4",children:e.jsx(j,{type:"single",collapsible:!0,defaultValue:"faq-0",className:"w-full",children:Object.entries(m).map(([s,r],o)=>e.jsxs(f,{value:`faq-${o}`,className:"bg-background border-border mb-4 rounded-lg border px-6 shadow-sm",children:[e.jsxs(b,{className:"cursor-pointer py-4 text-base font-semibold capitalize hover:no-underline",children:[s," ",t.elements]}),e.jsx(N,{className:"text-muted-foreground grid grid-cols-1 gap-4 pt-0 pb-4 text-sm sm:grid-cols-2 md:grid-cols-4",children:r.map(i=>e.jsx(n,{href:route("language.property.edit",i.id),children:e.jsxs(v,{className:"hover:border-secondary-light hover:text-secondary-foreground flex items-center justify-between border-2 p-4 !shadow-none",children:[e.jsx("p",{className:"font-medium",children:i.name}),e.jsx(g,{size:16})]})}))})]},`faq-${o}`))})})]})};w.layout=a=>e.jsx(y,{children:a});export{w as default};
