PageSourceSearch

https://preview-8478-ng-zorro-antd.surge.sh/chunk-2BTNSRRU.js

js preview-8478-ng-zorro-antd.surge.sh collected 2026-10-03 14:57:31 UTC 48,962 bytes, 1 lines download raw bytes

1import{a as re,b as se,c as Xe}from"./chunk-MQBVDA5J.js";import"./chunk-KYMNYIG3.js";import{f as ie,g as oe,i as A,j as qe}from"./chunk-EWCMTUML.js";import{$b as $e,$c as q,Ab as F,Bb as He,C as ke,Cb as n,D as fe,Db as C,Hb as V,Ia as d,Ib as Q,Ja as g,Jb as U,Jd as We,Je as Ze,Kb as Pe,Ke as I,Lb as Re,M as be,Na as Ee,Nb as Oe,Ne as Ve,Oa as Ie,Od as je,Pe as Qe,Q as Te,Rc as Ge,Ta as j,Va as m,Wb as Le,Xa as O,Xe as Ue,Y as R,Ye as J,bb as Ae,ca as $,da as De,db as E,dd as X,eb as S,fb as x,gb as e,ha as p,hb as t,ia as M,ib as u,ja as we,l as _,le as Y,lg as ne,mb as Se,me as xe,oa as Fe,pa as f,pb as b,qa as z,qf as K,r as k,ra as G,rb as Z,sa as W,sb as Ne,sf as ee,tb as Be,tf as te,uc as Me,xa as ze,xb as _e,ya as ge,yb as N,zb as w}from"./chunk-BPHN4FUK.js";var ht=["slickList"],pt=["slickTrack"],ft=["*"],zt=s=>({$implicit:s});function gt(s,i){}function Et(s,i){if(s&1){let a=Se();e(0,"li",9),b("click",function(){let o=G(a).$index,l=Z(2);return W(l.onLiClick(o))}),j(1,gt,0,0,"ng-template",10),t()}if(s&2){let a=i.$index,r=Z(2),o=He(8);O("slick-active",a===r.activeIndex),d(),m("ngTemplateOutlet",r.nzDotRender||o)("ngTemplateOutletContext",Oe(4,zt,a))}}function St(s,i){if(s&1&&(e(0,"ul",7),S(1,Et,2,6,"li",8,E),t()),s&2){let a=Z();O("slick-dots-top",a.nzDotPosition==="top")("slick-dots-bottom",a.nzDotPosition==="bottom")("slick-dots-left",a.nzDotPosition==="left")("slick-dots-right",a.nzDotPosition==="right"),d(),x(a.carouselContents)}}function xt(s,i){if(s&1&&(e(0,"button"),n(1),t()),s&2){let a=i.$implicit;d(),C(a+1)}}var y=(()=>{let i=class i{set isActive(r){this._active=r,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}constructor(r,o){this.renderer=o,this._active=!1,this.el=r.nativeElement}};i.\u0275fac=function(o){return new(o||i)(g(ze),g(Ee))},i.\u0275dir=we({type:i,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"],standalone:!0});let s=i;return s})(),H=class{get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(i,a,r,o,l){this.cdr=a,this.renderer=r,this.platform=o,this.options=l,this.carouselComponent=i}withCarouselContents(i){let a=this.carouselComponent;if(this.slickListEl=a.slickListEl,this.slickTrackEl=a.slickTrackEl,this.contents=i?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){let r=a.el.getBoundingClientRect();this.unitWidth=r.width,this.unitHeight=r.height}else i?.forEach((r,o)=>{o===0?this.renderer.setStyle(r.el,"width","100%"):this.renderer.setStyle(r.el,"display","none")})}dragging(i){}dispose(){}getFromToInBoundary(i,a){let r=this.maxIndex+1;return{from:(i+r)%r,to:(a+r)%r}}},Ce=class extends H{withCarouselContents(i){super.withCarouselContents(i),this.contents&&(this.slickTrackEl.style.width=`${this.length*this.unitWidth}px`,this.contents.forEach((a,r)=>{this.renderer.setStyle(a.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(a.el,"position","relative"),this.renderer.setStyle(a.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(a.el,"left",`${-this.unitWidth*r}px`),this.renderer.setStyle(a.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(i,a){let{to:r}=this.getFromToInBoundary(i,a),o=new _;return this.contents.forEach((l,c)=>{this.renderer.setStyle(l.el,"opacity",r===c?"1":"0")}),setTimeout(()=>{o.next(),o.complete()},this.carouselComponent.nzTransitionSpeed),o}dispose(){this.contents.forEach(i=>{this.renderer.setStyle(i.el,"transition",null),this.renderer.setStyle(i.el,"opacity",null),this.renderer.setStyle(i.el,"width",null),this.renderer.setStyle(i.el,"left",null)}),super.dispose()}},ye=class extends H{get vertical(){return this.carouselComponent.vertical}constructor(i,a,r,o,l){super(i,a,r,o,l),this.isDragging=!1,this.isTransitioning=!1}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(i){super.withCarouselContents(i);let r=this.carouselComponent.activeIndex;this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,"height",`${this.unitHeight}px`),this.vertical?(this.renderer.setStyle(this.slickTrackEl,"width",`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"height",`${this.length*this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-r*this.unitHeight}px, 0)`)):(this.renderer.setStyle(this.slickTrackEl,"height",`${this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"width",`${this.length*this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-r*this.unitWidth}
1px, 0, 0)`)),this.contents.forEach(o=>{this.renderer.setStyle(o.el,"position","relative"),this.renderer.setStyle(o.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(o.el,"height",`${this.unitHeight}px`)}))}switch(i,a){let{to:r}=this.getFromToInBoundary(i,a),o=new _;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(i,a):this.horizontalTransform(i,a),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(l=>{this.renderer.setStyle(l.el,this.vertical?"top":"left",null)}),this.vertical?this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-r*this.unitHeight}px, 0)`):this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-r*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,o.next(),o.complete()},this.carouselComponent.nzTransitionSpeed),o.asObservable()}dragging(i){if(this.isTransitioning)return;let a=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(a===this.maxIndex?this.prepareVerticalContext(!0):a===0&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-a*this.unitHeight+i.x}px, 0)`)):(!this.isDragging&&this.length>2&&(a===this.maxIndex?this.prepareHorizontalContext(!0):a===0&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-a*this.unitWidth+i.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(i,a){let{from:r,to:o}=this.getFromToInBoundary(i,a);this.length>2&&a!==o?(this.prepareVerticalContext(o<r),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-a*this.unitHeight}px, 0)`)):this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-o*this.unitHeight}px, 0`)}horizontalTransform(i,a){let{from:r,to:o}=this.getFromToInBoundary(i,a);this.length>2&&a!==o?(this.prepareHorizontalContext(o<r),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-a*this.unitWidth}px, 0, 0)`)):this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-o*this.unitWidth}px, 0, 0`)}prepareVerticalContext(i){i?(this.renderer.setStyle(this.firstEl,"top",`${this.length*this.unitHeight}px`),this.renderer.setStyle(this.lastEl,"top",null)):(this.renderer.setStyle(this.firstEl,"top",null),this.renderer.setStyle(this.lastEl,"top",`${-this.unitHeight*this.length}px`))}prepareHorizontalContext(i){i?(this.renderer.setStyle(this.firstEl,"left",`${this.length*this.unitWidth}px`),this.renderer.setStyle(this.lastEl,"left",null)):(this.renderer.setStyle(this.firstEl,"left",null),this.renderer.setStyle(this.lastEl,"left",`${-this.unitWidth*this.length}px`))}},ve=new De("nz-carousel-custom-strategies"),Ct="carousel",v=(()=>{let i=class i{set nzDotPosition(r){this._dotPosition=r,r==="left"||r==="right"?this.vertical=!0:this.vertical=!1}get nzDotPosition(){return this._dotPosition}constructor(r,o,l,c,h,D,lt,at,dt,mt,ct){this.nzConfigService=o,this.ngZone=l,this.renderer=c,this.cdr=h,this.platform=D,this.resizeService=lt,this.nzDragService=at,this.nzResizeObserver=dt,this.directionality=mt,this.customStrategies=ct,this._nzModuleName=Ct,this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,this.nzLoop=!0,this.nzStrategyOptions=void 0,this._dotPosition="bottom",this.nzBeforeChange=new ge,this.nzAfterChange=new ge,this.activeIndex=0,this.vertical=!1,this.dir="ltr",this.destroy$=new _,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=L=>{this.dir==="rtl"?this.goTo(this.carouselContents.length-1-L):this.goTo(L)},this.pointerDown=L=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(L).subscribe(B=>{this.pointerDelta=B,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){let B=this.pointerDelta?this.pointerDelta.x:0;Math.abs(B)>this.gestureRect.width/3&&(this.nzLoop||B<=0&&this.activeIndex+1<this.carouselContents.length||B>0&&this.activeIndex>0)?this.goTo(B>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.el=r.nativeElement}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe(R(this.destroy$)).subscribe(r=>{this.dir=r,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{ke(this.slickListEl,"keydown").pipe(R(this.destroy$)).subscribe(r=>{let{keyCode:o}=r;o!==37&&o!==39||(r.preventDefault(),this.ngZone.run(()=>{o===37?this.pre():this.next(),this.cdr.markForCheck()}))})}),this.nzResizeObserver.observe(this.el).pipe(be(100),Te(),R(this.destroy$)).subscribe(()=>{this.layout()})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.subscribe().pipe(R(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(r){let{nzEffect:o,nzDotPosition:l}=r;o&&!o.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),l&&!l.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),!this.nzAutoPlay||!this.nzAutoPlaySpeed?this.clearScheduledTransition():this.scheduleNextTransition()}ngOnDestroy(){this.clearScheduledTransition(),this.strategy&&this.strategy.dispose(),this.destroy$.next(),this.destroy$.complete()}next(){this.goTo(this.activeIndex+1)}pre(){this.goTo(this.activeIndex-1)}goTo(r){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||r>=0&&r<this.carouselContents.length)){let o=this.carouselContents.length,l=this.activeIndex,c=(r+o)%o;this.isTransiting=!0,this.nzBeforeChange.emit({from:l,to:c}),this.strategy.switch(this.activeIndex,r).subscribe(()=>{this.scheduleNextTransition(),this.nzAfterChange.emit(c),this.isTransiting=!1}),this.markContentActive(c),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();let r=this.customStrategies?this.customStrategies.find(o=>o.name===this.nzEffect):null;if(r){this.strategy=new r.strategy(this,this.cdr,this.renderer,this.platform);return}this.strategy=this.nzEffect==="scrollx"?new ye(this,this.cdr,this.renderer,this.platform):new Ce(this,this.cdr,this.renderer,this.platform)}scheduleNextTransition(){this.clearScheduledTransition(),this.nzAutoPlay&&this.nzAutoPlaySpeed>0&&this.platform.isBrowser&&(this.transitionInProgress=setTimeout(()=>{this.goTo(this.activeIndex+1)},this.nzAutoPlaySpeed))}clearScheduledTransition(){this.transitionInProgress&&(clearTimeout(this.transitionInProgress),this.transitionInProgress=void 0)}markContentActive(r){this.activeIndex=r,this.carouselContents&&this.carouselContents.forEac
1h((o,l)=>{this.dir==="rtl"?o.isActive=r===this.carouselContents.length-1-l:o.isActive=r===l}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}};i.\u0275fac=function(o){return new(o||i)(g(ze),g(Ze),g(Ie),g(Ee),g($e),g(je),g(Ve),g(Qe),g(Ue),g(Ge,8),g(ve,8))},i.\u0275cmp=p({type:i,selectors:[["nz-carousel"]],contentQueries:function(o,l,c){if(o&1&&_e(c,y,4),o&2){let h;w(h=F())&&(l.carouselContents=h)}},viewQuery:function(o,l){if(o&1&&(N(ht,7),N(pt,7)),o&2){let c;w(c=F())&&(l.slickList=c.first),w(c=F())&&(l.slickTrack=c.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(o,l){o&2&&O("ant-carousel-vertical",l.vertical)("ant-carousel-rtl",l.dir==="rtl")},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:"nzEnableSwipe",nzDots:"nzDots",nzAutoPlay:"nzAutoPlay",nzAutoPlaySpeed:"nzAutoPlaySpeed",nzTransitionSpeed:"nzTransitionSpeed",nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],standalone:!0,features:[Fe,Re],ngContentSelectors:ft,decls:9,vars:3,consts:[["slickList",""],["slickTrack",""],["renderDotTemplate",""],[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"mousedown","touchstart"],[1,"slick-track"],[1,"slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right"],[1,"slick-dots"],[3,"slick-active"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,l){if(o&1){let c=Se();Ne(),e(0,"div",3)(1,"div",4,0),b("mousedown",function(D){return G(c),W(l.pointerDown(D))})("touchstart",function(D){return G(c),W(l.pointerDown(D))}),e(3,"div",5,1),Be(5),t()(),j(6,St,3,8,"ul",6),t(),j(7,xt,2,1,"ng-template",null,2,Le)}o&2&&(O("slick-vertical",l.nzDotPosition==="left"||l.nzDotPosition==="right"),d(6),Ae(6,l.nzDots?6:-1))},dependencies:[Me],encapsulation:2,changeDetection:0});let s=i;return k([I()],s.prototype,"nzEffect",void 0),k([I(),Y()],s.prototype,"nzEnableSwipe",void 0),k([I(),Y()],s.prototype,"nzDots",void 0),k([I(),Y()],s.prototype,"nzAutoPlay",void 0),k([I(),xe()],s.prototype,"nzAutoPlaySpeed",void 0),k([xe()],s.prototype,"nzTransitionSpeed",void 0),k([I()],s.prototype,"nzLoop",void 0),k([I()],s.prototype,"nzDotPosition",null),s})(),Ye=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=M({type:i}),i.\u0275inj=$({});let s=i;return s})(),le=class extends H{get vertical(){return this.carouselComponent.vertical}constructor(i,a,r,o,l){super(i,a,r,o,l),this.isTransitioning=!1}dispose(){this.renderer.setStyle(this.slickTrackEl,"transform",null),super.dispose()}withCarouselContents(i){super.withCarouselContents(i);let r=this.carouselComponent.activeIndex;this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,"height",`${this.unitHeight}px`),this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,"height",`${this.unitHeight}px`),this.vertical?(this.renderer.setStyle(this.slickTrackEl,"width",`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"height",`${this.length*this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-r*this.unitHeight}px, 0)`)):(this.renderer.setStyle(this.slickTrackEl,"height",`${this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"width",`${this.length*this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-r*this.unitWidth}px, 0, 0)`)),this.contents.forEach(o=>{this.renderer.setStyle(o.el,"position","relative"),this.renderer.setStyle(o.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(o.el,"height",`${this.unitHeight}px`)})))}switch(i,a){let r=(a+this.length)%this.length,o=this.carouselComponent.nzTransitionSpeed,l=new _;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${o}ms ease`),this.vertical?this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-r*this.unitHeight}px, 0)`):this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-r*this.unitWidth}px, 0, 0)`),this.isTransitioning=!0,setTimeout(()=>{this.isTransitioning=!1,l.next(),l.complete()},o),l.asObservable()}dragging(i){if(this.isTransitioning)return;let a=this.carouselComponent.activeIndex;this.vertical?this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-a*this.unitHeight+i.x}
1px, 0)`):this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-a*this.unitWidth+i.x}px, 0, 0)`)}},ae=class extends H{withCarouselContents(i){if(super.withCarouselContents(i),this.contents){this.renderer.setStyle(this.slickListEl,"width",`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"width",`${this.length*this.unitWidth}px`),this.contents.forEach((r,o)=>{let l=this.carouselComponent.activeIndex===o;this.renderer.setStyle(r.el,"transform",l?"rotateY(0deg)":"rotateY(180deg)"),this.renderer.setStyle(r.el,"position","relative"),this.renderer.setStyle(r.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(r.el,"left",`${-this.unitWidth*o}px`),this.renderer.setStyle(r.el,"transform-style","preserve-3d"),this.renderer.setStyle(r.el,"backface-visibility","hidden")});let{carouselComponent:a}=this;a.ngZone.runOutsideAngular(()=>{fe(a.nzTransitionSpeed).subscribe(()=>{this.contents.forEach(r=>this.renderer.setStyle(r.el,"transition",["transform 500ms ease 0s"]))})})}}switch(i,a){let{from:r,to:o}=this.getFromToInBoundary(i,a),l=new _,c=this.carouselComponent.nzTransitionSpeed;return fe(c).subscribe(()=>{l.next(),l.complete()}),i===a?l:(this.contents.forEach((h,D)=>{D===r?this.renderer.setStyle(h.el,"transform","rotateY(180deg)"):D===o&&this.renderer.setStyle(h.el,"transform","rotateY(0deg)")}),l.asObservable())}dispose(){this.contents.forEach(i=>{this.renderer.setStyle(i.el,"transition",null),this.renderer.setStyle(i.el,"transform",null),this.renderer.setStyle(i.el,"width",null),this.renderer.setStyle(i.el,"left",null),this.renderer.setStyle(i.el,"transform-style",null),this.renderer.setStyle(i.el,"backface-visibility",null)}),super.dispose()}};var Je=[Ye,Xe];function yt(s,i){if(s&1&&(e(0,"div",1)(1,"h3"),n(2),t()()),s&2){let a=i.$implicit;d(2),C(a)}}var de=(()=>{let i=class i{constructor(){this.array=[1,2,3,4]}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=p({type:i,selectors:[["nz-demo-carousel-autoplay"]],decls:3,vars:0,consts:[["nzAutoPlay",""],["nz-carousel-content",""]],template:function(o,l){o&1&&(e(0,"nz-carousel",0),S(1,yt,3,1,"div",1,E),t()),o&2&&(d(),x(l.array))},dependencies:[v,y],styles:["[nz-carousel-content][_ngcontent-%COMP%]{text-align:center;height:160px;line-height:160px;background:#364d79;color:#fff;overflow:hidden}h3[_ngcontent-%COMP%]{color:#fff;margin-bottom:0;-webkit-user-select:none;user-select:none}"]});let s=i;return s})();function vt(s,i){if(s&1&&(e(0,"div",1)(1,"h3"),n(2),t()()),s&2){let a=i.$implicit;d(2),C(a)}}var me=(()=>{let i=class i{constructor(){this.array=[1,2,3,4],this.effect="scrollx"}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=p({type:i,selectors:[["nz-demo-carousel-basic"]],decls:3,vars:1,consts:[[3,"nzEffect"],["nz-carousel-content",""]],template:function(o,l){o&1&&(e(0,"nz-carousel",0),S(1,vt,3,1,"div",1,E),t()),o&2&&(m("nzEffect",l.effect),d(),x(l.array))},dependencies:[v,y],styles:["[nz-carousel-content][_ngcontent-%COMP%]{text-align:center;height:160px;line-height:160px;background:#364d79;color:#fff;overflow:hidden}h3[_ngcontent-%COMP%]{color:#fff;margin-bottom:0;-webkit-user-select:none;user-select:none}"]});let s=i;return s})();function Tt(s,i){if(s&1&&(e(0,"div",5)(1,"h3"),n(2),t()()),s&2){let a=i.$implicit;d(2),C(a)}}var ce=(()=>{let i=class i{constructor(){this.strategy="transform-no-loop",this.array=[1,2,3,4]}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=p({type:i,selectors:[["nz-demo-carousel-custom"]],features:[Pe([{provide:ve,useValue:[{name:"transform-no-loop",strategy:le},{name:"flip",strategy:ae}]}])],decls:10,vars:2,consts:[[3,"ngModelChange","ngModel"],["nz-radio-button","","nzValue","transform-no-loop"],["nz-radio-button","","nzValue","flip"],["nz-radio-button","","nzValue","fade"],[3,"nzEffect"],["nz-carousel-content",""]],template:function(o,l){o&1&&(e(0,"nz-radio-group",0),U("ngModelChange",function(h){return Q(l.strategy,h)||(l.strategy=h),h}),e(1,"label",1),n(2,"Transform No Loop"),t(),e(3,"label",2),n(4,"Flip"),t(),e(5,"label",3),n(6,"Fade (built-in)"),t()(),e(7,"nz-carousel",4),S(8,Tt,3,1,"div",5,E),t()),o&2&&(V("ngModel",l.strategy),d(7),m("nzEffect",l.strategy),d(),x(l.array))},dependencies:[q,X,v,y,se,re],styles:["nz-radio-group[_ngcontent-%COMP%]{margin-bottom:8px}
1[nz-carousel-content][_ngcontent-%COMP%]{text-align:center;height:160px;line-height:160px;background:#364d79;color:#fff;overflow:hidden}h3[_ngcontent-%COMP%]{color:#fff;margin-bottom:0;-webkit-user-select:none;user-select:none}"]});let s=i;return s})();function Dt(s,i){if(s&1&&(e(0,"div",1)(1,"h3"),n(2),t()()),s&2){let a=i.$implicit;d(2),C(a)}}var ue=(()=>{let i=class i{constructor(){this.array=[1,2,3,4]}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=p({type:i,selectors:[["nz-demo-carousel-fade"]],decls:3,vars:1,consts:[[3,"nzEffect"],["nz-carousel-content",""]],template:function(o,l){o&1&&(e(0,"nz-carousel",0),S(1,Dt,3,1,"div",1,E),t()),o&2&&(m("nzEffect","fade"),d(),x(l.array))},dependencies:[v,y],styles:["[nz-carousel-content][_ngcontent-%COMP%]{text-align:center;height:160px;line-height:160px;background:#364d79;color:#fff;overflow:hidden}h3[_ngcontent-%COMP%]{color:#fff;margin-bottom:0;-webkit-user-select:none;user-select:none}"]});let s=i;return s})();function wt(s,i){if(s&1&&(e(0,"div",1)(1,"h3"),n(2),t()()),s&2){let a=i.$implicit;d(2),C(a)}}var he=(()=>{let i=class i{constructor(){this.array=[1,2,3,4],this.effect="scrollx"}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=p({type:i,selectors:[["nz-demo-carousel-loop"]],decls:3,vars:2,consts:[["nzAutoPlay","",3,"nzEffect","nzLoop"],["nz-carousel-content",""]],template:function(o,l){o&1&&(e(0,"nz-carousel",0),S(1,wt,3,1,"div",1,E),t()),o&2&&(m("nzEffect",l.effect)("nzLoop",!1),d(),x(l.array))},dependencies:[v,y],styles:["[nz-carousel-content][_ngcontent-%COMP%]{text-align:center;height:160px;line-height:160px;background:#364d79;color:#fff;overflow:hidden}h3[_ngcontent-%COMP%]{color:#fff;margin-bottom:0;-webkit-user-select:none;user-select:none}"]});let s=i;return s})();function Ft(s,i){if(s&1&&(e(0,"div",6)(1,"h3"),n(2),t()()),s&2){let a=i.$implicit;d(2),C(a)}}var pe=(()=>{let i=class i{constructor(){this.array=[1,2,3,4],this.dotPosition="bottom"}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=p({type:i,selectors:[["nz-demo-carousel-position"]],decls:12,vars:2,consts:[[3,"ngModelChange","ngModel"],["nz-radio-button","","nzValue","bottom"],["nz-radio-button","","nzValue","top"],["nz-radio-button","","nzValue","left"],["nz-radio-button","","nzValue","right"],[3,"nzDotPosition"],["nz-carousel-content",""]],template:function(o,l){o&1&&(e(0,"nz-radio-group",0),U("ngModelChange",function(h){return Q(l.dotPosition,h)||(l.dotPosition=h),h}),e(1,"label",1),n(2,"Bottom"),t(),e(3,"label",2),n(4,"Top"),t(),e(5,"label",3),n(6,"Left"),t(),e(7,"label",4),n(8,"Right"),t()(),e(9,"nz-carousel",5),S(10,Ft,3,1,"div",6,E),t()),o&2&&(V("ngModel",l.dotPosition),d(9),m("nzDotPosition",l.dotPosition),d(),x(l.array))},dependencies:[q,X,v,y,se,re],styles:["nz-radio-group[_ngcontent-%COMP%]{margin-bottom:8px}[nz-carousel-content][_ngcontent-%COMP%]{text-align:center;height:160px;line-height:160px;background:#364d79;color:#fff;overflow:hidden}h3[_ngcontent-%COMP%]{color:#fff;margin-bottom:0;-webkit-user-select:none;user-select:none}"]});let s=i;return s})();var rt=(()=>{let i=class i{constructor(){this.expanded=!1}goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>{r.nzExpanded=this.expanded,r.expandCode(this.expanded),r.check()})}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=p({type:i,selectors:[["nz-demo-carousel"]],viewQuery:function(o,l){if(o&1&&N(A,5),o&2){let c;w(c=F())&&(l.codeBoxes=c)}},decls:336,vars:31,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-carousel-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-carousel-demo-position","nzTitle","\u4F4D\u7F6E"],["nzHref","#components-carousel-demo-fade","nzTitle","\u6E10\u663E"],["nzHref","#components-carousel-demo-autoplay","nzTitle","\u81EA\u52A8\u5207\u6362"],["nzHref","#components-carousel-demo-custom","nzTitle","\u81EA\u5B9A\u4E49\u5207\u6362\u6548\u679C"],["nzHref","#components-carousel-demo-loop","nzTitle","\u5FAA\u73AF"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5C55\u5F00\u5168\u90E8\u4EE3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","\u57FA\u672C","nzSelector","nz-demo-carousel-basic","nzGenerateCommand","ng g ng-zorro-antd:carousel-basic <name>","nzComponentName","NzDemoCarouselBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u6E10\u663E","nzSelector","nz-demo-carousel-fade","nzGenerateCommand","ng g ng-zorro-antd:carousel-fade <name>","nzComponentName","NzDemoCarouselFadeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u5207\u6362\u6548\u679C","nzSelector","nz-demo-carousel-custom","nzGenerateCommand","ng g ng-zorro-antd:carousel-custom <name>","nzComponentName","NzDemoCarouselCustomComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u4F4D\u7F6E","nzSelector","nz-demo-carousel-position","nzGenerateCommand","ng g ng-zorro-antd:carousel-position <name>","nzComponentName","NzDemoCarouselPositionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u52A8\u5207\u6362","nzSelector","nz-demo-carousel-autoplay","nzGenerateCommand","ng g ng-zorro-antd:carousel-autoplay <name>","nzComponentName","NzDemoCarouselAutoplayComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u5FAA\u73AF","nzSelector","nz-demo-carousel-loop","nzGenerateCommand","ng g ng-zorro-antd:carousel-loop <name>","nzComponentName","NzDemoCarouselLoopComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-carou
1sel:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-carousel:standalone'",1,"anchor"],["id","\u65B9\u6CD5"],["onclick","window.location.hash = '\u65B9\u6CD5'",1,"anchor"],["id","injectiontoken"],["onclick","window.location.hash = 'injectiontoken'",1,"anchor"],["id","\u81EA\u5B9A\u4E49\u5207\u6362\u6548\u679C"],["onclick","window.location.hash = '\u81EA\u5B9A\u4E49\u5207\u6362\u6548\u679C'",1,"anchor"]],template:function(o,l){o&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),b("nzClick",function(h){return l.goLink(h)}),u(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8),t()(),e(10,"section",9)(11,"h1"),n(12,"Carousel"),e(13,"span",10),n(14,"\u8D70\u9A6C\u706F"),t(),u(15,"span",11),e(16,"a",12),u(17,"span",13),t()(),e(18,"section",9),z(),e(19,"p"),n(20,"\u65CB\u8F6C\u6728\u9A6C\uFF0C\u4E00\u7EC4\u8F6E\u64AD\u7684\u533A\u57DF\u3002"),t(),e(21,"h2",14)(22,"span"),n(23,"\u4F55\u65F6\u4F7F\u7528"),t(),e(24,"a",15),n(25,"#"),t()(),e(26,"ul")(27,"li"),n(28,"\u5F53\u6709\u4E00\u7EC4\u5E73\u7EA7\u7684\u5185\u5BB9\u3002"),t(),e(29,"li"),n(30,"\u5F53\u5185\u5BB9\u7A7A\u95F4\u4E0D\u8DB3\u65F6\uFF0C\u53EF\u4EE5\u7528\u8D70\u9A6C\u706F\u7684\u5F62\u5F0F\u8FDB\u884C\u6536\u7EB3\uFF0C\u8FDB\u884C\u8F6E\u64AD\u5C55\u73B0\u3002"),t(),e(31,"li"),n(32,"\u5E38\u7528\u4E8E\u4E00\u7EC4\u56FE\u7247\u6216\u5361\u7247\u8F6E\u64AD\u3002"),t()(),e(33,"pre",16)(34,"code")(35,"span",17),n(36,"import"),t(),n(37," "),e(38,"span",18),n(39,"{"),t(),n(40," NzCarouselModule "),e(41,"span",18),n(42,"}"),t(),n(43," "),e(44,"span",17),n(45,"from"),t(),n(46," "),e(47,"span",19),n(48,"'ng-zorro-antd/carousel'"),t(),e(49,"span",18),n(50,";"),t()()(),f(),t(),e(51,"h2")(52,"span"),n(53,"\u4EE3\u7801\u6F14\u793A"),t(),e(54,"span",20),b("click",function(){return l.expandAllCode()}),t()()(),e(55,"div",21)(56,"div",22)(57,"nz-code-box",23),u(58,"nz-demo-carousel-basic",24),e(59,"div",25),z(),e(60,"p"),n(61,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),t(),f(),t()(),e(62,"nz-code-box",26),u(63,"nz-demo-carousel-fade",24),e(64,"div",25),z(),e(65,"p"),n(66,"\u5207\u6362\u6548\u679C\u4E3A\u6E10\u663E\u3002"),t(),f(),t()(),e(67,"nz-code-box",27),u(68,"nz-demo-carousel-custom",24),e(69,"div",25),z(),e(70,"p"),n(71,"\u901A\u8FC7\u7EE7\u627F "),e(72,"code"),n(73,"NzCarouselBaseStrategy"),t(),n(74," \u81EA\u5B9A\u4E49\u8F6E\u64AD\u56FE\u5207\u6362\u52A8\u753B\u3002"),t(),f(),t()()(),e(75,"div",22)(76,"nz-code-box",28),u(77,"nz-demo-carousel-position",24),e(78,"div",25),z(),e(79,"p"),n(80,"\u4F4D\u7F6E\u6709 4 \u4E2A\u65B9\u5411\u3002"),t(),f(),t()(),e(81,"nz-code-box",29),u(82,"nz-demo-carousel-autoplay",24),e(83,"div",25),z(),e(84,"p"),n(85,"\u5B9A\u65F6\u5207\u6362\u4E0B\u4E00\u5F20\u3002"),t(),f(),t()(),e(86,"nz-code-box",30),u(87,"nz-demo-carousel-loop",24),e(88,"div",25),z(),e(89,"p"),n(90,"\u9632\u6B62\u8F6E\u64AD\u8FDB\u5165\u5FAA\u73AF"),t(),f(),t()()()(),e(91,"section",31),z(),e(92,"h2",32)(93,"span"),n(94,"API"),t(),e(95,"a",33),n(96,"#"),t()(),e(97,"h3",34)(98,"span"),n(99,"nz-carousel"),t(),e(100,"label",35),n(101,"component"),t(),e(102,"label",36),n(103,"standalone"),t(),e(104,"a",37),n(105,"#"),t()(),e(106,"table")(107,"thead")(108,"tr")(109,"th"),n(110,"\u53C2\u6570"),t(),e(111,"th"),n(112,"\u8BF4\u660E"),t(),e(113,"th"),n(114,"\u7C7B\u578B"),t(),e(115,"th"),n(116,"\u9ED8\u8BA4\u503C"),t(),e(117,"th"),n(118,"\u652F\u6301\u5168\u5C40\u914D\u7F6E"),t()()(),e(119,"tbody")(120,"tr")(121,"td")(122,"code"),n(123,"[nzAutoPlay]"),t()(),e(124,"td"),n(125,"\u662F\u5426\u81EA\u52A8\u5207\u6362"),t(),e(126,"td")(127,"code"),n(128,"boolean"),t()(),e(129,"td")(130,"code"),n(131,"false"),t()(),e(132,"td"),n(133,"\u2705"),t()(),e(134,"tr")(135,"td")(136,"code"),n(137,"[nzAutoPlaySpeed]"),t()(),e(138,"td"),n(139,"\u5207\u6362\u65F6\u95F4(\u6BEB\u79D2)\uFF0C\u5F53\u8BBE\u7F6E\u4E3A 0 \u65F6\u4E0D\u5207\u6362"),t(),e(140,"td")(141,"code"),n(142,"number"),t()(),e(143,"td")(144,"code"),n(145,"3000"),t()(),e(146,"td"),n(147,"\u2705"),t()(),e(148,"tr")(149,"td")(150,"code"),n(151,"[nzDotRender]"),t()(),e(152,"td"),n(153,"Dot \u6E32\u67D3\u6A21\u677F"),t(),e(154,"td")(155,"code"),n(156,"TemplateRef<{ $implicit: number }>
1"),t()(),e(157,"td"),n(158,"-"),t(),u(159,"td"),t(),e(160,"tr")(161,"td")(162,"code"),n(163,"[nzDotPosition]"),t()(),e(164,"td"),n(165,"\u9762\u677F\u6307\u793A\u70B9\u4F4D\u7F6E\uFF0C\u53EF\u9009 "),e(166,"code"),n(167,"top"),t(),e(168,"code"),n(169,"bottom"),t(),e(170,"code"),n(171,"left"),t(),e(172,"code"),n(173,"right"),t()(),e(174,"td")(175,"code"),n(176,"string"),t()(),e(177,"td")(178,"code"),n(179,"bottom"),t()(),e(180,"td"),n(181,"\u2705"),t()(),e(182,"tr")(183,"td")(184,"code"),n(185,"[nzDots]"),t()(),e(186,"td"),n(187,"\u662F\u5426\u663E\u793A\u9762\u677F\u6307\u793A\u70B9"),t(),e(188,"td")(189,"code"),n(190,"boolean"),t()(),e(191,"td")(192,"code"),n(193,"true"),t()(),e(194,"td"),n(195,"\u2705"),t()(),e(196,"tr")(197,"td")(198,"code"),n(199,"[nzEffect]"),t()(),e(200,"td"),n(201,"\u52A8\u753B\u6548\u679C\u51FD\u6570\uFF0C\u53EF\u53D6 "),e(202,"code"),n(203,"scrollx"),t(),n(204,", "),e(205,"code"),n(206,"fade"),t()(),e(207,"td")(208,"code"),n(209,"'scrollx'|'fade'"),t()(),e(210,"td")(211,"code"),n(212,"'scrollx'"),t()(),e(213,"td"),n(214,"\u2705"),t()(),e(215,"tr")(216,"td")(217,"code"),n(218,"[nzEnableSwipe]"),t()(),e(219,"td"),n(220,"\u662F\u5426\u652F\u6301\u624B\u52BF\u5212\u52A8\u5207\u6362"),t(),e(221,"td")(222,"code"),n(223,"boolean"),t()(),e(224,"td")(225,"code"),n(226,"true"),t()(),e(227,"td"),n(228,"\u2705"),t()(),e(229,"tr")(230,"td")(231,"code"),n(232,"[nzLoop]"),t()(),e(233,"td"),n(234,"\u662F\u5426\u652F\u6301\u5FAA\u73AF"),t(),e(235,"td")(236,"code"),n(237,"boolean"),t()(),e(238,"td")(239,"code"),n(240,"true"),t()(),e(241,"td"),n(242,"\u2705"),t()(),e(243,"tr")(244,"td")(245,"code"),n(246,"(nzAfterChange)"),t()(),e(247,"td"),n(248,"\u5207\u6362\u9762\u677F\u7684\u56DE\u8C03"),t(),e(249,"td")(250,"code"),n(251,"EventEmitter<number>"),t()(),e(252,"td"),n(253,"-"),t(),u(254,"td"),t(),e(255,"tr")(256,"td")(257,"code"),n(258,"(nzBeforeChange)"),t()(),e(259,"td"),n(260,"\u5207\u6362\u9762\u677F\u7684\u56DE\u8C03"),t(),e(261,"td")(262,"code"),n(263,"EventEmitter<{ from: number; to: number }>"),t()(),e(264,"td"),n(265,"-"),t(),u(266,"td"),t()()(),e(267,"h4",38)(268,"span"),n(269,"\u65B9\u6CD5"),t(),e(270,"a",39),n(271,"#"),t()(),e(272,"table")(273,"thead")(274,"tr")(275,"th"),n(276,"\u540D\u79F0"),t(),e(277,"th"),n(278,"\u63CF\u8FF0"),t()()(),e(279,"tbody")(280,"tr")(281,"td")(282,"code"),n(283,"goTo(slideNumber)"),t()(),e(284,"td"),n(285,"\u5207\u6362\u5230\u6307\u5B9A\u9762\u677F"),t()(),e(286,"tr")(287,"td")(288,"code"),n(289,"next()"),t()(),e(290,"td"),n(291,"\u5207\u6362\u5230\u4E0B\u4E00\u9762\u677F"),t()(),e(292,"tr")(293,"td")(294,"code"),n(295,"pre()"),t()(),e(296,"td"),n(297,"\u5207\u6362\u5230\u4E0A\u4E00\u9762\u677F"),t()()()(),e(298,"h3",40)(299,"span"),n(300,"InjectionToken"),t(),e(301,"a",41),n(302,"#"),t()(),e(303,"table")(304,"thead")(305,"tr")(306,"th"),n(307,"Token"),t(),e(308,"th"),n(309,"\u8BF4\u660E"),t(),e(310,"th"),n(311,"\u53C2\u6570"),t(),e(312,"th"),n(313,"\u9ED8\u8BA4\u503C"),t()()(),e(314,"tbody")(315,"tr")(316,"td")(317,"code"),n(318,"NZ_CAROUSEL_CUSTOM_STRATEGIES"),t()(),e(319,"td"),n(320,"\u63D0\u4F9B\u7528\u6237\u81EA\u5B9A\u4E49\u7684\u5207\u6362\u6548\u679C"),t(),e(321,"td")(322,"code"),n(323,"CarouselStrategyRegistryItem[]"),t()(),e(324,"td"),n(325,"-"),t()()()(),e(326,"h3",42)(327,"span"),n(328,"\u81EA\u5B9A\u4E49\u5207\u6362\u6548\u679C"),t(),e(329,"a",43),n(330,"#"),t()(),e(331,"p"),n(332,"\u4F60\u53EF\u4EE5\u63D0\u4F9B\u81EA\u5B9A\u4E49\u7684\u5207\u6362\u6548\u679C\uFF0C\u5207\u6362\u6548\u679C\u5E94\u5F53\u7EE7\u627F "),e(333,"code"),n(334,"NzCarouselBaseStrategy"),t(),n(335," \u7C7B\uFF08\u9ED8\u8BA4\u7684\u4E24\u79CD\u5207\u6362\u6548\u679C\u540C\u6837\u57FA\u4E8E\u8BE5\u7C7B\uFF09\u3002"),t(),f(),t()()),o&2&&(d(),m("nzOffsetTop",16),d(),m("nzAffix",!1),d(53),m("nzGutter",16),d(),m("nzXl",12)("nzSpan",24),d(),m("nzId","components-carousel-demo-basic")("nzLink","components-carousel-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/basic.md"),d(5),m("nzId","components-carousel-demo-fade")("nzLink","components-carousel-demo-fade")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/fade.md"),d(5),m("nzId","components-carousel-demo-custom")("nzLink","components-carousel-demo-custom")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/custom.md"),d(8),m("nzXl",12)("nzSpan",24),d(),m("nzId","components-carousel-demo-position")("nzLink","components-carousel-demo-position")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/position.md"),d(5),m("nzId","components-carousel-demo-autoplay")("nzLink","components-carousel-demo-autoplay")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/autoplay.md"),d(5),m("nzId","components-carousel-demo-loop")("nzLink","components-carousel-demo-loop")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/loop.md"))},dependencies:[A,ie,oe,J,te,ee,ne,K,de,me,ce,ue,he,pe],encapsulation:2});let s=i;return s})();var st=(()=>{let i=class i{constructor(){this.expanded=!1}goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEac
1h(r=>{r.nzExpanded=this.expanded,r.expandCode(this.expanded),r.check()})}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=p({type:i,selectors:[["nz-demo-carousel"]],viewQuery:function(o,l){if(o&1&&N(A,5),o&2){let c;w(c=F())&&(l.codeBoxes=c)}},decls:330,vars:31,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-carousel-demo-basic","nzTitle","Basic"],["nzHref","#components-carousel-demo-position","nzTitle","Position"],["nzHref","#components-carousel-demo-fade","nzTitle","Fade in"],["nzHref","#components-carousel-demo-autoplay","nzTitle","Scroll automatically"],["nzHref","#components-carousel-demo-custom","nzTitle","Custom transition effect"],["nzHref","#components-carousel-demo-loop","nzTitle","Loop"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],["id","when-to-use"],["onclick","window.location.hash = 'when-to-use'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-carousel-basic","nzGenerateCommand","ng g ng-zorro-antd:carousel-basic <name>","nzComponentName","NzDemoCarouselBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Fade in","nzSelector","nz-demo-carousel-fade","nzGenerateCommand","ng g ng-zorro-antd:carousel-fade <name>","nzComponentName","NzDemoCarouselFadeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Custom transition effect","nzSelector","nz-demo-carousel-custom","nzGenerateCommand","ng g ng-zorro-antd:carousel-custom <name>","nzComponentName","NzDemoCarouselCustomComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Position","nzSelector","nz-demo-carousel-position","nzGenerateCommand","ng g ng-zorro-antd:carousel-position <name>","nzComponentName","NzDemoCarouselPositionComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Scroll automatically","nzSelector","nz-demo-carousel-autoplay","nzGenerateCommand","ng g ng-zorro-antd:carousel-autoplay <name>","nzComponentName","NzDemoCarouselAutoplayComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Loop","nzSelector","nz-demo-carousel-loop","nzGenerateCommand","ng g ng-zorro-antd:carousel-loop <name>","nzComponentName","NzDemoCarouselLoopComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-carousel:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-carousel:standalone'",1,"anchor"],["id","methods"],["onclick","window.location.hash = 'methods'",1,"anchor"],["id","injectiontoken"],["onclick","window.location.hash = 'injectiontoken'",1,"anchor"],["id","customizing-transition-effects"],["onclick","window.location.hash = 'customizing-transition-effects'",1,"anchor"]],template:function(o,l){o&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),b("nzClick",function(h){return l.goLink(h)}),u(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8),t()(),e(10,"section",9)(11,"h1"),n(12,"Carousel"),u(13,"span",10)(14,"span",11),e(15,"a",12),u(16,"span",13),t()(),e(17,"section",9),z(),e(18,"p"),n(19,"A carousel component. Scales with its container."),t(),e(20,"h2",14)(21,"span"),n(22,"When To Use"),t(),e(23,"a",15),n(24,"#"),t()(),e(25,"ul")(26,"li"),n(27,"When there is a group of content on the same level."),t(),e(28,"li"),n(29,"When there is insufficient content space, it can be used to save space in the form of a revolving door."),t(),e(30,"li"),n(31,"Commonly used for a group of pictures/cards."),t()(),e(32,"pre",16)(33,"code")(34,"span",17),n(35,"import"),t(),n(36," "),e(37,"span",18),n(38,"{"),t(),n(39," NzCarouselModule "),e(40,"span",18),n(41,"}"),t(),n(42," "),e(43,"span",17),n(44,"from"),t(),n(45," "),e(46,"span",19),n(47,"'
1ng-zorro-antd/carousel'"),t(),e(48,"span",18),n(49,";"),t()()(),f(),t(),e(50,"h2")(51,"span"),n(52,"Examples"),t(),e(53,"span",20),b("click",function(){return l.expandAllCode()}),t()()(),e(54,"div",21)(55,"div",22)(56,"nz-code-box",23),u(57,"nz-demo-carousel-basic",24),e(58,"div",25),z(),e(59,"p"),n(60,"Basic usage."),t(),f(),t()(),e(61,"nz-code-box",26),u(62,"nz-demo-carousel-fade",24),e(63,"div",25),z(),e(64,"p"),n(65,"Slides use fade for transition."),t(),f(),t()(),e(66,"nz-code-box",27),u(67,"nz-demo-carousel-custom",24),e(68,"div",25),z(),e(69,"p"),n(70,"Customize carousel transition effect by providing a class that extends "),e(71,"code"),n(72,"NzCarouselBaseStrategy"),t(),n(73,"."),t(),f(),t()()(),e(74,"div",22)(75,"nz-code-box",28),u(76,"nz-demo-carousel-position",24),e(77,"div",25),z(),e(78,"p"),n(79,"There are four positions available."),t(),f(),t()(),e(80,"nz-code-box",29),u(81,"nz-demo-carousel-autoplay",24),e(82,"div",25),z(),e(83,"p"),n(84,"Timing of scrolling to the next card/picture."),t(),f(),t()(),e(85,"nz-code-box",30),u(86,"nz-demo-carousel-loop",24),e(87,"div",25),z(),e(88,"p"),n(89,"Prevent the carousel to go in a loop"),t(),f(),t()()()(),e(90,"section",31),z(),e(91,"h2",32)(92,"span"),n(93,"API"),t(),e(94,"a",33),n(95,"#"),t()(),e(96,"h3",34)(97,"span"),n(98,"nz-carousel"),t(),e(99,"label",35),n(100,"component"),t(),e(101,"label",36),n(102,"standalone"),t(),e(103,"a",37),n(104,"#"),t()(),e(105,"table")(106,"thead")(107,"tr")(108,"th"),n(109,"Property"),t(),e(110,"th"),n(111,"Description"),t(),e(112,"th"),n(113,"Type"),t(),e(114,"th"),n(115,"Default"),t(),e(116,"th"),n(117,"Global Config"),t()()(),e(118,"tbody")(119,"tr")(120,"td")(121,"code"),n(122,"[nzAutoPlay]"),t()(),e(123,"td"),n(124,"Whether to scroll automatically"),t(),e(125,"td")(126,"code"),n(127,"boolean"),t()(),e(128,"td")(129,"code"),n(130,"false"),t()(),e(131,"td"),n(132,"\u2705"),t()(),e(133,"tr")(134,"td")(135,"code"),n(136,"[nzAutoPlaySpeed]"),t()(),e(137,"td"),n(138,"Duration (milliseconds), does not scroll when set to 0"),t(),e(139,"td")(140,"code"),n(141,"number"),t()(),e(142,"td")(143,"code"),n(144,"3000"),t()(),e(145,"td"),n(146,"\u2705"),t()(),e(147,"tr")(148,"td")(149,"code"),n(150,"[nzDotRender]"),t()(),e(151,"td"),n(152,"Dot render template"),t(),e(153,"td")(154,"code"),n(155,"TemplateRef<{ $implicit: number }>"),t()(),e(156,"td"),n(157,"-"),t(),u(158,"td"),t(),e(159,"tr")(160,"td")(161,"code"),n(162,"[nzDotPosition]"),t()(),e(163,"td"),n(164,"The position of the dots, which can be one of "),e(165,"code"),n(166,"top"),t(),e(167,"code"),n(168,"bottom"),t(),e(169,"code"),n(170,"left"),t(),e(171,"code"),n(172,"right"),t()(),e(173,"td")(174,"code"),n(175,"string"),t()(),e(176,"td")(177,"code"),n(178,"bottom"),t()(),e(179,"td"),n(180,"\u2705"),t()(),e(181,"tr")(182,"td")(183,"code"),n(184,"[nzDots]"),t()(),e(185,"td"),n(186,"Whether to show the dots at the bottom of the gallery"),t(),e(187,"td")(188,"code"),n(189,"boolean"),t()(),e(190,"td")(191,"code"),n(192,"true"),t()(),e(193,"td"),n(194,"\u2705"),t()(),e(195,"tr")(196,"td")(197,"code"),n(198,"[nzEffect]"),t()(),e(199,"td"),n(200,"Transition effect"),t(),e(201,"td")(202,"code"),n(203,"'scrollx'|'fade'"),t()(),e(204,"td")(205,"code"),n(206,"'scrollx'"),t()(),e(207,"td"),n(208,"\u2705"),t()(),e(209,"tr")(210,"td")(211,"code"),n(212,"[nzEnableSwipe]"),t()(),e(213,"td"),n(214,"Whether to support swipe gesture"),t(),e(215,"td")(216,"code"),n(217,"boolean"),t()(),e(218,"td")(219,"code"),n(220,"true"),t()(),e(221,"td"),n(222,"\u2705"),t()(),e(223,"tr")(224,"td")(225,"code"),n(226,"[nzLoop]"),t()(),e(227,"td"),n(228,"Whether to enable the carousel to go in a loop"),t(),e(229,"td")(230,"code"),n(231,"boolean"),t()(),e(232,"td")(233,"code"),n(234,"true"),t()(),e(235,"td"),n(236,"\u2705"),t()(),e(237,"tr")(238,"td")(239,"code"),n(240,"(nzAfterChange)"),t()(),e(241,"td"),n(242,"Callback function called after the current index changes"),t(),e(243,"td")(244,"code"),n(245,"EventEmitter<number>"),t()(),e(246,"td"),n(247,"-"),t(),u(248,"td"),t(),e(249,"tr")(250,"td")(251,"code"),n(252,"(nzBeforeChange)"),t()(),e(253,"td"),n(254,"Callback function called before the current index changes"),t(),e(255,"td")(256,"code"),n(257,"EventEmitter{ from: number; to: number }>
1"),t()(),e(258,"td"),n(259,"-"),t(),u(260,"td"),t()()(),e(261,"h4",38)(262,"span"),n(263,"Methods"),t(),e(264,"a",39),n(265,"#"),t()(),e(266,"table")(267,"thead")(268,"tr")(269,"th"),n(270,"Name"),t(),e(271,"th"),n(272,"Description"),t()()(),e(273,"tbody")(274,"tr")(275,"td")(276,"code"),n(277,"goTo(slideNumber)"),t()(),e(278,"td"),n(279,"Change current slide to given slide number"),t()(),e(280,"tr")(281,"td")(282,"code"),n(283,"next()"),t()(),e(284,"td"),n(285,"Change current slide to next slide"),t()(),e(286,"tr")(287,"td")(288,"code"),n(289,"pre()"),t()(),e(290,"td"),n(291,"Change current slide to previous slide"),t()()()(),e(292,"h3",40)(293,"span"),n(294,"InjectionToken"),t(),e(295,"a",41),n(296,"#"),t()(),e(297,"table")(298,"thead")(299,"tr")(300,"th"),n(301,"Token"),t(),e(302,"th"),n(303,"Description"),t(),e(304,"th"),n(305,"Parameters"),t(),e(306,"th"),n(307,"Default Value"),t()()(),e(308,"tbody")(309,"tr")(310,"td")(311,"code"),n(312,"NZ_CAROUSEL_CUSTOM_STRATEGIES"),t()(),e(313,"td"),n(314,"Provide custom transitioning strategies"),t(),e(315,"td")(316,"code"),n(317,"CarouselStrategyRegistryItem[]"),t()(),e(318,"td"),n(319,"-"),t()()()(),e(320,"h3",42)(321,"span"),n(322,"Customizing transition effects"),t(),e(323,"a",43),n(324,"#"),t()(),e(325,"p"),n(326,"You can provide strategies that extends "),e(327,"code"),n(328,"NzCarouselBaseStrategy"),t(),n(329," to implement custom transition effects."),t(),f(),t()()),o&2&&(d(),m("nzOffsetTop",16),d(),m("nzAffix",!1),d(52),m("nzGutter",16),d(),m("nzXl",12)("nzSpan",24),d(),m("nzId","components-carousel-demo-basic")("nzLink","components-carousel-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/basic.md"),d(5),m("nzId","components-carousel-demo-fade")("nzLink","components-carousel-demo-fade")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/fade.md"),d(5),m("nzId","components-carousel-demo-custom")("nzLink","components-carousel-demo-custom")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/custom.md"),d(8),m("nzXl",12)("nzSpan",24),d(),m("nzId","components-carousel-demo-position")("nzLink","components-carousel-demo-position")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/position.md"),d(5),m("nzId","components-carousel-demo-autoplay")("nzLink","components-carousel-demo-autoplay")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/autoplay.md"),d(5),m("nzId","components-carousel-demo-loop")("nzLink","components-carousel-demo-loop")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/loop.md"))},dependencies:[A,ie,oe,J,te,ee,ne,K,de,me,ce,ue,he,pe],encapsulation:2});let s=i;return s})();var Nn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=M({type:i}),i.\u0275inj=$({imports:[qe,Je,We.forChild([{path:"en",component:st},{path:"zh",component:rt}])]});let s=i;return s})();export{Nn as NzDemoCarouselModule};

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.