1import{X as A,ha as E,la as L,ma as H}from"./chunk-ROAQJP46.js";import{Ca as y,Ea as O,Ja as D,Ka as b,Kc as W,Lg as M,Mb as P,Na as I,Nb as $,Qb as F,Sa as R,Sb as c,Xc as j,Yc as k,a as S,cd as B,fb as r,na as v,nb as T,pc as d,rb as l,tb as a,v as h,vb as p,wh as w,yc as f,zc as g}from"./chunk-ADQO3XXX.js";import{a as x,b as _}from"./chunk-3JMZ37NM.js";var N=(()=>{let n=class n extends L{constructor(){super(...arguments),this.sub=new S}ngOnInit(){this.sub.add(this.cmsComponentsService.determineMappings([this.sipComponentWrapper.flexType]).subscribe(()=>{let e=this.cmsComponentsService.getMapping(this.sipComponentWrapper.flexType),t=this.cmsComponentsService.shouldRenderSkeleton();e&&this.forceRender&&!t&&(e.disableSSR=!1),this.cmsComponentsService.shouldRender(this.sipComponentWrapper.flexType)&&this.launchSipComponent()}))}ngOnDestroy(){this.sub.unsubscribe()}launchSipComponent(){let e=this.cmsComponentsService.getMapping(this.sipComponentWrapper.flexType,this.position);if(!e)return;let t=this.componentHandler.getLauncher(e,this.vcr,this.cmsInjector.getInjector(this.sipComponentWrapper.flexType,this.sipComponentWrapper.uid,this.injector,this.position));t&&this.sub.add(t.subscribe(({elementRef:s,componentRef:m})=>{this.cmpRef=m,this.sipDecorate(s)}))}sipDecorate(e){this.dynamicAttributeService.addAttributesToComponent(e.nativeElement,this.renderer,this.sipComponentWrapper)}};n.\u0275fac=(()=>{let e;return function(s){return(e||(e=I(n)))(s||n)}})(),n.\u0275dir=O({type:n,selectors:[["","sipComponentWrapper",""]],inputs:{sipComponentWrapper:"sipComponentWrapper",position:"position",forceRender:"forceRender"},features:[l]});let i=n;return i})();var G=i=>({components$:i}),J=i=>({component:i});function K(i,n){if(i&1&&(P(0,4),f(1,"async")),i&2){let o=c().$implicit,e=c(3);p("sipComponentWrapper",o)("forceRender",e.forceRender)("position",g(1,3,e.slotPosition$))}}function Q(i,n){if(i&1){let o=$();a(0,K,2,5,"ng-template",3),F("loaded",function(t){D(o);let s=c(3);return b(s.isLoaded(t))})}if(i&2){let o=n.$implicit;p("cxOutlet",o.flexType)("cxOutletContext",d(3,J,o))("cxOutletDefer",o.componentDeferOptions)}}function X(i,n){if(i&1&&(a(0,Q,1,5,null,2),f(1,"async")),i&2){let o=c(2);p("ngForOf",g(1,2,o.components$))("ngForTrackBy",o.trackByUid)}}function Y(i,n){if(i&1&&a(0,X,2,4,"ng-template",1),i&2){let o=c();p("cxOutlet",o.position)("cxOutletContext",d(2,G,o.components$))}}var re=(()=>{let n=class n extends H{constructor(e,t,s,m,V,U){super(e,t,s,m,V,U),this.cmsService=e,this.dynamicAttributeService=t,this.renderer=s,this.hostElement=m,this.forceRender=!1,this.excludedSmartEditPositions=["SiteLogo","TopHeader","SearchBox","HeaderLinks","CategoryMenu","NavigationBar"],this.slotPosition$=this.position$.asObservable(),this.components$=this.slot$.pipe(h(u=>u?.components??[]),h(u=>u.map(C=>_(x({},C),{componentDeferOptions:this.getComponentDeferOptions(C.flexType)}))))}trackByUid(e,t){return t.uid}ngOnInit(){this.subscription.add(this.slot$.pipe(v(e=>{this.excludedSmartEditPositions.includes(this.position$.value)?this._decorate(e):this.decorate(e)})).subscribe(e=>{this.components=e?.components||[],this.cd.markForCheck()}))}_decorate(e){let t=this.class||"";this._lastPosition&&t.indexOf(this._lastPosition)>-1&&(t=t.replace(this._lastPosition,"")),this.position$.value&&(t+=` ${this.position$.value}`,this._lastPosition=this.position$.value),this.pending=e?.components?.length||0,this.hasComponents=e?.components?.length>0,t&&t!==this.class&&(this.class=t)}};n.\u0275fac=function(t){return new(t||n)(r(M),r(w),r(T),r(R),r(W),r(E))},n.\u0275cmp=y({type:n,selectors:[["sip-page-slot"]],inputs:{forceRender:"forceRender"},features:[l],decls:1,vars:1,consts:[[4,"ngIf"],[3,"cxOutlet","cxOutletContext"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"loaded","cxOutlet","cxOutletContext","cxOutletDefer"],[3,"sipComponentWrapper","forceRender","position"]],template:function(t,s){t&1&&a(0,Y,1,4,null,0),t&2&&p("ngIf",s.position)},dependencies:[j,k,A,N,B],encapsulation:2,changeDetection:0});let i=n;return i})();export{N as a,re as b};
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.