PageSourceSearch

https://www.sporttv.pt/_nuxt/6YLlK7tt.js

js sporttv.pt collected 2026-10-01 11:28:54 UTC 5,555 bytes, 1 lines download raw bytes

1import{s as V}from"./eMlzZ6U2.js";import{k as C,u as b,C as x}from"./CM_Wyx7H.js";import{j as A,a as p,b as M,I as S,O as l,P as a,W as r,X as c,u as e,a6 as B,as as F,q as T,a3 as D,Y as d,V as Z,R as y,Q as $,U as H,a2 as R,Z as I,ac as P}from"./cVuhXwai.js";import{g as U}from"./DmUJMaPs.js";import"./BxarlDDp.js";import"./BPIr43F-.js";import"./DR5VZsM2.js";import"./DxHeH07H.js";import"./BhM5Pduj.js";import"./0H41cmro.js";import"./-XexFdF6.js";import"./JtzmZDUP.js";const W={class:"ma-0 pa-0 pb-10 mvp-polls"},z={class:"mvp-title"},j={key:0,cols:"12",class:"mvp-code mt-8"},q={class:"input-wrapper w-full mr-4"},Q=["type"],X=["src"],Y={key:1,class:"mt-8"},G={key:3},J={class:"p-float-label select-box-assuntos"},K={key:0,class:"mt-8 mb-4"},ee={class:"text-center"},te={key:0,class:"mvp-teams"},se=["src"],oe={key:1,class:"mvp-team-name"},le=r("svg",{class:"mx-4",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r("path",{d:"M9.62975 12.7183L7.00806 8.91618L4.38638 12.7183H0.699219L4.91248 6.91344L0.968903 1.40039H4.63838L7.00806 4.94607L9.34238 1.40039H13.0295L9.10364 6.90018L13.2992 12.7183H9.62975Z",fill:"#FDEA00"})],-1),ie=["src"],ae={key:3,class:"mvp-team-name"},re={key:1,class:"mt-8"},ne={key:0,class:"mvp-info"},ue=["src"],ce={key:1,class:"mvp-response-text ml-4"},me={class:"mvp-response-text ml-4"},de={class:"mvp-result"},_e={class:"mvp-result-percentage"},ve={key:2,class:"text-center"},pe={key:4,class:"mt-10"},Ve=A({__name:"polls",setup(fe){const{getToken:v}=C();b({title:x.Seo.polls,meta:[{hid:"og:title",property:"og:title",content:x.Seo.polls},{hid:"og:description",property:"og:description",content:x.Seo.polls}]});const _=p(""),f=p(!1),u=p(null),s=p(null),h=p(!1);M(_,n=>{h.value=!1,u.value=null});function k(){_.value!==""&&U(_.value).then(n=>{if(h.value=!1,u.value=n,u.value&&u.value.length>0){let t=0;s.value&&u.value.forEach((i,m)=>{s.value&&s.value.id===i.id&&(t=m)}),s.value=u.value[t],window.scrollTo({top:0,behavior:"smooth"})}}).catch(n=>{h.value=!0})}function g(n){const t=s.value&&s.value.answers.filter(i=>i.text===n);if(t)return t[0]}function N(){const n=v("FANZONE_POLL_MVP_CLOSED_TITLE");let t="",i="";if(s.value)try{t=s.value.fixture.localTeam.name,i=s.value.fixture.visitorTeam.name}catch{}return n.replace("%1%",t).replace("%2%",i)}function L(n){var o;let t=n.value;t||(t=n.option),typeof t=="number"&&(t=(o=u.value)==null?void 0:o.filter(w=>w.id===n.value)[0]);let i="",m="";try{i=t.fixture.localTeam.name,m=t.fixture.visitorTeam.name}catch{}return i+" x "+m}function E(n,t){let i=t[0];return t.forEach(m=>{m.result>i.result&&(i=m)}),i.result===n.result?"#FDEA00":"#ffffff"}function O(n,t){let i=t[0];return t.forEach(m=>{m.result>i.result&&(i=m)}),i.result===n.result?"#FDEA00":"#BABABA"}return(n,t)=>{const i=S("v-col"),m=V;return l(),a("div",W,[r("div",z,c(e(v)("FANZONE_POLL_MVP")),1),e(u)?d("",!0):(l(),a("div",j,[r("div",q,[B(r("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>T(_)?_.value=o:null),type:e(f)?"text":"password",class:"inputBase"},null,8,Q),[[F,e(_)]]),r("label",{class:D(["form__label",e(_)!==""&&"up"])},"Código",2),e(_)!==""?(l(),a("img",{key:0,onClick:t[1]||(t[1]=o=>f.value=!e(f)),src:`/icons/ic_round_eye${e(f)?"_off":""}.png`,width:"20",height:"20",class:"password-icon"},null,8,X)):d("",!0)]),r("div",{class:"buttonPrimary",onClick:t[2]||(t[2]=o=>k())},c(e(v)("FANZONE_POLL_MVP_SUBMIT")),1)])),e(h)?(l(),a("div",Y,c(e(v)("FANZONE_POLL_MVP_INVALID_CODE")),1)):e(u)&&e(u).length===0?(l(),Z(i,{key:2},{default:y(()=>[I(c(e(v)("FANZONE_POLL_MVP_NO_MATCHS")),1)]),_:1})):d("",!0),e(u)&&e(u).length>0?(l(),a("div",G,[r("div",J,[$(m,{modelValue:e(s),"onUpdate:modelValue":t[3]||(t[3]=o=>T(s)?s.value=o:null),options:e(u),optionLabel:"text"},{value:y(o=>[r("div",null,c(L(o)),1)]),option:y(o=>[r("div",null,c(L(o)),1)]),_:1},8,["modelValue","options"])]),e(s)?(l(),a("div",K,[r("div",ee,c(N()),1),e(s).fixture&&e(s).fixture.localTeam&&e(s).fixture.visitorTeam?(l(),a("div",te,[e(s).fixture.localTeam.logo_image_url?(l(),a("img",{key:0,src:e(s).fixture.localTeam.logo_image_url,"max-width":"80",
1width:"80","max-height":"80",height:"80"},null,8,se)):(l(),a("div",oe,c(e(s).fixture.localTeam.name),1)),le,e(s).fixture.visitorTeam.logo_image_url?(l(),a("img",{key:2,src:e(s).fixture.visitorTeam.logo_image_url,"max-width":"80",width:"80","max-height":"80",height:"80"},null,8,ie)):(l(),a("div",ae,c(e(s).fixture.visitorTeam.name),1))])):d("",!0)])):d("",!0),e(s)&&e(s).responses?(l(),a("div",re,[(l(!0),a(H,null,R(e(s).responses,o=>(l(),a("div",{key:o.text,class:"mvp-response"},[g(o.text)?(l(),a("div",ne,[g(o.text).extra_data.logo_image_url?(l(),a("img",{key:0,src:g(o.text).extra_data.logo_image_url,"max-width":"40",width:"40","max-height":"40",height:"40",rounded:""},null,8,ue)):(l(),a("div",ce,c(g(o.text).extra_data.name),1)),r("div",me,c(o.text),1)])):d("",!0),r("div",de,[r("div",_e,[r("div",{class:"mvp-result-percentage-select",style:P(`background-color: ${O(o,e(s).responses)}; width: ${o.result*100}%`)},null,4)]),r("div",{class:"mvp-percentage",style:P(`margin-left: calc(${Math.max(5,Math.min(90,o.raw_result))}% - 12px); color: ${E(o,e(s).responses)}`)},c(o.raw_result_string!==void 0?o.raw_result_string:o.raw_result)+"% ",5)])]))),128))])):e(s)&&!e(s).responses?(l(),a("div",ve,c(e(v)("FANZONE_POLL_MVP_NO_RESULTS")),1)):d("",!0)])):d("",!0),e(u)?(l(),a("div",pe,[r("div",{class:"buttonPrimary refresh-button mt-8",dark:"",onClick:t[4]||(t[4]=o=>k())},c(e(v)("FANZONE_POLL_MVP_REFRESH")),1)])):d("",!0)])}}});export{Ve 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.