1import{a as Ce,b as Ee,c as Se}from"./chunk-4G5T4OAT.js";import{a as B,g as he,h as fe,m as ze,n as ge}from"./chunk-T5JZFU55.js";import"./chunk-LBBID6PG.js";import"./chunk-UZ6YQCVD.js";import{$a as zt,C as ht,Cc as ae,Gc as me,Ia as ft,Pd as ce,Qd as ue,Sd as St,Tc as de,Td as pe,Xc as Ct,Zc as Et,ab as F,cb as gt,d as pt,ec as Y,lb as se,sc as le}from"./chunk-5HXFPEER.js";import{$b as h,A as Te,Ac as n,Bc as b,Db as Ie,Fb as we,Fc as ne,Gb as nt,Gc as ie,Hc as oe,Ka as Ke,L as Ue,Na as _e,P as qe,Pc as mt,Rb as it,Rc as dt,Tb as ot,Vb as S,Wb as x,Xb as y,Yb as u,Zb as e,_b as t,_c as ct,dc as Ae,f as q,ia as Xe,jc as N,ka as Ye,l as I,lb as m,lc as te,m as E,ma as C,mc as rt,nc as st,oc as lt,pb as Ne,pc as H,qc as w,qd as ut,ra as f,rc as A,sa as z,ta as K,ua as ee,ud as re,vc as at,vd as Fe,xb as g,xc as X,yb as et,za as Je,zb as tt}from"./chunk-ZUWCBCQQ.js";import{f as De}from"./chunk-JNGVGNCT.js";var yt=["slickList"],bt=["slickTrack"],vt=["*"],kt=l=>({$implicit:l});function Dt(l,o){}function Tt(l,o){if(l&1){let i=Ae();e(0,"li",9),N("click",function(){let a=K(i).$index,d=te(2);return ee(d.goTo(a))}),Ie(1,Dt,0,0,"ng-template",10),t()}if(l&2){let i=o.$index,r=te(2),a=at(8);X("slick-active",i===r.activeIndex),m(),u("ngTemplateOutlet",r.nzDotRender||a)("ngTemplateOutletContext",dt(4,kt,i))}}function _t(l,o){if(l&1&&(e(0,"ul",7),x(1,Tt,2,6,"li",8,S),t()),l&2){let i=te();X("slick-dots-top",i.nzDotPosition==="top")("slick-dots-bottom",i.nzDotPosition==="bottom")("slick-dots-left",i.nzDotPosition==="left")("slick-dots-right",i.nzDotPosition==="right"),m(),y(i.carouselContents)}}function Nt(l,o){if(l&1&&(e(0,"button"),n(1),t()),l&2){let i=o.$implicit;m(),b(i+1)}}var k=(()=>{class l{renderer=C(Ne);el=C(_e).nativeElement;set isActive(i){this._active=i,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}_active=!1;static \u0275fac=function(r){return new(r||l)};static \u0275dir=tt({type:l,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"]})}return l})(),O=class{cdr;renderer;platform;options;carouselComponent;contents;slickListEl;slickTrackEl;length;unitWidth;unitHeight;get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(o,i,r,a,d){this.cdr=i,this.renderer=r,this.platform=a,this.options=d,this.carouselComponent=o}withCarouselContents(o){let i=this.carouselComponent;if(this.slickListEl=i.slickListEl,this.slickTrackEl=i.slickTrackEl,this.contents=o?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){let r=i.el.getBoundingClientRect();this.unitWidth=r.width,this.unitHeight=r.height}else o?.forEach((r,a)=>{a===0?this.renderer.setStyle(r.el,"width","100%"):this.renderer.setStyle(r.el,"display","none")})}dragging(o){}dispose(){}getFromToInBoundary(o,i){let r=this.maxIndex+1;return{from:(o+r)%r,to:(i+r)%r}}},Be=class extends O{withCarouselContents(o){super.withCarouselContents(o),this.contents&&(this.slickTrackEl.style.width=`${this.length*this.unitWidth}px`,this.contents.forEach((i,r)=>{this.renderer.setStyle(i.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(i.el,"position","relative"),this.renderer.setStyle(i.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(i.el,"left",`${-this.unitWidth*r}px`),this.renderer.setStyle(i.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(o,i){let{to:r}=this.getFromToInBoundary(o,i),a=new q;return this.contents.forEach((d,L)=>{this.renderer.setStyle(d.el,"opacity",r===L?"1":"0")}),setTimeout(()=>{a.next(),a.complete()},this.carouselComponent.nzTransitionSpeed),a}dispose(){this.contents.forEach(o=>{this.renderer.setStyle(o.el,"transition",null),this.renderer.setStyle(o.el,"opacity",null),this.renderer.setStyle(o.el,"width",null),this.renderer.setStyle(o.el,"left",null)}),super.dispose()}},Pe=class extends O{isDragging=!1;isTransitioning=!1;get vertical(){return this.carouselComponent.vertical}constructor(o,i,r,a,d){super(o,i,r,a,d)}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(o){super.withCarouselContents(o);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(a=>{this.renderer.setStyle(a.el,"position","relative"),this.renderer.setStyle(a.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(a.el,"height",`${this.unitHeight}px`)}))}switch(o,i){let{to:r}=this.getFromToInBoundary(o,i),a=new q;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(o,i):this.horizontalTransform(o,i),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(d=>{this.renderer.setStyle(d.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,a.next(),a.complete()},this.carouselComponent.nzTransitionSpeed),a.asObservable()}dragging(o){if(this.isTransitioning)return;let i=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(i===this.maxIndex?this.prepareVerticalContext(!0):i===0&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-i*this.unitHeight+o.x}px, 0)`)):(!this.isDragging&&this.length>2&&(i===this.maxIndex?this.prepareHorizontalContext(!0):i===0&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-i*this.unitWidth+o.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(o,i){let{from:r,to:a}=this.getFromToInBoundary(o,i);this.length>2&&i!==a?(this.prepareVerticalContext(a<r),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-i*this.unitHeight}px, 0)`)):this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-a*this.unitHeight}px, 0`)}horizontalTransform(o,i){let{from:r,to:a}=this.getFromToInBoundary(o,i);this.length>2&&i!==a?(this.prepareHorizontalContext(a<r),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-i*this.unitWidth}px, 0, 0)`)):this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-a*this.unitWidth}px, 0, 0`)}prepareVerticalContext(o){o?(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(o){o?(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`))}},He=new Ye("nz-carousel-custom-strategies"),It="carousel",D=(()=>{var _;let l=[],o,i=[],r=[],a,d=[],L=[],j,U=[],Re=[],Le,Oe=[],Me=[],$e,Ge=[],We=[],Ze,Ve=[],Qe=[],je;return _=class{nzConfigService=(E(this,l),C(zt));ngZone=C(nt);renderer=C(Ne);cdr=C(ut);platform=C(gt);resizeService=C(Ct);nzDragService=C(Et);nzResizeObserver=C(St);destroyRef=C(Je);_nzModuleName=It;carouselContents;slickList;slickTrack;nzDotRender;nzEffect=E(this,i,"scrollx");nzEnableSwipe=(E(this,r),E(this,d,!0));nzDots=(E(this,L),E(this,U,!0));nzAutoPlay=(E(this,Re),E(this,Oe,!1));nzAutoPlaySpeed=(E(this,Me),E(this,Ge,3e3));nzTransitionSpeed=(E(this,We),500);nzLoop=E(this,Ve,!0);nzStrategyOptions=(E(this,Qe),void 0);set nzDotPosition(c){this._dotPosition=c,this.vertical=c==="left"||c==="right"}get nzDotPosition(){return this._dotPosition}_dotPosition="bottom";nzBeforeChange=new we;nzAfterChange=new we;activeIndex=0;el=C(_e).nativeElement;slickListEl;slickTrackEl;strategy;vertical=!1;transitionInProgress;dir="ltr";gestureRect=null;pointerDelta=null;isTransiting=!1;isDragging=!1;directionality=C(ht);customStrategies=C(He,{optional:!0});constructor(){this.nzDotPosition="bottom",this.destroyRef.onDestroy(()=>{this.clearScheduledTransition(),this.strategy?.dispose()})}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe(Y(this.destroyRef)).subscribe(c=>{this.dir=c,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),ft(this.slickListEl,"keydown").pipe(Y(this.destroyRef)).subscribe(c=>{let{keyCode:s}=c;s!==37&&s!==39||(c.preventDefault(),this.ngZone.run(()=>{s===37?this.pre():this.next(),this.cdr.markForCheck()}))}),this.nzResizeObserver.observe(this.el).pipe(Ue(100),qe(),Y(this.destroyRef)).subscribe(()=>{this.layout()})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.connect().pipe(Y(this.destroyRef)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(c){let{nzEffect:s,nzDotPosition:p}=c;s&&!s.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),p&&!p.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),!this.nzAutoPlay||!this.nzAutoPlaySpeed?this.clearScheduledTransition():this.scheduleNextTransition()}next(){this.goTo(this.activeIndex+1)}pre(){this.goTo(this.activeIndex-1)}goTo(c){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||c>=0&&c<this.carouselContents.length)){let s=this.carouselContents.length,p=this.activeIndex,v=(c+s)%s;this.isTransiting=!0,this.nzBeforeChange.emit({from:p,to:v}),this.strategy.switch(this.activeIndex,c).subscribe(()=>{this.scheduleNextTransition(),this.nzAfterChange.emit(v),this.isTransiting=!1}),this.markContentActive(v),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();let c=this.customStrategies?this.customStrategies.find(s=>s.name===this.nzEffect):null;if(c){this.strategy=new c.strategy(this,this.cdr,this.renderer,this.platform);return}this.strategy=this.nzEffect==="scrollx"?new Pe(this,this.cdr,this.renderer,this.platform):new Be(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(c){this.activeIndex=c,this.carouselContents&&this.carouselContents.forEac
1h((s,p)=>{s.isActive=c===p}),this.cdr.markForCheck()}pointerDown=c=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(c).subscribe(s=>{this.pointerDelta=s,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){let s=this.pointerDelta?this.pointerDelta.x:0;Math.abs(s)>this.gestureRect.width/3&&(this.nzLoop||s<=0&&this.activeIndex+1<this.carouselContents.length||s>0&&this.activeIndex>0)?this.goTo(s>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))};layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}},(()=>{let c=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;o=[F()],a=[F()],j=[F()],Le=[F()],$e=[F()],Ze=[F()],je=[F()],I(_,null,je,{kind:"setter",name:"nzDotPosition",static:!1,private:!1,access:{has:s=>"nzDotPosition"in s,set:(s,p)=>{s.nzDotPosition=p}},metadata:c},null,l),I(null,null,o,{kind:"field",name:"nzEffect",static:!1,private:!1,access:{has:s=>"nzEffect"in s,get:s=>s.nzEffect,set:(s,p)=>{s.nzEffect=p}},metadata:c},i,r),I(null,null,a,{kind:"field",name:"nzEnableSwipe",static:!1,private:!1,access:{has:s=>"nzEnableSwipe"in s,get:s=>s.nzEnableSwipe,set:(s,p)=>{s.nzEnableSwipe=p}},metadata:c},d,L),I(null,null,j,{kind:"field",name:"nzDots",static:!1,private:!1,access:{has:s=>"nzDots"in s,get:s=>s.nzDots,set:(s,p)=>{s.nzDots=p}},metadata:c},U,Re),I(null,null,Le,{kind:"field",name:"nzAutoPlay",static:!1,private:!1,access:{has:s=>"nzAutoPlay"in s,get:s=>s.nzAutoPlay,set:(s,p)=>{s.nzAutoPlay=p}},metadata:c},Oe,Me),I(null,null,$e,{kind:"field",name:"nzAutoPlaySpeed",static:!1,private:!1,access:{has:s=>"nzAutoPlaySpeed"in s,get:s=>s.nzAutoPlaySpeed,set:(s,p)=>{s.nzAutoPlaySpeed=p}},metadata:c},Ge,We),I(null,null,Ze,{kind:"field",name:"nzLoop",static:!1,private:!1,access:{has:s=>"nzLoop"in s,get:s=>s.nzLoop,set:(s,p)=>{s.nzLoop=p}},metadata:c},Ve,Qe),c&&Object.defineProperty(_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c})})(),De(_,"\u0275fac",function(s){return new(s||_)}),De(_,"\u0275cmp",g({type:_,selectors:[["nz-carousel"]],contentQueries:function(s,p,v){if(s&1&<(v,k,4),s&2){let J;w(J=A())&&(p.carouselContents=J)}},viewQuery:function(s,p){if(s&1&&(H(yt,7),H(bt,7)),s&2){let v;w(v=A())&&(p.slickList=v.first),w(v=A())&&(p.slickTrack=v.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(s,p){s&2&&X("ant-carousel-vertical",p.vertical)("ant-carousel-rtl",p.dir==="rtl")},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:[2,"nzEnableSwipe","nzEnableSwipe",re],nzDots:[2,"nzDots","nzDots",re],nzAutoPlay:[2,"nzAutoPlay","nzAutoPlay",re],nzAutoPlaySpeed:[2,"nzAutoPlaySpeed","nzAutoPlaySpeed",Fe],nzTransitionSpeed:[2,"nzTransitionSpeed","nzTransitionSpeed",Fe],nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[Ke],ngContentSelectors:vt,decls:9,vars:4,consts:[["slickList",""],["slickTrack",""],["renderDotTemplate",""],[1,"slick-initialized","slick-slider",3,"dir"],["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(s,p){if(s&1){let v=Ae();rt(),e(0,"div",3)(1,"div",4,0),N("mousedown",function(ke){return K(v),ee(p.pointerDown(ke))})("touchstart",function(ke){return K(v),ee(p.pointerDown(ke))}),e(3,"div",5,1),st(5),t()(),it(6,_t,3,8,"ul",6),t(),Ie(7,Nt,2,1,"ng-template",null,2,ct)}s&2&&(X("slick-vertical",p.nzDotPosition==="left"||p.nzDotPosition==="right"),u("dir","ltr"),m(6),ot(p.nzDots?6:-1))},dependencies:[pt],encapsulation:2,changeDetection:0})),_})(),T=(()=>{class l{static \u0275fac=function(r){return new(r||l)};static \u0275mod=et({type:l});static \u0275inj=Xe({})}return l})(),xe=class extends O{isTransitioning=!1;get vertical(){return this.carouselComponent.vertical}constructor(o,i,r,a,d){super(o,i,r,a,d)}dispose(){this.renderer.setStyle(this.slickTrackEl,"transform",null),super.dispose()}withCarouselContents(o){super.withCarouselContents(o);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}
1px, 0, 0)`)),this.contents.forEach(a=>{this.renderer.setStyle(a.el,"position","relative"),this.renderer.setStyle(a.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(a.el,"height",`${this.unitHeight}px`)})))}switch(o,i){let r=(i+this.length)%this.length,a=this.carouselComponent.nzTransitionSpeed,d=new q;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${a}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,d.next(),d.complete()},a),d.asObservable()}dragging(o){if(this.isTransitioning)return;let i=this.carouselComponent.activeIndex;this.vertical?this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-i*this.unitHeight+o.x}px, 0)`):this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-i*this.unitWidth+o.x}px, 0, 0)`)}},ye=class extends O{withCarouselContents(o){if(super.withCarouselContents(o),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,a)=>{let d=this.carouselComponent.activeIndex===a;this.renderer.setStyle(r.el,"transform",d?"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*a}px`),this.renderer.setStyle(r.el,"transform-style","preserve-3d"),this.renderer.setStyle(r.el,"backface-visibility","hidden")});let{carouselComponent:i}=this;i.ngZone.runOutsideAngular(()=>{Te(i.nzTransitionSpeed).subscribe(()=>{this.contents.forEach(r=>this.renderer.setStyle(r.el,"transition",["transform 500ms ease 0s"]))})})}}switch(o,i){let{from:r,to:a}=this.getFromToInBoundary(o,i),d=new q,L=this.carouselComponent.nzTransitionSpeed;return Te(L).subscribe(()=>{d.next(),d.complete()}),o===i?d:(this.contents.forEach((j,U)=>{U===r?this.renderer.setStyle(j.el,"transform","rotateY(180deg)"):U===a&&this.renderer.setStyle(j.el,"transform","rotateY(0deg)")}),d.asObservable())}dispose(){this.contents.forEach(o=>{this.renderer.setStyle(o.el,"transition",null),this.renderer.setStyle(o.el,"transform",null),this.renderer.setStyle(o.el,"width",null),this.renderer.setStyle(o.el,"left",null),this.renderer.setStyle(o.el,"transform-style",null),this.renderer.setStyle(o.el,"backface-visibility",null)}),super.dispose()}};function wt(l,o){if(l&1&&(e(0,"div",1)(1,"h3"),n(2),t()()),l&2){let i=o.$implicit;m(2),b(i)}}var $=class l{array=[1,2,3,4];static \u0275fac=function(i){return new(i||l)};static \u0275cmp=g({type:l,selectors:[["nz-demo-carousel-autoplay"]],decls:3,vars:0,consts:[["nzAutoPlay",""],["nz-carousel-content",""]],template:function(i,r){i&1&&(e(0,"nz-carousel",0),x(1,wt,3,1,"div",1,S),t()),i&2&&(m(),y(r.array))},dependencies:[T,D,k],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}"]})};function At(l,o){if(l&1&&(e(0,"div",1)(1,"h3"),n(2),t()()),l&2){let i=o.$implicit;m(2),b(i)}}var G=class l{array=[1,2,3,4];effect="scrollx";static \u0275fac=function(i){return new(i||l)};static \u0275cmp=g({type:l,selectors:[["nz-demo-carousel-basic"]],decls:3,vars:1,consts:[[3,"nzEffect"],["nz-carousel-content",""]],template:function(i,r){i&1&&(e(0,"nz-carousel",0),x(1,At,3,1,"div",1,S),t()),i&2&&(u("nzEffect",r.effect),m(),y(r.array))},dependencies:[T,D,k],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}"]})};function Pt(l,o){if(l&1&&(e(0,"div",5)(1,"h3"),n(2),t()()),l&2){let i=o.$implicit;m(2),b(i)}}var W=class l{strategy="transform-no-loop";array=[1,2,3,4];static \u0275fac=function(i){return new(i||l)};static \u0275cmp=g({type:l,selectors:[["nz-demo-carousel-custom"]],features:[mt([{provide:He,useValue:[{name:"transform-no-loop",strategy:xe},{name:"flip",strategy:ye}]}])],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-carou
1sel-content",""]],template:function(i,r){i&1&&(e(0,"nz-radio-group",0),oe("ngModelChange",function(d){return ie(r.strategy,d)||(r.strategy=d),d}),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),x(8,Pt,3,1,"div",5,S),t()),i&2&&(ne("ngModel",r.strategy),m(7),u("nzEffect",r.strategy),m(),y(r.array))},dependencies:[de,ae,me,T,D,k,Se,Ee,Ce],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}"]})};function Ht(l,o){if(l&1&&(e(0,"div",1)(1,"h3"),n(2),t()()),l&2){let i=o.$implicit;m(2),b(i)}}var Z=class l{array=[1,2,3,4];static \u0275fac=function(i){return new(i||l)};static \u0275cmp=g({type:l,selectors:[["nz-demo-carousel-fade"]],decls:3,vars:1,consts:[[3,"nzEffect"],["nz-carousel-content",""]],template:function(i,r){i&1&&(e(0,"nz-carousel",0),x(1,Ht,3,1,"div",1,S),t()),i&2&&(u("nzEffect","fade"),m(),y(r.array))},dependencies:[T,D,k],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}"]})};function Rt(l,o){if(l&1&&(e(0,"div",1)(1,"h3"),n(2),t()()),l&2){let i=o.$implicit;m(2),b(i)}}var V=class l{array=[1,2,3,4];effect="scrollx";static \u0275fac=function(i){return new(i||l)};static \u0275cmp=g({type:l,selectors:[["nz-demo-carousel-loop"]],decls:3,vars:2,consts:[["nzAutoPlay","",3,"nzEffect","nzLoop"],["nz-carousel-content",""]],template:function(i,r){i&1&&(e(0,"nz-carousel",0),x(1,Rt,3,1,"div",1,S),t()),i&2&&(u("nzEffect",r.effect)("nzLoop",!1),m(),y(r.array))},dependencies:[T,D,k],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}"]})};function Lt(l,o){if(l&1&&(e(0,"div",6)(1,"h3"),n(2),t()()),l&2){let i=o.$implicit;m(2),b(i)}}var Q=class l{array=[1,2,3,4];dotPosition="bottom";static \u0275fac=function(i){return new(i||l)};static \u0275cmp=g({type:l,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(i,r){i&1&&(e(0,"nz-radio-group",0),oe("ngModelChange",function(d){return ie(r.dotPosition,d)||(r.dotPosition=d),d}),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),x(10,Lt,3,1,"div",6,S),t()),i&2&&(ne("ngModel",r.dotPosition),m(9),u("nzDotPosition",r.dotPosition),m(),y(r.array))},dependencies:[de,ae,me,T,D,k,Se,Ee,Ce],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}"]})};var be=class l{expanded=!1;codeBoxes;goLink(o){window&&(window.location.hash=o)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(o=>o.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||l)};static \u0275cmp=g({type:l,selectors:[["nz-demo-carousel"]],viewQuery:function(i,r){if(i&1&&H(B,5),i&2){let a;w(a=A())&&(r.codeBoxes=a)}},decls:315,vars:37,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"],["nzType","edit"],["name","carousel","description","\u4E00\u7EC4\u8F6E\u64AD\u7684\u533A\u57DF\u3002","language","zh"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],["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","nzIframe","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","nzIframe","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","nzIframe","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","nzIframe","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","nzIframe","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","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-carou
1sel"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-carousel'",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(i,r){i&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),N("nzClick",function(d){return r.goLink(d)}),h(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(),h(15,"span",11),e(16,"a",12),h(17,"nz-icon",13),t()(),h(18,"component-meta",14),e(19,"section",9),z(),e(20,"h2",15)(21,"span"),n(22,"\u4F55\u65F6\u4F7F\u7528"),t(),e(23,"a",16),n(24,"#"),t()(),e(25,"ul")(26,"li"),n(27,"\u5F53\u6709\u4E00\u7EC4\u5E73\u7EA7\u7684\u5185\u5BB9\u3002"),t(),e(28,"li"),n(29,"\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(30,"li"),n(31,"\u5E38\u7528\u4E8E\u4E00\u7EC4\u56FE\u7247\u6216\u5361\u7247\u8F6E\u64AD\u3002"),t()(),f(),t(),e(32,"h2")(33,"span"),n(34,"\u4EE3\u7801\u6F14\u793A"),t(),e(35,"nz-icon",17),N("click",function(){return r.expandAllCode()}),t()()(),e(36,"div",18)(37,"div",19)(38,"nz-code-box",20),h(39,"nz-demo-carousel-basic",21),e(40,"div",22),z(),e(41,"p"),n(42,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),t(),f(),t()(),e(43,"nz-code-box",23),h(44,"nz-demo-carousel-fade",21),e(45,"div",22),z(),e(46,"p"),n(47,"\u5207\u6362\u6548\u679C\u4E3A\u6E10\u663E\u3002"),t(),f(),t()(),e(48,"nz-code-box",24),h(49,"nz-demo-carousel-custom",21),e(50,"div",22),z(),e(51,"p"),n(52,"\u901A\u8FC7\u7EE7\u627F "),e(53,"code"),n(54,"NzCarouselBaseStrategy"),t(),n(55," \u81EA\u5B9A\u4E49\u8F6E\u64AD\u56FE\u5207\u6362\u52A8\u753B\u3002"),t(),f(),t()()(),e(56,"div",19)(57,"nz-code-box",25),h(58,"nz-demo-carousel-position",21),e(59,"div",22),z(),e(60,"p"),n(61,"\u4F4D\u7F6E\u6709 4 \u4E2A\u65B9\u5411\u3002"),t(),f(),t()(),e(62,"nz-code-box",26),h(63,"nz-demo-carousel-autoplay",21),e(64,"div",22),z(),e(65,"p"),n(66,"\u5B9A\u65F6\u5207\u6362\u4E0B\u4E00\u5F20\u3002"),t(),f(),t()(),e(67,"nz-code-box",27),h(68,"nz-demo-carousel-loop",21),e(69,"div",22),z(),e(70,"p"),n(71,"\u9632\u6B62\u8F6E\u64AD\u8FDB\u5165\u5FAA\u73AF"),t(),f(),t()()()(),e(72,"section",28),z(),e(73,"h2",29)(74,"span"),n(75,"API"),t(),e(76,"a",30),n(77,"#"),t()(),e(78,"h3",31)(79,"span"),n(80,"nz-carousel"),t(),e(81,"label",32),n(82,"component"),t(),e(83,"a",33),n(84,"#"),t()(),e(85,"table")(86,"thead")(87,"tr")(88,"th"),n(89,"\u53C2\u6570"),t(),e(90,"th"),n(91,"\u8BF4\u660E"),t(),e(92,"th"),n(93,"\u7C7B\u578B"),t(),e(94,"th"),n(95,"\u9ED8\u8BA4\u503C"),t(),e(96,"th"),n(97,"\u652F\u6301\u5168\u5C40\u914D\u7F6E"),t()()(),e(98,"tbody")(99,"tr")(100,"td")(101,"code"),n(102,"[nzAutoPlay]"),t()(),e(103,"td"),n(104,"\u662F\u5426\u81EA\u52A8\u5207\u6362"),t(),e(105,"td")(106,"code"),n(107,"boolean"),t()(),e(108,"td")(109,"code"),n(110,"false"),t()(),e(111,"td"),n(112,"\u2705"),t()(),e(113,"tr")(114,"td")(115,"code"),n(116,"[nzAutoPlaySpeed]"),t()(),e(117,"td"),n(118,"\u5207\u6362\u65F6\u95F4(\u6BEB\u79D2)\uFF0C\u5F53\u8BBE\u7F6E\u4E3A 0 \u65F6\u4E0D\u5207\u6362"),t(),e(119,"td")(120,"code"),n(121,"number"),t()(),e(122,"td")(123,"code"),n(124,"3000"),t()(),e(125,"td"),n(126,"\u2705"),t()(),e(127,"tr")(128,"td")(129,"code"),n(130,"[nzDotRender]"),t()(),e(131,"td"),n(132,"Dot \u6E32\u67D3\u6A21\u677F"),t(),e(133,"td")(134,"code"),n(135,"TemplateRef<{ $implicit: number }>"),t()(),e(136,"td"),n(137,"-"),t(),h(138,"td"),t(),e(139,"tr")(140,"td")(141,"code"),n(142,"[nzDotPosition]"),t()(),e(143,"td"),n(144,"\u9762\u677F\u6307\u793A\u70B9\u4F4D\u7F6E\uFF0C\u53EF\u9009 "),e(145,"code"),n(146,"top"),t(),e(147,"code"),n(148,"bottom"),t(),e(149,"code"),n(150,"left"),t(),e(151,"code"),n(152,"right"),t()(),e(153,"td")(154,"code"),n(155,"string"),t()(),e(156,"td")(157,"code"),n(158,"bottom"),t()(),e(159,"td"),n(160,"\u2705"),t()(),e(161,"tr")(162,"td")(163,"code"),n(164,"[nzDots]"),t()(),e(165,"td"),n(166,"\u662F\u5426\u663E\u793A\u9762\u677F\u6307\u793A\u70B9"),t(),e(167,"td")(168,"code"),n(169,"boolean"),t()(),e(170,"td")(171,"code"),n(172,"true"),t()(),e(173,"td"),n(174,"\u2705"),t()(),e(175,"tr")(176,"td")(177,"code"),n(178,"[nzEffect]"),t()(),e(179,"td"),n(180,"\u52A8\u753B\u6548\u679C\u51FD\u6570\uFF0C\u53EF\u53D6 "),e(181,"code"),n(182,"scrollx"),t(),n(183,", "),e(184,"code"),n(185,"fade"),t()(),e(186,"td")(187,"code"),n(188,"'scrollx'|'fade'"),t()(),e(189,"td")(190,"code"),n(191,"'scrollx'"),t()(),e(192,"td"),n(193,"\u2705"),t()(),e(194,"tr")(195,"td")(196,"code"),n(197,"[nzEnableSwipe]"),t()(),e(198,"td"),n(199,"\u662F\u5426\u652F\u6301\u624B\u52BF\u5212\u52A8\u5207\u6362"),t(),e(200,"td")(201,"code"),n(202,"boolean"),t()(),e(203,"td")(204,"code"),n(205,"true"),t()(),e(206,"td"),n(207,"\u2705"),t()(),e(208,"tr")(209,"td")(210,"code"),n(211,"[nzLoop]"),t()(),e(212,"td"),n(213,"\u662F\u5426\u652F\u6301\u5FAA\u73AF"),t(),e(214,"td")(215,"code"),n(216,"boolean"),t()(),e(217,"td")(218,"code"),n(219,"true"),t()(),e(220,"td"),n(221,"\u2705"),t()(),e(222,"tr")(223,"td")(224,"code"),n(225,"(nzAfterChange)"),t()(),e(226,"td"),n(227,"\u5207\u6362\u9762\u677F\u7684\u56DE\u8C03"),t(),e(228,"td")(229,"code"),n(230,"EventEmitter<number>"),t()(),e(231,"td"),n(232,"-"),t(),h(233,"td"),t(),e(234,"tr")(235,"td")(236,"code"),n(237,"(nzBeforeChange)"),t()(),e(238,"td"),n(239,"\u5207\u6362\u9762\u677F\u7684\u56DE\u8C03"),t(),e(240,"td")(241,"code"),n(242,"
1EventEmitter<{ from: number; to: number }>"),t()(),e(243,"td"),n(244,"-"),t(),h(245,"td"),t()()(),e(246,"h4",34)(247,"span"),n(248,"\u65B9\u6CD5"),t(),e(249,"a",35),n(250,"#"),t()(),e(251,"table")(252,"thead")(253,"tr")(254,"th"),n(255,"\u540D\u79F0"),t(),e(256,"th"),n(257,"\u63CF\u8FF0"),t()()(),e(258,"tbody")(259,"tr")(260,"td")(261,"code"),n(262,"goTo(slideNumber)"),t()(),e(263,"td"),n(264,"\u5207\u6362\u5230\u6307\u5B9A\u9762\u677F"),t()(),e(265,"tr")(266,"td")(267,"code"),n(268,"next()"),t()(),e(269,"td"),n(270,"\u5207\u6362\u5230\u4E0B\u4E00\u9762\u677F"),t()(),e(271,"tr")(272,"td")(273,"code"),n(274,"pre()"),t()(),e(275,"td"),n(276,"\u5207\u6362\u5230\u4E0A\u4E00\u9762\u677F"),t()()()(),e(277,"h3",36)(278,"span"),n(279,"InjectionToken"),t(),e(280,"a",37),n(281,"#"),t()(),e(282,"table")(283,"thead")(284,"tr")(285,"th"),n(286,"Token"),t(),e(287,"th"),n(288,"\u8BF4\u660E"),t(),e(289,"th"),n(290,"\u53C2\u6570"),t(),e(291,"th"),n(292,"\u9ED8\u8BA4\u503C"),t()()(),e(293,"tbody")(294,"tr")(295,"td")(296,"code"),n(297,"NZ_CAROUSEL_CUSTOM_STRATEGIES"),t()(),e(298,"td"),n(299,"\u63D0\u4F9B\u7528\u6237\u81EA\u5B9A\u4E49\u7684\u5207\u6362\u6548\u679C"),t(),e(300,"td")(301,"code"),n(302,"CarouselStrategyRegistryItem[]"),t()(),e(303,"td"),n(304,"-"),t()()()(),e(305,"h3",38)(306,"span"),n(307,"\u81EA\u5B9A\u4E49\u5207\u6362\u6548\u679C"),t(),e(308,"a",39),n(309,"#"),t()(),e(310,"p"),n(311,"\u4F60\u53EF\u4EE5\u63D0\u4F9B\u81EA\u5B9A\u4E49\u7684\u5207\u6362\u6548\u679C\uFF0C\u5207\u6362\u6548\u679C\u5E94\u5F53\u7EE7\u627F "),e(312,"code"),n(313,"NzCarouselBaseStrategy"),t(),n(314," \u7C7B\uFF08\u9ED8\u8BA4\u7684\u4E24\u79CD\u5207\u6362\u6548\u679C\u540C\u6837\u57FA\u4E8E\u8BE5\u7C7B\uFF09\u3002"),t(),f(),t()()),i&2&&(m(),u("nzOffsetTop",16),m(),u("nzAffix",!1),m(34),u("nzGutter",16),m(),u("nzXl",12)("nzSpan",24),m(),u("nzId","components-carousel-demo-basic")("nzLink","components-carousel-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/basic.md"),m(5),u("nzId","components-carousel-demo-fade")("nzLink","components-carousel-demo-fade")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/fade.md"),m(5),u("nzId","components-carousel-demo-custom")("nzLink","components-carousel-demo-custom")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/custom.md"),m(8),u("nzXl",12)("nzSpan",24),m(),u("nzId","components-carousel-demo-position")("nzLink","components-carousel-demo-position")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/position.md"),m(5),u("nzId","components-carousel-demo-autoplay")("nzLink","components-carousel-demo-autoplay")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/autoplay.md"),m(5),u("nzId","components-carousel-demo-loop")("nzLink","components-carousel-demo-loop")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/loop.md"))},dependencies:[ge,B,ze,he,fe,pe,ue,ce,le,se,$,G,W,Z,V,Q],encapsulation:2})};var ve=class l{expanded=!1;codeBoxes;goLink(o){window&&(window.location.hash=o)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(o=>o.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||l)};static \u0275cmp=g({type:l,selectors:[["nz-demo-carousel"]],viewQuery:function(i,r){if(i&1&&H(B,5),i&2){let a;w(a=A())&&(r.codeBoxes=a)}},decls:309,vars:37,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"],["nzType","edit"],["name","carousel","description","A carousel component. Scales with its container.","language","en"],["id","when_to_use"],["onclick","window.location.hash = 'when_to_use'",1,"anchor"],["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","nzIframe","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","nzIframe","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","nzIframe","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","nzIframe","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","nzIframe","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","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-carou
1sel"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-carousel'",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(i,r){i&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),N("nzClick",function(d){return r.goLink(d)}),h(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"),h(13,"span",10)(14,"span",11),e(15,"a",12),h(16,"nz-icon",13),t()(),h(17,"component-meta",14),e(18,"section",9),z(),e(19,"h2",15)(20,"span"),n(21,"When To Use"),t(),e(22,"a",16),n(23,"#"),t()(),e(24,"ul")(25,"li"),n(26,"When there is a group of content on the same level."),t(),e(27,"li"),n(28,"When there is insufficient content space, it can be used to save space in the form of a revolving door."),t(),e(29,"li"),n(30,"Commonly used for a group of pictures/cards."),t()(),f(),t(),e(31,"h2")(32,"span"),n(33,"Examples"),t(),e(34,"nz-icon",17),N("click",function(){return r.expandAllCode()}),t()()(),e(35,"div",18)(36,"div",19)(37,"nz-code-box",20),h(38,"nz-demo-carousel-basic",21),e(39,"div",22),z(),e(40,"p"),n(41,"Basic usage."),t(),f(),t()(),e(42,"nz-code-box",23),h(43,"nz-demo-carousel-fade",21),e(44,"div",22),z(),e(45,"p"),n(46,"Slides use fade for transition."),t(),f(),t()(),e(47,"nz-code-box",24),h(48,"nz-demo-carousel-custom",21),e(49,"div",22),z(),e(50,"p"),n(51,"Customize carousel transition effect by providing a class that extends "),e(52,"code"),n(53,"NzCarouselBaseStrategy"),t(),n(54,"."),t(),f(),t()()(),e(55,"div",19)(56,"nz-code-box",25),h(57,"nz-demo-carousel-position",21),e(58,"div",22),z(),e(59,"p"),n(60,"There are four positions available."),t(),f(),t()(),e(61,"nz-code-box",26),h(62,"nz-demo-carousel-autoplay",21),e(63,"div",22),z(),e(64,"p"),n(65,"Timing of scrolling to the next card/picture."),t(),f(),t()(),e(66,"nz-code-box",27),h(67,"nz-demo-carousel-loop",21),e(68,"div",22),z(),e(69,"p"),n(70,"Prevent the carousel to go in a loop"),t(),f(),t()()()(),e(71,"section",28),z(),e(72,"h2",29)(73,"span"),n(74,"API"),t(),e(75,"a",30),n(76,"#"),t()(),e(77,"h3",31)(78,"span"),n(79,"nz-carousel"),t(),e(80,"label",32),n(81,"component"),t(),e(82,"a",33),n(83,"#"),t()(),e(84,"table")(85,"thead")(86,"tr")(87,"th"),n(88,"Property"),t(),e(89,"th"),n(90,"Description"),t(),e(91,"th"),n(92,"Type"),t(),e(93,"th"),n(94,"Default"),t(),e(95,"th"),n(96,"Global Config"),t()()(),e(97,"tbody")(98,"tr")(99,"td")(100,"code"),n(101,"[nzAutoPlay]"),t()(),e(102,"td"),n(103,"Whether to scroll automatically"),t(),e(104,"td")(105,"code"),n(106,"boolean"),t()(),e(107,"td")(108,"code"),n(109,"false"),t()(),e(110,"td"),n(111,"\u2705"),t()(),e(112,"tr")(113,"td")(114,"code"),n(115,"[nzAutoPlaySpeed]"),t()(),e(116,"td"),n(117,"Duration (milliseconds), does not scroll when set to 0"),t(),e(118,"td")(119,"code"),n(120,"number"),t()(),e(121,"td")(122,"code"),n(123,"3000"),t()(),e(124,"td"),n(125,"\u2705"),t()(),e(126,"tr")(127,"td")(128,"code"),n(129,"[nzDotRender]"),t()(),e(130,"td"),n(131,"Dot render template"),t(),e(132,"td")(133,"code"),n(134,"TemplateRef<{ $implicit: number }>"),t()(),e(135,"td"),n(136,"-"),t(),h(137,"td"),t(),e(138,"tr")(139,"td")(140,"code"),n(141,"[nzDotPosition]"),t()(),e(142,"td"),n(143,"The position of the dots, which can be one of "),e(144,"code"),n(145,"top"),t(),e(146,"code"),n(147,"bottom"),t(),e(148,"code"),n(149,"left"),t(),e(150,"code"),n(151,"right"),t()(),e(152,"td")(153,"code"),n(154,"string"),t()(),e(155,"td")(156,"code"),n(157,"bottom"),t()(),e(158,"td"),n(159,"\u2705"),t()(),e(160,"tr")(161,"td")(162,"code"),n(163,"[nzDots]"),t()(),e(164,"td"),n(165,"Whether to show the dots at the bottom of the gallery"),t(),e(166,"td")(167,"code"),n(168,"boolean"),t()(),e(169,"td")(170,"code"),n(171,"true"),t()(),e(172,"td"),n(173,"\u2705"),t()(),e(174,"tr")(175,"td")(176,"code"),n(177,"[nzEffect]"),t()(),e(178,"td"),n(179,"Transition effect"),t(),e(180,"td")(181,"code"),n(182,"'scrollx'|'fade'"),t()(),e(183,"td")(184,"code"),n(185,"'scrollx'"),t()(),e(186,"td"),n(187,"\u2705"),t()(),e(188,"tr")(189,"td")(190,"code"),n(191,"[nzEnableSwipe]"),t()(),e(192,"td"),n(193,"Whether to supp
1ort swipe gesture"),t(),e(194,"td")(195,"code"),n(196,"boolean"),t()(),e(197,"td")(198,"code"),n(199,"true"),t()(),e(200,"td"),n(201,"\u2705"),t()(),e(202,"tr")(203,"td")(204,"code"),n(205,"[nzLoop]"),t()(),e(206,"td"),n(207,"Whether to enable the carousel to go in a loop"),t(),e(208,"td")(209,"code"),n(210,"boolean"),t()(),e(211,"td")(212,"code"),n(213,"true"),t()(),e(214,"td"),n(215,"\u2705"),t()(),e(216,"tr")(217,"td")(218,"code"),n(219,"(nzAfterChange)"),t()(),e(220,"td"),n(221,"Callback function called after the current index changes"),t(),e(222,"td")(223,"code"),n(224,"EventEmitter<number>"),t()(),e(225,"td"),n(226,"-"),t(),h(227,"td"),t(),e(228,"tr")(229,"td")(230,"code"),n(231,"(nzBeforeChange)"),t()(),e(232,"td"),n(233,"Callback function called before the current index changes"),t(),e(234,"td")(235,"code"),n(236,"EventEmitter{ from: number; to: number }>"),t()(),e(237,"td"),n(238,"-"),t(),h(239,"td"),t()()(),e(240,"h4",34)(241,"span"),n(242,"Methods"),t(),e(243,"a",35),n(244,"#"),t()(),e(245,"table")(246,"thead")(247,"tr")(248,"th"),n(249,"Name"),t(),e(250,"th"),n(251,"Description"),t()()(),e(252,"tbody")(253,"tr")(254,"td")(255,"code"),n(256,"goTo(slideNumber)"),t()(),e(257,"td"),n(258,"Change current slide to given slide number"),t()(),e(259,"tr")(260,"td")(261,"code"),n(262,"next()"),t()(),e(263,"td"),n(264,"Change current slide to next slide"),t()(),e(265,"tr")(266,"td")(267,"code"),n(268,"pre()"),t()(),e(269,"td"),n(270,"Change current slide to previous slide"),t()()()(),e(271,"h3",36)(272,"span"),n(273,"InjectionToken"),t(),e(274,"a",37),n(275,"#"),t()(),e(276,"table")(277,"thead")(278,"tr")(279,"th"),n(280,"Token"),t(),e(281,"th"),n(282,"Description"),t(),e(283,"th"),n(284,"Parameters"),t(),e(285,"th"),n(286,"Default Value"),t()()(),e(287,"tbody")(288,"tr")(289,"td")(290,"code"),n(291,"NZ_CAROUSEL_CUSTOM_STRATEGIES"),t()(),e(292,"td"),n(293,"Provide custom transitioning strategies"),t(),e(294,"td")(295,"code"),n(296,"CarouselStrategyRegistryItem[]"),t()(),e(297,"td"),n(298,"-"),t()()()(),e(299,"h3",38)(300,"span"),n(301,"Customizing transition effects"),t(),e(302,"a",39),n(303,"#"),t()(),e(304,"p"),n(305,"You can provide strategies that extends "),e(306,"code"),n(307,"NzCarouselBaseStrategy"),t(),n(308," to implement custom transition effects."),t(),f(),t()()),i&2&&(m(),u("nzOffsetTop",16),m(),u("nzAffix",!1),m(33),u("nzGutter",16),m(),u("nzXl",12)("nzSpan",24),m(),u("nzId","components-carousel-demo-basic")("nzLink","components-carousel-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/basic.md"),m(5),u("nzId","components-carousel-demo-fade")("nzLink","components-carousel-demo-fade")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/fade.md"),m(5),u("nzId","components-carousel-demo-custom")("nzLink","components-carousel-demo-custom")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/custom.md"),m(8),u("nzXl",12)("nzSpan",24),m(),u("nzId","components-carousel-demo-position")("nzLink","components-carousel-demo-position")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/position.md"),m(5),u("nzId","components-carousel-demo-autoplay")("nzLink","components-carousel-demo-autoplay")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/autoplay.md"),m(5),u("nzId","components-carousel-demo-loop")("nzLink","components-carousel-demo-loop")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/carousel/demo/loop.md"))},dependencies:[ge,B,ze,he,fe,pe,ue,ce,le,se,$,G,W,Z,V,Q],encapsulation:2})};var Qt=[{path:"en",component:ve},{path:"zh",component:be}],Kn=Qt;export{Kn as default};
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.