PageSourceSearch

https://summitpointos.com/assets/docx-DnQXqqxY.js

js summitpointos.com collected 2026-10-09 23:24:05 UTC 9,004 bytes, 1 lines download raw bytes

1import{_ as ye}from"./index-B7ErYi-u.js";import{m as ze}from"./types-BvN4C4kE.js";import{a as Le,S as Se,c as Ie,o as Te,h as w,d as Ae,f as Ee,j as Ne}from"./brandKit-Dqh9voo5.js";import{c as ve,f as le}from"./docCharts-BHVc1LLT.js";import"./react-vendor-DlfacoUt.js";import"./radix-vendor-Bnc9sXGn.js";import"./supabase-vendor-BFpL0hm0.js";import"./icons-vendor-iDMXddrC.js";import"./query-vendor-BRUoyimQ.js";async function Me(l,C){var J,Q,Z,k,ee;const B=await ye(()=>import("./index-C_JehuM-.js"),[]),{AlignmentType:E,BorderStyle:c,Document:ie,Footer:re,HeadingLevel:se,ImageRun:ae,PageNumber:ce,Packer:he,Paragraph:i,ShadingType:L,TabStopType:de,Table:H,TableCell:S,TableRow:O,TextRun:X,WidthType:f}=B,b=(C==null?void 0:C.brand)??null,v=!b,y=b??Se,g=Le(y),r=Ie(y),V=v?"Helvetica":Te(y),a=w(g.primary),R=w(g.accent),I=w(g.onPrimary),h=w(g.gray),P=w(g.dark),U=w(g.rowAlt),M=w(g.tint),ue=w(g.rule),j=r.tableHeader==="primary"?a:r.tableHeader==="tint"?M:"EFEFEF",pe=r.tableHeader==="primary"?I:r.tableHeader==="tint"?a:P,n=[],o=(e,t={})=>new X({text:e,bold:t.bold,italics:t.italic,color:t.color??P,size:t.size??20,font:V}),d=(e,t={})=>new i({...t.bullet?{bullet:{level:0}}:{},...t.numbered?{numbering:{reference:"doc-numbering",level:0}}:{},spacing:{after:120},children:[o(e,{bold:t.bold,color:t.color,size:t.size??20})]}),Y=(e,t)=>{const u=b==null?void 0:b.logo;if(!u)return null;const p=Ee(u,e,t);try{return new ae({type:u.mime==="image/jpeg"?"jpg":"png",data:u.bytes,transformation:{width:Math.round(p.width),height:Math.round(p.height)},altText:{title:"Logo",description:`${y.orgName} logo`,name:"logo"}})}catch{return null}},K=(e,t)=>new i({heading:se.HEADING_1,spacing:{before:320,after:160},...r.sectionAccent==="bar"?{border:{left:{style:c.SINGLE,size:24,color:R,space:4}}}:r.sectionAccent==="underline"?{border:{bottom:{style:c.SINGLE,size:6,color:R,space:1}}}:{},children:[o(e,{bold:!0,color:r.sectionAccent==="none"?P:a,size:26}),...t?[o(`   ·  ${t}`,{color:h,size:18})]:[]]}),q=e=>{const t=e.columns.filter(s=>!s.csvOnly);if(!t.length||!e.rows.length)return null;const u=t.reduce((s,m)=>s+(m.width??1),0),p=t.map(s=>Math.floor((s.width??1)/u*9360));p[p.length-1]+=9360-p.reduce((s,m)=>s+m,0);const N=new O({tableHeader:!0,children:t.map((s,m)=>new S({shading:{type:L.SOLID,color:j,fill:j},width:{size:p[m],type:f.DXA},children:[new i({alignment:s.align==="right"?E.RIGHT:E.LEFT,children:[o(s.label.toUpperCase(),{bold:!0,color:pe,size:16})]})]}))}),D=e.pdfRowCap&&e.rows.length>e.pdfRowCap?e.pdfRowCap:e.rows.length,T=e.rows.slice(0,D).map((s,m)=>new O({children:t.map((z,x)=>new S({width:{size:p[x],type:f.DXA},shading:r.zebra&&m%2===0?{type:L.SOLID,color:U,fill:U}:void 0,children:[new i({alignment:z.align==="right"?E.RIGHT:E.LEFT,children:[o(s[z.key]??"—",{bold:z.emphasis,color:z.emphasis?a:P,size:18})]})]}))}));return new H({width:{size:9360,type:f.DXA},columnWidths:p,rows:[N,...T]})},fe=e=>{const t=[],u=Ne(g.primary,g.accent).map(w);if(e.title&&t.push(d(e.title,{bold:!0,color:a,size:21})),e.chartType==="bar"){const T=Math.floor(300),s=ve(e),m=s.max-s.min||1,z=e.series.length>1,x=[];e.categories.forEach((te,be)=>{e.series.forEach(($,_)=>{const ne=$.values[be]??0,A=Math.max(0,Math.min(20,Math.round((ne-s.min)/m*20))),oe=u[_%u.length],F=[new S({width:{size:2200,type:f.DXA},children:[new i({spacing:{after:0},children:[o(z?_===0?te:"":te,{size:18})]})]})];A>0&&F.push(new S({width:{size:T*A,type:f.DXA},columnSpan:A,shading:{type:L.SOLID,color:oe,fill:oe},children:[new i({spacing:{after:0},children:[o(z?$.label:"",{size:14,color:_===0?I:"FFFFFF"})]})]})),20-A>0&&F.push(new S({width:{size:T*(20-A),type:f.DXA},columnSpan:20-A,children:[new i({spacing:{after:0},children:[o(A===0&&z?$.label:"",{size:14,color:h})]})]})),F.push(new S({width:{size:1160,type:f.DXA},children:[new i({spacing:{after:0},alignment:E.RIGHT,children:[o(le(ne,e.unit),{size:18,bold:!0})]})]})),x.push(new O({height:{value:300,rule:B.HeightRule.ATLEAST},children:F}))})}),t.push(new H({width:{size:9360,type:f.DXA},columnWidths:[2200,...Array.from({length:20},()=>T),1160],borders:{top:{style:c.NIL},bottom:{style:c.NIL}
1,left:{style:c.NIL},right:{style:c.NIL},insideHorizontal:{style:c.NIL},insideVertical:{style:c.NIL}},rows:x}))}else t.push(q({columns:[{key:"c",label:"Category"},...e.series.map((p,N)=>({key:`s${N}`,label:p.label,align:"right"}))],rows:e.categories.map((p,N)=>{const D={c:p};return e.series.forEach((T,s)=>{D[`s${s}`]=le(T.values[N]??0,e.unit)}),D})})),t.push(d("Line chart — drawn in the PDF version of this document.",{color:h,size:16}));return e.caption&&t.push(d(e.caption,{color:h,size:16})),t.push(new i({spacing:{after:120},children:[]})),t},W=e=>{switch(e.kind){case"paragraph":n.push(d(e.text,{color:h}));break;case"markdown":for(const t of ze(e.text))t.style==="heading"?n.push(d(t.text,{bold:!0,color:a,size:21})):t.style==="bullet"?n.push(d(t.text,{bullet:!0})):n.push(d(t.text));break;case"list":e.items.forEach(t=>n.push(d(t,e.style==="numbered"?{numbered:!0}:{bullet:!0})));break;case"stats":e.stats.forEach(t=>n.push(new i({spacing:{after:80},children:[o(`${t.label}:  `,{bold:!0,color:a}),o(t.value),...t.delta?[o(`  (${t.delta})`,{color:h,size:18})]:[]]})));break;case"keyValues":e.rows.forEach(({label:t,value:u})=>n.push(new i({spacing:{after:80},children:[o(`${t}:  `,{bold:!0,color:a,size:18}),o(u,{size:18})]})));break;case"table":{const t=q(e);if(t){n.push(t);const u=e.pdfRowCap&&e.rows.length>e.pdfRowCap?e.pdfRowCap:e.rows.length;u<e.rows.length&&n.push(d(`+ ${e.rows.length-u} more rows — see the CSV export for the full list`,{color:h,size:17})),e.caption&&n.push(d(e.caption,{color:h,size:16})),n.push(new i({spacing:{after:120},children:[]}))}break}case"chart":n.push(...fe(e.chart));break;case"callout":n.push(new i({shading:{type:L.SOLID,color:M,fill:M},border:{left:{style:c.SINGLE,size:18,color:R,space:8}},spacing:{before:120,after:160},children:[...e.title?[o(`${e.title.toUpperCase()}  —  `,{bold:!0,color:a,size:19})]:[],o(e.text)]}));break}},G=v?"  SUMMITPOINT AI  ·  CAPITAL INTELLIGENCE PLATFORM":`  ${y.orgName.toUpperCase()}${y.tagline?`  ·  ${y.tagline}`:""}`;if(r.coverBand){const e=Y(r.titleOnBand?200:180,r.titleOnBand?34:40),t=[new i({spacing:{before:r.titleOnBand?160:120,after:r.titleOnBand?320:120},children:[...e?[e]:[],o(G,{bold:!0,color:I,size:r.titleOnBand?18:20})]})];r.titleOnBand&&(t.push(new i({spacing:{after:l.meta.subtitle?60:200},children:[o(l.meta.title,{bold:!0,color:I,size:44})]})),l.meta.subtitle&&t.push(new i({spacing:{after:200},children:[o(l.meta.subtitle,{color:I,size:22})]}))),v||!e?(n.push(...t.map((u,p)=>p===0?new i({shading:{type:L.SOLID,color:a,fill:a},spacing:{after:60},children:[o(G,{bold:!0,color:I,size:18})]}):u)),r.titleOnBand&&n.push(new i({shading:{type:L.SOLID,color:a,fill:a},spacing:{after:60},children:[o(l.meta.title,{bold:!0,color:I,size:40})]}))):(n.push(new H({width:{size:9360,type:f.DXA},columnWidths:[9360],borders:{top:{style:c.NIL},left:{style:c.NIL},right:{style:c.NIL},bottom:{style:c.SINGLE,size:24,color:R},insideHorizontal:{style:c.NIL},insideVertical:{style:c.NIL}},rows:[new O({children:[new S({width:{size:9360,type:f.DXA},shading:{type:L.SOLID,color:a,fill:a},margins:{left:240,right:240,top:80,bottom:80},children:t})]})]})),n.push(new i({spacing:{after:120},children:[]})))}else{const e=Y(160,30);n.push(new i({spacing:{after:240},border:{bottom:{style:c.SINGLE,size:r.sectionAccent==="underline"?12:6,color:r.sectionAccent==="underline"?R:ue,space:6}},children:[...e?[e]:[],o(G,{bold:!0,color:a,size:19})]}))}(!r.titleOnBand||r.coverBand&&(v||!(b!=null&&b.logo))&&!r.titleOnBand)&&(n.push(new i({spacing:{before:240,after:80},children:[o(l.meta.title,{bold:!0,color:a,size:40})]})),l.meta.subtitle&&n.push(d(l.meta.subtitle,{color:h,size:22}))),(J=l.meta.badges)!=null&&J.length&&n.push(d(l.meta.badges.join("  ·  "),{color:h,size:18})),(Q=l.cover)!=null&&Q.intro&&n.push(d(l.cover.intro,{color:h})),(k=(Z=l.cover)==null?void 0:Z.stats)!=null&&k.length&&W({kind:"stats",stats:l.cover.stats}),(ee=l.cover)!=null&&ee.banner&&W({kind:"callout",title:l.cover.banner.label,text:l.cover.banner.text});for(const e of l.sections){n.push(K(e.title,e.subtitle));for(const t of e.blocks)W(t)}if(l.methodology){n.push(K("Source & Methodology")),n.push(d(l.methodology.sourceLabel,{color:h}));for(const e of l.methodology.notes)n.push(d(e,{color:h,size:17}));n.push(d(`Generated: ${new Date(l.methodology.generatedAt).toLocaleStr
1ing()}`,{color:h,size:17}))}const ge=v?"SummitPoint AI  ·  Capital Intelligence Platform":Ae(y),me=new re({children:[new i({tabStops:[{type:de.RIGHT,position:9360}],children:[...r.footer==="org"?[o(ge,{color:h,size:16})]:[],new X({children:["	","Page ",ce.CURRENT],color:h,size:16,font:V})]})]}),we=new ie({numbering:{config:[{reference:"doc-numbering",levels:[{level:0,format:B.LevelFormat.DECIMAL,text:"%1.",alignment:E.LEFT}]}]},sections:[{footers:{default:me},children:n}]});return he.toBlob(we)}export{Me as renderReportDocumentDocx};

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.