PageSourceSearch

https://www.canal9.cl/_nuxt/_slug_.aq9JlQHk.js

js canal9.cl collected 2026-10-02 09:56:37 UTC 3,324 bytes, 1 lines download raw bytes

1import{_ as j}from"./Image.0T2ndADj.js";import{d as T,o as s,e as u,j as p,l as z,n as N,h as H,f as a,t as P,_ as K,u as U,w as q,a as G,c as C,r as d,b as J,g as f,F as k,i as y,k as O,m as B}from"./entry.drCg1XF7.js";import{a as Q,_ as W}from"./HorizontalSeccion.vue.kB0VS2Nd.js";import{_ as X}from"./Pager.vue.WKFPSGSF.js";import{_ as Y}from"./MasLeido.vue.D5-kchNw.js";import{u as Z}from"./useTargeting.y0h1QLVO.js";const ee={class:"mb-24px border-b border-b-neutral-300 pb-24px md:mb-32px md:border-b-0 md:pb-0"},te={class:"relative mb-16px w-full pt-56.43%"},se={class:"mb-20px font-sans text-8 font-bold leading-34px -tracking-0.03em"},ae=T({__name:"DestacadaSeccion",props:{url:{},slug:{},title:{},excerpt:{},featuredImage:{},mainCategory:{},publishedAt:{},homeFixedPost:{type:Boolean}},setup(L){return(e,g)=>{const v=j,b=K,_=Q;return s(),u("article",ee,[p(b,{to:e.url,class:"hover:no-underline"},{default:z(()=>[a("div",te,[e.featuredImage?(s(),N(v,{key:0,"featured-image":e.featuredImage,class:"absolute left-0 top-0 h-full w-full"},null,8,["featured-image"])):H("",!0)]),a("h3",se,P(e.title),1)]),_:1},8,["to"]),p(_,{"published-at":e.publishedAt},null,8,["published-at"])])}}}),oe={class:"mt-24px pb-56px container"},ne={class:"mb-24px border-b border-b-neutral-300 pb-24px text-center text-5 font-bold leading-5 tracking-widest uppercase"},re={class:"flex border-t border-t-neutral-300 md:border-t-0 md:pt-32px"},le={class:"md:border-r md:border-r-neutral-300 md:pr-32px"},ce={class:"hidden md:box-border md:box-border md:w-332px md:flex md:flex-shrink-0 md:basis-332px md:flex-col md:pl-32px"},m=7,ge=T({__name:"[slug]",async setup(L){var w;let e,g;const b=O().public.base,_=U(),{data:r,error:F}=([e,g]=q(()=>G(`/api/tags/${_.params.slug}?limit=${m}`,"$MKmdRwa3ww")),e=await e,g(),e);if(((w=F.value)==null?void 0:w.statusCode)===404)throw C({message:"El tag no existe",statusCode:404});if(!r.value)throw C({message:"Tag no encontrado",statusCode:404});const l=d(r.value.tag),$=d(r.value.posts.slice(2)),S=d(r.value.posts.slice(0,2)),A=d(r.value.total),h=d(null);async function D(t){const c=t===1?2:(t-1)*m,o=t===1?m-2:m;await $fetch(`/api/tags/${_.params.slug}?limit=${o}&offset=${c}`).then(i=>{$.value=i.posts}).catch(i=>{console.log("error",i)})}function I(t){var c,o;D(t),t>1?(c=h.value)==null||c.classList.add("hidden"):(o=h.value)==null||o.classList.remove("hidden")}const{setTargetType:E,setTargetCategory:M,targeting:ie}=Z();return E("portada"),M("tags"),J({title:()=>`Canal 9 Bío Bío Televisión | ${l.value.name}`,ogUrl:()=>`${b}/tags/${l.value.slug}`,ogTitle:()=>`Canal 9 Bío Bío Televisión | ${l.value.name}`,twitterTitle:()=>`Canal 9 Bío Bío Televisión | ${l.value.name}`}),(t,c)=>{const o=ae,i=W,R=X,V=Y;return s(),u("div",oe,[a("h1",ne,P(f(l).name),1),a("div",{ref_key:"firstsPosts",ref:h,class:"grid md:grid-cols-2 md:gap-x-12 md:border-b md:border-b-neutral-300"},[(s(!0),u(k,null,y(f(S),(x,n)=>(s(),N(o,B({key:n},x),null,16))),128))],512),a("div",re,[a("div",le,[(s(!0),u(k,null,y(f($),(x,n)=>(s(),u("div",{key:n},[p(i,B(x,{class:{"border-t border-t-neutral-300 pt-24px md:border-t-0 md:pt-0":n==4,"mb-24px md:mb-0":n==3,"md:!mt-0":n==1}}
1),null,16,["class"])]))),128)),p(R,{"num-posts":m,total:f(A),onChangePage:I},null,8,["total"])]),a("div",ce,[p(V)])])])}}});export{ge 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.