import{_ as j}from"./DW66t8ET.js";import{_ as $,b as E,c as P,e as I,d as D,f as R}from"./Ti8QVBBP.js";import{_ as A,a as G}from"./bAbdkHcw.js";import{L as T,o as v,a as k,ab as F,d as M,M as N,e as a,r as p,A as S,w as V,N as Q,z as H,b as r,n as h,g as d,f as B,k as Y,aa as O,i as Z}from"./CGQLQ9ei.js";import{b as q}from"./CgfRh0cD.js";import{u as J}from"./jB1vGEpj.js";import{a as K,u as U}from"./B2715eme.js";import{u as W}from"./DyHw7ull.js";import"./BiaVLYVM.js";import"./YWKMKRHS.js";import"./DXviXCn8.js";import"./fOLyvSU9.js";const x=Object.assign(()=>{},{__unenv__:!0}),X=x,z=x,ee=x,ae={props:{html:{required:!0,type:[String]}},watch:{html(o){this.replace(o)}},mounted(){this.replace(this.html)},methods:{replace(o){let e=this.$refs.rawContainer;e.innerHtml="",e.appendChild(document.createRange().createContextualFragment(o)),this.$emit("updated")}}},te={ref:"rawContainer"};function ie(o,e,g,n,l,m){return v(),k("div",te,null,512)}const ne=T(ae,[["render",ie]]);X({id:z(),l:ee(z())});function se(o){const e=function(...g){window["gtag-"+(o.l??"dataLayer")](...g)};return{dataLayer:window[o.l??"dataLayer"],gtag:e}}function oe(o){return J((o==null?void 0:o.key)||"googleAnalytics",e=>({scriptInput:{src:F("https://www.googletagmanager.com/gtag/js",{id:e==null?void 0:e.id,l:e==null?void 0:e.l})},schema:void 0,scriptOptions:{use:()=>se(e),stub:void 0,performanceMarkFeature:"nuxt-third-parties-ga",tagPriority:1},clientInit:()=>{window[(e==null?void 0:e.l)??"dataLayer"]=window[(e==null?void 0:e.l)??"dataLayer"]||[],window["gtag-"+((e==null?void 0:e.l)??"dataLayer")]=function(){window[(e==null?void 0:e.l)??"dataLayer"].push(arguments)},window["gtag-"+((e==null?void 0:e.l)??"dataLayer")]("js",new Date),window["gtag-"+((e==null?void 0:e.l)??"dataLayer")]("config",e==null?void 0:e.id)}}),o)}const le={class:"relative h-200px w-355px"},re=["src"],ce=!1,de=M({__name:"StreamingBox",async setup(o){let e,g;N(i=>({"178a5b20":a(u).mobile,"22b708e4":a(u).tablet,"24edd544":a(u).desktop}));const n=p(null),l=p(!1);function m(){l.value=!0}const u=S(()=>{var i,t,c;return{mobile:`url(${((i=n.value)==null?void 0:i.imgMobile.sizes.original.url)??""})`,desktop:`url(${((t=n.value)==null?void 0:t.imgDesktop.sizes.original.url)??""})`,tablet:`url(${((c=n.value)==null?void 0:c.imgTablet.sizes.original.url)??""})`}});async function b(){const i=await $fetch("/api/values/streaming");n.value=i,n.value.url+=n.value.label?`&label=${n.value.label}`:""}[e,g]=V(()=>b()),await e,g(),Q(b,2e4);const f=p(null),{bottom:_}=q(f),w=S(()=>_.value<0&&!l.value),{proxy:s}=oe({id:"G-JV69QQQV19",key:"streaming-gtag"});return H(n,i=>{i!=null&&i.active&&!ce&&s.gtag("event","impression",{event_category:"Reproductor Live BBCL GA4",event_label:i.label,send_to:"G-JV69QQQV19"})},{immediate:!0}),(i,t)=>{var y;const c=ne;return(y=a(n))!=null&&y.active?(v(),k("div",{key:0,ref_key:"streamingContainer",ref:f,class:"streaming-box relative mb-24px flex justify-center bg-cover bg-no-repeat p-16px pb-145px sm:py-8px"},[r("div",le,[r("div",{class:h(a(w)?"bg-black/90 backdrop-blur fixed z-500 left-0 bottom-0 w-full md:left-auto md:right-50px md:bottom-16px md:w-316px md:rounded-8px md:pt-48px md:px-8px md:pb-8px":"")},[t[0]||(t[0]=r("div",{class:"absolute left-10px top-10px z-1 bg-[#FC2C2C] px-15px py-4px text-2.25 text-white font-semibold tracking-1px uppercase"},[r("span",{class:"animate-pulse"},"En Vivo")],-1)),r("button",{class:h([{hidden:!a(w)},"i-carbon-close-large absolute right-18px top-50% block transform-translate-y--50% text-28px text-white leading-4 md:right-14px md:top-14px md:transform-none md:text-20px"]),type:"button",onClick:m},null,2),r("iframe",{src:a(n).url,frameborder:"0",allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share; fullscreen",allowFullScreen:"true",allowscriptaccess:"always",scrolling:"no",class:h(a(w)?"w-160px h-90px md:rounded-lg md:w-full md:h-169px":"w-355px h-200px rounded-lg")},null,10,re)],2)]),d(c,{html:a(n).html},null,8,["html"])],512)):B("",!0)}}}),ge=T(de,[["__scopeId","data-v-25c48668"]]),pe={class:"font-montserrat antialiased"},me={id:"P7_ITT_Escritorio"},ue={class:"md:container"},be={class:"md:mt-24px"},Be=M({__name:"default",setup(o){const g=Z().public.base,n=p([{url:"https://twitter.com/pagina7chile",icon:"i-fa6-brands-x-twitter block"},{url:"https://www.instagram.com/pagina7chile/",icon:"i-fa6-brands-instagram block"},{url:"https://www.facebook.com/pagina7chile",icon:"i-fa6-brands-facebook-f block"},{url:"https://www.youtube.com/channel/UCuRKZqDJKZcFid5szGEbs5Q",icon:"i-fa6-brands-youtube block"},{url:"https://www.tiktok.com/@pagina7chile",icon:"i-fa6-brands-tiktok block"},{url:"https://www.threads.net/@pagina7chile",icon:"i-fa6-brands-threads block"}]);K({script:[{src:"https://securepubads.g.doubleclick.net/tag/js/gpt.js",async:!0},{key:"googletag-bootstrap",children:"var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push(function () { googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(true); googletag.pubads().setCentering(true); googletag.pubads().enableLazyLoad({ fetchMarginPercent: 200, renderMarginPercent: 200, mobileScaling: 1.0}); googletag.enableServices(); })"},{innerHTML:` var _comscore = _comscore || []; _comscore.push({ c1: '2', c2: '11254169', }); (function () { var s = document.createElement('script'), el = document.getElementsByTagName('script')[0]; s.async = true; s.src = (document.location.protocol == 'https:' ? 'https://sb' : 'http://b') + '.scorecardresearch.com/beacon.js'; el.parentNode.insertBefore(s, el); })(); `},{src:"/js/ads.js",tagPriority:"after:script:googletag-bootstrap",async:!0},{src:"https://www.biobiochile.cl/assets/realtime.js"},{children:"BB_REALTIME.init('01G1P62BHN68986R6FFCMT3374');"},{children:"/* Google Tag Manager */ (function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-PZ27LMD'); /* End Google Tag Manager */"},{src:"/js/contadores.js",async:!0},{src:"https://a.teads.tv/analytics/tag.js",async:!0}],noscript:[{tagPosition:"bodyOpen",children:'<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PZ27LMD" height="0" width="0" style="display:none;visibility:hidden"></iframe>'}]}),U({title:"Página 7",description:"Página 7 es un portal de noticias creado en Concepción, parte de la red de medios de BioBio Comunicaciones y BioBioChile",ogSiteName:"Página 7",ogUrl:g,ogTitle:"Página 7",ogDescription:"Página 7 es un portal de noticias creado en Concepción, parte de la red de medios de BioBio Comunicaciones y BioBioChile",ogImage:`${g}/img/social-p7.jpg`,fbAppId:"782931008416002",twitterCard:"summary",twitterTitle:"Página 7",twitterDescription:"Página 7 es un portal de noticias creado en Concepción, parte de la red de medios de BioBio Comunicaciones y BioBioChile",twitterImage:`${g}/img/social-p7.jpg`,twitterSite:"@pagina7chile",twitterCreator:"@pagina7chile"});const{targeting:l}=W(),m=p(!1),u=p(!1),b=p(!0),f=p(!1),_=p(!1);function w(s,i){if(i==="resetAd"&&(m.value=!1),s){if(i==="ad_top_desk"){let t=!1;u.value=!0,m.value=!0,window.addEventListener("scroll",()=>{t||window.top.scrollY>0&&(t=!0,setTimeout(()=>{u.value=!1,m.value=!1},2e3)),window.top.scrollY===0&&t&&(t=!1,u.value=!0,m.value=!0)})}else if(i==="ad_top_mobile"){console.log("SOY EL AD TOP MOBILE");let t=!1;window.addEventListener("scroll",()=>{console.log(b.value),t||window.top.scrollY>0&&(t=!0,setTimeout(()=>{b.value=!1,_.value||(_.value=!0)},2e3)),window.top.scrollY===0&&t&&(t=!1,b.value=!0,f.value=!0),window.top.scrollY>200&&(f.value=!1),window.top.scrollY<40&&(f.value=!0)})}}}return(s,i)=>{const t=j,c=$,y=A,C=ge,L=G;return v(),k("div",pe,[d(t,{id:"ITT_Mobile_Pagina7",path:"/1098385/pagina7cl/ad_itt_mobile",dimensions:[[1,4],[320,480]],"size-mapping":"mobileITTSizeMapping"in s?s.mobileITTSizeMapping:a(E),targeting:a(l)},null,8,["size-mapping","targeting"]),a(_)?(v(),Y(t,{key:0,id:"banner-scroll-google",path:"/1098385/pagina7cl/ad_sticky",dimensions:[[320,50],[320,100]],"size-mapping":"mobileScrollSizeMapping"in s?s.mobileScrollSizeMapping:a(P),targeting:a(l)},null,8,["size-mapping","targeting"])):B("",!0),r("div",me,[d(c,{id:"ad_itt",path:"/1098385/pagina7cl/ad_itt",dimensions:[1,5],"size-mapping":"desktopITTSizeMapping"in s?s.desktopITTSizeMapping:a(I),targeting:a(l)},null,8,["size-mapping","targeting"])]),d(c,{id:"ad_branding",path:"/1098385/pagina7cl/ad_branding",dimensions:[1,1],"size-mapping":[{breakpoint:[1185,520],dimensions:[1,1]},{breakpoint:[300,480],dimensions:[]}],targeting:a(l)},null,8,["targeting"]),d(c,{id:"ad_lateral_sticky",path:"/1098385/pagina7cl/ad_lateral_sticky",dimensions:[1,1],targeting:a(l),class:"!m-0 !p-0"},null,8,["targeting"]),r("div",{class:h(["top-0 z-30 flex bg-neutral-100",{sticky:a(u)}])},[d(c,{id:"ad_top_desk",path:"/1098385/pagina7cl/ad_top",class:"hidden",style:{"margin-bottom":"0"},width:970,dimensions:[970,90],"size-mapping":"desktopSizeMapping"in s?s.desktopSizeMapping:a(D),targeting:a(l),onRenderEnded:w},null,8,["size-mapping","targeting"])],2),d(y,{social:a(n),class:h(["sticky top-0 z-20 w-full bg-white shadow-md",[a(m)?"lg:top-122px":"top-0"]])},null,8,["social","class"]),r("div",{class:h(["z-19 bg-neutral-100 lg:hidden",[{sticky:a(b)},[a(f)?"top-138px":"top-42px"]]])},[d(c,{id:"ad_top_mobile",path:"/1098385/pagina7cl/ad_top",class:"hidden",width:320,dimensions:[320,100],"size-mapping":"mobileTopSizeMapping"in s?s.mobileTopSizeMapping:a(R),targeting:a(l),onRenderEnded:w},null,8,["size-mapping","targeting"])],2),r("div",ue,[d(C)]),r("main",be,[O(s.$slots,"default")]),d(L,{social:a(n)},null,8,["social"])])}}});export{Be as default};