1import{a as L}from"./chunk-BPOYHNOQ.js";import{g as A,h as V,j as $,q as z}from"./chunk-IUCSSG42.js";import{$a as f,Aa as D,Bb as g,Da as s,Hb as S,J as y,Kb as F,Lb as T,Na as P,R as _,Ra as k,Ua as M,W as m,X as p,ab as w,bb as h,cb as x,db as C,ib as r,j as E,jb as d,kb as O,lb as v,mb as b,rb as u,sb as a,zb as c}from"./chunk-3COEIBHW.js";var I=(()=>{let n=class n{constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)}};n.\u0275fac=function(e){return new(e||n)(P(V,16))},n.\u0275pipe=M({name:"safeUrl",type:n,pure:!0});let i=n;return i})();function U(i,n){if(i&1&&(r(0,"span",9),c(1),d()),i&2){let o=a(2).$implicit;s(),g(" ",o.data.description," ")}}function B(i,n){if(i&1){let o=v();r(0,"div",6)(1,"div",7)(2,"span",8),c(3),d(),f(4,U,2,1,"span",9),d(),r(5,"div",10)(6,"button",11),u("click",function(){m(o);let e=a().$implicit,l=a(2);return p(l.setActiveData(l.url,e.directus_files_id))}),c(7," Anzeigen "),d(),r(8,"button",12),u("click",function(){m(o);let e=a().$implicit,l=a(2);return p(l.openDownload(l.url,e.directus_files_id))}),c(9," Download "),d()()()}if(i&2){let o=a().$implicit;s(3),g(" ",o.data.title," "),s(),w(o.data.description?4:-1)}}function R(i,n){if(i&1&&f(0,B,10,2,"div",6),i&2){let o=n.$implicit,t=a().$implicit;w(o.data.tags&&o.data.tags.includes(t)?0:-1)}}function q(i,n){if(i&1&&(r(0,"div",2)(1,"h3",4),c(2),d(),r(3,"div",5),x(4,R,1,1,null,null,h),d()()),i&2){let o=n.$implicit,t=a();s(),b("id",S("download-",o)),s(),g(" ",o," "),s(2),C(t.files)}}function G(i,n){if(i&1){let o=v();r(0,"div",13),u("click",function(){m(o);let e=a();return p(e.restetActiveData())}),r(1,"div",14),O(2,"object",15),F(3,"safeUrl"),r(4,"button",16),u("click",function(){m(o);let e=a();return p(e.restetActiveData())}),c(5," schlie\xDFen "),d()()()}if(i&2){let o=a();s(2),b("data",T(3,1,o.activeData),D)}}var et=(()=>{let n=class n{constructor(){this.state=_(z),this.route=_($),this.titleService=_(A),this.unsubscribeAll=new E,this.headers=[],this.url=L.cmsUrl}directDownload(t,e){t.stopPropagation(),window.location.assign(e)}restetActiveData(){this.activeData=""}setActiveData(t,e){this.activeData=`${t}/assets/${e}`}openDownload(t,e){window.open(`${t}/assets/${e}?download`,"_blank")}ngOnInit(){this.state.getConf().downloads.status==="published"&&(this.files=this.state.getConf().downloads.files),this.files.sort((t,e)=>t.data.title.toLowerCase()>e.data.title.toLowerCase()?1:t.data.title.toLowerCase()<e.data.title.toLowerCase()?-1:0);for(let t of this.files)if(t.data.tags&&t.data.tags.length)for(let e of t.data.tags)this.headers.includes(e)||this.headers.push(e);else t.data.tags=["Allgemein"],this.headers.includes("Allgemein")||this.headers.push("Allgemein");this.route.data.pipe(y(this.unsubscribeAll)).subscribe({next:t=>{this.titleService.setTitle(t.title+` \xB7 ${this.state.getConf().appSettings.title.short}`)}})}ngOnDestroy(){this.unsubscribeAll.next(void 0),this.unsubscribeAll.complete()}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=k({type:n,selectors:[["app-download"]],decls:7,vars:1,consts:[[1,"container","page"],["id","download",1,"section"],[1,"sub-section"],[1,"pdf-viewer-wrapper"],[1,"sub-section__header",3,"id"],[1,"sub-section-content"],[1,"download"],[1,"download-content"],[1,"download-name"],[1,"download-description"],[1,"download-action"],["target","_blank",1,"nag_button","button-outline","secondary","button-sm","download-button",3,"click"],["target","_blank",1,"nag_button","button-outline","button-sm","download-button",3,"click"],[1,"pdf-viewer-wrapper",3,"click"],[1,"pdf-viewer-stack"],["id","pdfViewer","type","application/pdf","role","document",1,"viewer",3,"data"],[1,"nag_button","button-fill","pdf-close-button",3,"click"]],template:function(e,l){e&1&&(r(0,"div",0)(1,"section",1)(2,"h2"),c(3,"Formulare & Dokumente"),d(),x(4,q,6,3,"div",2,h),f(6,G,6,3,"div",3),d()()),e&2&&(s(4),C(l.headers),s(2),w(l.activeData?6:-1))},dependencies:[I],styles:["#download[_ngcontent-%COMP%]{position:relative}.sub-section-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.sub-section__header[_ngcontent-%COMP%]{margin-top:3rem;margin-bottom:1rem}.sub-section[_ngcontent-%COMP%]:first-of-type .sub-section__header[_ngcontent-%COMP%]{margin-top:0}.download[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;gap:.5rem;padding:.5rem 0rem}.download[_ngcontent-%COMP%]:not(:last-of-type){border-bottom:.075rem solid var(--gray-200)}.download-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}
1.download-name[_ngcontent-%COMP%]{width:fit-content;font-size:1rem}.download-description[_ngcontent-%COMP%]{font-size:.75rem;font-style:italic;color:var(--gray-800)}.download-action[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.download-button[_ngcontent-%COMP%]{text-decoration:none}.pdf-viewer-wrapper[_ngcontent-%COMP%]{position:fixed;top:0;left:0;margin:auto 0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#0003;z-index:10000}.pdf-viewer-stack[_ngcontent-%COMP%]{width:50%;height:100%;display:flex;flex-direction:column;align-items:center;gap:1rem}#pdfViewer[_ngcontent-%COMP%]{margin-top:5dvh;aspect-ratio:21/29;width:100%;height:auto;max-height:85dvh;border-radius:var(--border-radius);filter:drop-shadow(0 0 .5rem rgba(0,0,0,.2))}@media screen and (max-width: 1200px){.pdf-viewer-stack[_ngcontent-%COMP%]{width:75%}}@media screen and (max-width: 992px){.pdf-viewer-wrapper[_ngcontent-%COMP%]{margin:0}.pdf-viewer-stack[_ngcontent-%COMP%]{width:100%;height:100%}#pdfViewer[_ngcontent-%COMP%]{width:100%;height:100dvh;max-height:100dvh;aspect-ratio:1;margin:0}.pdf-close-button[_ngcontent-%COMP%]{position:absolute;bottom:1rem}}@media screen and (max-width: 768px){.pdf-close-button[_ngcontent-%COMP%]{position:absolute;left:50%;right:unset;transform:translate(-50%);bottom:1rem}}"]});let i=n;return i})();export{et as DownloadComponent};
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.