ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
2 lines • 40.4 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/platform-browser/animations"),require("ng-zorro-antd/core/polyfill"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("@angular/cdk/keycodes"),require("@angular/cdk/overlay"),require("rxjs"),require("rxjs/operators"),require("ng-zorro-antd/core/resize-observers"),require("ng-zorro-antd/core/util"),require("@angular/router"),require("@angular/cdk/observers"),require("@angular/cdk/platform"),require("@angular/cdk/scrolling"),require("@angular/common"),require("ng-zorro-antd/core/outlet"),require("ng-zorro-antd/dropdown"),require("ng-zorro-antd/icon"),require("ng-zorro-antd/core/config"),require("ng-zorro-antd/core/logger")):"function"==typeof define&&define.amd?define("ng-zorro-antd/tabs",["exports","@angular/core","@angular/platform-browser/animations","ng-zorro-antd/core/polyfill","@angular/cdk/a11y","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/keycodes","@angular/cdk/overlay","rxjs","rxjs/operators","ng-zorro-antd/core/resize-observers","ng-zorro-antd/core/util","@angular/router","@angular/cdk/observers","@angular/cdk/platform","@angular/cdk/scrolling","@angular/common","ng-zorro-antd/core/outlet","ng-zorro-antd/dropdown","ng-zorro-antd/icon","ng-zorro-antd/core/config","ng-zorro-antd/core/logger"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self)["ng-zorro-antd"]=t["ng-zorro-antd"]||{},t["ng-zorro-antd"].tabs={}),t.ng.core,t.ng.platformBrowser.animations,t["ng-zorro-antd"].core.polyfill,t.ng.cdk.a11y,t.ng.cdk.bidi,t.ng.cdk.coercion,t.ng.cdk.keycodes,t.ng.cdk.overlay,t.rxjs,t.rxjs.operators,t["ng-zorro-antd"].core["resize-observers"],t["ng-zorro-antd"].core.util,t.ng.router,t.ng.cdk.observers,t.ng.cdk.platform,t.ng.cdk.scrolling,t.ng.common,t["ng-zorro-antd"].core.outlet,t["ng-zorro-antd"].dropdown,t["ng-zorro-antd"].icon,t["ng-zorro-antd"].core.config,t["ng-zorro-antd"].core.logger)}(this,(function(t,e,n,i,o,a,r,s,l,c,d,h,p,u,f,b,m,g,y,v,z,T,I){"use strict";var k=function(){function t(t){this.elementRef=t,this.addIcon="plus",this.element=this.elementRef.nativeElement}return t.prototype.getElementWidth=function(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetWidth)||0},t.prototype.getElementHeight=function(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetHeight)||0},t}();k.decorators=[{type:e.Component,args:[{selector:"nz-tab-add-button, button[nz-tab-add-button]",template:'\n <ng-container *nzStringTemplateOutlet="addIcon; let icon">\n <i nz-icon [nzType]="icon" nzTheme="outline"></i>\n </ng-container>\n ',host:{class:"ant-tabs-nav-add","aria-label":"Add tab",type:"button"}}]}],k.ctorParameters=function(){return[{type:e.ElementRef}]},k.propDecorators={addIcon:[{type:e.Input}]};var x=function(){function t(t,e,n){this.elementRef=t,this.ngZone=e,this.animationMode=n,this.position="horizontal",this.animated=!0}return Object.defineProperty(t.prototype,"_animated",{get:function(){return"NoopAnimations"!==this.animationMode&&this.animated},enumerable:!1,configurable:!0}),t.prototype.alignToElement=function(t){var e=this;this.ngZone.runOutsideAngular((function(){i.reqAnimFrame((function(){return e.setStyles(t)}))}))},t.prototype.setStyles=function(t){var e=this.elementRef.nativeElement;"horizontal"===this.position?(e.style.top="",e.style.height="",e.style.left=this.getLeftPosition(t),e.style.width=this.getElementWidth(t)):(e.style.left="",e.style.width="",e.style.top=this.getTopPosition(t),e.style.height=this.getElementHeight(t))},t.prototype.getLeftPosition=function(t){return t?(t.offsetLeft||0)+"px":"0"},t.prototype.getElementWidth=function(t){return t?(t.offsetWidth||0)+"px":"0"},t.prototype.getTopPosition=function(t){return t?(t.offsetTop||0)+"px":"0"},t.prototype.getElementHeight=function(t){return t?(t.offsetHeight||0)+"px":"0"},t}();x.decorators=[{type:e.Directive,args:[{selector:"nz-tabs-ink-bar, [nz-tabs-ink-bar]",host:{class:"ant-tabs-ink-bar","[class.ant-tabs-ink-bar-animated]":"_animated"}}]}],x.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[n.ANIMATION_MODULE_TYPE]}]}]},x.propDecorators={position:[{type:e.Input}],animated:[{type:e.Input}]};function C(t,e,n,i){var o,a=arguments.length,r=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,n,r):o(e,n))||r);return a>3&&r&&Object.defineProperty(e,n,r),r}function w(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}Object.create;function S(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,a=n.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function A(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(S(arguments[e]));return t}Object.create;var E=function(){function t(t){this.elementRef=t,this.disabled=!1,this.active=!1,this.el=t.nativeElement,this.parentElement=this.el.parentElement}return t.prototype.focus=function(){this.el.focus()},Object.defineProperty(t.prototype,"width",{get:function(){return this.parentElement.offsetWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.parentElement.offsetHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.parentElement.offsetLeft},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.parentElement.offsetTop},enumerable:!1,configurable:!0}),t}();E.decorators=[{type:e.Directive,args:[{selector:"[nzTabNavItem]"}]}],E.ctorParameters=function(){return[{type:e.ElementRef}]},E.propDecorators={disabled:[{type:e.Input}],tab:[{type:e.Input}],active:[{type:e.Input}]};var O=function(){function t(t,n){this.cdr=t,this.elementRef=n,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new e.EventEmitter,this.selected=new e.EventEmitter,this.closeAnimationWaitTimeoutId=-1,this.menuOpened=!1,this.element=this.elementRef.nativeElement}return t.prototype.onSelect=function(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))},t.prototype.onContextmenu=function(t,e){t.disabled||t.tab.nzContextmenu.emit(e)},t.prototype.showItems=function(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()},t.prototype.menuVisChange=function(t){var e=this;t||(this.closeAnimationWaitTimeoutId=setTimeout((function(){e.menuOpened=!1,e.cdr.markForCheck()}),150))},t.prototype.getElementWidth=function(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetWidth)||0},t.prototype.getElementHeight=function(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetHeight)||0},t.prototype.ngOnDestroy=function(){clearTimeout(this.closeAnimationWaitTimeoutId)},t}();O.decorators=[{type:e.Component,args:[{selector:"nz-tab-nav-operation",exportAs:"nzTabNavOperation",preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,template:'\n <button\n nz-dropdown\n class="ant-tabs-nav-more"\n type="button"\n tabindex="-1"\n aria-hidden="true"\n nzOverlayClassName="nz-tabs-dropdown"\n #dropdownTrigger="nzDropdown"\n [nzDropdownMenu]="menu"\n [nzOverlayStyle]="{ minWidth: \'46px\' }"\n [nzMatchWidthElement]="null"\n (nzVisibleChange)="menuVisChange($event)"\n (mouseenter)="showItems()"\n >\n <i nz-icon nzType="ellipsis"></i>\n </button>\n <nz-dropdown-menu #menu="nzDropdownMenu">\n <ul nz-menu *ngIf="menuOpened">\n <li\n nz-menu-item\n *ngFor="let item of items"\n class="ant-tabs-dropdown-menu-item"\n [class.ant-tabs-dropdown-menu-item-disabled]="item.disabled"\n [nzSelected]="item.active"\n [nzDisabled]="item.disabled"\n (click)="onSelect(item)"\n (contextmenu)="onContextmenu(item, $event)"\n >\n <ng-container *nzStringTemplateOutlet="item.tab.label; context: { visible: false }">{{ item.tab.label }}</ng-container>\n </li>\n </ul>\n </nz-dropdown-menu>\n <button *ngIf="addable" nz-tab-add-button [addIcon]="addIcon" (click)="addClicked.emit()"></button>\n ',host:{class:"ant-tabs-nav-operations","[class.ant-tabs-nav-operations-hidden]":"items.length === 0"}}]}],O.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef}]},O.propDecorators={items:[{type:e.Input}],addable:[{type:e.Input}],addIcon:[{type:e.Input}],addClicked:[{type:e.Output}],selected:[{type:e.Output}]};var R="undefined"!=typeof requestAnimationFrame?c.animationFrameScheduler:c.asapScheduler,D=function(){function t(t,n,i,o,a){this.cdr=t,this.ngZone=n,this.viewportRuler=i,this.nzResizeObserver=o,this.dir=a,this.indexFocused=new e.EventEmitter,this.selectFocusedIndex=new e.EventEmitter,this.addClicked=new e.EventEmitter,this.tabScroll=new e.EventEmitter,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new c.Subject,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1,this.lockAnimationTimeoutId=-1,this.cssTransformTimeWaitingId=-1}return Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){var e=r.coerceNumberProperty(t);this._selectedIndex!==e&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusIndex",{get:function(){return this.keyManager?this.keyManager.activeItemIndex:0},set:function(t){this.isValidIndex(t)&&this.focusIndex!==t&&this.keyManager&&this.keyManager.setActiveItem(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddButton",{get:function(){return 0===this.hiddenItems.length&&this.addable},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){var t=this,e=this.dir?this.dir.change:c.of(null),n=this.viewportRuler.change(150),a=function(){t.updateScrollListPosition(),t.alignInkBarToSelectedTab()};this.keyManager=new o.FocusKeyManager(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(0),i.reqAnimFrame(a),c.merge(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe(d.takeUntil(this.destroy$),d.auditTime(16,R)).subscribe((function(){a()})),c.merge(e,n,this.items.changes).pipe(d.takeUntil(this.destroy$)).subscribe((function(){Promise.resolve().then(a),t.keyManager.withHorizontalOrientation(t.getLayoutDirection())})),this.keyManager.change.pipe(d.takeUntil(this.destroy$)).subscribe((function(e){t.indexFocused.emit(e),t.setTabFocus(e),t.scrollToTab(t.keyManager.activeItem)}))},t.prototype.ngAfterContentChecked=function(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())},t.prototype.ngOnDestroy=function(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()},t.prototype.onSelectedFromMenu=function(t){var e=this.items.toArray().findIndex((function(e){return e===t}));-1!==e&&(this.keyManager.updateActiveItem(e),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))},t.prototype.onOffsetChange=function(t){if("horizontal"===this.position){if(-1===this.lockAnimationTimeoutId){if(this.transformX>=0&&t.x>0)return;if(this.transformX<=this.wrapperWidth-this.scrollListWidth&&t.x<0)return}t.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+t.x),this.setTransform(this.transformX,0)}else{if(-1===this.lockAnimationTimeoutId){if(this.transformY>=0&&t.y>0)return;if(this.transformY<=this.wrapperHeight-this.scrollListHeight&&t.y<0)return}t.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+t.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()},t.prototype.handleKeydown=function(t){var e=this.navWarpRef.nativeElement.contains(t.target);if(!s.hasModifierKey(t)&&e)switch(t.keyCode){case s.LEFT_ARROW:case s.UP_ARROW:case s.RIGHT_ARROW:case s.DOWN_ARROW:this.lockAnimation(),this.keyManager.onKeydown(t);break;case s.ENTER:case s.SPACE:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(t)}},t.prototype.isValidIndex=function(t){if(!this.items)return!0;var e=this.items?this.items.toArray()[t]:null;return!!e&&!e.disabled},t.prototype.scrollToTab=function(t){var e=this;if(this.items.find((function(e){return e===t}))){var n=this.items.toArray();if("horizontal"===this.position){var i=this.transformX;if("rtl"===this.getLayoutDirection()){var o=n[0].left+n[0].width-t.left-t.width;o<this.transformX?i=o:o+t.width>this.transformX+this.wrapperWidth&&(i=o+t.width-this.wrapperWidth)}else t.left<-this.transformX?i=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(i=-(t.left+t.width-this.wrapperWidth));this.transformX=i,this.transformY=0,this.setTransform(i,0)}else{i=this.transformY;t.top<-this.transformY?i=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(i=-(t.top+t.height-this.wrapperHeight)),this.transformY=i,this.transformX=0,this.setTransform(0,i)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout((function(){e.setVisibleRange()}),150)}},t.prototype.lockAnimation=function(){var t=this;-1===this.lockAnimationTimeoutId&&this.ngZone.runOutsideAngular((function(){t.navListRef.nativeElement.style.transition="none",t.lockAnimationTimeoutId=setTimeout((function(){t.navListRef.nativeElement.style.transition="",t.lockAnimationTimeoutId=-1}),150)}))},t.prototype.setTransform=function(t,e){this.navListRef.nativeElement.style.transform="translate("+t+"px, "+e+"px)"},t.prototype.clampTransformX=function(t){var e=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(e,t),0):Math.min(Math.max(e,t),0)},t.prototype.clampTransformY=function(t){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,t),0)},t.prototype.updateScrollListPosition=function(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))},t.prototype.resetSizes=function(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0},t.prototype.alignInkBarToSelectedTab=function(){var t=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e&&this.inkBar.alignToElement(e.parentElement)},t.prototype.setPingStatus=function(){var t={top:!1,right:!1,bottom:!1,left:!1},e=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(t.right=this.transformX>0,t.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(t.left=this.transformX<0,t.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(t.top=this.transformY<0,t.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(t).forEach((function(n){var i="ant-tabs-nav-wrap-ping-"+n;t[n]?e.classList.add(i):e.classList.remove(i)}))},t.prototype.setVisibleRange=function(){var t,e,n,i,o,a,r=this.items.toArray(),s={width:0,height:0,left:0,top:0,right:0},l=function(t){var n=r[t]||s;return"right"===e?r[0].left+r[0].width-r[t].left-r[t].width:n[e]};"horizontal"===this.position?(t="width",i=this.wrapperWidth,o=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),a=this.addButtonWidth,n=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(e="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,e="left")):(t="height",i=this.wrapperHeight,o=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),a=this.addButtonHeight,e="top",n=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);var c=i;if(o+a>i&&(c=i-a),!r.length)return this.hiddenItems=[],void this.cdr.markForCheck();for(var d=r.length,h=d,p=0;p<d;p+=1){if(l(p)+(r[p]||s)[t]>n+c){h=p-1;break}}var u=0;for(p=d-1;p>=0;p-=1){if(l(p)<n){u=p+1;break}}var f=r.slice(0,u),b=r.slice(h+1);this.hiddenItems=A(f,b),this.cdr.markForCheck()},t.prototype.getLayoutDirection=function(){return this.dir&&"rtl"===this.dir.value?"rtl":"ltr"},t.prototype.setTabFocus=function(t){},t.prototype.ngOnChanges=function(t){var e=t.position;e&&!e.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())},t}();D.decorators=[{type:e.Component,args:[{selector:"nz-tabs-nav",exportAs:"nzTabsNav",preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,template:'\n <div\n class="ant-tabs-nav-wrap"\n [class.ant-tabs-nav-wrap-ping-left]="pingLeft"\n [class.ant-tabs-nav-wrap-ping-right]="pingRight"\n [class.ant-tabs-nav-wrap-ping-top]="pingTop"\n [class.ant-tabs-nav-wrap-ping-bottom]="pingBottom"\n #navWarp\n >\n <div class="ant-tabs-nav-list" #navList nzTabScrollList (offsetChange)="onOffsetChange($event)" (tabScroll)="tabScroll.emit($event)">\n <ng-content></ng-content>\n <button *ngIf="showAddButton" nz-tab-add-button [addIcon]="addIcon" (click)="addClicked.emit()"></button>\n <div nz-tabs-ink-bar [hidden]="hideBar" [position]="position" [animated]="inkBarAnimated"></div>\n </div>\n </div>\n <nz-tab-nav-operation\n (addClicked)="addClicked.emit()"\n (selected)="onSelectedFromMenu($event)"\n [addIcon]="addIcon"\n [addable]="addable"\n [items]="hiddenItems"\n ></nz-tab-nav-operation>\n <div class="ant-tabs-extra-content" *ngIf="extraTemplate">\n <ng-template [ngTemplateOutlet]="extraTemplate"></ng-template>\n </div>\n ',host:{role:"tablist",class:"ant-tabs-nav","(keydown)":"handleKeydown($event)"}}]}],D.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.NgZone},{type:l.ViewportRuler},{type:h.NzResizeObserver},{type:a.Directionality,decorators:[{type:e.Optional}]}]},D.propDecorators={indexFocused:[{type:e.Output}],selectFocusedIndex:[{type:e.Output}],addClicked:[{type:e.Output}],tabScroll:[{type:e.Output}],position:[{type:e.Input}],addable:[{type:e.Input}],hideBar:[{type:e.Input}],addIcon:[{type:e.Input}],inkBarAnimated:[{type:e.Input}],extraTemplate:[{type:e.Input}],selectedIndex:[{type:e.Input}],navWarpRef:[{type:e.ViewChild,args:["navWarp",{static:!0}]}],navListRef:[{type:e.ViewChild,args:["navList",{static:!0}]}],operationRef:[{type:e.ViewChild,args:[O,{static:!0}]}],addBtnRef:[{type:e.ViewChild,args:[k,{static:!1}]}],inkBar:[{type:e.ViewChild,args:[x,{static:!0}]}],items:[{type:e.ContentChildren,args:[E,{descendants:!0}]}]};var W=function(){this.content=null,this.active=!1,this.tabPaneAnimated=!0,this.forceRender=!1};W.decorators=[{type:e.Component,args:[{selector:"[nz-tab-body]",exportAs:"nzTabBody",preserveWhitespaces:!1,encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,template:'\n <ng-container *ngIf="active || forceRender">\n <ng-template [ngTemplateOutlet]="content"></ng-template>\n </ng-container>\n ',host:{class:"ant-tabs-tabpane","[class.ant-tabs-tabpane-active]":"active","[attr.tabindex]":"active ? 0 : -1","[attr.aria-hidden]":"!active","[style.visibility]":'tabPaneAnimated ? active ? null : "hidden" : null',"[style.height]":"tabPaneAnimated ? active ? null : 0 : null","[style.overflow-y]":'tabPaneAnimated ? active ? null : "none" : null',"[style.display]":'!tabPaneAnimated ? active ? null : "none" : null'}}]}],W.propDecorators={content:[{type:e.Input}],active:[{type:e.Input}],tabPaneAnimated:[{type:e.Input}],forceRender:[{type:e.Input}]};var P=Math.pow(.995,20),L=function(){function t(t,n){var i=this;this.ngZone=t,this.elementRef=n,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=function(){},this.offsetChange=new e.EventEmitter,this.tabScroll=new e.EventEmitter,this.onTouchEnd=function(t){if(i.touchPosition){var e=i.lastOffset,n=i.lastTimeDiff;if(i.lastOffset=i.touchPosition=null,e){var o=e.x/n,a=e.y/n,r=Math.abs(o),s=Math.abs(a);if(Math.max(r,s)<.1)return;var l=o,c=a;i.motion=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(i.motion):(l*=P,c*=P,i.onOffset(20*l,20*c,t))}),20)}}},this.onTouchMove=function(t){if(i.touchPosition){t.preventDefault();var e=t.touches[0],n=e.screenX,o=e.screenY,a=n-i.touchPosition.x,r=o-i.touchPosition.y;i.onOffset(a,r,t);var s=Date.now();i.lastTimeDiff=s-i.lastTimestamp,i.lastTimestamp=s,i.lastOffset={x:a,y:r},i.touchPosition={x:n,y:o}}},this.onTouchStart=function(t){var e=t.touches[0],n=e.screenX,o=e.screenY;i.touchPosition={x:n,y:o},window.clearInterval(i.motion)},this.onWheel=function(t){var e,n=t.deltaX,o=t.deltaY,a=Math.abs(n),r=Math.abs(o);a===r?e="x"===i.lastWheelDirection?n:o:a>r?(e=n,i.lastWheelDirection="x"):(e=o,i.lastWheelDirection="y");var s=Date.now(),l=Math.abs(e);(s-i.lastWheelTimestamp>100||l-i.lastMixedWheel>10)&&(i.lastWheelPrevent=!1),i.onOffset(-e,-e,t),(t.defaultPrevented||i.lastWheelPrevent)&&(i.lastWheelPrevent=!0),i.lastWheelTimestamp=s,i.lastMixedWheel=l}}return t.prototype.ngOnInit=function(){var t=this;this.unsubscribe=this.ngZone.runOutsideAngular((function(){var e=t.elementRef.nativeElement,n=c.fromEvent(e,"wheel"),i=c.fromEvent(e,"touchstart"),o=c.fromEvent(e,"touchmove"),a=c.fromEvent(e,"touchend"),r=new c.Subscription;return r.add(t.subscribeWrap("wheel",n,t.onWheel)),r.add(t.subscribeWrap("touchstart",i,t.onTouchStart)),r.add(t.subscribeWrap("touchmove",o,t.onTouchMove)),r.add(t.subscribeWrap("touchend",a,t.onTouchEnd)),function(){r.unsubscribe()}}))},t.prototype.subscribeWrap=function(t,e,n){var i=this;return e.subscribe((function(e){i.tabScroll.emit({type:t,event:e}),e.defaultPrevented||n(e)}))},t.prototype.onOffset=function(t,e,n){var i=this;this.ngZone.run((function(){i.offsetChange.emit({x:t,y:e,event:n})}))},t.prototype.ngOnDestroy=function(){this.unsubscribe()},t}();L.decorators=[{type:e.Directive,args:[{selector:"[nzTabScrollList]"}]}],L.ctorParameters=function(){return[{type:e.NgZone},{type:e.ElementRef}]},L.propDecorators={offsetChange:[{type:e.Output}],tabScroll:[{type:e.Output}]};var M=function(){this.closeIcon="close"};M.decorators=[{type:e.Component,args:[{selector:"nz-tab-close-button, button[nz-tab-close-button]",template:'\n <ng-container *nzStringTemplateOutlet="closeIcon; let icon">\n <i nz-icon [nzType]="icon" nzTheme="outline"></i>\n </ng-container>\n ',host:{class:"ant-tabs-tab-remove","aria-label":"Close tab",type:"button"}}]}],M.ctorParameters=function(){return[]},M.propDecorators={closeIcon:[{type:e.Input}]};var B=function(t){this.templateRef=t};B.decorators=[{type:e.Directive,args:[{selector:"ng-template[nzTabLink]",exportAs:"nzTabLinkTemplate"}]}],B.ctorParameters=function(){return[{type:e.TemplateRef,decorators:[{type:e.Host}]}]};var N=function(t,e,n){this.elementRef=t,this.routerLink=e,this.routerLinkWithHref=n};N.decorators=[{type:e.Directive,args:[{selector:"a[nz-tab-link]",exportAs:"nzTabLink"}]}],N.ctorParameters=function(){return[{type:e.ElementRef},{type:u.RouterLink,decorators:[{type:e.Optional},{type:e.Self}]},{type:u.RouterLinkWithHref,decorators:[{type:e.Optional},{type:e.Self}]}]};var H=function(){};H.decorators=[{type:e.Directive,args:[{selector:"[nz-tab]",exportAs:"nzTab"}]}];var j=new e.InjectionToken("NZ_TAB_SET"),F=function(){function t(t){this.closestTabSet=t,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new e.EventEmitter,this.nzDeselect=new e.EventEmitter,this.nzClick=new e.EventEmitter,this.nzContextmenu=new e.EventEmitter,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new c.Subject}return Object.defineProperty(t.prototype,"content",{get:function(){return this.template||this.contentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){var t;return this.nzTitle||(null===(t=this.nzTabLinkTemplateDirective)||void 0===t?void 0:t.templateRef)},enumerable:!1,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=t.nzTitle,n=t.nzDisabled,i=t.nzForceRender;(e||n||i)&&this.stateChanges.next()},t.prototype.ngOnDestroy=function(){this.stateChanges.complete()},t}();F.decorators=[{type:e.Component,args:[{selector:"nz-tab",exportAs:"nzTab",preserveWhitespaces:!1,encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,template:'\n <ng-template #tabLinkTemplate>\n <ng-content select="[nz-tab-link]"></ng-content>\n </ng-template>\n <ng-template #contentTemplate><ng-content></ng-content></ng-template>\n '}]}],F.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[j]}]}]},F.propDecorators={nzTitle:[{type:e.Input}],nzClosable:[{type:e.Input}],nzCloseIcon:[{type:e.Input}],nzDisabled:[{type:e.Input}],nzForceRender:[{type:e.Input}],nzSelect:[{type:e.Output}],nzDeselect:[{type:e.Output}],nzClick:[{type:e.Output}],nzContextmenu:[{type:e.Output}],nzTabLinkTemplateDirective:[{type:e.ContentChild,args:[B,{static:!1}]}],template:[{type:e.ContentChild,args:[H,{static:!1,read:e.TemplateRef}]}],linkDirective:[{type:e.ContentChild,args:[N,{static:!1}]}],contentTemplate:[{type:e.ViewChild,args:["contentTemplate",{static:!0}]}]},C([p.InputBoolean(),w("design:type",Object)],F.prototype,"nzClosable",void 0),C([p.InputBoolean(),w("design:type",Object)],F.prototype,"nzDisabled",void 0),C([p.InputBoolean(),w("design:type",Object)],F.prototype,"nzForceRender",void 0);var X=function(){},Y=0,V=function(){function t(t,n,i,o){this.nzConfigService=t,this.cdr=n,this.directionality=i,this.router=o,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new e.EventEmitter(!0),this.nzSelectedIndexChange=new e.EventEmitter,this.nzTabListScroll=new e.EventEmitter,this.nzClose=new e.EventEmitter,this.nzAdd=new e.EventEmitter,this.allTabs=new e.QueryList,this.tabs=new e.QueryList,this.dir="ltr",this.destroy$=new c.Subject,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=c.Subscription.EMPTY,this.tabsSubscription=c.Subscription.EMPTY,this.canDeactivateSubscription=c.Subscription.EMPTY,this.tabSetId=Y++}return Object.defineProperty(t.prototype,"nzSelectedIndex",{get:function(){return this.selectedIndex},set:function(t){this.indexToSelect=r.coerceNumberProperty(t,null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addable",{get:function(){return"editable-card"===this.nzType&&!this.nzHideAdd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"closable",{get:function(){return"editable-card"===this.nzType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"line",{get:function(){return"line"===this.nzType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inkBarAnimated",{get:function(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabPaneAnimated",{get:function(){return"horizontal"===this.position&&this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t,e=this;this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(d.takeUntil(this.destroy$)).subscribe((function(t){e.dir=t,e.cdr.detectChanges()}))},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()},t.prototype.ngAfterContentInit=function(){var t=this;Promise.resolve().then((function(){t.setUpRouter()})),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe((function(){if(t.clampTabIndex(t.indexToSelect)===t.selectedIndex)for(var e=t.tabs.toArray(),n=0;n<e.length;n++)if(e[n].isActive){t.indexToSelect=t.selectedIndex=n;break}t.subscribeToTabLabels(),t.cdr.markForCheck()}))},t.prototype.ngAfterContentChecked=function(){var t=this,e=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==e){var n=null==this.selectedIndex;n||this.nzSelectChange.emit(this.createChangeEvent(e)),Promise.resolve().then((function(){t.tabs.forEach((function(t,n){return t.isActive=n===e})),n||t.nzSelectedIndexChange.emit(e)}))}this.tabs.forEach((function(n,i){n.position=i-e,null==t.selectedIndex||0!==n.position||n.origin||(n.origin=e-t.selectedIndex)})),this.selectedIndex!==e&&(this.selectedIndex=e,this.cdr.markForCheck())},t.prototype.onClose=function(t,e){e.preventDefault(),e.stopPropagation(),this.nzClose.emit({index:t})},t.prototype.onAdd=function(){this.nzAdd.emit()},t.prototype.clampTabIndex=function(t){return Math.min(this.tabs.length-1,Math.max(t||0,0))},t.prototype.createChangeEvent=function(t){var e=new X;return e.index=t,this.tabs&&this.tabs.length&&(e.tab=this.tabs.toArray()[t],this.tabs.forEach((function(e,n){n!==t&&e.nzDeselect.emit()})),e.tab.nzSelect.emit()),e},t.prototype.subscribeToTabLabels=function(){var t=this;this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=c.merge.apply(void 0,A(this.tabs.map((function(t){return t.stateChanges})))).subscribe((function(){return t.cdr.markForCheck()}))},t.prototype.subscribeToAllTabChanges=function(){var t=this;this.allTabs.changes.pipe(d.startWith(this.allTabs)).subscribe((function(e){t.tabs.reset(e.filter((function(e){return e.closestTabSet===t}))),t.tabs.notifyOnChanges()}))},t.prototype.canDeactivateFun=function(t,e){return"function"==typeof this.nzCanDeactivate?p.wrapIntoObservable(this.nzCanDeactivate(t,e)).pipe(d.first(),d.takeUntil(this.destroy$)):c.of(!0)},t.prototype.clickNavItem=function(t,e,n){t.nzDisabled||(t.nzClick.emit(),this.isRouterLinkClickEvent(e,n)||this.setSelectedIndex(e))},t.prototype.isRouterLinkClickEvent=function(t,e){var n,i,o=e.target;return!!this.nzLinkRouter&&!!(null===(i=null===(n=this.tabs.toArray()[t])||void 0===n?void 0:n.linkDirective)||void 0===i?void 0:i.elementRef.nativeElement.contains(o))},t.prototype.contextmenuNavItem=function(t,e){t.nzDisabled||t.nzContextmenu.emit(e)},t.prototype.setSelectedIndex=function(t){var e=this;this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,t).subscribe((function(n){n&&(e.nzSelectedIndex=t,e.tabNavBarRef.focusIndex=t,e.cdr.markForCheck())}))},t.prototype.getTabIndex=function(t,e){return t.nzDisabled?null:this.selectedIndex===e?0:-1},t.prototype.getTabContentId=function(t){return"nz-tabs-"+this.tabSetId+"-tab-"+t},t.prototype.setUpRouter=function(){var t=this;if(this.nzLinkRouter){if(!this.router)throw new Error(I.PREFIX+" you should import 'RouterModule' if you want to use 'nzLinkRouter'!");this.router.events.pipe(d.takeUntil(this.destroy$),d.filter((function(t){return t instanceof u.NavigationEnd})),d.startWith(!0),d.delay(0)).subscribe((function(){t.updateRouterActive(),t.cdr.markForCheck()}))}},t.prototype.updateRouterActive=function(){if(this.router.navigated){var t=this.findShouldActiveTabIndex();t!==this.selectedIndex&&this.setSelectedIndex(t),this.nzHideAll=-1===t}},t.prototype.findShouldActiveTabIndex=function(){var t=this.tabs.toArray(),e=this.isLinkActive(this.router);return t.findIndex((function(t){var n=t.linkDirective;return!!n&&(e(n.routerLink)||e(n.routerLinkWithHref))}))},t.prototype.isLinkActive=function(t){var e=this;return function(n){return!!n&&t.isActive(n.urlTree,e.nzLinkExact)}},t.prototype.getTabContentMarginValue=function(){return 100*-(this.nzSelectedIndex||0)},t.prototype.getTabContentMarginLeft=function(){return this.tabPaneAnimated&&"rtl"!==this.dir?this.getTabContentMarginValue()+"%":""},t.prototype.getTabContentMarginRight=function(){return this.tabPaneAnimated&&"rtl"===this.dir?this.getTabContentMarginValue()+"%":""},t}();V.decorators=[{type:e.Component,args:[{selector:"nz-tabset",exportAs:"nzTabset",preserveWhitespaces:!1,encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.Default,providers:[{provide:j,useExisting:V}],template:'\n <nz-tabs-nav\n *ngIf="tabs.length"\n [ngStyle]="nzTabBarStyle"\n [selectedIndex]="nzSelectedIndex || 0"\n [inkBarAnimated]="inkBarAnimated"\n [addable]="addable"\n [addIcon]="nzAddIcon"\n [hideBar]="nzHideAll"\n [position]="position"\n [extraTemplate]="nzTabBarExtraContent"\n (tabScroll)="nzTabListScroll.emit($event)"\n (selectFocusedIndex)="setSelectedIndex($event)"\n (addClicked)="onAdd()"\n >\n <div\n class="ant-tabs-tab"\n [style.margin-right.px]="position === \'horizontal\' ? nzTabBarGutter : null"\n [style.margin-bottom.px]="position === \'vertical\' ? nzTabBarGutter : null"\n [class.ant-tabs-tab-active]="nzSelectedIndex === i"\n [class.ant-tabs-tab-disabled]="tab.nzDisabled"\n (click)="clickNavItem(tab, i, $event)"\n (contextmenu)="contextmenuNavItem(tab, $event)"\n *ngFor="let tab of tabs; let i = index"\n >\n <div\n role="tab"\n [attr.tabIndex]="getTabIndex(tab, i)"\n [attr.aria-disabled]="tab.nzDisabled"\n [attr.aria-selected]="nzSelectedIndex === i && !nzHideAll"\n [attr.aria-controls]="getTabContentId(i)"\n [disabled]="tab.nzDisabled"\n [tab]="tab"\n [active]="nzSelectedIndex === i"\n class="ant-tabs-tab-btn"\n nzTabNavItem\n cdkMonitorElementFocus\n >\n <ng-container *nzStringTemplateOutlet="tab.label; context: { visible: true }">{{ tab.label }}</ng-container>\n <button\n nz-tab-close-button\n *ngIf="tab.nzClosable && closable && !tab.nzDisabled"\n [closeIcon]="tab.nzCloseIcon"\n (click)="onClose(i, $event)"\n ></button>\n </div>\n </div>\n </nz-tabs-nav>\n <div class="ant-tabs-content-holder">\n <div\n class="ant-tabs-content"\n [class.ant-tabs-content-top]="nzTabPosition === \'top\'"\n [class.ant-tabs-content-bottom]="nzTabPosition === \'bottom\'"\n [class.ant-tabs-content-left]="nzTabPosition === \'left\'"\n [class.ant-tabs-content-right]="nzTabPosition === \'right\'"\n [class.ant-tabs-content-animated]="tabPaneAnimated"\n [style.margin-left]="getTabContentMarginLeft()"\n [style.margin-right]="getTabContentMarginRight()"\n >\n <div\n nz-tab-body\n *ngFor="let tab of tabs; let i = index"\n [active]="nzSelectedIndex == i && !nzHideAll"\n [content]="tab.content"\n [forceRender]="tab.nzForceRender"\n [tabPaneAnimated]="tabPaneAnimated"\n ></div>\n </div>\n </div>\n ',host:{class:"ant-tabs","[class.ant-tabs-card]":"nzType === 'card' || nzType === 'editable-card'","[class.ant-tabs-editable]":"nzType === 'editable-card'","[class.ant-tabs-editable-card]":"nzType === 'editable-card'","[class.ant-tabs-centered]":"nzCentered","[class.ant-tabs-rtl]":"dir === 'rtl'","[class.ant-tabs-top]":"nzTabPosition === 'top'","[class.ant-tabs-bottom]":"nzTabPosition === 'bottom'","[class.ant-tabs-left]":"nzTabPosition === 'left'","[class.ant-tabs-right]":"nzTabPosition === 'right'","[class.ant-tabs-default]":"nzSize === 'default'","[class.ant-tabs-small]":"nzSize === 'small'","[class.ant-tabs-large]":"nzSize === 'large'"}}]}],V.ctorParameters=function(){return[{type:T.NzConfigService},{type:e.ChangeDetectorRef},{type:a.Directionality,decorators:[{type:e.Optional}]},{type:u.Router,decorators:[{type:e.Optional}]}]},V.propDecorators={nzSelectedIndex:[{type:e.Input}],nzTabPosition:[{type:e.Input}],nzTabBarExtraContent:[{type:e.Input}],nzCanDeactivate:[{type:e.Input}],nzAddIcon:[{type:e.Input}],nzTabBarStyle:[{type:e.Input}],nzType:[{type:e.Input}],nzSize:[{type:e.Input}],nzAnimated:[{type:e.Input}],nzTabBarGutter:[{type:e.Input}],nzHideAdd:[{type:e.Input}],nzCentered:[{type:e.Input}],nzHideAll:[{type:e.Input}],nzLinkRouter:[{type:e.Input}],nzLinkExact:[{type:e.Input}],nzSelectChange:[{type:e.Output}],nzSelectedIndexChange:[{type:e.Output}],nzTabListScroll:[{type:e.Output}],nzClose:[{type:e.Output}],nzAdd:[{type:e.Output}],allTabs:[{type:e.ContentChildren,args:[F,{descendants:!0}]}],tabNavBarRef:[{type:e.ViewChild,args:[D,{static:!1}]}]},C([T.WithConfig(),w("design:type",String)],V.prototype,"nzType",void 0),C([T.WithConfig(),w("design:type",String)],V.prototype,"nzSize",void 0),C([T.WithConfig(),w("design:type",Object)],V.prototype,"nzAnimated",void 0),C([T.WithConfig(),w("design:type",Number)],V.prototype,"nzTabBarGutter",void 0),C([p.InputBoolean(),w("design:type",Boolean)],V.prototype,"nzHideAdd",void 0),C([p.InputBoolean(),w("design:type",Boolean)],V.prototype,"nzCentered",void 0),C([p.InputBoolean(),w("design:type",Object)],V.prototype,"nzHideAll",void 0),C([p.InputBoolean(),w("design:type",Object)],V.prototype,"nzLinkRouter",void 0),C([p.InputBoolean(),w("design:type",Object)],V.prototype,"nzLinkExact",void 0);var q=[V,F,D,E,x,L,O,k,M,H,W,N,B],$=function(){};$.decorators=[{type:e.NgModule,args:[{declarations:[q],exports:[q],imports:[a.BidiModule,g.CommonModule,f.ObserversModule,z.NzIconModule,y.NzOutletModule,b.PlatformModule,o.A11yModule,m.CdkScrollableModule,v.NzDropDownModule]}]}],t.NZ_TAB_SET=j,t.NzTabChangeEvent=X,t.NzTabComponent=F,t.NzTabDirective=H,t.NzTabLinkDirective=N,t.NzTabLinkTemplateDirective=B,t.NzTabSetComponent=V,t.NzTabsModule=$,t.ɵNzTabAddButtonComponent=k,t.ɵNzTabBodyComponent=W,t.ɵNzTabCloseButtonComponent=M,t.ɵNzTabNavBarComponent=D,t.ɵNzTabNavItemDirective=E,t.ɵNzTabNavOperationComponent=O,t.ɵNzTabScrollListDirective=L,t.ɵNzTabsInkBarDirective=x,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ng-zorro-antd-tabs.umd.min.js.map