1import{a as he}from"./chunk-BY7DWJFM.js";import{a as ge}from"./chunk-3BDQUNHN.js";import"./chunk-OMXFITVG.js";import{a as pe,b as de}from"./chunk-CV3TCMGY.js";import"./chunk-GGXVIKE5.js";import"./chunk-4XRLQYKO.js";import"./chunk-T5I2N3PP.js";import"./chunk-4F3AFLZA.js";import"./chunk-4TPXBHVW.js";import{a as w}from"./chunk-BP5XV45E.js";import{b as me}from"./chunk-V46N6H7E.js";import{a as se}from"./chunk-33M6M4SA.js";import{a as D}from"./chunk-UGVE6YXJ.js";import"./chunk-BPCH5QQL.js";import{c as le}from"./chunk-OFZ56EOY.js";import"./chunk-ZOTIPOIQ.js";import"./chunk-PPMQE2JW.js";import"./chunk-T2OPVJ5Z.js";import"./chunk-S67CWVU3.js";import"./chunk-UNY2DPAG.js";import"./chunk-ZHIQ2TBV.js";import{a as T}from"./chunk-OD4X62ZJ.js";import"./chunk-PN56XZHR.js";import{b as ce}from"./chunk-GTTTZCRC.js";import"./chunk-ERZRSWAB.js";import{a as S,b as L}from"./chunk-ELSBIOH2.js";import"./chunk-PRCAIWPZ.js";import"./chunk-MS7NACE6.js";import{g as re}from"./chunk-ATFNEUVQ.js";import{$ as W,Aa as Z,Db as te,Eb as h,Fb as f,Hb as V,Ib as N,Jb as B,Jc as j,Kb as O,Lb as l,Mb as s,Nb as m,Ob as y,P as U,Pb as F,Qb as ne,Ub as R,Va as M,Vb as Q,Wb as $,Xb as ie,Yb as c,_a as r,ac as E,bc as v,cc as x,ea as g,ed as k,hd as A,ic as ae,ka as _,la as C,lc as u,ma as Y,mb as P,mc as b,nc as oe,r as J,rb as ee,rc as z,xc as p,yc as d}from"./chunk-MFXMOPXL.js";import{a as K,b as X}from"./chunk-7BXBZ5JU.js";var H=class{question;answer;category;showAnswer;publicationDate;expirationDate;availableLanguages;sortValue;"mgnl:created";constructor(t){this.question=t.question,this.answer=t.answer,this.category=t.category,this.showAnswer=t.showAnswer,this.publicationDate=t.publicationDate,this.expirationDate=t.expirationDate,this.availableLanguages=t.availableLanguages,this.sortValue=t.sortValue,this["mgnl:created"]=t["mgnl:created"]}};var I=class i{httpClient=g(re);magnoliaService=g(L);endpoint=`${S.faqBase}`;cache=new Map;getFaqs(){let t=this.magnoliaService.getMagnoliaContext().searchParams.lang,e=`${this.endpoint}?lang=${t}`,n=this.cache.get(e);if(n)return n;let a=this.httpClient.get(e).pipe(J(o=>(o.results.map(G=>new H(G)),o.results)),U(1));return this.cache.set(e,a),a}static \u0275fac=function(e){return new(e||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var ye=["accordionContent"],ve=["wrapper"],q=class i extends ge{title;content;category;accordionContent;wrapper;toggleAccordion(t){if(t?.stopPropagation(),this.accordionContent.nativeElement){let e=this.accordionContent.nativeElement.scrollHeight;this.accordionContent.nativeElement.clientHeight===0?(this.accordionContent.nativeElement.style.maxHeight=e+"px",this.wrapper.nativeElement.classList.add("open"),setTimeout(()=>{this.accordionContent.nativeElement.style.maxHeight=null},250)):(this.accordionContent.nativeElement.style.maxHeight=e+"px",this.wrapper.nativeElement.classList.remove("open"),setTimeout(()=>{this.accordionContent.nativeElement.style.maxHeight="0px"},20))}}get isOpen(){return(this.accordionContent?.nativeElement?.clientHeight||0)!==0}static \u0275fac=(()=>{let t;return function(n){return(t||(t=Z(i)))(n||i)}})();static \u0275cmp=P({type:i,selectors:[["app-accordion-faq"]],viewQuery:function(e,n){if(e&1&&E(ye,5)(ve,5),e&2){let a;v(a=x())&&(n.accordionContent=a.first),v(a=x())&&(n.wrapper=a.first)}},inputs:{title:"title",content:"content",category:"category"},features:[ee],decls:17,vars:16,consts:[["wrapper",""],["accordionContent",""],[1,"accordeon","container-fluid",3,"id"],[1,"accordeon-item"],["tabindex","0","data-cy","faq-accordion-title",1,"accordeon-header",3,"click","keydown.enter"],[1,"accordeon-title","left","faq-question"],[1,"right"],[1,"accordeon-content-wrapper"],["data-cy","faq-accordion-content",1,"accordeon-content"],[1,"row"],[1,"col-12","col-lg-8",3,"innerHTML"]],template:function(e,n){e&1&&(y(0,"div",2)(1,"div",3,0)(3,"div",4),p(4,"translate"),ie("click",function(o){return n.toggleAccordion(o)})("keydown.enter",function(o){return n.toggleAccordion(o)}),y(5,"span",5),u(6),F(),y(7,"span",6),u(8),F()(),y(9,"div",7,1)(11,"div",8)(12,"div",9),ne(13,"div",10),p(14,"resolvePageLinks"),p(15,"async"),p(16,"safeHtml"),F()()()()()),e&2&&(Q("id",z("id-",n.id))("id",z("id-",n.id)),r(3),te("aria-label",d(4,8,n.isOpen?"accordion.close":"accordion.open")),r(3),b(n.title),r(2),oe(" ",n.category," "),r(5),Q("innerHTML",d(16,14,d(15,12,d(14,10,n.content))),M))},dependencies:[A,k,ce,T,D],styles:[".accordeon-content[_ngcontent-%COMP%]{padding:0 1.5rem 1.5rem}.accordeon-content[_ngcontent-%COMP%]{padding-bottom:1rem}.accordeon-content[_ngcontent-%COMP%] a:focus-visible{outline:0;box-shadow:0 0 0 .25rem #02319240}@media all and (max-width:991px){.accordeon-content[_ngcontent-%COMP%]{padding:0}}.accordeon-content-wrapper[_ngcontent-%COMP%] .col-12[_ngcontent-%COMP%]{padding-bottom:2rem}.right[_ngcontent-%COMP%]{margin-left:auto;margin-right:2.5rem;white-space:nowrap;flex:0 0 auto;font-size:.875rem}@media all and (max-width:780px){.right[_ngcontent-%COMP%]{display:none}}"]})};function xe(i,t){if(i&1&&(l(0,"h1"),u(1),s()),i&2){let e=c(2);r(),b(e.title)}}function be(i,t){if(i&1&&(m(0,"div",10),p(1,"resolvePageLinks"),p(2,"async"),p(3,"safeHtml")),i&2){let e=c(2);O("innerHTML",d(3,5,d(2,3,d(1,1,e.abstract))),M)}}function we(i,t){if(i&1&&(l(0,"div",2)(1,"div",8)(2,"div",9)(3,"header"),h(4,xe,2,1,"h1"),h(5,be,4,7,"div",10),s()()()()),i&2){let e=c();r(4),f(e.title?4:-1),r(),f(e.abstract&&!e.hideAbstract?5:-1)}}function qe(i,t){if(i&1){let e=R();m(0,"span",15),Y(),l(1,"svg",16),$("keydown",function(a){_(e);let o=c(3);return C(o.handleKeydown(a))})("click",function(a){_(e);let o=c().$implicit;return c(2).toggleCategory(o["@id"]),C(a.stopPropagation())}),m(2,"use",17),s()}}function Me(i,t){if(i&1){let e=R();l(0,"mat-chip",12),$("click",function(){let a=_(e).$implicit,o=c(2);return C(o.toggleCategory(a["@id"]))})("keydown.enter",function(){let a=_(e).$implicit,o=c(2);return C(o.toggleCategory(a["@id"]))}),l(1,"span",13)(2,"span",14),u(3),s(),h(4,qe,3,0),s()()}if(i&2){let e=t.$implicit,n=c(2);ae("active",n.activeCategories.includes(e["@id"])),r(3),b(e.displayName),r(),f(n.activeCategories.includes(e["@id"])?4:-1)}}function Pe(i,t){if(i&1&&(l(0,"div",3)(1,"mat-chip-set"),N(2,Me,5,4,"mat-chip",11,V),s()()),i&2){let e=c();r(2),B(e.categories)}}function Oe(i,t){if(i&1&&m(0,"app-accordion-faq",6,0),i&2){let e=t.$implicit,n=c();O("title",e.question)("content",e.answer)("category",n.getCategoryName(e.category))("hidden",n.activeCategories.length&&!n.activeCategories.includes(e.category))}}
1var ue=class i{faqService=g(I);magnoliaService=g(L);faqs=[];categories=[];activeCategories=[];currentLanguage="";title;abstract;hideAbstract;main=j();faqCategories=j();accordions;ngOnInit(){this.currentLanguage=this.magnoliaService.getMagnoliaContext().currentLanguage||"de",this.magnoliaService.fetchCategories(this.magnoliaService.getMagnoliaContext(),"/faq",S.categoryBase).then(t=>{t?.["@nodes"]?.map(e=>{let n=t[e];if(n){let a={id:n["@id"]||n["@name"],displayName:n.displayName||n["@name"],availableLanguages:n.availableLanguages||[]};(a.availableLanguages.length===0||this.faqCategories().map(o=>o["@name"]).includes(e)&&a.availableLanguages?.includes(this.currentLanguage))&&this.categories.push(t[e])}}),this.faqService.getFaqs().subscribe(e=>{let n=e.filter(a=>this.categories.some(o=>o["@id"]===a.category));this.faqs=n.map(a=>X(K({},a),{showAnswer:!1,category:a.category})),this.sortResults()})})}toggleCategory(t){let e=this.activeCategories.indexOf(t);e>-1?this.activeCategories.splice(e,1):this.activeCategories.push(t)}handleKeydown(t){(t.key==="Enter"||t.key===" ")&&t.target.click()}resetFilter(){this.activeCategories=[]}get visibleFaqs(){return this.faqs.filter(t=>this.isFaqVisible(t))}isFaqVisible(t){return!(!t.availableLanguages.includes(this.currentLanguage)||t.publicationDate&&w.fromISO(t.publicationDate)>=w.now()||t.expirationDate&&w.fromISO(t.expirationDate)<=w.now())}getCategoryName(t){return this.categories.find(e=>e["@id"]===t)?.displayName||""}sortResults(){this.faqs.sort((t,e)=>{let n=t.sortValue??Number.MAX_SAFE_INTEGER,a=e.sortValue??Number.MAX_SAFE_INTEGER;return n!==a?n-a:t["mgnl:created"]<e["mgnl:created"]?1:-1})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=P({type:i,selectors:[["app-faq"]],viewQuery:function(e,n){if(e&1&&E(q,5),e&2){let a;v(a=x())&&(n.accordions=a)}},inputs:{title:"title",abstract:"abstract",hideAbstract:"hideAbstract",main:[1,"main"],faqCategories:[1,"faqCategories"]},decls:13,vars:3,consts:[["accordion",""],[1,"container-fluid","top-container"],[1,"row"],[1,"faq-kategorien","container-fluid"],[1,"faq-toggle-all","container-fluid"],[1,"faq-liste"],[3,"title","content","category","hidden"],[3,"content"],[1,"col-12","col-lg-8"],[1,"t3ce","frame-type-header","container-fluid"],[1,"lead",3,"innerHTML"],["tabindex","0","selectable","true","data-cy","faq-chip",1,"mat-chip-single",3,"active"],["tabindex","0","selectable","true","data-cy","faq-chip",1,"mat-chip-single",3,"click","keydown.enter"],[1,"filter-chip-content"],[1,"filter-chip-label","select-menu-filter-chip-label"],[1,"chip-divider"],["tabindex","0",1,"remove-filter",3,"keydown","click"],["href","#icon-close"]],template:function(e,n){e&1&&(m(0,"app-breadcrumb"),l(1,"div",1),h(2,we,6,2,"div",2),s(),h(3,Pe,4,0,"div",3),l(4,"div",4),m(5,"app-expand-links"),s(),l(6,"div",5),N(7,Oe,2,4,"app-accordion-faq",6,V),s(),l(9,"div")(10,"main"),m(11,"editable-area",7),s()(),m(12,"app-footer")),e&2&&(r(2),f(n.title||n.abstract&&!n.hideAbstract?2:-1),r(),f(n.categories.length>1?3:-1),r(4),B(n.visibleFaqs),r(4),O("content",n.main()))},dependencies:[A,q,se,me,de,pe,he,le,k,T,D],styles:[".mat-mdc-chip-set[_ngcontent-%COMP%]{max-width:100%}@media all and (max-width:780px){.mat-mdc-chip-set[_ngcontent-%COMP%]{margin-bottom:1rem}}.mat-mdc-chip-set[_ngcontent-%COMP%] .mdc-evolution-chip[_ngcontent-%COMP%]{margin:0}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;cursor:pointer;margin-right:24px;margin-bottom:12px;border:1px solid var(--iconomix-blue-finest)}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single.select-menu-filter[_ngcontent-%COMP%]{min-width:167px}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single.active[_ngcontent-%COMP%]{background-color:var(--iconomix-pelican-blue)!important;border-color:var(--iconomix-pelican-blue)!important}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single.active[_ngcontent-%COMP%] .filter-chip-label[_ngcontent-%COMP%]{margin-right:11px}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single.active.icon-turns-white[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:var(--iconomix-white)!important}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__cell--primary{max-width:100%}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary{padding:0;cursor:pointer;max-width:100%}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .mdc-evolution-chip__action--primary{max-width:100%}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .mdc-evolution-chip__text-label{max-width:100%;display:flex}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .filter-chip-content{height:30px;display:flex;max-width:100%;align-items:center;font-size:14px}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .filter-chip-content .chip-divider{width:3px;height:32px;background:var(--iconomix-white);margin:0 4px;display:inline-block}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .filter-chip-content .filter-chip-label{margin-left:11px;font-size:14px}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .filter-chip-content .filter-chip-label.select-menu-filter-chip-label{margin-left:3px}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .filter-chip-content .filter-chip-label.select-menu-filter-chip-label.category-filter-label{margin-right:0}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .filter-chip-content .filter-summary{margin-right:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%;min-width:0}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .remove-filter-select{padding:8px 12px 12px}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .remove-filter-select .remove-filter-select-icon{width:12px;height:12px;color:var(--iconomix-white)}.mat-mdc-chip-set[_ngcontent-%COMP%] .mat-chip-single[_ngcontent-%COMP%] .mdc-evolution-chip__action--primary .remove-filter{margin:8px 12px;width:12px;height:12px;color:var(--iconomix-white)}.faq-header-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:10px;align-self:stretch;margin-bottom:24px}.faq-title[_ngcontent-%COMP%]{color:var(--iconomix-black);font-family:Aaux Next,sans-serif;font-size:24px;font-weight:600;line-height:32px;margin:0}.faq-subtext[_ngcontent-%COMP%]{color:var(--iconomix-black);font-family:Aaux Next,sans-serif;font-size:16px;font-weight:400;line-height:24px;margin:0}"]})};export{ue as FaqComponent};
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.