PageSourceSearch

https://www.talanx.com/chunk-OOPXI4KU.js

js talanx.com collected 2026-09-27 21:43:40 UTC 13,946 bytes, 1 lines download raw bytes

1import{a as ye,b as xe}from"./chunk-YZIETF7H.js";import{Ab as B,C as ae,D as ie,Db as D,E as U,Eb as Y,Ga as g,H as re,Ha as K,Hb as X,Ia as T,Ja as se,Jc as A,Kc as ge,Mc as he,N as r,Qa as ce,S as O,Ta as pe,Tb as _e,Xa as h,Ya as C,Yb as H,Za as de,a as Z,ab as j,b as G,cb as me,da as f,db as Q,fa as v,g as J,ga as oe,ha as le,i as M,ia as P,j as N,ja as L,ka as _,la as l,lb as ue,ma as s,n as W,na as b,ob as fe,p as w,r as te,sa as $,t as ne,ua as I,v as m,wa as c,x as F,y as k,yb as ve}from"./chunk-VVX67GLH.js";var Ee=(n,t)=>t.id,Se=(n,t)=>t.identifier;function we(n,t){if(n&1&&(l(0,"h3",1),g(1),s()),n&2){let e=c().$implicit;r(),T(" ",e.dividerHeadline," ")}}function Fe(n,t){if(n&1&&(l(0,"p",7),g(1),h(2,"translate"),s()),n&2){let e=c().$implicit;r(),se(" ",C(2,2,"calendar.from")," ",e.time," ")}}function ke(n,t){if(n&1&&(l(0,"div",17),b(1,"app-link",18),h(2,"translate"),s()),n&2){let e=c().$implicit;r(),_("label",C(2,5,"calendar.downloadReport"))("target",e.url)("newTab",!0)("type","link")("iconPosition","before")}}function Pe(n,t){if(n&1&&(l(0,"div",17),b(1,"app-link",19),h(2,"translate"),s()),n&2){let e=c().$implicit;r(),_("label",(e==null?null:e.title)??C(2,4,"calendar.moreInformation"))("target",e.route)("type","link")("iconPosition","before")}}function Le(n,t){if(n&1&&(f(0,ke,3,7,"div",17),f(1,Pe,3,6,"div",17)),n&2){let e=t.$implicit;v(e.seoRoute?0:-1),r(),v(e.route?1:-1)}}function $e(n,t){if(n&1&&(l(0,"div",15),b(1,"app-link",18),h(2,"translate"),s()),n&2){let e=t.$implicit;r(),_("label",e.text??C(2,5,"calendar.moreInformation"))("target",e.link)("newTab",!0)("type","link")("iconPosition","before")}}function Ie(n,t){if(n&1&&P(0,$e,3,7,"div",15,le),n&2){let e=c().$implicit;L(e.externalDocumentsLinks)}}function Ve(n,t){if(n&1&&(l(0,"div",15),b(1,"app-link",18),h(2,"translate"),s()),n&2){let e=c().$implicit;r(),_("label",C(2,5,"calendar.moreInformation"))("target",e.externalLink)("newTab",!0)("type","link")("iconPosition","before")}}function Re(n,t){if(n&1&&(l(0,"div",16)(1,"span",20),g(2),h(3,"translate"),s(),b(4,"app-link",21),s()),n&2){let e=c().$implicit;r(2),T(" ",C(3,5,"calendar.share")),r(2),_("label","Linkedin")("target",e.linkedinUrl)("type","linkedin")("iconPosition","before")}}function Me(n,t){if(n&1&&(f(0,we,2,1,"h3",1),l(1,"div",2)(2,"div",3),b(3,"div",4),l(4,"p",5),g(5),s(),l(6,"p",6),g(7),s(),f(8,Fe,3,4,"p",7),l(9,"p",7),g(10),s()(),l(11,"div",8)(12,"div",9)(13,"div",10),b(14,"app-headline",11)(15,"app-headline",12),l(16,"div",13)(17,"div",14),P(18,Le,2,2,null,null,Se),f(20,Ie,2,0),s(),f(21,Ve,3,7,"div",15),f(22,Re,5,7,"div",16),s()()()()()),n&2){let e=t.$implicit;v(e.dividerHeadline?0:-1),r(5),K(e.day),r(2),T(" ",e.monthYear," "),r(),v(e.time?8:-1),r(2),K(e.subline),r(4),_("content",e.tagline),r(),_("content",e.headline),r(3),L(e.links),r(2),v((e==null||e.externalDocumentsLinks==null?null:e.externalDocumentsLinks.length)>0?20:-1),r(),v(e.externalLink?21:-1),r(),v(e.linkedinUrl?22:-1)}}function Ne(n,t){if(n&1){let e=$();l(0,"div",0),I("prefetch",function(){let i=F(e).$index,o=c(2);return k(o.prefetchBundle(i))}),s(),P(1,Me,23,10,null,null,Ee)}if(n&2){let e=t.$implicit,a=c(2);_("enabled",a.enablePrefetch()),r(),L(e)}}function Ue(n,t){if(n&1&&(l(0,"app-grid-container"),P(1,Ne,3,1,null,null,oe),s()),n&2){let e=c();r(),L(e.bundles())}}var q=class n{translate=m(D);inputParams=Q.required();enablePrefetch=Q(!0);fetchDownloads=me();bundles=j(()=>{let t=[],e=this.inputParams()??[],a=[],i=[];e.map(p=>{p.isOlder?a.push(p):i.push(p)}),i.reverse(),i.map((p,y)=>{p&&(y===0?p.dividerHeadline=this.translate.instant("calendar.upcomingEvents"):p.dividerHeadline="")});let o=i.concat(a);for(let p=0;p<o.length;p+=this.BUNDLE_SIZE)t.push(o.slice(p,p+this.BUNDLE_SIZE));return t});BUNDLE_SIZE=6;prefetchBundle(t){let e=this.bundles()[t];if(!e)return;let a=Array.from(new Set(e.flatMap(i=>i.downloadUrls??[]).filter(Boolean)));this.fetchDownloads.emit(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=O({type:n,selectors:[["app-event-teaser"]],inputs:{inputParams:[1,"inputParams"],enablePrefetch:[1,"enablePrefetch"]},outputs:{fetchDownloads:"fetchDownloads"},decls:1,vars:1,consts:[["data-prefetch-trigger","",1,"col-span-3","w-px","h-px","opacity-0","pointer-events-none",3,"prefetch","enabled"],[1,"text-heading-l","text-grey-900","mb-components-xl"],[1,"md:flex","mb-components-xxl","group"],[1,"bg-grey-web","md:w-[198px]","p-components-l","text-center","text-grey-900","relative","group-hover:bg-red-1000","group-hover:text-white"],[1,"absolute","right-0","top-0","w-6","h-6","bg-[linear-gradient(45deg,var(--color-red-1000)_50%,var(--color-white)_50%)]","group-hover:bg-[linear-gradient(45deg,var(--color-white)_50%,var(--color-white)_50%)]"],[1,"text-heading-xxxxl"],[1,"text-heading-m","whitespace-nowrap"],[1,"text-body-xs"],[1,"w-full"],[1,"flex","flex-col","justify-center","h-full"],[1,"p-components-xl","pb-components-l","border-t","border-b","border-grey-light","teaser-group-hover-shadow"],["classType","text-body-xs-strong text-cta-tagline mb-components-s",3,"content"],["classType","text-heading-s-strong text-grey-900 mb-components-m",3,"content"],[1,"md:flex","justify-between"],[1,"flex"],[1,"flex","md:justify-center","mb-components-xl","md:mb-0"],[1,"flex","ml-auto"],[1,"flex","md:justify-center","mb-components-xl","md:mb-0","mr-components-xxl"],["classType","text-cta-m-strong text-cta-link flex items-center fill-red-1000",3,"label","target","newTab","type","iconPosition"],["classType","text-cta-m-strong text-cta-link flex items-center fill-red-1000",3,"label","target","type","iconPosition"],[1,"mr-components-m"],["classType","text-cta-m-strong text-cta-link flex items-center fill-grey-1300",3,"label","target","type","iconPosition"]],template:function(e,a){if(e&1&&f(0,Ue,3,0,"app-grid-container"),e&2){let i;v((i=a.inputParams())?0:-1,i)}},dependencies:[ge,A,he,ye,Y],encapsulation:2})};var Oe="https://www.linkedin.com/shareArticle",V=class n{translate=m(D);dataService=m(H);router=m(B);platformId=m(re);document=m(ae);
1selectedLanguageSubject=new J(1);formValueSubject=new J(1);categoryConfig$=this.selectedLanguageSubject.pipe(M(()=>this.mapCategoryConfig()),w({bufferSize:1,refCount:!0}));yearConfig$=this.selectedLanguageSubject.pipe(M(()=>this.mapYearConfig()),w({bufferSize:1,refCount:!0}));eventResult$=N([this.formValueSubject,this.selectedLanguageSubject]).pipe(te(([t,e])=>this.loadEvents(t,e)),w({bufferSize:1,refCount:!0}));events$=this.eventResult$.pipe(M(t=>this.mapEventResults(t)),w({bufferSize:1,refCount:!0}));setSelectedLanguage(t){this.selectedLanguageSubject.next(t)}setFormValue(t){this.formValueSubject.next(t)}mapEventResults(t){let e=!1;return{teaser:t?.data?._embedded?.["rh:doc"].map((i,o)=>{let p=i?.formData?.tt_startDateTime?.value??i?.formData?.tt_startDate?.value,y=new Date(p),R=this.isPast(y),ee=this.isAllDayEvent(i),E="",u="";if(R&&!e&&(e=!0,u=this.translate.instant("calendar.pastEvents")),!R){let d=encodeURIComponent(this.getCurrentUrl());E=`${Oe}?mini=true&title=${encodeURIComponent(i?.formData?.tt_title?.value)}&url=${d}`}let x=i?.formData?.tt_documentsCatalog?.value.filter(d=>d?.formData?.lt_reference?.value?.url).map(d=>({link:d?.formData?.lt_reference?.value?.url,text:d?.formData?.lt_text?.value??d?.formData?.lt_reference?.value?.url}))??[],S=i?.formData?.tt_documentsCatalog?.value.filter(d=>d?.formData?.lt_url?.value).map(d=>({link:d?.formData?.lt_url?.value,text:d?.formData?.lt_text?.value??d?.formData?.lt_url?.value}))??[],z=i?.formData?.tt_shareTargetCatalog?.value.flatMap(d=>d?.formData?.lt_reference?.value?.url??[]),Te=[...x];return{id:i.identifier,tagline:i?.formData?.tt_category?.value?.label,headline:i?.formData?.tt_title?.value,subline:i?.formData?.tt_timeText?.value,dividerHeadline:u,time:ee?"":this.formatGermanTime(y),day:this.formatDay(y),monthYear:this.formatMonthYear(y),downloadUrls:Te,links:z,externalDocumentsLinks:S,linkedinUrl:E,externalLink:i?.formData?.tt_documentsCatalog?.value?.[0]?.formData?.lt_url?.value,isOlder:R}}),size:t.data?._size,totalEntries:t.data?._total_pages}}mapYearConfig(){let t=new Date().getFullYear(),e=t-5,a=t+1,i=[];for(let o=a;o>=e;o--)i.push({value:o.toString(),label:o.toString()});return i.unshift({value:"all",label:this.translate.instant("calendar.allYears")}),i.push({value:"old",label:this.translate.instant("calendar.olderThanFive")}),{id:"year",label:this.translate.instant("calendar.date"),options:i}}mapCategoryConfig(){return{id:"category",label:this.translate.instant("calendar.category"),options:[{value:"",label:this.translate.instant("calendar.allCategories")},{value:"results",label:this.translate.instant("calendar.results")},{value:"capitalMarketsDay",label:this.translate.instant("calendar.capital")},{value:"generalMeeting",label:this.translate.instant("calendar.generalMeeting")},{value:"roadshow",label:this.translate.instant("calendar.roadshow")},{value:"conference",label:this.translate.instant("calendar.conference")},{value:"analystWorkshop",label:this.translate.instant("calendar.analystWorkshop")},{value:"press",label:this.translate.instant("calendar.press")}]}}loadEvents(t,e){let a=this.createParametersForNewsRequest(t,e);return this.dataService.getClientFilteredContent(a)}createParametersForNewsRequest(t,e){let a=this.setFilterParameters(t,e);return new fe().set("pagesize",100).set("count",!0).append("sort",JSON.stringify({"formData.tt_startDateTime.value":-1,"formData.tt_startDate.value":-1})).append("filter",JSON.stringify({entityType:"events"})).append("filter",a)}setFilterParameters(t,e){let a={"locale.identifier":e};if(t.year&&t.year!=="all"&&t.year!=="old"&&(a.$or=[{"formData.tt_startDateTime.value":{$regex:`^${t.year}`}},{"formData.tt_startDate.value":{$regex:`^${t.year}`}}]),t.year&&t.year==="old"){let i="2021-01-01T00:00:00Z";a.$or=[{"formData.tt_startDateTime.value":{$lte:i}},{$and:[{$or:[{"formData.tt_startDateTime.value":null},{"formData.tt_startDateTime.value":{$exists:!1}}]},{"formData.tt_startDate.value":{$lte:i}}]}]}return t.category&&(a["formData.tt_category.value.identifier"]=t.category),JSON.stringify(a)}isPast(t){return t.getTime()<Date.now()}isAllDayEvent(t){return t?.formData?.tt_allDay?.value?.[0]?.identifier==="yes"}formatGermanTime(t){return new Intl.DateTimeFormat("de-DE",{timeZone:"Europe/Berlin",hour:"2-digit",minute:"2-digit"}).format(t)}formatDay(t){return String(t.getDate()).padStart(2,"0")}formatMonthYear(t){let e=t.getMonth()+1;return`${this.translate.instant(`months.${e}`)} ${t.getFullYear()}`}getCurrentUrl(){if(!ue(this.platformId))return"";let t=this.document.location.origin,e=this.router.url;return t+e}static \u0275fac=function(e){return new(e||n)};static \u0275prov=ne({token:n,factory:n.\u0275fac})};var je=(n,t)=>({year:n,category:t});function Be(n,t){if(n&1){let e=$();l(0,"app-event-teaser",2),I("fetchDownloads",function(i){F(e);let o=c(3);return k(o.fetchDownloadsOnDemand(i))}),s()}if(n&2){let e=c(),a=c(2);_("inputParams",e)("enablePrefetch",a.enablePrefetch())}}function Ye(n,t){if(n&1&&(l(0,"app-grid-container")(1,"div",3),g(2),h(3,"translate"),s()()),n&2){let e=c(3);r(2),T(" ",de(3,1,"calendar.notFound",pe(4,je,e.filterValue().year,e.activeCategoryLabel()))," ")}}function He(n,t){n&1&&f(0,Be,1,2,"app-event-teaser",1)(1,Ye,4,7,"app-grid-container"),n&2&&v(t.length>0?0:1)}function Ae(n,t){if(n&1){let e=$();l(0,"app-search-filter",0),I("formChange",function(i){F(e);let o=c();return k(o.onFilterChange(i))}),s(),f(1,He,2,1)}if(n&2){let e,a=c();_("inputParams",a.filterConfig),r(),v((e=a.eventTeaserResult())?1:-1,e)}}var Ce=class n{dataService=m(H);router=m(B);route=m(ve);destroyRef=m(ie);translate=m(D);calendarService=m(V);eventTeaserResult=U([]);filterConfig;filterValue=U({category:"",year:new Date().getFullYear().toString()});activeCategoryLabel=j(()=>{let t=this.filterValue();return t.category&&this.filterConfig?this.filterConfig?.dropdownFilters?.[0]?.config?.options?.find(i=>i.value===t.category)?.label:""});enablePrefetch=U(!0);ngOnInit(){N([this.calendarService.categoryConfig$,this.calendarService.yearConfig$]).pipe(X(this.destroyRef)).subscribe(([t,e])=>this.initFormConfig(t,e)),this.calendarService.events$.pipe(X(this.destroyRef)).subscribe(t=>{this.eventTeaserResult.set(t.teaser??[]),queueMicrotask(()=>{this.enablePrefetch.set(!0)})}),this.setFormValuesBasedOnUrl()}onFilterChange(t){this.enablePrefetch.set(!1),this.calendarService.setFormValue(t)}fetchDownloadsOnDemand(t){let e=t.map(a=>a.link);this.dataService.getClientContent(e).pipe(W(1)).subscribe(a=>{this.eventTeaserResult.update(i=>i.map(o=>{let p=[...o.links??[],...o.downloadUrls?.map(u=>u.link)??[]].filter(u=>u!==void 0);if(!p.length)return o;let y=a?.filter(u=>p.some(x=>x?.includes?.(u.identifier)))??[],E=[...o.links??[],...y].filter((u,x,S)=>S.findIndex(z=>z.identifier===u.identifier)===x).map(u=>{let x=t.find(S=>S.link.includes(u.identifier));return x?G(Z({},u),{title:x.text}):u});return E.length===(o.links?.length??0)?o:G(Z({},o),{links:E})}))})}initFormConfig(t,e){let a=this.filterValue();this.filterConfig={dropdownFilters:[{config:t,value:a.category},{config:e,value:a.year}]}}setFormValuesBasedOnUrl(){this.route.queryParams.pipe(W(1)).subscribe(t=>{let e={};
1Object.keys(this.filterValue()).forEach(a=>{if(t.hasOwnProperty(a)){let i=t[a];e[a]=i}}),Object.keys(e).length!==0&&this.filterValue.set(e),this.calendarService.setFormValue(this.filterValue()),this.calendarService.setSelectedLanguage(this.translate.getCurrentLang().toUpperCase())})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=O({type:n,selectors:[["app-calendar-template"]],features:[ce([V])],decls:1,vars:1,consts:[[1,"block","mt-components-xxl",3,"formChange","inputParams"],[3,"inputParams","enablePrefetch"],[3,"fetchDownloads","inputParams","enablePrefetch"],[1,"mb-components-m"]],template:function(e,a){e&1&&f(0,Ae,2,2),e&2&&v(a.filterConfig?0:-1)},dependencies:[A,_e,q,xe,Y],encapsulation:2})};export{Ce as a};

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.