PageSourceSearch

https://turacion.com.uy/assets/Detalle-BncTDsI5.js

js turacion.com.uy collected 2026-10-09 17:33:32 UTC 3,670 bytes, 1 lines download raw bytes

1import{v as x,r as s,D as h,b,j as e,L as l,A as j}from"./index-jr2Kx65m.js";import{S as p}from"./Seo-BsWBK50t.js";import{P as N}from"./ProductsCarousel-BV5h_kaT.js";import{B as _}from"./BloquesView-D9kTVayY.js";import"./ProductCard-Dvuxioz_.js";import"./linkDestino-DmdDRauA.js";/* empty css                */import"./TituloRico-fQVswCtL.js";import"./fuentesTitulo-CEA4ho2z.js";const g=a=>{if(!a)return"";try{return new Date(a).toLocaleDateString("es-UY",{day:"numeric",month:"long",year:"numeric"})}catch{return""}},f=a=>/^https?:\/\//i.test(a||""),B=()=>{const{id:a}=x(),[t,n]=s.useState(null),[d,i]=s.useState(!0),[m,c]=s.useState(!1),o=s.useMemo(()=>(t?.productos||[]).map(h),[t]);return s.useEffect(()=>{let r=!0;return i(!0),c(!1),b.shop.blogPost(a).then(u=>{r&&n(u)}).catch(()=>r&&c(!0)).finally(()=>r&&i(!1)),()=>{r=!1}},[a]),d?e.jsx("section",{className:"tr-section",children:e.jsx("div",{className:"container text-center py-5",children:e.jsx("div",{className:"spinner-border text-primary"})})}):m||!t?e.jsx("section",{className:"tr-section",children:e.jsxs("div",{className:"container text-center py-5",children:[e.jsx("h2",{className:"fw-bold mb-2",children:"No encontramos esta nota"}),e.jsx("p",{className:"text-muted mb-4",children:"Puede que se haya quitado o cambiado de lugar."}),e.jsxs(l,{to:"/blog",className:"btn btn-brand text-white tr-cta-pill",children:[e.jsx("i",{className:"bi bi-arrow-left me-2"})," Volver al blog"]})]})}):e.jsxs("section",{className:"tr-section",children:[e.jsx(p,{title:`${t.titulo} · Blog TuRación`,description:t.bajada||t.titulo}),e.jsxs("div",{className:"container",children:[e.jsx("nav",{"aria-label":"breadcrumb",className:"catalog-breadcrumb",children:e.jsxs("ol",{className:"breadcrumb mb-3",children:[e.jsx("li",{className:"breadcrumb-item",children:e.jsx(l,{to:"/",children:"Inicio"})}),e.jsx("li",{className:"breadcrumb-item",children:e.jsx(l,{to:"/blog",children:"Blog"})}),e.jsx("li",{className:"breadcrumb-item active",children:t.titulo})]})}),e.jsxs("article",{className:"tr-article",children:[e.jsxs("div",{className:"tr-article__meta d-flex align-items-center gap-2 flex-wrap",children:[t.tag&&e.jsx("span",{className:"tr-article__tag",children:t.tag}),t.created_at&&e.jsx("span",{className:"tr-article__date",children:g(t.created_at)}),e.jsx(j,{href:`/admin/blog?editar=${t.id}`,label:"Editar nota"})]}),e.jsx("h1",{className:"tr-article__title",children:t.titulo}),t.bajada&&e.jsx("p",{className:"tr-article__lead",children:t.bajada}),t.imagen_url&&e.jsx("div",{className:"tr-article__hero",children:e.jsx("img",{src:t.imagen_url,alt:t.titulo})}),Array.isArray(t.bloques)&&t.bloques.length>0?e.jsx(_,{bloques:t.bloques,visiblesCarrusel:3}):t.contenido_html?e.jsx("div",{className:"tr-article__body tr-article__body--html",dangerouslySetInnerHTML:{__html:t.contenido_html}}):t.contenido?e.jsx("div",{className:"tr-article__body",children:t.contenido}):e.jsx("p",{className:"text-muted",children:"Esta nota todavía no tiene contenido."}),o.length>0&&e.jsxs("div",{className:"tr-article__productos mt-4",children:[e.jsx("h2",{className:"tr-article__prods-title",children:"🛒 Productos de esta nota"}),e.jsx(N,{productos:o,visibles:3})]}),f(t.link)&&e.jsx("p",{className:"mt-4",children:e.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"tr-link-cta",children:["Ver fuente ",e.jsx("i",{className:"bi bi-box-arrow-up-right"})]})}),e.jsx("div",{className:"mt-4 pt-3",style:{borderTop:"1px solid var(--tr-line-2)"},children:e.jsxs(l,{to:"/blog",className:"tr-link-cta",children:[e.jsx("i",{className:"bi bi-arrow-left me-1"})," Volver al blog"]})})]})]})]})};export{B 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.