PageSourceSearch

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

js sporttv.pt collected 2026-10-01 11:28:44 UTC 14,920 bytes, 1 lines download raw bytes

1import{u as Le,_ as Ae,a as Re}from"./iaoAl1EZ.js";import{_ as Oe}from"./ColuIFyH.js";import{k as ve,v as R,w as O,_ as Ce,E as Te,o as U,I as z,c as xe,l as de,s as He,y as Me,A as We,u as De,a as X,D as Ue,b as Ve}from"./CM_Wyx7H.js";import{a as fe,_ as Pe}from"./IHAhuMeB.js";import{_ as Be}from"./CYqth0Kn.js";import{l as $e,e as Ze,k as Ge,m as Ye,n as Fe,o as je}from"./B3s3tHEp.js";import{j as ye,k as s,O as l,P as _,Q as T,u as t,W as i,V as f,R as x,X as v,Y as y,Z as Q,a4 as q,b as pe,a as _e,H as Ke,U as me,a2 as he,a3 as ge}from"./cVuhXwai.js";import{N as Xe}from"./DMNVk6i7.js";import"./DlAUqK2U.js";import"./K7YiQdG2.js";import"./LF_x_BYy.js";import"./B1l7X2wM.js";const qe={class:"news-author"},ze={class:"news-author-info"},Qe={key:1,class:"news-author-name bodyNormalBold"},Je={key:2,class:"news-author-date bodySmallRegular"},et=ye({__name:"MGOpinionAuthor",props:{author:{},publishedAt:{}},setup(J){const{$dayjs:p}=Te();ve();const c=J,C=s(()=>{var r,S;return((S=(r=c.author)==null?void 0:r.name)==null?void 0:S.trim())||""}),H=s(()=>{var r;return((r=c.author)==null?void 0:r.image)||"/logo.png"}),M=s(()=>{var r;return!((r=c.author)!=null&&r.id)||!C.value?null:U.opinionAuthorDetail.replace("%1%",z(C.value,{lower:!0,strict:!0})).replace("%2%",String(c.author.id))}),m=()=>{var r;(r=c.author)!=null&&r.id&&R(O.opinionAuthorClick,{user_parameters:!0,id:String(c.author.id),name:C.value})},V=r=>{if(!r)return"";const S=p(r),u=S.fromNow(),E=S.format("D MMMM YYYY, HH:mm");return`${u} • ${E}`};return(r,S)=>{const u=fe,E=Ce;return l(),_("div",qe,[T(u,{class:"news-author-image",src:t(H),alt:t(C)},null,8,["src","alt"]),i("div",ze,[t(M)?(l(),f(E,{key:0,to:t(M),class:"news-author-name bodyNormalBold",onClick:m},{default:x(()=>[Q(v(t(C)),1)]),_:1},8,["to"])):(l(),_("span",Qe,v(t(C)),1)),c.publishedAt?(l(),_("span",Je,v(V(c.publishedAt)),1)):y("",!0)])])}}}),tt={key:1,class:"opinion-detail-page-main-container"},nt={class:"opinion-detail-page-main"},ot={class:"opinion-detail-page-article"},at={key:1,class:"opinion-detail-page-column-pill bodySmallBold"},it={class:"opinion-detail-page-article-title"},st={class:"opinion-detail-page-tag-container"},lt={key:0,class:"opinion-detail-page-tag-items"},rt={class:"flex justify-between items-center"},ct={class:"opinion-detail-page-meta bodySmallBold"},ut=["disabled","aria-label"],dt={class:"opinion-detail-page-save-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},pt=["d"],_t={class:"opinion-detail-page-share"},mt=["aria-label"],ht=i("svg",{width:"40",height:"40",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i("path",{d:"M10.002 20.5959C10.0025 22.9772 10.8524 25.2802 12.3989 27.091C13.9454 28.9018 16.0871 30.1017 18.439 30.4749V23.4859H15.902V20.5959H18.442V18.3959C18.3859 17.881 18.4438 17.36 18.6118 16.87C18.7797 16.3801 19.0535 15.9331 19.4136 15.5608C19.7737 15.1885 20.2114 14.9001 20.6956 14.7161C21.1797 14.532 21.6985 14.4569 22.215 14.4959C22.965 14.5079 23.715 14.5749 24.455 14.6959V17.1549H23.191C22.9761 17.1267 22.7577 17.1472 22.5519 17.2149C22.346 17.2825 22.158 17.3955 22.0017 17.5455C21.8454 17.6956 21.7249 17.8788 21.6489 18.0818C21.573 18.2847 21.5436 18.5021 21.563 18.7179V20.5959H24.334L23.891 23.4869H21.563V30.4749C23.4506 30.1766 25.2132 29.3436 26.6421 28.0746C28.071 26.8057 29.1064 25.1538 29.6257 23.3147C30.145 21.4755 30.1264 19.5261 29.5721 17.6972C29.0179 15.8683 27.9512 14.2365 26.4983 12.995C25.0455 11.7535 23.2673 10.9543 21.3743 10.6921C19.4814 10.4298 17.5529 10.7154 15.8172 11.5152C14.0815 12.3149 12.6114 13.5952 11.5808 15.2046C10.5501 16.8139 10.0023 18.6848 10.002 20.5959Z",fill:"white"})],-1),gt=[ht],wt=["aria-label"],vt=i("svg",{width:"40",height:"40",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i("path",{d:"M25.7232 11.6564H28.7568L22.1311 19.2275L29.9256 29.5314H23.824L19.0416 23.2837L13.576 29.5314H10.5381L17.6236 21.4318L10.1514 11.6564H16.4076L20.726 17.3669L25.7232 11.6564ZM24.6576 27.7181H26.3377L15.4924 13.3751H13.6877L24.6576 27.7181Z",fill:"white"})],-1),Ct=[vt],ft=["aria-label"],yt=i("svg",{width:"40",height:"40",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i("path",{d:"M27.0045 13.5001C25.1339 11.6251 22.6429 10.5939 19.9955 10.5939C14.5312 10.5939 10.0848 15.0403 10.0848 20.5046C10.0848 22.2501 10.5402 23.9555 11.4062 25.4599L10 30.5939L15.2545 29.2144C16.7009 30.0046 18.3304 30.4198 19.9911 30.4198H19.9955C25.4554 30.4198 30 25.9733 30 20.5091C30 17.8617 28.875 15.3751 27.0045 13.5001ZM19.9955 28.7501C18.5134 28.7501 17.0625 28.3528 15.7991 27.6028L15.5 27.4242L12.3839 28.2412L13.2143 25.201L13.0179 24.8885C12.192 23.576 11.7589 22.0626 11.7589 20.5046C11.7589 15.9644 15.4554 12.268 20 12.268C22.2009 12.268 24.2679 13.1251 25.8214 14.6832C27.375 16.2412 28.3304 18.3082 28.3259 20.5091C28.3259 25.0537 24.5357 28.7501 19.9955 28.7501ZM24.5134 22.5805C24.2679 22.4555 23.0491 21.8573 22.8214 21.7769C22.5938 21.6921 22.4286 21.6519 22.2634 21.9019C22.0982 22.1519 21.625 22.7055 21.4777 22.8751C21.3348 23.0403 21.1875 23.0626 20.942 22.9376C19.4866 22.2099 18.5312 21.6385 17.5714 19.9912C17.317 19.5537 17.8259 19.5849 18.2991 18.6385C18.3795 18.4733 18.3393 18.3305 18.2768 18.2055C18.2143 18.0805 17.7188 16.8617 17.5134 16.3662C17.3125 15.8841 17.1071 15.951 16.9554 15.9421C16.8125 15.9332 
116.6473 15.9332 16.4821 15.9332C16.317 15.9332 16.0491 15.9957 15.8214 16.2412C15.5938 16.4912 14.9554 17.0894 14.9554 18.3082C14.9554 19.5269 15.8438 20.7055 15.9643 20.8707C16.0893 21.0358 17.7098 23.5358 20.1964 24.6117C21.7679 25.2903 22.3839 25.3483 23.1696 25.2323C23.6473 25.1608 24.6339 24.6341 24.8393 24.0537C25.0446 23.4733 25.0446 22.9778 24.9821 22.8751C24.9241 22.7635 24.7589 22.701 24.5134 22.5805Z",fill:"white"})],-1),St=[yt],Nt={key:2,class:"opinion-detail-page-lead"},kt={class:"opinion-detail-page-aside"},bt={key:0},It=i("img",{src:Be,width:"24",height:"24",alt:"","aria-hidden":"true",class:"opinion-detail-page-related-icon"},null,-1),Et={key:1,class:"headingDesktopTitle02 opinion-detail-page-related-title"},Lt={class:"opinion-detail-page-related-items"},At=5,we=3,$t=ye({__name:"[id]",async setup(J){let p,c;const C=xe(),H=s(()=>C.query.inapp==="true"),M=Ve(),{getToken:m}=ve(),{setLoginPopup:V}=de(),{authUser:r}=He(de()),S=Me(),u=s(()=>String(C.params.id)),{data:E,status:P}=([p,c]=q(()=>X("opinion-detail",()=>$e(u.value),{watch:[u]})),p=await p,c(),p),o=s(()=>E.value),B=s(()=>{var e,n;return String(((n=(e=o.value)==null?void 0:e.author)==null?void 0:n.id)??"")}),b=s(()=>{var e,n,a;return((a=(n=(e=o.value)==null?void 0:e.column)==null?void 0:n.name)==null?void 0:a.trim())||""}),ee=s(()=>{var n;const e=(n=o.value)==null?void 0:n.column;return!(e!=null&&e.id)||!b.value?null:U.opinionColumnDetail.replace("%1%",z(b.value,{lower:!0,strict:!0})||String(e.id)).replace("%2%",String(e.id))}),Se=()=>{var n;const e=(n=o.value)==null?void 0:n.column;e!=null&&e.id&&R(O.opinionColumnClick,{user_parameters:!0,id:String(e.id),name:b.value})},te=[".opinion-detail-page-content",".news-detail__text"],{renderRichContentEmbeds:ne}=Le();pe(()=>{var e;return(e=o.value)==null?void 0:e.content},()=>ne(te));const W=s(()=>{var e;return(e=o.value)==null?void 0:e.thumbnail}),Ne=s(()=>{var n;return(((n=o.value)==null?void 0:n.media)??[]).map(a=>typeof a=="string"?{url:a}:a).filter(a=>!!(a!=null&&a.url))}),$=s(()=>Ne.value.find(e=>{var n;return(n=e.mimeType)==null?void 0:n.startsWith("video/")})??null);if(P.value==="error")throw We({statusCode:404,statusMessage:"Page Not Found",fatal:!0});s(()=>P.value==="pending"),s(()=>P.value==="error");const{data:oe}=([p,c]=q(async()=>X("opinion-detail-sidebar",async()=>{const[e,n]=await Promise.all([Ze(1,At),B.value?Ge(1,we+1,B.value):Promise.resolve({docs:[]})]),a=(n.docs??[]).filter(h=>String(h.id)!==u.value).slice(0,we);return{latestNews:e,authorOpinions:a}},{watch:[u,B]})),p=await p,c(),p),ke=s(()=>{var e;return((e=oe.value)==null?void 0:e.latestNews)??[]}),ae=s(()=>{var e;return((e=oe.value)==null?void 0:e.authorOpinions)??[]}),ie=s(()=>{var h,w,N,k;const e=String(((w=(h=o.value)==null?void 0:h.author)==null?void 0:w.id)??"").trim(),n=String(((k=(N=o.value)==null?void 0:N.author)==null?void 0:k.name)??"").trim();if(!e||!n)return null;const a=z(n,{lower:!0,strict:!0});return a?U.opinionAuthorDetail.replace("%1%",a).replace("%2%",e):null}),Z=s(()=>`${M.public.SITE_URL}${U.opinionDetail.replace("%1%",String(C.params.slug)).replace("%2%",u.value)}`),G=s(()=>Z.value),L=s(()=>{var e;return((e=o.value)==null?void 0:e.title)||""});function Y(e,n,a,h,w,N,k){const A=window.innerWidth||document.documentElement.clientWidth||window.screenX,g=window.innerHeight||document.documentElement.clientHeight||window.screenY,se=A/window.screen.availWidth,le=436,re=626,ce=(A-re)/2/se+(window.screenLeft!==void 0?window.screenLeft:window.screenX),ue=(g-le)/2/se+(window.screenTop!==void 0?window.screenTop:window.screenY);let d="";e==="twitter"?d="https://twitter.com/intent/tweet?url="+a+"&text="+encodeURIComponent(n):e==="facebook"?d="https://www.facebook.com/sharer/sharer.php?u=@u&title=@t&description=@d&quote=@q&hashtag=@h":e==="whatsapp"&&(d="https://api.whatsapp.com/send?text=@t%0D%0A@u%0D%0A@d"),d!==""&&(d=d.replace(/@u/g,encodeURIComponent(a)).replace(/@t/g,encodeURIComponent(n)),d=d.replace(/@d/g,h?encodeURIComponent(h):""),d=d.replace(/@q/g,w?encodeURIComponent(w):""),d=d.replace(/@h/g,N||""),d=d.replace(/@m/g,k?encodeURIComponent(k):""),window.open(d,e+" -popup","height="+le+",width="+re+",left="+ce+",top="+ue+",screenX="+ce+",screenY="+ue))}const D=_e(!1),{data:be}=([p,c]=q(async()=>X("opinionSavedState",async()=>r.value?await Ye(u.value):!1,{watch:[u],default:()=>!1})),p=await p,c(),p),I=_e(!1);pe(be,e=>{I.value=!!e},{immediate:!0});const Ie=async()=>{var n,a,h,w;if(!r.value){V(!0);return}if(D.value)return;D.value=!0;const e={user_parameters:!0,news_parameters:{news_id:u.value,news_title:((n=o.value)==null?void 0:n.title)||""}};try{I.value?(R(O.opinionsUnsave,e),await Fe(u.value),I.value=!1):(R(O.opinionsSave,e),await je(u.value,((a=o.value)==null?void 0:a.title)||"",((h=o.value)==null?void 0:h.slug)||"",(w=o.value)==null?void 0:w.thumbnail),I.value=!0)}catch(N){console.error("Error toggling save state:",N),S.add({severity:"error",summary:m("NEWS_OPINIONS_ERROR"),life:5e3})}finally{D.value=!1}};Ke(()=>{var e;
1ne(te),R(O.opinionDetailView,{user_parameters:!0,news_parameters:{news_id:u.value,news_title:((e=o.value)==null?void 0:e.title)||""}})});const F=s(()=>{var e,n,a;return((n=(e=o.value)==null?void 0:e.meta)==null?void 0:n.title)||((a=o.value)==null?void 0:a.title)||m("NEWS_OPINION_TITLE")}),j=s(()=>{var e,n,a;return((n=(e=o.value)==null?void 0:e.meta)==null?void 0:n.description)||((a=o.value)==null?void 0:a.lead)||m("NEWS_OPINIONS_SEO_DESCRIPTION")}),K=s(()=>{var e,n,a;return Ue(((n=(e=o.value)==null?void 0:e.meta)==null?void 0:n.image)||((a=o.value)==null?void 0:a.thumbnail))}),Ee=s(()=>{var n,a;const e=(a=(n=o.value)==null?void 0:n.meta)==null?void 0:a.keywords;return e&&e.length?e.join(", "):void 0});return De({title:F,link:[{rel:"canonical",key:"canonical",href:Z}],meta:[{hid:"description",name:"description",content:j},{hid:"keywords",name:"keywords",content:Ee},{hid:"og:title",property:"og:title",content:F},{hid:"og:description",property:"og:description",content:j},{hid:"og:image",property:"og:image",content:K},{hid:"og:image:secure_url",property:"og:image:secure_url",content:K},{hid:"og:type",property:"og:type",content:"article"},{hid:"og:url",property:"og:url",content:Z},{hid:"twitter:card",name:"twitter:card",content:"summary_large_image"},{hid:"twitter:title",name:"twitter:title",content:F},{hid:"twitter:description",name:"twitter:description",content:j},{hid:"twitter:image",name:"twitter:image",content:K}]}),(e,n)=>{var A;const a=Ae,h=Oe,w=Ce,N=Re,k=fe;return l(),_("div",{class:ge(["opinion-detail-page",{"opinion-detail-page--inapp":t(H)}])},[t(H)?(l(),f(h,{key:0},{default:x(()=>[t(o)?(l(),f(a,{key:0,class:"news-detail__text",content:t(o).content},null,8,["content"])):y("",!0)]),_:1})):t(o)?(l(),_("div",tt,[i("main",nt,[i("article",ot,[i("div",null,[t(b)&&t(ee)?(l(),f(w,{key:0,to:t(ee),class:"opinion-detail-page-column-pill bodySmallBold",onClick:Se},{default:x(()=>[Q(v(t(b)),1)]),_:1},8,["to"])):t(b)?(l(),_("span",at,v(t(b)),1)):y("",!0),i("h1",it,v(t(o).title),1),i("div",st,[t(o).tags&&t(o).tags.length>0?(l(),_("div",lt,[(l(!0),_(me,null,he(t(o).tags||[],g=>(l(),_("span",{key:`opinion-tag-${g.id}`,class:"opinion-detail-page-tag-item bodySmallRegular"},v(g.title),1))),128))])):y("",!0),i("div",rt,[i("div",ct,[i("span",null,v(t(m)("NEWS_READ_TIME",[String(4)])),1),i("button",{class:ge(["opinion-detail-page__save-btn",{"opinion-detail-page__save-btn--saved":t(I)}]),disabled:t(D),"aria-label":t(m)(t(I)?"NEWS_SAVED":"NEWS_SAVE"),onClick:Ie},[(l(),_("svg",dt,[i("path",{d:t(I)?"M17 3H7C5.9 3 5.01 3.9 5.01 5L5 21L12 18L19 21V5C19 3.9 18.1 3 17 3Z":"M17 3H7C5.9 3 5.01 3.9 5.01 5L5 21L12 18L19 21V5C19 3.9 18.1 3 17 3ZM17 18L12 15.82L7 18V5H17V18Z",fill:"currentColor"},null,8,pt)]))],10,ut)]),i("div",_t,[i("div",{class:"opinion-detail-page-share-btn","aria-label":t(m)("NEWS_SHARE_FACEBOOK"),onClick:n[0]||(n[0]=g=>Y("facebook",t(L),t(G),t(L),t(L)))},gt,8,mt),i("div",{class:"opinion-detail-page-share-btn","aria-label":t(m)("NEWS_SHARE_TWITTER"),onClick:n[1]||(n[1]=g=>Y("twitter",t(G),t(L)))},Ct,8,wt),i("div",{class:"opinion-detail-page-share-btn","aria-label":t(m)("NEWS_SHARE_WHATSAPP"),onClick:n[2]||(n[2]=g=>Y("whatsapp",t(G),t(L)))},St,8,ft)])])])]),t($)?(l(),f(h,{key:0},{default:x(()=>[T(N,{media:t($)},null,8,["media"])]),_:1})):t(W)?(l(),f(k,{key:1,src:t(W),alt:t(o).title||"",class:"opinion-detail-page-thumbnail"},null,8,["src","alt"])):y("",!0),t(o).lead?(l(),_("h2",Nt,v(t(o).lead),1)):y("",!0),T(a,{class:"opinion-detail-page-content bodyNormalRegular",content:t(o).content},null,8,["content"]),t($)&&t(W)?(l(),f(k,{key:3,src:t(W),alt:t(o).title||"",class:"opinion-detail-page-thumbnail"},null,8,["src","alt"])):y("",!0),T(et,{author:t(o).author,"published-at":t(o).publishedAt},null,8,["author","published-at"])])]),i("aside",kt,[i("section",null,[T(Xe,{title:t(m)("NEWS_BREAKING_NEWS"),items:t(ke),layout:"list"},null,8,["title","items"])]),t(ae).length>0?(l(),_("section",bt,[t(ie)?(l(),f(w,{key:0,to:t(ie),class:"headingDesktopTitle02 opinion-detail-page-related-title opinion-detail-page-related-link"},{default:x(()=>{var g;return[Q(v(t(m)("NEWS_OPINIONS_AUTHOR_ARTICLES_FROM",[((g=t(o).author)==null?void 0:g.name)||""]))+" ",1),It]}),_:1},8,["to"])):(l(),_("h2",Et,v(t(m)("NEWS_OPINIONS_AUTHOR_ARTICLES_FROM",[((A=t(o).author)==null?void 0:A.name)||""])),1)),i("div",Lt,[(l(!0),_(me,null,he(t(ae),g=>(l(),f(Pe,{key:g.id,opinion:g,"show-author":!1},null,8,["opinion"]))),128))])])):y("",!0)])])):y("",!0)],2)}}});
1export{$t 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.