PageSourceSearch

https://portal.clickheredigital.com/assets/SocialPDF-B2r4TAgl.js

js clickheredigital.com collected 2026-10-01 16:33:33 UTC 1,938 bytes, 1 lines download raw bytes

1import{e as p,f as M,j as d,w as _,l as N,r as n,au as T,c as o,a4 as $,b as m,h,t as D,d as R}from"./index-DUWew8AW.js";import{R as k}from"./ReportingResource-DVqEy9lw.js";import{_ as I}from"./PdfCover-C-sFq0YP.js";import{_ as S}from"./SocialDetailsDialog-CNY36FTa.js";import"./PartnerResource-CkZM66x5.js";import"./StatusColumn-BizYQfqE.js";import"./MetricBox-CU84o6ws.js";import"./useChart-D3rrKuZG.js";import"./Chart-BU8UWJuK.js";import"./Metric-DugRREJO.js";const V={key:0},b={class:"text-center"},j={key:1,class:"flex items-center justify-center h-screen"},O={__name:"SocialPDF",setup(q){const i=$(),l=n(!1),a=n(null),v=n(""),P=n([8,84]),g=o(()=>Number(i.query.clientId)),c=o(()=>i.query.startDate),u=o(()=>i.query.endDate),Y=o(()=>{if(c.value&&u.value){const r=R(c.value).format("MM/DD/YYYY"),t=R(u.value).format("MM/DD/YYYY");return`${r} - ${t}`}return""});async function w(){l.value=!0;try{const r=await T.getManyClients({clientsArray:[g.value],scope:"active"},{withProfiles:!0,withGroup:!0}).then(e=>e.data),t=Array.isArray(r)?r[0]:r;if(!t){a.value={};return}v.value=t.name;const y=t.profiles.filter(e=>P.value.includes(e.profileTypeId));if(y.length===0){a.value={};return}const s={};y.forEach(e=>{s[e.ProfileType.name]||(s[e.ProfileType.name]=[]),s[e.ProfileType.name].push(e.identifier)});const C=[{id:`client-${t.id}`,clientId:t.id,profiles:s}],f=await k.getGroupSocialReport({startDate:c.value,endDate:u.value,profiles:C,noCache:!1}).then(e=>e.data);if(f&&f.length>0){const[e]=f;a.value=e}else a.value={}}catch{a.value={}}finally{l.value=!1}}async function x(){await w()}return x(),(r,t)=>(m(),p("section",null,[!l.value&&a.value?(m(),p("div",V,[M("div",b,[d(I,{title:"Social Performance Report"},{header:_(()=>[h(D(v.value),1)]),subheader:_(()=>[h(D(Y.value),1)]),_:1})]),d(S,{client:a.value,"is-pdf":!0},null,8,["client"])])):(m(),p("div",j,[d(N,{indeterminate:"",size:"64",color:"primary"})]))]))}};export{O 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.