1import{L as g,q as b,c as n,a as s,b as t,h as i,f as p,F as _,r as y,p as v,i as k,d as a,_ as C,l as c,t as h}from"./BiSZ_CVW.js";const L={class:"w-full items-center flex justify-center p-4 bg-gray-100"},B={class:"flex flex-row min-h-[100vh] lg:w-[70%] w-full justify-center flex-grow"},N={class:"mr-4 p-6 bg-white w-1/4 hidden rounded-md shadow-lg min-w-[20ch] max-w-[30ch] lg:flex flex-col"},z={class:"p-8 bg-white rounded-md shadow-md w-full min-h-[90vh] lg:w-3/4"},j={class:"flex items-center justify-between mb-6"},H={key:0},$={class:"text-gray-800"},E=["onClick"],M={key:1,class:"text-gray-500"},F={__name:"index",async setup(T){let r,f;g({link:[{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,[email protected],200..800&display=swap"}]});const{data:m,refresh:x}=([r,f]=b(()=>v("/api/infos/models","$7zDhM46iCX")),r=await r,f(),r),w=async u=>{if(window.confirm("Biztosan törlöd a modellt?"))try{const d=await $fetch(`/api/infos/delete/${u}`,{method:"DELETE"});await x()}catch(d){alert("Hiba történt a törlés során."),console.error(d)}};return(u,e)=>{const d=C,o=k;return a(),n(_,null,[s(d),t("div",L,[t("div",B,[t("div",N,[s(o,{to:"/",class:"text-xl font-semibold"},{default:i(()=>[...e[0]||(e[0]=[t("div",{class:"flex items-center justify-start gap-2 mb-8"},[t("svg",{width:"18px",height:"18px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7071 4.29289C16.0976 4.68342 16.0976 5.31658 15.7071 5.70711L9.41421 12L15.7071 18.2929C16.0976 18.6834 16.0976 19.3166 15.7071 19.7071C15.3166 20.0976 14.6834 20.0976 14.2929 19.7071L7.29289 12.7071C7.10536 12.5196 7 12.2652 7 12C7 11.7348 7.10536 11.4804 7.29289 11.2929L14.2929 4.29289C14.6834 3.90237 15.3166 3.90237 15.7071 4.29289Z",fill:"#000000"})]),t("p",null,"Vissza")],-1)])]),_:1}),s(o,{to:"/admin/blogs",class:"font-bold mb-2"},{default:i(()=>[...e[1]||(e[1]=[c("Blogok",-1)])]),_:1}),s(o,{to:"/admin/infos",class:"font-bold mb-2"},{default:i(()=>[...e[2]||(e[2]=[c("Infók",-1)])]),_:1}),s(o,{to:"/admin/productsOfWeek",class:"font-bold"},{default:i(()=>[...e[3]||(e[3]=[c("Hét termékei",-1)])]),_:1})]),t("div",z,[t("div",j,[e[5]||(e[5]=t("h1",{class:"text-xl font-bold"},"Modellek",-1)),s(o,{to:"/admin/infos/add",class:"flex items-center gap-1 text-green-600 font-semibold hover:underline"},{default:i(()=>[...e[4]||(e[4]=[t("span",null,"Hozzáadás",-1)])]),_:1})]),p(m).length?(a(),n("div",H,[(a(!0),n(_,null,y(p(m),l=>(a(),n("div",{key:l.id,class:"flex items-center justify-between border-b py-2"},[t("p",$,h(l.model)+h(l.accessorieName?" / "+l.accessorieName:""),1),t("button",{onClick:V=>w(l.id),class:"text-red-600 hover:underline text-sm","aria-label":"Törlés"}," Törlés ",8,E)]))),128))])):(a(),n("p",M,"Nincs elérhetŠmodel."))])])])],64)}}};export{F 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.