PageSourceSearch

https://politicaspublicasdelnorte.cl/assets/noticias._slug-Cr3Qx_VT.js

js politicaspublicasdelnorte.cl collected 2026-10-02 13:26:30 UTC 4,070 bytes, 1 lines download raw bytes

1import{i as n,j as e,L as r}from"./index-DmrZbqIw.js";import{P as o,I as l}from"./PublicLayout-BrzvSvJj.js";import{r as c}from"./news-content-BWoeth4g.js";import{A as s}from"./arrow-left-Bhy7r9Uv.js";import{C as m}from"./calendar-DMR7rGQ3.js";import{U as d}from"./user-DjRv86F2.js";import{S as x}from"./share-2-0tWGbZP3.js";import"./useRouterState-B4yCJhwn.js";import"./utils-D7iammCF.js";import"./button-BZvngp_e.js";import"./chevron-down-DTHQhLoK.js";import"./createLucideIcon-BhHQ8QKH.js";import"./x-CBqx6EXH.js";const i={"barometro-regional-antofagasta-10-anos-2026":"https://www.instagram.com/p/DaoX_dJh0Ln/"};function D(){const{news:t}=n.useLoaderData(),a=t.published_at?new Date(t.published_at).toLocaleDateString("es-ES",{day:"2-digit",month:"long",year:"numeric"}):"";return e.jsxs(o,{children:[e.jsxs("section",{className:"relative bg-primary text-primary-foreground pt-8 md:pt-10 pb-12 md:pb-16 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-20","aria-hidden":!0,children:t.featured_image_url&&e.jsx("img",{src:t.featured_image_url,alt:"",className:"h-full w-full object-cover blur-xl scale-110",loading:"lazy",decoding:"async"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary via-primary/95 to-primary"}),e.jsxs("div",{className:"container-narrow relative",children:[e.jsxs(r,{to:"/noticias",className:"inline-flex items-center gap-2 text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:[e.jsx(s,{className:"h-3.5 w-3.5"})," Volver a noticias"]}),e.jsxs("div",{className:"mt-6 max-w-3xl",children:[e.jsx("span",{className:"inline-block text-[11px] uppercase tracking-[0.2em] font-medium bg-accent-electric/20 text-accent-electric px-3 py-1 rounded-full",children:t.category?.name??"Noticia"}),e.jsx("h1",{className:"mt-5 font-display text-xl md:text-2xl leading-[1.15]",children:t.title}),t.lead&&e.jsx("p",{className:"mt-6 text-lg md:text-xl text-primary-foreground/90 leading-relaxed font-light",children:t.lead}),e.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-primary-foreground/75 border-t border-primary-foreground/20 pt-5",children:[a&&e.jsxs("span",{className:"inline-flex items-center gap-2",children:[e.jsx(m,{className:"h-3.5 w-3.5"}),a]}),t.author&&e.jsxs("span",{className:"inline-flex items-center gap-2",children:[e.jsx(d,{className:"h-3.5 w-3.5"}),t.author]})]})]})]})]}),t.featured_image_url&&e.jsx("div",{className:"container-narrow -mt-6 md:-mt-10 relative z-10",children:e.jsx("div",{className:"aspect-[16/9] overflow-hidden rounded-2xl shadow-2xl ring-1 ring-border",children:e.jsx("img",{src:t.featured_image_url,alt:t.title,className:"h-full w-full object-cover",loading:"lazy",decoding:"async"})})}),e.jsx("article",{className:"container-narrow py-12 md:py-16",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[t.content&&e.jsx("div",{children:c(t.content)}),i[t.slug]&&e.jsx("div",{className:"mt-10",children:e.jsxs("a",{href:i[t.slug],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-md bg-gradient-to-r from-[#F58529] via-[#DD2A7B] to-[#8134AF] text-white px-5 py-2.5 text-sm font-semibold hover:opacity-90 transition-opacity shadow-md",children:[e.jsx(l,{className:"h-4 w-4"})," Ver post en Instagram"]})}),e.jsxs("div",{className:"mt-14 pt-8 border-t border-border flex flex-wrap items-center justify-between gap-4",children:[e.jsxs(r,{to:"/noticias",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(s,{className:"h-3.5 w-3.5"})," Todas las noticias"]}),e.jsxs("button",{type:"button",onClick:()=>{typeof navigator<"u"&&navigator.share?navigator.share({title:t.title,url:window.location.href}).catch(()=>{}):typeof navigator<"u"&&navigator.clipboard?.writeText(window.location.href)},className:"inline-flex items-center gap-2 text-sm font-medium text-accent-electric hover:opacity-80",children:[e.jsx(x,{className:"h-4 w-4"})," Compartir"]})]})]})})]})}export{D 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.