1import{G as y,j as g,N as O,aY as I,aZ as w,a_ as E,P as l,O as C,a$ as k,al as F,_ as N,r as u,o as d,c as p,a as h,w as T,g as L,t as b,h as v,$ as q}from"./index-BpyDjooP.js";var B=Object.defineProperty,D=Object.getOwnPropertyDescriptor,a=(o,e,t,i)=>{for(var n=i>1?void 0:i?D(e,t):e,s=o.length-1,c;s>=0;s--)(c=o[s])&&(n=(i?c(e,t,n):c(n))||n);return i&&n&&B(e,t,n),n};const m=y("edition");let r=class extends g(O,I){constructor(){super(...arguments),this.defaultIcon={style:"light",name:"follow"},this.solidIcon={style:"solid",name:"follow"}}get entriesWithOptions(){let e=this.subEntries;return e!=null&&e.length?(this.orderedByTitle&&e.sort((t,i)=>(t.title??"").localeCompare(i.title??"")),this.hasIcon&&!this.currentEdition.disableMyNews&&(e=this.mapIcon(e)),e=e.filter(t=>t==null?void 0:t.link).map(t=>{if("identifier"in t){const i={...t};return i.link=w(t.link??""),i}return t}),e):[]}get anchorId(){var e;return(e=this.id)==null?void 0:e.replace(/[^a-zA-Z0-9-_]/g,"")}isCurrentFavorite(e){return e?E.isCurrentFavorite(e):!1}mapIcon(e){const t=[];return e.forEach(i=>{var s;const n={children:[],...i};n.uniqueName=i.uniqueName||i.uniqueId||i.identifier||"",n.icon=this.isCurrentFavorite(n.uniqueName)?this.solidIcon:this.defaultIcon,(s=n.children)!=null&&s.length&&(n.children=this.mapIcon(n.children)),t.push(n)}),t}handleListEntryClick(e){e&&"link"in e&&e.link&&this.navigate(e.link)}buildFavoriteFromEntry(e){const t="uniqueName"in e?e.uniqueName:null,i="identifier"in e?e.identifier:null;return{url:(e==null?void 0:e.link)||"",uniqueId:(t??i)||"",editionShortcut:this.editionShortcut,name:(e==null?void 0:e.title)||""}}toggleCurrentFavorite(e){if(!e.link)return;const t=this.buildFavoriteFromEntry(e);this.toggleFavorite(t)}};a([m.Getter("getShortcut")],r.prototype,"editionShortcut",2);a([m.Getter("getEdition")],r.prototype,"currentEdition",2);a([l()],r.prototype,"header",2);a([l({required:!0})],r.prototype,"id",2);a([l({required:!0})],r.prototype,"subEntries",2);a([l({default:!1,type:Boolean})],r.prototype,"removeIconSpacing",2);a([l({default:!1,type:Boolean})],r.prototype,"orderedByTitle",2);a([l({default:!1,type:Boolean})],r.prototype,"hasIcon",2);a([l({default:!1,type:Boolean})],r.prototype,"expandAccordionItems",2);r=a([C({name:"TypeOverviewListEntry",components:{DnmAccordion:k,DnmHeadline:F}})],r);const P={class:"typeOverviewListEntry"},S=["id"],$={key:0};function j(o,e,t,i,n,s){const c=u("DnmHeadline"),_=u("DnmAccordion");return d(),p("div",P,[o.entriesWithOptions.length>0?(d(),p("section",{key:0,id:o.anchorId},[o.header?(d(),p("header",$,[h(c,{class:"typeOverviewListEntry__title","data-testid":"type-overview-listentry-headline","headline-style":"headline3"},{default:T(()=>[L(b(o.header),1)]),_:1})])):v("",!0),q("section",null,[h(_,{onOnIconClick:o.toggleCurrentFavorite,onOnTextClick:o.handleListEntryClick,"separate-handlers":"","hover-effect":"",entries:o.entriesWithOptions,"expand-all":o.expandAccordionItems,"remove-icon-link-left-spacing":o.removeIconSpacing,class:"typeOverviewListEntry__item","data-testid":"type-overview-listentry-accordion"},null,8,["onOnIconClick","onOnTextClick","entries","expand-all","remove-icon-link-left-spacing"])])],8,S)):v("",!0)])}const x=N(r,[["render",j],["__scopeId","data-v-a5799f56"]]);var f;try{"__c"in r&&((f=r.__c).componentFileName??(f.componentFileName=Object.create(null)),Object.defineProperty(r.__c,"componentFileName",{value:"app/components/typeOverview/TypeOverviewListEntry.vue"}))}catch(o){console.error("injectFileNamePlugin",o)}export{x as T};
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.