PageSourceSearch

https://preview-8230-ng-zorro-antd.surge.sh/519.61be0d8399577143.js

js preview-8230-ng-zorro-antd.surge.sh collected 2026-10-03 14:56:55 UTC 22,121 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_zorro_antd_doc=self.webpackChunkng_zorro_antd_doc||[]).push([[519],{519:(xe,b,p)=>{p.d(b,{dE:()=>he,uK:()=>ze});var _=p(7582),e=p(9212),x=p(8645),N=p(7328),z=p(9773),m=p(2196),f=p(2189),d=p(6700),I=p(7191),u=p(9388),l=p(6814),P=p(227),C=p(6223),S=p(4862);const D=["nz-pagination-item",""];function Q(t,s){if(1&t&&(e.TgZ(0,"a"),e._uU(1),e.qZA()),2&t){const n=e.oxw().page;e.xp6(1),e.Oqu(n)}}function R(t,s){1&t&&e._UZ(0,"span",9)}function J(t,s){1&t&&e._UZ(0,"span",10)}function k(t,s){if(1&t&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,R,1,0,"span",7)(3,J,1,0,"span",8),e.BQk(),e.qZA()),2&t){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function M(t,s){1&t&&e._UZ(0,"span",10)}function E(t,s){1&t&&e._UZ(0,"span",9)}function Z(t,s){if(1&t&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,M,1,0,"span",11)(3,E,1,0,"span",12),e.BQk(),e.qZA()),2&t){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function B(t,s){1&t&&e._UZ(0,"span",20)}function A(t,s){1&t&&e._UZ(0,"span",21)}function F(t,s){if(1&t&&(e.ynx(0,2),e.YNc(1,B,1,0,"span",18)(2,A,1,0,"span",19),e.BQk()),2&t){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function L(t,s){1&t&&e._UZ(0,"span",21)}function Y(t,s){1&t&&e._UZ(0,"span",20)}function $(t,s){if(1&t&&(e.ynx(0,2),e.YNc(1,L,1,0,"span",22)(2,Y,1,0,"span",23),e.BQk()),2&t){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function U(t,s){if(1&t&&(e.TgZ(0,"div",15),e.ynx(1,2),e.YNc(2,F,3,2,"ng-container",16)(3,$,3,2,"ng-container",16),e.BQk(),e.TgZ(4,"span",17),e._uU(5,"\u2022\u2022\u2022"),e.qZA()()),2&t){const n=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngSwitch",n),e.xp6(1),e.Q6J("ngSwitchCase","prev_5"),e.xp6(1),e.Q6J("ngSwitchCase","next_5")}}function j(t,s){if(1&t&&(e.ynx(0),e.TgZ(1,"a",13),e.YNc(2,U,6,3,"div",14),e.qZA(),e.BQk()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngSwitch",n)}}function H(t,s){1&t&&(e.ynx(0,2),e.YNc(1,Q,2,1,"a",3)(2,k,4,3,"button",4)(3,Z,4,3,"button",4)(4,j,3,1,"ng-container",5),e.BQk()),2&t&&(e.Q6J("ngSwitch",s.$implicit),e.xp6(1),e.Q6J("ngSwitchCase","page"),e.xp6(1),e.Q6J("ngSwitchCase","prev"),e.xp6(1),e.Q6J("ngSwitchCase","next"))}function K(t,s){}const W=(t,s)=>({$implicit:t,page:s}),T=["containerTemplate"];function V(t,s){if(1&t){const n=e.EpF();e.TgZ(0,"ul")(1,"li",1),e.NdJ("click",function(){e.CHM(n);const a=e.oxw();return e.KtG(a.prePage())}),e.qZA(),e.TgZ(2,"li",2)(3,"input",3),e.NdJ("keydown.enter",function(a){e.CHM(n);const o=e.oxw();return e.KtG(o.jumpToPageViaInput(a))}),e.qZA(),e.TgZ(4,"span",4),e._uU(5,"/"),e.qZA(),e._uU(6),e.qZA(),e.TgZ(7,"li",5),e.NdJ("click",function(){e.CHM(n);const a=e.oxw();return e.KtG(a.nextPage())}),e.qZA()()}if(2&t){const n=e.oxw();e.xp6(1),e.Q6J("disabled",n.isFirstIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",n.locale.prev_page),e.xp6(1),e.uIk("title",n.pageIndex+"/"+n.lastIndex),e.xp6(1),e.Q6J("disabled",n.disabled)("value",n.pageIndex),e.xp6(3),e.hij(" ",n.lastIndex," "),e.xp6(1),e.Q6J("disabled",n.isLastIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",null==n.locale?null:n.locale.next_page)}}const G=["nz-pagination-options",""];function q(t,s){if(1&t&&e._UZ(0,"nz-option",4),2&t){const n=s.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value)}}function X(t,s){if(1&t){const n=e.EpF();e.TgZ(0,"nz-select",2),e.NdJ("ngModelChange",function(a){e.CHM(n);const o=e.oxw();return e.KtG(o.onPageSizeChange(a))}),e.YNc(1,q,1,2,"nz-option",3),e.qZA()}if(2&t){const n=e.oxw();e.Q6J("nzDisabled",n.disabled)("nzSize",n.nzSize)("ngModel",n.pageSize),e.xp6(1),e.Q6J("ngForOf",n.listOfPageSizeOption)("ngForTrackBy",n.trackByOption)}}function ee(t,s){if(1&t){const n=e.EpF();e.TgZ(0,"div",5),e._uU(1),e.TgZ(2,"input",6),e.NdJ("keydown.enter",function(a){e.CHM(n);const o=e.oxw();return e.KtG(o.jumpToPageViaInput(a))}),e.qZA(),e._uU(3),e.qZA()}if(2&t){const n=e.oxw();e.xp6(1),e.hij(" ",n.locale.jump_to," "),e.xp6(1),e.Q6J("disabled",n.disabled),e.xp6(1),e.hij(" ",n.locale.page," ")}}function ne(t,s){}const te=(t,s)=>({$implicit:t,range:s});function ie(t,s){if(1&t&&(e.TgZ(0,"li",4),e.YNc(1,ne,0,0,"ng-template",5),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.showTotal)("ngTemplateOutletContext",e.WLB(2,te,n.total,n.ranges))}}function ae(t,s){if(1&t){const n=e.EpF();e.TgZ(0,"li",6),e.NdJ("gotoIndex",function(a){e.CHM(n);const o=e.oxw(2);return e.KtG(o.jumpPage(a))})("diffIndex",function(a){e.CHM(n);const o=e.oxw(2);return e.KtG(o.jumpDiff(a))}),e.qZA()}if(2&t){const n=s.$implicit,i=e.oxw(2);e.Q6J("locale",i.locale)("type",n.type)("index",n.index)("disabled",!!n.disabled)("itemRender",i.itemRender)("active",i.pageIndex===n.index)("direction",i.dir)}}function oe(t,s){if(1&t){const n=e.EpF();e.TgZ(0,"li",7),e.NdJ("pageIndexChange",function(a){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onPageIndexChange(a))})("pageSizeChange",function(a){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onPageSizeChange(a))}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("total",n.total)("locale",n.locale)("disabled",n.disabled)("nzSize",n.nzSize)("showSizeChanger",n.showSizeChanger)("showQuickJumper",n.showQuickJumper)("pageIndex",n.pageIndex)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)}}function se(t,s){if(1&t&&(e.TgZ(0,"ul"),e.YNc(1,ie,2,5,"li",1)(2,ae,1,7,"li",2)(3,oe,1,9,"li",3),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showTotal),e.xp6(1),e.Q6J("ngForOf",n.listOfPageItem)("ngForTrackBy",n.trackByPageItem),e.xp6(1),e.Q6J("ngIf",n.showQuickJumper||n.showSizeChanger)}}function ge(t,s){}function pe(t,s){if(1&t&&(e.ynx(0),e.YNc(1,ge,0,0,"ng-template",6),e.BQk()),2&t){e.oxw(2);const n=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.template)}}function le(t,s){if(1&t&&(e.ynx(0),e.YNc(1,pe,2,1,"ng-container",5),e.BQk()),2&t){const n=e.oxw(),i=e.MAs(4);e.xp6(1),e.Q6J("ngIf",n.nzSimple)("ngIfElse",i.template)}}let y=(()=>{class t{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new e.vpe,this.gotoIndex=new e.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit
1(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(n){const{locale:i,index:a,type:o}=n;(i||a||o)&&(this.title={page:`${this.index}`,next:this.locale?.next_page,prev:this.locale?.prev_page,prev_5:this.locale?.prev_5,next_5:this.locale?.next_5}[this.type])}static#e=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(i,a){1&i&&e.NdJ("click",function(){return a.clickItem()}),2&i&&(e.uIk("title",a.title),e.ekj("ant-pagination-prev","prev"===a.type)("ant-pagination-next","next"===a.type)("ant-pagination-item","page"===a.type)("ant-pagination-jump-prev","prev_5"===a.type)("ant-pagination-jump-prev-custom-icon","prev_5"===a.type)("ant-pagination-jump-next","next_5"===a.type)("ant-pagination-jump-next-custom-icon","next_5"===a.type)("ant-pagination-disabled",a.disabled)("ant-pagination-item-active",a.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[e.TTD],attrs:D,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(i,a){if(1&i&&e.YNc(0,H,5,4,"ng-template",null,0,e.W1O)(2,K,0,0,"ng-template",1),2&i){const o=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",a.itemRender||o)("ngTemplateOutletContext",e.WLB(2,W,a.type,a.index))}},dependencies:[l.tP,l.RF,l.n9,l.ED,P.Ls],encapsulation:2,changeDetection:0})}return t})(),_e=(()=>{class t{constructor(n,i,a,o){this.cdr=n,this.renderer=i,this.elementRef=a,this.directionality=o,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new e.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new x.x,i.removeChild(i.parentNode(a.nativeElement),a.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,z.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(n){const i=n.target,a=(0,d.He)(i.value,this.pageIndex);this.onPageIndexChange(a),i.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(n){this.pageIndexChange.next(n)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(n){const{pageIndex:i,total:a,pageSize:o}=n;(i||a||o)&&this.updateBindingValue()}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(u.Is,8))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["nz-pagination-simple"]],viewQuery:function(i,a){if(1&i&&e.Gf(T,7),2&i){let o;e.iGM(o=e.CRH())&&(a.template=o.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slas
1h"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(i,a){1&i&&e.YNc(0,V,8,12,"ng-template",null,0,e.W1O)},dependencies:[y],encapsulation:2,changeDetection:0})}return t})(),de=(()=>{class t{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(n){this.pageSize!==n&&this.pageSizeChange.next(n)}jumpToPageViaInput(n){const i=n.target,a=Math.floor((0,d.He)(i.value,this.pageIndex));this.pageIndexChange.next(a),i.value=""}trackByOption(n,i){return i.value}ngOnChanges(n){const{pageSize:i,pageSizeOptions:a,locale:o}=n;(i||a||o)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(g=>({value:g,label:`${g} ${this.locale.items_per_page}`})))}static#e=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["li","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],attrs:G,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(i,a){1&i&&e.YNc(0,X,2,5,"nz-select",0)(1,ee,4,3,"div",1),2&i&&(e.Q6J("ngIf",a.showSizeChanger),e.xp6(1),e.Q6J("ngIf",a.showQuickJumper))},dependencies:[l.sg,l.O5,C.JJ,C.On,S.Ip,S.Vq],encapsulation:2,changeDetection:0})}return t})(),ce=(()=>{class t{constructor(n,i,a,o){this.cdr=n,this.renderer=i,this.elementRef=a,this.directionality=o,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new x.x,i.removeChild(i.parentNode(a.nativeElement),a.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,z.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(n){this.onPageIndexChange(n)}jumpDiff(n){this.jumpPage(this.pageIndex+n)}trackByPageItem(n,i){return`${i.type}-${i.index}`}onPageIndexChange(n){this.pageIndexChange.next(n)}onPageSizeChange(n){this.pageSizeChange.next(n)}getLastIndex(n,i){return Math.ceil(n/i)}buildIndexes(){const n=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,n)}getListOfPageItem(n,i){const o=(g,c)=>{const r=[];for(let h=g;h<=c;h++)r.push({index:h,type:"page"});return r};return g=i<=9?o(1,i):((c,r)=>{let h=[];const v={type:"prev_5"},w={type:"next_5"},me=o(1,1),ue=o(i,i);return h=c<5?[...o(2,4===c?6:5),w]:c<r-3?[v,...o(c-2,c+2),w]:[v,...o(c===r-3?r-5:r-4,r-1)],[...me,...h,...ue]})(n,i),[{type:"prev",disabled:1===n},...g,{type:"next",disabled:n===i}];var g}
1ngOnChanges(n){const{pageIndex:i,pageSize:a,total:o}=n;(i||a||o)&&(this.ranges=[(this.pageIndex-1)*this.pageSize+1,Math.min(this.pageIndex*this.pageSize,this.total)],this.buildIndexes())}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(u.Is,8))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["nz-pagination-default"]],viewQuery:function(i,a){if(1&i&&e.Gf(T,7),2&i){let o;e.iGM(o=e.CRH())&&(a.template=o.first)}},inputs:{nzSize:"nzSize",itemRender:"itemRender",showTotal:"showTotal",disabled:"disabled",locale:"locale",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["class","ant-pagination-total-text",4,"ngIf"],["nz-pagination-item","",3,"locale","type","index","disabled","itemRender","active","direction","gotoIndex","diffIndex",4,"ngFor","ngForOf","ngForTrackBy"],["nz-pagination-options","",3,"total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange",4,"ngIf"],[1,"ant-pagination-total-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-pagination-item","",3,"locale","type","index","disabled","itemRender","active","direction","gotoIndex","diffIndex"],["nz-pagination-options","",3,"total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"]],template:function(i,a){1&i&&e.YNc(0,se,4,4,"ng-template",null,0,e.W1O)},dependencies:[l.sg,l.O5,l.tP,de,y],encapsulation:2,changeDetection:0})}return t})(),he=(()=>{class t{validatePageIndex(n,i){return n>i?i:n<1?1:n}onPageIndexChange(n){const i=this.getLastIndex(this.nzTotal,this.nzPageSize),a=this.validatePageIndex(n,i);a!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=a,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(n){this.nzPageSize=n,this.nzPageSizeChange.emit(n);const i=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>i&&this.onPageIndexChange(i)}onTotalChange(n){const i=this.getLastIndex(n,this.nzPageSize);this.nzPageIndex>i&&Promise.resolve().then(()=>{this.onPageIndexChange(i),this.cdr.markForCheck()})}getLastIndex(n,i){return Math.ceil(n/i)}constructor(n,i,a,o,g){this.i18n=n,this.cdr=i,this.breakpointService=a,this.nzConfigService=o,this.directionality=g,this._nzModuleName="pagination",this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new x.x,this.total$=new N.t(1)}ngOnInit(){this.i18n.localeChange.pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,z.R)(this.destroy$)).subscribe(n=>{this.onTotalChange(n)}),this.breakpointService.subscribe(f.WV).pipe((0,z.R)(this.destroy$)).subscribe(n=>{this.nzResponsive&&(this.size=n===f.G_.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe((0,z.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(n){const{nzHideOnSinglePage:i,nzTotal:a,nzPageSize:o,nzSize:g}=n;a&&this.total$.next(this.nzTotal),(i||a||o)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),g&&(this.size=g.currentValue)}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(I.wi),e.Y36(e.sBO),e.Y36(f.r3),e.Y36(m.jY),e.Y36(u.Is,8))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(i,a){2&i&&e.ekj("ant-pagination-simple",a.nzSimple)("ant-pagination-disabled",a.nzDisabled)("mini",!a.nzSimple&&"small"===a.size)("ant-pagination-rtl","rtl"===a.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[e.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(i,a){1&i&&(e.YNc(0,le,2,2,"ng-container",0),e.TgZ(1,"nz-pagination-simple",1,2),e.NdJ("pageIndexChange",function(g){return a.onPageIndexChange(g)}),e.qZA(),e.TgZ(3,"nz-pagination-default",3,4),e.NdJ("pageIndexChange",function(g){return a.onPageIndexChange(g)})("pageSizeChange",function(g){return a.onPageSizeChange(g)}),e.qZA()),2&i&&(e.Q6J("ngIf",a.showPagination),e.xp6(1),e.Q6J("disabled",a.nzDisabled)("itemRender",a.nzItemRender)("locale",a.locale)("pageSize",a.nzPageSize)("total",a.nzTotal)("pageIndex",a.nzPageIndex),e.xp6(2),e.Q6J("nzSize",a.size)("itemRender",a.nzItemRender)("showTotal",a.nzShowTotal)("disabled",a.nzDisabled)("locale",a.locale)("showSizeChanger",a.nzShowSizeChanger)("showQuickJumper",a.nzShowQuickJumper)("total",a.nzTotal)("pageIndex",a.nzPageIndex)("pageSize",a.nzPageSize)("pageSizeOptions",a.nzPageSizeOptions))},dependencies:[l.O5,l.tP,_e,ce],encapsulation:2,changeDetection:0})}return(0,_.gn)([(0,m.oS)()],t.prototype,"nzSize",void 0),(0,_.gn)([(0,m.oS)()],t.prototype,"nzPageSizeOptions",void 0),(0,_.gn)([(0,m.oS)(),(0,d.yF)()],t.prototype,"nzShowSizeChanger",void 0),(0,_.gn)([(0,m.oS)(),(0,d.yF)()],t.prototype,"nzShowQuickJumper",void 0),(0,_.gn)([(0,m.oS)(),(0,d.yF)()],t.prototype,"nzSimple",void 0),(0,_.gn)([(0,d.yF)()],t.prototype,"nzDisabled",void 0),(0,_.gn)([(0,d.yF)()],t.prototype,"nzResponsive",void 0),(0,_.gn)([(0,d.yF)()],t.prototype,"nzHideOnSinglePage",void 0),(0,_.gn)([(0,d.Rn)()],t.prototype,"nzTotal",void 0),(0,_.gn)([(0,d.Rn)()],t.prototype,"nzPageIndex",void 0),(0,_.gn)([(0,d.Rn)()],t.prototype,"nzPageSize",void 0),t})(),ze=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275mod=e.oAB({type:t});static#t=this.\u0275inj=e.cJS({imports:[u.vT,l.ez,C.u5,S.LV,I.YI,P.PV]})}return t})()}}]);

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.