PageSourceSearch

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

js smartclub.ai collected 2026-10-05 15:07:24 UTC 4,161 bytes, 2 lines download raw bytes

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