vendor: 1,796 bytes, line 1
1import{$ as Zt,Ga as Kt,Ie as Jt,Ja as _t,Ka as G,Na as gt,Nc as yt,Oc as vt,Pc as x,V as Et,W as $t,bd as Ct,c as Wt,ca as qt,d as mt,da as zt,e as Qt,ed as Gt,f as ut,fd as nt,ha as j,hd as wt,l as ft,ma as W,n as it,na as Ot,od as Yt,pa as Q}from"./chunk-777WSWZL.js";import{$b as R,Bb as q,Cb as ht,Db as g,Ia as $,Ic as pt,Jc as Ht,Kb as Mt,Kc as A,Lc as tt,Mc as Nt,Tb as d,Ub as H,Vb as N,Wb as It,Yc as et,Zb as Ft,_b as D,a as z,ac as k,b as St,bd as jt,dc as U,fb as _,fd as xt,ic as J,ja as ot,ka as Tt,kb as T,kc as u,lb as at,lc as ct,ma as lt,mc as dt,nc as O,oa as V,oc as K,pc as C,qb as Y,qc as w,rc as X,rd as Ut,sc as Pt,sd as Lt,uc as Bt,ud as Vt,va as P,vc as L,wa as B,wd as Dt,xa as rt,xb as Z,xd as Rt,yb as bt,zd as kt}from"./chunk-TM6FWLLK.js";var re=["data-p-icon","chevron-down"],Xe=(()=>{class i extends Yt{static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(i)))(n||i)}})();static \u0275cmp=Z({type:i,selectors:[["","data-p-icon","chevron-down"]],features:[q],attrs:re,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(e,n){e&1&&(rt(),Ft(0,"path",0))},encapsulation:2})}return i})();
vendor: 25,012 bytes, lines 1-59
1var te=["content"],ce=["item"],de=["loader"],pe=["loadericon"],me=["element"],ue=["*"],At=(i,a)=>({$implicit:i,options:a}),fe=i=>({numCols:i}),ne=i=>({options:i}),_e=()=>({styleClass:"p-virtualscroller-loading-icon"}),ge=(i,a)=>({rows:i,columns:a});function ye(i,a){i&1&&k(0)}function ve(i,a){if(i&1&&(D(0),g(1,ye,1,0,"ng-container",10),R()),i&2){let t=u(2);_(),d("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",tt(2,At,t.loadedItems,t.getContentOptions()))}}function Ce(i,a){i&1&&k(0)}function we(i,a){if(i&1&&(D(0),g(1,Ce,1,0,"ng-container",10),R()),i&2){let t=a.$implicit,e=a.index,n=u(3);_(),d("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",tt(2,At,t,n.getOptions(e)))}}function Se(i,a){if(i&1&&(H(0,"div",11,3),g(2,we,2,5,"ng-container",12),N()),i&2){let t=u(2);Bt(t.contentStyle),L(t.cn(t.cx("content"),t.contentStyleClass)),d("pBind",t.ptm("content")),_(2),d("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy)}}function Te(i,a){if(i&1&&It(0,"div",13),i&2){let t=u(2);L(t.cx("spacer")),d("ngStyle",t.spacerStyle)("pBind",t.ptm("spacer"))}}function be(i,a){i&1&&k(0)}function Ie(i,a){if(i&1&&(D(0),g(1,be,1,0,"ng-container",10),R()),i&2){let t=a.index,e=u(4);_(),d("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",A(4,ne,e.getLoaderOptions(t,e.both&&A(2,fe,e.numItemsInViewport.cols))))}}function xe(i,a){if(i&1&&(D(0),g(1,Ie,2,6,"ng-container",14),R()),i&2){let t=u(3);_(),d("ngForOf",t.loaderArr)}}function Ee(i,a){i&1&&k(0)}function ze(i,a){if(i&1&&(D(0),g(1,Ee,1,0,"ng-container",10),R()),i&2){let t=u(4);_(),d("ngTemplateOutlet",t.loaderIconTemplate||t._loaderIconTemplate)("ngTemplateOutletContext",A(3,ne,Ht(2,_e)))}}function Oe(i,a){if(i&1&&(rt(),It(0,"svg",15)),i&2){let t=u(4);L(t.cx("loadingIcon")),d("spin",!0)("pBind",t.ptm("loadingIcon"))}}function Le(i,a){if(i&1&&g(0,ze,2,5,"ng-container",6)(1,Oe,1,4,"ng-template",null,5,et),i&2){let t=X(2),e=u(3);d("ngIf",e.loaderIconTemplate||e._loaderIconTemplate)("ngIfElse",t)}}function Ve(i,a){if(i&1&&(H(0,"div",11),g(1,xe,2,1,"ng-container",6)(2,Le,3,2,"ng-template",null,4,et),N()),i&2){let t=X(3),e=u(2);L(e.cx("loader")),d("pBind",e.ptm("loader")),_(),d("ngIf",e.loaderTemplate||e._loaderTemplate)("ngIfElse",t)}}function De(i,a){if(i&1){let t=U();D(0),H(1,"div",7,1),J("scroll",function(n){P(t);let s=u();return B(s.onContainerScroll(n))}),g(3,ve,2,5,"ng-container",6)(4,Se,3,7,"ng-template",null,2,et)(6,Te,1,4,"div",8)(7,Ve,4,5,"div",9),N(),R()}if(i&2){let t=X(5),e=u();_(),L(e.cn(e.cx("root"),e.styleClass)),d("ngStyle",e._style)("pBind",e.ptm("root")),Mt("id",e._id)("tabindex",e.tabindex),_(2),d("ngIf",e.contentTemplate||e._contentTemplate)("ngIfElse",t),_(3),d("ngIf",e._showSpacer),_(),d("ngIf",!e.loaderDisabled&&e._showLoader&&e.d_loading)}}function Re(i,a){i&1&&k(0)}function ke(i,a){if(i&1&&(D(0),g(1,Re,1,0,"ng-container",10),R()),i&2){let t=u(2);_(),d("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",tt(5,At,t.items,tt(2,ge,t._items,t.loadedColumns)))}}function Ae(i,a){if(i&1&&(dt(0),g(1,ke,2,8,"ng-container",16)),i&2){let t=u();_(),d("ngIf",t.contentTemplate||t._contentTemplate)}}var Me=` 2.p-virtualscroller { 3 position: relative; 4 overflow: auto; 5 contain: strict; 6 transform: translateZ(0); 7 will-change: scroll-position; 8 outline: 0 none; 9} 10 11.p-virtualscroller-content { 12 position: absolute; 13 top: 0; 14 left: 0; 15 min-height: 100%; 16 min-width: 100%; 17 will-change: transform; 18} 19 20.p-virtualscroller-spacer { 21 position: absolute; 22 top: 0; 23 left: 0; 24 height: 1px; 25 width: 1px; 26 transform-origin: 0 0; 27 pointer-events: none; 28} 29 30.p-virtualscroller-loader { 31 position: sticky; 32 top: 0; 33 left: 0; 34 width: 100%; 35 height: 100%; 36 background: dt('virtualscroller.loader.mask.background'); 37 color: dt('virtualscroller.loader.mask.color'); 38} 39 40.p-virtualscroller-loader-mask { 41 display: flex; 42 align-items: center; 43 justify-content: center; 44} 45 46.p-virtualscroller-loading-icon { 47 font-size: dt('virtualscroller.loader.icon.size'); 48 width: dt('virtualscroller.loader.icon.size'); 49 height: dt('virtualscroller.loader.icon.size'); 50} 51 52.p-virtualscroller-horizontal > .p-virtualscroller-content { 53 display: flex; 54} 55 56.p-virtualscroller-inline .p-virtualscroller-content { 57 position: static; 58} 59`,Fe={root:({instance:i})=>["p-virtualscroller",{"p-virtualscroller-inline":i.inline,"p-virtualscroller-both p-both-scroll":i.both,"p-virtualscroller-horizontal p-horizontal-scroll":i.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:i})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!i.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},ee=(()=>{class i extends gt{name="virtualscroller";css=Me;classes=Fe;static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(i)))(n||i)}})();static \u0275prov=ot({token:i,factory:i.\u0275fac})}return i})();var ie=new lt("SCROLLER_INSTANCE"),Pe=(()=>{class i extends vt{zone;componentName="virtualScroller";bindDirectiveInstance=V(x,{self:!0});$pcScroller=V(ie,{optional:!0,skipSelf:!0})??void 0;hostName="";get id(){return this._id}set id(t){this._id=t}get style(){return this._style}set style(t){this._style=t}get styleClass(){return this._styleClass}set styleClass(t){this._styleClass=t}get tabindex(){return this._tabindex}set tabindex(t){this._tabindex=t}get items(){return this._items}set items(t){this._items=t}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t}get scrollHeight(){return this._scrollHeight}set scrollHeight(t){this._scrollHeight=t}get scrollWidth(){return this._scrollWidth}set scrollWidth(t){this._scrollWidth=t}get orientation(){return this._orientation}set orientation(t){this._orientation=t}get step(){return this._step}set step(t){this._step=t}get delay(){return this._delay}set delay(t){this._delay=t}get resizeDelay(){return this._resizeDelay}set resizeDelay(t){this._resizeDelay=t}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=t}get inline(){return this._inline}set inline(t){this._inline=t}get lazy(){return this._lazy}set lazy(t){this._lazy=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(t){this._loaderDisabled=t}get columns(){return this._columns}set columns(t){this._columns=t}get showSpacer(){return this._showSpacer}set showSpacer(t){this._showSpacer=t}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=t}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(t){this._numToleratedItems=t}get loading(){return this._loading}set loading(t){this._loading=t}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get trackBy(){return this._trackBy}set trackBy(t){this._trackBy=t}get options(){return this._options}set options(t){this._options=t,t&&typeof t=="object"&&(Object.entries(t).forEach(([e,n])=>this[`_${e}`]!==n&&(this[`_${e}`]=n)),Object.entries(t).forEach(([e,n])=>this[`${e}`]!==n&&(this[`${e}`]=n)))}onLazyLoad=new T;onScroll=new T;onScrollIndexChange=new T;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(t){this._contentStyleClass=t}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(t=>this._columns?t:Array.isArray(t)?t.slice(this._appendOnly?0:this.first.cols,this.last.cols):t):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=V(ee);constructor(t){super(),this.zone=t}onInit(){this.setInitialState()}onChanges(t){let e=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),t.loading){let{previousValue:n,currentValue:s}=t.loading;this.lazy&&n!==s&&s!==this.d_loading&&(this.d_loading=s,e=!0)}if(t.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),t.numToleratedItems){let{previousValue:n,currentValue:s}=t.numToleratedItems;n!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(t.options){let{previousValue:n,currentValue:s}=t.options;this.lazy&&n?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,e=!0),n?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!e&&(t.items?.previousValue?.length!==t.items?.currentValue?.length||t.itemSize||t.scrollHeight||t.scrollWidth)&&(this.init(),this.calculateAutoSize())}onAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"content":this._contentTemplate=t.template;break;case"item":this._itemTemplate=t.template;break;case"loader":this._loaderTemplate=t.template;break;case"loadericon":this._loaderIconTemplate=t.template;break;default:this._itemTemplate=t.template;break}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){it(this.platformId)&&!this.initialized&&Ot(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=W(this.elementViewChild?.nativeElement),this.defaultHeight=j(this.elementViewChild?.nativeElement),this.defaultContentWidth=W(this.contentEl),this.defaultContentHeight=j(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.cd.detectChanges()},1))}setContentEl(t){this.contentEl=t||this.contentViewChild?.nativeElement||qt(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,(this.d_loading===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}getElementRef(){return this.elementViewChild}getPageByFirst(t){return Math.floor(((t??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(t){return this._step?this.page!==this.getPageByFirst(t??this.first):!0}scrollTo(t){this.elementViewChild?.nativeElement?.scrollTo(t)}scrollToIndex(t,e="auto"){if(this.both?t.every(s=>s>-1):t>-1){let s=this.first,{scrollTop:o=0,scrollLeft:l=0}=this.elementViewChild?.nativeElement,{numToleratedItems:f}=this.calculateNumItems(),p=this.getContentPosition(),c=this.itemSize,S=(h=0,m)=>h<=m?0:h,y=(h,m,b)=>h*m+b,I=(h=0,m=0)=>this.scrollTo({left:h,top:m,behavior:e}),v=this.both?{rows:0,cols:0}:0,M=!1,r=!1;this.both?(v={rows:S(t[0],f[0]),cols:S(t[1],f[1])},I(y(v.cols,c[1],p.left),y(v.rows,c[0],p.top)),r=this.lastScrollPos.top!==o||this.lastScrollPos.left!==l,M=v.rows!==s.rows||v.cols!==s.cols):(v=S(t,f),this.horizontal?I(y(v,c,p.left),o):I(l,y(v,c,p.top)),r=this.lastScrollPos!==(this.horizontal?l:o),M=v!==s),this.isRangeChanged=M,r&&(this.first=v)}}scrollInView(t,e,n="auto"){if(e){let{first:s,viewport:o}=this.getRenderedRange(),l=(c=0,S=0)=>this.scrollTo({left:c,top:S,behavior:n}),f=e==="to-start",p=e==="to-end";if(f){if(this.both)o.first.rows-s.rows>t[0]?l(o.first.cols*this._itemSize[1],(o.first.rows-1)*this._itemSize[0]):o.first.cols-s.cols>t[1]&&l((o.first.cols-1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.first-s>t){let c=(o.first-1)*this._itemSize;this.horizontal?l(c,0):l(0,c)}}else if(p){if(this.both)o.last.rows-s.rows<=t[0]+1?l(o.first.cols*this._itemSize[1],(o.first.rows+1)*this._itemSize[0]):o.last.cols-s.cols<=t[1]+1&&l((o.first.cols+1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.last-s<=t+1){let c=(o.first+1)*this._itemSize;this.horizontal?l(c,0):l(0,c)}}}else this.scrollToIndex(t,n)}getRenderedRange(){let t=(s,o)=>o||s?Math.floor(s/(o||s)):0,e=this.first,n=0;if(this.elementViewChild?.nativeElement){let{scrollTop:s,scrollLeft:o}=this.elementViewChild.nativeElement;if(this.both)e={rows:t(s,this._itemSize[0]),cols:t(o,this._itemSize[1])},n={rows:e.rows+this.numItemsInViewport.rows,cols:e.cols+this.numItemsInViewport.cols};else{let l=this.horizontal?o:s;e=t(l,this._itemSize),n=e+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:e,last:n}}}calculateNumItems(){let t=this.getContentPosition(),e=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-t.left:0)||0,n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-t.top:0)||0,s=(p,c)=>c||p?Math.ceil(p/(c||p)):0,o=p=>Math.ceil(p/2),l=this.both?{rows:s(n,this._itemSize[0]),cols:s(e,this._itemSize[1])}:s(this.horizontal?e:n,this._itemSize),f=this.d_numToleratedItems||(this.both?[o(l.rows),o(l.cols)]:o(l));return{numItemsInViewport:l,numToleratedItems:f}}calculateOptions(){let{numItemsInViewport:t,numToleratedItems:e}=this.calculateNumItems(),n=(l,f,p,c=!1)=>this.getLast(l+f+(l<p?2:3)*p,c),s=this.first,o=this.both?{rows:n(this.first.rows,t.rows,e[0]),cols:n(this.first.cols,t.cols,e[1],!0)}:n(this.first,t,e);this.last=o,this.numItemsInViewport=t,this.d_numToleratedItems=e,this._showLoader&&(this.loaderArr=this.both?Array.from({length:t.rows}).map(()=>Array.from({length:t.cols})):Array.from({length:t})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this._items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[t,e]=[W(this.contentEl),j(this.contentEl)];t!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),e!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[n,s]=[W(this.elementViewChild.nativeElement),j(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=n<this.defaultWidth?n+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=s<this.defaultHeight?s+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(t=0,e=!1){return this._items?Math.min(e?(this._columns||this._items[0]).length:this._items.length,t):0}getContentPosition(){if(this.contentEl){let t=getComputedStyle(this.contentEl),e=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),n=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),s=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),o=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:e,right:n,top:s,bottom:o,x:e+n,y:s+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let t=this.elementViewChild.nativeElement,e=t.parentElement?.parentElement,n=t.offsetWidth,s=e?.offsetWidth||0,o=this._scrollWidth||`${n||s}px`,l=t.offsetHeight,f=e?.offsetHeight||0,p=this._scrollHeight||`${l||f}px`,c=(S,y)=>t.style[S]=y;this.both||this.horizontal?(c("height",p),c("width",o)):c("height",p)}}setSpacerSize(){if(this._items){let t=this.getContentPosition(),e=(n,s,o,l=0)=>this.spacerStyle=St(z({},this.spacerStyle),{[`${n}`]:(s||[]).length*o+l+"px"});this.both?(e("height",this._items,this._itemSize[0],t.y),e("width",this._columns||this._items[1],this._itemSize[1],t.x)):this.horizontal?e("width",this._columns||this._items,this._itemSize,t.x):e("height",this._items,this._itemSize,t.y)}}setContentPosition(t){if(this.contentEl&&!this._appendOnly){let e=t?t.first:this.first,n=(o,l)=>o*l,s=(o=0,l=0)=>this.contentStyle=St(z({},this.contentStyle),{transform:`translate3d(${o}px, ${l}px, 0)`});if(this.both)s(n(e.cols,this._itemSize[1]),n(e.rows,this._itemSize[0]));else{let o=n(e,this._itemSize);this.horizontal?s(o,0):s(0,o)}}}onScrollPositionChange(t){let e=t.target;if(!e)throw new Error("Event target is null");let n=this.getContentPosition(),s=(r,h)=>r?r>h?r-h:r:0,o=(r,h)=>h||r?Math.floor(r/(h||r)):0,l=(r,h,m,b,E,F)=>r<=E?E:F?m-b-E:h+E-1,f=(r,h,m,b,E,F,st)=>r<=F?0:Math.max(0,st?r<h?m:r-F:r>h?m:r-2*F),p=(r,h,m,b,E,F=!1)=>{let st=h+b+2*E;return r>=E&&(st+=E+1),this.getLast(st,F)},c=s(e.scrollTop,n.top),S=s(e.scrollLeft,n.left),y=this.both?{rows:0,cols:0}:0,I=this.last,v=!1,M=this.lastScrollPos;if(this.both){let r=this.lastScrollPos.top<=c,h=this.lastScrollPos.left<=S;if(!this._appendOnly||this._appendOnly&&(r||h)){let m={rows:o(c,this._itemSize[0]),cols:o(S,this._itemSize[1])},b={rows:l(m.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:l(m.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],h)};y={rows:f(m.rows,b.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:f(m.cols,b.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],h)},I={rows:p(m.rows,y.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:p(m.cols,y.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},v=y.rows!==this.first.rows||I.rows!==this.last.rows||y.cols!==this.first.cols||I.cols!==this.last.cols||this.isRangeChanged,M={top:c,left:S}}}else{let r=this.horizontal?S:c,h=this.lastScrollPos<=r;if(!this._appendOnly||this._appendOnly&&h){let m=o(r,this._itemSize),b=l(m,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,h);y=f(m,b,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,h),I=p(m,y,this.last,this.numItemsInViewport,this.d_numToleratedItems),v=y!==this.first||I!==this.last||this.isRangeChanged,M=r}}return{first:y,last:I,isRangeChanged:v,scrollPos:M}}onScrollChange(t){let{first:e,last:n,isRangeChanged:s,scrollPos:o}=this.onScrollPositionChange(t);if(s){let l={first:e,last:n};if(this.setContentPosition(l),this.first=e,this.last=n,this.lastScrollPos=o,this.handleEvents("onScrollIndexChange",l),this._lazy&&this.isPageChanged(e)){let f={first:this._step?Math.min(this.getPageByFirst(e)*this._step,this._items.length-this._step):e,last:Math.min(this._step?(this.getPageByFirst(e)+1)*this._step:n,this._items.length)};(this.lazyLoadState.first!==f.first||this.lazyLoadState.last!==f.last)&&this.handleEvents("onLazyLoad",f),this.lazyLoadState=f}}}onContainerScroll(t){if(this.handleEvents("onScroll",{originalEvent:t}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:e}=this.onScrollPositionChange(t);(e||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(t),this.d_loading&&this._showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(t)}bindResizeListener(){it(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let t=this.document.defaultView,e=Q()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(t,e,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Ot(this.elementViewChild?.nativeElement)){let[t,e]=[W(this.elementViewChild?.nativeElement),j(this.elementViewChild?.nativeElement)],[n,s]=[t!==this.defaultWidth,e!==this.defaultHeight];(this.both?n||s:this.horizontal?n:this.vertical&&s)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=t,this.defaultHeight=e,this.defaultContentWidth=W(this.contentEl),this.defaultContentHeight=j(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(t,e){return this.options&&this.options[t]?this.options[t](e):this[t].emit(e)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:t=>this.getOptions(t),loading:this.d_loading,getLoaderOptions:(t,e)=>this.getLoaderOptions(t,e),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(t){let e=(this._items||[]).length,n=this.both?this.first.rows+t:this.first+t;return{index:n,count:e,first:n===0,last:n===e-1,even:n%2===0,odd:n%2!==0}}getLoaderOptions(t,e){let n=this.loaderArr.length;return z({index:t,count:n,first:t===0,last:t===n-1,even:t%2===0,odd:t%2!==0,loading:this.d_loading},e)}static \u0275fac=function(e){return new(e||i)(Y(at))};static \u0275cmp=Z({type:i,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(e,n,s){if(e&1&&(O(s,te,4),O(s,ce,4),O(s,de,4),O(s,pe,4),O(s,_t,4)),e&2){let o;C(o=w())&&(n.contentTemplate=o.first),C(o=w())&&(n.itemTemplate=o.first),C(o=w())&&(n.loaderTemplate=o.first),C(o=w())&&(n.loaderIconTemplate=o.first),C(o=w())&&(n.templates=o)}},viewQuery:function(e,n){if(e&1&&(K(me,5),K(te,5)),e&2){let s;C(s=w())&&(n.elementViewChild=s.first),C(s=w())&&(n.contentViewChild=s.first)}},hostVars:2,hostBindings:function(e,n){e&2&&Pt("height",n.height)},inputs:{hostName:"hostName",id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[pt([ee,{provide:ie,useExisting:i},{provide:yt,useExisting:i}]),ht([x]),q],ngContentSelectors:ue,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(e,n){if(e&1&&(ct(),g(0,De,8,10,"ng-container",6)(1,Ae,2,1,"ng-template",null,0,et)),e&2){let s=X(2);d("ngIf",!n._disabled)("ngIfElse",s)}},dependencies:[ft,Wt,mt,ut,Qt,Jt,G,x],encapsulation:2})}return i})(),Ci=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=bt({type:i});
59static \u0275inj=Tt({imports:[Pe,G,G]})}return i})();var se=["content"],Be=["overlay"],He=["*"],Ne=(i,a,t)=>({showTransitionParams:i,hideTransitionParams:a,transform:t}),je=i=>({value:"visible",params:i}),We=i=>({mode:i}),Qe=i=>({$implicit:i});function $e(i,a){i&1&&k(0)}function Ze(i,a){if(i&1){let t=U();H(0,"div",3,1),J("click",function(n){P(t);let s=u(2);return B(s.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){P(t);let s=u(2);return B(s.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){P(t);let s=u(2);return B(s.onOverlayContentAnimationDone(n))}),dt(2),g(3,$e,1,0,"ng-container",4),N()}if(i&2){let t=u(2);L(t.cn(t.cx("content"),t.contentStyleClass)),d("pBind",t.ptm("content"))("@overlayContentAnimation",A(10,je,Nt(6,Ne,t.showTransitionOptions,t.hideTransitionOptions,t.transformOptions[t.modal?t.overlayResponsiveDirection:"default"]))),_(3),d("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",A(14,Qe,A(12,We,t.overlayMode)))}}function qe(i,a){if(i&1){let t=U();H(0,"div",3,0),J("click",function(){P(t);let n=u();return B(n.onOverlayClick())}),g(2,Ze,4,16,"div",2),N()}if(i&2){let t=u();L(t.cn(t.cx("root"),t.styleClass)),d("pBind",t.ptm("root")),_(2),d("ngIf",t.visible)}}var Ke=` 60.p-overlay { 61 position: absolute; 62 top: 0; 63} 64 65.p-overlay-modal { 66 display: flex; 67 align-items: center; 68 justify-content: center; 69 position: fixed; 70 top: 0; 71 left: 0; 72 width: 100%; 73 height: 100%; 74} 75 76.p-overlay-content { 77 transform-origin: inherit; 78} 79
80/* Github Issue #18560 */ 81.p-component-overlay.p-component { 82 position: relative; 83} 84 85.p-overlay-modal > .p-overlay-content { 86 z-index: 1; 87 width: 90%; 88} 89 90/* Position */ 91/* top */ 92.p-overlay-top { 93 align-items: flex-start; 94} 95.p-overlay-top-start { 96 align-items: flex-start; 97 justify-content: flex-start; 98} 99.p-overlay-top-end { 100 align-items: flex-start; 101 justify-content: flex-end; 102} 103 104/* bottom */ 105.p-overlay-bottom { 106 align-items: flex-end; 107} 108.p-overlay-bottom-start { 109 align-items: flex-end; 110 justify-content: flex-start; 111} 112.p-overlay-bottom-end { 113 align-items: flex-end; 114 justify-content: flex-end; 115} 116 117/* left */ 118.p-overlay-left { 119 justify-content: flex-start; 120} 121.p-overlay-left-start { 122 justify-content: flex-start; 123 align-items: flex-start; 124} 125.p-overlay-left-end { 126 justify-content: flex-start; 127 align-items: flex-end; 128} 129 130/* right */ 131.p-overlay-right { 132 justify-content: flex-end; 133} 134.p-overlay-right-start { 135 justify-content: flex-end; 136 align-items: flex-start; 137} 138.p-overlay-right-end { 139 justify-content: flex-end; 140 align-items: flex-end; 141} 142 143.p-overlay-content ~ .p-overlay-content { 144 display: none; 145} 146`,Ge={host:"p-overlay-host",root:({instance:i})=>["p-overlay p-component",{"p-overlay-modal p-overlay-mask p-overlay-mask-enter":i.modal,"p-overlay-center":i.modal&&i.overlayResponsiveDirection==="center","p-overlay-top":i.modal&&i.overlayResponsiveDirection==="top","p-overlay-top-start":i.modal&&i.overlayResponsiveDirection==="top-start","p-overlay-top-end":i.modal&&i.overlayResponsiveDirection==="top-end","p-overlay-bottom":i.modal&&i.overlayResponsiveDirection==="bottom","p-overlay-bottom-start":i.modal&&i.overlayResponsiveDirection==="bottom-start","p-overlay-bottom-end":i.modal&&i.overlayResponsiveDirection==="bottom-end","p-overlay-left":i.modal&&i.overlayResponsiveDirection==="left","p-overlay-left-start":i.modal&&i.overlayResponsiveDirection==="left-start","p-overlay-left-end":i.modal&&i.overlayResponsiveDirection==="left-end","p-overlay-right":i.modal&&i.overlayResponsiveDirection==="right","p-overlay-right-start":i.modal&&i.overlayResponsiveDirection==="right-start","p-overlay-right-end":i.modal&&i.overlayResponsiveDirection==="right-end"}],content:"p-overlay-content"},oe=(()=>{class i extends gt{name="overlay";style=Ke;classes=Ge;static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(i)))(n||i)}})();static \u0275prov=ot({token:i,factory:i.\u0275fac})}return i})(),le=new lt("OVERLAY_INSTANCE"),Ye=Rt([Vt({transform:"{{transform}}",opacity:0}),Lt("{{showTransitionParams}}")]),Ue=Rt([Lt("{{hideTransitionParams}}",Vt({transform:"{{transform}}",opacity:0}))]),$i=(()=>{class i extends vt{overlayService;zone;$pcOverlay=V(le,{optional:!0,skipSelf:!0})??void 0;hostName="";get visible(){return this._visible}set visible(t){this._visible=t,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(t){this._mode=t}get style(){return nt.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(t){this._style=t}get styleClass(){return nt.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(t){this._styleClass=t}get contentStyle(){return nt.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(t){this._contentStyle=t}get contentStyleClass(){return nt.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(t){this._contentStyleClass=t}get target(){let t=this._target||this.overlayOptions?.target;return t===void 0?"@prev":t}set target(t){this._target=t}get autoZIndex(){let t=this._autoZIndex||this.overlayOptions?.autoZIndex;return t===void 0?!0:t}set autoZIndex(t){this._autoZIndex=t}get baseZIndex(){let t=this._baseZIndex||this.overlayOptions?.baseZIndex;return t===void 0?0:t}set baseZIndex(t){this._baseZIndex=t}get showTransitionOptions(){let t=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return t===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":t}set showTransitionOptions(t){this._showTransitionOptions=t}get hideTransitionOptions(){let t=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return t===void 0?".1s linear":t}set hideTransitionOptions(t){this._hideTransitionOptions=t}get listener(){return this._listener||this.overlayOptions?.listener}set listener(t){this._listener=t}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(t){this._responsive=t}get options(){return this._options}set options(t){this._options=t}appendTo=xt(void 0);visibleChange=new T;onBeforeShow=new T;onShow=new T;onBeforeHide=new T;onHide=new T;onAnimationStart=new T;onAnimationDone=new T;overlayViewChild;contentViewChild;contentTemplate;templates;hostAttrSelector=xt();$appendTo=jt(()=>this.appendTo()||this.config.overlayAppendTo());_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=V(oe);bindDirectiveInstance=V(x,{self:!0});documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(it(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return z(z({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return z(z({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}
146get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Zt(this.target,this.el?.nativeElement)}constructor(t,e){super(),this.overlayService=t,this.zone=e}onAfterContentInit(){this.templates?.forEach(t=>{t.getType()==="content"?this._contentTemplate=t.template:this._contentTemplate=t.template})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}show(t,e=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:t||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),e&&zt(this.targetEl),this.modal&&Et(this.document?.body,"p-overflow-hidden")}hide(t,e=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:t||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),e&&zt(this.targetEl),this.modal&&$t(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&Ct.alignOverlay(this.overlayEl,this.targetEl,this.$appendTo())}onVisibleChange(t){this._visible=t,this.visibleChange.emit(t)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(t){this.overlayService.add({originalEvent:t,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(t){switch(t.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&wt.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),this.hostAttrSelector()&&this.overlayEl&&this.overlayEl.setAttribute(this.hostAttrSelector(),""),Ct.appendOverlay(this.overlayEl,this.$appendTo()==="body"?this.document.body:this.$appendTo(),this.$appendTo()),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&Et(this.overlayEl,"p-overlay-mask-leave");break}this.handleEvents("onAnimationStart",t)}onOverlayContentAnimationDone(t){let e=this.overlayEl||t.element.parentElement;switch(t.toState){case"visible":this.visible&&(this.show(e,!0),this.bindListeners());break;case"void":if(!this.visible){this.hide(e,!0),this.modalVisible=!1,this.unbindListeners(),Ct.appendOverlay(this.overlayEl,this.targetEl,this.$appendTo()),wt.clear(e),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",t)}handleEvents(t,e){this[t].emit(e),this.options&&this.options[t]&&this.options[t](e),this.config?.overlayOptions&&(this.config?.overlayOptions)[t]&&(this.config?.overlayOptions)[t](e)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Gt(this.targetEl,t=>{(!this.listener||this.listener(t,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(t,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",t=>{let n=!(this.targetEl&&(this.targetEl.isSameNode(t.target)||!this.isOverlayClicked&&this.targetEl.contains(t.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(t,{type:"outside",mode:this.overlayMode,valid:t.which!==3&&n}):n)&&this.hide(t),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",t=>{(this.listener?this.listener(t,{type:"resize",mode:this.overlayMode,valid:!Q()}):!Q())&&this.hide(t,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",t=>{if(this.overlayOptions.hideOnEscape===!1||t.code!=="Escape")return;(this.listener?this.listener(t,{type:"keydown",mode:this.overlayMode,valid:!Q()}):!Q())&&this.zone.run(()=>{this.hide(t,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}onDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&this.$appendTo()!=="self"&&(this.renderer.appendChild(this.el.nativeElement,this.overlayEl),wt.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(e){return new(e||i)(Y(Kt),Y(at))};static \u0275cmp=Z({type:i,selectors:[["p-overlay"]],contentQueries:function(e,n,s){if(e&1&&(O(s,se,4),O(s,_t,4)),e&2){let o;C(o=w())&&(n.contentTemplate=o.first),C(o=w())&&(n.templates=o)}},viewQuery:function(e,n){if(e&1&&(K(Be,5),K(se,5)),e&2){let s;C(s=w())&&(n.overlayViewChild=s.first),C(s=w())&&(n.contentViewChild=s.first)}},inputs:{hostName:"hostName",visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options",appendTo:[1,"appendTo"],hostAttrSelector:[1,"hostAttrSelector"]},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[pt([oe,{provide:le,useExisting:i},{provide:yt,useExisting:i}]),ht([x]),q],ngContentSelectors:He,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){e&1&&(ct(),g(0,qe,3,4,"div",2)),e&2&&d("ngIf",n.modalVisible)},dependencies:[ft,mt,ut,G,x],encapsulation:2,data:{animation:[Ut("overlayContentAnimation",[Dt(":enter",[kt(Ye)]),Dt(":leave",[kt(Ue)])])]},changeDetection:0})}return i})();export{Xe as a,$i as b,Pe as c,Ci 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.