PageSourceSearch

https://viacha.gob.bo/build/assets/Show-B9sFdFDE.js

js viacha.gob.bo collected 2026-10-03 00:55:14 UTC 14,959 bytes, 141 lines download raw bytes

1import{r as c,j as e,H as b,L as a}from"./app-DNUg-Qal.js";import{P as p}from"./PublicLayout-ZqpS5iIJ.js";import{C as r}from"./calendar-days-CGTSqstN.js";import{A as f}from"./arrow-left-DAQVpIjd.js";import{M as j}from"./maximize-2-CbelKpOC.js";import{N,X as v}from"./x-COPQ6Hkx.js";import{A as x}from"./arrow-right-DWj43TIP.js";import"./app-CsOiNH09.js";import"./createLucideIcon-D3kbjplz.js";import"./shield-check-C_DfWTtU.js";import"./phone-VZ_xqdP6.js";import"./map-pin-CGGdd21V.js";function S({news:n,relatedNews:l}){const[m,t]=c.useState(!1),[g,u]=c.useState(!1),h=n.image&&n.image!==""&&!n.image.includes("undefined"),i=!g&&h?`/storage/${n.image}`:"/images/default-news.webp",o=s=>s?new Date(s).toLocaleDateString("es-BO",{day:"2-digit",month:"long",year:"numeric"}):"Fecha no disponible";return e.jsxs(p,{children:[e.jsx(b,{title:n.title}),e.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-black via-gray-950 to-green-950",children:[e.jsx("div",{className:"absolute left-0 top-0 h-1 w-full bg-gradient-to-r from-green-600 via-green-500 to-red-600"}),e.jsx("div",{className:"absolute -right-32 -top-32 h-96 w-96 rounded-full bg-green-600/10 blur-3xl"}),e.jsx("div",{className:"absolute -bottom-40 -left-32 h-96 w-96 rounded-full bg-red-600/5 blur-3xl"}),e.jsxs("div",{className:"relative mx-auto max-w-5xl px-6 py-20 text-center md:py-28",children:[e.jsxs("div",{className:"mb-6 inline-flex items-center gap-2 rounded-full border border-green-500/30 bg-green-500/10 px-4 py-2 text-sm font-semibold text-green-300",children:[e.jsx("span",{className:"h-2 w-2 rounded-full bg-green-500"}),n.category||"Información Institucional"]}),e.jsx("h1",{className:"text-4xl font-black leading-tight tracking-tight text-white md:text-5xl lg:text-6xl",children:n.title}),e.jsxs("div",{className:"mx-auto mt-7 flex items-center justify-center gap-2",children:[e.jsx("span",{className:"h-1 w-10 rounded-full bg-green-600"}),e.jsx("span",{className:"h-1 w-20 rounded-full bg-green-500"}),e.jsx("span",{className:"h-1 w-10 rounded-full bg-red-600"})]}),e.jsxs("div",{className:"mt-7 inline-flex items-center gap-2 text-sm text-gray-300",children:[e.jsx(r,{size:18,className:"text-green-500"}),e.jsx("span",{children:o(n.published_at)})]})]})]}),e.jsx("main",{className:"bg-gray-50 py-10 md:py-16",children:e.jsxs("div",{className:"mx-auto max-w-6xl px-6",children:[e.jsxs(a,{href:"/noticias",className:`
2                            mb-8 inline-flex items-center gap-2
3                            rounded-lg border border-gray-200
4                            bg-white px-4 py-2.5
5                            text-sm font-semibold text-gray-600
6                            shadow-sm transition-all duration-200
7                            hover:border-green-300
8                            hover:bg-green-50
9                            hover:text-[#008C3A]
10                        `,children:[e.jsx(f,{size:17}),"Volver a noticias"]}),e.jsxs("article",{className:`
11                            overflow-hidden rounded-3xl
12                            border border-gray-200
13                            bg-white shadow-xl
14                        `,children:[e.jsxs("div",{className:"group relative overflow-hidden bg-gray-100",children:[e.jsx("img",{src:i,onClick:()=>t(!0),onError:()=>u(!0),alt:n.title,className:`
15                                    max-h-[680px] w-full
16                                    cursor-zoom-in object-contain
17                                    transition-transform duration-700
18                                    group-hover:scale-[1.01]
19                                `}),e.jsx("div",{className:`
20                                    pointer-events-none absolute inset-0
21                                    bg-gradient-to-t from-black/20
22                                    via-transparent to-transparent
23                                `}),e.jsx("button",{type:"button",onClick:()=>t(!0),className:`
24                                    absolute bottom-5 right-5
25                                    flex h-11 w-11 items-center justify-center
26                                    rounded-full border border-white/20
27                                    bg-black/60 text-white
28                                    shadow-xl backdrop-blur-sm
29                                    transition-all duration-300
30                                    hover:scale-110
31                                    hover:bg-[#008C3A]
32                                `,"aria-label":"Ampliar imagen",children:e.jsx(j,{size:18})}),e.jsx("div",{className:"absolute bottom-0 left-0 h-1 w-full bg-gradient-to-r from-green-600 via-green-500 to-red-600"})]}),e.jsx("div",{className:"px-6 py-10 md:px-12 md:py-14 lg:px-16",children:e.jsxs("div",{className:"mx-auto max-w-4xl",children:[e.jsxs("div",{className:"mb-8 flex flex-wrap items-center justify-between gap-4 border-b border-gray-100 pb-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`
33                                                flex h-10 w-10 items-center
34                                                justify-center rounded-xl
35                                                bg-green-50
36                                            `,children:e.jsx(N,{size:20,className:"text-[#008C3A]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-green-700",children:"Noticias Municipales"}),e.jsx("p",{className:"mt-0.5 text-sm text-gray-500",children:"Gobierno Autónomo Municipal de Viacha"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 rounded-full bg-gray-50 px-4 py-2 text-sm text-gray-500",children:[e.jsx(r,{size:16,className:"text-[#008C3A]"}),o(n.published_at)]})]}),e.jsx("h2",{className:`
37                                        text-2xl font-black leading-tight
38                                        text-gray-900
39                                        md:text-3xl
40                                    `,children:n.title}),e.jsxs("div",{className:"mt-5 flex items-center gap-2",children:[e.jsx("span",{className:"h-1 w-12 rounded-full bg-green-600"}
40),e.jsx("span",{className:"h-1 w-4 rounded-full bg-gray-300"})]}),e.jsx("div",{className:`
41                                        article-content
42                                        mt-8
43                                        whitespace-pre-line
44                                        text-[17px]
45                                        leading-[1.9]
46                                        text-gray-700
47                                        md:text-[18px]
48                                    `,children:n.content}),e.jsx("div",{className:`
49                                        mt-12 border-t border-gray-100
50                                        pt-8
51                                    `,children:e.jsxs("div",{className:`
52                                            flex flex-col gap-4
53                                            rounded-2xl border
54                                            border-green-100
55                                            bg-green-50/50
56                                            p-5
57                                            sm:flex-row
58                                            sm:items-center
59                                            sm:justify-between
60                                        `,children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-gray-800",children:"Gobierno Autónomo Municipal de Viacha"}),e.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Información oficial municipal"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"h-2 w-2 rounded-full bg-green-600"}),e.jsx("span",{className:"text-xs font-semibold text-green-700",children:"Ciudad Industrial Verde"})]})]})})]})})]})]})}),l?.length>0&&e.jsx("section",{className:"border-t border-gray-200 bg-white py-16 md:py-20",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-6",children:[e.jsxs("div",{className:"mb-10 flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"h-6 w-1 rounded-full bg-green-600"}),e.jsx("span",{className:"text-sm font-bold uppercase tracking-wider text-green-700",children:"También te puede interesar"})]}),e.jsx("h2",{className:"text-2xl font-black text-gray-900 md:text-3xl",children:"Noticias relacionadas"}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Conoce otras noticias y actividades del municipio."})]}),e.jsxs(a,{href:"/noticias",className:`
61                                    inline-flex items-center gap-2
62                                    text-sm font-semibold
63                                    text-[#008C3A]
64                                    transition-colors
65                                    hover:text-[#006B2C]
66                                `,children:["Ver todas",e.jsx(x,{size:17})]})]}),e.jsx("div",{className:"grid gap-7 sm:grid-cols-2 lg:grid-cols-3",children:l.map(s=>e.jsxs(a,{href:`/noticias/${s.slug}`,className:`
67                                        group relative flex h-full
68                                        flex-col overflow-hidden
69                                        rounded-2xl border border-gray-200
70                                        bg-white shadow-sm
71                                        transition-all duration-300
72                                        hover:-translate-y-1
73                                        hover:border-green-200
74                                        hover:shadow-xl
75                                    `,children:[e.jsxs("div",{className:"relative h-52 overflow-hidden bg-gray-200",children:[e.jsx("img",{src:s.image?`/storage/${s.image}`:"/images/default-news.webp",onError:d=>{d.currentTarget.onerror=null,d.currentTarget.src="/images/default-news.webp"},alt:s.title,loading:"lazy",className:`
76                                                h-full w-full object-cover
77                                                transition-transform
78                                                duration-700
79                                                group-hover:scale-105
80                                            `}),e.jsx("div",{className:`
81                                                absolute inset-0
82                                                bg-gradient-to-t
83                                                from-black/40
84                                                via-transparent
85                                                to-transparent
86                                            `}),e.jsxs("span",{className:`
87                                                absolute left-4 top-4
88                                                inline-flex items-center gap-2
89                                                rounded-full
90                                                bg-green-700
91                                                px-3 py-1.5
92                                                text-xs font-semibold
93                                                text-white shadow-lg
94                                            `,children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-green-300"}),"Institucional"]}),e.jsx("div",{className:"absolute bottom-0 left-0 h-1 w-1/3 bg-red-600"})]}),e.jsxs("div",{className:"flex flex-1 flex-col p-5",children:[s.published_date&&e.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-gray-500",children:[e.jsx(r,{size:15,className:"text-[#008C3A]"}),s.published_date]}),e.jsx("h3",{className:`
95                                                mt-3 line-clamp-2
96                                                text-lg font-extrabold
97                                                leading-snug text-gray-900
98                                                transition-colors duration-300
99                                                group-hover:text-[#008C3A]
100                                            `,children:s.title}),e.jsx("div",{className:"mt-auto pt-5",children:e.jsxs("span",{className:`
101                                                    inline-flex items-center
102                                                    gap-2 text-sm font-semibold
103                                                    text-[#008C3A]
104                                                `,children:["Leer más",e.jsx("span",{className:`
105                                                        flex h-7 w-7
106                                                        items-center justify-center
107                                                        rounded-full bg-green-50
108                                                        transition-all duration-300
109                                                        group-hover:bg-green-600
110                                                        group-hover:text-white
111                                                    `,children:e.jsx(x,{size:15})})]})})]}),e.jsx("div",{className:`
112                                            absolute bottom-0 left-0
113                                            h-0.5 w-0
114                                            bg-[#008C3A]
115                                            transition-all duration-500
116                                            group-hover:w-full
117                                        `})]},s.id))})]})}),m&&e.jsxs("div",{className:`
118                        fixed inset-0 z-[100]
119                        flex items-center justify-center
120                        bg-black/90 p-4
121                        backdrop-blur-sm
122                    `,onClick:()=>t(!1),children:[e.jsx("button",{type:"button",onClick:()=>t(!1),className:`
123                            absolute right-5 top-5 z-10
124                            flex h-11 w-11 items-center
125                            justify-center rounded-full
126                            bg-white/10 text-white
127                            backdrop-blur-md
128                            transition-all duration-200
129                            hover:bg-red-600
130                        `,"aria-label":"Cerrar imagen",children:e.jsx(v,{size:22})}),e.jsx("img",{src:i,alt:n.title,onClick:s=>s.stopPropagation(),className:`
131                            max-h-[90vh] max-w-[95vw]
132                            rounded-xl object-contain
133                            shadow-2xl
134                        `}),e.jsx("div",{className:`
135                            absolute bottom-5 left-1/2
136                            -translate-x-1/2
137                            rounded-full
138                            bg-black/60 px-5 py-2
139                            text-center text-xs
140                            text-white backdrop-blur-sm
141                        `,children:"Haz clic fuera de la imagen para cerrar"})]})]})}export{S 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.