1import{u as a,j as e,L as t}from"./index-Bytnl4NQ.js";import{c as m}from"./admin-settings.functions-D1gINEKH.js";import{A as d}from"./arrow-left-c1ZsBZ4O.js";import{F as i}from"./file-text-CnQ8kpPD.js";import"./createLucideIcon-DbwV1bqm.js";function u(){const r=a({queryKey:["adminTemplates"],queryFn:()=>m()});return e.jsxs("div",{className:"mx-auto max-w-3xl px-5 py-12",children:[e.jsxs(t,{to:"/admin/bokningar",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(d,{size:14})," Tillbaka"]}),e.jsx("h1",{className:"mt-3 font-serif text-3xl",children:"E-postmallar"}),e.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:["Redigera ämnesrad och brödtext för de mejl som systemet skickar. Variabler skrivs som ",e.jsx("code",{children:"{{variabel}}"}),"."]}),e.jsxs("div",{className:"mt-6 space-y-2",children:[r.isLoading&&e.jsx("p",{className:"text-sm text-muted-foreground",children:"Laddarâ¦"}),r.data?.map(s=>e.jsxs(t,{to:"/admin/mallar/$key",params:{key:s.key},className:"flex items-start gap-3 rounded-sm border border-border bg-card p-4 transition hover:border-foreground
1/30",children:[e.jsx(i,{size:18,className:"mt-0.5 text-muted-foreground"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"font-medium",children:s.name}),e.jsx("div",{className:"mt-0.5 text-xs text-muted-foreground",children:s.description}),e.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:["Ãmne: ",s.subject]})]})]},s.id))]})]})}export{u as component};
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.