UNPKG

ng-zorro-antd-mobile

Version:

An enterprise-class mobile UI components based on Ant Design and Angular

1 lines 365 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@angular/platform-browser"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/cdk/observers")):"function"==typeof define&&define.amd?define("ng-zorro-antd-mobile",["exports","@angular/core","@angular/common","@angular/forms","rxjs","rxjs/operators","@angular/animations","@angular/platform-browser","@angular/cdk/overlay","@angular/cdk/portal","@angular/cdk/observers"],e):e((t=t||self)["ng-zorro-antd-mobile"]={},t.ng.core,t.ng.common,t.ng.forms,t.rxjs,t.rxjs.operators,t.ng.animations,t.ng.platformBrowser,t.ng.cdk.overlay,t.ng.cdk.portal,t.ng.cdk.observers)}(this,function(t,e,n,i,s,o,r,a,l,c,p){"use strict";var u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function h(t,e){function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var d=function(){return(d=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};function f(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function m(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,o=n.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)r.push(i.value)}catch(t){s={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return r}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}var y=function(){function t(){this.prefixCls="am-activity-indicator",this.spinnerClass={},this._size="small",this._toast=!1,this._animating=!0,this.clsActIndicator=!0}return Object.defineProperty(t.prototype,"animating",{get:function(){return this._animating},set:function(t){this._animating=t,this.setClass()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{set:function(t){this._size=t,this.setClass()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toast",{get:function(){return this._toast},set:function(t){this._toast=t,this.setClass()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t},enumerable:!0,configurable:!0}),t.prototype.setClass=function(){var t;this._animating?(this.clsActIndicator=!0,this.clsActIndicatorToast=!!this._toast,this.clsActIndicatorLg="large"===this._size,this.clsActIndicatorSm="small"===this._size,this.spinnerClass=((t={})[this.prefixCls+"-spinner"]=!0,t[this.prefixCls+"-spinner-lg"]=!!this._toast||"large"===this._size,t)):(this.clsActIndicator=!1,this.clsActIndicatorLg=!1,this.clsActIndicatorSm=!1,this.clsActIndicatorToast=!1)},t.prototype.ngOnInit=function(){this.setClass()},t.decorators=[{type:e.Component,args:[{selector:"ActivityIndicator , nzm-ctivity-indicator",template:'<div *ngIf="animating && toast && text && text.length > 0">\n <div class="{{ prefixCls }}-content">\n <span [ngClass]="spinnerClass" aria-hidden="\'true\'"></span>\n <span class="{{ prefixCls }}-toast">{{ text }}</span>\n </div>\n</div>\n<div *ngIf="animating && toast && !text">\n <div class="{{ prefixCls }}-content">\n <span [ngClass]="spinnerClass" aria-label="\'Loading\'"></span>\n </div>\n</div>\n<div *ngIf="animating && !toast && text && text.length > 0">\n <span [ngClass]="spinnerClass" aria-hidden="true"></span>\n <span class="{{ prefixCls }}-tip">{{ text }}</span>\n</div>\n<div *ngIf="animating && !toast && !text">\n <span [ngClass]="spinnerClass" aria-label="\'loading\'"></span>\n</div>\n'}]}],t.ctorParameters=function(){return[]},t.propDecorators={animating:[{type:e.Input}],size:[{type:e.Input}],toast:[{type:e.Input}],text:[{type:e.Input}],clsActIndicator:[{type:e.HostBinding,args:["class.am-activity-indicator"]}],clsActIndicatorToast:[{type:e.HostBinding,args:["class.am-activity-indicator-toast"]}],clsActIndicatorLg:[{type:e.HostBinding,args:["class.am-activity-indicator-lg"]}],clsActIndicatorSm:[{type:e.HostBinding,args:["class.am-activity-indicator-sm"]}]},t}();var b=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[y],declarations:[y],imports:[n.CommonModule,i.FormsModule]}]}],t}(),v=function(){function t(){this.full=!1,this.cardWrapper=!0}return Object.defineProperty(t.prototype,"cardFull",{get:function(){return this.full},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Component,args:[{selector:"Card, nzm-card",template:"<ng-content></ng-content>\n",encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[]},t.propDecorators={full:[{type:e.Input}],cardWrapper:[{type:e.HostBinding,args:["class.am-card"]}],cardFull:[{type:e.HostBinding,args:["class.am-card-full"]}]},t}();var C=function(){function t(){this.prefixCls="am-card-header",this.thumb=null,this.thumbStyle=null,this.title=null,this.extra=null,this.cardBodyWrapper=!0}return t.prototype.isTemplateRef=function(t){return t instanceof e.TemplateRef},t.decorators=[{type:e.Component,args:[{selector:"CardHeader, nzm-card-header",template:'<div class="{{ prefixCls }}-content">\n <img *ngIf="thumb && !isTemplateRef(thumb)" src="{{ thumb }}" [ngStyle]="thumbStyle" />\n <ng-container *ngIf="thumb && isTemplateRef(thumb)" [ngTemplateOutlet]="thumb"></ng-container>\n <ng-container *ngIf="!isTemplateRef(title); else titleTemplate">{{ title }}</ng-container>\n</div>\n<div *ngIf="extra" class="{{ prefixCls }}-extra">\n <ng-container *ngIf="!isTemplateRef(extra); else extraTemplate">{{ extra }}</ng-container>\n</div>\n<ng-template #titleTemplate>\n <ng-template [ngTemplateOutlet]="title"></ng-template>\n</ng-template>\n<ng-template #extraTemplate>\n <ng-template [ngTemplateOutlet]="extra"></ng-template>\n</ng-template>\n',encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[]},t.propDecorators={thumb:[{type:e.Input}],thumbStyle:[{type:e.Input}],title:[{type:e.Input}],extra:[{type:e.Input}],cardBodyWrapper:[{type:e.HostBinding,args:["class.am-card-header"]}]},t}();var _=function(){function t(){this.cardBodyWrapper=!0}return t.decorators=[{type:e.Component,args:[{selector:"CardBody, nzm-card-body",template:"\n <ng-content></ng-content>\n ",encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[]},t.propDecorators={cardBodyWrapper:[{type:e.HostBinding,args:["class.am-card-body"]}]},t}();var x=function(){function t(){this.prefixCls="am-card-footer",this.content=null,this.extra=null,this.cardFooterWrapper=!0}return t.prototype.isTemplateRef=function(t){return t instanceof e.TemplateRef},t.decorators=[{type:e.Component,args:[{selector:"CardFooter, nzm-card-footer",template:'<div class="{{ prefixCls }}-content">\n <ng-container *ngIf="!isTemplateRef(content); else contentTemplate">{{ content }}</ng-container>\n</div>\n<div *ngIf="extra" class="{{ prefixCls }}-extra">\n <ng-container *ngIf="!isTemplateRef(extra); else extraTemplate">{{ extra }}</ng-container>\n</div>\n<ng-template #contentTemplate>\n <ng-template [ngTemplateOutlet]="content"></ng-template>\n</ng-template>\n<ng-template #extraTemplate>\n <ng-template [ngTemplateOutlet]="extra"></ng-template>\n</ng-template>\n',encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[]},t.propDecorators={content:[{type:e.Input}],extra:[{type:e.Input}],cardFooterWrapper:[{type:e.HostBinding,args:["class.am-card-footer"]}]},t}();var T=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:[v,C,_,x],exports:[v,C,_,x]}]}],t}(),k=function(){function t(t,e){this._ref=t,this.render=e,this.prefixCls="am-badge",this.scrollNumberCls={},this.style={},this._size="small",this._dot=!1,this._hot=!1,this._corner=!1,this._children=!1,this._overflowCount=99,this.clsBadge=!0,this.clsBadgeWrp=!this._children,this.clsBadgeCornerWrp=this._corner,this.clsBadgeHot=!!this._hot,this.clsBadgeCornerWrpLg=this._corner&&"large"===this._size}return Object.defineProperty(t.prototype,"size",{set:function(t){this._size=t,this.setCls()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t,this.setCls()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"corner",{set:function(t){this._corner=t,this.setCls()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dot",{get:function(){return this._dot},set:function(t){this._dot=t,this._dot&&(this._text=""),this.setCls()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overflowCount",{set:function(t){this._overflowCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hot",{set:function(t){this._hot=t,this.setCls()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setStyle",{set:function(t){this.style=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{set:function(t){var e=this;this._setClass=t,this._setClass.split(" ").forEach(function(t){e.render.addClass(e._ref.nativeElement,t)})},enumerable:!0,configurable:!0}),t.prototype.setCls=function(){var t;this.scrollNumberCls=((t={})[this.prefixCls+"-dot"]=this._dot,t[this.prefixCls+"-dot-large"]=this._dot&&"large"===this._size,t[this.prefixCls+"-text"]=!this._dot&&!this._corner,t[this.prefixCls+"-corner"]=this._corner,t[this.prefixCls+"-corner-large"]=this._corner&&"large"===this._size,t),this.clsBadgeWrp=!this._children,this.clsBadgeCornerWrp=this._corner,this.clsBadgeHot=!!this._hot,this.clsBadgeCornerWrpLg=this._corner&&"large"===this._size},t.prototype.ngOnChanges=function(){"number"==typeof this._text&&this._text>this._overflowCount&&(this._text=this._overflowCount+"+")},t.prototype.ngOnInit=function(){this.setCls()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){(t._ref.nativeElement.children.length>1||1===t._ref.nativeElement.children.length&&!t.dot&&!t.text)&&(t._children=!0,t.setCls())},10)},t.decorators=[{type:e.Component,args:[{selector:"Badge, nzm-badge",template:'<ng-content></ng-content>\n<sup *ngIf="dot || text" [ngClass]="scrollNumberCls" [ngStyle]="style">\n <span>{{ text }}</span>\n</sup>\n'}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={size:[{type:e.Input}],text:[{type:e.Input}],corner:[{type:e.Input}],dot:[{type:e.Input}],overflowCount:[{type:e.Input}],hot:[{type:e.Input}],setStyle:[{type:e.Input}],className:[{type:e.Input}],clsBadge:[{type:e.HostBinding,args:["class.am-badge"]}],clsBadgeWrp:[{type:e.HostBinding,args:["class.am-badge-not-a-wrapper"]}],clsBadgeCornerWrp:[{type:e.HostBinding,args:["class.am-badge-corner-wrapper"]}],clsBadgeHot:[{type:e.HostBinding,args:["class.am-badge-hot"]}],clsBadgeCornerWrpLg:[{type:e.HostBinding,args:["class.am-badge-corner-wrapper-large"]}]},t}();var I=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[k],declarations:[k],imports:[n.CommonModule,i.FormsModule]}]}],t}();function w(t){return t instanceof e.TemplateRef}var S=function(){function t(t,n){this.element=t,this.render=n,this.prefixCls="am-input",this.setFocus={},this.pattern="",this.autoFocus=!1,this.inputType="text",this.ngTemplate=!1,this.isTemplateRef=w,this._type="text",this._defaultValue="",this._placeholder="",this._editable=!0,this._disabled=!1,this._clear=!1,this._error=!1,this._extra="",this._labelNumber=5,this._updatePlaceholder=!1,this._prefixListCls="am-list",this._moneyKeyboardAlign="right",this._focus=!1,this._isClear=!1,this._content="",this._inputLock=!1,this.onChange=new e.EventEmitter,this.onBlur=new e.EventEmitter,this.onFocus=new e.EventEmitter,this.onErrorClick=new e.EventEmitter,this.onExtraClick=new e.EventEmitter,this.clsItem=!0,this.clsDisabled=this._disabled,this.clsError=this._error,this.clsFocus=this._focus,this.clsAndroid=this._focus,this._onChange=function(t){},this._el=t.nativeElement}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){t&&t.length>0&&(this.inputType=t,"bankCard"===t||"phone"===t?this._type="tel":"password"===t?this._type="password":"digit"===t?this._type="number":"text"!==t&&"number"!==t&&(this._type=t),"number"===t&&(this.pattern="[0-9]*"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=null==t?"":t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(t){this._defaultValue=t,this._value||(this._value=this._defaultValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editable",{get:function(){return this._editable},set:function(t){this._editable=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this.clsDisabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clear",{get:function(){return this._clear},set:function(t){this._clear=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this._maxLength},set:function(t){this._maxLength=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"error",{get:function(){return this._error},set:function(t){this._error=t,this.clsError=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extra",{get:function(){return this._extra},set:function(t){t instanceof e.TemplateRef?this.ngTemplate=!0:this.ngTemplate=!1,this._extra=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelNumber",{set:function(t){this._labelNumber=t,this.setCls()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updatePlaceholder",{set:function(t){this._updatePlaceholder=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prefixListCls",{get:function(){return this._prefixListCls},set:function(t){this._prefixListCls=t,this.render.addClass(this._el,t+"-item"),this.render.addClass(this._el,t+"-item-middle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"moneyKeyboardAlign",{get:function(){return this._moneyKeyboardAlign},set:function(t){this._moneyKeyboardAlign=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locale",{set:function(t){this._locale=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontColor",{get:function(){return this._fontColor},set:function(t){this._fontColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focus",{set:function(t){t&&t.focus&&(this.autoFocus=t.focus,"money"===this._type?this.setFocus=t:this.inputElementRef&&(this._focus=!0,this.inputElementRef.nativeElement.focus(),this.inputFocus("")))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(t){this._content=t,this.setCls()},enumerable:!0,configurable:!0}),t.prototype.setCls=function(){var t,e;(this.lableRef.nativeElement.children.length>0||this.lableRef.nativeElement&&""!==this.lableRef.nativeElement.innerText||null!=this._content)&&(this.labelCls=((t={})[this.prefixCls+"-label"]=!0,t[this.prefixCls+"-label-2"]=2===this._labelNumber,t[this.prefixCls+"-label-3"]=3===this._labelNumber,t[this.prefixCls+"-label-4"]=4===this._labelNumber,t[this.prefixCls+"-label-5"]=5===this._labelNumber,t[this.prefixCls+"-label-6"]=6===this._labelNumber,t[this.prefixCls+"-label-7"]=7===this._labelNumber,t)),this.controlCls=((e={})[this.prefixCls+"-control"]=!0,e)},t.prototype.inputChange=function(t){var e=this;setTimeout(function(){if(!e._inputLock||"text"!==e.inputType){var n=t;switch(e.inputType){case"text":break;case"bankCard":n=n.replace(/\D/g,"").replace(/(....)(?=.)/g,"$1 ");break;case"phone":var i=(n=n.replace(/\D/g,"").substring(0,11)).length;i>3&&i<8?n=n.substr(0,3)+" "+n.substr(3):i>=8&&(n=n.substr(0,3)+" "+n.substr(3,4)+" "+n.substr(7));break;case"number":n=n.replace(/\D/g,"");break;case"password":break;default:e._value=n}e._value=n,e._onChange(e._value),e.onChange.emit(e._value)}},0)},t.prototype.compositionStart=function(){this._inputLock=!0},t.prototype.compositionEnd=function(){this._inputLock=!1},t.prototype.inputFocus=function(t){var e=this;!this._editable&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),setTimeout(function(){e._focus=!0,e.clsFocus=!0,e.clsAndroid=!0},100),this.onFocus.emit(t)},t.prototype.inputBlur=function(t){var e=this;setTimeout(function(){e._isClear||(e._focus=!1,e.clsFocus=!1,e.clsAndroid=!1,e.onBlur.emit(t)),e._isClear=!1},100)},t.prototype.clearInput=function(){"password"!==this._type&&this._updatePlaceholder&&(this._placeholder=this._value),this._value="",this.onChange.emit(this._value),this._onChange(this._value),this._isClear=!0,this.inputFocus(this._value)},t.prototype.errorClick=function(t){this.onErrorClick&&this.onErrorClick.emit(t)},t.prototype.extraClick=function(t){this.onExtraClick&&this.onExtraClick.emit(t)},t.prototype.writeValue=function(t){this._value=void 0===typeof t||null===t?"":t},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){},t.prototype.ngOnInit=function(){this.setCls(),this.render.addClass(this._el,this._prefixListCls+"-item"),this.render.addClass(this._el,this._prefixListCls+"-item-middle")},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.setCls()},0)},t.decorators=[{type:e.Component,args:[{selector:"InputItem, nzm-input-item",template:'<div class="{{ prefixListCls }}-line">\n <div #lableContent [ngClass]="labelCls">\n <ng-template *ngIf="isTemplateRef(content)" [ngTemplateOutlet]="content"></ng-template>\n <ng-container *ngIf="!isTemplateRef(content)">{{ content }}</ng-container>\n </div>\n <div [ngClass]="controlCls">\n <CustomInput\n *ngIf="type === \'money\'"\n [value]="value"\n [defaultValue]="defaultValue"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [editable]="editable"\n [fontColor]="fontColor"\n [moneyKeyboardAlign]="moneyKeyboardAlign"\n [setFocus]="setFocus"\n [maxLength]="maxLength"\n (onChange)="inputChange($event)"\n (onBlur)="inputBlur(value)"\n (onFocus)="inputFocus(value)"\n >\n </CustomInput>\n <div *ngIf="type !== \'money\'">\n <input\n #inputElement\n [type]="type"\n [name]="name"\n [(ngModel)]="value"\n [defaultValue]="defaultValue"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readOnly]="!editable"\n [autofocus]="autoFocus"\n [maxlength]="maxLength"\n [pattern]="pattern"\n [style.color]="fontColor"\n (ngModelChange)="inputChange($event)"\n (compositionstart)="compositionStart()"\n (compositionend)="compositionEnd()"\n (blur)="inputBlur(value)"\n (focus)="inputFocus(value)"\n style="outline:none"\n />\n </div>\n </div>\n <div\n *ngIf="clear && editable && !disabled && (value && value.length > 0)"\n class="{{ prefixCls }}-clear"\n (click)="clearInput()"\n ></div>\n <div *ngIf="error" class="{{ prefixCls }}-error-extra" (click)="errorClick($event)"></div>\n <div *ngIf="extra !== \'\'" class="{{ prefixCls }}-extra" (click)="extraClick($event)">\n <ng-container *ngIf="!ngTemplate">{{ extra }}</ng-container>\n <ng-template *ngIf="ngTemplate" [ngTemplateOutlet]="extra"></ng-template>\n </div>\n</div>\n',providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return t}),multi:!0}]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={lableRef:[{type:e.ViewChild,args:["lableContent",{static:!0}]}],inputElementRef:[{type:e.ViewChild,args:["inputElement",{static:!1}]}],type:[{type:e.Input}],value:[{type:e.Input}],defaultValue:[{type:e.Input}],placeholder:[{type:e.Input}],editable:[{type:e.Input}],disabled:[{type:e.Input}],clear:[{type:e.Input}],maxLength:[{type:e.Input}],error:[{type:e.Input}],extra:[{type:e.Input}],labelNumber:[{type:e.Input}],updatePlaceholder:[{type:e.Input}],prefixListCls:[{type:e.Input}],name:[{type:e.Input}],moneyKeyboardAlign:[{type:e.Input}],locale:[{type:e.Input}],fontColor:[{type:e.Input}],focus:[{type:e.Input}],content:[{type:e.Input}],onChange:[{type:e.Output}],onBlur:[{type:e.Output}],onFocus:[{type:e.Output}],onErrorClick:[{type:e.Output}],onExtraClick:[{type:e.Output}],clsItem:[{type:e.HostBinding,args:["class.am-input-item"]}],clsDisabled:[{type:e.HostBinding,args:["class.am-input-disabled"]}],clsError:[{type:e.HostBinding,args:["class.am-input-error"]}],clsFocus:[{type:e.HostBinding,args:["class.am-input-focus"]}],clsAndroid:[{type:e.HostBinding,args:["class.am-input-android,"]}]},t}();var P=new e.InjectionToken("locale-provider-token"),O={title:"日期选择",today:"今天",month:"月",year:"年",am:"上午",pm:"下午",dateTimeFormat:"yyyy年MM月dd日 星期w hh:mm",dateFormat:"yyyy年MM月dd日 星期w",noChoose:"未选择",week:["日","一","二","三","四","五","六"],clear:"清除",selectTime:"选择时间",selectStartTime:"选择开始时间",selectEndTime:"选择结束时间",start:"开始",end:"结束",begin:"起",over:"止",begin_over:"起/止",confirm:"确认",monthTitle:"yyyy年MM月",loadPrevMonth:"加载上一个月",yesterday:"昨天",lastWeek:"近一周",lastMonth:"近一个月"},M={locale:"zh_CN",Picker:{okText:"确定",dismissText:"取消",extra:"请选择"},DatePicker:{errorMessage:"当前时间与设定最大或最小日期格式不一致",curTMorethanMax:"当前时间大于设定最大日期",curTLessthanMin:"当前时间小于设定最最小日期",okText:"确定",dismissText:"取消",extra:"请选择",year:"年",month:"月",day:"日",hour:"时",minute:"分",am:"上午",pm:"下午"},DatePickerView:{okText:"确定",dismissText:"取消",extra:"请选择",year:"年",month:"月",day:"日",hour:"时",minute:"分",am:"上午",pm:"下午"},Menu:{okText:"确定",cancelText:"取消"},Calendar:O,SearchBar:{cancelText:"取消"},InputItem:{confirmLabel:"确定",backspaceLabel:"退格",cancelKeyboardLabel:"收起键盘"},Pagination:{prevText:"上一页",nextText:"下一页"},PullToRefresh:{activateText:"松开立即刷新",deactivateText:"下拉可以刷新",finishText:"完成刷新"},ActionSheet:{dismissText:"取消"}},D=function(){function t(t){this._change=new s.BehaviorSubject(this._locale),this.setLocale(t||M)}return Object.defineProperty(t.prototype,"localeChange",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),t.prototype.getLocaleValue=function(t){var e=this._getObjectPath(this._locale,t);return"string"==typeof e?e:""},t.prototype.getLocaleSubObj=function(t){var e=this._getObjectPath(this._locale,t);return"object"==typeof e?e:null},t.prototype.setLocale=function(t){!t||this._locale&&this._locale.locale===t.locale||(this._locale=t,this._change.next(t))},t.prototype.getLocaleId=function(){return this._locale&&this._locale.locale?this._locale.locale:""},t.prototype.getLocale=function(){return this._locale},t.prototype._getObjectPath=function(t,e){for(var n=t,i=e.split("."),s=i.length,o=0;n&&o<s;)n=n[i[o++]];return o===s?n:null},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[P]}]}]},t}();function E(t,e){return t||new D(e)}var B={provide:D,useFactory:E,deps:[[new e.Optional,new e.SkipSelf,D],P]},R=function(){function t(t){this._localeProvider=t,this.prefixCls="am-number-keyboard",this.okText="",this._locale={},this._unsubscribe$=new s.Subject,this.onClick=new e.EventEmitter}return t.prototype.tdClick=function(t){this.onClick.emit(t)},t.prototype.ngOnInit=function(){var t,e,n=this;this.wrapCls=((t={})[this.prefixCls+"-item"]=!0,t),this.wrapperCls=((e={})[this.prefixCls+"-wrapper"]=!0,e),this._localeProvider.localeChange.pipe(o.takeUntil(this._unsubscribe$)).subscribe(function(t){n._locale=n._localeProvider.getLocaleSubObj("InputItem"),n.okText=n._locale.confirmLabel})},t.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},t.decorators=[{type:e.Component,args:[{selector:"CustomKeyboard",template:'<div [ngClass]="wrapperCls">\n <table>\n <tbody>\n <tr>\n <td [ngClass]="wrapCls" (click)="tdClick(1)">1</td>\n <td [ngClass]="wrapCls" (click)="tdClick(2)">2</td>\n <td [ngClass]="wrapCls" (click)="tdClick(3)">3</td>\n <td class="keyboard-delete" [rowSpan]="2" [ngClass]="wrapCls" (click)="tdClick(\'delete\')"></td>\n </tr>\n <tr>\n <td [ngClass]="wrapCls" (click)="tdClick(4)">4</td>\n <td [ngClass]="wrapCls" (click)="tdClick(5)">5</td>\n <td [ngClass]="wrapCls" (click)="tdClick(6)">6</td>\n </tr>\n <tr>\n <td [ngClass]="wrapCls" (click)="tdClick(7)">7</td>\n <td [ngClass]="wrapCls" (click)="tdClick(8)">8</td>\n <td [ngClass]="wrapCls" (click)="tdClick(9)">9</td>\n <td class="keyboard-confirm" [rowSpan]="2" [ngClass]="wrapCls" (click)="tdClick(\'confirm\')">{{ okText }}</td>\n </tr>\n <tr>\n <td [ngClass]="wrapCls" (click)="tdClick(\'.\')">.</td>\n <td [ngClass]="wrapCls" (click)="tdClick(0)">0</td>\n <td class="keyboard-hide" [ngClass]="wrapCls" (click)="tdClick(\'hide\')"></td>\n </tr>\n </tbody>\n </table>\n</div>\n',encapsulation:e.ViewEncapsulation.None,providers:[D]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={onClick:[{type:e.Output}]},t}();var N=function(){function t(e,n){this._appRef=e,this._cfr=n,t.appRef=this._appRef,t._inputCompFactory=this._cfr.resolveComponentFactory(R)}return t.getShowStatus=function(){return t.isShow},t.showKeyboard=function(){var e,n=this;if(!this.isShow){if(this.compRef)this.compRef.instance.wrapperCls=((e={})["am-number-keyboard-wrapper"]=!0,e);else{var i=document.querySelector("#"+this._keyboardPrefixCls+"-container");i||((i=document.createElement("div")).setAttribute("id",this._keyboardPrefixCls+"-container"),document.body.appendChild(i),i.appendChild(document.createElement(t._inputCompFactory.selector)),this.compRef=this.appRef.bootstrap(t._inputCompFactory),this.compRef.instance.onClick.subscribe(function(t){n.clickValue=t}))}this.isShow=!0}},t.hideKeyboard=function(){var t;this.compRef&&this.isShow&&(this.isShow=!1,this.compRef.instance.wrapperCls=((t={})["am-number-keyboard-wrapper"]=!0,t["am-number-keyboard-wrapper-hide"]=!0,t))},t.compRef=null,t.appRef=null,t.isShow=!1,t.clickValue=null,t._inputCompFactory=null,t._keyboardPrefixCls="am-number-keyboard",t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.ApplicationRef},{type:e.ComponentFactoryResolver}]},t}();var j=function(){function t(t,n,i){var s=this;this._ref=t,this._customInputService=n,this._ngZone=i,this.keyboardPrefixCls="am-number-keyboard",this.focus=!1,this._value="",this._defaultValue="",this._placeholder="",this._editable=!0,this._disabled=!1,this._setFocus=!1,this.onChange=new e.EventEmitter,this.onBlur=new e.EventEmitter,this.onFocus=new e.EventEmitter,this.clsFakeContainer=!0,this.inputFocus=function(){s.removeBlurListener(),s.focus&&!s._setFocus||s.onInputFocus(),setTimeout(function(){s.addBlurListener()},50)},this.doBlur=function(t){s._value;for(var e=!1,n=!1,i=!1,o=!1,r=t.target;r&&null!==r&&!e;)r===s._ref.nativeElement&&(e=!0),"custominput"===r.localName&&(n=!0),"customkeyboard"===r.localName&&(i=!0),r.className.indexOf("am-input-clear")>=0&&(o=!0),r=r.parentElement;e?s.focus=!0:n&&(s._setFocus=!1,s.focus=!1,s.onBlur.emit(s._value)),s.focus&&i&&(s.focus=!0,s.onKeyboardClick(N.clickValue)),e||n||i||o||s._setFocus||(s.focus=!1,s._setFocus=!1,s.onBlur.emit(s._value),N.hideKeyboard()),s.setFakeInputCls()},this.removeBlurListener=function(){document.removeEventListener("click",s.doBlur,!1)},this.addBlurListener=function(){document.addEventListener("click",s.doBlur,!1)},this.onInputBlur=function(t){s.focus=!1,s.setFakeInputCls(),s.onBlur.emit(s._value),N.hideKeyboard()},this.onInputFocus=function(){s.onFocus.emit(s._value),s.focus=!0,s._setFocus=!1,s.setFakeInputCls(),setTimeout(function(){N.showKeyboard()},100)},this.setFakeInputCls=function(){var t;s.fakeInputCls=((t={})["fake-input"]=!0,t["fake-input-disabled"]=s._disabled,t.focus=s.focus,t)},this.setContainerCls=function(){s.clsFakeContainerLeft="left"===s._moneyKeyboardAlign},this.onKeyboardClick=function(t){var e;"delete"===t?(e=s._value.substring(0,s._value.length-1),s.onChange.emit(e)):"confirm"===t?(e=s._value,s.onChange.emit(e),s.onInputBlur(s._value)):"hide"===t?(e=s._value,s.onInputBlur(e)):void 0!==s._maxLength&&+s._maxLength>=0&&(s._value+t).length>s._maxLength?(e=(s._value+t).substr(0,s._maxLength),s.onChange.emit(e)):(e=s._value+t,s.onChange.emit(e)),s._ngZone.run(function(){s._value=e})}}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){null==t?this._value="":void 0!==this._maxLength&&this._maxLength>=0?this._value=t.toString().substr(0,this._maxLength):this._value=t.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValue",{set:function(t){this._defaultValue=t,this._value||(this._value=this._defaultValue.toString())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{set:function(t){this._maxLength=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editable",{set:function(t){this._editable=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this._disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontColor",{get:function(){return this._fontColor},set:function(t){this._fontColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"moneyKeyboardAlign",{set:function(t){this._moneyKeyboardAlign=t,this.setContainerCls()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setFocus",{set:function(t){t&&(this._setFocus=t.focus,this._setFocus&&this.inputFocus())},enumerable:!0,configurable:!0}),t.prototype.onFakeInputClick=function(){this._preventKeyboard||this.inputFocus()},t.prototype.ngOnInit=function(){this._preventKeyboard=this._disabled||!this._editable,this.setFakeInputCls(),this.setContainerCls()},t.prototype.ngOnDestroy=function(){this.removeBlurListener(),N&&(N.hideKeyboard(),N.compRef=null);var t=document.querySelector("#"+this.keyboardPrefixCls+"-container");t&&t.remove()},t.decorators=[{type:e.Component,args:[{selector:"CustomInput",template:'<div *ngIf="value === \'\'" class="fake-input-placeholder">\n {{ placeholder }}\n</div>\n<div [ngClass]="fakeInputCls" [style.color]="fontColor" (click)="onFakeInputClick()">\n {{ value }}\n</div>\n',encapsulation:e.ViewEncapsulation.None,providers:[N]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:N},{type:e.NgZone}]},t.propDecorators={value:[{type:e.Input}],defaultValue:[{type:e.Input}],maxLength:[{type:e.Input}],placeholder:[{type:e.Input}],editable:[{type:e.Input}],disabled:[{type:e.Input}],fontColor:[{type:e.Input}],moneyKeyboardAlign:[{type:e.Input}],setFocus:[{type:e.Input}],onChange:[{type:e.Output}],onBlur:[{type:e.Output}],onFocus:[{type:e.Output}],clsFakeContainer:[{type:e.HostBinding,args:["class.fake-input-container"]}],clsFakeContainerLeft:[{type:e.HostBinding,args:["class.fake-input-container-left"]}]},t}();var A=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[S,R,j],declarations:[S,R,j],entryComponents:[R],imports:[n.CommonModule,i.FormsModule,i.ReactiveFormsModule]}]}],t}(),L=function(){function t(t,n){this._elementRef=t,this._render=n,this.prefixCls="am-button",this.ngTemplate=!1,this._className="",this._classList=[],this._size="large",this._loading=!1,this._active=!1,this._inline=!1,this._disabled=!1,this._icon="",this._userAgent=navigator.userAgent||navigator.vendor||window.opera,this.onClick=new e.EventEmitter,this._el=this._elementRef.nativeElement,this._render.addClass(this._el,this.prefixCls),this._className=this._el.className}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(t){(this._loading=t,this._el.querySelector("icon"))&&(this._el.querySelector("icon").style.display=t?"":"none");this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(t){t instanceof e.TemplateRef?(this.ngTemplate=!0,this._icon=t):(this.ngTemplate=!1,this._icon=t,this.setClassMap())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{set:function(t){this._className=this._className+" "+t,this.setClassMap()},enumerable:!0,configurable:!0}),t.prototype.touchStart=function(t){this._disabled||(this._active=!0,this.setClassMap())},t.prototype.touchEnd=function(t){this._disabled||(this._active=!1,this.setClassMap())},t.prototype.click=function(t){this._disabled||this.onClick.emit()},t.prototype.isTemplateRef=function(t){return!!t&&t instanceof e.TemplateRef},t.prototype.ngAfterViewInit=function(){if(this._el.querySelector("img")){var t="small"===this._size?"am-icon-xxs":"am-icon-md";this._el.querySelector("img").setAttribute("class","am-icon "+this.prefixCls+"-icon "+t),this._render.addClass(this._el,this.prefixCls+"-icon")}},t.prototype.setClassMap=function(){this.iconType=this._loading?"loading":this._icon,this._classList=[this._type&&this.prefixCls+"-"+this._type,"small"===this._size&&this.prefixCls+"-"+this._size,this._disabled&&this.prefixCls+"-disabled",this._loading&&this.prefixCls+"-loading",this.iconType&&this.prefixCls+"-icon",this._active&&this.prefixCls+"-active",this._inline&&this.prefixCls+"-inline"].filter(function(t){return!!t}),this._el.className=this._className+" "+this._classList.join(" ")},t.decorators=[{type:e.Component,args:[{selector:"[Button], nzm-button",encapsulation:e.ViewEncapsulation.None,template:'<Icon\n *ngIf="!ngTemplate"\n class="{{ prefixCls }}-icon"\n [type]="iconType"\n [size]="size === \'small\' ? \'xxs\' : \'md\'"\n></Icon>\n<ng-template *ngIf="ngTemplate" [ngTemplateOutlet]="icon"></ng-template>\n<ng-content select="img"></ng-content>\n<div class="{{ prefixCls }}-content">\n <span>\n <ng-content></ng-content>\n </span>\n</div>\n'}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={type:[{type:e.Input}],size:[{type:e.Input}],disabled:[{type:e.Input}],loading:[{type:e.Input}],inline:[{type:e.Input}],icon:[{type:e.Input}],className:[{type:e.Input}],onClick:[{type:e.Output}],touchStart:[{type:e.HostListener,args:["touchstart",["$event"]]},{type:e.HostListener,args:["mousedown",["$event"]]}],touchEnd:[{type:e.HostListener,args:["touchend",["$event"]]},{type:e.HostListener,args:["mouseup",["$event"]]},{type:e.HostListener,args:["touchmove",["$event"]]},{type:e.HostListener,args:["mousemove",["$event"]]},{type:e.HostListener,args:["touchcancel",["$event"]]}],click:[{type:e.HostListener,args:["click",["$event"]]}]},t}();var H=function(t){return'\n<svg\n xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="https://www.w3.org/1999/xlink"\n id="__ANTD_MOBILE_SVG_SPRITE_NODE__"\n style="position:absolute;width:0;height:0"\n>\n <defs>\n '+t+"\n </defs>\n</svg>\n"},F=function(){function t(){this.contents=[],this.icons={check:'<svg viewBox="0 0 44 44"><path fill-rule="evenodd" d="M34.538 8L38 11.518 17.808 32 8 22.033l3.462-3.518 6.346 6.45z"/></svg>',"check-circle":'<svg viewBox="0 0 48 48"><path d="M24 48c13.255 0 24-10.745 24-24S37.255 0 24 0 0 10.745 0 24s10.745 24 24 24zM13.1 23.2l-2.2 2.1 10 9.9L38.1 15l-2.2-2-15.2 17.8-7.6-7.6z" fill-rule="evenodd"/></svg>',"check-circle-o":'<svg viewBox="0 0 48 48"><g fill-rule="evenodd"><path d="M24 48c13.255 0 24-10.745 24-24S37.255 0 24 0 0 10.745 0 24s10.745 24 24 24zm0-3c11.598 0 21-9.402 21-21S35.598 3 24 3 3 12.402 3 24s9.402 21 21 21z"/><path d="M12.2 23.2L10 25.3l10 9.9L37.2 15 35 13 19.8 30.8z"/></g></svg>',cross:'<svg viewBox="0 0 44 44"><path fill-rule="evenodd" d="M24.008 21.852l8.97-8.968L31.092 11l-8.97 8.968L13.157 11l-1.884 1.884 8.968 8.968-9.24 9.24 1.884 1.885 9.24-9.24 9.24 9.24 1.885-1.884-9.24-9.24z"/></svg>',"cross-circle":'<svg viewBox="0 0 48 48"><g fill-rule="evenodd"><path d="M24 48c13.255 0 24-10.745 24-24S37.255 0 24 0 0 10.745 0 24s10.745 24 24 24zm0-3c11.598 0 21-9.402 21-21S35.598 3 24 3 3 12.402 3 24s9.402 21 21 21z"/><path d="M24.34 22.22l-7.775-7.775a1.5 1.5 0 1 0-2.12 2.12l7.773 7.775-7.774 7.775a1.5 1.5 0 1 0 2.12 2.12l7.775-7.773 7.774 7.774a1.5 1.5 0 1 0 2.12-2.12L26.46 24.34l7.774-7.774a1.5 1.5 0 1 0-2.12-2.12l-7.776 7.773z"/></g></svg>',"cross-circle-o":'<svg viewBox="0 0 48 48"><path d="M24 48c13.255 0 24-10.745 24-24S37.255 0 24 0 0 10.745 0 24s10.745 24 24 24zm.353-25.77l-7.593-7.593c-.797-.8-1.538-.822-2.263-.207-.724.614-.56 1.617-.124 2.067l7.852 7.847-7.72 7.723c-.727.728-.56 1.646-.066 2.177.493.532 1.553.683 2.31-.174l7.588-7.584 7.644 7.623c.796.798 1.608.724 2.21.145.605-.58.72-1.442-.074-2.24l-7.657-7.67 7.545-7.52c.81-.697.9-1.76.297-2.34-.92-.885-1.85-.338-2.264.078l-7.685 7.667z" fill-rule="evenodd"/></svg>',left:'<svg viewBox="0 0 44 44"><defs><path id="a" d="M-129-845h24v24h-24z"/></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"/></clipPath><g clip-path="url(#b)"><defs><path id="c" d="M-903-949H947V996H-903z"/></defs></g><path d="M16.247 21.4L28.48 9.165l2.12 2.12-10.117 10.12L30.6 31.524l-2.12 2.12-12.233-12.232.007-.006z"/></svg>',right:'<svg viewBox="0 0 44 44"><defs><path id="a" d="M-129-845h24v24h-24z"/></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"/></clipPath><g clip-path="url(#b)"><defs><path id="c" d="M-903-949H947V996H-903z"/></defs></g><path d="M30.6 21.4L18.37 9.165l-2.12 2.12 10.117 10.12-10.118 10.118 2.12 2.12 12.234-12.232-.005-.006z"/></svg>',down:'<svg viewBox="0 0 44 44"><path d="M22.355 28.237l-11.483-10.9c-.607-.576-1.714-.396-2.48.41l.674-.71c-.763.802-.73 2.07-.282 2.496l11.37 10.793-.04.04 2.088 2.195L23.3 31.52l12.308-11.682c.447-.425.48-1.694-.282-2.496l.674.71c-.766-.806-1.873-.986-2.48-.41L22.355 28.237z" fill-rule="evenodd"/></svg>',up:'<svg viewBox="0 0 44 44"><path fill="none" d="M-1-1h46v46H-1z"/><defs><path id="a" d="M-129-845h24v24h-24z"/></defs><clipPath id="b"><use xlink:href="#a"/></clipPath><g clip-path="url(#b)"><defs><path id="c" d="M-903-949H947V996H-903z"/></defs></g><path d="M23.417 14.23L11.184 26.46l2.12 2.12 10.12-10.117 10.118 10.118 2.12-2.12L23.43 14.228l-.006.005z"/></svg>',loading:'<svg viewBox="0 -2 59.75 60.25"><path fill="#ccc" d="M29.69-.527C14.044-.527 1.36 12.158 1.36 27.806S14.043 56.14 29.69 56.14c15.65 0 28.334-12.686 28.334-28.334S45.34-.527 29.69-.527zm.185 53.75c-14.037 0-25.417-11.38-25.417-25.417S15.838 2.39 29.875 2.39s25.417 11.38 25.417 25.417-11.38 25.416-25.417 25.416z"/><path fill="none" stroke="#108ee9" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" d="M56.587 29.766c.37-7.438-1.658-14.7-6.393-19.552"/></svg>',search:'<svg viewBox="0 0 44 44"><path d="M32.98 29.255l8.915 8.293L39.603 40l-8.86-8.242a15.952 15.952 0 0 1-10.753 4.147C11.16 35.905 4 28.763 4 19.952 4 11.142 11.16 4 19.99 4s15.99 7.142 15.99 15.952c0 3.472-1.112 6.685-3 9.303zm.05-9.21c0 7.123-5.7 12.918-12.88 12.918-7.176 0-13.015-5.795-13.015-12.918 0-7.12 5.84-12.917 13.017-12.917 7.178 0 12.88 5.797 12.88 12.917z" fill-rule="evenodd"/></svg>',ellipsis:'<svg viewBox="0 0 44 44"><circle cx="21.888" cy="22" r="4.045"/><circle cx="5.913" cy="22" r="4.045"/><circle cx="37.863" cy="22" r="4.045"/></svg>',"ellipsis-circle":'<svg viewBox="0 0 44 44"><g fill-rule="evenodd"><path d="M22.13.11C10.05.11.255 9.902.255 21.983S10.05 43.86 22.13 43.86s21.875-9.795 21.875-21.876S34.21.11 22.13.11zm0 40.7c-10.396 0-18.825-8.43-18.825-18.826S11.735 3.16 22.13 3.16c10.396 0 18.825 8.428 18.825 18.824S32.525 40.81 22.13 40.81z"/><circle cx="21.888" cy="22.701" r="2.445"/><circle cx="12.23" cy="22.701" r="2.445"/><circle cx="31.546" cy="22.701" r="2.445"/></g></svg>',"exclamation-circle":'<svg viewBox="0 0 64 64"><path d="M59.58 40.89L41.193 9.11C39.135 5.382 35.723 3 31.387 3c-3.11 0-6.52 2.382-8.58 6.11L4.42 40.89c-2.788 4.635-3.126 8.81-1.225 12.22C5.015 56.208 7.572 58 13 58h36.773c5.428 0 9.21-1.792 11.03-4.89 1.9-3.41 1.565-7.583-1.224-12.22zm-2.452 11c-.635 1.694-3.802 2.443-7.354 2.443H13c-3.59 0-5.493-.75-6.13-2.444-1.71-2.41-1.374-5.263 0-8.557l18.387-31.777c2.116-3.168 4.394-4.89 6.13-4.89 2.96 0 5.238 1.722 7.354 4.89l18.387 31.777c1.374 3.294 1.713 6.146 0 8.556zm-25.74-33c-.405 0-1.227.835-1.227 2.443v15.89c0 1.608.823 2.444 1.227 2.444 1.628 0 2.452-.836 2.452-2.445v-15.89c0-1.607-.825-2.443-2.453-2.443zm0 23.22c-.405 0-1.227.79-1.227 1.223v2.445c0 .434.823 1.222 1.227 1.222 1.628 0 2.452-.788 2.452-1.222v-2.445c0-.434-.825-1.222-2.453-1.222z" fill-rule="evenodd"/></svg>',"info-circle":'<svg viewBox="0 0 44 44"><circle cx="13.828" cy="19.63" r="1.938"/><circle cx="21.767" cy="19.63" r="1.938"/><circle cx="29.767" cy="19.63" r="1.938"/><path d="M22.102 4.16c-9.918 0-17.958 7.147-17.958 15.962 0 4.935 2.522 9.345 6.48 12.273v5.667l.04.012a2.627 2.627 0 1 0 4.5 1.455h.002l5.026-3.54c.628.06 1.265.094 1.91.094 9.92 0 17.96-7.146 17.96-15.96C40.06 11.306 32.02 4.16 22.1 4.16zm-.04 29.902c-.902 0-1.78-.08-2.642-.207l-5.882 4.234c-.024.024-.055.04-.083.06l-.008.005a.51.51 0 0 1-.284.095.525.525 0 0 1-.525-.525l.005-6.375c-3.91-2.516-6.456-6.544-6.456-11.1 0-7.628 7.107-13.812 15.875-13.812s15.875 6.184 15.875 13.812-7.107 13.812-15.875 13.812z"/></svg>',"question-circle":'<svg viewBox="0 0 44 44"><g fill-rule="evenodd"><path d="M21.186 3c-10.853 0-19.36 8.506-19.36 19.358C1.827 32.494 10.334 41 21.187 41c10.133 0 18.64-8.506 18.64-18.642C39.827 11.506 31.32 3 21.187 3m15.64 19c0 8.823-7.178 16-16 16s-16-7.177-16-16 7.178-16 16-16 16 7.177 16 16z"/><path d="M22.827 31.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m4-15.48c0 .957-.203 1.822-.61 2.593-.427.792-1.117 1.612-2.073 2.457-.867.734-1.453 1.435-1.754 2.096-.302.7-.453 1.693-.453 2.98a.828.828 0 0 1-.823.854.828.828 0 0 1-.584-.22.877.877 0 0 1-.24-.635c0-1.305.168-2.38.506-3.227.336-.883.93-1.682 1.78-2.4 1.01-.883 1.71-1.692 2.1-2.428.336-.645.503-1.38.503-2.21-.02-.935-.3-1.7-.85-2.288-.655-.717-1.62-1.075-2.897-1.075-1.506 0-2.596.535-3.27 1.6-.46.754-.688 1.645-.688 2.677a.92.92 0 0 1-.266.66.747.747 0 0 1-.56.25.73.73 0 0 1-.584-.194c-.16-.164-.24-.393-.24-.69 0-1.82.585-3.272 1.755-4.357C18.645 11.486 19.928 11 21.434 11h.293c1.452 0 2.638.414 3.56 1.24 1.028.903 1.54 2.163 1.54 3.78z"/></g></svg>',voice:'<svg viewBox="0 0 38 33"><g fill-rule="evenodd"><path d="M17.838 28.8c-.564-.468-1.192-.983-1.836-1.496-4.244-3.385-5.294-3.67-6.006-3.67-.014 0-.027.005-.04.005-.015 0-.028-.006-.042-.006H3.562c-.734 0-.903-.203-.903-.928v-12.62c0-.49.057-.8.66-.8H9.1c.694 0 1.76-.28 6.4-3.63.83-.596 1.638-1.196 2.337-1.722V28.8zM19.682.19c-.463-.22-1.014-.158-1.417.157-.02.016-1.983 1.552-4.152 3.125C10.34 6.21 9.243 6.664 9.02 6.737H3.676c-.027 0-.053.003-.08.004H1.183c-.608 0-1.1.487-1.1 1.086V25.14c0 .598.492 1.084 1.1 1.084h8.71c.22.08 1.257.55 4.605 3.24 1.947 1.562 3.694 3.088 3.712 3.103.25.22.568.333.89.333.186 0 .373-.038.55-.116.48-.213.79-.684.79-1.204V1.38c0-.506-.294-.968-.758-1.19z" mask="url(#mask-2)"/><path d="M31.42 16.475c0-3.363-1.854-6.297-4.606-7.876-.125-.067-.42-.193-.625-.193-.613 0-1.11.488-1.11 1.09 0 .404.22.764.55.952 2.13 1.19 3.566 3.44 3.566 6.024 0 2.627-1.486 4.913-3.677 6.087-.32.19-.53.54-.53.935 0 .602.495 1.09 1.106 1.09.26.002.568-.15.568-.15 2.835-1.556 4.754-4.538 4.754-7.96" mask="url(#mask-4)"/><path d="M30.14 3.057c-.205-.122-.41-.22-.658-.22-.608 0-1.1.485-1.1 1.084 0 .434.26.78.627.978 4.042 2.323 6.76 6.636 6.76 11.578 0 4.938-2.715 9.248-6.754 11.572-.354.19-.66.55-.66.993 0 .6.494 1.085 1.102 1.085.243 0 .438-.092.65-.213 4.692-2.695 7.848-7.7 7.848-13.435 0-5.723-3.142-10.718-7.817-13.418" mask="url(#mask-6)"/></g></svg>',plus:'<svg viewBox="0 0 30 30"><path d="M14 14H0v2h14v14h2V16h14v-2H16V0h-2v14z" fill-rule="evenodd"/></svg>',minus:'<svg viewBox="0 0 30 2"><path d="M0 0h30v2H0z" fill-rule="evenodd"/></svg>',dislike:'<svg viewBox="0 0 72 72"><g fill="none" fill-rule="evenodd"><path d="M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z" fill="#FFF"/><path fill="#FFF" d="M47 22h2v6h-2zm-24 0h2v6h-2z"/><path d="M21 51s4.6-7 15-7 15 7 15 7" stroke="#FFF" stroke-width="2"/></g></svg>',fail:'<svg viewBox="0 0 72 72"><g fill="none" fill-rule="evenodd"><path d="M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z" fill="#FFF"/><path d="M22 22l28.304 28.304m-28.304 0L50.304 22" stroke="#FFF" stroke-width="2"/></g></svg>',success:'<svg viewBox="0 0 72 72"><g fill="none" fill-rule="evenodd"><path d="M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z" fill="#FFF"/><path stroke="#FFF" stroke-width="2" d="M19 34.54l11.545 11.923L52.815 24"/></g></svg>'}}return t.prototype.renderSvgSprite=function(){var t=this,e=Object.keys(this.icons).map(function(e){return"<symbol id="+e+t.icons[e].split("svg")[1]+"symbol>"}).join("");return H(e)},t.prototype.load=function(){if(document){var t=document.getElementById("__ANTD_MOBILE_SVG_SPRITE_NODE__"),e=document.body;t||e.insertAdjacentHTML("afterbegin",this.renderSvgSprite())}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();var V=function(){function t(t){this._iconHandler=t,this.clsMap={},this._type="",this._size="md",this._src="",this.color="",this._iconHandler.load()}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t,this.setClsMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"src",{get:function(){return this._src},set:function(t){this._src=t,this.setClsMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t,this.setClsMap()},enumerable:!0,configurable:!0}),t.prototype.setClsMap=function(){var t;this.clsMap=((t={})["am-icon-"+this._type]=!0,t["am-icon-"+this._size]=!0,t)},t.decorators=[{type:e.Component,args:[{selector:"Icon, nzm-icon",template:'<svg *ngIf="type" class="am-icon" [ngClass]="clsMap" [ngStyle]="{ color: color }">\n <use xmlns:xlink="https://www.w3.org/1999/xlink" attr.xlink:href="#{{ type }}"></use>\n</svg>\n<img *ngIf="src" src="{{ src }}" class="am-icon" [ngClass]="clsMap" />\n<ng-content></ng-content>\n',encapsulation:e.ViewEncapsulation.None,providers:[F]}]}],t.ctorParameters=function(){return[{type:F}]},t.propDecorators={color:[{type:e.Input}],type:[{type:e.Input}],src:[{type:e.Input}],size:[{type:e.Input}]},t}();var z=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],exports:[V],declarations:[V]}]}],t}(),W=function(){function t(){this.prefixCls="am-wingblank",this.size="lg",this.amWingBlank=!0}return Object.defineProperty(t.prototype,"amWingBlnkSm",{get:function(){return"sm"===this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amWingBlnkMd",{get:function(){return"md"===this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amWingBlnkLg",{get:function(){return"lg"===this.size},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Component,args:[{selector:"WingBlank, nzm-wingblank",template:"<ng-content></ng-content>\n",encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[]},t.propDecorators={size:[{type:e.Input}],amWingBlank:[{type:e.HostBinding,args:["class.am-wingblank"]}],amWingBlnkSm:[{type:e.HostBinding,args:["class.am-wingblank-sm"]}],amWingBlnkMd:[{type:e.HostBinding,args:["class.am-wingblank-md"]}],amWingBlnkLg:[{type:e.HostBinding,args:["class.am-wingblank-lg"]}]},t}();var Y=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[W],exports:[W],imports:[n.CommonModule]}]}],t}(),$=function(){function t(){this.prefixCls="am-whitespace",this.size="md",this.amWhiteSpace=!0}return Object.defineProperty(t.prototype,"amWhitespaceXs",{get:function(){return"xs"===this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amWhitespaceSm",{get:function(){return"sm"===this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amWhitespaceMd",{get:function(){return"md"===this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amWhitespaceLg",{get:function(){retur