PageSourceSearch

https://portal.clickheredigital.com/assets/WeeklyScorecardPDF-BCLEELG0.js

js clickheredigital.com collected 2026-09-24 13:10:10 UTC 2,339 bytes, 1 lines download raw bytes

1import{n as h,r as p,k as x,c as l,o as C,d as R}from"./index-C3PRlZvS.js";import{R as b}from"./ReportingResource-DwBr5aNb.js";import{P as I}from"./PdfCover-kaqprAdv.js";import{W as M,u as B}from"./weeklyScoreboard-BvZxJHG7.js";import"./PartnerResource-Da6bJ3Yo.js";import"./chart-helper-DXfqRIXi.js";import"./useChart-DIIHRzqt.js";import"./Chart-BT5-f4qM.js";const q={__name:"WeeklyScorecardPDF",setup(S){const{fetchClients:e,fetchTotalBudgets:t,prepareProfiles:r}=B(),f=p(!1),s=p([]),m=p([]),y=p(null),d=x(),v=l(()=>Number(d.query.groupId)),n=l(()=>d.query.startDate),u=l(()=>d.query.endDate),P=l(()=>{if(n.value&&u.value){const a=R(n.value).format("MM/DD/YYYY"),o=R(u.value).format("MM/DD/YYYY");return`${a} - ${o}`}return""}),W=l(()=>{var a,o;return((o=(a=s.value[0])==null?void 0:a.group)==null?void 0:o.name)||"Seiner Automotive Group"}),g=async()=>{const a={startDate:n.value,endDate:u.value,profiles:r(s.value)};await b.getGroupWeeklyScorecardReport(a).then(o=>{y.value=o.data.map(_=>{var D,k;const i=s.value.find(c=>c.id===_.clientId),Y=((D=m.value.find(c=>c.id===_.clientId))==null?void 0:D.totalBudget)||{current:{amount:0},previous:{amount:0}};return{..._,client:i,manufacturerIds:((k=i==null?void 0:i.manufacturers)==null?void 0:k.map(c=>c.id))||[],totalBudget:Y}})})};return C(async()=>{f.value=!0;try{await Promise.allSettled([e(v.value,s),t(n.value,u.value,v.value,m)]),await g()}finally{f.value=!1}}),{__sfc:!0,fetchClients:e,fetchTotalBudgets:t,prepareProfiles:r,loading:f,clients:s,totalBudgets:m,report:y,route:d,groupId:v,startDate:n,endDate:u,formattedDateRange:P,groupName:W,runReport:g,PdfCover:I,WeeklyScorecardTable:M}}};var w=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("section",[r.loading?t("div",{staticClass:"flex items-center justify-center h-screen"},[t("v-progress-circular",{attrs:{indeterminate:"",size:"64",color:"primary"}})],1):t("div",[t("div",{staticClass:"text-center"},[t(r.PdfCover,{attrs:{title:"Weekly Scorecard Report"},scopedSlots:e._u([{key:"header",fn:function(){return[e._v(e._s(r.groupName))]},proxy:!0},{key:"subheader",fn:function(){return[e._v(e._s(r.formattedDateRange))]},proxy:!0}],null,!1,2255474376)})],1),r.report?t(r.WeeklyScorecardTable,{attrs:{report:r.report,pdf:!0}}):e._e()],1)])},F=[],N=h(q,w,F,!1,null,null);const J=N.exports;export{J 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.