PageSourceSearch

https://hintermoos.at/assets/exportThreadDocx-DV7UI23-.js

js hintermoos.at collected 2026-10-09 22:02:23 UTC 1,914 bytes, 11 lines download raw bytes

1import{P as n,H as f,T as r,B as s,F as u,a as h}from"./index-BRuSZtGQ.js";import{F as d}from"./FileSaver.min-CENiJ7oA.js";import"./index-MoAbC8_9.js";function m(t){let e=t.replace(/<br\s*\/?>/gi,`
2`).replace(/<\/p>/gi,`
3`).replace(/<\/div>/gi,`
4`).replace(/<\/li>/gi,`
5`).replace(/<li[^>]*>/gi,"• ").replace(/<\/h[1-6]>/gi,`
6`).replace(/<hr\s*\/?>/gi,`
7---
8`);e=e.replace(/<[^>]+>/g,"");const i=document.createElement("textarea");return i.innerHTML=e,e=i.value,e=e.replace(/\n{3,}/g,`
9
10`).trim(),e}function x(t){return new Date(t).toLocaleDateString("cs-CZ",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}async function E(t){const e=[];e.push(new n({heading:f.HEADING_1,children:[new r({text:t.title,bold:!0,size:32,font:"Arial"})],spacing:{after:120}})),e.push(new n({children:[new r({text:t.categoryName,italics:!0,size:22,color:"666666",font:"Arial"})],spacing:{after:300}})),e.push(new n({border:{bottom:{style:s.SINGLE,size:6,color:"CCCCCC",space:1}},spacing:{after:200},children:[]})),t.posts.forEach((a,o)=>{e.push(new n({children:[new r({text:a.authorName,bold:!0,size:22,font:"Arial"}),new r({text:`  ·  ${x(a.createdAt)}`,size:20,color:"888888",font:"Arial"})],spacing:{before:o>0?300:100,after:100}}));const p=m(a.content).split(`
11`);for(const g of p)e.push(new n({children:[new r({text:g,size:22,font:"Arial"})],spacing:{after:60}}));o<t.posts.length-1&&e.push(new n({border:{bottom:{style:s.SINGLE,size:3,color:"E0E0E0",space:1}},spacing:{after:100},children:[]}))});const i=new u({styles:{default:{document:{run:{font:"Arial",size:22}}}},sections:[{properties:{page:{margin:{top:1440,right:1440,bottom:1440,left:1440}}},children:e}]}),c=await h.toBlob(i),l=t.title.replace(/[^a-zA-Z0-9áčďéěíňóřšťúůýžÁČĎÉĚÍŇÓŘŠŤÚŮÝŽäöüÄÖÜß\s-]/g,"").replace(/\s+/g,"_").substring(0,60);d.saveAs(c,`${l}.docx`)}export{E as exportThreadAsDocx};

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.