1var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});(()=>{const _PdfGenerator=class _PdfGenerator{button;attr;isSingle;pageId;postType;constructor(button,attr){this.button=button,this.attr=attr,this.isSingle=attr==="single",this.pageId=document.body.getAttribute("data-js-page-id"),this.postType=document.body.getAttribute("data-js-post-type");const apiRoot=wpApiSettings.root;apiRoot&&button.addEventListener("click",e=>{e.preventDefault(),this.isSingle?this.fetchPdfForSingle(apiRoot):this.fetchPdfForArchive(apiRoot)})}async fetchPdfForArchive(apiRoot){const queryString=window.location.search,searchParams=new URLSearchParams(queryString);this.postType&&(searchParams.delete("paged"),window.location.href=apiRoot+"pdf/v1/"+this.postType+"/"+(searchParams.toString()?"?"+searchParams.toString():""))}async fetchPdfForSingle(apiRoot){this.pageId&&(window.location.href=apiRoot+"pdf/v1/id="+this.pageId)}};__name(_PdfGenerator,"PdfGenerator");let PdfGenerator=_PdfGenerator;document.addEventListener("DOMContentLoaded",()=>{[...document.querySelectorAll("[data-js-pdf-generator]")].forEach(button=>{const attr=button.getAttribute("data-js-pdf-generator");attr&&new PdfGenerator(button,attr)})})})(); 2//# sourceMappingURL=pdf.DidQv2Vu.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.