PageSourceSearch

https://www.studiolegalemeiffret.it/assets/legal-blog._slug-C6HEKihn.js

js studiolegalemeiffret.it collected 2026-10-08 07:14:33 UTC 5,069 bytes, 1 lines download raw bytes

1import{j as e,r as g,R as p,g as h,a as v,b as j,n as N,L as i}from"./index-CmMupkCO.js";import{u as c}from"./useServerFn-CPQTZIj6.js";import{u as n,q as o}from"./queryOptions-BvOLrHc3.js";import{S as f,A as y}from"./site-layout-NiqULqAx.js";import{A as d}from"./arrow-left-BAjLcuqt.js";import"./useBaseQuery-Cv6YT9kK.js";import"./logo-BxQr1dAh.js";const b=(t,l)=>o({queryKey:["article",t],queryFn:()=>l({data:{slug:t}})}),w=(t,l)=>o({queryKey:["recent-articles",t],queryFn:()=>l({data:{excludeSlug:t,limit:6}})}),_=(t,l)=>o({queryKey:["prev-next-articles",t],queryFn:()=>l({data:{slug:t}})});function I(){return e.jsx(f,{children:e.jsx(g.Suspense,{fallback:e.jsx("div",{className:"py-24 text-center text-muted-foreground",children:"Caricamento..."}),children:e.jsx(k,{})})})}function k(){const{slug:t}=p.useParams(),l=c(h),x=c(v),m=c(j),{data:s}=n(b(t,l)),{data:u}=n(w(t,x)),{data:r}=n(_(t,m));if(!s)throw N();return e.jsxs("article",{children:[e.jsx("header",{className:"bg-navy-deep text-cream py-20",children:e.jsx("div",{className:"mx-auto max-w-7xl px-6",children:e.jsxs("div",{className:"max-w-3xl",children:[s.category&&e.jsx(i,{to:"/legal-blog",className:"text-xs uppercase tracking-wider text-gold hover:underline",children:s.category.name}),e.jsx("h1",{className:"font-serif text-4xl md:text-5xl mt-4",children:s.title}),s.published_at&&e.jsx("p",{className:"mt-4 text-cream/70 text-sm",children:new Date(s.published_at).toLocaleDateString("it-IT",{day:"numeric",month:"long",year:"numeric"})})]})})}),s.cover_image_url&&e.jsx("div",{className:"bg-navy-deep",children:e.jsx("div",{className:"mx-auto max-w-7xl px-6",children:e.jsx("div",{className:"max-w-4xl",children:e.jsx("img",{src:s.cover_image_url,alt:s.title,className:"w-full aspect-[16/9] object-cover"})})})}),e.jsx("div",{className:"py-16 bg-cream",children:e.jsx("div",{className:"mx-auto max-w-7xl px-6",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-12 lg:gap-16",children:[e.jsx("div",{children:e.jsx("div",{className:"prose-article",dangerouslySetInnerHTML:{__html:s.content_html}})}),e.jsxs("aside",{className:"space-y-10",children:[e.jsx("div",{className:"border border-border bg-white p-6",children:e.jsxs(i,{to:"/legal-blog",className:"inline-flex items-center gap-2 text-xs uppercase tracking-wider text-gold hover:underline font-medium",children:[e.jsx(d,{className:"w-4 h-4"}),"Torna al Legal Blog"]})}),(r?.prev||r?.next)&&e.jsxs("div",{className:"border border-border bg-white p-6 space-y-4",children:[e.jsx("h3",{className:"text-xs uppercase tracking-wider text-muted-foreground font-semibold",children:"Navigazione"}),r.next&&e.jsxs(i,{to:"/legal-blog/$slug",params:{slug:r.next.slug},className:"group flex items-center gap-3",children:[e.jsx(d,{className:"w-4 h-4 text-gold flex-shrink-0"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:"Articolo precedente"}),e.jsx("p",{className:"text-sm font-serif text-navy group-hover:text-gold transition-colors line-clamp-2",children:r.next.title}),e.jsx("p",{className:"text-[11px] text-muted-foreground",children:new Date(r.next.published_at).toLocaleDateString("it-IT",{day:"numeric",month:"short",year:"numeric"})})]})]}),r.prev&&e.jsxs(i,{to:"/legal-blog/$slug",params:{slug:r.prev.slug},className:"group flex items-center gap-3",children:[e.jsxs("div",{className:"min-w-0 flex-1 text-right",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:"Articolo successivo"}),e.jsx("p",{className:"text-sm font-serif text-navy group-hover:text-gold transition-colors line-clamp-2",children:r.prev.title}),e.jsx("p",{className:"text-[11px] text-muted-foreground",children:new Date(r.prev.published_at).toLocaleDateString("it-IT",{day:"numeric",month:"short",year:"numeric"})})]}),e.jsx(y,{className:"w-4 h-4 text-gold flex-shrink-0"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xs uppercase tracking-wider text-muted-foreground font-semibold mb-4",children:"Altri articoli"}),e.jsx("div",{className:"space-y-4",children:u.map(a=>e.jsxs(i,{to:"/legal-blog/$slug",params:{slug:a.slug},className:"group flex gap-4 items-start border border-border bg-white p-3 hover:border-gold transition-colors",children:[a.cover_image_url?e.jsx("div",{className:"w-16 h-16 flex-shrink-0 overflow-hidden bg-muted",children:e.jsx("img",{src:a.c
1over_image_url,alt:a.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}):e.jsx("div",{className:"w-16 h-16 flex-shrink-0 bg-navy/5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h4",{className:"text-sm font-serif text-navy group-hover:text-gold transition-colors line-clamp-2 leading-snug",children:a.title}),a.published_at&&e.jsx("p",{className:"mt-1 text-[11px] text-muted-foreground",children:new Date(a.published_at).toLocaleDateString("it-IT",{day:"numeric",month:"short",year:"numeric"})})]})]},a.id))})]})]})]})})})]})}export{I 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.