1import{a as k,b as $,d as _,e as S,f as B,g as I}from"./chunk-KSLSNCCQ.js";import{Da as f,Fa as i,Pb as m,Sa as y,Vb as v,Xa as g,Xb as R,Ya as x,a as h,ac as C,be as w,ce as F,f as a,hc as b,na as u,q as d,sa as p}from"./chunk-7U63JCID.js";var o=class extends I{constructor(s,e,t){super(s,t),this.rxForOf=e}},L=()=>{let n=i(F);return s=>{let{values$:e,strategy$:t,viewContainerRef:r,template:T,strategyProvider:c,errorHandler:V,createViewContext:D,updateViewContext:P,cdRef:E,trackBy:O,parent:Z,patchZone:j}=s,l=B({iterableDiffers:n,renderSettings:{cdRef:E,strategies:c.strategies,defaultStrategyName:c.primaryStrategy,parent:Z,patchZone:j,errorHandler:V},templateSettings:{viewContainerRef:r,templateRef:T,createViewContext:D,updateViewContext:P},trackBy:O});return l.nextStrategy(t),l.render(e)}};var M=new f("rx-for-reconciler",{providedIn:"root",factory:L});function N(){return i(M)}var le=(()=>{class n{set rxForOf(e){b(e)?(this.staticValue=void 0,this.renderStatic=!1,this.observables$.next(_(e,{injector:this.injector}))):d(e)?(this.staticValue=void 0,this.renderStatic=!1,this.observables$.next(e)):(this.staticValue=e,this.renderStatic=!0)}set rxForTemplate(e){this._template=e}set rxForStrategy(e){this.strategyInput$.next(e)}set trackBy(e){e==null?this._trackBy=this.defaultTrackBy:this._trackBy=typeof e!="function"?(t,r)=>r[e]:e}set renderCallback(e){this._renderCallback=e}get template(){return this._template||this.templateRef}constructor(e){this.templateRef=e,this.cdRef=i(w),this.ngZone=i(g),this.injector=i(y),this.viewContainerRef=i(R),this.strategyProvider=i(S),this.errorHandler=i(x),this.renderStatic=!1,this.renderParent=this.strategyProvider.config.parent,this.patchZone=this.strategyProvider.config.patchZone,this.defaultTrackBy=(t,r)=>r,this.strategyInput$=new a(1),this.observables$=new a(1),this.values$=this.observables$.pipe(k(),p(),u({refCount:!0,bufferSize:1})),this.values=null,this.strategy$=this.strategyInput$.pipe($()),this._subscription=new h,this._trackBy=this.defaultTrackBy,this._distinctBy=(t,r)=>t===r,this.reconciler=N()}ngOnInit(){this._subscription.add(this.values$.subscribe(e=>this.values=e)),this._subscription.add(this.reconciler({values$:this.values$,strategy$:this.strategy$,viewContainerRef:this.viewContainerRef,template:this.template,strategyProvider:this.strategyProvider,errorHandler:this.errorHandler,cdRef:this.cdRef,trackBy:this._trackBy,createViewContext:this.createViewContext.bind(this),updateViewContext:this.updateViewContext.bind(this),parent:!!this.renderParent,patchZone:this.patchZone?this.ngZone:void 0}).subscribe(e=>this._renderCallback?.next(e)))}createViewContext(e,t){return new o(e,this.values,t)}updateViewContext(e,t,r){t.context.updateContext(r),t.context.rxForOf=this.values,t.context.$implicit=e}ngDoCheck(){this.renderStatic&&this.observables$.next(this.staticValue)}ngOnDestroy(){this._subscription.unsubscribe(),this.viewContainerRef.clear()}static ngTemplateContextGuard(e,t){return!0}static{this.\u0275fac=function(t){return new(t||n)(v(m))}}static{this.\u0275dir=C({type:n,selectors:[["","rxFor","","rxForOf",""]],inputs:{rxForOf:"rxForOf",rxForTemplate:"rxForTemplate",rxForStrategy:"rxForStrategy",renderParent:[0,"rxForParent","renderParent"],patchZone:[0,"rxForPatchZone","patchZone"],trackBy:[0,"rxForTrackBy","trackBy"],renderCallback:[0,"rxForRenderCallback","renderCallback"]}})}}return n})();export{le 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.