PageSourceSearch

https://core16etf.com/_nuxt/D_rPX974.js

js core16etf.com collected 2026-10-05 07:02:23 UTC 3,614 bytes, 3 lines download raw bytes

1import j from"./o17oftnj.js";import q from"./BZGgxSOV.js";import{g as E,i as t,o as l,c as s,a as i,a1 as n,t as b,v as u,F as f,r as v,n as M,j as B,w as N,E as w,l as O,a2 as $}from"./B7A9RFpj.js";import"./SbAe6jDn.js";import"./B8IKnCnP.js";const z={class:"table-container"},R={key:0},U={class:"buttonsContainer"},P={__name:"HoldingsComponent",props:{pageComponent:{type:Object,required:!0}},setup(T){const L=T,e=O(()=>$(L.pageComponent)),g=w(!1),x=w(void 0),_=w(void 0);E(()=>{x.value=e.value.tables[0].data.slice(0,10),_.value=e.value.tables[0].data});function A(){g.value=!g.value}function H(){const D=e.value.ticker,d=e.value.tableMapping[0].columnTitle,r=e.value.tables[0].data;let o=new Date;const C=String(o.getDate()).padStart(2,"0"),c=String(o.getMonth()+1).padStart(2,"0"),y=o.getFullYear();o=c+"-"+C+"-"+y;let k="",h="";for(const a in d)h!==""&&(h+=","),h+=d[a];k+=h+`\r
2`;for(let a=0;a<r.length;a++){let m="";for(const S in r[a])m!==""&&(m+=","),typeof r[a][S]=="string"?m+=r[a][S].replace(/,/g,""):typeof r[a][S]=="number"?m+=r[a][S].toString().replace(/,/g,""):typeof r[a][S]=="object"?m+="":m+=r[a][S];k+=m+`\r
3`}const V=D+"-holdings-"+o+".csv"||"Holdings.csv",F=new Blob([k],{type:"text/csv;charset=utf-8;"}),p=document.createElement("a");if(p.download!==void 0){const a=URL.createObjectURL(F);p.setAttribute("href",a),p.setAttribute("download",V),p.style.visibility="hidden",document.body.appendChild(p),p.click(),document.body.removeChild(p)}}return(D,d)=>{const r=j;return t(e)&&t(e).show?(l(),s("div",{key:0,style:n(t(e).cssStyleSheet.holdingsOuterContainer)},[i("div",{class:"container",style:n(t(e).cssStyleSheet.holdingsInnerContainer)},[i("div",z,[i("h2",{class:"table-title",style:n(t(e).cssStyleSheet.holdingsTitle)},b(t(e).titleText),5),t(e).quickLookDisplay?(l(),s("div",R,[t(e).descrpText?(l(),s("p",{key:0,class:"table-description",style:n(t(e).cssStyleSheet.tableDescription)},b(t(e).descrpText),5)):u("",!0)])):u("",!0),i("div",{class:"table-responsive",style:n(t(e).cssStyleSheet.table)},[(l(!0),s(f,null,v(t(e).tables,(o,C)=>(l(),s(f,{key:C+"-table-wrapper"},[i("table",{class:"table table-hover",style:n(t(e).cssStyleSheet.tableBody)},[o.title?(l(),s("caption",{key:0,class:"caption",style:n(t(e).cssStyleSheet.tableCaption)},b(o.title),5)):u("",!0),i("thead",null,[i("tr",null,[(l(!0),s(f,null,v(o.head,(c,y)=>(l(),s("th",{key:y+"-col",class:M(t(e).ticker),style:n(t(e).cssStyleSheet.tableHeaderCell)},b(c),7))),128))])]),i("tbody",null,[(l(!0),s(f,null,v(t(g)?t(_):t(x),(c,y)=>(l(),s("tr",{key:y+"-row"},[(l(!0),s(f,null,v(c,(k,h)=>(l(),s("td",{key:h+"-field",style:n(t(e).cssStyleSheet.tableCell)},b(k),5))),128))]))),128))])],4),t(e).footerText?(l(),B(q,{key:0,tag:"div",paragraph:"",class:"footnote",style:n(t(e).cssStyleSheet.holdingsFooter),html:t(e).footerText},null,8,["style","html"])):u("",!0),t(e).quickLookDisplay&&o.links?(l(),s("div",{key:1,class:"buttonsContainer",style:n(t(e).cssStyleSheet.tableButtonsContainer)},[(l(!0),s(f,null,v(o.links,(c,y)=>(l(),B(r,{key:y+"-link",url:c.link},{default:N(()=>[i("button",{class:"btn-primary",style:n(t(e).cssStyleSheet.tableButton)},b(c.text),5)]),_:2},1032,["url"]))),128))],4)):u("",!0)],64))),128)),i("div",U,[t(e).quickLookDisplay?u("",!0):(l(),s("button",{key:0,class:"btn-primary",style:n(t(e).cssStyleSheet.viewallButton),onClick:d[0]||(d[0]=o=>A())},b(t(g)?"Top 10":"View All"),5)),t(e).downloadCSVButton?(l(),s("button",{key:1,class:"btn-secondary",style:n(t(e).cssStyleSheet.tableDownloadButton),onClick:d[1]||(d[1]=o=>H())}," Download As CSV ",4)):u("",!0)])],4)])],4)],4)):u("",!0)}}};export{P 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.