PageSourceSearch

https://www.krups.de/chunk-JOAJKQQN.js

js krups.de collected 2026-09-24 19:09:40 UTC 6,952 bytes, 1 lines download raw bytes

1import{$ as V,P as U,Q as N,R}from"./chunk-AVFLSLTV.js";import{h}from"./chunk-YWLPE2YF.js";import{a as c}from"./chunk-FLVLCJTS.js";import{G as O,Xb as $,d as a,e as F,h as d,i as C,v}from"./chunk-TVUIQ6T2.js";import{Aa as p,Cc as B,Dc as I,Ec as M,Fa as f,Mc as D,Na as L,Oa as H,Tc as j,Va as k,Vb as r,Vc as u,Wc as E,Xc as P,ac as x,ae as _,d as w,db as y,n as W,ra as m,wc as T,xc as z}from"./chunk-VDJNVHIP.js";import{a as S,b}from"./chunk-NAIKXHWT.js";var A=(()=>{class t{constructor(){this.openChatEvent=new k}clickOpenChat(){this.openChatEvent.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function G(t){return t?.disclaimer?[{note:t.disclaimer,id:t.uid}]:t?.wrapperFootnote?[{note:t.wrapperFootnote,id:t.uid}]:[]}function J(t){switch(t){case"H1":return 1;case"H2":return 2;case"H3":return 3;case"H4":return 4;case"H5":return 5;case"H6":return 6;default:return 7}}var K=(()=>{class t{constructor(){this.baseStoreService=f(c),this.imageService=f(h)}toHeadingParagraph(e){if(!!!(e?.heading?.headline||e?.heading?.subline||e?.heading?.description||e?.headline||e?.subline||e?.description))return;let o=(this.baseStoreService.baseStore.brandsCorner??[]).find(s=>s.id===e?.brandCorner);return{data:{title:e?.heading?.headline??e?.headline??"",description:e?.heading?.description??e?.description??"",subtitle:e?.heading?.subline??e?.subline??"",media:this.imageService.normalizeMedia(e?.heading?.media),brandLogo:e?.heading?.brandLogo?{media:e?.heading?.brandLogo?.media??e?.brandLogo?.media,position:e?.heading?.brandLogo?.position??e?.brandLogo?.position,size:e?.heading?.brandLogo?.size??e?.brandLogo?.size}:o?.logo?{media:o.logo,position:a.top}:void 0},titleThemesConfig:typeof e?.titleTheme=="string"?e.titleTheme.toLowerCase():e?.titleTheme&&e.titleTheme.titleThemesConfig?e.titleTheme.titleThemesConfig.toString().toLowerCase():e?.theme?.toLowerCase()??void 0,themesConfig:e?.themesConfig??void 0,isUnderlined:e?.isUnderlined??void 0,limit:e?.limit??void 0,size:e?.size??void 0,readMore:e?.readMore??void 0,iconSize:e?.iconSize??void 0,iconNameOpened:e?.iconNameOpened??void 0,iconNameClosed:e?.iconNameClosed??void 0,idReadMore:e?.idReadMore??void 0,titleLevel:J(e?.heading?.headlineLevel??e?.headlineLevel),textConfig:e?.heading?.textConfig?.toLowerCase()??e?.textConfig?.toLowerCase()??void 0,isDescription:(e?.heading?.isDescription?.toString()??e?.isDescription?.toString())==="true"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var te=[[["","sd-component-wrapper-component",""]]],ie=["[sd-component-wrapper-component]"],ne=["sd-component-wrapper-component",""];function re(t,oe){if(t&1){let e=D();I(0,"sd-component-wrapper",1),j("linkClicked",function(n){L(e);let o=u();return H(o.onLinkClicked(n))}),P(1,0,ne),M()}if(t&2){let e=u();B("componentWidth",e.componentWidth)("content",e.content)("layout",e.layout)("layoutTextConfig",e.layoutTextConfig)("marginSize",e.marginSize)("textConfig",e.textConfig)("themesConfig",e.themesConfig)("brand",e.brand)("activeBrand",e.activeBrand)}}var Fe=(()=>{class t{constructor(e,i,n,o,s,l,g){this.imageService=e,this.trackingService=i,this.chatService=n,this.cdRef=o,this.headingParagraphMapper=s,this.hobStateService=l,this.baseStoreService=g,this.size=C.l,this.componentWidth=O.default,this.isPushCard=!1,this.activeBrand=d.default,this.themesConfig=F.default,this.brand=d.default,this.isHob=!1,this.layout=v.column,this.textConfig=a.center,this.layoutTextConfig=a.center,this.destroy$=new w,this.hobStateService.hobState$.pipe(m(this.destroy$)).subscribe(({isHob:Q,liveBrand:X,siteBrand:Y})=>{this.isHob=Q,this.activeBrand=X||Y||d.default})}ngOnChanges(){if(this.contentWrapper){let e=this.contentWrapper.brandCorner,i=e?this.baseStoreService.getBrand(e):void 0,n=!1;i&&(this.brand=e??d.default,n=!!this.isPushCard),this.themesConfig=N.mapBrandTheme(this.contentWrapper?.wrapperBackgroundTheme),this.layoutTextConfig=this.contentWrapper?.wrapperPosition?.toLowerCase()||a.center,this.textConfig=this.contentWrapper?.alignment?.toLowerCase()||a.center,this.marginSize=this.marginSize??this.contentWrapper?.wrapperMargin?.toLowerCase(),this.layout=this.contentWrapper?.layouts?.toLowerCase()||v.column,(this.contentWrapper?.wrapperBackgroun
1dImage?this.imageService.getMediaFromContainer(this.contentWrapper?.wrapperBackgroundImage):W(void 0)).pipe(m(this.destroy$)).subscribe(s=>{let l={heading:{headline:this.contentWrapper?.wrapperHeading?.headline,subline:this.contentWrapper?.wrapperHeading?.subline,description:this.contentWrapper?.wrapperHeading?.description,media:!n&&this.contentWrapper?.wrapperHeading?.media,pictos:this.contentWrapper?.wrapperHeading?.pictos,headlineLevel:this.contentWrapper?.wrapperHeading?.headlineLevel},brandLogo:n?{media:this.imageService.normalizeMedia(this.contentWrapper?.wrapperHeading?.media)}:void 0,theme:this.contentWrapper?.wrapperHeading?.themesEnum?.toLowerCase(),isUnderlined:this.contentWrapper?.wrapperHeading?.isUnderlined,size:this.contentWrapper?.wrapperHeading?.size?this.contentWrapper?.wrapperHeading?.size?.toLowerCase():C.l,textConfig:this.contentWrapper?.wrapperHeading?.textConfig,isDescription:this.contentWrapper?.wrapperHeading?.isDescription,titleLevel:this.contentWrapper?.wrapperHeading?.headlineLevel};this.content={heading:this.headingParagraphMapper.toHeadingParagraph(l),footNotes:G(this.contentWrapper),links:this.contentWrapper?.wrapperButton?[R.cmsLinkToIExtendedLink(this.contentWrapper?.wrapperButton)].filter(g=>!!g):[]},s&&(this.content=b(S({},this.content),{background:this.imageService.normalizeMedia(s)})),this.cdRef.markForCheck()})}}onLinkClicked(e){if(e?.link?.url==="<<chat>>"&&this.chatService.clickOpenChat(),e.isBrandCorner){let i=this.isHob?"clickCrossBrand":"clickBrandCorner",n=this.isHob?"section tell me more":"section";this.trackingService.sendEvent(i,{productCategory:e.category,positionLabel:n})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(i){return new(i||t)(r(h),r(V),r(A),r(_),r(K),r(U),r(c))}}static{this.\u0275cmp=x({type:t,selectors:[["wc-wrapper"]],inputs:{size:"size",marginSize:"marginSize",componentWidth:"componentWidth",contentWrapper:"contentWrapper",isUnderlined:"isUnderlined",isPushCard:"isPushCard",activeBrand:"activeBrand"},features:[y],ngContentSelectors:ie,decls:1,vars:1,consts:[[3,"componentWidth","content","layout","layoutTextConfig","marginSize","textConfig","themesConfig","brand","activeBrand"],[3,"linkClicked","componentWidth","content","layout","layoutTextConfig","marginSize","textConfig","themesConfig","brand","activeBrand"]],template:function(i,n){i&1&&(E(te),T(0,re,2,9,"sd-component-wrapper",0)),i&2&&z(n.content?0:-1)},dependencies:[$],encapsulation:2,changeDetection:0})}}return t})();export{A as a,J as b,K as c,Fe as d};

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.