PageSourceSearch

http://smartclub.ai/assets/_reportId_-Bi10h1VC.js

js smartclub.ai collected 2026-10-05 15:07:17 UTC 3,704 bytes, 2 lines download raw bytes

1import{d as A,u as P,D as y,M as a,e as $,A as x,f as E}from"./index-CkbxFzmV.js";import{_ as O}from"./AdvancedScoutReportForm.vue_vue_type_script_setup_true_lang-K4IU4W4f.js";import{g as N}from"./getReportScheme-DaLwgPqf.js";import{_ as F}from"./PageWrapper.vue_vue_type_style_index_0_lang-C-agqOPr.js";import{_ as L}from"./SecondPageWrapper.vue_vue_type_style_index_0_lang-BNDqmb3T.js";import{u as T}from"./reports-JIhFpz68.js";import{d as j,ac as q,o as H,E as d,f as b,j as i,H as n,c as _,A as e,k as g,F as U,a5 as f,a6 as k,aK as Y,b as z,ad as K,q as G,l as J,r as m,R as w}from"./vendor-vuetify-DaY1MzuL.js";import{b as R}from"./route-block-BIO7NrfO.js";import"./vendor-sentry-CdlvO8A5.js";import"./fetcher-BYH-xuyS.js";import"./LastMatchCard.vue_vue_type_script_setup_true_lang-DqN54l8O.js";try{let r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new r.Error().stack;l&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[l]="7026bf1c-cc4b-463d-9240-a21925a8a2e8",r._sentryDebugIdIdentifier="sentry-dbid-7026bf1c-cc4b-463d-9240-a21925a8a2e8")}catch{}const Q={key:1},W={key:0,class:"d-flex justify-center assignment-form-wrapper"},X=j({__name:"[reportId]",setup(r){const{mdAndUp:l}=q(),v=m(!1),M=A(),I=P(),B=T(),V=w(()=>M.params.reportId),o=m(null),C=w(()=>o.value?N(o.value.type):null),s=m(!1),u=m(!1);async function D(){if(!o.value)return;u.value=!0;const c=o.value;x.players.reports.download(y.PLAYERS,o.value.id).then(t=>{E.downloadBlob(t,`${c.targetInfo.baseInfo.competition}_${c.type}_report`)}).finally(()=>u.value=!1)}function S(){if(!o.value)return;const c=I.resolve({name:"Pdf reports / Player / scout report",params:{playerId:o.value.targetInfo.id,reportId:o.value.id},query:{design:o.value.targetClub}});window.open(c.href,"_blank")}const h=w(()=>[{key:"download",title:"Download",icon:a.download,disabled:u.value,loading:u.value,onClick:()=>D()},{key:"open",title:"Open pdf",icon:a.filePdfBox,onClick:()=>S()}]);return H(async()=>{o.value=await B.getReportById(y.PLAYERS,V.value)}),(c,t)=>(d(),b(F,null,{default:i(()=>[n(L,null,{header:i(()=>[...t[4]||(t[4]=[J("h2",{class:"tx-subtitle-1 mr-auto"},"Match report",-1)])]),actions:i(()=>[e(l)?(d(),_(U,{key:0},[n(f,{variant:"outlined",density:"comfortable",rounded:"",color:"primary",icon:e(a).download,loading:u.value,onClick:D},null,8,["icon","loading"]),n(f,{variant:"outlined",density:"comfortable",rounded:"",color:"primary",icon:e(a).filePdfBox,onClick:S},null,8,["icon"])],64)):(d(),b(f,{key:1,color:"primary",variant:"outlined",class:"icon-btn",disabled:s.value,onClick:t[0]||(t[0]=p=>v.value=!0)},{default:i(()=>[n(k,{icon:e(a).dotsVertical},null,8,["icon"])]),_:1},8,["disabled"])),n(Y,{vertical:"",class:"my-1"}),n(f,{color:"primary",class:z({"icon-btn":!e(l)}),onClick:t[1]||(t[1]=p=>s.value=!s.value)},K({default:i(()=>[e(l)?g("",!0):(d(),b(k,{key:0,icon:s.value?e(a).pencilOffOutline:e(a).pencil},null,8,["icon"])),e(l)?(d(),_("span",Q,G(s.value?"Finish":"Edit"),1)):g("",!0)]),_:2},[e(l)?{name:"prepend",fn:i(()=>[n(k,{icon:s.value?e(a).pencilOffOutline:e(a).pencil},null,8,["icon"])]),key:"0"}:void 0]),1032,["class"])]),default:i(()=>[o.value&&C.value?(d(),_("div",W,[n(O,{section:e(y).MATCHES,report:o.value,"edit-mode":s.value,fields:C.value,onReportSubmitted:t[2]||(t[2]=p=>e(I).push({name:"Scout / Matches / Reports"}))},null,8,["section","report","edit-mode","fields"])])):g("",!0)]),_:1}),n($,{modelValue:v.value,"onUpdate:modelValue":t[3]||(t[3]=p=>v.value=p),actions:h.value,"close-on-action":""},null,8,["modelValue","actions"])]),_:1}))}});typeof R=="function"&&R(X);export{X as default};
2//# sourceMappingURL=_reportId_-Bi10h1VC.js.map

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.