import{f as b,s as y,c as n,b as d,w as _,a as e,F as v,r as k,g as m,j as u,H as N,o as l,d as g,h as C,i as D,t as x,T as L}from"./entry.e017eb4f.js";import{_ as T}from"./Image.e40f281f.js";import{u as H}from"./fetch.f410fe8a.js";import"./_plugin-vue_export-helper.c27b6911.js";const R={class:"bg-white pb-8 lg:pb-16"},V={class:"mx-auto max-w-7xl overflow-hidden py-4 px-4 sm:py-8 sm:px-6 lg:px-8"},A=e("div",{class:"border-b border-gray-200 pb-6 mb-6 lg:pb-10 lg:mb-12"},[e("h1",{class:"text-4xl font-bold tracking-tight text-gray-900"}," Neuheiten "),e("p",{class:"mt-4 text-base text-gray-500"}," Durchstöbern Sie alle Neuigkeiten rund um unsere Fahrzeuge. ")],-1),B={class:"mt-8 space-y-12 md:space-y-20 lg:mt-20 lg:space-y-20"},F={class:"relative lg:w-64 lg:shrink-0 xl:w-72"},S={class:"w-full grow"},E={class:"flex items-center gap-x-4 text-sm"},I={class:"text-gray-500"},j={class:"group relative max-w-xl lg:max-w-full"},K={class:"mt-3 text-xl font-semibold leading-6 text-gray-900 lg:text-3xl"},M=e("span",{class:"absolute inset-0"},null,-1),P=["innerHTML"],J={__name:"index",async setup(U){let s,o;const{data:i}=([s,o]=b(()=>H(u().public.API_URL+"/api/news","$AwNVxq1tuK")),s=await s,o(),s);i||y("Keine News vorhanden");const p=a=>{const r={year:"numeric",month:"long",day:"numeric"};return new Date(a).toLocaleDateString("de-DE",r)};return(a,r)=>{var c;const h=L,f=N,w=T;return l(),n("div",R,[d(f,null,{default:_(()=>[d(h,null,{default:_(()=>[g("Neuheiten | Solis")]),_:1})]),_:1}),e("div",V,[A,e("div",B,[(l(!0),n(v,null,k((c=m(i))==null?void 0:c.news,t=>(l(),n("article",{key:t.id,class:"relative isolate flex flex-col gap-8 lg:flex-row lg:gap-12 xl:gap-x-16"},[e("div",F,[t.image?(l(),C(w,{key:0,class:"block w-full rounded-2xl bg-gray-50 object-cover",src:("useRuntimeConfig"in a?a.useRuntimeConfig:m(u))().public.API_URL+"/storage/"+t.image,alt:t.title},null,8,["src","alt"])):D("",!0)]),e("div",S,[e("div",E,[e("time",I,x(p(t.created_at)),1)]),e("div",j,[e("h3",K,[M,g(" "+x(t.title),1)]),e("div",{class:"mt-5 text-gray-700 prose lg:max-w-full",innerHTML:t.content},null,8,P)])])]))),128))])])])}}};export{J as default};