PageSourceSearch

https://www.sporttv.pt/_nuxt/DHv1BCC1.js

js sporttv.pt collected 2026-10-01 11:27:39 UTC 3,084 bytes, 1 lines download raw bytes

1import{s as M}from"./K7YiQdG2.js";import{j as x,a as h,H as z,n as O,E as R,O as d,P as u,W as S,u as o,ac as g,Y as w,U as _,a2 as V,a3 as k,X as N,a9 as P,aa as A}from"./cVuhXwai.js";import{_ as F}from"./DlAUqK2U.js";const H=a=>(P("data-v-16cdce08"),a=a(),A(),a),U=["id"],X=["id"],j=["onClick","id"],D=H(()=>S("div",{class:"tabView-hoverable"},null,-1)),B=1,G=x({__name:"MGTabs",props:{id:String,primary:Boolean,tabs:Array,onTabSelected:Function,currentTabSelected:Number},setup(a){const s=a,i=h(0),f=h(0),$=h(0),y=h(-1);function m(){const e=document.getElementById(`section-tabs-${s.id}`),t=document.getElementById(`section-tabs-wrapper-${s.id}`);if(!e||!t)return null;const n=e.offsetParent===t?e.offsetLeft:0;return{visibleWidth:t.clientWidth,contentWidth:Math.max(e.scrollWidth,e.clientWidth)+n,leadingOffset:n}}function b(e){return Math.min(0,Math.max(f.value,e))}function c(){const e=m();!e||e.visibleWidth===0||(f.value=Math.min(0,e.visibleWidth-e.contentWidth),i.value=b(i.value))}function E(e=500){return new Promise(t=>{setTimeout(()=>{c(),t(f.value)},e)})}function C(){const e=m();e&&(c(),i.value=b(i.value-e.visibleWidth/3))}function L(){const e=m();e&&(c(),i.value=b(i.value+e.visibleWidth/3))}let l=null;z(()=>{const e=document.getElementById(`section-tabs-wrapper-${s.id}`),t=document.getElementById(`section-tabs-${s.id}`);e&&t&&typeof ResizeObserver<"u"?(l=new ResizeObserver(()=>c()),l.observe(e),l.observe(t)):window.addEventListener("resize",W),O(()=>{c(),T(s.currentTabSelected)}),setTimeout(async()=>{await E(),I(s.currentTabSelected,!1)},1)});function W(){c()}let v=null;function p(){v&&(clearInterval(v),v=null)}function T(e){const t=document.getElementById(`tab${s.id}${e}`),n=m();if(!t||!n||n.visibleWidth===0)return;c();const r=t.offsetLeft+t.offsetWidth/2;i.value=b(n.visibleWidth/2-n.leadingOffset-r)}async function I(e,t){s.onTabSelected&&s.onTabSelected(e,t).then(()=>{p();let n=0;v=M(()=>{n++;const r=document.getElementById(`tab${s.id}${e}`);r?(s.primary||($.value=r.offsetWidth,y.value=r.offsetLeft),T(e),p()):n>50&&p()},100)}),T(e)}return R(()=>{p(),window.removeEventListener("resize",W),l&&(l.disconnect(),l=null)}),(e,t)=>(d(),u("div",{id:`section-tabs-wrapper-${a.id}`,class:k(["section-tabs-wrapper",{"section-tabs-wrapper-scrollable":o(f)<0}])},[S("div",{id:`section-tabs-${a.id}`,class:"section-tabs",style:g(`transform: translateX(${o(i)}px)`)},[!a.primary&&o(y)!==-1?(d(),u("div",{key:0,id:"secondaryTabBarActive",class:"secondary-tab-bar-active",style:g(`width: ${o($)}px; left: ${o(y)}px`)},null,4)):w("",!0),(d(!0),u(_,null,V(a.tabs,(n,r)=>(d(),u("div",{key:n.value,class:k(["tabItem",a.primary?"tabView mr-4 rounded":"tabView",a.currentTabSelected===r?"active":""]),onClick:Y=>I(r,!0),id:`tab${a.id}${r}`},[S("span",null,N(n.name),1),D],10,j))),128))],12,X),o(i)<-B?(d(),u("div",{key:0,onClick:t[0]||(t[0]=n=>L()),class:"section-tabs-wrapper-prev"})):w("",!0),o(i)>o(f)+B?(d(),u("div",{key:1,onClick:t[1]||(t[1]=n=>C()),class:"section-tabs-wrapper-next"})):w("",!0)],10,U))}}),Q=F(G,[["__scopeId","data-v-16cdce08"]]);export{Q as _};

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.