import{a as te,b as ie}from"./chunk-5S3ZCHVV.js";import{a as X,b as ee}from"./chunk-QFX3QURO.js";import{i as W}from"./chunk-BEDHBNFG.js";import{N as q,ga as J,oa as K,pa as Q}from"./chunk-AGP3KU3O.js";import{$b as m,Aa as _,Ba as h,Bc as H,Ca as E,Dc as v,Ec as Y,Fb as N,Fc as I,Gb as V,Ka as R,Lb as j,Mb as b,Ub as c,Vb as p,_c as Z,bc as G,bd as y,cc as $,cd as x,dc as U,ec as n,fc as s,g as D,gc as f,ha as w,i as O,ia as L,ka as k,kc as z,na as F,nc as d,oa as B,pa as A,pc as l,rb as o,sb as S,za as u}from"./chunk-AYX7PVNL.js";function ae(i,g){if(i&1&&(n(0,"mat-option",17),v(1),s()),i&2){let e=g.$implicit;p("value",e),o(),I(" ",e," ")}}function ne(i,g){if(i&1){let e=z();n(0,"mat-form-field",14)(1,"mat-select",16,0),d("selectionChange",function(t){u(e);let r=l(2);return _(r._changePageSize(t.value))}),$(3,ae,2,2,"mat-option",17,G),s(),n(5,"div",18),d("click",function(){u(e);let t=H(2);return _(t.open())}),s()()}if(i&2){let e=l(2);p("appearance",e._formFieldAppearance)("color",e.color),o(),p("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),o(2),U(e._displayedPageSizeOptions)}}function oe(i,g){if(i&1&&(n(0,"div",15),v(1),s()),i&2){let e=l(2);o(),Y(e.pageSize)}}function se(i,g){if(i&1&&(n(0,"div",3)(1,"div",13),v(2),s(),b(3,ne,6,7,"mat-form-field",14)(4,oe,2,1,"div",15),s()),i&2){let e=l();o(),c("id",e._pageSizeLabelId),o(),I(" ",e._intl.itemsPerPageLabel," "),o(),m(e._displayedPageSizeOptions.length>1?3:-1),o(),m(e._displayedPageSizeOptions.length<=1?4:-1)}}function re(i,g){if(i&1){let e=z();n(0,"button",19),d("click",function(){u(e);let t=l();return _(t._buttonClicked(0,t._previousButtonsDisabled()))}),h(),n(1,"svg",8),f(2,"path",20),s()()}if(i&2){let e=l();p("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled()),c("aria-label",e._intl.firstPageLabel)}}function le(i,g){if(i&1){let e=z();n(0,"button",21),d("click",function(){u(e);let t=l();return _(t._buttonClicked(t.getNumberOfPages()-1,t._nextButtonsDisabled()))}),h(),n(1,"svg",8),f(2,"path",22),s()()}if(i&2){let e=l();p("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled()),c("aria-label",e._intl.lastPageLabel)}}var T=(()=>{class i{changes=new D;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,a,t)=>{if(t==0||a==0)return`0 of ${t}`;t=Math.max(t,0);let r=e*a,P=r<t?Math.min(r+a,t):r+a;return`${r+1} \u2013 ${P} of ${t}`};static \u0275fac=function(a){return new(a||i)};static \u0275prov=w({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function pe(i){return i||new T}var de={provide:T,deps:[[new B,new A,T]],useFactory:pe},ge=50;var ce=new k("MAT_PAGINATOR_DEFAULT_OPTIONS"),me=(()=>{class i{_intl;_changeDetectorRef;_formFieldAppearance;_pageSizeLabelId=F(q).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new O(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(a=>x(a,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new R;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(e,a,t){if(this._intl=e,this._changeDetectorRef=a,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),t){let{pageSize:r,pageSizeOptions:P,hidePageSize:C,showFirstLastButtons:M}=t;r!=null&&(this._pageSize=r),P!=null&&(this._pageSizeOptions=P),C!=null&&(this.hidePageSize=C),M!=null&&(this.showFirstLastButtons=M)}this._formFieldAppearance=t?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndex<e&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){let a=this.pageIndex*this.pageSize,t=this.pageIndex;this.pageIndex=Math.floor(a/e)||0,this.pageSize=e,this._emitPageEvent(t)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:ge),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,a)=>e-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let a=this.pageIndex;e!==a&&(this.pageIndex=e,this._emitPageEvent(a))}_buttonClicked(e,a){a||this._navigate(e)}static \u0275fac=function(a){return new(a||i)(S(T),S(Z),S(ce,8))};static \u0275cmp=N({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",x],length:[2,"length","length",x],pageSize:[2,"pageSize","pageSize",x],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",y],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",y],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",y]},outputs:{page:"page"},exportAs:["matPaginator"],features:[j],decls:14,vars:12,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,t){a&1&&(n(0,"div",1)(1,"div",2),b(2,se,5,4,"div",3),n(3,"div",4)(4,"div",5),v(5),s(),b(6,re,3,4,"button",6),n(7,"button",7),d("click",function(){return t._buttonClicked(t.pageIndex-1,t._previousButtonsDisabled())}),h(),n(8,"svg",8),f(9,"path",9),s()(),E(),n(10,"button",10),d("click",function(){return t._buttonClicked(t.pageIndex+1,t._nextButtonsDisabled())}),h(),n(11,"svg",8),f(12,"path",11),s()(),b(13,le,3,4,"button",12),s()()()),a&2&&(o(2),m(t.hidePageSize?-1:2),o(3),I(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),o(),m(t.showFirstLastButtons?6:-1),o(),p("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("disabled",t._previousButtonsDisabled()),c("aria-label",t._intl.previousPageLabel),o(3),p("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("disabled",t._nextButtonsDisabled()),c("aria-label",t._intl.nextPageLabel),o(3),m(t.showFirstLastButtons?13:-1))},dependencies:[W,X,J,K,te],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}"],encapsulation:2,changeDetection:0})}return i})(),we=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=V({type:i});static \u0275inj=L({providers:[de],imports:[Q,ee,ie,me]})}return i})();export{T as a,me as b,we as c};
//# sourceMappingURL=chunk-PFBZEQVE.js.map